@konstructio/ui 0.1.2-alpha.112 → 0.1.2-alpha.114
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/Breadcrumb-CpXRb08J.js +93 -0
- 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/Breadcrumb.js +1 -1
- 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/Radio/Radio.js +16 -16
- package/dist/components/Radio/Radio.variants.js +4 -1
- 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 +181 -155
- 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/Breadcrumb-CHi5-wVa.js +0 -81
- 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
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { t as m } from "./dist-CYuWoi9I.js";
|
|
2
|
+
import { i as P, r as p, t as F } from "./dist-DbeY0Pzx.js";
|
|
3
|
+
import { n as S } from "./dist-C0OhTLFV.js";
|
|
4
|
+
import { t as x } from "./dist-uuWgjOcO.js";
|
|
5
|
+
import { t as y } from "./dist-rsFD9q_X.js";
|
|
6
|
+
import { n as E, r as A, t as w } from "./dist-BXv-jY2v.js";
|
|
7
|
+
import * as b from "react";
|
|
8
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
9
|
+
var G = Object.defineProperty, v = (i, e) => G(i, "name", {
|
|
10
|
+
value: e,
|
|
11
|
+
configurable: !0
|
|
12
|
+
}), M = {
|
|
13
|
+
Automatic: "automatic",
|
|
14
|
+
Manual: "manual"
|
|
15
|
+
}, C = "Tabs", [D, H] = P(C, [A]), R = A(), [V, I] = D(C), J = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ v(function(e, l) {
|
|
16
|
+
const { __scopeTabs: s, value: a, onValueChange: r, defaultValue: c, orientation: o = "horizontal", dir: u, activationMode: T = M.Automatic, ...g } = e, n = y(u), [t, f] = F({
|
|
17
|
+
prop: a,
|
|
18
|
+
onChange: r,
|
|
19
|
+
defaultProp: c ?? "",
|
|
20
|
+
caller: C
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ d(V, {
|
|
23
|
+
scope: s,
|
|
24
|
+
baseId: S(),
|
|
25
|
+
value: t,
|
|
26
|
+
onValueChange: f,
|
|
27
|
+
orientation: o,
|
|
28
|
+
dir: n,
|
|
29
|
+
activationMode: T,
|
|
30
|
+
children: /* @__PURE__ */ d(m.div, {
|
|
31
|
+
dir: n,
|
|
32
|
+
"data-orientation": o,
|
|
33
|
+
...g,
|
|
34
|
+
ref: l
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}, "Tabs")), N = "TabsList", Q = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ v(function(e, l) {
|
|
38
|
+
const { __scopeTabs: s, loop: a = !0, ...r } = e, c = I(N, s), o = R(s);
|
|
39
|
+
return /* @__PURE__ */ d(w, {
|
|
40
|
+
asChild: !0,
|
|
41
|
+
...o,
|
|
42
|
+
orientation: c.orientation,
|
|
43
|
+
dir: c.dir,
|
|
44
|
+
loop: a,
|
|
45
|
+
children: /* @__PURE__ */ d(m.div, {
|
|
46
|
+
role: "tablist",
|
|
47
|
+
"aria-orientation": c.orientation,
|
|
48
|
+
...r,
|
|
49
|
+
ref: l
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
}, "TabsList")), $ = "TabsTrigger", U = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ v(function(e, l) {
|
|
53
|
+
const { __scopeTabs: s, value: a, disabled: r = !1, ...c } = e, o = I($, s), u = R(s), T = _(o.baseId, a), g = h(o.baseId, a), n = a === o.value;
|
|
54
|
+
return /* @__PURE__ */ d(E, {
|
|
55
|
+
asChild: !0,
|
|
56
|
+
...u,
|
|
57
|
+
focusable: !r,
|
|
58
|
+
active: n,
|
|
59
|
+
children: /* @__PURE__ */ d(m.button, {
|
|
60
|
+
type: "button",
|
|
61
|
+
role: "tab",
|
|
62
|
+
"aria-selected": n,
|
|
63
|
+
"aria-controls": g,
|
|
64
|
+
"data-state": n ? "active" : "inactive",
|
|
65
|
+
"data-disabled": r ? "" : void 0,
|
|
66
|
+
disabled: r,
|
|
67
|
+
id: T,
|
|
68
|
+
...c,
|
|
69
|
+
ref: l,
|
|
70
|
+
onMouseDown: p(e.onMouseDown, (t) => {
|
|
71
|
+
!r && t.button === 0 && t.ctrlKey === !1 ? (t.currentTarget.focus(), o.onValueChange(a)) : t.preventDefault();
|
|
72
|
+
}),
|
|
73
|
+
onKeyDown: p(e.onKeyDown, (t) => {
|
|
74
|
+
r || t.target !== t.currentTarget || [" ", "Enter"].includes(t.key) && o.onValueChange(a);
|
|
75
|
+
}),
|
|
76
|
+
onFocus: p(e.onFocus, () => {
|
|
77
|
+
const t = o.activationMode !== M.Manual;
|
|
78
|
+
!n && !r && t && o.onValueChange(a);
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
}, "TabsTrigger")), k = "TabsContent", W = /* @__PURE__ */ b.forwardRef(/* @__PURE__ */ v(function(e, l) {
|
|
83
|
+
const { __scopeTabs: s, value: a, forceMount: r, children: c, ...o } = e, u = I(k, s), T = _(u.baseId, a), g = h(u.baseId, a), n = a === u.value, t = b.useRef(n);
|
|
84
|
+
return b.useEffect(() => {
|
|
85
|
+
const f = requestAnimationFrame(() => t.current = !1);
|
|
86
|
+
return () => cancelAnimationFrame(f);
|
|
87
|
+
}, []), /* @__PURE__ */ d(x, {
|
|
88
|
+
present: r || n,
|
|
89
|
+
children: ({ present: f }) => /* @__PURE__ */ d(m.div, {
|
|
90
|
+
"data-state": n ? "active" : "inactive",
|
|
91
|
+
"data-orientation": u.orientation,
|
|
92
|
+
role: "tabpanel",
|
|
93
|
+
"aria-labelledby": T,
|
|
94
|
+
hidden: !f,
|
|
95
|
+
id: g,
|
|
96
|
+
tabIndex: 0,
|
|
97
|
+
...o,
|
|
98
|
+
ref: l,
|
|
99
|
+
style: {
|
|
100
|
+
...e.style,
|
|
101
|
+
animationDuration: t.current ? "0s" : void 0
|
|
102
|
+
},
|
|
103
|
+
children: f && c
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
}, "TabsContent"));
|
|
107
|
+
function _(i, e) {
|
|
108
|
+
return `${i}-trigger-${e}`;
|
|
109
|
+
}
|
|
110
|
+
v(_, "makeTriggerId");
|
|
111
|
+
function h(i, e) {
|
|
112
|
+
return `${i}-content-${e}`;
|
|
113
|
+
}
|
|
114
|
+
v(h, "makeContentId");
|
|
115
|
+
export {
|
|
116
|
+
U as i,
|
|
117
|
+
W as n,
|
|
118
|
+
Q as r,
|
|
119
|
+
J as t
|
|
120
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
var A = Object.defineProperty, m = (e, t) => A(e, "name", {
|
|
3
|
+
value: t,
|
|
4
|
+
configurable: !0
|
|
5
|
+
});
|
|
6
|
+
function b(e, t) {
|
|
7
|
+
if (typeof e == "function") return e(t);
|
|
8
|
+
e != null && (e.current = t);
|
|
9
|
+
}
|
|
10
|
+
m(b, "setRef");
|
|
11
|
+
function h(...e) {
|
|
12
|
+
return (t) => {
|
|
13
|
+
let r = !1;
|
|
14
|
+
const n = e.map((o) => {
|
|
15
|
+
const l = b(o, t);
|
|
16
|
+
return !r && typeof l == "function" && (r = !0), l;
|
|
17
|
+
});
|
|
18
|
+
if (r) return () => {
|
|
19
|
+
for (let o = 0; o < n.length; o++) {
|
|
20
|
+
const l = n[o];
|
|
21
|
+
typeof l == "function" ? l() : b(e[o], null);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
m(h, "composeRefs");
|
|
27
|
+
function _(...e) {
|
|
28
|
+
return a.useCallback(h(...e), e);
|
|
29
|
+
}
|
|
30
|
+
m(_, "useComposedRefs");
|
|
31
|
+
var O = Object.defineProperty, s = (e, t) => O(e, "name", {
|
|
32
|
+
value: t,
|
|
33
|
+
configurable: !0
|
|
34
|
+
});
|
|
35
|
+
// @__NO_SIDE_EFFECTS__
|
|
36
|
+
function R(e) {
|
|
37
|
+
const t = a.forwardRef((r, n) => {
|
|
38
|
+
let { children: o, ...l } = r, i = null, c = !1;
|
|
39
|
+
const d = [];
|
|
40
|
+
o = L(o), a.Children.forEach(o, (y) => {
|
|
41
|
+
if (C(y)) {
|
|
42
|
+
c = !0;
|
|
43
|
+
const f = y;
|
|
44
|
+
let p = "child" in f.props ? f.props.child : f.props.children;
|
|
45
|
+
for (; S(p) && typeof u == "function"; ) p = u(p._payload);
|
|
46
|
+
i = I(f, p), d.push(i?.props?.children);
|
|
47
|
+
} else d.push(y);
|
|
48
|
+
}), i ? i = a.cloneElement(i, void 0, d) : !c && a.Children.count(o) === 1 && a.isValidElement(o) && (i = o);
|
|
49
|
+
const E = i ? $(i) : void 0, x = _(n, E);
|
|
50
|
+
if (!i) {
|
|
51
|
+
if (o || o === 0) throw new Error(c ? T(e) : D(e));
|
|
52
|
+
return o;
|
|
53
|
+
}
|
|
54
|
+
const g = P(l, i.props ?? {});
|
|
55
|
+
return i.type !== a.Fragment && (g.ref = n ? x : E), a.cloneElement(i, g);
|
|
56
|
+
});
|
|
57
|
+
return t.displayName = `${e}.Slot`, t;
|
|
58
|
+
}
|
|
59
|
+
s(R, "createSlot");
|
|
60
|
+
var W = /* @__PURE__ */ R("Slot"), v = /* @__PURE__ */ Symbol.for("radix.slottable");
|
|
61
|
+
// @__NO_SIDE_EFFECTS__
|
|
62
|
+
function z(e) {
|
|
63
|
+
const t = /* @__PURE__ */ s((r) => "child" in r ? r.children(r.child) : r.children, "Slottable");
|
|
64
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = v, t;
|
|
65
|
+
}
|
|
66
|
+
s(z, "createSlottable");
|
|
67
|
+
var I = /* @__PURE__ */ s((e, t) => "child" in e.props ? a.isValidElement(t) ? a.cloneElement(t, void 0, e.props.children(t.props.children)) : null : a.isValidElement(t) ? t : null, "getSlottableElementFromSlottable");
|
|
68
|
+
function P(e, t) {
|
|
69
|
+
const r = { ...t };
|
|
70
|
+
for (const n in t) {
|
|
71
|
+
const o = e[n], l = t[n];
|
|
72
|
+
/^on[A-Z]/.test(n) ? o && l ? r[n] = (...i) => {
|
|
73
|
+
const c = l(...i);
|
|
74
|
+
return o(...i), c;
|
|
75
|
+
} : o && (r[n] = o) : n === "style" ? r[n] = {
|
|
76
|
+
...o,
|
|
77
|
+
...l
|
|
78
|
+
} : n === "className" ? r[n] = [o, l].filter(Boolean).join(" ") : n === "aria-describedby" && (r[n] = j(l, o));
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
...e,
|
|
82
|
+
...r
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
s(P, "mergeProps");
|
|
86
|
+
function $(e) {
|
|
87
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
88
|
+
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
89
|
+
}
|
|
90
|
+
s($, "getElementRef");
|
|
91
|
+
function C(e) {
|
|
92
|
+
return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === v;
|
|
93
|
+
}
|
|
94
|
+
s(C, "isSlottable");
|
|
95
|
+
var V = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
96
|
+
function S(e) {
|
|
97
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === V && "_payload" in e && w(e._payload);
|
|
98
|
+
}
|
|
99
|
+
s(S, "isLazyComponent");
|
|
100
|
+
function w(e) {
|
|
101
|
+
return typeof e == "object" && e !== null && "then" in e;
|
|
102
|
+
}
|
|
103
|
+
s(w, "isPromiseLike");
|
|
104
|
+
function L(e) {
|
|
105
|
+
let t = e;
|
|
106
|
+
for (; S(t) && typeof u == "function"; ) t = u(t._payload);
|
|
107
|
+
return t;
|
|
108
|
+
}
|
|
109
|
+
s(L, "useUnwrappedLazy");
|
|
110
|
+
function j(...e) {
|
|
111
|
+
const t = /* @__PURE__ */ new Set();
|
|
112
|
+
for (const r of e)
|
|
113
|
+
if (typeof r == "string")
|
|
114
|
+
for (const n of String(r).trim().split(/\s+/)) n && t.add(n);
|
|
115
|
+
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
116
|
+
}
|
|
117
|
+
s(j, "concatAriaDescribedby");
|
|
118
|
+
var D = /* @__PURE__ */ s((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), T = /* @__PURE__ */ s((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), u = a[" use ".trim().toString()];
|
|
119
|
+
export {
|
|
120
|
+
_ as a,
|
|
121
|
+
h as i,
|
|
122
|
+
R as n,
|
|
123
|
+
z as r,
|
|
124
|
+
W as t
|
|
125
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { a as S, n as G } from "./dist-CK8FUUUn.js";
|
|
2
|
+
import { t as H } from "./dist-CYuWoi9I.js";
|
|
3
|
+
import { i as L, r as R, t as K } from "./dist-DbeY0Pzx.js";
|
|
4
|
+
import { n as x } from "./dist-C0OhTLFV.js";
|
|
5
|
+
import { a as $, i as z, n as U, r as V, t as Z } from "./dist-Bh7M0KDN.js";
|
|
6
|
+
import { t as q } from "./dist-BbJP2Efh.js";
|
|
7
|
+
import { t as D } from "./dist-uuWgjOcO.js";
|
|
8
|
+
import { n as J, t as Q } from "./es2015-ChhQTsb4.js";
|
|
9
|
+
import { t as W } from "./Combination-CnMM05mt.js";
|
|
10
|
+
import { a as E, i as X, n as w, t as Y } from "./dist-1AtWkIZ4.js";
|
|
11
|
+
import * as n from "react";
|
|
12
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
13
|
+
var ee = Object.defineProperty, f = (i, e) => ee(i, "name", {
|
|
14
|
+
value: e,
|
|
15
|
+
configurable: !0
|
|
16
|
+
}), y = "Popover", [M, Re] = L(y, [E]), b = E(), [oe, P] = M(y), be = /* @__PURE__ */ f((i) => {
|
|
17
|
+
const { __scopePopover: e, children: s, open: r, defaultOpen: a, onOpenChange: t, modal: o = !1 } = i, p = b(e), l = n.useRef(null), [u, v] = n.useState(!1), [g, h] = n.useState(0), [A, O] = n.useState(0), [C, d] = K({
|
|
18
|
+
prop: r,
|
|
19
|
+
defaultProp: a ?? !1,
|
|
20
|
+
onChange: t,
|
|
21
|
+
caller: y
|
|
22
|
+
});
|
|
23
|
+
return /* @__PURE__ */ c(Y, {
|
|
24
|
+
...p,
|
|
25
|
+
children: /* @__PURE__ */ c(oe, {
|
|
26
|
+
scope: e,
|
|
27
|
+
contentId: x(),
|
|
28
|
+
titleId: x(),
|
|
29
|
+
descriptionId: x(),
|
|
30
|
+
titlePresent: g > 0,
|
|
31
|
+
descriptionPresent: A > 0,
|
|
32
|
+
setTitleCount: h,
|
|
33
|
+
setDescriptionCount: O,
|
|
34
|
+
triggerRef: l,
|
|
35
|
+
open: C,
|
|
36
|
+
onOpenChange: d,
|
|
37
|
+
onOpenToggle: n.useCallback(() => d((_) => !_), [d]),
|
|
38
|
+
hasCustomAnchor: u,
|
|
39
|
+
onCustomAnchorAdd: n.useCallback(() => v(!0), []),
|
|
40
|
+
onCustomAnchorRemove: n.useCallback(() => v(!1), []),
|
|
41
|
+
modal: o,
|
|
42
|
+
children: s
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
}, "Popover"), te = "PopoverAnchor", Ae = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ f(function(e, s) {
|
|
46
|
+
const { __scopePopover: r, ...a } = e, t = P(te, r), o = b(r), { onCustomAnchorAdd: p, onCustomAnchorRemove: l } = t;
|
|
47
|
+
return n.useEffect(() => (p(), () => l()), [p, l]), /* @__PURE__ */ c(w, {
|
|
48
|
+
...o,
|
|
49
|
+
...a,
|
|
50
|
+
ref: s
|
|
51
|
+
});
|
|
52
|
+
}, "PopoverAnchor")), re = "PopoverTrigger", Oe = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ f(function(e, s) {
|
|
53
|
+
const { __scopePopover: r, ...a } = e, t = P(re, r), o = b(r), p = S(s, t.triggerRef), l = /* @__PURE__ */ c(H.button, {
|
|
54
|
+
type: "button",
|
|
55
|
+
"aria-haspopup": "dialog",
|
|
56
|
+
"aria-expanded": t.open,
|
|
57
|
+
"aria-controls": t.open ? t.contentId : void 0,
|
|
58
|
+
"data-state": F(t.open),
|
|
59
|
+
...a,
|
|
60
|
+
ref: p,
|
|
61
|
+
onClick: R(e.onClick, t.onOpenToggle)
|
|
62
|
+
});
|
|
63
|
+
return t.hasCustomAnchor ? l : /* @__PURE__ */ c(w, {
|
|
64
|
+
asChild: !0,
|
|
65
|
+
...o,
|
|
66
|
+
children: l
|
|
67
|
+
});
|
|
68
|
+
}, "PopoverTrigger")), I = "PopoverPortal", [ne, se] = M(I, { forceMount: void 0 }), _e = /* @__PURE__ */ f((i) => {
|
|
69
|
+
const { __scopePopover: e, forceMount: s, children: r, container: a } = i, t = P(I, e);
|
|
70
|
+
return /* @__PURE__ */ c(ne, {
|
|
71
|
+
scope: e,
|
|
72
|
+
forceMount: s,
|
|
73
|
+
children: /* @__PURE__ */ c(D, {
|
|
74
|
+
present: s || t.open,
|
|
75
|
+
children: /* @__PURE__ */ c(q, {
|
|
76
|
+
asChild: !0,
|
|
77
|
+
container: a,
|
|
78
|
+
children: r
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
}, "PopoverPortal"), m = "PopoverContent", xe = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ f(function(e, s) {
|
|
83
|
+
const r = se(m, e.__scopePopover), { forceMount: a = r.forceMount, ...t } = e, o = P(m, e.__scopePopover);
|
|
84
|
+
return /* @__PURE__ */ c(D, {
|
|
85
|
+
present: a || o.open,
|
|
86
|
+
children: o.modal ? /* @__PURE__ */ c(ce, {
|
|
87
|
+
...t,
|
|
88
|
+
ref: s
|
|
89
|
+
}) : /* @__PURE__ */ c(ie, {
|
|
90
|
+
...t,
|
|
91
|
+
ref: s
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}, "PopoverContent")), ae = G("PopoverContent.RemoveScroll"), ce = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ f(function(e, s) {
|
|
95
|
+
const r = P(m, e.__scopePopover), a = n.useRef(null), t = S(s, a), o = n.useRef(!1), { nodes: p, registry: l } = z();
|
|
96
|
+
return n.useEffect(() => {
|
|
97
|
+
const u = a.current;
|
|
98
|
+
if (u) return Q(u);
|
|
99
|
+
}, []), /* @__PURE__ */ c(W, {
|
|
100
|
+
as: ae,
|
|
101
|
+
allowPinchZoom: !0,
|
|
102
|
+
shards: n.useMemo(() => [a, ...p.map((u) => ({ current: u }))], [a, p]),
|
|
103
|
+
children: /* @__PURE__ */ c(N, {
|
|
104
|
+
...e,
|
|
105
|
+
ref: t,
|
|
106
|
+
branchNodes: p,
|
|
107
|
+
branchRegistry: l,
|
|
108
|
+
trapFocus: r.open,
|
|
109
|
+
disableOutsidePointerEvents: !0,
|
|
110
|
+
onCloseAutoFocus: R(e.onCloseAutoFocus, (u) => {
|
|
111
|
+
u.preventDefault(), o.current || r.triggerRef.current?.focus();
|
|
112
|
+
}),
|
|
113
|
+
onPointerDownOutside: R(e.onPointerDownOutside, (u) => {
|
|
114
|
+
const v = u.detail.originalEvent, g = v.button === 0 && v.ctrlKey === !0, h = v.button === 2 || g;
|
|
115
|
+
o.current = h;
|
|
116
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
117
|
+
onFocusOutside: R(e.onFocusOutside, (u) => u.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
118
|
+
})
|
|
119
|
+
});
|
|
120
|
+
}, "PopoverContentModal")), ie = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ f(function(e, s) {
|
|
121
|
+
const r = P(m, e.__scopePopover), a = n.useRef(!1), t = n.useRef(!1);
|
|
122
|
+
return /* @__PURE__ */ c(N, {
|
|
123
|
+
...e,
|
|
124
|
+
ref: s,
|
|
125
|
+
trapFocus: !1,
|
|
126
|
+
disableOutsidePointerEvents: !1,
|
|
127
|
+
onCloseAutoFocus: (o) => {
|
|
128
|
+
e.onCloseAutoFocus?.(o), o.defaultPrevented || (a.current || r.triggerRef.current?.focus(), o.preventDefault()), a.current = !1, t.current = !1;
|
|
129
|
+
},
|
|
130
|
+
onInteractOutside: (o) => {
|
|
131
|
+
e.onInteractOutside?.(o), o.defaultPrevented || (a.current = !0, o.detail.originalEvent.type === "pointerdown" && (t.current = !0));
|
|
132
|
+
const p = o.target;
|
|
133
|
+
r.triggerRef.current?.contains(p) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && t.current && o.preventDefault();
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}, "PopoverContentNonModal")), N = /* @__PURE__ */ n.forwardRef(/* @__PURE__ */ f(function(e, s) {
|
|
137
|
+
const { __scopePopover: r, trapFocus: a, onOpenAutoFocus: t, onCloseAutoFocus: o, disableOutsidePointerEvents: p, onEscapeKeyDown: l, onPointerDownOutside: u, onFocusOutside: v, onInteractOutside: g, "aria-describedby": h, branchNodes: A, branchRegistry: O, ...C } = e, d = P(m, r), _ = b(r), [k, j] = n.useState(null), B = S(s, j);
|
|
138
|
+
return V(k), J(), /* @__PURE__ */ c(U, {
|
|
139
|
+
registry: O,
|
|
140
|
+
children: /* @__PURE__ */ c(Z, {
|
|
141
|
+
asChild: !0,
|
|
142
|
+
loop: !0,
|
|
143
|
+
trapped: a,
|
|
144
|
+
branches: A,
|
|
145
|
+
onMountAutoFocus: t,
|
|
146
|
+
onUnmountAutoFocus: o,
|
|
147
|
+
children: /* @__PURE__ */ c($, {
|
|
148
|
+
asChild: !0,
|
|
149
|
+
disableOutsidePointerEvents: p,
|
|
150
|
+
onInteractOutside: g,
|
|
151
|
+
onEscapeKeyDown: l,
|
|
152
|
+
onPointerDownOutside: u,
|
|
153
|
+
onFocusOutside: v,
|
|
154
|
+
onDismiss: () => d.onOpenChange(!1),
|
|
155
|
+
deferPointerDownOutside: !0,
|
|
156
|
+
children: /* @__PURE__ */ c(X, {
|
|
157
|
+
"data-state": F(d.open),
|
|
158
|
+
role: "dialog",
|
|
159
|
+
id: d.contentId,
|
|
160
|
+
"aria-labelledby": d.titlePresent ? d.titleId : void 0,
|
|
161
|
+
"aria-describedby": d.descriptionPresent ? T(h, d.descriptionId) : h,
|
|
162
|
+
..._,
|
|
163
|
+
...C,
|
|
164
|
+
ref: B,
|
|
165
|
+
style: {
|
|
166
|
+
...C.style,
|
|
167
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
168
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
169
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
170
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
171
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
172
|
+
}
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
})
|
|
176
|
+
});
|
|
177
|
+
}, "PopoverContentImpl"));
|
|
178
|
+
function F(i) {
|
|
179
|
+
return i ? "open" : "closed";
|
|
180
|
+
}
|
|
181
|
+
f(F, "getState");
|
|
182
|
+
function T(...i) {
|
|
183
|
+
const e = /* @__PURE__ */ new Set();
|
|
184
|
+
for (const s of i)
|
|
185
|
+
if (typeof s == "string")
|
|
186
|
+
for (const r of String(s).trim().split(/\s+/)) r && e.add(r);
|
|
187
|
+
return e.size > 0 ? Array.from(e).join(" ") : void 0;
|
|
188
|
+
}
|
|
189
|
+
f(T, "concatAriaDescribedby");
|
|
190
|
+
export {
|
|
191
|
+
Oe as a,
|
|
192
|
+
_e as i,
|
|
193
|
+
Ae as n,
|
|
194
|
+
xe as r,
|
|
195
|
+
be as t
|
|
196
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as a } from "./dist-CYuWoi9I.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as o } from "react/jsx-runtime";
|
|
4
4
|
var n = Object.defineProperty, d = (r, e) => n(r, "name", {
|
|
@@ -15,17 +15,16 @@ var n = Object.defineProperty, d = (r, e) => n(r, "name", {
|
|
|
15
15
|
clip: "rect(0, 0, 0, 0)",
|
|
16
16
|
whiteSpace: "nowrap",
|
|
17
17
|
wordWrap: "normal"
|
|
18
|
-
}),
|
|
19
|
-
return /* @__PURE__ */ o(
|
|
18
|
+
}), p = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ d(function(e, i) {
|
|
19
|
+
return /* @__PURE__ */ o(a.span, {
|
|
20
20
|
...e,
|
|
21
|
-
ref:
|
|
21
|
+
ref: i,
|
|
22
22
|
style: {
|
|
23
23
|
...l,
|
|
24
24
|
...e.style
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
}, "VisuallyHidden"))
|
|
27
|
+
}, "VisuallyHidden"));
|
|
28
28
|
export {
|
|
29
|
-
f as n,
|
|
30
29
|
p as t
|
|
31
30
|
};
|
|
@@ -129,13 +129,13 @@ var j = globalThis?.document ? r.useLayoutEffect : () => {
|
|
|
129
129
|
}, W = Object.defineProperty, Y = (e, t) => W(e, "name", {
|
|
130
130
|
value: t,
|
|
131
131
|
configurable: !0
|
|
132
|
-
}),
|
|
132
|
+
}), b = r[" useEffectEvent ".trim().toString()], _ = r[" useInsertionEffect ".trim().toString()];
|
|
133
133
|
function A(e) {
|
|
134
|
-
if (typeof
|
|
134
|
+
if (typeof b == "function") return b(e);
|
|
135
135
|
const t = r.useRef(() => {
|
|
136
136
|
throw new Error("Cannot call an event handler while rendering.");
|
|
137
137
|
});
|
|
138
|
-
return typeof
|
|
138
|
+
return typeof _ == "function" ? _(() => {
|
|
139
139
|
t.current = e;
|
|
140
140
|
}) : j(() => {
|
|
141
141
|
t.current = e;
|
|
@@ -182,7 +182,7 @@ function F(e) {
|
|
|
182
182
|
return typeof e == "function";
|
|
183
183
|
}
|
|
184
184
|
S(F, "isFunction");
|
|
185
|
-
var
|
|
185
|
+
var $ = /* @__PURE__ */ Symbol("RADIX:SYNC_STATE");
|
|
186
186
|
function q(e, t, n, i) {
|
|
187
187
|
const { prop: o, defaultProp: c, onChange: s, caller: u } = t, l = o !== void 0, a = A(s), d = [{
|
|
188
188
|
...n,
|
|
@@ -190,7 +190,7 @@ function q(e, t, n, i) {
|
|
|
190
190
|
}];
|
|
191
191
|
i && d.push(i);
|
|
192
192
|
const [m, w] = r.useReducer((C, g) => {
|
|
193
|
-
if (g.type ===
|
|
193
|
+
if (g.type === $) return {
|
|
194
194
|
...C,
|
|
195
195
|
state: g.state
|
|
196
196
|
};
|
|
@@ -210,7 +210,7 @@ function q(e, t, n, i) {
|
|
|
210
210
|
} : m, [m, o]);
|
|
211
211
|
return r.useEffect(() => {
|
|
212
212
|
l && !Object.is(o, m.state) && w({
|
|
213
|
-
type:
|
|
213
|
+
type: $,
|
|
214
214
|
state: o
|
|
215
215
|
});
|
|
216
216
|
}, [
|