@lunit/design-system 1.0.0 → 2.0.1
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/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/Dialog/index.js +2 -0
- package/dist/cjs/components/Dialog/index.js.map +1 -0
- package/dist/cjs/components/Radio/index.js +1 -1
- package/dist/cjs/components/Radio/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/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/components/Button/Button.styled.js +1 -1
- package/dist/components/Button/Button.styled.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +9 -19
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Dialog/Dialog.js +57 -0
- package/dist/components/Dialog/Dialog.js.map +1 -0
- package/dist/components/Dialog/Dialog.styled.js +146 -0
- package/dist/components/Dialog/Dialog.styled.js.map +1 -0
- package/dist/components/Dialog/components/DialogAction.js +18 -0
- package/dist/components/Dialog/components/DialogAction.js.map +1 -0
- package/dist/components/Dialog/index.js +2 -0
- package/dist/components/Dialog/index.js.map +1 -0
- package/dist/components/Radio/Radio.js +7 -21
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.styled.js +1 -1
- package/dist/components/ToggleButton/ToggleButton.styled.js.map +1 -1
- package/dist/foundation/Elevation/index.js +1 -1
- package/dist/foundation/Elevation/index.js.map +1 -1
- package/dist/foundation/Typography/index.js +0 -6
- package/dist/foundation/Typography/index.js.map +1 -1
- package/dist/foundation/Typography/tokens.js +1 -1
- package/dist/foundation/colors/base/grey.js +3 -1
- package/dist/foundation/colors/base/grey.js.map +1 -1
- package/dist/foundation/colors/index.js +5 -6
- package/dist/foundation/colors/index.js.map +1 -1
- package/dist/foundation/colors/token/component.js +31 -115
- package/dist/foundation/colors/token/component.js.map +1 -1
- package/dist/foundation/colors/token/core.js +43 -75
- 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/Alert/Alert.utils.d.ts +3 -3
- package/dist/types/components/Button/Button.styled.d.ts +8 -8
- package/dist/types/components/Chip/Chip.styled.d.ts +12 -12
- package/dist/types/components/Dialog/Dialog.d.ts +50 -0
- package/dist/types/components/Dialog/Dialog.styled.d.ts +12 -0
- package/dist/types/components/Dialog/components/DialogAction.d.ts +8 -0
- package/dist/types/components/Dialog/index.d.ts +2 -0
- package/dist/types/components/Toast/Toast.utils.d.ts +1 -1
- package/dist/types/components/ToggleButton/ToggleButton.styled.d.ts +2 -2
- package/dist/types/foundation/Elevation/index.d.ts +1 -1
- package/dist/types/foundation/Typography/index.d.ts +1 -7
- package/dist/types/foundation/Typography/tokens.d.ts +1 -1
- package/dist/types/foundation/colors/base/grey.d.ts +2 -0
- package/dist/types/foundation/colors/index.d.ts +5 -6
- package/dist/types/foundation/colors/token/types.d.ts +0 -2
- package/dist/types/foundation/colors/types.d.ts +78 -76
- package/dist/types/foundation/index.d.ts +5 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Button/Button.styled.ts +1 -1
- package/src/components/Checkbox/Checkbox.tsx +39 -22
- package/src/components/Dialog/Dialog.styled.ts +172 -0
- package/src/components/Dialog/Dialog.tsx +189 -0
- package/src/components/Dialog/components/DialogAction.tsx +36 -0
- package/src/components/Dialog/index.ts +14 -0
- package/src/components/Radio/Radio.tsx +37 -25
- package/src/components/ToggleButton/ToggleButton.styled.ts +1 -1
- package/src/foundation/Elevation/index.ts +1 -1
- package/src/foundation/Typography/index.ts +0 -6
- package/src/foundation/Typography/tokens.ts +1 -1
- package/src/foundation/colors/base/grey.ts +3 -1
- package/src/foundation/colors/index.ts +5 -6
- package/src/foundation/colors/token/component.ts +26 -110
- package/src/foundation/colors/token/core.ts +39 -71
- package/src/foundation/colors/token/types.ts +0 -2
- package/src/foundation/colors/types.ts +78 -75
- package/src/index.ts +1 -1
- package/src/stories/GettingStarted.mdx +88 -0
- package/src/stories/components/Button/BasicButton.stories.tsx +80 -52
- package/src/stories/components/Button/ButtonDocs.mdx +187 -0
- package/src/stories/components/Button/Color.stories.tsx +132 -0
- package/src/stories/components/Button/IconButton.stories.tsx +41 -35
- package/src/stories/components/Button/Kind.stories.tsx +13 -52
- package/src/stories/components/{SelectControl/Checkbox.stories.tsx → CheckBox/BasicCheckbox.stories.tsx} +84 -105
- package/src/stories/components/CheckBox/CheckboxDocs.mdx +85 -0
- package/src/stories/components/Chip/Chip.stories.tsx +65 -0
- package/src/stories/components/Chip/ChipDocs.mdx +132 -0
- package/src/stories/components/Dialog/Dialog.stories.tsx +320 -0
- package/src/stories/components/Dialog/DialogDocs.mdx +181 -0
- package/src/stories/components/TextField/BasicTextField.stories.tsx +214 -0
- package/src/stories/components/TextField/TextFieldDocs.mdx +140 -0
- package/src/stories/components/TextField/TextFieldSize.stories.tsx +26 -3
- package/src/stories/components/ToggleButton/Basic.stories.tsx +312 -0
- package/src/stories/components/ToggleButton/ToggleButtonDocs.mdx +180 -0
- package/src/stories/components/ToggleButton/ToggleButtonKind.stories.tsx +65 -0
- package/src/stories/components/ToggleButton/WithIcon.stories.tsx +138 -0
- package/src/stories/foundation/Typography/Typography.mdx +31 -46
- package/src/stories/foundation/Typography/Typography.stories.tsx +30 -1
- package/src/stories/foundation/colors/ColorSystem.tsx +86 -0
- package/src/stories/foundation/colors/Docs.mdx +225 -0
- package/src/stories/foundation/colors/TokenPaletteTable.tsx +1 -5
- package/src/components/Modal/Modal.tsx +0 -8
- package/src/components/Modal/index.ts +0 -1
- package/src/stories/components/Modal/Modal.stories.tsx +0 -15
- package/src/stories/foundation/Typography/TypographyExamples.stories.tsx +0 -44
|
@@ -3,202 +3,170 @@ export const tokenCoreColor = {
|
|
|
3
3
|
light1: "--grey_0",
|
|
4
4
|
light2: "--grey_10",
|
|
5
5
|
dark1: "--grey_90",
|
|
6
|
-
dark2: "--
|
|
7
|
-
dark3: "--grey_80",
|
|
8
|
-
dark4: "--grey_70",
|
|
6
|
+
dark2: "--grey_75",
|
|
9
7
|
},
|
|
10
8
|
bg_02: {
|
|
11
9
|
light1: "--grey_0",
|
|
12
10
|
light2: "--grey_0",
|
|
13
11
|
dark1: "--grey_70",
|
|
14
12
|
dark2: "--grey_70",
|
|
15
|
-
dark3: "--grey_70",
|
|
16
|
-
dark4: "--grey_70",
|
|
17
13
|
},
|
|
18
14
|
bg_03: {
|
|
19
15
|
light1: "--grey_0",
|
|
20
16
|
light2: "--grey_0",
|
|
21
17
|
dark1: "--grey_85",
|
|
22
18
|
dark2: "--grey_85",
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
},
|
|
20
|
+
layer_01: {
|
|
21
|
+
light1: "--grey_5",
|
|
22
|
+
light2: "--grey_5",
|
|
23
|
+
dark1: "--grey_80",
|
|
24
|
+
dark2: "--grey_80",
|
|
25
25
|
},
|
|
26
26
|
text_primary: {
|
|
27
27
|
light1: "--lunit_teal_50",
|
|
28
28
|
light2: "--lunit_teal_50",
|
|
29
29
|
dark1: "--lunit_teal_40",
|
|
30
30
|
dark2: "--lunit_teal_40",
|
|
31
|
-
dark3: "--lunit_teal_40",
|
|
32
|
-
dark4: "--lunit_teal_40",
|
|
33
31
|
},
|
|
34
32
|
text_normal: {
|
|
35
33
|
light1: "--grey_95",
|
|
36
34
|
light2: "--grey_95",
|
|
37
35
|
dark1: "--grey_5",
|
|
38
36
|
dark2: "--grey_5",
|
|
39
|
-
dark3: "--grey_5",
|
|
40
|
-
dark4: "--grey_5",
|
|
41
37
|
},
|
|
42
38
|
text_medium: {
|
|
43
39
|
light1: "--grey_60",
|
|
44
40
|
light2: "--grey_60",
|
|
45
|
-
dark1: "--
|
|
46
|
-
dark2: "--
|
|
47
|
-
dark3: "--grey_40",
|
|
48
|
-
dark4: "--grey_30",
|
|
41
|
+
dark1: "--grey_30",
|
|
42
|
+
dark2: "--grey_30",
|
|
49
43
|
},
|
|
50
44
|
text_light: {
|
|
51
45
|
light1: "--grey_40",
|
|
52
46
|
light2: "--grey_40",
|
|
53
47
|
dark1: "--grey_50",
|
|
54
48
|
dark2: "--grey_50",
|
|
55
|
-
dark3: "--grey_50",
|
|
56
|
-
dark4: "--grey_40",
|
|
57
49
|
},
|
|
58
50
|
text_error: {
|
|
59
51
|
light1: "--red_40",
|
|
60
52
|
light2: "--red_40",
|
|
61
53
|
dark1: "--red_40",
|
|
62
|
-
dark2: "--
|
|
63
|
-
dark3: "--red_30",
|
|
64
|
-
dark4: "--red_30",
|
|
54
|
+
dark2: "--red_30",
|
|
65
55
|
},
|
|
66
56
|
text_success: {
|
|
67
57
|
light1: "--green_40",
|
|
68
58
|
light2: "--green_40",
|
|
69
59
|
dark1: "--green_40",
|
|
70
|
-
dark2: "--
|
|
71
|
-
dark3: "--green_30",
|
|
72
|
-
dark4: "--green_30",
|
|
60
|
+
dark2: "--green_30",
|
|
73
61
|
},
|
|
74
62
|
text_warning: {
|
|
75
63
|
light1: "--orange_40",
|
|
76
64
|
light2: "--orange_40",
|
|
77
65
|
dark1: "--orange_40",
|
|
78
|
-
dark2: "--
|
|
79
|
-
dark3: "--orange_30",
|
|
80
|
-
dark4: "--orange_30",
|
|
66
|
+
dark2: "--orange_30",
|
|
81
67
|
},
|
|
82
68
|
text_info: {
|
|
83
69
|
light1: "--blue_40",
|
|
84
70
|
light2: "--blue_40",
|
|
85
71
|
dark1: "--blue_40",
|
|
86
|
-
dark2: "--
|
|
87
|
-
dark3: "--blue_30",
|
|
88
|
-
dark4: "--blue_30",
|
|
72
|
+
dark2: "--blue_30",
|
|
89
73
|
},
|
|
90
74
|
link_primary: {
|
|
91
75
|
light1: "--blue_40",
|
|
92
76
|
light2: "--blue_40",
|
|
93
|
-
dark1: "--
|
|
94
|
-
dark2: "--
|
|
95
|
-
dark3: "--blue_30",
|
|
96
|
-
dark4: "--blue_30",
|
|
77
|
+
dark1: "--blue_30",
|
|
78
|
+
dark2: "--blue_30",
|
|
97
79
|
},
|
|
98
80
|
link_hover: {
|
|
99
81
|
light1: "--blue_50",
|
|
100
82
|
light2: "--blue_50",
|
|
101
|
-
dark1: "--
|
|
102
|
-
dark2: "--
|
|
103
|
-
dark3: "--blue_40",
|
|
104
|
-
dark4: "--blue_40",
|
|
83
|
+
dark1: "--blue_40",
|
|
84
|
+
dark2: "--blue_40",
|
|
105
85
|
},
|
|
106
86
|
link_visited: {
|
|
107
87
|
light1: "--purple_50",
|
|
108
88
|
light2: "--purple_50",
|
|
109
|
-
dark1: "--
|
|
110
|
-
dark2: "--
|
|
111
|
-
dark3: "--purple_40",
|
|
112
|
-
dark4: "--purple_40",
|
|
89
|
+
dark1: "--purple_40",
|
|
90
|
+
dark2: "--purple_40",
|
|
113
91
|
},
|
|
114
92
|
icon_error_02: {
|
|
115
93
|
light1: "--red_40",
|
|
116
94
|
light2: "--red_40",
|
|
117
95
|
dark1: "--red_30",
|
|
118
96
|
dark2: "--red_30",
|
|
119
|
-
dark3: "--red_30",
|
|
120
|
-
dark4: "--red_30",
|
|
121
97
|
},
|
|
122
98
|
icon_success_02: {
|
|
123
99
|
light1: "--green_40",
|
|
124
100
|
light2: "--green_40",
|
|
125
101
|
dark1: "--green_30",
|
|
126
102
|
dark2: "--green_30",
|
|
127
|
-
dark3: "--green_30",
|
|
128
|
-
dark4: "--green_30",
|
|
129
103
|
},
|
|
130
104
|
icon_warning_02: {
|
|
131
105
|
light1: "--orange_40",
|
|
132
106
|
light2: "--orange_40",
|
|
133
107
|
dark1: "--orange_30",
|
|
134
108
|
dark2: "--orange_30",
|
|
135
|
-
dark3: "--orange_30",
|
|
136
|
-
dark4: "--orange_30",
|
|
137
109
|
},
|
|
138
110
|
icon_info_02: {
|
|
139
111
|
light1: "--blue_40",
|
|
140
112
|
light2: "--blue_40",
|
|
141
113
|
dark1: "--blue_30",
|
|
142
114
|
dark2: "--blue_30",
|
|
143
|
-
dark3: "--blue_30",
|
|
144
|
-
dark4: "--blue_30",
|
|
145
115
|
},
|
|
146
116
|
hover: {
|
|
147
117
|
// TODO: 알파값 적용 코드는 일단 하드코딩. 나중에 수정할것
|
|
148
|
-
light1: "rgba(0, 0, 0, 0.
|
|
149
|
-
light2: "rgba(0, 0, 0, 0.
|
|
150
|
-
dark1: "rgba(
|
|
151
|
-
dark2: "rgba(
|
|
152
|
-
dark3: "rgba(0, 0, 0, 0.1)",
|
|
153
|
-
dark4: "rgba(0, 0, 0, 0.1)", // grey_100 10%
|
|
118
|
+
light1: "rgba(0, 0, 0, 0.12)",
|
|
119
|
+
light2: "rgba(0, 0, 0, 0.12)",
|
|
120
|
+
dark1: "rgba(255, 255, 255, 0.12)",
|
|
121
|
+
dark2: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
|
|
154
122
|
},
|
|
155
123
|
focused: {
|
|
156
124
|
light1: "--lunit_teal_40",
|
|
157
125
|
light2: "--lunit_teal_40",
|
|
158
126
|
dark1: "--lunit_teal_40",
|
|
159
127
|
dark2: "--lunit_teal_40",
|
|
160
|
-
dark3: "--lunit_teal_40",
|
|
161
|
-
dark4: "--lunit_teal_40",
|
|
162
128
|
},
|
|
163
129
|
selected: {
|
|
164
130
|
light1: "--lunit_teal_10",
|
|
165
131
|
light2: "--lunit_teal_10",
|
|
166
132
|
dark1: "--lunit_teal_80",
|
|
167
133
|
dark2: "--lunit_teal_80",
|
|
168
|
-
dark3: "--lunit_teal_80",
|
|
169
|
-
dark4: "--lunit_teal_80",
|
|
170
134
|
},
|
|
171
135
|
shadow_01: {
|
|
172
136
|
light1: "rgba(0, 0, 0, 0.12)",
|
|
173
137
|
light2: "rgba(0, 0, 0, 0.12)",
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
dark2: "rgba(0, 0, 0, 0.32)",
|
|
177
|
-
dark1: "rgba(0, 0, 0, 0.32)", // "--grey_100 32%",
|
|
138
|
+
dark1: "rgba(0, 0, 0, 0.32)",
|
|
139
|
+
dark2: "rgba(0, 0, 0, 0.32)", // "--grey_100 32%",
|
|
178
140
|
},
|
|
179
141
|
shadow_02: {
|
|
180
142
|
light1: "rgba(0, 0, 0, 0.18)",
|
|
181
143
|
light2: "rgba(0, 0, 0, 0.18)",
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
dark2: "rgba(0, 0, 0, 0.4)",
|
|
185
|
-
dark1: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
|
|
144
|
+
dark1: "rgba(0, 0, 0, 0.4)",
|
|
145
|
+
dark2: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
|
|
186
146
|
},
|
|
187
147
|
shadow_03: {
|
|
188
148
|
light1: "rgba(0, 0, 0, 0.12)",
|
|
189
149
|
light2: "rgba(0, 0, 0, 0.12)",
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
dark2: "rgba(0, 0, 0, 0.36)",
|
|
193
|
-
dark1: "rgba(0, 0, 0, 0.36)", // "--grey_100 36%",
|
|
150
|
+
dark1: "rgba(0, 0, 0, 0.36)",
|
|
151
|
+
dark2: "rgba(0, 0, 0, 0.36)", // "--grey_100 36%",
|
|
194
152
|
},
|
|
195
153
|
shadow_04: {
|
|
196
154
|
light1: "rgba(0, 0, 0, 0.18)",
|
|
197
155
|
light2: "rgba(0, 0, 0, 0.18)",
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
156
|
+
dark1: "rgba(0, 0, 0, 0.48)",
|
|
157
|
+
dark2: "rgba(0, 0, 0, 0.48)", // "--grey_100 48%",
|
|
158
|
+
},
|
|
159
|
+
border_light: {
|
|
160
|
+
light1: "rgba(0, 0, 0, 0.12)",
|
|
161
|
+
light2: "rgba(0, 0, 0, 0.12)",
|
|
162
|
+
dark1: "rgba(255, 255, 255, 0.12)",
|
|
163
|
+
dark2: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
|
|
164
|
+
},
|
|
165
|
+
border_medium: {
|
|
166
|
+
light1: "rgba(0, 0, 0, 0.24)",
|
|
167
|
+
light2: "rgba(0, 0, 0, 0.24)",
|
|
168
|
+
dark1: "rgba(255, 255, 255, 0.24)",
|
|
169
|
+
dark2: "rgba(255, 255, 255, 0.24)", // "--grey_0 24%",
|
|
202
170
|
},
|
|
203
171
|
};
|
|
204
172
|
//# sourceMappingURL=core.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../../../src/foundation/colors/token/core.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAwB;IACjD,KAAK,EAAE;QACL,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,WAAW;QACnB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../../../src/foundation/colors/token/core.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAwB;IACjD,KAAK,EAAE;QACL,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,WAAW;QACnB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;KACnB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;KACnB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;KACnB;IACD,QAAQ,EAAE;QACR,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;KACnB;IACD,YAAY,EAAE;QACZ,M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ClD;IACD,SAAS,EAAE;QACT,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,qBAAqB,EAAE,oBAAoB;KACnD;IACD,SAAS,EAAE;QACT,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,qBAAqB,EAAE,oBAAoB;KACnD;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,2BAA2B;QAClC,KAAK,EAAE,2BAA2B,EAAE,kBAAkB;KACvD;IACD,aAAa,EAAE;QACb,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,2BAA2B;QAClC,KAAK,EAAE,2BAA2B,EAAE,kBAAkB;KACvD;CACF,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,11 @@ export { default as Alert } from "./components/Alert";
|
|
|
4
4
|
export { default as Button } from "./components/Button";
|
|
5
5
|
export { default as Chip } from "./components/Chip";
|
|
6
6
|
export { default as Checkbox } from "./components/Checkbox";
|
|
7
|
+
export { default as Dialog } from "./components/Dialog";
|
|
7
8
|
export { default as DataTable } from "./components/DataTable";
|
|
8
9
|
export { default as DatePicker } from "./components/DatePicker";
|
|
9
10
|
export { default as Dropdown } from "./components/Dropdown";
|
|
10
11
|
export { default as FormLabel } from "./components/FormLabel";
|
|
11
|
-
export { default as Modal } from "./components/Modal";
|
|
12
12
|
export { default as Radio } from "./components/Radio";
|
|
13
13
|
export { default as RadioGroup } from "./components/RadioGroup";
|
|
14
14
|
export { default as TextField } from "./components/TextField";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,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;AACtD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AlertColor, Theme } from "@mui/material";
|
|
2
|
-
export declare const getBackgroundColor: (theme: Theme, severity: AlertColor | undefined) =>
|
|
3
|
-
export declare const getBorderColor: (theme: Theme, severity: AlertColor | undefined) =>
|
|
4
|
-
export declare const getIconColor: (theme: Theme, severity: AlertColor | undefined) =>
|
|
2
|
+
export declare const getBackgroundColor: (theme: Theme, severity: AlertColor | undefined) => string;
|
|
3
|
+
export declare const getBorderColor: (theme: Theme, severity: AlertColor | undefined) => string;
|
|
4
|
+
export declare const getIconColor: (theme: Theme, severity: AlertColor | undefined) => string;
|
|
@@ -823,7 +823,7 @@ export declare const sizeStyle: ({ size, kind, hasIconOnly, typography, selected
|
|
|
823
823
|
vectorEffect?: import("csstype").Property.VectorEffect | undefined;
|
|
824
824
|
};
|
|
825
825
|
export declare const kindStyle: ({ kind, color, lunit_token }: KindStyleParams) => {
|
|
826
|
-
color?:
|
|
826
|
+
color?: string | undefined;
|
|
827
827
|
border?: string | undefined;
|
|
828
828
|
"&:hover"?: {
|
|
829
829
|
position: string;
|
|
@@ -838,19 +838,19 @@ export declare const kindStyle: ({ kind, color, lunit_token }: KindStyleParams)
|
|
|
838
838
|
width: string;
|
|
839
839
|
height: string;
|
|
840
840
|
zIndex: number;
|
|
841
|
-
backgroundColor:
|
|
841
|
+
backgroundColor: string;
|
|
842
842
|
borderRadius: string;
|
|
843
843
|
} | undefined;
|
|
844
844
|
"&.Mui-disabled"?: {
|
|
845
845
|
opacity: number;
|
|
846
846
|
border: string;
|
|
847
|
-
color:
|
|
847
|
+
color: string;
|
|
848
848
|
} | {
|
|
849
849
|
opacity: number;
|
|
850
|
-
color:
|
|
850
|
+
color: string;
|
|
851
851
|
border?: undefined;
|
|
852
852
|
} | undefined;
|
|
853
|
-
backgroundColor?:
|
|
853
|
+
backgroundColor?: string | undefined;
|
|
854
854
|
};
|
|
855
855
|
export declare const commonStyle: ({ lunit_token }: {
|
|
856
856
|
lunit_token: ColorToken;
|
|
@@ -877,7 +877,7 @@ export declare const commonStyle: ({ lunit_token }: {
|
|
|
877
877
|
readonly width: "100%";
|
|
878
878
|
readonly height: "100%";
|
|
879
879
|
readonly zIndex: -1;
|
|
880
|
-
readonly backgroundColor:
|
|
880
|
+
readonly backgroundColor: string;
|
|
881
881
|
readonly borderRadius: "8px";
|
|
882
882
|
};
|
|
883
883
|
};
|
|
@@ -893,7 +893,7 @@ export declare const iconStyle: ({ size, hasIconOnly, }: Pick<CustomButtonProps,
|
|
|
893
893
|
export declare const CustomButton: import("@emotion/styled").StyledComponent<{
|
|
894
894
|
children?: import("react").ReactNode;
|
|
895
895
|
classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
|
|
896
|
-
color?: "
|
|
896
|
+
color?: "inherit" | "primary" | "secondary" | "error" | "warning" | "success" | "info" | undefined;
|
|
897
897
|
disabled?: boolean | undefined;
|
|
898
898
|
disableElevation?: boolean | undefined;
|
|
899
899
|
disableFocusRipple?: boolean | undefined;
|
|
@@ -922,5 +922,5 @@ export declare const CustomButton: import("@emotion/styled").StyledComponent<{
|
|
|
922
922
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
923
923
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
924
924
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
925
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "
|
|
925
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "color" | "disabled" | "size" | "sx" | "tabIndex" | "variant" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CustomButtonProps, {}, {}>;
|
|
926
926
|
export {};
|
|
@@ -6,7 +6,7 @@ export declare const StyledOutlinedChip: import("@emotion/styled").StyledCompone
|
|
|
6
6
|
children?: null | undefined;
|
|
7
7
|
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
8
8
|
clickable?: boolean | undefined;
|
|
9
|
-
color?: "
|
|
9
|
+
color?: "primary" | "secondary" | "error" | "warning" | "success" | "default" | "info" | undefined;
|
|
10
10
|
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
@@ -16,16 +16,16 @@ export declare const StyledOutlinedChip: import("@emotion/styled").StyledCompone
|
|
|
16
16
|
skipFocusWhenDisabled?: boolean | undefined;
|
|
17
17
|
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
18
18
|
tabIndex?: number | undefined;
|
|
19
|
-
variant?: "
|
|
19
|
+
variant?: "outlined" | "filled" | undefined;
|
|
20
20
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
21
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "
|
|
22
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "avatar" | "children" | "clickable" | "color" | "deleteIcon" | "disabled" | "icon" | "onDelete" | "size" | "skipFocusWhenDisabled" | "sx" | "tabIndex" | "variant"> & import("@mui/system").MUIStyledCommonProps<Theme> & OutlinedChipProps, {}, {}>;
|
|
23
23
|
export declare const StyledContainedChipBase: import("@emotion/styled").StyledComponent<{
|
|
24
24
|
avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
25
25
|
children?: null | undefined;
|
|
26
26
|
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
27
27
|
clickable?: boolean | undefined;
|
|
28
|
-
color?: "
|
|
28
|
+
color?: "primary" | "secondary" | "error" | "warning" | "success" | "default" | "info" | undefined;
|
|
29
29
|
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
30
30
|
disabled?: boolean | undefined;
|
|
31
31
|
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
@@ -35,16 +35,16 @@ export declare const StyledContainedChipBase: import("@emotion/styled").StyledCo
|
|
|
35
35
|
skipFocusWhenDisabled?: boolean | undefined;
|
|
36
36
|
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
37
37
|
tabIndex?: number | undefined;
|
|
38
|
-
variant?: "
|
|
38
|
+
variant?: "outlined" | "filled" | undefined;
|
|
39
39
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
40
40
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
41
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "
|
|
41
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "avatar" | "children" | "clickable" | "color" | "deleteIcon" | "disabled" | "icon" | "onDelete" | "size" | "skipFocusWhenDisabled" | "sx" | "tabIndex" | "variant"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
|
|
42
42
|
export declare const StyledContainedChipEnable: import("@emotion/styled").StyledComponent<{
|
|
43
43
|
avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
44
44
|
children?: null | undefined;
|
|
45
45
|
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
46
46
|
clickable?: boolean | undefined;
|
|
47
|
-
color?: "
|
|
47
|
+
color?: "primary" | "secondary" | "error" | "warning" | "success" | "default" | "info" | undefined;
|
|
48
48
|
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
49
49
|
disabled?: boolean | undefined;
|
|
50
50
|
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
@@ -54,16 +54,16 @@ export declare const StyledContainedChipEnable: import("@emotion/styled").Styled
|
|
|
54
54
|
skipFocusWhenDisabled?: boolean | undefined;
|
|
55
55
|
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
56
56
|
tabIndex?: number | undefined;
|
|
57
|
-
variant?: "
|
|
57
|
+
variant?: "outlined" | "filled" | undefined;
|
|
58
58
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
59
59
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
60
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "
|
|
60
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "avatar" | "children" | "clickable" | "color" | "deleteIcon" | "disabled" | "icon" | "onDelete" | "size" | "skipFocusWhenDisabled" | "sx" | "tabIndex" | "variant"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps & EnableContainedChipProps, {}, {}>;
|
|
61
61
|
export declare const StyledContainedChipDeletable: import("@emotion/styled").StyledComponent<{
|
|
62
62
|
avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
63
63
|
children?: null | undefined;
|
|
64
64
|
classes?: Partial<import("@mui/material").ChipClasses> | undefined;
|
|
65
65
|
clickable?: boolean | undefined;
|
|
66
|
-
color?: "
|
|
66
|
+
color?: "primary" | "secondary" | "error" | "warning" | "success" | "default" | "info" | undefined;
|
|
67
67
|
deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
68
68
|
disabled?: boolean | undefined;
|
|
69
69
|
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
@@ -73,7 +73,7 @@ export declare const StyledContainedChipDeletable: import("@emotion/styled").Sty
|
|
|
73
73
|
skipFocusWhenDisabled?: boolean | undefined;
|
|
74
74
|
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
75
75
|
tabIndex?: number | undefined;
|
|
76
|
-
variant?: "
|
|
76
|
+
variant?: "outlined" | "filled" | undefined;
|
|
77
77
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
78
78
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
79
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "
|
|
79
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "avatar" | "children" | "clickable" | "color" | "deleteIcon" | "disabled" | "icon" | "onDelete" | "size" | "skipFocusWhenDisabled" | "sx" | "tabIndex" | "variant"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { SxProps } from "@mui/material/styles";
|
|
3
|
+
import type { TypographyProps } from "@mui/material";
|
|
4
|
+
export interface DialogBase {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose(): void;
|
|
7
|
+
type?: "passive" | "action";
|
|
8
|
+
nonModal?: boolean;
|
|
9
|
+
title: string;
|
|
10
|
+
titleIcon?: React.ReactNode;
|
|
11
|
+
titleVariant?: TypographyProps["variant"];
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
actions?: React.ReactNode;
|
|
14
|
+
enableBackButtonClose?: boolean;
|
|
15
|
+
enableBackdropClose?: boolean;
|
|
16
|
+
size?: "small" | "medium";
|
|
17
|
+
sx?: SxProps;
|
|
18
|
+
style?: React.CSSProperties;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface PassiveDialogType extends DialogBase {
|
|
22
|
+
type: "passive";
|
|
23
|
+
actions?: undefined;
|
|
24
|
+
enableBackButtonClose?: true;
|
|
25
|
+
enableBackdropClose?: true;
|
|
26
|
+
}
|
|
27
|
+
export interface ActionDialogType extends DialogBase {
|
|
28
|
+
type: "action";
|
|
29
|
+
actions: React.ReactNode;
|
|
30
|
+
enableBackButtonClose?: false;
|
|
31
|
+
enableBackdropClose?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface PassiveModalProps extends PassiveDialogType {
|
|
34
|
+
nonModal?: false;
|
|
35
|
+
}
|
|
36
|
+
export interface ActionModalProps extends ActionDialogType {
|
|
37
|
+
nonModal?: false;
|
|
38
|
+
}
|
|
39
|
+
export type ModalProps = PassiveModalProps | ActionModalProps;
|
|
40
|
+
export interface PassiveNonModalProps extends PassiveDialogType {
|
|
41
|
+
nonModal?: true;
|
|
42
|
+
}
|
|
43
|
+
export interface ActionNonModalProps extends ActionDialogType {
|
|
44
|
+
nonModal?: true;
|
|
45
|
+
enableBackdropClose?: false;
|
|
46
|
+
}
|
|
47
|
+
export type NonModalProps = PassiveNonModalProps | ActionNonModalProps;
|
|
48
|
+
export type DialogProps = ModalProps | NonModalProps;
|
|
49
|
+
declare function Dialog(props: DialogProps): React.ReactPortal | null;
|
|
50
|
+
export default Dialog;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DialogBase } from "./Dialog";
|
|
3
|
+
import type { CSSObject } from "@mui/material/styles";
|
|
4
|
+
export interface DialogElementStyle {
|
|
5
|
+
[key: string]: CSSObject;
|
|
6
|
+
}
|
|
7
|
+
export type DialogStyle = Pick<DialogBase, "size" | "type" | "nonModal">;
|
|
8
|
+
export declare const StyledBackdrop: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const StyledDialog: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & DialogStyle, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const StyledDialogTitle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
11
|
+
export declare const StyledDialogTitleIconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
export declare const StyledDialogContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface DialogActionProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
justifyContent?: React.CSSProperties["justifyContent"];
|
|
5
|
+
sx?: React.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
export declare function DialogAction(props: DialogActionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default DialogAction;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { AlertColor, Theme } from "@mui/material";
|
|
2
|
-
export declare const getIconColor: (theme: Theme, severity: AlertColor | undefined) =>
|
|
2
|
+
export declare const getIconColor: (theme: Theme, severity: AlertColor | undefined) => string;
|
|
@@ -6,7 +6,7 @@ type CustomToggleButtonProps = ToggleButtonProps & {
|
|
|
6
6
|
export declare const CustomToggleButton: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
children?: import("react").ReactNode;
|
|
8
8
|
classes?: Partial<import("@mui/material").ToggleButtonClasses> | undefined;
|
|
9
|
-
color?: "
|
|
9
|
+
color?: "primary" | "secondary" | "error" | "warning" | "success" | "info" | "standard" | undefined;
|
|
10
10
|
disabled?: boolean | undefined;
|
|
11
11
|
disableFocusRipple?: boolean | undefined;
|
|
12
12
|
fullWidth?: boolean | undefined;
|
|
@@ -34,7 +34,7 @@ export declare const CustomToggleButton: import("@emotion/styled").StyledCompone
|
|
|
34
34
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
35
35
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
36
36
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
37
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "
|
|
37
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "color" | "disabled" | "size" | "sx" | "tabIndex" | "onChange" | "onClick" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CustomToggleButtonProps, {}, {}>;
|
|
38
38
|
export declare const IconAndChildrenWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
39
39
|
export declare const IconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
40
40
|
hasIconOnly: boolean;
|
|
@@ -19,7 +19,7 @@ export declare const elevationOptions: {
|
|
|
19
19
|
shadow4: string;
|
|
20
20
|
};
|
|
21
21
|
export declare const createElevationCssBaseline: () => {
|
|
22
|
-
".light1, .light2, .dark1, .dark2
|
|
22
|
+
".light1, .light2, .dark1, .dark2": {
|
|
23
23
|
"--elevation-shadow": string;
|
|
24
24
|
elevation_00: string;
|
|
25
25
|
elevation_01: string;
|
|
@@ -72,7 +72,7 @@ export declare const createTypographyCssBaseline: () => {
|
|
|
72
72
|
"--headline2-line-height": "65px";
|
|
73
73
|
"--headline3-font-weight": "var(--font-weight-semibold)";
|
|
74
74
|
"--headline3-font-size": "24px";
|
|
75
|
-
"--headline3-line-height": "
|
|
75
|
+
"--headline3-line-height": "29px";
|
|
76
76
|
"--headline4-font-weight": "var(--font-weight-semibold)";
|
|
77
77
|
"--headline4-font-size": "20px";
|
|
78
78
|
"--headline4-line-height": "28px";
|
|
@@ -96,11 +96,5 @@ export declare const createTypographyCssBaseline: () => {
|
|
|
96
96
|
".dark2": {
|
|
97
97
|
color: string;
|
|
98
98
|
};
|
|
99
|
-
".dark3": {
|
|
100
|
-
color: string;
|
|
101
|
-
};
|
|
102
|
-
".dark4": {
|
|
103
|
-
color: string;
|
|
104
|
-
};
|
|
105
99
|
};
|
|
106
100
|
export default typographyOptions;
|
|
@@ -42,7 +42,7 @@ export declare const cssVariables: {
|
|
|
42
42
|
"--headline2-line-height": "65px";
|
|
43
43
|
"--headline3-font-weight": "var(--font-weight-semibold)";
|
|
44
44
|
"--headline3-font-size": "24px";
|
|
45
|
-
"--headline3-line-height": "
|
|
45
|
+
"--headline3-line-height": "29px";
|
|
46
46
|
"--headline4-font-weight": "var(--font-weight-semibold)";
|
|
47
47
|
"--headline4-font-size": "20px";
|
|
48
48
|
"--headline4-line-height": "28px";
|
|
@@ -4,6 +4,7 @@ export declare const grey: {
|
|
|
4
4
|
10: string;
|
|
5
5
|
15: string;
|
|
6
6
|
20: string;
|
|
7
|
+
25: string;
|
|
7
8
|
30: string;
|
|
8
9
|
40: string;
|
|
9
10
|
50: string;
|
|
@@ -22,6 +23,7 @@ export declare const greyText: {
|
|
|
22
23
|
10: string;
|
|
23
24
|
15: string;
|
|
24
25
|
20: string;
|
|
26
|
+
25: string;
|
|
25
27
|
30: string;
|
|
26
28
|
40: string;
|
|
27
29
|
50: string;
|