@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,4 +1,4 @@
|
|
|
1
|
-
import { t as i } from "./dist-
|
|
1
|
+
import { t as i } from "./dist-CK8FUUUn.js";
|
|
2
2
|
import { t as p } from "./utils-DnIJruo0.js";
|
|
3
3
|
import { useSelectContext as s } from "./components/Select/contexts/select.hook.js";
|
|
4
4
|
import { listGroupLabelVariants as m } from "./components/Select/components/List/List.variants.js";
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { a as A } from "./dist-
|
|
1
|
+
import { a as A } from "./dist-CK8FUUUn.js";
|
|
2
2
|
import { t as m } from "./utils-DnIJruo0.js";
|
|
3
|
-
import { i as _, r as C } from "./dist-
|
|
4
|
-
import { a as P, c as R, i as S, l as u, n as
|
|
5
|
-
import { Button as
|
|
3
|
+
import { i as _, r as C } from "./dist-DbeY0Pzx.js";
|
|
4
|
+
import { a as P, c as R, i as S, l as u, n as d, o as w, r as O, s as T, t as h } from "./dist-BqDJX7m1.js";
|
|
5
|
+
import { Button as y } from "./components/Button/Button.js";
|
|
6
6
|
import * as n from "react";
|
|
7
7
|
import { forwardRef as x } from "react";
|
|
8
8
|
import { jsx as i } from "react/jsx-runtime";
|
|
9
9
|
var b = Object.defineProperty, c = (l, o) => b(l, "name", {
|
|
10
10
|
value: o,
|
|
11
11
|
configurable: !0
|
|
12
|
-
}), [E,
|
|
12
|
+
}), [E, z] = _("AlertDialog", [u]), s = u(), G = /* @__PURE__ */ c((l) => {
|
|
13
13
|
const { __scopeAlertDialog: o, ...r } = l, e = s(o);
|
|
14
|
-
return /* @__PURE__ */ i(
|
|
14
|
+
return /* @__PURE__ */ i(h, {
|
|
15
15
|
...e,
|
|
16
16
|
...r,
|
|
17
17
|
modal: !0
|
|
18
18
|
});
|
|
19
|
-
}, "AlertDialog"),
|
|
19
|
+
}, "AlertDialog"), N = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
20
20
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
21
21
|
return /* @__PURE__ */ i(R, {
|
|
22
22
|
...t,
|
|
23
23
|
...a,
|
|
24
24
|
ref: r
|
|
25
25
|
});
|
|
26
|
-
}, "AlertDialogTrigger")),
|
|
26
|
+
}, "AlertDialogTrigger")), J = /* @__PURE__ */ c((l) => {
|
|
27
27
|
const { __scopeAlertDialog: o, ...r } = l, e = s(o);
|
|
28
|
-
return /* @__PURE__ */ i(
|
|
28
|
+
return /* @__PURE__ */ i(w, {
|
|
29
29
|
...e,
|
|
30
30
|
...r
|
|
31
31
|
});
|
|
32
|
-
}, "AlertDialogPortal"),
|
|
32
|
+
}, "AlertDialogPortal"), K = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
33
33
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
34
34
|
return /* @__PURE__ */ i(P, {
|
|
35
35
|
...t,
|
|
36
36
|
...a,
|
|
37
37
|
ref: r
|
|
38
38
|
});
|
|
39
|
-
}, "AlertDialogOverlay")), [
|
|
40
|
-
const { __scopeAlertDialog: e, children: a, ...t } = o, g = s(e), p = n.useRef(null),
|
|
41
|
-
return /* @__PURE__ */ i(
|
|
39
|
+
}, "AlertDialogOverlay")), [j, F] = E("AlertDialogContent"), Q = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
40
|
+
const { __scopeAlertDialog: e, children: a, ...t } = o, g = s(e), p = n.useRef(null), v = A(r, p), f = n.useRef(null);
|
|
41
|
+
return /* @__PURE__ */ i(j, {
|
|
42
42
|
scope: e,
|
|
43
43
|
cancelRef: f,
|
|
44
44
|
children: /* @__PURE__ */ i(O, {
|
|
45
45
|
role: "alertdialog",
|
|
46
46
|
...g,
|
|
47
47
|
...t,
|
|
48
|
-
ref:
|
|
48
|
+
ref: v,
|
|
49
49
|
onOpenAutoFocus: C(t.onOpenAutoFocus, (D) => {
|
|
50
50
|
D.preventDefault(), f.current?.focus({ preventScroll: !0 });
|
|
51
51
|
}),
|
|
@@ -54,37 +54,37 @@ var b = Object.defineProperty, c = (l, o) => b(l, "name", {
|
|
|
54
54
|
children: a
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
|
-
}, "AlertDialogContent")),
|
|
57
|
+
}, "AlertDialogContent")), U = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
58
58
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
59
|
-
return /* @__PURE__ */ i(
|
|
59
|
+
return /* @__PURE__ */ i(T, {
|
|
60
60
|
...t,
|
|
61
61
|
...a,
|
|
62
62
|
ref: r
|
|
63
63
|
});
|
|
64
|
-
}, "AlertDialogTitle")),
|
|
64
|
+
}, "AlertDialogTitle")), V = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
65
65
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
66
66
|
return /* @__PURE__ */ i(S, {
|
|
67
67
|
...t,
|
|
68
68
|
...a,
|
|
69
69
|
ref: r
|
|
70
70
|
});
|
|
71
|
-
}, "AlertDialogDescription")),
|
|
71
|
+
}, "AlertDialogDescription")), W = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
72
72
|
const { __scopeAlertDialog: e, ...a } = o, t = s(e);
|
|
73
|
-
return /* @__PURE__ */ i(
|
|
73
|
+
return /* @__PURE__ */ i(d, {
|
|
74
74
|
...t,
|
|
75
75
|
...a,
|
|
76
76
|
ref: r
|
|
77
77
|
});
|
|
78
|
-
}, "AlertDialogAction")),
|
|
79
|
-
const { __scopeAlertDialog: e, ...a } = o, { cancelRef: t } =
|
|
80
|
-
return /* @__PURE__ */ i(
|
|
78
|
+
}, "AlertDialogAction")), $ = "AlertDialogCancel", X = n.forwardRef(/* @__PURE__ */ c(function(o, r) {
|
|
79
|
+
const { __scopeAlertDialog: e, ...a } = o, { cancelRef: t } = F($, e), g = s(e), p = A(r, t);
|
|
80
|
+
return /* @__PURE__ */ i(d, {
|
|
81
81
|
...g,
|
|
82
82
|
...a,
|
|
83
83
|
ref: p
|
|
84
84
|
});
|
|
85
|
-
}, "AlertDialogCancel")),
|
|
85
|
+
}, "AlertDialogCancel")), Y = x(({ "data-theme": l, className: o, text: r, variant: e, onOpen: a, onClick: t }, g) => /* @__PURE__ */ i(N, {
|
|
86
86
|
asChild: !0,
|
|
87
|
-
children: /* @__PURE__ */ i(
|
|
87
|
+
children: /* @__PURE__ */ i(y, {
|
|
88
88
|
ref: g,
|
|
89
89
|
type: "button",
|
|
90
90
|
variant: e,
|
|
@@ -97,13 +97,13 @@ var b = Object.defineProperty, c = (l, o) => b(l, "name", {
|
|
|
97
97
|
})
|
|
98
98
|
}));
|
|
99
99
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
Q as a,
|
|
101
|
+
J as c,
|
|
102
|
+
X as i,
|
|
103
|
+
U as l,
|
|
104
|
+
G as n,
|
|
105
|
+
V as o,
|
|
106
|
+
W as r,
|
|
107
|
+
K as s,
|
|
108
|
+
Y as t
|
|
109
109
|
};
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { o as X } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { t as J } from "./prop-types-BCUW56rg.js";
|
|
3
|
+
import { a as A } from "./dist-CK8FUUUn.js";
|
|
4
|
+
import { t as T } from "./dist-CYuWoi9I.js";
|
|
5
|
+
import { t as N } from "./utils-DnIJruo0.js";
|
|
6
|
+
import { i as Q, r as j, t as Y } from "./dist-DbeY0Pzx.js";
|
|
7
|
+
import { t as Z } from "./dist-uuWgjOcO.js";
|
|
8
|
+
import { useToggle as ee } from "./hooks/useToggle.js";
|
|
9
|
+
import { t as te } from "./dist-vDSmnSS_.js";
|
|
10
|
+
import { checkboxVariants as re, labelVariants as ne } from "./components/Checkbox/Checkbox.variants.js";
|
|
11
|
+
import * as l from "react";
|
|
12
|
+
import M, { forwardRef as $, useId as oe } from "react";
|
|
13
|
+
import { Fragment as ce, jsx as h, jsxs as D } from "react/jsx-runtime";
|
|
14
|
+
var E = /* @__PURE__ */ X(J());
|
|
15
|
+
function B() {
|
|
16
|
+
return B = Object.assign || function(e) {
|
|
17
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
18
|
+
var c = arguments[n];
|
|
19
|
+
for (var t in c) Object.prototype.hasOwnProperty.call(c, t) && (e[t] = c[t]);
|
|
20
|
+
}
|
|
21
|
+
return e;
|
|
22
|
+
}, B.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
function se(e, n) {
|
|
25
|
+
if (e == null) return {};
|
|
26
|
+
var c = ae(e, n), t, r;
|
|
27
|
+
if (Object.getOwnPropertySymbols) {
|
|
28
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
29
|
+
for (r = 0; r < s.length; r++)
|
|
30
|
+
t = s[r], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (c[t] = e[t]);
|
|
31
|
+
}
|
|
32
|
+
return c;
|
|
33
|
+
}
|
|
34
|
+
function ae(e, n) {
|
|
35
|
+
if (e == null) return {};
|
|
36
|
+
for (var c = {}, t = Object.keys(e), r, s = 0; s < t.length; s++)
|
|
37
|
+
r = t[s], !(n.indexOf(r) >= 0) && (c[r] = e[r]);
|
|
38
|
+
return c;
|
|
39
|
+
}
|
|
40
|
+
var U = $(function(e, n) {
|
|
41
|
+
var c = e.color, t = c === void 0 ? "currentColor" : c, r = e.size, s = r === void 0 ? 24 : r, o = se(e, ["color", "size"]);
|
|
42
|
+
return /* @__PURE__ */ M.createElement("svg", B({
|
|
43
|
+
ref: n,
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
+
width: s,
|
|
46
|
+
height: s,
|
|
47
|
+
viewBox: "0 0 24 24",
|
|
48
|
+
fill: "none",
|
|
49
|
+
stroke: t,
|
|
50
|
+
strokeWidth: "2",
|
|
51
|
+
strokeLinecap: "round",
|
|
52
|
+
strokeLinejoin: "round"
|
|
53
|
+
}, o), /* @__PURE__ */ M.createElement("polyline", { points: "20 6 9 17 4 12" }));
|
|
54
|
+
});
|
|
55
|
+
U.propTypes = {
|
|
56
|
+
color: E.default.string,
|
|
57
|
+
size: E.default.oneOfType([E.default.string, E.default.number])
|
|
58
|
+
};
|
|
59
|
+
U.displayName = "Check";
|
|
60
|
+
var ie = Object.defineProperty, y = (e, n) => ie(e, "name", {
|
|
61
|
+
value: n,
|
|
62
|
+
configurable: !0
|
|
63
|
+
}), q = "Checkbox", [le, Ne] = Q(q), [ue, z] = le(q);
|
|
64
|
+
function H(e) {
|
|
65
|
+
const { __scopeCheckbox: n, checked: c, children: t, defaultChecked: r, disabled: s, form: o, name: a, onCheckedChange: k, required: u, value: g = "on", internal_do_not_use_render: m } = e, [b, v] = Y({
|
|
66
|
+
prop: c,
|
|
67
|
+
defaultProp: r ?? !1,
|
|
68
|
+
onChange: k,
|
|
69
|
+
caller: q
|
|
70
|
+
}), [C, I] = l.useState(null), [P, R] = l.useState(null), [i, d] = l.useState(null), x = C ? !!o || !!C.closest("form") : !0, _ = {
|
|
71
|
+
checked: b,
|
|
72
|
+
disabled: s,
|
|
73
|
+
setChecked: v,
|
|
74
|
+
control: C,
|
|
75
|
+
setControl: I,
|
|
76
|
+
name: a,
|
|
77
|
+
form: o,
|
|
78
|
+
value: g,
|
|
79
|
+
userClick: i,
|
|
80
|
+
onUserClick: d,
|
|
81
|
+
required: u,
|
|
82
|
+
defaultChecked: p(r) ? !1 : r,
|
|
83
|
+
isFormControl: x,
|
|
84
|
+
bubbleInput: P,
|
|
85
|
+
setBubbleInput: R
|
|
86
|
+
};
|
|
87
|
+
return /* @__PURE__ */ h(ue, {
|
|
88
|
+
scope: n,
|
|
89
|
+
..._,
|
|
90
|
+
children: K(m) ? m(_) : t
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
y(H, "CheckboxProvider");
|
|
94
|
+
var de = "CheckboxTrigger", fe = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ y(function({ __scopeCheckbox: n, onKeyDown: c, onClick: t, ...r }, s) {
|
|
95
|
+
const { control: o, value: a, disabled: k, checked: u, required: g, setControl: m, setChecked: b, onUserClick: v, isFormControl: C, bubbleInput: I } = z(de, n), P = A(s, m), R = l.useRef(u);
|
|
96
|
+
return l.useEffect(() => {
|
|
97
|
+
const i = o?.form;
|
|
98
|
+
if (i) {
|
|
99
|
+
const d = /* @__PURE__ */ y(() => b(R.current), "reset");
|
|
100
|
+
return i.addEventListener("reset", d), () => i.removeEventListener("reset", d);
|
|
101
|
+
}
|
|
102
|
+
}, [o, b]), /* @__PURE__ */ h(T.button, {
|
|
103
|
+
type: "button",
|
|
104
|
+
role: "checkbox",
|
|
105
|
+
"aria-checked": p(u) ? "mixed" : u,
|
|
106
|
+
"aria-required": g,
|
|
107
|
+
"data-state": F(u),
|
|
108
|
+
"data-disabled": k ? "" : void 0,
|
|
109
|
+
disabled: k,
|
|
110
|
+
value: a,
|
|
111
|
+
...r,
|
|
112
|
+
ref: P,
|
|
113
|
+
onKeyDown: j(c, (i) => {
|
|
114
|
+
i.key === "Enter" && i.preventDefault();
|
|
115
|
+
}),
|
|
116
|
+
onClick: j(t, (i) => {
|
|
117
|
+
const d = i.isPropagationStopped();
|
|
118
|
+
v({
|
|
119
|
+
requestedChecked: p(u) ? !0 : !u,
|
|
120
|
+
hasConsumerStoppedPropagation: d
|
|
121
|
+
}), b((x) => p(x) ? !0 : !x), I && C && (d || i.stopPropagation());
|
|
122
|
+
})
|
|
123
|
+
});
|
|
124
|
+
}, "CheckboxTrigger")), pe = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ y(function(n, c) {
|
|
125
|
+
const { __scopeCheckbox: t, name: r, checked: s, defaultChecked: o, required: a, disabled: k, value: u, onCheckedChange: g, form: m, ...b } = n;
|
|
126
|
+
return /* @__PURE__ */ h(H, {
|
|
127
|
+
__scopeCheckbox: t,
|
|
128
|
+
checked: s,
|
|
129
|
+
defaultChecked: o,
|
|
130
|
+
disabled: k,
|
|
131
|
+
required: a,
|
|
132
|
+
onCheckedChange: g,
|
|
133
|
+
name: r,
|
|
134
|
+
form: m,
|
|
135
|
+
value: u,
|
|
136
|
+
internal_do_not_use_render: ({ isFormControl: v }) => /* @__PURE__ */ D(ce, { children: [/* @__PURE__ */ h(fe, {
|
|
137
|
+
...b,
|
|
138
|
+
ref: c,
|
|
139
|
+
__scopeCheckbox: t
|
|
140
|
+
}), v && /* @__PURE__ */ h(me, { __scopeCheckbox: t })] })
|
|
141
|
+
});
|
|
142
|
+
}, "Checkbox")), he = "CheckboxIndicator", be = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ y(function(n, c) {
|
|
143
|
+
const { __scopeCheckbox: t, forceMount: r, ...s } = n, o = z(he, t);
|
|
144
|
+
return /* @__PURE__ */ h(Z, {
|
|
145
|
+
present: r || p(o.checked) || o.checked === !0,
|
|
146
|
+
children: /* @__PURE__ */ h(T.span, {
|
|
147
|
+
"data-state": F(o.checked),
|
|
148
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
149
|
+
...s,
|
|
150
|
+
ref: c,
|
|
151
|
+
style: {
|
|
152
|
+
pointerEvents: "none",
|
|
153
|
+
...n.style
|
|
154
|
+
}
|
|
155
|
+
})
|
|
156
|
+
});
|
|
157
|
+
}, "CheckboxIndicator")), ke = "CheckboxBubbleInput", me = /* @__PURE__ */ l.forwardRef(/* @__PURE__ */ y(function({ __scopeCheckbox: n, onClick: c, ...t }, r) {
|
|
158
|
+
const { control: s, userClick: o, checked: a, defaultChecked: k, required: u, disabled: g, name: m, value: b, form: v, bubbleInput: C, setBubbleInput: I } = z(ke, n), P = A(r, I), R = te(s), i = l.useRef(!1), d = l.useRef(a), x = l.useRef(o), _ = l.useRef(null);
|
|
159
|
+
l.useEffect(() => {
|
|
160
|
+
const f = C;
|
|
161
|
+
if (!f) return;
|
|
162
|
+
const W = window.HTMLInputElement.prototype, S = Object.getOwnPropertyDescriptor(W, "checked").set;
|
|
163
|
+
if (!S) return;
|
|
164
|
+
const O = d.current !== a;
|
|
165
|
+
d.current = a;
|
|
166
|
+
const G = o !== null && o !== x.current;
|
|
167
|
+
if (x.current = o, G)
|
|
168
|
+
_.current = O ? null : o, O && (f.indeterminate = p(a), S.call(f, p(a) ? !1 : a)), f.dispatchEvent(new Event("click", { bubbles: !o.hasConsumerStoppedPropagation }));
|
|
169
|
+
else if (O) {
|
|
170
|
+
const L = _.current;
|
|
171
|
+
_.current = null;
|
|
172
|
+
const V = L?.requestedChecked === a;
|
|
173
|
+
i.current = !0, f.indeterminate = p(a), S.call(f, p(a) ? !1 : a), f.dispatchEvent(new Event("click", { bubbles: !(V && L.hasConsumerStoppedPropagation) })), i.current = !1;
|
|
174
|
+
}
|
|
175
|
+
}, [
|
|
176
|
+
C,
|
|
177
|
+
a,
|
|
178
|
+
o
|
|
179
|
+
]);
|
|
180
|
+
const w = l.useRef(p(a) ? !1 : a);
|
|
181
|
+
return /* @__PURE__ */ h(T.input, {
|
|
182
|
+
type: "checkbox",
|
|
183
|
+
"aria-hidden": !0,
|
|
184
|
+
defaultChecked: k ?? w.current,
|
|
185
|
+
required: u,
|
|
186
|
+
disabled: g,
|
|
187
|
+
name: m,
|
|
188
|
+
value: b,
|
|
189
|
+
form: v,
|
|
190
|
+
...t,
|
|
191
|
+
tabIndex: -1,
|
|
192
|
+
ref: P,
|
|
193
|
+
onClick: j(c, (f) => {
|
|
194
|
+
i.current && f.stopPropagation();
|
|
195
|
+
}),
|
|
196
|
+
style: {
|
|
197
|
+
...t.style,
|
|
198
|
+
...R,
|
|
199
|
+
position: "absolute",
|
|
200
|
+
pointerEvents: "none",
|
|
201
|
+
opacity: 0,
|
|
202
|
+
margin: 0,
|
|
203
|
+
transform: "translateX(-100%)"
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
}, "CheckboxBubbleInput"));
|
|
207
|
+
function K(e) {
|
|
208
|
+
return typeof e == "function";
|
|
209
|
+
}
|
|
210
|
+
y(K, "isFunction");
|
|
211
|
+
function p(e) {
|
|
212
|
+
return e === "indeterminate";
|
|
213
|
+
}
|
|
214
|
+
y(p, "isIndeterminate");
|
|
215
|
+
function F(e) {
|
|
216
|
+
return p(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
217
|
+
}
|
|
218
|
+
y(F, "getState");
|
|
219
|
+
var Ce = $(({ ariaLabelledBy: e, checked: n, className: c, defaultChecked: t, disabled: r, id: s, label: o, labelClassName: a, labelWrapperClassName: k, name: u, theme: g, title: m, variant: b, onChange: v, ...C }, I) => {
|
|
220
|
+
const [P, R] = ee(t ?? !1), i = n !== void 0, d = i ? n : P, x = oe(), _ = s ?? x, w = (f) => {
|
|
221
|
+
i || R(f), v?.(f);
|
|
222
|
+
};
|
|
223
|
+
return /* @__PURE__ */ D("div", {
|
|
224
|
+
className: N("flex items-center gap-4", k),
|
|
225
|
+
"data-theme": g,
|
|
226
|
+
children: [/* @__PURE__ */ h(pe, {
|
|
227
|
+
id: _,
|
|
228
|
+
checked: d,
|
|
229
|
+
ref: I,
|
|
230
|
+
name: u,
|
|
231
|
+
disabled: r,
|
|
232
|
+
"aria-labelledby": e,
|
|
233
|
+
title: m,
|
|
234
|
+
className: N(re({
|
|
235
|
+
className: c,
|
|
236
|
+
variant: b,
|
|
237
|
+
checked: d
|
|
238
|
+
})),
|
|
239
|
+
onCheckedChange: w,
|
|
240
|
+
...C,
|
|
241
|
+
children: /* @__PURE__ */ h(be, { children: /* @__PURE__ */ h(U, { className: "w-4 h-4 stroke-2" }) })
|
|
242
|
+
}), o ? /* @__PURE__ */ h("label", {
|
|
243
|
+
htmlFor: _,
|
|
244
|
+
className: N(ne({ className: a }), { "cursor-not-allowed": r }),
|
|
245
|
+
children: o
|
|
246
|
+
}) : null]
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
Ce.displayName = "KonstructCheckbox";
|
|
250
|
+
export {
|
|
251
|
+
Ce as t
|
|
252
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { o as g } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
+
import { t as h } from "./prop-types-BCUW56rg.js";
|
|
3
|
+
import { t as d } from "./utils-DnIJruo0.js";
|
|
4
|
+
import { n as v, t as y } from "./useBreadcrumb-BvP9cgD8.js";
|
|
5
|
+
import { i as b, n as x, r as u, t as w } from "./dist-BCoDIdCt.js";
|
|
6
|
+
import l, { forwardRef as O } from "react";
|
|
7
|
+
import { jsx as a, jsxs as k } from "react/jsx-runtime";
|
|
8
|
+
var c = /* @__PURE__ */ g(h());
|
|
9
|
+
function m() {
|
|
10
|
+
return m = Object.assign || function(e) {
|
|
11
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
12
|
+
var o = arguments[n];
|
|
13
|
+
for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (e[r] = o[r]);
|
|
14
|
+
}
|
|
15
|
+
return e;
|
|
16
|
+
}, m.apply(this, arguments);
|
|
17
|
+
}
|
|
18
|
+
function j(e, n) {
|
|
19
|
+
if (e == null) return {};
|
|
20
|
+
var o = N(e, n), r, t;
|
|
21
|
+
if (Object.getOwnPropertySymbols) {
|
|
22
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
23
|
+
for (t = 0; t < i.length; t++)
|
|
24
|
+
r = i[t], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
25
|
+
}
|
|
26
|
+
return o;
|
|
27
|
+
}
|
|
28
|
+
function N(e, n) {
|
|
29
|
+
if (e == null) return {};
|
|
30
|
+
for (var o = {}, r = Object.keys(e), t, i = 0; i < r.length; i++)
|
|
31
|
+
t = r[i], !(n.indexOf(t) >= 0) && (o[t] = e[t]);
|
|
32
|
+
return o;
|
|
33
|
+
}
|
|
34
|
+
var p = O(function(e, n) {
|
|
35
|
+
var o = e.color, r = o === void 0 ? "currentColor" : o, t = e.size, i = t === void 0 ? 24 : t, s = j(e, ["color", "size"]);
|
|
36
|
+
return /* @__PURE__ */ l.createElement("svg", m({
|
|
37
|
+
ref: n,
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
width: i,
|
|
40
|
+
height: i,
|
|
41
|
+
viewBox: "0 0 24 24",
|
|
42
|
+
fill: "none",
|
|
43
|
+
stroke: r,
|
|
44
|
+
strokeWidth: "2",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeLinejoin: "round"
|
|
47
|
+
}, s), /* @__PURE__ */ l.createElement("circle", {
|
|
48
|
+
cx: "12",
|
|
49
|
+
cy: "12",
|
|
50
|
+
r: "1"
|
|
51
|
+
}), /* @__PURE__ */ l.createElement("circle", {
|
|
52
|
+
cx: "19",
|
|
53
|
+
cy: "12",
|
|
54
|
+
r: "1"
|
|
55
|
+
}), /* @__PURE__ */ l.createElement("circle", {
|
|
56
|
+
cx: "5",
|
|
57
|
+
cy: "12",
|
|
58
|
+
r: "1"
|
|
59
|
+
}));
|
|
60
|
+
});
|
|
61
|
+
p.propTypes = {
|
|
62
|
+
color: c.default.string,
|
|
63
|
+
size: c.default.oneOfType([c.default.string, c.default.number])
|
|
64
|
+
};
|
|
65
|
+
p.displayName = "MoreHorizontal";
|
|
66
|
+
var f = d("flex w-full items-center gap-1 px-4 py-1.5 text-sm font-semibold outline-none", "text-gray-600 hover:bg-gray-50 focus:bg-gray-50 hover:cursor-pointer", "dark:text-gray-300 dark:hover:bg-metal-700 dark:focus:bg-metal-700"), R = ({ label: e, steps: n }) => {
|
|
67
|
+
const { isInsideRouter: o } = y();
|
|
68
|
+
return /* @__PURE__ */ a("li", {
|
|
69
|
+
className: "flex items-center",
|
|
70
|
+
children: /* @__PURE__ */ k(w, {
|
|
71
|
+
modal: !1,
|
|
72
|
+
children: [/* @__PURE__ */ a(b, {
|
|
73
|
+
"aria-label": e,
|
|
74
|
+
className: d("flex items-center rounded-xs text-gray-400 hover:text-gray-500", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-500", "dark:hover:text-gray-300 cursor-pointer"),
|
|
75
|
+
children: /* @__PURE__ */ a(p, {
|
|
76
|
+
className: "w-5 h-5",
|
|
77
|
+
"aria-hidden": "true"
|
|
78
|
+
})
|
|
79
|
+
}), /* @__PURE__ */ a(x, {
|
|
80
|
+
align: "start",
|
|
81
|
+
sideOffset: 4,
|
|
82
|
+
loop: !0,
|
|
83
|
+
className: d("z-50 min-w-40 rounded border border-gray-200 bg-white py-2 shadow-xs", "animate-in fade-in-0", "dark:border-metal-700 dark:bg-metal-800"),
|
|
84
|
+
children: n.map(({ label: r, to: t, target: i, component: s }) => t ? o && !s ? /* @__PURE__ */ a(u, {
|
|
85
|
+
asChild: !0,
|
|
86
|
+
children: /* @__PURE__ */ a(v, {
|
|
87
|
+
to: t,
|
|
88
|
+
target: i,
|
|
89
|
+
className: f,
|
|
90
|
+
children: r
|
|
91
|
+
})
|
|
92
|
+
}, r) : /* @__PURE__ */ a(u, {
|
|
93
|
+
asChild: !0,
|
|
94
|
+
children: /* @__PURE__ */ a(s ?? "a", {
|
|
95
|
+
href: s ? void 0 : t,
|
|
96
|
+
to: s ? t : void 0,
|
|
97
|
+
target: i,
|
|
98
|
+
className: f,
|
|
99
|
+
children: r
|
|
100
|
+
})
|
|
101
|
+
}, r) : /* @__PURE__ */ a(u, {
|
|
102
|
+
disabled: !0,
|
|
103
|
+
className: d(f, "cursor-default"),
|
|
104
|
+
children: r
|
|
105
|
+
}, r))
|
|
106
|
+
})]
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
export {
|
|
111
|
+
R as t
|
|
112
|
+
};
|
|
@@ -2,7 +2,7 @@ import { o as v } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
|
2
2
|
import { t as y } from "./prop-types-BCUW56rg.js";
|
|
3
3
|
import { t as c } from "./utils-DnIJruo0.js";
|
|
4
4
|
import { inputVariants as g, searchInconInputVariants as h } from "./components/Command/Command.variants.js";
|
|
5
|
-
import { t as m } from "./dist-
|
|
5
|
+
import { t as m } from "./dist-4IVGO6ZT.js";
|
|
6
6
|
import p, { forwardRef as u } from "react";
|
|
7
7
|
import { jsx as f, jsxs as b } from "react/jsx-runtime";
|
|
8
8
|
var a = /* @__PURE__ */ v(y());
|