@jonmilner/ui 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/Avatar.css +1 -1
- package/dist/Badge/Badge.css +2 -2
- package/dist/Badge/Badge.css.mjs +6 -9
- package/dist/Badge/index.mjs +10 -3
- package/dist/Box/Box.css +1 -1
- package/dist/Button/Button.css +2 -2
- package/dist/Button/Button.css.mjs +1 -1
- package/dist/Button/index.d.mts +2 -1
- package/dist/Button/index.mjs +21 -21
- package/dist/Checkbox/Checkbox.css +1 -1
- package/dist/Chip/Chip.css +2 -2
- package/dist/Chip/Chip.css.mjs +7 -2
- package/dist/Chip/index.d.mts +3 -2
- package/dist/Chip/index.mjs +57 -39
- package/dist/Clickable/Clickable.css +1 -1
- package/dist/ColorField/ColorField.css +2 -2
- package/dist/ColorField/ColorField.css.mjs +28 -2
- package/dist/ColorField/client.d.mts +1 -1
- package/dist/ColorField/client.mjs +40 -35
- package/dist/ColorField/index.d.mts +3 -2
- package/dist/ColorField/index.mjs +39 -28
- package/dist/Combobox/Combobox.css +2 -2
- package/dist/Dialog/Dialog.css +1 -1
- package/dist/Field/Field.css +1 -1
- package/dist/Heading/Heading.css +1 -1
- package/dist/Icon/Icon.css +1 -1
- package/dist/IconButton/IconButton.css +2 -2
- package/dist/IconButton/IconButton.css.mjs +2 -2
- package/dist/IconButton/index.d.mts +1 -1
- package/dist/IconButton/index.mjs +5 -4
- package/dist/Inline/Inline.css +1 -1
- package/dist/Menu/Menu.css +2 -2
- package/dist/Menu/Menu.css.mjs +2 -2
- package/dist/Menu/client.d.mts +1 -0
- package/dist/Menu/client.mjs +45 -54
- package/dist/Menu/index.d.mts +5 -4
- package/dist/Menu/index.mjs +74 -85
- package/dist/Menu/item-row.mjs +52 -0
- package/dist/MultiSelect/MultiSelect.css +2 -2
- package/dist/MultiSelect/client.mjs +5 -4
- package/dist/MultiSelect/index.d.mts +3 -1
- package/dist/MultiSelect/index.mjs +16 -15
- package/dist/NavList/NavList.css +2 -2
- package/dist/NavList/NavList.css.mjs +2 -2
- package/dist/NavList/index.d.mts +3 -1
- package/dist/NavList/index.mjs +67 -63
- package/dist/NumberField/NumberField.css +1 -1
- package/dist/RadioGroup/RadioGroup.css +1 -1
- package/dist/SearchField/SearchField.css +2 -2
- package/dist/SearchField/SearchField.css.mjs +28 -11
- package/dist/SearchField/client.d.mts +1 -1
- package/dist/SearchField/client.mjs +27 -31
- package/dist/SearchField/index.d.mts +3 -2
- package/dist/SearchField/index.mjs +37 -28
- package/dist/Select/Select.css +2 -2
- package/dist/Select/client.mjs +5 -4
- package/dist/Select/index.d.mts +3 -1
- package/dist/Select/index.mjs +15 -14
- package/dist/Sidebar/Sidebar.css +1 -1
- package/dist/Sidebar/index.mjs +1 -2
- package/dist/SidebarLayout/SidebarLayout.css +1 -1
- package/dist/Stack/Stack.css +1 -1
- package/dist/Switch/Switch.css +1 -1
- package/dist/Table/Table.css +1 -1
- package/dist/Table/index.mjs +9 -9
- package/dist/Tabs/Tabs.css +1 -1
- package/dist/Tag/Tag.css +2 -2
- package/dist/Tag/Tag.css.mjs +48 -18
- package/dist/Tag/index.d.mts +2 -1
- package/dist/Tag/index.mjs +59 -46
- package/dist/Text/Text.css +1 -1
- package/dist/TextField/TextField.css +2 -2
- package/dist/TextField/TextField.css.mjs +28 -2
- package/dist/TextField/index.d.mts +3 -2
- package/dist/TextField/index.mjs +45 -33
- package/dist/Textarea/Textarea.css +1 -1
- package/dist/Toast/Toast.css +1 -1
- package/dist/Tooltip/Tooltip.css +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.css +1 -1
- package/dist/base.css +1 -1
- package/dist/contrast/contrast.d.mts +1 -1
- package/dist/contrast/contrast.mjs +3 -2
- package/dist/contrast/mixes.mjs +32 -22
- package/dist/docs/AlertDialog.md +1 -0
- package/dist/docs/Badge.md +2 -2
- package/dist/docs/Button.md +10 -8
- package/dist/docs/Chip.md +10 -3
- package/dist/docs/ColorField.md +7 -0
- package/dist/docs/Dialog.md +3 -1
- package/dist/docs/IconButton.md +5 -5
- package/dist/docs/Menu.md +27 -3
- package/dist/docs/MultiSelect.md +6 -0
- package/dist/docs/NavList.md +10 -7
- package/dist/docs/SearchField.md +6 -0
- package/dist/docs/Select.md +6 -0
- package/dist/docs/Sidebar.md +3 -3
- package/dist/docs/Tag.md +12 -3
- package/dist/docs/TextField.md +13 -1
- package/dist/docs/Tooltip.md +2 -1
- package/dist/docs/llms.txt +5 -5
- package/dist/docs/manifest.json +115 -1
- package/dist/docs/migrations/0.18.0.md +65 -0
- package/dist/docs/migrations/0.19.0.md +90 -0
- package/dist/docs/theming.md +1 -1
- package/dist/icon-slot/input-icons.mjs +23 -0
- package/dist/icon-slot/slot.mjs +17 -13
- package/dist/index.mjs +11 -11
- package/dist/popup/client.d.mts +1 -1
- package/dist/popup/client.mjs +6 -5
- package/dist/popup/listbox-base.mjs +3 -2
- package/dist/popup/listbox.mjs +5 -4
- package/dist/styles/atoms.css +1 -1
- package/dist/styles/button-fills.mjs +1 -1
- package/dist/styles/layers.css +1 -1
- package/dist/styles/responsive.css +1 -1
- package/dist/theme/define-theme.mjs +1 -1
- package/package.json +1 -1
package/dist/docs/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./manifest.schema.json",
|
|
3
3
|
"package": "@jonmilner/ui",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.19.0",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"name": "AlertDialog",
|
|
@@ -114,6 +114,11 @@
|
|
|
114
114
|
"sm"
|
|
115
115
|
]
|
|
116
116
|
},
|
|
117
|
+
{
|
|
118
|
+
"name": "uppercase",
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"required": false
|
|
121
|
+
},
|
|
117
122
|
{
|
|
118
123
|
"name": "variant",
|
|
119
124
|
"type": "\"ghost\" | \"primary\" | \"secondary\"",
|
|
@@ -271,6 +276,11 @@
|
|
|
271
276
|
"sm"
|
|
272
277
|
]
|
|
273
278
|
},
|
|
279
|
+
{
|
|
280
|
+
"name": "uppercase",
|
|
281
|
+
"type": "boolean",
|
|
282
|
+
"required": false
|
|
283
|
+
},
|
|
274
284
|
{
|
|
275
285
|
"name": "variant",
|
|
276
286
|
"type": "\"danger\" | \"ghost\" | \"primary\" | \"secondary\"",
|
|
@@ -394,6 +404,16 @@
|
|
|
394
404
|
"type": "boolean",
|
|
395
405
|
"required": false
|
|
396
406
|
},
|
|
407
|
+
{
|
|
408
|
+
"name": "iconEnd",
|
|
409
|
+
"type": "ComponentType",
|
|
410
|
+
"required": false
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "iconStart",
|
|
414
|
+
"type": "ComponentType",
|
|
415
|
+
"required": false
|
|
416
|
+
},
|
|
397
417
|
{
|
|
398
418
|
"name": "onPressedChange",
|
|
399
419
|
"type": "((pressed: boolean, eventDetails: { reason: \"none\"; event: Event; cancel: () => void; allowPropagation: () => void; isCanceled: boolean; isPropagationAllowed: boolean; trigger: Element | undefined; }) => void)",
|
|
@@ -485,6 +505,16 @@
|
|
|
485
505
|
"type": "boolean",
|
|
486
506
|
"required": false
|
|
487
507
|
},
|
|
508
|
+
{
|
|
509
|
+
"name": "iconEnd",
|
|
510
|
+
"type": "ComponentType",
|
|
511
|
+
"required": false
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "iconStart",
|
|
515
|
+
"type": "ComponentType",
|
|
516
|
+
"required": false
|
|
517
|
+
},
|
|
488
518
|
{
|
|
489
519
|
"name": "inputProps",
|
|
490
520
|
"type": "ColorFieldInputProps",
|
|
@@ -721,6 +751,11 @@
|
|
|
721
751
|
"sm"
|
|
722
752
|
]
|
|
723
753
|
},
|
|
754
|
+
{
|
|
755
|
+
"name": "uppercase",
|
|
756
|
+
"type": "boolean",
|
|
757
|
+
"required": false
|
|
758
|
+
},
|
|
724
759
|
{
|
|
725
760
|
"name": "variant",
|
|
726
761
|
"type": "\"ghost\" | \"primary\" | \"secondary\"",
|
|
@@ -813,6 +848,11 @@
|
|
|
813
848
|
"sm"
|
|
814
849
|
]
|
|
815
850
|
},
|
|
851
|
+
{
|
|
852
|
+
"name": "uppercase",
|
|
853
|
+
"type": "boolean",
|
|
854
|
+
"required": false
|
|
855
|
+
},
|
|
816
856
|
{
|
|
817
857
|
"name": "variant",
|
|
818
858
|
"type": "\"ghost\" | \"primary\" | \"secondary\"",
|
|
@@ -1478,6 +1518,16 @@
|
|
|
1478
1518
|
"required": false,
|
|
1479
1519
|
"description": "Whether the component should ignore user interaction."
|
|
1480
1520
|
},
|
|
1521
|
+
{
|
|
1522
|
+
"name": "iconEnd",
|
|
1523
|
+
"type": "ComponentType",
|
|
1524
|
+
"required": false
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
"name": "iconStart",
|
|
1528
|
+
"type": "ComponentType",
|
|
1529
|
+
"required": false
|
|
1530
|
+
},
|
|
1481
1531
|
{
|
|
1482
1532
|
"name": "id",
|
|
1483
1533
|
"type": "string",
|
|
@@ -1547,6 +1597,16 @@
|
|
|
1547
1597
|
"type": "string",
|
|
1548
1598
|
"required": true
|
|
1549
1599
|
},
|
|
1600
|
+
{
|
|
1601
|
+
"name": "iconEnd",
|
|
1602
|
+
"type": "ComponentType",
|
|
1603
|
+
"required": false
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"name": "iconStart",
|
|
1607
|
+
"type": "ComponentType",
|
|
1608
|
+
"required": false
|
|
1609
|
+
},
|
|
1550
1610
|
{
|
|
1551
1611
|
"name": "id",
|
|
1552
1612
|
"type": "string",
|
|
@@ -1735,6 +1795,11 @@
|
|
|
1735
1795
|
"sm"
|
|
1736
1796
|
]
|
|
1737
1797
|
},
|
|
1798
|
+
{
|
|
1799
|
+
"name": "uppercase",
|
|
1800
|
+
"type": "boolean",
|
|
1801
|
+
"required": false
|
|
1802
|
+
},
|
|
1738
1803
|
{
|
|
1739
1804
|
"name": "variant",
|
|
1740
1805
|
"type": "\"ghost\" | \"primary\" | \"secondary\"",
|
|
@@ -1789,6 +1854,11 @@
|
|
|
1789
1854
|
"type": "boolean",
|
|
1790
1855
|
"required": false
|
|
1791
1856
|
},
|
|
1857
|
+
{
|
|
1858
|
+
"name": "iconStart",
|
|
1859
|
+
"type": "ComponentType",
|
|
1860
|
+
"required": false
|
|
1861
|
+
},
|
|
1792
1862
|
{
|
|
1793
1863
|
"name": "label",
|
|
1794
1864
|
"type": "ReactNode",
|
|
@@ -1913,6 +1983,16 @@
|
|
|
1913
1983
|
"name": "icon",
|
|
1914
1984
|
"type": "ComponentType",
|
|
1915
1985
|
"required": false
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"name": "live",
|
|
1989
|
+
"type": "boolean",
|
|
1990
|
+
"required": false
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
"name": "liveLabel",
|
|
1994
|
+
"type": "string",
|
|
1995
|
+
"required": false
|
|
1916
1996
|
}
|
|
1917
1997
|
],
|
|
1918
1998
|
"element": "a"
|
|
@@ -2164,6 +2244,11 @@
|
|
|
2164
2244
|
"type": "boolean",
|
|
2165
2245
|
"required": false
|
|
2166
2246
|
},
|
|
2247
|
+
{
|
|
2248
|
+
"name": "iconStart",
|
|
2249
|
+
"type": "ComponentType",
|
|
2250
|
+
"required": false
|
|
2251
|
+
},
|
|
2167
2252
|
{
|
|
2168
2253
|
"name": "inputProps",
|
|
2169
2254
|
"type": "SearchFieldInputProps",
|
|
@@ -2252,6 +2337,11 @@
|
|
|
2252
2337
|
"type": "boolean",
|
|
2253
2338
|
"required": false
|
|
2254
2339
|
},
|
|
2340
|
+
{
|
|
2341
|
+
"name": "iconStart",
|
|
2342
|
+
"type": "ComponentType",
|
|
2343
|
+
"required": false
|
|
2344
|
+
},
|
|
2255
2345
|
{
|
|
2256
2346
|
"name": "label",
|
|
2257
2347
|
"type": "ReactNode",
|
|
@@ -2958,6 +3048,15 @@
|
|
|
2958
3048
|
"name": "Tag",
|
|
2959
3049
|
"styleProps": true,
|
|
2960
3050
|
"props": [
|
|
3051
|
+
{
|
|
3052
|
+
"name": "appearance",
|
|
3053
|
+
"type": "\"outline\" | \"subtle\"",
|
|
3054
|
+
"required": false,
|
|
3055
|
+
"values": [
|
|
3056
|
+
"outline",
|
|
3057
|
+
"subtle"
|
|
3058
|
+
]
|
|
3059
|
+
},
|
|
2961
3060
|
{
|
|
2962
3061
|
"name": "href",
|
|
2963
3062
|
"type": "string",
|
|
@@ -3127,6 +3226,16 @@
|
|
|
3127
3226
|
"type": "boolean",
|
|
3128
3227
|
"required": false
|
|
3129
3228
|
},
|
|
3229
|
+
{
|
|
3230
|
+
"name": "iconEnd",
|
|
3231
|
+
"type": "ComponentType",
|
|
3232
|
+
"required": false
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
"name": "iconStart",
|
|
3236
|
+
"type": "ComponentType",
|
|
3237
|
+
"required": false
|
|
3238
|
+
},
|
|
3130
3239
|
{
|
|
3131
3240
|
"name": "inputProps",
|
|
3132
3241
|
"type": "TextFieldInputProps",
|
|
@@ -3468,6 +3577,11 @@
|
|
|
3468
3577
|
"sm"
|
|
3469
3578
|
]
|
|
3470
3579
|
},
|
|
3580
|
+
{
|
|
3581
|
+
"name": "uppercase",
|
|
3582
|
+
"type": "boolean",
|
|
3583
|
+
"required": false
|
|
3584
|
+
},
|
|
3471
3585
|
{
|
|
3472
3586
|
"name": "variant",
|
|
3473
3587
|
"type": "\"ghost\" | \"primary\" | \"secondary\"",
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# 0.18.0
|
|
2
|
+
|
|
3
|
+
Button and IconButton take a quieter look (decision 0163): labels are sentence case at weight 500 instead of bold uppercase, `secondary` is a translucent `controlFill` fill with a 1px `border` and no glow, only `primary` glows, both take the `sm` (6px) radius, and IconButton defaults to a muted `ghost` instead of `secondary`. Apps still type-check, but labels narrow and lose their case, and an unstyled IconButton loses its frame. Most apps change nothing and update their baselines; an app that wants the old case or frame back passes a prop.
|
|
4
|
+
|
|
5
|
+
Badge and Tag set small labels at the meta step (decision 0164): Badge `xs` and `sm` and Tag `sm` render a 12/16 medium label with 6px inline padding, so Badge `sm` and Tag `sm` drop from 14px to 12px and Badge `xs` widens by 4px. Tag's default radius is `xs` (4px) instead of `lg` (12px). Badge and Tag `med` keep their 16px label. Apps still type-check; most update their baselines.
|
|
6
|
+
|
|
7
|
+
## Find
|
|
8
|
+
|
|
9
|
+
In the app's source (`*.tsx`):
|
|
10
|
+
|
|
11
|
+
- A label written in capitals to match the old look, which now renders as typed: regex `<(Button|Menu\.Trigger|Dialog\.(Trigger|Close)|Tooltip\.Trigger)\b(?:=>|[^>])*>\s*[A-Z][A-Z ]{2,}\s*<`.
|
|
12
|
+
- A test or snapshot that reads a label's computed case, weight or radius: regex `text-transform|textTransform|fontWeight|font-weight|borderRadius|border-radius`, kept where it reads a Button or IconButton.
|
|
13
|
+
- An IconButton with no `variant`, which was `secondary` and is now a muted `ghost`: regex `<IconButton\b(?!(?:=>|[^>])*\bvariant=)(?:=>|[^>])*>`.
|
|
14
|
+
- An icon `Menu.Trigger` with no `variant`, which renders that IconButton: regex `<Menu\.Trigger\b(?=(?:=>|[^>])*\bicon=)(?!(?:=>|[^>])*\bvariant=)(?:=>|[^>])*>`.
|
|
15
|
+
- A `ghost` IconButton without `color`, now `fgMuted` at rest: regex `<IconButton\b(?!(?:=>|[^>])*\bcolor=)(?:=>|[^>])*variant=["']ghost["']`.
|
|
16
|
+
- A Badge or Tag at `size="sm"` whose 14px label the design needs: regex `<(Badge|Tag)\b(?:=>|[^>])*size=["']sm["']`.
|
|
17
|
+
- A Tag with no `borderRadius`, whose corners go from 12px to 4px: regex `<Tag\b(?!(?:=>|[^>])*\bborderRadius=)(?:=>|[^>])*>`.
|
|
18
|
+
- A Badge at `size="xs"` in a fixed-width cell, now 4px wider: regex `<Badge\b(?:=>|[^>])*size=["']xs["']`.
|
|
19
|
+
- A test that reads a Badge's or Tag's computed font size, padding or radius: regex `fontSize|font-size|padding|borderRadius|border-radius`, kept where it reads a Badge or Tag.
|
|
20
|
+
|
|
21
|
+
## Replace
|
|
22
|
+
|
|
23
|
+
Keep uppercase where the design calls for it with the `uppercase` prop; write the label in sentence case, since the case is CSS only:
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
// before
|
|
27
|
+
<Button variant="primary">SAVE DRAFT</Button>
|
|
28
|
+
// after
|
|
29
|
+
<Button uppercase variant="primary">Save draft</Button>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Keep IconButton's old framed default where a framed icon is wanted:
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
// before
|
|
36
|
+
<IconButton icon={RefreshCwIcon} label="Refresh" />
|
|
37
|
+
// after
|
|
38
|
+
<IconButton icon={RefreshCwIcon} label="Refresh" variant="secondary" />
|
|
39
|
+
<Menu.Trigger icon={EllipsisIcon} label="More" variant="secondary" />
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Hold a `ghost` IconButton at full-strength text instead of muted:
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
<IconButton color="fg" icon={XIcon} label="Close" />
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Tests that expected uppercase computed text or `font-weight: 700` on a label expect `none` and `500`, or pass `uppercase`.
|
|
49
|
+
|
|
50
|
+
No size keeps the old 14px label: where the design needs a larger one, move it up to `med` (16px, 8px inline padding). Keep Tag's old rounded corners with its `borderRadius` prop:
|
|
51
|
+
|
|
52
|
+
```tsx
|
|
53
|
+
// before: 14px label, 12px corners
|
|
54
|
+
<Tag size="sm">Design</Tag>
|
|
55
|
+
// after: the old corners, now with the 12px meta label
|
|
56
|
+
<Tag borderRadius="lg" size="sm">Design</Tag>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Tests that expected a 14px `sm` label expect `12px`, Badge `xs` tests expect 6px inline padding, and Tag radius tests expect `4px`.
|
|
60
|
+
|
|
61
|
+
## Verify
|
|
62
|
+
|
|
63
|
+
The first Find regex matches only labels meant to be acronyms, and every IconButton and icon `Menu.Trigger` the third, fourth and fifth match is meant to be a muted ghost. Then update the app's visual baselines: Button and IconButton corners, fills, glows and label case change, and heights stay the same.
|
|
64
|
+
|
|
65
|
+
Every Badge and Tag `size="sm"` the sixth Find regex matches is meant to be 12px meta text. In the baselines, Tag corners and Badge and Tag small labels change, and Tag heights stay the same.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# 0.19.0
|
|
2
|
+
|
|
3
|
+
`Menu.Item` and `Menu.LinkItem` take their icons as `iconStart` and `iconEnd`, the shared icon slots (decision 0165), and no longer space or centre an icon passed in `children`; the icon-to-label gap goes from 8px to 4px.
|
|
4
|
+
|
|
5
|
+
NavList's current item is quiet (decision 0167): `fg` text at weight 500 on the neutral `selected` fill, with no bar, instead of `accentSubtleFg` at weight 600 on `accentSubtle` with a 2px accent bar. Every item is at least 32px high instead of 24px. An item's icon now sits in a hidden wrapper, as an avatar did. `NavList.Item` takes `live` and `liveLabel`, which are new and opt-in. Apps still type-check; most update their baselines.
|
|
6
|
+
|
|
7
|
+
## Find
|
|
8
|
+
|
|
9
|
+
### Menu items, SearchField and Chip
|
|
10
|
+
|
|
11
|
+
In the app's source (`*.tsx`):
|
|
12
|
+
|
|
13
|
+
- An icon inside an item's children: regex `<Menu\.(Item|LinkItem)\b[^>]*>\s*<[A-Z]\w*Icon\b` and `<Menu\.(Item|LinkItem)\b[^>]*>\s*<Icon\b`, run multiline (`rg -U`).
|
|
14
|
+
- An icon after an item's label: regex `<[A-Z]\w*Icon\b[^>]*/>\s*</Menu\.(Item|LinkItem)>`, run multiline.
|
|
15
|
+
|
|
16
|
+
### NavList
|
|
17
|
+
|
|
18
|
+
In the app's source and tests (`*.tsx`, `*.ts`):
|
|
19
|
+
|
|
20
|
+
- A test that reads the current item's color, fill, weight or bar: regex `accentSubtle|aria-current=["']page["']\]|fontWeight|font-weight`, kept where it reads a NavList item.
|
|
21
|
+
- A test that reaches an item's icon by its place among the link's children: regex `children\[\d\]|firstElementChild|querySelector\(["']svg`, kept where it reads a NavList item.
|
|
22
|
+
- A layout that counts on a 24px item, such as a fixed-height sidebar list: regex `<NavList\b`, then check the column's height.
|
|
23
|
+
|
|
24
|
+
## Replace
|
|
25
|
+
|
|
26
|
+
### Menu items, SearchField and Chip
|
|
27
|
+
|
|
28
|
+
Move the icon out of the children into a prop, as an icon component, not an element:
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
// before
|
|
32
|
+
<Menu.Item>
|
|
33
|
+
<PencilIcon />
|
|
34
|
+
Edit
|
|
35
|
+
</Menu.Item>
|
|
36
|
+
// after
|
|
37
|
+
<Menu.Item iconStart={PencilIcon}>Edit</Menu.Item>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
// before
|
|
42
|
+
<Menu.LinkItem href="/invoice">
|
|
43
|
+
Open invoice
|
|
44
|
+
<ArrowRightIcon />
|
|
45
|
+
</Menu.LinkItem>
|
|
46
|
+
// after
|
|
47
|
+
<Menu.LinkItem href="/invoice" iconEnd={ArrowRightIcon}>
|
|
48
|
+
Open invoice
|
|
49
|
+
</Menu.LinkItem>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
A hand-drawn `<Icon>` becomes a component first: `const ArchiveIcon = (props: IconProps) => <Icon {...props}>…</Icon>`, then `iconStart={ArchiveIcon}`.
|
|
53
|
+
|
|
54
|
+
### NavList
|
|
55
|
+
|
|
56
|
+
A test that expected the accent look expects the quiet one; the item still has `aria-current="page"`:
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
// before
|
|
60
|
+
expect(getComputedStyle(label).fontWeight).toBe("600");
|
|
61
|
+
expect(getComputedStyle(current).backgroundColor).toBe(accentSubtle);
|
|
62
|
+
// after
|
|
63
|
+
expect(getComputedStyle(label).fontWeight).toBe("500");
|
|
64
|
+
expect(getComputedStyle(current).backgroundColor).not.toBe("rgba(0, 0, 0, 0)");
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
An icon is the first child of the link's first child now, a hidden wrapper that also holds the rail's live dot:
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
// before
|
|
71
|
+
const icon = link.children[0]; // the svg
|
|
72
|
+
// after
|
|
73
|
+
const icon = link.querySelector("svg")!;
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
An app that wants the accent fill back on its current item passes the style props; the bar does not return:
|
|
77
|
+
|
|
78
|
+
```tsx
|
|
79
|
+
<NavList.Item backgroundColor="accentSubtle" color="accentSubtleFg" current href="/">
|
|
80
|
+
Inbox
|
|
81
|
+
</NavList.Item>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
A list that must keep 24px items passes `minBlockSize="xs"` to each item, below the 32px target size (WCAG 2.5.8, decision 0124).
|
|
85
|
+
|
|
86
|
+
## Verify
|
|
87
|
+
|
|
88
|
+
The Menu items Find regexes match nothing and `tsc` passes. Then update the app's visual baselines: a menu item's icon sits 4px from its label, not 8px, and item heights stay the same; a small or medium SearchField's value sits 4px from its search icon, not 8px; a medium Chip's check sits 4px from its label, not 6px.
|
|
89
|
+
|
|
90
|
+
The NavList test regexes match nothing that reads the old look, and the app's tests pass. Then update the app's visual baselines: the current NavList item has a grey fill, `fg` text and no bar; items are at least 32px high, so a sidebar's list grows; in a collapsed Sidebar the current rail square has the grey fill.
|
package/dist/docs/theming.md
CHANGED
|
@@ -60,7 +60,7 @@ Three overlay roles lay a tint over whatever surface is under them: `hover` for
|
|
|
60
60
|
|
|
61
61
|
## Radius
|
|
62
62
|
|
|
63
|
-
`vars.radius` (CSS variables `--radius-*`, and the `borderRadius` style prop) has seven steps: `none` 0, `xs` 4px, `sm` 6px, `med` 8px, `lg` 12px, `xl` 16px and `full`. Override a component's radius with its `borderRadius` prop. Each component role is moving to one step at every size: `xs` for badges, tags, tooltips and rows inside a menu or list, `sm` for controls (buttons and fields), `med` for menus, listboxes and toasts, `lg` for cards and dialogs, `full` for avatars, switches and radios. In this release badges, tooltips, rows, popups, dialogs and the `full` shapes already match;
|
|
63
|
+
`vars.radius` (CSS variables `--radius-*`, and the `borderRadius` style prop) has seven steps: `none` 0, `xs` 4px, `sm` 6px, `med` 8px, `lg` 12px, `xl` 16px and `full`. Override a component's radius with its `borderRadius` prop. Each component role is moving to one step at every size: `xs` for badges, tags, tooltips and rows inside a menu or list, `sm` for controls (buttons and fields), `med` for menus, listboxes and toasts, `lg` for cards and dialogs, `full` for avatars, switches and radios. In this release badges, tags, buttons, tooltips, rows, popups, dialogs and the `full` shapes already match; fields and select triggers are still `med` until a later release moves them.
|
|
64
64
|
|
|
65
65
|
## The page canvas
|
|
66
66
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Box as e } from "../Box/base.mjs";
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
// src/icon-slot/input-icons.tsx
|
|
4
|
+
function i({ iconStart: i, iconEnd: a, size: o, step: s, styles: c }) {
|
|
5
|
+
return /* @__PURE__ */ r(t, { children: [i && /* @__PURE__ */ n(e, {
|
|
6
|
+
"aria-hidden": !0,
|
|
7
|
+
as: "span",
|
|
8
|
+
className: c.start[o],
|
|
9
|
+
children: /* @__PURE__ */ n(i, {
|
|
10
|
+
className: c.icon[o],
|
|
11
|
+
size: s
|
|
12
|
+
})
|
|
13
|
+
}), a && /* @__PURE__ */ n(e, {
|
|
14
|
+
"aria-hidden": !0,
|
|
15
|
+
as: "span",
|
|
16
|
+
className: c.end[o],
|
|
17
|
+
children: /* @__PURE__ */ n(a, {
|
|
18
|
+
className: c.icon[o],
|
|
19
|
+
size: s
|
|
20
|
+
})
|
|
21
|
+
})] });
|
|
22
|
+
}
|
|
23
|
+
export { i as InputIcons };
|
package/dist/icon-slot/slot.mjs
CHANGED
|
@@ -3,18 +3,22 @@ import { Text as t } from "../Text/index.mjs";
|
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
// src/icon-slot/slot.tsx
|
|
5
5
|
var a = "";
|
|
6
|
-
function o({ iconStart: o, iconEnd: s, size: c, styles: l, truncate: u,
|
|
7
|
-
if (!o && !s) return
|
|
8
|
-
let
|
|
6
|
+
function o({ iconStart: o, iconEnd: s, size: c, styles: l, truncate: u, lead: d, children: f }) {
|
|
7
|
+
if (!o && !s && !d) return f;
|
|
8
|
+
let p = (o || d) && /* @__PURE__ */ i(t, {
|
|
9
9
|
"aria-hidden": !0,
|
|
10
10
|
as: "span",
|
|
11
11
|
display: "inline",
|
|
12
12
|
wrap: "nowrap",
|
|
13
|
-
children: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
children: [
|
|
14
|
+
d,
|
|
15
|
+
o && /* @__PURE__ */ r(o, {
|
|
16
|
+
className: l.start[c],
|
|
17
|
+
size: c
|
|
18
|
+
}),
|
|
19
|
+
a
|
|
20
|
+
]
|
|
21
|
+
}), m = s && /* @__PURE__ */ i(t, {
|
|
18
22
|
"aria-hidden": !0,
|
|
19
23
|
as: "span",
|
|
20
24
|
display: "inline",
|
|
@@ -24,16 +28,16 @@ function o({ iconStart: o, iconEnd: s, size: c, styles: l, truncate: u, children
|
|
|
24
28
|
size: c
|
|
25
29
|
})]
|
|
26
30
|
});
|
|
27
|
-
return u &&
|
|
31
|
+
return u && m ? /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ i(t, {
|
|
28
32
|
as: "span",
|
|
29
33
|
className: e(l.clip[c], l.reveal),
|
|
30
34
|
display: "inline-block",
|
|
31
35
|
truncate: "box",
|
|
32
|
-
children: [
|
|
33
|
-
}),
|
|
36
|
+
children: [p, f]
|
|
37
|
+
}), m] }) : /* @__PURE__ */ i(n, { children: [
|
|
38
|
+
p,
|
|
34
39
|
f,
|
|
35
|
-
|
|
36
|
-
p
|
|
40
|
+
m
|
|
37
41
|
] });
|
|
38
42
|
}
|
|
39
43
|
export { o as slotIcons };
|
package/dist/index.mjs
CHANGED
|
@@ -17,16 +17,16 @@ import { IconButton as g } from "./IconButton/index.mjs";
|
|
|
17
17
|
import { Inline as _ } from "./Inline/index.mjs";
|
|
18
18
|
import { Menu as v } from "./Menu/index.mjs";
|
|
19
19
|
import { MultiSelect as y } from "./MultiSelect/index.mjs";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
20
|
+
import { VisuallyHidden as b } from "./VisuallyHidden/index.mjs";
|
|
21
|
+
import { NavList as x } from "./NavList/index.mjs";
|
|
22
|
+
import { NumberField as S } from "./NumberField/index.mjs";
|
|
23
|
+
import { RadioGroup as C } from "./RadioGroup/index.mjs";
|
|
24
|
+
import { SearchField as w } from "./SearchField/index.mjs";
|
|
25
|
+
import { Select as T } from "./Select/index.mjs";
|
|
26
|
+
import { Sidebar as E } from "./Sidebar/index.mjs";
|
|
27
|
+
import { SidebarLayout as D } from "./SidebarLayout/index.mjs";
|
|
28
|
+
import { Stack as O } from "./Stack/index.mjs";
|
|
29
|
+
import { Switch as k } from "./Switch/index.mjs";
|
|
30
30
|
import { Table as A } from "./Table/index.mjs";
|
|
31
31
|
import { Tabs as j } from "./Tabs/index.mjs";
|
|
32
32
|
import { Tag as M } from "./Tag/index.mjs";
|
|
@@ -37,4 +37,4 @@ import { ThemeProvider as I } from "./theme/ThemeProvider.mjs";
|
|
|
37
37
|
import { useToast as L } from "./Toast/client.mjs";
|
|
38
38
|
import { Toast as R } from "./Toast/index.mjs";
|
|
39
39
|
import { Tooltip as z } from "./Tooltip/index.mjs";
|
|
40
|
-
export { o as AlertDialog, s as Avatar, c as Badge, l as Box, r as Button, u as Checkbox, d as Chip, f as ChipGroup, e as Clickable, m as ColorField, h as Combobox, a as Dialog, p as Field, i as Heading, t as Icon, g as IconButton, _ as Inline, v as Menu, y as MultiSelect,
|
|
40
|
+
export { o as AlertDialog, s as Avatar, c as Badge, l as Box, r as Button, u as Checkbox, d as Chip, f as ChipGroup, e as Clickable, m as ColorField, h as Combobox, a as Dialog, p as Field, i as Heading, t as Icon, g as IconButton, _ as Inline, v as Menu, y as MultiSelect, x as NavList, S as NumberField, C as RadioGroup, w as SearchField, T as Select, E as Sidebar, D as SidebarLayout, O as Stack, k as Switch, A as Table, j as Tabs, M as Tag, n as Text, P as TextField, N as Textarea, I as ThemeProvider, R as Toast, z as Tooltip, b as VisuallyHidden, F as defineTheme, L as useToast };
|
package/dist/popup/client.d.mts
CHANGED
|
@@ -3,5 +3,5 @@ import { ButtonOwnProps } from "../Button/index.mjs";
|
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
export type TriggerLookProps = {
|
|
5
5
|
variant?: Exclude<ButtonOwnProps["variant"], "danger">;
|
|
6
|
-
} & Pick<ButtonOwnProps, "size" | "iconStart" | "iconEnd">;
|
|
6
|
+
} & Pick<ButtonOwnProps, "size" | "iconStart" | "iconEnd" | "uppercase">;
|
|
7
7
|
export type TriggerElementProps = TriggerLookProps & Omit<ClickableProps<"button">, "as" | "busy">;
|
package/dist/popup/client.mjs
CHANGED
|
@@ -29,14 +29,15 @@ function d({ children: e }) {
|
|
|
29
29
|
function f() {
|
|
30
30
|
return i(l);
|
|
31
31
|
}
|
|
32
|
-
function p({ variant: n, size: r, iconStart: i, iconEnd: a,
|
|
33
|
-
return n || r || i || a ? /* @__PURE__ */ c(t, {
|
|
34
|
-
...
|
|
32
|
+
function p({ variant: n, size: r, iconStart: i, iconEnd: a, uppercase: o, ...s }) {
|
|
33
|
+
return n || r || i || a || o ? /* @__PURE__ */ c(t, {
|
|
34
|
+
...s,
|
|
35
35
|
variant: n,
|
|
36
36
|
size: r,
|
|
37
37
|
iconStart: i,
|
|
38
|
-
iconEnd: a
|
|
39
|
-
|
|
38
|
+
iconEnd: a,
|
|
39
|
+
uppercase: o
|
|
40
|
+
}) : /* @__PURE__ */ c(e, { ...s });
|
|
40
41
|
}
|
|
41
42
|
function m(e) {
|
|
42
43
|
let t = i(u);
|
|
@@ -25,13 +25,14 @@ function p({ children: e, className: t }) {
|
|
|
25
25
|
function m() {
|
|
26
26
|
return c(d);
|
|
27
27
|
}
|
|
28
|
-
function h({ children: e, className: t,
|
|
28
|
+
function h({ children: e, className: t, iconStart: n, size: i }) {
|
|
29
29
|
return r({
|
|
30
30
|
variant: "secondary",
|
|
31
|
-
size:
|
|
31
|
+
size: i,
|
|
32
32
|
backgroundColor: "bg",
|
|
33
33
|
borderRadius: "med",
|
|
34
34
|
color: "fg",
|
|
35
|
+
iconStart: n,
|
|
35
36
|
iconEnd: o,
|
|
36
37
|
className: t,
|
|
37
38
|
children: e
|
package/dist/popup/listbox.mjs
CHANGED
|
@@ -4,14 +4,15 @@ import { ListboxLabel as t, ListboxScope as n, listboxPlacement as r, listboxPop
|
|
|
4
4
|
import { jsx as c } from "react/jsx-runtime";
|
|
5
5
|
import { Select as l } from "@base-ui/react/select";
|
|
6
6
|
// src/popup/listbox.tsx
|
|
7
|
-
function u({ children: t, className: n, disabled: r,
|
|
8
|
-
let { ref:
|
|
7
|
+
function u({ children: t, className: n, disabled: r, iconStart: i, size: o }) {
|
|
8
|
+
let { ref: s } = e();
|
|
9
9
|
return /* @__PURE__ */ c(l.Trigger, {
|
|
10
10
|
disabled: r,
|
|
11
|
-
ref:
|
|
11
|
+
ref: s,
|
|
12
12
|
render: a({
|
|
13
13
|
className: n,
|
|
14
|
-
|
|
14
|
+
iconStart: i,
|
|
15
|
+
size: o,
|
|
15
16
|
children: t
|
|
16
17
|
})
|
|
17
18
|
});
|
package/dist/styles/atoms.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
2
|
@layer atoms.base{._1dkxmm00{display:none}._1dkxmm01{display:block}._1dkxmm02{display:inline}._1dkxmm03{display:inline-block}._1dkxmm04{display:flex}._1dkxmm05{display:inline-flex}._1dkxmm06{display:grid}._1dkxmm07{display:contents}._1dkxmm08{flex-direction:row}._1dkxmm09{flex-direction:row-reverse}._1dkxmm0a{flex-direction:column}._1dkxmm0b{flex-direction:column-reverse}._1dkxmm0c{flex-wrap:nowrap}._1dkxmm0d{flex-wrap:wrap}._1dkxmm0e{flex-grow:0}._1dkxmm0f{flex-grow:1}._1dkxmm0g{flex-shrink:0}._1dkxmm0h{flex-shrink:1}._1dkxmm0i{align-items:start}._1dkxmm0j{align-items:center}._1dkxmm0k{align-items:end}._1dkxmm0l{align-items:stretch}._1dkxmm0m{align-items:baseline}._1dkxmm0n{align-self:start}._1dkxmm0o{align-self:center}._1dkxmm0p{align-self:end}._1dkxmm0q{align-self:stretch}._1dkxmm0r{align-self:baseline}._1dkxmm0s{justify-content:start}._1dkxmm0t{justify-content:center}._1dkxmm0u{justify-content:end}._1dkxmm0v{justify-content:space-between}._1dkxmm0w{justify-content:space-around}._1dkxmm0x{justify-content:space-evenly}._1dkxmm0y{gap:var(--space-0)}._1dkxmm0z{gap:var(--space-1)}._1dkxmm010{gap:var(--space-2)}._1dkxmm011{gap:var(--space-4)}._1dkxmm012{gap:var(--space-6)}._1dkxmm013{gap:var(--space-8)}._1dkxmm014{gap:var(--space-12)}._1dkxmm015{gap:var(--space-16)}._1dkxmm016{gap:var(--space-20)}._1dkxmm017{gap:var(--space-24)}._1dkxmm018{gap:var(--space-32)}._1dkxmm019{gap:var(--space-40)}._1dkxmm01a{gap:var(--space-48)}._1dkxmm01b{gap:var(--space-64)}._1dkxmm01c{gap:var(--space-80)}._1dkxmm01d{gap:var(--space-96)}._1dkxmm01e{padding-block-start:var(--space-0)}._1dkxmm01f{padding-block-start:var(--space-1)}._1dkxmm01g{padding-block-start:var(--space-2)}._1dkxmm01h{padding-block-start:var(--space-4)}._1dkxmm01i{padding-block-start:var(--space-6)}._1dkxmm01j{padding-block-start:var(--space-8)}._1dkxmm01k{padding-block-start:var(--space-12)}._1dkxmm01l{padding-block-start:var(--space-16)}._1dkxmm01m{padding-block-start:var(--space-20)}._1dkxmm01n{padding-block-start:var(--space-24)}._1dkxmm01o{padding-block-start:var(--space-32)}._1dkxmm01p{padding-block-start:var(--space-40)}._1dkxmm01q{padding-block-start:var(--space-48)}._1dkxmm01r{padding-block-start:var(--space-64)}._1dkxmm01s{padding-block-start:var(--space-80)}._1dkxmm01t{padding-block-start:var(--space-96)}._1dkxmm01u{padding-block-end:var(--space-0)}._1dkxmm01v{padding-block-end:var(--space-1)}._1dkxmm01w{padding-block-end:var(--space-2)}._1dkxmm01x{padding-block-end:var(--space-4)}._1dkxmm01y{padding-block-end:var(--space-6)}._1dkxmm01z{padding-block-end:var(--space-8)}._1dkxmm020{padding-block-end:var(--space-12)}._1dkxmm021{padding-block-end:var(--space-16)}._1dkxmm022{padding-block-end:var(--space-20)}._1dkxmm023{padding-block-end:var(--space-24)}._1dkxmm024{padding-block-end:var(--space-32)}._1dkxmm025{padding-block-end:var(--space-40)}._1dkxmm026{padding-block-end:var(--space-48)}._1dkxmm027{padding-block-end:var(--space-64)}._1dkxmm028{padding-block-end:var(--space-80)}._1dkxmm029{padding-block-end:var(--space-96)}._1dkxmm02a{padding-inline-start:var(--space-0)}._1dkxmm02b{padding-inline-start:var(--space-1)}._1dkxmm02c{padding-inline-start:var(--space-2)}._1dkxmm02d{padding-inline-start:var(--space-4)}._1dkxmm02e{padding-inline-start:var(--space-6)}._1dkxmm02f{padding-inline-start:var(--space-8)}._1dkxmm02g{padding-inline-start:var(--space-12)}._1dkxmm02h{padding-inline-start:var(--space-16)}._1dkxmm02i{padding-inline-start:var(--space-20)}._1dkxmm02j{padding-inline-start:var(--space-24)}._1dkxmm02k{padding-inline-start:var(--space-32)}._1dkxmm02l{padding-inline-start:var(--space-40)}._1dkxmm02m{padding-inline-start:var(--space-48)}._1dkxmm02n{padding-inline-start:var(--space-64)}._1dkxmm02o{padding-inline-start:var(--space-80)}._1dkxmm02p{padding-inline-start:var(--space-96)}._1dkxmm02q{padding-inline-end:var(--space-0)}._1dkxmm02r{padding-inline-end:var(--space-1)}._1dkxmm02s{padding-inline-end:var(--space-2)}._1dkxmm02t{padding-inline-end:var(--space-4)}._1dkxmm02u{padding-inline-end:var(--space-6)}._1dkxmm02v{padding-inline-end:var(--space-8)}._1dkxmm02w{padding-inline-end:var(--space-12)}._1dkxmm02x{padding-inline-end:var(--space-16)}._1dkxmm02y{padding-inline-end:var(--space-20)}._1dkxmm02z{padding-inline-end:var(--space-24)}._1dkxmm030{padding-inline-end:var(--space-32)}._1dkxmm031{padding-inline-end:var(--space-40)}._1dkxmm032{padding-inline-end:var(--space-48)}._1dkxmm033{padding-inline-end:var(--space-64)}._1dkxmm034{padding-inline-end:var(--space-80)}._1dkxmm035{padding-inline-end:var(--space-96)}._1dkxmm036{margin-block-start:var(--space-0)}._1dkxmm037{margin-block-start:var(--space-1)}._1dkxmm038{margin-block-start:var(--space-2)}._1dkxmm039{margin-block-start:var(--space-4)}._1dkxmm03a{margin-block-start:var(--space-6)}._1dkxmm03b{margin-block-start:var(--space-8)}._1dkxmm03c{margin-block-start:var(--space-12)}._1dkxmm03d{margin-block-start:var(--space-16)}._1dkxmm03e{margin-block-start:var(--space-20)}._1dkxmm03f{margin-block-start:var(--space-24)}._1dkxmm03g{margin-block-start:var(--space-32)}._1dkxmm03h{margin-block-start:var(--space-40)}._1dkxmm03i{margin-block-start:var(--space-48)}._1dkxmm03j{margin-block-start:var(--space-64)}._1dkxmm03k{margin-block-start:var(--space-80)}._1dkxmm03l{margin-block-start:var(--space-96)}._1dkxmm03m{margin-block-start:auto}._1dkxmm03n{margin-block-end:var(--space-0)}._1dkxmm03o{margin-block-end:var(--space-1)}._1dkxmm03p{margin-block-end:var(--space-2)}._1dkxmm03q{margin-block-end:var(--space-4)}._1dkxmm03r{margin-block-end:var(--space-6)}._1dkxmm03s{margin-block-end:var(--space-8)}._1dkxmm03t{margin-block-end:var(--space-12)}._1dkxmm03u{margin-block-end:var(--space-16)}._1dkxmm03v{margin-block-end:var(--space-20)}._1dkxmm03w{margin-block-end:var(--space-24)}._1dkxmm03x{margin-block-end:var(--space-32)}._1dkxmm03y{margin-block-end:var(--space-40)}._1dkxmm03z{margin-block-end:var(--space-48)}._1dkxmm040{margin-block-end:var(--space-64)}._1dkxmm041{margin-block-end:var(--space-80)}._1dkxmm042{margin-block-end:var(--space-96)}._1dkxmm043{margin-block-end:auto}._1dkxmm044{margin-inline-start:var(--space-0)}._1dkxmm045{margin-inline-start:var(--space-1)}._1dkxmm046{margin-inline-start:var(--space-2)}._1dkxmm047{margin-inline-start:var(--space-4)}._1dkxmm048{margin-inline-start:var(--space-6)}._1dkxmm049{margin-inline-start:var(--space-8)}._1dkxmm04a{margin-inline-start:var(--space-12)}._1dkxmm04b{margin-inline-start:var(--space-16)}._1dkxmm04c{margin-inline-start:var(--space-20)}._1dkxmm04d{margin-inline-start:var(--space-24)}._1dkxmm04e{margin-inline-start:var(--space-32)}._1dkxmm04f{margin-inline-start:var(--space-40)}._1dkxmm04g{margin-inline-start:var(--space-48)}._1dkxmm04h{margin-inline-start:var(--space-64)}._1dkxmm04i{margin-inline-start:var(--space-80)}._1dkxmm04j{margin-inline-start:var(--space-96)}._1dkxmm04k{margin-inline-start:auto}._1dkxmm04l{margin-inline-end:var(--space-0)}._1dkxmm04m{margin-inline-end:var(--space-1)}._1dkxmm04n{margin-inline-end:var(--space-2)}._1dkxmm04o{margin-inline-end:var(--space-4)}._1dkxmm04p{margin-inline-end:var(--space-6)}._1dkxmm04q{margin-inline-end:var(--space-8)}._1dkxmm04r{margin-inline-end:var(--space-12)}._1dkxmm04s{margin-inline-end:var(--space-16)}._1dkxmm04t{margin-inline-end:var(--space-20)}._1dkxmm04u{margin-inline-end:var(--space-24)}._1dkxmm04v{margin-inline-end:var(--space-32)}._1dkxmm04w{margin-inline-end:var(--space-40)}._1dkxmm04x{margin-inline-end:var(--space-48)}._1dkxmm04y{margin-inline-end:var(--space-64)}._1dkxmm04z{margin-inline-end:var(--space-80)}._1dkxmm050{margin-inline-end:var(--space-96)}._1dkxmm051{margin-inline-end:auto}._1dkxmm052{inline-size:var(--size-xs)}._1dkxmm053{inline-size:var(--size-sm)}._1dkxmm054{inline-size:var(--size-med)}._1dkxmm055{inline-size:var(--size-lg)}._1dkxmm056{inline-size:var(--size-xl)}._1dkxmm057{inline-size:auto}._1dkxmm058{inline-size:100%}._1dkxmm059{inline-size:fit-content}._1dkxmm05a{inline-size:min-content}._1dkxmm05b{inline-size:max-content}._1dkxmm05c{inline-size:var(--container-sidebar)}._1dkxmm05d{inline-size:var(--container-rail)}._1dkxmm05e{inline-size:var(--container-prose)}._1dkxmm05f{inline-size:var(--container-page)}._1dkxmm05g{inline-size:var(--container-wide)}._1dkxmm05h{block-size:var(--size-xs)}._1dkxmm05i{block-size:var(--size-sm)}._1dkxmm05j{block-size:var(--size-med)}._1dkxmm05k{block-size:var(--size-lg)}._1dkxmm05l{block-size:var(--size-xl)}._1dkxmm05m{block-size:auto}._1dkxmm05n{block-size:100%}._1dkxmm05o{block-size:fit-content}._1dkxmm05p{block-size:min-content}._1dkxmm05q{block-size:max-content}._1dkxmm05r{min-inline-size:var(--size-xs)}._1dkxmm05s{min-inline-size:var(--size-sm)}._1dkxmm05t{min-inline-size:var(--size-med)}._1dkxmm05u{min-inline-size:var(--size-lg)}._1dkxmm05v{min-inline-size:var(--size-xl)}._1dkxmm05w{min-inline-size:auto}._1dkxmm05x{min-inline-size:100%}._1dkxmm05y{min-inline-size:fit-content}._1dkxmm05z{min-inline-size:min-content}._1dkxmm060{min-inline-size:max-content}._1dkxmm061{min-inline-size:var(--container-sidebar)}._1dkxmm062{min-inline-size:var(--container-rail)}._1dkxmm063{min-inline-size:var(--container-prose)}._1dkxmm064{min-inline-size:var(--container-page)}._1dkxmm065{min-inline-size:var(--container-wide)}._1dkxmm066{max-inline-size:var(--size-xs)}._1dkxmm067{max-inline-size:var(--size-sm)}._1dkxmm068{max-inline-size:var(--size-med)}._1dkxmm069{max-inline-size:var(--size-lg)}._1dkxmm06a{max-inline-size:var(--size-xl)}._1dkxmm06b{max-inline-size:auto}._1dkxmm06c{max-inline-size:100%}._1dkxmm06d{max-inline-size:fit-content}._1dkxmm06e{max-inline-size:min-content}._1dkxmm06f{max-inline-size:max-content}._1dkxmm06g{max-inline-size:var(--container-sidebar)}._1dkxmm06h{max-inline-size:var(--container-rail)}._1dkxmm06i{max-inline-size:var(--container-prose)}._1dkxmm06j{max-inline-size:var(--container-page)}._1dkxmm06k{max-inline-size:var(--container-wide)}._1dkxmm06l{min-block-size:var(--size-xs)}._1dkxmm06m{min-block-size:var(--size-sm)}._1dkxmm06n{min-block-size:var(--size-med)}._1dkxmm06o{min-block-size:var(--size-lg)}._1dkxmm06p{min-block-size:var(--size-xl)}._1dkxmm06q{min-block-size:auto}._1dkxmm06r{min-block-size:100%}._1dkxmm06s{min-block-size:fit-content}._1dkxmm06t{min-block-size:min-content}._1dkxmm06u{min-block-size:max-content}._1dkxmm06v{max-block-size:var(--size-xs)}._1dkxmm06w{max-block-size:var(--size-sm)}._1dkxmm06x{max-block-size:var(--size-med)}._1dkxmm06y{max-block-size:var(--size-lg)}._1dkxmm06z{max-block-size:var(--size-xl)}._1dkxmm070{max-block-size:auto}._1dkxmm071{max-block-size:100%}._1dkxmm072{max-block-size:fit-content}._1dkxmm073{max-block-size:min-content}._1dkxmm074{max-block-size:max-content}._1dkxmm0zp{color:var(--color-bg)}._1dkxmm0zq{color:var(--color-bg-muted)}._1dkxmm0zr{color:var(--color-bg-raised)}._1dkxmm0zs{color:var(--color-bg-panel)}._1dkxmm0zt{color:var(--color-fg)}._1dkxmm0zu{color:var(--color-fg-muted)}._1dkxmm0zv{color:var(--color-border)}._1dkxmm0zw{color:var(--color-border-strong)}._1dkxmm0zx{color:var(--color-accent)}._1dkxmm0zy{color:var(--color-accent-fg)}._1dkxmm0zz{color:var(--color-accent-fill-fg)}._1dkxmm0100{color:var(--color-danger)}._1dkxmm0101{color:var(--color-danger-fg)}._1dkxmm0102{color:var(--color-success)}._1dkxmm0103{color:var(--color-success-fg)}._1dkxmm0104{color:var(--color-warning)}._1dkxmm0105{color:var(--color-warning-fg)}._1dkxmm0106{color:var(--color-done)}._1dkxmm0107{color:var(--color-done-fg)}._1dkxmm0108{color:var(--color-neutral-subtle-fg)}._1dkxmm0109{color:var(--color-accent-subtle-fg)}._1dkxmm010a{color:var(--color-success-subtle-fg)}._1dkxmm010b{color:var(--color-warning-subtle-fg)}._1dkxmm010c{color:var(--color-danger-subtle-fg)}._1dkxmm010d{color:var(--color-done-subtle-fg)}._1dkxmm010e{color:var(--color-focus)}._1dkxmm010f{background-color:var(--color-bg)}._1dkxmm010g{background-color:var(--color-bg-muted)}._1dkxmm010h{background-color:var(--color-bg-raised)}._1dkxmm010i{background-color:var(--color-bg-panel)}._1dkxmm010j{background-color:var(--color-fg)}._1dkxmm010k{background-color:var(--color-fg-muted)}._1dkxmm010l{background-color:var(--color-border)}._1dkxmm010m{background-color:var(--color-border-strong)}._1dkxmm010n{background-color:var(--color-hover)}._1dkxmm010o{background-color:var(--color-control-fill)}._1dkxmm010p{background-color:var(--color-selected)}._1dkxmm010q{background-color:var(--color-accent)}._1dkxmm010r{background-color:var(--color-accent-fg)}._1dkxmm010s{background-color:var(--color-accent-fill)}._1dkxmm010t{background-color:var(--color-accent-fill-fg)}._1dkxmm010u{background-color:var(--color-danger)}._1dkxmm010v{background-color:var(--color-danger-fg)}._1dkxmm010w{background-color:var(--color-success)}._1dkxmm010x{background-color:var(--color-success-fg)}._1dkxmm010y{background-color:var(--color-warning)}._1dkxmm010z{background-color:var(--color-warning-fg)}._1dkxmm0110{background-color:var(--color-done)}._1dkxmm0111{background-color:var(--color-done-fg)}._1dkxmm0112{background-color:var(--color-neutral-subtle)}._1dkxmm0113{background-color:var(--color-neutral-subtle-fg)}._1dkxmm0114{background-color:var(--color-accent-subtle)}._1dkxmm0115{background-color:var(--color-accent-subtle-fg)}._1dkxmm0116{background-color:var(--color-success-subtle)}._1dkxmm0117{background-color:var(--color-success-subtle-fg)}._1dkxmm0118{background-color:var(--color-warning-subtle)}._1dkxmm0119{background-color:var(--color-warning-subtle-fg)}._1dkxmm011a{background-color:var(--color-danger-subtle)}._1dkxmm011b{background-color:var(--color-danger-subtle-fg)}._1dkxmm011c{background-color:var(--color-done-subtle)}._1dkxmm011d{background-color:var(--color-done-subtle-fg)}._1dkxmm011e{background-color:var(--color-focus)}._1dkxmm011f{border-radius:var(--radius-none)}._1dkxmm011g{border-radius:var(--radius-xs)}._1dkxmm011h{border-radius:var(--radius-sm)}._1dkxmm011i{border-radius:var(--radius-med)}._1dkxmm011j{border-radius:var(--radius-lg)}._1dkxmm011k{border-radius:var(--radius-xl)}._1dkxmm011l{border-radius:var(--radius-full)}._1dkxmm011m{box-shadow:var(--shadow-sm)}._1dkxmm011n{box-shadow:var(--shadow-med)}._1dkxmm011o{box-shadow:var(--shadow-lg)}._1dkxmm011p{position:static}._1dkxmm011q{position:relative}._1dkxmm011r{position:absolute}._1dkxmm011s{position:fixed}._1dkxmm011t{position:sticky}._1dkxmm011u{z-index:var(--z-index-base)}._1dkxmm011v{z-index:var(--z-index-raised)}._1dkxmm011w{z-index:var(--z-index-dropdown)}._1dkxmm011x{z-index:var(--z-index-sticky)}._1dkxmm011y{z-index:var(--z-index-overlay)}._1dkxmm011z{z-index:var(--z-index-modal)}._1dkxmm0120{z-index:var(--z-index-popover)}._1dkxmm0121{z-index:var(--z-index-toast)}._1dkxmm0122{z-index:var(--z-index-tooltip)}._1dkxmm0123{overflow:visible}._1dkxmm0124{overflow:hidden}._1dkxmm0125{overflow:clip}._1dkxmm0126{overflow:auto}._1dkxmm0127{text-align:start}._1dkxmm0128{text-align:center}._1dkxmm0129{text-align:end}}
|
package/dist/styles/layers.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.visually-hidden, components.nav-list, components.table;
|
|
2
2
|
@layer tokens,reset,atoms,components,atoms.base,atoms.sm,atoms.med,atoms.lg,atoms.xl;
|