@lunit/design-system 2.2.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.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 +226 -227
- 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 -7
- 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 +3 -4
- 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 -3
- 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 +9 -11
- 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 +17 -25
- 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 +5 -6
- 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 +6 -9
- 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 +6 -6
- package/src/stories/components/Alert/Alert.stories.tsx +38 -45
- 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 -135
- 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 -53
- package/src/stories/components/TextField/TextFieldDocs.mdx +8 -12
- package/src/stories/components/TextField/TextFieldMulti.stories.tsx +39 -55
- package/src/stories/components/TextField/TextFieldSingle.stories.tsx +74 -118
- package/src/stories/components/TextField/TextFieldSize.stories.tsx +35 -55
- package/src/stories/components/Toast/Toast.stories.tsx +35 -50
- package/src/stories/components/ToggleButton/Basic.stories.tsx +115 -152
- package/src/stories/components/ToggleButton/ToggleButtonDocs.mdx +10 -14
- package/src/stories/components/ToggleButton/ToggleButtonKind.stories.tsx +141 -200
- 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 -54
- 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
|
@@ -1,81 +1,83 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Box, Grid, styled } from
|
|
3
|
-
import ArrowForwardIcon from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, Grid, styled } from '@mui/material';
|
|
3
|
+
import ArrowForwardIcon from '@mui/icons-material/ArrowForward';
|
|
4
4
|
|
|
5
|
-
const ColorBox = styled(
|
|
6
|
-
textAlign:
|
|
7
|
-
padding:
|
|
8
|
-
fontSize:
|
|
9
|
-
marginTop:
|
|
5
|
+
const ColorBox = styled('div')(() => ({
|
|
6
|
+
textAlign: 'center',
|
|
7
|
+
padding: '4px 0',
|
|
8
|
+
fontSize: '14px !important',
|
|
9
|
+
marginTop: '5px !important',
|
|
10
10
|
}));
|
|
11
11
|
|
|
12
|
-
const BlockBox = styled(
|
|
13
|
-
backgroundColor:
|
|
14
|
-
textAlign:
|
|
15
|
-
display:
|
|
16
|
-
flexDirection:
|
|
17
|
-
flex:
|
|
18
|
-
padding:
|
|
12
|
+
const BlockBox = styled('div')(() => ({
|
|
13
|
+
backgroundColor: '#d7d3d3',
|
|
14
|
+
textAlign: 'center',
|
|
15
|
+
display: 'flex',
|
|
16
|
+
flexDirection: 'column',
|
|
17
|
+
flex: 'auto',
|
|
18
|
+
padding: '10px',
|
|
19
19
|
}));
|
|
20
20
|
|
|
21
21
|
const ColorSystem = () => {
|
|
22
22
|
return (
|
|
23
|
-
<Box
|
|
23
|
+
<Box
|
|
24
|
+
sx={{
|
|
25
|
+
pb: 10,
|
|
26
|
+
}}
|
|
27
|
+
>
|
|
24
28
|
<Grid container spacing={2}>
|
|
25
29
|
<Grid
|
|
26
|
-
|
|
27
|
-
xs={4}
|
|
30
|
+
size={4}
|
|
28
31
|
sx={{
|
|
29
|
-
display:
|
|
30
|
-
flexDirection:
|
|
32
|
+
display: 'flex',
|
|
33
|
+
flexDirection: 'row',
|
|
31
34
|
}}
|
|
32
35
|
>
|
|
33
36
|
<BlockBox>
|
|
34
37
|
<Box>Color Hex Value</Box>
|
|
35
|
-
<ColorBox bgcolor
|
|
36
|
-
<ColorBox bgcolor
|
|
37
|
-
<ColorBox bgcolor
|
|
38
|
+
<ColorBox sx={{ bgcolor: '#FFFFFF' }}>#FFFFFF</ColorBox>
|
|
39
|
+
<ColorBox sx={{ bgcolor: '#00C9EA' }}>#00C9EA</ColorBox>
|
|
40
|
+
<ColorBox sx={{ bgcolor: '#FFB3B8' }}>#FFB3B8</ColorBox>
|
|
38
41
|
</BlockBox>
|
|
39
42
|
<Box
|
|
40
43
|
sx={{
|
|
41
|
-
width:
|
|
42
|
-
display:
|
|
43
|
-
alignItems:
|
|
44
|
+
width: '20px',
|
|
45
|
+
display: 'flex',
|
|
46
|
+
alignItems: 'center',
|
|
44
47
|
}}
|
|
45
48
|
>
|
|
46
49
|
<ArrowForwardIcon />
|
|
47
50
|
</Box>
|
|
48
51
|
</Grid>
|
|
49
52
|
<Grid
|
|
50
|
-
|
|
51
|
-
xs={4}
|
|
53
|
+
size={4}
|
|
52
54
|
sx={{
|
|
53
|
-
display:
|
|
54
|
-
flexDirection:
|
|
55
|
+
display: 'flex',
|
|
56
|
+
flexDirection: 'row',
|
|
55
57
|
}}
|
|
56
58
|
>
|
|
57
59
|
<BlockBox>
|
|
58
60
|
<Box>Global Palette</Box>
|
|
59
|
-
<ColorBox bgcolor
|
|
60
|
-
<ColorBox bgcolor
|
|
61
|
-
<ColorBox bgcolor
|
|
61
|
+
<ColorBox sx={{ bgcolor: '#FFFFFF' }}>grey_0</ColorBox>
|
|
62
|
+
<ColorBox sx={{ bgcolor: '#00C9EA' }}>lunit_teal_40</ColorBox>
|
|
63
|
+
<ColorBox sx={{ bgcolor: '#FFB3B8' }}>red_20</ColorBox>
|
|
62
64
|
</BlockBox>
|
|
63
65
|
<Box
|
|
64
66
|
sx={{
|
|
65
|
-
width:
|
|
66
|
-
display:
|
|
67
|
-
alignItems:
|
|
67
|
+
width: '20px',
|
|
68
|
+
display: 'flex',
|
|
69
|
+
alignItems: 'center',
|
|
68
70
|
}}
|
|
69
71
|
>
|
|
70
72
|
<ArrowForwardIcon />
|
|
71
73
|
</Box>
|
|
72
74
|
</Grid>
|
|
73
|
-
<Grid
|
|
75
|
+
<Grid size={4}>
|
|
74
76
|
<BlockBox>
|
|
75
77
|
<Box>Color Token</Box>
|
|
76
|
-
<ColorBox bgcolor
|
|
77
|
-
<ColorBox bgcolor
|
|
78
|
-
<ColorBox bgcolor
|
|
78
|
+
<ColorBox sx={{ bgcolor: '#FFFFFF' }}>bg_01</ColorBox>
|
|
79
|
+
<ColorBox sx={{ bgcolor: '#00C9EA' }}>btn_primary_border</ColorBox>
|
|
80
|
+
<ColorBox sx={{ bgcolor: '#FFB3B8' }}>chip_error_bg</ColorBox>
|
|
79
81
|
</BlockBox>
|
|
80
82
|
</Grid>
|
|
81
83
|
</Grid>
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { StoryFn, Meta } from
|
|
3
|
-
import { Typography, useTheme } from
|
|
4
|
-
import { Color, ColorContainer, Container, PaletteContainer } from
|
|
5
|
-
import map from
|
|
6
|
-
import lowerCase from
|
|
7
|
-
import capitalize from
|
|
8
|
-
import { BaseColor, GreyColor } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StoryFn, Meta } from '@storybook/react-webpack5';
|
|
3
|
+
import { Typography, useTheme } from '@mui/material';
|
|
4
|
+
import { Color, ColorContainer, Container, PaletteContainer } from './styled';
|
|
5
|
+
import map from 'lodash/map';
|
|
6
|
+
import lowerCase from 'lodash/lowerCase';
|
|
7
|
+
import capitalize from 'lodash/capitalize';
|
|
8
|
+
import { BaseColor, GreyColor } from '@/foundation/colors';
|
|
9
9
|
|
|
10
10
|
const convertColorPaletteKeyToDisplay = (key: string): string =>
|
|
11
11
|
lowerCase(key)
|
|
12
|
-
.split(
|
|
12
|
+
.split(' ')
|
|
13
13
|
.map((str) => capitalize(str))
|
|
14
|
-
.join(
|
|
14
|
+
.join(' ');
|
|
15
15
|
|
|
16
16
|
const BaseColors = () => {
|
|
17
17
|
const theme = useTheme();
|
|
18
18
|
return (
|
|
19
19
|
<Container>
|
|
20
|
-
{map(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
)}
|
|
20
|
+
{map(theme.palette.lunit_global, (colors: BaseColor | GreyColor, paletteKey: string) => (
|
|
21
|
+
<div key={paletteKey}>
|
|
22
|
+
<Typography
|
|
23
|
+
variant="h4"
|
|
24
|
+
sx={{
|
|
25
|
+
marginBottom: 11,
|
|
26
|
+
'&:not(:first-of-type)': { marginTop: 11 },
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
29
|
+
{convertColorPaletteKeyToDisplay(paletteKey)}
|
|
30
|
+
</Typography>
|
|
31
|
+
<PaletteContainer>
|
|
32
|
+
{map(colors, (_: string, colorKey: string) => (
|
|
33
|
+
<ColorContainer key={colorKey}>
|
|
34
|
+
<Color
|
|
35
|
+
sx={{
|
|
36
|
+
color: `lunit_global.${paletteKey}.${colorKey}.contrastText`,
|
|
37
|
+
bgcolor: `lunit_global.${paletteKey}.${colorKey}.main`,
|
|
38
|
+
}}
|
|
39
|
+
>
|
|
40
|
+
<Typography variant="h4">T</Typography>
|
|
41
|
+
</Color>
|
|
42
|
+
<Typography variant="body2">{`${paletteKey}_${colorKey}`}</Typography>
|
|
43
|
+
</ColorContainer>
|
|
44
|
+
))}
|
|
45
|
+
</PaletteContainer>
|
|
46
|
+
</div>
|
|
47
|
+
))}
|
|
49
48
|
</Container>
|
|
50
49
|
);
|
|
51
50
|
};
|
|
@@ -53,7 +52,7 @@ const BaseColors = () => {
|
|
|
53
52
|
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
54
53
|
export default {
|
|
55
54
|
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
56
|
-
title:
|
|
55
|
+
title: 'Foundation/Colors',
|
|
57
56
|
component: BaseColors,
|
|
58
57
|
} as Meta<typeof BaseColors>;
|
|
59
58
|
|
|
@@ -62,5 +61,5 @@ const BaseTemplate: StoryFn<typeof BaseColors> = () => <BaseColors />;
|
|
|
62
61
|
|
|
63
62
|
export const GlobalColors = {
|
|
64
63
|
render: BaseTemplate,
|
|
65
|
-
name:
|
|
64
|
+
name: 'Palette: Global Colors',
|
|
66
65
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Canvas, Meta } from
|
|
1
|
+
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
|
|
2
2
|
|
|
3
3
|
import Box from '@mui/material/Box';
|
|
4
4
|
import Grid from '@mui/material/Grid';
|
|
5
5
|
import ColorSystem from './ColorSystem';
|
|
6
6
|
|
|
7
|
-
import * as ColorsStories from
|
|
8
|
-
import * as TokenInComponentStories from
|
|
7
|
+
import * as ColorsStories from './Colors.stories';
|
|
8
|
+
import * as TokenInComponentStories from './Token.inComponent.stories';
|
|
9
9
|
|
|
10
10
|
<Meta of={ColorsStories} />
|
|
11
11
|
|
|
12
12
|
# Color System & Token
|
|
13
|
+
|
|
13
14
|
> _For the color documents, we provide both Korean and English to ensure understanding of our unique color system and tokens._
|
|
14
15
|
> _시스템의 이해를 돕기 위해 Color System 문서만 한국어와 영어를 병기하여 설명합니다._
|
|
15
16
|
|
|
@@ -18,114 +19,113 @@ Pre-configured palettes are provided in token form, allowing for easy applicatio
|
|
|
18
19
|
_루닛 디자인 시스템은 명시적이고 일관된 색상 사용을 보장하기 위해 색상 팔레트를 정의한다.
|
|
19
20
|
사전 구성된 팔레트는 토큰 형태로 제공되므로 컴포넌트나 페이지 단에서 쉽게 적용 가능하다._
|
|
20
21
|
|
|
21
|
-
|
|
22
22
|
## Structure of Color system
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
|
|
24
|
+
The color system in Lunit is structured as follows.
|
|
25
|
+
_루닛의 색상 시스템은 다음과 같은 구조로 이루어져 있다._
|
|
25
26
|
|
|
26
27
|
<ColorSystem />
|
|
27
28
|
|
|
28
29
|
### Global Palette Color
|
|
29
30
|
|
|
30
31
|
> [Browse all the Global Palette Colors(link)](?path=/story/foundation-colors--global-colors)
|
|
32
|
+
|
|
31
33
|
- A collection of colors organized by type and shade to be used within the AK design system.
|
|
32
|
-
_루닛 디자인 시스템 안에서 사용할 색상을 종류와 밝기로 분류해 구성한 색상의 모음._
|
|
34
|
+
_루닛 디자인 시스템 안에서 사용할 색상을 종류와 밝기로 분류해 구성한 색상의 모음._
|
|
33
35
|
- The components and foundations provided by the lunit design system only utilize colors from this palette.
|
|
34
|
-
_루닛 디자인 시스템에서 제공하는 컴포넌트와 파운데이션은 이 팔레트의 색상만을 이용하고 있다._
|
|
36
|
+
_루닛 디자인 시스템에서 제공하는 컴포넌트와 파운데이션은 이 팔레트의 색상만을 이용하고 있다._
|
|
35
37
|
- Each item in the Global Palette corresponds 1:1 with a color code (hex value).
|
|
36
|
-
_Global Palette의 각 항목은 색상 코드(hex값)와 1:1 대응한다._
|
|
38
|
+
_Global Palette의 각 항목은 색상 코드(hex값)와 1:1 대응한다._
|
|
37
39
|
- Color Tokens are linked to these values in the Global Palette.
|
|
38
|
-
_Color Token은 이 Global Paltte 값과 연결된다._
|
|
40
|
+
_Color Token은 이 Global Paltte 값과 연결된다._
|
|
39
41
|
|
|
40
42
|
### Color Token
|
|
41
43
|
|
|
42
|
-
> [Browse all the Core tokens(link)](?path=/story/foundation-colors--core-tokens) <br />
|
|
43
|
-
> [Browse all the Component tokens(link)](?path=/story/foundation-colors--component-tokens)
|
|
44
|
+
> [Browse all the Core tokens(link)](?path=/story/foundation-colors--core-tokens) <br /> > [Browse all the Component tokens(link)](?path=/story/foundation-colors--component-tokens)
|
|
44
45
|
|
|
45
46
|
- **Core Token**: These are color tokens universally used in UI elements, including background and text colors.
|
|
46
|
-
_**Core Token** : background, text 색상과 같이 범용적으로 적용되는 UI 에서 사용하는 컬러 토큰_
|
|
47
|
+
_**Core Token** : background, text 색상과 같이 범용적으로 적용되는 UI 에서 사용하는 컬러 토큰_
|
|
47
48
|
- **Component Token**: These are color tokens specifically utilized for certain components, such as buttons and chips.
|
|
48
|
-
|
|
49
|
+
_**Component Token** : button, chip 등과 같이 특정 컴포넌트 안에서만 사용하는 컬러 토큰_
|
|
49
50
|
- It is recommended to use **Color Tokens** instead of color codes or Global Colors.
|
|
50
|
-
_색상 코드나 Global Color 대신 **Color Token** 을 이용하는 것 을 권장한다._
|
|
51
|
+
_색상 코드나 Global Color 대신 **Color Token** 을 이용하는 것 을 권장한다._
|
|
51
52
|
- Color Tokens have colors for four themes (Light1, 2, Dark1, 2). Themes can be set using the className of the component itself or the parent element surrounding it.
|
|
52
|
-
_Color Token은 4가지 테마(Light1,2, Dark1,2) 별 색상을 가지고 있다. 테마는 해당 컴포넌트, 혹은 컴포넌트를 둘러싸고 있는 부모 엘리먼트의 className을 이용해 설정할 수 있다._
|
|
53
|
+
_Color Token은 4가지 테마(Light1,2, Dark1,2) 별 색상을 가지고 있다. 테마는 해당 컴포넌트, 혹은 컴포넌트를 둘러싸고 있는 부모 엘리먼트의 className을 이용해 설정할 수 있다._
|
|
53
54
|
|
|
54
55
|
## How to set themes
|
|
56
|
+
|
|
55
57
|
- Types of themes: light1, light2, dark1, dark2
|
|
56
|
-
_테마의 종류 : light1, light2, dark1, dark2_
|
|
58
|
+
_테마의 종류 : light1, light2, dark1, dark2_
|
|
57
59
|
- The method to set themes : To assign a theme, add the theme name to the className of either the component you want to style or its surrounding parent element.
|
|
58
|
-
_테마를 설정하는 방법 : 테마를 부여하고 싶은 컴포넌트나 해당 컴포넌트를 둘러싸고 있는 부모 엘리먼트의 className에 테마 이름을 추가한다._
|
|
59
|
-
- ex)
|
|
60
|
+
_테마를 설정하는 방법 : 테마를 부여하고 싶은 컴포넌트나 해당 컴포넌트를 둘러싸고 있는 부모 엘리먼트의 className에 테마 이름을 추가한다._
|
|
61
|
+
- ex)
|
|
60
62
|
```jsx
|
|
61
63
|
<div className='light1'>
|
|
62
|
-
<Button
|
|
64
|
+
<Button
|
|
63
65
|
sx={{
|
|
64
|
-
backgroundColor: (theme) =>
|
|
66
|
+
backgroundColor: (theme) =>
|
|
65
67
|
theme.palette.lunit_token.component.btn_primary_bg // light1 theme color
|
|
66
68
|
}}
|
|
67
|
-
/>
|
|
68
|
-
</div>
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
69
71
|
<div className='dark2'>
|
|
70
|
-
<Button
|
|
72
|
+
<Button
|
|
71
73
|
sx={{
|
|
72
|
-
backgroundColor: (theme) =>
|
|
74
|
+
backgroundColor: (theme) =>
|
|
73
75
|
theme.palette.lunit_token.component.btn_primary_bg // dark2 theme color
|
|
74
76
|
}}
|
|
75
|
-
/>
|
|
76
|
-
</div>
|
|
77
|
-
```
|
|
77
|
+
/>
|
|
78
|
+
</div>
|
|
79
|
+
```
|
|
78
80
|
- If no theme is set, Color Tokens default to the Dark1 theme.
|
|
79
|
-
_테마를 설정하지 않으면, Color Token은 기본적으로 Dark1 테마가 적용된다._
|
|
81
|
+
_테마를 설정하지 않으면, Color Token은 기본적으로 Dark1 테마가 적용된다._
|
|
80
82
|
- When themes are nested, Color Tokens follow the theme set at the closest level.
|
|
81
|
-
_테마 설정이 중첩되었을 때 Color Token은 가장 가까운 위치에서 설정한 테마를 따른다._
|
|
82
|
-
- ex)
|
|
83
|
+
_테마 설정이 중첩되었을 때 Color Token은 가장 가까운 위치에서 설정한 테마를 따른다._
|
|
84
|
+
- ex)
|
|
83
85
|
```jsx
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
|
|
86
|
+
<div className="light1">
|
|
87
|
+
<div className="dark1">
|
|
88
|
+
<Button
|
|
89
|
+
sx={{
|
|
90
|
+
backgroundColor: (theme) => theme.palette.lunit_token.component.btn_primary_bg,
|
|
91
|
+
// Since the closest theme set is dark1,
|
|
92
|
+
// the color of btn_primary_bg here will be applied as the dark1 theme color.
|
|
93
|
+
// 가장 가까운 곳에서 설정된 테마가 dark1이기 때문에, 이 곳의 btn_primary_bg 색상은 dark1 테마 색상이 적용됨
|
|
94
|
+
}}
|
|
95
|
+
/>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
```
|
|
100
99
|
|
|
101
100
|
## Usage
|
|
101
|
+
|
|
102
102
|
The components in the Lunit design system are already developed using Color Tokens. If no custom styling is needed, simply set the theme to be used in the component.
|
|
103
103
|
Color Tokens are implemented based on the MUI theme, so the usage is similar to utilizing the MUI theme.
|
|
104
104
|
_루닛 디자인 시스템의 컴포넌트는 이미 Color Token을 이용해 개발되어 있다. 따로 스타일 커스텀이 필요없다면 컴포넌트에서 사용할 테마만 설정하면 된다._
|
|
105
|
-
_Color Token은 MUI theme 기반으로 구현되어, 사용법도 MUI theme를 이용하는 방식과 비슷하다._
|
|
105
|
+
_Color Token은 MUI theme 기반으로 구현되어, 사용법도 MUI theme를 이용하는 방식과 비슷하다._
|
|
106
106
|
|
|
107
107
|
### With Styled Components
|
|
108
108
|
|
|
109
109
|
<Canvas of={TokenInComponentStories.InComponentWithStyled} sourceState="none" />
|
|
110
110
|
|
|
111
111
|
```jsx
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
"&.Mui-focused fieldset": {
|
|
120
|
-
borderColor: theme.palette.lunit_token.core.focused,
|
|
121
|
-
},
|
|
112
|
+
const StyledTextField = styled(TextField)(({ theme }) => ({
|
|
113
|
+
'& .MuiInputBase-root': {
|
|
114
|
+
backgroundColor: theme.palette.lunit_token.component.textfield_bg,
|
|
115
|
+
color: theme.palette.lunit_token.core.text_normal,
|
|
116
|
+
'& .MuiInputBase-input': {
|
|
117
|
+
padding: '8px 16px',
|
|
122
118
|
},
|
|
123
|
-
|
|
119
|
+
'&.Mui-focused fieldset': {
|
|
120
|
+
borderColor: theme.palette.lunit_token.core.status_focused,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
}));
|
|
124
124
|
|
|
125
125
|
const InComponentWithStyled = () => {
|
|
126
126
|
return (
|
|
127
127
|
<>
|
|
128
|
-
<div className=
|
|
128
|
+
<div className="light1">
|
|
129
129
|
<StyledTextField placeholder="Styled Text Field" />
|
|
130
130
|
</div>
|
|
131
131
|
<div className="dark1">
|
|
@@ -144,33 +144,29 @@ const InComponentWithStyled = () => {
|
|
|
144
144
|
const InComponentWithSx = () => {
|
|
145
145
|
return (
|
|
146
146
|
<>
|
|
147
|
-
<div className=
|
|
147
|
+
<div className="light1">
|
|
148
148
|
<TextField
|
|
149
149
|
placeholder="Text Field with SX"
|
|
150
150
|
sx={{
|
|
151
|
-
|
|
152
|
-
backgroundColor: (theme) =>
|
|
153
|
-
theme.palette.lunit_token.component.textfield_bg,
|
|
151
|
+
'& .MuiInputBase-root': {
|
|
152
|
+
backgroundColor: (theme) => theme.palette.lunit_token.component.textfield_bg,
|
|
154
153
|
color: (theme) => theme.palette.lunit_token.core.text_normal,
|
|
155
|
-
|
|
156
|
-
padding:
|
|
154
|
+
'& .MuiInputBase-input': {
|
|
155
|
+
padding: '8px 16px',
|
|
157
156
|
},
|
|
158
|
-
|
|
159
|
-
borderColor: (theme) => theme.palette.lunit_token.core.
|
|
157
|
+
'&.Mui-focused fieldset': {
|
|
158
|
+
borderColor: (theme) => theme.palette.lunit_token.core.status_focused,
|
|
160
159
|
},
|
|
161
160
|
},
|
|
162
161
|
}}
|
|
163
162
|
/>
|
|
164
|
-
<Box
|
|
163
|
+
<Box sx={{ width: 150, height: 50, bgcolor: '#DFDFE2', mt: 3 }}>
|
|
165
164
|
Hello!
|
|
166
165
|
<Box
|
|
167
166
|
sx={{
|
|
168
|
-
backgroundColor: (theme) =>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
theme.palette.lunit_token.component.alert_info_border,
|
|
172
|
-
boxShadow: (theme) =>
|
|
173
|
-
`20px -10px 5px ${theme.palette.lunit_token.core.shadow_01}`,
|
|
167
|
+
backgroundColor: (theme) => theme.palette.lunit_token.component.alert_info_bg,
|
|
168
|
+
color: (theme) => theme.palette.lunit_token.component.alert_info_border,
|
|
169
|
+
boxShadow: (theme) => `20px -10px 5px ${theme.palette.lunit_token.core.shadow_01}`,
|
|
174
170
|
width: 300,
|
|
175
171
|
height: 80,
|
|
176
172
|
}}
|
|
@@ -194,7 +190,7 @@ const InComponentWithInlineStyle = () => {
|
|
|
194
190
|
|
|
195
191
|
return (
|
|
196
192
|
<>
|
|
197
|
-
<div className=
|
|
193
|
+
<div className="light1">
|
|
198
194
|
<TextField
|
|
199
195
|
placeholder="Inline Styled Text Field"
|
|
200
196
|
style={{
|
|
@@ -202,7 +198,7 @@ const InComponentWithInlineStyle = () => {
|
|
|
202
198
|
}}
|
|
203
199
|
/>
|
|
204
200
|
</div>
|
|
205
|
-
<div className=
|
|
201
|
+
<div className="dark1">
|
|
206
202
|
<TextField
|
|
207
203
|
placeholder="Inline Styled Text Field"
|
|
208
204
|
style={{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { StoryFn, Meta } from
|
|
3
|
-
import Pagination from
|
|
4
|
-
import DeleteIcon from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StoryFn, Meta } from '@storybook/react-webpack5';
|
|
3
|
+
import Pagination from '@mui/material/Pagination';
|
|
4
|
+
import DeleteIcon from '@mui/icons-material/Delete';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
8
|
-
title:
|
|
8
|
+
title: 'Foundation/Colors/Mui',
|
|
9
9
|
component: Pagination,
|
|
10
10
|
} as Meta<typeof Pagination>;
|
|
11
11
|
|
|
@@ -13,6 +13,4 @@ export const MuiPagenation: StoryFn<typeof Pagination> = () => (
|
|
|
13
13
|
<Pagination count={10} color="primary" />
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
-
export const MuiIcon: StoryFn<typeof DeleteIcon> = () =>
|
|
17
|
-
<DeleteIcon color="primary" />
|
|
18
|
-
);
|
|
16
|
+
export const MuiIcon: StoryFn<typeof DeleteIcon> = () => <DeleteIcon color="primary" />;
|