-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a763bf
commit 92d095c
Showing
14 changed files
with
597 additions
and
1,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,19 +53,19 @@ | |
"@babel/preset-typescript": "^7.23.2", | ||
"@linaria/postcss-linaria": "^6.2.0", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@storybook/addon-essentials": "^8.3.6", | ||
"@storybook/addon-interactions": "^8.3.6", | ||
"@storybook/addon-links": "^8.3.6", | ||
"@storybook/blocks": "^8.3.6", | ||
"@storybook/channels": "^8.3.6", | ||
"@storybook/components": "^8.3.6", | ||
"@storybook/core-events": "^8.3.6", | ||
"@storybook/manager-api": "^8.3.6", | ||
"@storybook/preview-api": "^8.3.6", | ||
"@storybook/react": "^8.3.6", | ||
"@storybook/react-vite": "^8.3.6", | ||
"@storybook/test": "^8.3.6", | ||
"@storybook/theming": "^8.3.6", | ||
"@storybook/addon-essentials": "^8.4.1", | ||
"@storybook/addon-interactions": "^8.4.1", | ||
"@storybook/addon-links": "^8.4.1", | ||
"@storybook/blocks": "^8.4.1", | ||
"@storybook/channels": "^8.4.1", | ||
"@storybook/components": "^8.4.1", | ||
"@storybook/core-events": "^8.4.1", | ||
"@storybook/manager-api": "^8.4.1", | ||
"@storybook/preview-api": "^8.4.1", | ||
"@storybook/react": "^8.4.1", | ||
"@storybook/react-vite": "^8.4.1", | ||
"@storybook/test": "^8.4.1", | ||
"@storybook/theming": "^8.4.1", | ||
"@types/compression": "^1", | ||
"@types/jsdom": "^21.1.7", | ||
"@types/node": "^20.11.19", | ||
|
@@ -93,7 +93,7 @@ | |
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.3", | ||
"eslint-plugin-simple-import-sort": "^12.0.0", | ||
"eslint-plugin-storybook": "^0.10.1", | ||
"eslint-plugin-storybook": "^0.10.2", | ||
"eslint-plugin-testing-library": "^6.1.0", | ||
"jsdom": "^25.0.0", | ||
"postcss": "^8.4.45", | ||
|
@@ -104,7 +104,7 @@ | |
"rss-parser": "^3.13.0", | ||
"serve": "^14.2.4", | ||
"sitemap-static": "^0.4.4", | ||
"storybook": "^8.3.6", | ||
"storybook": "^8.4.1", | ||
"stylelint": "^16.9.0", | ||
"stylelint-order": "^6.0.4", | ||
"tsx": "^4.17.0", | ||
|
@@ -114,7 +114,7 @@ | |
"vite-imagetools": "^7.0.4", | ||
"vite-plugin-markdown": "^2.2.0" | ||
}, | ||
"packageManager": "[email protected].0", | ||
"packageManager": "[email protected].1", | ||
"resolutions": { | ||
"@storybook/core@npm:8.3.0": "patch:@storybook/core@npm%3A8.3.5#~/.yarn/patches/@storybook-core-npm-8.3.0-833013f32e.patch" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,58 @@ | ||
import { buildTheme } from '@lib/css'; | ||
import { VAR_PREFIX_BOX_SHADOW as varPrefix } from '@theme/common'; | ||
import { VAR_PREFIX_BOX_SHADOW, VAR_PREFIX_DROP_SHADOW } from '@theme/common'; | ||
|
||
const { vars, definitions, decl } = buildTheme( | ||
const shadows = { | ||
large: [ | ||
'rgba(0, 0, 0, 0.07) 0px 1px 1px', | ||
'rgba(0, 0, 0, 0.07) 0px 2px 2px', | ||
'rgba(0, 0, 0, 0.07) 0px 4px 4px', | ||
'rgba(0, 0, 0, 0.07) 0px 8px 8px', | ||
'rgba(0, 0, 0, 0.07) 0px 16px 16px', | ||
], | ||
medium: [ | ||
'rgba(0, 0, 0, 0.07) 0px 1px 1px', | ||
'rgba(0, 0, 0, 0.07) 0px 2px 2px', | ||
'rgba(0, 0, 0, 0.07) 0px 4px 4px', | ||
], | ||
small: ['rgba(0, 0, 0, 0.12) 0px 1px 1px', 'rgba(0, 0, 0, 0.24) 0px 1px 1px'], | ||
}; | ||
|
||
const { | ||
vars: boxVars, | ||
definitions: boxDef, | ||
decl: boxDecl, | ||
} = buildTheme( | ||
{ | ||
large: `rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;`, | ||
medium: `rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px;`, | ||
small: `rgba(0, 0, 0, 0.45) 0px 12px 10px -15px;`, | ||
large: `${shadows.large.join(', ')}`, | ||
medium: `${shadows.medium.join(', ')}`, | ||
small: `${shadows.small.join(', ')}`, | ||
}, | ||
varPrefix, | ||
VAR_PREFIX_BOX_SHADOW, | ||
'box-shadow', | ||
); | ||
|
||
export const shadow = { | ||
vars, | ||
definitions, | ||
decl, | ||
const { | ||
vars: dropShadowVars, | ||
definitions: dropShadowDef, | ||
decl: dropShadowDecl, | ||
} = buildTheme( | ||
{ | ||
large: `${shadows.large.map((s) => `drop-shadow(${s})`).join(' ')}`, | ||
medium: `${shadows.medium.map((s) => `drop-shadow(${s})`).join(' ')}`, | ||
small: `${shadows.small.map((s) => `drop-shadow(${s})`).join(' ')}`, | ||
}, | ||
VAR_PREFIX_DROP_SHADOW, | ||
'filter', | ||
); | ||
|
||
export const boxShadow = { | ||
vars: boxVars, | ||
definitions: boxDef, | ||
decl: boxDecl, | ||
}; | ||
|
||
export const dropShadow = { | ||
vars: dropShadowVars, | ||
definitions: dropShadowDef, | ||
decl: dropShadowDecl, | ||
}; |
Oops, something went wrong.