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