@zazz-ui/core 0.4.0 → 0.5.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/AUTHORING.md +158 -0
- package/CHANGELOG.md +341 -0
- package/README.md +55 -23
- package/dist/scroll-state-C8mA5gq6.js +1 -0
- package/dist/sri.json +124 -72
- package/dist/zazz.css +1 -1
- package/dist/zazz.js +1 -1
- package/editor/zazz.css-data.json +116794 -0
- package/editor/zazz.html-data.json +1683 -0
- package/editor/zazz.language-data.json +5001 -0
- package/editor/zazz.lint-data.json +152 -0
- package/package.json +12 -5
- package/src/base/_breakpoints.css +12 -0
- package/src/base/_layers.css +8 -9
- package/src/base/_properties-2xl.css +171 -0
- package/src/base/_properties-active.css +107 -0
- package/src/base/_properties-checked.css +107 -0
- package/src/base/_properties-current.css +107 -0
- package/src/base/_properties-disabled.css +107 -0
- package/src/base/_properties-focus-visible.css +107 -0
- package/src/base/_properties-focus-within.css +107 -0
- package/src/base/_properties-hover.css +107 -0
- package/src/base/_properties-lg.css +171 -0
- package/src/base/_properties-md.css +171 -0
- package/src/base/_properties-open.css +107 -0
- package/src/base/_properties-sm.css +171 -0
- package/src/base/_properties-starting.css +55 -0
- package/src/base/_properties-stuck.css +55 -0
- package/src/base/_properties-xl.css +171 -0
- package/src/base/_properties.css +555 -0
- package/src/base/_reset.css +67 -75
- package/src/base/_switches.css +145 -0
- package/src/base/_typography.css +437 -370
- package/src/base/_utilities-box.css +142 -0
- package/src/base/_utilities-color.css +290 -0
- package/src/base/_utilities-effects.css +235 -0
- package/src/base/_utilities-flow.css +312 -0
- package/src/base/_utilities-grid.css +143 -0
- package/src/base/_utilities-margin.css +376 -0
- package/src/base/_utilities-pseudo.css +426 -0
- package/src/base/_utilities-sizing.css +259 -0
- package/src/base/_utilities-spacing.css +190 -0
- package/src/base/_utilities-tier-2xl.css +93 -0
- package/src/base/_utilities-tier-active.css +61 -0
- package/src/base/_utilities-tier-checked.css +61 -0
- package/src/base/_utilities-tier-current.css +61 -0
- package/src/base/_utilities-tier-disabled.css +61 -0
- package/src/base/_utilities-tier-focus-visible.css +61 -0
- package/src/base/_utilities-tier-focus-within.css +61 -0
- package/src/base/_utilities-tier-hover.css +63 -0
- package/src/base/_utilities-tier-lg.css +93 -0
- package/src/base/_utilities-tier-md.css +93 -0
- package/src/base/_utilities-tier-open.css +61 -0
- package/src/base/_utilities-tier-sm.css +93 -0
- package/src/base/_utilities-tier-starting.css +35 -0
- package/src/base/_utilities-tier-stuck.css +114 -0
- package/src/base/_utilities-tier-xl.css +93 -0
- package/src/base/_utilities-typography.css +141 -0
- package/src/base/_variables.css +323 -372
- package/src/base/_view-transitions.css +10 -12
- package/src/base/command-score.d.ts.map +1 -1
- package/src/base/command-score.js +1 -2
- package/src/base/command-score.ts +1 -2
- package/src/base/dialog-lifecycle.js +1 -1
- package/src/base/dialog-lifecycle.ts +1 -1
- package/src/base/embla.d.ts +6 -7
- package/src/base/embla.d.ts.map +1 -1
- package/src/base/embla.js +89 -55
- package/src/base/embla.ts +89 -55
- package/src/base/hotkeys.d.ts +0 -5
- package/src/base/hotkeys.d.ts.map +1 -1
- package/src/base/hotkeys.ts +0 -5
- package/src/base/navigation.d.ts +12 -1
- package/src/base/navigation.d.ts.map +1 -1
- package/src/base/navigation.js +229 -86
- package/src/base/navigation.ts +224 -92
- package/src/base/reveal.js +14 -14
- package/src/base/reveal.ts +14 -14
- package/src/base/scroll-state.d.ts +21 -0
- package/src/base/scroll-state.d.ts.map +1 -0
- package/src/base/scroll-state.js +177 -0
- package/src/base/scroll-state.ts +188 -0
- package/src/base/signals.d.ts +1 -2
- package/src/base/signals.d.ts.map +1 -1
- package/src/base/signals.js +4 -6
- package/src/base/signals.ts +4 -6
- package/src/base/style-format.d.ts +33 -0
- package/src/base/style-format.d.ts.map +1 -0
- package/src/base/style-format.js +160 -0
- package/src/base/style-format.ts +180 -0
- package/src/base/typeahead.d.ts +19 -4
- package/src/base/typeahead.d.ts.map +1 -1
- package/src/base/typeahead.js +68 -21
- package/src/base/typeahead.ts +73 -23
- package/src/base/utilities.d.ts +188 -0
- package/src/base/utilities.d.ts.map +1 -0
- package/src/base/utilities.js +750 -0
- package/src/base/utilities.ts +865 -0
- package/src/base/utils.d.ts +3 -7
- package/src/base/utils.d.ts.map +1 -1
- package/src/base/utils.js +4 -8
- package/src/base/utils.ts +4 -8
- package/src/base/zazz-element.d.ts +14 -8
- package/src/base/zazz-element.d.ts.map +1 -1
- package/src/base/zazz-element.js +14 -8
- package/src/base/zazz-element.ts +15 -8
- package/src/globals.d.ts +1 -1
- package/src/head.d.ts +50 -4
- package/src/head.d.ts.map +1 -1
- package/src/head.js +119 -38
- package/src/head.ts +172 -41
- package/src/index.css +57 -14
- package/src/index.js +5 -0
- package/src/index.ts +6 -0
- package/src/manifest.d.ts +36 -5
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +150 -6
- package/src/manifest.ts +167 -9
- package/src/primitives/accordion/accordion.css +18 -17
- package/src/primitives/accordion/accordion.html +42 -9
- package/src/primitives/alert-dialog/alert-dialog.css +13 -13
- package/src/primitives/alert-dialog/alert-dialog.html +26 -12
- package/src/primitives/autocomplete/autocomplete-groups.html +64 -33
- package/src/primitives/autocomplete/autocomplete.css +45 -43
- package/src/primitives/autocomplete/autocomplete.d.ts +6 -5
- package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -1
- package/src/primitives/autocomplete/autocomplete.html +38 -26
- package/src/primitives/autocomplete/autocomplete.js +6 -5
- package/src/primitives/autocomplete/autocomplete.ts +6 -5
- package/src/primitives/avatar/avatar.html +110 -15
- package/src/primitives/badge/badge-icon.html +22 -8
- package/src/primitives/badge/badge.css +401 -128
- package/src/primitives/badge/badge.html +12 -6
- package/src/primitives/breadcrumbs/breadcrumbs.html +25 -5
- package/src/primitives/button/button-icon-only.html +17 -11
- package/src/primitives/button/button-icon.html +9 -3
- package/src/primitives/button/button.css +408 -164
- package/src/primitives/button/button.html +14 -7
- package/src/primitives/button-group/button-group-vertical.html +5 -5
- package/src/primitives/button-group/button-group.css +53 -25
- package/src/primitives/button-group/button-group.html +18 -12
- package/src/primitives/callout/callout.css +114 -0
- package/src/primitives/callout/callout.html +188 -0
- package/src/primitives/card/card-subgrid.html +249 -34
- package/src/primitives/card/card.css +125 -0
- package/src/primitives/card/card.html +141 -20
- package/src/primitives/carousel/carousel.css +30 -20
- package/src/primitives/carousel/carousel.d.ts +7 -10
- package/src/primitives/carousel/carousel.d.ts.map +1 -1
- package/src/primitives/carousel/carousel.html +420 -84
- package/src/primitives/carousel/carousel.js +1 -1
- package/src/primitives/carousel/carousel.ts +8 -11
- package/src/primitives/checkbox/checkbox-tasklist.html +6 -6
- package/src/primitives/checkbox/checkbox.css +98 -40
- package/src/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/src/primitives/checkbox/checkbox.html +13 -8
- package/src/primitives/checkbox/checkbox.js +7 -9
- package/src/primitives/checkbox/checkbox.ts +7 -15
- package/src/primitives/combobox/combobox-multiselect.html +53 -33
- package/src/primitives/combobox/combobox.css +147 -126
- package/src/primitives/combobox/combobox.d.ts +12 -11
- package/src/primitives/combobox/combobox.d.ts.map +1 -1
- package/src/primitives/combobox/combobox.html +48 -28
- package/src/primitives/combobox/combobox.js +46 -51
- package/src/primitives/combobox/combobox.ts +48 -55
- package/src/primitives/command/command-actions.d.ts +2 -3
- package/src/primitives/command/command-actions.d.ts.map +1 -1
- package/src/primitives/command/command-actions.html +48 -33
- package/src/primitives/command/command-actions.js +12 -10
- package/src/primitives/command/command-actions.ts +12 -13
- package/src/primitives/command/command-dialog.html +49 -25
- package/src/primitives/command/command.css +52 -42
- package/src/primitives/command/command.d.ts +10 -7
- package/src/primitives/command/command.d.ts.map +1 -1
- package/src/primitives/command/command.html +95 -46
- package/src/primitives/command/command.js +30 -13
- package/src/primitives/command/command.ts +30 -12
- package/src/primitives/debug/audit-core.d.ts +64 -0
- package/src/primitives/debug/audit-core.d.ts.map +1 -0
- package/src/primitives/debug/audit-core.js +356 -0
- package/src/primitives/debug/audit-core.ts +535 -0
- package/src/primitives/debug/debug.d.ts +50 -0
- package/src/primitives/debug/debug.d.ts.map +1 -0
- package/src/primitives/debug/debug.js +168 -0
- package/src/primitives/debug/debug.ts +211 -0
- package/src/primitives/dialog/dialog-with-form.html +67 -45
- package/src/primitives/dialog/dialog.css +87 -61
- package/src/primitives/dialog/dialog.html +25 -17
- package/src/primitives/fields/fields.css +108 -134
- package/src/primitives/fields/fields.html +39 -0
- package/src/primitives/input/input-icon-leading.html +3 -3
- package/src/primitives/input/input-icon-trailing.html +3 -3
- package/src/primitives/input/input.css +87 -49
- package/src/primitives/input/input.html +15 -15
- package/src/primitives/input-group/input-group-password-group.html +15 -15
- package/src/primitives/input-group/input-group.css +118 -75
- package/src/primitives/input-group/input-group.html +42 -30
- package/src/primitives/kbd/kbd-group.html +15 -2
- package/src/primitives/kbd/kbd.css +44 -31
- package/src/primitives/kbd/kbd.html +7 -1
- package/src/primitives/layout/layout.css +159 -0
- package/src/primitives/layout/layout.html +35 -0
- package/src/primitives/lightbox/lightbox.css +178 -105
- package/src/primitives/lightbox/lightbox.d.ts.map +1 -1
- package/src/primitives/lightbox/lightbox.html +138 -166
- package/src/primitives/lightbox/lightbox.js +10 -13
- package/src/primitives/lightbox/lightbox.ts +12 -13
- package/src/primitives/menu/menu-interest.html +60 -18
- package/src/primitives/menu/menu.css +22 -17
- package/src/primitives/menu/menu.d.ts +5 -5
- package/src/primitives/menu/menu.html +195 -40
- package/src/primitives/menu/menu.js +8 -8
- package/src/primitives/menu/menu.ts +8 -8
- package/src/primitives/menubar/menubar-help-search.html +78 -32
- package/src/primitives/menubar/menubar.html +166 -38
- package/src/primitives/meter/meter.css +41 -38
- package/src/primitives/meter/meter.html +44 -9
- package/src/primitives/mobile-menu/mobile-menu.css +47 -40
- package/src/primitives/mobile-menu/mobile-menu.html +1460 -179
- package/src/primitives/navigation-menu/navigation-menu-featured.html +155 -33
- package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +222 -47
- package/src/primitives/navigation-menu/navigation-menu-interest.html +130 -38
- package/src/primitives/navigation-menu/navigation-menu-megamenu.html +402 -72
- package/src/primitives/navigation-menu/navigation-menu-simple.html +90 -40
- package/src/primitives/navigation-menu/navigation-menu.css +104 -106
- package/src/primitives/navigation-menu/navigation-menu.html +554 -158
- package/src/primitives/otp/otp.css +43 -44
- package/src/primitives/otp/otp.d.ts +4 -5
- package/src/primitives/otp/otp.d.ts.map +1 -1
- package/src/primitives/otp/otp.html +7 -6
- package/src/primitives/otp/otp.js +13 -18
- package/src/primitives/otp/otp.ts +12 -19
- package/src/primitives/password-group/password-group.css +132 -107
- package/src/primitives/password-group/password-group.d.ts.map +1 -1
- package/src/primitives/password-group/password-group.html +23 -16
- package/src/primitives/password-group/password-group.js +11 -12
- package/src/primitives/password-group/password-group.ts +11 -12
- package/src/primitives/popover/popover.css +89 -95
- package/src/primitives/popover/popover.html +18 -0
- package/src/primitives/progress/progress-indeterminate.html +1 -1
- package/src/primitives/progress/progress.css +34 -35
- package/src/primitives/progress/progress.html +18 -4
- package/src/primitives/prose/prose.html +19 -12
- package/src/primitives/radio/radio.css +83 -46
- package/src/primitives/radio/radio.html +16 -11
- package/src/primitives/reveal/reveal.css +37 -46
- package/src/primitives/reveal/reveal.html +15 -0
- package/src/primitives/scroll-fade/scroll-fade.css +115 -0
- package/src/primitives/scroll-fade/scroll-fade.html +69 -0
- package/src/primitives/select/multiselect.d.ts +8 -10
- package/src/primitives/select/multiselect.d.ts.map +1 -1
- package/src/primitives/select/multiselect.js +23 -27
- package/src/primitives/select/multiselect.ts +23 -29
- package/src/primitives/select/select-align.html +79 -16
- package/src/primitives/select/select-multiple.html +8 -4
- package/src/primitives/select/select-sides.html +104 -21
- package/src/primitives/select/select.css +299 -191
- package/src/primitives/select/select.html +24 -5
- package/src/primitives/separator/separator.css +15 -18
- package/src/primitives/separator/separator.html +37 -10
- package/src/primitives/slider/slider.css +48 -38
- package/src/primitives/slider/slider.html +9 -1
- package/src/primitives/style-guard/style-guard.d.ts +19 -0
- package/src/primitives/style-guard/style-guard.d.ts.map +1 -0
- package/src/primitives/style-guard/style-guard.js +125 -0
- package/src/primitives/style-guard/style-guard.ts +153 -0
- package/src/primitives/switch/switch.css +42 -33
- package/src/primitives/switch/switch.html +11 -6
- package/src/primitives/table/table-alternating.html +1 -1
- package/src/primitives/table/table-grid.html +5 -5
- package/src/primitives/table/table-size-sm.html +1 -1
- package/src/primitives/table/table.css +64 -61
- package/src/primitives/table/table.html +7 -7
- package/src/primitives/tabs/tabs.css +167 -166
- package/src/primitives/tabs/tabs.d.ts +10 -11
- package/src/primitives/tabs/tabs.d.ts.map +1 -1
- package/src/primitives/tabs/tabs.html +192 -36
- package/src/primitives/tabs/tabs.js +14 -15
- package/src/primitives/tabs/tabs.ts +14 -15
- package/src/primitives/textarea/textarea.css +69 -44
- package/src/primitives/textarea/textarea.html +3 -3
- package/src/primitives/toaster/toaster.css +90 -92
- package/src/primitives/toaster/toaster.d.ts +0 -6
- package/src/primitives/toaster/toaster.d.ts.map +1 -1
- package/src/primitives/toaster/toaster.html +22 -18
- package/src/primitives/toaster/toaster.js +64 -72
- package/src/primitives/toaster/toaster.ts +71 -87
- package/src/primitives/toggle/toggle.css +368 -153
- package/src/primitives/toggle/toggle.html +27 -9
- package/src/primitives/toggle-group/toggle-group-multiple.html +3 -3
- package/src/primitives/toggle-group/toggle-group-vertical.html +4 -4
- package/src/primitives/toggle-group/toggle-group.css +71 -23
- package/src/primitives/toggle-group/toggle-group.html +3 -3
- package/src/primitives/toolbar/toolbar.html +35 -13
- package/src/primitives/tooltip/tooltip-disabled.html +3 -3
- package/src/primitives/tooltip/tooltip-sides.html +36 -14
- package/src/primitives/tooltip/tooltip-with-kbd.html +5 -5
- package/src/primitives/tooltip/tooltip.css +111 -80
- package/src/primitives/tooltip/tooltip.html +3 -3
- package/src/primitives/utilities/aspect-ratio.html +51 -7
- package/src/primitives/utilities/basis.html +64 -11
- package/src/primitives/utilities/col-span.html +65 -9
- package/src/primitives/utilities/compose.html +48 -10
- package/src/primitives/utilities/flex-align.html +89 -19
- package/src/primitives/utilities/flex-direction.html +111 -13
- package/src/primitives/utilities/flex-grow.html +41 -7
- package/src/primitives/utilities/gap.html +158 -19
- package/src/primitives/utilities/grid-cols.html +75 -7
- package/src/primitives/utilities/grid-responsive.html +111 -12
- package/src/primitives/utilities/margin-auto.html +38 -7
- package/src/primitives/utilities/object-fit.html +75 -13
- package/src/primitives/utilities/order.html +40 -4
- package/src/primitives/utilities/overflow.html +74 -20
- package/src/primitives/utilities/padding-compose.html +67 -10
- package/src/primitives/utilities/padding.html +84 -13
- package/src/primitives/utilities/pile.html +29 -0
- package/src/primitives/utilities/position.html +65 -8
- package/src/primitives/utilities/responsive-flex.html +54 -7
- package/src/primitives/utilities/responsive-grid.html +115 -12
- package/src/primitives/utilities/size.html +120 -16
- package/src/primitives/utilities/width.html +123 -16
- package/examples/about.html +0 -583
- package/examples/components.html +0 -1028
- package/examples/forms.html +0 -504
- package/examples/index.html +0 -261
- package/examples/layout.html +0 -313
- package/examples/products.html +0 -839
- package/examples/responsive.html +0 -332
- package/src/base/_layout.css +0 -571
- package/src/base/_utilities.css +0 -6758
- package/src/primitives/utilities/grid-pile.html +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<table
|
|
1
|
+
<table data-ui="table">
|
|
2
2
|
<caption>
|
|
3
3
|
Sprint tasks with managed selection.
|
|
4
4
|
</caption>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</th>
|
|
10
10
|
<th>Task</th>
|
|
11
11
|
<th>Assignee</th>
|
|
12
|
-
<th
|
|
12
|
+
<th style="--text-align: end">Due</th>
|
|
13
13
|
</tr>
|
|
14
14
|
</thead>
|
|
15
15
|
<tbody>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</td>
|
|
26
26
|
<td>Audit focus rings</td>
|
|
27
27
|
<td>Robin</td>
|
|
28
|
-
<td
|
|
28
|
+
<td style="--text-align: end">Aug 28</td>
|
|
29
29
|
</tr>
|
|
30
30
|
<tr>
|
|
31
31
|
<td>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</td>
|
|
39
39
|
<td>Document table variants</td>
|
|
40
40
|
<td>Sasha</td>
|
|
41
|
-
<td
|
|
41
|
+
<td style="--text-align: end">Aug 29</td>
|
|
42
42
|
</tr>
|
|
43
43
|
<tr>
|
|
44
44
|
<td>
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
</td>
|
|
53
53
|
<td>Ship checkbox groups</td>
|
|
54
54
|
<td>Quinn</td>
|
|
55
|
-
<td
|
|
55
|
+
<td style="--text-align: end">Sep 01</td>
|
|
56
56
|
</tr>
|
|
57
57
|
<tr>
|
|
58
58
|
<td>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
</td>
|
|
66
66
|
<td>Retire legacy tokens</td>
|
|
67
67
|
<td>Robin</td>
|
|
68
|
-
<td
|
|
68
|
+
<td style="--text-align: end">Sep 03</td>
|
|
69
69
|
</tr>
|
|
70
70
|
</tbody>
|
|
71
71
|
</table>
|
|
@@ -2,65 +2,82 @@
|
|
|
2
2
|
* checkbox.css — Checkbox (input[type="checkbox"]:not([role="switch"]))
|
|
3
3
|
*
|
|
4
4
|
* @layer variables, reset
|
|
5
|
-
* @requires
|
|
5
|
+
* @requires _layers.css, _variables.css, _properties.css (--_*-resolved, --_focus-ring), fields.css (--ui-field-* background/border)
|
|
6
6
|
* @uses appearance: none — redraws the native control from theme tokens
|
|
7
|
-
* @uses checked/indeterminate fill with --primary and layer a glyph (never
|
|
8
|
-
* @tokens --ui-checkbox-* (@layer variables;
|
|
7
|
+
* @uses checked/indeterminate fill with --primary and layer a glyph (never color alone)
|
|
8
|
+
* @tokens --ui-checkbox-* (@layer variables; named after the utilities they back;
|
|
9
|
+
* surface/border default to the --ui-field-* family)
|
|
9
10
|
* @see checkbox.ts: derives select-all group state (data-checkbox-controls)
|
|
10
11
|
* into the JS-only indeterminate property; styling keys off :indeterminate
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
14
|
@layer variables {
|
|
14
15
|
:root {
|
|
15
|
-
/*
|
|
16
|
-
|
|
17
|
-
--ui-checkbox-
|
|
18
|
-
--ui-checkbox-
|
|
16
|
+
/* surface + border follow --ui-field-* */
|
|
17
|
+
--ui-checkbox-size: calc(var(--spacing) * 4.5);
|
|
18
|
+
--ui-checkbox-bg: var(--ui-field-bg);
|
|
19
|
+
--ui-checkbox-foreground: var(--color-primary-foreground);
|
|
19
20
|
--ui-checkbox-border-width: var(--ui-field-border-width);
|
|
20
21
|
--ui-checkbox-border-style: var(--ui-field-border-style);
|
|
21
22
|
--ui-checkbox-border-color: var(--ui-field-border-color);
|
|
22
23
|
--ui-checkbox-border-color--hover: var(--ui-field-border-color--hover);
|
|
23
|
-
--ui-checkbox-
|
|
24
|
-
--ui-checkbox-border-color--checked: var(--primary);
|
|
25
|
-
--ui-checkbox-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
--ui-checkbox-
|
|
30
|
-
|
|
31
|
-
--ui-checkbox-indeterminate-size: var(--step-3);
|
|
24
|
+
--ui-checkbox-bg--checked: var(--color-primary);
|
|
25
|
+
--ui-checkbox-border-color--checked: var(--color-primary);
|
|
26
|
+
--ui-checkbox-rounded: var(--radius-xs);
|
|
27
|
+
--ui-checkbox-glyph-size: 1em;
|
|
28
|
+
--ui-checkbox-checkmark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' fill='none' stroke='currentColor' stroke-linecap='square' stroke-linejoin='square' stroke-width='3' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
|
|
29
|
+
center / contain no-repeat;
|
|
30
|
+
--ui-checkbox-indeterminate-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' fill='none' stroke='currentColor' stroke-linecap='square' stroke-linejoin='square' stroke-width='3' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E")
|
|
31
|
+
center / contain no-repeat;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
@layer reset {
|
|
36
36
|
:where(input[type="checkbox"]:not([role="switch"])) {
|
|
37
|
+
position: relative;
|
|
38
|
+
-webkit-appearance: none;
|
|
37
39
|
appearance: none;
|
|
38
40
|
flex-shrink: 0;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
/* dual-mode: --size is a scale number or a length */
|
|
42
|
+
--_size-len: var(--_size-resolved, var(--ui-checkbox-size));
|
|
43
|
+
--_size-num: var(--_size-resolved, var(--ui-checkbox-size));
|
|
44
|
+
inline-size: calc(var(--_size-len) + var(--_size-num) * var(--spacing));
|
|
45
|
+
block-size: calc(var(--_size-len) + var(--_size-num) * var(--spacing));
|
|
41
46
|
|
|
42
|
-
background-color: var(--ui-checkbox-
|
|
43
|
-
border: var(--
|
|
44
|
-
|
|
45
|
-
border-
|
|
47
|
+
background-color: var(--_bg-resolved, var(--ui-checkbox-bg));
|
|
48
|
+
border-width: var(--_border-width-resolved, var(--ui-checkbox-border-width));
|
|
49
|
+
border-style: var(--_border-style-resolved, var(--ui-checkbox-border-style));
|
|
50
|
+
border-color: var(--_border-color-resolved, var(--ui-checkbox-border-color));
|
|
51
|
+
border-radius: var(--_rounded-resolved, var(--ui-checkbox-rounded));
|
|
52
|
+
|
|
53
|
+
/* centres the ::before glyph */
|
|
54
|
+
display: inline-grid;
|
|
55
|
+
place-items: center;
|
|
56
|
+
background-clip: padding-box;
|
|
46
57
|
|
|
47
58
|
cursor: pointer;
|
|
48
59
|
|
|
49
|
-
/* ring
|
|
50
|
-
in forced-colors
|
|
60
|
+
/* The ring is published to --_focus-ring so a --shadow utility keeps
|
|
61
|
+
it; the transparent outline twin keeps focus visible in forced-colors */
|
|
51
62
|
--_ring-offset-width: 0px;
|
|
52
63
|
--_ring-width: 0px;
|
|
53
|
-
|
|
54
|
-
0 0 0 var(--_ring-offset-width) var(--ring-offset-color),
|
|
55
|
-
0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width))
|
|
64
|
+
--_focus-ring:
|
|
65
|
+
0 0 0 var(--_ring-offset-width) var(--ring-offset-shadow-color),
|
|
66
|
+
0 0 0 calc(var(--_ring-offset-width) + var(--_ring-width))
|
|
67
|
+
var(--_ring-fill, var(--ring-shadow-color));
|
|
68
|
+
box-shadow: var(--_focus-ring, 0 0 #0000), var(--_shadow-resolved, 0 0 #0000);
|
|
56
69
|
outline: var(--outline-width) var(--outline-style) transparent;
|
|
57
70
|
outline-offset: var(--outline-offset);
|
|
58
71
|
|
|
59
|
-
transition:
|
|
72
|
+
transition-property: border-color, background-color, color, opacity, box-shadow;
|
|
73
|
+
transition-duration: var(--default-transition-duration);
|
|
74
|
+
transition-timing-function: var(--default-transition-timing-function);
|
|
60
75
|
}
|
|
61
76
|
|
|
62
|
-
|
|
63
|
-
|
|
77
|
+
@media (hover: hover) {
|
|
78
|
+
:where(input[type="checkbox"]:not([role="switch"]):hover) {
|
|
79
|
+
border-color: var(--_border-color-resolved, var(--ui-checkbox-border-color--hover));
|
|
80
|
+
}
|
|
64
81
|
}
|
|
65
82
|
|
|
66
83
|
:where(input[type="checkbox"]:not([role="switch"]):focus-visible) {
|
|
@@ -73,19 +90,60 @@
|
|
|
73
90
|
input[type="checkbox"]:not([role="switch"]):checked,
|
|
74
91
|
input[type="checkbox"]:not([role="switch"]):indeterminate
|
|
75
92
|
) {
|
|
76
|
-
background-color: var(--ui-checkbox-
|
|
77
|
-
border-color: var(--ui-checkbox-border-color--checked);
|
|
78
|
-
|
|
79
|
-
|
|
93
|
+
background-color: var(--_bg-resolved, var(--ui-checkbox-bg--checked));
|
|
94
|
+
border-color: var(--_border-color-resolved, var(--ui-checkbox-border-color--checked));
|
|
95
|
+
color: var(--ui-checkbox-foreground);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* The glyph is a masked ::before painted in currentColor (pseudo-elements
|
|
99
|
+
are invalid inside :where(), so the :where() closes before ::before) */
|
|
100
|
+
:where(input[type="checkbox"]:not([role="switch"]):checked)::before,
|
|
101
|
+
:where(input[type="checkbox"]:not([role="switch"]):indeterminate)::before {
|
|
102
|
+
content: "";
|
|
103
|
+
position: absolute;
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
background-color: currentColor;
|
|
106
|
+
inline-size: var(--ui-checkbox-glyph-size);
|
|
107
|
+
block-size: var(--ui-checkbox-glyph-size);
|
|
108
|
+
max-inline-size: 100%;
|
|
109
|
+
max-block-size: 100%;
|
|
110
|
+
transition-property: background-color, opacity, transform;
|
|
111
|
+
transition-duration: calc(var(--default-transition-duration) * 0.75);
|
|
112
|
+
transition-delay: calc(var(--default-transition-duration) * 0.25);
|
|
113
|
+
transition-timing-function: var(--default-transition-timing-function);
|
|
114
|
+
transform: scale(0) translateY(100%);
|
|
115
|
+
opacity: 0;
|
|
116
|
+
will-change: transform;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:where(input[type="checkbox"]:not([role="switch"]):checked)::before {
|
|
120
|
+
mask: var(--ui-checkbox-checkmark-mask);
|
|
121
|
+
transform: scale(1);
|
|
122
|
+
opacity: 1;
|
|
123
|
+
|
|
124
|
+
@starting-style {
|
|
125
|
+
transform: scale(0) translateY(100%);
|
|
126
|
+
opacity: 0;
|
|
127
|
+
}
|
|
80
128
|
}
|
|
81
129
|
|
|
82
|
-
:where(input[type="checkbox"]:not([role="switch"]):
|
|
83
|
-
|
|
84
|
-
|
|
130
|
+
:where(input[type="checkbox"]:not([role="switch"]):indeterminate)::before {
|
|
131
|
+
mask: var(--ui-checkbox-indeterminate-mask);
|
|
132
|
+
transform: scale(1);
|
|
133
|
+
opacity: 1;
|
|
134
|
+
|
|
135
|
+
@starting-style {
|
|
136
|
+
transform: scaleX(0);
|
|
137
|
+
opacity: 0;
|
|
138
|
+
}
|
|
85
139
|
}
|
|
140
|
+
}
|
|
86
141
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
142
|
+
/* Disabled and committed-invalid states: an invalid control remaps the
|
|
143
|
+
--ui-field-* family on itself. */
|
|
144
|
+
@layer ui.components {
|
|
145
|
+
input[type="checkbox"]:disabled {
|
|
146
|
+
opacity: 0.5;
|
|
147
|
+
cursor: not-allowed;
|
|
90
148
|
}
|
|
91
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["checkbox.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["checkbox.ts"],"names":[],"mappings":"AAiCA,sEAAsE;AACtE,KAAK,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC;;;;;;;GAOG;AACH,iBAAS,cAAc,CAAC,OAAO,EAAE,SAAS,OAAO,EAAE,GAAG,QAAQ,CAI7D;AAwHD;;;;;;GAMG;AACH,iBAAS,cAAc,CAAC,KAAK,GAAE,UAAqB,GAAG,IAAI,CAkB1D;AAiBD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
<fieldset
|
|
1
|
+
<fieldset data-ui="field-group">
|
|
2
2
|
<legend>Preferences</legend>
|
|
3
|
-
<div
|
|
4
|
-
|
|
3
|
+
<div
|
|
4
|
+
style="
|
|
5
|
+
--display: flex-col;
|
|
6
|
+
--gap: 2;
|
|
7
|
+
"
|
|
8
|
+
>
|
|
9
|
+
<label data-ui="field" data-field-orientation="horizontal">
|
|
5
10
|
<input type="checkbox" data-checkbox-controls="preferences" />
|
|
6
|
-
<span data-slot="
|
|
11
|
+
<span data-field-slot="label">Select all</span>
|
|
7
12
|
</label>
|
|
8
|
-
<label
|
|
13
|
+
<label data-ui="field" data-field-orientation="horizontal">
|
|
9
14
|
<input type="checkbox" name="preferences" value="newsletter" />
|
|
10
|
-
<span data-slot="
|
|
15
|
+
<span data-field-slot="label">Subscribe to the newsletter</span>
|
|
11
16
|
</label>
|
|
12
|
-
<label
|
|
17
|
+
<label data-ui="field" data-field-orientation="horizontal">
|
|
13
18
|
<input type="checkbox" name="preferences" value="terms" checked />
|
|
14
|
-
<span data-slot="
|
|
19
|
+
<span data-field-slot="label">Accept terms & conditions</span>
|
|
15
20
|
</label>
|
|
16
21
|
</div>
|
|
17
22
|
</fieldset>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* indeterminate (a subset) — the mixed state is the JS-only `indeterminate`
|
|
10
10
|
* property (the platform has no content attribute for it), painted by
|
|
11
11
|
* `:indeterminate` in checkbox.css. Members inside a `<tr>` reflect their
|
|
12
|
-
* state as `data-state="selected"` on the row, lighting up the table
|
|
12
|
+
* state as `data-table-state="selected"` on the row, lighting up the table
|
|
13
13
|
* primitive's selected-row styling.
|
|
14
14
|
*
|
|
15
15
|
* State follows the kit's signals division of labor (`base/signals.ts`): the
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* to the DOM, batched to a microtask.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
|
-
* <table
|
|
22
|
+
* <table data-ui="table">
|
|
23
23
|
* <thead><tr><th><input type="checkbox" data-checkbox-controls="tasks" /></th>...</tr></thead>
|
|
24
24
|
* <tbody><tr><td><input type="checkbox" name="tasks" /></td>...</tr></tbody>
|
|
25
25
|
* </table>
|
|
@@ -41,7 +41,6 @@ function deriveTriState(checked) {
|
|
|
41
41
|
return "none";
|
|
42
42
|
return count === checked.length ? "all" : "some";
|
|
43
43
|
}
|
|
44
|
-
// --- Group discovery ---
|
|
45
44
|
/**
|
|
46
45
|
* @description Collects the member checkboxes a controller manages: every
|
|
47
46
|
* checkbox sharing the controlled `name` in the controller's form, or in the
|
|
@@ -94,7 +93,7 @@ function recount(controller) {
|
|
|
94
93
|
* @description Creates the reactive group for a controller: a member-state
|
|
95
94
|
* signal, the pure tri-state derivation, and one effect writing the
|
|
96
95
|
* controller's `checked`/`indeterminate` and each member row's
|
|
97
|
-
* `data-state="selected"` back to the DOM. The effect's first run is
|
|
96
|
+
* `data-table-state="selected"` back to the DOM. The effect's first run is
|
|
98
97
|
* immediate; re-runs batch to a microtask.
|
|
99
98
|
*
|
|
100
99
|
* @param controller - The select-all checkbox.
|
|
@@ -113,10 +112,10 @@ function createGroup(controller) {
|
|
|
113
112
|
if (!row)
|
|
114
113
|
return;
|
|
115
114
|
if (checked[index]) {
|
|
116
|
-
row.setAttribute("data-state", "selected");
|
|
115
|
+
row.setAttribute("data-table-state", "selected");
|
|
117
116
|
}
|
|
118
|
-
else if (row.getAttribute("data-state") === "selected") {
|
|
119
|
-
row.removeAttribute("data-state");
|
|
117
|
+
else if (row.getAttribute("data-table-state") === "selected") {
|
|
118
|
+
row.removeAttribute("data-table-state");
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
121
|
});
|
|
@@ -149,7 +148,6 @@ function onChange(event) {
|
|
|
149
148
|
createGroup(controller);
|
|
150
149
|
recount(controller);
|
|
151
150
|
}
|
|
152
|
-
// --- Init ---
|
|
153
151
|
/**
|
|
154
152
|
* @description Initializes select-all groups in a scope: prunes groups whose
|
|
155
153
|
* controllers left the DOM (disposing their effects), creates groups for new
|
|
@@ -184,7 +182,7 @@ if (typeof window !== "undefined" && typeof document !== "undefined") {
|
|
|
184
182
|
}
|
|
185
183
|
// Delegate at document level so groups work wherever checkboxes appear.
|
|
186
184
|
document.addEventListener("change", onChange);
|
|
187
|
-
// After
|
|
185
|
+
// After an in-page navigation swap, re-scan the new content.
|
|
188
186
|
registerRefresh(initCheckboxes);
|
|
189
187
|
}
|
|
190
188
|
export { deriveTriState, initCheckboxes };
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* indeterminate (a subset) — the mixed state is the JS-only `indeterminate`
|
|
11
11
|
* property (the platform has no content attribute for it), painted by
|
|
12
12
|
* `:indeterminate` in checkbox.css. Members inside a `<tr>` reflect their
|
|
13
|
-
* state as `data-state="selected"` on the row, lighting up the table
|
|
13
|
+
* state as `data-table-state="selected"` on the row, lighting up the table
|
|
14
14
|
* primitive's selected-row styling.
|
|
15
15
|
*
|
|
16
16
|
* State follows the kit's signals division of labor (`base/signals.ts`): the
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* to the DOM, batched to a microtask.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
|
-
* <table
|
|
23
|
+
* <table data-ui="table">
|
|
24
24
|
* <thead><tr><th><input type="checkbox" data-checkbox-controls="tasks" /></th>...</tr></thead>
|
|
25
25
|
* <tbody><tr><td><input type="checkbox" name="tasks" /></td>...</tr></tbody>
|
|
26
26
|
* </table>
|
|
@@ -31,8 +31,6 @@ import { registerRefresh } from "../../base/zazz-element.ts";
|
|
|
31
31
|
|
|
32
32
|
const CONTROLS_ATTR = "data-checkbox-controls";
|
|
33
33
|
|
|
34
|
-
// --- Pure derived logic ---
|
|
35
|
-
|
|
36
34
|
/** The tri-state a select-all controller derives from its members. */
|
|
37
35
|
type TriState = "all" | "some" | "none";
|
|
38
36
|
|
|
@@ -50,8 +48,6 @@ function deriveTriState(checked: readonly boolean[]): TriState {
|
|
|
50
48
|
return count === checked.length ? "all" : "some";
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
// --- Group discovery ---
|
|
54
|
-
|
|
55
51
|
/**
|
|
56
52
|
* @description Collects the member checkboxes a controller manages: every
|
|
57
53
|
* checkbox sharing the controlled `name` in the controller's form, or in the
|
|
@@ -90,8 +86,6 @@ function controllerOf(member: HTMLInputElement): HTMLInputElement | null {
|
|
|
90
86
|
return null;
|
|
91
87
|
}
|
|
92
88
|
|
|
93
|
-
// --- Reactive groups ---
|
|
94
|
-
|
|
95
89
|
/** A live select-all group: the member-state signal and its effect disposer. */
|
|
96
90
|
interface Group {
|
|
97
91
|
/** Each member's checked state, recounted from the DOM (input adapter writes here). */
|
|
@@ -118,7 +112,7 @@ function recount(controller: HTMLInputElement): void {
|
|
|
118
112
|
* @description Creates the reactive group for a controller: a member-state
|
|
119
113
|
* signal, the pure tri-state derivation, and one effect writing the
|
|
120
114
|
* controller's `checked`/`indeterminate` and each member row's
|
|
121
|
-
* `data-state="selected"` back to the DOM. The effect's first run is
|
|
115
|
+
* `data-table-state="selected"` back to the DOM. The effect's first run is
|
|
122
116
|
* immediate; re-runs batch to a microtask.
|
|
123
117
|
*
|
|
124
118
|
* @param controller - The select-all checkbox.
|
|
@@ -137,9 +131,9 @@ function createGroup(controller: HTMLInputElement): void {
|
|
|
137
131
|
const row = member.closest("tr");
|
|
138
132
|
if (!row) return;
|
|
139
133
|
if (checked[index]) {
|
|
140
|
-
row.setAttribute("data-state", "selected");
|
|
141
|
-
} else if (row.getAttribute("data-state") === "selected") {
|
|
142
|
-
row.removeAttribute("data-state");
|
|
134
|
+
row.setAttribute("data-table-state", "selected");
|
|
135
|
+
} else if (row.getAttribute("data-table-state") === "selected") {
|
|
136
|
+
row.removeAttribute("data-table-state");
|
|
143
137
|
}
|
|
144
138
|
});
|
|
145
139
|
});
|
|
@@ -172,8 +166,6 @@ function onChange(event: Event): void {
|
|
|
172
166
|
recount(controller);
|
|
173
167
|
}
|
|
174
168
|
|
|
175
|
-
// --- Init ---
|
|
176
|
-
|
|
177
169
|
/**
|
|
178
170
|
* @description Initializes select-all groups in a scope: prunes groups whose
|
|
179
171
|
* controllers left the DOM (disposing their effects), creates groups for new
|
|
@@ -212,7 +204,7 @@ if (typeof window !== "undefined" && typeof document !== "undefined") {
|
|
|
212
204
|
// Delegate at document level so groups work wherever checkboxes appear.
|
|
213
205
|
document.addEventListener("change", onChange);
|
|
214
206
|
|
|
215
|
-
// After
|
|
207
|
+
// After an in-page navigation swap, re-scan the new content.
|
|
216
208
|
registerRefresh(initCheckboxes);
|
|
217
209
|
}
|
|
218
210
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<label data-slot="
|
|
3
|
-
<ui-combobox data-variant="multiselect" data-label-remove="Remove {label}">
|
|
1
|
+
<div data-ui="field" style="--max-w: 96">
|
|
2
|
+
<label data-field-slot="label" for="cb-tags">Tags</label>
|
|
3
|
+
<ui-combobox data-combobox-variant="multiselect" data-combobox-label-remove="Remove {label}">
|
|
4
4
|
<!-- Pre-selected rows carry aria-selected="true"; the authored input holds
|
|
5
5
|
the first value and combobox.js stamps a same-name sibling per extra -->
|
|
6
|
-
<input type="hidden" name="tags" data-slot="
|
|
7
|
-
<div data-slot="
|
|
6
|
+
<input type="hidden" name="tags" data-combobox-slot="value" value="design" />
|
|
7
|
+
<div data-combobox-slot="control">
|
|
8
8
|
<!-- Optional: the tag blueprint, cloned per selection. Omit it and the
|
|
9
9
|
kit's default applies; keep it to restyle tags in HTML -->
|
|
10
|
-
<template data-slot="
|
|
11
|
-
<span
|
|
12
|
-
<span data-slot="
|
|
13
|
-
<button type="button" tabindex="-1" data-slot="
|
|
10
|
+
<template data-combobox-slot="tag-template">
|
|
11
|
+
<span data-ui="badge" data-combobox-slot="tag">
|
|
12
|
+
<span data-combobox-slot="tag-label"></span>
|
|
13
|
+
<button type="button" tabindex="-1" data-combobox-slot="tag-remove"></button>
|
|
14
14
|
</span>
|
|
15
15
|
</template>
|
|
16
16
|
|
|
@@ -27,65 +27,85 @@
|
|
|
27
27
|
/>
|
|
28
28
|
<button
|
|
29
29
|
type="button"
|
|
30
|
-
data-slot="
|
|
30
|
+
data-combobox-slot="trigger"
|
|
31
31
|
tabindex="-1"
|
|
32
32
|
aria-label="Show options"
|
|
33
33
|
></button>
|
|
34
34
|
</div>
|
|
35
|
-
<div
|
|
36
|
-
|
|
35
|
+
<div
|
|
36
|
+
data-combobox-slot="panel"
|
|
37
|
+
data-popover-side="bottom"
|
|
38
|
+
data-popover-align="start"
|
|
39
|
+
popover="manual"
|
|
40
|
+
>
|
|
41
|
+
<ul role="listbox" aria-multiselectable="true" data-combobox-slot="list" aria-label="Tags">
|
|
37
42
|
<li
|
|
38
43
|
role="option"
|
|
39
44
|
aria-selected="true"
|
|
40
|
-
data-slot="
|
|
41
|
-
|
|
42
|
-
data-variant="ghost"
|
|
43
|
-
data-value="design"
|
|
45
|
+
data-combobox-slot="item"
|
|
46
|
+
data-ui="button"
|
|
47
|
+
data-button-variant="ghost"
|
|
48
|
+
data-combobox-value="design"
|
|
49
|
+
style="--justify: start"
|
|
44
50
|
>
|
|
45
51
|
Design
|
|
46
52
|
</li>
|
|
47
53
|
<li
|
|
48
54
|
role="option"
|
|
49
55
|
aria-selected="true"
|
|
50
|
-
data-slot="
|
|
51
|
-
|
|
52
|
-
data-variant="ghost"
|
|
53
|
-
data-value="engineering"
|
|
56
|
+
data-combobox-slot="item"
|
|
57
|
+
data-ui="button"
|
|
58
|
+
data-button-variant="ghost"
|
|
59
|
+
data-combobox-value="engineering"
|
|
60
|
+
style="--justify: start"
|
|
54
61
|
>
|
|
55
62
|
Engineering
|
|
56
63
|
</li>
|
|
57
64
|
<li
|
|
58
65
|
role="option"
|
|
59
66
|
aria-selected="false"
|
|
60
|
-
data-slot="
|
|
61
|
-
|
|
62
|
-
data-variant="ghost"
|
|
63
|
-
data-value="marketing"
|
|
67
|
+
data-combobox-slot="item"
|
|
68
|
+
data-ui="button"
|
|
69
|
+
data-button-variant="ghost"
|
|
70
|
+
data-combobox-value="marketing"
|
|
71
|
+
style="--justify: start"
|
|
64
72
|
>
|
|
65
73
|
Marketing
|
|
66
74
|
</li>
|
|
67
75
|
<li
|
|
68
76
|
role="option"
|
|
69
77
|
aria-selected="false"
|
|
70
|
-
data-slot="
|
|
71
|
-
|
|
72
|
-
data-variant="ghost"
|
|
73
|
-
data-value="research"
|
|
78
|
+
data-combobox-slot="item"
|
|
79
|
+
data-ui="button"
|
|
80
|
+
data-button-variant="ghost"
|
|
81
|
+
data-combobox-value="research"
|
|
82
|
+
style="--justify: start"
|
|
74
83
|
>
|
|
75
84
|
Research
|
|
76
85
|
</li>
|
|
77
86
|
<li
|
|
78
87
|
role="option"
|
|
79
88
|
aria-selected="false"
|
|
80
|
-
data-slot="
|
|
81
|
-
|
|
82
|
-
data-variant="ghost"
|
|
83
|
-
data-value="support"
|
|
89
|
+
data-combobox-slot="item"
|
|
90
|
+
data-ui="button"
|
|
91
|
+
data-button-variant="ghost"
|
|
92
|
+
data-combobox-value="support"
|
|
93
|
+
style="--justify: start"
|
|
84
94
|
>
|
|
85
95
|
Support
|
|
86
96
|
</li>
|
|
87
97
|
</ul>
|
|
88
|
-
<p
|
|
98
|
+
<p
|
|
99
|
+
data-combobox-slot="empty"
|
|
100
|
+
style="
|
|
101
|
+
--font-size: var(--font-size-sm);
|
|
102
|
+
--leading: var(--leading-sm);
|
|
103
|
+
--tracking: var(--tracking-sm);
|
|
104
|
+
--text: var(--color-muted-foreground);
|
|
105
|
+
"
|
|
106
|
+
>
|
|
107
|
+
No matches.
|
|
108
|
+
</p>
|
|
89
109
|
</div>
|
|
90
110
|
</ui-combobox>
|
|
91
111
|
</div>
|