@editora/ui-react 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.cjs.js +1 -1
- package/dist/Accordion.esm.js +29 -29
- package/dist/Alert.cjs.js +1 -1
- package/dist/Alert.esm.js +42 -41
- package/dist/AlertDialog.cjs.js +1 -1
- package/dist/AlertDialog.esm.js +41 -40
- package/dist/Anchor.cjs.js +1 -1
- package/dist/Anchor.esm.js +7 -6
- package/dist/AnimatedBeam.cjs.js +1 -1
- package/dist/AnimatedBeam.esm.js +55 -55
- package/dist/AnimatedList.cjs.js +1 -1
- package/dist/AnimatedList.esm.js +23 -23
- package/dist/AnimatedNumber.cjs.js +1 -1
- package/dist/AnimatedNumber.esm.js +33 -33
- package/dist/AnimatedText.cjs.js +1 -1
- package/dist/AnimatedText.esm.js +17 -17
- package/dist/AppHeader.cjs.js +2 -2
- package/dist/AppHeader.esm.js +19 -18
- package/dist/AspectRatio.cjs.js +1 -1
- package/dist/AspectRatio.esm.js +15 -14
- package/dist/Avatar.cjs.js +1 -1
- package/dist/Avatar.esm.js +27 -27
- package/dist/Badge.cjs.js +1 -1
- package/dist/Badge.esm.js +26 -25
- package/dist/BlockControls.cjs.js +1 -1
- package/dist/BlockControls.esm.js +7 -7
- package/dist/Box.cjs.js +1 -1
- package/dist/Box.esm.js +130 -129
- package/dist/Breadcrumb.cjs.js +1 -1
- package/dist/Breadcrumb.esm.js +2 -2
- package/dist/Button.cjs.js +1 -1
- package/dist/Button.esm.js +25 -25
- package/dist/Calendar.cjs.js +1 -1
- package/dist/Calendar.esm.js +40 -40
- package/dist/Card.cjs.js +2 -2
- package/dist/Card.esm.js +20 -20
- package/dist/Chart.cjs.js +1 -1
- package/dist/Chart.esm.js +21 -21
- package/dist/Checkbox.cjs.js +1 -1
- package/dist/Checkbox.esm.js +16 -16
- package/dist/Collapsible.cjs.js +1 -1
- package/dist/Collapsible.esm.js +7 -7
- package/dist/Collection.cjs.js +1 -1
- package/dist/Collection.esm.js +12 -11
- package/dist/ColorPicker.cjs.js +1 -1
- package/dist/ColorPicker.esm.js +34 -34
- package/dist/Combobox.cjs.js +1 -1
- package/dist/Combobox.esm.js +38 -37
- package/dist/Command.cjs.js +1 -1
- package/dist/Command.esm.js +16 -16
- package/dist/CommandPalette.cjs.js +1 -1
- package/dist/CommandPalette.esm.js +27 -27
- package/dist/Container.cjs.js +1 -1
- package/dist/Container.esm.js +7 -5
- package/dist/ContextMenu.cjs.js +1 -1
- package/dist/ContextMenu.esm.js +72 -73
- package/dist/DataTable.cjs.js +1 -1
- package/dist/DataTable.esm.js +67 -65
- package/dist/DateField.cjs.js +1 -1
- package/dist/DateField.esm.js +22 -22
- package/dist/DatePicker.cjs.js +1 -1
- package/dist/DatePicker.esm.js +51 -51
- package/dist/DateRangePicker.cjs.js +1 -1
- package/dist/DateRangePicker.esm.js +42 -42
- package/dist/DateRangeTimePicker.cjs.js +1 -1
- package/dist/DateRangeTimePicker.esm.js +36 -36
- package/dist/DateTimePicker.cjs.js +1 -1
- package/dist/DateTimePicker.esm.js +38 -38
- package/dist/Dialog.cjs.js +1 -1
- package/dist/Dialog.esm.js +29 -29
- package/dist/DirectionProvider.cjs.js +1 -1
- package/dist/DirectionProvider.esm.js +7 -4
- package/dist/DismissableLayer.cjs.js +1 -1
- package/dist/DismissableLayer.esm.js +21 -20
- package/dist/Dock.cjs.js +1 -1
- package/dist/Dock.esm.js +23 -23
- package/dist/Drawer.cjs.js +1 -1
- package/dist/Drawer.esm.js +47 -46
- package/dist/Dropdown.cjs.js +1 -1
- package/dist/Dropdown.esm.js +9 -8
- package/dist/EmptyState.cjs.js +1 -1
- package/dist/EmptyState.esm.js +18 -17
- package/dist/Field.cjs.js +1 -1
- package/dist/Field.esm.js +21 -18
- package/dist/FieldSemantics.cjs.js +1 -1
- package/dist/FieldSemantics.esm.js +38 -37
- package/dist/FileUpload.cjs.js +1 -1
- package/dist/FileUpload.esm.js +33 -32
- package/dist/Flex.cjs.js +1 -1
- package/dist/Flex.esm.js +37 -34
- package/dist/FloatingToolbar.cjs.js +1 -1
- package/dist/FloatingToolbar.esm.js +15 -15
- 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 +19 -18
- package/dist/Gantt.cjs.js +1 -1
- package/dist/Gantt.esm.js +17 -16
- package/dist/Grid.cjs.js +1 -1
- package/dist/Grid.esm.js +45 -42
- package/dist/HoverCard.cjs.js +1 -1
- package/dist/HoverCard.esm.js +6 -6
- package/dist/Icon.cjs.js +1 -1
- package/dist/Icon.esm.js +43 -42
- package/dist/IconCloud.cjs.js +1 -1
- package/dist/IconCloud.esm.js +16 -16
- package/dist/InlineEdit.cjs.js +1 -1
- package/dist/InlineEdit.esm.js +9 -8
- package/dist/Input.cjs.js +1 -1
- package/dist/Input.esm.js +32 -32
- package/dist/Label.cjs.js +1 -1
- package/dist/Label.esm.js +16 -15
- package/dist/Layout.cjs.js +1 -1
- package/dist/Layout.esm.js +7 -6
- package/dist/Listbox.cjs.js +1 -1
- package/dist/Listbox.esm.js +14 -13
- package/dist/Marquee.cjs.js +1 -1
- package/dist/Marquee.esm.js +32 -32
- package/dist/MasonryGrid.cjs.js +1 -1
- package/dist/MasonryGrid.esm.js +31 -31
- package/dist/Menu.cjs.js +1 -1
- package/dist/Menu.esm.js +11 -10
- package/dist/Menubar.cjs.js +1 -1
- package/dist/Menubar.esm.js +12 -12
- package/dist/Meter.cjs.js +1 -1
- package/dist/Meter.esm.js +15 -15
- package/dist/MultiSelect.cjs.js +1 -1
- package/dist/MultiSelect.esm.js +30 -29
- package/dist/NavigationMenu.cjs.js +1 -1
- package/dist/NavigationMenu.esm.js +80 -76
- package/dist/NumberField.cjs.js +1 -1
- package/dist/NumberField.esm.js +20 -20
- package/dist/NumberTicker.cjs.js +1 -1
- package/dist/NumberTicker.esm.js +34 -34
- package/dist/Orbiter.cjs.js +1 -1
- package/dist/Orbiter.esm.js +29 -29
- package/dist/Pagination.cjs.js +1 -1
- package/dist/Pagination.esm.js +25 -24
- package/dist/PanelGroup.cjs.js +1 -1
- package/dist/PanelGroup.esm.js +24 -23
- package/dist/PasswordField.cjs.js +1 -1
- package/dist/PasswordField.esm.js +32 -32
- package/dist/PinInput.cjs.js +1 -1
- package/dist/PinInput.esm.js +13 -13
- package/dist/PlacementGrid.cjs.js +1 -1
- package/dist/PlacementGrid.esm.js +37 -37
- package/dist/PluginPanel.cjs.js +1 -1
- package/dist/PluginPanel.esm.js +7 -7
- package/dist/Popover.cjs.js +1 -1
- package/dist/Popover.esm.js +7 -7
- package/dist/Portal.cjs.js +1 -1
- package/dist/Portal.esm.js +12 -11
- package/dist/Positioner.cjs.js +1 -1
- package/dist/Positioner.esm.js +12 -11
- package/dist/Presence.cjs.js +1 -1
- package/dist/Presence.esm.js +21 -20
- package/dist/Progress.cjs.js +1 -1
- package/dist/Progress.esm.js +16 -16
- package/dist/QuickActions.cjs.js +1 -1
- package/dist/QuickActions.esm.js +20 -20
- package/dist/Radio.cjs.js +1 -1
- package/dist/Radio.esm.js +7 -7
- package/dist/RadioGroup.cjs.js +1 -1
- package/dist/RadioGroup.esm.js +19 -19
- package/dist/Rating.cjs.js +1 -1
- package/dist/Rating.esm.js +33 -32
- package/dist/RovingFocusGroup.cjs.js +1 -1
- package/dist/RovingFocusGroup.esm.js +12 -11
- package/dist/ScrollArea.cjs.js +1 -1
- package/dist/ScrollArea.esm.js +17 -16
- package/dist/Section.cjs.js +1 -1
- package/dist/Section.esm.js +21 -20
- package/dist/Select.cjs.js +1 -1
- package/dist/Select.esm.js +40 -40
- package/dist/SelectionPopup.cjs.js +1 -1
- package/dist/SelectionPopup.esm.js +29 -29
- package/dist/Separator.cjs.js +1 -1
- package/dist/Separator.esm.js +5 -2
- package/dist/Sidebar.cjs.js +1 -1
- package/dist/Sidebar.esm.js +41 -40
- package/dist/Skeleton.cjs.js +1 -1
- package/dist/Skeleton.esm.js +15 -14
- package/dist/Slider.cjs.js +1 -1
- package/dist/Slider.esm.js +30 -30
- package/dist/Slot.cjs.js +1 -1
- package/dist/Slot.esm.js +18 -17
- package/dist/Sortable.cjs.js +1 -1
- package/dist/Sortable.esm.js +99 -99
- package/dist/SpinningText.cjs.js +1 -1
- package/dist/SpinningText.esm.js +29 -29
- package/dist/Stepper.cjs.js +1 -1
- package/dist/Stepper.esm.js +22 -22
- package/dist/Switch.cjs.js +1 -1
- package/dist/Switch.esm.js +19 -19
- package/dist/Table.cjs.js +1 -1
- package/dist/Table.esm.js +39 -37
- package/dist/Tabs.cjs.js +1 -1
- package/dist/Tabs.esm.js +35 -34
- package/dist/TagsInput.cjs.js +1 -1
- package/dist/TagsInput.esm.js +17 -17
- package/dist/Textarea.cjs.js +1 -1
- package/dist/Textarea.esm.js +27 -27
- package/dist/TimePicker.cjs.js +1 -1
- package/dist/TimePicker.esm.js +32 -32
- package/dist/Timeline.cjs.js +1 -1
- package/dist/Timeline.esm.js +18 -17
- package/dist/Toggle.cjs.js +1 -1
- package/dist/Toggle.esm.js +11 -11
- package/dist/ToggleGroup.cjs.js +1 -1
- package/dist/ToggleGroup.esm.js +22 -21
- package/dist/Toolbar.cjs.js +1 -1
- package/dist/Toolbar.esm.js +25 -24
- package/dist/Tooltip.cjs.js +1 -1
- package/dist/Tooltip.esm.js +17 -16
- package/dist/TransferList.cjs.js +1 -1
- package/dist/TransferList.esm.js +16 -16
- package/dist/Tree.cjs.js +1 -1
- package/dist/Tree.esm.js +29 -28
- package/dist/VisuallyHidden.cjs.js +1 -1
- package/dist/VisuallyHidden.esm.js +5 -2
- package/dist/Wizard.cjs.js +1 -1
- package/dist/Wizard.esm.js +50 -49
- package/dist/_internals-BIT_j6Nr.js +1 -0
- package/dist/_internals-CEeSSGD-.mjs +122 -0
- package/dist/components/Accordion.cjs.js +1 -1
- package/dist/components/Accordion.esm.js +1 -1
- package/dist/components/Alert.cjs.js +1 -1
- package/dist/components/Alert.d.ts +16 -267
- package/dist/components/Alert.d.ts.map +1 -1
- package/dist/components/Alert.esm.js +1 -1
- package/dist/components/AlertDialog.cjs.js +1 -1
- 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.map +1 -1
- package/dist/components/Anchor.esm.js +3 -2
- package/dist/components/AnimatedBeam.cjs.js +1 -1
- package/dist/components/AnimatedBeam.esm.js +1 -1
- package/dist/components/AnimatedList.cjs.js +1 -1
- package/dist/components/AnimatedList.esm.js +1 -1
- package/dist/components/AnimatedNumber.cjs.js +1 -1
- package/dist/components/AnimatedNumber.d.ts.map +1 -1
- package/dist/components/AnimatedNumber.esm.js +1 -1
- package/dist/components/AnimatedText.cjs.js +1 -1
- package/dist/components/AnimatedText.esm.js +1 -1
- package/dist/components/AppHeader.cjs.js +1 -1
- package/dist/components/AppHeader.d.ts.map +1 -1
- package/dist/components/AppHeader.esm.js +8 -7
- package/dist/components/AspectRatio.cjs.js +1 -1
- package/dist/components/AspectRatio.d.ts.map +1 -1
- package/dist/components/AspectRatio.esm.js +4 -3
- package/dist/components/Avatar.cjs.js +1 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.esm.js +1 -1
- package/dist/components/Badge.cjs.js +1 -1
- package/dist/components/Badge.d.ts +20 -268
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Badge.esm.js +1 -1
- package/dist/components/BlockControls.cjs.js +1 -1
- package/dist/components/BlockControls.esm.js +1 -1
- package/dist/components/Box.cjs.js +1 -1
- package/dist/components/Box.d.ts.map +1 -1
- package/dist/components/Box.esm.js +3 -2
- package/dist/components/Breadcrumb.cjs.js +1 -1
- package/dist/components/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb.esm.js +1 -1
- package/dist/components/Button.cjs.js +1 -1
- package/dist/components/Button.esm.js +1 -1
- package/dist/components/Calendar.cjs.js +1 -1
- package/dist/components/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar.esm.js +1 -1
- package/dist/components/Card.cjs.js +1 -1
- package/dist/components/Card.esm.js +1 -1
- package/dist/components/Chart.cjs.js +1 -1
- package/dist/components/Chart.esm.js +1 -1
- package/dist/components/Checkbox.cjs.js +1 -1
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.esm.js +1 -1
- package/dist/components/Collapsible.cjs.js +1 -1
- package/dist/components/Collapsible.d.ts.map +1 -1
- package/dist/components/Collapsible.esm.js +1 -1
- package/dist/components/Collection.cjs.js +1 -1
- 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.map +1 -1
- package/dist/components/ColorPicker.esm.js +1 -1
- package/dist/components/Combobox.cjs.js +1 -1
- package/dist/components/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox.esm.js +4 -3
- package/dist/components/Command.cjs.js +1 -1
- package/dist/components/Command.esm.js +1 -1
- package/dist/components/CommandPalette.cjs.js +1 -1
- package/dist/components/CommandPalette.esm.js +1 -1
- package/dist/components/Container.cjs.js +1 -1
- package/dist/components/Container.d.ts +3 -4
- package/dist/components/Container.d.ts.map +1 -1
- package/dist/components/Container.esm.js +3 -2
- package/dist/components/ContextMenu.cjs.js +1 -1
- package/dist/components/ContextMenu.d.ts +57 -1
- package/dist/components/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu.esm.js +4 -3
- package/dist/components/DataTable.cjs.js +1 -1
- package/dist/components/DataTable.d.ts +47 -301
- package/dist/components/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable.esm.js +4 -3
- package/dist/components/DataViewToolbar.d.ts +1 -1
- package/dist/components/DateField.cjs.js +1 -1
- package/dist/components/DateField.d.ts.map +1 -1
- package/dist/components/DateField.esm.js +1 -1
- package/dist/components/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker.esm.js +1 -1
- package/dist/components/DateRangePicker.cjs.js +1 -1
- package/dist/components/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DateRangePicker.esm.js +1 -1
- package/dist/components/DateRangeTimePicker.cjs.js +1 -1
- package/dist/components/DateRangeTimePicker.d.ts.map +1 -1
- package/dist/components/DateRangeTimePicker.esm.js +1 -1
- package/dist/components/DateTimePicker.cjs.js +1 -1
- package/dist/components/DateTimePicker.d.ts.map +1 -1
- package/dist/components/DateTimePicker.esm.js +1 -1
- package/dist/components/Dialog.cjs.js +1 -1
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog.esm.js +1 -1
- package/dist/components/DirectionProvider.cjs.js +1 -1
- package/dist/components/DirectionProvider.d.ts.map +1 -1
- package/dist/components/DirectionProvider.esm.js +3 -2
- package/dist/components/DismissableLayer.cjs.js +1 -1
- 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.esm.js +1 -1
- package/dist/components/Drawer.cjs.js +1 -1
- 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.map +1 -1
- package/dist/components/Dropdown.esm.js +9 -8
- package/dist/components/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState.d.ts +10 -267
- package/dist/components/EmptyState.d.ts.map +1 -1
- package/dist/components/EmptyState.esm.js +1 -1
- package/dist/components/Field.cjs.js +1 -1
- package/dist/components/Field.d.ts +17 -1
- package/dist/components/Field.d.ts.map +1 -1
- package/dist/components/Field.esm.js +4 -3
- package/dist/components/FieldSemantics.cjs.js +1 -1
- package/dist/components/FieldSemantics.d.ts.map +1 -1
- package/dist/components/FieldSemantics.esm.js +6 -5
- package/dist/components/FileUpload.cjs.js +1 -1
- package/dist/components/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload.esm.js +5 -4
- package/dist/components/Flex.cjs.js +1 -1
- package/dist/components/Flex.d.ts +4 -5
- 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.esm.js +1 -1
- package/dist/components/FocusScope.cjs.js +1 -1
- 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.map +1 -1
- package/dist/components/Form.esm.js +4 -3
- package/dist/components/Gantt.cjs.js +1 -1
- 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 +3 -4
- 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.map +1 -1
- package/dist/components/HoverCard.esm.js +1 -1
- package/dist/components/Icon.cjs.js +1 -1
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/Icon.esm.js +3 -2
- package/dist/components/IconCloud.cjs.js +1 -1
- package/dist/components/IconCloud.esm.js +1 -1
- package/dist/components/InlineEdit.cjs.js +1 -1
- 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.map +1 -1
- package/dist/components/Input.esm.js +1 -1
- package/dist/components/Label.cjs.js +1 -1
- 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.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.map +1 -1
- package/dist/components/Listbox.esm.js +4 -3
- package/dist/components/Marquee.cjs.js +1 -1
- package/dist/components/Marquee.esm.js +1 -1
- package/dist/components/MasonryGrid.cjs.js +1 -1
- package/dist/components/MasonryGrid.esm.js +1 -1
- package/dist/components/Menu.cjs.js +1 -1
- 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.map +1 -1
- package/dist/components/Menubar.esm.js +1 -1
- package/dist/components/Meter.cjs.js +1 -1
- package/dist/components/Meter.d.ts.map +1 -1
- package/dist/components/Meter.esm.js +1 -1
- package/dist/components/MultiSelect.cjs.js +1 -1
- 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 +54 -274
- 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.map +1 -1
- package/dist/components/NumberField.esm.js +1 -1
- package/dist/components/NumberTicker.cjs.js +1 -1
- package/dist/components/NumberTicker.esm.js +1 -1
- package/dist/components/Orbiter.cjs.js +1 -1
- package/dist/components/Orbiter.esm.js +1 -1
- package/dist/components/Pagination.cjs.js +1 -1
- 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.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.map +1 -1
- package/dist/components/PasswordField.esm.js +1 -1
- package/dist/components/PinInput.cjs.js +1 -1
- package/dist/components/PinInput.d.ts.map +1 -1
- package/dist/components/PinInput.esm.js +1 -1
- package/dist/components/PlacementGrid.cjs.js +1 -1
- package/dist/components/PlacementGrid.esm.js +1 -1
- package/dist/components/PluginPanel.cjs.js +1 -1
- package/dist/components/PluginPanel.esm.js +1 -1
- package/dist/components/Popover.cjs.js +1 -1
- package/dist/components/Popover.esm.js +1 -1
- package/dist/components/Portal.cjs.js +1 -1
- 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.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.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.map +1 -1
- package/dist/components/Progress.esm.js +1 -1
- package/dist/components/QuickActions.cjs.js +1 -1
- package/dist/components/QuickActions.d.ts.map +1 -1
- package/dist/components/QuickActions.esm.js +1 -1
- package/dist/components/Radio.cjs.js +1 -1
- package/dist/components/Radio.d.ts.map +1 -1
- package/dist/components/Radio.esm.js +1 -1
- package/dist/components/RadioGroup.cjs.js +1 -1
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.esm.js +1 -1
- package/dist/components/Rating.cjs.js +1 -1
- package/dist/components/Rating.d.ts.map +1 -1
- package/dist/components/Rating.esm.js +4 -3
- package/dist/components/RovingFocusGroup.cjs.js +1 -1
- 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.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.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.map +1 -1
- package/dist/components/Select.esm.js +1 -1
- package/dist/components/SelectionPopup.cjs.js +1 -1
- package/dist/components/SelectionPopup.esm.js +1 -1
- package/dist/components/Separator.cjs.js +1 -1
- 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.map +1 -1
- package/dist/components/Sidebar.esm.js +10 -9
- package/dist/components/Skeleton.cjs.js +1 -1
- package/dist/components/Skeleton.d.ts +14 -269
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton.esm.js +1 -1
- package/dist/components/Slider.cjs.js +1 -1
- package/dist/components/Slider.d.ts.map +1 -1
- package/dist/components/Slider.esm.js +1 -1
- package/dist/components/Slot.cjs.js +1 -1
- package/dist/components/Slot.d.ts.map +1 -1
- package/dist/components/Slot.esm.js +4 -3
- package/dist/components/Sortable.cjs.js +1 -1
- package/dist/components/Sortable.d.ts.map +1 -1
- package/dist/components/Sortable.esm.js +1 -1
- package/dist/components/SpinningText.cjs.js +1 -1
- package/dist/components/SpinningText.esm.js +1 -1
- package/dist/components/Stepper.cjs.js +1 -1
- package/dist/components/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper.esm.js +1 -1
- package/dist/components/Switch.cjs.js +1 -1
- package/dist/components/Switch.d.ts.map +1 -1
- package/dist/components/Switch.esm.js +1 -1
- package/dist/components/Table.cjs.js +1 -1
- package/dist/components/Table.d.ts +16 -279
- 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.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.map +1 -1
- package/dist/components/TagsInput.esm.js +1 -1
- package/dist/components/Textarea.cjs.js +1 -1
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.esm.js +1 -1
- package/dist/components/TimePicker.cjs.js +1 -1
- package/dist/components/TimePicker.d.ts.map +1 -1
- package/dist/components/TimePicker.esm.js +1 -1
- package/dist/components/Timeline.cjs.js +1 -1
- package/dist/components/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline.esm.js +4 -3
- package/dist/components/Toggle.cjs.js +1 -1
- package/dist/components/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle.esm.js +1 -1
- package/dist/components/ToggleGroup.cjs.js +1 -1
- package/dist/components/ToggleGroup.d.ts.map +1 -1
- package/dist/components/ToggleGroup.esm.js +3 -2
- package/dist/components/Toolbar.cjs.js +1 -1
- package/dist/components/Toolbar.d.ts.map +1 -1
- package/dist/components/Toolbar.esm.js +4 -3
- package/dist/components/Tooltip.cjs.js +1 -1
- 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.esm.js +1 -1
- package/dist/components/Tree.cjs.js +1 -1
- 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.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.map +1 -1
- package/dist/components/Wizard.esm.js +4 -3
- package/dist/components/_internals.d.ts +10 -0
- package/dist/components/_internals.d.ts.map +1 -1
- package/dist/hooks/useFloatingInteractions.d.ts +2 -2
- package/dist/hooks/useFloatingInteractions.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +228 -227
- package/dist/ui-react.css +1 -1
- package/package.json +2 -2
- package/dist/_internals-C0zzLj8J.js +0 -1
- package/dist/_internals-pNJ1oPIS.mjs +0 -115
package/dist/Select.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import t from "react";
|
|
3
3
|
import "@editora/ui-core/select";
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
4
|
+
import { u as X, g as Y, a as Z, b as $, s as l, d as o, c as P } from "./_internals-CEeSSGD-.mjs";
|
|
5
|
+
const q = t.forwardRef(function({
|
|
6
6
|
children: r,
|
|
7
7
|
value: n,
|
|
8
8
|
disabled: c,
|
|
@@ -20,32 +20,32 @@ const B = t.forwardRef(function({
|
|
|
20
20
|
tone: i,
|
|
21
21
|
density: p,
|
|
22
22
|
shape: f,
|
|
23
|
-
elevation:
|
|
23
|
+
elevation: d,
|
|
24
24
|
radius: w,
|
|
25
25
|
optionBorder: A,
|
|
26
26
|
showCheck: L,
|
|
27
27
|
checkPlacement: H,
|
|
28
|
-
validation:
|
|
28
|
+
validation: S,
|
|
29
29
|
onChange: k,
|
|
30
30
|
onInput: x,
|
|
31
31
|
onValueChange: _,
|
|
32
|
-
...
|
|
33
|
-
},
|
|
34
|
-
const O =
|
|
32
|
+
...V
|
|
33
|
+
}, W) {
|
|
34
|
+
const O = X(W), m = t.useCallback((e) => Y(e)?.value ?? e.target?.value ?? "", []), j = t.useCallback((e) => {
|
|
35
35
|
x?.(m(e));
|
|
36
36
|
}, [x, m]), F = t.useCallback((e) => {
|
|
37
|
-
const
|
|
38
|
-
k?.(
|
|
37
|
+
const U = m(e);
|
|
38
|
+
k?.(U), _?.(U);
|
|
39
39
|
}, [k, _, m]);
|
|
40
|
-
return
|
|
40
|
+
return Z(
|
|
41
41
|
O,
|
|
42
42
|
[
|
|
43
43
|
{ type: "input", listener: j },
|
|
44
44
|
{ type: "change", listener: F }
|
|
45
45
|
],
|
|
46
46
|
[j, F]
|
|
47
|
-
),
|
|
48
|
-
l(e, "value", n != null ? String(n) : null), o(e, "disabled", c), o(e, "loading", N), o(e, "required", D), o(e, "headless", T), o(e, "invalid", G), l(e, "placeholder", g || null), l(e, "name", E || null), l(e, "label", b || null), l(e, "description", R || null), l(e, "error", y || null), l(e, "size", s && s !== "md" && s !== "2" ? s : null), l(e, "variant", u && u !== "classic" ? u : null), l(e, "tone", i && i !== "default" ? i : null), l(e, "density", p && p !== "default" ? p : null), l(e, "shape", f && f !== "rounded" ? f : null), l(e, "elevation",
|
|
47
|
+
), $(O, (e) => {
|
|
48
|
+
l(e, "value", n != null ? String(n) : null), o(e, "disabled", c), o(e, "loading", N), o(e, "required", D), o(e, "headless", T), o(e, "invalid", G), l(e, "placeholder", g || null), l(e, "name", E || null), l(e, "label", b || null), l(e, "description", R || null), l(e, "error", y || null), l(e, "size", s && s !== "md" && s !== "2" ? s : null), l(e, "variant", u && u !== "classic" ? u : null), l(e, "tone", i && i !== "default" ? i : null), l(e, "density", p && p !== "default" ? p : null), l(e, "shape", f && f !== "rounded" ? f : null), l(e, "elevation", d && d !== "low" ? d : null), l(e, "radius", w ? String(w) : null), o(e, "option-border", A), o(e, "show-check", L), l(e, "check-placement", L ? H || "end" : null), l(e, "validation", S && S !== "none" ? S : null);
|
|
49
49
|
}, [
|
|
50
50
|
n,
|
|
51
51
|
c,
|
|
@@ -63,67 +63,67 @@ const B = t.forwardRef(function({
|
|
|
63
63
|
i,
|
|
64
64
|
p,
|
|
65
65
|
f,
|
|
66
|
-
|
|
66
|
+
d,
|
|
67
67
|
w,
|
|
68
68
|
A,
|
|
69
69
|
L,
|
|
70
70
|
H,
|
|
71
|
-
|
|
72
|
-
]),
|
|
71
|
+
S
|
|
72
|
+
]), P("ui-select", { ref: O, ...V }, r);
|
|
73
73
|
});
|
|
74
|
-
|
|
75
|
-
const
|
|
74
|
+
q.displayName = "Select";
|
|
75
|
+
const B = t.forwardRef(
|
|
76
76
|
function(r, n) {
|
|
77
77
|
return /* @__PURE__ */ t.createElement("option", { ref: n, ...r });
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
|
|
81
|
-
const
|
|
80
|
+
B.displayName = "Select.Option";
|
|
81
|
+
const C = t.forwardRef(
|
|
82
82
|
function(r, n) {
|
|
83
83
|
return /* @__PURE__ */ t.createElement("optgroup", { ref: n, ...r });
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
|
-
|
|
87
|
-
const
|
|
86
|
+
C.displayName = "Select.OptGroup";
|
|
87
|
+
const I = t.forwardRef(
|
|
88
88
|
function({ children: r, ...n }, c) {
|
|
89
89
|
return t.createElement("span", { ref: c, slot: "label", ...n }, r);
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
|
-
|
|
93
|
-
const
|
|
92
|
+
I.displayName = "Select.Label";
|
|
93
|
+
const J = t.forwardRef(
|
|
94
94
|
function({ children: r, ...n }, c) {
|
|
95
95
|
return t.createElement("span", { ref: c, slot: "description", ...n }, r);
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
|
-
|
|
99
|
-
const
|
|
98
|
+
J.displayName = "Select.Description";
|
|
99
|
+
const K = t.forwardRef(
|
|
100
100
|
function({ children: r, ...n }, c) {
|
|
101
101
|
return t.createElement("span", { ref: c, slot: "error", ...n }, r);
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
|
-
|
|
105
|
-
const
|
|
104
|
+
K.displayName = "Select.Error";
|
|
105
|
+
const M = t.forwardRef(
|
|
106
106
|
function({ children: r, ...n }, c) {
|
|
107
107
|
return t.createElement("span", { ref: c, slot: "leading", ...n }, r);
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
|
-
|
|
111
|
-
const
|
|
110
|
+
M.displayName = "Select.Leading";
|
|
111
|
+
const Q = t.forwardRef(
|
|
112
112
|
function({ children: r, ...n }, c) {
|
|
113
113
|
return t.createElement("span", { ref: c, slot: "trailing", ...n }, r);
|
|
114
114
|
}
|
|
115
115
|
);
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
Option:
|
|
119
|
-
OptGroup:
|
|
120
|
-
Label:
|
|
121
|
-
Description:
|
|
122
|
-
Error:
|
|
123
|
-
Leading:
|
|
124
|
-
Trailing:
|
|
116
|
+
Q.displayName = "Select.Trailing";
|
|
117
|
+
const ee = Object.assign(q, {
|
|
118
|
+
Option: B,
|
|
119
|
+
OptGroup: C,
|
|
120
|
+
Label: I,
|
|
121
|
+
Description: J,
|
|
122
|
+
Error: K,
|
|
123
|
+
Leading: M,
|
|
124
|
+
Trailing: Q
|
|
125
125
|
});
|
|
126
126
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
ee as Select,
|
|
128
|
+
ee as default
|
|
129
129
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react");require("@editora/ui-core/selection-popup");const
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react");require("@editora/ui-core/selection-popup");const L=require("./_internals-BIT_j6Nr.js"),H=o=>o&&o.__esModule?o:{default:o},S=H(u),M=typeof window<"u"?u.useLayoutEffect:u.useEffect,h=S.default.forwardRef(function(y,b){const{children:g,anchorId:i,open:c,placement:f,offset:a,strategy:p,arrow:w,variant:d,tone:v,radius:P,size:m,closeOnOutside:A,closeOnEscape:O,onOpen:R,onClose:C,onOpenChange:_,...q}=y,E=u.useRef(null);return S.default.useImperativeHandle(b,()=>E.current),u.useEffect(()=>{L.warnIfElementNotRegistered("ui-selection-popup","SelectionPopup")},[]),u.useEffect(()=>{const e=E.current;if(!e)return;const t=()=>{R?.(),_?.(!0)},r=()=>{C?.(),_?.(!1)};return e.addEventListener("open",t),e.addEventListener("close",r),()=>{e.removeEventListener("open",t),e.removeEventListener("close",r)}},[R,C,_]),M(()=>{const e=E.current;if(!e)return;const t=(n,l)=>{const s=e.getAttribute(n);if(l==null){s!=null&&e.removeAttribute(n);return}s!==l&&e.setAttribute(n,l)},r=(n,l,s=void 0)=>{if(l==null){s!==void 0&&t(n,s?null:"false");return}l?t(n,""):t(n,"false")};t("anchor-id",i??null),t("placement",f&&f!=="top"?f:null),t("offset",typeof a=="number"&&Number.isFinite(a)?String(a):null),t("strategy",p&&p!=="fixed"?p:null),t("variant",d&&d!=="default"?d:null),t("tone",v&&v!=="brand"?v:null),t("radius",P?String(P):null),t("size",m&&m!=="md"?m:null),r("arrow",w),r("close-on-outside",A,!0),r("close-on-escape",O,!0),c&&i?e.openFor?.(i):c?e.setAttribute("open",""):c===!1?e.close?.():e.removeAttribute("open")},[c,i,f,a,p,w,d,v,P,m,A,O]),L.createUIElement("ui-selection-popup",{ref:E,...q},g)});h.displayName="SelectionPopup";const I=S.default.forwardRef(function({children:y,...b},g){return S.default.createElement("div",{ref:g,slot:"content",...b},y)});I.displayName="SelectionPopup.Content";const N=Object.assign(h,{Content:I});exports.SelectionPopup=N;exports.default=N;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
2
|
+
import v, { useRef as H, useEffect as w, useLayoutEffect as z } from "react";
|
|
3
3
|
import "@editora/ui-core/selection-popup";
|
|
4
|
-
import { w as F } from "./_internals-
|
|
5
|
-
const
|
|
4
|
+
import { w as F, c as _ } from "./_internals-CEeSSGD-.mjs";
|
|
5
|
+
const j = typeof window < "u" ? z : w, R = v.forwardRef(function(E, y) {
|
|
6
6
|
const {
|
|
7
7
|
children: S,
|
|
8
|
-
anchorId:
|
|
9
|
-
open:
|
|
10
|
-
placement:
|
|
11
|
-
offset:
|
|
12
|
-
strategy:
|
|
8
|
+
anchorId: l,
|
|
9
|
+
open: i,
|
|
10
|
+
placement: u,
|
|
11
|
+
offset: c,
|
|
12
|
+
strategy: p,
|
|
13
13
|
arrow: P,
|
|
14
|
-
variant:
|
|
15
|
-
tone:
|
|
14
|
+
variant: f,
|
|
15
|
+
tone: a,
|
|
16
16
|
radius: b,
|
|
17
|
-
size:
|
|
17
|
+
size: d,
|
|
18
18
|
closeOnOutside: A,
|
|
19
19
|
closeOnEscape: C,
|
|
20
20
|
onOpen: L,
|
|
21
21
|
onClose: O,
|
|
22
22
|
onOpenChange: g,
|
|
23
23
|
...N
|
|
24
|
-
} = E,
|
|
25
|
-
return
|
|
24
|
+
} = E, m = H(null);
|
|
25
|
+
return v.useImperativeHandle(y, () => m.current), w(() => {
|
|
26
26
|
F("ui-selection-popup", "SelectionPopup");
|
|
27
27
|
}, []), w(() => {
|
|
28
|
-
const e =
|
|
28
|
+
const e = m.current;
|
|
29
29
|
if (!e) return;
|
|
30
30
|
const t = () => {
|
|
31
31
|
L?.(), g?.(!0);
|
|
@@ -35,43 +35,43 @@ const _ = typeof window < "u" ? z : w, R = s.forwardRef(function(E, y) {
|
|
|
35
35
|
return e.addEventListener("open", t), e.addEventListener("close", o), () => {
|
|
36
36
|
e.removeEventListener("open", t), e.removeEventListener("close", o);
|
|
37
37
|
};
|
|
38
|
-
}, [L, O, g]),
|
|
39
|
-
const e =
|
|
38
|
+
}, [L, O, g]), j(() => {
|
|
39
|
+
const e = m.current;
|
|
40
40
|
if (!e) return;
|
|
41
41
|
const t = (n, r) => {
|
|
42
|
-
const
|
|
42
|
+
const s = e.getAttribute(n);
|
|
43
43
|
if (r == null) {
|
|
44
|
-
|
|
44
|
+
s != null && e.removeAttribute(n);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
}, o = (n, r,
|
|
47
|
+
s !== r && e.setAttribute(n, r);
|
|
48
|
+
}, o = (n, r, s = void 0) => {
|
|
49
49
|
if (r == null) {
|
|
50
|
-
|
|
50
|
+
s !== void 0 && t(n, s ? null : "false");
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
r ? t(n, "") : t(n, "false");
|
|
54
54
|
};
|
|
55
|
-
t("anchor-id",
|
|
55
|
+
t("anchor-id", l ?? null), t("placement", u && u !== "top" ? u : null), t("offset", typeof c == "number" && Number.isFinite(c) ? String(c) : null), t("strategy", p && p !== "fixed" ? p : null), t("variant", f && f !== "default" ? f : null), t("tone", a && a !== "brand" ? a : null), t("radius", b ? String(b) : null), t("size", d && d !== "md" ? d : null), o("arrow", P), o("close-on-outside", A, !0), o("close-on-escape", C, !0), i && l ? e.openFor?.(l) : i ? e.setAttribute("open", "") : i === !1 ? e.close?.() : e.removeAttribute("open");
|
|
56
56
|
}, [
|
|
57
|
-
u,
|
|
58
57
|
i,
|
|
58
|
+
l,
|
|
59
|
+
u,
|
|
59
60
|
c,
|
|
60
61
|
p,
|
|
61
|
-
f,
|
|
62
62
|
P,
|
|
63
|
+
f,
|
|
63
64
|
a,
|
|
64
|
-
d,
|
|
65
65
|
b,
|
|
66
|
-
|
|
66
|
+
d,
|
|
67
67
|
A,
|
|
68
68
|
C
|
|
69
|
-
]),
|
|
69
|
+
]), _("ui-selection-popup", { ref: m, ...N }, S);
|
|
70
70
|
});
|
|
71
71
|
R.displayName = "SelectionPopup";
|
|
72
|
-
const h =
|
|
72
|
+
const h = v.forwardRef(
|
|
73
73
|
function({ children: E, ...y }, S) {
|
|
74
|
-
return
|
|
74
|
+
return v.createElement("div", { ref: S, slot: "content", ...y }, E);
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
h.displayName = "SelectionPopup.Content";
|
package/dist/Separator.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react");require("@editora/ui-core/separator");const c=require("./_internals-BIT_j6Nr.js");function u(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=u(n),o=i.forwardRef((e,t)=>c.createUIElement("ui-separator",{ref:t,...e}));o.displayName="Separator";exports.Separator=o;
|
package/dist/Separator.esm.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as e from "react";
|
|
2
2
|
import "@editora/ui-core/separator";
|
|
3
|
-
|
|
3
|
+
import { c as o } from "./_internals-CEeSSGD-.mjs";
|
|
4
|
+
const t = e.forwardRef(
|
|
5
|
+
(r, a) => o("ui-separator", { ref: a, ...r })
|
|
6
|
+
);
|
|
4
7
|
t.displayName = "Separator";
|
|
5
8
|
export {
|
|
6
9
|
t as Separator
|
package/dist/Sidebar.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react");require("@editora/ui-core/sidebar");const ye=require("react-dom/server"),Se=e=>e&&e.__esModule?e:{default:e},i=
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react");require("@editora/ui-core/sidebar");const ye=require("react-dom/server"),Se=require("./_internals-BIT_j6Nr.js"),ve=e=>e&&e.__esModule?e:{default:e},i=ve(f),Ee=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ce=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),O="SidebarGroup",V="SidebarItem";function j(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function we(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function _e(e){const t=[];for(const[r,n]of Object.entries(e))n==null||n===""||t.push(`${we(r)}:${String(n)}`);return t.join(";")}function Ie(e){return e==="className"?"class":e==="htmlFor"?"for":e}function v(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number")return j(String(e));if(Array.isArray(e))return e.map(a=>v(a)).join("");if(!f.isValidElement(e))return"";if(e.type===i.default.Fragment)return v(e.props.children);if(typeof e.type=="function"){const a=e.type;if(!!a.prototype?.isReactComponent)return"";try{return v(a(e.props))}catch{return""}}if(typeof e.type!="string")return"";const t=e.type,r=e.props,n=[];let u;for(const[a,s]of Object.entries(r)){if(a==="children")continue;if(a==="dangerouslySetInnerHTML"){const d=s;typeof d?.__html=="string"&&(u=d.__html);continue}if(a==="ref"||a==="key"||a==="suppressHydrationWarning"||a==="suppressContentEditableWarning"||a.startsWith("on")||s==null||s===!1)continue;const g=Ie(a);if(a==="style"&&typeof s=="object"){const d=_e(s);d&&n.push(` style="${j(d)}"`);continue}if(s===!0){n.push(` ${g}`);continue}(typeof s=="string"||typeof s=="number")&&n.push(` ${g}="${j(String(s))}"`)}const b=u??v(r.children);return!b&&Ce.has(t)?`<${t}${n.join("")}>`:`<${t}${n.join("")}>${b}</${t}>`}function N(e,t){return f.isValidElement(e)&&e.type.__sidebarMarker===t}function He(e){const t=[],r=[];return f.Children.forEach(e,n=>{if(N(n,O)||N(n,V)){t.push(n);return}n!=null&&n!==!1&&r.push(n)}),{submenuChildren:t,contentChildren:r}}function ke(e,t){if(typeof e=="string")return{contentChildren:t};if(e)return{iconHtml:F(e),contentChildren:t};const[r,...n]=t;return f.isValidElement(r)&&(typeof r.type!="string"||r.type==="svg")?{iconHtml:F(r),contentChildren:n}:{contentChildren:t}}function q(e,t=""){const r=[];return f.Children.forEach(e,n=>{if(N(n,O)){const u=n.props.title||t;r.push(...q(n.props.children,u));return}if(N(n,V)){const u=n.props.section||t,b=n.props.icon,{submenuChildren:a,contentChildren:s}=He(n.props.children),{iconHtml:g,contentChildren:d}=ke(b,s);r.push({value:n.props.value,label:n.props.label,href:n.props.href,target:n.props.target,rel:n.props.rel,icon:typeof b=="string"?b:void 0,iconHtml:g,contentHtml:$e(d),badge:n.props.badge,description:n.props.description,section:u,disabled:n.props.disabled,active:n.props.active,tone:n.props.tone,children:q(a,u)})}}),r}function pe(e){return e.map(t=>({...t,icon:typeof t.icon=="string"?t.icon:void 0,iconHtml:t.iconHtml||F(t.icon),contentHtml:t.contentHtml,children:t.children?pe(t.children):void 0}))}function S(e){return e==null||e===""?null:typeof e=="number"?`${e}px`:String(e)}function F(e){if(!e||typeof e=="string"||!f.isValidElement(e))return;const t=i.default.cloneElement(e,{width:e.props.width??18,height:e.props.height??18,"aria-hidden":!0,focusable:"false"});return v(t)||ye.renderToStaticMarkup(t)||void 0}function $e(e){return e.length&&v(i.default.createElement(i.default.Fragment,null,e))||void 0}function xe(e,t=""){return q(e,t).map((r,n)=>{const u={slot:"item",key:`${r.section||"group"}:${r.value}:${n}`,"data-value":r.value,"data-label":r.label,"data-href":r.href||void 0,"data-target":r.target||void 0,"data-rel":r.rel||void 0,"data-section":r.section||void 0,"data-icon":r.icon||void 0,"data-icon-html":r.iconHtml||void 0,"data-content-html":r.contentHtml||void 0,"data-badge":r.badge||void 0,"data-description":r.description||void 0,"data-tone":r.tone&&r.tone!=="default"?r.tone:void 0};return r.disabled&&(u["data-disabled"]=""),r.active&&(u["data-active"]=""),r.children?.length&&(u["data-children"]=JSON.stringify(r.children)),i.default.createElement("div",u,r.label)})}const G=({children:e,...t})=>i.default.createElement("div",{slot:"header",...t},e),T=({children:e,...t})=>i.default.createElement("div",{slot:"search",...t},e),P=({icon:e,style:t,placeholder:r="Search…",...n})=>i.default.createElement("div",{slot:"search",style:{display:"grid",gridTemplateColumns:"16px minmax(0, 1fr)",alignItems:"center",gap:10,minHeight:44,padding:"0 14px",borderRadius:16,border:"1px solid color-mix(in srgb, var(--ui-color-border, #cbd5e1) 76%, transparent)",background:"color-mix(in srgb, var(--ui-color-primary, #2563eb) 4%, var(--color-panel-solid, var(--ui-color-surface, #ffffff)))",color:"var(--ui-color-muted, #64748b)",boxSizing:"border-box",...t}},i.default.createElement("span",{"aria-hidden":"true",style:{display:"inline-grid",placeItems:"center",width:16,height:16,color:"currentColor"}},e||i.default.createElement("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.default.createElement("circle",{cx:"7",cy:"7",r:"4.75",stroke:"currentColor",strokeWidth:"1.5"}),i.default.createElement("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))),i.default.createElement("input",{type:"search",placeholder:r,style:{width:"100%",minWidth:0,border:"none",outline:"none",background:"transparent",color:"inherit",font:"inherit",lineHeight:"inherit"},...n})),z=({children:e,...t})=>i.default.createElement("div",{slot:"promo",...t},e),D=({children:e,...t})=>i.default.createElement("div",{slot:"footer",...t},e),L=({children:e})=>i.default.createElement(i.default.Fragment,null,e);L.__sidebarMarker=O;const M=()=>null;M.__sidebarMarker=V;const W=({children:e})=>i.default.createElement(i.default.Fragment,null,xe(e)),be=i.default.forwardRef(function({children:t,collapsed:r,collapsible:n,rail:u,resizable:b,position:a,value:s,items:g,searchQuery:d,variant:w,size:E,density:_,tone:I,radius:H,itemRadius:B,itemGap:J,itemPaddingX:U,itemPaddingY:K,itemHeight:Z,itemFontSize:X,itemLineHeight:Y,sectionLabelTransform:k,elevation:$,showIcons:A,showBadges:R,headless:Q,width:ee,minWidth:te,maxWidth:re,collapsedWidth:ne,storageKey:oe,autoSave:ae,onSelect:ie,onChange:le,onToggle:se,onCollapseChange:ce,onWidthChange:ue,onSearchChange:de,...he},me){const x=f.useRef(null);return f.useImperativeHandle(me,()=>x.current),f.useEffect(()=>{const l=x.current;if(!l)return;const o=p=>{const c=p.detail;c&&ie?.(c)},h=p=>{const c=p.detail;c&&le?.(c)},m=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&se?.(c)},y=p=>{const c=p.detail?.collapsed;typeof c=="boolean"&&ce?.(c)},C=p=>{const c=p.detail;c&&ue?.(c)},fe=p=>{const c=p.detail?.query;typeof c=="string"&&de?.(c)};return l.addEventListener("select",o),l.addEventListener("change",h),l.addEventListener("toggle",m),l.addEventListener("collapse-change",y),l.addEventListener("width-change",C),l.addEventListener("search-change",fe),()=>{l.removeEventListener("select",o),l.removeEventListener("change",h),l.removeEventListener("toggle",m),l.removeEventListener("collapse-change",y),l.removeEventListener("width-change",C),l.removeEventListener("search-change",fe)}},[ie,le,se,ce,ue,de]),Ee(()=>{const l=x.current;if(!l)return;const o=(m,y)=>{const C=l.getAttribute(m);if(y==null){C!=null&&l.removeAttribute(m);return}C!==y&&l.setAttribute(m,y)},h=(m,y)=>{y!=null&&(y?o(m,""):o(m,null))};if(h("collapsed",r),h("collapsible",n),h("rail",u),h("resizable",b),h("headless",Q),h("auto-save",ae),o("position",a&&a!=="left"?a:null),o("value",s!=null&&s!==""?String(s):null),o("search-query",typeof d=="string"&&d!==""?d:null),o("width",ee||null),o("min-width",te||null),o("max-width",re||null),o("collapsed-width",ne||null),o("storage-key",oe||null),g&&g.length)try{o("items",JSON.stringify(pe(g)))}catch{o("items",null)}else o("items",null);o("variant",w&&w!=="surface"?w:null),o("size",E&&E!=="md"&&E!=="2"?E:null),o("density",_&&_!=="default"?_:null),o("tone",I&&I!=="default"?I:null),o("radius",H==null||H===""?null:String(H)),o("item-radius",S(B)),o("item-gap",S(J)),o("item-padding-x",S(U)),o("item-padding-y",S(K)),o("item-height",S(Z)),o("item-font-size",S(X)),o("item-line-height",S(Y)),o("section-label-transform",k&&k!=="none"?k:null),o("elevation",$&&$!=="low"?$:null),typeof A=="boolean"?o("show-icons",A?"true":"false"):o("show-icons",null),typeof R=="boolean"?o("show-badges",R?"true":"false"):o("show-badges",null)},[r,n,u,b,Q,ae,a,s,ee,te,re,ne,oe,g,w,E,_,I,H,B,J,U,K,Z,X,Y,k,d,$,A,R]),Se.createUIElement("ui-sidebar",{ref:x,...he},t)});be.displayName="Sidebar";G.displayName="Sidebar.Header";T.displayName="Sidebar.Search";P.displayName="Sidebar.SearchInput";W.displayName="Sidebar.Content";L.displayName="Sidebar.Group";M.displayName="Sidebar.Item";z.displayName="Sidebar.Promo";D.displayName="Sidebar.Footer";const ge=Object.assign(be,{Header:G,Search:T,SearchInput:P,Content:W,Group:L,Item:M,Promo:z,Footer:D});exports.Sidebar=ge;exports.SidebarContent=W;exports.SidebarFooter=D;exports.SidebarGroup=L;exports.SidebarHeader=G;exports.SidebarItem=M;exports.SidebarPromo=z;exports.SidebarSearch=T;exports.SidebarSearchInput=P;exports.default=ge;
|
package/dist/Sidebar.esm.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import a, { useRef as ve, useImperativeHandle as Se, useEffect as le, useLayoutEffect as Ee, isValidElement as N, Children as se } from "react";
|
|
3
3
|
import "@editora/ui-core/sidebar";
|
|
4
4
|
import { renderToStaticMarkup as we } from "react-dom/server";
|
|
5
|
-
|
|
5
|
+
import { c as Ce } from "./_internals-CEeSSGD-.mjs";
|
|
6
|
+
const Ie = typeof window < "u" ? Ee : le, He = /* @__PURE__ */ new Set([
|
|
6
7
|
"area",
|
|
7
8
|
"base",
|
|
8
9
|
"br",
|
|
@@ -21,16 +22,16 @@ const Ce = typeof window < "u" ? Ee : le, He = /* @__PURE__ */ new Set([
|
|
|
21
22
|
function R(e) {
|
|
22
23
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function ke(e) {
|
|
25
26
|
return e.startsWith("--") ? e : e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function _e(e) {
|
|
28
29
|
const t = [];
|
|
29
30
|
for (const [r, n] of Object.entries(e))
|
|
30
|
-
n == null || n === "" || t.push(`${
|
|
31
|
+
n == null || n === "" || t.push(`${ke(r)}:${String(n)}`);
|
|
31
32
|
return t.join(";");
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function xe(e) {
|
|
34
35
|
return e === "className" ? "class" : e === "htmlFor" ? "for" : e;
|
|
35
36
|
}
|
|
36
37
|
function v(e) {
|
|
@@ -60,9 +61,9 @@ function v(e) {
|
|
|
60
61
|
continue;
|
|
61
62
|
}
|
|
62
63
|
if (i === "ref" || i === "key" || i === "suppressHydrationWarning" || i === "suppressContentEditableWarning" || i.startsWith("on") || s == null || s === !1) continue;
|
|
63
|
-
const b =
|
|
64
|
+
const b = xe(i);
|
|
64
65
|
if (i === "style" && typeof s == "object") {
|
|
65
|
-
const d =
|
|
66
|
+
const d = _e(s);
|
|
66
67
|
d && n.push(` style="${R(d)}"`);
|
|
67
68
|
continue;
|
|
68
69
|
}
|
|
@@ -78,7 +79,7 @@ function v(e) {
|
|
|
78
79
|
function $(e, t) {
|
|
79
80
|
return N(e) && e.type.__sidebarMarker === t;
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function $e(e) {
|
|
82
83
|
const t = [], r = [];
|
|
83
84
|
return se.forEach(e, (n) => {
|
|
84
85
|
if ($(n, F) || $(n, O)) {
|
|
@@ -88,7 +89,7 @@ function xe(e) {
|
|
|
88
89
|
n != null && n !== !1 && r.push(n);
|
|
89
90
|
}), { submenuChildren: t, contentChildren: r };
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function Ne(e, t) {
|
|
92
93
|
if (typeof e == "string") return { contentChildren: t };
|
|
93
94
|
if (e) return { iconHtml: j(e), contentChildren: t };
|
|
94
95
|
const [r, ...n] = t;
|
|
@@ -106,7 +107,7 @@ function M(e, t = "") {
|
|
|
106
107
|
return;
|
|
107
108
|
}
|
|
108
109
|
if ($(n, O)) {
|
|
109
|
-
const u = n.props.section || t, f = n.props.icon, { submenuChildren: i, contentChildren: s } =
|
|
110
|
+
const u = n.props.section || t, f = n.props.icon, { submenuChildren: i, contentChildren: s } = $e(n.props.children), { iconHtml: b, contentChildren: d } = Ne(f, s);
|
|
110
111
|
r.push({
|
|
111
112
|
value: n.props.value,
|
|
112
113
|
label: n.props.label,
|
|
@@ -115,7 +116,7 @@ function M(e, t = "") {
|
|
|
115
116
|
rel: n.props.rel,
|
|
116
117
|
icon: typeof f == "string" ? f : void 0,
|
|
117
118
|
iconHtml: b,
|
|
118
|
-
contentHtml:
|
|
119
|
+
contentHtml: Le(d),
|
|
119
120
|
badge: n.props.badge,
|
|
120
121
|
description: n.props.description,
|
|
121
122
|
section: u,
|
|
@@ -149,10 +150,10 @@ function j(e) {
|
|
|
149
150
|
});
|
|
150
151
|
return v(t) || we(t) || void 0;
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
+
function Le(e) {
|
|
153
154
|
return e.length && v(/* @__PURE__ */ a.createElement(a.Fragment, null, e)) || void 0;
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
+
function Ae(e, t = "") {
|
|
156
157
|
return M(e, t).map((r, n) => {
|
|
157
158
|
const u = {
|
|
158
159
|
slot: "item",
|
|
@@ -233,7 +234,7 @@ const ue = ({ children: e, ...t }) => /* @__PURE__ */ a.createElement("div", { s
|
|
|
233
234
|
G.__sidebarMarker = F;
|
|
234
235
|
const T = () => null;
|
|
235
236
|
T.__sidebarMarker = O;
|
|
236
|
-
const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null,
|
|
237
|
+
const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null, Ae(e)), me = a.forwardRef(function({
|
|
237
238
|
children: t,
|
|
238
239
|
collapsed: r,
|
|
239
240
|
collapsible: n,
|
|
@@ -246,8 +247,8 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
|
|
|
246
247
|
variant: w,
|
|
247
248
|
size: S,
|
|
248
249
|
density: C,
|
|
249
|
-
tone:
|
|
250
|
-
radius:
|
|
250
|
+
tone: I,
|
|
251
|
+
radius: H,
|
|
251
252
|
itemRadius: q,
|
|
252
253
|
itemGap: z,
|
|
253
254
|
itemPaddingX: V,
|
|
@@ -260,8 +261,8 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
|
|
|
260
261
|
showIcons: L,
|
|
261
262
|
showBadges: A,
|
|
262
263
|
headless: J,
|
|
263
|
-
width:
|
|
264
|
-
minWidth:
|
|
264
|
+
width: U,
|
|
265
|
+
minWidth: K,
|
|
265
266
|
maxWidth: Z,
|
|
266
267
|
collapsedWidth: X,
|
|
267
268
|
storageKey: Y,
|
|
@@ -272,7 +273,7 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
|
|
|
272
273
|
onCollapseChange: ne,
|
|
273
274
|
onWidthChange: oe,
|
|
274
275
|
onSearchChange: ie,
|
|
275
|
-
...
|
|
276
|
+
...he
|
|
276
277
|
}, ye) {
|
|
277
278
|
const x = ve(null);
|
|
278
279
|
return Se(ye, () => x.current), le(() => {
|
|
@@ -284,10 +285,10 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
|
|
|
284
285
|
}, g = (p) => {
|
|
285
286
|
const c = p.detail;
|
|
286
287
|
c && te?.(c);
|
|
287
|
-
},
|
|
288
|
+
}, m = (p) => {
|
|
288
289
|
const c = p.detail?.collapsed;
|
|
289
290
|
typeof c == "boolean" && re?.(c);
|
|
290
|
-
},
|
|
291
|
+
}, h = (p) => {
|
|
291
292
|
const c = p.detail?.collapsed;
|
|
292
293
|
typeof c == "boolean" && ne?.(c);
|
|
293
294
|
}, E = (p) => {
|
|
@@ -297,23 +298,23 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
|
|
|
297
298
|
const c = p.detail?.query;
|
|
298
299
|
typeof c == "string" && ie?.(c);
|
|
299
300
|
};
|
|
300
|
-
return l.addEventListener("select", o), l.addEventListener("change", g), l.addEventListener("toggle",
|
|
301
|
-
l.removeEventListener("select", o), l.removeEventListener("change", g), l.removeEventListener("toggle",
|
|
301
|
+
return l.addEventListener("select", o), l.addEventListener("change", g), l.addEventListener("toggle", m), l.addEventListener("collapse-change", h), l.addEventListener("width-change", E), l.addEventListener("search-change", ae), () => {
|
|
302
|
+
l.removeEventListener("select", o), l.removeEventListener("change", g), l.removeEventListener("toggle", m), l.removeEventListener("collapse-change", h), l.removeEventListener("width-change", E), l.removeEventListener("search-change", ae);
|
|
302
303
|
};
|
|
303
|
-
}, [ee, te, re, ne, oe, ie]),
|
|
304
|
+
}, [ee, te, re, ne, oe, ie]), Ie(() => {
|
|
304
305
|
const l = x.current;
|
|
305
306
|
if (!l) return;
|
|
306
|
-
const o = (
|
|
307
|
-
const E = l.getAttribute(
|
|
308
|
-
if (
|
|
309
|
-
E != null && l.removeAttribute(
|
|
307
|
+
const o = (m, h) => {
|
|
308
|
+
const E = l.getAttribute(m);
|
|
309
|
+
if (h == null) {
|
|
310
|
+
E != null && l.removeAttribute(m);
|
|
310
311
|
return;
|
|
311
312
|
}
|
|
312
|
-
E !==
|
|
313
|
-
}, g = (
|
|
314
|
-
|
|
313
|
+
E !== h && l.setAttribute(m, h);
|
|
314
|
+
}, g = (m, h) => {
|
|
315
|
+
h != null && (h ? o(m, "") : o(m, null));
|
|
315
316
|
};
|
|
316
|
-
if (g("collapsed", r), g("collapsible", n), g("rail", u), g("resizable", f), g("headless", J), g("auto-save", Q), o("position", i && i !== "left" ? i : null), o("value", s != null && s !== "" ? String(s) : null), o("search-query", typeof d == "string" && d !== "" ? d : null), o("width",
|
|
317
|
+
if (g("collapsed", r), g("collapsible", n), g("rail", u), g("resizable", f), g("headless", J), g("auto-save", Q), o("position", i && i !== "left" ? i : null), o("value", s != null && s !== "" ? String(s) : null), o("search-query", typeof d == "string" && d !== "" ? d : null), o("width", U || null), o("min-width", K || null), o("max-width", Z || null), o("collapsed-width", X || null), o("storage-key", Y || null), b && b.length)
|
|
317
318
|
try {
|
|
318
319
|
o("items", JSON.stringify(ce(b)));
|
|
319
320
|
} catch {
|
|
@@ -321,7 +322,7 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
|
|
|
321
322
|
}
|
|
322
323
|
else
|
|
323
324
|
o("items", null);
|
|
324
|
-
o("variant", w && w !== "surface" ? w : null), o("size", S && S !== "md" && S !== "2" ? S : null), o("density", C && C !== "default" ? C : null), o("tone",
|
|
325
|
+
o("variant", w && w !== "surface" ? w : null), o("size", S && S !== "md" && S !== "2" ? S : null), o("density", C && C !== "default" ? C : null), o("tone", I && I !== "default" ? I : null), o("radius", H == null || H === "" ? null : String(H)), o("item-radius", y(q)), o("item-gap", y(z)), o("item-padding-x", y(V)), o("item-padding-y", y(W)), o("item-height", y(B)), o("item-font-size", y(D)), o("item-line-height", y(P)), o(
|
|
325
326
|
"section-label-transform",
|
|
326
327
|
k && k !== "none" ? k : null
|
|
327
328
|
), o("elevation", _ && _ !== "low" ? _ : null), typeof L == "boolean" ? o("show-icons", L ? "true" : "false") : o("show-icons", null), typeof A == "boolean" ? o("show-badges", A ? "true" : "false") : o("show-badges", null);
|
|
@@ -334,8 +335,8 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
|
|
|
334
335
|
Q,
|
|
335
336
|
i,
|
|
336
337
|
s,
|
|
337
|
-
K,
|
|
338
338
|
U,
|
|
339
|
+
K,
|
|
339
340
|
Z,
|
|
340
341
|
X,
|
|
341
342
|
Y,
|
|
@@ -343,8 +344,8 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
|
|
|
343
344
|
w,
|
|
344
345
|
S,
|
|
345
346
|
C,
|
|
346
|
-
H,
|
|
347
347
|
I,
|
|
348
|
+
H,
|
|
348
349
|
q,
|
|
349
350
|
z,
|
|
350
351
|
V,
|
|
@@ -357,9 +358,9 @@ const ge = ({ children: e }) => /* @__PURE__ */ a.createElement(a.Fragment, null
|
|
|
357
358
|
_,
|
|
358
359
|
L,
|
|
359
360
|
A
|
|
360
|
-
]),
|
|
361
|
+
]), Ce("ui-sidebar", { ref: x, ...he }, t);
|
|
361
362
|
});
|
|
362
|
-
|
|
363
|
+
me.displayName = "Sidebar";
|
|
363
364
|
ue.displayName = "Sidebar.Header";
|
|
364
365
|
de.displayName = "Sidebar.Search";
|
|
365
366
|
pe.displayName = "Sidebar.SearchInput";
|
|
@@ -368,7 +369,7 @@ G.displayName = "Sidebar.Group";
|
|
|
368
369
|
T.displayName = "Sidebar.Item";
|
|
369
370
|
fe.displayName = "Sidebar.Promo";
|
|
370
371
|
be.displayName = "Sidebar.Footer";
|
|
371
|
-
const
|
|
372
|
+
const Oe = Object.assign(me, {
|
|
372
373
|
Header: ue,
|
|
373
374
|
Search: de,
|
|
374
375
|
SearchInput: pe,
|
|
@@ -379,7 +380,7 @@ const je = Object.assign(he, {
|
|
|
379
380
|
Footer: be
|
|
380
381
|
});
|
|
381
382
|
export {
|
|
382
|
-
|
|
383
|
+
Oe as Sidebar,
|
|
383
384
|
ge as SidebarContent,
|
|
384
385
|
be as SidebarFooter,
|
|
385
386
|
G as SidebarGroup,
|
|
@@ -388,5 +389,5 @@ export {
|
|
|
388
389
|
fe as SidebarPromo,
|
|
389
390
|
de as SidebarSearch,
|
|
390
391
|
pe as SidebarSearchInput,
|
|
391
|
-
|
|
392
|
+
Oe as default
|
|
392
393
|
};
|
package/dist/Skeleton.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("react");require("@editora/ui-core/skeleton");const t=require("./_internals-BIT_j6Nr.js"),p=n=>n&&n.__esModule?n:{default:n},k=p(_),a=k.default.forwardRef(function(A,m){const{count:i,width:o,height:l,radius:c,gap:d,duration:b,variant:y,animation:s,density:r,tone:u,animated:g,headless:S,...h}=A,f=t.useForwardedHostRef(m);return t.useElementAttributes(f,e=>{t.syncNumberAttribute(e,"count",typeof i=="number"&&Number.isFinite(i)?i:void 0),t.syncStringAttribute(e,"width",o??null),t.syncStringAttribute(e,"height",l??null),t.syncStringAttribute(e,"radius",c??null),t.syncStringAttribute(e,"gap",d??null),t.syncStringAttribute(e,"duration",b??null),t.syncStringAttribute(e,"variant",y??null),t.syncStringAttribute(e,"animation",s||null),t.syncStringAttribute(e,"density",r&&r!=="default"?r:null),t.syncStringAttribute(e,"tone",u&&u!=="default"?u:null),t.syncBooleanAttribute(e,"animated",g),t.syncBooleanAttribute(e,"headless",S)},[i,o,l,c,d,b,y,s,r,u,g,S]),t.createUIElement("ui-skeleton",{ref:f,...h})});a.displayName="Skeleton";exports.Skeleton=a;exports.default=a;
|