@editora/ui-react 0.1.19 → 0.1.20
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 +9 -4
- package/dist/Accordion.cjs.js +1 -1
- package/dist/Accordion.esm.js +1 -0
- package/dist/Alert.cjs.js +1 -1
- package/dist/Alert.esm.js +12 -11
- package/dist/AlertDialog.cjs.js +1 -1
- package/dist/AlertDialog.esm.js +9 -8
- package/dist/Anchor.cjs.js +1 -1
- package/dist/Anchor.esm.js +1 -0
- package/dist/AnimatedBeam.cjs.js +1 -1
- package/dist/AnimatedBeam.esm.js +4 -3
- package/dist/AnimatedList.cjs.js +1 -1
- package/dist/AnimatedList.esm.js +4 -3
- package/dist/AnimatedText.cjs.js +1 -1
- package/dist/AnimatedText.esm.js +4 -3
- package/dist/AppHeader.cjs.js +1 -1
- package/dist/AppHeader.esm.js +1 -0
- package/dist/AspectRatio.cjs.js +1 -1
- package/dist/AspectRatio.esm.js +1 -0
- package/dist/Avatar.cjs.js +1 -1
- package/dist/Avatar.esm.js +1 -0
- package/dist/Badge.cjs.js +1 -1
- package/dist/Badge.esm.js +11 -10
- package/dist/BlockControls.cjs.js +1 -1
- package/dist/BlockControls.esm.js +1 -0
- package/dist/Box.cjs.js +1 -1
- package/dist/Box.esm.js +9 -8
- package/dist/Breadcrumb.cjs.js +1 -1
- package/dist/Breadcrumb.esm.js +18 -17
- package/dist/Button.cjs.js +1 -1
- package/dist/Button.esm.js +8 -7
- package/dist/Calendar.cjs.js +1 -1
- package/dist/Calendar.esm.js +28 -27
- package/dist/Card.cjs.js +2 -2
- package/dist/Card.esm.js +4 -3
- package/dist/Carousel.cjs.js +1 -1
- package/dist/Carousel.esm.js +4 -3
- package/dist/Chart.cjs.js +1 -1
- package/dist/Chart.esm.js +12 -11
- package/dist/Checkbox.cjs.js +1 -1
- package/dist/Checkbox.esm.js +20 -19
- package/dist/Collapsible.cjs.js +1 -1
- package/dist/Collapsible.esm.js +4 -3
- package/dist/Collection.cjs.js +1 -1
- package/dist/Collection.esm.js +7 -6
- package/dist/ColorPicker.cjs.js +1 -1
- package/dist/ColorPicker.esm.js +15 -14
- package/dist/Combobox.cjs.js +1 -1
- package/dist/Combobox.esm.js +11 -10
- package/dist/Command.cjs.js +1 -1
- package/dist/Command.esm.js +18 -17
- package/dist/CommandPalette.cjs.js +1 -1
- package/dist/CommandPalette.esm.js +13 -12
- package/dist/Container.cjs.js +1 -1
- package/dist/Container.esm.js +7 -6
- package/dist/ContextMenu.cjs.js +1 -1
- package/dist/ContextMenu.esm.js +4 -3
- package/dist/CopyButton.cjs.js +1 -1
- package/dist/CopyButton.esm.js +1 -0
- package/dist/DataTable.cjs.js +1 -1
- package/dist/DataTable.esm.js +4 -3
- package/dist/DataViewToolbar.cjs.js +1 -1
- package/dist/DataViewToolbar.esm.js +3 -0
- package/dist/DateField.cjs.js +1 -1
- package/dist/DateField.esm.js +13 -12
- package/dist/DatePicker.cjs.js +1 -1
- package/dist/DatePicker.esm.js +10 -9
- package/dist/DateRangePicker.cjs.js +1 -1
- package/dist/DateRangePicker.esm.js +13 -12
- package/dist/DateRangeTimePicker.cjs.js +1 -1
- package/dist/DateRangeTimePicker.esm.js +1 -0
- package/dist/DateTimePicker.cjs.js +1 -1
- package/dist/DateTimePicker.esm.js +10 -9
- package/dist/Dialog.cjs.js +1 -1
- package/dist/Dialog.esm.js +8 -7
- package/dist/DirectionProvider.cjs.js +1 -1
- package/dist/DirectionProvider.esm.js +1 -0
- package/dist/DismissableLayer.cjs.js +1 -1
- package/dist/DismissableLayer.esm.js +1 -0
- package/dist/Dock.cjs.js +1 -1
- package/dist/Dock.esm.js +11 -10
- package/dist/Drawer.cjs.js +1 -1
- package/dist/Drawer.esm.js +10 -9
- package/dist/Dropdown.cjs.js +1 -1
- package/dist/Dropdown.esm.js +4 -3
- package/dist/EmptyState.cjs.js +1 -1
- package/dist/EmptyState.esm.js +8 -7
- package/dist/Field.cjs.js +1 -1
- package/dist/Field.esm.js +12 -11
- package/dist/FileUpload.cjs.js +1 -1
- package/dist/FileUpload.esm.js +11 -10
- package/dist/FiltersBar.cjs.js +1 -1
- package/dist/FiltersBar.esm.js +18 -15
- package/dist/Flex.cjs.js +1 -1
- package/dist/Flex.esm.js +19 -18
- package/dist/FloatingToolbar.cjs.js +1 -1
- package/dist/FloatingToolbar.esm.js +4 -3
- package/dist/FocusScope.cjs.js +1 -1
- package/dist/FocusScope.esm.js +8 -7
- package/dist/Form.cjs.js +1 -1
- package/dist/Form.esm.js +8 -7
- package/dist/Gantt.cjs.js +1 -1
- package/dist/Gantt.esm.js +11 -10
- package/dist/Grid.cjs.js +1 -1
- package/dist/Grid.esm.js +4 -3
- package/dist/HoverCard.cjs.js +1 -1
- package/dist/HoverCard.esm.js +4 -3
- package/dist/Icon.cjs.js +1 -1
- package/dist/Icon.esm.js +1 -0
- package/dist/IconCloud.cjs.js +1 -1
- package/dist/IconCloud.esm.js +14 -13
- package/dist/InlineEdit.cjs.js +1 -1
- package/dist/InlineEdit.esm.js +4 -3
- package/dist/Input.cjs.js +1 -1
- package/dist/Input.esm.js +16 -15
- package/dist/Label.cjs.js +1 -1
- package/dist/Label.esm.js +14 -13
- package/dist/Layout.cjs.js +1 -1
- package/dist/Layout.esm.js +5 -4
- package/dist/Listbox.cjs.js +1 -1
- package/dist/Listbox.esm.js +5 -4
- package/dist/Marquee.cjs.js +1 -1
- package/dist/Marquee.esm.js +15 -14
- package/dist/MasonryGrid.cjs.js +1 -1
- package/dist/MasonryGrid.esm.js +13 -12
- package/dist/Menu.cjs.js +1 -1
- package/dist/Menu.esm.js +4 -3
- package/dist/Menubar.cjs.js +1 -1
- package/dist/Menubar.esm.js +11 -10
- package/dist/Meter.cjs.js +1 -1
- package/dist/Meter.esm.js +9 -8
- package/dist/MultiSelect.cjs.js +1 -1
- package/dist/MultiSelect.esm.js +5 -4
- package/dist/NavigationMenu.cjs.js +1 -1
- package/dist/NavigationMenu.esm.js +4 -3
- package/dist/NumberField.cjs.js +1 -1
- package/dist/NumberField.esm.js +12 -11
- package/dist/NumberTicker.cjs.js +1 -1
- package/dist/NumberTicker.esm.js +15 -14
- package/dist/Orbiter.cjs.js +1 -1
- package/dist/Orbiter.esm.js +4 -3
- package/dist/PageHeader.cjs.js +1 -1
- package/dist/PageHeader.esm.js +6 -4
- package/dist/PageToolbar.cjs.js +1 -1
- package/dist/PageToolbar.esm.js +6 -4
- package/dist/Pagination.cjs.js +1 -1
- package/dist/Pagination.esm.js +6 -5
- package/dist/PanelGroup.cjs.js +1 -1
- package/dist/PanelGroup.esm.js +16 -15
- package/dist/PasswordField.cjs.js +1 -1
- package/dist/PasswordField.esm.js +11 -10
- package/dist/PinInput.cjs.js +1 -1
- package/dist/PinInput.esm.js +15 -14
- package/dist/PlacementGrid.cjs.js +1 -1
- package/dist/PlacementGrid.esm.js +19 -18
- package/dist/PluginPanel.cjs.js +1 -1
- package/dist/PluginPanel.esm.js +8 -7
- package/dist/Popover.cjs.js +1 -1
- package/dist/Popover.esm.js +12 -11
- package/dist/Portal.cjs.js +1 -1
- package/dist/Portal.esm.js +10 -9
- package/dist/Positioner.cjs.js +1 -1
- package/dist/Positioner.esm.js +5 -4
- package/dist/Presence.cjs.js +1 -1
- package/dist/Presence.esm.js +14 -13
- package/dist/Progress.cjs.js +1 -1
- package/dist/Progress.esm.js +11 -10
- package/dist/QuickActions.cjs.js +1 -1
- package/dist/QuickActions.esm.js +18 -17
- package/dist/Radio.cjs.js +1 -1
- package/dist/Radio.esm.js +12 -11
- package/dist/RadioGroup.cjs.js +1 -1
- package/dist/RadioGroup.esm.js +10 -9
- package/dist/Rating.cjs.js +1 -1
- package/dist/Rating.esm.js +15 -14
- package/dist/RecordHeader.cjs.js +1 -1
- package/dist/RecordHeader.esm.js +8 -6
- package/dist/RovingFocusGroup.cjs.js +1 -1
- package/dist/RovingFocusGroup.esm.js +7 -6
- package/dist/ScrollArea.cjs.js +1 -1
- package/dist/ScrollArea.esm.js +1 -0
- package/dist/Section.cjs.js +1 -1
- package/dist/Section.esm.js +9 -8
- package/dist/Select.cjs.js +1 -1
- package/dist/Select.esm.js +14 -13
- package/dist/SelectionPopup.cjs.js +1 -1
- package/dist/SelectionPopup.esm.js +4 -3
- package/dist/Separator.cjs.js +1 -1
- package/dist/Separator.esm.js +3 -2
- package/dist/Sidebar.cjs.js +1 -1
- package/dist/Sidebar.esm.js +4 -3
- package/dist/Skeleton.cjs.js +1 -1
- package/dist/Skeleton.esm.js +10 -9
- package/dist/Slider.cjs.js +1 -1
- package/dist/Slider.esm.js +7 -6
- package/dist/Slot.cjs.js +1 -1
- package/dist/Slot.esm.js +1 -0
- package/dist/SpinningText.cjs.js +1 -1
- package/dist/SpinningText.esm.js +4 -3
- package/dist/SplitButton.cjs.js +2 -2
- package/dist/SplitButton.esm.js +1 -0
- package/dist/Stepper.cjs.js +1 -1
- package/dist/Stepper.esm.js +5 -4
- package/dist/Switch.cjs.js +1 -1
- package/dist/Switch.esm.js +4 -3
- package/dist/Table.cjs.js +1 -1
- package/dist/Table.esm.js +12 -11
- package/dist/Tabs.cjs.js +1 -1
- package/dist/Tabs.esm.js +4 -3
- package/dist/TagsInput.cjs.js +1 -1
- package/dist/TagsInput.esm.js +5 -4
- package/dist/Textarea.cjs.js +1 -1
- package/dist/Textarea.esm.js +8 -7
- package/dist/TimePicker.cjs.js +1 -1
- package/dist/TimePicker.esm.js +18 -17
- package/dist/Timeline.cjs.js +1 -1
- package/dist/Timeline.esm.js +7 -6
- package/dist/Toast.cjs.js +1 -1
- package/dist/Toast.esm.js +4 -3
- package/dist/Toggle.cjs.js +1 -1
- package/dist/Toggle.esm.js +14 -13
- package/dist/ToggleGroup.cjs.js +1 -1
- package/dist/ToggleGroup.esm.js +14 -12
- package/dist/Toolbar.cjs.js +1 -1
- package/dist/Toolbar.esm.js +7 -6
- package/dist/Tooltip.cjs.js +1 -1
- package/dist/Tooltip.esm.js +5 -4
- package/dist/TransferList.cjs.js +1 -1
- package/dist/TransferList.esm.js +12 -11
- package/dist/Tree.cjs.js +1 -1
- package/dist/Tree.esm.js +28 -27
- package/dist/VisuallyHidden.cjs.js +1 -1
- package/dist/VisuallyHidden.esm.js +2 -1
- package/dist/Wizard.cjs.js +1 -1
- package/dist/Wizard.esm.js +53 -52
- package/dist/client.cjs.js +1 -1
- package/dist/client.esm.js +170 -127
- package/dist/components/Accordion.cjs.js +1 -1
- package/dist/components/Accordion.d.ts +1 -0
- package/dist/components/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion.esm.js +5 -4
- package/dist/components/Alert.cjs.js +1 -1
- package/dist/components/Alert.d.ts +1 -0
- package/dist/components/Alert.d.ts.map +1 -1
- package/dist/components/Alert.esm.js +6 -5
- package/dist/components/AlertDialog.cjs.js +1 -1
- package/dist/components/AlertDialog.d.ts +1 -0
- package/dist/components/AlertDialog.d.ts.map +1 -1
- package/dist/components/AlertDialog.esm.js +8 -7
- package/dist/components/Anchor.cjs.js +1 -1
- package/dist/components/Anchor.d.ts +1 -0
- package/dist/components/Anchor.d.ts.map +1 -1
- package/dist/components/Anchor.esm.js +4 -3
- package/dist/components/AnimatedBeam.cjs.js +1 -1
- package/dist/components/AnimatedBeam.d.ts +1 -0
- package/dist/components/AnimatedBeam.d.ts.map +1 -1
- package/dist/components/AnimatedBeam.esm.js +4 -3
- package/dist/components/AnimatedList.cjs.js +1 -1
- package/dist/components/AnimatedList.d.ts +1 -0
- package/dist/components/AnimatedList.d.ts.map +1 -1
- package/dist/components/AnimatedList.esm.js +4 -3
- package/dist/components/AnimatedText.cjs.js +1 -1
- package/dist/components/AnimatedText.d.ts +1 -0
- package/dist/components/AnimatedText.d.ts.map +1 -1
- package/dist/components/AnimatedText.esm.js +4 -3
- package/dist/components/AppHeader.cjs.js +1 -1
- package/dist/components/AppHeader.d.ts +1 -0
- package/dist/components/AppHeader.d.ts.map +1 -1
- package/dist/components/AppHeader.esm.js +7 -6
- package/dist/components/AspectRatio.cjs.js +1 -1
- package/dist/components/AspectRatio.d.ts +1 -0
- package/dist/components/AspectRatio.d.ts.map +1 -1
- package/dist/components/AspectRatio.esm.js +3 -2
- package/dist/components/Avatar.cjs.js +1 -1
- package/dist/components/Avatar.d.ts +1 -0
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.esm.js +3 -2
- package/dist/components/Badge.cjs.js +1 -1
- package/dist/components/Badge.d.ts +1 -0
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Badge.esm.js +4 -3
- package/dist/components/BlockControls.cjs.js +1 -1
- package/dist/components/BlockControls.d.ts +1 -0
- package/dist/components/BlockControls.d.ts.map +1 -1
- package/dist/components/BlockControls.esm.js +4 -3
- package/dist/components/Box.cjs.js +1 -1
- package/dist/components/Box.d.ts +1 -0
- package/dist/components/Box.d.ts.map +1 -1
- package/dist/components/Box.esm.js +4 -3
- package/dist/components/Breadcrumb.cjs.js +1 -1
- package/dist/components/Breadcrumb.d.ts +1 -0
- package/dist/components/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb.esm.js +4 -3
- package/dist/components/Button.cjs.js +1 -1
- package/dist/components/Button.d.ts +1 -0
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.esm.js +3 -2
- package/dist/components/Calendar.cjs.js +1 -1
- package/dist/components/Calendar.d.ts +1 -0
- package/dist/components/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar.esm.js +4 -3
- package/dist/components/Card.cjs.js +1 -1
- package/dist/components/Card.d.ts +1 -0
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/Card.esm.js +4 -3
- package/dist/components/Carousel.cjs.js +1 -1
- package/dist/components/Carousel.esm.js +4 -3
- package/dist/components/Chart.cjs.js +1 -1
- package/dist/components/Chart.d.ts +1 -0
- package/dist/components/Chart.d.ts.map +1 -1
- package/dist/components/Chart.esm.js +7 -6
- package/dist/components/Checkbox.cjs.js +1 -1
- package/dist/components/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.esm.js +3 -2
- package/dist/components/Collapsible.cjs.js +1 -1
- package/dist/components/Collapsible.d.ts +1 -0
- package/dist/components/Collapsible.d.ts.map +1 -1
- package/dist/components/Collapsible.esm.js +8 -7
- package/dist/components/Collection.cjs.js +1 -1
- package/dist/components/Collection.d.ts +1 -0
- package/dist/components/Collection.d.ts.map +1 -1
- package/dist/components/Collection.esm.js +4 -3
- package/dist/components/ColorPicker.cjs.js +1 -1
- package/dist/components/ColorPicker.d.ts +1 -0
- package/dist/components/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker.esm.js +4 -3
- package/dist/components/Combobox.cjs.js +1 -1
- package/dist/components/Combobox.d.ts +1 -0
- package/dist/components/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox.esm.js +5 -4
- package/dist/components/Command.cjs.js +1 -1
- package/dist/components/Command.d.ts +1 -0
- package/dist/components/Command.d.ts.map +1 -1
- package/dist/components/Command.esm.js +3 -2
- package/dist/components/CommandPalette.cjs.js +1 -1
- package/dist/components/CommandPalette.d.ts +1 -0
- package/dist/components/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette.esm.js +3 -2
- package/dist/components/Container.cjs.js +1 -1
- package/dist/components/Container.d.ts +1 -0
- package/dist/components/Container.d.ts.map +1 -1
- package/dist/components/Container.esm.js +4 -3
- package/dist/components/ContextMenu.cjs.js +1 -1
- package/dist/components/ContextMenu.d.ts +1 -0
- package/dist/components/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu.esm.js +4 -3
- package/dist/components/CopyButton.cjs.js +1 -1
- package/dist/components/CopyButton.esm.js +4 -3
- package/dist/components/DataTable.cjs.js +1 -1
- package/dist/components/DataTable.d.ts +1 -0
- package/dist/components/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable.esm.js +4 -3
- package/dist/components/DataViewToolbar.cjs.js +1 -1
- package/dist/components/DataViewToolbar.esm.js +6 -3
- package/dist/components/DateField.cjs.js +1 -1
- package/dist/components/DateField.d.ts +1 -0
- package/dist/components/DateField.d.ts.map +1 -1
- package/dist/components/DateField.esm.js +5 -4
- package/dist/components/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker.d.ts +1 -0
- package/dist/components/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker.esm.js +4 -3
- package/dist/components/DateRangePicker.cjs.js +1 -1
- package/dist/components/DateRangePicker.d.ts +1 -0
- package/dist/components/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DateRangePicker.esm.js +4 -3
- package/dist/components/DateRangeTimePicker.cjs.js +1 -1
- package/dist/components/DateRangeTimePicker.d.ts +1 -0
- package/dist/components/DateRangeTimePicker.d.ts.map +1 -1
- package/dist/components/DateRangeTimePicker.esm.js +4 -3
- package/dist/components/DateTimePicker.cjs.js +1 -1
- package/dist/components/DateTimePicker.d.ts +1 -0
- package/dist/components/DateTimePicker.d.ts.map +1 -1
- package/dist/components/DateTimePicker.esm.js +3 -2
- package/dist/components/Dialog.cjs.js +1 -1
- package/dist/components/Dialog.d.ts +1 -0
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog.esm.js +4 -3
- package/dist/components/DirectionProvider.cjs.js +1 -1
- package/dist/components/DirectionProvider.d.ts +1 -0
- package/dist/components/DirectionProvider.d.ts.map +1 -1
- package/dist/components/DirectionProvider.esm.js +1 -0
- package/dist/components/DismissableLayer.cjs.js +1 -1
- package/dist/components/DismissableLayer.d.ts +1 -0
- package/dist/components/DismissableLayer.d.ts.map +1 -1
- package/dist/components/DismissableLayer.esm.js +4 -3
- package/dist/components/Dock.cjs.js +1 -1
- package/dist/components/Dock.d.ts +1 -0
- package/dist/components/Dock.d.ts.map +1 -1
- package/dist/components/Dock.esm.js +3 -2
- package/dist/components/Drawer.cjs.js +1 -1
- package/dist/components/Drawer.d.ts +1 -0
- package/dist/components/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer.esm.js +6 -5
- package/dist/components/Dropdown.cjs.js +1 -1
- package/dist/components/Dropdown.d.ts +1 -0
- package/dist/components/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown.esm.js +7 -6
- package/dist/components/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState.d.ts +1 -0
- package/dist/components/EmptyState.d.ts.map +1 -1
- package/dist/components/EmptyState.esm.js +4 -3
- package/dist/components/Field.cjs.js +1 -1
- package/dist/components/Field.d.ts +1 -0
- package/dist/components/Field.d.ts.map +1 -1
- package/dist/components/Field.esm.js +4 -3
- package/dist/components/FileUpload.cjs.js +1 -1
- package/dist/components/FileUpload.d.ts +1 -0
- package/dist/components/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload.esm.js +4 -3
- package/dist/components/FiltersBar.cjs.js +1 -1
- package/dist/components/FiltersBar.esm.js +6 -3
- package/dist/components/Flex.cjs.js +1 -1
- package/dist/components/Flex.d.ts +1 -0
- package/dist/components/Flex.d.ts.map +1 -1
- package/dist/components/Flex.esm.js +4 -3
- package/dist/components/FloatingToolbar.cjs.js +1 -1
- package/dist/components/FloatingToolbar.d.ts +1 -0
- package/dist/components/FloatingToolbar.d.ts.map +1 -1
- package/dist/components/FloatingToolbar.esm.js +5 -4
- package/dist/components/FocusScope.cjs.js +1 -1
- package/dist/components/FocusScope.d.ts +1 -0
- package/dist/components/FocusScope.d.ts.map +1 -1
- package/dist/components/FocusScope.esm.js +4 -3
- package/dist/components/Form.cjs.js +1 -1
- package/dist/components/Form.d.ts +1 -0
- package/dist/components/Form.d.ts.map +1 -1
- package/dist/components/Form.esm.js +5 -4
- package/dist/components/Gantt.cjs.js +1 -1
- package/dist/components/Gantt.d.ts +1 -0
- package/dist/components/Gantt.d.ts.map +1 -1
- package/dist/components/Gantt.esm.js +4 -3
- package/dist/components/Grid.cjs.js +1 -1
- package/dist/components/Grid.d.ts +1 -0
- package/dist/components/Grid.d.ts.map +1 -1
- package/dist/components/Grid.esm.js +4 -3
- package/dist/components/HoverCard.cjs.js +1 -1
- package/dist/components/HoverCard.d.ts +1 -0
- package/dist/components/HoverCard.d.ts.map +1 -1
- package/dist/components/HoverCard.esm.js +4 -3
- package/dist/components/Icon.cjs.js +1 -1
- package/dist/components/Icon.d.ts +1 -0
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/Icon.esm.js +4 -3
- package/dist/components/IconCloud.cjs.js +1 -1
- package/dist/components/IconCloud.d.ts +1 -0
- package/dist/components/IconCloud.d.ts.map +1 -1
- package/dist/components/IconCloud.esm.js +4 -3
- package/dist/components/InlineEdit.cjs.js +1 -1
- package/dist/components/InlineEdit.d.ts +1 -0
- package/dist/components/InlineEdit.d.ts.map +1 -1
- package/dist/components/InlineEdit.esm.js +4 -3
- package/dist/components/Input.cjs.js +1 -1
- package/dist/components/Input.d.ts +1 -0
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.esm.js +3 -2
- package/dist/components/Label.cjs.js +1 -1
- package/dist/components/Label.d.ts +1 -0
- package/dist/components/Label.d.ts.map +1 -1
- package/dist/components/Label.esm.js +4 -3
- package/dist/components/Layout.cjs.js +1 -1
- package/dist/components/Layout.d.ts +1 -0
- package/dist/components/Layout.d.ts.map +1 -1
- package/dist/components/Layout.esm.js +7 -6
- package/dist/components/Listbox.cjs.js +1 -1
- package/dist/components/Listbox.d.ts +1 -0
- package/dist/components/Listbox.d.ts.map +1 -1
- package/dist/components/Listbox.esm.js +4 -3
- package/dist/components/Marquee.cjs.js +1 -1
- package/dist/components/Marquee.d.ts +1 -0
- package/dist/components/Marquee.d.ts.map +1 -1
- package/dist/components/Marquee.esm.js +4 -3
- package/dist/components/MasonryGrid.cjs.js +1 -1
- package/dist/components/MasonryGrid.d.ts +1 -0
- package/dist/components/MasonryGrid.d.ts.map +1 -1
- package/dist/components/MasonryGrid.esm.js +4 -3
- package/dist/components/Menu.cjs.js +1 -1
- package/dist/components/Menu.d.ts +1 -0
- package/dist/components/Menu.d.ts.map +1 -1
- package/dist/components/Menu.esm.js +7 -6
- package/dist/components/Menubar.cjs.js +1 -1
- package/dist/components/Menubar.d.ts +1 -0
- package/dist/components/Menubar.d.ts.map +1 -1
- package/dist/components/Menubar.esm.js +4 -3
- package/dist/components/Meter.cjs.js +1 -1
- package/dist/components/Meter.d.ts +1 -0
- package/dist/components/Meter.d.ts.map +1 -1
- package/dist/components/Meter.esm.js +4 -3
- package/dist/components/MultiSelect.cjs.js +1 -1
- package/dist/components/MultiSelect.d.ts +1 -0
- package/dist/components/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect.esm.js +4 -3
- package/dist/components/NavigationMenu.cjs.js +1 -1
- package/dist/components/NavigationMenu.d.ts +1 -0
- package/dist/components/NavigationMenu.d.ts.map +1 -1
- package/dist/components/NavigationMenu.esm.js +12 -11
- package/dist/components/NumberField.cjs.js +1 -1
- package/dist/components/NumberField.d.ts +1 -0
- package/dist/components/NumberField.d.ts.map +1 -1
- package/dist/components/NumberField.esm.js +4 -3
- package/dist/components/NumberTicker.cjs.js +1 -1
- package/dist/components/NumberTicker.d.ts +1 -0
- package/dist/components/NumberTicker.d.ts.map +1 -1
- package/dist/components/NumberTicker.esm.js +4 -3
- package/dist/components/Orbiter.cjs.js +1 -1
- package/dist/components/Orbiter.d.ts +1 -0
- package/dist/components/Orbiter.d.ts.map +1 -1
- package/dist/components/Orbiter.esm.js +4 -3
- package/dist/components/PageHeader.cjs.js +1 -1
- package/dist/components/PageHeader.esm.js +5 -3
- package/dist/components/PageToolbar.cjs.js +1 -1
- package/dist/components/PageToolbar.esm.js +5 -3
- package/dist/components/Pagination.cjs.js +1 -1
- package/dist/components/Pagination.d.ts +1 -0
- package/dist/components/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination.esm.js +4 -3
- package/dist/components/PanelGroup.cjs.js +1 -1
- package/dist/components/PanelGroup.d.ts +1 -0
- package/dist/components/PanelGroup.d.ts.map +1 -1
- package/dist/components/PanelGroup.esm.js +6 -5
- package/dist/components/PasswordField.cjs.js +1 -1
- package/dist/components/PasswordField.d.ts +1 -0
- package/dist/components/PasswordField.d.ts.map +1 -1
- package/dist/components/PasswordField.esm.js +4 -3
- package/dist/components/PinInput.cjs.js +1 -1
- package/dist/components/PinInput.d.ts +1 -0
- package/dist/components/PinInput.d.ts.map +1 -1
- package/dist/components/PinInput.esm.js +4 -3
- package/dist/components/PlacementGrid.cjs.js +1 -1
- package/dist/components/PlacementGrid.d.ts +1 -0
- package/dist/components/PlacementGrid.d.ts.map +1 -1
- package/dist/components/PlacementGrid.esm.js +4 -3
- package/dist/components/PluginPanel.cjs.js +1 -1
- package/dist/components/PluginPanel.d.ts +1 -0
- package/dist/components/PluginPanel.d.ts.map +1 -1
- package/dist/components/PluginPanel.esm.js +4 -3
- package/dist/components/Popover.cjs.js +1 -1
- package/dist/components/Popover.d.ts +1 -0
- package/dist/components/Popover.d.ts.map +1 -1
- package/dist/components/Popover.esm.js +4 -3
- package/dist/components/Portal.cjs.js +1 -1
- package/dist/components/Portal.d.ts +1 -0
- package/dist/components/Portal.d.ts.map +1 -1
- package/dist/components/Portal.esm.js +3 -2
- package/dist/components/Positioner.cjs.js +1 -1
- package/dist/components/Positioner.d.ts +1 -0
- package/dist/components/Positioner.d.ts.map +1 -1
- package/dist/components/Positioner.esm.js +4 -3
- package/dist/components/Presence.cjs.js +1 -1
- package/dist/components/Presence.d.ts +1 -0
- package/dist/components/Presence.d.ts.map +1 -1
- package/dist/components/Presence.esm.js +3 -2
- package/dist/components/Progress.cjs.js +1 -1
- package/dist/components/Progress.d.ts +1 -0
- package/dist/components/Progress.d.ts.map +1 -1
- package/dist/components/Progress.esm.js +3 -2
- package/dist/components/QuickActions.cjs.js +1 -1
- package/dist/components/QuickActions.d.ts +1 -0
- package/dist/components/QuickActions.d.ts.map +1 -1
- package/dist/components/QuickActions.esm.js +4 -3
- package/dist/components/Radio.cjs.js +1 -1
- package/dist/components/Radio.d.ts +1 -0
- package/dist/components/Radio.d.ts.map +1 -1
- package/dist/components/Radio.esm.js +3 -2
- package/dist/components/RadioGroup.cjs.js +1 -1
- package/dist/components/RadioGroup.d.ts +1 -0
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.esm.js +3 -2
- package/dist/components/Rating.cjs.js +1 -1
- package/dist/components/Rating.d.ts +1 -0
- package/dist/components/Rating.d.ts.map +1 -1
- package/dist/components/Rating.esm.js +4 -3
- package/dist/components/RecordHeader.cjs.js +1 -1
- package/dist/components/RecordHeader.esm.js +5 -3
- package/dist/components/RovingFocusGroup.cjs.js +1 -1
- package/dist/components/RovingFocusGroup.d.ts +1 -0
- package/dist/components/RovingFocusGroup.d.ts.map +1 -1
- package/dist/components/RovingFocusGroup.esm.js +4 -3
- package/dist/components/ScrollArea.cjs.js +1 -1
- package/dist/components/ScrollArea.d.ts +1 -0
- package/dist/components/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollArea.esm.js +3 -2
- package/dist/components/Section.cjs.js +1 -1
- package/dist/components/Section.d.ts +1 -0
- package/dist/components/Section.d.ts.map +1 -1
- package/dist/components/Section.esm.js +4 -3
- package/dist/components/Select.cjs.js +1 -1
- package/dist/components/Select.d.ts +1 -0
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Select.esm.js +4 -3
- package/dist/components/SelectionPopup.cjs.js +1 -1
- package/dist/components/SelectionPopup.d.ts +1 -0
- package/dist/components/SelectionPopup.d.ts.map +1 -1
- package/dist/components/SelectionPopup.esm.js +4 -3
- package/dist/components/Separator.cjs.js +1 -1
- package/dist/components/Separator.d.ts +1 -0
- package/dist/components/Separator.d.ts.map +1 -1
- package/dist/components/Separator.esm.js +3 -2
- package/dist/components/Sidebar.cjs.js +1 -1
- package/dist/components/Sidebar.d.ts +1 -0
- package/dist/components/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar.esm.js +11 -10
- package/dist/components/Skeleton.cjs.js +1 -1
- package/dist/components/Skeleton.d.ts +1 -0
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton.esm.js +4 -3
- package/dist/components/Slider.cjs.js +1 -1
- package/dist/components/Slider.d.ts +1 -0
- package/dist/components/Slider.d.ts.map +1 -1
- package/dist/components/Slider.esm.js +4 -3
- package/dist/components/Slot.cjs.js +1 -1
- package/dist/components/Slot.d.ts +1 -0
- package/dist/components/Slot.d.ts.map +1 -1
- package/dist/components/Slot.esm.js +4 -3
- package/dist/components/SpinningText.cjs.js +1 -1
- package/dist/components/SpinningText.d.ts +1 -0
- package/dist/components/SpinningText.d.ts.map +1 -1
- package/dist/components/SpinningText.esm.js +4 -3
- package/dist/components/SplitButton.cjs.js +1 -1
- package/dist/components/SplitButton.d.ts +1 -0
- package/dist/components/SplitButton.d.ts.map +1 -1
- package/dist/components/SplitButton.esm.js +3 -2
- package/dist/components/Stepper.cjs.js +1 -1
- package/dist/components/Stepper.d.ts +1 -0
- package/dist/components/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper.esm.js +4 -3
- package/dist/components/Switch.cjs.js +1 -1
- package/dist/components/Switch.d.ts +1 -0
- package/dist/components/Switch.d.ts.map +1 -1
- package/dist/components/Switch.esm.js +4 -3
- package/dist/components/Table.cjs.js +1 -1
- package/dist/components/Table.d.ts +1 -0
- package/dist/components/Table.d.ts.map +1 -1
- package/dist/components/Table.esm.js +4 -3
- package/dist/components/Tabs.cjs.js +1 -1
- package/dist/components/Tabs.d.ts +1 -0
- package/dist/components/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs.esm.js +4 -3
- package/dist/components/TagsInput.cjs.js +1 -1
- package/dist/components/TagsInput.d.ts +1 -0
- package/dist/components/TagsInput.d.ts.map +1 -1
- package/dist/components/TagsInput.esm.js +4 -3
- package/dist/components/Textarea.cjs.js +1 -1
- package/dist/components/Textarea.d.ts +1 -0
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.esm.js +4 -3
- package/dist/components/TimePicker.cjs.js +1 -1
- package/dist/components/TimePicker.d.ts +1 -0
- package/dist/components/TimePicker.d.ts.map +1 -1
- package/dist/components/TimePicker.esm.js +4 -3
- package/dist/components/Timeline.cjs.js +1 -1
- package/dist/components/Timeline.d.ts +1 -0
- package/dist/components/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline.esm.js +4 -3
- package/dist/components/Toast.cjs.js +1 -1
- package/dist/components/Toast.d.ts +1 -0
- package/dist/components/Toast.d.ts.map +1 -1
- package/dist/components/Toast.esm.js +4 -3
- package/dist/components/Toggle.cjs.js +1 -1
- package/dist/components/Toggle.d.ts +1 -0
- package/dist/components/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle.esm.js +4 -3
- package/dist/components/ToggleGroup.cjs.js +1 -1
- package/dist/components/ToggleGroup.d.ts +1 -0
- package/dist/components/ToggleGroup.d.ts.map +1 -1
- package/dist/components/ToggleGroup.esm.js +4 -2
- package/dist/components/Toolbar.cjs.js +1 -1
- package/dist/components/Toolbar.d.ts +1 -0
- package/dist/components/Toolbar.d.ts.map +1 -1
- package/dist/components/Toolbar.esm.js +3 -2
- package/dist/components/Tooltip.cjs.js +1 -1
- package/dist/components/Tooltip.d.ts +1 -0
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.esm.js +3 -2
- package/dist/components/TransferList.cjs.js +1 -1
- package/dist/components/TransferList.d.ts +1 -0
- package/dist/components/TransferList.d.ts.map +1 -1
- package/dist/components/TransferList.esm.js +4 -3
- package/dist/components/Tree.cjs.js +1 -1
- package/dist/components/Tree.d.ts +1 -0
- package/dist/components/Tree.d.ts.map +1 -1
- package/dist/components/Tree.esm.js +4 -3
- package/dist/components/VisuallyHidden.cjs.js +1 -1
- package/dist/components/VisuallyHidden.d.ts +1 -0
- package/dist/components/VisuallyHidden.d.ts.map +1 -1
- package/dist/components/VisuallyHidden.esm.js +3 -2
- package/dist/components/Wizard.cjs.js +1 -1
- package/dist/components/Wizard.d.ts +1 -0
- package/dist/components/Wizard.d.ts.map +1 -1
- package/dist/components/Wizard.esm.js +4 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +696 -586
- package/dist/server.cjs.js +1 -1
- package/dist/server.esm.js +51 -38
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,143 +1,253 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import "@editora/ui-core";
|
|
3
|
-
import { Button as
|
|
4
|
-
import { Tooltip as
|
|
5
|
-
import { Alert as
|
|
6
|
-
import { Dropdown as
|
|
7
|
-
import { Input as
|
|
8
|
-
import { PasswordField as
|
|
9
|
-
import { TagsInput as
|
|
10
|
-
import { OTPInput as
|
|
11
|
-
import { Dropzone as
|
|
12
|
-
import { Textarea as
|
|
13
|
-
import { Field as
|
|
14
|
-
import { ControlGroup as
|
|
15
|
-
import { FiltersBar as
|
|
16
|
-
import { Combobox as
|
|
17
|
-
import { Badge as
|
|
18
|
-
import { EmptyState as
|
|
19
|
-
import { Table as
|
|
20
|
-
import { DataTable as
|
|
21
|
-
import { Chart as
|
|
22
|
-
import { Timeline as
|
|
23
|
-
import { Carousel as
|
|
24
|
-
import { CodeBlock as
|
|
25
|
-
import { CodeSnippet as
|
|
26
|
-
import { CopyButton as
|
|
27
|
-
import { DataViewToolbar as
|
|
28
|
-
import { Stat as
|
|
29
|
-
import { MetricCard as
|
|
30
|
-
import { Calendar as
|
|
31
|
-
import { ColorPicker as
|
|
32
|
-
import { DatePicker as
|
|
33
|
-
import { DateRangePicker as
|
|
34
|
-
import { DateField as
|
|
35
|
-
import { NumberField as
|
|
36
|
-
import { MultiSelect as
|
|
37
|
-
import { SplitButton as
|
|
38
|
-
import { TransferList as
|
|
39
|
-
import { Sortable as
|
|
40
|
-
import { InlineEdit as
|
|
41
|
-
import { TimePicker as
|
|
42
|
-
import { DateTimePicker as
|
|
43
|
-
import { DateRangeTimePicker as
|
|
44
|
-
import { Gantt as
|
|
45
|
-
import { Stepper as
|
|
46
|
-
import { Wizard as
|
|
47
|
-
import { Rating as
|
|
48
|
-
import { QuickActions as
|
|
49
|
-
import { NavigationMenu as
|
|
50
|
-
import { Menubar as
|
|
51
|
-
import { Dialog as
|
|
52
|
-
import { DialogProvider as
|
|
53
|
-
import { Popover as
|
|
54
|
-
import { Tabs as
|
|
55
|
-
import { Menu as
|
|
56
|
-
import { Icon as
|
|
57
|
-
import { ToastAPI as
|
|
58
|
-
import { Toast as
|
|
59
|
-
import { FloatingToolbar as
|
|
60
|
-
import { BlockControls as
|
|
61
|
-
import { Kbd as
|
|
62
|
-
import { Shortcut as
|
|
63
|
-
import { Command as
|
|
64
|
-
import { CommandPalette as
|
|
65
|
-
import { ContextMenu as
|
|
66
|
-
import { SelectionPopup as
|
|
67
|
-
import { PluginPanel as
|
|
68
|
-
import { Form as
|
|
3
|
+
import { Button as No } from "./Button.esm.js";
|
|
4
|
+
import { Tooltip as $o } from "./Tooltip.esm.js";
|
|
5
|
+
import { Alert as Bo, AlertActions as Vo, AlertDescription as Ho, AlertIcon as zo, AlertTitle as qo } from "./Alert.esm.js";
|
|
6
|
+
import { Dropdown as Uo, DropdownContent as jo, DropdownItem as _o, DropdownSectionLabel as Qo, DropdownSeparator as Xo, DropdownTrigger as Yo } from "./Dropdown.esm.js";
|
|
7
|
+
import { Input as Jo } from "./Input.esm.js";
|
|
8
|
+
import { PasswordField as en } from "./PasswordField.esm.js";
|
|
9
|
+
import { TagsInput as rn } from "./TagsInput.esm.js";
|
|
10
|
+
import { OTPInput as nn, PinInput as sn } from "./PinInput.esm.js";
|
|
11
|
+
import { Dropzone as ln, FileUpload as an } from "./FileUpload.esm.js";
|
|
12
|
+
import { Textarea as cn } from "./Textarea.esm.js";
|
|
13
|
+
import { Field as pn } from "./Field.esm.js";
|
|
14
|
+
import { ControlGroup as gn, Description as yn, FieldError as xn, Fieldset as wn } from "./FieldSemantics.esm.js";
|
|
15
|
+
import { FiltersBar as bn } from "./FiltersBar.esm.js";
|
|
16
|
+
import { Combobox as vn } from "./Combobox.esm.js";
|
|
17
|
+
import { Badge as An } from "./Badge.esm.js";
|
|
18
|
+
import { EmptyState as In } from "./EmptyState.esm.js";
|
|
19
|
+
import { Table as Mn } from "./Table.esm.js";
|
|
20
|
+
import { DataTable as Tn } from "./DataTable.esm.js";
|
|
21
|
+
import { Chart as Cn } from "./Chart.esm.js";
|
|
22
|
+
import { Timeline as kn } from "./Timeline.esm.js";
|
|
23
|
+
import { Carousel as On } from "./Carousel.esm.js";
|
|
24
|
+
import { CodeBlock as Kn } from "./CodeBlock.esm.js";
|
|
25
|
+
import { CodeSnippet as Vn } from "./CodeSnippet.esm.js";
|
|
26
|
+
import { CopyButton as zn } from "./CopyButton.esm.js";
|
|
27
|
+
import { DataViewToolbar as Gn } from "./DataViewToolbar.esm.js";
|
|
28
|
+
import { Stat as jn } from "./Stat.esm.js";
|
|
29
|
+
import { MetricCard as Qn } from "./MetricCard.esm.js";
|
|
30
|
+
import { Calendar as Yn } from "./Calendar.esm.js";
|
|
31
|
+
import { ColorPicker as Jn } from "./ColorPicker.esm.js";
|
|
32
|
+
import { DatePicker as ei } from "./DatePicker.esm.js";
|
|
33
|
+
import { DateRangePicker as ri } from "./DateRangePicker.esm.js";
|
|
34
|
+
import { DateField as ni, TimeField as ii } from "./DateField.esm.js";
|
|
35
|
+
import { NumberField as ui } from "./NumberField.esm.js";
|
|
36
|
+
import { MultiSelect as ai } from "./MultiSelect.esm.js";
|
|
37
|
+
import { SplitButton as ci } from "./SplitButton.esm.js";
|
|
38
|
+
import { TransferList as pi } from "./TransferList.esm.js";
|
|
39
|
+
import { Sortable as gi } from "./Sortable.esm.js";
|
|
40
|
+
import { InlineEdit as xi } from "./InlineEdit.esm.js";
|
|
41
|
+
import { TimePicker as Pi } from "./TimePicker.esm.js";
|
|
42
|
+
import { DateTimePicker as Di } from "./DateTimePicker.esm.js";
|
|
43
|
+
import { DateRangeTimePicker as hi } from "./DateRangeTimePicker.esm.js";
|
|
44
|
+
import { Gantt as Ei } from "./Gantt.esm.js";
|
|
45
|
+
import { Stepper as Ri } from "./Stepper.esm.js";
|
|
46
|
+
import { Wizard as Fi } from "./Wizard.esm.js";
|
|
47
|
+
import { Rating as Li } from "./Rating.esm.js";
|
|
48
|
+
import { QuickActions as Si } from "./QuickActions.esm.js";
|
|
49
|
+
import { NavigationMenu as Ni, NavigationMenuContent as Oi, NavigationMenuIndicator as $i, NavigationMenuItem as Ki, NavigationMenuLink as Bi, NavigationMenuList as Vi, NavigationMenuRoot as Hi, NavigationMenuTrigger as zi, NavigationMenuViewport as qi } from "./NavigationMenu.esm.js";
|
|
50
|
+
import { Menubar as Ui } from "./Menubar.esm.js";
|
|
51
|
+
import { Dialog as _i } from "./Dialog.esm.js";
|
|
52
|
+
import { DialogProvider as Xi, useDialog as Yi } from "./DialogProvider.esm.js";
|
|
53
|
+
import { Popover as Ji } from "./Popover.esm.js";
|
|
54
|
+
import { Tabs as es } from "./Tabs.esm.js";
|
|
55
|
+
import { Menu as rs, MenuItem as os, MenuSectionLabel as ns, MenuSeparator as is } from "./Menu.esm.js";
|
|
56
|
+
import { Icon as us } from "./Icon.esm.js";
|
|
57
|
+
import { ToastAPI as as, ToastProvider as fs, toast as cs, toastApi as ms, useToast as ps } from "./ToastAPI.esm.js";
|
|
58
|
+
import { Toast as gs } from "./Toast.esm.js";
|
|
59
|
+
import { FloatingToolbar as xs } from "./FloatingToolbar.esm.js";
|
|
60
|
+
import { BlockControls as Ps } from "./BlockControls.esm.js";
|
|
61
|
+
import { Kbd as Ds } from "./Kbd.esm.js";
|
|
62
|
+
import { Shortcut as hs } from "./Shortcut.esm.js";
|
|
63
|
+
import { Command as Es, CommandItem as Is } from "./Command.esm.js";
|
|
64
|
+
import { CommandPalette as Ms, CommandPaletteItem as Fs } from "./CommandPalette.esm.js";
|
|
65
|
+
import { ContextMenu as Ls } from "./ContextMenu.esm.js";
|
|
66
|
+
import { SelectionPopup as Ss } from "./SelectionPopup.esm.js";
|
|
67
|
+
import { PluginPanel as Ns } from "./PluginPanel.esm.js";
|
|
68
|
+
import { Form as $s } from "./Form.esm.js";
|
|
69
69
|
import S, { useRef as R, useCallback as D, useState as H, useLayoutEffect as Le, useEffect as K, createContext as ae, useMemo as V, useContext as re } from "react";
|
|
70
70
|
import { createPositioner as Ue, createVirtualPoint as je } from "@editora/ui-core/runtime";
|
|
71
71
|
import { createPortal as _e } from "react-dom";
|
|
72
|
-
import { Box as
|
|
73
|
-
import { Flex as
|
|
74
|
-
import { Grid as
|
|
75
|
-
import { PlacementGrid as
|
|
76
|
-
import { MasonryGrid as
|
|
77
|
-
import { Section as
|
|
78
|
-
import { Container as
|
|
79
|
-
import { Sidebar as
|
|
80
|
-
import { Panel as
|
|
81
|
-
import { Tree as
|
|
82
|
-
import { Breadcrumb as
|
|
83
|
-
import { AppHeader as
|
|
84
|
-
import { PageHeader as
|
|
85
|
-
import { PageToolbar as
|
|
86
|
-
import { RecordHeader as
|
|
87
|
-
import { Drawer as
|
|
88
|
-
import { Layout as
|
|
89
|
-
import { ThemeProvider as
|
|
90
|
-
import { Collection as
|
|
91
|
-
import { Listbox as
|
|
92
|
-
import { RovingFocusGroup as
|
|
93
|
-
import { DismissableLayer as
|
|
94
|
-
import { FocusScope as
|
|
95
|
-
import { Positioner as
|
|
96
|
-
import { Anchor as
|
|
97
|
-
import { Checkbox as
|
|
98
|
-
import { Radio as
|
|
99
|
-
import { RadioGroup as
|
|
100
|
-
import { Switch as
|
|
101
|
-
import { Toggle as
|
|
102
|
-
import { ToggleGroup as
|
|
103
|
-
import { AspectRatio as
|
|
104
|
-
import { Avatar as
|
|
105
|
-
import { Presence as
|
|
106
|
-
import { Progress as
|
|
107
|
-
import { Meter as
|
|
108
|
-
import { Portal as
|
|
109
|
-
import { ScrollArea as
|
|
110
|
-
import { Separator as
|
|
111
|
-
import { Slot as
|
|
112
|
-
import { Toolbar as
|
|
113
|
-
import { VisuallyHidden as
|
|
114
|
-
import { Collapsible as
|
|
115
|
-
import { Pagination as
|
|
116
|
-
import { Accordion as
|
|
117
|
-
import { DirectionProvider as
|
|
118
|
-
import { HoverCard as
|
|
119
|
-
import { Card as
|
|
120
|
-
import { Label as
|
|
121
|
-
import { AlertDialog as
|
|
122
|
-
import { AlertDialogProvider as
|
|
123
|
-
import { AnimatedText as
|
|
124
|
-
import { SpinningText as
|
|
125
|
-
import { NumberTicker as
|
|
126
|
-
import { AnimatedList as
|
|
127
|
-
import { AnimatedBeam as
|
|
128
|
-
import { IconCloud as
|
|
129
|
-
import { Dock as
|
|
130
|
-
import { Orbiter as
|
|
131
|
-
import { Marquee as
|
|
132
|
-
import { Select as
|
|
133
|
-
import { Slider as
|
|
134
|
-
import { Skeleton as
|
|
135
|
-
import { AnimatedNumber as
|
|
136
|
-
import { toastAdvanced as
|
|
72
|
+
import { Box as Bs } from "./Box.esm.js";
|
|
73
|
+
import { Flex as Hs } from "./Flex.esm.js";
|
|
74
|
+
import { Grid as qs } from "./Grid.esm.js";
|
|
75
|
+
import { PlacementGrid as Us } from "./PlacementGrid.esm.js";
|
|
76
|
+
import { MasonryGrid as _s } from "./MasonryGrid.esm.js";
|
|
77
|
+
import { Section as Xs } from "./Section.esm.js";
|
|
78
|
+
import { Container as Zs } from "./Container.esm.js";
|
|
79
|
+
import { Sidebar as Ws } from "./Sidebar.esm.js";
|
|
80
|
+
import { Panel as tu, PanelGroup as ru, Splitter as ou } from "./PanelGroup.esm.js";
|
|
81
|
+
import { Tree as iu } from "./Tree.esm.js";
|
|
82
|
+
import { Breadcrumb as uu } from "./Breadcrumb.esm.js";
|
|
83
|
+
import { AppHeader as au, AppHeaderCenter as fu, AppHeaderEnd as cu, AppHeaderStart as mu, AppHeaderSubtitle as pu, AppHeaderTitle as du } from "./AppHeader.esm.js";
|
|
84
|
+
import { PageHeader as yu } from "./PageHeader.esm.js";
|
|
85
|
+
import { PageToolbar as wu } from "./PageToolbar.esm.js";
|
|
86
|
+
import { RecordHeader as bu } from "./RecordHeader.esm.js";
|
|
87
|
+
import { Drawer as vu } from "./Drawer.esm.js";
|
|
88
|
+
import { Layout as Au } from "./Layout.esm.js";
|
|
89
|
+
import { ThemeProvider as Iu, useTheme as Ru } from "./ThemeProvider.esm.js";
|
|
90
|
+
import { Collection as Fu } from "./Collection.esm.js";
|
|
91
|
+
import { Listbox as Lu } from "./Listbox.esm.js";
|
|
92
|
+
import { RovingFocusGroup as Su } from "./RovingFocusGroup.esm.js";
|
|
93
|
+
import { DismissableLayer as Nu } from "./DismissableLayer.esm.js";
|
|
94
|
+
import { FocusScope as $u } from "./FocusScope.esm.js";
|
|
95
|
+
import { Positioner as Bu } from "./Positioner.esm.js";
|
|
96
|
+
import { Anchor as Hu } from "./Anchor.esm.js";
|
|
97
|
+
import { Checkbox as qu } from "./Checkbox.esm.js";
|
|
98
|
+
import { Radio as Uu } from "./Radio.esm.js";
|
|
99
|
+
import { RadioGroup as _u } from "./RadioGroup.esm.js";
|
|
100
|
+
import { Switch as Xu } from "./Switch.esm.js";
|
|
101
|
+
import { Toggle as Zu } from "./Toggle.esm.js";
|
|
102
|
+
import { ToggleGroup as Wu } from "./ToggleGroup.esm.js";
|
|
103
|
+
import { AspectRatio as tl } from "./AspectRatio.esm.js";
|
|
104
|
+
import { Avatar as ol } from "./Avatar.esm.js";
|
|
105
|
+
import { Presence as il } from "./Presence.esm.js";
|
|
106
|
+
import { Progress as ul } from "./Progress.esm.js";
|
|
107
|
+
import { Meter as al } from "./Meter.esm.js";
|
|
108
|
+
import { Portal as cl } from "./Portal.esm.js";
|
|
109
|
+
import { ScrollArea as pl } from "./ScrollArea.esm.js";
|
|
110
|
+
import { Separator as gl } from "./Separator.esm.js";
|
|
111
|
+
import { Slot as xl } from "./Slot.esm.js";
|
|
112
|
+
import { Toolbar as Pl } from "./Toolbar.esm.js";
|
|
113
|
+
import { VisuallyHidden as Dl } from "./VisuallyHidden.esm.js";
|
|
114
|
+
import { Collapsible as hl } from "./Collapsible.esm.js";
|
|
115
|
+
import { Pagination as El } from "./Pagination.esm.js";
|
|
116
|
+
import { Accordion as Rl } from "./Accordion.esm.js";
|
|
117
|
+
import { DirectionProvider as Fl } from "./DirectionProvider.esm.js";
|
|
118
|
+
import { HoverCard as Ll } from "./HoverCard.esm.js";
|
|
119
|
+
import { Card as Sl } from "./Card.esm.js";
|
|
120
|
+
import { Label as Nl } from "./Label.esm.js";
|
|
121
|
+
import { AlertDialog as $l, AlertDialogActions as Kl, AlertDialogContent as Bl, AlertDialogDescription as Vl, AlertDialogIcon as Hl, AlertDialogTitle as zl } from "./AlertDialog.esm.js";
|
|
122
|
+
import { AlertDialogProvider as Gl, useAlertDialog as Ul } from "./AlertDialogProvider.esm.js";
|
|
123
|
+
import { AnimatedText as _l } from "./AnimatedText.esm.js";
|
|
124
|
+
import { SpinningText as Xl } from "./SpinningText.esm.js";
|
|
125
|
+
import { NumberTicker as Zl } from "./NumberTicker.esm.js";
|
|
126
|
+
import { AnimatedList as Wl } from "./AnimatedList.esm.js";
|
|
127
|
+
import { AnimatedBeam as ta } from "./AnimatedBeam.esm.js";
|
|
128
|
+
import { IconCloud as oa } from "./IconCloud.esm.js";
|
|
129
|
+
import { Dock as ia } from "./Dock.esm.js";
|
|
130
|
+
import { Orbiter as ua } from "./Orbiter.esm.js";
|
|
131
|
+
import { Marquee as aa } from "./Marquee.esm.js";
|
|
132
|
+
import { Select as ca } from "./Select.esm.js";
|
|
133
|
+
import { Slider as pa } from "./Slider.esm.js";
|
|
134
|
+
import { Skeleton as ga } from "./Skeleton.esm.js";
|
|
135
|
+
import { AnimatedNumber as xa, useAnimatedNumber as wa, useAnimatedNumberValue as Pa } from "./AnimatedNumber.esm.js";
|
|
136
|
+
import { toastAdvanced as Da, default as va, toastPro as ha } from "@editora/toast";
|
|
137
|
+
import "@editora/ui-core/button";
|
|
137
138
|
import "./_internals-68620b0c.mjs";
|
|
139
|
+
import "@editora/ui-core/tooltip";
|
|
140
|
+
import "@editora/ui-core/alert";
|
|
141
|
+
import "@editora/ui-core/dropdown";
|
|
142
|
+
import "@editora/ui-core/input";
|
|
143
|
+
import "@editora/ui-core/password-field";
|
|
144
|
+
import "@editora/ui-core/tags-input";
|
|
145
|
+
import "@editora/ui-core/pin-input";
|
|
146
|
+
import "@editora/ui-core/file-upload";
|
|
147
|
+
import "@editora/ui-core/textarea";
|
|
148
|
+
import "@editora/ui-core/field";
|
|
149
|
+
import "@editora/ui-core/select";
|
|
150
|
+
import "@editora/ui-core/combobox";
|
|
151
|
+
import "@editora/ui-core/badge";
|
|
152
|
+
import "@editora/ui-core/empty-state";
|
|
153
|
+
import "@editora/ui-core/table";
|
|
154
|
+
import "@editora/ui-core/data-table";
|
|
155
|
+
import "@editora/ui-core/chart";
|
|
156
|
+
import "@editora/ui-core/timeline";
|
|
157
|
+
import "@editora/ui-core/calendar";
|
|
158
|
+
import "@editora/ui-core/color-picker";
|
|
159
|
+
import "@editora/ui-core/date-picker";
|
|
160
|
+
import "@editora/ui-core/date-range-picker";
|
|
161
|
+
import "@editora/ui-core/date-field";
|
|
162
|
+
import "@editora/ui-core/number-field";
|
|
163
|
+
import "@editora/ui-core/multi-select";
|
|
164
|
+
import "@editora/ui-core/split-button";
|
|
165
|
+
import "@editora/ui-core/transfer-list";
|
|
166
|
+
import "@editora/ui-core/inline-edit";
|
|
167
|
+
import "@editora/ui-core/time-picker";
|
|
168
|
+
import "@editora/ui-core/date-time-picker";
|
|
169
|
+
import "@editora/ui-core/date-range-time-picker";
|
|
170
|
+
import "@editora/ui-core/gantt";
|
|
171
|
+
import "@editora/ui-core/stepper";
|
|
172
|
+
import "@editora/ui-core/wizard";
|
|
173
|
+
import "@editora/ui-core/rating";
|
|
174
|
+
import "@editora/ui-core/quick-actions";
|
|
175
|
+
import "@editora/ui-core/navigation-menu";
|
|
176
|
+
import "@editora/ui-core/menubar";
|
|
177
|
+
import "@editora/ui-core/dialog";
|
|
178
|
+
import "@editora/ui-core/popover";
|
|
179
|
+
import "@editora/ui-core/tabs";
|
|
180
|
+
import "@editora/ui-core/menu";
|
|
181
|
+
import "@editora/ui-core/icon";
|
|
182
|
+
import "@editora/ui-core/toast";
|
|
183
|
+
import "@editora/ui-core/floating-toolbar";
|
|
184
|
+
import "@editora/ui-core/block-controls";
|
|
185
|
+
import "@editora/ui-core/command";
|
|
186
|
+
import "@editora/ui-core/command-palette";
|
|
187
|
+
import "@editora/ui-core/context-menu";
|
|
188
|
+
import "@editora/ui-core/selection-popup";
|
|
189
|
+
import "@editora/ui-core/plugin-panel";
|
|
190
|
+
import "@editora/ui-core/form";
|
|
191
|
+
import "@editora/ui-core/box";
|
|
192
|
+
import "@editora/ui-core/flex";
|
|
193
|
+
import "@editora/ui-core/grid";
|
|
194
|
+
import "@editora/ui-core/placement-grid";
|
|
195
|
+
import "@editora/ui-core/masonry-grid";
|
|
196
|
+
import "@editora/ui-core/section";
|
|
197
|
+
import "@editora/ui-core/container";
|
|
198
|
+
import "@editora/ui-core/sidebar";
|
|
138
199
|
import "react-dom/server";
|
|
139
|
-
|
|
140
|
-
|
|
200
|
+
import "@editora/ui-core/panel-group";
|
|
201
|
+
import "@editora/ui-core/tree";
|
|
202
|
+
import "@editora/ui-core/breadcrumb";
|
|
203
|
+
import "@editora/ui-core/app-header";
|
|
204
|
+
import "@editora/ui-core/drawer";
|
|
205
|
+
import "@editora/ui-core/layout";
|
|
206
|
+
import "@editora/ui-core/collection";
|
|
207
|
+
import "@editora/ui-core/listbox";
|
|
208
|
+
import "@editora/ui-core/roving-focus-group";
|
|
209
|
+
import "@editora/ui-core/dismissable-layer";
|
|
210
|
+
import "@editora/ui-core/focus-scope";
|
|
211
|
+
import "@editora/ui-core/positioner";
|
|
212
|
+
import "@editora/ui-core/anchor";
|
|
213
|
+
import "@editora/ui-core/checkbox";
|
|
214
|
+
import "@editora/ui-core/radio";
|
|
215
|
+
import "@editora/ui-core/radio-group";
|
|
216
|
+
import "@editora/ui-core/switch";
|
|
217
|
+
import "@editora/ui-core/toggle";
|
|
218
|
+
import "@editora/ui-core/toggle-group";
|
|
219
|
+
import "@editora/ui-core/aspect-ratio";
|
|
220
|
+
import "@editora/ui-core/avatar";
|
|
221
|
+
import "@editora/ui-core/presence";
|
|
222
|
+
import "@editora/ui-core/progress";
|
|
223
|
+
import "@editora/ui-core/meter";
|
|
224
|
+
import "@editora/ui-core/portal";
|
|
225
|
+
import "@editora/ui-core/scroll-area";
|
|
226
|
+
import "@editora/ui-core/separator";
|
|
227
|
+
import "@editora/ui-core/slot";
|
|
228
|
+
import "@editora/ui-core/toolbar";
|
|
229
|
+
import "@editora/ui-core/visually-hidden";
|
|
230
|
+
import "@editora/ui-core/collapsible";
|
|
231
|
+
import "@editora/ui-core/pagination";
|
|
232
|
+
import "@editora/ui-core/accordion";
|
|
233
|
+
import "@editora/ui-core/direction-provider";
|
|
234
|
+
import "@editora/ui-core/hover-card";
|
|
235
|
+
import "@editora/ui-core/card";
|
|
236
|
+
import "@editora/ui-core/label";
|
|
237
|
+
import "@editora/ui-core/alert-dialog";
|
|
238
|
+
import "@editora/ui-core/animated-text";
|
|
239
|
+
import "@editora/ui-core/spinning-text";
|
|
240
|
+
import "@editora/ui-core/number-ticker";
|
|
241
|
+
import "@editora/ui-core/animated-list";
|
|
242
|
+
import "@editora/ui-core/animated-beam";
|
|
243
|
+
import "@editora/ui-core/icon-cloud";
|
|
244
|
+
import "@editora/ui-core/dock";
|
|
245
|
+
import "@editora/ui-core/orbiter";
|
|
246
|
+
import "@editora/ui-core/marquee";
|
|
247
|
+
import "@editora/ui-core/slider";
|
|
248
|
+
import "@editora/ui-core/skeleton";
|
|
249
|
+
function ao() {
|
|
250
|
+
const e = R(null), o = D(async () => {
|
|
141
251
|
const c = e.current;
|
|
142
252
|
return c ? await c.submit() : !1;
|
|
143
253
|
}, []), r = D(async () => {
|
|
@@ -147,7 +257,7 @@ function ut() {
|
|
|
147
257
|
var i;
|
|
148
258
|
const c = e.current;
|
|
149
259
|
return c ? (i = c.getValues) == null ? void 0 : i.call(c) : {};
|
|
150
|
-
}, []),
|
|
260
|
+
}, []), n = D((c) => {
|
|
151
261
|
var u;
|
|
152
262
|
const i = e.current;
|
|
153
263
|
return (u = i == null ? void 0 : i.reset) == null ? void 0 : u.call(i, c);
|
|
@@ -160,39 +270,39 @@ function ut() {
|
|
|
160
270
|
const i = e.current;
|
|
161
271
|
return (u = i == null ? void 0 : i.markClean) == null ? void 0 : u.call(i, c);
|
|
162
272
|
}, []);
|
|
163
|
-
return { ref: e, submit:
|
|
273
|
+
return { ref: e, submit: o, validate: r, getValues: t, reset: n, isDirty: f, markClean: s };
|
|
164
274
|
}
|
|
165
275
|
const Te = typeof window < "u" ? Le : K;
|
|
166
|
-
function ye(e,
|
|
276
|
+
function ye(e, o) {
|
|
167
277
|
if (e) {
|
|
168
278
|
if (typeof e == "function") {
|
|
169
|
-
e(
|
|
279
|
+
e(o);
|
|
170
280
|
return;
|
|
171
281
|
}
|
|
172
|
-
e.current =
|
|
282
|
+
e.current = o;
|
|
173
283
|
}
|
|
174
284
|
}
|
|
175
285
|
function xe(...e) {
|
|
176
|
-
return (
|
|
177
|
-
e.forEach((r) => ye(r,
|
|
286
|
+
return (o) => {
|
|
287
|
+
e.forEach((r) => ye(r, o));
|
|
178
288
|
};
|
|
179
289
|
}
|
|
180
290
|
function Qe(...e) {
|
|
181
|
-
return (...
|
|
182
|
-
e.forEach((r) => r == null ? void 0 : r(...
|
|
291
|
+
return (...o) => {
|
|
292
|
+
e.forEach((r) => r == null ? void 0 : r(...o));
|
|
183
293
|
};
|
|
184
294
|
}
|
|
185
|
-
function k(e,
|
|
295
|
+
function k(e, o, r = {}) {
|
|
186
296
|
return (t) => {
|
|
187
|
-
e == null || e(t), !((r.checkDefaultPrevented ?? !0) && t.defaultPrevented) &&
|
|
297
|
+
e == null || e(t), !((r.checkDefaultPrevented ?? !0) && t.defaultPrevented) && o(t);
|
|
188
298
|
};
|
|
189
299
|
}
|
|
190
|
-
function
|
|
300
|
+
function fo(e) {
|
|
191
301
|
const {
|
|
192
|
-
placement:
|
|
302
|
+
placement: o = "bottom",
|
|
193
303
|
offset: r = 8,
|
|
194
304
|
open: t,
|
|
195
|
-
onOpen:
|
|
305
|
+
onOpen: n,
|
|
196
306
|
onClose: f,
|
|
197
307
|
onOpenChange: s,
|
|
198
308
|
role: c = "menu",
|
|
@@ -200,9 +310,9 @@ function lt(e) {
|
|
|
200
310
|
shift: u = !0,
|
|
201
311
|
matchWidth: a = !1,
|
|
202
312
|
fitViewport: m = !1,
|
|
203
|
-
strategy:
|
|
313
|
+
strategy: d = "absolute",
|
|
204
314
|
arrowPadding: l = 8,
|
|
205
|
-
dir:
|
|
315
|
+
dir: p,
|
|
206
316
|
boundary: y = null,
|
|
207
317
|
boundaryPadding: P,
|
|
208
318
|
autoPlacement: F = !1,
|
|
@@ -219,14 +329,14 @@ function lt(e) {
|
|
|
219
329
|
observeFloatingResize: b,
|
|
220
330
|
animationFrame: A,
|
|
221
331
|
middleware: C
|
|
222
|
-
} = e || {}, O = R(null), v = R(null), z = R(null), Y = R(null), te = R(null),
|
|
332
|
+
} = e || {}, O = R(null), v = R(null), z = R(null), Y = R(null), te = R(null), oe = R(`floating-${Math.random().toString(36).slice(2, 9)}`), [$e, be] = H(0), [De, Ke] = H(null), [Z, Be] = H(null), [ve, Ve] = H(null), [J, He] = H({ top: 0, left: 0, placement: o }), fe = typeof t < "u", [ze, qe] = H(!!t), q = fe ? !!t : ze, he = D(() => {
|
|
223
333
|
var x;
|
|
224
334
|
(x = te.current) == null || x.update();
|
|
225
335
|
}, []), _ = D(
|
|
226
336
|
(x, w = "manual") => {
|
|
227
|
-
fe || qe(x), s == null || s(x, w), x ?
|
|
337
|
+
fe || qe(x), s == null || s(x, w), x ? n == null || n(w) : f == null || f(w);
|
|
228
338
|
},
|
|
229
|
-
[fe,
|
|
339
|
+
[fe, n, f, s]
|
|
230
340
|
), ce = D((x = "manual") => _(!q, x), [q, _]), Ae = D((x = "manual") => _(!0, x), [_]), Ee = D((x = "manual") => _(!1, x), [_]);
|
|
231
341
|
Te(() => {
|
|
232
342
|
var h;
|
|
@@ -239,8 +349,8 @@ function lt(e) {
|
|
|
239
349
|
return W && (w.style.visibility = "hidden", w.style.pointerEvents = "none"), (h = te.current) == null || h.destroy(), te.current = Ue({
|
|
240
350
|
anchor: Y.current || x,
|
|
241
351
|
floating: w,
|
|
242
|
-
placement:
|
|
243
|
-
strategy:
|
|
352
|
+
placement: o,
|
|
353
|
+
strategy: d,
|
|
244
354
|
offset: r,
|
|
245
355
|
flip: i,
|
|
246
356
|
shift: u,
|
|
@@ -248,7 +358,7 @@ function lt(e) {
|
|
|
248
358
|
fitViewport: m,
|
|
249
359
|
arrow: ve,
|
|
250
360
|
arrowPadding: l,
|
|
251
|
-
dir:
|
|
361
|
+
dir: p,
|
|
252
362
|
boundary: y,
|
|
253
363
|
boundaryPadding: P,
|
|
254
364
|
autoPlacement: F,
|
|
@@ -284,8 +394,8 @@ function lt(e) {
|
|
|
284
394
|
};
|
|
285
395
|
}, [
|
|
286
396
|
q,
|
|
287
|
-
|
|
288
|
-
|
|
397
|
+
o,
|
|
398
|
+
d,
|
|
289
399
|
r,
|
|
290
400
|
i,
|
|
291
401
|
u,
|
|
@@ -296,7 +406,7 @@ function lt(e) {
|
|
|
296
406
|
Z,
|
|
297
407
|
ve,
|
|
298
408
|
l,
|
|
299
|
-
|
|
409
|
+
p,
|
|
300
410
|
y,
|
|
301
411
|
P,
|
|
302
412
|
F,
|
|
@@ -316,13 +426,13 @@ function lt(e) {
|
|
|
316
426
|
]), Te(() => {
|
|
317
427
|
!q || !Z || (Z.style.visibility = "", Z.style.pointerEvents = "");
|
|
318
428
|
}, [J.left, J.top, q, Z]);
|
|
319
|
-
const
|
|
429
|
+
const ne = D((x) => {
|
|
320
430
|
O.current = x, Ke((w) => w === x ? w : x);
|
|
321
431
|
}, []), ie = D((x) => {
|
|
322
432
|
v.current = x, Be((w) => w === x ? w : x);
|
|
323
433
|
}, []), me = D((x) => {
|
|
324
434
|
z.current = x, Ve((w) => w === x ? w : x);
|
|
325
|
-
}, []),
|
|
435
|
+
}, []), pe = D((x) => {
|
|
326
436
|
Y.current = x, be((w) => w + 1);
|
|
327
437
|
}, []), Ge = D((x, w) => {
|
|
328
438
|
const $ = O.current || v.current || void 0;
|
|
@@ -338,7 +448,7 @@ function lt(e) {
|
|
|
338
448
|
w[$].focus();
|
|
339
449
|
} catch {
|
|
340
450
|
}
|
|
341
|
-
},
|
|
451
|
+
}, de = () => ue(0), Ie = () => {
|
|
342
452
|
const x = se();
|
|
343
453
|
x.length && ue(x.length - 1);
|
|
344
454
|
}, Re = () => {
|
|
@@ -349,10 +459,10 @@ function lt(e) {
|
|
|
349
459
|
ue(w <= 0 ? x.length - 1 : w - 1);
|
|
350
460
|
};
|
|
351
461
|
return {
|
|
352
|
-
referenceRef:
|
|
462
|
+
referenceRef: ne,
|
|
353
463
|
floatingRef: ie,
|
|
354
464
|
arrowRef: me,
|
|
355
|
-
setPositionReference:
|
|
465
|
+
setPositionReference: pe,
|
|
356
466
|
setClientPoint: Ge,
|
|
357
467
|
coords: J,
|
|
358
468
|
update: he,
|
|
@@ -366,16 +476,16 @@ function lt(e) {
|
|
|
366
476
|
return {
|
|
367
477
|
...W,
|
|
368
478
|
ref: (h) => {
|
|
369
|
-
|
|
479
|
+
ne(h), ye(X, h);
|
|
370
480
|
},
|
|
371
481
|
"aria-haspopup": c,
|
|
372
|
-
"aria-controls":
|
|
482
|
+
"aria-controls": oe.current,
|
|
373
483
|
"aria-expanded": q ? "true" : "false",
|
|
374
484
|
onClick: (h) => {
|
|
375
485
|
w == null || w(h), !h.defaultPrevented && ce();
|
|
376
486
|
},
|
|
377
487
|
onKeyDown: (h) => {
|
|
378
|
-
$ == null || $(h), !h.defaultPrevented && h.key === "ArrowDown" && (h.preventDefault(), Ae("list-navigation"), setTimeout(() =>
|
|
488
|
+
$ == null || $(h), !h.defaultPrevented && h.key === "ArrowDown" && (h.preventDefault(), Ae("list-navigation"), setTimeout(() => de(), 0));
|
|
379
489
|
}
|
|
380
490
|
};
|
|
381
491
|
},
|
|
@@ -383,7 +493,7 @@ function lt(e) {
|
|
|
383
493
|
const { onKeyDown: w, style: $, ref: X, ...W } = x;
|
|
384
494
|
return {
|
|
385
495
|
...W,
|
|
386
|
-
id:
|
|
496
|
+
id: oe.current,
|
|
387
497
|
ref: (h) => {
|
|
388
498
|
ie(h), ye(X, h);
|
|
389
499
|
},
|
|
@@ -391,17 +501,17 @@ function lt(e) {
|
|
|
391
501
|
tabIndex: -1,
|
|
392
502
|
style: {
|
|
393
503
|
...$ || {},
|
|
394
|
-
position:
|
|
504
|
+
position: d,
|
|
395
505
|
top: J.top,
|
|
396
506
|
left: J.left
|
|
397
507
|
},
|
|
398
508
|
hidden: !q,
|
|
399
509
|
onKeyDown: (h) => {
|
|
400
|
-
w == null || w(h), !h.defaultPrevented && (h.key === "Escape" ? (h.preventDefault(), Ee("dismiss")) : h.key === "ArrowDown" ? (h.preventDefault(), Re()) : h.key === "ArrowUp" ? (h.preventDefault(), Me()) : h.key === "Home" ? (h.preventDefault(),
|
|
510
|
+
w == null || w(h), !h.defaultPrevented && (h.key === "Escape" ? (h.preventDefault(), Ee("dismiss")) : h.key === "ArrowDown" ? (h.preventDefault(), Re()) : h.key === "ArrowUp" ? (h.preventDefault(), Me()) : h.key === "Home" ? (h.preventDefault(), de()) : h.key === "End" && (h.preventDefault(), Ie()));
|
|
401
511
|
}
|
|
402
512
|
};
|
|
403
513
|
},
|
|
404
|
-
focusFirstItem:
|
|
514
|
+
focusFirstItem: de,
|
|
405
515
|
focusLastItem: Ie,
|
|
406
516
|
focusNext: Re,
|
|
407
517
|
focusPrev: Me,
|
|
@@ -409,10 +519,10 @@ function lt(e) {
|
|
|
409
519
|
reference: O,
|
|
410
520
|
floating: v,
|
|
411
521
|
arrow: z,
|
|
412
|
-
setReference:
|
|
522
|
+
setReference: ne,
|
|
413
523
|
setFloating: ie,
|
|
414
524
|
setArrow: me,
|
|
415
|
-
setPositionReference:
|
|
525
|
+
setPositionReference: pe
|
|
416
526
|
},
|
|
417
527
|
elements: {
|
|
418
528
|
get reference() {
|
|
@@ -425,9 +535,9 @@ function lt(e) {
|
|
|
425
535
|
return z.current;
|
|
426
536
|
}
|
|
427
537
|
},
|
|
428
|
-
floatingId:
|
|
538
|
+
floatingId: oe.current,
|
|
429
539
|
role: c,
|
|
430
|
-
placement:
|
|
540
|
+
placement: o,
|
|
431
541
|
context: {
|
|
432
542
|
open: q,
|
|
433
543
|
setOpen: _,
|
|
@@ -436,10 +546,10 @@ function lt(e) {
|
|
|
436
546
|
reference: O,
|
|
437
547
|
floating: v,
|
|
438
548
|
arrow: z,
|
|
439
|
-
setReference:
|
|
549
|
+
setReference: ne,
|
|
440
550
|
setFloating: ie,
|
|
441
551
|
setArrow: me,
|
|
442
|
-
setPositionReference:
|
|
552
|
+
setPositionReference: pe
|
|
443
553
|
},
|
|
444
554
|
elements: {
|
|
445
555
|
get reference() {
|
|
@@ -454,44 +564,44 @@ function lt(e) {
|
|
|
454
564
|
},
|
|
455
565
|
coords: J,
|
|
456
566
|
update: he,
|
|
457
|
-
floatingId:
|
|
567
|
+
floatingId: oe.current,
|
|
458
568
|
role: c,
|
|
459
|
-
placement:
|
|
460
|
-
strategy:
|
|
569
|
+
placement: o,
|
|
570
|
+
strategy: d
|
|
461
571
|
}
|
|
462
572
|
};
|
|
463
573
|
}
|
|
464
|
-
function ge(e,
|
|
574
|
+
function ge(e, o = {}) {
|
|
465
575
|
return e.reduce((r, t) => {
|
|
466
|
-
const
|
|
467
|
-
return Xe(r,
|
|
468
|
-
},
|
|
576
|
+
const n = (t == null ? void 0 : t(r)) || r;
|
|
577
|
+
return Xe(r, n);
|
|
578
|
+
}, o);
|
|
469
579
|
}
|
|
470
|
-
function Xe(e,
|
|
471
|
-
const r = { ...e, ...
|
|
580
|
+
function Xe(e, o) {
|
|
581
|
+
const r = { ...e, ...o };
|
|
472
582
|
return Object.keys(e).forEach((t) => {
|
|
473
|
-
/^on[A-Z]/.test(t) && typeof e[t] == "function" && typeof
|
|
474
|
-
}), (e.ref ||
|
|
583
|
+
/^on[A-Z]/.test(t) && typeof e[t] == "function" && typeof o[t] == "function" && (r[t] = Qe(e[t], o[t]));
|
|
584
|
+
}), (e.ref || o.ref) && (r.ref = xe(e.ref, o.ref)), (e.style || o.style) && (r.style = { ...e.style || {}, ...o.style || {} }), r;
|
|
475
585
|
}
|
|
476
|
-
function Q(e,
|
|
477
|
-
return !!e && !!
|
|
586
|
+
function Q(e, o) {
|
|
587
|
+
return !!e && !!o && e.contains(o);
|
|
478
588
|
}
|
|
479
|
-
function ee(e,
|
|
480
|
-
return typeof e == "number" ? e : (e == null ? void 0 : e[
|
|
589
|
+
function ee(e, o) {
|
|
590
|
+
return typeof e == "number" ? e : (e == null ? void 0 : e[o]) ?? 0;
|
|
481
591
|
}
|
|
482
592
|
function le(e) {
|
|
483
593
|
return Array.from(
|
|
484
594
|
(e == null ? void 0 : e.querySelectorAll(
|
|
485
595
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
486
596
|
)) || []
|
|
487
|
-
).filter((
|
|
597
|
+
).filter((o) => !o.hasAttribute("disabled") && o.getAttribute("aria-hidden") !== "true");
|
|
488
598
|
}
|
|
489
599
|
function Ye(e) {
|
|
490
|
-
const
|
|
491
|
-
if (!
|
|
600
|
+
const o = e.target;
|
|
601
|
+
if (!o)
|
|
492
602
|
return !0;
|
|
493
603
|
try {
|
|
494
|
-
return typeof
|
|
604
|
+
return typeof o.matches != "function" || o.matches(":focus-visible");
|
|
495
605
|
} catch {
|
|
496
606
|
return !0;
|
|
497
607
|
}
|
|
@@ -502,13 +612,13 @@ function Ce(e) {
|
|
|
502
612
|
function Se(e) {
|
|
503
613
|
if (!(e instanceof Element))
|
|
504
614
|
return null;
|
|
505
|
-
const
|
|
506
|
-
return
|
|
615
|
+
const o = e.closest("[data-floating-node-id], [data-floating-reference-id]");
|
|
616
|
+
return o && (o.dataset.floatingNodeId || o.dataset.floatingReferenceId) || null;
|
|
507
617
|
}
|
|
508
|
-
function ke(e,
|
|
509
|
-
if (!e ||
|
|
618
|
+
function ke(e, o, r) {
|
|
619
|
+
if (!e || o === r)
|
|
510
620
|
return !1;
|
|
511
|
-
let t = e.getNode(
|
|
621
|
+
let t = e.getNode(o);
|
|
512
622
|
for (; t != null && t.parentId; ) {
|
|
513
623
|
if (t.parentId === r)
|
|
514
624
|
return !0;
|
|
@@ -516,28 +626,28 @@ function ke(e, n, r) {
|
|
|
516
626
|
}
|
|
517
627
|
return !1;
|
|
518
628
|
}
|
|
519
|
-
function
|
|
520
|
-
const
|
|
629
|
+
function co(e) {
|
|
630
|
+
const o = e.filter(Boolean);
|
|
521
631
|
return V(() => ({
|
|
522
|
-
getReferenceProps: (r = {}) => ge(
|
|
523
|
-
getFloatingProps: (r = {}) => ge(
|
|
524
|
-
getItemProps: (r = {}) => ge(
|
|
525
|
-
}), [
|
|
632
|
+
getReferenceProps: (r = {}) => ge(o.map((t) => t.getReferenceProps), r),
|
|
633
|
+
getFloatingProps: (r = {}) => ge(o.map((t) => t.getFloatingProps), r),
|
|
634
|
+
getItemProps: (r = {}) => ge(o.map((t) => t.getItemProps), r)
|
|
635
|
+
}), [o]);
|
|
526
636
|
}
|
|
527
|
-
function
|
|
637
|
+
function mo(e, o = {}) {
|
|
528
638
|
const {
|
|
529
639
|
enabled: r = !0,
|
|
530
640
|
toggle: t = !0,
|
|
531
|
-
event:
|
|
641
|
+
event: n = "click",
|
|
532
642
|
ignoreMouse: f = !1,
|
|
533
643
|
keyboardHandlers: s = !0,
|
|
534
644
|
stickIfOpen: c = !1
|
|
535
|
-
} =
|
|
645
|
+
} = o;
|
|
536
646
|
return V(() => ({
|
|
537
647
|
getReferenceProps(i = {}) {
|
|
538
648
|
if (!r)
|
|
539
649
|
return i;
|
|
540
|
-
const u =
|
|
650
|
+
const u = n === "mousedown" ? "onMouseDown" : "onClick", a = (m = "click") => {
|
|
541
651
|
e.open && c || (t ? e.toggle(m) : e.setOpen(!0, m));
|
|
542
652
|
};
|
|
543
653
|
return {
|
|
@@ -550,167 +660,167 @@ function ft(e, n = {}) {
|
|
|
550
660
|
})
|
|
551
661
|
};
|
|
552
662
|
}
|
|
553
|
-
}), [e, r,
|
|
663
|
+
}), [e, r, n, f, s, c, t]);
|
|
554
664
|
}
|
|
555
|
-
function
|
|
556
|
-
const { enabled: r = !0, delay: t = 0, closeDelay:
|
|
665
|
+
function po(e, o = {}) {
|
|
666
|
+
const { enabled: r = !0, delay: t = 0, closeDelay: n, mouseOnly: f = !1, move: s = !0, restMs: c = 0 } = o, i = re(Pe), u = R(`delay-group-${Math.random().toString(36).slice(2, 9)}`), a = R(null), m = R(null), d = D(() => {
|
|
557
667
|
a.current && window.clearTimeout(a.current), a.current = null, m.current && window.clearTimeout(m.current), m.current = null;
|
|
558
|
-
}, []), l = D((
|
|
559
|
-
|
|
560
|
-
const y =
|
|
668
|
+
}, []), l = D((p) => {
|
|
669
|
+
d();
|
|
670
|
+
const y = n ?? ee(t, "close"), P = p ? i != null && i.instantPhase || i != null && i.currentId && i.currentId !== u.current ? 1 : ee(t, "open") : y;
|
|
561
671
|
a.current = window.setTimeout(() => {
|
|
562
|
-
|
|
672
|
+
p ? i == null || i.beginInstantPhase(u.current) : (i == null ? void 0 : i.currentIdRef.current) === u.current && (i.setCurrentId(null), i.scheduleInstantPhaseReset(u.current)), e.setOpen(p, "hover");
|
|
563
673
|
}, P);
|
|
564
|
-
}, [
|
|
565
|
-
return K(() =>
|
|
566
|
-
getReferenceProps(
|
|
674
|
+
}, [d, n, e, t, i]);
|
|
675
|
+
return K(() => d, [d]), V(() => ({
|
|
676
|
+
getReferenceProps(p = {}) {
|
|
567
677
|
return r ? {
|
|
568
|
-
...
|
|
569
|
-
onMouseEnter: k(
|
|
678
|
+
...p,
|
|
679
|
+
onMouseEnter: k(p.onMouseEnter, (y) => {
|
|
570
680
|
if (!(f && y.pointerType && y.pointerType !== "mouse")) {
|
|
571
681
|
if (c > 0) {
|
|
572
|
-
|
|
682
|
+
d(), m.current = window.setTimeout(() => l(!0), c);
|
|
573
683
|
return;
|
|
574
684
|
}
|
|
575
685
|
l(!0);
|
|
576
686
|
}
|
|
577
687
|
}),
|
|
578
|
-
onMouseLeave: k(
|
|
579
|
-
} :
|
|
688
|
+
onMouseLeave: k(p.onMouseLeave, () => l(!1))
|
|
689
|
+
} : p;
|
|
580
690
|
},
|
|
581
|
-
getFloatingProps(
|
|
691
|
+
getFloatingProps(p = {}) {
|
|
582
692
|
return r ? {
|
|
583
|
-
...
|
|
584
|
-
onMouseEnter: k(
|
|
693
|
+
...p,
|
|
694
|
+
onMouseEnter: k(p.onMouseEnter, () => {
|
|
585
695
|
s && l(!0);
|
|
586
696
|
}),
|
|
587
|
-
onMouseLeave: k(
|
|
588
|
-
} :
|
|
697
|
+
onMouseLeave: k(p.onMouseLeave, () => l(!1))
|
|
698
|
+
} : p;
|
|
589
699
|
}
|
|
590
|
-
}), [
|
|
700
|
+
}), [d, r, f, s, c, l]);
|
|
591
701
|
}
|
|
592
|
-
function
|
|
593
|
-
const { enabled: r = !0, visibleOnly: t = !0 } =
|
|
702
|
+
function go(e, o = {}) {
|
|
703
|
+
const { enabled: r = !0, visibleOnly: t = !0 } = o;
|
|
594
704
|
return V(() => ({
|
|
595
|
-
getReferenceProps(
|
|
705
|
+
getReferenceProps(n = {}) {
|
|
596
706
|
return r ? {
|
|
597
|
-
...
|
|
598
|
-
onFocus: k(
|
|
707
|
+
...n,
|
|
708
|
+
onFocus: k(n.onFocus, (f) => {
|
|
599
709
|
t && !Ye(f) || e.setOpen(!0, "focus");
|
|
600
710
|
}),
|
|
601
|
-
onBlur: k(
|
|
711
|
+
onBlur: k(n.onBlur, (f) => {
|
|
602
712
|
const s = f.relatedTarget;
|
|
603
713
|
Q(e.elements.floating, s) || e.setOpen(!1, "focus");
|
|
604
714
|
})
|
|
605
|
-
} :
|
|
715
|
+
} : n;
|
|
606
716
|
},
|
|
607
|
-
getFloatingProps(
|
|
717
|
+
getFloatingProps(n = {}) {
|
|
608
718
|
return r ? {
|
|
609
|
-
...
|
|
610
|
-
onBlur: k(
|
|
719
|
+
...n,
|
|
720
|
+
onBlur: k(n.onBlur, (f) => {
|
|
611
721
|
const s = f.relatedTarget;
|
|
612
722
|
Q(e.elements.reference, s) || Q(e.elements.floating, s) || e.setOpen(!1, "focus");
|
|
613
723
|
})
|
|
614
|
-
} :
|
|
724
|
+
} : n;
|
|
615
725
|
}
|
|
616
726
|
}), [e, r, t]);
|
|
617
727
|
}
|
|
618
|
-
function
|
|
619
|
-
const { role: r = e.role, enabled: t = !0 } =
|
|
728
|
+
function yo(e, o = {}) {
|
|
729
|
+
const { role: r = e.role, enabled: t = !0 } = o;
|
|
620
730
|
return V(() => ({
|
|
621
|
-
getReferenceProps(
|
|
731
|
+
getReferenceProps(n = {}) {
|
|
622
732
|
return t ? {
|
|
623
|
-
...
|
|
733
|
+
...n,
|
|
624
734
|
"aria-haspopup": r,
|
|
625
735
|
"aria-expanded": e.open ? "true" : "false",
|
|
626
736
|
"aria-controls": e.floatingId
|
|
627
|
-
} :
|
|
737
|
+
} : n;
|
|
628
738
|
},
|
|
629
|
-
getFloatingProps(
|
|
739
|
+
getFloatingProps(n = {}) {
|
|
630
740
|
return t ? {
|
|
631
|
-
...
|
|
741
|
+
...n,
|
|
632
742
|
id: e.floatingId,
|
|
633
743
|
role: r
|
|
634
|
-
} :
|
|
744
|
+
} : n;
|
|
635
745
|
}
|
|
636
746
|
}), [e.floatingId, e.open, t, r]);
|
|
637
747
|
}
|
|
638
|
-
function
|
|
748
|
+
function xo(e, o = {}) {
|
|
639
749
|
const {
|
|
640
750
|
enabled: r = !0,
|
|
641
751
|
escapeKey: t = !0,
|
|
642
|
-
outsidePress:
|
|
752
|
+
outsidePress: n = !0,
|
|
643
753
|
outsidePressEvent: f = "pointerdown",
|
|
644
754
|
ancestorScroll: s = !1,
|
|
645
755
|
referencePress: c = !1,
|
|
646
756
|
referencePressEvent: i = "pointerdown",
|
|
647
757
|
nodeId: u = null
|
|
648
|
-
} =
|
|
758
|
+
} = o, a = we(), m = D((l) => {
|
|
649
759
|
if (!a || !u)
|
|
650
760
|
return !1;
|
|
651
|
-
const
|
|
652
|
-
return !
|
|
653
|
-
}, [u, a]),
|
|
761
|
+
const p = Se(l);
|
|
762
|
+
return !p || p === u ? !1 : ke(a, p, u);
|
|
763
|
+
}, [u, a]), d = D((l = "dismiss") => {
|
|
654
764
|
u && (a == null || a.closeDescendants(u, l)), e.setOpen(!1, l);
|
|
655
765
|
}, [e, u, a]);
|
|
656
766
|
return K(() => {
|
|
657
767
|
if (!r || !e.open)
|
|
658
768
|
return;
|
|
659
769
|
const l = (P) => {
|
|
660
|
-
|
|
661
|
-
},
|
|
662
|
-
!t || P.key !== "Escape" || P.defaultPrevented || m(P.target) || (P.preventDefault(),
|
|
770
|
+
n && (Q(e.elements.reference, P.target) || Q(e.elements.floating, P.target) || m(P.target) || typeof n == "function" && !n(P) || d("dismiss"));
|
|
771
|
+
}, p = (P) => {
|
|
772
|
+
!t || P.key !== "Escape" || P.defaultPrevented || m(P.target) || (P.preventDefault(), d("dismiss"));
|
|
663
773
|
}, y = () => {
|
|
664
|
-
s &&
|
|
774
|
+
s && d("dismiss");
|
|
665
775
|
};
|
|
666
|
-
return document.addEventListener(f, l, !0), document.addEventListener("keydown",
|
|
667
|
-
document.removeEventListener(f, l, !0), document.removeEventListener("keydown",
|
|
776
|
+
return document.addEventListener(f, l, !0), document.addEventListener("keydown", p), window.addEventListener("scroll", y, !0), () => {
|
|
777
|
+
document.removeEventListener(f, l, !0), document.removeEventListener("keydown", p), window.removeEventListener("scroll", y, !0);
|
|
668
778
|
};
|
|
669
779
|
}, [
|
|
670
780
|
s,
|
|
671
|
-
|
|
781
|
+
d,
|
|
672
782
|
e,
|
|
673
783
|
r,
|
|
674
784
|
t,
|
|
675
785
|
m,
|
|
676
|
-
|
|
786
|
+
n,
|
|
677
787
|
f
|
|
678
788
|
]), V(() => ({
|
|
679
789
|
getReferenceProps(l = {}) {
|
|
680
790
|
if (!r && !u)
|
|
681
791
|
return l;
|
|
682
|
-
const
|
|
792
|
+
const p = i === "click" ? "onClick" : i === "mousedown" ? "onMouseDown" : "onPointerDown", y = {
|
|
683
793
|
...l,
|
|
684
794
|
"data-floating-reference-id": u ?? l["data-floating-reference-id"]
|
|
685
795
|
};
|
|
686
796
|
return c ? {
|
|
687
797
|
...y,
|
|
688
|
-
[
|
|
689
|
-
e.open &&
|
|
798
|
+
[p]: k(l[p], () => {
|
|
799
|
+
e.open && d("dismiss");
|
|
690
800
|
})
|
|
691
801
|
} : y;
|
|
692
802
|
},
|
|
693
803
|
getFloatingProps(l = {}) {
|
|
694
804
|
if (!r && !u)
|
|
695
805
|
return l;
|
|
696
|
-
const
|
|
806
|
+
const p = {
|
|
697
807
|
...l,
|
|
698
808
|
"data-floating-node-id": u ?? l["data-floating-node-id"]
|
|
699
809
|
};
|
|
700
810
|
return r ? {
|
|
701
|
-
...
|
|
811
|
+
...p,
|
|
702
812
|
onKeyDown: k(l.onKeyDown, (y) => {
|
|
703
|
-
t && y.key === "Escape" && (y.preventDefault(),
|
|
813
|
+
t && y.key === "Escape" && (y.preventDefault(), d("dismiss"));
|
|
704
814
|
})
|
|
705
|
-
} :
|
|
815
|
+
} : p;
|
|
706
816
|
}
|
|
707
|
-
}), [
|
|
817
|
+
}), [d, e, r, t, u, c, i]);
|
|
708
818
|
}
|
|
709
|
-
function
|
|
819
|
+
function wo(e, o) {
|
|
710
820
|
const {
|
|
711
821
|
enabled: r = !0,
|
|
712
822
|
listRef: t,
|
|
713
|
-
activeIndex:
|
|
823
|
+
activeIndex: n,
|
|
714
824
|
onNavigate: f,
|
|
715
825
|
loop: s = !0,
|
|
716
826
|
orientation: c = "vertical",
|
|
@@ -718,16 +828,16 @@ function gt(e, n) {
|
|
|
718
828
|
rtl: u = !1,
|
|
719
829
|
focusItemOnOpen: a = !1,
|
|
720
830
|
openOnArrowKeyDown: m = !1,
|
|
721
|
-
nested:
|
|
831
|
+
nested: d = !1,
|
|
722
832
|
nodeId: l = null,
|
|
723
|
-
getItemHasSubmenu:
|
|
833
|
+
getItemHasSubmenu: p,
|
|
724
834
|
getItemExpanded: y,
|
|
725
835
|
onOpenSubmenu: P,
|
|
726
836
|
onCloseSubmenu: F,
|
|
727
837
|
openSubmenuKey: E = u ? "ArrowLeft" : "ArrowRight",
|
|
728
838
|
closeSubmenuKey: M = u ? "ArrowRight" : "ArrowLeft",
|
|
729
|
-
restoreFocusOnClose: I =
|
|
730
|
-
} =
|
|
839
|
+
restoreFocusOnClose: I = d
|
|
840
|
+
} = o, L = D(() => {
|
|
731
841
|
var g;
|
|
732
842
|
return (g = t == null ? void 0 : t.current) == null ? void 0 : g.filter(Boolean);
|
|
733
843
|
}, [t]), B = D((g) => {
|
|
@@ -747,13 +857,13 @@ function gt(e, n) {
|
|
|
747
857
|
if (!(A != null && A.length))
|
|
748
858
|
return;
|
|
749
859
|
const C = A.indexOf(document.activeElement);
|
|
750
|
-
let v = (b ??
|
|
860
|
+
let v = (b ?? n ?? (C >= 0 ? C : -1)) + g;
|
|
751
861
|
s ? v = (v + A.length) % A.length : v = Math.max(0, Math.min(A.length - 1, v)), f(v), (z = A[v]) == null || z.focus();
|
|
752
|
-
}, [
|
|
862
|
+
}, [n, L, s, f]);
|
|
753
863
|
K(() => {
|
|
754
864
|
if (!r || !e.open || !(a === !0 || a === "auto"))
|
|
755
865
|
return;
|
|
756
|
-
const g =
|
|
866
|
+
const g = n ?? 0;
|
|
757
867
|
let b = 0, A = !1, C = 0;
|
|
758
868
|
const O = () => {
|
|
759
869
|
var Y;
|
|
@@ -774,18 +884,18 @@ function gt(e, n) {
|
|
|
774
884
|
return b = requestAnimationFrame(O), () => {
|
|
775
885
|
A = !0, cancelAnimationFrame(b);
|
|
776
886
|
};
|
|
777
|
-
}, [
|
|
887
|
+
}, [n, e.open, r, a, L, f]);
|
|
778
888
|
const U = D((g) => {
|
|
779
889
|
const b = c === "vertical" || c === "both", A = c === "horizontal" || c === "both";
|
|
780
890
|
return b && g === "ArrowDown" ? i : b && g === "ArrowUp" ? -i : A && g === (u ? "ArrowLeft" : "ArrowRight") ? 1 : A && g === (u ? "ArrowRight" : "ArrowLeft") ? -1 : 0;
|
|
781
891
|
}, [i, c, u]), j = D((g) => {
|
|
782
892
|
var C, O;
|
|
783
|
-
const b = B(g.target) ??
|
|
784
|
-
if (
|
|
893
|
+
const b = B(g.target) ?? n;
|
|
894
|
+
if (d && g.key === E && b != null && (p != null && p(b))) {
|
|
785
895
|
g.preventDefault(), f(b), P == null || P(b);
|
|
786
896
|
return;
|
|
787
897
|
}
|
|
788
|
-
if (
|
|
898
|
+
if (d && F && g.key === M) {
|
|
789
899
|
g.preventDefault(), F == null || F(), T();
|
|
790
900
|
return;
|
|
791
901
|
}
|
|
@@ -804,15 +914,15 @@ function gt(e, n) {
|
|
|
804
914
|
g.preventDefault(), f(v.length - 1), (O = v[v.length - 1]) == null || O.focus();
|
|
805
915
|
}
|
|
806
916
|
}, [
|
|
807
|
-
|
|
917
|
+
n,
|
|
808
918
|
M,
|
|
809
919
|
T,
|
|
810
920
|
U,
|
|
811
|
-
|
|
921
|
+
p,
|
|
812
922
|
B,
|
|
813
923
|
L,
|
|
814
924
|
N,
|
|
815
|
-
|
|
925
|
+
d,
|
|
816
926
|
F,
|
|
817
927
|
f,
|
|
818
928
|
P,
|
|
@@ -839,28 +949,28 @@ function gt(e, n) {
|
|
|
839
949
|
return r ? {
|
|
840
950
|
...g,
|
|
841
951
|
"data-floating-node-id": l ?? g["data-floating-node-id"],
|
|
842
|
-
"aria-activedescendant":
|
|
952
|
+
"aria-activedescendant": n != null ? `floating-item-${n}` : void 0,
|
|
843
953
|
onKeyDown: k(g.onKeyDown, j)
|
|
844
954
|
} : g;
|
|
845
955
|
},
|
|
846
956
|
getItemProps(g = {}) {
|
|
847
|
-
const b = g["data-index"], A = typeof b == "number" ? b : Number(b), C = Number.isFinite(A) ?
|
|
957
|
+
const b = g["data-index"], A = typeof b == "number" ? b : Number(b), C = Number.isFinite(A) ? p == null ? void 0 : p(A) : !1;
|
|
848
958
|
return {
|
|
849
959
|
...g,
|
|
850
960
|
id: typeof b == "number" ? `floating-item-${b}` : g.id,
|
|
851
|
-
tabIndex: b ===
|
|
852
|
-
"data-active": b ===
|
|
961
|
+
tabIndex: b === n ? 0 : -1,
|
|
962
|
+
"data-active": b === n ? "" : void 0,
|
|
853
963
|
"aria-haspopup": C ? "menu" : g["aria-haspopup"],
|
|
854
964
|
"aria-expanded": C ? String((y == null ? void 0 : y(A)) ?? !1) : g["aria-expanded"],
|
|
855
965
|
onKeyDown: k(g.onKeyDown, j)
|
|
856
966
|
};
|
|
857
967
|
}
|
|
858
968
|
}), [
|
|
859
|
-
|
|
969
|
+
n,
|
|
860
970
|
e,
|
|
861
971
|
r,
|
|
862
972
|
y,
|
|
863
|
-
|
|
973
|
+
p,
|
|
864
974
|
j,
|
|
865
975
|
U,
|
|
866
976
|
L,
|
|
@@ -870,29 +980,29 @@ function gt(e, n) {
|
|
|
870
980
|
u
|
|
871
981
|
]);
|
|
872
982
|
}
|
|
873
|
-
function
|
|
983
|
+
function Po(e, o) {
|
|
874
984
|
const {
|
|
875
985
|
enabled: r = !0,
|
|
876
986
|
labelsRef: t,
|
|
877
|
-
listRef:
|
|
987
|
+
listRef: n,
|
|
878
988
|
activeIndex: f,
|
|
879
989
|
onMatch: s,
|
|
880
990
|
resetMs: c = 750,
|
|
881
991
|
selectedIndex: i = null,
|
|
882
992
|
onTypingChange: u,
|
|
883
993
|
findMatch: a
|
|
884
|
-
} =
|
|
994
|
+
} = o, m = R(""), d = R(null);
|
|
885
995
|
return K(() => () => {
|
|
886
|
-
|
|
996
|
+
d.current && window.clearTimeout(d.current);
|
|
887
997
|
}, []), V(() => ({
|
|
888
998
|
getFloatingProps(l = {}) {
|
|
889
999
|
return r ? {
|
|
890
1000
|
...l,
|
|
891
|
-
onKeyDown: k(l.onKeyDown, (
|
|
1001
|
+
onKeyDown: k(l.onKeyDown, (p) => {
|
|
892
1002
|
var E, M;
|
|
893
|
-
if (
|
|
1003
|
+
if (p.key.length !== 1 || p.altKey || p.ctrlKey || p.metaKey)
|
|
894
1004
|
return;
|
|
895
|
-
m.current +=
|
|
1005
|
+
m.current += p.key.toLocaleLowerCase(), u == null || u(!0), d.current && window.clearTimeout(d.current), d.current = window.setTimeout(() => {
|
|
896
1006
|
m.current = "", u == null || u(!1);
|
|
897
1007
|
}, c);
|
|
898
1008
|
const y = t.current.map((I) => I.toLocaleLowerCase()), P = a ? a(y, m.current, f) : (() => {
|
|
@@ -902,14 +1012,14 @@ function yt(e, n) {
|
|
|
902
1012
|
return (T = y[B]) == null ? void 0 : T.startsWith(m.current);
|
|
903
1013
|
}) ?? null;
|
|
904
1014
|
})(), F = P == null || P < 0 ? null : P;
|
|
905
|
-
F != null && (
|
|
1015
|
+
F != null && (p.preventDefault(), s(F), (M = (E = n == null ? void 0 : n.current) == null ? void 0 : E[F]) == null || M.focus(), e.setOpen(!0, "typeahead"));
|
|
906
1016
|
})
|
|
907
1017
|
} : l;
|
|
908
1018
|
}
|
|
909
|
-
}), [f, e, r, a, t,
|
|
1019
|
+
}), [f, e, r, a, t, n, s, u, c, i]);
|
|
910
1020
|
}
|
|
911
|
-
function
|
|
912
|
-
const { duration: r = 160, initial: t, open:
|
|
1021
|
+
function bo(e, o = {}) {
|
|
1022
|
+
const { duration: r = 160, initial: t, open: n, close: f } = o, [s, c] = H(e.open), [i, u] = H(e.open ? "open" : "unmounted"), a = ee(r, "open"), m = ee(r, "close");
|
|
913
1023
|
return K(() => {
|
|
914
1024
|
if (e.open) {
|
|
915
1025
|
c(!0), u("initial");
|
|
@@ -919,34 +1029,34 @@ function xt(e, n = {}) {
|
|
|
919
1029
|
if (!s)
|
|
920
1030
|
return;
|
|
921
1031
|
u("close");
|
|
922
|
-
const
|
|
1032
|
+
const d = window.setTimeout(() => {
|
|
923
1033
|
c(!1), u("unmounted");
|
|
924
1034
|
}, m);
|
|
925
|
-
return () => window.clearTimeout(
|
|
1035
|
+
return () => window.clearTimeout(d);
|
|
926
1036
|
}, [m, e.open, s]), {
|
|
927
1037
|
isMounted: s,
|
|
928
1038
|
status: i,
|
|
929
1039
|
styles: {
|
|
930
1040
|
transition: `opacity ${i === "close" ? m : a}ms ease, transform ${i === "close" ? m : a}ms ease`,
|
|
931
1041
|
...i === "initial" ? { opacity: 0, transform: "scale(0.98)", ...t } : null,
|
|
932
|
-
...i === "open" ? { opacity: 1, transform: "scale(1)", ...
|
|
1042
|
+
...i === "open" ? { opacity: 1, transform: "scale(1)", ...n } : null,
|
|
933
1043
|
...i === "close" ? { opacity: 0, transform: "scale(0.98)", ...f } : null
|
|
934
1044
|
}
|
|
935
1045
|
};
|
|
936
1046
|
}
|
|
937
|
-
function
|
|
938
|
-
const { enabled: r = !0, axis: t = "both" } =
|
|
1047
|
+
function Do(e, o = {}) {
|
|
1048
|
+
const { enabled: r = !0, axis: t = "both" } = o, n = R({ x: 0, y: 0 });
|
|
939
1049
|
return V(() => ({
|
|
940
1050
|
getReferenceProps(f = {}) {
|
|
941
1051
|
return r ? {
|
|
942
1052
|
...f,
|
|
943
1053
|
onPointerMove: k(f.onPointerMove, (s) => {
|
|
944
|
-
|
|
945
|
-
x: t === "y" ?
|
|
946
|
-
y: t === "x" ?
|
|
1054
|
+
n.current = {
|
|
1055
|
+
x: t === "y" ? n.current.x : s.clientX,
|
|
1056
|
+
y: t === "x" ? n.current.y : s.clientY
|
|
947
1057
|
}, e.refs.setPositionReference({
|
|
948
1058
|
contextElement: e.elements.reference || void 0,
|
|
949
|
-
getBoundingClientRect: () => new DOMRect(
|
|
1059
|
+
getBoundingClientRect: () => new DOMRect(n.current.x, n.current.y, 0, 0)
|
|
950
1060
|
}), e.update();
|
|
951
1061
|
})
|
|
952
1062
|
} : f;
|
|
@@ -954,27 +1064,27 @@ function wt(e, n = {}) {
|
|
|
954
1064
|
}), [t, e, r]);
|
|
955
1065
|
}
|
|
956
1066
|
const Ne = ae(null);
|
|
957
|
-
function
|
|
958
|
-
const t = R([]),
|
|
959
|
-
elementsRef:
|
|
960
|
-
labelsRef: r ||
|
|
961
|
-
}), [
|
|
1067
|
+
function vo({ children: e, elementsRef: o, labelsRef: r }) {
|
|
1068
|
+
const t = R([]), n = R([]), f = V(() => ({
|
|
1069
|
+
elementsRef: o || t,
|
|
1070
|
+
labelsRef: r || n
|
|
1071
|
+
}), [o, r]);
|
|
962
1072
|
return /* @__PURE__ */ S.createElement(Ne.Provider, { value: f }, e);
|
|
963
1073
|
}
|
|
964
|
-
function
|
|
1074
|
+
function ho() {
|
|
965
1075
|
return re(Ne);
|
|
966
1076
|
}
|
|
967
|
-
const
|
|
968
|
-
context:
|
|
1077
|
+
const Ao = S.forwardRef(function({
|
|
1078
|
+
context: o,
|
|
969
1079
|
width: r = 14,
|
|
970
1080
|
height: t = 8,
|
|
971
|
-
fill:
|
|
1081
|
+
fill: n = "currentColor",
|
|
972
1082
|
stroke: f,
|
|
973
1083
|
strokeWidth: s = 1,
|
|
974
1084
|
style: c,
|
|
975
1085
|
...i
|
|
976
1086
|
}, u) {
|
|
977
|
-
const a =
|
|
1087
|
+
const a = o.coords.arrow, m = o.coords.placement.split("-")[0], d = {
|
|
978
1088
|
top: `M0 ${s / 2} L${r / 2} ${t - s / 2} L${r} ${s / 2}`,
|
|
979
1089
|
bottom: `M0 ${t - s / 2} L${r / 2} ${s / 2} L${r} ${t - s / 2}`,
|
|
980
1090
|
left: `M${s / 2} ${s / 2} L${r - s / 2} ${t / 2} L${s / 2} ${t - s / 2}`,
|
|
@@ -993,7 +1103,7 @@ const Dt = S.forwardRef(function({
|
|
|
993
1103
|
"div",
|
|
994
1104
|
{
|
|
995
1105
|
...i,
|
|
996
|
-
ref: xe(
|
|
1106
|
+
ref: xe(o.refs.setArrow, u),
|
|
997
1107
|
"aria-hidden": "true",
|
|
998
1108
|
"data-side": m,
|
|
999
1109
|
"data-center-offset": typeof (a == null ? void 0 : a.centerOffset) == "number" ? String(Math.round(a.centerOffset)) : void 0,
|
|
@@ -1010,8 +1120,8 @@ const Dt = S.forwardRef(function({
|
|
|
1010
1120
|
/* @__PURE__ */ S.createElement(
|
|
1011
1121
|
"path",
|
|
1012
1122
|
{
|
|
1013
|
-
d:
|
|
1014
|
-
fill:
|
|
1123
|
+
d: d[m] || d.bottom,
|
|
1124
|
+
fill: n,
|
|
1015
1125
|
stroke: f,
|
|
1016
1126
|
strokeWidth: f ? s : 0,
|
|
1017
1127
|
strokeLinejoin: "round"
|
|
@@ -1020,11 +1130,11 @@ const Dt = S.forwardRef(function({
|
|
|
1020
1130
|
)
|
|
1021
1131
|
);
|
|
1022
1132
|
});
|
|
1023
|
-
function
|
|
1133
|
+
function Eo({ children: e, root: o }) {
|
|
1024
1134
|
const [r, t] = H(!1);
|
|
1025
|
-
return K(() => t(!0), []), r ? _e(e,
|
|
1135
|
+
return K(() => t(!0), []), r ? _e(e, o || document.body) : null;
|
|
1026
1136
|
}
|
|
1027
|
-
function
|
|
1137
|
+
function Io({ lockScroll: e = !1, style: o, ...r }) {
|
|
1028
1138
|
return K(() => {
|
|
1029
1139
|
if (!e)
|
|
1030
1140
|
return;
|
|
@@ -1032,21 +1142,21 @@ function ht({ lockScroll: e = !1, style: n, ...r }) {
|
|
|
1032
1142
|
return document.body.style.overflow = "hidden", () => {
|
|
1033
1143
|
document.body.style.overflow = t;
|
|
1034
1144
|
};
|
|
1035
|
-
}, [e]), /* @__PURE__ */ S.createElement("div", { ...r, style: { position: "fixed", inset: 0, ...
|
|
1145
|
+
}, [e]), /* @__PURE__ */ S.createElement("div", { ...r, style: { position: "fixed", inset: 0, ...o } });
|
|
1036
1146
|
}
|
|
1037
|
-
function
|
|
1147
|
+
function Ro({
|
|
1038
1148
|
context: e,
|
|
1039
|
-
children:
|
|
1149
|
+
children: o,
|
|
1040
1150
|
modal: r = !1,
|
|
1041
1151
|
initialFocus: t = !0,
|
|
1042
|
-
returnFocus:
|
|
1152
|
+
returnFocus: n = !0,
|
|
1043
1153
|
guards: f = !0,
|
|
1044
1154
|
disabled: s = !1,
|
|
1045
1155
|
closeOnFocusOut: c = !r,
|
|
1046
1156
|
outsideElementsInert: i = !1,
|
|
1047
1157
|
visuallyHiddenDismiss: u = !1
|
|
1048
1158
|
}) {
|
|
1049
|
-
const a = we(), m = R(null),
|
|
1159
|
+
const a = we(), m = R(null), d = R(null), l = R(null), p = R(null), y = R(!1), P = D(() => {
|
|
1050
1160
|
var E;
|
|
1051
1161
|
return typeof t == "number" ? le(e.elements.floating)[t] || null : typeof t == "object" && t && "current" in t ? t.current : ((E = e.elements.floating) == null ? void 0 : E.querySelector("[autofocus]")) || le(e.elements.floating)[0] || null;
|
|
1052
1162
|
}, [e.elements.floating, t]), F = D((E = !1) => {
|
|
@@ -1056,11 +1166,11 @@ function At({
|
|
|
1056
1166
|
return Le(() => {
|
|
1057
1167
|
var E;
|
|
1058
1168
|
if (!(!e.open || s))
|
|
1059
|
-
return y.current = !1,
|
|
1169
|
+
return y.current = !1, p.current = document.activeElement, t && (y.current = !0, (E = P()) == null || E.focus()), () => {
|
|
1060
1170
|
var M;
|
|
1061
|
-
y.current = !1,
|
|
1171
|
+
y.current = !1, n && (Ce(n) ? (M = n.current) == null || M.focus() : p.current instanceof HTMLElement && p.current.focus());
|
|
1062
1172
|
};
|
|
1063
|
-
}, [e.open, s, t, P,
|
|
1173
|
+
}, [e.open, s, t, P, n]), K(() => {
|
|
1064
1174
|
if (s || !e.open)
|
|
1065
1175
|
return;
|
|
1066
1176
|
const E = (M) => {
|
|
@@ -1092,7 +1202,7 @@ function At({
|
|
|
1092
1202
|
[
|
|
1093
1203
|
m.current,
|
|
1094
1204
|
e.elements.floating,
|
|
1095
|
-
|
|
1205
|
+
d.current,
|
|
1096
1206
|
l.current
|
|
1097
1207
|
].filter(Boolean)
|
|
1098
1208
|
), L = /* @__PURE__ */ new Map();
|
|
@@ -1103,7 +1213,7 @@ function At({
|
|
|
1103
1213
|
T == null ? N.removeAttribute("aria-hidden") : N.setAttribute("aria-hidden", T);
|
|
1104
1214
|
});
|
|
1105
1215
|
};
|
|
1106
|
-
}, [e.elements.floating, e.open, s, r, i]), s ? /* @__PURE__ */ S.createElement(S.Fragment, null,
|
|
1216
|
+
}, [e.elements.floating, e.open, s, r, i]), s ? /* @__PURE__ */ S.createElement(S.Fragment, null, o) : /* @__PURE__ */ S.createElement(S.Fragment, null, r && f ? /* @__PURE__ */ S.createElement("span", { ref: d, tabIndex: 0, "data-floating-focus-guard": "", "aria-hidden": "true", onFocus: () => F(!0) }) : null, /* @__PURE__ */ S.createElement(
|
|
1107
1217
|
"div",
|
|
1108
1218
|
{
|
|
1109
1219
|
ref: m,
|
|
@@ -1138,38 +1248,38 @@ function At({
|
|
|
1138
1248
|
},
|
|
1139
1249
|
typeof u == "string" ? u : "Dismiss"
|
|
1140
1250
|
) : null,
|
|
1141
|
-
|
|
1251
|
+
o
|
|
1142
1252
|
), r && f ? /* @__PURE__ */ S.createElement("span", { ref: l, tabIndex: 0, "data-floating-focus-guard": "", "aria-hidden": "true", onFocus: () => F(!1) }) : null);
|
|
1143
1253
|
}
|
|
1144
1254
|
const Oe = ae(null), Ze = ae(null);
|
|
1145
|
-
function
|
|
1146
|
-
const
|
|
1147
|
-
|
|
1148
|
-
}), []), s = D((
|
|
1149
|
-
|
|
1150
|
-
}, [
|
|
1151
|
-
const
|
|
1152
|
-
return
|
|
1153
|
-
|
|
1255
|
+
function Mo({ children: e }) {
|
|
1256
|
+
const o = R([]), [r, t] = H(0), n = V(() => new EventTarget(), []), f = D((d) => (o.current = [...o.current.filter((l) => l.id !== d.id), d], t((l) => l + 1), () => {
|
|
1257
|
+
o.current = o.current.filter((l) => l.id !== d.id), t((l) => l + 1);
|
|
1258
|
+
}), []), s = D((d, l = {}) => {
|
|
1259
|
+
n.dispatchEvent(new CustomEvent(d, { detail: l }));
|
|
1260
|
+
}, [n]), c = D((d, l) => {
|
|
1261
|
+
const p = l;
|
|
1262
|
+
return n.addEventListener(d, p), () => {
|
|
1263
|
+
n.removeEventListener(d, p);
|
|
1154
1264
|
};
|
|
1155
|
-
}, [
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1265
|
+
}, [n]), i = D((d) => o.current.find((l) => l.id === d) || null, []), u = D((d) => o.current.filter((l) => (l.parentId ?? null) === (d ?? null)), []), a = D((d, l = "dismiss") => {
|
|
1266
|
+
const p = (y) => {
|
|
1267
|
+
o.current.filter((P) => P.parentId === y).forEach((P) => {
|
|
1158
1268
|
var F;
|
|
1159
|
-
(F = P.setOpen) == null || F.call(P, !1, l),
|
|
1269
|
+
(F = P.setOpen) == null || F.call(P, !1, l), p(P.id);
|
|
1160
1270
|
});
|
|
1161
1271
|
};
|
|
1162
|
-
d
|
|
1272
|
+
p(d);
|
|
1163
1273
|
}, []), m = V(() => ({
|
|
1164
|
-
nodes:
|
|
1274
|
+
nodes: o,
|
|
1165
1275
|
register: f,
|
|
1166
|
-
events:
|
|
1276
|
+
events: n,
|
|
1167
1277
|
emit: s,
|
|
1168
1278
|
on: c,
|
|
1169
1279
|
getNode: i,
|
|
1170
1280
|
getChildren: u,
|
|
1171
1281
|
closeDescendants: a
|
|
1172
|
-
}), [a, s,
|
|
1282
|
+
}), [a, s, n, u, i, c, f, r]);
|
|
1173
1283
|
return /* @__PURE__ */ S.createElement(Oe.Provider, { value: m }, e);
|
|
1174
1284
|
}
|
|
1175
1285
|
function we() {
|
|
@@ -1178,27 +1288,27 @@ function we() {
|
|
|
1178
1288
|
function Je() {
|
|
1179
1289
|
return re(Ze);
|
|
1180
1290
|
}
|
|
1181
|
-
function
|
|
1182
|
-
const
|
|
1291
|
+
function Fo(e) {
|
|
1292
|
+
const o = we(), r = Je(), t = R(`floating-node-${Math.random().toString(36).slice(2, 9)}`), n = R(void 0);
|
|
1183
1293
|
let f, s;
|
|
1184
1294
|
typeof e == "string" || e == null ? f = e ?? r : (f = e.parentId ?? r, s = e.setOpen), K(() => {
|
|
1185
|
-
|
|
1295
|
+
n.current = s;
|
|
1186
1296
|
}, [s]);
|
|
1187
1297
|
const c = D((u, a) => {
|
|
1188
1298
|
var m;
|
|
1189
|
-
(m =
|
|
1190
|
-
}, []), i =
|
|
1299
|
+
(m = n.current) == null || m.call(n, u, a);
|
|
1300
|
+
}, []), i = o == null ? void 0 : o.register;
|
|
1191
1301
|
return K(() => i == null ? void 0 : i({ id: t.current, parentId: f, setOpen: c }), [c, f, i]), t.current;
|
|
1192
1302
|
}
|
|
1193
1303
|
const Pe = ae(null);
|
|
1194
|
-
function
|
|
1195
|
-
const t = R(null), [
|
|
1304
|
+
function To({ children: e, delay: o = 250, closeDelay: r }) {
|
|
1305
|
+
const t = R(null), [n, f] = H(null), [s, c] = H(!1), i = R(null), u = ee(o, "open"), a = r ?? (ee(o, "close") || 120), m = D(() => {
|
|
1196
1306
|
t.current && (window.clearTimeout(t.current), t.current = null);
|
|
1197
1307
|
}, []);
|
|
1198
1308
|
K(() => {
|
|
1199
|
-
i.current =
|
|
1200
|
-
}, [
|
|
1201
|
-
const
|
|
1309
|
+
i.current = n;
|
|
1310
|
+
}, [n]);
|
|
1311
|
+
const d = D((y) => {
|
|
1202
1312
|
m(), i.current = y, f(y), c(!0);
|
|
1203
1313
|
}, [m]), l = D((y) => {
|
|
1204
1314
|
m(), t.current = window.setTimeout(() => {
|
|
@@ -1206,37 +1316,37 @@ function Rt({ children: e, delay: n = 250, closeDelay: r }) {
|
|
|
1206
1316
|
}, a);
|
|
1207
1317
|
}, [m, a]);
|
|
1208
1318
|
K(() => m, [m]);
|
|
1209
|
-
const
|
|
1319
|
+
const p = V(() => ({
|
|
1210
1320
|
delay: u,
|
|
1211
1321
|
closeDelay: a,
|
|
1212
1322
|
timeoutRef: t,
|
|
1213
|
-
currentId:
|
|
1323
|
+
currentId: n,
|
|
1214
1324
|
currentIdRef: i,
|
|
1215
1325
|
setCurrentId: f,
|
|
1216
1326
|
instantPhase: s,
|
|
1217
1327
|
setInstantPhase: c,
|
|
1218
|
-
beginInstantPhase:
|
|
1328
|
+
beginInstantPhase: d,
|
|
1219
1329
|
scheduleInstantPhaseReset: l,
|
|
1220
1330
|
cancelInstantPhaseReset: m
|
|
1221
1331
|
}), [
|
|
1222
|
-
|
|
1332
|
+
d,
|
|
1223
1333
|
m,
|
|
1224
|
-
|
|
1334
|
+
n,
|
|
1225
1335
|
s,
|
|
1226
1336
|
u,
|
|
1227
1337
|
a,
|
|
1228
1338
|
l
|
|
1229
1339
|
]);
|
|
1230
|
-
return /* @__PURE__ */ S.createElement(Pe.Provider, { value:
|
|
1340
|
+
return /* @__PURE__ */ S.createElement(Pe.Provider, { value: p }, e);
|
|
1231
1341
|
}
|
|
1232
|
-
function
|
|
1342
|
+
function Lo() {
|
|
1233
1343
|
const e = re(Pe);
|
|
1234
1344
|
return e ? {
|
|
1235
1345
|
...e,
|
|
1236
1346
|
isInstantPhase: e.instantPhase
|
|
1237
1347
|
} : null;
|
|
1238
1348
|
}
|
|
1239
|
-
const
|
|
1349
|
+
const Co = S.forwardRef(function({ children: o, orientation: r = "vertical", loop: t = !0, cols: n = 1, rtl: f = !1, ...s }, c) {
|
|
1240
1350
|
const i = R(null);
|
|
1241
1351
|
return /* @__PURE__ */ S.createElement(
|
|
1242
1352
|
"div",
|
|
@@ -1249,228 +1359,228 @@ const Ft = S.forwardRef(function({ children: n, orientation: r = "vertical", loo
|
|
|
1249
1359
|
const a = Array.from(((P = i.current) == null ? void 0 : P.querySelectorAll("[data-composite-item]")) || []);
|
|
1250
1360
|
if (!a.length)
|
|
1251
1361
|
return;
|
|
1252
|
-
const m = a.indexOf(document.activeElement),
|
|
1253
|
-
let
|
|
1254
|
-
if (
|
|
1362
|
+
const m = a.indexOf(document.activeElement), d = r === "vertical" || r === "both", l = r === "horizontal" || r === "both";
|
|
1363
|
+
let p = 0;
|
|
1364
|
+
if (d && u.key === "ArrowDown" ? p = n : d && u.key === "ArrowUp" ? p = -n : l && u.key === (f ? "ArrowLeft" : "ArrowRight") ? p = 1 : l && u.key === (f ? "ArrowRight" : "ArrowLeft") && (p = -1), !p && u.key !== "Home" && u.key !== "End")
|
|
1255
1365
|
return;
|
|
1256
1366
|
u.preventDefault();
|
|
1257
1367
|
let y = m;
|
|
1258
|
-
u.key === "Home" ? y = 0 : u.key === "End" ? y = a.length - 1 : y +=
|
|
1368
|
+
u.key === "Home" ? y = 0 : u.key === "End" ? y = a.length - 1 : y += p, t && u.key !== "Home" && u.key !== "End" ? y = (y + a.length) % a.length : y = Math.max(0, Math.min(a.length - 1, y)), (F = a[y]) == null || F.focus();
|
|
1259
1369
|
})
|
|
1260
1370
|
},
|
|
1261
|
-
|
|
1371
|
+
o
|
|
1262
1372
|
);
|
|
1263
1373
|
});
|
|
1264
1374
|
export {
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1375
|
+
Rl as Accordion,
|
|
1376
|
+
Bo as Alert,
|
|
1377
|
+
Vo as AlertActions,
|
|
1378
|
+
Ho as AlertDescription,
|
|
1379
|
+
$l as AlertDialog,
|
|
1380
|
+
Kl as AlertDialogActions,
|
|
1381
|
+
Bl as AlertDialogContent,
|
|
1382
|
+
Vl as AlertDialogDescription,
|
|
1383
|
+
Hl as AlertDialogIcon,
|
|
1384
|
+
Gl as AlertDialogProvider,
|
|
1385
|
+
zl as AlertDialogTitle,
|
|
1386
|
+
zo as AlertIcon,
|
|
1387
|
+
qo as AlertTitle,
|
|
1388
|
+
Hu as Anchor,
|
|
1389
|
+
ta as AnimatedBeam,
|
|
1390
|
+
Wl as AnimatedList,
|
|
1391
|
+
xa as AnimatedNumber,
|
|
1392
|
+
_l as AnimatedText,
|
|
1393
|
+
au as AppHeader,
|
|
1394
|
+
fu as AppHeaderCenter,
|
|
1395
|
+
cu as AppHeaderEnd,
|
|
1396
|
+
mu as AppHeaderStart,
|
|
1397
|
+
pu as AppHeaderSubtitle,
|
|
1398
|
+
du as AppHeaderTitle,
|
|
1399
|
+
tl as AspectRatio,
|
|
1400
|
+
ol as Avatar,
|
|
1401
|
+
An as Badge,
|
|
1402
|
+
Ps as BlockControls,
|
|
1403
|
+
Bs as Box,
|
|
1404
|
+
uu as Breadcrumb,
|
|
1405
|
+
No as Button,
|
|
1406
|
+
Yn as Calendar,
|
|
1407
|
+
Sl as Card,
|
|
1408
|
+
On as Carousel,
|
|
1409
|
+
Cn as Chart,
|
|
1410
|
+
qu as Checkbox,
|
|
1411
|
+
Kn as CodeBlock,
|
|
1412
|
+
Vn as CodeSnippet,
|
|
1413
|
+
hl as Collapsible,
|
|
1414
|
+
Fu as Collection,
|
|
1415
|
+
Jn as ColorPicker,
|
|
1416
|
+
vn as Combobox,
|
|
1417
|
+
Es as Command,
|
|
1418
|
+
Is as CommandItem,
|
|
1419
|
+
Ms as CommandPalette,
|
|
1420
|
+
Fs as CommandPaletteItem,
|
|
1421
|
+
Co as Composite,
|
|
1422
|
+
Zs as Container,
|
|
1423
|
+
Ls as ContextMenu,
|
|
1424
|
+
gn as ControlGroup,
|
|
1425
|
+
zn as CopyButton,
|
|
1426
|
+
Tn as DataTable,
|
|
1427
|
+
Gn as DataViewToolbar,
|
|
1428
|
+
ni as DateField,
|
|
1429
|
+
ei as DatePicker,
|
|
1430
|
+
ri as DateRangePicker,
|
|
1431
|
+
hi as DateRangeTimePicker,
|
|
1432
|
+
Di as DateTimePicker,
|
|
1433
|
+
yn as Description,
|
|
1434
|
+
_i as Dialog,
|
|
1435
|
+
Xi as DialogProvider,
|
|
1436
|
+
Fl as DirectionProvider,
|
|
1437
|
+
Nu as DismissableLayer,
|
|
1438
|
+
ia as Dock,
|
|
1439
|
+
vu as Drawer,
|
|
1440
|
+
Uo as Dropdown,
|
|
1441
|
+
jo as DropdownContent,
|
|
1442
|
+
_o as DropdownItem,
|
|
1443
|
+
Qo as DropdownSectionLabel,
|
|
1444
|
+
Xo as DropdownSeparator,
|
|
1445
|
+
Yo as DropdownTrigger,
|
|
1446
|
+
ln as Dropzone,
|
|
1447
|
+
In as EmptyState,
|
|
1448
|
+
pn as Field,
|
|
1449
|
+
xn as FieldError,
|
|
1450
|
+
wn as Fieldset,
|
|
1451
|
+
an as FileUpload,
|
|
1452
|
+
bn as FiltersBar,
|
|
1453
|
+
Hs as Flex,
|
|
1454
|
+
Ao as FloatingArrow,
|
|
1455
|
+
To as FloatingDelayGroup,
|
|
1456
|
+
Ro as FloatingFocusManager,
|
|
1457
|
+
vo as FloatingList,
|
|
1348
1458
|
Ne as FloatingListContext,
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1459
|
+
Io as FloatingOverlay,
|
|
1460
|
+
Eo as FloatingPortal,
|
|
1461
|
+
xs as FloatingToolbar,
|
|
1462
|
+
Mo as FloatingTree,
|
|
1463
|
+
$u as FocusScope,
|
|
1464
|
+
$s as Form,
|
|
1465
|
+
Ei as Gantt,
|
|
1466
|
+
qs as Grid,
|
|
1467
|
+
Ll as HoverCard,
|
|
1468
|
+
us as Icon,
|
|
1469
|
+
oa as IconCloud,
|
|
1470
|
+
xi as InlineEdit,
|
|
1471
|
+
Jo as Input,
|
|
1472
|
+
Ds as Kbd,
|
|
1473
|
+
Nl as Label,
|
|
1474
|
+
Au as Layout,
|
|
1475
|
+
Lu as Listbox,
|
|
1476
|
+
aa as Marquee,
|
|
1477
|
+
_s as MasonryGrid,
|
|
1478
|
+
rs as Menu,
|
|
1479
|
+
os as MenuItem,
|
|
1480
|
+
ns as MenuSectionLabel,
|
|
1481
|
+
is as MenuSeparator,
|
|
1482
|
+
Ui as Menubar,
|
|
1483
|
+
al as Meter,
|
|
1484
|
+
Qn as MetricCard,
|
|
1485
|
+
ai as MultiSelect,
|
|
1486
|
+
Ni as NavigationMenu,
|
|
1487
|
+
Oi as NavigationMenuContent,
|
|
1488
|
+
$i as NavigationMenuIndicator,
|
|
1489
|
+
Ki as NavigationMenuItem,
|
|
1490
|
+
Bi as NavigationMenuLink,
|
|
1491
|
+
Vi as NavigationMenuList,
|
|
1492
|
+
Hi as NavigationMenuRoot,
|
|
1493
|
+
zi as NavigationMenuTrigger,
|
|
1494
|
+
qi as NavigationMenuViewport,
|
|
1495
|
+
ui as NumberField,
|
|
1496
|
+
Zl as NumberTicker,
|
|
1497
|
+
nn as OTPInput,
|
|
1498
|
+
ua as Orbiter,
|
|
1499
|
+
yu as PageHeader,
|
|
1500
|
+
wu as PageToolbar,
|
|
1501
|
+
El as Pagination,
|
|
1502
|
+
tu as Panel,
|
|
1503
|
+
ru as PanelGroup,
|
|
1504
|
+
en as PasswordField,
|
|
1505
|
+
sn as PinInput,
|
|
1506
|
+
Us as PlacementGrid,
|
|
1507
|
+
Ns as PluginPanel,
|
|
1508
|
+
Ji as Popover,
|
|
1509
|
+
cl as Portal,
|
|
1510
|
+
Bu as Positioner,
|
|
1511
|
+
il as Presence,
|
|
1512
|
+
ul as Progress,
|
|
1513
|
+
Si as QuickActions,
|
|
1514
|
+
Uu as Radio,
|
|
1515
|
+
_u as RadioGroup,
|
|
1516
|
+
Li as Rating,
|
|
1517
|
+
bu as RecordHeader,
|
|
1518
|
+
Su as RovingFocusGroup,
|
|
1519
|
+
pl as ScrollArea,
|
|
1520
|
+
Xs as Section,
|
|
1521
|
+
ca as Select,
|
|
1522
|
+
Ss as SelectionPopup,
|
|
1523
|
+
gl as Separator,
|
|
1524
|
+
hs as Shortcut,
|
|
1525
|
+
Ws as Sidebar,
|
|
1526
|
+
ga as Skeleton,
|
|
1527
|
+
pa as Slider,
|
|
1528
|
+
xl as Slot,
|
|
1529
|
+
gi as Sortable,
|
|
1530
|
+
Xl as SpinningText,
|
|
1531
|
+
ci as SplitButton,
|
|
1532
|
+
ou as Splitter,
|
|
1533
|
+
jn as Stat,
|
|
1534
|
+
Ri as Stepper,
|
|
1535
|
+
Xu as Switch,
|
|
1536
|
+
Mn as Table,
|
|
1537
|
+
es as Tabs,
|
|
1538
|
+
rn as TagsInput,
|
|
1539
|
+
cn as Textarea,
|
|
1540
|
+
Iu as ThemeProvider,
|
|
1541
|
+
ii as TimeField,
|
|
1542
|
+
Pi as TimePicker,
|
|
1543
|
+
kn as Timeline,
|
|
1544
|
+
gs as Toast,
|
|
1545
|
+
as as ToastAPI,
|
|
1546
|
+
fs as ToastProvider,
|
|
1547
|
+
Zu as Toggle,
|
|
1548
|
+
Wu as ToggleGroup,
|
|
1549
|
+
Pl as Toolbar,
|
|
1550
|
+
$o as Tooltip,
|
|
1551
|
+
pi as TransferList,
|
|
1552
|
+
iu as Tree,
|
|
1553
|
+
Dl as VisuallyHidden,
|
|
1554
|
+
Fi as Wizard,
|
|
1445
1555
|
ye as assignRef,
|
|
1446
1556
|
Qe as callAll,
|
|
1447
1557
|
k as composeEventHandlers,
|
|
1448
1558
|
xe as mergeRefs,
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1559
|
+
cs as toast,
|
|
1560
|
+
Da as toastAdvanced,
|
|
1561
|
+
ms as toastApi,
|
|
1562
|
+
va as toastLegacy,
|
|
1563
|
+
ha as toastPro,
|
|
1564
|
+
Ul as useAlertDialog,
|
|
1565
|
+
wa as useAnimatedNumber,
|
|
1566
|
+
Pa as useAnimatedNumberValue,
|
|
1567
|
+
mo as useClick,
|
|
1568
|
+
Do as useClientPoint,
|
|
1569
|
+
Lo as useDelayGroup,
|
|
1570
|
+
Yi as useDialog,
|
|
1571
|
+
xo as useDismiss,
|
|
1572
|
+
fo as useFloating,
|
|
1573
|
+
ho as useFloatingList,
|
|
1574
|
+
Fo as useFloatingNodeId,
|
|
1465
1575
|
we as useFloatingTree,
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1576
|
+
go as useFocus,
|
|
1577
|
+
ao as useForm,
|
|
1578
|
+
po as useHover,
|
|
1579
|
+
co as useInteractions,
|
|
1580
|
+
wo as useListNavigation,
|
|
1581
|
+
yo as useRole,
|
|
1582
|
+
Ru as useTheme,
|
|
1583
|
+
ps as useToast,
|
|
1584
|
+
bo as useTransition,
|
|
1585
|
+
Po as useTypeahead
|
|
1476
1586
|
};
|