@k8ordo/ui 2.2.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 +1 -1
- 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 +0 -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 +0 -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 +0 -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 +0 -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 +0 -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 +0 -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 +0 -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 +0 -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/reasoning.d.mts +0 -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/response.d.mts +0 -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 +0 -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 +0 -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 +0 -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/tool-invocation.d.mts +0 -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 +0 -2
- package/dist/components/buttons/button/button.mjs +1 -2
- package/dist/components/buttons/button/button.module.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/icon-button/icon-button.d.mts +0 -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/toolbar/index.d.mts +0 -2
- package/dist/components/buttons/toolbar/index.mjs +1 -2
- package/dist/components/buttons/toolbar/toolbar.d.mts +0 -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 +0 -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/badge/badge.d.mts +0 -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/card/card.d.mts +0 -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/carousel/carousel.d.mts +0 -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 +0 -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 +0 -2
- package/dist/components/data-display/code/find-all-colors.mjs +1 -2
- package/dist/components/data-display/code-block/code-block.d.mts +0 -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 +0 -2
- package/dist/components/data-display/code-block/highlight.mjs +1 -2
- package/dist/components/data-display/data-table/data-table.d.mts +0 -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/heading/heading.d.mts +0 -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/kbd/kbd.d.mts +0 -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/prose.css +5 -0
- package/dist/components/data-display/prose/prose.d.mts +0 -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/table.d.mts +0 -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/tree.d.mts +0 -2
- package/dist/components/data-display/tree/tree.mjs +1 -2
- package/dist/components/data-display/tree/tree.module.mjs +1 -2
- package/dist/components/feedback/alert/alert.d.mts +0 -2
- package/dist/components/feedback/alert/alert.mjs +1 -2
- package/dist/components/feedback/alert/alert.module.mjs +1 -2
- package/dist/components/feedback/callout/callout.d.mts +0 -2
- package/dist/components/feedback/callout/callout.mjs +1 -2
- package/dist/components/feedback/callout/callout.module.mjs +1 -2
- package/dist/components/feedback/empty-state/empty-state.d.mts +0 -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/progress/progress.d.mts +0 -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/skeleton.d.mts +0 -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/spinner.d.mts +0 -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 +0 -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 +0 -2
- package/dist/components/form/autocomplete/autocomplete.mjs +3 -4
- package/dist/components/form/autocomplete/autocomplete.module.mjs +1 -2
- package/dist/components/form/calendar/calendar.d.mts +0 -2
- package/dist/components/form/calendar/calendar.mjs +1 -2
- package/dist/components/form/calendar/calendar.module.mjs +1 -2
- package/dist/components/form/checkbox/checkbox.d.mts +0 -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-card/checkbox-card.d.mts +0 -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-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 +0 -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/combobox/combobox.css +1 -1
- package/dist/components/form/combobox/combobox.d.mts +0 -2
- package/dist/components/form/combobox/combobox.mjs +3 -7
- package/dist/components/form/combobox/combobox.module.mjs +1 -2
- package/dist/components/form/date-field/date-field.css +1 -1
- package/dist/components/form/date-field/date-field.d.mts +0 -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-picker/date-picker.d.mts +0 -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/file-field/file-field.d.mts +0 -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 +0 -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-control/form-control.d.mts +0 -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/number-field/cast.d.mts +1 -3
- package/dist/components/form/number-field/cast.mjs +1 -2
- package/dist/components/form/number-field/number-field.css +0 -11
- package/dist/components/form/number-field/number-field.d.mts +0 -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/password-input.d.mts +0 -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/radio.d.mts +0 -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/radio-card.d.mts +0 -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/range-slider.d.mts +0 -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/select.d.mts +0 -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/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 +0 -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/switch.d.mts +0 -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/text-field.css +0 -11
- package/dist/components/form/text-field/text-field.d.mts +0 -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/textarea.css +0 -11
- package/dist/components/form/textarea/textarea.d.mts +0 -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 +0 -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/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 +0 -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/separator.d.mts +0 -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/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 +0 -2
- package/dist/components/navigation/anchor/anchor.mjs +1 -2
- package/dist/components/navigation/anchor/anchor.module.mjs +1 -2
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +0 -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/pagination.d.mts +0 -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 +0 -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/stepper.d.mts +0 -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/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/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 +0 -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/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/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 +0 -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/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 +0 -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 +0 -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 +0 -2
- package/dist/helpers/chain.mjs +1 -2
- package/dist/helpers/create-safe-context.d.mts +0 -2
- package/dist/helpers/create-safe-context.mjs +1 -2
- package/dist/helpers/merge-props.d.mts +0 -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 +0 -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 +0 -2
- package/dist/integrations/_shared/schemas.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 +0 -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 +1 -3
- package/dist/integrations/openui/form-views.mjs +1 -2
- package/dist/integrations/openui/library.d.mts +0 -2
- 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/package.json +23 -23
- package/dist/components/icons/lucide-deep.d.mts +0 -11
|
@@ -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,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,5 +24,4 @@ type UncontrolledProps = {
|
|
|
25
24
|
};
|
|
26
25
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
27
26
|
export declare const ColorPicker: FC<Props>;
|
|
28
|
-
//#endregion
|
|
29
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,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,5 +28,4 @@ type UncontrolledProps = {
|
|
|
29
28
|
};
|
|
30
29
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
31
30
|
export declare const Combobox: FC<Props>;
|
|
32
|
-
//#endregion
|
|
33
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,9 +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
|
-
//#endregion
|
|
9
7
|
export {};
|
|
@@ -4,7 +4,7 @@ import date_field_module_default from "./date-field.module.mjs";
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { useFormStatus } from "react-dom";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/form/date-field/date-field.tsx
|
|
8
8
|
const DateField = ({ invalid = false, readOnly, ref, ...rest }) => {
|
|
9
9
|
const { pending } = useFormStatus();
|
|
10
10
|
return /* @__PURE__ */ jsx("input", {
|
|
@@ -16,5 +16,4 @@ const DateField = ({ invalid = false, readOnly, ref, ...rest }) => {
|
|
|
16
16
|
type: "date"
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { DateField };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import './date-field.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/date-field/date-field.module.css
|
|
3
3
|
var date_field_module_default = { "root": "_pBLbq_root" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { date_field_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, InputHTMLAttributes, Ref } from "react";
|
|
2
|
-
//#region src/components/form/date-picker/date-picker.d.ts
|
|
3
2
|
type Props = {
|
|
4
3
|
invalid?: boolean;
|
|
5
4
|
/** `YYYY-MM-DD`。未入力は `''`。 */
|
|
@@ -9,5 +8,4 @@ type Props = {
|
|
|
9
8
|
ref?: Ref<HTMLInputElement>;
|
|
10
9
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'children'>;
|
|
11
10
|
export declare const DatePicker: FC<Props>;
|
|
12
|
-
//#endregion
|
|
13
11
|
export {};
|
|
@@ -11,7 +11,7 @@ import { clsx } from "clsx";
|
|
|
11
11
|
import { useMemo, useRef, useState } from "react";
|
|
12
12
|
import { useFormStatus } from "react-dom";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
|
|
14
|
+
// src/components/form/date-picker/date-picker.tsx
|
|
15
15
|
const asDate = (bound) => bound === void 0 ? void 0 : String(bound);
|
|
16
16
|
const DatePicker = ({ invalid = false, value, defaultValue, onChange, disabled = false, readOnly = false, min, max, ref, ...rest }) => {
|
|
17
17
|
const messages = getMessages();
|
|
@@ -73,5 +73,4 @@ const DatePicker = ({ invalid = false, value, defaultValue, onChange, disabled =
|
|
|
73
73
|
})]
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
//#endregion
|
|
77
76
|
export { DatePicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './date-picker.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/date-picker/date-picker.module.css
|
|
3
3
|
var date_picker_module_default = {
|
|
4
4
|
"dialog": "VmF9ya_dialog",
|
|
5
5
|
"disabled": "VmF9ya_disabled",
|
|
@@ -10,5 +10,4 @@ var date_picker_module_default = {
|
|
|
10
10
|
"root": "VmF9ya_root",
|
|
11
11
|
"trigger": "VmF9ya_trigger"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { date_picker_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeEvent, FC, InputHTMLAttributes, PropsWithChildren, ReactElement, ReactNode, Ref } from "react";
|
|
2
|
-
//#region src/components/form/file-field/file-field.d.ts
|
|
3
2
|
type RootProps = PropsWithChildren<{
|
|
4
3
|
invalid?: boolean;
|
|
5
4
|
maxFiles?: number;
|
|
@@ -23,5 +22,4 @@ export declare const ItemList: FC<{
|
|
|
23
22
|
showWebkitRelativePath?: boolean;
|
|
24
23
|
clearable?: boolean;
|
|
25
24
|
}>;
|
|
26
|
-
//#endregion
|
|
27
25
|
export {};
|
|
@@ -14,7 +14,7 @@ import { clsx } from "clsx";
|
|
|
14
14
|
import { useCallback, useEffect, useEffectEvent, useId, useMemo, useRef, useState } from "react";
|
|
15
15
|
import { useFormStatus } from "react-dom";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
|
|
17
|
+
// src/components/form/file-field/file-field.tsx
|
|
18
18
|
const [FileFieldProvider, useFileFieldContext] = createSafeContext("useFileFieldContext must be used within a FileField.Root");
|
|
19
19
|
const toAccepted = (files) => files.map((file) => ({
|
|
20
20
|
file,
|
|
@@ -213,5 +213,4 @@ const ItemList = ({ showWebkitRelativePath, clearable }) => {
|
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
|
-
//#endregion
|
|
217
216
|
export { Dropzone, ItemList, Root, Trigger };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './file-field.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/file-field/file-field.module.css
|
|
3
3
|
var file_field_module_default = {
|
|
4
4
|
"disabled": "PPBdPq_disabled",
|
|
5
5
|
"dragging": "PPBdPq_dragging",
|
|
@@ -13,5 +13,4 @@ var file_field_module_default = {
|
|
|
13
13
|
"root": "PPBdPq_root",
|
|
14
14
|
"size": "PPBdPq_size"
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { file_field_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Root } from "./file-field.mjs";
|
|
2
|
-
//#region src/components/form/file-field/index.d.ts
|
|
3
2
|
export declare const FileField: {
|
|
4
3
|
readonly Root: typeof Root;
|
|
5
4
|
readonly Trigger: import("react").FC<{
|
|
@@ -16,5 +15,4 @@ export declare const FileField: {
|
|
|
16
15
|
showWebkitRelativePath?: boolean;
|
|
17
16
|
clearable?: boolean;
|
|
18
17
|
}>;
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
18
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Dropzone, ItemList, Root, Trigger } from "./file-field.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/form/file-field/index.ts
|
|
3
3
|
const FileField = {
|
|
4
4
|
Root,
|
|
5
5
|
Trigger,
|
|
6
6
|
Dropzone,
|
|
7
7
|
ItemList
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { FileField };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FC, FormHTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
-
//#region src/components/form/form/form.d.ts
|
|
3
2
|
type Props = {
|
|
4
3
|
action?: ((formData: FormData) => void | Promise<void>) | string;
|
|
5
4
|
children: ReactNode;
|
|
6
5
|
ref?: Ref<HTMLFormElement>;
|
|
7
6
|
} & Omit<FormHTMLAttributes<HTMLFormElement>, 'action' | 'children' | 'className' | 'style'>;
|
|
8
7
|
export declare const Form: FC<Props>;
|
|
9
|
-
//#endregion
|
|
10
8
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import form_module_default from "./form.module.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/form/form/form.tsx
|
|
5
5
|
const Form = ({ action, children, ...rest }) => /* @__PURE__ */ jsx("form", {
|
|
6
6
|
action,
|
|
7
7
|
className: form_module_default.root,
|
|
8
8
|
...rest,
|
|
9
9
|
children
|
|
10
10
|
});
|
|
11
|
-
//#endregion
|
|
12
11
|
export { Form };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactElement, Ref } from "react";
|
|
2
|
-
//#region src/components/form/form-control/form-control.d.ts
|
|
3
2
|
type FormControlProps = {
|
|
4
3
|
disabled?: boolean;
|
|
5
4
|
invalid?: boolean;
|
|
@@ -19,5 +18,4 @@ type FormControlProps = {
|
|
|
19
18
|
ref?: Ref<HTMLElement>;
|
|
20
19
|
} & Omit<HTMLAttributes<HTMLElement>, 'className' | 'style' | 'children'>;
|
|
21
20
|
export declare const FormControl: FC<FormControlProps>;
|
|
22
|
-
//#endregion
|
|
23
21
|
export {};
|
|
@@ -4,7 +4,7 @@ import form_control_module_default from "./form-control.module.mjs";
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { useId } from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/form/form-control/form-control.tsx
|
|
8
8
|
const FormControl = ({ disabled = false, invalid = false, required = false, label, labelAs = "label", helpText, errorText, renderInput, ref, ...rest }) => {
|
|
9
9
|
const messages = getMessages();
|
|
10
10
|
const id = useId();
|
|
@@ -58,5 +58,4 @@ const FormControl = ({ disabled = false, invalid = false, required = false, labe
|
|
|
58
58
|
children: content
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
-
//#endregion
|
|
62
61
|
export { FormControl };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './form-control.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/form-control/form-control.module.css
|
|
3
3
|
var form_control_module_default = {
|
|
4
4
|
"error": "_8KGDqG_error",
|
|
5
5
|
"help": "_8KGDqG_help",
|
|
@@ -8,5 +8,4 @@ var form_control_module_default = {
|
|
|
8
8
|
"required": "_8KGDqG_required",
|
|
9
9
|
"root": "_8KGDqG_root"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { form_control_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toPrecision } from "../../../internal/to-precision.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/form/number-field/cast.ts
|
|
3
3
|
const FLOATING_POINT_REGEX = /^[Ee0-9+\-.]$/u;
|
|
4
4
|
const isInvalidCharacter = (value) => FLOATING_POINT_REGEX.test(value);
|
|
5
5
|
const sanitize = (value) => value.split("").filter((char) => isInvalidCharacter(char)).join("");
|
|
@@ -9,5 +9,4 @@ const cast = (value, precision) => {
|
|
|
9
9
|
if (Number.isNaN(parsedValue)) return null;
|
|
10
10
|
return toPrecision(parsedValue, precision);
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { cast };
|
|
@@ -20,17 +20,6 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.iUg6Ca_root:focus-within {
|
|
24
|
-
box-shadow: var(--shadow-ring-info);
|
|
25
|
-
border-color: #0000;
|
|
26
|
-
outline-style: none;
|
|
27
|
-
|
|
28
|
-
@media (forced-colors: active) {
|
|
29
|
-
outline-offset: 2px;
|
|
30
|
-
outline: 2px solid #0000;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
23
|
.iUg6Ca_root:has(:disabled) {
|
|
35
24
|
cursor: not-allowed;
|
|
36
25
|
border-color: var(--color-border-mute);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, InputHTMLAttributes, Ref } from "react";
|
|
2
|
-
//#region src/components/form/number-field/number-field.d.ts
|
|
3
2
|
type BaseProps = {
|
|
4
3
|
invalid?: boolean;
|
|
5
4
|
/** 小数の桁数。省略すると step の桁数に合わせ、step が 'any' なら丸めない */
|
|
@@ -22,5 +21,4 @@ type UncontrolledProps = {
|
|
|
22
21
|
};
|
|
23
22
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
24
23
|
export declare const NumberField: FC<Props>;
|
|
25
|
-
//#endregion
|
|
26
24
|
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
4
4
|
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
5
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
6
|
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
6
7
|
import { chain } from "../../../helpers/chain.mjs";
|
|
7
8
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
@@ -9,10 +10,11 @@ import { toPrecision } from "../../../internal/to-precision.mjs";
|
|
|
9
10
|
import { clamp } from "../../../internal/clamp.mjs";
|
|
10
11
|
import { cast } from "./cast.mjs";
|
|
11
12
|
import number_field_module_default from "./number-field.module.mjs";
|
|
13
|
+
import { clsx } from "clsx";
|
|
12
14
|
import { useEffect, useEffectEvent, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
13
15
|
import { useFormStatus } from "react-dom";
|
|
14
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
|
|
17
|
+
// src/components/form/number-field/number-field.tsx
|
|
16
18
|
const format = (value, precision) => {
|
|
17
19
|
if (value === null) return "";
|
|
18
20
|
return precision === void 0 ? String(value) : value.toFixed(precision);
|
|
@@ -110,7 +112,7 @@ const NumberField = ({ invalid = false, disabled = false, readOnly = false, requ
|
|
|
110
112
|
commit(input, current === null ? clamp(0, min, max) : clamp(toPrecision(current + delta, precision), min, max));
|
|
111
113
|
};
|
|
112
114
|
return /* @__PURE__ */ jsxs("div", {
|
|
113
|
-
className: number_field_module_default.root,
|
|
115
|
+
className: clsx(number_field_module_default.root, focus_ring_module_default.ringWithin),
|
|
114
116
|
children: [/* @__PURE__ */ jsx("input", {
|
|
115
117
|
autoComplete: "off",
|
|
116
118
|
autoCorrect: "off",
|
|
@@ -183,5 +185,4 @@ const NumberField = ({ invalid = false, disabled = false, readOnly = false, requ
|
|
|
183
185
|
})]
|
|
184
186
|
});
|
|
185
187
|
};
|
|
186
|
-
//#endregion
|
|
187
188
|
export { NumberField };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import './number-field.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/number-field/number-field.module.css
|
|
3
3
|
var number_field_module_default = {
|
|
4
4
|
"input": "iUg6Ca_input",
|
|
5
5
|
"root": "iUg6Ca_root",
|
|
6
6
|
"step": "iUg6Ca_step",
|
|
7
7
|
"steppers": "iUg6Ca_steppers"
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { number_field_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, InputHTMLAttributes, Ref } from "react";
|
|
2
|
-
//#region src/components/form/password-input/password-input.d.ts
|
|
3
2
|
type Props = {
|
|
4
3
|
invalid?: boolean;
|
|
5
4
|
showLabel?: string;
|
|
@@ -7,5 +6,4 @@ type Props = {
|
|
|
7
6
|
ref?: Ref<HTMLInputElement>;
|
|
8
7
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'className' | 'style'>;
|
|
9
8
|
export declare const PasswordInput: FC<Props>;
|
|
10
|
-
//#endregion
|
|
11
9
|
export {};
|
|
@@ -7,7 +7,7 @@ import { clsx } from "clsx";
|
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { useFormStatus } from "react-dom";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/form/password-input/password-input.tsx
|
|
11
11
|
const PasswordInput = ({ invalid = false, autoComplete = "current-password", showLabel, hideLabel, disabled = false, readOnly, ref, ...rest }) => {
|
|
12
12
|
const messages = getMessages();
|
|
13
13
|
const [isVisible, setIsVisible] = useState(false);
|
|
@@ -35,5 +35,4 @@ const PasswordInput = ({ invalid = false, autoComplete = "current-password", sho
|
|
|
35
35
|
})]
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { PasswordInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './password-input.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/password-input/password-input.module.css
|
|
3
3
|
var password_input_module_default = {
|
|
4
4
|
"disabled": "StCDRW_disabled",
|
|
5
5
|
"input": "StCDRW_input",
|
|
@@ -8,5 +8,4 @@ var password_input_module_default = {
|
|
|
8
8
|
"toggle": "StCDRW_toggle",
|
|
9
9
|
"toggleDisabled": "StCDRW_toggleDisabled"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { password_input_module_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Option } from "../../../types/variables.mjs";
|
|
2
2
|
import { ChangeEvent, FC, HTMLAttributes, Ref } from "react";
|
|
3
|
-
//#region src/components/form/radio/radio.d.ts
|
|
4
3
|
type BaseProps = {
|
|
5
4
|
'aria-labelledby': string;
|
|
6
5
|
name?: string;
|
|
@@ -22,5 +21,4 @@ type UncontrolledProps = {
|
|
|
22
21
|
};
|
|
23
22
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
24
23
|
export declare const Radio: FC<Props>;
|
|
25
|
-
//#endregion
|
|
26
24
|
export {};
|
|
@@ -5,7 +5,7 @@ import radio_module_default from "./radio.module.mjs";
|
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { useFormStatus } from "react-dom";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/form/radio/radio.tsx
|
|
9
9
|
const Radio = ({ "aria-labelledby": labelledbyId, name, disabled = false, invalid = false, required = false, value, defaultValue, onChange, options, ref, ...rest }) => {
|
|
10
10
|
const { pending } = useFormStatus();
|
|
11
11
|
const isControlled = value !== void 0;
|
|
@@ -44,5 +44,4 @@ const Radio = ({ "aria-labelledby": labelledbyId, name, disabled = false, invali
|
|
|
44
44
|
}, option.value))
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
//#endregion
|
|
48
47
|
export { Radio };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './radio.css';
|
|
2
|
-
|
|
2
|
+
// src/components/form/radio/radio.module.css
|
|
3
3
|
var radio_module_default = {
|
|
4
4
|
"circle": "_8JmqZW_circle",
|
|
5
5
|
"circleDisabled": "_8JmqZW_circleDisabled",
|
|
@@ -12,5 +12,4 @@ var radio_module_default = {
|
|
|
12
12
|
"optionDisabled": "_8JmqZW_optionDisabled",
|
|
13
13
|
"root": "_8JmqZW_root"
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { radio_module_default as default };
|