@adia-ai/web-components 0.6.33 → 0.6.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/color/index.js +1 -1
- package/components/accordion/accordion-item.yaml +2 -2
- package/components/accordion/accordion.css +2 -2
- package/components/accordion/accordion.js +1 -1
- package/components/action-list/action-item.yaml +2 -2
- package/components/action-list/action-list.css +2 -2
- package/components/action-list/action-list.js +1 -1
- package/components/agent-artifact/{class.js → agent-artifact.class.js} +1 -1
- package/components/agent-artifact/agent-artifact.css +31 -31
- package/components/agent-artifact/agent-artifact.js +1 -1
- package/components/agent-feedback-bar/agent-feedback-bar.css +10 -10
- package/components/agent-feedback-bar/agent-feedback-bar.js +1 -1
- package/components/agent-questions/agent-questions.css +57 -57
- package/components/agent-questions/agent-questions.js +1 -1
- package/components/agent-reasoning/agent-reasoning.css +62 -62
- package/components/agent-reasoning/agent-reasoning.js +1 -1
- package/components/agent-suggestions/agent-suggestions.css +4 -4
- package/components/agent-suggestions/agent-suggestions.js +1 -1
- package/components/agent-trace/agent-trace.css +53 -53
- package/components/alert/alert.a2ui.json +64 -1
- package/components/alert/{class.js → alert.class.js} +189 -2
- package/components/alert/alert.css +119 -41
- package/components/alert/alert.d.ts +14 -0
- package/components/alert/alert.js +1 -1
- package/components/alert/alert.test.js +184 -0
- package/components/alert/alert.yaml +114 -1
- package/components/avatar/avatar-group.yaml +2 -2
- package/components/avatar/avatar.css +27 -27
- package/components/avatar/avatar.js +1 -1
- package/components/badge/badge.css +27 -27
- package/components/badge/badge.js +1 -1
- package/components/block/block.css +16 -16
- package/components/block/block.js +1 -1
- package/components/breadcrumb/breadcrumb.css +23 -23
- package/components/breadcrumb/breadcrumb.js +1 -1
- package/components/button/button.css +101 -91
- package/components/button/button.js +1 -1
- package/components/calendar-grid/calendar-grid.a2ui.json +146 -0
- package/components/calendar-grid/calendar-grid.class.js +326 -0
- package/components/calendar-grid/calendar-grid.css +246 -0
- package/components/calendar-grid/calendar-grid.d.ts +41 -0
- package/components/calendar-grid/calendar-grid.js +17 -0
- package/components/calendar-grid/calendar-grid.yaml +136 -0
- package/components/calendar-picker/calendar-picker.css +139 -139
- package/components/calendar-picker/calendar-picker.js +1 -1
- package/components/canvas/canvas.css +12 -12
- package/components/card/card.css +83 -83
- package/components/card/card.js +1 -1
- package/components/chart/chart.css +224 -224
- package/components/chart/chart.js +1 -1
- package/components/chart-legend/chart-legend.css +26 -26
- package/components/chart-legend/chart-legend.js +1 -1
- package/components/chat-thread/chat-input.a2ui.json +1 -1
- package/components/chat-thread/chat-input.js +6 -1
- package/components/chat-thread/chat-input.yaml +4 -1
- package/components/chat-thread/chat-thread.js +1 -1
- package/components/check/check.css +40 -40
- package/components/check/check.js +1 -1
- package/components/code/code.css +125 -125
- package/components/code/code.js +1 -1
- package/components/col/col.css +15 -15
- package/components/col/col.js +1 -1
- package/components/color-input/color-input.js +1 -1
- package/components/color-picker/color-picker.css +55 -55
- package/components/color-picker/color-picker.js +1 -1
- package/components/combobox/combobox.a2ui.json +363 -0
- package/components/combobox/combobox.class.js +861 -0
- package/components/combobox/combobox.css +244 -0
- package/components/combobox/combobox.d.ts +113 -0
- package/components/combobox/combobox.examples.md +59 -0
- package/components/combobox/combobox.js +17 -0
- package/components/combobox/combobox.test.js +181 -0
- package/components/combobox/combobox.yaml +369 -0
- package/components/command/command.css +90 -90
- package/components/command/command.js +1 -1
- package/components/date-range-picker/date-range-picker.a2ui.json +300 -0
- package/components/date-range-picker/date-range-picker.class.js +791 -0
- package/components/date-range-picker/date-range-picker.css +224 -0
- package/components/date-range-picker/date-range-picker.d.ts +82 -0
- package/components/date-range-picker/date-range-picker.examples.md +37 -0
- package/components/date-range-picker/date-range-picker.js +17 -0
- package/components/date-range-picker/date-range-picker.test.js +387 -0
- package/components/date-range-picker/date-range-picker.yaml +285 -0
- package/components/datetime-picker/datetime-picker.a2ui.json +334 -0
- package/components/datetime-picker/datetime-picker.class.js +706 -0
- package/components/datetime-picker/datetime-picker.css +150 -0
- package/components/datetime-picker/datetime-picker.d.ts +86 -0
- package/components/datetime-picker/datetime-picker.examples.md +46 -0
- package/components/datetime-picker/datetime-picker.js +17 -0
- package/components/datetime-picker/datetime-picker.test.js +454 -0
- package/components/datetime-picker/datetime-picker.yaml +332 -0
- package/components/demo-toggle/demo-toggle.css +27 -27
- package/components/demo-toggle/demo-toggle.js +1 -1
- package/components/description-list/description-list.css +18 -18
- package/components/description-list/description-list.js +1 -1
- package/components/divider/divider.css +24 -24
- package/components/divider/divider.js +1 -1
- package/components/drawer/drawer.js +1 -1
- package/components/embed/embed.css +6 -6
- package/components/embed/embed.js +1 -1
- package/components/empty-state/empty-state.css +27 -27
- package/components/empty-state/empty-state.js +1 -1
- package/components/feed/feed.css +12 -12
- package/components/feed/feed.js +1 -1
- package/components/field/field.css +28 -28
- package/components/field/field.js +1 -1
- package/components/field/field.test.js +1 -1
- package/components/fields/fields.css +5 -5
- package/components/fields/fields.js +1 -1
- package/components/grid/grid.css +5 -5
- package/components/grid/grid.js +1 -1
- package/components/heatmap/heatmap.css +63 -63
- package/components/heatmap/heatmap.js +1 -1
- package/components/icon/icon.css +12 -12
- package/components/icon/icon.js +1 -1
- package/components/image/image.css +14 -14
- package/components/image/image.js +1 -1
- package/components/index.js +11 -0
- package/components/inline-message/inline-message.a2ui.json +143 -0
- package/components/inline-message/inline-message.class.js +169 -0
- package/components/inline-message/inline-message.css +75 -0
- package/components/inline-message/inline-message.d.ts +31 -0
- package/components/inline-message/inline-message.examples.md +19 -0
- package/components/inline-message/inline-message.js +17 -0
- package/components/inline-message/inline-message.test.js +203 -0
- package/components/inline-message/inline-message.yaml +205 -0
- package/components/input/input.css +67 -67
- package/components/input/input.js +1 -1
- package/components/input/input.yaml +5 -4
- package/components/inspector/inspector.css +6 -6
- package/components/inspector/inspector.js +1 -1
- package/components/integration-card/integration-card.a2ui.json +268 -0
- package/components/integration-card/integration-card.class.js +410 -0
- package/components/integration-card/integration-card.css +169 -0
- package/components/integration-card/integration-card.d.ts +63 -0
- package/components/integration-card/integration-card.examples.md +41 -0
- package/components/integration-card/integration-card.js +17 -0
- package/components/integration-card/integration-card.test.js +306 -0
- package/components/integration-card/integration-card.yaml +280 -0
- package/components/kbd/kbd.css +32 -32
- package/components/kbd/kbd.js +1 -1
- package/components/link/link.css +12 -12
- package/components/link/link.js +1 -1
- package/components/list/list-item.yaml +2 -2
- package/components/list/list.css +8 -8
- package/components/list/list.js +1 -1
- package/components/list-window/list-window.a2ui.json +277 -0
- package/components/list-window/list-window.class.js +688 -0
- package/components/list-window/list-window.css +124 -0
- package/components/list-window/list-window.d.ts +84 -0
- package/components/list-window/list-window.examples.md +73 -0
- package/components/list-window/list-window.js +17 -0
- package/components/list-window/list-window.test.js +303 -0
- package/components/list-window/list-window.yaml +270 -0
- package/components/loading-overlay/loading-overlay.a2ui.json +176 -0
- package/components/loading-overlay/loading-overlay.class.js +203 -0
- package/components/loading-overlay/loading-overlay.css +81 -0
- package/components/loading-overlay/loading-overlay.d.ts +24 -0
- package/components/loading-overlay/loading-overlay.examples.md +50 -0
- package/components/loading-overlay/loading-overlay.js +17 -0
- package/components/loading-overlay/loading-overlay.test.js +257 -0
- package/components/loading-overlay/loading-overlay.yaml +260 -0
- package/components/menu/menu-divider.yaml +1 -1
- package/components/menu/menu-item.yaml +1 -1
- package/components/menu/menu.a2ui.json +3 -0
- package/components/menu/menu.css +8 -8
- package/components/menu/menu.js +1 -1
- package/components/menu/menu.yaml +7 -0
- package/components/modal/{class.js → modal.class.js} +12 -1
- package/components/modal/modal.css +54 -44
- package/components/modal/modal.js +1 -1
- package/components/nav/nav.css +40 -40
- package/components/nav/nav.js +1 -1
- package/components/nav-group/nav-group.css +52 -52
- package/components/nav-group/nav-group.js +1 -1
- package/components/nav-item/nav-item.css +44 -44
- package/components/nav-item/nav-item.js +1 -1
- package/components/noodles/noodles.css +31 -31
- package/components/noodles/noodles.js +1 -1
- package/components/option-card/option-card.css +69 -69
- package/components/option-card/option-card.js +1 -1
- package/components/otp-input/otp-input.css +30 -30
- package/components/otp-input/otp-input.js +1 -1
- package/components/page/page.css +18 -18
- package/components/page/page.js +1 -1
- package/components/pagination/pagination.css +61 -61
- package/components/pagination/pagination.js +1 -1
- package/components/pane/pane.css +57 -57
- package/components/pane/pane.js +1 -1
- package/components/pipeline-status/pipeline-status.css +65 -65
- package/components/pipeline-status/pipeline-status.js +1 -1
- package/components/popover/popover.a2ui.json +8 -1
- package/components/popover/popover.css +17 -17
- package/components/popover/popover.js +1 -1
- package/components/popover/popover.yaml +14 -1
- package/components/progress/progress.css +23 -23
- package/components/progress/progress.js +1 -1
- package/components/progress-row/progress-row.css +17 -17
- package/components/progress-row/progress-row.js +1 -1
- package/components/radio/radio.css +39 -39
- package/components/radio/radio.js +1 -1
- package/components/range/range.css +55 -55
- package/components/range/range.js +1 -1
- package/components/rating/rating.css +28 -28
- package/components/rating/rating.js +1 -1
- package/components/richtext/richtext.css +133 -133
- package/components/richtext/richtext.js +1 -1
- package/components/row/row.css +19 -19
- package/components/row/row.js +1 -1
- package/components/search/search.css +5 -5
- package/components/search/search.js +1 -1
- package/components/segment/segment.css +24 -24
- package/components/segment/segment.js +1 -1
- package/components/segmented/segmented.css +25 -25
- package/components/segmented/segmented.js +1 -1
- package/components/select/select.a2ui.json +58 -4
- package/components/select/{class.js → select.class.js} +415 -6
- package/components/select/select.css +242 -84
- package/components/select/select.d.ts +31 -1
- package/components/select/select.js +1 -1
- package/components/select/select.test.js +202 -0
- package/components/select/select.yaml +126 -5
- package/components/skeleton/skeleton.css +14 -14
- package/components/skeleton/skeleton.js +1 -1
- package/components/slider/slider.css +46 -46
- package/components/slider/slider.js +1 -1
- package/components/spinner/spinner.a2ui.json +198 -0
- package/components/spinner/spinner.class.js +99 -0
- package/components/spinner/spinner.css +221 -0
- package/components/spinner/spinner.d.ts +26 -0
- package/components/spinner/spinner.examples.md +26 -0
- package/components/spinner/spinner.js +17 -0
- package/components/spinner/spinner.test.js +272 -0
- package/components/spinner/spinner.yaml +238 -0
- package/components/stack/stack.css +11 -11
- package/components/stack/stack.js +1 -1
- package/components/stat/stat.css +25 -25
- package/components/step-progress/step-progress.css +20 -20
- package/components/step-progress/step-progress.js +1 -1
- package/components/stepper/stepper-item.yaml +1 -1
- package/components/stepper/stepper.css +29 -29
- package/components/stepper/stepper.js +1 -1
- package/components/stream/stream.css +12 -12
- package/components/stream/stream.js +1 -1
- package/components/swatch/swatch.css +68 -68
- package/components/swatch/swatch.js +1 -1
- package/components/swiper/swiper.css +57 -57
- package/components/swiper/swiper.js +1 -1
- package/components/switch/switch.css +52 -52
- package/components/switch/switch.js +1 -1
- package/components/table/table.css +163 -163
- package/components/table/table.js +1 -1
- package/components/table-toolbar/{class.js → table-toolbar.class.js} +1 -1
- package/components/table-toolbar/table-toolbar.css +32 -32
- package/components/table-toolbar/table-toolbar.js +1 -1
- package/components/tabs/tab.yaml +2 -2
- package/components/tabs/tabs.css +51 -51
- package/components/tabs/tabs.js +1 -1
- package/components/tag/tag.css +48 -48
- package/components/tag/tag.js +1 -1
- package/components/tags-input/tags-input.a2ui.json +337 -0
- package/components/tags-input/tags-input.class.js +776 -0
- package/components/tags-input/tags-input.css +201 -0
- package/components/tags-input/tags-input.d.ts +120 -0
- package/components/tags-input/tags-input.examples.md +92 -0
- package/components/tags-input/tags-input.js +17 -0
- package/components/tags-input/tags-input.test.js +368 -0
- package/components/tags-input/tags-input.yaml +367 -0
- package/components/text/text.css +44 -44
- package/components/text/text.js +1 -1
- package/components/textarea/textarea.a2ui.json +1 -1
- package/components/textarea/textarea.css +46 -46
- package/components/textarea/textarea.js +1 -1
- package/components/textarea/textarea.yaml +11 -8
- package/components/time-picker/time-picker.a2ui.json +267 -0
- package/components/time-picker/time-picker.class.js +693 -0
- package/components/time-picker/time-picker.css +122 -0
- package/components/time-picker/time-picker.d.ts +75 -0
- package/components/time-picker/time-picker.examples.md +35 -0
- package/components/time-picker/time-picker.js +17 -0
- package/components/time-picker/time-picker.test.js +287 -0
- package/components/time-picker/time-picker.yaml +256 -0
- package/components/timeline/timeline-item.yaml +2 -2
- package/components/timeline/{class.js → timeline.class.js} +1 -1
- package/components/timeline/timeline.css +50 -50
- package/components/timeline/timeline.js +1 -1
- package/components/toast/toast.css +58 -58
- package/components/toast/toast.js +1 -1
- package/components/toggle-group/toggle-group.css +6 -6
- package/components/toggle-group/toggle-group.js +1 -1
- package/components/toggle-group/toggle-option.yaml +1 -1
- package/components/toggle-scheme/toggle-scheme.css +2 -2
- package/components/toggle-scheme/toggle-scheme.js +1 -1
- package/components/toolbar/toolbar-group.yaml +1 -1
- package/components/toolbar/toolbar.css +17 -17
- package/components/toolbar/toolbar.js +1 -1
- package/components/tooltip/tooltip.css +2 -2
- package/components/tooltip/tooltip.js +1 -1
- package/components/tree/tree-item.yaml +1 -1
- package/components/tree/tree.css +37 -37
- package/components/tree/tree.js +1 -1
- package/components/upload/upload.css +49 -49
- package/components/upload/upload.js +1 -1
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +146 -87
- package/package.json +3 -3
- package/styles/components.css +11 -0
- /package/components/accordion/{class.js → accordion.class.js} +0 -0
- /package/components/action-list/{class.js → action-list.class.js} +0 -0
- /package/components/agent-feedback-bar/{class.js → agent-feedback-bar.class.js} +0 -0
- /package/components/agent-questions/{class.js → agent-questions.class.js} +0 -0
- /package/components/agent-reasoning/{class.js → agent-reasoning.class.js} +0 -0
- /package/components/agent-suggestions/{class.js → agent-suggestions.class.js} +0 -0
- /package/components/avatar/{class.js → avatar.class.js} +0 -0
- /package/components/badge/{class.js → badge.class.js} +0 -0
- /package/components/block/{class.js → block.class.js} +0 -0
- /package/components/breadcrumb/{class.js → breadcrumb.class.js} +0 -0
- /package/components/button/{class.js → button.class.js} +0 -0
- /package/components/calendar-picker/{class.js → calendar-picker.class.js} +0 -0
- /package/components/card/{class.js → card.class.js} +0 -0
- /package/components/chart/{class.js → chart.class.js} +0 -0
- /package/components/chart-legend/{class.js → chart-legend.class.js} +0 -0
- /package/components/chat-thread/{class.js → chat-thread.class.js} +0 -0
- /package/components/check/{class.js → check.class.js} +0 -0
- /package/components/code/{class.js → code.class.js} +0 -0
- /package/components/col/{class.js → col.class.js} +0 -0
- /package/components/color-input/{class.js → color-input.class.js} +0 -0
- /package/components/color-picker/{class.js → color-picker.class.js} +0 -0
- /package/components/command/{class.js → command.class.js} +0 -0
- /package/components/demo-toggle/{class.js → demo-toggle.class.js} +0 -0
- /package/components/description-list/{class.js → description-list.class.js} +0 -0
- /package/components/divider/{class.js → divider.class.js} +0 -0
- /package/components/drawer/{class.js → drawer.class.js} +0 -0
- /package/components/embed/{class.js → embed.class.js} +0 -0
- /package/components/empty-state/{class.js → empty-state.class.js} +0 -0
- /package/components/feed/{class.js → feed.class.js} +0 -0
- /package/components/field/{class.js → field.class.js} +0 -0
- /package/components/fields/{class.js → fields.class.js} +0 -0
- /package/components/grid/{class.js → grid.class.js} +0 -0
- /package/components/heatmap/{class.js → heatmap.class.js} +0 -0
- /package/components/icon/{class.js → icon.class.js} +0 -0
- /package/components/image/{class.js → image.class.js} +0 -0
- /package/components/input/{class.js → input.class.js} +0 -0
- /package/components/inspector/{class.js → inspector.class.js} +0 -0
- /package/components/kbd/{class.js → kbd.class.js} +0 -0
- /package/components/link/{class.js → link.class.js} +0 -0
- /package/components/list/{class.js → list.class.js} +0 -0
- /package/components/menu/{class.js → menu.class.js} +0 -0
- /package/components/nav/{class.js → nav.class.js} +0 -0
- /package/components/nav-group/{class.js → nav-group.class.js} +0 -0
- /package/components/nav-item/{class.js → nav-item.class.js} +0 -0
- /package/components/noodles/{class.js → noodles.class.js} +0 -0
- /package/components/option-card/{class.js → option-card.class.js} +0 -0
- /package/components/otp-input/{class.js → otp-input.class.js} +0 -0
- /package/components/page/{class.js → page.class.js} +0 -0
- /package/components/pagination/{class.js → pagination.class.js} +0 -0
- /package/components/pane/{class.js → pane.class.js} +0 -0
- /package/components/pipeline-status/{class.js → pipeline-status.class.js} +0 -0
- /package/components/popover/{class.js → popover.class.js} +0 -0
- /package/components/progress/{class.js → progress.class.js} +0 -0
- /package/components/progress-row/{class.js → progress-row.class.js} +0 -0
- /package/components/radio/{class.js → radio.class.js} +0 -0
- /package/components/range/{class.js → range.class.js} +0 -0
- /package/components/rating/{class.js → rating.class.js} +0 -0
- /package/components/richtext/{class.js → richtext.class.js} +0 -0
- /package/components/row/{class.js → row.class.js} +0 -0
- /package/components/search/{class.js → search.class.js} +0 -0
- /package/components/segment/{class.js → segment.class.js} +0 -0
- /package/components/segmented/{class.js → segmented.class.js} +0 -0
- /package/components/skeleton/{class.js → skeleton.class.js} +0 -0
- /package/components/slider/{class.js → slider.class.js} +0 -0
- /package/components/stack/{class.js → stack.class.js} +0 -0
- /package/components/step-progress/{class.js → step-progress.class.js} +0 -0
- /package/components/stepper/{class.js → stepper.class.js} +0 -0
- /package/components/stream/{class.js → stream.class.js} +0 -0
- /package/components/swatch/{class.js → swatch.class.js} +0 -0
- /package/components/swiper/{class.js → swiper.class.js} +0 -0
- /package/components/switch/{class.js → switch.class.js} +0 -0
- /package/components/table/{class.js → table.class.js} +0 -0
- /package/components/tabs/{class.js → tabs.class.js} +0 -0
- /package/components/tag/{class.js → tag.class.js} +0 -0
- /package/components/text/{class.js → text.class.js} +0 -0
- /package/components/textarea/{class.js → textarea.class.js} +0 -0
- /package/components/toast/{class.js → toast.class.js} +0 -0
- /package/components/toggle-group/{class.js → toggle-group.class.js} +0 -0
- /package/components/toggle-scheme/{class.js → toggle-scheme.class.js} +0 -0
- /package/components/toolbar/{class.js → toolbar.class.js} +0 -0
- /package/components/tooltip/{class.js → tooltip.class.js} +0 -0
- /package/components/tree/{class.js → tree.class.js} +0 -0
- /package/components/upload/{class.js → upload.class.js} +0 -0
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
@scope (color-picker-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Tokens ── */
|
|
4
|
-
--color-picker-gap: var(--a-space-2);
|
|
5
|
-
--color-picker-area-height: 10rem;
|
|
6
|
-
--color-picker-area-radius: var(--a-radius-md);
|
|
7
|
-
--color-picker-track-height: 0.75rem;
|
|
8
|
-
--color-picker-track-radius: var(--a-radius-full);
|
|
9
|
-
--color-picker-thumb-size: 1.125rem;
|
|
10
|
-
--color-picker-thumb-border: 2px solid var(--a-chrome-border);
|
|
11
|
-
--color-picker-thumb-shadow: 0 0 0 1px var(--a-chrome-ring-subtle), 0 2px 4px var(--a-chrome-shadow-soft);
|
|
12
|
-
--color-picker-font: var(--a-font-family-code);
|
|
13
|
-
--color-picker-font-size: var(--a-ui-sm);
|
|
14
|
-
--color-picker-fg: var(--a-fg);
|
|
15
|
-
--color-picker-label-fg: var(--a-fg-muted);
|
|
16
|
-
--color-picker-border: var(--a-border-subtle);
|
|
17
|
-
--color-picker-output-bg: var(--a-bg-muted);
|
|
18
|
-
--color-picker-output-radius: var(--a-radius-sm);
|
|
19
|
-
--color-picker-fg-disabled: var(--a-ui-text-disabled);
|
|
4
|
+
--color-picker-gap-default: var(--a-space-2);
|
|
5
|
+
--color-picker-area-height-default: 10rem;
|
|
6
|
+
--color-picker-area-radius-default: var(--a-radius-md);
|
|
7
|
+
--color-picker-track-height-default: 0.75rem;
|
|
8
|
+
--color-picker-track-radius-default: var(--a-radius-full);
|
|
9
|
+
--color-picker-thumb-size-default: 1.125rem;
|
|
10
|
+
--color-picker-thumb-border-default: 2px solid var(--a-chrome-border);
|
|
11
|
+
--color-picker-thumb-shadow-default: 0 0 0 1px var(--a-chrome-ring-subtle), 0 2px 4px var(--a-chrome-shadow-soft);
|
|
12
|
+
--color-picker-font-default: var(--a-font-family-code);
|
|
13
|
+
--color-picker-font-size-default: var(--a-ui-sm);
|
|
14
|
+
--color-picker-fg-default: var(--a-fg);
|
|
15
|
+
--color-picker-label-fg-default: var(--a-fg-muted);
|
|
16
|
+
--color-picker-border-default: var(--a-border-subtle);
|
|
17
|
+
--color-picker-output-bg-default: var(--a-bg-muted);
|
|
18
|
+
--color-picker-output-radius-default: var(--a-radius-sm);
|
|
19
|
+
--color-picker-fg-disabled-default: var(--a-ui-text-disabled);
|
|
20
20
|
|
|
21
21
|
/* ── Spacing ── */
|
|
22
|
-
--color-picker-gap-sm: var(--a-space-1);
|
|
23
|
-
--color-picker-pad-sm: var(--a-space-2);
|
|
22
|
+
--color-picker-gap-sm-default: var(--a-space-1);
|
|
23
|
+
--color-picker-pad-sm-default: var(--a-space-2);
|
|
24
24
|
|
|
25
25
|
/* ── Interactive ── */
|
|
26
|
-
--color-picker-focus-color: var(--a-accent);
|
|
27
|
-
--color-picker-disabled-border: var(--a-border-subtle);
|
|
26
|
+
--color-picker-focus-color-default: var(--a-accent);
|
|
27
|
+
--color-picker-disabled-border-default: var(--a-border-subtle);
|
|
28
28
|
|
|
29
29
|
/* ── Transitions ── */
|
|
30
|
-
--color-picker-duration: var(--a-duration-fast);
|
|
31
|
-
--color-picker-easing: var(--a-easing);
|
|
30
|
+
--color-picker-duration-default: var(--a-duration-fast);
|
|
31
|
+
--color-picker-easing-default: var(--a-easing);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
:scope {
|
|
35
35
|
box-sizing: border-box;
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: column;
|
|
38
|
-
gap: var(--color-picker-gap);
|
|
38
|
+
gap: var(--color-picker-gap, var(--color-picker-gap-default));
|
|
39
39
|
width: 100%;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
[data-area] {
|
|
45
45
|
position: relative;
|
|
46
46
|
width: 100%;
|
|
47
|
-
height: var(--color-picker-area-height);
|
|
48
|
-
border-radius: var(--color-picker-area-radius);
|
|
49
|
-
border: 1px solid var(--color-picker-border);
|
|
47
|
+
height: var(--color-picker-area-height, var(--color-picker-area-height-default));
|
|
48
|
+
border-radius: var(--color-picker-area-radius, var(--color-picker-area-radius-default));
|
|
49
|
+
border: 1px solid var(--color-picker-border, var(--color-picker-border-default));
|
|
50
50
|
overflow: hidden;
|
|
51
51
|
cursor: crosshair;
|
|
52
52
|
touch-action: none;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
[data-area]:focus-visible {
|
|
56
|
-
outline: 2px solid var(--color-picker-focus-color);
|
|
56
|
+
outline: 2px solid var(--color-picker-focus-color, var(--color-picker-focus-color-default));
|
|
57
57
|
outline-offset: 2px;
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
|
|
64
64
|
[data-area-thumb] {
|
|
65
65
|
position: absolute;
|
|
66
|
-
width: var(--color-picker-thumb-size);
|
|
67
|
-
height: var(--color-picker-thumb-size);
|
|
66
|
+
width: var(--color-picker-thumb-size, var(--color-picker-thumb-size-default));
|
|
67
|
+
height: var(--color-picker-thumb-size, var(--color-picker-thumb-size-default));
|
|
68
68
|
border-radius: 50%;
|
|
69
|
-
border: var(--color-picker-thumb-border);
|
|
70
|
-
box-shadow: var(--color-picker-thumb-shadow);
|
|
69
|
+
border: var(--color-picker-thumb-border, var(--color-picker-thumb-border-default));
|
|
70
|
+
box-shadow: var(--color-picker-thumb-shadow, var(--color-picker-thumb-shadow-default));
|
|
71
71
|
transform: translate(-50%, -50%);
|
|
72
72
|
pointer-events: none;
|
|
73
73
|
z-index: 1;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
[data-sliders] {
|
|
79
79
|
display: flex;
|
|
80
80
|
flex-direction: column;
|
|
81
|
-
gap: var(--color-picker-gap-sm);
|
|
81
|
+
gap: var(--color-picker-gap-sm, var(--color-picker-gap-sm-default));
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/* ═══════ Hue Track ═══════ */
|
|
@@ -86,25 +86,25 @@
|
|
|
86
86
|
[data-hue-track] {
|
|
87
87
|
position: relative;
|
|
88
88
|
width: 100%;
|
|
89
|
-
height: var(--color-picker-track-height);
|
|
90
|
-
border-radius: var(--color-picker-track-radius);
|
|
89
|
+
height: var(--color-picker-track-height, var(--color-picker-track-height-default));
|
|
90
|
+
border-radius: var(--color-picker-track-radius, var(--color-picker-track-radius-default));
|
|
91
91
|
cursor: pointer;
|
|
92
92
|
touch-action: none;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
[data-hue-track]:focus-visible {
|
|
96
|
-
outline: 2px solid var(--color-picker-focus-color);
|
|
96
|
+
outline: 2px solid var(--color-picker-focus-color, var(--color-picker-focus-color-default));
|
|
97
97
|
outline-offset: 2px;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
[data-hue-thumb] {
|
|
101
101
|
position: absolute;
|
|
102
102
|
top: 50%;
|
|
103
|
-
width: var(--color-picker-thumb-size);
|
|
104
|
-
height: var(--color-picker-thumb-size);
|
|
103
|
+
width: var(--color-picker-thumb-size, var(--color-picker-thumb-size-default));
|
|
104
|
+
height: var(--color-picker-thumb-size, var(--color-picker-thumb-size-default));
|
|
105
105
|
border-radius: 50%;
|
|
106
|
-
border: var(--color-picker-thumb-border);
|
|
107
|
-
box-shadow: var(--color-picker-thumb-shadow);
|
|
106
|
+
border: var(--color-picker-thumb-border, var(--color-picker-thumb-border-default));
|
|
107
|
+
box-shadow: var(--color-picker-thumb-shadow, var(--color-picker-thumb-shadow-default));
|
|
108
108
|
transform: translate(-50%, -50%);
|
|
109
109
|
pointer-events: none;
|
|
110
110
|
}
|
|
@@ -114,22 +114,22 @@
|
|
|
114
114
|
[data-output] {
|
|
115
115
|
display: flex;
|
|
116
116
|
flex-direction: column;
|
|
117
|
-
gap: var(--color-picker-gap-sm);
|
|
117
|
+
gap: var(--color-picker-gap-sm, var(--color-picker-gap-sm-default));
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
[data-output-group] {
|
|
121
121
|
display: flex;
|
|
122
122
|
align-items: center;
|
|
123
|
-
gap: var(--color-picker-gap-sm);
|
|
124
|
-
padding: var(--color-picker-gap-sm) var(--color-picker-pad-sm);
|
|
125
|
-
background: var(--color-picker-output-bg);
|
|
126
|
-
border-radius: var(--color-picker-output-radius);
|
|
123
|
+
gap: var(--color-picker-gap-sm, var(--color-picker-gap-sm-default));
|
|
124
|
+
padding: var(--color-picker-gap-sm, var(--color-picker-gap-sm-default)) var(--color-picker-pad-sm, var(--color-picker-pad-sm-default));
|
|
125
|
+
background: var(--color-picker-output-bg, var(--color-picker-output-bg-default));
|
|
126
|
+
border-radius: var(--color-picker-output-radius, var(--color-picker-output-radius-default));
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
[data-output-value] {
|
|
130
|
-
font-family: var(--color-picker-font);
|
|
131
|
-
font-size: var(--color-picker-font-size);
|
|
132
|
-
color: var(--color-picker-fg);
|
|
130
|
+
font-family: var(--color-picker-font, var(--color-picker-font-default));
|
|
131
|
+
font-size: var(--color-picker-font-size, var(--color-picker-font-size-default));
|
|
132
|
+
color: var(--color-picker-fg, var(--color-picker-fg-default));
|
|
133
133
|
user-select: all;
|
|
134
134
|
-webkit-user-select: all;
|
|
135
135
|
flex: 1;
|
|
@@ -149,23 +149,23 @@
|
|
|
149
149
|
border: none;
|
|
150
150
|
padding: 0;
|
|
151
151
|
cursor: pointer;
|
|
152
|
-
color: var(--color-picker-label-fg);
|
|
153
|
-
transition: color var(--color-picker-duration) var(--color-picker-easing);
|
|
152
|
+
color: var(--color-picker-label-fg, var(--color-picker-label-fg-default));
|
|
153
|
+
transition: color var(--color-picker-duration, var(--color-picker-duration-default)) var(--color-picker-easing, var(--color-picker-easing-default));
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
[data-copy]:hover {
|
|
157
|
-
color: var(--color-picker-fg);
|
|
157
|
+
color: var(--color-picker-fg, var(--color-picker-fg-default));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
[data-copy] icon-ui {
|
|
161
|
-
--a-icon-size: var(--color-picker-font-size);
|
|
161
|
+
--a-icon-size: var(--color-picker-font-size, var(--color-picker-font-size-default));
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
/* ═══════ Disabled ═══════ */
|
|
165
165
|
|
|
166
166
|
:scope[disabled] {
|
|
167
167
|
pointer-events: none;
|
|
168
|
-
color: var(--color-picker-fg-disabled);
|
|
168
|
+
color: var(--color-picker-fg-disabled, var(--color-picker-fg-disabled-default));
|
|
169
169
|
}
|
|
170
170
|
:scope[disabled] [data-area],
|
|
171
171
|
:scope[disabled] [data-hue-track] {
|
|
@@ -173,10 +173,10 @@
|
|
|
173
173
|
cursor: not-allowed;
|
|
174
174
|
}
|
|
175
175
|
:scope[disabled] slider-ui {
|
|
176
|
-
--slider-fill-bg: var(--color-picker-disabled-border);
|
|
177
|
-
--slider-thumb-bg: var(--color-picker-disabled-border);
|
|
176
|
+
--slider-fill-bg: var(--color-picker-disabled-border, var(--color-picker-disabled-border-default));
|
|
177
|
+
--slider-thumb-bg: var(--color-picker-disabled-border, var(--color-picker-disabled-border-default));
|
|
178
178
|
}
|
|
179
179
|
:scope[disabled] [data-output-value] {
|
|
180
|
-
color: var(--color-picker-fg-disabled);
|
|
180
|
+
color: var(--color-picker-fg-disabled, var(--color-picker-fg-disabled-default));
|
|
181
181
|
}
|
|
182
182
|
}
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/Combobox.json",
|
|
4
|
+
"title": "Combobox",
|
|
5
|
+
"description": "Typeahead-filterable single-select primitive — the constrained-choice\ncombobox per WAI-APG \"Combobox With List Autocomplete (manual\nselection)\". The committed value MUST come from the options list\nunless `[free-text]` is set. Distinct from `<select-ui searchable>`\n(button-first dropdown) and `<autocomplete-input-ui>` (free-form).\nForm-bearing via UIFormElement: `[name]`, `[value]`, `[required]`,\n`[disabled]`, fires `change`. Options via native `<option>` /\n`<optgroup>` children OR programmatic `.options` array.\n",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"$ref": "common_types.json#/$defs/CatalogComponentCommon"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"required": {
|
|
17
|
+
"description": "Marks the field as required for form validation",
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false
|
|
20
|
+
},
|
|
21
|
+
"clearable": {
|
|
22
|
+
"description": "Renders an `x` clear button when value is set",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false
|
|
25
|
+
},
|
|
26
|
+
"component": {
|
|
27
|
+
"const": "Combobox"
|
|
28
|
+
},
|
|
29
|
+
"creatable": {
|
|
30
|
+
"description": "Implies `[free-text]`; on Enter with unmatched typed text fires a\n`create` event with detail.value so the consumer can run a\nbackend create-then-refresh-options flow.",
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false
|
|
33
|
+
},
|
|
34
|
+
"disabled": {
|
|
35
|
+
"description": "Disables interaction and dims the control",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"error": {
|
|
40
|
+
"description": "Validation error message",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"default": ""
|
|
43
|
+
},
|
|
44
|
+
"filter-mode": {
|
|
45
|
+
"description": "Client-side filter algorithm.",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": [
|
|
48
|
+
"substring",
|
|
49
|
+
"prefix",
|
|
50
|
+
"fuzzy"
|
|
51
|
+
],
|
|
52
|
+
"default": "substring"
|
|
53
|
+
},
|
|
54
|
+
"free-text": {
|
|
55
|
+
"description": "Allow typed text not in the options list. Blurs the distinction\nwith <autocomplete-input-ui>; prefer the dedicated primitive\nunless the value model truly needs both modes (tag-with-suggestions,\nemail-with-recent-recipients).",
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": false
|
|
58
|
+
},
|
|
59
|
+
"highlight-match": {
|
|
60
|
+
"description": "Wraps the matched substring in `<mark>` inside option labels",
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": true
|
|
63
|
+
},
|
|
64
|
+
"hint": {
|
|
65
|
+
"description": "Caption text below the field; wires `aria-describedby` on the host\nso screen readers announce it as a description.",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"default": ""
|
|
68
|
+
},
|
|
69
|
+
"label": {
|
|
70
|
+
"description": "Inline label rendered above the field. Wrap with <field-ui> for\nproper `<label for>` association in form-row compositions.",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"default": ""
|
|
73
|
+
},
|
|
74
|
+
"loading": {
|
|
75
|
+
"description": "Shows a loading spinner inside the popover; consumer drives async fetch",
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"default": false
|
|
78
|
+
},
|
|
79
|
+
"max-options": {
|
|
80
|
+
"description": "Cap on rendered options. Overflow shows a \"scroll for more\" hint",
|
|
81
|
+
"type": "number",
|
|
82
|
+
"default": 100
|
|
83
|
+
},
|
|
84
|
+
"name": {
|
|
85
|
+
"description": "Form control name for form data submission",
|
|
86
|
+
"type": "string",
|
|
87
|
+
"default": ""
|
|
88
|
+
},
|
|
89
|
+
"open": {
|
|
90
|
+
"description": "Reflects popover open / closed state",
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"default": false
|
|
93
|
+
},
|
|
94
|
+
"options": {
|
|
95
|
+
"description": "Programmatic option list. Array of {value, label, disabled?, group?} or grouped {label, options:[…]}. Alternative to declarative <option> / <optgroup> children.",
|
|
96
|
+
"type": "array",
|
|
97
|
+
"default": []
|
|
98
|
+
},
|
|
99
|
+
"placeholder": {
|
|
100
|
+
"description": "Placeholder text in the input when value is empty",
|
|
101
|
+
"type": "string",
|
|
102
|
+
"default": "Select..."
|
|
103
|
+
},
|
|
104
|
+
"readonly": {
|
|
105
|
+
"description": "Prevents selection changes while keeping the field focusable + popover-open allowed",
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": false
|
|
108
|
+
},
|
|
109
|
+
"size": {
|
|
110
|
+
"description": "Sizing scale via universal `[size]` attribute system. Matches Input + Select sizing tokens so a Combobox rendered alongside either feels coherent in a form row.",
|
|
111
|
+
"type": "string",
|
|
112
|
+
"enum": [
|
|
113
|
+
"sm",
|
|
114
|
+
"md",
|
|
115
|
+
"lg"
|
|
116
|
+
],
|
|
117
|
+
"default": "md"
|
|
118
|
+
},
|
|
119
|
+
"value": {
|
|
120
|
+
"description": "Currently selected option value. Must be a member of `options[].value` unless `[free-text]` is set. With declarative <option> children, a child carrying the native `selected` attribute sets the initial value when this attribute is absent.",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"default": ""
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": [
|
|
126
|
+
"component"
|
|
127
|
+
],
|
|
128
|
+
"unevaluatedProperties": false,
|
|
129
|
+
"x-adiaui": {
|
|
130
|
+
"anti_patterns": [
|
|
131
|
+
{
|
|
132
|
+
"fix": "{\"component\": \"Combobox\", \"value\": \"us\", \"options\": [{\"value\": \"us\", \"label\": \"United States\"}]}\n",
|
|
133
|
+
"why": "`value` is \"xx\" but only \"us\" is in options. With free-text:false (default), this is an invalid\nmid-state — set value: \"us\" or add an option with value: \"xx\".\n",
|
|
134
|
+
"wrong": "{\"component\": \"Combobox\", \"value\": \"xx\", \"options\": [{\"value\": \"us\", \"label\": \"United States\"}]}\n"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"fix": "{\"component\": \"SegmentedControl\", \"options\": [{\"value\": \"a\", \"label\": \"A\"}, {\"value\": \"b\", \"label\": \"B\"}]}\n",
|
|
138
|
+
"why": "Only 2 options. Combobox is overkill — use SegmentedControl or Radio.\n",
|
|
139
|
+
"wrong": "{\"component\": \"Combobox\", \"options\": [{\"value\": \"a\", \"label\": \"A\"}, {\"value\": \"b\", \"label\": \"B\"}]}\n"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"fix": "{\"component\": \"MultiSelect\", \"options\": [...]}\n",
|
|
143
|
+
"why": "Combobox is single-select. Multi-select goes through MultiSelect.\n",
|
|
144
|
+
"wrong": "{\"component\": \"Combobox\", \"multiple\": true, \"options\": [...]}\n"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"category": "input",
|
|
148
|
+
"composes": [
|
|
149
|
+
"icon-ui"
|
|
150
|
+
],
|
|
151
|
+
"events": {
|
|
152
|
+
"change": {
|
|
153
|
+
"description": "Fired when value is committed — option clicked, Enter on active\noption, or programmatic `.value =`. Detail.option resolves to the\nmatching `{label,value,...}` or null in free-text/cleared paths.",
|
|
154
|
+
"detail": {
|
|
155
|
+
"option": {
|
|
156
|
+
"description": "Resolved option object or null when free-text / cleared.",
|
|
157
|
+
"type": "object"
|
|
158
|
+
},
|
|
159
|
+
"source": {
|
|
160
|
+
"description": "One of `click` / `keyboard` / `programmatic`.",
|
|
161
|
+
"type": "string"
|
|
162
|
+
},
|
|
163
|
+
"value": {
|
|
164
|
+
"description": "Committed value.",
|
|
165
|
+
"type": "string"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"close": {
|
|
170
|
+
"description": "Popover closed.",
|
|
171
|
+
"detail": {
|
|
172
|
+
"reason": {
|
|
173
|
+
"description": "One of `escape` / `outside` / `select` / `blur`.",
|
|
174
|
+
"type": "string"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"create": {
|
|
179
|
+
"description": "Fired when `[creatable]` is set and the user presses Enter on\ntyped text that doesn't match any option. Consumer wires this to\na backend create flow and then refreshes `.options`.",
|
|
180
|
+
"detail": {
|
|
181
|
+
"value": {
|
|
182
|
+
"description": "The typed text the user is trying to create.",
|
|
183
|
+
"type": "string"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"input": {
|
|
188
|
+
"description": "Fired on each keystroke (filter typing); not a commit. Detail carries the typed query.",
|
|
189
|
+
"detail": {
|
|
190
|
+
"query": {
|
|
191
|
+
"description": "Lowercased filter query.",
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"value": {
|
|
195
|
+
"description": "Current input text (the user's typed query).",
|
|
196
|
+
"type": "string"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"invalid": {
|
|
201
|
+
"description": "Fired when `[free-text]` is false and the user presses Enter on\ntyped text that doesn't match any option. The value is NOT\ncommitted; the input is restored to the last committed value.",
|
|
202
|
+
"detail": {
|
|
203
|
+
"query": {
|
|
204
|
+
"description": "The unmatched typed text.",
|
|
205
|
+
"type": "string"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"open": {
|
|
210
|
+
"description": "Popover opened.",
|
|
211
|
+
"detail": {
|
|
212
|
+
"trigger": {
|
|
213
|
+
"description": "One of `click` / `keyboard` / `typing`.",
|
|
214
|
+
"type": "string"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"examples": [
|
|
220
|
+
{
|
|
221
|
+
"description": "Country picker — canonical declarative <option> children inside a <field-ui>.",
|
|
222
|
+
"a2ui": "[\n {\"id\": \"root\", \"component\": \"Card\", \"children\": [\"sec\"]},\n {\"id\": \"sec\", \"component\": \"Section\", \"children\": [\"country\"]},\n {\n \"id\": \"country\",\n \"component\": \"Combobox\",\n \"name\": \"country\",\n \"label\": \"Country\",\n \"placeholder\": \"Select country…\",\n \"options\": [\n {\"value\": \"us\", \"label\": \"United States\"},\n {\"value\": \"gb\", \"label\": \"United Kingdom\"},\n {\"value\": \"de\", \"label\": \"Germany\"},\n {\"value\": \"fr\", \"label\": \"France\"},\n {\"value\": \"es\", \"label\": \"Spain\"}\n ],\n \"value\": \"us\"\n }\n]",
|
|
223
|
+
"name": "country-picker"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"description": "Tag picker with create-new affordance — fires `create` event on unmatched Enter.",
|
|
227
|
+
"a2ui": "[\n {\"id\": \"root\", \"component\": \"Card\", \"children\": [\"sec\"]},\n {\"id\": \"sec\", \"component\": \"Section\", \"children\": [\"tag\"]},\n {\n \"id\": \"tag\",\n \"component\": \"Combobox\",\n \"name\": \"tag\",\n \"label\": \"Tag\",\n \"creatable\": true,\n \"placeholder\": \"Pick or create a tag…\",\n \"options\": [\n {\"value\": \"bug\", \"label\": \"bug\"},\n {\"value\": \"feature\", \"label\": \"feature\"},\n {\"value\": \"chore\", \"label\": \"chore\"}\n ]\n }\n]",
|
|
228
|
+
"name": "creatable-tag-picker"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"keywords": [
|
|
232
|
+
"combobox",
|
|
233
|
+
"autocomplete",
|
|
234
|
+
"typeahead",
|
|
235
|
+
"select",
|
|
236
|
+
"filter",
|
|
237
|
+
"picker",
|
|
238
|
+
"country-picker",
|
|
239
|
+
"timezone-picker",
|
|
240
|
+
"member-picker"
|
|
241
|
+
],
|
|
242
|
+
"name": "UICombobox",
|
|
243
|
+
"related": [
|
|
244
|
+
"select",
|
|
245
|
+
"search",
|
|
246
|
+
"input",
|
|
247
|
+
"field"
|
|
248
|
+
],
|
|
249
|
+
"slots": {
|
|
250
|
+
"default": {
|
|
251
|
+
"description": "Native <option> / <optgroup> children for declarative authoring"
|
|
252
|
+
},
|
|
253
|
+
"empty": {
|
|
254
|
+
"description": "Custom no-matches content (defaults to \"No matches\")"
|
|
255
|
+
},
|
|
256
|
+
"footer": {
|
|
257
|
+
"description": "Footer area inside the popover (e.g. \"Press Enter to create…\" affordance)"
|
|
258
|
+
},
|
|
259
|
+
"loading": {
|
|
260
|
+
"description": "Custom loading content (defaults to a spinner)"
|
|
261
|
+
},
|
|
262
|
+
"prefix": {
|
|
263
|
+
"description": "Leading icon / element inside the input chrome"
|
|
264
|
+
},
|
|
265
|
+
"suffix": {
|
|
266
|
+
"description": "Trailing icon / element (defaults to `caret-down`)"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"states": [
|
|
270
|
+
{
|
|
271
|
+
"description": "Closed; not focused.",
|
|
272
|
+
"name": "idle"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"description": "Input focused; popover closed.",
|
|
276
|
+
"attribute": ":focus-within",
|
|
277
|
+
"name": "focused"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"description": "Popover visible; filtered options listed.",
|
|
281
|
+
"attribute": "open",
|
|
282
|
+
"name": "open"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"description": "Spinner shown; options stale (consumer-driven async fetch).",
|
|
286
|
+
"attribute": "loading",
|
|
287
|
+
"name": "loading"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"description": "Non-interactive; dimmed.",
|
|
291
|
+
"attribute": "disabled",
|
|
292
|
+
"name": "disabled"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"description": "Focusable + popover-open allowed; commits blocked.",
|
|
296
|
+
"attribute": "readonly",
|
|
297
|
+
"name": "readonly"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
"status": "stable",
|
|
301
|
+
"synonyms": {
|
|
302
|
+
"autocomplete": [
|
|
303
|
+
"combobox",
|
|
304
|
+
"typeahead",
|
|
305
|
+
"suggest"
|
|
306
|
+
],
|
|
307
|
+
"combobox": [
|
|
308
|
+
"autocomplete",
|
|
309
|
+
"typeahead",
|
|
310
|
+
"filter",
|
|
311
|
+
"picker"
|
|
312
|
+
],
|
|
313
|
+
"picker": [
|
|
314
|
+
"combobox",
|
|
315
|
+
"select",
|
|
316
|
+
"dropdown"
|
|
317
|
+
],
|
|
318
|
+
"typeahead": [
|
|
319
|
+
"combobox",
|
|
320
|
+
"autocomplete",
|
|
321
|
+
"search"
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
"tag": "combobox-ui",
|
|
325
|
+
"tokens": {
|
|
326
|
+
"--combobox-bg": {
|
|
327
|
+
"description": "Input background color"
|
|
328
|
+
},
|
|
329
|
+
"--combobox-fg": {
|
|
330
|
+
"description": "Input text color"
|
|
331
|
+
},
|
|
332
|
+
"--combobox-match-bg": {
|
|
333
|
+
"description": "Background for `<mark>` spans that highlight matched substrings"
|
|
334
|
+
},
|
|
335
|
+
"--combobox-option-bg-active": {
|
|
336
|
+
"description": "Background for the currently active (arrow-navigated) option"
|
|
337
|
+
},
|
|
338
|
+
"--combobox-option-bg-selected": {
|
|
339
|
+
"description": "Background for the currently committed option"
|
|
340
|
+
},
|
|
341
|
+
"--combobox-option-fg-active": {
|
|
342
|
+
"description": "Foreground for the currently active option"
|
|
343
|
+
},
|
|
344
|
+
"--combobox-popover-bg": {
|
|
345
|
+
"description": "Popover background color"
|
|
346
|
+
},
|
|
347
|
+
"--combobox-popover-border": {
|
|
348
|
+
"description": "Popover border color"
|
|
349
|
+
},
|
|
350
|
+
"--combobox-popover-radius": {
|
|
351
|
+
"description": "Popover border radius"
|
|
352
|
+
},
|
|
353
|
+
"--combobox-popover-shadow": {
|
|
354
|
+
"description": "Popover elevation shadow"
|
|
355
|
+
},
|
|
356
|
+
"--combobox-radius": {
|
|
357
|
+
"description": "Input border radius"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"traits": [],
|
|
361
|
+
"version": 1
|
|
362
|
+
}
|
|
363
|
+
}
|