@lunit/design-system 2.0.2 → 2.2.0
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/README.md +107 -7
- 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/Chip/Chip.styled.js +9 -16
- package/dist/components/Chip/Chip.styled.js.map +1 -1
- package/dist/components/Dialog/Dialog.js +0 -6
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dropdown/Dropdown.js +37 -4
- package/dist/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/Dropdown/Dropdown.styled.js +161 -0
- package/dist/components/Dropdown/Dropdown.styled.js.map +1 -0
- package/dist/components/Dropdown/Dropdown.types.js +2 -0
- package/dist/components/Dropdown/Dropdown.types.js.map +1 -0
- package/dist/components/Dropdown/DropdownItem.js +36 -0
- package/dist/components/Dropdown/DropdownItem.js.map +1 -0
- package/dist/components/Dropdown/index.js +1 -0
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextField.style.js +27 -3
- package/dist/components/TextField/TextField.style.js.map +1 -1
- package/dist/foundation/Typography/index.js +5 -0
- package/dist/foundation/Typography/index.js.map +1 -1
- package/dist/foundation/Typography/tokens.js +44 -0
- package/dist/foundation/Typography/tokens.js.map +1 -1
- package/dist/foundation/colors/base/blue.js +12 -10
- package/dist/foundation/colors/base/blue.js.map +1 -1
- package/dist/foundation/colors/base/green.js +11 -9
- package/dist/foundation/colors/base/green.js.map +1 -1
- package/dist/foundation/colors/base/grey.js +30 -15
- package/dist/foundation/colors/base/grey.js.map +1 -1
- package/dist/foundation/colors/base/lunitTeal.js +2 -0
- package/dist/foundation/colors/base/lunitTeal.js.map +1 -1
- package/dist/foundation/colors/base/magenta.js +3 -1
- package/dist/foundation/colors/base/magenta.js.map +1 -1
- package/dist/foundation/colors/base/orange.js +11 -9
- package/dist/foundation/colors/base/orange.js.map +1 -1
- package/dist/foundation/colors/base/purple.js +3 -1
- package/dist/foundation/colors/base/purple.js.map +1 -1
- package/dist/foundation/colors/base/red.js +5 -3
- package/dist/foundation/colors/base/red.js.map +1 -1
- package/dist/foundation/colors/base/yellow.js +12 -10
- package/dist/foundation/colors/base/yellow.js.map +1 -1
- package/dist/foundation/colors/index.js +3 -0
- package/dist/foundation/colors/index.js.map +1 -1
- package/dist/foundation/colors/token/component.js +26 -22
- package/dist/foundation/colors/token/component.js.map +1 -1
- package/dist/foundation/colors/token/core.js +21 -0
- package/dist/foundation/colors/token/core.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/components/Button/Button.styled.d.ts +35 -50
- package/dist/types/components/Chip/Chip.styled.d.ts +4 -76
- package/dist/types/components/Chip/Chip.types.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.d.ts +0 -3
- package/dist/types/components/Dropdown/Dropdown.d.ts +3 -1
- package/dist/types/components/Dropdown/Dropdown.styled.d.ts +7 -0
- package/dist/types/components/Dropdown/Dropdown.types.d.ts +11 -0
- package/dist/types/components/Dropdown/DropdownItem.d.ts +13 -0
- package/dist/types/components/Dropdown/index.d.ts +2 -0
- package/dist/types/components/TextField/TextField.types.d.ts +1 -1
- package/dist/types/components/TextField/TextFieldIcon.d.ts +1 -1
- package/dist/types/components/ToggleButton/ToggleButton.styled.d.ts +1 -32
- package/dist/types/components/Typography/Typography.d.ts +1 -1
- package/dist/types/foundation/Typography/index.d.ts +21 -1
- package/dist/types/foundation/Typography/tokens.d.ts +15 -0
- package/dist/types/foundation/colors/base/blue.d.ts +2 -0
- package/dist/types/foundation/colors/base/green.d.ts +2 -0
- package/dist/types/foundation/colors/base/grey.d.ts +15 -0
- package/dist/types/foundation/colors/base/lunitTeal.d.ts +2 -0
- package/dist/types/foundation/colors/base/magenta.d.ts +2 -0
- package/dist/types/foundation/colors/base/orange.d.ts +2 -0
- package/dist/types/foundation/colors/base/purple.d.ts +2 -0
- package/dist/types/foundation/colors/base/red.d.ts +2 -0
- package/dist/types/foundation/colors/base/yellow.d.ts +2 -0
- package/dist/types/foundation/colors/index.d.ts +3 -0
- package/dist/types/foundation/colors/types.d.ts +3 -0
- package/dist/types/foundation/index.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +20 -22
- package/src/components/Chip/Chip.styled.ts +9 -16
- package/src/components/Chip/Chip.types.ts +2 -0
- package/src/components/Dialog/Dialog.tsx +0 -8
- package/src/components/Dropdown/Dropdown.styled.tsx +170 -0
- package/src/components/Dropdown/Dropdown.tsx +59 -8
- package/src/components/Dropdown/Dropdown.types.ts +17 -0
- package/src/components/Dropdown/DropdownItem.tsx +107 -0
- package/src/components/Dropdown/index.ts +6 -0
- package/src/components/TextField/TextField.style.ts +28 -3
- package/src/components/TextField/TextField.tsx +1 -7
- package/src/components/TextField/TextField.types.ts +2 -0
- package/src/components/TextField/TextFieldIcon.tsx +1 -1
- package/src/foundation/Typography/index.ts +10 -0
- package/src/foundation/Typography/tokens.ts +45 -0
- package/src/foundation/colors/base/blue.ts +12 -10
- package/src/foundation/colors/base/green.ts +11 -9
- package/src/foundation/colors/base/grey.ts +30 -15
- package/src/foundation/colors/base/lunitTeal.ts +2 -0
- package/src/foundation/colors/base/magenta.ts +3 -1
- package/src/foundation/colors/base/orange.ts +11 -9
- package/src/foundation/colors/base/purple.ts +3 -1
- package/src/foundation/colors/base/red.ts +5 -3
- package/src/foundation/colors/base/yellow.ts +12 -10
- package/src/foundation/colors/index.ts +3 -0
- package/src/foundation/colors/token/component.ts +26 -22
- package/src/foundation/colors/token/core.ts +21 -0
- package/src/foundation/colors/types.ts +3 -0
- package/src/index.ts +6 -1
- package/src/stories/GettingStarted.mdx +10 -16
- package/src/stories/components/Alert/Alert.stories.tsx +3 -3
- package/src/stories/components/Button/BasicButton.stories.tsx +2 -2
- package/src/stories/components/Button/ButtonDocs.mdx +1 -1
- package/src/stories/components/Button/Color.stories.tsx +2 -2
- package/src/stories/components/Button/IconButton.stories.tsx +2 -2
- package/src/stories/components/Button/Kind.stories.tsx +2 -2
- package/src/stories/components/CheckBox/BasicCheckbox.stories.tsx +2 -2
- package/src/stories/components/CheckBox/CheckboxDocs.mdx +1 -1
- package/src/stories/components/Chip/Chip.stories.tsx +20 -2
- package/src/stories/components/Chip/ChipDocs.mdx +21 -1
- package/src/stories/components/DataTable/DataTable.stories.tsx +1 -1
- package/src/stories/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/src/stories/components/Dialog/Dialog.stories.tsx +19 -8
- package/src/stories/components/Dialog/DialogDocs.mdx +3 -11
- package/src/stories/components/Dropdown/Dropdown.stories.tsx +299 -10
- package/src/stories/components/Dropdown/DropdownExamples.stories.tsx +221 -0
- package/src/stories/components/Dropdown/DropdownItem.stories.tsx +360 -0
- package/src/stories/components/SelectControl/RadioGroup.stories.tsx +1 -1
- package/src/stories/components/SelectControl/RadioStatus.stories.tsx +1 -1
- package/src/stories/components/SelectControl/Toggle.stories.tsx +2 -2
- package/src/stories/components/TextField/BasicTextField.stories.tsx +37 -16
- package/src/stories/components/TextField/TextFieldDocs.mdx +13 -1
- package/src/stories/components/TextField/TextFieldMulti.stories.tsx +8 -11
- package/src/stories/components/TextField/TextFieldSingle.stories.tsx +8 -11
- package/src/stories/components/TextField/TextFieldSize.stories.tsx +7 -8
- package/src/stories/components/Toast/Toast.stories.tsx +8 -3
- package/src/stories/components/ToggleButton/Basic.stories.tsx +152 -113
- package/src/stories/components/ToggleButton/ToggleButtonDocs.mdx +1 -1
- package/src/stories/components/ToggleButton/ToggleButtonKind.stories.tsx +5 -5
- package/src/stories/components/ToggleButton/WithIcon.stories.tsx +2 -2
- package/src/stories/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/stories/foundation/Elevation/Elevation.stories.tsx +1 -20
- package/src/stories/foundation/Typography/Typography.mdx +1 -1
- package/src/stories/foundation/Typography/Typography.stories.tsx +14 -1
- package/src/stories/foundation/Typography/const.ts +6 -1
- package/src/stories/foundation/colors/Colors.stories.tsx +2 -2
- package/src/stories/foundation/colors/Docs.mdx +1 -1
- package/src/stories/foundation/colors/Mui.stories.tsx +1 -1
- package/src/stories/foundation/colors/Token.inComponent.stories.tsx +1 -1
- package/src/stories/foundation/colors/TokenPaletteTable.stories.tsx +1 -1
- package/src/stories/foundation/colors/TokenPaletteTable.tsx +19 -1
- package/tsconfig.json +0 -1
- package/dist/cjs/components/Modal/index.js +0 -2
- package/dist/cjs/components/Modal/index.js.map +0 -1
- package/dist/components/Modal/Modal.js +0 -7
- package/dist/components/Modal/Modal.js.map +0 -1
- package/dist/components/Modal/index.js +0 -2
- package/dist/components/Modal/index.js.map +0 -1
- package/dist/types/components/Modal/Modal.d.ts +0 -2
- package/dist/types/components/Modal/index.d.ts +0 -1
- package/src/stories/components/ToggleButton/Group.stories.tsx +0 -221
|
@@ -30,15 +30,15 @@ const getSinglelineTextFieldPaddingByIconAndSize = ({
|
|
|
30
30
|
case "small":
|
|
31
31
|
return `4px ${hasRightIcon ? "8px" : "12px"} 4px ${
|
|
32
32
|
hasLeftIcon ? "8px" : "12px"
|
|
33
|
-
}
|
|
33
|
+
}`;
|
|
34
34
|
case "medium":
|
|
35
35
|
return `8px ${hasRightIcon ? "12px" : "16px"} 8px ${
|
|
36
36
|
hasLeftIcon ? "12px" : "16px"
|
|
37
|
-
}
|
|
37
|
+
}`;
|
|
38
38
|
case "large":
|
|
39
39
|
return `10px ${hasRightIcon ? "12px" : "16px"} 10px ${
|
|
40
40
|
hasLeftIcon ? "12px" : "16px"
|
|
41
|
-
}
|
|
41
|
+
}`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -144,6 +144,31 @@ const commonStyle = ({ lunit_token }: { lunit_token: ColorToken }) => ({
|
|
|
144
144
|
color: lunit_token.core.text_error,
|
|
145
145
|
},
|
|
146
146
|
},
|
|
147
|
+
"& .MuiInputBase-input": {
|
|
148
|
+
"&:-webkit-autofill, &:-webkit-autofill:active, &:-webkit-autofill:focus, &:-webkit-autofill:hover, &:-webkit-autofill:focus-visible, &:-webkit-autofill:focus-within, &:-webkit-autofill:target, &:-webkit-autofill:first-line":
|
|
149
|
+
{
|
|
150
|
+
border: "none",
|
|
151
|
+
borderRadius: "0px",
|
|
152
|
+
backgroundColor: "transparent",
|
|
153
|
+
color: lunit_token.core.text_normal,
|
|
154
|
+
/**
|
|
155
|
+
* the background color and text color are not changed color, background css tag.
|
|
156
|
+
* so we need to use -webkit-text-fill-color to change the text color.
|
|
157
|
+
* and we need to use -webkit-box-shadow, -webkit-transition to change the background color.
|
|
158
|
+
*
|
|
159
|
+
* reference: https://css-tricks.com/almanac/pseudo-selectors/a/autofill/
|
|
160
|
+
*/
|
|
161
|
+
WebkitTextFillColor: lunit_token.core.text_normal,
|
|
162
|
+
WebkitBoxShadow: "0 0 0px 1000px transparent inset",
|
|
163
|
+
WebkitTransition: "background-color 5000s ease-in-out 0s",
|
|
164
|
+
/**
|
|
165
|
+
* textfield flash cursor color
|
|
166
|
+
*
|
|
167
|
+
* docs: https://developer.mozilla.org/en-US/docs/Web/CSS/caret-color
|
|
168
|
+
*/
|
|
169
|
+
caretColor: lunit_token.core.text_normal,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
147
172
|
});
|
|
148
173
|
|
|
149
174
|
const sizeStyle = ({
|
|
@@ -73,13 +73,7 @@ const TextField = forwardRef<HTMLDivElement, TextFieldProps>((props, ref) => {
|
|
|
73
73
|
const { rows, size, multiline = false, variant, ...restProps } = props;
|
|
74
74
|
|
|
75
75
|
return multiline ? (
|
|
76
|
-
<MultiTextField
|
|
77
|
-
{...restProps}
|
|
78
|
-
ref={ref}
|
|
79
|
-
maxRows={Infinity}
|
|
80
|
-
size={size}
|
|
81
|
-
rows={rows}
|
|
82
|
-
/>
|
|
76
|
+
<MultiTextField {...restProps} ref={ref} size={size} rows={rows} />
|
|
83
77
|
) : (
|
|
84
78
|
<SingleTextField {...restProps} ref={ref} size={size} />
|
|
85
79
|
);
|
|
@@ -14,6 +14,11 @@ type DSVariants =
|
|
|
14
14
|
| "body2_14_regular"
|
|
15
15
|
| "body3_12_semibold"
|
|
16
16
|
| "body3_12_regular"
|
|
17
|
+
| "body_m2"
|
|
18
|
+
| "body_reg6"
|
|
19
|
+
| "body_reg8"
|
|
20
|
+
| "small_body_sb1"
|
|
21
|
+
| "small_body_m2"
|
|
17
22
|
| "button1"
|
|
18
23
|
| "button2";
|
|
19
24
|
|
|
@@ -74,6 +79,11 @@ export const typographyDefaultProps = {
|
|
|
74
79
|
body2_14_regular: "p",
|
|
75
80
|
body3_12_semibold: "p",
|
|
76
81
|
body3_12_regular: "p",
|
|
82
|
+
body_m2: "p",
|
|
83
|
+
body_reg6: "p",
|
|
84
|
+
body_reg8: "p",
|
|
85
|
+
small_body_sb1: "p",
|
|
86
|
+
small_body_m2: "p",
|
|
77
87
|
},
|
|
78
88
|
};
|
|
79
89
|
|
|
@@ -47,6 +47,24 @@ const body = {
|
|
|
47
47
|
"--body3-12-regular-font-weight": "var(--font-weight-regular)",
|
|
48
48
|
"--body3-12-regular-font-size": "12.4px",
|
|
49
49
|
"--body3-12-regular-line-height": "16px",
|
|
50
|
+
"--body_m2-font-weight": "var(--font-weight-medium)",
|
|
51
|
+
"--body_m2-font-size": "13px",
|
|
52
|
+
"--body_m2-line-height": "18px",
|
|
53
|
+
"--body_reg6-font-weight": "var(--font-weight-regular)",
|
|
54
|
+
"--body_reg6-font-size": "13px",
|
|
55
|
+
"--body_reg6-line-height": "18px",
|
|
56
|
+
"--body_reg8-font-weight": "var(--font-weight-regular)",
|
|
57
|
+
"--body_reg8-font-size": "12px",
|
|
58
|
+
"--body_reg8-line-height": "16px",
|
|
59
|
+
} as const;
|
|
60
|
+
|
|
61
|
+
const smallBody = {
|
|
62
|
+
"--small_body_sb1-font-weight": "var(--font-weight-semibold)",
|
|
63
|
+
"--small_body_sb1-font-size": "12px",
|
|
64
|
+
"--small_body_sb1-line-height": "16px",
|
|
65
|
+
"--small_body_m2-font-weight": "var(--font-weight-medium)",
|
|
66
|
+
"--small_body_m2-font-size": "12px",
|
|
67
|
+
"--small_body_m2-line-height": "20px",
|
|
50
68
|
} as const;
|
|
51
69
|
|
|
52
70
|
const etc = {
|
|
@@ -125,6 +143,32 @@ const fontVariants: Record<string, TypographyStyleOptions> = {
|
|
|
125
143
|
fontSize: "var(--body3-12-regular-font-size)",
|
|
126
144
|
lineHeight: "var(--body3-12-regular-line-height)",
|
|
127
145
|
},
|
|
146
|
+
body_m2: {
|
|
147
|
+
fontWeight: "var(--body_m2-font-weight)",
|
|
148
|
+
fontSize: "var(--body_m2-font-size)",
|
|
149
|
+
lineHeight: "var(--body_m2-line-height)",
|
|
150
|
+
letterSpacing: "0.2px",
|
|
151
|
+
},
|
|
152
|
+
body_reg6: {
|
|
153
|
+
fontWeight: "var(--body_reg6-font-weight)",
|
|
154
|
+
fontSize: "var(--body_reg6-font-size)",
|
|
155
|
+
lineHeight: "var(--body_reg6-line-height)",
|
|
156
|
+
},
|
|
157
|
+
body_reg8: {
|
|
158
|
+
fontWeight: "var(--body_reg8-font-weight)",
|
|
159
|
+
fontSize: "var(--body_reg8-font-size)",
|
|
160
|
+
lineHeight: "var(--body_reg8-line-height)",
|
|
161
|
+
},
|
|
162
|
+
small_body_sb1: {
|
|
163
|
+
fontWeight: "var(--small_body_sb1-font-weight)",
|
|
164
|
+
fontSize: "var(--small_body_sb1-font-size)",
|
|
165
|
+
lineHeight: "var(--small_body_sb1-line-height)",
|
|
166
|
+
},
|
|
167
|
+
small_body_m2: {
|
|
168
|
+
fontWeight: "var(--small_body_m2-font-weight)",
|
|
169
|
+
fontSize: "var(--small_body_m2-font-size)",
|
|
170
|
+
lineHeight: "var(--small_body_m2-line-height)",
|
|
171
|
+
},
|
|
128
172
|
overline: {
|
|
129
173
|
fontWeight: "var(--overline-font-weight)",
|
|
130
174
|
fontSize: "var(--overline-font-size)",
|
|
@@ -156,6 +200,7 @@ export const cssVariables = {
|
|
|
156
200
|
...fontWeights,
|
|
157
201
|
...headline,
|
|
158
202
|
...body,
|
|
203
|
+
...smallBody,
|
|
159
204
|
...etc,
|
|
160
205
|
};
|
|
161
206
|
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { grey } from "./grey";
|
|
2
2
|
|
|
3
3
|
export const blue = {
|
|
4
|
-
5: "#
|
|
5
|
-
10: "#
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
5: "#EDF6FE",
|
|
5
|
+
10: "#D9E9FD",
|
|
6
|
+
15: "#BFD9FC",
|
|
7
|
+
20: "#A5C8FC",
|
|
8
|
+
30: "#71A9FA",
|
|
9
|
+
40: "#3D88FA",
|
|
10
|
+
50: "#0D68F2",
|
|
11
|
+
60: "#0E51BA",
|
|
12
|
+
70: "#0C3F8F",
|
|
13
|
+
80: "#032765",
|
|
14
|
+
90: "#03183F",
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export const blueText = {
|
|
17
18
|
5: grey[95],
|
|
18
19
|
10: grey[95],
|
|
20
|
+
15: grey[95],
|
|
19
21
|
20: grey[95],
|
|
20
22
|
30: grey[95],
|
|
21
23
|
40: grey[95],
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { grey } from "./grey";
|
|
2
2
|
|
|
3
3
|
export const green = {
|
|
4
|
-
5: "#
|
|
5
|
-
10: "#
|
|
4
|
+
5: "#E6FDEB",
|
|
5
|
+
10: "#C4F5D1",
|
|
6
|
+
15: "#A0E5B3",
|
|
6
7
|
20: "#6FDC8C",
|
|
7
|
-
30: "#
|
|
8
|
-
40: "#
|
|
9
|
-
50: "#
|
|
10
|
-
60: "#
|
|
11
|
-
70: "#
|
|
12
|
-
80: "#
|
|
13
|
-
90: "#
|
|
8
|
+
30: "#44BE67",
|
|
9
|
+
40: "#1A9F3F",
|
|
10
|
+
50: "#138231",
|
|
11
|
+
60: "#0D6222",
|
|
12
|
+
70: "#0B4F1A",
|
|
13
|
+
80: "#01380F",
|
|
14
|
+
90: "#082209",
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export const greenText = {
|
|
17
18
|
5: grey[95],
|
|
18
19
|
10: grey[95],
|
|
20
|
+
15: grey[95],
|
|
19
21
|
20: grey[95],
|
|
20
22
|
30: grey[95],
|
|
21
23
|
40: grey[95],
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
export const grey = {
|
|
2
2
|
0: "#FFFFFF",
|
|
3
|
-
5: "#
|
|
4
|
-
10: "#
|
|
5
|
-
15: "#
|
|
6
|
-
20: "#
|
|
7
|
-
25: "#
|
|
8
|
-
30: "#
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
5: "#F5F5F6",
|
|
4
|
+
10: "#EAEAEC",
|
|
5
|
+
15: "#DFDFE1",
|
|
6
|
+
20: "#D5D5D7",
|
|
7
|
+
25: "#C8C8CA",
|
|
8
|
+
30: "#BCBCBE",
|
|
9
|
+
35: "#B1B1B4",
|
|
10
|
+
40: "#A4A4A8",
|
|
11
|
+
45: "#9A9A9D",
|
|
12
|
+
50: "#8D8D90",
|
|
13
|
+
55: "#808084",
|
|
14
|
+
60: "#747479",
|
|
15
|
+
65: "#68686C",
|
|
16
|
+
70: "#59595D",
|
|
17
|
+
75: "#4A4A4E",
|
|
18
|
+
80: "#3B3B3F",
|
|
19
|
+
82: "#343438",
|
|
20
|
+
85: "#2E2E32",
|
|
21
|
+
88: "#27272B",
|
|
22
|
+
90: "#1F1F23",
|
|
23
|
+
93: "#16161A",
|
|
24
|
+
95: "#0F0F12",
|
|
18
25
|
100: "#000000",
|
|
19
26
|
};
|
|
20
27
|
|
|
@@ -26,13 +33,21 @@ export const greyText = {
|
|
|
26
33
|
20: grey[95],
|
|
27
34
|
25: grey[95],
|
|
28
35
|
30: grey[95],
|
|
36
|
+
35: grey[95],
|
|
29
37
|
40: grey[95],
|
|
38
|
+
45: grey[95],
|
|
30
39
|
50: grey[5],
|
|
40
|
+
55: grey[5],
|
|
31
41
|
60: grey[5],
|
|
42
|
+
65: grey[5],
|
|
32
43
|
70: grey[5],
|
|
44
|
+
75: grey[5],
|
|
33
45
|
80: grey[5],
|
|
46
|
+
82: grey[5],
|
|
34
47
|
85: grey[5],
|
|
48
|
+
88: grey[5],
|
|
35
49
|
90: grey[5],
|
|
50
|
+
93: grey[5],
|
|
36
51
|
95: grey[5],
|
|
37
52
|
100: grey[5],
|
|
38
53
|
};
|
|
@@ -3,6 +3,7 @@ import { grey } from "./grey";
|
|
|
3
3
|
export const lunit_teal = {
|
|
4
4
|
5: "#EAFAFF",
|
|
5
5
|
10: "#D1F7FF",
|
|
6
|
+
15: "#BDF4FF",
|
|
6
7
|
20: "#96EDFF",
|
|
7
8
|
30: "#30DFFC",
|
|
8
9
|
40: "#00C9EA",
|
|
@@ -16,6 +17,7 @@ export const lunit_teal = {
|
|
|
16
17
|
export const lunit_tealText = {
|
|
17
18
|
5: lunit_teal[90],
|
|
18
19
|
10: lunit_teal[90],
|
|
20
|
+
15: lunit_teal[90],
|
|
19
21
|
20: grey[95],
|
|
20
22
|
30: grey[95],
|
|
21
23
|
40: grey[95],
|
|
@@ -2,7 +2,8 @@ import { grey } from "./grey";
|
|
|
2
2
|
|
|
3
3
|
export const magenta = {
|
|
4
4
|
5: "#FFF0F7",
|
|
5
|
-
10: "#
|
|
5
|
+
10: "#FFE3F0",
|
|
6
|
+
15: "#FDCDE3",
|
|
6
7
|
20: "#FAB2D3",
|
|
7
8
|
30: "#F681B7",
|
|
8
9
|
40: "#FF50A0",
|
|
@@ -16,6 +17,7 @@ export const magenta = {
|
|
|
16
17
|
export const magentaText = {
|
|
17
18
|
5: grey[95],
|
|
18
19
|
10: grey[95],
|
|
20
|
+
15: grey[95],
|
|
19
21
|
20: grey[95],
|
|
20
22
|
30: grey[95],
|
|
21
23
|
40: grey[95],
|
|
@@ -2,20 +2,22 @@ import { grey } from "./grey";
|
|
|
2
2
|
|
|
3
3
|
export const orange = {
|
|
4
4
|
5: "#FFF2E8",
|
|
5
|
-
10: "#
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
10: "#FFE4CD",
|
|
6
|
+
15: "#FFCEA6",
|
|
7
|
+
20: "#FFB375",
|
|
8
|
+
30: "#FF9945",
|
|
9
|
+
40: "#FF811A",
|
|
10
|
+
50: "#D35F00",
|
|
11
|
+
60: "#AB4D00",
|
|
12
|
+
70: "#733400",
|
|
13
|
+
80: "#472000",
|
|
14
|
+
90: "#2B1400",
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export const orangeText = {
|
|
17
18
|
5: grey[95],
|
|
18
19
|
10: grey[95],
|
|
20
|
+
15: grey[95],
|
|
19
21
|
20: grey[95],
|
|
20
22
|
30: grey[95],
|
|
21
23
|
40: grey[95],
|
|
@@ -2,7 +2,8 @@ import { grey } from "./grey";
|
|
|
2
2
|
|
|
3
3
|
export const purple = {
|
|
4
4
|
5: "#F6F2FF",
|
|
5
|
-
10: "#
|
|
5
|
+
10: "#ECE1FF",
|
|
6
|
+
15: "#E1CEFF",
|
|
6
7
|
20: "#D4BBFF",
|
|
7
8
|
30: "#BE95FF",
|
|
8
9
|
40: "#9E6BF0",
|
|
@@ -16,6 +17,7 @@ export const purple = {
|
|
|
16
17
|
export const purpleText = {
|
|
17
18
|
5: grey[95],
|
|
18
19
|
10: grey[95],
|
|
20
|
+
15: grey[95],
|
|
19
21
|
20: grey[95],
|
|
20
22
|
30: grey[95],
|
|
21
23
|
40: grey[95],
|
|
@@ -2,20 +2,22 @@ import { grey } from "./grey";
|
|
|
2
2
|
|
|
3
3
|
export const red = {
|
|
4
4
|
5: "#FFF1F1",
|
|
5
|
-
10: "#
|
|
6
|
-
|
|
5
|
+
10: "#FFE3E4",
|
|
6
|
+
15: "#FFC9CC",
|
|
7
|
+
20: "#FFA1A7",
|
|
7
8
|
30: "#FF7077",
|
|
8
9
|
40: "#FA464F",
|
|
9
10
|
50: "#DA1E28",
|
|
10
11
|
60: "#A2191F",
|
|
11
12
|
70: "#750E13",
|
|
12
13
|
80: "#520408",
|
|
13
|
-
90: "#
|
|
14
|
+
90: "#2E0905",
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export const redText = {
|
|
17
18
|
5: grey[95],
|
|
18
19
|
10: grey[95],
|
|
20
|
+
15: grey[95],
|
|
19
21
|
20: grey[95],
|
|
20
22
|
30: grey[95],
|
|
21
23
|
40: grey[95],
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { grey } from "./grey";
|
|
2
2
|
|
|
3
3
|
export const yellow = {
|
|
4
|
-
5: "#
|
|
5
|
-
10: "#
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
5: "#FFFEE9",
|
|
5
|
+
10: "#FFFDC6",
|
|
6
|
+
15: "#FFFC9C",
|
|
7
|
+
20: "#FFF870",
|
|
8
|
+
30: "#FEF71C",
|
|
9
|
+
40: "#FFE81B",
|
|
10
|
+
50: "#EACC37",
|
|
11
|
+
60: "#BBA11F",
|
|
12
|
+
70: "#736A03",
|
|
13
|
+
80: "#4C4800",
|
|
14
|
+
90: "#3C3900",
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
export const yellowText = {
|
|
17
18
|
5: grey[95],
|
|
18
19
|
10: grey[95],
|
|
20
|
+
15: grey[95],
|
|
19
21
|
20: grey[95],
|
|
20
22
|
30: grey[95],
|
|
21
23
|
40: grey[95],
|
|
@@ -193,8 +193,11 @@ const paletteOptions = {
|
|
|
193
193
|
icon_warning_02: "var(--icon_warning_02)",
|
|
194
194
|
icon_info_02: "var(--icon_info_02)",
|
|
195
195
|
hover: "var(--hover)",
|
|
196
|
+
status_hover: "var(--status_hover)",
|
|
196
197
|
focused: "var(--focused)",
|
|
198
|
+
status_focused: "var(--status_focused)",
|
|
197
199
|
selected: "var(--selected)",
|
|
200
|
+
status_selected: "var(--status_selected)",
|
|
198
201
|
shadow_01: "var(--shadow_01)",
|
|
199
202
|
shadow_02: "var(--shadow_02)",
|
|
200
203
|
shadow_03: "var(--shadow_03)",
|
|
@@ -33,10 +33,11 @@ export const tokenComponentColor: TokenComponentColorValue = {
|
|
|
33
33
|
dark2: "--lunit_teal_40",
|
|
34
34
|
},
|
|
35
35
|
btn_secondary_border: {
|
|
36
|
+
// Deprecated. Please use core.border_medium instead.
|
|
36
37
|
light1: "--grey_15",
|
|
37
38
|
light2: "--grey_15",
|
|
38
|
-
dark1: "--
|
|
39
|
-
dark2: "--
|
|
39
|
+
dark1: "--grey_60",
|
|
40
|
+
dark2: "--grey_60",
|
|
40
41
|
},
|
|
41
42
|
btn_primary_text_1: {
|
|
42
43
|
light1: "--lunit_teal_50",
|
|
@@ -75,6 +76,7 @@ export const tokenComponentColor: TokenComponentColorValue = {
|
|
|
75
76
|
dark2: "--lunit_teal_80",
|
|
76
77
|
},
|
|
77
78
|
btn_selected_secondary_bg: {
|
|
79
|
+
// Deprecated. Please use btn_secondary_bg instead.
|
|
78
80
|
light1: "--lunit_teal_10",
|
|
79
81
|
light2: "--lunit_teal_10",
|
|
80
82
|
dark1: "--grey_80",
|
|
@@ -149,12 +151,14 @@ export const tokenComponentColor: TokenComponentColorValue = {
|
|
|
149
151
|
},
|
|
150
152
|
dataTable: {
|
|
151
153
|
datatable_border_01: {
|
|
154
|
+
// Deprecated. Please use core.border_medium instead.
|
|
152
155
|
light1: "--grey_20",
|
|
153
156
|
light2: "--grey_30",
|
|
154
157
|
dark1: "--grey_50",
|
|
155
158
|
dark2: "--grey_40",
|
|
156
159
|
},
|
|
157
160
|
datatable_border_02: {
|
|
161
|
+
// Deprecated. Please use core.border_light instead.
|
|
158
162
|
light1: "--grey_10",
|
|
159
163
|
light2: "--grey_15",
|
|
160
164
|
dark1: "--grey_80",
|
|
@@ -189,10 +193,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
|
|
|
189
193
|
},
|
|
190
194
|
modal: {
|
|
191
195
|
modal_overlay: {
|
|
192
|
-
light1: "rgba(
|
|
193
|
-
light2: "rgba(
|
|
194
|
-
dark1: "rgba(
|
|
195
|
-
dark2: "rgba(
|
|
196
|
+
light1: "rgba(15, 15, 18, 0.7)", // "--grey_95 70%", = #0F0F12 70%
|
|
197
|
+
light2: "rgba(15, 15, 18, 0.7)", // "--grey_95 70%",
|
|
198
|
+
dark1: "rgba(15, 15, 18, 0.7)", // "--grey_95 70%",
|
|
199
|
+
dark2: "rgba(15, 15, 18, 0.7)", // "--grey_95 70%",
|
|
196
200
|
},
|
|
197
201
|
},
|
|
198
202
|
tooltip: {
|
|
@@ -217,10 +221,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
|
|
|
217
221
|
},
|
|
218
222
|
alert: {
|
|
219
223
|
alert_error_bg: {
|
|
220
|
-
light1: "rgba(250,
|
|
221
|
-
light2: "rgba(250,
|
|
222
|
-
dark1: "rgba(255,
|
|
223
|
-
dark2: "rgba(255,
|
|
224
|
+
light1: "rgba(250, 70, 79, 0.16)", // "--red_40 16%",
|
|
225
|
+
light2: "rgba(250, 70, 79, 0.16)", // "--red_40 16%",
|
|
226
|
+
dark1: "rgba(255, 112, 119, 0.32)", // "--red_30 32%",
|
|
227
|
+
dark2: "rgba(255, 112, 119, 0.32)", // "--red_30 32%",
|
|
224
228
|
},
|
|
225
229
|
alert_error_border: {
|
|
226
230
|
light1: "--red_40",
|
|
@@ -229,10 +233,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
|
|
|
229
233
|
dark2: "--red_30",
|
|
230
234
|
},
|
|
231
235
|
alert_success_bg: {
|
|
232
|
-
light1: "rgba(
|
|
233
|
-
light2: "rgba(
|
|
234
|
-
dark1: "rgba(
|
|
235
|
-
dark2: "rgba(
|
|
236
|
+
light1: "rgba(26, 159, 63, 0.16)", // "--green_40 16%",
|
|
237
|
+
light2: "rgba(26, 159, 63, 0.16)", // "--green_40 16%",
|
|
238
|
+
dark1: "rgba(68, 190, 103, 0.32)", // "--green_30 32%",
|
|
239
|
+
dark2: "rgba(68, 190, 103, 0.32)", // "--green_30 32%",
|
|
236
240
|
},
|
|
237
241
|
alert_success_border: {
|
|
238
242
|
light1: "--green_30",
|
|
@@ -241,10 +245,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
|
|
|
241
245
|
dark2: "--green_30",
|
|
242
246
|
},
|
|
243
247
|
alert_info_bg: {
|
|
244
|
-
light1: "rgba(
|
|
245
|
-
light2: "rgba(
|
|
246
|
-
dark1: "rgba(
|
|
247
|
-
dark2: "rgba(
|
|
248
|
+
light1: "rgba(61, 136, 250, 0.16)", // "--blue_40 16%",
|
|
249
|
+
light2: "rgba(61, 136, 250, 0.16)", // "--blue_40 16%",
|
|
250
|
+
dark1: "rgba(113, 169, 250, 0.32)", // "--blue_30 32%",
|
|
251
|
+
dark2: "rgba(113, 169, 250, 0.32)", // "--blue_30 32%",
|
|
248
252
|
},
|
|
249
253
|
alert_info_border: {
|
|
250
254
|
light1: "--blue_40",
|
|
@@ -253,10 +257,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
|
|
|
253
257
|
dark2: "--blue_30",
|
|
254
258
|
},
|
|
255
259
|
alert_warning_bg: {
|
|
256
|
-
light1: "rgba(
|
|
257
|
-
light2: "rgba(
|
|
258
|
-
dark1: "rgba(255,
|
|
259
|
-
dark2: "rgba(255,
|
|
260
|
+
light1: "rgba(255, 129, 26, 0.16)", // "--orange_40 16%",
|
|
261
|
+
light2: "rgba(255, 129, 26, 0.16)", // "--orange_40 16%",
|
|
262
|
+
dark1: "rgba(255, 153, 69, 0.32)", // "--orange_30 32%",
|
|
263
|
+
dark2: "rgba(255, 153, 69, 0.32)", // "--orange_30 32%",
|
|
260
264
|
},
|
|
261
265
|
alert_warning_border: {
|
|
262
266
|
light1: "--orange_40",
|
|
@@ -120,6 +120,13 @@ export const tokenCoreColor: TokenCoreColorValue = {
|
|
|
120
120
|
dark2: "--blue_30",
|
|
121
121
|
},
|
|
122
122
|
hover: {
|
|
123
|
+
// Deprecated. Please use core.status_hover instead.
|
|
124
|
+
light1: "rgba(0, 0, 0, 0.12)", // "--grey_100 12%",
|
|
125
|
+
light2: "rgba(0, 0, 0, 0.12)", // "--grey_100 12%",
|
|
126
|
+
dark1: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
|
|
127
|
+
dark2: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
|
|
128
|
+
},
|
|
129
|
+
status_hover: {
|
|
123
130
|
// TODO: 알파값 적용 코드는 일단 하드코딩. 나중에 수정할것
|
|
124
131
|
light1: "rgba(0, 0, 0, 0.12)", // "--grey_100 12%",
|
|
125
132
|
light2: "rgba(0, 0, 0, 0.12)", // "--grey_100 12%",
|
|
@@ -127,12 +134,26 @@ export const tokenCoreColor: TokenCoreColorValue = {
|
|
|
127
134
|
dark2: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
|
|
128
135
|
},
|
|
129
136
|
focused: {
|
|
137
|
+
// Deprecated. Please use core.status_focused instead.
|
|
138
|
+
light1: "--lunit_teal_40",
|
|
139
|
+
light2: "--lunit_teal_40",
|
|
140
|
+
dark1: "--lunit_teal_40",
|
|
141
|
+
dark2: "--lunit_teal_40",
|
|
142
|
+
},
|
|
143
|
+
status_focused: {
|
|
130
144
|
light1: "--lunit_teal_40",
|
|
131
145
|
light2: "--lunit_teal_40",
|
|
132
146
|
dark1: "--lunit_teal_40",
|
|
133
147
|
dark2: "--lunit_teal_40",
|
|
134
148
|
},
|
|
135
149
|
selected: {
|
|
150
|
+
// Deprecated. Please use core.status_selected instead.
|
|
151
|
+
light1: "--lunit_teal_10",
|
|
152
|
+
light2: "--lunit_teal_10",
|
|
153
|
+
dark1: "--lunit_teal_80",
|
|
154
|
+
dark2: "--lunit_teal_80",
|
|
155
|
+
},
|
|
156
|
+
status_selected: {
|
|
136
157
|
light1: "--lunit_teal_10",
|
|
137
158
|
light2: "--lunit_teal_10",
|
|
138
159
|
dark1: "--lunit_teal_80",
|
|
@@ -20,8 +20,11 @@ export interface ColorToken {
|
|
|
20
20
|
icon_warning_02: string;
|
|
21
21
|
icon_info_02: string;
|
|
22
22
|
hover: string;
|
|
23
|
+
status_hover: string;
|
|
23
24
|
focused: string;
|
|
25
|
+
status_focused: string;
|
|
24
26
|
selected: string;
|
|
27
|
+
status_selected: string;
|
|
25
28
|
shadow_01: string;
|
|
26
29
|
shadow_02: string;
|
|
27
30
|
shadow_03: string;
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,12 @@ export { default as Checkbox } from "./components/Checkbox";
|
|
|
8
8
|
export { default as Dialog } from "./components/Dialog";
|
|
9
9
|
export { default as DataTable } from "./components/DataTable";
|
|
10
10
|
export { default as DatePicker } from "./components/DatePicker";
|
|
11
|
-
export {
|
|
11
|
+
export {
|
|
12
|
+
default as Dropdown,
|
|
13
|
+
DropdownItem,
|
|
14
|
+
DropdownDivider,
|
|
15
|
+
DropdownSubtitle,
|
|
16
|
+
} from "./components/Dropdown";
|
|
12
17
|
export { default as FormLabel } from "./components/FormLabel";
|
|
13
18
|
export { default as Radio } from "./components/Radio";
|
|
14
19
|
export { default as RadioGroup } from "./components/RadioGroup";
|