@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
|
@@ -2,51 +2,48 @@ import { o as Ae } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
|
2
2
|
import { t as Le } from "./prop-types-BCUW56rg.js";
|
|
3
3
|
import { a as D, n as Fe } from "./dist-xCbHbMLA.js";
|
|
4
4
|
import { n as Ne, t as se } from "./dist-CCdbu9GU.js";
|
|
5
|
-
import { t as A } from "./utils-
|
|
5
|
+
import { t as A } from "./utils-DnIJruo0.js";
|
|
6
6
|
import { i as le, r as g, t as Ke } from "./dist-D-yS0HN8.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import { n as Ue, r as Be, t as $e } from "./es2015-CoHq2g4y.js";
|
|
7
|
+
import { n as ae, t as je } from "./dist-D70ZJkHf.js";
|
|
8
|
+
import { t as Ge } from "./dist-uerXivvM.js";
|
|
9
|
+
import { n as Ue, r as Be, t as $e } from "./es2015-Hhb87ipX.js";
|
|
11
10
|
import { t as Ve } from "./dist-BUocnzkM.js";
|
|
12
11
|
import { t as ze } from "./Combination-CnMM05mt.js";
|
|
13
12
|
import { Button as We } from "./components/Button/Button.js";
|
|
14
|
-
import { a as de, i as Ye, r as Xe, t as He } from "./dist-
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { n as Je, r as fe, t as Qe } from "./dist-CszFjHAP.js";
|
|
13
|
+
import { a as de, i as Ye, r as Xe, t as He } from "./dist-DcFwF4XM.js";
|
|
14
|
+
import { n as qe, t as Ze } from "./dist-DZ_SU77k.js";
|
|
15
|
+
import { n as Je, r as fe, t as Qe } from "./dist-Bi8Y5nEx.js";
|
|
18
16
|
import * as i from "react";
|
|
19
|
-
import ce, { forwardRef as
|
|
17
|
+
import ce, { forwardRef as en } from "react";
|
|
20
18
|
import { jsx as s, jsxs as ie } from "react/jsx-runtime";
|
|
21
19
|
var L = /* @__PURE__ */ Ae(Le());
|
|
22
20
|
function W() {
|
|
23
|
-
return W = Object.assign || function(
|
|
21
|
+
return W = Object.assign || function(t) {
|
|
24
22
|
for (var e = 1; e < arguments.length; e++) {
|
|
25
23
|
var o = arguments[e];
|
|
26
|
-
for (var
|
|
24
|
+
for (var n in o) Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
|
|
27
25
|
}
|
|
28
|
-
return
|
|
26
|
+
return t;
|
|
29
27
|
}, W.apply(this, arguments);
|
|
30
28
|
}
|
|
31
|
-
function
|
|
32
|
-
if (
|
|
33
|
-
var o =
|
|
29
|
+
function nn(t, e) {
|
|
30
|
+
if (t == null) return {};
|
|
31
|
+
var o = tn(t, e), n, r;
|
|
34
32
|
if (Object.getOwnPropertySymbols) {
|
|
35
|
-
var a = Object.getOwnPropertySymbols(
|
|
33
|
+
var a = Object.getOwnPropertySymbols(t);
|
|
36
34
|
for (r = 0; r < a.length; r++)
|
|
37
|
-
|
|
35
|
+
n = a[r], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (o[n] = t[n]);
|
|
38
36
|
}
|
|
39
37
|
return o;
|
|
40
38
|
}
|
|
41
|
-
function
|
|
42
|
-
if (
|
|
43
|
-
var o = {},
|
|
44
|
-
|
|
45
|
-
r = t[a], !(e.indexOf(r) >= 0) && (o[r] = n[r]);
|
|
39
|
+
function tn(t, e) {
|
|
40
|
+
if (t == null) return {};
|
|
41
|
+
for (var o = {}, n = Object.keys(t), r, a = 0; a < n.length; a++)
|
|
42
|
+
r = n[a], !(e.indexOf(r) >= 0) && (o[r] = t[r]);
|
|
46
43
|
return o;
|
|
47
44
|
}
|
|
48
|
-
var q =
|
|
49
|
-
var o =
|
|
45
|
+
var q = en(function(t, e) {
|
|
46
|
+
var o = t.color, n = o === void 0 ? "currentColor" : o, r = t.size, a = r === void 0 ? 24 : r, c = nn(t, ["color", "size"]);
|
|
50
47
|
return /* @__PURE__ */ ce.createElement("svg", W({
|
|
51
48
|
ref: e,
|
|
52
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -54,7 +51,7 @@ var q = et(function(n, e) {
|
|
|
54
51
|
height: a,
|
|
55
52
|
viewBox: "0 0 24 24",
|
|
56
53
|
fill: "none",
|
|
57
|
-
stroke:
|
|
54
|
+
stroke: n,
|
|
58
55
|
strokeWidth: "2",
|
|
59
56
|
strokeLinecap: "round",
|
|
60
57
|
strokeLinejoin: "round"
|
|
@@ -65,10 +62,10 @@ q.propTypes = {
|
|
|
65
62
|
size: L.default.oneOfType([L.default.string, L.default.number])
|
|
66
63
|
};
|
|
67
64
|
q.displayName = "ChevronDown";
|
|
68
|
-
var
|
|
65
|
+
var on = Object.defineProperty, p = (t, e) => on(t, "name", {
|
|
69
66
|
value: e,
|
|
70
67
|
configurable: !0
|
|
71
|
-
}), Y = ["Enter", " "],
|
|
68
|
+
}), Y = ["Enter", " "], rn = [
|
|
72
69
|
"ArrowDown",
|
|
73
70
|
"PageUp",
|
|
74
71
|
"Home"
|
|
@@ -76,15 +73,15 @@ var ot = Object.defineProperty, p = (n, e) => ot(n, "name", {
|
|
|
76
73
|
"ArrowUp",
|
|
77
74
|
"PageDown",
|
|
78
75
|
"End"
|
|
79
|
-
],
|
|
76
|
+
], an = [...rn, ...pe], at = {
|
|
80
77
|
ltr: [...Y, "ArrowRight"],
|
|
81
78
|
rtl: [...Y, "ArrowLeft"]
|
|
82
|
-
}, N = "Menu", [X,
|
|
83
|
-
|
|
79
|
+
}, N = "Menu", [X, cn, un] = qe(N), [S, me] = le(N, [
|
|
80
|
+
un,
|
|
84
81
|
de,
|
|
85
82
|
fe
|
|
86
|
-
]), Z = de(), ve = fe(), [
|
|
87
|
-
const { __scopeMenu: e, open: o = !1, children:
|
|
83
|
+
]), Z = de(), ve = fe(), [sn, K] = S(N), [ln, J] = S(N), dn = /* @__PURE__ */ p((t) => {
|
|
84
|
+
const { __scopeMenu: e, open: o = !1, children: n, dir: r, onOpenChange: a, modal: c = !0 } = t, l = Z(e), [h, d] = i.useState(null), m = i.useRef(!1), v = je(a), f = Ze(r);
|
|
88
85
|
return i.useEffect(() => {
|
|
89
86
|
const w = /* @__PURE__ */ p(() => {
|
|
90
87
|
m.current = !0, document.addEventListener("pointerdown", C, {
|
|
@@ -104,91 +101,91 @@ var ot = Object.defineProperty, p = (n, e) => ot(n, "name", {
|
|
|
104
101
|
return window.addEventListener("blur", w), () => window.removeEventListener("blur", w);
|
|
105
102
|
}, [o, v]), /* @__PURE__ */ s(Ye, {
|
|
106
103
|
...l,
|
|
107
|
-
children: /* @__PURE__ */ s(
|
|
104
|
+
children: /* @__PURE__ */ s(sn, {
|
|
108
105
|
scope: e,
|
|
109
106
|
open: o,
|
|
110
107
|
onOpenChange: v,
|
|
111
108
|
content: h,
|
|
112
109
|
onContentChange: d,
|
|
113
|
-
children: /* @__PURE__ */ s(
|
|
110
|
+
children: /* @__PURE__ */ s(ln, {
|
|
114
111
|
scope: e,
|
|
115
112
|
onClose: i.useCallback(() => v(!1), [v]),
|
|
116
113
|
isUsingKeyboardRef: m,
|
|
117
114
|
dir: f,
|
|
118
115
|
modal: c,
|
|
119
|
-
children:
|
|
116
|
+
children: n
|
|
120
117
|
})
|
|
121
118
|
})
|
|
122
119
|
});
|
|
123
|
-
}, "Menu"),
|
|
124
|
-
const { __scopeMenu:
|
|
120
|
+
}, "Menu"), fn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ p(function(e, o) {
|
|
121
|
+
const { __scopeMenu: n, ...r } = e, a = Z(n);
|
|
125
122
|
return /* @__PURE__ */ s(He, {
|
|
126
123
|
...a,
|
|
127
124
|
...r,
|
|
128
125
|
ref: o
|
|
129
126
|
});
|
|
130
|
-
}, "MenuAnchor")),
|
|
131
|
-
const
|
|
127
|
+
}, "MenuAnchor")), pn = "MenuPortal", [ct, mn] = S(pn, { forceMount: void 0 }), I = "MenuContent", [vn, he] = S(I), hn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ p(function(e, o) {
|
|
128
|
+
const n = mn(I, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, c = K(I, e.__scopeMenu), l = J(I, e.__scopeMenu);
|
|
132
129
|
return /* @__PURE__ */ s(X.Provider, {
|
|
133
130
|
scope: e.__scopeMenu,
|
|
134
131
|
children: /* @__PURE__ */ s(Ve, {
|
|
135
132
|
present: r || c.open,
|
|
136
133
|
children: /* @__PURE__ */ s(X.Slot, {
|
|
137
134
|
scope: e.__scopeMenu,
|
|
138
|
-
children: l.modal ? /* @__PURE__ */ s(
|
|
135
|
+
children: l.modal ? /* @__PURE__ */ s(gn, {
|
|
139
136
|
...a,
|
|
140
137
|
ref: o
|
|
141
|
-
}) : /* @__PURE__ */ s(
|
|
138
|
+
}) : /* @__PURE__ */ s(wn, {
|
|
142
139
|
...a,
|
|
143
140
|
ref: o
|
|
144
141
|
})
|
|
145
142
|
})
|
|
146
143
|
})
|
|
147
144
|
});
|
|
148
|
-
}, "MenuContent")),
|
|
149
|
-
const
|
|
145
|
+
}, "MenuContent")), gn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ p(function(e, o) {
|
|
146
|
+
const n = K(I, e.__scopeMenu), r = i.useRef(null), a = D(o, r);
|
|
150
147
|
return i.useEffect(() => {
|
|
151
148
|
const c = r.current;
|
|
152
149
|
if (c) return $e(c);
|
|
153
150
|
}, []), /* @__PURE__ */ s(ge, {
|
|
154
151
|
...e,
|
|
155
152
|
ref: a,
|
|
156
|
-
trapFocus:
|
|
157
|
-
disableOutsidePointerEvents:
|
|
153
|
+
trapFocus: n.open,
|
|
154
|
+
disableOutsidePointerEvents: n.open,
|
|
158
155
|
disableOutsideScroll: !0,
|
|
159
156
|
onFocusOutside: g(e.onFocusOutside, (c) => c.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
160
|
-
onDismiss: () =>
|
|
157
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
161
158
|
});
|
|
162
|
-
}, "MenuRootContentModal")),
|
|
163
|
-
const
|
|
159
|
+
}, "MenuRootContentModal")), wn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ p(function(e, o) {
|
|
160
|
+
const n = K(I, e.__scopeMenu);
|
|
164
161
|
return /* @__PURE__ */ s(ge, {
|
|
165
162
|
...e,
|
|
166
163
|
ref: o,
|
|
167
164
|
trapFocus: !1,
|
|
168
165
|
disableOutsidePointerEvents: !1,
|
|
169
166
|
disableOutsideScroll: !1,
|
|
170
|
-
onDismiss: () =>
|
|
167
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
171
168
|
});
|
|
172
|
-
}, "MenuRootContentNonModal")),
|
|
173
|
-
const { __scopeMenu:
|
|
174
|
-
as:
|
|
169
|
+
}, "MenuRootContentNonModal")), Mn = Fe("MenuContent.ScrollLock"), ge = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ p(function(e, o) {
|
|
170
|
+
const { __scopeMenu: n, loop: r = !1, trapFocus: a, onOpenAutoFocus: c, onCloseAutoFocus: l, disableOutsidePointerEvents: h, onEntryFocus: d, onEscapeKeyDown: m, onPointerDownOutside: v, onFocusOutside: f, onInteractOutside: w, onDismiss: C, disableOutsideScroll: M, ...U } = e, ee = K(I, n), B = J(I, n), be = Z(n), _e = ve(n), ne = cn(n), [Ee, te] = i.useState(null), x = i.useRef(null), De = D(o, x, ee.onContentChange), O = i.useRef(0), T = i.useRef(""), xe = i.useRef(0), $ = i.useRef(null), oe = i.useRef("right"), V = i.useRef(0), Oe = M ? ze : i.Fragment, Te = M ? {
|
|
171
|
+
as: Mn,
|
|
175
172
|
allowPinchZoom: !0
|
|
176
173
|
} : void 0, ke = /* @__PURE__ */ p((u) => {
|
|
177
|
-
const b = T.current + u, y =
|
|
174
|
+
const b = T.current + u, y = ne().filter((R) => !R.disabled), E = document.activeElement, z = y.find((R) => R.ref.current === E)?.textValue, k = Ie(y.map((R) => R.textValue), b, z), _ = y.find((R) => R.textValue === k)?.ref.current;
|
|
178
175
|
(/* @__PURE__ */ p((function R(re) {
|
|
179
176
|
T.current = re, window.clearTimeout(O.current), re !== "" && (O.current = window.setTimeout(() => R(""), 1e3));
|
|
180
177
|
}), "updateSearch"))(b), _ && setTimeout(() => _.focus());
|
|
181
178
|
}, "handleTypeaheadSearch");
|
|
182
179
|
i.useEffect(() => () => window.clearTimeout(O.current), []), Ue();
|
|
183
180
|
const P = i.useCallback((u) => oe.current === $.current?.side && Se(u, $.current?.area), []);
|
|
184
|
-
return /* @__PURE__ */ s(
|
|
185
|
-
scope:
|
|
181
|
+
return /* @__PURE__ */ s(vn, {
|
|
182
|
+
scope: n,
|
|
186
183
|
searchRef: T,
|
|
187
184
|
onItemEnter: i.useCallback((u) => {
|
|
188
185
|
P(u) && u.preventDefault();
|
|
189
186
|
}, [P]),
|
|
190
187
|
onItemLeave: i.useCallback((u) => {
|
|
191
|
-
P(u) || (x.current?.focus(),
|
|
188
|
+
P(u) || (x.current?.focus(), te(null));
|
|
192
189
|
}, [P]),
|
|
193
190
|
onTriggerLeave: i.useCallback((u) => {
|
|
194
191
|
P(u) && u.preventDefault();
|
|
@@ -221,7 +218,7 @@ var ot = Object.defineProperty, p = (n, e) => ot(n, "name", {
|
|
|
221
218
|
orientation: "vertical",
|
|
222
219
|
loop: r,
|
|
223
220
|
currentTabStopId: Ee,
|
|
224
|
-
onCurrentTabStopIdChange:
|
|
221
|
+
onCurrentTabStopIdChange: te,
|
|
225
222
|
onEntryFocus: g(d, (u) => {
|
|
226
223
|
B.isUsingKeyboardRef.current || u.preventDefault();
|
|
227
224
|
}),
|
|
@@ -243,9 +240,9 @@ var ot = Object.defineProperty, p = (n, e) => ot(n, "name", {
|
|
|
243
240
|
const b = u.target.closest("[data-radix-menu-content]") === u.currentTarget, y = u.ctrlKey || u.altKey || u.metaKey, E = u.key.length === 1;
|
|
244
241
|
b && (u.key === "Tab" && u.preventDefault(), !y && E && ke(u.key));
|
|
245
242
|
const z = x.current;
|
|
246
|
-
if (u.target !== z || !
|
|
243
|
+
if (u.target !== z || !an.includes(u.key)) return;
|
|
247
244
|
u.preventDefault();
|
|
248
|
-
const k =
|
|
245
|
+
const k = ne().filter((_) => !_.disabled).map((_) => _.ref.current);
|
|
249
246
|
pe.includes(u.key) && k.reverse(), Ce(k);
|
|
250
247
|
}),
|
|
251
248
|
onBlur: g(e.onBlur, (u) => {
|
|
@@ -264,10 +261,10 @@ var ot = Object.defineProperty, p = (n, e) => ot(n, "name", {
|
|
|
264
261
|
})
|
|
265
262
|
})
|
|
266
263
|
});
|
|
267
|
-
}, "MenuContentImpl")), H = "MenuItem", ue = "menu.itemSelect",
|
|
268
|
-
const { disabled:
|
|
264
|
+
}, "MenuContentImpl")), H = "MenuItem", ue = "menu.itemSelect", Cn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ p(function(e, o) {
|
|
265
|
+
const { disabled: n = !1, onSelect: r, ...a } = e, c = i.useRef(null), l = J(H, e.__scopeMenu), h = he(H, e.__scopeMenu), d = D(o, c), m = i.useRef(!1), v = /* @__PURE__ */ p(() => {
|
|
269
266
|
const f = c.current;
|
|
270
|
-
if (!
|
|
267
|
+
if (!n && f) {
|
|
271
268
|
const w = new CustomEvent(ue, {
|
|
272
269
|
bubbles: !0,
|
|
273
270
|
cancelable: !0
|
|
@@ -275,10 +272,10 @@ var ot = Object.defineProperty, p = (n, e) => ot(n, "name", {
|
|
|
275
272
|
f.addEventListener(ue, (C) => r?.(C), { once: !0 }), Ne(f, w), w.defaultPrevented ? m.current = !1 : l.onClose();
|
|
276
273
|
}
|
|
277
274
|
}, "handleSelect");
|
|
278
|
-
return /* @__PURE__ */ s(
|
|
275
|
+
return /* @__PURE__ */ s(Rn, {
|
|
279
276
|
...a,
|
|
280
277
|
ref: d,
|
|
281
|
-
disabled:
|
|
278
|
+
disabled: n,
|
|
282
279
|
onClick: g(e.onClick, v),
|
|
283
280
|
onPointerDown: (f) => {
|
|
284
281
|
e.onPointerDown?.(f), m.current = !0;
|
|
@@ -287,16 +284,16 @@ var ot = Object.defineProperty, p = (n, e) => ot(n, "name", {
|
|
|
287
284
|
m.current || f.currentTarget?.click();
|
|
288
285
|
}),
|
|
289
286
|
onKeyDown: g(e.onKeyDown, (f) => {
|
|
290
|
-
|
|
287
|
+
n || f.target !== f.currentTarget || h.searchRef.current !== "" && f.key === " " || Y.includes(f.key) && (f.currentTarget.click(), f.preventDefault());
|
|
291
288
|
})
|
|
292
289
|
});
|
|
293
|
-
}, "MenuItem")),
|
|
294
|
-
const { __scopeMenu:
|
|
290
|
+
}, "MenuItem")), Rn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ p(function(e, o) {
|
|
291
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...c } = e, l = he(H, n), h = ve(n), d = i.useRef(null), m = D(o, d), [v, f] = i.useState(!1), [w, C] = i.useState("");
|
|
295
292
|
return i.useEffect(() => {
|
|
296
293
|
const M = d.current;
|
|
297
294
|
M && C((M.textContent ?? "").trim());
|
|
298
295
|
}, [c.children]), /* @__PURE__ */ s(X.ItemSlot, {
|
|
299
|
-
scope:
|
|
296
|
+
scope: n,
|
|
300
297
|
disabled: r,
|
|
301
298
|
textValue: a ?? w,
|
|
302
299
|
children: /* @__PURE__ */ s(Qe, {
|
|
@@ -319,73 +316,73 @@ var ot = Object.defineProperty, p = (n, e) => ot(n, "name", {
|
|
|
319
316
|
})
|
|
320
317
|
})
|
|
321
318
|
});
|
|
322
|
-
}, "MenuItemImpl")), [
|
|
319
|
+
}, "MenuItemImpl")), [it, ut] = S("MenuRadioGroup", {
|
|
323
320
|
value: void 0,
|
|
324
321
|
onValueChange: /* @__PURE__ */ p(() => {
|
|
325
322
|
}, "onValueChange")
|
|
326
|
-
}),
|
|
327
|
-
function we(
|
|
328
|
-
return
|
|
323
|
+
}), In = "MenuItemIndicator", [st, lt] = S(In, { checked: !1 }), yn = "MenuSub", [dt, ft] = S(yn);
|
|
324
|
+
function we(t) {
|
|
325
|
+
return t ? "open" : "closed";
|
|
329
326
|
}
|
|
330
327
|
p(we, "getOpenState");
|
|
331
|
-
function Me(
|
|
332
|
-
return
|
|
328
|
+
function Me(t) {
|
|
329
|
+
return t === "indeterminate";
|
|
333
330
|
}
|
|
334
331
|
p(Me, "isIndeterminate");
|
|
335
|
-
function
|
|
336
|
-
return Me(
|
|
332
|
+
function Sn(t) {
|
|
333
|
+
return Me(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
337
334
|
}
|
|
338
|
-
p(
|
|
339
|
-
function Ce(
|
|
335
|
+
p(Sn, "getCheckedState");
|
|
336
|
+
function Ce(t) {
|
|
340
337
|
const e = document.activeElement;
|
|
341
|
-
for (const o of
|
|
338
|
+
for (const o of t)
|
|
342
339
|
if (o === e || (o.focus(), document.activeElement !== e)) return;
|
|
343
340
|
}
|
|
344
341
|
p(Ce, "focusFirst");
|
|
345
|
-
function Re(
|
|
346
|
-
return
|
|
342
|
+
function Re(t, e) {
|
|
343
|
+
return t.map((o, n) => t[(e + n) % t.length]);
|
|
347
344
|
}
|
|
348
345
|
p(Re, "wrapArray");
|
|
349
|
-
function Ie(
|
|
350
|
-
const
|
|
351
|
-
let a = Re(
|
|
352
|
-
|
|
353
|
-
const c = a.find((l) => l.toLowerCase().startsWith(
|
|
346
|
+
function Ie(t, e, o) {
|
|
347
|
+
const n = e.length > 1 && Array.from(e).every((l) => l === e[0]) ? e[0] : e, r = o ? t.indexOf(o) : -1;
|
|
348
|
+
let a = Re(t, Math.max(r, 0));
|
|
349
|
+
n.length === 1 && (a = a.filter((l) => l !== o));
|
|
350
|
+
const c = a.find((l) => l.toLowerCase().startsWith(n.toLowerCase()));
|
|
354
351
|
return c !== o ? c : void 0;
|
|
355
352
|
}
|
|
356
353
|
p(Ie, "getNextMatch");
|
|
357
|
-
function ye(
|
|
358
|
-
const { x: o, y:
|
|
354
|
+
function ye(t, e) {
|
|
355
|
+
const { x: o, y: n } = t;
|
|
359
356
|
let r = !1;
|
|
360
357
|
for (let a = 0, c = e.length - 1; a < e.length; c = a++) {
|
|
361
358
|
const l = e[a], h = e[c], d = l.x, m = l.y, v = h.x, f = h.y;
|
|
362
|
-
m >
|
|
359
|
+
m > n != f > n && o < (v - d) * (n - m) / (f - m) + d && (r = !r);
|
|
363
360
|
}
|
|
364
361
|
return r;
|
|
365
362
|
}
|
|
366
363
|
p(ye, "isPointInPolygon");
|
|
367
|
-
function Se(
|
|
364
|
+
function Se(t, e) {
|
|
368
365
|
return e ? ye({
|
|
369
|
-
x:
|
|
370
|
-
y:
|
|
366
|
+
x: t.clientX,
|
|
367
|
+
y: t.clientY
|
|
371
368
|
}, e) : !1;
|
|
372
369
|
}
|
|
373
370
|
p(Se, "isPointerInGraceArea");
|
|
374
|
-
function F(
|
|
375
|
-
return (e) => e.pointerType === "mouse" ?
|
|
371
|
+
function F(t) {
|
|
372
|
+
return (e) => e.pointerType === "mouse" ? t(e) : void 0;
|
|
376
373
|
}
|
|
377
374
|
p(F, "whenMouse");
|
|
378
|
-
var
|
|
375
|
+
var Pn = dn, bn = fn, _n = hn, En = Cn, Dn = Object.defineProperty, j = (t, e) => Dn(t, "name", {
|
|
379
376
|
value: e,
|
|
380
377
|
configurable: !0
|
|
381
|
-
}), Q = "DropdownMenu", [
|
|
382
|
-
const { __scopeDropdownMenu: e, children: o, dir:
|
|
378
|
+
}), Q = "DropdownMenu", [xn, pt] = le(Q, [me]), G = me(), [On, Pe] = xn(Q), Tn = /* @__PURE__ */ j((t) => {
|
|
379
|
+
const { __scopeDropdownMenu: e, children: o, dir: n, open: r, defaultOpen: a, onOpenChange: c, modal: l = !0 } = t, h = G(e), d = i.useRef(null), [m, v] = Ke({
|
|
383
380
|
prop: r,
|
|
384
381
|
defaultProp: a ?? !1,
|
|
385
382
|
onChange: c,
|
|
386
383
|
caller: Q
|
|
387
384
|
});
|
|
388
|
-
return /* @__PURE__ */ s(
|
|
385
|
+
return /* @__PURE__ */ s(On, {
|
|
389
386
|
scope: e,
|
|
390
387
|
triggerId: ae(),
|
|
391
388
|
triggerRef: d,
|
|
@@ -394,18 +391,18 @@ var St = lt, Pt = dt, bt = vt, _t = Mt, Et = Object.defineProperty, j = (n, e) =
|
|
|
394
391
|
onOpenChange: v,
|
|
395
392
|
onOpenToggle: i.useCallback(() => v((f) => !f), [v]),
|
|
396
393
|
modal: l,
|
|
397
|
-
children: /* @__PURE__ */ s(
|
|
394
|
+
children: /* @__PURE__ */ s(Pn, {
|
|
398
395
|
...h,
|
|
399
396
|
open: m,
|
|
400
397
|
onOpenChange: v,
|
|
401
|
-
dir:
|
|
398
|
+
dir: n,
|
|
402
399
|
modal: l,
|
|
403
400
|
children: o
|
|
404
401
|
})
|
|
405
402
|
});
|
|
406
|
-
}, "DropdownMenu"),
|
|
407
|
-
const { __scopeDropdownMenu:
|
|
408
|
-
return /* @__PURE__ */ s(
|
|
403
|
+
}, "DropdownMenu"), kn = "DropdownMenuTrigger", An = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ j(function(e, o) {
|
|
404
|
+
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, c = Pe(kn, n), l = G(n), h = D(o, c.triggerRef);
|
|
405
|
+
return /* @__PURE__ */ s(bn, {
|
|
409
406
|
asChild: !0,
|
|
410
407
|
...l,
|
|
411
408
|
children: /* @__PURE__ */ s(se.button, {
|
|
@@ -431,9 +428,9 @@ var St = lt, Pt = dt, bt = vt, _t = Mt, Et = Object.defineProperty, j = (n, e) =
|
|
|
431
428
|
})
|
|
432
429
|
})
|
|
433
430
|
});
|
|
434
|
-
}, "DropdownMenuTrigger")),
|
|
435
|
-
const { __scopeDropdownMenu:
|
|
436
|
-
return /* @__PURE__ */ s(
|
|
431
|
+
}, "DropdownMenuTrigger")), Ln = "DropdownMenuContent", Fn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ j(function(e, o) {
|
|
432
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = Pe(Ln, n), c = G(n), l = i.useRef(!1);
|
|
433
|
+
return /* @__PURE__ */ s(_n, {
|
|
437
434
|
id: a.contentId,
|
|
438
435
|
"aria-labelledby": a.triggerId,
|
|
439
436
|
...c,
|
|
@@ -455,30 +452,30 @@ var St = lt, Pt = dt, bt = vt, _t = Mt, Et = Object.defineProperty, j = (n, e) =
|
|
|
455
452
|
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
456
453
|
}
|
|
457
454
|
});
|
|
458
|
-
}, "DropdownMenuContent")),
|
|
459
|
-
const { __scopeDropdownMenu:
|
|
460
|
-
return /* @__PURE__ */ s(
|
|
455
|
+
}, "DropdownMenuContent")), Nn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ j(function(e, o) {
|
|
456
|
+
const { __scopeDropdownMenu: n, ...r } = e, a = G(n);
|
|
457
|
+
return /* @__PURE__ */ s(En, {
|
|
461
458
|
...a,
|
|
462
459
|
...r,
|
|
463
460
|
ref: o
|
|
464
461
|
});
|
|
465
|
-
}, "DropdownMenuItem")),
|
|
462
|
+
}, "DropdownMenuItem")), Kn = Tn, jn = An, Gn = Fn, Un = Nn, mt = ({ buttonClassName: t, className: e, itemClassName: o, label: n = "Download Invoice as", listClassName: r, options: a }) => /* @__PURE__ */ s(Kn, {
|
|
466
463
|
modal: !1,
|
|
467
464
|
children: /* @__PURE__ */ ie("div", {
|
|
468
465
|
className: A("relative w-full", e),
|
|
469
|
-
children: [/* @__PURE__ */ s(
|
|
466
|
+
children: [/* @__PURE__ */ s(jn, {
|
|
470
467
|
asChild: !0,
|
|
471
468
|
children: /* @__PURE__ */ ie(We, {
|
|
472
|
-
className: A("group flex gap-2 items-center justify-between w-full",
|
|
473
|
-
children: [
|
|
469
|
+
className: A("group flex gap-2 items-center justify-between w-full", t),
|
|
470
|
+
children: [n, /* @__PURE__ */ s(q, { className: "transition-transform duration-200 group-data-[state=open]:rotate-180" })]
|
|
474
471
|
})
|
|
475
|
-
}), /* @__PURE__ */ s(
|
|
472
|
+
}), /* @__PURE__ */ s(Gn, {
|
|
476
473
|
align: "start",
|
|
477
474
|
sideOffset: 4,
|
|
478
475
|
loop: !0,
|
|
479
476
|
className: A("z-10 bg-white border border-gray-200 rounded shadow-xs animate-in fade-in-0 py-2", r),
|
|
480
477
|
style: { width: "var(--radix-dropdown-menu-trigger-width)" },
|
|
481
|
-
children: a.map((c, l) => /* @__PURE__ */ s(
|
|
478
|
+
children: a.map((c, l) => /* @__PURE__ */ s(Un, {
|
|
482
479
|
className: A("hover:bg-gray-50 focus:bg-gray-50 outline-none px-6 py-1.5 hover:cursor-pointer", o),
|
|
483
480
|
onSelect: () => {
|
|
484
481
|
c.onClick?.();
|
|
@@ -489,5 +486,5 @@ var St = lt, Pt = dt, bt = vt, _t = Mt, Et = Object.defineProperty, j = (n, e) =
|
|
|
489
486
|
})
|
|
490
487
|
});
|
|
491
488
|
export {
|
|
492
|
-
|
|
489
|
+
mt as t
|
|
493
490
|
};
|