@konstructio/ui 0.1.2-alpha.111 → 0.1.2-alpha.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AdditionalOptions-D3SZ2WFJ.js → AdditionalOptions-ClcR_Kf7.js} +1 -1
- package/dist/{AlertDialogTrigger-Cdw3C2Tv.js → AlertDialogTrigger-C9xoCZrZ.js} +33 -33
- package/dist/Checkbox-DRdyrKjk.js +252 -0
- package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
- package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
- package/dist/Counter-DMkXIsOO.js +229 -0
- package/dist/DropdownButton-JilCRLJY.js +92 -0
- package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
- package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
- package/dist/Modal-CysTe3zL.js +83 -0
- package/dist/Spinner-CTonkSzG.js +47 -0
- package/dist/Switch-5cdUxbhX.js +215 -0
- package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
- package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
- package/dist/components/Alert/Alert.js +45 -41
- package/dist/components/AlertDialog/AlertDialog.js +42 -42
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Avatar/Avatar.js +37 -0
- package/dist/components/Avatar/Avatar.variants.js +25 -0
- package/dist/components/Avatar/hooks/index.js +5 -0
- package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
- package/dist/components/BadgeGroup/hooks/index.js +4 -0
- package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
- package/dist/components/Breadcrumb/components/index.js +6 -4
- package/dist/components/Button/Button.js +25 -19
- package/dist/components/Button/Button.variants.js +4 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
- package/dist/components/Collapse/Collapse.js +63 -0
- package/dist/components/Command/Command.js +5 -5
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
- package/dist/components/CopyButton/CopyButton.js +29 -29
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/Counter/Counter.variants.js +73 -16
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
- package/dist/components/Datepicker/DatePicker.js +14 -49
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
- package/dist/components/Drawer/Drawer.js +18 -18
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
- package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
- package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/hooks/index.js +3 -1
- package/dist/components/Filter/hooks/useLocale.js +16 -0
- package/dist/components/Filter/utils/index.js +6 -2
- package/dist/components/LineChart/LineChart.js +18 -125
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +22 -3
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +103 -0
- package/dist/components/PasswordRules/PasswordRules.js +51 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +4 -4
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PieChart/PieChart.js +10 -53
- package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
- package/dist/components/ProgressBar/ProgressBar.js +10 -10
- package/dist/components/RadioCard/RadioCard.js +36 -18
- package/dist/components/RadioCard/RadioCard.variants.js +9 -3
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +10 -10
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +15 -15
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +18 -0
- package/dist/components/Skeleton/Skeleton.variants.js +25 -0
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +38 -29
- package/dist/components/Stepper/Stepper.variants.js +55 -19
- package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +52 -24
- package/dist/components/Tabs/Tabs.variants.js +15 -6
- package/dist/components/Tabs/components/Content.js +6 -6
- package/dist/components/Tabs/components/List.js +10 -10
- package/dist/components/Tabs/components/Trigger.js +11 -10
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagsInput/TagsInput.js +159 -0
- package/dist/components/Toast/Toast.js +68 -2
- package/dist/components/Toast/components/ToastCard/ToastCard.js +27 -27
- package/dist/components/Tooltip/Tooltip.js +32 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
- package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
- package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
- package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
- package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
- package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
- package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
- package/dist/components/VirtualizedTable/components/index.js +18 -12
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/utils/index.js +4 -4
- package/dist/components/index.js +180 -154
- package/dist/components-B_SWqhCL.js +147 -0
- package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
- package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
- package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
- package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
- package/dist/dist-BCoDIdCt.js +429 -0
- package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
- package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
- package/dist/dist-Bh7M0KDN.js +367 -0
- package/dist/dist-BqDJX7m1.js +209 -0
- package/dist/dist-C0OhTLFV.js +31 -0
- package/dist/dist-C1a-68Kb.js +120 -0
- package/dist/dist-CK8FUUUn.js +125 -0
- package/dist/dist-CQSCPpFc.js +196 -0
- package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
- package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
- package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
- package/dist/dist-fPYIsxyx.js +465 -0
- package/dist/dist-rsFD9q_X.js +484 -0
- package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
- package/dist/dist-vDSmnSS_.js +41 -0
- package/dist/dist-vUCyiTQy.js +365 -0
- package/dist/es2015-ChhQTsb4.js +74 -0
- package/dist/index.js +194 -168
- package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
- package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
- package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
- package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
- package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
- package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
- package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
- package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
- package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
- package/dist/lib/components/Button/Button.variants.d.ts +1 -1
- package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
- package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
- package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
- package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
- package/dist/lib/components/Counter/Counter.d.ts +7 -4
- package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
- package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
- package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
- package/dist/lib/components/Filter/utils/index.d.ts +1 -0
- package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
- package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
- package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
- package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
- package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
- package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
- package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
- package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
- package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
- package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
- package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
- package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
- package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
- package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
- package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
- package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
- package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
- package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
- package/dist/lib/components/Toast/Toast.types.d.ts +5 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +1 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
- package/dist/lib/components/index.d.ts +10 -0
- package/dist/package.json +31 -30
- package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
- package/dist/styles.css +1 -1
- package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
- package/package.json +31 -30
- package/dist/AnimatePresence-BsUYG9bm.js +0 -186
- package/dist/Checkbox-CrNxsm3G.js +0 -247
- package/dist/Counter-DN50BVq6.js +0 -194
- package/dist/DropdownButton-Blhkj-Oi.js +0 -490
- package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
- package/dist/Modal-Bk1I_NCC.js +0 -81
- package/dist/Spinner-smR3esbL.js +0 -47
- package/dist/Switch-CPE8v6Zh.js +0 -199
- package/dist/Toast-frCWQhFC.js +0 -76
- package/dist/components-z-LYRWfq.js +0 -124
- package/dist/dist-CNui_Egg.js +0 -451
- package/dist/dist-CR3FMRzF.js +0 -118
- package/dist/dist-D5Q2IYuC.js +0 -358
- package/dist/dist-D70ZJkHf.js +0 -29
- package/dist/dist-DZ_SU77k.js +0 -437
- package/dist/dist-LRkZdylX.js +0 -174
- package/dist/dist-f8EwfITY.js +0 -194
- package/dist/dist-pWlMx4Fi.js +0 -36
- package/dist/dist-uerXivvM.js +0 -178
- package/dist/dist-xCbHbMLA.js +0 -116
- package/dist/es2015-Hhb87ipX.js +0 -231
- package/dist/react-C685EsYG.js +0 -4730
package/dist/dist-DZ_SU77k.js
DELETED
|
@@ -1,437 +0,0 @@
|
|
|
1
|
-
import { a as _, n as z } from "./dist-xCbHbMLA.js";
|
|
2
|
-
import { i as K } from "./dist-D-yS0HN8.js";
|
|
3
|
-
import * as u from "react";
|
|
4
|
-
import { jsx as M } from "react/jsx-runtime";
|
|
5
|
-
var H = Object.defineProperty, f = (r, e) => H(r, "name", {
|
|
6
|
-
value: e,
|
|
7
|
-
configurable: !0
|
|
8
|
-
});
|
|
9
|
-
// @__NO_SIDE_EFFECTS__
|
|
10
|
-
function J(r) {
|
|
11
|
-
const e = r + "CollectionProvider", [t, o] = K(e), [n, i] = t(e, {
|
|
12
|
-
collectionRef: { current: null },
|
|
13
|
-
itemMap: /* @__PURE__ */ new Map()
|
|
14
|
-
}), c = /* @__PURE__ */ f((m) => {
|
|
15
|
-
const { scope: h, children: I } = m, s = u.useRef(null), l = u.useRef(/* @__PURE__ */ new Map()).current;
|
|
16
|
-
return /* @__PURE__ */ M(n, {
|
|
17
|
-
scope: h,
|
|
18
|
-
itemMap: l,
|
|
19
|
-
collectionRef: s,
|
|
20
|
-
children: I
|
|
21
|
-
});
|
|
22
|
-
}, "CollectionProvider");
|
|
23
|
-
c.displayName = e;
|
|
24
|
-
const a = r + "CollectionSlot", v = z(a), E = u.forwardRef((m, h) => {
|
|
25
|
-
const { scope: I, children: s } = m, l = i(a, I), p = _(h, l.collectionRef);
|
|
26
|
-
return /* @__PURE__ */ M(v, {
|
|
27
|
-
ref: p,
|
|
28
|
-
children: s
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
E.displayName = a;
|
|
32
|
-
const x = r + "CollectionItemSlot", S = "data-radix-collection-item", A = z(x), d = u.forwardRef((m, h) => {
|
|
33
|
-
const { scope: I, children: s, ...l } = m, p = u.useRef(null), w = _(h, p), R = i(x, I);
|
|
34
|
-
return u.useEffect(() => (R.itemMap.set(p, {
|
|
35
|
-
ref: p,
|
|
36
|
-
...l
|
|
37
|
-
}), () => {
|
|
38
|
-
R.itemMap.delete(p);
|
|
39
|
-
})), /* @__PURE__ */ M(A, {
|
|
40
|
-
[S]: "",
|
|
41
|
-
ref: w,
|
|
42
|
-
children: s
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
d.displayName = x;
|
|
46
|
-
function y(m) {
|
|
47
|
-
const h = i(r + "CollectionConsumer", m);
|
|
48
|
-
return u.useCallback(() => {
|
|
49
|
-
const I = h.collectionRef.current;
|
|
50
|
-
if (!I) return [];
|
|
51
|
-
const s = Array.from(I.querySelectorAll(`[${S}]`));
|
|
52
|
-
return Array.from(h.itemMap.values()).sort((l, p) => s.indexOf(l.ref.current) - s.indexOf(p.ref.current));
|
|
53
|
-
}, [h.collectionRef, h.itemMap]);
|
|
54
|
-
}
|
|
55
|
-
return f(y, "useCollection"), [
|
|
56
|
-
{
|
|
57
|
-
Provider: c,
|
|
58
|
-
Slot: E,
|
|
59
|
-
ItemSlot: d
|
|
60
|
-
},
|
|
61
|
-
y,
|
|
62
|
-
o
|
|
63
|
-
];
|
|
64
|
-
}
|
|
65
|
-
f(J, "createCollection");
|
|
66
|
-
var q = /* @__PURE__ */ new WeakMap(), L = class g extends Map {
|
|
67
|
-
static {
|
|
68
|
-
f(this, "OrderedDict");
|
|
69
|
-
}
|
|
70
|
-
#e;
|
|
71
|
-
constructor(e) {
|
|
72
|
-
super(e), this.#e = [...super.keys()], q.set(this, !0);
|
|
73
|
-
}
|
|
74
|
-
set(e, t) {
|
|
75
|
-
return q.get(this) && (this.has(e) ? this.#e[this.#e.indexOf(e)] = e : this.#e.push(e)), super.set(e, t), this;
|
|
76
|
-
}
|
|
77
|
-
insert(e, t, o) {
|
|
78
|
-
const n = this.has(t), i = this.#e.length, c = V(e);
|
|
79
|
-
let a = c >= 0 ? c : i + c;
|
|
80
|
-
const v = a < 0 || a >= i ? -1 : a;
|
|
81
|
-
if (v === this.size || n && v === this.size - 1 || v === -1)
|
|
82
|
-
return this.set(t, o), this;
|
|
83
|
-
const E = this.size + (n ? 0 : 1);
|
|
84
|
-
c < 0 && a++;
|
|
85
|
-
const x = [...this.#e];
|
|
86
|
-
let S, A = !1;
|
|
87
|
-
for (let d = a; d < E; d++) if (a === d) {
|
|
88
|
-
let y = x[d];
|
|
89
|
-
x[d] === t && (y = x[d + 1]), n && this.delete(t), S = this.get(y), this.set(t, o);
|
|
90
|
-
} else {
|
|
91
|
-
!A && x[d - 1] === t && (A = !0);
|
|
92
|
-
const y = x[A ? d : d - 1], m = S;
|
|
93
|
-
S = this.get(y), this.delete(y), this.set(y, m);
|
|
94
|
-
}
|
|
95
|
-
return this;
|
|
96
|
-
}
|
|
97
|
-
with(e, t, o) {
|
|
98
|
-
const n = new g(this);
|
|
99
|
-
return n.insert(e, t, o), n;
|
|
100
|
-
}
|
|
101
|
-
before(e) {
|
|
102
|
-
const t = this.#e.indexOf(e) - 1;
|
|
103
|
-
if (!(t < 0))
|
|
104
|
-
return this.entryAt(t);
|
|
105
|
-
}
|
|
106
|
-
setBefore(e, t, o) {
|
|
107
|
-
const n = this.#e.indexOf(e);
|
|
108
|
-
return n === -1 ? this : this.insert(n, t, o);
|
|
109
|
-
}
|
|
110
|
-
after(e) {
|
|
111
|
-
let t = this.#e.indexOf(e);
|
|
112
|
-
if (t = t === -1 || t === this.size - 1 ? -1 : t + 1, t !== -1)
|
|
113
|
-
return this.entryAt(t);
|
|
114
|
-
}
|
|
115
|
-
setAfter(e, t, o) {
|
|
116
|
-
const n = this.#e.indexOf(e);
|
|
117
|
-
return n === -1 ? this : this.insert(n + 1, t, o);
|
|
118
|
-
}
|
|
119
|
-
first() {
|
|
120
|
-
return this.entryAt(0);
|
|
121
|
-
}
|
|
122
|
-
last() {
|
|
123
|
-
return this.entryAt(-1);
|
|
124
|
-
}
|
|
125
|
-
clear() {
|
|
126
|
-
return this.#e = [], super.clear();
|
|
127
|
-
}
|
|
128
|
-
delete(e) {
|
|
129
|
-
const t = super.delete(e);
|
|
130
|
-
return t && this.#e.splice(this.#e.indexOf(e), 1), t;
|
|
131
|
-
}
|
|
132
|
-
deleteAt(e) {
|
|
133
|
-
const t = this.keyAt(e);
|
|
134
|
-
return t !== void 0 ? this.delete(t) : !1;
|
|
135
|
-
}
|
|
136
|
-
at(e) {
|
|
137
|
-
const t = T(this.#e, e);
|
|
138
|
-
if (t !== void 0) return this.get(t);
|
|
139
|
-
}
|
|
140
|
-
entryAt(e) {
|
|
141
|
-
const t = T(this.#e, e);
|
|
142
|
-
if (t !== void 0) return [t, this.get(t)];
|
|
143
|
-
}
|
|
144
|
-
indexOf(e) {
|
|
145
|
-
return this.#e.indexOf(e);
|
|
146
|
-
}
|
|
147
|
-
keyAt(e) {
|
|
148
|
-
return T(this.#e, e);
|
|
149
|
-
}
|
|
150
|
-
from(e, t) {
|
|
151
|
-
const o = this.indexOf(e);
|
|
152
|
-
if (o === -1) return;
|
|
153
|
-
let n = o + t;
|
|
154
|
-
return n < 0 && (n = 0), n >= this.size && (n = this.size - 1), this.at(n);
|
|
155
|
-
}
|
|
156
|
-
keyFrom(e, t) {
|
|
157
|
-
const o = this.indexOf(e);
|
|
158
|
-
if (o === -1) return;
|
|
159
|
-
let n = o + t;
|
|
160
|
-
return n < 0 && (n = 0), n >= this.size && (n = this.size - 1), this.keyAt(n);
|
|
161
|
-
}
|
|
162
|
-
find(e, t) {
|
|
163
|
-
let o = 0;
|
|
164
|
-
for (const n of this) {
|
|
165
|
-
if (Reflect.apply(e, t, [
|
|
166
|
-
n,
|
|
167
|
-
o,
|
|
168
|
-
this
|
|
169
|
-
])) return n;
|
|
170
|
-
o++;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
findIndex(e, t) {
|
|
174
|
-
let o = 0;
|
|
175
|
-
for (const n of this) {
|
|
176
|
-
if (Reflect.apply(e, t, [
|
|
177
|
-
n,
|
|
178
|
-
o,
|
|
179
|
-
this
|
|
180
|
-
])) return o;
|
|
181
|
-
o++;
|
|
182
|
-
}
|
|
183
|
-
return -1;
|
|
184
|
-
}
|
|
185
|
-
filter(e, t) {
|
|
186
|
-
const o = [];
|
|
187
|
-
let n = 0;
|
|
188
|
-
for (const i of this)
|
|
189
|
-
Reflect.apply(e, t, [
|
|
190
|
-
i,
|
|
191
|
-
n,
|
|
192
|
-
this
|
|
193
|
-
]) && o.push(i), n++;
|
|
194
|
-
return new g(o);
|
|
195
|
-
}
|
|
196
|
-
map(e, t) {
|
|
197
|
-
const o = [];
|
|
198
|
-
let n = 0;
|
|
199
|
-
for (const i of this)
|
|
200
|
-
o.push([i[0], Reflect.apply(e, t, [
|
|
201
|
-
i,
|
|
202
|
-
n,
|
|
203
|
-
this
|
|
204
|
-
])]), n++;
|
|
205
|
-
return new g(o);
|
|
206
|
-
}
|
|
207
|
-
reduce(...e) {
|
|
208
|
-
const [t, o] = e;
|
|
209
|
-
let n = 0, i = o ?? this.at(0);
|
|
210
|
-
for (const c of this)
|
|
211
|
-
n === 0 && e.length === 1 ? i = c : i = Reflect.apply(t, this, [
|
|
212
|
-
i,
|
|
213
|
-
c,
|
|
214
|
-
n,
|
|
215
|
-
this
|
|
216
|
-
]), n++;
|
|
217
|
-
return i;
|
|
218
|
-
}
|
|
219
|
-
reduceRight(...e) {
|
|
220
|
-
const [t, o] = e;
|
|
221
|
-
let n = o ?? this.at(-1);
|
|
222
|
-
for (let i = this.size - 1; i >= 0; i--) {
|
|
223
|
-
const c = this.at(i);
|
|
224
|
-
i === this.size - 1 && e.length === 1 ? n = c : n = Reflect.apply(t, this, [
|
|
225
|
-
n,
|
|
226
|
-
c,
|
|
227
|
-
i,
|
|
228
|
-
this
|
|
229
|
-
]);
|
|
230
|
-
}
|
|
231
|
-
return n;
|
|
232
|
-
}
|
|
233
|
-
toSorted(e) {
|
|
234
|
-
const t = [...this.entries()].sort(e);
|
|
235
|
-
return new g(t);
|
|
236
|
-
}
|
|
237
|
-
toReversed() {
|
|
238
|
-
const e = new g();
|
|
239
|
-
for (let t = this.size - 1; t >= 0; t--) {
|
|
240
|
-
const o = this.keyAt(t), n = this.get(o);
|
|
241
|
-
e.set(o, n);
|
|
242
|
-
}
|
|
243
|
-
return e;
|
|
244
|
-
}
|
|
245
|
-
toSpliced(...e) {
|
|
246
|
-
const t = [...this.entries()];
|
|
247
|
-
return t.splice(...e), new g(t);
|
|
248
|
-
}
|
|
249
|
-
slice(e, t) {
|
|
250
|
-
const o = new g();
|
|
251
|
-
let n = this.size - 1;
|
|
252
|
-
if (e === void 0) return o;
|
|
253
|
-
e < 0 && (e = e + this.size), t !== void 0 && t > 0 && (n = t - 1);
|
|
254
|
-
for (let i = e; i <= n; i++) {
|
|
255
|
-
const c = this.keyAt(i), a = this.get(c);
|
|
256
|
-
o.set(c, a);
|
|
257
|
-
}
|
|
258
|
-
return o;
|
|
259
|
-
}
|
|
260
|
-
every(e, t) {
|
|
261
|
-
let o = 0;
|
|
262
|
-
for (const n of this) {
|
|
263
|
-
if (!Reflect.apply(e, t, [
|
|
264
|
-
n,
|
|
265
|
-
o,
|
|
266
|
-
this
|
|
267
|
-
])) return !1;
|
|
268
|
-
o++;
|
|
269
|
-
}
|
|
270
|
-
return !0;
|
|
271
|
-
}
|
|
272
|
-
some(e, t) {
|
|
273
|
-
let o = 0;
|
|
274
|
-
for (const n of this) {
|
|
275
|
-
if (Reflect.apply(e, t, [
|
|
276
|
-
n,
|
|
277
|
-
o,
|
|
278
|
-
this
|
|
279
|
-
])) return !0;
|
|
280
|
-
o++;
|
|
281
|
-
}
|
|
282
|
-
return !1;
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
function T(r, e) {
|
|
286
|
-
if ("at" in Array.prototype) return Array.prototype.at.call(r, e);
|
|
287
|
-
const t = F(r, e);
|
|
288
|
-
return t === -1 ? void 0 : r[t];
|
|
289
|
-
}
|
|
290
|
-
f(T, "at");
|
|
291
|
-
function F(r, e) {
|
|
292
|
-
const t = r.length, o = V(e), n = o >= 0 ? o : t + o;
|
|
293
|
-
return n < 0 || n >= t ? -1 : n;
|
|
294
|
-
}
|
|
295
|
-
f(F, "toSafeIndex");
|
|
296
|
-
function V(r) {
|
|
297
|
-
return r !== r || r === 0 ? 0 : Math.trunc(r);
|
|
298
|
-
}
|
|
299
|
-
f(V, "toSafeInteger");
|
|
300
|
-
// @__NO_SIDE_EFFECTS__
|
|
301
|
-
function Q(r) {
|
|
302
|
-
const e = r + "CollectionProvider", [t, o] = K(e), [n, i] = t(e, {
|
|
303
|
-
collectionElement: null,
|
|
304
|
-
collectionRef: { current: null },
|
|
305
|
-
collectionRefObject: { current: null },
|
|
306
|
-
itemMap: new L(),
|
|
307
|
-
setItemMap: /* @__PURE__ */ f(() => {
|
|
308
|
-
}, "setItemMap")
|
|
309
|
-
}), c = /* @__PURE__ */ f(({ state: s, ...l }) => s ? /* @__PURE__ */ M(v, {
|
|
310
|
-
...l,
|
|
311
|
-
state: s
|
|
312
|
-
}) : /* @__PURE__ */ M(a, { ...l }), "CollectionProvider");
|
|
313
|
-
c.displayName = e;
|
|
314
|
-
const a = /* @__PURE__ */ f((s) => {
|
|
315
|
-
const l = h();
|
|
316
|
-
return /* @__PURE__ */ M(v, {
|
|
317
|
-
...s,
|
|
318
|
-
state: l
|
|
319
|
-
});
|
|
320
|
-
}, "CollectionInit");
|
|
321
|
-
a.displayName = e + "Init";
|
|
322
|
-
const v = /* @__PURE__ */ f((s) => {
|
|
323
|
-
const { scope: l, children: p, state: w } = s, R = u.useRef(null), [P, C] = u.useState(null), k = _(R, C), [b, D] = w;
|
|
324
|
-
return u.useEffect(() => {
|
|
325
|
-
if (!P) return;
|
|
326
|
-
const N = W(() => {
|
|
327
|
-
});
|
|
328
|
-
return N.observe(P, {
|
|
329
|
-
childList: !0,
|
|
330
|
-
subtree: !0
|
|
331
|
-
}), () => {
|
|
332
|
-
N.disconnect();
|
|
333
|
-
};
|
|
334
|
-
}, [P]), /* @__PURE__ */ M(n, {
|
|
335
|
-
scope: l,
|
|
336
|
-
itemMap: b,
|
|
337
|
-
setItemMap: D,
|
|
338
|
-
collectionRef: k,
|
|
339
|
-
collectionRefObject: R,
|
|
340
|
-
collectionElement: P,
|
|
341
|
-
children: p
|
|
342
|
-
});
|
|
343
|
-
}, "CollectionProviderImpl");
|
|
344
|
-
v.displayName = e + "Impl";
|
|
345
|
-
const E = r + "CollectionSlot", x = z(E), S = u.forwardRef((s, l) => {
|
|
346
|
-
const { scope: p, children: w } = s, R = i(E, p), P = _(l, R.collectionRef);
|
|
347
|
-
return /* @__PURE__ */ M(x, {
|
|
348
|
-
ref: P,
|
|
349
|
-
children: w
|
|
350
|
-
});
|
|
351
|
-
});
|
|
352
|
-
S.displayName = E;
|
|
353
|
-
const A = r + "CollectionItemSlot", d = "data-radix-collection-item", y = z(A), m = u.forwardRef((s, l) => {
|
|
354
|
-
const { scope: p, children: w, ...R } = s, P = u.useRef(null), [C, k] = u.useState(null), b = _(l, P, k), { setItemMap: D } = i(A, p), N = u.useRef(R);
|
|
355
|
-
G(N.current, R) || (N.current = R);
|
|
356
|
-
const B = N.current;
|
|
357
|
-
return u.useEffect(() => {
|
|
358
|
-
const $ = B;
|
|
359
|
-
return D((O) => C ? O.has(C) ? O.set(C, {
|
|
360
|
-
...$,
|
|
361
|
-
element: C
|
|
362
|
-
}).toSorted(j) : (O.set(C, {
|
|
363
|
-
...$,
|
|
364
|
-
element: C
|
|
365
|
-
}), O.toSorted(j)) : O), () => {
|
|
366
|
-
D((O) => !C || !O.has(C) ? O : (O.delete(C), new L(O)));
|
|
367
|
-
};
|
|
368
|
-
}, [
|
|
369
|
-
C,
|
|
370
|
-
B,
|
|
371
|
-
D
|
|
372
|
-
]), /* @__PURE__ */ M(y, {
|
|
373
|
-
[d]: "",
|
|
374
|
-
ref: b,
|
|
375
|
-
children: w
|
|
376
|
-
});
|
|
377
|
-
});
|
|
378
|
-
m.displayName = A;
|
|
379
|
-
function h() {
|
|
380
|
-
return u.useState(new L());
|
|
381
|
-
}
|
|
382
|
-
f(h, "useInitCollection");
|
|
383
|
-
function I(s) {
|
|
384
|
-
const { itemMap: l } = i(r + "CollectionConsumer", s);
|
|
385
|
-
return l;
|
|
386
|
-
}
|
|
387
|
-
return f(I, "useCollection"), [{
|
|
388
|
-
Provider: c,
|
|
389
|
-
Slot: S,
|
|
390
|
-
ItemSlot: m
|
|
391
|
-
}, {
|
|
392
|
-
createCollectionScope: o,
|
|
393
|
-
useCollection: I,
|
|
394
|
-
useInitCollection: h
|
|
395
|
-
}];
|
|
396
|
-
}
|
|
397
|
-
f(Q, "createCollection");
|
|
398
|
-
function G(r, e) {
|
|
399
|
-
if (r === e) return !0;
|
|
400
|
-
if (typeof r != "object" || typeof e != "object" || r == null || e == null) return !1;
|
|
401
|
-
const t = Object.keys(r), o = Object.keys(e);
|
|
402
|
-
if (t.length !== o.length) return !1;
|
|
403
|
-
for (const n of t)
|
|
404
|
-
if (!Object.prototype.hasOwnProperty.call(e, n) || r[n] !== e[n]) return !1;
|
|
405
|
-
return !0;
|
|
406
|
-
}
|
|
407
|
-
f(G, "shallowEqual");
|
|
408
|
-
function U(r, e) {
|
|
409
|
-
return !!(e.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
410
|
-
}
|
|
411
|
-
f(U, "isElementPreceding");
|
|
412
|
-
function j(r, e) {
|
|
413
|
-
return !r[1].element || !e[1].element ? 0 : U(r[1].element, e[1].element) ? -1 : 1;
|
|
414
|
-
}
|
|
415
|
-
f(j, "sortByDocumentPosition");
|
|
416
|
-
function W(r) {
|
|
417
|
-
return new MutationObserver((e) => {
|
|
418
|
-
for (const t of e) if (t.type === "childList") {
|
|
419
|
-
r();
|
|
420
|
-
return;
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
f(W, "getChildListObserver");
|
|
425
|
-
var X = Object.defineProperty, Y = (r, e) => X(r, "name", {
|
|
426
|
-
value: e,
|
|
427
|
-
configurable: !0
|
|
428
|
-
}), Z = u.createContext(void 0);
|
|
429
|
-
function ee(r) {
|
|
430
|
-
const e = u.useContext(Z);
|
|
431
|
-
return r || e || "ltr";
|
|
432
|
-
}
|
|
433
|
-
Y(ee, "useDirection");
|
|
434
|
-
export {
|
|
435
|
-
J as n,
|
|
436
|
-
ee as t
|
|
437
|
-
};
|
package/dist/dist-LRkZdylX.js
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { a as _, n as D } from "./dist-xCbHbMLA.js";
|
|
2
|
-
import { t as I } from "./dist-CCdbu9GU.js";
|
|
3
|
-
import { i as T, r as m, t as N } from "./dist-D-yS0HN8.js";
|
|
4
|
-
import { n as k } from "./dist-D70ZJkHf.js";
|
|
5
|
-
import { t as y } from "./dist-uerXivvM.js";
|
|
6
|
-
import { n as $, r as G, t as H } from "./es2015-Hhb87ipX.js";
|
|
7
|
-
import { t as L } from "./dist-C4j75TwZ.js";
|
|
8
|
-
import { t as x } from "./dist-BUocnzkM.js";
|
|
9
|
-
import { t as j } from "./Combination-CnMM05mt.js";
|
|
10
|
-
import { a as E, i as K, r as U, t as b } from "./dist-DcFwF4XM.js";
|
|
11
|
-
import * as c from "react";
|
|
12
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
-
var V = Object.defineProperty, l = (p, o) => V(p, "name", {
|
|
14
|
-
value: o,
|
|
15
|
-
configurable: !0
|
|
16
|
-
}), O = "Popover", [F, ho] = T(O, [E]), C = E(), [Z, f] = F(O), q = /* @__PURE__ */ l((p) => {
|
|
17
|
-
const { __scopePopover: o, children: s, open: r, defaultOpen: a, onOpenChange: t, modal: e = !1 } = p, n = C(o), u = c.useRef(null), [P, d] = c.useState(!1), [R, v] = N({
|
|
18
|
-
prop: r,
|
|
19
|
-
defaultProp: a ?? !1,
|
|
20
|
-
onChange: t,
|
|
21
|
-
caller: O
|
|
22
|
-
});
|
|
23
|
-
return /* @__PURE__ */ i(K, {
|
|
24
|
-
...n,
|
|
25
|
-
children: /* @__PURE__ */ i(Z, {
|
|
26
|
-
scope: o,
|
|
27
|
-
contentId: k(),
|
|
28
|
-
triggerRef: u,
|
|
29
|
-
open: R,
|
|
30
|
-
onOpenChange: v,
|
|
31
|
-
onOpenToggle: c.useCallback(() => v((h) => !h), [v]),
|
|
32
|
-
hasCustomAnchor: P,
|
|
33
|
-
onCustomAnchorAdd: c.useCallback(() => d(!0), []),
|
|
34
|
-
onCustomAnchorRemove: c.useCallback(() => d(!1), []),
|
|
35
|
-
modal: e,
|
|
36
|
-
children: s
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
}, "Popover"), z = "PopoverAnchor", B = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ l(function(o, s) {
|
|
40
|
-
const { __scopePopover: r, ...a } = o, t = f(z, r), e = C(r), { onCustomAnchorAdd: n, onCustomAnchorRemove: u } = t;
|
|
41
|
-
return c.useEffect(() => (n(), () => u()), [n, u]), /* @__PURE__ */ i(b, {
|
|
42
|
-
...e,
|
|
43
|
-
...a,
|
|
44
|
-
ref: s
|
|
45
|
-
});
|
|
46
|
-
}, "PopoverAnchor")), J = "PopoverTrigger", Q = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ l(function(o, s) {
|
|
47
|
-
const { __scopePopover: r, ...a } = o, t = f(J, r), e = C(r), n = _(s, t.triggerRef), u = /* @__PURE__ */ i(I.button, {
|
|
48
|
-
type: "button",
|
|
49
|
-
"aria-haspopup": "dialog",
|
|
50
|
-
"aria-expanded": t.open,
|
|
51
|
-
"aria-controls": t.open ? t.contentId : void 0,
|
|
52
|
-
"data-state": A(t.open),
|
|
53
|
-
...a,
|
|
54
|
-
ref: n,
|
|
55
|
-
onClick: m(o.onClick, t.onOpenToggle)
|
|
56
|
-
});
|
|
57
|
-
return t.hasCustomAnchor ? u : /* @__PURE__ */ i(b, {
|
|
58
|
-
asChild: !0,
|
|
59
|
-
...e,
|
|
60
|
-
children: u
|
|
61
|
-
});
|
|
62
|
-
}, "PopoverTrigger")), w = "PopoverPortal", [W, X] = F(w, { forceMount: void 0 }), Y = /* @__PURE__ */ l((p) => {
|
|
63
|
-
const { __scopePopover: o, forceMount: s, children: r, container: a } = p, t = f(w, o);
|
|
64
|
-
return /* @__PURE__ */ i(W, {
|
|
65
|
-
scope: o,
|
|
66
|
-
forceMount: s,
|
|
67
|
-
children: /* @__PURE__ */ i(x, {
|
|
68
|
-
present: s || t.open,
|
|
69
|
-
children: /* @__PURE__ */ i(L, {
|
|
70
|
-
asChild: !0,
|
|
71
|
-
container: a,
|
|
72
|
-
children: r
|
|
73
|
-
})
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
}, "PopoverPortal"), g = "PopoverContent", oo = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ l(function(o, s) {
|
|
77
|
-
const r = X(g, o.__scopePopover), { forceMount: a = r.forceMount, ...t } = o, e = f(g, o.__scopePopover);
|
|
78
|
-
return /* @__PURE__ */ i(x, {
|
|
79
|
-
present: a || e.open,
|
|
80
|
-
children: e.modal ? /* @__PURE__ */ i(to, {
|
|
81
|
-
...t,
|
|
82
|
-
ref: s
|
|
83
|
-
}) : /* @__PURE__ */ i(ro, {
|
|
84
|
-
...t,
|
|
85
|
-
ref: s
|
|
86
|
-
})
|
|
87
|
-
});
|
|
88
|
-
}, "PopoverContent")), eo = D("PopoverContent.RemoveScroll"), to = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ l(function(o, s) {
|
|
89
|
-
const r = f(g, o.__scopePopover), a = c.useRef(null), t = _(s, a), e = c.useRef(!1);
|
|
90
|
-
return c.useEffect(() => {
|
|
91
|
-
const n = a.current;
|
|
92
|
-
if (n) return H(n);
|
|
93
|
-
}, []), /* @__PURE__ */ i(j, {
|
|
94
|
-
as: eo,
|
|
95
|
-
allowPinchZoom: !0,
|
|
96
|
-
children: /* @__PURE__ */ i(S, {
|
|
97
|
-
...o,
|
|
98
|
-
ref: t,
|
|
99
|
-
trapFocus: r.open,
|
|
100
|
-
disableOutsidePointerEvents: !0,
|
|
101
|
-
onCloseAutoFocus: m(o.onCloseAutoFocus, (n) => {
|
|
102
|
-
n.preventDefault(), e.current || r.triggerRef.current?.focus();
|
|
103
|
-
}),
|
|
104
|
-
onPointerDownOutside: m(o.onPointerDownOutside, (n) => {
|
|
105
|
-
const u = n.detail.originalEvent, P = u.button === 0 && u.ctrlKey === !0, d = u.button === 2 || P;
|
|
106
|
-
e.current = d;
|
|
107
|
-
}, { checkForDefaultPrevented: !1 }),
|
|
108
|
-
onFocusOutside: m(o.onFocusOutside, (n) => n.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
109
|
-
})
|
|
110
|
-
});
|
|
111
|
-
}, "PopoverContentModal")), ro = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ l(function(o, s) {
|
|
112
|
-
const r = f(g, o.__scopePopover), a = c.useRef(!1), t = c.useRef(!1);
|
|
113
|
-
return /* @__PURE__ */ i(S, {
|
|
114
|
-
...o,
|
|
115
|
-
ref: s,
|
|
116
|
-
trapFocus: !1,
|
|
117
|
-
disableOutsidePointerEvents: !1,
|
|
118
|
-
onCloseAutoFocus: (e) => {
|
|
119
|
-
o.onCloseAutoFocus?.(e), e.defaultPrevented || (a.current || r.triggerRef.current?.focus(), e.preventDefault()), a.current = !1, t.current = !1;
|
|
120
|
-
},
|
|
121
|
-
onInteractOutside: (e) => {
|
|
122
|
-
o.onInteractOutside?.(e), e.defaultPrevented || (a.current = !0, e.detail.originalEvent.type === "pointerdown" && (t.current = !0));
|
|
123
|
-
const n = e.target;
|
|
124
|
-
r.triggerRef.current?.contains(n) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && t.current && e.preventDefault();
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}, "PopoverContentNonModal")), S = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ l(function(o, s) {
|
|
128
|
-
const { __scopePopover: r, trapFocus: a, onOpenAutoFocus: t, onCloseAutoFocus: e, disableOutsidePointerEvents: n, onEscapeKeyDown: u, onPointerDownOutside: P, onFocusOutside: d, onInteractOutside: R, ...v } = o, h = f(g, r), M = C(r);
|
|
129
|
-
return $(), /* @__PURE__ */ i(G, {
|
|
130
|
-
asChild: !0,
|
|
131
|
-
loop: !0,
|
|
132
|
-
trapped: a,
|
|
133
|
-
onMountAutoFocus: t,
|
|
134
|
-
onUnmountAutoFocus: e,
|
|
135
|
-
children: /* @__PURE__ */ i(y, {
|
|
136
|
-
asChild: !0,
|
|
137
|
-
disableOutsidePointerEvents: n,
|
|
138
|
-
onInteractOutside: R,
|
|
139
|
-
onEscapeKeyDown: u,
|
|
140
|
-
onPointerDownOutside: P,
|
|
141
|
-
onFocusOutside: d,
|
|
142
|
-
onDismiss: () => h.onOpenChange(!1),
|
|
143
|
-
deferPointerDownOutside: !0,
|
|
144
|
-
children: /* @__PURE__ */ i(U, {
|
|
145
|
-
"data-state": A(h.open),
|
|
146
|
-
role: "dialog",
|
|
147
|
-
id: h.contentId,
|
|
148
|
-
...M,
|
|
149
|
-
...v,
|
|
150
|
-
ref: s,
|
|
151
|
-
style: {
|
|
152
|
-
...v.style,
|
|
153
|
-
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
154
|
-
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
155
|
-
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
156
|
-
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
157
|
-
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
158
|
-
}
|
|
159
|
-
})
|
|
160
|
-
})
|
|
161
|
-
});
|
|
162
|
-
}, "PopoverContentImpl"));
|
|
163
|
-
function A(p) {
|
|
164
|
-
return p ? "open" : "closed";
|
|
165
|
-
}
|
|
166
|
-
l(A, "getState");
|
|
167
|
-
var go = q, mo = B, Co = Q, Ro = Y, Oo = oo;
|
|
168
|
-
export {
|
|
169
|
-
Co as a,
|
|
170
|
-
go as i,
|
|
171
|
-
Oo as n,
|
|
172
|
-
Ro as r,
|
|
173
|
-
mo as t
|
|
174
|
-
};
|