@konstructio/ui 0.1.2-alpha.111 → 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 +27 -27
- 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/Toast/Toast.types.d.ts +5 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +1 -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-frCWQhFC.js +0 -76
- 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
|
@@ -6,7 +6,7 @@ var a = r([
|
|
|
6
6
|
"w-full",
|
|
7
7
|
"relative",
|
|
8
8
|
"cursor-pointer"
|
|
9
|
-
]), t = r(["cursor-pointer", "select-none"]),
|
|
9
|
+
]), t = r(["cursor-pointer", "select-none"]), l = r([
|
|
10
10
|
"min-h-9",
|
|
11
11
|
"border",
|
|
12
12
|
"cursor-pointer",
|
|
@@ -23,9 +23,28 @@ var a = r([
|
|
|
23
23
|
"border-gray-200",
|
|
24
24
|
"dark:border-metal-700",
|
|
25
25
|
"dark:bg-metal-800"
|
|
26
|
-
]
|
|
26
|
+
], {
|
|
27
|
+
variants: {
|
|
28
|
+
hasError: {
|
|
29
|
+
true: ["border-red-600", "dark:border-red-500"],
|
|
30
|
+
false: []
|
|
31
|
+
},
|
|
32
|
+
disabled: {
|
|
33
|
+
true: [
|
|
34
|
+
"cursor-default",
|
|
35
|
+
"bg-gray-100",
|
|
36
|
+
"dark:bg-metal-700/80"
|
|
37
|
+
],
|
|
38
|
+
false: []
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
hasError: !1,
|
|
43
|
+
disabled: !1
|
|
44
|
+
}
|
|
45
|
+
});
|
|
27
46
|
export {
|
|
28
47
|
t as labelVariants,
|
|
29
|
-
|
|
48
|
+
l as multiSelectDropdownVariants,
|
|
30
49
|
a as wrapperVariants
|
|
31
50
|
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { t as I } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { Typography as $ } from "../Typography/Typography.js";
|
|
3
|
+
import { useEffect as z, useId as B, useRef as S, useState as T } from "react";
|
|
4
|
+
import { jsx as f, jsxs as w } from "react/jsx-runtime";
|
|
5
|
+
var x = (c, u) => Array.from({ length: u }, (y, p) => c?.[p] ?? ""), _ = ({ autoFocus: c = !1, className: u, defaultValue: y, digitLabel: p = (l) => `Digit ${l}`, disabled: h = !1, error: m, inputClassName: N, label: j, length: a = 6, name: v, theme: A, value: D, onChange: C, onComplete: E }) => {
|
|
6
|
+
const l = `${B()}-error`, g = S([]), [K, M] = T(() => x(y, a)), o = D !== void 0 ? x(D, a) : K, s = typeof m == "string" && m.length > 0;
|
|
7
|
+
z(() => {
|
|
8
|
+
if (c) {
|
|
9
|
+
const e = o.findIndex((t) => t === "");
|
|
10
|
+
g.current[e === -1 ? a - 1 : e]?.focus();
|
|
11
|
+
}
|
|
12
|
+
}, [c]);
|
|
13
|
+
const n = (e) => {
|
|
14
|
+
const t = g.current[Math.min(Math.max(e, 0), a - 1)];
|
|
15
|
+
t?.focus(), t?.select();
|
|
16
|
+
}, b = (e) => {
|
|
17
|
+
M(e);
|
|
18
|
+
const t = e.join("");
|
|
19
|
+
C?.(t), e.every((r) => r !== "") && E?.(t);
|
|
20
|
+
}, k = (e, t) => {
|
|
21
|
+
const r = e.replace(/\D/g, "");
|
|
22
|
+
if (!r) return;
|
|
23
|
+
const i = [...o];
|
|
24
|
+
let d = t;
|
|
25
|
+
for (const P of r) {
|
|
26
|
+
if (d >= a) break;
|
|
27
|
+
i[d] = P, d += 1;
|
|
28
|
+
}
|
|
29
|
+
b(i), n(d);
|
|
30
|
+
}, R = (e, t) => {
|
|
31
|
+
const r = t.target.value.replace(/\D/g, "");
|
|
32
|
+
if (r.length > 1) {
|
|
33
|
+
k(r, e);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const i = [...o];
|
|
37
|
+
i[e] = r, b(i), r && e < a - 1 && n(e + 1);
|
|
38
|
+
}, L = (e, t) => {
|
|
39
|
+
if (t.key === "Backspace" && !o[e] && e > 0) {
|
|
40
|
+
t.preventDefault();
|
|
41
|
+
const r = [...o];
|
|
42
|
+
r[e - 1] = "", b(r), n(e - 1);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (t.key === "ArrowLeft") {
|
|
46
|
+
t.preventDefault(), n(e - 1);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
t.key === "ArrowRight" && (t.preventDefault(), n(e + 1));
|
|
50
|
+
}, O = (e, t) => {
|
|
51
|
+
const r = t.clipboardData.getData("text");
|
|
52
|
+
r && (t.preventDefault(), k(r, e));
|
|
53
|
+
};
|
|
54
|
+
return /* @__PURE__ */ w("div", {
|
|
55
|
+
className: "flex flex-col gap-2",
|
|
56
|
+
"data-theme": A,
|
|
57
|
+
children: [/* @__PURE__ */ w("fieldset", {
|
|
58
|
+
className: I("flex gap-3 border-0 p-0", u),
|
|
59
|
+
"aria-describedby": s ? l : void 0,
|
|
60
|
+
"aria-invalid": s || void 0,
|
|
61
|
+
disabled: h,
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ f("legend", {
|
|
64
|
+
className: "sr-only",
|
|
65
|
+
children: j
|
|
66
|
+
}),
|
|
67
|
+
o.map((e, t) => /* @__PURE__ */ f("input", {
|
|
68
|
+
ref: (r) => {
|
|
69
|
+
g.current[t] = r;
|
|
70
|
+
},
|
|
71
|
+
type: "text",
|
|
72
|
+
inputMode: "numeric",
|
|
73
|
+
autoComplete: t === 0 ? "one-time-code" : "off",
|
|
74
|
+
maxLength: t === 0 ? a : 1,
|
|
75
|
+
value: e,
|
|
76
|
+
disabled: h,
|
|
77
|
+
"aria-label": p(t + 1),
|
|
78
|
+
"aria-invalid": s || void 0,
|
|
79
|
+
className: I("size-10 rounded border bg-white text-center text-base text-slate-800 transition-all", "focus-visible:border-transparent focus-visible:outline-none focus-visible:ring-1", "disabled:cursor-not-allowed disabled:bg-gray-100", "dark:bg-metal-800 dark:text-metal-50 dark:disabled:bg-metal-900", s ? "border-red-600 focus-visible:ring-red-600 dark:border-red-500" : "border-gray-200 focus-visible:ring-aurora-500 dark:border-metal-700", N),
|
|
80
|
+
onChange: (r) => R(t, r),
|
|
81
|
+
onKeyDown: (r) => L(t, r),
|
|
82
|
+
onPaste: (r) => O(t, r),
|
|
83
|
+
onFocus: (r) => r.target.select()
|
|
84
|
+
}, t)),
|
|
85
|
+
v ? /* @__PURE__ */ f("input", {
|
|
86
|
+
type: "hidden",
|
|
87
|
+
name: v,
|
|
88
|
+
value: o.join("")
|
|
89
|
+
}) : null
|
|
90
|
+
]
|
|
91
|
+
}), s ? /* @__PURE__ */ f($, {
|
|
92
|
+
component: "span",
|
|
93
|
+
id: l,
|
|
94
|
+
role: "alert",
|
|
95
|
+
className: "text-xs tracking-normal text-red-700 dark:text-red-400",
|
|
96
|
+
children: m
|
|
97
|
+
}) : null]
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
_.displayName = "KonstructOtpInput";
|
|
101
|
+
export {
|
|
102
|
+
_ as OtpInput
|
|
103
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { t as s } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { CheckAltIcon as x } from "../../assets/icons/components/CheckAlt.js";
|
|
3
|
+
import { Typography as i } from "../Typography/Typography.js";
|
|
4
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
var u = ({ className: r, metLabel: c = "met", pendingLabel: o = "pending", rules: m, theme: d, title: n, value: p }) => /* @__PURE__ */ l("div", {
|
|
6
|
+
"aria-live": "polite",
|
|
7
|
+
"data-theme": d,
|
|
8
|
+
className: s("flex flex-col gap-1", r),
|
|
9
|
+
children: [n ? /* @__PURE__ */ e(i, {
|
|
10
|
+
variant: "body3",
|
|
11
|
+
component: "p",
|
|
12
|
+
className: "text-slate-700 dark:text-metal-200",
|
|
13
|
+
children: n
|
|
14
|
+
}) : null, /* @__PURE__ */ e("ul", {
|
|
15
|
+
className: "m-0 flex list-none flex-col gap-1 p-0",
|
|
16
|
+
children: m.map((t) => {
|
|
17
|
+
const a = t.test(p);
|
|
18
|
+
return /* @__PURE__ */ l("li", {
|
|
19
|
+
"data-met": a,
|
|
20
|
+
className: "flex items-center gap-3",
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ l("span", {
|
|
23
|
+
className: "relative inline-flex size-4 items-center justify-center",
|
|
24
|
+
children: [/* @__PURE__ */ e("span", {
|
|
25
|
+
"aria-hidden": "true",
|
|
26
|
+
className: s("absolute inset-0 inline-flex items-center justify-center leading-none text-slate-500 transition-all duration-200 ease-out dark:text-metal-400", a ? "scale-75 opacity-0" : "scale-100 opacity-100"),
|
|
27
|
+
children: "•"
|
|
28
|
+
}), /* @__PURE__ */ e(x, {
|
|
29
|
+
"aria-hidden": "true",
|
|
30
|
+
className: s("absolute inset-0 size-4 text-green-600 transition-all duration-200 ease-out dark:text-green-400", a ? "scale-100 opacity-100" : "scale-75 opacity-0")
|
|
31
|
+
})]
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ e(i, {
|
|
34
|
+
variant: "body3",
|
|
35
|
+
component: "span",
|
|
36
|
+
className: "text-slate-700 dark:text-metal-200",
|
|
37
|
+
children: t.label
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ e("span", {
|
|
40
|
+
className: "sr-only",
|
|
41
|
+
children: a ? c : o
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
}, t.id);
|
|
45
|
+
})
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
u.displayName = "KonstructPasswordRules";
|
|
49
|
+
export {
|
|
50
|
+
u as PasswordRules
|
|
51
|
+
};
|
|
@@ -1,14 +1,43 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t } from "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { t as c } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { Typography as t } from "../Typography/Typography.js";
|
|
3
|
+
import { labelVariants as p, phoneNumberInputVariants as d } from "./PhoneNumberInput.variants.js";
|
|
4
|
+
import { Suspense as u, forwardRef as h, lazy as f } from "react";
|
|
5
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
var N = f(() => import("./components/PhoneNumberInputContent.js").then((a) => ({ default: a.PhoneNumberInputContent }))), v = ({ error: a, isRequired: r, label: n, labelClassName: s, labelWrapperClassName: m, wrapperClassName: o }) => {
|
|
7
|
+
const i = typeof a == "string" && a.length > 0;
|
|
8
|
+
return /* @__PURE__ */ l("div", {
|
|
9
|
+
className: "w-full flex flex-col gap-2",
|
|
10
|
+
"aria-busy": "true",
|
|
11
|
+
children: [n ? /* @__PURE__ */ e("div", {
|
|
12
|
+
className: c(m),
|
|
13
|
+
children: /* @__PURE__ */ l(t, {
|
|
14
|
+
component: "span",
|
|
15
|
+
className: p({ className: s }),
|
|
16
|
+
children: [n, r && /* @__PURE__ */ e(t, {
|
|
17
|
+
component: "span",
|
|
18
|
+
"aria-hidden": "true",
|
|
19
|
+
className: "text-red-600 dark:text-red-500 ml-1",
|
|
20
|
+
children: "*"
|
|
21
|
+
})]
|
|
22
|
+
})
|
|
23
|
+
}) : null, /* @__PURE__ */ e("div", {
|
|
24
|
+
className: d({
|
|
25
|
+
className: o,
|
|
26
|
+
variant: i ? "error" : "default"
|
|
27
|
+
}),
|
|
28
|
+
children: /* @__PURE__ */ e("div", {
|
|
29
|
+
className: "p-2 flex items-center gap-2.5",
|
|
30
|
+
children: /* @__PURE__ */ e("div", { className: "h-6 w-full" })
|
|
31
|
+
})
|
|
32
|
+
})]
|
|
33
|
+
});
|
|
34
|
+
}, P = h((a, r) => /* @__PURE__ */ e(u, {
|
|
35
|
+
fallback: /* @__PURE__ */ e(v, { ...a }),
|
|
36
|
+
children: /* @__PURE__ */ e(N, {
|
|
37
|
+
ref: r,
|
|
38
|
+
...a
|
|
10
39
|
})
|
|
11
40
|
}));
|
|
12
41
|
export {
|
|
13
|
-
|
|
42
|
+
P as PhoneNumberInput
|
|
14
43
|
};
|
package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as i } from "../../../../Input-2M2I_H60.js";
|
|
2
2
|
import { t as c } from "../../../../utils-DnIJruo0.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { usePhoneNumberContext as d } from "../../contexts/phone-number.hook.js";
|
|
4
|
+
import { t as p } from "../../../../FlagSelectorList-iZ3gUVpf.js";
|
|
5
5
|
import { jsx as r, jsxs as h } from "react/jsx-runtime";
|
|
6
6
|
var v = ({ placeholder: e = "Search", showFlagOnSearch: a, showInputFilter: o, showNameOnSearch: t, showPlaceHolder: m = !0 }) => {
|
|
7
|
-
const { onChangeTermOfSearch: l } =
|
|
7
|
+
const { onChangeTermOfSearch: l } = d(), n = (s) => {
|
|
8
8
|
l(s.target.value);
|
|
9
9
|
};
|
|
10
10
|
return /* @__PURE__ */ h("div", {
|
|
@@ -17,7 +17,7 @@ var v = ({ placeholder: e = "Search", showFlagOnSearch: a, showInputFilter: o, s
|
|
|
17
17
|
placeholder: m ? e : void 0,
|
|
18
18
|
onChange: n
|
|
19
19
|
})
|
|
20
|
-
}), /* @__PURE__ */ r(
|
|
20
|
+
}), /* @__PURE__ */ r(p, {
|
|
21
21
|
showFlagOnSearch: a,
|
|
22
22
|
showNameOnSearch: t
|
|
23
23
|
})]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as m } from "../../../phone-number.provider-DnuL-yYF.js";
|
|
2
|
+
import { t as n } from "../../../Wrapper-ThpRi_Gg.js";
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
var a = p(({ defaultCountryCode: o = "US", ...e }, t) => /* @__PURE__ */ r(m, {
|
|
6
|
+
defaultCountryCode: o,
|
|
7
|
+
children: /* @__PURE__ */ r(n, {
|
|
8
|
+
ref: t,
|
|
9
|
+
...e
|
|
10
|
+
})
|
|
11
|
+
}));
|
|
12
|
+
a.displayName = "PhoneNumberInputContent";
|
|
13
|
+
export {
|
|
14
|
+
a as PhoneNumberInputContent
|
|
15
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { o as f } from "../../../../rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
-
import { a as u,
|
|
3
|
-
import { t as h } from "../../../../debounce-
|
|
4
|
-
import { useCallback as
|
|
2
|
+
import { a as u, o as b, r as m, t as p } from "../../../../dist-vUCyiTQy.js";
|
|
3
|
+
import { t as h } from "../../../../debounce-dMRJxNsT.js";
|
|
4
|
+
import { useCallback as T, useEffect as i, useRef as w, useState as g } from "react";
|
|
5
5
|
import { jsx as s, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
var
|
|
7
|
-
const
|
|
8
|
-
const e =
|
|
6
|
+
var v = /* @__PURE__ */ f(h(), 1), R = ({ text: r, prefix: o }) => {
|
|
7
|
+
const n = w(null), [c, d] = g(!1), t = T(() => {
|
|
8
|
+
const e = n.current;
|
|
9
9
|
e && d(e.scrollWidth > e.clientWidth);
|
|
10
10
|
}, []);
|
|
11
11
|
return i(() => {
|
|
12
|
-
const e = new AbortController(), l = (0,
|
|
12
|
+
const e = new AbortController(), l = (0, v.default)(t, 300);
|
|
13
13
|
return window.addEventListener("resize", l, { signal: e.signal }), () => {
|
|
14
14
|
e.abort(), l.cancel();
|
|
15
15
|
};
|
|
16
16
|
}, [t]), i(() => {
|
|
17
17
|
t();
|
|
18
|
-
}, [r, t]), c ? /* @__PURE__ */ s(
|
|
18
|
+
}, [r, t]), c ? /* @__PURE__ */ s(u, {
|
|
19
19
|
delayDuration: 0,
|
|
20
|
-
children: /* @__PURE__ */ a(
|
|
20
|
+
children: /* @__PURE__ */ a(p, { children: [/* @__PURE__ */ s(b, {
|
|
21
21
|
asChild: !0,
|
|
22
22
|
children: /* @__PURE__ */ a("span", {
|
|
23
|
-
ref:
|
|
23
|
+
ref: n,
|
|
24
24
|
className: "w-full truncate cursor-pointer",
|
|
25
25
|
children: [
|
|
26
26
|
r,
|
|
27
27
|
" ",
|
|
28
|
-
|
|
28
|
+
o
|
|
29
29
|
]
|
|
30
30
|
})
|
|
31
31
|
}), /* @__PURE__ */ a(m, {
|
|
@@ -35,18 +35,18 @@ var k = /* @__PURE__ */ f(h(), 1), N = ({ text: r, prefix: n }) => {
|
|
|
35
35
|
children: [
|
|
36
36
|
r,
|
|
37
37
|
" ",
|
|
38
|
-
|
|
38
|
+
o
|
|
39
39
|
]
|
|
40
40
|
})] })
|
|
41
41
|
}) : /* @__PURE__ */ a("span", {
|
|
42
|
-
ref:
|
|
42
|
+
ref: n,
|
|
43
43
|
className: "w-full truncate",
|
|
44
44
|
children: [r, /* @__PURE__ */ s("span", {
|
|
45
45
|
className: "text-slate-500",
|
|
46
|
-
children:
|
|
46
|
+
children: o
|
|
47
47
|
})]
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
R as TruncateText
|
|
52
52
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t } from "../../../FlagSelectorList-
|
|
2
|
-
import { t as p } from "../../../Wrapper-
|
|
1
|
+
import { t } from "../../../FlagSelectorList-iZ3gUVpf.js";
|
|
2
|
+
import { t as p } from "../../../Wrapper-ThpRi_Gg.js";
|
|
3
3
|
export {
|
|
4
4
|
t as FlagSelectorList,
|
|
5
5
|
p as Wrapper
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as r } from "../../../phone-number.provider-DnuL-yYF.js";
|
|
2
|
+
import { PhoneNumberContext as m } from "./phone-number.context.js";
|
|
3
3
|
import { usePhoneNumberContext as n } from "./phone-number.hook.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
m as PhoneNumberContext,
|
|
6
|
+
r as PhoneNumberProvider,
|
|
7
7
|
n as usePhoneNumberContext
|
|
8
8
|
};
|
|
@@ -1,55 +1,12 @@
|
|
|
1
|
-
import { a as e } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
borderWidth: h,
|
|
11
|
-
borderColor: p
|
|
12
|
-
}] }), [
|
|
13
|
-
p,
|
|
14
|
-
h,
|
|
15
|
-
m,
|
|
16
|
-
d
|
|
17
|
-
]), C = i(() => ({
|
|
18
|
-
plugins: { legend: { display: !1 } },
|
|
19
|
-
cutout: `${x}%`,
|
|
20
|
-
hover: { mode: null }
|
|
21
|
-
}), [x]), D = i(() => {
|
|
22
|
-
const l = [];
|
|
23
|
-
return n && l.push({
|
|
24
|
-
id: "titleCenter",
|
|
25
|
-
beforeDraw(o) {
|
|
26
|
-
const r = o.ctx, c = o.width, f = o.height;
|
|
27
|
-
r.restore(), r.font = `${u} ${a}px sans-serif`, r.fillStyle = g, r.textAlign = "center", r.textBaseline = "middle", r.fillText(n, c / 2, f / 2 - (s ? a / 2 : 0)), r.save();
|
|
28
|
-
}
|
|
29
|
-
}), s && l.push({
|
|
30
|
-
id: "subtitleCenter",
|
|
31
|
-
beforeDraw(o) {
|
|
32
|
-
const r = o.ctx, c = o.width, f = o.height;
|
|
33
|
-
r.restore(), r.font = `${y} ${t}px sans-serif`, r.fillStyle = w, r.fillText(s, c / 2, f / 2 + t / 2), r.save();
|
|
34
|
-
}
|
|
35
|
-
}), l;
|
|
36
|
-
}, [
|
|
37
|
-
s,
|
|
38
|
-
w,
|
|
39
|
-
t,
|
|
40
|
-
y,
|
|
41
|
-
n,
|
|
42
|
-
g,
|
|
43
|
-
a,
|
|
44
|
-
u
|
|
45
|
-
]);
|
|
46
|
-
return /* @__PURE__ */ k(j, {
|
|
47
|
-
data: v,
|
|
48
|
-
options: C,
|
|
49
|
-
plugins: D,
|
|
50
|
-
redraw: $
|
|
51
|
-
});
|
|
52
|
-
};
|
|
1
|
+
import { Suspense as a, lazy as e } from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
var l = e(() => import("./components/PieChartContent/PieChartContent.js").then((r) => ({ default: r.PieChartContent }))), n = (r) => /* @__PURE__ */ t(a, {
|
|
4
|
+
fallback: /* @__PURE__ */ t("div", {
|
|
5
|
+
className: "w-full h-full",
|
|
6
|
+
"aria-busy": "true"
|
|
7
|
+
}),
|
|
8
|
+
children: /* @__PURE__ */ t(l, { ...r })
|
|
9
|
+
});
|
|
53
10
|
export {
|
|
54
|
-
|
|
11
|
+
n as PieChart
|
|
55
12
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { a as e } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { a as j, r as A, t as B } from "../../../../dist-Dg3vyTx9.js";
|
|
3
|
+
import { useMemo as i } from "react";
|
|
4
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
5
|
+
j.register(A);
|
|
6
|
+
var q = ({ values: d, colors: h = [e("--color-neutral-600"), e("--color-emerald-400")], borderColors: m = [e("--color-white"), e("--color-white")], borderWidth: p = 0, cutoutPercentage: x = 80, title: a, subtitle: n, titleFontSize: s = 16, subtitleFontSize: l = 14, titleColor: g = e("--color-gray-900"), subtitleColor: w = e("--color-gray-500"), titleFontWeight: u = "bold", subtitleFontWeight: y = "normal", redraw: C = !0 }) => {
|
|
7
|
+
const $ = i(() => ({ datasets: [{
|
|
8
|
+
data: d,
|
|
9
|
+
backgroundColor: h,
|
|
10
|
+
borderWidth: p,
|
|
11
|
+
borderColor: m
|
|
12
|
+
}] }), [
|
|
13
|
+
m,
|
|
14
|
+
p,
|
|
15
|
+
h,
|
|
16
|
+
d
|
|
17
|
+
]), v = i(() => ({
|
|
18
|
+
plugins: { legend: { display: !1 } },
|
|
19
|
+
cutout: `${x}%`,
|
|
20
|
+
hover: { mode: null }
|
|
21
|
+
}), [x]), D = i(() => {
|
|
22
|
+
const t = [];
|
|
23
|
+
return a && t.push({
|
|
24
|
+
id: "titleCenter",
|
|
25
|
+
beforeDraw(o) {
|
|
26
|
+
const r = o.ctx, c = o.width, f = o.height;
|
|
27
|
+
r.restore(), r.font = `${u} ${s}px sans-serif`, r.fillStyle = g, r.textAlign = "center", r.textBaseline = "middle", r.fillText(a, c / 2, f / 2 - (n ? s / 2 : 0)), r.save();
|
|
28
|
+
}
|
|
29
|
+
}), n && t.push({
|
|
30
|
+
id: "subtitleCenter",
|
|
31
|
+
beforeDraw(o) {
|
|
32
|
+
const r = o.ctx, c = o.width, f = o.height;
|
|
33
|
+
r.restore(), r.font = `${y} ${l}px sans-serif`, r.fillStyle = w, r.fillText(n, c / 2, f / 2 + l / 2), r.save();
|
|
34
|
+
}
|
|
35
|
+
}), t;
|
|
36
|
+
}, [
|
|
37
|
+
n,
|
|
38
|
+
w,
|
|
39
|
+
l,
|
|
40
|
+
y,
|
|
41
|
+
a,
|
|
42
|
+
g,
|
|
43
|
+
s,
|
|
44
|
+
u
|
|
45
|
+
]);
|
|
46
|
+
return /* @__PURE__ */ T(B, {
|
|
47
|
+
"aria-label": a ? [a, n].filter(Boolean).join(" ") : "Pie chart",
|
|
48
|
+
data: $,
|
|
49
|
+
options: v,
|
|
50
|
+
plugins: D,
|
|
51
|
+
redraw: C
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
q as PieChartContent
|
|
56
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { t as p } from "../../dist-
|
|
1
|
+
import { t as p } from "../../dist-C_jtUTU9.js";
|
|
2
2
|
import { t as v } from "../../utils-DnIJruo0.js";
|
|
3
3
|
import { progressBarFillVariants as x, progressBarTrackVariants as f } from "./ProgressBar.variants.js";
|
|
4
4
|
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
var b = ({ ariaLabel: m, className:
|
|
6
|
-
const c = Math.min(Math.max(
|
|
5
|
+
var b = ({ ariaLabel: m, className: d, fillClassName: l, leftContent: e, percent: o, rightContent: r, status: s, theme: n, trackClassName: t }) => {
|
|
6
|
+
const c = Math.min(Math.max(o, 0), 100), h = e || r;
|
|
7
7
|
return /* @__PURE__ */ i("div", {
|
|
8
|
-
className: v("flex flex-col gap-1 w-full",
|
|
9
|
-
"data-theme":
|
|
8
|
+
className: v("flex flex-col gap-1 w-full", d),
|
|
9
|
+
"data-theme": n,
|
|
10
10
|
children: [h && /* @__PURE__ */ i("div", {
|
|
11
11
|
className: "flex items-center justify-between",
|
|
12
|
-
children: [
|
|
12
|
+
children: [e && /* @__PURE__ */ a("div", {
|
|
13
13
|
className: "overflow-hidden text-ellipsis whitespace-nowrap",
|
|
14
|
-
children: r
|
|
15
|
-
}), e && /* @__PURE__ */ a("div", {
|
|
16
|
-
className: "text-right shrink-0",
|
|
17
14
|
children: e
|
|
15
|
+
}), r && /* @__PURE__ */ a("div", {
|
|
16
|
+
className: "text-right shrink-0",
|
|
17
|
+
children: r
|
|
18
18
|
})]
|
|
19
19
|
}), /* @__PURE__ */ i("div", {
|
|
20
|
-
className: f({ className:
|
|
20
|
+
className: f({ className: t }),
|
|
21
21
|
role: "progressbar",
|
|
22
22
|
"aria-label": m,
|
|
23
23
|
"aria-valuenow": c,
|
|
@@ -1,21 +1,39 @@
|
|
|
1
1
|
import { t as a } from "../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
import { Badge as v } from "../Badge/Badge.js";
|
|
3
|
+
import { Card as x } from "../Card/Card.js";
|
|
4
|
+
import { Radio as h } from "../Radio/Radio.js";
|
|
5
|
+
import { radioCardVariants as w } from "./RadioCard.variants.js";
|
|
6
|
+
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
|
7
|
+
var b = ({ wrapperClassName: l, theme: p, labelWrapperClassName: d, checked: r, className: n, content: s, contentClassName: f, description: c, hideIndicator: u = !1, label: i, tag: m, ...C }) => {
|
|
8
|
+
const e = typeof s == "function" ? s(!!r) : s, N = m ? /* @__PURE__ */ t("span", {
|
|
9
|
+
className: "flex items-center gap-2",
|
|
10
|
+
children: [i, /* @__PURE__ */ o(v, {
|
|
11
|
+
variant: "info",
|
|
12
|
+
label: m
|
|
13
|
+
})]
|
|
14
|
+
}) : i;
|
|
15
|
+
return /* @__PURE__ */ t(x, {
|
|
16
|
+
"data-theme": p,
|
|
17
|
+
className: a(w({
|
|
18
|
+
hasContent: !!e,
|
|
19
|
+
className: l
|
|
20
|
+
})),
|
|
21
|
+
wrapperClassName: a("w-max", l),
|
|
22
|
+
isActive: r,
|
|
23
|
+
children: [/* @__PURE__ */ o(h, {
|
|
24
|
+
wrapperClassName: a("w-full h-full p-3 gap-3", d),
|
|
25
|
+
className: a(u && "hidden", n),
|
|
26
|
+
checked: r,
|
|
27
|
+
description: c,
|
|
28
|
+
label: N,
|
|
29
|
+
...C
|
|
30
|
+
}), e ? /* @__PURE__ */ o("div", {
|
|
31
|
+
className: a("relative w-full px-3 pb-3", f),
|
|
32
|
+
children: e
|
|
33
|
+
}) : null]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
b.displayName = "KonstructRadioCard";
|
|
19
37
|
export {
|
|
20
|
-
|
|
38
|
+
b as RadioCard
|
|
21
39
|
};
|