@konstructio/ui 0.1.2-alpha.8 → 0.1.2-alpha.81
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/dist/AdditionalOptions-Cx9wU01w.js +37 -0
- package/dist/AlertDialogTrigger-C-NMEoDd.js +146 -0
- package/dist/Breadcrumb-C95aOsYk.js +77 -0
- package/dist/CalendarPanel.css +1 -0
- package/dist/Checkbox-Cn0UWlk8.js +239 -0
- package/dist/Combination-DUTBK_qM.js +486 -0
- package/dist/CommandInput-BKv-EZ7T.js +76 -0
- package/dist/Counter-DtQu_T-D.js +191 -0
- package/dist/DayPicker-CrrmX-H8.js +2884 -0
- package/dist/DropdownButton-B2XkEqPt.js +92 -0
- package/dist/FlagSelectorList-C17nmEBM.js +597 -0
- package/dist/ImageUpload-BzXjGZ2w.js +181 -0
- package/dist/Input-GBMxM3Z7.js +188 -0
- package/dist/Loading-DKqxR-oV.js +16 -0
- package/dist/Modal-DbTe8PVX.js +76 -0
- package/dist/Spinner-CyuXAaC8.js +41 -0
- package/dist/StepIndicatorContent-D5z1Ziqg.js +30 -0
- package/dist/Switch-DjbC0A8y.js +136 -0
- package/dist/Toast-D7GhS4fm.js +483 -0
- package/dist/Wrapper-BYC8shQP.js +1057 -0
- package/dist/Wrapper-CjUokv72.js +110 -0
- package/dist/Wrapper-DEJ-hyar.js +161 -0
- package/dist/assets/icons/components/Accounts.js +23 -0
- package/dist/assets/icons/components/Activity.js +23 -0
- package/dist/assets/icons/components/AddChart.js +20 -0
- package/dist/assets/icons/components/AlertOutline.js +20 -0
- package/dist/assets/icons/components/AppRepo.js +20 -0
- package/dist/assets/icons/components/Apps.js +20 -0
- package/dist/assets/icons/components/Archives.js +20 -0
- package/dist/assets/icons/components/ArrowDown.js +20 -0
- package/dist/assets/icons/components/ArrowLeft.js +20 -0
- package/dist/assets/icons/components/ArrowRight.js +20 -0
- package/dist/assets/icons/components/ArrowUp.js +20 -0
- package/dist/assets/icons/components/BarChart.js +30 -0
- package/dist/assets/icons/components/Billing.js +36 -0
- package/dist/assets/icons/components/BookOpen.js +24 -0
- package/dist/assets/icons/components/CalendarMonth.js +20 -0
- package/dist/assets/icons/components/Check.js +20 -0
- package/dist/assets/icons/components/CheckCircleFilled.js +30 -0
- package/dist/assets/icons/components/CheckCircleOutline.js +20 -0
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +20 -0
- package/dist/assets/icons/components/ClockAlert.js +20 -0
- package/dist/assets/icons/components/ClockOutline.js +20 -0
- package/dist/assets/icons/components/Close.js +20 -0
- package/dist/assets/icons/components/Cloud.js +17 -0
- package/dist/assets/icons/components/CloudLockOutline.js +20 -0
- package/dist/assets/icons/components/Clusters.js +30 -0
- package/dist/assets/icons/components/CogOutline.js +20 -0
- package/dist/assets/icons/components/Compute.js +20 -0
- package/dist/assets/icons/components/Copy.js +20 -0
- package/dist/assets/icons/components/Cpu.js +27 -0
- package/dist/assets/icons/components/Cube.js +20 -0
- package/dist/assets/icons/components/Dashboard.js +23 -0
- package/dist/assets/icons/components/Database.js +33 -0
- package/dist/assets/icons/components/Datacenter.js +20 -0
- package/dist/assets/icons/components/Delete.js +20 -0
- package/dist/assets/icons/components/Dns.js +23 -0
- package/dist/assets/icons/components/DollarSign.js +22 -0
- package/dist/assets/icons/components/Download.js +20 -0
- package/dist/assets/icons/components/Edit.js +20 -0
- package/dist/assets/icons/components/Ellipses.js +20 -0
- package/dist/assets/icons/components/Environments.js +22 -0
- package/dist/assets/icons/components/Error.js +20 -0
- package/dist/assets/icons/components/ErrorOutline.js +20 -0
- package/dist/assets/icons/components/Exclamation.js +23 -0
- package/dist/assets/icons/components/Firewall.js +23 -0
- package/dist/assets/icons/components/Git.js +20 -0
- package/dist/assets/icons/components/GitOpsCatalog.js +27 -0
- package/dist/assets/icons/components/GridView.js +17 -0
- package/dist/assets/icons/components/Help.js +26 -0
- package/dist/assets/icons/components/HideOutline.js +23 -0
- package/dist/assets/icons/components/Home.js +20 -0
- package/dist/assets/icons/components/Home2.js +23 -0
- package/dist/assets/icons/components/Id.js +20 -0
- package/dist/assets/icons/components/InfoCircle.js +30 -0
- package/dist/assets/icons/components/InformationOutline.js +20 -0
- package/dist/assets/icons/components/InvoiceList.js +20 -0
- package/dist/assets/icons/components/Key.js +20 -0
- package/dist/assets/icons/components/Konstruct.js +23 -0
- package/dist/assets/icons/components/Kubernetes.js +29 -0
- package/dist/assets/icons/components/LightBulb.js +29 -0
- package/dist/assets/icons/components/LoadBalancer.js +20 -0
- package/dist/assets/icons/components/Loader.js +20 -0
- package/dist/assets/icons/components/Network.js +20 -0
- package/dist/assets/icons/components/ObjectStorage.js +23 -0
- package/dist/assets/icons/components/Organization.js +20 -0
- package/dist/assets/icons/components/PagesStack.js +26 -0
- package/dist/assets/icons/components/Pageview.js +20 -0
- package/dist/assets/icons/components/People.js +20 -0
- package/dist/assets/icons/components/PhotoLibrary.js +20 -0
- package/dist/assets/icons/components/Pipeline.js +22 -0
- package/dist/assets/icons/components/Plus.js +20 -0
- package/dist/assets/icons/components/PowerSettings.js +20 -0
- package/dist/assets/icons/components/Preview.js +20 -0
- package/dist/assets/icons/components/PrivateRegion.js +20 -0
- package/dist/assets/icons/components/Quota.js +23 -0
- package/dist/assets/icons/components/ReceiptLong.js +17 -0
- package/dist/assets/icons/components/Refresh.js +20 -0
- package/dist/assets/icons/components/ReservedIp.js +20 -0
- package/dist/assets/icons/components/ScatterPlot.js +17 -0
- package/dist/assets/icons/components/Search.js +30 -24
- package/dist/assets/icons/components/Server.js +20 -0
- package/dist/assets/icons/components/SshKey.js +23 -0
- package/dist/assets/icons/components/Start.js +20 -0
- package/dist/assets/icons/components/TabNew.js +36 -0
- package/dist/assets/icons/components/TeamMembers.js +23 -0
- package/dist/assets/icons/components/Teams.js +20 -0
- package/dist/assets/icons/components/Upload.js +20 -0
- package/dist/assets/icons/components/Volume.js +60 -0
- package/dist/assets/icons/components/Warning.js +16 -18
- package/dist/assets/icons/components/WarningTriangle.js +20 -0
- package/dist/assets/icons/components/Webhook.js +44 -0
- package/dist/assets/icons/components/X.js +20 -0
- package/dist/assets/icons/components/index.js +182 -4
- package/dist/assets/icons/components/types.js +0 -0
- package/dist/assets/icons/index.js +184 -0
- package/dist/chevron-down-DgssmYWu.js +8 -0
- package/dist/chevron-left-DRJXef9g.js +8 -0
- package/dist/chevron-right-BooB_b7g.js +8 -0
- package/dist/chevron-up-DuS9MUNr.js +8 -0
- package/dist/chunk-D1xtDmiO.js +31 -0
- package/dist/{clsx-OuTLNxxd.js → clsx-kDhLfUq2.js} +1 -1
- package/dist/components/Alert/Alert.js +55 -45
- package/dist/components/Alert/Alert.variants.js +96 -66
- package/dist/components/AlertDialog/AlertDialog.js +70 -81
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -5
- package/dist/components/AlertDialog/components/index.js +2 -2
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +12 -7
- package/dist/components/Autocomplete/Autocomplete.js +58 -81
- package/dist/components/Autocomplete/Autocomplete.variants.js +2 -3
- package/dist/components/Autocomplete/components/List/List.js +30 -42
- package/dist/components/Autocomplete/components/List/List.variants.js +7 -7
- package/dist/components/Autocomplete/components/index.js +2 -2
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +30 -61
- package/dist/components/Autocomplete/hooks/useNavigationList.js +42 -54
- package/dist/components/Badge/Badge.js +61 -73
- package/dist/components/Badge/Badge.variants.js +90 -61
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -89
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -6
- package/dist/components/Breadcrumb/components/Item/Item.js +31 -45
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +52 -54
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
- package/dist/components/Button/Button.js +21 -39
- package/dist/components/Button/Button.variants.js +315 -270
- package/dist/components/ButtonGroup/ButtonGroup.js +88 -0
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +32 -0
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +60 -0
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +98 -0
- package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +4 -0
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +23 -0
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +4 -0
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +18 -0
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/index.js +4 -0
- package/dist/components/ButtonGroup/components/index.js +8 -0
- package/dist/components/ButtonGroup/hooks/index.js +4 -0
- package/dist/components/ButtonGroup/hooks/useButtonGroup.js +54 -0
- package/dist/components/Card/Card.js +20 -32
- package/dist/components/Card/Card.variants.js +42 -46
- package/dist/components/Checkbox/Checkbox.js +2 -353
- package/dist/components/Checkbox/Checkbox.variants.js +60 -43
- package/dist/components/Command/Command.js +28 -37
- package/dist/components/Command/Command.variants.js +3 -3
- package/dist/components/Command/components/Command.js +13 -5
- package/dist/components/Command/components/CommandEmpty.js +10 -13
- package/dist/components/Command/components/CommandGroup.js +8 -14
- package/dist/components/Command/components/CommandInput.js +2 -82
- package/dist/components/Command/components/CommandItem.js +16 -25
- package/dist/components/Command/components/CommandList.js +9 -12
- package/dist/components/Command/components/CommandSeparator.js +9 -12
- package/dist/components/Command/components/CommandShortcut.js +8 -17
- package/dist/components/Command/components/DialogContent.js +19 -28
- package/dist/components/Command/components/DialogOverlay.js +11 -17
- package/dist/components/Command/components/index.js +16 -16
- package/dist/components/Command/contexts/Command.context.js +1 -1
- package/dist/components/Command/contexts/Command.provider.js +15 -21
- package/dist/components/Command/contexts/index.js +2 -2
- package/dist/components/Counter/Counter.js +5 -0
- package/dist/components/Counter/Counter.variants.js +57 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +79 -0
- package/dist/components/DateRangePicker/DateRangePicker.variants.js +25 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +80 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +56 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +10 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +38 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +185 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +22 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +88 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +12 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +4 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +12 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +21 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +144 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +108 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +11 -0
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +64 -0
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +35 -0
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +45 -0
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +45 -0
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +6 -0
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +4 -0
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +181 -0
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +47 -0
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +24 -0
- package/dist/components/DateRangePicker/components/index.js +8 -0
- package/dist/components/DateRangePicker/constants/index.js +4 -0
- package/dist/components/DateRangePicker/constants/presets.js +25 -0
- package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +5 -0
- package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +10 -0
- package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +119 -0
- package/dist/components/DateRangePicker/contexts/index.js +8 -0
- package/dist/components/DateRangePicker/utils/disabled-dates.js +27 -0
- package/dist/components/DateRangePicker/utils/index.js +22 -0
- package/dist/components/DateRangePicker/utils/presets.js +34 -0
- package/dist/components/DateRangePicker/utils/validation.js +67 -0
- package/dist/components/Datepicker/DatePicker.js +47 -2687
- package/dist/components/Datepicker/DatePicker.variants.js +3 -3
- package/dist/components/Divider/Divider.js +6 -6
- package/dist/components/Divider/Divider.variants.js +9 -11
- package/dist/components/Drawer/Drawer.js +76 -0
- package/dist/components/Drawer/Drawer.variants.js +78 -0
- package/dist/components/Drawer/components/Body/Body.js +15 -0
- package/dist/components/Drawer/components/Body/index.js +4 -0
- package/dist/components/Drawer/components/Footer/Footer.js +15 -0
- package/dist/components/Drawer/components/Footer/index.js +4 -0
- package/dist/components/Drawer/components/Header/Header.js +16 -0
- package/dist/components/Drawer/components/Header/index.js +4 -0
- package/dist/components/Drawer/components/index.js +8 -0
- package/dist/components/Drawer/constants/index.js +9 -0
- package/dist/components/Drawer/contexts/Drawer.context.js +6 -0
- package/dist/components/Drawer/contexts/index.js +5 -0
- package/dist/components/Drawer/hooks/index.js +4 -0
- package/dist/components/Drawer/hooks/useDrawer.js +62 -0
- package/dist/components/DropdownButton/DropdownButton.js +2 -133
- package/dist/components/Filter/Filter.js +32 -18
- package/dist/components/Filter/Filter.variants.js +14 -9
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +52 -70
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +73 -92
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +42 -70
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +49 -84
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +63 -0
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +58 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +19 -27
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +76 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +54 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +84 -0
- package/dist/components/Filter/components/index.js +11 -5
- package/dist/components/Filter/contexts/filter.context.js +5 -0
- package/dist/components/Filter/contexts/filter.hook.js +10 -0
- package/dist/components/Filter/contexts/filter.provider.js +9 -0
- package/dist/components/Filter/contexts/index.js +8 -0
- package/dist/components/Filter/events/index.js +4 -8
- package/dist/components/Filter/utils/index.js +4 -0
- package/dist/components/ImageUpload/ImageUpload.js +4 -0
- package/dist/components/ImageUpload/ImageUpload.variants.js +92 -0
- package/dist/components/Input/Input.js +2 -205
- package/dist/components/Input/Input.variants.js +48 -50
- package/dist/components/LineChart/LineChart.js +127 -0
- package/dist/components/Loading/Loading.js +2 -24
- package/dist/components/Loading/Loading.variants.js +2 -2
- package/dist/components/Modal/Modal.js +3 -8
- package/dist/components/Modal/components/Body/Body.js +8 -5
- package/dist/components/Modal/components/Footer/Footer.js +8 -5
- package/dist/components/Modal/components/Header/Header.js +7 -4
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -9
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +16 -13
- package/dist/components/Modal/components/index.js +8 -8
- package/dist/components/Modal/contexts/Modal.context.js +2 -4
- package/dist/components/Modal/contexts/Modal.provider.js +17 -20
- package/dist/components/Modal/contexts/index.js +2 -2
- package/dist/components/Modal/hooks/useModal.js +10 -10
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +4 -0
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +31 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +22 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +29 -0
- package/dist/components/MultiSelectDropdown/components/List/List.js +4 -0
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +25 -0
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +4 -0
- package/dist/components/MultiSelectDropdown/components/index.js +7 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +10 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +107 -0
- package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +23 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +14 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +39 -0
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +19 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +4 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +28 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +52 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +4 -0
- package/dist/components/PhoneNumberInput/components/index.js +6 -0
- package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +10 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +4 -0
- package/dist/components/PhoneNumberInput/utils/index.js +10 -0
- package/dist/components/PieChart/PieChart.js +41 -5130
- package/dist/components/ProgressBar/ProgressBar.js +30 -60
- package/dist/components/ProgressBar/ProgressBar.variants.js +25 -33
- package/dist/components/Radio/Radio.js +51 -92
- package/dist/components/Radio/Radio.variants.js +82 -84
- package/dist/components/RadioCard/RadioCard.js +14 -31
- package/dist/components/RadioCard/RadioCard.variants.js +3 -3
- package/dist/components/RadioCardGroup/RadioCardGroup.js +24 -42
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +8 -12
- package/dist/components/RadioGroup/RadioGroup.js +26 -47
- package/dist/components/RadioGroup/RadioGroup.variants.js +8 -12
- package/dist/components/Range/Range.js +48 -58
- package/dist/components/Range/Range.variants.js +35 -44
- package/dist/components/Select/Select.js +38 -0
- package/dist/components/Select/Select.variants.js +76 -0
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +4 -0
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +5 -0
- package/dist/components/Select/components/EmptyList.js +5 -0
- package/dist/components/Select/components/List/List.js +130 -0
- package/dist/components/Select/components/List/List.variants.js +46 -0
- package/dist/components/Select/components/ListItem/ListItem.js +64 -0
- package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +8 -7
- package/dist/components/Select/components/Wrapper.js +4 -0
- package/dist/components/Select/components/index.js +10 -0
- package/dist/components/Select/constants/index.js +6 -0
- package/dist/components/Select/constants/list.js +4 -0
- package/dist/components/Select/constants/pagination.js +4 -0
- package/dist/components/Select/contexts/index.js +6 -0
- package/dist/components/Select/contexts/select.context.js +36 -0
- package/dist/components/Select/contexts/select.hook.js +10 -0
- package/dist/components/Select/contexts/select.provider.js +48 -0
- package/dist/components/Select/hooks/useNavigationList.js +41 -0
- package/dist/components/Select/hooks/useSelect.js +67 -0
- package/dist/components/Sidebar/Sidebar.js +22 -21
- package/dist/components/Sidebar/Sidebar.variants.js +6 -6
- package/dist/components/Sidebar/components/Footer/Footer.js +9 -6
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +2 -2
- package/dist/components/Sidebar/components/Logo/Logo.js +7 -4
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +2 -2
- package/dist/components/Sidebar/components/Navigation/Navigation.js +13 -13
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +8 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +12 -22
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +6 -2
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +12 -23
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +33 -40
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +4 -4
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +2 -2
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -10
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +3 -3
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +31 -77
- package/dist/components/Sidebar/components/index.js +14 -14
- package/dist/components/Slider/Slider.js +39 -47
- package/dist/components/Slider/Slider.variants.js +36 -45
- package/dist/components/Spinner/Spinner.js +4 -0
- package/dist/components/Spinner/Spinner.variants.js +40 -0
- package/dist/components/Stepper/Stepper.js +48 -0
- package/dist/components/Stepper/Stepper.variants.js +319 -0
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +123 -0
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +17 -0
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +4 -0
- package/dist/components/Stepper/components/StepItem/StepItem.js +8 -0
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +72 -0
- package/dist/components/Stepper/constants/index.js +13 -0
- package/dist/components/Stepper/hooks/index.js +4 -0
- package/dist/components/Stepper/hooks/useStepItemLogic.js +24 -0
- package/dist/components/Stepper/utils/index.js +12 -0
- package/dist/components/Switch/Switch.js +2 -199
- package/dist/components/Switch/Switch.variants.js +20 -11
- package/dist/components/Table/Table.js +17 -24
- package/dist/components/Table/Table.variants.js +18 -25
- package/dist/components/Table/components/Body.js +8 -15
- package/dist/components/Table/components/Filter.js +13 -7
- package/dist/components/Table/components/Head.js +9 -16
- package/dist/components/Table/components/Row.js +14 -26
- package/dist/components/Table/components/index.js +6 -6
- package/dist/components/Tabs/Tabs.js +20 -20
- package/dist/components/Tabs/Tabs.variants.js +55 -71
- package/dist/components/Tabs/components/Content.js +12 -12
- package/dist/components/Tabs/components/List.js +16 -18
- package/dist/components/Tabs/components/Trigger.js +13 -15
- package/dist/components/Tabs/components/index.js +4 -4
- package/dist/components/Tag/Tag.js +25 -16
- package/dist/components/Tag/Tag.variants.js +32 -38
- package/dist/components/TagSelect/TagSelect.js +13 -5
- package/dist/components/TagSelect/TagSelect.variants.js +7 -6
- package/dist/components/TagSelect/components/Item/Item.js +13 -16
- package/dist/components/TagSelect/components/Item/Item.variants.js +21 -30
- package/dist/components/TagSelect/components/List/List.js +15 -7
- package/dist/components/TagSelect/components/List/List.variants.js +3 -3
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -133
- package/dist/components/TagSelect/components/index.js +6 -6
- package/dist/components/TagSelect/contexts/TagSelect.context.js +1 -1
- package/dist/components/TagSelect/contexts/TagSelect.hook.js +6 -7
- package/dist/components/TagSelect/contexts/TagSelect.provider.js +43 -59
- package/dist/components/TagSelect/contexts/index.js +4 -4
- package/dist/components/TagSelect/hooks/useTagSelect.js +13 -22
- package/dist/components/TextArea/TextArea.js +28 -34
- package/dist/components/TextArea/TextArea.variants.js +3 -3
- package/dist/components/TimePicker/TimePicker.js +14 -5
- package/dist/components/TimePicker/TimePicker.variants.js +32 -22
- package/dist/components/TimePicker/components/HoursList/HoursList.js +92 -81
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +52 -63
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +68 -51
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +136 -89
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +35 -45
- package/dist/components/TimePicker/components/index.js +2 -2
- package/dist/components/TimePicker/contexts/index.js +6 -6
- package/dist/components/TimePicker/contexts/time-picker.context.js +9 -2
- package/dist/components/TimePicker/contexts/time-picker.hook.js +4 -7
- package/dist/components/TimePicker/contexts/time-picker.provider.js +55 -42
- package/dist/components/TimePicker/utils/index.js +27 -4
- package/dist/components/Toast/Toast.js +3 -478
- package/dist/components/Toast/Toast.variants.js +21 -16
- package/dist/components/Tooltip/Tooltip.js +16 -32
- package/dist/components/Typography/Typography.js +15 -25
- package/dist/components/Typography/Typography.variants.js +72 -54
- package/dist/components/VirtualizedTable/VirtualizedTable.js +93 -111
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +2 -2
- package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -22
- package/dist/components/VirtualizedTable/assets/chevron-up.js +13 -22
- package/dist/components/VirtualizedTable/assets/index.js +4 -4
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +35 -44
- package/dist/components/VirtualizedTable/components/Body/Body.js +51 -22
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +97 -159
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +23 -31
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +31 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +110 -69
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +42 -45
- package/dist/components/VirtualizedTable/components/Header/Header.js +36 -78
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +29 -42
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +43 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +38 -1866
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +13 -0
- package/dist/components/VirtualizedTable/components/index.js +12 -10
- package/dist/components/VirtualizedTable/constants/index.js +3 -3
- package/dist/components/VirtualizedTable/constants/pagination.js +6 -1
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +13 -3
- package/dist/components/VirtualizedTable/contexts/table.hook.js +7 -8
- package/dist/components/VirtualizedTable/contexts/table.provider.js +2 -80
- package/dist/components/VirtualizedTable/events/index.js +24 -0
- package/dist/components/index.js +138 -96
- package/dist/components-DNFycJGm.js +120 -0
- package/dist/constants-D96yCePL.js +31 -0
- package/dist/contexts/index.js +6 -6
- package/dist/contexts/theme.context.js +2 -2
- package/dist/contexts/theme.hook.js +2 -2
- package/dist/contexts/theme.provider.js +2 -85
- package/dist/createLucideIcon-BVGkzDZC.js +42 -0
- package/dist/debounce-CzFlgg9h.js +86 -0
- package/dist/dist-B5SlrgYz.js +263 -0
- package/dist/{index-BZPx6jYI.js → dist-BL-H4bEw2.js} +5 -2
- package/dist/dist-BL8l9uRy.js +361 -0
- package/dist/dist-ByyYBtbL.js +27 -0
- package/dist/dist-C8r5DW7s.js +10 -0
- package/dist/dist-CBnErrr1.js +58 -0
- package/dist/dist-COY3FRYC.js +480 -0
- package/dist/dist-CSP6X06u.js +1701 -0
- package/dist/dist-DNSmoWJp.js +469 -0
- package/dist/dist-DRmqW28Z2.js +7479 -0
- package/dist/dist-DXJSck4j.js +74 -0
- package/dist/dist-DXXHfL7M.js +132 -0
- package/dist/dist-DZNdbzbm.js +120 -0
- package/dist/dist-DZcOdXgW.js +13 -0
- package/dist/dist-DeVdyMHW2.js +31 -0
- package/dist/{index-C1g_chDT.js → dist-DpqiA4Yn.js} +25 -28
- package/dist/dist-DstQl8xY.js +10 -0
- package/dist/dist-DtEbXv47.js +34 -0
- package/dist/dist-uVUx9i0a.js +223 -0
- package/dist/ellipsis-vertical-My0S9QY5.js +24 -0
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/useToggle.js +5 -8
- package/dist/icons.js +184 -0
- package/dist/index.d.ts +1 -944
- package/dist/index.js +152 -106
- package/dist/isObject--aYwGuhx.js +62 -0
- package/dist/lib/assets/icons/components/Accounts.d.ts +3 -0
- package/dist/lib/assets/icons/components/Activity.d.ts +3 -0
- package/dist/lib/assets/icons/components/AddChart.d.ts +3 -0
- package/dist/lib/assets/icons/components/AlertOutline.d.ts +3 -0
- package/dist/lib/assets/icons/components/AppRepo.d.ts +3 -0
- package/dist/lib/assets/icons/components/Apps.d.ts +3 -0
- package/dist/lib/assets/icons/components/Archives.d.ts +3 -0
- package/dist/lib/assets/icons/components/ArrowDown.d.ts +3 -0
- package/dist/lib/assets/icons/components/ArrowLeft.d.ts +3 -0
- package/dist/lib/assets/icons/components/ArrowRight.d.ts +3 -0
- package/dist/lib/assets/icons/components/ArrowUp.d.ts +3 -0
- package/dist/lib/assets/icons/components/BarChart.d.ts +3 -0
- package/dist/lib/assets/icons/components/Billing.d.ts +3 -0
- package/dist/lib/assets/icons/components/BookOpen.d.ts +3 -0
- package/dist/lib/assets/icons/components/CalendarMonth.d.ts +3 -0
- package/dist/lib/assets/icons/components/Check.d.ts +3 -0
- package/dist/lib/assets/icons/components/CheckCircleFilled.d.ts +3 -0
- package/dist/lib/assets/icons/components/CheckCircleOutline.d.ts +3 -0
- package/dist/lib/assets/icons/components/CheckboxMarkedCircleOutline.d.ts +3 -0
- package/dist/lib/assets/icons/components/ClockAlert.d.ts +3 -0
- package/dist/lib/assets/icons/components/ClockOutline.d.ts +3 -0
- package/dist/lib/assets/icons/components/Close.d.ts +3 -0
- package/dist/lib/assets/icons/components/Cloud.d.ts +3 -0
- package/dist/lib/assets/icons/components/CloudLockOutline.d.ts +3 -0
- package/dist/lib/assets/icons/components/Clusters.d.ts +3 -0
- package/dist/lib/assets/icons/components/CogOutline.d.ts +3 -0
- package/dist/lib/assets/icons/components/Compute.d.ts +3 -0
- package/dist/lib/assets/icons/components/Copy.d.ts +3 -0
- package/dist/lib/assets/icons/components/Cpu.d.ts +3 -0
- package/dist/lib/assets/icons/components/Cube.d.ts +3 -0
- package/dist/lib/assets/icons/components/Dashboard.d.ts +3 -0
- package/dist/lib/assets/icons/components/Database.d.ts +3 -0
- package/dist/lib/assets/icons/components/Datacenter.d.ts +3 -0
- package/dist/lib/assets/icons/components/Delete.d.ts +3 -0
- package/dist/lib/assets/icons/components/Dns.d.ts +3 -0
- package/dist/lib/assets/icons/components/DollarSign.d.ts +3 -0
- package/dist/lib/assets/icons/components/Download.d.ts +3 -0
- package/dist/lib/assets/icons/components/Edit.d.ts +3 -0
- package/dist/lib/assets/icons/components/Ellipses.d.ts +3 -0
- package/dist/lib/assets/icons/components/Environments.d.ts +3 -0
- package/dist/lib/assets/icons/components/Error.d.ts +3 -0
- package/dist/lib/assets/icons/components/ErrorOutline.d.ts +3 -0
- package/dist/lib/assets/icons/components/Exclamation.d.ts +3 -0
- package/dist/lib/assets/icons/components/Firewall.d.ts +3 -0
- package/dist/lib/assets/icons/components/Git.d.ts +3 -0
- package/dist/lib/assets/icons/components/GitOpsCatalog.d.ts +3 -0
- package/dist/lib/assets/icons/components/GridView.d.ts +3 -0
- package/dist/lib/assets/icons/components/Help.d.ts +3 -0
- package/dist/lib/assets/icons/components/HideOutline.d.ts +3 -0
- package/dist/lib/assets/icons/components/Home.d.ts +3 -0
- package/dist/lib/assets/icons/components/Home2.d.ts +3 -0
- package/dist/lib/assets/icons/components/Id.d.ts +3 -0
- package/dist/lib/assets/icons/components/InfoCircle.d.ts +3 -0
- package/dist/lib/assets/icons/components/InformationOutline.d.ts +3 -0
- package/dist/lib/assets/icons/components/InvoiceList.d.ts +3 -0
- package/dist/lib/assets/icons/components/Key.d.ts +3 -0
- package/dist/lib/assets/icons/components/Konstruct.d.ts +3 -0
- package/dist/lib/assets/icons/components/Kubernetes.d.ts +3 -0
- package/dist/lib/assets/icons/components/LightBulb.d.ts +3 -0
- package/dist/lib/assets/icons/components/LoadBalancer.d.ts +3 -0
- package/dist/lib/assets/icons/components/Loader.d.ts +3 -0
- package/dist/lib/assets/icons/components/Network.d.ts +3 -0
- package/dist/lib/assets/icons/components/ObjectStorage.d.ts +3 -0
- package/dist/lib/assets/icons/components/Organization.d.ts +3 -0
- package/dist/lib/assets/icons/components/PagesStack.d.ts +3 -0
- package/dist/lib/assets/icons/components/Pageview.d.ts +3 -0
- package/dist/lib/assets/icons/components/People.d.ts +3 -0
- package/dist/lib/assets/icons/components/PhotoLibrary.d.ts +3 -0
- package/dist/lib/assets/icons/components/Pipeline.d.ts +3 -0
- package/dist/lib/assets/icons/components/Plus.d.ts +3 -0
- package/dist/lib/assets/icons/components/PowerSettings.d.ts +3 -0
- package/dist/lib/assets/icons/components/Preview.d.ts +3 -0
- package/dist/lib/assets/icons/components/PrivateRegion.d.ts +3 -0
- package/dist/lib/assets/icons/components/Quota.d.ts +3 -0
- package/dist/lib/assets/icons/components/ReceiptLong.d.ts +3 -0
- package/dist/lib/assets/icons/components/Refresh.d.ts +3 -0
- package/dist/lib/assets/icons/components/ReservedIp.d.ts +3 -0
- package/dist/lib/assets/icons/components/ScatterPlot.d.ts +3 -0
- package/dist/lib/assets/icons/components/Search.d.ts +3 -0
- package/dist/lib/assets/icons/components/Server.d.ts +3 -0
- package/dist/lib/assets/icons/components/SshKey.d.ts +3 -0
- package/dist/lib/assets/icons/components/Start.d.ts +3 -0
- package/dist/lib/assets/icons/components/TabNew.d.ts +3 -0
- package/dist/lib/assets/icons/components/TeamMembers.d.ts +3 -0
- package/dist/lib/assets/icons/components/Teams.d.ts +3 -0
- package/dist/lib/assets/icons/components/Upload.d.ts +3 -0
- package/dist/lib/assets/icons/components/Volume.d.ts +3 -0
- package/dist/lib/assets/icons/components/Warning.d.ts +3 -0
- package/dist/lib/assets/icons/components/WarningTriangle.d.ts +3 -0
- package/dist/lib/assets/icons/components/Webhook.d.ts +3 -0
- package/dist/lib/assets/icons/components/X.d.ts +3 -0
- package/dist/lib/assets/icons/components/index.d.ts +92 -0
- package/dist/lib/assets/icons/components/types.d.ts +5 -0
- package/dist/lib/assets/icons/index.d.ts +1 -0
- package/dist/lib/components/Alert/Alert.d.ts +21 -0
- package/dist/lib/components/Alert/Alert.types.d.ts +43 -0
- package/dist/lib/components/Alert/Alert.variants.d.ts +16 -0
- package/dist/lib/components/AlertDialog/AlertDialog.d.ts +32 -0
- package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +60 -0
- package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.d.ts +2 -0
- package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +12 -0
- package/dist/lib/components/AlertDialog/components/index.d.ts +1 -0
- package/dist/lib/components/AlertDialog/hooks/index.d.ts +1 -0
- package/dist/lib/components/AlertDialog/hooks/useAlertDialog.d.ts +7 -0
- package/dist/lib/components/Autocomplete/Autocomplete.d.ts +31 -0
- package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +52 -0
- package/dist/lib/components/Autocomplete/Autocomplete.variants.d.ts +2 -0
- package/dist/lib/components/Autocomplete/components/List/List.d.ts +3 -0
- package/dist/lib/components/Autocomplete/components/List/List.types.d.ts +13 -0
- package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +4 -0
- package/dist/lib/components/Autocomplete/components/index.d.ts +1 -0
- package/dist/lib/components/Autocomplete/hooks/index.d.ts +2 -0
- package/dist/lib/components/Autocomplete/hooks/useAutocomplete.d.ts +17 -0
- package/dist/lib/components/Autocomplete/hooks/useNavigationList.d.ts +10 -0
- package/dist/lib/components/Badge/Badge.d.ts +34 -0
- package/dist/lib/components/Badge/Badge.types.d.ts +36 -0
- package/dist/lib/components/Badge/Badge.variants.d.ts +8 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.d.ts +29 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +43 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.variants.d.ts +2 -0
- package/dist/lib/components/Breadcrumb/components/Item/Item.d.ts +3 -0
- package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +8 -0
- package/dist/lib/components/Breadcrumb/components/Item/Item.variants.d.ts +6 -0
- package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
- package/dist/lib/components/Breadcrumb/hooks/useBreadcrumb.d.ts +3 -0
- package/dist/lib/components/Button/Button.d.ts +33 -0
- package/dist/lib/components/Button/Button.types.d.ts +26 -0
- package/dist/lib/components/Button/Button.variants.d.ts +8 -0
- package/dist/lib/components/ButtonGroup/ButtonGroup.d.ts +34 -0
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +100 -0
- package/dist/lib/components/ButtonGroup/ButtonGroup.variants.d.ts +14 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.d.ts +3 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +23 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +27 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/index.d.ts +2 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.d.ts +3 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +8 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/index.d.ts +2 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.d.ts +3 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +6 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/index.d.ts +2 -0
- package/dist/lib/components/ButtonGroup/components/index.d.ts +3 -0
- package/dist/lib/components/ButtonGroup/hooks/index.d.ts +2 -0
- package/dist/lib/components/ButtonGroup/hooks/useButtonGroup.d.ts +3 -0
- package/dist/lib/components/ButtonGroup/hooks/useButtonGroup.types.d.ts +18 -0
- package/dist/lib/components/Card/Card.d.ts +28 -0
- package/dist/lib/components/Card/Card.types.d.ts +26 -0
- package/dist/lib/components/Card/Card.variants.d.ts +8 -0
- package/dist/lib/components/Checkbox/Checkbox.d.ts +26 -0
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +40 -0
- package/dist/lib/components/Checkbox/Checkbox.variants.d.ts +5 -0
- package/dist/lib/components/Command/Command.d.ts +27 -0
- package/dist/lib/components/Command/Command.types.d.ts +33 -0
- package/dist/lib/components/Command/Command.variants.d.ts +3 -0
- package/dist/lib/components/Command/components/Command.d.ts +18 -0
- package/dist/lib/components/Command/components/CommandEmpty.d.ts +8 -0
- package/dist/lib/components/Command/components/CommandGroup.d.ts +12 -0
- package/dist/lib/components/Command/components/CommandInput.d.ts +9 -0
- package/dist/lib/components/Command/components/CommandItem.d.ts +14 -0
- package/dist/lib/components/Command/components/CommandList.d.ts +10 -0
- package/dist/lib/components/Command/components/CommandSeparator.d.ts +8 -0
- package/dist/lib/components/Command/components/CommandShortcut.d.ts +6 -0
- package/dist/lib/components/Command/components/DialogContent.d.ts +2 -0
- package/dist/lib/components/Command/components/DialogOverlay.d.ts +2 -0
- package/dist/lib/components/Command/components/index.d.ts +9 -0
- package/dist/lib/components/Command/contexts/Command.context.d.ts +2 -0
- package/dist/lib/components/Command/contexts/Command.provider.d.ts +2 -0
- package/dist/lib/components/Command/contexts/Command.types.d.ts +5 -0
- package/dist/lib/components/Command/contexts/index.d.ts +3 -0
- package/dist/lib/components/Counter/Counter.d.ts +36 -0
- package/dist/lib/components/Counter/Counter.types.d.ts +55 -0
- package/dist/lib/components/Counter/Counter.variants.d.ts +7 -0
- package/dist/lib/components/DateRangePicker/DateRangePicker.d.ts +31 -0
- package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +127 -0
- package/dist/lib/components/DateRangePicker/DateRangePicker.variants.d.ts +2 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/CalendarPanel.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/CalendarPanel.types.d.ts +79 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.d.ts +8 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.types.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.types.d.ts +17 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.types.d.ts +34 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.types.d.ts +12 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.types.d.ts +26 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/index.d.ts +5 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.d.ts +22 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/constants/index.d.ts +8 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/index.d.ts +4 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.d.ts +24 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.d.ts +22 -0
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/utils/index.d.ts +16 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.types.d.ts +37 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.d.ts +5 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +23 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +23 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/index.d.ts +2 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/hooks/index.d.ts +1 -0
- package/dist/lib/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +29 -0
- package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.types.d.ts +31 -0
- package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.d.ts +2 -0
- package/dist/lib/components/DateRangePicker/components/index.d.ts +3 -0
- package/dist/lib/components/DateRangePicker/constants/index.d.ts +1 -0
- package/dist/lib/components/DateRangePicker/constants/presets.d.ts +6 -0
- package/dist/lib/components/DateRangePicker/contexts/date-range-picker.context.d.ts +81 -0
- package/dist/lib/components/DateRangePicker/contexts/date-range-picker.hook.d.ts +1 -0
- package/dist/lib/components/DateRangePicker/contexts/date-range-picker.provider.d.ts +24 -0
- package/dist/lib/components/DateRangePicker/contexts/index.d.ts +4 -0
- package/dist/lib/components/DateRangePicker/utils/disabled-dates.d.ts +26 -0
- package/dist/lib/components/DateRangePicker/utils/index.d.ts +6 -0
- package/dist/lib/components/DateRangePicker/utils/presets.d.ts +5 -0
- package/dist/lib/components/DateRangePicker/utils/validation.d.ts +43 -0
- package/dist/lib/components/Datepicker/DatePicker.d.ts +26 -0
- package/dist/lib/components/Datepicker/DatePicker.types.d.ts +31 -0
- package/dist/lib/components/Datepicker/DatePicker.variants.d.ts +1 -0
- package/dist/lib/components/Divider/Divider.d.ts +17 -0
- package/dist/lib/components/Divider/Divider.variants.d.ts +3 -0
- package/dist/lib/components/Drawer/Drawer.d.ts +36 -0
- package/dist/lib/components/Drawer/Drawer.types.d.ts +67 -0
- package/dist/lib/components/Drawer/Drawer.variants.d.ts +8 -0
- package/dist/lib/components/Drawer/components/Body/Body.d.ts +3 -0
- package/dist/lib/components/Drawer/components/Body/Body.types.d.ts +7 -0
- package/dist/lib/components/Drawer/components/Body/index.d.ts +2 -0
- package/dist/lib/components/Drawer/components/Footer/Footer.d.ts +3 -0
- package/dist/lib/components/Drawer/components/Footer/Footer.types.d.ts +7 -0
- package/dist/lib/components/Drawer/components/Footer/index.d.ts +2 -0
- package/dist/lib/components/Drawer/components/Header/Header.d.ts +3 -0
- package/dist/lib/components/Drawer/components/Header/Header.types.d.ts +9 -0
- package/dist/lib/components/Drawer/components/Header/index.d.ts +2 -0
- package/dist/lib/components/Drawer/components/index.d.ts +3 -0
- package/dist/lib/components/Drawer/constants/index.d.ts +6 -0
- package/dist/lib/components/Drawer/contexts/Drawer.context.d.ts +7 -0
- package/dist/lib/components/Drawer/contexts/index.d.ts +2 -0
- package/dist/lib/components/Drawer/hooks/index.d.ts +2 -0
- package/dist/lib/components/Drawer/hooks/useDrawer.d.ts +2 -0
- package/dist/lib/components/Drawer/hooks/useDrawer.types.d.ts +30 -0
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +20 -0
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +36 -0
- package/dist/lib/components/Filter/Filter.d.ts +26 -0
- package/dist/lib/components/Filter/Filter.types.d.ts +65 -0
- package/dist/lib/components/Filter/Filter.variants.d.ts +3 -0
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.d.ts +3 -0
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +14 -0
- package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.types.d.ts +13 -0
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +12 -0
- package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.types.d.ts +7 -0
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +13 -0
- package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +25 -0
- package/dist/lib/components/Filter/components/ResetButton/ResetButton.d.ts +3 -0
- package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +5 -0
- package/dist/lib/components/Filter/components/TextMultiSelect/TextMultiSelect.d.ts +3 -0
- package/dist/lib/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +9 -0
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +3 -0
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +14 -0
- package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +13 -0
- package/dist/lib/components/Filter/components/index.d.ts +12 -0
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +4 -0
- package/dist/lib/components/Filter/contexts/filter.hook.d.ts +2 -0
- package/dist/lib/components/Filter/contexts/filter.provider.d.ts +5 -0
- package/dist/lib/components/Filter/contexts/index.d.ts +3 -0
- package/dist/lib/components/Filter/events/index.d.ts +6 -0
- package/dist/lib/components/Filter/utils/index.d.ts +1 -0
- package/dist/lib/components/ImageUpload/ImageUpload.d.ts +25 -0
- package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +71 -0
- package/dist/lib/components/ImageUpload/ImageUpload.variants.d.ts +13 -0
- package/dist/lib/components/Input/Input.d.ts +35 -0
- package/dist/lib/components/Input/Input.types.d.ts +38 -0
- package/dist/lib/components/Input/Input.variants.d.ts +3 -0
- package/dist/lib/components/LineChart/LineChart.d.ts +17 -0
- package/dist/lib/components/LineChart/LineChart.types.d.ts +58 -0
- package/dist/lib/components/Loading/Loading.d.ts +24 -0
- package/dist/lib/components/Loading/Loading.types.d.ts +19 -0
- package/dist/lib/components/Loading/Loading.variants.d.ts +1 -0
- package/dist/lib/components/Modal/Modal.d.ts +34 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +50 -0
- package/dist/lib/components/Modal/components/Body/Body.d.ts +3 -0
- package/dist/lib/components/Modal/components/Body/Body.types.d.ts +5 -0
- package/dist/lib/components/Modal/components/Footer/Footer.d.ts +3 -0
- package/dist/lib/components/Modal/components/Footer/Footer.types.d.ts +5 -0
- package/dist/lib/components/Modal/components/Header/Header.d.ts +3 -0
- package/dist/lib/components/Modal/components/Header/Header.types.d.ts +5 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +14 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -0
- package/dist/lib/components/Modal/components/index.d.ts +4 -0
- package/dist/lib/components/Modal/contexts/Modal.context.d.ts +2 -0
- package/dist/lib/components/Modal/contexts/Modal.provider.d.ts +4 -0
- package/dist/lib/components/Modal/contexts/Modal.types.d.ts +9 -0
- package/dist/lib/components/Modal/contexts/index.d.ts +1 -0
- package/dist/lib/components/Modal/hooks/index.d.ts +1 -0
- package/dist/lib/components/Modal/hooks/useModal.d.ts +9 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +23 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +78 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +3 -0
- package/dist/lib/components/MultiSelectDropdown/components/Item/Item.d.ts +3 -0
- package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +8 -0
- package/dist/lib/components/MultiSelectDropdown/components/Item/Item.variants.d.ts +3 -0
- package/dist/lib/components/MultiSelectDropdown/components/List/List.d.ts +3 -0
- package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +4 -0
- package/dist/lib/components/MultiSelectDropdown/components/List/List.variants.d.ts +1 -0
- package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +7 -0
- package/dist/lib/components/MultiSelectDropdown/components/index.d.ts +3 -0
- package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.d.ts +1 -0
- package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.d.ts +3 -0
- package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +31 -0
- package/dist/lib/components/MultiSelectDropdown/contexts/index.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.d.ts +4 -0
- package/dist/lib/components/PhoneNumberInput/PhoneNumberInput.d.ts +21 -0
- package/dist/lib/components/PhoneNumberInput/PhoneNumberInput.types.d.ts +51 -0
- package/dist/lib/components/PhoneNumberInput/PhoneNumberInput.variants.d.ts +4 -0
- package/dist/lib/components/PhoneNumberInput/components/FlagContent/FlagContent.d.ts +2 -0
- package/dist/lib/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.d.ts +3 -0
- package/dist/lib/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.types.d.ts +5 -0
- package/dist/lib/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.d.ts +3 -0
- package/dist/lib/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.types.d.ts +8 -0
- package/dist/lib/components/PhoneNumberInput/components/TruncateText/TruncateText.d.ts +3 -0
- package/dist/lib/components/PhoneNumberInput/components/TruncateText/TruncateText.types.d.ts +4 -0
- package/dist/lib/components/PhoneNumberInput/components/Wrapper.d.ts +3 -0
- package/dist/lib/components/PhoneNumberInput/components/index.d.ts +2 -0
- package/dist/lib/components/PhoneNumberInput/contexts/index.d.ts +3 -0
- package/dist/lib/components/PhoneNumberInput/contexts/phone-number.context.d.ts +20 -0
- package/dist/lib/components/PhoneNumberInput/contexts/phone-number.hook.d.ts +2 -0
- package/dist/lib/components/PhoneNumberInput/contexts/phone-number.provider.d.ts +6 -0
- package/dist/lib/components/PhoneNumberInput/utils/index.d.ts +2 -0
- package/dist/lib/components/PieChart/PieChart.d.ts +20 -0
- package/dist/lib/components/PieChart/PieChart.types.d.ts +90 -0
- package/dist/lib/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +22 -0
- package/dist/lib/components/ProgressBar/ProgressBar.variants.d.ts +4 -0
- package/dist/lib/components/Radio/Radio.d.ts +22 -0
- package/dist/lib/components/Radio/Radio.types.d.ts +46 -0
- package/dist/lib/components/Radio/Radio.variants.d.ts +8 -0
- package/dist/lib/components/RadioCard/RadioCard.d.ts +22 -0
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +25 -0
- package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +1 -0
- package/dist/lib/components/RadioCardGroup/RadioCardGroup.d.ts +23 -0
- package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +32 -0
- package/dist/lib/components/RadioCardGroup/RadioCardGroup.variants.d.ts +3 -0
- package/dist/lib/components/RadioGroup/RadioGroup.d.ts +34 -0
- package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +46 -0
- package/dist/lib/components/RadioGroup/RadioGroup.variants.d.ts +3 -0
- package/dist/lib/components/Range/Range.d.ts +21 -0
- package/dist/lib/components/Range/Range.types.d.ts +44 -0
- package/dist/lib/components/Range/Range.variants.d.ts +8 -0
- package/dist/lib/components/Select/Select.d.ts +37 -0
- package/dist/lib/components/Select/Select.types.d.ts +140 -0
- package/dist/lib/components/Select/Select.variants.d.ts +6 -0
- package/dist/lib/components/Select/components/AdditionalOptions/AdditionalOptions.d.ts +3 -0
- package/dist/lib/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +4 -0
- package/dist/lib/components/Select/components/AdditionalOptions/AdditionalOptions.variants.d.ts +1 -0
- package/dist/lib/components/Select/components/EmptyList.d.ts +2 -0
- package/dist/lib/components/Select/components/List/List.d.ts +3 -0
- package/dist/lib/components/Select/components/List/List.types.d.ts +16 -0
- package/dist/lib/components/Select/components/List/List.variants.d.ts +2 -0
- package/dist/lib/components/Select/components/ListItem/ListItem.d.ts +3 -0
- package/dist/lib/components/Select/components/ListItem/ListItem.types.d.ts +9 -0
- package/dist/lib/components/Select/components/ListItem/ListItem.variants.d.ts +1 -0
- package/dist/lib/components/Select/components/Wrapper.d.ts +5 -0
- package/dist/lib/components/Select/components/index.d.ts +4 -0
- package/dist/lib/components/Select/constants/index.d.ts +2 -0
- package/dist/lib/components/Select/constants/list.d.ts +1 -0
- package/dist/lib/components/Select/constants/pagination.d.ts +1 -0
- package/dist/lib/components/Select/contexts/index.d.ts +2 -0
- package/dist/lib/components/Select/contexts/select.context.d.ts +21 -0
- package/dist/lib/components/Select/contexts/select.hook.d.ts +2 -0
- package/dist/lib/components/Select/contexts/select.provider.d.ts +10 -0
- package/dist/lib/components/Select/hooks/useNavigationList.d.ts +11 -0
- package/dist/lib/components/Select/hooks/useSelect.d.ts +15 -0
- package/dist/lib/components/Sidebar/Sidebar.d.ts +28 -0
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +56 -0
- package/dist/lib/components/Sidebar/Sidebar.variants.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/Footer/Footer.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/Footer/Footer.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Footer/Footer.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Navigation/Navigation.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/Navigation/Navigation.types.d.ts +18 -0
- package/dist/lib/components/Sidebar/components/Navigation/Navigation.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +10 -0
- package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +19 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +3 -0
- package/dist/lib/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +7 -0
- package/dist/lib/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +10 -0
- package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Wrapper/Wrapper.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/index.d.ts +15 -0
- package/dist/lib/components/Slider/Slider.d.ts +21 -0
- package/dist/lib/components/Slider/Slider.types.d.ts +44 -0
- package/dist/lib/components/Slider/Slider.variants.d.ts +7 -0
- package/dist/lib/components/Spinner/Spinner.d.ts +4 -0
- package/dist/lib/components/Spinner/Spinner.types.d.ts +15 -0
- package/dist/lib/components/Spinner/Spinner.variants.d.ts +6 -0
- package/dist/lib/components/Stepper/Stepper.d.ts +51 -0
- package/dist/lib/components/Stepper/Stepper.types.d.ts +75 -0
- package/dist/lib/components/Stepper/Stepper.variants.d.ts +40 -0
- package/dist/lib/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.d.ts +2 -0
- package/dist/lib/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.types.d.ts +1 -0
- package/dist/lib/components/Stepper/components/StepConnector/StepConnector.d.ts +2 -0
- package/dist/lib/components/Stepper/components/StepConnector/StepConnector.types.d.ts +13 -0
- package/dist/lib/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.d.ts +2 -0
- package/dist/lib/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.types.d.ts +13 -0
- package/dist/lib/components/Stepper/components/StepItem/StepItem.d.ts +2 -0
- package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +32 -0
- package/dist/lib/components/Stepper/components/VerticalStepItem/VerticalStepItem.d.ts +2 -0
- package/dist/lib/components/Stepper/components/VerticalStepItem/VerticalStepItem.types.d.ts +1 -0
- package/dist/lib/components/Stepper/constants/index.d.ts +3 -0
- package/dist/lib/components/Stepper/hooks/index.d.ts +1 -0
- package/dist/lib/components/Stepper/hooks/useStepItemLogic.d.ts +2 -0
- package/dist/lib/components/Stepper/hooks/useStepItemLogic.types.d.ts +16 -0
- package/dist/lib/components/Stepper/utils/index.d.ts +3 -0
- package/dist/lib/components/Switch/Switch.d.ts +29 -0
- package/dist/lib/components/Switch/Switch.types.d.ts +45 -0
- package/dist/lib/components/Switch/Switch.variants.d.ts +2 -0
- package/dist/lib/components/Table/Table.d.ts +38 -0
- package/dist/lib/components/Table/Table.types.d.ts +59 -0
- package/dist/lib/components/Table/Table.variants.d.ts +6 -0
- package/dist/lib/components/Table/components/Body.d.ts +3 -0
- package/dist/lib/components/Table/components/Filter.d.ts +3 -0
- package/dist/lib/components/Table/components/Head.d.ts +3 -0
- package/dist/lib/components/Table/components/Row.d.ts +3 -0
- package/dist/lib/components/Table/components/index.d.ts +4 -0
- package/dist/lib/components/Tabs/Tabs.d.ts +37 -0
- package/dist/lib/components/Tabs/Tabs.types.d.ts +44 -0
- package/dist/lib/components/Tabs/Tabs.variants.d.ts +12 -0
- package/dist/lib/components/Tabs/components/Content.d.ts +4 -0
- package/dist/lib/components/Tabs/components/List.d.ts +4 -0
- package/dist/lib/components/Tabs/components/Trigger.d.ts +4 -0
- package/dist/lib/components/Tabs/components/index.d.ts +3 -0
- package/dist/lib/components/Tag/Tag.d.ts +16 -0
- package/dist/lib/components/Tag/Tag.types.d.ts +35 -0
- package/dist/lib/components/Tag/Tag.variants.d.ts +3 -0
- package/dist/lib/components/TagSelect/TagSelect.d.ts +23 -0
- package/dist/lib/components/TagSelect/TagSelect.types.d.ts +41 -0
- package/dist/lib/components/TagSelect/TagSelect.variants.d.ts +3 -0
- package/dist/lib/components/TagSelect/components/Item/Item.d.ts +3 -0
- package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +6 -0
- package/dist/lib/components/TagSelect/components/Item/Item.variants.d.ts +3 -0
- package/dist/lib/components/TagSelect/components/List/List.d.ts +3 -0
- package/dist/lib/components/TagSelect/components/List/List.types.d.ts +4 -0
- package/dist/lib/components/TagSelect/components/List/List.variants.d.ts +1 -0
- package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +7 -0
- package/dist/lib/components/TagSelect/components/index.d.ts +3 -0
- package/dist/lib/components/TagSelect/contexts/TagSelect.context.d.ts +2 -0
- package/dist/lib/components/TagSelect/contexts/TagSelect.hook.d.ts +1 -0
- package/dist/lib/components/TagSelect/contexts/TagSelect.provider.d.ts +3 -0
- package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +15 -0
- package/dist/lib/components/TagSelect/contexts/index.d.ts +2 -0
- package/dist/lib/components/TagSelect/hooks/useTagSelect.d.ts +4 -0
- package/dist/lib/components/TextArea/TextArea.d.ts +24 -0
- package/dist/lib/components/TextArea/TextArea.types.d.ts +30 -0
- package/dist/lib/components/TextArea/TextArea.variants.d.ts +1 -0
- package/dist/lib/components/TimePicker/TimePicker.d.ts +21 -0
- package/dist/lib/components/TimePicker/TimePicker.types.d.ts +55 -0
- package/dist/lib/components/TimePicker/TimePicker.variants.d.ts +4 -0
- package/dist/lib/components/TimePicker/components/HoursList/HoursList.d.ts +4 -0
- package/dist/lib/components/TimePicker/components/HoursList/HoursList.types.d.ts +8 -0
- package/dist/lib/components/TimePicker/components/MeridianList/MeridianList.d.ts +4 -0
- package/dist/lib/components/TimePicker/components/MeridianList/MeridianList.types.d.ts +7 -0
- package/dist/lib/components/TimePicker/components/MinutesList/MinutesList.d.ts +4 -0
- package/dist/lib/components/TimePicker/components/MinutesList/MinutesList.types.d.ts +9 -0
- package/dist/lib/components/TimePicker/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/lib/components/TimePicker/components/Wrapper/Wrapper.types.d.ts +6 -0
- package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.d.ts +3 -0
- package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +9 -0
- package/dist/lib/components/TimePicker/components/index.d.ts +1 -0
- package/dist/lib/components/TimePicker/contexts/index.d.ts +3 -0
- package/dist/lib/components/TimePicker/contexts/time-picker.context.d.ts +15 -0
- package/dist/lib/components/TimePicker/contexts/time-picker.hook.d.ts +2 -0
- package/dist/lib/components/TimePicker/contexts/time-picker.provider.d.ts +7 -0
- package/dist/lib/components/TimePicker/utils/index.d.ts +8 -0
- package/dist/lib/components/Toast/Toast.d.ts +25 -0
- package/dist/lib/components/Toast/Toast.types.d.ts +48 -0
- package/dist/lib/components/Toast/Toast.variants.d.ts +5 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/lib/components/Tooltip/Tooltip.types.d.ts +41 -0
- package/dist/lib/components/Typography/Typography.d.ts +18 -0
- package/dist/lib/components/Typography/Typography.types.d.ts +31 -0
- package/dist/lib/components/Typography/Typography.variants.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +16 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +228 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.variants.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/assets/chevron-down.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/assets/chevron-up.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/assets/index.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +24 -0
- package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +5 -0
- package/dist/lib/components/VirtualizedTable/components/DotPaginate/DotPaginate.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.types.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/components/Filter/Filter.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +16 -0
- package/dist/lib/components/VirtualizedTable/components/FormPaginate/FormPaginate.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +5 -0
- package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.types.d.ts +5 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/WrapperBody/WrapperBody.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/WrapperBody/WrapperBody.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +7 -0
- package/dist/lib/components/VirtualizedTable/constants/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/constants/pagination.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/index.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +44 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.hook.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +29 -0
- package/dist/lib/components/VirtualizedTable/events/index.d.ts +12 -0
- package/dist/lib/components/index.d.ts +56 -0
- package/dist/lib/contexts/index.d.ts +3 -0
- package/dist/lib/contexts/theme.context.d.ts +6 -0
- package/dist/lib/contexts/theme.hook.d.ts +7 -0
- package/dist/lib/contexts/theme.provider.d.ts +38 -0
- package/dist/lib/domain/theme.d.ts +1 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useToggle.d.ts +1 -0
- package/dist/lib/icons.d.ts +2 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/styles.d.ts +0 -0
- package/dist/lib/utils/index.d.ts +5 -0
- package/dist/libphonenumber-7uXgv7U8.js +81977 -0
- package/dist/package.json +75 -43
- package/dist/phone-number.provider-B9BWYAqH.js +6646 -0
- package/dist/prop-types-DTnODft1.js +547 -0
- package/dist/proxy-uLtw-ZML.js +4690 -0
- package/dist/style.css +1 -0
- package/dist/styles.css +1 -1
- package/dist/{index-Dx2grAuN.js → table.provider-4OQNqxH3.js} +805 -694
- package/dist/theme.provider-BgxXUOMP.js +74 -0
- package/dist/ui/civo-theme.css +194 -168
- package/dist/ui/theme.css +27 -0
- package/dist/useBreadcrumb-nYudTOOA.js +1506 -0
- package/dist/utils/index.js +5 -2729
- package/dist/utils-2zv-ysvP.js +2021 -0
- package/dist/utils-DHuiYnx1.js +1689 -0
- package/dist/x-BwIi6Wii.js +63 -0
- package/dist/x-a0ouxoIM.js +11 -0
- package/package.json +75 -43
- package/dist/Combination-VYaRRJBZ.js +0 -477
- package/dist/DatePicker.css +0 -1
- package/dist/Modal-B8jrP02v.js +0 -98
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/chevron-down-MZvQoT2F.js +0 -11
- package/dist/chevron-right-VYBOBhRt.js +0 -19
- package/dist/components/Dropdown/Dropdown.js +0 -42
- package/dist/components/Dropdown/Dropdown.variants.js +0 -69
- package/dist/components/Dropdown/components/EmptyList.js +0 -5
- package/dist/components/Dropdown/components/List/List.js +0 -79
- package/dist/components/Dropdown/components/List/List.variants.js +0 -28
- package/dist/components/Dropdown/components/ListItem/ListItem.js +0 -67
- package/dist/components/Dropdown/components/Wrapper.js +0 -205
- package/dist/components/Dropdown/components/index.js +0 -8
- package/dist/components/Dropdown/contexts/dropdown.context.js +0 -19
- package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
- package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -30
- package/dist/components/Dropdown/contexts/index.js +0 -6
- package/dist/components/Dropdown/hooks/useDropdown.js +0 -58
- package/dist/components/Dropdown/hooks/useNavigationList.js +0 -62
- package/dist/components/NumberInput/NumberInput.js +0 -179
- package/dist/components/NumberInput/NumberInput.variants.js +0 -50
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
- package/dist/components/Tooltip/Tooltip.variants.js +0 -85
- package/dist/components/Tooltip/hooks/useTooltip.js +0 -24
- package/dist/createLucideIcon-D2CN7Ma9.js +0 -94
- package/dist/debounce-BFejQm9P.js +0 -200
- package/dist/index-0XtjXVpJ.js +0 -314
- package/dist/index-0ioNhtNM.js +0 -10
- package/dist/index-BAEWsOG1.js +0 -27
- package/dist/index-BVRIAMfe.js +0 -36
- package/dist/index-BdMNhZnh.js +0 -9
- package/dist/index-BfXxHr_2.js +0 -125
- package/dist/index-Bn4c-gww.js +0 -131
- package/dist/index-CffpTFMi.js +0 -137
- package/dist/index-Cvx4lqTq.js +0 -47
- package/dist/index-D29mdTf5.js +0 -34
- package/dist/index-DQH6odE9.js +0 -82
- package/dist/index-DQJhMz8c.js +0 -323
- package/dist/index-DdXGVVBv.js +0 -15
- package/dist/index-N2OStZoU.js +0 -667
- package/dist/index-amYX3uxF.js +0 -436
- package/dist/index-bwWKd82e.js +0 -13
- package/dist/index-l3NwplN0.js +0 -432
- package/dist/index-sp5ZfG6g.js +0 -31
- package/dist/useBreadcrumb-B8DnuqkR.js +0 -1273
- package/dist/x-4F_5p77m.js +0 -62
|
@@ -0,0 +1,1506 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
function S(e, t) {
|
|
3
|
+
if (e === !1 || e === null || typeof e > "u") throw new Error(t);
|
|
4
|
+
}
|
|
5
|
+
function C(e, t) {
|
|
6
|
+
if (!e) {
|
|
7
|
+
typeof console < "u" && console.warn(t);
|
|
8
|
+
try {
|
|
9
|
+
throw new Error(t);
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function le({ pathname: e = "/", search: t = "", hash: r = "" }) {
|
|
15
|
+
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
|
|
16
|
+
}
|
|
17
|
+
function W(e) {
|
|
18
|
+
let t = {};
|
|
19
|
+
if (e) {
|
|
20
|
+
let r = e.indexOf("#");
|
|
21
|
+
r >= 0 && (t.hash = e.substring(r), e = e.substring(0, r));
|
|
22
|
+
let n = e.indexOf("?");
|
|
23
|
+
n >= 0 && (t.search = e.substring(n), e = e.substring(0, n)), e && (t.pathname = e);
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
}
|
|
27
|
+
var Ye;
|
|
28
|
+
Ye = /* @__PURE__ */ new WeakMap();
|
|
29
|
+
function ce(e, t, r = "/") {
|
|
30
|
+
return Ge(e, t, r, !1);
|
|
31
|
+
}
|
|
32
|
+
function Ge(e, t, r, n) {
|
|
33
|
+
let a = _((typeof t == "string" ? W(t) : t).pathname || "/", r);
|
|
34
|
+
if (a == null) return null;
|
|
35
|
+
let o = Ce(e);
|
|
36
|
+
Xe(o);
|
|
37
|
+
let i = null;
|
|
38
|
+
for (let s = 0; i == null && s < o.length; ++s) {
|
|
39
|
+
let u = it(a);
|
|
40
|
+
i = ot(o[s], u, n);
|
|
41
|
+
}
|
|
42
|
+
return i;
|
|
43
|
+
}
|
|
44
|
+
function qe(e, t) {
|
|
45
|
+
let { route: r, pathname: n, params: a } = e;
|
|
46
|
+
return {
|
|
47
|
+
id: r.id,
|
|
48
|
+
pathname: n,
|
|
49
|
+
params: a,
|
|
50
|
+
data: t[r.id],
|
|
51
|
+
loaderData: t[r.id],
|
|
52
|
+
handle: r.handle
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function Ce(e, t = [], r = [], n = "", a = !1) {
|
|
56
|
+
let o = (i, s, u = a, c) => {
|
|
57
|
+
let f = {
|
|
58
|
+
relativePath: c === void 0 ? i.path || "" : c,
|
|
59
|
+
caseSensitive: i.caseSensitive === !0,
|
|
60
|
+
childrenIndex: s,
|
|
61
|
+
route: i
|
|
62
|
+
};
|
|
63
|
+
if (f.relativePath.startsWith("/")) {
|
|
64
|
+
if (!f.relativePath.startsWith(n) && u) return;
|
|
65
|
+
S(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
|
+
}
|
|
67
|
+
let d = k([n, f.relativePath]), h = r.concat(f);
|
|
68
|
+
i.children && i.children.length > 0 && (S(i.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${d}".`), Ce(i.children, t, h, d, u)), !(i.path == null && !i.index) && t.push({
|
|
69
|
+
path: d,
|
|
70
|
+
score: nt(d, i.index),
|
|
71
|
+
routesMeta: h
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
return e.forEach((i, s) => {
|
|
75
|
+
if (i.path === "" || !i.path?.includes("?")) o(i, s);
|
|
76
|
+
else for (let u of $e(i.path)) o(i, s, !0, u);
|
|
77
|
+
}), t;
|
|
78
|
+
}
|
|
79
|
+
function $e(e) {
|
|
80
|
+
let t = e.split("/");
|
|
81
|
+
if (t.length === 0) return [];
|
|
82
|
+
let [r, ...n] = t, a = r.endsWith("?"), o = r.replace(/\?$/, "");
|
|
83
|
+
if (n.length === 0) return a ? [o, ""] : [o];
|
|
84
|
+
let i = $e(n.join("/")), s = [];
|
|
85
|
+
return s.push(...i.map((u) => u === "" ? o : [o, u].join("/"))), a && s.push(...i), s.map((u) => e.startsWith("/") && u === "" ? "/" : u);
|
|
86
|
+
}
|
|
87
|
+
function Xe(e) {
|
|
88
|
+
e.sort((t, r) => t.score !== r.score ? r.score - t.score : at(t.routesMeta.map((n) => n.childrenIndex), r.routesMeta.map((n) => n.childrenIndex)));
|
|
89
|
+
}
|
|
90
|
+
var Ke = /^:[\w-]+$/, Qe = 3, Ze = 2, et = 1, tt = 10, rt = -2, ve = (e) => e === "*";
|
|
91
|
+
function nt(e, t) {
|
|
92
|
+
let r = e.split("/"), n = r.length;
|
|
93
|
+
return r.some(ve) && (n += rt), t && (n += Ze), r.filter((a) => !ve(a)).reduce((a, o) => a + (Ke.test(o) ? Qe : o === "" ? et : tt), n);
|
|
94
|
+
}
|
|
95
|
+
function at(e, t) {
|
|
96
|
+
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
|
+
}
|
|
98
|
+
function ot(e, t, r = !1) {
|
|
99
|
+
let { routesMeta: n } = e, a = {}, o = "/", i = [];
|
|
100
|
+
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 = K({
|
|
102
|
+
path: u.relativePath,
|
|
103
|
+
caseSensitive: u.caseSensitive,
|
|
104
|
+
end: c
|
|
105
|
+
}, f), h = u.route;
|
|
106
|
+
if (!d && c && r && !n[n.length - 1].route.index && (d = K({
|
|
107
|
+
path: u.relativePath,
|
|
108
|
+
caseSensitive: u.caseSensitive,
|
|
109
|
+
end: !1
|
|
110
|
+
}, f)), !d) return null;
|
|
111
|
+
Object.assign(a, d.params), i.push({
|
|
112
|
+
params: a,
|
|
113
|
+
pathname: k([o, d.pathname]),
|
|
114
|
+
pathnameBase: dt(k([o, d.pathnameBase])),
|
|
115
|
+
route: h
|
|
116
|
+
}), d.pathnameBase !== "/" && (o = k([o, d.pathnameBase]));
|
|
117
|
+
}
|
|
118
|
+
return i;
|
|
119
|
+
}
|
|
120
|
+
function K(e, t) {
|
|
121
|
+
typeof e == "string" && (e = {
|
|
122
|
+
path: e,
|
|
123
|
+
caseSensitive: !1,
|
|
124
|
+
end: !0
|
|
125
|
+
});
|
|
126
|
+
let [r, n] = lt(e.path, e.caseSensitive, e.end), a = t.match(r);
|
|
127
|
+
if (!a) return null;
|
|
128
|
+
let o = a[0], i = o.replace(/(.)\/+$/, "$1"), s = a.slice(1);
|
|
129
|
+
return {
|
|
130
|
+
params: n.reduce((u, { paramName: c, isOptional: f }, d) => {
|
|
131
|
+
if (c === "*") {
|
|
132
|
+
let y = s[d] || "";
|
|
133
|
+
i = o.slice(0, o.length - y.length).replace(/(.)\/+$/, "$1");
|
|
134
|
+
}
|
|
135
|
+
const h = s[d];
|
|
136
|
+
return f && !h ? u[c] = void 0 : u[c] = (h || "").replace(/%2F/g, "/"), u;
|
|
137
|
+
}, {}),
|
|
138
|
+
pathname: o,
|
|
139
|
+
pathnameBase: i,
|
|
140
|
+
pattern: e
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function lt(e, t = !1, r = !0) {
|
|
144
|
+
C(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
|
+
let n = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (o, i, s, u, c) => {
|
|
146
|
+
if (n.push({
|
|
147
|
+
paramName: i,
|
|
148
|
+
isOptional: s != null
|
|
149
|
+
}), s) {
|
|
150
|
+
let f = c.charAt(u + o.length);
|
|
151
|
+
return f && f !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";
|
|
152
|
+
}
|
|
153
|
+
return "/([^\\/]+)";
|
|
154
|
+
}).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
155
|
+
return e.endsWith("*") ? (n.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, t ? void 0 : "i"), n];
|
|
156
|
+
}
|
|
157
|
+
function it(e) {
|
|
158
|
+
try {
|
|
159
|
+
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
160
|
+
} catch (t) {
|
|
161
|
+
return C(!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
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function _(e, t) {
|
|
165
|
+
if (t === "/") return e;
|
|
166
|
+
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
|
|
167
|
+
let r = t.endsWith("/") ? t.length - 1 : t.length, n = e.charAt(r);
|
|
168
|
+
return n && n !== "/" ? null : e.slice(r) || "/";
|
|
169
|
+
}
|
|
170
|
+
var st = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
171
|
+
function ut(e, t = "/") {
|
|
172
|
+
let { pathname: r, search: n = "", hash: a = "" } = typeof e == "string" ? W(e) : e, o;
|
|
173
|
+
return r ? (r = r.replace(/\/\/+/g, "/"), r.startsWith("/") ? o = Re(r.substring(1), "/") : o = Re(r, t)) : o = t, {
|
|
174
|
+
pathname: o,
|
|
175
|
+
search: ft(n),
|
|
176
|
+
hash: mt(a)
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
function Re(e, t) {
|
|
180
|
+
let r = t.replace(/\/+$/, "").split("/");
|
|
181
|
+
return e.split("/").forEach((n) => {
|
|
182
|
+
n === ".." ? r.length > 1 && r.pop() : n !== "." && r.push(n);
|
|
183
|
+
}), r.length > 1 ? r.join("/") : "/";
|
|
184
|
+
}
|
|
185
|
+
function ne(e, t, r, n) {
|
|
186
|
+
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
|
+
}
|
|
188
|
+
function ct(e) {
|
|
189
|
+
return e.filter((t, r) => r === 0 || t.route.path && t.route.path.length > 0);
|
|
190
|
+
}
|
|
191
|
+
function Pe(e) {
|
|
192
|
+
let t = ct(e);
|
|
193
|
+
return t.map((r, n) => n === t.length - 1 ? r.pathname : r.pathnameBase);
|
|
194
|
+
}
|
|
195
|
+
function de(e, t, r, n = !1) {
|
|
196
|
+
let a;
|
|
197
|
+
typeof e == "string" ? a = W(e) : (a = { ...e }, S(!a.pathname || !a.pathname.includes("?"), ne("?", "pathname", "search", a)), S(!a.pathname || !a.pathname.includes("#"), ne("#", "pathname", "hash", a)), S(!a.search || !a.search.includes("#"), ne("#", "search", "hash", a)));
|
|
198
|
+
let o = e === "" || a.pathname === "", i = o ? "/" : a.pathname, s;
|
|
199
|
+
if (i == null) s = r;
|
|
200
|
+
else {
|
|
201
|
+
let d = t.length - 1;
|
|
202
|
+
if (!n && i.startsWith("..")) {
|
|
203
|
+
let h = i.split("/");
|
|
204
|
+
for (; h[0] === ".."; )
|
|
205
|
+
h.shift(), d -= 1;
|
|
206
|
+
a.pathname = h.join("/");
|
|
207
|
+
}
|
|
208
|
+
s = d >= 0 ? t[d] : "/";
|
|
209
|
+
}
|
|
210
|
+
let u = ut(a, s), c = i && i !== "/" && i.endsWith("/"), f = (o || i === ".") && r.endsWith("/");
|
|
211
|
+
return !u.pathname.endsWith("/") && (c || f) && (u.pathname += "/"), u;
|
|
212
|
+
}
|
|
213
|
+
var k = (e) => e.join("/").replace(/\/\/+/g, "/"), dt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), ft = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, mt = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ht = class {
|
|
214
|
+
constructor(e, t, r, n = !1) {
|
|
215
|
+
this.status = e, this.statusText = t || "", this.internal = n, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
function Le(e) {
|
|
219
|
+
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
220
|
+
}
|
|
221
|
+
function pt(e) {
|
|
222
|
+
return e.map((t) => t.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
|
|
223
|
+
}
|
|
224
|
+
var ke = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
225
|
+
function _e(e, t) {
|
|
226
|
+
let r = e;
|
|
227
|
+
if (typeof r != "string" || !st.test(r)) return {
|
|
228
|
+
absoluteURL: void 0,
|
|
229
|
+
isExternal: !1,
|
|
230
|
+
to: r
|
|
231
|
+
};
|
|
232
|
+
let n = r, a = !1;
|
|
233
|
+
if (ke) try {
|
|
234
|
+
let o = new URL(window.location.href), i = r.startsWith("//") ? new URL(o.protocol + r) : new URL(r), s = _(i.pathname, t);
|
|
235
|
+
i.origin === o.origin && s != null ? r = s + i.search + i.hash : a = !0;
|
|
236
|
+
} catch {
|
|
237
|
+
C(!1, `<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
|
|
238
|
+
}
|
|
239
|
+
return {
|
|
240
|
+
absoluteURL: n,
|
|
241
|
+
isExternal: a,
|
|
242
|
+
to: r
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
var _r = Object.getOwnPropertyNames(Object.prototype).sort().join("\0"), Oe = [
|
|
246
|
+
"POST",
|
|
247
|
+
"PUT",
|
|
248
|
+
"PATCH",
|
|
249
|
+
"DELETE"
|
|
250
|
+
], Or = new Set(Oe), yt = ["GET", ...Oe], Tr = new Set(yt), F = l.createContext(null);
|
|
251
|
+
F.displayName = "DataRouter";
|
|
252
|
+
var B = l.createContext(null);
|
|
253
|
+
B.displayName = "DataRouterState";
|
|
254
|
+
var Te = l.createContext(!1);
|
|
255
|
+
function Me() {
|
|
256
|
+
return l.useContext(Te);
|
|
257
|
+
}
|
|
258
|
+
var Ne = l.createContext({ isTransitioning: !1 });
|
|
259
|
+
Ne.displayName = "ViewTransition";
|
|
260
|
+
var gt = l.createContext(/* @__PURE__ */ new Map());
|
|
261
|
+
gt.displayName = "Fetchers";
|
|
262
|
+
var ie = l.createContext(null);
|
|
263
|
+
ie.displayName = "Await";
|
|
264
|
+
var b = l.createContext(null);
|
|
265
|
+
b.displayName = "Navigation";
|
|
266
|
+
var U = l.createContext(null);
|
|
267
|
+
U.displayName = "Location";
|
|
268
|
+
var T = l.createContext({
|
|
269
|
+
outlet: null,
|
|
270
|
+
matches: [],
|
|
271
|
+
isDataRoute: !1
|
|
272
|
+
});
|
|
273
|
+
T.displayName = "Route";
|
|
274
|
+
var fe = l.createContext(null);
|
|
275
|
+
fe.displayName = "RouteError";
|
|
276
|
+
var Ie = "REACT_ROUTER_ERROR", vt = "REDIRECT", Rt = "ROUTE_ERROR_RESPONSE";
|
|
277
|
+
function wt(e) {
|
|
278
|
+
if (e.startsWith(`${Ie}:${vt}:{`)) try {
|
|
279
|
+
let t = JSON.parse(e.slice(28));
|
|
280
|
+
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
|
+
} catch {
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
function Et(e) {
|
|
285
|
+
if (e.startsWith(`${Ie}:${Rt}:{`)) try {
|
|
286
|
+
let t = JSON.parse(e.slice(40));
|
|
287
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new ht(t.status, t.statusText, t.data);
|
|
288
|
+
} catch {
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
function St(e, { relative: t } = {}) {
|
|
292
|
+
S(j(), "useHref() may be used only in the context of a <Router> component.");
|
|
293
|
+
let { basename: r, navigator: n } = l.useContext(b), { hash: a, pathname: o, search: i } = J(e, { relative: t }), s = o;
|
|
294
|
+
return r !== "/" && (s = o === "/" ? r : k([r, o])), n.createHref({
|
|
295
|
+
pathname: s,
|
|
296
|
+
search: i,
|
|
297
|
+
hash: a
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
function j() {
|
|
301
|
+
return l.useContext(U) != null;
|
|
302
|
+
}
|
|
303
|
+
function $() {
|
|
304
|
+
return S(j(), "useLocation() may be used only in the context of a <Router> component."), l.useContext(U).location;
|
|
305
|
+
}
|
|
306
|
+
var De = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
307
|
+
function Fe(e) {
|
|
308
|
+
l.useContext(b).static || l.useLayoutEffect(e);
|
|
309
|
+
}
|
|
310
|
+
function bt() {
|
|
311
|
+
let { isDataRoute: e } = l.useContext(T);
|
|
312
|
+
return e ? Dt() : xt();
|
|
313
|
+
}
|
|
314
|
+
function xt() {
|
|
315
|
+
S(j(), "useNavigate() may be used only in the context of a <Router> component.");
|
|
316
|
+
let e = l.useContext(F), { basename: t, navigator: r } = l.useContext(b), { matches: n } = l.useContext(T), { pathname: a } = $(), o = JSON.stringify(Pe(n)), i = l.useRef(!1);
|
|
317
|
+
return Fe(() => {
|
|
318
|
+
i.current = !0;
|
|
319
|
+
}), l.useCallback((s, u = {}) => {
|
|
320
|
+
if (C(i.current, De), !i.current) return;
|
|
321
|
+
if (typeof s == "number") {
|
|
322
|
+
r.go(s);
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
let c = de(s, JSON.parse(o), a, u.relative === "path");
|
|
326
|
+
e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : k([t, c.pathname])), (u.replace ? r.replace : r.push)(c, u.state, u);
|
|
327
|
+
}, [
|
|
328
|
+
t,
|
|
329
|
+
r,
|
|
330
|
+
o,
|
|
331
|
+
a,
|
|
332
|
+
e
|
|
333
|
+
]);
|
|
334
|
+
}
|
|
335
|
+
var Mr = l.createContext(null);
|
|
336
|
+
function J(e, { relative: t } = {}) {
|
|
337
|
+
let { matches: r } = l.useContext(T), { pathname: n } = $(), a = JSON.stringify(Pe(r));
|
|
338
|
+
return l.useMemo(() => de(e, JSON.parse(a), n, t === "path"), [
|
|
339
|
+
e,
|
|
340
|
+
a,
|
|
341
|
+
n,
|
|
342
|
+
t
|
|
343
|
+
]);
|
|
344
|
+
}
|
|
345
|
+
function Ct(e, t, r) {
|
|
346
|
+
S(j(), "useRoutes() may be used only in the context of a <Router> component.");
|
|
347
|
+
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
|
+
{
|
|
349
|
+
let m = c && c.path || "";
|
|
350
|
+
We(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
|
+
|
|
352
|
+
Please change the parent <Route path="${m}"> to <Route path="${m === "/" ? "*" : `${m}/*`}">.`);
|
|
353
|
+
}
|
|
354
|
+
let f = $(), d;
|
|
355
|
+
if (t) {
|
|
356
|
+
let m = typeof t == "string" ? W(t) : t;
|
|
357
|
+
S(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
|
+
} else d = f;
|
|
359
|
+
let h = d.pathname || "/", y = h;
|
|
360
|
+
if (u !== "/") {
|
|
361
|
+
let m = u.replace(/^\//, "").split("/");
|
|
362
|
+
y = "/" + h.replace(/^\//, "").split("/").slice(m.length).join("/");
|
|
363
|
+
}
|
|
364
|
+
let g = ce(e, { pathname: y });
|
|
365
|
+
C(c || g != null, `No routes matched location "${d.pathname}${d.search}${d.hash}" `), C(g == null || g[g.length - 1].route.element !== void 0 || g[g.length - 1].route.Component !== void 0 || g[g.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.`);
|
|
366
|
+
let p = _t(g && g.map((m) => Object.assign({}, m, {
|
|
367
|
+
params: Object.assign({}, i, m.params),
|
|
368
|
+
pathname: k([u, n.encodeLocation ? n.encodeLocation(m.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : m.pathname]),
|
|
369
|
+
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
|
+
})), a, r);
|
|
371
|
+
return t && p ? /* @__PURE__ */ l.createElement(U.Provider, { value: {
|
|
372
|
+
location: {
|
|
373
|
+
pathname: "/",
|
|
374
|
+
search: "",
|
|
375
|
+
hash: "",
|
|
376
|
+
state: null,
|
|
377
|
+
key: "default",
|
|
378
|
+
unstable_mask: void 0,
|
|
379
|
+
...d
|
|
380
|
+
},
|
|
381
|
+
navigationType: "POP"
|
|
382
|
+
} }, p) : p;
|
|
383
|
+
}
|
|
384
|
+
function $t() {
|
|
385
|
+
let e = It(), t = Le(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
|
+
padding: "0.5rem",
|
|
387
|
+
backgroundColor: n
|
|
388
|
+
}, o = {
|
|
389
|
+
padding: "2px 4px",
|
|
390
|
+
backgroundColor: n
|
|
391
|
+
}, i = null;
|
|
392
|
+
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
|
+
}
|
|
394
|
+
var Pt = /* @__PURE__ */ l.createElement($t, null), Ae = class extends l.Component {
|
|
395
|
+
constructor(e) {
|
|
396
|
+
super(e), this.state = {
|
|
397
|
+
location: e.location,
|
|
398
|
+
revalidation: e.revalidation,
|
|
399
|
+
error: e.error
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
static getDerivedStateFromError(e) {
|
|
403
|
+
return { error: e };
|
|
404
|
+
}
|
|
405
|
+
static getDerivedStateFromProps(e, t) {
|
|
406
|
+
return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
|
|
407
|
+
error: e.error,
|
|
408
|
+
location: e.location,
|
|
409
|
+
revalidation: e.revalidation
|
|
410
|
+
} : {
|
|
411
|
+
error: e.error !== void 0 ? e.error : t.error,
|
|
412
|
+
location: t.location,
|
|
413
|
+
revalidation: e.revalidation || t.revalidation
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
componentDidCatch(e, t) {
|
|
417
|
+
this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);
|
|
418
|
+
}
|
|
419
|
+
render() {
|
|
420
|
+
let e = this.state.error;
|
|
421
|
+
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
|
|
422
|
+
const r = Et(e.digest);
|
|
423
|
+
r && (e = r);
|
|
424
|
+
}
|
|
425
|
+
let t = e !== void 0 ? /* @__PURE__ */ l.createElement(T.Provider, { value: this.props.routeContext }, /* @__PURE__ */ l.createElement(fe.Provider, {
|
|
426
|
+
value: e,
|
|
427
|
+
children: this.props.component
|
|
428
|
+
})) : this.props.children;
|
|
429
|
+
return this.context ? /* @__PURE__ */ l.createElement(Lt, { error: e }, t) : t;
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
Ae.contextType = Te;
|
|
433
|
+
var ae = /* @__PURE__ */ new WeakMap();
|
|
434
|
+
function Lt({ children: e, error: t }) {
|
|
435
|
+
let { basename: r } = l.useContext(b);
|
|
436
|
+
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
437
|
+
let n = wt(t.digest);
|
|
438
|
+
if (n) {
|
|
439
|
+
let a = ae.get(t);
|
|
440
|
+
if (a) throw a;
|
|
441
|
+
let o = _e(n.location, r);
|
|
442
|
+
if (ke && !ae.get(t)) if (o.isExternal || n.reloadDocument) window.location.href = o.absoluteURL || o.to;
|
|
443
|
+
else {
|
|
444
|
+
const i = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(o.to, { replace: n.replace }));
|
|
445
|
+
throw ae.set(t, i), i;
|
|
446
|
+
}
|
|
447
|
+
return /* @__PURE__ */ l.createElement("meta", {
|
|
448
|
+
httpEquiv: "refresh",
|
|
449
|
+
content: `0;url=${o.absoluteURL || o.to}`
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
return e;
|
|
454
|
+
}
|
|
455
|
+
function kt({ routeContext: e, match: t, children: r }) {
|
|
456
|
+
let n = l.useContext(F);
|
|
457
|
+
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
|
+
}
|
|
459
|
+
function _t(e, t = [], r) {
|
|
460
|
+
let n = r?.state;
|
|
461
|
+
if (e == null) {
|
|
462
|
+
if (!n) return null;
|
|
463
|
+
if (n.errors) e = n.matches;
|
|
464
|
+
else if (t.length === 0 && !n.initialized && n.matches.length > 0) e = n.matches;
|
|
465
|
+
else return null;
|
|
466
|
+
}
|
|
467
|
+
let a = e, o = n?.errors;
|
|
468
|
+
if (o != null) {
|
|
469
|
+
let f = a.findIndex((d) => d.route.id && o?.[d.route.id] !== void 0);
|
|
470
|
+
S(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
|
+
}
|
|
472
|
+
let i = !1, s = -1;
|
|
473
|
+
if (r && n) {
|
|
474
|
+
i = n.renderFallback;
|
|
475
|
+
for (let f = 0; f < a.length; f++) {
|
|
476
|
+
let d = a[f];
|
|
477
|
+
if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (s = f), d.route.id) {
|
|
478
|
+
let { loaderData: h, errors: y } = n, g = d.route.loader && !h.hasOwnProperty(d.route.id) && (!y || y[d.route.id] === void 0);
|
|
479
|
+
if (d.route.lazy || g) {
|
|
480
|
+
r.isStatic && (i = !0), s >= 0 ? a = a.slice(0, s + 1) : a = [a[0]];
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
let u = r?.onError, c = n && u ? (f, d) => {
|
|
487
|
+
u(f, {
|
|
488
|
+
location: n.location,
|
|
489
|
+
params: n.matches?.[0]?.params ?? {},
|
|
490
|
+
unstable_pattern: pt(n.matches),
|
|
491
|
+
errorInfo: d
|
|
492
|
+
});
|
|
493
|
+
} : void 0;
|
|
494
|
+
return a.reduceRight((f, d, h) => {
|
|
495
|
+
let y, g = !1, p = null, m = null;
|
|
496
|
+
n && (y = o && d.route.id ? o[d.route.id] : void 0, p = d.route.errorElement || Pt, i && (s < 0 && h === 0 ? (We("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), g = !0, m = null) : s === h && (g = !0, m = d.route.hydrateFallbackElement || null)));
|
|
497
|
+
let R = t.concat(a.slice(0, h + 1)), w = () => {
|
|
498
|
+
let v;
|
|
499
|
+
return y ? v = p : g ? v = m : d.route.Component ? v = /* @__PURE__ */ l.createElement(d.route.Component, null) : d.route.element ? v = d.route.element : v = f, /* @__PURE__ */ l.createElement(kt, {
|
|
500
|
+
match: d,
|
|
501
|
+
routeContext: {
|
|
502
|
+
outlet: f,
|
|
503
|
+
matches: R,
|
|
504
|
+
isDataRoute: n != null
|
|
505
|
+
},
|
|
506
|
+
children: v
|
|
507
|
+
});
|
|
508
|
+
};
|
|
509
|
+
return n && (d.route.ErrorBoundary || d.route.errorElement || h === 0) ? /* @__PURE__ */ l.createElement(Ae, {
|
|
510
|
+
location: n.location,
|
|
511
|
+
revalidation: n.revalidation,
|
|
512
|
+
component: p,
|
|
513
|
+
error: y,
|
|
514
|
+
children: w(),
|
|
515
|
+
routeContext: {
|
|
516
|
+
outlet: null,
|
|
517
|
+
matches: R,
|
|
518
|
+
isDataRoute: !0
|
|
519
|
+
},
|
|
520
|
+
onError: c
|
|
521
|
+
}) : w();
|
|
522
|
+
}, null);
|
|
523
|
+
}
|
|
524
|
+
function me(e) {
|
|
525
|
+
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
526
|
+
}
|
|
527
|
+
function Ot(e) {
|
|
528
|
+
let t = l.useContext(F);
|
|
529
|
+
return S(t, me(e)), t;
|
|
530
|
+
}
|
|
531
|
+
function he(e) {
|
|
532
|
+
let t = l.useContext(B);
|
|
533
|
+
return S(t, me(e)), t;
|
|
534
|
+
}
|
|
535
|
+
function Tt(e) {
|
|
536
|
+
let t = l.useContext(T);
|
|
537
|
+
return S(t, me(e)), t;
|
|
538
|
+
}
|
|
539
|
+
function pe(e) {
|
|
540
|
+
let t = Tt(e), r = t.matches[t.matches.length - 1];
|
|
541
|
+
return S(r.route.id, `${e} can only be used on routes that contain a unique "id"`), r.route.id;
|
|
542
|
+
}
|
|
543
|
+
function Mt() {
|
|
544
|
+
return pe("useRouteId");
|
|
545
|
+
}
|
|
546
|
+
function Nt() {
|
|
547
|
+
return he("useNavigation").navigation;
|
|
548
|
+
}
|
|
549
|
+
function He() {
|
|
550
|
+
let { matches: e, loaderData: t } = he("useMatches");
|
|
551
|
+
return l.useMemo(() => e.map((r) => qe(r, t)), [e, t]);
|
|
552
|
+
}
|
|
553
|
+
function It() {
|
|
554
|
+
let e = l.useContext(fe), t = he("useRouteError"), r = pe("useRouteError");
|
|
555
|
+
return e !== void 0 ? e : t.errors?.[r];
|
|
556
|
+
}
|
|
557
|
+
function Dt() {
|
|
558
|
+
let { router: e } = Ot("useNavigate"), t = pe("useNavigate"), r = l.useRef(!1);
|
|
559
|
+
return Fe(() => {
|
|
560
|
+
r.current = !0;
|
|
561
|
+
}), l.useCallback(async (n, a = {}) => {
|
|
562
|
+
C(r.current, De), r.current && (typeof n == "number" ? await e.navigate(n) : await e.navigate(n, {
|
|
563
|
+
fromRouteId: t,
|
|
564
|
+
...a
|
|
565
|
+
}));
|
|
566
|
+
}, [e, t]);
|
|
567
|
+
}
|
|
568
|
+
var we = {};
|
|
569
|
+
function We(e, t, r) {
|
|
570
|
+
!t && !we[e] && (we[e] = !0, C(!1, r));
|
|
571
|
+
}
|
|
572
|
+
var Ee = {};
|
|
573
|
+
function Ft(e, t) {
|
|
574
|
+
!e && !Ee[t] && (Ee[t] = !0, console.warn(t));
|
|
575
|
+
}
|
|
576
|
+
var Nr = l.useOptimistic, Ir = l.memo(At);
|
|
577
|
+
function At({ routes: e, future: t, state: r, isStatic: n, onError: a }) {
|
|
578
|
+
return Ct(e, void 0, {
|
|
579
|
+
state: r,
|
|
580
|
+
isStatic: n,
|
|
581
|
+
onError: a,
|
|
582
|
+
future: t
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
function Ht({ basename: e = "/", children: t = null, location: r, navigationType: n = "POP", navigator: a, static: o = !1, unstable_useTransitions: i }) {
|
|
586
|
+
S(!j(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
587
|
+
let s = e.replace(/^\/*/, "/"), u = l.useMemo(() => ({
|
|
588
|
+
basename: s,
|
|
589
|
+
navigator: a,
|
|
590
|
+
static: o,
|
|
591
|
+
unstable_useTransitions: i,
|
|
592
|
+
future: {}
|
|
593
|
+
}), [
|
|
594
|
+
s,
|
|
595
|
+
a,
|
|
596
|
+
o,
|
|
597
|
+
i
|
|
598
|
+
]);
|
|
599
|
+
typeof r == "string" && (r = W(r));
|
|
600
|
+
let { pathname: c = "/", search: f = "", hash: d = "", state: h = null, key: y = "default", unstable_mask: g } = r, p = l.useMemo(() => {
|
|
601
|
+
let m = _(c, s);
|
|
602
|
+
return m == null ? null : {
|
|
603
|
+
location: {
|
|
604
|
+
pathname: m,
|
|
605
|
+
search: f,
|
|
606
|
+
hash: d,
|
|
607
|
+
state: h,
|
|
608
|
+
key: y,
|
|
609
|
+
unstable_mask: g
|
|
610
|
+
},
|
|
611
|
+
navigationType: n
|
|
612
|
+
};
|
|
613
|
+
}, [
|
|
614
|
+
s,
|
|
615
|
+
c,
|
|
616
|
+
f,
|
|
617
|
+
d,
|
|
618
|
+
h,
|
|
619
|
+
y,
|
|
620
|
+
n,
|
|
621
|
+
g
|
|
622
|
+
]);
|
|
623
|
+
return C(p != 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.`), p == null ? null : /* @__PURE__ */ l.createElement(b.Provider, { value: u }, /* @__PURE__ */ l.createElement(U.Provider, {
|
|
624
|
+
children: t,
|
|
625
|
+
value: p
|
|
626
|
+
}));
|
|
627
|
+
}
|
|
628
|
+
var Dr = class extends l.Component {
|
|
629
|
+
constructor(e) {
|
|
630
|
+
super(e), this.state = { error: null };
|
|
631
|
+
}
|
|
632
|
+
static getDerivedStateFromError(e) {
|
|
633
|
+
return { error: e };
|
|
634
|
+
}
|
|
635
|
+
componentDidCatch(e, t) {
|
|
636
|
+
this.props.onError ? this.props.onError(e, t) : console.error("<Await> caught the following error during render", e, t);
|
|
637
|
+
}
|
|
638
|
+
render() {
|
|
639
|
+
let { children: e, errorElement: t, resolve: r } = this.props, n = null, a = 0;
|
|
640
|
+
if (!(r instanceof Promise))
|
|
641
|
+
a = 1, n = Promise.resolve(), Object.defineProperty(n, "_tracked", { get: () => !0 }), Object.defineProperty(n, "_data", { get: () => r });
|
|
642
|
+
else if (this.state.error) {
|
|
643
|
+
a = 2;
|
|
644
|
+
let o = this.state.error;
|
|
645
|
+
n = Promise.reject().catch(() => {
|
|
646
|
+
}), Object.defineProperty(n, "_tracked", { get: () => !0 }), Object.defineProperty(n, "_error", { get: () => o });
|
|
647
|
+
} else r._tracked ? (n = r, a = "_error" in n ? 2 : "_data" in n ? 1 : 0) : (a = 0, Object.defineProperty(r, "_tracked", { get: () => !0 }), n = r.then((o) => Object.defineProperty(r, "_data", { get: () => o }), (o) => {
|
|
648
|
+
this.props.onError?.(o), Object.defineProperty(r, "_error", { get: () => o });
|
|
649
|
+
}));
|
|
650
|
+
if (a === 2 && !t) throw n._error;
|
|
651
|
+
if (a === 2) return /* @__PURE__ */ l.createElement(ie.Provider, {
|
|
652
|
+
value: n,
|
|
653
|
+
children: t
|
|
654
|
+
});
|
|
655
|
+
if (a === 1) return /* @__PURE__ */ l.createElement(ie.Provider, {
|
|
656
|
+
value: n,
|
|
657
|
+
children: e
|
|
658
|
+
});
|
|
659
|
+
throw n;
|
|
660
|
+
}
|
|
661
|
+
}, q = "get", X = "application/x-www-form-urlencoded";
|
|
662
|
+
function Z(e) {
|
|
663
|
+
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
664
|
+
}
|
|
665
|
+
function Wt(e) {
|
|
666
|
+
return Z(e) && e.tagName.toLowerCase() === "button";
|
|
667
|
+
}
|
|
668
|
+
function Bt(e) {
|
|
669
|
+
return Z(e) && e.tagName.toLowerCase() === "form";
|
|
670
|
+
}
|
|
671
|
+
function Ut(e) {
|
|
672
|
+
return Z(e) && e.tagName.toLowerCase() === "input";
|
|
673
|
+
}
|
|
674
|
+
function jt(e) {
|
|
675
|
+
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
676
|
+
}
|
|
677
|
+
function Jt(e, t) {
|
|
678
|
+
return e.button === 0 && (!t || t === "_self") && !jt(e);
|
|
679
|
+
}
|
|
680
|
+
var Y = null;
|
|
681
|
+
function zt() {
|
|
682
|
+
if (Y === null) try {
|
|
683
|
+
new FormData(document.createElement("form"), 0), Y = !1;
|
|
684
|
+
} catch {
|
|
685
|
+
Y = !0;
|
|
686
|
+
}
|
|
687
|
+
return Y;
|
|
688
|
+
}
|
|
689
|
+
var Vt = /* @__PURE__ */ new Set([
|
|
690
|
+
"application/x-www-form-urlencoded",
|
|
691
|
+
"multipart/form-data",
|
|
692
|
+
"text/plain"
|
|
693
|
+
]);
|
|
694
|
+
function oe(e) {
|
|
695
|
+
return e != null && !Vt.has(e) ? (C(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${X}"`), null) : e;
|
|
696
|
+
}
|
|
697
|
+
function Yt(e, t) {
|
|
698
|
+
let r, n, a, o, i;
|
|
699
|
+
if (Bt(e)) {
|
|
700
|
+
let s = e.getAttribute("action");
|
|
701
|
+
n = s ? _(s, t) : null, r = e.getAttribute("method") || q, a = oe(e.getAttribute("enctype")) || X, o = new FormData(e);
|
|
702
|
+
} else if (Wt(e) || Ut(e) && (e.type === "submit" || e.type === "image")) {
|
|
703
|
+
let s = e.form;
|
|
704
|
+
if (s == null) throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
705
|
+
let u = e.getAttribute("formaction") || s.getAttribute("action");
|
|
706
|
+
if (n = u ? _(u, t) : null, r = e.getAttribute("formmethod") || s.getAttribute("method") || q, a = oe(e.getAttribute("formenctype")) || oe(s.getAttribute("enctype")) || X, o = new FormData(s, e), !zt()) {
|
|
707
|
+
let { name: c, type: f, value: d } = e;
|
|
708
|
+
if (f === "image") {
|
|
709
|
+
let h = c ? `${c}.` : "";
|
|
710
|
+
o.append(`${h}x`, "0"), o.append(`${h}y`, "0");
|
|
711
|
+
} else c && o.append(c, d);
|
|
712
|
+
}
|
|
713
|
+
} else {
|
|
714
|
+
if (Z(e)) throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
715
|
+
r = q, n = null, a = X, i = e;
|
|
716
|
+
}
|
|
717
|
+
return o && a === "text/plain" && (i = o, o = void 0), {
|
|
718
|
+
action: n,
|
|
719
|
+
method: r.toLowerCase(),
|
|
720
|
+
encType: a,
|
|
721
|
+
formData: o,
|
|
722
|
+
body: i
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
var Fr = Object.getOwnPropertyNames(Object.prototype).sort().join("\0"), Gt = {
|
|
726
|
+
"&": "\\u0026",
|
|
727
|
+
">": "\\u003e",
|
|
728
|
+
"<": "\\u003c",
|
|
729
|
+
"\u2028": "\\u2028",
|
|
730
|
+
"\u2029": "\\u2029"
|
|
731
|
+
}, qt = /[&><\u2028\u2029]/g;
|
|
732
|
+
function Se(e) {
|
|
733
|
+
return e.replace(qt, (t) => Gt[t]);
|
|
734
|
+
}
|
|
735
|
+
function ee(e, t) {
|
|
736
|
+
if (e === !1 || e === null || typeof e > "u") throw new Error(t);
|
|
737
|
+
}
|
|
738
|
+
function Be(e, t, r, n) {
|
|
739
|
+
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 = `${t.replace(/\/$/, "")}/_root.${n}` : a.pathname = `${a.pathname.replace(/\/$/, "")}.${n}`, a;
|
|
741
|
+
}
|
|
742
|
+
async function Xt(e, t) {
|
|
743
|
+
if (e.id in t) return t[e.id];
|
|
744
|
+
try {
|
|
745
|
+
let r = await import(
|
|
746
|
+
/* @vite-ignore */
|
|
747
|
+
/* webpackIgnore: true */
|
|
748
|
+
e.module
|
|
749
|
+
);
|
|
750
|
+
return t[e.id] = r, r;
|
|
751
|
+
} catch (r) {
|
|
752
|
+
return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(r), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
function Kt(e) {
|
|
757
|
+
return e != null && typeof e.page == "string";
|
|
758
|
+
}
|
|
759
|
+
function Qt(e) {
|
|
760
|
+
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
|
+
}
|
|
762
|
+
async function Zt(e, t, r) {
|
|
763
|
+
return rr((await Promise.all(e.map(async (n) => {
|
|
764
|
+
let a = t.routes[n.route.id];
|
|
765
|
+
if (a) {
|
|
766
|
+
let o = await Xt(a, r);
|
|
767
|
+
return o.links ? o.links() : [];
|
|
768
|
+
}
|
|
769
|
+
return [];
|
|
770
|
+
}))).flat(1).filter(Qt).filter((n) => n.rel === "stylesheet" || n.rel === "preload").map((n) => n.rel === "stylesheet" ? {
|
|
771
|
+
...n,
|
|
772
|
+
rel: "prefetch",
|
|
773
|
+
as: "style"
|
|
774
|
+
} : {
|
|
775
|
+
...n,
|
|
776
|
+
rel: "prefetch"
|
|
777
|
+
}));
|
|
778
|
+
}
|
|
779
|
+
function be(e, t, r, n, a, o) {
|
|
780
|
+
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
|
+
return o === "assets" ? t.filter((u, c) => i(u, c) || s(u, c)) : o === "data" ? t.filter((u, c) => {
|
|
782
|
+
let f = n.routes[u.route.id];
|
|
783
|
+
if (!f || !f.hasLoader) return !1;
|
|
784
|
+
if (i(u, c) || s(u, c)) return !0;
|
|
785
|
+
if (u.route.shouldRevalidate) {
|
|
786
|
+
let d = u.route.shouldRevalidate({
|
|
787
|
+
currentUrl: new URL(a.pathname + a.search + a.hash, window.origin),
|
|
788
|
+
currentParams: r[0]?.params || {},
|
|
789
|
+
nextUrl: new URL(e, window.origin),
|
|
790
|
+
nextParams: u.params,
|
|
791
|
+
defaultShouldRevalidate: !0
|
|
792
|
+
});
|
|
793
|
+
if (typeof d == "boolean") return d;
|
|
794
|
+
}
|
|
795
|
+
return !0;
|
|
796
|
+
}) : [];
|
|
797
|
+
}
|
|
798
|
+
function Ue(e, t, { includeHydrateFallback: r } = {}) {
|
|
799
|
+
return er(e.map((n) => {
|
|
800
|
+
let a = t.routes[n.route.id];
|
|
801
|
+
if (!a) return [];
|
|
802
|
+
let o = [a.module];
|
|
803
|
+
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
|
+
}).flat(1));
|
|
805
|
+
}
|
|
806
|
+
function er(e) {
|
|
807
|
+
return [...new Set(e)];
|
|
808
|
+
}
|
|
809
|
+
function tr(e) {
|
|
810
|
+
let t = {}, r = Object.keys(e).sort();
|
|
811
|
+
for (let n of r) t[n] = e[n];
|
|
812
|
+
return t;
|
|
813
|
+
}
|
|
814
|
+
function rr(e, t) {
|
|
815
|
+
let r = /* @__PURE__ */ new Set(), n = new Set(t);
|
|
816
|
+
return e.reduce((a, o) => {
|
|
817
|
+
if (t && !Kt(o) && o.as === "script" && o.href && n.has(o.href)) return a;
|
|
818
|
+
let i = JSON.stringify(tr(o));
|
|
819
|
+
return r.has(i) || (r.add(i), a.push({
|
|
820
|
+
key: i,
|
|
821
|
+
link: o
|
|
822
|
+
})), a;
|
|
823
|
+
}, []);
|
|
824
|
+
}
|
|
825
|
+
function nr(e, t) {
|
|
826
|
+
return e.mode === "lazy" && t === !0;
|
|
827
|
+
}
|
|
828
|
+
function ar({ sri: e, ...t }, r) {
|
|
829
|
+
let n = new Set(r.state.matches.map((s) => s.route.id)), a = r.state.location.pathname.split("/").filter(Boolean), o = ["/"];
|
|
830
|
+
for (a.pop(); a.length > 0; )
|
|
831
|
+
o.push(`/${a.join("/")}`), a.pop();
|
|
832
|
+
o.forEach((s) => {
|
|
833
|
+
let u = ce(r.routes, s, r.basename);
|
|
834
|
+
u && u.forEach((c) => n.add(c.route.id));
|
|
835
|
+
});
|
|
836
|
+
let i = [...n].reduce((s, u) => Object.assign(s, { [u]: t.routes[u] }), {});
|
|
837
|
+
return {
|
|
838
|
+
...t,
|
|
839
|
+
routes: i,
|
|
840
|
+
sri: e ? !0 : void 0
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
function te() {
|
|
844
|
+
let e = l.useContext(F);
|
|
845
|
+
return ee(e, "You must render this element inside a <DataRouterContext.Provider> element"), e;
|
|
846
|
+
}
|
|
847
|
+
function je() {
|
|
848
|
+
let e = l.useContext(B);
|
|
849
|
+
return ee(e, "You must render this element inside a <DataRouterStateContext.Provider> element"), e;
|
|
850
|
+
}
|
|
851
|
+
var re = l.createContext(void 0);
|
|
852
|
+
re.displayName = "FrameworkContext";
|
|
853
|
+
function z() {
|
|
854
|
+
let e = l.useContext(re);
|
|
855
|
+
return ee(e, "You must render this element inside a <HydratedRouter> element"), e;
|
|
856
|
+
}
|
|
857
|
+
function or(e, t) {
|
|
858
|
+
let r = l.useContext(re), [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
|
+
l.useEffect(() => {
|
|
860
|
+
if (e === "render" && i(!0), e === "viewport") {
|
|
861
|
+
let p = (R) => {
|
|
862
|
+
R.forEach((w) => {
|
|
863
|
+
i(w.isIntersecting);
|
|
864
|
+
});
|
|
865
|
+
}, m = new IntersectionObserver(p, { threshold: 0.5 });
|
|
866
|
+
return h.current && m.observe(h.current), () => {
|
|
867
|
+
m.disconnect();
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
}, [e]), l.useEffect(() => {
|
|
871
|
+
if (n) {
|
|
872
|
+
let p = setTimeout(() => {
|
|
873
|
+
i(!0);
|
|
874
|
+
}, 100);
|
|
875
|
+
return () => {
|
|
876
|
+
clearTimeout(p);
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
}, [n]);
|
|
880
|
+
let y = () => {
|
|
881
|
+
a(!0);
|
|
882
|
+
}, g = () => {
|
|
883
|
+
a(!1), i(!1);
|
|
884
|
+
};
|
|
885
|
+
return r ? e !== "intent" ? [
|
|
886
|
+
o,
|
|
887
|
+
h,
|
|
888
|
+
{}
|
|
889
|
+
] : [
|
|
890
|
+
o,
|
|
891
|
+
h,
|
|
892
|
+
{
|
|
893
|
+
onFocus: H(s, y),
|
|
894
|
+
onBlur: H(u, g),
|
|
895
|
+
onMouseEnter: H(c, y),
|
|
896
|
+
onMouseLeave: H(f, g),
|
|
897
|
+
onTouchStart: H(d, y)
|
|
898
|
+
}
|
|
899
|
+
] : [
|
|
900
|
+
!1,
|
|
901
|
+
h,
|
|
902
|
+
{}
|
|
903
|
+
];
|
|
904
|
+
}
|
|
905
|
+
function H(e, t) {
|
|
906
|
+
return (r) => {
|
|
907
|
+
e && e(r), r.defaultPrevented || t(r);
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
function lr(e, t, r) {
|
|
911
|
+
if (r && !Q) return [e[0]];
|
|
912
|
+
if (t) {
|
|
913
|
+
let n = e.findIndex((a) => t[a.route.id] !== void 0);
|
|
914
|
+
return e.slice(0, n + 1);
|
|
915
|
+
}
|
|
916
|
+
return e;
|
|
917
|
+
}
|
|
918
|
+
function ir({ page: e, ...t }) {
|
|
919
|
+
let r = Me(), { router: n } = te(), a = l.useMemo(() => ce(n.routes, e, n.basename), [
|
|
920
|
+
n.routes,
|
|
921
|
+
e,
|
|
922
|
+
n.basename
|
|
923
|
+
]);
|
|
924
|
+
return a ? r ? /* @__PURE__ */ l.createElement(ur, {
|
|
925
|
+
page: e,
|
|
926
|
+
matches: a,
|
|
927
|
+
...t
|
|
928
|
+
}) : /* @__PURE__ */ l.createElement(cr, {
|
|
929
|
+
page: e,
|
|
930
|
+
matches: a,
|
|
931
|
+
...t
|
|
932
|
+
}) : null;
|
|
933
|
+
}
|
|
934
|
+
function sr(e) {
|
|
935
|
+
let { manifest: t, routeModules: r } = z(), [n, a] = l.useState([]);
|
|
936
|
+
return l.useEffect(() => {
|
|
937
|
+
let o = !1;
|
|
938
|
+
return Zt(e, t, r).then((i) => {
|
|
939
|
+
o || a(i);
|
|
940
|
+
}), () => {
|
|
941
|
+
o = !0;
|
|
942
|
+
};
|
|
943
|
+
}, [
|
|
944
|
+
e,
|
|
945
|
+
t,
|
|
946
|
+
r
|
|
947
|
+
]), n;
|
|
948
|
+
}
|
|
949
|
+
function ur({ page: e, matches: t, ...r }) {
|
|
950
|
+
let n = $(), { future: a } = z(), { basename: o } = te(), i = l.useMemo(() => {
|
|
951
|
+
if (e === n.pathname + n.search + n.hash) return [];
|
|
952
|
+
let s = Be(e, o, a.unstable_trailingSlashAwareDataRequests, "rsc"), u = !1, c = [];
|
|
953
|
+
for (let f of t) typeof f.route.shouldRevalidate == "function" ? u = !0 : c.push(f.route.id);
|
|
954
|
+
return u && c.length > 0 && s.searchParams.set("_routes", c.join(",")), [s.pathname + s.search];
|
|
955
|
+
}, [
|
|
956
|
+
o,
|
|
957
|
+
a.unstable_trailingSlashAwareDataRequests,
|
|
958
|
+
e,
|
|
959
|
+
n,
|
|
960
|
+
t
|
|
961
|
+
]);
|
|
962
|
+
return /* @__PURE__ */ l.createElement(l.Fragment, null, i.map((s) => /* @__PURE__ */ l.createElement("link", {
|
|
963
|
+
key: s,
|
|
964
|
+
rel: "prefetch",
|
|
965
|
+
as: "fetch",
|
|
966
|
+
href: s,
|
|
967
|
+
...r
|
|
968
|
+
})));
|
|
969
|
+
}
|
|
970
|
+
function cr({ page: e, matches: t, ...r }) {
|
|
971
|
+
let n = $(), { future: a, manifest: o, routeModules: i } = z(), { basename: s } = te(), { loaderData: u, matches: c } = je(), f = l.useMemo(() => be(e, t, c, o, n, "data"), [
|
|
972
|
+
e,
|
|
973
|
+
t,
|
|
974
|
+
c,
|
|
975
|
+
o,
|
|
976
|
+
n
|
|
977
|
+
]), d = l.useMemo(() => be(e, t, c, o, n, "assets"), [
|
|
978
|
+
e,
|
|
979
|
+
t,
|
|
980
|
+
c,
|
|
981
|
+
o,
|
|
982
|
+
n
|
|
983
|
+
]), h = l.useMemo(() => {
|
|
984
|
+
if (e === n.pathname + n.search + n.hash) return [];
|
|
985
|
+
let p = /* @__PURE__ */ new Set(), m = !1;
|
|
986
|
+
if (t.forEach((w) => {
|
|
987
|
+
let v = o.routes[w.route.id];
|
|
988
|
+
!v || !v.hasLoader || (!f.some((x) => x.route.id === w.route.id) && w.route.id in u && i[w.route.id]?.shouldRevalidate || v.hasClientLoader ? m = !0 : p.add(w.route.id));
|
|
989
|
+
}), p.size === 0) return [];
|
|
990
|
+
let R = Be(e, s, a.unstable_trailingSlashAwareDataRequests, "data");
|
|
991
|
+
return m && p.size > 0 && R.searchParams.set("_routes", t.filter((w) => p.has(w.route.id)).map((w) => w.route.id).join(",")), [R.pathname + R.search];
|
|
992
|
+
}, [
|
|
993
|
+
s,
|
|
994
|
+
a.unstable_trailingSlashAwareDataRequests,
|
|
995
|
+
u,
|
|
996
|
+
n,
|
|
997
|
+
o,
|
|
998
|
+
f,
|
|
999
|
+
t,
|
|
1000
|
+
e,
|
|
1001
|
+
i
|
|
1002
|
+
]), y = l.useMemo(() => Ue(d, o), [d, o]), g = sr(d);
|
|
1003
|
+
return /* @__PURE__ */ l.createElement(l.Fragment, null, h.map((p) => /* @__PURE__ */ l.createElement("link", {
|
|
1004
|
+
key: p,
|
|
1005
|
+
rel: "prefetch",
|
|
1006
|
+
as: "fetch",
|
|
1007
|
+
href: p,
|
|
1008
|
+
...r
|
|
1009
|
+
})), y.map((p) => /* @__PURE__ */ l.createElement("link", {
|
|
1010
|
+
key: p,
|
|
1011
|
+
rel: "modulepreload",
|
|
1012
|
+
href: p,
|
|
1013
|
+
...r
|
|
1014
|
+
})), g.map(({ key: p, link: m }) => /* @__PURE__ */ l.createElement("link", {
|
|
1015
|
+
key: p,
|
|
1016
|
+
nonce: r.nonce,
|
|
1017
|
+
...m,
|
|
1018
|
+
crossOrigin: m.crossOrigin ?? r.crossOrigin
|
|
1019
|
+
})));
|
|
1020
|
+
}
|
|
1021
|
+
var Q = !1;
|
|
1022
|
+
function dr() {
|
|
1023
|
+
Q = !0;
|
|
1024
|
+
}
|
|
1025
|
+
function fr(e) {
|
|
1026
|
+
let { manifest: t, serverHandoffString: r, isSpaMode: n, renderMeta: a, routeDiscovery: o, ssr: i } = z(), { router: s, static: u, staticContext: c } = te(), { matches: f } = je(), d = Me(), h = nr(o, i);
|
|
1027
|
+
a && (a.didRenderScripts = !0);
|
|
1028
|
+
let y = lr(f, null, n);
|
|
1029
|
+
l.useEffect(() => {
|
|
1030
|
+
dr();
|
|
1031
|
+
}, []);
|
|
1032
|
+
let g = l.useMemo(() => {
|
|
1033
|
+
if (d) return null;
|
|
1034
|
+
let R = c ? `window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());` : " ", w = u ? `${t.hmr?.runtime ? `import ${JSON.stringify(t.hmr.runtime)};` : ""}${h ? "" : `import ${JSON.stringify(t.url)}`};
|
|
1035
|
+
${y.map((v, x) => {
|
|
1036
|
+
let E = `route${x}`, P = t.routes[v.route.id];
|
|
1037
|
+
ee(P, `Route ${v.route.id} not found in manifest`);
|
|
1038
|
+
let { clientActionModule: L, clientLoaderModule: O, clientMiddlewareModule: M, hydrateFallbackModule: D, module: V } = P, A = [
|
|
1039
|
+
...L ? [{
|
|
1040
|
+
module: L,
|
|
1041
|
+
varName: `${E}_clientAction`
|
|
1042
|
+
}] : [],
|
|
1043
|
+
...O ? [{
|
|
1044
|
+
module: O,
|
|
1045
|
+
varName: `${E}_clientLoader`
|
|
1046
|
+
}] : [],
|
|
1047
|
+
...M ? [{
|
|
1048
|
+
module: M,
|
|
1049
|
+
varName: `${E}_clientMiddleware`
|
|
1050
|
+
}] : [],
|
|
1051
|
+
...D ? [{
|
|
1052
|
+
module: D,
|
|
1053
|
+
varName: `${E}_HydrateFallback`
|
|
1054
|
+
}] : [],
|
|
1055
|
+
{
|
|
1056
|
+
module: V,
|
|
1057
|
+
varName: `${E}_main`
|
|
1058
|
+
}
|
|
1059
|
+
];
|
|
1060
|
+
return A.length === 1 ? `import * as ${E} from ${JSON.stringify(V)};` : [A.map((I) => `import * as ${I.varName} from "${I.module}";`).join(`
|
|
1061
|
+
`), `const ${E} = {${A.map((I) => `...${I.varName}`).join(",")}};`].join(`
|
|
1062
|
+
`);
|
|
1063
|
+
}).join(`
|
|
1064
|
+
`)}
|
|
1065
|
+
${h ? `window.__reactRouterManifest = ${JSON.stringify(ar(t, s), null, 2)};` : ""}
|
|
1066
|
+
window.__reactRouterRouteModules = {${y.map((v, x) => `${JSON.stringify(v.route.id)}:route${x}`).join(",")}};
|
|
1067
|
+
|
|
1068
|
+
import(${JSON.stringify(t.entry.module)});` : " ";
|
|
1069
|
+
return /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("script", {
|
|
1070
|
+
...e,
|
|
1071
|
+
suppressHydrationWarning: !0,
|
|
1072
|
+
dangerouslySetInnerHTML: { __html: R },
|
|
1073
|
+
type: void 0
|
|
1074
|
+
}), /* @__PURE__ */ l.createElement("script", {
|
|
1075
|
+
...e,
|
|
1076
|
+
suppressHydrationWarning: !0,
|
|
1077
|
+
dangerouslySetInnerHTML: { __html: w },
|
|
1078
|
+
type: "module",
|
|
1079
|
+
async: !0
|
|
1080
|
+
}));
|
|
1081
|
+
}, []), p = Q || d ? [] : mr(t.entry.imports.concat(Ue(y, t, { includeHydrateFallback: !0 }))), m = typeof t.sri == "object" ? t.sri : {};
|
|
1082
|
+
return Ft(!d, "The <Scripts /> element is a no-op when using RSC and can be safely removed."), Q || d ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, typeof t.sri == "object" ? /* @__PURE__ */ l.createElement("script", {
|
|
1083
|
+
...e,
|
|
1084
|
+
"rr-importmap": "",
|
|
1085
|
+
type: "importmap",
|
|
1086
|
+
suppressHydrationWarning: !0,
|
|
1087
|
+
dangerouslySetInnerHTML: { __html: JSON.stringify({ integrity: m }) }
|
|
1088
|
+
}) : null, h ? null : /* @__PURE__ */ l.createElement("link", {
|
|
1089
|
+
rel: "modulepreload",
|
|
1090
|
+
href: t.url,
|
|
1091
|
+
crossOrigin: e.crossOrigin,
|
|
1092
|
+
integrity: m[t.url],
|
|
1093
|
+
suppressHydrationWarning: !0
|
|
1094
|
+
}), /* @__PURE__ */ l.createElement("link", {
|
|
1095
|
+
rel: "modulepreload",
|
|
1096
|
+
href: t.entry.module,
|
|
1097
|
+
crossOrigin: e.crossOrigin,
|
|
1098
|
+
integrity: m[t.entry.module],
|
|
1099
|
+
suppressHydrationWarning: !0
|
|
1100
|
+
}), p.map((R) => /* @__PURE__ */ l.createElement("link", {
|
|
1101
|
+
key: R,
|
|
1102
|
+
rel: "modulepreload",
|
|
1103
|
+
href: R,
|
|
1104
|
+
crossOrigin: e.crossOrigin,
|
|
1105
|
+
integrity: m[R],
|
|
1106
|
+
suppressHydrationWarning: !0
|
|
1107
|
+
})), g);
|
|
1108
|
+
}
|
|
1109
|
+
function mr(e) {
|
|
1110
|
+
return [...new Set(e)];
|
|
1111
|
+
}
|
|
1112
|
+
function hr(...e) {
|
|
1113
|
+
return (t) => {
|
|
1114
|
+
e.forEach((r) => {
|
|
1115
|
+
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
1116
|
+
});
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
var Ar = class extends l.Component {
|
|
1120
|
+
constructor(e) {
|
|
1121
|
+
super(e), this.state = {
|
|
1122
|
+
error: e.error || null,
|
|
1123
|
+
location: e.location
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
static getDerivedStateFromError(e) {
|
|
1127
|
+
return { error: e };
|
|
1128
|
+
}
|
|
1129
|
+
static getDerivedStateFromProps(e, t) {
|
|
1130
|
+
return t.location !== e.location ? {
|
|
1131
|
+
error: e.error || null,
|
|
1132
|
+
location: e.location
|
|
1133
|
+
} : {
|
|
1134
|
+
error: e.error || t.error,
|
|
1135
|
+
location: t.location
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
render() {
|
|
1139
|
+
return this.state.error ? /* @__PURE__ */ l.createElement(pr, {
|
|
1140
|
+
error: this.state.error,
|
|
1141
|
+
isOutsideRemixApp: !0
|
|
1142
|
+
}) : this.props.children;
|
|
1143
|
+
}
|
|
1144
|
+
};
|
|
1145
|
+
function pr({ error: e, isOutsideRemixApp: t }) {
|
|
1146
|
+
console.error(e);
|
|
1147
|
+
let r = /* @__PURE__ */ l.createElement("script", { dangerouslySetInnerHTML: { __html: `
|
|
1148
|
+
console.log(
|
|
1149
|
+
"💿 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
|
+
);
|
|
1151
|
+
` } });
|
|
1152
|
+
if (Le(e)) return /* @__PURE__ */ l.createElement(xe, { title: "Unhandled Thrown Response!" }, /* @__PURE__ */ l.createElement("h1", { style: { fontSize: "24px" } }, e.status, " ", e.statusText), r);
|
|
1153
|
+
let n;
|
|
1154
|
+
if (e instanceof Error) n = e;
|
|
1155
|
+
else {
|
|
1156
|
+
let a = e == null ? "Unknown Error" : typeof e == "object" && "toString" in e ? e.toString() : JSON.stringify(e);
|
|
1157
|
+
n = new Error(a);
|
|
1158
|
+
}
|
|
1159
|
+
return /* @__PURE__ */ l.createElement(xe, {
|
|
1160
|
+
title: "Application Error!",
|
|
1161
|
+
isOutsideRemixApp: t
|
|
1162
|
+
}, /* @__PURE__ */ l.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ l.createElement("pre", { style: {
|
|
1163
|
+
padding: "2rem",
|
|
1164
|
+
background: "hsla(10, 50%, 50%, 0.1)",
|
|
1165
|
+
color: "red",
|
|
1166
|
+
overflow: "auto"
|
|
1167
|
+
} }, n.stack), r);
|
|
1168
|
+
}
|
|
1169
|
+
function xe({ title: e, renderScripts: t, isOutsideRemixApp: r, children: n }) {
|
|
1170
|
+
let { routeModules: a } = z();
|
|
1171
|
+
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
|
+
name: "viewport",
|
|
1173
|
+
content: "width=device-width,initial-scale=1,viewport-fit=cover"
|
|
1174
|
+
}), /* @__PURE__ */ l.createElement("title", null, e)), /* @__PURE__ */ l.createElement("body", null, /* @__PURE__ */ l.createElement("main", { style: {
|
|
1175
|
+
fontFamily: "system-ui, sans-serif",
|
|
1176
|
+
padding: "2rem"
|
|
1177
|
+
} }, n, t ? /* @__PURE__ */ l.createElement(fr, null) : null)));
|
|
1178
|
+
}
|
|
1179
|
+
var yr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1180
|
+
try {
|
|
1181
|
+
yr && (window.__reactRouterVersion = "7.14.0");
|
|
1182
|
+
} catch {
|
|
1183
|
+
}
|
|
1184
|
+
function gr({ basename: e, children: t, history: r, unstable_useTransitions: n }) {
|
|
1185
|
+
let [a, o] = l.useState({
|
|
1186
|
+
action: r.action,
|
|
1187
|
+
location: r.location
|
|
1188
|
+
}), i = l.useCallback((s) => {
|
|
1189
|
+
n === !1 ? o(s) : l.startTransition(() => o(s));
|
|
1190
|
+
}, [n]);
|
|
1191
|
+
return l.useLayoutEffect(() => r.listen(i), [r, i]), /* @__PURE__ */ l.createElement(Ht, {
|
|
1192
|
+
basename: e,
|
|
1193
|
+
children: t,
|
|
1194
|
+
location: a.location,
|
|
1195
|
+
navigationType: a.action,
|
|
1196
|
+
navigator: r,
|
|
1197
|
+
unstable_useTransitions: n
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
gr.displayName = "unstable_HistoryRouter";
|
|
1201
|
+
var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ze = l.forwardRef(function({ onClick: t, discover: r = "render", prefetch: n = "none", relative: a, reloadDocument: o, replace: i, unstable_mask: s, state: u, target: c, to: f, preventScrollReset: d, viewTransition: h, unstable_defaultShouldRevalidate: y, ...g }, p) {
|
|
1202
|
+
let { basename: m, navigator: R, unstable_useTransitions: w } = l.useContext(b), v = typeof f == "string" && Je.test(f), x = _e(f, m);
|
|
1203
|
+
f = x.to;
|
|
1204
|
+
let E = St(f, { relative: a }), P = $(), L = null;
|
|
1205
|
+
if (s) {
|
|
1206
|
+
let N = de(s, [], P.unstable_mask ? P.unstable_mask.pathname : "/", !0);
|
|
1207
|
+
m !== "/" && (N.pathname = N.pathname === "/" ? m : k([m, N.pathname])), L = R.createHref(N);
|
|
1208
|
+
}
|
|
1209
|
+
let [O, M, D] = or(n, g), V = Sr(f, {
|
|
1210
|
+
replace: i,
|
|
1211
|
+
unstable_mask: s,
|
|
1212
|
+
state: u,
|
|
1213
|
+
target: c,
|
|
1214
|
+
preventScrollReset: d,
|
|
1215
|
+
relative: a,
|
|
1216
|
+
viewTransition: h,
|
|
1217
|
+
unstable_defaultShouldRevalidate: y,
|
|
1218
|
+
unstable_useTransitions: w
|
|
1219
|
+
});
|
|
1220
|
+
function A(N) {
|
|
1221
|
+
t && t(N), N.defaultPrevented || V(N);
|
|
1222
|
+
}
|
|
1223
|
+
let I = !(x.isExternal || o), ge = /* @__PURE__ */ l.createElement("a", {
|
|
1224
|
+
...g,
|
|
1225
|
+
...D,
|
|
1226
|
+
href: (I ? L : void 0) || x.absoluteURL || E,
|
|
1227
|
+
onClick: I ? A : t,
|
|
1228
|
+
ref: hr(p, M),
|
|
1229
|
+
target: c,
|
|
1230
|
+
"data-discover": !v && r === "render" ? "true" : void 0
|
|
1231
|
+
});
|
|
1232
|
+
return O && !v ? /* @__PURE__ */ l.createElement(l.Fragment, null, ge, /* @__PURE__ */ l.createElement(ir, { page: E })) : ge;
|
|
1233
|
+
});
|
|
1234
|
+
ze.displayName = "Link";
|
|
1235
|
+
var vr = 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) {
|
|
1236
|
+
let d = J(i, { relative: c.relative }), h = $(), y = l.useContext(B), { navigator: g, basename: p } = l.useContext(b), m = y != null && kr(d) && s === !0, R = g.encodeLocation ? g.encodeLocation(d).pathname : d.pathname, w = h.pathname, v = y && y.navigation && y.navigation.location ? y.navigation.location.pathname : null;
|
|
1237
|
+
r || (w = w.toLowerCase(), v = v ? v.toLowerCase() : null, R = R.toLowerCase()), v && p && (v = _(v, p) || v);
|
|
1238
|
+
const x = R !== "/" && R.endsWith("/") ? R.length - 1 : R.length;
|
|
1239
|
+
let E = w === R || !a && w.startsWith(R) && w.charAt(x) === "/", P = v != null && (v === R || !a && v.startsWith(R) && v.charAt(R.length) === "/"), L = {
|
|
1240
|
+
isActive: E,
|
|
1241
|
+
isPending: P,
|
|
1242
|
+
isTransitioning: m
|
|
1243
|
+
}, O = E ? t : void 0, M;
|
|
1244
|
+
typeof n == "function" ? M = n(L) : M = [
|
|
1245
|
+
n,
|
|
1246
|
+
E ? "active" : null,
|
|
1247
|
+
P ? "pending" : null,
|
|
1248
|
+
m ? "transitioning" : null
|
|
1249
|
+
].filter(Boolean).join(" ");
|
|
1250
|
+
let D = typeof o == "function" ? o(L) : o;
|
|
1251
|
+
return /* @__PURE__ */ l.createElement(ze, {
|
|
1252
|
+
...c,
|
|
1253
|
+
"aria-current": O,
|
|
1254
|
+
className: M,
|
|
1255
|
+
ref: f,
|
|
1256
|
+
style: D,
|
|
1257
|
+
to: i,
|
|
1258
|
+
viewTransition: s
|
|
1259
|
+
}, typeof u == "function" ? u(L) : u);
|
|
1260
|
+
});
|
|
1261
|
+
vr.displayName = "NavLink";
|
|
1262
|
+
var Rr = l.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: r, reloadDocument: n, replace: a, state: o, method: i = q, action: s, onSubmit: u, relative: c, preventScrollReset: f, viewTransition: d, unstable_defaultShouldRevalidate: h, ...y }, g) => {
|
|
1263
|
+
let { unstable_useTransitions: p } = l.useContext(b), m = Cr(), R = $r(s, { relative: c }), w = i.toLowerCase() === "get" ? "get" : "post", v = typeof s == "string" && Je.test(s), x = (E) => {
|
|
1264
|
+
if (u && u(E), E.defaultPrevented) return;
|
|
1265
|
+
E.preventDefault();
|
|
1266
|
+
let P = E.nativeEvent.submitter, L = P?.getAttribute("formmethod") || i, O = () => m(P || E.currentTarget, {
|
|
1267
|
+
fetcherKey: t,
|
|
1268
|
+
method: L,
|
|
1269
|
+
navigate: r,
|
|
1270
|
+
replace: a,
|
|
1271
|
+
state: o,
|
|
1272
|
+
relative: c,
|
|
1273
|
+
preventScrollReset: f,
|
|
1274
|
+
viewTransition: d,
|
|
1275
|
+
unstable_defaultShouldRevalidate: h
|
|
1276
|
+
});
|
|
1277
|
+
p && r !== !1 ? l.startTransition(() => O()) : O();
|
|
1278
|
+
};
|
|
1279
|
+
return /* @__PURE__ */ l.createElement("form", {
|
|
1280
|
+
ref: g,
|
|
1281
|
+
method: w,
|
|
1282
|
+
action: R,
|
|
1283
|
+
onSubmit: n ? u : x,
|
|
1284
|
+
...y,
|
|
1285
|
+
"data-discover": !v && e === "render" ? "true" : void 0
|
|
1286
|
+
});
|
|
1287
|
+
});
|
|
1288
|
+
Rr.displayName = "Form";
|
|
1289
|
+
function wr({ getKey: e, storageKey: t, ...r }) {
|
|
1290
|
+
let n = l.useContext(re), { basename: a } = l.useContext(b), o = $(), i = He();
|
|
1291
|
+
Pr({
|
|
1292
|
+
getKey: e,
|
|
1293
|
+
storageKey: t
|
|
1294
|
+
});
|
|
1295
|
+
let s = l.useMemo(() => {
|
|
1296
|
+
if (!n || !e) return null;
|
|
1297
|
+
let c = ue(o, i, a, e);
|
|
1298
|
+
return c !== o.key ? c : null;
|
|
1299
|
+
}, []);
|
|
1300
|
+
if (!n || n.isSpaMode) return null;
|
|
1301
|
+
let u = ((c, f) => {
|
|
1302
|
+
if (!window.history.state || !window.history.state.key) {
|
|
1303
|
+
let d = Math.random().toString(32).slice(2);
|
|
1304
|
+
window.history.replaceState({ key: d }, "");
|
|
1305
|
+
}
|
|
1306
|
+
try {
|
|
1307
|
+
let d = JSON.parse(sessionStorage.getItem(c) || "{}")[f || window.history.state.key];
|
|
1308
|
+
typeof d == "number" && window.scrollTo(0, d);
|
|
1309
|
+
} catch (d) {
|
|
1310
|
+
console.error(d), sessionStorage.removeItem(c);
|
|
1311
|
+
}
|
|
1312
|
+
}).toString();
|
|
1313
|
+
return /* @__PURE__ */ l.createElement("script", {
|
|
1314
|
+
...r,
|
|
1315
|
+
suppressHydrationWarning: !0,
|
|
1316
|
+
dangerouslySetInnerHTML: { __html: `(${u})(${Se(JSON.stringify(t || se))}, ${Se(JSON.stringify(s))})` }
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
wr.displayName = "ScrollRestoration";
|
|
1320
|
+
function Ve(e) {
|
|
1321
|
+
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1322
|
+
}
|
|
1323
|
+
function ye(e) {
|
|
1324
|
+
let t = l.useContext(F);
|
|
1325
|
+
return S(t, Ve(e)), t;
|
|
1326
|
+
}
|
|
1327
|
+
function Er(e) {
|
|
1328
|
+
let t = l.useContext(B);
|
|
1329
|
+
return S(t, Ve(e)), t;
|
|
1330
|
+
}
|
|
1331
|
+
function Sr(e, { target: t, replace: r, unstable_mask: n, state: a, preventScrollReset: o, relative: i, viewTransition: s, unstable_defaultShouldRevalidate: u, unstable_useTransitions: c } = {}) {
|
|
1332
|
+
let f = bt(), d = $(), h = J(e, { relative: i });
|
|
1333
|
+
return l.useCallback((y) => {
|
|
1334
|
+
if (Jt(y, t)) {
|
|
1335
|
+
y.preventDefault();
|
|
1336
|
+
let g = r !== void 0 ? r : le(d) === le(h), p = () => f(e, {
|
|
1337
|
+
replace: g,
|
|
1338
|
+
unstable_mask: n,
|
|
1339
|
+
state: a,
|
|
1340
|
+
preventScrollReset: o,
|
|
1341
|
+
relative: i,
|
|
1342
|
+
viewTransition: s,
|
|
1343
|
+
unstable_defaultShouldRevalidate: u
|
|
1344
|
+
});
|
|
1345
|
+
c ? l.startTransition(() => p()) : p();
|
|
1346
|
+
}
|
|
1347
|
+
}, [
|
|
1348
|
+
d,
|
|
1349
|
+
f,
|
|
1350
|
+
h,
|
|
1351
|
+
r,
|
|
1352
|
+
n,
|
|
1353
|
+
a,
|
|
1354
|
+
t,
|
|
1355
|
+
e,
|
|
1356
|
+
o,
|
|
1357
|
+
i,
|
|
1358
|
+
s,
|
|
1359
|
+
u,
|
|
1360
|
+
c
|
|
1361
|
+
]);
|
|
1362
|
+
}
|
|
1363
|
+
var br = 0, xr = () => `__${String(++br)}__`;
|
|
1364
|
+
function Cr() {
|
|
1365
|
+
let { router: e } = ye("useSubmit"), { basename: t } = l.useContext(b), r = Mt(), n = e.fetch, a = e.navigate;
|
|
1366
|
+
return l.useCallback(async (o, i = {}) => {
|
|
1367
|
+
let { action: s, method: u, encType: c, formData: f, body: d } = Yt(o, t);
|
|
1368
|
+
i.navigate === !1 ? await n(i.fetcherKey || xr(), r, i.action || s, {
|
|
1369
|
+
unstable_defaultShouldRevalidate: i.unstable_defaultShouldRevalidate,
|
|
1370
|
+
preventScrollReset: i.preventScrollReset,
|
|
1371
|
+
formData: f,
|
|
1372
|
+
body: d,
|
|
1373
|
+
formMethod: i.method || u,
|
|
1374
|
+
formEncType: i.encType || c,
|
|
1375
|
+
flushSync: i.flushSync
|
|
1376
|
+
}) : await a(i.action || s, {
|
|
1377
|
+
unstable_defaultShouldRevalidate: i.unstable_defaultShouldRevalidate,
|
|
1378
|
+
preventScrollReset: i.preventScrollReset,
|
|
1379
|
+
formData: f,
|
|
1380
|
+
body: d,
|
|
1381
|
+
formMethod: i.method || u,
|
|
1382
|
+
formEncType: i.encType || c,
|
|
1383
|
+
replace: i.replace,
|
|
1384
|
+
state: i.state,
|
|
1385
|
+
fromRouteId: r,
|
|
1386
|
+
flushSync: i.flushSync,
|
|
1387
|
+
viewTransition: i.viewTransition
|
|
1388
|
+
});
|
|
1389
|
+
}, [
|
|
1390
|
+
n,
|
|
1391
|
+
a,
|
|
1392
|
+
t,
|
|
1393
|
+
r
|
|
1394
|
+
]);
|
|
1395
|
+
}
|
|
1396
|
+
function $r(e, { relative: t } = {}) {
|
|
1397
|
+
let { basename: r } = l.useContext(b), n = l.useContext(T);
|
|
1398
|
+
S(n, "useFormAction must be used inside a RouteContext");
|
|
1399
|
+
let [a] = n.matches.slice(-1), o = { ...J(e || ".", { relative: t }) }, i = $();
|
|
1400
|
+
if (e == null) {
|
|
1401
|
+
o.search = i.search;
|
|
1402
|
+
let s = new URLSearchParams(o.search), u = s.getAll("index");
|
|
1403
|
+
if (u.some((c) => c === "")) {
|
|
1404
|
+
s.delete("index"), u.filter((f) => f).forEach((f) => s.append("index", f));
|
|
1405
|
+
let c = s.toString();
|
|
1406
|
+
o.search = c ? `?${c}` : "";
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
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])), le(o);
|
|
1410
|
+
}
|
|
1411
|
+
var se = "react-router-scroll-positions", G = {};
|
|
1412
|
+
function ue(e, t, r, n) {
|
|
1413
|
+
let a = null;
|
|
1414
|
+
return n && (r !== "/" ? a = n({
|
|
1415
|
+
...e,
|
|
1416
|
+
pathname: _(e.pathname, r) || e.pathname
|
|
1417
|
+
}, t) : a = n(e, t)), a == null && (a = e.key), a;
|
|
1418
|
+
}
|
|
1419
|
+
function Pr({ getKey: e, storageKey: t } = {}) {
|
|
1420
|
+
let { router: r } = ye("useScrollRestoration"), { restoreScrollPosition: n, preventScrollReset: a } = Er("useScrollRestoration"), { basename: o } = l.useContext(b), i = $(), s = He(), u = Nt();
|
|
1421
|
+
l.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
1422
|
+
window.history.scrollRestoration = "auto";
|
|
1423
|
+
}), []), Lr(l.useCallback(() => {
|
|
1424
|
+
if (u.state === "idle") {
|
|
1425
|
+
let c = ue(i, s, o, e);
|
|
1426
|
+
G[c] = window.scrollY;
|
|
1427
|
+
}
|
|
1428
|
+
try {
|
|
1429
|
+
sessionStorage.setItem(t || se, JSON.stringify(G));
|
|
1430
|
+
} catch (c) {
|
|
1431
|
+
C(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${c}).`);
|
|
1432
|
+
}
|
|
1433
|
+
window.history.scrollRestoration = "auto";
|
|
1434
|
+
}, [
|
|
1435
|
+
u.state,
|
|
1436
|
+
e,
|
|
1437
|
+
o,
|
|
1438
|
+
i,
|
|
1439
|
+
s,
|
|
1440
|
+
t
|
|
1441
|
+
])), typeof document < "u" && (l.useLayoutEffect(() => {
|
|
1442
|
+
try {
|
|
1443
|
+
let c = sessionStorage.getItem(t || se);
|
|
1444
|
+
c && (G = JSON.parse(c));
|
|
1445
|
+
} catch {
|
|
1446
|
+
}
|
|
1447
|
+
}, [t]), l.useLayoutEffect(() => {
|
|
1448
|
+
let c = r?.enableScrollRestoration(G, () => window.scrollY, e ? (f, d) => ue(f, d, o, e) : void 0);
|
|
1449
|
+
return () => c && c();
|
|
1450
|
+
}, [
|
|
1451
|
+
r,
|
|
1452
|
+
o,
|
|
1453
|
+
e
|
|
1454
|
+
]), l.useLayoutEffect(() => {
|
|
1455
|
+
if (n !== !1) {
|
|
1456
|
+
if (typeof n == "number") {
|
|
1457
|
+
window.scrollTo(0, n);
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
try {
|
|
1461
|
+
if (i.hash) {
|
|
1462
|
+
let c = document.getElementById(decodeURIComponent(i.hash.slice(1)));
|
|
1463
|
+
if (c) {
|
|
1464
|
+
c.scrollIntoView();
|
|
1465
|
+
return;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
} catch {
|
|
1469
|
+
C(!1, `"${i.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
|
|
1470
|
+
}
|
|
1471
|
+
a !== !0 && window.scrollTo(0, 0);
|
|
1472
|
+
}
|
|
1473
|
+
}, [
|
|
1474
|
+
i,
|
|
1475
|
+
n,
|
|
1476
|
+
a
|
|
1477
|
+
]));
|
|
1478
|
+
}
|
|
1479
|
+
function Lr(e, t) {
|
|
1480
|
+
let { capture: r } = t || {};
|
|
1481
|
+
l.useEffect(() => {
|
|
1482
|
+
let n = r != null ? { capture: r } : void 0;
|
|
1483
|
+
return window.addEventListener("pagehide", e, n), () => {
|
|
1484
|
+
window.removeEventListener("pagehide", e, n);
|
|
1485
|
+
};
|
|
1486
|
+
}, [e, r]);
|
|
1487
|
+
}
|
|
1488
|
+
function kr(e, { relative: t } = {}) {
|
|
1489
|
+
let r = l.useContext(Ne);
|
|
1490
|
+
S(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
1491
|
+
let { basename: n } = ye("useViewTransitionState"), a = J(e, { relative: t });
|
|
1492
|
+
if (!r.isTransitioning) return !1;
|
|
1493
|
+
let o = _(r.currentLocation.pathname, n) || r.currentLocation.pathname, i = _(r.nextLocation.pathname, n) || r.nextLocation.pathname;
|
|
1494
|
+
return K(a.pathname, i) != null || K(a.pathname, o) != null;
|
|
1495
|
+
}
|
|
1496
|
+
var Hr = () => {
|
|
1497
|
+
try {
|
|
1498
|
+
return $(), { isInsideRouter: !0 };
|
|
1499
|
+
} catch {
|
|
1500
|
+
return { isInsideRouter: !1 };
|
|
1501
|
+
}
|
|
1502
|
+
};
|
|
1503
|
+
export {
|
|
1504
|
+
ze as n,
|
|
1505
|
+
Hr as t
|
|
1506
|
+
};
|