@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
package/dist/dist-f8EwfITY.js
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { a as R, n as w } from "./dist-xCbHbMLA.js";
|
|
2
|
-
import { t as D } from "./dist-CCdbu9GU.js";
|
|
3
|
-
import { i as N, n as h, r as d, t as L } from "./dist-D-yS0HN8.js";
|
|
4
|
-
import { n as m } from "./dist-D70ZJkHf.js";
|
|
5
|
-
import { n as k, t as G } from "./dist-uerXivvM.js";
|
|
6
|
-
import { n as $, r as j, t as H } from "./es2015-Hhb87ipX.js";
|
|
7
|
-
import { t as K } from "./dist-C4j75TwZ.js";
|
|
8
|
-
import { t as P } from "./dist-BUocnzkM.js";
|
|
9
|
-
import { t as U } from "./Combination-CnMM05mt.js";
|
|
10
|
-
import * as i from "react";
|
|
11
|
-
import { Fragment as V, jsx as s } from "react/jsx-runtime";
|
|
12
|
-
var Y = Object.defineProperty, u = (c, o) => Y(c, "name", {
|
|
13
|
-
value: o,
|
|
14
|
-
configurable: !0
|
|
15
|
-
}), O = "Dialog", [E, ge] = N(O), [Z, g] = E(O), de = /* @__PURE__ */ u((c) => {
|
|
16
|
-
const { __scopeDialog: o, children: a, open: n, defaultOpen: r, onOpenChange: t, modal: e = !0 } = c, l = i.useRef(null), f = i.useRef(null), [x, C] = L({
|
|
17
|
-
prop: n,
|
|
18
|
-
defaultProp: r ?? !1,
|
|
19
|
-
onChange: t,
|
|
20
|
-
caller: O
|
|
21
|
-
}), [T, b] = i.useState(0), [A, F] = i.useState(0);
|
|
22
|
-
return /* @__PURE__ */ s(Z, {
|
|
23
|
-
scope: o,
|
|
24
|
-
triggerRef: l,
|
|
25
|
-
contentRef: f,
|
|
26
|
-
contentId: m(),
|
|
27
|
-
titleId: m(),
|
|
28
|
-
descriptionId: m(),
|
|
29
|
-
titlePresent: T > 0,
|
|
30
|
-
descriptionPresent: A > 0,
|
|
31
|
-
setTitleCount: b,
|
|
32
|
-
setDescriptionCount: F,
|
|
33
|
-
open: x,
|
|
34
|
-
onOpenChange: C,
|
|
35
|
-
onOpenToggle: i.useCallback(() => C((S) => !S), [C]),
|
|
36
|
-
modal: e,
|
|
37
|
-
children: a
|
|
38
|
-
});
|
|
39
|
-
}, "Dialog"), q = "DialogTrigger", pe = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
40
|
-
const { __scopeDialog: n, ...r } = o, t = g(q, n), e = R(a, t.triggerRef);
|
|
41
|
-
return /* @__PURE__ */ s(D.button, {
|
|
42
|
-
type: "button",
|
|
43
|
-
"aria-haspopup": "dialog",
|
|
44
|
-
"aria-expanded": t.open,
|
|
45
|
-
"aria-controls": t.open ? t.contentId : void 0,
|
|
46
|
-
"data-state": v(t.open),
|
|
47
|
-
...r,
|
|
48
|
-
ref: e,
|
|
49
|
-
onClick: d(o.onClick, t.onOpenToggle)
|
|
50
|
-
});
|
|
51
|
-
}, "DialogTrigger")), I = "DialogPortal", [z, y] = E(I, { forceMount: void 0 }), De = /* @__PURE__ */ u((c) => {
|
|
52
|
-
const { __scopeDialog: o, forceMount: a, children: n, container: r } = c, t = g(I, o);
|
|
53
|
-
return /* @__PURE__ */ s(z, {
|
|
54
|
-
scope: o,
|
|
55
|
-
forceMount: a,
|
|
56
|
-
children: i.Children.map(n, (e) => /* @__PURE__ */ s(P, {
|
|
57
|
-
present: a || t.open,
|
|
58
|
-
children: /* @__PURE__ */ s(K, {
|
|
59
|
-
asChild: !0,
|
|
60
|
-
container: r,
|
|
61
|
-
children: e
|
|
62
|
-
})
|
|
63
|
-
}))
|
|
64
|
-
});
|
|
65
|
-
}, "DialogPortal"), _ = "DialogOverlay", ve = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
66
|
-
const n = y(_, o.__scopeDialog), { forceMount: r = n.forceMount, ...t } = o, e = g(_, o.__scopeDialog);
|
|
67
|
-
return e.modal ? /* @__PURE__ */ s(P, {
|
|
68
|
-
present: r || e.open,
|
|
69
|
-
children: /* @__PURE__ */ s(J, {
|
|
70
|
-
...t,
|
|
71
|
-
ref: a
|
|
72
|
-
})
|
|
73
|
-
}) : null;
|
|
74
|
-
}, "DialogOverlay")), B = w("DialogOverlay.RemoveScroll"), J = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
75
|
-
const { __scopeDialog: n, ...r } = o, t = g(_, n), e = k(), l = R(a, e);
|
|
76
|
-
return /* @__PURE__ */ s(U, {
|
|
77
|
-
as: B,
|
|
78
|
-
allowPinchZoom: !0,
|
|
79
|
-
shards: [t.contentRef],
|
|
80
|
-
children: /* @__PURE__ */ s(D.div, {
|
|
81
|
-
"data-state": v(t.open),
|
|
82
|
-
...r,
|
|
83
|
-
ref: l,
|
|
84
|
-
style: {
|
|
85
|
-
pointerEvents: "auto",
|
|
86
|
-
...r.style
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
});
|
|
90
|
-
}, "DialogOverlayImpl")), p = "DialogContent", Ce = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
91
|
-
const n = y(p, o.__scopeDialog), { forceMount: r = n.forceMount, ...t } = o, e = g(p, o.__scopeDialog);
|
|
92
|
-
return /* @__PURE__ */ s(P, {
|
|
93
|
-
present: r || e.open,
|
|
94
|
-
children: e.modal ? /* @__PURE__ */ s(Q, {
|
|
95
|
-
...t,
|
|
96
|
-
ref: a
|
|
97
|
-
}) : /* @__PURE__ */ s(W, {
|
|
98
|
-
...t,
|
|
99
|
-
ref: a
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
}, "DialogContent")), Q = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
103
|
-
const n = g(p, o.__scopeDialog), r = i.useRef(null), t = R(a, n.contentRef, r);
|
|
104
|
-
return i.useEffect(() => {
|
|
105
|
-
const e = r.current;
|
|
106
|
-
if (e) return H(e);
|
|
107
|
-
}, []), /* @__PURE__ */ s(M, {
|
|
108
|
-
...o,
|
|
109
|
-
ref: t,
|
|
110
|
-
trapFocus: n.open,
|
|
111
|
-
disableOutsidePointerEvents: n.open,
|
|
112
|
-
onCloseAutoFocus: d(o.onCloseAutoFocus, (e) => {
|
|
113
|
-
e.preventDefault(), n.triggerRef.current?.focus();
|
|
114
|
-
}),
|
|
115
|
-
onPointerDownOutside: d(o.onPointerDownOutside, (e) => {
|
|
116
|
-
const l = e.detail.originalEvent, f = l.button === 0 && l.ctrlKey === !0;
|
|
117
|
-
(l.button === 2 || f) && e.preventDefault();
|
|
118
|
-
}),
|
|
119
|
-
onFocusOutside: d(o.onFocusOutside, (e) => e.preventDefault())
|
|
120
|
-
});
|
|
121
|
-
}, "DialogContentModal")), W = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
122
|
-
const n = g(p, o.__scopeDialog), r = i.useRef(!1), t = i.useRef(!1);
|
|
123
|
-
return /* @__PURE__ */ s(M, {
|
|
124
|
-
...o,
|
|
125
|
-
ref: a,
|
|
126
|
-
trapFocus: !1,
|
|
127
|
-
disableOutsidePointerEvents: !1,
|
|
128
|
-
onCloseAutoFocus: (e) => {
|
|
129
|
-
o.onCloseAutoFocus?.(e), e.defaultPrevented || (r.current || n.triggerRef.current?.focus(), e.preventDefault()), r.current = !1, t.current = !1;
|
|
130
|
-
},
|
|
131
|
-
onInteractOutside: (e) => {
|
|
132
|
-
o.onInteractOutside?.(e), e.defaultPrevented || (r.current = !0, e.detail.originalEvent.type === "pointerdown" && (t.current = !0));
|
|
133
|
-
const l = e.target;
|
|
134
|
-
n.triggerRef.current?.contains(l) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && t.current && e.preventDefault();
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
}, "DialogContentNonModal")), M = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
138
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: t, onCloseAutoFocus: e, ...l } = o, f = g(p, n);
|
|
139
|
-
return $(), /* @__PURE__ */ s(V, { children: /* @__PURE__ */ s(j, {
|
|
140
|
-
asChild: !0,
|
|
141
|
-
loop: !0,
|
|
142
|
-
trapped: r,
|
|
143
|
-
onMountAutoFocus: t,
|
|
144
|
-
onUnmountAutoFocus: e,
|
|
145
|
-
children: /* @__PURE__ */ s(G, {
|
|
146
|
-
role: "dialog",
|
|
147
|
-
id: f.contentId,
|
|
148
|
-
"aria-describedby": f.descriptionPresent ? f.descriptionId : void 0,
|
|
149
|
-
"aria-labelledby": f.titlePresent ? f.titleId : void 0,
|
|
150
|
-
"data-state": v(f.open),
|
|
151
|
-
...l,
|
|
152
|
-
ref: a,
|
|
153
|
-
deferPointerDownOutside: !0,
|
|
154
|
-
onDismiss: () => f.onOpenChange(!1)
|
|
155
|
-
})
|
|
156
|
-
}) });
|
|
157
|
-
}, "DialogContentImpl")), X = "DialogTitle", me = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
158
|
-
const { __scopeDialog: n, ...r } = o, t = g(X, n), { setTitleCount: e } = t;
|
|
159
|
-
return h(() => (e((l) => l + 1), () => e((l) => l - 1)), [e]), /* @__PURE__ */ s(D.h2, {
|
|
160
|
-
id: t.titleId,
|
|
161
|
-
...r,
|
|
162
|
-
ref: a
|
|
163
|
-
});
|
|
164
|
-
}, "DialogTitle")), ee = "DialogDescription", _e = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
165
|
-
const { __scopeDialog: n, ...r } = o, t = g(ee, n), { setDescriptionCount: e } = t;
|
|
166
|
-
return h(() => (e((l) => l + 1), () => e((l) => l - 1)), [e]), /* @__PURE__ */ s(D.p, {
|
|
167
|
-
id: t.descriptionId,
|
|
168
|
-
...r,
|
|
169
|
-
ref: a
|
|
170
|
-
});
|
|
171
|
-
}, "DialogDescription")), oe = "DialogClose", Re = /* @__PURE__ */ i.forwardRef(/* @__PURE__ */ u(function(o, a) {
|
|
172
|
-
const { __scopeDialog: n, ...r } = o, t = g(oe, n);
|
|
173
|
-
return /* @__PURE__ */ s(D.button, {
|
|
174
|
-
type: "button",
|
|
175
|
-
...r,
|
|
176
|
-
ref: a,
|
|
177
|
-
onClick: d(o.onClick, () => t.onOpenChange(!1))
|
|
178
|
-
});
|
|
179
|
-
}, "DialogClose"));
|
|
180
|
-
function v(c) {
|
|
181
|
-
return c ? "open" : "closed";
|
|
182
|
-
}
|
|
183
|
-
u(v, "getState");
|
|
184
|
-
export {
|
|
185
|
-
ve as a,
|
|
186
|
-
pe as c,
|
|
187
|
-
_e as i,
|
|
188
|
-
ge as l,
|
|
189
|
-
Re as n,
|
|
190
|
-
De as o,
|
|
191
|
-
Ce as r,
|
|
192
|
-
me as s,
|
|
193
|
-
de as t
|
|
194
|
-
};
|
package/dist/dist-pWlMx4Fi.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { n as d } from "./dist-D-yS0HN8.js";
|
|
2
|
-
import * as u from "react";
|
|
3
|
-
var z = Object.defineProperty, c = (r, e) => z(r, "name", {
|
|
4
|
-
value: e,
|
|
5
|
-
configurable: !0
|
|
6
|
-
});
|
|
7
|
-
function h(r) {
|
|
8
|
-
const [e, i] = u.useState(void 0);
|
|
9
|
-
return d(() => {
|
|
10
|
-
if (r) {
|
|
11
|
-
i({
|
|
12
|
-
width: r.offsetWidth,
|
|
13
|
-
height: r.offsetHeight
|
|
14
|
-
});
|
|
15
|
-
const a = new ResizeObserver((o) => {
|
|
16
|
-
if (!Array.isArray(o) || !o.length) return;
|
|
17
|
-
const n = o[0];
|
|
18
|
-
let t, s;
|
|
19
|
-
if ("borderBoxSize" in n) {
|
|
20
|
-
const f = n.borderBoxSize, b = Array.isArray(f) ? f[0] : f;
|
|
21
|
-
t = b.inlineSize, s = b.blockSize;
|
|
22
|
-
} else
|
|
23
|
-
t = r.offsetWidth, s = r.offsetHeight;
|
|
24
|
-
i({
|
|
25
|
-
width: t,
|
|
26
|
-
height: s
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
return a.observe(r, { box: "border-box" }), () => a.unobserve(r);
|
|
30
|
-
} else i(void 0);
|
|
31
|
-
}, [r]), e;
|
|
32
|
-
}
|
|
33
|
-
c(h, "useSize");
|
|
34
|
-
export {
|
|
35
|
-
h as t
|
|
36
|
-
};
|
package/dist/dist-uerXivvM.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { a as j } from "./dist-xCbHbMLA.js";
|
|
2
|
-
import { n as K, t as M } from "./dist-CCdbu9GU.js";
|
|
3
|
-
import { r as g } from "./dist-D-yS0HN8.js";
|
|
4
|
-
import { t as F } from "./dist-D70ZJkHf.js";
|
|
5
|
-
import * as s from "react";
|
|
6
|
-
import { jsx as X } from "react/jsx-runtime";
|
|
7
|
-
var $ = Object.defineProperty, a = (u, n) => $(u, "name", {
|
|
8
|
-
value: n,
|
|
9
|
-
configurable: !0
|
|
10
|
-
}), T = "dismissableLayer.update", q = "dismissableLayer.pointerDownOutside", G = "dismissableLayer.focusOutside", _, N = s.createContext({
|
|
11
|
-
layers: /* @__PURE__ */ new Set(),
|
|
12
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
13
|
-
branches: /* @__PURE__ */ new Set(),
|
|
14
|
-
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
15
|
-
}), ne = /* @__PURE__ */ s.forwardRef(/* @__PURE__ */ a(function(n, t) {
|
|
16
|
-
const { disableOutsidePointerEvents: c = !1, deferPointerDownOutside: d = !1, onEscapeKeyDown: f, onPointerDownOutside: y, onFocusOutside: w, onInteractOutside: E, onDismiss: m, ...p } = n, e = s.useContext(N), [o, P] = s.useState(null), l = o?.ownerDocument ?? globalThis?.document, [, h] = s.useState({}), C = j(t, P), D = Array.from(e.layers), [L] = [...e.layersWithOutsidePointerEventsDisabled].slice(-1), r = L ? D.indexOf(L) : -1, v = o ? D.indexOf(o) : -1, b = e.layersWithOutsidePointerEventsDisabled.size > 0, O = v >= r, B = s.useRef(!1), z = A((i) => {
|
|
17
|
-
y?.(i), E?.(i), i.defaultPrevented || m?.();
|
|
18
|
-
}, {
|
|
19
|
-
ownerDocument: l,
|
|
20
|
-
deferPointerDownOutside: d,
|
|
21
|
-
isDeferredPointerDownOutsideRef: B,
|
|
22
|
-
dismissableSurfaces: e.dismissableSurfaces,
|
|
23
|
-
shouldHandlePointerDownOutside: s.useCallback((i) => {
|
|
24
|
-
if (!(i instanceof Node)) return !1;
|
|
25
|
-
const R = [...e.branches].some((S) => S.contains(i));
|
|
26
|
-
return O && !R;
|
|
27
|
-
}, [e.branches, O])
|
|
28
|
-
}), W = H((i) => {
|
|
29
|
-
if (d && B.current) return;
|
|
30
|
-
const R = i.target;
|
|
31
|
-
[...e.branches].some((S) => S.contains(R)) || (w?.(i), E?.(i), i.defaultPrevented || m?.());
|
|
32
|
-
}, l), U = o ? v === D.length - 1 : !1, I = F((i) => {
|
|
33
|
-
i.key === "Escape" && (f?.(i), !i.defaultPrevented && m && (i.preventDefault(), m()));
|
|
34
|
-
});
|
|
35
|
-
return s.useEffect(() => {
|
|
36
|
-
if (U)
|
|
37
|
-
return l.addEventListener("keydown", I, { capture: !0 }), () => l.removeEventListener("keydown", I, { capture: !0 });
|
|
38
|
-
}, [
|
|
39
|
-
l,
|
|
40
|
-
U,
|
|
41
|
-
I
|
|
42
|
-
]), s.useEffect(() => {
|
|
43
|
-
if (o)
|
|
44
|
-
return c && (e.layersWithOutsidePointerEventsDisabled.size === 0 && (_ = l.body.style.pointerEvents, l.body.style.pointerEvents = "none"), e.layersWithOutsidePointerEventsDisabled.add(o)), e.layers.add(o), k(), () => {
|
|
45
|
-
c && (e.layersWithOutsidePointerEventsDisabled.delete(o), e.layersWithOutsidePointerEventsDisabled.size === 0 && (l.body.style.pointerEvents = _));
|
|
46
|
-
};
|
|
47
|
-
}, [
|
|
48
|
-
o,
|
|
49
|
-
l,
|
|
50
|
-
c,
|
|
51
|
-
e
|
|
52
|
-
]), s.useEffect(() => () => {
|
|
53
|
-
o && (e.layers.delete(o), e.layersWithOutsidePointerEventsDisabled.delete(o), k());
|
|
54
|
-
}, [o, e]), s.useEffect(() => {
|
|
55
|
-
const i = /* @__PURE__ */ a(() => h({}), "handleUpdate");
|
|
56
|
-
return document.addEventListener(T, i), () => document.removeEventListener(T, i);
|
|
57
|
-
}, []), /* @__PURE__ */ X(M.div, {
|
|
58
|
-
...p,
|
|
59
|
-
ref: C,
|
|
60
|
-
style: {
|
|
61
|
-
pointerEvents: b ? O ? "auto" : "none" : void 0,
|
|
62
|
-
...n.style
|
|
63
|
-
},
|
|
64
|
-
onFocusCapture: g(n.onFocusCapture, W.onFocusCapture),
|
|
65
|
-
onBlurCapture: g(n.onBlurCapture, W.onBlurCapture),
|
|
66
|
-
onPointerDownCapture: g(n.onPointerDownCapture, z.onPointerDownCapture)
|
|
67
|
-
});
|
|
68
|
-
}, "DismissableLayer"));
|
|
69
|
-
function J() {
|
|
70
|
-
const u = s.useContext(N), [n, t] = s.useState(null);
|
|
71
|
-
return s.useEffect(() => {
|
|
72
|
-
if (n)
|
|
73
|
-
return u.dismissableSurfaces.add(n), () => {
|
|
74
|
-
u.dismissableSurfaces.delete(n);
|
|
75
|
-
};
|
|
76
|
-
}, [n, u.dismissableSurfaces]), t;
|
|
77
|
-
}
|
|
78
|
-
a(J, "useDismissableLayerSurface");
|
|
79
|
-
var Q = /* @__PURE__ */ a(() => !0, "IS_TRUE");
|
|
80
|
-
function A(u, n) {
|
|
81
|
-
const { ownerDocument: t = globalThis?.document, deferPointerDownOutside: c = !1, isDeferredPointerDownOutsideRef: d, dismissableSurfaces: f, shouldHandlePointerDownOutside: y = Q } = n, w = F(u), E = s.useRef(!1), m = s.useRef(!1), p = s.useRef(/* @__PURE__ */ new Map()), e = s.useRef(() => {
|
|
82
|
-
});
|
|
83
|
-
return s.useEffect(() => {
|
|
84
|
-
function o() {
|
|
85
|
-
m.current = !1, d.current = !1, p.current.clear();
|
|
86
|
-
}
|
|
87
|
-
a(o, "resetOutsideInteraction");
|
|
88
|
-
function P() {
|
|
89
|
-
return Array.from(p.current.values()).some(Boolean);
|
|
90
|
-
}
|
|
91
|
-
a(P, "isOutsideInteractionIntercepted");
|
|
92
|
-
function l(r) {
|
|
93
|
-
if (!m.current) return;
|
|
94
|
-
const v = r.target;
|
|
95
|
-
v instanceof Node && [...f].some((b) => b.contains(v)) || p.current.set(r.type, !0), r.type === "click" && window.setTimeout(() => {
|
|
96
|
-
m.current && e.current();
|
|
97
|
-
}, 0);
|
|
98
|
-
}
|
|
99
|
-
a(l, "handleInteractionCapture");
|
|
100
|
-
function h(r) {
|
|
101
|
-
m.current && p.current.set(r.type, !1);
|
|
102
|
-
}
|
|
103
|
-
a(h, "handleInteractionBubble");
|
|
104
|
-
const C = /* @__PURE__ */ a((r) => {
|
|
105
|
-
if (r.target && !E.current) {
|
|
106
|
-
let v = function() {
|
|
107
|
-
t.removeEventListener("click", e.current);
|
|
108
|
-
const O = P();
|
|
109
|
-
o(), O || x(q, w, b, { discrete: !0 });
|
|
110
|
-
};
|
|
111
|
-
if (a(v, "handleAndDispatchPointerDownOutsideEvent"), !y(r.target)) {
|
|
112
|
-
t.removeEventListener("click", e.current), o(), E.current = !1;
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const b = { originalEvent: r };
|
|
116
|
-
m.current = !0, d.current = c && r.button === 0, p.current.clear(), !c || r.button !== 0 ? v() : (t.removeEventListener("click", e.current), e.current = v, t.addEventListener("click", e.current, { once: !0 }));
|
|
117
|
-
} else
|
|
118
|
-
t.removeEventListener("click", e.current), o();
|
|
119
|
-
E.current = !1;
|
|
120
|
-
}, "handlePointerDown"), D = [
|
|
121
|
-
"pointerup",
|
|
122
|
-
"mousedown",
|
|
123
|
-
"mouseup",
|
|
124
|
-
"touchstart",
|
|
125
|
-
"touchend",
|
|
126
|
-
"click"
|
|
127
|
-
];
|
|
128
|
-
for (const r of D)
|
|
129
|
-
t.addEventListener(r, l, !0), t.addEventListener(r, h);
|
|
130
|
-
const L = window.setTimeout(() => {
|
|
131
|
-
t.addEventListener("pointerdown", C);
|
|
132
|
-
}, 0);
|
|
133
|
-
return () => {
|
|
134
|
-
window.clearTimeout(L), t.removeEventListener("pointerdown", C), t.removeEventListener("click", e.current);
|
|
135
|
-
for (const r of D)
|
|
136
|
-
t.removeEventListener(r, l, !0), t.removeEventListener(r, h);
|
|
137
|
-
};
|
|
138
|
-
}, [
|
|
139
|
-
t,
|
|
140
|
-
w,
|
|
141
|
-
c,
|
|
142
|
-
d,
|
|
143
|
-
f,
|
|
144
|
-
y
|
|
145
|
-
]), { onPointerDownCapture: /* @__PURE__ */ a(() => E.current = !0, "onPointerDownCapture") };
|
|
146
|
-
}
|
|
147
|
-
a(A, "usePointerDownOutside");
|
|
148
|
-
function H(u, n = globalThis?.document) {
|
|
149
|
-
const t = F(u), c = s.useRef(!1);
|
|
150
|
-
return s.useEffect(() => {
|
|
151
|
-
const d = /* @__PURE__ */ a((f) => {
|
|
152
|
-
f.target && !c.current && x(G, t, { originalEvent: f }, { discrete: !1 });
|
|
153
|
-
}, "handleFocus");
|
|
154
|
-
return n.addEventListener("focusin", d), () => n.removeEventListener("focusin", d);
|
|
155
|
-
}, [n, t]), {
|
|
156
|
-
onFocusCapture: /* @__PURE__ */ a(() => c.current = !0, "onFocusCapture"),
|
|
157
|
-
onBlurCapture: /* @__PURE__ */ a(() => c.current = !1, "onBlurCapture")
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
a(H, "useFocusOutside");
|
|
161
|
-
function k() {
|
|
162
|
-
const u = new CustomEvent(T);
|
|
163
|
-
document.dispatchEvent(u);
|
|
164
|
-
}
|
|
165
|
-
a(k, "dispatchUpdate");
|
|
166
|
-
function x(u, n, t, { discrete: c }) {
|
|
167
|
-
const d = t.originalEvent.target, f = new CustomEvent(u, {
|
|
168
|
-
bubbles: !1,
|
|
169
|
-
cancelable: !0,
|
|
170
|
-
detail: t
|
|
171
|
-
});
|
|
172
|
-
n && d.addEventListener(u, n, { once: !0 }), c ? K(d, f) : d.dispatchEvent(f);
|
|
173
|
-
}
|
|
174
|
-
a(x, "handleAndDispatchCustomEvent");
|
|
175
|
-
export {
|
|
176
|
-
J as n,
|
|
177
|
-
ne as t
|
|
178
|
-
};
|
package/dist/dist-xCbHbMLA.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import * as i from "react";
|
|
2
|
-
var L = Object.defineProperty, b = (e, t) => L(e, "name", {
|
|
3
|
-
value: t,
|
|
4
|
-
configurable: !0
|
|
5
|
-
});
|
|
6
|
-
function y(e, t) {
|
|
7
|
-
if (typeof e == "function") return e(t);
|
|
8
|
-
e != null && (e.current = t);
|
|
9
|
-
}
|
|
10
|
-
b(y, "setRef");
|
|
11
|
-
function g(...e) {
|
|
12
|
-
return (t) => {
|
|
13
|
-
let r = !1;
|
|
14
|
-
const n = e.map((o) => {
|
|
15
|
-
const a = y(o, t);
|
|
16
|
-
return !r && typeof a == "function" && (r = !0), a;
|
|
17
|
-
});
|
|
18
|
-
if (r) return () => {
|
|
19
|
-
for (let o = 0; o < n.length; o++) {
|
|
20
|
-
const a = n[o];
|
|
21
|
-
typeof a == "function" ? a() : y(e[o], null);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
b(g, "composeRefs");
|
|
27
|
-
function _(...e) {
|
|
28
|
-
return i.useCallback(g(...e), e);
|
|
29
|
-
}
|
|
30
|
-
b(_, "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 = i.forwardRef((r, n) => {
|
|
38
|
-
let { children: o, ...a } = r, l = null, c = !1;
|
|
39
|
-
const d = [];
|
|
40
|
-
S(o) && typeof u == "function" && (o = u(o._payload)), i.Children.forEach(o, (m) => {
|
|
41
|
-
if (C(m)) {
|
|
42
|
-
c = !0;
|
|
43
|
-
const f = m;
|
|
44
|
-
let p = "child" in f.props ? f.props.child : f.props.children;
|
|
45
|
-
S(p) && typeof u == "function" && (p = u(p._payload)), l = V(f, p), d.push(l?.props?.children);
|
|
46
|
-
} else d.push(m);
|
|
47
|
-
}), l ? l = i.cloneElement(l, void 0, d) : !c && i.Children.count(o) === 1 && i.isValidElement(o) && (l = o);
|
|
48
|
-
const E = l ? $(l) : void 0, x = _(n, E);
|
|
49
|
-
if (!l) {
|
|
50
|
-
if (o || o === 0) throw new Error(c ? A(e) : W(e));
|
|
51
|
-
return o;
|
|
52
|
-
}
|
|
53
|
-
const h = P(a, l.props ?? {});
|
|
54
|
-
return l.type !== i.Fragment && (h.ref = n ? x : E), i.cloneElement(l, h);
|
|
55
|
-
});
|
|
56
|
-
return t.displayName = `${e}.Slot`, t;
|
|
57
|
-
}
|
|
58
|
-
s(R, "createSlot");
|
|
59
|
-
var F = /* @__PURE__ */ R("Slot"), v = /* @__PURE__ */ Symbol.for("radix.slottable");
|
|
60
|
-
// @__NO_SIDE_EFFECTS__
|
|
61
|
-
function I(e) {
|
|
62
|
-
const t = /* @__PURE__ */ s((r) => "child" in r ? r.children(r.child) : r.children, "Slottable");
|
|
63
|
-
return t.displayName = `${e}.Slottable`, t.__radixId = v, t;
|
|
64
|
-
}
|
|
65
|
-
s(I, "createSlottable");
|
|
66
|
-
var V = /* @__PURE__ */ s((e, t) => {
|
|
67
|
-
if ("child" in e.props) {
|
|
68
|
-
const r = e.props.child;
|
|
69
|
-
return i.isValidElement(r) ? i.cloneElement(r, void 0, e.props.children(r.props.children)) : null;
|
|
70
|
-
}
|
|
71
|
-
return i.isValidElement(t) ? t : null;
|
|
72
|
-
}, "getSlottableElementFromSlottable");
|
|
73
|
-
function P(e, t) {
|
|
74
|
-
const r = { ...t };
|
|
75
|
-
for (const n in t) {
|
|
76
|
-
const o = e[n], a = t[n];
|
|
77
|
-
/^on[A-Z]/.test(n) ? o && a ? r[n] = (...l) => {
|
|
78
|
-
const c = a(...l);
|
|
79
|
-
return o(...l), c;
|
|
80
|
-
} : o && (r[n] = o) : n === "style" ? r[n] = {
|
|
81
|
-
...o,
|
|
82
|
-
...a
|
|
83
|
-
} : n === "className" && (r[n] = [o, a].filter(Boolean).join(" "));
|
|
84
|
-
}
|
|
85
|
-
return {
|
|
86
|
-
...e,
|
|
87
|
-
...r
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
s(P, "mergeProps");
|
|
91
|
-
function $(e) {
|
|
92
|
-
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
93
|
-
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);
|
|
94
|
-
}
|
|
95
|
-
s($, "getElementRef");
|
|
96
|
-
function C(e) {
|
|
97
|
-
return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === v;
|
|
98
|
-
}
|
|
99
|
-
s(C, "isSlottable");
|
|
100
|
-
var T = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
101
|
-
function S(e) {
|
|
102
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === T && "_payload" in e && j(e._payload);
|
|
103
|
-
}
|
|
104
|
-
s(S, "isLazyComponent");
|
|
105
|
-
function j(e) {
|
|
106
|
-
return typeof e == "object" && e !== null && "then" in e;
|
|
107
|
-
}
|
|
108
|
-
s(j, "isPromiseLike");
|
|
109
|
-
var W = /* @__PURE__ */ s((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), A = /* @__PURE__ */ s((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), u = i[" use ".trim().toString()];
|
|
110
|
-
export {
|
|
111
|
-
_ as a,
|
|
112
|
-
g as i,
|
|
113
|
-
R as n,
|
|
114
|
-
I as r,
|
|
115
|
-
F as t
|
|
116
|
-
};
|