@konstructio/ui 0.1.2-alpha.99 → 0.1.3
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 +119 -38
- package/dist/{AdditionalOptions-UEegkZqG.js → AdditionalOptions-ClcR_Kf7.js} +2 -2
- package/dist/AlertDialogTrigger-DqPQznFI.js +109 -0
- package/dist/Breadcrumb-DzavonoC.js +93 -0
- package/dist/Checkbox-DtgzySMh.js +252 -0
- package/dist/CollapsedSteps-CkMuzOHx.js +112 -0
- package/dist/{Combination-DFcElBFt.js → Combination-CnMM05mt.js} +51 -45
- package/dist/{CommandInput-C45ylYPm.js → CommandInput-BrWqUubG.js} +5 -6
- package/dist/Counter-QMbqdFuI.js +229 -0
- package/dist/{DayPicker-BQlzb5kH.js → DayPicker-D7KFB2bI.js} +1129 -1081
- package/dist/DropdownButton-BTrOG4rh.js +124 -0
- package/dist/FlagSelectorList-PTBEUWVJ.js +954 -0
- package/dist/{HamburgerTrigger-BzCfBWzH.js → HamburgerTrigger-DKxa6_Nb.js} +27 -28
- package/dist/{ImageUpload-DebL0hwF.js → ImageUpload-DZH9bDU2.js} +71 -66
- package/dist/Input-C1Js3pbF.js +193 -0
- package/dist/Loading-DuhcrPrf.js +25 -0
- package/dist/Modal-Bwq7Gc0A.js +84 -0
- package/dist/Sidebar.css +1 -1
- package/dist/Spinner-DeThqPk_.js +47 -0
- package/dist/StepIndicatorContent-C6MILk4c.js +36 -0
- package/dist/Switch-DUiaVSnE.js +215 -0
- package/dist/Wrapper-BwNyImxO.js +113 -0
- package/dist/{Wrapper-w8u2Zn4M.js → Wrapper-CTd3eiq3.js} +278 -267
- package/dist/Wrapper-CyjvfERI.js +224 -0
- package/dist/assets/icons/components/AllSetCheck.js +27 -0
- package/dist/assets/icons/components/Detach.js +20 -0
- package/dist/assets/icons/components/InformationFilled.js +20 -0
- package/dist/assets/icons/components/Pause.js +20 -0
- package/dist/assets/icons/components/SpendStatement.js +70 -0
- package/dist/assets/icons/components/Updated.js +20 -0
- package/dist/assets/icons/components/index.js +220 -208
- package/dist/assets/icons/index.js +220 -208
- package/dist/chevron-down-BODx0Q7h.js +14 -0
- package/dist/chevron-left-B1zWfqll.js +14 -0
- package/dist/chevron-right-D4OkgIIT.js +14 -0
- package/dist/chevron-up-B8hiVgxZ.js +14 -0
- package/dist/components/Alert/Alert.js +44 -40
- package/dist/components/Alert/Alert.variants.js +8 -5
- package/dist/components/AlertDialog/AlertDialog.js +42 -42
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +14 -10
- package/dist/components/Autocomplete/Autocomplete.js +5 -5
- package/dist/components/Autocomplete/Autocomplete.variants.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +22 -26
- package/dist/components/Autocomplete/components/List/List.variants.js +11 -20
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +42 -35
- package/dist/components/Autocomplete/hooks/useNavigationList.js +4 -4
- package/dist/components/Avatar/Avatar.js +37 -0
- package/dist/components/Avatar/Avatar.variants.js +25 -0
- package/dist/components/Avatar/hooks/index.js +5 -0
- package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
- package/dist/components/Badge/Badge.js +37 -36
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
- package/dist/components/BadgeGroup/hooks/index.js +4 -0
- package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +6 -6
- package/dist/components/Breadcrumb/components/BackButton/BackButton.variants.js +1 -1
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
- package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +1 -1
- package/dist/components/Breadcrumb/components/index.js +2 -0
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +25 -19
- package/dist/components/Button/Button.variants.js +13 -3
- package/dist/components/ButtonGroup/ButtonGroup.js +64 -59
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +9 -9
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +10 -9
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +8 -6
- package/dist/components/Card/Card.js +25 -22
- package/dist/components/Card/Card.variants.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.variants.js +7 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
- package/dist/components/Collapse/Collapse.js +65 -0
- package/dist/components/Command/Command.js +16 -16
- package/dist/components/Command/Command.variants.js +1 -1
- package/dist/components/Command/components/Command.js +6 -6
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +2 -2
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +2 -2
- package/dist/components/Command/components/CommandList.js +3 -3
- package/dist/components/Command/components/CommandSeparator.js +2 -2
- package/dist/components/Command/components/CommandShortcut.js +1 -1
- package/dist/components/Command/components/DialogContent.js +8 -8
- package/dist/components/Command/components/DialogOverlay.js +8 -8
- package/dist/components/Command/components/index.js +6 -6
- package/dist/components/Command/contexts/Command.provider.js +16 -12
- package/dist/components/ConfirmDialog/ConfirmDialog.js +113 -0
- package/dist/components/CopyButton/CopyButton.js +63 -0
- package/dist/components/CopyButton/CopyButton.variants.js +34 -0
- package/dist/components/CopyButton/hooks/index.js +4 -0
- package/dist/components/CopyButton/hooks/useCopyToClipboard/useCopyToClipboard.js +22 -0
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/Counter/Counter.variants.js +82 -17
- package/dist/components/DateRangePicker/DateRangePicker.js +53 -41
- package/dist/components/DateRangePicker/DateRangePicker.variants.js +6 -7
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +56 -54
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +10 -6
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +57 -58
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +42 -43
- package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +4 -4
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +58 -64
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +65 -80
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +53 -47
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +28 -13
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +53 -41
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +54 -42
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +107 -138
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +68 -34
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +77 -11
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +37 -0
- package/dist/components/DateRangePicker/components/index.js +3 -1
- package/dist/components/DateRangePicker/constants/index.js +1 -1
- package/dist/components/DateRangePicker/constants/presets/presets.js +42 -0
- package/dist/components/DateRangePicker/contexts/date-range-picker/date-range-picker.provider.js +124 -0
- package/dist/components/DateRangePicker/contexts/index.js +3 -3
- package/dist/components/DateRangePicker/utils/disabled-dates/disabled-dates.js +31 -0
- package/dist/components/DateRangePicker/utils/displayed-months/displayed-months.js +12 -0
- package/dist/components/DateRangePicker/utils/index.js +21 -17
- package/dist/components/DateRangePicker/utils/presets/presets.js +5 -0
- package/dist/components/DateRangePicker/utils/right-panel/right-panel.js +9 -0
- package/dist/components/DateRangePicker/utils/{validation.js → validation/validation.js} +26 -26
- package/dist/components/Datepicker/DatePicker.js +14 -50
- package/dist/components/Datepicker/DatePicker.variants.js +1 -1
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
- package/dist/components/Divider/Divider.js +7 -7
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Drawer/Drawer.js +96 -66
- package/dist/components/Drawer/Drawer.variants.js +44 -22
- package/dist/components/Drawer/components/Body/Body.js +1 -1
- package/dist/components/Drawer/components/Footer/Footer.js +6 -6
- package/dist/components/Drawer/components/Header/Header.js +1 -1
- package/dist/components/Drawer/constants/index.js +10 -5
- package/dist/components/Drawer/hooks/index.js +4 -2
- package/dist/components/Drawer/hooks/useDrawer.js +33 -48
- package/dist/components/Drawer/hooks/useSwipeToClose.js +49 -0
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/DropdownButton/components/ActionSheet/ActionSheet.js +36 -0
- package/dist/components/Filter/Filter.js +28 -23
- package/dist/components/Filter/Filter.variants.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +63 -66
- package/dist/components/Filter/components/BadgeDropdown/hooks/index.js +4 -0
- package/dist/components/Filter/components/BadgeDropdown/hooks/useBadgeMultiSelect/useBadgeMultiSelect.js +67 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.js +10 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +77 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/PanelActions/PanelActions.js +23 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Picker/Picker.js +34 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Trigger/Trigger.js +22 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Wrapper/Wrapper.js +22 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/index.js +4 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/constants/index.js +5 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/constants/presets/presets.js +33 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.context.js +5 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.hook.js +10 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.provider.js +149 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/contexts/index.js +6 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/index.js +20 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useAppliedDateRange/useAppliedDateRange.js +20 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useCalendarVisibility/useCalendarVisibility.js +24 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useDateRangeSelection/useDateRangeSelection.js +22 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFilterDropdownOpenState/useFilterDropdownOpenState.js +18 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +28 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePendingDateRange/usePendingDateRange.js +15 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePresetOptions/usePresetOptions.js +22 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useResetKey/useResetKey.js +10 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useSelectedPreset/useSelectedPreset.js +24 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/utils/duration/duration.js +59 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/utils/index.js +8 -0
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/utils/whole-days/whole-days.js +7 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +41 -46
- package/dist/components/Filter/components/DateFilterDropdown/hooks/index.js +4 -0
- package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +37 -0
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +45 -51
- package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/index.js +4 -0
- package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +49 -0
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +28 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +20 -17
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +62 -65
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +72 -77
- package/dist/components/Filter/components/TimeFilterDropdown/hooks/index.js +4 -0
- package/dist/components/Filter/components/TimeFilterDropdown/hooks/useTimeFilterDropdown/useTimeFilterDropdown.js +39 -0
- package/dist/components/Filter/components/index.js +12 -10
- package/dist/components/Filter/contexts/filter.provider.js +15 -7
- package/dist/components/Filter/events/index.js +26 -5
- package/dist/components/Filter/hooks/index.js +6 -0
- package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
- package/dist/components/Filter/hooks/useLocale.js +16 -0
- package/dist/components/Filter/utils/index.js +6 -2
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.variants.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +2 -1
- package/dist/components/LineChart/LineChart.js +18 -125
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Loading/Loading.variants.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +2 -2
- package/dist/components/Modal/components/Footer/Footer.js +2 -2
- package/dist/components/Modal/components/Header/Header.js +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +12 -6
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +26 -19
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +23 -4
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +6 -6
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +5 -2
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -3
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +75 -72
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +16 -15
- package/dist/components/OtpInput/OtpInput.js +103 -0
- package/dist/components/PasswordRules/PasswordRules.js +51 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +9 -7
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +15 -15
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +16 -16
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +9 -48
- package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
- package/dist/components/ProgressBar/ProgressBar.js +27 -21
- package/dist/components/ProgressBar/ProgressBar.variants.js +1 -1
- package/dist/components/Radio/Radio.js +34 -35
- package/dist/components/Radio/Radio.variants.js +12 -5
- package/dist/components/RadioCard/RadioCard.js +37 -19
- package/dist/components/RadioCard/RadioCard.variants.js +9 -3
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +24 -24
- package/dist/components/RadioGroup/RadioGroup.variants.js +1 -1
- package/dist/components/Range/Range.js +29 -27
- package/dist/components/Range/Range.variants.js +1 -1
- package/dist/components/Select/Select.js +44 -36
- package/dist/components/Select/Select.variants.js +3 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +3 -3
- package/dist/components/Select/components/List/List.js +76 -65
- package/dist/components/Select/components/List/List.variants.js +1 -1
- package/dist/components/Select/components/ListItem/ListItem.js +30 -30
- package/dist/components/Select/components/ListItem/ListItem.variants.js +6 -3
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +8 -8
- package/dist/components/Select/contexts/select.provider.js +34 -33
- package/dist/components/Select/hooks/useNavigationList.js +2 -3
- package/dist/components/Select/hooks/useSelect.js +36 -46
- package/dist/components/Sheet/Sheet.js +174 -0
- package/dist/components/Sheet/utils/index.js +10 -0
- package/dist/components/Sidebar/Sidebar.js +27 -24
- package/dist/components/Sidebar/Sidebar.variants.js +1 -1
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +22 -0
- package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js +1 -1
- package/dist/components/Sidebar/components/Label/Label.js +6 -6
- package/dist/components/Sidebar/components/Logo/Logo.js +14 -10
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +14 -4
- package/dist/components/Sidebar/components/Navigation/Navigation.js +5 -5
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +33 -17
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +68 -40
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +18 -11
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +25 -8
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +16 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +114 -84
- package/dist/components/Sidebar/components/index.js +16 -14
- package/dist/components/Sidebar/contexts/SidebarContext.js +8 -5
- package/dist/components/Skeleton/Skeleton.js +18 -0
- package/dist/components/Skeleton/Skeleton.variants.js +25 -0
- package/dist/components/Slider/Slider.js +21 -19
- package/dist/components/Slider/Slider.variants.js +1 -1
- package/dist/components/Spinner/Spinner.js +3 -2
- package/dist/components/Spinner/Spinner.variants.js +1 -1
- package/dist/components/Stepper/Stepper.js +38 -29
- package/dist/components/Stepper/Stepper.variants.js +62 -26
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +18 -18
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +15 -15
- package/dist/components/Stepper/hooks/useStepItemLogic.js +12 -17
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.variants.js +20 -8
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.variants.js +7 -6
- package/dist/components/Table/components/Body.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Table/components/Head.js +1 -1
- package/dist/components/Table/components/Row.js +1 -1
- package/dist/components/Tabs/Tabs.js +52 -24
- package/dist/components/Tabs/Tabs.variants.js +21 -9
- package/dist/components/Tabs/components/Content.js +5 -5
- package/dist/components/Tabs/components/List.js +11 -11
- package/dist/components/Tabs/components/Trigger.js +15 -14
- package/dist/components/Tag/Tag.js +9 -9
- package/dist/components/Tag/Tag.variants.js +18 -18
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/TagSelect.variants.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.js +4 -4
- package/dist/components/TagSelect/components/Item/Item.variants.js +6 -4
- package/dist/components/TagSelect/components/List/List.js +5 -5
- package/dist/components/TagSelect/components/List/List.variants.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +6 -6
- package/dist/components/TagSelect/hooks/useTagSelect.js +15 -14
- package/dist/components/TagsInput/TagsInput.js +159 -0
- package/dist/components/TextArea/TextArea.js +71 -26
- package/dist/components/TextArea/TextArea.variants.js +50 -13
- package/dist/components/TimePicker/TimePicker.variants.js +8 -5
- package/dist/components/TimePicker/components/HoursList/HoursList.js +26 -28
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +26 -30
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +34 -34
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +113 -102
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +28 -28
- package/dist/components/TimePicker/contexts/time-picker.provider.js +10 -10
- package/dist/components/Toast/Toast.js +69 -2
- package/dist/components/Toast/Toast.variants.js +89 -41
- package/dist/components/Toast/ToastProvider.js +19 -0
- package/dist/components/Toast/components/ToastCard/ToastCard.js +121 -0
- package/dist/components/Toast/components/index.js +4 -0
- package/dist/components/Toast/constants/index.js +41 -0
- package/dist/components/Toast/contexts/index.js +4 -0
- package/dist/components/Toast/contexts/toast-store.context.js +5 -0
- package/dist/components/Toast/hooks/index.js +15 -0
- package/dist/components/Toast/hooks/useStackExpansion/useStackExpansion.js +45 -0
- package/dist/components/Toast/hooks/useToast/useToast.js +17 -0
- package/dist/components/Toast/hooks/useToastHeights/useToastHeights.js +23 -0
- package/dist/components/Toast/hooks/useToastSource/useToastSource.js +15 -0
- package/dist/components/Toast/hooks/useToastStore/useToastStore.js +11 -0
- package/dist/components/Toast/hooks/useToastTimer/useToastTimer.js +26 -0
- package/dist/components/Toast/store/create-toast-store.js +46 -0
- package/dist/components/Toast/store/default-toast-store.js +5 -0
- package/dist/components/Toast/store/index.js +6 -0
- package/dist/components/Toast/utils/compute-stack-layout/compute-stack-layout.js +24 -0
- package/dist/components/Toast/utils/index.js +6 -0
- package/dist/components/Toast/utils/should-dismiss-swipe/should-dismiss-swipe.js +5 -0
- package/dist/components/Tooltip/Tooltip.js +32 -16
- package/dist/components/Typography/Typography.js +19 -16
- package/dist/components/Typography/Typography.variants.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +40 -94
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +1 -1
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +5 -35
- package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +83 -0
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +51 -0
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.js +26 -0
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +81 -0
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/constants/index.js +5 -0
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +48 -0
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/constants/index.js +5 -0
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/index.js +4 -0
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +44 -0
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +78 -0
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-keyboard-navigation/use-menu-keyboard-navigation.js +56 -0
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-row-highlight/use-row-highlight.js +13 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +54 -49
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +3 -3
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +67 -21
- package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
- package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
- package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +2 -2
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +95 -90
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +14 -14
- package/dist/components/VirtualizedTable/components/Header/Header.js +55 -35
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +18 -14
- package/dist/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.js +75 -0
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +44 -37
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +9 -8
- package/dist/components/VirtualizedTable/components/index.js +20 -12
- package/dist/components/VirtualizedTable/constants/index.js +5 -3
- package/dist/components/VirtualizedTable/constants/responsive.js +10 -0
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +6 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/events/filters/filters.js +7 -0
- package/dist/components/VirtualizedTable/events/index.js +10 -25
- package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
- package/dist/components/VirtualizedTable/events/row/row.js +22 -0
- package/dist/components/VirtualizedTable/hooks/index.js +4 -0
- package/dist/components/VirtualizedTable/hooks/useVirtualizedTableReady/index.js +4 -0
- package/dist/components/VirtualizedTable/hooks/useVirtualizedTableReady/useVirtualizedTableReady.js +12 -0
- package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
- package/dist/components/VirtualizedTable/utils/index.js +16 -0
- package/dist/components/VirtualizedTable/utils/load-content/index.js +8 -0
- package/dist/components/VirtualizedTable/utils/load-content/load-content.js +15 -0
- package/dist/components/VirtualizedTable/utils/pagination.js +5 -0
- package/dist/components/VirtualizedTable/utils/pinned-columns/index.js +6 -0
- package/dist/components/VirtualizedTable/utils/pinned-columns/pinned-columns.js +32 -0
- package/dist/components/index.js +188 -133
- package/dist/components-DE5uBcFF.js +147 -0
- package/dist/constants-q2QnJrOb.js +31 -0
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/{utils-Cc9GhtYC.js → country-locale-map-BQYYErun.js} +1398 -1399
- package/dist/createLucideIcon-C7E_xycG.js +119 -0
- package/dist/{debounce-B55BpO1u.js → debounce-DhCY9mXz.js} +17 -17
- package/dist/dist-B9GE4SXf.js +34 -0
- package/dist/{dist-BHslNQd82.js → dist-BCqfbYE9.js} +1414 -1370
- package/dist/dist-BbJP2Efh.js +20 -0
- package/dist/dist-Bg6GCX6S.js +465 -0
- package/dist/dist-Bh7M0KDN.js +367 -0
- package/dist/dist-C0OhTLFV.js +31 -0
- package/dist/dist-CK8FUUUn.js +125 -0
- package/dist/dist-CYuWoi9I.js +46 -0
- package/dist/dist-C_jtUTU9.js +30 -0
- package/dist/dist-D0f-mfFj.js +445 -0
- package/dist/dist-D52tGbv9.js +1327 -0
- package/dist/dist-DPLBSjtu.js +196 -0
- package/dist/dist-DWopnVS-.js +209 -0
- package/dist/dist-DbeY0Pzx.js +228 -0
- package/dist/dist-DeWnSzlM.js +120 -0
- package/dist/{dist-CPK4FXV9.js → dist-Dofpb42k.js} +54 -54
- package/dist/dist-DsOk4psA.js +365 -0
- package/dist/dist-pyzG_Btt.js +195 -0
- package/dist/dist-rsFD9q_X.js +484 -0
- package/dist/dist-uuWgjOcO.js +99 -0
- package/dist/dist-vDSmnSS_.js +41 -0
- package/dist/ellipsis-vertical-C_yX7aQe.js +31 -0
- package/dist/es2015-B4px8XhV.js +796 -0
- package/dist/es2015-ChhQTsb4.js +74 -0
- package/dist/events.types-BG1Uh8i6.js +6 -0
- package/dist/hooks/index.js +8 -4
- package/dist/hooks/useClickOutside.js +14 -0
- package/dist/hooks/useIsHydrated/useIsHydrated.js +6 -0
- package/dist/hooks/useIsHydrated/utils/index.js +4 -0
- package/dist/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.js +5 -0
- package/dist/hooks/useMediaQuery.js +1 -1
- package/dist/icons.js +218 -206
- package/dist/index.js +209 -150
- package/dist/{isObject-CGNJbB5a.js → isSymbol-CcfkyZfq.js} +20 -20
- package/dist/lib/assets/icons/components/AllSetCheck.d.ts +3 -0
- package/dist/lib/assets/icons/components/Detach.d.ts +3 -0
- package/dist/lib/assets/icons/components/InformationFilled.d.ts +3 -0
- package/dist/lib/assets/icons/components/Pause.d.ts +3 -0
- package/dist/lib/assets/icons/components/SpendStatement.d.ts +3 -0
- package/dist/lib/assets/icons/components/Updated.d.ts +3 -0
- package/dist/lib/assets/icons/components/index.d.ts +6 -0
- package/dist/lib/components/Alert/Alert.types.d.ts +5 -1
- package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +1 -1
- package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +2 -2
- package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +1 -1
- package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +0 -1
- package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
- package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
- package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
- package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
- package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
- package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +5 -1
- package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
- package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
- package/dist/lib/components/Button/Button.types.d.ts +1 -1
- package/dist/lib/components/Button/Button.variants.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +1 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +2 -0
- package/dist/lib/components/Card/Card.types.d.ts +2 -1
- package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +3 -2
- package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
- package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
- package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
- package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
- package/dist/lib/components/Command/Command.types.d.ts +1 -1
- package/dist/lib/components/Command/components/CommandShortcut.d.ts +1 -1
- package/dist/lib/components/Command/contexts/Command.provider.d.ts +1 -1
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +48 -0
- package/dist/lib/components/CopyButton/CopyButton.d.ts +4 -0
- package/dist/lib/components/CopyButton/CopyButton.types.d.ts +15 -0
- package/dist/lib/components/CopyButton/CopyButton.variants.d.ts +3 -0
- package/dist/lib/components/CopyButton/hooks/index.d.ts +1 -0
- package/dist/lib/components/CopyButton/hooks/useCopyToClipboard/useCopyToClipboard.d.ts +5 -0
- package/dist/lib/components/CopyButton/hooks/useCopyToClipboard/useCopyToClipboard.types.d.ts +5 -0
- package/dist/lib/components/Counter/Counter.d.ts +7 -4
- package/dist/lib/components/Counter/Counter.types.d.ts +24 -1
- package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
- package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +61 -4
- package/dist/lib/components/DateRangePicker/DateRangePicker.variants.d.ts +6 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.d.ts +2 -1
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.types.d.ts +5 -4
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.d.ts +8 -1
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +6 -1
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +6 -1
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +2 -4
- package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.types.d.ts +4 -0
- package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.d.ts +38 -1
- package/dist/lib/components/DateRangePicker/components/RightPanel/RightPanel.d.ts +8 -0
- package/dist/lib/components/DateRangePicker/components/RightPanel/RightPanel.types.d.ts +4 -0
- package/dist/lib/components/DateRangePicker/components/index.d.ts +1 -0
- package/dist/lib/components/DateRangePicker/constants/index.d.ts +2 -1
- package/dist/lib/components/DateRangePicker/constants/presets/presets.d.ts +10 -0
- package/dist/lib/components/DateRangePicker/constants/presets/presets.types.d.ts +6 -0
- package/dist/lib/components/DateRangePicker/contexts/{date-range-picker.context.d.ts → date-range-picker/date-range-picker.context.d.ts} +34 -5
- package/dist/lib/components/DateRangePicker/contexts/date-range-picker/date-range-picker.provider.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/contexts/{date-range-picker.provider.d.ts → date-range-picker/date-range-picker.types.d.ts} +20 -18
- package/dist/lib/components/DateRangePicker/contexts/index.d.ts +4 -4
- package/dist/lib/components/DateRangePicker/utils/{disabled-dates.d.ts → disabled-dates/disabled-dates.d.ts} +1 -7
- package/dist/lib/components/DateRangePicker/utils/disabled-dates/disabled-dates.types.d.ts +7 -0
- package/dist/lib/components/DateRangePicker/utils/displayed-months/displayed-months.d.ts +12 -0
- package/dist/lib/components/DateRangePicker/utils/index.d.ts +7 -4
- package/dist/lib/components/DateRangePicker/utils/presets/presets.d.ts +9 -0
- package/dist/lib/components/DateRangePicker/utils/right-panel/right-panel.d.ts +7 -0
- package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
- package/dist/lib/components/Divider/Divider.d.ts +3 -2
- package/dist/lib/components/Divider/Divider.types.d.ts +4 -0
- package/dist/lib/components/Drawer/Drawer.types.d.ts +15 -1
- package/dist/lib/components/Drawer/Drawer.variants.d.ts +1 -0
- package/dist/lib/components/Drawer/constants/index.d.ts +5 -0
- package/dist/lib/components/Drawer/hooks/index.d.ts +2 -0
- package/dist/lib/components/Drawer/hooks/useDrawer.types.d.ts +6 -2
- package/dist/lib/components/Drawer/hooks/useSwipeToClose.d.ts +2 -0
- package/dist/lib/components/Drawer/hooks/useSwipeToClose.types.d.ts +17 -0
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +6 -6
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +44 -0
- package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.d.ts +7 -0
- package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.types.d.ts +15 -0
- package/dist/lib/components/Filter/Filter.d.ts +2 -2
- package/dist/lib/components/Filter/Filter.types.d.ts +5 -2
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.d.ts +2 -2
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/BadgeDropdown/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/components/BadgeDropdown/{BadgeMultiSelect.hook.d.ts → hooks/useBadgeMultiSelect/useBadgeMultiSelect.d.ts} +4 -5
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.types.d.ts +55 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.d.ts +2 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/PanelActions/PanelActions.d.ts +2 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Picker/Picker.d.ts +2 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Trigger/Trigger.d.ts +2 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Wrapper/Wrapper.d.ts +2 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/index.d.ts +1 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/constants/index.d.ts +2 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/constants/presets/presets.d.ts +4 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/constants/presets/presets.types.d.ts +9 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.context.d.ts +2 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.hook.d.ts +1 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.provider.d.ts +3 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.types.d.ts +28 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/index.d.ts +2 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/index.d.ts +9 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useAppliedDateRange/useAppliedDateRange.d.ts +7 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useAppliedDateRange/useAppliedDateRange.types.d.ts +5 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useCalendarVisibility/useCalendarVisibility.d.ts +10 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useCalendarVisibility/useCalendarVisibility.types.d.ts +4 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useDateRangeSelection/useDateRangeSelection.d.ts +8 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useDateRangeSelection/useDateRangeSelection.types.d.ts +4 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFilterDropdownOpenState/useFilterDropdownOpenState.d.ts +6 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.d.ts +11 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.types.d.ts +5 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePendingDateRange/usePendingDateRange.d.ts +5 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePendingDateRange/usePendingDateRange.types.d.ts +5 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePresetOptions/usePresetOptions.d.ts +2 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/usePresetOptions/usePresetOptions.types.d.ts +6 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useResetKey/useResetKey.d.ts +1 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useSelectedPreset/useSelectedPreset.d.ts +10 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useSelectedPreset/useSelectedPreset.types.d.ts +4 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/utils/duration/duration.d.ts +4 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/utils/duration/duration.types.d.ts +5 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/utils/index.d.ts +3 -0
- package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/utils/whole-days/whole-days.d.ts +2 -0
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.d.ts +2 -2
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/DateFilterDropdown/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/components/DateFilterDropdown/{DateFilterDropdown.hook.d.ts → hooks/useDateFilterDropdown/useDateFilterDropdown.d.ts} +3 -4
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.d.ts +2 -2
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +2 -2
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.d.ts +12 -0
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +9 -0
- package/dist/lib/components/Filter/components/ResetButton/ResetButton.d.ts +2 -2
- package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +2 -2
- package/dist/lib/components/Filter/components/TextMultiSelect/TextMultiSelect.d.ts +2 -2
- package/dist/lib/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +2 -2
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +1 -1
- package/dist/lib/components/Filter/components/TimeFilterDropdown/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/components/TimeFilterDropdown/{TimeFilterDropdown.hook.d.ts → hooks/useTimeFilterDropdown/useTimeFilterDropdown.d.ts} +3 -4
- package/dist/lib/components/Filter/components/index.d.ts +8 -6
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +2 -0
- package/dist/lib/components/Filter/events/index.d.ts +10 -2
- package/dist/lib/components/Filter/hooks/index.d.ts +2 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
- package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
- package/dist/lib/components/Filter/utils/index.d.ts +1 -0
- package/dist/lib/components/ImageUpload/ImageUpload.d.ts +1 -1
- package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +1 -1
- package/dist/lib/components/Input/Input.types.d.ts +5 -1
- package/dist/lib/components/LineChart/LineChart.types.d.ts +1 -1
- package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
- package/dist/lib/components/Loading/Loading.types.d.ts +1 -1
- package/dist/lib/components/Modal/Modal.types.d.ts +10 -2
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +6 -1
- package/dist/lib/components/Modal/contexts/Modal.provider.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +12 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
- package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +2 -0
- package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
- package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
- package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
- package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
- package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
- package/dist/lib/components/PieChart/PieChart.types.d.ts +4 -4
- package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +3 -1
- package/dist/lib/components/Radio/Radio.types.d.ts +1 -1
- package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +11 -2
- package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
- package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +3 -3
- package/dist/lib/components/Range/Range.types.d.ts +1 -1
- package/dist/lib/components/Select/Select.types.d.ts +6 -1
- package/dist/lib/components/Select/components/List/List.types.d.ts +3 -0
- package/dist/lib/components/Select/components/Wrapper.d.ts +2 -0
- package/dist/lib/components/Select/contexts/select.provider.d.ts +1 -0
- package/dist/lib/components/Select/hooks/useSelect.d.ts +4 -3
- package/dist/lib/components/Sheet/Sheet.d.ts +25 -0
- package/dist/lib/components/Sheet/Sheet.types.d.ts +43 -0
- package/dist/lib/components/Sheet/utils/index.d.ts +11 -0
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +23 -7
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +6 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +1 -1
- package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +11 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +5 -0
- package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/index.d.ts +2 -0
- package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +12 -0
- package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
- package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
- package/dist/lib/components/Slider/Slider.types.d.ts +1 -1
- package/dist/lib/components/Spinner/Spinner.types.d.ts +2 -2
- package/dist/lib/components/Stepper/Stepper.types.d.ts +3 -1
- package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
- package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +1 -1
- package/dist/lib/components/Switch/Switch.types.d.ts +8 -1
- package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
- package/dist/lib/components/Table/Table.types.d.ts +1 -1
- package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
- package/dist/lib/components/Tabs/Tabs.types.d.ts +15 -4
- package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/lib/components/Tag/Tag.types.d.ts +1 -0
- package/dist/lib/components/TagSelect/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +2 -2
- package/dist/lib/components/TagSelect/components/List/List.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
- package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
- package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
- package/dist/lib/components/TextArea/TextArea.d.ts +6 -0
- package/dist/lib/components/TextArea/TextArea.types.d.ts +14 -3
- package/dist/lib/components/TextArea/TextArea.variants.d.ts +4 -1
- package/dist/lib/components/TimePicker/TimePicker.types.d.ts +4 -0
- package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -0
- package/dist/lib/components/Toast/Toast.d.ts +20 -14
- package/dist/lib/components/Toast/Toast.types.d.ts +68 -36
- package/dist/lib/components/Toast/Toast.variants.d.ts +15 -4
- package/dist/lib/components/Toast/ToastProvider.d.ts +11 -0
- package/dist/lib/components/Toast/ToastProvider.types.d.ts +17 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.d.ts +3 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +18 -0
- package/dist/lib/components/Toast/components/index.d.ts +1 -0
- package/dist/lib/components/Toast/constants/index.d.ts +31 -0
- package/dist/lib/components/Toast/contexts/index.d.ts +1 -0
- package/dist/lib/components/Toast/contexts/toast-store.context.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/index.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.types.d.ts +7 -0
- package/dist/lib/components/Toast/hooks/useToast/useToast.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.types.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.types.d.ts +11 -0
- package/dist/lib/components/Toast/hooks/useToastStore/useToastStore.d.ts +3 -0
- package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.types.d.ts +7 -0
- package/dist/lib/components/Toast/store/create-toast-store.d.ts +2 -0
- package/dist/lib/components/Toast/store/create-toast-store.types.d.ts +24 -0
- package/dist/lib/components/Toast/store/default-toast-store.d.ts +1 -0
- package/dist/lib/components/Toast/store/index.d.ts +2 -0
- package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.d.ts +2 -0
- package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.types.d.ts +12 -0
- package/dist/lib/components/Toast/utils/index.d.ts +2 -0
- package/dist/lib/components/Toast/utils/should-dismiss-swipe/should-dismiss-swipe.d.ts +2 -0
- package/dist/lib/components/Toast/utils/should-dismiss-swipe/should-dismiss-swipe.types.d.ts +5 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
- package/dist/lib/components/Typography/Typography.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +9 -2
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +46 -6
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +9 -2
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +11 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.d.ts +4 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/constants/index.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/constants/index.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +18 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +12 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-keyboard-navigation/use-menu-keyboard-navigation.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-keyboard-navigation/use-menu-keyboard-navigation.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-row-highlight/use-row-highlight.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-row-highlight/use-row-highlight.types.d.ts +5 -0
- package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/DotPaginate/DotPaginate.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/FormPaginate/FormPaginate.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +9 -4
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +4 -0
- package/dist/lib/components/VirtualizedTable/constants/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +7 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
- package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -14
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/hooks/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useVirtualizedTableReady/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useVirtualizedTableReady/useVirtualizedTableReady.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +4 -0
- package/dist/lib/components/VirtualizedTable/utils/load-content/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/load-content/load-content.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/utils/pagination.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/pinned-columns/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/pinned-columns/pinned-columns.d.ts +23 -0
- package/dist/lib/components/index.d.ts +28 -4
- package/dist/lib/contexts/theme.context.d.ts +1 -1
- package/dist/lib/contexts/theme.hook.d.ts +1 -1
- package/dist/lib/hooks/index.d.ts +2 -0
- package/dist/lib/hooks/useClickOutside.d.ts +4 -0
- package/dist/lib/hooks/useIsHydrated/useIsHydrated.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/utils/index.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.d.ts +1 -0
- package/dist/lib/icons.d.ts +1 -1
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/{libphonenumber-Dy3Kac9j.js → libphonenumber-BIeQOhzl.js} +631 -581
- package/dist/package.json +58 -57
- package/dist/{phone-number.provider-D3j9sszx.js → phone-number.provider-CJeivoDY.js} +602 -588
- package/dist/{prop-types-CE0Kfmwk.js → prop-types-qsAjMBb1.js} +53 -53
- package/dist/rolldown-runtime-B28h4lGi.js +38 -0
- package/dist/styles.css +1 -1
- package/dist/{table.provider-BPlFpIAe.js → table.provider-Dhs7WtwK.js} +582 -497
- package/dist/{theme.provider-BC_aCvPM.js → theme.provider-CvL6sqHq.js} +3 -3
- package/dist/ui/civo-theme.css +4 -0
- package/dist/ui/kubefirst-theme.css +4 -0
- package/dist/ui/utilities.css +19 -0
- package/dist/{useBreadcrumb-mrkCWjS0.js → useBreadcrumb-Ta3_czcd.js} +627 -535
- package/dist/utils/index.js +6 -5
- package/dist/{utils-COaoD3PI.js → utils-DnIJruo0.js} +556 -428
- package/dist/{x-KjMYhcCb.js → x-BmNOD9Gr.js} +3 -4
- package/dist/x-C8O1IsaM.js +17 -0
- package/package.json +58 -57
- package/dist/AlertDialogTrigger-C2GlLI2j.js +0 -146
- package/dist/Breadcrumb-xLKDl92B.js +0 -82
- package/dist/Checkbox-BvRmHWxk.js +0 -239
- package/dist/Counter-bTFm7xa3.js +0 -208
- package/dist/DropdownButton-CWwjA3zI.js +0 -92
- package/dist/FlagSelectorList-NMlHNF7N.js +0 -601
- package/dist/Input-BZG7N8m1.js +0 -188
- package/dist/Loading-DNlO4qxs.js +0 -16
- package/dist/Modal-IyDr5vIx.js +0 -76
- package/dist/Spinner-BB1muhcJ.js +0 -41
- package/dist/StepIndicatorContent-87ASgJsX.js +0 -30
- package/dist/Switch-CT2R9JgM.js +0 -136
- package/dist/Toast-CWyLcmNX.js +0 -483
- package/dist/Wrapper-DimnwFZe.js +0 -161
- package/dist/Wrapper-F9NmImqw.js +0 -110
- package/dist/chevron-down-T3Rx8Nc7.js +0 -8
- package/dist/chevron-left-CeJrJR0U.js +0 -8
- package/dist/chevron-right-BFOnP164.js +0 -8
- package/dist/chevron-up-BKlxfVX9.js +0 -8
- package/dist/chunk-cI0lbGMq.js +0 -31
- package/dist/components/DateRangePicker/constants/presets.js +0 -25
- package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +0 -119
- package/dist/components/DateRangePicker/utils/disabled-dates.js +0 -27
- package/dist/components/DateRangePicker/utils/presets.js +0 -34
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +0 -67
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +0 -58
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +0 -63
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +0 -54
- package/dist/components-C_LekSz_.js +0 -120
- package/dist/constants-CLe3ZLC_.js +0 -31
- package/dist/createLucideIcon-CL4htJAF.js +0 -42
- package/dist/dist-AZfrfAUz.js +0 -132
- package/dist/dist-B5WmTRxj.js +0 -480
- package/dist/dist-Bcn6lMQe.js +0 -34
- package/dist/dist-BeLV4B_x.js +0 -1701
- package/dist/dist-BfrkYZKI.js +0 -361
- package/dist/dist-Br5jSLr2.js +0 -263
- package/dist/dist-C4El7dZ5.js +0 -27
- package/dist/dist-CMPkuWNy.js +0 -74
- package/dist/dist-CQfmhKEs.js +0 -13
- package/dist/dist-CZChgJLY.js +0 -120
- package/dist/dist-Cf-pDuuw.js +0 -10
- package/dist/dist-D6dB-_Oy.js +0 -10
- package/dist/dist-DF7Yi2EK.js +0 -67
- package/dist/dist-D_9sBzad.js +0 -223
- package/dist/dist-DxDE5irg2.js +0 -11
- package/dist/dist-EV-1XXQr.js +0 -58
- package/dist/dist-X40eHC8j2.js +0 -31
- package/dist/ellipsis-vertical-Cm9A6Zu8.js +0 -24
- package/dist/lib/components/DateRangePicker/constants/presets.d.ts +0 -6
- package/dist/lib/components/DateRangePicker/utils/presets.d.ts +0 -5
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +0 -13
- package/dist/proxy-Cx8v8fok.js +0 -4690
- package/dist/x-DBIZFfaM.js +0 -11
- /package/dist/{clsx-Dzz4NoNN.js → clsx-Cf23UI1w.js} +0 -0
- /package/dist/components/DateRangePicker/contexts/{date-range-picker.context.js → date-range-picker/date-range-picker.context.js} +0 -0
- /package/dist/components/DateRangePicker/contexts/{date-range-picker.hook.js → date-range-picker/date-range-picker.hook.js} +0 -0
- /package/dist/lib/components/DateRangePicker/contexts/{date-range-picker.hook.d.ts → date-range-picker/date-range-picker.hook.d.ts} +0 -0
- /package/dist/lib/components/DateRangePicker/utils/{validation.d.ts → validation/validation.d.ts} +0 -0
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
|
|
2
|
+
var he = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, rt = /^[\\/]{2}/;
|
|
3
|
+
function nt(e, t) {
|
|
4
|
+
return t + e.replace(/\\/g, "/");
|
|
5
|
+
}
|
|
6
|
+
function E(e, t) {
|
|
3
7
|
if (e === !1 || e === null || typeof e > "u") throw new Error(t);
|
|
4
8
|
}
|
|
5
|
-
function
|
|
9
|
+
function L(e, t) {
|
|
6
10
|
if (!e) {
|
|
7
11
|
typeof console < "u" && console.warn(t);
|
|
8
12
|
try {
|
|
@@ -11,10 +15,10 @@ function C(e, t) {
|
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
|
-
function
|
|
18
|
+
function Z({ pathname: e = "/", search: t = "", hash: r = "" }) {
|
|
15
19
|
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
|
|
16
20
|
}
|
|
17
|
-
function
|
|
21
|
+
function B(e) {
|
|
18
22
|
let t = {};
|
|
19
23
|
if (e) {
|
|
20
24
|
let r = e.indexOf("#");
|
|
@@ -24,24 +28,19 @@ function W(e) {
|
|
|
24
28
|
}
|
|
25
29
|
return t;
|
|
26
30
|
}
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
function
|
|
30
|
-
return
|
|
31
|
-
}
|
|
32
|
-
function
|
|
33
|
-
let
|
|
34
|
-
if (
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
for (let s = 0; i == null && s < o.length; ++s) {
|
|
39
|
-
let u = ut(a);
|
|
40
|
-
i = it(o[s], u, n);
|
|
41
|
-
}
|
|
42
|
-
return i;
|
|
31
|
+
var at;
|
|
32
|
+
at = /* @__PURE__ */ new WeakMap();
|
|
33
|
+
function $e(e, t, r = "/") {
|
|
34
|
+
return ke(e, t, r, !1);
|
|
35
|
+
}
|
|
36
|
+
function ke(e, t, r, n, a) {
|
|
37
|
+
let o = _((typeof t == "string" ? B(t) : t).pathname || "/", r);
|
|
38
|
+
if (o == null) return null;
|
|
39
|
+
let i = a ?? lt(e), s = null, u = yt(o);
|
|
40
|
+
for (let c = 0; s == null && c < i.length; ++c) s = gt(i[c], u, n);
|
|
41
|
+
return s;
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function ot(e, t) {
|
|
45
44
|
let { route: r, pathname: n, params: a } = e;
|
|
46
45
|
return {
|
|
47
46
|
id: r.id,
|
|
@@ -52,7 +51,11 @@ function Ke(e, t) {
|
|
|
52
51
|
handle: r.handle
|
|
53
52
|
};
|
|
54
53
|
}
|
|
55
|
-
function
|
|
54
|
+
function lt(e) {
|
|
55
|
+
let t = _e(e);
|
|
56
|
+
return it(t), t;
|
|
57
|
+
}
|
|
58
|
+
function _e(e, t = [], r = [], n = "", a = !1) {
|
|
56
59
|
let o = (i, s, u = a, c) => {
|
|
57
60
|
let f = {
|
|
58
61
|
relativePath: c === void 0 ? i.path || "" : c,
|
|
@@ -62,75 +65,86 @@ function $e(e, t = [], r = [], n = "", a = !1) {
|
|
|
62
65
|
};
|
|
63
66
|
if (f.relativePath.startsWith("/")) {
|
|
64
67
|
if (!f.relativePath.startsWith(n) && u) return;
|
|
65
|
-
|
|
68
|
+
E(f.relativePath.startsWith(n), `Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), f.relativePath = f.relativePath.slice(n.length);
|
|
66
69
|
}
|
|
67
70
|
let d = k([n, f.relativePath]), h = r.concat(f);
|
|
68
|
-
i.children && i.children.length > 0 && (
|
|
71
|
+
i.children && i.children.length > 0 && (E(i.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${d}".`), _e(i.children, t, h, d, u)), !(i.path == null && !i.index) && t.push({
|
|
69
72
|
path: d,
|
|
70
|
-
score:
|
|
71
|
-
routesMeta: h
|
|
73
|
+
score: mt(d, i.index),
|
|
74
|
+
routesMeta: h.map((p, y) => {
|
|
75
|
+
let [g, m] = Me(p.relativePath, p.caseSensitive, y === h.length - 1);
|
|
76
|
+
return {
|
|
77
|
+
...p,
|
|
78
|
+
matcher: g,
|
|
79
|
+
compiledParams: m
|
|
80
|
+
};
|
|
81
|
+
})
|
|
72
82
|
});
|
|
73
83
|
};
|
|
74
84
|
return e.forEach((i, s) => {
|
|
75
85
|
if (i.path === "" || !i.path?.includes("?")) o(i, s);
|
|
76
|
-
else for (let u of
|
|
86
|
+
else for (let u of Oe(i.path)) o(i, s, !0, u);
|
|
77
87
|
}), t;
|
|
78
88
|
}
|
|
79
|
-
function
|
|
89
|
+
function Oe(e) {
|
|
80
90
|
let t = e.split("/");
|
|
81
91
|
if (t.length === 0) return [];
|
|
82
92
|
let [r, ...n] = t, a = r.endsWith("?"), o = r.replace(/\?$/, "");
|
|
83
93
|
if (n.length === 0) return a ? [o, ""] : [o];
|
|
84
|
-
let i =
|
|
94
|
+
let i = Oe(n.join("/")), s = [];
|
|
85
95
|
return s.push(...i.map((u) => u === "" ? o : [o, u].join("/"))), a && s.push(...i), s.map((u) => e.startsWith("/") && u === "" ? "/" : u);
|
|
86
96
|
}
|
|
87
|
-
function
|
|
88
|
-
e.sort((t, r) => t.score !== r.score ? r.score - t.score :
|
|
97
|
+
function it(e) {
|
|
98
|
+
e.sort((t, r) => t.score !== r.score ? r.score - t.score : pt(t.routesMeta.map((n) => n.childrenIndex), r.routesMeta.map((n) => n.childrenIndex)));
|
|
89
99
|
}
|
|
90
|
-
var
|
|
91
|
-
function
|
|
100
|
+
var st = /^:[\w-]+$/, ut = 3, ct = 2, dt = 1, ft = 10, ht = -2, Re = (e) => e === "*";
|
|
101
|
+
function mt(e, t) {
|
|
92
102
|
let r = e.split("/"), n = r.length;
|
|
93
|
-
return r.some(Re) && (n +=
|
|
103
|
+
return r.some(Re) && (n += ht), t && (n += ct), r.filter((a) => !Re(a)).reduce((a, o) => a + (st.test(o) ? ut : o === "" ? dt : ft), n);
|
|
94
104
|
}
|
|
95
|
-
function
|
|
105
|
+
function pt(e, t) {
|
|
96
106
|
return e.length === t.length && e.slice(0, -1).every((r, n) => r === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
|
|
97
107
|
}
|
|
98
|
-
function
|
|
108
|
+
function gt(e, t, r = !1) {
|
|
99
109
|
let { routesMeta: n } = e, a = {}, o = "/", i = [];
|
|
100
110
|
for (let s = 0; s < n.length; ++s) {
|
|
101
|
-
let u = n[s], c = s === n.length - 1, f = o === "/" ? t : t.slice(o.length) || "/", d =
|
|
111
|
+
let u = n[s], c = s === n.length - 1, f = o === "/" ? t : t.slice(o.length) || "/", d = {
|
|
102
112
|
path: u.relativePath,
|
|
103
113
|
caseSensitive: u.caseSensitive,
|
|
104
114
|
end: c
|
|
105
|
-
}, f),
|
|
106
|
-
if (!
|
|
115
|
+
}, h = u.matcher && u.compiledParams ? Te(d, f, u.matcher, u.compiledParams) : ee(d, f), p = u.route;
|
|
116
|
+
if (!h && c && r && !n[n.length - 1].route.index && (h = ee({
|
|
107
117
|
path: u.relativePath,
|
|
108
118
|
caseSensitive: u.caseSensitive,
|
|
109
119
|
end: !1
|
|
110
|
-
}, f)), !
|
|
111
|
-
Object.assign(a,
|
|
120
|
+
}, f)), !h) return null;
|
|
121
|
+
Object.assign(a, h.params), i.push({
|
|
112
122
|
params: a,
|
|
113
|
-
pathname: k([o,
|
|
114
|
-
pathnameBase:
|
|
115
|
-
route:
|
|
116
|
-
}),
|
|
123
|
+
pathname: k([o, h.pathname]),
|
|
124
|
+
pathnameBase: Rt(k([o, h.pathnameBase])),
|
|
125
|
+
route: p
|
|
126
|
+
}), h.pathnameBase !== "/" && (o = k([o, h.pathnameBase]));
|
|
117
127
|
}
|
|
118
128
|
return i;
|
|
119
129
|
}
|
|
120
|
-
function
|
|
130
|
+
function ee(e, t) {
|
|
121
131
|
typeof e == "string" && (e = {
|
|
122
132
|
path: e,
|
|
123
133
|
caseSensitive: !1,
|
|
124
134
|
end: !0
|
|
125
135
|
});
|
|
126
|
-
let [r, n] =
|
|
136
|
+
let [r, n] = Me(e.path, e.caseSensitive, e.end);
|
|
137
|
+
return Te(e, t, r, n);
|
|
138
|
+
}
|
|
139
|
+
function Te(e, t, r, n) {
|
|
140
|
+
let a = t.match(r);
|
|
127
141
|
if (!a) return null;
|
|
128
|
-
let o = a[0], i = o
|
|
142
|
+
let o = a[0], i = W(o, 1), s = a.slice(1);
|
|
129
143
|
return {
|
|
130
144
|
params: n.reduce((u, { paramName: c, isOptional: f }, d) => {
|
|
131
145
|
if (c === "*") {
|
|
132
|
-
let
|
|
133
|
-
i = o.slice(0, o.length -
|
|
146
|
+
let p = s[d] || "";
|
|
147
|
+
i = W(o.slice(0, o.length - p.length), 1);
|
|
134
148
|
}
|
|
135
149
|
const h = s[d];
|
|
136
150
|
return f && !h ? u[c] = void 0 : u[c] = (h || "").replace(/%2F/g, "/"), u;
|
|
@@ -140,8 +154,8 @@ function K(e, t) {
|
|
|
140
154
|
pattern: e
|
|
141
155
|
};
|
|
142
156
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
157
|
+
function Me(e, t = !1, r = !0) {
|
|
158
|
+
L(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
|
|
145
159
|
let n = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (o, i, s, u, c) => {
|
|
146
160
|
if (n.push({
|
|
147
161
|
paramName: i,
|
|
@@ -154,11 +168,11 @@ function st(e, t = !1, r = !0) {
|
|
|
154
168
|
}).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
155
169
|
return e.endsWith("*") ? (n.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, t ? void 0 : "i"), n];
|
|
156
170
|
}
|
|
157
|
-
function
|
|
171
|
+
function yt(e) {
|
|
158
172
|
try {
|
|
159
173
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
160
174
|
} catch (t) {
|
|
161
|
-
return
|
|
175
|
+
return L(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
|
|
162
176
|
}
|
|
163
177
|
}
|
|
164
178
|
function _(e, t) {
|
|
@@ -167,34 +181,33 @@ function _(e, t) {
|
|
|
167
181
|
let r = t.endsWith("/") ? t.length - 1 : t.length, n = e.charAt(r);
|
|
168
182
|
return n && n !== "/" ? null : e.slice(r) || "/";
|
|
169
183
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
return r ? (r = ke(r), r.startsWith("/") ? o = we(r.substring(1), "/") : o = we(r, t)) : o = t, {
|
|
184
|
+
function vt(e, t = "/") {
|
|
185
|
+
let { pathname: r, search: n = "", hash: a = "" } = typeof e == "string" ? B(e) : e, o;
|
|
186
|
+
return r ? (r = Ie(r), r.startsWith("/") || r.startsWith("\\") ? o = Ee(r.substring(1), "/") : o = Ee(r, t)) : o = t, {
|
|
174
187
|
pathname: o,
|
|
175
|
-
search:
|
|
176
|
-
hash:
|
|
188
|
+
search: Et(n),
|
|
189
|
+
hash: St(a)
|
|
177
190
|
};
|
|
178
191
|
}
|
|
179
|
-
function
|
|
180
|
-
let r =
|
|
192
|
+
function Ee(e, t) {
|
|
193
|
+
let r = W(t).split("/");
|
|
181
194
|
return e.split("/").forEach((n) => {
|
|
182
195
|
n === ".." ? r.length > 1 && r.pop() : n !== "." && r.push(n);
|
|
183
196
|
}), r.length > 1 ? r.join("/") : "/";
|
|
184
197
|
}
|
|
185
|
-
function
|
|
198
|
+
function le(e, t, r, n) {
|
|
186
199
|
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
187
200
|
}
|
|
188
|
-
function
|
|
201
|
+
function wt(e) {
|
|
189
202
|
return e.filter((t, r) => r === 0 || t.route.path && t.route.path.length > 0);
|
|
190
203
|
}
|
|
191
|
-
function
|
|
192
|
-
let t =
|
|
204
|
+
function Ne(e) {
|
|
205
|
+
let t = wt(e);
|
|
193
206
|
return t.map((r, n) => n === t.length - 1 ? r.pathname : r.pathnameBase);
|
|
194
207
|
}
|
|
195
|
-
function
|
|
208
|
+
function me(e, t, r, n = !1) {
|
|
196
209
|
let a;
|
|
197
|
-
typeof e == "string" ? a =
|
|
210
|
+
typeof e == "string" ? a = B(e) : (a = { ...e }, E(!a.pathname || !a.pathname.includes("?"), le("?", "pathname", "search", a)), E(!a.pathname || !a.pathname.includes("#"), le("#", "pathname", "hash", a)), E(!a.search || !a.search.includes("#"), le("#", "search", "hash", a)));
|
|
198
211
|
let o = e === "" || a.pathname === "", i = o ? "/" : a.pathname, s;
|
|
199
212
|
if (i == null) s = r;
|
|
200
213
|
else {
|
|
@@ -207,34 +220,40 @@ function fe(e, t, r, n = !1) {
|
|
|
207
220
|
}
|
|
208
221
|
s = d >= 0 ? t[d] : "/";
|
|
209
222
|
}
|
|
210
|
-
let u =
|
|
223
|
+
let u = vt(a, s), c = i && i !== "/" && i.endsWith("/"), f = (o || i === ".") && r.endsWith("/");
|
|
211
224
|
return !u.pathname.endsWith("/") && (c || f) && (u.pathname += "/"), u;
|
|
212
225
|
}
|
|
213
|
-
var
|
|
226
|
+
var Ie = (e) => e.replace(/[\\/]{2,}/g, "/"), k = (e) => Ie(e.join("/"));
|
|
227
|
+
function W(e, t = 0) {
|
|
228
|
+
let r = e.length;
|
|
229
|
+
for (; r > t && e.charCodeAt(r - 1) === 47; ) r--;
|
|
230
|
+
return r === e.length ? e : e.slice(0, r);
|
|
231
|
+
}
|
|
232
|
+
var Rt = (e) => W(e).replace(/^\/*/, "/"), Et = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, St = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, xt = class {
|
|
214
233
|
constructor(e, t, r, n = !1) {
|
|
215
234
|
this.status = e, this.statusText = t || "", this.internal = n, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
216
235
|
}
|
|
217
236
|
};
|
|
218
|
-
function
|
|
237
|
+
function De(e) {
|
|
219
238
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
220
239
|
}
|
|
221
|
-
function
|
|
240
|
+
function Ct(e) {
|
|
222
241
|
return k(e.map((t) => t.route.path).filter(Boolean)) || "/";
|
|
223
242
|
}
|
|
224
|
-
var
|
|
225
|
-
function
|
|
243
|
+
var Fe = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
244
|
+
function Ae(e, t) {
|
|
226
245
|
let r = e;
|
|
227
|
-
if (typeof r != "string" || !
|
|
246
|
+
if (typeof r != "string" || !he.test(r)) return {
|
|
228
247
|
absoluteURL: void 0,
|
|
229
248
|
isExternal: !1,
|
|
230
249
|
to: r
|
|
231
250
|
};
|
|
232
251
|
let n = r, a = !1;
|
|
233
|
-
if (
|
|
234
|
-
let o = new URL(window.location.href), i =
|
|
252
|
+
if (Fe) try {
|
|
253
|
+
let o = new URL(window.location.href), i = rt.test(r) ? new URL(nt(r, o.protocol)) : new URL(r), s = _(i.pathname, t);
|
|
235
254
|
i.origin === o.origin && s != null ? r = s + i.search + i.hash : a = !0;
|
|
236
255
|
} catch {
|
|
237
|
-
|
|
256
|
+
L(!1, `<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
|
|
238
257
|
}
|
|
239
258
|
return {
|
|
240
259
|
absoluteURL: n,
|
|
@@ -242,88 +261,141 @@ function Te(e, t) {
|
|
|
242
261
|
to: r
|
|
243
262
|
};
|
|
244
263
|
}
|
|
245
|
-
var
|
|
264
|
+
var Vr = Object.getOwnPropertyNames(Object.prototype).sort().join("\0"), Se = new URL("http://localhost");
|
|
265
|
+
function We(e) {
|
|
266
|
+
if (e.createURL) return e.createURL("/");
|
|
267
|
+
try {
|
|
268
|
+
return new URL(e.createHref("/"), Se);
|
|
269
|
+
} catch {
|
|
270
|
+
return Se;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
function ie(e, t) {
|
|
274
|
+
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
|
|
275
|
+
}
|
|
276
|
+
function bt(e, t) {
|
|
277
|
+
if (e.startsWith("//")) return !0;
|
|
278
|
+
let r = t.protocol.toLowerCase();
|
|
279
|
+
return e.toLowerCase().startsWith(r) ? t.host === "" || e.slice(r.length).startsWith("//") : !1;
|
|
280
|
+
}
|
|
281
|
+
function He(e, t, r, n) {
|
|
282
|
+
let a = null;
|
|
283
|
+
try {
|
|
284
|
+
a = e == null ? null : new URL(e, r);
|
|
285
|
+
} catch {
|
|
286
|
+
}
|
|
287
|
+
let o = new URL(t, r), i = a != null && !ie(a, r), s = !ie(o, r);
|
|
288
|
+
if (n === "reject") {
|
|
289
|
+
if (i || s) throw new Error("External navigation is not allowed");
|
|
290
|
+
} else if (s && (a == null || !bt(e, a) || !ie(a, o)))
|
|
291
|
+
throw new Error("External navigation is not allowed");
|
|
292
|
+
}
|
|
293
|
+
var Ue = [
|
|
246
294
|
"POST",
|
|
247
295
|
"PUT",
|
|
248
296
|
"PATCH",
|
|
249
297
|
"DELETE"
|
|
250
|
-
],
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
298
|
+
], zr = new Set(Ue), Lt = ["GET", ...Ue], Yr = new Set(Lt), Pt, $t, kt, _t;
|
|
299
|
+
Pt = /* @__PURE__ */ new WeakMap();
|
|
300
|
+
$t = /* @__PURE__ */ new WeakMap();
|
|
301
|
+
kt = /* @__PURE__ */ new WeakMap();
|
|
302
|
+
_t = /* @__PURE__ */ new WeakMap();
|
|
303
|
+
var Ot = [
|
|
304
|
+
"about:",
|
|
305
|
+
"blob:",
|
|
306
|
+
"chrome:",
|
|
307
|
+
"chrome-untrusted:",
|
|
308
|
+
"content:",
|
|
309
|
+
"data:",
|
|
310
|
+
"devtools:",
|
|
311
|
+
"file:",
|
|
312
|
+
"filesystem:",
|
|
313
|
+
"javascript:"
|
|
314
|
+
];
|
|
315
|
+
function Tt(e) {
|
|
316
|
+
try {
|
|
317
|
+
return Ot.includes(new URL(e).protocol);
|
|
318
|
+
} catch {
|
|
319
|
+
return !1;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
var H = l.createContext(null);
|
|
323
|
+
H.displayName = "DataRouter";
|
|
324
|
+
var j = l.createContext(null);
|
|
325
|
+
j.displayName = "DataRouterState";
|
|
326
|
+
var Be = l.createContext(!1);
|
|
327
|
+
function je() {
|
|
328
|
+
return l.useContext(Be);
|
|
329
|
+
}
|
|
330
|
+
var Je = l.createContext({ isTransitioning: !1 });
|
|
331
|
+
Je.displayName = "ViewTransition";
|
|
332
|
+
var Mt = l.createContext(/* @__PURE__ */ new Map());
|
|
333
|
+
Mt.displayName = "Fetchers";
|
|
334
|
+
var ce = l.createContext(null);
|
|
335
|
+
ce.displayName = "Await";
|
|
264
336
|
var b = l.createContext(null);
|
|
265
337
|
b.displayName = "Navigation";
|
|
266
|
-
var
|
|
267
|
-
|
|
338
|
+
var J = l.createContext(null);
|
|
339
|
+
J.displayName = "Location";
|
|
268
340
|
var T = l.createContext({
|
|
269
341
|
outlet: null,
|
|
270
342
|
matches: [],
|
|
271
343
|
isDataRoute: !1
|
|
272
344
|
});
|
|
273
345
|
T.displayName = "Route";
|
|
274
|
-
var
|
|
275
|
-
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
if (e.startsWith(`${
|
|
346
|
+
var pe = l.createContext(null);
|
|
347
|
+
pe.displayName = "RouteError";
|
|
348
|
+
var Ve = "REACT_ROUTER_ERROR", Nt = "REDIRECT", It = "ROUTE_ERROR_RESPONSE";
|
|
349
|
+
function Dt(e) {
|
|
350
|
+
if (e.startsWith(`${Ve}:${Nt}:{`)) try {
|
|
279
351
|
let t = JSON.parse(e.slice(28));
|
|
280
352
|
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
|
|
281
353
|
} catch {
|
|
282
354
|
}
|
|
283
355
|
}
|
|
284
|
-
function
|
|
285
|
-
if (e.startsWith(`${
|
|
356
|
+
function Ft(e) {
|
|
357
|
+
if (e.startsWith(`${Ve}:${It}:{`)) try {
|
|
286
358
|
let t = JSON.parse(e.slice(40));
|
|
287
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new
|
|
359
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new xt(t.status, t.statusText, t.data);
|
|
288
360
|
} catch {
|
|
289
361
|
}
|
|
290
362
|
}
|
|
291
|
-
function
|
|
292
|
-
|
|
293
|
-
let { basename: r, navigator: n } = l.useContext(b), { hash: a, pathname: o, search: i } =
|
|
363
|
+
function At(e, { relative: t } = {}) {
|
|
364
|
+
E(V(), "useHref() may be used only in the context of a <Router> component.");
|
|
365
|
+
let { basename: r, navigator: n } = l.useContext(b), { hash: a, pathname: o, search: i } = z(e, { relative: t }), s = o;
|
|
294
366
|
return r !== "/" && (s = o === "/" ? r : k([r, o])), n.createHref({
|
|
295
367
|
pathname: s,
|
|
296
368
|
search: i,
|
|
297
369
|
hash: a
|
|
298
370
|
});
|
|
299
371
|
}
|
|
300
|
-
function
|
|
301
|
-
return l.useContext(
|
|
372
|
+
function V() {
|
|
373
|
+
return l.useContext(J) != null;
|
|
302
374
|
}
|
|
303
|
-
function
|
|
304
|
-
return
|
|
375
|
+
function P() {
|
|
376
|
+
return E(V(), "useLocation() may be used only in the context of a <Router> component."), l.useContext(J).location;
|
|
305
377
|
}
|
|
306
|
-
var
|
|
307
|
-
function
|
|
378
|
+
var ze = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
379
|
+
function Ye(e) {
|
|
308
380
|
l.useContext(b).static || l.useLayoutEffect(e);
|
|
309
381
|
}
|
|
310
|
-
function
|
|
382
|
+
function Wt() {
|
|
311
383
|
let { isDataRoute: e } = l.useContext(T);
|
|
312
|
-
return e ?
|
|
384
|
+
return e ? Qt() : Ht();
|
|
313
385
|
}
|
|
314
|
-
function
|
|
315
|
-
|
|
316
|
-
let e = l.useContext(
|
|
317
|
-
return
|
|
386
|
+
function Ht() {
|
|
387
|
+
E(V(), "useNavigate() may be used only in the context of a <Router> component.");
|
|
388
|
+
let e = l.useContext(H), { basename: t, navigator: r } = l.useContext(b), { matches: n } = l.useContext(T), { pathname: a } = P(), o = JSON.stringify(Ne(n)), i = l.useRef(!1);
|
|
389
|
+
return Ye(() => {
|
|
318
390
|
i.current = !0;
|
|
319
391
|
}), l.useCallback((s, u = {}) => {
|
|
320
|
-
if (
|
|
392
|
+
if (L(i.current, ze), !i.current) return;
|
|
321
393
|
if (typeof s == "number") {
|
|
322
394
|
r.go(s);
|
|
323
395
|
return;
|
|
324
396
|
}
|
|
325
|
-
let c =
|
|
326
|
-
e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : k([t, c.pathname])), (u.replace ? r.replace : r.push)(c, u.state, u);
|
|
397
|
+
let c = me(s, JSON.parse(o), a, u.relative === "path");
|
|
398
|
+
e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : k([t, c.pathname])), He(typeof s == "string" ? s : Z(s), r.createHref(c), We(r), "reject"), (u.replace ? r.replace : r.push)(c, u.state, u);
|
|
327
399
|
}, [
|
|
328
400
|
t,
|
|
329
401
|
r,
|
|
@@ -332,57 +404,57 @@ function $t() {
|
|
|
332
404
|
e
|
|
333
405
|
]);
|
|
334
406
|
}
|
|
335
|
-
var
|
|
336
|
-
function
|
|
337
|
-
let { matches: r } = l.useContext(T), { pathname: n } =
|
|
338
|
-
return l.useMemo(() =>
|
|
407
|
+
var Gr = l.createContext(null);
|
|
408
|
+
function z(e, { relative: t } = {}) {
|
|
409
|
+
let { matches: r } = l.useContext(T), { pathname: n } = P(), a = JSON.stringify(Ne(r));
|
|
410
|
+
return l.useMemo(() => me(e, JSON.parse(a), n, t === "path"), [
|
|
339
411
|
e,
|
|
340
412
|
a,
|
|
341
413
|
n,
|
|
342
414
|
t
|
|
343
415
|
]);
|
|
344
416
|
}
|
|
345
|
-
function
|
|
346
|
-
|
|
417
|
+
function Ut(e, t, r) {
|
|
418
|
+
E(V(), "useRoutes() may be used only in the context of a <Router> component.");
|
|
347
419
|
let { navigator: n } = l.useContext(b), { matches: a } = l.useContext(T), o = a[a.length - 1], i = o ? o.params : {}, s = o ? o.pathname : "/", u = o ? o.pathnameBase : "/", c = o && o.route;
|
|
348
420
|
{
|
|
349
421
|
let m = c && c.path || "";
|
|
350
|
-
|
|
422
|
+
Xe(s, !c || m.endsWith("*") || m.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
351
423
|
|
|
352
424
|
Please change the parent <Route path="${m}"> to <Route path="${m === "/" ? "*" : `${m}/*`}">.`);
|
|
353
425
|
}
|
|
354
|
-
let f =
|
|
426
|
+
let f = P(), d;
|
|
355
427
|
if (t) {
|
|
356
|
-
let m = typeof t == "string" ?
|
|
357
|
-
|
|
428
|
+
let m = typeof t == "string" ? B(t) : t;
|
|
429
|
+
E(u === "/" || m.pathname?.startsWith(u), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${m.pathname}" was given in the \`location\` prop.`), d = m;
|
|
358
430
|
} else d = f;
|
|
359
|
-
let h = d.pathname || "/",
|
|
431
|
+
let h = d.pathname || "/", p = h;
|
|
360
432
|
if (u !== "/") {
|
|
361
433
|
let m = u.replace(/^\//, "").split("/");
|
|
362
|
-
|
|
434
|
+
p = "/" + h.replace(/^\//, "").split("/").slice(m.length).join("/");
|
|
363
435
|
}
|
|
364
|
-
let
|
|
365
|
-
|
|
366
|
-
let
|
|
436
|
+
let y = r && r.state.matches.length ? r.state.matches.map((m) => Object.assign(m, { route: r.manifest[m.route.id] || m.route })) : $e(e, { pathname: p });
|
|
437
|
+
L(c || y != null, `No routes matched location "${d.pathname}${d.search}${d.hash}" `), L(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, `Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
|
|
438
|
+
let g = zt(y && y.map((m) => Object.assign({}, m, {
|
|
367
439
|
params: Object.assign({}, i, m.params),
|
|
368
440
|
pathname: k([u, n.encodeLocation ? n.encodeLocation(m.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : m.pathname]),
|
|
369
441
|
pathnameBase: m.pathnameBase === "/" ? u : k([u, n.encodeLocation ? n.encodeLocation(m.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : m.pathnameBase])
|
|
370
442
|
})), a, r);
|
|
371
|
-
return t &&
|
|
443
|
+
return t && g ? /* @__PURE__ */ l.createElement(J.Provider, { value: {
|
|
372
444
|
location: {
|
|
373
445
|
pathname: "/",
|
|
374
446
|
search: "",
|
|
375
447
|
hash: "",
|
|
376
448
|
state: null,
|
|
377
449
|
key: "default",
|
|
378
|
-
|
|
450
|
+
mask: void 0,
|
|
379
451
|
...d
|
|
380
452
|
},
|
|
381
453
|
navigationType: "POP"
|
|
382
|
-
} },
|
|
454
|
+
} }, g) : g;
|
|
383
455
|
}
|
|
384
|
-
function
|
|
385
|
-
let e =
|
|
456
|
+
function Bt() {
|
|
457
|
+
let e = Kt(), t = De(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", a = {
|
|
386
458
|
padding: "0.5rem",
|
|
387
459
|
backgroundColor: n
|
|
388
460
|
}, o = {
|
|
@@ -391,7 +463,7 @@ function Lt() {
|
|
|
391
463
|
}, i = null;
|
|
392
464
|
return console.error("Error handled by React Router default ErrorBoundary:", e), i = /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ l.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ l.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ l.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ l.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ l.createElement("pre", { style: a }, r) : null, i);
|
|
393
465
|
}
|
|
394
|
-
var
|
|
466
|
+
var jt = /* @__PURE__ */ l.createElement(Bt, null), Ge = class extends l.Component {
|
|
395
467
|
constructor(e) {
|
|
396
468
|
super(e), this.state = {
|
|
397
469
|
location: e.location,
|
|
@@ -419,44 +491,46 @@ var kt = /* @__PURE__ */ l.createElement(Lt, null), We = class extends l.Compone
|
|
|
419
491
|
render() {
|
|
420
492
|
let e = this.state.error;
|
|
421
493
|
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
|
|
422
|
-
const r =
|
|
494
|
+
const r = Ft(e.digest);
|
|
423
495
|
r && (e = r);
|
|
424
496
|
}
|
|
425
|
-
let t = e !== void 0 ? /* @__PURE__ */ l.createElement(T.Provider, { value: this.props.routeContext }, /* @__PURE__ */ l.createElement(
|
|
497
|
+
let t = e !== void 0 ? /* @__PURE__ */ l.createElement(T.Provider, { value: this.props.routeContext }, /* @__PURE__ */ l.createElement(pe.Provider, {
|
|
426
498
|
value: e,
|
|
427
499
|
children: this.props.component
|
|
428
500
|
})) : this.props.children;
|
|
429
|
-
return this.context ? /* @__PURE__ */ l.createElement(
|
|
501
|
+
return this.context ? /* @__PURE__ */ l.createElement(Jt, { error: e }, t) : t;
|
|
430
502
|
}
|
|
431
503
|
};
|
|
432
|
-
|
|
433
|
-
var
|
|
434
|
-
function
|
|
435
|
-
let { basename: r } = l.useContext(b);
|
|
504
|
+
Ge.contextType = Be;
|
|
505
|
+
var se = /* @__PURE__ */ new WeakMap();
|
|
506
|
+
function Jt({ children: e, error: t }) {
|
|
507
|
+
let { basename: r, navigator: n } = l.useContext(b);
|
|
436
508
|
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
437
|
-
let
|
|
438
|
-
if (
|
|
439
|
-
let
|
|
440
|
-
if (
|
|
441
|
-
let
|
|
442
|
-
if (
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
509
|
+
let a = Dt(t.digest);
|
|
510
|
+
if (a) {
|
|
511
|
+
let o = se.get(t);
|
|
512
|
+
if (o) throw o;
|
|
513
|
+
let i = Ae(a.location, r), s = i.absoluteURL || i.to;
|
|
514
|
+
if (He(a.location, s, We(n), "allow-explicit"), Tt(s)) throw new Error("Invalid redirect location");
|
|
515
|
+
if (Fe && !se.get(t))
|
|
516
|
+
if (i.isExternal || a.reloadDocument) window.location.href = s;
|
|
517
|
+
else {
|
|
518
|
+
const u = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(i.to, { replace: a.replace }));
|
|
519
|
+
throw se.set(t, u), u;
|
|
520
|
+
}
|
|
447
521
|
return /* @__PURE__ */ l.createElement("meta", {
|
|
448
522
|
httpEquiv: "refresh",
|
|
449
|
-
content: `0;url=${
|
|
523
|
+
content: `0;url=${s}`
|
|
450
524
|
});
|
|
451
525
|
}
|
|
452
526
|
}
|
|
453
527
|
return e;
|
|
454
528
|
}
|
|
455
|
-
function
|
|
456
|
-
let n = l.useContext(
|
|
529
|
+
function Vt({ routeContext: e, match: t, children: r }) {
|
|
530
|
+
let n = l.useContext(H);
|
|
457
531
|
return n && n.static && n.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ l.createElement(T.Provider, { value: e }, r);
|
|
458
532
|
}
|
|
459
|
-
function
|
|
533
|
+
function zt(e, t = [], r) {
|
|
460
534
|
let n = r?.state;
|
|
461
535
|
if (e == null) {
|
|
462
536
|
if (!n) return null;
|
|
@@ -467,7 +541,7 @@ function Tt(e, t = [], r) {
|
|
|
467
541
|
let a = e, o = n?.errors;
|
|
468
542
|
if (o != null) {
|
|
469
543
|
let f = a.findIndex((d) => d.route.id && o?.[d.route.id] !== void 0);
|
|
470
|
-
|
|
544
|
+
E(f >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, f + 1));
|
|
471
545
|
}
|
|
472
546
|
let i = !1, s = -1;
|
|
473
547
|
if (r && n) {
|
|
@@ -475,8 +549,8 @@ function Tt(e, t = [], r) {
|
|
|
475
549
|
for (let f = 0; f < a.length; f++) {
|
|
476
550
|
let d = a[f];
|
|
477
551
|
if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (s = f), d.route.id) {
|
|
478
|
-
let { loaderData: h, errors:
|
|
479
|
-
if (d.route.lazy ||
|
|
552
|
+
let { loaderData: h, errors: p } = n, y = d.route.loader && !h.hasOwnProperty(d.route.id) && (!p || p[d.route.id] === void 0);
|
|
553
|
+
if (d.route.lazy || y) {
|
|
480
554
|
r.isStatic && (i = !0), s >= 0 ? a = a.slice(0, s + 1) : a = [a[0]];
|
|
481
555
|
break;
|
|
482
556
|
}
|
|
@@ -487,108 +561,113 @@ function Tt(e, t = [], r) {
|
|
|
487
561
|
u(f, {
|
|
488
562
|
location: n.location,
|
|
489
563
|
params: n.matches?.[0]?.params ?? {},
|
|
490
|
-
|
|
564
|
+
pattern: Ct(n.matches),
|
|
491
565
|
errorInfo: d
|
|
492
566
|
});
|
|
493
567
|
} : void 0;
|
|
494
568
|
return a.reduceRight((f, d, h) => {
|
|
495
|
-
let
|
|
496
|
-
n && (
|
|
497
|
-
let
|
|
498
|
-
let
|
|
499
|
-
return
|
|
569
|
+
let p, y = !1, g = null, m = null;
|
|
570
|
+
n && (p = o && d.route.id ? o[d.route.id] : void 0, g = d.route.errorElement || jt, i && (s < 0 && h === 0 ? (Xe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), y = !0, m = null) : s === h && (y = !0, m = d.route.hydrateFallbackElement || null)));
|
|
571
|
+
let w = t.concat(a.slice(0, h + 1)), v = () => {
|
|
572
|
+
let R;
|
|
573
|
+
return p ? R = g : y ? R = m : d.route.Component ? R = /* @__PURE__ */ l.createElement(d.route.Component, null) : d.route.element ? R = d.route.element : R = f, /* @__PURE__ */ l.createElement(Vt, {
|
|
500
574
|
match: d,
|
|
501
575
|
routeContext: {
|
|
502
576
|
outlet: f,
|
|
503
|
-
matches:
|
|
577
|
+
matches: w,
|
|
504
578
|
isDataRoute: n != null
|
|
505
579
|
},
|
|
506
|
-
children:
|
|
580
|
+
children: R
|
|
507
581
|
});
|
|
508
582
|
};
|
|
509
|
-
return n && (d.route.ErrorBoundary || d.route.errorElement || h === 0) ? /* @__PURE__ */ l.createElement(
|
|
583
|
+
return n && (d.route.ErrorBoundary || d.route.errorElement || h === 0) ? /* @__PURE__ */ l.createElement(Ge, {
|
|
510
584
|
location: n.location,
|
|
511
585
|
revalidation: n.revalidation,
|
|
512
|
-
component:
|
|
513
|
-
error:
|
|
514
|
-
children:
|
|
586
|
+
component: g,
|
|
587
|
+
error: p,
|
|
588
|
+
children: v(),
|
|
515
589
|
routeContext: {
|
|
516
590
|
outlet: null,
|
|
517
|
-
matches:
|
|
591
|
+
matches: w,
|
|
518
592
|
isDataRoute: !0
|
|
519
593
|
},
|
|
520
594
|
onError: c
|
|
521
|
-
}) :
|
|
595
|
+
}) : v();
|
|
522
596
|
}, null);
|
|
523
597
|
}
|
|
524
|
-
function
|
|
598
|
+
function ge(e) {
|
|
525
599
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
526
600
|
}
|
|
527
|
-
function
|
|
528
|
-
let t = l.useContext(
|
|
529
|
-
return
|
|
601
|
+
function Yt(e) {
|
|
602
|
+
let t = l.useContext(H);
|
|
603
|
+
return E(t, ge(e)), t;
|
|
530
604
|
}
|
|
531
|
-
function
|
|
532
|
-
let t = l.useContext(
|
|
533
|
-
return
|
|
605
|
+
function ye(e) {
|
|
606
|
+
let t = l.useContext(j);
|
|
607
|
+
return E(t, ge(e)), t;
|
|
534
608
|
}
|
|
535
|
-
function
|
|
609
|
+
function Gt(e) {
|
|
536
610
|
let t = l.useContext(T);
|
|
537
|
-
return
|
|
611
|
+
return E(t, ge(e)), t;
|
|
538
612
|
}
|
|
539
|
-
function
|
|
540
|
-
let t =
|
|
541
|
-
return
|
|
613
|
+
function ve(e) {
|
|
614
|
+
let t = Gt(e), r = t.matches[t.matches.length - 1];
|
|
615
|
+
return E(r.route.id, `${e} can only be used on routes that contain a unique "id"`), r.route.id;
|
|
542
616
|
}
|
|
543
|
-
function
|
|
544
|
-
return
|
|
617
|
+
function qt() {
|
|
618
|
+
return ve("useRouteId");
|
|
545
619
|
}
|
|
546
|
-
function
|
|
547
|
-
|
|
620
|
+
function Xt() {
|
|
621
|
+
let e = ye("useNavigation");
|
|
622
|
+
return l.useMemo(() => {
|
|
623
|
+
let { matches: t, historyAction: r, ...n } = e.navigation;
|
|
624
|
+
return n;
|
|
625
|
+
}, [e.navigation]);
|
|
548
626
|
}
|
|
549
|
-
function
|
|
550
|
-
let { matches: e, loaderData: t } =
|
|
551
|
-
return l.useMemo(() => e.map((r) =>
|
|
627
|
+
function qe() {
|
|
628
|
+
let { matches: e, loaderData: t } = ye("useMatches");
|
|
629
|
+
return l.useMemo(() => e.map((r) => ot(r, t)), [e, t]);
|
|
552
630
|
}
|
|
553
|
-
function
|
|
554
|
-
let e = l.useContext(
|
|
631
|
+
function Kt() {
|
|
632
|
+
let e = l.useContext(pe), t = ye("useRouteError"), r = ve("useRouteError");
|
|
555
633
|
return e !== void 0 ? e : t.errors?.[r];
|
|
556
634
|
}
|
|
557
|
-
function
|
|
558
|
-
let { router: e } =
|
|
559
|
-
return
|
|
635
|
+
function Qt() {
|
|
636
|
+
let { router: e } = Yt("useNavigate"), t = ve("useNavigate"), r = l.useRef(!1);
|
|
637
|
+
return Ye(() => {
|
|
560
638
|
r.current = !0;
|
|
561
639
|
}), l.useCallback(async (n, a = {}) => {
|
|
562
|
-
|
|
640
|
+
L(r.current, ze), r.current && (typeof n == "number" ? await e.navigate(n) : await e.navigate(n, {
|
|
563
641
|
fromRouteId: t,
|
|
564
642
|
...a
|
|
565
643
|
}));
|
|
566
644
|
}, [e, t]);
|
|
567
645
|
}
|
|
568
|
-
var
|
|
569
|
-
function
|
|
570
|
-
!t && !
|
|
571
|
-
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
574
|
-
!e && !
|
|
575
|
-
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
578
|
-
return
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
646
|
+
var xe = {};
|
|
647
|
+
function Xe(e, t, r) {
|
|
648
|
+
!t && !xe[e] && (xe[e] = !0, L(!1, r));
|
|
649
|
+
}
|
|
650
|
+
var Ce = {};
|
|
651
|
+
function Zt(e, t) {
|
|
652
|
+
!e && !Ce[t] && (Ce[t] = !0, console.warn(t));
|
|
653
|
+
}
|
|
654
|
+
var qr = l.memo(er);
|
|
655
|
+
function er({ routes: e, manifest: t, future: r, state: n, isStatic: a, onError: o }) {
|
|
656
|
+
return Ut(e, void 0, {
|
|
657
|
+
manifest: t,
|
|
658
|
+
state: n,
|
|
659
|
+
isStatic: a,
|
|
660
|
+
onError: o,
|
|
661
|
+
future: r
|
|
583
662
|
});
|
|
584
663
|
}
|
|
585
|
-
function
|
|
586
|
-
|
|
664
|
+
function tr({ basename: e = "/", children: t = null, location: r, navigationType: n = "POP", navigator: a, static: o = !1, useTransitions: i }) {
|
|
665
|
+
E(!V(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
587
666
|
let s = e.replace(/^\/*/, "/"), u = l.useMemo(() => ({
|
|
588
667
|
basename: s,
|
|
589
668
|
navigator: a,
|
|
590
669
|
static: o,
|
|
591
|
-
|
|
670
|
+
useTransitions: i,
|
|
592
671
|
future: {}
|
|
593
672
|
}), [
|
|
594
673
|
s,
|
|
@@ -596,8 +675,8 @@ function Bt({ basename: e = "/", children: t = null, location: r, navigationType
|
|
|
596
675
|
o,
|
|
597
676
|
i
|
|
598
677
|
]);
|
|
599
|
-
typeof r == "string" && (r =
|
|
600
|
-
let { pathname: c = "/", search: f = "", hash: d = "", state: h = null, key:
|
|
678
|
+
typeof r == "string" && (r = B(r));
|
|
679
|
+
let { pathname: c = "/", search: f = "", hash: d = "", state: h = null, key: p = "default", mask: y } = r, g = l.useMemo(() => {
|
|
601
680
|
let m = _(c, s);
|
|
602
681
|
return m == null ? null : {
|
|
603
682
|
location: {
|
|
@@ -605,8 +684,8 @@ function Bt({ basename: e = "/", children: t = null, location: r, navigationType
|
|
|
605
684
|
search: f,
|
|
606
685
|
hash: d,
|
|
607
686
|
state: h,
|
|
608
|
-
key:
|
|
609
|
-
|
|
687
|
+
key: p,
|
|
688
|
+
mask: y
|
|
610
689
|
},
|
|
611
690
|
navigationType: n
|
|
612
691
|
};
|
|
@@ -616,16 +695,16 @@ function Bt({ basename: e = "/", children: t = null, location: r, navigationType
|
|
|
616
695
|
f,
|
|
617
696
|
d,
|
|
618
697
|
h,
|
|
619
|
-
|
|
698
|
+
p,
|
|
620
699
|
n,
|
|
621
|
-
|
|
700
|
+
y
|
|
622
701
|
]);
|
|
623
|
-
return
|
|
702
|
+
return L(g != null, `<Router basename="${s}"> is not able to match the URL "${c}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`), g == null ? null : /* @__PURE__ */ l.createElement(b.Provider, { value: u }, /* @__PURE__ */ l.createElement(J.Provider, {
|
|
624
703
|
children: t,
|
|
625
|
-
value:
|
|
704
|
+
value: g
|
|
626
705
|
}));
|
|
627
706
|
}
|
|
628
|
-
var
|
|
707
|
+
var Xr = class extends l.Component {
|
|
629
708
|
constructor(e) {
|
|
630
709
|
super(e), this.state = { error: null };
|
|
631
710
|
}
|
|
@@ -648,62 +727,62 @@ var Fr = class extends l.Component {
|
|
|
648
727
|
this.props.onError?.(o), Object.defineProperty(r, "_error", { get: () => o });
|
|
649
728
|
}));
|
|
650
729
|
if (a === 2 && !t) throw n._error;
|
|
651
|
-
if (a === 2) return /* @__PURE__ */ l.createElement(
|
|
730
|
+
if (a === 2) return /* @__PURE__ */ l.createElement(ce.Provider, {
|
|
652
731
|
value: n,
|
|
653
732
|
children: t
|
|
654
733
|
});
|
|
655
|
-
if (a === 1) return /* @__PURE__ */ l.createElement(
|
|
734
|
+
if (a === 1) return /* @__PURE__ */ l.createElement(ce.Provider, {
|
|
656
735
|
value: n,
|
|
657
736
|
children: e
|
|
658
737
|
});
|
|
659
738
|
throw n;
|
|
660
739
|
}
|
|
661
|
-
},
|
|
662
|
-
function
|
|
740
|
+
}, K = "get", Q = "application/x-www-form-urlencoded";
|
|
741
|
+
function re(e) {
|
|
663
742
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
664
743
|
}
|
|
665
|
-
function
|
|
666
|
-
return
|
|
744
|
+
function rr(e) {
|
|
745
|
+
return re(e) && e.tagName.toLowerCase() === "button";
|
|
667
746
|
}
|
|
668
|
-
function
|
|
669
|
-
return
|
|
747
|
+
function nr(e) {
|
|
748
|
+
return re(e) && e.tagName.toLowerCase() === "form";
|
|
670
749
|
}
|
|
671
|
-
function
|
|
672
|
-
return
|
|
750
|
+
function ar(e) {
|
|
751
|
+
return re(e) && e.tagName.toLowerCase() === "input";
|
|
673
752
|
}
|
|
674
|
-
function
|
|
753
|
+
function or(e) {
|
|
675
754
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
676
755
|
}
|
|
677
|
-
function
|
|
678
|
-
return e.button === 0 && (!t || t === "_self") && !
|
|
756
|
+
function lr(e, t) {
|
|
757
|
+
return e.button === 0 && (!t || t === "_self") && !or(e);
|
|
679
758
|
}
|
|
680
|
-
var
|
|
681
|
-
function
|
|
682
|
-
if (
|
|
683
|
-
new FormData(document.createElement("form"), 0),
|
|
759
|
+
var q = null;
|
|
760
|
+
function ir() {
|
|
761
|
+
if (q === null) try {
|
|
762
|
+
new FormData(document.createElement("form"), 0), q = !1;
|
|
684
763
|
} catch {
|
|
685
|
-
|
|
764
|
+
q = !0;
|
|
686
765
|
}
|
|
687
|
-
return
|
|
766
|
+
return q;
|
|
688
767
|
}
|
|
689
|
-
var
|
|
768
|
+
var sr = /* @__PURE__ */ new Set([
|
|
690
769
|
"application/x-www-form-urlencoded",
|
|
691
770
|
"multipart/form-data",
|
|
692
771
|
"text/plain"
|
|
693
772
|
]);
|
|
694
|
-
function
|
|
695
|
-
return e != null && !
|
|
773
|
+
function ue(e) {
|
|
774
|
+
return e != null && !sr.has(e) ? (L(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Q}"`), null) : e;
|
|
696
775
|
}
|
|
697
|
-
function
|
|
776
|
+
function ur(e, t) {
|
|
698
777
|
let r, n, a, o, i;
|
|
699
|
-
if (
|
|
778
|
+
if (nr(e)) {
|
|
700
779
|
let s = e.getAttribute("action");
|
|
701
|
-
n = s ? _(s, t) : null, r = e.getAttribute("method") ||
|
|
702
|
-
} else if (
|
|
780
|
+
n = s ? _(s, t) : null, r = e.getAttribute("method") || K, a = ue(e.getAttribute("enctype")) || Q, o = new FormData(e);
|
|
781
|
+
} else if (rr(e) || ar(e) && (e.type === "submit" || e.type === "image")) {
|
|
703
782
|
let s = e.form;
|
|
704
783
|
if (s == null) throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
705
784
|
let u = e.getAttribute("formaction") || s.getAttribute("action");
|
|
706
|
-
if (n = u ? _(u, t) : null, r = e.getAttribute("formmethod") || s.getAttribute("method") ||
|
|
785
|
+
if (n = u ? _(u, t) : null, r = e.getAttribute("formmethod") || s.getAttribute("method") || K, a = ue(e.getAttribute("formenctype")) || ue(s.getAttribute("enctype")) || Q, o = new FormData(s, e), !ir()) {
|
|
707
786
|
let { name: c, type: f, value: d } = e;
|
|
708
787
|
if (f === "image") {
|
|
709
788
|
let h = c ? `${c}.` : "";
|
|
@@ -711,8 +790,8 @@ function qt(e, t) {
|
|
|
711
790
|
} else c && o.append(c, d);
|
|
712
791
|
}
|
|
713
792
|
} else {
|
|
714
|
-
if (
|
|
715
|
-
r =
|
|
793
|
+
if (re(e)) throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
794
|
+
r = K, n = null, a = Q, i = e;
|
|
716
795
|
}
|
|
717
796
|
return o && a === "text/plain" && (i = o, o = void 0), {
|
|
718
797
|
action: n,
|
|
@@ -722,24 +801,24 @@ function qt(e, t) {
|
|
|
722
801
|
body: i
|
|
723
802
|
};
|
|
724
803
|
}
|
|
725
|
-
var
|
|
804
|
+
var Kr = Object.getOwnPropertyNames(Object.prototype).sort().join("\0"), cr = {
|
|
726
805
|
"&": "\\u0026",
|
|
727
806
|
">": "\\u003e",
|
|
728
807
|
"<": "\\u003c",
|
|
729
808
|
"\u2028": "\\u2028",
|
|
730
809
|
"\u2029": "\\u2029"
|
|
731
|
-
},
|
|
810
|
+
}, dr = /[&><\u2028\u2029]/g;
|
|
732
811
|
function be(e) {
|
|
733
|
-
return e.replace(
|
|
812
|
+
return e.replace(dr, (t) => cr[t]);
|
|
734
813
|
}
|
|
735
|
-
function
|
|
814
|
+
function ne(e, t) {
|
|
736
815
|
if (e === !1 || e === null || typeof e > "u") throw new Error(t);
|
|
737
816
|
}
|
|
738
|
-
function
|
|
817
|
+
function Ke(e, t, r, n) {
|
|
739
818
|
let a = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
|
|
740
|
-
return r ? a.pathname.endsWith("/") ? a.pathname = `${a.pathname}_.${n}` : a.pathname = `${a.pathname}.${n}` : a.pathname === "/" ? a.pathname = `_root.${n}` : t && _(a.pathname, t) === "/" ? a.pathname = `${
|
|
819
|
+
return r ? a.pathname.endsWith("/") ? a.pathname = `${a.pathname}_.${n}` : a.pathname = `${a.pathname}.${n}` : a.pathname === "/" ? a.pathname = `_root.${n}` : t && _(a.pathname, t) === "/" ? a.pathname = `${W(t)}/_root.${n}` : a.pathname = `${W(a.pathname)}.${n}`, a;
|
|
741
820
|
}
|
|
742
|
-
async function
|
|
821
|
+
async function fr(e, t) {
|
|
743
822
|
if (e.id in t) return t[e.id];
|
|
744
823
|
try {
|
|
745
824
|
let r = await import(
|
|
@@ -753,21 +832,21 @@ async function Qt(e, t) {
|
|
|
753
832
|
});
|
|
754
833
|
}
|
|
755
834
|
}
|
|
756
|
-
function
|
|
835
|
+
function hr(e) {
|
|
757
836
|
return e != null && typeof e.page == "string";
|
|
758
837
|
}
|
|
759
|
-
function
|
|
838
|
+
function mr(e) {
|
|
760
839
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
761
840
|
}
|
|
762
|
-
async function
|
|
763
|
-
return
|
|
841
|
+
async function pr(e, t, r) {
|
|
842
|
+
return vr((await Promise.all(e.map(async (n) => {
|
|
764
843
|
let a = t.routes[n.route.id];
|
|
765
844
|
if (a) {
|
|
766
|
-
let o = await
|
|
845
|
+
let o = await fr(a, r);
|
|
767
846
|
return o.links ? o.links() : [];
|
|
768
847
|
}
|
|
769
848
|
return [];
|
|
770
|
-
}))).flat(1).filter(
|
|
849
|
+
}))).flat(1).filter(mr).filter((n) => n.rel === "stylesheet" || n.rel === "preload").map((n) => n.rel === "stylesheet" ? {
|
|
771
850
|
...n,
|
|
772
851
|
rel: "prefetch",
|
|
773
852
|
as: "style"
|
|
@@ -776,7 +855,7 @@ async function tr(e, t, r) {
|
|
|
776
855
|
rel: "prefetch"
|
|
777
856
|
}));
|
|
778
857
|
}
|
|
779
|
-
function
|
|
858
|
+
function Le(e, t, r, n, a, o) {
|
|
780
859
|
let i = (u, c) => r[c] ? u.route.id !== r[c].route.id : !0, s = (u, c) => r[c].pathname !== u.pathname || r[c].route.path?.endsWith("*") && r[c].params["*"] !== u.params["*"];
|
|
781
860
|
return o === "assets" ? t.filter((u, c) => i(u, c) || s(u, c)) : o === "data" ? t.filter((u, c) => {
|
|
782
861
|
let f = n.routes[u.route.id];
|
|
@@ -795,42 +874,42 @@ function xe(e, t, r, n, a, o) {
|
|
|
795
874
|
return !0;
|
|
796
875
|
}) : [];
|
|
797
876
|
}
|
|
798
|
-
function
|
|
799
|
-
return
|
|
877
|
+
function Qe(e, t, { includeHydrateFallback: r } = {}) {
|
|
878
|
+
return gr(e.map((n) => {
|
|
800
879
|
let a = t.routes[n.route.id];
|
|
801
880
|
if (!a) return [];
|
|
802
881
|
let o = [a.module];
|
|
803
882
|
return a.clientActionModule && (o = o.concat(a.clientActionModule)), a.clientLoaderModule && (o = o.concat(a.clientLoaderModule)), r && a.hydrateFallbackModule && (o = o.concat(a.hydrateFallbackModule)), a.imports && (o = o.concat(a.imports)), o;
|
|
804
883
|
}).flat(1));
|
|
805
884
|
}
|
|
806
|
-
function
|
|
885
|
+
function gr(e) {
|
|
807
886
|
return [...new Set(e)];
|
|
808
887
|
}
|
|
809
|
-
function
|
|
888
|
+
function yr(e) {
|
|
810
889
|
let t = {}, r = Object.keys(e).sort();
|
|
811
890
|
for (let n of r) t[n] = e[n];
|
|
812
891
|
return t;
|
|
813
892
|
}
|
|
814
|
-
function
|
|
893
|
+
function vr(e, t) {
|
|
815
894
|
let r = /* @__PURE__ */ new Set(), n = new Set(t);
|
|
816
895
|
return e.reduce((a, o) => {
|
|
817
|
-
if (t && !
|
|
818
|
-
let i = JSON.stringify(
|
|
896
|
+
if (t && !hr(o) && o.as === "script" && o.href && n.has(o.href)) return a;
|
|
897
|
+
let i = JSON.stringify(yr(o));
|
|
819
898
|
return r.has(i) || (r.add(i), a.push({
|
|
820
899
|
key: i,
|
|
821
900
|
link: o
|
|
822
901
|
})), a;
|
|
823
902
|
}, []);
|
|
824
903
|
}
|
|
825
|
-
function
|
|
904
|
+
function wr(e, t) {
|
|
826
905
|
return e.mode === "lazy" && t === !0;
|
|
827
906
|
}
|
|
828
|
-
function
|
|
907
|
+
function Rr({ sri: e, ...t }, r) {
|
|
829
908
|
let n = new Set(r.state.matches.map((s) => s.route.id)), a = r.state.location.pathname.split("/").filter(Boolean), o = ["/"];
|
|
830
909
|
for (a.pop(); a.length > 0; )
|
|
831
910
|
o.push(`/${a.join("/")}`), a.pop();
|
|
832
911
|
o.forEach((s) => {
|
|
833
|
-
let u =
|
|
912
|
+
let u = ke(r.routes, s, r.basename || "/", !1, r.branches);
|
|
834
913
|
u && u.forEach((c) => n.add(c.route.id));
|
|
835
914
|
});
|
|
836
915
|
let i = [...n].reduce((s, u) => Object.assign(s, { [u]: t.routes[u] }), {});
|
|
@@ -840,46 +919,46 @@ function lr({ sri: e, ...t }, r) {
|
|
|
840
919
|
sri: e ? !0 : void 0
|
|
841
920
|
};
|
|
842
921
|
}
|
|
843
|
-
function
|
|
844
|
-
let e = l.useContext(
|
|
845
|
-
return
|
|
922
|
+
function ae() {
|
|
923
|
+
let e = l.useContext(H);
|
|
924
|
+
return ne(e, "You must render this element inside a <DataRouterContext.Provider> element"), e;
|
|
846
925
|
}
|
|
847
|
-
function
|
|
848
|
-
let e = l.useContext(
|
|
849
|
-
return
|
|
926
|
+
function Ze() {
|
|
927
|
+
let e = l.useContext(j);
|
|
928
|
+
return ne(e, "You must render this element inside a <DataRouterStateContext.Provider> element"), e;
|
|
850
929
|
}
|
|
851
|
-
var
|
|
852
|
-
|
|
853
|
-
function
|
|
854
|
-
let e = l.useContext(
|
|
855
|
-
return
|
|
930
|
+
var oe = l.createContext(void 0);
|
|
931
|
+
oe.displayName = "FrameworkContext";
|
|
932
|
+
function D() {
|
|
933
|
+
let e = l.useContext(oe);
|
|
934
|
+
return ne(e, "You must render this element inside a <HydratedRouter> element"), e;
|
|
856
935
|
}
|
|
857
|
-
function
|
|
858
|
-
let r = l.useContext(
|
|
936
|
+
function Er(e, t) {
|
|
937
|
+
let r = l.useContext(oe), [n, a] = l.useState(!1), [o, i] = l.useState(!1), { onFocus: s, onBlur: u, onMouseEnter: c, onMouseLeave: f, onTouchStart: d } = t, h = l.useRef(null);
|
|
859
938
|
l.useEffect(() => {
|
|
860
939
|
if (e === "render" && i(!0), e === "viewport") {
|
|
861
|
-
let
|
|
862
|
-
|
|
863
|
-
i(
|
|
940
|
+
let g = (w) => {
|
|
941
|
+
w.forEach((v) => {
|
|
942
|
+
i(v.isIntersecting);
|
|
864
943
|
});
|
|
865
|
-
}, m = new IntersectionObserver(
|
|
944
|
+
}, m = new IntersectionObserver(g, { threshold: 0.5 });
|
|
866
945
|
return h.current && m.observe(h.current), () => {
|
|
867
946
|
m.disconnect();
|
|
868
947
|
};
|
|
869
948
|
}
|
|
870
949
|
}, [e]), l.useEffect(() => {
|
|
871
950
|
if (n) {
|
|
872
|
-
let
|
|
951
|
+
let g = setTimeout(() => {
|
|
873
952
|
i(!0);
|
|
874
953
|
}, 100);
|
|
875
954
|
return () => {
|
|
876
|
-
clearTimeout(
|
|
955
|
+
clearTimeout(g);
|
|
877
956
|
};
|
|
878
957
|
}
|
|
879
958
|
}, [n]);
|
|
880
|
-
let
|
|
959
|
+
let p = () => {
|
|
881
960
|
a(!0);
|
|
882
|
-
},
|
|
961
|
+
}, y = () => {
|
|
883
962
|
a(!1), i(!1);
|
|
884
963
|
};
|
|
885
964
|
return r ? e !== "intent" ? [
|
|
@@ -890,11 +969,11 @@ function ir(e, t) {
|
|
|
890
969
|
o,
|
|
891
970
|
h,
|
|
892
971
|
{
|
|
893
|
-
onFocus:
|
|
894
|
-
onBlur:
|
|
895
|
-
onMouseEnter:
|
|
896
|
-
onMouseLeave:
|
|
897
|
-
onTouchStart:
|
|
972
|
+
onFocus: U(s, p),
|
|
973
|
+
onBlur: U(u, y),
|
|
974
|
+
onMouseEnter: U(c, p),
|
|
975
|
+
onMouseLeave: U(f, y),
|
|
976
|
+
onTouchStart: U(d, p)
|
|
898
977
|
}
|
|
899
978
|
] : [
|
|
900
979
|
!1,
|
|
@@ -902,40 +981,43 @@ function ir(e, t) {
|
|
|
902
981
|
{}
|
|
903
982
|
];
|
|
904
983
|
}
|
|
905
|
-
function
|
|
984
|
+
function U(e, t) {
|
|
906
985
|
return (r) => {
|
|
907
986
|
e && e(r), r.defaultPrevented || t(r);
|
|
908
987
|
};
|
|
909
988
|
}
|
|
910
|
-
function
|
|
911
|
-
if (r && !
|
|
989
|
+
function Sr(e, t, r) {
|
|
990
|
+
if (r && !te) return [e[0]];
|
|
912
991
|
if (t) {
|
|
913
992
|
let n = e.findIndex((a) => t[a.route.id] !== void 0);
|
|
914
993
|
return e.slice(0, n + 1);
|
|
915
994
|
}
|
|
916
995
|
return e;
|
|
917
996
|
}
|
|
918
|
-
function
|
|
919
|
-
let r =
|
|
920
|
-
|
|
997
|
+
function xr({ page: e, ...t }) {
|
|
998
|
+
let r = je(), { nonce: n } = D(), { router: a } = ae(), o = l.useMemo(() => $e(a.routes, e, a.basename), [
|
|
999
|
+
a.routes,
|
|
921
1000
|
e,
|
|
922
|
-
|
|
1001
|
+
a.basename
|
|
923
1002
|
]);
|
|
924
|
-
return
|
|
1003
|
+
return o ? (t.nonce == null && n && (t = {
|
|
1004
|
+
...t,
|
|
1005
|
+
nonce: n
|
|
1006
|
+
}), r ? /* @__PURE__ */ l.createElement(br, {
|
|
925
1007
|
page: e,
|
|
926
|
-
matches:
|
|
1008
|
+
matches: o,
|
|
927
1009
|
...t
|
|
928
|
-
}) : /* @__PURE__ */ l.createElement(
|
|
1010
|
+
}) : /* @__PURE__ */ l.createElement(Lr, {
|
|
929
1011
|
page: e,
|
|
930
|
-
matches:
|
|
1012
|
+
matches: o,
|
|
931
1013
|
...t
|
|
932
|
-
}) : null;
|
|
1014
|
+
})) : null;
|
|
933
1015
|
}
|
|
934
|
-
function
|
|
935
|
-
let { manifest: t, routeModules: r } =
|
|
1016
|
+
function Cr(e) {
|
|
1017
|
+
let { manifest: t, routeModules: r } = D(), [n, a] = l.useState([]);
|
|
936
1018
|
return l.useEffect(() => {
|
|
937
1019
|
let o = !1;
|
|
938
|
-
return
|
|
1020
|
+
return pr(e, t, r).then((i) => {
|
|
939
1021
|
o || a(i);
|
|
940
1022
|
}), () => {
|
|
941
1023
|
o = !0;
|
|
@@ -946,15 +1028,15 @@ function cr(e) {
|
|
|
946
1028
|
r
|
|
947
1029
|
]), n;
|
|
948
1030
|
}
|
|
949
|
-
function
|
|
950
|
-
let n =
|
|
1031
|
+
function br({ page: e, matches: t, ...r }) {
|
|
1032
|
+
let n = P(), { future: a } = D(), { basename: o } = ae(), i = l.useMemo(() => {
|
|
951
1033
|
if (e === n.pathname + n.search + n.hash) return [];
|
|
952
|
-
let s =
|
|
1034
|
+
let s = Ke(e, o, a.v8_trailingSlashAwareDataRequests, "rsc"), u = !1, c = [];
|
|
953
1035
|
for (let f of t) typeof f.route.shouldRevalidate == "function" ? u = !0 : c.push(f.route.id);
|
|
954
1036
|
return u && c.length > 0 && s.searchParams.set("_routes", c.join(",")), [s.pathname + s.search];
|
|
955
1037
|
}, [
|
|
956
1038
|
o,
|
|
957
|
-
a.
|
|
1039
|
+
a.v8_trailingSlashAwareDataRequests,
|
|
958
1040
|
e,
|
|
959
1041
|
n,
|
|
960
1042
|
t
|
|
@@ -967,14 +1049,14 @@ function dr({ page: e, matches: t, ...r }) {
|
|
|
967
1049
|
...r
|
|
968
1050
|
})));
|
|
969
1051
|
}
|
|
970
|
-
function
|
|
971
|
-
let n =
|
|
1052
|
+
function Lr({ page: e, matches: t, ...r }) {
|
|
1053
|
+
let n = P(), { future: a, manifest: o, routeModules: i } = D(), { basename: s } = ae(), { loaderData: u, matches: c } = Ze(), f = l.useMemo(() => Le(e, t, c, o, n, "data"), [
|
|
972
1054
|
e,
|
|
973
1055
|
t,
|
|
974
1056
|
c,
|
|
975
1057
|
o,
|
|
976
1058
|
n
|
|
977
|
-
]), d = l.useMemo(() =>
|
|
1059
|
+
]), d = l.useMemo(() => Le(e, t, c, o, n, "assets"), [
|
|
978
1060
|
e,
|
|
979
1061
|
t,
|
|
980
1062
|
c,
|
|
@@ -982,16 +1064,16 @@ function fr({ page: e, matches: t, ...r }) {
|
|
|
982
1064
|
n
|
|
983
1065
|
]), h = l.useMemo(() => {
|
|
984
1066
|
if (e === n.pathname + n.search + n.hash) return [];
|
|
985
|
-
let
|
|
986
|
-
if (t.forEach((
|
|
987
|
-
let
|
|
988
|
-
!
|
|
989
|
-
}),
|
|
990
|
-
let
|
|
991
|
-
return m &&
|
|
1067
|
+
let g = /* @__PURE__ */ new Set(), m = !1;
|
|
1068
|
+
if (t.forEach((v) => {
|
|
1069
|
+
let R = o.routes[v.route.id];
|
|
1070
|
+
!R || !R.hasLoader || (!f.some((C) => C.route.id === v.route.id) && v.route.id in u && i[v.route.id]?.shouldRevalidate || R.hasClientLoader ? m = !0 : g.add(v.route.id));
|
|
1071
|
+
}), g.size === 0) return [];
|
|
1072
|
+
let w = Ke(e, s, a.v8_trailingSlashAwareDataRequests, "data");
|
|
1073
|
+
return m && g.size > 0 && w.searchParams.set("_routes", t.filter((v) => g.has(v.route.id)).map((v) => v.route.id).join(",")), [w.pathname + w.search];
|
|
992
1074
|
}, [
|
|
993
1075
|
s,
|
|
994
|
-
a.
|
|
1076
|
+
a.v8_trailingSlashAwareDataRequests,
|
|
995
1077
|
u,
|
|
996
1078
|
n,
|
|
997
1079
|
o,
|
|
@@ -999,124 +1081,127 @@ function fr({ page: e, matches: t, ...r }) {
|
|
|
999
1081
|
t,
|
|
1000
1082
|
e,
|
|
1001
1083
|
i
|
|
1002
|
-
]),
|
|
1003
|
-
return /* @__PURE__ */ l.createElement(l.Fragment, null, h.map((
|
|
1004
|
-
key:
|
|
1084
|
+
]), p = l.useMemo(() => Qe(d, o), [d, o]), y = Cr(d);
|
|
1085
|
+
return /* @__PURE__ */ l.createElement(l.Fragment, null, h.map((g) => /* @__PURE__ */ l.createElement("link", {
|
|
1086
|
+
key: g,
|
|
1005
1087
|
rel: "prefetch",
|
|
1006
1088
|
as: "fetch",
|
|
1007
|
-
href:
|
|
1089
|
+
href: g,
|
|
1008
1090
|
...r
|
|
1009
|
-
})),
|
|
1010
|
-
key:
|
|
1091
|
+
})), p.map((g) => /* @__PURE__ */ l.createElement("link", {
|
|
1092
|
+
key: g,
|
|
1011
1093
|
rel: "modulepreload",
|
|
1012
|
-
href:
|
|
1094
|
+
href: g,
|
|
1013
1095
|
...r
|
|
1014
|
-
})),
|
|
1015
|
-
key:
|
|
1096
|
+
})), y.map(({ key: g, link: m }) => /* @__PURE__ */ l.createElement("link", {
|
|
1097
|
+
key: g,
|
|
1016
1098
|
nonce: r.nonce,
|
|
1017
1099
|
...m,
|
|
1018
1100
|
crossOrigin: m.crossOrigin ?? r.crossOrigin
|
|
1019
1101
|
})));
|
|
1020
1102
|
}
|
|
1021
|
-
var
|
|
1022
|
-
function
|
|
1023
|
-
|
|
1103
|
+
var te = !1;
|
|
1104
|
+
function Pr() {
|
|
1105
|
+
te = !0;
|
|
1024
1106
|
}
|
|
1025
|
-
function
|
|
1026
|
-
let { manifest: t, serverHandoffString: r, isSpaMode: n, renderMeta: a, routeDiscovery: o, ssr: i } =
|
|
1027
|
-
|
|
1028
|
-
|
|
1107
|
+
function $r(e) {
|
|
1108
|
+
let { manifest: t, serverHandoffString: r, isSpaMode: n, renderMeta: a, routeDiscovery: o, ssr: i, nonce: s } = D(), { router: u, static: c, staticContext: f } = ae(), { matches: d } = Ze(), h = je(), p = wr(o, i);
|
|
1109
|
+
e.nonce == null && s && (e = {
|
|
1110
|
+
...e,
|
|
1111
|
+
nonce: s
|
|
1112
|
+
}), a && (a.didRenderScripts = !0);
|
|
1113
|
+
let y = Sr(d, null, n);
|
|
1029
1114
|
l.useEffect(() => {
|
|
1030
|
-
|
|
1115
|
+
Pr();
|
|
1031
1116
|
}, []);
|
|
1032
1117
|
let g = l.useMemo(() => {
|
|
1033
|
-
if (
|
|
1034
|
-
let
|
|
1035
|
-
${y.map((
|
|
1036
|
-
let
|
|
1037
|
-
|
|
1038
|
-
let { clientActionModule:
|
|
1039
|
-
...L ? [{
|
|
1040
|
-
module: L,
|
|
1041
|
-
varName: `${E}_clientAction`
|
|
1042
|
-
}] : [],
|
|
1118
|
+
if (h) return null;
|
|
1119
|
+
let v = f ? `window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());` : " ", R = c ? `${t.hmr?.runtime ? `import ${JSON.stringify(t.hmr.runtime)};` : ""}${p ? "" : `import ${JSON.stringify(t.url)}`};
|
|
1120
|
+
${y.map((C, S) => {
|
|
1121
|
+
let x = `route${S}`, $ = t.routes[C.route.id];
|
|
1122
|
+
ne($, `Route ${C.route.id} not found in manifest`);
|
|
1123
|
+
let { clientActionModule: O, clientLoaderModule: M, clientMiddlewareModule: F, hydrateFallbackModule: Y, module: G } = $, A = [
|
|
1043
1124
|
...O ? [{
|
|
1044
1125
|
module: O,
|
|
1045
|
-
varName: `${
|
|
1126
|
+
varName: `${x}_clientAction`
|
|
1046
1127
|
}] : [],
|
|
1047
1128
|
...M ? [{
|
|
1048
1129
|
module: M,
|
|
1049
|
-
varName: `${
|
|
1130
|
+
varName: `${x}_clientLoader`
|
|
1050
1131
|
}] : [],
|
|
1051
|
-
...
|
|
1052
|
-
module:
|
|
1053
|
-
varName: `${
|
|
1132
|
+
...F ? [{
|
|
1133
|
+
module: F,
|
|
1134
|
+
varName: `${x}_clientMiddleware`
|
|
1135
|
+
}] : [],
|
|
1136
|
+
...Y ? [{
|
|
1137
|
+
module: Y,
|
|
1138
|
+
varName: `${x}_HydrateFallback`
|
|
1054
1139
|
}] : [],
|
|
1055
1140
|
{
|
|
1056
|
-
module:
|
|
1057
|
-
varName: `${
|
|
1141
|
+
module: G,
|
|
1142
|
+
varName: `${x}_main`
|
|
1058
1143
|
}
|
|
1059
1144
|
];
|
|
1060
|
-
return A.length === 1 ? `import * as ${
|
|
1061
|
-
`), `const ${
|
|
1145
|
+
return A.length === 1 ? `import * as ${x} from ${JSON.stringify(G)};` : [A.map((I) => `import * as ${I.varName} from "${I.module}";`).join(`
|
|
1146
|
+
`), `const ${x} = {${A.map((I) => `...${I.varName}`).join(",")}};`].join(`
|
|
1062
1147
|
`);
|
|
1063
1148
|
}).join(`
|
|
1064
1149
|
`)}
|
|
1065
|
-
${
|
|
1066
|
-
window.__reactRouterRouteModules = {${y.map((
|
|
1150
|
+
${p ? `window.__reactRouterManifest = ${JSON.stringify(Rr(t, u), null, 2)};` : ""}
|
|
1151
|
+
window.__reactRouterRouteModules = {${y.map((C, S) => `${JSON.stringify(C.route.id)}:route${S}`).join(",")}};
|
|
1067
1152
|
|
|
1068
1153
|
import(${JSON.stringify(t.entry.module)});` : " ";
|
|
1069
1154
|
return /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("script", {
|
|
1070
1155
|
...e,
|
|
1071
1156
|
suppressHydrationWarning: !0,
|
|
1072
|
-
dangerouslySetInnerHTML: { __html:
|
|
1157
|
+
dangerouslySetInnerHTML: { __html: v },
|
|
1073
1158
|
type: void 0
|
|
1074
1159
|
}), /* @__PURE__ */ l.createElement("script", {
|
|
1075
1160
|
...e,
|
|
1076
1161
|
suppressHydrationWarning: !0,
|
|
1077
|
-
dangerouslySetInnerHTML: { __html:
|
|
1162
|
+
dangerouslySetInnerHTML: { __html: R },
|
|
1078
1163
|
type: "module",
|
|
1079
1164
|
async: !0
|
|
1080
1165
|
}));
|
|
1081
|
-
}, []),
|
|
1082
|
-
return
|
|
1166
|
+
}, []), m = te || h ? [] : [...new Set(t.entry.imports.concat(Qe(y, t, { includeHydrateFallback: !0 })))], w = typeof t.sri == "object" ? t.sri : {};
|
|
1167
|
+
return Zt(!h, "The <Scripts /> element is a no-op when using RSC and can be safely removed."), te || h ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, typeof t.sri == "object" ? /* @__PURE__ */ l.createElement("script", {
|
|
1083
1168
|
...e,
|
|
1084
1169
|
"rr-importmap": "",
|
|
1085
1170
|
type: "importmap",
|
|
1086
1171
|
suppressHydrationWarning: !0,
|
|
1087
|
-
dangerouslySetInnerHTML: { __html: JSON.stringify({ integrity:
|
|
1088
|
-
}) : null,
|
|
1172
|
+
dangerouslySetInnerHTML: { __html: JSON.stringify({ integrity: w }) }
|
|
1173
|
+
}) : null, p ? null : /* @__PURE__ */ l.createElement("link", {
|
|
1089
1174
|
rel: "modulepreload",
|
|
1090
1175
|
href: t.url,
|
|
1091
1176
|
crossOrigin: e.crossOrigin,
|
|
1092
|
-
integrity:
|
|
1177
|
+
integrity: w[t.url],
|
|
1178
|
+
nonce: e.nonce,
|
|
1093
1179
|
suppressHydrationWarning: !0
|
|
1094
1180
|
}), /* @__PURE__ */ l.createElement("link", {
|
|
1095
1181
|
rel: "modulepreload",
|
|
1096
1182
|
href: t.entry.module,
|
|
1097
1183
|
crossOrigin: e.crossOrigin,
|
|
1098
|
-
integrity:
|
|
1184
|
+
integrity: w[t.entry.module],
|
|
1185
|
+
nonce: e.nonce,
|
|
1099
1186
|
suppressHydrationWarning: !0
|
|
1100
|
-
}),
|
|
1101
|
-
key:
|
|
1187
|
+
}), m.map((v) => /* @__PURE__ */ l.createElement("link", {
|
|
1188
|
+
key: v,
|
|
1102
1189
|
rel: "modulepreload",
|
|
1103
|
-
href:
|
|
1190
|
+
href: v,
|
|
1104
1191
|
crossOrigin: e.crossOrigin,
|
|
1105
|
-
integrity:
|
|
1192
|
+
integrity: w[v],
|
|
1193
|
+
nonce: e.nonce,
|
|
1106
1194
|
suppressHydrationWarning: !0
|
|
1107
1195
|
})), g);
|
|
1108
1196
|
}
|
|
1109
|
-
function
|
|
1110
|
-
return [...new Set(e)];
|
|
1111
|
-
}
|
|
1112
|
-
function yr(...e) {
|
|
1197
|
+
function kr(...e) {
|
|
1113
1198
|
return (t) => {
|
|
1114
1199
|
e.forEach((r) => {
|
|
1115
1200
|
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
1116
1201
|
});
|
|
1117
1202
|
};
|
|
1118
1203
|
}
|
|
1119
|
-
var
|
|
1204
|
+
var Qr = class extends l.Component {
|
|
1120
1205
|
constructor(e) {
|
|
1121
1206
|
super(e), this.state = {
|
|
1122
1207
|
error: e.error || null,
|
|
@@ -1136,27 +1221,31 @@ var Hr = class extends l.Component {
|
|
|
1136
1221
|
};
|
|
1137
1222
|
}
|
|
1138
1223
|
render() {
|
|
1139
|
-
return this.state.error ? /* @__PURE__ */ l.createElement(
|
|
1224
|
+
return this.state.error ? /* @__PURE__ */ l.createElement(_r, {
|
|
1140
1225
|
error: this.state.error,
|
|
1141
1226
|
isOutsideRemixApp: !0
|
|
1142
1227
|
}) : this.props.children;
|
|
1143
1228
|
}
|
|
1144
1229
|
};
|
|
1145
|
-
function
|
|
1230
|
+
function _r({ error: e, isOutsideRemixApp: t }) {
|
|
1231
|
+
let { nonce: r } = D();
|
|
1146
1232
|
console.error(e);
|
|
1147
|
-
let
|
|
1233
|
+
let n = /* @__PURE__ */ l.createElement("script", {
|
|
1234
|
+
nonce: r,
|
|
1235
|
+
dangerouslySetInnerHTML: { __html: `
|
|
1148
1236
|
console.log(
|
|
1149
1237
|
"💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
|
|
1150
1238
|
);
|
|
1151
|
-
` }
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1239
|
+
` }
|
|
1240
|
+
});
|
|
1241
|
+
if (De(e)) return /* @__PURE__ */ l.createElement(Pe, { title: "Unhandled Thrown Response!" }, /* @__PURE__ */ l.createElement("h1", { style: { fontSize: "24px" } }, e.status, " ", e.statusText), n);
|
|
1242
|
+
let a;
|
|
1243
|
+
if (e instanceof Error) a = e;
|
|
1155
1244
|
else {
|
|
1156
|
-
let
|
|
1157
|
-
|
|
1245
|
+
let o = e == null ? "Unknown Error" : typeof e == "object" && "toString" in e ? e.toString() : JSON.stringify(e);
|
|
1246
|
+
a = new Error(o);
|
|
1158
1247
|
}
|
|
1159
|
-
return /* @__PURE__ */ l.createElement(
|
|
1248
|
+
return /* @__PURE__ */ l.createElement(Pe, {
|
|
1160
1249
|
title: "Application Error!",
|
|
1161
1250
|
isOutsideRemixApp: t
|
|
1162
1251
|
}, /* @__PURE__ */ l.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ l.createElement("pre", { style: {
|
|
@@ -1164,137 +1253,137 @@ function gr({ error: e, isOutsideRemixApp: t }) {
|
|
|
1164
1253
|
background: "hsla(10, 50%, 50%, 0.1)",
|
|
1165
1254
|
color: "red",
|
|
1166
1255
|
overflow: "auto"
|
|
1167
|
-
} },
|
|
1256
|
+
} }, a.stack), n);
|
|
1168
1257
|
}
|
|
1169
|
-
function
|
|
1170
|
-
let { routeModules: a } =
|
|
1258
|
+
function Pe({ title: e, renderScripts: t, isOutsideRemixApp: r, children: n }) {
|
|
1259
|
+
let { routeModules: a } = D();
|
|
1171
1260
|
return a.root?.Layout && !r ? n : /* @__PURE__ */ l.createElement("html", { lang: "en" }, /* @__PURE__ */ l.createElement("head", null, /* @__PURE__ */ l.createElement("meta", { charSet: "utf-8" }), /* @__PURE__ */ l.createElement("meta", {
|
|
1172
1261
|
name: "viewport",
|
|
1173
1262
|
content: "width=device-width,initial-scale=1,viewport-fit=cover"
|
|
1174
1263
|
}), /* @__PURE__ */ l.createElement("title", null, e)), /* @__PURE__ */ l.createElement("body", null, /* @__PURE__ */ l.createElement("main", { style: {
|
|
1175
1264
|
fontFamily: "system-ui, sans-serif",
|
|
1176
1265
|
padding: "2rem"
|
|
1177
|
-
} }, n, t ? /* @__PURE__ */ l.createElement(
|
|
1266
|
+
} }, n, t ? /* @__PURE__ */ l.createElement($r, null) : null)));
|
|
1178
1267
|
}
|
|
1179
|
-
var
|
|
1268
|
+
var Or = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1180
1269
|
try {
|
|
1181
|
-
|
|
1270
|
+
Or && (window.__reactRouterVersion = "7.18.5");
|
|
1182
1271
|
} catch {
|
|
1183
1272
|
}
|
|
1184
|
-
function
|
|
1273
|
+
function Tr({ basename: e, children: t, history: r, useTransitions: n }) {
|
|
1185
1274
|
let [a, o] = l.useState({
|
|
1186
1275
|
action: r.action,
|
|
1187
1276
|
location: r.location
|
|
1188
1277
|
}), i = l.useCallback((s) => {
|
|
1189
1278
|
n === !1 ? o(s) : l.startTransition(() => o(s));
|
|
1190
1279
|
}, [n]);
|
|
1191
|
-
return l.useLayoutEffect(() => r.listen(i), [r, i]), /* @__PURE__ */ l.createElement(
|
|
1280
|
+
return l.useLayoutEffect(() => r.listen(i), [r, i]), /* @__PURE__ */ l.createElement(tr, {
|
|
1192
1281
|
basename: e,
|
|
1193
1282
|
children: t,
|
|
1194
1283
|
location: a.location,
|
|
1195
1284
|
navigationType: a.action,
|
|
1196
1285
|
navigator: r,
|
|
1197
|
-
|
|
1286
|
+
useTransitions: n
|
|
1198
1287
|
});
|
|
1199
1288
|
}
|
|
1200
|
-
|
|
1201
|
-
var
|
|
1202
|
-
let { basename: m, navigator:
|
|
1203
|
-
f =
|
|
1204
|
-
let
|
|
1289
|
+
Tr.displayName = "unstable_HistoryRouter";
|
|
1290
|
+
var et = l.forwardRef(function({ onClick: t, discover: r = "render", prefetch: n = "none", relative: a, reloadDocument: o, replace: i, mask: s, state: u, target: c, to: f, preventScrollReset: d, viewTransition: h, defaultShouldRevalidate: p, ...y }, g) {
|
|
1291
|
+
let { basename: m, navigator: w, useTransitions: v } = l.useContext(b), R = typeof f == "string" && he.test(f), C = Ae(f, m);
|
|
1292
|
+
f = C.to;
|
|
1293
|
+
let S = At(f, { relative: a }), x = P(), $ = null;
|
|
1205
1294
|
if (s) {
|
|
1206
|
-
let N =
|
|
1207
|
-
m !== "/" && (N.pathname = N.pathname === "/" ? m : k([m, N.pathname])),
|
|
1295
|
+
let N = me(s, [], x.mask ? x.mask.pathname : "/", !0);
|
|
1296
|
+
m !== "/" && (N.pathname = N.pathname === "/" ? m : k([m, N.pathname])), $ = w.createHref(N);
|
|
1208
1297
|
}
|
|
1209
|
-
let [O, M,
|
|
1298
|
+
let [O, M, F] = Er(n, y), Y = Fr(f, {
|
|
1210
1299
|
replace: i,
|
|
1211
|
-
|
|
1300
|
+
mask: s,
|
|
1212
1301
|
state: u,
|
|
1213
1302
|
target: c,
|
|
1214
1303
|
preventScrollReset: d,
|
|
1215
1304
|
relative: a,
|
|
1216
1305
|
viewTransition: h,
|
|
1217
|
-
|
|
1218
|
-
|
|
1306
|
+
defaultShouldRevalidate: p,
|
|
1307
|
+
useTransitions: v
|
|
1219
1308
|
});
|
|
1220
|
-
function
|
|
1221
|
-
t && t(N), N.defaultPrevented ||
|
|
1309
|
+
function G(N) {
|
|
1310
|
+
t && t(N), N.defaultPrevented || Y(N);
|
|
1222
1311
|
}
|
|
1223
|
-
let
|
|
1224
|
-
...
|
|
1225
|
-
...
|
|
1226
|
-
href: (
|
|
1227
|
-
onClick:
|
|
1228
|
-
ref:
|
|
1312
|
+
let A = !(C.isExternal || o), I = /* @__PURE__ */ l.createElement("a", {
|
|
1313
|
+
...y,
|
|
1314
|
+
...F,
|
|
1315
|
+
href: (A ? $ : void 0) || C.absoluteURL || S,
|
|
1316
|
+
onClick: A ? G : t,
|
|
1317
|
+
ref: kr(g, M),
|
|
1229
1318
|
target: c,
|
|
1230
|
-
"data-discover": !
|
|
1319
|
+
"data-discover": !R && r === "render" ? "true" : void 0
|
|
1231
1320
|
});
|
|
1232
|
-
return O && !
|
|
1321
|
+
return O && !R ? /* @__PURE__ */ l.createElement(l.Fragment, null, I, /* @__PURE__ */ l.createElement(xr, { page: S })) : I;
|
|
1233
1322
|
});
|
|
1234
|
-
|
|
1235
|
-
var
|
|
1236
|
-
let d =
|
|
1237
|
-
r || (
|
|
1238
|
-
const
|
|
1239
|
-
let
|
|
1240
|
-
isActive:
|
|
1241
|
-
isPending:
|
|
1323
|
+
et.displayName = "Link";
|
|
1324
|
+
var Mr = l.forwardRef(function({ "aria-current": t = "page", caseSensitive: r = !1, className: n = "", end: a = !1, style: o, to: i, viewTransition: s, children: u, ...c }, f) {
|
|
1325
|
+
let d = z(i, { relative: c.relative }), h = P(), p = l.useContext(j), { navigator: y, basename: g } = l.useContext(b), m = p != null && Jr(d) && s === !0, w = y.encodeLocation ? y.encodeLocation(d).pathname : d.pathname, v = h.pathname, R = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
|
|
1326
|
+
r || (v = v.toLowerCase(), R = R ? R.toLowerCase() : null, w = w.toLowerCase()), R && g && (R = _(R, g) || R);
|
|
1327
|
+
const C = w !== "/" && w.endsWith("/") ? w.length - 1 : w.length;
|
|
1328
|
+
let S = v === w || !a && v.startsWith(w) && v.charAt(C) === "/", x = R != null && (R === w || !a && R.startsWith(w) && R.charAt(w.length) === "/"), $ = {
|
|
1329
|
+
isActive: S,
|
|
1330
|
+
isPending: x,
|
|
1242
1331
|
isTransitioning: m
|
|
1243
|
-
}, O =
|
|
1244
|
-
typeof n == "function" ? M = n(
|
|
1332
|
+
}, O = S ? t : void 0, M;
|
|
1333
|
+
typeof n == "function" ? M = n($) : M = [
|
|
1245
1334
|
n,
|
|
1246
|
-
|
|
1247
|
-
|
|
1335
|
+
S ? "active" : null,
|
|
1336
|
+
x ? "pending" : null,
|
|
1248
1337
|
m ? "transitioning" : null
|
|
1249
1338
|
].filter(Boolean).join(" ");
|
|
1250
|
-
let
|
|
1251
|
-
return /* @__PURE__ */ l.createElement(
|
|
1339
|
+
let F = typeof o == "function" ? o($) : o;
|
|
1340
|
+
return /* @__PURE__ */ l.createElement(et, {
|
|
1252
1341
|
...c,
|
|
1253
1342
|
"aria-current": O,
|
|
1254
1343
|
className: M,
|
|
1255
1344
|
ref: f,
|
|
1256
|
-
style:
|
|
1345
|
+
style: F,
|
|
1257
1346
|
to: i,
|
|
1258
1347
|
viewTransition: s
|
|
1259
|
-
}, typeof u == "function" ? u(
|
|
1348
|
+
}, typeof u == "function" ? u($) : u);
|
|
1260
1349
|
});
|
|
1261
|
-
|
|
1262
|
-
var
|
|
1263
|
-
let {
|
|
1264
|
-
if (u && u(
|
|
1265
|
-
|
|
1266
|
-
let
|
|
1350
|
+
Mr.displayName = "NavLink";
|
|
1351
|
+
var Nr = l.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: r, reloadDocument: n, replace: a, state: o, method: i = K, action: s, onSubmit: u, relative: c, preventScrollReset: f, viewTransition: d, defaultShouldRevalidate: h, ...p }, y) => {
|
|
1352
|
+
let { useTransitions: g } = l.useContext(b), m = Hr(), w = Ur(s, { relative: c }), v = i.toLowerCase() === "get" ? "get" : "post", R = typeof s == "string" && he.test(s), C = (S) => {
|
|
1353
|
+
if (u && u(S), S.defaultPrevented) return;
|
|
1354
|
+
S.preventDefault();
|
|
1355
|
+
let x = S.nativeEvent.submitter, $ = x?.getAttribute("formmethod") || i, O = () => m(x || S.currentTarget, {
|
|
1267
1356
|
fetcherKey: t,
|
|
1268
|
-
method:
|
|
1357
|
+
method: $,
|
|
1269
1358
|
navigate: r,
|
|
1270
1359
|
replace: a,
|
|
1271
1360
|
state: o,
|
|
1272
1361
|
relative: c,
|
|
1273
1362
|
preventScrollReset: f,
|
|
1274
1363
|
viewTransition: d,
|
|
1275
|
-
|
|
1364
|
+
defaultShouldRevalidate: h
|
|
1276
1365
|
});
|
|
1277
|
-
|
|
1366
|
+
g && r !== !1 ? l.startTransition(() => O()) : O();
|
|
1278
1367
|
};
|
|
1279
1368
|
return /* @__PURE__ */ l.createElement("form", {
|
|
1280
|
-
ref:
|
|
1281
|
-
method:
|
|
1282
|
-
action:
|
|
1283
|
-
onSubmit: n ? u :
|
|
1284
|
-
...
|
|
1285
|
-
"data-discover": !
|
|
1369
|
+
ref: y,
|
|
1370
|
+
method: v,
|
|
1371
|
+
action: w,
|
|
1372
|
+
onSubmit: n ? u : C,
|
|
1373
|
+
...p,
|
|
1374
|
+
"data-discover": !R && e === "render" ? "true" : void 0
|
|
1286
1375
|
});
|
|
1287
1376
|
});
|
|
1288
|
-
|
|
1289
|
-
function
|
|
1290
|
-
let n = l.useContext(
|
|
1291
|
-
|
|
1377
|
+
Nr.displayName = "Form";
|
|
1378
|
+
function Ir({ getKey: e, storageKey: t, ...r }) {
|
|
1379
|
+
let n = l.useContext(oe), { basename: a } = l.useContext(b), o = P(), i = qe();
|
|
1380
|
+
Br({
|
|
1292
1381
|
getKey: e,
|
|
1293
1382
|
storageKey: t
|
|
1294
1383
|
});
|
|
1295
1384
|
let s = l.useMemo(() => {
|
|
1296
1385
|
if (!n || !e) return null;
|
|
1297
|
-
let c =
|
|
1386
|
+
let c = fe(o, i, a, e);
|
|
1298
1387
|
return c !== o.key ? c : null;
|
|
1299
1388
|
}, []);
|
|
1300
1389
|
if (!n || n.isSpaMode) return null;
|
|
@@ -1310,39 +1399,39 @@ function Sr({ getKey: e, storageKey: t, ...r }) {
|
|
|
1310
1399
|
console.error(d), sessionStorage.removeItem(c);
|
|
1311
1400
|
}
|
|
1312
1401
|
}).toString();
|
|
1313
|
-
return /* @__PURE__ */ l.createElement("script", {
|
|
1402
|
+
return r.nonce == null && n?.nonce && (r.nonce = n.nonce), /* @__PURE__ */ l.createElement("script", {
|
|
1314
1403
|
...r,
|
|
1315
1404
|
suppressHydrationWarning: !0,
|
|
1316
|
-
dangerouslySetInnerHTML: { __html: `(${u})(${be(JSON.stringify(t ||
|
|
1405
|
+
dangerouslySetInnerHTML: { __html: `(${u})(${be(JSON.stringify(t || de))}, ${be(JSON.stringify(s))})` }
|
|
1317
1406
|
});
|
|
1318
1407
|
}
|
|
1319
|
-
|
|
1320
|
-
function
|
|
1408
|
+
Ir.displayName = "ScrollRestoration";
|
|
1409
|
+
function tt(e) {
|
|
1321
1410
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1322
1411
|
}
|
|
1323
|
-
function
|
|
1324
|
-
let t = l.useContext(
|
|
1325
|
-
return
|
|
1326
|
-
}
|
|
1327
|
-
function
|
|
1328
|
-
let t = l.useContext(
|
|
1329
|
-
return
|
|
1330
|
-
}
|
|
1331
|
-
function
|
|
1332
|
-
let f =
|
|
1333
|
-
return l.useCallback((
|
|
1334
|
-
if (
|
|
1335
|
-
|
|
1336
|
-
let
|
|
1337
|
-
replace:
|
|
1338
|
-
|
|
1412
|
+
function we(e) {
|
|
1413
|
+
let t = l.useContext(H);
|
|
1414
|
+
return E(t, tt(e)), t;
|
|
1415
|
+
}
|
|
1416
|
+
function Dr(e) {
|
|
1417
|
+
let t = l.useContext(j);
|
|
1418
|
+
return E(t, tt(e)), t;
|
|
1419
|
+
}
|
|
1420
|
+
function Fr(e, { target: t, replace: r, mask: n, state: a, preventScrollReset: o, relative: i, viewTransition: s, defaultShouldRevalidate: u, useTransitions: c } = {}) {
|
|
1421
|
+
let f = Wt(), d = P(), h = z(e, { relative: i });
|
|
1422
|
+
return l.useCallback((p) => {
|
|
1423
|
+
if (lr(p, t)) {
|
|
1424
|
+
p.preventDefault();
|
|
1425
|
+
let y = r !== void 0 ? r : Z(d) === Z(h), g = () => f(e, {
|
|
1426
|
+
replace: y,
|
|
1427
|
+
mask: n,
|
|
1339
1428
|
state: a,
|
|
1340
1429
|
preventScrollReset: o,
|
|
1341
1430
|
relative: i,
|
|
1342
1431
|
viewTransition: s,
|
|
1343
|
-
|
|
1432
|
+
defaultShouldRevalidate: u
|
|
1344
1433
|
});
|
|
1345
|
-
c ? l.startTransition(() =>
|
|
1434
|
+
c ? l.startTransition(() => g()) : g();
|
|
1346
1435
|
}
|
|
1347
1436
|
}, [
|
|
1348
1437
|
d,
|
|
@@ -1360,21 +1449,24 @@ function xr(e, { target: t, replace: r, unstable_mask: n, state: a, preventScrol
|
|
|
1360
1449
|
c
|
|
1361
1450
|
]);
|
|
1362
1451
|
}
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1365
|
-
let { router: e } =
|
|
1452
|
+
var Ar = 0, Wr = () => `__${String(++Ar)}__`;
|
|
1453
|
+
function Hr() {
|
|
1454
|
+
let { router: e } = we("useSubmit"), { basename: t } = l.useContext(b), r = qt(), n = e.fetch, a = e.navigate;
|
|
1366
1455
|
return l.useCallback(async (o, i = {}) => {
|
|
1367
|
-
let { action: s, method: u, encType: c, formData: f, body: d } =
|
|
1368
|
-
i.navigate === !1
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1456
|
+
let { action: s, method: u, encType: c, formData: f, body: d } = ur(o, t);
|
|
1457
|
+
if (i.navigate === !1) {
|
|
1458
|
+
let h = i.fetcherKey || Wr();
|
|
1459
|
+
await n(h, r, i.action || s, {
|
|
1460
|
+
defaultShouldRevalidate: i.defaultShouldRevalidate,
|
|
1461
|
+
preventScrollReset: i.preventScrollReset,
|
|
1462
|
+
formData: f,
|
|
1463
|
+
body: d,
|
|
1464
|
+
formMethod: i.method || u,
|
|
1465
|
+
formEncType: i.encType || c,
|
|
1466
|
+
flushSync: i.flushSync
|
|
1467
|
+
});
|
|
1468
|
+
} else await a(i.action || s, {
|
|
1469
|
+
defaultShouldRevalidate: i.defaultShouldRevalidate,
|
|
1378
1470
|
preventScrollReset: i.preventScrollReset,
|
|
1379
1471
|
formData: f,
|
|
1380
1472
|
body: d,
|
|
@@ -1393,10 +1485,10 @@ function Pr() {
|
|
|
1393
1485
|
r
|
|
1394
1486
|
]);
|
|
1395
1487
|
}
|
|
1396
|
-
function
|
|
1488
|
+
function Ur(e, { relative: t } = {}) {
|
|
1397
1489
|
let { basename: r } = l.useContext(b), n = l.useContext(T);
|
|
1398
|
-
|
|
1399
|
-
let [a] = n.matches.slice(-1), o = { ...
|
|
1490
|
+
E(n, "useFormAction must be used inside a RouteContext");
|
|
1491
|
+
let [a] = n.matches.slice(-1), o = { ...z(e || ".", { relative: t }) }, i = P();
|
|
1400
1492
|
if (e == null) {
|
|
1401
1493
|
o.search = i.search;
|
|
1402
1494
|
let s = new URLSearchParams(o.search), u = s.getAll("index");
|
|
@@ -1406,29 +1498,29 @@ function Lr(e, { relative: t } = {}) {
|
|
|
1406
1498
|
o.search = c ? `?${c}` : "";
|
|
1407
1499
|
}
|
|
1408
1500
|
}
|
|
1409
|
-
return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : k([r, o.pathname])),
|
|
1501
|
+
return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : k([r, o.pathname])), Z(o);
|
|
1410
1502
|
}
|
|
1411
|
-
var
|
|
1412
|
-
function
|
|
1503
|
+
var de = "react-router-scroll-positions", X = {};
|
|
1504
|
+
function fe(e, t, r, n) {
|
|
1413
1505
|
let a = null;
|
|
1414
1506
|
return n && (r !== "/" ? a = n({
|
|
1415
1507
|
...e,
|
|
1416
1508
|
pathname: _(e.pathname, r) || e.pathname
|
|
1417
1509
|
}, t) : a = n(e, t)), a == null && (a = e.key), a;
|
|
1418
1510
|
}
|
|
1419
|
-
function
|
|
1420
|
-
let { router: r } =
|
|
1511
|
+
function Br({ getKey: e, storageKey: t } = {}) {
|
|
1512
|
+
let { router: r } = we("useScrollRestoration"), { restoreScrollPosition: n, preventScrollReset: a } = Dr("useScrollRestoration"), { basename: o } = l.useContext(b), i = P(), s = qe(), u = Xt();
|
|
1421
1513
|
l.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
1422
1514
|
window.history.scrollRestoration = "auto";
|
|
1423
|
-
}), []),
|
|
1515
|
+
}), []), jr(l.useCallback(() => {
|
|
1424
1516
|
if (u.state === "idle") {
|
|
1425
|
-
let c =
|
|
1426
|
-
|
|
1517
|
+
let c = fe(i, s, o, e);
|
|
1518
|
+
X[c] = window.scrollY;
|
|
1427
1519
|
}
|
|
1428
1520
|
try {
|
|
1429
|
-
sessionStorage.setItem(t ||
|
|
1521
|
+
sessionStorage.setItem(t || de, JSON.stringify(X));
|
|
1430
1522
|
} catch (c) {
|
|
1431
|
-
|
|
1523
|
+
L(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${c}).`);
|
|
1432
1524
|
}
|
|
1433
1525
|
window.history.scrollRestoration = "auto";
|
|
1434
1526
|
}, [
|
|
@@ -1440,12 +1532,12 @@ function kr({ getKey: e, storageKey: t } = {}) {
|
|
|
1440
1532
|
t
|
|
1441
1533
|
])), typeof document < "u" && (l.useLayoutEffect(() => {
|
|
1442
1534
|
try {
|
|
1443
|
-
let c = sessionStorage.getItem(t ||
|
|
1444
|
-
c && (
|
|
1535
|
+
let c = sessionStorage.getItem(t || de);
|
|
1536
|
+
c && (X = JSON.parse(c));
|
|
1445
1537
|
} catch {
|
|
1446
1538
|
}
|
|
1447
1539
|
}, [t]), l.useLayoutEffect(() => {
|
|
1448
|
-
let c = r?.enableScrollRestoration(
|
|
1540
|
+
let c = r?.enableScrollRestoration(X, () => window.scrollY, e ? (f, d) => fe(f, d, o, e) : void 0);
|
|
1449
1541
|
return () => c && c();
|
|
1450
1542
|
}, [
|
|
1451
1543
|
r,
|
|
@@ -1466,7 +1558,7 @@ function kr({ getKey: e, storageKey: t } = {}) {
|
|
|
1466
1558
|
}
|
|
1467
1559
|
}
|
|
1468
1560
|
} catch {
|
|
1469
|
-
|
|
1561
|
+
L(!1, `"${i.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
|
|
1470
1562
|
}
|
|
1471
1563
|
a !== !0 && window.scrollTo(0, 0);
|
|
1472
1564
|
}
|
|
@@ -1476,7 +1568,7 @@ function kr({ getKey: e, storageKey: t } = {}) {
|
|
|
1476
1568
|
a
|
|
1477
1569
|
]));
|
|
1478
1570
|
}
|
|
1479
|
-
function
|
|
1571
|
+
function jr(e, t) {
|
|
1480
1572
|
let { capture: r } = t || {};
|
|
1481
1573
|
l.useEffect(() => {
|
|
1482
1574
|
let n = r != null ? { capture: r } : void 0;
|
|
@@ -1485,22 +1577,22 @@ function _r(e, t) {
|
|
|
1485
1577
|
};
|
|
1486
1578
|
}, [e, r]);
|
|
1487
1579
|
}
|
|
1488
|
-
function
|
|
1489
|
-
let r = l.useContext(
|
|
1490
|
-
|
|
1491
|
-
let { basename: n } =
|
|
1580
|
+
function Jr(e, { relative: t } = {}) {
|
|
1581
|
+
let r = l.useContext(Je);
|
|
1582
|
+
E(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
1583
|
+
let { basename: n } = we("useViewTransitionState"), a = z(e, { relative: t });
|
|
1492
1584
|
if (!r.isTransitioning) return !1;
|
|
1493
1585
|
let o = _(r.currentLocation.pathname, n) || r.currentLocation.pathname, i = _(r.nextLocation.pathname, n) || r.nextLocation.pathname;
|
|
1494
|
-
return
|
|
1586
|
+
return ee(a.pathname, i) != null || ee(a.pathname, o) != null;
|
|
1495
1587
|
}
|
|
1496
|
-
var
|
|
1588
|
+
var Zr = () => {
|
|
1497
1589
|
try {
|
|
1498
|
-
return
|
|
1590
|
+
return P(), { isInsideRouter: !0 };
|
|
1499
1591
|
} catch {
|
|
1500
1592
|
return { isInsideRouter: !1 };
|
|
1501
1593
|
}
|
|
1502
1594
|
};
|
|
1503
1595
|
export {
|
|
1504
|
-
|
|
1505
|
-
|
|
1596
|
+
et as n,
|
|
1597
|
+
Zr as t
|
|
1506
1598
|
};
|