@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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as j } from "./dist-
|
|
2
|
-
import { t as R } from "./dist-
|
|
3
|
-
import { n as q } from "./dist-
|
|
4
|
-
import { a as Ee, o as ke, r as Se, t as Ie } from "./dist-
|
|
1
|
+
import { i as j } from "./dist-CK8FUUUn.js";
|
|
2
|
+
import { t as R } from "./dist-CYuWoi9I.js";
|
|
3
|
+
import { n as q } from "./dist-C0OhTLFV.js";
|
|
4
|
+
import { a as Ee, o as ke, r as Se, t as Ie } from "./dist-BqDJX7m1.js";
|
|
5
5
|
import * as n from "react";
|
|
6
6
|
var ce = 1, xe = 0.9, Ce = 0.8, Re = 0.17, Y = 0.1, Q = 0.999, Ae = 0.9999, Me = 0.99, $e = /[\\\/_+.#"@\[\(\{&]/, De = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, fe = /[\s-]/g;
|
|
7
7
|
function _(t, l, r, f, u, c, d) {
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { a as y, n as ke } from "./dist-CK8FUUUn.js";
|
|
2
|
+
import { n as Ae, t as re } from "./dist-CYuWoi9I.js";
|
|
3
|
+
import { i as ce, r as g, t as Le } from "./dist-DbeY0Pzx.js";
|
|
4
|
+
import { n as te, t as Ne } from "./dist-C0OhTLFV.js";
|
|
5
|
+
import { a as Ke, i as Ge, n as Be, r as Ue, t as Ve } from "./dist-Bh7M0KDN.js";
|
|
6
|
+
import { t as je } from "./dist-uuWgjOcO.js";
|
|
7
|
+
import { n as Ye, t as Xe } from "./es2015-ChhQTsb4.js";
|
|
8
|
+
import { t as $e } from "./Combination-CnMM05mt.js";
|
|
9
|
+
import { a as ae, i as We, n as He, t as ze } from "./dist-1AtWkIZ4.js";
|
|
10
|
+
import { n as Ze, t as qe } from "./dist-rsFD9q_X.js";
|
|
11
|
+
import { n as Je, r as ue, t as Qe } from "./dist-BXv-jY2v.js";
|
|
12
|
+
import * as t from "react";
|
|
13
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
14
|
+
var en = Object.defineProperty, p = (r, e) => en(r, "name", {
|
|
15
|
+
value: e,
|
|
16
|
+
configurable: !0
|
|
17
|
+
}), $ = ["Enter", " "], nn = [
|
|
18
|
+
"ArrowDown",
|
|
19
|
+
"PageUp",
|
|
20
|
+
"Home"
|
|
21
|
+
], se = [
|
|
22
|
+
"ArrowUp",
|
|
23
|
+
"PageDown",
|
|
24
|
+
"End"
|
|
25
|
+
], tn = [...nn, ...se], Gn = {
|
|
26
|
+
ltr: [...$, "ArrowRight"],
|
|
27
|
+
rtl: [...$, "ArrowLeft"]
|
|
28
|
+
}, A = "Menu", [W, on, rn] = Ze(A), [I, ie] = ce(A, [
|
|
29
|
+
rn,
|
|
30
|
+
ae,
|
|
31
|
+
ue
|
|
32
|
+
]), z = ae(), le = ue(), [cn, L] = I(A), [an, Z] = I(A), un = /* @__PURE__ */ p((r) => {
|
|
33
|
+
const { __scopeMenu: e, open: c = !1, children: n, dir: u, onOpenChange: s, modal: a = !0 } = r, i = z(e), [M, d] = t.useState(null), m = t.useRef(!1), h = Ne(s), f = qe(u);
|
|
34
|
+
return t.useEffect(() => {
|
|
35
|
+
const C = /* @__PURE__ */ p(() => {
|
|
36
|
+
m.current = !0, document.addEventListener("pointerdown", w, {
|
|
37
|
+
capture: !0,
|
|
38
|
+
once: !0
|
|
39
|
+
}), document.addEventListener("pointermove", w, {
|
|
40
|
+
capture: !0,
|
|
41
|
+
once: !0
|
|
42
|
+
});
|
|
43
|
+
}, "handleKeyDown"), w = /* @__PURE__ */ p(() => m.current = !1, "handlePointer");
|
|
44
|
+
return document.addEventListener("keydown", C, { capture: !0 }), () => {
|
|
45
|
+
document.removeEventListener("keydown", C, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
|
|
46
|
+
};
|
|
47
|
+
}, []), t.useEffect(() => {
|
|
48
|
+
if (!c) return;
|
|
49
|
+
const C = /* @__PURE__ */ p(() => h(!1), "handleBlur");
|
|
50
|
+
return window.addEventListener("blur", C), () => window.removeEventListener("blur", C);
|
|
51
|
+
}, [c, h]), /* @__PURE__ */ l(ze, {
|
|
52
|
+
...i,
|
|
53
|
+
children: /* @__PURE__ */ l(cn, {
|
|
54
|
+
scope: e,
|
|
55
|
+
open: c,
|
|
56
|
+
onOpenChange: h,
|
|
57
|
+
content: M,
|
|
58
|
+
onContentChange: d,
|
|
59
|
+
children: /* @__PURE__ */ l(an, {
|
|
60
|
+
scope: e,
|
|
61
|
+
onClose: t.useCallback(() => h(!1), [h]),
|
|
62
|
+
isUsingKeyboardRef: m,
|
|
63
|
+
dir: f,
|
|
64
|
+
modal: a,
|
|
65
|
+
children: n
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
}, "Menu"), sn = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ p(function(e, c) {
|
|
70
|
+
const { __scopeMenu: n, ...u } = e, s = z(n);
|
|
71
|
+
return /* @__PURE__ */ l(He, {
|
|
72
|
+
...s,
|
|
73
|
+
...u,
|
|
74
|
+
ref: c
|
|
75
|
+
});
|
|
76
|
+
}, "MenuAnchor")), ln = "MenuPortal", [Bn, dn] = I(ln, { forceMount: void 0 }), R = "MenuContent", [fn, de] = I(R), pn = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ p(function(e, c) {
|
|
77
|
+
const n = dn(R, e.__scopeMenu), { forceMount: u = n.forceMount, ...s } = e, a = L(R, e.__scopeMenu), i = Z(R, e.__scopeMenu);
|
|
78
|
+
return /* @__PURE__ */ l(W.Provider, {
|
|
79
|
+
scope: e.__scopeMenu,
|
|
80
|
+
children: /* @__PURE__ */ l(je, {
|
|
81
|
+
present: u || a.open,
|
|
82
|
+
children: /* @__PURE__ */ l(W.Slot, {
|
|
83
|
+
scope: e.__scopeMenu,
|
|
84
|
+
children: i.modal ? /* @__PURE__ */ l(mn, {
|
|
85
|
+
...s,
|
|
86
|
+
ref: c
|
|
87
|
+
}) : /* @__PURE__ */ l(hn, {
|
|
88
|
+
...s,
|
|
89
|
+
ref: c
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}, "MenuContent")), mn = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ p(function(e, c) {
|
|
95
|
+
const n = L(R, e.__scopeMenu), u = t.useRef(null), s = y(c, u);
|
|
96
|
+
return t.useEffect(() => {
|
|
97
|
+
const a = u.current;
|
|
98
|
+
if (a) return Xe(a);
|
|
99
|
+
}, []), /* @__PURE__ */ l(fe, {
|
|
100
|
+
...e,
|
|
101
|
+
ref: s,
|
|
102
|
+
trapFocus: n.open,
|
|
103
|
+
disableOutsidePointerEvents: n.open,
|
|
104
|
+
disableOutsideScroll: !0,
|
|
105
|
+
onFocusOutside: g(e.onFocusOutside, (a) => a.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
106
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
107
|
+
});
|
|
108
|
+
}, "MenuRootContentModal")), hn = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ p(function(e, c) {
|
|
109
|
+
const n = L(R, e.__scopeMenu);
|
|
110
|
+
return /* @__PURE__ */ l(fe, {
|
|
111
|
+
...e,
|
|
112
|
+
ref: c,
|
|
113
|
+
trapFocus: !1,
|
|
114
|
+
disableOutsidePointerEvents: !1,
|
|
115
|
+
disableOutsideScroll: !1,
|
|
116
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
117
|
+
});
|
|
118
|
+
}, "MenuRootContentNonModal")), Mn = ke("MenuContent.ScrollLock"), fe = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ p(function(e, c) {
|
|
119
|
+
const { __scopeMenu: n, loop: u = !1, trapFocus: s, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: M, onEntryFocus: d, onEscapeKeyDown: m, onPointerDownOutside: h, onFocusOutside: f, onInteractOutside: C, onDismiss: w, disableOutsideScroll: v, ...G } = e, J = L(R, n), B = Z(R, n), Se = z(n), Re = le(n), Q = on(n), [Pe, ee] = t.useState(null), E = t.useRef(null), [Ie, Ee] = t.useState(null);
|
|
120
|
+
Ue(Ie);
|
|
121
|
+
const { nodes: U, registry: De } = Ge(), _e = !!(s || v), be = y(c, E, J.onContentChange, Ee), O = t.useRef(0), T = t.useRef(""), xe = t.useRef(0), V = t.useRef(null), ne = t.useRef("right"), j = t.useRef(0), ye = t.useMemo(() => v ? [E, ...U.map((o) => ({ current: o }))] : [], [
|
|
122
|
+
E,
|
|
123
|
+
U,
|
|
124
|
+
v
|
|
125
|
+
]), Oe = v ? $e : t.Fragment, Te = v ? {
|
|
126
|
+
as: Mn,
|
|
127
|
+
allowPinchZoom: !0,
|
|
128
|
+
shards: ye
|
|
129
|
+
} : void 0, Fe = /* @__PURE__ */ p((o) => {
|
|
130
|
+
const _ = T.current + o, P = Q().filter((S) => !S.disabled), x = document.activeElement, Y = P.find((S) => S.ref.current === x)?.textValue, F = ge(P.map((S) => S.textValue), _, Y), b = P.find((S) => S.textValue === F)?.ref.current;
|
|
131
|
+
function X(S) {
|
|
132
|
+
T.current = S, window.clearTimeout(O.current), S !== "" && (O.current = window.setTimeout(() => X(""), 1e3));
|
|
133
|
+
}
|
|
134
|
+
p(X, "updateSearch"), X(_), b && setTimeout(() => b.focus());
|
|
135
|
+
}, "handleTypeaheadSearch");
|
|
136
|
+
t.useEffect(() => () => window.clearTimeout(O.current), []), Ye();
|
|
137
|
+
const D = t.useCallback((o) => ne.current === V.current?.side && Ce(o, V.current?.area), []);
|
|
138
|
+
return /* @__PURE__ */ l(fn, {
|
|
139
|
+
scope: n,
|
|
140
|
+
searchRef: T,
|
|
141
|
+
onItemEnter: t.useCallback((o) => {
|
|
142
|
+
D(o) && o.preventDefault();
|
|
143
|
+
}, [D]),
|
|
144
|
+
onItemLeave: t.useCallback((o) => {
|
|
145
|
+
D(o) || (E.current?.focus(), ee(null));
|
|
146
|
+
}, [D]),
|
|
147
|
+
onTriggerLeave: t.useCallback((o) => {
|
|
148
|
+
D(o) && o.preventDefault();
|
|
149
|
+
}, [D]),
|
|
150
|
+
pointerGraceTimerRef: xe,
|
|
151
|
+
onPointerGraceIntentChange: t.useCallback((o) => {
|
|
152
|
+
V.current = o;
|
|
153
|
+
}, []),
|
|
154
|
+
children: /* @__PURE__ */ l(Be, {
|
|
155
|
+
registry: _e ? De : null,
|
|
156
|
+
children: /* @__PURE__ */ l(Oe, {
|
|
157
|
+
...Te,
|
|
158
|
+
children: /* @__PURE__ */ l(Ve, {
|
|
159
|
+
asChild: !0,
|
|
160
|
+
trapped: s,
|
|
161
|
+
branches: U,
|
|
162
|
+
onMountAutoFocus: g(a, (o) => {
|
|
163
|
+
o.preventDefault(), E.current?.focus({ preventScroll: !0 });
|
|
164
|
+
}),
|
|
165
|
+
onUnmountAutoFocus: i,
|
|
166
|
+
children: /* @__PURE__ */ l(Ke, {
|
|
167
|
+
asChild: !0,
|
|
168
|
+
disableOutsidePointerEvents: M,
|
|
169
|
+
onEscapeKeyDown: m,
|
|
170
|
+
onPointerDownOutside: h,
|
|
171
|
+
onFocusOutside: f,
|
|
172
|
+
onInteractOutside: C,
|
|
173
|
+
onDismiss: w,
|
|
174
|
+
children: /* @__PURE__ */ l(Qe, {
|
|
175
|
+
asChild: !0,
|
|
176
|
+
...Re,
|
|
177
|
+
dir: B.dir,
|
|
178
|
+
orientation: "vertical",
|
|
179
|
+
loop: u,
|
|
180
|
+
currentTabStopId: Pe,
|
|
181
|
+
onCurrentTabStopIdChange: ee,
|
|
182
|
+
onEntryFocus: g(d, (o) => {
|
|
183
|
+
B.isUsingKeyboardRef.current || o.preventDefault();
|
|
184
|
+
}),
|
|
185
|
+
preventScrollOnEntryFocus: !0,
|
|
186
|
+
children: /* @__PURE__ */ l(We, {
|
|
187
|
+
role: "menu",
|
|
188
|
+
"aria-orientation": "vertical",
|
|
189
|
+
"data-state": pe(J.open),
|
|
190
|
+
"data-radix-menu-content": "",
|
|
191
|
+
dir: B.dir,
|
|
192
|
+
...Se,
|
|
193
|
+
...G,
|
|
194
|
+
ref: be,
|
|
195
|
+
style: {
|
|
196
|
+
outline: "none",
|
|
197
|
+
...G.style
|
|
198
|
+
},
|
|
199
|
+
onKeyDown: g(G.onKeyDown, (o) => {
|
|
200
|
+
const _ = o.target.closest("[data-radix-menu-content]") === o.currentTarget, P = o.ctrlKey || o.altKey || o.metaKey, x = o.key.length === 1;
|
|
201
|
+
_ && (o.key === "Tab" && o.preventDefault(), !P && x && Fe(o.key));
|
|
202
|
+
const Y = E.current;
|
|
203
|
+
if (o.target !== Y || !tn.includes(o.key)) return;
|
|
204
|
+
o.preventDefault();
|
|
205
|
+
const F = Q().filter((b) => !b.disabled).map((b) => b.ref.current);
|
|
206
|
+
se.includes(o.key) && F.reverse(), he(F);
|
|
207
|
+
}),
|
|
208
|
+
onBlur: g(e.onBlur, (o) => {
|
|
209
|
+
o.currentTarget.contains(o.target) || (window.clearTimeout(O.current), T.current = "");
|
|
210
|
+
}),
|
|
211
|
+
onPointerMove: g(e.onPointerMove, k((o) => {
|
|
212
|
+
const _ = o.target, P = j.current !== o.clientX;
|
|
213
|
+
if (o.currentTarget.contains(_) && P) {
|
|
214
|
+
const x = o.clientX > j.current ? "right" : "left";
|
|
215
|
+
ne.current = x, j.current = o.clientX;
|
|
216
|
+
}
|
|
217
|
+
}))
|
|
218
|
+
})
|
|
219
|
+
})
|
|
220
|
+
})
|
|
221
|
+
})
|
|
222
|
+
})
|
|
223
|
+
})
|
|
224
|
+
});
|
|
225
|
+
}, "MenuContentImpl")), H = "MenuItem", oe = "menu.itemSelect", gn = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ p(function(e, c) {
|
|
226
|
+
const { disabled: n = !1, onSelect: u, ...s } = e, a = t.useRef(null), i = Z(H, e.__scopeMenu), M = de(H, e.__scopeMenu), d = y(c, a), m = t.useRef(!1), h = /* @__PURE__ */ p(() => {
|
|
227
|
+
const f = a.current;
|
|
228
|
+
if (!n && f) {
|
|
229
|
+
const C = new CustomEvent(oe, {
|
|
230
|
+
bubbles: !0,
|
|
231
|
+
cancelable: !0
|
|
232
|
+
});
|
|
233
|
+
f.addEventListener(oe, (w) => u?.(w), { once: !0 }), Ae(f, C), C.defaultPrevented ? m.current = !1 : i.onClose();
|
|
234
|
+
}
|
|
235
|
+
}, "handleSelect");
|
|
236
|
+
return /* @__PURE__ */ l(vn, {
|
|
237
|
+
...s,
|
|
238
|
+
ref: d,
|
|
239
|
+
disabled: n,
|
|
240
|
+
onClick: g(e.onClick, h),
|
|
241
|
+
onPointerDown: (f) => {
|
|
242
|
+
e.onPointerDown?.(f), m.current = !0;
|
|
243
|
+
},
|
|
244
|
+
onPointerUp: g(e.onPointerUp, (f) => {
|
|
245
|
+
m.current || f.currentTarget?.click();
|
|
246
|
+
}),
|
|
247
|
+
onKeyDown: g(e.onKeyDown, (f) => {
|
|
248
|
+
n || f.target !== f.currentTarget || M.searchRef.current !== "" && f.key === " " || $.includes(f.key) && (f.currentTarget.click(), f.preventDefault());
|
|
249
|
+
})
|
|
250
|
+
});
|
|
251
|
+
}, "MenuItem")), vn = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ p(function(e, c) {
|
|
252
|
+
const { __scopeMenu: n, disabled: u = !1, textValue: s, ...a } = e, i = de(H, n), M = le(n), d = t.useRef(null), m = y(c, d), [h, f] = t.useState(!1), [C, w] = t.useState("");
|
|
253
|
+
return t.useEffect(() => {
|
|
254
|
+
const v = d.current;
|
|
255
|
+
v && w((v.textContent ?? "").trim());
|
|
256
|
+
}, [a.children]), /* @__PURE__ */ l(W.ItemSlot, {
|
|
257
|
+
scope: n,
|
|
258
|
+
disabled: u,
|
|
259
|
+
textValue: s ?? C,
|
|
260
|
+
children: /* @__PURE__ */ l(Je, {
|
|
261
|
+
asChild: !0,
|
|
262
|
+
...M,
|
|
263
|
+
focusable: !u,
|
|
264
|
+
children: /* @__PURE__ */ l(re.div, {
|
|
265
|
+
role: "menuitem",
|
|
266
|
+
"data-highlighted": h ? "" : void 0,
|
|
267
|
+
"aria-disabled": u || void 0,
|
|
268
|
+
"data-disabled": u ? "" : void 0,
|
|
269
|
+
...a,
|
|
270
|
+
ref: m,
|
|
271
|
+
onPointerMove: g(e.onPointerMove, k((v) => {
|
|
272
|
+
u ? i.onItemLeave(v) : (i.onItemEnter(v), v.defaultPrevented || v.currentTarget.focus({ preventScroll: !0 }));
|
|
273
|
+
})),
|
|
274
|
+
onPointerLeave: g(e.onPointerLeave, k((v) => i.onItemLeave(v))),
|
|
275
|
+
onFocus: g(e.onFocus, () => f(!0)),
|
|
276
|
+
onBlur: g(e.onBlur, () => f(!1))
|
|
277
|
+
})
|
|
278
|
+
})
|
|
279
|
+
});
|
|
280
|
+
}, "MenuItemImpl")), [Un, Vn] = I("MenuRadioGroup", {
|
|
281
|
+
value: void 0,
|
|
282
|
+
onValueChange: /* @__PURE__ */ p(() => {
|
|
283
|
+
}, "onValueChange")
|
|
284
|
+
}), Cn = "MenuItemIndicator", [jn, Yn] = I(Cn, { checked: !1 }), wn = "MenuSub", [Xn, $n] = I(wn);
|
|
285
|
+
function pe(r) {
|
|
286
|
+
return r ? "open" : "closed";
|
|
287
|
+
}
|
|
288
|
+
p(pe, "getOpenState");
|
|
289
|
+
function me(r) {
|
|
290
|
+
return r === "indeterminate";
|
|
291
|
+
}
|
|
292
|
+
p(me, "isIndeterminate");
|
|
293
|
+
function Sn(r) {
|
|
294
|
+
return me(r) ? "indeterminate" : r ? "checked" : "unchecked";
|
|
295
|
+
}
|
|
296
|
+
p(Sn, "getCheckedState");
|
|
297
|
+
function he(r) {
|
|
298
|
+
const e = document.activeElement;
|
|
299
|
+
for (const c of r)
|
|
300
|
+
if (c === e || (c.focus(), document.activeElement !== e)) return;
|
|
301
|
+
}
|
|
302
|
+
p(he, "focusFirst");
|
|
303
|
+
function Me(r, e) {
|
|
304
|
+
return r.map((c, n) => r[(e + n) % r.length]);
|
|
305
|
+
}
|
|
306
|
+
p(Me, "wrapArray");
|
|
307
|
+
function ge(r, e, c) {
|
|
308
|
+
const n = e.length > 1 && Array.from(e).every((i) => i === e[0]) ? e[0] : e, u = c ? r.indexOf(c) : -1;
|
|
309
|
+
let s = Me(r, Math.max(u, 0));
|
|
310
|
+
n.length === 1 && (s = s.filter((i) => i !== c));
|
|
311
|
+
const a = s.find((i) => i.toLowerCase().startsWith(n.toLowerCase()));
|
|
312
|
+
return a !== c ? a : void 0;
|
|
313
|
+
}
|
|
314
|
+
p(ge, "getNextMatch");
|
|
315
|
+
function ve(r, e) {
|
|
316
|
+
const { x: c, y: n } = r;
|
|
317
|
+
let u = !1;
|
|
318
|
+
for (let s = 0, a = e.length - 1; s < e.length; a = s++) {
|
|
319
|
+
const i = e[s], M = e[a], d = i.x, m = i.y, h = M.x, f = M.y;
|
|
320
|
+
m > n != f > n && c < (h - d) * (n - m) / (f - m) + d && (u = !u);
|
|
321
|
+
}
|
|
322
|
+
return u;
|
|
323
|
+
}
|
|
324
|
+
p(ve, "isPointInPolygon");
|
|
325
|
+
function Ce(r, e) {
|
|
326
|
+
return e ? ve({
|
|
327
|
+
x: r.clientX,
|
|
328
|
+
y: r.clientY
|
|
329
|
+
}, e) : !1;
|
|
330
|
+
}
|
|
331
|
+
p(Ce, "isPointerInGraceArea");
|
|
332
|
+
function k(r) {
|
|
333
|
+
return (e) => e.pointerType === "mouse" ? r(e) : void 0;
|
|
334
|
+
}
|
|
335
|
+
p(k, "whenMouse");
|
|
336
|
+
var Rn = Object.defineProperty, N = (r, e) => Rn(r, "name", {
|
|
337
|
+
value: e,
|
|
338
|
+
configurable: !0
|
|
339
|
+
}), q = "DropdownMenu", [Pn, Wn] = ce(q, [ie]), K = ie(), [In, we] = Pn(q), Hn = /* @__PURE__ */ N((r) => {
|
|
340
|
+
const { __scopeDropdownMenu: e, children: c, dir: n, open: u, defaultOpen: s, onOpenChange: a, modal: i = !0 } = r, M = K(e), d = t.useRef(null), [m, h] = Le({
|
|
341
|
+
prop: u,
|
|
342
|
+
defaultProp: s ?? !1,
|
|
343
|
+
onChange: a,
|
|
344
|
+
caller: q
|
|
345
|
+
});
|
|
346
|
+
return /* @__PURE__ */ l(In, {
|
|
347
|
+
scope: e,
|
|
348
|
+
triggerId: te(),
|
|
349
|
+
triggerRef: d,
|
|
350
|
+
contentId: te(),
|
|
351
|
+
open: m,
|
|
352
|
+
onOpenChange: h,
|
|
353
|
+
onOpenToggle: t.useCallback(() => h((f) => !f), [h]),
|
|
354
|
+
modal: i,
|
|
355
|
+
children: /* @__PURE__ */ l(un, {
|
|
356
|
+
...M,
|
|
357
|
+
open: m,
|
|
358
|
+
onOpenChange: h,
|
|
359
|
+
dir: n,
|
|
360
|
+
modal: i,
|
|
361
|
+
children: c
|
|
362
|
+
})
|
|
363
|
+
});
|
|
364
|
+
}, "DropdownMenu"), En = "DropdownMenuTrigger", zn = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ N(function(e, c) {
|
|
365
|
+
const { __scopeDropdownMenu: n, disabled: u = !1, ...s } = e, a = we(En, n), i = K(n), M = y(c, a.triggerRef);
|
|
366
|
+
return /* @__PURE__ */ l(sn, {
|
|
367
|
+
asChild: !0,
|
|
368
|
+
...i,
|
|
369
|
+
children: /* @__PURE__ */ l(re.button, {
|
|
370
|
+
type: "button",
|
|
371
|
+
id: a.triggerId,
|
|
372
|
+
"aria-haspopup": "menu",
|
|
373
|
+
"aria-expanded": a.open,
|
|
374
|
+
"aria-controls": a.open ? a.contentId : void 0,
|
|
375
|
+
"data-state": a.open ? "open" : "closed",
|
|
376
|
+
"data-disabled": u ? "" : void 0,
|
|
377
|
+
disabled: u,
|
|
378
|
+
...s,
|
|
379
|
+
ref: M,
|
|
380
|
+
onPointerDown: g(e.onPointerDown, (d) => {
|
|
381
|
+
!u && d.button === 0 && d.ctrlKey === !1 && (a.onOpenToggle(), a.open || d.preventDefault());
|
|
382
|
+
}),
|
|
383
|
+
onKeyDown: g(e.onKeyDown, (d) => {
|
|
384
|
+
u || (["Enter", " "].includes(d.key) && a.onOpenToggle(), d.key === "ArrowDown" && a.onOpenChange(!0), [
|
|
385
|
+
"Enter",
|
|
386
|
+
" ",
|
|
387
|
+
"ArrowDown"
|
|
388
|
+
].includes(d.key) && d.preventDefault());
|
|
389
|
+
})
|
|
390
|
+
})
|
|
391
|
+
});
|
|
392
|
+
}, "DropdownMenuTrigger")), Dn = "DropdownMenuContent", Zn = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ N(function(e, c) {
|
|
393
|
+
const { __scopeDropdownMenu: n, ...u } = e, s = we(Dn, n), a = K(n), i = t.useRef(!1);
|
|
394
|
+
return /* @__PURE__ */ l(pn, {
|
|
395
|
+
id: s.contentId,
|
|
396
|
+
"aria-labelledby": s.triggerId,
|
|
397
|
+
...a,
|
|
398
|
+
...u,
|
|
399
|
+
ref: c,
|
|
400
|
+
onCloseAutoFocus: g(e.onCloseAutoFocus, (M) => {
|
|
401
|
+
i.current || s.triggerRef.current?.focus(), i.current = !1, M.preventDefault();
|
|
402
|
+
}),
|
|
403
|
+
onInteractOutside: g(e.onInteractOutside, (M) => {
|
|
404
|
+
const d = M.detail.originalEvent, m = d.button === 0 && d.ctrlKey === !0, h = d.button === 2 || m;
|
|
405
|
+
(!s.modal || h) && (i.current = !0);
|
|
406
|
+
}),
|
|
407
|
+
style: {
|
|
408
|
+
...e.style,
|
|
409
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
410
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
411
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
412
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
413
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}, "DropdownMenuContent")), qn = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ N(function(e, c) {
|
|
417
|
+
const { __scopeDropdownMenu: n, ...u } = e, s = K(n);
|
|
418
|
+
return /* @__PURE__ */ l(gn, {
|
|
419
|
+
...s,
|
|
420
|
+
...u,
|
|
421
|
+
ref: c
|
|
422
|
+
});
|
|
423
|
+
}, "DropdownMenuItem"));
|
|
424
|
+
export {
|
|
425
|
+
zn as i,
|
|
426
|
+
Zn as n,
|
|
427
|
+
qn as r,
|
|
428
|
+
Hn as t
|
|
429
|
+
};
|
|
@@ -1,71 +1,77 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as
|
|
3
|
-
import { i as
|
|
4
|
-
import { n as
|
|
5
|
-
import { n as
|
|
1
|
+
import { a as Q } from "./dist-CK8FUUUn.js";
|
|
2
|
+
import { t as N } from "./dist-CYuWoi9I.js";
|
|
3
|
+
import { i as W, n as X, r as F, t as Z } from "./dist-DbeY0Pzx.js";
|
|
4
|
+
import { n as ee, t as te } from "./dist-C0OhTLFV.js";
|
|
5
|
+
import { n as oe, t as re } from "./dist-rsFD9q_X.js";
|
|
6
6
|
import * as r from "react";
|
|
7
7
|
import { jsx as m } from "react/jsx-runtime";
|
|
8
|
-
var
|
|
8
|
+
var ne = Object.defineProperty, O = (t, e) => ne(t, "name", {
|
|
9
9
|
value: e,
|
|
10
10
|
configurable: !0
|
|
11
11
|
}), P = !1;
|
|
12
|
-
function
|
|
12
|
+
function k() {
|
|
13
13
|
const [t, e] = r.useState(P);
|
|
14
14
|
return r.useEffect(() => {
|
|
15
15
|
P || (P = !0, e(!0));
|
|
16
16
|
}, []), t;
|
|
17
17
|
}
|
|
18
|
-
O(
|
|
19
|
-
var
|
|
20
|
-
function
|
|
18
|
+
O(k, "useIsHydrated");
|
|
19
|
+
var U = r[" useSyncExternalStore ".trim().toString()];
|
|
20
|
+
function B() {
|
|
21
21
|
return () => {
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
O(
|
|
25
|
-
function
|
|
26
|
-
return
|
|
24
|
+
O(B, "subscribe");
|
|
25
|
+
function V() {
|
|
26
|
+
return U(B, () => !0, () => !1);
|
|
27
27
|
}
|
|
28
|
-
O(
|
|
29
|
-
var
|
|
28
|
+
O(V, "useIsHydratedModern");
|
|
29
|
+
var se = typeof U == "function" ? V : k, ue = Object.defineProperty, v = (t, e) => ue(t, "name", {
|
|
30
30
|
value: e,
|
|
31
31
|
configurable: !0
|
|
32
|
-
}),
|
|
32
|
+
}), D = "rovingFocusGroup.onEntryFocus", ce = {
|
|
33
33
|
bubbles: !1,
|
|
34
34
|
cancelable: !0
|
|
35
|
-
},
|
|
36
|
-
|
|
35
|
+
}, T = "RovingFocusGroup", [x, j, ae] = oe(T), [ie, Se] = W(T, [ae]), M = {
|
|
36
|
+
Vertical: "vertical",
|
|
37
|
+
Horizontal: "horizontal"
|
|
38
|
+
}, fe = {
|
|
39
|
+
LTR: "ltr",
|
|
40
|
+
RTL: "rtl"
|
|
41
|
+
}, [le, de] = ie(T), Ee = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ v(function(e, u) {
|
|
42
|
+
return /* @__PURE__ */ m(x.Provider, {
|
|
37
43
|
scope: e.__scopeRovingFocusGroup,
|
|
38
|
-
children: /* @__PURE__ */ m(
|
|
44
|
+
children: /* @__PURE__ */ m(x.Slot, {
|
|
39
45
|
scope: e.__scopeRovingFocusGroup,
|
|
40
|
-
children: /* @__PURE__ */ m(
|
|
46
|
+
children: /* @__PURE__ */ m(pe, {
|
|
41
47
|
...e,
|
|
42
48
|
ref: u
|
|
43
49
|
})
|
|
44
50
|
})
|
|
45
51
|
});
|
|
46
|
-
}, "RovingFocusGroup")),
|
|
47
|
-
const { __scopeRovingFocusGroup: n, orientation: i, loop:
|
|
52
|
+
}, "RovingFocusGroup")), pe = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ v(function(e, u) {
|
|
53
|
+
const { __scopeRovingFocusGroup: n, orientation: i, loop: w = !1, dir: _, currentTabStopId: R, defaultCurrentTabStopId: C, onCurrentTabStopIdChange: h, onEntryFocus: I, preventScrollOnEntryFocus: c = !1, ...y } = e, S = r.useRef(null), b = Q(u, S), g = re(_), [E, d] = Z({
|
|
48
54
|
prop: R,
|
|
49
55
|
defaultProp: C ?? null,
|
|
50
56
|
onChange: h,
|
|
51
|
-
caller:
|
|
52
|
-
}), [o, f] = r.useState(!1), a =
|
|
57
|
+
caller: T
|
|
58
|
+
}), [o, f] = r.useState(!1), a = te(I), l = j(n), A = r.useRef(!1), [q, L] = r.useState(0);
|
|
53
59
|
return r.useEffect(() => {
|
|
54
60
|
const s = S.current;
|
|
55
61
|
if (s)
|
|
56
|
-
return s.addEventListener(
|
|
57
|
-
}, [a]), /* @__PURE__ */ m(
|
|
62
|
+
return s.addEventListener(D, a), () => s.removeEventListener(D, a);
|
|
63
|
+
}, [a]), /* @__PURE__ */ m(le, {
|
|
58
64
|
scope: n,
|
|
59
65
|
orientation: i,
|
|
60
66
|
dir: g,
|
|
61
|
-
loop:
|
|
67
|
+
loop: w,
|
|
62
68
|
currentTabStopId: E,
|
|
63
69
|
onItemFocus: r.useCallback((s) => d(s), [d]),
|
|
64
70
|
onItemShiftTab: r.useCallback(() => f(!0), []),
|
|
65
|
-
onFocusableItemAdd: r.useCallback(() =>
|
|
66
|
-
onFocusableItemRemove: r.useCallback(() =>
|
|
67
|
-
children: /* @__PURE__ */ m(
|
|
68
|
-
tabIndex: o ||
|
|
71
|
+
onFocusableItemAdd: r.useCallback(() => L((s) => s + 1), []),
|
|
72
|
+
onFocusableItemRemove: r.useCallback(() => L((s) => s - 1), []),
|
|
73
|
+
children: /* @__PURE__ */ m(N.div, {
|
|
74
|
+
tabIndex: o || q === 0 ? -1 : 0,
|
|
69
75
|
"data-orientation": i,
|
|
70
76
|
...y,
|
|
71
77
|
ref: b,
|
|
@@ -77,10 +83,10 @@ var ne = typeof k == "function" ? B : N, se = Object.defineProperty, v = (t, e)
|
|
|
77
83
|
A.current = !0;
|
|
78
84
|
}),
|
|
79
85
|
onFocus: F(e.onFocus, (s) => {
|
|
80
|
-
const
|
|
81
|
-
if (s.target === s.currentTarget &&
|
|
82
|
-
const
|
|
83
|
-
if (s.currentTarget.dispatchEvent(
|
|
86
|
+
const J = !A.current;
|
|
87
|
+
if (s.target === s.currentTarget && J && !o) {
|
|
88
|
+
const K = new CustomEvent(D, ce);
|
|
89
|
+
if (s.currentTarget.dispatchEvent(K), !K.defaultPrevented) {
|
|
84
90
|
const G = l().filter((p) => p.focusable);
|
|
85
91
|
H([
|
|
86
92
|
G.find((p) => p.active),
|
|
@@ -94,9 +100,9 @@ var ne = typeof k == "function" ? B : N, se = Object.defineProperty, v = (t, e)
|
|
|
94
100
|
onBlur: F(e.onBlur, () => f(!1))
|
|
95
101
|
})
|
|
96
102
|
});
|
|
97
|
-
}, "RovingFocusGroupImpl")),
|
|
98
|
-
const { __scopeRovingFocusGroup: n, focusable: i = !0, active:
|
|
99
|
-
return
|
|
103
|
+
}, "RovingFocusGroupImpl")), me = "RovingFocusGroupItem", Te = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ v(function(e, u) {
|
|
104
|
+
const { __scopeRovingFocusGroup: n, focusable: i = !0, active: w = !1, tabStopId: _, children: R, ...C } = e, h = ee(), I = _ || h, c = de(me, n), y = c.currentTabStopId === I, S = j(n), { onFocusableItemAdd: b, onFocusableItemRemove: g, currentTabStopId: E } = c, d = se();
|
|
105
|
+
return X(() => {
|
|
100
106
|
if (!(!d || !i))
|
|
101
107
|
return b(), () => g();
|
|
102
108
|
}, [
|
|
@@ -112,12 +118,12 @@ var ne = typeof k == "function" ? B : N, se = Object.defineProperty, v = (t, e)
|
|
|
112
118
|
i,
|
|
113
119
|
b,
|
|
114
120
|
g
|
|
115
|
-
]), /* @__PURE__ */ m(
|
|
121
|
+
]), /* @__PURE__ */ m(x.ItemSlot, {
|
|
116
122
|
scope: n,
|
|
117
123
|
id: I,
|
|
118
124
|
focusable: i,
|
|
119
|
-
active:
|
|
120
|
-
children: /* @__PURE__ */ m(
|
|
125
|
+
active: w,
|
|
126
|
+
children: /* @__PURE__ */ m(N.span, {
|
|
121
127
|
tabIndex: y ? 0 : -1,
|
|
122
128
|
"data-orientation": c.orientation,
|
|
123
129
|
...C,
|
|
@@ -132,7 +138,7 @@ var ne = typeof k == "function" ? B : N, se = Object.defineProperty, v = (t, e)
|
|
|
132
138
|
return;
|
|
133
139
|
}
|
|
134
140
|
if (o.target !== o.currentTarget) return;
|
|
135
|
-
const f =
|
|
141
|
+
const f = Y(o, c.orientation, c.dir);
|
|
136
142
|
if (f !== void 0) {
|
|
137
143
|
if (o.metaKey || o.ctrlKey || o.altKey || o.shiftKey) return;
|
|
138
144
|
o.preventDefault();
|
|
@@ -141,7 +147,7 @@ var ne = typeof k == "function" ? B : N, se = Object.defineProperty, v = (t, e)
|
|
|
141
147
|
else if (f === "prev" || f === "next") {
|
|
142
148
|
f === "prev" && a.reverse();
|
|
143
149
|
const l = a.indexOf(o.currentTarget);
|
|
144
|
-
a = c.loop ?
|
|
150
|
+
a = c.loop ? $(a, l + 1) : a.slice(l + 1);
|
|
145
151
|
}
|
|
146
152
|
setTimeout(() => H(a));
|
|
147
153
|
}
|
|
@@ -162,29 +168,28 @@ var ne = typeof k == "function" ? B : N, se = Object.defineProperty, v = (t, e)
|
|
|
162
168
|
PageDown: "last",
|
|
163
169
|
End: "last"
|
|
164
170
|
};
|
|
165
|
-
function
|
|
166
|
-
return e !==
|
|
171
|
+
function z(t, e) {
|
|
172
|
+
return e !== fe.RTL ? t : t === "ArrowLeft" ? "ArrowRight" : t === "ArrowRight" ? "ArrowLeft" : t;
|
|
167
173
|
}
|
|
168
|
-
v(
|
|
169
|
-
function
|
|
170
|
-
const n =
|
|
171
|
-
if (!(e ===
|
|
174
|
+
v(z, "getDirectionAwareKey");
|
|
175
|
+
function Y(t, e, u) {
|
|
176
|
+
const n = z(t.key, u);
|
|
177
|
+
if (!(e === M.Vertical && ["ArrowLeft", "ArrowRight"].includes(n)) && !(e === M.Horizontal && ["ArrowUp", "ArrowDown"].includes(n)))
|
|
172
178
|
return ve[n];
|
|
173
179
|
}
|
|
174
|
-
v(
|
|
180
|
+
v(Y, "getFocusIntent");
|
|
175
181
|
function H(t, e = !1) {
|
|
176
182
|
const u = document.activeElement;
|
|
177
183
|
for (const n of t)
|
|
178
184
|
if (n === u || (n.focus({ preventScroll: e }), document.activeElement !== u)) return;
|
|
179
185
|
}
|
|
180
186
|
v(H, "focusFirst");
|
|
181
|
-
function
|
|
187
|
+
function $(t, e) {
|
|
182
188
|
return t.map((u, n) => t[(e + n) % t.length]);
|
|
183
189
|
}
|
|
184
|
-
v(
|
|
185
|
-
var Ee = le, we = me;
|
|
190
|
+
v($, "wrapArray");
|
|
186
191
|
export {
|
|
187
|
-
|
|
192
|
+
Te as n,
|
|
188
193
|
Se as r,
|
|
189
|
-
|
|
194
|
+
Ee as t
|
|
190
195
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as s } from "./dist-
|
|
2
|
-
import { n as c } from "./dist-
|
|
1
|
+
import { t as s } from "./dist-CYuWoi9I.js";
|
|
2
|
+
import { n as c } from "./dist-DbeY0Pzx.js";
|
|
3
3
|
import * as e from "react";
|
|
4
4
|
import * as u from "react-dom";
|
|
5
5
|
import { jsx as l } from "react/jsx-runtime";
|