@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { i as
|
|
1
|
+
import { a as _, n as z } from "./dist-xCbHbMLA.js";
|
|
2
|
+
import { i as K } from "./dist-D-yS0HN8.js";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import { jsx as M } from "react/jsx-runtime";
|
|
5
5
|
var H = Object.defineProperty, f = (r, e) => H(r, "name", {
|
|
@@ -8,7 +8,7 @@ var H = Object.defineProperty, f = (r, e) => H(r, "name", {
|
|
|
8
8
|
});
|
|
9
9
|
// @__NO_SIDE_EFFECTS__
|
|
10
10
|
function J(r) {
|
|
11
|
-
const e = r + "CollectionProvider", [t, o] =
|
|
11
|
+
const e = r + "CollectionProvider", [t, o] = K(e), [n, i] = t(e, {
|
|
12
12
|
collectionRef: { current: null },
|
|
13
13
|
itemMap: /* @__PURE__ */ new Map()
|
|
14
14
|
}), c = /* @__PURE__ */ f((m) => {
|
|
@@ -21,81 +21,81 @@ function J(r) {
|
|
|
21
21
|
});
|
|
22
22
|
}, "CollectionProvider");
|
|
23
23
|
c.displayName = e;
|
|
24
|
-
const a = r + "CollectionSlot",
|
|
25
|
-
const { scope: I, children: s } = m, l = i(a, I), p =
|
|
26
|
-
return /* @__PURE__ */ M(
|
|
24
|
+
const a = r + "CollectionSlot", v = z(a), E = u.forwardRef((m, h) => {
|
|
25
|
+
const { scope: I, children: s } = m, l = i(a, I), p = _(h, l.collectionRef);
|
|
26
|
+
return /* @__PURE__ */ M(v, {
|
|
27
27
|
ref: p,
|
|
28
28
|
children: s
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
E.displayName = a;
|
|
32
|
-
const
|
|
33
|
-
const { scope: I, children: s, ...l } = m, p = u.useRef(null),
|
|
32
|
+
const x = r + "CollectionItemSlot", S = "data-radix-collection-item", A = z(x), d = u.forwardRef((m, h) => {
|
|
33
|
+
const { scope: I, children: s, ...l } = m, p = u.useRef(null), w = _(h, p), R = i(x, I);
|
|
34
34
|
return u.useEffect(() => (R.itemMap.set(p, {
|
|
35
35
|
ref: p,
|
|
36
36
|
...l
|
|
37
37
|
}), () => {
|
|
38
38
|
R.itemMap.delete(p);
|
|
39
39
|
})), /* @__PURE__ */ M(A, {
|
|
40
|
-
[
|
|
41
|
-
ref:
|
|
40
|
+
[S]: "",
|
|
41
|
+
ref: w,
|
|
42
42
|
children: s
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
|
-
d.displayName =
|
|
46
|
-
function
|
|
45
|
+
d.displayName = x;
|
|
46
|
+
function y(m) {
|
|
47
47
|
const h = i(r + "CollectionConsumer", m);
|
|
48
48
|
return u.useCallback(() => {
|
|
49
49
|
const I = h.collectionRef.current;
|
|
50
50
|
if (!I) return [];
|
|
51
|
-
const s = Array.from(I.querySelectorAll(`[${
|
|
51
|
+
const s = Array.from(I.querySelectorAll(`[${S}]`));
|
|
52
52
|
return Array.from(h.itemMap.values()).sort((l, p) => s.indexOf(l.ref.current) - s.indexOf(p.ref.current));
|
|
53
53
|
}, [h.collectionRef, h.itemMap]);
|
|
54
54
|
}
|
|
55
|
-
return f(
|
|
55
|
+
return f(y, "useCollection"), [
|
|
56
56
|
{
|
|
57
57
|
Provider: c,
|
|
58
58
|
Slot: E,
|
|
59
59
|
ItemSlot: d
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
y,
|
|
62
62
|
o
|
|
63
63
|
];
|
|
64
64
|
}
|
|
65
65
|
f(J, "createCollection");
|
|
66
|
-
var
|
|
66
|
+
var q = /* @__PURE__ */ new WeakMap(), L = class g extends Map {
|
|
67
67
|
static {
|
|
68
68
|
f(this, "OrderedDict");
|
|
69
69
|
}
|
|
70
70
|
#e;
|
|
71
71
|
constructor(e) {
|
|
72
|
-
super(e), this.#e = [...super.keys()],
|
|
72
|
+
super(e), this.#e = [...super.keys()], q.set(this, !0);
|
|
73
73
|
}
|
|
74
74
|
set(e, t) {
|
|
75
|
-
return
|
|
75
|
+
return q.get(this) && (this.has(e) ? this.#e[this.#e.indexOf(e)] = e : this.#e.push(e)), super.set(e, t), this;
|
|
76
76
|
}
|
|
77
77
|
insert(e, t, o) {
|
|
78
78
|
const n = this.has(t), i = this.#e.length, c = V(e);
|
|
79
79
|
let a = c >= 0 ? c : i + c;
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
80
|
+
const v = a < 0 || a >= i ? -1 : a;
|
|
81
|
+
if (v === this.size || n && v === this.size - 1 || v === -1)
|
|
82
82
|
return this.set(t, o), this;
|
|
83
83
|
const E = this.size + (n ? 0 : 1);
|
|
84
84
|
c < 0 && a++;
|
|
85
|
-
const
|
|
86
|
-
let
|
|
85
|
+
const x = [...this.#e];
|
|
86
|
+
let S, A = !1;
|
|
87
87
|
for (let d = a; d < E; d++) if (a === d) {
|
|
88
|
-
let
|
|
89
|
-
|
|
88
|
+
let y = x[d];
|
|
89
|
+
x[d] === t && (y = x[d + 1]), n && this.delete(t), S = this.get(y), this.set(t, o);
|
|
90
90
|
} else {
|
|
91
|
-
!A &&
|
|
92
|
-
const
|
|
93
|
-
|
|
91
|
+
!A && x[d - 1] === t && (A = !0);
|
|
92
|
+
const y = x[A ? d : d - 1], m = S;
|
|
93
|
+
S = this.get(y), this.delete(y), this.set(y, m);
|
|
94
94
|
}
|
|
95
95
|
return this;
|
|
96
96
|
}
|
|
97
97
|
with(e, t, o) {
|
|
98
|
-
const n = new
|
|
98
|
+
const n = new g(this);
|
|
99
99
|
return n.insert(e, t, o), n;
|
|
100
100
|
}
|
|
101
101
|
before(e) {
|
|
@@ -134,18 +134,18 @@ var K = /* @__PURE__ */ new WeakMap(), b = class w extends Map {
|
|
|
134
134
|
return t !== void 0 ? this.delete(t) : !1;
|
|
135
135
|
}
|
|
136
136
|
at(e) {
|
|
137
|
-
const t =
|
|
137
|
+
const t = T(this.#e, e);
|
|
138
138
|
if (t !== void 0) return this.get(t);
|
|
139
139
|
}
|
|
140
140
|
entryAt(e) {
|
|
141
|
-
const t =
|
|
141
|
+
const t = T(this.#e, e);
|
|
142
142
|
if (t !== void 0) return [t, this.get(t)];
|
|
143
143
|
}
|
|
144
144
|
indexOf(e) {
|
|
145
145
|
return this.#e.indexOf(e);
|
|
146
146
|
}
|
|
147
147
|
keyAt(e) {
|
|
148
|
-
return
|
|
148
|
+
return T(this.#e, e);
|
|
149
149
|
}
|
|
150
150
|
from(e, t) {
|
|
151
151
|
const o = this.indexOf(e);
|
|
@@ -191,7 +191,7 @@ var K = /* @__PURE__ */ new WeakMap(), b = class w extends Map {
|
|
|
191
191
|
n,
|
|
192
192
|
this
|
|
193
193
|
]) && o.push(i), n++;
|
|
194
|
-
return new
|
|
194
|
+
return new g(o);
|
|
195
195
|
}
|
|
196
196
|
map(e, t) {
|
|
197
197
|
const o = [];
|
|
@@ -202,7 +202,7 @@ var K = /* @__PURE__ */ new WeakMap(), b = class w extends Map {
|
|
|
202
202
|
n,
|
|
203
203
|
this
|
|
204
204
|
])]), n++;
|
|
205
|
-
return new
|
|
205
|
+
return new g(o);
|
|
206
206
|
}
|
|
207
207
|
reduce(...e) {
|
|
208
208
|
const [t, o] = e;
|
|
@@ -232,10 +232,10 @@ var K = /* @__PURE__ */ new WeakMap(), b = class w extends Map {
|
|
|
232
232
|
}
|
|
233
233
|
toSorted(e) {
|
|
234
234
|
const t = [...this.entries()].sort(e);
|
|
235
|
-
return new
|
|
235
|
+
return new g(t);
|
|
236
236
|
}
|
|
237
237
|
toReversed() {
|
|
238
|
-
const e = new
|
|
238
|
+
const e = new g();
|
|
239
239
|
for (let t = this.size - 1; t >= 0; t--) {
|
|
240
240
|
const o = this.keyAt(t), n = this.get(o);
|
|
241
241
|
e.set(o, n);
|
|
@@ -244,10 +244,10 @@ var K = /* @__PURE__ */ new WeakMap(), b = class w extends Map {
|
|
|
244
244
|
}
|
|
245
245
|
toSpliced(...e) {
|
|
246
246
|
const t = [...this.entries()];
|
|
247
|
-
return t.splice(...e), new
|
|
247
|
+
return t.splice(...e), new g(t);
|
|
248
248
|
}
|
|
249
249
|
slice(e, t) {
|
|
250
|
-
const o = new
|
|
250
|
+
const o = new g();
|
|
251
251
|
let n = this.size - 1;
|
|
252
252
|
if (e === void 0) return o;
|
|
253
253
|
e < 0 && (e = e + this.size), t !== void 0 && t > 0 && (n = t - 1);
|
|
@@ -282,12 +282,12 @@ var K = /* @__PURE__ */ new WeakMap(), b = class w extends Map {
|
|
|
282
282
|
return !1;
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
|
-
function
|
|
285
|
+
function T(r, e) {
|
|
286
286
|
if ("at" in Array.prototype) return Array.prototype.at.call(r, e);
|
|
287
287
|
const t = F(r, e);
|
|
288
288
|
return t === -1 ? void 0 : r[t];
|
|
289
289
|
}
|
|
290
|
-
f(
|
|
290
|
+
f(T, "at");
|
|
291
291
|
function F(r, e) {
|
|
292
292
|
const t = r.length, o = V(e), n = o >= 0 ? o : t + o;
|
|
293
293
|
return n < 0 || n >= t ? -1 : n;
|
|
@@ -299,85 +299,85 @@ function V(r) {
|
|
|
299
299
|
f(V, "toSafeInteger");
|
|
300
300
|
// @__NO_SIDE_EFFECTS__
|
|
301
301
|
function Q(r) {
|
|
302
|
-
const e = r + "CollectionProvider", [t, o] =
|
|
302
|
+
const e = r + "CollectionProvider", [t, o] = K(e), [n, i] = t(e, {
|
|
303
303
|
collectionElement: null,
|
|
304
304
|
collectionRef: { current: null },
|
|
305
305
|
collectionRefObject: { current: null },
|
|
306
|
-
itemMap: new
|
|
306
|
+
itemMap: new L(),
|
|
307
307
|
setItemMap: /* @__PURE__ */ f(() => {
|
|
308
308
|
}, "setItemMap")
|
|
309
|
-
}), c = /* @__PURE__ */ f(({ state: s, ...l }) => s ? /* @__PURE__ */ M(
|
|
309
|
+
}), c = /* @__PURE__ */ f(({ state: s, ...l }) => s ? /* @__PURE__ */ M(v, {
|
|
310
310
|
...l,
|
|
311
311
|
state: s
|
|
312
312
|
}) : /* @__PURE__ */ M(a, { ...l }), "CollectionProvider");
|
|
313
313
|
c.displayName = e;
|
|
314
314
|
const a = /* @__PURE__ */ f((s) => {
|
|
315
315
|
const l = h();
|
|
316
|
-
return /* @__PURE__ */ M(
|
|
316
|
+
return /* @__PURE__ */ M(v, {
|
|
317
317
|
...s,
|
|
318
318
|
state: l
|
|
319
319
|
});
|
|
320
320
|
}, "CollectionInit");
|
|
321
321
|
a.displayName = e + "Init";
|
|
322
|
-
const
|
|
323
|
-
const { scope: l, children: p, state:
|
|
322
|
+
const v = /* @__PURE__ */ f((s) => {
|
|
323
|
+
const { scope: l, children: p, state: w } = s, R = u.useRef(null), [P, C] = u.useState(null), k = _(R, C), [b, D] = w;
|
|
324
324
|
return u.useEffect(() => {
|
|
325
325
|
if (!P) return;
|
|
326
|
-
const
|
|
326
|
+
const N = W(() => {
|
|
327
327
|
});
|
|
328
|
-
return
|
|
328
|
+
return N.observe(P, {
|
|
329
329
|
childList: !0,
|
|
330
330
|
subtree: !0
|
|
331
331
|
}), () => {
|
|
332
|
-
|
|
332
|
+
N.disconnect();
|
|
333
333
|
};
|
|
334
334
|
}, [P]), /* @__PURE__ */ M(n, {
|
|
335
335
|
scope: l,
|
|
336
|
-
itemMap:
|
|
337
|
-
setItemMap:
|
|
336
|
+
itemMap: b,
|
|
337
|
+
setItemMap: D,
|
|
338
338
|
collectionRef: k,
|
|
339
339
|
collectionRefObject: R,
|
|
340
340
|
collectionElement: P,
|
|
341
341
|
children: p
|
|
342
342
|
});
|
|
343
343
|
}, "CollectionProviderImpl");
|
|
344
|
-
|
|
345
|
-
const E = r + "CollectionSlot",
|
|
346
|
-
const { scope: p, children:
|
|
347
|
-
return /* @__PURE__ */ M(
|
|
344
|
+
v.displayName = e + "Impl";
|
|
345
|
+
const E = r + "CollectionSlot", x = z(E), S = u.forwardRef((s, l) => {
|
|
346
|
+
const { scope: p, children: w } = s, R = i(E, p), P = _(l, R.collectionRef);
|
|
347
|
+
return /* @__PURE__ */ M(x, {
|
|
348
348
|
ref: P,
|
|
349
|
-
children:
|
|
349
|
+
children: w
|
|
350
350
|
});
|
|
351
351
|
});
|
|
352
|
-
|
|
353
|
-
const A = r + "CollectionItemSlot", d = "data-radix-collection-item",
|
|
354
|
-
const { scope: p, children:
|
|
355
|
-
G(
|
|
356
|
-
const B =
|
|
352
|
+
S.displayName = E;
|
|
353
|
+
const A = r + "CollectionItemSlot", d = "data-radix-collection-item", y = z(A), m = u.forwardRef((s, l) => {
|
|
354
|
+
const { scope: p, children: w, ...R } = s, P = u.useRef(null), [C, k] = u.useState(null), b = _(l, P, k), { setItemMap: D } = i(A, p), N = u.useRef(R);
|
|
355
|
+
G(N.current, R) || (N.current = R);
|
|
356
|
+
const B = N.current;
|
|
357
357
|
return u.useEffect(() => {
|
|
358
|
-
const
|
|
359
|
-
return
|
|
360
|
-
|
|
358
|
+
const $ = B;
|
|
359
|
+
return D((O) => C ? O.has(C) ? O.set(C, {
|
|
360
|
+
...$,
|
|
361
361
|
element: C
|
|
362
362
|
}).toSorted(j) : (O.set(C, {
|
|
363
|
-
|
|
363
|
+
...$,
|
|
364
364
|
element: C
|
|
365
365
|
}), O.toSorted(j)) : O), () => {
|
|
366
|
-
|
|
366
|
+
D((O) => !C || !O.has(C) ? O : (O.delete(C), new L(O)));
|
|
367
367
|
};
|
|
368
368
|
}, [
|
|
369
369
|
C,
|
|
370
370
|
B,
|
|
371
|
-
|
|
372
|
-
]), /* @__PURE__ */ M(
|
|
371
|
+
D
|
|
372
|
+
]), /* @__PURE__ */ M(y, {
|
|
373
373
|
[d]: "",
|
|
374
|
-
ref:
|
|
375
|
-
children:
|
|
374
|
+
ref: b,
|
|
375
|
+
children: w
|
|
376
376
|
});
|
|
377
377
|
});
|
|
378
378
|
m.displayName = A;
|
|
379
379
|
function h() {
|
|
380
|
-
return u.useState(new
|
|
380
|
+
return u.useState(new L());
|
|
381
381
|
}
|
|
382
382
|
f(h, "useInitCollection");
|
|
383
383
|
function I(s) {
|
|
@@ -386,7 +386,7 @@ function Q(r) {
|
|
|
386
386
|
}
|
|
387
387
|
return f(I, "useCollection"), [{
|
|
388
388
|
Provider: c,
|
|
389
|
-
Slot:
|
|
389
|
+
Slot: S,
|
|
390
390
|
ItemSlot: m
|
|
391
391
|
}, {
|
|
392
392
|
createCollectionScope: o,
|
|
@@ -422,6 +422,16 @@ function W(r) {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
f(W, "getChildListObserver");
|
|
425
|
+
var X = Object.defineProperty, Y = (r, e) => X(r, "name", {
|
|
426
|
+
value: e,
|
|
427
|
+
configurable: !0
|
|
428
|
+
}), Z = u.createContext(void 0);
|
|
429
|
+
function ee(r) {
|
|
430
|
+
const e = u.useContext(Z);
|
|
431
|
+
return r || e || "ltr";
|
|
432
|
+
}
|
|
433
|
+
Y(ee, "useDirection");
|
|
425
434
|
export {
|
|
426
|
-
J as
|
|
435
|
+
J as n,
|
|
436
|
+
ee as t
|
|
427
437
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as Xt } from "./dist-xCbHbMLA.js";
|
|
2
2
|
import { t as Ot } from "./dist-CCdbu9GU.js";
|
|
3
3
|
import { i as ve, n as xt } from "./dist-D-yS0HN8.js";
|
|
4
|
-
import { t as xe } from "./dist-
|
|
4
|
+
import { t as xe } from "./dist-D70ZJkHf.js";
|
|
5
5
|
import { t as ye } from "./dist-pWlMx4Fi.js";
|
|
6
6
|
import * as O from "react";
|
|
7
7
|
import { useLayoutEffect as be } from "react";
|
|
@@ -613,8 +613,8 @@ function Ii(t) {
|
|
|
613
613
|
}
|
|
614
614
|
function Mo(t) {
|
|
615
615
|
const e = [], i = Math.sqrt(t);
|
|
616
|
-
let s;
|
|
617
|
-
for (
|
|
616
|
+
let s = 1;
|
|
617
|
+
for (; s < i; s++) t % s === 0 && (e.push(s), e.push(t / s));
|
|
618
618
|
return i === (i | 0) && e.push(i), e.sort((n, o) => n - o).pop(), e;
|
|
619
619
|
}
|
|
620
620
|
function wo(t) {
|
|
@@ -2720,8 +2720,8 @@ var Jr = class extends wi {
|
|
|
2720
2720
|
}
|
|
2721
2721
|
updateElements(t, e, i, s) {
|
|
2722
2722
|
const n = s === "reset", o = this.chart, r = o.chartArea, a = o.options.animation, l = (r.left + r.right) / 2, c = (r.top + r.bottom) / 2, h = n && a.animateScale, d = h ? 0 : this.innerRadius, f = h ? 0 : this.outerRadius, { sharedOptions: u, includeOptions: m } = this._getSharedOptions(e, s);
|
|
2723
|
-
let g = this._getRotation(), p;
|
|
2724
|
-
for (
|
|
2723
|
+
let g = this._getRotation(), p = 0;
|
|
2724
|
+
for (; p < e; ++p) g += this._circumference(p, n);
|
|
2725
2725
|
for (p = e; p < e + i; ++p) {
|
|
2726
2726
|
const b = this._circumference(p, n), x = t[p], v = {
|
|
2727
2727
|
x: l + this.offsetX,
|
|
@@ -2737,8 +2737,8 @@ var Jr = class extends wi {
|
|
|
2737
2737
|
}
|
|
2738
2738
|
calculateTotal() {
|
|
2739
2739
|
const t = this._cachedMeta, e = t.data;
|
|
2740
|
-
let i = 0, s;
|
|
2741
|
-
for (
|
|
2740
|
+
let i = 0, s = 0;
|
|
2741
|
+
for (; s < e.length; s++) {
|
|
2742
2742
|
const n = t._parsed[s];
|
|
2743
2743
|
n !== null && !isNaN(n) && this.chart.getDataVisibility(s) && !e[s].hidden && (i += Math.abs(n));
|
|
2744
2744
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { a as _, n as D } from "./dist-xCbHbMLA.js";
|
|
2
2
|
import { t as I } from "./dist-CCdbu9GU.js";
|
|
3
3
|
import { i as T, r as m, t as N } from "./dist-D-yS0HN8.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as $, r as G, t as H } from "./es2015-
|
|
4
|
+
import { n as k } from "./dist-D70ZJkHf.js";
|
|
5
|
+
import { t as y } from "./dist-uerXivvM.js";
|
|
6
|
+
import { n as $, r as G, t as H } from "./es2015-Hhb87ipX.js";
|
|
7
7
|
import { t as L } from "./dist-C4j75TwZ.js";
|
|
8
8
|
import { t as x } from "./dist-BUocnzkM.js";
|
|
9
9
|
import { t as j } from "./Combination-CnMM05mt.js";
|
|
10
|
-
import { a as E, i as K, r as U, t as b } from "./dist-
|
|
10
|
+
import { a as E, i as K, r as U, t as b } from "./dist-DcFwF4XM.js";
|
|
11
11
|
import * as c from "react";
|
|
12
12
|
import { jsx as i } from "react/jsx-runtime";
|
|
13
13
|
var V = Object.defineProperty, l = (p, o) => V(p, "name", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as R, n as w } from "./dist-xCbHbMLA.js";
|
|
2
2
|
import { t as D } from "./dist-CCdbu9GU.js";
|
|
3
3
|
import { i as N, n as h, r as d, t as L } from "./dist-D-yS0HN8.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as $, r as j, t as H } from "./es2015-
|
|
4
|
+
import { n as m } from "./dist-D70ZJkHf.js";
|
|
5
|
+
import { n as k, t as G } from "./dist-uerXivvM.js";
|
|
6
|
+
import { n as $, r as j, t as H } from "./es2015-Hhb87ipX.js";
|
|
7
7
|
import { t as K } from "./dist-C4j75TwZ.js";
|
|
8
8
|
import { t as P } from "./dist-BUocnzkM.js";
|
|
9
9
|
import { t as U } from "./Combination-CnMM05mt.js";
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { a as j } from "./dist-xCbHbMLA.js";
|
|
2
|
+
import { n as K, t as M } from "./dist-CCdbu9GU.js";
|
|
3
|
+
import { r as g } from "./dist-D-yS0HN8.js";
|
|
4
|
+
import { t as F } from "./dist-D70ZJkHf.js";
|
|
5
|
+
import * as s from "react";
|
|
6
|
+
import { jsx as X } from "react/jsx-runtime";
|
|
7
|
+
var $ = Object.defineProperty, a = (u, n) => $(u, "name", {
|
|
8
|
+
value: n,
|
|
9
|
+
configurable: !0
|
|
10
|
+
}), T = "dismissableLayer.update", q = "dismissableLayer.pointerDownOutside", G = "dismissableLayer.focusOutside", _, N = s.createContext({
|
|
11
|
+
layers: /* @__PURE__ */ new Set(),
|
|
12
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
13
|
+
branches: /* @__PURE__ */ new Set(),
|
|
14
|
+
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
15
|
+
}), ne = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ a(function(n, t) {
|
|
16
|
+
const { disableOutsidePointerEvents: c = !1, deferPointerDownOutside: d = !1, onEscapeKeyDown: f, onPointerDownOutside: y, onFocusOutside: w, onInteractOutside: E, onDismiss: m, ...p } = n, e = s.useContext(N), [o, P] = s.useState(null), l = o?.ownerDocument ?? globalThis?.document, [, h] = s.useState({}), C = j(t, P), D = Array.from(e.layers), [L] = [...e.layersWithOutsidePointerEventsDisabled].slice(-1), r = L ? D.indexOf(L) : -1, v = o ? D.indexOf(o) : -1, b = e.layersWithOutsidePointerEventsDisabled.size > 0, O = v >= r, B = s.useRef(!1), z = A((i) => {
|
|
17
|
+
y?.(i), E?.(i), i.defaultPrevented || m?.();
|
|
18
|
+
}, {
|
|
19
|
+
ownerDocument: l,
|
|
20
|
+
deferPointerDownOutside: d,
|
|
21
|
+
isDeferredPointerDownOutsideRef: B,
|
|
22
|
+
dismissableSurfaces: e.dismissableSurfaces,
|
|
23
|
+
shouldHandlePointerDownOutside: s.useCallback((i) => {
|
|
24
|
+
if (!(i instanceof Node)) return !1;
|
|
25
|
+
const R = [...e.branches].some((S) => S.contains(i));
|
|
26
|
+
return O && !R;
|
|
27
|
+
}, [e.branches, O])
|
|
28
|
+
}), W = H((i) => {
|
|
29
|
+
if (d && B.current) return;
|
|
30
|
+
const R = i.target;
|
|
31
|
+
[...e.branches].some((S) => S.contains(R)) || (w?.(i), E?.(i), i.defaultPrevented || m?.());
|
|
32
|
+
}, l), U = o ? v === D.length - 1 : !1, I = F((i) => {
|
|
33
|
+
i.key === "Escape" && (f?.(i), !i.defaultPrevented && m && (i.preventDefault(), m()));
|
|
34
|
+
});
|
|
35
|
+
return s.useEffect(() => {
|
|
36
|
+
if (U)
|
|
37
|
+
return l.addEventListener("keydown", I, { capture: !0 }), () => l.removeEventListener("keydown", I, { capture: !0 });
|
|
38
|
+
}, [
|
|
39
|
+
l,
|
|
40
|
+
U,
|
|
41
|
+
I
|
|
42
|
+
]), s.useEffect(() => {
|
|
43
|
+
if (o)
|
|
44
|
+
return c && (e.layersWithOutsidePointerEventsDisabled.size === 0 && (_ = l.body.style.pointerEvents, l.body.style.pointerEvents = "none"), e.layersWithOutsidePointerEventsDisabled.add(o)), e.layers.add(o), k(), () => {
|
|
45
|
+
c && (e.layersWithOutsidePointerEventsDisabled.delete(o), e.layersWithOutsidePointerEventsDisabled.size === 0 && (l.body.style.pointerEvents = _));
|
|
46
|
+
};
|
|
47
|
+
}, [
|
|
48
|
+
o,
|
|
49
|
+
l,
|
|
50
|
+
c,
|
|
51
|
+
e
|
|
52
|
+
]), s.useEffect(() => () => {
|
|
53
|
+
o && (e.layers.delete(o), e.layersWithOutsidePointerEventsDisabled.delete(o), k());
|
|
54
|
+
}, [o, e]), s.useEffect(() => {
|
|
55
|
+
const i = /* @__PURE__ */ a(() => h({}), "handleUpdate");
|
|
56
|
+
return document.addEventListener(T, i), () => document.removeEventListener(T, i);
|
|
57
|
+
}, []), /* @__PURE__ */ X(M.div, {
|
|
58
|
+
...p,
|
|
59
|
+
ref: C,
|
|
60
|
+
style: {
|
|
61
|
+
pointerEvents: b ? O ? "auto" : "none" : void 0,
|
|
62
|
+
...n.style
|
|
63
|
+
},
|
|
64
|
+
onFocusCapture: g(n.onFocusCapture, W.onFocusCapture),
|
|
65
|
+
onBlurCapture: g(n.onBlurCapture, W.onBlurCapture),
|
|
66
|
+
onPointerDownCapture: g(n.onPointerDownCapture, z.onPointerDownCapture)
|
|
67
|
+
});
|
|
68
|
+
}, "DismissableLayer"));
|
|
69
|
+
function J() {
|
|
70
|
+
const u = s.useContext(N), [n, t] = s.useState(null);
|
|
71
|
+
return s.useEffect(() => {
|
|
72
|
+
if (n)
|
|
73
|
+
return u.dismissableSurfaces.add(n), () => {
|
|
74
|
+
u.dismissableSurfaces.delete(n);
|
|
75
|
+
};
|
|
76
|
+
}, [n, u.dismissableSurfaces]), t;
|
|
77
|
+
}
|
|
78
|
+
a(J, "useDismissableLayerSurface");
|
|
79
|
+
var Q = /* @__PURE__ */ a(() => !0, "IS_TRUE");
|
|
80
|
+
function A(u, n) {
|
|
81
|
+
const { ownerDocument: t = globalThis?.document, deferPointerDownOutside: c = !1, isDeferredPointerDownOutsideRef: d, dismissableSurfaces: f, shouldHandlePointerDownOutside: y = Q } = n, w = F(u), E = s.useRef(!1), m = s.useRef(!1), p = s.useRef(/* @__PURE__ */ new Map()), e = s.useRef(() => {
|
|
82
|
+
});
|
|
83
|
+
return s.useEffect(() => {
|
|
84
|
+
function o() {
|
|
85
|
+
m.current = !1, d.current = !1, p.current.clear();
|
|
86
|
+
}
|
|
87
|
+
a(o, "resetOutsideInteraction");
|
|
88
|
+
function P() {
|
|
89
|
+
return Array.from(p.current.values()).some(Boolean);
|
|
90
|
+
}
|
|
91
|
+
a(P, "isOutsideInteractionIntercepted");
|
|
92
|
+
function l(r) {
|
|
93
|
+
if (!m.current) return;
|
|
94
|
+
const v = r.target;
|
|
95
|
+
v instanceof Node && [...f].some((b) => b.contains(v)) || p.current.set(r.type, !0), r.type === "click" && window.setTimeout(() => {
|
|
96
|
+
m.current && e.current();
|
|
97
|
+
}, 0);
|
|
98
|
+
}
|
|
99
|
+
a(l, "handleInteractionCapture");
|
|
100
|
+
function h(r) {
|
|
101
|
+
m.current && p.current.set(r.type, !1);
|
|
102
|
+
}
|
|
103
|
+
a(h, "handleInteractionBubble");
|
|
104
|
+
const C = /* @__PURE__ */ a((r) => {
|
|
105
|
+
if (r.target && !E.current) {
|
|
106
|
+
let v = function() {
|
|
107
|
+
t.removeEventListener("click", e.current);
|
|
108
|
+
const O = P();
|
|
109
|
+
o(), O || x(q, w, b, { discrete: !0 });
|
|
110
|
+
};
|
|
111
|
+
if (a(v, "handleAndDispatchPointerDownOutsideEvent"), !y(r.target)) {
|
|
112
|
+
t.removeEventListener("click", e.current), o(), E.current = !1;
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const b = { originalEvent: r };
|
|
116
|
+
m.current = !0, d.current = c && r.button === 0, p.current.clear(), !c || r.button !== 0 ? v() : (t.removeEventListener("click", e.current), e.current = v, t.addEventListener("click", e.current, { once: !0 }));
|
|
117
|
+
} else
|
|
118
|
+
t.removeEventListener("click", e.current), o();
|
|
119
|
+
E.current = !1;
|
|
120
|
+
}, "handlePointerDown"), D = [
|
|
121
|
+
"pointerup",
|
|
122
|
+
"mousedown",
|
|
123
|
+
"mouseup",
|
|
124
|
+
"touchstart",
|
|
125
|
+
"touchend",
|
|
126
|
+
"click"
|
|
127
|
+
];
|
|
128
|
+
for (const r of D)
|
|
129
|
+
t.addEventListener(r, l, !0), t.addEventListener(r, h);
|
|
130
|
+
const L = window.setTimeout(() => {
|
|
131
|
+
t.addEventListener("pointerdown", C);
|
|
132
|
+
}, 0);
|
|
133
|
+
return () => {
|
|
134
|
+
window.clearTimeout(L), t.removeEventListener("pointerdown", C), t.removeEventListener("click", e.current);
|
|
135
|
+
for (const r of D)
|
|
136
|
+
t.removeEventListener(r, l, !0), t.removeEventListener(r, h);
|
|
137
|
+
};
|
|
138
|
+
}, [
|
|
139
|
+
t,
|
|
140
|
+
w,
|
|
141
|
+
c,
|
|
142
|
+
d,
|
|
143
|
+
f,
|
|
144
|
+
y
|
|
145
|
+
]), { onPointerDownCapture: /* @__PURE__ */ a(() => E.current = !0, "onPointerDownCapture") };
|
|
146
|
+
}
|
|
147
|
+
a(A, "usePointerDownOutside");
|
|
148
|
+
function H(u, n = globalThis?.document) {
|
|
149
|
+
const t = F(u), c = s.useRef(!1);
|
|
150
|
+
return s.useEffect(() => {
|
|
151
|
+
const d = /* @__PURE__ */ a((f) => {
|
|
152
|
+
f.target && !c.current && x(G, t, { originalEvent: f }, { discrete: !1 });
|
|
153
|
+
}, "handleFocus");
|
|
154
|
+
return n.addEventListener("focusin", d), () => n.removeEventListener("focusin", d);
|
|
155
|
+
}, [n, t]), {
|
|
156
|
+
onFocusCapture: /* @__PURE__ */ a(() => c.current = !0, "onFocusCapture"),
|
|
157
|
+
onBlurCapture: /* @__PURE__ */ a(() => c.current = !1, "onBlurCapture")
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
a(H, "useFocusOutside");
|
|
161
|
+
function k() {
|
|
162
|
+
const u = new CustomEvent(T);
|
|
163
|
+
document.dispatchEvent(u);
|
|
164
|
+
}
|
|
165
|
+
a(k, "dispatchUpdate");
|
|
166
|
+
function x(u, n, t, { discrete: c }) {
|
|
167
|
+
const d = t.originalEvent.target, f = new CustomEvent(u, {
|
|
168
|
+
bubbles: !1,
|
|
169
|
+
cancelable: !0,
|
|
170
|
+
detail: t
|
|
171
|
+
});
|
|
172
|
+
n && d.addEventListener(u, n, { once: !0 }), c ? K(d, f) : d.dispatchEvent(f);
|
|
173
|
+
}
|
|
174
|
+
a(x, "handleAndDispatchCustomEvent");
|
|
175
|
+
export {
|
|
176
|
+
J as n,
|
|
177
|
+
ne as t
|
|
178
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as c } from "./createLucideIcon-C7E_xycG.js";
|
|
2
|
+
var e = {
|
|
3
|
+
name: "ellipsis-vertical",
|
|
4
|
+
size: 24,
|
|
5
|
+
node: [
|
|
6
|
+
["circle", {
|
|
7
|
+
cx: "12",
|
|
8
|
+
cy: "12",
|
|
9
|
+
r: "1",
|
|
10
|
+
key: "41hilf"
|
|
11
|
+
}],
|
|
12
|
+
["circle", {
|
|
13
|
+
cx: "12",
|
|
14
|
+
cy: "5",
|
|
15
|
+
r: "1",
|
|
16
|
+
key: "gxeob9"
|
|
17
|
+
}],
|
|
18
|
+
["circle", {
|
|
19
|
+
cx: "12",
|
|
20
|
+
cy: "19",
|
|
21
|
+
r: "1",
|
|
22
|
+
key: "lyex9k"
|
|
23
|
+
}]
|
|
24
|
+
],
|
|
25
|
+
aliases: ["more-vertical"]
|
|
26
|
+
};
|
|
27
|
+
e.node;
|
|
28
|
+
var r = c(e);
|
|
29
|
+
export {
|
|
30
|
+
r as t
|
|
31
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as J } from "./dist-xCbHbMLA.js";
|
|
2
2
|
import { t as Q } from "./dist-CCdbu9GU.js";
|
|
3
|
-
import { t as K } from "./dist-
|
|
3
|
+
import { t as K } from "./dist-D70ZJkHf.js";
|
|
4
4
|
import * as m from "react";
|
|
5
5
|
import { jsx as X } from "react/jsx-runtime";
|
|
6
6
|
var Y = Object.defineProperty, c = (e, t) => Y(e, "name", {
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { useClickOutside as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useClickOutside as e } from "./useClickOutside.js";
|
|
2
|
+
import { useIsHydrated as m } from "./useIsHydrated/useIsHydrated.js";
|
|
3
|
+
import { useMediaQuery as t } from "./useMediaQuery.js";
|
|
4
|
+
import { useToggle as u } from "./useToggle.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
t as
|
|
6
|
+
e as useClickOutside,
|
|
7
|
+
m as useIsHydrated,
|
|
8
|
+
t as useMediaQuery,
|
|
9
|
+
u as useToggle
|
|
8
10
|
};
|