@vuu-ui/vuu-ui-controls 0.0.26
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/LICENSE +201 -0
- package/README.md +0 -0
- package/cjs/calendar/Calendar.css.js +6 -0
- package/cjs/calendar/Calendar.css.js.map +1 -0
- package/cjs/calendar/Calendar.js +74 -0
- package/cjs/calendar/Calendar.js.map +1 -0
- package/cjs/calendar/internal/CalendarCarousel.css.js +6 -0
- package/cjs/calendar/internal/CalendarCarousel.css.js.map +1 -0
- package/cjs/calendar/internal/CalendarCarousel.js +97 -0
- package/cjs/calendar/internal/CalendarCarousel.js.map +1 -0
- package/cjs/calendar/internal/CalendarContext.js +19 -0
- package/cjs/calendar/internal/CalendarContext.js.map +1 -0
- package/cjs/calendar/internal/CalendarDay.css.js +6 -0
- package/cjs/calendar/internal/CalendarDay.css.js.map +1 -0
- package/cjs/calendar/internal/CalendarDay.js +83 -0
- package/cjs/calendar/internal/CalendarDay.js.map +1 -0
- package/cjs/calendar/internal/CalendarMonth.css.js +6 -0
- package/cjs/calendar/internal/CalendarMonth.css.js.map +1 -0
- package/cjs/calendar/internal/CalendarMonth.js +73 -0
- package/cjs/calendar/internal/CalendarMonth.js.map +1 -0
- package/cjs/calendar/internal/CalendarNavigation.css.js +6 -0
- package/cjs/calendar/internal/CalendarNavigation.css.js.map +1 -0
- package/cjs/calendar/internal/CalendarNavigation.js +250 -0
- package/cjs/calendar/internal/CalendarNavigation.js.map +1 -0
- package/cjs/calendar/internal/CalendarWeekHeader.css.js +6 -0
- package/cjs/calendar/internal/CalendarWeekHeader.css.js.map +1 -0
- package/cjs/calendar/internal/CalendarWeekHeader.js +43 -0
- package/cjs/calendar/internal/CalendarWeekHeader.js.map +1 -0
- package/cjs/calendar/internal/useFocusManagement.js +63 -0
- package/cjs/calendar/internal/useFocusManagement.js.map +1 -0
- package/cjs/calendar/internal/utils.js +63 -0
- package/cjs/calendar/internal/utils.js.map +1 -0
- package/cjs/calendar/useCalendar.js +131 -0
- package/cjs/calendar/useCalendar.js.map +1 -0
- package/cjs/calendar/useCalendarDay.js +70 -0
- package/cjs/calendar/useCalendarDay.js.map +1 -0
- package/cjs/calendar/useSelection.js +242 -0
- package/cjs/calendar/useSelection.js.map +1 -0
- package/cjs/combo-box/ComboBox.js +191 -0
- package/cjs/combo-box/ComboBox.js.map +1 -0
- package/cjs/combo-box/useCombobox.js +358 -0
- package/cjs/combo-box/useCombobox.js.map +1 -0
- package/cjs/common-hooks/collectionProvider.js +24 -0
- package/cjs/common-hooks/collectionProvider.js.map +1 -0
- package/cjs/common-hooks/isPlainObject.js +6 -0
- package/cjs/common-hooks/isPlainObject.js.map +1 -0
- package/cjs/common-hooks/itemToString.js +24 -0
- package/cjs/common-hooks/itemToString.js.map +1 -0
- package/cjs/common-hooks/selectionTypes.js +18 -0
- package/cjs/common-hooks/selectionTypes.js.map +1 -0
- package/cjs/common-hooks/use-resize-observer.js +123 -0
- package/cjs/common-hooks/use-resize-observer.js.map +1 -0
- package/cjs/common-hooks/useCollectionItems.js +309 -0
- package/cjs/common-hooks/useCollectionItems.js.map +1 -0
- package/cjs/common-hooks/useControlled.js +58 -0
- package/cjs/common-hooks/useControlled.js.map +1 -0
- package/cjs/common-hooks/useSelection.js +212 -0
- package/cjs/common-hooks/useSelection.js.map +1 -0
- package/cjs/common-hooks/useStateRef.js +23 -0
- package/cjs/common-hooks/useStateRef.js.map +1 -0
- package/cjs/cycle-state-button/CycleStateButton.js +54 -0
- package/cjs/cycle-state-button/CycleStateButton.js.map +1 -0
- package/cjs/date-input/DateInput.css.js +6 -0
- package/cjs/date-input/DateInput.css.js.map +1 -0
- package/cjs/date-input/DateInput.js +90 -0
- package/cjs/date-input/DateInput.js.map +1 -0
- package/cjs/date-input/DateRangeInput.js +77 -0
- package/cjs/date-input/DateRangeInput.js.map +1 -0
- package/cjs/date-input/useDatePicker.js +20 -0
- package/cjs/date-input/useDatePicker.js.map +1 -0
- package/cjs/date-popup/DatePopup.js +90 -0
- package/cjs/date-popup/DatePopup.js.map +1 -0
- package/cjs/date-popup/useDatePopup.js +77 -0
- package/cjs/date-popup/useDatePopup.js.map +1 -0
- package/cjs/drag-drop/DragDropProvider.js +145 -0
- package/cjs/drag-drop/DragDropProvider.js.map +1 -0
- package/cjs/drag-drop/DragDropState.js +29 -0
- package/cjs/drag-drop/DragDropState.js.map +1 -0
- package/cjs/drag-drop/Draggable.css.js +6 -0
- package/cjs/drag-drop/Draggable.css.js.map +1 -0
- package/cjs/drag-drop/Draggable.js +95 -0
- package/cjs/drag-drop/Draggable.js.map +1 -0
- package/cjs/drag-drop/dragDropTypes.js +8 -0
- package/cjs/drag-drop/dragDropTypes.js.map +1 -0
- package/cjs/drag-drop/drop-target-utils.js +245 -0
- package/cjs/drag-drop/drop-target-utils.js.map +1 -0
- package/cjs/drag-drop/useAutoScroll.js +71 -0
- package/cjs/drag-drop/useAutoScroll.js.map +1 -0
- package/cjs/drag-drop/useDragDisplacers.js +160 -0
- package/cjs/drag-drop/useDragDisplacers.js.map +1 -0
- package/cjs/drag-drop/useDragDrop.js +499 -0
- package/cjs/drag-drop/useDragDrop.js.map +1 -0
- package/cjs/drag-drop/useDragDropCopy.js +34 -0
- package/cjs/drag-drop/useDragDropCopy.js.map +1 -0
- package/cjs/drag-drop/useDragDropIndicator.js +251 -0
- package/cjs/drag-drop/useDragDropIndicator.js.map +1 -0
- package/cjs/drag-drop/useDragDropNaturalMovement.js +264 -0
- package/cjs/drag-drop/useDragDropNaturalMovement.js.map +1 -0
- package/cjs/drag-drop/useDropIndicator.js +27 -0
- package/cjs/drag-drop/useDropIndicator.js.map +1 -0
- package/cjs/drag-drop/useGlobalDragDrop.js +89 -0
- package/cjs/drag-drop/useGlobalDragDrop.js.map +1 -0
- package/cjs/dropdown/Dropdown.css.js +6 -0
- package/cjs/dropdown/Dropdown.css.js.map +1 -0
- package/cjs/dropdown/Dropdown.js +150 -0
- package/cjs/dropdown/Dropdown.js.map +1 -0
- package/cjs/dropdown/DropdownBase.js +121 -0
- package/cjs/dropdown/DropdownBase.js.map +1 -0
- package/cjs/dropdown/DropdownButton.css.js +6 -0
- package/cjs/dropdown/DropdownButton.css.js.map +1 -0
- package/cjs/dropdown/DropdownButton.js +72 -0
- package/cjs/dropdown/DropdownButton.js.map +1 -0
- package/cjs/dropdown/useClickAway.js +67 -0
- package/cjs/dropdown/useClickAway.js.map +1 -0
- package/cjs/dropdown/useDropdown.js +115 -0
- package/cjs/dropdown/useDropdown.js.map +1 -0
- package/cjs/dropdown/useDropdownBase.js +169 -0
- package/cjs/dropdown/useDropdownBase.js.map +1 -0
- package/cjs/editable/editable-utils.js +37 -0
- package/cjs/editable/editable-utils.js.map +1 -0
- package/cjs/editable/useEditableText.js +106 -0
- package/cjs/editable/useEditableText.js.map +1 -0
- package/cjs/editable-label/EditableLabel.css.js +6 -0
- package/cjs/editable-label/EditableLabel.css.js.map +1 -0
- package/cjs/editable-label/EditableLabel.js +138 -0
- package/cjs/editable-label/EditableLabel.js.map +1 -0
- package/cjs/expando-input/ExpandoInput.css.js +6 -0
- package/cjs/expando-input/ExpandoInput.css.js.map +1 -0
- package/cjs/expando-input/ExpandoInput.js +53 -0
- package/cjs/expando-input/ExpandoInput.js.map +1 -0
- package/cjs/icon-button/Icon.css.js +6 -0
- package/cjs/icon-button/Icon.css.js.map +1 -0
- package/cjs/icon-button/Icon.js +37 -0
- package/cjs/icon-button/Icon.js.map +1 -0
- package/cjs/icon-button/IconButton.css.js +6 -0
- package/cjs/icon-button/IconButton.css.js.map +1 -0
- package/cjs/icon-button/IconButton.js +26 -0
- package/cjs/icon-button/IconButton.js.map +1 -0
- package/cjs/index.js +231 -0
- package/cjs/index.js.map +1 -0
- package/cjs/inputs/Checkbox.css.js +6 -0
- package/cjs/inputs/Checkbox.css.js.map +1 -0
- package/cjs/inputs/Checkbox.js +32 -0
- package/cjs/inputs/Checkbox.js.map +1 -0
- package/cjs/inputs/RadioButton.css.js +6 -0
- package/cjs/inputs/RadioButton.css.js.map +1 -0
- package/cjs/inputs/RadioButton.js +39 -0
- package/cjs/inputs/RadioButton.js.map +1 -0
- package/cjs/instrument-picker/InstrumentPicker.css.js +6 -0
- package/cjs/instrument-picker/InstrumentPicker.css.js.map +1 -0
- package/cjs/instrument-picker/InstrumentPicker.js +113 -0
- package/cjs/instrument-picker/InstrumentPicker.js.map +1 -0
- package/cjs/instrument-picker/SearchCell.css.js +6 -0
- package/cjs/instrument-picker/SearchCell.css.js.map +1 -0
- package/cjs/instrument-picker/SearchCell.js +33 -0
- package/cjs/instrument-picker/SearchCell.js.map +1 -0
- package/cjs/instrument-picker/useInstrumentPicker.js +87 -0
- package/cjs/instrument-picker/useInstrumentPicker.js.map +1 -0
- package/cjs/instrument-search/InstrumentSearch.css.js +6 -0
- package/cjs/instrument-search/InstrumentSearch.css.js.map +1 -0
- package/cjs/instrument-search/InstrumentSearch.js +96 -0
- package/cjs/instrument-search/InstrumentSearch.js.map +1 -0
- package/cjs/instrument-search/SearchCell.css.js +6 -0
- package/cjs/instrument-search/SearchCell.css.js.map +1 -0
- package/cjs/instrument-search/SearchCell.js +33 -0
- package/cjs/instrument-search/SearchCell.js.map +1 -0
- package/cjs/instrument-search/useInstrumentSearch.js +39 -0
- package/cjs/instrument-search/useInstrumentSearch.js.map +1 -0
- package/cjs/list/CheckboxIcon.css.js +6 -0
- package/cjs/list/CheckboxIcon.css.js.map +1 -0
- package/cjs/list/CheckboxIcon.js +33 -0
- package/cjs/list/CheckboxIcon.js.map +1 -0
- package/cjs/list/ChevronIcon.css.js +6 -0
- package/cjs/list/ChevronIcon.css.js.map +1 -0
- package/cjs/list/ChevronIcon.js +22 -0
- package/cjs/list/ChevronIcon.js.map +1 -0
- package/cjs/list/Highlighter.css.js +6 -0
- package/cjs/list/Highlighter.css.js.map +1 -0
- package/cjs/list/Highlighter.js +36 -0
- package/cjs/list/Highlighter.js.map +1 -0
- package/cjs/list/List.css.js +6 -0
- package/cjs/list/List.css.js.map +1 -0
- package/cjs/list/List.js +317 -0
- package/cjs/list/List.js.map +1 -0
- package/cjs/list/ListItem.css.js +6 -0
- package/cjs/list/ListItem.css.js.map +1 -0
- package/cjs/list/ListItem.js +84 -0
- package/cjs/list/ListItem.js.map +1 -0
- package/cjs/list/ListItemGroup.js +6 -0
- package/cjs/list/ListItemGroup.js.map +1 -0
- package/cjs/list/ListItemHeader.js +6 -0
- package/cjs/list/ListItemHeader.js.map +1 -0
- package/cjs/list/RadioIcon.css.js +6 -0
- package/cjs/list/RadioIcon.css.js.map +1 -0
- package/cjs/list/RadioIcon.js +27 -0
- package/cjs/list/RadioIcon.js.map +1 -0
- package/cjs/list/common-hooks/keyUtils.js +78 -0
- package/cjs/list/common-hooks/keyUtils.js.map +1 -0
- package/cjs/list/common-hooks/list-dom-utils.js +25 -0
- package/cjs/list/common-hooks/list-dom-utils.js.map +1 -0
- package/cjs/list/common-hooks/useCollapsibleGroups.js +82 -0
- package/cjs/list/common-hooks/useCollapsibleGroups.js.map +1 -0
- package/cjs/list/common-hooks/useImperativeScrollingAPI.js +52 -0
- package/cjs/list/common-hooks/useImperativeScrollingAPI.js.map +1 -0
- package/cjs/list/common-hooks/useKeyboardNavigation.js +289 -0
- package/cjs/list/common-hooks/useKeyboardNavigation.js.map +1 -0
- package/cjs/list/common-hooks/useTypeahead.js +74 -0
- package/cjs/list/common-hooks/useTypeahead.js.map +1 -0
- package/cjs/list/common-hooks/useViewportTracking.js +133 -0
- package/cjs/list/common-hooks/useViewportTracking.js.map +1 -0
- package/cjs/list/common-hooks/utils/collection-item-utils.js +181 -0
- package/cjs/list/common-hooks/utils/collection-item-utils.js.map +1 -0
- package/cjs/list/common-hooks/utils/filter-utils.js +11 -0
- package/cjs/list/common-hooks/utils/filter-utils.js.map +1 -0
- package/cjs/list/common-hooks/utils/isSelected.js +9 -0
- package/cjs/list/common-hooks/utils/isSelected.js.map +1 -0
- package/cjs/list/useList.js +278 -0
- package/cjs/list/useList.js.map +1 -0
- package/cjs/list/useListDrop.js +92 -0
- package/cjs/list/useListDrop.js.map +1 -0
- package/cjs/list/useListHeight.js +77 -0
- package/cjs/list/useListHeight.js.map +1 -0
- package/cjs/list/useScrollPosition.js +74 -0
- package/cjs/list/useScrollPosition.js.map +1 -0
- package/cjs/measured-container/MeasuredContainer.css.js +6 -0
- package/cjs/measured-container/MeasuredContainer.css.js.map +1 -0
- package/cjs/measured-container/MeasuredContainer.js +69 -0
- package/cjs/measured-container/MeasuredContainer.js.map +1 -0
- package/cjs/measured-container/useMeasuredContainer.js +127 -0
- package/cjs/measured-container/useMeasuredContainer.js.map +1 -0
- package/cjs/measured-container/useResizeObserver.js +130 -0
- package/cjs/measured-container/useResizeObserver.js.map +1 -0
- package/cjs/overflow-container/OverflowContainer.css.js +6 -0
- package/cjs/overflow-container/OverflowContainer.css.js.map +1 -0
- package/cjs/overflow-container/OverflowContainer.js +142 -0
- package/cjs/overflow-container/OverflowContainer.js.map +1 -0
- package/cjs/overflow-container/overflow-utils.js +286 -0
- package/cjs/overflow-container/overflow-utils.js.map +1 -0
- package/cjs/overflow-container/useOverflowContainer.js +143 -0
- package/cjs/overflow-container/useOverflowContainer.js.map +1 -0
- package/cjs/price-ticker/PriceTicker.css.js +6 -0
- package/cjs/price-ticker/PriceTicker.css.js.map +1 -0
- package/cjs/price-ticker/PriceTicker.js +50 -0
- package/cjs/price-ticker/PriceTicker.js.map +1 -0
- package/cjs/split-button/SplitButton.css.js +6 -0
- package/cjs/split-button/SplitButton.css.js.map +1 -0
- package/cjs/split-button/SplitButton.js +81 -0
- package/cjs/split-button/SplitButton.js.map +1 -0
- package/cjs/split-button/SplitStateButton.css.js +6 -0
- package/cjs/split-button/SplitStateButton.css.js.map +1 -0
- package/cjs/split-button/SplitStateButton.js +31 -0
- package/cjs/split-button/SplitStateButton.js.map +1 -0
- package/cjs/split-button/useSplitButton.js +84 -0
- package/cjs/split-button/useSplitButton.js.map +1 -0
- package/cjs/tabstrip/Tab.css.js +6 -0
- package/cjs/tabstrip/Tab.css.js.map +1 -0
- package/cjs/tabstrip/Tab.js +151 -0
- package/cjs/tabstrip/Tab.js.map +1 -0
- package/cjs/tabstrip/TabMenu.css.js +6 -0
- package/cjs/tabstrip/TabMenu.css.js.map +1 -0
- package/cjs/tabstrip/TabMenu.js +72 -0
- package/cjs/tabstrip/TabMenu.js.map +1 -0
- package/cjs/tabstrip/TabMenuOptions.js +20 -0
- package/cjs/tabstrip/TabMenuOptions.js.map +1 -0
- package/cjs/tabstrip/Tabstrip.css.js +6 -0
- package/cjs/tabstrip/Tabstrip.css.js.map +1 -0
- package/cjs/tabstrip/Tabstrip.js +156 -0
- package/cjs/tabstrip/Tabstrip.js.map +1 -0
- package/cjs/tabstrip/tabstrip-dom-utils.js +19 -0
- package/cjs/tabstrip/tabstrip-dom-utils.js.map +1 -0
- package/cjs/tabstrip/useAnimatedSelectionThumb.js +85 -0
- package/cjs/tabstrip/useAnimatedSelectionThumb.js.map +1 -0
- package/cjs/tabstrip/useKeyboardNavigation.js +243 -0
- package/cjs/tabstrip/useKeyboardNavigation.js.map +1 -0
- package/cjs/tabstrip/useSelection.js +60 -0
- package/cjs/tabstrip/useSelection.js.map +1 -0
- package/cjs/tabstrip/useTabstrip.js +261 -0
- package/cjs/tabstrip/useTabstrip.js.map +1 -0
- package/cjs/toolbar/Toolbar.css.js +6 -0
- package/cjs/toolbar/Toolbar.css.js.map +1 -0
- package/cjs/toolbar/Toolbar.js +90 -0
- package/cjs/toolbar/Toolbar.js.map +1 -0
- package/cjs/toolbar/toolbar-dom-utils.js +18 -0
- package/cjs/toolbar/toolbar-dom-utils.js.map +1 -0
- package/cjs/toolbar/useKeyboardNavigation.js +305 -0
- package/cjs/toolbar/useKeyboardNavigation.js.map +1 -0
- package/cjs/toolbar/useSelection.js +94 -0
- package/cjs/toolbar/useSelection.js.map +1 -0
- package/cjs/toolbar/useToolbar.js +100 -0
- package/cjs/toolbar/useToolbar.js.map +1 -0
- package/cjs/tree/Tree.css.js +6 -0
- package/cjs/tree/Tree.css.js.map +1 -0
- package/cjs/tree/Tree.js +179 -0
- package/cjs/tree/Tree.js.map +1 -0
- package/cjs/tree/hierarchical-data-utils.js +72 -0
- package/cjs/tree/hierarchical-data-utils.js.map +1 -0
- package/cjs/tree/key-code.js +62 -0
- package/cjs/tree/key-code.js.map +1 -0
- package/cjs/tree/list-dom-utils.js +19 -0
- package/cjs/tree/list-dom-utils.js.map +1 -0
- package/cjs/tree/treeTypeUtils.js +6 -0
- package/cjs/tree/treeTypeUtils.js.map +1 -0
- package/cjs/tree/use-collapsible-groups.js +85 -0
- package/cjs/tree/use-collapsible-groups.js.map +1 -0
- package/cjs/tree/use-hierarchical-data.js +51 -0
- package/cjs/tree/use-hierarchical-data.js.map +1 -0
- package/cjs/tree/use-items-with-ids.js +100 -0
- package/cjs/tree/use-items-with-ids.js.map +1 -0
- package/cjs/tree/use-keyboard-navigation.js +144 -0
- package/cjs/tree/use-keyboard-navigation.js.map +1 -0
- package/cjs/tree/use-selection.js +154 -0
- package/cjs/tree/use-selection.js.map +1 -0
- package/cjs/tree/use-tree-keyboard-navigation.js +41 -0
- package/cjs/tree/use-tree-keyboard-navigation.js.map +1 -0
- package/cjs/tree/use-viewport-tracking.js +76 -0
- package/cjs/tree/use-viewport-tracking.js.map +1 -0
- package/cjs/tree/useTree.js +106 -0
- package/cjs/tree/useTree.js.map +1 -0
- package/cjs/utils/escapeRegExp.js +9 -0
- package/cjs/utils/escapeRegExp.js.map +1 -0
- package/cjs/utils/forwardCallbackProps.js +22 -0
- package/cjs/utils/forwardCallbackProps.js.map +1 -0
- package/cjs/utils/isOverflowElement.js +8 -0
- package/cjs/utils/isOverflowElement.js.map +1 -0
- package/cjs/vuu-input/VuuInput.css.js +6 -0
- package/cjs/vuu-input/VuuInput.css.js.map +1 -0
- package/cjs/vuu-input/VuuInput.js +105 -0
- package/cjs/vuu-input/VuuInput.js.map +1 -0
- package/esm/calendar/Calendar.css.js +4 -0
- package/esm/calendar/Calendar.css.js.map +1 -0
- package/esm/calendar/Calendar.js +72 -0
- package/esm/calendar/Calendar.js.map +1 -0
- package/esm/calendar/internal/CalendarCarousel.css.js +4 -0
- package/esm/calendar/internal/CalendarCarousel.css.js.map +1 -0
- package/esm/calendar/internal/CalendarCarousel.js +95 -0
- package/esm/calendar/internal/CalendarCarousel.js.map +1 -0
- package/esm/calendar/internal/CalendarContext.js +16 -0
- package/esm/calendar/internal/CalendarContext.js.map +1 -0
- package/esm/calendar/internal/CalendarDay.css.js +4 -0
- package/esm/calendar/internal/CalendarDay.css.js.map +1 -0
- package/esm/calendar/internal/CalendarDay.js +81 -0
- package/esm/calendar/internal/CalendarDay.js.map +1 -0
- package/esm/calendar/internal/CalendarMonth.css.js +4 -0
- package/esm/calendar/internal/CalendarMonth.css.js.map +1 -0
- package/esm/calendar/internal/CalendarMonth.js +71 -0
- package/esm/calendar/internal/CalendarMonth.js.map +1 -0
- package/esm/calendar/internal/CalendarNavigation.css.js +4 -0
- package/esm/calendar/internal/CalendarNavigation.css.js.map +1 -0
- package/esm/calendar/internal/CalendarNavigation.js +248 -0
- package/esm/calendar/internal/CalendarNavigation.js.map +1 -0
- package/esm/calendar/internal/CalendarWeekHeader.css.js +4 -0
- package/esm/calendar/internal/CalendarWeekHeader.css.js.map +1 -0
- package/esm/calendar/internal/CalendarWeekHeader.js +41 -0
- package/esm/calendar/internal/CalendarWeekHeader.js.map +1 -0
- package/esm/calendar/internal/useFocusManagement.js +61 -0
- package/esm/calendar/internal/useFocusManagement.js.map +1 -0
- package/esm/calendar/internal/utils.js +55 -0
- package/esm/calendar/internal/utils.js.map +1 -0
- package/esm/calendar/useCalendar.js +129 -0
- package/esm/calendar/useCalendar.js.map +1 -0
- package/esm/calendar/useCalendarDay.js +68 -0
- package/esm/calendar/useCalendarDay.js.map +1 -0
- package/esm/calendar/useSelection.js +239 -0
- package/esm/calendar/useSelection.js.map +1 -0
- package/esm/combo-box/ComboBox.js +189 -0
- package/esm/combo-box/ComboBox.js.map +1 -0
- package/esm/combo-box/useCombobox.js +356 -0
- package/esm/combo-box/useCombobox.js.map +1 -0
- package/esm/common-hooks/collectionProvider.js +20 -0
- package/esm/common-hooks/collectionProvider.js.map +1 -0
- package/esm/common-hooks/isPlainObject.js +4 -0
- package/esm/common-hooks/isPlainObject.js.map +1 -0
- package/esm/common-hooks/itemToString.js +22 -0
- package/esm/common-hooks/itemToString.js.map +1 -0
- package/esm/common-hooks/selectionTypes.js +10 -0
- package/esm/common-hooks/selectionTypes.js.map +1 -0
- package/esm/common-hooks/use-resize-observer.js +118 -0
- package/esm/common-hooks/use-resize-observer.js.map +1 -0
- package/esm/common-hooks/useCollectionItems.js +307 -0
- package/esm/common-hooks/useCollectionItems.js.map +1 -0
- package/esm/common-hooks/useControlled.js +56 -0
- package/esm/common-hooks/useControlled.js.map +1 -0
- package/esm/common-hooks/useSelection.js +205 -0
- package/esm/common-hooks/useSelection.js.map +1 -0
- package/esm/common-hooks/useStateRef.js +21 -0
- package/esm/common-hooks/useStateRef.js.map +1 -0
- package/esm/cycle-state-button/CycleStateButton.js +52 -0
- package/esm/cycle-state-button/CycleStateButton.js.map +1 -0
- package/esm/date-input/DateInput.css.js +4 -0
- package/esm/date-input/DateInput.css.js.map +1 -0
- package/esm/date-input/DateInput.js +88 -0
- package/esm/date-input/DateInput.js.map +1 -0
- package/esm/date-input/DateRangeInput.js +75 -0
- package/esm/date-input/DateRangeInput.js.map +1 -0
- package/esm/date-input/useDatePicker.js +18 -0
- package/esm/date-input/useDatePicker.js.map +1 -0
- package/esm/date-popup/DatePopup.js +88 -0
- package/esm/date-popup/DatePopup.js.map +1 -0
- package/esm/date-popup/useDatePopup.js +75 -0
- package/esm/date-popup/useDatePopup.js.map +1 -0
- package/esm/drag-drop/DragDropProvider.js +142 -0
- package/esm/drag-drop/DragDropProvider.js.map +1 -0
- package/esm/drag-drop/DragDropState.js +27 -0
- package/esm/drag-drop/DragDropState.js.map +1 -0
- package/esm/drag-drop/Draggable.css.js +4 -0
- package/esm/drag-drop/Draggable.css.js.map +1 -0
- package/esm/drag-drop/Draggable.js +90 -0
- package/esm/drag-drop/Draggable.js.map +1 -0
- package/esm/drag-drop/dragDropTypes.js +5 -0
- package/esm/drag-drop/dragDropTypes.js.map +1 -0
- package/esm/drag-drop/drop-target-utils.js +228 -0
- package/esm/drag-drop/drop-target-utils.js.map +1 -0
- package/esm/drag-drop/useAutoScroll.js +69 -0
- package/esm/drag-drop/useAutoScroll.js.map +1 -0
- package/esm/drag-drop/useDragDisplacers.js +158 -0
- package/esm/drag-drop/useDragDisplacers.js.map +1 -0
- package/esm/drag-drop/useDragDrop.js +497 -0
- package/esm/drag-drop/useDragDrop.js.map +1 -0
- package/esm/drag-drop/useDragDropCopy.js +31 -0
- package/esm/drag-drop/useDragDropCopy.js.map +1 -0
- package/esm/drag-drop/useDragDropIndicator.js +249 -0
- package/esm/drag-drop/useDragDropIndicator.js.map +1 -0
- package/esm/drag-drop/useDragDropNaturalMovement.js +262 -0
- package/esm/drag-drop/useDragDropNaturalMovement.js.map +1 -0
- package/esm/drag-drop/useDropIndicator.js +25 -0
- package/esm/drag-drop/useDropIndicator.js.map +1 -0
- package/esm/drag-drop/useGlobalDragDrop.js +87 -0
- package/esm/drag-drop/useGlobalDragDrop.js.map +1 -0
- package/esm/dropdown/Dropdown.css.js +4 -0
- package/esm/dropdown/Dropdown.css.js.map +1 -0
- package/esm/dropdown/Dropdown.js +148 -0
- package/esm/dropdown/Dropdown.js.map +1 -0
- package/esm/dropdown/DropdownBase.js +119 -0
- package/esm/dropdown/DropdownBase.js.map +1 -0
- package/esm/dropdown/DropdownButton.css.js +4 -0
- package/esm/dropdown/DropdownButton.css.js.map +1 -0
- package/esm/dropdown/DropdownButton.js +70 -0
- package/esm/dropdown/DropdownButton.js.map +1 -0
- package/esm/dropdown/useClickAway.js +64 -0
- package/esm/dropdown/useClickAway.js.map +1 -0
- package/esm/dropdown/useDropdown.js +113 -0
- package/esm/dropdown/useDropdown.js.map +1 -0
- package/esm/dropdown/useDropdownBase.js +167 -0
- package/esm/dropdown/useDropdownBase.js.map +1 -0
- package/esm/editable/editable-utils.js +35 -0
- package/esm/editable/editable-utils.js.map +1 -0
- package/esm/editable/useEditableText.js +103 -0
- package/esm/editable/useEditableText.js.map +1 -0
- package/esm/editable-label/EditableLabel.css.js +4 -0
- package/esm/editable-label/EditableLabel.css.js.map +1 -0
- package/esm/editable-label/EditableLabel.js +135 -0
- package/esm/editable-label/EditableLabel.js.map +1 -0
- package/esm/expando-input/ExpandoInput.css.js +4 -0
- package/esm/expando-input/ExpandoInput.css.js.map +1 -0
- package/esm/expando-input/ExpandoInput.js +51 -0
- package/esm/expando-input/ExpandoInput.js.map +1 -0
- package/esm/icon-button/Icon.css.js +4 -0
- package/esm/icon-button/Icon.css.js.map +1 -0
- package/esm/icon-button/Icon.js +35 -0
- package/esm/icon-button/Icon.js.map +1 -0
- package/esm/icon-button/IconButton.css.js +4 -0
- package/esm/icon-button/IconButton.css.js.map +1 -0
- package/esm/icon-button/IconButton.js +24 -0
- package/esm/icon-button/IconButton.js.map +1 -0
- package/esm/index.js +73 -0
- package/esm/index.js.map +1 -0
- package/esm/inputs/Checkbox.css.js +4 -0
- package/esm/inputs/Checkbox.css.js.map +1 -0
- package/esm/inputs/Checkbox.js +30 -0
- package/esm/inputs/Checkbox.js.map +1 -0
- package/esm/inputs/RadioButton.css.js +4 -0
- package/esm/inputs/RadioButton.css.js.map +1 -0
- package/esm/inputs/RadioButton.js +37 -0
- package/esm/inputs/RadioButton.js.map +1 -0
- package/esm/instrument-picker/InstrumentPicker.css.js +4 -0
- package/esm/instrument-picker/InstrumentPicker.css.js.map +1 -0
- package/esm/instrument-picker/InstrumentPicker.js +111 -0
- package/esm/instrument-picker/InstrumentPicker.js.map +1 -0
- package/esm/instrument-picker/SearchCell.css.js +4 -0
- package/esm/instrument-picker/SearchCell.css.js.map +1 -0
- package/esm/instrument-picker/SearchCell.js +31 -0
- package/esm/instrument-picker/SearchCell.js.map +1 -0
- package/esm/instrument-picker/useInstrumentPicker.js +85 -0
- package/esm/instrument-picker/useInstrumentPicker.js.map +1 -0
- package/esm/instrument-search/InstrumentSearch.css.js +4 -0
- package/esm/instrument-search/InstrumentSearch.css.js.map +1 -0
- package/esm/instrument-search/InstrumentSearch.js +94 -0
- package/esm/instrument-search/InstrumentSearch.js.map +1 -0
- package/esm/instrument-search/SearchCell.css.js +4 -0
- package/esm/instrument-search/SearchCell.css.js.map +1 -0
- package/esm/instrument-search/SearchCell.js +31 -0
- package/esm/instrument-search/SearchCell.js.map +1 -0
- package/esm/instrument-search/useInstrumentSearch.js +37 -0
- package/esm/instrument-search/useInstrumentSearch.js.map +1 -0
- package/esm/list/CheckboxIcon.css.js +4 -0
- package/esm/list/CheckboxIcon.css.js.map +1 -0
- package/esm/list/CheckboxIcon.js +31 -0
- package/esm/list/CheckboxIcon.js.map +1 -0
- package/esm/list/ChevronIcon.css.js +4 -0
- package/esm/list/ChevronIcon.css.js.map +1 -0
- package/esm/list/ChevronIcon.js +20 -0
- package/esm/list/ChevronIcon.js.map +1 -0
- package/esm/list/Highlighter.css.js +4 -0
- package/esm/list/Highlighter.css.js.map +1 -0
- package/esm/list/Highlighter.js +34 -0
- package/esm/list/Highlighter.js.map +1 -0
- package/esm/list/List.css.js +4 -0
- package/esm/list/List.css.js.map +1 -0
- package/esm/list/List.js +315 -0
- package/esm/list/List.js.map +1 -0
- package/esm/list/ListItem.css.js +4 -0
- package/esm/list/ListItem.css.js.map +1 -0
- package/esm/list/ListItem.js +81 -0
- package/esm/list/ListItem.js.map +1 -0
- package/esm/list/ListItemGroup.js +4 -0
- package/esm/list/ListItemGroup.js.map +1 -0
- package/esm/list/ListItemHeader.js +4 -0
- package/esm/list/ListItemHeader.js.map +1 -0
- package/esm/list/RadioIcon.css.js +4 -0
- package/esm/list/RadioIcon.css.js.map +1 -0
- package/esm/list/RadioIcon.js +25 -0
- package/esm/list/RadioIcon.js.map +1 -0
- package/esm/list/common-hooks/keyUtils.js +64 -0
- package/esm/list/common-hooks/keyUtils.js.map +1 -0
- package/esm/list/common-hooks/list-dom-utils.js +19 -0
- package/esm/list/common-hooks/list-dom-utils.js.map +1 -0
- package/esm/list/common-hooks/useCollapsibleGroups.js +80 -0
- package/esm/list/common-hooks/useCollapsibleGroups.js.map +1 -0
- package/esm/list/common-hooks/useImperativeScrollingAPI.js +50 -0
- package/esm/list/common-hooks/useImperativeScrollingAPI.js.map +1 -0
- package/esm/list/common-hooks/useKeyboardNavigation.js +286 -0
- package/esm/list/common-hooks/useKeyboardNavigation.js.map +1 -0
- package/esm/list/common-hooks/useTypeahead.js +72 -0
- package/esm/list/common-hooks/useTypeahead.js.map +1 -0
- package/esm/list/common-hooks/useViewportTracking.js +131 -0
- package/esm/list/common-hooks/useViewportTracking.js.map +1 -0
- package/esm/list/common-hooks/utils/collection-item-utils.js +167 -0
- package/esm/list/common-hooks/utils/collection-item-utils.js.map +1 -0
- package/esm/list/common-hooks/utils/filter-utils.js +8 -0
- package/esm/list/common-hooks/utils/filter-utils.js.map +1 -0
- package/esm/list/common-hooks/utils/isSelected.js +7 -0
- package/esm/list/common-hooks/utils/isSelected.js.map +1 -0
- package/esm/list/useList.js +276 -0
- package/esm/list/useList.js.map +1 -0
- package/esm/list/useListDrop.js +90 -0
- package/esm/list/useListDrop.js.map +1 -0
- package/esm/list/useListHeight.js +75 -0
- package/esm/list/useListHeight.js.map +1 -0
- package/esm/list/useScrollPosition.js +72 -0
- package/esm/list/useScrollPosition.js.map +1 -0
- package/esm/measured-container/MeasuredContainer.css.js +4 -0
- package/esm/measured-container/MeasuredContainer.css.js.map +1 -0
- package/esm/measured-container/MeasuredContainer.js +67 -0
- package/esm/measured-container/MeasuredContainer.js.map +1 -0
- package/esm/measured-container/useMeasuredContainer.js +125 -0
- package/esm/measured-container/useMeasuredContainer.js.map +1 -0
- package/esm/measured-container/useResizeObserver.js +128 -0
- package/esm/measured-container/useResizeObserver.js.map +1 -0
- package/esm/overflow-container/OverflowContainer.css.js +4 -0
- package/esm/overflow-container/OverflowContainer.css.js.map +1 -0
- package/esm/overflow-container/OverflowContainer.js +140 -0
- package/esm/overflow-container/OverflowContainer.js.map +1 -0
- package/esm/overflow-container/overflow-utils.js +272 -0
- package/esm/overflow-container/overflow-utils.js.map +1 -0
- package/esm/overflow-container/useOverflowContainer.js +141 -0
- package/esm/overflow-container/useOverflowContainer.js.map +1 -0
- package/esm/price-ticker/PriceTicker.css.js +4 -0
- package/esm/price-ticker/PriceTicker.css.js.map +1 -0
- package/esm/price-ticker/PriceTicker.js +48 -0
- package/esm/price-ticker/PriceTicker.js.map +1 -0
- package/esm/split-button/SplitButton.css.js +4 -0
- package/esm/split-button/SplitButton.css.js.map +1 -0
- package/esm/split-button/SplitButton.js +79 -0
- package/esm/split-button/SplitButton.js.map +1 -0
- package/esm/split-button/SplitStateButton.css.js +4 -0
- package/esm/split-button/SplitStateButton.css.js.map +1 -0
- package/esm/split-button/SplitStateButton.js +29 -0
- package/esm/split-button/SplitStateButton.js.map +1 -0
- package/esm/split-button/useSplitButton.js +82 -0
- package/esm/split-button/useSplitButton.js.map +1 -0
- package/esm/tabstrip/Tab.css.js +4 -0
- package/esm/tabstrip/Tab.css.js.map +1 -0
- package/esm/tabstrip/Tab.js +149 -0
- package/esm/tabstrip/Tab.js.map +1 -0
- package/esm/tabstrip/TabMenu.css.js +4 -0
- package/esm/tabstrip/TabMenu.css.js.map +1 -0
- package/esm/tabstrip/TabMenu.js +70 -0
- package/esm/tabstrip/TabMenu.js.map +1 -0
- package/esm/tabstrip/TabMenuOptions.js +16 -0
- package/esm/tabstrip/TabMenuOptions.js.map +1 -0
- package/esm/tabstrip/Tabstrip.css.js +4 -0
- package/esm/tabstrip/Tabstrip.css.js.map +1 -0
- package/esm/tabstrip/Tabstrip.js +154 -0
- package/esm/tabstrip/Tabstrip.js.map +1 -0
- package/esm/tabstrip/tabstrip-dom-utils.js +16 -0
- package/esm/tabstrip/tabstrip-dom-utils.js.map +1 -0
- package/esm/tabstrip/useAnimatedSelectionThumb.js +83 -0
- package/esm/tabstrip/useAnimatedSelectionThumb.js.map +1 -0
- package/esm/tabstrip/useKeyboardNavigation.js +241 -0
- package/esm/tabstrip/useKeyboardNavigation.js.map +1 -0
- package/esm/tabstrip/useSelection.js +58 -0
- package/esm/tabstrip/useSelection.js.map +1 -0
- package/esm/tabstrip/useTabstrip.js +259 -0
- package/esm/tabstrip/useTabstrip.js.map +1 -0
- package/esm/toolbar/Toolbar.css.js +4 -0
- package/esm/toolbar/Toolbar.css.js.map +1 -0
- package/esm/toolbar/Toolbar.js +88 -0
- package/esm/toolbar/Toolbar.js.map +1 -0
- package/esm/toolbar/toolbar-dom-utils.js +15 -0
- package/esm/toolbar/toolbar-dom-utils.js.map +1 -0
- package/esm/toolbar/useKeyboardNavigation.js +303 -0
- package/esm/toolbar/useKeyboardNavigation.js.map +1 -0
- package/esm/toolbar/useSelection.js +92 -0
- package/esm/toolbar/useSelection.js.map +1 -0
- package/esm/toolbar/useToolbar.js +98 -0
- package/esm/toolbar/useToolbar.js.map +1 -0
- package/esm/tree/Tree.css.js +4 -0
- package/esm/tree/Tree.css.js.map +1 -0
- package/esm/tree/Tree.js +176 -0
- package/esm/tree/Tree.js.map +1 -0
- package/esm/tree/hierarchical-data-utils.js +65 -0
- package/esm/tree/hierarchical-data-utils.js.map +1 -0
- package/esm/tree/key-code.js +54 -0
- package/esm/tree/key-code.js.map +1 -0
- package/esm/tree/list-dom-utils.js +15 -0
- package/esm/tree/list-dom-utils.js.map +1 -0
- package/esm/tree/treeTypeUtils.js +4 -0
- package/esm/tree/treeTypeUtils.js.map +1 -0
- package/esm/tree/use-collapsible-groups.js +83 -0
- package/esm/tree/use-collapsible-groups.js.map +1 -0
- package/esm/tree/use-hierarchical-data.js +49 -0
- package/esm/tree/use-hierarchical-data.js.map +1 -0
- package/esm/tree/use-items-with-ids.js +98 -0
- package/esm/tree/use-items-with-ids.js.map +1 -0
- package/esm/tree/use-keyboard-navigation.js +142 -0
- package/esm/tree/use-keyboard-navigation.js.map +1 -0
- package/esm/tree/use-selection.js +147 -0
- package/esm/tree/use-selection.js.map +1 -0
- package/esm/tree/use-tree-keyboard-navigation.js +39 -0
- package/esm/tree/use-tree-keyboard-navigation.js.map +1 -0
- package/esm/tree/use-viewport-tracking.js +74 -0
- package/esm/tree/use-viewport-tracking.js.map +1 -0
- package/esm/tree/useTree.js +104 -0
- package/esm/tree/useTree.js.map +1 -0
- package/esm/utils/escapeRegExp.js +7 -0
- package/esm/utils/escapeRegExp.js.map +1 -0
- package/esm/utils/forwardCallbackProps.js +20 -0
- package/esm/utils/forwardCallbackProps.js.map +1 -0
- package/esm/utils/isOverflowElement.js +6 -0
- package/esm/utils/isOverflowElement.js.map +1 -0
- package/esm/vuu-input/VuuInput.css.js +4 -0
- package/esm/vuu-input/VuuInput.css.js.map +1 -0
- package/esm/vuu-input/VuuInput.js +103 -0
- package/esm/vuu-input/VuuInput.js.map +1 -0
- package/package.json +45 -0
- package/types/calendar/Calendar.d.ts +12 -0
- package/types/calendar/index.d.ts +4 -0
- package/types/calendar/internal/CalendarCarousel.d.ts +4 -0
- package/types/calendar/internal/CalendarContext.d.ts +9 -0
- package/types/calendar/internal/CalendarDay.d.ts +14 -0
- package/types/calendar/internal/CalendarMonth.d.ts +11 -0
- package/types/calendar/internal/CalendarNavigation.d.ts +20 -0
- package/types/calendar/internal/CalendarWeekHeader.d.ts +5 -0
- package/types/calendar/internal/useFocusManagement.d.ts +9 -0
- package/types/calendar/internal/utils.d.ts +14 -0
- package/types/calendar/useCalendar.d.ts +57 -0
- package/types/calendar/useCalendarDay.d.ts +19 -0
- package/types/calendar/useSelection.d.ts +75 -0
- package/types/combo-box/ComboBox.d.ts +24 -0
- package/types/combo-box/index.d.ts +1 -0
- package/types/combo-box/useCombobox.d.ts +20 -0
- package/types/common-hooks/collectionProvider.d.ts +13 -0
- package/types/common-hooks/collectionTypes.d.ts +58 -0
- package/types/common-hooks/index.d.ts +9 -0
- package/types/common-hooks/isPlainObject.d.ts +1 -0
- package/types/common-hooks/itemToString.d.ts +2 -0
- package/types/common-hooks/navigationTypes.d.ts +36 -0
- package/types/common-hooks/selectionTypes.d.ts +70 -0
- package/types/common-hooks/use-resize-observer.d.ts +16 -0
- package/types/common-hooks/useCollectionItems.d.ts +2 -0
- package/types/common-hooks/useControlled.d.ts +24 -0
- package/types/common-hooks/useSelection.d.ts +8 -0
- package/types/common-hooks/useStateRef.d.ts +2 -0
- package/types/cycle-state-button/CycleStateButton.d.ts +12 -0
- package/types/cycle-state-button/index.d.ts +1 -0
- package/types/date-input/DateInput.d.ts +12 -0
- package/types/date-input/DateRangeInput.d.ts +11 -0
- package/types/date-input/index.d.ts +2 -0
- package/types/date-input/types.d.ts +16 -0
- package/types/date-input/useBaseDatePickerDropdown.d.ts +15 -0
- package/types/date-input/useDatePicker.d.ts +7 -0
- package/types/date-popup/DatePopup.d.ts +12 -0
- package/types/date-popup/index.d.ts +1 -0
- package/types/date-popup/useDatePopup.d.ts +20 -0
- package/types/drag-drop/DragDropProvider.d.ts +38 -0
- package/types/drag-drop/DragDropState.d.ts +15 -0
- package/types/drag-drop/Draggable.d.ts +13 -0
- package/types/drag-drop/DropIndicator.d.ts +6 -0
- package/types/drag-drop/dragDropTypes.d.ts +100 -0
- package/types/drag-drop/drop-target-utils.d.ts +78 -0
- package/types/drag-drop/index.d.ts +6 -0
- package/types/drag-drop/useAutoScroll.d.ts +11 -0
- package/types/drag-drop/useDragDisplacers.d.ts +17 -0
- package/types/drag-drop/useDragDrop.d.ts +2 -0
- package/types/drag-drop/useDragDropCopy.d.ts +6 -0
- package/types/drag-drop/useDragDropIndicator.d.ts +2 -0
- package/types/drag-drop/useDragDropNaturalMovement.d.ts +2 -0
- package/types/drag-drop/useDropIndicator.d.ts +8 -0
- package/types/drag-drop/useGlobalDragDrop.d.ts +12 -0
- package/types/drag-drop/useTransition.d.ts +3 -0
- package/types/dropdown/Dropdown.d.ts +10 -0
- package/types/dropdown/DropdownBase.d.ts +9 -0
- package/types/dropdown/DropdownButton.d.ts +41 -0
- package/types/dropdown/dropdownTypes.d.ts +51 -0
- package/types/dropdown/index.d.ts +5 -0
- package/types/dropdown/useClickAway.d.ts +10 -0
- package/types/dropdown/useDropdown.d.ts +13 -0
- package/types/dropdown/useDropdownBase.d.ts +2 -0
- package/types/editable/editable-utils.d.ts +2 -0
- package/types/editable/index.d.ts +2 -0
- package/types/editable/useEditableText.d.ts +19 -0
- package/types/editable-label/EditableLabel.d.ts +19 -0
- package/types/editable-label/index.d.ts +1 -0
- package/types/expando-input/ExpandoInput.d.ts +6 -0
- package/types/expando-input/index.d.ts +1 -0
- package/types/icon-button/Icon.d.ts +6 -0
- package/types/icon-button/IconButton.d.ts +7 -0
- package/types/icon-button/index.d.ts +2 -0
- package/types/index.d.ts +27 -0
- package/types/inputs/Checkbox.d.ts +9 -0
- package/types/inputs/RadioButton.d.ts +9 -0
- package/types/inputs/index.d.ts +2 -0
- package/types/instrument-picker/InstrumentPicker.d.ts +24 -0
- package/types/instrument-picker/SearchCell.d.ts +3 -0
- package/types/instrument-picker/index.d.ts +1 -0
- package/types/instrument-picker/moving-window.d.ts +14 -0
- package/types/instrument-picker/useDataSource.d.ts +6 -0
- package/types/instrument-picker/useInstrumentPicker.d.ts +28 -0
- package/types/instrument-search/InstrumentSearch.d.ts +11 -0
- package/types/instrument-search/SearchCell.d.ts +3 -0
- package/types/instrument-search/index.d.ts +1 -0
- package/types/instrument-search/moving-window.d.ts +14 -0
- package/types/instrument-search/useDataSource.d.ts +6 -0
- package/types/instrument-search/useInstrumentSearch.d.ts +13 -0
- package/types/list/CheckboxIcon.d.ts +6 -0
- package/types/list/ChevronIcon.d.ts +7 -0
- package/types/list/Highlighter.d.ts +6 -0
- package/types/list/List.d.ts +6 -0
- package/types/list/ListItem.d.ts +6 -0
- package/types/list/ListItemGroup.d.ts +6 -0
- package/types/list/ListItemHeader.d.ts +5 -0
- package/types/list/RadioIcon.d.ts +5 -0
- package/types/list/common-hooks/index.d.ts +10 -0
- package/types/list/common-hooks/keyUtils.d.ts +14 -0
- package/types/list/common-hooks/list-dom-utils.d.ts +5 -0
- package/types/list/common-hooks/useCollapsibleGroups.d.ts +14 -0
- package/types/list/common-hooks/useImperativeScrollingAPI.d.ts +14 -0
- package/types/list/common-hooks/useKeyboardNavigation.d.ts +3 -0
- package/types/list/common-hooks/useTypeahead.d.ts +15 -0
- package/types/list/common-hooks/useViewportTracking.d.ts +14 -0
- package/types/list/common-hooks/utils/collection-item-utils.d.ts +21 -0
- package/types/list/common-hooks/utils/filter-utils.d.ts +4 -0
- package/types/list/common-hooks/utils/index.d.ts +4 -0
- package/types/list/common-hooks/utils/isSelected.d.ts +2 -0
- package/types/list/index.d.ts +10 -0
- package/types/list/keyset.d.ts +9 -0
- package/types/list/listTypes.d.ts +200 -0
- package/types/list/useList.d.ts +3 -0
- package/types/list/useListDrop.d.ts +15 -0
- package/types/list/useListHeight.d.ts +19 -0
- package/types/list/useScrollPosition.d.ts +19 -0
- package/types/measured-container/MeasuredContainer.d.ts +14 -0
- package/types/measured-container/index.d.ts +2 -0
- package/types/measured-container/useMeasuredContainer.d.ts +22 -0
- package/types/measured-container/useResizeObserver.d.ts +15 -0
- package/types/overflow-container/OverflowContainer.d.ts +15 -0
- package/types/overflow-container/index.d.ts +2 -0
- package/types/overflow-container/overflow-utils.d.ts +48 -0
- package/types/overflow-container/useOverflowContainer.d.ts +20 -0
- package/types/price-ticker/PriceTicker.d.ts +7 -0
- package/types/price-ticker/index.d.ts +1 -0
- package/types/split-button/SplitButton.d.ts +11 -0
- package/types/split-button/SplitStateButton.d.ts +6 -0
- package/types/split-button/index.d.ts +2 -0
- package/types/split-button/useSplitButton.d.ts +288 -0
- package/types/tabstrip/Tab.d.ts +26 -0
- package/types/tabstrip/TabMenu.d.ts +19 -0
- package/types/tabstrip/TabMenuOptions.d.ts +10 -0
- package/types/tabstrip/TabsTypes.d.ts +127 -0
- package/types/tabstrip/Tabstrip.d.ts +3 -0
- package/types/tabstrip/index.d.ts +4 -0
- package/types/tabstrip/tabstrip-dom-utils.d.ts +2 -0
- package/types/tabstrip/useAnimatedSelectionThumb.d.ts +7 -0
- package/types/tabstrip/useKeyboardNavigation.d.ts +29 -0
- package/types/tabstrip/useSelection.d.ts +13 -0
- package/types/tabstrip/useTabstrip.d.ts +49 -0
- package/types/toolbar/Toolbar.d.ts +20 -0
- package/types/toolbar/index.d.ts +1 -0
- package/types/toolbar/toolbar-dom-utils.d.ts +3 -0
- package/types/toolbar/useKeyboardNavigation.d.ts +32 -0
- package/types/toolbar/useSelection.d.ts +22 -0
- package/types/toolbar/useToolbar.d.ts +28 -0
- package/types/tree/Tree.d.ts +19 -0
- package/types/tree/hierarchical-data-utils.d.ts +8 -0
- package/types/tree/index.d.ts +4 -0
- package/types/tree/key-code.d.ts +11 -0
- package/types/tree/list-dom-utils.d.ts +6 -0
- package/types/tree/treeTypeUtils.d.ts +2 -0
- package/types/tree/treeTypes.d.ts +17 -0
- package/types/tree/use-collapsible-groups.d.ts +18 -0
- package/types/tree/use-hierarchical-data.d.ts +6 -0
- package/types/tree/use-items-with-ids.d.ts +8 -0
- package/types/tree/use-keyboard-navigation.d.ts +26 -0
- package/types/tree/use-selection.d.ts +31 -0
- package/types/tree/use-tree-keyboard-navigation.d.ts +12 -0
- package/types/tree/use-viewport-tracking.d.ts +2 -0
- package/types/tree/useTree.d.ts +30 -0
- package/types/utils/escapeRegExp.d.ts +1 -0
- package/types/utils/forwardCallbackProps.d.ts +3 -0
- package/types/utils/index.d.ts +3 -0
- package/types/utils/isOverflowElement.d.ts +1 -0
- package/types/vuu-input/VuuInput.d.ts +16 -0
- package/types/vuu-input/index.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ComboBox";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InputProps } from "@salt-ds/core";
|
|
2
|
+
import { RefCallback } from "react";
|
|
3
|
+
import { ComponentSelectionProps, MultiSelectionStrategy, SelectionStrategy } from "../common-hooks";
|
|
4
|
+
import { DropdownHookProps, DropdownHookResult, OpenChangeHandler } from "../dropdown";
|
|
5
|
+
import { ListHookProps, ListHookResult } from "../list";
|
|
6
|
+
import { ComboBoxProps } from "./ComboBox";
|
|
7
|
+
export interface ComboboxHookProps<Item = string, S extends SelectionStrategy = "default"> extends Partial<Omit<DropdownHookProps, "id" | "onKeyDown">>, Pick<InputProps, "onBlur" | "onChange" | "onFocus" | "onSelect">, Pick<ComboBoxProps<Item>, "allowBackspaceClearsSelection" | "allowEnterCommitsText" | "allowFreeText" | "defaultValue" | "initialHighlightedIndex" | "itemsToString" | "onDeselect" | "onSetSelectedText" | "onListItemSelect" | "value">, Omit<ComponentSelectionProps<Item, S>, "onSelect">, Omit<ListHookProps<Item, S>, "containerRef" | "defaultSelected" | "onSelect" | "selected"> {
|
|
8
|
+
InputProps?: InputProps;
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
id: string;
|
|
11
|
+
itemCount: number;
|
|
12
|
+
itemToString?: (item: Item) => string;
|
|
13
|
+
}
|
|
14
|
+
export interface ComboboxHookResult<Item, S extends SelectionStrategy> extends Pick<ListHookResult<Item>, "focusVisible" | "highlightedIndex" | "listControlProps" | "listHandlers">, Partial<DropdownHookResult> {
|
|
15
|
+
InputProps: InputProps;
|
|
16
|
+
onOpenChange: OpenChangeHandler;
|
|
17
|
+
selected?: S extends MultiSelectionStrategy ? Item[] : Item | null;
|
|
18
|
+
setContainerRef: RefCallback<HTMLDivElement>;
|
|
19
|
+
}
|
|
20
|
+
export declare const useCombobox: <Item, S extends SelectionStrategy>({ allowBackspaceClearsSelection, allowEnterCommitsText, allowFreeText, ariaLabel, collectionHook, defaultIsOpen, defaultSelected, defaultValue, onBlur, onFocus, onChange, onDeselect, onSelect, id, initialHighlightedIndex, isOpen: isOpenProp, itemCount, itemsToString, itemToString, onListItemSelect, onOpenChange, onSelectionChange, onSetSelectedText, selected: selectedProp, selectionKeys, selectionStrategy, value: valueProp, InputProps, }: ComboboxHookProps<Item, S>) => ComboboxHookResult<Item, S>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { CollectionHookResult } from "./collectionTypes";
|
|
3
|
+
export interface collectionContext<T> {
|
|
4
|
+
collection: CollectionHookResult<T>;
|
|
5
|
+
}
|
|
6
|
+
export declare const CollectionContext: import("react").Context<CollectionHookResult<any> | undefined>;
|
|
7
|
+
interface ContextProviderProps<Item> {
|
|
8
|
+
children: ReactElement;
|
|
9
|
+
collectionHook: CollectionHookResult<Item>;
|
|
10
|
+
}
|
|
11
|
+
export declare function CollectionProvider<Item>({ children, collectionHook, ...props }: ContextProviderProps<Item>): JSX.Element;
|
|
12
|
+
export declare function useCollection<Item>(): CollectionHookResult<Item> | undefined;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface CollectionIndexer {
|
|
3
|
+
value: number;
|
|
4
|
+
}
|
|
5
|
+
export interface CollectionItemBase<T> {
|
|
6
|
+
id: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
focusable?: false | undefined;
|
|
10
|
+
index?: number;
|
|
11
|
+
label?: string;
|
|
12
|
+
value: T | null;
|
|
13
|
+
}
|
|
14
|
+
export interface CollectionItem<T> extends CollectionItemBase<T> {
|
|
15
|
+
childNodes?: CollectionItem<T>[];
|
|
16
|
+
count?: number;
|
|
17
|
+
expanded?: boolean;
|
|
18
|
+
header?: boolean;
|
|
19
|
+
level?: number;
|
|
20
|
+
selectable?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface SourceGroup<T> {
|
|
23
|
+
childNodes: T[];
|
|
24
|
+
}
|
|
25
|
+
export type CollectionOptions<T> = {
|
|
26
|
+
collapsibleHeaders?: boolean;
|
|
27
|
+
defaultExpanded?: boolean;
|
|
28
|
+
disableFilter?: boolean;
|
|
29
|
+
filterPattern?: string;
|
|
30
|
+
getFilterRegex?: (inputValue: string) => RegExp;
|
|
31
|
+
getItemId?: (indexOfItem: number) => string;
|
|
32
|
+
noChildrenLabel?: string;
|
|
33
|
+
itemToString?: (item: T) => string;
|
|
34
|
+
revealSelected?: boolean | T | T[];
|
|
35
|
+
};
|
|
36
|
+
export type CollectionHookProps<T> = {
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
id: string;
|
|
39
|
+
label?: string;
|
|
40
|
+
source?: ReadonlyArray<T>;
|
|
41
|
+
options?: CollectionOptions<T>;
|
|
42
|
+
};
|
|
43
|
+
export type CollectionHookResult<T> = {
|
|
44
|
+
/** set expanded to false for target */
|
|
45
|
+
collapseGroupItem: (item: CollectionItem<T>) => void;
|
|
46
|
+
/** data items from the collection to be rendered */
|
|
47
|
+
data: CollectionItem<T>[];
|
|
48
|
+
/** set expanded to true for target */
|
|
49
|
+
expandGroupItem: (item: CollectionItem<T>) => void;
|
|
50
|
+
setFilterPattern: (pattern: undefined | string) => void;
|
|
51
|
+
indexOfItemById: (id: string) => number;
|
|
52
|
+
itemById: (id: string) => T | never;
|
|
53
|
+
itemToCollectionItem: (item: T) => CollectionItem<T> | CollectionItem<T>[] | null | undefined;
|
|
54
|
+
itemToCollectionItemId: (item?: T | T[]) => string[] | undefined;
|
|
55
|
+
stringToCollectionItem: (item: string | null | undefined) => CollectionItem<T> | null | CollectionItem<T>[] | undefined;
|
|
56
|
+
toCollectionItem: (item: T) => CollectionItem<T>;
|
|
57
|
+
itemToId: (item: T) => string;
|
|
58
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./collectionProvider";
|
|
2
|
+
export * from "./collectionTypes";
|
|
3
|
+
export * from "./itemToString";
|
|
4
|
+
export * from "./useCollectionItems";
|
|
5
|
+
export * from "./useControlled";
|
|
6
|
+
export * from "./use-resize-observer";
|
|
7
|
+
export * from "./navigationTypes";
|
|
8
|
+
export * from "./selectionTypes";
|
|
9
|
+
export * from "./useStateRef";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isPlainObject: (obj: unknown) => boolean;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FocusEvent, KeyboardEvent, RefObject } from "react";
|
|
2
|
+
export interface NavigationProps {
|
|
3
|
+
cycleFocus?: boolean;
|
|
4
|
+
defaultHighlightedIndex?: number;
|
|
5
|
+
disableHighlightOnFocus?: boolean;
|
|
6
|
+
focusOnHighlight?: boolean;
|
|
7
|
+
focusVisible?: number;
|
|
8
|
+
highlightedIndex?: number;
|
|
9
|
+
itemCount: number;
|
|
10
|
+
onHighlight?: (idx: number) => void;
|
|
11
|
+
onKeyboardNavigation?: (evt: KeyboardEvent, idx: number) => void;
|
|
12
|
+
restoreLastFocus?: boolean;
|
|
13
|
+
viewportItemCount: number;
|
|
14
|
+
}
|
|
15
|
+
export interface NavigationHookProps extends NavigationProps {
|
|
16
|
+
containerRef: RefObject<HTMLElement>;
|
|
17
|
+
label?: string;
|
|
18
|
+
selected?: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface KeyboardHookContainerProps {
|
|
21
|
+
onBlur: (evt: FocusEvent) => void;
|
|
22
|
+
onFocus: (evt: FocusEvent) => void;
|
|
23
|
+
onKeyDown: (evt: KeyboardEvent) => void;
|
|
24
|
+
onMouseDownCapture: () => void;
|
|
25
|
+
onMouseMove: () => void;
|
|
26
|
+
onMouseLeave: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface NavigationHookResult {
|
|
29
|
+
focusVisible: number;
|
|
30
|
+
controlledHighlighting: boolean;
|
|
31
|
+
highlightedIndex: number;
|
|
32
|
+
setHighlightedIndex: (idx: number) => void;
|
|
33
|
+
keyboardNavigation: RefObject<boolean>;
|
|
34
|
+
containerProps: KeyboardHookContainerProps;
|
|
35
|
+
setIgnoreFocus: (ignoreFocus: boolean) => void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { MouseEventHandler, RefObject, SyntheticEvent } from "react";
|
|
2
|
+
export type SelectionDisallowed = "none";
|
|
3
|
+
export type SingleSelectionStrategy = "default" | "deselectable";
|
|
4
|
+
export type MultiSelectionStrategy = "multiple" | "extended" | "extended-multi-range";
|
|
5
|
+
/**
|
|
6
|
+
* SpecialKeyMultiple works as deselectable unless a special key
|
|
7
|
+
* (default SHIFT) is also pressed, then it allows multiple selection.
|
|
8
|
+
* Useful for column sorting, filters etc
|
|
9
|
+
*/
|
|
10
|
+
export type SpecialKeyMultipleSelection = "multiple-special-key";
|
|
11
|
+
export type SelectionStrategy = SelectionDisallowed | SingleSelectionStrategy | MultiSelectionStrategy;
|
|
12
|
+
export declare const isSingleSelection: (s?: SelectionStrategy) => s is SingleSelectionStrategy;
|
|
13
|
+
export declare const isMultiSelection: (s?: SelectionStrategy) => s is MultiSelectionStrategy;
|
|
14
|
+
export type SelectHandler<Item = string> = (event: SyntheticEvent, selectedItem: Item) => void;
|
|
15
|
+
export declare const selectionIsDisallowed: (selection?: SelectionStrategy | SpecialKeyMultipleSelection) => selection is "none";
|
|
16
|
+
export declare const allowMultipleSelection: (selectionStrategy: SelectionStrategy | SpecialKeyMultipleSelection, specialKey?: boolean) => boolean;
|
|
17
|
+
export declare const deselectionIsAllowed: (selection?: SelectionStrategy | SpecialKeyMultipleSelection) => selection is "deselectable" | MultiSelectionStrategy;
|
|
18
|
+
export declare const hasSelection: <Item = unknown>(selected?: Item[] | undefined) => boolean;
|
|
19
|
+
export declare const getFirstSelectedItem: <Item = unknown>(selected: Item[]) => Item;
|
|
20
|
+
interface SelectionProps {
|
|
21
|
+
defaultSelected?: string[];
|
|
22
|
+
onSelect?: SelectHandler;
|
|
23
|
+
onSelectionChange?: MultiSelectionHandler;
|
|
24
|
+
selected?: string[];
|
|
25
|
+
selectionStrategy?: SelectionStrategy;
|
|
26
|
+
}
|
|
27
|
+
export interface ListHandlers {
|
|
28
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
29
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
30
|
+
onKeyboardNavigation?: (event: React.KeyboardEvent, currentIndex: number) => void;
|
|
31
|
+
onMouseMove?: (event: React.MouseEvent) => void;
|
|
32
|
+
}
|
|
33
|
+
export interface SelectionHookProps extends SelectionProps {
|
|
34
|
+
containerRef: RefObject<HTMLElement>;
|
|
35
|
+
disableSelection?: boolean;
|
|
36
|
+
highlightedIndex: number;
|
|
37
|
+
itemQuery: string;
|
|
38
|
+
label?: string;
|
|
39
|
+
onClick?: MouseEventHandler;
|
|
40
|
+
selectionKeys?: string[];
|
|
41
|
+
tabToSelect?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface SelectionHookResult {
|
|
44
|
+
listHandlers: ListHandlers;
|
|
45
|
+
selected: string[];
|
|
46
|
+
setSelected: (selected: string[]) => void;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* evt is only null in the special case of a selection fired from a multi-select
|
|
50
|
+
* host on tab or selection based on freeform text in combobox
|
|
51
|
+
*/
|
|
52
|
+
export type MultiSelectionHandler<Item = string> = (event: SyntheticEvent | null, selected: Item[]) => void;
|
|
53
|
+
/**
|
|
54
|
+
* evt is only null in the special case of freeform text in combobox
|
|
55
|
+
*/
|
|
56
|
+
export type SingleSelectionHandler<Item = string> = (event: SyntheticEvent | null, selected: Item) => void;
|
|
57
|
+
export type SelectionType<I, S extends SelectionStrategy> = S extends MultiSelectionStrategy ? I[] : I | null;
|
|
58
|
+
export interface ComponentSelectionProps<Item = string, S extends SelectionStrategy = "default"> {
|
|
59
|
+
defaultSelected?: S extends MultiSelectionStrategy ? Item[] : Item;
|
|
60
|
+
onSelect?: SelectHandler<Item>;
|
|
61
|
+
onSelectionChange?: S extends MultiSelectionStrategy ? MultiSelectionHandler<Item> : SingleSelectionHandler<Item>;
|
|
62
|
+
selected?: SelectionType<Item, S>;
|
|
63
|
+
selectionStrategy?: S;
|
|
64
|
+
/**
|
|
65
|
+
* The keyboard keys used to effect selection, defaults to SPACE and ENTER
|
|
66
|
+
* TODO maybe this belongs on the SelectionProps interface ?
|
|
67
|
+
*/
|
|
68
|
+
selectionKeys?: string[];
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
export declare const WidthHeight: string[];
|
|
3
|
+
export declare const WidthOnly: string[];
|
|
4
|
+
export declare const HeightOnly: string[];
|
|
5
|
+
export type measurements<T = string | number> = {
|
|
6
|
+
height?: T;
|
|
7
|
+
clientHeight?: number;
|
|
8
|
+
clientWidth?: number;
|
|
9
|
+
contentHeight?: number;
|
|
10
|
+
contentWidth?: number;
|
|
11
|
+
scrollHeight?: number;
|
|
12
|
+
scrollWidth?: number;
|
|
13
|
+
width?: T;
|
|
14
|
+
};
|
|
15
|
+
export type ResizeHandler = (measurements: measurements<number>) => void;
|
|
16
|
+
export declare function useResizeObserver(ref: RefObject<Element | HTMLElement | null>, dimensions: string[], onResize: ResizeHandler, reportInitialSize?: boolean): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
export interface UseControlledProps<T> {
|
|
3
|
+
/**
|
|
4
|
+
* Holds the component value when it's controlled.
|
|
5
|
+
*/
|
|
6
|
+
controlled?: T;
|
|
7
|
+
/**
|
|
8
|
+
* The default value when uncontrolled.
|
|
9
|
+
*/
|
|
10
|
+
default: T;
|
|
11
|
+
/**
|
|
12
|
+
* The component name displayed in warnings.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* The name of the state variable displayed in warnings.
|
|
17
|
+
*/
|
|
18
|
+
state?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Copied from MUI (v5) useControlled hook with one additional returned value
|
|
22
|
+
* @see https://github.com/mui-org/material-ui/blob/0979e6a54ba47c278d1f535953c0520a86349811/packages/material-ui-utils/src/useControlled.js
|
|
23
|
+
*/
|
|
24
|
+
export declare function useControlled<S>({ controlled, default: defaultProp, name, state, }: UseControlledProps<S>): [S, Dispatch<SetStateAction<S>>, boolean];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SelectionHookProps, SelectionHookResult } from "./selectionTypes";
|
|
2
|
+
export declare const CHECKBOX = "checkbox";
|
|
3
|
+
export declare const GROUP_SELECTION_NONE = "none";
|
|
4
|
+
export declare const GROUP_SELECTION_SINGLE = "single";
|
|
5
|
+
export declare const GROUP_SELECTION_CASCADE = "cascade";
|
|
6
|
+
export type GroupSelectionMode = "none" | "single" | "cascade";
|
|
7
|
+
export declare const groupSelectionEnabled: (groupSelection: GroupSelectionMode) => boolean;
|
|
8
|
+
export declare const useSelection: ({ containerRef, defaultSelected, disableSelection, highlightedIndex, itemQuery, onClick, onSelect, onSelectionChange, selected: selectedProp, selectionStrategy, selectionKeys, tabToSelect, }: SelectionHookProps) => SelectionHookResult;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ButtonProps } from "@salt-ds/core";
|
|
2
|
+
import type { CommitResponse } from "@vuu-ui/vuu-table-types";
|
|
3
|
+
import type { VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
4
|
+
import { SyntheticEvent } from "react";
|
|
5
|
+
export type CycleStateCommitHandler = (evt: SyntheticEvent, value: VuuRowDataItemType) => CommitResponse;
|
|
6
|
+
export interface CycleStateButtonProps extends Omit<ButtonProps, "onChange"> {
|
|
7
|
+
onChange?: (value: VuuRowDataItemType) => void;
|
|
8
|
+
onCommit?: CycleStateCommitHandler;
|
|
9
|
+
values: string[];
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const CycleStateButton: import("react").ForwardRefExoticComponent<CycleStateButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CycleStateButton";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DateValue } from "@internationalized/date";
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
import { CalendarProps } from "../calendar/Calendar";
|
|
4
|
+
export interface DateInputProps extends Pick<CalendarProps, "hideOutOfRangeDates" | "hideYearDropdown">, Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
5
|
+
inputProps?: Partial<HTMLAttributes<HTMLInputElement>>;
|
|
6
|
+
onChange: (selected: DateValue, source: "input" | "calendar") => void;
|
|
7
|
+
selectedDate: DateValue | undefined;
|
|
8
|
+
closeOnSelection?: boolean;
|
|
9
|
+
onBlur?: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const DateInput: ({ inputProps, selectedDate, onChange, onBlur, className, ...htmlAttributes }: DateInputProps) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
import { CalendarProps, RangeSelectionValueType } from "../calendar";
|
|
3
|
+
import "./DateInput.css";
|
|
4
|
+
export interface DateRangeInputProps extends Pick<CalendarProps, "hideOutOfRangeDates" | "hideYearDropdown">, Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
5
|
+
onChange: (selectedDateRange: RangeSelectionValueType) => void;
|
|
6
|
+
selectedDateRange: RangeSelectionValueType | undefined;
|
|
7
|
+
closeOnSelection?: boolean;
|
|
8
|
+
onBlur?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DateRangeInput: ({ selectedDateRange, onChange, className, onBlur, }: DateRangeInputProps) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DateValue } from "@internationalized/date";
|
|
2
|
+
import { CalendarProps } from "../calendar/Calendar";
|
|
3
|
+
import { RangeSelectionValueType } from "../calendar";
|
|
4
|
+
import { HTMLAttributes } from "react";
|
|
5
|
+
export type PickerSelectionType = DateValue | RangeSelectionValueType;
|
|
6
|
+
export interface BaseDatePickerProps<T = PickerSelectionType> extends Pick<CalendarProps, "hideOutOfRangeDates" | "hideYearDropdown">, HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
onSelectedDateChange: (selected: T) => void;
|
|
8
|
+
selectedDate: T | undefined;
|
|
9
|
+
closeOnSelection?: boolean;
|
|
10
|
+
onBlur?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface BaseDatePickerDropdownProps<T = PickerSelectionType> extends BaseDatePickerProps<T> {
|
|
14
|
+
visibleMonth: DateValue | undefined;
|
|
15
|
+
onVisibleMonthChange: (d: DateValue) => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DateValue } from "@internationalized/date";
|
|
3
|
+
import { PickerSelectionType } from "./types";
|
|
4
|
+
import { BaseDatePickerDropdownProps } from "./types";
|
|
5
|
+
type Props<T extends PickerSelectionType> = Pick<BaseDatePickerDropdownProps<T>, "onSelectedDateChange" | "onVisibleMonthChange"> & {
|
|
6
|
+
shouldCloseOnSelectionChange: (v: T) => boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function useBaseDatePickerDropdown<T extends PickerSelectionType>({ onVisibleMonthChange, onSelectedDateChange, shouldCloseOnSelectionChange, }: Props<T>): {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
handleOpenChange: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
11
|
+
triggererRef: import("react").RefObject<HTMLButtonElement>;
|
|
12
|
+
handleVisibleMonthChange: (_: React.SyntheticEvent, d: DateValue) => void;
|
|
13
|
+
handleDateSelection: (_: React.SyntheticEvent, d: T) => void;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DateValue } from "@internationalized/date";
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
import { CalendarProps } from "../calendar";
|
|
4
|
+
import { DropdownCloseHandler } from "../dropdown";
|
|
5
|
+
export interface DatePopupProps extends Pick<CalendarProps, "selectionVariant">, Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "onKeyDown"> {
|
|
6
|
+
"data-embedded"?: boolean;
|
|
7
|
+
selectedDate?: DateValue;
|
|
8
|
+
onPopupClose?: DropdownCloseHandler;
|
|
9
|
+
onPopupOpen?: () => void;
|
|
10
|
+
onChange: (date: DateValue) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const DatePopup: import("react").ForwardRefExoticComponent<DatePopupProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DatePopup";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OpenChangeHandler } from "../dropdown";
|
|
3
|
+
import { DateValue } from "@internationalized/date";
|
|
4
|
+
import { DatePopupProps } from "./DatePopup";
|
|
5
|
+
type WithRequired<T, K extends keyof T> = T & {
|
|
6
|
+
[P in K]-?: T[P];
|
|
7
|
+
};
|
|
8
|
+
export interface DatePopupHookProps extends Pick<DatePopupProps, "onPopupClose" | "onPopupOpen">, WithRequired<DatePopupProps, "onChange" | "selectedDate"> {
|
|
9
|
+
}
|
|
10
|
+
export declare const useDatePopup: ({ onChange, onPopupClose, onPopupOpen, selectedDate, }: DatePopupHookProps) => {
|
|
11
|
+
calendarRef: import("react").RefObject<HTMLDivElement>;
|
|
12
|
+
date: DateValue;
|
|
13
|
+
handleOpenChange: OpenChangeHandler;
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
onSelectedDateChange: (e: any, date: any) => void;
|
|
16
|
+
onVisibleMonthChange: (e: any, date: any) => void;
|
|
17
|
+
triggererRef: import("react").RefObject<HTMLButtonElement>;
|
|
18
|
+
visibleMonth: DateValue;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { DragDropState } from "./DragDropState";
|
|
3
|
+
import { GlobalDropHandler, ResumeDragHandler } from "./useGlobalDragDrop";
|
|
4
|
+
export type DragOutHandler = (id: string, dragDropState: DragDropState) => boolean;
|
|
5
|
+
export type DragDropRegistrationFn = (id: string, resumeDrag: ResumeDragHandler | false, onDrop?: GlobalDropHandler) => void;
|
|
6
|
+
export type EndOfDragOperationHandler = (id: string) => void;
|
|
7
|
+
export interface DragDropContextProps {
|
|
8
|
+
dragSources?: Map<string, string[]>;
|
|
9
|
+
dropTargets?: Map<string, string[]>;
|
|
10
|
+
onDragOut?: DragOutHandler;
|
|
11
|
+
onEndOfDragOperation?: EndOfDragOperationHandler;
|
|
12
|
+
registerDragDropParty: DragDropRegistrationFn;
|
|
13
|
+
}
|
|
14
|
+
export type DragSources = {
|
|
15
|
+
[key: string]: {
|
|
16
|
+
dropTargets: string | string[];
|
|
17
|
+
payloadType?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export interface DragDropProviderProps {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
dragSources: DragSources;
|
|
23
|
+
}
|
|
24
|
+
export type MeasuredTarget = {
|
|
25
|
+
bottom: number;
|
|
26
|
+
left: number;
|
|
27
|
+
right: number;
|
|
28
|
+
top: number;
|
|
29
|
+
};
|
|
30
|
+
export declare const DragDropProvider: ({ children, dragSources: dragSourcesProp, }: DragDropProviderProps) => JSX.Element;
|
|
31
|
+
export interface DragDropProviderResult {
|
|
32
|
+
isDragSource?: boolean;
|
|
33
|
+
isDropTarget?: boolean;
|
|
34
|
+
onDragOut?: DragOutHandler;
|
|
35
|
+
onEndOfDragOperation?: (id: string) => void;
|
|
36
|
+
register: DragDropRegistrationFn;
|
|
37
|
+
}
|
|
38
|
+
export declare const useDragDropProvider: (id?: string) => DragDropProviderResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MouseOffset, MousePosition } from "./dragDropTypes";
|
|
2
|
+
export declare class DragDropState {
|
|
3
|
+
/** Distance between start (top | left) of dragged element and point where user pressed to drag */
|
|
4
|
+
readonly mouseOffset: MouseOffset;
|
|
5
|
+
/** Element where the initial mousedown triggered the drag operation */
|
|
6
|
+
readonly initialDragElement: HTMLElement;
|
|
7
|
+
/** Element being dragged, (initial element cloned and rendered in portal). */
|
|
8
|
+
draggableElement: HTMLElement | null;
|
|
9
|
+
payload: unknown;
|
|
10
|
+
constructor(mousePosition: MousePosition, dragElement: HTMLElement);
|
|
11
|
+
/** Used to capture a ref to the Draggable JSX.Element */
|
|
12
|
+
setDraggable: (el: HTMLElement | null) => void;
|
|
13
|
+
setPayload(payload: unknown): void;
|
|
14
|
+
private getMouseOffset;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, MutableRefObject, TransitionEventHandler } from "react";
|
|
2
|
+
export interface DraggableProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
wrapperClassName: string;
|
|
4
|
+
element: HTMLElement;
|
|
5
|
+
onDropped?: () => void;
|
|
6
|
+
onTransitionEnd?: TransitionEventHandler;
|
|
7
|
+
scale?: number;
|
|
8
|
+
style: CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
export declare const Draggable: import("react").ForwardRefExoticComponent<DraggableProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const createDragSpacer: (transitioning?: MutableRefObject<boolean>) => HTMLElement;
|
|
12
|
+
export declare const createDropIndicatorPosition: () => HTMLElement;
|
|
13
|
+
export declare const createDropIndicator: (transitioning?: MutableRefObject<boolean>) => HTMLElement;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { MouseEventHandler, RefObject } from "react";
|
|
2
|
+
import { orientationType } from "@vuu-ui/vuu-utils";
|
|
3
|
+
import { DragDropState } from "./DragDropState";
|
|
4
|
+
export type ViewportRange = {
|
|
5
|
+
atEnd: boolean;
|
|
6
|
+
atStart: boolean;
|
|
7
|
+
from: number;
|
|
8
|
+
to: number;
|
|
9
|
+
};
|
|
10
|
+
type dimension = "width" | "height" | "scrollWidth" | "scrollHeight";
|
|
11
|
+
type dimensions = {
|
|
12
|
+
size: dimension;
|
|
13
|
+
depth: dimension;
|
|
14
|
+
scrollDepth: dimension;
|
|
15
|
+
};
|
|
16
|
+
export type dimensionsType = {
|
|
17
|
+
horizontal: dimensions;
|
|
18
|
+
vertical: dimensions;
|
|
19
|
+
};
|
|
20
|
+
export type dragStrategy = "drop-indicator" | "natural-movement" | "drag-copy" | "drop-only";
|
|
21
|
+
export type Direction = "fwd" | "bwd";
|
|
22
|
+
export declare const FWD: Direction;
|
|
23
|
+
export declare const BWD: Direction;
|
|
24
|
+
export interface MousePosition {
|
|
25
|
+
clientX: number;
|
|
26
|
+
clientY: number;
|
|
27
|
+
}
|
|
28
|
+
export interface MouseOffset {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
}
|
|
32
|
+
export type Rect = {
|
|
33
|
+
height: number;
|
|
34
|
+
left: number;
|
|
35
|
+
top: number;
|
|
36
|
+
width: number;
|
|
37
|
+
};
|
|
38
|
+
export interface DragHookResult {
|
|
39
|
+
draggable?: JSX.Element;
|
|
40
|
+
dropIndicator?: JSX.Element;
|
|
41
|
+
draggedItemIndex?: number;
|
|
42
|
+
isDragging: boolean;
|
|
43
|
+
isScrolling: RefObject<boolean>;
|
|
44
|
+
onMouseDown?: MouseEventHandler;
|
|
45
|
+
revealOverflowedItems?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface InternalDragHookResult extends Omit<DragHookResult, "isDragging" | "isScrolling"> {
|
|
48
|
+
beginDrag: (dragElement: HTMLElement) => void;
|
|
49
|
+
drag: (dragPos: number, mouseMoveDirection: "fwd" | "bwd") => void;
|
|
50
|
+
drop: () => DropOptions;
|
|
51
|
+
handleScrollStart?: (scrollDirection: "fwd" | "bwd") => void;
|
|
52
|
+
handleScrollStop?: (scrollDirection: "fwd" | "bwd", _scrollPos: number, atEnd: boolean) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Draggable item has been dragged out of container. Remove any local drop
|
|
55
|
+
* indicators. Dragged element itself should not yet be removed from DOM.
|
|
56
|
+
*/
|
|
57
|
+
releaseDrag?: () => void;
|
|
58
|
+
}
|
|
59
|
+
export interface DropOptions {
|
|
60
|
+
fromIndex: number;
|
|
61
|
+
toIndex: number;
|
|
62
|
+
isExternal?: boolean;
|
|
63
|
+
payload?: unknown;
|
|
64
|
+
}
|
|
65
|
+
export type DragStartHandler = (dragDropState: DragDropState) => void;
|
|
66
|
+
export type DropHandler = (options: DropOptions) => void;
|
|
67
|
+
export interface DragDropProps {
|
|
68
|
+
allowDragDrop?: boolean | dragStrategy;
|
|
69
|
+
containerRef: RefObject<HTMLElement>;
|
|
70
|
+
/** this is the className that will be assigned during drag to the dragged element */
|
|
71
|
+
draggableClassName: string;
|
|
72
|
+
extendedDropZone?: boolean;
|
|
73
|
+
getDragPayload?: (dragElement: HTMLElement) => unknown;
|
|
74
|
+
id?: string;
|
|
75
|
+
isDragSource?: boolean;
|
|
76
|
+
isDropTarget?: boolean;
|
|
77
|
+
itemQuery?: string;
|
|
78
|
+
onDragStart?: DragStartHandler;
|
|
79
|
+
onDrop: DropHandler;
|
|
80
|
+
onDropSettle?: (toIndex: number) => void;
|
|
81
|
+
orientation: orientationType;
|
|
82
|
+
/**
|
|
83
|
+
* The scrolling container does not necessarily have to be a
|
|
84
|
+
* descendant of the container, it may be an ancestor element;
|
|
85
|
+
*/
|
|
86
|
+
scrollingContainerRef?: RefObject<HTMLElement>;
|
|
87
|
+
viewportRange?: ViewportRange;
|
|
88
|
+
}
|
|
89
|
+
export type DragDropHook = (props: DragDropProps) => DragHookResult;
|
|
90
|
+
export interface InternalDragDropProps extends Omit<DragDropProps, "draggableClassName" | "id" | "onDrop"> {
|
|
91
|
+
isDragSource?: boolean;
|
|
92
|
+
isDropTarget?: boolean;
|
|
93
|
+
selected?: unknown;
|
|
94
|
+
}
|
|
95
|
+
export type DragDropContext = {
|
|
96
|
+
dragElement: HTMLElement;
|
|
97
|
+
dragPayload: unknown;
|
|
98
|
+
mouseOffset: MouseOffset;
|
|
99
|
+
};
|
|
100
|
+
export {};
|