@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,25 +1,25 @@
|
|
|
1
1
|
import { n as Q, t as c } from "../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { useMemo as te } from "react";
|
|
2
|
+
import { buttonGroupPillVariants as R, buttonGroupVariants as T, buttonGroupWrapperVariants as U } from "./ButtonGroup.variants.js";
|
|
3
|
+
import { ButtonGroupItem as X } from "./components/ButtonGroupItem/ButtonGroupItem.js";
|
|
4
|
+
import { ButtonGroupLabel as Y } from "./components/ButtonGroupLabel/ButtonGroupLabel.js";
|
|
5
|
+
import { ButtonGroupMessage as Z } from "./components/ButtonGroupMessage/ButtonGroupMessage.js";
|
|
6
|
+
import { useButtonGroup as _ } from "./hooks/useButtonGroup.js";
|
|
7
|
+
import { useMemo as ee } from "react";
|
|
9
8
|
import { jsx as a, jsxs as G } from "react/jsx-runtime";
|
|
9
|
+
import { motion as te } from "motion/react";
|
|
10
10
|
var ae = ({ className: g, contentClassName: B, defaultValue: I, descriptionAlign: N, descriptionClassName: x, disabled: s, duration: m, error: o, errorClassName: D, helperText: u, helperTextClassName: $, isRequired: p, itemClassName: w, itemLabelClassName: K, label: i, labelAlign: S, labelClassName: V, name: j, options: t, pillClassName: L, requiredClassName: M, theme: C, value: E, wrapperClassName: F, onValueChange: O }) => {
|
|
11
|
-
const { animationDirection: P, groupRef: W, id: n, selected: r, handleKeyDown: k, handleSelect: q } =
|
|
11
|
+
const { animationDirection: P, groupRef: W, id: n, selected: r, handleKeyDown: k, handleSelect: q } = _({
|
|
12
12
|
defaultValue: I,
|
|
13
13
|
disabled: s ?? void 0,
|
|
14
14
|
options: t,
|
|
15
15
|
value: E,
|
|
16
16
|
onValueChange: O
|
|
17
|
-
}), f = `${n}-label`, v = `${n}-error`, h = `${n}-helper-text`, l = typeof o == "string" && o.length > 0, z = Q(l && v, !l && !!u && h), b = t.length, y =
|
|
17
|
+
}), f = `${n}-label`, v = `${n}-error`, h = `${n}-helper-text`, l = typeof o == "string" && o.length > 0, z = Q(l && v, !l && !!u && h), b = t.length, y = ee(() => t.findIndex((e) => e.value === r), [t, r]);
|
|
18
18
|
return /* @__PURE__ */ G("div", {
|
|
19
|
-
className: c(
|
|
19
|
+
className: c(U(), F),
|
|
20
20
|
"data-theme": C,
|
|
21
21
|
children: [
|
|
22
|
-
i && /* @__PURE__ */ a(
|
|
22
|
+
i && /* @__PURE__ */ a(Y, {
|
|
23
23
|
className: V,
|
|
24
24
|
id: f,
|
|
25
25
|
isRequired: p,
|
|
@@ -33,10 +33,10 @@ var ae = ({ className: g, contentClassName: B, defaultValue: I, descriptionAlign
|
|
|
33
33
|
"aria-invalid": l || void 0,
|
|
34
34
|
"aria-describedby": z,
|
|
35
35
|
"aria-required": p || void 0,
|
|
36
|
-
className: c(
|
|
37
|
-
children: [y >= 0 && /* @__PURE__ */ a(
|
|
36
|
+
className: c(T({ disabled: s }), g),
|
|
37
|
+
children: [y >= 0 && /* @__PURE__ */ a(te.div, {
|
|
38
38
|
"aria-hidden": "true",
|
|
39
|
-
className: c(
|
|
39
|
+
className: c(R(), L),
|
|
40
40
|
initial: !1,
|
|
41
41
|
animate: {
|
|
42
42
|
left: `calc(${y} * (100% / ${b}) + 8px)`,
|
|
@@ -49,7 +49,7 @@ var ae = ({ className: g, contentClassName: B, defaultValue: I, descriptionAlign
|
|
|
49
49
|
}
|
|
50
50
|
}), t.map((e, d) => {
|
|
51
51
|
const A = r === e.value, H = s || e.disabled, J = !!e.description;
|
|
52
|
-
return /* @__PURE__ */ a(
|
|
52
|
+
return /* @__PURE__ */ a(X, {
|
|
53
53
|
animationDirection: P,
|
|
54
54
|
className: w,
|
|
55
55
|
contentClassName: B,
|
|
@@ -76,7 +76,7 @@ var ae = ({ className: g, contentClassName: B, defaultValue: I, descriptionAlign
|
|
|
76
76
|
name: j,
|
|
77
77
|
value: r ?? ""
|
|
78
78
|
}),
|
|
79
|
-
/* @__PURE__ */ a(
|
|
79
|
+
/* @__PURE__ */ a(Z, {
|
|
80
80
|
error: o,
|
|
81
81
|
errorClassName: D,
|
|
82
82
|
errorId: v,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as r } from "../../../../utils-DnIJruo0.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { memo as j } from "react";
|
|
2
|
+
import { buttonGroupDescriptionVariants as L, buttonGroupItemContentVariants as V, buttonGroupItemVariants as g, buttonGroupLabelVariants as o } from "./ButtonGroupItem.variants.js";
|
|
3
|
+
import { memo as w } from "react";
|
|
5
4
|
import { jsx as s, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
|
|
5
|
+
import { motion as j } from "motion/react";
|
|
6
|
+
var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t ? "inset(0 0 0 0)" : n === "right" ? "inset(0 0 0 100%)" : "inset(0 100% 0 0)", B = w(({ animationDirection: t, className: n, contentClassName: d, descriptionAlign: p, descriptionClassName: h, duration: b = 0.3, hasDescription: f, index: c, isDisabled: l, isFirst: v, isLast: y, isSelected: i, labelAlign: m, labelClassName: u, option: e, value: N, onKeyDown: G, onSelect: x }) => /* @__PURE__ */ s("button", {
|
|
7
7
|
type: "button",
|
|
8
8
|
role: "radio",
|
|
9
9
|
"aria-checked": i,
|
|
@@ -12,13 +12,13 @@ var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t
|
|
|
12
12
|
tabIndex: i || c === 0 ? 0 : -1,
|
|
13
13
|
onClick: () => !l && x(N),
|
|
14
14
|
onKeyDown: (I) => G(I, c),
|
|
15
|
-
className: r(
|
|
15
|
+
className: r(g({
|
|
16
16
|
disabled: l,
|
|
17
17
|
isFirst: v,
|
|
18
18
|
isLast: y
|
|
19
19
|
}), "relative", n),
|
|
20
20
|
children: /* @__PURE__ */ a("div", {
|
|
21
|
-
className: r(
|
|
21
|
+
className: r(V({ hasDescription: f }), "relative", d),
|
|
22
22
|
children: [/* @__PURE__ */ a("span", {
|
|
23
23
|
className: "relative w-full",
|
|
24
24
|
children: [/* @__PURE__ */ a("span", {
|
|
@@ -30,7 +30,7 @@ var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t
|
|
|
30
30
|
className: "flex items-center gap-2",
|
|
31
31
|
children: [e.icon, e.label]
|
|
32
32
|
}), e.secondaryLabel && /* @__PURE__ */ s("span", { children: e.secondaryLabel })]
|
|
33
|
-
}), /* @__PURE__ */ a(
|
|
33
|
+
}), /* @__PURE__ */ a(j.span, {
|
|
34
34
|
className: r(o({
|
|
35
35
|
selected: !0,
|
|
36
36
|
labelAlign: m
|
|
@@ -49,7 +49,7 @@ var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t
|
|
|
49
49
|
}), e.secondaryLabel && /* @__PURE__ */ s("span", { children: e.secondaryLabel })]
|
|
50
50
|
})]
|
|
51
51
|
}), e.description && /* @__PURE__ */ s("span", {
|
|
52
|
-
className: r(
|
|
52
|
+
className: r(L({ descriptionAlign: p }), h),
|
|
53
53
|
children: e.description
|
|
54
54
|
})]
|
|
55
55
|
})
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { t as j } from "../../Checkbox-DRdyrKjk.js";
|
|
2
|
+
import { t as e } from "../../utils-DnIJruo0.js";
|
|
3
|
+
import { Typography as m } from "../Typography/Typography.js";
|
|
4
|
+
import { Card as $ } from "../Card/Card.js";
|
|
5
|
+
import { useId as A, useState as B } from "react";
|
|
6
|
+
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
var F = ({ checked: i, className: p, contentClassName: h, defaultChecked: f, description: o, disabled: a = !1, id: x, label: u, name: C, theme: k, value: b, wrapperClassName: y, onChange: N }) => {
|
|
8
|
+
const g = A(), t = x ?? g, s = `${t}-label`, l = `${t}-description`, [v, I] = B(f ?? !1), n = i ?? v, w = (c) => {
|
|
9
|
+
I(c), N?.(c);
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ r($, {
|
|
12
|
+
"data-theme": k,
|
|
13
|
+
isActive: n,
|
|
14
|
+
canHover: !a,
|
|
15
|
+
wrapperClassName: e("w-full", y),
|
|
16
|
+
className: e("flex items-start p-0", a && "cursor-not-allowed opacity-50"),
|
|
17
|
+
children: /* @__PURE__ */ d("label", {
|
|
18
|
+
htmlFor: t,
|
|
19
|
+
className: e("flex w-full items-start gap-3 p-4", a ? "cursor-not-allowed" : "cursor-pointer"),
|
|
20
|
+
children: [/* @__PURE__ */ r(j, {
|
|
21
|
+
id: t,
|
|
22
|
+
name: C,
|
|
23
|
+
value: b,
|
|
24
|
+
checked: n,
|
|
25
|
+
disabled: a,
|
|
26
|
+
ariaLabelledBy: s,
|
|
27
|
+
"aria-describedby": o ? l : void 0,
|
|
28
|
+
className: e("mt-0.5 shrink-0", p),
|
|
29
|
+
onChange: w
|
|
30
|
+
}), /* @__PURE__ */ d("span", {
|
|
31
|
+
className: e("flex flex-col gap-1", h),
|
|
32
|
+
children: [/* @__PURE__ */ r(m, {
|
|
33
|
+
id: s,
|
|
34
|
+
component: "span",
|
|
35
|
+
variant: "body2",
|
|
36
|
+
className: "font-medium text-slate-800 dark:text-metal-50",
|
|
37
|
+
children: u
|
|
38
|
+
}), o ? /* @__PURE__ */ r(m, {
|
|
39
|
+
id: l,
|
|
40
|
+
component: "span",
|
|
41
|
+
variant: "body3",
|
|
42
|
+
className: "text-slate-500 dark:text-metal-400",
|
|
43
|
+
children: o
|
|
44
|
+
}) : null]
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
F.displayName = "KonstructCheckboxCard";
|
|
50
|
+
export {
|
|
51
|
+
F as CheckboxCard
|
|
52
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as p } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { useState as A } from "react";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
import { AnimatePresence as C, motion as f, useReducedMotion as x } from "motion/react";
|
|
5
|
+
var e = [
|
|
6
|
+
0.4,
|
|
7
|
+
0,
|
|
8
|
+
0.2,
|
|
9
|
+
1
|
|
10
|
+
], y = ({ children: n, className: r, collapsedMarginTop: u = 0, id: s, isOpen: t, keepMounted: h = !1, onExitComplete: v }) => {
|
|
11
|
+
const g = x(), [l, o] = A(!1), m = g ? { duration: 0 } : {
|
|
12
|
+
height: {
|
|
13
|
+
duration: 0.35,
|
|
14
|
+
ease: e
|
|
15
|
+
},
|
|
16
|
+
marginTop: {
|
|
17
|
+
duration: 0.35,
|
|
18
|
+
ease: e
|
|
19
|
+
},
|
|
20
|
+
opacity: {
|
|
21
|
+
duration: 0.25,
|
|
22
|
+
ease: e
|
|
23
|
+
}
|
|
24
|
+
}, a = {
|
|
25
|
+
opacity: 0,
|
|
26
|
+
height: 0,
|
|
27
|
+
marginTop: u
|
|
28
|
+
}, d = {
|
|
29
|
+
opacity: 1,
|
|
30
|
+
height: "auto",
|
|
31
|
+
marginTop: 0
|
|
32
|
+
}, c = t && !l ? "overflow-visible" : "overflow-hidden";
|
|
33
|
+
return h ? /* @__PURE__ */ i(f.div, {
|
|
34
|
+
id: s,
|
|
35
|
+
initial: !1,
|
|
36
|
+
animate: t ? d : a,
|
|
37
|
+
transition: m,
|
|
38
|
+
hidden: !t && !l,
|
|
39
|
+
"aria-hidden": !t || void 0,
|
|
40
|
+
className: p(c, r),
|
|
41
|
+
onAnimationStart: () => o(!0),
|
|
42
|
+
onAnimationComplete: () => o(!1),
|
|
43
|
+
children: n
|
|
44
|
+
}) : /* @__PURE__ */ i(C, {
|
|
45
|
+
initial: !1,
|
|
46
|
+
onExitComplete: v,
|
|
47
|
+
children: t ? /* @__PURE__ */ i(f.div, {
|
|
48
|
+
id: s,
|
|
49
|
+
initial: a,
|
|
50
|
+
animate: d,
|
|
51
|
+
exit: a,
|
|
52
|
+
transition: m,
|
|
53
|
+
className: p(c, r),
|
|
54
|
+
onAnimationStart: () => o(!0),
|
|
55
|
+
onAnimationComplete: () => o(!1),
|
|
56
|
+
children: n
|
|
57
|
+
}, "collapse") : null
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
y.displayName = "KonstructCollapse";
|
|
61
|
+
export {
|
|
62
|
+
y as Collapse
|
|
63
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as n } from "../../dist-C_jtUTU9.js";
|
|
2
2
|
import { t as o } from "../../utils-DnIJruo0.js";
|
|
3
|
-
import { s, t as p } from "../../dist-
|
|
3
|
+
import { s, t as p } from "../../dist-BqDJX7m1.js";
|
|
4
4
|
import { wrapperVariants as l } from "./Command.variants.js";
|
|
5
5
|
import { CommandGroup as D } from "./components/CommandGroup.js";
|
|
6
6
|
import { CommandItem as v } from "./components/CommandItem.js";
|
|
@@ -9,14 +9,14 @@ import { DialogContent as f } from "./components/DialogContent.js";
|
|
|
9
9
|
import { Command as c } from "./components/Command.js";
|
|
10
10
|
import "./components/index.js";
|
|
11
11
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
12
|
-
var I = ({ children: r, title: a, titleClassName: i, wrapperClassName: e, theme: t, ...
|
|
13
|
-
...
|
|
12
|
+
var I = ({ children: r, title: a, titleClassName: i, wrapperClassName: e, theme: t, ...d }) => /* @__PURE__ */ m(p, {
|
|
13
|
+
...d,
|
|
14
14
|
children: /* @__PURE__ */ h(f, {
|
|
15
15
|
className: "overflow-hidden p-0 border-0 rounded-none!",
|
|
16
16
|
"data-theme": t,
|
|
17
17
|
children: [/* @__PURE__ */ m(s, {
|
|
18
18
|
className: o("hidden", i),
|
|
19
|
-
children: /* @__PURE__ */ m(
|
|
19
|
+
children: /* @__PURE__ */ m(n, { children: a })
|
|
20
20
|
}), /* @__PURE__ */ m(c, {
|
|
21
21
|
className: o(l({ className: e })),
|
|
22
22
|
children: r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as r } from "../../../dist-
|
|
1
|
+
import { t as r } from "../../../dist-4IVGO6ZT.js";
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
3
|
import { jsx as m } from "react/jsx-runtime";
|
|
4
4
|
var p = d(({ className: a, children: o, ...e }, i) => /* @__PURE__ */ m(r, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../../utils-DnIJruo0.js";
|
|
2
|
-
import { t as o } from "../../../dist-
|
|
2
|
+
import { t as o } from "../../../dist-4IVGO6ZT.js";
|
|
3
3
|
import { forwardRef as p } from "react";
|
|
4
4
|
import { jsx as a } from "react/jsx-runtime";
|
|
5
5
|
var t = p(({ className: r, ...m }, d) => /* @__PURE__ */ a(o.Group, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as d } from "../../../utils-DnIJruo0.js";
|
|
2
|
-
import { t as a } from "../../../dist-
|
|
2
|
+
import { t as a } from "../../../dist-4IVGO6ZT.js";
|
|
3
3
|
import { CommandContext as i } from "../contexts/Command.context.js";
|
|
4
4
|
import { forwardRef as c, useCallback as l, useContext as p } from "react";
|
|
5
5
|
import { jsx as u } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t } from "../../../utils-DnIJruo0.js";
|
|
2
|
-
import { t as o } from "../../../dist-
|
|
2
|
+
import { t as o } from "../../../dist-4IVGO6ZT.js";
|
|
3
3
|
import { forwardRef as i } from "react";
|
|
4
4
|
import { jsx as s } from "react/jsx-runtime";
|
|
5
5
|
var e = i(({ className: m, ...r }, a) => /* @__PURE__ */ s(o.List, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../../utils-DnIJruo0.js";
|
|
2
|
-
import { t as r } from "../../../dist-
|
|
2
|
+
import { t as r } from "../../../dist-4IVGO6ZT.js";
|
|
3
3
|
import { forwardRef as t } from "react";
|
|
4
4
|
import { jsx as p } from "react/jsx-runtime";
|
|
5
5
|
var s = t(({ className: a, ...o }, m) => /* @__PURE__ */ p(r.Separator, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as r } from "../../../x-Vur_9PXW.js";
|
|
2
2
|
import { t as d } from "../../../utils-DnIJruo0.js";
|
|
3
|
-
import { n as l, o as m, r as o } from "../../../dist-
|
|
3
|
+
import { n as l, o as m, r as o } from "../../../dist-BqDJX7m1.js";
|
|
4
4
|
import { DialogOverlay as p } from "./DialogOverlay.js";
|
|
5
5
|
import { forwardRef as f } from "react";
|
|
6
6
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as i } from "../../../utils-DnIJruo0.js";
|
|
2
|
-
import { a } from "../../../dist-
|
|
2
|
+
import { a } from "../../../dist-BqDJX7m1.js";
|
|
3
3
|
import { forwardRef as r } from "react";
|
|
4
4
|
import { jsx as s } from "react/jsx-runtime";
|
|
5
5
|
var d = r(({ className: t, ...e }, o) => /* @__PURE__ */ s(a, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as o } from "../../../CommandInput-
|
|
1
|
+
import { t as o } from "../../../CommandInput-Du2o616y.js";
|
|
2
2
|
import { CommandEmpty as t } from "./CommandEmpty.js";
|
|
3
3
|
import { CommandGroup as a } from "./CommandGroup.js";
|
|
4
4
|
import { CommandItem as n } from "./CommandItem.js";
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { t as H } from "../../Input-2M2I_H60.js";
|
|
2
|
+
import { t as g } from "../../utils-DnIJruo0.js";
|
|
3
|
+
import { WarningIcon as K } from "../../assets/icons/components/Warning.js";
|
|
4
|
+
import { Button as C } from "../Button/Button.js";
|
|
5
|
+
import { Typography as d } from "../Typography/Typography.js";
|
|
6
|
+
import { CopyButton as T } from "../CopyButton/CopyButton.js";
|
|
7
|
+
import { t as l } from "../../Modal-CysTe3zL.js";
|
|
8
|
+
import { useEffect as V, useId as W, useState as A } from "react";
|
|
9
|
+
import { Fragment as G, jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
10
|
+
var J = ({ cancelLabel: N = "Cancel", children: v, className: k, confirmationInputClassName: I, confirmationInputLabel: w, confirmationPrompt: B, confirmationText: a, confirmLabel: n = "Confirm", containerClassName: j, copyLabel: D = "Copy", description: i, icon: c, isOpen: o, isPending: t = !1, pendingLabel: F, theme: S, title: $, variant: f = "danger", onClose: M, onConfirm: q }) => {
|
|
11
|
+
const s = W(), p = `${s}-title`, [u, h] = A(""), x = !!a, y = !x || u === a;
|
|
12
|
+
V(() => {
|
|
13
|
+
o && h("");
|
|
14
|
+
}, [o]);
|
|
15
|
+
const b = () => {
|
|
16
|
+
t || M();
|
|
17
|
+
}, z = (m) => {
|
|
18
|
+
m.preventDefault(), !(t || !y) && q();
|
|
19
|
+
}, E = c === void 0 ? /* @__PURE__ */ e(K, {
|
|
20
|
+
size: 24,
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
className: g("shrink-0", f === "danger" ? "text-red-600 dark:text-red-500" : "text-aurora-500")
|
|
23
|
+
}) : c;
|
|
24
|
+
return /* @__PURE__ */ e(l, {
|
|
25
|
+
isOpen: o,
|
|
26
|
+
theme: S,
|
|
27
|
+
showCloseButton: !1,
|
|
28
|
+
ariaLabelledBy: p,
|
|
29
|
+
containerClassName: j,
|
|
30
|
+
className: g("max-w-125 min-h-0 min-w-0 gap-0 p-6", k),
|
|
31
|
+
onClose: b,
|
|
32
|
+
children: /* @__PURE__ */ r("form", {
|
|
33
|
+
id: s,
|
|
34
|
+
noValidate: !0,
|
|
35
|
+
className: "flex flex-col gap-6",
|
|
36
|
+
onSubmit: z,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ r(l.Header, {
|
|
39
|
+
className: "flex items-start gap-4",
|
|
40
|
+
children: [E, /* @__PURE__ */ r("div", {
|
|
41
|
+
className: "flex min-w-0 flex-1 flex-col gap-4",
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ e(d, {
|
|
44
|
+
id: p,
|
|
45
|
+
variant: "subtitle3",
|
|
46
|
+
component: "h2",
|
|
47
|
+
className: "text-slate-800 dark:text-slate-200",
|
|
48
|
+
children: $
|
|
49
|
+
}),
|
|
50
|
+
i ? /* @__PURE__ */ e(d, {
|
|
51
|
+
variant: "body2",
|
|
52
|
+
className: "text-slate-700 dark:text-slate-50",
|
|
53
|
+
children: i
|
|
54
|
+
}) : null,
|
|
55
|
+
v
|
|
56
|
+
]
|
|
57
|
+
})]
|
|
58
|
+
}),
|
|
59
|
+
x ? /* @__PURE__ */ r(l.Body, {
|
|
60
|
+
className: "flex flex-col gap-2 pl-10",
|
|
61
|
+
children: [/* @__PURE__ */ e(d, {
|
|
62
|
+
variant: "body2",
|
|
63
|
+
component: "p",
|
|
64
|
+
className: "flex flex-wrap items-center gap-1 font-medium text-slate-800 dark:text-metal-50",
|
|
65
|
+
children: B ?? /* @__PURE__ */ r(G, { children: [
|
|
66
|
+
"Type",
|
|
67
|
+
/* @__PURE__ */ e(T, {
|
|
68
|
+
text: a,
|
|
69
|
+
label: a,
|
|
70
|
+
copyLabel: D,
|
|
71
|
+
className: "rounded-xs border border-gray-200 bg-gray-50 px-1 py-0.5 font-medium hover:bg-gray-100 dark:border-metal-700 dark:bg-metal-700 dark:hover:bg-metal-600",
|
|
72
|
+
children: a
|
|
73
|
+
}),
|
|
74
|
+
"to confirm"
|
|
75
|
+
] })
|
|
76
|
+
}), /* @__PURE__ */ e(H, {
|
|
77
|
+
value: u,
|
|
78
|
+
autoComplete: "off",
|
|
79
|
+
disabled: t,
|
|
80
|
+
className: I,
|
|
81
|
+
"aria-label": w ?? `Type ${a} to confirm`,
|
|
82
|
+
onChange: (m) => {
|
|
83
|
+
h(m.target.value);
|
|
84
|
+
}
|
|
85
|
+
})]
|
|
86
|
+
}) : null,
|
|
87
|
+
/* @__PURE__ */ r(l.Footer, {
|
|
88
|
+
className: "flex justify-end gap-2",
|
|
89
|
+
children: [/* @__PURE__ */ e(C, {
|
|
90
|
+
type: "button",
|
|
91
|
+
variant: "secondary",
|
|
92
|
+
disabled: t,
|
|
93
|
+
onClick: b,
|
|
94
|
+
children: N
|
|
95
|
+
}), /* @__PURE__ */ e(C, {
|
|
96
|
+
type: "submit",
|
|
97
|
+
form: s,
|
|
98
|
+
variant: f,
|
|
99
|
+
disabled: t || !y,
|
|
100
|
+
children: t ? F ?? n : n
|
|
101
|
+
})]
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
J.displayName = "KonstructConfirmDialog";
|
|
108
|
+
export {
|
|
109
|
+
J as ConfirmDialog
|
|
110
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { CopyIcon as
|
|
4
|
-
import { a as
|
|
1
|
+
import { t as v } from "../../dist-C_jtUTU9.js";
|
|
2
|
+
import { t as i } from "../../utils-DnIJruo0.js";
|
|
3
|
+
import { CopyIcon as w } from "../../assets/icons/components/Copy.js";
|
|
4
|
+
import { a as N, i as B, n as P, o as j, r as k, t as z } from "../../dist-vUCyiTQy.js";
|
|
5
5
|
import { copyButtonVariants as D } from "./CopyButton.variants.js";
|
|
6
6
|
import { useCopyToClipboard as F } from "./hooks/useCopyToClipboard/useCopyToClipboard.js";
|
|
7
7
|
import { useEffect as I, useState as V } from "react";
|
|
8
|
-
import { jsx as t, jsxs as
|
|
9
|
-
var $ = ({ arrowClassName: p, children:
|
|
10
|
-
const [
|
|
8
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
9
|
+
var $ = ({ arrowClassName: p, children: r, className: c, copiedLabel: s = "Copied!", copyLabel: l = "Copy", label: d, resetDelay: m, text: f, theme: u, tooltipClassName: h, onCopy: C, onCopyError: y, ...T }) => {
|
|
10
|
+
const [g, a] = V(!1), { copied: e, copy: x } = F({
|
|
11
11
|
resetDelay: m,
|
|
12
12
|
onCopy: C,
|
|
13
13
|
onCopyError: y
|
|
14
14
|
});
|
|
15
15
|
I(() => {
|
|
16
|
-
|
|
17
|
-
}, [
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
|
|
16
|
+
e || a(!1);
|
|
17
|
+
}, [e]);
|
|
18
|
+
const O = async (o) => {
|
|
19
|
+
o.stopPropagation(), await x(f) && a(!0);
|
|
20
|
+
}, b = (o) => {
|
|
21
|
+
o.currentTarget.matches(":focus-visible") || o.preventDefault();
|
|
22
22
|
};
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ n(N, {
|
|
24
24
|
delayDuration: 0,
|
|
25
|
-
children: [/* @__PURE__ */
|
|
26
|
-
open:
|
|
27
|
-
onOpenChange: (
|
|
28
|
-
|
|
25
|
+
children: [/* @__PURE__ */ n(z, {
|
|
26
|
+
open: g,
|
|
27
|
+
onOpenChange: (o) => {
|
|
28
|
+
e || a(o);
|
|
29
29
|
},
|
|
30
30
|
children: [/* @__PURE__ */ t(j, {
|
|
31
31
|
asChild: !0,
|
|
@@ -33,27 +33,27 @@ var $ = ({ arrowClassName: p, children: s, className: c, copiedLabel: i = "Copie
|
|
|
33
33
|
type: "button",
|
|
34
34
|
"aria-label": `${l} ${d}`,
|
|
35
35
|
"data-theme": u,
|
|
36
|
-
className:
|
|
37
|
-
iconOnly: !
|
|
36
|
+
className: i(D({
|
|
37
|
+
iconOnly: !r,
|
|
38
38
|
className: c
|
|
39
39
|
})),
|
|
40
|
-
onClick:
|
|
41
|
-
onFocus:
|
|
42
|
-
...
|
|
43
|
-
children:
|
|
40
|
+
onClick: O,
|
|
41
|
+
onFocus: b,
|
|
42
|
+
...T,
|
|
43
|
+
children: r ?? /* @__PURE__ */ t(w, {
|
|
44
44
|
size: 14,
|
|
45
45
|
"aria-hidden": "true"
|
|
46
46
|
})
|
|
47
47
|
})
|
|
48
|
-
}), /* @__PURE__ */ t(
|
|
48
|
+
}), /* @__PURE__ */ t(B, { children: /* @__PURE__ */ n(k, {
|
|
49
49
|
sideOffset: 4,
|
|
50
|
-
className:
|
|
51
|
-
children: [
|
|
50
|
+
className: i("z-70 rounded bg-slate-700 px-2 py-1 text-xs text-white shadow-md", "animate-in fade-in-0", h),
|
|
51
|
+
children: [e ? s : l, /* @__PURE__ */ t(P, { className: i("fill-slate-700", p) })]
|
|
52
52
|
}) })]
|
|
53
|
-
}), /* @__PURE__ */ t(
|
|
53
|
+
}), /* @__PURE__ */ t(v, {
|
|
54
54
|
role: "status",
|
|
55
55
|
"aria-live": "polite",
|
|
56
|
-
children:
|
|
56
|
+
children: e ? s : ""
|
|
57
57
|
})]
|
|
58
58
|
});
|
|
59
59
|
};
|