@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
|
@@ -3,7 +3,7 @@ import { SparklesIcon } from "../../icons/lucide.mjs";
|
|
|
3
3
|
import { Collapsible } from "../_internal/collapsible.mjs";
|
|
4
4
|
import reasoning_module_default from "./reasoning.module.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/ai/reasoning/reasoning.tsx
|
|
7
7
|
const Reasoning = ({ children, isStreaming = false, isOpen, defaultOpen = false, onChange }) => {
|
|
8
8
|
const messages = getMessages();
|
|
9
9
|
return /* @__PURE__ */ jsx(Collapsible, {
|
|
@@ -21,5 +21,4 @@ const Reasoning = ({ children, isStreaming = false, isOpen, defaultOpen = false,
|
|
|
21
21
|
})
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { Reasoning };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import './reasoning.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/reasoning/reasoning.module.css
|
|
3
3
|
var reasoning_module_default = {
|
|
4
4
|
"icon": "_m0qEq_icon",
|
|
5
5
|
"text": "_m0qEq_text"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { reasoning_module_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { StreamdownProps } from "streamdown";
|
|
3
|
-
//#region src/components/ai/response/response.d.ts
|
|
4
3
|
type Props = {
|
|
5
4
|
children: string;
|
|
6
5
|
isStreaming?: boolean;
|
|
@@ -15,5 +14,4 @@ type Props = {
|
|
|
15
14
|
* `children` / `isStreaming` 以外の props は streamdown にそのまま渡る。
|
|
16
15
|
*/
|
|
17
16
|
export declare const Response: FC<Props>;
|
|
18
|
-
//#endregion
|
|
19
17
|
export {};
|
|
@@ -4,7 +4,7 @@ import response_module_default from "./response.module.mjs";
|
|
|
4
4
|
import { useMemo, useRef } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Streamdown } from "streamdown";
|
|
7
|
-
|
|
7
|
+
// src/components/ai/response/response.tsx
|
|
8
8
|
const defaultLinkSafety = { enabled: false };
|
|
9
9
|
/**
|
|
10
10
|
* ストリーミング対応の Markdown レンダラ。未クローズのコードブロックなど
|
|
@@ -58,5 +58,4 @@ const Response = ({ children, isStreaming = false, linkSafety = defaultLinkSafet
|
|
|
58
58
|
}), /* @__PURE__ */ jsx("div", { ref: overlayRef })]
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
-
//#endregion
|
|
62
61
|
export { Response };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import './response.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/response/response.module.css
|
|
3
3
|
var response_module_default = {
|
|
4
4
|
"markdown": "fhQxUq_markdown",
|
|
5
5
|
"root": "fhQxUq_root"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { response_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
//#region src/components/ai/source/source.d.ts
|
|
3
2
|
type ListProps = {
|
|
4
3
|
label?: string;
|
|
5
4
|
children: ReactNode;
|
|
@@ -10,5 +9,4 @@ type ItemProps = {
|
|
|
10
9
|
title?: string;
|
|
11
10
|
};
|
|
12
11
|
export declare const Item: FC<ItemProps>;
|
|
13
|
-
//#endregion
|
|
14
12
|
export {};
|
|
@@ -5,7 +5,7 @@ import { FileIcon } from "../_internal/icons.mjs";
|
|
|
5
5
|
import source_module_default from "./source.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/ai/source/source.tsx
|
|
9
9
|
const List = ({ label, children }) => {
|
|
10
10
|
const messages = getMessages();
|
|
11
11
|
return /* @__PURE__ */ jsx("ul", {
|
|
@@ -47,5 +47,4 @@ const Item = ({ href, title }) => {
|
|
|
47
47
|
})
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
//#endregion
|
|
51
50
|
export { Item, List };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './source.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/source/source.module.css
|
|
3
3
|
var source_module_default = {
|
|
4
4
|
"chip": "bT4CPW_chip",
|
|
5
5
|
"icon": "bT4CPW_icon",
|
|
@@ -8,5 +8,4 @@ var source_module_default = {
|
|
|
8
8
|
"link": "bT4CPW_link",
|
|
9
9
|
"list": "bT4CPW_list"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { source_module_default as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/ai/suggestion/index.d.ts
|
|
2
1
|
export declare const Suggestion: {
|
|
3
2
|
readonly List: import("react").FC<{
|
|
4
3
|
label?: string;
|
|
@@ -9,5 +8,4 @@ export declare const Suggestion: {
|
|
|
9
8
|
onSelect?: (value: string) => void;
|
|
10
9
|
children?: import("react").ReactNode;
|
|
11
10
|
}>;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
11
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
//#region src/components/ai/suggestion/suggestion.d.ts
|
|
3
2
|
type ListProps = {
|
|
4
3
|
label?: string;
|
|
5
4
|
children: ReactNode;
|
|
@@ -11,5 +10,4 @@ type ItemProps = {
|
|
|
11
10
|
children?: ReactNode;
|
|
12
11
|
};
|
|
13
12
|
export declare const Item: FC<ItemProps>;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
|
@@ -4,7 +4,7 @@ import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
|
4
4
|
import suggestion_module_default from "./suggestion.module.mjs";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/ai/suggestion/suggestion.tsx
|
|
8
8
|
const List = ({ label, children }) => {
|
|
9
9
|
const messages = getMessages();
|
|
10
10
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -22,5 +22,4 @@ const Item = ({ value, onSelect, children }) => /* @__PURE__ */ jsx("button", {
|
|
|
22
22
|
type: "button",
|
|
23
23
|
children: children ?? value
|
|
24
24
|
});
|
|
25
|
-
//#endregion
|
|
26
25
|
export { Item, List };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import './suggestion.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/suggestion/suggestion.module.css
|
|
3
3
|
var suggestion_module_default = {
|
|
4
4
|
"item": "_17P9Rq_item",
|
|
5
5
|
"list": "_17P9Rq_list"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { suggestion_module_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ToolApproval, ToolApprovalResponse } from "../types.mjs";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
//#region src/components/ai/tool-invocation/approval-bar.d.ts
|
|
4
3
|
type Props = {
|
|
5
4
|
approval: ToolApproval;
|
|
6
5
|
nameId: string;
|
|
@@ -8,5 +7,4 @@ type Props = {
|
|
|
8
7
|
onApprovalResponse?: (response: ToolApprovalResponse) => void | PromiseLike<void>;
|
|
9
8
|
};
|
|
10
9
|
export declare const ApprovalBar: FC<Props>;
|
|
11
|
-
//#endregion
|
|
12
10
|
export {};
|
|
@@ -4,7 +4,7 @@ import { Button } from "../../buttons/button/button.mjs";
|
|
|
4
4
|
import approval_bar_module_default from "./approval-bar.module.mjs";
|
|
5
5
|
import { useCallback, useTransition } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/ai/tool-invocation/approval-bar.tsx
|
|
8
8
|
const renderFocusable = ({ disabled: _disabled, ...props }) => /* @__PURE__ */ jsx("button", {
|
|
9
9
|
...props,
|
|
10
10
|
type: "button"
|
|
@@ -55,5 +55,4 @@ const ApprovalBar = ({ approval, nameId, triggerId, onApprovalResponse }) => {
|
|
|
55
55
|
})]
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
//#endregion
|
|
59
58
|
export { ApprovalBar };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import './approval-bar.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/tool-invocation/approval-bar.module.css
|
|
3
3
|
var approval_bar_module_default = {
|
|
4
4
|
"buttons": "lz-KpW_buttons",
|
|
5
5
|
"request": "lz-KpW_request",
|
|
6
6
|
"root": "lz-KpW_root"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { approval_bar_module_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ToolApproval, ToolApprovalResponse, ToolState } from "../types.mjs";
|
|
2
2
|
import { FC, ReactNode } from "react";
|
|
3
|
-
//#region src/components/ai/tool-invocation/tool-invocation.d.ts
|
|
4
3
|
type Props = {
|
|
5
4
|
name: string;
|
|
6
5
|
state: ToolState;
|
|
@@ -14,5 +13,4 @@ type Props = {
|
|
|
14
13
|
onChange?: (isOpen: boolean) => void;
|
|
15
14
|
};
|
|
16
15
|
export declare const ToolInvocation: FC<Props>;
|
|
17
|
-
//#endregion
|
|
18
16
|
export {};
|
|
@@ -7,7 +7,7 @@ import tool_invocation_module_default from "./tool-invocation.module.mjs";
|
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { useId } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/ai/tool-invocation/tool-invocation.tsx
|
|
11
11
|
const stateIcon = (state, awaitsUser) => {
|
|
12
12
|
if (awaitsUser) return /* @__PURE__ */ jsx("span", {
|
|
13
13
|
className: tool_invocation_module_default.info,
|
|
@@ -90,5 +90,4 @@ const ToolInvocation = ({ name, state, input, output, errorText, approval, onApp
|
|
|
90
90
|
})
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
|
-
//#endregion
|
|
94
93
|
export { ToolInvocation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './tool-invocation.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/tool-invocation/tool-invocation.module.css
|
|
3
3
|
var tool_invocation_module_default = {
|
|
4
4
|
"body": "EmiAxa_body",
|
|
5
5
|
"caption": "EmiAxa_caption",
|
|
@@ -11,5 +11,4 @@ var tool_invocation_module_default = {
|
|
|
11
11
|
"success": "EmiAxa_success",
|
|
12
12
|
"warning": "EmiAxa_warning"
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
14
|
export { tool_invocation_module_default as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/ai/types.d.ts
|
|
2
1
|
export type ChatStatus = 'ready' | 'submitted' | 'streaming' | 'error';
|
|
3
2
|
export type ToolState = 'input-streaming' | 'input-available' | 'approval-requested' | 'approval-responded' | 'output-available' | 'output-error' | 'output-denied';
|
|
4
3
|
/**
|
|
@@ -18,5 +17,4 @@ export type ToolApprovalResponse = {
|
|
|
18
17
|
id: string;
|
|
19
18
|
approved: boolean;
|
|
20
19
|
};
|
|
21
|
-
export type MessageFeedback = 'positive' | 'negative';
|
|
22
|
-
//#endregion
|
|
20
|
+
export type MessageFeedback = 'positive' | 'negative';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ComponentPropsWithRef, FC, MouseEventHandler, ReactNode, RefCallback } from "react";
|
|
2
|
-
//#region src/components/buttons/button/button.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* `renderItem` が受け取る props。既定の `<button>` に渡すものと同じ
|
|
5
4
|
* オブジェクトで、`<button>` にはそのまま展開できる。`<a>` など別の要素を
|
|
@@ -47,5 +46,4 @@ type Props = {
|
|
|
47
46
|
renderItem?: (props: ButtonRenderItemProps) => ReactNode;
|
|
48
47
|
} & Omit<ComponentPropsWithRef<'button'>, 'type' | 'className' | 'style'>;
|
|
49
48
|
export declare const Button: FC<Props>;
|
|
50
|
-
//#endregion
|
|
51
49
|
export {};
|
|
@@ -7,7 +7,7 @@ import { clsx } from "clsx";
|
|
|
7
7
|
import { useMemo, useTransition } from "react";
|
|
8
8
|
import { useFormStatus } from "react-dom";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/buttons/button/button.tsx
|
|
11
11
|
const VARIANT = {
|
|
12
12
|
solid: {
|
|
13
13
|
primary: button_module_default.solidPrimary,
|
|
@@ -66,5 +66,4 @@ const Button = ({ ref, children, type = "button", size = "md", color = "primary"
|
|
|
66
66
|
type: type === "submit" ? "submit" : "button"
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
-
//#endregion
|
|
70
69
|
export { Button };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './button.css';
|
|
2
|
-
|
|
2
|
+
// src/components/buttons/button/button.module.css
|
|
3
3
|
var button_module_default = {
|
|
4
4
|
"active": "_8QHOaq_active",
|
|
5
5
|
"disabled": "_8QHOaq_disabled",
|
|
@@ -19,5 +19,4 @@ var button_module_default = {
|
|
|
19
19
|
"solidSecondary": "_8QHOaq_solidSecondary",
|
|
20
20
|
"withIcons": "_8QHOaq_withIcons"
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { button_module_default as default };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
//#region src/components/buttons/copy-button/copy-button.d.ts
|
|
3
2
|
export declare const CopyButton: FC<{
|
|
4
3
|
value: string | (() => string | Promise<string>);
|
|
5
4
|
label?: string;
|
|
6
5
|
iconOnly?: boolean;
|
|
7
6
|
size?: 'sm' | 'md' | 'lg';
|
|
8
7
|
disabled?: boolean;
|
|
9
|
-
}>;
|
|
10
|
-
//#endregion
|
|
8
|
+
}>;
|
|
@@ -7,7 +7,7 @@ import { IconButton } from "../icon-button/icon-button.mjs";
|
|
|
7
7
|
import copy_button_module_default from "./copy-button.module.mjs";
|
|
8
8
|
import { useEffect, useState } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/buttons/copy-button/copy-button.tsx
|
|
11
11
|
const RESULT_MS = 2e3;
|
|
12
12
|
const CopyButton = ({ value, label, iconOnly = false, size = "md", disabled = false }) => {
|
|
13
13
|
const messages = getMessages();
|
|
@@ -66,5 +66,4 @@ const CopyButton = ({ value, label, iconOnly = false, size = "md", disabled = fa
|
|
|
66
66
|
children: result === null ? null : /* @__PURE__ */ jsx("span", { children: result.status === "copied" ? messages.copied : messages.copyFailed }, result.count)
|
|
67
67
|
})] });
|
|
68
68
|
};
|
|
69
|
-
//#endregion
|
|
70
69
|
export { CopyButton };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import './copy-button.css';
|
|
2
|
-
|
|
2
|
+
// src/components/buttons/copy-button/copy-button.module.css
|
|
3
3
|
var copy_button_module_default = {
|
|
4
4
|
"copied": "bpJt3q_copied",
|
|
5
5
|
"failed": "bpJt3q_failed"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { copy_button_module_default as default };
|
|
@@ -2,7 +2,6 @@ import { Placement } from "../../../types/variables.mjs";
|
|
|
2
2
|
import { TooltipTriggerProps } from "../../overlays/tooltip/tooltip.mjs";
|
|
3
3
|
import "../../overlays/tooltip/index.mjs";
|
|
4
4
|
import { ButtonHTMLAttributes, ComponentPropsWithRef, FC, MouseEventHandler, ReactNode } from "react";
|
|
5
|
-
//#region src/components/buttons/icon-button/icon-button.d.ts
|
|
6
5
|
export type IconButtonTriggerProps = Partial<TooltipTriggerProps>;
|
|
7
6
|
/**
|
|
8
7
|
* `renderItem` が受け取る props。既定の `<button>` に渡すものと同じ
|
|
@@ -53,5 +52,4 @@ type Props = {
|
|
|
53
52
|
renderItem?: (props: IconButtonRenderItemProps) => ReactNode;
|
|
54
53
|
} & Omit<ComponentPropsWithRef<'button'>, 'type' | 'className' | 'style'>;
|
|
55
54
|
export declare const IconButton: FC<Props>;
|
|
56
|
-
//#endregion
|
|
57
55
|
export {};
|
|
@@ -8,7 +8,7 @@ import { clsx } from "clsx";
|
|
|
8
8
|
import { useMemo, useTransition } from "react";
|
|
9
9
|
import { useFormStatus } from "react-dom";
|
|
10
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
|
|
11
|
+
// src/components/buttons/icon-button/icon-button.tsx
|
|
12
12
|
const COLOR = {
|
|
13
13
|
transparent: icon_button_module_default.transparent,
|
|
14
14
|
base: icon_button_module_default.base,
|
|
@@ -93,5 +93,4 @@ const IconButton = ({ ref, size = "md", color = "transparent", label, tooltipPla
|
|
|
93
93
|
children: [/* @__PURE__ */ jsx(Tooltip.Trigger, { renderItem: render }), /* @__PURE__ */ jsx(Tooltip.Content, { children: label })]
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
|
-
//#endregion
|
|
97
96
|
export { IconButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './icon-button.css';
|
|
2
|
-
|
|
2
|
+
// src/components/buttons/icon-button/icon-button.module.css
|
|
3
3
|
var icon_button_module_default = {
|
|
4
4
|
"base": "uGNMOG_base",
|
|
5
5
|
"disabled": "uGNMOG_disabled",
|
|
@@ -11,5 +11,4 @@ var icon_button_module_default = {
|
|
|
11
11
|
"sm": "uGNMOG_sm",
|
|
12
12
|
"transparent": "uGNMOG_transparent"
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
14
|
export { icon_button_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ToolbarItemProps } from "./toolbar.mjs";
|
|
2
|
-
//#region src/components/buttons/toolbar/index.d.ts
|
|
3
2
|
export declare const Toolbar: {
|
|
4
3
|
readonly Root: import("react").FC<{
|
|
5
4
|
orientation?: "horizontal" | "vertical";
|
|
@@ -10,5 +9,4 @@ export declare const Toolbar: {
|
|
|
10
9
|
}>;
|
|
11
10
|
readonly Separator: import("react").FC;
|
|
12
11
|
};
|
|
13
|
-
//#endregion
|
|
14
12
|
export type { ToolbarItemProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, FocusEventHandler, HTMLAttributes, ReactElement, Ref, RefCallback } from "react";
|
|
2
|
-
//#region src/components/buttons/toolbar/toolbar.d.ts
|
|
3
2
|
type Orientation = 'horizontal' | 'vertical';
|
|
4
3
|
export declare const Root: FC<{
|
|
5
4
|
/** 項目の並ぶ向き。書字方向の行の向きが `horizontal`。 */
|
|
@@ -15,5 +14,4 @@ export declare const Item: FC<{
|
|
|
15
14
|
renderItem: (props: ToolbarItemProps) => ReactElement;
|
|
16
15
|
}>;
|
|
17
16
|
export declare const Separator: FC;
|
|
18
|
-
//#endregion
|
|
19
17
|
export {};
|
|
@@ -7,7 +7,7 @@ import toolbar_module_default from "./toolbar.module.mjs";
|
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/buttons/toolbar/toolbar.tsx
|
|
11
11
|
const [ToolbarProvider, useToolbar] = createSafeContext("useToolbar must be used within a Toolbar.Root");
|
|
12
12
|
const isEnabled = (element) => !element.matches(":disabled");
|
|
13
13
|
const Root = ({ orientation = "horizontal", children, onKeyDown, ref, ...rest }) => {
|
|
@@ -107,5 +107,4 @@ const Separator = () => {
|
|
|
107
107
|
})
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
|
-
//#endregion
|
|
111
110
|
export { Item, Root, Separator };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import './toolbar.css';
|
|
2
|
-
|
|
2
|
+
// src/components/buttons/toolbar/toolbar.module.css
|
|
3
3
|
var toolbar_module_default = {
|
|
4
4
|
"root": "PnnNqG_root",
|
|
5
5
|
"separator": "PnnNqG_separator",
|
|
6
6
|
"vertical": "PnnNqG_vertical"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { toolbar_module_default as default };
|
|
@@ -5,7 +5,7 @@ import { useItemId, useOpen, useToggleOpen } from "./context.mjs";
|
|
|
5
5
|
import accordion_button_module_default from "./accordion-button.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/data-display/accordion/accordion-button.tsx
|
|
9
9
|
const AccordionButton = ({ children }) => {
|
|
10
10
|
const id = useItemId();
|
|
11
11
|
const open = useOpen();
|
|
@@ -23,5 +23,4 @@ const AccordionButton = ({ children }) => {
|
|
|
23
23
|
})]
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { AccordionButton };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import './accordion-button.css';
|
|
2
|
-
|
|
2
|
+
// src/components/data-display/accordion/accordion-button.module.css
|
|
3
3
|
var accordion_button_module_default = {
|
|
4
4
|
"chevron": "zMMnlq_chevron",
|
|
5
5
|
"open": "zMMnlq_open",
|
|
6
6
|
"root": "zMMnlq_root"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { accordion_button_module_default as default };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
//#region src/components/data-display/accordion/accordion-item.d.ts
|
|
3
2
|
export declare const AccordionItem: FC<PropsWithChildren<{
|
|
4
3
|
isOpen?: boolean;
|
|
5
4
|
defaultOpen?: boolean;
|
|
6
5
|
onChange?: (isOpen: boolean) => void;
|
|
7
|
-
}>>;
|
|
8
|
-
//#endregion
|
|
6
|
+
}>>;
|
|
@@ -3,7 +3,7 @@ import { AccordionItemProvider } from "./context.mjs";
|
|
|
3
3
|
import accordion_item_module_default from "./accordion-item.module.mjs";
|
|
4
4
|
import { useId } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/data-display/accordion/accordion-item.tsx
|
|
7
7
|
const AccordionItem = ({ children, isOpen, defaultOpen = false, onChange }) => {
|
|
8
8
|
const id = useId();
|
|
9
9
|
return /* @__PURE__ */ jsx(AccordionItemProvider, {
|
|
@@ -17,5 +17,4 @@ const AccordionItem = ({ children, isOpen, defaultOpen = false, onChange }) => {
|
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { AccordionItem };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import './accordion-item.css';
|
|
2
|
-
|
|
2
|
+
// src/components/data-display/accordion/accordion-item.module.css
|
|
3
3
|
var accordion_item_module_default = { "root": "QACnjW_root" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { accordion_item_module_default as default };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useItemId, useOpen } from "./context.mjs";
|
|
3
3
|
import accordion_panel_module_default from "./accordion-panel.module.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/data-display/accordion/accordion-panel.tsx
|
|
6
6
|
const AccordionPanel = ({ children }) => {
|
|
7
7
|
const id = useItemId();
|
|
8
8
|
const open = useOpen();
|
|
@@ -14,5 +14,4 @@ const AccordionPanel = ({ children }) => {
|
|
|
14
14
|
children
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { AccordionPanel };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import './accordion-panel.css';
|
|
2
|
-
|
|
2
|
+
// src/components/data-display/accordion/accordion-panel.module.css
|
|
3
3
|
var accordion_panel_module_default = { "root": "eiZZdW_root" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { accordion_panel_module_default as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import accordion_module_default from "./accordion.module.mjs";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/data-display/accordion/accordion.tsx
|
|
4
4
|
const Accordion = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
5
5
|
className: accordion_module_default.root,
|
|
6
6
|
children
|
|
7
7
|
});
|
|
8
|
-
//#endregion
|
|
9
8
|
export { Accordion };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import './accordion.css';
|
|
2
|
-
|
|
2
|
+
// src/components/data-display/accordion/accordion.module.css
|
|
3
3
|
var accordion_module_default = { "root": "_2t6Tnq_root" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { accordion_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
//#region src/components/data-display/accordion/context.d.ts
|
|
3
2
|
type ToggleOpen = () => void;
|
|
4
3
|
declare const useToggleOpen: () => ToggleOpen;
|
|
5
4
|
declare const useItemId: () => string;
|
|
@@ -10,5 +9,4 @@ export declare const AccordionItemProvider: FC<PropsWithChildren<{
|
|
|
10
9
|
onChange?: (isOpen: boolean) => void;
|
|
11
10
|
id: string;
|
|
12
11
|
}>>;
|
|
13
|
-
//#endregion
|
|
14
12
|
export { useItemId, useToggleOpen };
|