@choice-ui/react 1.4.3 → 1.4.6
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/dist/components/alert-dialog/dist/index.d.ts +20 -41
- package/dist/components/alert-dialog/dist/index.js +497 -0
- package/dist/components/alert-dialog/src/alert-dialog.js +1 -1
- package/dist/components/alert-dialog/src/hooks/use-alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog/src/index.d.ts +4 -5
- package/dist/components/alert-dialog/src/types.d.ts +11 -11
- package/dist/components/avatar/dist/index.js +4 -4
- package/dist/components/avatar/src/avatar.js +4 -4
- package/dist/components/badge/src/badge.js +2 -2
- package/dist/components/badge/src/index.d.ts +2 -1
- package/dist/components/button/dist/index.js +4 -4
- package/dist/components/button/src/button.js +4 -4
- package/dist/components/calendar/dist/index.d.ts +296 -296
- package/dist/components/calendar/dist/index.js +57 -56
- package/dist/components/calendar/src/date-range-input/date-range-input.d.ts +5 -5
- package/dist/components/calendar/src/time-calendar/time-calendar.d.ts +3 -3
- package/dist/components/calendar/src/time-calendar/time-calendar.js +2 -2
- package/dist/components/calendar/src/time-input/time-input.d.ts +9 -9
- package/dist/components/calendar/src/time-input/time-input.js +4 -4
- package/dist/components/calendar/src/types.d.ts +165 -165
- package/dist/components/calendar/src/utils/constants.js +32 -31
- package/dist/components/calendar/src/utils/date-comparisons.d.ts +34 -34
- package/dist/components/calendar/src/utils/locale.d.ts +12 -12
- package/dist/components/calendar/src/utils/month.d.ts +3 -3
- package/dist/components/calendar/src/utils/month.js +1 -1
- package/dist/components/calendar/src/utils/parsers/month-names.js +3 -3
- package/dist/components/calendar/src/utils/parsers/numeric-utils.d.ts +20 -20
- package/dist/components/calendar/src/utils/parsers/numeric-utils.js +8 -8
- package/dist/components/calendar/src/utils/parsers/parsers.d.ts +17 -17
- package/dist/components/calendar/src/utils/parsers/parsers.js +2 -2
- package/dist/components/calendar/src/utils/parsers/prediction.d.ts +7 -7
- package/dist/components/calendar/src/utils/parsers/relative-dates.js +6 -6
- package/dist/components/calendar/src/utils/quarter.d.ts +13 -13
- package/dist/components/calendar/src/utils/quarter.js +6 -6
- package/dist/components/calendar/src/utils/time.d.ts +8 -8
- package/dist/components/calendar/src/utils/year.d.ts +3 -3
- package/dist/components/calendar/src/utils/year.js +3 -3
- package/dist/components/checkbox/dist/index.d.ts +1 -12
- package/dist/components/checkbox/dist/index.js +9 -9
- package/dist/components/checkbox/src/checkbox-label.js +2 -2
- package/dist/components/checkbox/src/checkbox.js +6 -5
- package/dist/components/checkbox/src/context.js +1 -1
- package/dist/components/checkbox/src/index.d.ts +0 -3
- package/dist/components/chip/dist/index.js +6 -6
- package/dist/components/chip/src/chip.js +6 -6
- package/dist/components/chip/src/index.d.ts +2 -1
- package/dist/components/chips-input/dist/index.js +270 -0
- package/dist/components/chips-input/src/index.d.ts +2 -1
- package/dist/components/code-block/dist/index.d.ts +14 -32
- package/dist/components/code-block/dist/index.js +211 -147
- package/dist/components/code-block/src/code-block.d.ts +8 -1
- package/dist/components/code-block/src/code-block.js +14 -3
- package/dist/components/code-block/src/components/code-block-code.js +31 -5
- package/dist/components/code-block/src/components/code-block-header.js +45 -10
- package/dist/components/code-block/src/index.d.ts +3 -9
- package/dist/components/combobox/dist/index.d.ts +21 -2
- package/dist/components/combobox/dist/index.js +16 -13
- package/dist/components/combobox/src/combobox-trigger.d.ts +1 -1
- package/dist/components/combobox/src/combobox-trigger.js +7 -4
- package/dist/components/combobox/src/combobox.d.ts +20 -1
- package/dist/components/combobox/src/combobox.js +10 -10
- package/dist/components/command/dist/index.d.ts +65 -4
- package/dist/components/command/src/command.js +6 -5
- package/dist/components/command/src/components/command-divider.d.ts +4 -1
- package/dist/components/command/src/components/command-group.d.ts +16 -1
- package/dist/components/command/src/components/command-group.js +56 -54
- package/dist/components/command/src/components/command-input.js +3 -3
- package/dist/components/command/src/components/command-item.d.ts +1 -1
- package/dist/components/command/src/components/command-item.js +117 -115
- package/dist/components/command/src/components/command-loading.d.ts +8 -0
- package/dist/components/command/src/components/command-loading.js +1 -1
- package/dist/components/command/src/context/create-command-context.js +1 -1
- package/dist/components/command/src/hooks/use-schedule-layout-effect.d.ts +1 -1
- package/dist/components/command/src/hooks/use-value.js +2 -2
- package/dist/components/command/src/index.d.ts +16 -8
- package/dist/components/command/src/tv.d.ts +30 -0
- package/dist/components/command/src/tv.js +10 -0
- package/dist/components/command/src/types.d.ts +8 -0
- package/dist/components/command/src/utils/constants.d.ts +1 -1
- package/dist/components/command/src/utils/constants.js +1 -1
- package/dist/components/command/src/utils/helpers.d.ts +0 -1
- package/dist/components/command/src/utils/helpers.js +1 -3
- package/dist/components/command/src/utils/index.d.ts +1 -0
- package/dist/components/comments/src/comment-input/components/comment-input-mention-popover.js +4 -2
- package/dist/components/comments/src/comments.js +1 -1
- package/dist/components/context-input/dist/index.d.ts +47 -251
- package/dist/components/context-input/src/components/mention-menu.d.ts +5 -4
- package/dist/components/context-input/src/components/mention-menu.js +19 -4
- package/dist/components/context-input/src/components/mention.d.ts +2 -2
- package/dist/components/context-input/src/components/slate-editor.js +4 -2
- package/dist/components/context-input/src/context-input.js +31 -16
- package/dist/components/context-input/src/extensions/with-mentions.d.ts +1 -1
- package/dist/components/context-input/src/extensions/with-mentions.js +10 -9
- package/dist/components/context-input/src/hooks/use-context-input.js +87 -46
- package/dist/components/context-input/src/hooks/use-mentions.d.ts +11 -10
- package/dist/components/context-input/src/hooks/use-mentions.js +147 -128
- package/dist/components/context-input/src/index.d.ts +4 -5
- package/dist/components/context-input/src/types.d.ts +12 -12
- package/dist/components/context-input/src/utils/mention-spacing.d.ts +16 -16
- package/dist/components/context-input/src/utils/slate-converters.d.ts +6 -6
- package/dist/components/context-input/src/utils/slate-converters.js +2 -2
- package/dist/components/context-input/src/utils/text-extraction.js +7 -1
- package/dist/components/context-menu/src/context-menu.js +10 -4
- package/dist/components/dialog/dist/index.js +1 -2
- package/dist/components/dialog/src/dialog.js +0 -1
- package/dist/components/dialog/src/hooks/use-floating-dialog.js +1 -1
- package/dist/components/dialog/src/index.d.ts +3 -2
- package/dist/components/dropdown/dist/index.d.ts +1 -2
- package/dist/components/dropdown/dist/index.js +23 -8
- package/dist/components/dropdown/src/dropdown.d.ts +1 -2
- package/dist/components/dropdown/src/dropdown.js +23 -8
- package/dist/components/emoji-picker/dist/index.d.ts +33 -1
- package/dist/components/emoji-picker/dist/index.js +3 -1
- package/dist/components/emoji-picker/src/emoji-picker.d.ts +1 -1
- package/dist/components/emoji-picker/src/emoji-picker.js +3 -1
- package/dist/components/emoji-picker/src/index.d.ts +3 -1
- package/dist/components/form/dist/index.d.ts +93 -98
- package/dist/components/form/src/adapters/base-adapter.d.ts +3 -3
- package/dist/components/form/src/adapters/checkbox-adapter.d.ts +1 -1
- package/dist/components/form/src/adapters/chips-input-adapter.d.ts +9 -0
- package/dist/components/form/src/adapters/chips-input-adapter.js +38 -0
- package/dist/components/form/src/adapters/index.d.ts +8 -7
- package/dist/components/form/src/adapters/input-adapter.d.ts +1 -1
- package/dist/components/form/src/adapters/multi-select-adapter.d.ts +1 -1
- package/dist/components/form/src/adapters/numeric-input-adapter.d.ts +1 -1
- package/dist/components/form/src/adapters/raido-group-adapter.d.ts +1 -7
- package/dist/components/form/src/adapters/range-adapter.d.ts +1 -7
- package/dist/components/form/src/adapters/segmented-adapter.d.ts +1 -7
- package/dist/components/form/src/adapters/select-adapter.d.ts +1 -1
- package/dist/components/form/src/adapters/switch-adapter.d.ts +1 -1
- package/dist/components/form/src/adapters/textarea-adapter.d.ts +1 -1
- package/dist/components/form/src/index.d.ts +18 -16
- package/dist/components/form/src/index.js +16 -13
- package/dist/components/form/src/types.d.ts +58 -51
- package/dist/components/hint/dist/index.d.ts +10 -54
- package/dist/components/hint/src/components/info-content.d.ts +3 -5
- package/dist/components/hint/src/components/info-content.js +14 -6
- package/dist/components/hint/src/components/info-trigger.d.ts +2 -3
- package/dist/components/hint/src/components/info-trigger.js +4 -2
- package/dist/components/hint/src/context/hint-context.d.ts +2 -0
- package/dist/components/hint/src/context/hint-context.js +1 -1
- package/dist/components/hint/src/hint.d.ts +7 -7
- package/dist/components/hint/src/hint.js +24 -29
- package/dist/components/hint/src/hooks/use-hint.d.ts +4 -2
- package/dist/components/hint/src/hooks/use-hint.js +12 -4
- package/dist/components/hint/src/index.d.ts +3 -3
- package/dist/components/hint/src/tv.d.ts +33 -0
- package/dist/components/hint/src/tv.js +11 -0
- package/dist/components/icon-button/dist/index.js +2 -2
- package/dist/components/icon-button/src/icon-button.js +2 -2
- package/dist/components/index.d.ts +3 -0
- package/dist/components/input/dist/index.js +4 -4
- package/dist/components/input/src/input.js +3 -3
- package/dist/components/input/src/tv.js +1 -1
- package/dist/components/kbd/dist/index.js +4 -4
- package/dist/components/kbd/src/kbd.js +4 -4
- package/dist/components/label/dist/index.js +3 -3
- package/dist/components/label/src/tv.js +3 -3
- package/dist/components/link-button/dist/index.js +3 -3
- package/dist/components/link-button/src/link-button.js +3 -3
- package/dist/components/list/src/components/list-content.js +2 -2
- package/dist/components/list/src/components/list-divider.js +3 -3
- package/dist/components/list/src/components/list-item.js +5 -5
- package/dist/components/list/src/components/list-label.js +2 -2
- package/dist/components/list/src/components/list-sub-trigger.js +4 -4
- package/dist/components/list/src/list.js +2 -2
- package/dist/components/md-input/dist/index.d.ts +8 -104
- package/dist/components/md-input/src/components/extensions/md-input-mention.d.ts +6 -4
- package/dist/components/md-input/src/components/extensions/md-input-mention.js +23 -6
- package/dist/components/md-input/src/components/md-input-container.js +1 -0
- package/dist/components/md-input/src/components/md-input-editor.js +4 -1
- package/dist/components/md-input/src/components/md-input-footer.js +5 -1
- package/dist/components/md-input/src/components/toolbar/default-actions.d.ts +2 -2
- package/dist/components/md-input/src/components/toolbar/toolbar-button.d.ts +1 -0
- package/dist/components/md-input/src/components/toolbar/toolbar-button.js +1 -7
- package/dist/components/md-input/src/components/toolbar/toolbar.d.ts +2 -2
- package/dist/components/md-input/src/hooks/use-markdown-mentions.d.ts +5 -4
- package/dist/components/md-input/src/hooks/use-markdown-mentions.js +31 -4
- package/dist/components/md-input/src/index.d.ts +1 -4
- package/dist/components/md-input/src/md-input.js +18 -14
- package/dist/components/md-input/src/tv.d.ts +3 -0
- package/dist/components/md-input/src/tv.js +2 -1
- package/dist/components/md-input/src/types.d.ts +18 -16
- package/dist/components/md-render/dist/index.d.ts +1 -4
- package/dist/components/md-render/dist/index.js +8 -9
- package/dist/components/md-render/src/components/markdown-components.js +3 -3
- package/dist/components/md-render/src/index.d.ts +0 -1
- package/dist/components/md-render/src/md-render.js +5 -4
- package/dist/components/md-render/src/tv.js +1 -1
- package/dist/components/menubar/dist/index.d.ts +50 -0
- package/dist/components/menubar/src/components/index.d.ts +3 -0
- package/dist/components/menubar/src/components/menubar-divider.d.ts +8 -0
- package/dist/components/menubar/src/components/menubar-divider.js +24 -0
- package/dist/components/menubar/src/components/menubar-item.d.ts +8 -0
- package/dist/components/menubar/src/components/menubar-item.js +195 -0
- package/dist/components/menubar/src/components/menubar-trigger.d.ts +8 -0
- package/dist/components/menubar/src/components/menubar-trigger.js +45 -0
- package/dist/components/menubar/src/context/index.d.ts +1 -0
- package/dist/components/menubar/src/context/menubar-context.d.ts +34 -0
- package/dist/components/menubar/src/context/menubar-context.js +13 -0
- package/dist/components/menubar/src/index.d.ts +3 -0
- package/dist/components/menubar/src/menubar.d.ts +22 -0
- package/dist/components/menubar/src/menubar.js +177 -0
- package/dist/components/menubar/src/tv.d.ts +108 -0
- package/dist/components/menubar/src/tv.js +72 -0
- package/dist/components/menubar/tsup.config.d.ts +2 -0
- package/dist/components/menus/dist/index.d.ts +144 -143
- package/dist/components/menus/dist/index.js +50 -49
- package/dist/components/menus/src/components/menu-button.js +2 -2
- package/dist/components/menus/src/components/menu-checkbox.d.ts +1 -2
- package/dist/components/menus/src/components/menu-checkbox.js +2 -2
- package/dist/components/menus/src/components/menu-divider.js +3 -3
- package/dist/components/menus/src/components/menu-item.js +5 -5
- package/dist/components/menus/src/components/menu-label.js +2 -2
- package/dist/components/menus/src/components/menu-scroll-arrow.d.ts +2 -2
- package/dist/components/menus/src/components/menu-scroll-arrow.js +13 -3
- package/dist/components/menus/src/components/menu-search.js +3 -3
- package/dist/components/menus/src/components/menu-trigger.js +4 -4
- package/dist/components/menus/src/context/menu-context-item.d.ts +6 -6
- package/dist/components/menus/src/context/menu-context-item.js +2 -2
- package/dist/components/menus/src/context/menu-context-sub-trigger.js +4 -19
- package/dist/components/menus/src/context/menu-context.d.ts +2 -2
- package/dist/components/menus/src/hooks/use-menu-base-refs.d.ts +12 -12
- package/dist/components/menus/src/hooks/use-menu-children.d.ts +16 -16
- package/dist/components/menus/src/hooks/use-menu-floating.d.ts +22 -22
- package/dist/components/menus/src/hooks/use-menu-refs.d.ts +8 -8
- package/dist/components/menus/src/hooks/use-menu-refs.js +2 -2
- package/dist/components/menus/src/hooks/use-menu-scroll-height.d.ts +11 -11
- package/dist/components/menus/src/hooks/use-menu-scroll.d.ts +18 -18
- package/dist/components/menus/src/hooks/use-menu-selection.d.ts +21 -21
- package/dist/components/menus/src/hooks/use-menu-state.d.ts +11 -11
- package/dist/components/menus/src/hooks/use-menu-state.js +4 -4
- package/dist/components/menus/src/hooks/use-menu-touch.d.ts +11 -11
- package/dist/components/menus/src/hooks/use-menu-tree.d.ts +15 -15
- package/dist/components/menus/src/index.d.ts +5 -0
- package/dist/components/menus/src/menus.js +2 -2
- package/dist/components/menus/src/tv.d.ts +15 -0
- package/dist/components/menus/src/tv.js +8 -2
- package/dist/components/modal/dist/index.d.ts +3 -1
- package/dist/components/modal/dist/index.js +18 -11
- package/dist/components/modal/src/components/modal-content.js +2 -2
- package/dist/components/modal/src/components/modal-footer.js +2 -2
- package/dist/components/modal/src/components/modal-header.d.ts +3 -1
- package/dist/components/modal/src/components/modal-header.js +12 -5
- package/dist/components/modal/src/modal.js +2 -2
- package/dist/components/multi-select/dist/index.js +13 -11
- package/dist/components/multi-select/src/components/multi-select-trigger.js +8 -8
- package/dist/components/multi-select/src/multi-select.js +5 -3
- package/dist/components/numeric-input/dist/index.d.ts +10 -117
- package/dist/components/numeric-input/dist/index.js +18 -24
- package/dist/components/numeric-input/src/components/numeric-input-element.js +2 -2
- package/dist/components/numeric-input/src/components/numeric-input-menu-trigger.d.ts +1 -1
- package/dist/components/numeric-input/src/components/numeric-input-menu-trigger.js +2 -2
- package/dist/components/numeric-input/src/components/numeric-input-variable.d.ts +1 -2
- package/dist/components/numeric-input/src/components/numeric-input-variable.js +3 -3
- package/dist/components/numeric-input/src/hooks/use-input-interactions.d.ts +3 -3
- package/dist/components/numeric-input/src/hooks/use-numeric-input.d.ts +3 -3
- package/dist/components/numeric-input/src/hooks/use-numeric-value-processing.d.ts +3 -3
- package/dist/components/numeric-input/src/hooks/use-step-calculation.d.ts +6 -6
- package/dist/components/numeric-input/src/index.d.ts +5 -4
- package/dist/components/numeric-input/src/numeric-input.js +9 -9
- package/dist/components/numeric-input/src/utils/error-handler.d.ts +8 -8
- package/dist/components/numeric-input/src/utils/expression-evaluator.d.ts +11 -11
- package/dist/components/numeric-input/src/utils/input-parser.d.ts +8 -8
- package/dist/components/numeric-input/src/utils/numeric-value-processor.d.ts +6 -6
- package/dist/components/numeric-input/src/utils/pattern-parser.d.ts +7 -7
- package/dist/components/numeric-input/src/utils/value-comparator.d.ts +16 -16
- package/dist/components/numeric-input/src/utils/value-processor.d.ts +14 -14
- package/dist/components/pagination/src/components/pagination-items-per-page.js +1 -1
- package/dist/components/pagination/src/components/pagination-navigation.js +5 -5
- package/dist/components/pagination/src/components/pagination-root.js +3 -3
- package/dist/components/pagination/src/components/pagination-spinner.js +20 -19
- package/dist/components/pagination/src/context/index.d.ts +1 -0
- package/dist/components/popover/dist/index.d.ts +2 -4
- package/dist/components/popover/dist/index.js +25 -33
- package/dist/components/popover/src/components/popover-header.js +1 -1
- package/dist/components/popover/src/hooks/use-drag.d.ts +3 -3
- package/dist/components/popover/src/hooks/use-floating-popover.d.ts +0 -2
- package/dist/components/popover/src/hooks/use-floating-popover.js +16 -13
- package/dist/components/popover/src/index.d.ts +2 -1
- package/dist/components/popover/src/popover.d.ts +1 -2
- package/dist/components/popover/src/popover.js +11 -21
- package/dist/components/progress/src/index.d.ts +4 -2
- package/dist/components/radio/dist/index.d.ts +1 -17
- package/dist/components/radio/dist/index.js +7 -10
- package/dist/components/radio/src/context.js +1 -1
- package/dist/components/radio/src/index.d.ts +0 -4
- package/dist/components/radio/src/radio-label.js +2 -2
- package/dist/components/radio/src/radio.js +4 -4
- package/dist/components/range/dist/index.js +16 -16
- package/dist/components/range/src/index.d.ts +4 -2
- package/dist/components/range/src/range-tuple.js +10 -10
- package/dist/components/range/src/range.js +6 -6
- package/dist/components/rich-input/dist/index.d.ts +12 -366
- package/dist/components/rich-input/src/components/rich-input-editable-component.d.ts +2 -2
- package/dist/components/rich-input/src/components/rich-input-viewport.d.ts +2 -2
- package/dist/components/rich-input/src/hooks/use-editor-config.d.ts +1 -1
- package/dist/components/rich-input/src/hooks/use-editor-effects.js +3 -0
- package/dist/components/rich-input/src/hooks/use-floating-ui.js +1 -1
- package/dist/components/rich-input/src/hooks/use-keyboard-shortcuts.d.ts +9 -9
- package/dist/components/rich-input/src/hooks/use-rich-input.d.ts +2 -2
- package/dist/components/rich-input/src/hooks/use-rich-input.js +40 -17
- package/dist/components/rich-input/src/hooks/use-selection-events.js +1 -2
- package/dist/components/rich-input/src/index.d.ts +3 -5
- package/dist/components/rich-input/src/rich-input-base.js +1 -1
- package/dist/components/rich-input/src/utils/custom-options.js +1 -1
- package/dist/components/rich-input/src/utils/editor-utils.js +1 -1
- package/dist/components/rich-input/src/utils/markdown-to-slate.d.ts +2 -2
- package/dist/components/rich-input/src/utils/slate-to-markdown.d.ts +1 -1
- package/dist/components/rich-input/src/utils/slate-to-markdown.js +9 -0
- package/dist/components/scroll-area/dist/index.d.ts +19 -19
- package/dist/components/scroll-area/dist/index.js +24 -24
- package/dist/components/scroll-area/src/components/scroll-area-corner.js +2 -2
- package/dist/components/scroll-area/src/components/scroll-area-root.js +3 -3
- package/dist/components/scroll-area/src/components/scroll-area-scrollbar.js +2 -2
- package/dist/components/scroll-area/src/components/scroll-area-thumb.js +2 -2
- package/dist/components/scroll-area/src/hooks/use-scroll-performance-monitor.d.ts +6 -6
- package/dist/components/scroll-area/src/hooks/use-scroll-performance-monitor.js +3 -3
- package/dist/components/scroll-area/src/hooks/use-scroll-state-and-visibility.d.ts +1 -1
- package/dist/components/scroll-area/src/hooks/use-scroll-state-and-visibility.js +3 -3
- package/dist/components/scroll-area/src/hooks/use-scrollbar.d.ts +2 -2
- package/dist/components/scroll-area/src/hooks/use-thumb.d.ts +2 -2
- package/dist/components/scroll-area/src/tv.d.ts +18 -18
- package/dist/components/scroll-area/src/tv.js +12 -12
- package/dist/components/scroll-area/src/types.d.ts +8 -8
- package/dist/components/scroll-area/src/utils/index.d.ts +3 -3
- package/dist/components/search-input/dist/index.js +3 -3
- package/dist/components/search-input/src/index.d.ts +2 -1
- package/dist/components/search-input/src/search-input.js +3 -3
- package/dist/components/segmented/dist/index.js +5 -5
- package/dist/components/segmented/src/segmented-item.js +3 -3
- package/dist/components/segmented/src/segmented.js +2 -2
- package/dist/components/select/dist/index.js +4 -4
- package/dist/components/select/src/select.js +4 -4
- package/dist/components/separator/dist/index.d.ts +26 -0
- package/dist/components/separator/src/index.d.ts +2 -0
- package/dist/components/separator/src/separator.d.ts +22 -0
- package/dist/components/separator/src/separator.js +33 -0
- package/dist/components/separator/src/tv.d.ts +76 -0
- package/dist/components/separator/src/tv.js +25 -0
- package/dist/components/separator/tsup.config.d.ts +2 -0
- package/dist/components/skeleton/dist/index.d.ts +1 -28
- package/dist/components/skeleton/src/context/skeleton-context.js +1 -1
- package/dist/components/skeleton/src/hooks/use-skeleton.d.ts +1 -2
- package/dist/components/skeleton/src/hooks/use-skeleton.js +1 -1
- package/dist/components/skeleton/src/index.d.ts +1 -3
- package/dist/components/skeleton/src/skeleton.d.ts +0 -13
- package/dist/components/skeleton/src/skeleton.js +4 -6
- package/dist/components/skeleton/src/tv.d.ts +18 -12
- package/dist/components/skeleton/src/tv.js +10 -6
- package/dist/components/slot/dist/index.d.ts +10 -10
- package/dist/components/slot/dist/index.js +4 -2
- package/dist/components/slot/src/slot.d.ts +12 -12
- package/dist/components/slot/src/slot.js +6 -3
- package/dist/components/stackflow/src/context.js +1 -1
- package/dist/components/stackflow/src/index.d.ts +2 -1
- package/dist/components/switch/dist/index.d.ts +2 -2
- package/dist/components/switch/dist/index.js +6 -7
- package/dist/components/switch/src/index.d.ts +2 -1
- package/dist/components/switch/src/switch.js +6 -6
- package/dist/components/table/dist/index.d.ts +679 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/src/components/column-resizer.d.ts +8 -0
- package/dist/components/table/src/components/column-resizer.js +58 -0
- package/dist/components/table/src/components/drag-guide.d.ts +6 -0
- package/dist/components/table/src/components/drag-guide.js +64 -0
- package/dist/components/table/src/components/index.d.ts +12 -0
- package/dist/components/table/src/components/resize-guide.d.ts +5 -0
- package/dist/components/table/src/components/resize-guide.js +25 -0
- package/dist/components/table/src/components/table-body.d.ts +6 -0
- package/dist/components/table/src/components/table-body.js +335 -0
- package/dist/components/table/src/components/table-cell.d.ts +6 -0
- package/dist/components/table/src/components/table-cell.js +89 -0
- package/dist/components/table/src/components/table-column.d.ts +5 -0
- package/dist/components/table/src/components/table-column.js +269 -0
- package/dist/components/table/src/components/table-empty.d.ts +8 -0
- package/dist/components/table/src/components/table-empty.js +10 -0
- package/dist/components/table/src/components/table-footer.d.ts +7 -0
- package/dist/components/table/src/components/table-footer.js +15 -0
- package/dist/components/table/src/components/table-header.d.ts +3 -0
- package/dist/components/table/src/components/table-header.js +88 -0
- package/dist/components/table/src/components/table-root.d.ts +3 -0
- package/dist/components/table/src/components/table-root.js +317 -0
- package/dist/components/table/src/components/table-row.d.ts +23 -0
- package/dist/components/table/src/components/table-row.js +166 -0
- package/dist/components/table/src/components/table-value.d.ts +6 -0
- package/dist/components/table/src/components/table-value.js +8 -0
- package/dist/components/table/src/context.d.ts +121 -0
- package/dist/components/table/src/context.js +63 -0
- package/dist/components/table/src/hooks/index.d.ts +4 -0
- package/dist/components/table/src/hooks/use-column-order.d.ts +26 -0
- package/dist/components/table/src/hooks/use-column-order.js +95 -0
- package/dist/components/table/src/hooks/use-column-resize.d.ts +17 -0
- package/dist/components/table/src/hooks/use-column-resize.js +75 -0
- package/dist/components/table/src/hooks/use-consecutive-selection-style.d.ts +12 -0
- package/dist/components/table/src/hooks/use-consecutive-selection-style.js +28 -0
- package/dist/components/table/src/hooks/use-table.d.ts +35 -0
- package/dist/components/table/src/hooks/use-table.js +245 -0
- package/dist/components/table/src/index.d.ts +4 -0
- package/dist/components/table/src/table.d.ts +88 -0
- package/dist/components/table/src/table.js +24 -0
- package/dist/components/table/src/tv.d.ts +176 -0
- package/dist/components/table/src/tv.js +97 -0
- package/dist/components/table/src/types.d.ts +292 -0
- package/dist/components/table/tsup.config.d.ts +2 -0
- package/dist/components/tabs/dist/index.js +4 -3
- package/dist/components/tabs/src/tabs.d.ts +2 -2
- package/dist/components/tabs/src/tabs.js +5 -4
- package/dist/components/text-field/dist/index.d.ts +1 -1
- package/dist/components/text-field/dist/index.js +10 -10
- package/dist/components/text-field/src/components/field-addon.d.ts +1 -2
- package/dist/components/text-field/src/index.d.ts +3 -1
- package/dist/components/text-field/src/text-field.js +10 -10
- package/dist/components/textarea/dist/index.d.ts +33 -5
- package/dist/components/textarea/dist/index.js +32 -7
- package/dist/components/textarea/src/components/autosize/index.d.ts +6 -1
- package/dist/components/textarea/src/components/autosize/index.js +31 -6
- package/dist/components/textarea/src/textarea.js +1 -1
- package/dist/components/textarea/src/types.d.ts +33 -5
- package/dist/components/toggle-button/dist/index.d.ts +26 -2
- package/dist/components/toggle-button/src/context.d.ts +11 -0
- package/dist/components/toggle-button/src/context.js +13 -0
- package/dist/components/toggle-button/src/index.d.ts +2 -0
- package/dist/components/toggle-button/src/toggle-button.js +4 -4
- package/dist/components/toggle-button/src/toggle-group.d.ts +26 -0
- package/dist/components/toggle-button/src/toggle-group.js +156 -0
- package/dist/components/toggle-button/src/tv.d.ts +67 -3
- package/dist/components/toggle-button/src/tv.js +45 -14
- package/dist/components/tooltip/dist/index.d.ts +10 -43
- package/dist/components/tooltip/dist/index.js +35 -33
- package/dist/components/tooltip/src/components/tooltip-arrow.js +1 -1
- package/dist/components/tooltip/src/components/tooltip-content.js +5 -4
- package/dist/components/tooltip/src/context/index.d.ts +1 -0
- package/dist/components/tooltip/src/hooks/use-tooltip.js +3 -3
- package/dist/components/tooltip/src/index.d.ts +2 -4
- package/dist/components/tooltip/src/tooltip.d.ts +7 -1
- package/dist/components/tooltip/src/tooltip.js +6 -1
- package/dist/components/tooltip/src/tv.js +1 -1
- package/dist/components/virtualized-grid/dist/index.d.ts +2 -2
- package/dist/components/virtualized-grid/src/use-item-pool.js +14 -26
- package/dist/components/virtualized-grid/src/use-virtualized-grid.d.ts +1 -1
- package/dist/components/virtualized-grid/src/use-virtualized-grid.js +14 -8
- package/dist/components/virtualized-grid/src/utility.d.ts +1 -1
- package/dist/components/virtualized-grid/src/utility.js +37 -31
- package/dist/components/virtualized-grid/src/virtualized-grid.js +27 -17
- package/dist/context/choice-ui-provider.d.ts +35 -0
- package/dist/context/choice-ui-provider.js +14 -0
- package/dist/context/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +53 -177
- package/package.json +1 -1
- package/dist/components/code-block/src/index.js +0 -15
- package/dist/components/rich-input/src/hooks/use-mouse-events.js +0 -113
- package/dist/components/rich-input/src/hooks/use-validation.js +0 -80
- package/dist/components/rich-input/src/utils/markdown-to-slate.js +0 -219
- /package/dist/components/command/src/{command-score.d.ts → utils/command-score.d.ts} +0 -0
- /package/dist/components/command/src/{command-score.js → utils/command-score.js} +0 -0
- /package/dist/components/pagination/src/{components → context}/pagination-context.d.ts +0 -0
- /package/dist/components/pagination/src/{components → context}/pagination-context.js +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { CheckboxProps } from '../../checkbox/src';
|
|
3
|
+
import { ChipsInputProps } from '../../chips-input/src';
|
|
3
4
|
import { InputProps } from '../../input/src';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
5
|
+
import { MultiSelectProps } from '../../multi-select/src';
|
|
6
|
+
import { NumericInputProps } from '../../numeric-input/src';
|
|
6
7
|
import { RadioGroupProps } from '../../radio/src';
|
|
7
|
-
import { SwitchProps } from '../../switch/src';
|
|
8
8
|
import { RangeProps } from '../../range/src';
|
|
9
|
-
import { NumericInputProps } from '../../numeric-input/src';
|
|
10
|
-
import { MultiSelectProps } from '../../multi-select/src';
|
|
11
9
|
import { SegmentedProps } from '../../segmented/src';
|
|
10
|
+
import { SelectProps } from '../../select/src';
|
|
11
|
+
import { SwitchProps } from '../../switch/src';
|
|
12
|
+
import { TextareaProps } from '../../textarea/src';
|
|
12
13
|
import * as react from 'react';
|
|
13
14
|
import * as _choice_ui_button from '../../button/src';
|
|
14
15
|
import * as _tanstack_react_form from '@tanstack/react-form';
|
|
@@ -16,15 +17,15 @@ export { _tanstack_react_form as TanstackReactForm };
|
|
|
16
17
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* Form validator type
|
|
20
21
|
*/
|
|
21
22
|
type FormValidator<T> = (values: T) => string | void | Promise<string | void>;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* Field validator type
|
|
24
25
|
*/
|
|
25
26
|
type FieldValidator<T> = (value: T) => string | void | Promise<string | void>;
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
* Field validator collection
|
|
28
29
|
*/
|
|
29
30
|
interface FieldValidators<T> {
|
|
30
31
|
onBlur?: FieldValidator<T>;
|
|
@@ -38,7 +39,7 @@ interface FieldValidators<T> {
|
|
|
38
39
|
onSubmitAsyncDebounceMs?: number;
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
+
* Form configuration
|
|
42
43
|
*/
|
|
43
44
|
interface FormConfig<T = Record<string, unknown>> {
|
|
44
45
|
defaultValues?: Partial<T>;
|
|
@@ -55,7 +56,7 @@ interface FormConfig<T = Record<string, unknown>> {
|
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
|
-
*
|
|
59
|
+
* Field configuration
|
|
59
60
|
*/
|
|
60
61
|
interface FieldConfig<T = unknown> {
|
|
61
62
|
component?: React.ComponentType<{
|
|
@@ -80,7 +81,7 @@ interface FieldConfig<T = unknown> {
|
|
|
80
81
|
validators?: FieldValidators<T>;
|
|
81
82
|
}
|
|
82
83
|
/**
|
|
83
|
-
*
|
|
84
|
+
* Form state
|
|
84
85
|
*/
|
|
85
86
|
interface FormState<T = Record<string, unknown>> {
|
|
86
87
|
canSubmit: boolean;
|
|
@@ -92,7 +93,7 @@ interface FormState<T = Record<string, unknown>> {
|
|
|
92
93
|
values: T;
|
|
93
94
|
}
|
|
94
95
|
/**
|
|
95
|
-
*
|
|
96
|
+
* Field state
|
|
96
97
|
*/
|
|
97
98
|
interface FieldState<T = unknown> {
|
|
98
99
|
error?: string;
|
|
@@ -104,7 +105,7 @@ interface FieldState<T = unknown> {
|
|
|
104
105
|
value: T;
|
|
105
106
|
}
|
|
106
107
|
/**
|
|
107
|
-
*
|
|
108
|
+
* Simplified form API type
|
|
108
109
|
*/
|
|
109
110
|
interface SimpleFormApi<T = Record<string, unknown>> {
|
|
110
111
|
getFieldValue: (name: keyof T) => T[keyof T];
|
|
@@ -116,7 +117,7 @@ interface SimpleFormApi<T = Record<string, unknown>> {
|
|
|
116
117
|
validateField: (name: keyof T) => void;
|
|
117
118
|
}
|
|
118
119
|
/**
|
|
119
|
-
*
|
|
120
|
+
* Simplified field API type
|
|
120
121
|
*/
|
|
121
122
|
interface SimpleFieldApi<T = unknown> {
|
|
122
123
|
handleBlur: () => void;
|
|
@@ -126,14 +127,14 @@ interface SimpleFieldApi<T = unknown> {
|
|
|
126
127
|
value: T;
|
|
127
128
|
}
|
|
128
129
|
/**
|
|
129
|
-
*
|
|
130
|
+
* Form context type
|
|
130
131
|
*/
|
|
131
132
|
interface FormContextValue<T = Record<string, unknown>> {
|
|
132
133
|
config: FormConfig<T>;
|
|
133
134
|
formApi: SimpleFormApi<T>;
|
|
134
135
|
}
|
|
135
136
|
/**
|
|
136
|
-
*
|
|
137
|
+
* Field context type
|
|
137
138
|
*/
|
|
138
139
|
interface FieldContextValue<T = unknown> {
|
|
139
140
|
config: FieldConfig<T>;
|
|
@@ -141,7 +142,7 @@ interface FieldContextValue<T = unknown> {
|
|
|
141
142
|
state: FieldState<T>;
|
|
142
143
|
}
|
|
143
144
|
/**
|
|
144
|
-
*
|
|
145
|
+
* Form submit result
|
|
145
146
|
*/
|
|
146
147
|
interface FormSubmitResult<T = Record<string, unknown>> {
|
|
147
148
|
errors?: Record<string, string[]>;
|
|
@@ -149,7 +150,7 @@ interface FormSubmitResult<T = Record<string, unknown>> {
|
|
|
149
150
|
values?: T;
|
|
150
151
|
}
|
|
151
152
|
/**
|
|
152
|
-
*
|
|
153
|
+
* Form component Props
|
|
153
154
|
*/
|
|
154
155
|
interface FormProps<T = Record<string, unknown>> extends FormConfig<T> {
|
|
155
156
|
children?: ReactNode;
|
|
@@ -158,7 +159,7 @@ interface FormProps<T = Record<string, unknown>> extends FormConfig<T> {
|
|
|
158
159
|
variant?: "default" | "dark";
|
|
159
160
|
}
|
|
160
161
|
/**
|
|
161
|
-
*
|
|
162
|
+
* Field component Props
|
|
162
163
|
*/
|
|
163
164
|
interface FormFieldProps<T = unknown> extends FieldConfig<T> {
|
|
164
165
|
children?: ReactNode | ((field: SimpleFieldApi<T>) => ReactNode);
|
|
@@ -167,7 +168,7 @@ interface FormFieldProps<T = unknown> extends FieldConfig<T> {
|
|
|
167
168
|
variant?: "default" | "dark";
|
|
168
169
|
}
|
|
169
170
|
/**
|
|
170
|
-
*
|
|
171
|
+
* Submit button Props
|
|
171
172
|
*/
|
|
172
173
|
interface FormSubmitProps {
|
|
173
174
|
children?: ReactNode;
|
|
@@ -179,7 +180,7 @@ interface FormSubmitProps {
|
|
|
179
180
|
variant?: "primary" | "secondary" | "ghost";
|
|
180
181
|
}
|
|
181
182
|
/**
|
|
182
|
-
*
|
|
183
|
+
* Field error display Props
|
|
183
184
|
*/
|
|
184
185
|
interface FormFieldErrorProps {
|
|
185
186
|
className?: string;
|
|
@@ -188,7 +189,7 @@ interface FormFieldErrorProps {
|
|
|
188
189
|
variant?: "default" | "dark";
|
|
189
190
|
}
|
|
190
191
|
/**
|
|
191
|
-
*
|
|
192
|
+
* Field information display Props
|
|
192
193
|
*/
|
|
193
194
|
interface FormFieldInfoProps {
|
|
194
195
|
className?: string;
|
|
@@ -198,7 +199,7 @@ interface FormFieldInfoProps {
|
|
|
198
199
|
variant?: "default" | "dark";
|
|
199
200
|
}
|
|
200
201
|
/**
|
|
201
|
-
*
|
|
202
|
+
* Form field common properties
|
|
202
203
|
*/
|
|
203
204
|
interface FormFieldCommonProps<T = unknown> {
|
|
204
205
|
error?: string;
|
|
@@ -208,45 +209,45 @@ interface FormFieldCommonProps<T = unknown> {
|
|
|
208
209
|
value: T;
|
|
209
210
|
}
|
|
210
211
|
/**
|
|
211
|
-
*
|
|
212
|
-
*
|
|
212
|
+
* Form field adapter base properties
|
|
213
|
+
* Contains all form field common properties
|
|
213
214
|
*/
|
|
214
215
|
interface FormFieldAdapterProps<T = unknown> {
|
|
215
|
-
/**
|
|
216
|
+
/** Field description */
|
|
216
217
|
description?: string | ReactNode;
|
|
217
|
-
/**
|
|
218
|
+
/** Single error message */
|
|
218
219
|
error?: string | ReactNode;
|
|
219
|
-
/**
|
|
220
|
+
/** Field label */
|
|
220
221
|
label?: string | ReactNode;
|
|
221
|
-
/**
|
|
222
|
+
/** Blur callback */
|
|
222
223
|
onBlur?: () => void;
|
|
223
|
-
/**
|
|
224
|
+
/** Async blur validation */
|
|
224
225
|
onBlurAsync?: () => void;
|
|
225
226
|
onBlurAsyncDebounceMs?: number;
|
|
226
|
-
/**
|
|
227
|
+
/** Value change callback */
|
|
227
228
|
onChange: (value: T) => void;
|
|
228
|
-
/**
|
|
229
|
+
/** Async value change validation */
|
|
229
230
|
onChangeAsync?: (value: T) => void;
|
|
230
231
|
onChangeAsyncDebounceMs?: number;
|
|
231
|
-
/**
|
|
232
|
+
/** Focus callback */
|
|
232
233
|
onFocus?: () => void;
|
|
233
|
-
/**
|
|
234
|
+
/** Async focus validation */
|
|
234
235
|
onFocusAsync?: () => void;
|
|
235
236
|
onFocusAsyncDebounceMs?: number;
|
|
236
|
-
/**
|
|
237
|
+
/** Field size */
|
|
237
238
|
size?: "default" | "large";
|
|
238
|
-
/**
|
|
239
|
+
/** Field value */
|
|
239
240
|
value: T;
|
|
240
241
|
}
|
|
241
242
|
/**
|
|
242
|
-
*
|
|
243
|
-
*
|
|
243
|
+
* Common adapter property exclusion pattern
|
|
244
|
+
* Define properties to exclude from the original component props
|
|
244
245
|
*/
|
|
245
246
|
type CommonExcludedProps = "value" | "onChange" | "onBlur" | "onFocus" | "label";
|
|
246
247
|
type CommonExcludedPropsWithSize = CommonExcludedProps | "size";
|
|
247
248
|
type CommonExcludedPropsWithChildrenAndSize = CommonExcludedProps | "children" | "size";
|
|
248
249
|
/**
|
|
249
|
-
*
|
|
250
|
+
* Select component option type
|
|
250
251
|
*/
|
|
251
252
|
interface SelectOption<T = string> {
|
|
252
253
|
divider?: boolean;
|
|
@@ -254,25 +255,25 @@ interface SelectOption<T = string> {
|
|
|
254
255
|
value?: T;
|
|
255
256
|
}
|
|
256
257
|
/**
|
|
257
|
-
*
|
|
258
|
+
* Segmented component option type
|
|
258
259
|
*/
|
|
259
260
|
interface SegmentedOption<T = string> {
|
|
260
261
|
content?: string | ReactNode;
|
|
261
262
|
value?: T;
|
|
262
263
|
}
|
|
263
264
|
/**
|
|
264
|
-
*
|
|
265
|
-
*
|
|
265
|
+
* Base adapter factory type
|
|
266
|
+
* Used to create standard adapter types
|
|
266
267
|
*/
|
|
267
268
|
type BaseAdapterProps<TComponent, TValue, TExcluded extends string = CommonExcludedProps> = Omit<TComponent, TExcluded> & FormFieldAdapterProps<TValue>;
|
|
268
269
|
/**
|
|
269
|
-
*
|
|
270
|
-
*
|
|
270
|
+
* Adapter factory type with size exclusion
|
|
271
|
+
* Used to create adapter types that need to exclude the size property
|
|
271
272
|
*/
|
|
272
273
|
type AdapterPropsWithoutSize<TComponent, TValue, TExcluded extends string = CommonExcludedProps> = Omit<TComponent, TExcluded> & Omit<FormFieldAdapterProps<TValue>, "size">;
|
|
273
274
|
/**
|
|
274
|
-
*
|
|
275
|
-
*
|
|
275
|
+
* Select adapter factory type
|
|
276
|
+
* Used to create adapter types that need to exclude the options and placeholder properties
|
|
276
277
|
*/
|
|
277
278
|
type SelectAdapterPropsBase<TComponent, TValue, TExcluded extends string = CommonExcludedPropsWithChildrenAndSize> = Omit<TComponent, TExcluded> & FormFieldAdapterProps<TValue> & {
|
|
278
279
|
name?: string;
|
|
@@ -280,12 +281,12 @@ type SelectAdapterPropsBase<TComponent, TValue, TExcluded extends string = Commo
|
|
|
280
281
|
placeholder?: string;
|
|
281
282
|
};
|
|
282
283
|
/**
|
|
283
|
-
*
|
|
284
|
+
* Text input adapter (Input, Textarea)
|
|
284
285
|
*/
|
|
285
286
|
type InputAdapterProps<T extends string = string> = BaseAdapterProps<InputProps, T, CommonExcludedPropsWithSize>;
|
|
286
287
|
type TextareaAdapterProps<T extends string = string> = BaseAdapterProps<TextareaProps, T, CommonExcludedPropsWithSize>;
|
|
287
288
|
/**
|
|
288
|
-
*
|
|
289
|
+
* Select adapter (Select, MultiSelect)
|
|
289
290
|
*/
|
|
290
291
|
type SelectAdapterProps<T extends string = string> = SelectAdapterPropsBase<SelectProps, T>;
|
|
291
292
|
type MultiSelectAdapterProps<T extends string = string> = Omit<MultiSelectProps, CommonExcludedPropsWithChildrenAndSize> & FormFieldAdapterProps<T[]> & {
|
|
@@ -294,96 +295,89 @@ type MultiSelectAdapterProps<T extends string = string> = Omit<MultiSelectProps,
|
|
|
294
295
|
placeholder?: string;
|
|
295
296
|
};
|
|
296
297
|
/**
|
|
297
|
-
*
|
|
298
|
+
* Boolean adapter (Checkbox, Switch)
|
|
298
299
|
*/
|
|
299
300
|
interface CheckboxAdapterProps<T extends boolean = boolean> extends Omit<CheckboxProps, CommonExcludedPropsWithChildrenAndSize>, Omit<FormFieldAdapterProps<T>, "value"> {
|
|
300
301
|
value: T | undefined;
|
|
301
302
|
}
|
|
302
303
|
type SwitchAdapterProps<T extends boolean = boolean> = BaseAdapterProps<SwitchProps, T, CommonExcludedPropsWithChildrenAndSize>;
|
|
303
304
|
/**
|
|
304
|
-
*
|
|
305
|
+
* Number adapter (Range, NumericInput)
|
|
305
306
|
*/
|
|
306
307
|
type RangeAdapterProps<T extends number = number> = BaseAdapterProps<RangeProps, T, CommonExcludedPropsWithChildrenAndSize>;
|
|
307
308
|
type NumericInputAdapterProps<T extends number = number> = AdapterPropsWithoutSize<NumericInputProps, T>;
|
|
308
309
|
/**
|
|
309
|
-
*
|
|
310
|
+
* Single select adapter (RadioGroup, Segmented)
|
|
310
311
|
*/
|
|
311
312
|
type RadioGroupAdapterProps<T extends string = string> = BaseAdapterProps<RadioGroupProps, T, CommonExcludedPropsWithChildrenAndSize>;
|
|
312
313
|
type SegmentedAdapterProps<T extends string = string> = Omit<SegmentedProps, CommonExcludedPropsWithChildrenAndSize> & FormFieldAdapterProps<T> & {
|
|
313
314
|
options?: SegmentedOption<T>[];
|
|
314
315
|
};
|
|
316
|
+
/**
|
|
317
|
+
* Tags input adapter (ChipsInput)
|
|
318
|
+
*/
|
|
319
|
+
type ChipsInputAdapterProps<T extends string = string> = Omit<ChipsInputProps, CommonExcludedPropsWithChildrenAndSize> & FormFieldAdapterProps<T[]> & {
|
|
320
|
+
name?: string;
|
|
321
|
+
};
|
|
315
322
|
|
|
316
323
|
/**
|
|
317
|
-
*
|
|
324
|
+
* Checkbox Adapter for Form system
|
|
318
325
|
*/
|
|
319
|
-
declare function
|
|
326
|
+
declare function CheckboxAdapter<T extends boolean>({ className, label, description, error, value, onChange, onBlur, onFocus, name, ...props }: CheckboxAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
320
327
|
|
|
321
328
|
/**
|
|
322
|
-
*
|
|
329
|
+
* ChipsInput Adapter for Form system
|
|
323
330
|
*/
|
|
324
|
-
declare function
|
|
331
|
+
declare function ChipsInputAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, ...props }: ChipsInputAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
325
332
|
|
|
326
333
|
/**
|
|
327
|
-
*
|
|
334
|
+
* Input Adapter for Form system
|
|
328
335
|
*/
|
|
329
|
-
declare function
|
|
336
|
+
declare function InputAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, ...props }: InputAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
330
337
|
|
|
331
338
|
/**
|
|
332
|
-
*
|
|
339
|
+
* MultiSelect Adapter for Form system
|
|
333
340
|
*/
|
|
334
|
-
declare function
|
|
341
|
+
declare function MultiSelectAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, options, placeholder, ...props }: MultiSelectAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
335
342
|
|
|
336
343
|
/**
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
* 核心功能:
|
|
340
|
-
* 1. 值绑定
|
|
341
|
-
* 2. 事件处理
|
|
342
|
-
* 3. 错误状态显示
|
|
343
|
-
* 4. 样式适配
|
|
344
|
+
* NumericInput Adapter for Form system
|
|
344
345
|
*/
|
|
345
|
-
declare function
|
|
346
|
+
declare function NumericInputAdapter<T extends number>({ className, label, description, error, value, onChange, onBlur, children, ...props }: NumericInputAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
346
347
|
|
|
347
348
|
/**
|
|
348
|
-
*
|
|
349
|
+
* RadioGroup Adapter for Form system
|
|
349
350
|
*/
|
|
350
|
-
declare function
|
|
351
|
+
declare function RadioGroupAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, onFocus, name, ...props }: RadioGroupAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
351
352
|
|
|
352
353
|
/**
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* 核心功能:
|
|
356
|
-
* 1. 值绑定
|
|
357
|
-
* 2. 事件处理
|
|
358
|
-
* 3. 错误状态显示
|
|
359
|
-
* 4. 样式适配
|
|
354
|
+
* Range Adapter for Form system
|
|
360
355
|
*/
|
|
361
356
|
declare function RangeAdapter<T extends number>({ className, label, description, error, value, onChange, onBlur, onFocus, ...props }: RangeAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
362
357
|
|
|
363
358
|
/**
|
|
364
|
-
*
|
|
359
|
+
* Segmented Adapter for Form system
|
|
365
360
|
*/
|
|
366
|
-
declare function
|
|
361
|
+
declare function SegmentedAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, onFocus, name, options, ...props }: SegmentedAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
367
362
|
|
|
368
363
|
/**
|
|
369
|
-
*
|
|
364
|
+
* Select Adapter for Form system
|
|
370
365
|
*/
|
|
371
|
-
declare function
|
|
366
|
+
declare function SelectAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, options, placeholder, ...props }: SelectAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
372
367
|
|
|
373
368
|
/**
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
* 核心功能:
|
|
377
|
-
* 1. 值绑定
|
|
378
|
-
* 2. 事件处理
|
|
379
|
-
* 3. 错误状态显示
|
|
380
|
-
* 4. 样式适配
|
|
369
|
+
* Switch Adapter for Form system
|
|
381
370
|
*/
|
|
382
|
-
declare function
|
|
371
|
+
declare function SwitchAdapter<T extends boolean>({ className, label, description, error, value, onChange, onBlur, onFocus, name, ...props }: SwitchAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
383
372
|
|
|
384
373
|
/**
|
|
385
|
-
*
|
|
386
|
-
|
|
374
|
+
* Textarea Adapter for Form system
|
|
375
|
+
*/
|
|
376
|
+
declare function TextareaAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, ...props }: TextareaAdapterProps<T>): react_jsx_runtime.JSX.Element;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Enhanced useForm hook
|
|
380
|
+
* Add adapter components to the TanStack Form
|
|
387
381
|
*/
|
|
388
382
|
declare function useForm(options: {
|
|
389
383
|
[key: string]: unknown;
|
|
@@ -392,17 +386,18 @@ declare function useForm(options: {
|
|
|
392
386
|
value: unknown;
|
|
393
387
|
}) => void | Promise<void>;
|
|
394
388
|
}): _tanstack_react_form.FormApi<Record<string, unknown>, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, unknown> & _tanstack_react_form.ReactFormApi<Record<string, unknown>, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, _tanstack_react_form.FormAsyncValidateOrFn<Record<string, unknown>> | undefined, unknown> & {
|
|
395
|
-
|
|
396
|
-
Select: typeof SelectAdapter;
|
|
397
|
-
Textarea: typeof TextareaAdapter;
|
|
389
|
+
Button: react.ForwardRefExoticComponent<Omit<_choice_ui_button.ButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
398
390
|
Checkbox: typeof CheckboxAdapter;
|
|
391
|
+
ChipsInput: typeof ChipsInputAdapter;
|
|
392
|
+
Input: typeof InputAdapter;
|
|
393
|
+
MultiSelect: typeof MultiSelectAdapter;
|
|
394
|
+
NumericInput: typeof NumericInputAdapter;
|
|
399
395
|
RadioGroup: typeof RadioGroupAdapter;
|
|
400
|
-
Switch: typeof SwitchAdapter;
|
|
401
396
|
Range: typeof RangeAdapter;
|
|
402
|
-
NumericInput: typeof NumericInputAdapter;
|
|
403
|
-
MultiSelect: typeof MultiSelectAdapter;
|
|
404
397
|
Segmented: typeof SegmentedAdapter;
|
|
405
|
-
|
|
398
|
+
Select: typeof SelectAdapter;
|
|
399
|
+
Switch: typeof SwitchAdapter;
|
|
400
|
+
Textarea: typeof TextareaAdapter;
|
|
406
401
|
};
|
|
407
402
|
|
|
408
|
-
export { type AdapterPropsWithoutSize, type BaseAdapterProps, CheckboxAdapter, type CheckboxAdapterProps, type FieldConfig, type FieldContextValue, type FieldState, type FieldValidator, type FieldValidators, type FormConfig, type FormContextValue, type FormFieldAdapterProps, type FormFieldCommonProps, type FormFieldErrorProps, type FormFieldInfoProps, type FormFieldProps, type FormProps, type FormState, type FormSubmitProps, type FormSubmitResult, type FormValidator, InputAdapter, type InputAdapterProps, MultiSelectAdapter, type MultiSelectAdapterProps, NumericInputAdapter, type NumericInputAdapterProps, RadioGroupAdapter, type RadioGroupAdapterProps, RangeAdapter, type RangeAdapterProps, SegmentedAdapter, type SegmentedAdapterProps, SelectAdapter, type SelectAdapterProps, type SelectAdapterPropsBase, type SimpleFieldApi, type SimpleFormApi, SwitchAdapter, type SwitchAdapterProps, TextareaAdapter, type TextareaAdapterProps, useForm };
|
|
403
|
+
export { type AdapterPropsWithoutSize, type BaseAdapterProps, CheckboxAdapter, type CheckboxAdapterProps, ChipsInputAdapter, type ChipsInputAdapterProps, type FieldConfig, type FieldContextValue, type FieldState, type FieldValidator, type FieldValidators, type FormConfig, type FormContextValue, type FormFieldAdapterProps, type FormFieldCommonProps, type FormFieldErrorProps, type FormFieldInfoProps, type FormFieldProps, type FormProps, type FormState, type FormSubmitProps, type FormSubmitResult, type FormValidator, InputAdapter, type InputAdapterProps, MultiSelectAdapter, type MultiSelectAdapterProps, NumericInputAdapter, type NumericInputAdapterProps, RadioGroupAdapter, type RadioGroupAdapterProps, RangeAdapter, type RangeAdapterProps, SegmentedAdapter, type SegmentedAdapterProps, SelectAdapter, type SelectAdapterProps, type SelectAdapterPropsBase, type SimpleFieldApi, type SimpleFormApi, SwitchAdapter, type SwitchAdapterProps, TextareaAdapter, type TextareaAdapterProps, useForm };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Base Adapter component
|
|
4
|
+
* Provides a unified form field layout and style
|
|
5
5
|
*/
|
|
6
6
|
export interface BaseAdapterProps {
|
|
7
7
|
children: ReactNode;
|
|
@@ -14,6 +14,6 @@ export interface BaseAdapterProps {
|
|
|
14
14
|
}
|
|
15
15
|
export declare function BaseAdapter({ className, label, description, error, children, htmlFor, legendMode, }: BaseAdapterProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Utility function to filter form specific properties
|
|
18
18
|
*/
|
|
19
19
|
export declare function filterFormProps<T extends Record<string, unknown>>(props: T): Omit<T, "label" | "description" | "error" | "onBlurAsync" | "onBlurAsyncDebounceMs" | "onChangeAsync" | "onChangeAsyncDebounceMs" | "onFocusAsync" | "onFocusAsyncDebounceMs" | "size">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckboxAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* Checkbox
|
|
3
|
+
* Checkbox Adapter for Form system
|
|
4
4
|
*/
|
|
5
5
|
export declare function CheckboxAdapter<T extends boolean>({ className, label, description, error, value, onChange, onBlur, onFocus, name, ...props }: CheckboxAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const createCheckboxAdapter: <T extends boolean>(defaultProps?: Partial<CheckboxAdapterProps<T>>) => {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChipsInputAdapterProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* ChipsInput Adapter for Form system
|
|
4
|
+
*/
|
|
5
|
+
export declare function ChipsInputAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, ...props }: ChipsInputAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const createChipsInputAdapter: <T extends string>(defaultProps?: Partial<ChipsInputAdapterProps<T>>) => {
|
|
7
|
+
(props: ChipsInputAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ChipsInput } from "../../../chips-input/dist/index.js";
|
|
3
|
+
import { filterFormProps, BaseAdapter } from "./base-adapter.js";
|
|
4
|
+
function ChipsInputAdapter({
|
|
5
|
+
className,
|
|
6
|
+
label,
|
|
7
|
+
description,
|
|
8
|
+
error,
|
|
9
|
+
value,
|
|
10
|
+
onChange,
|
|
11
|
+
onBlur,
|
|
12
|
+
...props
|
|
13
|
+
}) {
|
|
14
|
+
const filteredProps = filterFormProps(props);
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
BaseAdapter,
|
|
17
|
+
{
|
|
18
|
+
className,
|
|
19
|
+
label,
|
|
20
|
+
description,
|
|
21
|
+
error,
|
|
22
|
+
htmlFor: props.name,
|
|
23
|
+
children: /* @__PURE__ */ jsx(
|
|
24
|
+
ChipsInput,
|
|
25
|
+
{
|
|
26
|
+
id: props.name,
|
|
27
|
+
value,
|
|
28
|
+
onChange: (chips) => onChange == null ? void 0 : onChange(chips),
|
|
29
|
+
onBlur,
|
|
30
|
+
...filteredProps
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
ChipsInputAdapter
|
|
38
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export { BaseAdapter, filterFormProps } from './base-adapter';
|
|
2
2
|
export type { BaseAdapterProps } from './base-adapter';
|
|
3
|
-
export { InputAdapter, createInputAdapter } from './input-adapter';
|
|
4
|
-
export { TextareaAdapter, createTextareaAdapter } from './textarea-adapter';
|
|
5
|
-
export { SelectAdapter, createSelectAdapter } from './select-adapter';
|
|
6
3
|
export { CheckboxAdapter, createCheckboxAdapter } from './checkbox-adapter';
|
|
4
|
+
export { ChipsInputAdapter, createChipsInputAdapter } from './chips-input-adapter';
|
|
5
|
+
export { InputAdapter, createInputAdapter } from './input-adapter';
|
|
6
|
+
export { MultiSelectAdapter, createMultiSelectAdapter } from './multi-select-adapter';
|
|
7
|
+
export { NumericInputAdapter, createNumericInputAdapter } from './numeric-input-adapter';
|
|
7
8
|
export { RadioGroupAdapter, createRadioGroupAdapter } from './raido-group-adapter';
|
|
8
|
-
export { SwitchAdapter, createSwitchAdapter } from './switch-adapter';
|
|
9
9
|
export { RangeAdapter, createRangeAdapter } from './range-adapter';
|
|
10
|
-
export { NumericInputAdapter, createNumericInputAdapter } from './numeric-input-adapter';
|
|
11
|
-
export { MultiSelectAdapter, createMultiSelectAdapter } from './multi-select-adapter';
|
|
12
10
|
export { SegmentedAdapter, createSegmentedAdapter } from './segmented-adapter';
|
|
13
|
-
export
|
|
11
|
+
export { SelectAdapter, createSelectAdapter } from './select-adapter';
|
|
12
|
+
export { SwitchAdapter, createSwitchAdapter } from './switch-adapter';
|
|
13
|
+
export { TextareaAdapter, createTextareaAdapter } from './textarea-adapter';
|
|
14
|
+
export type { CheckboxAdapterProps, ChipsInputAdapterProps, InputAdapterProps, MultiSelectAdapterProps, NumericInputAdapterProps, RadioGroupAdapterProps, RangeAdapterProps, SegmentedAdapterProps, SelectAdapterProps, SwitchAdapterProps, TextareaAdapterProps, } from '../types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* Input
|
|
3
|
+
* Input Adapter for Form system
|
|
4
4
|
*/
|
|
5
5
|
export declare function InputAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, ...props }: InputAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const createInputAdapter: <T extends string>(defaultProps?: Partial<InputAdapterProps<T>>) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MultiSelectAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* MultiSelect
|
|
3
|
+
* MultiSelect Adapter for Form system
|
|
4
4
|
*/
|
|
5
5
|
export declare function MultiSelectAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, options, placeholder, ...props }: MultiSelectAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const createMultiSelectAdapter: <T extends string>(defaultProps?: Partial<MultiSelectAdapterProps<T>>) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NumericInputAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* NumericInput
|
|
3
|
+
* NumericInput Adapter for Form system
|
|
4
4
|
*/
|
|
5
5
|
export declare function NumericInputAdapter<T extends number>({ className, label, description, error, value, onChange, onBlur, children, ...props }: NumericInputAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const createNumericInputAdapter: <T extends number>(defaultProps?: Partial<NumericInputAdapterProps<T>>) => {
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { RadioGroupAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* RadioGroup
|
|
4
|
-
*
|
|
5
|
-
* 核心功能:
|
|
6
|
-
* 1. 值绑定
|
|
7
|
-
* 2. 事件处理
|
|
8
|
-
* 3. 错误状态显示
|
|
9
|
-
* 4. 样式适配
|
|
3
|
+
* RadioGroup Adapter for Form system
|
|
10
4
|
*/
|
|
11
5
|
export declare function RadioGroupAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, onFocus, name, ...props }: RadioGroupAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
6
|
export declare const createRadioGroupAdapter: <T extends string>(defaultProps?: Partial<RadioGroupAdapterProps<T>>) => {
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { RangeAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* 核心功能:
|
|
6
|
-
* 1. 值绑定
|
|
7
|
-
* 2. 事件处理
|
|
8
|
-
* 3. 错误状态显示
|
|
9
|
-
* 4. 样式适配
|
|
3
|
+
* Range Adapter for Form system
|
|
10
4
|
*/
|
|
11
5
|
export declare function RangeAdapter<T extends number>({ className, label, description, error, value, onChange, onBlur, onFocus, ...props }: RangeAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
6
|
export declare const createRangeAdapter: <T extends number>(defaultProps?: Partial<RangeAdapterProps<T>>) => {
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { SegmentedAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* Segmented
|
|
4
|
-
*
|
|
5
|
-
* 核心功能:
|
|
6
|
-
* 1. 值绑定
|
|
7
|
-
* 2. 事件处理
|
|
8
|
-
* 3. 错误状态显示
|
|
9
|
-
* 4. 样式适配
|
|
3
|
+
* Segmented Adapter for Form system
|
|
10
4
|
*/
|
|
11
5
|
export declare function SegmentedAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, onFocus, name, options, ...props }: SegmentedAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
6
|
export declare const createSegmentedAdapter: <T extends string>(defaultProps?: Partial<SegmentedAdapterProps<T>>) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* Select
|
|
3
|
+
* Select Adapter for Form system
|
|
4
4
|
*/
|
|
5
5
|
export declare function SelectAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, options, placeholder, ...props }: SelectAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const createSelectAdapter: <T extends string>(defaultProps?: Partial<SelectAdapterProps<T>>) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SwitchAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* Switch
|
|
3
|
+
* Switch Adapter for Form system
|
|
4
4
|
*/
|
|
5
5
|
export declare function SwitchAdapter<T extends boolean>({ className, label, description, error, value, onChange, onBlur, onFocus, name, ...props }: SwitchAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const createSwitchAdapter: <T extends boolean>(defaultProps?: Partial<SwitchAdapterProps<T>>) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TextareaAdapterProps } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* Textarea
|
|
3
|
+
* Textarea Adapter for Form system
|
|
4
4
|
*/
|
|
5
5
|
export declare function TextareaAdapter<T extends string>({ className, label, description, error, value, onChange, onBlur, ...props }: TextareaAdapterProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const createTextareaAdapter: <T extends string>(defaultProps?: Partial<TextareaAdapterProps<T>>) => {
|