Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box shadow implemented #642

Merged
merged 25 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0bf8495
Removed box shadow UI from border
jonathanalvares9009 Dec 16, 2022
4d17929
Removed Box Shadow data patching logic code
jonathanalvares9009 Dec 16, 2022
0d9c06b
Merge branch 'main' into box-shadow
jonathanalvares9009 Dec 26, 2022
50f458a
Created the files for Box Shadow and connected it
jonathanalvares9009 Dec 26, 2022
190dd57
Implemented the ability for users to show the box shadow property and…
jonathanalvares9009 Dec 26, 2022
cd08cf1
Implemented UI for h-offset, v-offset, blur, spread and color
jonathanalvares9009 Dec 26, 2022
1cc2448
Implemented shadow type in box shadow
jonathanalvares9009 Dec 26, 2022
070fe30
Hardcoded box shadow to test it
jonathanalvares9009 Dec 26, 2022
d6efed0
Implemented the ability to add more boxShadows
jonathanalvares9009 Dec 26, 2022
ad64324
Implemented the ability to remove elements from boxShadow array
jonathanalvares9009 Dec 26, 2022
9be02b2
Implemented UI for hOffset, vOffset, blur and spread
jonathanalvares9009 Dec 26, 2022
6743bcf
Implemented code to update hOffset
jonathanalvares9009 Dec 26, 2022
69fd4ac
Implemented ability to update vOffset, spread and blur
jonathanalvares9009 Dec 26, 2022
bd70dd4
Abstracted some styles
jonathanalvares9009 Dec 27, 2022
0aafe8a
Created prototype UI to accept color and shadowType
jonathanalvares9009 Dec 27, 2022
14d491d
Proto that can apply box shadow
jonathanalvares9009 Dec 27, 2022
dedfd1a
Removed internal state and made boxShadow value depend upon the style
jonathanalvares9009 Dec 27, 2022
2544a5d
Implemented adding of boxShadows when + is clicked
jonathanalvares9009 Dec 27, 2022
7802960
Created UI for selecting shadowType
jonathanalvares9009 Dec 27, 2022
b902a6b
ColorComponent updated to change a object
jonathanalvares9009 Dec 28, 2022
bef1bb4
Can change color using input box
jonathanalvares9009 Dec 28, 2022
f97dbe5
Supplied reference object to color component
jonathanalvares9009 Dec 29, 2022
48d8547
linked the reference object and color picker and implemented color se…
jonathanalvares9009 Dec 29, 2022
c633466
boxShadows will return an empty array if boxShadow is empty
jonathanalvares9009 Dec 29, 2022
db0f372
All the files use box shadow
jonathanalvares9009 Dec 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/app-design-forest/src/cssTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export type CSSTreeOptions = {
spacingOptions: boolean;
sizeOptions: boolean;
borderOptions: boolean;
boxShadowOptions: boolean;
outlineOptions: boolean;
backgroundOptions: boolean;
miscellaneousOptions: boolean;
Expand Down
14 changes: 14 additions & 0 deletions packages/component-style-layer/src/TabBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import "./TabBody.css";
import { getAliasList } from "./utils";
import { CssSummary } from "./components/cssSummary/CssSummary";
import { Tree } from "@atrilabs/forest";
import { BoxShadow } from "./components/box-shadow/BoxShadow";

export type TabBodyProps = {
alias: string;
Expand Down Expand Up @@ -196,6 +197,19 @@ export const TabBody: React.FC<TabBodyProps> = (props) => {
colorValueArraySetter={props.colorValueArraySetter}
/>
) : null}
{props.treeOptions && props.treeOptions.boxShadowOptions ? (
<BoxShadow
styles={props.styles}
patchCb={props.patchCb}
openAssetManager={props.openAssetManager}
openPalette={props.openPalette}
openPaletteWithoutEffect={props.openPaletteWithoutEffect}
compId={props.compId}
colorValue={props.colorValue}
setColorValue={props.setColorValue}
colorValueArraySetter={props.colorValueArraySetter}
/>
) : null}
{props.treeOptions && props.treeOptions.outlineOptions ? (
<Outline
styles={props.styles}
Expand Down
3 changes: 3 additions & 0 deletions packages/component-style-layer/src/assets/add.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/component-style-layer/src/assets/minus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading