@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
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ it. Install one when you import the entry it belongs to.
|
|
|
37
37
|
| ----------------------- | --------------- | -------- | ------------------------------------------------- |
|
|
38
38
|
| `react` | ≥19.3.0 | yes | the components and hooks |
|
|
39
39
|
| `react-dom` | ≥19.3.0 | yes | portals and `useFormStatus` |
|
|
40
|
-
| `@k8ordo/i18n` | ^
|
|
40
|
+
| `@k8ordo/i18n` | ^2.0.0 | yes | the locale the components' own wording is read in |
|
|
41
41
|
| `typescript` | ≥7.0.0 | optional | the shipped type declarations |
|
|
42
42
|
| `@types/react` | ≥19.3.0 | optional | the shipped type declarations |
|
|
43
43
|
| `@types/react-dom` | ≥19.3.0 | optional | the shipped type declarations |
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
@layer components {
|
|
4
4
|
.XbmKcG_ring:focus-visible {
|
|
5
5
|
box-shadow: var(--shadow-ring-info);
|
|
6
|
-
border-color: #0000;
|
|
7
6
|
outline-style: none;
|
|
8
7
|
|
|
8
|
+
&:not([aria-invalid="true"]) {
|
|
9
|
+
border-color: #0000;
|
|
10
|
+
}
|
|
11
|
+
|
|
9
12
|
@media (forced-colors: active) {
|
|
10
13
|
outline-offset: 2px;
|
|
11
14
|
outline: 2px solid #0000;
|
|
@@ -24,9 +27,12 @@
|
|
|
24
27
|
|
|
25
28
|
.XbmKcG_ringWithin:focus-within {
|
|
26
29
|
box-shadow: var(--shadow-ring-info);
|
|
27
|
-
border-color: #0000;
|
|
28
30
|
outline-style: none;
|
|
29
31
|
|
|
32
|
+
&:not(:has([aria-invalid="true"])) {
|
|
33
|
+
border-color: #0000;
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
@media (forced-colors: active) {
|
|
31
37
|
outline-offset: 2px;
|
|
32
38
|
outline: 2px solid #0000;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import './focus-ring.css';
|
|
2
|
-
|
|
2
|
+
// src/components/_internal/focus-ring.module.css
|
|
3
3
|
var focus_ring_module_default = {
|
|
4
4
|
"ring": "XbmKcG_ring",
|
|
5
5
|
"ringNoBorder": "XbmKcG_ringNoBorder",
|
|
6
6
|
"ringWithin": "XbmKcG_ringWithin"
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { focus_ring_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, RefObject } from "react";
|
|
2
|
-
//#region src/components/_internal/form-value.d.ts
|
|
3
2
|
type Props = {
|
|
4
3
|
name: string | undefined;
|
|
5
4
|
/** What the visible control holds now. */
|
|
@@ -30,5 +29,4 @@ type Props = {
|
|
|
30
29
|
* each option's `defaultSelected`, where dirtiness is read from.
|
|
31
30
|
*/
|
|
32
31
|
export declare const FormValue: FC<Props>;
|
|
33
|
-
//#endregion
|
|
34
32
|
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import sr_only_module_default from "./sr-only.module.mjs";
|
|
3
3
|
import { useEffect, useEffectEvent, useLayoutEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/_internal/form-value.tsx
|
|
6
6
|
const parse = (key) => JSON.parse(key);
|
|
7
7
|
const write = (select, values) => {
|
|
8
8
|
for (const option of select.options) option.selected = values.includes(option.value);
|
|
@@ -87,5 +87,4 @@ const FormValue = ({ name, values, defaultValues, multiple, required, disabled,
|
|
|
87
87
|
}, value))
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
//#endregion
|
|
91
90
|
export { FormValue };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import './high-contrast.css';
|
|
2
|
-
|
|
2
|
+
// src/components/_internal/high-contrast.module.css
|
|
3
3
|
var high_contrast_module_default = { "edge": "Txl4Pq_edge" };
|
|
4
|
-
//#endregion
|
|
5
4
|
export { high_contrast_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KeyboardEvent, MouseEvent } from "react";
|
|
2
|
-
//#region src/components/_internal/ignore-changes.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* checkbox と radio を包む label の onClickCapture に渡す。
|
|
5
4
|
*
|
|
@@ -16,5 +15,4 @@ export declare const ignoreStepKeys: (event: KeyboardEvent) => void;
|
|
|
16
15
|
* その文字から始まる候補を選ぶ。ctrl や meta の付いたキーはブラウザの
|
|
17
16
|
* ショートカットなので通す
|
|
18
17
|
*/
|
|
19
|
-
export declare const ignoreSelectKeys: (event: KeyboardEvent) => void;
|
|
20
|
-
//#endregion
|
|
18
|
+
export declare const ignoreSelectKeys: (event: KeyboardEvent) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/_internal/ignore-changes.ts
|
|
2
2
|
/**
|
|
3
3
|
* checkbox と radio を包む label の onClickCapture に渡す。
|
|
4
4
|
*
|
|
@@ -33,5 +33,4 @@ const ignoreStepKeys = (event) => {
|
|
|
33
33
|
const ignoreSelectKeys = (event) => {
|
|
34
34
|
if (event.key.length === 1 && !event.ctrlKey && !event.metaKey || event.key === "F4" || STEP_KEYS.has(event.key)) event.preventDefault();
|
|
35
35
|
};
|
|
36
|
-
//#endregion
|
|
37
36
|
export { ignoreClick, ignoreSelectKeys, ignoreStepKeys };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
//#region src/components/_internal/nav-link.d.ts
|
|
2
1
|
export declare const navLinkClassName: (isCurrent: boolean, depth?: number) => string;
|
|
3
|
-
export declare const NAV_LIST_CLASS_NAME:
|
|
4
|
-
export declare const NAV_TITLE_CLASS_NAME:
|
|
5
|
-
//#endregion
|
|
2
|
+
export declare const NAV_LIST_CLASS_NAME: string | undefined;
|
|
3
|
+
export declare const NAV_TITLE_CLASS_NAME: string | undefined;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import nav_link_module_default from "./nav-link.module.mjs";
|
|
2
2
|
import { clsx } from "clsx";
|
|
3
|
-
|
|
3
|
+
// src/components/_internal/nav-link.ts
|
|
4
4
|
const navLinkClassName = (isCurrent, depth = 0) => clsx(nav_link_module_default.link, depth === 0 && nav_link_module_default.depth0, depth === 1 && nav_link_module_default.depth1, depth >= 2 && nav_link_module_default.depth2, isCurrent ? nav_link_module_default.current : nav_link_module_default.idle);
|
|
5
5
|
const NAV_LIST_CLASS_NAME = nav_link_module_default.list;
|
|
6
6
|
const NAV_TITLE_CLASS_NAME = nav_link_module_default.title;
|
|
7
|
-
//#endregion
|
|
8
7
|
export { NAV_LIST_CLASS_NAME, NAV_TITLE_CLASS_NAME, navLinkClassName };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './nav-link.css';
|
|
2
|
-
|
|
2
|
+
// src/components/_internal/nav-link.module.css
|
|
3
3
|
var nav_link_module_default = {
|
|
4
4
|
"current": "IsHXFa_current",
|
|
5
5
|
"depth0": "IsHXFa_depth0",
|
|
@@ -10,5 +10,4 @@ var nav_link_module_default = {
|
|
|
10
10
|
"list": "IsHXFa_list",
|
|
11
11
|
"title": "IsHXFa_title"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { nav_link_module_default as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/_internal/status-tone.d.ts
|
|
2
1
|
export declare const STATUS_MESSAGE_KEY: {
|
|
3
2
|
readonly success: 'alertSuccess';
|
|
4
3
|
readonly info: 'alertInfo';
|
|
@@ -6,15 +5,14 @@ export declare const STATUS_MESSAGE_KEY: {
|
|
|
6
5
|
readonly error: 'alertError';
|
|
7
6
|
};
|
|
8
7
|
export declare const STATUS_SURFACE: {
|
|
9
|
-
readonly success:
|
|
10
|
-
readonly info:
|
|
11
|
-
readonly warning:
|
|
12
|
-
readonly error:
|
|
8
|
+
readonly success: string | undefined;
|
|
9
|
+
readonly info: string | undefined;
|
|
10
|
+
readonly warning: string | undefined;
|
|
11
|
+
readonly error: string | undefined;
|
|
13
12
|
};
|
|
14
13
|
export declare const STATUS_ICON: {
|
|
15
|
-
readonly success:
|
|
16
|
-
readonly info:
|
|
17
|
-
readonly warning:
|
|
18
|
-
readonly error:
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
14
|
+
readonly success: string | undefined;
|
|
15
|
+
readonly info: string | undefined;
|
|
16
|
+
readonly warning: string | undefined;
|
|
17
|
+
readonly error: string | undefined;
|
|
18
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import status_tone_module_default from "./status-tone.module.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/_internal/status-tone.ts
|
|
3
3
|
const STATUS_MESSAGE_KEY = {
|
|
4
4
|
success: "alertSuccess",
|
|
5
5
|
info: "alertInfo",
|
|
@@ -18,5 +18,4 @@ const STATUS_ICON = {
|
|
|
18
18
|
warning: status_tone_module_default.iconWarning,
|
|
19
19
|
error: status_tone_module_default.iconError
|
|
20
20
|
};
|
|
21
|
-
//#endregion
|
|
22
21
|
export { STATUS_ICON, STATUS_MESSAGE_KEY, STATUS_SURFACE };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './status-tone.css';
|
|
2
|
-
|
|
2
|
+
// src/components/_internal/status-tone.module.css
|
|
3
3
|
var status_tone_module_default = {
|
|
4
4
|
"iconError": "cEnG5W_iconError",
|
|
5
5
|
"iconInfo": "cEnG5W_iconInfo",
|
|
@@ -10,5 +10,4 @@ var status_tone_module_default = {
|
|
|
10
10
|
"surfaceSuccess": "cEnG5W_surfaceSuccess",
|
|
11
11
|
"surfaceWarning": "cEnG5W_surfaceWarning"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { status_tone_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
//#region src/components/ai/_internal/attachment-preview.d.ts
|
|
3
2
|
export declare const isImageMediaType: (mediaType: string) => boolean;
|
|
4
3
|
type Props = {
|
|
5
4
|
mediaType: string;
|
|
@@ -11,5 +10,4 @@ type Props = {
|
|
|
11
10
|
onRemove?: () => void;
|
|
12
11
|
};
|
|
13
12
|
export declare const AttachmentPreview: FC<Props>;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
|
@@ -5,7 +5,7 @@ import { FileIcon } from "./icons.mjs";
|
|
|
5
5
|
import attachment_preview_module_default from "./attachment-preview.module.mjs";
|
|
6
6
|
import { useId } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/ai/_internal/attachment-preview.tsx
|
|
9
9
|
const isImageMediaType = (mediaType) => mediaType === "image" || mediaType.startsWith("image/");
|
|
10
10
|
const AttachmentPreview = ({ mediaType, filename, renderImage, onRemove }) => {
|
|
11
11
|
const messages = getMessages();
|
|
@@ -46,5 +46,4 @@ const AttachmentPreview = ({ mediaType, filename, renderImage, onRemove }) => {
|
|
|
46
46
|
})]
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
//#endregion
|
|
50
49
|
export { AttachmentPreview, isImageMediaType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './attachment-preview.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/_internal/attachment-preview.module.css
|
|
3
3
|
var attachment_preview_module_default = {
|
|
4
4
|
"file": "PhJFYa_file",
|
|
5
5
|
"fileIcon": "PhJFYa_fileIcon",
|
|
@@ -10,5 +10,4 @@ var attachment_preview_module_default = {
|
|
|
10
10
|
"remove": "PhJFYa_remove",
|
|
11
11
|
"root": "PhJFYa_root"
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { attachment_preview_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
//#region src/components/ai/_internal/collapsible.d.ts
|
|
3
2
|
type Props = {
|
|
4
3
|
icon?: ReactNode;
|
|
5
4
|
label: ReactNode;
|
|
@@ -11,5 +10,4 @@ type Props = {
|
|
|
11
10
|
children: ReactNode;
|
|
12
11
|
};
|
|
13
12
|
export declare const Collapsible: FC<Props>;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
|
@@ -6,7 +6,7 @@ import collapsible_module_default from "./collapsible.module.mjs";
|
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { useId } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/ai/_internal/collapsible.tsx
|
|
10
10
|
const Collapsible = ({ icon, label, isOpen, defaultOpen = false, onChange, footer, triggerId, children }) => {
|
|
11
11
|
const [open, setOpen] = useControllableState({
|
|
12
12
|
value: isOpen,
|
|
@@ -54,5 +54,4 @@ const Collapsible = ({ icon, label, isOpen, defaultOpen = false, onChange, foote
|
|
|
54
54
|
]
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
|
-
//#endregion
|
|
58
57
|
export { Collapsible };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './collapsible.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/_internal/collapsible.module.css
|
|
3
3
|
var collapsible_module_default = {
|
|
4
4
|
"footer": "_3nLiW_footer",
|
|
5
5
|
"icon": "_3nLiW_icon",
|
|
@@ -8,5 +8,4 @@ var collapsible_module_default = {
|
|
|
8
8
|
"root": "_3nLiW_root",
|
|
9
9
|
"trigger": "_3nLiW_trigger"
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { collapsible_module_default as default };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { BaseIconProps } from "../../icons/base.mjs";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
//#region src/components/ai/_internal/icons.d.ts
|
|
4
3
|
type IconProps = Partial<BaseIconProps>;
|
|
5
4
|
export declare const AttachIcon: FC<IconProps>;
|
|
6
5
|
export declare const FileIcon: FC<IconProps>;
|
|
7
|
-
//#endregion
|
|
8
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseIcon } from "../../icons/base.mjs";
|
|
2
2
|
import { File, Paperclip } from "../../icons/lucide-imports.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/ai/_internal/icons.tsx
|
|
5
5
|
const AttachIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(BaseIcon, {
|
|
6
6
|
renderItem: (props) => /* @__PURE__ */ jsx(Paperclip, { ...props }),
|
|
7
7
|
size
|
|
@@ -10,5 +10,4 @@ const FileIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(BaseIcon, {
|
|
|
10
10
|
renderItem: (props) => /* @__PURE__ */ jsx(File, { ...props }),
|
|
11
11
|
size
|
|
12
12
|
});
|
|
13
|
-
//#endregion
|
|
14
13
|
export { AttachIcon, FileIcon };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import streaming_cursor_module_default from "./streaming-cursor.module.mjs";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/ai/_internal/streaming-cursor.tsx
|
|
4
4
|
const StreamingCursor = () => /* @__PURE__ */ jsx("span", {
|
|
5
5
|
"aria-hidden": true,
|
|
6
6
|
className: streaming_cursor_module_default.root
|
|
7
7
|
});
|
|
8
|
-
//#endregion
|
|
9
8
|
export { StreamingCursor };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import './streaming-cursor.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/_internal/streaming-cursor.module.css
|
|
3
3
|
var streaming_cursor_module_default = {
|
|
4
4
|
"pulse": "oVIF0W_pulse",
|
|
5
5
|
"root": "oVIF0W_root"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { streaming_cursor_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
//#region src/components/ai/attachment/attachment.d.ts
|
|
3
2
|
type ListProps = {
|
|
4
3
|
label?: string;
|
|
5
4
|
children: ReactNode;
|
|
@@ -11,5 +10,4 @@ type ItemProps = {
|
|
|
11
10
|
filename?: string;
|
|
12
11
|
};
|
|
13
12
|
export declare const Item: FC<ItemProps>;
|
|
14
|
-
//#endregion
|
|
15
13
|
export {};
|
|
@@ -2,7 +2,7 @@ import { getMessages } from "../../../i18n/current.mjs";
|
|
|
2
2
|
import { AttachmentPreview, isImageMediaType } from "../_internal/attachment-preview.mjs";
|
|
3
3
|
import attachment_module_default from "./attachment.module.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/ai/attachment/attachment.tsx
|
|
6
6
|
const List = ({ label, children }) => {
|
|
7
7
|
const messages = getMessages();
|
|
8
8
|
return /* @__PURE__ */ jsx("ul", {
|
|
@@ -21,5 +21,4 @@ const Item = ({ url, mediaType, filename }) => /* @__PURE__ */ jsx(AttachmentPre
|
|
|
21
21
|
src: url
|
|
22
22
|
}) : void 0
|
|
23
23
|
});
|
|
24
|
-
//#endregion
|
|
25
24
|
export { Item, List };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import './attachment.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/attachment/attachment.module.css
|
|
3
3
|
var attachment_module_default = {
|
|
4
4
|
"image": "HRTevW_image",
|
|
5
5
|
"list": "HRTevW_list"
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
8
7
|
export { attachment_module_default as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/ai/attachment/index.d.ts
|
|
2
1
|
export declare const Attachment: {
|
|
3
2
|
readonly List: import("react").FC<{
|
|
4
3
|
label?: string;
|
|
@@ -9,5 +8,4 @@ export declare const Attachment: {
|
|
|
9
8
|
mediaType: string;
|
|
10
9
|
filename?: string;
|
|
11
10
|
}>;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
11
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
//#region src/components/ai/conversation/conversation.d.ts
|
|
3
2
|
export declare const Root: FC<{
|
|
4
3
|
children: ReactNode;
|
|
5
4
|
}>;
|
|
@@ -12,5 +11,4 @@ export declare const Messages: FC<MessagesProps>;
|
|
|
12
11
|
export declare const ScrollButton: FC<{
|
|
13
12
|
label?: string;
|
|
14
13
|
}>;
|
|
15
|
-
//#endregion
|
|
16
14
|
export {};
|
|
@@ -9,7 +9,7 @@ import conversation_module_default from "./conversation.module.mjs";
|
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/components/ai/conversation/conversation.tsx
|
|
13
13
|
const prefersReducedMotion = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
14
14
|
const [ConversationProvider, useConversationContext] = createSafeContext("Conversation.* must be used within <Conversation.Root>");
|
|
15
15
|
const Root = ({ children }) => {
|
|
@@ -106,5 +106,4 @@ const ScrollButton = ({ label }) => {
|
|
|
106
106
|
})
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
//#endregion
|
|
110
109
|
export { Messages, Root, ScrollButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './conversation.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/conversation/conversation.module.css
|
|
3
3
|
var conversation_module_default = {
|
|
4
4
|
"list": "nvsFHG_list",
|
|
5
5
|
"messages": "nvsFHG_messages",
|
|
@@ -7,5 +7,4 @@ var conversation_module_default = {
|
|
|
7
7
|
"scrollButton": "nvsFHG_scrollButton",
|
|
8
8
|
"sentinel": "nvsFHG_sentinel"
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { conversation_module_default as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/components/ai/conversation/index.d.ts
|
|
2
1
|
export declare const Conversation: {
|
|
3
2
|
readonly Root: import("react").FC<{
|
|
4
3
|
children: import("react").ReactNode;
|
|
@@ -11,5 +10,4 @@ export declare const Conversation: {
|
|
|
11
10
|
readonly ScrollButton: import("react").FC<{
|
|
12
11
|
label?: string;
|
|
13
12
|
}>;
|
|
14
|
-
};
|
|
15
|
-
//#endregion
|
|
13
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Messages, Root, ScrollButton } from "./conversation.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/ai/conversation/index.ts
|
|
3
3
|
const Conversation = {
|
|
4
4
|
Root,
|
|
5
5
|
Messages,
|
|
6
6
|
ScrollButton
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { Conversation };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MessageFeedback } from "../types.mjs";
|
|
2
2
|
import "../index.mjs";
|
|
3
|
-
//#region src/components/ai/message/index.d.ts
|
|
4
3
|
export declare const Message: {
|
|
5
4
|
readonly Root: import("react").FC<{
|
|
6
5
|
from: "assistant" | "user";
|
|
@@ -35,5 +34,4 @@ export declare const Message: {
|
|
|
35
34
|
defaultValue?: MessageFeedback | null;
|
|
36
35
|
onChange?: (value: MessageFeedback | null) => void;
|
|
37
36
|
}>;
|
|
38
|
-
};
|
|
39
|
-
//#endregion
|
|
37
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action, Actions, Content, Copy, Feedback, Regenerate, Root } from "./message.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/ai/message/index.ts
|
|
3
3
|
const Message = {
|
|
4
4
|
Root,
|
|
5
5
|
Content,
|
|
@@ -9,5 +9,4 @@ const Message = {
|
|
|
9
9
|
Regenerate,
|
|
10
10
|
Feedback
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { Message };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MessageFeedback } from "../types.mjs";
|
|
2
2
|
import { FC, HTMLAttributes, ReactNode } from "react";
|
|
3
|
-
//#region src/components/ai/message/message.d.ts
|
|
4
3
|
type MessageRole = 'user' | 'assistant';
|
|
5
4
|
type RootProps = {
|
|
6
5
|
from: MessageRole;
|
|
@@ -42,5 +41,4 @@ type FeedbackProps = {
|
|
|
42
41
|
onChange?: (value: MessageFeedback | null) => void;
|
|
43
42
|
};
|
|
44
43
|
export declare const Feedback: FC<FeedbackProps>;
|
|
45
|
-
//#endregion
|
|
46
44
|
export {};
|
|
@@ -11,7 +11,7 @@ import message_module_default from "./message.module.mjs";
|
|
|
11
11
|
import { clsx } from "clsx";
|
|
12
12
|
import { useMemo } from "react";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
|
|
14
|
+
// src/components/ai/message/message.tsx
|
|
15
15
|
const ROOT = {
|
|
16
16
|
user: message_module_default.rootUser,
|
|
17
17
|
assistant: message_module_default.rootAssistant
|
|
@@ -116,5 +116,4 @@ const Feedback = ({ value, defaultValue = null, onChange }) => {
|
|
|
116
116
|
})
|
|
117
117
|
})] });
|
|
118
118
|
};
|
|
119
|
-
//#endregion
|
|
120
119
|
export { Action, Actions, Content, Copy, Feedback, Regenerate, Root };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './message.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/message/message.module.css
|
|
3
3
|
var message_module_default = {
|
|
4
4
|
"actions": "Yi8zjG_actions",
|
|
5
5
|
"actionsAssistant": "Yi8zjG_actionsAssistant",
|
|
@@ -14,5 +14,4 @@ var message_module_default = {
|
|
|
14
14
|
"rootUser": "Yi8zjG_rootUser",
|
|
15
15
|
"selected": "Yi8zjG_selected"
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { message_module_default as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChatStatus } from "../types.mjs";
|
|
2
2
|
import "../index.mjs";
|
|
3
|
-
//#region src/components/ai/prompt-input/index.d.ts
|
|
4
3
|
export declare const PromptInput: {
|
|
5
4
|
readonly Root: import("react").FC<{
|
|
6
5
|
status?: ChatStatus;
|
|
@@ -27,5 +26,4 @@ export declare const PromptInput: {
|
|
|
27
26
|
sendLabel?: string;
|
|
28
27
|
stopLabel?: string;
|
|
29
28
|
}>;
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
29
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Attach, Attachments, Root, Submit, Textarea } from "./prompt-input.mjs";
|
|
2
|
-
|
|
2
|
+
// src/components/ai/prompt-input/index.ts
|
|
3
3
|
const PromptInput = {
|
|
4
4
|
Root,
|
|
5
5
|
Attachments,
|
|
@@ -7,5 +7,4 @@ const PromptInput = {
|
|
|
7
7
|
Textarea,
|
|
8
8
|
Submit
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { PromptInput };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChatStatus } from "../types.mjs";
|
|
2
2
|
import { FC, ReactNode, Ref, TextareaHTMLAttributes } from "react";
|
|
3
|
-
//#region src/components/ai/prompt-input/prompt-input.d.ts
|
|
4
3
|
type RootProps = {
|
|
5
4
|
status?: ChatStatus;
|
|
6
5
|
value?: string;
|
|
@@ -31,5 +30,4 @@ type SubmitProps = {
|
|
|
31
30
|
stopLabel?: string;
|
|
32
31
|
};
|
|
33
32
|
export declare const Submit: FC<SubmitProps>;
|
|
34
|
-
//#endregion
|
|
35
33
|
export {};
|
|
@@ -14,7 +14,7 @@ import prompt_input_module_default from "./prompt-input.module.mjs";
|
|
|
14
14
|
import { clsx } from "clsx";
|
|
15
15
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
|
|
17
|
+
// src/components/ai/prompt-input/prompt-input.tsx
|
|
18
18
|
const [PromptInputProvider, usePromptInputContext] = createSafeContext("PromptInput.* must be used within <PromptInput.Root>");
|
|
19
19
|
const isBusy = (status) => status === "submitted" || status === "streaming";
|
|
20
20
|
const Root = ({ status = "ready", value, defaultValue = "", onChange, onSubmit, onStop, accept, maxFiles, children }) => {
|
|
@@ -214,5 +214,4 @@ const Submit = ({ sendLabel, stopLabel }) => {
|
|
|
214
214
|
children: /* @__PURE__ */ jsx(SendIcon, { size: "sm" })
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
|
-
//#endregion
|
|
218
217
|
export { Attach, Attachments, Root, Submit, Textarea };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './prompt-input.css';
|
|
2
|
-
|
|
2
|
+
// src/components/ai/prompt-input/prompt-input.module.css
|
|
3
3
|
var prompt_input_module_default = {
|
|
4
4
|
"attach": "_2eq2pa_attach",
|
|
5
5
|
"attachments": "_2eq2pa_attachments",
|
|
@@ -11,5 +11,4 @@ var prompt_input_module_default = {
|
|
|
11
11
|
"stopMark": "_2eq2pa_stopMark",
|
|
12
12
|
"textarea": "_2eq2pa_textarea"
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
14
|
export { prompt_input_module_default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
//#region src/components/ai/reasoning/reasoning.d.ts
|
|
3
2
|
type Props = {
|
|
4
3
|
children: ReactNode;
|
|
5
4
|
isStreaming?: boolean;
|
|
@@ -8,5 +7,4 @@ type Props = {
|
|
|
8
7
|
onChange?: (isOpen: boolean) => void;
|
|
9
8
|
};
|
|
10
9
|
export declare const Reasoning: FC<Props>;
|
|
11
|
-
//#endregion
|
|
12
10
|
export {};
|