@konstructio/ui 0.1.2-alpha.112 → 0.1.2-alpha.113
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/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/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/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 +180 -154
- 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/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
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { o as ie } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
3
|
+
import { t as ae } from "./prop-types-BCUW56rg.js";
|
|
4
|
+
import { t as F } from "./dist-C_jtUTU9.js";
|
|
5
|
+
import { n as oe, t as l } from "./utils-DnIJruo0.js";
|
|
6
|
+
import { Typography as I } from "./components/Typography/Typography.js";
|
|
7
|
+
import { buttonVariants as H, counterVariants as le, fieldVariants as se, labelVariants as ce, unitVariants as ue } from "./components/Counter/Counter.variants.js";
|
|
8
|
+
import y, { forwardRef as _, useId as fe, useState as pe } from "react";
|
|
9
|
+
import { jsx as s, jsxs as p } from "react/jsx-runtime";
|
|
10
|
+
var u = /* @__PURE__ */ ie(ae());
|
|
11
|
+
function k() {
|
|
12
|
+
return k = Object.assign || function(e) {
|
|
13
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
14
|
+
var r = arguments[a];
|
|
15
|
+
for (var t in r) Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
16
|
+
}
|
|
17
|
+
return e;
|
|
18
|
+
}, k.apply(this, arguments);
|
|
19
|
+
}
|
|
20
|
+
function de(e, a) {
|
|
21
|
+
if (e == null) return {};
|
|
22
|
+
var r = me(e, a), t, n;
|
|
23
|
+
if (Object.getOwnPropertySymbols) {
|
|
24
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
25
|
+
for (n = 0; n < i.length; n++)
|
|
26
|
+
t = i[n], !(a.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
27
|
+
}
|
|
28
|
+
return r;
|
|
29
|
+
}
|
|
30
|
+
function me(e, a) {
|
|
31
|
+
if (e == null) return {};
|
|
32
|
+
for (var r = {}, t = Object.keys(e), n, i = 0; i < t.length; i++)
|
|
33
|
+
n = t[i], !(a.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
34
|
+
return r;
|
|
35
|
+
}
|
|
36
|
+
var z = _(function(e, a) {
|
|
37
|
+
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, d = de(e, ["color", "size"]);
|
|
38
|
+
return /* @__PURE__ */ y.createElement("svg", k({
|
|
39
|
+
ref: a,
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
+
width: i,
|
|
42
|
+
height: i,
|
|
43
|
+
viewBox: "0 0 24 24",
|
|
44
|
+
fill: "none",
|
|
45
|
+
stroke: t,
|
|
46
|
+
strokeWidth: "2",
|
|
47
|
+
strokeLinecap: "round",
|
|
48
|
+
strokeLinejoin: "round"
|
|
49
|
+
}, d), /* @__PURE__ */ y.createElement("line", {
|
|
50
|
+
x1: "5",
|
|
51
|
+
y1: "12",
|
|
52
|
+
x2: "19",
|
|
53
|
+
y2: "12"
|
|
54
|
+
}));
|
|
55
|
+
});
|
|
56
|
+
z.propTypes = {
|
|
57
|
+
color: u.default.string,
|
|
58
|
+
size: u.default.oneOfType([u.default.string, u.default.number])
|
|
59
|
+
};
|
|
60
|
+
z.displayName = "Minus";
|
|
61
|
+
function P() {
|
|
62
|
+
return P = Object.assign || function(e) {
|
|
63
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
64
|
+
var r = arguments[a];
|
|
65
|
+
for (var t in r) Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
66
|
+
}
|
|
67
|
+
return e;
|
|
68
|
+
}, P.apply(this, arguments);
|
|
69
|
+
}
|
|
70
|
+
function ye(e, a) {
|
|
71
|
+
if (e == null) return {};
|
|
72
|
+
var r = he(e, a), t, n;
|
|
73
|
+
if (Object.getOwnPropertySymbols) {
|
|
74
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
75
|
+
for (n = 0; n < i.length; n++)
|
|
76
|
+
t = i[n], !(a.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
77
|
+
}
|
|
78
|
+
return r;
|
|
79
|
+
}
|
|
80
|
+
function he(e, a) {
|
|
81
|
+
if (e == null) return {};
|
|
82
|
+
for (var r = {}, t = Object.keys(e), n, i = 0; i < t.length; i++)
|
|
83
|
+
n = t[i], !(a.indexOf(n) >= 0) && (r[n] = e[n]);
|
|
84
|
+
return r;
|
|
85
|
+
}
|
|
86
|
+
var E = _(function(e, a) {
|
|
87
|
+
var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, d = ye(e, ["color", "size"]);
|
|
88
|
+
return /* @__PURE__ */ y.createElement("svg", P({
|
|
89
|
+
ref: a,
|
|
90
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
91
|
+
width: i,
|
|
92
|
+
height: i,
|
|
93
|
+
viewBox: "0 0 24 24",
|
|
94
|
+
fill: "none",
|
|
95
|
+
stroke: t,
|
|
96
|
+
strokeWidth: "2",
|
|
97
|
+
strokeLinecap: "round",
|
|
98
|
+
strokeLinejoin: "round"
|
|
99
|
+
}, d), /* @__PURE__ */ y.createElement("line", {
|
|
100
|
+
x1: "12",
|
|
101
|
+
y1: "5",
|
|
102
|
+
x2: "12",
|
|
103
|
+
y2: "19"
|
|
104
|
+
}), /* @__PURE__ */ y.createElement("line", {
|
|
105
|
+
x1: "5",
|
|
106
|
+
y1: "12",
|
|
107
|
+
x2: "19",
|
|
108
|
+
y2: "12"
|
|
109
|
+
}));
|
|
110
|
+
});
|
|
111
|
+
E.propTypes = {
|
|
112
|
+
color: u.default.string,
|
|
113
|
+
size: u.default.oneOfType([u.default.string, u.default.number])
|
|
114
|
+
};
|
|
115
|
+
E.displayName = "Plus";
|
|
116
|
+
var Ie = _(({ canDecrement: e = !0, canIncrement: a = !0, className: r, decrementButtonClassName: t, decrementLabel: n = "Decrement", disabled: i = !1, editable: d = !1, error: w, errorClassName: q, fullWidth: O = !1, helperText: $, helperTextClassName: R, incrementButtonClassName: G, incrementLabel: J = "Increment", isRequired: V, label: m, labelAction: L, labelWrapperClassName: K, max: h = -1 / 0, min: v = 1 / 0, name: M, step: g = 1, theme: Q, unit: T, value: U, onChange: b }, X) => {
|
|
117
|
+
const j = fe(), B = M ?? j, S = `${j}-error`, C = `${j}-helper-text`, f = typeof w == "string" && w.length > 0, W = !f && !!$, Y = oe(f && S, W && C), c = U ?? 0, [Z, x] = pe(null), A = Z ?? String(c), ee = () => {
|
|
118
|
+
let o = 0;
|
|
119
|
+
v === 1 / 0 ? o = c - g : o = Math.max(v, c - g), x(null), b?.({ target: { value: o } });
|
|
120
|
+
}, te = () => {
|
|
121
|
+
let o = 0;
|
|
122
|
+
h === -1 / 0 ? o = c + g : o = Math.min(h, c + g), x(null), b?.({ target: { value: o } });
|
|
123
|
+
}, re = (o) => {
|
|
124
|
+
const N = o.target.value;
|
|
125
|
+
if (x(N), N === "") return;
|
|
126
|
+
const D = Number(N);
|
|
127
|
+
Number.isFinite(D) && b?.({ target: { value: D } });
|
|
128
|
+
}, ne = () => {
|
|
129
|
+
x(null);
|
|
130
|
+
const o = Math.min(h === -1 / 0 ? 1 / 0 : h, Math.max(v === 1 / 0 ? -1 / 0 : v, c));
|
|
131
|
+
o !== c && b?.({ target: { value: o } });
|
|
132
|
+
};
|
|
133
|
+
return /* @__PURE__ */ p("div", {
|
|
134
|
+
className: l("flex flex-col gap-2", O && "w-full"),
|
|
135
|
+
"data-theme": Q,
|
|
136
|
+
children: [
|
|
137
|
+
m || L ? /* @__PURE__ */ p("div", {
|
|
138
|
+
className: l("flex items-center justify-between", K),
|
|
139
|
+
children: [m ? /* @__PURE__ */ p(I, {
|
|
140
|
+
component: "label",
|
|
141
|
+
htmlFor: B,
|
|
142
|
+
variant: "labelLarge",
|
|
143
|
+
className: l(ce()),
|
|
144
|
+
children: [
|
|
145
|
+
m,
|
|
146
|
+
" ",
|
|
147
|
+
V && /* @__PURE__ */ s("span", {
|
|
148
|
+
className: "text-red-600 dark:text-red-500",
|
|
149
|
+
children: "*"
|
|
150
|
+
})
|
|
151
|
+
]
|
|
152
|
+
}) : null, L]
|
|
153
|
+
}) : null,
|
|
154
|
+
/* @__PURE__ */ p("div", {
|
|
155
|
+
className: "flex items-center",
|
|
156
|
+
role: "presentation",
|
|
157
|
+
children: [
|
|
158
|
+
/* @__PURE__ */ p("button", {
|
|
159
|
+
type: "button",
|
|
160
|
+
onClick: ee,
|
|
161
|
+
className: l(H({
|
|
162
|
+
button: "rigth",
|
|
163
|
+
hasError: f,
|
|
164
|
+
className: t
|
|
165
|
+
})),
|
|
166
|
+
disabled: i || !e,
|
|
167
|
+
children: [/* @__PURE__ */ s(z, { className: "w-4 h-4" }), /* @__PURE__ */ s(F, { children: n })]
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ p("div", {
|
|
170
|
+
className: l(se({
|
|
171
|
+
fullWidth: O,
|
|
172
|
+
hasError: f,
|
|
173
|
+
disabled: i
|
|
174
|
+
})),
|
|
175
|
+
children: [/* @__PURE__ */ s("input", {
|
|
176
|
+
ref: X,
|
|
177
|
+
id: B,
|
|
178
|
+
type: "number",
|
|
179
|
+
value: d ? A : c,
|
|
180
|
+
name: M,
|
|
181
|
+
disabled: i,
|
|
182
|
+
className: l(le({
|
|
183
|
+
fullWidth: O,
|
|
184
|
+
className: r
|
|
185
|
+
})),
|
|
186
|
+
...d ? {
|
|
187
|
+
onChange: re,
|
|
188
|
+
onBlur: ne
|
|
189
|
+
} : { readOnly: !0 },
|
|
190
|
+
"aria-label": typeof m == "string" ? m : "number input",
|
|
191
|
+
"aria-invalid": f || void 0,
|
|
192
|
+
"aria-describedby": Y,
|
|
193
|
+
"aria-required": V || void 0
|
|
194
|
+
}), T ? /* @__PURE__ */ s("span", {
|
|
195
|
+
className: l(ue()),
|
|
196
|
+
children: T
|
|
197
|
+
}) : null]
|
|
198
|
+
}),
|
|
199
|
+
/* @__PURE__ */ p("button", {
|
|
200
|
+
type: "button",
|
|
201
|
+
onClick: te,
|
|
202
|
+
className: l(H({
|
|
203
|
+
button: "left",
|
|
204
|
+
hasError: f,
|
|
205
|
+
className: G
|
|
206
|
+
})),
|
|
207
|
+
disabled: i || !a,
|
|
208
|
+
children: [/* @__PURE__ */ s(E, { className: "w-4 h-4" }), /* @__PURE__ */ s(F, { children: J })]
|
|
209
|
+
})
|
|
210
|
+
]
|
|
211
|
+
}),
|
|
212
|
+
f ? /* @__PURE__ */ s(I, {
|
|
213
|
+
component: "span",
|
|
214
|
+
id: S,
|
|
215
|
+
className: l("text-xs tracking-normal text-red-700 dark:text-red-400", q),
|
|
216
|
+
children: w
|
|
217
|
+
}) : null,
|
|
218
|
+
W ? /* @__PURE__ */ s(I, {
|
|
219
|
+
component: "span",
|
|
220
|
+
id: C,
|
|
221
|
+
className: l("text-xs text-slate-600 dark:text-slate-200", R),
|
|
222
|
+
children: $
|
|
223
|
+
}) : null
|
|
224
|
+
]
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
export {
|
|
228
|
+
Ie as t
|
|
229
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { o as b } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { t as O } from "./prop-types-BCUW56rg.js";
|
|
3
|
+
import { t as s } from "./utils-DnIJruo0.js";
|
|
4
|
+
import { LoaderIcon as j } from "./assets/icons/components/Loader.js";
|
|
5
|
+
import { Button as x } from "./components/Button/Button.js";
|
|
6
|
+
import { i as _, n as D, r as k, t as z } from "./dist-BCoDIdCt.js";
|
|
7
|
+
import m, { forwardRef as N } from "react";
|
|
8
|
+
import { jsx as i, jsxs as c } from "react/jsx-runtime";
|
|
9
|
+
var l = /* @__PURE__ */ b(O());
|
|
10
|
+
function f() {
|
|
11
|
+
return f = Object.assign || function(e) {
|
|
12
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
13
|
+
var o = arguments[n];
|
|
14
|
+
for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (e[r] = o[r]);
|
|
15
|
+
}
|
|
16
|
+
return e;
|
|
17
|
+
}, f.apply(this, arguments);
|
|
18
|
+
}
|
|
19
|
+
function C(e, n) {
|
|
20
|
+
if (e == null) return {};
|
|
21
|
+
var o = M(e, n), r, t;
|
|
22
|
+
if (Object.getOwnPropertySymbols) {
|
|
23
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
24
|
+
for (t = 0; t < a.length; t++)
|
|
25
|
+
r = a[t], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
26
|
+
}
|
|
27
|
+
return o;
|
|
28
|
+
}
|
|
29
|
+
function M(e, n) {
|
|
30
|
+
if (e == null) return {};
|
|
31
|
+
for (var o = {}, r = Object.keys(e), t, a = 0; a < r.length; a++)
|
|
32
|
+
t = r[a], !(n.indexOf(t) >= 0) && (o[t] = e[t]);
|
|
33
|
+
return o;
|
|
34
|
+
}
|
|
35
|
+
var u = N(function(e, n) {
|
|
36
|
+
var o = e.color, r = o === void 0 ? "currentColor" : o, t = e.size, a = t === void 0 ? 24 : t, p = C(e, ["color", "size"]);
|
|
37
|
+
return /* @__PURE__ */ m.createElement("svg", f({
|
|
38
|
+
ref: n,
|
|
39
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
+
width: a,
|
|
41
|
+
height: a,
|
|
42
|
+
viewBox: "0 0 24 24",
|
|
43
|
+
fill: "none",
|
|
44
|
+
stroke: r,
|
|
45
|
+
strokeWidth: "2",
|
|
46
|
+
strokeLinecap: "round",
|
|
47
|
+
strokeLinejoin: "round"
|
|
48
|
+
}, p), /* @__PURE__ */ m.createElement("polyline", { points: "6 9 12 15 18 9" }));
|
|
49
|
+
});
|
|
50
|
+
u.propTypes = {
|
|
51
|
+
color: l.default.string,
|
|
52
|
+
size: l.default.oneOfType([l.default.string, l.default.number])
|
|
53
|
+
};
|
|
54
|
+
u.displayName = "ChevronDown";
|
|
55
|
+
var $ = ({ appearance: e, buttonClassName: n, className: o, disabled: r = !1, isLoading: t = !1, itemClassName: a, label: p = "Download Invoice as", listClassName: h, options: g, variant: v, version: w }) => /* @__PURE__ */ i(z, {
|
|
56
|
+
modal: !1,
|
|
57
|
+
children: /* @__PURE__ */ c("div", {
|
|
58
|
+
className: s("relative w-full", o),
|
|
59
|
+
children: [/* @__PURE__ */ i(_, {
|
|
60
|
+
asChild: !0,
|
|
61
|
+
disabled: r || t,
|
|
62
|
+
children: /* @__PURE__ */ c(x, {
|
|
63
|
+
appearance: e,
|
|
64
|
+
variant: v,
|
|
65
|
+
version: w,
|
|
66
|
+
disabled: r || t,
|
|
67
|
+
"aria-busy": t || void 0,
|
|
68
|
+
className: s("group flex gap-2 items-center justify-between w-full", n),
|
|
69
|
+
children: [p, t ? /* @__PURE__ */ i(j, {
|
|
70
|
+
size: 16,
|
|
71
|
+
className: "animate-spin shrink-0"
|
|
72
|
+
}) : /* @__PURE__ */ i(u, { className: "transition-transform duration-200 group-data-[state=open]:rotate-180" })]
|
|
73
|
+
})
|
|
74
|
+
}), /* @__PURE__ */ i(D, {
|
|
75
|
+
align: "start",
|
|
76
|
+
sideOffset: 4,
|
|
77
|
+
loop: !0,
|
|
78
|
+
className: s("z-10 bg-white border border-gray-200 rounded shadow-xs animate-in fade-in-0 py-2", h),
|
|
79
|
+
style: { width: "var(--radix-dropdown-menu-trigger-width)" },
|
|
80
|
+
children: g.map((d, y) => /* @__PURE__ */ i(k, {
|
|
81
|
+
className: s("hover:bg-gray-50 focus:bg-gray-50 outline-none px-6 py-1.5 hover:cursor-pointer", a),
|
|
82
|
+
onSelect: () => {
|
|
83
|
+
d.onClick?.();
|
|
84
|
+
},
|
|
85
|
+
children: d.label
|
|
86
|
+
}, y))
|
|
87
|
+
})]
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
$ as t
|
|
92
|
+
};
|