@k8ordo/ui 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +197 -187
- package/dist/_virtual/_rolldown/runtime.mjs +13 -0
- package/dist/components/_internal/focus-ring.css +37 -0
- package/dist/components/_internal/focus-ring.module.mjs +9 -0
- package/dist/components/_internal/form-value.d.mts +33 -0
- package/dist/components/_internal/form-value.mjs +91 -0
- package/dist/components/_internal/high-contrast.css +18 -0
- package/dist/components/_internal/high-contrast.module.mjs +5 -0
- package/dist/components/_internal/ignore-changes.d.mts +20 -0
- package/dist/components/_internal/ignore-changes.mjs +37 -0
- package/dist/components/_internal/nav-link.css +78 -0
- package/dist/components/_internal/nav-link.d.mts +5 -0
- package/dist/components/_internal/nav-link.mjs +8 -0
- package/dist/components/_internal/nav-link.module.mjs +14 -0
- package/dist/components/_internal/sr-only.css +17 -0
- package/dist/components/_internal/sr-only.module.mjs +5 -0
- package/dist/components/_internal/status-tone.css +37 -0
- package/dist/components/_internal/status-tone.d.mts +20 -0
- package/dist/components/_internal/status-tone.mjs +22 -0
- package/dist/components/_internal/status-tone.module.mjs +14 -0
- package/dist/components/ai/_internal/attachment-preview.css +75 -0
- package/dist/components/ai/_internal/attachment-preview.d.mts +14 -0
- package/dist/components/ai/_internal/attachment-preview.mjs +50 -0
- package/dist/components/ai/_internal/attachment-preview.module.mjs +14 -0
- package/dist/components/ai/_internal/collapsible.css +62 -0
- package/dist/components/ai/_internal/collapsible.d.mts +4 -3
- package/dist/components/ai/_internal/collapsible.mjs +42 -33
- package/dist/components/ai/_internal/collapsible.module.mjs +12 -0
- package/dist/components/ai/_internal/icons.d.mts +7 -0
- package/dist/components/ai/_internal/icons.mjs +14 -0
- package/dist/components/ai/_internal/streaming-cursor.css +28 -0
- package/dist/components/ai/_internal/streaming-cursor.d.mts +2 -3
- package/dist/components/ai/_internal/streaming-cursor.mjs +2 -1
- package/dist/components/ai/_internal/streaming-cursor.module.mjs +8 -0
- package/dist/components/ai/attachment/attachment.css +17 -0
- package/dist/components/ai/attachment/attachment.d.mts +14 -0
- package/dist/components/ai/attachment/attachment.mjs +25 -0
- package/dist/components/ai/attachment/attachment.module.mjs +8 -0
- package/dist/components/ai/attachment/index.d.mts +13 -0
- package/dist/components/ai/attachment/index.mjs +8 -0
- package/dist/components/ai/conversation/conversation.css +71 -0
- package/dist/components/ai/conversation/conversation.d.mts +4 -5
- package/dist/components/ai/conversation/conversation.mjs +38 -34
- package/dist/components/ai/conversation/conversation.module.mjs +11 -0
- package/dist/components/ai/conversation/index.d.mts +2 -3
- package/dist/components/ai/index.d.mts +4 -2
- package/dist/components/ai/index.mjs +3 -1
- package/dist/components/ai/message/index.d.mts +29 -3
- package/dist/components/ai/message/index.mjs +7 -2
- package/dist/components/ai/message/message.css +71 -0
- package/dist/components/ai/message/message.d.mts +34 -4
- package/dist/components/ai/message/message.mjs +99 -9
- package/dist/components/ai/message/message.module.mjs +18 -0
- package/dist/components/ai/prompt-input/index.d.mts +11 -4
- package/dist/components/ai/prompt-input/index.mjs +3 -1
- package/dist/components/ai/prompt-input/prompt-input.css +101 -0
- package/dist/components/ai/prompt-input/prompt-input.d.mts +15 -6
- package/dist/components/ai/prompt-input/prompt-input.mjs +152 -37
- package/dist/components/ai/prompt-input/prompt-input.module.mjs +15 -0
- package/dist/components/ai/reasoning/reasoning.css +16 -0
- package/dist/components/ai/reasoning/reasoning.d.mts +2 -3
- package/dist/components/ai/reasoning/reasoning.mjs +5 -5
- package/dist/components/ai/reasoning/reasoning.module.mjs +8 -0
- package/dist/components/ai/response/response.css +453 -0
- package/dist/components/ai/response/response.d.mts +4 -6
- package/dist/components/ai/response/response.mjs +20 -15
- package/dist/components/ai/response/response.module.mjs +8 -0
- package/dist/components/ai/source/index.d.mts +12 -0
- package/dist/components/ai/source/index.mjs +8 -0
- package/dist/components/ai/source/source.css +54 -0
- package/dist/components/ai/source/source.d.mts +13 -0
- package/dist/components/ai/source/source.mjs +51 -0
- package/dist/components/ai/source/source.module.mjs +12 -0
- package/dist/components/ai/suggestion/index.d.mts +2 -3
- package/dist/components/ai/suggestion/suggestion.css +32 -0
- package/dist/components/ai/suggestion/suggestion.d.mts +3 -4
- package/dist/components/ai/suggestion/suggestion.mjs +7 -6
- package/dist/components/ai/suggestion/suggestion.module.mjs +8 -0
- package/dist/components/ai/tool-invocation/approval-bar.css +26 -0
- package/dist/components/ai/tool-invocation/approval-bar.d.mts +11 -0
- package/dist/components/ai/tool-invocation/approval-bar.mjs +59 -0
- package/dist/components/ai/tool-invocation/approval-bar.module.mjs +9 -0
- package/dist/components/ai/tool-invocation/tool-invocation.css +55 -0
- package/dist/components/ai/tool-invocation/tool-invocation.d.mts +5 -5
- package/dist/components/ai/tool-invocation/tool-invocation.mjs +39 -18
- package/dist/components/ai/tool-invocation/tool-invocation.module.mjs +15 -0
- package/dist/components/ai/types.d.mts +21 -4
- package/dist/components/buttons/button/button.css +158 -0
- package/dist/components/buttons/button/button.d.mts +32 -9
- package/dist/components/buttons/button/button.mjs +46 -36
- package/dist/components/buttons/button/button.module.mjs +23 -0
- package/dist/components/buttons/button/index.d.mts +2 -2
- package/dist/components/buttons/copy-button/copy-button.css +15 -0
- package/dist/components/buttons/copy-button/copy-button.d.mts +10 -0
- package/dist/components/buttons/copy-button/copy-button.mjs +70 -0
- package/dist/components/buttons/copy-button/copy-button.module.mjs +8 -0
- package/dist/components/buttons/copy-button/index.d.mts +2 -0
- package/dist/components/buttons/copy-button/index.mjs +2 -0
- package/dist/components/buttons/icon-button/icon-button.css +81 -0
- package/dist/components/buttons/icon-button/icon-button.d.mts +39 -12
- package/dist/components/buttons/icon-button/icon-button.mjs +70 -57
- package/dist/components/buttons/icon-button/icon-button.module.mjs +15 -0
- package/dist/components/buttons/icon-button/index.d.mts +2 -2
- package/dist/components/buttons/toolbar/index.d.mts +14 -0
- package/dist/components/buttons/toolbar/index.mjs +9 -0
- package/dist/components/buttons/toolbar/toolbar.css +30 -0
- package/dist/components/buttons/toolbar/toolbar.d.mts +18 -0
- package/dist/components/buttons/toolbar/toolbar.mjs +111 -0
- package/dist/components/buttons/toolbar/toolbar.module.mjs +9 -0
- package/dist/components/data-display/accordion/accordion-button.css +48 -0
- package/dist/components/data-display/accordion/accordion-button.d.mts +2 -3
- package/dist/components/data-display/accordion/accordion-button.mjs +5 -4
- package/dist/components/data-display/accordion/accordion-button.module.mjs +9 -0
- package/dist/components/data-display/accordion/accordion-item.css +11 -0
- package/dist/components/data-display/accordion/accordion-item.d.mts +2 -3
- package/dist/components/data-display/accordion/accordion-item.mjs +2 -1
- package/dist/components/data-display/accordion/accordion-item.module.mjs +5 -0
- package/dist/components/data-display/accordion/accordion-panel.css +9 -0
- package/dist/components/data-display/accordion/accordion-panel.d.mts +2 -3
- package/dist/components/data-display/accordion/accordion-panel.mjs +2 -2
- package/dist/components/data-display/accordion/accordion-panel.module.mjs +5 -0
- package/dist/components/data-display/accordion/accordion.css +19 -0
- package/dist/components/data-display/accordion/accordion.d.mts +2 -3
- package/dist/components/data-display/accordion/accordion.mjs +2 -1
- package/dist/components/data-display/accordion/accordion.module.mjs +5 -0
- package/dist/components/data-display/accordion/context.d.mts +3 -3
- package/dist/components/data-display/accordion/index.d.mts +2 -3
- package/dist/components/data-display/avatar/avatar.css +95 -0
- package/dist/components/data-display/avatar/avatar.d.mts +2 -3
- package/dist/components/data-display/avatar/avatar.mjs +22 -6
- package/dist/components/data-display/avatar/avatar.module.mjs +18 -0
- package/dist/components/data-display/badge/badge.css +160 -0
- package/dist/components/data-display/badge/badge.d.mts +2 -3
- package/dist/components/data-display/badge/badge.mjs +30 -5
- package/dist/components/data-display/badge/badge.module.mjs +21 -0
- package/dist/components/data-display/card/card.css +44 -0
- package/dist/components/data-display/card/card.d.mts +2 -3
- package/dist/components/data-display/card/card.mjs +12 -2
- package/dist/components/data-display/card/card.module.mjs +12 -0
- package/dist/components/data-display/carousel/carousel.css +83 -0
- package/dist/components/data-display/carousel/carousel.d.mts +11 -0
- package/dist/components/data-display/carousel/carousel.mjs +186 -0
- package/dist/components/data-display/carousel/carousel.module.mjs +18 -0
- package/dist/components/data-display/carousel/index.d.mts +11 -0
- package/dist/components/data-display/carousel/index.mjs +8 -0
- package/dist/components/data-display/code/code.css +37 -0
- package/dist/components/data-display/code/code.d.mts +2 -3
- package/dist/components/data-display/code/code.mjs +7 -6
- package/dist/components/data-display/code/code.module.mjs +9 -0
- package/dist/components/data-display/code/find-all-colors.d.mts +2 -3
- package/dist/components/data-display/code/find-all-colors.mjs +0 -161
- package/dist/components/data-display/code-block/code-block.css +161 -0
- package/dist/components/data-display/code-block/code-block.d.mts +12 -0
- package/dist/components/data-display/code-block/code-block.mjs +44 -0
- package/dist/components/data-display/code-block/code-block.module.mjs +11 -0
- package/dist/components/data-display/code-block/highlight.d.mts +9 -0
- package/dist/components/data-display/code-block/highlight.mjs +54 -0
- package/dist/components/data-display/code-block/index.d.mts +2 -0
- package/dist/components/data-display/code-block/index.mjs +2 -0
- package/dist/components/data-display/data-table/data-table.css +74 -0
- package/dist/components/data-display/data-table/data-table.d.mts +31 -0
- package/dist/components/data-display/data-table/data-table.mjs +155 -0
- package/dist/components/data-display/data-table/data-table.module.mjs +14 -0
- package/dist/components/data-display/data-table/index.d.mts +2 -0
- package/dist/components/data-display/data-table/index.mjs +2 -0
- package/dist/components/data-display/heading/heading.css +99 -0
- package/dist/components/data-display/heading/heading.d.mts +2 -3
- package/dist/components/data-display/heading/heading.mjs +15 -14
- package/dist/components/data-display/heading/heading.module.mjs +20 -0
- package/dist/components/data-display/kbd/index.d.mts +2 -0
- package/dist/components/data-display/kbd/index.mjs +2 -0
- package/dist/components/data-display/kbd/kbd.css +21 -0
- package/dist/components/data-display/kbd/kbd.d.mts +8 -0
- package/dist/components/data-display/kbd/kbd.mjs +17 -0
- package/dist/components/data-display/kbd/kbd.module.mjs +5 -0
- package/dist/components/data-display/prose/index.d.mts +2 -0
- package/dist/components/data-display/prose/index.mjs +2 -0
- package/dist/components/data-display/prose/prose.css +253 -0
- package/dist/components/data-display/prose/prose.d.mts +5 -0
- package/dist/components/data-display/prose/prose.mjs +10 -0
- package/dist/components/data-display/prose/prose.module.mjs +5 -0
- package/dist/components/data-display/table/table.css +107 -0
- package/dist/components/data-display/table/table.d.mts +10 -9
- package/dist/components/data-display/table/table.mjs +26 -15
- package/dist/components/data-display/table/table.module.mjs +22 -0
- package/dist/components/data-display/tree/index.d.mts +2 -0
- package/dist/components/data-display/tree/index.mjs +2 -0
- package/dist/components/data-display/tree/tree.css +84 -0
- package/dist/components/data-display/tree/tree.d.mts +20 -0
- package/dist/components/data-display/tree/tree.mjs +151 -0
- package/dist/components/data-display/tree/tree.module.mjs +15 -0
- package/dist/components/feedback/alert/alert.css +42 -0
- package/dist/components/feedback/alert/alert.d.mts +3 -4
- package/dist/components/feedback/alert/alert.mjs +20 -23
- package/dist/components/feedback/alert/alert.module.mjs +14 -0
- package/dist/components/feedback/callout/callout.css +38 -0
- package/dist/components/feedback/callout/callout.d.mts +10 -0
- package/dist/components/feedback/callout/callout.mjs +38 -0
- package/dist/components/feedback/callout/callout.module.mjs +11 -0
- package/dist/components/feedback/callout/index.d.mts +2 -0
- package/dist/components/feedback/callout/index.mjs +2 -0
- package/dist/components/feedback/empty-state/empty-state.css +36 -0
- package/dist/components/feedback/empty-state/empty-state.d.mts +10 -0
- package/dist/components/feedback/empty-state/empty-state.mjs +27 -0
- package/dist/components/feedback/empty-state/empty-state.module.mjs +11 -0
- package/dist/components/feedback/empty-state/index.d.mts +2 -0
- package/dist/components/feedback/empty-state/index.mjs +2 -0
- package/dist/components/feedback/progress/progress.css +78 -0
- package/dist/components/feedback/progress/progress.d.mts +5 -5
- package/dist/components/feedback/progress/progress.mjs +17 -3
- package/dist/components/feedback/progress/progress.module.mjs +12 -0
- package/dist/components/feedback/skeleton/skeleton.css +64 -0
- package/dist/components/feedback/skeleton/skeleton.d.mts +2 -3
- package/dist/components/feedback/skeleton/skeleton.mjs +19 -2
- package/dist/components/feedback/skeleton/skeleton.module.mjs +17 -0
- package/dist/components/feedback/spinner/spinner.css +40 -0
- package/dist/components/feedback/spinner/spinner.d.mts +2 -3
- package/dist/components/feedback/spinner/spinner.mjs +13 -7
- package/dist/components/feedback/spinner/spinner.module.mjs +12 -0
- package/dist/components/feedback/toast/context.d.mts +8 -9
- package/dist/components/feedback/toast/provider.css +69 -0
- package/dist/components/feedback/toast/provider.d.mts +2 -3
- package/dist/components/feedback/toast/provider.mjs +17 -13
- package/dist/components/feedback/toast/provider.module.mjs +12 -0
- package/dist/components/feedback/toast/toast.d.mts +2 -3
- package/dist/components/form/autocomplete/autocomplete.css +154 -0
- package/dist/components/form/autocomplete/autocomplete.d.mts +2 -3
- package/dist/components/form/autocomplete/autocomplete.mjs +70 -46
- package/dist/components/form/autocomplete/autocomplete.module.mjs +21 -0
- package/dist/components/form/calendar/calendar.css +98 -0
- package/dist/components/form/calendar/calendar.d.mts +14 -0
- package/dist/components/form/calendar/calendar.mjs +182 -0
- package/dist/components/form/calendar/calendar.module.mjs +18 -0
- package/dist/components/form/calendar/index.d.mts +2 -0
- package/dist/components/form/calendar/index.mjs +2 -0
- package/dist/components/form/checkbox/checkbox.css +90 -0
- package/dist/components/form/checkbox/checkbox.d.mts +4 -3
- package/dist/components/form/checkbox/checkbox.mjs +29 -27
- package/dist/components/form/checkbox/checkbox.module.mjs +13 -0
- package/dist/components/form/checkbox-card/checkbox-card.css +138 -0
- package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -4
- package/dist/components/form/checkbox-card/checkbox-card.mjs +17 -23
- package/dist/components/form/checkbox-card/checkbox-card.module.mjs +17 -0
- package/dist/components/form/checkbox-group/checkbox-group.css +15 -0
- package/dist/components/form/checkbox-group/checkbox-group.d.mts +7 -5
- package/dist/components/form/checkbox-group/checkbox-group.mjs +12 -16
- package/dist/components/form/checkbox-group/checkbox-group.module.mjs +8 -0
- package/dist/components/form/checkbox-group/index.d.mts +4 -3
- package/dist/components/form/color-picker/color-picker.css +172 -0
- package/dist/components/form/color-picker/color-picker.d.mts +28 -0
- package/dist/components/form/color-picker/color-picker.mjs +239 -0
- package/dist/components/form/color-picker/color-picker.module.mjs +20 -0
- package/dist/components/form/color-picker/index.d.mts +2 -0
- package/dist/components/form/color-picker/index.mjs +2 -0
- package/dist/components/form/combobox/combobox.css +143 -0
- package/dist/components/form/combobox/combobox.d.mts +32 -0
- package/dist/components/form/combobox/combobox.mjs +278 -0
- package/dist/components/form/combobox/combobox.module.mjs +19 -0
- package/dist/components/form/combobox/index.d.mts +2 -0
- package/dist/components/form/combobox/index.mjs +2 -0
- package/dist/components/form/date-field/date-field.css +31 -0
- package/dist/components/form/date-field/date-field.d.mts +8 -0
- package/dist/components/form/date-field/date-field.mjs +20 -0
- package/dist/components/form/date-field/date-field.module.mjs +5 -0
- package/dist/components/form/date-field/index.d.mts +2 -0
- package/dist/components/form/date-field/index.mjs +2 -0
- package/dist/components/form/date-picker/date-picker.css +90 -0
- package/dist/components/form/date-picker/date-picker.d.mts +12 -0
- package/dist/components/form/date-picker/date-picker.mjs +77 -0
- package/dist/components/form/date-picker/date-picker.module.mjs +14 -0
- package/dist/components/form/date-picker/index.d.mts +2 -0
- package/dist/components/form/date-picker/index.mjs +2 -0
- package/dist/components/form/file-field/file-field.css +88 -0
- package/dist/components/form/file-field/file-field.d.mts +9 -7
- package/dist/components/form/file-field/file-field.mjs +130 -37
- package/dist/components/form/file-field/file-field.module.mjs +17 -0
- package/dist/components/form/file-field/index.d.mts +5 -3
- package/dist/components/form/file-field/index.mjs +2 -1
- package/dist/components/form/form/form.css +11 -0
- package/dist/components/form/form/form.d.mts +4 -4
- package/dist/components/form/form/form.mjs +2 -1
- package/dist/components/form/form/form.module.mjs +5 -0
- package/dist/components/form/form-control/form-control.css +43 -0
- package/dist/components/form/form-control/form-control.d.mts +2 -3
- package/dist/components/form/form-control/form-control.mjs +11 -10
- package/dist/components/form/form-control/form-control.module.mjs +12 -0
- package/dist/components/form/number-field/cast.d.mts +2 -3
- package/dist/components/form/number-field/cast.mjs +3 -22
- package/dist/components/form/number-field/number-field.css +122 -0
- package/dist/components/form/number-field/number-field.d.mts +10 -10
- package/dist/components/form/number-field/number-field.mjs +126 -54
- package/dist/components/form/number-field/number-field.module.mjs +10 -0
- package/dist/components/form/password-input/password-input.css +88 -0
- package/dist/components/form/password-input/password-input.d.mts +2 -3
- package/dist/components/form/password-input/password-input.mjs +15 -12
- package/dist/components/form/password-input/password-input.module.mjs +12 -0
- package/dist/components/form/radio/radio.css +89 -0
- package/dist/components/form/radio/radio.d.mts +3 -3
- package/dist/components/form/radio/radio.mjs +15 -19
- package/dist/components/form/radio/radio.module.mjs +16 -0
- package/dist/components/form/radio-card/radio-card.css +147 -0
- package/dist/components/form/radio-card/radio-card.d.mts +4 -4
- package/dist/components/form/radio-card/radio-card.mjs +17 -23
- package/dist/components/form/radio-card/radio-card.module.mjs +19 -0
- package/dist/components/form/range-slider/index.d.mts +2 -0
- package/dist/components/form/range-slider/index.mjs +2 -0
- package/dist/components/form/range-slider/range-slider.css +67 -0
- package/dist/components/form/range-slider/range-slider.d.mts +30 -0
- package/dist/components/form/range-slider/range-slider.mjs +135 -0
- package/dist/components/form/range-slider/range-slider.module.mjs +14 -0
- package/dist/components/form/select/select.css +74 -0
- package/dist/components/form/select/select.d.mts +2 -3
- package/dist/components/form/select/select.mjs +25 -8
- package/dist/components/form/select/select.module.mjs +12 -0
- package/dist/components/form/slider/range-input-class.css +97 -0
- package/dist/components/form/slider/range-input-class.d.mts +7 -0
- package/dist/components/form/slider/range-input-class.mjs +10 -0
- package/dist/components/form/slider/range-input-class.module.mjs +8 -0
- package/dist/components/form/slider/slider.css +55 -0
- package/dist/components/form/slider/slider.d.mts +6 -7
- package/dist/components/form/slider/slider.mjs +44 -11
- package/dist/components/form/slider/slider.module.mjs +12 -0
- package/dist/components/form/switch/switch.css +103 -0
- package/dist/components/form/switch/switch.d.mts +2 -3
- package/dist/components/form/switch/switch.mjs +14 -17
- package/dist/components/form/switch/switch.module.mjs +16 -0
- package/dist/components/form/text-field/text-field.css +41 -0
- package/dist/components/form/text-field/text-field.d.mts +4 -5
- package/dist/components/form/text-field/text-field.mjs +2 -3
- package/dist/components/form/text-field/text-field.module.mjs +5 -0
- package/dist/components/form/textarea/textarea.css +50 -0
- package/dist/components/form/textarea/textarea.d.mts +3 -3
- package/dist/components/form/textarea/textarea.mjs +6 -20
- package/dist/components/form/textarea/textarea.module.mjs +9 -0
- package/dist/components/icons/base.css +40 -0
- package/dist/components/icons/base.d.mts +4 -5
- package/dist/components/icons/base.mjs +10 -10
- package/dist/components/icons/base.module.mjs +13 -0
- package/dist/components/icons/browsers.d.mts +5 -6
- package/dist/components/icons/color-scale.d.mts +2 -3
- package/dist/components/icons/github-mark.d.mts +2 -3
- package/dist/components/icons/logo.css +17 -0
- package/dist/components/icons/logo.d.mts +3 -4
- package/dist/components/icons/logo.mjs +4 -3
- package/dist/components/icons/logo.module.mjs +9 -0
- package/dist/components/icons/lucide-deep.d.mts +3 -1
- package/dist/components/icons/lucide-imports.d.mts +3 -1
- package/dist/components/icons/lucide-imports.mjs +3 -1
- package/dist/components/icons/lucide.d.mts +60 -61
- package/dist/components/icons/qiita.d.mts +2 -3
- package/dist/components/icons/twitter.css +9 -0
- package/dist/components/icons/twitter.d.mts +2 -3
- package/dist/components/icons/twitter.mjs +2 -1
- package/dist/components/icons/twitter.module.mjs +5 -0
- package/dist/components/icons/vertical-writing.d.mts +2 -3
- package/dist/components/index.d.mts +48 -9
- package/dist/components/index.mjs +32 -10
- package/dist/components/layout/_shared/gap.css +25 -0
- package/dist/components/layout/_shared/gap.d.mts +8 -9
- package/dist/components/layout/_shared/gap.mjs +6 -5
- package/dist/components/layout/_shared/gap.module.mjs +11 -0
- package/dist/components/layout/_shared/padding.css +25 -0
- package/dist/components/layout/_shared/padding.d.mts +8 -9
- package/dist/components/layout/_shared/padding.mjs +6 -5
- package/dist/components/layout/_shared/padding.module.mjs +11 -0
- package/dist/components/layout/grid/grid.css +93 -0
- package/dist/components/layout/grid/grid.d.mts +5 -6
- package/dist/components/layout/grid/grid.mjs +21 -20
- package/dist/components/layout/grid/grid.module.mjs +25 -0
- package/dist/components/layout/resizable-panels/index.d.mts +18 -0
- package/dist/components/layout/resizable-panels/index.mjs +9 -0
- package/dist/components/layout/resizable-panels/resizable-panels.css +77 -0
- package/dist/components/layout/resizable-panels/resizable-panels.d.mts +21 -0
- package/dist/components/layout/resizable-panels/resizable-panels.mjs +164 -0
- package/dist/components/layout/resizable-panels/resizable-panels.module.mjs +16 -0
- package/dist/components/layout/separator/separator.css +37 -0
- package/dist/components/layout/separator/separator.d.mts +2 -3
- package/dist/components/layout/separator/separator.mjs +12 -9
- package/dist/components/layout/separator/separator.module.mjs +12 -0
- package/dist/components/layout/stack/stack.css +49 -0
- package/dist/components/layout/stack/stack.d.mts +3 -4
- package/dist/components/layout/stack/stack.mjs +11 -10
- package/dist/components/layout/stack/stack.module.mjs +17 -0
- package/dist/components/navigation/anchor/anchor.css +29 -0
- package/dist/components/navigation/anchor/anchor.d.mts +2 -3
- package/dist/components/navigation/anchor/anchor.mjs +5 -2
- package/dist/components/navigation/anchor/anchor.module.mjs +8 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.css +72 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +5 -6
- package/dist/components/navigation/breadcrumb/breadcrumb.mjs +15 -9
- package/dist/components/navigation/breadcrumb/breadcrumb.module.mjs +14 -0
- package/dist/components/navigation/breadcrumb/index.d.mts +2 -3
- package/dist/components/navigation/pagination/pagination.css +36 -0
- package/dist/components/navigation/pagination/pagination.d.mts +2 -3
- package/dist/components/navigation/pagination/pagination.mjs +9 -8
- package/dist/components/navigation/pagination/pagination.module.mjs +11 -0
- package/dist/components/navigation/side-nav/index.d.mts +16 -0
- package/dist/components/navigation/side-nav/index.mjs +10 -0
- package/dist/components/navigation/side-nav/side-nav.css +73 -0
- package/dist/components/navigation/side-nav/side-nav.d.mts +31 -0
- package/dist/components/navigation/side-nav/side-nav.mjs +62 -0
- package/dist/components/navigation/side-nav/side-nav.module.mjs +11 -0
- package/dist/components/navigation/stepper/index.d.mts +2 -0
- package/dist/components/navigation/stepper/index.mjs +2 -0
- package/dist/components/navigation/stepper/stepper.css +151 -0
- package/dist/components/navigation/stepper/stepper.d.mts +19 -0
- package/dist/components/navigation/stepper/stepper.mjs +87 -0
- package/dist/components/navigation/stepper/stepper.module.mjs +29 -0
- package/dist/components/navigation/table-of-contents/index.d.mts +2 -0
- package/dist/components/navigation/table-of-contents/index.mjs +2 -0
- package/dist/components/navigation/table-of-contents/table-of-contents.css +17 -0
- package/dist/components/navigation/table-of-contents/table-of-contents.d.mts +12 -0
- package/dist/components/navigation/table-of-contents/table-of-contents.mjs +94 -0
- package/dist/components/navigation/table-of-contents/table-of-contents.module.mjs +8 -0
- package/dist/components/navigation/tabs/index.d.mts +2 -3
- package/dist/components/navigation/tabs/tabs.css +70 -0
- package/dist/components/navigation/tabs/tabs.d.mts +5 -6
- package/dist/components/navigation/tabs/tabs.mjs +51 -42
- package/dist/components/navigation/tabs/tabs.module.mjs +12 -0
- package/dist/components/observers/fragment-instance.d.mts +1 -0
- package/dist/components/observers/in-view/in-view.d.mts +11 -0
- package/dist/components/observers/in-view/in-view.mjs +60 -0
- package/dist/components/observers/in-view/index.d.mts +2 -0
- package/dist/components/observers/in-view/index.mjs +2 -0
- package/dist/components/observers/resize/index.d.mts +2 -0
- package/dist/components/observers/resize/index.mjs +2 -0
- package/dist/components/observers/resize/resize.d.mts +7 -0
- package/dist/components/observers/resize/resize.mjs +25 -0
- package/dist/components/overlays/_internal/modal-dialog-context.d.mts +4 -5
- package/dist/components/overlays/_internal/use-can-hover.d.mts +2 -3
- package/dist/components/overlays/_internal/use-hover-intent.d.mts +3 -4
- package/dist/components/overlays/_internal/use-list-navigation.d.mts +17 -11
- package/dist/components/overlays/_internal/use-list-navigation.mjs +42 -26
- package/dist/components/overlays/command-palette/command-palette.css +91 -0
- package/dist/components/overlays/command-palette/command-palette.d.mts +24 -0
- package/dist/components/overlays/command-palette/command-palette.mjs +139 -0
- package/dist/components/overlays/command-palette/command-palette.module.mjs +14 -0
- package/dist/components/overlays/command-palette/index.d.mts +2 -0
- package/dist/components/overlays/command-palette/index.mjs +2 -0
- package/dist/components/overlays/context-menu/context-menu.d.mts +13 -0
- package/dist/components/overlays/context-menu/context-menu.mjs +79 -0
- package/dist/components/overlays/context-menu/index.d.mts +21 -0
- package/dist/components/overlays/context-menu/index.mjs +13 -0
- package/dist/components/overlays/dialog/dialog.css +31 -0
- package/dist/components/overlays/dialog/dialog.d.mts +4 -5
- package/dist/components/overlays/dialog/dialog.mjs +10 -7
- package/dist/components/overlays/dialog/dialog.module.mjs +10 -0
- package/dist/components/overlays/dialog/index.d.mts +2 -3
- package/dist/components/overlays/drawer/drawer.css +48 -0
- package/dist/components/overlays/drawer/drawer.d.mts +2 -3
- package/dist/components/overlays/drawer/drawer.mjs +11 -10
- package/dist/components/overlays/drawer/drawer.module.mjs +13 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +7 -10
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +10 -9
- package/dist/components/overlays/dropdown-menu/hooks.d.mts +7 -7
- package/dist/components/overlays/dropdown-menu/hooks.mjs +3 -3
- package/dist/components/overlays/dropdown-menu/index.d.mts +8 -10
- package/dist/components/overlays/dropdown-menu/shared.css +51 -0
- package/dist/components/overlays/dropdown-menu/shared.d.mts +3 -6
- package/dist/components/overlays/dropdown-menu/shared.mjs +4 -6
- package/dist/components/overlays/dropdown-menu/shared.module.mjs +8 -0
- package/dist/components/overlays/dropdown-menu/sub-menu.css +28 -0
- package/dist/components/overlays/dropdown-menu/sub-menu.d.mts +3 -6
- package/dist/components/overlays/dropdown-menu/sub-menu.mjs +15 -15
- package/dist/components/overlays/dropdown-menu/sub-menu.module.mjs +9 -0
- package/dist/components/overlays/dropdown-menu/use-safe-triangle.d.mts +2 -3
- package/dist/components/overlays/list-box/hooks.d.mts +6 -5
- package/dist/components/overlays/list-box/hooks.mjs +5 -4
- package/dist/components/overlays/list-box/index.d.mts +2 -3
- package/dist/components/overlays/list-box/list-box.css +74 -0
- package/dist/components/overlays/list-box/list-box.d.mts +5 -6
- package/dist/components/overlays/list-box/list-box.mjs +15 -13
- package/dist/components/overlays/list-box/list-box.module.mjs +10 -0
- package/dist/components/overlays/modal/modal.css +119 -0
- package/dist/components/overlays/modal/modal.d.mts +2 -3
- package/dist/components/overlays/modal/modal.mjs +14 -11
- package/dist/components/overlays/modal/modal.module.mjs +11 -0
- package/dist/components/overlays/popover/anchor-positioning.d.mts +4 -5
- package/dist/components/overlays/popover/escape-stack.d.mts +2 -3
- package/dist/components/overlays/popover/hooks.d.mts +7 -8
- package/dist/components/overlays/popover/index.d.mts +2 -2
- package/dist/components/overlays/popover/popover.css +51 -0
- package/dist/components/overlays/popover/popover.d.mts +4 -4
- package/dist/components/overlays/popover/popover.mjs +11 -5
- package/dist/components/overlays/popover/popover.module.mjs +11 -0
- package/dist/components/overlays/tooltip/bridge.css +68 -0
- package/dist/components/overlays/tooltip/bridge.d.mts +2 -3
- package/dist/components/overlays/tooltip/bridge.mjs +7 -21
- package/dist/components/overlays/tooltip/bridge.module.mjs +11 -0
- package/dist/components/overlays/tooltip/index.d.mts +2 -2
- package/dist/components/overlays/tooltip/tooltip.css +15 -0
- package/dist/components/overlays/tooltip/tooltip.d.mts +5 -6
- package/dist/components/overlays/tooltip/tooltip.mjs +3 -2
- package/dist/components/overlays/tooltip/tooltip.module.mjs +5 -0
- package/dist/components/providers/index.d.mts +1 -2
- package/dist/components/providers/portal-root.d.mts +9 -7
- package/dist/components/providers/portal-root.mjs +7 -7
- package/dist/components/providers/ui-provider.d.mts +2 -6
- package/dist/components/providers/ui-provider.mjs +1 -5
- package/dist/helpers/chain.d.mts +2 -3
- package/dist/helpers/chain.mjs +0 -23
- package/dist/helpers/create-safe-context.d.mts +2 -3
- package/dist/helpers/create-safe-context.mjs +0 -17
- package/dist/helpers/index.d.mts +1 -2
- package/dist/helpers/index.mjs +2 -3
- package/dist/helpers/merge-props.d.mts +2 -3
- package/dist/helpers/merge-props.mjs +2 -37
- package/dist/helpers/merge-refs.d.mts +2 -3
- package/dist/helpers/merge-refs.mjs +0 -32
- package/dist/hooks/click-away/index.d.mts +2 -3
- package/dist/hooks/controllable-state/index.d.mts +2 -3
- package/dist/hooks/controllable-state/index.mjs +9 -11
- package/dist/hooks/index.d.mts +2 -20
- package/dist/hooks/index.mjs +2 -19
- package/dist/hooks/writing-mode/index.d.mts +15 -5
- package/dist/hooks/writing-mode/index.mjs +21 -14
- package/dist/i18n/current.d.mts +23 -0
- package/dist/i18n/current.mjs +43 -0
- package/dist/i18n/en.d.mts +2 -3
- package/dist/i18n/en.mjs +46 -0
- package/dist/i18n/index.d.mts +3 -2
- package/dist/i18n/index.mjs +4 -3
- package/dist/i18n/ja.d.mts +2 -3
- package/dist/i18n/ja.mjs +46 -0
- package/dist/i18n/messages.d.mts +81 -3
- package/dist/i18n/usage.d.mts +8 -0
- package/dist/i18n/usage.mjs +131 -0
- package/dist/index.d.mts +29 -34
- package/dist/index.mjs +32 -35
- package/dist/integrations/_shared/openui-defs.d.mts +3 -4
- package/dist/integrations/_shared/openui-defs.mjs +123 -54
- package/dist/integrations/_shared/renderers.css +50 -0
- package/dist/integrations/_shared/renderers.d.mts +71 -52
- package/dist/integrations/_shared/renderers.mjs +288 -30
- package/dist/integrations/_shared/renderers.module.mjs +14 -0
- package/dist/integrations/_shared/schemas.d.mts +387 -103
- package/dist/integrations/_shared/schemas.mjs +165 -27
- package/dist/integrations/ai-sdk/index.d.mts +2 -2
- package/dist/integrations/ai-sdk/map-parts.d.mts +25 -7
- package/dist/integrations/ai-sdk/map-parts.mjs +28 -3
- package/dist/integrations/json-render/catalog.d.mts +336 -18
- package/dist/integrations/json-render/catalog.mjs +120 -57
- package/dist/integrations/json-render/registry.d.mts +3 -4
- package/dist/integrations/json-render/registry.mjs +38 -4
- package/dist/integrations/openui/form-views.d.mts +23 -18
- package/dist/integrations/openui/form-views.mjs +27 -3
- package/dist/integrations/openui/library.d.mts +59 -7
- package/dist/integrations/openui/library.mjs +18 -3
- package/dist/integrations/openui/prompt.d.mts +2 -3
- package/dist/internal/accepts-file.d.mts +8 -0
- package/dist/internal/accepts-file.mjs +19 -0
- package/dist/internal/carries-files.d.mts +3 -0
- package/dist/internal/carries-files.mjs +4 -0
- package/dist/internal/clamp.d.mts +2 -3
- package/dist/internal/clamp.mjs +0 -11
- package/dist/internal/commit-input-value.d.mts +10 -0
- package/dist/internal/commit-input-value.mjs +15 -0
- package/dist/internal/dropped-files.d.mts +3 -0
- package/dist/internal/dropped-files.mjs +8 -0
- package/dist/internal/focus-trap.d.mts +5 -6
- package/dist/internal/focus-trap.mjs +4 -4
- package/dist/internal/hex-color.d.mts +22 -0
- package/dist/internal/hex-color.mjs +53 -0
- package/dist/internal/iso-date.d.mts +39 -0
- package/dist/internal/iso-date.mjs +98 -0
- package/dist/internal/to-precision.d.mts +2 -3
- package/dist/internal/to-precision.mjs +0 -8
- package/dist/styles/index.css +513 -2526
- package/dist/styles/tailwind.css +217 -17
- package/dist/styles/tokens.d.mts +1 -2
- package/dist/styles/tokens.mjs +1 -2
- package/dist/types/variables.d.mts +7 -9
- package/docs/GUIDE.md +239 -72
- package/docs/llms.txt +11 -7
- package/docs/props.generated.json +2156 -309
- package/docs/references/ai-chat.md +345 -62
- package/docs/references/color.md +222 -78
- package/docs/references/components.md +1664 -242
- package/docs/references/generative-ui.md +125 -17
- package/docs/references/interaction-design.md +65 -35
- package/docs/references/spatial-design.md +83 -63
- package/docs/references/types.md +101 -0
- package/docs/references/typography.md +159 -51
- package/package.json +64 -62
- package/dist/components/_internal/focus-ring.d.mts +0 -8
- package/dist/components/_internal/focus-ring.mjs +0 -8
- package/dist/components/layout/scroll-linked/index.d.mts +0 -2
- package/dist/components/layout/scroll-linked/index.mjs +0 -2
- package/dist/components/layout/scroll-linked/scroll-linked.d.mts +0 -14
- package/dist/components/layout/scroll-linked/scroll-linked.mjs +0 -59
- package/dist/helpers/cn.d.mts +0 -5
- package/dist/helpers/cn.mjs +0 -27
- package/dist/hooks/breakpoint/index.d.mts +0 -5
- package/dist/hooks/breakpoint/index.mjs +0 -24
- package/dist/hooks/client/index.d.mts +0 -4
- package/dist/hooks/client/index.mjs +0 -6
- package/dist/hooks/clipboard/index.d.mts +0 -7
- package/dist/hooks/clipboard/index.mjs +0 -15
- package/dist/hooks/debounced-transition/index.d.mts +0 -5
- package/dist/hooks/debounced-transition/index.mjs +0 -49
- package/dist/hooks/deferred-debounce/index.d.mts +0 -4
- package/dist/hooks/deferred-debounce/index.mjs +0 -9
- package/dist/hooks/disclosure/index.d.mts +0 -10
- package/dist/hooks/disclosure/index.mjs +0 -20
- package/dist/hooks/hover/index.d.mts +0 -12
- package/dist/hooks/hover/index.mjs +0 -19
- package/dist/hooks/intersection-observer/index.d.mts +0 -3
- package/dist/hooks/intersection-observer/index.mjs +0 -3
- package/dist/hooks/intersection-observer/use-in-view.d.mts +0 -11
- package/dist/hooks/intersection-observer/use-in-view.mjs +0 -18
- package/dist/hooks/intersection-observer/use-intersection-observer.d.mts +0 -11
- package/dist/hooks/intersection-observer/use-intersection-observer.mjs +0 -33
- package/dist/hooks/interval/index.d.mts +0 -4
- package/dist/hooks/interval/index.mjs +0 -19
- package/dist/hooks/resize/index.d.mts +0 -8
- package/dist/hooks/resize/index.mjs +0 -24
- package/dist/hooks/scroll-direction/index.d.mts +0 -13
- package/dist/hooks/scroll-direction/index.mjs +0 -67
- package/dist/hooks/scroll-lock/index.d.mts +0 -9
- package/dist/hooks/scroll-lock/index.mjs +0 -59
- package/dist/hooks/step/index.d.mts +0 -15
- package/dist/hooks/step/index.mjs +0 -39
- package/dist/hooks/timeout/index.d.mts +0 -4
- package/dist/hooks/timeout/index.mjs +0 -19
- package/dist/hooks/window-resize/index.d.mts +0 -11
- package/dist/hooks/window-resize/index.mjs +0 -21
- package/dist/hooks/window-size/index.d.mts +0 -8
- package/dist/hooks/window-size/index.mjs +0 -31
- package/dist/i18n/context.d.mts +0 -9
- package/dist/i18n/context.mjs +0 -19
- package/dist/styles/base.css +0 -315
- package/dist/styles/tokens.css +0 -380
- package/dist/styles/tokens.generated.d.mts +0 -840
- package/dist/styles/tokens.generated.mjs +0 -813
- package/dist/styles/utilities.css +0 -62
- package/docs/references/helpers.md +0 -223
- package/docs/references/hooks.md +0 -301
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.rZZfaW_root {
|
|
5
|
+
border-radius: var(--radius-full);
|
|
6
|
+
font-weight: var(--font-weight-medium);
|
|
7
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
8
|
+
transition-duration: var(--duration-fast);
|
|
9
|
+
transition-timing-function: var(--easing-out);
|
|
10
|
+
border-style: solid;
|
|
11
|
+
border-width: 1px;
|
|
12
|
+
align-items: center;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.rZZfaW_sm {
|
|
17
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
18
|
+
padding-block: calc(var(--spacing) * .5);
|
|
19
|
+
font-size: var(--font-size-xs);
|
|
20
|
+
line-height: var(--line-height-xs);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.rZZfaW_md {
|
|
24
|
+
padding-inline: calc(var(--spacing) * 2.5);
|
|
25
|
+
padding-block: calc(var(--spacing) * 1);
|
|
26
|
+
font-size: var(--font-size-xs);
|
|
27
|
+
line-height: var(--line-height-xs);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.rZZfaW_lg {
|
|
31
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
32
|
+
padding-block: calc(var(--spacing) * 1.5);
|
|
33
|
+
font-size: var(--font-size-sm);
|
|
34
|
+
line-height: var(--line-height-sm);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.rZZfaW_neutralSolid {
|
|
38
|
+
border-color: var(--color-border-mute);
|
|
39
|
+
background-color: var(--color-bg-mute);
|
|
40
|
+
color: var(--color-fg-base);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.rZZfaW_neutralOutline {
|
|
44
|
+
border-color: var(--color-border-base);
|
|
45
|
+
background-color: var(--color-bg-base);
|
|
46
|
+
color: var(--color-fg-base);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.rZZfaW_infoSolid {
|
|
50
|
+
border-color: var(--color-border-info);
|
|
51
|
+
background-color: var(--color-bg-info);
|
|
52
|
+
color: var(--color-fg-info);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.rZZfaW_infoOutline {
|
|
56
|
+
border-color: var(--color-border-info);
|
|
57
|
+
background-color: var(--color-bg-base);
|
|
58
|
+
color: var(--color-fg-info);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.rZZfaW_successSolid {
|
|
62
|
+
border-color: var(--color-border-success);
|
|
63
|
+
background-color: var(--color-bg-success);
|
|
64
|
+
color: var(--color-fg-success);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.rZZfaW_successOutline {
|
|
68
|
+
border-color: var(--color-border-success);
|
|
69
|
+
background-color: var(--color-bg-base);
|
|
70
|
+
color: var(--color-fg-success);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.rZZfaW_warningSolid {
|
|
74
|
+
border-color: var(--color-border-warning);
|
|
75
|
+
background-color: var(--color-bg-warning);
|
|
76
|
+
color: var(--color-fg-warning);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.rZZfaW_warningOutline {
|
|
80
|
+
border-color: var(--color-border-warning);
|
|
81
|
+
background-color: var(--color-bg-base);
|
|
82
|
+
color: var(--color-fg-warning);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.rZZfaW_errorSolid {
|
|
86
|
+
border-color: var(--color-border-error);
|
|
87
|
+
background-color: var(--color-bg-error);
|
|
88
|
+
color: var(--color-fg-error);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rZZfaW_errorOutline {
|
|
92
|
+
border-color: var(--color-border-error);
|
|
93
|
+
background-color: var(--color-bg-base);
|
|
94
|
+
color: var(--color-fg-error);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.rZZfaW_interactive {
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (hover: hover) {
|
|
102
|
+
.rZZfaW_interactive.rZZfaW_neutralSolid:hover {
|
|
103
|
+
background-color: var(--color-bg-emphasize);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.rZZfaW_interactive.rZZfaW_neutralOutline:hover {
|
|
107
|
+
background-color: var(--color-bg-subtle);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.rZZfaW_interactive:is(.rZZfaW_infoSolid, .rZZfaW_successSolid, .rZZfaW_warningSolid, .rZZfaW_errorSolid):hover {
|
|
111
|
+
background-color: var(--color-bg-base);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.rZZfaW_interactive.rZZfaW_infoOutline:hover {
|
|
115
|
+
background-color: var(--color-bg-info);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.rZZfaW_interactive.rZZfaW_successOutline:hover {
|
|
119
|
+
background-color: var(--color-bg-success);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.rZZfaW_interactive.rZZfaW_warningOutline:hover {
|
|
123
|
+
background-color: var(--color-bg-warning);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.rZZfaW_interactive.rZZfaW_errorOutline:hover {
|
|
127
|
+
background-color: var(--color-bg-error);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.rZZfaW_interactive.rZZfaW_neutralSolid:active {
|
|
132
|
+
background-color: var(--color-bg-base);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.rZZfaW_interactive.rZZfaW_neutralOutline:active {
|
|
136
|
+
background-color: var(--color-bg-mute);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.rZZfaW_interactive:is(.rZZfaW_infoSolid, .rZZfaW_successSolid, .rZZfaW_warningSolid, .rZZfaW_errorSolid):active {
|
|
140
|
+
background-color: var(--color-bg-base);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.rZZfaW_interactive.rZZfaW_infoOutline:active {
|
|
144
|
+
background-color: var(--color-bg-info);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.rZZfaW_interactive.rZZfaW_successOutline:active {
|
|
148
|
+
background-color: var(--color-bg-success);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.rZZfaW_interactive.rZZfaW_warningOutline:active {
|
|
152
|
+
background-color: var(--color-bg-warning);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.rZZfaW_interactive.rZZfaW_errorOutline:active {
|
|
156
|
+
background-color: var(--color-bg-error);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@layer utilities;
|
|
@@ -16,6 +16,5 @@ type StaticProps = {
|
|
|
16
16
|
interactive?: false;
|
|
17
17
|
} & Omit<HTMLAttributes<HTMLSpanElement>, 'children' | 'className' | 'style'>;
|
|
18
18
|
type Props = BaseProps & (InteractiveProps | StaticProps);
|
|
19
|
-
declare const Badge: FC<Props>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { Badge };
|
|
19
|
+
export declare const Badge: FC<Props>;
|
|
20
|
+
//#endregion
|
|
@@ -1,11 +1,36 @@
|
|
|
1
|
-
import "../../_internal/focus-ring.mjs";
|
|
2
|
-
import
|
|
1
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
2
|
+
import badge_module_default from "./badge.module.mjs";
|
|
3
|
+
import { clsx } from "clsx";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
//#region src/components/data-display/badge/badge.tsx
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const SIZE = {
|
|
7
|
+
sm: badge_module_default.sm,
|
|
8
|
+
md: badge_module_default.md,
|
|
9
|
+
lg: badge_module_default.lg
|
|
8
10
|
};
|
|
11
|
+
const TONE = {
|
|
12
|
+
neutral: {
|
|
13
|
+
solid: badge_module_default.neutralSolid,
|
|
14
|
+
outline: badge_module_default.neutralOutline
|
|
15
|
+
},
|
|
16
|
+
info: {
|
|
17
|
+
solid: badge_module_default.infoSolid,
|
|
18
|
+
outline: badge_module_default.infoOutline
|
|
19
|
+
},
|
|
20
|
+
success: {
|
|
21
|
+
solid: badge_module_default.successSolid,
|
|
22
|
+
outline: badge_module_default.successOutline
|
|
23
|
+
},
|
|
24
|
+
warning: {
|
|
25
|
+
solid: badge_module_default.warningSolid,
|
|
26
|
+
outline: badge_module_default.warningOutline
|
|
27
|
+
},
|
|
28
|
+
error: {
|
|
29
|
+
solid: badge_module_default.errorSolid,
|
|
30
|
+
outline: badge_module_default.errorOutline
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const badgeClassName = (size, tone, variant, interactive) => clsx(badge_module_default.root, SIZE[size], TONE[tone][variant], interactive && [badge_module_default.interactive, focus_ring_module_default.ringNoBorder]);
|
|
9
34
|
const Badge = (props) => {
|
|
10
35
|
if (props.interactive === true) {
|
|
11
36
|
const { interactive, label, size = "md", tone = "neutral", variant = "solid", ...rest } = props;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './badge.css';
|
|
2
|
+
//#region src/components/data-display/badge/badge.module.css
|
|
3
|
+
var badge_module_default = {
|
|
4
|
+
"errorOutline": "rZZfaW_errorOutline",
|
|
5
|
+
"errorSolid": "rZZfaW_errorSolid",
|
|
6
|
+
"infoOutline": "rZZfaW_infoOutline",
|
|
7
|
+
"infoSolid": "rZZfaW_infoSolid",
|
|
8
|
+
"interactive": "rZZfaW_interactive",
|
|
9
|
+
"lg": "rZZfaW_lg",
|
|
10
|
+
"md": "rZZfaW_md",
|
|
11
|
+
"neutralOutline": "rZZfaW_neutralOutline",
|
|
12
|
+
"neutralSolid": "rZZfaW_neutralSolid",
|
|
13
|
+
"root": "rZZfaW_root",
|
|
14
|
+
"sm": "rZZfaW_sm",
|
|
15
|
+
"successOutline": "rZZfaW_successOutline",
|
|
16
|
+
"successSolid": "rZZfaW_successSolid",
|
|
17
|
+
"warningOutline": "rZZfaW_warningOutline",
|
|
18
|
+
"warningSolid": "rZZfaW_warningSolid"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { badge_module_default as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.v9O_zW_root {
|
|
5
|
+
border-radius: var(--radius-xl);
|
|
6
|
+
background-color: var(--color-bg-base);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.v9O_zW_shadow {
|
|
10
|
+
box-shadow: var(--shadow-sm);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.v9O_zW_outline {
|
|
14
|
+
border: 1px solid var(--color-border-mute);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.v9O_zW_full {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.v9O_zW_fit {
|
|
22
|
+
width: fit-content;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
26
|
+
.v9O_zW_interactive {
|
|
27
|
+
transition-property: transform, translate, scale, rotate;
|
|
28
|
+
transition-duration: var(--duration-fast);
|
|
29
|
+
transition-timing-function: var(--easing-in-out);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (hover: hover) {
|
|
33
|
+
.v9O_zW_interactive:hover {
|
|
34
|
+
scale: 1.02;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.v9O_zW_interactive:active {
|
|
39
|
+
scale: .98;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@layer utilities;
|
|
@@ -5,6 +5,5 @@ type CardProps = {
|
|
|
5
5
|
variant?: 'shadow' | 'outline';
|
|
6
6
|
interactive?: boolean;
|
|
7
7
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'style'>;
|
|
8
|
-
declare const Card: FC<CardProps>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Card };
|
|
8
|
+
export declare const Card: FC<CardProps>;
|
|
9
|
+
//#endregion
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import high_contrast_module_default from "../../_internal/high-contrast.module.mjs";
|
|
2
|
+
import card_module_default from "./card.module.mjs";
|
|
3
|
+
import { clsx } from "clsx";
|
|
2
4
|
import { jsx } from "react/jsx-runtime";
|
|
3
5
|
//#region src/components/data-display/card/card.tsx
|
|
6
|
+
const VARIANT = {
|
|
7
|
+
shadow: [card_module_default.shadow, high_contrast_module_default.edge],
|
|
8
|
+
outline: card_module_default.outline
|
|
9
|
+
};
|
|
10
|
+
const WIDTH = {
|
|
11
|
+
full: card_module_default.full,
|
|
12
|
+
fit: card_module_default.fit
|
|
13
|
+
};
|
|
4
14
|
const Card = ({ children, width = "full", variant = "shadow", interactive = false, ...rest }) => /* @__PURE__ */ jsx("div", {
|
|
5
15
|
...rest,
|
|
6
|
-
className:
|
|
16
|
+
className: clsx(card_module_default.root, VARIANT[variant], WIDTH[width], interactive && card_module_default.interactive),
|
|
7
17
|
children
|
|
8
18
|
});
|
|
9
19
|
//#endregion
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './card.css';
|
|
2
|
+
//#region src/components/data-display/card/card.module.css
|
|
3
|
+
var card_module_default = {
|
|
4
|
+
"fit": "v9O_zW_fit",
|
|
5
|
+
"full": "v9O_zW_full",
|
|
6
|
+
"interactive": "v9O_zW_interactive",
|
|
7
|
+
"outline": "v9O_zW_outline",
|
|
8
|
+
"root": "v9O_zW_root",
|
|
9
|
+
"shadow": "v9O_zW_shadow"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { card_module_default as default };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.rJ_sGW_root {
|
|
5
|
+
gap: calc(var(--spacing) * 3);
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.rJ_sGW_track {
|
|
11
|
+
gap: calc(var(--spacing) * 4);
|
|
12
|
+
overscroll-behavior-x: contain;
|
|
13
|
+
border-radius: var(--radius-lg);
|
|
14
|
+
padding: calc(var(--spacing) * 1);
|
|
15
|
+
scroll-snap-type: inline mandatory;
|
|
16
|
+
scrollbar-width: none;
|
|
17
|
+
scroll-padding-inline-start: calc(var(--spacing) * 1);
|
|
18
|
+
display: flex;
|
|
19
|
+
overflow: auto hidden;
|
|
20
|
+
|
|
21
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
22
|
+
scroll-behavior: smooth;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@container style(--writing: vertical) {
|
|
26
|
+
overscroll-behavior-y: contain;
|
|
27
|
+
overflow: hidden auto;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.rJ_sGW_controls {
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: calc(var(--spacing) * 3);
|
|
35
|
+
display: flex;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.rJ_sGW_arrow {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
|
|
41
|
+
@container style(--writing: vertical) {
|
|
42
|
+
rotate: 90deg;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rJ_sGW_position {
|
|
47
|
+
color: var(--color-fg-mute);
|
|
48
|
+
font-size: var(--font-size-sm);
|
|
49
|
+
line-height: var(--line-height-sm);
|
|
50
|
+
font-variant-numeric: tabular-nums;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.rJ_sGW_current {
|
|
54
|
+
color: var(--color-fg-base);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.rJ_sGW_divider {
|
|
58
|
+
margin-inline: calc(var(--spacing) * 1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.rJ_sGW_slide {
|
|
62
|
+
scroll-snap-align: start;
|
|
63
|
+
flex-shrink: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.rJ_sGW_full {
|
|
67
|
+
flex-basis: 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.rJ_sGW_lg {
|
|
71
|
+
flex-basis: 80%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.rJ_sGW_md {
|
|
75
|
+
flex-basis: calc(50% - .5rem);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rJ_sGW_sm {
|
|
79
|
+
flex-basis: calc(33.3333% - .666667rem);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@layer utilities;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
//#region src/components/data-display/carousel/carousel.d.ts
|
|
3
|
+
type SlideSize = 'full' | 'lg' | 'md' | 'sm';
|
|
4
|
+
export declare const Root: FC<PropsWithChildren<{
|
|
5
|
+
label: string;
|
|
6
|
+
slideSize?: SlideSize;
|
|
7
|
+
}>>;
|
|
8
|
+
export declare const Slide: FC<PropsWithChildren<{
|
|
9
|
+
label?: string;
|
|
10
|
+
}>>;
|
|
11
|
+
//#endregion
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
|
+
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
5
|
+
import { readWritingMode } from "../../../hooks/writing-mode/index.mjs";
|
|
6
|
+
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
7
|
+
import carousel_module_default from "./carousel.module.mjs";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
|
+
import { createContext, use, useEffect, useId, useRef, useState } from "react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
//#region src/components/data-display/carousel/carousel.tsx
|
|
12
|
+
const SlideSizeContext = createContext("full");
|
|
13
|
+
const SLIDE_SIZE = {
|
|
14
|
+
full: carousel_module_default.full,
|
|
15
|
+
lg: carousel_module_default.lg,
|
|
16
|
+
md: carousel_module_default.md,
|
|
17
|
+
sm: carousel_module_default.sm
|
|
18
|
+
};
|
|
19
|
+
const FULLY_VISIBLE = .95;
|
|
20
|
+
const INITIAL_POSITION = {
|
|
21
|
+
current: 0,
|
|
22
|
+
count: 0,
|
|
23
|
+
isAtStart: true,
|
|
24
|
+
isAtEnd: true
|
|
25
|
+
};
|
|
26
|
+
const measure = (track) => {
|
|
27
|
+
const isVertical = readWritingMode(track) === "vertical";
|
|
28
|
+
const box = track.getBoundingClientRect();
|
|
29
|
+
const visibility = Array.from(track.children, (slide) => {
|
|
30
|
+
const rect = slide.getBoundingClientRect();
|
|
31
|
+
const [start, end, boxStart, boxEnd] = isVertical ? [
|
|
32
|
+
rect.top,
|
|
33
|
+
rect.bottom,
|
|
34
|
+
box.top,
|
|
35
|
+
box.bottom
|
|
36
|
+
] : [
|
|
37
|
+
rect.left,
|
|
38
|
+
rect.right,
|
|
39
|
+
box.left,
|
|
40
|
+
box.right
|
|
41
|
+
];
|
|
42
|
+
const size = end - start;
|
|
43
|
+
const overlap = Math.min(end, boxEnd) - Math.max(start, boxStart);
|
|
44
|
+
return size === 0 ? 0 : Math.max(0, overlap) / size;
|
|
45
|
+
});
|
|
46
|
+
return {
|
|
47
|
+
current: Math.max(0, visibility.indexOf(Math.max(...visibility))),
|
|
48
|
+
count: visibility.length,
|
|
49
|
+
isAtStart: (visibility[0] ?? 0) >= FULLY_VISIBLE,
|
|
50
|
+
isAtEnd: (visibility.at(-1) ?? 0) >= FULLY_VISIBLE
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
const useCarousel = (track) => {
|
|
54
|
+
const [position, setPosition] = useState(INITIAL_POSITION);
|
|
55
|
+
const targetRef = useRef(null);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (track === null) return void 0;
|
|
58
|
+
const intersection = new IntersectionObserver(() => {
|
|
59
|
+
setPosition(measure(track));
|
|
60
|
+
}, {
|
|
61
|
+
root: track,
|
|
62
|
+
threshold: [
|
|
63
|
+
0,
|
|
64
|
+
.5,
|
|
65
|
+
FULLY_VISIBLE
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
const observeSlides = () => {
|
|
69
|
+
targetRef.current = null;
|
|
70
|
+
intersection.disconnect();
|
|
71
|
+
for (const slide of track.children) intersection.observe(slide);
|
|
72
|
+
};
|
|
73
|
+
const settle = () => {
|
|
74
|
+
targetRef.current = null;
|
|
75
|
+
};
|
|
76
|
+
const mutation = new MutationObserver(observeSlides);
|
|
77
|
+
mutation.observe(track, { childList: true });
|
|
78
|
+
observeSlides();
|
|
79
|
+
track.addEventListener("scrollend", settle);
|
|
80
|
+
return () => {
|
|
81
|
+
track.removeEventListener("scrollend", settle);
|
|
82
|
+
mutation.disconnect();
|
|
83
|
+
intersection.disconnect();
|
|
84
|
+
};
|
|
85
|
+
}, [track]);
|
|
86
|
+
const step = (delta) => {
|
|
87
|
+
if (track === null) return;
|
|
88
|
+
const from = targetRef.current ?? measure(track).current;
|
|
89
|
+
const target = Math.min(Math.max(from + delta, 0), track.children.length - 1);
|
|
90
|
+
targetRef.current = target;
|
|
91
|
+
track.children[target]?.scrollIntoView({
|
|
92
|
+
block: "nearest",
|
|
93
|
+
inline: "start"
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
position,
|
|
98
|
+
step
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
const Root = ({ label, slideSize = "full", children }) => {
|
|
102
|
+
const messages = getMessages();
|
|
103
|
+
const trackId = useId();
|
|
104
|
+
const [track, setTrack] = useState(null);
|
|
105
|
+
const { position: { current, count, isAtStart, isAtEnd }, step } = useCarousel(track);
|
|
106
|
+
const showsPosition = (slideSize === "full" || slideSize === "lg") && count > 0;
|
|
107
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
108
|
+
"aria-label": label,
|
|
109
|
+
"aria-roledescription": messages.carousel,
|
|
110
|
+
className: carousel_module_default.root,
|
|
111
|
+
children: [/* @__PURE__ */ jsx(SlideSizeContext, {
|
|
112
|
+
value: slideSize,
|
|
113
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
114
|
+
className: clsx(carousel_module_default.track, focus_ring_module_default.ringNoBorder),
|
|
115
|
+
id: trackId,
|
|
116
|
+
ref: setTrack,
|
|
117
|
+
tabIndex: 0,
|
|
118
|
+
children
|
|
119
|
+
})
|
|
120
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
121
|
+
className: carousel_module_default.controls,
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ jsx(IconButton, {
|
|
124
|
+
"aria-controls": trackId,
|
|
125
|
+
disabled: isAtStart,
|
|
126
|
+
label: messages.carouselPrevious,
|
|
127
|
+
onClick: () => {
|
|
128
|
+
step(-1);
|
|
129
|
+
},
|
|
130
|
+
size: "sm",
|
|
131
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
132
|
+
className: carousel_module_default.arrow,
|
|
133
|
+
children: /* @__PURE__ */ jsx(ChevronIcon, {
|
|
134
|
+
direction: "left",
|
|
135
|
+
size: "sm"
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
}),
|
|
139
|
+
showsPosition ? /* @__PURE__ */ jsxs("p", {
|
|
140
|
+
"aria-live": "polite",
|
|
141
|
+
className: carousel_module_default.position,
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ jsx("span", {
|
|
144
|
+
className: carousel_module_default.current,
|
|
145
|
+
children: current + 1
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ jsx("span", {
|
|
148
|
+
className: carousel_module_default.divider,
|
|
149
|
+
children: "/"
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ jsx("span", { children: count })
|
|
152
|
+
]
|
|
153
|
+
}) : null,
|
|
154
|
+
/* @__PURE__ */ jsx(IconButton, {
|
|
155
|
+
"aria-controls": trackId,
|
|
156
|
+
disabled: isAtEnd,
|
|
157
|
+
label: messages.carouselNext,
|
|
158
|
+
onClick: () => {
|
|
159
|
+
step(1);
|
|
160
|
+
},
|
|
161
|
+
size: "sm",
|
|
162
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
163
|
+
className: carousel_module_default.arrow,
|
|
164
|
+
children: /* @__PURE__ */ jsx(ChevronIcon, {
|
|
165
|
+
direction: "right",
|
|
166
|
+
size: "sm"
|
|
167
|
+
})
|
|
168
|
+
})
|
|
169
|
+
})
|
|
170
|
+
]
|
|
171
|
+
})]
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
const Slide = ({ label, children }) => {
|
|
175
|
+
const messages = getMessages();
|
|
176
|
+
const slideSize = use(SlideSizeContext);
|
|
177
|
+
return /* @__PURE__ */ jsx("div", {
|
|
178
|
+
"aria-label": label,
|
|
179
|
+
"aria-roledescription": messages.carouselSlide,
|
|
180
|
+
className: clsx(carousel_module_default.slide, SLIDE_SIZE[slideSize]),
|
|
181
|
+
role: "group",
|
|
182
|
+
children
|
|
183
|
+
});
|
|
184
|
+
};
|
|
185
|
+
//#endregion
|
|
186
|
+
export { Root, Slide };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './carousel.css';
|
|
2
|
+
//#region src/components/data-display/carousel/carousel.module.css
|
|
3
|
+
var carousel_module_default = {
|
|
4
|
+
"arrow": "rJ_sGW_arrow",
|
|
5
|
+
"controls": "rJ_sGW_controls",
|
|
6
|
+
"current": "rJ_sGW_current",
|
|
7
|
+
"divider": "rJ_sGW_divider",
|
|
8
|
+
"full": "rJ_sGW_full",
|
|
9
|
+
"lg": "rJ_sGW_lg",
|
|
10
|
+
"md": "rJ_sGW_md",
|
|
11
|
+
"position": "rJ_sGW_position",
|
|
12
|
+
"root": "rJ_sGW_root",
|
|
13
|
+
"slide": "rJ_sGW_slide",
|
|
14
|
+
"sm": "rJ_sGW_sm",
|
|
15
|
+
"track": "rJ_sGW_track"
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { carousel_module_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/data-display/carousel/index.d.ts
|
|
2
|
+
export declare const Carousel: {
|
|
3
|
+
readonly Root: import("react").FC<import("react").PropsWithChildren<{
|
|
4
|
+
label: string;
|
|
5
|
+
slideSize?: "full" | "lg" | "md" | "sm";
|
|
6
|
+
}>>;
|
|
7
|
+
readonly Slide: import("react").FC<import("react").PropsWithChildren<{
|
|
8
|
+
label?: string;
|
|
9
|
+
}>>;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
._9ZZMOW_root {
|
|
5
|
+
margin: calc(var(--spacing) * .5);
|
|
6
|
+
border-radius: var(--radius-md);
|
|
7
|
+
background-color: var(--color-bg-mute);
|
|
8
|
+
padding-inline: calc(var(--spacing) * 1.5);
|
|
9
|
+
|
|
10
|
+
@media (width >= 40rem) {
|
|
11
|
+
padding-block: calc(var(--spacing) * .5);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
._9ZZMOW_withColors {
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: calc(var(--spacing) * 1);
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
|
|
20
|
+
@container style(--writing: vertical) {
|
|
21
|
+
gap: 0;
|
|
22
|
+
display: inline;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
._9ZZMOW_swatch {
|
|
27
|
+
width: calc(var(--spacing) * 3);
|
|
28
|
+
height: calc(var(--spacing) * 3);
|
|
29
|
+
border: 1px solid var(--color-border-base);
|
|
30
|
+
border-radius: var(--radius-sm);
|
|
31
|
+
forced-color-adjust: none;
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
display: inline-block;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@layer utilities;
|