@konstructio/ui 0.1.2-alpha.109 → 0.1.2-alpha.110
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-Crcnz0_g.js → AdditionalOptions-D3SZ2WFJ.js} +1 -1
- package/dist/{AlertDialogTrigger-ouMGAlJW.js → AlertDialogTrigger-Cdw3C2Tv.js} +2 -2
- package/dist/AnimatePresence-V0yte2ER.js +186 -0
- package/dist/{Breadcrumb-MrF1Z6w2.js → Breadcrumb-CHi5-wVa.js} +2 -3
- package/dist/{Checkbox-8KnRLpQG.js → Checkbox-CrNxsm3G.js} +2 -3
- package/dist/{CommandInput-CGnqfudl.js → CommandInput-DiRv6fEA.js} +3 -4
- package/dist/{Counter-CDXdP1Af.js → Counter-DN50BVq6.js} +4 -5
- package/dist/{DayPicker-C22j0Y-u.js → DayPicker-BtpJg2q3.js} +355 -349
- package/dist/{DropdownButton-LEDrhn1j.js → DropdownButton-Blhkj-Oi.js} +114 -117
- package/dist/FlagSelectorList-ClKGwDpS.js +918 -0
- package/dist/{HamburgerTrigger-B_NGSZ2r.js → HamburgerTrigger-DjHmNEJD.js} +2 -3
- package/dist/{ImageUpload-D7HKSXK8.js → ImageUpload-BNZjCUTX.js} +2 -2
- package/dist/{Input-is8n7emP.js → Input-2M2I_H60.js} +3 -5
- package/dist/Loading-u8hXrFJR.js +25 -0
- package/dist/{Modal-DL4p692X.js → Modal-B6lSyPYQ.js} +3 -3
- package/dist/{Spinner-BJE79VTl.js → Spinner-smR3esbL.js} +28 -22
- package/dist/StepIndicatorContent-yB2HfOdY.js +36 -0
- package/dist/{Switch-C7286Bcu.js → Switch-CPE8v6Zh.js} +1 -1
- package/dist/Toast-DTb03cfB.js +76 -0
- package/dist/{Wrapper-a7RVCcrn.js → Wrapper-BxfB3BDa.js} +2 -2
- package/dist/{Wrapper-CyHxGs4E.js → Wrapper-JmStmade.js} +3 -4
- package/dist/{Wrapper-Bbaaa7YA.js → Wrapper-MmlrJppS.js} +76 -70
- package/dist/chevron-down-BODx0Q7h.js +14 -0
- package/dist/chevron-left-B1zWfqll.js +14 -0
- package/dist/chevron-right-D4OkgIIT.js +14 -0
- package/dist/chevron-up-B8hiVgxZ.js +14 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +1 -1
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +2 -2
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +2 -2
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +2 -2
- package/dist/components/Command/components/CommandShortcut.js +1 -1
- package/dist/components/Command/components/DialogContent.js +3 -3
- package/dist/components/Command/components/DialogOverlay.js +2 -2
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/CopyButton/CopyButton.js +2 -2
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +2 -2
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +2 -2
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +3 -3
- package/dist/components/Datepicker/DatePicker.js +4 -4
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/Drawer/components/Body/Body.js +1 -1
- package/dist/components/Drawer/components/Footer/Footer.js +1 -1
- package/dist/components/Drawer/components/Header/Header.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +3 -3
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +3 -3
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Trigger/Trigger.js +2 -2
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +2 -2
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +2 -2
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +3 -3
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +2 -2
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +2 -2
- package/dist/components/Loading/Loading.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +1 -1
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +2 -2
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +2 -2
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
- package/dist/components/Select/components/List/List.js +3 -3
- package/dist/components/Select/components/ListItem/ListItem.js +1 -1
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Label/Label.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Spinner/Spinner.js +3 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/components/Body.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Table/components/Head.js +1 -1
- package/dist/components/Table/components/Row.js +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/components/Content.js +2 -2
- package/dist/components/Tabs/components/List.js +2 -2
- package/dist/components/Tabs/components/Trigger.js +2 -2
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.js +1 -1
- package/dist/components/TagSelect/components/List/List.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +73 -41
- package/dist/components/Toast/ToastProvider.js +19 -0
- package/dist/components/Toast/components/ToastCard/ToastCard.js +103 -0
- package/dist/components/Toast/components/index.js +4 -0
- package/dist/components/Toast/constants/index.js +35 -0
- package/dist/components/Toast/contexts/index.js +4 -0
- package/dist/components/Toast/contexts/toast-store.context.js +5 -0
- package/dist/components/Toast/hooks/index.js +15 -0
- package/dist/components/Toast/hooks/useStackExpansion/useStackExpansion.js +29 -0
- package/dist/components/Toast/hooks/useToast/useToast.js +17 -0
- package/dist/components/Toast/hooks/useToastHeights/useToastHeights.js +23 -0
- package/dist/components/Toast/hooks/useToastSource/useToastSource.js +15 -0
- package/dist/components/Toast/hooks/useToastStore/useToastStore.js +11 -0
- package/dist/components/Toast/hooks/useToastTimer/useToastTimer.js +26 -0
- package/dist/components/Toast/store/create-toast-store.js +46 -0
- package/dist/components/Toast/store/default-toast-store.js +5 -0
- package/dist/components/Toast/store/index.js +6 -0
- package/dist/components/Toast/utils/compute-stack-layout/compute-stack-layout.js +24 -0
- package/dist/components/Toast/utils/index.js +4 -0
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +1 -1
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +1 -1
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +3 -3
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +3 -3
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +2 -2
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +143 -130
- package/dist/{components-CaEW5ge4.js → components-z-LYRWfq.js} +3 -3
- package/dist/{constants-HQIXhj2t.js → constants-q2QnJrOb.js} +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/createLucideIcon-C7E_xycG.js +119 -0
- package/dist/{dist-CszFjHAP.js → dist-Bi8Y5nEx.js} +7 -9
- package/dist/{dist-BIBFLVt1.js → dist-CNui_Egg.js} +9 -10
- package/dist/{dist-pxvIAJzo.js → dist-CR3FMRzF.js} +3 -3
- package/dist/{dist-BbX4Nrk2.js → dist-CgzF5_J6.js} +2 -2
- package/dist/{dist-AxOGvL82.js → dist-D5Q2IYuC.js} +3 -3
- package/dist/dist-D70ZJkHf.js +29 -0
- package/dist/{dist-DwxO2RoR.js → dist-DZ_SU77k.js} +82 -72
- package/dist/{dist-9WbMf_jT.js → dist-DcFwF4XM.js} +1 -1
- package/dist/{dist-iUAHw-3y.js → dist-Dg3vyTx9.js} +6 -6
- package/dist/{dist-ByCJijZd.js → dist-LRkZdylX.js} +4 -4
- package/dist/{dist-DO3apbIh.js → dist-f8EwfITY.js} +3 -3
- package/dist/dist-uerXivvM.js +178 -0
- package/dist/ellipsis-vertical-C_yX7aQe.js +31 -0
- package/dist/{es2015-CoHq2g4y.js → es2015-Hhb87ipX.js} +1 -1
- package/dist/hooks/index.js +8 -6
- package/dist/hooks/useIsHydrated/useIsHydrated.js +6 -0
- package/dist/hooks/useIsHydrated/utils/index.js +4 -0
- package/dist/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.js +5 -0
- package/dist/hooks/useMediaQuery.js +1 -1
- package/dist/index.js +164 -149
- package/dist/lib/components/Command/components/CommandShortcut.d.ts +1 -1
- package/dist/lib/components/Command/contexts/Command.provider.d.ts +1 -1
- package/dist/lib/components/ImageUpload/ImageUpload.d.ts +1 -1
- package/dist/lib/components/Modal/contexts/Modal.provider.d.ts +1 -1
- package/dist/lib/components/Toast/Toast.d.ts +19 -14
- package/dist/lib/components/Toast/Toast.types.d.ts +62 -35
- package/dist/lib/components/Toast/Toast.variants.d.ts +16 -3
- package/dist/lib/components/Toast/ToastProvider.d.ts +11 -0
- package/dist/lib/components/Toast/ToastProvider.types.d.ts +17 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.d.ts +3 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +17 -0
- package/dist/lib/components/Toast/components/index.d.ts +1 -0
- package/dist/lib/components/Toast/constants/index.d.ts +25 -0
- package/dist/lib/components/Toast/contexts/index.d.ts +1 -0
- package/dist/lib/components/Toast/contexts/toast-store.context.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/index.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.types.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useToast/useToast.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.types.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.types.d.ts +11 -0
- package/dist/lib/components/Toast/hooks/useToastStore/useToastStore.d.ts +3 -0
- package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.types.d.ts +7 -0
- package/dist/lib/components/Toast/store/create-toast-store.d.ts +2 -0
- package/dist/lib/components/Toast/store/create-toast-store.types.d.ts +24 -0
- package/dist/lib/components/Toast/store/default-toast-store.d.ts +1 -0
- package/dist/lib/components/Toast/store/index.d.ts +2 -0
- package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.d.ts +2 -0
- package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.types.d.ts +12 -0
- package/dist/lib/components/Toast/utils/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/DotPaginate/DotPaginate.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/FormPaginate/FormPaginate.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/index.d.ts +8 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/useIsHydrated.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/utils/index.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.d.ts +1 -0
- package/dist/{libphonenumber-BMq3Thej.js → libphonenumber-DtibHRPP.js} +123 -114
- package/dist/package.json +28 -28
- package/dist/{phone-number.provider-Dkq_p1Gi.js → phone-number.provider-BASl9fGG.js} +2 -3
- package/dist/{react-DRLuFcbk.js → react-DpRKGbW_.js} +1935 -1841
- package/dist/styles.css +1 -1
- package/dist/{table.provider-CWzODR1t.js → table.provider-MQ4T5Xb5.js} +2 -2
- package/dist/{theme.provider-CSL1WCYG.js → theme.provider-CvL6sqHq.js} +1 -1
- package/dist/{useBreadcrumb-Ds_9BeFz.js → useBreadcrumb-BvP9cgD8.js} +580 -545
- package/dist/utils/index.js +1 -1
- package/dist/{utils-B-6R7kNE.js → utils-DnIJruo0.js} +208 -129
- package/dist/x-C8O1IsaM.js +17 -0
- package/dist/{x-Ierxf0uI.js → x-Vur_9PXW.js} +1 -2
- package/package.json +28 -28
- package/dist/AnimatePresence-C5PSMIZj.js +0 -186
- package/dist/FlagSelectorList-tYZNl-tz.js +0 -863
- package/dist/Loading-DO8JOWBV.js +0 -18
- package/dist/StepIndicatorContent-BGDvxLzV.js +0 -30
- package/dist/Toast-jSx3Lao8.js +0 -461
- package/dist/chevron-down-DNP-OOAQ.js +0 -8
- package/dist/chevron-left-DxGDBBKA.js +0 -8
- package/dist/chevron-right-CDwgDdp-.js +0 -8
- package/dist/chevron-up-Bjpvg6ui.js +0 -8
- package/dist/createLucideIcon-MbzNWCaI.js +0 -42
- package/dist/dist-D5XYRjmR.js +0 -15
- package/dist/dist-DGOjiAnB.js +0 -14
- package/dist/dist-DKryKPmP.js +0 -193
- package/dist/dist-DYIabsrY.js +0 -17
- package/dist/ellipsis-vertical-BBmhzIXn.js +0 -24
- package/dist/x-a_LpoXzG.js +0 -11
package/dist/Loading-DO8JOWBV.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-B-6R7kNE.js";
|
|
2
|
-
import { t as i } from "./createLucideIcon-MbzNWCaI.js";
|
|
3
|
-
import { loadingVariants as t } from "./components/Loading/Loading.variants.js";
|
|
4
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
5
|
-
var m = [["path", {
|
|
6
|
-
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
7
|
-
key: "13zald"
|
|
8
|
-
}]], l = i("loader-circle", m), s = ({ className: a, theme: r, ...o }) => /* @__PURE__ */ d(l, {
|
|
9
|
-
"data-theme": r,
|
|
10
|
-
role: "status",
|
|
11
|
-
"aria-label": "Loading",
|
|
12
|
-
className: e(t({ className: a })),
|
|
13
|
-
...o
|
|
14
|
-
});
|
|
15
|
-
s.displayName = "Loading";
|
|
16
|
-
export {
|
|
17
|
-
s as t
|
|
18
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { t as d } from "./utils-B-6R7kNE.js";
|
|
2
|
-
import { ExclamationIcon as m } from "./assets/icons/components/Exclamation.js";
|
|
3
|
-
import { t as p } from "./createLucideIcon-MbzNWCaI.js";
|
|
4
|
-
import { CHECK_ICON_SIZE_MAP as a, ICON_SIZE_MAP as c } from "./components/Stepper/constants/index.js";
|
|
5
|
-
import { memo as f } from "react";
|
|
6
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
7
|
-
var h = [["path", {
|
|
8
|
-
d: "M20 6 9 17l-5-5",
|
|
9
|
-
key: "1gmf2c"
|
|
10
|
-
}]], I = p("check", h), u = ({ className: r, icons: t, index: i, size: o, status: n }) => n === "completed" ? t?.completed ? /* @__PURE__ */ e("span", {
|
|
11
|
-
className: r,
|
|
12
|
-
children: t.completed
|
|
13
|
-
}) : /* @__PURE__ */ e(I, {
|
|
14
|
-
className: d(a[o], r),
|
|
15
|
-
strokeWidth: 2.5,
|
|
16
|
-
"aria-hidden": "true"
|
|
17
|
-
}) : n === "error" ? t?.error ? /* @__PURE__ */ e("span", {
|
|
18
|
-
className: r,
|
|
19
|
-
children: t.error
|
|
20
|
-
}) : /* @__PURE__ */ e(m, {
|
|
21
|
-
size: c[o],
|
|
22
|
-
className: r
|
|
23
|
-
}) : /* @__PURE__ */ e("span", {
|
|
24
|
-
className: r,
|
|
25
|
-
"aria-hidden": "true",
|
|
26
|
-
children: i + 1
|
|
27
|
-
}), S = f(u);
|
|
28
|
-
export {
|
|
29
|
-
S as t
|
|
30
|
-
};
|
package/dist/Toast-jSx3Lao8.js
DELETED
|
@@ -1,461 +0,0 @@
|
|
|
1
|
-
import { t as Ce } from "./x-Ierxf0uI.js";
|
|
2
|
-
import { a as ce, t as q } from "./dist-xCbHbMLA.js";
|
|
3
|
-
import { n as xe, t as I } from "./dist-CCdbu9GU.js";
|
|
4
|
-
import { n as ue, t as Pe } from "./dist-DX0sBG3Q.js";
|
|
5
|
-
import { t as X } from "./utils-B-6R7kNE.js";
|
|
6
|
-
import { CheckCircleFilledIcon as ye } from "./assets/icons/components/CheckCircleFilled.js";
|
|
7
|
-
import { ErrorIcon as Re } from "./assets/icons/components/Error.js";
|
|
8
|
-
import { InformationOutlineIcon as ge } from "./assets/icons/components/InformationOutline.js";
|
|
9
|
-
import { WarningTriangleIcon as be } from "./assets/icons/components/WarningTriangle.js";
|
|
10
|
-
import { i as Se, n as Ae, r as A, t as _e } from "./dist-D-yS0HN8.js";
|
|
11
|
-
import { t as Y } from "./dist-D5XYRjmR.js";
|
|
12
|
-
import { r as De, t as Ie } from "./dist-DKryKPmP.js";
|
|
13
|
-
import { t as Ne } from "./dist-C4j75TwZ.js";
|
|
14
|
-
import { t as Fe } from "./dist-BUocnzkM.js";
|
|
15
|
-
import { t as Le } from "./dist-DwxO2RoR.js";
|
|
16
|
-
import { closeToastVariants as ke, toastVariants as Me, viewportToastVariants as Oe } from "./components/Toast/Toast.variants.js";
|
|
17
|
-
import * as s from "react";
|
|
18
|
-
import { isValidElement as G, useEffect as Ve, useRef as Ke } from "react";
|
|
19
|
-
import * as We from "react-dom";
|
|
20
|
-
import { Fragment as le, jsx as r, jsxs as D } from "react/jsx-runtime";
|
|
21
|
-
var He = Object.defineProperty, u = (a, e) => He(a, "name", {
|
|
22
|
-
value: e,
|
|
23
|
-
configurable: !0
|
|
24
|
-
}), de = "ToastProvider", [Z, fe, $e] = Le("Toast"), [pe, Ft] = Se("Toast", [$e]), [Xe, z] = pe(de), Ue = /* @__PURE__ */ u((a) => {
|
|
25
|
-
const { __scopeToast: e, label: t = "Notification", duration: o = 5e3, swipeDirection: n = "right", swipeThreshold: l = 50, announcerContainer: E, children: m } = a, [v, C] = s.useState(null), [c, h] = s.useState(0), T = s.useRef(!1);
|
|
26
|
-
return t.trim() || console.error(`Invalid prop \`label\` supplied to \`${de}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ r(Z.Provider, {
|
|
27
|
-
scope: e,
|
|
28
|
-
children: /* @__PURE__ */ r(Xe, {
|
|
29
|
-
scope: e,
|
|
30
|
-
label: t,
|
|
31
|
-
duration: o,
|
|
32
|
-
swipeDirection: n,
|
|
33
|
-
swipeThreshold: l,
|
|
34
|
-
toastCount: c,
|
|
35
|
-
viewport: v,
|
|
36
|
-
onViewportChange: C,
|
|
37
|
-
onToastAdd: s.useCallback(() => h((S) => S + 1), []),
|
|
38
|
-
onToastRemove: s.useCallback(() => h((S) => S - 1), []),
|
|
39
|
-
isClosePausedRef: T,
|
|
40
|
-
announcerContainer: E,
|
|
41
|
-
children: m
|
|
42
|
-
})
|
|
43
|
-
});
|
|
44
|
-
}, "ToastProvider"), Ye = "ToastViewport", ze = ["F8"], J = "toast.viewportPause", Q = "toast.viewportResume", je = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ u(function(e, t) {
|
|
45
|
-
const { __scopeToast: o, hotkey: n = ze, label: l = "Notifications ({hotkey})", ...E } = e, m = z(Ye, o), v = fe(o), C = s.useRef(null), c = s.useRef(null), h = s.useRef(null), T = s.useRef(null), S = ce(t, T, m.onViewportChange), N = n.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = m.toastCount > 0;
|
|
46
|
-
s.useEffect(() => {
|
|
47
|
-
const d = /* @__PURE__ */ u((w) => {
|
|
48
|
-
n.length !== 0 && n.every((p) => w[p] || w.code === p) && T.current?.focus();
|
|
49
|
-
}, "handleKeyDown");
|
|
50
|
-
return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
|
|
51
|
-
}, [n]), s.useEffect(() => {
|
|
52
|
-
const d = C.current, w = T.current;
|
|
53
|
-
if (y && d && w) {
|
|
54
|
-
const p = /* @__PURE__ */ u(() => {
|
|
55
|
-
if (!m.isClosePausedRef.current) {
|
|
56
|
-
const P = new CustomEvent(J);
|
|
57
|
-
w.dispatchEvent(P), m.isClosePausedRef.current = !0;
|
|
58
|
-
}
|
|
59
|
-
}, "handlePause"), g = /* @__PURE__ */ u(() => {
|
|
60
|
-
if (m.isClosePausedRef.current) {
|
|
61
|
-
const P = new CustomEvent(Q);
|
|
62
|
-
w.dispatchEvent(P), m.isClosePausedRef.current = !1;
|
|
63
|
-
}
|
|
64
|
-
}, "handleResume"), x = /* @__PURE__ */ u((P) => {
|
|
65
|
-
d.contains(P.relatedTarget) || g();
|
|
66
|
-
}, "handleFocusOutResume"), R = /* @__PURE__ */ u(() => {
|
|
67
|
-
d.contains(document.activeElement) || g();
|
|
68
|
-
}, "handlePointerLeaveResume");
|
|
69
|
-
return d.addEventListener("focusin", p), d.addEventListener("focusout", x), d.addEventListener("pointermove", p), d.addEventListener("pointerleave", R), window.addEventListener("blur", p), window.addEventListener("focus", g), () => {
|
|
70
|
-
d.removeEventListener("focusin", p), d.removeEventListener("focusout", x), d.removeEventListener("pointermove", p), d.removeEventListener("pointerleave", R), window.removeEventListener("blur", p), window.removeEventListener("focus", g);
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}, [y, m.isClosePausedRef]);
|
|
74
|
-
const f = s.useCallback(({ tabbingDirection: d }) => {
|
|
75
|
-
const w = v().map((p) => {
|
|
76
|
-
const g = p.ref.current, x = [g, ...we(g)];
|
|
77
|
-
return d === "forwards" ? x : x.reverse();
|
|
78
|
-
});
|
|
79
|
-
return (d === "forwards" ? w.reverse() : w).flat();
|
|
80
|
-
}, [v]);
|
|
81
|
-
return s.useEffect(() => {
|
|
82
|
-
const d = T.current;
|
|
83
|
-
if (d) {
|
|
84
|
-
const w = /* @__PURE__ */ u((p) => {
|
|
85
|
-
const g = p.altKey || p.ctrlKey || p.metaKey;
|
|
86
|
-
if (p.key === "Tab" && !g) {
|
|
87
|
-
const x = document.activeElement, R = p.shiftKey;
|
|
88
|
-
if (p.target === d && R) {
|
|
89
|
-
c.current?.focus();
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
const P = f({ tabbingDirection: R ? "backwards" : "forwards" }), V = P.findIndex((F) => F === x);
|
|
93
|
-
U(P.slice(V + 1)) ? p.preventDefault() : R ? c.current?.focus() : h.current?.focus();
|
|
94
|
-
}
|
|
95
|
-
}, "handleKeyDown");
|
|
96
|
-
return d.addEventListener("keydown", w), () => d.removeEventListener("keydown", w);
|
|
97
|
-
}
|
|
98
|
-
}, [v, f]), /* @__PURE__ */ D(Ie, {
|
|
99
|
-
ref: C,
|
|
100
|
-
role: "region",
|
|
101
|
-
"aria-label": l.replace("{hotkey}", N),
|
|
102
|
-
tabIndex: -1,
|
|
103
|
-
style: { pointerEvents: y ? void 0 : "none" },
|
|
104
|
-
children: [
|
|
105
|
-
y && /* @__PURE__ */ r(se, {
|
|
106
|
-
ref: c,
|
|
107
|
-
onFocusFromOutsideViewport: () => {
|
|
108
|
-
U(f({ tabbingDirection: "forwards" }));
|
|
109
|
-
}
|
|
110
|
-
}),
|
|
111
|
-
/* @__PURE__ */ r(Z.Slot, {
|
|
112
|
-
scope: o,
|
|
113
|
-
children: /* @__PURE__ */ r(I.ol, {
|
|
114
|
-
tabIndex: -1,
|
|
115
|
-
...E,
|
|
116
|
-
ref: S
|
|
117
|
-
})
|
|
118
|
-
}),
|
|
119
|
-
y && /* @__PURE__ */ r(se, {
|
|
120
|
-
ref: h,
|
|
121
|
-
onFocusFromOutsideViewport: () => {
|
|
122
|
-
U(f({ tabbingDirection: "backwards" }));
|
|
123
|
-
}
|
|
124
|
-
})
|
|
125
|
-
]
|
|
126
|
-
});
|
|
127
|
-
}, "ToastViewport")), Be = "ToastFocusProxy", se = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ u(function(e, t) {
|
|
128
|
-
const { __scopeToast: o, onFocusFromOutsideViewport: n, ...l } = e, E = z(Be, o);
|
|
129
|
-
return /* @__PURE__ */ r(ue, {
|
|
130
|
-
tabIndex: 0,
|
|
131
|
-
...l,
|
|
132
|
-
ref: t,
|
|
133
|
-
style: { position: "fixed" },
|
|
134
|
-
onFocus: (m) => {
|
|
135
|
-
const v = m.relatedTarget;
|
|
136
|
-
E.viewport?.contains(v) || n();
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
}, "ToastFocusProxy")), j = "Toast", qe = "toast.swipeStart", Ge = "toast.swipeMove", Je = "toast.swipeCancel", Qe = "toast.swipeEnd", Ze = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ u(function(e, t) {
|
|
140
|
-
const { forceMount: o, open: n, defaultOpen: l, onOpenChange: E, ...m } = e, [v, C] = _e({
|
|
141
|
-
prop: n,
|
|
142
|
-
defaultProp: l ?? !0,
|
|
143
|
-
onChange: E,
|
|
144
|
-
caller: j
|
|
145
|
-
});
|
|
146
|
-
return /* @__PURE__ */ r(Fe, {
|
|
147
|
-
present: o || v,
|
|
148
|
-
children: /* @__PURE__ */ r(ot, {
|
|
149
|
-
open: v,
|
|
150
|
-
...m,
|
|
151
|
-
ref: t,
|
|
152
|
-
onClose: () => C(!1),
|
|
153
|
-
onPause: Y(e.onPause),
|
|
154
|
-
onResume: Y(e.onResume),
|
|
155
|
-
onSwipeStart: A(e.onSwipeStart, (c) => {
|
|
156
|
-
c.currentTarget.setAttribute("data-swipe", "start");
|
|
157
|
-
}),
|
|
158
|
-
onSwipeMove: A(e.onSwipeMove, (c) => {
|
|
159
|
-
const { x: h, y: T } = c.detail.delta;
|
|
160
|
-
c.currentTarget.setAttribute("data-swipe", "move"), c.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${h}px`), c.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${T}px`);
|
|
161
|
-
}),
|
|
162
|
-
onSwipeCancel: A(e.onSwipeCancel, (c) => {
|
|
163
|
-
c.currentTarget.setAttribute("data-swipe", "cancel"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
164
|
-
}),
|
|
165
|
-
onSwipeEnd: A(e.onSwipeEnd, (c) => {
|
|
166
|
-
const { x: h, y: T } = c.detail.delta;
|
|
167
|
-
c.currentTarget.setAttribute("data-swipe", "end"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), c.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${h}px`), c.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${T}px`), C(!1);
|
|
168
|
-
})
|
|
169
|
-
})
|
|
170
|
-
});
|
|
171
|
-
}, "Toast")), [et, tt] = pe(j, { onClose() {
|
|
172
|
-
} }), ot = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ u(function(e, t) {
|
|
173
|
-
const { __scopeToast: o, type: n = "foreground", duration: l, open: E, onClose: m, onEscapeKeyDown: v, onPause: C, onResume: c, onSwipeStart: h, onSwipeMove: T, onSwipeCancel: S, onSwipeEnd: N, ...y } = e, f = z(j, o), d = fe(o), [w, p] = s.useState(null), g = ce(t, p), x = s.useRef(null), R = s.useRef(null), P = l || f.duration, V = s.useRef(0), F = s.useRef(P), K = s.useRef(0), { onToastAdd: te, onToastRemove: oe } = f, L = Y(() => {
|
|
174
|
-
w?.contains(document.activeElement) && f.viewport?.focus(), m();
|
|
175
|
-
}), W = s.useCallback((i) => {
|
|
176
|
-
!i || i === 1 / 0 || (window.clearTimeout(K.current), V.current = (/* @__PURE__ */ new Date()).getTime(), K.current = window.setTimeout(L, i));
|
|
177
|
-
}, [L]);
|
|
178
|
-
s.useEffect(() => {
|
|
179
|
-
const i = f.viewport;
|
|
180
|
-
if (i) {
|
|
181
|
-
const b = /* @__PURE__ */ u(() => {
|
|
182
|
-
W(F.current), c?.();
|
|
183
|
-
}, "handleResume"), _ = /* @__PURE__ */ u(() => {
|
|
184
|
-
const k = (/* @__PURE__ */ new Date()).getTime() - V.current;
|
|
185
|
-
F.current = F.current - k, window.clearTimeout(K.current), C?.();
|
|
186
|
-
}, "handlePause");
|
|
187
|
-
return i.addEventListener(J, _), i.addEventListener(Q, b), () => {
|
|
188
|
-
i.removeEventListener(J, _), i.removeEventListener(Q, b);
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
}, [
|
|
192
|
-
f.viewport,
|
|
193
|
-
P,
|
|
194
|
-
C,
|
|
195
|
-
c,
|
|
196
|
-
W
|
|
197
|
-
]), s.useEffect(() => {
|
|
198
|
-
E && !f.isClosePausedRef.current && W(P);
|
|
199
|
-
}, [
|
|
200
|
-
E,
|
|
201
|
-
P,
|
|
202
|
-
f.isClosePausedRef,
|
|
203
|
-
W
|
|
204
|
-
]), s.useEffect(() => () => {
|
|
205
|
-
window.clearTimeout(K.current);
|
|
206
|
-
}, []), s.useEffect(() => (te(), () => oe()), [te, oe]);
|
|
207
|
-
const ne = s.useMemo(() => w ? ee(w) : null, [w]);
|
|
208
|
-
return f.viewport ? /* @__PURE__ */ D(le, { children: [ne && /* @__PURE__ */ r(nt, {
|
|
209
|
-
__scopeToast: o,
|
|
210
|
-
role: "status",
|
|
211
|
-
"aria-live": n === "foreground" ? "assertive" : "polite",
|
|
212
|
-
children: ne
|
|
213
|
-
}), /* @__PURE__ */ r(et, {
|
|
214
|
-
scope: o,
|
|
215
|
-
onClose: L,
|
|
216
|
-
children: We.createPortal(/* @__PURE__ */ r(Z.ItemSlot, {
|
|
217
|
-
scope: o,
|
|
218
|
-
children: /* @__PURE__ */ r(De, {
|
|
219
|
-
asChild: !0,
|
|
220
|
-
onEscapeKeyDown: A(v, (i) => {
|
|
221
|
-
d().some((b) => b.ref.current?.contains(i.target)) || L();
|
|
222
|
-
}),
|
|
223
|
-
children: /* @__PURE__ */ r(I.li, {
|
|
224
|
-
tabIndex: 0,
|
|
225
|
-
"data-state": E ? "open" : "closed",
|
|
226
|
-
"data-swipe-direction": f.swipeDirection,
|
|
227
|
-
...y,
|
|
228
|
-
ref: g,
|
|
229
|
-
style: {
|
|
230
|
-
userSelect: "none",
|
|
231
|
-
touchAction: "none",
|
|
232
|
-
...e.style
|
|
233
|
-
},
|
|
234
|
-
onKeyDown: A(e.onKeyDown, (i) => {
|
|
235
|
-
i.key === "Escape" && (v?.(i.nativeEvent), i.nativeEvent.defaultPrevented || L());
|
|
236
|
-
}),
|
|
237
|
-
onPointerDown: A(e.onPointerDown, (i) => {
|
|
238
|
-
i.button === 0 && (x.current = {
|
|
239
|
-
x: i.clientX,
|
|
240
|
-
y: i.clientY
|
|
241
|
-
});
|
|
242
|
-
}),
|
|
243
|
-
onPointerMove: A(e.onPointerMove, (i) => {
|
|
244
|
-
if (!x.current) return;
|
|
245
|
-
const b = i.clientX - x.current.x, _ = i.clientY - x.current.y, k = !!R.current, M = ["left", "right"].includes(f.swipeDirection), H = ["left", "up"].includes(f.swipeDirection) ? Math.min : Math.max, Ee = M ? H(0, b) : 0, he = M ? 0 : H(0, _), B = i.pointerType === "touch" ? 10 : 2, $ = {
|
|
246
|
-
x: Ee,
|
|
247
|
-
y: he
|
|
248
|
-
}, re = {
|
|
249
|
-
originalEvent: i,
|
|
250
|
-
delta: $
|
|
251
|
-
};
|
|
252
|
-
k ? (R.current = $, O(Ge, T, re, { discrete: !1 })) : ae($, f.swipeDirection, B) ? (R.current = $, O(qe, h, re, { discrete: !1 }), i.target.setPointerCapture(i.pointerId)) : (Math.abs(b) > B || Math.abs(_) > B) && (x.current = null);
|
|
253
|
-
}),
|
|
254
|
-
onPointerUp: A(e.onPointerUp, (i) => {
|
|
255
|
-
const b = R.current, _ = i.target;
|
|
256
|
-
if (_.hasPointerCapture(i.pointerId) && _.releasePointerCapture(i.pointerId), R.current = null, x.current = null, b) {
|
|
257
|
-
const k = i.currentTarget, M = {
|
|
258
|
-
originalEvent: i,
|
|
259
|
-
delta: b
|
|
260
|
-
};
|
|
261
|
-
ae(b, f.swipeDirection, f.swipeThreshold) ? O(Qe, N, M, { discrete: !0 }) : O(Je, S, M, { discrete: !0 }), k.addEventListener("click", (H) => H.preventDefault(), { once: !0 });
|
|
262
|
-
}
|
|
263
|
-
})
|
|
264
|
-
})
|
|
265
|
-
})
|
|
266
|
-
}), f.viewport)
|
|
267
|
-
})] }) : null;
|
|
268
|
-
}, "ToastImpl")), nt = /* @__PURE__ */ u((a) => {
|
|
269
|
-
const { __scopeToast: e, children: t, ...o } = a, n = z(j, e), [l, E] = s.useState(!1), [m, v] = s.useState(!1);
|
|
270
|
-
return Te(() => E(!0)), s.useEffect(() => {
|
|
271
|
-
const C = window.setTimeout(() => v(!0), 1e3);
|
|
272
|
-
return () => window.clearTimeout(C);
|
|
273
|
-
}, []), m ? null : /* @__PURE__ */ r(Ne, {
|
|
274
|
-
asChild: !0,
|
|
275
|
-
container: n.announcerContainer || void 0,
|
|
276
|
-
children: /* @__PURE__ */ r(ue, {
|
|
277
|
-
...o,
|
|
278
|
-
children: l && /* @__PURE__ */ D(le, { children: [
|
|
279
|
-
n.label,
|
|
280
|
-
" ",
|
|
281
|
-
t
|
|
282
|
-
] })
|
|
283
|
-
})
|
|
284
|
-
});
|
|
285
|
-
}, "ToastAnnounce"), rt = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ u(function(e, t) {
|
|
286
|
-
const { __scopeToast: o, ...n } = e;
|
|
287
|
-
return /* @__PURE__ */ r(I.div, {
|
|
288
|
-
...n,
|
|
289
|
-
ref: t
|
|
290
|
-
});
|
|
291
|
-
}, "ToastTitle")), st = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ u(function(e, t) {
|
|
292
|
-
const { __scopeToast: o, ...n } = e;
|
|
293
|
-
return /* @__PURE__ */ r(I.div, {
|
|
294
|
-
...n,
|
|
295
|
-
ref: t
|
|
296
|
-
});
|
|
297
|
-
}, "ToastDescription")), at = "ToastAction", it = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ u(function(e, t) {
|
|
298
|
-
const { altText: o, ...n } = e;
|
|
299
|
-
return o.trim() ? /* @__PURE__ */ r(me, {
|
|
300
|
-
altText: o,
|
|
301
|
-
asChild: !0,
|
|
302
|
-
children: /* @__PURE__ */ r(ut, {
|
|
303
|
-
...n,
|
|
304
|
-
ref: t
|
|
305
|
-
})
|
|
306
|
-
}) : (console.error(`Invalid prop \`altText\` supplied to \`${at}\`. Expected non-empty \`string\`.`), null);
|
|
307
|
-
}, "ToastAction")), ct = "ToastClose", ut = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ u(function(e, t) {
|
|
308
|
-
const { __scopeToast: o, ...n } = e, l = tt(ct, o);
|
|
309
|
-
return /* @__PURE__ */ r(me, {
|
|
310
|
-
asChild: !0,
|
|
311
|
-
children: /* @__PURE__ */ r(I.button, {
|
|
312
|
-
type: "button",
|
|
313
|
-
...n,
|
|
314
|
-
ref: t,
|
|
315
|
-
onClick: A(e.onClick, l.onClose)
|
|
316
|
-
})
|
|
317
|
-
});
|
|
318
|
-
}, "ToastClose")), me = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ u(function(e, t) {
|
|
319
|
-
const { __scopeToast: o, altText: n, ...l } = e;
|
|
320
|
-
return /* @__PURE__ */ r(I.div, {
|
|
321
|
-
"data-radix-toast-announce-exclude": "",
|
|
322
|
-
"data-radix-toast-announce-alt": n || void 0,
|
|
323
|
-
...l,
|
|
324
|
-
ref: t
|
|
325
|
-
});
|
|
326
|
-
}, "ToastAnnounceExclude"));
|
|
327
|
-
function ee(a) {
|
|
328
|
-
const e = [];
|
|
329
|
-
return Array.from(a.childNodes).forEach((t) => {
|
|
330
|
-
if (t.nodeType === t.TEXT_NODE && t.textContent && e.push(t.textContent), ve(t)) {
|
|
331
|
-
const o = t.ariaHidden || t.hidden || t.style.display === "none", n = t.dataset.radixToastAnnounceExclude === "";
|
|
332
|
-
if (!o)
|
|
333
|
-
if (n) {
|
|
334
|
-
const l = t.dataset.radixToastAnnounceAlt;
|
|
335
|
-
l && e.push(l);
|
|
336
|
-
} else e.push(...ee(t));
|
|
337
|
-
}
|
|
338
|
-
}), e;
|
|
339
|
-
}
|
|
340
|
-
u(ee, "getAnnounceTextContent");
|
|
341
|
-
function O(a, e, t, { discrete: o }) {
|
|
342
|
-
const n = t.originalEvent.currentTarget, l = new CustomEvent(a, {
|
|
343
|
-
bubbles: !0,
|
|
344
|
-
cancelable: !0,
|
|
345
|
-
detail: t
|
|
346
|
-
});
|
|
347
|
-
e && n.addEventListener(a, e, { once: !0 }), o ? xe(n, l) : n.dispatchEvent(l);
|
|
348
|
-
}
|
|
349
|
-
u(O, "handleAndDispatchCustomEvent");
|
|
350
|
-
var ae = /* @__PURE__ */ u((a, e, t = 0) => {
|
|
351
|
-
const o = Math.abs(a.x), n = Math.abs(a.y), l = o > n;
|
|
352
|
-
return e === "left" || e === "right" ? l && o > t : !l && n > t;
|
|
353
|
-
}, "isDeltaInDirection");
|
|
354
|
-
function Te(a = () => {
|
|
355
|
-
}) {
|
|
356
|
-
const e = Y(a);
|
|
357
|
-
Ae(() => {
|
|
358
|
-
let t = 0, o = 0;
|
|
359
|
-
return t = window.requestAnimationFrame(() => o = window.requestAnimationFrame(e)), () => {
|
|
360
|
-
window.cancelAnimationFrame(t), window.cancelAnimationFrame(o);
|
|
361
|
-
};
|
|
362
|
-
}, [e]);
|
|
363
|
-
}
|
|
364
|
-
u(Te, "useNextFrame");
|
|
365
|
-
function ve(a) {
|
|
366
|
-
return a.nodeType === a.ELEMENT_NODE;
|
|
367
|
-
}
|
|
368
|
-
u(ve, "isHTMLElement");
|
|
369
|
-
function we(a) {
|
|
370
|
-
const e = [], t = document.createTreeWalker(a, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ u((o) => {
|
|
371
|
-
const n = o.tagName === "INPUT" && o.type === "hidden";
|
|
372
|
-
return o.disabled || o.hidden || n ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
373
|
-
}, "acceptNode") });
|
|
374
|
-
for (; t.nextNode(); ) e.push(t.currentNode);
|
|
375
|
-
return e;
|
|
376
|
-
}
|
|
377
|
-
u(we, "getTabbableCandidates");
|
|
378
|
-
function U(a) {
|
|
379
|
-
const e = document.activeElement;
|
|
380
|
-
return a.some((t) => t === e ? !0 : (t.focus(), document.activeElement !== e));
|
|
381
|
-
}
|
|
382
|
-
u(U, "focusFirst");
|
|
383
|
-
var lt = Ue, dt = je, ft = Ze, pt = rt, ie = st, mt = it, Lt = ({ title: a, duration: e = 5e3, titleClassName: t, descriptionClassName: o, description: n, children: l, theme: E, showCloseButton: m = !0, closeButtonClassName: v, className: C, open: c = !1, setOpen: h, variant: T }) => {
|
|
384
|
-
const S = Ke(0);
|
|
385
|
-
Ve(() => () => clearTimeout(S.current), []);
|
|
386
|
-
const N = G(a) ? /* @__PURE__ */ r(q, {
|
|
387
|
-
className: t,
|
|
388
|
-
children: a
|
|
389
|
-
}) : a, y = G(n) ? /* @__PURE__ */ r(q, {
|
|
390
|
-
className: o,
|
|
391
|
-
children: n
|
|
392
|
-
}) : n;
|
|
393
|
-
return /* @__PURE__ */ D(lt, {
|
|
394
|
-
swipeDirection: "right",
|
|
395
|
-
duration: e,
|
|
396
|
-
children: [
|
|
397
|
-
/* @__PURE__ */ r(q, {
|
|
398
|
-
onClick: () => {
|
|
399
|
-
h(!1), S.current = window.setTimeout(() => h(!0), 100);
|
|
400
|
-
},
|
|
401
|
-
children: l
|
|
402
|
-
}),
|
|
403
|
-
/* @__PURE__ */ D(ft, {
|
|
404
|
-
className: X(Me({
|
|
405
|
-
variant: T,
|
|
406
|
-
className: C
|
|
407
|
-
})),
|
|
408
|
-
"data-theme": E,
|
|
409
|
-
open: c,
|
|
410
|
-
onOpenChange: h,
|
|
411
|
-
children: [/* @__PURE__ */ D("div", {
|
|
412
|
-
className: "flex gap-2 items-center flex-1",
|
|
413
|
-
children: [
|
|
414
|
-
T === "success" && /* @__PURE__ */ r(ye, {
|
|
415
|
-
size: 20,
|
|
416
|
-
className: "shrink-0"
|
|
417
|
-
}),
|
|
418
|
-
T === "error" && /* @__PURE__ */ r(Re, {
|
|
419
|
-
size: 20,
|
|
420
|
-
className: "shrink-0"
|
|
421
|
-
}),
|
|
422
|
-
T === "warning" && /* @__PURE__ */ r(be, {
|
|
423
|
-
size: 20,
|
|
424
|
-
className: "shrink-0"
|
|
425
|
-
}),
|
|
426
|
-
T === "info" && /* @__PURE__ */ r(ge, {
|
|
427
|
-
size: 20,
|
|
428
|
-
className: "shrink-0"
|
|
429
|
-
}),
|
|
430
|
-
/* @__PURE__ */ D("div", {
|
|
431
|
-
className: "flex flex-col gap-1",
|
|
432
|
-
children: [/* @__PURE__ */ r(pt, {
|
|
433
|
-
asChild: !0,
|
|
434
|
-
className: t,
|
|
435
|
-
children: N
|
|
436
|
-
}), y && (G(y) ? /* @__PURE__ */ r(ie, {
|
|
437
|
-
asChild: !0,
|
|
438
|
-
children: y
|
|
439
|
-
}) : /* @__PURE__ */ r(ie, {
|
|
440
|
-
className: X("text-sm", o),
|
|
441
|
-
children: y
|
|
442
|
-
}))]
|
|
443
|
-
})
|
|
444
|
-
]
|
|
445
|
-
}), m && /* @__PURE__ */ r(mt, {
|
|
446
|
-
asChild: !0,
|
|
447
|
-
altText: "Close the toast",
|
|
448
|
-
children: /* @__PURE__ */ D("button", {
|
|
449
|
-
type: "button",
|
|
450
|
-
className: "cursor-pointer",
|
|
451
|
-
children: [/* @__PURE__ */ r(Ce, { className: X(ke({ className: v })) }), /* @__PURE__ */ r(Pe, { children: "Close toast" })]
|
|
452
|
-
})
|
|
453
|
-
})]
|
|
454
|
-
}),
|
|
455
|
-
/* @__PURE__ */ r(dt, { className: X(Oe()) })
|
|
456
|
-
]
|
|
457
|
-
});
|
|
458
|
-
};
|
|
459
|
-
export {
|
|
460
|
-
Lt as t
|
|
461
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { createContext as A, createElement as c, forwardRef as C, useContext as b } from "react";
|
|
2
|
-
var h = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), L = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), W = (t) => t.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, r, o) => o ? o.toUpperCase() : r.toLowerCase()), d = (t) => {
|
|
3
|
-
const e = W(t);
|
|
4
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
5
|
-
}, n = {
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
width: 24,
|
|
8
|
-
height: 24,
|
|
9
|
-
viewBox: "0 0 24 24",
|
|
10
|
-
fill: "none",
|
|
11
|
-
stroke: "currentColor",
|
|
12
|
-
strokeWidth: 2,
|
|
13
|
-
strokeLinecap: "round",
|
|
14
|
-
strokeLinejoin: "round"
|
|
15
|
-
}, S = (t) => {
|
|
16
|
-
for (const e in t) if (e.startsWith("aria-") || e === "role" || e === "title") return !0;
|
|
17
|
-
return !1;
|
|
18
|
-
}, y = A({}), $ = () => b(y), j = C(({ color: t, size: e, strokeWidth: r, absoluteStrokeWidth: o, className: s = "", children: a, iconNode: m, ...l }, p) => {
|
|
19
|
-
const { size: i = 24, strokeWidth: u = 2, absoluteStrokeWidth: v = !1, color: x = "currentColor", className: w = "" } = $() ?? {}, f = o ?? v ? Number(r ?? u) * 24 / Number(e ?? i) : r ?? u;
|
|
20
|
-
return c("svg", {
|
|
21
|
-
ref: p,
|
|
22
|
-
...n,
|
|
23
|
-
width: e ?? i ?? n.width,
|
|
24
|
-
height: e ?? i ?? n.height,
|
|
25
|
-
stroke: t ?? x,
|
|
26
|
-
strokeWidth: f,
|
|
27
|
-
className: h("lucide", w, s),
|
|
28
|
-
...!a && !S(l) && { "aria-hidden": "true" },
|
|
29
|
-
...l
|
|
30
|
-
}, [...m.map(([k, g]) => c(k, g)), ...Array.isArray(a) ? a : [a]]);
|
|
31
|
-
}), N = (t, e) => {
|
|
32
|
-
const r = C(({ className: o, ...s }, a) => c(j, {
|
|
33
|
-
ref: a,
|
|
34
|
-
iconNode: e,
|
|
35
|
-
className: h(`lucide-${L(d(t))}`, `lucide-${t}`, o),
|
|
36
|
-
...s
|
|
37
|
-
}));
|
|
38
|
-
return r.displayName = d(t), r;
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
N as t
|
|
42
|
-
};
|
package/dist/dist-D5XYRjmR.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as t from "react";
|
|
2
|
-
var f = Object.defineProperty, u = (e, r) => f(e, "name", {
|
|
3
|
-
value: r,
|
|
4
|
-
configurable: !0
|
|
5
|
-
});
|
|
6
|
-
function c(e) {
|
|
7
|
-
const r = t.useRef(e);
|
|
8
|
-
return t.useEffect(() => {
|
|
9
|
-
r.current = e;
|
|
10
|
-
}), t.useMemo(() => ((...a) => r.current?.(...a)), []);
|
|
11
|
-
}
|
|
12
|
-
u(c, "useCallbackRef");
|
|
13
|
-
export {
|
|
14
|
-
c as t
|
|
15
|
-
};
|
package/dist/dist-DGOjiAnB.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as r from "react";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
var o = Object.defineProperty, n = (e, t) => o(e, "name", {
|
|
4
|
-
value: t,
|
|
5
|
-
configurable: !0
|
|
6
|
-
}), i = r.createContext(void 0);
|
|
7
|
-
function a(e) {
|
|
8
|
-
const t = r.useContext(i);
|
|
9
|
-
return e || t || "ltr";
|
|
10
|
-
}
|
|
11
|
-
n(a, "useDirection");
|
|
12
|
-
export {
|
|
13
|
-
a as t
|
|
14
|
-
};
|