@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,39 +1,39 @@
|
|
|
1
1
|
@scope (breadcrumb-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Layout ── */
|
|
4
|
-
--breadcrumb-gap: var(--a-space-1);
|
|
5
|
-
--breadcrumb-max-width: 12rem;
|
|
4
|
+
--breadcrumb-gap-default: var(--a-space-1);
|
|
5
|
+
--breadcrumb-max-width-default: 12rem;
|
|
6
6
|
|
|
7
7
|
/* ── Typography ── */
|
|
8
|
-
--breadcrumb-font-size: var(--a-ui-size);
|
|
9
|
-
--breadcrumb-current-weight: var(--a-weight-medium);
|
|
8
|
+
--breadcrumb-font-size-default: var(--a-ui-size);
|
|
9
|
+
--breadcrumb-current-weight-default: var(--a-weight-medium);
|
|
10
10
|
|
|
11
11
|
/* ── Colors ── */
|
|
12
|
-
--breadcrumb-fg: var(--a-fg-subtle);
|
|
13
|
-
--breadcrumb-fg-hover: var(--a-fg);
|
|
14
|
-
--breadcrumb-separator-fg: var(--a-fg-muted);
|
|
15
|
-
--breadcrumb-current-fg: var(--a-fg-strong);
|
|
12
|
+
--breadcrumb-fg-default: var(--a-fg-subtle);
|
|
13
|
+
--breadcrumb-fg-hover-default: var(--a-fg);
|
|
14
|
+
--breadcrumb-separator-fg-default: var(--a-fg-muted);
|
|
15
|
+
--breadcrumb-current-fg-default: var(--a-fg-strong);
|
|
16
16
|
|
|
17
17
|
/* ── Transition ── */
|
|
18
|
-
--breadcrumb-duration: var(--a-duration-fast);
|
|
19
|
-
--breadcrumb-easing: var(--a-easing);
|
|
18
|
+
--breadcrumb-duration-default: var(--a-duration-fast);
|
|
19
|
+
--breadcrumb-easing-default: var(--a-easing);
|
|
20
20
|
|
|
21
21
|
/* ── Link ── */
|
|
22
|
-
--breadcrumb-link-radius: var(--a-radius-sm);
|
|
23
|
-
--breadcrumb-link-focus-ring: var(--a-focus-ring);
|
|
22
|
+
--breadcrumb-link-radius-default: var(--a-radius-sm);
|
|
23
|
+
--breadcrumb-link-focus-ring-default: var(--a-focus-ring);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
:scope {
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
align-items: center;
|
|
30
|
-
gap: var(--breadcrumb-gap);
|
|
31
|
-
font-size: var(--breadcrumb-font-size);
|
|
30
|
+
gap: var(--breadcrumb-gap, var(--breadcrumb-gap-default));
|
|
31
|
+
font-size: var(--breadcrumb-font-size, var(--breadcrumb-font-size-default));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/* Separator — standalone span, never inside <a> */
|
|
35
35
|
[data-sep] {
|
|
36
|
-
color: var(--breadcrumb-separator-fg);
|
|
36
|
+
color: var(--breadcrumb-separator-fg, var(--breadcrumb-separator-fg-default));
|
|
37
37
|
flex-shrink: 0;
|
|
38
38
|
pointer-events: none;
|
|
39
39
|
user-select: none;
|
|
@@ -46,32 +46,32 @@
|
|
|
46
46
|
overflow: hidden;
|
|
47
47
|
text-overflow: ellipsis;
|
|
48
48
|
white-space: nowrap;
|
|
49
|
-
max-width: var(--breadcrumb-max-width);
|
|
50
|
-
color: var(--breadcrumb-fg);
|
|
49
|
+
max-width: var(--breadcrumb-max-width, var(--breadcrumb-max-width-default));
|
|
50
|
+
color: var(--breadcrumb-fg, var(--breadcrumb-fg-default));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/* Links */
|
|
54
54
|
a[data-item] {
|
|
55
55
|
text-decoration: none;
|
|
56
|
-
border-radius: var(--breadcrumb-link-radius);
|
|
57
|
-
transition: color var(--breadcrumb-duration) var(--breadcrumb-easing);
|
|
56
|
+
border-radius: var(--breadcrumb-link-radius, var(--breadcrumb-link-radius-default));
|
|
57
|
+
transition: color var(--breadcrumb-duration, var(--breadcrumb-duration-default)) var(--breadcrumb-easing, var(--breadcrumb-easing-default));
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
a[data-item]:hover {
|
|
61
|
-
color: var(--breadcrumb-fg-hover);
|
|
61
|
+
color: var(--breadcrumb-fg-hover, var(--breadcrumb-fg-hover-default));
|
|
62
62
|
text-decoration: underline;
|
|
63
63
|
text-underline-offset: 2px;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
a[data-item]:focus-visible {
|
|
67
67
|
outline: none;
|
|
68
|
-
box-shadow: var(--breadcrumb-link-focus-ring);
|
|
68
|
+
box-shadow: var(--breadcrumb-link-focus-ring, var(--breadcrumb-link-focus-ring-default));
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/* Current (last item) */
|
|
72
72
|
[data-item][aria-current] {
|
|
73
|
-
color: var(--breadcrumb-current-fg);
|
|
74
|
-
font-weight: var(--breadcrumb-current-weight);
|
|
73
|
+
color: var(--breadcrumb-current-fg, var(--breadcrumb-current-fg-default));
|
|
74
|
+
font-weight: var(--breadcrumb-current-weight, var(--breadcrumb-current-weight-default));
|
|
75
75
|
pointer-events: none;
|
|
76
76
|
text-decoration: none;
|
|
77
77
|
}
|
|
@@ -6,70 +6,76 @@ button-ui:active { transform: scale(0.97); }
|
|
|
6
6
|
|
|
7
7
|
button-ui:not([disabled]):hover,
|
|
8
8
|
button-ui[variant="primary"]:not([disabled]):hover {
|
|
9
|
-
--button-bg: var(--button-bg-hover);
|
|
10
|
-
--button-fg: var(--button-fg-hover);
|
|
11
|
-
--button-border: var(--button-border-hover);
|
|
9
|
+
--button-bg-default: var(--button-bg-hover, var(--button-bg-hover-default));
|
|
10
|
+
--button-fg-default: var(--button-fg-hover, var(--button-fg-hover-default));
|
|
11
|
+
--button-border-default: var(--button-border-hover, var(--button-border-hover-default));
|
|
12
12
|
}
|
|
13
13
|
button-ui[variant="ghost"]:not([disabled]):hover {
|
|
14
|
-
--button-bg: var(--button-bg-ghost-hover);
|
|
15
|
-
--button-fg: var(--button-fg-ghost-hover);
|
|
16
|
-
--button-border: var(--button-border-ghost-hover);
|
|
14
|
+
--button-bg-default: var(--button-bg-ghost-hover, var(--button-bg-ghost-hover-default));
|
|
15
|
+
--button-fg-default: var(--button-fg-ghost-hover, var(--button-fg-ghost-hover-default));
|
|
16
|
+
--button-border-default: var(--button-border-ghost-hover, var(--button-border-ghost-hover-default));
|
|
17
17
|
}
|
|
18
18
|
button-ui[variant="outline"]:not([disabled]):hover {
|
|
19
|
-
--button-fg: var(--button-fg-hover);
|
|
20
|
-
--button-border: var(--button-border-hover);
|
|
19
|
+
--button-fg-default: var(--button-fg-hover, var(--button-fg-hover-default));
|
|
20
|
+
--button-border-default: var(--button-border-hover, var(--button-border-hover-default));
|
|
21
21
|
}
|
|
22
22
|
button-ui[color="danger"]:not([disabled]):hover {
|
|
23
|
-
--button-bg: var(--button-bg-hover);
|
|
24
|
-
--button-fg: var(--button-fg-hover);
|
|
25
|
-
--button-border: var(--button-border-hover);
|
|
23
|
+
--button-bg-default: var(--button-bg-hover, var(--button-bg-hover-default));
|
|
24
|
+
--button-fg-default: var(--button-fg-hover, var(--button-fg-hover-default));
|
|
25
|
+
--button-border-default: var(--button-border-hover, var(--button-border-hover-default));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
@scope (button-ui) {
|
|
29
29
|
:where(:scope) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
--button-
|
|
37
|
-
--button-
|
|
38
|
-
--button-
|
|
39
|
-
--button-
|
|
40
|
-
--button-
|
|
41
|
-
--button-
|
|
42
|
-
--button-
|
|
43
|
-
--button-
|
|
44
|
-
--button-
|
|
45
|
-
--button-
|
|
46
|
-
--button-
|
|
47
|
-
--button-
|
|
48
|
-
--button-
|
|
49
|
-
--button-fg-
|
|
50
|
-
--button-bg-
|
|
51
|
-
--button-
|
|
52
|
-
--button-border-
|
|
53
|
-
--button-bg-
|
|
54
|
-
--button-fg-
|
|
55
|
-
--button-
|
|
56
|
-
--button-bg-
|
|
57
|
-
--button-
|
|
58
|
-
--button-border-
|
|
30
|
+
/* OD-5 token-shadowing fix: `-default` suffix on internal-target
|
|
31
|
+
tokens so the un-suffixed name (--button-bg / --button-fg /
|
|
32
|
+
--button-border) is reserved as a consumer-extension point.
|
|
33
|
+
Use sites read `var(--name, var(--name-default))` so a
|
|
34
|
+
surface-ancestor declaration of --button-bg can win over the
|
|
35
|
+
button's own state/variant cascade. Spec: docs/specs/genui-css-channel.md OD-5. */
|
|
36
|
+
--button-bg-default: var(--a-ui-bg);
|
|
37
|
+
--button-fg-default: var(--a-ui-text);
|
|
38
|
+
--button-border-default: transparent;
|
|
39
|
+
--button-height-default: var(--a-size);
|
|
40
|
+
--button-px-default: var(--a-ui-px);
|
|
41
|
+
--button-radius-default: var(--a-radius);
|
|
42
|
+
--button-font-size-default: var(--a-ui-size);
|
|
43
|
+
--button-font-weight-default: var(--a-ui-weight);
|
|
44
|
+
--button-gap-default: var(--a-space-1);
|
|
45
|
+
--button-bg-hover-default: var(--a-ui-bg-hover);
|
|
46
|
+
--button-fg-hover-default: var(--a-ui-text-hover);
|
|
47
|
+
--button-border-hover-default: transparent;
|
|
48
|
+
--button-bg-primary-default: var(--a-primary);
|
|
49
|
+
--button-fg-primary-default: var(--a-chrome-light);
|
|
50
|
+
--button-bg-outline-default: transparent;
|
|
51
|
+
--button-fg-outline-default: var(--a-fg);
|
|
52
|
+
--button-border-outline-default: var(--a-ui-border);
|
|
53
|
+
--button-bg-ghost-default: transparent;
|
|
54
|
+
--button-fg-ghost-default: var(--a-fg-subtle);
|
|
55
|
+
--button-fg-ghost-hover-default: var(--a-fg-strong);
|
|
56
|
+
--button-bg-ghost-hover-default: var(--a-bg-hover);
|
|
57
|
+
--button-border-ghost-default: transparent;
|
|
58
|
+
--button-border-ghost-hover-default: transparent;
|
|
59
|
+
--button-bg-danger-default: var(--a-danger);
|
|
60
|
+
--button-fg-danger-default: var(--a-danger-fg);
|
|
61
|
+
--button-bg-hover-danger-default: var(--a-danger);
|
|
62
|
+
--button-bg-disabled-default: var(--a-ui-bg-disabled);
|
|
63
|
+
--button-fg-disabled-default: var(--a-ui-text-disabled);
|
|
64
|
+
--button-border-disabled-default: transparent;
|
|
59
65
|
|
|
60
66
|
/* ── Transition ── */
|
|
61
|
-
--button-duration: var(--a-duration-fast);
|
|
62
|
-
--button-easing: var(--a-easing);
|
|
67
|
+
--button-duration-default: var(--a-duration-fast);
|
|
68
|
+
--button-easing-default: var(--a-easing);
|
|
63
69
|
|
|
64
70
|
/* ── State ── */
|
|
65
|
-
--button-focus-ring: var(--a-focus-ring);
|
|
71
|
+
--button-focus-ring-default: var(--a-focus-ring);
|
|
66
72
|
|
|
67
73
|
/* ── Trailing slot ── */
|
|
68
|
-
--button-trailing-font-size: var(--a-ui-sm);
|
|
69
|
-
--button-trailing-fg: var(--a-fg-muted);
|
|
70
|
-
--button-trailing-border: var(--a-border-subtle);
|
|
71
|
-
--button-trailing-radius: var(--a-radius-sm);
|
|
72
|
-
--button-trailing-px: var(--a-space-0-5);
|
|
74
|
+
--button-trailing-font-size-default: var(--a-ui-sm);
|
|
75
|
+
--button-trailing-fg-default: var(--a-fg-muted);
|
|
76
|
+
--button-trailing-border-default: var(--a-border-subtle);
|
|
77
|
+
--button-trailing-radius-default: var(--a-radius-sm);
|
|
78
|
+
--button-trailing-px-default: var(--a-space-0-5);
|
|
73
79
|
}
|
|
74
80
|
|
|
75
81
|
:scope {
|
|
@@ -77,27 +83,27 @@ button-ui[color="danger"]:not([disabled]):hover {
|
|
|
77
83
|
display: inline-flex;
|
|
78
84
|
align-items: center;
|
|
79
85
|
justify-content: center;
|
|
80
|
-
gap: var(--button-gap);
|
|
81
|
-
min-width: var(--button-height); /* keep button at least as wide as it is tall */
|
|
82
|
-
min-height: var(--button-height);
|
|
86
|
+
gap: var(--button-gap, var(--button-gap-default));
|
|
87
|
+
min-width: var(--button-height, var(--button-height-default)); /* keep button at least as wide as it is tall */
|
|
88
|
+
min-height: var(--button-height, var(--button-height-default));
|
|
83
89
|
overflow: hidden;
|
|
84
|
-
padding-inline: var(--button-px);
|
|
85
|
-
border: 1px solid var(--button-border);
|
|
86
|
-
border-radius: var(--button-radius);
|
|
87
|
-
background: var(--button-bg);
|
|
88
|
-
color: var(--button-fg);
|
|
90
|
+
padding-inline: var(--button-px, var(--button-px-default));
|
|
91
|
+
border: 1px solid var(--button-border, var(--button-border-default));
|
|
92
|
+
border-radius: var(--button-radius, var(--button-radius-default));
|
|
93
|
+
background: var(--button-bg, var(--button-bg-default));
|
|
94
|
+
color: var(--button-fg, var(--button-fg-default));
|
|
89
95
|
font: inherit;
|
|
90
|
-
font-size: var(--button-font-size);
|
|
91
|
-
font-weight: var(--button-font-weight);
|
|
96
|
+
font-size: var(--button-font-size, var(--button-font-size-default));
|
|
97
|
+
font-weight: var(--button-font-weight, var(--button-font-weight-default));
|
|
92
98
|
line-height: 1;
|
|
93
99
|
cursor: pointer;
|
|
94
100
|
user-select: none;
|
|
95
101
|
transition:
|
|
96
|
-
background var(--button-duration) var(--button-easing),
|
|
97
|
-
border-color var(--button-duration) var(--button-easing),
|
|
98
|
-
color var(--button-duration) var(--button-easing),
|
|
99
|
-
opacity var(--button-duration) var(--button-easing),
|
|
100
|
-
transform var(--button-duration) var(--button-easing);
|
|
102
|
+
background var(--button-duration, var(--button-duration-default)) var(--button-easing, var(--button-easing-default)),
|
|
103
|
+
border-color var(--button-duration, var(--button-duration-default)) var(--button-easing, var(--button-easing-default)),
|
|
104
|
+
color var(--button-duration, var(--button-duration-default)) var(--button-easing, var(--button-easing-default)),
|
|
105
|
+
opacity var(--button-duration, var(--button-duration-default)) var(--button-easing, var(--button-easing-default)),
|
|
106
|
+
transform var(--button-duration, var(--button-duration-default)) var(--button-easing, var(--button-easing-default));
|
|
101
107
|
white-space: nowrap;
|
|
102
108
|
}
|
|
103
109
|
:scope[text]::after {
|
|
@@ -111,34 +117,38 @@ button-ui[color="danger"]:not([disabled]):hover {
|
|
|
111
117
|
[slot="trailing"] {
|
|
112
118
|
order: 99;
|
|
113
119
|
margin-inline-start: auto;
|
|
114
|
-
font-size: var(--button-trailing-font-size);
|
|
115
|
-
color: var(--button-trailing-fg);
|
|
120
|
+
font-size: var(--button-trailing-font-size, var(--button-trailing-font-size-default));
|
|
121
|
+
color: var(--button-trailing-fg, var(--button-trailing-fg-default));
|
|
116
122
|
font-family: inherit;
|
|
117
|
-
border: 1px solid var(--button-trailing-border);
|
|
118
|
-
border-radius: var(--button-trailing-radius);
|
|
119
|
-
padding: 0 var(--button-trailing-px);
|
|
123
|
+
border: 1px solid var(--button-trailing-border, var(--button-trailing-border-default));
|
|
124
|
+
border-radius: var(--button-trailing-radius, var(--button-trailing-radius-default));
|
|
125
|
+
padding: 0 var(--button-trailing-px, var(--button-trailing-px-default));
|
|
120
126
|
line-height: 1;
|
|
121
127
|
}
|
|
122
128
|
|
|
123
129
|
/* :scope:active moved outside @scope — see Safari 17.x bug note at top. */
|
|
124
|
-
:scope:focus-visible { outline: none; box-shadow: var(--button-focus-ring); }
|
|
130
|
+
:scope:focus-visible { outline: none; box-shadow: var(--button-focus-ring, var(--button-focus-ring-default)); }
|
|
125
131
|
|
|
126
|
-
/* ── Variants (rest state) ──
|
|
132
|
+
/* ── Variants (rest state) ──
|
|
133
|
+
State/variant blocks override the `-default` (the fallback for
|
|
134
|
+
when no consumer extension is set). Consumer override of the
|
|
135
|
+
un-suffixed name (--button-bg etc.) wins at the use site via
|
|
136
|
+
`var(--button-bg, var(--button-bg-default))`. */
|
|
127
137
|
:scope[variant="primary"] {
|
|
128
|
-
--button-bg: var(--button-bg-primary);
|
|
129
|
-
--button-fg: var(--button-fg-primary);
|
|
138
|
+
--button-bg-default: var(--button-bg-primary, var(--button-bg-primary-default));
|
|
139
|
+
--button-fg-default: var(--button-fg-primary, var(--button-fg-primary-default));
|
|
130
140
|
}
|
|
131
141
|
|
|
132
142
|
:scope[variant="outline"] {
|
|
133
|
-
--button-bg: var(--button-bg-outline);
|
|
134
|
-
--button-fg: var(--button-fg-outline);
|
|
135
|
-
--button-border: var(--button-border-outline);
|
|
143
|
+
--button-bg-default: var(--button-bg-outline, var(--button-bg-outline-default));
|
|
144
|
+
--button-fg-default: var(--button-fg-outline, var(--button-fg-outline-default));
|
|
145
|
+
--button-border-default: var(--button-border-outline, var(--button-border-outline-default));
|
|
136
146
|
}
|
|
137
147
|
|
|
138
148
|
:scope[variant="ghost"] {
|
|
139
|
-
--button-bg: var(--button-bg-ghost);
|
|
140
|
-
--button-fg: var(--button-fg-ghost);
|
|
141
|
-
--button-border: var(--button-border-ghost);
|
|
149
|
+
--button-bg-default: var(--button-bg-ghost, var(--button-bg-ghost-default));
|
|
150
|
+
--button-fg-default: var(--button-fg-ghost, var(--button-fg-ghost-default));
|
|
151
|
+
--button-border-default: var(--button-border-ghost, var(--button-border-ghost-default));
|
|
142
152
|
}
|
|
143
153
|
|
|
144
154
|
/* ── Color (semantic axis) ──
|
|
@@ -147,20 +157,20 @@ button-ui[color="danger"]:not([disabled]):hover {
|
|
|
147
157
|
vs `<button-ui variant="outline" color="danger">`.
|
|
148
158
|
`variant="danger"` is a deprecated alias migrated to color via JS. */
|
|
149
159
|
:scope[color="danger"] {
|
|
150
|
-
--button-bg: var(--button-bg-danger);
|
|
151
|
-
--button-fg: var(--button-fg-danger);
|
|
160
|
+
--button-bg-default: var(--button-bg-danger, var(--button-bg-danger-default));
|
|
161
|
+
--button-fg-default: var(--button-fg-danger, var(--button-fg-danger-default));
|
|
152
162
|
}
|
|
153
163
|
:scope[color="success"] {
|
|
154
|
-
--button-bg: var(--a-success-strong);
|
|
155
|
-
--button-fg: var(--a-success-fg);
|
|
164
|
+
--button-bg-default: var(--a-success-strong);
|
|
165
|
+
--button-fg-default: var(--a-success-fg);
|
|
156
166
|
}
|
|
157
167
|
:scope[color="info"] {
|
|
158
|
-
--button-bg: var(--a-info-strong);
|
|
159
|
-
--button-fg: var(--a-info-fg);
|
|
168
|
+
--button-bg-default: var(--a-info-strong);
|
|
169
|
+
--button-fg-default: var(--a-info-fg);
|
|
160
170
|
}
|
|
161
171
|
:scope[color="warning"] {
|
|
162
|
-
--button-bg: var(--a-warning-strong);
|
|
163
|
-
--button-fg: var(--a-warning-fg);
|
|
172
|
+
--button-bg-default: var(--a-warning-strong);
|
|
173
|
+
--button-fg-default: var(--a-warning-fg);
|
|
164
174
|
}
|
|
165
175
|
|
|
166
176
|
/* Hover rules moved outside @scope — see Safari 17.x bug note at
|
|
@@ -175,16 +185,16 @@ button-ui[color="danger"]:not([disabled]):hover {
|
|
|
175
185
|
|
|
176
186
|
/* Disabled */
|
|
177
187
|
:scope[disabled] {
|
|
178
|
-
--button-bg: var(--button-bg-disabled);
|
|
179
|
-
--button-fg: var(--button-fg-disabled);
|
|
180
|
-
--button-border: var(--button-border-disabled);
|
|
188
|
+
--button-bg-default: var(--button-bg-disabled, var(--button-bg-disabled-default));
|
|
189
|
+
--button-fg-default: var(--button-fg-disabled, var(--button-fg-disabled-default));
|
|
190
|
+
--button-border-default: var(--button-border-disabled, var(--button-border-disabled-default));
|
|
181
191
|
pointer-events: none;
|
|
182
192
|
cursor: not-allowed;
|
|
183
193
|
}
|
|
184
194
|
|
|
185
195
|
/* Icon-only (no text) */
|
|
186
196
|
:scope:not([text]), :scope[text=""] {
|
|
187
|
-
--button-px: 0;
|
|
188
|
-
width: var(--button-height);
|
|
197
|
+
--button-px-default: 0;
|
|
198
|
+
width: var(--button-height, var(--button-height-default));
|
|
189
199
|
}
|
|
190
200
|
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/CalendarGrid.json",
|
|
4
|
+
"title": "CalendarGrid",
|
|
5
|
+
"description": "Substrate primitive — a single-month calendar grid (month nav + day cells + keyboard nav). Renders inline; no trigger, no popover. Used as a substrate by calendar-picker-ui (popover wrapper), date-range-picker-ui (two side-by-side grids), and datetime-picker-ui (one grid + time pane). For a complete date-picker affordance (trigger + popover + form participation), use calendar-picker-ui.",
|
|
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
|
+
"component": {
|
|
17
|
+
"const": "CalendarGrid"
|
|
18
|
+
},
|
|
19
|
+
"disabled": {
|
|
20
|
+
"description": "Disables all interaction.",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": false
|
|
23
|
+
},
|
|
24
|
+
"max": {
|
|
25
|
+
"description": "Maximum selectable date in ISO format (YYYY-MM-DD).",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"default": ""
|
|
28
|
+
},
|
|
29
|
+
"min": {
|
|
30
|
+
"description": "Minimum selectable date in ISO format (YYYY-MM-DD).",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"default": ""
|
|
33
|
+
},
|
|
34
|
+
"rangeEnd": {
|
|
35
|
+
"description": "End of a date range (ISO YYYY-MM-DD). See `rangeStart` for the full contract.",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"default": ""
|
|
38
|
+
},
|
|
39
|
+
"rangeStart": {
|
|
40
|
+
"description": "Start of a date range (ISO YYYY-MM-DD). When both rangeStart and rangeEnd are set + ordered, day cells strictly between the endpoints get `[data-in-range]` stamped for visual continuity. Used by `<date-range-picker-ui>` which pushes the same from/to onto both calendar panes. Endpoints themselves render via the `value` prop's `[data-selected]` state.",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"default": ""
|
|
43
|
+
},
|
|
44
|
+
"readonly": {
|
|
45
|
+
"description": "Blocks selection but allows month navigation.",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false
|
|
48
|
+
},
|
|
49
|
+
"value": {
|
|
50
|
+
"description": "Selected date in ISO format (YYYY-MM-DD).",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"default": ""
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"component"
|
|
57
|
+
],
|
|
58
|
+
"unevaluatedProperties": false,
|
|
59
|
+
"x-adiaui": {
|
|
60
|
+
"anti_patterns": [
|
|
61
|
+
{
|
|
62
|
+
"fix": "{\"component\": \"CalendarPicker\", \"name\": \"birthdate\"}\n",
|
|
63
|
+
"why": "CalendarGrid is a substrate primitive — it does not participate in\nforms. The `name` attribute has no effect. Use CalendarPicker\n(form-associated) for single-date input.\n",
|
|
64
|
+
"wrong": "{\"component\": \"CalendarGrid\", \"name\": \"birthdate\"}\n"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"category": "input",
|
|
68
|
+
"composes": [],
|
|
69
|
+
"events": {
|
|
70
|
+
"change": {
|
|
71
|
+
"description": "User selected a date. detail.value is the ISO string."
|
|
72
|
+
},
|
|
73
|
+
"input": {
|
|
74
|
+
"description": "Focus moved between days during keyboard nav. detail.focusDate is the ISO string."
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"examples": [],
|
|
78
|
+
"keywords": [
|
|
79
|
+
"calendar",
|
|
80
|
+
"date",
|
|
81
|
+
"grid",
|
|
82
|
+
"month",
|
|
83
|
+
"day-picker",
|
|
84
|
+
"substrate"
|
|
85
|
+
],
|
|
86
|
+
"name": "UICalendarGrid",
|
|
87
|
+
"related": [
|
|
88
|
+
"CalendarPicker",
|
|
89
|
+
"DateRangePicker",
|
|
90
|
+
"DatetimePicker"
|
|
91
|
+
],
|
|
92
|
+
"slots": {},
|
|
93
|
+
"states": [
|
|
94
|
+
{
|
|
95
|
+
"description": "Pointer-events off, reduced opacity, no selection.",
|
|
96
|
+
"attribute": "disabled",
|
|
97
|
+
"name": "disabled"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"description": "Navigation allowed, selection blocked.",
|
|
101
|
+
"attribute": "readonly",
|
|
102
|
+
"name": "readonly"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"status": "stable",
|
|
106
|
+
"synonyms": {
|
|
107
|
+
"calendar": [
|
|
108
|
+
"calendar",
|
|
109
|
+
"date"
|
|
110
|
+
],
|
|
111
|
+
"grid": [
|
|
112
|
+
"grid",
|
|
113
|
+
"calendar"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"tag": "calendar-grid-ui",
|
|
117
|
+
"tokens": {
|
|
118
|
+
"--calendar-grid-day-bg-hover": {
|
|
119
|
+
"description": "Background on hover (non-selected, non-outside, non-disabled).",
|
|
120
|
+
"default": "var(--a-bg-hover)"
|
|
121
|
+
},
|
|
122
|
+
"--calendar-grid-day-bg-selected": {
|
|
123
|
+
"description": "Background of the selected day cell.",
|
|
124
|
+
"default": "var(--a-accent)"
|
|
125
|
+
},
|
|
126
|
+
"--calendar-grid-day-fg-selected": {
|
|
127
|
+
"description": "Text color of the selected day cell.",
|
|
128
|
+
"default": "var(--a-accent-fg)"
|
|
129
|
+
},
|
|
130
|
+
"--calendar-grid-day-size": {
|
|
131
|
+
"description": "Square cell size for day buttons.",
|
|
132
|
+
"default": "2rem"
|
|
133
|
+
},
|
|
134
|
+
"--calendar-grid-day-today-color": {
|
|
135
|
+
"description": "Accent color used for the today-indicator dot + numeral tint.",
|
|
136
|
+
"default": "var(--a-accent)"
|
|
137
|
+
},
|
|
138
|
+
"--calendar-grid-width": {
|
|
139
|
+
"description": "Grid container width.",
|
|
140
|
+
"default": "16rem"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"traits": [],
|
|
144
|
+
"version": 1
|
|
145
|
+
}
|
|
146
|
+
}
|