@wow-two-beta/ui 0.0.57 → 0.0.59

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.
Files changed (205) hide show
  1. package/dist/actions/button/Button.d.ts +0 -9
  2. package/dist/actions/buttonGroup/ButtonGroup.d.ts +2 -2
  3. package/dist/actions/disclosureButton/DisclosureButton.d.ts +1 -1
  4. package/dist/actions/index.js +4 -4
  5. package/dist/actions/speedDial/SpeedDial.d.ts +2 -2
  6. package/dist/actions/toggleButton/ToggleButton.d.ts +1 -1
  7. package/dist/actions/toggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  8. package/dist/{chunk-VR5HH4SX.js → chunk-4XWLEKH2.js} +10 -4
  9. package/dist/chunk-4XWLEKH2.js.map +1 -0
  10. package/dist/{chunk-3GZOE7JF.js → chunk-577JZ2A2.js} +3 -3
  11. package/dist/{chunk-3GZOE7JF.js.map → chunk-577JZ2A2.js.map} +1 -1
  12. package/dist/{chunk-BI6JZY2O.js → chunk-DJJOQWOG.js} +6 -6
  13. package/dist/chunk-DJJOQWOG.js.map +1 -0
  14. package/dist/{chunk-FEXH7YWU.js → chunk-EEHJHPAP.js} +30 -30
  15. package/dist/chunk-EEHJHPAP.js.map +1 -0
  16. package/dist/{chunk-5Y43MUOK.js → chunk-EJCO7AWR.js} +11 -11
  17. package/dist/chunk-EJCO7AWR.js.map +1 -0
  18. package/dist/{chunk-ZFNGOAHR.js → chunk-EX4AOJCN.js} +58 -58
  19. package/dist/chunk-EX4AOJCN.js.map +1 -0
  20. package/dist/{chunk-4WYHY6KV.js → chunk-FNSC4LAL.js} +3 -3
  21. package/dist/{chunk-4WYHY6KV.js.map → chunk-FNSC4LAL.js.map} +1 -1
  22. package/dist/{chunk-WPTF6ZRR.js → chunk-GSAOM2ZR.js} +67 -38
  23. package/dist/chunk-GSAOM2ZR.js.map +1 -0
  24. package/dist/{chunk-JOOE4KS5.js → chunk-HG7NX6GP.js} +509 -380
  25. package/dist/chunk-HG7NX6GP.js.map +1 -0
  26. package/dist/{chunk-XDP6GEBA.js → chunk-JYGC5SRP.js} +39 -5
  27. package/dist/chunk-JYGC5SRP.js.map +1 -0
  28. package/dist/{chunk-4QOCAFCA.js → chunk-MTD4RTGO.js} +19 -19
  29. package/dist/chunk-MTD4RTGO.js.map +1 -0
  30. package/dist/{chunk-WOKIYORV.js → chunk-MTE5E6OQ.js} +308 -28
  31. package/dist/chunk-MTE5E6OQ.js.map +1 -0
  32. package/dist/{chunk-USGZGMLY.js → chunk-NR5DYKSJ.js} +3 -3
  33. package/dist/{chunk-USGZGMLY.js.map → chunk-NR5DYKSJ.js.map} +1 -1
  34. package/dist/{chunk-VYOQYXK6.js → chunk-OBW7JUNL.js} +12 -12
  35. package/dist/chunk-OBW7JUNL.js.map +1 -0
  36. package/dist/{chunk-UI4RT5JF.js → chunk-TTSJZEL7.js} +25 -25
  37. package/dist/chunk-TTSJZEL7.js.map +1 -0
  38. package/dist/{chunk-5PMOT5MD.js → chunk-V267IMBH.js} +86 -4
  39. package/dist/chunk-V267IMBH.js.map +1 -0
  40. package/dist/{chunk-ZH6BB54G.js → chunk-XDATW7NF.js} +3 -3
  41. package/dist/{chunk-ZH6BB54G.js.map → chunk-XDATW7NF.js.map} +1 -1
  42. package/dist/{chunk-4OKJVYBV.js → chunk-Y5GS4CLT.js} +221 -186
  43. package/dist/chunk-Y5GS4CLT.js.map +1 -0
  44. package/dist/display/accordion/Accordion.d.ts +15 -11
  45. package/dist/display/activityFeed/ActivityFeed.d.ts +2 -2
  46. package/dist/display/annotationMarker/AnnotationMarker.d.ts +6 -7
  47. package/dist/display/audioPlayer/AudioPlayer.d.ts +1 -1
  48. package/dist/display/audioWaveform/AudioWaveform.d.ts +1 -1
  49. package/dist/display/avatar/Avatar.d.ts +1 -1
  50. package/dist/display/badgeOverlay/BadgeOverlay.d.ts +1 -1
  51. package/dist/display/carousel/Carousel.d.ts +1 -1
  52. package/dist/display/chatBubble/ChatBubble.d.ts +2 -2
  53. package/dist/display/collapsible/Collapsible.d.ts +2 -2
  54. package/dist/display/commentThread/CommentThread.d.ts +1 -1
  55. package/dist/display/confetti/Confetti.d.ts +2 -2
  56. package/dist/display/countBadge/CountBadge.d.ts +3 -4
  57. package/dist/display/countUp/CountUp.d.ts +2 -2
  58. package/dist/display/dataGrid/DataGrid.d.ts +2 -2
  59. package/dist/display/dataTable/DataTable.d.ts +5 -5
  60. package/dist/display/diffViewer/DiffViewer.d.ts +1 -1
  61. package/dist/display/eventCalendar/EventCalendar.d.ts +1 -1
  62. package/dist/display/gantt/Gantt.d.ts +1 -1
  63. package/dist/display/gradientText/GradientText.d.ts +2 -2
  64. package/dist/display/heatmapCalendar/HeatmapCalendar.d.ts +1 -1
  65. package/dist/display/highlight/Highlight.d.ts +2 -2
  66. package/dist/display/index.js +6 -6
  67. package/dist/display/list/List.d.ts +2 -2
  68. package/dist/display/marquee/Marquee.d.ts +1 -1
  69. package/dist/display/messageList/MessageList.d.ts +3 -3
  70. package/dist/display/notificationDot/NotificationDot.d.ts +1 -1
  71. package/dist/display/pdfViewer/PDFViewer.d.ts +1 -1
  72. package/dist/display/reactionBar/ReactionBar.d.ts +6 -6
  73. package/dist/display/scrollReveal/ScrollReveal.d.ts +1 -1
  74. package/dist/display/sectionHeader/SectionHeader.d.ts +1 -1
  75. package/dist/display/separator/Separator.d.ts +2 -3
  76. package/dist/display/sparkline/Sparkline.d.ts +1 -1
  77. package/dist/display/status/Status.d.ts +1 -1
  78. package/dist/display/swipeActions/SwipeActions.d.ts +1 -1
  79. package/dist/display/table/Table.d.ts +17 -5
  80. package/dist/display/table/index.d.ts +1 -1
  81. package/dist/display/tabs/Tabs.d.ts +1 -1
  82. package/dist/display/text/Text.variants.d.ts +14 -14
  83. package/dist/display/threadView/ThreadView.d.ts +2 -2
  84. package/dist/display/tilt/Tilt.d.ts +2 -3
  85. package/dist/display/tooltip/Tooltip.d.ts +2 -2
  86. package/dist/display/tree/Tree.d.ts +2 -2
  87. package/dist/display/typewriter/Typewriter.d.ts +2 -2
  88. package/dist/feedback/index.js +6 -6
  89. package/dist/feedback/liveCursor/LiveCursor.d.ts +4 -6
  90. package/dist/feedback/loadingOverlay/LoadingOverlay.d.ts +5 -6
  91. package/dist/feedback/notificationCenter/NotificationCenter.d.ts +1 -1
  92. package/dist/feedback/onboardingChecklist/OnboardingChecklist.d.ts +3 -3
  93. package/dist/feedback/presenceIndicator/PresenceIndicator.d.ts +1 -1
  94. package/dist/feedback/statusIndicator/StatusIndicator.d.ts +1 -1
  95. package/dist/feedback/toaster/Toaster.d.ts +2 -2
  96. package/dist/feedback/tour/Tour.d.ts +2 -2
  97. package/dist/feedback/trendIndicator/TrendIndicator.d.ts +2 -2
  98. package/dist/feedback/typingIndicator/TypingIndicator.d.ts +1 -1
  99. package/dist/feedback/undoBar/UndoBar.d.ts +4 -4
  100. package/dist/forms/addressForm/AddressForm.d.ts +3 -3
  101. package/dist/forms/characterCount/CharacterCount.d.ts +1 -1
  102. package/dist/forms/chatComposer/ChatComposer.d.ts +2 -2
  103. package/dist/forms/checkbox/Checkbox.d.ts +1 -1
  104. package/dist/forms/checkboxGroup/CheckboxGroup.d.ts +1 -1
  105. package/dist/forms/codeEditor/CodeEditor.d.ts +2 -2
  106. package/dist/forms/colorArea/ColorArea.d.ts +1 -1
  107. package/dist/forms/colorField/ColorField.d.ts +1 -1
  108. package/dist/forms/colorPicker/ColorPicker.d.ts +2 -2
  109. package/dist/forms/colorSlider/ColorSlider.d.ts +1 -1
  110. package/dist/forms/colorSwatch/ColorSwatch.variants.d.ts +14 -14
  111. package/dist/forms/colorSwatchPicker/ColorSwatchPicker.d.ts +2 -2
  112. package/dist/forms/colorWheel/ColorWheel.d.ts +1 -1
  113. package/dist/forms/combobox/Combobox.d.ts +4 -4
  114. package/dist/forms/cronInput/CronInput.d.ts +2 -2
  115. package/dist/forms/datePicker/DatePicker.d.ts +1 -1
  116. package/dist/forms/dateRangePicker/DateRangePicker.d.ts +1 -1
  117. package/dist/forms/editable/Editable.d.ts +7 -7
  118. package/dist/forms/emojiPicker/EmojiPicker.d.ts +1 -1
  119. package/dist/forms/fileUpload/FileUpload.d.ts +1 -1
  120. package/dist/forms/fontPicker/FontPicker.d.ts +1 -1
  121. package/dist/forms/gradientPicker/GradientPicker.d.ts +1 -1
  122. package/dist/forms/iconPicker/IconPicker.d.ts +1 -1
  123. package/dist/forms/index.js +11 -11
  124. package/dist/forms/jsonEditor/JSONEditor.d.ts +3 -3
  125. package/dist/forms/knob/Knob.d.ts +2 -2
  126. package/dist/forms/label/Label.d.ts +1 -1
  127. package/dist/forms/listbox/Listbox.d.ts +8 -4
  128. package/dist/forms/markdownEditor/MarkdownEditor.d.ts +1 -1
  129. package/dist/forms/multiSelect/MultiSelect.d.ts +4 -4
  130. package/dist/forms/passwordInput/PasswordInput.d.ts +1 -1
  131. package/dist/forms/passwordStrength/PasswordStrength.d.ts +1 -1
  132. package/dist/forms/phoneInput/PhoneInput.d.ts +3 -3
  133. package/dist/forms/pinInput/PinInput.d.ts +2 -2
  134. package/dist/forms/radioGroup/RadioGroup.d.ts +1 -1
  135. package/dist/forms/reactionPicker/ReactionPicker.d.ts +1 -1
  136. package/dist/forms/recurrenceEditor/RecurrenceEditor.d.ts +2 -2
  137. package/dist/forms/searchInput/SearchInput.d.ts +1 -1
  138. package/dist/forms/select/Select.d.ts +14 -7
  139. package/dist/forms/select/Select.variants.d.ts +46 -3
  140. package/dist/forms/stepper/Stepper.d.ts +1 -1
  141. package/dist/forms/tagsInput/TagsInput.d.ts +2 -2
  142. package/dist/forms/timePicker/TimePicker.d.ts +1 -1
  143. package/dist/forms/wizard/Wizard.d.ts +5 -5
  144. package/dist/hooks/index.d.ts +1 -0
  145. package/dist/hooks/index.js +1 -1
  146. package/dist/hooks/useTypeahead.d.ts +37 -0
  147. package/dist/icons/index.js +1 -1
  148. package/dist/index.js +18 -18
  149. package/dist/layout/appShell/AppShell.d.ts +2 -2
  150. package/dist/layout/divider/Divider.d.ts +19 -0
  151. package/dist/layout/divider/Divider.variants.d.ts +45 -0
  152. package/dist/layout/divider/index.d.ts +2 -0
  153. package/dist/layout/frame/Frame.d.ts +1 -1
  154. package/dist/layout/grid/Grid.d.ts +17 -5
  155. package/dist/layout/grid/Grid.variants.d.ts +15 -0
  156. package/dist/layout/grid/index.d.ts +1 -1
  157. package/dist/layout/index.d.ts +3 -0
  158. package/dist/layout/index.js +9 -9
  159. package/dist/layout/inline/Inline.d.ts +5 -0
  160. package/dist/layout/navbar/Navbar.d.ts +37 -0
  161. package/dist/layout/navbar/Navbar.variants.d.ts +76 -0
  162. package/dist/layout/navbar/index.d.ts +2 -0
  163. package/dist/layout/pullToRefresh/PullToRefresh.d.ts +1 -1
  164. package/dist/layout/resizablePanels/ResizablePanels.d.ts +1 -1
  165. package/dist/layout/section/Section.d.ts +26 -0
  166. package/dist/layout/section/Section.variants.d.ts +62 -0
  167. package/dist/layout/section/index.d.ts +2 -0
  168. package/dist/nav/commandPalette/CommandPalette.d.ts +1 -1
  169. package/dist/nav/contextMenu/ContextMenu.d.ts +1 -1
  170. package/dist/nav/index.js +8 -8
  171. package/dist/nav/menu/Menu.d.ts +1 -1
  172. package/dist/nav/navItem/NavItem.d.ts +2 -3
  173. package/dist/nav/tableOfContents/TableOfContents.d.ts +1 -1
  174. package/dist/overlays/actionSheet/ActionSheet.d.ts +1 -1
  175. package/dist/overlays/backdrop/Backdrop.d.ts +3 -6
  176. package/dist/overlays/dialog/Dialog.d.ts +1 -1
  177. package/dist/overlays/drawer/Drawer.d.ts +1 -1
  178. package/dist/overlays/index.js +8 -8
  179. package/dist/overlays/popover/Popover.d.ts +1 -1
  180. package/dist/primitives/anchoredPositioner/AnchoredPositioner.d.ts +1 -1
  181. package/dist/primitives/dismissableLayer/DismissableLayer.d.ts +2 -2
  182. package/dist/primitives/index.js +1 -1
  183. package/dist/primitives/presence/Presence.d.ts +3 -3
  184. package/dist/primitives/rovingFocusGroup/RovingFocusGroup.d.ts +3 -6
  185. package/dist/primitives/scrollLockProvider/ScrollLockProvider.d.ts +2 -2
  186. package/dist/utils/Environment.d.ts +8 -0
  187. package/dist/utils/SurfaceStyles.d.ts +7 -0
  188. package/dist/utils/Tones.d.ts +1 -1
  189. package/dist/utils/index.d.ts +1 -0
  190. package/dist/utils/index.js +1 -1
  191. package/package.json +1 -1
  192. package/dist/chunk-4OKJVYBV.js.map +0 -1
  193. package/dist/chunk-4QOCAFCA.js.map +0 -1
  194. package/dist/chunk-5PMOT5MD.js.map +0 -1
  195. package/dist/chunk-5Y43MUOK.js.map +0 -1
  196. package/dist/chunk-BI6JZY2O.js.map +0 -1
  197. package/dist/chunk-FEXH7YWU.js.map +0 -1
  198. package/dist/chunk-JOOE4KS5.js.map +0 -1
  199. package/dist/chunk-UI4RT5JF.js.map +0 -1
  200. package/dist/chunk-VR5HH4SX.js.map +0 -1
  201. package/dist/chunk-VYOQYXK6.js.map +0 -1
  202. package/dist/chunk-WOKIYORV.js.map +0 -1
  203. package/dist/chunk-WPTF6ZRR.js.map +0 -1
  204. package/dist/chunk-XDP6GEBA.js.map +0 -1
  205. package/dist/chunk-ZFNGOAHR.js.map +0 -1
@@ -4,8 +4,8 @@ export interface CronInputProps extends Omit<InputHTMLAttributes<HTMLInputElemen
4
4
  value?: string;
5
5
  defaultValue?: string;
6
6
  onValueChange?: (value: string) => void;
7
- invalid?: boolean;
8
- showPreview?: boolean;
7
+ isInvalid?: boolean;
8
+ hasPreview?: boolean;
9
9
  }
10
10
  /**
11
11
  * Cron-string input with human-readable preview. Supports asterisk, N,
@@ -9,7 +9,7 @@ export interface DatePickerProps extends Omit<ButtonHTMLAttributes<HTMLButtonEle
9
9
  min?: Date | null;
10
10
  max?: Date | null;
11
11
  isDisabled?: (date: Date) => boolean;
12
- invalid?: boolean;
12
+ isInvalid?: boolean;
13
13
  /** When `name` is set, a hidden input ships the ISO value with form submission. */
14
14
  name?: string;
15
15
  }
@@ -10,7 +10,7 @@ export interface DateRangePickerProps extends Omit<ButtonHTMLAttributes<HTMLButt
10
10
  min?: Date | null;
11
11
  max?: Date | null;
12
12
  isDisabled?: (date: Date) => boolean;
13
- invalid?: boolean;
13
+ isInvalid?: boolean;
14
14
  /** When `name` is set, two hidden inputs (`{name}_start`, `{name}_end`) ship the ISO values. */
15
15
  name?: string;
16
16
  }
@@ -4,20 +4,20 @@ export interface EditableProps {
4
4
  value?: string;
5
5
  defaultValue?: string;
6
6
  onValueChange?: (value: string) => void;
7
- editing?: boolean;
7
+ isEditing?: boolean;
8
8
  defaultEditing?: boolean;
9
9
  onEditingChange?: (editing: boolean) => void;
10
10
  placeholder?: string;
11
- submitOnBlur?: boolean;
12
- submitOnEnter?: boolean;
13
- cancelOnEscape?: boolean;
14
- disabled?: boolean;
15
- readOnly?: boolean;
11
+ canSubmitOnBlur?: boolean;
12
+ canSubmitOnEnter?: boolean;
13
+ canCancelOnEscape?: boolean;
14
+ isDisabled?: boolean;
15
+ isReadOnly?: boolean;
16
16
  name?: string;
17
17
  className?: string;
18
18
  children: ReactNode;
19
19
  }
20
- export declare function Editable({ value: valueProp, defaultValue, onValueChange, editing: editingProp, defaultEditing, onEditingChange, placeholder, submitOnBlur, submitOnEnter, cancelOnEscape, disabled, readOnly, name, className, children, }: EditableProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function Editable({ value: valueProp, defaultValue, onValueChange, isEditing: editingProp, defaultEditing, onEditingChange, placeholder, canSubmitOnBlur, canSubmitOnEnter, canCancelOnEscape, isDisabled, isReadOnly, name, className, children, }: EditableProps): import("react/jsx-runtime").JSX.Element;
21
21
  export type EditablePreviewProps = HTMLAttributes<HTMLSpanElement>;
22
22
  export declare const EditablePreview: import("react").ForwardRefExoticComponent<EditablePreviewProps & import("react").RefAttributes<HTMLSpanElement>>;
23
23
  export interface EditableInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'size'>, InputBaseVariants {
@@ -16,7 +16,7 @@ export interface EmojiPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, '
16
16
  columns?: number;
17
17
  cellSize?: number;
18
18
  categories?: EmojiCategory[];
19
- disabled?: boolean;
19
+ isDisabled?: boolean;
20
20
  }
21
21
  /**
22
22
  * Emoji picker with category jump strip + search. Built-in ~200 emoji
@@ -10,7 +10,7 @@ export interface FileUploadProps extends Omit<InputHTMLAttributes<HTMLInputEleme
10
10
  /** Cap total accepted files (multiple mode). Excess go to `rejected`. */
11
11
  maxFiles?: number;
12
12
  onFilesChange?: (accepted: File[], rejected: FileRejection[]) => void;
13
- invalid?: boolean;
13
+ isInvalid?: boolean;
14
14
  label?: ReactNode;
15
15
  hint?: ReactNode;
16
16
  children?: ReactNode;
@@ -12,7 +12,7 @@ export interface FontPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'd
12
12
  fonts?: FontOption[];
13
13
  placeholder?: string;
14
14
  previewText?: string;
15
- disabled?: boolean;
15
+ isDisabled?: boolean;
16
16
  name?: string;
17
17
  }
18
18
  /**
@@ -13,7 +13,7 @@ export interface GradientPickerProps extends Omit<HTMLAttributes<HTMLDivElement>
13
13
  value?: Gradient;
14
14
  defaultValue?: Gradient;
15
15
  onValueChange?: (value: Gradient) => void;
16
- disabled?: boolean;
16
+ isDisabled?: boolean;
17
17
  name?: string;
18
18
  }
19
19
  export declare function gradientToCss(g: Gradient): string;
@@ -9,7 +9,7 @@ export interface IconPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'd
9
9
  size?: number;
10
10
  iconButtonSize?: number;
11
11
  placeholder?: string;
12
- disabled?: boolean;
12
+ isDisabled?: boolean;
13
13
  name?: string;
14
14
  }
15
15
  /**
@@ -1,15 +1,15 @@
1
- export { ADDRESS_COUNTRIES, AddressForm, BUILT_IN_EMOJI, BUILT_IN_FONTS, Calendar, CharacterCount, ChatComposer, Checkbox, CheckboxField, CheckboxGroup, ChoiceCard, CodeEditor, ColorArea, ColorField, ColorPicker, ColorSlider, ColorSwatch, ColorSwatchPicker, ColorWheel, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxSeparator, CronInput, CurrencyInput, DateField, DatePicker, DateRangePicker, Editable, EditableCancel, EditableInput, EditablePreview, EditableSubmit, EmailInput, EmojiPicker, Fieldset, FilePicker, FileUpload, FontPicker, FormErrorMessage, FormField, FormHelperText, GradientPicker, IconPicker, InputAddon, InputGroup, JSONEditor, KeyboardShortcutPicker, Knob, Label, LabeledInput, Legend, Listbox, ListboxEmpty, ListboxGroup, ListboxItem, ListboxSeparator, MarkdownEditor, MaskedInput, MultiSelect, MultiSelectContent, MultiSelectItem, MultiSelectTags, MultiSelectTrigger, NumberInput, PHONE_COUNTRIES, PasswordInput, PasswordStrength, PercentInput, PhoneInput, PinInput, Radio, RadioField, RadioGroup, RangeCalendar, ReactionPicker, RecurrenceEditor, SearchInput, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Slider, Stepper, StepperList, StepperPanel, StepperStep, Switch, SwitchField, TagsInput, TelInput, TextInput, Textarea, TimeField, TimePicker, UrlInput, Wizard, WizardFooter, WizardStep, WizardSteps, colorSwatchVariants, gradientToCss, useWizard } from '../chunk-JOOE4KS5.js';
2
- import '../chunk-3GZOE7JF.js';
3
- import '../chunk-4QOCAFCA.js';
4
- import '../chunk-VYOQYXK6.js';
5
- import '../chunk-5Y43MUOK.js';
6
- import '../chunk-4WYHY6KV.js';
7
- import '../chunk-ZH6BB54G.js';
8
- import '../chunk-BI6JZY2O.js';
9
- import '../chunk-5PMOT5MD.js';
1
+ export { ADDRESS_COUNTRIES, AddressForm, BUILT_IN_EMOJI, BUILT_IN_FONTS, Calendar, CharacterCount, ChatComposer, Checkbox, CheckboxField, CheckboxGroup, ChoiceCard, CodeEditor, ColorArea, ColorField, ColorPicker, ColorSlider, ColorSwatch, ColorSwatchPicker, ColorWheel, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxSeparator, CronInput, CurrencyInput, DateField, DatePicker, DateRangePicker, Editable, EditableCancel, EditableInput, EditablePreview, EditableSubmit, EmailInput, EmojiPicker, Fieldset, FilePicker, FileUpload, FontPicker, FormErrorMessage, FormField, FormHelperText, GradientPicker, IconPicker, InputAddon, InputGroup, JSONEditor, KeyboardShortcutPicker, Knob, Label, LabeledInput, Legend, Listbox, ListboxEmpty, ListboxGroup, ListboxItem, ListboxSeparator, MarkdownEditor, MaskedInput, MultiSelect, MultiSelectContent, MultiSelectItem, MultiSelectTags, MultiSelectTrigger, NumberInput, PHONE_COUNTRIES, PasswordInput, PasswordStrength, PercentInput, PhoneInput, PinInput, Radio, RadioField, RadioGroup, RangeCalendar, ReactionPicker, RecurrenceEditor, SearchInput, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Slider, Stepper, StepperList, StepperPanel, StepperStep, Switch, SwitchField, TagsInput, TelInput, TextInput, Textarea, TimeField, TimePicker, UrlInput, Wizard, WizardFooter, WizardStep, WizardSteps, colorSwatchVariants, gradientToCss, useWizard } from '../chunk-HG7NX6GP.js';
2
+ import '../chunk-577JZ2A2.js';
3
+ import '../chunk-MTD4RTGO.js';
4
+ import '../chunk-OBW7JUNL.js';
5
+ import '../chunk-EJCO7AWR.js';
6
+ import '../chunk-FNSC4LAL.js';
7
+ import '../chunk-XDATW7NF.js';
8
+ import '../chunk-DJJOQWOG.js';
9
+ import '../chunk-V267IMBH.js';
10
10
  import '../chunk-MVMDDGW7.js';
11
- import '../chunk-XDP6GEBA.js';
12
- import '../chunk-UI4RT5JF.js';
11
+ import '../chunk-JYGC5SRP.js';
12
+ import '../chunk-TTSJZEL7.js';
13
13
  import '../chunk-LGTGZ3RW.js';
14
14
  import '../chunk-X2MYOHOB.js';
15
15
  import '../chunk-DCHYNTHI.js';
@@ -7,9 +7,9 @@ export interface JSONEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'o
7
7
  mode?: JSONEditorMode;
8
8
  defaultMode?: JSONEditorMode;
9
9
  onModeChange?: (mode: JSONEditorMode) => void;
10
- disabled?: boolean;
11
- readOnly?: boolean;
12
- invalid?: boolean;
10
+ isDisabled?: boolean;
11
+ isReadOnly?: boolean;
12
+ isInvalid?: boolean;
13
13
  indent?: number;
14
14
  minHeight?: string;
15
15
  }
@@ -12,8 +12,8 @@ export interface KnobProps extends Omit<HTMLAttributes<HTMLDivElement>, 'default
12
12
  arcDegrees?: number;
13
13
  tone?: KnobTone;
14
14
  format?: (value: number) => ReactNode;
15
- showValue?: boolean;
16
- disabled?: boolean;
15
+ isValueShown?: boolean;
16
+ isDisabled?: boolean;
17
17
  name?: string;
18
18
  'aria-label'?: string;
19
19
  }
@@ -1,7 +1,7 @@
1
1
  import { type LabelHTMLAttributes } from 'react';
2
2
  export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
3
3
  /** Show a `*` indicator. Auto-derived from `FormControl.isRequired` when present. */
4
- required?: boolean;
4
+ isRequired?: boolean;
5
5
  /** Visual size. Default `md`. */
6
6
  size?: 'xs' | 'sm' | 'md';
7
7
  }
@@ -5,13 +5,13 @@ export type EqualityFn<T> = (a: T, b: T) => boolean;
5
5
  /** Represents the selection-indicator style applied to every item under this listbox. */
6
6
  export type ListboxIndicator = 'check' | 'checkbox' | 'radio' | 'dot' | 'none';
7
7
  type SingleProps<T> = {
8
- multiple?: false;
8
+ isMultiple?: false;
9
9
  value?: T;
10
10
  defaultValue?: T;
11
11
  onValueChange?: (value: T | undefined) => void;
12
12
  };
13
13
  type MultiProps<T> = {
14
- multiple: true;
14
+ isMultiple: true;
15
15
  value?: T[];
16
16
  defaultValue?: T[];
17
17
  onValueChange?: (value: T[]) => void;
@@ -19,11 +19,15 @@ type MultiProps<T> = {
19
19
  /** Represents the props shared between single-select and multi-select modes. */
20
20
  type CommonProps<T> = SurfaceVariants & {
21
21
  /** Disables all items when true. */
22
- disabled?: boolean;
22
+ isDisabled?: boolean;
23
23
  /** Compares item values for equality; defaults to `Object.is`. */
24
24
  isEqual?: EqualityFn<T>;
25
25
  /** Sets the selection-indicator style; default `check` (single) or `checkbox` (multi). */
26
26
  indicator?: ListboxIndicator;
27
+ /** Fires after commit whenever the active (`aria-activedescendant`) option id changes —
28
+ * including the initial auto-active on mount. Lets a hosting combobox mirror the id without
29
+ * scraping the rendered DOM attribute. */
30
+ onActiveChange?: (id: string | null) => void;
27
31
  className?: string;
28
32
  children: ReactNode;
29
33
  };
@@ -33,7 +37,7 @@ export interface ListboxItemProps extends Omit<HTMLAttributes<HTMLDivElement>, '
33
37
  /** Holds the item value; compared via the parent listbox's `isEqual`. */
34
38
  value: unknown;
35
39
  /** Disables this item when true. */
36
- disabled?: boolean;
40
+ isDisabled?: boolean;
37
41
  /** Overrides the listbox-level indicator for this single item. */
38
42
  indicator?: ListboxIndicator;
39
43
  children: ReactNode;
@@ -8,7 +8,7 @@ export interface MarkdownEditorProps extends Omit<TextareaHTMLAttributes<HTMLTex
8
8
  defaultView?: MarkdownEditorView;
9
9
  onViewChange?: (view: MarkdownEditorView) => void;
10
10
  renderPreview?: (markdown: string) => ReactNode;
11
- invalid?: boolean;
11
+ isInvalid?: boolean;
12
12
  minHeight?: string;
13
13
  }
14
14
  /**
@@ -7,16 +7,16 @@ export interface MultiSelectProps {
7
7
  value?: string[];
8
8
  defaultValue?: string[];
9
9
  onValueChange?: (value: string[]) => void;
10
- disabled?: boolean;
10
+ isDisabled?: boolean;
11
11
  name?: string;
12
- invalid?: boolean;
12
+ isInvalid?: boolean;
13
13
  defaultOpen?: boolean;
14
14
  open?: boolean;
15
15
  onOpenChange?: (open: boolean) => void;
16
16
  placement?: React.ComponentProps<typeof Popover>['placement'];
17
17
  children: ReactNode;
18
18
  }
19
- export declare function MultiSelect({ value, defaultValue, onValueChange, disabled, name, invalid, defaultOpen, open: openProp, onOpenChange, placement, children, }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function MultiSelect({ value, defaultValue, onValueChange, isDisabled, name, isInvalid, defaultOpen, open: openProp, onOpenChange, placement, children, }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
20
20
  export interface MultiSelectTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, SelectTriggerVariants {
21
21
  children?: ReactNode;
22
22
  }
@@ -33,7 +33,7 @@ export interface MultiSelectContentProps extends SurfaceVariants {
33
33
  export declare function MultiSelectContent({ className, variant, tone, radius, padding, elevation, children, }: MultiSelectContentProps): import("react/jsx-runtime").JSX.Element;
34
34
  export interface MultiSelectItemProps {
35
35
  value: string;
36
- disabled?: boolean;
36
+ isDisabled?: boolean;
37
37
  className?: string;
38
38
  children: ReactNode;
39
39
  }
@@ -2,7 +2,7 @@ import { type InputHTMLAttributes } from 'react';
2
2
  import { type InputBaseVariants } from '../InputStyles';
3
3
  export interface PasswordInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>, InputBaseVariants {
4
4
  /** Whether to render the visibility-toggle button. Default true. */
5
- toggleable?: boolean;
5
+ hasToggle?: boolean;
6
6
  }
7
7
  /**
8
8
  * Password input with optional visibility toggle. Toggle is a raw `<button>`
@@ -5,7 +5,7 @@ export interface PasswordStrengthProps extends Omit<ComponentPropsWithoutRef<'di
5
5
  /** Override the score (0–4). When set, internal scoring is bypassed. */
6
6
  score?: 0 | 1 | 2 | 3 | 4;
7
7
  /** Hide the textual label under the bar. */
8
- hideLabel?: boolean;
8
+ isLabelHidden?: boolean;
9
9
  }
10
10
  /**
11
11
  * Strength meter for password fields. Naive rule-based scoring 0–4. Pass
@@ -11,9 +11,9 @@ export interface PhoneInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'd
11
11
  defaultValue?: string;
12
12
  onValueChange?: (e164: string) => void;
13
13
  defaultCountry?: string;
14
- disabled?: boolean;
15
- readOnly?: boolean;
16
- invalid?: boolean;
14
+ isDisabled?: boolean;
15
+ isReadOnly?: boolean;
16
+ isInvalid?: boolean;
17
17
  placeholder?: string;
18
18
  name?: string;
19
19
  }
@@ -15,8 +15,8 @@ export interface PinInputProps extends Omit<ComponentPropsWithoutRef<'div'>, 'ch
15
15
  /** Cell visual size. Default `md`. */
16
16
  size?: 'sm' | 'md' | 'lg';
17
17
  /** Render each cell as `*` (good for verification codes). */
18
- mask?: boolean;
19
- disabled?: boolean;
18
+ isMasked?: boolean;
19
+ isDisabled?: boolean;
20
20
  }
21
21
  /**
22
22
  * One-time-code / PIN input — N single-character cells with auto-advance,
@@ -6,7 +6,7 @@ interface RadioGroupProps extends Omit<HTMLAttributes<HTMLFieldSetElement>, 'onC
6
6
  value?: string | null;
7
7
  defaultValue?: string | null;
8
8
  onValueChange?: (next: string | null) => void;
9
- disabled?: boolean;
9
+ isDisabled?: boolean;
10
10
  orientation?: 'horizontal' | 'vertical';
11
11
  children: ReactNode;
12
12
  }
@@ -9,7 +9,7 @@ export interface ReactionPickerProps extends Omit<HTMLAttributes<HTMLDivElement>
9
9
  /** Fires when the trailing "more" button is clicked (open full picker). */
10
10
  onMore?: () => void;
11
11
  /** Hide the trailing "more" button. */
12
- hideMore?: boolean;
12
+ isMoreHidden?: boolean;
13
13
  /** Compact button size. */
14
14
  size?: 'sm' | 'md';
15
15
  }
@@ -15,8 +15,8 @@ export interface RecurrenceEditorProps extends Omit<HTMLAttributes<HTMLDivElemen
15
15
  onValueChange?: (rule: RecurrenceRule) => void;
16
16
  from?: Date;
17
17
  previewCount?: number;
18
- disabled?: boolean;
19
- readOnly?: boolean;
18
+ isDisabled?: boolean;
19
+ isReadOnly?: boolean;
20
20
  /** When set, emits a hidden input with the serialized `RRULE:` string. */
21
21
  name?: string;
22
22
  }
@@ -2,7 +2,7 @@ import { type InputHTMLAttributes } from 'react';
2
2
  import { type InputBaseVariants } from '../InputStyles';
3
3
  export interface SearchInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'>, InputBaseVariants {
4
4
  /** Show a clear (×) button when the input has a value. Default true. */
5
- clearable?: boolean;
5
+ isClearable?: boolean;
6
6
  onClear?: () => void;
7
7
  }
8
8
  /**
@@ -8,7 +8,7 @@ export interface SelectOption<K, V = K> {
8
8
  itemKey: K;
9
9
  value: V;
10
10
  label: ReactNode;
11
- disabled?: boolean;
11
+ isDisabled?: boolean;
12
12
  }
13
13
  /** Represents the prop surface of the `Select` root. */
14
14
  export interface SelectProps<K, V = K> {
@@ -21,17 +21,24 @@ export interface SelectProps<K, V = K> {
21
21
  /** Compares keys for equality; defaults to `Equality.strictEquals`. */
22
22
  keyEquals?: EqualityComparer<K>;
23
23
  /** Disables interaction when true. */
24
- disabled?: boolean;
24
+ isDisabled?: boolean;
25
25
  /** Shows a spinner in the trigger and blocks interaction. */
26
26
  isLoading?: boolean;
27
+ /** Labels the loading state for the polite live region + in-list row; defaults to `'Loading options…'`. */
28
+ loadingLabel?: string;
27
29
  /** Renders a clear (×) button in the trigger when a value is set. */
28
- clearable?: boolean;
30
+ isClearable?: boolean;
31
+ /** Labels the clear (×) button for assistive tech; defaults to `'Clear selection'`. */
32
+ clearLabel?: string;
29
33
  /** Names the hidden form input that ships the serialized key. */
30
34
  name?: string;
31
35
  /** Serializes the key for the hidden form input; defaults to `String(key)`. */
32
36
  serializeKey?: (key: K) => string;
37
+ /** Resolves a human label for a `value`/`defaultValue` before items register
38
+ * (the trigger otherwise shows the raw serialized key until the first open). */
39
+ getOptionLabel?: (key: K) => ReactNode;
33
40
  /** Styles the trigger as invalid (red border, error ring). */
34
- invalid?: boolean;
41
+ isInvalid?: boolean;
35
42
  /** Opens the dropdown initially when uncontrolled. */
36
43
  defaultOpen?: boolean;
37
44
  /** Controls the dropdown open state. */
@@ -69,7 +76,7 @@ export declare function SelectValue({ placeholder, children }: SelectValueProps)
69
76
  export interface SelectContentProps extends SurfaceVariants {
70
77
  className?: string;
71
78
  /** Renders a search input above the items and filters by label substring. */
72
- searchable?: boolean;
79
+ isSearchable?: boolean;
73
80
  /** Sets the placeholder of the search input. */
74
81
  searchPlaceholder?: string;
75
82
  /** Renders this label when the search yields no matches. */
@@ -79,7 +86,7 @@ export interface SelectContentProps extends SurfaceVariants {
79
86
  children: ReactNode;
80
87
  }
81
88
  /** Provides the floating panel that hosts the items below the trigger. */
82
- export declare function SelectContent({ className, searchable, searchPlaceholder, noResultsLabel, matchWidth, variant, tone, radius, padding, elevation, children, }: SelectContentProps): import("react/jsx-runtime").JSX.Element;
89
+ export declare function SelectContent({ className, isSearchable, searchPlaceholder, noResultsLabel, matchWidth, variant, tone, radius, padding, elevation, children, }: SelectContentProps): import("react/jsx-runtime").JSX.Element;
83
90
  /** Represents the prop surface of the `Select.Item`. */
84
91
  export interface SelectItemProps<K = unknown, V = K> {
85
92
  /** Identifies the item; drives equality, ARIA, and search. */
@@ -93,7 +100,7 @@ export interface SelectItemProps<K = unknown, V = K> {
93
100
  /** Overrides the searchable text; defaults to the text content of `label`. */
94
101
  text?: string;
95
102
  /** Disables this item when true. */
96
- disabled?: boolean;
103
+ isDisabled?: boolean;
97
104
  className?: string;
98
105
  }
99
106
  export declare const SelectItem: <K, V = K>(props: SelectItemProps<K, V> & {
@@ -1,4 +1,11 @@
1
1
  import { type VariantProps } from '../../utils';
2
+ /**
3
+ * Extends the shared `inputBaseVariants` so the trigger's height, border,
4
+ * focus-ring, disabled, and per-size paddings stay in lockstep with `TextInput`.
5
+ * Only trigger-specific extras are added here:
6
+ * - `justify-between` + `gap-2` to push the chevron/clear cluster to the end,
7
+ * - `data-[state=open]:border-border-strong` to mirror the hover border while open.
8
+ */
2
9
  export declare const selectTriggerVariants: import("tailwind-variants").TVReturnType<{
3
10
  size: {
4
11
  xs: string;
@@ -6,11 +13,47 @@ export declare const selectTriggerVariants: import("tailwind-variants").TVReturn
6
13
  md: string;
7
14
  lg: string;
8
15
  };
16
+ }, undefined, "items-center justify-between gap-2 data-[state=open]:border-border-strong", import("tailwind-variants/dist/config.js").TVConfig<{
17
+ size: {
18
+ xs: string;
19
+ sm: string;
20
+ md: string;
21
+ lg: string;
22
+ };
23
+ }, {
24
+ size: {
25
+ xs: string;
26
+ sm: string;
27
+ md: string;
28
+ lg: string;
29
+ };
30
+ state: {
31
+ default: string;
32
+ invalid: string;
33
+ };
34
+ }>, {
35
+ size: {
36
+ xs: string;
37
+ sm: string;
38
+ md: string;
39
+ lg: string;
40
+ };
41
+ state: {
42
+ default: string;
43
+ invalid: string;
44
+ };
45
+ }, undefined, import("tailwind-variants").TVReturnType<{
46
+ size: {
47
+ xs: string;
48
+ sm: string;
49
+ md: string;
50
+ lg: string;
51
+ };
9
52
  state: {
10
53
  default: string;
11
54
  invalid: string;
12
55
  };
13
- }, undefined, "flex w-full items-center justify-between gap-2 rounded-md border bg-popover text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 data-[state=open]:border-border-strong", import("tailwind-variants/dist/config.js").TVConfig<{
56
+ }, undefined, "flex w-full rounded-md border bg-popover text-foreground placeholder:text-subtle-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 read-only:bg-muted", import("tailwind-variants/dist/config.js").TVConfig<{
14
57
  size: {
15
58
  xs: string;
16
59
  sm: string;
@@ -54,7 +97,7 @@ export declare const selectTriggerVariants: import("tailwind-variants").TVReturn
54
97
  default: string;
55
98
  invalid: string;
56
99
  };
57
- }, undefined, "flex w-full items-center justify-between gap-2 rounded-md border bg-popover text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 data-[state=open]:border-border-strong", import("tailwind-variants/dist/config.js").TVConfig<{
100
+ }, undefined, "flex w-full rounded-md border bg-popover text-foreground placeholder:text-subtle-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 read-only:bg-muted", import("tailwind-variants/dist/config.js").TVConfig<{
58
101
  size: {
59
102
  xs: string;
60
103
  sm: string;
@@ -76,5 +119,5 @@ export declare const selectTriggerVariants: import("tailwind-variants").TVReturn
76
119
  default: string;
77
120
  invalid: string;
78
121
  };
79
- }>, unknown, unknown, undefined>>;
122
+ }>, unknown, unknown, undefined>>>;
80
123
  export type SelectTriggerVariants = VariantProps<typeof selectTriggerVariants>;
@@ -13,7 +13,7 @@ export declare const StepperList: import("react").ForwardRefExoticComponent<Step
13
13
  export interface StepperStepProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
14
14
  value: string;
15
15
  description?: ReactNode;
16
- disabled?: boolean;
16
+ isDisabled?: boolean;
17
17
  children: ReactNode;
18
18
  }
19
19
  export declare const StepperStep: import("react").ForwardRefExoticComponent<StepperStepProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -11,9 +11,9 @@ export interface TagsInputProps extends Omit<InputHTMLAttributes<HTMLInputElemen
11
11
  delimiters?: string[];
12
12
  /** Predicate gating committed tags. Default: non-empty after trim. */
13
13
  validate?: (tag: string) => boolean;
14
- allowDuplicates?: boolean;
14
+ allowsDuplicates?: boolean;
15
15
  max?: number;
16
- invalid?: boolean;
16
+ isInvalid?: boolean;
17
17
  /** Hidden input emits comma-joined value. */
18
18
  name?: string;
19
19
  tagVariant?: TagVariants['variant'];
@@ -9,7 +9,7 @@ export interface TimePickerProps extends Omit<ButtonHTMLAttributes<HTMLButtonEle
9
9
  minuteStep?: number;
10
10
  placeholder?: string;
11
11
  format?: (time: TimeValue) => string;
12
- invalid?: boolean;
12
+ isInvalid?: boolean;
13
13
  name?: string;
14
14
  }
15
15
  export declare const TimePicker: import("react").ForwardRefExoticComponent<TimePickerProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -2,8 +2,8 @@ import { type HTMLAttributes, type ReactNode } from 'react';
2
2
  interface StepInfo {
3
3
  id: string;
4
4
  label?: ReactNode;
5
- optional?: boolean;
6
- final?: boolean;
5
+ isOptional?: boolean;
6
+ isFinal?: boolean;
7
7
  }
8
8
  interface WizardContextValue {
9
9
  steps: StepInfo[];
@@ -36,8 +36,8 @@ export interface WizardStepProps extends HTMLAttributes<HTMLDivElement> {
36
36
  id: string;
37
37
  label?: ReactNode;
38
38
  validate?: () => boolean | Promise<boolean>;
39
- optional?: boolean;
40
- final?: boolean;
39
+ isOptional?: boolean;
40
+ isFinal?: boolean;
41
41
  }
42
42
  export declare const WizardStep: import("react").ForwardRefExoticComponent<WizardStepProps & import("react").RefAttributes<HTMLDivElement>>;
43
43
  export interface WizardFooterProps extends HTMLAttributes<HTMLDivElement> {
@@ -45,7 +45,7 @@ export interface WizardFooterProps extends HTMLAttributes<HTMLDivElement> {
45
45
  nextLabel?: ReactNode;
46
46
  submitLabel?: ReactNode;
47
47
  /** Render the Prev button when not on first step. Default true. */
48
- showPrev?: boolean;
48
+ hasPrev?: boolean;
49
49
  }
50
50
  export declare const WizardFooter: import("react").ForwardRefExoticComponent<WizardFooterProps & import("react").RefAttributes<HTMLDivElement>>;
51
51
  type WizardComponent = typeof Wizard & {
@@ -11,3 +11,4 @@ export { useMediaQuery } from './useMediaQuery';
11
11
  export { useReducedMotion } from './useReducedMotion';
12
12
  export { useClipboard, type UseClipboardOptions, type ClipboardControls } from './useClipboard';
13
13
  export { useDebounceHandler } from './useDebounceHandler';
14
+ export { useTypeahead, type UseTypeaheadOptions, type UseTypeaheadReturn, } from './useTypeahead';
@@ -1,4 +1,4 @@
1
- export { useClipboard, useControlled, useDebounceHandler, useDisclosure, useEscape, useEventListener, useFocusTrap, useMediaQuery, useOutsideClick, useReducedMotion, useResizeObserver } from '../chunk-5PMOT5MD.js';
1
+ export { useClipboard, useControlled, useDebounceHandler, useDisclosure, useEscape, useEventListener, useFocusTrap, useMediaQuery, useOutsideClick, useReducedMotion, useResizeObserver, useTypeahead } from '../chunk-V267IMBH.js';
2
2
  export { useId, useScrollLock } from '../chunk-LGTGZ3RW.js';
3
3
  import '../chunk-DCHYNTHI.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,37 @@
1
+ import type { KeyboardEvent } from 'react';
2
+ /** Resolves the typeahead item pool — a static array or a getter read lazily on each keystroke. */
3
+ type ItemSource<T> = readonly T[] | (() => readonly T[]);
4
+ /** Configures {@link useTypeahead}. `T` is the item type the caller stores per option. */
5
+ export interface UseTypeaheadOptions<T> {
6
+ /** Supplies the items to match against; a function is re-read on every keystroke (live lists). */
7
+ items: ItemSource<T>;
8
+ /** Extracts the comparable label from an item. Matching is case-insensitive on this string. */
9
+ getLabel: (item: T) => string;
10
+ /** Reports whether an item is disabled; disabled items are skipped during matching. */
11
+ isDisabled?: (item: T) => boolean;
12
+ /** Fires with the matched item and its index in the (live) item array when a keystroke resolves. */
13
+ onMatch: (item: T, index: number) => void;
14
+ /** Returns the index of the currently-active item — same-letter cycling starts after it. */
15
+ getActiveIndex?: () => number;
16
+ /** Disables the matcher when `false`; every key falls through unhandled. Defaults to `true`. */
17
+ enabled?: boolean;
18
+ /** Idle time (ms) after which the typed buffer resets. Defaults to `500`. */
19
+ timeout?: number;
20
+ }
21
+ /** The keyboard handler + manual reset returned by {@link useTypeahead}. */
22
+ export interface UseTypeaheadReturn {
23
+ /** Feeds a keydown into the matcher. Returns `true` when consumed (caller should stop), else `false`. */
24
+ onKeyDown: (event: KeyboardEvent) => boolean;
25
+ /** Clears the typed buffer immediately (e.g. on blur / close). */
26
+ reset: () => void;
27
+ }
28
+ /**
29
+ * APG-correct type-to-select matcher (WAI-ARIA listbox/combobox typeahead). Accumulates printable
30
+ * chars into a buffer (resets after `timeout` ms idle): a repeated single char cycles to the next
31
+ * label starting with it (after `getActiveIndex()`, wrap-around), else prefix-matches the whole
32
+ * buffer case-insensitively; disabled items skipped. On a hit `onMatch(item, index)` fires; consumed
33
+ * keys return `true`, others `false` to fall through. Space is typeable only while buffering (a
34
+ * leading Space reaches the caller). SSR-safe; reset timer cleared on unmount.
35
+ */
36
+ export declare function useTypeahead<T>(options: UseTypeaheadOptions<T>): UseTypeaheadReturn;
37
+ export {};
@@ -1,5 +1,5 @@
1
1
  export { Icon, Spinner } from '../chunk-MVMDDGW7.js';
2
- import '../chunk-XDP6GEBA.js';
2
+ import '../chunk-JYGC5SRP.js';
3
3
  import '../chunk-X2MYOHOB.js';
4
4
  import '../chunk-DCHYNTHI.js';
5
5
  //# sourceMappingURL=index.js.map