fluxo-ui 0.0.1
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 +237 -0
- package/chunk-Do9eywBl.cjs +35 -0
- package/classnames-B4qHndiD.cjs +48 -0
- package/classnames-CEAOwX3h.js +66 -0
- package/components-C_HbdZhO.js +22556 -0
- package/components-DdojqcZ7.cjs +23236 -0
- package/dnd.cjs +6 -0
- package/dnd.d.ts +1 -0
- package/dnd.js +2 -0
- package/drag-drop-BF3uukc4.cjs +258 -0
- package/drag-drop-UWg0agsw.js +233 -0
- package/draw.cjs +3156 -0
- package/draw.d.ts +1 -0
- package/draw.js +3147 -0
- package/favicon.svg +14 -0
- package/hooks-BLbZ4aKB.cjs +137 -0
- package/hooks-D0CAM9v9.js +107 -0
- package/hooks.cjs +7 -0
- package/hooks.d.ts +1 -0
- package/hooks.js +2 -0
- package/icons-BRgMxTPy.js +1641 -0
- package/icons-CNooH6LA.cjs +2038 -0
- package/icons.cjs +85 -0
- package/icons.d.ts +1 -0
- package/icons.js +2 -0
- package/index.cjs +115 -0
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/kanban.cjs +969 -0
- package/kanban.d.ts +1 -0
- package/kanban.js +967 -0
- package/logo.svg +26 -0
- package/package.json +110 -0
- package/services.cjs +331 -0
- package/services.d.ts +1 -0
- package/services.js +321 -0
- package/src/assets/icons.d.ts +86 -0
- package/src/components/Autocomplete.d.ts +22 -0
- package/src/components/AutocompleteMulti.d.ts +24 -0
- package/src/components/Breadcrumb.d.ts +17 -0
- package/src/components/Button.d.ts +26 -0
- package/src/components/Checkbox.d.ts +12 -0
- package/src/components/Chips.d.ts +16 -0
- package/src/components/DeferredView.d.ts +13 -0
- package/src/components/Dropdown.d.ts +22 -0
- package/src/components/Fab.d.ts +23 -0
- package/src/components/FieldLabel.d.ts +15 -0
- package/src/components/Icon.d.ts +6 -0
- package/src/components/InfiniteScroll.d.ts +19 -0
- package/src/components/InputGroup.d.ts +7 -0
- package/src/components/InputSwitch.d.ts +12 -0
- package/src/components/Link.d.ts +5 -0
- package/src/components/ListBox.d.ts +38 -0
- package/src/components/MaskedInput.d.ts +28 -0
- package/src/components/Modal.d.ts +12 -0
- package/src/components/MultiStateCheckbox.d.ts +11 -0
- package/src/components/Multiselect.d.ts +25 -0
- package/src/components/NumericInput.d.ts +16 -0
- package/src/components/Password.d.ts +18 -0
- package/src/components/Popover.d.ts +20 -0
- package/src/components/ProgressBar.d.ts +31 -0
- package/src/components/RadioButton.d.ts +20 -0
- package/src/components/SelectButton.d.ts +20 -0
- package/src/components/SpeedDial.d.ts +40 -0
- package/src/components/Stepper.d.ts +41 -0
- package/src/components/TextArea.d.ts +19 -0
- package/src/components/TextInput.d.ts +19 -0
- package/src/components/ToggleButton.d.ts +12 -0
- package/src/components/animate-on-view/AnimateOnView.d.ts +23 -0
- package/src/components/animate-on-view/index.d.ts +2 -0
- package/src/components/calendar/Calendar.d.ts +4 -0
- package/src/components/calendar/CalendarContext.d.ts +4 -0
- package/src/components/calendar/calendar-constants.d.ts +8 -0
- package/src/components/calendar/calendar-types.d.ts +413 -0
- package/src/components/calendar/calendar-utils.d.ts +61 -0
- package/src/components/calendar/entries/CalendarEntry.d.ts +20 -0
- package/src/components/calendar/entries/DefaultEntry.d.ts +8 -0
- package/src/components/calendar/entries/EntryContainer.d.ts +19 -0
- package/src/components/calendar/entries/OverflowPopover.d.ts +12 -0
- package/src/components/calendar/entries/index.d.ts +4 -0
- package/src/components/calendar/hooks/index.d.ts +4 -0
- package/src/components/calendar/hooks/useCalendarEntries.d.ts +8 -0
- package/src/components/calendar/hooks/useCalendarNavigation.d.ts +24 -0
- package/src/components/calendar/hooks/useNowIndicator.d.ts +10 -0
- package/src/components/calendar/hooks/useViewTitle.d.ts +2 -0
- package/src/components/calendar/index.d.ts +9 -0
- package/src/components/calendar/interactions/index.d.ts +3 -0
- package/src/components/calendar/interactions/useDragMove.d.ts +11 -0
- package/src/components/calendar/interactions/useDragResize.d.ts +11 -0
- package/src/components/calendar/interactions/useSelection.d.ts +11 -0
- package/src/components/calendar/plugin-registry.d.ts +17 -0
- package/src/components/calendar/plugins/agenda-plugin.d.ts +6 -0
- package/src/components/calendar/plugins/create-plugin.d.ts +20 -0
- package/src/components/calendar/plugins/day-grid-plugin.d.ts +2 -0
- package/src/components/calendar/plugins/default-plugins.d.ts +2 -0
- package/src/components/calendar/plugins/index.d.ts +14 -0
- package/src/components/calendar/plugins/list-view-plugin.d.ts +2 -0
- package/src/components/calendar/plugins/month-grid-plugin.d.ts +2 -0
- package/src/components/calendar/plugins/multi-month-plugin.d.ts +2 -0
- package/src/components/calendar/plugins/scroll-month-plugin.d.ts +2 -0
- package/src/components/calendar/plugins/time-grid-custom-plugin.d.ts +6 -0
- package/src/components/calendar/plugins/time-grid-plugin.d.ts +2 -0
- package/src/components/calendar/plugins/year-grid-plugin.d.ts +2 -0
- package/src/components/calendar/toolbar/CalendarToolbar.d.ts +27 -0
- package/src/components/calendar/toolbar/ToolbarNavigation.d.ts +8 -0
- package/src/components/calendar/toolbar/ToolbarTitle.d.ts +6 -0
- package/src/components/calendar/toolbar/ToolbarViewSwitcher.d.ts +9 -0
- package/src/components/calendar/toolbar/index.d.ts +4 -0
- package/src/components/calendar/views/ViewRenderer.d.ts +7 -0
- package/src/components/calendar/views/agenda/AgendaView.d.ts +6 -0
- package/src/components/calendar/views/agenda/index.d.ts +1 -0
- package/src/components/calendar/views/day-grid/DayGrid.d.ts +9 -0
- package/src/components/calendar/views/day-grid/DayGridCell.d.ts +15 -0
- package/src/components/calendar/views/day-grid/index.d.ts +2 -0
- package/src/components/calendar/views/index.d.ts +10 -0
- package/src/components/calendar/views/list-view/ListView.d.ts +7 -0
- package/src/components/calendar/views/list-view/ListViewGroup.d.ts +11 -0
- package/src/components/calendar/views/list-view/ListViewItem.d.ts +10 -0
- package/src/components/calendar/views/list-view/index.d.ts +3 -0
- package/src/components/calendar/views/month-grid/MonthGrid.d.ts +5 -0
- package/src/components/calendar/views/month-grid/MonthGridCell.d.ts +22 -0
- package/src/components/calendar/views/month-grid/MonthGridHeader.d.ts +8 -0
- package/src/components/calendar/views/month-grid/index.d.ts +3 -0
- package/src/components/calendar/views/multi-month/MultiMonthGrid.d.ts +5 -0
- package/src/components/calendar/views/multi-month/index.d.ts +1 -0
- package/src/components/calendar/views/scroll-month/ScrollMonthView.d.ts +5 -0
- package/src/components/calendar/views/scroll-month/index.d.ts +1 -0
- package/src/components/calendar/views/time-grid/NowIndicator.d.ts +9 -0
- package/src/components/calendar/views/time-grid/TimeGrid.d.ts +9 -0
- package/src/components/calendar/views/time-grid/TimeGridAllDay.d.ts +14 -0
- package/src/components/calendar/views/time-grid/TimeGridBody.d.ts +21 -0
- package/src/components/calendar/views/time-grid/TimeGridColumn.d.ts +22 -0
- package/src/components/calendar/views/time-grid/TimeGridHeader.d.ts +9 -0
- package/src/components/calendar/views/time-grid/TimeGridSlot.d.ts +12 -0
- package/src/components/calendar/views/time-grid/index.d.ts +7 -0
- package/src/components/calendar/views/time-grid-custom/TimeGridCustomDays.d.ts +7 -0
- package/src/components/calendar/views/time-grid-custom/index.d.ts +1 -0
- package/src/components/calendar/views/year-grid/YearGrid.d.ts +5 -0
- package/src/components/calendar/views/year-grid/index.d.ts +1 -0
- package/src/components/canvas-draw/CanvasDraw.d.ts +18 -0
- package/src/components/canvas-draw/CanvasDrawOverlay.d.ts +27 -0
- package/src/components/canvas-draw/CanvasDrawToolbar.d.ts +32 -0
- package/src/components/canvas-draw/MediaTimeline.d.ts +36 -0
- package/src/components/canvas-draw/canvas-draw-types.d.ts +200 -0
- package/src/components/canvas-draw/index.d.ts +10 -0
- package/src/components/carousel/Carousel.d.ts +35 -0
- package/src/components/carousel/CarouselSlide.d.ts +22 -0
- package/src/components/carousel/CarouselThumbnails.d.ts +10 -0
- package/src/components/carousel/index.d.ts +2 -0
- package/src/components/collapsible-panel/CollapsiblePanel.d.ts +45 -0
- package/src/components/collapsible-panel/CollapsibleTabs.d.ts +24 -0
- package/src/components/collapsible-panel/index.d.ts +4 -0
- package/src/components/confirm-popover/ConfirmPopoverManager.d.ts +18 -0
- package/src/components/confirm-popover/ConfirmPopoverPanel.d.ts +7 -0
- package/src/components/confirm-popover/index.d.ts +3 -0
- package/src/components/confirm-popover/types.d.ts +20 -0
- package/src/components/confirm-popover/useConfirmPopoverPosition.d.ts +10 -0
- package/src/components/context/ThemeContext.d.ts +24 -0
- package/src/components/context-menu/ContextMenuManager.d.ts +3 -0
- package/src/components/context-menu/index.d.ts +2 -0
- package/src/components/context-menu/types.d.ts +28 -0
- package/src/components/context-menu/utils.d.ts +3 -0
- package/src/components/date-range/Calendar.d.ts +15 -0
- package/src/components/date-range/CustomDatePicker.d.ts +2 -0
- package/src/components/date-range/DatePopover.d.ts +5 -0
- package/src/components/date-range/DateRangePicker.d.ts +3 -0
- package/src/components/date-range/Footer.d.ts +2 -0
- package/src/components/date-range/MonthPicker.d.ts +10 -0
- package/src/components/date-range/QuickRangeDropdown.d.ts +2 -0
- package/src/components/date-range/QuickRangeList.d.ts +2 -0
- package/src/components/date-range/YearPicker.d.ts +11 -0
- package/src/components/date-range/index.d.ts +2 -0
- package/src/components/date-range/types.d.ts +65 -0
- package/src/components/date-range/utils.d.ts +6 -0
- package/src/components/drag-drop/DragDropProvider.d.ts +33 -0
- package/src/components/drag-drop/Draggable.d.ts +86 -0
- package/src/components/drag-drop/Droppable.d.ts +60 -0
- package/src/components/drag-drop/Sortable.d.ts +98 -0
- package/src/components/drag-drop/index.d.ts +9 -0
- package/src/components/drawer/Drawer.d.ts +19 -0
- package/src/components/drawer/index.d.ts +2 -0
- package/src/components/file-upload/FilePreview.d.ts +9 -0
- package/src/components/file-upload/FileUpload.d.ts +4 -0
- package/src/components/file-upload/file-upload-types.d.ts +23 -0
- package/src/components/file-upload/index.d.ts +2 -0
- package/src/components/gantt-chart/DependencyLines.d.ts +4 -0
- package/src/components/gantt-chart/FieldsPanel.d.ts +11 -0
- package/src/components/gantt-chart/GanttChart.d.ts +3 -0
- package/src/components/gantt-chart/GanttContext.d.ts +4 -0
- package/src/components/gantt-chart/Markers.d.ts +4 -0
- package/src/components/gantt-chart/TaskBar.d.ts +9 -0
- package/src/components/gantt-chart/TimelineGrid.d.ts +4 -0
- package/src/components/gantt-chart/TimelineHeader.d.ts +8 -0
- package/src/components/gantt-chart/TimelinePanel.d.ts +10 -0
- package/src/components/gantt-chart/gantt-types.d.ts +191 -0
- package/src/components/gantt-chart/gantt-utils.d.ts +27 -0
- package/src/components/gantt-chart/index.d.ts +2 -0
- package/src/components/image-editor/ImageEditor.d.ts +5 -0
- package/src/components/image-editor/image-editor-types.d.ts +51 -0
- package/src/components/image-editor/index.d.ts +2 -0
- package/src/components/index.d.ts +75 -0
- package/src/components/json-editor/AddEntry.d.ts +10 -0
- package/src/components/json-editor/ArrayEditor.d.ts +4 -0
- package/src/components/json-editor/ItemNameDisplay.d.ts +4 -0
- package/src/components/json-editor/ItemValueDisplay.d.ts +4 -0
- package/src/components/json-editor/JsonEditor.d.ts +5 -0
- package/src/components/json-editor/NodeSelector.d.ts +6 -0
- package/src/components/json-editor/ObjectEditor.d.ts +4 -0
- package/src/components/json-editor/SimpleEditor.d.ts +4 -0
- package/src/components/json-editor/Toolbar.d.ts +14 -0
- package/src/components/json-editor/index.d.ts +2 -0
- package/src/components/json-editor/json-editor-types.d.ts +83 -0
- package/src/components/json-editor/json-editor-utils.d.ts +11 -0
- package/src/components/kanban-board/KanbanBoard.d.ts +3 -0
- package/src/components/kanban-board/KanbanCard.d.ts +3 -0
- package/src/components/kanban-board/KanbanColumn.d.ts +3 -0
- package/src/components/kanban-board/KanbanColumnHeader.d.ts +8 -0
- package/src/components/kanban-board/KanbanContext.d.ts +5 -0
- package/src/components/kanban-board/index.d.ts +2 -0
- package/src/components/kanban-board/kanban-types.d.ts +152 -0
- package/src/components/kanban-board/kanban-utils.d.ts +14 -0
- package/src/components/lightbox/Lightbox.d.ts +32 -0
- package/src/components/lightbox/index.d.ts +2 -0
- package/src/components/menu-nav/MenuNav.d.ts +5 -0
- package/src/components/menu-nav/MenuNavItem.d.ts +18 -0
- package/src/components/menu-nav/index.d.ts +2 -0
- package/src/components/menu-nav/menu-nav-types.d.ts +49 -0
- package/src/components/notification-center/NotificationCenter.d.ts +3 -0
- package/src/components/notification-center/NotificationItemRow.d.ts +10 -0
- package/src/components/notification-center/index.d.ts +2 -0
- package/src/components/notification-center/notification-center-types.d.ts +32 -0
- package/src/components/page-banner/PageBanner.d.ts +23 -0
- package/src/components/page-banner/index.d.ts +2 -0
- package/src/components/pivot-table/PivotCellEditor.d.ts +14 -0
- package/src/components/pivot-table/PivotConfigPanel.d.ts +23 -0
- package/src/components/pivot-table/PivotFilterEditor.d.ts +12 -0
- package/src/components/pivot-table/PivotTable.d.ts +4 -0
- package/src/components/pivot-table/index.d.ts +2 -0
- package/src/components/pivot-table/pivot-engine.d.ts +23 -0
- package/src/components/pivot-table/pivot-table-types.d.ts +166 -0
- package/src/components/shimmer/ShimmerBarChart.d.ts +12 -0
- package/src/components/shimmer/ShimmerDiv.d.ts +5 -0
- package/src/components/shimmer/ShimmerFeed.d.ts +14 -0
- package/src/components/shimmer/ShimmerLegends.d.ts +8 -0
- package/src/components/shimmer/ShimmerPieChart.d.ts +10 -0
- package/src/components/shimmer/ShimmerTable.d.ts +12 -0
- package/src/components/shimmer/SkeletonAvatar.d.ts +8 -0
- package/src/components/shimmer/SkeletonButton.d.ts +9 -0
- package/src/components/shimmer/SkeletonCard.d.ts +15 -0
- package/src/components/shimmer/SkeletonImage.d.ts +10 -0
- package/src/components/shimmer/SkeletonText.d.ts +11 -0
- package/src/components/shimmer/index.d.ts +10 -0
- package/src/components/slider/Slider.d.ts +45 -0
- package/src/components/slider/index.d.ts +2 -0
- package/src/components/snackbar/Snackbar.d.ts +3 -0
- package/src/components/snackbar/SnackbarManager.d.ts +6 -0
- package/src/components/snackbar/constants.d.ts +4 -0
- package/src/components/snackbar/index.d.ts +1 -0
- package/src/components/snackbar/types.d.ts +30 -0
- package/src/components/splitter/Splitter.d.ts +20 -0
- package/src/components/splitter/index.d.ts +4 -0
- package/src/components/tab-view/TabHeader.d.ts +19 -0
- package/src/components/tab-view/TabNav.d.ts +15 -0
- package/src/components/tab-view/TabPage.d.ts +13 -0
- package/src/components/tab-view/TabView.d.ts +28 -0
- package/src/components/tab-view/index.d.ts +4 -0
- package/src/components/tab-view/tabview-utils.d.ts +5 -0
- package/src/components/table/Table.d.ts +35 -0
- package/src/components/table/TableBody.d.ts +13 -0
- package/src/components/table/TableFooter.d.ts +12 -0
- package/src/components/table/TableHeader.d.ts +9 -0
- package/src/components/table/table-types.d.ts +16 -0
- package/src/components/table/useSortedData.d.ts +2 -0
- package/src/components/timeline/Timeline.d.ts +27 -0
- package/src/components/timeline/TimelineItem.d.ts +11 -0
- package/src/components/timeline/index.d.ts +2 -0
- package/src/components/tooltip/Tooltip.d.ts +17 -0
- package/src/components/tooltip/TooltipManager.d.ts +3 -0
- package/src/components/tooltip/utils.d.ts +6 -0
- package/src/components/tour/StepTour.d.ts +18 -0
- package/src/components/tour/TourTooltip.d.ts +18 -0
- package/src/components/tour/types.d.ts +12 -0
- package/src/components/tour/useWindowResize.d.ts +4 -0
- package/src/components/tour/utils.d.ts +10 -0
- package/src/components/tree-view/TreeNodeComponent.d.ts +4 -0
- package/src/components/tree-view/TreeView.d.ts +4 -0
- package/src/components/tree-view/index.d.ts +2 -0
- package/src/components/tree-view/tree-view-types.d.ts +55 -0
- package/src/hooks/index.d.ts +5 -0
- package/src/hooks/useClickOutside.d.ts +1 -0
- package/src/hooks/useDebounce.d.ts +1 -0
- package/src/hooks/useKeyboard.d.ts +1 -0
- package/src/hooks/useMobile.d.ts +1 -0
- package/src/hooks/usePosition.d.ts +8 -0
- package/src/plugins/vite/index.d.ts +8 -0
- package/src/services/container.d.ts +29 -0
- package/src/services/index.d.ts +3 -0
- package/src/services/react.d.ts +23 -0
- package/src/services/types.d.ts +36 -0
- package/src/store/core/model.d.ts +2 -0
- package/src/store/core/state.d.ts +2 -0
- package/src/store/factory/react-hooks.d.ts +19 -0
- package/src/store/index.d.ts +4 -0
- package/src/store/middlewares/broadcast.d.ts +6 -0
- package/src/store/middlewares/debounce.d.ts +2 -0
- package/src/store/middlewares/devtools.d.ts +4 -0
- package/src/store/middlewares/immer.d.ts +2 -0
- package/src/store/middlewares/index.d.ts +11 -0
- package/src/store/middlewares/logging.d.ts +2 -0
- package/src/store/middlewares/persist.d.ts +2 -0
- package/src/store/middlewares/throttle.d.ts +2 -0
- package/src/store/middlewares/undo-redo.d.ts +13 -0
- package/src/store/middlewares/validation.d.ts +2 -0
- package/src/store/types.d.ts +99 -0
- package/src/story/CodeBlock.d.ts +9 -0
- package/src/story/ComponentDemo.d.ts +10 -0
- package/src/story/FeatureCard.d.ts +16 -0
- package/src/story/IconShowcase.d.ts +6 -0
- package/src/story/Layout.d.ts +6 -0
- package/src/story/Navigation.d.ts +6 -0
- package/src/story/PageLayout.d.ts +8 -0
- package/src/story/PropsTable.d.ts +13 -0
- package/src/story/SectionNav.d.ts +11 -0
- package/src/story/StoryThemeContext.d.ts +16 -0
- package/src/story/pages/HomePage.d.ts +3 -0
- package/src/story/pages/IconsPage.d.ts +2 -0
- package/src/story/pages/InstallationPage.d.ts +3 -0
- package/src/story/pages/animate-on-view/AllAnimations.d.ts +3 -0
- package/src/story/pages/animate-on-view/AnimateOnViewPage.d.ts +3 -0
- package/src/story/pages/animate-on-view/BasicUsage.d.ts +3 -0
- package/src/story/pages/animate-on-view/ConfigOptions.d.ts +3 -0
- package/src/story/pages/animate-on-view/ScrollDemo.d.ts +3 -0
- package/src/story/pages/animate-on-view/StaggeredAnimations.d.ts +3 -0
- package/src/story/pages/autocomplete/AutocompletePage.d.ts +3 -0
- package/src/story/pages/autocomplete/BasicUsage.d.ts +3 -0
- package/src/story/pages/autocomplete/CustomConfiguration.d.ts +3 -0
- package/src/story/pages/autocomplete/DisabledState.d.ts +3 -0
- package/src/story/pages/autocomplete/UsageExamples.d.ts +3 -0
- package/src/story/pages/autocomplete/autocomplete-story-data.d.ts +6 -0
- package/src/story/pages/autocomplete-multi/AutocompleteMultiPage.d.ts +3 -0
- package/src/story/pages/autocomplete-multi/BasicUsage.d.ts +3 -0
- package/src/story/pages/autocomplete-multi/DisabledState.d.ts +3 -0
- package/src/story/pages/autocomplete-multi/LimitedSelections.d.ts +3 -0
- package/src/story/pages/autocomplete-multi/PresetValues.d.ts +3 -0
- package/src/story/pages/autocomplete-multi/UsageExamples.d.ts +3 -0
- package/src/story/pages/autocomplete-multi/autocomplete-multi-story-data.d.ts +6 -0
- package/src/story/pages/breadcrumb/BasicUsage.d.ts +3 -0
- package/src/story/pages/breadcrumb/BreadcrumbPage.d.ts +3 -0
- package/src/story/pages/breadcrumb/CollapsedItems.d.ts +3 -0
- package/src/story/pages/breadcrumb/CustomSeparator.d.ts +3 -0
- package/src/story/pages/button/AsLink.d.ts +3 -0
- package/src/story/pages/button/AsyncAction.d.ts +3 -0
- package/src/story/pages/button/BasicUsage.d.ts +3 -0
- package/src/story/pages/button/ButtonPage.d.ts +3 -0
- package/src/story/pages/button/Combinations.d.ts +3 -0
- package/src/story/pages/button/CountdownTimer.d.ts +3 -0
- package/src/story/pages/button/FullWidth.d.ts +3 -0
- package/src/story/pages/button/Layouts.d.ts +3 -0
- package/src/story/pages/button/Sizes.d.ts +3 -0
- package/src/story/pages/button/States.d.ts +3 -0
- package/src/story/pages/button/Variants.d.ts +3 -0
- package/src/story/pages/button/WithIcons.d.ts +3 -0
- package/src/story/pages/calendar/BasicUsage.d.ts +3 -0
- package/src/story/pages/calendar/CalendarPage.d.ts +3 -0
- package/src/story/pages/calendar/CompactMode.d.ts +3 -0
- package/src/story/pages/calendar/CustomRendering.d.ts +3 -0
- package/src/story/pages/calendar/CustomToolbarEnd.d.ts +3 -0
- package/src/story/pages/calendar/DateBackgrounds.d.ts +3 -0
- package/src/story/pages/calendar/DragDropResize.d.ts +3 -0
- package/src/story/pages/calendar/ExternalDragDrop.d.ts +3 -0
- package/src/story/pages/calendar/ImperativeApi.d.ts +3 -0
- package/src/story/pages/calendar/NavigationPickerDemo.d.ts +3 -0
- package/src/story/pages/calendar/PluginSystem.d.ts +3 -0
- package/src/story/pages/calendar/PluginViews.d.ts +3 -0
- package/src/story/pages/calendar/TimeGridConfig.d.ts +3 -0
- package/src/story/pages/calendar/ViewModes.d.ts +3 -0
- package/src/story/pages/calendar/calendar-story-data.d.ts +18 -0
- package/src/story/pages/calendar-playground/CalendarPlaygroundPage.d.ts +3 -0
- package/src/story/pages/calendar-playground/PlaygroundSettings.d.ts +65 -0
- package/src/story/pages/canvas-draw/CanvasDrawPage.d.ts +3 -0
- package/src/story/pages/canvas-draw/ControlledMode.d.ts +3 -0
- package/src/story/pages/canvas-draw/DrawingCanvas.d.ts +3 -0
- package/src/story/pages/canvas-draw/ExportDemo.d.ts +3 -0
- package/src/story/pages/canvas-draw/FeatureFlags.d.ts +3 -0
- package/src/story/pages/canvas-draw/ImageAnnotation.d.ts +3 -0
- package/src/story/pages/canvas-draw/MediaTimelineDemo.d.ts +3 -0
- package/src/story/pages/canvas-draw/ReadOnlyMode.d.ts +3 -0
- package/src/story/pages/canvas-draw/TimedAnnotations.d.ts +3 -0
- package/src/story/pages/canvas-draw/ToolSubset.d.ts +3 -0
- package/src/story/pages/canvas-draw/ToolbarPlacement.d.ts +3 -0
- package/src/story/pages/canvas-draw/canvas-draw-story-data.d.ts +7 -0
- package/src/story/pages/carousel/Autoplay.d.ts +3 -0
- package/src/story/pages/carousel/BasicUsage.d.ts +3 -0
- package/src/story/pages/carousel/CarouselPage.d.ts +3 -0
- package/src/story/pages/carousel/ThumbnailNav.d.ts +3 -0
- package/src/story/pages/checkbox/BasicUsage.d.ts +3 -0
- package/src/story/pages/checkbox/CheckboxGroup.d.ts +3 -0
- package/src/story/pages/checkbox/CheckboxPage.d.ts +3 -0
- package/src/story/pages/checkbox/IndeterminateState.d.ts +3 -0
- package/src/story/pages/checkbox/States.d.ts +3 -0
- package/src/story/pages/chips/BasicUsage.d.ts +3 -0
- package/src/story/pages/chips/ChipsPage.d.ts +3 -0
- package/src/story/pages/chips/LimitedChips.d.ts +3 -0
- package/src/story/pages/chips/States.d.ts +3 -0
- package/src/story/pages/chips/chips-story-data.d.ts +2 -0
- package/src/story/pages/collapsible-panel/AccordionGroup.d.ts +3 -0
- package/src/story/pages/collapsible-panel/BasicUsage.d.ts +3 -0
- package/src/story/pages/collapsible-panel/CollapsiblePanelPage.d.ts +3 -0
- package/src/story/pages/collapsible-panel/Controlled.d.ts +3 -0
- package/src/story/pages/collapsible-panel/CustomHeaderTemplate.d.ts +3 -0
- package/src/story/pages/collapsible-panel/DisabledState.d.ts +3 -0
- package/src/story/pages/collapsible-panel/HeaderActions.d.ts +3 -0
- package/src/story/pages/collapsible-panel/HorizontalTabs.d.ts +3 -0
- package/src/story/pages/collapsible-panel/HorizontalTabsVariants.d.ts +3 -0
- package/src/story/pages/collapsible-panel/IconPositions.d.ts +3 -0
- package/src/story/pages/collapsible-panel/MultiOpenGroup.d.ts +3 -0
- package/src/story/pages/collapsible-panel/Sizes.d.ts +3 -0
- package/src/story/pages/collapsible-panel/Variants.d.ts +3 -0
- package/src/story/pages/collapsible-panel/WithIcons.d.ts +3 -0
- package/src/story/pages/confirm-popover/ConfirmCustomDemo.d.ts +3 -0
- package/src/story/pages/confirm-popover/ConfirmPopoverPage.d.ts +3 -0
- package/src/story/pages/confirm-popover/CustomActionsDemo.d.ts +3 -0
- package/src/story/pages/confirm-popover/InfoOkDemo.d.ts +3 -0
- package/src/story/pages/confirm-popover/RichJsxDemo.d.ts +3 -0
- package/src/story/pages/confirm-popover/SetupSection.d.ts +3 -0
- package/src/story/pages/confirm-popover/YesNoDemo.d.ts +3 -0
- package/src/story/pages/context-menu/ButtonTriggered.d.ts +3 -0
- package/src/story/pages/context-menu/ContextMenuPage.d.ts +3 -0
- package/src/story/pages/context-menu/NestedSubmenus.d.ts +3 -0
- package/src/story/pages/context-menu/RightClickMenu.d.ts +3 -0
- package/src/story/pages/context-menu/ScrollableMenu.d.ts +3 -0
- package/src/story/pages/context-menu/SetupSection.d.ts +3 -0
- package/src/story/pages/context-menu/TableRowMenu.d.ts +3 -0
- package/src/story/pages/context-menu/context-menu-story-data.d.ts +52 -0
- package/src/story/pages/date-range-picker/BasicUsage.d.ts +3 -0
- package/src/story/pages/date-range-picker/Constraints.d.ts +3 -0
- package/src/story/pages/date-range-picker/CustomFormat.d.ts +3 -0
- package/src/story/pages/date-range-picker/DateRangePickerPage.d.ts +3 -0
- package/src/story/pages/date-range-picker/DisabledState.d.ts +3 -0
- package/src/story/pages/date-range-picker/FirstDayOfWeek.d.ts +3 -0
- package/src/story/pages/date-range-picker/PositionDemo.d.ts +3 -0
- package/src/story/pages/date-range-picker/PresetDates.d.ts +3 -0
- package/src/story/pages/date-range-picker/QuickSelect.d.ts +3 -0
- package/src/story/pages/date-range-picker/SelectionModes.d.ts +3 -0
- package/src/story/pages/date-range-picker/SingleDatePicker.d.ts +3 -0
- package/src/story/pages/date-range-picker/TodayButton.d.ts +3 -0
- package/src/story/pages/date-range-picker/date-range-picker-story-data.d.ts +8 -0
- package/src/story/pages/deferred-view/BasicUsageDemo.d.ts +3 -0
- package/src/story/pages/deferred-view/DeferredViewPage.d.ts +3 -0
- package/src/story/pages/deferred-view/KeepMountedDemo.d.ts +3 -0
- package/src/story/pages/deferred-view/LazyImageDemo.d.ts +3 -0
- package/src/story/pages/deferred-view/PlaceholderDemo.d.ts +3 -0
- package/src/story/pages/deferred-view/RootMarginDemo.d.ts +3 -0
- package/src/story/pages/demo-showcase/DemoShowcasePage.d.ts +3 -0
- package/src/story/pages/demo-showcase/FormSection.d.ts +8 -0
- package/src/story/pages/demo-showcase/TableSection.d.ts +6 -0
- package/src/story/pages/demo-showcase/TabsAndProgressSection.d.ts +6 -0
- package/src/story/pages/drag-drop/BasicDragDrop.d.ts +3 -0
- package/src/story/pages/drag-drop/DragDropPage.d.ts +3 -0
- package/src/story/pages/drag-drop/MultiContainer.d.ts +3 -0
- package/src/story/pages/drag-drop/RenderProps.d.ts +3 -0
- package/src/story/pages/drag-drop/SetupSection.d.ts +3 -0
- package/src/story/pages/drag-drop/TypeBasedDragDrop.d.ts +3 -0
- package/src/story/pages/drag-drop/drag-drop-story-data.d.ts +6 -0
- package/src/story/pages/drawer/BasicUsage.d.ts +3 -0
- package/src/story/pages/drawer/CustomContent.d.ts +3 -0
- package/src/story/pages/drawer/DrawerPage.d.ts +3 -0
- package/src/story/pages/drawer/Positions.d.ts +3 -0
- package/src/story/pages/dropdown/BasicUsage.d.ts +3 -0
- package/src/story/pages/dropdown/ClearableDropdown.d.ts +3 -0
- package/src/story/pages/dropdown/CustomFieldMapping.d.ts +3 -0
- package/src/story/pages/dropdown/DropdownPage.d.ts +3 -0
- package/src/story/pages/dropdown/DropdownStates.d.ts +3 -0
- package/src/story/pages/dropdown/GroupedOptions.d.ts +3 -0
- package/src/story/pages/dropdown/SearchableDropdown.d.ts +3 -0
- package/src/story/pages/dropdown/dropdown-story-data.d.ts +33 -0
- package/src/story/pages/fab-speed-dial/FabBasic.d.ts +3 -0
- package/src/story/pages/fab-speed-dial/FabExtended.d.ts +3 -0
- package/src/story/pages/fab-speed-dial/FabSizes.d.ts +3 -0
- package/src/story/pages/fab-speed-dial/FabSpeedDialPage.d.ts +3 -0
- package/src/story/pages/fab-speed-dial/SpeedDialBasic.d.ts +3 -0
- package/src/story/pages/fab-speed-dial/SpeedDialClick.d.ts +3 -0
- package/src/story/pages/fab-speed-dial/SpeedDialDirections.d.ts +3 -0
- package/src/story/pages/fab-speed-dial/SpeedDialSizes.d.ts +3 -0
- package/src/story/pages/fab-speed-dial/SpeedDialVariants.d.ts +3 -0
- package/src/story/pages/fab-speed-dial/fab-story-icons.d.ts +11 -0
- package/src/story/pages/field-label/BasicLabel.d.ts +3 -0
- package/src/story/pages/field-label/CombinedStates.d.ts +3 -0
- package/src/story/pages/field-label/DisabledState.d.ts +3 -0
- package/src/story/pages/field-label/ErrorState.d.ts +3 -0
- package/src/story/pages/field-label/FieldLabelPage.d.ts +3 -0
- package/src/story/pages/field-label/OptionalField.d.ts +3 -0
- package/src/story/pages/field-label/RequiredField.d.ts +3 -0
- package/src/story/pages/file-upload/BasicUsage.d.ts +3 -0
- package/src/story/pages/file-upload/FileUploadPage.d.ts +3 -0
- package/src/story/pages/file-upload/ImagePreview.d.ts +3 -0
- package/src/story/pages/file-upload/Validation.d.ts +3 -0
- package/src/story/pages/gantt-chart/BasicUsage.d.ts +3 -0
- package/src/story/pages/gantt-chart/CustomColumns.d.ts +3 -0
- package/src/story/pages/gantt-chart/DateMarkers.d.ts +3 -0
- package/src/story/pages/gantt-chart/Dependencies.d.ts +3 -0
- package/src/story/pages/gantt-chart/DragAndDrop.d.ts +3 -0
- package/src/story/pages/gantt-chart/GanttChartPage.d.ts +3 -0
- package/src/story/pages/gantt-chart/HierarchicalTasks.d.ts +3 -0
- package/src/story/pages/gantt-chart/QuarterlyView.d.ts +3 -0
- package/src/story/pages/gantt-chart/ReadOnly.d.ts +3 -0
- package/src/story/pages/gantt-chart/SprintPlanning.d.ts +3 -0
- package/src/story/pages/gantt-chart/TaskCreation.d.ts +3 -0
- package/src/story/pages/gantt-chart/TimelineOnly.d.ts +3 -0
- package/src/story/pages/gantt-chart/ViewModes.d.ts +3 -0
- package/src/story/pages/gantt-chart/gantt-chart-story-data.d.ts +10 -0
- package/src/story/pages/hooks-utils/HooksUtilsPage.d.ts +3 -0
- package/src/story/pages/hooks-utils/UseClickOutsideDemo.d.ts +3 -0
- package/src/story/pages/hooks-utils/UseDebounceDemo.d.ts +3 -0
- package/src/story/pages/hooks-utils/UseKeyboardDemo.d.ts +3 -0
- package/src/story/pages/hooks-utils/UseMobileDemo.d.ts +3 -0
- package/src/story/pages/hooks-utils/UtilFunctionsDemo.d.ts +3 -0
- package/src/story/pages/hooks-utils/WithFieldLabelDemo.d.ts +3 -0
- package/src/story/pages/image-editor/BasicUsage.d.ts +3 -0
- package/src/story/pages/image-editor/CropOnly.d.ts +3 -0
- package/src/story/pages/image-editor/CustomTools.d.ts +3 -0
- package/src/story/pages/image-editor/ExportOptions.d.ts +3 -0
- package/src/story/pages/image-editor/ImageEditorPage.d.ts +3 -0
- package/src/story/pages/infinite-scroll/BasicUsage.d.ts +3 -0
- package/src/story/pages/infinite-scroll/ErrorHandling.d.ts +3 -0
- package/src/story/pages/infinite-scroll/InfiniteScrollPage.d.ts +3 -0
- package/src/story/pages/input-group/EmailInput.d.ts +3 -0
- package/src/story/pages/input-group/FileUpload.d.ts +3 -0
- package/src/story/pages/input-group/InputGroupPage.d.ts +3 -0
- package/src/story/pages/input-group/PhoneNumber.d.ts +3 -0
- package/src/story/pages/input-group/PriceInput.d.ts +3 -0
- package/src/story/pages/input-group/SearchInput.d.ts +3 -0
- package/src/story/pages/input-group/UrlInput.d.ts +3 -0
- package/src/story/pages/input-switch/BasicUsage.d.ts +3 -0
- package/src/story/pages/input-switch/CustomLabels.d.ts +3 -0
- package/src/story/pages/input-switch/DisabledStates.d.ts +3 -0
- package/src/story/pages/input-switch/FormIntegration.d.ts +3 -0
- package/src/story/pages/input-switch/InputSwitchPage.d.ts +3 -0
- package/src/story/pages/input-switch/SettingsPanel.d.ts +3 -0
- package/src/story/pages/json-editor/ArrayEditing.d.ts +3 -0
- package/src/story/pages/json-editor/BasicUsage.d.ts +3 -0
- package/src/story/pages/json-editor/ComplexData.d.ts +3 -0
- package/src/story/pages/json-editor/JsonEditorPage.d.ts +3 -0
- package/src/story/pages/json-editor/NestedObjects.d.ts +3 -0
- package/src/story/pages/json-editor/PermissionControls.d.ts +3 -0
- package/src/story/pages/json-editor/ReadOnlyMode.d.ts +3 -0
- package/src/story/pages/json-editor/SizeVariants.d.ts +3 -0
- package/src/story/pages/json-editor/SortedKeys.d.ts +3 -0
- package/src/story/pages/json-editor/TypeShowcase.d.ts +3 -0
- package/src/story/pages/json-editor/json-editor-story-data.d.ts +8 -0
- package/src/story/pages/kanban-board/BasicUsage.d.ts +3 -0
- package/src/story/pages/kanban-board/BlockedCards.d.ts +3 -0
- package/src/story/pages/kanban-board/CardActions.d.ts +3 -0
- package/src/story/pages/kanban-board/CollapsibleColumns.d.ts +3 -0
- package/src/story/pages/kanban-board/ColumnLimits.d.ts +3 -0
- package/src/story/pages/kanban-board/CompactMode.d.ts +3 -0
- package/src/story/pages/kanban-board/CustomColumnHeader.d.ts +3 -0
- package/src/story/pages/kanban-board/CustomTemplates.d.ts +3 -0
- package/src/story/pages/kanban-board/DetailedCards.d.ts +3 -0
- package/src/story/pages/kanban-board/InteractiveBoard.d.ts +3 -0
- package/src/story/pages/kanban-board/KanbanBoardPage.d.ts +3 -0
- package/src/story/pages/kanban-board/LockedColumns.d.ts +3 -0
- package/src/story/pages/kanban-board/StickyHeaders.d.ts +3 -0
- package/src/story/pages/kanban-board/VerticalLayout.d.ts +3 -0
- package/src/story/pages/kanban-board/kanban-story-data.d.ts +19 -0
- package/src/story/pages/lightbox/BasicUsage.d.ts +3 -0
- package/src/story/pages/lightbox/LightboxPage.d.ts +3 -0
- package/src/story/pages/list-box/DisabledState.d.ts +3 -0
- package/src/story/pages/list-box/GroupedList.d.ts +3 -0
- package/src/story/pages/list-box/ListBoxPage.d.ts +3 -0
- package/src/story/pages/list-box/MultipleSelection.d.ts +3 -0
- package/src/story/pages/list-box/SearchableList.d.ts +3 -0
- package/src/story/pages/list-box/SingleSelection.d.ts +3 -0
- package/src/story/pages/list-box/list-box-story-data.d.ts +4 -0
- package/src/story/pages/masked-input/CustomSlotChar.d.ts +3 -0
- package/src/story/pages/masked-input/IncludeLiterals.d.ts +3 -0
- package/src/story/pages/masked-input/InputStates.d.ts +3 -0
- package/src/story/pages/masked-input/KeyboardNavigation.d.ts +3 -0
- package/src/story/pages/masked-input/MaskExamples.d.ts +8 -0
- package/src/story/pages/masked-input/MaskSyntax.d.ts +3 -0
- package/src/story/pages/masked-input/MaskedInputPage.d.ts +3 -0
- package/src/story/pages/masked-input/PrefilledValue.d.ts +3 -0
- package/src/story/pages/menu-nav/BasicUsage.d.ts +3 -0
- package/src/story/pages/menu-nav/Collapsible.d.ts +3 -0
- package/src/story/pages/menu-nav/CustomSlots.d.ts +3 -0
- package/src/story/pages/menu-nav/GroupedMenus.d.ts +3 -0
- package/src/story/pages/menu-nav/Horizontal.d.ts +3 -0
- package/src/story/pages/menu-nav/MenuNavPage.d.ts +3 -0
- package/src/story/pages/menu-nav/NestedMenus.d.ts +3 -0
- package/src/story/pages/menu-nav/SelectionStyles.d.ts +3 -0
- package/src/story/pages/menu-nav/Sizes.d.ts +3 -0
- package/src/story/pages/menu-nav/ToolbarMode.d.ts +3 -0
- package/src/story/pages/menu-nav/menu-nav-story-data.d.ts +7 -0
- package/src/story/pages/modal/BasicUsage.d.ts +3 -0
- package/src/story/pages/modal/CustomLayout.d.ts +3 -0
- package/src/story/pages/modal/FormExample.d.ts +3 -0
- package/src/story/pages/modal/ModalPage.d.ts +3 -0
- package/src/story/pages/modal/NestedModals.d.ts +3 -0
- package/src/story/pages/modal/NonClosable.d.ts +3 -0
- package/src/story/pages/modal/ScrollableContent.d.ts +3 -0
- package/src/story/pages/modal/Sizes.d.ts +3 -0
- package/src/story/pages/modal/WithoutTitle.d.ts +3 -0
- package/src/story/pages/multi-state-checkbox/BasicUsage.d.ts +3 -0
- package/src/story/pages/multi-state-checkbox/ControlledState.d.ts +3 -0
- package/src/story/pages/multi-state-checkbox/CustomStates.d.ts +3 -0
- package/src/story/pages/multi-state-checkbox/MultiStateCheckboxPage.d.ts +3 -0
- package/src/story/pages/multi-state-checkbox/multi-state-checkbox-story-data.d.ts +4 -0
- package/src/story/pages/multiselect/BasicUsage.d.ts +3 -0
- package/src/story/pages/multiselect/CustomFieldMapping.d.ts +3 -0
- package/src/story/pages/multiselect/GroupedOptions.d.ts +3 -0
- package/src/story/pages/multiselect/MultiselectPage.d.ts +3 -0
- package/src/story/pages/multiselect/MultiselectStates.d.ts +3 -0
- package/src/story/pages/multiselect/SelectAll.d.ts +3 -0
- package/src/story/pages/multiselect/SelectionLimit.d.ts +3 -0
- package/src/story/pages/multiselect/WithoutSearch.d.ts +3 -0
- package/src/story/pages/multiselect/multiselect-story-data.d.ts +28 -0
- package/src/story/pages/notification-center/BasicUsage.d.ts +3 -0
- package/src/story/pages/notification-center/Categories.d.ts +3 -0
- package/src/story/pages/notification-center/CustomTrigger.d.ts +3 -0
- package/src/story/pages/notification-center/NotificationCenterPage.d.ts +3 -0
- package/src/story/pages/numeric-input/BasicUsage.d.ts +3 -0
- package/src/story/pages/numeric-input/DecimalPrecision.d.ts +3 -0
- package/src/story/pages/numeric-input/MinMaxRange.d.ts +3 -0
- package/src/story/pages/numeric-input/NumericInputPage.d.ts +3 -0
- package/src/story/pages/numeric-input/NumericInputStates.d.ts +3 -0
- package/src/story/pages/page-banner/BasicUsage.d.ts +3 -0
- package/src/story/pages/page-banner/CustomContent.d.ts +3 -0
- package/src/story/pages/page-banner/Dismissible.d.ts +3 -0
- package/src/story/pages/page-banner/PageBannerPage.d.ts +3 -0
- package/src/story/pages/page-banner/PageLevel.d.ts +3 -0
- package/src/story/pages/page-banner/WithActions.d.ts +3 -0
- package/src/story/pages/password/BasicUsage.d.ts +3 -0
- package/src/story/pages/password/PasswordPage.d.ts +3 -0
- package/src/story/pages/password/PasswordStates.d.ts +3 -0
- package/src/story/pages/pivot-table/BasicUsage.d.ts +3 -0
- package/src/story/pages/pivot-table/ColumnPivot.d.ts +3 -0
- package/src/story/pages/pivot-table/Filtering.d.ts +3 -0
- package/src/story/pages/pivot-table/InteractiveDemo.d.ts +3 -0
- package/src/story/pages/pivot-table/MultiLevelPivot.d.ts +3 -0
- package/src/story/pages/pivot-table/MultipleFunctions.d.ts +3 -0
- package/src/story/pages/pivot-table/PivotTablePage.d.ts +3 -0
- package/src/story/pages/pivot-table/pivot-table-story-data.d.ts +17 -0
- package/src/story/pages/pivot-table-playground/PivotTablePlaygroundPage.d.ts +3 -0
- package/src/story/pages/popover/BasicUsage.d.ts +3 -0
- package/src/story/pages/popover/ControlledPopover.d.ts +3 -0
- package/src/story/pages/popover/CustomContent.d.ts +3 -0
- package/src/story/pages/popover/FilterablePopover.d.ts +3 -0
- package/src/story/pages/popover/GroupedItems.d.ts +3 -0
- package/src/story/pages/popover/PopoverPage.d.ts +3 -0
- package/src/story/pages/popover/popover-story-data.d.ts +5 -0
- package/src/story/pages/progress-bar/BasicUsage.d.ts +3 -0
- package/src/story/pages/progress-bar/BufferProgress.d.ts +3 -0
- package/src/story/pages/progress-bar/DynamicProgress.d.ts +3 -0
- package/src/story/pages/progress-bar/Indeterminate.d.ts +3 -0
- package/src/story/pages/progress-bar/LabelsAndValues.d.ts +3 -0
- package/src/story/pages/progress-bar/Layouts.d.ts +3 -0
- package/src/story/pages/progress-bar/MultiSegment.d.ts +3 -0
- package/src/story/pages/progress-bar/ProgressBarPage.d.ts +3 -0
- package/src/story/pages/progress-bar/Sizes.d.ts +3 -0
- package/src/story/pages/progress-bar/Variants.d.ts +3 -0
- package/src/story/pages/radio-button/BasicUsage.d.ts +3 -0
- package/src/story/pages/radio-button/ControlledUncontrolled.d.ts +3 -0
- package/src/story/pages/radio-button/HorizontalLayout.d.ts +3 -0
- package/src/story/pages/radio-button/RadioButtonPage.d.ts +3 -0
- package/src/story/pages/radio-button/States.d.ts +3 -0
- package/src/story/pages/radio-button/radio-button-story-data.d.ts +13 -0
- package/src/story/pages/select-button/BasicUsage.d.ts +3 -0
- package/src/story/pages/select-button/DisabledItems.d.ts +3 -0
- package/src/story/pages/select-button/DisabledState.d.ts +3 -0
- package/src/story/pages/select-button/MultipleSelection.d.ts +3 -0
- package/src/story/pages/select-button/RealWorldExamples.d.ts +3 -0
- package/src/story/pages/select-button/SelectButtonPage.d.ts +3 -0
- package/src/story/pages/select-button/SizeVariants.d.ts +3 -0
- package/src/story/pages/select-button/ThemeVariants.d.ts +3 -0
- package/src/story/pages/select-button/UsageNotes.d.ts +3 -0
- package/src/story/pages/select-button/VerticalDirection.d.ts +3 -0
- package/src/story/pages/select-button/WithIcons.d.ts +3 -0
- package/src/story/pages/select-button/select-button-story-data.d.ts +30 -0
- package/src/story/pages/services/BasicUsage.d.ts +3 -0
- package/src/story/pages/services/Lifetimes.d.ts +3 -0
- package/src/story/pages/services/Parameterized.d.ts +3 -0
- package/src/story/pages/services/ReactIntegration.d.ts +3 -0
- package/src/story/pages/services/ServicesPage.d.ts +3 -0
- package/src/story/pages/services/SwappingImplementations.d.ts +3 -0
- package/src/story/pages/services/services-story-data.d.ts +92 -0
- package/src/story/pages/shimmer/ProfileCard.d.ts +3 -0
- package/src/story/pages/shimmer/ShimmerBarChartDemo.d.ts +3 -0
- package/src/story/pages/shimmer/ShimmerDivDemo.d.ts +3 -0
- package/src/story/pages/shimmer/ShimmerFeedDemo.d.ts +3 -0
- package/src/story/pages/shimmer/ShimmerPage.d.ts +3 -0
- package/src/story/pages/shimmer/ShimmerPieChartDemo.d.ts +3 -0
- package/src/story/pages/shimmer/ShimmerTableDemo.d.ts +3 -0
- package/src/story/pages/slider/BasicUsage.d.ts +3 -0
- package/src/story/pages/slider/Formatting.d.ts +3 -0
- package/src/story/pages/slider/GridSnap.d.ts +3 -0
- package/src/story/pages/slider/RangeSlider.d.ts +3 -0
- package/src/story/pages/slider/Sizes.d.ts +3 -0
- package/src/story/pages/slider/SliderPage.d.ts +3 -0
- package/src/story/pages/slider/StringValues.d.ts +3 -0
- package/src/story/pages/slider/Variants.d.ts +3 -0
- package/src/story/pages/slider/VerticalSlider.d.ts +3 -0
- package/src/story/pages/slider/WithMarks.d.ts +3 -0
- package/src/story/pages/snackbar/AnimationsDemo.d.ts +3 -0
- package/src/story/pages/snackbar/ClickCallback.d.ts +3 -0
- package/src/story/pages/snackbar/LightBackground.d.ts +3 -0
- package/src/story/pages/snackbar/PersistentTimeout.d.ts +3 -0
- package/src/story/pages/snackbar/PositionsDemo.d.ts +3 -0
- package/src/story/pages/snackbar/SetupSection.d.ts +3 -0
- package/src/story/pages/snackbar/SnackbarPage.d.ts +3 -0
- package/src/story/pages/snackbar/TypesDemo.d.ts +3 -0
- package/src/story/pages/sortable/BasicSortable.d.ts +3 -0
- package/src/story/pages/sortable/ComplexItems.d.ts +3 -0
- package/src/story/pages/sortable/DragHandles.d.ts +3 -0
- package/src/story/pages/sortable/MultipleLists.d.ts +3 -0
- package/src/story/pages/sortable/SetupSection.d.ts +3 -0
- package/src/story/pages/sortable/SortablePage.d.ts +3 -0
- package/src/story/pages/sortable/TypeBasedSortable.d.ts +3 -0
- package/src/story/pages/sortable/sortable-story-data.d.ts +15 -0
- package/src/story/pages/splitter/DefaultSizePct.d.ts +3 -0
- package/src/story/pages/splitter/DefaultSizePx.d.ts +3 -0
- package/src/story/pages/splitter/FixedPanel.d.ts +3 -0
- package/src/story/pages/splitter/GutterSize.d.ts +3 -0
- package/src/story/pages/splitter/HorizontalSplit.d.ts +3 -0
- package/src/story/pages/splitter/KeyboardNavigation.d.ts +3 -0
- package/src/story/pages/splitter/MinSize.d.ts +3 -0
- package/src/story/pages/splitter/NestedSplitters.d.ts +3 -0
- package/src/story/pages/splitter/OnResizeEnd.d.ts +3 -0
- package/src/story/pages/splitter/PersistingLayout.d.ts +3 -0
- package/src/story/pages/splitter/SplitterPage.d.ts +3 -0
- package/src/story/pages/splitter/VerticalSplit.d.ts +3 -0
- package/src/story/pages/stepper/BasicUsage.d.ts +3 -0
- package/src/story/pages/stepper/ColorVariants.d.ts +3 -0
- package/src/story/pages/stepper/InteractiveSteps.d.ts +3 -0
- package/src/story/pages/stepper/LabelPlacement.d.ts +3 -0
- package/src/story/pages/stepper/LayoutShapes.d.ts +3 -0
- package/src/story/pages/stepper/SizeOptions.d.ts +3 -0
- package/src/story/pages/stepper/StepStatus.d.ts +3 -0
- package/src/story/pages/stepper/StepperPage.d.ts +3 -0
- package/src/story/pages/stepper/TextOnly.d.ts +3 -0
- package/src/story/pages/stepper/VerticalOrientation.d.ts +3 -0
- package/src/story/pages/stepper/WithIcons.d.ts +3 -0
- package/src/story/pages/stepper/stepper-story-data.d.ts +7 -0
- package/src/story/pages/store-basic/BasicUsage.d.ts +3 -0
- package/src/story/pages/store-basic/BatchedUpdates.d.ts +3 -0
- package/src/story/pages/store-basic/ComputedProperties.d.ts +3 -0
- package/src/story/pages/store-basic/MiddlewareDemo.d.ts +3 -0
- package/src/story/pages/store-basic/MultipleStores.d.ts +3 -0
- package/src/story/pages/store-basic/PathSubscriptions.d.ts +3 -0
- package/src/story/pages/store-basic/StoreBasicPage.d.ts +3 -0
- package/src/story/pages/store-middleware/BroadcastDemo.d.ts +3 -0
- package/src/story/pages/store-middleware/DebounceDemo.d.ts +3 -0
- package/src/story/pages/store-middleware/LoggingDemo.d.ts +3 -0
- package/src/story/pages/store-middleware/PersistDemo.d.ts +3 -0
- package/src/story/pages/store-middleware/StoreMiddlewarePage.d.ts +3 -0
- package/src/story/pages/store-middleware/ThrottleDemo.d.ts +3 -0
- package/src/story/pages/store-middleware/UndoRedoDemo.d.ts +3 -0
- package/src/story/pages/store-middleware/ValidationDemo.d.ts +3 -0
- package/src/story/pages/store-model/BasicCRUD.d.ts +3 -0
- package/src/story/pages/store-model/CombinedDemo.d.ts +3 -0
- package/src/story/pages/store-model/ListManagement.d.ts +3 -0
- package/src/story/pages/store-model/PersistenceDemo.d.ts +3 -0
- package/src/story/pages/store-model/StoreModelPage.d.ts +3 -0
- package/src/story/pages/store-model/ValidationDemo.d.ts +3 -0
- package/src/story/pages/tab-view/BasicUsage.d.ts +3 -0
- package/src/story/pages/tab-view/ClosableTabs.d.ts +3 -0
- package/src/story/pages/tab-view/EventHandling.d.ts +3 -0
- package/src/story/pages/tab-view/HeaderEnd.d.ts +3 -0
- package/src/story/pages/tab-view/Positions.d.ts +3 -0
- package/src/story/pages/tab-view/ScrollableTabs.d.ts +3 -0
- package/src/story/pages/tab-view/StyleVariants.d.ts +3 -0
- package/src/story/pages/tab-view/TabViewPage.d.ts +3 -0
- package/src/story/pages/tab-view/WithIcons.d.ts +3 -0
- package/src/story/pages/table/BasicUsage.d.ts +3 -0
- package/src/story/pages/table/CustomRendering.d.ts +3 -0
- package/src/story/pages/table/LoadingAndEmpty.d.ts +3 -0
- package/src/story/pages/table/ResponsiveColumns.d.ts +3 -0
- package/src/story/pages/table/RowSelection.d.ts +3 -0
- package/src/story/pages/table/SortableColumns.d.ts +3 -0
- package/src/story/pages/table/StyleVariants.d.ts +3 -0
- package/src/story/pages/table/TablePage.d.ts +3 -0
- package/src/story/pages/table/WithActions.d.ts +3 -0
- package/src/story/pages/table/WithPagination.d.ts +3 -0
- package/src/story/pages/table/table-story-data.d.ts +13 -0
- package/src/story/pages/text-input/BasicUsage.d.ts +3 -0
- package/src/story/pages/text-input/TextInputPage.d.ts +3 -0
- package/src/story/pages/text-input/TextInputStates.d.ts +3 -0
- package/src/story/pages/text-input/Validation.d.ts +3 -0
- package/src/story/pages/text-input/WithIcons.d.ts +3 -0
- package/src/story/pages/text-input/WithLabel.d.ts +3 -0
- package/src/story/pages/textarea/AutoResize.d.ts +3 -0
- package/src/story/pages/textarea/BasicUsage.d.ts +3 -0
- package/src/story/pages/textarea/CharacterLimit.d.ts +3 -0
- package/src/story/pages/textarea/RowHeights.d.ts +3 -0
- package/src/story/pages/textarea/TextAreaPage.d.ts +3 -0
- package/src/story/pages/textarea/TextAreaStates.d.ts +3 -0
- package/src/story/pages/timeline/AlternateAlignment.d.ts +3 -0
- package/src/story/pages/timeline/BasicUsage.d.ts +3 -0
- package/src/story/pages/timeline/CustomMarkers.d.ts +3 -0
- package/src/story/pages/timeline/HorizontalLayout.d.ts +3 -0
- package/src/story/pages/timeline/TimelinePage.d.ts +3 -0
- package/src/story/pages/toggle-button/BasicUsage.d.ts +3 -0
- package/src/story/pages/toggle-button/CustomLabels.d.ts +3 -0
- package/src/story/pages/toggle-button/CustomStyling.d.ts +3 -0
- package/src/story/pages/toggle-button/EventHandling.d.ts +3 -0
- package/src/story/pages/toggle-button/FormIntegration.d.ts +3 -0
- package/src/story/pages/toggle-button/MultipleToggles.d.ts +3 -0
- package/src/story/pages/toggle-button/Sizes.d.ts +3 -0
- package/src/story/pages/toggle-button/States.d.ts +3 -0
- package/src/story/pages/toggle-button/ToggleButtonPage.d.ts +3 -0
- package/src/story/pages/toggle-button/Variants.d.ts +3 -0
- package/src/story/pages/tooltip/BasicUsage.d.ts +3 -0
- package/src/story/pages/tooltip/CustomTimeout.d.ts +3 -0
- package/src/story/pages/tooltip/OnAnyElement.d.ts +3 -0
- package/src/story/pages/tooltip/Placements.d.ts +3 -0
- package/src/story/pages/tooltip/RichContent.d.ts +3 -0
- package/src/story/pages/tooltip/SetupSection.d.ts +3 -0
- package/src/story/pages/tooltip/TooltipPage.d.ts +3 -0
- package/src/story/pages/tour/BasicTour.d.ts +3 -0
- package/src/story/pages/tour/DarkModeSection.d.ts +3 -0
- package/src/story/pages/tour/PlacementOptions.d.ts +3 -0
- package/src/story/pages/tour/RichContent.d.ts +3 -0
- package/src/story/pages/tour/StartAtStep.d.ts +3 -0
- package/src/story/pages/tour/StepCallbacks.d.ts +3 -0
- package/src/story/pages/tour/TourPage.d.ts +3 -0
- package/src/story/pages/tour/tour-story-data.d.ts +13 -0
- package/src/story/pages/tree-view/AsyncLoading.d.ts +3 -0
- package/src/story/pages/tree-view/BasicUsage.d.ts +3 -0
- package/src/story/pages/tree-view/CheckboxMode.d.ts +3 -0
- package/src/story/pages/tree-view/DragDrop.d.ts +3 -0
- package/src/story/pages/tree-view/TreeViewPage.d.ts +3 -0
- package/src/themes/index.d.ts +2 -0
- package/src/types/index.d.ts +97 -0
- package/src/utils/common-fns.d.ts +8 -0
- package/src/utils/field-label.d.ts +12 -0
- package/src/utils/index.d.ts +10 -0
- package/src/utils/layout.d.ts +1 -0
- package/src/utils/lib.d.ts +2 -0
- package/store-middlewares.cjs +299 -0
- package/store-middlewares.d.ts +1 -0
- package/store-middlewares.js +290 -0
- package/store.cjs +683 -0
- package/store.d.ts +1 -0
- package/store.js +675 -0
- package/styles/components.css +16368 -0
- package/styles/drag-drop.css +88 -0
- package/styles/draw.css +994 -0
- package/styles/kanban.css +814 -0
- package/utils.cjs +25 -0
- package/utils.d.ts +1 -0
- package/utils.js +23 -0
- package/vite-plugin.cjs +42 -0
- package/vite-plugin.d.ts +1 -0
- package/vite-plugin.js +38 -0
package/dnd.cjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_drag_drop = require("./drag-drop-BF3uukc4.cjs");
|
|
3
|
+
exports.DragDropProvider = require_drag_drop.DragDropProvider;
|
|
4
|
+
exports.Draggable = require_drag_drop.Draggable_default;
|
|
5
|
+
exports.Droppable = require_drag_drop.Droppable;
|
|
6
|
+
exports.Sortable = require_drag_drop.Sortable;
|
package/dnd.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dnd.js
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
require('./styles/drag-drop.css');const require_chunk = require("./chunk-Do9eywBl.cjs");
|
|
2
|
+
const require_classnames$1 = require("./classnames-B4qHndiD.cjs");
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_chunk.__toESM(react, 1);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
let react_dnd = require("react-dnd");
|
|
7
|
+
let react_dnd_html5_backend = require("react-dnd-html5-backend");
|
|
8
|
+
//#region src/components/drag-drop/DragDropProvider.tsx
|
|
9
|
+
/**
|
|
10
|
+
* DragDropProvider component that wraps children with react-dnd context.
|
|
11
|
+
* This must be placed at the root of your app (or at least above any drag-drop components).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import { DragDropProvider } from 'ether-ui';
|
|
16
|
+
*
|
|
17
|
+
* function App() {
|
|
18
|
+
* return (
|
|
19
|
+
* <DragDropProvider>
|
|
20
|
+
* <YourApp />
|
|
21
|
+
* </DragDropProvider>
|
|
22
|
+
* );
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
function DragDropProvider({ children, backend = react_dnd_html5_backend.HTML5Backend, options }) {
|
|
27
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_dnd.DndProvider, {
|
|
28
|
+
backend,
|
|
29
|
+
options,
|
|
30
|
+
children
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/drag-drop/Draggable.tsx
|
|
35
|
+
var import_classnames = /* @__PURE__ */ require_chunk.__toESM(require_classnames$1.require_classnames(), 1);
|
|
36
|
+
function Draggable(props) {
|
|
37
|
+
const { containerId, index, id, item, itemType = "any", args, testId, children, onRemove, onDragStart, onDragEnd, className, canDrag: canDragProp = true } = props;
|
|
38
|
+
const [{ canDrag, isDragging, handlerId }, dragRef] = (0, react_dnd.useDrag)(() => ({
|
|
39
|
+
type: itemType,
|
|
40
|
+
canDrag: canDragProp,
|
|
41
|
+
item: (monitor) => {
|
|
42
|
+
const dragItem = {
|
|
43
|
+
index,
|
|
44
|
+
item,
|
|
45
|
+
itemType,
|
|
46
|
+
id,
|
|
47
|
+
containerId,
|
|
48
|
+
args
|
|
49
|
+
};
|
|
50
|
+
onDragStart?.(dragItem, monitor);
|
|
51
|
+
return dragItem;
|
|
52
|
+
},
|
|
53
|
+
end: (draggedItem, monitor) => {
|
|
54
|
+
onDragEnd?.(draggedItem, monitor);
|
|
55
|
+
if (!onRemove || !monitor.didDrop()) return;
|
|
56
|
+
const dropResult = monitor.getDropResult();
|
|
57
|
+
if (dropResult?.containerId !== containerId) onRemove({
|
|
58
|
+
index,
|
|
59
|
+
id
|
|
60
|
+
}, dropResult);
|
|
61
|
+
},
|
|
62
|
+
collect: (monitor) => ({
|
|
63
|
+
canDrag: monitor.canDrag(),
|
|
64
|
+
isDragging: monitor.isDragging(),
|
|
65
|
+
handlerId: monitor.getHandlerId()
|
|
66
|
+
})
|
|
67
|
+
}), [
|
|
68
|
+
onRemove,
|
|
69
|
+
onDragStart,
|
|
70
|
+
onDragEnd,
|
|
71
|
+
index,
|
|
72
|
+
id,
|
|
73
|
+
item,
|
|
74
|
+
containerId,
|
|
75
|
+
itemType,
|
|
76
|
+
args,
|
|
77
|
+
canDragProp
|
|
78
|
+
]);
|
|
79
|
+
if (typeof children === "function") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children({
|
|
80
|
+
isDragging,
|
|
81
|
+
canDrag,
|
|
82
|
+
dragRef,
|
|
83
|
+
handlerId
|
|
84
|
+
}) });
|
|
85
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
86
|
+
ref: dragRef,
|
|
87
|
+
className: (0, import_classnames.default)("eui-draggable", className, {
|
|
88
|
+
"eui-draggable-enabled": canDrag,
|
|
89
|
+
"eui-draggable-dragging": isDragging
|
|
90
|
+
}),
|
|
91
|
+
"data-testid": testId,
|
|
92
|
+
children
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
var Draggable_default = react.default.memo(Draggable);
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/drag-drop/Droppable.tsx
|
|
98
|
+
function Droppable(props) {
|
|
99
|
+
const { containerId, index, args, id, children, accept = "any", className, testId, onDrop, onHover, canDrop: canDropProp = true } = props;
|
|
100
|
+
const [{ canDrop, isOver, isOverCurrent }, dropRef] = (0, react_dnd.useDrop)(() => ({
|
|
101
|
+
accept,
|
|
102
|
+
canDrop: (item, monitor) => {
|
|
103
|
+
if (typeof canDropProp === "function") return canDropProp(item, monitor);
|
|
104
|
+
return canDropProp;
|
|
105
|
+
},
|
|
106
|
+
drop: (source, monitor) => {
|
|
107
|
+
if (monitor.didDrop()) return;
|
|
108
|
+
const target = {
|
|
109
|
+
index,
|
|
110
|
+
args,
|
|
111
|
+
id,
|
|
112
|
+
containerId
|
|
113
|
+
};
|
|
114
|
+
onDrop?.(source, target);
|
|
115
|
+
return target;
|
|
116
|
+
},
|
|
117
|
+
hover: (item, monitor) => {
|
|
118
|
+
onHover?.(item, monitor);
|
|
119
|
+
},
|
|
120
|
+
collect: (monitor) => ({
|
|
121
|
+
isOver: monitor.isOver(),
|
|
122
|
+
isOverCurrent: monitor.isOver({ shallow: true }),
|
|
123
|
+
canDrop: monitor.canDrop()
|
|
124
|
+
})
|
|
125
|
+
}), [
|
|
126
|
+
onDrop,
|
|
127
|
+
onHover,
|
|
128
|
+
index,
|
|
129
|
+
args,
|
|
130
|
+
id,
|
|
131
|
+
containerId,
|
|
132
|
+
accept,
|
|
133
|
+
canDropProp
|
|
134
|
+
]);
|
|
135
|
+
if (typeof children === "function") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: children({
|
|
136
|
+
dropRef,
|
|
137
|
+
canDrop,
|
|
138
|
+
isOver,
|
|
139
|
+
isOverCurrent
|
|
140
|
+
}) });
|
|
141
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
142
|
+
ref: dropRef,
|
|
143
|
+
className: (0, import_classnames.default)("eui-droppable", className, {
|
|
144
|
+
"eui-droppable-allowed": canDrop,
|
|
145
|
+
"eui-droppable-denied": !canDrop,
|
|
146
|
+
"eui-droppable-hover": isOver,
|
|
147
|
+
"eui-droppable-hover-current": isOverCurrent
|
|
148
|
+
}),
|
|
149
|
+
"data-testid": testId,
|
|
150
|
+
children
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/components/drag-drop/Sortable.tsx
|
|
155
|
+
function Sortable(props) {
|
|
156
|
+
const propsRef = (0, react.useRef)(props);
|
|
157
|
+
propsRef.current = props;
|
|
158
|
+
const { items, accept: acceptFromProps, itemType = "any", itemTypeProp, className, provideDropRef, provideDragRef, showPlaceholder, placeholder, as: Component = "div", allowRemove = true, children, args } = props;
|
|
159
|
+
const renderItem = children || props.itemTemplate;
|
|
160
|
+
const accept = (0, react.useMemo)(() => {
|
|
161
|
+
if (!acceptFromProps) return itemType;
|
|
162
|
+
if (!Array.isArray(acceptFromProps)) return [acceptFromProps, itemType];
|
|
163
|
+
return [...acceptFromProps, itemType];
|
|
164
|
+
}, [acceptFromProps, itemType]);
|
|
165
|
+
const containerId = (0, react.useId)();
|
|
166
|
+
const handleItemRemoved = (0, react.useCallback)((removed, dropResult) => {
|
|
167
|
+
const { onRemove, items, onChange, args } = propsRef.current;
|
|
168
|
+
if (onRemove) {
|
|
169
|
+
onRemove(removed, dropResult);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
const newItems = [...items];
|
|
173
|
+
newItems.splice(removed.index, 1);
|
|
174
|
+
onChange(newItems, args, { removed });
|
|
175
|
+
}, []);
|
|
176
|
+
const handleItemDropped = (0, react.useCallback)((source, target) => {
|
|
177
|
+
const { items, onChange, onDrop, args, itemType } = propsRef.current;
|
|
178
|
+
if (!target.item) target.item = items[target.index];
|
|
179
|
+
if (source.containerId !== containerId && (onDrop || source.itemType !== itemType)) {
|
|
180
|
+
onDrop?.(source, target, args);
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
const newItems = [...items];
|
|
184
|
+
if (source.containerId === target.containerId) newItems.splice(source.index, 1);
|
|
185
|
+
newItems.splice(target.index, 0, source.item);
|
|
186
|
+
onChange(newItems, args, {
|
|
187
|
+
source,
|
|
188
|
+
target
|
|
189
|
+
});
|
|
190
|
+
}, [containerId]);
|
|
191
|
+
const renderDraggable = (0, react.useCallback)((item, index, droppable) => {
|
|
192
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Draggable_default, {
|
|
193
|
+
containerId,
|
|
194
|
+
index,
|
|
195
|
+
item,
|
|
196
|
+
args,
|
|
197
|
+
itemType: itemTypeProp && item[itemTypeProp] || itemType,
|
|
198
|
+
onRemove: allowRemove ? handleItemRemoved : void 0,
|
|
199
|
+
children: provideDragRef ? (draggable) => renderItem(item, index, {
|
|
200
|
+
draggable,
|
|
201
|
+
droppable
|
|
202
|
+
}) : renderItem(item, index, { droppable })
|
|
203
|
+
});
|
|
204
|
+
}, [
|
|
205
|
+
containerId,
|
|
206
|
+
itemTypeProp,
|
|
207
|
+
itemType,
|
|
208
|
+
args,
|
|
209
|
+
allowRemove,
|
|
210
|
+
handleItemRemoved,
|
|
211
|
+
provideDragRef,
|
|
212
|
+
renderItem
|
|
213
|
+
]);
|
|
214
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Component, {
|
|
215
|
+
className: (0, import_classnames.default)("eui-sortable", className),
|
|
216
|
+
children: [items.map((item, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Droppable, {
|
|
217
|
+
containerId,
|
|
218
|
+
index: i,
|
|
219
|
+
accept,
|
|
220
|
+
onDrop: handleItemDropped,
|
|
221
|
+
args,
|
|
222
|
+
children: provideDropRef ? (droppable) => renderDraggable(item, i, droppable) : renderDraggable(item, i)
|
|
223
|
+
}, i)), (showPlaceholder || placeholder) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Droppable, {
|
|
224
|
+
containerId,
|
|
225
|
+
className: "eui-drop-placeholder",
|
|
226
|
+
args,
|
|
227
|
+
index: items?.length || 0,
|
|
228
|
+
accept,
|
|
229
|
+
onDrop: handleItemDropped,
|
|
230
|
+
children: placeholder
|
|
231
|
+
})]
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
Object.defineProperty(exports, "DragDropProvider", {
|
|
236
|
+
enumerable: true,
|
|
237
|
+
get: function() {
|
|
238
|
+
return DragDropProvider;
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(exports, "Draggable_default", {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function() {
|
|
244
|
+
return Draggable_default;
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
Object.defineProperty(exports, "Droppable", {
|
|
248
|
+
enumerable: true,
|
|
249
|
+
get: function() {
|
|
250
|
+
return Droppable;
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
Object.defineProperty(exports, "Sortable", {
|
|
254
|
+
enumerable: true,
|
|
255
|
+
get: function() {
|
|
256
|
+
return Sortable;
|
|
257
|
+
}
|
|
258
|
+
});
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { n as __toESM, t as require_classnames } from "./classnames-CEAOwX3h.js";
|
|
2
|
+
import React, { useCallback, useId, useMemo, useRef } from "react";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { DndProvider, useDrag, useDrop } from "react-dnd";
|
|
5
|
+
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
6
|
+
import './styles/drag-drop.css';//#region src/components/drag-drop/DragDropProvider.tsx
|
|
7
|
+
/**
|
|
8
|
+
* DragDropProvider component that wraps children with react-dnd context.
|
|
9
|
+
* This must be placed at the root of your app (or at least above any drag-drop components).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { DragDropProvider } from 'ether-ui';
|
|
14
|
+
*
|
|
15
|
+
* function App() {
|
|
16
|
+
* return (
|
|
17
|
+
* <DragDropProvider>
|
|
18
|
+
* <YourApp />
|
|
19
|
+
* </DragDropProvider>
|
|
20
|
+
* );
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
function DragDropProvider({ children, backend = HTML5Backend, options }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(DndProvider, {
|
|
26
|
+
backend,
|
|
27
|
+
options,
|
|
28
|
+
children
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/drag-drop/Draggable.tsx
|
|
33
|
+
var import_classnames = /* @__PURE__ */ __toESM(require_classnames(), 1);
|
|
34
|
+
function Draggable(props) {
|
|
35
|
+
const { containerId, index, id, item, itemType = "any", args, testId, children, onRemove, onDragStart, onDragEnd, className, canDrag: canDragProp = true } = props;
|
|
36
|
+
const [{ canDrag, isDragging, handlerId }, dragRef] = useDrag(() => ({
|
|
37
|
+
type: itemType,
|
|
38
|
+
canDrag: canDragProp,
|
|
39
|
+
item: (monitor) => {
|
|
40
|
+
const dragItem = {
|
|
41
|
+
index,
|
|
42
|
+
item,
|
|
43
|
+
itemType,
|
|
44
|
+
id,
|
|
45
|
+
containerId,
|
|
46
|
+
args
|
|
47
|
+
};
|
|
48
|
+
onDragStart?.(dragItem, monitor);
|
|
49
|
+
return dragItem;
|
|
50
|
+
},
|
|
51
|
+
end: (draggedItem, monitor) => {
|
|
52
|
+
onDragEnd?.(draggedItem, monitor);
|
|
53
|
+
if (!onRemove || !monitor.didDrop()) return;
|
|
54
|
+
const dropResult = monitor.getDropResult();
|
|
55
|
+
if (dropResult?.containerId !== containerId) onRemove({
|
|
56
|
+
index,
|
|
57
|
+
id
|
|
58
|
+
}, dropResult);
|
|
59
|
+
},
|
|
60
|
+
collect: (monitor) => ({
|
|
61
|
+
canDrag: monitor.canDrag(),
|
|
62
|
+
isDragging: monitor.isDragging(),
|
|
63
|
+
handlerId: monitor.getHandlerId()
|
|
64
|
+
})
|
|
65
|
+
}), [
|
|
66
|
+
onRemove,
|
|
67
|
+
onDragStart,
|
|
68
|
+
onDragEnd,
|
|
69
|
+
index,
|
|
70
|
+
id,
|
|
71
|
+
item,
|
|
72
|
+
containerId,
|
|
73
|
+
itemType,
|
|
74
|
+
args,
|
|
75
|
+
canDragProp
|
|
76
|
+
]);
|
|
77
|
+
if (typeof children === "function") return /* @__PURE__ */ jsx(Fragment, { children: children({
|
|
78
|
+
isDragging,
|
|
79
|
+
canDrag,
|
|
80
|
+
dragRef,
|
|
81
|
+
handlerId
|
|
82
|
+
}) });
|
|
83
|
+
return /* @__PURE__ */ jsx("div", {
|
|
84
|
+
ref: dragRef,
|
|
85
|
+
className: (0, import_classnames.default)("eui-draggable", className, {
|
|
86
|
+
"eui-draggable-enabled": canDrag,
|
|
87
|
+
"eui-draggable-dragging": isDragging
|
|
88
|
+
}),
|
|
89
|
+
"data-testid": testId,
|
|
90
|
+
children
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
var Draggable_default = React.memo(Draggable);
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/drag-drop/Droppable.tsx
|
|
96
|
+
function Droppable(props) {
|
|
97
|
+
const { containerId, index, args, id, children, accept = "any", className, testId, onDrop, onHover, canDrop: canDropProp = true } = props;
|
|
98
|
+
const [{ canDrop, isOver, isOverCurrent }, dropRef] = useDrop(() => ({
|
|
99
|
+
accept,
|
|
100
|
+
canDrop: (item, monitor) => {
|
|
101
|
+
if (typeof canDropProp === "function") return canDropProp(item, monitor);
|
|
102
|
+
return canDropProp;
|
|
103
|
+
},
|
|
104
|
+
drop: (source, monitor) => {
|
|
105
|
+
if (monitor.didDrop()) return;
|
|
106
|
+
const target = {
|
|
107
|
+
index,
|
|
108
|
+
args,
|
|
109
|
+
id,
|
|
110
|
+
containerId
|
|
111
|
+
};
|
|
112
|
+
onDrop?.(source, target);
|
|
113
|
+
return target;
|
|
114
|
+
},
|
|
115
|
+
hover: (item, monitor) => {
|
|
116
|
+
onHover?.(item, monitor);
|
|
117
|
+
},
|
|
118
|
+
collect: (monitor) => ({
|
|
119
|
+
isOver: monitor.isOver(),
|
|
120
|
+
isOverCurrent: monitor.isOver({ shallow: true }),
|
|
121
|
+
canDrop: monitor.canDrop()
|
|
122
|
+
})
|
|
123
|
+
}), [
|
|
124
|
+
onDrop,
|
|
125
|
+
onHover,
|
|
126
|
+
index,
|
|
127
|
+
args,
|
|
128
|
+
id,
|
|
129
|
+
containerId,
|
|
130
|
+
accept,
|
|
131
|
+
canDropProp
|
|
132
|
+
]);
|
|
133
|
+
if (typeof children === "function") return /* @__PURE__ */ jsx(Fragment, { children: children({
|
|
134
|
+
dropRef,
|
|
135
|
+
canDrop,
|
|
136
|
+
isOver,
|
|
137
|
+
isOverCurrent
|
|
138
|
+
}) });
|
|
139
|
+
return /* @__PURE__ */ jsx("div", {
|
|
140
|
+
ref: dropRef,
|
|
141
|
+
className: (0, import_classnames.default)("eui-droppable", className, {
|
|
142
|
+
"eui-droppable-allowed": canDrop,
|
|
143
|
+
"eui-droppable-denied": !canDrop,
|
|
144
|
+
"eui-droppable-hover": isOver,
|
|
145
|
+
"eui-droppable-hover-current": isOverCurrent
|
|
146
|
+
}),
|
|
147
|
+
"data-testid": testId,
|
|
148
|
+
children
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/components/drag-drop/Sortable.tsx
|
|
153
|
+
function Sortable(props) {
|
|
154
|
+
const propsRef = useRef(props);
|
|
155
|
+
propsRef.current = props;
|
|
156
|
+
const { items, accept: acceptFromProps, itemType = "any", itemTypeProp, className, provideDropRef, provideDragRef, showPlaceholder, placeholder, as: Component = "div", allowRemove = true, children, args } = props;
|
|
157
|
+
const renderItem = children || props.itemTemplate;
|
|
158
|
+
const accept = useMemo(() => {
|
|
159
|
+
if (!acceptFromProps) return itemType;
|
|
160
|
+
if (!Array.isArray(acceptFromProps)) return [acceptFromProps, itemType];
|
|
161
|
+
return [...acceptFromProps, itemType];
|
|
162
|
+
}, [acceptFromProps, itemType]);
|
|
163
|
+
const containerId = useId();
|
|
164
|
+
const handleItemRemoved = useCallback((removed, dropResult) => {
|
|
165
|
+
const { onRemove, items, onChange, args } = propsRef.current;
|
|
166
|
+
if (onRemove) {
|
|
167
|
+
onRemove(removed, dropResult);
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
const newItems = [...items];
|
|
171
|
+
newItems.splice(removed.index, 1);
|
|
172
|
+
onChange(newItems, args, { removed });
|
|
173
|
+
}, []);
|
|
174
|
+
const handleItemDropped = useCallback((source, target) => {
|
|
175
|
+
const { items, onChange, onDrop, args, itemType } = propsRef.current;
|
|
176
|
+
if (!target.item) target.item = items[target.index];
|
|
177
|
+
if (source.containerId !== containerId && (onDrop || source.itemType !== itemType)) {
|
|
178
|
+
onDrop?.(source, target, args);
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
const newItems = [...items];
|
|
182
|
+
if (source.containerId === target.containerId) newItems.splice(source.index, 1);
|
|
183
|
+
newItems.splice(target.index, 0, source.item);
|
|
184
|
+
onChange(newItems, args, {
|
|
185
|
+
source,
|
|
186
|
+
target
|
|
187
|
+
});
|
|
188
|
+
}, [containerId]);
|
|
189
|
+
const renderDraggable = useCallback((item, index, droppable) => {
|
|
190
|
+
return /* @__PURE__ */ jsx(Draggable_default, {
|
|
191
|
+
containerId,
|
|
192
|
+
index,
|
|
193
|
+
item,
|
|
194
|
+
args,
|
|
195
|
+
itemType: itemTypeProp && item[itemTypeProp] || itemType,
|
|
196
|
+
onRemove: allowRemove ? handleItemRemoved : void 0,
|
|
197
|
+
children: provideDragRef ? (draggable) => renderItem(item, index, {
|
|
198
|
+
draggable,
|
|
199
|
+
droppable
|
|
200
|
+
}) : renderItem(item, index, { droppable })
|
|
201
|
+
});
|
|
202
|
+
}, [
|
|
203
|
+
containerId,
|
|
204
|
+
itemTypeProp,
|
|
205
|
+
itemType,
|
|
206
|
+
args,
|
|
207
|
+
allowRemove,
|
|
208
|
+
handleItemRemoved,
|
|
209
|
+
provideDragRef,
|
|
210
|
+
renderItem
|
|
211
|
+
]);
|
|
212
|
+
return /* @__PURE__ */ jsxs(Component, {
|
|
213
|
+
className: (0, import_classnames.default)("eui-sortable", className),
|
|
214
|
+
children: [items.map((item, i) => /* @__PURE__ */ jsx(Droppable, {
|
|
215
|
+
containerId,
|
|
216
|
+
index: i,
|
|
217
|
+
accept,
|
|
218
|
+
onDrop: handleItemDropped,
|
|
219
|
+
args,
|
|
220
|
+
children: provideDropRef ? (droppable) => renderDraggable(item, i, droppable) : renderDraggable(item, i)
|
|
221
|
+
}, i)), (showPlaceholder || placeholder) && /* @__PURE__ */ jsx(Droppable, {
|
|
222
|
+
containerId,
|
|
223
|
+
className: "eui-drop-placeholder",
|
|
224
|
+
args,
|
|
225
|
+
index: items?.length || 0,
|
|
226
|
+
accept,
|
|
227
|
+
onDrop: handleItemDropped,
|
|
228
|
+
children: placeholder
|
|
229
|
+
})]
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
//#endregion
|
|
233
|
+
export { DragDropProvider as i, Droppable as n, Draggable_default as r, Sortable as t };
|