@konstructio/ui 0.1.2-alpha.112 → 0.1.2-alpha.114
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-D3SZ2WFJ.js → AdditionalOptions-ClcR_Kf7.js} +1 -1
- package/dist/{AlertDialogTrigger-Cdw3C2Tv.js → AlertDialogTrigger-C9xoCZrZ.js} +33 -33
- package/dist/Breadcrumb-CpXRb08J.js +93 -0
- package/dist/Checkbox-DRdyrKjk.js +252 -0
- package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
- package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
- package/dist/Counter-DMkXIsOO.js +229 -0
- package/dist/DropdownButton-JilCRLJY.js +92 -0
- package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
- package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
- package/dist/Modal-CysTe3zL.js +83 -0
- package/dist/Spinner-CTonkSzG.js +47 -0
- package/dist/Switch-5cdUxbhX.js +215 -0
- package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
- package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
- package/dist/components/Alert/Alert.js +45 -41
- package/dist/components/AlertDialog/AlertDialog.js +42 -42
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Avatar/Avatar.js +37 -0
- package/dist/components/Avatar/Avatar.variants.js +25 -0
- package/dist/components/Avatar/hooks/index.js +5 -0
- package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
- package/dist/components/BadgeGroup/hooks/index.js +4 -0
- package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
- package/dist/components/Breadcrumb/components/index.js +6 -4
- package/dist/components/Button/Button.js +25 -19
- package/dist/components/Button/Button.variants.js +4 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
- package/dist/components/Collapse/Collapse.js +63 -0
- package/dist/components/Command/Command.js +5 -5
- 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 +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
- package/dist/components/CopyButton/CopyButton.js +29 -29
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/Counter/Counter.variants.js +73 -16
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
- package/dist/components/Datepicker/DatePicker.js +14 -49
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
- package/dist/components/Drawer/Drawer.js +18 -18
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
- package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
- package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/hooks/index.js +3 -1
- package/dist/components/Filter/hooks/useLocale.js +16 -0
- package/dist/components/Filter/utils/index.js +6 -2
- package/dist/components/LineChart/LineChart.js +18 -125
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
- 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/MultiSelectDropdown.variants.js +22 -3
- 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/OtpInput/OtpInput.js +103 -0
- package/dist/components/PasswordRules/PasswordRules.js +51 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
- 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 +4 -4
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PieChart/PieChart.js +10 -53
- package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
- package/dist/components/ProgressBar/ProgressBar.js +10 -10
- package/dist/components/Radio/Radio.js +16 -16
- package/dist/components/Radio/Radio.variants.js +4 -1
- package/dist/components/RadioCard/RadioCard.js +36 -18
- package/dist/components/RadioCard/RadioCard.variants.js +9 -3
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +10 -10
- 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 +15 -15
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +18 -0
- package/dist/components/Skeleton/Skeleton.variants.js +25 -0
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +38 -29
- package/dist/components/Stepper/Stepper.variants.js +55 -19
- package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +52 -24
- package/dist/components/Tabs/Tabs.variants.js +15 -6
- package/dist/components/Tabs/components/Content.js +6 -6
- package/dist/components/Tabs/components/List.js +10 -10
- package/dist/components/Tabs/components/Trigger.js +11 -10
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagsInput/TagsInput.js +159 -0
- package/dist/components/Toast/Toast.js +68 -2
- package/dist/components/Toast/components/ToastCard/ToastCard.js +32 -32
- package/dist/components/Tooltip/Tooltip.js +32 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
- package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
- package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
- package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
- package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
- package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
- package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
- package/dist/components/VirtualizedTable/components/index.js +18 -12
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/utils/index.js +4 -4
- package/dist/components/index.js +181 -155
- package/dist/components-B_SWqhCL.js +147 -0
- package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
- package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
- package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
- package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
- package/dist/dist-BCoDIdCt.js +429 -0
- package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
- package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
- package/dist/dist-Bh7M0KDN.js +367 -0
- package/dist/dist-BqDJX7m1.js +209 -0
- package/dist/dist-C0OhTLFV.js +31 -0
- package/dist/dist-C1a-68Kb.js +120 -0
- package/dist/dist-CK8FUUUn.js +125 -0
- package/dist/dist-CQSCPpFc.js +196 -0
- package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
- package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
- package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
- package/dist/dist-fPYIsxyx.js +465 -0
- package/dist/dist-rsFD9q_X.js +484 -0
- package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
- package/dist/dist-vDSmnSS_.js +41 -0
- package/dist/dist-vUCyiTQy.js +365 -0
- package/dist/es2015-ChhQTsb4.js +74 -0
- package/dist/index.js +194 -168
- package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
- package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
- package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
- package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
- package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
- package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
- package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
- package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
- package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
- package/dist/lib/components/Button/Button.variants.d.ts +1 -1
- package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
- package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
- package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
- package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
- package/dist/lib/components/Counter/Counter.d.ts +7 -4
- package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
- package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
- package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
- package/dist/lib/components/Filter/utils/index.d.ts +1 -0
- package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
- package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
- package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
- package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
- package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
- package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
- package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
- package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
- package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
- package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
- package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
- package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
- package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
- package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
- package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
- package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
- package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
- package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
- 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/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
- package/dist/lib/components/index.d.ts +10 -0
- package/dist/package.json +31 -30
- package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
- package/dist/styles.css +1 -1
- package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
- package/package.json +31 -30
- package/dist/AnimatePresence-BsUYG9bm.js +0 -186
- package/dist/Breadcrumb-CHi5-wVa.js +0 -81
- package/dist/Checkbox-CrNxsm3G.js +0 -247
- package/dist/Counter-DN50BVq6.js +0 -194
- package/dist/DropdownButton-Blhkj-Oi.js +0 -490
- package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
- package/dist/Modal-Bk1I_NCC.js +0 -81
- package/dist/Spinner-smR3esbL.js +0 -47
- package/dist/Switch-CPE8v6Zh.js +0 -199
- package/dist/Toast-CRPLONv9.js +0 -77
- package/dist/components-z-LYRWfq.js +0 -124
- package/dist/dist-CNui_Egg.js +0 -451
- package/dist/dist-CR3FMRzF.js +0 -118
- package/dist/dist-D5Q2IYuC.js +0 -358
- package/dist/dist-D70ZJkHf.js +0 -29
- package/dist/dist-DZ_SU77k.js +0 -437
- package/dist/dist-LRkZdylX.js +0 -174
- package/dist/dist-f8EwfITY.js +0 -194
- package/dist/dist-pWlMx4Fi.js +0 -36
- package/dist/dist-uerXivvM.js +0 -178
- package/dist/dist-xCbHbMLA.js +0 -116
- package/dist/es2015-Hhb87ipX.js +0 -231
- package/dist/react-C685EsYG.js +0 -4730
package/dist/Counter-DN50BVq6.js
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { o as D } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
3
|
-
import { t as R } from "./prop-types-BCUW56rg.js";
|
|
4
|
-
import { t as P } from "./dist-DX0sBG3Q.js";
|
|
5
|
-
import { t as f } from "./utils-DnIJruo0.js";
|
|
6
|
-
import { Typography as F } from "./components/Typography/Typography.js";
|
|
7
|
-
import { buttonVariants as _, counterVariants as q, labelVariants as A } from "./components/Counter/Counter.variants.js";
|
|
8
|
-
import m, { forwardRef as x, useId as G, useState as H } from "react";
|
|
9
|
-
import { jsx as u, jsxs as p } from "react/jsx-runtime";
|
|
10
|
-
var s = /* @__PURE__ */ D(R());
|
|
11
|
-
function O() {
|
|
12
|
-
return O = Object.assign || function(t) {
|
|
13
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
-
var n = arguments[i];
|
|
15
|
-
for (var e in n) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
16
|
-
}
|
|
17
|
-
return t;
|
|
18
|
-
}, O.apply(this, arguments);
|
|
19
|
-
}
|
|
20
|
-
function J(t, i) {
|
|
21
|
-
if (t == null) return {};
|
|
22
|
-
var n = K(t, i), e, r;
|
|
23
|
-
if (Object.getOwnPropertySymbols) {
|
|
24
|
-
var o = Object.getOwnPropertySymbols(t);
|
|
25
|
-
for (r = 0; r < o.length; r++)
|
|
26
|
-
e = o[r], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
|
|
27
|
-
}
|
|
28
|
-
return n;
|
|
29
|
-
}
|
|
30
|
-
function K(t, i) {
|
|
31
|
-
if (t == null) return {};
|
|
32
|
-
for (var n = {}, e = Object.keys(t), r, o = 0; o < e.length; o++)
|
|
33
|
-
r = e[o], !(i.indexOf(r) >= 0) && (n[r] = t[r]);
|
|
34
|
-
return n;
|
|
35
|
-
}
|
|
36
|
-
var j = x(function(t, i) {
|
|
37
|
-
var n = t.color, e = n === void 0 ? "currentColor" : n, r = t.size, o = r === void 0 ? 24 : r, c = J(t, ["color", "size"]);
|
|
38
|
-
return /* @__PURE__ */ m.createElement("svg", O({
|
|
39
|
-
ref: i,
|
|
40
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
-
width: o,
|
|
42
|
-
height: o,
|
|
43
|
-
viewBox: "0 0 24 24",
|
|
44
|
-
fill: "none",
|
|
45
|
-
stroke: e,
|
|
46
|
-
strokeWidth: "2",
|
|
47
|
-
strokeLinecap: "round",
|
|
48
|
-
strokeLinejoin: "round"
|
|
49
|
-
}, c), /* @__PURE__ */ m.createElement("line", {
|
|
50
|
-
x1: "5",
|
|
51
|
-
y1: "12",
|
|
52
|
-
x2: "19",
|
|
53
|
-
y2: "12"
|
|
54
|
-
}));
|
|
55
|
-
});
|
|
56
|
-
j.propTypes = {
|
|
57
|
-
color: s.default.string,
|
|
58
|
-
size: s.default.oneOfType([s.default.string, s.default.number])
|
|
59
|
-
};
|
|
60
|
-
j.displayName = "Minus";
|
|
61
|
-
function w() {
|
|
62
|
-
return w = Object.assign || function(t) {
|
|
63
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
64
|
-
var n = arguments[i];
|
|
65
|
-
for (var e in n) Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
66
|
-
}
|
|
67
|
-
return t;
|
|
68
|
-
}, w.apply(this, arguments);
|
|
69
|
-
}
|
|
70
|
-
function Q(t, i) {
|
|
71
|
-
if (t == null) return {};
|
|
72
|
-
var n = U(t, i), e, r;
|
|
73
|
-
if (Object.getOwnPropertySymbols) {
|
|
74
|
-
var o = Object.getOwnPropertySymbols(t);
|
|
75
|
-
for (r = 0; r < o.length; r++)
|
|
76
|
-
e = o[r], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
|
|
77
|
-
}
|
|
78
|
-
return n;
|
|
79
|
-
}
|
|
80
|
-
function U(t, i) {
|
|
81
|
-
if (t == null) return {};
|
|
82
|
-
for (var n = {}, e = Object.keys(t), r, o = 0; o < e.length; o++)
|
|
83
|
-
r = e[o], !(i.indexOf(r) >= 0) && (n[r] = t[r]);
|
|
84
|
-
return n;
|
|
85
|
-
}
|
|
86
|
-
var N = x(function(t, i) {
|
|
87
|
-
var n = t.color, e = n === void 0 ? "currentColor" : n, r = t.size, o = r === void 0 ? 24 : r, c = Q(t, ["color", "size"]);
|
|
88
|
-
return /* @__PURE__ */ m.createElement("svg", w({
|
|
89
|
-
ref: i,
|
|
90
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
91
|
-
width: o,
|
|
92
|
-
height: o,
|
|
93
|
-
viewBox: "0 0 24 24",
|
|
94
|
-
fill: "none",
|
|
95
|
-
stroke: e,
|
|
96
|
-
strokeWidth: "2",
|
|
97
|
-
strokeLinecap: "round",
|
|
98
|
-
strokeLinejoin: "round"
|
|
99
|
-
}, c), /* @__PURE__ */ m.createElement("line", {
|
|
100
|
-
x1: "12",
|
|
101
|
-
y1: "5",
|
|
102
|
-
x2: "12",
|
|
103
|
-
y2: "19"
|
|
104
|
-
}), /* @__PURE__ */ m.createElement("line", {
|
|
105
|
-
x1: "5",
|
|
106
|
-
y1: "12",
|
|
107
|
-
x2: "19",
|
|
108
|
-
y2: "12"
|
|
109
|
-
}));
|
|
110
|
-
});
|
|
111
|
-
N.propTypes = {
|
|
112
|
-
color: s.default.string,
|
|
113
|
-
size: s.default.oneOfType([s.default.string, s.default.number])
|
|
114
|
-
};
|
|
115
|
-
N.displayName = "Plus";
|
|
116
|
-
var ot = x(({ canDecrement: t = !0, canIncrement: i = !0, className: n, decrementButtonClassName: e, editable: r = !1, incrementButtonClassName: o, isRequired: c, label: d, labelWrapperClassName: z, max: y = -1 / 0, min: h = 1 / 0, name: k, theme: E, value: L, onChange: v }, M) => {
|
|
117
|
-
const $ = G(), l = L ?? 0, [W, g] = H(null), S = W ?? String(l), T = () => {
|
|
118
|
-
let a = 0;
|
|
119
|
-
h === 1 / 0 ? a = l - 1 : a = Math.max(h, l - 1), g(null), v?.({ target: { value: a } });
|
|
120
|
-
}, V = () => {
|
|
121
|
-
let a = 0;
|
|
122
|
-
y === -1 / 0 ? a = l + 1 : a = Math.min(y, l + 1), g(null), v?.({ target: { value: a } });
|
|
123
|
-
}, B = (a) => {
|
|
124
|
-
const b = a.target.value;
|
|
125
|
-
if (g(b), b === "") return;
|
|
126
|
-
const I = Number(b);
|
|
127
|
-
Number.isFinite(I) && v?.({ target: { value: I } });
|
|
128
|
-
}, C = () => {
|
|
129
|
-
g(null);
|
|
130
|
-
const a = Math.min(y === -1 / 0 ? 1 / 0 : y, Math.max(h === 1 / 0 ? -1 / 0 : h, l));
|
|
131
|
-
a !== l && v?.({ target: { value: a } });
|
|
132
|
-
};
|
|
133
|
-
return /* @__PURE__ */ p("div", {
|
|
134
|
-
className: "flex flex-col gap-2",
|
|
135
|
-
"data-theme": E,
|
|
136
|
-
children: [d ? /* @__PURE__ */ u("div", {
|
|
137
|
-
className: f(z),
|
|
138
|
-
children: /* @__PURE__ */ p(F, {
|
|
139
|
-
component: "label",
|
|
140
|
-
htmlFor: k ?? $,
|
|
141
|
-
variant: "labelLarge",
|
|
142
|
-
className: f(A()),
|
|
143
|
-
children: [
|
|
144
|
-
d,
|
|
145
|
-
" ",
|
|
146
|
-
c && /* @__PURE__ */ u("span", {
|
|
147
|
-
className: "text-red-600 dark:text-red-500",
|
|
148
|
-
children: "*"
|
|
149
|
-
})
|
|
150
|
-
]
|
|
151
|
-
})
|
|
152
|
-
}) : null, /* @__PURE__ */ p("div", {
|
|
153
|
-
className: "flex items-center",
|
|
154
|
-
role: "presentation",
|
|
155
|
-
children: [
|
|
156
|
-
/* @__PURE__ */ p("button", {
|
|
157
|
-
type: "button",
|
|
158
|
-
onClick: T,
|
|
159
|
-
className: f(_({
|
|
160
|
-
button: "rigth",
|
|
161
|
-
className: e
|
|
162
|
-
})),
|
|
163
|
-
disabled: !t,
|
|
164
|
-
children: [/* @__PURE__ */ u(j, { className: "w-4 h-4" }), /* @__PURE__ */ u(P, { children: "Decrement" })]
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ u("input", {
|
|
167
|
-
ref: M,
|
|
168
|
-
type: "number",
|
|
169
|
-
value: r ? S : l,
|
|
170
|
-
name: k,
|
|
171
|
-
className: f(q({ className: n })),
|
|
172
|
-
...r ? {
|
|
173
|
-
onChange: B,
|
|
174
|
-
onBlur: C
|
|
175
|
-
} : { readOnly: !0 },
|
|
176
|
-
"aria-label": typeof d == "string" ? d : "number input"
|
|
177
|
-
}),
|
|
178
|
-
/* @__PURE__ */ p("button", {
|
|
179
|
-
type: "button",
|
|
180
|
-
onClick: V,
|
|
181
|
-
className: f(_({
|
|
182
|
-
button: "left",
|
|
183
|
-
className: o
|
|
184
|
-
})),
|
|
185
|
-
disabled: !i,
|
|
186
|
-
children: [/* @__PURE__ */ u(N, { className: "w-4 h-4" }), /* @__PURE__ */ u(P, { children: "Increment" })]
|
|
187
|
-
})
|
|
188
|
-
]
|
|
189
|
-
})]
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
export {
|
|
193
|
-
ot as t
|
|
194
|
-
};
|
|
@@ -1,490 +0,0 @@
|
|
|
1
|
-
import { o as Ae } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
-
import { t as Le } from "./prop-types-BCUW56rg.js";
|
|
3
|
-
import { a as D, n as Fe } from "./dist-xCbHbMLA.js";
|
|
4
|
-
import { n as Ne, t as se } from "./dist-CCdbu9GU.js";
|
|
5
|
-
import { t as A } from "./utils-DnIJruo0.js";
|
|
6
|
-
import { i as le, r as g, t as Ke } from "./dist-D-yS0HN8.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";
|
|
10
|
-
import { t as Ve } from "./dist-BUocnzkM.js";
|
|
11
|
-
import { t as ze } from "./Combination-CnMM05mt.js";
|
|
12
|
-
import { Button as We } from "./components/Button/Button.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";
|
|
16
|
-
import * as i from "react";
|
|
17
|
-
import ce, { forwardRef as en } from "react";
|
|
18
|
-
import { jsx as s, jsxs as ie } from "react/jsx-runtime";
|
|
19
|
-
var L = /* @__PURE__ */ Ae(Le());
|
|
20
|
-
function W() {
|
|
21
|
-
return W = Object.assign || function(t) {
|
|
22
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
23
|
-
var o = arguments[e];
|
|
24
|
-
for (var n in o) Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
}, W.apply(this, arguments);
|
|
28
|
-
}
|
|
29
|
-
function nn(t, e) {
|
|
30
|
-
if (t == null) return {};
|
|
31
|
-
var o = tn(t, e), n, r;
|
|
32
|
-
if (Object.getOwnPropertySymbols) {
|
|
33
|
-
var a = Object.getOwnPropertySymbols(t);
|
|
34
|
-
for (r = 0; r < a.length; r++)
|
|
35
|
-
n = a[r], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (o[n] = t[n]);
|
|
36
|
-
}
|
|
37
|
-
return o;
|
|
38
|
-
}
|
|
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]);
|
|
43
|
-
return o;
|
|
44
|
-
}
|
|
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"]);
|
|
47
|
-
return /* @__PURE__ */ ce.createElement("svg", W({
|
|
48
|
-
ref: e,
|
|
49
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
50
|
-
width: a,
|
|
51
|
-
height: a,
|
|
52
|
-
viewBox: "0 0 24 24",
|
|
53
|
-
fill: "none",
|
|
54
|
-
stroke: n,
|
|
55
|
-
strokeWidth: "2",
|
|
56
|
-
strokeLinecap: "round",
|
|
57
|
-
strokeLinejoin: "round"
|
|
58
|
-
}, c), /* @__PURE__ */ ce.createElement("polyline", { points: "6 9 12 15 18 9" }));
|
|
59
|
-
});
|
|
60
|
-
q.propTypes = {
|
|
61
|
-
color: L.default.string,
|
|
62
|
-
size: L.default.oneOfType([L.default.string, L.default.number])
|
|
63
|
-
};
|
|
64
|
-
q.displayName = "ChevronDown";
|
|
65
|
-
var on = Object.defineProperty, p = (t, e) => on(t, "name", {
|
|
66
|
-
value: e,
|
|
67
|
-
configurable: !0
|
|
68
|
-
}), Y = ["Enter", " "], rn = [
|
|
69
|
-
"ArrowDown",
|
|
70
|
-
"PageUp",
|
|
71
|
-
"Home"
|
|
72
|
-
], pe = [
|
|
73
|
-
"ArrowUp",
|
|
74
|
-
"PageDown",
|
|
75
|
-
"End"
|
|
76
|
-
], an = [...rn, ...pe], at = {
|
|
77
|
-
ltr: [...Y, "ArrowRight"],
|
|
78
|
-
rtl: [...Y, "ArrowLeft"]
|
|
79
|
-
}, N = "Menu", [X, cn, un] = qe(N), [S, me] = le(N, [
|
|
80
|
-
un,
|
|
81
|
-
de,
|
|
82
|
-
fe
|
|
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);
|
|
85
|
-
return i.useEffect(() => {
|
|
86
|
-
const w = /* @__PURE__ */ p(() => {
|
|
87
|
-
m.current = !0, document.addEventListener("pointerdown", C, {
|
|
88
|
-
capture: !0,
|
|
89
|
-
once: !0
|
|
90
|
-
}), document.addEventListener("pointermove", C, {
|
|
91
|
-
capture: !0,
|
|
92
|
-
once: !0
|
|
93
|
-
});
|
|
94
|
-
}, "handleKeyDown"), C = /* @__PURE__ */ p(() => m.current = !1, "handlePointer");
|
|
95
|
-
return document.addEventListener("keydown", w, { capture: !0 }), () => {
|
|
96
|
-
document.removeEventListener("keydown", w, { capture: !0 }), document.removeEventListener("pointerdown", C, { capture: !0 }), document.removeEventListener("pointermove", C, { capture: !0 });
|
|
97
|
-
};
|
|
98
|
-
}, []), i.useEffect(() => {
|
|
99
|
-
if (!o) return;
|
|
100
|
-
const w = /* @__PURE__ */ p(() => v(!1), "handleBlur");
|
|
101
|
-
return window.addEventListener("blur", w), () => window.removeEventListener("blur", w);
|
|
102
|
-
}, [o, v]), /* @__PURE__ */ s(Ye, {
|
|
103
|
-
...l,
|
|
104
|
-
children: /* @__PURE__ */ s(sn, {
|
|
105
|
-
scope: e,
|
|
106
|
-
open: o,
|
|
107
|
-
onOpenChange: v,
|
|
108
|
-
content: h,
|
|
109
|
-
onContentChange: d,
|
|
110
|
-
children: /* @__PURE__ */ s(ln, {
|
|
111
|
-
scope: e,
|
|
112
|
-
onClose: i.useCallback(() => v(!1), [v]),
|
|
113
|
-
isUsingKeyboardRef: m,
|
|
114
|
-
dir: f,
|
|
115
|
-
modal: c,
|
|
116
|
-
children: n
|
|
117
|
-
})
|
|
118
|
-
})
|
|
119
|
-
});
|
|
120
|
-
}, "Menu"), fn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ p(function(e, o) {
|
|
121
|
-
const { __scopeMenu: n, ...r } = e, a = Z(n);
|
|
122
|
-
return /* @__PURE__ */ s(He, {
|
|
123
|
-
...a,
|
|
124
|
-
...r,
|
|
125
|
-
ref: o
|
|
126
|
-
});
|
|
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);
|
|
129
|
-
return /* @__PURE__ */ s(X.Provider, {
|
|
130
|
-
scope: e.__scopeMenu,
|
|
131
|
-
children: /* @__PURE__ */ s(Ve, {
|
|
132
|
-
present: r || c.open,
|
|
133
|
-
children: /* @__PURE__ */ s(X.Slot, {
|
|
134
|
-
scope: e.__scopeMenu,
|
|
135
|
-
children: l.modal ? /* @__PURE__ */ s(gn, {
|
|
136
|
-
...a,
|
|
137
|
-
ref: o
|
|
138
|
-
}) : /* @__PURE__ */ s(wn, {
|
|
139
|
-
...a,
|
|
140
|
-
ref: o
|
|
141
|
-
})
|
|
142
|
-
})
|
|
143
|
-
})
|
|
144
|
-
});
|
|
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);
|
|
147
|
-
return i.useEffect(() => {
|
|
148
|
-
const c = r.current;
|
|
149
|
-
if (c) return $e(c);
|
|
150
|
-
}, []), /* @__PURE__ */ s(ge, {
|
|
151
|
-
...e,
|
|
152
|
-
ref: a,
|
|
153
|
-
trapFocus: n.open,
|
|
154
|
-
disableOutsidePointerEvents: n.open,
|
|
155
|
-
disableOutsideScroll: !0,
|
|
156
|
-
onFocusOutside: g(e.onFocusOutside, (c) => c.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
157
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
158
|
-
});
|
|
159
|
-
}, "MenuRootContentModal")), wn = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ p(function(e, o) {
|
|
160
|
-
const n = K(I, e.__scopeMenu);
|
|
161
|
-
return /* @__PURE__ */ s(ge, {
|
|
162
|
-
...e,
|
|
163
|
-
ref: o,
|
|
164
|
-
trapFocus: !1,
|
|
165
|
-
disableOutsidePointerEvents: !1,
|
|
166
|
-
disableOutsideScroll: !1,
|
|
167
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
168
|
-
});
|
|
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,
|
|
172
|
-
allowPinchZoom: !0
|
|
173
|
-
} : void 0, ke = /* @__PURE__ */ p((u) => {
|
|
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;
|
|
175
|
-
(/* @__PURE__ */ p((function R(re) {
|
|
176
|
-
T.current = re, window.clearTimeout(O.current), re !== "" && (O.current = window.setTimeout(() => R(""), 1e3));
|
|
177
|
-
}), "updateSearch"))(b), _ && setTimeout(() => _.focus());
|
|
178
|
-
}, "handleTypeaheadSearch");
|
|
179
|
-
i.useEffect(() => () => window.clearTimeout(O.current), []), Ue();
|
|
180
|
-
const P = i.useCallback((u) => oe.current === $.current?.side && Se(u, $.current?.area), []);
|
|
181
|
-
return /* @__PURE__ */ s(vn, {
|
|
182
|
-
scope: n,
|
|
183
|
-
searchRef: T,
|
|
184
|
-
onItemEnter: i.useCallback((u) => {
|
|
185
|
-
P(u) && u.preventDefault();
|
|
186
|
-
}, [P]),
|
|
187
|
-
onItemLeave: i.useCallback((u) => {
|
|
188
|
-
P(u) || (x.current?.focus(), te(null));
|
|
189
|
-
}, [P]),
|
|
190
|
-
onTriggerLeave: i.useCallback((u) => {
|
|
191
|
-
P(u) && u.preventDefault();
|
|
192
|
-
}, [P]),
|
|
193
|
-
pointerGraceTimerRef: xe,
|
|
194
|
-
onPointerGraceIntentChange: i.useCallback((u) => {
|
|
195
|
-
$.current = u;
|
|
196
|
-
}, []),
|
|
197
|
-
children: /* @__PURE__ */ s(Oe, {
|
|
198
|
-
...Te,
|
|
199
|
-
children: /* @__PURE__ */ s(Be, {
|
|
200
|
-
asChild: !0,
|
|
201
|
-
trapped: a,
|
|
202
|
-
onMountAutoFocus: g(c, (u) => {
|
|
203
|
-
u.preventDefault(), x.current?.focus({ preventScroll: !0 });
|
|
204
|
-
}),
|
|
205
|
-
onUnmountAutoFocus: l,
|
|
206
|
-
children: /* @__PURE__ */ s(Ge, {
|
|
207
|
-
asChild: !0,
|
|
208
|
-
disableOutsidePointerEvents: h,
|
|
209
|
-
onEscapeKeyDown: m,
|
|
210
|
-
onPointerDownOutside: v,
|
|
211
|
-
onFocusOutside: f,
|
|
212
|
-
onInteractOutside: w,
|
|
213
|
-
onDismiss: C,
|
|
214
|
-
children: /* @__PURE__ */ s(Je, {
|
|
215
|
-
asChild: !0,
|
|
216
|
-
..._e,
|
|
217
|
-
dir: B.dir,
|
|
218
|
-
orientation: "vertical",
|
|
219
|
-
loop: r,
|
|
220
|
-
currentTabStopId: Ee,
|
|
221
|
-
onCurrentTabStopIdChange: te,
|
|
222
|
-
onEntryFocus: g(d, (u) => {
|
|
223
|
-
B.isUsingKeyboardRef.current || u.preventDefault();
|
|
224
|
-
}),
|
|
225
|
-
preventScrollOnEntryFocus: !0,
|
|
226
|
-
children: /* @__PURE__ */ s(Xe, {
|
|
227
|
-
role: "menu",
|
|
228
|
-
"aria-orientation": "vertical",
|
|
229
|
-
"data-state": we(ee.open),
|
|
230
|
-
"data-radix-menu-content": "",
|
|
231
|
-
dir: B.dir,
|
|
232
|
-
...be,
|
|
233
|
-
...U,
|
|
234
|
-
ref: De,
|
|
235
|
-
style: {
|
|
236
|
-
outline: "none",
|
|
237
|
-
...U.style
|
|
238
|
-
},
|
|
239
|
-
onKeyDown: g(U.onKeyDown, (u) => {
|
|
240
|
-
const b = u.target.closest("[data-radix-menu-content]") === u.currentTarget, y = u.ctrlKey || u.altKey || u.metaKey, E = u.key.length === 1;
|
|
241
|
-
b && (u.key === "Tab" && u.preventDefault(), !y && E && ke(u.key));
|
|
242
|
-
const z = x.current;
|
|
243
|
-
if (u.target !== z || !an.includes(u.key)) return;
|
|
244
|
-
u.preventDefault();
|
|
245
|
-
const k = ne().filter((_) => !_.disabled).map((_) => _.ref.current);
|
|
246
|
-
pe.includes(u.key) && k.reverse(), Ce(k);
|
|
247
|
-
}),
|
|
248
|
-
onBlur: g(e.onBlur, (u) => {
|
|
249
|
-
u.currentTarget.contains(u.target) || (window.clearTimeout(O.current), T.current = "");
|
|
250
|
-
}),
|
|
251
|
-
onPointerMove: g(e.onPointerMove, F((u) => {
|
|
252
|
-
const b = u.target, y = V.current !== u.clientX;
|
|
253
|
-
if (u.currentTarget.contains(b) && y) {
|
|
254
|
-
const E = u.clientX > V.current ? "right" : "left";
|
|
255
|
-
oe.current = E, V.current = u.clientX;
|
|
256
|
-
}
|
|
257
|
-
}))
|
|
258
|
-
})
|
|
259
|
-
})
|
|
260
|
-
})
|
|
261
|
-
})
|
|
262
|
-
})
|
|
263
|
-
});
|
|
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(() => {
|
|
266
|
-
const f = c.current;
|
|
267
|
-
if (!n && f) {
|
|
268
|
-
const w = new CustomEvent(ue, {
|
|
269
|
-
bubbles: !0,
|
|
270
|
-
cancelable: !0
|
|
271
|
-
});
|
|
272
|
-
f.addEventListener(ue, (C) => r?.(C), { once: !0 }), Ne(f, w), w.defaultPrevented ? m.current = !1 : l.onClose();
|
|
273
|
-
}
|
|
274
|
-
}, "handleSelect");
|
|
275
|
-
return /* @__PURE__ */ s(Rn, {
|
|
276
|
-
...a,
|
|
277
|
-
ref: d,
|
|
278
|
-
disabled: n,
|
|
279
|
-
onClick: g(e.onClick, v),
|
|
280
|
-
onPointerDown: (f) => {
|
|
281
|
-
e.onPointerDown?.(f), m.current = !0;
|
|
282
|
-
},
|
|
283
|
-
onPointerUp: g(e.onPointerUp, (f) => {
|
|
284
|
-
m.current || f.currentTarget?.click();
|
|
285
|
-
}),
|
|
286
|
-
onKeyDown: g(e.onKeyDown, (f) => {
|
|
287
|
-
n || f.target !== f.currentTarget || h.searchRef.current !== "" && f.key === " " || Y.includes(f.key) && (f.currentTarget.click(), f.preventDefault());
|
|
288
|
-
})
|
|
289
|
-
});
|
|
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("");
|
|
292
|
-
return i.useEffect(() => {
|
|
293
|
-
const M = d.current;
|
|
294
|
-
M && C((M.textContent ?? "").trim());
|
|
295
|
-
}, [c.children]), /* @__PURE__ */ s(X.ItemSlot, {
|
|
296
|
-
scope: n,
|
|
297
|
-
disabled: r,
|
|
298
|
-
textValue: a ?? w,
|
|
299
|
-
children: /* @__PURE__ */ s(Qe, {
|
|
300
|
-
asChild: !0,
|
|
301
|
-
...h,
|
|
302
|
-
focusable: !r,
|
|
303
|
-
children: /* @__PURE__ */ s(se.div, {
|
|
304
|
-
role: "menuitem",
|
|
305
|
-
"data-highlighted": v ? "" : void 0,
|
|
306
|
-
"aria-disabled": r || void 0,
|
|
307
|
-
"data-disabled": r ? "" : void 0,
|
|
308
|
-
...c,
|
|
309
|
-
ref: m,
|
|
310
|
-
onPointerMove: g(e.onPointerMove, F((M) => {
|
|
311
|
-
r ? l.onItemLeave(M) : (l.onItemEnter(M), M.defaultPrevented || M.currentTarget.focus({ preventScroll: !0 }));
|
|
312
|
-
})),
|
|
313
|
-
onPointerLeave: g(e.onPointerLeave, F((M) => l.onItemLeave(M))),
|
|
314
|
-
onFocus: g(e.onFocus, () => f(!0)),
|
|
315
|
-
onBlur: g(e.onBlur, () => f(!1))
|
|
316
|
-
})
|
|
317
|
-
})
|
|
318
|
-
});
|
|
319
|
-
}, "MenuItemImpl")), [it, ut] = S("MenuRadioGroup", {
|
|
320
|
-
value: void 0,
|
|
321
|
-
onValueChange: /* @__PURE__ */ p(() => {
|
|
322
|
-
}, "onValueChange")
|
|
323
|
-
}), In = "MenuItemIndicator", [st, lt] = S(In, { checked: !1 }), yn = "MenuSub", [dt, ft] = S(yn);
|
|
324
|
-
function we(t) {
|
|
325
|
-
return t ? "open" : "closed";
|
|
326
|
-
}
|
|
327
|
-
p(we, "getOpenState");
|
|
328
|
-
function Me(t) {
|
|
329
|
-
return t === "indeterminate";
|
|
330
|
-
}
|
|
331
|
-
p(Me, "isIndeterminate");
|
|
332
|
-
function Sn(t) {
|
|
333
|
-
return Me(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
334
|
-
}
|
|
335
|
-
p(Sn, "getCheckedState");
|
|
336
|
-
function Ce(t) {
|
|
337
|
-
const e = document.activeElement;
|
|
338
|
-
for (const o of t)
|
|
339
|
-
if (o === e || (o.focus(), document.activeElement !== e)) return;
|
|
340
|
-
}
|
|
341
|
-
p(Ce, "focusFirst");
|
|
342
|
-
function Re(t, e) {
|
|
343
|
-
return t.map((o, n) => t[(e + n) % t.length]);
|
|
344
|
-
}
|
|
345
|
-
p(Re, "wrapArray");
|
|
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()));
|
|
351
|
-
return c !== o ? c : void 0;
|
|
352
|
-
}
|
|
353
|
-
p(Ie, "getNextMatch");
|
|
354
|
-
function ye(t, e) {
|
|
355
|
-
const { x: o, y: n } = t;
|
|
356
|
-
let r = !1;
|
|
357
|
-
for (let a = 0, c = e.length - 1; a < e.length; c = a++) {
|
|
358
|
-
const l = e[a], h = e[c], d = l.x, m = l.y, v = h.x, f = h.y;
|
|
359
|
-
m > n != f > n && o < (v - d) * (n - m) / (f - m) + d && (r = !r);
|
|
360
|
-
}
|
|
361
|
-
return r;
|
|
362
|
-
}
|
|
363
|
-
p(ye, "isPointInPolygon");
|
|
364
|
-
function Se(t, e) {
|
|
365
|
-
return e ? ye({
|
|
366
|
-
x: t.clientX,
|
|
367
|
-
y: t.clientY
|
|
368
|
-
}, e) : !1;
|
|
369
|
-
}
|
|
370
|
-
p(Se, "isPointerInGraceArea");
|
|
371
|
-
function F(t) {
|
|
372
|
-
return (e) => e.pointerType === "mouse" ? t(e) : void 0;
|
|
373
|
-
}
|
|
374
|
-
p(F, "whenMouse");
|
|
375
|
-
var Pn = dn, bn = fn, _n = hn, En = Cn, Dn = Object.defineProperty, j = (t, e) => Dn(t, "name", {
|
|
376
|
-
value: e,
|
|
377
|
-
configurable: !0
|
|
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({
|
|
380
|
-
prop: r,
|
|
381
|
-
defaultProp: a ?? !1,
|
|
382
|
-
onChange: c,
|
|
383
|
-
caller: Q
|
|
384
|
-
});
|
|
385
|
-
return /* @__PURE__ */ s(On, {
|
|
386
|
-
scope: e,
|
|
387
|
-
triggerId: ae(),
|
|
388
|
-
triggerRef: d,
|
|
389
|
-
contentId: ae(),
|
|
390
|
-
open: m,
|
|
391
|
-
onOpenChange: v,
|
|
392
|
-
onOpenToggle: i.useCallback(() => v((f) => !f), [v]),
|
|
393
|
-
modal: l,
|
|
394
|
-
children: /* @__PURE__ */ s(Pn, {
|
|
395
|
-
...h,
|
|
396
|
-
open: m,
|
|
397
|
-
onOpenChange: v,
|
|
398
|
-
dir: n,
|
|
399
|
-
modal: l,
|
|
400
|
-
children: o
|
|
401
|
-
})
|
|
402
|
-
});
|
|
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, {
|
|
406
|
-
asChild: !0,
|
|
407
|
-
...l,
|
|
408
|
-
children: /* @__PURE__ */ s(se.button, {
|
|
409
|
-
type: "button",
|
|
410
|
-
id: c.triggerId,
|
|
411
|
-
"aria-haspopup": "menu",
|
|
412
|
-
"aria-expanded": c.open,
|
|
413
|
-
"aria-controls": c.open ? c.contentId : void 0,
|
|
414
|
-
"data-state": c.open ? "open" : "closed",
|
|
415
|
-
"data-disabled": r ? "" : void 0,
|
|
416
|
-
disabled: r,
|
|
417
|
-
...a,
|
|
418
|
-
ref: h,
|
|
419
|
-
onPointerDown: g(e.onPointerDown, (d) => {
|
|
420
|
-
!r && d.button === 0 && d.ctrlKey === !1 && (c.onOpenToggle(), c.open || d.preventDefault());
|
|
421
|
-
}),
|
|
422
|
-
onKeyDown: g(e.onKeyDown, (d) => {
|
|
423
|
-
r || (["Enter", " "].includes(d.key) && c.onOpenToggle(), d.key === "ArrowDown" && c.onOpenChange(!0), [
|
|
424
|
-
"Enter",
|
|
425
|
-
" ",
|
|
426
|
-
"ArrowDown"
|
|
427
|
-
].includes(d.key) && d.preventDefault());
|
|
428
|
-
})
|
|
429
|
-
})
|
|
430
|
-
});
|
|
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, {
|
|
434
|
-
id: a.contentId,
|
|
435
|
-
"aria-labelledby": a.triggerId,
|
|
436
|
-
...c,
|
|
437
|
-
...r,
|
|
438
|
-
ref: o,
|
|
439
|
-
onCloseAutoFocus: g(e.onCloseAutoFocus, (h) => {
|
|
440
|
-
l.current || a.triggerRef.current?.focus(), l.current = !1, h.preventDefault();
|
|
441
|
-
}),
|
|
442
|
-
onInteractOutside: g(e.onInteractOutside, (h) => {
|
|
443
|
-
const d = h.detail.originalEvent, m = d.button === 0 && d.ctrlKey === !0, v = d.button === 2 || m;
|
|
444
|
-
(!a.modal || v) && (l.current = !0);
|
|
445
|
-
}),
|
|
446
|
-
style: {
|
|
447
|
-
...e.style,
|
|
448
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
449
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
450
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
451
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
452
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
453
|
-
}
|
|
454
|
-
});
|
|
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, {
|
|
458
|
-
...a,
|
|
459
|
-
...r,
|
|
460
|
-
ref: o
|
|
461
|
-
});
|
|
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, {
|
|
463
|
-
modal: !1,
|
|
464
|
-
children: /* @__PURE__ */ ie("div", {
|
|
465
|
-
className: A("relative w-full", e),
|
|
466
|
-
children: [/* @__PURE__ */ s(jn, {
|
|
467
|
-
asChild: !0,
|
|
468
|
-
children: /* @__PURE__ */ ie(We, {
|
|
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" })]
|
|
471
|
-
})
|
|
472
|
-
}), /* @__PURE__ */ s(Gn, {
|
|
473
|
-
align: "start",
|
|
474
|
-
sideOffset: 4,
|
|
475
|
-
loop: !0,
|
|
476
|
-
className: A("z-10 bg-white border border-gray-200 rounded shadow-xs animate-in fade-in-0 py-2", r),
|
|
477
|
-
style: { width: "var(--radix-dropdown-menu-trigger-width)" },
|
|
478
|
-
children: a.map((c, l) => /* @__PURE__ */ s(Un, {
|
|
479
|
-
className: A("hover:bg-gray-50 focus:bg-gray-50 outline-none px-6 py-1.5 hover:cursor-pointer", o),
|
|
480
|
-
onSelect: () => {
|
|
481
|
-
c.onClick?.();
|
|
482
|
-
},
|
|
483
|
-
children: c.label
|
|
484
|
-
}, l))
|
|
485
|
-
})]
|
|
486
|
-
})
|
|
487
|
-
});
|
|
488
|
-
export {
|
|
489
|
-
mt as t
|
|
490
|
-
};
|