@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
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { o as m } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
2
|
import { t as c } from "./prop-types-BCUW56rg.js";
|
|
3
|
-
import { t as g } from "./dist-
|
|
4
|
-
import { t as
|
|
5
|
-
import { hamburgerTriggerVariants as
|
|
3
|
+
import { t as g } from "./dist-C_jtUTU9.js";
|
|
4
|
+
import { t as d } from "./utils-DnIJruo0.js";
|
|
5
|
+
import { hamburgerTriggerVariants as y } from "./components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js";
|
|
6
6
|
import a, { forwardRef as v } from "react";
|
|
7
7
|
import { jsx as u, jsxs as b } from "react/jsx-runtime";
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
return
|
|
8
|
+
var s = /* @__PURE__ */ m(c());
|
|
9
|
+
function l() {
|
|
10
|
+
return l = Object.assign || function(r) {
|
|
11
11
|
for (var n = 1; n < arguments.length; n++) {
|
|
12
12
|
var t = arguments[n];
|
|
13
13
|
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && (r[e] = t[e]);
|
|
14
14
|
}
|
|
15
15
|
return r;
|
|
16
|
-
},
|
|
16
|
+
}, l.apply(this, arguments);
|
|
17
17
|
}
|
|
18
18
|
function h(r, n) {
|
|
19
19
|
if (r == null) return {};
|
|
@@ -31,9 +31,9 @@ function x(r, n) {
|
|
|
31
31
|
o = e[i], !(n.indexOf(o) >= 0) && (t[o] = r[o]);
|
|
32
32
|
return t;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var p = v(function(r, n) {
|
|
35
35
|
var t = r.color, e = t === void 0 ? "currentColor" : t, o = r.size, i = o === void 0 ? 24 : o, f = h(r, ["color", "size"]);
|
|
36
|
-
return /* @__PURE__ */ a.createElement("svg",
|
|
36
|
+
return /* @__PURE__ */ a.createElement("svg", l({
|
|
37
37
|
ref: n,
|
|
38
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
39
|
width: i,
|
|
@@ -61,19 +61,19 @@ var l = v(function(r, n) {
|
|
|
61
61
|
y2: "18"
|
|
62
62
|
}));
|
|
63
63
|
});
|
|
64
|
-
|
|
65
|
-
color:
|
|
66
|
-
size:
|
|
64
|
+
p.propTypes = {
|
|
65
|
+
color: s.default.string,
|
|
66
|
+
size: s.default.oneOfType([s.default.string, s.default.number])
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
p.displayName = "Menu";
|
|
69
69
|
var O = ({ isOpen: r, onClick: n, className: t, openNavigationLabel: e = "Open navigation" }) => /* @__PURE__ */ b("button", {
|
|
70
70
|
type: "button",
|
|
71
71
|
"aria-label": e,
|
|
72
72
|
"aria-expanded": r,
|
|
73
73
|
"aria-haspopup": "menu",
|
|
74
|
-
className: y(
|
|
74
|
+
className: d(y({ className: t })),
|
|
75
75
|
onClick: n,
|
|
76
|
-
children: [/* @__PURE__ */ u(
|
|
76
|
+
children: [/* @__PURE__ */ u(p, {
|
|
77
77
|
size: 20,
|
|
78
78
|
"aria-hidden": "true"
|
|
79
79
|
}), /* @__PURE__ */ u(g, { children: e })]
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { t as k } from "./x-Vur_9PXW.js";
|
|
2
|
+
import { t as w } from "./dist-C_jtUTU9.js";
|
|
3
|
+
import { t as h } from "./utils-DnIJruo0.js";
|
|
4
|
+
import { t as A } from "./Combination-CnMM05mt.js";
|
|
5
|
+
import { Body as H } from "./components/Modal/components/Body/Body.js";
|
|
6
|
+
import { Footer as x } from "./components/Modal/components/Footer/Footer.js";
|
|
7
|
+
import { Header as B } from "./components/Modal/components/Header/Header.js";
|
|
8
|
+
import { t as C } from "./es2015-B_07N-UL.js";
|
|
9
|
+
import { buttonCloseVariants as E, modalVariants as R } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
|
|
10
|
+
import { Children as l, isValidElement as m, useEffect as g, useRef as V, useState as j } from "react";
|
|
11
|
+
import { createPortal as D } from "react-dom";
|
|
12
|
+
import { Fragment as S, jsx as a, jsxs as c } from "react/jsx-runtime";
|
|
13
|
+
import { motion as z } from "motion/react";
|
|
14
|
+
var I = ({ ariaLabel: f, ariaLabelledBy: n, buttonCloseClassName: s, children: r, className: p, containerClassName: i, showCloseButton: u = !0, theme: y, transition: o, onClose: d }) => {
|
|
15
|
+
const b = l.toArray(r).find((e) => m(e) && e.type === t.Header), v = l.toArray(r).find((e) => m(e) && e.type === t.Body), F = l.toArray(r).find((e) => m(e) && e.type === t.Footer), N = l.toArray(r).filter((e) => !m(e) || ![
|
|
16
|
+
t.Header,
|
|
17
|
+
t.Body,
|
|
18
|
+
t.Footer
|
|
19
|
+
].includes(e.type));
|
|
20
|
+
return /* @__PURE__ */ a(A, { children: /* @__PURE__ */ c("div", {
|
|
21
|
+
className: h("fixed inset-0 grid place-content-center", i),
|
|
22
|
+
"data-theme": y,
|
|
23
|
+
children: [/* @__PURE__ */ a("div", {
|
|
24
|
+
className: "absolute inset-0 bg-black opacity-70 dark:opacity-85 animate-in fade-in-0",
|
|
25
|
+
onClick: d,
|
|
26
|
+
role: "presentation"
|
|
27
|
+
}), /* @__PURE__ */ a(C, {
|
|
28
|
+
returnFocus: !0,
|
|
29
|
+
className: "contents",
|
|
30
|
+
children: /* @__PURE__ */ c(z.div, {
|
|
31
|
+
className: h(R({ className: p })),
|
|
32
|
+
role: "dialog",
|
|
33
|
+
"aria-modal": "true",
|
|
34
|
+
"aria-label": f,
|
|
35
|
+
"aria-labelledby": n,
|
|
36
|
+
layout: "size",
|
|
37
|
+
transition: o ?? {
|
|
38
|
+
duration: 0.25,
|
|
39
|
+
ease: "easeInOut"
|
|
40
|
+
},
|
|
41
|
+
children: [
|
|
42
|
+
b,
|
|
43
|
+
u && /* @__PURE__ */ c("button", {
|
|
44
|
+
className: h(E({ className: s })),
|
|
45
|
+
onClick: d,
|
|
46
|
+
children: [/* @__PURE__ */ a(k, {}), /* @__PURE__ */ a(w, { children: "Dismiss modal" })]
|
|
47
|
+
}),
|
|
48
|
+
v ?? N,
|
|
49
|
+
F
|
|
50
|
+
]
|
|
51
|
+
})
|
|
52
|
+
})]
|
|
53
|
+
}) });
|
|
54
|
+
}, t = ({ isOpen: f, onClose: n, container: s, theme: r, ...p }) => {
|
|
55
|
+
const i = V(null), [u, y] = j(null);
|
|
56
|
+
return g(() => {
|
|
57
|
+
if (!i.current || r || s) return;
|
|
58
|
+
const o = i.current.closest("[data-theme]");
|
|
59
|
+
o && y(o);
|
|
60
|
+
}, [r, s]), g(() => {
|
|
61
|
+
const o = new AbortController(), d = (b) => {
|
|
62
|
+
b.code === "Escape" && n?.();
|
|
63
|
+
};
|
|
64
|
+
return window.addEventListener("keydown", d, { signal: o.signal }), () => {
|
|
65
|
+
o.abort();
|
|
66
|
+
};
|
|
67
|
+
}, [n]), /* @__PURE__ */ c(S, { children: [/* @__PURE__ */ a("span", {
|
|
68
|
+
ref: i,
|
|
69
|
+
"data-testid": "modal-anchor",
|
|
70
|
+
hidden: !0
|
|
71
|
+
}), f && D(/* @__PURE__ */ a(I, {
|
|
72
|
+
...p,
|
|
73
|
+
theme: r,
|
|
74
|
+
onClose: n
|
|
75
|
+
}), s || u || document.body)] });
|
|
76
|
+
};
|
|
77
|
+
t.Header = B;
|
|
78
|
+
t.Body = H;
|
|
79
|
+
t.Footer = x;
|
|
80
|
+
export {
|
|
81
|
+
I as n,
|
|
82
|
+
t
|
|
83
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as f } from "./dist-C_jtUTU9.js";
|
|
3
|
+
import { t } from "./utils-DnIJruo0.js";
|
|
4
|
+
import { Typography as u } from "./components/Typography/Typography.js";
|
|
5
|
+
import { spinnerIconVariants as k, spinnerVariants as g } from "./components/Spinner/Spinner.variants.js";
|
|
6
|
+
import { jsx as a, jsxs as h } from "react/jsx-runtime";
|
|
7
|
+
var s = "data:image/svg+xml,%3csvg%20width='160'%20height='160'%20viewBox='0%200%20160%20160'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M85.2%2083.9L85.6%2085.1L85.9%2086.5L85.9%2088L85.6%2089.6L85%2091.1L84.1%2092.6L82.9%2094L81.4%2095.2L79.6%2096.2L77.6%2096.9L75.4%2097.2L73.2%2097.2L70.8%2096.7L68.5%2095.9L66.3%2094.6L64.3%2092.9L62.5%2090.9L61%2088.4L60%2085.7L59.3%2082.8L59.2%2079.7L59.5%2076.5L60.4%2073.4L61.9%2070.3L63.9%2067.5L66.4%2065L69.3%2062.8L72.6%2061.1L76.3%2060L80.1%2059.4L84.1%2059.5L88.1%2060.3L92%2061.7L95.8%2063.8L99.2%2066.6L102.1%2069.9L104.6%2073.7L106.4%2078L107.6%2082.6L108%2087.4L107.6%2092.3L106.4%2097.2L104.4%20101.9L101.6%20106.3L98.1%20110.2L93.9%20113.6L89.2%20116.3L84%20118.3L78.5%20119.4L72.7%20119.6L67%20118.8L61.3%20117.1L55.9%20114.5L50.9%20111L46.5%20106.7L42.8%20101.6L39.8%2095.9L37.9%2089.8L36.9%2083.3L36.9%2076.6L38.1%2069.9L40.3%2063.4L43.5%2057.3L47.8%2051.7L53%2046.8L58.9%2042.8L65.5%2039.7L72.6%2037.7L80.1%2036.9L87.6%2037.2L95.1%2038.8L102.3%2041.7L109.1%2045.6L115.2%2050.7L120.4%2056.8L124.7%2063.7L127.9%2071.3L129.8%2079.4L130.5%2087.8L129.7%2096.2L127.6%20104.6L124.2%20112.6L119.5%20120L113.6%20126.6L106.7%20132.2L98.8%20136.8L90.3%20140L81.3%20141.8L72%20142.2L62.7%20141L53.6%20138.4L44.9%20134.3L36.9%20128.7L29.9%20122L24%20114.1L19.3%20105.2L16.1%2095.7L14.4%2085.7L14.4%2075.4L16%2065.2L19.3%2055.3L24.1%2045.9L30.4%2037.4L38%2029.9L46.8%2023.7L56.6%2018.9L67.1%2015.8L78.1%2014.3L89.2%2014.6L100.2%2016.8L110.9%2020.7L120.8%2026.3L129.8%2033.5L137.6%2042.1L144%2051.9L148.8%2062.7L151.8%2074.2L85.2%2083.9Z'%20stroke='url(%23spinner-fade)'%20stroke-width='2'/%3e%3cdefs%3e%3clinearGradient%20id='spinner-fade'%20x1='83.6'%20y1='14.2'%20x2='83.6'%20y2='142.2'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2300FF6F'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", i = null, o = (L) => typeof L == "number" ? L : null, v = (L) => {
|
|
8
|
+
if (!(!L || typeof L.getAnimations != "function"))
|
|
9
|
+
for (const e of L.getAnimations({ subtree: !0 }))
|
|
10
|
+
i === null && (i = o(e.startTime) ?? o(document.timeline?.currentTime) ?? 0), e.startTime = i;
|
|
11
|
+
}, y = ({ className: L, spinnerClassName: e, textClassName: l, textVariant: m = "subtitle2", text: n, srLabel: c = "Loading", theme: p, size: r, ...d }) => /* @__PURE__ */ h("div", {
|
|
12
|
+
ref: v,
|
|
13
|
+
role: "status",
|
|
14
|
+
"aria-label": "Loading",
|
|
15
|
+
"data-theme": p,
|
|
16
|
+
className: t(g({
|
|
17
|
+
size: r,
|
|
18
|
+
className: L
|
|
19
|
+
})),
|
|
20
|
+
...d,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ a("span", {
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
className: t(k({ size: r }), e),
|
|
25
|
+
style: {
|
|
26
|
+
maskImage: `url("${s}")`,
|
|
27
|
+
maskSize: "contain",
|
|
28
|
+
maskRepeat: "no-repeat",
|
|
29
|
+
maskPosition: "center",
|
|
30
|
+
WebkitMaskImage: `url("${s}")`,
|
|
31
|
+
WebkitMaskSize: "contain",
|
|
32
|
+
WebkitMaskRepeat: "no-repeat",
|
|
33
|
+
WebkitMaskPosition: "center"
|
|
34
|
+
}
|
|
35
|
+
}),
|
|
36
|
+
n && /* @__PURE__ */ a(u, {
|
|
37
|
+
variant: m,
|
|
38
|
+
className: t("text-slate-700 dark:text-slate-200", l),
|
|
39
|
+
children: n
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ a(f, { children: c })
|
|
42
|
+
]
|
|
43
|
+
});
|
|
44
|
+
y.displayName = "KonstructSpinner";
|
|
45
|
+
export {
|
|
46
|
+
y as t
|
|
47
|
+
};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { a as $ } from "./dist-CK8FUUUn.js";
|
|
2
|
+
import { t as B } from "./dist-CYuWoi9I.js";
|
|
3
|
+
import { t as E } from "./utils-DnIJruo0.js";
|
|
4
|
+
import { LoaderIcon as D } from "./assets/icons/components/Loader.js";
|
|
5
|
+
import { i as G, r as L, t as V } from "./dist-DbeY0Pzx.js";
|
|
6
|
+
import { t as W } from "./dist-vDSmnSS_.js";
|
|
7
|
+
import { Typography as H } from "./components/Typography/Typography.js";
|
|
8
|
+
import { switchVariants as X, thumbVariants as J } from "./components/Switch/Switch.variants.js";
|
|
9
|
+
import * as o from "react";
|
|
10
|
+
import { forwardRef as K, useEffect as Q, useId as Y, useImperativeHandle as Z, useRef as ee, useState as te } from "react";
|
|
11
|
+
import { Fragment as re, jsx as m, jsxs as T } from "react/jsx-runtime";
|
|
12
|
+
var ne = Object.defineProperty, g = (i, a) => ne(i, "name", {
|
|
13
|
+
value: a,
|
|
14
|
+
configurable: !0
|
|
15
|
+
}), U = "Switch", [oe, Re] = G(U), [ce, F] = oe(U);
|
|
16
|
+
function j(i) {
|
|
17
|
+
const { __scopeSwitch: a, checked: d, children: c, defaultChecked: l, disabled: s, form: e, name: r, onCheckedChange: f, required: h, value: w = "on", internal_do_not_use_render: p } = i, [b, S] = V({
|
|
18
|
+
prop: d,
|
|
19
|
+
defaultProp: l ?? !1,
|
|
20
|
+
onChange: f,
|
|
21
|
+
caller: U
|
|
22
|
+
}), [n, v] = o.useState(null), [R, _] = o.useState(null), [t, u] = o.useState(null), k = {
|
|
23
|
+
checked: b,
|
|
24
|
+
setChecked: S,
|
|
25
|
+
disabled: s,
|
|
26
|
+
control: n,
|
|
27
|
+
setControl: v,
|
|
28
|
+
name: r,
|
|
29
|
+
form: e,
|
|
30
|
+
value: w,
|
|
31
|
+
userClick: t,
|
|
32
|
+
onUserClick: u,
|
|
33
|
+
required: h,
|
|
34
|
+
defaultChecked: l,
|
|
35
|
+
isFormControl: n ? !!e || !!n.closest("form") : !0,
|
|
36
|
+
bubbleInput: R,
|
|
37
|
+
setBubbleInput: _
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ m(ce, {
|
|
40
|
+
scope: a,
|
|
41
|
+
...k,
|
|
42
|
+
children: z(p) ? p(k) : c
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
g(j, "SwitchProvider");
|
|
46
|
+
var se = "SwitchTrigger", ie = /* @__PURE__ */ o.forwardRef(/* @__PURE__ */ g(function({ __scopeSwitch: a, onClick: d, ...c }, l) {
|
|
47
|
+
const { control: s, form: e, value: r, disabled: f, checked: h, required: w, setControl: p, setChecked: b, onUserClick: S, isFormControl: n, bubbleInput: v } = F(se, a), R = $(l, p), _ = o.useRef(h);
|
|
48
|
+
return o.useEffect(() => {
|
|
49
|
+
const t = e ? s?.ownerDocument.getElementById(e) : s?.form;
|
|
50
|
+
if (t instanceof HTMLFormElement) {
|
|
51
|
+
const u = /* @__PURE__ */ g(() => b(_.current), "reset");
|
|
52
|
+
return t.addEventListener("reset", u), () => t.removeEventListener("reset", u);
|
|
53
|
+
}
|
|
54
|
+
}, [
|
|
55
|
+
s,
|
|
56
|
+
e,
|
|
57
|
+
b
|
|
58
|
+
]), /* @__PURE__ */ m(B.button, {
|
|
59
|
+
type: "button",
|
|
60
|
+
role: "switch",
|
|
61
|
+
"aria-checked": h,
|
|
62
|
+
"aria-required": w,
|
|
63
|
+
"data-state": q(h),
|
|
64
|
+
"data-disabled": f ? "" : void 0,
|
|
65
|
+
disabled: f,
|
|
66
|
+
value: r,
|
|
67
|
+
...c,
|
|
68
|
+
ref: R,
|
|
69
|
+
onClick: L(d, (t) => {
|
|
70
|
+
const u = t.isPropagationStopped();
|
|
71
|
+
S({
|
|
72
|
+
requestedChecked: !h,
|
|
73
|
+
hasConsumerStoppedPropagation: u
|
|
74
|
+
}), b((k) => !k), v && n && (u || t.stopPropagation());
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
}, "SwitchTrigger")), ae = /* @__PURE__ */ o.forwardRef(/* @__PURE__ */ g(function(a, d) {
|
|
78
|
+
const { __scopeSwitch: c, name: l, checked: s, defaultChecked: e, required: r, disabled: f, value: h, onCheckedChange: w, form: p, ...b } = a;
|
|
79
|
+
return /* @__PURE__ */ m(j, {
|
|
80
|
+
__scopeSwitch: c,
|
|
81
|
+
checked: s,
|
|
82
|
+
defaultChecked: e,
|
|
83
|
+
disabled: f,
|
|
84
|
+
required: r,
|
|
85
|
+
onCheckedChange: w,
|
|
86
|
+
name: l,
|
|
87
|
+
form: p,
|
|
88
|
+
value: h,
|
|
89
|
+
internal_do_not_use_render: ({ isFormControl: S }) => /* @__PURE__ */ T(re, { children: [/* @__PURE__ */ m(ie, {
|
|
90
|
+
...b,
|
|
91
|
+
ref: d,
|
|
92
|
+
__scopeSwitch: c
|
|
93
|
+
}), S && /* @__PURE__ */ m(fe, { __scopeSwitch: c })] })
|
|
94
|
+
});
|
|
95
|
+
}, "Switch")), le = "SwitchThumb", ue = /* @__PURE__ */ o.forwardRef(/* @__PURE__ */ g(function(a, d) {
|
|
96
|
+
const { __scopeSwitch: c, ...l } = a, s = F(le, c);
|
|
97
|
+
return /* @__PURE__ */ m(B.span, {
|
|
98
|
+
"data-state": q(s.checked),
|
|
99
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
100
|
+
...l,
|
|
101
|
+
ref: d
|
|
102
|
+
});
|
|
103
|
+
}, "SwitchThumb")), de = "SwitchBubbleInput", fe = /* @__PURE__ */ o.forwardRef(/* @__PURE__ */ g(function({ __scopeSwitch: a, onClick: d, ...c }, l) {
|
|
104
|
+
const { control: s, userClick: e, checked: r, defaultChecked: f, required: h, disabled: w, name: p, value: b, form: S, bubbleInput: n, setBubbleInput: v } = F(de, a), R = $(l, v), _ = W(s), t = o.useRef(!1), u = o.useRef(r), k = o.useRef(e), I = o.useRef(null);
|
|
105
|
+
o.useEffect(() => {
|
|
106
|
+
const C = n;
|
|
107
|
+
if (!C) return;
|
|
108
|
+
const y = window.HTMLInputElement.prototype, x = Object.getOwnPropertyDescriptor(y, "checked").set;
|
|
109
|
+
if (!x) return;
|
|
110
|
+
const N = u.current !== r;
|
|
111
|
+
u.current = r;
|
|
112
|
+
const A = e !== null && e !== k.current;
|
|
113
|
+
if (k.current = e, A)
|
|
114
|
+
I.current = N ? null : e, N && x.call(C, r), C.dispatchEvent(new Event("click", { bubbles: !e.hasConsumerStoppedPropagation }));
|
|
115
|
+
else if (N) {
|
|
116
|
+
const M = I.current;
|
|
117
|
+
I.current = null;
|
|
118
|
+
const O = M?.requestedChecked === r;
|
|
119
|
+
t.current = !0, x.call(C, r), C.dispatchEvent(new Event("click", { bubbles: !(O && M.hasConsumerStoppedPropagation) })), t.current = !1;
|
|
120
|
+
}
|
|
121
|
+
}, [
|
|
122
|
+
n,
|
|
123
|
+
r,
|
|
124
|
+
e
|
|
125
|
+
]);
|
|
126
|
+
const P = o.useRef(r);
|
|
127
|
+
return /* @__PURE__ */ m(B.input, {
|
|
128
|
+
type: "checkbox",
|
|
129
|
+
"aria-hidden": !0,
|
|
130
|
+
defaultChecked: f ?? P.current,
|
|
131
|
+
required: h,
|
|
132
|
+
disabled: w,
|
|
133
|
+
name: p,
|
|
134
|
+
value: b,
|
|
135
|
+
form: S,
|
|
136
|
+
...c,
|
|
137
|
+
tabIndex: -1,
|
|
138
|
+
ref: R,
|
|
139
|
+
onClick: L(d, (C) => {
|
|
140
|
+
t.current && C.stopPropagation();
|
|
141
|
+
}),
|
|
142
|
+
style: {
|
|
143
|
+
...c.style,
|
|
144
|
+
..._,
|
|
145
|
+
position: "absolute",
|
|
146
|
+
pointerEvents: "none",
|
|
147
|
+
opacity: 0,
|
|
148
|
+
margin: 0,
|
|
149
|
+
transform: "translateX(-100%)"
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}, "SwitchBubbleInput"));
|
|
153
|
+
function z(i) {
|
|
154
|
+
return typeof i == "function";
|
|
155
|
+
}
|
|
156
|
+
g(z, "isFunction");
|
|
157
|
+
function q(i) {
|
|
158
|
+
return i ? "checked" : "unchecked";
|
|
159
|
+
}
|
|
160
|
+
g(q, "getState");
|
|
161
|
+
var _e = K(({ alignment: i = "horizontal", className: a, defaultChecked: d, disabled: c = !1, helperText: l, helperTextClassName: s, isLoading: e = !1, label: r, labels: f, labelClassName: h, labelWrapperClassName: w, name: p, theme: b, thumbClassName: S, value: n, variant: v, onChange: R }, _) => {
|
|
162
|
+
const t = ee(null), u = Y(), k = p ? `${u}-${p}` : u, [I, P] = te(n ?? d ?? !1), C = f ? I ? f.on : f.off : r;
|
|
163
|
+
Z(_, () => t.current, [t]), Q(() => {
|
|
164
|
+
t.current && (t.current.value = `${n}`), n !== void 0 && P(n);
|
|
165
|
+
}, [n]);
|
|
166
|
+
const y = (x) => {
|
|
167
|
+
P(x), R?.(x);
|
|
168
|
+
};
|
|
169
|
+
return /* @__PURE__ */ T("div", {
|
|
170
|
+
className: E("w-full", "flex", "gap-3", i === "vertical" ? "flex-col" : "flex-row", w),
|
|
171
|
+
"data-theme": b,
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ m(ae, {
|
|
174
|
+
id: k,
|
|
175
|
+
defaultChecked: d,
|
|
176
|
+
checked: n,
|
|
177
|
+
onCheckedChange: y,
|
|
178
|
+
className: E(X({
|
|
179
|
+
variant: v,
|
|
180
|
+
className: a
|
|
181
|
+
})),
|
|
182
|
+
"aria-label": C,
|
|
183
|
+
"aria-busy": e || void 0,
|
|
184
|
+
disabled: c || e,
|
|
185
|
+
children: /* @__PURE__ */ m(ue, { className: J({ className: S }) })
|
|
186
|
+
}),
|
|
187
|
+
e ? /* @__PURE__ */ m(D, {
|
|
188
|
+
size: 16,
|
|
189
|
+
"aria-hidden": "true",
|
|
190
|
+
className: "animate-spin shrink-0 self-center text-metal-400"
|
|
191
|
+
}) : null,
|
|
192
|
+
C ? /* @__PURE__ */ T(H, {
|
|
193
|
+
component: "label",
|
|
194
|
+
className: E("flex", "flex-col", "text-sm", "dark:text-white", "select-none", h),
|
|
195
|
+
htmlFor: k,
|
|
196
|
+
style: { paddingRight: 15 },
|
|
197
|
+
children: [C, l ? /* @__PURE__ */ m(H, {
|
|
198
|
+
component: "span",
|
|
199
|
+
className: E("text-xs", "select-none", "text-slate-600", "dark:text-metal-400", s),
|
|
200
|
+
children: l
|
|
201
|
+
}) : null]
|
|
202
|
+
}) : null,
|
|
203
|
+
/* @__PURE__ */ m("input", {
|
|
204
|
+
ref: t,
|
|
205
|
+
name: p,
|
|
206
|
+
type: "text",
|
|
207
|
+
className: "hidden",
|
|
208
|
+
"aria-hidden": "true"
|
|
209
|
+
})
|
|
210
|
+
]
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
export {
|
|
214
|
+
_e as t
|
|
215
|
+
};
|
|
@@ -3,14 +3,14 @@ import { LoaderIcon as he } from "./assets/icons/components/Loader.js";
|
|
|
3
3
|
import { t as ve } from "./createLucideIcon-C7E_xycG.js";
|
|
4
4
|
import { t as ge } from "./chevron-up-B8hiVgxZ.js";
|
|
5
5
|
import { Typography as we } from "./components/Typography/Typography.js";
|
|
6
|
-
import { i as ye, n as Ce, r as Ne, t as ke } from "./dist-
|
|
6
|
+
import { i as ye, n as Ce, r as Ne, t as ke } from "./dist-CQSCPpFc.js";
|
|
7
7
|
import { useSelectContext as be } from "./components/Select/contexts/select.hook.js";
|
|
8
8
|
import { List as Ie } from "./components/Select/components/List/List.js";
|
|
9
9
|
import { inputVariants as Oe, labelVariants as ze, selectVariants as De } from "./components/Select/Select.variants.js";
|
|
10
10
|
import { useSelect as je } from "./components/Select/hooks/useSelect.js";
|
|
11
|
-
import { forwardRef as Le, useEffect as
|
|
11
|
+
import { forwardRef as Le, useEffect as Ve, useImperativeHandle as Re, useMemo as Te, useRef as w } from "react";
|
|
12
12
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
13
|
-
var
|
|
13
|
+
var S = {
|
|
14
14
|
name: "search",
|
|
15
15
|
size: 24,
|
|
16
16
|
node: [["path", {
|
|
@@ -23,25 +23,25 @@ var E = {
|
|
|
23
23
|
key: "4ej97u"
|
|
24
24
|
}]]
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
var Fe = ve(
|
|
28
|
-
const v = `${C}-label`, j = `${C}-control`, L = `${C}-listbox`, d = w(null),
|
|
26
|
+
S.node;
|
|
27
|
+
var Fe = ve(S), Ue = Le(({ additionalOptions: E, className: $, defaultValue: y, describedBy: b, fieldId: C, disabled: n = !1, error: c, groupedOptions: B, iconClassName: K, inputClassName: M, isInfiniteScrollEnabled: W = !1, isLoading: I, isPortal: f = !1, isRequired: x, loadingText: _, label: l, labelAction: q, labelClassName: H, labelWrapperClassName: U, listClassName: G, listItemClassName: J, listItemSecondRowClassName: Q, name: O, noOptionsText: X, placeholder: h, portalClassName: Y, searchable: z = !1, showSearchIcon: N, theme: Z, visibleItems: ee, wrapperClassName: te, onFetchMoreOptions: ae, onBlur: re, onSearchChange: ne, ...D }, oe) => {
|
|
28
|
+
const v = `${C}-label`, j = `${C}-control`, L = `${C}-listbox`, d = w(null), V = w(null), k = w(null), le = w(0), { isOpen: o, options: i, searchTerm: ie, value: u, setCanFilter: se, setSearchTerm: ce, setValue: p, toggleOpen: R } = be(), t = Te(() => i.find(({ value: e }) => e === u), [i, u]), { isInside: ue, wrapperRef: de, wrapperInputRef: T, handleOpen: g } = je({
|
|
29
29
|
inputRef: d,
|
|
30
|
-
searchInputRef:
|
|
30
|
+
searchInputRef: V,
|
|
31
31
|
internalValue: t,
|
|
32
32
|
listRef: k,
|
|
33
33
|
onBlur: re
|
|
34
|
-
}),
|
|
35
|
-
ue(e.relatedTarget) ||
|
|
34
|
+
}), pe = (e) => {
|
|
35
|
+
ue(e.relatedTarget) || R(!1);
|
|
36
36
|
}, F = () => {
|
|
37
37
|
if (!n) {
|
|
38
38
|
if (o) {
|
|
39
|
-
|
|
39
|
+
R(!1);
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
g();
|
|
43
43
|
}
|
|
44
|
-
},
|
|
44
|
+
}, me = (e) => {
|
|
45
45
|
if (!n) {
|
|
46
46
|
if (e.key === "ArrowDown") {
|
|
47
47
|
if (e.preventDefault(), !o) {
|
|
@@ -54,30 +54,30 @@ var Fe = ve(E), Ge = Le(({ additionalOptions: $, className: B, defaultValue: y,
|
|
|
54
54
|
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), F());
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
Re(oe, () => d.current, [d]), Ve(() => {
|
|
58
58
|
if (y && !u) {
|
|
59
|
-
const e = i && i.find((
|
|
60
|
-
e &&
|
|
59
|
+
const e = i && i.find((m) => m.value === y);
|
|
60
|
+
e && p(e.value);
|
|
61
61
|
}
|
|
62
62
|
}, [
|
|
63
63
|
y,
|
|
64
64
|
i,
|
|
65
|
-
|
|
65
|
+
p,
|
|
66
66
|
u
|
|
67
67
|
]);
|
|
68
68
|
const fe = (e) => {
|
|
69
|
-
const
|
|
70
|
-
se(!0),
|
|
71
|
-
const
|
|
72
|
-
|
|
69
|
+
const m = e.target.value;
|
|
70
|
+
se(!0), p(""), ce(m ?? ""), ne?.(m);
|
|
71
|
+
const P = i.find((xe) => xe.value.toLocaleLowerCase() === m.toLocaleLowerCase());
|
|
72
|
+
p(P ? P.value : t?.value ?? "");
|
|
73
73
|
}, A = /* @__PURE__ */ a(Ie, {
|
|
74
74
|
ref: k,
|
|
75
75
|
id: L,
|
|
76
76
|
labelledBy: l ? v : void 0,
|
|
77
|
-
additionalOptions:
|
|
78
|
-
className: r(f && "static top-auto mt-0",
|
|
79
|
-
groupedOptions:
|
|
80
|
-
itemClassName:
|
|
77
|
+
additionalOptions: E,
|
|
78
|
+
className: r(f && "static top-auto mt-0", G),
|
|
79
|
+
groupedOptions: B,
|
|
80
|
+
itemClassName: J,
|
|
81
81
|
name: O,
|
|
82
82
|
wrapperInputRef: T,
|
|
83
83
|
inputRef: d,
|
|
@@ -85,10 +85,10 @@ var Fe = ve(E), Ge = Le(({ additionalOptions: $, className: B, defaultValue: y,
|
|
|
85
85
|
isLoading: !!I,
|
|
86
86
|
searchable: z,
|
|
87
87
|
listItemSecondRowClassName: Q,
|
|
88
|
-
isInfiniteScrollEnabled:
|
|
88
|
+
isInfiniteScrollEnabled: W,
|
|
89
89
|
onFetchMoreOptions: ae,
|
|
90
90
|
noOptionsText: X,
|
|
91
|
-
loadingText:
|
|
91
|
+
loadingText: _,
|
|
92
92
|
visibleItems: ee
|
|
93
93
|
});
|
|
94
94
|
return /* @__PURE__ */ s("div", {
|
|
@@ -96,10 +96,10 @@ var Fe = ve(E), Ge = Le(({ additionalOptions: $, className: B, defaultValue: y,
|
|
|
96
96
|
className: r("flex flex-col gap-2 w-full relative", te),
|
|
97
97
|
"data-theme": Z,
|
|
98
98
|
children: [l ? /* @__PURE__ */ s("div", {
|
|
99
|
-
className: r("flex items-center justify-between",
|
|
99
|
+
className: r("flex items-center justify-between", U),
|
|
100
100
|
children: [/* @__PURE__ */ s("label", {
|
|
101
101
|
id: v,
|
|
102
|
-
className: r(ze({ className:
|
|
102
|
+
className: r(ze({ className: H })),
|
|
103
103
|
htmlFor: j,
|
|
104
104
|
onClick: () => !n && g(),
|
|
105
105
|
children: [l, x && /* @__PURE__ */ a("span", {
|
|
@@ -107,23 +107,23 @@ var Fe = ve(E), Ge = Le(({ additionalOptions: $, className: B, defaultValue: y,
|
|
|
107
107
|
className: "text-red-600 dark:text-red-500 ml-1",
|
|
108
108
|
children: "*"
|
|
109
109
|
})]
|
|
110
|
-
}),
|
|
111
|
-
}) : null, /* @__PURE__ */ s(
|
|
110
|
+
}), q]
|
|
111
|
+
}) : null, /* @__PURE__ */ s(ke, {
|
|
112
112
|
open: f && o,
|
|
113
113
|
children: [
|
|
114
|
-
/* @__PURE__ */ a(
|
|
114
|
+
/* @__PURE__ */ a(Ce, {
|
|
115
115
|
asChild: !0,
|
|
116
116
|
children: /* @__PURE__ */ s("div", {
|
|
117
117
|
ref: T,
|
|
118
118
|
id: j,
|
|
119
119
|
className: r(De({
|
|
120
|
-
className:
|
|
120
|
+
className: $,
|
|
121
121
|
hasError: !!c,
|
|
122
122
|
disabled: n
|
|
123
123
|
})),
|
|
124
124
|
role: "combobox",
|
|
125
125
|
onClick: F,
|
|
126
|
-
onKeyDown:
|
|
126
|
+
onKeyDown: me,
|
|
127
127
|
"aria-expanded": o,
|
|
128
128
|
tabIndex: le.current,
|
|
129
129
|
"aria-labelledby": l ? v : void 0,
|
|
@@ -143,12 +143,12 @@ var Fe = ve(E), Ge = Le(({ additionalOptions: $, className: B, defaultValue: y,
|
|
|
143
143
|
}),
|
|
144
144
|
N && /* @__PURE__ */ a(Fe, { className: r("w-4", "h-4", "text-zinc-500", "select-none", "transition-colors", "duration-300", "dark:text-metal-300", "dark:group-focus-within:text-metal-50") }),
|
|
145
145
|
z ? /* @__PURE__ */ a("input", {
|
|
146
|
-
ref:
|
|
146
|
+
ref: V,
|
|
147
147
|
type: "text",
|
|
148
148
|
value: o ? ie : t?.label ?? u ?? "",
|
|
149
149
|
onChange: fe,
|
|
150
150
|
placeholder: h,
|
|
151
|
-
className: r(Oe({ className:
|
|
151
|
+
className: r(Oe({ className: M }), { "text-red-700 placeholder:text-red-700": !!c }),
|
|
152
152
|
onClick: (e) => {
|
|
153
153
|
e.stopPropagation(), n || g();
|
|
154
154
|
},
|
|
@@ -182,7 +182,7 @@ var Fe = ve(E), Ge = Le(({ additionalOptions: $, className: B, defaultValue: y,
|
|
|
182
182
|
className: "text-metal-400 animate-spin select-none"
|
|
183
183
|
}) : !N && /* @__PURE__ */ a(ge, {
|
|
184
184
|
"data-state": o ? "open" : "closed",
|
|
185
|
-
className: r("w-4 h-4 text-zinc-500 transition-all duration-100 data-[state=open]:rotate-0 data-[state=closed]:rotate-180 select-none dark:group-focus-within:text-metal-50",
|
|
185
|
+
className: r("w-4 h-4 text-zinc-500 transition-all duration-100 data-[state=open]:rotate-0 data-[state=closed]:rotate-180 select-none dark:group-focus-within:text-metal-50", K, {
|
|
186
186
|
"text-red-700": !!c,
|
|
187
187
|
"text-metal-400/50 dark:group-focus-within:text-zinc-500": n
|
|
188
188
|
})
|
|
@@ -201,7 +201,7 @@ var Fe = ve(E), Ge = Le(({ additionalOptions: $, className: B, defaultValue: y,
|
|
|
201
201
|
...D
|
|
202
202
|
}),
|
|
203
203
|
o && !f && A,
|
|
204
|
-
f && /* @__PURE__ */ a(
|
|
204
|
+
f && /* @__PURE__ */ a(ye, { children: /* @__PURE__ */ a(Ne, {
|
|
205
205
|
role: "presentation",
|
|
206
206
|
align: "start",
|
|
207
207
|
sideOffset: 4,
|
|
@@ -212,7 +212,7 @@ var Fe = ve(E), Ge = Le(({ additionalOptions: $, className: B, defaultValue: y,
|
|
|
212
212
|
onCloseAutoFocus: (e) => {
|
|
213
213
|
e.preventDefault();
|
|
214
214
|
},
|
|
215
|
-
onBlur:
|
|
215
|
+
onBlur: pe,
|
|
216
216
|
children: A
|
|
217
217
|
}) })
|
|
218
218
|
]
|
|
@@ -220,5 +220,5 @@ var Fe = ve(E), Ge = Le(({ additionalOptions: $, className: B, defaultValue: y,
|
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
222
|
export {
|
|
223
|
-
|
|
223
|
+
Ue as t
|
|
224
224
|
};
|
|
@@ -2,10 +2,10 @@ import { o as Ne } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
|
2
2
|
import { n as Be, t as X } from "./utils-DnIJruo0.js";
|
|
3
3
|
import { useClickOutside as Re } from "./hooks/useClickOutside.js";
|
|
4
4
|
import { Typography as ee } from "./components/Typography/Typography.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { labelVariants as Ge, phoneNumberInputVariants as Le } from "./components/PhoneNumberInput/PhoneNumberInput.variants.js";
|
|
6
|
+
import { getPhoneMask as xe } from "./components/PhoneNumberInput/utils/index.js";
|
|
7
|
+
import { n as Ve } from "./phone-number.provider-DnuL-yYF.js";
|
|
8
|
+
import { usePhoneNumberContext as Ke } from "./components/PhoneNumberInput/contexts/phone-number.hook.js";
|
|
9
9
|
import { FlagContent as De } from "./components/PhoneNumberInput/components/FlagContent/FlagContent.js";
|
|
10
10
|
import { FlagSelectorWrapper as Fe } from "./components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js";
|
|
11
11
|
import { forwardRef as Ue, useCallback as pe, useEffect as de, useId as _e, useImperativeHandle as $e, useMemo as ze, useRef as te } from "react";
|
|
@@ -688,7 +688,7 @@ function un() {
|
|
|
688
688
|
return nn(c, new Ie(i.current));
|
|
689
689
|
}), []);
|
|
690
690
|
}
|
|
691
|
-
var sn = /* @__PURE__ */ Ne(
|
|
691
|
+
var sn = /* @__PURE__ */ Ne(Ve(), 1);
|
|
692
692
|
var pn = {
|
|
693
693
|
AF: "Afghanistan",
|
|
694
694
|
AL: "Albania",
|
|
@@ -973,8 +973,8 @@ var pn = {
|
|
|
973
973
|
};
|
|
974
974
|
sn.registerLocale(dn);
|
|
975
975
|
var Pn = Ue(({ disabled: e = !1, error: n, helperText: t, helperTextClassName: r, id: o, isRequired: a, label: l, labelClassName: c, labelWrapperClassName: i, name: u, placeholder: s, showFlagOnSearch: d = !0, showInputFilter: g = !0, showNameOnSearch: j = !0, wrapperClassName: A, showPlaceHolder: h, onChange: v, ...p }, O) => {
|
|
976
|
-
const S = _e(), M = o ?? S, f = `${M}-error`, y = `${M}-helper-text`, m = te(null), { isOpenSelector: T, value: P, selectedCountry: b, onChangeValue: B, handleOpenSelector: w } =
|
|
977
|
-
mask:
|
|
976
|
+
const S = _e(), M = o ?? S, f = `${M}-error`, y = `${M}-helper-text`, m = te(null), { isOpenSelector: T, value: P, selectedCountry: b, onChangeValue: B, handleOpenSelector: w } = Ke(), k = typeof n == "string" && n.length > 0, I = !k && !!t, R = Be(k && f, I && y), E = un({
|
|
977
|
+
mask: xe(b),
|
|
978
978
|
replacement: { _: /\d/ }
|
|
979
979
|
});
|
|
980
980
|
$e(O, () => E.current, [E]);
|
|
@@ -1005,7 +1005,7 @@ var Pn = Ue(({ disabled: e = !1, error: n, helperText: t, helperTextClassName: r
|
|
|
1005
1005
|
className: X(i),
|
|
1006
1006
|
children: /* @__PURE__ */ Z("label", {
|
|
1007
1007
|
htmlFor: M,
|
|
1008
|
-
className:
|
|
1008
|
+
className: Ge({ className: c }),
|
|
1009
1009
|
onClick: () => !e && E.current?.focus(),
|
|
1010
1010
|
children: [l, a && /* @__PURE__ */ V(ee, {
|
|
1011
1011
|
component: "span",
|
|
@@ -1018,7 +1018,7 @@ var Pn = Ue(({ disabled: e = !1, error: n, helperText: t, helperTextClassName: r
|
|
|
1018
1018
|
/* @__PURE__ */ Z("div", {
|
|
1019
1019
|
ref: m,
|
|
1020
1020
|
"data-state": T ? "open" : "closed",
|
|
1021
|
-
className:
|
|
1021
|
+
className: Le({
|
|
1022
1022
|
className: A,
|
|
1023
1023
|
variant: k ? "error" : "default"
|
|
1024
1024
|
}),
|