@sanity/ui 3.0.0-static.4 → 3.0.0-static.6
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/_chunks-cjs/_visual-editing.js +81 -31
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +82 -32
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +14 -11
- package/dist/_visual-editing.d.ts +14 -11
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +144 -852
- package/dist/css.d.ts +144 -852
- package/dist/css.js +155 -141
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +154 -141
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +14 -11
- package/dist/index.d.ts +14 -11
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +54 -49
- package/dist/theme.js +271 -33
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +252 -16
- package/dist/theme.mjs.map +1 -1
- package/package.json +2 -2
- package/src/css/aspects/flex/flexJustify.style.ts +3 -3
- package/src/css/aspects/grid/types.ts +2 -2
- package/src/css/index.ts +2 -2
- package/src/css/primitives/_input/__workshop__/index.ts +1 -1
- package/src/css/primitives/button/button.style.ts +6 -4
- package/src/css/primitives/stack/index.ts +1 -0
- package/src/css/primitives/stack/stack.style.ts +9 -0
- package/src/css/primitives/stack/stack.ts +6 -0
- package/src/css/system.style.ts +2 -0
- package/src/theme/v3/defaults.ts +1 -1
- package/src/ui/components/autocomplete/__workshop__/index.ts +1 -1
- package/src/ui/components/dialog/dialog.tsx +3 -4
- package/src/ui/constants.ts +6 -0
- package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +0 -2
- package/src/ui/primitives/box/box.tsx +6 -0
- package/src/ui/primitives/button/button.tsx +11 -10
- package/src/ui/primitives/code/code.tsx +1 -1
- package/src/ui/primitives/popover/popover.tsx +5 -75
- package/src/ui/primitives/stack/stack.tsx +10 -5
- package/src/ui/primitives/textInput/textInput.tsx +1 -1
- package/src/ui/primitives/tooltip/tooltip.tsx +2 -3
- package/dist/_chunks-cjs/v3_v2.js +0 -251
- package/dist/_chunks-cjs/v3_v2.js.map +0 -1
- package/dist/_chunks-es/v3_v2.mjs +0 -252
- package/dist/_chunks-es/v3_v2.mjs.map +0 -1
package/dist/css.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {AvatarSize} from '@sanity/ui/theme'
|
|
2
|
-
import {ColorHueKey} from '@sanity/color'
|
|
3
2
|
import {ContainerWidth} from '@sanity/ui/theme'
|
|
4
3
|
import {default as CSS_2} from 'csstype'
|
|
5
4
|
import {FontCodeSize} from '@sanity/ui/theme'
|
|
@@ -7,19 +6,18 @@ import {FontHeadingSize} from '@sanity/ui/theme'
|
|
|
7
6
|
import {FontLabelSize} from '@sanity/ui/theme'
|
|
8
7
|
import {FontTextSize} from '@sanity/ui/theme'
|
|
9
8
|
import {FontWeight} from '@sanity/ui/theme'
|
|
10
|
-
import {Hue
|
|
9
|
+
import {Hue} from '@sanity/ui/theme'
|
|
11
10
|
import {Radius} from '@sanity/ui/theme'
|
|
12
11
|
import {RootTheme} from '@sanity/ui/theme'
|
|
13
12
|
import {Shadow} from '@sanity/ui/theme'
|
|
14
13
|
import {Space} from '@sanity/ui/theme'
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {Tint as Tint_2} from '@sanity/ui/theme'
|
|
14
|
+
import {ThemeBoxShadow} from '@sanity/ui/theme'
|
|
15
|
+
import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
|
|
16
|
+
import {ThemeColorButtonModeKey} from '@sanity/ui/theme'
|
|
17
|
+
import {ThemeColorCardToneKey} from '@sanity/ui/theme'
|
|
18
|
+
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
19
|
+
import {ThemeColorStateToneKey} from '@sanity/ui/theme'
|
|
20
|
+
import {Tint} from '@sanity/ui/theme'
|
|
23
21
|
|
|
24
22
|
export declare function animatedSpinnerIcon(): string | undefined
|
|
25
23
|
|
|
@@ -49,7 +47,7 @@ export declare type AvatarScopedVarName =
|
|
|
49
47
|
export declare function avatarStack(props: {size?: AvatarStyleProps['size']}): string | undefined
|
|
50
48
|
|
|
51
49
|
export declare interface AvatarStyleProps {
|
|
52
|
-
color:
|
|
50
|
+
color: ThemeColorAvatarColorKey
|
|
53
51
|
size: ResponsiveProp<AvatarSize>
|
|
54
52
|
}
|
|
55
53
|
|
|
@@ -58,7 +56,7 @@ export declare function badge(props: BadgeStyleProps): string | undefined
|
|
|
58
56
|
|
|
59
57
|
/** @public */
|
|
60
58
|
export declare interface BadgeStyleProps extends RadiusStyleProps {
|
|
61
|
-
tone:
|
|
59
|
+
tone: ThemeColorStateToneKey
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
/** @public */
|
|
@@ -126,91 +124,21 @@ export declare interface ButtonStyleProps
|
|
|
126
124
|
FlexItemStyleProps,
|
|
127
125
|
RadiusStyleProps,
|
|
128
126
|
WidthStyleProps {
|
|
129
|
-
mode?:
|
|
130
|
-
tone?:
|
|
127
|
+
mode?: ThemeColorButtonModeKey
|
|
128
|
+
tone?: ThemeColorStateToneKey
|
|
131
129
|
}
|
|
132
130
|
|
|
133
131
|
export declare function card(props: CardStyleProps): string | undefined
|
|
134
132
|
|
|
135
|
-
/** @public */
|
|
136
|
-
declare interface CardColorTokens {
|
|
137
|
-
_hue: Hue
|
|
138
|
-
avatar: Record<
|
|
139
|
-
Hue,
|
|
140
|
-
{
|
|
141
|
-
_hue: Hue
|
|
142
|
-
bg: [ColorToken, ColorToken]
|
|
143
|
-
fg: [ColorToken, ColorToken]
|
|
144
|
-
}
|
|
145
|
-
>
|
|
146
|
-
backdrop: [ColorToken, ColorToken]
|
|
147
|
-
focusRing: [ColorToken, ColorToken]
|
|
148
|
-
link: {
|
|
149
|
-
fg: [ColorToken, ColorToken]
|
|
150
|
-
}
|
|
151
|
-
shadow: {
|
|
152
|
-
outline: [ColorToken, ColorToken]
|
|
153
|
-
umbra: [ColorToken, ColorToken]
|
|
154
|
-
penumbra: [ColorToken, ColorToken]
|
|
155
|
-
ambient: [ColorToken, ColorToken]
|
|
156
|
-
}
|
|
157
|
-
skeleton: {
|
|
158
|
-
from: [ColorToken, ColorToken]
|
|
159
|
-
to: [ColorToken, ColorToken]
|
|
160
|
-
}
|
|
161
|
-
token: {
|
|
162
|
-
atrule: [ColorToken, ColorToken]
|
|
163
|
-
attrName: [ColorToken, ColorToken]
|
|
164
|
-
attrValue: [ColorToken, ColorToken]
|
|
165
|
-
attribute: [ColorToken, ColorToken]
|
|
166
|
-
boolean: [ColorToken, ColorToken]
|
|
167
|
-
builtin: [ColorToken, ColorToken]
|
|
168
|
-
cdata: [ColorToken, ColorToken]
|
|
169
|
-
char: [ColorToken, ColorToken]
|
|
170
|
-
class: [ColorToken, ColorToken]
|
|
171
|
-
className: [ColorToken, ColorToken]
|
|
172
|
-
comment: [ColorToken, ColorToken]
|
|
173
|
-
constant: [ColorToken, ColorToken]
|
|
174
|
-
deleted: [ColorToken, ColorToken]
|
|
175
|
-
doctype: [ColorToken, ColorToken]
|
|
176
|
-
entity: [ColorToken, ColorToken]
|
|
177
|
-
function: [ColorToken, ColorToken]
|
|
178
|
-
hexcode: [ColorToken, ColorToken]
|
|
179
|
-
id: [ColorToken, ColorToken]
|
|
180
|
-
important: [ColorToken, ColorToken]
|
|
181
|
-
inserted: [ColorToken, ColorToken]
|
|
182
|
-
keyword: [ColorToken, ColorToken]
|
|
183
|
-
number: [ColorToken, ColorToken]
|
|
184
|
-
operator: [ColorToken, ColorToken]
|
|
185
|
-
prolog: [ColorToken, ColorToken]
|
|
186
|
-
property: [ColorToken, ColorToken]
|
|
187
|
-
pseudoClass: [ColorToken, ColorToken]
|
|
188
|
-
pseudoElement: [ColorToken, ColorToken]
|
|
189
|
-
punctuation: [ColorToken, ColorToken]
|
|
190
|
-
regex: [ColorToken, ColorToken]
|
|
191
|
-
selector: [ColorToken, ColorToken]
|
|
192
|
-
string: [ColorToken, ColorToken]
|
|
193
|
-
symbol: [ColorToken, ColorToken]
|
|
194
|
-
tag: [ColorToken, ColorToken]
|
|
195
|
-
unit: [ColorToken, ColorToken]
|
|
196
|
-
url: [ColorToken, ColorToken]
|
|
197
|
-
variable: [ColorToken, ColorToken]
|
|
198
|
-
}
|
|
199
|
-
variant: {
|
|
200
|
-
solid: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
|
|
201
|
-
tinted: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
133
|
/** @public */
|
|
206
134
|
export declare type CardScopedVarName =
|
|
207
135
|
| `--color-accent-fg`
|
|
208
136
|
| `--color-avatar-bg`
|
|
209
137
|
| `--color-avatar-fg`
|
|
210
|
-
| `--color-avatar-${
|
|
211
|
-
| `--color-avatar-${
|
|
138
|
+
| `--color-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
139
|
+
| `--color-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
212
140
|
| `--color-backdrop`
|
|
213
|
-
| `--color-${ElementColorVariant}-${
|
|
141
|
+
| `--color-${ElementColorVariant}-${ThemeColorStateToneKey}-${ElementColorVariantKey}`
|
|
214
142
|
| `--color-bg`
|
|
215
143
|
| `--color-border`
|
|
216
144
|
| `--color-code-bg`
|
|
@@ -291,8 +219,8 @@ export declare type CardScopedVarName =
|
|
|
291
219
|
export declare interface CardStyleProps extends BoxStyleProps, ShadowStyleProps {
|
|
292
220
|
checkered?: boolean
|
|
293
221
|
selectable?: boolean
|
|
294
|
-
scheme?:
|
|
295
|
-
tone?:
|
|
222
|
+
scheme?: ThemeColorSchemeKey
|
|
223
|
+
tone?: ThemeColorCardToneKey | 'inherit'
|
|
296
224
|
}
|
|
297
225
|
|
|
298
226
|
export declare function checkbox(): string | undefined
|
|
@@ -329,7 +257,7 @@ export declare interface ColorAvatarColorVars {
|
|
|
329
257
|
}
|
|
330
258
|
|
|
331
259
|
/** @public */
|
|
332
|
-
export declare type ColorAvatarVars = Record<
|
|
260
|
+
export declare type ColorAvatarVars = Record<ThemeColorAvatarColorKey, ColorAvatarColorVars>
|
|
333
261
|
|
|
334
262
|
/** @public */
|
|
335
263
|
export declare interface ColorBadgeToneVars {
|
|
@@ -340,120 +268,120 @@ export declare interface ColorBadgeToneVars {
|
|
|
340
268
|
}
|
|
341
269
|
|
|
342
270
|
/** @public */
|
|
343
|
-
export declare type ColorBadgeVars = Record<
|
|
271
|
+
export declare type ColorBadgeVars = Record<ThemeColorStateToneKey, ColorBadgeToneVars>
|
|
344
272
|
|
|
345
273
|
export declare type ColorCardToneScopedVarName =
|
|
346
|
-
| `--color-${
|
|
347
|
-
| `--color-${
|
|
348
|
-
| `--color-${
|
|
349
|
-
| `--color-${
|
|
350
|
-
| `--color-${
|
|
351
|
-
| `--color-${
|
|
352
|
-
| `--color-${
|
|
353
|
-
| `--color-${
|
|
354
|
-
| `--color-${
|
|
355
|
-
| `--color-${
|
|
356
|
-
| `--color-${
|
|
357
|
-
| `--color-${
|
|
358
|
-
| `--color-${
|
|
359
|
-
| `--color-${
|
|
360
|
-
| `--color-${
|
|
361
|
-
| `--color-${
|
|
362
|
-
| `--color-${
|
|
363
|
-
| `--color-${
|
|
364
|
-
| `--color-${
|
|
365
|
-
| `--color-${
|
|
366
|
-
| `--color-${
|
|
367
|
-
| `--color-${
|
|
368
|
-
| `--color-${
|
|
369
|
-
| `--color-${
|
|
370
|
-
| `--color-${
|
|
371
|
-
| `--color-${
|
|
372
|
-
| `--color-${
|
|
373
|
-
| `--color-${
|
|
374
|
-
| `--color-${
|
|
375
|
-
| `--color-${
|
|
376
|
-
| `--color-${
|
|
377
|
-
| `--color-${
|
|
378
|
-
| `--color-${
|
|
379
|
-
| `--color-${
|
|
380
|
-
| `--color-${
|
|
381
|
-
| `--color-${
|
|
382
|
-
| `--color-${
|
|
383
|
-
| `--color-${
|
|
384
|
-
| `--color-${
|
|
385
|
-
| `--color-${
|
|
386
|
-
| `--color-${
|
|
387
|
-
| `--color-${
|
|
388
|
-
| `--color-${
|
|
389
|
-
| `--color-${
|
|
390
|
-
| `--color-${
|
|
391
|
-
| `--color-${
|
|
392
|
-
| `--color-${
|
|
393
|
-
| `--color-${
|
|
394
|
-
| `--color-${
|
|
395
|
-
| `--color-${
|
|
396
|
-
| `--color-${
|
|
274
|
+
| `--color-${ThemeColorCardToneKey}-accent-fg`
|
|
275
|
+
| `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
276
|
+
| `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
277
|
+
| `--color-${ThemeColorCardToneKey}-backdrop`
|
|
278
|
+
| `--color-${ThemeColorCardToneKey}-focus-ring`
|
|
279
|
+
| `--color-${ThemeColorCardToneKey}-link-fg`
|
|
280
|
+
| `--color-${ThemeColorCardToneKey}-muted-bg`
|
|
281
|
+
| `--color-${ThemeColorCardToneKey}-muted-fg`
|
|
282
|
+
| `--color-${ThemeColorCardToneKey}-${ElementColorVariant}-${ThemeColorStateToneKey}-${ElementColorVariantKey}`
|
|
283
|
+
| `--color-${ThemeColorCardToneKey}-shadow-outline`
|
|
284
|
+
| `--color-${ThemeColorCardToneKey}-shadow-umbra`
|
|
285
|
+
| `--color-${ThemeColorCardToneKey}-shadow-penumbra`
|
|
286
|
+
| `--color-${ThemeColorCardToneKey}-shadow-ambient`
|
|
287
|
+
| `--color-${ThemeColorCardToneKey}-skeleton-from`
|
|
288
|
+
| `--color-${ThemeColorCardToneKey}-skeleton-to`
|
|
289
|
+
| `--color-${ThemeColorCardToneKey}-token-atrule`
|
|
290
|
+
| `--color-${ThemeColorCardToneKey}-token-attr-name`
|
|
291
|
+
| `--color-${ThemeColorCardToneKey}-token-attr-value`
|
|
292
|
+
| `--color-${ThemeColorCardToneKey}-token-attribute`
|
|
293
|
+
| `--color-${ThemeColorCardToneKey}-token-boolean`
|
|
294
|
+
| `--color-${ThemeColorCardToneKey}-token-builtin`
|
|
295
|
+
| `--color-${ThemeColorCardToneKey}-token-cdata`
|
|
296
|
+
| `--color-${ThemeColorCardToneKey}-token-char`
|
|
297
|
+
| `--color-${ThemeColorCardToneKey}-token-class`
|
|
298
|
+
| `--color-${ThemeColorCardToneKey}-token-class-name`
|
|
299
|
+
| `--color-${ThemeColorCardToneKey}-token-comment`
|
|
300
|
+
| `--color-${ThemeColorCardToneKey}-token-constant`
|
|
301
|
+
| `--color-${ThemeColorCardToneKey}-token-deleted`
|
|
302
|
+
| `--color-${ThemeColorCardToneKey}-token-doctype`
|
|
303
|
+
| `--color-${ThemeColorCardToneKey}-token-entity`
|
|
304
|
+
| `--color-${ThemeColorCardToneKey}-token-function`
|
|
305
|
+
| `--color-${ThemeColorCardToneKey}-token-hexcode`
|
|
306
|
+
| `--color-${ThemeColorCardToneKey}-token-id`
|
|
307
|
+
| `--color-${ThemeColorCardToneKey}-token-important`
|
|
308
|
+
| `--color-${ThemeColorCardToneKey}-token-inserted`
|
|
309
|
+
| `--color-${ThemeColorCardToneKey}-token-keyword`
|
|
310
|
+
| `--color-${ThemeColorCardToneKey}-token-number`
|
|
311
|
+
| `--color-${ThemeColorCardToneKey}-token-operator`
|
|
312
|
+
| `--color-${ThemeColorCardToneKey}-token-prolog`
|
|
313
|
+
| `--color-${ThemeColorCardToneKey}-token-property`
|
|
314
|
+
| `--color-${ThemeColorCardToneKey}-token-pseudo-class`
|
|
315
|
+
| `--color-${ThemeColorCardToneKey}-token-pseudo-element`
|
|
316
|
+
| `--color-${ThemeColorCardToneKey}-token-punctuation`
|
|
317
|
+
| `--color-${ThemeColorCardToneKey}-token-regex`
|
|
318
|
+
| `--color-${ThemeColorCardToneKey}-token-selector`
|
|
319
|
+
| `--color-${ThemeColorCardToneKey}-token-string`
|
|
320
|
+
| `--color-${ThemeColorCardToneKey}-token-symbol`
|
|
321
|
+
| `--color-${ThemeColorCardToneKey}-token-tag`
|
|
322
|
+
| `--color-${ThemeColorCardToneKey}-token-unit`
|
|
323
|
+
| `--color-${ThemeColorCardToneKey}-token-url`
|
|
324
|
+
| `--color-${ThemeColorCardToneKey}-token-variable`
|
|
397
325
|
|
|
398
326
|
export declare type ColorCardVarName =
|
|
399
|
-
| `--color-${
|
|
400
|
-
| `--color-${
|
|
401
|
-
| `--color-${
|
|
402
|
-
| `--color-${
|
|
403
|
-
| `--color-${
|
|
404
|
-
| `--color-${
|
|
405
|
-
| `--color-${
|
|
406
|
-
| `--color-${
|
|
407
|
-
| `--color-${
|
|
408
|
-
| `--color-${
|
|
409
|
-
| `--color-${
|
|
410
|
-
| `--color-${
|
|
411
|
-
| `--color-${
|
|
412
|
-
| `--color-${
|
|
413
|
-
| `--color-${
|
|
414
|
-
| `--color-${
|
|
415
|
-
| `--color-${
|
|
416
|
-
| `--color-${
|
|
417
|
-
| `--color-${
|
|
418
|
-
| `--color-${
|
|
419
|
-
| `--color-${
|
|
420
|
-
| `--color-${
|
|
421
|
-
| `--color-${
|
|
422
|
-
| `--color-${
|
|
423
|
-
| `--color-${
|
|
424
|
-
| `--color-${
|
|
425
|
-
| `--color-${
|
|
426
|
-
| `--color-${
|
|
427
|
-
| `--color-${
|
|
428
|
-
| `--color-${
|
|
429
|
-
| `--color-${
|
|
430
|
-
| `--color-${
|
|
431
|
-
| `--color-${
|
|
432
|
-
| `--color-${
|
|
433
|
-
| `--color-${
|
|
434
|
-
| `--color-${
|
|
435
|
-
| `--color-${
|
|
436
|
-
| `--color-${
|
|
437
|
-
| `--color-${
|
|
438
|
-
| `--color-${
|
|
439
|
-
| `--color-${
|
|
440
|
-
| `--color-${
|
|
441
|
-
| `--color-${
|
|
442
|
-
| `--color-${
|
|
443
|
-
| `--color-${
|
|
444
|
-
| `--color-${
|
|
445
|
-
| `--color-${
|
|
446
|
-
| `--color-${
|
|
447
|
-
| `--color-${
|
|
448
|
-
| `--color-${
|
|
449
|
-
| `--color-${
|
|
327
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-accent-fg`
|
|
328
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
329
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
330
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-backdrop`
|
|
331
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-focus-ring`
|
|
332
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-link-fg`
|
|
333
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-bg`
|
|
334
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-fg`
|
|
335
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-${ElementColorVariant}-${ThemeColorStateToneKey}-${ElementColorVariantKey}`
|
|
336
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-outline`
|
|
337
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-umbra`
|
|
338
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-penumbra`
|
|
339
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-ambient`
|
|
340
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-from`
|
|
341
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-to`
|
|
342
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-atrule`
|
|
343
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-attr-name`
|
|
344
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-attr-value`
|
|
345
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-attribute`
|
|
346
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-boolean`
|
|
347
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-builtin`
|
|
348
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-cdata`
|
|
349
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-char`
|
|
350
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-class`
|
|
351
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-class-name`
|
|
352
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-comment`
|
|
353
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-constant`
|
|
354
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-deleted`
|
|
355
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-doctype`
|
|
356
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-entity`
|
|
357
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-function`
|
|
358
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-hexcode`
|
|
359
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-id`
|
|
360
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-important`
|
|
361
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-inserted`
|
|
362
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-keyword`
|
|
363
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-number`
|
|
364
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-operator`
|
|
365
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-prolog`
|
|
366
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-property`
|
|
367
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-pseudo-class`
|
|
368
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-pseudo-element`
|
|
369
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-punctuation`
|
|
370
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-regex`
|
|
371
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-selector`
|
|
372
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-string`
|
|
373
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-symbol`
|
|
374
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-tag`
|
|
375
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-unit`
|
|
376
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-url`
|
|
377
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-token-variable`
|
|
450
378
|
|
|
451
379
|
/** @public */
|
|
452
380
|
export declare interface ColorCardVarNames {
|
|
453
381
|
accent: {
|
|
454
382
|
fg: VarName
|
|
455
383
|
}
|
|
456
|
-
avatar: Record<
|
|
384
|
+
avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames>
|
|
457
385
|
backdrop: VarName
|
|
458
386
|
focusRing: VarName
|
|
459
387
|
link: {
|
|
@@ -644,40 +572,21 @@ export declare interface ColorInputStateVars {
|
|
|
644
572
|
}
|
|
645
573
|
|
|
646
574
|
/** @public */
|
|
647
|
-
export declare type ColorSchemeVarNames = Record<
|
|
648
|
-
|
|
649
|
-
/** @public */
|
|
650
|
-
export declare interface ColorSchemeVars extends Record<ThemeColorCardToneKey_2, ColorCardVars> {}
|
|
651
|
-
|
|
652
|
-
/** @public */
|
|
653
|
-
declare type ColorToken =
|
|
654
|
-
| `black`
|
|
655
|
-
| `black/${ColorTokenOpacityValue}`
|
|
656
|
-
| `white`
|
|
657
|
-
| `white/${ColorTokenOpacityValue}`
|
|
658
|
-
| `${Hue}/${Tint}`
|
|
659
|
-
| `${Hue}/${Tint}/${ColorTokenOpacityValue}`
|
|
660
|
-
| `${Hue}/${Tint} ${number}%`
|
|
661
|
-
| `${Tint}`
|
|
662
|
-
| `${Tint}/${ColorTokenOpacityValue}`
|
|
663
|
-
| `${Tint} ${number}%`
|
|
664
|
-
|
|
665
|
-
/** @public */
|
|
666
|
-
declare type ColorTokenOpacityValue = `0` | `0.${number}` | `1`
|
|
575
|
+
export declare type ColorSchemeVarNames = Record<ThemeColorCardToneKey, ColorCardVarNames>
|
|
667
576
|
|
|
668
577
|
/** @public */
|
|
669
|
-
declare
|
|
578
|
+
export declare interface ColorSchemeVars extends Record<ThemeColorCardToneKey, ColorCardVars> {}
|
|
670
579
|
|
|
671
580
|
export declare interface ColorVariantVarNames
|
|
672
581
|
extends ColorElementVarNames,
|
|
673
|
-
Record<
|
|
582
|
+
Record<ThemeColorStateToneKey, ColorElementVarNames> {}
|
|
674
583
|
|
|
675
584
|
/** @public */
|
|
676
585
|
export declare interface ColorVariantVars
|
|
677
|
-
extends Record<
|
|
586
|
+
extends Record<ThemeColorStateToneKey, ColorElementVars>,
|
|
678
587
|
ColorElementVars {}
|
|
679
588
|
|
|
680
|
-
export declare type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12
|
|
589
|
+
export declare type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
681
590
|
|
|
682
591
|
export declare function compilePalette(): string
|
|
683
592
|
|
|
@@ -696,13 +605,6 @@ export declare interface ContainerStyleProps {
|
|
|
696
605
|
width?: ResponsiveProp<ContainerWidth>
|
|
697
606
|
}
|
|
698
607
|
|
|
699
|
-
/**
|
|
700
|
-
* Work around types that are missing in `styled-components@6`
|
|
701
|
-
* https://github.com/styled-components/styled-components/issues/4062
|
|
702
|
-
* @internal
|
|
703
|
-
*/
|
|
704
|
-
declare type CSSObject = StyledObject<any>
|
|
705
|
-
|
|
706
608
|
/** @public */
|
|
707
609
|
export declare type CSSVar = `var(${VarName})`
|
|
708
610
|
|
|
@@ -741,23 +643,6 @@ export declare interface DisplayStyleProps {
|
|
|
741
643
|
display?: ResponsiveProp<Display>
|
|
742
644
|
}
|
|
743
645
|
|
|
744
|
-
/** @public */
|
|
745
|
-
declare interface ElementColorTokens {
|
|
746
|
-
_hue: Hue
|
|
747
|
-
bg: {
|
|
748
|
-
0: [ColorToken, ColorToken]
|
|
749
|
-
4: [ColorToken, ColorToken]
|
|
750
|
-
}
|
|
751
|
-
border: {
|
|
752
|
-
0: [ColorToken, ColorToken]
|
|
753
|
-
4: [ColorToken, ColorToken]
|
|
754
|
-
}
|
|
755
|
-
fg: {
|
|
756
|
-
0: [ColorToken, ColorToken]
|
|
757
|
-
4: [ColorToken, ColorToken]
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
|
|
761
646
|
/** @public */
|
|
762
647
|
export declare type ElementColorVariant = 'solid' | 'tinted'
|
|
763
648
|
|
|
@@ -995,20 +880,6 @@ export declare interface HeightStyleProps {
|
|
|
995
880
|
height?: ResponsiveProp<BoxHeight>
|
|
996
881
|
}
|
|
997
882
|
|
|
998
|
-
declare type Hue = (typeof HUES)[number]
|
|
999
|
-
|
|
1000
|
-
declare const HUES: readonly [
|
|
1001
|
-
'gray',
|
|
1002
|
-
'blue',
|
|
1003
|
-
'purple',
|
|
1004
|
-
'magenta',
|
|
1005
|
-
'red',
|
|
1006
|
-
'orange',
|
|
1007
|
-
'yellow',
|
|
1008
|
-
'green',
|
|
1009
|
-
'cyan',
|
|
1010
|
-
]
|
|
1011
|
-
|
|
1012
883
|
/** @internal */
|
|
1013
884
|
export declare function _input(props: InputStyleProps): string | undefined
|
|
1014
885
|
|
|
@@ -1082,13 +953,13 @@ export declare interface LabelStyleProps extends FontStyleProps {
|
|
|
1082
953
|
|
|
1083
954
|
export declare type LegacyCardScopedVarName =
|
|
1084
955
|
| `--card-accent-fg-color`
|
|
1085
|
-
| `--card-avatar-${
|
|
1086
|
-
| `--card-avatar-${
|
|
956
|
+
| `--card-avatar-${ThemeColorAvatarColorKey}-bg-color`
|
|
957
|
+
| `--card-avatar-${ThemeColorAvatarColorKey}-fg-color`
|
|
1087
958
|
| `--card-backdrop-color`
|
|
1088
|
-
| `--card-badge-${
|
|
1089
|
-
| `--card-badge-${
|
|
1090
|
-
| `--card-badge-${
|
|
1091
|
-
| `--card-badge-${
|
|
959
|
+
| `--card-badge-${ThemeColorStateToneKey}-bg-color`
|
|
960
|
+
| `--card-badge-${ThemeColorStateToneKey}-dot-color`
|
|
961
|
+
| `--card-badge-${ThemeColorStateToneKey}-fg-color`
|
|
962
|
+
| `--card-badge-${ThemeColorStateToneKey}-icon-color`
|
|
1092
963
|
| `--card-bg-color`
|
|
1093
964
|
| `--card-bg-image`
|
|
1094
965
|
| `--card-bg2-color`
|
|
@@ -1159,7 +1030,7 @@ export declare interface PaddingStyleProps {
|
|
|
1159
1030
|
}
|
|
1160
1031
|
|
|
1161
1032
|
/** @public */
|
|
1162
|
-
export declare type PaletteVarName = `--black` | `--white` | `--${
|
|
1033
|
+
export declare type PaletteVarName = `--black` | `--white` | `--${Hue}-${Tint}`
|
|
1163
1034
|
|
|
1164
1035
|
/** @public */
|
|
1165
1036
|
export declare type PointerEvents = 'auto' | 'none'
|
|
@@ -1216,42 +1087,7 @@ export declare function rem(value: number): string
|
|
|
1216
1087
|
/** @public */
|
|
1217
1088
|
export declare type ResponsiveProp<T> = T | Array<T | null | undefined>
|
|
1218
1089
|
|
|
1219
|
-
|
|
1220
|
-
* @public
|
|
1221
|
-
*/
|
|
1222
|
-
declare interface RootTheme_v2 {
|
|
1223
|
-
_version: 2
|
|
1224
|
-
avatar: ThemeAvatar_v2
|
|
1225
|
-
button: {
|
|
1226
|
-
border: {
|
|
1227
|
-
width: number
|
|
1228
|
-
}
|
|
1229
|
-
focusRing: ThemeFocusRing
|
|
1230
|
-
textWeight: ThemeFontWeightKey
|
|
1231
|
-
}
|
|
1232
|
-
card: {
|
|
1233
|
-
border: {
|
|
1234
|
-
width: number
|
|
1235
|
-
}
|
|
1236
|
-
focusRing: ThemeFocusRing
|
|
1237
|
-
shadow: {
|
|
1238
|
-
outline: number
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
color: ThemeColorSchemes_v2
|
|
1242
|
-
container: number[]
|
|
1243
|
-
font: ThemeFonts
|
|
1244
|
-
input: ThemeInput_v2
|
|
1245
|
-
layer: ThemeLayer
|
|
1246
|
-
media: number[]
|
|
1247
|
-
radius: number[]
|
|
1248
|
-
shadow: Array<ThemeShadow | null>
|
|
1249
|
-
space: number[]
|
|
1250
|
-
/** @internal */
|
|
1251
|
-
style?: ThemeStyles
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12
|
|
1090
|
+
export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
1255
1091
|
|
|
1256
1092
|
/** @public */
|
|
1257
1093
|
export declare interface Rules {
|
|
@@ -1264,7 +1100,7 @@ export declare interface ScopedColorVarNames extends Omit<ColorCardVarNames, 'av
|
|
|
1264
1100
|
accent: {
|
|
1265
1101
|
fg: VarName
|
|
1266
1102
|
}
|
|
1267
|
-
avatar: Record<
|
|
1103
|
+
avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames> & ColorAvatarColorVarNames
|
|
1268
1104
|
bg: VarName
|
|
1269
1105
|
border: VarName
|
|
1270
1106
|
fg: VarName
|
|
@@ -1296,7 +1132,7 @@ export declare function _selectable(props: SelectableStyleProps): string | undef
|
|
|
1296
1132
|
|
|
1297
1133
|
/** @internal */
|
|
1298
1134
|
export declare interface SelectableStyleProps extends RadiusStyleProps {
|
|
1299
|
-
tone?:
|
|
1135
|
+
tone?: ThemeColorStateToneKey
|
|
1300
1136
|
}
|
|
1301
1137
|
|
|
1302
1138
|
export declare function selectPresentation(): string | undefined
|
|
@@ -1321,6 +1157,9 @@ export declare function spinner(): string | undefined
|
|
|
1321
1157
|
|
|
1322
1158
|
export declare function srOnly(): string | undefined
|
|
1323
1159
|
|
|
1160
|
+
/** @public */
|
|
1161
|
+
export declare function stack(): string | undefined
|
|
1162
|
+
|
|
1324
1163
|
/** @public */
|
|
1325
1164
|
export declare type Style = {
|
|
1326
1165
|
keyframes?: StyleKeyframes
|
|
@@ -1401,542 +1240,6 @@ export declare interface TextStyleProps extends FlexItemStyleProps, FontStylePro
|
|
|
1401
1240
|
size?: ResponsiveProp<TextSize>
|
|
1402
1241
|
}
|
|
1403
1242
|
|
|
1404
|
-
/** @public */
|
|
1405
|
-
declare const THEME_COLOR_AVATAR_COLORS: ColorHueKey[]
|
|
1406
|
-
|
|
1407
|
-
/** @public */
|
|
1408
|
-
declare const THEME_COLOR_BLEND_MODES: readonly ['multiply', 'screen']
|
|
1409
|
-
|
|
1410
|
-
/** @public */
|
|
1411
|
-
declare const THEME_COLOR_BUTTON_MODES: readonly ['default', 'ghost', 'bleed']
|
|
1412
|
-
|
|
1413
|
-
/** @public */
|
|
1414
|
-
declare const THEME_COLOR_CARD_TONES: readonly [
|
|
1415
|
-
'transparent',
|
|
1416
|
-
'default',
|
|
1417
|
-
'neutral',
|
|
1418
|
-
'primary',
|
|
1419
|
-
'suggest',
|
|
1420
|
-
'positive',
|
|
1421
|
-
'caution',
|
|
1422
|
-
'critical',
|
|
1423
|
-
]
|
|
1424
|
-
|
|
1425
|
-
/** @public */
|
|
1426
|
-
declare const THEME_COLOR_INPUT_MODES: readonly ['default', 'invalid']
|
|
1427
|
-
|
|
1428
|
-
/** @public */
|
|
1429
|
-
declare const THEME_COLOR_INPUT_STATES: readonly ['enabled', 'hovered', 'readOnly', 'disabled']
|
|
1430
|
-
|
|
1431
|
-
/** @public */
|
|
1432
|
-
declare const THEME_COLOR_SCHEMES: readonly ['light', 'dark']
|
|
1433
|
-
|
|
1434
|
-
/** @public */
|
|
1435
|
-
declare const THEME_COLOR_STATE_TONES: readonly [
|
|
1436
|
-
'default',
|
|
1437
|
-
'neutral',
|
|
1438
|
-
'primary',
|
|
1439
|
-
'suggest',
|
|
1440
|
-
'positive',
|
|
1441
|
-
'caution',
|
|
1442
|
-
'critical',
|
|
1443
|
-
]
|
|
1444
|
-
|
|
1445
|
-
/** @public */
|
|
1446
|
-
declare const THEME_COLOR_STATES: readonly ['enabled', 'hovered', 'pressed', 'selected', 'disabled']
|
|
1447
|
-
|
|
1448
|
-
/**
|
|
1449
|
-
* Supersedes `RootTheme` and `RootTheme_v2`.
|
|
1450
|
-
*
|
|
1451
|
-
* @public
|
|
1452
|
-
*/
|
|
1453
|
-
declare interface Theme_v3 {
|
|
1454
|
-
_version: 3
|
|
1455
|
-
_tokens: Tokens
|
|
1456
|
-
avatar: ThemeAvatar_v2
|
|
1457
|
-
button: {
|
|
1458
|
-
border: {
|
|
1459
|
-
width: number
|
|
1460
|
-
}
|
|
1461
|
-
focusRing: ThemeFocusRing
|
|
1462
|
-
textWeight: ThemeFontWeightKey
|
|
1463
|
-
}
|
|
1464
|
-
card: {
|
|
1465
|
-
border: {
|
|
1466
|
-
width: number
|
|
1467
|
-
}
|
|
1468
|
-
focusRing: ThemeFocusRing
|
|
1469
|
-
shadow: {
|
|
1470
|
-
outline: number
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
color: ThemeColor_v3
|
|
1474
|
-
container: number[]
|
|
1475
|
-
font: ThemeFonts
|
|
1476
|
-
input: ThemeInput_v2
|
|
1477
|
-
layer: ThemeLayer
|
|
1478
|
-
media: number[]
|
|
1479
|
-
radius: number[]
|
|
1480
|
-
shadow: Array<ThemeShadow | null>
|
|
1481
|
-
space: number[]
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
/**
|
|
1485
|
-
* @public
|
|
1486
|
-
*/
|
|
1487
|
-
declare interface ThemeAvatar_v2 {
|
|
1488
|
-
sizes: {
|
|
1489
|
-
/** Spacing between avatars in an <AvatarStack> component (px) */
|
|
1490
|
-
distance: number
|
|
1491
|
-
/** Diameter of the avatar (px) */
|
|
1492
|
-
size: number
|
|
1493
|
-
}[]
|
|
1494
|
-
focusRing: ThemeFocusRing
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
/**
|
|
1498
|
-
* @public
|
|
1499
|
-
*/
|
|
1500
|
-
declare type ThemeBoxShadow = [number, number, number, number]
|
|
1501
|
-
|
|
1502
|
-
declare type ThemeColor_v3 = Record<ThemeColorSchemeKey, ThemeColorScheme_v3>
|
|
1503
|
-
|
|
1504
|
-
/**
|
|
1505
|
-
* @public
|
|
1506
|
-
*/
|
|
1507
|
-
declare type ThemeColorAvatar_v2 = Record<ThemeColorAvatarColorKey, ThemeColorAvatarHue_v2>
|
|
1508
|
-
|
|
1509
|
-
/** @public */
|
|
1510
|
-
declare type ThemeColorAvatarColorKey = (typeof THEME_COLOR_AVATAR_COLORS)[number]
|
|
1511
|
-
|
|
1512
|
-
/**
|
|
1513
|
-
* @public
|
|
1514
|
-
*/
|
|
1515
|
-
declare interface ThemeColorAvatarHue_v2 {
|
|
1516
|
-
_blend?: ThemeColorBlendModeKey
|
|
1517
|
-
bg: string
|
|
1518
|
-
fg: string
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
/**
|
|
1522
|
-
* @public
|
|
1523
|
-
*/
|
|
1524
|
-
declare type ThemeColorBadge_v2 = Record<ThemeColorStateToneKey, ThemeColorBadgeTone_v2>
|
|
1525
|
-
|
|
1526
|
-
/**
|
|
1527
|
-
* @public
|
|
1528
|
-
*/
|
|
1529
|
-
declare interface ThemeColorBadgeTone_v2 {
|
|
1530
|
-
bg: string
|
|
1531
|
-
fg: string
|
|
1532
|
-
dot: string
|
|
1533
|
-
icon: string
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
/** @public */
|
|
1537
|
-
declare type ThemeColorBlendModeKey = (typeof THEME_COLOR_BLEND_MODES)[number]
|
|
1538
|
-
|
|
1539
|
-
/**
|
|
1540
|
-
* @public
|
|
1541
|
-
*/
|
|
1542
|
-
declare type ThemeColorButton_v2 = Record<ThemeColorButtonModeKey, ThemeColorButtonMode_v2>
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* @public
|
|
1546
|
-
*/
|
|
1547
|
-
declare type ThemeColorButtonMode_v2 = Record<ThemeColorStateToneKey, ThemeColorButtonTone_v2>
|
|
1548
|
-
|
|
1549
|
-
/** @public */
|
|
1550
|
-
declare type ThemeColorButtonModeKey = (typeof THEME_COLOR_BUTTON_MODES)[number]
|
|
1551
|
-
|
|
1552
|
-
/**
|
|
1553
|
-
* @public
|
|
1554
|
-
*/
|
|
1555
|
-
declare type ThemeColorButtonTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>
|
|
1556
|
-
|
|
1557
|
-
/**
|
|
1558
|
-
* @public
|
|
1559
|
-
*/
|
|
1560
|
-
declare interface ThemeColorCard_v2 extends ThemeColorState_v2 {
|
|
1561
|
-
/** @internal */
|
|
1562
|
-
_blend: ThemeColorBlendModeKey
|
|
1563
|
-
_dark: boolean
|
|
1564
|
-
backdrop: string
|
|
1565
|
-
button: ThemeColorButton_v2
|
|
1566
|
-
focusRing: string
|
|
1567
|
-
input: ThemeColorInput_v2
|
|
1568
|
-
selectable: ThemeColorSelectable_v2
|
|
1569
|
-
shadow: ThemeColorShadow
|
|
1570
|
-
syntax: ThemeColorSyntax
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
declare interface ThemeColorCard_v3 {
|
|
1574
|
-
_hue: Hue
|
|
1575
|
-
avatar: ThemeColorAvatar_v2
|
|
1576
|
-
backdrop: string
|
|
1577
|
-
focusRing: string
|
|
1578
|
-
shadow: {
|
|
1579
|
-
outline: string
|
|
1580
|
-
umbra: string
|
|
1581
|
-
penumbra: string
|
|
1582
|
-
ambient: string
|
|
1583
|
-
}
|
|
1584
|
-
token: {
|
|
1585
|
-
atrule: string
|
|
1586
|
-
attrName: string
|
|
1587
|
-
attrValue: string
|
|
1588
|
-
attribute: string
|
|
1589
|
-
boolean: string
|
|
1590
|
-
builtin: string
|
|
1591
|
-
cdata: string
|
|
1592
|
-
char: string
|
|
1593
|
-
class: string
|
|
1594
|
-
className: string
|
|
1595
|
-
comment: string
|
|
1596
|
-
constant: string
|
|
1597
|
-
deleted: string
|
|
1598
|
-
doctype: string
|
|
1599
|
-
entity: string
|
|
1600
|
-
function: string
|
|
1601
|
-
hexcode: string
|
|
1602
|
-
id: string
|
|
1603
|
-
important: string
|
|
1604
|
-
inserted: string
|
|
1605
|
-
keyword: string
|
|
1606
|
-
number: string
|
|
1607
|
-
operator: string
|
|
1608
|
-
prolog: string
|
|
1609
|
-
property: string
|
|
1610
|
-
pseudoClass: string
|
|
1611
|
-
pseudoElement: string
|
|
1612
|
-
punctuation: string
|
|
1613
|
-
regex: string
|
|
1614
|
-
selector: string
|
|
1615
|
-
string: string
|
|
1616
|
-
symbol: string
|
|
1617
|
-
tag: string
|
|
1618
|
-
unit: string
|
|
1619
|
-
url: string
|
|
1620
|
-
variable: string
|
|
1621
|
-
}
|
|
1622
|
-
skeleton: {
|
|
1623
|
-
from: string
|
|
1624
|
-
to: string
|
|
1625
|
-
}
|
|
1626
|
-
variant: Record<ThemeColorVariantKey, ThemeColorVariant>
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
/** @public */
|
|
1630
|
-
declare type ThemeColorCardToneKey = (typeof THEME_COLOR_CARD_TONES)[number]
|
|
1631
|
-
|
|
1632
|
-
declare interface ThemeColorElement {
|
|
1633
|
-
_hue: Hue
|
|
1634
|
-
bg: {
|
|
1635
|
-
0: string
|
|
1636
|
-
4: string
|
|
1637
|
-
}
|
|
1638
|
-
border: {
|
|
1639
|
-
0: string
|
|
1640
|
-
4: string
|
|
1641
|
-
}
|
|
1642
|
-
fg: {
|
|
1643
|
-
0: string
|
|
1644
|
-
4: string
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
/**
|
|
1649
|
-
* @public
|
|
1650
|
-
*/
|
|
1651
|
-
declare type ThemeColorInput_v2 = Record<ThemeColorInputModeKey, ThemeColorInputMode_v2>
|
|
1652
|
-
|
|
1653
|
-
/**
|
|
1654
|
-
* @public
|
|
1655
|
-
*/
|
|
1656
|
-
declare type ThemeColorInputMode_v2 = Record<ThemeColorInputStateKey, ThemeColorInputState_v2>
|
|
1657
|
-
|
|
1658
|
-
/** @public */
|
|
1659
|
-
declare type ThemeColorInputModeKey = (typeof THEME_COLOR_INPUT_MODES)[number]
|
|
1660
|
-
|
|
1661
|
-
/**
|
|
1662
|
-
* @public
|
|
1663
|
-
*/
|
|
1664
|
-
declare interface ThemeColorInputState_v2 {
|
|
1665
|
-
_blend?: ThemeColorBlendModeKey
|
|
1666
|
-
bg: string
|
|
1667
|
-
border: string
|
|
1668
|
-
fg: string
|
|
1669
|
-
muted: {
|
|
1670
|
-
bg: string
|
|
1671
|
-
}
|
|
1672
|
-
placeholder: string
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
/** @public */
|
|
1676
|
-
declare type ThemeColorInputStateKey = (typeof THEME_COLOR_INPUT_STATES)[number]
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* @public
|
|
1680
|
-
*/
|
|
1681
|
-
declare interface ThemeColorKBD {
|
|
1682
|
-
bg: string
|
|
1683
|
-
fg: string
|
|
1684
|
-
border: string
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
/**
|
|
1688
|
-
* @public
|
|
1689
|
-
*/
|
|
1690
|
-
declare type ThemeColorScheme_v2 = Record<ThemeColorCardToneKey, ThemeColorCard_v2>
|
|
1691
|
-
|
|
1692
|
-
declare interface ThemeColorScheme_v3 {
|
|
1693
|
-
card: Record<ThemeColorCardToneKey, ThemeColorCard_v3>
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
/**
|
|
1697
|
-
* @public
|
|
1698
|
-
*/
|
|
1699
|
-
declare type ThemeColorSchemeKey = (typeof THEME_COLOR_SCHEMES)[number]
|
|
1700
|
-
|
|
1701
|
-
/**
|
|
1702
|
-
* @public
|
|
1703
|
-
*/
|
|
1704
|
-
declare type ThemeColorSchemes_v2 = Record<ThemeColorSchemeKey, ThemeColorScheme_v2>
|
|
1705
|
-
|
|
1706
|
-
/**
|
|
1707
|
-
* @public
|
|
1708
|
-
*/
|
|
1709
|
-
declare type ThemeColorSelectable_v2 = Record<ThemeColorStateToneKey, ThemeColorSelectableTone_v2>
|
|
1710
|
-
|
|
1711
|
-
/**
|
|
1712
|
-
* @public
|
|
1713
|
-
*/
|
|
1714
|
-
declare type ThemeColorSelectableTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>
|
|
1715
|
-
|
|
1716
|
-
/** @public */
|
|
1717
|
-
declare interface ThemeColorShadow {
|
|
1718
|
-
outline: string
|
|
1719
|
-
umbra: string
|
|
1720
|
-
penumbra: string
|
|
1721
|
-
ambient: string
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
/**
|
|
1725
|
-
* @public
|
|
1726
|
-
*/
|
|
1727
|
-
declare interface ThemeColorState_v2 {
|
|
1728
|
-
/** @internal */
|
|
1729
|
-
_blend?: ThemeColorBlendModeKey
|
|
1730
|
-
accent: {
|
|
1731
|
-
fg: string
|
|
1732
|
-
}
|
|
1733
|
-
/**
|
|
1734
|
-
* @internal This may be removed in a future release
|
|
1735
|
-
* */
|
|
1736
|
-
avatar: ThemeColorAvatar_v2
|
|
1737
|
-
/**
|
|
1738
|
-
* @internal This may be removed in a future release
|
|
1739
|
-
* */
|
|
1740
|
-
badge: ThemeColorBadge_v2
|
|
1741
|
-
bg: string
|
|
1742
|
-
border: string
|
|
1743
|
-
code: {
|
|
1744
|
-
bg: string
|
|
1745
|
-
fg: string
|
|
1746
|
-
}
|
|
1747
|
-
fg: string
|
|
1748
|
-
icon: string
|
|
1749
|
-
kbd: ThemeColorKBD
|
|
1750
|
-
link: {
|
|
1751
|
-
fg: string
|
|
1752
|
-
}
|
|
1753
|
-
muted: {
|
|
1754
|
-
bg: string
|
|
1755
|
-
fg: string
|
|
1756
|
-
}
|
|
1757
|
-
skeleton: {
|
|
1758
|
-
from: string
|
|
1759
|
-
to: string
|
|
1760
|
-
}
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
/** @public */
|
|
1764
|
-
declare type ThemeColorStateKey = (typeof THEME_COLOR_STATES)[number]
|
|
1765
|
-
|
|
1766
|
-
/** @public */
|
|
1767
|
-
declare type ThemeColorStateToneKey = (typeof THEME_COLOR_STATE_TONES)[number]
|
|
1768
|
-
|
|
1769
|
-
/**
|
|
1770
|
-
* @public
|
|
1771
|
-
*/
|
|
1772
|
-
declare interface ThemeColorSyntax {
|
|
1773
|
-
atrule: string
|
|
1774
|
-
attrName: string
|
|
1775
|
-
attrValue: string
|
|
1776
|
-
attribute: string
|
|
1777
|
-
boolean: string
|
|
1778
|
-
builtin: string
|
|
1779
|
-
cdata: string
|
|
1780
|
-
char: string
|
|
1781
|
-
class: string
|
|
1782
|
-
className: string
|
|
1783
|
-
comment: string
|
|
1784
|
-
constant: string
|
|
1785
|
-
deleted: string
|
|
1786
|
-
doctype: string
|
|
1787
|
-
entity: string
|
|
1788
|
-
function: string
|
|
1789
|
-
hexcode: string
|
|
1790
|
-
id: string
|
|
1791
|
-
important: string
|
|
1792
|
-
inserted: string
|
|
1793
|
-
keyword: string
|
|
1794
|
-
number: string
|
|
1795
|
-
operator: string
|
|
1796
|
-
prolog: string
|
|
1797
|
-
property: string
|
|
1798
|
-
pseudoClass: string
|
|
1799
|
-
pseudoElement: string
|
|
1800
|
-
punctuation: string
|
|
1801
|
-
regex: string
|
|
1802
|
-
selector: string
|
|
1803
|
-
string: string
|
|
1804
|
-
symbol: string
|
|
1805
|
-
tag: string
|
|
1806
|
-
unit: string
|
|
1807
|
-
url: string
|
|
1808
|
-
variable: string
|
|
1809
|
-
}
|
|
1810
|
-
|
|
1811
|
-
declare type ThemeColorVariant = Record<ThemeColorStateToneKey, ThemeColorElement>
|
|
1812
|
-
|
|
1813
|
-
declare type ThemeColorVariantKey = 'tinted' | 'solid'
|
|
1814
|
-
|
|
1815
|
-
/**
|
|
1816
|
-
* @public
|
|
1817
|
-
*/
|
|
1818
|
-
declare interface ThemeFocusRing {
|
|
1819
|
-
offset: number
|
|
1820
|
-
width: number
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
/**
|
|
1824
|
-
* @public
|
|
1825
|
-
*/
|
|
1826
|
-
declare interface ThemeFont {
|
|
1827
|
-
family: string
|
|
1828
|
-
featureSettings?: string
|
|
1829
|
-
weights: ThemeFontWeight
|
|
1830
|
-
sizes: ThemeFontSize[]
|
|
1831
|
-
/** @deprecated No longer supported. */
|
|
1832
|
-
horizontalOffset?: number
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
/**
|
|
1836
|
-
* @public
|
|
1837
|
-
*/
|
|
1838
|
-
declare interface ThemeFonts {
|
|
1839
|
-
code: ThemeFont
|
|
1840
|
-
heading: ThemeFont
|
|
1841
|
-
label: ThemeFont
|
|
1842
|
-
text: ThemeFont
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* @public
|
|
1847
|
-
*/
|
|
1848
|
-
declare interface ThemeFontSize {
|
|
1849
|
-
ascenderHeight: number
|
|
1850
|
-
descenderHeight: number
|
|
1851
|
-
fontSize: number
|
|
1852
|
-
iconSize: number
|
|
1853
|
-
letterSpacing: number
|
|
1854
|
-
lineHeight: number
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
/**
|
|
1858
|
-
* @public
|
|
1859
|
-
*/
|
|
1860
|
-
declare interface ThemeFontWeight {
|
|
1861
|
-
regular: number
|
|
1862
|
-
medium: number
|
|
1863
|
-
semibold: number
|
|
1864
|
-
bold: number
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
/**
|
|
1868
|
-
* @public
|
|
1869
|
-
*/
|
|
1870
|
-
declare type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold'
|
|
1871
|
-
|
|
1872
|
-
/**
|
|
1873
|
-
* @public
|
|
1874
|
-
*/
|
|
1875
|
-
declare interface ThemeInput_v2 {
|
|
1876
|
-
checkbox: {
|
|
1877
|
-
size: number
|
|
1878
|
-
focusRing: ThemeFocusRing
|
|
1879
|
-
}
|
|
1880
|
-
radio: {
|
|
1881
|
-
size: number
|
|
1882
|
-
markSize: number
|
|
1883
|
-
focusRing: ThemeFocusRing
|
|
1884
|
-
}
|
|
1885
|
-
switch: {
|
|
1886
|
-
width: number
|
|
1887
|
-
height: number
|
|
1888
|
-
padding: number
|
|
1889
|
-
transitionDurationMs: number
|
|
1890
|
-
transitionTimingFunction: string
|
|
1891
|
-
focusRing: ThemeFocusRing
|
|
1892
|
-
}
|
|
1893
|
-
border: {
|
|
1894
|
-
width: number
|
|
1895
|
-
}
|
|
1896
|
-
select: {
|
|
1897
|
-
focusRing: ThemeFocusRing
|
|
1898
|
-
}
|
|
1899
|
-
text: {
|
|
1900
|
-
focusRing: ThemeFocusRing
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
/**
|
|
1905
|
-
* @public
|
|
1906
|
-
*/
|
|
1907
|
-
declare interface ThemeLayer {
|
|
1908
|
-
dialog: {
|
|
1909
|
-
zOffset: number
|
|
1910
|
-
}
|
|
1911
|
-
popover: {
|
|
1912
|
-
zOffset: number
|
|
1913
|
-
}
|
|
1914
|
-
tooltip: {
|
|
1915
|
-
zOffset: number
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
/**
|
|
1920
|
-
* @public
|
|
1921
|
-
*/
|
|
1922
|
-
declare interface ThemeShadow {
|
|
1923
|
-
umbra: ThemeBoxShadow
|
|
1924
|
-
penumbra: ThemeBoxShadow
|
|
1925
|
-
ambient: ThemeBoxShadow
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
/**
|
|
1929
|
-
* @internal
|
|
1930
|
-
*/
|
|
1931
|
-
declare interface ThemeStyles {
|
|
1932
|
-
button?: {
|
|
1933
|
-
root?: CSSObject
|
|
1934
|
-
}
|
|
1935
|
-
card?: {
|
|
1936
|
-
root?: CSSObject
|
|
1937
|
-
}
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
1243
|
/** @public */
|
|
1941
1244
|
export declare type ThemeVarName =
|
|
1942
1245
|
| `--avatar-focus-ring-offset`
|
|
@@ -2015,10 +1318,6 @@ export declare type ThemeVarName =
|
|
|
2015
1318
|
| `--shadow-${Shadow}-penumbra`
|
|
2016
1319
|
| `--shadow-${Shadow}-ambient`
|
|
2017
1320
|
|
|
2018
|
-
declare type Tint = (typeof TINTS)[number]
|
|
2019
|
-
|
|
2020
|
-
declare const TINTS: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950]
|
|
2021
|
-
|
|
2022
1321
|
export declare function toast(): string | undefined
|
|
2023
1322
|
|
|
2024
1323
|
export declare function toastLayer(): string | undefined
|
|
@@ -2029,12 +1328,7 @@ export declare function toastLoadingBarMask(): string | undefined
|
|
|
2029
1328
|
|
|
2030
1329
|
export declare function toastLoadingBarProgress(): string | undefined
|
|
2031
1330
|
|
|
2032
|
-
export declare function toBoxShadow(value:
|
|
2033
|
-
|
|
2034
|
-
/** @public */
|
|
2035
|
-
declare interface Tokens {
|
|
2036
|
-
color: ColorTokens
|
|
2037
|
-
}
|
|
1331
|
+
export declare function toBoxShadow(value: ThemeBoxShadow | undefined): string
|
|
2038
1332
|
|
|
2039
1333
|
export declare function tooltip(): string | undefined
|
|
2040
1334
|
|
|
@@ -2042,8 +1336,6 @@ export declare function tooltipCard(): string | undefined
|
|
|
2042
1336
|
|
|
2043
1337
|
export declare function treeItem(): string | undefined
|
|
2044
1338
|
|
|
2045
|
-
export declare function v3_v2(theme_v3: Theme_v3): RootTheme_v2
|
|
2046
|
-
|
|
2047
1339
|
/** @public */
|
|
2048
1340
|
export declare type VarName =
|
|
2049
1341
|
| AvatarScopedVarName
|
|
@@ -2060,9 +1352,9 @@ export declare type VarName =
|
|
|
2060
1352
|
|
|
2061
1353
|
/** @public */
|
|
2062
1354
|
export declare interface VarNames {
|
|
2063
|
-
color: Record<
|
|
1355
|
+
color: Record<ThemeColorSchemeKey, ColorSchemeVarNames> &
|
|
2064
1356
|
ScopedColorVarNames &
|
|
2065
|
-
Record<
|
|
1357
|
+
Record<ThemeColorCardToneKey, ColorCardVarNames>
|
|
2066
1358
|
container: Record<Exclude<ContainerWidth, 'auto'>, VarName>
|
|
2067
1359
|
avatar: {
|
|
2068
1360
|
distance: VarName
|
|
@@ -2117,7 +1409,7 @@ export declare interface Vars {
|
|
|
2117
1409
|
dark: ColorSchemeVars
|
|
2118
1410
|
light: ColorSchemeVars
|
|
2119
1411
|
} & ScopedColorVars &
|
|
2120
|
-
Record<
|
|
1412
|
+
Record<ThemeColorCardToneKey, ColorCardVars>
|
|
2121
1413
|
container: Record<Exclude<ContainerWidth, 'auto'>, CSSVar>
|
|
2122
1414
|
font: {
|
|
2123
1415
|
code: FontVars<FontCodeSize>
|