@k8ordo/ui 2.1.0 → 2.3.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 +4 -4
- package/dist/components/_internal/focus-ring.css +8 -2
- package/dist/components/_internal/focus-ring.module.mjs +1 -2
- package/dist/components/_internal/form-value.d.mts +1 -2
- package/dist/components/_internal/form-value.mjs +1 -2
- package/dist/components/_internal/high-contrast.module.mjs +1 -2
- package/dist/components/_internal/ignore-changes.d.mts +1 -3
- package/dist/components/_internal/ignore-changes.mjs +1 -2
- package/dist/components/_internal/nav-link.d.mts +2 -4
- package/dist/components/_internal/nav-link.mjs +1 -2
- package/dist/components/_internal/nav-link.module.mjs +1 -2
- package/dist/components/_internal/sr-only.module.mjs +1 -2
- package/dist/components/_internal/status-tone.d.mts +9 -11
- package/dist/components/_internal/status-tone.mjs +1 -2
- package/dist/components/_internal/status-tone.module.mjs +1 -2
- package/dist/components/ai/_internal/attachment-preview.d.mts +1 -2
- package/dist/components/ai/_internal/attachment-preview.mjs +1 -2
- package/dist/components/ai/_internal/attachment-preview.module.mjs +1 -2
- package/dist/components/ai/_internal/collapsible.d.mts +1 -2
- package/dist/components/ai/_internal/collapsible.mjs +1 -2
- package/dist/components/ai/_internal/collapsible.module.mjs +1 -2
- package/dist/components/ai/_internal/icons.d.mts +1 -2
- package/dist/components/ai/_internal/icons.mjs +1 -2
- package/dist/components/ai/_internal/streaming-cursor.d.mts +1 -3
- package/dist/components/ai/_internal/streaming-cursor.mjs +1 -2
- package/dist/components/ai/_internal/streaming-cursor.module.mjs +1 -2
- package/dist/components/ai/attachment/attachment.d.mts +1 -2
- package/dist/components/ai/attachment/attachment.mjs +1 -2
- package/dist/components/ai/attachment/attachment.module.mjs +1 -2
- package/dist/components/ai/attachment/index.d.mts +1 -3
- package/dist/components/ai/attachment/index.mjs +1 -2
- package/dist/components/ai/conversation/conversation.d.mts +1 -2
- package/dist/components/ai/conversation/conversation.mjs +1 -2
- package/dist/components/ai/conversation/conversation.module.mjs +1 -2
- package/dist/components/ai/conversation/index.d.mts +1 -3
- package/dist/components/ai/conversation/index.mjs +1 -2
- package/dist/components/ai/message/index.d.mts +1 -3
- package/dist/components/ai/message/index.mjs +1 -2
- package/dist/components/ai/message/message.d.mts +1 -2
- package/dist/components/ai/message/message.mjs +1 -2
- package/dist/components/ai/message/message.module.mjs +1 -2
- package/dist/components/ai/prompt-input/index.d.mts +1 -3
- package/dist/components/ai/prompt-input/index.mjs +1 -2
- package/dist/components/ai/prompt-input/prompt-input.d.mts +1 -2
- package/dist/components/ai/prompt-input/prompt-input.mjs +1 -2
- package/dist/components/ai/prompt-input/prompt-input.module.mjs +1 -2
- package/dist/components/ai/reasoning/index.mjs +1 -2
- package/dist/components/ai/reasoning/reasoning.d.mts +1 -2
- package/dist/components/ai/reasoning/reasoning.mjs +1 -2
- package/dist/components/ai/reasoning/reasoning.module.mjs +1 -2
- package/dist/components/ai/response/index.mjs +1 -2
- package/dist/components/ai/response/response.d.mts +1 -2
- package/dist/components/ai/response/response.mjs +1 -2
- package/dist/components/ai/response/response.module.mjs +1 -2
- package/dist/components/ai/source/index.d.mts +1 -3
- package/dist/components/ai/source/index.mjs +1 -2
- package/dist/components/ai/source/source.d.mts +1 -2
- package/dist/components/ai/source/source.mjs +1 -2
- package/dist/components/ai/source/source.module.mjs +1 -2
- package/dist/components/ai/suggestion/index.d.mts +1 -3
- package/dist/components/ai/suggestion/index.mjs +1 -2
- package/dist/components/ai/suggestion/suggestion.d.mts +1 -2
- package/dist/components/ai/suggestion/suggestion.mjs +1 -2
- package/dist/components/ai/suggestion/suggestion.module.mjs +1 -2
- package/dist/components/ai/tool-invocation/approval-bar.d.mts +1 -2
- package/dist/components/ai/tool-invocation/approval-bar.mjs +1 -2
- package/dist/components/ai/tool-invocation/approval-bar.module.mjs +1 -2
- package/dist/components/ai/tool-invocation/index.mjs +1 -2
- package/dist/components/ai/tool-invocation/tool-invocation.d.mts +1 -2
- package/dist/components/ai/tool-invocation/tool-invocation.mjs +1 -2
- package/dist/components/ai/tool-invocation/tool-invocation.module.mjs +1 -2
- package/dist/components/ai/types.d.mts +1 -3
- package/dist/components/buttons/button/button.d.mts +1 -2
- package/dist/components/buttons/button/button.mjs +1 -2
- package/dist/components/buttons/button/button.module.mjs +1 -2
- package/dist/components/buttons/button/index.mjs +1 -2
- package/dist/components/buttons/copy-button/copy-button.d.mts +1 -3
- package/dist/components/buttons/copy-button/copy-button.mjs +1 -2
- package/dist/components/buttons/copy-button/copy-button.module.mjs +1 -2
- package/dist/components/buttons/copy-button/index.mjs +1 -2
- package/dist/components/buttons/icon-button/icon-button.d.mts +1 -2
- package/dist/components/buttons/icon-button/icon-button.mjs +1 -2
- package/dist/components/buttons/icon-button/icon-button.module.mjs +1 -2
- package/dist/components/buttons/icon-button/index.mjs +1 -2
- package/dist/components/buttons/toolbar/index.d.mts +0 -2
- package/dist/components/buttons/toolbar/index.mjs +1 -2
- package/dist/components/buttons/toolbar/toolbar.d.mts +1 -2
- package/dist/components/buttons/toolbar/toolbar.mjs +1 -2
- package/dist/components/buttons/toolbar/toolbar.module.mjs +1 -2
- package/dist/components/data-display/accordion/accordion-button.d.mts +1 -3
- package/dist/components/data-display/accordion/accordion-button.mjs +1 -2
- package/dist/components/data-display/accordion/accordion-button.module.mjs +1 -2
- package/dist/components/data-display/accordion/accordion-item.d.mts +1 -3
- package/dist/components/data-display/accordion/accordion-item.mjs +1 -2
- package/dist/components/data-display/accordion/accordion-item.module.mjs +1 -2
- package/dist/components/data-display/accordion/accordion-panel.d.mts +1 -3
- package/dist/components/data-display/accordion/accordion-panel.mjs +1 -2
- package/dist/components/data-display/accordion/accordion-panel.module.mjs +1 -2
- package/dist/components/data-display/accordion/accordion.d.mts +1 -3
- package/dist/components/data-display/accordion/accordion.mjs +1 -2
- package/dist/components/data-display/accordion/accordion.module.mjs +1 -2
- package/dist/components/data-display/accordion/context.d.mts +0 -2
- package/dist/components/data-display/accordion/context.mjs +1 -2
- package/dist/components/data-display/accordion/index.d.mts +1 -3
- package/dist/components/data-display/accordion/index.mjs +1 -2
- package/dist/components/data-display/avatar/avatar.d.mts +1 -2
- package/dist/components/data-display/avatar/avatar.mjs +1 -2
- package/dist/components/data-display/avatar/avatar.module.mjs +1 -2
- package/dist/components/data-display/avatar/index.mjs +1 -2
- package/dist/components/data-display/badge/badge.d.mts +1 -2
- package/dist/components/data-display/badge/badge.mjs +1 -2
- package/dist/components/data-display/badge/badge.module.mjs +1 -2
- package/dist/components/data-display/badge/index.mjs +1 -2
- package/dist/components/data-display/card/card.d.mts +1 -2
- package/dist/components/data-display/card/card.mjs +1 -2
- package/dist/components/data-display/card/card.module.mjs +1 -2
- package/dist/components/data-display/card/index.mjs +1 -2
- package/dist/components/data-display/carousel/carousel.d.mts +1 -2
- package/dist/components/data-display/carousel/carousel.mjs +1 -2
- package/dist/components/data-display/carousel/carousel.module.mjs +1 -2
- package/dist/components/data-display/carousel/index.d.mts +1 -3
- package/dist/components/data-display/carousel/index.mjs +1 -2
- package/dist/components/data-display/code/code.d.mts +1 -2
- package/dist/components/data-display/code/code.mjs +1 -2
- package/dist/components/data-display/code/code.module.mjs +1 -2
- package/dist/components/data-display/code/find-all-colors.d.mts +1 -2
- package/dist/components/data-display/code/find-all-colors.mjs +1 -2
- package/dist/components/data-display/code/index.mjs +1 -2
- package/dist/components/data-display/code-block/code-block.d.mts +1 -2
- package/dist/components/data-display/code-block/code-block.mjs +1 -2
- package/dist/components/data-display/code-block/code-block.module.mjs +1 -2
- package/dist/components/data-display/code-block/highlight.d.mts +1 -2
- package/dist/components/data-display/code-block/highlight.mjs +1 -2
- package/dist/components/data-display/code-block/index.mjs +1 -2
- package/dist/components/data-display/data-table/data-table.d.mts +1 -2
- package/dist/components/data-display/data-table/data-table.mjs +1 -2
- package/dist/components/data-display/data-table/data-table.module.mjs +1 -2
- package/dist/components/data-display/data-table/index.mjs +1 -2
- package/dist/components/data-display/heading/heading.d.mts +1 -2
- package/dist/components/data-display/heading/heading.mjs +1 -2
- package/dist/components/data-display/heading/heading.module.mjs +1 -2
- package/dist/components/data-display/heading/index.mjs +1 -2
- package/dist/components/data-display/kbd/index.mjs +1 -2
- package/dist/components/data-display/kbd/kbd.d.mts +1 -2
- package/dist/components/data-display/kbd/kbd.mjs +1 -2
- package/dist/components/data-display/kbd/kbd.module.mjs +1 -2
- package/dist/components/data-display/prose/index.mjs +1 -2
- package/dist/components/data-display/prose/prose.css +5 -0
- package/dist/components/data-display/prose/prose.d.mts +1 -2
- package/dist/components/data-display/prose/prose.mjs +1 -2
- package/dist/components/data-display/prose/prose.module.mjs +1 -2
- package/dist/components/data-display/table/index.mjs +1 -2
- package/dist/components/data-display/table/table.d.mts +1 -2
- package/dist/components/data-display/table/table.mjs +1 -2
- package/dist/components/data-display/table/table.module.mjs +1 -2
- package/dist/components/data-display/tree/index.mjs +1 -2
- package/dist/components/data-display/tree/tree.css +1 -15
- package/dist/components/data-display/tree/tree.d.mts +1 -2
- package/dist/components/data-display/tree/tree.mjs +50 -58
- package/dist/components/data-display/tree/tree.module.mjs +1 -3
- package/dist/components/feedback/alert/alert.d.mts +1 -2
- package/dist/components/feedback/alert/alert.mjs +1 -2
- package/dist/components/feedback/alert/alert.module.mjs +1 -2
- package/dist/components/feedback/alert/index.mjs +1 -2
- package/dist/components/feedback/callout/callout.d.mts +1 -2
- package/dist/components/feedback/callout/callout.mjs +1 -2
- package/dist/components/feedback/callout/callout.module.mjs +1 -2
- package/dist/components/feedback/callout/index.mjs +1 -2
- package/dist/components/feedback/empty-state/empty-state.d.mts +1 -2
- package/dist/components/feedback/empty-state/empty-state.mjs +1 -2
- package/dist/components/feedback/empty-state/empty-state.module.mjs +1 -2
- package/dist/components/feedback/empty-state/index.mjs +1 -2
- package/dist/components/feedback/progress/index.mjs +1 -2
- package/dist/components/feedback/progress/progress.d.mts +1 -2
- package/dist/components/feedback/progress/progress.mjs +1 -2
- package/dist/components/feedback/progress/progress.module.mjs +1 -2
- package/dist/components/feedback/skeleton/index.mjs +1 -2
- package/dist/components/feedback/skeleton/skeleton.d.mts +1 -2
- package/dist/components/feedback/skeleton/skeleton.mjs +1 -2
- package/dist/components/feedback/skeleton/skeleton.module.mjs +1 -2
- package/dist/components/feedback/spinner/index.mjs +1 -2
- package/dist/components/feedback/spinner/spinner.d.mts +1 -2
- package/dist/components/feedback/spinner/spinner.mjs +1 -2
- package/dist/components/feedback/spinner/spinner.module.mjs +1 -2
- package/dist/components/feedback/toast/context.d.mts +1 -3
- package/dist/components/feedback/toast/context.mjs +1 -2
- package/dist/components/feedback/toast/provider.d.mts +1 -3
- package/dist/components/feedback/toast/provider.mjs +51 -51
- package/dist/components/feedback/toast/provider.module.mjs +1 -2
- package/dist/components/feedback/toast/toast.d.mts +1 -2
- package/dist/components/feedback/toast/toast.mjs +4 -8
- package/dist/components/form/autocomplete/autocomplete.css +1 -1
- package/dist/components/form/autocomplete/autocomplete.d.mts +1 -2
- package/dist/components/form/autocomplete/autocomplete.mjs +3 -4
- package/dist/components/form/autocomplete/autocomplete.module.mjs +1 -2
- package/dist/components/form/autocomplete/index.mjs +1 -2
- package/dist/components/form/calendar/calendar.d.mts +1 -2
- package/dist/components/form/calendar/calendar.mjs +1 -2
- package/dist/components/form/calendar/calendar.module.mjs +1 -2
- package/dist/components/form/calendar/index.mjs +1 -2
- package/dist/components/form/checkbox/checkbox.d.mts +1 -2
- package/dist/components/form/checkbox/checkbox.mjs +1 -2
- package/dist/components/form/checkbox/checkbox.module.mjs +1 -2
- package/dist/components/form/checkbox/index.mjs +1 -2
- package/dist/components/form/checkbox-card/checkbox-card.d.mts +1 -2
- package/dist/components/form/checkbox-card/checkbox-card.mjs +1 -2
- package/dist/components/form/checkbox-card/checkbox-card.module.mjs +1 -2
- package/dist/components/form/checkbox-card/index.mjs +1 -2
- package/dist/components/form/checkbox-group/checkbox-group.d.mts +0 -2
- package/dist/components/form/checkbox-group/checkbox-group.mjs +1 -2
- package/dist/components/form/checkbox-group/checkbox-group.module.mjs +1 -2
- package/dist/components/form/checkbox-group/index.d.mts +1 -3
- package/dist/components/form/checkbox-group/index.mjs +1 -2
- package/dist/components/form/color-picker/color-picker.css +1 -1
- package/dist/components/form/color-picker/color-picker.d.mts +1 -2
- package/dist/components/form/color-picker/color-picker.mjs +1 -2
- package/dist/components/form/color-picker/color-picker.module.mjs +1 -2
- package/dist/components/form/color-picker/index.mjs +1 -2
- package/dist/components/form/combobox/combobox.css +1 -1
- package/dist/components/form/combobox/combobox.d.mts +1 -2
- package/dist/components/form/combobox/combobox.mjs +3 -7
- package/dist/components/form/combobox/combobox.module.mjs +1 -2
- package/dist/components/form/combobox/index.mjs +1 -2
- package/dist/components/form/date-field/date-field.css +1 -1
- package/dist/components/form/date-field/date-field.d.mts +1 -2
- package/dist/components/form/date-field/date-field.mjs +1 -2
- package/dist/components/form/date-field/date-field.module.mjs +1 -2
- package/dist/components/form/date-field/index.mjs +1 -2
- package/dist/components/form/date-picker/date-picker.d.mts +1 -2
- package/dist/components/form/date-picker/date-picker.mjs +1 -2
- package/dist/components/form/date-picker/date-picker.module.mjs +1 -2
- package/dist/components/form/date-picker/index.mjs +1 -2
- package/dist/components/form/file-field/file-field.d.mts +1 -2
- package/dist/components/form/file-field/file-field.mjs +1 -2
- package/dist/components/form/file-field/file-field.module.mjs +1 -2
- package/dist/components/form/file-field/index.d.mts +1 -3
- package/dist/components/form/file-field/index.mjs +1 -2
- package/dist/components/form/form/form.d.mts +1 -2
- package/dist/components/form/form/form.mjs +1 -2
- package/dist/components/form/form/form.module.mjs +1 -2
- package/dist/components/form/form/index.mjs +1 -2
- package/dist/components/form/form-control/form-control.d.mts +1 -2
- package/dist/components/form/form-control/form-control.mjs +1 -2
- package/dist/components/form/form-control/form-control.module.mjs +1 -2
- package/dist/components/form/form-control/index.mjs +1 -2
- package/dist/components/form/number-field/cast.d.mts +1 -3
- package/dist/components/form/number-field/cast.mjs +1 -2
- package/dist/components/form/number-field/index.mjs +1 -2
- package/dist/components/form/number-field/number-field.css +0 -11
- package/dist/components/form/number-field/number-field.d.mts +1 -2
- package/dist/components/form/number-field/number-field.mjs +4 -3
- package/dist/components/form/number-field/number-field.module.mjs +1 -2
- package/dist/components/form/password-input/index.mjs +1 -2
- package/dist/components/form/password-input/password-input.d.mts +1 -2
- package/dist/components/form/password-input/password-input.mjs +1 -2
- package/dist/components/form/password-input/password-input.module.mjs +1 -2
- package/dist/components/form/radio/index.mjs +1 -2
- package/dist/components/form/radio/radio.d.mts +1 -2
- package/dist/components/form/radio/radio.mjs +1 -2
- package/dist/components/form/radio/radio.module.mjs +1 -2
- package/dist/components/form/radio-card/index.mjs +1 -2
- package/dist/components/form/radio-card/radio-card.d.mts +1 -2
- package/dist/components/form/radio-card/radio-card.mjs +1 -2
- package/dist/components/form/radio-card/radio-card.module.mjs +1 -2
- package/dist/components/form/range-slider/index.mjs +1 -2
- package/dist/components/form/range-slider/range-slider.d.mts +1 -2
- package/dist/components/form/range-slider/range-slider.mjs +1 -2
- package/dist/components/form/range-slider/range-slider.module.mjs +1 -2
- package/dist/components/form/select/index.mjs +1 -2
- package/dist/components/form/select/select.d.mts +1 -2
- package/dist/components/form/select/select.mjs +1 -2
- package/dist/components/form/select/select.module.mjs +1 -2
- package/dist/components/form/slider/index.mjs +1 -2
- package/dist/components/form/slider/range-input-class.css +12 -0
- package/dist/components/form/slider/range-input-class.d.mts +1 -3
- package/dist/components/form/slider/range-input-class.mjs +1 -2
- package/dist/components/form/slider/range-input-class.module.mjs +1 -2
- package/dist/components/form/slider/slider.d.mts +1 -2
- package/dist/components/form/slider/slider.mjs +1 -2
- package/dist/components/form/slider/slider.module.mjs +1 -2
- package/dist/components/form/switch/index.mjs +1 -2
- package/dist/components/form/switch/switch.d.mts +1 -2
- package/dist/components/form/switch/switch.mjs +1 -2
- package/dist/components/form/switch/switch.module.mjs +1 -2
- package/dist/components/form/text-field/index.mjs +1 -2
- package/dist/components/form/text-field/text-field.css +0 -11
- package/dist/components/form/text-field/text-field.d.mts +1 -2
- package/dist/components/form/text-field/text-field.mjs +4 -3
- package/dist/components/form/text-field/text-field.module.mjs +1 -2
- package/dist/components/form/textarea/index.mjs +1 -2
- package/dist/components/form/textarea/textarea.css +0 -11
- package/dist/components/form/textarea/textarea.d.mts +1 -2
- package/dist/components/form/textarea/textarea.mjs +4 -8
- package/dist/components/form/textarea/textarea.module.mjs +1 -2
- package/dist/components/icons/base.d.mts +1 -3
- package/dist/components/icons/base.mjs +1 -2
- package/dist/components/icons/base.module.mjs +1 -2
- package/dist/components/icons/browsers.d.mts +1 -3
- package/dist/components/icons/browsers.mjs +1 -2
- package/dist/components/icons/color-scale.d.mts +1 -3
- package/dist/components/icons/color-scale.mjs +1 -2
- package/dist/components/icons/github-mark.d.mts +1 -3
- package/dist/components/icons/github-mark.mjs +1 -2
- package/dist/components/icons/logo.d.mts +1 -3
- package/dist/components/icons/logo.mjs +1 -2
- package/dist/components/icons/logo.module.mjs +1 -2
- package/dist/components/icons/lucide.d.mts +1 -2
- package/dist/components/icons/lucide.mjs +1 -2
- package/dist/components/icons/qiita.d.mts +1 -3
- package/dist/components/icons/qiita.mjs +1 -2
- package/dist/components/icons/twitter.d.mts +1 -3
- package/dist/components/icons/twitter.mjs +1 -2
- package/dist/components/icons/twitter.module.mjs +1 -2
- package/dist/components/icons/vertical-writing.d.mts +1 -3
- package/dist/components/icons/vertical-writing.mjs +1 -2
- package/dist/components/layout/_shared/gap.d.mts +6 -8
- package/dist/components/layout/_shared/gap.mjs +1 -2
- package/dist/components/layout/_shared/gap.module.mjs +1 -2
- package/dist/components/layout/_shared/padding.d.mts +6 -8
- package/dist/components/layout/_shared/padding.mjs +1 -2
- package/dist/components/layout/_shared/padding.module.mjs +1 -2
- package/dist/components/layout/grid/grid.d.mts +1 -3
- package/dist/components/layout/grid/grid.mjs +1 -2
- package/dist/components/layout/grid/grid.module.mjs +1 -2
- package/dist/components/layout/grid/index.mjs +1 -2
- package/dist/components/layout/resizable-panels/index.d.mts +1 -3
- package/dist/components/layout/resizable-panels/index.mjs +1 -2
- package/dist/components/layout/resizable-panels/resizable-panels.d.mts +1 -2
- package/dist/components/layout/resizable-panels/resizable-panels.mjs +1 -2
- package/dist/components/layout/resizable-panels/resizable-panels.module.mjs +1 -2
- package/dist/components/layout/separator/index.mjs +1 -2
- package/dist/components/layout/separator/separator.d.mts +1 -2
- package/dist/components/layout/separator/separator.mjs +1 -2
- package/dist/components/layout/separator/separator.module.mjs +1 -2
- package/dist/components/layout/stack/index.mjs +1 -2
- package/dist/components/layout/stack/stack.d.mts +1 -3
- package/dist/components/layout/stack/stack.mjs +1 -2
- package/dist/components/layout/stack/stack.module.mjs +1 -2
- package/dist/components/navigation/anchor/anchor.d.mts +1 -2
- package/dist/components/navigation/anchor/anchor.mjs +1 -2
- package/dist/components/navigation/anchor/anchor.module.mjs +1 -2
- package/dist/components/navigation/anchor/index.mjs +1 -2
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +1 -2
- package/dist/components/navigation/breadcrumb/breadcrumb.mjs +1 -2
- package/dist/components/navigation/breadcrumb/breadcrumb.module.mjs +1 -2
- package/dist/components/navigation/breadcrumb/index.d.mts +1 -3
- package/dist/components/navigation/breadcrumb/index.mjs +1 -2
- package/dist/components/navigation/pagination/index.mjs +1 -2
- package/dist/components/navigation/pagination/pagination.d.mts +1 -2
- package/dist/components/navigation/pagination/pagination.mjs +1 -2
- package/dist/components/navigation/pagination/pagination.module.mjs +1 -2
- package/dist/components/navigation/side-nav/index.d.mts +1 -3
- package/dist/components/navigation/side-nav/index.mjs +1 -2
- package/dist/components/navigation/side-nav/side-nav.d.mts +1 -2
- package/dist/components/navigation/side-nav/side-nav.mjs +1 -2
- package/dist/components/navigation/side-nav/side-nav.module.mjs +1 -2
- package/dist/components/navigation/stepper/index.mjs +1 -2
- package/dist/components/navigation/stepper/stepper.d.mts +1 -2
- package/dist/components/navigation/stepper/stepper.mjs +1 -2
- package/dist/components/navigation/stepper/stepper.module.mjs +1 -2
- package/dist/components/navigation/table-of-contents/index.mjs +1 -2
- package/dist/components/navigation/table-of-contents/table-of-contents.d.mts +1 -3
- package/dist/components/navigation/table-of-contents/table-of-contents.mjs +1 -2
- package/dist/components/navigation/table-of-contents/table-of-contents.module.mjs +1 -2
- package/dist/components/navigation/tabs/index.d.mts +1 -3
- package/dist/components/navigation/tabs/index.mjs +1 -2
- package/dist/components/navigation/tabs/tabs.d.mts +1 -3
- package/dist/components/navigation/tabs/tabs.mjs +1 -2
- package/dist/components/navigation/tabs/tabs.module.mjs +1 -2
- package/dist/components/observers/in-view/in-view.d.mts +1 -3
- package/dist/components/observers/in-view/in-view.mjs +1 -2
- package/dist/components/observers/in-view/index.mjs +1 -2
- package/dist/components/observers/resize/index.mjs +1 -2
- package/dist/components/observers/resize/resize.d.mts +1 -3
- package/dist/components/observers/resize/resize.mjs +1 -2
- package/dist/components/overlays/_internal/modal-dialog-context.d.mts +1 -3
- package/dist/components/overlays/_internal/modal-dialog-context.mjs +1 -2
- package/dist/components/overlays/_internal/use-can-hover.d.mts +1 -3
- package/dist/components/overlays/_internal/use-can-hover.mjs +1 -2
- package/dist/components/overlays/_internal/use-hover-intent.d.mts +1 -3
- package/dist/components/overlays/_internal/use-hover-intent.mjs +1 -2
- package/dist/components/overlays/_internal/use-list-navigation.d.mts +1 -3
- package/dist/components/overlays/_internal/use-list-navigation.mjs +1 -2
- package/dist/components/overlays/command-palette/command-palette.d.mts +1 -2
- package/dist/components/overlays/command-palette/command-palette.mjs +1 -2
- package/dist/components/overlays/command-palette/command-palette.module.mjs +1 -2
- package/dist/components/overlays/command-palette/index.mjs +1 -2
- package/dist/components/overlays/context-menu/context-menu.d.mts +1 -3
- package/dist/components/overlays/context-menu/context-menu.mjs +1 -2
- package/dist/components/overlays/context-menu/index.d.mts +1 -3
- package/dist/components/overlays/context-menu/index.mjs +1 -2
- package/dist/components/overlays/dialog/dialog.d.mts +1 -3
- package/dist/components/overlays/dialog/dialog.mjs +2 -7
- package/dist/components/overlays/dialog/dialog.module.mjs +1 -2
- package/dist/components/overlays/dialog/index.d.mts +1 -3
- package/dist/components/overlays/dialog/index.mjs +1 -2
- package/dist/components/overlays/drawer/drawer.d.mts +1 -3
- package/dist/components/overlays/drawer/drawer.mjs +3 -8
- package/dist/components/overlays/drawer/drawer.module.mjs +1 -2
- package/dist/components/overlays/drawer/index.mjs +1 -2
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +1 -3
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +1 -2
- package/dist/components/overlays/dropdown-menu/hooks.d.mts +1 -2
- package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -2
- package/dist/components/overlays/dropdown-menu/index.d.mts +1 -3
- package/dist/components/overlays/dropdown-menu/index.mjs +1 -2
- package/dist/components/overlays/dropdown-menu/shared.d.mts +2 -4
- package/dist/components/overlays/dropdown-menu/shared.mjs +1 -2
- package/dist/components/overlays/dropdown-menu/shared.module.mjs +1 -2
- package/dist/components/overlays/dropdown-menu/sub-menu.d.mts +1 -3
- package/dist/components/overlays/dropdown-menu/sub-menu.mjs +1 -2
- package/dist/components/overlays/dropdown-menu/sub-menu.module.mjs +1 -2
- package/dist/components/overlays/dropdown-menu/use-safe-triangle.d.mts +1 -3
- package/dist/components/overlays/dropdown-menu/use-safe-triangle.mjs +1 -2
- package/dist/components/overlays/list-box/hooks.d.mts +0 -2
- package/dist/components/overlays/list-box/hooks.mjs +1 -2
- package/dist/components/overlays/list-box/index.d.mts +1 -3
- package/dist/components/overlays/list-box/index.mjs +1 -2
- package/dist/components/overlays/list-box/list-box.d.mts +1 -3
- package/dist/components/overlays/list-box/list-box.mjs +1 -2
- package/dist/components/overlays/list-box/list-box.module.mjs +1 -2
- package/dist/components/overlays/modal/index.mjs +1 -2
- package/dist/components/overlays/modal/modal.d.mts +1 -3
- package/dist/components/overlays/modal/modal.mjs +1 -2
- package/dist/components/overlays/modal/modal.module.mjs +1 -2
- package/dist/components/overlays/popover/anchor-positioning.d.mts +1 -5
- package/dist/components/overlays/popover/anchor-positioning.mjs +1 -2
- package/dist/components/overlays/popover/escape-stack.d.mts +1 -3
- package/dist/components/overlays/popover/escape-stack.mjs +1 -2
- package/dist/components/overlays/popover/hooks.d.mts +1 -2
- package/dist/components/overlays/popover/hooks.mjs +1 -2
- package/dist/components/overlays/popover/index.d.mts +0 -2
- package/dist/components/overlays/popover/index.mjs +1 -2
- package/dist/components/overlays/popover/popover.d.mts +0 -2
- package/dist/components/overlays/popover/popover.mjs +1 -2
- package/dist/components/overlays/popover/popover.module.mjs +1 -2
- package/dist/components/overlays/tooltip/bridge.d.mts +1 -3
- package/dist/components/overlays/tooltip/bridge.mjs +1 -2
- package/dist/components/overlays/tooltip/bridge.module.mjs +1 -2
- package/dist/components/overlays/tooltip/index.d.mts +0 -2
- package/dist/components/overlays/tooltip/index.mjs +1 -2
- package/dist/components/overlays/tooltip/tooltip.d.mts +1 -3
- package/dist/components/overlays/tooltip/tooltip.mjs +1 -2
- package/dist/components/overlays/tooltip/tooltip.module.mjs +1 -2
- package/dist/components/providers/portal-root.d.mts +1 -3
- package/dist/components/providers/portal-root.mjs +1 -2
- package/dist/components/providers/ui-provider.d.mts +1 -3
- package/dist/components/providers/ui-provider.mjs +1 -2
- package/dist/helpers/chain.d.mts +1 -2
- package/dist/helpers/chain.mjs +1 -2
- package/dist/helpers/create-safe-context.d.mts +1 -2
- package/dist/helpers/create-safe-context.mjs +1 -2
- package/dist/helpers/merge-props.d.mts +1 -2
- package/dist/helpers/merge-props.mjs +1 -2
- package/dist/helpers/merge-refs.d.mts +1 -3
- package/dist/helpers/merge-refs.mjs +1 -2
- package/dist/hooks/click-away/index.d.mts +1 -3
- package/dist/hooks/click-away/index.mjs +1 -2
- package/dist/hooks/controllable-state/index.d.mts +1 -2
- package/dist/hooks/controllable-state/index.mjs +1 -2
- package/dist/hooks/writing-mode/index.d.mts +1 -3
- package/dist/hooks/writing-mode/index.mjs +1 -2
- package/dist/i18n/current.d.mts +1 -3
- package/dist/i18n/current.mjs +1 -2
- package/dist/i18n/en.d.mts +1 -3
- package/dist/i18n/en.mjs +1 -2
- package/dist/i18n/ja.d.mts +1 -3
- package/dist/i18n/ja.mjs +1 -2
- package/dist/i18n/messages.d.mts +1 -3
- package/dist/i18n/usage.d.mts +1 -3
- package/dist/i18n/usage.mjs +1 -2
- package/dist/integrations/_shared/openui-defs.d.mts +1 -3
- package/dist/integrations/_shared/openui-defs.mjs +1 -2
- package/dist/integrations/_shared/renderers.d.mts +1 -3
- package/dist/integrations/_shared/renderers.mjs +1 -2
- package/dist/integrations/_shared/renderers.module.mjs +1 -2
- package/dist/integrations/_shared/schemas.d.mts +1 -5
- package/dist/integrations/_shared/schemas.mjs +1 -2
- package/dist/integrations/ai-sdk/index.mjs +1 -2
- package/dist/integrations/ai-sdk/map-parts.d.mts +1 -3
- package/dist/integrations/ai-sdk/map-parts.mjs +1 -2
- package/dist/integrations/json-render/catalog.d.mts +1 -2
- package/dist/integrations/json-render/catalog.mjs +1 -2
- package/dist/integrations/json-render/registry.d.mts +1 -3
- package/dist/integrations/json-render/registry.mjs +1 -2
- package/dist/integrations/openui/form-views.d.mts +2 -4
- package/dist/integrations/openui/form-views.mjs +1 -2
- package/dist/integrations/openui/library.d.mts +3 -4
- package/dist/integrations/openui/library.mjs +1 -2
- package/dist/integrations/openui/prompt.d.mts +1 -3
- package/dist/integrations/openui/prompt.mjs +1 -2
- package/dist/internal/accepts-file.d.mts +1 -3
- package/dist/internal/accepts-file.mjs +1 -2
- package/dist/internal/carries-files.d.mts +1 -3
- package/dist/internal/carries-files.mjs +1 -2
- package/dist/internal/clamp.d.mts +1 -3
- package/dist/internal/clamp.mjs +1 -2
- package/dist/internal/commit-input-value.d.mts +1 -3
- package/dist/internal/commit-input-value.mjs +1 -2
- package/dist/internal/dropped-files.d.mts +1 -3
- package/dist/internal/dropped-files.mjs +1 -2
- package/dist/internal/focus-trap.d.mts +1 -3
- package/dist/internal/focus-trap.mjs +1 -2
- package/dist/internal/hex-color.d.mts +1 -3
- package/dist/internal/hex-color.mjs +1 -2
- package/dist/internal/iso-date.d.mts +1 -3
- package/dist/internal/iso-date.mjs +1 -2
- package/dist/internal/to-precision.d.mts +1 -3
- package/dist/internal/to-precision.mjs +1 -2
- package/dist/styles/index.css +81 -0
- package/dist/styles/tailwind.css +29 -2
- package/dist/styles/tokens.d.mts +1 -1
- package/dist/styles/tokens.mjs +1 -1
- package/dist/types/variables.d.mts +1 -3
- package/docs/GUIDE.md +17 -1
- package/docs/llms.txt +1 -1
- package/docs/references/components.md +3 -0
- package/docs/references/generative-ui.md +5 -4
- package/package.json +35 -35
- package/dist/_virtual/_rolldown/runtime.mjs +0 -13
- package/dist/components/icons/lucide-deep.d.mts +0 -11
|
@@ -4,13 +4,12 @@ import { ToastStoreContext } from "./context.mjs";
|
|
|
4
4
|
import { Toast } from "./toast.mjs";
|
|
5
5
|
import provider_module_default from "./provider.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
-
import { useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
7
|
+
import { useEffect, useEffectEvent, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
8
8
|
import { createPortal } from "react-dom";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/feedback/toast/provider.tsx
|
|
11
11
|
const MAX_TOAST_COUNT = 5;
|
|
12
12
|
const DEFAULT_DURATION_MS = 5e3;
|
|
13
|
-
const EXIT_MS = 200;
|
|
14
13
|
const POSITION = {
|
|
15
14
|
fixed: provider_module_default.fixed,
|
|
16
15
|
absolute: provider_module_default.absolute
|
|
@@ -28,6 +27,31 @@ const enforceLimit = (state) => {
|
|
|
28
27
|
closingIds: [...state.closingIds, ...active.slice(0, overflow).map((toast) => toast.id)]
|
|
29
28
|
};
|
|
30
29
|
};
|
|
30
|
+
const ToastItem = ({ id, isClosing, onExited, children }) => {
|
|
31
|
+
const ref = useRef(null);
|
|
32
|
+
const exited = useEffectEvent(onExited);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
const item = ref.current;
|
|
35
|
+
if (!isClosing || item === null) return;
|
|
36
|
+
Promise.allSettled(item.getAnimations().map((animation) => animation.finished)).then(() => {
|
|
37
|
+
exited();
|
|
38
|
+
});
|
|
39
|
+
}, [isClosing]);
|
|
40
|
+
return /* @__PURE__ */ jsx("div", {
|
|
41
|
+
className: provider_module_default.item,
|
|
42
|
+
"data-closing": isClosing || void 0,
|
|
43
|
+
"data-toast-id": id,
|
|
44
|
+
inert: isClosing || void 0,
|
|
45
|
+
ref,
|
|
46
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className: provider_module_default.itemContent,
|
|
48
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
49
|
+
className: provider_module_default.enter,
|
|
50
|
+
children
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
};
|
|
31
55
|
const ToastProvider = ({ children, portalRef = null, position = "fixed" }) => {
|
|
32
56
|
const messages = getMessages();
|
|
33
57
|
const [state, setState] = useState({
|
|
@@ -38,28 +62,6 @@ const ToastProvider = ({ children, portalRef = null, position = "fixed" }) => {
|
|
|
38
62
|
});
|
|
39
63
|
const viewportRef = useRef(null);
|
|
40
64
|
const focusedToastIdRef = useRef(null);
|
|
41
|
-
const exitTimersRef = useRef(/* @__PURE__ */ new Map());
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
for (const id of state.closingIds) {
|
|
44
|
-
if (exitTimersRef.current.has(id)) continue;
|
|
45
|
-
const timerId = window.setTimeout(() => {
|
|
46
|
-
exitTimersRef.current.delete(id);
|
|
47
|
-
setState((prev) => ({
|
|
48
|
-
...prev,
|
|
49
|
-
toasts: prev.toasts.filter((toast) => toast.id !== id),
|
|
50
|
-
closingIds: prev.closingIds.filter((closingId) => closingId !== id)
|
|
51
|
-
}));
|
|
52
|
-
}, EXIT_MS);
|
|
53
|
-
exitTimersRef.current.set(id, timerId);
|
|
54
|
-
}
|
|
55
|
-
}, [state.closingIds]);
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
const timers = exitTimersRef.current;
|
|
58
|
-
return () => {
|
|
59
|
-
for (const timerId of timers.values()) window.clearTimeout(timerId);
|
|
60
|
-
timers.clear();
|
|
61
|
-
};
|
|
62
|
-
}, []);
|
|
63
65
|
useEffect(() => {
|
|
64
66
|
const closedId = focusedToastIdRef.current;
|
|
65
67
|
const viewport = viewportRef.current;
|
|
@@ -106,6 +108,13 @@ const ToastProvider = ({ children, portalRef = null, position = "fixed" }) => {
|
|
|
106
108
|
}));
|
|
107
109
|
}
|
|
108
110
|
}), []);
|
|
111
|
+
const remove = (id) => {
|
|
112
|
+
setState((prev) => ({
|
|
113
|
+
...prev,
|
|
114
|
+
toasts: prev.toasts.filter((toast) => toast.id !== id),
|
|
115
|
+
closingIds: prev.closingIds.filter((closingId) => closingId !== id)
|
|
116
|
+
}));
|
|
117
|
+
};
|
|
109
118
|
const setHovered = (isHovered) => {
|
|
110
119
|
setState((prev) => prev.isHovered === isHovered ? prev : enforceLimit({
|
|
111
120
|
...prev,
|
|
@@ -143,33 +152,24 @@ const ToastProvider = ({ children, portalRef = null, position = "fixed" }) => {
|
|
|
143
152
|
},
|
|
144
153
|
ref: viewportRef,
|
|
145
154
|
tabIndex: -1,
|
|
146
|
-
children: state.toasts.map((toast) => {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
store.close(toast.id);
|
|
164
|
-
},
|
|
165
|
-
tone: toast.tone
|
|
166
|
-
})
|
|
167
|
-
})
|
|
168
|
-
})
|
|
169
|
-
}, toast.id);
|
|
170
|
-
})
|
|
155
|
+
children: state.toasts.map((toast) => /* @__PURE__ */ jsx(ToastItem, {
|
|
156
|
+
id: toast.id,
|
|
157
|
+
isClosing: state.closingIds.includes(toast.id),
|
|
158
|
+
onExited: () => {
|
|
159
|
+
remove(toast.id);
|
|
160
|
+
},
|
|
161
|
+
children: /* @__PURE__ */ jsx(Toast, {
|
|
162
|
+
action: toast.action,
|
|
163
|
+
duration: toast.duration,
|
|
164
|
+
isPaused,
|
|
165
|
+
message: toast.message,
|
|
166
|
+
onClose: () => {
|
|
167
|
+
store.close(toast.id);
|
|
168
|
+
},
|
|
169
|
+
tone: toast.tone
|
|
170
|
+
})
|
|
171
|
+
}, toast.id))
|
|
171
172
|
}), container) : null]
|
|
172
173
|
});
|
|
173
174
|
};
|
|
174
|
-
//#endregion
|
|
175
175
|
export { ToastProvider };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './provider.css';
|
|
2
|
-
|
|
2
|
+
// src/components/feedback/toast/provider.module.css
|
|
3
3
|
var provider_module_default = {
|
|
4
4
|
"absolute": "l8QDQq_absolute",
|
|
5
5
|
"enter": "l8QDQq_enter",
|
|
@@ -8,5 +8,4 @@ var provider_module_default = {
|
|
|
8
8
|
"itemContent": "l8QDQq_itemContent",
|
|
9
9
|
"viewport": "l8QDQq_viewport"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { provider_module_default as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Status } from "../../../types/variables.mjs";
|
|
2
2
|
import { ToastAction } from "./context.mjs";
|
|
3
3
|
import { FC } from "react";
|
|
4
|
-
//#region src/components/feedback/toast/toast.d.ts
|
|
5
4
|
type ToastProps = {
|
|
6
5
|
tone: Status;
|
|
7
6
|
message: string;
|
|
@@ -11,4 +10,4 @@ type ToastProps = {
|
|
|
11
10
|
onClose: () => void;
|
|
12
11
|
};
|
|
13
12
|
export declare const Toast: FC<ToastProps>;
|
|
14
|
-
|
|
13
|
+
export {};
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Alert } from "../alert/alert.mjs";
|
|
3
|
-
import { useEffect, useRef } from "react";
|
|
3
|
+
import { useEffect, useEffectEvent, useRef } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/feedback/toast/toast.tsx
|
|
6
6
|
const Toast = ({ tone, message, duration, action, isPaused = false, onClose }) => {
|
|
7
|
-
const
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
onCloseRef.current = onClose;
|
|
10
|
-
});
|
|
7
|
+
const close = useEffectEvent(onClose);
|
|
11
8
|
const remainingRef = useRef(duration);
|
|
12
9
|
useEffect(() => {
|
|
13
10
|
if (isPaused || !Number.isFinite(remainingRef.current)) return;
|
|
14
11
|
const startedAt = performance.now();
|
|
15
12
|
const timeoutId = window.setTimeout(() => {
|
|
16
|
-
|
|
13
|
+
close();
|
|
17
14
|
}, remainingRef.current);
|
|
18
15
|
return () => {
|
|
19
16
|
window.clearTimeout(timeoutId);
|
|
@@ -28,5 +25,4 @@ const Toast = ({ tone, message, duration, action, isPaused = false, onClose }) =
|
|
|
28
25
|
tone
|
|
29
26
|
});
|
|
30
27
|
};
|
|
31
|
-
//#endregion
|
|
32
28
|
export { Toast };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Option } from "../../../types/variables.mjs";
|
|
2
2
|
import { FC, InputHTMLAttributes, Ref } from "react";
|
|
3
|
-
//#region src/components/form/autocomplete/autocomplete.d.ts
|
|
4
3
|
type BaseProps = {
|
|
5
4
|
id: string;
|
|
6
5
|
invalid?: boolean;
|
|
@@ -19,4 +18,4 @@ type UncontrolledProps = {
|
|
|
19
18
|
};
|
|
20
19
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
21
20
|
export declare const Autocomplete: FC<Props>;
|
|
22
|
-
|
|
21
|
+
export {};
|
|
@@ -14,7 +14,7 @@ import { clsx } from "clsx";
|
|
|
14
14
|
import { useCallback, useDeferredValue, useId, useMemo, useRef, useState } from "react";
|
|
15
15
|
import { useFormStatus } from "react-dom";
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
|
|
17
|
+
// src/components/form/autocomplete/autocomplete.tsx
|
|
18
18
|
const Autocomplete = ({ id, name, invalid = false, disabled = false, readOnly = false, required = false, options, value, defaultValue, onChange, placeholder, onBlur, onClick, onKeyDown, ref, ...rest }) => {
|
|
19
19
|
const messages = getMessages();
|
|
20
20
|
const [currentValue, handleChange] = useControllableState({
|
|
@@ -63,8 +63,7 @@ const Autocomplete = ({ id, name, invalid = false, disabled = false, readOnly =
|
|
|
63
63
|
const setReferenceRef = useCallback((node) => {
|
|
64
64
|
containerRef.current = node;
|
|
65
65
|
setContainer(node);
|
|
66
|
-
|
|
67
|
-
}, [anchorName]);
|
|
66
|
+
}, []);
|
|
68
67
|
const handleBlur = (e) => {
|
|
69
68
|
if (e.relatedTarget?.closest("[role=\"listbox\"]")?.id === listboxId) return;
|
|
70
69
|
setIsOpen(false);
|
|
@@ -126,6 +125,7 @@ const Autocomplete = ({ id, name, invalid = false, disabled = false, readOnly =
|
|
|
126
125
|
return /* @__PURE__ */ jsxs("div", {
|
|
127
126
|
className: clsx(autocomplete_module_default.root, focus_ring_module_default.ringWithin, (disabled || pending) && autocomplete_module_default.disabled, readOnly && autocomplete_module_default.readOnly),
|
|
128
127
|
ref: setReferenceRef,
|
|
128
|
+
style: { anchorName },
|
|
129
129
|
children: [
|
|
130
130
|
/* @__PURE__ */ jsx(FormValue, {
|
|
131
131
|
defaultValues: value === void 0 ? defaultValue ?? [] : void 0,
|
|
@@ -245,5 +245,4 @@ const Autocomplete = ({ id, name, invalid = false, disabled = false, readOnly =
|
|
|
245
245
|
]
|
|
246
246
|
});
|
|
247
247
|
};
|
|
248
|
-
//#endregion
|
|
249
248
|
export { Autocomplete };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './autocomplete.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/autocomplete/autocomplete.module.css
|
|
3
3
|
var autocomplete_module_default = {
|
|
4
4
|
"active": "ms0JIW_active",
|
|
5
5
|
"body": "ms0JIW_body",
|
|
@@ -17,5 +17,4 @@ var autocomplete_module_default = {
|
|
|
17
17
|
"tagOnDisabled": "ms0JIW_tagOnDisabled",
|
|
18
18
|
"tags": "ms0JIW_tags"
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { autocomplete_module_default as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Autocomplete };
|
|
1
|
+
export { Autocomplete } from "./autocomplete.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
//#region src/components/form/calendar/calendar.d.ts
|
|
3
2
|
type Props = {
|
|
4
3
|
/** `YYYY-MM-DD`。制御モードで未選択を表すときは `null`。 */
|
|
5
4
|
value?: string | null;
|
|
@@ -11,4 +10,4 @@ type Props = {
|
|
|
11
10
|
max?: string;
|
|
12
11
|
};
|
|
13
12
|
export declare const Calendar: FC<Props>;
|
|
14
|
-
|
|
13
|
+
export {};
|
|
@@ -10,7 +10,7 @@ import { clsx } from "clsx";
|
|
|
10
10
|
import { Suspense, use, useEffect, useId, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
11
11
|
import { browser } from "react-dom";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
|
|
13
|
+
// src/components/form/calendar/calendar.tsx
|
|
14
14
|
const Calendar = (props) => /* @__PURE__ */ jsx(Suspense, {
|
|
15
15
|
fallback: /* @__PURE__ */ jsx("div", {
|
|
16
16
|
"aria-hidden": true,
|
|
@@ -178,5 +178,4 @@ const CalendarBody = ({ value, defaultValue, onChange, min: minProp, max: maxPro
|
|
|
178
178
|
})]
|
|
179
179
|
});
|
|
180
180
|
};
|
|
181
|
-
//#endregion
|
|
182
181
|
export { Calendar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './calendar.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/calendar/calendar.module.css
|
|
3
3
|
var calendar_module_default = {
|
|
4
4
|
"blank": "_52aOMG_blank",
|
|
5
5
|
"cell": "_52aOMG_cell",
|
|
@@ -14,5 +14,4 @@ var calendar_module_default = {
|
|
|
14
14
|
"unselectable": "_52aOMG_unselectable",
|
|
15
15
|
"weekday": "_52aOMG_weekday"
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { calendar_module_default as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Calendar };
|
|
1
|
+
export { Calendar } from "./calendar.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeEvent, FC, InputHTMLAttributes, Ref } from "react";
|
|
2
|
-
//#region src/components/form/checkbox/checkbox.d.ts
|
|
3
2
|
type BaseProps = {
|
|
4
3
|
indeterminate?: boolean;
|
|
5
4
|
invalid?: boolean;
|
|
@@ -20,4 +19,4 @@ type UncontrolledProps = {
|
|
|
20
19
|
};
|
|
21
20
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
22
21
|
export declare const Checkbox: FC<Props>;
|
|
23
|
-
|
|
22
|
+
export {};
|
|
@@ -9,7 +9,7 @@ import { clsx } from "clsx";
|
|
|
9
9
|
import { useCallback, useMemo } from "react";
|
|
10
10
|
import { useFormStatus } from "react-dom";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/components/form/checkbox/checkbox.tsx
|
|
13
13
|
const Checkbox = ({ name, itemValue, disabled = false, indeterminate = false, invalid = false, label, labelHidden = false, checked, defaultChecked, onChange, ref, ...rest }) => {
|
|
14
14
|
const groupContext = useCheckboxGroupContext();
|
|
15
15
|
const { pending } = useFormStatus();
|
|
@@ -58,5 +58,4 @@ const Checkbox = ({ name, itemValue, disabled = false, indeterminate = false, in
|
|
|
58
58
|
]
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
-
//#endregion
|
|
62
61
|
export { Checkbox };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './checkbox.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/checkbox/checkbox.module.css
|
|
3
3
|
var checkbox_module_default = {
|
|
4
4
|
"box": "_23lHGa_box",
|
|
5
5
|
"disabled": "_23lHGa_disabled",
|
|
@@ -9,5 +9,4 @@ var checkbox_module_default = {
|
|
|
9
9
|
"root": "_23lHGa_root",
|
|
10
10
|
"withLabel": "_23lHGa_withLabel"
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { checkbox_module_default as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Checkbox };
|
|
1
|
+
export { Checkbox } from "./checkbox.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, FieldsetHTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
-
//#region src/components/form/checkbox-card/checkbox-card.d.ts
|
|
3
2
|
export type CheckboxCardOption = Readonly<{
|
|
4
3
|
value: string;
|
|
5
4
|
label: string;
|
|
@@ -25,4 +24,4 @@ type UncontrolledProps = {
|
|
|
25
24
|
};
|
|
26
25
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
27
26
|
export declare const CheckboxCard: FC<Props>;
|
|
28
|
-
|
|
27
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import checkbox_card_module_default from "./checkbox-card.module.mjs";
|
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { useId } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/form/checkbox-card/checkbox-card.tsx
|
|
9
9
|
const CheckboxCard = ({ "aria-labelledby": labelledbyId, name, disabled = false, invalid = false, options, value, defaultValue, onChange, ref, ...rest }) => {
|
|
10
10
|
const groupId = useId();
|
|
11
11
|
const isControlled = value !== void 0;
|
|
@@ -66,5 +66,4 @@ const CheckboxCard = ({ "aria-labelledby": labelledbyId, name, disabled = false,
|
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
-
//#endregion
|
|
70
69
|
export { CheckboxCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './checkbox-card.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/checkbox-card/checkbox-card.module.css
|
|
3
3
|
var checkbox_card_module_default = {
|
|
4
4
|
"box": "VWx-oW_box",
|
|
5
5
|
"card": "VWx-oW_card",
|
|
@@ -13,5 +13,4 @@ var checkbox_card_module_default = {
|
|
|
13
13
|
"text": "VWx-oW_text",
|
|
14
14
|
"visual": "VWx-oW_visual"
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { checkbox_card_module_default as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { CheckboxCard };
|
|
1
|
+
export { CheckboxCard } from "./checkbox-card.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeEvent, FC, FieldsetHTMLAttributes, PropsWithChildren, Ref } from "react";
|
|
2
|
-
//#region src/components/form/checkbox-group/checkbox-group.d.ts
|
|
3
2
|
type CheckboxGroupContextValue = {
|
|
4
3
|
/** 制御モードの値。非制御では undefined で、各項目は defaultValue から始める */
|
|
5
4
|
value: string[] | undefined;
|
|
@@ -27,5 +26,4 @@ type RootUncontrolledProps = {
|
|
|
27
26
|
};
|
|
28
27
|
type RootProps = RootBaseProps & (RootControlledProps | RootUncontrolledProps);
|
|
29
28
|
declare const Root: FC<RootProps>;
|
|
30
|
-
//#endregion
|
|
31
29
|
export { Root as CheckboxGroupRoot };
|
|
@@ -3,7 +3,7 @@ import checkbox_group_module_default from "./checkbox-group.module.mjs";
|
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { createContext, use, useMemo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/form/checkbox-group/checkbox-group.tsx
|
|
7
7
|
const CheckboxGroupContext = createContext(void 0);
|
|
8
8
|
const useCheckboxGroupContext = () => use(CheckboxGroupContext);
|
|
9
9
|
const Root = ({ "aria-labelledby": labelledbyId, children, defaultValue, disabled = false, invalid = false, name, onChange, ref, value, ...rest }) => {
|
|
@@ -35,5 +35,4 @@ const Root = ({ "aria-labelledby": labelledbyId, children, defaultValue, disable
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { Root as CheckboxGroupRoot, useCheckboxGroupContext };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import './checkbox-group.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/checkbox-group/checkbox-group.module.css
|
|
3
3
|
var checkbox_group_module_default = {
|
|
4
4
|
"disabled": "TaM1Za_disabled",
|
|
5
5
|
"root": "TaM1Za_root"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { checkbox_group_module_default as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/form/checkbox-group/index.d.ts
|
|
2
1
|
export declare const CheckboxGroup: {
|
|
3
2
|
readonly Root: import("react").FC<{
|
|
4
3
|
'aria-labelledby': string;
|
|
@@ -32,5 +31,4 @@ export declare const CheckboxGroup: {
|
|
|
32
31
|
checked?: never;
|
|
33
32
|
onChange?: (checked: boolean, event: import("react").ChangeEvent<HTMLInputElement>) => void;
|
|
34
33
|
})>;
|
|
35
|
-
};
|
|
36
|
-
//#endregion
|
|
34
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { CheckboxGroupRoot as Root } from "./checkbox-group.mjs";
|
|
2
2
|
import { Checkbox } from "../checkbox/checkbox.mjs";
|
|
3
|
-
|
|
3
|
+
// src/components/form/checkbox-group/index.ts
|
|
4
4
|
const CheckboxGroup = {
|
|
5
5
|
Root,
|
|
6
6
|
Item: Checkbox
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { CheckboxGroup };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, InputHTMLAttributes, Ref } from "react";
|
|
2
|
-
//#region src/components/form/color-picker/color-picker.d.ts
|
|
3
2
|
export type ColorPickerSwatch = Readonly<{
|
|
4
3
|
/** `#rrggbb` */
|
|
5
4
|
value: string;
|
|
@@ -25,4 +24,4 @@ type UncontrolledProps = {
|
|
|
25
24
|
};
|
|
26
25
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
27
26
|
export declare const ColorPicker: FC<Props>;
|
|
28
|
-
|
|
27
|
+
export {};
|
|
@@ -11,7 +11,7 @@ import { clsx } from "clsx";
|
|
|
11
11
|
import { useEffect, useEffectEvent, useId, useMemo, useRef, useState } from "react";
|
|
12
12
|
import { useFormStatus } from "react-dom";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
|
|
14
|
+
// src/components/form/color-picker/color-picker.tsx
|
|
15
15
|
const EMPTY = {
|
|
16
16
|
h: 0,
|
|
17
17
|
s: 0,
|
|
@@ -235,5 +235,4 @@ const ColorPicker = ({ invalid = false, swatches, type: _type, value, defaultVal
|
|
|
235
235
|
]
|
|
236
236
|
});
|
|
237
237
|
};
|
|
238
|
-
//#endregion
|
|
239
238
|
export { ColorPicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './color-picker.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/color-picker/color-picker.module.css
|
|
3
3
|
var color_picker_module_default = {
|
|
4
4
|
"channel": "SyHfiq_channel",
|
|
5
5
|
"channelDisabled": "SyHfiq_channelDisabled",
|
|
@@ -16,5 +16,4 @@ var color_picker_module_default = {
|
|
|
16
16
|
"track": "SyHfiq_track",
|
|
17
17
|
"well": "SyHfiq_well"
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { color_picker_module_default as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ColorPicker };
|
|
1
|
+
export { ColorPicker } from "./color-picker.mjs";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Option } from "../../../types/variables.mjs";
|
|
2
2
|
import { FC, InputHTMLAttributes, Ref } from "react";
|
|
3
|
-
//#region src/components/form/combobox/combobox.d.ts
|
|
4
3
|
export type ComboboxSearch = (query: string, options: {
|
|
5
4
|
signal: AbortSignal;
|
|
6
5
|
}) => Promise<readonly Option[]>;
|
|
@@ -29,4 +28,4 @@ type UncontrolledProps = {
|
|
|
29
28
|
};
|
|
30
29
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
31
30
|
export declare const Combobox: FC<Props>;
|
|
32
|
-
|
|
31
|
+
export {};
|
|
@@ -12,7 +12,7 @@ import { clsx } from "clsx";
|
|
|
12
12
|
import { useCallback, useId, useMemo, useRef, useState, useTransition } from "react";
|
|
13
13
|
import { useFormStatus } from "react-dom";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
|
|
15
|
+
// src/components/form/combobox/combobox.tsx
|
|
16
16
|
const NO_OPTIONS = [];
|
|
17
17
|
const matches = (option, text) => option.label.toLocaleLowerCase().includes(text.trim().toLocaleLowerCase());
|
|
18
18
|
const Combobox = ({ invalid = false, options: optionsProp, search, type: _type, value, defaultValue, onChange, name, id, disabled = false, readOnly = false, required = false, placeholder, onBlur, onKeyDown, ref, ...rest }) => {
|
|
@@ -49,10 +49,6 @@ const Combobox = ({ invalid = false, options: optionsProp, search, type: _type,
|
|
|
49
49
|
const [anchor, setAnchor] = useState(null);
|
|
50
50
|
const writingMode = useWritingMode(anchor);
|
|
51
51
|
const anchorName = `--ao-combobox-${baseId.replaceAll(/[^a-zA-Z0-9_-]/gu, "")}`;
|
|
52
|
-
const anchorRef = useCallback((node) => {
|
|
53
|
-
setAnchor(node);
|
|
54
|
-
node?.style.setProperty("anchor-name", anchorName);
|
|
55
|
-
}, [anchorName]);
|
|
56
52
|
const listStyle = {
|
|
57
53
|
position: "fixed",
|
|
58
54
|
inset: "auto",
|
|
@@ -154,7 +150,8 @@ const Combobox = ({ invalid = false, options: optionsProp, search, type: _type,
|
|
|
154
150
|
const status = isSearching ? messages.loading : failed ? messages.comboboxFailed : candidates.length === 0 ? messages.comboboxEmpty : null;
|
|
155
151
|
return /* @__PURE__ */ jsxs("div", {
|
|
156
152
|
className: clsx(combobox_module_default.root, focus_ring_module_default.ringWithin, (disabled || pending) && combobox_module_default.disabled, readOnly && combobox_module_default.readOnly),
|
|
157
|
-
ref:
|
|
153
|
+
ref: setAnchor,
|
|
154
|
+
style: { anchorName },
|
|
158
155
|
children: [
|
|
159
156
|
/* @__PURE__ */ jsx(FormValue, {
|
|
160
157
|
defaultValues: isControlled ? void 0 : defaultValue === void 0 || defaultValue === "" ? [] : [defaultValue],
|
|
@@ -274,5 +271,4 @@ const Combobox = ({ invalid = false, options: optionsProp, search, type: _type,
|
|
|
274
271
|
]
|
|
275
272
|
});
|
|
276
273
|
};
|
|
277
|
-
//#endregion
|
|
278
274
|
export { Combobox };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './combobox.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/combobox/combobox.module.css
|
|
3
3
|
var combobox_module_default = {
|
|
4
4
|
"active": "-dBzoa_active",
|
|
5
5
|
"collapsed": "-dBzoa_collapsed",
|
|
@@ -15,5 +15,4 @@ var combobox_module_default = {
|
|
|
15
15
|
"status": "-dBzoa_status",
|
|
16
16
|
"toggle": "-dBzoa_toggle"
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { combobox_module_default as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Combobox };
|
|
1
|
+
export { Combobox } from "./combobox.mjs";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC, InputHTMLAttributes, Ref } from "react";
|
|
2
|
-
//#region src/components/form/date-field/date-field.d.ts
|
|
3
2
|
type Props = {
|
|
4
3
|
invalid?: boolean;
|
|
5
4
|
ref?: Ref<HTMLInputElement>;
|
|
6
5
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style' | 'type' | 'children'>;
|
|
7
6
|
export declare const DateField: FC<Props>;
|
|
8
|
-
|
|
7
|
+
export {};
|