@lunit/design-system 1.0.0-a.1 → 1.0.0-a.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc.json +16 -0
- package/dist/cjs/components/Alert/index.js +2 -0
- package/dist/cjs/components/Alert/index.js.map +1 -0
- package/dist/cjs/components/Button/index.js +2 -0
- package/dist/cjs/components/Button/index.js.map +1 -0
- package/dist/cjs/components/Checkbox/index.js +2 -0
- package/dist/cjs/components/Checkbox/index.js.map +1 -0
- package/dist/cjs/components/Chip/index.js +2 -0
- package/dist/cjs/components/Chip/index.js.map +1 -0
- package/dist/cjs/components/DataTable/index.js +2 -0
- package/dist/cjs/components/DataTable/index.js.map +1 -0
- package/dist/cjs/components/DatePicker/index.js +2 -0
- package/dist/cjs/components/DatePicker/index.js.map +1 -0
- package/dist/cjs/components/Dropdown/index.js +2 -0
- package/dist/cjs/components/Dropdown/index.js.map +1 -0
- package/dist/cjs/components/FormLabel/index.js +2 -0
- package/dist/cjs/components/FormLabel/index.js.map +1 -0
- package/dist/cjs/components/Modal/index.js +2 -0
- package/dist/cjs/components/Modal/index.js.map +1 -0
- package/dist/cjs/components/Radio/index.js +2 -0
- package/dist/cjs/components/Radio/index.js.map +1 -0
- package/dist/cjs/components/RadioGroup/index.js +2 -0
- package/dist/cjs/components/RadioGroup/index.js.map +1 -0
- package/dist/cjs/components/TextField/index.js +2 -0
- package/dist/cjs/components/TextField/index.js.map +1 -0
- package/dist/cjs/components/Toggle/index.js +2 -0
- package/dist/cjs/components/Toggle/index.js.map +1 -0
- package/dist/cjs/components/ToggleButton/index.js +2 -0
- package/dist/cjs/components/ToggleButton/index.js.map +1 -0
- package/dist/cjs/components/Tooltip/index.js +2 -0
- package/dist/cjs/components/Tooltip/index.js.map +1 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/components/Alert/Alert.js +19 -0
- package/dist/components/Alert/Alert.js.map +1 -0
- package/dist/components/Alert/Alert.styled.js +48 -0
- package/dist/components/Alert/Alert.styled.js.map +1 -0
- package/dist/components/Alert/Alert.types.js +2 -0
- package/dist/components/Alert/Alert.types.js.map +1 -0
- package/dist/components/Alert/Alert.utils..js +38 -0
- package/dist/components/Alert/Alert.utils..js.map +1 -0
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Alert/index.js.map +1 -1
- package/dist/components/Button/Button.js +9 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/Button.styled.js +180 -0
- package/dist/components/Button/Button.styled.js.map +1 -0
- package/dist/components/Button/Button.types.js +2 -0
- package/dist/components/Button/Button.types.js.map +1 -0
- package/dist/components/Button/const.js +3 -0
- package/dist/components/Button/const.js.map +1 -0
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Button/utils/getButtonPaddingBySizeAndKind.js +23 -0
- package/dist/components/Button/utils/getButtonPaddingBySizeAndKind.js.map +1 -0
- package/dist/components/Button/utils/getHoverStyle.js +7 -0
- package/dist/components/Button/utils/getHoverStyle.js.map +1 -0
- package/dist/components/Button/utils/getIconButtonPaddingBySizeAndKind.js +23 -0
- package/dist/components/Button/utils/getIconButtonPaddingBySizeAndKind.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +49 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Chip/Chip.js +70 -0
- package/dist/components/Chip/Chip.js.map +1 -0
- package/dist/components/Chip/Chip.styled.js +142 -0
- package/dist/components/Chip/Chip.styled.js.map +1 -0
- package/dist/components/Chip/Chip.types.js +2 -0
- package/dist/components/Chip/Chip.types.js.map +1 -0
- package/dist/components/Chip/consts.js +8 -0
- package/dist/components/Chip/consts.js.map +1 -0
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/Chip/index.js.map +1 -1
- package/dist/components/DataTable/DataTable.js +7 -0
- package/dist/components/DataTable/DataTable.js.map +1 -0
- package/dist/components/DataTable/index.js +1 -1
- package/dist/components/DataTable/index.js.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +7 -0
- package/dist/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DatePicker/index.js.map +1 -1
- package/dist/components/Dropdown/Dropdown.js +7 -0
- package/dist/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/FormLabel/FormLabel.js +7 -0
- package/dist/components/FormLabel/FormLabel.js.map +1 -0
- package/dist/components/FormLabel/FormLabel.styled.js +8 -0
- package/dist/components/FormLabel/FormLabel.styled.js.map +1 -0
- package/dist/components/FormLabel/index.js +1 -1
- package/dist/components/FormLabel/index.js.map +1 -1
- package/dist/components/Modal/Modal.js +7 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Radio/Radio.js +43 -0
- package/dist/components/Radio/Radio.js.map +1 -0
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/Radio/index.js.map +1 -1
- package/dist/components/RadioGroup/index.js +2 -1
- package/dist/components/RadioGroup/index.js.map +1 -1
- package/dist/components/TextField/TextField.js +19 -0
- package/dist/components/TextField/TextField.js.map +1 -0
- package/dist/components/TextField/TextField.style.js +245 -0
- package/dist/components/TextField/TextField.style.js.map +1 -0
- package/dist/components/TextField/TextField.types.js +2 -0
- package/dist/components/TextField/TextField.types.js.map +1 -0
- package/dist/components/TextField/TextFieldIcon.js +7 -0
- package/dist/components/TextField/TextFieldIcon.js.map +1 -0
- package/dist/components/TextField/index.js +1 -1
- package/dist/components/TextField/index.js.map +1 -1
- package/dist/components/Toast/Toast.js +26 -0
- package/dist/components/Toast/Toast.js.map +1 -0
- package/dist/components/Toast/Toast.styled.js +49 -0
- package/dist/components/Toast/Toast.styled.js.map +1 -0
- package/dist/components/Toast/Toast.types.js +2 -0
- package/dist/components/Toast/Toast.types.js.map +1 -0
- package/dist/components/Toast/Toast.utils.js +14 -0
- package/dist/components/Toast/Toast.utils.js.map +1 -0
- package/dist/components/Toast/index.js +2 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/Toggle/Toggle.js +13 -0
- package/dist/components/Toggle/Toggle.js.map +1 -0
- package/dist/components/Toggle/Toggle.styled.js +155 -0
- package/dist/components/Toggle/Toggle.styled.js.map +1 -0
- package/dist/components/Toggle/Toggle.types.js +2 -0
- package/dist/components/Toggle/Toggle.types.js.map +1 -0
- package/dist/components/Toggle/index.js +1 -1
- package/dist/components/Toggle/index.js.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.js +12 -0
- package/dist/components/ToggleButton/ToggleButton.js.map +1 -0
- package/dist/components/ToggleButton/ToggleButton.styled.js +35 -0
- package/dist/components/ToggleButton/ToggleButton.styled.js.map +1 -0
- package/dist/components/ToggleButton/ToggleButton.types.js +2 -0
- package/dist/components/ToggleButton/ToggleButton.types.js.map +1 -0
- package/dist/components/ToggleButton/index.js +1 -1
- package/dist/components/ToggleButton/index.js.map +1 -1
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +7 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -0
- package/dist/components/ToggleButtonGroup/index.js +2 -0
- package/dist/components/ToggleButtonGroup/index.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +7 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tooltip/index.js.map +1 -1
- package/dist/components/index.js +7 -0
- package/dist/components/index.js.map +1 -0
- package/dist/foundation/Elevation/index.js +66 -0
- package/dist/foundation/Elevation/index.js.map +1 -0
- package/dist/foundation/Elevation/utils.js +9 -0
- package/dist/foundation/Elevation/utils.js.map +1 -0
- package/dist/foundation/Typography/index.js +62 -0
- package/dist/foundation/Typography/index.js.map +1 -0
- package/dist/foundation/Typography/tokens.js +155 -0
- package/dist/foundation/Typography/tokens.js.map +1 -0
- package/dist/foundation/colors/base/blue.js +26 -0
- package/dist/foundation/colors/base/blue.js.map +1 -0
- package/dist/foundation/colors/base/green.js +26 -0
- package/dist/foundation/colors/base/green.js.map +1 -0
- package/dist/foundation/colors/base/grey.js +52 -0
- package/dist/foundation/colors/base/grey.js.map +1 -0
- package/dist/foundation/colors/base/index.js +12 -0
- package/dist/foundation/colors/base/index.js.map +1 -0
- package/dist/foundation/colors/base/lunitGreen.js +26 -0
- package/dist/foundation/colors/base/lunitGreen.js.map +1 -0
- package/dist/foundation/colors/base/lunitTeal.js +26 -0
- package/dist/foundation/colors/base/lunitTeal.js.map +1 -0
- package/dist/foundation/colors/base/magenta.js +26 -0
- package/dist/foundation/colors/base/magenta.js.map +1 -0
- package/dist/foundation/colors/base/opacity.js +7 -0
- package/dist/foundation/colors/base/opacity.js.map +1 -0
- package/dist/foundation/colors/base/orange.js +26 -0
- package/dist/foundation/colors/base/orange.js.map +1 -0
- package/dist/foundation/colors/base/purple.js +26 -0
- package/dist/foundation/colors/base/purple.js.map +1 -0
- package/dist/foundation/colors/base/red.js +26 -0
- package/dist/foundation/colors/base/red.js.map +1 -0
- package/dist/foundation/colors/base/yellow.js +26 -0
- package/dist/foundation/colors/base/yellow.js.map +1 -0
- package/dist/foundation/colors/index.js +208 -0
- package/dist/foundation/colors/index.js.map +1 -0
- package/dist/foundation/colors/token/component.js +423 -0
- package/dist/foundation/colors/token/component.js.map +1 -0
- package/dist/foundation/colors/token/core.js +206 -0
- package/dist/foundation/colors/token/core.js.map +1 -0
- package/dist/foundation/colors/token/index.js +3 -0
- package/dist/foundation/colors/token/index.js.map +1 -0
- package/dist/foundation/colors/token/types.js +2 -0
- package/dist/foundation/colors/token/types.js.map +1 -0
- package/dist/foundation/colors/types.js +2 -0
- package/dist/foundation/colors/types.js.map +1 -0
- package/dist/foundation/index.js +13 -0
- package/dist/foundation/index.js.map +1 -0
- package/dist/foundation/spacing.js +2 -0
- package/dist/foundation/spacing.js.map +1 -0
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/theme.js +39 -0
- package/dist/theme.js.map +1 -0
- package/dist/types/components/Alert/Alert.d.ts +4 -0
- package/dist/types/components/Alert/Alert.styled.d.ts +6 -0
- package/dist/types/components/Alert/Alert.types.d.ts +9 -0
- package/dist/types/components/Alert/Alert.utils..d.ts +4 -0
- package/dist/types/components/Button/Button.d.ts +3 -0
- package/dist/{components → types/components}/Button/Button.styled.d.ts +26 -2
- package/dist/{components → types/components}/Button/Button.types.d.ts +4 -4
- package/dist/types/components/Button/utils/getHoverStyle.d.ts +6 -0
- package/dist/types/components/Chip/Chip.styled.d.ts +79 -0
- package/dist/{components → types/components}/Chip/Chip.types.d.ts +1 -1
- package/dist/types/components/TextField/TextField.d.ts +3 -0
- package/dist/types/components/TextField/TextField.style.d.ts +9 -0
- package/dist/types/components/TextField/TextField.types.d.ts +29 -0
- package/dist/types/components/TextField/TextFieldIcon.d.ts +8 -0
- package/dist/types/components/TextField/index.d.ts +2 -0
- package/dist/types/components/Toast/Toast.d.ts +4 -0
- package/dist/types/components/Toast/Toast.styled.d.ts +1 -0
- package/dist/types/components/Toast/Toast.types.d.ts +4 -0
- package/dist/types/components/Toast/Toast.utils.d.ts +2 -0
- package/dist/types/components/Toast/index.d.ts +1 -0
- package/dist/{components → types/components}/ToggleButton/ToggleButton.styled.d.ts +1 -1
- package/dist/{components → types/components}/ToggleButton/ToggleButton.types.d.ts +4 -4
- package/dist/{foundation → types/foundation}/colors/base/grey.d.ts +16 -0
- package/dist/{foundation → types/foundation}/colors/base/lunitGreen.d.ts +2 -2
- package/dist/{foundation → types/foundation}/colors/base/lunitTeal.d.ts +2 -2
- package/dist/{foundation → types/foundation}/colors/index.d.ts +42 -9
- package/dist/{foundation → types/foundation}/colors/types.d.ts +1 -3
- package/dist/{foundation → types/foundation}/index.d.ts +37 -5
- package/dist/{index.d.ts → types/index.d.ts} +1 -0
- package/package.json +37 -23
- package/src/components/Alert/Alert.styled.ts +60 -0
- package/src/components/Alert/Alert.tsx +53 -0
- package/src/components/Alert/Alert.types.ts +10 -0
- package/src/components/Alert/Alert.utils..ts +41 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Button/Button.styled.ts +232 -0
- package/src/components/Button/Button.tsx +50 -0
- package/src/components/Button/Button.types.ts +25 -0
- package/src/components/Button/const.ts +2 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/utils/getButtonPaddingBySizeAndKind.ts +35 -0
- package/src/components/Button/utils/getHoverStyle.ts +7 -0
- package/src/components/Button/utils/getIconButtonPaddingBySizeAndKind.ts +38 -0
- package/src/components/Checkbox/Checkbox.tsx +67 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Chip/Chip.styled.ts +164 -0
- package/src/components/Chip/Chip.tsx +132 -0
- package/src/components/Chip/Chip.types.ts +56 -0
- package/src/components/Chip/consts.ts +7 -0
- package/src/components/Chip/index.ts +1 -0
- package/src/components/DataTable/DataTable.tsx +8 -0
- package/src/components/DataTable/index.ts +1 -0
- package/src/components/DatePicker/DatePicker.tsx +8 -0
- package/src/components/DatePicker/index.ts +1 -0
- package/src/components/Dropdown/Dropdown.tsx +11 -0
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/FormLabel/FormLabel.styled.ts +8 -0
- package/src/components/FormLabel/FormLabel.tsx +9 -0
- package/src/components/FormLabel/index.ts +1 -0
- package/src/components/Modal/Modal.tsx +8 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/Radio/Radio.tsx +58 -0
- package/src/components/Radio/index.ts +1 -0
- package/src/components/RadioGroup/index.ts +2 -0
- package/src/components/TextField/TextField.style.ts +316 -0
- package/src/components/TextField/TextField.tsx +80 -0
- package/src/components/TextField/TextField.types.ts +38 -0
- package/src/components/TextField/TextFieldIcon.tsx +24 -0
- package/src/components/TextField/index.ts +7 -0
- package/src/components/Toast/Toast.styled.ts +49 -0
- package/src/components/Toast/Toast.tsx +66 -0
- package/src/components/Toast/Toast.types.ts +14 -0
- package/src/components/Toast/Toast.utils.ts +15 -0
- package/src/components/Toast/index.tsx +1 -0
- package/src/components/Toggle/Toggle.styled.ts +162 -0
- package/src/components/Toggle/Toggle.tsx +18 -0
- package/src/components/Toggle/Toggle.types.ts +14 -0
- package/src/components/Toggle/index.ts +1 -0
- package/src/components/ToggleButton/ToggleButton.styled.ts +58 -0
- package/src/components/ToggleButton/ToggleButton.tsx +89 -0
- package/src/components/ToggleButton/ToggleButton.types.ts +25 -0
- package/src/components/ToggleButton/index.ts +1 -0
- package/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx +13 -0
- package/src/components/ToggleButtonGroup/index.tsx +1 -0
- package/src/components/Tooltip/Tooltip.tsx +9 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/index.ts +9 -0
- package/src/foundation/Elevation/index.ts +72 -0
- package/src/foundation/Elevation/utils.ts +11 -0
- package/src/foundation/Typography/index.ts +96 -0
- package/src/foundation/Typography/tokens.ts +162 -0
- package/src/foundation/colors/base/blue.ts +27 -0
- package/src/foundation/colors/base/green.ts +27 -0
- package/src/foundation/colors/base/grey.ts +53 -0
- package/src/foundation/colors/base/index.ts +11 -0
- package/src/foundation/colors/base/lunitGreen.ts +27 -0
- package/src/foundation/colors/base/lunitTeal.ts +27 -0
- package/src/foundation/colors/base/magenta.ts +27 -0
- package/src/foundation/colors/base/opacity.ts +6 -0
- package/src/foundation/colors/base/orange.ts +27 -0
- package/src/foundation/colors/base/purple.ts +27 -0
- package/src/foundation/colors/base/red.ts +27 -0
- package/src/foundation/colors/base/yellow.ts +27 -0
- package/src/foundation/colors/index.ts +256 -0
- package/src/foundation/colors/token/component.ts +430 -0
- package/src/foundation/colors/token/core.ts +211 -0
- package/src/foundation/colors/token/index.ts +2 -0
- package/src/foundation/colors/token/types.ts +8 -0
- package/src/foundation/colors/types.ts +83 -0
- package/src/foundation/index.ts +25 -0
- package/src/foundation/spacing.ts +3 -0
- package/src/index.ts +18 -0
- package/src/stories/components/Alert/Alert.stories.tsx +157 -0
- package/src/stories/components/Button/BasicButton.stories.tsx +168 -0
- package/src/stories/components/Button/IconButton.stories.tsx +139 -0
- package/src/stories/components/Button/Kind.stories.tsx +540 -0
- package/src/stories/components/Chip/Chip.stories.tsx +208 -0
- package/src/stories/components/DataTable/DataTable.stories.tsx +15 -0
- package/src/stories/components/DatePicker/DatePicker.stories.tsx +15 -0
- package/src/stories/components/Dropdown/Dropdown.stories.tsx +21 -0
- package/src/stories/components/Modal/Modal.stories.tsx +15 -0
- package/src/stories/components/SelectControl/Checkbox.stories.tsx +256 -0
- package/src/stories/components/SelectControl/RadioGroup.stories.tsx +68 -0
- package/src/stories/components/SelectControl/RadioStatus.stories.tsx +93 -0
- package/src/stories/components/SelectControl/Toggle.stories.tsx +443 -0
- package/src/stories/components/TextField/TextFieldMulti.stories.tsx +137 -0
- package/src/stories/components/TextField/TextFieldSingle.stories.tsx +283 -0
- package/src/stories/components/TextField/TextFieldSize.stories.tsx +134 -0
- package/src/stories/components/Toast/Toast.stories.tsx +152 -0
- package/src/stories/components/ToggleButton/Basic.stories.tsx +346 -0
- package/src/stories/components/ToggleButton/Group.stories.tsx +221 -0
- package/src/stories/components/ToggleButton/ToggleButtonKind.stories.tsx +708 -0
- package/src/stories/components/ToggleButton/WithIcon.stories.tsx +292 -0
- package/src/stories/components/Tooltip/Tooltip.stories.tsx +15 -0
- package/src/stories/foundation/Elevation/Elevation.stories.tsx +268 -0
- package/src/stories/foundation/Elevation/styled.ts +12 -0
- package/src/stories/foundation/Typography/Typography.mdx +76 -0
- package/src/stories/foundation/Typography/Typography.stories.tsx +101 -0
- package/src/stories/foundation/Typography/TypographyExamples.stories.tsx +44 -0
- package/src/stories/foundation/Typography/TypographyGroup.tsx +71 -0
- package/src/stories/foundation/Typography/const.ts +25 -0
- package/src/stories/foundation/colors/Colors.stories.tsx +66 -0
- package/src/stories/foundation/colors/Mui.stories.tsx +18 -0
- package/src/stories/foundation/colors/Token.inComponent.stories.tsx +167 -0
- package/src/stories/foundation/colors/TokenPaletteTable.stories.tsx +28 -0
- package/src/stories/foundation/colors/TokenPaletteTable.tsx +127 -0
- package/src/stories/foundation/colors/styled.ts +39 -0
- package/src/theme.ts +46 -0
- package/src/types.d.ts +4 -0
- package/tsconfig.build.json +2 -0
- package/dist/components/Alert/Alert.d.ts +0 -2
- package/dist/components/Button/Button.d.ts +0 -3
- package/dist/components/Chip/Chip.styled.d.ts +0 -41
- package/dist/components/HelloWorld/HelloWorld.d.ts +0 -28
- package/dist/components/TextField/TextField.d.ts +0 -2
- package/dist/components/TextField/index.d.ts +0 -1
- package/webpack.config.js +0 -51
- /package/dist/{components → types/components}/Alert/index.d.ts +0 -0
- /package/dist/{components → types/components}/Button/const.d.ts +0 -0
- /package/dist/{components → types/components}/Button/index.d.ts +0 -0
- /package/dist/{components → types/components}/Button/utils/getButtonPaddingBySizeAndKind.d.ts +0 -0
- /package/dist/{components → types/components}/Button/utils/getIconButtonPaddingBySizeAndKind.d.ts +0 -0
- /package/dist/{components → types/components}/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/{components → types/components}/Checkbox/index.d.ts +0 -0
- /package/dist/{components → types/components}/Chip/Chip.d.ts +0 -0
- /package/dist/{components → types/components}/Chip/consts.d.ts +0 -0
- /package/dist/{components → types/components}/Chip/index.d.ts +0 -0
- /package/dist/{components → types/components}/DataTable/DataTable.d.ts +0 -0
- /package/dist/{components → types/components}/DataTable/index.d.ts +0 -0
- /package/dist/{components → types/components}/DatePicker/DatePicker.d.ts +0 -0
- /package/dist/{components → types/components}/DatePicker/index.d.ts +0 -0
- /package/dist/{components → types/components}/Dropdown/Dropdown.d.ts +0 -0
- /package/dist/{components → types/components}/Dropdown/index.d.ts +0 -0
- /package/dist/{components → types/components}/FormLabel/FormLabel.d.ts +0 -0
- /package/dist/{components → types/components}/FormLabel/FormLabel.styled.d.ts +0 -0
- /package/dist/{components → types/components}/FormLabel/index.d.ts +0 -0
- /package/dist/{components → types/components}/Modal/Modal.d.ts +0 -0
- /package/dist/{components → types/components}/Modal/index.d.ts +0 -0
- /package/dist/{components → types/components}/Radio/Radio.d.ts +0 -0
- /package/dist/{components → types/components}/Radio/index.d.ts +0 -0
- /package/dist/{components → types/components}/RadioGroup/index.d.ts +0 -0
- /package/dist/{components → types/components}/Toggle/Toggle.d.ts +0 -0
- /package/dist/{components → types/components}/Toggle/Toggle.styled.d.ts +0 -0
- /package/dist/{components → types/components}/Toggle/Toggle.types.d.ts +0 -0
- /package/dist/{components → types/components}/Toggle/index.d.ts +0 -0
- /package/dist/{components → types/components}/ToggleButton/ToggleButton.d.ts +0 -0
- /package/dist/{components → types/components}/ToggleButton/index.d.ts +0 -0
- /package/dist/{components → types/components}/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -0
- /package/dist/{components → types/components}/ToggleButtonGroup/index.d.ts +0 -0
- /package/dist/{components → types/components}/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{components → types/components}/Tooltip/index.d.ts +0 -0
- /package/dist/{components → types/components}/index.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/Elevation/index.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/Elevation/utils.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/Typography/index.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/Typography/tokens.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/base/blue.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/base/green.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/base/index.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/base/magenta.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/base/opacity.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/base/orange.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/base/purple.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/base/red.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/base/yellow.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/token/component.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/token/core.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/token/index.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/colors/token/types.d.ts +0 -0
- /package/dist/{foundation → types/foundation}/spacing.d.ts +0 -0
- /package/dist/{theme.d.ts → types/theme.d.ts} +0 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
// Main module for Foundation > Colors
|
|
2
|
+
|
|
3
|
+
import { PaletteOptions, PaletteColor } from "@mui/material/styles";
|
|
4
|
+
import * as base from "./base";
|
|
5
|
+
import * as token from "./token";
|
|
6
|
+
import { ColorToken } from "./types";
|
|
7
|
+
import { ColorTokenValueBySurface } from "./token/types";
|
|
8
|
+
|
|
9
|
+
export type BaseColor = Record<keyof typeof base.blue, PaletteColor>;
|
|
10
|
+
export type GreyColor = Record<keyof typeof base.grey, PaletteColor>;
|
|
11
|
+
|
|
12
|
+
declare module "@mui/material/styles/createPalette" {
|
|
13
|
+
interface PaletteOptions {
|
|
14
|
+
lunit?: {
|
|
15
|
+
grey: GreyColor;
|
|
16
|
+
blue: BaseColor;
|
|
17
|
+
green: BaseColor;
|
|
18
|
+
lunit_green: BaseColor;
|
|
19
|
+
lunit_teal: BaseColor;
|
|
20
|
+
magenta: BaseColor;
|
|
21
|
+
orange: BaseColor;
|
|
22
|
+
red: BaseColor;
|
|
23
|
+
yellow: BaseColor;
|
|
24
|
+
};
|
|
25
|
+
token?: ColorToken;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface Palette {
|
|
29
|
+
lunit: {
|
|
30
|
+
grey: GreyColor;
|
|
31
|
+
blue: BaseColor;
|
|
32
|
+
green: BaseColor;
|
|
33
|
+
lunit_green: BaseColor;
|
|
34
|
+
lunit_teal: BaseColor;
|
|
35
|
+
magenta: BaseColor;
|
|
36
|
+
orange: BaseColor;
|
|
37
|
+
red: BaseColor;
|
|
38
|
+
yellow: BaseColor;
|
|
39
|
+
};
|
|
40
|
+
token: ColorToken;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type ColorKey = keyof typeof base;
|
|
45
|
+
|
|
46
|
+
const createCSSVariables = () => {
|
|
47
|
+
const cssVars: { [name: string]: string } = {};
|
|
48
|
+
for (let color in base) {
|
|
49
|
+
const baseColors = base[color as ColorKey];
|
|
50
|
+
for (let key in baseColors) {
|
|
51
|
+
if (baseColors.hasOwnProperty(key)) {
|
|
52
|
+
const varName = `--${color}_${key}`;
|
|
53
|
+
cssVars[varName] = baseColors[Number(key) as keyof typeof baseColors];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return cssVars;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const createTokenColorVariables = (surface: keyof ColorTokenValueBySurface) => {
|
|
61
|
+
const cssVars: { [name: string]: string } = {};
|
|
62
|
+
|
|
63
|
+
for (let coreToken in token.tokenCoreColor) {
|
|
64
|
+
if (token.tokenCoreColor.hasOwnProperty(coreToken)) {
|
|
65
|
+
const varName = `--${coreToken}`;
|
|
66
|
+
const tokenValue = token.tokenCoreColor[coreToken][surface];
|
|
67
|
+
// 현재 tokenValue는 cssVariable과 rgba 값 2종류가 존재함. 이 종류에 따라서 var 사용 여부를 결정해주기 위해 if문을 추가하였으나,
|
|
68
|
+
// 차후 피그마에서 json 파일을 넘겨준 것을 스크립트화하는 작업이 끝나면 if문 자체가 사라질 예정.
|
|
69
|
+
if (tokenValue.charAt(0) === "-") {
|
|
70
|
+
cssVars[varName] = `var(${tokenValue})`;
|
|
71
|
+
} else {
|
|
72
|
+
cssVars[varName] = `${tokenValue}`;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
for (let componentGroup in token.tokenComponentColor) {
|
|
78
|
+
if (token.tokenComponentColor.hasOwnProperty(componentGroup)) {
|
|
79
|
+
const componentTokens = token.tokenComponentColor[componentGroup];
|
|
80
|
+
|
|
81
|
+
let tokenName: keyof typeof componentTokens;
|
|
82
|
+
for (tokenName in componentTokens) {
|
|
83
|
+
if (componentTokens.hasOwnProperty(tokenName)) {
|
|
84
|
+
const varName = `--${tokenName}`;
|
|
85
|
+
const tokenValue = componentTokens[tokenName][surface];
|
|
86
|
+
if (tokenValue.charAt(0) === "-") {
|
|
87
|
+
cssVars[varName] = `var(${tokenValue})`;
|
|
88
|
+
} else {
|
|
89
|
+
cssVars[varName] = `${tokenValue}`;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return cssVars;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export const createColorCssBaseline = () => {
|
|
99
|
+
return {
|
|
100
|
+
":root": {
|
|
101
|
+
...createCSSVariables(),
|
|
102
|
+
...createTokenColorVariables("dark1"),
|
|
103
|
+
},
|
|
104
|
+
".light1": {
|
|
105
|
+
...createTokenColorVariables("light1"),
|
|
106
|
+
},
|
|
107
|
+
".light2": {
|
|
108
|
+
...createTokenColorVariables("light2"),
|
|
109
|
+
},
|
|
110
|
+
".dark1": {
|
|
111
|
+
...createTokenColorVariables("dark1"),
|
|
112
|
+
},
|
|
113
|
+
".dark2": {
|
|
114
|
+
...createTokenColorVariables("dark2"),
|
|
115
|
+
},
|
|
116
|
+
".dark3": {
|
|
117
|
+
...createTokenColorVariables("dark3"),
|
|
118
|
+
},
|
|
119
|
+
".dark4": {
|
|
120
|
+
...createTokenColorVariables("dark4"),
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
// TODO: TextColors 삭제하고 관련된 설정 수정하기
|
|
126
|
+
const lunitColors: PaletteOptions["lunit"] = ((): PaletteOptions["lunit"] => {
|
|
127
|
+
const ret: any = {};
|
|
128
|
+
for (const colorKey in base) {
|
|
129
|
+
if (base[`${colorKey}Text` as ColorKey]) {
|
|
130
|
+
const baseColors = base[colorKey as ColorKey];
|
|
131
|
+
const textColors = base[`${colorKey}Text` as ColorKey];
|
|
132
|
+
ret[colorKey] = {};
|
|
133
|
+
for (const key in baseColors) {
|
|
134
|
+
if (baseColors.hasOwnProperty(key)) {
|
|
135
|
+
const color = baseColors[Number(key) as keyof typeof baseColors];
|
|
136
|
+
const textColor = textColors[Number(key) as keyof typeof textColors];
|
|
137
|
+
ret[colorKey][Number(key)] = {
|
|
138
|
+
light: color,
|
|
139
|
+
main: color,
|
|
140
|
+
dark: color,
|
|
141
|
+
contrastText: textColor,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return ret;
|
|
148
|
+
})();
|
|
149
|
+
|
|
150
|
+
const paletteOptions = {
|
|
151
|
+
primary: {
|
|
152
|
+
main: base.lunit_teal[40], // core.text_primary.dark1
|
|
153
|
+
},
|
|
154
|
+
secondary: {
|
|
155
|
+
main: base.grey[50], // core.text_light.dark1
|
|
156
|
+
},
|
|
157
|
+
error: {
|
|
158
|
+
main: base.red[40], // core.text_error.dark1
|
|
159
|
+
},
|
|
160
|
+
warning: {
|
|
161
|
+
main: base.orange[40], // core.text_warning.dark1
|
|
162
|
+
},
|
|
163
|
+
info: {
|
|
164
|
+
main: base.blue[40], // core.text_info.dark1
|
|
165
|
+
},
|
|
166
|
+
success: {
|
|
167
|
+
main: base.green[40], // core.text_success.dark1
|
|
168
|
+
},
|
|
169
|
+
grey: base.greyForMUI,
|
|
170
|
+
lunit: lunitColors,
|
|
171
|
+
token: {
|
|
172
|
+
core: {
|
|
173
|
+
bg_01: "var(--bg_01)",
|
|
174
|
+
bg_02: "var(--bg_02)",
|
|
175
|
+
bg_03: "var(--bg_03)",
|
|
176
|
+
text_primary: "var(--text_primary)",
|
|
177
|
+
text_normal: "var(--text_normal)",
|
|
178
|
+
text_medium: "var(--text_medium)",
|
|
179
|
+
text_light: "var(--text_light)",
|
|
180
|
+
text_error: "var(--text_error)",
|
|
181
|
+
text_success: "var(--text_success)",
|
|
182
|
+
text_warning: "var(--text_warning)",
|
|
183
|
+
text_info: "var(--text_info)",
|
|
184
|
+
link_primary: "var(--link_primary)",
|
|
185
|
+
link_hover: "var(--link_hover)",
|
|
186
|
+
link_visited: "var(--link_visited)",
|
|
187
|
+
icon_error_02: "var(--icon_error_02)",
|
|
188
|
+
icon_success_02: "var(--icon_success_02)",
|
|
189
|
+
icon_warning_02: "var(--icon_warning_02)",
|
|
190
|
+
icon_info_02: "var(--icon_info_02)",
|
|
191
|
+
hover: "var(--hover)",
|
|
192
|
+
focused: "var(--focused)",
|
|
193
|
+
selected: "var(--selected)",
|
|
194
|
+
shadow_01: "var(--shadow_01)",
|
|
195
|
+
shadow_02: "var(--shadow_02)",
|
|
196
|
+
shadow_03: "var(--shadow_03)",
|
|
197
|
+
shadow_04: "var(--shadow_04)",
|
|
198
|
+
},
|
|
199
|
+
component: {
|
|
200
|
+
btn_contained_primary_bg: "var(--btn_contained_primary_bg)",
|
|
201
|
+
btn_contained_primary_text: "var(--btn_contained_primary_text)",
|
|
202
|
+
btn_contained_secondary_bg: "var(--btn_contained_secondary_bg)",
|
|
203
|
+
btn_contained_secondary_text: "var(--btn_contained_secondary_text)",
|
|
204
|
+
btn_contained_error_bg: "var(--btn_contained_error_bg)",
|
|
205
|
+
btn_contained_error_text: "var(--btn_contained_error_text)",
|
|
206
|
+
btn_outlined_primary_border: "var(--btn_outlined_primary_border)",
|
|
207
|
+
btn_outlined_primary_text: "var(--btn_outlined_primary_text)",
|
|
208
|
+
btn_ghost_primary_text: "var(--btn_ghost_primary_text)",
|
|
209
|
+
btn_ghost_secondary_text: "var(--btn_ghost_secondary_text)",
|
|
210
|
+
btn_ghost_error_text: "var(--btn_ghost_error_text)",
|
|
211
|
+
btn_selected_primary_bg: "var(--btn_selected_primary_bg)",
|
|
212
|
+
btn_selected_primary_text: "var(--btn_selected_primary_text)",
|
|
213
|
+
btn_selected_secondary_bg: "var(--btn_selected_secondary_bg)",
|
|
214
|
+
btn_selected_secondary_text: "var(--btn_selected_secondary_text)",
|
|
215
|
+
selectcontrol_on: "var(--selectcontrol_on)",
|
|
216
|
+
selectcontrol_off: "var(--selectcontrol_off)",
|
|
217
|
+
selectcontrol_handler: "var(--selectcontrol_handler)",
|
|
218
|
+
selectcontrol_handler_shadow: "var(--selectcontrol_handler_shadow)",
|
|
219
|
+
textfield_bg: "var(--textfield_bg)",
|
|
220
|
+
textfield_border_error: "var(--textfield_border_error)",
|
|
221
|
+
dropdown_divider_border: "var(--dropdown_divider_border)",
|
|
222
|
+
datatable_border_01: "var(--datatable_border_01)",
|
|
223
|
+
datatable_border_02: "var(--datatable_border_02)",
|
|
224
|
+
datatable_zebra: "var(--datatable_zebra)",
|
|
225
|
+
scrollbars_bg: "var(--scrollbars_bg)",
|
|
226
|
+
scrollbars_hover: "var(--scrollbars_hover)",
|
|
227
|
+
scrollbars_pressed: "var(--scrollbars_pressed)",
|
|
228
|
+
modal_overlay: "var(--modal_overlay)",
|
|
229
|
+
tooltip_bg: "var(--tooltip_bg)",
|
|
230
|
+
tooltip_text_normal: "var(--tooltip_text_normal)",
|
|
231
|
+
tooltip_text_medium: "var(--tooltip_text_medium)",
|
|
232
|
+
alert_error_bg: "var(--alert_error_bg)",
|
|
233
|
+
alert_error_border: "var(--alert_error_border)",
|
|
234
|
+
alert_success_bg: "var(--alert_success_bg)",
|
|
235
|
+
alert_success_border: "var(--alert_success_border)",
|
|
236
|
+
alert_info_bg: "var(--alert_info_bg)",
|
|
237
|
+
alert_info_border: "var(--alert_info_border)",
|
|
238
|
+
alert_warning_bg: "var(--alert_warning_bg)",
|
|
239
|
+
alert_warning_border: "var(--alert_warning_border)",
|
|
240
|
+
chip_primary_bg: "var(--chip_primary_bg)",
|
|
241
|
+
chip_primary_text: "var(--chip_primary_text)",
|
|
242
|
+
chip_secondary_bg: "var(--chip_secondary_bg)",
|
|
243
|
+
chip_secondary_text: "var(--chip_secondary_text)",
|
|
244
|
+
chip_error_bg: "var(--chip_error_bg)",
|
|
245
|
+
chip_error_text: "var(--chip_error_text)",
|
|
246
|
+
chip_warning_bg: "var(--chip_warning_bg)",
|
|
247
|
+
chip_warning_text: "var(--chip_warning_text)",
|
|
248
|
+
chip_success_bg: "var(--chip_success_bg)",
|
|
249
|
+
chip_success_text: "var(--chip_success_text)",
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export { base };
|
|
255
|
+
|
|
256
|
+
export default paletteOptions;
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
import { ColorTokenValueBySurface } from "./types";
|
|
2
|
+
|
|
3
|
+
export interface TokenComponentColorValue {
|
|
4
|
+
[component: string]: {
|
|
5
|
+
[token: string]: ColorTokenValueBySurface;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const tokenComponentColor: TokenComponentColorValue = {
|
|
10
|
+
btn: {
|
|
11
|
+
btn_contained_primary_bg: {
|
|
12
|
+
light1: "--lunit_teal_30",
|
|
13
|
+
light2: "--lunit_teal_30",
|
|
14
|
+
dark1: "--lunit_teal_40",
|
|
15
|
+
dark2: "--lunit_teal_40",
|
|
16
|
+
dark3: "--lunit_teal_40",
|
|
17
|
+
dark4: "--lunit_teal_40",
|
|
18
|
+
},
|
|
19
|
+
btn_contained_primary_text: {
|
|
20
|
+
light1: "--grey_95",
|
|
21
|
+
light2: "--grey_95",
|
|
22
|
+
dark1: "--grey_95",
|
|
23
|
+
dark2: "--grey_95",
|
|
24
|
+
dark3: "--grey_95",
|
|
25
|
+
dark4: "--grey_95",
|
|
26
|
+
},
|
|
27
|
+
btn_contained_secondary_bg: {
|
|
28
|
+
light1: "--grey_15",
|
|
29
|
+
light2: "--grey_15",
|
|
30
|
+
dark1: "--grey_60",
|
|
31
|
+
dark2: "--grey_60",
|
|
32
|
+
dark3: "--grey_60",
|
|
33
|
+
dark4: "--grey_60",
|
|
34
|
+
},
|
|
35
|
+
btn_contained_secondary_text: {
|
|
36
|
+
light1: "--grey_95",
|
|
37
|
+
light2: "--grey_95",
|
|
38
|
+
dark1: "--grey_5",
|
|
39
|
+
dark2: "--grey_5",
|
|
40
|
+
dark3: "--grey_5",
|
|
41
|
+
dark4: "--grey_5",
|
|
42
|
+
},
|
|
43
|
+
btn_contained_error_bg: {
|
|
44
|
+
light1: "--red_30",
|
|
45
|
+
light2: "--red_30",
|
|
46
|
+
dark1: "--red_40",
|
|
47
|
+
dark2: "--red_40",
|
|
48
|
+
dark3: "--red_40",
|
|
49
|
+
dark4: "--red_40",
|
|
50
|
+
},
|
|
51
|
+
btn_contained_error_text: {
|
|
52
|
+
light1: "--grey_95",
|
|
53
|
+
light2: "--grey_95",
|
|
54
|
+
dark1: "--grey_95",
|
|
55
|
+
dark2: "--grey_95",
|
|
56
|
+
dark3: "--grey_95",
|
|
57
|
+
dark4: "--grey_95",
|
|
58
|
+
},
|
|
59
|
+
btn_outlined_primary_border: {
|
|
60
|
+
light1: "--lunit_teal_40",
|
|
61
|
+
light2: "--lunit_teal_40",
|
|
62
|
+
dark1: "--lunit_teal_40",
|
|
63
|
+
dark2: "--lunit_teal_40",
|
|
64
|
+
dark3: "--lunit_teal_40",
|
|
65
|
+
dark4: "--lunit_teal_40",
|
|
66
|
+
},
|
|
67
|
+
btn_outlined_primary_text: {
|
|
68
|
+
light1: "--lunit_teal_50",
|
|
69
|
+
light2: "--lunit_teal_50",
|
|
70
|
+
dark1: "--lunit_teal_40",
|
|
71
|
+
dark2: "--lunit_teal_40",
|
|
72
|
+
dark3: "--lunit_teal_40",
|
|
73
|
+
dark4: "--lunit_teal_40",
|
|
74
|
+
},
|
|
75
|
+
btn_ghost_primary_text: {
|
|
76
|
+
light1: "--lunit_teal_50",
|
|
77
|
+
light2: "--lunit_teal_50",
|
|
78
|
+
dark1: "--lunit_teal_40",
|
|
79
|
+
dark2: "--lunit_teal_40",
|
|
80
|
+
dark3: "--lunit_teal_40",
|
|
81
|
+
dark4: "--lunit_teal_40",
|
|
82
|
+
},
|
|
83
|
+
btn_ghost_secondary_text: {
|
|
84
|
+
light1: "--grey_95",
|
|
85
|
+
light2: "--grey_95",
|
|
86
|
+
dark1: "--grey_5",
|
|
87
|
+
dark2: "--grey_5",
|
|
88
|
+
dark3: "--grey_5",
|
|
89
|
+
dark4: "--grey_5",
|
|
90
|
+
},
|
|
91
|
+
btn_ghost_error_text: {
|
|
92
|
+
light1: "--red_40",
|
|
93
|
+
light2: "--red_40",
|
|
94
|
+
dark1: "--red_40",
|
|
95
|
+
dark2: "--red_40",
|
|
96
|
+
dark3: "--red_30",
|
|
97
|
+
dark4: "--red_30",
|
|
98
|
+
},
|
|
99
|
+
btn_selected_primary_bg: {
|
|
100
|
+
light1: "--lunit_teal_80",
|
|
101
|
+
light2: "--lunit_teal_80",
|
|
102
|
+
dark1: "--lunit_teal_10",
|
|
103
|
+
dark2: "--lunit_teal_10",
|
|
104
|
+
dark3: "--lunit_teal_10",
|
|
105
|
+
dark4: "--lunit_teal_10",
|
|
106
|
+
},
|
|
107
|
+
btn_selected_primary_text: {
|
|
108
|
+
light1: "--lunit_teal_10",
|
|
109
|
+
light2: "--lunit_teal_10",
|
|
110
|
+
dark1: "--lunit_teal_80",
|
|
111
|
+
dark2: "--lunit_teal_80",
|
|
112
|
+
dark3: "--lunit_teal_80",
|
|
113
|
+
dark4: "--lunit_teal_80",
|
|
114
|
+
},
|
|
115
|
+
btn_selected_secondary_bg: {
|
|
116
|
+
light1: "--lunit_teal_10",
|
|
117
|
+
light2: "--lunit_teal_10",
|
|
118
|
+
dark1: "--grey_80",
|
|
119
|
+
dark2: "--grey_75",
|
|
120
|
+
dark3: "--grey_70",
|
|
121
|
+
dark4: "--grey_75",
|
|
122
|
+
},
|
|
123
|
+
btn_selected_secondary_text: {
|
|
124
|
+
light1: "--grey_95",
|
|
125
|
+
light2: "--grey_95",
|
|
126
|
+
dark1: "--lunit_teal_30",
|
|
127
|
+
dark2: "--lunit_teal_30",
|
|
128
|
+
dark3: "--lunit_teal_30",
|
|
129
|
+
dark4: "--lunit_teal_30",
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
selectControl: {
|
|
133
|
+
selectcontrol_on: {
|
|
134
|
+
light1: "--lunit_teal_40",
|
|
135
|
+
light2: "--lunit_teal_40",
|
|
136
|
+
dark1: "--lunit_teal_40",
|
|
137
|
+
dark2: "--lunit_teal_40",
|
|
138
|
+
dark3: "--lunit_teal_40",
|
|
139
|
+
dark4: "--lunit_teal_40",
|
|
140
|
+
},
|
|
141
|
+
selectcontrol_off: {
|
|
142
|
+
light1: "--grey_40",
|
|
143
|
+
light2: "--grey_40",
|
|
144
|
+
dark1: "--grey_40",
|
|
145
|
+
dark2: "--grey_40",
|
|
146
|
+
dark3: "--grey_40",
|
|
147
|
+
dark4: "--grey_40",
|
|
148
|
+
},
|
|
149
|
+
selectcontrol_handler: {
|
|
150
|
+
light1: "--grey_0",
|
|
151
|
+
light2: "--grey_0",
|
|
152
|
+
dark1: "--grey_0",
|
|
153
|
+
dark2: "--grey_0",
|
|
154
|
+
dark3: "--grey_0",
|
|
155
|
+
dark4: "--grey_0",
|
|
156
|
+
},
|
|
157
|
+
selectcontrol_handler_shadow: {
|
|
158
|
+
light1: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
|
|
159
|
+
light2: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
|
|
160
|
+
dark1: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
|
|
161
|
+
dark2: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
|
|
162
|
+
dark3: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
|
|
163
|
+
dark4: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
textFields: {
|
|
167
|
+
textfield_bg: {
|
|
168
|
+
light1: "--grey_10",
|
|
169
|
+
light2: "--grey_0",
|
|
170
|
+
dark1: "--grey_80",
|
|
171
|
+
dark2: "--grey_75",
|
|
172
|
+
dark3: "--grey_70",
|
|
173
|
+
dark4: "--grey_75",
|
|
174
|
+
},
|
|
175
|
+
textfield_border_error: {
|
|
176
|
+
light1: "--red_40",
|
|
177
|
+
light2: "--red_40",
|
|
178
|
+
dark1: "--red_40",
|
|
179
|
+
dark2: "--red_40",
|
|
180
|
+
dark3: "--red_40",
|
|
181
|
+
dark4: "--red_40",
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
dropdown: {
|
|
185
|
+
dropdown_divider_border: {
|
|
186
|
+
light1: "--grey_15",
|
|
187
|
+
light2: "--grey_15",
|
|
188
|
+
dark1: "--grey_60",
|
|
189
|
+
dark2: "--grey_60",
|
|
190
|
+
dark3: "--grey_60",
|
|
191
|
+
dark4: "--grey_60",
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
dataTable: {
|
|
195
|
+
datatable_border_01: {
|
|
196
|
+
light1: "--grey_20",
|
|
197
|
+
light2: "--grey_30",
|
|
198
|
+
dark1: "--grey_50",
|
|
199
|
+
dark2: "--grey_50",
|
|
200
|
+
dark3: "--grey_50",
|
|
201
|
+
dark4: "--grey_40",
|
|
202
|
+
},
|
|
203
|
+
datatable_border_02: {
|
|
204
|
+
light1: "--grey_10",
|
|
205
|
+
light2: "--grey_15",
|
|
206
|
+
dark1: "--grey_80",
|
|
207
|
+
dark2: "--grey_75",
|
|
208
|
+
dark3: "--grey_75",
|
|
209
|
+
dark4: "--grey_60",
|
|
210
|
+
},
|
|
211
|
+
datatable_zebra: {
|
|
212
|
+
light1: "rgba(0, 0, 0, 0.03)", // "--grey_100 3%",
|
|
213
|
+
light2: "rgba(0, 0, 0, 0.03)", // "--grey_100 3%",
|
|
214
|
+
dark1: "rgba(255, 255, 255, 0.03)", // "--grey_00 3%",
|
|
215
|
+
dark2: "rgba(255, 255, 255, 0.03)", // "--grey_00 3%",
|
|
216
|
+
dark3: "rgba(255, 255, 255, 0.03)", // "--grey_00 3%",
|
|
217
|
+
dark4: "rgba(255, 255, 255, 0.03)", // "--grey_00 3%",
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
scrollbars: {
|
|
221
|
+
scrollbars_bg: {
|
|
222
|
+
light1: "--grey_20",
|
|
223
|
+
light2: "--grey_20",
|
|
224
|
+
dark1: "--grey_60",
|
|
225
|
+
dark2: "--grey_60",
|
|
226
|
+
dark3: "--grey_50",
|
|
227
|
+
dark4: "--grey_50",
|
|
228
|
+
},
|
|
229
|
+
scrollbars_hover: {
|
|
230
|
+
light1: "--grey_30",
|
|
231
|
+
light2: "--grey_30",
|
|
232
|
+
dark1: "--grey_50",
|
|
233
|
+
dark2: "--grey_50",
|
|
234
|
+
dark3: "--grey_40",
|
|
235
|
+
dark4: "--grey_40",
|
|
236
|
+
},
|
|
237
|
+
scrollbars_pressed: {
|
|
238
|
+
light1: "--grey_50",
|
|
239
|
+
light2: "--grey_50",
|
|
240
|
+
dark1: "--grey_30",
|
|
241
|
+
dark2: "--grey_30",
|
|
242
|
+
dark3: "--grey_20",
|
|
243
|
+
dark4: "--grey_20",
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
modal: {
|
|
247
|
+
modal_overlay: {
|
|
248
|
+
light1: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
|
|
249
|
+
light2: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
|
|
250
|
+
dark1: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
|
|
251
|
+
dark2: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
|
|
252
|
+
dark3: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
|
|
253
|
+
dark4: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
tooltip: {
|
|
257
|
+
tooltip_bg: {
|
|
258
|
+
light1: "--grey_70",
|
|
259
|
+
light2: "--grey_70",
|
|
260
|
+
dark1: "--grey_70",
|
|
261
|
+
dark2: "--grey_70",
|
|
262
|
+
dark3: "--grey_70",
|
|
263
|
+
dark4: "--grey_70",
|
|
264
|
+
},
|
|
265
|
+
tooltip_text_normal: {
|
|
266
|
+
light1: "--grey_5",
|
|
267
|
+
light2: "--grey_5",
|
|
268
|
+
dark1: "--grey_5",
|
|
269
|
+
dark2: "--grey_5",
|
|
270
|
+
dark3: "--grey_5",
|
|
271
|
+
dark4: "--grey_5",
|
|
272
|
+
},
|
|
273
|
+
tooltip_text_medium: {
|
|
274
|
+
light1: "--grey_40",
|
|
275
|
+
light2: "--grey_40",
|
|
276
|
+
dark1: "--grey_40",
|
|
277
|
+
dark2: "--grey_40",
|
|
278
|
+
dark3: "--grey_40",
|
|
279
|
+
dark4: "--grey_40",
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
alert: {
|
|
283
|
+
alert_error_bg: {
|
|
284
|
+
light1: "rgba(250, 77, 86, 0.16)", // "--red_40 16%",
|
|
285
|
+
light2: "rgba(250, 77, 86, 0.16)", // "--red_40 16%",
|
|
286
|
+
dark1: "rgba(255, 131, 137, 0.32)", // "--red_30 32%",
|
|
287
|
+
dark2: "rgba(255, 131, 137, 0.32)", // "--red_30 32%",
|
|
288
|
+
dark3: "rgba(255, 131, 137, 0.32)", // "--red_30 32%",
|
|
289
|
+
dark4: "rgba(255, 131, 137, 0.32)", // "--red_30 32%",
|
|
290
|
+
},
|
|
291
|
+
alert_error_border: {
|
|
292
|
+
light1: "--red_40",
|
|
293
|
+
light2: "--red_40",
|
|
294
|
+
dark1: "--red_30",
|
|
295
|
+
dark2: "--red_30",
|
|
296
|
+
dark3: "--red_30",
|
|
297
|
+
dark4: "--red_30",
|
|
298
|
+
},
|
|
299
|
+
alert_success_bg: {
|
|
300
|
+
light1: "rgba(36, 161, 72, 0.16)", // "--green_40 16%",
|
|
301
|
+
light2: "rgba(36, 161, 72, 0.16)", // "--green_40 16%",
|
|
302
|
+
dark1: "rgba(66, 190, 101, 0.32)", // "--green_30 32%",
|
|
303
|
+
dark2: "rgba(66, 190, 101, 0.32)", // "--green_30 32%",
|
|
304
|
+
dark3: "rgba(66, 190, 101, 0.32)", // "--green_30 32%",
|
|
305
|
+
dark4: "rgba(66, 190, 101, 0.32)", // "--green_30 32%",
|
|
306
|
+
},
|
|
307
|
+
alert_success_border: {
|
|
308
|
+
light1: "--green_30",
|
|
309
|
+
light2: "--green_30",
|
|
310
|
+
dark1: "--green_30",
|
|
311
|
+
dark2: "--green_30",
|
|
312
|
+
dark3: "--green_30",
|
|
313
|
+
dark4: "--green_30",
|
|
314
|
+
},
|
|
315
|
+
alert_info_bg: {
|
|
316
|
+
light1: "rgba(69, 137, 255, 0.16)", // "--blue_40 16%",
|
|
317
|
+
light2: "rgba(69, 137, 255, 0.16)", // "--blue_40 16%",
|
|
318
|
+
dark1: "rgba(120, 169, 255, 0.32)", // "--blue_30 32%",
|
|
319
|
+
dark2: "rgba(120, 169, 255, 0.32)", // "--blue_30 32%",
|
|
320
|
+
dark3: "rgba(120, 169, 255, 0.32)", // "--blue_30 32%",
|
|
321
|
+
dark4: "rgba(120, 169, 255, 0.32)", // "--blue_30 32%",
|
|
322
|
+
},
|
|
323
|
+
alert_info_border: {
|
|
324
|
+
light1: "--blue_40",
|
|
325
|
+
light2: "--blue_40",
|
|
326
|
+
dark1: "--blue_30",
|
|
327
|
+
dark2: "--blue_30",
|
|
328
|
+
dark3: "--blue_30",
|
|
329
|
+
dark4: "--blue_30",
|
|
330
|
+
},
|
|
331
|
+
alert_warning_bg: {
|
|
332
|
+
light1: "rgba(245, 134, 54, 0.16)", // "--orange_40 16%",
|
|
333
|
+
light2: "rgba(245, 134, 54, 0.16)", // "--orange_40 16%",
|
|
334
|
+
dark1: "rgba(255, 155, 84, 0.32)", // "--orange_30 32%",
|
|
335
|
+
dark2: "rgba(255, 155, 84, 0.32)", // "--orange_30 32%",
|
|
336
|
+
dark3: "rgba(255, 155, 84, 0.32)", // "--orange_30 32%",
|
|
337
|
+
dark4: "rgba(255, 155, 84, 0.32)", // "--orange_30 32%",
|
|
338
|
+
},
|
|
339
|
+
alert_warning_border: {
|
|
340
|
+
light1: "--orange_40",
|
|
341
|
+
light2: "--orange_40",
|
|
342
|
+
dark1: "--orange_30",
|
|
343
|
+
dark2: "--orange_30",
|
|
344
|
+
dark3: "--orange_30",
|
|
345
|
+
dark4: "--orange_30",
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
chip: {
|
|
349
|
+
chip_primary_bg: {
|
|
350
|
+
light1: "--lunit_teal_20",
|
|
351
|
+
light2: "--lunit_teal_20",
|
|
352
|
+
dark1: "--lunit_teal_60",
|
|
353
|
+
dark2: "--lunit_teal_60",
|
|
354
|
+
dark3: "--lunit_teal_60",
|
|
355
|
+
dark4: "--lunit_teal_60",
|
|
356
|
+
},
|
|
357
|
+
chip_primary_text: {
|
|
358
|
+
light1: "--lunit_teal_50",
|
|
359
|
+
light2: "--lunit_teal_50",
|
|
360
|
+
dark1: "--lunit_teal_40",
|
|
361
|
+
dark2: "--lunit_teal_40",
|
|
362
|
+
dark3: "--lunit_teal_40",
|
|
363
|
+
dark4: "--lunit_teal_40",
|
|
364
|
+
},
|
|
365
|
+
chip_secondary_bg: {
|
|
366
|
+
light1: "--grey_15",
|
|
367
|
+
light2: "--grey_15",
|
|
368
|
+
dark1: "--grey_60",
|
|
369
|
+
dark2: "--grey_60",
|
|
370
|
+
dark3: "--grey_60",
|
|
371
|
+
dark4: "--grey_60",
|
|
372
|
+
},
|
|
373
|
+
chip_secondary_text: {
|
|
374
|
+
light1: "--grey_40",
|
|
375
|
+
light2: "--grey_40",
|
|
376
|
+
dark1: "--grey_30",
|
|
377
|
+
dark2: "--grey_30",
|
|
378
|
+
dark3: "--grey_30",
|
|
379
|
+
dark4: "--grey_30",
|
|
380
|
+
},
|
|
381
|
+
chip_error_bg: {
|
|
382
|
+
light1: "--red_20",
|
|
383
|
+
light2: "--red_20",
|
|
384
|
+
dark1: "--red_60",
|
|
385
|
+
dark2: "--red_60",
|
|
386
|
+
dark3: "--red_60",
|
|
387
|
+
dark4: "--red_60",
|
|
388
|
+
},
|
|
389
|
+
chip_error_text: {
|
|
390
|
+
light1: "--red_40",
|
|
391
|
+
light2: "--red_40",
|
|
392
|
+
dark1: "--red_30",
|
|
393
|
+
dark2: "--red_30",
|
|
394
|
+
dark3: "--red_30",
|
|
395
|
+
dark4: "--red_30",
|
|
396
|
+
},
|
|
397
|
+
chip_warning_bg: {
|
|
398
|
+
light1: "--orange_20",
|
|
399
|
+
light2: "--orange_20",
|
|
400
|
+
dark1: "--orange_60",
|
|
401
|
+
dark2: "--orange_60",
|
|
402
|
+
dark3: "--orange_60",
|
|
403
|
+
dark4: "--orange_60",
|
|
404
|
+
},
|
|
405
|
+
chip_warning_text: {
|
|
406
|
+
light1: "--orange_40",
|
|
407
|
+
light2: "--orange_40",
|
|
408
|
+
dark1: "--orange_30",
|
|
409
|
+
dark2: "--orange_30",
|
|
410
|
+
dark3: "--orange_30",
|
|
411
|
+
dark4: "--orange_30",
|
|
412
|
+
},
|
|
413
|
+
chip_success_bg: {
|
|
414
|
+
light1: "--green_20",
|
|
415
|
+
light2: "--green_20",
|
|
416
|
+
dark1: "--green_60",
|
|
417
|
+
dark2: "--green_60",
|
|
418
|
+
dark3: "--green_60",
|
|
419
|
+
dark4: "--green_60",
|
|
420
|
+
},
|
|
421
|
+
chip_success_text: {
|
|
422
|
+
light1: "--green_40",
|
|
423
|
+
light2: "--green_40",
|
|
424
|
+
dark1: "--green_30",
|
|
425
|
+
dark2: "--green_30",
|
|
426
|
+
dark3: "--green_30",
|
|
427
|
+
dark4: "--green_30",
|
|
428
|
+
},
|
|
429
|
+
},
|
|
430
|
+
};
|