urfu-ui-kit-react 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -25
- package/dist/components/Accordion/Accordion.js +18 -0
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.js +32 -0
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +88 -0
- package/dist/components/Button/Button.types.d.ts +9 -3
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/ButtonRefreshIcon.js +35 -0
- package/dist/components/Calendar/Calendar.d.ts +1 -5
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +355 -0
- package/dist/components/Calendar/CalendarSelect.js +149 -0
- package/dist/components/Calendar/MaskedDateInput.d.ts.map +1 -1
- package/dist/components/Calendar/MaskedDateInput.js +191 -0
- package/dist/components/Calendar/dateMask.d.ts +0 -1
- package/dist/components/Calendar/dateMask.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +75 -0
- package/dist/components/Checkbox/Checkbox.js +30 -0
- package/dist/components/ColumnSettings/ColumnSettings.js +216 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts +1 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
- package/dist/components/ConfirmModal/ConfirmModal.js +40 -0
- package/dist/components/ErrorScreen/ErrorScreen.d.ts +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.js +221 -0
- package/dist/components/ErrorScreen/ErrorScreenIllustration.js +57 -0
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormField/FormField.js +40 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +32 -0
- package/dist/components/Icon/Icon.types.d.ts +3 -1
- package/dist/components/Icon/Icon.types.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.js +144 -0
- package/dist/components/InputFile/InputFile.d.ts +1 -1
- package/dist/components/InputFile/InputFile.d.ts.map +1 -1
- package/dist/components/InputFile/InputFile.js +203 -0
- package/dist/components/InputFile/InputFile.types.d.ts +0 -6
- package/dist/components/InputFile/InputFile.types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.js +220 -0
- package/dist/components/InputText/InputAffix.d.ts +1 -1
- package/dist/components/InputText/InputAffix.js +109 -0
- package/dist/components/InputText/InputText.d.ts +2 -1
- package/dist/components/InputText/InputText.d.ts.map +1 -1
- package/dist/components/InputText/InputText.js +137 -0
- package/dist/components/InputTime/InputTime.d.ts +1 -1
- package/dist/components/InputTime/InputTime.d.ts.map +1 -1
- package/dist/components/InputTime/InputTime.js +335 -0
- package/dist/components/InputTime/InputTimeDropdown.js +31 -0
- package/dist/components/InputTime/inputTimeKeyDown.js +63 -0
- package/dist/components/InputTime/useInputTimeWheel.js +45 -0
- package/dist/components/Menu/Menu.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +113 -0
- package/dist/components/Message/Message.js +29 -0
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +102 -0
- package/dist/components/Modal/editorFocus.js +15 -0
- package/dist/components/Modal/useModalFocus.js +112 -0
- package/dist/components/Modal/useModalTitleClearance.js +48 -0
- package/dist/components/Multiselect/Multiselect.d.ts +1 -0
- package/dist/components/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/components/Multiselect/Multiselect.js +408 -0
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.js +156 -0
- package/dist/components/OfflineBanner/OfflineBanner.d.ts +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.js +40 -0
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +126 -0
- package/dist/components/Preloader/Preloader.d.ts.map +1 -1
- package/dist/components/Preloader/Preloader.js +60 -0
- package/dist/components/Radio/Radio.js +34 -0
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.d.ts.map +1 -1
- package/dist/components/Search/Search.js +47 -0
- package/dist/components/SearchSelect/SearchSelect.js +295 -0
- package/dist/components/SearchSelect/SearchSelectOption.js +41 -0
- package/dist/components/SearchSelect/useFlippedPlacement.js +25 -0
- package/dist/components/Select/MobileOptionSheet.d.ts +1 -1
- package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
- package/dist/components/Select/MobileOptionSheet.js +116 -0
- package/dist/components/Select/Select.js +319 -0
- package/dist/components/Skeleton/Skeleton.js +38 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +4 -2
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/dist/components/Status/Status.js +43 -0
- package/dist/components/StickyActionBar/StickyActionBar.d.ts +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.js +73 -0
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +29 -0
- package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
- package/dist/components/Table/Filter/DefaultInput.js +22 -0
- package/dist/components/Table/Filter/Filter.js +233 -0
- package/dist/components/Table/Filter/Filter.types.d.ts +17 -13
- package/dist/components/Table/Filter/Filter.types.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.js +40 -0
- package/dist/components/Table/Filter/FilterBoxShell.js +89 -0
- package/dist/components/Table/Filter/FilterConditionSelect.js +14 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterDateBox.js +173 -0
- package/dist/components/Table/Filter/FilterPanel.js +25 -0
- package/dist/components/Table/Filter/FilterSortIndicator.js +24 -0
- package/dist/components/Table/Filter/FilterStringBox.js +115 -0
- package/dist/components/Table/Filter/Functions.d.ts +0 -6
- package/dist/components/Table/Filter/Functions.d.ts.map +1 -1
- package/dist/components/Table/Filter/Functions.js +76 -0
- package/dist/components/Table/Filter/SelectFilter.js +114 -0
- package/dist/components/Table/Filter/SelectOptions.js +21 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts +1 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
- package/dist/components/Table/Filter/TableFilterOptions.js +268 -0
- package/dist/components/Table/Filter/TableFilterSortButton.js +17 -0
- package/dist/components/Table/Filter/filterBoxHelpers.js +2 -0
- package/dist/components/Table/Filter/filterExpression.js +48 -0
- package/dist/components/Table/Filter/filterLoading.js +2 -0
- package/dist/components/Table/Filter/useFilterDates.js +33 -0
- package/dist/components/Table/Filter/useFilterOptionsPreload.js +22 -0
- package/dist/components/Table/Filter/useLocalFilterSearch.js +32 -0
- package/dist/components/Table/Filter/usePagedFilterOptions.js +71 -0
- package/dist/components/Table/Filter/useServerFilterOptions.js +35 -0
- package/dist/components/Table/Filter/useVirtualOptionWindow.js +80 -0
- package/dist/components/Table/Functions.js +54 -0
- package/dist/components/Table/Skeleton/TableSkeleton.js +28 -0
- package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -0
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.js +75 -0
- package/dist/components/Table/Table.helpers.d.ts +2 -2
- package/dist/components/Table/Table.helpers.d.ts.map +1 -1
- package/dist/components/Table/Table.helpers.js +72 -0
- package/dist/components/Table/Table.js +419 -0
- package/dist/components/Table/Table.types.d.ts +6 -2
- package/dist/components/Table/Table.types.d.ts.map +1 -1
- package/dist/components/Table/TableHead.d.ts.map +1 -1
- package/dist/components/Table/TableHead.js +189 -0
- package/dist/components/Table/TableMobileCard.js +215 -0
- package/dist/components/Table/TableMobileFilters.js +56 -0
- package/dist/components/Table/TableMobileView.js +316 -0
- package/dist/components/Table/TableRow.js +136 -0
- package/dist/components/Table/useColumnResize.d.ts +3 -2
- package/dist/components/Table/useColumnResize.d.ts.map +1 -1
- package/dist/components/Table/useColumnResize.js +44 -0
- package/dist/components/Table/useDelayedSkeleton.d.ts +0 -2
- package/dist/components/Table/useDelayedSkeleton.d.ts.map +1 -1
- package/dist/components/Table/useDelayedSkeleton.js +32 -0
- package/dist/components/Table/useMobileFilterColumns.d.ts +1 -1
- package/dist/components/Table/useMobileFilterColumns.d.ts.map +1 -1
- package/dist/components/Table/useMobileFilterColumns.js +52 -0
- package/dist/components/Table/useStableColumnWidths.js +22 -0
- package/dist/components/Table/useTableColumnPinning.d.ts +2 -57
- package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
- package/dist/components/Table/useTableColumnPinning.js +52 -0
- package/dist/components/Table/useTableFilters.js +39 -0
- package/dist/components/Table/useTableSortState.js +38 -0
- package/dist/components/Table/useTableVirtualization.js +145 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +135 -0
- package/dist/components/Tabs/useTabsOverflow.js +49 -0
- package/dist/components/Textarea/Textarea.js +102 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +218 -0
- package/dist/components/TreeView/TreeView.d.ts +1 -0
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.js +323 -0
- package/dist/components/TreeView/TreeView.types.d.ts +0 -4
- package/dist/components/TreeView/TreeView.types.d.ts.map +1 -1
- package/dist/dev/index.js +336 -336
- package/dist/dev/types/vanilla/src/dev/shown.d.ts +0 -2
- package/dist/dev/types/vanilla/src/dev/store.d.ts +0 -4
- package/dist/fonts/icons/urfu-ui-icon-font.eot +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.svg +3 -0
- package/dist/fonts/icons/urfu-ui-icon-font.ttf +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff2 +0 -0
- package/dist/hooks/useActiveOptionScroll.js +20 -0
- package/dist/hooks/useAnchoredPosition.d.ts +12 -0
- package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
- package/dist/hooks/useAnchoredPosition.js +37 -0
- package/dist/hooks/useAutoId.d.ts +0 -1
- package/dist/hooks/useAutoId.d.ts.map +1 -1
- package/dist/hooks/useAutoId.js +7 -0
- package/dist/hooks/useAutoPortal.js +11 -0
- package/dist/hooks/useDebounce.js +11 -0
- package/dist/hooks/useDismiss.d.ts +1 -1
- package/dist/hooks/useDismiss.d.ts.map +1 -1
- package/dist/hooks/useDismiss.js +20 -0
- package/dist/hooks/useInputOverflow.d.ts +9 -0
- package/dist/hooks/useInputOverflow.d.ts.map +1 -0
- package/dist/hooks/useInputOverflow.js +16 -0
- package/dist/hooks/useMediaQuery.js +21 -0
- package/dist/hooks/useMobilePicker.js +7 -0
- package/dist/hooks/useMountTransition.d.ts +1 -1
- package/dist/hooks/useMountTransition.d.ts.map +1 -1
- package/dist/hooks/useMountTransition.js +21 -0
- package/dist/hooks/useOnlineStatus.js +11 -0
- package/dist/hooks/useOptionKeyboardNavigation.js +63 -0
- package/dist/hooks/usePagination.js +31 -0
- package/dist/hooks/useSelectEngine.d.ts +3 -3
- package/dist/hooks/useSelectEngine.d.ts.map +1 -1
- package/dist/hooks/useSelectEngine.js +96 -0
- package/dist/hooks/useTableSort.js +13 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/responsive/uiKitResponsive.js +44 -0
- package/dist/shared/fieldAccessibility.js +8 -0
- package/dist/shared/iconNames.d.ts +5 -0
- package/dist/shared/iconNames.d.ts.map +1 -0
- package/dist/shared/inputOverflow.d.ts +10 -0
- package/dist/shared/inputOverflow.d.ts.map +1 -0
- package/dist/shared/kitCopy.js +9 -0
- package/dist/shared/optionStateColors.js +5 -0
- package/dist/shared/optionValue.d.ts +1 -1
- package/dist/shared/optionValue.d.ts.map +1 -1
- package/dist/shared/optionValue.js +11 -0
- package/dist/shared/popupTransition.js +11 -0
- package/dist/shared/size.d.ts +0 -1
- package/dist/shared/size.d.ts.map +1 -1
- package/dist/shared/size.js +4 -0
- package/dist/shared/sortRows.js +24 -0
- package/dist/shared/uiKitDefaults.js +25 -0
- package/dist/style-no-fonts.css +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layer.css +9 -9
- package/dist/style.shell.css +15 -11
- package/dist/urfu-ui-kit-react.js +57 -17502
- package/dist/vanilla/core/BoundedOptionPageCache.js +41 -0
- package/dist/vanilla/core/dateMask.js +28 -0
- package/dist/vanilla/core/describeError.js +243 -0
- package/dist/vanilla/core/devLauncherOffset.js +20 -0
- package/dist/vanilla/core/distributeTabs.js +25 -0
- package/dist/vanilla/core/hasPreviousPage.js +6 -0
- package/dist/vanilla/core/inputMode.js +17 -0
- package/dist/vanilla/core/inputOverflow.js +34 -0
- package/dist/vanilla/core/kitRegistry.js +160 -0
- package/dist/vanilla/core/reconcileColumnOrder.js +5 -0
- package/dist/vanilla/core/sheetTitle.js +11 -0
- package/dist/vanilla/core/validation.js +21 -0
- package/dist/vendor/@floating-ui/core/dist/floating-ui.core.js +323 -0
- package/dist/vendor/@floating-ui/dom/dist/floating-ui.dom.js +383 -0
- package/dist/vendor/@floating-ui/react/dist/floating-ui.react.js +255 -0
- package/dist/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +183 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +110 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
- package/dist/vendor/clsx/dist/clsx.js +14 -0
- package/dist/vendor/date-fns/_lib/addLeadingZeros.js +5 -0
- package/dist/vendor/date-fns/_lib/defaultOptions.js +5 -0
- package/dist/vendor/date-fns/_lib/format/formatters.js +547 -0
- package/dist/vendor/date-fns/_lib/format/lightFormatters.js +56 -0
- package/dist/vendor/date-fns/_lib/format/longFormatters.js +47 -0
- package/dist/vendor/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +16 -0
- package/dist/vendor/date-fns/_lib/protectedTokens.js +16 -0
- package/dist/vendor/date-fns/addDays.js +7 -0
- package/dist/vendor/date-fns/addHours.js +6 -0
- package/dist/vendor/date-fns/addMilliseconds.js +7 -0
- package/dist/vendor/date-fns/addMinutes.js +6 -0
- package/dist/vendor/date-fns/addMonths.js +17 -0
- package/dist/vendor/date-fns/addQuarters.js +6 -0
- package/dist/vendor/date-fns/addSeconds.js +5 -0
- package/dist/vendor/date-fns/addWeeks.js +6 -0
- package/dist/vendor/date-fns/addYears.js +5 -0
- package/dist/vendor/date-fns/constants.js +2 -0
- package/dist/vendor/date-fns/constructFrom.js +4 -0
- package/dist/vendor/date-fns/differenceInCalendarDays.js +8 -0
- package/dist/vendor/date-fns/differenceInCalendarMonths.js +6 -0
- package/dist/vendor/date-fns/differenceInCalendarQuarters.js +7 -0
- package/dist/vendor/date-fns/differenceInCalendarYears.js +6 -0
- package/dist/vendor/date-fns/differenceInDays.js +13 -0
- package/dist/vendor/date-fns/endOfDay.js +6 -0
- package/dist/vendor/date-fns/endOfMonth.js +6 -0
- package/dist/vendor/date-fns/endOfWeek.js +8 -0
- package/dist/vendor/date-fns/endOfYear.js +6 -0
- package/dist/vendor/date-fns/format.js +53 -0
- package/dist/vendor/date-fns/getDate.js +5 -0
- package/dist/vendor/date-fns/getDay.js +5 -0
- package/dist/vendor/date-fns/getDayOfYear.js +8 -0
- package/dist/vendor/date-fns/getDaysInMonth.js +7 -0
- package/dist/vendor/date-fns/getDefaultOptions.js +5 -0
- package/dist/vendor/date-fns/getHours.js +5 -0
- package/dist/vendor/date-fns/getISODay.js +6 -0
- package/dist/vendor/date-fns/getISOWeek.js +9 -0
- package/dist/vendor/date-fns/getISOWeekYear.js +12 -0
- package/dist/vendor/date-fns/getMinutes.js +5 -0
- package/dist/vendor/date-fns/getMonth.js +5 -0
- package/dist/vendor/date-fns/getQuarter.js +6 -0
- package/dist/vendor/date-fns/getSeconds.js +5 -0
- package/dist/vendor/date-fns/getTime.js +5 -0
- package/dist/vendor/date-fns/getWeek.js +9 -0
- package/dist/vendor/date-fns/getWeekYear.js +14 -0
- package/dist/vendor/date-fns/getYear.js +5 -0
- package/dist/vendor/date-fns/isAfter.js +6 -0
- package/dist/vendor/date-fns/isBefore.js +6 -0
- package/dist/vendor/date-fns/isDate.js +4 -0
- package/dist/vendor/date-fns/isEqual.js +6 -0
- package/dist/vendor/date-fns/isSameDay.js +6 -0
- package/dist/vendor/date-fns/isSameMonth.js +6 -0
- package/dist/vendor/date-fns/isSameQuarter.js +6 -0
- package/dist/vendor/date-fns/isSameWeek.js +6 -0
- package/dist/vendor/date-fns/isSameYear.js +6 -0
- package/dist/vendor/date-fns/isValid.js +9 -0
- package/dist/vendor/date-fns/isWithinInterval.js +9 -0
- package/dist/vendor/date-fns/locale/_lib/buildFormatLongFn.js +7 -0
- package/dist/vendor/date-fns/locale/_lib/buildLocalizeFn.js +16 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchFn.js +29 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchPatternFn.js +13 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatDistance.js +68 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatLong.js +31 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatRelative.js +9 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/localize.js +153 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/match.js +108 -0
- package/dist/vendor/date-fns/locale/en-US.js +18 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatDistance.js +182 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatLong.js +28 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatRelative.js +62 -0
- package/dist/vendor/date-fns/locale/ru/_lib/localize.js +177 -0
- package/dist/vendor/date-fns/locale/ru/_lib/match.js +109 -0
- package/dist/vendor/date-fns/locale/ru.js +18 -0
- package/dist/vendor/date-fns/max.js +9 -0
- package/dist/vendor/date-fns/min.js +9 -0
- package/dist/vendor/date-fns/parse/_lib/Parser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/Setter.js +36 -0
- package/dist/vendor/date-fns/parse/_lib/constants.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DateParser.js +59 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayOfYearParser.js +49 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayPeriodParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/EraParser.js +29 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ExtendedYearParser.js +19 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0To11Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1to12Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISODayParser.js +101 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +38 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MinuteParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/SecondParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/YearParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers.js +65 -0
- package/dist/vendor/date-fns/parse/_lib/utils.js +90 -0
- package/dist/vendor/date-fns/parse.js +85 -0
- package/dist/vendor/date-fns/parseISO.js +119 -0
- package/dist/vendor/date-fns/set.js +8 -0
- package/dist/vendor/date-fns/setDay.js +9 -0
- package/dist/vendor/date-fns/setHours.js +6 -0
- package/dist/vendor/date-fns/setISODay.js +8 -0
- package/dist/vendor/date-fns/setISOWeek.js +7 -0
- package/dist/vendor/date-fns/setMinutes.js +6 -0
- package/dist/vendor/date-fns/setMonth.js +10 -0
- package/dist/vendor/date-fns/setQuarter.js +7 -0
- package/dist/vendor/date-fns/setSeconds.js +6 -0
- package/dist/vendor/date-fns/setWeek.js +7 -0
- package/dist/vendor/date-fns/setYear.js +7 -0
- package/dist/vendor/date-fns/startOfDay.js +6 -0
- package/dist/vendor/date-fns/startOfISOWeek.js +5 -0
- package/dist/vendor/date-fns/startOfISOWeekYear.js +8 -0
- package/dist/vendor/date-fns/startOfMonth.js +6 -0
- package/dist/vendor/date-fns/startOfQuarter.js +6 -0
- package/dist/vendor/date-fns/startOfWeek.js +8 -0
- package/dist/vendor/date-fns/startOfWeekYear.js +10 -0
- package/dist/vendor/date-fns/startOfYear.js +7 -0
- package/dist/vendor/date-fns/subDays.js +5 -0
- package/dist/vendor/date-fns/subMonths.js +5 -0
- package/dist/vendor/date-fns/subQuarters.js +5 -0
- package/dist/vendor/date-fns/subWeeks.js +5 -0
- package/dist/vendor/date-fns/subYears.js +5 -0
- package/dist/vendor/date-fns/toDate.js +5 -0
- package/dist/vendor/date-fns/transpose.js +15 -0
- package/dist/vendor/react-datepicker/dist/es/index.js +2696 -0
- package/package.json +37 -35
- package/dist/hooks/useOutsideAlerter.d.ts +0 -3
- package/dist/hooks/useOutsideAlerter.d.ts.map +0 -1
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { useLayoutEffect as k, useEffect as q } from "react";
|
|
3
|
+
import { jsxs as Q, jsx as O } from "react/jsx-runtime";
|
|
4
|
+
import { isElement$u as F, getComputedStyle$u as Z } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
5
|
+
import { getOverflowAncestors$u as xe } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import { useFloating$u as z } from "../../react-dom/dist/floating-ui.react-dom.js";
|
|
8
|
+
import { arrow$u as we, flip$u as Ee, offset$u as Se } from "../../react-dom/dist/floating-ui.react-dom.js";
|
|
9
|
+
const $ = {
|
|
10
|
+
...s
|
|
11
|
+
}, G = $.useInsertionEffect, J = G || ((t) => t());
|
|
12
|
+
function K(t) {
|
|
13
|
+
const n = s.useRef(() => {
|
|
14
|
+
if (process.env.NODE_ENV !== "production")
|
|
15
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
16
|
+
});
|
|
17
|
+
return J(() => {
|
|
18
|
+
n.current = t;
|
|
19
|
+
}), s.useCallback(function() {
|
|
20
|
+
for (var c = arguments.length, e = new Array(c), o = 0; o < c; o++)
|
|
21
|
+
e[o] = arguments[o];
|
|
22
|
+
return n.current == null ? void 0 : n.current(...e);
|
|
23
|
+
}, []);
|
|
24
|
+
}
|
|
25
|
+
var M = typeof document < "u" ? k : q;
|
|
26
|
+
let y = !1, _ = 0;
|
|
27
|
+
const W = () => (
|
|
28
|
+
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
29
|
+
// on <React 18
|
|
30
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + _++
|
|
31
|
+
);
|
|
32
|
+
function ee() {
|
|
33
|
+
const [t, n] = s.useState(() => y ? W() : void 0);
|
|
34
|
+
return M(() => {
|
|
35
|
+
t == null && n(W());
|
|
36
|
+
}, []), s.useEffect(() => {
|
|
37
|
+
y = !0;
|
|
38
|
+
}, []), t;
|
|
39
|
+
}
|
|
40
|
+
const te = $.useId, B = te || ee;
|
|
41
|
+
let P;
|
|
42
|
+
process.env.NODE_ENV !== "production" && (P = /* @__PURE__ */ new Set());
|
|
43
|
+
function ne() {
|
|
44
|
+
for (var t, n = arguments.length, c = new Array(n), e = 0; e < n; e++)
|
|
45
|
+
c[e] = arguments[e];
|
|
46
|
+
const o = "Floating UI: " + c.join(" ");
|
|
47
|
+
if (!((t = P) != null && t.has(o))) {
|
|
48
|
+
var l;
|
|
49
|
+
(l = P) == null || l.add(o), console.warn(o);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function oe() {
|
|
53
|
+
for (var t, n = arguments.length, c = new Array(n), e = 0; e < n; e++)
|
|
54
|
+
c[e] = arguments[e];
|
|
55
|
+
const o = "Floating UI: " + c.join(" ");
|
|
56
|
+
if (!((t = P) != null && t.has(o))) {
|
|
57
|
+
var l;
|
|
58
|
+
(l = P) == null || l.add(o), console.error(o);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const pe = /* @__PURE__ */ s.forwardRef(function(n, c) {
|
|
62
|
+
const {
|
|
63
|
+
context: {
|
|
64
|
+
placement: e,
|
|
65
|
+
elements: {
|
|
66
|
+
floating: o
|
|
67
|
+
},
|
|
68
|
+
middlewareData: {
|
|
69
|
+
arrow: l,
|
|
70
|
+
shift: u
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
width: i = 14,
|
|
74
|
+
height: a = 7,
|
|
75
|
+
tipRadius: I = 0,
|
|
76
|
+
strokeWidth: d = 0,
|
|
77
|
+
staticOffset: g,
|
|
78
|
+
stroke: h,
|
|
79
|
+
d: r,
|
|
80
|
+
style: {
|
|
81
|
+
transform: p,
|
|
82
|
+
...R
|
|
83
|
+
} = {},
|
|
84
|
+
...v
|
|
85
|
+
} = n;
|
|
86
|
+
process.env.NODE_ENV !== "production" && (c || ne("The `ref` prop is required for `FloatingArrow`."));
|
|
87
|
+
const x = B(), [E, f] = s.useState(!1);
|
|
88
|
+
if (M(() => {
|
|
89
|
+
if (!o) return;
|
|
90
|
+
Z(o).direction === "rtl" && f(!0);
|
|
91
|
+
}, [o]), !o)
|
|
92
|
+
return null;
|
|
93
|
+
const [m, b] = e.split("-"), D = m === "top" || m === "bottom";
|
|
94
|
+
let S = g;
|
|
95
|
+
(D && u != null && u.x || !D && u != null && u.y) && (S = null);
|
|
96
|
+
const C = d * 2, N = C / 2, A = i / 2 * (I / -8 + 1), T = a / 2 * I / 4, w = !!r, U = S && b === "end" ? "bottom" : "top";
|
|
97
|
+
let L = S && b === "end" ? "right" : "left";
|
|
98
|
+
S && E && (L = b === "end" ? "left" : "right");
|
|
99
|
+
const H = (l == null ? void 0 : l.x) != null ? S || l.x : "", X = (l == null ? void 0 : l.y) != null ? S || l.y : "", V = r || "M0,0" + (" H" + i) + (" L" + (i - A) + "," + (a - T)) + (" Q" + i / 2 + "," + a + " " + A + "," + (a - T)) + " Z", Y = {
|
|
100
|
+
top: w ? "rotate(180deg)" : "",
|
|
101
|
+
left: w ? "rotate(90deg)" : "rotate(-90deg)",
|
|
102
|
+
bottom: w ? "" : "rotate(180deg)",
|
|
103
|
+
right: w ? "rotate(-90deg)" : "rotate(90deg)"
|
|
104
|
+
}[m];
|
|
105
|
+
return /* @__PURE__ */ Q("svg", {
|
|
106
|
+
...v,
|
|
107
|
+
"aria-hidden": !0,
|
|
108
|
+
ref: c,
|
|
109
|
+
width: w ? i : i + C,
|
|
110
|
+
height: i,
|
|
111
|
+
viewBox: "0 0 " + i + " " + (a > i ? a : i),
|
|
112
|
+
style: {
|
|
113
|
+
position: "absolute",
|
|
114
|
+
pointerEvents: "none",
|
|
115
|
+
[L]: H,
|
|
116
|
+
[U]: X,
|
|
117
|
+
[m]: D || w ? "100%" : "calc(100% - " + C / 2 + "px)",
|
|
118
|
+
transform: [Y, p].filter((j) => !!j).join(" "),
|
|
119
|
+
...R
|
|
120
|
+
},
|
|
121
|
+
children: [C > 0 && /* @__PURE__ */ O("path", {
|
|
122
|
+
clipPath: "url(#" + x + ")",
|
|
123
|
+
fill: "none",
|
|
124
|
+
stroke: h,
|
|
125
|
+
strokeWidth: C + (r ? 0 : 1),
|
|
126
|
+
d: V
|
|
127
|
+
}), /* @__PURE__ */ O("path", {
|
|
128
|
+
stroke: C && !r ? v.fill : "none",
|
|
129
|
+
d: V
|
|
130
|
+
}), /* @__PURE__ */ O("clipPath", {
|
|
131
|
+
id: x,
|
|
132
|
+
children: /* @__PURE__ */ O("rect", {
|
|
133
|
+
x: -N,
|
|
134
|
+
y: N * (w ? -1 : 1),
|
|
135
|
+
width: i + C,
|
|
136
|
+
height: i
|
|
137
|
+
})
|
|
138
|
+
})]
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
function re() {
|
|
142
|
+
const t = /* @__PURE__ */ new Map();
|
|
143
|
+
return {
|
|
144
|
+
emit(n, c) {
|
|
145
|
+
var e;
|
|
146
|
+
(e = t.get(n)) == null || e.forEach((o) => o(c));
|
|
147
|
+
},
|
|
148
|
+
on(n, c) {
|
|
149
|
+
t.set(n, [...t.get(n) || [], c]);
|
|
150
|
+
},
|
|
151
|
+
off(n, c) {
|
|
152
|
+
var e;
|
|
153
|
+
t.set(n, ((e = t.get(n)) == null ? void 0 : e.filter((o) => o !== c)) || []);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
const se = /* @__PURE__ */ s.createContext(null), ce = /* @__PURE__ */ s.createContext(null), le = () => {
|
|
158
|
+
var t;
|
|
159
|
+
return ((t = s.useContext(se)) == null ? void 0 : t.id) || null;
|
|
160
|
+
}, ie = () => s.useContext(ce);
|
|
161
|
+
function fe(t) {
|
|
162
|
+
const {
|
|
163
|
+
open: n = !1,
|
|
164
|
+
onOpenChange: c,
|
|
165
|
+
elements: e
|
|
166
|
+
} = t, o = B(), l = s.useRef({}), [u] = s.useState(() => re()), i = le() != null;
|
|
167
|
+
if (process.env.NODE_ENV !== "production") {
|
|
168
|
+
const r = e.reference;
|
|
169
|
+
r && !F(r) && oe("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
170
|
+
}
|
|
171
|
+
const [a, I] = s.useState(e.reference), d = K((r, p, R) => {
|
|
172
|
+
l.current.openEvent = r ? p : void 0, u.emit("openchange", {
|
|
173
|
+
open: r,
|
|
174
|
+
event: p,
|
|
175
|
+
reason: R,
|
|
176
|
+
nested: i
|
|
177
|
+
}), c == null || c(r, p, R);
|
|
178
|
+
}), g = s.useMemo(() => ({
|
|
179
|
+
setPositionReference: I
|
|
180
|
+
}), []), h = s.useMemo(() => ({
|
|
181
|
+
reference: a || e.reference || null,
|
|
182
|
+
floating: e.floating || null,
|
|
183
|
+
domReference: e.reference
|
|
184
|
+
}), [a, e.reference, e.floating]);
|
|
185
|
+
return s.useMemo(() => ({
|
|
186
|
+
dataRef: l,
|
|
187
|
+
open: n,
|
|
188
|
+
onOpenChange: d,
|
|
189
|
+
elements: h,
|
|
190
|
+
events: u,
|
|
191
|
+
floatingId: o,
|
|
192
|
+
refs: g
|
|
193
|
+
}), [n, d, h, u, o, g]);
|
|
194
|
+
}
|
|
195
|
+
function he(t) {
|
|
196
|
+
t === void 0 && (t = {});
|
|
197
|
+
const {
|
|
198
|
+
nodeId: n
|
|
199
|
+
} = t, c = fe({
|
|
200
|
+
...t,
|
|
201
|
+
elements: {
|
|
202
|
+
reference: null,
|
|
203
|
+
floating: null,
|
|
204
|
+
...t.elements
|
|
205
|
+
}
|
|
206
|
+
}), e = t.rootContext || c, o = e.elements, [l, u] = s.useState(null), [i, a] = s.useState(null), d = (o == null ? void 0 : o.domReference) || l, g = s.useRef(null), h = ie();
|
|
207
|
+
M(() => {
|
|
208
|
+
d && (g.current = d);
|
|
209
|
+
}, [d]);
|
|
210
|
+
const r = z({
|
|
211
|
+
...t,
|
|
212
|
+
elements: {
|
|
213
|
+
...o,
|
|
214
|
+
...i && {
|
|
215
|
+
reference: i
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}), p = s.useCallback((f) => {
|
|
219
|
+
const m = F(f) ? {
|
|
220
|
+
getBoundingClientRect: () => f.getBoundingClientRect(),
|
|
221
|
+
contextElement: f
|
|
222
|
+
} : f;
|
|
223
|
+
a(m), r.refs.setReference(m);
|
|
224
|
+
}, [r.refs]), R = s.useCallback((f) => {
|
|
225
|
+
(F(f) || f === null) && (g.current = f, u(f)), (F(r.refs.reference.current) || r.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
226
|
+
// `null` to support `positionReference` + an unstable `reference`
|
|
227
|
+
// callback ref.
|
|
228
|
+
f !== null && !F(f)) && r.refs.setReference(f);
|
|
229
|
+
}, [r.refs]), v = s.useMemo(() => ({
|
|
230
|
+
...r.refs,
|
|
231
|
+
setReference: R,
|
|
232
|
+
setPositionReference: p,
|
|
233
|
+
domReference: g
|
|
234
|
+
}), [r.refs, R, p]), x = s.useMemo(() => ({
|
|
235
|
+
...r.elements,
|
|
236
|
+
domReference: d
|
|
237
|
+
}), [r.elements, d]), E = s.useMemo(() => ({
|
|
238
|
+
...r,
|
|
239
|
+
...e,
|
|
240
|
+
refs: v,
|
|
241
|
+
elements: x,
|
|
242
|
+
nodeId: n
|
|
243
|
+
}), [r, v, x, n, e]);
|
|
244
|
+
return M(() => {
|
|
245
|
+
e.dataRef.current.floatingContext = E;
|
|
246
|
+
const f = h == null ? void 0 : h.nodesRef.current.find((m) => m.id === n);
|
|
247
|
+
f && (f.context = E);
|
|
248
|
+
}), s.useMemo(() => ({
|
|
249
|
+
...r,
|
|
250
|
+
context: E,
|
|
251
|
+
refs: v,
|
|
252
|
+
elements: x
|
|
253
|
+
}), [r, v, x, E]);
|
|
254
|
+
}
|
|
255
|
+
export { pe as FloatingArrow$u, we as arrow$u, Ee as flip$u, xe as getOverflowAncestors$u, Se as offset$u, he as useFloating$u, le as useFloatingParentNodeId$u, fe as useFloatingRootContext$u, ie as useFloatingTree$u, B as useId$u };
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { flip$u as I, offset$u as J, computePosition$u as K, arrow$u as v } from "../../dom/dist/floating-ui.dom.js";
|
|
2
|
+
import { autoUpdate$u as oe, platform$u as se } from "../../dom/dist/floating-ui.dom.js";
|
|
3
|
+
import * as f from "react";
|
|
4
|
+
import { useLayoutEffect as N, useEffect as Q } from "react";
|
|
5
|
+
import * as T from "react-dom";
|
|
6
|
+
var R = typeof document < "u" ? N : Q;
|
|
7
|
+
function h(e, t) {
|
|
8
|
+
if (e === t)
|
|
9
|
+
return !0;
|
|
10
|
+
if (typeof e != typeof t)
|
|
11
|
+
return !1;
|
|
12
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
13
|
+
return !0;
|
|
14
|
+
let n, r, s;
|
|
15
|
+
if (e && t && typeof e == "object") {
|
|
16
|
+
if (Array.isArray(e)) {
|
|
17
|
+
if (n = e.length, n !== t.length) return !1;
|
|
18
|
+
for (r = n; r-- !== 0; )
|
|
19
|
+
if (!h(e[r], t[r]))
|
|
20
|
+
return !1;
|
|
21
|
+
return !0;
|
|
22
|
+
}
|
|
23
|
+
if (s = Object.keys(e), n = s.length, n !== Object.keys(t).length)
|
|
24
|
+
return !1;
|
|
25
|
+
for (r = n; r-- !== 0; )
|
|
26
|
+
if (!{}.hasOwnProperty.call(t, s[r]))
|
|
27
|
+
return !1;
|
|
28
|
+
for (r = n; r-- !== 0; ) {
|
|
29
|
+
const p = s[r];
|
|
30
|
+
if (!(p === "_owner" && e.$$typeof) && !h(e[p], t[p]))
|
|
31
|
+
return !1;
|
|
32
|
+
}
|
|
33
|
+
return !0;
|
|
34
|
+
}
|
|
35
|
+
return e !== e && t !== t;
|
|
36
|
+
}
|
|
37
|
+
function q(e) {
|
|
38
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
39
|
+
}
|
|
40
|
+
function A(e, t) {
|
|
41
|
+
const n = q(e);
|
|
42
|
+
return Math.round(t * n) / n;
|
|
43
|
+
}
|
|
44
|
+
function k(e) {
|
|
45
|
+
const t = f.useRef(e);
|
|
46
|
+
return R(() => {
|
|
47
|
+
t.current = e;
|
|
48
|
+
}), t;
|
|
49
|
+
}
|
|
50
|
+
function b(e) {
|
|
51
|
+
e === void 0 && (e = {});
|
|
52
|
+
const {
|
|
53
|
+
placement: t = "bottom",
|
|
54
|
+
strategy: n = "absolute",
|
|
55
|
+
middleware: r = [],
|
|
56
|
+
platform: s,
|
|
57
|
+
elements: {
|
|
58
|
+
reference: p,
|
|
59
|
+
floating: B
|
|
60
|
+
} = {},
|
|
61
|
+
transform: D = !0,
|
|
62
|
+
whileElementsMounted: $,
|
|
63
|
+
open: x
|
|
64
|
+
} = e, [u, O] = f.useState({
|
|
65
|
+
x: 0,
|
|
66
|
+
y: 0,
|
|
67
|
+
strategy: n,
|
|
68
|
+
placement: t,
|
|
69
|
+
middlewareData: {},
|
|
70
|
+
isPositioned: !1
|
|
71
|
+
}), [M, U] = f.useState(r);
|
|
72
|
+
h(M, r) || U(r);
|
|
73
|
+
const [V, W] = f.useState(null), [z, G] = f.useState(null), _ = f.useCallback((o) => {
|
|
74
|
+
o !== a.current && (a.current = o, W(o));
|
|
75
|
+
}, []), C = f.useCallback((o) => {
|
|
76
|
+
o !== d.current && (d.current = o, G(o));
|
|
77
|
+
}, []), i = p || V, l = B || z, a = f.useRef(null), d = f.useRef(null), y = f.useRef(u), H = $ != null, P = k($), S = k(s), F = k(x), g = f.useCallback(() => {
|
|
78
|
+
if (!a.current || !d.current)
|
|
79
|
+
return;
|
|
80
|
+
const o = {
|
|
81
|
+
placement: t,
|
|
82
|
+
strategy: n,
|
|
83
|
+
middleware: M
|
|
84
|
+
};
|
|
85
|
+
S.current && (o.platform = S.current), K(a.current, d.current, o).then((w) => {
|
|
86
|
+
const m = {
|
|
87
|
+
...w,
|
|
88
|
+
// The floating element's position may be recomputed while it's closed
|
|
89
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
90
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
91
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
92
|
+
isPositioned: F.current !== !1
|
|
93
|
+
};
|
|
94
|
+
E.current && !h(y.current, m) && (y.current = m, T.flushSync(() => {
|
|
95
|
+
O(m);
|
|
96
|
+
}));
|
|
97
|
+
});
|
|
98
|
+
}, [M, t, n, S, F]);
|
|
99
|
+
R(() => {
|
|
100
|
+
x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, O((o) => ({
|
|
101
|
+
...o,
|
|
102
|
+
isPositioned: !1
|
|
103
|
+
})));
|
|
104
|
+
}, [x]);
|
|
105
|
+
const E = f.useRef(!1);
|
|
106
|
+
R(() => (E.current = !0, () => {
|
|
107
|
+
E.current = !1;
|
|
108
|
+
}), []), R(() => {
|
|
109
|
+
if (i && (a.current = i), l && (d.current = l), i && l) {
|
|
110
|
+
if (P.current)
|
|
111
|
+
return P.current(i, l, g);
|
|
112
|
+
g();
|
|
113
|
+
}
|
|
114
|
+
}, [i, l, g, P, H]);
|
|
115
|
+
const j = f.useMemo(() => ({
|
|
116
|
+
reference: a,
|
|
117
|
+
floating: d,
|
|
118
|
+
setReference: _,
|
|
119
|
+
setFloating: C
|
|
120
|
+
}), [_, C]), c = f.useMemo(() => ({
|
|
121
|
+
reference: i,
|
|
122
|
+
floating: l
|
|
123
|
+
}), [i, l]), L = f.useMemo(() => {
|
|
124
|
+
const o = {
|
|
125
|
+
position: n,
|
|
126
|
+
left: 0,
|
|
127
|
+
top: 0
|
|
128
|
+
};
|
|
129
|
+
if (!c.floating)
|
|
130
|
+
return o;
|
|
131
|
+
const w = A(c.floating, u.x), m = A(c.floating, u.y);
|
|
132
|
+
return D ? {
|
|
133
|
+
...o,
|
|
134
|
+
transform: "translate(" + w + "px, " + m + "px)",
|
|
135
|
+
...q(c.floating) >= 1.5 && {
|
|
136
|
+
willChange: "transform"
|
|
137
|
+
}
|
|
138
|
+
} : {
|
|
139
|
+
position: n,
|
|
140
|
+
left: w,
|
|
141
|
+
top: m
|
|
142
|
+
};
|
|
143
|
+
}, [n, D, c.floating, u.x, u.y]);
|
|
144
|
+
return f.useMemo(() => ({
|
|
145
|
+
...u,
|
|
146
|
+
update: g,
|
|
147
|
+
refs: j,
|
|
148
|
+
elements: c,
|
|
149
|
+
floatingStyles: L
|
|
150
|
+
}), [u, g, j, c, L]);
|
|
151
|
+
}
|
|
152
|
+
const X = (e) => {
|
|
153
|
+
function t(n) {
|
|
154
|
+
return {}.hasOwnProperty.call(n, "current");
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
name: "arrow",
|
|
158
|
+
options: e,
|
|
159
|
+
fn(n) {
|
|
160
|
+
const {
|
|
161
|
+
element: r,
|
|
162
|
+
padding: s
|
|
163
|
+
} = typeof e == "function" ? e(n) : e;
|
|
164
|
+
return r && t(r) ? r.current != null ? v({
|
|
165
|
+
element: r.current,
|
|
166
|
+
padding: s
|
|
167
|
+
}).fn(n) : {} : r ? v({
|
|
168
|
+
element: r,
|
|
169
|
+
padding: s
|
|
170
|
+
}).fn(n) : {};
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}, ee = (e, t) => ({
|
|
174
|
+
...J(e),
|
|
175
|
+
options: [e, t]
|
|
176
|
+
}), te = (e, t) => ({
|
|
177
|
+
...I(e),
|
|
178
|
+
options: [e, t]
|
|
179
|
+
}), ne = (e, t) => ({
|
|
180
|
+
...X(e),
|
|
181
|
+
options: [e, t]
|
|
182
|
+
});
|
|
183
|
+
export { ne as arrow$u, oe as autoUpdate$u, K as computePosition$u, te as flip$u, ee as offset$u, se as platform$u, b as useFloating$u };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
function c() {
|
|
2
|
+
return typeof window < "u";
|
|
3
|
+
}
|
|
4
|
+
function s(n) {
|
|
5
|
+
return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
|
6
|
+
}
|
|
7
|
+
function i(n) {
|
|
8
|
+
var t;
|
|
9
|
+
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
10
|
+
}
|
|
11
|
+
function E(n) {
|
|
12
|
+
var t;
|
|
13
|
+
return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
|
14
|
+
}
|
|
15
|
+
function p(n) {
|
|
16
|
+
return c() ? n instanceof Node || n instanceof i(n).Node : !1;
|
|
17
|
+
}
|
|
18
|
+
function m(n) {
|
|
19
|
+
return c() ? n instanceof Element || n instanceof i(n).Element : !1;
|
|
20
|
+
}
|
|
21
|
+
function w(n) {
|
|
22
|
+
return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
|
|
23
|
+
}
|
|
24
|
+
function a(n) {
|
|
25
|
+
return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
|
|
26
|
+
}
|
|
27
|
+
function y(n) {
|
|
28
|
+
const {
|
|
29
|
+
overflow: t,
|
|
30
|
+
overflowX: e,
|
|
31
|
+
overflowY: o,
|
|
32
|
+
display: r
|
|
33
|
+
} = b(n);
|
|
34
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
|
35
|
+
}
|
|
36
|
+
function D(n) {
|
|
37
|
+
return ["table", "td", "th"].includes(s(n));
|
|
38
|
+
}
|
|
39
|
+
function N(n) {
|
|
40
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
41
|
+
try {
|
|
42
|
+
return n.matches(t);
|
|
43
|
+
} catch {
|
|
44
|
+
return !1;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function T(n) {
|
|
49
|
+
const t = L(), e = m(n) ? b(n) : n;
|
|
50
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
|
51
|
+
}
|
|
52
|
+
function k(n) {
|
|
53
|
+
let t = u(n);
|
|
54
|
+
for (; w(t) && !g(t); ) {
|
|
55
|
+
if (T(t))
|
|
56
|
+
return t;
|
|
57
|
+
if (N(t))
|
|
58
|
+
return null;
|
|
59
|
+
t = u(t);
|
|
60
|
+
}
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
function L() {
|
|
64
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
65
|
+
}
|
|
66
|
+
function g(n) {
|
|
67
|
+
return ["html", "body", "#document"].includes(s(n));
|
|
68
|
+
}
|
|
69
|
+
function b(n) {
|
|
70
|
+
return i(n).getComputedStyle(n);
|
|
71
|
+
}
|
|
72
|
+
function C(n) {
|
|
73
|
+
return m(n) ? {
|
|
74
|
+
scrollLeft: n.scrollLeft,
|
|
75
|
+
scrollTop: n.scrollTop
|
|
76
|
+
} : {
|
|
77
|
+
scrollLeft: n.scrollX,
|
|
78
|
+
scrollTop: n.scrollY
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function u(n) {
|
|
82
|
+
if (s(n) === "html")
|
|
83
|
+
return n;
|
|
84
|
+
const t = (
|
|
85
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
86
|
+
n.assignedSlot || // DOM Element detected.
|
|
87
|
+
n.parentNode || // ShadowRoot detected.
|
|
88
|
+
a(n) && n.host || // Fallback.
|
|
89
|
+
E(n)
|
|
90
|
+
);
|
|
91
|
+
return a(t) ? t.host : t;
|
|
92
|
+
}
|
|
93
|
+
function h(n) {
|
|
94
|
+
const t = u(n);
|
|
95
|
+
return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
|
|
96
|
+
}
|
|
97
|
+
function d(n, t, e) {
|
|
98
|
+
var o;
|
|
99
|
+
t === void 0 && (t = []), e === void 0 && (e = !0);
|
|
100
|
+
const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
|
101
|
+
if (S) {
|
|
102
|
+
const f = v(l);
|
|
103
|
+
return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
|
|
104
|
+
}
|
|
105
|
+
return t.concat(r, d(r, [], e));
|
|
106
|
+
}
|
|
107
|
+
function v(n) {
|
|
108
|
+
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
109
|
+
}
|
|
110
|
+
export { b as getComputedStyle$u, k as getContainingBlock$u, E as getDocumentElement$u, v as getFrameElement$u, h as getNearestOverflowAncestor$u, s as getNodeName$u, C as getNodeScroll$u, d as getOverflowAncestors$u, u as getParentNode$u, i as getWindow$u, T as isContainingBlock$u, m as isElement$u, w as isHTMLElement$u, g as isLastTraversableNode$u, p as isNode$u, y as isOverflowElement$u, a as isShadowRoot$u, D as isTableElement$u, N as isTopLayer$u, L as isWebKit$u };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
const l = Math.min, a = Math.max, P = Math.round, M = Math.floor, O = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), m = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
}, p = {
|
|
10
|
+
start: "end",
|
|
11
|
+
end: "start"
|
|
12
|
+
};
|
|
13
|
+
function S(t, n, e) {
|
|
14
|
+
return a(t, l(n, e));
|
|
15
|
+
}
|
|
16
|
+
function w(t, n) {
|
|
17
|
+
return typeof t == "function" ? t(n) : t;
|
|
18
|
+
}
|
|
19
|
+
function f(t) {
|
|
20
|
+
return t.split("-")[0];
|
|
21
|
+
}
|
|
22
|
+
function g(t) {
|
|
23
|
+
return t.split("-")[1];
|
|
24
|
+
}
|
|
25
|
+
function h(t) {
|
|
26
|
+
return t === "x" ? "y" : "x";
|
|
27
|
+
}
|
|
28
|
+
function x(t) {
|
|
29
|
+
return t === "y" ? "height" : "width";
|
|
30
|
+
}
|
|
31
|
+
function b(t) {
|
|
32
|
+
return ["top", "bottom"].includes(f(t)) ? "y" : "x";
|
|
33
|
+
}
|
|
34
|
+
function d(t) {
|
|
35
|
+
return h(b(t));
|
|
36
|
+
}
|
|
37
|
+
function j(t, n, e) {
|
|
38
|
+
e === void 0 && (e = !1);
|
|
39
|
+
const r = g(t), o = d(t), i = x(o);
|
|
40
|
+
let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
41
|
+
return n.reference[i] > n.floating[i] && (c = u(c)), [c, u(c)];
|
|
42
|
+
}
|
|
43
|
+
function C(t) {
|
|
44
|
+
const n = u(t);
|
|
45
|
+
return [s(t), n, s(n)];
|
|
46
|
+
}
|
|
47
|
+
function s(t) {
|
|
48
|
+
return t.replace(/start|end/g, (n) => p[n]);
|
|
49
|
+
}
|
|
50
|
+
function A(t, n, e) {
|
|
51
|
+
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
|
|
52
|
+
switch (t) {
|
|
53
|
+
case "top":
|
|
54
|
+
case "bottom":
|
|
55
|
+
return e ? n ? o : r : n ? r : o;
|
|
56
|
+
case "left":
|
|
57
|
+
case "right":
|
|
58
|
+
return n ? i : c;
|
|
59
|
+
default:
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function L(t, n, e, r) {
|
|
64
|
+
const o = g(t);
|
|
65
|
+
let i = A(f(t), e === "start", r);
|
|
66
|
+
return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
|
|
67
|
+
}
|
|
68
|
+
function u(t) {
|
|
69
|
+
return t.replace(/left|right|bottom|top/g, (n) => m[n]);
|
|
70
|
+
}
|
|
71
|
+
function y(t) {
|
|
72
|
+
return {
|
|
73
|
+
top: 0,
|
|
74
|
+
right: 0,
|
|
75
|
+
bottom: 0,
|
|
76
|
+
left: 0,
|
|
77
|
+
...t
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function E(t) {
|
|
81
|
+
return typeof t != "number" ? y(t) : {
|
|
82
|
+
top: t,
|
|
83
|
+
right: t,
|
|
84
|
+
bottom: t,
|
|
85
|
+
left: t
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function R(t) {
|
|
89
|
+
const {
|
|
90
|
+
x: n,
|
|
91
|
+
y: e,
|
|
92
|
+
width: r,
|
|
93
|
+
height: o
|
|
94
|
+
} = t;
|
|
95
|
+
return {
|
|
96
|
+
width: r,
|
|
97
|
+
height: o,
|
|
98
|
+
top: e,
|
|
99
|
+
left: n,
|
|
100
|
+
right: n + r,
|
|
101
|
+
bottom: e + o,
|
|
102
|
+
x: n,
|
|
103
|
+
y: e
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export { S as clamp$u, O as createCoords$u, w as evaluate$u, y as expandPaddingObject$u, M as floor$u, g as getAlignment$u, d as getAlignmentAxis$u, j as getAlignmentSides$u, x as getAxisLength$u, C as getExpandedPlacements$u, s as getOppositeAlignmentPlacement$u, h as getOppositeAxis$u, L as getOppositeAxisPlacements$u, u as getOppositePlacement$u, E as getPaddingObject$u, f as getSide$u, b as getSideAxis$u, a as max$u, l as min$u, R as rectToClientRect$u, P as round$u };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function i(r) {
|
|
2
|
+
var f, n, t = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number") t += r;
|
|
4
|
+
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
5
|
+
var o = r.length;
|
|
6
|
+
for (f = 0; f < o; f++) r[f] && (n = i(r[f])) && (t && (t += " "), t += n);
|
|
7
|
+
} else for (n in r) r[n] && (t && (t += " "), t += n);
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function a() {
|
|
11
|
+
for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = i(r)) && (t && (t += " "), t += f);
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
export { a as clsx$u };
|