@limonify/zest-ui 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/lib/alert-dialog/index.parts.d.ts +1 -1
- package/lib/alert-dialog/index.parts.d.ts.map +1 -1
- package/lib/alert-dialog/index.parts.js.map +1 -1
- package/lib/autocomplete/handle.d.ts +15 -0
- package/lib/autocomplete/handle.d.ts.map +1 -0
- package/lib/autocomplete/handle.js +12 -0
- package/lib/autocomplete/handle.js.map +1 -0
- package/lib/autocomplete/index.d.ts +1 -0
- package/lib/autocomplete/index.d.ts.map +1 -1
- package/lib/autocomplete/index.parts.d.ts +1 -0
- package/lib/autocomplete/index.parts.d.ts.map +1 -1
- package/lib/autocomplete/index.parts.js +3 -1
- package/lib/autocomplete/index.parts.js.map +1 -1
- package/lib/autocomplete/root/AutocompleteRoot.d.ts +55 -16
- package/lib/autocomplete/root/AutocompleteRoot.d.ts.map +1 -1
- package/lib/autocomplete/root/AutocompleteRoot.js +2 -18
- package/lib/autocomplete/root/AutocompleteRoot.js.map +1 -1
- package/lib/avatar/fallback/AvatarFallback.d.ts.map +1 -1
- package/lib/avatar/fallback/AvatarFallback.js +3 -1
- package/lib/avatar/fallback/AvatarFallback.js.map +1 -1
- package/lib/avatar/image/AvatarImage.d.ts.map +1 -1
- package/lib/avatar/image/AvatarImage.js +5 -0
- package/lib/avatar/image/AvatarImage.js.map +1 -1
- package/lib/checkbox/root/CheckboxRoot.d.ts.map +1 -1
- package/lib/checkbox/root/CheckboxRoot.js +9 -4
- package/lib/checkbox/root/CheckboxRoot.js.map +1 -1
- package/lib/combobox/backdrop/ComboboxBackdrop.d.ts.map +1 -1
- package/lib/combobox/backdrop/ComboboxBackdrop.js +10 -4
- package/lib/combobox/backdrop/ComboboxBackdrop.js.map +1 -1
- package/lib/combobox/empty/ComboboxEmpty.d.ts.map +1 -1
- package/lib/combobox/empty/ComboboxEmpty.js +4 -1
- package/lib/combobox/empty/ComboboxEmpty.js.map +1 -1
- package/lib/combobox/index.d.ts +2 -0
- package/lib/combobox/index.d.ts.map +1 -1
- package/lib/combobox/index.js +3 -1
- package/lib/combobox/index.js.map +1 -1
- package/lib/combobox/index.parts.d.ts +1 -0
- package/lib/combobox/index.parts.d.ts.map +1 -1
- package/lib/combobox/index.parts.js +4 -1
- package/lib/combobox/index.parts.js.map +1 -1
- package/lib/combobox/input/ComboboxInput.d.ts +24 -3
- package/lib/combobox/input/ComboboxInput.d.ts.map +1 -1
- package/lib/combobox/input/ComboboxInput.js +65 -11
- package/lib/combobox/input/ComboboxInput.js.map +1 -1
- package/lib/combobox/item/ComboboxItem.d.ts +11 -1
- package/lib/combobox/item/ComboboxItem.d.ts.map +1 -1
- package/lib/combobox/item/ComboboxItem.js +9 -6
- package/lib/combobox/item/ComboboxItem.js.map +1 -1
- package/lib/combobox/list/ComboboxList.d.ts +1 -1
- package/lib/combobox/list/ComboboxList.d.ts.map +1 -1
- package/lib/combobox/list/ComboboxList.js +4 -1
- package/lib/combobox/list/ComboboxList.js.map +1 -1
- package/lib/combobox/popup/ComboboxPopup.d.ts +26 -0
- package/lib/combobox/popup/ComboboxPopup.d.ts.map +1 -1
- package/lib/combobox/popup/ComboboxPopup.js +18 -2
- package/lib/combobox/popup/ComboboxPopup.js.map +1 -1
- package/lib/combobox/portal/ComboboxPortal.d.ts.map +1 -1
- package/lib/combobox/portal/ComboboxPortal.js +8 -4
- package/lib/combobox/portal/ComboboxPortal.js.map +1 -1
- package/lib/combobox/portal/ComboboxPortalContext.d.ts +4 -0
- package/lib/combobox/portal/ComboboxPortalContext.d.ts.map +1 -0
- package/lib/combobox/portal/ComboboxPortalContext.js +48 -0
- package/lib/combobox/portal/ComboboxPortalContext.js.map +1 -0
- package/lib/combobox/positioner/ComboboxPositioner.d.ts +7 -2
- package/lib/combobox/positioner/ComboboxPositioner.d.ts.map +1 -1
- package/lib/combobox/positioner/ComboboxPositioner.js +61 -6
- package/lib/combobox/positioner/ComboboxPositioner.js.map +1 -1
- package/lib/combobox/positioner/ComboboxPositionerContext.d.ts +9 -0
- package/lib/combobox/positioner/ComboboxPositionerContext.d.ts.map +1 -0
- package/lib/combobox/positioner/ComboboxPositionerContext.js +48 -0
- package/lib/combobox/positioner/ComboboxPositionerContext.js.map +1 -0
- package/lib/combobox/root/ComboboxItemsContext.d.ts +18 -0
- package/lib/combobox/root/ComboboxItemsContext.d.ts.map +1 -0
- package/lib/combobox/root/ComboboxItemsContext.js +55 -0
- package/lib/combobox/root/ComboboxItemsContext.js.map +1 -0
- package/lib/combobox/root/ComboboxRoot.d.ts +77 -21
- package/lib/combobox/root/ComboboxRoot.d.ts.map +1 -1
- package/lib/combobox/root/ComboboxRoot.js +4 -23
- package/lib/combobox/root/ComboboxRoot.js.map +1 -1
- package/lib/combobox/root/ComboboxRootContext.d.ts +4 -54
- package/lib/combobox/root/ComboboxRootContext.d.ts.map +1 -1
- package/lib/combobox/root/ComboboxRootContext.js.map +1 -1
- package/lib/combobox/root/ComboboxTransitionContext.d.ts +8 -0
- package/lib/combobox/root/ComboboxTransitionContext.d.ts.map +1 -0
- package/lib/combobox/root/ComboboxTransitionContext.js +44 -0
- package/lib/combobox/root/ComboboxTransitionContext.js.map +1 -0
- package/lib/combobox/root/useRenderComboboxRoot.d.ts +39 -0
- package/lib/combobox/root/useRenderComboboxRoot.d.ts.map +1 -0
- package/lib/combobox/root/useRenderComboboxRoot.js +136 -0
- package/lib/combobox/root/useRenderComboboxRoot.js.map +1 -0
- package/lib/combobox/store/ComboboxHandle.d.ts +42 -0
- package/lib/combobox/store/ComboboxHandle.d.ts.map +1 -0
- package/lib/combobox/store/ComboboxHandle.js +65 -0
- package/lib/combobox/store/ComboboxHandle.js.map +1 -0
- package/lib/combobox/store/ComboboxStore.d.ts +147 -0
- package/lib/combobox/store/ComboboxStore.d.ts.map +1 -0
- package/lib/combobox/store/ComboboxStore.js +127 -0
- package/lib/combobox/store/ComboboxStore.js.map +1 -0
- package/lib/combobox/value/ComboboxValue.d.ts.map +1 -1
- package/lib/combobox/value/ComboboxValue.js +2 -1
- package/lib/combobox/value/ComboboxValue.js.map +1 -1
- package/lib/context-menu/positioner/ContextMenuPositioner.d.ts +19 -3
- package/lib/context-menu/positioner/ContextMenuPositioner.d.ts.map +1 -1
- package/lib/context-menu/positioner/ContextMenuPositioner.js +56 -7
- package/lib/context-menu/positioner/ContextMenuPositioner.js.map +1 -1
- package/lib/context-menu/root/ContextMenuRoot.d.ts +8 -0
- package/lib/context-menu/root/ContextMenuRoot.d.ts.map +1 -1
- package/lib/dialog/backdrop/DialogBackdrop.d.ts +9 -0
- package/lib/dialog/backdrop/DialogBackdrop.d.ts.map +1 -1
- package/lib/dialog/backdrop/DialogBackdrop.js +3 -1
- package/lib/dialog/backdrop/DialogBackdrop.js.map +1 -1
- package/lib/dialog/popup/DialogPopup.d.ts +9 -0
- package/lib/dialog/popup/DialogPopup.d.ts.map +1 -1
- package/lib/dialog/popup/DialogPopup.js +2 -2
- package/lib/dialog/popup/DialogPopup.js.map +1 -1
- package/lib/dialog/popup/useDialogPopupProps.d.ts +2 -0
- package/lib/dialog/popup/useDialogPopupProps.d.ts.map +1 -1
- package/lib/dialog/popup/useDialogPopupProps.js +4 -0
- package/lib/dialog/popup/useDialogPopupProps.js.map +1 -1
- package/lib/dialog/root/DialogNestingContext.d.ts +20 -0
- package/lib/dialog/root/DialogNestingContext.d.ts.map +1 -0
- package/lib/dialog/root/DialogNestingContext.js +53 -0
- package/lib/dialog/root/DialogNestingContext.js.map +1 -0
- package/lib/dialog/root/useRenderDialogRoot.d.ts.map +1 -1
- package/lib/dialog/root/useRenderDialogRoot.js +26 -2
- package/lib/dialog/root/useRenderDialogRoot.js.map +1 -1
- package/lib/dialog/store/DialogStore.d.ts +19 -2
- package/lib/dialog/store/DialogStore.d.ts.map +1 -1
- package/lib/dialog/store/DialogStore.js +14 -2
- package/lib/dialog/store/DialogStore.js.map +1 -1
- package/lib/drawer/index.parts.d.ts +1 -1
- package/lib/drawer/index.parts.d.ts.map +1 -1
- package/lib/drawer/index.parts.js.map +1 -1
- package/lib/drawer/popup/DrawerPopup.d.ts +9 -0
- package/lib/drawer/popup/DrawerPopup.d.ts.map +1 -1
- package/lib/drawer/popup/DrawerPopup.js +3 -1
- package/lib/drawer/popup/DrawerPopup.js.map +1 -1
- package/lib/filter/index.d.ts +2 -0
- package/lib/filter/index.d.ts.map +1 -0
- package/lib/filter/index.js +6 -0
- package/lib/filter/index.js.map +1 -0
- package/lib/filter/useFilter.d.ts +45 -0
- package/lib/filter/useFilter.d.ts.map +1 -0
- package/lib/filter/useFilter.js +96 -0
- package/lib/filter/useFilter.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/internals/field/useFieldControlRegistration.d.ts +25 -6
- package/lib/internals/field/useFieldControlRegistration.d.ts.map +1 -1
- package/lib/internals/field/useFieldControlRegistration.js +93 -6
- package/lib/internals/field/useFieldControlRegistration.js.map +1 -1
- package/lib/menu/popup/MenuPopup.d.ts +10 -0
- package/lib/menu/popup/MenuPopup.d.ts.map +1 -1
- package/lib/menu/popup/MenuPopup.js +10 -1
- package/lib/menu/popup/MenuPopup.js.map +1 -1
- package/lib/menu/positioner/MenuPositioner.d.ts +10 -0
- package/lib/menu/positioner/MenuPositioner.d.ts.map +1 -1
- package/lib/menu/positioner/MenuPositioner.js +9 -1
- package/lib/menu/positioner/MenuPositioner.js.map +1 -1
- package/lib/menu/store/MenuStore.d.ts +11 -0
- package/lib/menu/store/MenuStore.d.ts.map +1 -1
- package/lib/menu/store/MenuStore.js +4 -0
- package/lib/menu/store/MenuStore.js.map +1 -1
- package/lib/menu/submenu-trigger/MenuSubmenuTrigger.d.ts.map +1 -1
- package/lib/menu/submenu-trigger/MenuSubmenuTrigger.js +3 -0
- package/lib/menu/submenu-trigger/MenuSubmenuTrigger.js.map +1 -1
- package/lib/menu/trigger/MenuTrigger.d.ts.map +1 -1
- package/lib/menu/trigger/MenuTrigger.js +4 -1
- package/lib/menu/trigger/MenuTrigger.js.map +1 -1
- package/lib/meter/indicator/MeterIndicator.d.ts +2 -1
- package/lib/meter/indicator/MeterIndicator.d.ts.map +1 -1
- package/lib/meter/indicator/MeterIndicator.js +1 -2
- package/lib/meter/indicator/MeterIndicator.js.map +1 -1
- package/lib/meter/label/MeterLabel.d.ts +2 -1
- package/lib/meter/label/MeterLabel.d.ts.map +1 -1
- package/lib/meter/label/MeterLabel.js +1 -2
- package/lib/meter/label/MeterLabel.js.map +1 -1
- package/lib/meter/root/MeterRoot.d.ts +21 -0
- package/lib/meter/root/MeterRoot.d.ts.map +1 -1
- package/lib/meter/root/MeterRoot.js +2 -2
- package/lib/meter/root/MeterRoot.js.map +1 -1
- package/lib/meter/root/MeterRootContext.d.ts +5 -0
- package/lib/meter/root/MeterRootContext.d.ts.map +1 -1
- package/lib/meter/root/MeterRootContext.js.map +1 -1
- package/lib/meter/track/MeterTrack.d.ts +2 -1
- package/lib/meter/track/MeterTrack.d.ts.map +1 -1
- package/lib/meter/track/MeterTrack.js +1 -2
- package/lib/meter/track/MeterTrack.js.map +1 -1
- package/lib/meter/value/MeterValue.d.ts +2 -1
- package/lib/meter/value/MeterValue.d.ts.map +1 -1
- package/lib/meter/value/MeterValue.js +1 -2
- package/lib/meter/value/MeterValue.js.map +1 -1
- package/lib/number-field/input/NumberFieldInput.d.ts.map +1 -1
- package/lib/number-field/input/NumberFieldInput.js +11 -2
- package/lib/number-field/input/NumberFieldInput.js.map +1 -1
- package/lib/number-field/root/NumberFieldRoot.d.ts.map +1 -1
- package/lib/number-field/root/NumberFieldRoot.js +5 -2
- package/lib/number-field/root/NumberFieldRoot.js.map +1 -1
- package/lib/otp-field/input/OTPFieldInput.d.ts.map +1 -1
- package/lib/otp-field/input/OTPFieldInput.js +4 -0
- package/lib/otp-field/input/OTPFieldInput.js.map +1 -1
- package/lib/otp-field/root/OTPFieldRoot.d.ts.map +1 -1
- package/lib/otp-field/root/OTPFieldRoot.js +20 -2
- package/lib/otp-field/root/OTPFieldRoot.js.map +1 -1
- package/lib/popover/popup/PopoverPopup.d.ts +10 -0
- package/lib/popover/popup/PopoverPopup.d.ts.map +1 -1
- package/lib/popover/popup/PopoverPopup.js +10 -1
- package/lib/popover/popup/PopoverPopup.js.map +1 -1
- package/lib/popover/positioner/PopoverPositioner.d.ts +10 -0
- package/lib/popover/positioner/PopoverPositioner.d.ts.map +1 -1
- package/lib/popover/positioner/PopoverPositioner.js +4 -0
- package/lib/popover/positioner/PopoverPositioner.js.map +1 -1
- package/lib/popover/store/PopoverStore.d.ts +11 -0
- package/lib/popover/store/PopoverStore.d.ts.map +1 -1
- package/lib/popover/store/PopoverStore.js +4 -0
- package/lib/popover/store/PopoverStore.js.map +1 -1
- package/lib/popover/trigger/PopoverTrigger.d.ts.map +1 -1
- package/lib/popover/trigger/PopoverTrigger.js +4 -1
- package/lib/popover/trigger/PopoverTrigger.js.map +1 -1
- package/lib/progress/root/ProgressRoot.d.ts +21 -0
- package/lib/progress/root/ProgressRoot.d.ts.map +1 -1
- package/lib/progress/root/ProgressRoot.js +1 -1
- package/lib/progress/root/ProgressRoot.js.map +1 -1
- package/lib/radio-group/RadioGroup.d.ts.map +1 -1
- package/lib/radio-group/RadioGroup.js +5 -2
- package/lib/radio-group/RadioGroup.js.map +1 -1
- package/lib/select/backdrop/SelectBackdrop.d.ts.map +1 -1
- package/lib/select/backdrop/SelectBackdrop.js +3 -0
- package/lib/select/backdrop/SelectBackdrop.js.map +1 -1
- package/lib/select/index.parts.d.ts +1 -0
- package/lib/select/index.parts.d.ts.map +1 -1
- package/lib/select/index.parts.js +4 -1
- package/lib/select/index.parts.js.map +1 -1
- package/lib/select/popup/SelectPopup.d.ts +8 -0
- package/lib/select/popup/SelectPopup.d.ts.map +1 -1
- package/lib/select/popup/SelectPopup.js +10 -1
- package/lib/select/popup/SelectPopup.js.map +1 -1
- package/lib/select/positioner/SelectPositioner.d.ts +4 -0
- package/lib/select/positioner/SelectPositioner.d.ts.map +1 -1
- package/lib/select/positioner/SelectPositioner.js +2 -0
- package/lib/select/positioner/SelectPositioner.js.map +1 -1
- package/lib/select/root/SelectRoot.d.ts +45 -4
- package/lib/select/root/SelectRoot.d.ts.map +1 -1
- package/lib/select/root/SelectRoot.js +43 -5
- package/lib/select/root/SelectRoot.js.map +1 -1
- package/lib/select/store/SelectHandle.d.ts +42 -0
- package/lib/select/store/SelectHandle.d.ts.map +1 -0
- package/lib/select/store/SelectHandle.js +69 -0
- package/lib/select/store/SelectHandle.js.map +1 -0
- package/lib/select/store/SelectStore.d.ts +28 -0
- package/lib/select/store/SelectStore.d.ts.map +1 -1
- package/lib/select/store/SelectStore.js +15 -1
- package/lib/select/store/SelectStore.js.map +1 -1
- package/lib/select/trigger/SelectTrigger.d.ts +18 -3
- package/lib/select/trigger/SelectTrigger.d.ts.map +1 -1
- package/lib/select/trigger/SelectTrigger.js +49 -4
- package/lib/select/trigger/SelectTrigger.js.map +1 -1
- package/lib/slider/root/SliderRoot.d.ts.map +1 -1
- package/lib/slider/root/SliderRoot.js +9 -1
- package/lib/slider/root/SliderRoot.js.map +1 -1
- package/lib/slider/thumb/SliderThumb.d.ts.map +1 -1
- package/lib/slider/thumb/SliderThumb.js +10 -2
- package/lib/slider/thumb/SliderThumb.js.map +1 -1
- package/lib/switch/root/SwitchRoot.d.ts.map +1 -1
- package/lib/switch/root/SwitchRoot.js +6 -2
- package/lib/switch/root/SwitchRoot.js.map +1 -1
- package/lib/tabs/tab/TabsTab.d.ts +2 -10
- package/lib/tabs/tab/TabsTab.d.ts.map +1 -1
- package/lib/tooltip/popup/TooltipPopup.d.ts +10 -0
- package/lib/tooltip/popup/TooltipPopup.d.ts.map +1 -1
- package/lib/tooltip/popup/TooltipPopup.js +10 -1
- package/lib/tooltip/popup/TooltipPopup.js.map +1 -1
- package/lib/tooltip/positioner/TooltipPositioner.d.ts +10 -0
- package/lib/tooltip/positioner/TooltipPositioner.d.ts.map +1 -1
- package/lib/tooltip/positioner/TooltipPositioner.js +4 -0
- package/lib/tooltip/positioner/TooltipPositioner.js.map +1 -1
- package/lib/tooltip/store/TooltipStore.d.ts +11 -0
- package/lib/tooltip/store/TooltipStore.d.ts.map +1 -1
- package/lib/tooltip/store/TooltipStore.js +11 -1
- package/lib/tooltip/store/TooltipStore.js.map +1 -1
- package/lib/tooltip/trigger/TooltipTrigger.d.ts.map +1 -1
- package/lib/tooltip/trigger/TooltipTrigger.js +4 -1
- package/lib/tooltip/trigger/TooltipTrigger.js.map +1 -1
- package/package.json +1 -1
- package/src/alert-dialog/index.parts.ts +1 -1
- package/src/autocomplete/handle.ts +18 -0
- package/src/autocomplete/index.parts.ts +1 -0
- package/src/autocomplete/index.ts +1 -0
- package/src/autocomplete/root/AutocompleteRoot.tsx +65 -50
- package/src/avatar/fallback/AvatarFallback.tsx +3 -1
- package/src/avatar/image/AvatarImage.tsx +5 -0
- package/src/checkbox/root/CheckboxRoot.tsx +7 -2
- package/src/combobox/backdrop/ComboboxBackdrop.tsx +10 -3
- package/src/combobox/empty/ComboboxEmpty.tsx +5 -1
- package/src/combobox/index.parts.ts +1 -0
- package/src/combobox/index.ts +2 -0
- package/src/combobox/input/ComboboxInput.tsx +112 -27
- package/src/combobox/item/ComboboxItem.tsx +24 -6
- package/src/combobox/list/ComboboxList.tsx +7 -2
- package/src/combobox/popup/ComboboxPopup.tsx +44 -2
- package/src/combobox/portal/ComboboxPortal.tsx +19 -13
- package/src/combobox/portal/ComboboxPortalContext.ts +15 -0
- package/src/combobox/positioner/ComboboxPositioner.tsx +45 -10
- package/src/combobox/positioner/ComboboxPositionerContext.ts +23 -0
- package/src/combobox/root/ComboboxItemsContext.ts +32 -0
- package/src/combobox/root/ComboboxRoot.tsx +94 -56
- package/src/combobox/root/ComboboxRootContext.ts +3 -54
- package/src/combobox/root/ComboboxTransitionContext.ts +15 -0
- package/src/combobox/root/useRenderComboboxRoot.tsx +189 -0
- package/src/combobox/store/ComboboxHandle.ts +64 -0
- package/src/combobox/store/ComboboxStore.ts +249 -0
- package/src/combobox/value/ComboboxValue.tsx +2 -1
- package/src/context-menu/positioner/ContextMenuPositioner.tsx +90 -10
- package/src/context-menu/root/ContextMenuRoot.tsx +8 -0
- package/src/dialog/backdrop/DialogBackdrop.tsx +12 -1
- package/src/dialog/popup/DialogPopup.tsx +11 -2
- package/src/dialog/popup/useDialogPopupProps.ts +4 -0
- package/src/dialog/root/DialogNestingContext.ts +27 -0
- package/src/dialog/root/useRenderDialogRoot.tsx +37 -2
- package/src/dialog/store/DialogStore.ts +24 -2
- package/src/drawer/index.parts.ts +1 -1
- package/src/drawer/popup/DrawerPopup.tsx +12 -1
- package/src/filter/index.ts +5 -0
- package/src/filter/useFilter.ts +95 -0
- package/src/index.ts +1 -0
- package/src/internals/field/useFieldControlRegistration.ts +86 -6
- package/src/menu/popup/MenuPopup.tsx +20 -1
- package/src/menu/positioner/MenuPositioner.tsx +19 -1
- package/src/menu/store/MenuStore.ts +13 -0
- package/src/menu/submenu-trigger/MenuSubmenuTrigger.tsx +3 -0
- package/src/menu/trigger/MenuTrigger.tsx +5 -2
- package/src/meter/indicator/MeterIndicator.tsx +3 -4
- package/src/meter/label/MeterLabel.tsx +3 -4
- package/src/meter/root/MeterRoot.tsx +29 -4
- package/src/meter/root/MeterRootContext.ts +5 -0
- package/src/meter/track/MeterTrack.tsx +3 -4
- package/src/meter/value/MeterValue.tsx +3 -4
- package/src/number-field/input/NumberFieldInput.tsx +11 -2
- package/src/number-field/root/NumberFieldRoot.tsx +4 -2
- package/src/otp-field/input/OTPFieldInput.tsx +4 -0
- package/src/otp-field/root/OTPFieldRoot.tsx +22 -2
- package/src/popover/popup/PopoverPopup.tsx +20 -1
- package/src/popover/positioner/PopoverPositioner.tsx +14 -0
- package/src/popover/store/PopoverStore.ts +13 -0
- package/src/popover/trigger/PopoverTrigger.tsx +5 -2
- package/src/progress/root/ProgressRoot.tsx +25 -1
- package/src/radio-group/RadioGroup.tsx +5 -2
- package/src/select/backdrop/SelectBackdrop.tsx +4 -0
- package/src/select/index.parts.ts +1 -0
- package/src/select/popup/SelectPopup.tsx +18 -1
- package/src/select/positioner/SelectPositioner.tsx +9 -3
- package/src/select/root/SelectRoot.tsx +109 -9
- package/src/select/store/SelectHandle.ts +68 -0
- package/src/select/store/SelectStore.ts +38 -1
- package/src/select/trigger/SelectTrigger.tsx +78 -7
- package/src/slider/root/SliderRoot.tsx +11 -1
- package/src/slider/thumb/SliderThumb.tsx +10 -1
- package/src/switch/root/SwitchRoot.tsx +5 -2
- package/src/tabs/tab/TabsTab.tsx +2 -10
- package/src/tooltip/popup/TooltipPopup.tsx +20 -1
- package/src/tooltip/positioner/TooltipPositioner.tsx +14 -0
- package/src/tooltip/store/TooltipStore.ts +20 -1
- package/src/tooltip/trigger/TooltipTrigger.tsx +5 -2
- package/lib/combobox/root/useComboboxRoot.d.ts +0 -29
- package/lib/combobox/root/useComboboxRoot.d.ts.map +0 -1
- package/lib/combobox/root/useComboboxRoot.js +0 -176
- package/lib/combobox/root/useComboboxRoot.js.map +0 -1
- package/lib/utils/fastObjectShallowCompare.d.ts +0 -2
- package/lib/utils/fastObjectShallowCompare.d.ts.map +0 -1
- package/lib/utils/fastObjectShallowCompare.js +0 -29
- package/lib/utils/fastObjectShallowCompare.js.map +0 -1
- package/lib/utils/mergeObjects.d.ts +0 -2
- package/lib/utils/mergeObjects.d.ts.map +0 -1
- package/lib/utils/mergeObjects.js +0 -16
- package/lib/utils/mergeObjects.js.map +0 -1
- package/src/combobox/root/useComboboxRoot.ts +0 -199
- package/src/utils/fastObjectShallowCompare.ts +0 -30
- package/src/utils/mergeObjects.ts +0 -15
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
3
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
37
|
exports.ComboboxPositioner = ComboboxPositioner;
|
|
38
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
const React = __importStar(require("react"));
|
|
5
40
|
const react_native_1 = require("react-native");
|
|
6
41
|
const ComboboxRootContext_1 = require("../root/ComboboxRootContext");
|
|
42
|
+
const ComboboxPortalContext_1 = require("../portal/ComboboxPortalContext");
|
|
43
|
+
const ComboboxPositionerContext_1 = require("./ComboboxPositionerContext");
|
|
7
44
|
const useRenderElement_1 = require("../../use-render/useRenderElement");
|
|
8
45
|
const useIsoLayoutEffect_1 = require("../../hooks/useIsoLayoutEffect");
|
|
9
46
|
const useMergedRefs_1 = require("../../hooks/useMergedRefs");
|
|
@@ -14,7 +51,12 @@ const useAnchorPositioning_1 = require("../../utils/useAnchorPositioning");
|
|
|
14
51
|
*/
|
|
15
52
|
function ComboboxPositioner(componentProps) {
|
|
16
53
|
const { align = 'start', alignOffset = 0, arrowPadding = 5, className, collisionPadding = 5, render, side = 'bottom', sideOffset = 4, sticky = false, style, ref, ...elementProps } = componentProps;
|
|
17
|
-
|
|
54
|
+
(0, ComboboxPortalContext_1.useComboboxPortalContext)();
|
|
55
|
+
const store = (0, ComboboxRootContext_1.useComboboxRootContext)();
|
|
56
|
+
const open = store.useState('open');
|
|
57
|
+
const triggerNode = store.useState('triggerNode');
|
|
58
|
+
const triggerWidth = store.useState('triggerWidth');
|
|
59
|
+
const triggerHeight = store.useState('triggerHeight');
|
|
18
60
|
const positioning = (0, useAnchorPositioning_1.useAnchorPositioning)({
|
|
19
61
|
align,
|
|
20
62
|
alignOffset,
|
|
@@ -29,20 +71,33 @@ function ComboboxPositioner(componentProps) {
|
|
|
29
71
|
refs.setReference(triggerNode !== null && triggerNode !== void 0 ? triggerNode : null);
|
|
30
72
|
}, [refs, triggerNode]);
|
|
31
73
|
(0, useIsoLayoutEffect_1.useIsoLayoutEffect)(() => {
|
|
32
|
-
|
|
33
|
-
return () =>
|
|
34
|
-
|
|
74
|
+
store.set('update', update);
|
|
75
|
+
return () => {
|
|
76
|
+
store.set('update', undefined);
|
|
77
|
+
};
|
|
78
|
+
}, [store, update]);
|
|
35
79
|
const mergedRef = (0, useMergedRefs_1.useMergedRefs)(ref, refs.setFloating);
|
|
36
80
|
const state = {
|
|
37
81
|
open,
|
|
38
82
|
side: positioning.side,
|
|
39
83
|
align: positioning.align,
|
|
40
84
|
triggerWidth,
|
|
85
|
+
triggerHeight,
|
|
41
86
|
};
|
|
42
|
-
|
|
87
|
+
const contextValue = React.useMemo(() => ({ side: positioning.side, align: positioning.align }), [positioning.side, positioning.align]);
|
|
88
|
+
const element = (0, useRenderElement_1.useRenderElement)(react_native_1.View, componentProps, {
|
|
43
89
|
state,
|
|
44
90
|
ref: mergedRef,
|
|
45
|
-
props: [
|
|
91
|
+
props: [
|
|
92
|
+
{
|
|
93
|
+
style: positionerStyles,
|
|
94
|
+
onLayout() {
|
|
95
|
+
update();
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
elementProps,
|
|
99
|
+
],
|
|
46
100
|
});
|
|
101
|
+
return ((0, jsx_runtime_1.jsx)(ComboboxPositionerContext_1.ComboboxPositionerContext.Provider, { value: contextValue, children: element }));
|
|
47
102
|
}
|
|
48
103
|
//# sourceMappingURL=ComboboxPositioner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxPositioner.js","sourceRoot":"","sources":["../../../src/combobox/positioner/ComboboxPositioner.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"ComboboxPositioner.js","sourceRoot":"","sources":["../../../src/combobox/positioner/ComboboxPositioner.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Align, Side } from '../../utils/useAnchorPositioning';
|
|
3
|
+
export interface ComboboxPositionerContext {
|
|
4
|
+
side: Side;
|
|
5
|
+
align: Align;
|
|
6
|
+
}
|
|
7
|
+
export declare const ComboboxPositionerContext: React.Context<ComboboxPositionerContext | undefined>;
|
|
8
|
+
export declare function useComboboxPositionerContext(): ComboboxPositionerContext;
|
|
9
|
+
//# sourceMappingURL=ComboboxPositionerContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboboxPositionerContext.d.ts","sourceRoot":"","sources":["../../../src/combobox/positioner/ComboboxPositionerContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;CACd;AAED,eAAO,MAAM,yBAAyB,sDAE1B,CAAC;AAEb,wBAAgB,4BAA4B,8BAS3C"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ComboboxPositionerContext = void 0;
|
|
38
|
+
exports.useComboboxPositionerContext = useComboboxPositionerContext;
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
exports.ComboboxPositionerContext = React.createContext(undefined);
|
|
41
|
+
function useComboboxPositionerContext() {
|
|
42
|
+
const context = React.useContext(exports.ComboboxPositionerContext);
|
|
43
|
+
if (context === undefined) {
|
|
44
|
+
throw new Error('Zest: ComboboxPositionerContext is missing. <Combobox.Popup> must be placed within <Combobox.Positioner>.');
|
|
45
|
+
}
|
|
46
|
+
return context;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=ComboboxPositionerContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboboxPositionerContext.js","sourceRoot":"","sources":["../../../src/combobox/positioner/ComboboxPositionerContext.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAab,oEASC;AArBD,6CAA+B;AAQlB,QAAA,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAE1D,SAAS,CAAC,CAAC;AAEb,SAAgB,4BAA4B;IAC1C,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,iCAAyB,CAAC,CAAC;IAC5D,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,2GAA2G,CAC5G,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ComboboxItem } from '../store/ComboboxStore';
|
|
3
|
+
export interface ComboboxItemsContext {
|
|
4
|
+
/**
|
|
5
|
+
* The items left after filtering by the current query.
|
|
6
|
+
*/
|
|
7
|
+
filteredItems: ComboboxItem[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The filtered view of the items.
|
|
11
|
+
*
|
|
12
|
+
* This is derived from the store rather than stored in it: a synced store value
|
|
13
|
+
* only lands in a layout effect, which would leave the list one commit behind
|
|
14
|
+
* the text the user just typed.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ComboboxItemsContext: React.Context<ComboboxItemsContext | undefined>;
|
|
17
|
+
export declare function useComboboxItemsContext(): ComboboxItemsContext;
|
|
18
|
+
//# sourceMappingURL=ComboboxItemsContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboboxItemsContext.d.ts","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxItemsContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iDAEhC,CAAC;AAEF,wBAAgB,uBAAuB,yBAStC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ComboboxItemsContext = void 0;
|
|
38
|
+
exports.useComboboxItemsContext = useComboboxItemsContext;
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
/**
|
|
41
|
+
* The filtered view of the items.
|
|
42
|
+
*
|
|
43
|
+
* This is derived from the store rather than stored in it: a synced store value
|
|
44
|
+
* only lands in a layout effect, which would leave the list one commit behind
|
|
45
|
+
* the text the user just typed.
|
|
46
|
+
*/
|
|
47
|
+
exports.ComboboxItemsContext = React.createContext(undefined);
|
|
48
|
+
function useComboboxItemsContext() {
|
|
49
|
+
const context = React.useContext(exports.ComboboxItemsContext);
|
|
50
|
+
if (context === undefined) {
|
|
51
|
+
throw new Error('Zest: ComboboxItemsContext is missing. Combobox parts must be placed within <Combobox.Root> or <Autocomplete.Root>.');
|
|
52
|
+
}
|
|
53
|
+
return context;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=ComboboxItemsContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboboxItemsContext.js","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxItemsContext.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBb,0DASC;AA9BD,6CAA+B;AAU/B;;;;;;GAMG;AACU,QAAA,oBAAoB,GAAG,KAAK,CAAC,aAAa,CACrD,SAAS,CACV,CAAC;AAEF,SAAgB,uBAAuB;IACrC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;IACvD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,qHAAqH,CACtH,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ZestChangeEventDetails } from '../../utils/createChangeEventDetails';
|
|
3
|
+
import type { REASONS } from '../../utils/reasons';
|
|
4
|
+
import type { ComboboxHandle } from '../store/ComboboxHandle';
|
|
5
|
+
import type { ComboboxItem, ComboboxItems } from '../store/ComboboxStore';
|
|
5
6
|
/**
|
|
6
7
|
* Groups all parts of the combobox: a text input that filters a list of items,
|
|
7
8
|
* one of which is selected.
|
|
@@ -10,13 +11,24 @@ import { type ComboboxItems } from './useComboboxRoot';
|
|
|
10
11
|
* **Adapted from upstream.** Base UI's Combobox is a large component built on a
|
|
11
12
|
* shared collection/filter core with chips, groups, rows and virtualization.
|
|
12
13
|
* This is a focused React Native port: an input, a filtered list, and single
|
|
13
|
-
* selection. Filtering is a
|
|
14
|
-
* `filter` to change it.
|
|
14
|
+
* selection. Filtering is a locale-aware label match by default (see
|
|
15
|
+
* `useFilter`); pass `filter` to change it.
|
|
15
16
|
*/
|
|
16
|
-
export declare function ComboboxRoot(props: ComboboxRoot.Props): React.JSX.Element;
|
|
17
|
+
export declare function ComboboxRoot<Payload = unknown>(props: ComboboxRoot.Props<Payload>): React.JSX.Element;
|
|
17
18
|
export interface ComboboxRootState {
|
|
18
19
|
}
|
|
19
|
-
export interface
|
|
20
|
+
export interface ComboboxRootActions {
|
|
21
|
+
/**
|
|
22
|
+
* Unmounts the list without firing `onOpenChange`. Call it after an
|
|
23
|
+
* externally controlled closing animation finishes.
|
|
24
|
+
*/
|
|
25
|
+
unmount: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Closes the list, reporting the `imperative-action` reason.
|
|
28
|
+
*/
|
|
29
|
+
close: () => void;
|
|
30
|
+
}
|
|
31
|
+
export interface ComboboxRootProps<Payload = unknown> {
|
|
20
32
|
/**
|
|
21
33
|
* The items to filter and choose from. Strings, or `{ value, label }` records
|
|
22
34
|
* for non-string values.
|
|
@@ -24,16 +36,20 @@ export interface ComboboxRootProps {
|
|
|
24
36
|
items?: ComboboxItems | undefined;
|
|
25
37
|
/**
|
|
26
38
|
* The selected value.
|
|
39
|
+
*
|
|
40
|
+
* To render an uncontrolled combobox, use the `defaultValue` prop instead.
|
|
27
41
|
*/
|
|
28
42
|
value?: unknown;
|
|
29
43
|
/**
|
|
30
|
-
* The initially selected value
|
|
44
|
+
* The initially selected value.
|
|
45
|
+
*
|
|
46
|
+
* To render a controlled combobox, use the `value` prop instead.
|
|
31
47
|
*/
|
|
32
48
|
defaultValue?: unknown;
|
|
33
49
|
/**
|
|
34
|
-
*
|
|
50
|
+
* Event handler called when the selection changes.
|
|
35
51
|
*/
|
|
36
|
-
onValueChange?: ((value:
|
|
52
|
+
onValueChange?: ((value: any, eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
|
|
37
53
|
/**
|
|
38
54
|
* The controlled input text.
|
|
39
55
|
*/
|
|
@@ -43,39 +59,79 @@ export interface ComboboxRootProps {
|
|
|
43
59
|
*/
|
|
44
60
|
defaultInputValue?: string | undefined;
|
|
45
61
|
/**
|
|
46
|
-
*
|
|
62
|
+
* Event handler called as the input text changes.
|
|
47
63
|
*/
|
|
48
|
-
onInputValueChange?: ((value: string) => void) | undefined;
|
|
64
|
+
onInputValueChange?: ((value: string, eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
|
|
49
65
|
/**
|
|
50
|
-
* Whether the list is open.
|
|
66
|
+
* Whether the list is currently open.
|
|
51
67
|
*/
|
|
52
68
|
open?: boolean | undefined;
|
|
53
69
|
/**
|
|
54
|
-
* Whether the list is initially open
|
|
70
|
+
* Whether the list is initially open.
|
|
71
|
+
*
|
|
72
|
+
* To render a controlled combobox, use the `open` prop instead.
|
|
73
|
+
* @default false
|
|
55
74
|
*/
|
|
56
75
|
defaultOpen?: boolean | undefined;
|
|
57
76
|
/**
|
|
58
|
-
*
|
|
77
|
+
* Event handler called when the list is opened or closed.
|
|
59
78
|
*/
|
|
60
|
-
onOpenChange?: ((open: boolean,
|
|
79
|
+
onOpenChange?: ((open: boolean, eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
|
|
61
80
|
/**
|
|
62
81
|
* Whether focusing the input opens the list.
|
|
63
82
|
* @default true
|
|
64
83
|
*/
|
|
65
84
|
openOnFocus?: boolean | undefined;
|
|
66
85
|
/**
|
|
67
|
-
* A custom filter predicate. Defaults to a
|
|
86
|
+
* A custom filter predicate. Defaults to a locale-aware label match, so
|
|
87
|
+
* "resume" finds "Résumé" — see `useFilter` to build your own.
|
|
68
88
|
*/
|
|
69
89
|
filter?: ((item: ComboboxItem, query: string) => boolean) | undefined;
|
|
70
90
|
/**
|
|
71
|
-
* Whether the
|
|
91
|
+
* Whether the component should ignore user interaction.
|
|
72
92
|
* @default false
|
|
73
93
|
*/
|
|
74
94
|
disabled?: boolean | undefined;
|
|
75
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Whether to prevent the list from closing on presses outside the popup.
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
disablePointerDismissal?: boolean | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* A ref to imperative actions.
|
|
102
|
+
*/
|
|
103
|
+
actionsRef?: React.RefObject<ComboboxRoot.Actions | null> | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* A handle associating this combobox with an input rendered outside it, and
|
|
106
|
+
* letting it be opened and closed imperatively. Create one with
|
|
107
|
+
* `Combobox.createHandle()`.
|
|
108
|
+
*/
|
|
109
|
+
handle?: ComboboxHandle | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* The id of the input the list is anchored to. Useful together with the `open`
|
|
112
|
+
* prop, to control which input a controlled list belongs to.
|
|
113
|
+
*/
|
|
114
|
+
triggerId?: string | null | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* The id of the input the list is initially anchored to. Useful together with
|
|
117
|
+
* `defaultOpen`.
|
|
118
|
+
*/
|
|
119
|
+
defaultTriggerId?: string | null | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* The content of the combobox.
|
|
122
|
+
*
|
|
123
|
+
* Pass a function to receive the payload the list was opened with, via a
|
|
124
|
+
* detached input's `payload` prop.
|
|
125
|
+
*/
|
|
126
|
+
children?: React.ReactNode | ((payload: Payload) => React.ReactNode);
|
|
76
127
|
}
|
|
128
|
+
export type ComboboxRootChangeEventReason = typeof REASONS.inputPress | typeof REASONS.inputChange | typeof REASONS.triggerFocus | typeof REASONS.itemPress | typeof REASONS.outsidePress | typeof REASONS.escapeKey | typeof REASONS.imperativeAction | typeof REASONS.none;
|
|
129
|
+
export type ComboboxRootChangeEventDetails = ZestChangeEventDetails<ComboboxRootChangeEventReason>;
|
|
77
130
|
export declare namespace ComboboxRoot {
|
|
78
131
|
type State = ComboboxRootState;
|
|
79
|
-
type Props = ComboboxRootProps
|
|
132
|
+
type Props<Payload = unknown> = ComboboxRootProps<Payload>;
|
|
133
|
+
type Actions = ComboboxRootActions;
|
|
134
|
+
type ChangeEventReason = ComboboxRootChangeEventReason;
|
|
135
|
+
type ChangeEventDetails = ComboboxRootChangeEventDetails;
|
|
80
136
|
}
|
|
81
137
|
//# sourceMappingURL=ComboboxRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxRoot.d.ts","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ComboboxRoot.d.ts","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG1E;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,GAAG,OAAO,EAAE,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,qBAEjF;AAED,MAAM,WAAW,iBAAiB;CAAG;AAErC,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB,CAAC,OAAO,GAAG,OAAO;IAClD;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,YAAY,CAAC,kBAAkB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAClG;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,kBAAkB,CAAC,EACf,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,kBAAkB,KAAK,IAAI,CAAC,GACxE,SAAS,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EACT,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,CAAC,kBAAkB,KAAK,IAAI,CAAC,GACxE,SAAS,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;IACtE;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9C;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IACtE;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;CACtE;AAED,MAAM,MAAM,6BAA6B,GACrC,OAAO,OAAO,CAAC,UAAU,GACzB,OAAO,OAAO,CAAC,WAAW,GAC1B,OAAO,OAAO,CAAC,YAAY,GAC3B,OAAO,OAAO,CAAC,SAAS,GACxB,OAAO,OAAO,CAAC,YAAY,GAC3B,OAAO,OAAO,CAAC,SAAS,GACxB,OAAO,OAAO,CAAC,gBAAgB,GAC/B,OAAO,OAAO,CAAC,IAAI,CAAC;AAExB,MAAM,MAAM,8BAA8B,GAAG,sBAAsB,CAAC,6BAA6B,CAAC,CAAC;AAEnG,yBAAiB,YAAY,CAAC;IAC5B,KAAY,KAAK,GAAG,iBAAiB,CAAC;IACtC,KAAY,KAAK,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAClE,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,iBAAiB,GAAG,6BAA6B,CAAC;IAC9D,KAAY,kBAAkB,GAAG,8BAA8B,CAAC;CACjE"}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ComboboxRoot = ComboboxRoot;
|
|
5
|
-
const
|
|
6
|
-
const ComboboxRootContext_1 = require("./ComboboxRootContext");
|
|
7
|
-
const useComboboxRoot_1 = require("./useComboboxRoot");
|
|
5
|
+
const useRenderComboboxRoot_1 = require("./useRenderComboboxRoot");
|
|
8
6
|
/**
|
|
9
7
|
* Groups all parts of the combobox: a text input that filters a list of items,
|
|
10
8
|
* one of which is selected.
|
|
@@ -13,27 +11,10 @@ const useComboboxRoot_1 = require("./useComboboxRoot");
|
|
|
13
11
|
* **Adapted from upstream.** Base UI's Combobox is a large component built on a
|
|
14
12
|
* shared collection/filter core with chips, groups, rows and virtualization.
|
|
15
13
|
* This is a focused React Native port: an input, a filtered list, and single
|
|
16
|
-
* selection. Filtering is a
|
|
17
|
-
* `filter` to change it.
|
|
14
|
+
* selection. Filtering is a locale-aware label match by default (see
|
|
15
|
+
* `useFilter`); pass `filter` to change it.
|
|
18
16
|
*/
|
|
19
17
|
function ComboboxRoot(props) {
|
|
20
|
-
|
|
21
|
-
const contextValue = (0, useComboboxRoot_1.useComboboxRoot)({
|
|
22
|
-
mode: 'combobox',
|
|
23
|
-
items,
|
|
24
|
-
value,
|
|
25
|
-
defaultValue,
|
|
26
|
-
onValueChange,
|
|
27
|
-
inputValue,
|
|
28
|
-
defaultInputValue,
|
|
29
|
-
onInputValueChange,
|
|
30
|
-
open,
|
|
31
|
-
defaultOpen,
|
|
32
|
-
onOpenChange,
|
|
33
|
-
openOnFocus,
|
|
34
|
-
filter,
|
|
35
|
-
disabled,
|
|
36
|
-
});
|
|
37
|
-
return (0, jsx_runtime_1.jsx)(ComboboxRootContext_1.ComboboxRootContext.Provider, { value: contextValue, children: children });
|
|
18
|
+
return (0, useRenderComboboxRoot_1.useRenderComboboxRoot)(props, 'combobox');
|
|
38
19
|
}
|
|
39
20
|
//# sourceMappingURL=ComboboxRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxRoot.js","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxRoot.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"ComboboxRoot.js","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxRoot.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;AAmBb,oCAEC;AAfD,mEAAgE;AAEhE;;;;;;;;;;GAUG;AACH,SAAgB,YAAY,CAAoB,KAAkC;IAChF,OAAO,IAAA,6CAAqB,EAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1,56 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
label: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ComboboxRootContext {
|
|
9
|
-
/**
|
|
10
|
-
* `'combobox'` selects a value and shows its label; `'autocomplete'` is free
|
|
11
|
-
* text with suggestions, where the typed string is the value.
|
|
12
|
-
*/
|
|
13
|
-
mode: 'combobox' | 'autocomplete';
|
|
14
|
-
open: boolean;
|
|
15
|
-
setOpen: (open: boolean, event?: ZestNativeEvent) => void;
|
|
16
|
-
inputValue: string;
|
|
17
|
-
setInputValue: (value: string) => void;
|
|
18
|
-
/**
|
|
19
|
-
* The selected value (combobox mode only). `null` when nothing is selected.
|
|
20
|
-
*/
|
|
21
|
-
selectedValue: unknown;
|
|
22
|
-
/**
|
|
23
|
-
* Selects an item: records the value, fills the input with its label, and
|
|
24
|
-
* closes the popup.
|
|
25
|
-
*/
|
|
26
|
-
selectItem: (item: ComboboxItem, event?: ZestNativeEvent) => void;
|
|
27
|
-
/**
|
|
28
|
-
* The items after filtering by the current input value.
|
|
29
|
-
*/
|
|
30
|
-
filteredItems: ComboboxItem[];
|
|
31
|
-
disabled: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Whether focusing the input opens the list.
|
|
34
|
-
*/
|
|
35
|
-
openOnFocus: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* The anchor's native node, carried across the portal boundary.
|
|
38
|
-
*/
|
|
39
|
-
triggerNode: unknown;
|
|
40
|
-
setTriggerNode: (node: unknown) => void;
|
|
41
|
-
update: (() => void) | undefined;
|
|
42
|
-
setUpdate: (fn: (() => void) | undefined) => void;
|
|
43
|
-
/**
|
|
44
|
-
* Ref to the input element for programmatic blur.
|
|
45
|
-
*/
|
|
46
|
-
inputRef: React.RefObject<TextInput | null> | undefined;
|
|
47
|
-
setInputRef: (ref: React.RefObject<TextInput | null>) => void;
|
|
48
|
-
/**
|
|
49
|
-
* The trigger's measured width, used to size the popup.
|
|
50
|
-
*/
|
|
51
|
-
triggerWidth: number | undefined;
|
|
52
|
-
setTriggerWidth: (width: number) => void;
|
|
53
|
-
}
|
|
54
|
-
export declare const ComboboxRootContext: React.Context<ComboboxRootContext | undefined>;
|
|
55
|
-
export declare function useComboboxRootContext(): ComboboxRootContext;
|
|
2
|
+
import type { ComboboxStore } from '../store/ComboboxStore';
|
|
3
|
+
export type { ComboboxItem, ComboboxItems } from '../store/ComboboxStore';
|
|
4
|
+
export declare const ComboboxRootContext: React.Context<ComboboxStore | undefined>;
|
|
5
|
+
export declare function useComboboxRootContext(): ComboboxStore;
|
|
56
6
|
//# sourceMappingURL=ComboboxRootContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxRootContext.d.ts","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxRootContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ComboboxRootContext.d.ts","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxRootContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE1E,eAAO,MAAM,mBAAmB,0CAA4D,CAAC;AAE7F,wBAAgB,sBAAsB,kBASrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxRootContext.js","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxRootContext.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ComboboxRootContext.js","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxRootContext.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQb,wDASC;AAhBD,6CAA+B;AAKlB,QAAA,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAA4B,SAAS,CAAC,CAAC;AAE7F,SAAgB,sBAAsB;IACpC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,2BAAmB,CAAC,CAAC;IACtD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,oHAAoH,CACrH,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { TransitionStatus } from '../../internals/useTransitionStatus';
|
|
3
|
+
export interface ComboboxTransitionContext {
|
|
4
|
+
transitionStatus: TransitionStatus;
|
|
5
|
+
}
|
|
6
|
+
export declare const ComboboxTransitionContext: React.Context<ComboboxTransitionContext | undefined>;
|
|
7
|
+
export declare function useComboboxTransitionContext(): ComboboxTransitionContext | undefined;
|
|
8
|
+
//# sourceMappingURL=ComboboxTransitionContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboboxTransitionContext.d.ts","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxTransitionContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,MAAM,WAAW,yBAAyB;IACxC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED,eAAO,MAAM,yBAAyB,sDAE1B,CAAC;AAEb,wBAAgB,4BAA4B,0CAE3C"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ComboboxTransitionContext = void 0;
|
|
38
|
+
exports.useComboboxTransitionContext = useComboboxTransitionContext;
|
|
39
|
+
const React = __importStar(require("react"));
|
|
40
|
+
exports.ComboboxTransitionContext = React.createContext(undefined);
|
|
41
|
+
function useComboboxTransitionContext() {
|
|
42
|
+
return React.useContext(exports.ComboboxTransitionContext);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=ComboboxTransitionContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboboxTransitionContext.js","sourceRoot":"","sources":["../../../src/combobox/root/ComboboxTransitionContext.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYb,oEAEC;AAbD,6CAA+B;AAOlB,QAAA,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAE1D,SAAS,CAAC,CAAC;AAEb,SAAgB,4BAA4B;IAC1C,OAAO,KAAK,CAAC,UAAU,CAAC,iCAAyB,CAAC,CAAC;AACrD,CAAC"}
|