zdp-design-system 0.43.8
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/CHANGELOG.md +449 -0
- package/LICENSE +21 -0
- package/README.md +568 -0
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/dist/code.ts +2 -0
- package/dist/combobox.ts +9 -0
- package/dist/command.ts +1 -0
- package/dist/components/Accordion.svelte +97 -0
- package/dist/components/Avatar.svelte +90 -0
- package/dist/components/Badge.svelte +61 -0
- package/dist/components/Breadcrumb.svelte +97 -0
- package/dist/components/Button.svelte +163 -0
- package/dist/components/Callout.svelte +81 -0
- package/dist/components/Card.svelte +151 -0
- package/dist/components/CardHeader.svelte +58 -0
- package/dist/components/Checkbox.svelte +135 -0
- package/dist/components/CodeBlock.svelte +247 -0
- package/dist/components/Combobox.svelte +552 -0
- package/dist/components/CommandField.svelte +230 -0
- package/dist/components/ConfirmAction.svelte +307 -0
- package/dist/components/Container.svelte +63 -0
- package/dist/components/Dialog.svelte +303 -0
- package/dist/components/Disclosure.svelte +176 -0
- package/dist/components/Divider.svelte +41 -0
- package/dist/components/EmptyState.svelte +79 -0
- package/dist/components/ErrorText.svelte +18 -0
- package/dist/components/Field.svelte +38 -0
- package/dist/components/Grid.svelte +76 -0
- package/dist/components/HelpText.svelte +17 -0
- package/dist/components/Icon.svelte +45 -0
- package/dist/components/IconButton.svelte +162 -0
- package/dist/components/IdentityChip.svelte +130 -0
- package/dist/components/Inline.svelte +85 -0
- package/dist/components/InlineCode.svelte +27 -0
- package/dist/components/Input.svelte +109 -0
- package/dist/components/Kbd.svelte +63 -0
- package/dist/components/KeyValue.svelte +73 -0
- package/dist/components/Label.svelte +43 -0
- package/dist/components/Link.svelte +70 -0
- package/dist/components/LocaleSwitcher.svelte +209 -0
- package/dist/components/Menu.svelte +491 -0
- package/dist/components/Page.svelte +36 -0
- package/dist/components/PageHeader.svelte +93 -0
- package/dist/components/Pagination.svelte +297 -0
- package/dist/components/Popover.svelte +208 -0
- package/dist/components/Progress.svelte +111 -0
- package/dist/components/Radio.svelte +132 -0
- package/dist/components/Section.svelte +52 -0
- package/dist/components/SegmentedControl.svelte +190 -0
- package/dist/components/Select.svelte +88 -0
- package/dist/components/ShareDock.svelte +304 -0
- package/dist/components/Sheet.svelte +332 -0
- package/dist/components/ShortcutHint.svelte +52 -0
- package/dist/components/Skeleton.svelte +82 -0
- package/dist/components/SkipLink.svelte +40 -0
- package/dist/components/SortHeader.svelte +138 -0
- package/dist/components/Spinner.svelte +82 -0
- package/dist/components/Stack.svelte +62 -0
- package/dist/components/StatusToast.svelte +133 -0
- package/dist/components/Surface.svelte +53 -0
- package/dist/components/Switch.svelte +152 -0
- package/dist/components/Table.svelte +94 -0
- package/dist/components/TableToolbar.svelte +195 -0
- package/dist/components/Tabs.svelte +205 -0
- package/dist/components/TermSheet.svelte +392 -0
- package/dist/components/TermTrigger.svelte +70 -0
- package/dist/components/TextScaleControl.svelte +219 -0
- package/dist/components/Textarea.svelte +106 -0
- package/dist/components/ThemeToggle.svelte +148 -0
- package/dist/components/Toast.svelte +180 -0
- package/dist/components/Toolbar.svelte +83 -0
- package/dist/components/Tooltip.svelte +199 -0
- package/dist/components/VisuallyHidden.svelte +18 -0
- package/dist/disclosure.ts +11 -0
- package/dist/focusable.ts +36 -0
- package/dist/identity.ts +5 -0
- package/dist/index.d.ts +106 -0
- package/dist/index.js +76 -0
- package/dist/index.ts +106 -0
- package/dist/menu.ts +12 -0
- package/dist/modal-layer.ts +108 -0
- package/dist/pagination.ts +10 -0
- package/dist/preferences.js +14 -0
- package/dist/preferences.ts +36 -0
- package/dist/progress.ts +4 -0
- package/dist/schemas/design-tokens.schema.json +119 -0
- package/dist/segmented.ts +8 -0
- package/dist/share.d.ts +48 -0
- package/dist/share.js +115 -0
- package/dist/share.ts +99 -0
- package/dist/sheet.ts +3 -0
- package/dist/shortcuts.js +125 -0
- package/dist/shortcuts.ts +153 -0
- package/dist/styles/brand-fonts.css +10 -0
- package/dist/styles/components.css +4686 -0
- package/dist/styles/expressive-fonts.css +2 -0
- package/dist/styles/index.css +2 -0
- package/dist/styles/locale-fonts.css +4 -0
- package/dist/styles/tokens.css +413 -0
- package/dist/table-tools.ts +10 -0
- package/dist/term.ts +16 -0
- package/dist/theme.ts +2 -0
- package/dist/toast.ts +14 -0
- package/dist/tokens/zdp.tokens.json +241 -0
- package/dist/tokens.js +122 -0
- package/dist/tokens.ts +123 -0
- package/docs/CONSUMER_CONTRACT.md +482 -0
- package/docs/EXTERNAL_UI_ADOPTION.md +141 -0
- package/docs/INTERACTIVE_PRIMITIVE_AUDIT.md +127 -0
- package/package.json +78 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schemas/design-tokens.schema.json",
|
|
3
|
+
"name": "zdp-core",
|
|
4
|
+
"version": "0.6.10",
|
|
5
|
+
"color": {
|
|
6
|
+
"ink": {
|
|
7
|
+
"strong": {
|
|
8
|
+
"hex": "#2f2418",
|
|
9
|
+
"oklch": "oklch(27% 0.04 70)"
|
|
10
|
+
},
|
|
11
|
+
"normal": {
|
|
12
|
+
"hex": "#4a3826",
|
|
13
|
+
"oklch": "oklch(36% 0.05 70)"
|
|
14
|
+
},
|
|
15
|
+
"muted": {
|
|
16
|
+
"hex": "#776955",
|
|
17
|
+
"oklch": "oklch(50% 0.035 82)"
|
|
18
|
+
},
|
|
19
|
+
"inverse": {
|
|
20
|
+
"hex": "#fff8ea",
|
|
21
|
+
"oklch": "oklch(98% 0.025 86)"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"surface": {
|
|
25
|
+
"canvas": {
|
|
26
|
+
"hex": "#f7f1e3",
|
|
27
|
+
"oklch": "oklch(95% 0.03 86)"
|
|
28
|
+
},
|
|
29
|
+
"panel": {
|
|
30
|
+
"hex": "#fff8ea",
|
|
31
|
+
"oklch": "oklch(98% 0.025 86)"
|
|
32
|
+
},
|
|
33
|
+
"raised": {
|
|
34
|
+
"hex": "#f1e4cc",
|
|
35
|
+
"oklch": "oklch(91% 0.045 82)"
|
|
36
|
+
},
|
|
37
|
+
"inverse": {
|
|
38
|
+
"hex": "#2f2418",
|
|
39
|
+
"oklch": "oklch(27% 0.04 70)"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"line": {
|
|
43
|
+
"subtle": {
|
|
44
|
+
"hex": "#d8c8ac",
|
|
45
|
+
"oklch": "oklch(82% 0.045 82)"
|
|
46
|
+
},
|
|
47
|
+
"strong": {
|
|
48
|
+
"hex": "#b89a6a",
|
|
49
|
+
"oklch": "oklch(70% 0.08 76)"
|
|
50
|
+
},
|
|
51
|
+
"focus": {
|
|
52
|
+
"hex": "#8b6f45",
|
|
53
|
+
"oklch": "oklch(55% 0.075 76)"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"focus": {
|
|
57
|
+
"surface": {
|
|
58
|
+
"hex": "#e7c97a",
|
|
59
|
+
"oklch": "oklch(84% 0.1 86)"
|
|
60
|
+
},
|
|
61
|
+
"text": {
|
|
62
|
+
"hex": "#1f160d",
|
|
63
|
+
"oklch": "oklch(20% 0.035 70)"
|
|
64
|
+
},
|
|
65
|
+
"line": {
|
|
66
|
+
"hex": "#1f160d",
|
|
67
|
+
"oklch": "oklch(20% 0.035 70)"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"scrollbar": {
|
|
71
|
+
"track": {
|
|
72
|
+
"hex": "#f1e4cc",
|
|
73
|
+
"oklch": "oklch(91% 0.045 82)"
|
|
74
|
+
},
|
|
75
|
+
"thumb": {
|
|
76
|
+
"hex": "#b89a6a",
|
|
77
|
+
"oklch": "oklch(70% 0.08 76)"
|
|
78
|
+
},
|
|
79
|
+
"thumbHover": {
|
|
80
|
+
"hex": "#8b6f45",
|
|
81
|
+
"oklch": "oklch(55% 0.075 76)"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"selection": {
|
|
85
|
+
"surface": {
|
|
86
|
+
"hex": "#e7c97a",
|
|
87
|
+
"oklch": "oklch(84% 0.1 86)"
|
|
88
|
+
},
|
|
89
|
+
"text": {
|
|
90
|
+
"hex": "#1f160d",
|
|
91
|
+
"oklch": "oklch(20% 0.035 70)"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"accent": {
|
|
95
|
+
"primary": {
|
|
96
|
+
"hex": "#d8c8ac",
|
|
97
|
+
"oklch": "oklch(82% 0.045 82)"
|
|
98
|
+
},
|
|
99
|
+
"primaryStrong": {
|
|
100
|
+
"hex": "#b89a6a",
|
|
101
|
+
"oklch": "oklch(70% 0.08 76)"
|
|
102
|
+
},
|
|
103
|
+
"primarySoft": {
|
|
104
|
+
"hex": "#f1e4cc",
|
|
105
|
+
"oklch": "oklch(91% 0.045 82)"
|
|
106
|
+
},
|
|
107
|
+
"success": {
|
|
108
|
+
"hex": "#8a9076",
|
|
109
|
+
"oklch": "oklch(63% 0.035 105)"
|
|
110
|
+
},
|
|
111
|
+
"warning": {
|
|
112
|
+
"hex": "#a9824f",
|
|
113
|
+
"oklch": "oklch(60% 0.075 68)"
|
|
114
|
+
},
|
|
115
|
+
"danger": {
|
|
116
|
+
"hex": "#8b5a4d",
|
|
117
|
+
"oklch": "oklch(48% 0.06 35)"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"space": {
|
|
122
|
+
"0": "0",
|
|
123
|
+
"1": "0.25rem",
|
|
124
|
+
"2": "0.5rem",
|
|
125
|
+
"3": "0.75rem",
|
|
126
|
+
"4": "1rem",
|
|
127
|
+
"5": "1.25rem",
|
|
128
|
+
"6": "1.5rem",
|
|
129
|
+
"8": "2rem",
|
|
130
|
+
"10": "2.5rem",
|
|
131
|
+
"12": "3rem"
|
|
132
|
+
},
|
|
133
|
+
"radius": {
|
|
134
|
+
"none": "0",
|
|
135
|
+
"sm": "0.25rem",
|
|
136
|
+
"md": "0.375rem",
|
|
137
|
+
"lg": "0.5rem",
|
|
138
|
+
"pill": "999px"
|
|
139
|
+
},
|
|
140
|
+
"font": {
|
|
141
|
+
"family": {
|
|
142
|
+
"sans": "\"Pretendard Variable\", Pretendard, \"Manrope Variable\", Manrope, \"Inter Variable\", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
143
|
+
"latin": "\"Manrope Variable\", Manrope, \"Inter Variable\", Inter, \"Pretendard Variable\", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
144
|
+
"korean": "\"Pretendard Variable\", Pretendard, \"Apple SD Gothic Neo\", \"Noto Sans KR\", \"Malgun Gothic\", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
145
|
+
"chinese": "\"Noto Sans SC Variable\", \"Noto Sans SC\", \"PingFang SC\", \"Microsoft YaHei\", \"Pretendard Variable\", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
146
|
+
"devanagari": "\"Noto Sans Devanagari Variable\", \"Noto Sans Devanagari\", \"Nirmala UI\", \"Kohinoor Devanagari\", ui-sans-serif, system-ui, sans-serif",
|
|
147
|
+
"japanese": "\"Noto Sans JP Variable\", \"Noto Sans JP\", \"Hiragino Sans\", \"Yu Gothic\", \"Meiryo\", \"Pretendard Variable\", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
148
|
+
"multiscript": "\"Pretendard Variable\", Pretendard, \"Manrope Variable\", Manrope, \"Inter Variable\", Inter, \"Noto Sans SC Variable\", \"Noto Sans SC\", \"Noto Sans JP Variable\", \"Noto Sans JP\", \"Noto Sans Devanagari Variable\", \"Noto Sans Devanagari\", \"Apple SD Gothic Neo\", \"Noto Sans KR\", \"Malgun Gothic\", \"PingFang SC\", \"Microsoft YaHei\", \"Hiragino Sans\", \"Yu Gothic\", \"Meiryo\", \"Nirmala UI\", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
149
|
+
"serif": "Cardo, Georgia, \"Times New Roman\", ui-serif, serif",
|
|
150
|
+
"display": "\"Pretendard Variable\", Pretendard, \"Manrope Variable\", Manrope, \"Inter Variable\", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
151
|
+
"brand": "\"Playwrite AU VIC Guides\", \"Pretendard Variable\", Pretendard, \"Manrope Variable\", Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
152
|
+
"expressionScript": "Tangerine, \"Playwrite AU VIC Guides\", cursive",
|
|
153
|
+
"expressionInscription": "\"Caesar Dressing\", \"Fredericka the Great\", fantasy",
|
|
154
|
+
"expressionSketch": "\"Fredericka the Great\", \"Caesar Dressing\", fantasy",
|
|
155
|
+
"expressionEditorial": "Merriweather, Copse, Cardo, Georgia, \"Times New Roman\", ui-serif, serif",
|
|
156
|
+
"expressionSans": "\"Google Sans\", Cabin, \"Pretendard Variable\", Pretendard, \"Manrope Variable\", Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
157
|
+
"expressionKeyboard": "\"Libertinus Keyboard\", \"JetBrains Mono\", \"SFMono-Regular\", Consolas, monospace",
|
|
158
|
+
"mono": "\"JetBrains Mono\", \"SFMono-Regular\", Consolas, monospace"
|
|
159
|
+
},
|
|
160
|
+
"size": {
|
|
161
|
+
"xs": "0.875rem",
|
|
162
|
+
"sm": "1rem",
|
|
163
|
+
"md": "1.0625rem",
|
|
164
|
+
"lg": "1.1875rem",
|
|
165
|
+
"xl": "1.375rem"
|
|
166
|
+
},
|
|
167
|
+
"weight": {
|
|
168
|
+
"regular": "400",
|
|
169
|
+
"medium": "500",
|
|
170
|
+
"semibold": "600",
|
|
171
|
+
"bold": "700"
|
|
172
|
+
},
|
|
173
|
+
"lineHeight": {
|
|
174
|
+
"tight": "1.2",
|
|
175
|
+
"normal": "1.6",
|
|
176
|
+
"relaxed": "1.65"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"type": {
|
|
180
|
+
"bodySize": "1.125rem",
|
|
181
|
+
"bodyLineHeight": "1.6",
|
|
182
|
+
"bodySmallSize": "1rem",
|
|
183
|
+
"bodySmallLineHeight": "1.6",
|
|
184
|
+
"pageTitleSize": "2.75rem",
|
|
185
|
+
"pageTitleCompactSize": "2rem",
|
|
186
|
+
"pageTitleLineHeight": "1.15",
|
|
187
|
+
"titleSize": "1.375rem",
|
|
188
|
+
"titleLineHeight": "1.2",
|
|
189
|
+
"labelSize": "0.875rem",
|
|
190
|
+
"labelLineHeight": "1.2",
|
|
191
|
+
"captionSize": "0.875rem",
|
|
192
|
+
"captionLineHeight": "1.4",
|
|
193
|
+
"controlSize": "1rem",
|
|
194
|
+
"controlLineHeight": "1.2",
|
|
195
|
+
"dataSize": "1rem",
|
|
196
|
+
"dataLineHeight": "1.4"
|
|
197
|
+
},
|
|
198
|
+
"breakpoint": {
|
|
199
|
+
"mobile": "40rem",
|
|
200
|
+
"tablet": "64rem",
|
|
201
|
+
"desktop": "80rem",
|
|
202
|
+
"wide": "96rem"
|
|
203
|
+
},
|
|
204
|
+
"control": {
|
|
205
|
+
"heightSm": "2.25rem",
|
|
206
|
+
"heightMd": "2.75rem",
|
|
207
|
+
"iconSm": "2.25rem",
|
|
208
|
+
"iconMd": "2.75rem",
|
|
209
|
+
"glyphSm": "1rem",
|
|
210
|
+
"glyphMd": "1.25rem",
|
|
211
|
+
"choiceSize": "1.25rem",
|
|
212
|
+
"choiceIndicatorSize": "0.5rem",
|
|
213
|
+
"switchWidth": "2.25rem",
|
|
214
|
+
"switchHeight": "1.25rem",
|
|
215
|
+
"switchThumbSize": "0.875rem",
|
|
216
|
+
"switchThumbOffset": "0.125rem",
|
|
217
|
+
"switchThumbCheckedOffset": "1.125rem",
|
|
218
|
+
"radius": "0.375rem",
|
|
219
|
+
"borderWidth": "1px",
|
|
220
|
+
"focusOutlineWidth": "3px",
|
|
221
|
+
"focusOutlineOffset": "2px",
|
|
222
|
+
"focusUnderlineWidth": "3px",
|
|
223
|
+
"scrollbarSize": "0.5rem",
|
|
224
|
+
"hitTarget": "2.75rem"
|
|
225
|
+
},
|
|
226
|
+
"i18n": {
|
|
227
|
+
"textWrap": "pretty",
|
|
228
|
+
"wordBreak": "normal",
|
|
229
|
+
"overflowWrap": "anywhere",
|
|
230
|
+
"hyphens": "auto"
|
|
231
|
+
},
|
|
232
|
+
"shadow": {
|
|
233
|
+
"focus": "none",
|
|
234
|
+
"sm": "none",
|
|
235
|
+
"md": "none"
|
|
236
|
+
},
|
|
237
|
+
"motion": {
|
|
238
|
+
"fast": "120ms",
|
|
239
|
+
"normal": "180ms"
|
|
240
|
+
}
|
|
241
|
+
}
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export const zdpTokenNames = [
|
|
2
|
+
'color.ink.strong',
|
|
3
|
+
'color.ink.normal',
|
|
4
|
+
'color.ink.muted',
|
|
5
|
+
'color.ink.inverse',
|
|
6
|
+
'color.surface.canvas',
|
|
7
|
+
'color.surface.panel',
|
|
8
|
+
'color.surface.raised',
|
|
9
|
+
'color.surface.inverse',
|
|
10
|
+
'color.line.subtle',
|
|
11
|
+
'color.line.strong',
|
|
12
|
+
'color.line.focus',
|
|
13
|
+
'color.focus.surface',
|
|
14
|
+
'color.focus.text',
|
|
15
|
+
'color.focus.line',
|
|
16
|
+
'color.scrollbar.track',
|
|
17
|
+
'color.scrollbar.thumb',
|
|
18
|
+
'color.scrollbar.thumbHover',
|
|
19
|
+
'color.selection.surface',
|
|
20
|
+
'color.selection.text',
|
|
21
|
+
'color.accent.primary',
|
|
22
|
+
'color.accent.primaryStrong',
|
|
23
|
+
'color.accent.primarySoft',
|
|
24
|
+
'color.accent.success',
|
|
25
|
+
'color.accent.warning',
|
|
26
|
+
'color.accent.danger',
|
|
27
|
+
'space.0',
|
|
28
|
+
'space.1',
|
|
29
|
+
'space.2',
|
|
30
|
+
'space.3',
|
|
31
|
+
'space.4',
|
|
32
|
+
'space.5',
|
|
33
|
+
'space.6',
|
|
34
|
+
'space.8',
|
|
35
|
+
'space.10',
|
|
36
|
+
'space.12',
|
|
37
|
+
'radius.none',
|
|
38
|
+
'radius.sm',
|
|
39
|
+
'radius.md',
|
|
40
|
+
'radius.lg',
|
|
41
|
+
'radius.pill',
|
|
42
|
+
'font.family.sans',
|
|
43
|
+
'font.family.latin',
|
|
44
|
+
'font.family.korean',
|
|
45
|
+
'font.family.chinese',
|
|
46
|
+
'font.family.devanagari',
|
|
47
|
+
'font.family.japanese',
|
|
48
|
+
'font.family.multiscript',
|
|
49
|
+
'font.family.serif',
|
|
50
|
+
'font.family.display',
|
|
51
|
+
'font.family.brand',
|
|
52
|
+
'font.family.expressionScript',
|
|
53
|
+
'font.family.expressionInscription',
|
|
54
|
+
'font.family.expressionSketch',
|
|
55
|
+
'font.family.expressionEditorial',
|
|
56
|
+
'font.family.expressionSans',
|
|
57
|
+
'font.family.expressionKeyboard',
|
|
58
|
+
'font.family.mono',
|
|
59
|
+
'font.size.xs',
|
|
60
|
+
'font.size.sm',
|
|
61
|
+
'font.size.md',
|
|
62
|
+
'font.size.lg',
|
|
63
|
+
'font.size.xl',
|
|
64
|
+
'font.weight.regular',
|
|
65
|
+
'font.weight.medium',
|
|
66
|
+
'font.weight.semibold',
|
|
67
|
+
'font.weight.bold',
|
|
68
|
+
'font.lineHeight.tight',
|
|
69
|
+
'font.lineHeight.normal',
|
|
70
|
+
'font.lineHeight.relaxed',
|
|
71
|
+
'type.bodySize',
|
|
72
|
+
'type.bodyLineHeight',
|
|
73
|
+
'type.bodySmallSize',
|
|
74
|
+
'type.bodySmallLineHeight',
|
|
75
|
+
'type.pageTitleSize',
|
|
76
|
+
'type.pageTitleCompactSize',
|
|
77
|
+
'type.pageTitleLineHeight',
|
|
78
|
+
'type.titleSize',
|
|
79
|
+
'type.titleLineHeight',
|
|
80
|
+
'type.labelSize',
|
|
81
|
+
'type.labelLineHeight',
|
|
82
|
+
'type.captionSize',
|
|
83
|
+
'type.captionLineHeight',
|
|
84
|
+
'type.controlSize',
|
|
85
|
+
'type.controlLineHeight',
|
|
86
|
+
'type.dataSize',
|
|
87
|
+
'type.dataLineHeight',
|
|
88
|
+
'breakpoint.mobile',
|
|
89
|
+
'breakpoint.tablet',
|
|
90
|
+
'breakpoint.desktop',
|
|
91
|
+
'breakpoint.wide',
|
|
92
|
+
'control.heightSm',
|
|
93
|
+
'control.heightMd',
|
|
94
|
+
'control.iconSm',
|
|
95
|
+
'control.iconMd',
|
|
96
|
+
'control.glyphSm',
|
|
97
|
+
'control.glyphMd',
|
|
98
|
+
'control.choiceSize',
|
|
99
|
+
'control.choiceIndicatorSize',
|
|
100
|
+
'control.switchWidth',
|
|
101
|
+
'control.switchHeight',
|
|
102
|
+
'control.switchThumbSize',
|
|
103
|
+
'control.switchThumbOffset',
|
|
104
|
+
'control.switchThumbCheckedOffset',
|
|
105
|
+
'control.radius',
|
|
106
|
+
'control.borderWidth',
|
|
107
|
+
'control.focusOutlineWidth',
|
|
108
|
+
'control.focusOutlineOffset',
|
|
109
|
+
'control.focusUnderlineWidth',
|
|
110
|
+
'control.scrollbarSize',
|
|
111
|
+
'control.hitTarget',
|
|
112
|
+
'i18n.textWrap',
|
|
113
|
+
'i18n.wordBreak',
|
|
114
|
+
'i18n.overflowWrap',
|
|
115
|
+
'i18n.hyphens',
|
|
116
|
+
'shadow.focus',
|
|
117
|
+
'shadow.sm',
|
|
118
|
+
'shadow.md',
|
|
119
|
+
'motion.fast',
|
|
120
|
+
'motion.normal'
|
|
121
|
+
];
|
|
122
|
+
|
package/dist/tokens.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export const zdpTokenNames = [
|
|
2
|
+
'color.ink.strong',
|
|
3
|
+
'color.ink.normal',
|
|
4
|
+
'color.ink.muted',
|
|
5
|
+
'color.ink.inverse',
|
|
6
|
+
'color.surface.canvas',
|
|
7
|
+
'color.surface.panel',
|
|
8
|
+
'color.surface.raised',
|
|
9
|
+
'color.surface.inverse',
|
|
10
|
+
'color.line.subtle',
|
|
11
|
+
'color.line.strong',
|
|
12
|
+
'color.line.focus',
|
|
13
|
+
'color.focus.surface',
|
|
14
|
+
'color.focus.text',
|
|
15
|
+
'color.focus.line',
|
|
16
|
+
'color.scrollbar.track',
|
|
17
|
+
'color.scrollbar.thumb',
|
|
18
|
+
'color.scrollbar.thumbHover',
|
|
19
|
+
'color.selection.surface',
|
|
20
|
+
'color.selection.text',
|
|
21
|
+
'color.accent.primary',
|
|
22
|
+
'color.accent.primaryStrong',
|
|
23
|
+
'color.accent.primarySoft',
|
|
24
|
+
'color.accent.success',
|
|
25
|
+
'color.accent.warning',
|
|
26
|
+
'color.accent.danger',
|
|
27
|
+
'space.0',
|
|
28
|
+
'space.1',
|
|
29
|
+
'space.2',
|
|
30
|
+
'space.3',
|
|
31
|
+
'space.4',
|
|
32
|
+
'space.5',
|
|
33
|
+
'space.6',
|
|
34
|
+
'space.8',
|
|
35
|
+
'space.10',
|
|
36
|
+
'space.12',
|
|
37
|
+
'radius.none',
|
|
38
|
+
'radius.sm',
|
|
39
|
+
'radius.md',
|
|
40
|
+
'radius.lg',
|
|
41
|
+
'radius.pill',
|
|
42
|
+
'font.family.sans',
|
|
43
|
+
'font.family.latin',
|
|
44
|
+
'font.family.korean',
|
|
45
|
+
'font.family.chinese',
|
|
46
|
+
'font.family.devanagari',
|
|
47
|
+
'font.family.japanese',
|
|
48
|
+
'font.family.multiscript',
|
|
49
|
+
'font.family.serif',
|
|
50
|
+
'font.family.display',
|
|
51
|
+
'font.family.brand',
|
|
52
|
+
'font.family.expressionScript',
|
|
53
|
+
'font.family.expressionInscription',
|
|
54
|
+
'font.family.expressionSketch',
|
|
55
|
+
'font.family.expressionEditorial',
|
|
56
|
+
'font.family.expressionSans',
|
|
57
|
+
'font.family.expressionKeyboard',
|
|
58
|
+
'font.family.mono',
|
|
59
|
+
'font.size.xs',
|
|
60
|
+
'font.size.sm',
|
|
61
|
+
'font.size.md',
|
|
62
|
+
'font.size.lg',
|
|
63
|
+
'font.size.xl',
|
|
64
|
+
'font.weight.regular',
|
|
65
|
+
'font.weight.medium',
|
|
66
|
+
'font.weight.semibold',
|
|
67
|
+
'font.weight.bold',
|
|
68
|
+
'font.lineHeight.tight',
|
|
69
|
+
'font.lineHeight.normal',
|
|
70
|
+
'font.lineHeight.relaxed',
|
|
71
|
+
'type.bodySize',
|
|
72
|
+
'type.bodyLineHeight',
|
|
73
|
+
'type.bodySmallSize',
|
|
74
|
+
'type.bodySmallLineHeight',
|
|
75
|
+
'type.pageTitleSize',
|
|
76
|
+
'type.pageTitleCompactSize',
|
|
77
|
+
'type.pageTitleLineHeight',
|
|
78
|
+
'type.titleSize',
|
|
79
|
+
'type.titleLineHeight',
|
|
80
|
+
'type.labelSize',
|
|
81
|
+
'type.labelLineHeight',
|
|
82
|
+
'type.captionSize',
|
|
83
|
+
'type.captionLineHeight',
|
|
84
|
+
'type.controlSize',
|
|
85
|
+
'type.controlLineHeight',
|
|
86
|
+
'type.dataSize',
|
|
87
|
+
'type.dataLineHeight',
|
|
88
|
+
'breakpoint.mobile',
|
|
89
|
+
'breakpoint.tablet',
|
|
90
|
+
'breakpoint.desktop',
|
|
91
|
+
'breakpoint.wide',
|
|
92
|
+
'control.heightSm',
|
|
93
|
+
'control.heightMd',
|
|
94
|
+
'control.iconSm',
|
|
95
|
+
'control.iconMd',
|
|
96
|
+
'control.glyphSm',
|
|
97
|
+
'control.glyphMd',
|
|
98
|
+
'control.choiceSize',
|
|
99
|
+
'control.choiceIndicatorSize',
|
|
100
|
+
'control.switchWidth',
|
|
101
|
+
'control.switchHeight',
|
|
102
|
+
'control.switchThumbSize',
|
|
103
|
+
'control.switchThumbOffset',
|
|
104
|
+
'control.switchThumbCheckedOffset',
|
|
105
|
+
'control.radius',
|
|
106
|
+
'control.borderWidth',
|
|
107
|
+
'control.focusOutlineWidth',
|
|
108
|
+
'control.focusOutlineOffset',
|
|
109
|
+
'control.focusUnderlineWidth',
|
|
110
|
+
'control.scrollbarSize',
|
|
111
|
+
'control.hitTarget',
|
|
112
|
+
'i18n.textWrap',
|
|
113
|
+
'i18n.wordBreak',
|
|
114
|
+
'i18n.overflowWrap',
|
|
115
|
+
'i18n.hyphens',
|
|
116
|
+
'shadow.focus',
|
|
117
|
+
'shadow.sm',
|
|
118
|
+
'shadow.md',
|
|
119
|
+
'motion.fast',
|
|
120
|
+
'motion.normal'
|
|
121
|
+
] as const;
|
|
122
|
+
|
|
123
|
+
export type ZdpTokenName = (typeof zdpTokenNames)[number];
|