-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add createShadow * fix: change Base and DialogBase shadows * chore: update snapshots
- Loading branch information
1 parent
29bde4c
commit e194e01
Showing
8 changed files
with
105 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { merge } from '../libs/lodash' | ||
|
||
export interface ShadowProperty { | ||
BASE?: string | ||
DIALOG?: string | ||
} | ||
|
||
export interface CreatedShadowTheme { | ||
BASE: string | ||
DIALOG: string | ||
} | ||
|
||
export const defaultShadow = { | ||
BASE: 'rgba(51, 51, 51, 0.15) 0 0 4px 0', | ||
DIALOG: 'rgba(51, 51, 51, 0.3) 0 4px 10px 0', | ||
} | ||
|
||
export const createShadow = (userShadow: ShadowProperty = {}) => { | ||
const created: CreatedShadowTheme = merge( | ||
{ | ||
...defaultShadow, | ||
}, | ||
userShadow, | ||
) | ||
return created | ||
} |
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