@react-md/core 1.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +26 -0
- package/.swcrc +17 -0
- package/.turbo/turbo-build.log +18 -0
- package/CHANGELOG.md +7 -0
- package/LICENSE +22 -0
- package/README.md +26 -0
- package/coverage/clover.xml +1121 -0
- package/coverage/coverage-final.json +7 -0
- package/coverage/lcov-report/AppBar.tsx.html +784 -0
- package/coverage/lcov-report/AsyncButton.tsx.html +649 -0
- package/coverage/lcov-report/Badge.tsx.html +253 -0
- package/coverage/lcov-report/Collapse.tsx.html +340 -0
- package/coverage/lcov-report/CoreProviders.tsx.html +502 -0
- package/coverage/lcov-report/DefaultToastRenderer.tsx.html +472 -0
- package/coverage/lcov-report/ExpansionList.tsx.html +205 -0
- package/coverage/lcov-report/ExpansionPanel.tsx.html +934 -0
- package/coverage/lcov-report/ExpansionPanelHeader.tsx.html +622 -0
- package/coverage/lcov-report/FileInput.tsx.html +733 -0
- package/coverage/lcov-report/FontIcon.tsx.html +265 -0
- package/coverage/lcov-report/InputToggle.tsx.html +1117 -0
- package/coverage/lcov-report/InputToggleIcon.tsx.html +478 -0
- package/coverage/lcov-report/MaterialIcon.tsx.html +241 -0
- package/coverage/lcov-report/MaterialSymbol.tsx.html +403 -0
- package/coverage/lcov-report/NativeSelect.tsx.html +763 -0
- package/coverage/lcov-report/SVGIcon.tsx.html +445 -0
- package/coverage/lcov-report/SegmentedButton.tsx.html +628 -0
- package/coverage/lcov-report/SegmentedButtonContainer.tsx.html +277 -0
- package/coverage/lcov-report/Snackbar.tsx.html +652 -0
- package/coverage/lcov-report/Tab.tsx.html +508 -0
- package/coverage/lcov-report/TabList.tsx.html +757 -0
- package/coverage/lcov-report/TabListScrollButton.tsx.html +472 -0
- package/coverage/lcov-report/TextArea.tsx.html +940 -0
- package/coverage/lcov-report/TextField.tsx.html +829 -0
- package/coverage/lcov-report/TextFieldAddon.tsx.html +382 -0
- package/coverage/lcov-report/TextFieldContainer.tsx.html +364 -0
- package/coverage/lcov-report/ToastCloseButton.tsx.html +340 -0
- package/coverage/lcov-report/ToastManagerProvider.tsx.html +400 -0
- package/coverage/lcov-report/Tooltip.tsx.html +616 -0
- package/coverage/lcov-report/TooltipHoverModeProvider.tsx.html +253 -0
- package/coverage/lcov-report/Tree.tsx.html +1135 -0
- package/coverage/lcov-report/app-bar/AppBar.tsx.html +787 -0
- package/coverage/lcov-report/app-bar/AppBarTitle.tsx.html +451 -0
- package/coverage/lcov-report/app-bar/index.html +116 -0
- package/coverage/lcov-report/avatar/Avatar.tsx.html +466 -0
- package/coverage/lcov-report/avatar/index.html +116 -0
- package/coverage/lcov-report/badge/Badge.tsx.html +364 -0
- package/coverage/lcov-report/badge/index.html +116 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/box/Box.tsx.html +550 -0
- package/coverage/lcov-report/box/index.html +116 -0
- package/coverage/lcov-report/button/AsyncButton.tsx.html +838 -0
- package/coverage/lcov-report/button/Button.tsx.html +676 -0
- package/coverage/lcov-report/button/ButtonUnstyled.tsx.html +214 -0
- package/coverage/lcov-report/button/FloatingActionButton.tsx.html +427 -0
- package/coverage/lcov-report/button/buttonStyles.ts.html +607 -0
- package/coverage/lcov-report/button/buttonUnstyledStyles.ts.html +142 -0
- package/coverage/lcov-report/button/index.html +116 -0
- package/coverage/lcov-report/card/CardHeader.tsx.html +322 -0
- package/coverage/lcov-report/card/index.html +116 -0
- package/coverage/lcov-report/card/styles.ts.html +658 -0
- package/coverage/lcov-report/chip/Chip.tsx.html +1072 -0
- package/coverage/lcov-report/chip/index.html +116 -0
- package/coverage/lcov-report/chip/styles.ts.html +436 -0
- package/coverage/lcov-report/collapseStyles.ts.html +184 -0
- package/coverage/lcov-report/config.ts.html +136 -0
- package/coverage/lcov-report/cssUtils.ts.html +709 -0
- package/coverage/lcov-report/dialog/Dialog.tsx.html +1306 -0
- package/coverage/lcov-report/dialog/FixedDialog.tsx.html +583 -0
- package/coverage/lcov-report/dialog/index.html +131 -0
- package/coverage/lcov-report/divider/Divider.tsx.html +280 -0
- package/coverage/lcov-report/divider/index.html +116 -0
- package/coverage/lcov-report/draggable/index.html +131 -0
- package/coverage/lcov-report/draggable/useControlledDraggable.ts.html +2131 -0
- package/coverage/lcov-report/draggable/useDraggable.ts.html +2389 -0
- package/coverage/lcov-report/draggable/useDraggableOrig.ts.html +316 -0
- package/coverage/lcov-report/draggable/useLocalStorageDraggable.ts.html +361 -0
- package/coverage/lcov-report/draggable/useLocalStorageDraggableControls.ts.html +487 -0
- package/coverage/lcov-report/draggable/useLocalStorageDraggableLatest.ts.html +334 -0
- package/coverage/lcov-report/draggable/utils.ts.html +907 -0
- package/coverage/lcov-report/expansion-panel/ExpansionPanel.tsx.html +946 -0
- package/coverage/lcov-report/expansion-panel/ExpansionPanelHeader.tsx.html +649 -0
- package/coverage/lcov-report/expansion-panel/index.html +131 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/filters.ts.html +1045 -0
- package/coverage/lcov-report/findMatchIndex.ts.html +385 -0
- package/coverage/lcov-report/form/FileInput.tsx.html +739 -0
- package/coverage/lcov-report/form/Form.tsx.html +238 -0
- package/coverage/lcov-report/form/FormMessage.tsx.html +322 -0
- package/coverage/lcov-report/form/FormMessageContainer.tsx.html +229 -0
- package/coverage/lcov-report/form/InputToggle.tsx.html +1108 -0
- package/coverage/lcov-report/form/InputToggleIcon.tsx.html +478 -0
- package/coverage/lcov-report/form/MenuItemInputToggle.tsx.html +967 -0
- package/coverage/lcov-report/form/MenuItemTextField.tsx.html +286 -0
- package/coverage/lcov-report/form/NativeSelect.tsx.html +826 -0
- package/coverage/lcov-report/form/OptGroup.tsx.html +340 -0
- package/coverage/lcov-report/form/Password.tsx.html +721 -0
- package/coverage/lcov-report/form/Radio.tsx.html +175 -0
- package/coverage/lcov-report/form/Slider.tsx.html +1891 -0
- package/coverage/lcov-report/form/SliderThumb.tsx.html +1030 -0
- package/coverage/lcov-report/form/Switch.tsx.html +610 -0
- package/coverage/lcov-report/form/SwitchTrack.tsx.html +235 -0
- package/coverage/lcov-report/form/TextArea.tsx.html +1108 -0
- package/coverage/lcov-report/form/TextField.tsx.html +907 -0
- package/coverage/lcov-report/form/fileUtils.ts.html +2155 -0
- package/coverage/lcov-report/form/formMessageStyles.ts.html +238 -0
- package/coverage/lcov-report/form/index.html +341 -0
- package/coverage/lcov-report/form/inputToggleStyles.ts.html +316 -0
- package/coverage/lcov-report/form/selectUtils.ts.html +430 -0
- package/coverage/lcov-report/form/textAreaStyles.ts.html +385 -0
- package/coverage/lcov-report/form/useCheckboxGroup.ts.html +1087 -0
- package/coverage/lcov-report/form/useCombobox-6-13.ts.html +1054 -0
- package/coverage/lcov-report/form/useCombobox-6-15.ts.html +1048 -0
- package/coverage/lcov-report/form/useCombobox.ts.html +1051 -0
- package/coverage/lcov-report/form/useComboboxBoth.ts.html +85 -0
- package/coverage/lcov-report/form/useComboboxDialog.ts.html +85 -0
- package/coverage/lcov-report/form/useComboboxList.ts.html +403 -0
- package/coverage/lcov-report/form/useComboboxOrig.ts.html +781 -0
- package/coverage/lcov-report/form/useFileUpload.ts.html +1702 -0
- package/coverage/lcov-report/form/useListboxProvider.ts.html +214 -0
- package/coverage/lcov-report/form/useNumberField.ts.html +1561 -0
- package/coverage/lcov-report/form/useRadioGroup.ts.html +1021 -0
- package/coverage/lcov-report/form/useRangeSlider.ts.html +355 -0
- package/coverage/lcov-report/form/useSlider.ts.html +421 -0
- package/coverage/lcov-report/form/useTextField.ts.html +2203 -0
- package/coverage/lcov-report/form/utils.ts.html +343 -0
- package/coverage/lcov-report/form/validation.ts.html +886 -0
- package/coverage/lcov-report/icon/FontIcon.tsx.html +265 -0
- package/coverage/lcov-report/icon/index.html +116 -0
- package/coverage/lcov-report/icon/styles.ts.html +649 -0
- package/coverage/lcov-report/index.html +191 -0
- package/coverage/lcov-report/inputToggleStyles.ts.html +316 -0
- package/coverage/lcov-report/interaction/ElementInteractionProvider.tsx.html +253 -0
- package/coverage/lcov-report/interaction/index.html +116 -0
- package/coverage/lcov-report/layout/LayoutAppBar.tsx.html +358 -0
- package/coverage/lcov-report/layout/LayoutNav.tsx.html +694 -0
- package/coverage/lcov-report/layout/LayoutWindowSplitter.tsx.html +460 -0
- package/coverage/lcov-report/layout/Main.tsx.html +355 -0
- package/coverage/lcov-report/layout/NavigationLink.tsx.html +334 -0
- package/coverage/lcov-report/layout/NavigationRail.tsx.html +157 -0
- package/coverage/lcov-report/layout/index.html +116 -0
- package/coverage/lcov-report/layout/layoutNavStyles.ts.html +166 -0
- package/coverage/lcov-report/layout/layoutWindowSplitterStyles.ts.html +220 -0
- package/coverage/lcov-report/layout/navigationLinkStyles.ts.html +250 -0
- package/coverage/lcov-report/layout/navigationRailStyles.ts.html +148 -0
- package/coverage/lcov-report/layout/useExpandableLayout.ts.html +742 -0
- package/coverage/lcov-report/layout/useExpandableLayoutAppBarTransition.ts.html +199 -0
- package/coverage/lcov-report/layout/useHorizontalLayoutTransition.ts.html +349 -0
- package/coverage/lcov-report/layout/useLayoutAppBarHeight.ts.html +343 -0
- package/coverage/lcov-report/layout/useLayoutNavigation.ts.html +544 -0
- package/coverage/lcov-report/layout/useLayoutTree.ts.html +691 -0
- package/coverage/lcov-report/layout/useLayoutWindowSplitter.ts.html +517 -0
- package/coverage/lcov-report/layout/useMainTabIndex.ts.html +136 -0
- package/coverage/lcov-report/layout/useResizableLayout.ts.html +328 -0
- package/coverage/lcov-report/layout/useTemporaryLayout.ts.html +589 -0
- package/coverage/lcov-report/link/LinkProvider.tsx.html +214 -0
- package/coverage/lcov-report/link/SkipToMainContent.tsx.html +448 -0
- package/coverage/lcov-report/link/index.html +116 -0
- package/coverage/lcov-report/list/ListItemLink.tsx.html +622 -0
- package/coverage/lcov-report/list/ListItemText.tsx.html +280 -0
- package/coverage/lcov-report/list/ListSubheader.tsx.html +322 -0
- package/coverage/lcov-report/list/index.html +146 -0
- package/coverage/lcov-report/media-queries/AppSizeProvider.tsx.html +484 -0
- package/coverage/lcov-report/media-queries/appSize.ts.html +445 -0
- package/coverage/lcov-report/media-queries/index.html +116 -0
- package/coverage/lcov-report/media-queries/useMediaQuery.ts.html +244 -0
- package/coverage/lcov-report/media-queries/useMinWidthMediaQuery.ts.html +115 -0
- package/coverage/lcov-report/menu/Menu.tsx.html +1819 -0
- package/coverage/lcov-report/menu/MenuItemGroup.tsx.html +382 -0
- package/coverage/lcov-report/menu/MenuSheet.tsx.html +478 -0
- package/coverage/lcov-report/menu/MenuVisibilityProvider.tsx.html +355 -0
- package/coverage/lcov-report/menu/MenuWidget.tsx.html +634 -0
- package/coverage/lcov-report/menu/index.html +176 -0
- package/coverage/lcov-report/movement/index.html +116 -0
- package/coverage/lcov-report/movement/useKeyboardMovementProvider.ts.html +1684 -0
- package/coverage/lcov-report/overlay/Overlay.tsx.html +655 -0
- package/coverage/lcov-report/overlay/index.html +116 -0
- package/coverage/lcov-report/positioning/createVerticalPosition.ts.html +1009 -0
- package/coverage/lcov-report/positioning/getFixedPosition.ts.html +616 -0
- package/coverage/lcov-report/positioning/index.html +131 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/progress/LinearProgress.tsx.html +652 -0
- package/coverage/lcov-report/progress/index.html +116 -0
- package/coverage/lcov-report/segmented-button/SegmentedButton.tsx.html +628 -0
- package/coverage/lcov-report/segmented-button/SegmentedButtonContainer.tsx.html +259 -0
- package/coverage/lcov-report/segmented-button/index.html +161 -0
- package/coverage/lcov-report/segmented-button/segmentedButtonContainerStyles.ts.html +151 -0
- package/coverage/lcov-report/segmented-button/segmentedButtonStyles.ts.html +199 -0
- package/coverage/lcov-report/segmentedButtonContainerStyles.ts.html +160 -0
- package/coverage/lcov-report/segmentedButtonStyles.ts.html +199 -0
- package/coverage/lcov-report/sheet/Sheet.tsx.html +403 -0
- package/coverage/lcov-report/sheet/index.html +116 -0
- package/coverage/lcov-report/snackbar/DefaultToastRenderer.tsx.html +526 -0
- package/coverage/lcov-report/snackbar/Snackbar.tsx.html +652 -0
- package/coverage/lcov-report/snackbar/Toast.tsx.html +823 -0
- package/coverage/lcov-report/snackbar/ToastContent.tsx.html +364 -0
- package/coverage/lcov-report/snackbar/ToastManager.tsx.html +1783 -0
- package/coverage/lcov-report/snackbar/ToastManagerProvider.tsx.html +400 -0
- package/coverage/lcov-report/snackbar/index.html +161 -0
- package/coverage/lcov-report/snackbar/snackbarStyles.ts.html +214 -0
- package/coverage/lcov-report/snackbar/toastContentStyles.ts.html +196 -0
- package/coverage/lcov-report/snackbar/toastStyles.ts.html +289 -0
- package/coverage/lcov-report/snackbarStyles.ts.html +214 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/AppSize.tsx.html +247 -0
- package/coverage/lcov-report/src/AppSizeProvider.tsx.html +787 -0
- package/coverage/lcov-report/src/CoreProviders.tsx.html +412 -0
- package/coverage/lcov-report/src/NoSsr.tsx.html +250 -0
- package/coverage/lcov-report/src/NullSsrSuspense.tsx.html +223 -0
- package/coverage/lcov-report/src/SsrProvider.tsx.html +211 -0
- package/coverage/lcov-report/src/app-bar/AppBar.tsx.html +817 -0
- package/coverage/lcov-report/src/app-bar/AppBarTitle.tsx.html +445 -0
- package/coverage/lcov-report/src/app-bar/index.html +116 -0
- package/coverage/lcov-report/src/avatar/Avatar.tsx.html +463 -0
- package/coverage/lcov-report/src/avatar/index.html +116 -0
- package/coverage/lcov-report/src/avatar/styles.ts.html +199 -0
- package/coverage/lcov-report/src/badge/Badge.tsx.html +382 -0
- package/coverage/lcov-report/src/badge/index.html +116 -0
- package/coverage/lcov-report/src/box/Box.tsx.html +541 -0
- package/coverage/lcov-report/src/box/index.html +131 -0
- package/coverage/lcov-report/src/box/styles.ts.html +568 -0
- package/coverage/lcov-report/src/button/AsyncButton.tsx.html +496 -0
- package/coverage/lcov-report/src/button/Button.tsx.html +688 -0
- package/coverage/lcov-report/src/button/ButtonUnstyled.tsx.html +211 -0
- package/coverage/lcov-report/src/button/FloatingActionButton.tsx.html +382 -0
- package/coverage/lcov-report/src/button/buttonStyles.ts.html +607 -0
- package/coverage/lcov-report/src/button/buttonUnstyledStyles.ts.html +142 -0
- package/coverage/lcov-report/src/button/index.html +116 -0
- package/coverage/lcov-report/src/card/Card.tsx.html +343 -0
- package/coverage/lcov-report/src/card/CardContent.tsx.html +223 -0
- package/coverage/lcov-report/src/card/CardFooter.tsx.html +196 -0
- package/coverage/lcov-report/src/card/CardHeader.tsx.html +319 -0
- package/coverage/lcov-report/src/card/CardSubtitle.tsx.html +250 -0
- package/coverage/lcov-report/src/card/CardTitle.tsx.html +247 -0
- package/coverage/lcov-report/src/card/index.html +116 -0
- package/coverage/lcov-report/src/card/styles.ts.html +667 -0
- package/coverage/lcov-report/src/chip/Chip.tsx.html +1102 -0
- package/coverage/lcov-report/src/chip/index.html +131 -0
- package/coverage/lcov-report/src/chip/styles.ts.html +460 -0
- package/coverage/lcov-report/src/cssUtils.ts.html +778 -0
- package/coverage/lcov-report/src/delegateEvent.ts.html +619 -0
- package/coverage/lcov-report/src/dialog/Dialog.tsx.html +1306 -0
- package/coverage/lcov-report/src/dialog/DialogContainer.tsx.html +175 -0
- package/coverage/lcov-report/src/dialog/DialogContent.tsx.html +178 -0
- package/coverage/lcov-report/src/dialog/DialogFooter.tsx.html +169 -0
- package/coverage/lcov-report/src/dialog/DialogHeader.tsx.html +148 -0
- package/coverage/lcov-report/src/dialog/DialogTitle.tsx.html +256 -0
- package/coverage/lcov-report/src/dialog/FixedDialog.tsx.html +577 -0
- package/coverage/lcov-report/src/dialog/NestedDialogProvider.ts.html +127 -0
- package/coverage/lcov-report/src/dialog/index.html +116 -0
- package/coverage/lcov-report/src/dialog/styles.ts.html +439 -0
- package/coverage/lcov-report/src/divider/Divider.tsx.html +280 -0
- package/coverage/lcov-report/src/divider/VerticalDivider.tsx.html +235 -0
- package/coverage/lcov-report/src/divider/index.html +116 -0
- package/coverage/lcov-report/src/divider/styles.ts.html +232 -0
- package/coverage/lcov-report/src/divider/useVerticalDividerHeight.ts.html +301 -0
- package/coverage/lcov-report/src/draggable/index.html +131 -0
- package/coverage/lcov-report/src/draggable/useControlledDraggable.ts.html +2137 -0
- package/coverage/lcov-report/src/draggable/useDraggable.ts.html +2395 -0
- package/coverage/lcov-report/src/draggable/useDraggableOrig.ts.html +316 -0
- package/coverage/lcov-report/src/draggable/useLocalStorageDraggable.ts.html +370 -0
- package/coverage/lcov-report/src/draggable/utils.ts.html +910 -0
- package/coverage/lcov-report/src/expansion-panel/ExpansionList.tsx.html +211 -0
- package/coverage/lcov-report/src/expansion-panel/ExpansionPanel.tsx.html +943 -0
- package/coverage/lcov-report/src/expansion-panel/ExpansionPanelHeader.tsx.html +658 -0
- package/coverage/lcov-report/src/expansion-panel/index.html +161 -0
- package/coverage/lcov-report/src/expansion-panel/useExpansionList.ts.html +322 -0
- package/coverage/lcov-report/src/expansion-panel/useExpansionPanels.ts.html +916 -0
- package/coverage/lcov-report/src/focus/index.html +131 -0
- package/coverage/lcov-report/src/focus/useFocusContainer.ts.html +862 -0
- package/coverage/lcov-report/src/focus/utils.ts.html +544 -0
- package/coverage/lcov-report/src/form/Checkbox.tsx.html +160 -0
- package/coverage/lcov-report/src/form/Fieldset.tsx.html +355 -0
- package/coverage/lcov-report/src/form/FileInput.tsx.html +745 -0
- package/coverage/lcov-report/src/form/Form.tsx.html +235 -0
- package/coverage/lcov-report/src/form/FormMessage.tsx.html +460 -0
- package/coverage/lcov-report/src/form/FormMessageContainer.tsx.html +226 -0
- package/coverage/lcov-report/src/form/FormMessageCounter.tsx.html +262 -0
- package/coverage/lcov-report/src/form/FormThemeProvider.tsx.html +313 -0
- package/coverage/lcov-report/src/form/InputToggle.tsx.html +1117 -0
- package/coverage/lcov-report/src/form/InputToggleIcon.tsx.html +478 -0
- package/coverage/lcov-report/src/form/Label.tsx.html +439 -0
- package/coverage/lcov-report/src/form/Legend.tsx.html +199 -0
- package/coverage/lcov-report/src/form/MenuItemCheckbox.tsx.html +217 -0
- package/coverage/lcov-report/src/form/MenuItemFileInput.tsx.html +424 -0
- package/coverage/lcov-report/src/form/MenuItemInputToggle.tsx.html +967 -0
- package/coverage/lcov-report/src/form/MenuItemRadio.tsx.html +430 -0
- package/coverage/lcov-report/src/form/MenuItemSwitch.tsx.html +211 -0
- package/coverage/lcov-report/src/form/MenuItemTextField.tsx.html +280 -0
- package/coverage/lcov-report/src/form/NativeSelect.tsx.html +748 -0
- package/coverage/lcov-report/src/form/OptGroup.tsx.html +343 -0
- package/coverage/lcov-report/src/form/Option.tsx.html +709 -0
- package/coverage/lcov-report/src/form/Password.tsx.html +721 -0
- package/coverage/lcov-report/src/form/Radio.tsx.html +172 -0
- package/coverage/lcov-report/src/form/Select.tsx.html +1639 -0
- package/coverage/lcov-report/src/form/SelectValue.tsx.html +202 -0
- package/coverage/lcov-report/src/form/Slider.tsx.html +1888 -0
- package/coverage/lcov-report/src/form/SliderContainer.tsx.html +358 -0
- package/coverage/lcov-report/src/form/SliderMark.tsx.html +208 -0
- package/coverage/lcov-report/src/form/SliderMarkLabel.tsx.html +271 -0
- package/coverage/lcov-report/src/form/SliderThumb.tsx.html +1048 -0
- package/coverage/lcov-report/src/form/SliderTrack.tsx.html +454 -0
- package/coverage/lcov-report/src/form/SliderValueMarks.tsx.html +739 -0
- package/coverage/lcov-report/src/form/SliderValueTooltip.tsx.html +319 -0
- package/coverage/lcov-report/src/form/Switch.tsx.html +598 -0
- package/coverage/lcov-report/src/form/SwitchTrack.tsx.html +232 -0
- package/coverage/lcov-report/src/form/TextArea.tsx.html +928 -0
- package/coverage/lcov-report/src/form/TextField.tsx.html +823 -0
- package/coverage/lcov-report/src/form/TextFieldAddon.tsx.html +394 -0
- package/coverage/lcov-report/src/form/TextFieldContainer.tsx.html +346 -0
- package/coverage/lcov-report/src/form/TextFieldContainerStyles.ts.html +409 -0
- package/coverage/lcov-report/src/form/fileUtils.ts.html +2155 -0
- package/coverage/lcov-report/src/form/formConfig.ts.html +157 -0
- package/coverage/lcov-report/src/form/formMessageStyles.ts.html +238 -0
- package/coverage/lcov-report/src/form/index.html +266 -0
- package/coverage/lcov-report/src/form/inputToggleStyles.ts.html +316 -0
- package/coverage/lcov-report/src/form/nativeSelectStyles.ts.html +226 -0
- package/coverage/lcov-report/src/form/optionStyles.ts.html +151 -0
- package/coverage/lcov-report/src/form/passwordStyles.ts.html +235 -0
- package/coverage/lcov-report/src/form/selectStyles.ts.html +181 -0
- package/coverage/lcov-report/src/form/selectUtils.ts.html +433 -0
- package/coverage/lcov-report/src/form/sliderUtils.ts.html +784 -0
- package/coverage/lcov-report/src/form/switchStyles.ts.html +172 -0
- package/coverage/lcov-report/src/form/textAreaStyles.ts.html +385 -0
- package/coverage/lcov-report/src/form/textFieldStyles.ts.html +184 -0
- package/coverage/lcov-report/src/form/useCheckboxGroup.ts.html +1087 -0
- package/coverage/lcov-report/src/form/useCombobox.ts.html +1054 -0
- package/coverage/lcov-report/src/form/useComboboxBoth.ts.html +85 -0
- package/coverage/lcov-report/src/form/useComboboxDialog.ts.html +85 -0
- package/coverage/lcov-report/src/form/useComboboxList.ts.html +403 -0
- package/coverage/lcov-report/src/form/useComboboxOrig.ts.html +781 -0
- package/coverage/lcov-report/src/form/useFileUpload.ts.html +1693 -0
- package/coverage/lcov-report/src/form/useListboxProvider.ts.html +217 -0
- package/coverage/lcov-report/src/form/useNumberField.ts.html +1561 -0
- package/coverage/lcov-report/src/form/useRadioGroup.ts.html +1006 -0
- package/coverage/lcov-report/src/form/useRangeSlider.ts.html +355 -0
- package/coverage/lcov-report/src/form/useResizingTextArea.tsx.html +523 -0
- package/coverage/lcov-report/src/form/useSlider.ts.html +421 -0
- package/coverage/lcov-report/src/form/useTextField.ts.html +2197 -0
- package/coverage/lcov-report/src/form/utils.ts.html +343 -0
- package/coverage/lcov-report/src/form/validation.ts.html +886 -0
- package/coverage/lcov-report/src/hoverMode/index.html +131 -0
- package/coverage/lcov-report/src/hoverMode/useHoverMode.ts.html +676 -0
- package/coverage/lcov-report/src/hoverMode/useHoverModeProvider.ts.html +1018 -0
- package/coverage/lcov-report/src/icon/FontIcon.tsx.html +265 -0
- package/coverage/lcov-report/src/icon/IconProvider.tsx.html +931 -0
- package/coverage/lcov-report/src/icon/IconRotator.tsx.html +325 -0
- package/coverage/lcov-report/src/icon/MaterialIcon.tsx.html +241 -0
- package/coverage/lcov-report/src/icon/MaterialIconsProvider.ts.html +154 -0
- package/coverage/lcov-report/src/icon/MaterialSymbol.tsx.html +403 -0
- package/coverage/lcov-report/src/icon/MaterialSymbolsProvider.tsx.html +757 -0
- package/coverage/lcov-report/src/icon/SVGIcon.tsx.html +445 -0
- package/coverage/lcov-report/src/icon/TextIconSpacing.tsx.html +679 -0
- package/coverage/lcov-report/src/icon/index.html +116 -0
- package/coverage/lcov-report/src/icon/material.ts.html +15232 -0
- package/coverage/lcov-report/src/icon/styles.ts.html +649 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/interaction/ElementInteractionProvider.tsx.html +277 -0
- package/coverage/lcov-report/src/interaction/LazyRippleContainer.tsx.html +136 -0
- package/coverage/lcov-report/src/interaction/Ripple.tsx.html +283 -0
- package/coverage/lcov-report/src/interaction/RippleContainer.tsx.html +217 -0
- package/coverage/lcov-report/src/interaction/UserInteractionModeProvider.tsx.html +679 -0
- package/coverage/lcov-report/src/interaction/config.ts.html +181 -0
- package/coverage/lcov-report/src/interaction/index.html +116 -0
- package/coverage/lcov-report/src/interaction/useElementInteraction.ts.html +1474 -0
- package/coverage/lcov-report/src/interaction/useElementInteraction.tsx.html +1513 -0
- package/coverage/lcov-report/src/interaction/useHigherContrastChildren.tsx.html +355 -0
- package/coverage/lcov-report/src/interaction/utils.ts.html +496 -0
- package/coverage/lcov-report/src/layout/DefaultLayoutNavigationItemRenderer.tsx.html +169 -0
- package/coverage/lcov-report/src/layout/DefaultLayoutNavigationMiniItemRenderer.tsx.html +160 -0
- package/coverage/lcov-report/src/layout/Layout.tsx.html +235 -0
- package/coverage/lcov-report/src/layout/LayoutAppBar.tsx.html +373 -0
- package/coverage/lcov-report/src/layout/LayoutAppBarTitle.tsx.html +193 -0
- package/coverage/lcov-report/src/layout/LayoutChildren.tsx.html +718 -0
- package/coverage/lcov-report/src/layout/LayoutCloseNavigationButton.tsx.html +265 -0
- package/coverage/lcov-report/src/layout/LayoutMain.tsx.html +580 -0
- package/coverage/lcov-report/src/layout/LayoutNav.tsx.html +688 -0
- package/coverage/lcov-report/src/layout/LayoutNavToggle.tsx.html +430 -0
- package/coverage/lcov-report/src/layout/LayoutNavigation.tsx.html +445 -0
- package/coverage/lcov-report/src/layout/LayoutNavigationHeader.tsx.html +274 -0
- package/coverage/lcov-report/src/layout/LayoutProvider.tsx.html +706 -0
- package/coverage/lcov-report/src/layout/LayoutTree.tsx.html +331 -0
- package/coverage/lcov-report/src/layout/LayoutWindowSplitter.tsx.html +472 -0
- package/coverage/lcov-report/src/layout/Main.tsx.html +367 -0
- package/coverage/lcov-report/src/layout/MiniLayoutWrapper.tsx.html +541 -0
- package/coverage/lcov-report/src/layout/NavigationLink.tsx.html +334 -0
- package/coverage/lcov-report/src/layout/NavigationRail.tsx.html +157 -0
- package/coverage/lcov-report/src/layout/TemporaryLayout.tsx.html +85 -0
- package/coverage/lcov-report/src/layout/constants.ts.html +169 -0
- package/coverage/lcov-report/src/layout/index.html +131 -0
- package/coverage/lcov-report/src/layout/layoutNavStyles.ts.html +166 -0
- package/coverage/lcov-report/src/layout/layoutWindowSplitterStyles.ts.html +220 -0
- package/coverage/lcov-report/src/layout/mainStyles.ts.html +217 -0
- package/coverage/lcov-report/src/layout/navigationLinkStyles.ts.html +250 -0
- package/coverage/lcov-report/src/layout/navigationRailStyles.ts.html +148 -0
- package/coverage/lcov-report/src/layout/useExpandableLayout.ts.html +742 -0
- package/coverage/lcov-report/src/layout/useHorizontalLayoutTransition.ts.html +349 -0
- package/coverage/lcov-report/src/layout/useLayoutAppBarHeight.ts.html +379 -0
- package/coverage/lcov-report/src/layout/useLayoutNavigation.ts.html +544 -0
- package/coverage/lcov-report/src/layout/useLayoutTree.ts.html +691 -0
- package/coverage/lcov-report/src/layout/useLayoutWindowSplitter.ts.html +496 -0
- package/coverage/lcov-report/src/layout/useMainTabIndex.ts.html +136 -0
- package/coverage/lcov-report/src/layout/useResizableLayout.ts.html +535 -0
- package/coverage/lcov-report/src/layout/useTemporaryLayout.ts.html +589 -0
- package/coverage/lcov-report/src/layout/utils.ts.html +391 -0
- package/coverage/lcov-report/src/link/Link.tsx.html +328 -0
- package/coverage/lcov-report/src/link/LinkProvider.tsx.html +238 -0
- package/coverage/lcov-report/src/link/SkipToMainContent.tsx.html +448 -0
- package/coverage/lcov-report/src/link/index.html +146 -0
- package/coverage/lcov-report/src/link/styles.ts.html +238 -0
- package/coverage/lcov-report/src/list/List.tsx.html +490 -0
- package/coverage/lcov-report/src/list/ListItem.tsx.html +871 -0
- package/coverage/lcov-report/src/list/ListItemAddon.tsx.html +280 -0
- package/coverage/lcov-report/src/list/ListItemChildren.tsx.html +439 -0
- package/coverage/lcov-report/src/list/ListItemLink.tsx.html +616 -0
- package/coverage/lcov-report/src/list/ListItemText.tsx.html +277 -0
- package/coverage/lcov-report/src/list/ListSubheader.tsx.html +319 -0
- package/coverage/lcov-report/src/list/getListItemHeight.ts.html +301 -0
- package/coverage/lcov-report/src/list/index.html +116 -0
- package/coverage/lcov-report/src/list/listItemStyles.ts.html +673 -0
- package/coverage/lcov-report/src/main-layout/DefaultLayoutNavigationItemRenderer.tsx.html +169 -0
- package/coverage/lcov-report/src/main-layout/DefaultLayoutNavigationMiniItemRenderer.tsx.html +160 -0
- package/coverage/lcov-report/src/main-layout/Main.tsx.html +298 -0
- package/coverage/lcov-report/src/main-layout/MainLayout.tsx.html +619 -0
- package/coverage/lcov-report/src/main-layout/MainLayoutAppBar.tsx.html +448 -0
- package/coverage/lcov-report/src/main-layout/MainLayoutNavigationButton.tsx.html +295 -0
- package/coverage/lcov-report/src/main-layout/MainLayoutTitle.tsx.html +184 -0
- package/coverage/lcov-report/src/main-layout/MainNavWindowSplitter.tsx.html +427 -0
- package/coverage/lcov-report/src/main-layout/MainNavigation.tsx.html +568 -0
- package/coverage/lcov-report/src/main-layout/MainNavigationTree.tsx.html +115 -0
- package/coverage/lcov-report/src/main-layout/index.html +296 -0
- package/coverage/lcov-report/src/main-layout/useLayoutNavigation.ts.html +727 -0
- package/coverage/lcov-report/src/main-layout/useMainLayout.ts.html +523 -0
- package/coverage/lcov-report/src/main-layout/useMainLayoutProvider.ts.html +484 -0
- package/coverage/lcov-report/src/main-layout-current/DefaultLayoutNavigationItemRenderer.tsx.html +169 -0
- package/coverage/lcov-report/src/main-layout-current/DefaultLayoutNavigationMiniItemRenderer.tsx.html +160 -0
- package/coverage/lcov-report/src/main-layout-current/Main.tsx.html +265 -0
- package/coverage/lcov-report/src/main-layout-current/MainLayout.tsx.html +739 -0
- package/coverage/lcov-report/src/main-layout-current/MainLayoutAppBar.tsx.html +352 -0
- package/coverage/lcov-report/src/main-layout-current/MainLayoutProvider.ts.html +991 -0
- package/coverage/lcov-report/src/main-layout-current/MainLayoutTitle.tsx.html +184 -0
- package/coverage/lcov-report/src/main-layout-current/MainNavWindowSplitter.tsx.html +520 -0
- package/coverage/lcov-report/src/main-layout-current/MainNavigation.tsx.html +586 -0
- package/coverage/lcov-report/src/main-layout-current/NavigationButton.tsx.html +283 -0
- package/coverage/lcov-report/src/main-layout-current/index.html +266 -0
- package/coverage/lcov-report/src/main-layout-current/useLayoutNavigation.ts.html +727 -0
- package/coverage/lcov-report/src/media-queries/AppSizeProvider.tsx.html +502 -0
- package/coverage/lcov-report/src/media-queries/appSize.ts.html +445 -0
- package/coverage/lcov-report/src/media-queries/index.html +131 -0
- package/coverage/lcov-report/src/media-queries/useMediaQuery.ts.html +244 -0
- package/coverage/lcov-report/src/media-queries/useMinWidthMediaQuery.ts.html +115 -0
- package/coverage/lcov-report/src/menu/DropdownMenu.tsx.html +919 -0
- package/coverage/lcov-report/src/menu/Menu.tsx.html +1837 -0
- package/coverage/lcov-report/src/menu/MenuBar.tsx.html +442 -0
- package/coverage/lcov-report/src/menu/MenuButton.tsx.html +490 -0
- package/coverage/lcov-report/src/menu/MenuConfigurationProvider.tsx.html +637 -0
- package/coverage/lcov-report/src/menu/MenuItem.tsx.html +292 -0
- package/coverage/lcov-report/src/menu/MenuItemButton.tsx.html +580 -0
- package/coverage/lcov-report/src/menu/MenuItemGroup.tsx.html +376 -0
- package/coverage/lcov-report/src/menu/MenuItemSeparator.tsx.html +256 -0
- package/coverage/lcov-report/src/menu/MenuSheet.tsx.html +475 -0
- package/coverage/lcov-report/src/menu/MenuVisibilityProvider.tsx.html +370 -0
- package/coverage/lcov-report/src/menu/MenuWidget.tsx.html +631 -0
- package/coverage/lcov-report/src/menu/MenuWidgetKeyboardProvider.tsx.html +190 -0
- package/coverage/lcov-report/src/menu/index.html +296 -0
- package/coverage/lcov-report/src/menu/useContextMenu.ts.html +490 -0
- package/coverage/lcov-report/src/menu/useMenuBarProvider.ts.html +349 -0
- package/coverage/lcov-report/src/menu/utils.ts.html +271 -0
- package/coverage/lcov-report/src/movement/constants.ts.html +193 -0
- package/coverage/lcov-report/src/movement/findMatchIndex.ts.html +385 -0
- package/coverage/lcov-report/src/movement/index.html +116 -0
- package/coverage/lcov-report/src/movement/useKeyboardMovementProvider.ts.html +1687 -0
- package/coverage/lcov-report/src/movement/utils.ts.html +871 -0
- package/coverage/lcov-report/src/overlay/Overlay.tsx.html +556 -0
- package/coverage/lcov-report/src/overlay/index.html +131 -0
- package/coverage/lcov-report/src/overlay/overlayStyles.ts.html +340 -0
- package/coverage/lcov-report/src/portal/Portal.tsx.html +223 -0
- package/coverage/lcov-report/src/portal/PortalContainerProvider.tsx.html +343 -0
- package/coverage/lcov-report/src/portal/index.html +116 -0
- package/coverage/lcov-report/src/positioning/constants.ts.html +463 -0
- package/coverage/lcov-report/src/positioning/createHorizontalPosition.ts.html +1075 -0
- package/coverage/lcov-report/src/positioning/createVerticalPosition.ts.html +997 -0
- package/coverage/lcov-report/src/positioning/getFixedPosition.ts.html +610 -0
- package/coverage/lcov-report/src/positioning/index.html +131 -0
- package/coverage/lcov-report/src/positioning/useFixedPositioning.ts.html +1339 -0
- package/coverage/lcov-report/src/positioning/utils.ts.html +1225 -0
- package/coverage/lcov-report/src/progress/CircularProgress.tsx.html +754 -0
- package/coverage/lcov-report/src/progress/LinearProgress.tsx.html +577 -0
- package/coverage/lcov-report/src/progress/getProgressA11y.ts.html +160 -0
- package/coverage/lcov-report/src/progress/index.html +131 -0
- package/coverage/lcov-report/src/responsive-item/ResponsiveItemContainer.tsx.html +628 -0
- package/coverage/lcov-report/src/responsive-item/ResponsiveItemOverlay.tsx.html +385 -0
- package/coverage/lcov-report/src/responsive-item/index.html +131 -0
- package/coverage/lcov-report/src/responsive-item/styles.ts.html +259 -0
- package/coverage/lcov-report/src/scroll/ScrollLock.tsx.html +133 -0
- package/coverage/lcov-report/src/scroll/getScrollbarWidth.ts.html +181 -0
- package/coverage/lcov-report/src/scroll/index.html +146 -0
- package/coverage/lcov-report/src/scroll/useScrollLock.ts.html +241 -0
- package/coverage/lcov-report/src/segmented-button/SegmentedButton.tsx.html +619 -0
- package/coverage/lcov-report/src/segmented-button/SegmentedButtonContainer.tsx.html +256 -0
- package/coverage/lcov-report/src/segmented-button/index.html +116 -0
- package/coverage/lcov-report/src/segmented-button/segmentedButtonContainerStyles.ts.html +151 -0
- package/coverage/lcov-report/src/segmented-button/segmentedButtonStyles.ts.html +205 -0
- package/coverage/lcov-report/src/sheet/Sheet.tsx.html +397 -0
- package/coverage/lcov-report/src/sheet/index.html +116 -0
- package/coverage/lcov-report/src/sheet/styles.ts.html +379 -0
- package/coverage/lcov-report/src/snackbar/DefaultToastRenderer.tsx.html +523 -0
- package/coverage/lcov-report/src/snackbar/Snackbar.tsx.html +778 -0
- package/coverage/lcov-report/src/snackbar/Toast.tsx.html +826 -0
- package/coverage/lcov-report/src/snackbar/ToastActionButton.tsx.html +298 -0
- package/coverage/lcov-report/src/snackbar/ToastCloseButton.tsx.html +349 -0
- package/coverage/lcov-report/src/snackbar/ToastContent.tsx.html +472 -0
- package/coverage/lcov-report/src/snackbar/ToastManagerProvider.tsx.html +2080 -0
- package/coverage/lcov-report/src/snackbar/index.html +131 -0
- package/coverage/lcov-report/src/snackbar/toastStyles.ts.html +268 -0
- package/coverage/lcov-report/src/snackbar/useCurrentToastActions.ts.html +226 -0
- package/coverage/lcov-report/src/snackbar/useDefaultToastRenderer.ts.html +85 -0
- package/coverage/lcov-report/src/snackbar/useDefaultToastRenderer.tsx.html +394 -0
- package/coverage/lcov-report/src/snackbar/useRemoveToast.ts.html +169 -0
- package/coverage/lcov-report/src/snackbar/useToast.ts.html +184 -0
- package/coverage/lcov-report/src/snackbar/useToastRenderer.ts.html +85 -0
- package/coverage/lcov-report/src/suspense/CircularProgressSuspense.tsx.html +232 -0
- package/coverage/lcov-report/src/suspense/NullSsrSuspense.tsx.html +151 -0
- package/coverage/lcov-report/src/suspense/NullSuspense.tsx.html +202 -0
- package/coverage/lcov-report/src/suspense/index.html +131 -0
- package/coverage/lcov-report/src/table/Table.tsx.html +526 -0
- package/coverage/lcov-report/src/table/TableBody.tsx.html +280 -0
- package/coverage/lcov-report/src/table/TableCell.tsx.html +1186 -0
- package/coverage/lcov-report/src/table/TableCellContent.tsx.html +382 -0
- package/coverage/lcov-report/src/table/TableCheckbox.tsx.html +709 -0
- package/coverage/lcov-report/src/table/TableConfigurationProvider.tsx.html +490 -0
- package/coverage/lcov-report/src/table/TableContainer.tsx.html +241 -0
- package/coverage/lcov-report/src/table/TableContainerProvider.tsx.html +193 -0
- package/coverage/lcov-report/src/table/TableFooter.tsx.html +517 -0
- package/coverage/lcov-report/src/table/TableHeader.tsx.html +616 -0
- package/coverage/lcov-report/src/table/TableRow.tsx.html +370 -0
- package/coverage/lcov-report/src/table/index.html +161 -0
- package/coverage/lcov-report/src/tabs/Tab.tsx.html +502 -0
- package/coverage/lcov-report/src/tabs/TabList.tsx.html +796 -0
- package/coverage/lcov-report/src/tabs/TabListScrollButton.tsx.html +490 -0
- package/coverage/lcov-report/src/tabs/index.html +116 -0
- package/coverage/lcov-report/src/tabs/tabStyles.ts.html +229 -0
- package/coverage/lcov-report/src/tabs/useTabList.ts.html +730 -0
- package/coverage/lcov-report/src/tabs/useTabs.ts.html +1567 -0
- package/coverage/lcov-report/src/tabs/useTabsOriginal.ts.html +760 -0
- package/coverage/lcov-report/src/tabs/utils.ts.html +337 -0
- package/coverage/lcov-report/src/test-utils/IntersectionObserver.ts.html +235 -0
- package/coverage/lcov-report/src/test-utils/ResizeObserver.ts.html +904 -0
- package/coverage/lcov-report/src/test-utils/drag.ts.html +337 -0
- package/coverage/lcov-report/src/test-utils/index.html +116 -0
- package/coverage/lcov-report/src/test-utils/jest-setup.ts.html +112 -0
- package/coverage/lcov-report/src/test-utils/matchMedia.ts.html +679 -0
- package/coverage/lcov-report/src/test-utils/polyfills/IntersectionObserver.ts.html +109 -0
- package/coverage/lcov-report/src/test-utils/polyfills/ResizeObserver.ts.html +100 -0
- package/coverage/lcov-report/src/test-utils/polyfills/index.html +176 -0
- package/coverage/lcov-report/src/test-utils/polyfills/matchMedia.ts.html +109 -0
- package/coverage/lcov-report/src/test-utils/polyfills/offsetParent.ts.html +202 -0
- package/coverage/lcov-report/src/test-utils/polyfills/scrollIntoView.ts.html +112 -0
- package/coverage/lcov-report/src/test-utils/render.tsx.html +220 -0
- package/coverage/lcov-report/src/test-utils/timers.ts.html +223 -0
- package/coverage/lcov-report/src/test-utils/utils.ts.html +118 -0
- package/coverage/lcov-report/src/theme/ColorSchemeProvider.tsx.html +811 -0
- package/coverage/lcov-report/src/theme/LocalStorageColorSchemeProvider.tsx.html +475 -0
- package/coverage/lcov-report/src/theme/ThemeProvider.tsx.html +1492 -0
- package/coverage/lcov-report/src/theme/colors.ts.html +910 -0
- package/coverage/lcov-report/src/theme/cssVars.ts.html +130 -0
- package/coverage/lcov-report/src/theme/index.html +191 -0
- package/coverage/lcov-report/src/theme/useCSSVariables.ts.html +622 -0
- package/coverage/lcov-report/src/theme/useColorScheme.ts.html +490 -0
- package/coverage/lcov-report/src/theme/useColorSchemeMetaTag.ts.html +244 -0
- package/coverage/lcov-report/src/theme/useColorSchemeProvider.ts.html +433 -0
- package/coverage/lcov-report/src/theme/usePrefersColorScheme.ts.html +121 -0
- package/coverage/lcov-report/src/theme/utils.ts.html +670 -0
- package/coverage/lcov-report/src/tooltip/Tooltip.tsx.html +535 -0
- package/coverage/lcov-report/src/tooltip/TooltipHoverModeProvider.tsx.html +355 -0
- package/coverage/lcov-report/src/tooltip/constants.ts.html +208 -0
- package/coverage/lcov-report/src/tooltip/index.html +161 -0
- package/coverage/lcov-report/src/tooltip/tooltipStyles.ts.html +181 -0
- package/coverage/lcov-report/src/tooltip/useOverflowTooltip.ts.html +364 -0
- package/coverage/lcov-report/src/tooltip/useTooltip.ts.html +1774 -0
- package/coverage/lcov-report/src/tooltip/useTooltipPosition.ts.html +388 -0
- package/coverage/lcov-report/src/tooltip/utils.ts.html +238 -0
- package/coverage/lcov-report/src/transition/CSSTransition.tsx.html +358 -0
- package/coverage/lcov-report/src/transition/Collapse.tsx.html +337 -0
- package/coverage/lcov-report/src/transition/CrossFade.tsx.html +436 -0
- package/coverage/lcov-report/src/transition/ScaleTransition.tsx.html +328 -0
- package/coverage/lcov-report/src/transition/SkeletonPlaceholder.tsx.html +577 -0
- package/coverage/lcov-report/src/transition/Slide.tsx.html +367 -0
- package/coverage/lcov-report/src/transition/SlideContainer.tsx.html +649 -0
- package/coverage/lcov-report/src/transition/collapseStyles.ts.html +184 -0
- package/coverage/lcov-report/src/transition/constants.ts.html +103 -0
- package/coverage/lcov-report/src/transition/index.html +116 -0
- package/coverage/lcov-report/src/transition/maxWidthTransition.ts.html +157 -0
- package/coverage/lcov-report/src/transition/useCSSTransition.ts.html +766 -0
- package/coverage/lcov-report/src/transition/useCarousel.ts.html +835 -0
- package/coverage/lcov-report/src/transition/useCollapseTransition.ts.html +1438 -0
- package/coverage/lcov-report/src/transition/useCrossFadeTransition.ts.html +469 -0
- package/coverage/lcov-report/src/transition/useMaxWidthTransition.ts.html +205 -0
- package/coverage/lcov-report/src/transition/useScaleTransition.ts.html +535 -0
- package/coverage/lcov-report/src/transition/useSkeletonPlaceholder.ts.html +913 -0
- package/coverage/lcov-report/src/transition/useSlideTransition.ts.html +424 -0
- package/coverage/lcov-report/src/transition/useTransition.ts.html +916 -0
- package/coverage/lcov-report/src/transition/utils.ts.html +529 -0
- package/coverage/lcov-report/src/tree/DefaultTreeItemRenderer.tsx.html +301 -0
- package/coverage/lcov-report/src/tree/Tree.tsx.html +1066 -0
- package/coverage/lcov-report/src/tree/TreeGroup.tsx.html +367 -0
- package/coverage/lcov-report/src/tree/TreeItem.tsx.html +1012 -0
- package/coverage/lcov-report/src/tree/TreeItemExpander.tsx.html +355 -0
- package/coverage/lcov-report/src/tree/TreeProvider.tsx.html +661 -0
- package/coverage/lcov-report/src/tree/index.html +191 -0
- package/coverage/lcov-report/src/tree/styles.ts.html +565 -0
- package/coverage/lcov-report/src/tree/useTree.ts.html +289 -0
- package/coverage/lcov-report/src/tree/useTreeExpansion.ts.html +241 -0
- package/coverage/lcov-report/src/tree/useTreeItems.ts.html +499 -0
- package/coverage/lcov-report/src/tree/useTreeMovement.ts.html +700 -0
- package/coverage/lcov-report/src/tree/useTreeSelection.ts.html +274 -0
- package/coverage/lcov-report/src/tree/utils.ts.html +277 -0
- package/coverage/lcov-report/src/typography/SrOnly.tsx.html +328 -0
- package/coverage/lcov-report/src/typography/TextContainer.tsx.html +403 -0
- package/coverage/lcov-report/src/typography/Typography.tsx.html +1027 -0
- package/coverage/lcov-report/src/typography/WritingDirection.tsx.html +775 -0
- package/coverage/lcov-report/src/typography/WritingDirectionProvider.tsx.html +781 -0
- package/coverage/lcov-report/src/typography/index.html +116 -0
- package/coverage/lcov-report/src/useAsyncAction.ts.html +685 -0
- package/coverage/lcov-report/src/useDebounced.ts.html +190 -0
- package/coverage/lcov-report/src/useDebouncedFunction.ts.html +430 -0
- package/coverage/lcov-report/src/useDropzone.ts.html +766 -0
- package/coverage/lcov-report/src/useEnsuredId.ts.html +175 -0
- package/coverage/lcov-report/src/useEnsuredRef.ts.html +250 -0
- package/coverage/lcov-report/src/useEnsuredState.ts.html +235 -0
- package/coverage/lcov-report/src/useHtmlClassName.ts.html +142 -0
- package/coverage/lcov-report/src/useIntersectionObserver.ts.html +1075 -0
- package/coverage/lcov-report/src/useIsomorphicLayoutEffect.ts.html +130 -0
- package/coverage/lcov-report/src/useLocalStorage.ts.html +1852 -0
- package/coverage/lcov-report/src/useLocalStorageEvents.ts.html +85 -0
- package/coverage/lcov-report/src/useMediaQuery.ts.html +241 -0
- package/coverage/lcov-report/src/useMinWidthMediaQuery.ts.html +115 -0
- package/coverage/lcov-report/src/useOrientation.ts.html +271 -0
- package/coverage/lcov-report/src/usePageInactive.ts.html +448 -0
- package/coverage/lcov-report/src/useResizeListener.ts.html +385 -0
- package/coverage/lcov-report/src/useResizeObserver.ts.html +901 -0
- package/coverage/lcov-report/src/useThrottledFunction.ts.html +478 -0
- package/coverage/lcov-report/src/useToggle.ts.html +253 -0
- package/coverage/lcov-report/src/useUnmounted.ts.html +217 -0
- package/coverage/lcov-report/src/useWindowSize.ts.html +430 -0
- package/coverage/lcov-report/src/utils/RecursiveRender.tsx.html +253 -0
- package/coverage/lcov-report/src/utils/RenderRecursively.tsx.html +691 -0
- package/coverage/lcov-report/src/utils/alphaNumericSort.ts.html +535 -0
- package/coverage/lcov-report/src/utils/applyRef.ts.html +214 -0
- package/coverage/lcov-report/src/utils/bem.ts.html +412 -0
- package/coverage/lcov-report/src/utils/filters.ts.html +1045 -0
- package/coverage/lcov-report/src/utils/getClientPosition.ts.html +226 -0
- package/coverage/lcov-report/src/utils/getPercentage.ts.html +253 -0
- package/coverage/lcov-report/src/utils/getRangeDefaultValue.ts.html +190 -0
- package/coverage/lcov-report/src/utils/getRangeSteps.ts.html +157 -0
- package/coverage/lcov-report/src/utils/getUseStateSetterValue.ts.html +85 -0
- package/coverage/lcov-report/src/utils/identity.ts.html +100 -0
- package/coverage/lcov-report/src/utils/index.html +161 -0
- package/coverage/lcov-report/src/utils/isElementVisible.ts.html +214 -0
- package/coverage/lcov-report/src/utils/loop.ts.html +262 -0
- package/coverage/lcov-report/src/utils/nearest.ts.html +220 -0
- package/coverage/lcov-report/src/utils/parseCssLengthUnit.ts.html +280 -0
- package/coverage/lcov-report/src/utils/randomInt.ts.html +148 -0
- package/coverage/lcov-report/src/utils/wait.ts.html +139 -0
- package/coverage/lcov-report/src/utils/withinRange.ts.html +184 -0
- package/coverage/lcov-report/src/window-splitter/WindowSplitter.tsx.html +445 -0
- package/coverage/lcov-report/src/window-splitter/index.html +131 -0
- package/coverage/lcov-report/src/window-splitter/useControlledWindowSplitter.ts.html +562 -0
- package/coverage/lcov-report/src/window-splitter/useLocalStorageWindowSplitter.ts.html +331 -0
- package/coverage/lcov-report/src/window-splitter/useWindowSplitter.ts.html +556 -0
- package/coverage/lcov-report/src/window-splitter/useWindowSplitterDefault.ts.html +466 -0
- package/coverage/lcov-report/styles.ts.html +643 -0
- package/coverage/lcov-report/tabIndicatorStyles.ts.html +157 -0
- package/coverage/lcov-report/tabListScrollButtonStyles.ts.html +226 -0
- package/coverage/lcov-report/tabListStyles.ts.html +232 -0
- package/coverage/lcov-report/tabStyles.ts.html +223 -0
- package/coverage/lcov-report/table/TableCell.tsx.html +1189 -0
- package/coverage/lcov-report/table/TableCheckbox.tsx.html +712 -0
- package/coverage/lcov-report/table/TableFooter.tsx.html +508 -0
- package/coverage/lcov-report/table/TableHeader.tsx.html +607 -0
- package/coverage/lcov-report/table/index.html +161 -0
- package/coverage/lcov-report/tabs/TabListScrollButton.tsx.html +472 -0
- package/coverage/lcov-report/tabs/index.html +116 -0
- package/coverage/lcov-report/test-utils/index.html +116 -0
- package/coverage/lcov-report/test-utils/matchMedia.ts.html +664 -0
- package/coverage/lcov-report/test-utils/polyfills/index.html +116 -0
- package/coverage/lcov-report/test-utils/polyfills/matchMedia.ts.html +109 -0
- package/coverage/lcov-report/test-utils/polyfills/offsetParent.ts.html +202 -0
- package/coverage/lcov-report/theme/ColorSchemeProvider.tsx.html +811 -0
- package/coverage/lcov-report/theme/LocalStorageColorSchemeProvider.tsx.html +268 -0
- package/coverage/lcov-report/theme/ThemeProvider.tsx.html +1453 -0
- package/coverage/lcov-report/theme/cssVars.ts.html +130 -0
- package/coverage/lcov-report/theme/index.html +191 -0
- package/coverage/lcov-report/theme/useColorScheme.ts.html +475 -0
- package/coverage/lcov-report/theme/useColorSchemeMetaTag.ts.html +175 -0
- package/coverage/lcov-report/theme/useColorSchemeProvider.ts.html +244 -0
- package/coverage/lcov-report/theme/usePrefersColorScheme.ts.html +103 -0
- package/coverage/lcov-report/tooltip/Tooltip.tsx.html +535 -0
- package/coverage/lcov-report/tooltip/TooltipHoverModeProvider.tsx.html +253 -0
- package/coverage/lcov-report/tooltip/constants.ts.html +208 -0
- package/coverage/lcov-report/tooltip/index.html +161 -0
- package/coverage/lcov-report/tooltip/useOverflowTooltip.ts.html +364 -0
- package/coverage/lcov-report/tooltip/useTooltip.ts.html +1774 -0
- package/coverage/lcov-report/transition/index.html +131 -0
- package/coverage/lcov-report/transition/maxWidthTransition.ts.html +157 -0
- package/coverage/lcov-report/transition/useMaxWidthTransition.ts.html +199 -0
- package/coverage/lcov-report/tree/DefaultTreeItemRenderer.tsx.html +301 -0
- package/coverage/lcov-report/tree/Tree.tsx.html +1066 -0
- package/coverage/lcov-report/tree/TreeGroup.tsx.html +370 -0
- package/coverage/lcov-report/tree/TreeItem.tsx.html +1012 -0
- package/coverage/lcov-report/tree/TreeItemExpander.tsx.html +328 -0
- package/coverage/lcov-report/tree/TreeProvider.tsx.html +634 -0
- package/coverage/lcov-report/tree/index.html +191 -0
- package/coverage/lcov-report/tree/useTree.ts.html +289 -0
- package/coverage/lcov-report/tree/useTreeExpansion.ts.html +241 -0
- package/coverage/lcov-report/tree/useTreeItems.ts.html +496 -0
- package/coverage/lcov-report/tree/useTreeMovement.ts.html +703 -0
- package/coverage/lcov-report/tree/useTreeSelection.ts.html +274 -0
- package/coverage/lcov-report/tree/utils.ts.html +277 -0
- package/coverage/lcov-report/typography/SrOnly.tsx.html +352 -0
- package/coverage/lcov-report/typography/TextContainer.tsx.html +433 -0
- package/coverage/lcov-report/typography/Typography.tsx.html +1321 -0
- package/coverage/lcov-report/typography/WritingDirection.tsx.html +775 -0
- package/coverage/lcov-report/typography/index.html +116 -0
- package/coverage/lcov-report/useCSSTransition.ts.html +763 -0
- package/coverage/lcov-report/useCollapseTransition.ts.html +1429 -0
- package/coverage/lcov-report/useDraggable.ts.html +2458 -0
- package/coverage/lcov-report/useDropzone.ts.html +763 -0
- package/coverage/lcov-report/useEnsuredRef.ts.html +250 -0
- package/coverage/lcov-report/useExpandableLayout.ts.html +736 -0
- package/coverage/lcov-report/useExpansionPanels.ts.html +913 -0
- package/coverage/lcov-report/useHigherContrastChildren.tsx.html +355 -0
- package/coverage/lcov-report/useLayoutTree.ts.html +691 -0
- package/coverage/lcov-report/useLocalStorage.ts.html +1828 -0
- package/coverage/lcov-report/useMinWidthMediaQuery.ts.html +115 -0
- package/coverage/lcov-report/useRemoveToast.ts.html +160 -0
- package/coverage/lcov-report/useResizeObserver.ts.html +874 -0
- package/coverage/lcov-report/useResizingTextArea.ts.html +523 -0
- package/coverage/lcov-report/useTabList.ts.html +730 -0
- package/coverage/lcov-report/useTabs.ts.html +757 -0
- package/coverage/lcov-report/useThrottledFunction.ts.html +475 -0
- package/coverage/lcov-report/useTooltip.ts.html +1765 -0
- package/coverage/lcov-report/useTree.ts.html +286 -0
- package/coverage/lcov-report/utils/RecursiveRender.tsx.html +253 -0
- package/coverage/lcov-report/utils/RenderRecursively.tsx.html +688 -0
- package/coverage/lcov-report/utils/alphaNumericSort.ts.html +535 -0
- package/coverage/lcov-report/utils/caseInsensitiveFilter.ts.html +397 -0
- package/coverage/lcov-report/utils/filters.ts.html +463 -0
- package/coverage/lcov-report/utils/fuzzyFilter.ts.html +241 -0
- package/coverage/lcov-report/utils/index.html +146 -0
- package/coverage/lcov-report/utils/isElementVisible.ts.html +214 -0
- package/coverage/lcov-report/utils/parseCssLengthUnit.ts.html +280 -0
- package/coverage/lcov-report/utils/wait.ts.html +139 -0
- package/coverage/lcov-report/utils.ts.html +550 -0
- package/coverage/lcov-report/wait.ts.html +139 -0
- package/coverage/lcov-report/window-splitter/WindowSplitter.tsx.html +448 -0
- package/coverage/lcov-report/window-splitter/index.html +131 -0
- package/coverage/lcov-report/window-splitter/useControlledWindowSplitter.ts.html +562 -0
- package/coverage/lcov-report/window-splitter/useLocalStorageWindowSplitter.ts.html +331 -0
- package/coverage/lcov-report/window-splitter/useWindowSplitter.ts.html +562 -0
- package/coverage/lcov-report/window-splitter/useWindowSplitterDefault.ts.html +466 -0
- package/coverage/lcov-report/window-splitter/useWindowSplitterOrig.ts.html +598 -0
- package/coverage/lcov.info +1176 -0
- package/dist/CoreProviders.d.ts +62 -0
- package/dist/CoreProviders.js +55 -0
- package/dist/CoreProviders.js.map +1 -0
- package/dist/NoSsr.d.ts +42 -0
- package/dist/NoSsr.js +52 -0
- package/dist/NoSsr.js.map +1 -0
- package/dist/SsrProvider.d.ts +18 -0
- package/dist/SsrProvider.js +28 -0
- package/dist/SsrProvider.js.map +1 -0
- package/dist/_box-shadows.scss +206 -0
- package/dist/_colors.scss +1057 -0
- package/dist/_core.scss +465 -0
- package/dist/_utils.scss +259 -0
- package/dist/app-bar/AppBar.d.ts +144 -0
- package/dist/app-bar/AppBar.js +74 -0
- package/dist/app-bar/AppBar.js.map +1 -0
- package/dist/app-bar/AppBarTitle.d.ts +69 -0
- package/dist/app-bar/AppBarTitle.js +59 -0
- package/dist/app-bar/AppBarTitle.js.map +1 -0
- package/dist/app-bar/_app-bar.scss +256 -0
- package/dist/avatar/Avatar.d.ts +88 -0
- package/dist/avatar/Avatar.js +52 -0
- package/dist/avatar/Avatar.js.map +1 -0
- package/dist/avatar/_avatar.scss +161 -0
- package/dist/avatar/styles.d.ts +20 -0
- package/dist/avatar/styles.js +20 -0
- package/dist/avatar/styles.js.map +1 -0
- package/dist/badge/Badge.d.ts +68 -0
- package/dist/badge/Badge.js +70 -0
- package/dist/badge/Badge.js.map +1 -0
- package/dist/badge/_badge.scss +107 -0
- package/dist/box/Box.d.ts +111 -0
- package/dist/box/Box.js +128 -0
- package/dist/box/Box.js.map +1 -0
- package/dist/box/_box.scss +177 -0
- package/dist/box/styles.d.ts +108 -0
- package/dist/box/styles.js +33 -0
- package/dist/box/styles.js.map +1 -0
- package/dist/button/AsyncButton.d.ts +129 -0
- package/dist/button/AsyncButton.js +144 -0
- package/dist/button/AsyncButton.js.map +1 -0
- package/dist/button/Button.d.ts +106 -0
- package/dist/button/Button.js +142 -0
- package/dist/button/Button.js.map +1 -0
- package/dist/button/ButtonUnstyled.d.ts +21 -0
- package/dist/button/ButtonUnstyled.js +27 -0
- package/dist/button/ButtonUnstyled.js.map +1 -0
- package/dist/button/FloatingActionButton.d.ts +40 -0
- package/dist/button/FloatingActionButton.js +43 -0
- package/dist/button/FloatingActionButton.js.map +1 -0
- package/dist/button/_button.scss +340 -0
- package/dist/button/buttonStyles.d.ts +94 -0
- package/dist/button/buttonStyles.js +56 -0
- package/dist/button/buttonStyles.js.map +1 -0
- package/dist/button/buttonUnstyledStyles.d.ts +10 -0
- package/dist/button/buttonUnstyledStyles.js +11 -0
- package/dist/button/buttonUnstyledStyles.js.map +1 -0
- package/dist/card/Card.d.ts +56 -0
- package/dist/card/Card.js +59 -0
- package/dist/card/Card.js.map +1 -0
- package/dist/card/CardContent.d.ts +17 -0
- package/dist/card/CardContent.js +25 -0
- package/dist/card/CardContent.js.map +1 -0
- package/dist/card/CardFooter.d.ts +19 -0
- package/dist/card/CardFooter.js +25 -0
- package/dist/card/CardFooter.js.map +1 -0
- package/dist/card/CardHeader.d.ts +41 -0
- package/dist/card/CardHeader.js +40 -0
- package/dist/card/CardHeader.js.map +1 -0
- package/dist/card/CardSubtitle.d.ts +21 -0
- package/dist/card/CardSubtitle.js +25 -0
- package/dist/card/CardSubtitle.js.map +1 -0
- package/dist/card/CardTitle.d.ts +21 -0
- package/dist/card/CardTitle.js +25 -0
- package/dist/card/CardTitle.js.map +1 -0
- package/dist/card/_card.scss +190 -0
- package/dist/card/styles.d.ts +101 -0
- package/dist/card/styles.js +62 -0
- package/dist/card/styles.js.map +1 -0
- package/dist/chip/Chip.d.ts +178 -0
- package/dist/chip/Chip.js +141 -0
- package/dist/chip/Chip.js.map +1 -0
- package/dist/chip/_chip.scss +351 -0
- package/dist/chip/styles.d.ts +67 -0
- package/dist/chip/styles.js +32 -0
- package/dist/chip/styles.js.map +1 -0
- package/dist/cssUtils.d.ts +139 -0
- package/dist/cssUtils.js +19 -0
- package/dist/cssUtils.js.map +1 -0
- package/dist/delegateEvent.d.ts +54 -0
- package/dist/delegateEvent.js +105 -0
- package/dist/delegateEvent.js.map +1 -0
- package/dist/dialog/Dialog.d.ts +196 -0
- package/dist/dialog/Dialog.js +175 -0
- package/dist/dialog/Dialog.js.map +1 -0
- package/dist/dialog/DialogContainer.d.ts +16 -0
- package/dist/dialog/DialogContainer.js +22 -0
- package/dist/dialog/DialogContainer.js.map +1 -0
- package/dist/dialog/DialogContent.d.ts +10 -0
- package/dist/dialog/DialogContent.js +20 -0
- package/dist/dialog/DialogContent.js.map +1 -0
- package/dist/dialog/DialogFooter.d.ts +10 -0
- package/dist/dialog/DialogFooter.js +20 -0
- package/dist/dialog/DialogFooter.js.map +1 -0
- package/dist/dialog/DialogHeader.d.ts +8 -0
- package/dist/dialog/DialogHeader.js +20 -0
- package/dist/dialog/DialogHeader.js.map +1 -0
- package/dist/dialog/DialogTitle.d.ts +21 -0
- package/dist/dialog/DialogTitle.js +22 -0
- package/dist/dialog/DialogTitle.js.map +1 -0
- package/dist/dialog/FixedDialog.d.ts +74 -0
- package/dist/dialog/FixedDialog.js +111 -0
- package/dist/dialog/FixedDialog.js.map +1 -0
- package/dist/dialog/NestedDialogProvider.d.ts +4 -0
- package/dist/dialog/NestedDialogProvider.js +12 -0
- package/dist/dialog/NestedDialogProvider.js.map +1 -0
- package/dist/dialog/_dialog.scss +256 -0
- package/dist/dialog/styles.d.ts +49 -0
- package/dist/dialog/styles.js +34 -0
- package/dist/dialog/styles.js.map +1 -0
- package/dist/divider/Divider.d.ts +35 -0
- package/dist/divider/Divider.js +32 -0
- package/dist/divider/Divider.js.map +1 -0
- package/dist/divider/VerticalDivider.d.ts +32 -0
- package/dist/divider/VerticalDivider.js +40 -0
- package/dist/divider/VerticalDivider.js.map +1 -0
- package/dist/divider/_divider.scss +133 -0
- package/dist/divider/styles.d.ts +31 -0
- package/dist/divider/styles.js +14 -0
- package/dist/divider/styles.js.map +1 -0
- package/dist/divider/useVerticalDividerHeight.d.ts +37 -0
- package/dist/divider/useVerticalDividerHeight.js +40 -0
- package/dist/divider/useVerticalDividerHeight.js.map +1 -0
- package/dist/draggable/_draggable.scss +25 -0
- package/dist/draggable/useDraggable.d.ts +273 -0
- package/dist/draggable/useDraggable.js +425 -0
- package/dist/draggable/useDraggable.js.map +1 -0
- package/dist/draggable/utils.d.ts +88 -0
- package/dist/draggable/utils.js +146 -0
- package/dist/draggable/utils.js.map +1 -0
- package/dist/expansion-panel/ExpansionList.d.ts +19 -0
- package/dist/expansion-panel/ExpansionList.js +34 -0
- package/dist/expansion-panel/ExpansionList.js.map +1 -0
- package/dist/expansion-panel/ExpansionPanel.d.ts +164 -0
- package/dist/expansion-panel/ExpansionPanel.js +80 -0
- package/dist/expansion-panel/ExpansionPanel.js.map +1 -0
- package/dist/expansion-panel/ExpansionPanelHeader.d.ts +115 -0
- package/dist/expansion-panel/ExpansionPanelHeader.js +90 -0
- package/dist/expansion-panel/ExpansionPanelHeader.js.map +1 -0
- package/dist/expansion-panel/_expansion-panel.scss +81 -0
- package/dist/expansion-panel/useExpansionList.d.ts +52 -0
- package/dist/expansion-panel/useExpansionList.js +58 -0
- package/dist/expansion-panel/useExpansionList.js.map +1 -0
- package/dist/expansion-panel/useExpansionPanels.d.ts +178 -0
- package/dist/expansion-panel/useExpansionPanels.js +135 -0
- package/dist/expansion-panel/useExpansionPanels.js.map +1 -0
- package/dist/focus/useFocusContainer.d.ts +118 -0
- package/dist/focus/useFocusContainer.js +127 -0
- package/dist/focus/useFocusContainer.js.map +1 -0
- package/dist/focus/utils.d.ts +80 -0
- package/dist/focus/utils.js +99 -0
- package/dist/focus/utils.js.map +1 -0
- package/dist/form/Checkbox.d.ts +20 -0
- package/dist/form/Checkbox.js +28 -0
- package/dist/form/Checkbox.js.map +1 -0
- package/dist/form/Fieldset.d.ts +48 -0
- package/dist/form/Fieldset.js +46 -0
- package/dist/form/Fieldset.js.map +1 -0
- package/dist/form/FileInput.d.ts +105 -0
- package/dist/form/FileInput.js +115 -0
- package/dist/form/FileInput.js.map +1 -0
- package/dist/form/Form.d.ts +19 -0
- package/dist/form/Form.js +27 -0
- package/dist/form/Form.js.map +1 -0
- package/dist/form/FormMessage.d.ts +14 -0
- package/dist/form/FormMessage.js +55 -0
- package/dist/form/FormMessage.js.map +1 -0
- package/dist/form/FormMessageContainer.d.ts +22 -0
- package/dist/form/FormMessageContainer.js +31 -0
- package/dist/form/FormMessageContainer.js.map +1 -0
- package/dist/form/FormMessageCounter.d.ts +45 -0
- package/dist/form/FormMessageCounter.js +43 -0
- package/dist/form/FormMessageCounter.js.map +1 -0
- package/dist/form/InputToggle.d.ts +184 -0
- package/dist/form/InputToggle.js +82 -0
- package/dist/form/InputToggle.js.map +1 -0
- package/dist/form/InputToggleIcon.d.ts +52 -0
- package/dist/form/InputToggleIcon.js +54 -0
- package/dist/form/InputToggleIcon.js.map +1 -0
- package/dist/form/Label.d.ts +27 -0
- package/dist/form/Label.js +67 -0
- package/dist/form/Label.js.map +1 -0
- package/dist/form/Legend.d.ts +19 -0
- package/dist/form/Legend.js +25 -0
- package/dist/form/Legend.js.map +1 -0
- package/dist/form/MenuItemCheckbox.d.ts +34 -0
- package/dist/form/MenuItemCheckbox.js +43 -0
- package/dist/form/MenuItemCheckbox.js.map +1 -0
- package/dist/form/MenuItemFileInput.d.ts +48 -0
- package/dist/form/MenuItemFileInput.js +50 -0
- package/dist/form/MenuItemFileInput.js.map +1 -0
- package/dist/form/MenuItemInputToggle.d.ts +104 -0
- package/dist/form/MenuItemInputToggle.js +124 -0
- package/dist/form/MenuItemInputToggle.js.map +1 -0
- package/dist/form/MenuItemRadio.d.ts +105 -0
- package/dist/form/MenuItemRadio.js +115 -0
- package/dist/form/MenuItemRadio.js.map +1 -0
- package/dist/form/MenuItemSwitch.d.ts +33 -0
- package/dist/form/MenuItemSwitch.js +42 -0
- package/dist/form/MenuItemSwitch.js.map +1 -0
- package/dist/form/MenuItemTextField.d.ts +25 -0
- package/dist/form/MenuItemTextField.js +48 -0
- package/dist/form/MenuItemTextField.js.map +1 -0
- package/dist/form/NativeSelect.d.ts +86 -0
- package/dist/form/NativeSelect.js +128 -0
- package/dist/form/NativeSelect.js.map +1 -0
- package/dist/form/OptGroup.d.ts +59 -0
- package/dist/form/OptGroup.js +58 -0
- package/dist/form/OptGroup.js.map +1 -0
- package/dist/form/Option.d.ts +73 -0
- package/dist/form/Option.js +113 -0
- package/dist/form/Option.js.map +1 -0
- package/dist/form/Password.d.ts +120 -0
- package/dist/form/Password.js +74 -0
- package/dist/form/Password.js.map +1 -0
- package/dist/form/Radio.d.ts +23 -0
- package/dist/form/Radio.js +32 -0
- package/dist/form/Radio.js.map +1 -0
- package/dist/form/Select.d.ts +122 -0
- package/dist/form/Select.js +299 -0
- package/dist/form/Select.js.map +1 -0
- package/dist/form/SelectValue.d.ts +17 -0
- package/dist/form/SelectValue.js +32 -0
- package/dist/form/SelectValue.js.map +1 -0
- package/dist/form/Slider.d.ts +249 -0
- package/dist/form/Slider.js +243 -0
- package/dist/form/Slider.js.map +1 -0
- package/dist/form/SliderContainer.d.ts +48 -0
- package/dist/form/SliderContainer.js +40 -0
- package/dist/form/SliderContainer.js.map +1 -0
- package/dist/form/SliderMark.d.ts +17 -0
- package/dist/form/SliderMark.js +27 -0
- package/dist/form/SliderMark.js.map +1 -0
- package/dist/form/SliderMarkLabel.d.ts +26 -0
- package/dist/form/SliderMarkLabel.js +29 -0
- package/dist/form/SliderMarkLabel.js.map +1 -0
- package/dist/form/SliderThumb.d.ts +83 -0
- package/dist/form/SliderThumb.js +172 -0
- package/dist/form/SliderThumb.js.map +1 -0
- package/dist/form/SliderTrack.d.ts +21 -0
- package/dist/form/SliderTrack.js +66 -0
- package/dist/form/SliderTrack.js.map +1 -0
- package/dist/form/SliderValueMarks.d.ts +116 -0
- package/dist/form/SliderValueMarks.js +85 -0
- package/dist/form/SliderValueMarks.js.map +1 -0
- package/dist/form/SliderValueTooltip.d.ts +26 -0
- package/dist/form/SliderValueTooltip.js +45 -0
- package/dist/form/SliderValueTooltip.js.map +1 -0
- package/dist/form/Switch.d.ts +46 -0
- package/dist/form/Switch.js +105 -0
- package/dist/form/Switch.js.map +1 -0
- package/dist/form/SwitchTrack.d.ts +13 -0
- package/dist/form/SwitchTrack.js +30 -0
- package/dist/form/SwitchTrack.js.map +1 -0
- package/dist/form/TextArea.d.ts +74 -0
- package/dist/form/TextArea.js +154 -0
- package/dist/form/TextArea.js.map +1 -0
- package/dist/form/TextField.d.ts +96 -0
- package/dist/form/TextField.js +108 -0
- package/dist/form/TextField.js.map +1 -0
- package/dist/form/TextFieldAddon.d.ts +42 -0
- package/dist/form/TextFieldAddon.js +43 -0
- package/dist/form/TextFieldAddon.js.map +1 -0
- package/dist/form/TextFieldContainer.d.ts +21 -0
- package/dist/form/TextFieldContainer.js +54 -0
- package/dist/form/TextFieldContainer.js.map +1 -0
- package/dist/form/TextFieldContainerStyles.d.ts +34 -0
- package/dist/form/TextFieldContainerStyles.js +49 -0
- package/dist/form/TextFieldContainerStyles.js.map +1 -0
- package/dist/form/_form.scss +2066 -0
- package/dist/form/fileUtils.d.ts +455 -0
- package/dist/form/fileUtils.js +351 -0
- package/dist/form/fileUtils.js.map +1 -0
- package/dist/form/formConfig.d.ts +9 -0
- package/dist/form/formConfig.js +17 -0
- package/dist/form/formConfig.js.map +1 -0
- package/dist/form/formMessageStyles.d.ts +21 -0
- package/dist/form/formMessageStyles.js +28 -0
- package/dist/form/formMessageStyles.js.map +1 -0
- package/dist/form/inputToggleStyles.d.ts +36 -0
- package/dist/form/inputToggleStyles.js +23 -0
- package/dist/form/inputToggleStyles.js.map +1 -0
- package/dist/form/nativeSelectStyles.d.ts +26 -0
- package/dist/form/nativeSelectStyles.js +23 -0
- package/dist/form/nativeSelectStyles.js.map +1 -0
- package/dist/form/optionStyles.d.ts +12 -0
- package/dist/form/optionStyles.js +14 -0
- package/dist/form/optionStyles.js.map +1 -0
- package/dist/form/passwordStyles.d.ts +24 -0
- package/dist/form/passwordStyles.js +19 -0
- package/dist/form/passwordStyles.js.map +1 -0
- package/dist/form/selectStyles.d.ts +15 -0
- package/dist/form/selectStyles.js +15 -0
- package/dist/form/selectStyles.js.map +1 -0
- package/dist/form/selectUtils.d.ts +25 -0
- package/dist/form/selectUtils.js +71 -0
- package/dist/form/selectUtils.js.map +1 -0
- package/dist/form/sliderUtils.d.ts +74 -0
- package/dist/form/sliderUtils.js +124 -0
- package/dist/form/sliderUtils.js.map +1 -0
- package/dist/form/switchStyles.d.ts +17 -0
- package/dist/form/switchStyles.js +13 -0
- package/dist/form/switchStyles.js.map +1 -0
- package/dist/form/textAreaStyles.d.ts +50 -0
- package/dist/form/textAreaStyles.js +32 -0
- package/dist/form/textAreaStyles.js.map +1 -0
- package/dist/form/textFieldStyles.d.ts +17 -0
- package/dist/form/textFieldStyles.js +13 -0
- package/dist/form/textFieldStyles.js.map +1 -0
- package/dist/form/types.d.ts +447 -0
- package/dist/form/types.js +3 -0
- package/dist/form/types.js.map +1 -0
- package/dist/form/useCheckboxGroup.d.ts +239 -0
- package/dist/form/useCheckboxGroup.js +62 -0
- package/dist/form/useCheckboxGroup.js.map +1 -0
- package/dist/form/useFileUpload.d.ts +149 -0
- package/dist/form/useFileUpload.js +327 -0
- package/dist/form/useFileUpload.js.map +1 -0
- package/dist/form/useListboxProvider.d.ts +29 -0
- package/dist/form/useListboxProvider.js +23 -0
- package/dist/form/useListboxProvider.js.map +1 -0
- package/dist/form/useNumberField.d.ts +292 -0
- package/dist/form/useNumberField.js +123 -0
- package/dist/form/useNumberField.js.map +1 -0
- package/dist/form/useRadioGroup.d.ts +192 -0
- package/dist/form/useRadioGroup.js +78 -0
- package/dist/form/useRadioGroup.js.map +1 -0
- package/dist/form/useRangeSlider.d.ts +67 -0
- package/dist/form/useRangeSlider.js +57 -0
- package/dist/form/useRangeSlider.js.map +1 -0
- package/dist/form/useResizingTextArea.d.ts +35 -0
- package/dist/form/useResizingTextArea.js +87 -0
- package/dist/form/useResizingTextArea.js.map +1 -0
- package/dist/form/useSlider.d.ts +83 -0
- package/dist/form/useSlider.js +55 -0
- package/dist/form/useSlider.js.map +1 -0
- package/dist/form/useTextField.d.ts +389 -0
- package/dist/form/useTextField.js +185 -0
- package/dist/form/useTextField.js.map +1 -0
- package/dist/form/utils.d.ts +38 -0
- package/dist/form/utils.js +63 -0
- package/dist/form/utils.js.map +1 -0
- package/dist/form/validation.d.ts +152 -0
- package/dist/form/validation.js +93 -0
- package/dist/form/validation.js.map +1 -0
- package/dist/hoverMode/useHoverMode.d.ts +62 -0
- package/dist/hoverMode/useHoverMode.js +95 -0
- package/dist/hoverMode/useHoverMode.js.map +1 -0
- package/dist/hoverMode/useHoverModeProvider.d.ts +194 -0
- package/dist/hoverMode/useHoverModeProvider.js +156 -0
- package/dist/hoverMode/useHoverModeProvider.js.map +1 -0
- package/dist/icon/FontIcon.d.ts +23 -0
- package/dist/icon/FontIcon.js +35 -0
- package/dist/icon/FontIcon.js.map +1 -0
- package/dist/icon/IconRotator.d.ts +35 -0
- package/dist/icon/IconRotator.js +32 -0
- package/dist/icon/IconRotator.js.map +1 -0
- package/dist/icon/MaterialIcon.d.ts +16 -0
- package/dist/icon/MaterialIcon.js +29 -0
- package/dist/icon/MaterialIcon.js.map +1 -0
- package/dist/icon/MaterialIconsProvider.d.ts +12 -0
- package/dist/icon/MaterialIconsProvider.js +17 -0
- package/dist/icon/MaterialIconsProvider.js.map +1 -0
- package/dist/icon/MaterialSymbol.d.ts +49 -0
- package/dist/icon/MaterialSymbol.js +60 -0
- package/dist/icon/MaterialSymbol.js.map +1 -0
- package/dist/icon/MaterialSymbolsProvider.d.ts +145 -0
- package/dist/icon/MaterialSymbolsProvider.js +60 -0
- package/dist/icon/MaterialSymbolsProvider.js.map +1 -0
- package/dist/icon/SVGIcon.d.ts +71 -0
- package/dist/icon/SVGIcon.js +35 -0
- package/dist/icon/SVGIcon.js.map +1 -0
- package/dist/icon/TextIconSpacing.d.ts +123 -0
- package/dist/icon/TextIconSpacing.js +80 -0
- package/dist/icon/TextIconSpacing.js.map +1 -0
- package/dist/icon/_icon.scss +220 -0
- package/dist/icon/iconConfig.d.ts +238 -0
- package/dist/icon/iconConfig.js +175 -0
- package/dist/icon/iconConfig.js.map +1 -0
- package/dist/icon/material.d.ts +8 -0
- package/dist/icon/material.js +4 -0
- package/dist/icon/material.js.map +1 -0
- package/dist/icon/styles.d.ts +117 -0
- package/dist/icon/styles.js +38 -0
- package/dist/icon/styles.js.map +1 -0
- package/dist/index.d.ts +321 -0
- package/dist/index.js +322 -0
- package/dist/index.js.map +1 -0
- package/dist/interaction/Ripple.d.ts +22 -0
- package/dist/interaction/Ripple.js +46 -0
- package/dist/interaction/Ripple.js.map +1 -0
- package/dist/interaction/RippleContainer.d.ts +22 -0
- package/dist/interaction/RippleContainer.js +24 -0
- package/dist/interaction/RippleContainer.js.map +1 -0
- package/dist/interaction/UserInteractionModeProvider.d.ts +52 -0
- package/dist/interaction/UserInteractionModeProvider.js +154 -0
- package/dist/interaction/UserInteractionModeProvider.js.map +1 -0
- package/dist/interaction/_interaction.scss +427 -0
- package/dist/interaction/config.d.ts +12 -0
- package/dist/interaction/config.js +21 -0
- package/dist/interaction/config.js.map +1 -0
- package/dist/interaction/types.d.ts +153 -0
- package/dist/interaction/types.js +6 -0
- package/dist/interaction/types.js.map +1 -0
- package/dist/interaction/useElementInteraction.d.ts +119 -0
- package/dist/interaction/useElementInteraction.js +368 -0
- package/dist/interaction/useElementInteraction.js.map +1 -0
- package/dist/interaction/useHigherContrastChildren.d.ts +70 -0
- package/dist/interaction/useHigherContrastChildren.js +88 -0
- package/dist/interaction/useHigherContrastChildren.js.map +1 -0
- package/dist/interaction/utils.d.ts +16 -0
- package/dist/interaction/utils.js +90 -0
- package/dist/interaction/utils.js.map +1 -0
- package/dist/layout/LayoutAppBar.d.ts +54 -0
- package/dist/layout/LayoutAppBar.js +64 -0
- package/dist/layout/LayoutAppBar.js.map +1 -0
- package/dist/layout/LayoutNav.d.ts +117 -0
- package/dist/layout/LayoutNav.js +128 -0
- package/dist/layout/LayoutNav.js.map +1 -0
- package/dist/layout/LayoutWindowSplitter.d.ts +77 -0
- package/dist/layout/LayoutWindowSplitter.js +90 -0
- package/dist/layout/LayoutWindowSplitter.js.map +1 -0
- package/dist/layout/Main.d.ts +51 -0
- package/dist/layout/Main.js +54 -0
- package/dist/layout/Main.js.map +1 -0
- package/dist/layout/_layout.scss +156 -0
- package/dist/layout/layoutNavStyles.d.ts +16 -0
- package/dist/layout/layoutNavStyles.js +13 -0
- package/dist/layout/layoutNavStyles.js.map +1 -0
- package/dist/layout/layoutWindowSplitterStyles.d.ts +25 -0
- package/dist/layout/layoutWindowSplitterStyles.js +14 -0
- package/dist/layout/layoutWindowSplitterStyles.js.map +1 -0
- package/dist/layout/mainStyles.d.ts +26 -0
- package/dist/layout/mainStyles.js +13 -0
- package/dist/layout/mainStyles.js.map +1 -0
- package/dist/layout/useExpandableLayout.d.ts +124 -0
- package/dist/layout/useExpandableLayout.js +115 -0
- package/dist/layout/useExpandableLayout.js.map +1 -0
- package/dist/layout/useHorizontalLayoutTransition.d.ts +66 -0
- package/dist/layout/useHorizontalLayoutTransition.js +61 -0
- package/dist/layout/useHorizontalLayoutTransition.js.map +1 -0
- package/dist/layout/useLayoutAppBarHeight.d.ts +68 -0
- package/dist/layout/useLayoutAppBarHeight.js +82 -0
- package/dist/layout/useLayoutAppBarHeight.js.map +1 -0
- package/dist/layout/useLayoutTree.d.ts +139 -0
- package/dist/layout/useLayoutTree.js +122 -0
- package/dist/layout/useLayoutTree.js.map +1 -0
- package/dist/layout/useLayoutWindowSplitter.d.ts +92 -0
- package/dist/layout/useLayoutWindowSplitter.js +68 -0
- package/dist/layout/useLayoutWindowSplitter.js.map +1 -0
- package/dist/layout/useMainTabIndex.d.ts +7 -0
- package/dist/layout/useMainTabIndex.js +16 -0
- package/dist/layout/useMainTabIndex.js.map +1 -0
- package/dist/layout/useResizableLayout.d.ts +94 -0
- package/dist/layout/useResizableLayout.js +97 -0
- package/dist/layout/useResizableLayout.js.map +1 -0
- package/dist/layout/useTemporaryLayout.d.ts +99 -0
- package/dist/layout/useTemporaryLayout.js +96 -0
- package/dist/layout/useTemporaryLayout.js.map +1 -0
- package/dist/link/Link.d.ts +65 -0
- package/dist/link/Link.js +46 -0
- package/dist/link/Link.js.map +1 -0
- package/dist/link/LinkProvider.d.ts +29 -0
- package/dist/link/LinkProvider.js +26 -0
- package/dist/link/LinkProvider.js.map +1 -0
- package/dist/link/SkipToMainContent.d.ts +32 -0
- package/dist/link/SkipToMainContent.js +69 -0
- package/dist/link/SkipToMainContent.js.map +1 -0
- package/dist/link/_link.scss +141 -0
- package/dist/link/styles.d.ts +25 -0
- package/dist/link/styles.js +25 -0
- package/dist/link/styles.js.map +1 -0
- package/dist/list/List.d.ts +89 -0
- package/dist/list/List.js +72 -0
- package/dist/list/List.js.map +1 -0
- package/dist/list/ListItem.d.ts +121 -0
- package/dist/list/ListItem.js +147 -0
- package/dist/list/ListItem.js.map +1 -0
- package/dist/list/ListItemAddon.d.ts +22 -0
- package/dist/list/ListItemAddon.js +30 -0
- package/dist/list/ListItemAddon.js.map +1 -0
- package/dist/list/ListItemChildren.d.ts +39 -0
- package/dist/list/ListItemChildren.js +81 -0
- package/dist/list/ListItemChildren.js.map +1 -0
- package/dist/list/ListItemLink.d.ts +33 -0
- package/dist/list/ListItemLink.js +89 -0
- package/dist/list/ListItemLink.js.map +1 -0
- package/dist/list/ListItemText.d.ts +21 -0
- package/dist/list/ListItemText.js +34 -0
- package/dist/list/ListItemText.js.map +1 -0
- package/dist/list/ListSubheader.d.ts +34 -0
- package/dist/list/ListSubheader.js +37 -0
- package/dist/list/ListSubheader.js.map +1 -0
- package/dist/list/_list.scss +319 -0
- package/dist/list/getListItemHeight.d.ts +20 -0
- package/dist/list/getListItemHeight.js +28 -0
- package/dist/list/getListItemHeight.js.map +1 -0
- package/dist/list/listItemStyles.d.ts +106 -0
- package/dist/list/listItemStyles.js +45 -0
- package/dist/list/listItemStyles.js.map +1 -0
- package/dist/list/types.d.ts +174 -0
- package/dist/list/types.js +3 -0
- package/dist/list/types.js.map +1 -0
- package/dist/media-queries/AppSizeProvider.d.ts +39 -0
- package/dist/media-queries/AppSizeProvider.js +93 -0
- package/dist/media-queries/AppSizeProvider.js.map +1 -0
- package/dist/media-queries/_media-queries.scss +63 -0
- package/dist/media-queries/appSize.d.ts +89 -0
- package/dist/media-queries/appSize.js +21 -0
- package/dist/media-queries/appSize.js.map +1 -0
- package/dist/media-queries/useMediaQuery.d.ts +21 -0
- package/dist/media-queries/useMediaQuery.js +50 -0
- package/dist/media-queries/useMediaQuery.js.map +1 -0
- package/dist/menu/DropdownMenu.d.ts +77 -0
- package/dist/menu/DropdownMenu.js +178 -0
- package/dist/menu/DropdownMenu.js.map +1 -0
- package/dist/menu/Menu.d.ts +182 -0
- package/dist/menu/Menu.js +260 -0
- package/dist/menu/Menu.js.map +1 -0
- package/dist/menu/MenuBar.d.ts +61 -0
- package/dist/menu/MenuBar.js +80 -0
- package/dist/menu/MenuBar.js.map +1 -0
- package/dist/menu/MenuButton.d.ts +42 -0
- package/dist/menu/MenuButton.js +76 -0
- package/dist/menu/MenuButton.js.map +1 -0
- package/dist/menu/MenuConfigurationProvider.d.ts +82 -0
- package/dist/menu/MenuConfigurationProvider.js +80 -0
- package/dist/menu/MenuConfigurationProvider.js.map +1 -0
- package/dist/menu/MenuItem.d.ts +25 -0
- package/dist/menu/MenuItem.js +36 -0
- package/dist/menu/MenuItem.js.map +1 -0
- package/dist/menu/MenuItemButton.d.ts +19 -0
- package/dist/menu/MenuItemButton.js +125 -0
- package/dist/menu/MenuItemButton.js.map +1 -0
- package/dist/menu/MenuItemGroup.d.ts +75 -0
- package/dist/menu/MenuItemGroup.js +85 -0
- package/dist/menu/MenuItemGroup.js.map +1 -0
- package/dist/menu/MenuItemSeparator.d.ts +16 -0
- package/dist/menu/MenuItemSeparator.js +38 -0
- package/dist/menu/MenuItemSeparator.js.map +1 -0
- package/dist/menu/MenuSheet.d.ts +68 -0
- package/dist/menu/MenuSheet.js +53 -0
- package/dist/menu/MenuSheet.js.map +1 -0
- package/dist/menu/MenuVisibilityProvider.d.ts +46 -0
- package/dist/menu/MenuVisibilityProvider.js +65 -0
- package/dist/menu/MenuVisibilityProvider.js.map +1 -0
- package/dist/menu/MenuWidget.d.ts +37 -0
- package/dist/menu/MenuWidget.js +126 -0
- package/dist/menu/MenuWidget.js.map +1 -0
- package/dist/menu/MenuWidgetKeyboardProvider.d.ts +18 -0
- package/dist/menu/MenuWidgetKeyboardProvider.js +22 -0
- package/dist/menu/MenuWidgetKeyboardProvider.js.map +1 -0
- package/dist/menu/_menu.scss +137 -0
- package/dist/menu/useContextMenu.d.ts +78 -0
- package/dist/menu/useContextMenu.js +73 -0
- package/dist/menu/useContextMenu.js.map +1 -0
- package/dist/menu/useMenuBarProvider.d.ts +38 -0
- package/dist/menu/useMenuBarProvider.js +51 -0
- package/dist/menu/useMenuBarProvider.js.map +1 -0
- package/dist/menu/utils.d.ts +19 -0
- package/dist/menu/utils.js +32 -0
- package/dist/menu/utils.js.map +1 -0
- package/dist/movement/constants.d.ts +18 -0
- package/dist/movement/constants.js +55 -0
- package/dist/movement/constants.js.map +1 -0
- package/dist/movement/findMatchIndex.d.ts +54 -0
- package/dist/movement/findMatchIndex.js +58 -0
- package/dist/movement/findMatchIndex.js.map +1 -0
- package/dist/movement/types.d.ts +230 -0
- package/dist/movement/types.js +6 -0
- package/dist/movement/types.js.map +1 -0
- package/dist/movement/useKeyboardMovementProvider.d.ts +133 -0
- package/dist/movement/useKeyboardMovementProvider.js +410 -0
- package/dist/movement/useKeyboardMovementProvider.js.map +1 -0
- package/dist/movement/utils.d.ts +89 -0
- package/dist/movement/utils.js +159 -0
- package/dist/movement/utils.js.map +1 -0
- package/dist/overlay/Overlay.d.ts +69 -0
- package/dist/overlay/Overlay.js +69 -0
- package/dist/overlay/Overlay.js.map +1 -0
- package/dist/overlay/_overlay.scss +77 -0
- package/dist/overlay/overlayStyles.d.ts +33 -0
- package/dist/overlay/overlayStyles.js +28 -0
- package/dist/overlay/overlayStyles.js.map +1 -0
- package/dist/portal/Portal.d.ts +32 -0
- package/dist/portal/Portal.js +35 -0
- package/dist/portal/Portal.js.map +1 -0
- package/dist/portal/PortalContainerProvider.d.ts +34 -0
- package/dist/portal/PortalContainerProvider.js +55 -0
- package/dist/portal/PortalContainerProvider.js.map +1 -0
- package/dist/positioning/constants.d.ts +26 -0
- package/dist/positioning/constants.js +102 -0
- package/dist/positioning/constants.js.map +1 -0
- package/dist/positioning/createHorizontalPosition.d.ts +99 -0
- package/dist/positioning/createHorizontalPosition.js +249 -0
- package/dist/positioning/createHorizontalPosition.js.map +1 -0
- package/dist/positioning/createVerticalPosition.d.ts +86 -0
- package/dist/positioning/createVerticalPosition.js +227 -0
- package/dist/positioning/createVerticalPosition.js.map +1 -0
- package/dist/positioning/getFixedPosition.d.ts +33 -0
- package/dist/positioning/getFixedPosition.js +146 -0
- package/dist/positioning/getFixedPosition.js.map +1 -0
- package/dist/positioning/types.d.ts +227 -0
- package/dist/positioning/types.js +22 -0
- package/dist/positioning/types.js.map +1 -0
- package/dist/positioning/useFixedPositioning.d.ts +163 -0
- package/dist/positioning/useFixedPositioning.js +243 -0
- package/dist/positioning/useFixedPositioning.js.map +1 -0
- package/dist/positioning/utils.d.ts +167 -0
- package/dist/positioning/utils.js +245 -0
- package/dist/positioning/utils.js.map +1 -0
- package/dist/progress/CircularProgress.d.ts +121 -0
- package/dist/progress/CircularProgress.js +104 -0
- package/dist/progress/CircularProgress.js.map +1 -0
- package/dist/progress/LinearProgress.d.ts +74 -0
- package/dist/progress/LinearProgress.js +116 -0
- package/dist/progress/LinearProgress.js.map +1 -0
- package/dist/progress/_progress.scss +577 -0
- package/dist/progress/getProgressA11y.d.ts +12 -0
- package/dist/progress/getProgressA11y.js +17 -0
- package/dist/progress/getProgressA11y.js.map +1 -0
- package/dist/progress/types.d.ts +70 -0
- package/dist/progress/types.js +7 -0
- package/dist/progress/types.js.map +1 -0
- package/dist/responsive-item/ResponsiveItemContainer.d.ts +122 -0
- package/dist/responsive-item/ResponsiveItemContainer.js +85 -0
- package/dist/responsive-item/ResponsiveItemContainer.js.map +1 -0
- package/dist/responsive-item/ResponsiveItemOverlay.d.ts +55 -0
- package/dist/responsive-item/ResponsiveItemOverlay.js +55 -0
- package/dist/responsive-item/ResponsiveItemOverlay.js.map +1 -0
- package/dist/responsive-item/_responsive-item.scss +194 -0
- package/dist/responsive-item/styles.d.ts +34 -0
- package/dist/responsive-item/styles.js +17 -0
- package/dist/responsive-item/styles.js.map +1 -0
- package/dist/scroll/ScrollLock.d.ts +10 -0
- package/dist/scroll/ScrollLock.js +16 -0
- package/dist/scroll/ScrollLock.js.map +1 -0
- package/dist/scroll/getScrollbarWidth.d.ts +4 -0
- package/dist/scroll/getScrollbarWidth.js +26 -0
- package/dist/scroll/getScrollbarWidth.js.map +1 -0
- package/dist/scroll/useScrollLock.d.ts +14 -0
- package/dist/scroll/useScrollLock.js +47 -0
- package/dist/scroll/useScrollLock.js.map +1 -0
- package/dist/segmented-button/SegmentedButton.d.ts +88 -0
- package/dist/segmented-button/SegmentedButton.js +98 -0
- package/dist/segmented-button/SegmentedButton.js.map +1 -0
- package/dist/segmented-button/SegmentedButtonContainer.d.ts +39 -0
- package/dist/segmented-button/SegmentedButtonContainer.js +46 -0
- package/dist/segmented-button/SegmentedButtonContainer.js.map +1 -0
- package/dist/segmented-button/_segmented-button.scss +209 -0
- package/dist/segmented-button/segmentedButtonContainerStyles.d.ts +12 -0
- package/dist/segmented-button/segmentedButtonContainerStyles.js +13 -0
- package/dist/segmented-button/segmentedButtonContainerStyles.js.map +1 -0
- package/dist/segmented-button/segmentedButtonStyles.d.ts +18 -0
- package/dist/segmented-button/segmentedButtonStyles.js +16 -0
- package/dist/segmented-button/segmentedButtonStyles.js.map +1 -0
- package/dist/sheet/Sheet.d.ts +38 -0
- package/dist/sheet/Sheet.js +46 -0
- package/dist/sheet/Sheet.js.map +1 -0
- package/dist/sheet/_sheet.scss +205 -0
- package/dist/sheet/styles.d.ts +58 -0
- package/dist/sheet/styles.js +22 -0
- package/dist/sheet/styles.js.map +1 -0
- package/dist/snackbar/DefaultToastRenderer.d.ts +34 -0
- package/dist/snackbar/DefaultToastRenderer.js +107 -0
- package/dist/snackbar/DefaultToastRenderer.js.map +1 -0
- package/dist/snackbar/Snackbar.d.ts +133 -0
- package/dist/snackbar/Snackbar.js +63 -0
- package/dist/snackbar/Snackbar.js.map +1 -0
- package/dist/snackbar/Toast.d.ts +105 -0
- package/dist/snackbar/Toast.js +93 -0
- package/dist/snackbar/Toast.js.map +1 -0
- package/dist/snackbar/ToastActionButton.d.ts +27 -0
- package/dist/snackbar/ToastActionButton.js +40 -0
- package/dist/snackbar/ToastActionButton.js.map +1 -0
- package/dist/snackbar/ToastCloseButton.d.ts +34 -0
- package/dist/snackbar/ToastCloseButton.js +44 -0
- package/dist/snackbar/ToastCloseButton.js.map +1 -0
- package/dist/snackbar/ToastContent.d.ts +33 -0
- package/dist/snackbar/ToastContent.js +47 -0
- package/dist/snackbar/ToastContent.js.map +1 -0
- package/dist/snackbar/ToastManager.d.ts +290 -0
- package/dist/snackbar/ToastManager.js +460 -0
- package/dist/snackbar/ToastManager.js.map +1 -0
- package/dist/snackbar/ToastManagerProvider.d.ts +53 -0
- package/dist/snackbar/ToastManagerProvider.js +69 -0
- package/dist/snackbar/ToastManagerProvider.js.map +1 -0
- package/dist/snackbar/_snackbar.scss +262 -0
- package/dist/snackbar/snackbarStyles.d.ts +16 -0
- package/dist/snackbar/snackbarStyles.js +17 -0
- package/dist/snackbar/snackbarStyles.js.map +1 -0
- package/dist/snackbar/toastContentStyles.d.ts +18 -0
- package/dist/snackbar/toastContentStyles.js +15 -0
- package/dist/snackbar/toastContentStyles.js.map +1 -0
- package/dist/snackbar/toastStyles.d.ts +28 -0
- package/dist/snackbar/toastStyles.js +21 -0
- package/dist/snackbar/toastStyles.js.map +1 -0
- package/dist/snackbar/useCurrentToastActions.d.ts +31 -0
- package/dist/snackbar/useCurrentToastActions.js +22 -0
- package/dist/snackbar/useCurrentToastActions.js.map +1 -0
- package/dist/suspense/CircularProgressSuspense.d.ts +35 -0
- package/dist/suspense/CircularProgressSuspense.js +39 -0
- package/dist/suspense/CircularProgressSuspense.js.map +1 -0
- package/dist/suspense/NullSuspense.d.ts +33 -0
- package/dist/suspense/NullSuspense.js +35 -0
- package/dist/suspense/NullSuspense.js.map +1 -0
- package/dist/table/Table.d.ts +86 -0
- package/dist/table/Table.js +99 -0
- package/dist/table/Table.js.map +1 -0
- package/dist/table/TableBody.d.ts +11 -0
- package/dist/table/TableBody.js +48 -0
- package/dist/table/TableBody.js.map +1 -0
- package/dist/table/TableCell.d.ts +202 -0
- package/dist/table/TableCell.js +79 -0
- package/dist/table/TableCell.js.map +1 -0
- package/dist/table/TableCellContent.d.ts +42 -0
- package/dist/table/TableCellContent.js +48 -0
- package/dist/table/TableCellContent.js.map +1 -0
- package/dist/table/TableCheckbox.d.ts +120 -0
- package/dist/table/TableCheckbox.js +113 -0
- package/dist/table/TableCheckbox.js.map +1 -0
- package/dist/table/TableConfigurationProvider.d.ts +88 -0
- package/dist/table/TableConfigurationProvider.js +43 -0
- package/dist/table/TableConfigurationProvider.js.map +1 -0
- package/dist/table/TableContainer.d.ts +17 -0
- package/dist/table/TableContainer.js +41 -0
- package/dist/table/TableContainer.js.map +1 -0
- package/dist/table/TableContainerProvider.d.ts +24 -0
- package/dist/table/TableContainerProvider.js +26 -0
- package/dist/table/TableContainerProvider.js.map +1 -0
- package/dist/table/TableFooter.d.ts +26 -0
- package/dist/table/TableFooter.js +96 -0
- package/dist/table/TableFooter.js.map +1 -0
- package/dist/table/TableHeader.d.ts +41 -0
- package/dist/table/TableHeader.js +114 -0
- package/dist/table/TableHeader.js.map +1 -0
- package/dist/table/TableRow.d.ts +35 -0
- package/dist/table/TableRow.js +42 -0
- package/dist/table/TableRow.js.map +1 -0
- package/dist/table/_table.scss +462 -0
- package/dist/table/types.d.ts +75 -0
- package/dist/table/types.js +3 -0
- package/dist/table/types.js.map +1 -0
- package/dist/tabs/Tab.d.ts +52 -0
- package/dist/tabs/Tab.js +63 -0
- package/dist/tabs/Tab.js.map +1 -0
- package/dist/tabs/TabList.d.ts +107 -0
- package/dist/tabs/TabList.js +85 -0
- package/dist/tabs/TabList.js.map +1 -0
- package/dist/tabs/TabListScrollButton.d.ts +32 -0
- package/dist/tabs/TabListScrollButton.js +78 -0
- package/dist/tabs/TabListScrollButton.js.map +1 -0
- package/dist/tabs/_tabs.scss +262 -0
- package/dist/tabs/tabIndicatorStyles.d.ts +12 -0
- package/dist/tabs/tabIndicatorStyles.js +14 -0
- package/dist/tabs/tabIndicatorStyles.js.map +1 -0
- package/dist/tabs/tabListScrollButtonStyles.d.ts +21 -0
- package/dist/tabs/tabListScrollButtonStyles.js +20 -0
- package/dist/tabs/tabListScrollButtonStyles.js.map +1 -0
- package/dist/tabs/tabListStyles.d.ts +21 -0
- package/dist/tabs/tabListStyles.js +21 -0
- package/dist/tabs/tabListStyles.js.map +1 -0
- package/dist/tabs/tabStyles.d.ts +23 -0
- package/dist/tabs/tabStyles.js +21 -0
- package/dist/tabs/tabStyles.js.map +1 -0
- package/dist/tabs/useTabList.d.ts +51 -0
- package/dist/tabs/useTabList.js +128 -0
- package/dist/tabs/useTabList.js.map +1 -0
- package/dist/tabs/useTabs.d.ts +387 -0
- package/dist/tabs/useTabs.js +77 -0
- package/dist/tabs/useTabs.js.map +1 -0
- package/dist/tabs/utils.d.ts +35 -0
- package/dist/tabs/utils.js +49 -0
- package/dist/tabs/utils.js.map +1 -0
- package/dist/test-utils/IntersectionObserver.js +54 -0
- package/dist/test-utils/IntersectionObserver.js.map +1 -0
- package/dist/test-utils/ResizeObserver.js +252 -0
- package/dist/test-utils/ResizeObserver.js.map +1 -0
- package/dist/test-utils/index.js +9 -0
- package/dist/test-utils/index.js.map +1 -0
- package/dist/test-utils/jest-setup.js +10 -0
- package/dist/test-utils/jest-setup.js.map +1 -0
- package/dist/test-utils/matchMedia.js +114 -0
- package/dist/test-utils/matchMedia.js.map +1 -0
- package/dist/test-utils/polyfills/IntersectionObserver.js +6 -0
- package/dist/test-utils/polyfills/IntersectionObserver.js.map +1 -0
- package/dist/test-utils/polyfills/ResizeObserver.js +6 -0
- package/dist/test-utils/polyfills/ResizeObserver.js.map +1 -0
- package/dist/test-utils/polyfills/index.js +7 -0
- package/dist/test-utils/polyfills/index.js.map +1 -0
- package/dist/test-utils/polyfills/matchMedia.js +9 -0
- package/dist/test-utils/polyfills/matchMedia.js.map +1 -0
- package/dist/test-utils/polyfills/offsetParent.js +30 -0
- package/dist/test-utils/polyfills/offsetParent.js.map +1 -0
- package/dist/test-utils/polyfills/scrollIntoView.js +8 -0
- package/dist/test-utils/polyfills/scrollIntoView.js.map +1 -0
- package/dist/test-utils/render.js +22 -0
- package/dist/test-utils/render.js.map +1 -0
- package/dist/test-utils/timers.js +43 -0
- package/dist/test-utils/timers.js.map +1 -0
- package/dist/theme/LocalStorageColorSchemeProvider.d.ts +95 -0
- package/dist/theme/LocalStorageColorSchemeProvider.js +88 -0
- package/dist/theme/LocalStorageColorSchemeProvider.js.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +217 -0
- package/dist/theme/ThemeProvider.js +273 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/theme/_a11y.scss +114 -0
- package/dist/theme/_colors.scss +1057 -0
- package/dist/theme/_theme.scss +409 -0
- package/dist/theme/colors.d.ts +256 -0
- package/dist/theme/colors.js +258 -0
- package/dist/theme/colors.js.map +1 -0
- package/dist/theme/cssVars.d.ts +15 -0
- package/dist/theme/cssVars.js +17 -0
- package/dist/theme/cssVars.js.map +1 -0
- package/dist/theme/types.d.ts +34 -0
- package/dist/theme/types.js +25 -0
- package/dist/theme/types.js.map +1 -0
- package/dist/theme/useCSSVariables.d.ts +90 -0
- package/dist/theme/useCSSVariables.js +57 -0
- package/dist/theme/useCSSVariables.js.map +1 -0
- package/dist/theme/useColorScheme.d.ts +115 -0
- package/dist/theme/useColorScheme.js +94 -0
- package/dist/theme/useColorScheme.js.map +1 -0
- package/dist/theme/useColorSchemeMetaTag.d.ts +20 -0
- package/dist/theme/useColorSchemeMetaTag.js +39 -0
- package/dist/theme/useColorSchemeMetaTag.js.map +1 -0
- package/dist/theme/useColorSchemeProvider.d.ts +67 -0
- package/dist/theme/useColorSchemeProvider.js +31 -0
- package/dist/theme/useColorSchemeProvider.js.map +1 -0
- package/dist/theme/usePrefersColorScheme.d.ts +7 -0
- package/dist/theme/usePrefersColorScheme.js +12 -0
- package/dist/theme/usePrefersColorScheme.js.map +1 -0
- package/dist/theme/utils.d.ts +75 -0
- package/dist/theme/utils.js +138 -0
- package/dist/theme/utils.js.map +1 -0
- package/dist/tooltip/Tooltip.d.ts +65 -0
- package/dist/tooltip/Tooltip.js +74 -0
- package/dist/tooltip/Tooltip.js.map +1 -0
- package/dist/tooltip/TooltipHoverModeProvider.d.ts +44 -0
- package/dist/tooltip/TooltipHoverModeProvider.js +59 -0
- package/dist/tooltip/TooltipHoverModeProvider.js.map +1 -0
- package/dist/tooltip/_tooltip.scss +161 -0
- package/dist/tooltip/constants.d.ts +22 -0
- package/dist/tooltip/constants.js +25 -0
- package/dist/tooltip/constants.js.map +1 -0
- package/dist/tooltip/tooltipStyles.d.ts +14 -0
- package/dist/tooltip/tooltipStyles.js +17 -0
- package/dist/tooltip/tooltipStyles.js.map +1 -0
- package/dist/tooltip/useOverflowTooltip.d.ts +61 -0
- package/dist/tooltip/useOverflowTooltip.js +71 -0
- package/dist/tooltip/useOverflowTooltip.js.map +1 -0
- package/dist/tooltip/useTooltip.d.ts +242 -0
- package/dist/tooltip/useTooltip.js +258 -0
- package/dist/tooltip/useTooltip.js.map +1 -0
- package/dist/tooltip/useTooltipPosition.d.ts +55 -0
- package/dist/tooltip/useTooltipPosition.js +39 -0
- package/dist/tooltip/useTooltipPosition.js.map +1 -0
- package/dist/tooltip/utils.d.ts +11 -0
- package/dist/tooltip/utils.js +34 -0
- package/dist/tooltip/utils.js.map +1 -0
- package/dist/transition/CSSTransition.d.ts +71 -0
- package/dist/transition/CSSTransition.js +78 -0
- package/dist/transition/CSSTransition.js.map +1 -0
- package/dist/transition/Collapse.d.ts +62 -0
- package/dist/transition/Collapse.js +54 -0
- package/dist/transition/Collapse.js.map +1 -0
- package/dist/transition/CrossFade.d.ts +88 -0
- package/dist/transition/CrossFade.js +86 -0
- package/dist/transition/CrossFade.js.map +1 -0
- package/dist/transition/ScaleTransition.d.ts +61 -0
- package/dist/transition/ScaleTransition.js +64 -0
- package/dist/transition/ScaleTransition.js.map +1 -0
- package/dist/transition/SkeletonPlaceholder.d.ts +125 -0
- package/dist/transition/SkeletonPlaceholder.js +126 -0
- package/dist/transition/SkeletonPlaceholder.js.map +1 -0
- package/dist/transition/Slide.d.ts +29 -0
- package/dist/transition/Slide.js +42 -0
- package/dist/transition/Slide.js.map +1 -0
- package/dist/transition/SlideContainer.d.ts +157 -0
- package/dist/transition/SlideContainer.js +124 -0
- package/dist/transition/SlideContainer.js.map +1 -0
- package/dist/transition/_transition.scss +354 -0
- package/dist/transition/collapseStyles.d.ts +14 -0
- package/dist/transition/collapseStyles.js +16 -0
- package/dist/transition/collapseStyles.js.map +1 -0
- package/dist/transition/maxWidthTransition.d.ts +6 -0
- package/dist/transition/maxWidthTransition.js +12 -0
- package/dist/transition/maxWidthTransition.js.map +1 -0
- package/dist/transition/types.d.ts +544 -0
- package/dist/transition/types.js +11 -0
- package/dist/transition/types.js.map +1 -0
- package/dist/transition/useCSSTransition.d.ts +147 -0
- package/dist/transition/useCSSTransition.js +191 -0
- package/dist/transition/useCSSTransition.js.map +1 -0
- package/dist/transition/useCarousel.d.ts +158 -0
- package/dist/transition/useCarousel.js +171 -0
- package/dist/transition/useCarousel.js.map +1 -0
- package/dist/transition/useCollapseTransition.d.ts +261 -0
- package/dist/transition/useCollapseTransition.js +226 -0
- package/dist/transition/useCollapseTransition.js.map +1 -0
- package/dist/transition/useCrossFadeTransition.d.ts +87 -0
- package/dist/transition/useCrossFadeTransition.js +80 -0
- package/dist/transition/useCrossFadeTransition.js.map +1 -0
- package/dist/transition/useMaxWidthTransition.d.ts +15 -0
- package/dist/transition/useMaxWidthTransition.js +22 -0
- package/dist/transition/useMaxWidthTransition.js.map +1 -0
- package/dist/transition/useScaleTransition.d.ts +95 -0
- package/dist/transition/useScaleTransition.js +95 -0
- package/dist/transition/useScaleTransition.js.map +1 -0
- package/dist/transition/useSkeletonPlaceholder.d.ts +188 -0
- package/dist/transition/useSkeletonPlaceholder.js +68 -0
- package/dist/transition/useSkeletonPlaceholder.js.map +1 -0
- package/dist/transition/useSlideTransition.d.ts +75 -0
- package/dist/transition/useSlideTransition.js +89 -0
- package/dist/transition/useSlideTransition.js.map +1 -0
- package/dist/transition/useTransition.d.ts +11 -0
- package/dist/transition/useTransition.js +233 -0
- package/dist/transition/useTransition.js.map +1 -0
- package/dist/transition/utils.d.ts +44 -0
- package/dist/transition/utils.js +94 -0
- package/dist/transition/utils.js.map +1 -0
- package/dist/tree/DefaultTreeItemRenderer.d.ts +16 -0
- package/dist/tree/DefaultTreeItemRenderer.js +44 -0
- package/dist/tree/DefaultTreeItemRenderer.js.map +1 -0
- package/dist/tree/Tree.d.ts +195 -0
- package/dist/tree/Tree.js +133 -0
- package/dist/tree/Tree.js.map +1 -0
- package/dist/tree/TreeGroup.d.ts +28 -0
- package/dist/tree/TreeGroup.js +56 -0
- package/dist/tree/TreeGroup.js.map +1 -0
- package/dist/tree/TreeItem.d.ts +63 -0
- package/dist/tree/TreeItem.js +176 -0
- package/dist/tree/TreeItem.js.map +1 -0
- package/dist/tree/TreeItemExpander.d.ts +22 -0
- package/dist/tree/TreeItemExpander.js +54 -0
- package/dist/tree/TreeItemExpander.js.map +1 -0
- package/dist/tree/TreeProvider.d.ts +94 -0
- package/dist/tree/TreeProvider.js +67 -0
- package/dist/tree/TreeProvider.js.map +1 -0
- package/dist/tree/_tree.scss +174 -0
- package/dist/tree/styles.d.ts +86 -0
- package/dist/tree/styles.js +59 -0
- package/dist/tree/styles.js.map +1 -0
- package/dist/tree/types.d.ts +126 -0
- package/dist/tree/types.js +30 -0
- package/dist/tree/types.js.map +1 -0
- package/dist/tree/useTree.d.ts +50 -0
- package/dist/tree/useTree.js +35 -0
- package/dist/tree/useTree.js.map +1 -0
- package/dist/tree/useTreeExpansion.d.ts +18 -0
- package/dist/tree/useTreeExpansion.js +29 -0
- package/dist/tree/useTreeExpansion.js.map +1 -0
- package/dist/tree/useTreeItems.d.ts +58 -0
- package/dist/tree/useTreeItems.js +75 -0
- package/dist/tree/useTreeItems.js.map +1 -0
- package/dist/tree/useTreeMovement.d.ts +36 -0
- package/dist/tree/useTreeMovement.js +126 -0
- package/dist/tree/useTreeMovement.js.map +1 -0
- package/dist/tree/useTreeSelection.d.ts +20 -0
- package/dist/tree/useTreeSelection.js +37 -0
- package/dist/tree/useTreeSelection.js.map +1 -0
- package/dist/tree/utils.d.ts +29 -0
- package/dist/tree/utils.js +51 -0
- package/dist/tree/utils.js.map +1 -0
- package/dist/types.d.ts +150 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/dist/typography/SrOnly.d.ts +44 -0
- package/dist/typography/SrOnly.js +42 -0
- package/dist/typography/SrOnly.js.map +1 -0
- package/dist/typography/TextContainer.d.ts +80 -0
- package/dist/typography/TextContainer.js +76 -0
- package/dist/typography/TextContainer.js.map +1 -0
- package/dist/typography/Typography.d.ts +189 -0
- package/dist/typography/Typography.js +183 -0
- package/dist/typography/Typography.js.map +1 -0
- package/dist/typography/WritingDirectionProvider.d.ts +152 -0
- package/dist/typography/WritingDirectionProvider.js +171 -0
- package/dist/typography/WritingDirectionProvider.js.map +1 -0
- package/dist/typography/_typography.scss +345 -0
- package/dist/useAsyncAction.d.ts +155 -0
- package/dist/useAsyncAction.js +161 -0
- package/dist/useAsyncAction.js.map +1 -0
- package/dist/useDebouncedFunction.d.ts +83 -0
- package/dist/useDebouncedFunction.js +101 -0
- package/dist/useDebouncedFunction.js.map +1 -0
- package/dist/useDropzone.d.ts +127 -0
- package/dist/useDropzone.js +154 -0
- package/dist/useDropzone.js.map +1 -0
- package/dist/useEnsuredId.d.ts +21 -0
- package/dist/useEnsuredId.js +26 -0
- package/dist/useEnsuredId.js.map +1 -0
- package/dist/useEnsuredRef.d.ts +38 -0
- package/dist/useEnsuredRef.js +45 -0
- package/dist/useEnsuredRef.js.map +1 -0
- package/dist/useEnsuredState.d.ts +19 -0
- package/dist/useEnsuredState.js +25 -0
- package/dist/useEnsuredState.js.map +1 -0
- package/dist/useHtmlClassName.d.ts +4 -0
- package/dist/useHtmlClassName.js +20 -0
- package/dist/useHtmlClassName.js.map +1 -0
- package/dist/useIntersectionObserver.d.ts +241 -0
- package/dist/useIntersectionObserver.js +120 -0
- package/dist/useIntersectionObserver.js.map +1 -0
- package/dist/useIsomorphicLayoutEffect.d.ts +8 -0
- package/dist/useIsomorphicLayoutEffect.js +10 -0
- package/dist/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/useLocalStorage.d.ts +373 -0
- package/dist/useLocalStorage.js +381 -0
- package/dist/useLocalStorage.js.map +1 -0
- package/dist/useOrientation.d.ts +21 -0
- package/dist/useOrientation.js +54 -0
- package/dist/useOrientation.js.map +1 -0
- package/dist/usePageInactive.d.ts +73 -0
- package/dist/usePageInactive.js +71 -0
- package/dist/usePageInactive.js.map +1 -0
- package/dist/useResizeListener.d.ts +64 -0
- package/dist/useResizeListener.js +70 -0
- package/dist/useResizeListener.js.map +1 -0
- package/dist/useResizeObserver.d.ts +151 -0
- package/dist/useResizeObserver.js +173 -0
- package/dist/useResizeObserver.js.map +1 -0
- package/dist/useThrottledFunction.d.ts +82 -0
- package/dist/useThrottledFunction.js +114 -0
- package/dist/useThrottledFunction.js.map +1 -0
- package/dist/useToggle.d.ts +34 -0
- package/dist/useToggle.js +41 -0
- package/dist/useToggle.js.map +1 -0
- package/dist/useUnmounted.d.ts +31 -0
- package/dist/useUnmounted.js +42 -0
- package/dist/useUnmounted.js.map +1 -0
- package/dist/useWindowSize.d.ts +57 -0
- package/dist/useWindowSize.js +63 -0
- package/dist/useWindowSize.js.map +1 -0
- package/dist/utils/RenderRecursively.d.ts +149 -0
- package/dist/utils/RenderRecursively.js +121 -0
- package/dist/utils/RenderRecursively.js.map +1 -0
- package/dist/utils/alphaNumericSort.d.ts +101 -0
- package/dist/utils/alphaNumericSort.js +32 -0
- package/dist/utils/alphaNumericSort.js.map +1 -0
- package/dist/utils/applyRef.d.ts +32 -0
- package/dist/utils/applyRef.js +41 -0
- package/dist/utils/applyRef.js.map +1 -0
- package/dist/utils/bem.d.ts +46 -0
- package/dist/utils/bem.js +86 -0
- package/dist/utils/bem.js.map +1 -0
- package/dist/utils/filters.d.ts +196 -0
- package/dist/utils/filters.js +67 -0
- package/dist/utils/filters.js.map +1 -0
- package/dist/utils/getClientPosition.d.ts +31 -0
- package/dist/utils/getClientPosition.js +17 -0
- package/dist/utils/getClientPosition.js.map +1 -0
- package/dist/utils/getPercentage.d.ts +34 -0
- package/dist/utils/getPercentage.js +27 -0
- package/dist/utils/getPercentage.js.map +1 -0
- package/dist/utils/getRangeDefaultValue.d.ts +16 -0
- package/dist/utils/getRangeDefaultValue.js +23 -0
- package/dist/utils/getRangeDefaultValue.js.map +1 -0
- package/dist/utils/getRangeSteps.d.ts +19 -0
- package/dist/utils/getRangeSteps.js +17 -0
- package/dist/utils/getRangeSteps.js.map +1 -0
- package/dist/utils/identity.d.ts +5 -0
- package/dist/utils/identity.js +6 -0
- package/dist/utils/identity.js.map +1 -0
- package/dist/utils/isElementVisible.d.ts +27 -0
- package/dist/utils/isElementVisible.js +39 -0
- package/dist/utils/isElementVisible.js.map +1 -0
- package/dist/utils/loop.d.ts +42 -0
- package/dist/utils/loop.js +27 -0
- package/dist/utils/loop.js.map +1 -0
- package/dist/utils/nearest.d.ts +22 -0
- package/dist/utils/nearest.js +27 -0
- package/dist/utils/nearest.js.map +1 -0
- package/dist/utils/parseCssLengthUnit.d.ts +38 -0
- package/dist/utils/parseCssLengthUnit.js +39 -0
- package/dist/utils/parseCssLengthUnit.js.map +1 -0
- package/dist/utils/randomInt.d.ts +16 -0
- package/dist/utils/randomInt.js +13 -0
- package/dist/utils/randomInt.js.map +1 -0
- package/dist/utils/wait.d.ts +17 -0
- package/dist/utils/wait.js +18 -0
- package/dist/utils/wait.js.map +1 -0
- package/dist/utils/withinRange.d.ts +19 -0
- package/dist/utils/withinRange.js +24 -0
- package/dist/utils/withinRange.js.map +1 -0
- package/dist/window-splitter/WindowSplitter.d.ts +53 -0
- package/dist/window-splitter/WindowSplitter.js +43 -0
- package/dist/window-splitter/WindowSplitter.js.map +1 -0
- package/dist/window-splitter/_window-splitter.scss +172 -0
- package/dist/window-splitter/useWindowSplitter.d.ts +88 -0
- package/dist/window-splitter/useWindowSplitter.js +67 -0
- package/dist/window-splitter/useWindowSplitter.js.map +1 -0
- package/jest.config.ts +64 -0
- package/jest.setup.ts +3 -0
- package/package.json +146 -0
- package/scripts/copySassFiles.js +70 -0
- package/src/CoreProviders.tsx +109 -0
- package/src/NoSsr.tsx +55 -0
- package/src/SsrProvider.tsx +42 -0
- package/src/__tests__/NoSsr.node.tsx +26 -0
- package/src/__tests__/NoSsr.tsx +89 -0
- package/src/__tests__/useAsyncAction.tsx +116 -0
- package/src/__tests__/useDebouncedFunction.tsx +64 -0
- package/src/__tests__/useDropzone.tsx +131 -0
- package/src/__tests__/useEnsuredId.tsx +25 -0
- package/src/__tests__/useEnsuredState.tsx +75 -0
- package/src/__tests__/useHtmlClassName.tsx +54 -0
- package/src/__tests__/useLocalStorage.tsx +377 -0
- package/src/__tests__/useOrientation.node.tsx +20 -0
- package/src/__tests__/useOrientation.tsx +63 -0
- package/src/__tests__/useResizeObserver.tsx +256 -0
- package/src/__tests__/useThrottledFunction.tsx +171 -0
- package/src/__tests__/useToggle.tsx +78 -0
- package/src/_box-shadows.scss +206 -0
- package/src/_core.scss +465 -0
- package/src/_utils.scss +259 -0
- package/src/app-bar/AppBar.tsx +244 -0
- package/src/app-bar/AppBarTitle.tsx +120 -0
- package/src/app-bar/__tests__/AppBar.tsx +121 -0
- package/src/app-bar/__tests__/AppBarTitle.tsx +41 -0
- package/src/app-bar/__tests__/__snapshots__/AppBar.tsx.snap +186 -0
- package/src/app-bar/__tests__/__snapshots__/AppBarTitle.tsx.snap +47 -0
- package/src/app-bar/_app-bar.scss +256 -0
- package/src/avatar/Avatar.tsx +137 -0
- package/src/avatar/__tests__/Avatar.tsx +75 -0
- package/src/avatar/__tests__/__snapshots__/Avatar.tsx.snap +73 -0
- package/src/avatar/_avatar.scss +161 -0
- package/src/avatar/styles.ts +38 -0
- package/src/badge/Badge.tsx +99 -0
- package/src/badge/__tests__/Badge.tsx +42 -0
- package/src/badge/__tests__/__snapshots__/Badge.tsx.snap +54 -0
- package/src/badge/_badge.scss +107 -0
- package/src/box/Box.tsx +152 -0
- package/src/box/_box.scss +177 -0
- package/src/box/styles.ts +179 -0
- package/src/button/AsyncButton.tsx +253 -0
- package/src/button/Button.tsx +201 -0
- package/src/button/ButtonUnstyled.tsx +42 -0
- package/src/button/FloatingActionButton.tsx +99 -0
- package/src/button/__tests__/AsyncButton.tsx +209 -0
- package/src/button/__tests__/Button.tsx +198 -0
- package/src/button/__tests__/ButtonUnstyled.tsx +37 -0
- package/src/button/__tests__/__snapshots__/AsyncButton.tsx.snap +395 -0
- package/src/button/__tests__/__snapshots__/Button.tsx.snap +573 -0
- package/src/button/__tests__/__snapshots__/ButtonUnstyled.tsx.snap +22 -0
- package/src/button/__tests__/__snapshots__/buttonStyles.ts.snap +11 -0
- package/src/button/__tests__/buttonStyles.ts +15 -0
- package/src/button/_button.scss +340 -0
- package/src/button/buttonStyles.ts +174 -0
- package/src/button/buttonUnstyledStyles.ts +19 -0
- package/src/card/Card.tsx +86 -0
- package/src/card/CardContent.tsx +46 -0
- package/src/card/CardFooter.tsx +37 -0
- package/src/card/CardHeader.tsx +78 -0
- package/src/card/CardSubtitle.tsx +55 -0
- package/src/card/CardTitle.tsx +54 -0
- package/src/card/__tests__/Card.tsx +37 -0
- package/src/card/__tests__/CardContent.tsx +40 -0
- package/src/card/__tests__/CardFooter.tsx +34 -0
- package/src/card/__tests__/CardHeader.tsx +66 -0
- package/src/card/__tests__/CardSubtitle.tsx +30 -0
- package/src/card/__tests__/CardTitle.tsx +30 -0
- package/src/card/__tests__/__snapshots__/Card.tsx.snap +40 -0
- package/src/card/__tests__/__snapshots__/CardContent.tsx.snap +50 -0
- package/src/card/__tests__/__snapshots__/CardFooter.tsx.snap +30 -0
- package/src/card/__tests__/__snapshots__/CardHeader.tsx.snap +74 -0
- package/src/card/__tests__/__snapshots__/CardSubtitle.tsx.snap +18 -0
- package/src/card/__tests__/__snapshots__/CardTitle.tsx.snap +18 -0
- package/src/card/__tests__/__snapshots__/styles.ts.snap +13 -0
- package/src/card/__tests__/styles.ts +45 -0
- package/src/card/_card.scss +190 -0
- package/src/card/styles.ts +194 -0
- package/src/chip/Chip.tsx +339 -0
- package/src/chip/__tests__/Chip.tsx +329 -0
- package/src/chip/__tests__/__snapshots__/Chip.tsx.snap +597 -0
- package/src/chip/__tests__/__snapshots__/styles.ts.snap +5 -0
- package/src/chip/__tests__/styles.ts +14 -0
- package/src/chip/_chip.scss +351 -0
- package/src/chip/styles.ts +125 -0
- package/src/cssUtils.ts +231 -0
- package/src/delegateEvent.ts +178 -0
- package/src/dialog/Dialog.tsx +407 -0
- package/src/dialog/DialogContainer.tsx +30 -0
- package/src/dialog/DialogContent.tsx +31 -0
- package/src/dialog/DialogFooter.tsx +28 -0
- package/src/dialog/DialogHeader.tsx +21 -0
- package/src/dialog/DialogTitle.tsx +57 -0
- package/src/dialog/FixedDialog.tsx +164 -0
- package/src/dialog/NestedDialogProvider.ts +14 -0
- package/src/dialog/_dialog.scss +256 -0
- package/src/dialog/styles.ts +118 -0
- package/src/divider/Divider.tsx +65 -0
- package/src/divider/VerticalDivider.tsx +50 -0
- package/src/divider/__tests__/Divider.tsx +36 -0
- package/src/divider/__tests__/VerticalDivider.tsx +35 -0
- package/src/divider/__tests__/__snapshots__/Divider.tsx.snap +26 -0
- package/src/divider/__tests__/__snapshots__/VerticalDivider.tsx.snap +41 -0
- package/src/divider/_divider.scss +133 -0
- package/src/divider/styles.ts +49 -0
- package/src/divider/useVerticalDividerHeight.ts +72 -0
- package/src/draggable/__tests__/__snapshots__/useDraggable.tsx.snap +49 -0
- package/src/draggable/__tests__/useDraggable.tsx +544 -0
- package/src/draggable/_draggable.scss +25 -0
- package/src/draggable/useDraggable.ts +770 -0
- package/src/draggable/utils.ts +275 -0
- package/src/expansion-panel/ExpansionList.tsx +42 -0
- package/src/expansion-panel/ExpansionPanel.tsx +286 -0
- package/src/expansion-panel/ExpansionPanelHeader.tsx +188 -0
- package/src/expansion-panel/__tests__/ExpansionPanel.tsx +285 -0
- package/src/expansion-panel/__tests__/__snapshots__/ExpansionPanel.tsx.snap +197 -0
- package/src/expansion-panel/_expansion-panel.scss +81 -0
- package/src/expansion-panel/useExpansionList.ts +79 -0
- package/src/expansion-panel/useExpansionPanels.ts +277 -0
- package/src/focus/useFocusContainer.ts +259 -0
- package/src/focus/utils.ts +153 -0
- package/src/form/Checkbox.tsx +25 -0
- package/src/form/Fieldset.tsx +90 -0
- package/src/form/FileInput.tsx +218 -0
- package/src/form/Form.tsx +50 -0
- package/src/form/FormMessage.tsx +79 -0
- package/src/form/FormMessageContainer.tsx +46 -0
- package/src/form/FormMessageCounter.tsx +59 -0
- package/src/form/InputToggle.tsx +341 -0
- package/src/form/InputToggleIcon.tsx +131 -0
- package/src/form/Label.tsx +118 -0
- package/src/form/Legend.tsx +38 -0
- package/src/form/MenuItemCheckbox.tsx +46 -0
- package/src/form/MenuItemFileInput.tsx +113 -0
- package/src/form/MenuItemInputToggle.tsx +294 -0
- package/src/form/MenuItemRadio.tsx +117 -0
- package/src/form/MenuItemSwitch.tsx +42 -0
- package/src/form/MenuItemTextField.tsx +65 -0
- package/src/form/NativeSelect.tsx +226 -0
- package/src/form/OptGroup.tsx +86 -0
- package/src/form/Option.tsx +208 -0
- package/src/form/Password.tsx +212 -0
- package/src/form/Radio.tsx +29 -0
- package/src/form/Select.tsx +518 -0
- package/src/form/SelectValue.tsx +39 -0
- package/src/form/Slider.tsx +601 -0
- package/src/form/SliderContainer.tsx +91 -0
- package/src/form/SliderMark.tsx +41 -0
- package/src/form/SliderMarkLabel.tsx +62 -0
- package/src/form/SliderThumb.tsx +321 -0
- package/src/form/SliderTrack.tsx +123 -0
- package/src/form/SliderValueMarks.tsx +218 -0
- package/src/form/SliderValueTooltip.tsx +78 -0
- package/src/form/Switch.tsx +171 -0
- package/src/form/SwitchTrack.tsx +49 -0
- package/src/form/TextArea.tsx +285 -0
- package/src/form/TextField.tsx +248 -0
- package/src/form/TextFieldAddon.tsx +99 -0
- package/src/form/TextFieldContainer.tsx +93 -0
- package/src/form/TextFieldContainerStyles.ts +111 -0
- package/src/form/__tests__/Checkbox.tsx +42 -0
- package/src/form/__tests__/Fieldset.tsx +44 -0
- package/src/form/__tests__/FileInput.tsx +120 -0
- package/src/form/__tests__/Label.tsx +69 -0
- package/src/form/__tests__/Legend.tsx +34 -0
- package/src/form/__tests__/Radio.tsx +35 -0
- package/src/form/__tests__/__snapshots__/Checkbox.tsx.snap +99 -0
- package/src/form/__tests__/__snapshots__/Fieldset.tsx.snap +58 -0
- package/src/form/__tests__/__snapshots__/FileInput.tsx.snap +612 -0
- package/src/form/__tests__/__snapshots__/Label.tsx.snap +140 -0
- package/src/form/__tests__/__snapshots__/Legend.tsx.snap +30 -0
- package/src/form/__tests__/__snapshots__/Radio.tsx.snap +99 -0
- package/src/form/__tests__/__snapshots__/useCheckboxGroup.tsx.snap +481 -0
- package/src/form/__tests__/__snapshots__/useRadioGroup.tsx.snap +704 -0
- package/src/form/__tests__/useCheckboxGroup.tsx +292 -0
- package/src/form/__tests__/useFileUpload.tsx +281 -0
- package/src/form/__tests__/useRadioGroup.tsx +227 -0
- package/src/form/__tests__/utils.ts +247 -0
- package/src/form/_form.scss +2066 -0
- package/src/form/fileUtils.ts +690 -0
- package/src/form/formConfig.ts +24 -0
- package/src/form/formMessageStyles.ts +51 -0
- package/src/form/inputToggleStyles.ts +77 -0
- package/src/form/nativeSelectStyles.ts +56 -0
- package/src/form/optionStyles.ts +22 -0
- package/src/form/passwordStyles.ts +50 -0
- package/src/form/selectStyles.ts +32 -0
- package/src/form/selectUtils.ts +115 -0
- package/src/form/sliderUtils.ts +235 -0
- package/src/form/switchStyles.ts +29 -0
- package/src/form/textAreaStyles.ts +100 -0
- package/src/form/textFieldStyles.ts +33 -0
- package/src/form/types.ts +583 -0
- package/src/form/useCheckboxGroup.ts +334 -0
- package/src/form/useFileUpload.ts +539 -0
- package/src/form/useListboxProvider.ts +43 -0
- package/src/form/useNumberField.ts +492 -0
- package/src/form/useRadioGroup.ts +312 -0
- package/src/form/useRangeSlider.ts +90 -0
- package/src/form/useResizingTextArea.ts +146 -0
- package/src/form/useSlider.ts +112 -0
- package/src/form/useTextField.ts +706 -0
- package/src/form/utils.ts +86 -0
- package/src/form/validation.ts +267 -0
- package/src/hoverMode/useHoverMode.ts +197 -0
- package/src/hoverMode/useHoverModeProvider.ts +311 -0
- package/src/icon/FontIcon.tsx +60 -0
- package/src/icon/IconRotator.tsx +80 -0
- package/src/icon/MaterialIcon.tsx +52 -0
- package/src/icon/MaterialIconsProvider.ts +23 -0
- package/src/icon/MaterialSymbol.tsx +106 -0
- package/src/icon/MaterialSymbolsProvider.tsx +224 -0
- package/src/icon/SVGIcon.tsx +120 -0
- package/src/icon/TextIconSpacing.tsx +198 -0
- package/src/icon/__tests__/FontIcon.tsx +49 -0
- package/src/icon/__tests__/IconRotator.tsx +120 -0
- package/src/icon/__tests__/SVGIcon.tsx +39 -0
- package/src/icon/__tests__/TextIconSpacing.tsx +110 -0
- package/src/icon/__tests__/__snapshots__/FontIcon.tsx.snap +35 -0
- package/src/icon/__tests__/__snapshots__/IconRotator.tsx.snap +165 -0
- package/src/icon/__tests__/__snapshots__/SVGIcon.tsx.snap +47 -0
- package/src/icon/__tests__/__snapshots__/TextIconSpacing.tsx.snap +101 -0
- package/src/icon/__tests__/__snapshots__/styles.ts.snap +29 -0
- package/src/icon/__tests__/styles.ts +28 -0
- package/src/icon/_icon.scss +220 -0
- package/src/icon/iconConfig.tsx +295 -0
- package/src/icon/material.ts +5049 -0
- package/src/icon/styles.ts +188 -0
- package/src/index.ts +324 -0
- package/src/interaction/Ripple.tsx +66 -0
- package/src/interaction/RippleContainer.tsx +42 -0
- package/src/interaction/UserInteractionModeProvider.tsx +198 -0
- package/src/interaction/__tests__/UserInteractionModeProvider.tsx +121 -0
- package/src/interaction/__tests__/__snapshots__/useHigherContrastChildren.tsx.snap +79 -0
- package/src/interaction/__tests__/useHigherContrastChildren.tsx +97 -0
- package/src/interaction/_interaction.scss +427 -0
- package/src/interaction/config.ts +32 -0
- package/src/interaction/types.ts +179 -0
- package/src/interaction/useElementInteraction.tsx +476 -0
- package/src/interaction/useHigherContrastChildren.tsx +90 -0
- package/src/interaction/utils.ts +137 -0
- package/src/layout/LayoutAppBar.tsx +96 -0
- package/src/layout/LayoutNav.tsx +201 -0
- package/src/layout/LayoutWindowSplitter.tsx +129 -0
- package/src/layout/Main.tsx +94 -0
- package/src/layout/__tests__/LayoutAppBar.tsx +94 -0
- package/src/layout/__tests__/LayoutNav.tsx +78 -0
- package/src/layout/__tests__/LayoutWindowSplitter.tsx +63 -0
- package/src/layout/__tests__/Main.tsx +51 -0
- package/src/layout/__tests__/__snapshots__/LayoutAppBar.tsx.snap +78 -0
- package/src/layout/__tests__/__snapshots__/LayoutNav.tsx.snap +31 -0
- package/src/layout/__tests__/__snapshots__/LayoutWindowSplitter.tsx.snap +60 -0
- package/src/layout/__tests__/__snapshots__/Main.tsx.snap +32 -0
- package/src/layout/__tests__/__snapshots__/useExpandableLayout.tsx.snap +116 -0
- package/src/layout/__tests__/__snapshots__/useLayoutTree.tsx.snap +676 -0
- package/src/layout/__tests__/__snapshots__/useResizableLayout.tsx.snap +95 -0
- package/src/layout/__tests__/__snapshots__/useTemporaryLayout.tsx.snap +141 -0
- package/src/layout/__tests__/useExpandableLayout.tsx +260 -0
- package/src/layout/__tests__/useLayoutTree.tsx +207 -0
- package/src/layout/__tests__/useResizableLayout.tsx +158 -0
- package/src/layout/__tests__/useTemporaryLayout.tsx +104 -0
- package/src/layout/_layout.scss +156 -0
- package/src/layout/layoutNavStyles.ts +27 -0
- package/src/layout/layoutWindowSplitterStyles.ts +45 -0
- package/src/layout/mainStyles.ts +44 -0
- package/src/layout/useExpandableLayout.ts +219 -0
- package/src/layout/useHorizontalLayoutTransition.ts +88 -0
- package/src/layout/useLayoutAppBarHeight.ts +98 -0
- package/src/layout/useLayoutTree.ts +202 -0
- package/src/layout/useLayoutWindowSplitter.ts +137 -0
- package/src/layout/useMainTabIndex.ts +17 -0
- package/src/layout/useResizableLayout.ts +150 -0
- package/src/layout/useTemporaryLayout.ts +168 -0
- package/src/link/Link.tsx +81 -0
- package/src/link/LinkProvider.tsx +51 -0
- package/src/link/SkipToMainContent.tsx +121 -0
- package/src/link/__tests__/Link.tsx +31 -0
- package/src/link/__tests__/SkipToMainContent.tsx +128 -0
- package/src/link/__tests__/__snapshots__/Link.tsx.snap +20 -0
- package/src/link/__tests__/__snapshots__/SkipToMainContent.tsx.snap +22 -0
- package/src/link/_link.scss +141 -0
- package/src/link/styles.ts +51 -0
- package/src/list/List.tsx +135 -0
- package/src/list/ListItem.tsx +262 -0
- package/src/list/ListItemAddon.tsx +65 -0
- package/src/list/ListItemChildren.tsx +118 -0
- package/src/list/ListItemLink.tsx +177 -0
- package/src/list/ListItemText.tsx +64 -0
- package/src/list/ListSubheader.tsx +78 -0
- package/src/list/__tests__/List.tsx +58 -0
- package/src/list/__tests__/ListItem.tsx +279 -0
- package/src/list/__tests__/ListItemLink.tsx +89 -0
- package/src/list/__tests__/ListSubheader.tsx +81 -0
- package/src/list/__tests__/__snapshots__/List.tsx.snap +41 -0
- package/src/list/__tests__/__snapshots__/ListItem.tsx.snap +414 -0
- package/src/list/__tests__/__snapshots__/ListItemLink.tsx.snap +73 -0
- package/src/list/__tests__/__snapshots__/ListSubheader.tsx.snap +99 -0
- package/src/list/__tests__/getListItemHeight.ts +176 -0
- package/src/list/_list.scss +319 -0
- package/src/list/getListItemHeight.ts +72 -0
- package/src/list/listItemStyles.ts +196 -0
- package/src/list/types.ts +205 -0
- package/src/media-queries/AppSizeProvider.tsx +139 -0
- package/src/media-queries/__tests__/AppSizeProvider.node.tsx +37 -0
- package/src/media-queries/__tests__/AppSizeProvider.tsx +119 -0
- package/src/media-queries/__tests__/useMediaQuery.node.tsx +20 -0
- package/src/media-queries/__tests__/useMediaQuery.tsx +59 -0
- package/src/media-queries/_media-queries.scss +63 -0
- package/src/media-queries/appSize.ts +120 -0
- package/src/media-queries/useMediaQuery.ts +53 -0
- package/src/menu/DropdownMenu.tsx +278 -0
- package/src/menu/Menu.tsx +584 -0
- package/src/menu/MenuBar.tsx +119 -0
- package/src/menu/MenuButton.tsx +135 -0
- package/src/menu/MenuConfigurationProvider.tsx +184 -0
- package/src/menu/MenuItem.tsx +69 -0
- package/src/menu/MenuItemButton.tsx +165 -0
- package/src/menu/MenuItemGroup.tsx +97 -0
- package/src/menu/MenuItemSeparator.tsx +57 -0
- package/src/menu/MenuSheet.tsx +130 -0
- package/src/menu/MenuVisibilityProvider.tsx +95 -0
- package/src/menu/MenuWidget.tsx +182 -0
- package/src/menu/MenuWidgetKeyboardProvider.tsx +35 -0
- package/src/menu/__tests__/DropdownMenu.tsx +618 -0
- package/src/menu/__tests__/MenuBar.tsx +345 -0
- package/src/menu/__tests__/MenuVisibilityProvider.tsx +34 -0
- package/src/menu/__tests__/__snapshots__/DropdownMenu.tsx.snap +292 -0
- package/src/menu/__tests__/__snapshots__/MenuBar.tsx.snap +87 -0
- package/src/menu/__tests__/utils.ts +121 -0
- package/src/menu/_menu.scss +137 -0
- package/src/menu/useContextMenu.ts +135 -0
- package/src/menu/useMenuBarProvider.ts +88 -0
- package/src/menu/utils.ts +62 -0
- package/src/movement/__tests__/findMatchIndex.ts +244 -0
- package/src/movement/__tests__/utils.ts +710 -0
- package/src/movement/constants.ts +36 -0
- package/src/movement/findMatchIndex.ts +100 -0
- package/src/movement/types.ts +278 -0
- package/src/movement/useKeyboardMovementProvider.ts +534 -0
- package/src/movement/utils.ts +262 -0
- package/src/overlay/Overlay.tsx +157 -0
- package/src/overlay/__tests__/Overlay.tsx +196 -0
- package/src/overlay/__tests__/__snapshots__/Overlay.tsx.snap +77 -0
- package/src/overlay/_overlay.scss +77 -0
- package/src/overlay/overlayStyles.ts +85 -0
- package/src/portal/Portal.tsx +46 -0
- package/src/portal/PortalContainerProvider.tsx +86 -0
- package/src/portal/__tests__/PortalContainerProvider.node.tsx +25 -0
- package/src/portal/__tests__/PortalContainerProvider.tsx +61 -0
- package/src/positioning/__tests__/__snapshots__/useFixedPositioning.tsx.snap +119 -0
- package/src/positioning/__tests__/createHorizontalPosition.ts +779 -0
- package/src/positioning/__tests__/createVerticalPosition.ts +464 -0
- package/src/positioning/__tests__/useFixedPositioning.tsx +213 -0
- package/src/positioning/__tests__/utils.ts +1311 -0
- package/src/positioning/constants.ts +126 -0
- package/src/positioning/createHorizontalPosition.ts +330 -0
- package/src/positioning/createVerticalPosition.ts +304 -0
- package/src/positioning/getFixedPosition.ts +175 -0
- package/src/positioning/types.ts +255 -0
- package/src/positioning/useFixedPositioning.ts +418 -0
- package/src/positioning/utils.ts +380 -0
- package/src/progress/CircularProgress.tsx +237 -0
- package/src/progress/LinearProgress.tsx +189 -0
- package/src/progress/__tests__/CircularProgress.tsx +131 -0
- package/src/progress/__tests__/LinearProgress.tsx +116 -0
- package/src/progress/__tests__/__snapshots__/CircularProgress.tsx.snap +478 -0
- package/src/progress/__tests__/__snapshots__/LinearProgress.tsx.snap +301 -0
- package/src/progress/__tests__/getProgressA11y.ts +16 -0
- package/src/progress/_progress.scss +577 -0
- package/src/progress/getProgressA11y.ts +25 -0
- package/src/progress/types.ts +78 -0
- package/src/responsive-item/ResponsiveItemContainer.tsx +181 -0
- package/src/responsive-item/ResponsiveItemOverlay.tsx +100 -0
- package/src/responsive-item/__tests__/ResponsiveItemContainer.tsx +56 -0
- package/src/responsive-item/__tests__/ResponsiveItemOverlay.tsx +66 -0
- package/src/responsive-item/__tests__/__snapshots__/ResponsiveItemContainer.tsx.snap +85 -0
- package/src/responsive-item/__tests__/__snapshots__/ResponsiveItemOverlay.tsx.snap +151 -0
- package/src/responsive-item/__tests__/__snapshots__/styles.ts.snap +9 -0
- package/src/responsive-item/__tests__/styles.ts +32 -0
- package/src/responsive-item/_responsive-item.scss +194 -0
- package/src/responsive-item/styles.ts +58 -0
- package/src/scroll/ScrollLock.tsx +16 -0
- package/src/scroll/getScrollbarWidth.ts +32 -0
- package/src/scroll/useScrollLock.ts +52 -0
- package/src/segmented-button/SegmentedButton.tsx +178 -0
- package/src/segmented-button/SegmentedButtonContainer.tsx +64 -0
- package/src/segmented-button/__tests__/SegmentedButton.tsx +61 -0
- package/src/segmented-button/__tests__/SegmentedButtonContainer.tsx +38 -0
- package/src/segmented-button/__tests__/__snapshots__/SegmentedButton.tsx.snap +116 -0
- package/src/segmented-button/__tests__/__snapshots__/SegmentedButtonContainer.tsx.snap +22 -0
- package/src/segmented-button/_segmented-button.scss +209 -0
- package/src/segmented-button/segmentedButtonContainerStyles.ts +25 -0
- package/src/segmented-button/segmentedButtonStyles.ts +40 -0
- package/src/sheet/Sheet.tsx +104 -0
- package/src/sheet/_sheet.scss +205 -0
- package/src/sheet/styles.ts +98 -0
- package/src/snackbar/DefaultToastRenderer.tsx +147 -0
- package/src/snackbar/Snackbar.tsx +189 -0
- package/src/snackbar/Toast.tsx +247 -0
- package/src/snackbar/ToastActionButton.tsx +71 -0
- package/src/snackbar/ToastCloseButton.tsx +88 -0
- package/src/snackbar/ToastContent.tsx +93 -0
- package/src/snackbar/ToastManager.tsx +566 -0
- package/src/snackbar/ToastManagerProvider.tsx +105 -0
- package/src/snackbar/__tests__/Snackbar.tsx +84 -0
- package/src/snackbar/__tests__/Toast.tsx +100 -0
- package/src/snackbar/__tests__/ToastActionButton.tsx +112 -0
- package/src/snackbar/__tests__/ToastCloseButton.tsx +140 -0
- package/src/snackbar/__tests__/ToastContent.tsx +88 -0
- package/src/snackbar/__tests__/ToastManagerProvider.tsx +832 -0
- package/src/snackbar/__tests__/__snapshots__/Snackbar.tsx.snap +76 -0
- package/src/snackbar/__tests__/__snapshots__/Toast.tsx.snap +52 -0
- package/src/snackbar/__tests__/__snapshots__/ToastActionButton.tsx.snap +36 -0
- package/src/snackbar/__tests__/__snapshots__/ToastCloseButton.tsx.snap +104 -0
- package/src/snackbar/__tests__/__snapshots__/ToastContent.tsx.snap +26 -0
- package/src/snackbar/__tests__/__snapshots__/ToastManagerProvider.tsx.snap +275 -0
- package/src/snackbar/_snackbar.scss +262 -0
- package/src/snackbar/snackbarStyles.ts +43 -0
- package/src/snackbar/toastContentStyles.ts +37 -0
- package/src/snackbar/toastStyles.ts +61 -0
- package/src/snackbar/useCurrentToastActions.ts +47 -0
- package/src/suspense/CircularProgressSuspense.tsx +49 -0
- package/src/suspense/NullSuspense.tsx +39 -0
- package/src/table/Table.tsx +147 -0
- package/src/table/TableBody.tsx +65 -0
- package/src/table/TableCell.tsx +362 -0
- package/src/table/TableCellContent.tsx +99 -0
- package/src/table/TableCheckbox.tsx +208 -0
- package/src/table/TableConfigurationProvider.tsx +133 -0
- package/src/table/TableContainer.tsx +52 -0
- package/src/table/TableContainerProvider.tsx +36 -0
- package/src/table/TableFooter.tsx +144 -0
- package/src/table/TableHeader.tsx +177 -0
- package/src/table/TableRow.tsx +95 -0
- package/src/table/__tests__/Table.tsx +320 -0
- package/src/table/__tests__/TableBody.tsx +52 -0
- package/src/table/__tests__/TableCheckbox.tsx +90 -0
- package/src/table/__tests__/TableContainer.tsx +31 -0
- package/src/table/__tests__/TableRow.tsx +69 -0
- package/src/table/__tests__/__snapshots__/Table.tsx.snap +2428 -0
- package/src/table/__tests__/__snapshots__/TableBody.tsx.snap +54 -0
- package/src/table/__tests__/__snapshots__/TableCheckbox.tsx.snap +142 -0
- package/src/table/__tests__/__snapshots__/TableContainer.tsx.snap +16 -0
- package/src/table/__tests__/__snapshots__/TableRow.tsx.snap +58 -0
- package/src/table/_table.scss +462 -0
- package/src/table/types.ts +83 -0
- package/src/tabs/Tab.tsx +139 -0
- package/src/tabs/TabList.tsx +237 -0
- package/src/tabs/TabListScrollButton.tsx +135 -0
- package/src/tabs/__tests__/Tab.tsx +28 -0
- package/src/tabs/__tests__/TabList.tsx +630 -0
- package/src/tabs/__tests__/__snapshots__/Tab.tsx.snap +85 -0
- package/src/tabs/__tests__/__snapshots__/TabList.tsx.snap +51 -0
- package/src/tabs/__tests__/useTabs.tsx +209 -0
- package/src/tabs/_tabs.scss +262 -0
- package/src/tabs/tabIndicatorStyles.ts +24 -0
- package/src/tabs/tabListScrollButtonStyles.ts +47 -0
- package/src/tabs/tabListStyles.ts +52 -0
- package/src/tabs/tabStyles.ts +48 -0
- package/src/tabs/useTabList.ts +215 -0
- package/src/tabs/useTabs.ts +494 -0
- package/src/tabs/utils.ts +84 -0
- package/src/test-utils/IntersectionObserver.ts +50 -0
- package/src/test-utils/README.md +150 -0
- package/src/test-utils/ResizeObserver.ts +273 -0
- package/src/test-utils/__tests__/ResizeObserver.ts +171 -0
- package/src/test-utils/drag.ts +84 -0
- package/src/test-utils/index.ts +8 -0
- package/src/test-utils/jest-setup.ts +9 -0
- package/src/test-utils/matchMedia.ts +198 -0
- package/src/test-utils/polyfills/IntersectionObserver.ts +8 -0
- package/src/test-utils/polyfills/ResizeObserver.ts +5 -0
- package/src/test-utils/polyfills/index.ts +5 -0
- package/src/test-utils/polyfills/matchMedia.ts +8 -0
- package/src/test-utils/polyfills/offsetParent.ts +39 -0
- package/src/test-utils/polyfills/scrollIntoView.ts +9 -0
- package/src/test-utils/render.tsx +45 -0
- package/src/test-utils/timers.ts +46 -0
- package/src/theme/LocalStorageColorSchemeProvider.tsx +130 -0
- package/src/theme/ThemeProvider.tsx +469 -0
- package/src/theme/__tests__/LocalStorageColorSchemeProvider.tsx +162 -0
- package/src/theme/__tests__/ThemeProvider.tsx +90 -0
- package/src/theme/__tests__/__snapshots__/useCSSVariables.tsx.snap +27 -0
- package/src/theme/__tests__/__snapshots__/useColorSchemeMetaTag.tsx.snap +15 -0
- package/src/theme/__tests__/useCSSVariables.tsx +177 -0
- package/src/theme/__tests__/useColorSchemeMetaTag.tsx +36 -0
- package/src/theme/__tests__/utils.ts +67 -0
- package/src/theme/_a11y.scss +114 -0
- package/src/theme/_colors.scss +1057 -0
- package/src/theme/_theme.scss +409 -0
- package/src/theme/colors.ts +275 -0
- package/src/theme/cssVars.ts +15 -0
- package/src/theme/types.ts +38 -0
- package/src/theme/useCSSVariables.ts +179 -0
- package/src/theme/useColorScheme.ts +135 -0
- package/src/theme/useColorSchemeMetaTag.ts +53 -0
- package/src/theme/useColorSchemeProvider.ts +116 -0
- package/src/theme/usePrefersColorScheme.ts +12 -0
- package/src/theme/utils.ts +195 -0
- package/src/tooltip/Tooltip.tsx +150 -0
- package/src/tooltip/TooltipHoverModeProvider.tsx +90 -0
- package/src/tooltip/__tests__/Tooltip.tsx +458 -0
- package/src/tooltip/__tests__/TooltipHoverModeProvider.tsx +89 -0
- package/src/tooltip/__tests__/__snapshots__/Tooltip.tsx.snap +67 -0
- package/src/tooltip/__tests__/useOverflowTooltip.tsx +77 -0
- package/src/tooltip/__tests__/utils.ts +94 -0
- package/src/tooltip/_tooltip.scss +161 -0
- package/src/tooltip/constants.ts +41 -0
- package/src/tooltip/tooltipStyles.ts +32 -0
- package/src/tooltip/useOverflowTooltip.ts +93 -0
- package/src/tooltip/useTooltip.ts +563 -0
- package/src/tooltip/useTooltipPosition.ts +101 -0
- package/src/tooltip/utils.ts +51 -0
- package/src/transition/CSSTransition.tsx +91 -0
- package/src/transition/Collapse.tsx +84 -0
- package/src/transition/CrossFade.tsx +117 -0
- package/src/transition/ScaleTransition.tsx +81 -0
- package/src/transition/SkeletonPlaceholder.tsx +164 -0
- package/src/transition/Slide.tsx +94 -0
- package/src/transition/SlideContainer.tsx +188 -0
- package/src/transition/__tests__/CSSTransition.tsx +176 -0
- package/src/transition/__tests__/Collapse.tsx +207 -0
- package/src/transition/__tests__/CrossFade.tsx +224 -0
- package/src/transition/__tests__/ScaleTransition.tsx +200 -0
- package/src/transition/__tests__/__snapshots__/CSSTransition.tsx.snap +145 -0
- package/src/transition/__tests__/__snapshots__/Collapse.tsx.snap +224 -0
- package/src/transition/__tests__/__snapshots__/CrossFade.tsx.snap +240 -0
- package/src/transition/__tests__/__snapshots__/ScaleTransition.tsx.snap +239 -0
- package/src/transition/__tests__/__snapshots__/useCollapseTransition.tsx.snap +361 -0
- package/src/transition/__tests__/__snapshots__/useCrossFadeTransition.tsx.snap +258 -0
- package/src/transition/__tests__/__snapshots__/useMaxWidthTransition.tsx.snap +68 -0
- package/src/transition/__tests__/__snapshots__/useScaleTransition.tsx.snap +209 -0
- package/src/transition/__tests__/useCSSTransition.tsx +186 -0
- package/src/transition/__tests__/useCollapseTransition.tsx +312 -0
- package/src/transition/__tests__/useCrossFadeTransition.tsx +225 -0
- package/src/transition/__tests__/useMaxWidthTransition.tsx +123 -0
- package/src/transition/__tests__/useScaleTransition.tsx +206 -0
- package/src/transition/__tests__/useTransition.tsx +472 -0
- package/src/transition/__tests__/utils.ts +595 -0
- package/src/transition/_transition.scss +354 -0
- package/src/transition/collapseStyles.ts +33 -0
- package/src/transition/maxWidthTransition.ts +24 -0
- package/src/transition/types.ts +615 -0
- package/src/transition/useCSSTransition.ts +227 -0
- package/src/transition/useCarousel.ts +250 -0
- package/src/transition/useCollapseTransition.ts +451 -0
- package/src/transition/useCrossFadeTransition.ts +128 -0
- package/src/transition/useMaxWidthTransition.ts +40 -0
- package/src/transition/useScaleTransition.ts +150 -0
- package/src/transition/useSkeletonPlaceholder.ts +276 -0
- package/src/transition/useSlideTransition.ts +113 -0
- package/src/transition/useTransition.ts +277 -0
- package/src/transition/utils.ts +148 -0
- package/src/tree/DefaultTreeItemRenderer.tsx +72 -0
- package/src/tree/Tree.tsx +327 -0
- package/src/tree/TreeGroup.tsx +94 -0
- package/src/tree/TreeItem.tsx +309 -0
- package/src/tree/TreeItemExpander.tsx +90 -0
- package/src/tree/TreeProvider.tsx +192 -0
- package/src/tree/__tests__/Tree.tsx +730 -0
- package/src/tree/__tests__/TreeGroup.tsx +75 -0
- package/src/tree/__tests__/TreeItemExpander.tsx +73 -0
- package/src/tree/__tests__/__snapshots__/Tree.tsx.snap +3618 -0
- package/src/tree/__tests__/__snapshots__/TreeItemExpander.tsx.snap +11 -0
- package/src/tree/__tests__/utils.ts +98 -0
- package/src/tree/_tree.scss +174 -0
- package/src/tree/styles.ts +160 -0
- package/src/tree/types.ts +147 -0
- package/src/tree/useTree.ts +68 -0
- package/src/tree/useTreeExpansion.ts +52 -0
- package/src/tree/useTreeItems.ts +137 -0
- package/src/tree/useTreeMovement.ts +205 -0
- package/src/tree/useTreeSelection.ts +63 -0
- package/src/tree/utils.ts +64 -0
- package/src/types.ts +176 -0
- package/src/typography/SrOnly.tsx +81 -0
- package/src/typography/TextContainer.tsx +106 -0
- package/src/typography/Typography.tsx +314 -0
- package/src/typography/WritingDirectionProvider.tsx +232 -0
- package/src/typography/__tests__/SrOnly.tsx +43 -0
- package/src/typography/__tests__/TextContainer.tsx +44 -0
- package/src/typography/__tests__/Typography.tsx +88 -0
- package/src/typography/__tests__/WritingDirectionProvider.node.tsx +27 -0
- package/src/typography/__tests__/WritingDirectionProvider.tsx +119 -0
- package/src/typography/__tests__/__snapshots__/SrOnly.tsx.snap +56 -0
- package/src/typography/__tests__/__snapshots__/TextContainer.tsx.snap +29 -0
- package/src/typography/__tests__/__snapshots__/Typography.tsx.snap +112 -0
- package/src/typography/_typography.scss +345 -0
- package/src/useAsyncAction.ts +200 -0
- package/src/useDebouncedFunction.ts +115 -0
- package/src/useDropzone.ts +227 -0
- package/src/useEnsuredId.ts +30 -0
- package/src/useEnsuredRef.ts +56 -0
- package/src/useEnsuredState.ts +50 -0
- package/src/useHtmlClassName.ts +19 -0
- package/src/useIntersectionObserver.ts +330 -0
- package/src/useIsomorphicLayoutEffect.ts +15 -0
- package/src/useLocalStorage.ts +589 -0
- package/src/useOrientation.ts +62 -0
- package/src/usePageInactive.ts +121 -0
- package/src/useResizeListener.ts +100 -0
- package/src/useResizeObserver.ts +272 -0
- package/src/useThrottledFunction.ts +131 -0
- package/src/useToggle.ts +56 -0
- package/src/useUnmounted.ts +44 -0
- package/src/useWindowSize.ts +115 -0
- package/src/utils/RenderRecursively.tsx +202 -0
- package/src/utils/__tests__/RenderRecursively.tsx +87 -0
- package/src/utils/__tests__/__snapshots__/RenderRecursively.tsx.snap +80 -0
- package/src/utils/__tests__/applyRef.ts +30 -0
- package/src/utils/__tests__/bem.ts +54 -0
- package/src/utils/__tests__/filters.ts +279 -0
- package/src/utils/__tests__/getPercentage.ts +104 -0
- package/src/utils/__tests__/getRangeSteps.ts +14 -0
- package/src/utils/__tests__/loop.ts +50 -0
- package/src/utils/__tests__/nearest.ts +83 -0
- package/src/utils/__tests__/parseCssLengthUnit.node.ts +28 -0
- package/src/utils/__tests__/parseCssLengthUnit.ts +47 -0
- package/src/utils/__tests__/wait.ts +12 -0
- package/src/utils/__tests__/withinRange.ts +24 -0
- package/src/utils/alphaNumericSort.ts +150 -0
- package/src/utils/applyRef.ts +43 -0
- package/src/utils/bem.ts +109 -0
- package/src/utils/filters.ts +320 -0
- package/src/utils/getClientPosition.ts +47 -0
- package/src/utils/getPercentage.ts +56 -0
- package/src/utils/getRangeDefaultValue.ts +35 -0
- package/src/utils/getRangeSteps.ts +24 -0
- package/src/utils/identity.ts +5 -0
- package/src/utils/isElementVisible.ts +43 -0
- package/src/utils/loop.ts +59 -0
- package/src/utils/nearest.ts +45 -0
- package/src/utils/parseCssLengthUnit.ts +65 -0
- package/src/utils/randomInt.ts +21 -0
- package/src/utils/wait.ts +18 -0
- package/src/utils/withinRange.ts +33 -0
- package/src/window-splitter/WindowSplitter.tsx +120 -0
- package/src/window-splitter/_window-splitter.scss +172 -0
- package/src/window-splitter/useWindowSplitter.ts +157 -0
- package/tsconfig.json +19 -0
- package/tsconfig.types.json +12 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
import { nanoid } from "nanoid";
|
|
15
|
+
/**
|
|
16
|
+
* An error that will be created if a user tries dragging and dropping files
|
|
17
|
+
* from a shared directory that they do not have access to. This error will not
|
|
18
|
+
* occur much.
|
|
19
|
+
*
|
|
20
|
+
* @remarks \@since 2.9.0
|
|
21
|
+
*/ export class FileAccessError extends Error {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param message - An optional message for the error.
|
|
25
|
+
*/ constructor(message){
|
|
26
|
+
super(message);
|
|
27
|
+
/**
|
|
28
|
+
* A unique key generated by `nanoid` that can be used as a `React` key
|
|
29
|
+
*/ _define_property(this, "key", void 0);
|
|
30
|
+
this.key = nanoid();
|
|
31
|
+
this.name = "FileAccessError";
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* An error that just requires a `File` to be passed as the first argument.
|
|
36
|
+
*
|
|
37
|
+
* @remarks \@since 2.9.0
|
|
38
|
+
*/ export class GenericFileError extends Error {
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param files - A list of files that caused the error.
|
|
42
|
+
* @param reason - An optional reason for the error
|
|
43
|
+
*/ constructor(files, reason){
|
|
44
|
+
super("Invalid files");
|
|
45
|
+
_define_property(this, "files", void 0);
|
|
46
|
+
_define_property(this, "reason", void 0);
|
|
47
|
+
/**
|
|
48
|
+
* A unique key generated by `nanoid` that can be used as a `React` key
|
|
49
|
+
*/ _define_property(this, "key", void 0);
|
|
50
|
+
this.files = files;
|
|
51
|
+
this.reason = reason;
|
|
52
|
+
this.key = nanoid();
|
|
53
|
+
this.name = "GenericFileError";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* An error that is created during the upload process if the number of files
|
|
58
|
+
* exceeds the {@link FileUploadOptions.maxFiles} amount.
|
|
59
|
+
*
|
|
60
|
+
* @remarks \@since 2.9.0
|
|
61
|
+
*/ export class TooManyFilesError extends GenericFileError {
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param files - The list of files that could not be uploaded due to the file
|
|
65
|
+
* limit defined.
|
|
66
|
+
* @param limit - The max limit of files allowed.
|
|
67
|
+
*/ constructor(files, limit){
|
|
68
|
+
super(files, "file limit");
|
|
69
|
+
_define_property(this, "limit", void 0);
|
|
70
|
+
this.limit = limit;
|
|
71
|
+
this.name = "TooManyFilesError";
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* An error that will be created if a user tries to upload a file that
|
|
76
|
+
* is either:
|
|
77
|
+
* - less than the {@link FileValidationOptions.minFileSize}
|
|
78
|
+
* - greater than the {@link FileValidationOptions.maxFileSize}
|
|
79
|
+
* - including the file would be greater than the {@link FileValidationOptions.totalFileSize}
|
|
80
|
+
*
|
|
81
|
+
* @remarks \@since 2.9.0
|
|
82
|
+
*/ export class FileSizeError extends GenericFileError {
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @param files - The list of files that have the file size error
|
|
86
|
+
* @param type - The file size error type
|
|
87
|
+
* @param limit - The number of bytes allowed based on the type
|
|
88
|
+
*/ constructor(files, type, limit){
|
|
89
|
+
super(files, "file size");
|
|
90
|
+
_define_property(this, "type", void 0);
|
|
91
|
+
_define_property(this, "limit", void 0);
|
|
92
|
+
this.type = type;
|
|
93
|
+
this.limit = limit;
|
|
94
|
+
this.name = "FileSizeError";
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* An error that will be created if a user tries to upload a file that does not
|
|
99
|
+
* end with one of the {@link FileValidationOptions.extensions}.
|
|
100
|
+
*
|
|
101
|
+
* @remarks \@since 2.9.0
|
|
102
|
+
*/ export class FileExtensionError extends GenericFileError {
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @param files - The file that caused the error
|
|
106
|
+
* @param extensions - The allowed list of file extensions
|
|
107
|
+
*/ constructor(files, extensions){
|
|
108
|
+
super(files, "extension");
|
|
109
|
+
_define_property(this, "extensions", void 0);
|
|
110
|
+
this.extensions = extensions;
|
|
111
|
+
this.name = "FileExtensionError";
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* A simple type-guard that can be used to check if the
|
|
116
|
+
* {@link FileValidationError} is the {@link GenericFileError} which can be
|
|
117
|
+
* useful when displaying the errors to the user.
|
|
118
|
+
*
|
|
119
|
+
* @param error - The error to check
|
|
120
|
+
* @returns true if the error is a {@link FileAccessError}
|
|
121
|
+
*/ export function isGenericFileError(error) {
|
|
122
|
+
return "name" in error && error.name === "GenericFileError";
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* A simple type-guard that can be used to check if the
|
|
126
|
+
* {@link FileValidationError} is the {@link FileAccessError} which can be
|
|
127
|
+
* useful when displaying the errors to the user.
|
|
128
|
+
*
|
|
129
|
+
* @param error - The error to check
|
|
130
|
+
* @returns true if the error is a {@link FileAccessError}
|
|
131
|
+
*/ export function isFileAccessError(error) {
|
|
132
|
+
return "name" in error && error.name === "FileAccessError";
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* A simple type-guard that can be used to check if the
|
|
136
|
+
* {@link FileValidationError} is the {@link TooManyFilesError} which can be
|
|
137
|
+
* useful when displaying the errors to the user.
|
|
138
|
+
*
|
|
139
|
+
* @param error - The error to check
|
|
140
|
+
* @returns true if the error is a {@link TooManyFilesError}
|
|
141
|
+
*/ export function isTooManyFilesError(error) {
|
|
142
|
+
return "name" in error && error.name === "TooManyFilesError";
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* A simple type-guard that can be used to check if the
|
|
146
|
+
* {@link FileValidationError} is the {@link FileSizeError} which can be
|
|
147
|
+
* useful when displaying the errors to the user.
|
|
148
|
+
*
|
|
149
|
+
* @param error - The error to check
|
|
150
|
+
* @returns true if the error is a {@link FileSizeError}
|
|
151
|
+
*/ export function isFileSizeError(error) {
|
|
152
|
+
return "name" in error && error.name === "FileSizeError";
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* A simple type-guard that can be used to check if the
|
|
156
|
+
* {@link FileValidationError} is the {@link FileExtensionError} which can be
|
|
157
|
+
* useful when displaying the errors to the user.
|
|
158
|
+
*
|
|
159
|
+
* @param error - The error to check
|
|
160
|
+
* @returns true if the error is a {@link FileExtensionError}
|
|
161
|
+
*/ export function isFileExtensionError(error) {
|
|
162
|
+
return "name" in error && error.name === "FileExtensionError";
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @defaultValue `matcher?.test(file.name) ?? true`
|
|
167
|
+
* @remarks \@since 3.1.0
|
|
168
|
+
*/ export const isValidFileName = (file, matcher)=>matcher?.test(file.name) ?? true;
|
|
169
|
+
/**
|
|
170
|
+
* A pretty decent default implementation for validating files with the
|
|
171
|
+
* {@link useFileUpload} that ensures the {@link FilesValidationOptions} are
|
|
172
|
+
* enforced before allowing a file to be uploaded.
|
|
173
|
+
*
|
|
174
|
+
* @typeparam E - An optional custom file validation error.
|
|
175
|
+
* @param files - The list of files to check
|
|
176
|
+
* @param options - The {@link FilesValidationOptions}
|
|
177
|
+
* @returns the {@link ValidatedFilesResult}
|
|
178
|
+
* @remarks \@since 2.9.0
|
|
179
|
+
*/ export function validateFiles(files, { maxFiles, extensions, minFileSize, maxFileSize, totalBytes, totalFiles, totalFileSize, isValidFileName }) {
|
|
180
|
+
const errors = [];
|
|
181
|
+
const pending = [];
|
|
182
|
+
const extraFiles = [];
|
|
183
|
+
const extensionRegExp = extensions.length > 0 ? new RegExp(`\\.(${extensions.join("|")})$`, "i") : undefined;
|
|
184
|
+
let maxFilesReached = maxFiles > 0 && totalFiles >= maxFiles;
|
|
185
|
+
let remainingBytes = totalFileSize - totalBytes;
|
|
186
|
+
const extensionErrors = [];
|
|
187
|
+
const minErrors = [];
|
|
188
|
+
const maxErrors = [];
|
|
189
|
+
const totalSizeErrors = [];
|
|
190
|
+
for(let i = 0; i < files.length; i += 1){
|
|
191
|
+
const file = files[i];
|
|
192
|
+
let valid = true;
|
|
193
|
+
const { size } = file;
|
|
194
|
+
if (!isValidFileName(file, extensionRegExp, extensions)) {
|
|
195
|
+
valid = false;
|
|
196
|
+
extensionErrors.push(file);
|
|
197
|
+
}
|
|
198
|
+
if (minFileSize > 0 && size < minFileSize) {
|
|
199
|
+
valid = false;
|
|
200
|
+
minErrors.push(file);
|
|
201
|
+
}
|
|
202
|
+
if (maxFileSize > 0 && size > maxFileSize) {
|
|
203
|
+
valid = false;
|
|
204
|
+
maxErrors.push(file);
|
|
205
|
+
} else if (totalFileSize > 0 && remainingBytes - file.size < 0) {
|
|
206
|
+
// don't want both errors displaying
|
|
207
|
+
valid = false;
|
|
208
|
+
totalSizeErrors.push(file);
|
|
209
|
+
}
|
|
210
|
+
if (maxFilesReached && valid) {
|
|
211
|
+
extraFiles.push(file);
|
|
212
|
+
} else if (!maxFilesReached && valid) {
|
|
213
|
+
pending.push(file);
|
|
214
|
+
remainingBytes -= file.size;
|
|
215
|
+
maxFilesReached = maxFilesReached || maxFiles > 0 && totalFiles + pending.length >= maxFiles;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
if (extensionErrors.length) {
|
|
219
|
+
errors.push(new FileExtensionError(extensionErrors, extensions));
|
|
220
|
+
}
|
|
221
|
+
if (minErrors.length) {
|
|
222
|
+
errors.push(new FileSizeError(minErrors, "min", minFileSize));
|
|
223
|
+
}
|
|
224
|
+
if (maxErrors.length) {
|
|
225
|
+
errors.push(new FileSizeError(maxErrors, "max", maxFileSize));
|
|
226
|
+
}
|
|
227
|
+
if (totalSizeErrors.length) {
|
|
228
|
+
errors.push(new FileSizeError(totalSizeErrors, "total", totalFileSize));
|
|
229
|
+
}
|
|
230
|
+
if (extraFiles.length) {
|
|
231
|
+
errors.push(new TooManyFilesError(extraFiles, maxFiles));
|
|
232
|
+
}
|
|
233
|
+
return {
|
|
234
|
+
pending,
|
|
235
|
+
errors
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* This will first check if the mime-type of the file starts with `text/` and
|
|
240
|
+
* fallback to checking a few file names or extensions that should be considered
|
|
241
|
+
* text.
|
|
242
|
+
*
|
|
243
|
+
* This function is not guaranteed to be 100% correct and is only useful if
|
|
244
|
+
* trying to generate a preview of files uploaded to the browser.
|
|
245
|
+
*
|
|
246
|
+
* @param file - The file to check
|
|
247
|
+
* @returns `true` if the file should be considered as a text-content file.
|
|
248
|
+
* @remarks \@since 2.9.0
|
|
249
|
+
*/ export function isTextFile(file) {
|
|
250
|
+
return /\.((j|t)sx?|json|lock|hbs|ya?ml|log|txt|md)$/i.test(file.name);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* This will first check if the mime-type of the file starts with `text\/` and
|
|
254
|
+
* fallback to checking a few file names or extensions that should be considered
|
|
255
|
+
* text.
|
|
256
|
+
*
|
|
257
|
+
* This function is not guaranteed to be 100% correct and is only useful if
|
|
258
|
+
* trying to generate a preview of files uploaded to the browser.
|
|
259
|
+
*
|
|
260
|
+
* @param file - The file to check
|
|
261
|
+
* @returns `true` if the file should be considered as a text content file.
|
|
262
|
+
* @remarks \@since 2.9.0
|
|
263
|
+
*/ export function isImageFile(file) {
|
|
264
|
+
return /\.(a?png|avif|svg|tiff|gifv?|jpe?g)/i.test(file.name);
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* This will first check if the mime-type of the file starts with `audio/` and
|
|
268
|
+
* fallback to checking a few file names or extensions that should be considered
|
|
269
|
+
* audio.
|
|
270
|
+
*
|
|
271
|
+
* This function is not guaranteed to be 100% correct and is only useful if
|
|
272
|
+
* trying to generate a preview of files uploaded to the browser.
|
|
273
|
+
*
|
|
274
|
+
* @param file - The file to check
|
|
275
|
+
* @returns `true` if the file should be considered as a audio content file.
|
|
276
|
+
* @remarks \@since 2.9.0
|
|
277
|
+
*/ export function isAudioFile(file) {
|
|
278
|
+
return /\.(mp3|wav|ogg|m4p|flac)$/i.test(file.name);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* This will first check if the mime-type of the file starts with `video/` and
|
|
282
|
+
* fallback to checking a few file names or extensions that should be considered
|
|
283
|
+
* video.
|
|
284
|
+
*
|
|
285
|
+
* This function is not guaranteed to be 100% correct and is only useful if
|
|
286
|
+
* trying to generate a preview of files uploaded to the browser.
|
|
287
|
+
*
|
|
288
|
+
* @param file - The file to check
|
|
289
|
+
* @returns `true` if the file should be considered as a video content file.
|
|
290
|
+
* @remarks \@since 2.9.0
|
|
291
|
+
*/ export function isVideoFile(file) {
|
|
292
|
+
return /\.(mkv|mpe?g|mov|avi|flv|webm|mp4)$/i.test(file.name);
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* This function is not guaranteed to be 100% correct and is only useful if
|
|
296
|
+
* trying to generate a preview of files uploaded to the browser.
|
|
297
|
+
*
|
|
298
|
+
* @param file - The file to check
|
|
299
|
+
* @returns `true` if the file matches an image, audio, or video file.
|
|
300
|
+
* @remarks \@since 2.9.0
|
|
301
|
+
*/ export function isMediaFile(file) {
|
|
302
|
+
return isImageFile(file) || isAudioFile(file) || isVideoFile(file);
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* This function will attempt to read:
|
|
306
|
+
* - media (image, audio, and video) files as a data url so they can be
|
|
307
|
+
* previewed in `<img>`, `<audio>`, and `<video>` tags
|
|
308
|
+
* - text files as plain text
|
|
309
|
+
* - everything else as an `ArrayBuffer` which can be manually converted into a
|
|
310
|
+
* data url if needed with `URL.createObjectURL`
|
|
311
|
+
*
|
|
312
|
+
* @remarks \@since 2.9.0
|
|
313
|
+
*/ export const getFileParser = (file)=>{
|
|
314
|
+
if (isMediaFile(file)) {
|
|
315
|
+
return "readAsDataURL";
|
|
316
|
+
}
|
|
317
|
+
if (isTextFile(file)) {
|
|
318
|
+
return "readAsText";
|
|
319
|
+
}
|
|
320
|
+
return "readAsArrayBuffer";
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* This util will split all the current upload stats by status.
|
|
324
|
+
*
|
|
325
|
+
* @param stats - The {@link FileUploadStats} list generally returned by the
|
|
326
|
+
* {@link useFileUpload} hook.
|
|
327
|
+
* @returns the {@link SplitFileUploads}.
|
|
328
|
+
* @remarks \@since 2.9.0
|
|
329
|
+
*/ export function getSplitFileUploads(stats) {
|
|
330
|
+
const pending = [];
|
|
331
|
+
const uploading = [];
|
|
332
|
+
const complete = [];
|
|
333
|
+
stats.forEach((stat)=>{
|
|
334
|
+
if (stat.status === "pending") {
|
|
335
|
+
pending.push(stat);
|
|
336
|
+
} else if (stat.status === "uploading") {
|
|
337
|
+
uploading.push(stat);
|
|
338
|
+
} else if (stat.status === "complete") {
|
|
339
|
+
complete.push(stat);
|
|
340
|
+
} else {
|
|
341
|
+
/* istanbul ignore next */ throw new Error("Invalid upload stat");
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
return {
|
|
345
|
+
pending,
|
|
346
|
+
uploading,
|
|
347
|
+
complete
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
//# sourceMappingURL=fileUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/form/fileUtils.ts"],"sourcesContent":["import { nanoid } from \"nanoid\";\nimport { type ChangeEventHandler, type DragEventHandler } from \"react\";\n\n/** @remarks \\@since 2.9.0 */\nexport interface BaseFileUploadStats {\n /**\n * A unique key associated with each upload generated by `nanoid`.\n */\n key: string;\n\n /**\n * The file instance that is being uploaded.\n */\n file: File;\n\n /**\n * The current upload progress as a percentage from 0 - 100 percent.\n */\n progress: number;\n}\n\n/** @remarks \\@since 2.9.0 */\nexport interface ProcessingFileUploadStats extends BaseFileUploadStats {\n status: \"pending\" | \"uploading\";\n}\n\n/** @remarks \\@since 2.9.0 */\nexport type FileReaderResult = FileReader[\"result\"];\n\n/** @remarks \\@since 2.9.0 */\nexport interface CompletedFileUploadStats extends BaseFileUploadStats {\n status: \"complete\";\n\n /**\n * The result after a `FileReader` has read a file completely.\n *\n * Note: This _should_ be an `ArrayBuffer` if the next step is to upload to a\n * server.\n *\n * @see {@link FileReaderParser}\n * @see {@link getFileParser}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileReader | FileReader}\n */\n result: FileReaderResult;\n}\n\n/** @remarks \\@since 2.9.0 */\nexport type FileUploadStats =\n | ProcessingFileUploadStats\n | CompletedFileUploadStats;\n\n/** @remarks \\@since 2.9.0 */\nexport type FileUploadStatus = FileUploadStats[\"status\"];\n\n/** @remarks \\@since 2.9.0 */\nexport interface FileUploadHandlers<E extends HTMLElement> {\n onDrop?: DragEventHandler<E>;\n onChange?: ChangeEventHandler<HTMLInputElement>;\n}\n\n/**\n * An error that will be created if a user tries dragging and dropping files\n * from a shared directory that they do not have access to. This error will not\n * occur much.\n *\n * @remarks \\@since 2.9.0\n */\nexport class FileAccessError extends Error {\n /**\n * A unique key generated by `nanoid` that can be used as a `React` key\n */\n public key: string;\n\n /**\n *\n * @param message - An optional message for the error.\n */\n constructor(message?: string) {\n super(message);\n this.key = nanoid();\n this.name = \"FileAccessError\";\n }\n}\n\n/**\n * An error that just requires a `File` to be passed as the first argument.\n *\n * @remarks \\@since 2.9.0\n */\nexport class GenericFileError extends Error {\n /**\n * A unique key generated by `nanoid` that can be used as a `React` key\n */\n public key: string;\n\n /**\n *\n * @param files - A list of files that caused the error.\n * @param reason - An optional reason for the error\n */\n constructor(\n public files: readonly File[],\n public reason?: string\n ) {\n super(\"Invalid files\");\n this.key = nanoid();\n this.name = \"GenericFileError\";\n }\n}\n\n/**\n * An error that is created during the upload process if the number of files\n * exceeds the {@link FileUploadOptions.maxFiles} amount.\n *\n * @remarks \\@since 2.9.0\n */\nexport class TooManyFilesError extends GenericFileError {\n /**\n *\n * @param files - The list of files that could not be uploaded due to the file\n * limit defined.\n * @param limit - The max limit of files allowed.\n */\n constructor(\n files: readonly File[],\n public limit: number\n ) {\n super(files, \"file limit\");\n this.name = \"TooManyFilesError\";\n }\n}\n\n/**\n * An error that will be created if a user tries to upload a file that\n * is either:\n * - less than the {@link FileValidationOptions.minFileSize}\n * - greater than the {@link FileValidationOptions.maxFileSize}\n * - including the file would be greater than the {@link FileValidationOptions.totalFileSize}\n *\n * @remarks \\@since 2.9.0\n */\nexport class FileSizeError extends GenericFileError {\n /**\n *\n * @param files - The list of files that have the file size error\n * @param type - The file size error type\n * @param limit - The number of bytes allowed based on the type\n */\n constructor(\n files: readonly File[],\n public type: \"min\" | \"max\" | \"total\",\n public limit: number\n ) {\n super(files, \"file size\");\n this.name = \"FileSizeError\";\n }\n}\n\n/**\n * An error that will be created if a user tries to upload a file that does not\n * end with one of the {@link FileValidationOptions.extensions}.\n *\n * @remarks \\@since 2.9.0\n */\nexport class FileExtensionError extends GenericFileError {\n /**\n *\n * @param files - The file that caused the error\n * @param extensions - The allowed list of file extensions\n */\n constructor(\n files: readonly File[],\n public extensions: readonly string[]\n ) {\n super(files, \"extension\");\n this.name = \"FileExtensionError\";\n }\n}\n\n/**\n * Mostly an internal type that is used to allow custom validation errors\n *\n * @remarks \\@since 2.9.0\n */\nexport type FileValidationError<E = GenericFileError> =\n | FileAccessError\n | TooManyFilesError\n | FileSizeError\n | FileExtensionError\n | E;\n\n/**\n * A simple type-guard that can be used to check if the\n * {@link FileValidationError} is the {@link GenericFileError} which can be\n * useful when displaying the errors to the user.\n *\n * @param error - The error to check\n * @returns true if the error is a {@link FileAccessError}\n */\nexport function isGenericFileError<CustomError extends {}>(\n error: FileValidationError<CustomError>\n): error is GenericFileError {\n return \"name\" in error && error.name === \"GenericFileError\";\n}\n\n/**\n * A simple type-guard that can be used to check if the\n * {@link FileValidationError} is the {@link FileAccessError} which can be\n * useful when displaying the errors to the user.\n *\n * @param error - The error to check\n * @returns true if the error is a {@link FileAccessError}\n */\nexport function isFileAccessError<CustomError extends {}>(\n error: FileValidationError<CustomError>\n): error is FileAccessError {\n return \"name\" in error && error.name === \"FileAccessError\";\n}\n\n/**\n * A simple type-guard that can be used to check if the\n * {@link FileValidationError} is the {@link TooManyFilesError} which can be\n * useful when displaying the errors to the user.\n *\n * @param error - The error to check\n * @returns true if the error is a {@link TooManyFilesError}\n */\nexport function isTooManyFilesError<CustomError extends {}>(\n error: FileValidationError<CustomError>\n): error is TooManyFilesError {\n return \"name\" in error && error.name === \"TooManyFilesError\";\n}\n\n/**\n * A simple type-guard that can be used to check if the\n * {@link FileValidationError} is the {@link FileSizeError} which can be\n * useful when displaying the errors to the user.\n *\n * @param error - The error to check\n * @returns true if the error is a {@link FileSizeError}\n */\nexport function isFileSizeError<CustomError extends {}>(\n error: FileValidationError<CustomError>\n): error is FileSizeError {\n return \"name\" in error && error.name === \"FileSizeError\";\n}\n\n/**\n * A simple type-guard that can be used to check if the\n * {@link FileValidationError} is the {@link FileExtensionError} which can be\n * useful when displaying the errors to the user.\n *\n * @param error - The error to check\n * @returns true if the error is a {@link FileExtensionError}\n */\nexport function isFileExtensionError<CustomError extends {}>(\n error: FileValidationError<CustomError>\n): error is FileExtensionError {\n return \"name\" in error && error.name === \"FileExtensionError\";\n}\n\n/**\n * This function is used to determine if a file should be added to the\n * {@link FileExtensionError}. The default implementation should work for most\n * use cases except when files that do not have extensions can be uploaded. i.e.\n * LICENSE files.\n *\n * @param file - The file being checked\n * @param extensionRegExp - A regex that will only be defined if the\n * `extensions` list had at least one value.\n * @param extensions - The list of extensions allowed\n * @returns true if the file has a valid name.\n * @remarks \\@since 3.1.0\n */\nexport type IsValidFileName = (\n file: File,\n extensionRegExp: RegExp | undefined,\n extensions: readonly string[]\n) => boolean;\n\n/**\n *\n * @defaultValue `matcher?.test(file.name) ?? true`\n * @remarks \\@since 3.1.0\n */\nexport const isValidFileName: IsValidFileName = (file, matcher) =>\n matcher?.test(file.name) ?? true;\n\n/** @remarks \\@since 2.9.0 */\nexport interface FileValidationOptions {\n /**\n * If the number of files should be limited, set this value to a number\n * greater than `0`.\n *\n * Note: This still allows \"infinite\" files when set to `0` since the\n * `<input>` element should normally be set to `disabled` if files should not\n * be able to be uploaded.\n *\n * @defaultValue `-1`\n */\n maxFiles?: number;\n\n /**\n * An optional minimum file size to enforce for each file. This will only be\n * used when it is greater than `0`.\n *\n * @defaultValue `-1`\n */\n minFileSize?: number;\n\n /**\n * An optional maximum file size to enforce for each file. This will only be\n * used when it is greater than `0`.\n *\n * @defaultValue `-1`\n */\n maxFileSize?: number;\n\n /**\n * An optional list of extensions to enforce when uploading files.\n *\n * Note: The extensions and file names will be compared ignoring case.\n *\n * @example\n * Only Allow Images\n * ```ts\n * const extensions = [\"png\", \"jpeg\", \"jpg\", \"gif\"];\n * ```\n */\n extensions?: readonly string[];\n\n /** {@inheritDoc IsValidFileName} */\n isValidFileName?: IsValidFileName;\n\n /**\n * An optional total file size to enforce when the {@link maxFiles} option is\n * not set to `1`.\n *\n * @defaultValue `-1`\n */\n totalFileSize?: number;\n}\n\n/** @remarks \\@since 2.9.0 */\nexport interface FilesValidationOptions\n extends Required<FileValidationOptions> {\n /**\n * The total number of bytes in the {@link FileUploadHookReturnValue.stats}\n * list. This is really just:\n *\n * ```ts\n * const totalBytes = stats.reduce((total, stat) => total + stat.file.size, 0);\n * ```\n */\n totalBytes: number;\n\n /**\n * The total number of files in the {@link FileUploadHookReturnValue.stats}.\n */\n totalFiles: number;\n}\n\n/** @remarks \\@since 2.9.0 */\nexport interface ValidatedFilesResult<CustomError> {\n /**\n * A filtered list of files that have been validated and can be queued for the\n * upload process.\n */\n pending: readonly File[];\n\n /**\n * A list of {@link FileValidationError} that occurred during the validation\n * step.\n *\n * Note: If an error has occurred, the file **should not** be added to the\n * {@link pending} list of files.\n */\n errors: readonly FileValidationError<CustomError>[];\n}\n\n/**\n * This function will be called whenever a file has been uploaded by the user\n * either through an `<input type=\"file\">` or drag and drop behavior.\n *\n * @example\n * Simple Example\n * ```ts\n * const validateFiles: FilesValidator = (files, options) => {\n * const invalid: File[] = [];\n * const pending: File[] = [];\n * for (const file of files) {\n * if (!/\\.(jpe?g|svg|png)$/i.test(name)) {\n * invalid.push(file);\n * } else {\n * pending.push(file);\n * }\n * }\n *\n * const errors: FileValidationError[] = [];\n * if (invalid.length) {\n * errors.push(new GenericFileError(invalid))\n * }\n *\n * return { pending, errors };\n * };\n * ```\n *\n * @typeparam E - An optional custom file validation error.\n * @param files - The list of files to check\n * @param options - The {@link FilesValidationOptions}\n * @returns the {@link ValidatedFilesResult}\n * @see {@link validateFiles} for the default implementation\n * @remarks \\@since 2.9.0\n */\nexport type FilesValidator<CustomError = never> = (\n files: readonly File[],\n options: FilesValidationOptions\n) => ValidatedFilesResult<CustomError>;\n\n/**\n * A pretty decent default implementation for validating files with the\n * {@link useFileUpload} that ensures the {@link FilesValidationOptions} are\n * enforced before allowing a file to be uploaded.\n *\n * @typeparam E - An optional custom file validation error.\n * @param files - The list of files to check\n * @param options - The {@link FilesValidationOptions}\n * @returns the {@link ValidatedFilesResult}\n * @remarks \\@since 2.9.0\n */\nexport function validateFiles<CustomError>(\n files: readonly File[],\n {\n maxFiles,\n extensions,\n minFileSize,\n maxFileSize,\n totalBytes,\n totalFiles,\n totalFileSize,\n isValidFileName,\n }: FilesValidationOptions\n): ValidatedFilesResult<CustomError> {\n const errors: FileValidationError<CustomError>[] = [];\n const pending: File[] = [];\n const extraFiles: File[] = [];\n const extensionRegExp =\n extensions.length > 0\n ? new RegExp(`\\\\.(${extensions.join(\"|\")})$`, \"i\")\n : undefined;\n\n let maxFilesReached = maxFiles > 0 && totalFiles >= maxFiles;\n let remainingBytes = totalFileSize - totalBytes;\n const extensionErrors: File[] = [];\n const minErrors: File[] = [];\n const maxErrors: File[] = [];\n const totalSizeErrors: File[] = [];\n for (let i = 0; i < files.length; i += 1) {\n const file = files[i];\n\n let valid = true;\n const { size } = file;\n if (!isValidFileName(file, extensionRegExp, extensions)) {\n valid = false;\n extensionErrors.push(file);\n }\n\n if (minFileSize > 0 && size < minFileSize) {\n valid = false;\n minErrors.push(file);\n }\n\n if (maxFileSize > 0 && size > maxFileSize) {\n valid = false;\n maxErrors.push(file);\n } else if (totalFileSize > 0 && remainingBytes - file.size < 0) {\n // don't want both errors displaying\n valid = false;\n totalSizeErrors.push(file);\n }\n\n if (maxFilesReached && valid) {\n extraFiles.push(file);\n } else if (!maxFilesReached && valid) {\n pending.push(file);\n remainingBytes -= file.size;\n maxFilesReached =\n maxFilesReached ||\n (maxFiles > 0 && totalFiles + pending.length >= maxFiles);\n }\n }\n\n if (extensionErrors.length) {\n errors.push(new FileExtensionError(extensionErrors, extensions));\n }\n\n if (minErrors.length) {\n errors.push(new FileSizeError(minErrors, \"min\", minFileSize));\n }\n\n if (maxErrors.length) {\n errors.push(new FileSizeError(maxErrors, \"max\", maxFileSize));\n }\n\n if (totalSizeErrors.length) {\n errors.push(new FileSizeError(totalSizeErrors, \"total\", totalFileSize));\n }\n\n if (extraFiles.length) {\n errors.push(new TooManyFilesError(extraFiles, maxFiles));\n }\n\n return { pending, errors };\n}\n\n/**\n * This will first check if the mime-type of the file starts with `text/` and\n * fallback to checking a few file names or extensions that should be considered\n * text.\n *\n * This function is not guaranteed to be 100% correct and is only useful if\n * trying to generate a preview of files uploaded to the browser.\n *\n * @param file - The file to check\n * @returns `true` if the file should be considered as a text-content file.\n * @remarks \\@since 2.9.0\n */\nexport function isTextFile(file: File): boolean {\n return /\\.((j|t)sx?|json|lock|hbs|ya?ml|log|txt|md)$/i.test(file.name);\n}\n\n/**\n * This will first check if the mime-type of the file starts with `text\\/` and\n * fallback to checking a few file names or extensions that should be considered\n * text.\n *\n * This function is not guaranteed to be 100% correct and is only useful if\n * trying to generate a preview of files uploaded to the browser.\n *\n * @param file - The file to check\n * @returns `true` if the file should be considered as a text content file.\n * @remarks \\@since 2.9.0\n */\nexport function isImageFile(file: File): boolean {\n return /\\.(a?png|avif|svg|tiff|gifv?|jpe?g)/i.test(file.name);\n}\n\n/**\n * This will first check if the mime-type of the file starts with `audio/` and\n * fallback to checking a few file names or extensions that should be considered\n * audio.\n *\n * This function is not guaranteed to be 100% correct and is only useful if\n * trying to generate a preview of files uploaded to the browser.\n *\n * @param file - The file to check\n * @returns `true` if the file should be considered as a audio content file.\n * @remarks \\@since 2.9.0\n */\nexport function isAudioFile(file: File): boolean {\n return /\\.(mp3|wav|ogg|m4p|flac)$/i.test(file.name);\n}\n\n/**\n * This will first check if the mime-type of the file starts with `video/` and\n * fallback to checking a few file names or extensions that should be considered\n * video.\n *\n * This function is not guaranteed to be 100% correct and is only useful if\n * trying to generate a preview of files uploaded to the browser.\n *\n * @param file - The file to check\n * @returns `true` if the file should be considered as a video content file.\n * @remarks \\@since 2.9.0\n */\nexport function isVideoFile(file: File): boolean {\n return /\\.(mkv|mpe?g|mov|avi|flv|webm|mp4)$/i.test(file.name);\n}\n\n/**\n * This function is not guaranteed to be 100% correct and is only useful if\n * trying to generate a preview of files uploaded to the browser.\n *\n * @param file - The file to check\n * @returns `true` if the file matches an image, audio, or video file.\n * @remarks \\@since 2.9.0\n */\nexport function isMediaFile(file: File): boolean {\n return isImageFile(file) || isAudioFile(file) || isVideoFile(file);\n}\n\n/**\n * One of the function names from a `FileReader` to upload a file to the\n * client.\n *\n * Note: If this file does not need to be previewed in the browser and will\n * immediately be uploaded to a server, use `readAsArrayBuffer`.\n *\n * @remarks \\@since 2.9.0\n */\nexport type FileReaderParser =\n | \"readAsText\"\n | \"readAsDataURL\"\n | \"readAsBinaryString\"\n | \"readAsArrayBuffer\";\n\n/**\n * A function that should return one of the {@link FileReaderParser} functions\n * to start uploading a file to the browser.\n *\n * @example\n * The Default File Upload Parser\n * ```ts\n * export const getFileParser: GetFileParser = (file) => {\n * if (isMediaFile(file)) {\n * return \"readAsDataURL\";\n * }\n *\n * if (isTextFile(file)) {\n * return \"readAsText\";\n * }\n *\n * return \"readAsArrayBuffer\";\n * };\n * ```\n *\n * @param file - The file to get a parser for\n * @returns the {@link FileReaderParser} string.\n * @remarks \\@since 2.9.0\n */\nexport type GetFileParser = (file: File) => FileReaderParser;\n\n/**\n * This function will attempt to read:\n * - media (image, audio, and video) files as a data url so they can be\n * previewed in `<img>`, `<audio>`, and `<video>` tags\n * - text files as plain text\n * - everything else as an `ArrayBuffer` which can be manually converted into a\n * data url if needed with `URL.createObjectURL`\n *\n * @remarks \\@since 2.9.0\n */\nexport const getFileParser: GetFileParser = (file) => {\n if (isMediaFile(file)) {\n return \"readAsDataURL\";\n }\n\n if (isTextFile(file)) {\n return \"readAsText\";\n }\n\n return \"readAsArrayBuffer\";\n};\n\n/** @remarks \\@since 2.9.0 */\nexport interface SplitFileUploads {\n readonly pending: readonly ProcessingFileUploadStats[];\n readonly uploading: readonly ProcessingFileUploadStats[];\n readonly complete: readonly CompletedFileUploadStats[];\n}\n\n/**\n * This util will split all the current upload stats by status.\n *\n * @param stats - The {@link FileUploadStats} list generally returned by the\n * {@link useFileUpload} hook.\n * @returns the {@link SplitFileUploads}.\n * @remarks \\@since 2.9.0\n */\nexport function getSplitFileUploads(\n stats: readonly FileUploadStats[]\n): SplitFileUploads {\n const pending: ProcessingFileUploadStats[] = [];\n const uploading: ProcessingFileUploadStats[] = [];\n const complete: CompletedFileUploadStats[] = [];\n stats.forEach((stat) => {\n if (stat.status === \"pending\") {\n pending.push(stat);\n } else if (stat.status === \"uploading\") {\n uploading.push(stat);\n } else if (stat.status === \"complete\") {\n complete.push(stat);\n } else {\n /* istanbul ignore next */\n throw new Error(\"Invalid upload stat\");\n }\n });\n\n return { pending, uploading, complete };\n}\n"],"names":["nanoid","FileAccessError","Error","constructor","message","key","name","GenericFileError","files","reason","TooManyFilesError","limit","FileSizeError","type","FileExtensionError","extensions","isGenericFileError","error","isFileAccessError","isTooManyFilesError","isFileSizeError","isFileExtensionError","isValidFileName","file","matcher","test","validateFiles","maxFiles","minFileSize","maxFileSize","totalBytes","totalFiles","totalFileSize","errors","pending","extraFiles","extensionRegExp","length","RegExp","join","undefined","maxFilesReached","remainingBytes","extensionErrors","minErrors","maxErrors","totalSizeErrors","i","valid","size","push","isTextFile","isImageFile","isAudioFile","isVideoFile","isMediaFile","getFileParser","getSplitFileUploads","stats","uploading","complete","forEach","stat","status"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,MAAM,QAAQ,SAAS;AA4DhC;;;;;;CAMC,GACD,OAAO,MAAMC,wBAAwBC;IAMnC;;;GAGC,GACDC,YAAYC,OAAgB,CAAE;QAC5B,KAAK,CAACA;QAVR;;GAEC,GACD,uBAAOC,OAAP,KAAA;QAQE,IAAI,CAACA,GAAG,GAAGL;QACX,IAAI,CAACM,IAAI,GAAG;IACd;AACF;AAEA;;;;CAIC,GACD,OAAO,MAAMC,yBAAyBL;IAMpC;;;;GAIC,GACDC,YACE,AAAOK,KAAsB,EAC7B,AAAOC,MAAe,CACtB;QACA,KAAK,CAAC;;;QAdR;;GAEC,GACD,uBAAOJ,OAAP,KAAA;aAQSG,QAAAA;aACAC,SAAAA;QAGP,IAAI,CAACJ,GAAG,GAAGL;QACX,IAAI,CAACM,IAAI,GAAG;IACd;AACF;AAEA;;;;;CAKC,GACD,OAAO,MAAMI,0BAA0BH;IACrC;;;;;GAKC,GACDJ,YACEK,KAAsB,EACtB,AAAOG,KAAa,CACpB;QACA,KAAK,CAACH,OAAO;;aAFNG,QAAAA;QAGP,IAAI,CAACL,IAAI,GAAG;IACd;AACF;AAEA;;;;;;;;CAQC,GACD,OAAO,MAAMM,sBAAsBL;IACjC;;;;;GAKC,GACDJ,YACEK,KAAsB,EACtB,AAAOK,IAA6B,EACpC,AAAOF,KAAa,CACpB;QACA,KAAK,CAACH,OAAO;;;aAHNK,OAAAA;aACAF,QAAAA;QAGP,IAAI,CAACL,IAAI,GAAG;IACd;AACF;AAEA;;;;;CAKC,GACD,OAAO,MAAMQ,2BAA2BP;IACtC;;;;GAIC,GACDJ,YACEK,KAAsB,EACtB,AAAOO,UAA6B,CACpC;QACA,KAAK,CAACP,OAAO;;aAFNO,aAAAA;QAGP,IAAI,CAACT,IAAI,GAAG;IACd;AACF;AAcA;;;;;;;CAOC,GACD,OAAO,SAASU,mBACdC,KAAuC;IAEvC,OAAO,UAAUA,SAASA,MAAMX,IAAI,KAAK;AAC3C;AAEA;;;;;;;CAOC,GACD,OAAO,SAASY,kBACdD,KAAuC;IAEvC,OAAO,UAAUA,SAASA,MAAMX,IAAI,KAAK;AAC3C;AAEA;;;;;;;CAOC,GACD,OAAO,SAASa,oBACdF,KAAuC;IAEvC,OAAO,UAAUA,SAASA,MAAMX,IAAI,KAAK;AAC3C;AAEA;;;;;;;CAOC,GACD,OAAO,SAASc,gBACdH,KAAuC;IAEvC,OAAO,UAAUA,SAASA,MAAMX,IAAI,KAAK;AAC3C;AAEA;;;;;;;CAOC,GACD,OAAO,SAASe,qBACdJ,KAAuC;IAEvC,OAAO,UAAUA,SAASA,MAAMX,IAAI,KAAK;AAC3C;AAqBA;;;;CAIC,GACD,OAAO,MAAMgB,kBAAmC,CAACC,MAAMC,UACrDA,SAASC,KAAKF,KAAKjB,IAAI,KAAK,KAAK;AAqInC;;;;;;;;;;CAUC,GACD,OAAO,SAASoB,cACdlB,KAAsB,EACtB,EACEmB,QAAQ,EACRZ,UAAU,EACVa,WAAW,EACXC,WAAW,EACXC,UAAU,EACVC,UAAU,EACVC,aAAa,EACbV,eAAe,EACQ;IAEzB,MAAMW,SAA6C,EAAE;IACrD,MAAMC,UAAkB,EAAE;IAC1B,MAAMC,aAAqB,EAAE;IAC7B,MAAMC,kBACJrB,WAAWsB,MAAM,GAAG,IAChB,IAAIC,OAAO,CAAC,IAAI,EAAEvB,WAAWwB,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,OAC5CC;IAEN,IAAIC,kBAAkBd,WAAW,KAAKI,cAAcJ;IACpD,IAAIe,iBAAiBV,gBAAgBF;IACrC,MAAMa,kBAA0B,EAAE;IAClC,MAAMC,YAAoB,EAAE;IAC5B,MAAMC,YAAoB,EAAE;IAC5B,MAAMC,kBAA0B,EAAE;IAClC,IAAK,IAAIC,IAAI,GAAGA,IAAIvC,MAAM6B,MAAM,EAAEU,KAAK,EAAG;QACxC,MAAMxB,OAAOf,KAAK,CAACuC,EAAE;QAErB,IAAIC,QAAQ;QACZ,MAAM,EAAEC,IAAI,EAAE,GAAG1B;QACjB,IAAI,CAACD,gBAAgBC,MAAMa,iBAAiBrB,aAAa;YACvDiC,QAAQ;YACRL,gBAAgBO,IAAI,CAAC3B;QACvB;QAEA,IAAIK,cAAc,KAAKqB,OAAOrB,aAAa;YACzCoB,QAAQ;YACRJ,UAAUM,IAAI,CAAC3B;QACjB;QAEA,IAAIM,cAAc,KAAKoB,OAAOpB,aAAa;YACzCmB,QAAQ;YACRH,UAAUK,IAAI,CAAC3B;QACjB,OAAO,IAAIS,gBAAgB,KAAKU,iBAAiBnB,KAAK0B,IAAI,GAAG,GAAG;YAC9D,oCAAoC;YACpCD,QAAQ;YACRF,gBAAgBI,IAAI,CAAC3B;QACvB;QAEA,IAAIkB,mBAAmBO,OAAO;YAC5Bb,WAAWe,IAAI,CAAC3B;QAClB,OAAO,IAAI,CAACkB,mBAAmBO,OAAO;YACpCd,QAAQgB,IAAI,CAAC3B;YACbmB,kBAAkBnB,KAAK0B,IAAI;YAC3BR,kBACEA,mBACCd,WAAW,KAAKI,aAAaG,QAAQG,MAAM,IAAIV;QACpD;IACF;IAEA,IAAIgB,gBAAgBN,MAAM,EAAE;QAC1BJ,OAAOiB,IAAI,CAAC,IAAIpC,mBAAmB6B,iBAAiB5B;IACtD;IAEA,IAAI6B,UAAUP,MAAM,EAAE;QACpBJ,OAAOiB,IAAI,CAAC,IAAItC,cAAcgC,WAAW,OAAOhB;IAClD;IAEA,IAAIiB,UAAUR,MAAM,EAAE;QACpBJ,OAAOiB,IAAI,CAAC,IAAItC,cAAciC,WAAW,OAAOhB;IAClD;IAEA,IAAIiB,gBAAgBT,MAAM,EAAE;QAC1BJ,OAAOiB,IAAI,CAAC,IAAItC,cAAckC,iBAAiB,SAASd;IAC1D;IAEA,IAAIG,WAAWE,MAAM,EAAE;QACrBJ,OAAOiB,IAAI,CAAC,IAAIxC,kBAAkByB,YAAYR;IAChD;IAEA,OAAO;QAAEO;QAASD;IAAO;AAC3B;AAEA;;;;;;;;;;;CAWC,GACD,OAAO,SAASkB,WAAW5B,IAAU;IACnC,OAAO,gDAAgDE,IAAI,CAACF,KAAKjB,IAAI;AACvE;AAEA;;;;;;;;;;;CAWC,GACD,OAAO,SAAS8C,YAAY7B,IAAU;IACpC,OAAO,uCAAuCE,IAAI,CAACF,KAAKjB,IAAI;AAC9D;AAEA;;;;;;;;;;;CAWC,GACD,OAAO,SAAS+C,YAAY9B,IAAU;IACpC,OAAO,6BAA6BE,IAAI,CAACF,KAAKjB,IAAI;AACpD;AAEA;;;;;;;;;;;CAWC,GACD,OAAO,SAASgD,YAAY/B,IAAU;IACpC,OAAO,uCAAuCE,IAAI,CAACF,KAAKjB,IAAI;AAC9D;AAEA;;;;;;;CAOC,GACD,OAAO,SAASiD,YAAYhC,IAAU;IACpC,OAAO6B,YAAY7B,SAAS8B,YAAY9B,SAAS+B,YAAY/B;AAC/D;AA2CA;;;;;;;;;CASC,GACD,OAAO,MAAMiC,gBAA+B,CAACjC;IAC3C,IAAIgC,YAAYhC,OAAO;QACrB,OAAO;IACT;IAEA,IAAI4B,WAAW5B,OAAO;QACpB,OAAO;IACT;IAEA,OAAO;AACT,EAAE;AASF;;;;;;;CAOC,GACD,OAAO,SAASkC,oBACdC,KAAiC;IAEjC,MAAMxB,UAAuC,EAAE;IAC/C,MAAMyB,YAAyC,EAAE;IACjD,MAAMC,WAAuC,EAAE;IAC/CF,MAAMG,OAAO,CAAC,CAACC;QACb,IAAIA,KAAKC,MAAM,KAAK,WAAW;YAC7B7B,QAAQgB,IAAI,CAACY;QACf,OAAO,IAAIA,KAAKC,MAAM,KAAK,aAAa;YACtCJ,UAAUT,IAAI,CAACY;QACjB,OAAO,IAAIA,KAAKC,MAAM,KAAK,YAAY;YACrCH,SAASV,IAAI,CAACY;QAChB,OAAO;YACL,wBAAwB,GACxB,MAAM,IAAI5D,MAAM;QAClB;IACF;IAEA,OAAO;QAAEgC;QAASyB;QAAWC;IAAS;AACxC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FormConfiguration } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* @remarks \@since 6.0.0
|
|
4
|
+
*/
|
|
5
|
+
export declare const FORM_CONFIG: FormConfiguration;
|
|
6
|
+
/**
|
|
7
|
+
* @remarks \@since 6.0.0
|
|
8
|
+
*/
|
|
9
|
+
export declare function getFormConfig<N extends keyof FormConfiguration>(name: N, override?: FormConfiguration[N]): FormConfiguration[N];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @remarks \@since 6.0.0
|
|
3
|
+
*/ export const FORM_CONFIG = {
|
|
4
|
+
theme: "outline",
|
|
5
|
+
underlineDirection: "left",
|
|
6
|
+
uncontrolledToggles: true
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @remarks \@since 6.0.0
|
|
10
|
+
*/ export function getFormConfig(name, override) {
|
|
11
|
+
if (typeof override !== "undefined") {
|
|
12
|
+
return override;
|
|
13
|
+
}
|
|
14
|
+
return FORM_CONFIG[name];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=formConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/form/formConfig.ts"],"sourcesContent":["import { type FormConfiguration } from \"./types.js\";\n\n/**\n * @remarks \\@since 6.0.0\n */\nexport const FORM_CONFIG: FormConfiguration = {\n theme: \"outline\",\n underlineDirection: \"left\",\n uncontrolledToggles: true,\n};\n\n/**\n * @remarks \\@since 6.0.0\n */\nexport function getFormConfig<N extends keyof FormConfiguration>(\n name: N,\n override?: FormConfiguration[N]\n): FormConfiguration[N] {\n if (typeof override !== \"undefined\") {\n return override;\n }\n\n return FORM_CONFIG[name];\n}\n"],"names":["FORM_CONFIG","theme","underlineDirection","uncontrolledToggles","getFormConfig","name","override"],"mappings":"AAEA;;CAEC,GACD,OAAO,MAAMA,cAAiC;IAC5CC,OAAO;IACPC,oBAAoB;IACpBC,qBAAqB;AACvB,EAAE;AAEF;;CAEC,GACD,OAAO,SAASC,cACdC,IAAO,EACPC,QAA+B;IAE/B,IAAI,OAAOA,aAAa,aAAa;QACnC,OAAOA;IACT;IAEA,OAAON,WAAW,CAACK,KAAK;AAC1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type FormMessageClassNameOptions } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* @remarks \@since 6.0.0
|
|
4
|
+
*/
|
|
5
|
+
export declare function formMessage(options?: FormMessageClassNameOptions): string;
|
|
6
|
+
/** @remarks \@since 6.0.0 */
|
|
7
|
+
export interface FormMessageTextClassNameOptions {
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @remarks \@since 6.0.0
|
|
12
|
+
*/
|
|
13
|
+
export declare function formMessageText(options?: FormMessageTextClassNameOptions): string;
|
|
14
|
+
/** @remarks \@since 6.0.0 */
|
|
15
|
+
export interface FormMessageCounterClassNameOptions {
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @remarks \@since 6.0.0
|
|
20
|
+
*/
|
|
21
|
+
export declare function formMessageCounter(options?: FormMessageCounterClassNameOptions): string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { cnb } from "cnbuilder";
|
|
2
|
+
import { cssUtils } from "../cssUtils.js";
|
|
3
|
+
import { bem } from "../utils/bem.js";
|
|
4
|
+
const styles = bem("rmd-form-message");
|
|
5
|
+
/**
|
|
6
|
+
* @remarks \@since 6.0.0
|
|
7
|
+
*/ export function formMessage(options = {}) {
|
|
8
|
+
const { className, error = false, theme = "none" } = options;
|
|
9
|
+
return cnb(styles({
|
|
10
|
+
[theme]: theme !== "none"
|
|
11
|
+
}), cssUtils({
|
|
12
|
+
textColor: error ? "error" : "text-secondary"
|
|
13
|
+
}), className);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @remarks \@since 6.0.0
|
|
17
|
+
*/ export function formMessageText(options = {}) {
|
|
18
|
+
const { className } = options;
|
|
19
|
+
return cnb(styles("message"), className);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @remarks \@since 6.0.0
|
|
23
|
+
*/ export function formMessageCounter(options = {}) {
|
|
24
|
+
const { className } = options;
|
|
25
|
+
return cnb(styles("counter"), className);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=formMessageStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/form/formMessageStyles.ts"],"sourcesContent":["import { cnb } from \"cnbuilder\";\nimport { cssUtils } from \"../cssUtils.js\";\nimport { bem } from \"../utils/bem.js\";\nimport { type FormMessageClassNameOptions } from \"./types.js\";\n\nconst styles = bem(\"rmd-form-message\");\n\n/**\n * @remarks \\@since 6.0.0\n */\nexport function formMessage(options: FormMessageClassNameOptions = {}): string {\n const { className, error = false, theme = \"none\" } = options;\n\n return cnb(\n styles({ [theme]: theme !== \"none\" }),\n cssUtils({ textColor: error ? \"error\" : \"text-secondary\" }),\n className\n );\n}\n\n/** @remarks \\@since 6.0.0 */\nexport interface FormMessageTextClassNameOptions {\n className?: string;\n}\n\n/**\n * @remarks \\@since 6.0.0\n */\nexport function formMessageText(\n options: FormMessageTextClassNameOptions = {}\n): string {\n const { className } = options;\n\n return cnb(styles(\"message\"), className);\n}\n\n/** @remarks \\@since 6.0.0 */\nexport interface FormMessageCounterClassNameOptions {\n className?: string;\n}\n\n/**\n * @remarks \\@since 6.0.0\n */\nexport function formMessageCounter(\n options: FormMessageCounterClassNameOptions = {}\n): string {\n const { className } = options;\n\n return cnb(styles(\"counter\"), className);\n}\n"],"names":["cnb","cssUtils","bem","styles","formMessage","options","className","error","theme","textColor","formMessageText","formMessageCounter"],"mappings":"AAAA,SAASA,GAAG,QAAQ,YAAY;AAChC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,GAAG,QAAQ,kBAAkB;AAGtC,MAAMC,SAASD,IAAI;AAEnB;;CAEC,GACD,OAAO,SAASE,YAAYC,UAAuC,CAAC,CAAC;IACnE,MAAM,EAAEC,SAAS,EAAEC,QAAQ,KAAK,EAAEC,QAAQ,MAAM,EAAE,GAAGH;IAErD,OAAOL,IACLG,OAAO;QAAE,CAACK,MAAM,EAAEA,UAAU;IAAO,IACnCP,SAAS;QAAEQ,WAAWF,QAAQ,UAAU;IAAiB,IACzDD;AAEJ;AAOA;;CAEC,GACD,OAAO,SAASI,gBACdL,UAA2C,CAAC,CAAC;IAE7C,MAAM,EAAEC,SAAS,EAAE,GAAGD;IAEtB,OAAOL,IAAIG,OAAO,YAAYG;AAChC;AAOA;;CAEC,GACD,OAAO,SAASK,mBACdN,UAA8C,CAAC,CAAC;IAEhD,MAAM,EAAEC,SAAS,EAAE,GAAGD;IAEtB,OAAOL,IAAIG,OAAO,YAAYG;AAChC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type FormComponentStates } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The size to use for the `Checkbox` or `Radio` component. Each of these values
|
|
4
|
+
* except for `"auto"` map to Sass variables:
|
|
5
|
+
* - `"small"` - `$input-toggle-small-size`
|
|
6
|
+
* - `"dense"` - `$input-toggle-dense-size`
|
|
7
|
+
* - `"normal"` - `$input-toggle-large-size`
|
|
8
|
+
* - `"large"` - `$input-toggle-large-size`
|
|
9
|
+
*
|
|
10
|
+
* When this is set to `"auto"`, the size will be determined by the current
|
|
11
|
+
* `font-size` of the `Label` element.
|
|
12
|
+
*
|
|
13
|
+
* @remarks \@since 6.0.0
|
|
14
|
+
*/
|
|
15
|
+
export type InputToggleSize = "auto" | "small" | "dense" | "normal" | "large";
|
|
16
|
+
/** @remarks \@since 6.0.0 */
|
|
17
|
+
export interface InputToggleClassNameOptions extends Omit<FormComponentStates, "readOnly"> {
|
|
18
|
+
className?: string;
|
|
19
|
+
type: "checkbox" | "radio";
|
|
20
|
+
/**
|
|
21
|
+
* Set the icon size to `1em` to allow easy sizing through font size.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue `true`
|
|
24
|
+
*/
|
|
25
|
+
em?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @see {@link InputToggleSize}
|
|
28
|
+
* @defaultValue `"auto"`
|
|
29
|
+
*/
|
|
30
|
+
size?: InputToggleSize;
|
|
31
|
+
uncontrolled?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @remarks \@since 6.0.0
|
|
35
|
+
*/
|
|
36
|
+
export declare function inputToggle(options: InputToggleClassNameOptions): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { cnb } from "cnbuilder";
|
|
2
|
+
import { cssUtils } from "../cssUtils.js";
|
|
3
|
+
import { bem } from "../utils/bem.js";
|
|
4
|
+
const styles = bem("rmd-input-toggle");
|
|
5
|
+
/**
|
|
6
|
+
* @remarks \@since 6.0.0
|
|
7
|
+
*/ export function inputToggle(options) {
|
|
8
|
+
const { className, em = true, type, size = "auto", error, active = false, disabled = false, uncontrolled } = options;
|
|
9
|
+
return cnb(`rmd-${type}`, styles({
|
|
10
|
+
em,
|
|
11
|
+
active: active && !disabled,
|
|
12
|
+
disabled,
|
|
13
|
+
small: size === "small",
|
|
14
|
+
dense: size === "dense",
|
|
15
|
+
normal: size === "normal",
|
|
16
|
+
large: size === "large",
|
|
17
|
+
uncontrolled
|
|
18
|
+
}), cssUtils({
|
|
19
|
+
textColor: disabled ? "text-disabled" : error ? "error" : undefined
|
|
20
|
+
}), className);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=inputToggleStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/form/inputToggleStyles.ts"],"sourcesContent":["import { cnb } from \"cnbuilder\";\nimport { cssUtils } from \"../cssUtils.js\";\nimport { bem } from \"../utils/bem.js\";\nimport { type FormComponentStates } from \"./types.js\";\n\nconst styles = bem(\"rmd-input-toggle\");\n\n/**\n * The size to use for the `Checkbox` or `Radio` component. Each of these values\n * except for `\"auto\"` map to Sass variables:\n * - `\"small\"` - `$input-toggle-small-size`\n * - `\"dense\"` - `$input-toggle-dense-size`\n * - `\"normal\"` - `$input-toggle-large-size`\n * - `\"large\"` - `$input-toggle-large-size`\n *\n * When this is set to `\"auto\"`, the size will be determined by the current\n * `font-size` of the `Label` element.\n *\n * @remarks \\@since 6.0.0\n */\nexport type InputToggleSize = \"auto\" | \"small\" | \"dense\" | \"normal\" | \"large\";\n\n/** @remarks \\@since 6.0.0 */\nexport interface InputToggleClassNameOptions\n extends Omit<FormComponentStates, \"readOnly\"> {\n className?: string;\n type: \"checkbox\" | \"radio\";\n\n /**\n * Set the icon size to `1em` to allow easy sizing through font size.\n *\n * @defaultValue `true`\n */\n em?: boolean;\n\n /**\n * @see {@link InputToggleSize}\n * @defaultValue `\"auto\"`\n */\n size?: InputToggleSize;\n\n uncontrolled?: boolean;\n}\n\n/**\n * @remarks \\@since 6.0.0\n */\nexport function inputToggle(options: InputToggleClassNameOptions): string {\n const {\n className,\n em = true,\n type,\n size = \"auto\",\n error,\n active = false,\n disabled = false,\n uncontrolled,\n } = options;\n\n return cnb(\n `rmd-${type}`,\n styles({\n em,\n active: active && !disabled,\n disabled,\n small: size === \"small\",\n dense: size === \"dense\",\n normal: size === \"normal\",\n large: size === \"large\",\n uncontrolled,\n }),\n cssUtils({\n textColor: disabled ? \"text-disabled\" : error ? \"error\" : undefined,\n }),\n className\n );\n}\n"],"names":["cnb","cssUtils","bem","styles","inputToggle","options","className","em","type","size","error","active","disabled","uncontrolled","small","dense","normal","large","textColor","undefined"],"mappings":"AAAA,SAASA,GAAG,QAAQ,YAAY;AAChC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,GAAG,QAAQ,kBAAkB;AAGtC,MAAMC,SAASD,IAAI;AAuCnB;;CAEC,GACD,OAAO,SAASE,YAAYC,OAAoC;IAC9D,MAAM,EACJC,SAAS,EACTC,KAAK,IAAI,EACTC,IAAI,EACJC,OAAO,MAAM,EACbC,KAAK,EACLC,SAAS,KAAK,EACdC,WAAW,KAAK,EAChBC,YAAY,EACb,GAAGR;IAEJ,OAAOL,IACL,CAAC,IAAI,EAAEQ,KAAK,CAAC,EACbL,OAAO;QACLI;QACAI,QAAQA,UAAU,CAACC;QACnBA;QACAE,OAAOL,SAAS;QAChBM,OAAON,SAAS;QAChBO,QAAQP,SAAS;QACjBQ,OAAOR,SAAS;QAChBI;IACF,IACAZ,SAAS;QACPiB,WAAWN,WAAW,kBAAkBF,QAAQ,UAAUS;IAC5D,IACAb;AAEJ"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** @remarks \@since 6.0.0 */
|
|
2
|
+
export interface NativeSelectClassNameOptions {
|
|
3
|
+
className?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Set to `true` if using a custom icon instead of the default `<select>`
|
|
6
|
+
* appearance.
|
|
7
|
+
*
|
|
8
|
+
* @defaultValue `false`
|
|
9
|
+
*/
|
|
10
|
+
icon?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** @remarks \@since 6.0.0 */
|
|
13
|
+
export declare function nativeSelect(options?: NativeSelectClassNameOptions): string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks \@since 6.0.0
|
|
16
|
+
*/
|
|
17
|
+
export interface NativeSelectContainerClassNameOptions {
|
|
18
|
+
className?: string;
|
|
19
|
+
label?: boolean;
|
|
20
|
+
multiple?: boolean;
|
|
21
|
+
underlined?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @remarks \@since 6.0.0
|
|
25
|
+
*/
|
|
26
|
+
export declare function nativeSelectContainer(options?: NativeSelectContainerClassNameOptions): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { cnb } from "cnbuilder";
|
|
2
|
+
import { bem } from "../utils/bem.js";
|
|
3
|
+
const styles = bem("rmd-native-select");
|
|
4
|
+
const containerStyles = bem("rmd-native-select-container");
|
|
5
|
+
/** @remarks \@since 6.0.0 */ export function nativeSelect(options = {}) {
|
|
6
|
+
const { className, icon = false } = options;
|
|
7
|
+
return cnb(styles({
|
|
8
|
+
icon
|
|
9
|
+
}), className);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @remarks \@since 6.0.0
|
|
13
|
+
*/ export function nativeSelectContainer(options = {}) {
|
|
14
|
+
const { className, label, multiple, underlined } = options;
|
|
15
|
+
return cnb(containerStyles({
|
|
16
|
+
multi: multiple,
|
|
17
|
+
padded: label && multiple && !underlined,
|
|
18
|
+
underline: multiple && underlined,
|
|
19
|
+
"underline-padded": label && multiple && underlined
|
|
20
|
+
}), className);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=nativeSelectStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/form/nativeSelectStyles.ts"],"sourcesContent":["import { cnb } from \"cnbuilder\";\nimport { bem } from \"../utils/bem.js\";\n\nconst styles = bem(\"rmd-native-select\");\nconst containerStyles = bem(\"rmd-native-select-container\");\n\n/** @remarks \\@since 6.0.0 */\nexport interface NativeSelectClassNameOptions {\n className?: string;\n\n /**\n * Set to `true` if using a custom icon instead of the default `<select>`\n * appearance.\n *\n * @defaultValue `false`\n */\n icon?: boolean;\n}\n\n/** @remarks \\@since 6.0.0 */\nexport function nativeSelect(\n options: NativeSelectClassNameOptions = {}\n): string {\n const { className, icon = false } = options;\n\n return cnb(styles({ icon }), className);\n}\n\n/**\n * @remarks \\@since 6.0.0\n */\nexport interface NativeSelectContainerClassNameOptions {\n className?: string;\n label?: boolean;\n multiple?: boolean;\n underlined?: boolean;\n}\n\n/**\n * @remarks \\@since 6.0.0\n */\nexport function nativeSelectContainer(\n options: NativeSelectContainerClassNameOptions = {}\n): string {\n const { className, label, multiple, underlined } = options;\n\n return cnb(\n containerStyles({\n multi: multiple,\n padded: label && multiple && !underlined,\n underline: multiple && underlined,\n \"underline-padded\": label && multiple && underlined,\n }),\n className\n );\n}\n"],"names":["cnb","bem","styles","containerStyles","nativeSelect","options","className","icon","nativeSelectContainer","label","multiple","underlined","multi","padded","underline"],"mappings":"AAAA,SAASA,GAAG,QAAQ,YAAY;AAChC,SAASC,GAAG,QAAQ,kBAAkB;AAEtC,MAAMC,SAASD,IAAI;AACnB,MAAME,kBAAkBF,IAAI;AAe5B,2BAA2B,GAC3B,OAAO,SAASG,aACdC,UAAwC,CAAC,CAAC;IAE1C,MAAM,EAAEC,SAAS,EAAEC,OAAO,KAAK,EAAE,GAAGF;IAEpC,OAAOL,IAAIE,OAAO;QAAEK;IAAK,IAAID;AAC/B;AAYA;;CAEC,GACD,OAAO,SAASE,sBACdH,UAAiD,CAAC,CAAC;IAEnD,MAAM,EAAEC,SAAS,EAAEG,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAE,GAAGN;IAEnD,OAAOL,IACLG,gBAAgB;QACdS,OAAOF;QACPG,QAAQJ,SAASC,YAAY,CAACC;QAC9BG,WAAWJ,YAAYC;QACvB,oBAAoBF,SAASC,YAAYC;IAC3C,IACAL;AAEJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @remarks \@since 6.0.0
|
|
3
|
+
*/
|
|
4
|
+
export interface OptionClassNameOptions {
|
|
5
|
+
className?: string;
|
|
6
|
+
icon: boolean;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @remarks \@since 6.0.0
|
|
11
|
+
*/
|
|
12
|
+
export declare function option(options: OptionClassNameOptions): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { cnb } from "cnbuilder";
|
|
2
|
+
import { bem } from "../utils/bem.js";
|
|
3
|
+
const styles = bem("rmd-option");
|
|
4
|
+
/**
|
|
5
|
+
* @remarks \@since 6.0.0
|
|
6
|
+
*/ export function option(options) {
|
|
7
|
+
const { className, icon, selected } = options;
|
|
8
|
+
return cnb(styles({
|
|
9
|
+
icon,
|
|
10
|
+
selected
|
|
11
|
+
}), className);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=optionStyles.js.map
|