@k8ordo/ui 1.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 +206 -171
- 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 +8 -11
- package/dist/components/ai/conversation/conversation.mjs +39 -40
- package/dist/components/ai/conversation/conversation.module.mjs +11 -0
- package/dist/components/ai/conversation/index.d.mts +15 -2
- package/dist/components/ai/conversation/index.mjs +8 -1
- package/dist/components/ai/index.d.mts +8 -10
- package/dist/components/ai/index.mjs +7 -5
- package/dist/components/ai/message/index.d.mts +39 -2
- package/dist/components/ai/message/index.mjs +12 -1
- package/dist/components/ai/message/message.css +71 -0
- package/dist/components/ai/message/message.d.mts +33 -5
- package/dist/components/ai/message/message.mjs +98 -12
- package/dist/components/ai/message/message.module.mjs +18 -0
- package/dist/components/ai/prompt-input/index.d.mts +31 -2
- package/dist/components/ai/prompt-input/index.mjs +10 -1
- package/dist/components/ai/prompt-input/prompt-input.css +101 -0
- package/dist/components/ai/prompt-input/prompt-input.d.mts +15 -8
- package/dist/components/ai/prompt-input/prompt-input.mjs +152 -42
- 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 +13 -2
- package/dist/components/ai/suggestion/index.mjs +7 -1
- package/dist/components/ai/suggestion/suggestion.css +32 -0
- package/dist/components/ai/suggestion/suggestion.d.mts +3 -6
- package/dist/components/ai/suggestion/suggestion.mjs +8 -11
- 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 +71 -58
- 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 +5 -3
- package/dist/components/form/checkbox/checkbox.mjs +30 -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 +5 -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 +18 -19
- package/dist/components/form/file-field/file-field.mjs +130 -42
- package/dist/components/form/file-field/file-field.module.mjs +17 -0
- package/dist/components/form/file-field/index.d.mts +20 -2
- package/dist/components/form/file-field/index.mjs +9 -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 +4 -3
- package/dist/components/form/radio/radio.mjs +16 -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 +62 -29
- package/dist/components/index.mjs +36 -14
- 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 +19 -2
- package/dist/components/navigation/tabs/index.mjs +9 -1
- package/dist/components/navigation/tabs/tabs.css +70 -0
- package/dist/components/navigation/tabs/tabs.d.mts +16 -19
- package/dist/components/navigation/tabs/tabs.mjs +52 -49
- 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 +12 -17
- package/dist/components/overlays/dialog/dialog.mjs +11 -13
- package/dist/components/overlays/dialog/dialog.module.mjs +10 -0
- package/dist/components/overlays/dialog/index.d.mts +17 -2
- package/dist/components/overlays/dialog/index.mjs +8 -1
- 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 +19 -26
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +12 -20
- 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 +30 -2
- package/dist/components/overlays/dropdown-menu/index.mjs +12 -1
- 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 +16 -16
- 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 +27 -2
- package/dist/components/overlays/list-box/index.mjs +9 -1
- package/dist/components/overlays/list-box/list-box.css +74 -0
- package/dist/components/overlays/list-box/list-box.d.mts +20 -23
- package/dist/components/overlays/list-box/list-box.mjs +17 -21
- 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 +25 -2
- package/dist/components/overlays/popover/index.mjs +8 -1
- package/dist/components/overlays/popover/popover.css +51 -0
- package/dist/components/overlays/popover/popover.d.mts +18 -20
- package/dist/components/overlays/popover/popover.mjs +13 -12
- 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 +22 -2
- package/dist/components/overlays/tooltip/index.mjs +8 -1
- package/dist/components/overlays/tooltip/tooltip.css +15 -0
- package/dist/components/overlays/tooltip/tooltip.d.mts +19 -24
- package/dist/components/overlays/tooltip/tooltip.mjs +5 -9
- 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 -23
- package/dist/hooks/index.mjs +2 -22
- 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 +40 -47
- package/dist/index.mjs +36 -42
- 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 +292 -34
- package/dist/integrations/_shared/renderers.module.mjs +14 -0
- package/dist/integrations/_shared/schemas.d.mts +388 -104
- 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/{hooks/focus-trap/index.d.mts → internal/focus-trap.d.mts} +6 -7
- package/dist/{hooks/focus-trap/index.mjs → internal/focus-trap.mjs} +5 -5
- 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 -2534
- 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 +340 -158
- package/docs/llms.txt +18 -10
- package/docs/props.generated.json +2157 -292
- package/docs/references/ai-chat.md +396 -113
- package/docs/references/color.md +258 -113
- package/docs/references/components.md +1891 -461
- package/docs/references/generative-ui.md +163 -34
- package/docs/references/interaction-design.md +103 -73
- package/docs/references/spatial-design.md +112 -90
- package/docs/references/types.md +101 -0
- package/docs/references/typography.md +182 -73
- package/package.json +71 -70
- 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/hash/index.d.mts +0 -4
- package/dist/hooks/hash/index.mjs +0 -25
- 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/local-storage/index.d.mts +0 -4
- package/dist/hooks/local-storage/index.mjs +0 -46
- 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/session-storage/index.d.mts +0 -4
- package/dist/hooks/session-storage/index.mjs +0 -46
- 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 -120
- package/docs/references/hooks.md +0 -314
package/dist/index.mjs
CHANGED
|
@@ -1,36 +1,5 @@
|
|
|
1
|
-
import { cn } from "./helpers/cn.mjs";
|
|
2
1
|
import { Spinner } from "./components/feedback/spinner/spinner.mjs";
|
|
3
2
|
import { Button } from "./components/buttons/button/button.mjs";
|
|
4
|
-
import { chain } from "./helpers/chain.mjs";
|
|
5
|
-
import { createSafeContext } from "./helpers/create-safe-context.mjs";
|
|
6
|
-
import { mergeProps } from "./helpers/merge-props.mjs";
|
|
7
|
-
import { mergeRefs } from "./helpers/merge-refs.mjs";
|
|
8
|
-
import { useClickAway } from "./hooks/click-away/index.mjs";
|
|
9
|
-
import { useClient } from "./hooks/client/index.mjs";
|
|
10
|
-
import { useClipboard } from "./hooks/clipboard/index.mjs";
|
|
11
|
-
import { useControllableState } from "./hooks/controllable-state/index.mjs";
|
|
12
|
-
import { useDebouncedTransition } from "./hooks/debounced-transition/index.mjs";
|
|
13
|
-
import { useDeferredDebounce } from "./hooks/deferred-debounce/index.mjs";
|
|
14
|
-
import { useDisclosure } from "./hooks/disclosure/index.mjs";
|
|
15
|
-
import { useHash } from "./hooks/hash/index.mjs";
|
|
16
|
-
import { useHover } from "./hooks/hover/index.mjs";
|
|
17
|
-
import { useIntersectionObserver } from "./hooks/intersection-observer/use-intersection-observer.mjs";
|
|
18
|
-
import { useInView } from "./hooks/intersection-observer/use-in-view.mjs";
|
|
19
|
-
import { useInterval } from "./hooks/interval/index.mjs";
|
|
20
|
-
import { useBreakpoint } from "./hooks/breakpoint/index.mjs";
|
|
21
|
-
import { useLocalStorage } from "./hooks/local-storage/index.mjs";
|
|
22
|
-
import { useResize } from "./hooks/resize/index.mjs";
|
|
23
|
-
import { useScrollDirection } from "./hooks/scroll-direction/index.mjs";
|
|
24
|
-
import { useScrollLock } from "./hooks/scroll-lock/index.mjs";
|
|
25
|
-
import { useSessionStorage } from "./hooks/session-storage/index.mjs";
|
|
26
|
-
import { useStep } from "./hooks/step/index.mjs";
|
|
27
|
-
import { useTimeout } from "./hooks/timeout/index.mjs";
|
|
28
|
-
import { useWindowResize } from "./hooks/window-resize/index.mjs";
|
|
29
|
-
import { useWindowSize } from "./hooks/window-size/index.mjs";
|
|
30
|
-
import { useWritingMode } from "./hooks/writing-mode/index.mjs";
|
|
31
|
-
import { Popover } from "./components/overlays/popover/popover.mjs";
|
|
32
|
-
import { Tooltip } from "./components/overlays/tooltip/tooltip.mjs";
|
|
33
|
-
import { IconButton } from "./components/buttons/icon-button/icon-button.mjs";
|
|
34
3
|
import { ChromeIcon, EdgeIcon, FirefoxIcon, SafariIcon } from "./components/icons/browsers.mjs";
|
|
35
4
|
import { ColorScaleIcon } from "./components/icons/color-scale.mjs";
|
|
36
5
|
import { GitHubIcon } from "./components/icons/github-mark.mjs";
|
|
@@ -39,47 +8,72 @@ import { AIIcon, AccessibilityIcon, AlertIcon, AssistantIcon, AtomIcon, BadIcon,
|
|
|
39
8
|
import { QiitaIcon } from "./components/icons/qiita.mjs";
|
|
40
9
|
import { TwitterIcon } from "./components/icons/twitter.mjs";
|
|
41
10
|
import { VerticalWritingIcon } from "./components/icons/vertical-writing.mjs";
|
|
11
|
+
import { Popover } from "./components/overlays/popover/index.mjs";
|
|
12
|
+
import { Tooltip } from "./components/overlays/tooltip/index.mjs";
|
|
13
|
+
import { IconButton } from "./components/buttons/icon-button/icon-button.mjs";
|
|
14
|
+
import { CopyButton } from "./components/buttons/copy-button/copy-button.mjs";
|
|
15
|
+
import { Separator } from "./components/layout/separator/separator.mjs";
|
|
16
|
+
import { Toolbar } from "./components/buttons/toolbar/index.mjs";
|
|
42
17
|
import { Accordion } from "./components/data-display/accordion/index.mjs";
|
|
43
18
|
import { Avatar } from "./components/data-display/avatar/avatar.mjs";
|
|
44
19
|
import { Badge } from "./components/data-display/badge/badge.mjs";
|
|
45
20
|
import { Card } from "./components/data-display/card/card.mjs";
|
|
21
|
+
import { Carousel } from "./components/data-display/carousel/index.mjs";
|
|
46
22
|
import { Code } from "./components/data-display/code/code.mjs";
|
|
47
|
-
import {
|
|
23
|
+
import { Checkbox } from "./components/form/checkbox/checkbox.mjs";
|
|
24
|
+
import { CheckboxGroup } from "./components/form/checkbox-group/index.mjs";
|
|
25
|
+
import { EmptyState } from "./components/feedback/empty-state/empty-state.mjs";
|
|
48
26
|
import { Table } from "./components/data-display/table/table.mjs";
|
|
27
|
+
import { DataTable } from "./components/data-display/data-table/data-table.mjs";
|
|
28
|
+
import { Heading } from "./components/data-display/heading/heading.mjs";
|
|
29
|
+
import { Kbd } from "./components/data-display/kbd/kbd.mjs";
|
|
30
|
+
import { Prose } from "./components/data-display/prose/prose.mjs";
|
|
31
|
+
import { Tree } from "./components/data-display/tree/tree.mjs";
|
|
49
32
|
import { Alert } from "./components/feedback/alert/alert.mjs";
|
|
33
|
+
import { Callout } from "./components/feedback/callout/callout.mjs";
|
|
50
34
|
import { Progress } from "./components/feedback/progress/progress.mjs";
|
|
51
35
|
import { Skeleton } from "./components/feedback/skeleton/skeleton.mjs";
|
|
52
36
|
import { useToast } from "./components/feedback/toast/context.mjs";
|
|
53
37
|
import { ToastProvider } from "./components/feedback/toast/provider.mjs";
|
|
54
38
|
import { Autocomplete } from "./components/form/autocomplete/autocomplete.mjs";
|
|
55
|
-
import {
|
|
39
|
+
import { Calendar } from "./components/form/calendar/calendar.mjs";
|
|
56
40
|
import { CheckboxCard } from "./components/form/checkbox-card/checkbox-card.mjs";
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
41
|
+
import { ColorPicker } from "./components/form/color-picker/color-picker.mjs";
|
|
42
|
+
import { Combobox } from "./components/form/combobox/combobox.mjs";
|
|
43
|
+
import { DateField } from "./components/form/date-field/date-field.mjs";
|
|
44
|
+
import { DatePicker } from "./components/form/date-picker/date-picker.mjs";
|
|
45
|
+
import { FileField } from "./components/form/file-field/index.mjs";
|
|
59
46
|
import { Form } from "./components/form/form/form.mjs";
|
|
60
47
|
import { FormControl } from "./components/form/form-control/form-control.mjs";
|
|
61
48
|
import { NumberField } from "./components/form/number-field/number-field.mjs";
|
|
62
49
|
import { PasswordInput } from "./components/form/password-input/password-input.mjs";
|
|
63
50
|
import { Radio } from "./components/form/radio/radio.mjs";
|
|
64
51
|
import { RadioCard } from "./components/form/radio-card/radio-card.mjs";
|
|
52
|
+
import { RangeSlider } from "./components/form/range-slider/range-slider.mjs";
|
|
65
53
|
import { Select } from "./components/form/select/select.mjs";
|
|
66
54
|
import { Slider } from "./components/form/slider/slider.mjs";
|
|
67
55
|
import { Switch } from "./components/form/switch/switch.mjs";
|
|
68
56
|
import { TextField } from "./components/form/text-field/text-field.mjs";
|
|
69
57
|
import { Textarea } from "./components/form/textarea/textarea.mjs";
|
|
70
58
|
import { Grid } from "./components/layout/grid/grid.mjs";
|
|
71
|
-
import {
|
|
72
|
-
import { Separator } from "./components/layout/separator/separator.mjs";
|
|
59
|
+
import { ResizablePanels } from "./components/layout/resizable-panels/index.mjs";
|
|
73
60
|
import { Stack } from "./components/layout/stack/stack.mjs";
|
|
74
61
|
import { Anchor } from "./components/navigation/anchor/anchor.mjs";
|
|
75
62
|
import { Breadcrumb } from "./components/navigation/breadcrumb/index.mjs";
|
|
76
63
|
import { Pagination } from "./components/navigation/pagination/pagination.mjs";
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
64
|
+
import { Stepper } from "./components/navigation/stepper/stepper.mjs";
|
|
65
|
+
import { SideNav } from "./components/navigation/side-nav/index.mjs";
|
|
66
|
+
import { TableOfContents } from "./components/navigation/table-of-contents/table-of-contents.mjs";
|
|
67
|
+
import { Tabs } from "./components/navigation/tabs/index.mjs";
|
|
68
|
+
import { InView } from "./components/observers/in-view/in-view.mjs";
|
|
69
|
+
import { Resize } from "./components/observers/resize/resize.mjs";
|
|
79
70
|
import { UIProvider } from "./components/providers/ui-provider.mjs";
|
|
80
71
|
import { PortalRootProvider, usePortalRoot } from "./components/providers/portal-root.mjs";
|
|
81
72
|
import { Modal } from "./components/overlays/modal/modal.mjs";
|
|
73
|
+
import { CommandPalette } from "./components/overlays/command-palette/command-palette.mjs";
|
|
74
|
+
import { ContextMenu } from "./components/overlays/context-menu/index.mjs";
|
|
75
|
+
import { Dialog } from "./components/overlays/dialog/index.mjs";
|
|
82
76
|
import { Drawer } from "./components/overlays/drawer/drawer.mjs";
|
|
83
|
-
import { DropdownMenu } from "./components/overlays/dropdown-menu/
|
|
84
|
-
import { ListBox } from "./components/overlays/list-box/
|
|
85
|
-
export { AIIcon, AccessibilityIcon, Accordion, Alert, AlertIcon, Anchor, AssistantIcon, AtomIcon, Autocomplete, Avatar, BadIcon, Badge, BlogIcon, BoringIcon, Breadcrumb, Button, Card, CheckIcon, Checkbox, CheckboxCard, CheckboxGroup, ChevronIcon, ChromeIcon, CloseIcon, Code, CodeXmlIcon, ColorContrastIcon, ColorInfoIcon, ColorScaleIcon, CopyIcon, DarkModeIcon, Dialog, DifficultIcon, Drawer, DropdownMenu, EasyIcon, EdgeIcon, ExternalLinkIcon, FileField, FirefoxIcon, FlaskIcon, ForkIcon, Form, FormControl, FormIcon, FullscreenIcon, GitHubIcon, GoodIcon, Grid, Heading, HistoryIcon, HorizontalWritingIcon, IconButton, InformativeIcon, InterestingIcon, LightModeIcon, LinkIcon, ListBox, ListIcon, LocationIcon, LockIcon, LockOpenIcon, Logo, LogoIcon, MailIcon, MinusIcon, MixedColorIcon, Modal, NavigationMenuIcon, NewsIcon, NumberField, PackageIcon, Pagination, PaletteIcon, PasswordInput, PlusIcon, Popover, PortalRootProvider, PrepareIcon, Progress, PublishDateIcon, QiitaIcon, RSSIcon, Radio, RadioCard, RefreshIcon,
|
|
77
|
+
import { DropdownMenu } from "./components/overlays/dropdown-menu/index.mjs";
|
|
78
|
+
import { ListBox } from "./components/overlays/list-box/index.mjs";
|
|
79
|
+
export { AIIcon, AccessibilityIcon, Accordion, Alert, AlertIcon, Anchor, AssistantIcon, AtomIcon, Autocomplete, Avatar, BadIcon, Badge, BlogIcon, BoringIcon, Breadcrumb, Button, Calendar, Callout, Card, Carousel, CheckIcon, Checkbox, CheckboxCard, CheckboxGroup, ChevronIcon, ChromeIcon, CloseIcon, Code, CodeXmlIcon, ColorContrastIcon, ColorInfoIcon, ColorPicker, ColorScaleIcon, Combobox, CommandPalette, ContextMenu, CopyButton, CopyIcon, DarkModeIcon, DataTable, DateField, DatePicker, Dialog, DifficultIcon, Drawer, DropdownMenu, EasyIcon, EdgeIcon, EmptyState, ExternalLinkIcon, FileField, FirefoxIcon, FlaskIcon, ForkIcon, Form, FormControl, FormIcon, FullscreenIcon, GitHubIcon, GoodIcon, Grid, Heading, HistoryIcon, HorizontalWritingIcon, IconButton, InView, InformativeIcon, InterestingIcon, Kbd, LightModeIcon, LinkIcon, ListBox, ListIcon, LocationIcon, LockIcon, LockOpenIcon, Logo, LogoIcon, MailIcon, MinusIcon, MixedColorIcon, Modal, NavigationMenuIcon, NewsIcon, NumberField, PackageIcon, Pagination, PaletteIcon, PasswordInput, PlusIcon, Popover, PortalRootProvider, PrepareIcon, Progress, Prose, PublishDateIcon, QiitaIcon, RSSIcon, Radio, RadioCard, RangeSlider, RefreshIcon, ResizablePanels, Resize, SafariIcon, Select, SendIcon, Separator, ShallowIcon, ShieldCheckIcon, SideNav, Skeleton, SlideIcon, Slider, SparklesIcon, Spinner, SquircleIcon, Stack, Stepper, SubscribeIcon, Switch, Table, TableIcon, TableOfContents, Tabs, TagIcon, TextField, Textarea, ToastProvider, Toolbar, Tooltip, Tree, TwitterIcon, UIProvider, UpdateDateIcon, VerticalWritingIcon, ViewIcon, ViewOffIcon, usePortalRoot, useToast };
|
|
@@ -12,7 +12,6 @@ import { Library } from "@openuidev/lang-core";
|
|
|
12
12
|
* OpenUI は schema と描画関数を `defineComponent` で同居させる設計なので、
|
|
13
13
|
* このファクトリ自体は描画関数を opaque な `C` として受け取り中身を見ない。
|
|
14
14
|
*/
|
|
15
|
-
type ComponentRenderers<C> = Partial<Record<string, C>>;
|
|
16
|
-
declare const buildComponentLibrary: <C>(render: ComponentRenderers<C>) => Library<C>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { ComponentRenderers, buildComponentLibrary };
|
|
15
|
+
export type ComponentRenderers<C> = Partial<Record<string, C>>;
|
|
16
|
+
export declare const buildComponentLibrary: <C>(render: ComponentRenderers<C>) => Library<C>;
|
|
17
|
+
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { accordionProps, alertProps, anchorProps, autocompleteProps, avatarProps, badgeProps, breadcrumbProps, buttonProps, cardProps, checkboxCardProps, checkboxGroupProps, checkboxProps, chevronIconProps, codeProps, dialogProps, drawerProps, dropdownMenuProps, fileFieldProps, formControlProps, formProps, gridProps, headingProps, iconButtonProps, iconProps, listBoxProps, modalProps, numberFieldProps, paginationProps, passwordInputProps, popoverProps, progressProps, radioCardProps, radioProps,
|
|
1
|
+
import { accordionProps, alertProps, anchorProps, autocompleteProps, avatarProps, badgeProps, breadcrumbProps, buttonProps, calendarProps, calloutProps, cardProps, carouselProps, checkboxCardProps, checkboxGroupProps, checkboxProps, chevronIconProps, codeProps, colorPickerProps, comboboxProps, copyButtonProps, dataTableProps, dateFieldProps, datePickerProps, dialogProps, drawerProps, dropdownMenuProps, emptyStateProps, fileFieldProps, formControlProps, formProps, gridProps, headingProps, iconButtonProps, iconProps, kbdProps, listBoxProps, modalProps, numberFieldProps, paginationProps, passwordInputProps, popoverProps, progressProps, radioCardProps, radioProps, rangeSliderProps, selectProps, separatorProps, sideNavProps, skeletonProps, sliderProps, spinnerProps, stackProps, statusIconProps, stepperProps, switchProps, tableProps, tabsProps, textFieldProps, textareaProps, toastProps, toolbarProps, tooltipProps, treeProps } from "./schemas.mjs";
|
|
2
2
|
import { createLibrary, defineComponent } from "@openuidev/lang-core";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/integrations/_shared/openui-defs.ts
|
|
@@ -9,58 +9,76 @@ const buildComponentLibrary = (render) => {
|
|
|
9
9
|
props,
|
|
10
10
|
component: render[name]
|
|
11
11
|
});
|
|
12
|
-
const Button = def("Button", "
|
|
13
|
-
const IconButton = def("IconButton", "
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
12
|
+
const Button = def("Button", "Action button. With href it renders as a link (<a>).", buttonProps);
|
|
13
|
+
const IconButton = def("IconButton", "Icon-only button (label is required).", iconButtonProps);
|
|
14
|
+
const CopyButton = def("CopyButton", "Button that copies value to the clipboard and confirms it.", copyButtonProps);
|
|
15
|
+
const Badge = def("Badge", "Badge for a status or a label.", badgeProps);
|
|
16
|
+
const Heading = def("Heading", "Heading (h1 to h6).", headingProps);
|
|
17
|
+
const Anchor = def("Anchor", "Text link.", anchorProps);
|
|
18
|
+
const Avatar = def("Avatar", "Avatar (an image or initials).", avatarProps);
|
|
19
|
+
const Code = def("Code", "Inline code or value.", codeProps);
|
|
20
|
+
const Kbd = def("Kbd", "Keyboard shortcut. keys lists the keys pressed together, and each is drawn as its own key cap.", kbdProps);
|
|
21
|
+
const EmptyState = def("EmptyState", "Placeholder for a list, table, or search with nothing to show: a title, an optional description, and an optional icon.", emptyStateProps);
|
|
22
|
+
const Icon = def("Icon", "Icon, chosen by name.", iconProps);
|
|
23
|
+
const ChevronIcon = def("ChevronIcon", "Arrow icon. direction sets which way it points.", chevronIconProps);
|
|
24
|
+
const StatusIcon = def("StatusIcon", "Icon for a status (success/info/warning/error). It is decorative; to show a message, use Alert.", statusIconProps);
|
|
25
|
+
const Alert = def("Alert", "Alert that reports a status. message is a string or an array of strings.", alertProps);
|
|
26
|
+
const Callout = def("Callout", "Note inside the content (a tip, a caveat). Unlike Alert, it is not announced as a status. content is plain text; label is an optional bold line above it.", calloutProps);
|
|
27
|
+
const Spinner = def("Spinner", "Loading spinner.", spinnerProps);
|
|
28
|
+
const Progress = def("Progress", "Progress bar. Leave value out when progress is unknown; it then shows an animated bar.", progressProps);
|
|
29
|
+
const Skeleton = def("Skeleton", "Loading placeholder.", skeletonProps);
|
|
30
|
+
const Separator = def("Separator", "Divider line.", separatorProps);
|
|
31
|
+
const Tabs = def("Tabs", "Tabs. Each tab has a label and text content; content must be a plain string.", tabsProps);
|
|
32
|
+
const Accordion = def("Accordion", "Accordion of items that open and close. Each item has a title and text content; content must be a plain string.", accordionProps);
|
|
33
|
+
const Stepper = def("Stepper", "Steps of a process in order, marking the ones done and the current one (display only).", stepperProps);
|
|
34
|
+
const Breadcrumb = def("Breadcrumb", "Breadcrumb trail.", breadcrumbProps);
|
|
35
|
+
const SideNav = def("SideNav", "Side navigation: groups of links, each group under a small title. Mark the page being shown with current: true.", sideNavProps);
|
|
36
|
+
const Table = def("Table", "Table with columns and rows (the cell strings of each row). Every row must have exactly as many cells as there are columns.", tableProps);
|
|
37
|
+
const DataTable = def("DataTable", "Table the reader can sort (by the columns marked sortable) and, with selectable, pick rows from. Every row must have exactly as many cells as there are columns.", dataTableProps);
|
|
38
|
+
const Tree = def("Tree", "Tree of nodes that open and close, such as files and folders, navigable with the arrow keys. List every node flat; a child names its parent by parentId.", treeProps);
|
|
39
|
+
const TextField = def("TextField", "Single-line text input, bound to form state by name.", textFieldProps);
|
|
40
|
+
const Textarea = def("Textarea", "Multi-line text input, bound to form state by name.", textareaProps);
|
|
41
|
+
const PasswordInput = def("PasswordInput", "Password input, bound to form state by name.", passwordInputProps);
|
|
42
|
+
const NumberField = def("NumberField", "Number input, bound to form state by name.", numberFieldProps);
|
|
43
|
+
const Slider = def("Slider", "Slider, bound to form state by name.", sliderProps);
|
|
44
|
+
const RangeSlider = def("RangeSlider", "Slider with two thumbs for picking a range, bound to form state by name as [lower, upper].", rangeSliderProps);
|
|
45
|
+
const ColorPicker = def("ColorPicker", "Color input with a visible label (#rrggbb), hue / saturation / lightness sliders, and optional preset swatches, bound to form state by name.", colorPickerProps);
|
|
46
|
+
const DateField = def("DateField", "Date input with a visible label (YYYY-MM-DD), bound to form state by name.", dateFieldProps);
|
|
47
|
+
const DatePicker = def("DatePicker", "Date input with a visible label and a calendar popover (YYYY-MM-DD), bound to form state by name.", datePickerProps);
|
|
48
|
+
const Calendar = def("Calendar", "Month calendar shown inline for picking one day (YYYY-MM-DD), bound to state by name. It submits nothing; in a form, use DatePicker.", calendarProps);
|
|
49
|
+
const Checkbox = def("Checkbox", "Checkbox, bound to form state by name.", checkboxProps);
|
|
50
|
+
const Switch = def("Switch", "On/off switch, bound to form state by name.", switchProps);
|
|
51
|
+
const Select = def("Select", "Dropdown select, bound to form state by name.", selectProps);
|
|
52
|
+
const Radio = def("Radio", "Radio buttons for a single choice, bound to form state by name.", radioProps);
|
|
53
|
+
const RadioCard = def("RadioCard", "Single choice presented as cards, bound to form state by name.", radioCardProps);
|
|
54
|
+
const CheckboxCard = def("CheckboxCard", "Multiple choice presented as cards, bound to form state by name.", checkboxCardProps);
|
|
55
|
+
const Pagination = def("Pagination", "Pagination, bound to form state by name.", paginationProps);
|
|
56
|
+
const Tooltip = def("Tooltip", "Tooltip shown on hover or focus.", tooltipProps);
|
|
57
|
+
const Toolbar = def("Toolbar", "Row (or column) of buttons that arrow keys move between, e.g. formatting actions. Give each item an icon to show only the icon.", toolbarProps);
|
|
58
|
+
const DropdownMenu = def("DropdownMenu", "Dropdown menu.", dropdownMenuProps);
|
|
59
|
+
const Toast = def("Toast", "Toast notification that a button labeled triggerLabel shows.", toastProps);
|
|
60
|
+
const ListBox = def("ListBox", "Single-choice list in a popup.", listBoxProps);
|
|
61
|
+
const CheckboxGroup = def("CheckboxGroup", "Group of checkboxes, bound to form state by name.", checkboxGroupProps);
|
|
62
|
+
const Combobox = def("Combobox", "Text field with a visible label that filters options as you type, for picking one, bound to form state by name. Prefer it to ListBox when there are many options.", comboboxProps);
|
|
63
|
+
const Autocomplete = def("Autocomplete", "Tag-style autocomplete for multiple choices.", autocompleteProps);
|
|
64
|
+
const FileField = def("FileField", "File picker field (a self-contained widget). With dropzone, files can also be dropped onto it.", fileFieldProps);
|
|
65
|
+
const FormControl = def("FormControl", "Field with a label and help or error text (text/textarea/password).", formControlProps);
|
|
52
66
|
const childRefs = [
|
|
53
67
|
Button.ref,
|
|
54
68
|
IconButton.ref,
|
|
69
|
+
CopyButton.ref,
|
|
55
70
|
Badge.ref,
|
|
56
71
|
Heading.ref,
|
|
57
72
|
Anchor.ref,
|
|
58
73
|
Avatar.ref,
|
|
59
74
|
Code.ref,
|
|
75
|
+
Kbd.ref,
|
|
76
|
+
EmptyState.ref,
|
|
60
77
|
Icon.ref,
|
|
61
78
|
ChevronIcon.ref,
|
|
62
79
|
StatusIcon.ref,
|
|
63
80
|
Alert.ref,
|
|
81
|
+
Callout.ref,
|
|
64
82
|
Spinner.ref,
|
|
65
83
|
Progress.ref,
|
|
66
84
|
Skeleton.ref,
|
|
@@ -68,12 +86,21 @@ const buildComponentLibrary = (render) => {
|
|
|
68
86
|
Tabs.ref,
|
|
69
87
|
Accordion.ref,
|
|
70
88
|
Breadcrumb.ref,
|
|
89
|
+
Stepper.ref,
|
|
90
|
+
SideNav.ref,
|
|
71
91
|
Table.ref,
|
|
92
|
+
DataTable.ref,
|
|
93
|
+
Tree.ref,
|
|
72
94
|
TextField.ref,
|
|
73
95
|
Textarea.ref,
|
|
74
96
|
PasswordInput.ref,
|
|
75
97
|
NumberField.ref,
|
|
76
98
|
Slider.ref,
|
|
99
|
+
RangeSlider.ref,
|
|
100
|
+
DateField.ref,
|
|
101
|
+
DatePicker.ref,
|
|
102
|
+
Calendar.ref,
|
|
103
|
+
ColorPicker.ref,
|
|
77
104
|
Checkbox.ref,
|
|
78
105
|
Switch.ref,
|
|
79
106
|
Select.ref,
|
|
@@ -83,27 +110,54 @@ const buildComponentLibrary = (render) => {
|
|
|
83
110
|
Pagination.ref,
|
|
84
111
|
Tooltip.ref,
|
|
85
112
|
DropdownMenu.ref,
|
|
113
|
+
Toolbar.ref,
|
|
86
114
|
Toast.ref,
|
|
87
|
-
ScrollLinked.ref,
|
|
88
115
|
ListBox.ref,
|
|
89
116
|
CheckboxGroup.ref,
|
|
117
|
+
Combobox.ref,
|
|
90
118
|
Autocomplete.ref,
|
|
91
119
|
FileField.ref,
|
|
92
120
|
FormControl.ref
|
|
93
121
|
];
|
|
94
|
-
const
|
|
95
|
-
const Grid = def("Grid", "子要素をグリッド状に並べる。cols(1〜6 / auto-fill / auto-fit)と gap、auto-fill/fit 時は minItemSize で各セルの最小サイズを制御。Grid の直下に Stack/Grid/Card は置けない。", gridProps.extend({ children: z.array(z.union(childRefs)).describe("グリッド内の子要素") }));
|
|
96
|
-
const containerChildRefs = [
|
|
122
|
+
const containerChildren = (description) => z.array(z.union([
|
|
97
123
|
...childRefs,
|
|
98
124
|
Stack.ref,
|
|
99
|
-
Grid.ref
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
125
|
+
Grid.ref,
|
|
126
|
+
Card.ref,
|
|
127
|
+
Form.ref,
|
|
128
|
+
Modal.ref,
|
|
129
|
+
Dialog.ref,
|
|
130
|
+
Drawer.ref,
|
|
131
|
+
Popover.ref,
|
|
132
|
+
Carousel.ref
|
|
133
|
+
])).describe(description);
|
|
134
|
+
const Stack = def("Stack", "Layout container that places its children in a row or a column with even spacing.", stackProps.extend({ get children() {
|
|
135
|
+
return containerChildren("Children to lay out");
|
|
136
|
+
} }));
|
|
137
|
+
const Grid = def("Grid", "Places its children in a grid. Set cols (1 to 6, auto-fill, or auto-fit) and gap; with auto-fill or auto-fit, minItemSize sets the smallest size of each cell.", gridProps.extend({ get children() {
|
|
138
|
+
return containerChildren("Children of the grid");
|
|
139
|
+
} }));
|
|
140
|
+
const Card = def("Card", "Card that groups content (a container). interactive makes it scale up on hover.", cardProps.extend({ get children() {
|
|
141
|
+
return containerChildren("Children of the card");
|
|
142
|
+
} }));
|
|
143
|
+
const Form = def("Form", "Wrapper for form elements (a vertical layout).", formProps.extend({ get children() {
|
|
144
|
+
return containerChildren("Elements in the form");
|
|
145
|
+
} }));
|
|
146
|
+
const Modal = def("Modal", "Modal dialog that opens from a button labeled triggerLabel.", modalProps.extend({ get children() {
|
|
147
|
+
return containerChildren("Elements in the modal");
|
|
148
|
+
} }));
|
|
149
|
+
const Dialog = def("Dialog", "Centered dialog that opens from a button labeled triggerLabel.", dialogProps.extend({ get children() {
|
|
150
|
+
return containerChildren("Elements in the dialog");
|
|
151
|
+
} }));
|
|
152
|
+
const Drawer = def("Drawer", "Side drawer that opens from a button labeled triggerLabel.", drawerProps.extend({ get children() {
|
|
153
|
+
return containerChildren("Elements in the drawer");
|
|
154
|
+
} }));
|
|
155
|
+
const Popover = def("Popover", "Popover that a button labeled triggerLabel opens and closes.", popoverProps.extend({ get children() {
|
|
156
|
+
return containerChildren("Elements in the popover");
|
|
157
|
+
} }));
|
|
158
|
+
const Carousel = def("Carousel", "Horizontally scrolling carousel with previous and next buttons. Each child is one slide. slideSize sets how much of the track one slide takes (full, lg, md for two, sm for three).", carouselProps.extend({ get children() {
|
|
159
|
+
return containerChildren("Slides, one child per slide");
|
|
160
|
+
} }));
|
|
107
161
|
return createLibrary({
|
|
108
162
|
components: [
|
|
109
163
|
Stack,
|
|
@@ -114,34 +168,48 @@ const buildComponentLibrary = (render) => {
|
|
|
114
168
|
Dialog,
|
|
115
169
|
Drawer,
|
|
116
170
|
Popover,
|
|
171
|
+
Carousel,
|
|
117
172
|
Tooltip,
|
|
118
173
|
DropdownMenu,
|
|
174
|
+
Toolbar,
|
|
119
175
|
Toast,
|
|
120
176
|
Button,
|
|
121
177
|
IconButton,
|
|
178
|
+
CopyButton,
|
|
122
179
|
Badge,
|
|
123
180
|
Heading,
|
|
124
181
|
Anchor,
|
|
125
182
|
Avatar,
|
|
126
183
|
Code,
|
|
184
|
+
Kbd,
|
|
185
|
+
EmptyState,
|
|
127
186
|
Icon,
|
|
128
187
|
ChevronIcon,
|
|
129
188
|
StatusIcon,
|
|
130
189
|
Alert,
|
|
190
|
+
Callout,
|
|
131
191
|
Spinner,
|
|
132
192
|
Progress,
|
|
133
193
|
Skeleton,
|
|
134
194
|
Separator,
|
|
135
|
-
ScrollLinked,
|
|
136
195
|
Tabs,
|
|
137
196
|
Accordion,
|
|
138
197
|
Breadcrumb,
|
|
198
|
+
Stepper,
|
|
199
|
+
SideNav,
|
|
139
200
|
Table,
|
|
201
|
+
DataTable,
|
|
202
|
+
Tree,
|
|
140
203
|
TextField,
|
|
141
204
|
Textarea,
|
|
142
205
|
PasswordInput,
|
|
143
206
|
NumberField,
|
|
144
207
|
Slider,
|
|
208
|
+
RangeSlider,
|
|
209
|
+
DateField,
|
|
210
|
+
DatePicker,
|
|
211
|
+
Calendar,
|
|
212
|
+
ColorPicker,
|
|
145
213
|
Checkbox,
|
|
146
214
|
Switch,
|
|
147
215
|
Select,
|
|
@@ -151,6 +219,7 @@ const buildComponentLibrary = (render) => {
|
|
|
151
219
|
Pagination,
|
|
152
220
|
ListBox,
|
|
153
221
|
CheckboxGroup,
|
|
222
|
+
Combobox,
|
|
154
223
|
Autocomplete,
|
|
155
224
|
FileField,
|
|
156
225
|
FormControl
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
._6aBdoW_cardSm {
|
|
5
|
+
padding: calc(var(--spacing) * 4);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
._6aBdoW_cardMd {
|
|
9
|
+
padding: calc(var(--spacing) * 6);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
._6aBdoW_cardLg {
|
|
13
|
+
padding: calc(var(--spacing) * 8);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
._6aBdoW_field {
|
|
17
|
+
gap: calc(var(--spacing) * 1);
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
display: flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
._6aBdoW_fieldLabel {
|
|
23
|
+
color: var(--color-fg-base);
|
|
24
|
+
font-size: var(--font-size-sm);
|
|
25
|
+
font-weight: var(--font-weight-medium);
|
|
26
|
+
line-height: var(--line-height-sm);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
._6aBdoW_keys {
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: calc(var(--spacing) * 1);
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
._6aBdoW_popover {
|
|
36
|
+
padding: calc(var(--spacing) * 4);
|
|
37
|
+
border-radius: var(--radius-lg);
|
|
38
|
+
background-color: var(--color-bg-raised);
|
|
39
|
+
color: var(--color-fg-base);
|
|
40
|
+
box-shadow: var(--shadow-md);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
._6aBdoW_dropHint {
|
|
44
|
+
color: var(--color-fg-mute);
|
|
45
|
+
font-size: var(--font-size-sm);
|
|
46
|
+
line-height: var(--line-height-sm);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@layer utilities;
|