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