@lunit/design-system 2.1.0 → 2.2.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 +1 -1
- package/README.md +22 -21
- package/dist/cjs/components/Alert/index.js +1 -1
- package/dist/cjs/components/Alert/index.js.map +1 -1
- package/dist/cjs/components/Button/index.js +1 -1
- package/dist/cjs/components/Button/index.js.map +1 -1
- package/dist/cjs/components/Checkbox/index.js +1 -1
- package/dist/cjs/components/Checkbox/index.js.map +1 -1
- package/dist/cjs/components/Chip/index.js +1 -1
- package/dist/cjs/components/Chip/index.js.map +1 -1
- package/dist/cjs/components/DataTable/index.js.map +1 -1
- package/dist/cjs/components/DatePicker/index.js.map +1 -1
- package/dist/cjs/components/Dialog/index.js +1 -1
- package/dist/cjs/components/Dialog/index.js.map +1 -1
- package/dist/cjs/components/Dropdown/index.js +1 -1
- package/dist/cjs/components/Dropdown/index.js.map +1 -1
- package/dist/cjs/components/FormLabel/index.js +1 -1
- package/dist/cjs/components/FormLabel/index.js.map +1 -1
- package/dist/cjs/components/Radio/index.js +1 -1
- package/dist/cjs/components/Radio/index.js.map +1 -1
- package/dist/cjs/components/RadioGroup/index.js.map +1 -1
- package/dist/cjs/components/TextField/index.js +1 -1
- package/dist/cjs/components/TextField/index.js.map +1 -1
- package/dist/cjs/components/Toggle/index.js +1 -1
- package/dist/cjs/components/Toggle/index.js.map +1 -1
- package/dist/cjs/components/ToggleButton/index.js +1 -1
- package/dist/cjs/components/ToggleButton/index.js.map +1 -1
- package/dist/cjs/components/Tooltip/index.js.map +1 -1
- package/dist/cjs/components/Typography/index.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/components/Alert/Alert.js +8 -8
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/Alert/Alert.styled.js +26 -26
- package/dist/components/Alert/Alert.styled.js.map +1 -1
- package/dist/components/Alert/Alert.utils.js +9 -9
- package/dist/components/Alert/Alert.utils.js.map +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Button/Button.js +23 -17
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.styled.js +88 -88
- package/dist/components/Button/Button.styled.js.map +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Button/utils/getButtonPaddingBySizeAndKind.js +9 -9
- package/dist/components/Button/utils/getButtonPaddingBySizeAndKind.js.map +1 -1
- package/dist/components/Button/utils/getHoverStyle.js +1 -1
- package/dist/components/Button/utils/getHoverStyle.js.map +1 -1
- package/dist/components/Button/utils/getIconButtonPaddingBySizeAndKind.js +6 -12
- package/dist/components/Button/utils/getIconButtonPaddingBySizeAndKind.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +9 -9
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chip/Chip.js +29 -26
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/Chip/Chip.styled.js +52 -52
- package/dist/components/Chip/Chip.styled.js.map +1 -1
- package/dist/components/Chip/consts.js +5 -5
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/DataTable/DataTable.js +1 -1
- package/dist/components/DataTable/index.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Dialog/Dialog.js +18 -18
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/Dialog.styled.js +90 -90
- package/dist/components/Dialog/Dialog.styled.js.map +1 -1
- package/dist/components/Dialog/components/DialogAction.js +6 -6
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +23 -21
- package/dist/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/Dropdown/Dropdown.styled.js +85 -86
- package/dist/components/Dropdown/Dropdown.styled.js.map +1 -1
- package/dist/components/Dropdown/DropdownItem.js +14 -14
- package/dist/components/Dropdown/DropdownItem.js.map +1 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/FormLabel/FormLabel.js +1 -1
- package/dist/components/FormLabel/FormLabel.styled.js +2 -2
- package/dist/components/FormLabel/FormLabel.styled.js.map +1 -1
- package/dist/components/FormLabel/index.js +1 -1
- package/dist/components/Radio/Radio.js +8 -8
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/TextField/TextField.js +8 -8
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextField.style.js +112 -112
- package/dist/components/TextField/TextField.style.js.map +1 -1
- package/dist/components/TextField/TextFieldIcon.js +2 -2
- package/dist/components/TextField/TextFieldIcon.js.map +1 -1
- package/dist/components/TextField/index.js +1 -1
- package/dist/components/Toast/Toast.js +13 -13
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/Toast.styled.js +26 -26
- package/dist/components/Toast/Toast.utils.js +3 -3
- package/dist/components/Toast/Toast.utils.js.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toggle/Toggle.js +3 -4
- package/dist/components/Toggle/Toggle.js.map +1 -1
- package/dist/components/Toggle/Toggle.styled.js +30 -30
- package/dist/components/Toggle/Toggle.styled.js.map +1 -1
- package/dist/components/Toggle/index.js +1 -1
- package/dist/components/ToggleButton/ToggleButton.js +6 -6
- package/dist/components/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.styled.js +20 -20
- package/dist/components/ToggleButton/ToggleButton.styled.js.map +1 -1
- package/dist/components/ToggleButton/index.js +1 -1
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -1
- package/dist/components/ToggleButtonGroup/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.js.map +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/foundation/Elevation/index.js +27 -27
- package/dist/foundation/Elevation/utils.js +1 -1
- package/dist/foundation/Elevation/utils.js.map +1 -1
- package/dist/foundation/Typography/index.js +35 -35
- package/dist/foundation/Typography/index.js.map +1 -1
- package/dist/foundation/Typography/tokens.js +136 -136
- package/dist/foundation/Typography/tokens.js.map +1 -1
- package/dist/foundation/colors/base/blue.js +12 -12
- package/dist/foundation/colors/base/green.js +12 -12
- package/dist/foundation/colors/base/grey.js +28 -28
- package/dist/foundation/colors/base/index.js +11 -11
- package/dist/foundation/colors/base/lunitGreen.js +11 -11
- package/dist/foundation/colors/base/lunitTeal.js +12 -12
- package/dist/foundation/colors/base/magenta.js +12 -12
- package/dist/foundation/colors/base/opacity.js +4 -4
- package/dist/foundation/colors/base/orange.js +12 -12
- package/dist/foundation/colors/base/purple.js +12 -12
- package/dist/foundation/colors/base/red.js +12 -12
- package/dist/foundation/colors/base/yellow.js +12 -12
- package/dist/foundation/colors/index.js +119 -121
- package/dist/foundation/colors/index.js.map +1 -1
- package/dist/foundation/colors/token/component.js +184 -212
- package/dist/foundation/colors/token/component.js.map +1 -1
- package/dist/foundation/colors/token/core.js +112 -133
- package/dist/foundation/colors/token/core.js.map +1 -1
- package/dist/foundation/colors/token/index.js +2 -2
- package/dist/foundation/index.js +5 -5
- package/dist/index.js +20 -20
- package/dist/theme.js +6 -6
- package/dist/types/components/Alert/Alert.d.ts +2 -2
- package/dist/types/components/Alert/Alert.styled.d.ts +1 -2
- package/dist/types/components/Alert/Alert.types.d.ts +2 -2
- package/dist/types/components/Alert/Alert.utils.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/Button/Button.styled.d.ts +249 -265
- package/dist/types/components/Button/Button.types.d.ts +16 -16
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/Button/utils/getButtonPaddingBySizeAndKind.d.ts +4 -4
- package/dist/types/components/Button/utils/getHoverStyle.d.ts +2 -1
- package/dist/types/components/Button/utils/getIconButtonPaddingBySizeAndKind.d.ts +4 -4
- package/dist/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/Chip/Chip.d.ts +1 -1
- package/dist/types/components/Chip/Chip.styled.d.ts +6 -79
- package/dist/types/components/Chip/Chip.types.d.ts +15 -14
- package/dist/types/components/Chip/index.d.ts +1 -1
- package/dist/types/components/DataTable/index.d.ts +1 -1
- package/dist/types/components/DatePicker/index.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.d.ts +11 -11
- package/dist/types/components/Dialog/Dialog.styled.d.ts +3 -4
- package/dist/types/components/Dialog/components/DialogAction.d.ts +2 -2
- package/dist/types/components/Dialog/index.d.ts +2 -2
- package/dist/types/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/types/components/Dropdown/Dropdown.styled.d.ts +4 -39
- package/dist/types/components/Dropdown/Dropdown.types.d.ts +5 -5
- package/dist/types/components/Dropdown/DropdownItem.d.ts +3 -3
- package/dist/types/components/Dropdown/index.d.ts +3 -3
- package/dist/types/components/FormLabel/FormLabel.d.ts +1 -1
- package/dist/types/components/FormLabel/index.d.ts +1 -1
- package/dist/types/components/Radio/Radio.d.ts +1 -1
- package/dist/types/components/Radio/index.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +1 -1
- package/dist/types/components/TextField/TextField.d.ts +2 -2
- package/dist/types/components/TextField/TextField.style.d.ts +3 -4
- package/dist/types/components/TextField/TextField.types.d.ts +6 -6
- package/dist/types/components/TextField/TextFieldIcon.d.ts +2 -2
- package/dist/types/components/TextField/index.d.ts +2 -2
- package/dist/types/components/Toast/Toast.d.ts +2 -2
- package/dist/types/components/Toast/Toast.types.d.ts +3 -3
- package/dist/types/components/Toast/Toast.utils.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +2 -2
- package/dist/types/components/Toggle/Toggle.d.ts +1 -1
- package/dist/types/components/Toggle/Toggle.styled.d.ts +2 -2
- package/dist/types/components/Toggle/Toggle.types.d.ts +3 -3
- package/dist/types/components/Toggle/index.d.ts +1 -1
- package/dist/types/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/components/ToggleButton/ToggleButton.styled.d.ts +2 -34
- package/dist/types/components/ToggleButton/ToggleButton.types.d.ts +10 -10
- package/dist/types/components/ToggleButton/index.d.ts +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/types/components/ToggleButtonGroup/index.d.ts +1 -1
- package/dist/types/components/Tooltip/index.d.ts +1 -1
- package/dist/types/components/Typography/Typography.d.ts +6 -6
- package/dist/types/components/Typography/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/foundation/Elevation/index.d.ts +22 -22
- package/dist/types/foundation/Typography/index.d.ts +78 -78
- package/dist/types/foundation/Typography/tokens.d.ts +69 -69
- package/dist/types/foundation/colors/base/index.d.ts +11 -11
- package/dist/types/foundation/colors/index.d.ts +13 -20
- package/dist/types/foundation/colors/token/component.d.ts +1 -1
- package/dist/types/foundation/colors/token/core.d.ts +1 -1
- package/dist/types/foundation/colors/token/index.d.ts +2 -2
- package/dist/types/foundation/colors/types.d.ts +0 -7
- package/dist/types/foundation/index.d.ts +4 -11
- package/dist/types/foundation/spacing.d.ts +1 -1
- package/dist/types/index.d.ts +20 -20
- package/dist/types/theme.d.ts +1 -1
- package/package.json +22 -26
- package/src/components/Alert/Alert.styled.ts +39 -49
- package/src/components/Alert/Alert.tsx +10 -16
- package/src/components/Alert/Alert.types.ts +2 -2
- package/src/components/Alert/Alert.utils.ts +13 -22
- package/src/components/Alert/index.ts +1 -1
- package/src/components/Button/Button.styled.ts +98 -101
- package/src/components/Button/Button.tsx +71 -69
- package/src/components/Button/Button.types.ts +19 -21
- package/src/components/Button/index.ts +1 -1
- package/src/components/Button/utils/getButtonPaddingBySizeAndKind.ts +13 -13
- package/src/components/Button/utils/getHoverStyle.ts +4 -2
- package/src/components/Button/utils/getIconButtonPaddingBySizeAndKind.ts +10 -19
- package/src/components/Checkbox/Checkbox.tsx +13 -25
- package/src/components/Checkbox/index.ts +1 -1
- package/src/components/Chip/Chip.styled.ts +69 -72
- package/src/components/Chip/Chip.tsx +33 -55
- package/src/components/Chip/Chip.types.ts +18 -24
- package/src/components/Chip/consts.ts +5 -5
- package/src/components/Chip/index.ts +1 -1
- package/src/components/DataTable/DataTable.tsx +2 -2
- package/src/components/DataTable/index.ts +1 -1
- package/src/components/DatePicker/DatePicker.tsx +2 -2
- package/src/components/DatePicker/index.ts +1 -1
- package/src/components/Dialog/Dialog.styled.ts +112 -114
- package/src/components/Dialog/Dialog.tsx +41 -46
- package/src/components/Dialog/components/DialogAction.tsx +8 -8
- package/src/components/Dialog/index.ts +3 -3
- package/src/components/Dropdown/Dropdown.styled.tsx +88 -89
- package/src/components/Dropdown/Dropdown.tsx +29 -30
- package/src/components/Dropdown/Dropdown.types.ts +6 -5
- package/src/components/Dropdown/DropdownItem.tsx +18 -29
- package/src/components/Dropdown/index.ts +3 -7
- package/src/components/FormLabel/FormLabel.styled.ts +3 -3
- package/src/components/FormLabel/FormLabel.tsx +3 -3
- package/src/components/FormLabel/index.ts +1 -1
- package/src/components/Radio/Radio.tsx +12 -29
- package/src/components/Radio/index.ts +1 -1
- package/src/components/RadioGroup/index.ts +1 -1
- package/src/components/TextField/TextField.style.ts +123 -132
- package/src/components/TextField/TextField.tsx +50 -62
- package/src/components/TextField/TextField.types.ts +7 -8
- package/src/components/TextField/TextFieldIcon.tsx +4 -7
- package/src/components/TextField/index.ts +2 -2
- package/src/components/Toast/Toast.styled.ts +26 -26
- package/src/components/Toast/Toast.tsx +14 -28
- package/src/components/Toast/Toast.types.ts +3 -8
- package/src/components/Toast/Toast.utils.ts +5 -8
- package/src/components/Toast/index.tsx +2 -2
- package/src/components/Toggle/Toggle.styled.ts +31 -32
- package/src/components/Toggle/Toggle.tsx +5 -11
- package/src/components/Toggle/Toggle.types.ts +3 -3
- package/src/components/Toggle/index.ts +1 -1
- package/src/components/ToggleButton/ToggleButton.styled.ts +47 -49
- package/src/components/ToggleButton/ToggleButton.tsx +91 -97
- package/src/components/ToggleButton/ToggleButton.types.ts +10 -10
- package/src/components/ToggleButton/index.ts +1 -1
- package/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx +3 -8
- package/src/components/ToggleButtonGroup/index.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +2 -2
- package/src/components/Tooltip/index.ts +1 -1
- package/src/components/Typography/Typography.tsx +7 -10
- package/src/components/Typography/index.ts +1 -1
- package/src/components/index.ts +2 -2
- package/src/foundation/Elevation/index.ts +27 -27
- package/src/foundation/Elevation/utils.ts +14 -8
- package/src/foundation/Typography/index.ts +58 -57
- package/src/foundation/Typography/tokens.ts +138 -138
- package/src/foundation/colors/base/blue.ts +12 -12
- package/src/foundation/colors/base/green.ts +12 -12
- package/src/foundation/colors/base/grey.ts +28 -28
- package/src/foundation/colors/base/index.ts +11 -11
- package/src/foundation/colors/base/lunitGreen.ts +11 -11
- package/src/foundation/colors/base/lunitTeal.ts +12 -12
- package/src/foundation/colors/base/magenta.ts +12 -12
- package/src/foundation/colors/base/opacity.ts +4 -4
- package/src/foundation/colors/base/orange.ts +12 -12
- package/src/foundation/colors/base/purple.ts +12 -12
- package/src/foundation/colors/base/red.ts +12 -12
- package/src/foundation/colors/base/yellow.ts +12 -12
- package/src/foundation/colors/index.ts +119 -120
- package/src/foundation/colors/token/component.ts +185 -213
- package/src/foundation/colors/token/core.ts +113 -134
- package/src/foundation/colors/token/index.ts +2 -2
- package/src/foundation/colors/types.ts +0 -7
- package/src/foundation/index.ts +8 -8
- package/src/foundation/spacing.ts +1 -1
- package/src/index.ts +20 -20
- package/src/stories/GettingStarted.mdx +9 -15
- package/src/stories/components/Alert/Alert.stories.tsx +39 -46
- package/src/stories/components/Button/BasicButton.stories.tsx +68 -59
- package/src/stories/components/Button/ButtonDocs.mdx +17 -41
- package/src/stories/components/Button/Color.stories.tsx +28 -51
- package/src/stories/components/Button/IconButton.stories.tsx +40 -47
- package/src/stories/components/Button/Kind.stories.tsx +100 -213
- package/src/stories/components/CheckBox/BasicCheckbox.stories.tsx +52 -71
- package/src/stories/components/CheckBox/CheckboxDocs.mdx +6 -6
- package/src/stories/components/Chip/Chip.stories.tsx +75 -75
- package/src/stories/components/Chip/ChipDocs.mdx +12 -13
- package/src/stories/components/DataTable/DataTable.stories.tsx +4 -4
- package/src/stories/components/DatePicker/DatePicker.stories.tsx +4 -4
- package/src/stories/components/Dialog/Dialog.stories.tsx +103 -124
- package/src/stories/components/Dialog/DialogDocs.mdx +7 -13
- package/src/stories/components/Dropdown/Dropdown.stories.tsx +96 -82
- package/src/stories/components/Dropdown/DropdownDocs.mdx +275 -0
- package/src/stories/components/Dropdown/DropdownExamples.stories.tsx +40 -47
- package/src/stories/components/Dropdown/DropdownItem.stories.tsx +113 -98
- package/src/stories/components/SelectControl/RadioGroup.stories.tsx +17 -30
- package/src/stories/components/SelectControl/RadioStatus.stories.tsx +16 -23
- package/src/stories/components/SelectControl/Toggle.stories.tsx +33 -78
- package/src/stories/components/TextField/BasicTextField.stories.tsx +44 -60
- package/src/stories/components/TextField/TextFieldDocs.mdx +8 -12
- package/src/stories/components/TextField/TextFieldMulti.stories.tsx +39 -58
- package/src/stories/components/TextField/TextFieldSingle.stories.tsx +74 -121
- package/src/stories/components/TextField/TextFieldSize.stories.tsx +35 -56
- package/src/stories/components/Toast/Toast.stories.tsx +39 -49
- package/src/stories/components/ToggleButton/Basic.stories.tsx +237 -235
- package/src/stories/components/ToggleButton/ToggleButtonDocs.mdx +10 -14
- package/src/stories/components/ToggleButton/ToggleButtonKind.stories.tsx +144 -203
- package/src/stories/components/ToggleButton/WithIcon.stories.tsx +87 -107
- package/src/stories/components/Tooltip/Tooltip.stories.tsx +4 -4
- package/src/stories/foundation/Elevation/Elevation.stories.tsx +48 -73
- package/src/stories/foundation/Elevation/styled.ts +3 -3
- package/src/stories/foundation/Typography/Typography.mdx +9 -13
- package/src/stories/foundation/Typography/Typography.stories.tsx +25 -41
- package/src/stories/foundation/Typography/TypographyGroup.tsx +14 -25
- package/src/stories/foundation/Typography/const.ts +13 -19
- package/src/stories/foundation/colors/ColorSystem.tsx +42 -40
- package/src/stories/foundation/colors/Colors.stories.tsx +40 -41
- package/src/stories/foundation/colors/Docs.mdx +73 -77
- package/src/stories/foundation/colors/Mui.stories.tsx +6 -8
- package/src/stories/foundation/colors/Token.inComponent.stories.tsx +81 -71
- package/src/stories/foundation/colors/TokenPaletteTable.stories.tsx +7 -7
- package/src/stories/foundation/colors/TokenPaletteTable.tsx +23 -49
- package/src/stories/foundation/colors/styled.ts +26 -26
- package/src/theme.ts +6 -6
- package/src/types.d.ts +1 -1
- package/tsconfig.build.json +1 -5
- package/tsconfig.json +0 -1
- package/src/stories/components/ToggleButton/Group.stories.tsx +0 -221
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PaletteColor } from
|
|
2
|
-
import * as base from
|
|
3
|
-
import { ColorToken } from
|
|
1
|
+
import { PaletteColor } from '@mui/material/styles';
|
|
2
|
+
import * as base from './base';
|
|
3
|
+
import { ColorToken } from './types';
|
|
4
4
|
export type BaseColor = Record<keyof typeof base.blue, PaletteColor>;
|
|
5
5
|
export type GreyColor = Record<keyof typeof base.grey, PaletteColor>;
|
|
6
|
-
declare module
|
|
6
|
+
declare module '@mui/material/styles' {
|
|
7
7
|
interface PaletteOptions {
|
|
8
8
|
lunit_global?: {
|
|
9
9
|
grey: GreyColor;
|
|
@@ -36,20 +36,20 @@ declare module "@mui/material/styles/createPalette" {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
export declare const createColorCssBaseline: () => {
|
|
39
|
-
|
|
39
|
+
':root': {
|
|
40
40
|
[x: string]: string;
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
[
|
|
42
|
+
'.light1': {
|
|
43
|
+
[name: string]: string;
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
[
|
|
45
|
+
'.light2': {
|
|
46
|
+
[name: string]: string;
|
|
47
47
|
};
|
|
48
|
-
|
|
49
|
-
[
|
|
48
|
+
'.dark1': {
|
|
49
|
+
[name: string]: string;
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
[
|
|
51
|
+
'.dark2': {
|
|
52
|
+
[name: string]: string;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
declare const paletteOptions: {
|
|
@@ -124,11 +124,8 @@ declare const paletteOptions: {
|
|
|
124
124
|
icon_success_02: string;
|
|
125
125
|
icon_warning_02: string;
|
|
126
126
|
icon_info_02: string;
|
|
127
|
-
hover: string;
|
|
128
127
|
status_hover: string;
|
|
129
|
-
focused: string;
|
|
130
128
|
status_focused: string;
|
|
131
|
-
selected: string;
|
|
132
129
|
status_selected: string;
|
|
133
130
|
shadow_01: string;
|
|
134
131
|
shadow_02: string;
|
|
@@ -142,14 +139,12 @@ declare const paletteOptions: {
|
|
|
142
139
|
btn_secondary_bg: string;
|
|
143
140
|
btn_error_bg: string;
|
|
144
141
|
btn_primary_border: string;
|
|
145
|
-
btn_secondary_border: string;
|
|
146
142
|
btn_primary_text_1: string;
|
|
147
143
|
btn_primary_text_2: string;
|
|
148
144
|
btn_secondary_text: string;
|
|
149
145
|
btn_error_text: string;
|
|
150
146
|
btn_selected_primary_bg: string;
|
|
151
147
|
btn_selected_primary_text: string;
|
|
152
|
-
btn_selected_secondary_bg: string;
|
|
153
148
|
btn_selected_secondary_text: string;
|
|
154
149
|
btn_selected_tertiary_bg: string;
|
|
155
150
|
btn_selected_tertiary_text: string;
|
|
@@ -160,8 +155,6 @@ declare const paletteOptions: {
|
|
|
160
155
|
textfield_bg: string;
|
|
161
156
|
textfield_border_error: string;
|
|
162
157
|
dropdown_divider_border: string;
|
|
163
|
-
datatable_border_01: string;
|
|
164
|
-
datatable_border_02: string;
|
|
165
158
|
datatable_zebra: string;
|
|
166
159
|
scrollbars_bg: string;
|
|
167
160
|
scrollbars_hover: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './component';
|
|
2
|
+
export * from './core';
|
|
@@ -19,11 +19,8 @@ export interface ColorToken {
|
|
|
19
19
|
icon_success_02: string;
|
|
20
20
|
icon_warning_02: string;
|
|
21
21
|
icon_info_02: string;
|
|
22
|
-
hover: string;
|
|
23
22
|
status_hover: string;
|
|
24
|
-
focused: string;
|
|
25
23
|
status_focused: string;
|
|
26
|
-
selected: string;
|
|
27
24
|
status_selected: string;
|
|
28
25
|
shadow_01: string;
|
|
29
26
|
shadow_02: string;
|
|
@@ -37,14 +34,12 @@ export interface ColorToken {
|
|
|
37
34
|
btn_secondary_bg: string;
|
|
38
35
|
btn_error_bg: string;
|
|
39
36
|
btn_primary_border: string;
|
|
40
|
-
btn_secondary_border: string;
|
|
41
37
|
btn_primary_text_1: string;
|
|
42
38
|
btn_primary_text_2: string;
|
|
43
39
|
btn_secondary_text: string;
|
|
44
40
|
btn_error_text: string;
|
|
45
41
|
btn_selected_primary_bg: string;
|
|
46
42
|
btn_selected_primary_text: string;
|
|
47
|
-
btn_selected_secondary_bg: string;
|
|
48
43
|
btn_selected_secondary_text: string;
|
|
49
44
|
btn_selected_tertiary_bg: string;
|
|
50
45
|
btn_selected_tertiary_text: string;
|
|
@@ -55,8 +50,6 @@ export interface ColorToken {
|
|
|
55
50
|
textfield_bg: string;
|
|
56
51
|
textfield_border_error: string;
|
|
57
52
|
dropdown_divider_border: string;
|
|
58
|
-
datatable_border_01: string;
|
|
59
|
-
datatable_border_02: string;
|
|
60
53
|
datatable_zebra: string;
|
|
61
54
|
scrollbars_bg: string;
|
|
62
55
|
scrollbars_hover: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Components, Theme } from
|
|
2
|
-
import { typographyDefaultProps } from
|
|
3
|
-
export declare const foundationCssBaseline: Components<Theme>[
|
|
1
|
+
import { Components, Theme } from '@mui/material';
|
|
2
|
+
import { typographyDefaultProps } from './Typography';
|
|
3
|
+
export declare const foundationCssBaseline: Components<Theme>['MuiCssBaseline'];
|
|
4
4
|
export declare const typography: import("@mui/material").TypographyVariantsOptions;
|
|
5
5
|
export { typographyDefaultProps };
|
|
6
6
|
export declare const palette: {
|
|
@@ -75,11 +75,8 @@ export declare const palette: {
|
|
|
75
75
|
icon_success_02: string;
|
|
76
76
|
icon_warning_02: string;
|
|
77
77
|
icon_info_02: string;
|
|
78
|
-
hover: string;
|
|
79
78
|
status_hover: string;
|
|
80
|
-
focused: string;
|
|
81
79
|
status_focused: string;
|
|
82
|
-
selected: string;
|
|
83
80
|
status_selected: string;
|
|
84
81
|
shadow_01: string;
|
|
85
82
|
shadow_02: string;
|
|
@@ -93,14 +90,12 @@ export declare const palette: {
|
|
|
93
90
|
btn_secondary_bg: string;
|
|
94
91
|
btn_error_bg: string;
|
|
95
92
|
btn_primary_border: string;
|
|
96
|
-
btn_secondary_border: string;
|
|
97
93
|
btn_primary_text_1: string;
|
|
98
94
|
btn_primary_text_2: string;
|
|
99
95
|
btn_secondary_text: string;
|
|
100
96
|
btn_error_text: string;
|
|
101
97
|
btn_selected_primary_bg: string;
|
|
102
98
|
btn_selected_primary_text: string;
|
|
103
|
-
btn_selected_secondary_bg: string;
|
|
104
99
|
btn_selected_secondary_text: string;
|
|
105
100
|
btn_selected_tertiary_bg: string;
|
|
106
101
|
btn_selected_tertiary_text: string;
|
|
@@ -111,8 +106,6 @@ export declare const palette: {
|
|
|
111
106
|
textfield_bg: string;
|
|
112
107
|
textfield_border_error: string;
|
|
113
108
|
dropdown_divider_border: string;
|
|
114
|
-
datatable_border_01: string;
|
|
115
|
-
datatable_border_02: string;
|
|
116
109
|
datatable_zebra: string;
|
|
117
110
|
scrollbars_bg: string;
|
|
118
111
|
scrollbars_hover: string;
|
|
@@ -151,4 +144,4 @@ export declare const elevation: {
|
|
|
151
144
|
shadow3: string;
|
|
152
145
|
shadow4: string;
|
|
153
146
|
};
|
|
154
|
-
export { spacing } from
|
|
147
|
+
export { spacing } from './spacing';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SpacingOptions } from
|
|
1
|
+
import { SpacingOptions } from '@mui/system';
|
|
2
2
|
export declare const spacing: SpacingOptions;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { default as theme, themeOptions } from
|
|
2
|
-
export { base as baseColors } from
|
|
3
|
-
export { default as Alert } from
|
|
4
|
-
export { default as Button } from
|
|
5
|
-
export { default as Chip } from
|
|
6
|
-
export { default as Checkbox } from
|
|
7
|
-
export { default as Dialog } from
|
|
8
|
-
export { default as DataTable } from
|
|
9
|
-
export { default as DatePicker } from
|
|
10
|
-
export { default as Dropdown, DropdownItem, DropdownDivider, DropdownSubtitle, } from
|
|
11
|
-
export { default as FormLabel } from
|
|
12
|
-
export { default as Radio } from
|
|
13
|
-
export { default as RadioGroup } from
|
|
14
|
-
export { default as TextField } from
|
|
15
|
-
export { default as Toast } from
|
|
16
|
-
export { default as Toggle } from
|
|
17
|
-
export { default as ToggleButton } from
|
|
18
|
-
export { default as ToggleButtonGroup } from
|
|
19
|
-
export { default as Tooltip } from
|
|
20
|
-
export { default as Typography } from
|
|
1
|
+
export { default as theme, themeOptions } from './theme';
|
|
2
|
+
export { base as baseColors } from './foundation/colors';
|
|
3
|
+
export { default as Alert } from './components/Alert';
|
|
4
|
+
export { default as Button } from './components/Button';
|
|
5
|
+
export { default as Chip } from './components/Chip';
|
|
6
|
+
export { default as Checkbox } from './components/Checkbox';
|
|
7
|
+
export { default as Dialog } from './components/Dialog';
|
|
8
|
+
export { default as DataTable } from './components/DataTable';
|
|
9
|
+
export { default as DatePicker } from './components/DatePicker';
|
|
10
|
+
export { default as Dropdown, DropdownItem, DropdownDivider, DropdownSubtitle, } from './components/Dropdown';
|
|
11
|
+
export { default as FormLabel } from './components/FormLabel';
|
|
12
|
+
export { default as Radio } from './components/Radio';
|
|
13
|
+
export { default as RadioGroup } from './components/RadioGroup';
|
|
14
|
+
export { default as TextField } from './components/TextField';
|
|
15
|
+
export { default as Toast } from './components/Toast';
|
|
16
|
+
export { default as Toggle } from './components/Toggle';
|
|
17
|
+
export { default as ToggleButton } from './components/ToggleButton';
|
|
18
|
+
export { default as ToggleButtonGroup } from './components/ToggleButtonGroup';
|
|
19
|
+
export { default as Tooltip } from './components/Tooltip';
|
|
20
|
+
export { default as Typography } from './components/Typography';
|
package/dist/types/theme.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunit/design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "Lunit Design System",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -56,39 +56,34 @@
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=20.0.0"
|
|
61
|
+
},
|
|
59
62
|
"devDependencies": {
|
|
60
63
|
"@babel/core": "^7.17.10",
|
|
61
64
|
"@babel/preset-env": "^7.21.4",
|
|
62
65
|
"@babel/preset-react": "^7.18.6",
|
|
63
66
|
"@babel/preset-typescript": "^7.21.4",
|
|
64
|
-
"@emotion/react": "
|
|
67
|
+
"@emotion/react": "11.14.0",
|
|
65
68
|
"@emotion/styled": "^11.8.1",
|
|
66
|
-
"@mui/icons-material": "^
|
|
67
|
-
"@mui/material": "^
|
|
68
|
-
"@mui/
|
|
69
|
-
"@mui/
|
|
70
|
-
"@storybook/addon-
|
|
71
|
-
"@storybook/addon-
|
|
72
|
-
"@storybook/addon-
|
|
73
|
-
"@storybook/
|
|
74
|
-
"@
|
|
75
|
-
"@storybook/blocks": "^7.0.21",
|
|
76
|
-
"@storybook/react": "^7.0.21",
|
|
77
|
-
"@storybook/react-webpack5": "^7.0.21",
|
|
78
|
-
"@storybook/testing-library": "^0.1.0",
|
|
79
|
-
"@storybook/theming": "^7.0.21",
|
|
69
|
+
"@mui/icons-material": "^7.3.2",
|
|
70
|
+
"@mui/material": "^7.3.2",
|
|
71
|
+
"@mui/system": "^7.3.2",
|
|
72
|
+
"@mui/utils": "^7.3.2",
|
|
73
|
+
"@storybook/addon-docs": "9.1.2",
|
|
74
|
+
"@storybook/addon-links": "9.1.2",
|
|
75
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
76
|
+
"@storybook/react-webpack5": "9.1.2",
|
|
77
|
+
"@testing-library/react": "^16.3.0",
|
|
80
78
|
"@types/lodash": "^4.14.182",
|
|
81
79
|
"babel-loader": "^8.2.5",
|
|
82
80
|
"chromatic": "^6.7.0",
|
|
83
81
|
"dayjs": "^1.11.7",
|
|
84
82
|
"lodash": "^4.17.21",
|
|
85
83
|
"mustache": "^4.2.0",
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"storybook": "^7.0.21",
|
|
89
|
-
"storybook-addon-pseudo-states": "^2.0.1",
|
|
84
|
+
"storybook": "9.1.2",
|
|
85
|
+
"storybook-addon-pseudo-states": "^9.1.2",
|
|
90
86
|
"ts-loader": "^9.3.0",
|
|
91
|
-
"typescript": "^4.6.4",
|
|
92
87
|
"webpack": "^5.72.0",
|
|
93
88
|
"webpack-cli": "^4.9.2",
|
|
94
89
|
"webpack-node-externals": "^3.0.0"
|
|
@@ -97,9 +92,10 @@
|
|
|
97
92
|
"@lunit/design-system-icons": "*"
|
|
98
93
|
},
|
|
99
94
|
"peerDependencies": {
|
|
100
|
-
"@mui/material": "^
|
|
101
|
-
"@
|
|
102
|
-
"
|
|
103
|
-
"react
|
|
95
|
+
"@mui/material": "^7.0.0",
|
|
96
|
+
"@emotion/react": "^11.0.0",
|
|
97
|
+
"@emotion/styled": "^11.0.0",
|
|
98
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
99
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
104
100
|
}
|
|
105
|
-
}
|
|
101
|
+
}
|
|
@@ -1,63 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
styled,
|
|
5
|
-
} from "@mui/material";
|
|
6
|
-
import type { AlertProps } from "./Alert.types";
|
|
7
|
-
import {
|
|
8
|
-
getBorderColor,
|
|
9
|
-
getBackgroundColor,
|
|
10
|
-
getIconColor,
|
|
11
|
-
} from "./Alert.utils";
|
|
1
|
+
import { Alert as MuiAlert, AlertTitle as MuiAlertTitle, styled } from '@mui/material';
|
|
2
|
+
import type { AlertProps } from './Alert.types';
|
|
3
|
+
import { getBorderColor, getBackgroundColor, getIconColor } from './Alert.utils';
|
|
12
4
|
|
|
13
|
-
export const StyledAlert = styled(MuiAlert)<AlertProps>(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
})
|
|
44
|
-
);
|
|
5
|
+
export const StyledAlert = styled(MuiAlert)<AlertProps>(({ severity, theme }) => ({
|
|
6
|
+
'&.MuiAlert-root': {
|
|
7
|
+
display: 'flex',
|
|
8
|
+
padding: '12px',
|
|
9
|
+
borderRadius: '8px',
|
|
10
|
+
border: `1px solid ${getBorderColor(theme, severity)}`,
|
|
11
|
+
backgroundColor: getBackgroundColor(theme, severity),
|
|
12
|
+
boxShadow: 'none',
|
|
13
|
+
},
|
|
14
|
+
'& .MuiAlert-icon': {
|
|
15
|
+
padding: '4px',
|
|
16
|
+
marginRight: '0',
|
|
17
|
+
fontSize: '20px',
|
|
18
|
+
color: `${getIconColor(theme, severity)} !important`,
|
|
19
|
+
},
|
|
20
|
+
'& .MuiAlert-message': {
|
|
21
|
+
width: '100%',
|
|
22
|
+
minHeight: '28px',
|
|
23
|
+
padding: '4px 0 0',
|
|
24
|
+
margin: '0 8px 0 8px',
|
|
25
|
+
},
|
|
26
|
+
'& .MuiAlert-action': {
|
|
27
|
+
margin: 0,
|
|
28
|
+
padding: 0,
|
|
29
|
+
},
|
|
30
|
+
'& .MuiSvgIcon-root': {
|
|
31
|
+
height: '20px',
|
|
32
|
+
width: '20px',
|
|
33
|
+
},
|
|
34
|
+
}));
|
|
45
35
|
|
|
46
36
|
export const StyledAlertTitle = styled(MuiAlertTitle)(({ theme }) => ({
|
|
47
|
-
|
|
37
|
+
'&.MuiAlertTitle-root': {
|
|
48
38
|
marginTop: 0,
|
|
49
39
|
marginBottom: 8,
|
|
50
40
|
fontWeight: 700,
|
|
51
|
-
fontSize:
|
|
52
|
-
lineHeight:
|
|
41
|
+
fontSize: '14px',
|
|
42
|
+
lineHeight: '20px',
|
|
53
43
|
color: theme.palette.lunit_token.core.text_normal,
|
|
54
44
|
},
|
|
55
45
|
}));
|
|
56
46
|
|
|
57
|
-
export const StyledAlertChildren = styled(
|
|
47
|
+
export const StyledAlertChildren = styled('div')(({ theme }) => ({
|
|
58
48
|
color: theme.palette.lunit_token.core.text_normal,
|
|
59
49
|
}));
|
|
60
50
|
|
|
61
|
-
export const StyledBottomAction = styled(
|
|
62
|
-
marginTop:
|
|
51
|
+
export const StyledBottomAction = styled('div')({
|
|
52
|
+
marginTop: '12px',
|
|
63
53
|
});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import Success from
|
|
2
|
-
import Error from
|
|
3
|
-
import Warning from
|
|
4
|
-
import Information from
|
|
5
|
-
import Close from
|
|
6
|
-
import React, { forwardRef } from
|
|
1
|
+
import Success from '@lunit/design-system-icons/Success16';
|
|
2
|
+
import Error from '@lunit/design-system-icons/Error16';
|
|
3
|
+
import Warning from '@lunit/design-system-icons/Warning16';
|
|
4
|
+
import Information from '@lunit/design-system-icons/Information16';
|
|
5
|
+
import Close from '@lunit/design-system-icons/Close';
|
|
6
|
+
import React, { forwardRef } from 'react';
|
|
7
7
|
import {
|
|
8
8
|
StyledAlert,
|
|
9
9
|
StyledAlertTitle,
|
|
10
10
|
StyledAlertChildren,
|
|
11
11
|
StyledBottomAction,
|
|
12
|
-
} from
|
|
13
|
-
import { AlertProps } from
|
|
14
|
-
import Button from
|
|
12
|
+
} from './Alert.styled';
|
|
13
|
+
import { AlertProps } from './Alert.types';
|
|
14
|
+
import Button from '../Button';
|
|
15
15
|
|
|
16
16
|
const MAPPED_ICON = {
|
|
17
17
|
success: <Success variant="filled" />,
|
|
@@ -29,13 +29,7 @@ const Alert = forwardRef<HTMLDivElement, AlertProps>((props, ref) => {
|
|
|
29
29
|
iconMapping={MAPPED_ICON}
|
|
30
30
|
slots={{
|
|
31
31
|
closeButton: () => (
|
|
32
|
-
<Button
|
|
33
|
-
kind="ghost"
|
|
34
|
-
size="small"
|
|
35
|
-
color="secondary"
|
|
36
|
-
icon={<Close />}
|
|
37
|
-
onClick={onClose}
|
|
38
|
-
/>
|
|
32
|
+
<Button kind="ghost" size="small" color="secondary" icon={<Close />} onClick={onClose} />
|
|
39
33
|
),
|
|
40
34
|
}}
|
|
41
35
|
onClose={onClose}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AlertProps as MuiAlertProps } from
|
|
2
|
-
import { ReactNode } from
|
|
1
|
+
import { AlertProps as MuiAlertProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
export interface AlertProps extends MuiAlertProps {
|
|
5
5
|
title?: string;
|
|
@@ -1,47 +1,38 @@
|
|
|
1
|
-
import { AlertColor, Theme } from
|
|
1
|
+
import { AlertColor, Theme } from '@mui/material';
|
|
2
2
|
|
|
3
|
-
export const getBackgroundColor = (
|
|
4
|
-
theme: Theme,
|
|
5
|
-
severity: AlertColor | undefined
|
|
6
|
-
) => {
|
|
3
|
+
export const getBackgroundColor = (theme: Theme, severity: AlertColor | undefined) => {
|
|
7
4
|
switch (severity) {
|
|
8
|
-
case
|
|
5
|
+
case 'info':
|
|
9
6
|
return theme.palette.lunit_token.component.alert_info_bg;
|
|
10
|
-
case
|
|
7
|
+
case 'warning':
|
|
11
8
|
return theme.palette.lunit_token.component.alert_warning_bg;
|
|
12
|
-
case
|
|
9
|
+
case 'error':
|
|
13
10
|
return theme.palette.lunit_token.component.alert_error_bg;
|
|
14
11
|
default:
|
|
15
12
|
return theme.palette.lunit_token.component.alert_success_bg;
|
|
16
13
|
}
|
|
17
14
|
};
|
|
18
15
|
|
|
19
|
-
export const getBorderColor = (
|
|
20
|
-
theme: Theme,
|
|
21
|
-
severity: AlertColor | undefined
|
|
22
|
-
) => {
|
|
16
|
+
export const getBorderColor = (theme: Theme, severity: AlertColor | undefined) => {
|
|
23
17
|
switch (severity) {
|
|
24
|
-
case
|
|
18
|
+
case 'info':
|
|
25
19
|
return theme.palette.lunit_token.component.alert_info_border;
|
|
26
|
-
case
|
|
20
|
+
case 'warning':
|
|
27
21
|
return theme.palette.lunit_token.component.alert_warning_border;
|
|
28
|
-
case
|
|
22
|
+
case 'error':
|
|
29
23
|
return theme.palette.lunit_token.component.alert_error_border;
|
|
30
24
|
default:
|
|
31
25
|
return theme.palette.lunit_token.component.alert_success_border;
|
|
32
26
|
}
|
|
33
27
|
};
|
|
34
28
|
|
|
35
|
-
export const getIconColor = (
|
|
36
|
-
theme: Theme,
|
|
37
|
-
severity: AlertColor | undefined
|
|
38
|
-
) => {
|
|
29
|
+
export const getIconColor = (theme: Theme, severity: AlertColor | undefined) => {
|
|
39
30
|
switch (severity) {
|
|
40
|
-
case
|
|
31
|
+
case 'info':
|
|
41
32
|
return theme.palette.lunit_token.core.icon_info_02;
|
|
42
|
-
case
|
|
33
|
+
case 'warning':
|
|
43
34
|
return theme.palette.lunit_token.core.icon_warning_02;
|
|
44
|
-
case
|
|
35
|
+
case 'error':
|
|
45
36
|
return theme.palette.lunit_token.core.icon_error_02;
|
|
46
37
|
default:
|
|
47
38
|
return theme.palette.lunit_token.core.icon_success_02;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from './Alert';
|