@konstructio/ui 0.1.2-alpha.78 → 0.1.2-alpha.79
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-Cx9wU01w.js +37 -0
- package/dist/AlertDialogTrigger-C-NMEoDd.js +146 -0
- package/dist/Breadcrumb-C95aOsYk.js +77 -0
- package/dist/CalendarPanel.css +1 -1
- package/dist/Checkbox-Cn0UWlk8.js +239 -0
- package/dist/Combination-DUTBK_qM.js +486 -0
- package/dist/CommandInput-BKv-EZ7T.js +76 -0
- package/dist/Counter-DtQu_T-D.js +191 -0
- package/dist/DayPicker-CNWQ1Oyd.js +2884 -0
- package/dist/DropdownButton-B2XkEqPt.js +92 -0
- package/dist/FlagSelectorList-C17nmEBM.js +597 -0
- package/dist/ImageUpload-BzXjGZ2w.js +181 -0
- package/dist/Input-GBMxM3Z7.js +188 -0
- package/dist/Loading-DKqxR-oV.js +16 -0
- package/dist/Modal-DbTe8PVX.js +76 -0
- package/dist/Spinner-CyuXAaC8.js +41 -0
- package/dist/StepIndicatorContent-D5z1Ziqg.js +30 -0
- package/dist/Switch-DjbC0A8y.js +136 -0
- package/dist/Toast-C3XjAvtC.js +478 -0
- package/dist/Wrapper-BWSOaT1y.js +1056 -0
- package/dist/Wrapper-CjUokv72.js +110 -0
- package/dist/Wrapper-DEJ-hyar.js +161 -0
- package/dist/assets/icons/components/Accounts.js +21 -35
- package/dist/assets/icons/components/AddChart.js +17 -25
- package/dist/assets/icons/components/AlertOutline.js +18 -26
- package/dist/assets/icons/components/AppRepo.js +14 -22
- package/dist/assets/icons/components/Apps.js +14 -22
- package/dist/assets/icons/components/Archives.js +14 -22
- package/dist/assets/icons/components/ArrowDown.js +14 -22
- package/dist/assets/icons/components/ArrowLeft.js +17 -25
- package/dist/assets/icons/components/ArrowRight.js +18 -26
- package/dist/assets/icons/components/ArrowUp.js +18 -26
- package/dist/assets/icons/components/BarChart.js +24 -32
- package/dist/assets/icons/components/BookOpen.js +18 -26
- package/dist/assets/icons/components/CalendarMonth.js +17 -25
- package/dist/assets/icons/components/Check.js +17 -25
- package/dist/assets/icons/components/CheckCircleFilled.js +25 -26
- package/dist/assets/icons/components/CheckCircleOutline.js +14 -22
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +14 -20
- package/dist/assets/icons/components/ClockAlert.js +17 -25
- package/dist/assets/icons/components/ClockOutline.js +17 -25
- package/dist/assets/icons/components/Close.js +17 -25
- package/dist/assets/icons/components/Cloud.js +14 -19
- package/dist/assets/icons/components/CloudLockOutline.js +17 -25
- package/dist/assets/icons/components/Clusters.js +27 -41
- package/dist/assets/icons/components/CogOutline.js +17 -25
- package/dist/assets/icons/components/Copy.js +17 -25
- package/dist/assets/icons/components/Cpu.js +22 -36
- package/dist/assets/icons/components/Cube.js +14 -22
- package/dist/assets/icons/components/Datacenter.js +14 -22
- package/dist/assets/icons/components/Delete.js +18 -26
- package/dist/assets/icons/components/DollarSign.js +20 -28
- package/dist/assets/icons/components/Download.js +17 -25
- package/dist/assets/icons/components/Edit.js +17 -25
- package/dist/assets/icons/components/Ellipses.js +17 -25
- package/dist/assets/icons/components/Environments.js +19 -27
- package/dist/assets/icons/components/Error.js +17 -25
- package/dist/assets/icons/components/ErrorOutline.js +17 -25
- package/dist/assets/icons/components/Exclamation.js +21 -26
- package/dist/assets/icons/components/Git.js +17 -25
- package/dist/assets/icons/components/GitOpsCatalog.js +21 -35
- package/dist/assets/icons/components/GridView.js +11 -16
- package/dist/assets/icons/components/Help.js +24 -23
- package/dist/assets/icons/components/HideOutline.js +18 -32
- package/dist/assets/icons/components/Home.js +17 -25
- package/dist/assets/icons/components/Home2.js +20 -25
- package/dist/assets/icons/components/Id.js +14 -22
- package/dist/assets/icons/components/InfoCircle.js +28 -29
- package/dist/assets/icons/components/InformationOutline.js +14 -22
- package/dist/assets/icons/components/InvoiceList.js +17 -25
- package/dist/assets/icons/components/Key.js +17 -25
- package/dist/assets/icons/components/LightBulb.js +24 -38
- package/dist/assets/icons/components/Loader.js +15 -23
- package/dist/assets/icons/components/Network.js +14 -22
- package/dist/assets/icons/components/PagesStack.js +24 -23
- package/dist/assets/icons/components/Pageview.js +17 -25
- package/dist/assets/icons/components/People.js +17 -25
- package/dist/assets/icons/components/PhotoLibrary.js +17 -25
- package/dist/assets/icons/components/Pipeline.js +19 -27
- package/dist/assets/icons/components/Plus.js +17 -25
- package/dist/assets/icons/components/PowerSettings.js +15 -23
- package/dist/assets/icons/components/Preview.js +14 -22
- package/dist/assets/icons/components/ReceiptLong.js +11 -16
- package/dist/assets/icons/components/Refresh.js +14 -22
- package/dist/assets/icons/components/ScatterPlot.js +14 -19
- package/dist/assets/icons/components/Search.js +26 -26
- package/dist/assets/icons/components/Server.js +18 -26
- package/dist/assets/icons/components/Start.js +18 -26
- package/dist/assets/icons/components/TabNew.js +31 -45
- package/dist/assets/icons/components/Teams.js +17 -25
- package/dist/assets/icons/components/Upload.js +17 -25
- package/dist/assets/icons/components/Warning.js +17 -25
- package/dist/assets/icons/components/WarningTriangle.js +17 -25
- package/dist/assets/icons/components/X.js +17 -25
- package/dist/assets/icons/components/index.js +82 -82
- package/dist/assets/icons/index.js +88 -88
- package/dist/chevron-down-DgssmYWu.js +8 -0
- package/dist/chevron-left-DRJXef9g.js +8 -0
- package/dist/chevron-right-BooB_b7g.js +8 -0
- package/dist/chevron-up-DuS9MUNr.js +8 -0
- package/dist/chunk-D1xtDmiO.js +31 -0
- package/dist/{clsx-OuTLNxxd.js → clsx-kDhLfUq2.js} +1 -1
- package/dist/components/Alert/Alert.js +53 -57
- package/dist/components/Alert/Alert.variants.js +90 -105
- package/dist/components/AlertDialog/AlertDialog.js +66 -124
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -6
- package/dist/components/AlertDialog/components/index.js +2 -2
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +12 -7
- package/dist/components/Autocomplete/Autocomplete.js +55 -79
- package/dist/components/Autocomplete/Autocomplete.variants.js +7 -3
- package/dist/components/Autocomplete/components/List/List.js +30 -42
- package/dist/components/Autocomplete/components/List/List.variants.js +7 -7
- package/dist/components/Autocomplete/components/index.js +2 -2
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +30 -61
- package/dist/components/Autocomplete/hooks/useNavigationList.js +42 -54
- package/dist/components/Badge/Badge.js +59 -74
- package/dist/components/Badge/Badge.variants.js +89 -99
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -89
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +9 -5
- package/dist/components/Breadcrumb/components/Item/Item.js +31 -45
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +52 -65
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
- package/dist/components/Button/Button.js +21 -39
- package/dist/components/Button/Button.variants.js +314 -291
- package/dist/components/ButtonGroup/ButtonGroup.js +80 -134
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +20 -27
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +55 -111
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +88 -101
- package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +20 -42
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +13 -32
- package/dist/components/ButtonGroup/components/index.js +6 -6
- package/dist/components/ButtonGroup/hooks/index.js +2 -2
- package/dist/components/ButtonGroup/hooks/useButtonGroup.js +27 -40
- package/dist/components/Card/Card.js +20 -32
- package/dist/components/Card/Card.variants.js +40 -39
- package/dist/components/Checkbox/Checkbox.js +2 -364
- package/dist/components/Checkbox/Checkbox.variants.js +54 -64
- package/dist/components/Command/Command.js +27 -36
- package/dist/components/Command/Command.variants.js +3 -3
- package/dist/components/Command/components/Command.js +13 -5
- package/dist/components/Command/components/CommandEmpty.js +10 -13
- package/dist/components/Command/components/CommandGroup.js +8 -14
- package/dist/components/Command/components/CommandInput.js +2 -82
- package/dist/components/Command/components/CommandItem.js +16 -25
- package/dist/components/Command/components/CommandList.js +9 -12
- package/dist/components/Command/components/CommandSeparator.js +9 -12
- package/dist/components/Command/components/CommandShortcut.js +8 -17
- package/dist/components/Command/components/DialogContent.js +19 -28
- package/dist/components/Command/components/DialogOverlay.js +11 -17
- package/dist/components/Command/components/index.js +16 -16
- package/dist/components/Command/contexts/Command.context.js +1 -1
- package/dist/components/Command/contexts/Command.provider.js +15 -21
- package/dist/components/Command/contexts/index.js +2 -2
- package/dist/components/Counter/Counter.js +3 -209
- package/dist/components/Counter/Counter.variants.js +35 -48
- package/dist/components/DateRangePicker/DateRangePicker.js +68 -153
- package/dist/components/DateRangePicker/DateRangePicker.variants.js +5 -5
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +64 -104
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +17 -17
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +5 -17
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +34 -56
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +181 -304
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +17 -36
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +79 -127
- package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +6 -6
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +2 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +10 -147
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +19 -19
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +98 -96
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +75 -60
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +8 -8
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +54 -97
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +13 -8
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +40 -87
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +41 -88
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +2 -2
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +2 -2
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +151 -156
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +37 -61
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +2 -2
- package/dist/components/DateRangePicker/components/index.js +6 -6
- package/dist/components/DateRangePicker/constants/index.js +2 -2
- package/dist/components/DateRangePicker/constants/presets.js +21 -6
- package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +3 -3
- package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +4 -7
- package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +113 -170
- package/dist/components/DateRangePicker/contexts/index.js +6 -6
- package/dist/components/DateRangePicker/utils/disabled-dates.js +25 -45
- package/dist/components/DateRangePicker/utils/index.js +20 -20
- package/dist/components/DateRangePicker/utils/presets.js +6 -8
- package/dist/components/DateRangePicker/utils/validation.js +48 -60
- package/dist/components/Datepicker/DatePicker.js +45 -133
- package/dist/components/Datepicker/DatePicker.variants.js +3 -3
- package/dist/components/Divider/Divider.js +6 -6
- package/dist/components/Divider/Divider.variants.js +9 -11
- package/dist/components/Drawer/Drawer.js +67 -125
- package/dist/components/Drawer/Drawer.variants.js +59 -73
- package/dist/components/Drawer/components/Body/Body.js +8 -17
- package/dist/components/Drawer/components/Body/index.js +2 -2
- package/dist/components/Drawer/components/Footer/Footer.js +10 -21
- package/dist/components/Drawer/components/Footer/index.js +2 -2
- package/dist/components/Drawer/components/Header/Header.js +11 -22
- package/dist/components/Drawer/components/Header/index.js +2 -2
- package/dist/components/Drawer/components/index.js +6 -6
- package/dist/components/Drawer/constants/index.js +1 -1
- package/dist/components/Drawer/contexts/Drawer.context.js +4 -4
- package/dist/components/Drawer/contexts/index.js +3 -3
- package/dist/components/Drawer/hooks/index.js +2 -2
- package/dist/components/Drawer/hooks/useDrawer.js +32 -36
- package/dist/components/DropdownButton/DropdownButton.js +2 -133
- package/dist/components/Filter/Filter.js +23 -20
- package/dist/components/Filter/Filter.variants.js +9 -5
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +48 -82
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -143
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +40 -71
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +50 -119
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +35 -57
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +53 -116
- package/dist/components/Filter/components/ResetButton/ResetButton.js +19 -30
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +72 -135
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +33 -54
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +72 -143
- package/dist/components/Filter/components/index.js +6 -6
- package/dist/components/Filter/contexts/filter.context.js +2 -4
- package/dist/components/Filter/contexts/filter.hook.js +5 -6
- package/dist/components/Filter/contexts/filter.provider.js +6 -3
- package/dist/components/Filter/contexts/index.js +4 -4
- package/dist/components/Filter/events/index.js +4 -8
- package/dist/components/Filter/utils/index.js +2 -2435
- package/dist/components/ImageUpload/ImageUpload.js +2 -221
- package/dist/components/ImageUpload/ImageUpload.variants.js +78 -95
- package/dist/components/Input/Input.js +2 -286
- package/dist/components/Input/Input.variants.js +47 -54
- package/dist/components/LineChart/LineChart.js +103 -133
- package/dist/components/Loading/Loading.js +2 -18
- package/dist/components/Loading/Loading.variants.js +2 -2
- package/dist/components/Modal/Modal.js +3 -8
- package/dist/components/Modal/components/Body/Body.js +8 -5
- package/dist/components/Modal/components/Footer/Footer.js +8 -11
- package/dist/components/Modal/components/Header/Header.js +8 -11
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -10
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +2 -2
- package/dist/components/Modal/components/index.js +8 -8
- package/dist/components/Modal/contexts/Modal.context.js +2 -4
- package/dist/components/Modal/contexts/Modal.provider.js +17 -20
- package/dist/components/Modal/contexts/index.js +2 -2
- package/dist/components/Modal/hooks/useModal.js +10 -10
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +2 -32
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +6 -6
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +16 -24
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +26 -35
- package/dist/components/MultiSelectDropdown/components/List/List.js +2 -28
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +3 -3
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +2 -124
- package/dist/components/MultiSelectDropdown/components/index.js +4 -5
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -4
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +3 -6
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +100 -131
- package/dist/components/MultiSelectDropdown/contexts/index.js +2 -2
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +12 -21
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +11 -5
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +31 -38
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +15 -32
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +2 -728
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +22 -54
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +37 -30
- package/dist/components/PhoneNumberInput/components/Wrapper.js +2 -650
- package/dist/components/PhoneNumberInput/components/index.js +4 -4
- package/dist/components/PhoneNumberInput/contexts/index.js +3 -3
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +5 -8
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -6064
- package/dist/components/PhoneNumberInput/utils/index.js +7 -8
- package/dist/components/PieChart/PieChart.js +40 -66
- package/dist/components/ProgressBar/ProgressBar.js +27 -36
- package/dist/components/ProgressBar/ProgressBar.variants.js +19 -26
- package/dist/components/Radio/Radio.js +51 -95
- package/dist/components/Radio/Radio.variants.js +82 -88
- package/dist/components/RadioCard/RadioCard.js +14 -31
- package/dist/components/RadioCard/RadioCard.variants.js +7 -2
- package/dist/components/RadioCardGroup/RadioCardGroup.js +24 -42
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +8 -12
- package/dist/components/RadioGroup/RadioGroup.js +26 -48
- package/dist/components/RadioGroup/RadioGroup.variants.js +8 -12
- package/dist/components/Range/Range.js +47 -59
- package/dist/components/Range/Range.variants.js +35 -44
- package/dist/components/Select/Select.js +35 -68
- package/dist/components/Select/Select.variants.js +49 -48
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +2 -9
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +3 -24
- package/dist/components/Select/components/EmptyList.js +2 -2
- package/dist/components/Select/components/List/List.js +126 -180
- package/dist/components/Select/components/List/List.variants.js +3 -3
- package/dist/components/Select/components/ListItem/ListItem.js +54 -107
- package/dist/components/Select/components/ListItem/ListItem.variants.js +3 -3
- package/dist/components/Select/components/Wrapper.js +2 -248
- package/dist/components/Select/components/index.js +8 -8
- package/dist/components/Select/constants/index.js +4 -4
- package/dist/components/Select/constants/list.js +2 -2
- package/dist/components/Select/constants/pagination.js +2 -2
- package/dist/components/Select/contexts/index.js +4 -4
- package/dist/components/Select/contexts/select.context.js +2 -2
- package/dist/components/Select/contexts/select.hook.js +6 -7
- package/dist/components/Select/contexts/select.provider.js +41 -51
- package/dist/components/Select/hooks/useNavigationList.js +28 -37
- package/dist/components/Select/hooks/useSelect.js +36 -72
- package/dist/components/Sidebar/Sidebar.js +22 -21
- package/dist/components/Sidebar/Sidebar.variants.js +4 -4
- package/dist/components/Sidebar/components/Footer/Footer.js +9 -6
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +2 -2
- package/dist/components/Sidebar/components/Logo/Logo.js +7 -4
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +2 -2
- package/dist/components/Sidebar/components/Navigation/Navigation.js +13 -13
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +8 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +12 -22
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +6 -2
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +12 -23
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +33 -40
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +4 -4
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +2 -2
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -6
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +3 -3
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +31 -77
- package/dist/components/Sidebar/components/index.js +14 -14
- package/dist/components/Slider/Slider.js +38 -56
- package/dist/components/Slider/Slider.variants.js +36 -45
- package/dist/components/Spinner/Spinner.js +2 -55
- package/dist/components/Spinner/Spinner.variants.js +37 -51
- package/dist/components/Stepper/Stepper.js +44 -71
- package/dist/components/Stepper/Stepper.variants.js +270 -229
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +119 -196
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +14 -26
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +2 -21
- package/dist/components/Stepper/components/StepItem/StepItem.js +4 -4
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +69 -111
- package/dist/components/Stepper/constants/index.js +1 -1
- package/dist/components/Stepper/hooks/index.js +2 -2
- package/dist/components/Stepper/hooks/useStepItemLogic.js +15 -18
- package/dist/components/Stepper/utils/index.js +4 -5
- package/dist/components/Switch/Switch.js +2 -228
- package/dist/components/Switch/Switch.variants.js +2 -2
- package/dist/components/Table/Table.js +17 -24
- package/dist/components/Table/Table.variants.js +18 -25
- package/dist/components/Table/components/Body.js +8 -15
- package/dist/components/Table/components/Filter.js +13 -7
- package/dist/components/Table/components/Head.js +9 -16
- package/dist/components/Table/components/Row.js +14 -26
- package/dist/components/Table/components/index.js +6 -6
- package/dist/components/Tabs/Tabs.js +20 -20
- package/dist/components/Tabs/Tabs.variants.js +55 -72
- package/dist/components/Tabs/components/Content.js +12 -12
- package/dist/components/Tabs/components/List.js +16 -18
- package/dist/components/Tabs/components/Trigger.js +13 -15
- package/dist/components/Tabs/components/index.js +4 -4
- package/dist/components/Tag/Tag.js +25 -16
- package/dist/components/Tag/Tag.variants.js +32 -39
- package/dist/components/TagSelect/TagSelect.js +13 -7
- package/dist/components/TagSelect/TagSelect.variants.js +6 -6
- package/dist/components/TagSelect/components/Item/Item.js +13 -16
- package/dist/components/TagSelect/components/Item/Item.variants.js +21 -30
- package/dist/components/TagSelect/components/List/List.js +15 -7
- package/dist/components/TagSelect/components/List/List.variants.js +3 -3
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -85
- package/dist/components/TagSelect/components/index.js +6 -6
- package/dist/components/TagSelect/contexts/TagSelect.context.js +1 -1
- package/dist/components/TagSelect/contexts/TagSelect.hook.js +6 -7
- package/dist/components/TagSelect/contexts/TagSelect.provider.js +43 -59
- package/dist/components/TagSelect/contexts/index.js +4 -4
- package/dist/components/TagSelect/hooks/useTagSelect.js +13 -22
- package/dist/components/TextArea/TextArea.js +26 -33
- package/dist/components/TextArea/TextArea.variants.js +3 -3
- package/dist/components/TimePicker/TimePicker.js +12 -10
- package/dist/components/TimePicker/TimePicker.variants.js +2 -2
- package/dist/components/TimePicker/components/HoursList/HoursList.js +84 -110
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +53 -88
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +56 -82
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +128 -221
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +34 -71
- package/dist/components/TimePicker/components/index.js +2 -2
- package/dist/components/TimePicker/contexts/index.js +6 -6
- package/dist/components/TimePicker/contexts/time-picker.context.js +1 -1
- package/dist/components/TimePicker/contexts/time-picker.hook.js +4 -7
- package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -48
- package/dist/components/TimePicker/utils/index.js +17 -19
- package/dist/components/Toast/Toast.js +3 -511
- package/dist/components/Toast/Toast.variants.js +32 -35
- package/dist/components/Tooltip/Tooltip.js +15 -34
- package/dist/components/Typography/Typography.js +16 -24
- package/dist/components/Typography/Typography.variants.js +72 -62
- package/dist/components/VirtualizedTable/VirtualizedTable.js +89 -159
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +2 -2
- package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -22
- package/dist/components/VirtualizedTable/assets/chevron-up.js +13 -22
- package/dist/components/VirtualizedTable/assets/index.js +4 -4
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +34 -115
- package/dist/components/VirtualizedTable/components/Body/Body.js +49 -111
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +91 -157
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -30
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +27 -47
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +99 -164
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +41 -56
- package/dist/components/VirtualizedTable/components/Header/Header.js +36 -98
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +28 -62
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +38 -101
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +29 -49
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +9 -23
- package/dist/components/VirtualizedTable/components/index.js +10 -10
- package/dist/components/VirtualizedTable/constants/index.js +3 -3
- package/dist/components/VirtualizedTable/constants/pagination.js +6 -1
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +3 -3
- package/dist/components/VirtualizedTable/contexts/table.hook.js +7 -8
- package/dist/components/VirtualizedTable/contexts/table.provider.js +2 -268
- package/dist/components/VirtualizedTable/contexts/table.types.d.ts +1 -1
- package/dist/components/VirtualizedTable/events/index.js +19 -24
- package/dist/components/index.js +140 -140
- package/dist/components-DNFycJGm.js +120 -0
- package/dist/constants-D96yCePL.js +31 -0
- package/dist/contexts/index.js +6 -6
- package/dist/contexts/theme.context.js +2 -2
- package/dist/contexts/theme.hook.js +2 -2
- package/dist/contexts/theme.provider.js +2 -84
- package/dist/createLucideIcon-BVGkzDZC.js +42 -0
- package/dist/debounce-CzFlgg9h.js +86 -0
- package/dist/dist-B5SlrgYz.js +263 -0
- package/dist/{index-BZPx6jYI.js → dist-BL-H4bEw2.js} +5 -2
- package/dist/dist-BL8l9uRy.js +361 -0
- package/dist/{index-DLcqcWxM.js → dist-ByyYBtbL.js} +9 -11
- package/dist/dist-C8r5DW7s.js +10 -0
- package/dist/dist-CBnErrr1.js +58 -0
- package/dist/dist-COY3FRYC.js +480 -0
- package/dist/dist-CSP6X06u.js +1701 -0
- package/dist/dist-DNSmoWJp.js +469 -0
- package/dist/dist-DRmqW28Z2.js +7479 -0
- package/dist/dist-DXJSck4j.js +74 -0
- package/dist/dist-DXXHfL7M.js +132 -0
- package/dist/dist-DZNdbzbm.js +120 -0
- package/dist/dist-DZcOdXgW.js +13 -0
- package/dist/dist-DeVdyMHW2.js +31 -0
- package/dist/{index-3fEdeexs.js → dist-DpqiA4Yn.js} +25 -28
- package/dist/dist-DstQl8xY.js +10 -0
- package/dist/dist-DtEbXv47.js +34 -0
- package/dist/dist-uVUx9i0a.js +223 -0
- package/dist/ellipsis-vertical-My0S9QY5.js +24 -0
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/useToggle.js +5 -8
- package/dist/icons.js +88 -88
- package/dist/index.js +150 -149
- package/dist/isObject--aYwGuhx.js +62 -0
- package/dist/libphonenumber-7uXgv7U8.js +81977 -0
- package/dist/package.json +18 -18
- package/dist/phone-number.provider-B5TfHi8y.js +6646 -0
- package/dist/prop-types-DTnODft1.js +547 -0
- package/dist/proxy-uLtw-ZML.js +4690 -0
- package/dist/style.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/{index-CSWGJT-v.js → table.provider-4OQNqxH3.js} +805 -674
- package/dist/theme.provider-BgxXUOMP.js +74 -0
- package/dist/useBreadcrumb-BBm5lX0U.js +1263 -0
- package/dist/utils/index.js +5 -2922
- package/dist/utils-CQSRNcoF.js +2022 -0
- package/dist/utils-DHuiYnx1.js +1689 -0
- package/dist/x-BwIi6Wii.js +63 -0
- package/dist/x-a0ouxoIM.js +11 -0
- package/package.json +18 -18
- package/dist/AdditionalOptions-C2FDVZhu.js +0 -45
- package/dist/Combination-BtmnusWq.js +0 -480
- package/dist/DayPicker-CaeUXRCF.js +0 -2798
- package/dist/Modal-DAWdufZ_.js +0 -120
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/chevron-down-BBFYYzZq.js +0 -5
- package/dist/chevron-left-BHBf-gQY.js +0 -5
- package/dist/chevron-right-DvXGOiS_.js +0 -5
- package/dist/chevron-up-DEfvgPCw.js +0 -54
- package/dist/chevron-up-IlDPxR7j.js +0 -5
- package/dist/createLucideIcon-CP-mMPfa.js +0 -75
- package/dist/debounce-DJveWHr_.js +0 -114
- package/dist/ellipsis-vertical-Cl3yNtOy.js +0 -9
- package/dist/index--l0zux8V.js +0 -200
- package/dist/index-0ioNhtNM.js +0 -10
- package/dist/index-BKMaItIC.js +0 -13
- package/dist/index-BKjcReYh.js +0 -55
- package/dist/index-BOE_3f_Z.js +0 -646
- package/dist/index-BRXMsxSL.js +0 -27
- package/dist/index-BdMNhZnh.js +0 -9
- package/dist/index-BmVmDQGH.js +0 -662
- package/dist/index-BvEpLnOv.js +0 -144
- package/dist/index-BvoZGpli.js +0 -60
- package/dist/index-C7zAY3xv.js +0 -139
- package/dist/index-CJnS4BVW.js +0 -93
- package/dist/index-Cmf-IG4l.js +0 -322
- package/dist/index-CrCTywU1.js +0 -314
- package/dist/index-D29mdTf5.js +0 -34
- package/dist/index-DWyM654o.js +0 -478
- package/dist/index-Jr0cra7i.js +0 -431
- package/dist/index-mPinF0Ho.js +0 -1885
- package/dist/index-qDQP8rW4.js +0 -7281
- package/dist/isObject-9XxUefZH.js +0 -97
- package/dist/libphonenumber-aZ-2KWIf.js +0 -11581
- package/dist/proxy-BGrSEZuV.js +0 -5046
- package/dist/useBreadcrumb-C_Wb2cXs.js +0 -1435
- package/dist/x-B9bYxG31.js +0 -8
- package/dist/x-Eoa9FJjA.js +0 -62
package/dist/index-Cmf-IG4l.js
DELETED
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import * as s from "react";
|
|
2
|
-
import { P as C, c as I, b as K, a as L } from "./index--l0zux8V.js";
|
|
3
|
-
import { c as ce } from "./index-CJnS4BVW.js";
|
|
4
|
-
import { u as ie } from "./index-DLcqcWxM.js";
|
|
5
|
-
import { u as O } from "./index-BKMaItIC.js";
|
|
6
|
-
import { u as ue } from "./index-0ioNhtNM.js";
|
|
7
|
-
import { u as k } from "./index-BdMNhZnh.js";
|
|
8
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
9
|
-
import { P as le } from "./index-3fEdeexs.js";
|
|
10
|
-
var N = "rovingFocusGroup.onEntryFocus", de = { bubbles: !1, cancelable: !0 }, h = "RovingFocusGroup", [D, V, fe] = ce(h), [ve, U] = K(
|
|
11
|
-
h,
|
|
12
|
-
[fe]
|
|
13
|
-
), [me, pe] = ve(h), B = s.forwardRef(
|
|
14
|
-
(e, o) => /* @__PURE__ */ l(D.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(D.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ l(be, { ...e, ref: o }) }) })
|
|
15
|
-
);
|
|
16
|
-
B.displayName = h;
|
|
17
|
-
var be = s.forwardRef((e, o) => {
|
|
18
|
-
const {
|
|
19
|
-
__scopeRovingFocusGroup: n,
|
|
20
|
-
orientation: t,
|
|
21
|
-
loop: u = !1,
|
|
22
|
-
dir: d,
|
|
23
|
-
currentTabStopId: a,
|
|
24
|
-
defaultCurrentTabStopId: v,
|
|
25
|
-
onCurrentTabStopIdChange: g,
|
|
26
|
-
onEntryFocus: m,
|
|
27
|
-
preventScrollOnEntryFocus: r = !1,
|
|
28
|
-
...c
|
|
29
|
-
} = e, p = s.useRef(null), E = ie(o, p), w = k(d), [S, i] = L({
|
|
30
|
-
prop: a,
|
|
31
|
-
defaultProp: v ?? null,
|
|
32
|
-
onChange: g,
|
|
33
|
-
caller: h
|
|
34
|
-
}), [T, A] = s.useState(!1), b = ue(m), F = V(n), y = s.useRef(!1), [oe, M] = s.useState(0);
|
|
35
|
-
return s.useEffect(() => {
|
|
36
|
-
const f = p.current;
|
|
37
|
-
if (f)
|
|
38
|
-
return f.addEventListener(N, b), () => f.removeEventListener(N, b);
|
|
39
|
-
}, [b]), /* @__PURE__ */ l(
|
|
40
|
-
me,
|
|
41
|
-
{
|
|
42
|
-
scope: n,
|
|
43
|
-
orientation: t,
|
|
44
|
-
dir: w,
|
|
45
|
-
loop: u,
|
|
46
|
-
currentTabStopId: S,
|
|
47
|
-
onItemFocus: s.useCallback(
|
|
48
|
-
(f) => i(f),
|
|
49
|
-
[i]
|
|
50
|
-
),
|
|
51
|
-
onItemShiftTab: s.useCallback(() => A(!0), []),
|
|
52
|
-
onFocusableItemAdd: s.useCallback(
|
|
53
|
-
() => M((f) => f + 1),
|
|
54
|
-
[]
|
|
55
|
-
),
|
|
56
|
-
onFocusableItemRemove: s.useCallback(
|
|
57
|
-
() => M((f) => f - 1),
|
|
58
|
-
[]
|
|
59
|
-
),
|
|
60
|
-
children: /* @__PURE__ */ l(
|
|
61
|
-
C.div,
|
|
62
|
-
{
|
|
63
|
-
tabIndex: T || oe === 0 ? -1 : 0,
|
|
64
|
-
"data-orientation": t,
|
|
65
|
-
...c,
|
|
66
|
-
ref: E,
|
|
67
|
-
style: { outline: "none", ...e.style },
|
|
68
|
-
onMouseDown: I(e.onMouseDown, () => {
|
|
69
|
-
y.current = !0;
|
|
70
|
-
}),
|
|
71
|
-
onFocus: I(e.onFocus, (f) => {
|
|
72
|
-
const re = !y.current;
|
|
73
|
-
if (f.target === f.currentTarget && re && !T) {
|
|
74
|
-
const G = new CustomEvent(N, de);
|
|
75
|
-
if (f.currentTarget.dispatchEvent(G), !G.defaultPrevented) {
|
|
76
|
-
const P = F().filter((R) => R.focusable), ne = P.find((R) => R.active), ae = P.find((R) => R.id === S), se = [ne, ae, ...P].filter(
|
|
77
|
-
Boolean
|
|
78
|
-
).map((R) => R.ref.current);
|
|
79
|
-
z(se, r);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
y.current = !1;
|
|
83
|
-
}),
|
|
84
|
-
onBlur: I(e.onBlur, () => A(!1))
|
|
85
|
-
}
|
|
86
|
-
)
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
}), $ = "RovingFocusGroupItem", Y = s.forwardRef(
|
|
90
|
-
(e, o) => {
|
|
91
|
-
const {
|
|
92
|
-
__scopeRovingFocusGroup: n,
|
|
93
|
-
focusable: t = !0,
|
|
94
|
-
active: u = !1,
|
|
95
|
-
tabStopId: d,
|
|
96
|
-
children: a,
|
|
97
|
-
...v
|
|
98
|
-
} = e, g = O(), m = d || g, r = pe($, n), c = r.currentTabStopId === m, p = V(n), { onFocusableItemAdd: E, onFocusableItemRemove: w, currentTabStopId: S } = r;
|
|
99
|
-
return s.useEffect(() => {
|
|
100
|
-
if (t)
|
|
101
|
-
return E(), () => w();
|
|
102
|
-
}, [t, E, w]), /* @__PURE__ */ l(
|
|
103
|
-
D.ItemSlot,
|
|
104
|
-
{
|
|
105
|
-
scope: n,
|
|
106
|
-
id: m,
|
|
107
|
-
focusable: t,
|
|
108
|
-
active: u,
|
|
109
|
-
children: /* @__PURE__ */ l(
|
|
110
|
-
C.span,
|
|
111
|
-
{
|
|
112
|
-
tabIndex: c ? 0 : -1,
|
|
113
|
-
"data-orientation": r.orientation,
|
|
114
|
-
...v,
|
|
115
|
-
ref: o,
|
|
116
|
-
onMouseDown: I(e.onMouseDown, (i) => {
|
|
117
|
-
t ? r.onItemFocus(m) : i.preventDefault();
|
|
118
|
-
}),
|
|
119
|
-
onFocus: I(e.onFocus, () => r.onItemFocus(m)),
|
|
120
|
-
onKeyDown: I(e.onKeyDown, (i) => {
|
|
121
|
-
if (i.key === "Tab" && i.shiftKey) {
|
|
122
|
-
r.onItemShiftTab();
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
if (i.target !== i.currentTarget) return;
|
|
126
|
-
const T = Te(i, r.orientation, r.dir);
|
|
127
|
-
if (T !== void 0) {
|
|
128
|
-
if (i.metaKey || i.ctrlKey || i.altKey || i.shiftKey) return;
|
|
129
|
-
i.preventDefault();
|
|
130
|
-
let b = p().filter((F) => F.focusable).map((F) => F.ref.current);
|
|
131
|
-
if (T === "last") b.reverse();
|
|
132
|
-
else if (T === "prev" || T === "next") {
|
|
133
|
-
T === "prev" && b.reverse();
|
|
134
|
-
const F = b.indexOf(i.currentTarget);
|
|
135
|
-
b = r.loop ? Fe(b, F + 1) : b.slice(F + 1);
|
|
136
|
-
}
|
|
137
|
-
setTimeout(() => z(b));
|
|
138
|
-
}
|
|
139
|
-
}),
|
|
140
|
-
children: typeof a == "function" ? a({ isCurrentTabStop: c, hasTabStop: S != null }) : a
|
|
141
|
-
}
|
|
142
|
-
)
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
Y.displayName = $;
|
|
148
|
-
var ge = {
|
|
149
|
-
ArrowLeft: "prev",
|
|
150
|
-
ArrowUp: "prev",
|
|
151
|
-
ArrowRight: "next",
|
|
152
|
-
ArrowDown: "next",
|
|
153
|
-
PageUp: "first",
|
|
154
|
-
Home: "first",
|
|
155
|
-
PageDown: "last",
|
|
156
|
-
End: "last"
|
|
157
|
-
};
|
|
158
|
-
function Ie(e, o) {
|
|
159
|
-
return o !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
160
|
-
}
|
|
161
|
-
function Te(e, o, n) {
|
|
162
|
-
const t = Ie(e.key, n);
|
|
163
|
-
if (!(o === "vertical" && ["ArrowLeft", "ArrowRight"].includes(t)) && !(o === "horizontal" && ["ArrowUp", "ArrowDown"].includes(t)))
|
|
164
|
-
return ge[t];
|
|
165
|
-
}
|
|
166
|
-
function z(e, o = !1) {
|
|
167
|
-
const n = document.activeElement;
|
|
168
|
-
for (const t of e)
|
|
169
|
-
if (t === n || (t.focus({ preventScroll: o }), document.activeElement !== n)) return;
|
|
170
|
-
}
|
|
171
|
-
function Fe(e, o) {
|
|
172
|
-
return e.map((n, t) => e[(o + t) % e.length]);
|
|
173
|
-
}
|
|
174
|
-
var Re = B, Ce = Y, _ = "Tabs", [he] = K(_, [
|
|
175
|
-
U
|
|
176
|
-
]), H = U(), [Ee, x] = he(_), j = s.forwardRef(
|
|
177
|
-
(e, o) => {
|
|
178
|
-
const {
|
|
179
|
-
__scopeTabs: n,
|
|
180
|
-
value: t,
|
|
181
|
-
onValueChange: u,
|
|
182
|
-
defaultValue: d,
|
|
183
|
-
orientation: a = "horizontal",
|
|
184
|
-
dir: v,
|
|
185
|
-
activationMode: g = "automatic",
|
|
186
|
-
...m
|
|
187
|
-
} = e, r = k(v), [c, p] = L({
|
|
188
|
-
prop: t,
|
|
189
|
-
onChange: u,
|
|
190
|
-
defaultProp: d ?? "",
|
|
191
|
-
caller: _
|
|
192
|
-
});
|
|
193
|
-
return /* @__PURE__ */ l(
|
|
194
|
-
Ee,
|
|
195
|
-
{
|
|
196
|
-
scope: n,
|
|
197
|
-
baseId: O(),
|
|
198
|
-
value: c,
|
|
199
|
-
onValueChange: p,
|
|
200
|
-
orientation: a,
|
|
201
|
-
dir: r,
|
|
202
|
-
activationMode: g,
|
|
203
|
-
children: /* @__PURE__ */ l(
|
|
204
|
-
C.div,
|
|
205
|
-
{
|
|
206
|
-
dir: r,
|
|
207
|
-
"data-orientation": a,
|
|
208
|
-
...m,
|
|
209
|
-
ref: o
|
|
210
|
-
}
|
|
211
|
-
)
|
|
212
|
-
}
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
);
|
|
216
|
-
j.displayName = _;
|
|
217
|
-
var q = "TabsList", J = s.forwardRef(
|
|
218
|
-
(e, o) => {
|
|
219
|
-
const { __scopeTabs: n, loop: t = !0, ...u } = e, d = x(q, n), a = H(n);
|
|
220
|
-
return /* @__PURE__ */ l(
|
|
221
|
-
Re,
|
|
222
|
-
{
|
|
223
|
-
asChild: !0,
|
|
224
|
-
...a,
|
|
225
|
-
orientation: d.orientation,
|
|
226
|
-
dir: d.dir,
|
|
227
|
-
loop: t,
|
|
228
|
-
children: /* @__PURE__ */ l(
|
|
229
|
-
C.div,
|
|
230
|
-
{
|
|
231
|
-
role: "tablist",
|
|
232
|
-
"aria-orientation": d.orientation,
|
|
233
|
-
...u,
|
|
234
|
-
ref: o
|
|
235
|
-
}
|
|
236
|
-
)
|
|
237
|
-
}
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
|
-
J.displayName = q;
|
|
242
|
-
var Q = "TabsTrigger", W = s.forwardRef(
|
|
243
|
-
(e, o) => {
|
|
244
|
-
const { __scopeTabs: n, value: t, disabled: u = !1, ...d } = e, a = x(Q, n), v = H(n), g = ee(a.baseId, t), m = te(a.baseId, t), r = t === a.value;
|
|
245
|
-
return /* @__PURE__ */ l(
|
|
246
|
-
Ce,
|
|
247
|
-
{
|
|
248
|
-
asChild: !0,
|
|
249
|
-
...v,
|
|
250
|
-
focusable: !u,
|
|
251
|
-
active: r,
|
|
252
|
-
children: /* @__PURE__ */ l(
|
|
253
|
-
C.button,
|
|
254
|
-
{
|
|
255
|
-
type: "button",
|
|
256
|
-
role: "tab",
|
|
257
|
-
"aria-selected": r,
|
|
258
|
-
"aria-controls": m,
|
|
259
|
-
"data-state": r ? "active" : "inactive",
|
|
260
|
-
"data-disabled": u ? "" : void 0,
|
|
261
|
-
disabled: u,
|
|
262
|
-
id: g,
|
|
263
|
-
...d,
|
|
264
|
-
ref: o,
|
|
265
|
-
onMouseDown: I(e.onMouseDown, (c) => {
|
|
266
|
-
!u && c.button === 0 && c.ctrlKey === !1 ? a.onValueChange(t) : c.preventDefault();
|
|
267
|
-
}),
|
|
268
|
-
onKeyDown: I(e.onKeyDown, (c) => {
|
|
269
|
-
[" ", "Enter"].includes(c.key) && a.onValueChange(t);
|
|
270
|
-
}),
|
|
271
|
-
onFocus: I(e.onFocus, () => {
|
|
272
|
-
const c = a.activationMode !== "manual";
|
|
273
|
-
!r && !u && c && a.onValueChange(t);
|
|
274
|
-
})
|
|
275
|
-
}
|
|
276
|
-
)
|
|
277
|
-
}
|
|
278
|
-
);
|
|
279
|
-
}
|
|
280
|
-
);
|
|
281
|
-
W.displayName = Q;
|
|
282
|
-
var X = "TabsContent", Z = s.forwardRef(
|
|
283
|
-
(e, o) => {
|
|
284
|
-
const { __scopeTabs: n, value: t, forceMount: u, children: d, ...a } = e, v = x(X, n), g = ee(v.baseId, t), m = te(v.baseId, t), r = t === v.value, c = s.useRef(r);
|
|
285
|
-
return s.useEffect(() => {
|
|
286
|
-
const p = requestAnimationFrame(() => c.current = !1);
|
|
287
|
-
return () => cancelAnimationFrame(p);
|
|
288
|
-
}, []), /* @__PURE__ */ l(le, { present: u || r, children: ({ present: p }) => /* @__PURE__ */ l(
|
|
289
|
-
C.div,
|
|
290
|
-
{
|
|
291
|
-
"data-state": r ? "active" : "inactive",
|
|
292
|
-
"data-orientation": v.orientation,
|
|
293
|
-
role: "tabpanel",
|
|
294
|
-
"aria-labelledby": g,
|
|
295
|
-
hidden: !p,
|
|
296
|
-
id: m,
|
|
297
|
-
tabIndex: 0,
|
|
298
|
-
...a,
|
|
299
|
-
ref: o,
|
|
300
|
-
style: {
|
|
301
|
-
...e.style,
|
|
302
|
-
animationDuration: c.current ? "0s" : void 0
|
|
303
|
-
},
|
|
304
|
-
children: p && d
|
|
305
|
-
}
|
|
306
|
-
) });
|
|
307
|
-
}
|
|
308
|
-
);
|
|
309
|
-
Z.displayName = X;
|
|
310
|
-
function ee(e, o) {
|
|
311
|
-
return `${e}-trigger-${o}`;
|
|
312
|
-
}
|
|
313
|
-
function te(e, o) {
|
|
314
|
-
return `${e}-content-${o}`;
|
|
315
|
-
}
|
|
316
|
-
var Me = j, Ge = J, Ke = W, Le = Z;
|
|
317
|
-
export {
|
|
318
|
-
Le as C,
|
|
319
|
-
Ge as L,
|
|
320
|
-
Me as R,
|
|
321
|
-
Ke as T
|
|
322
|
-
};
|
package/dist/index-CrCTywU1.js
DELETED
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import { R as Ee, P as ke, O as Se, C as Ie } from "./index-DWyM654o.js";
|
|
2
|
-
import * as n from "react";
|
|
3
|
-
import { P as C } from "./index--l0zux8V.js";
|
|
4
|
-
import { u as P } from "./index-BKMaItIC.js";
|
|
5
|
-
import { c as j } from "./index-DLcqcWxM.js";
|
|
6
|
-
var de = 1, xe = 0.9, Re = 0.8, Ce = 0.17, Q = 0.1, Z = 0.999, Ae = 0.9999, Me = 0.99, $e = /[\\\/_+.#"@\[\(\{&]/, De = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, me = /[\s-]/g;
|
|
7
|
-
function ee(t, l, r, f, u, c, d) {
|
|
8
|
-
if (c === l.length) return u === t.length ? de : Me;
|
|
9
|
-
var m = `${u},${c}`;
|
|
10
|
-
if (d[m] !== void 0) return d[m];
|
|
11
|
-
for (var b = f.charAt(c), i = r.indexOf(b, u), p = 0, h, I, E, x; i >= 0; ) h = ee(t, l, r, f, i + 1, c + 1, d), h > p && (i === u ? h *= de : $e.test(t.charAt(i - 1)) ? (h *= Re, E = t.slice(u, i - 1).match(De), E && u > 0 && (h *= Math.pow(Z, E.length))) : Fe.test(t.charAt(i - 1)) ? (h *= xe, x = t.slice(u, i - 1).match(me), x && u > 0 && (h *= Math.pow(Z, x.length))) : (h *= Ce, u > 0 && (h *= Math.pow(Z, i - u))), t.charAt(i) !== l.charAt(c) && (h *= Ae)), (h < Q && r.charAt(i - 1) === f.charAt(c + 1) || f.charAt(c + 1) === f.charAt(c) && r.charAt(i - 1) !== f.charAt(c)) && (I = ee(t, l, r, f, i + 1, c + 2, d), I * Q > h && (h = I * Q)), h > p && (p = h), i = r.indexOf(b, i + 1);
|
|
12
|
-
return d[m] = p, p;
|
|
13
|
-
}
|
|
14
|
-
function se(t) {
|
|
15
|
-
return t.toLowerCase().replace(me, " ");
|
|
16
|
-
}
|
|
17
|
-
function Ke(t, l, r) {
|
|
18
|
-
return t = r && r.length > 0 ? `${t + " " + r.join(" ")}` : t, ee(t, l, se(t), se(l), 0, 0, {});
|
|
19
|
-
}
|
|
20
|
-
var V = '[cmdk-group=""]', _ = '[cmdk-group-items=""]', Pe = '[cmdk-group-heading=""]', ve = '[cmdk-item=""]', fe = `${ve}:not([aria-disabled="true"])`, te = "cmdk-item-select", F = "data-value", qe = (t, l, r) => Ke(t, l, r), pe = n.createContext(void 0), L = () => n.useContext(pe), he = n.createContext(void 0), re = () => n.useContext(he), ge = n.createContext(void 0), be = n.forwardRef((t, l) => {
|
|
21
|
-
let r = K(() => {
|
|
22
|
-
var e, o;
|
|
23
|
-
return { search: "", value: (o = (e = t.value) != null ? e : t.defaultValue) != null ? o : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
24
|
-
}), f = K(() => /* @__PURE__ */ new Set()), u = K(() => /* @__PURE__ */ new Map()), c = K(() => /* @__PURE__ */ new Map()), d = K(() => /* @__PURE__ */ new Set()), m = we(t), { label: b, children: i, value: p, onValueChange: h, filter: I, shouldFilter: E, loop: x, disablePointerSelection: U = !1, vimBindings: A = !0, ...O } = t, H = P(), ne = P(), N = P(), M = n.useRef(null), w = We();
|
|
25
|
-
$(() => {
|
|
26
|
-
if (p !== void 0) {
|
|
27
|
-
let e = p.trim();
|
|
28
|
-
r.current.value = e, k.emit();
|
|
29
|
-
}
|
|
30
|
-
}, [p]), $(() => {
|
|
31
|
-
w(6, ae);
|
|
32
|
-
}, []);
|
|
33
|
-
let k = n.useMemo(() => ({ subscribe: (e) => (d.current.add(e), () => d.current.delete(e)), snapshot: () => r.current, setState: (e, o, s) => {
|
|
34
|
-
var a, v, g, S;
|
|
35
|
-
if (!Object.is(r.current[e], o)) {
|
|
36
|
-
if (r.current[e] = o, e === "search") J(), W(), w(1, G);
|
|
37
|
-
else if (e === "value") {
|
|
38
|
-
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
39
|
-
let y = document.getElementById(N);
|
|
40
|
-
y ? y.focus() : (a = document.getElementById(H)) == null || a.focus();
|
|
41
|
-
}
|
|
42
|
-
if (w(7, () => {
|
|
43
|
-
var y;
|
|
44
|
-
r.current.selectedItemId = (y = D()) == null ? void 0 : y.id, k.emit();
|
|
45
|
-
}), s || w(5, ae), ((v = m.current) == null ? void 0 : v.value) !== void 0) {
|
|
46
|
-
let y = o ?? "";
|
|
47
|
-
(S = (g = m.current).onValueChange) == null || S.call(g, y);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
k.emit();
|
|
52
|
-
}
|
|
53
|
-
}, emit: () => {
|
|
54
|
-
d.current.forEach((e) => e());
|
|
55
|
-
} }), []), T = n.useMemo(() => ({ value: (e, o, s) => {
|
|
56
|
-
var a;
|
|
57
|
-
o !== ((a = c.current.get(e)) == null ? void 0 : a.value) && (c.current.set(e, { value: o, keywords: s }), r.current.filtered.items.set(e, le(o, s)), w(2, () => {
|
|
58
|
-
W(), k.emit();
|
|
59
|
-
}));
|
|
60
|
-
}, item: (e, o) => (f.current.add(e), o && (u.current.has(o) ? u.current.get(o).add(e) : u.current.set(o, /* @__PURE__ */ new Set([e]))), w(3, () => {
|
|
61
|
-
J(), W(), r.current.value || G(), k.emit();
|
|
62
|
-
}), () => {
|
|
63
|
-
c.current.delete(e), f.current.delete(e), r.current.filtered.items.delete(e);
|
|
64
|
-
let s = D();
|
|
65
|
-
w(4, () => {
|
|
66
|
-
J(), s?.getAttribute("id") === e && G(), k.emit();
|
|
67
|
-
});
|
|
68
|
-
}), group: (e) => (u.current.has(e) || u.current.set(e, /* @__PURE__ */ new Set()), () => {
|
|
69
|
-
c.current.delete(e), u.current.delete(e);
|
|
70
|
-
}), filter: () => m.current.shouldFilter, label: b || t["aria-label"], getDisablePointerSelection: () => m.current.disablePointerSelection, listId: H, inputId: N, labelId: ne, listInnerRef: M }), []);
|
|
71
|
-
function le(e, o) {
|
|
72
|
-
var s, a;
|
|
73
|
-
let v = (a = (s = m.current) == null ? void 0 : s.filter) != null ? a : qe;
|
|
74
|
-
return e ? v(e, r.current.search, o) : 0;
|
|
75
|
-
}
|
|
76
|
-
function W() {
|
|
77
|
-
if (!r.current.search || m.current.shouldFilter === !1) return;
|
|
78
|
-
let e = r.current.filtered.items, o = [];
|
|
79
|
-
r.current.filtered.groups.forEach((a) => {
|
|
80
|
-
let v = u.current.get(a), g = 0;
|
|
81
|
-
v.forEach((S) => {
|
|
82
|
-
let y = e.get(S);
|
|
83
|
-
g = Math.max(y, g);
|
|
84
|
-
}), o.push([a, g]);
|
|
85
|
-
});
|
|
86
|
-
let s = M.current;
|
|
87
|
-
q().sort((a, v) => {
|
|
88
|
-
var g, S;
|
|
89
|
-
let y = a.getAttribute("id"), B = v.getAttribute("id");
|
|
90
|
-
return ((g = e.get(B)) != null ? g : 0) - ((S = e.get(y)) != null ? S : 0);
|
|
91
|
-
}).forEach((a) => {
|
|
92
|
-
let v = a.closest(_);
|
|
93
|
-
v ? v.appendChild(a.parentElement === v ? a : a.closest(`${_} > *`)) : s.appendChild(a.parentElement === s ? a : a.closest(`${_} > *`));
|
|
94
|
-
}), o.sort((a, v) => v[1] - a[1]).forEach((a) => {
|
|
95
|
-
var v;
|
|
96
|
-
let g = (v = M.current) == null ? void 0 : v.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);
|
|
97
|
-
g?.parentElement.appendChild(g);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function G() {
|
|
101
|
-
let e = q().find((s) => s.getAttribute("aria-disabled") !== "true"), o = e?.getAttribute(F);
|
|
102
|
-
k.setState("value", o || void 0);
|
|
103
|
-
}
|
|
104
|
-
function J() {
|
|
105
|
-
var e, o, s, a;
|
|
106
|
-
if (!r.current.search || m.current.shouldFilter === !1) {
|
|
107
|
-
r.current.filtered.count = f.current.size;
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
r.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
111
|
-
let v = 0;
|
|
112
|
-
for (let g of f.current) {
|
|
113
|
-
let S = (o = (e = c.current.get(g)) == null ? void 0 : e.value) != null ? o : "", y = (a = (s = c.current.get(g)) == null ? void 0 : s.keywords) != null ? a : [], B = le(S, y);
|
|
114
|
-
r.current.filtered.items.set(g, B), B > 0 && v++;
|
|
115
|
-
}
|
|
116
|
-
for (let [g, S] of u.current) for (let y of S) if (r.current.filtered.items.get(y) > 0) {
|
|
117
|
-
r.current.filtered.groups.add(g);
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
r.current.filtered.count = v;
|
|
121
|
-
}
|
|
122
|
-
function ae() {
|
|
123
|
-
var e, o, s;
|
|
124
|
-
let a = D();
|
|
125
|
-
a && (((e = a.parentElement) == null ? void 0 : e.firstChild) === a && ((s = (o = a.closest(V)) == null ? void 0 : o.querySelector(Pe)) == null || s.scrollIntoView({ block: "nearest" })), a.scrollIntoView({ block: "nearest" }));
|
|
126
|
-
}
|
|
127
|
-
function D() {
|
|
128
|
-
var e;
|
|
129
|
-
return (e = M.current) == null ? void 0 : e.querySelector(`${ve}[aria-selected="true"]`);
|
|
130
|
-
}
|
|
131
|
-
function q() {
|
|
132
|
-
var e;
|
|
133
|
-
return Array.from(((e = M.current) == null ? void 0 : e.querySelectorAll(fe)) || []);
|
|
134
|
-
}
|
|
135
|
-
function X(e) {
|
|
136
|
-
let o = q()[e];
|
|
137
|
-
o && k.setState("value", o.getAttribute(F));
|
|
138
|
-
}
|
|
139
|
-
function Y(e) {
|
|
140
|
-
var o;
|
|
141
|
-
let s = D(), a = q(), v = a.findIndex((S) => S === s), g = a[v + e];
|
|
142
|
-
(o = m.current) != null && o.loop && (g = v + e < 0 ? a[a.length - 1] : v + e === a.length ? a[0] : a[v + e]), g && k.setState("value", g.getAttribute(F));
|
|
143
|
-
}
|
|
144
|
-
function ue(e) {
|
|
145
|
-
let o = D(), s = o?.closest(V), a;
|
|
146
|
-
for (; s && !a; ) s = e > 0 ? Ne(s, V) : Te(s, V), a = s?.querySelector(fe);
|
|
147
|
-
a ? k.setState("value", a.getAttribute(F)) : Y(e);
|
|
148
|
-
}
|
|
149
|
-
let ie = () => X(q().length - 1), oe = (e) => {
|
|
150
|
-
e.preventDefault(), e.metaKey ? ie() : e.altKey ? ue(1) : Y(1);
|
|
151
|
-
}, ce = (e) => {
|
|
152
|
-
e.preventDefault(), e.metaKey ? X(0) : e.altKey ? ue(-1) : Y(-1);
|
|
153
|
-
};
|
|
154
|
-
return n.createElement(C.div, { ref: l, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e) => {
|
|
155
|
-
var o;
|
|
156
|
-
(o = O.onKeyDown) == null || o.call(O, e);
|
|
157
|
-
let s = e.nativeEvent.isComposing || e.keyCode === 229;
|
|
158
|
-
if (!(e.defaultPrevented || s)) switch (e.key) {
|
|
159
|
-
case "n":
|
|
160
|
-
case "j": {
|
|
161
|
-
A && e.ctrlKey && oe(e);
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
case "ArrowDown": {
|
|
165
|
-
oe(e);
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
case "p":
|
|
169
|
-
case "k": {
|
|
170
|
-
A && e.ctrlKey && ce(e);
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
case "ArrowUp": {
|
|
174
|
-
ce(e);
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
case "Home": {
|
|
178
|
-
e.preventDefault(), X(0);
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
case "End": {
|
|
182
|
-
e.preventDefault(), ie();
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
case "Enter": {
|
|
186
|
-
e.preventDefault();
|
|
187
|
-
let a = D();
|
|
188
|
-
if (a) {
|
|
189
|
-
let v = new Event(te);
|
|
190
|
-
a.dispatchEvent(v);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
} }, n.createElement("label", { "cmdk-label": "", htmlFor: T.inputId, id: T.labelId, style: Je }, b), z(t, (e) => n.createElement(he.Provider, { value: k }, n.createElement(pe.Provider, { value: T }, e))));
|
|
195
|
-
}), Ve = n.forwardRef((t, l) => {
|
|
196
|
-
var r, f;
|
|
197
|
-
let u = P(), c = n.useRef(null), d = n.useContext(ge), m = L(), b = we(t), i = (f = (r = b.current) == null ? void 0 : r.forceMount) != null ? f : d?.forceMount;
|
|
198
|
-
$(() => {
|
|
199
|
-
if (!i) return m.item(u, d?.id);
|
|
200
|
-
}, [i]);
|
|
201
|
-
let p = ye(u, c, [t.value, t.children, c], t.keywords), h = re(), I = R((w) => w.value && w.value === p.current), E = R((w) => i || m.filter() === !1 ? !0 : w.search ? w.filtered.items.get(u) > 0 : !0);
|
|
202
|
-
n.useEffect(() => {
|
|
203
|
-
let w = c.current;
|
|
204
|
-
if (!(!w || t.disabled)) return w.addEventListener(te, x), () => w.removeEventListener(te, x);
|
|
205
|
-
}, [E, t.onSelect, t.disabled]);
|
|
206
|
-
function x() {
|
|
207
|
-
var w, k;
|
|
208
|
-
U(), (k = (w = b.current).onSelect) == null || k.call(w, p.current);
|
|
209
|
-
}
|
|
210
|
-
function U() {
|
|
211
|
-
h.setState("value", p.current, !0);
|
|
212
|
-
}
|
|
213
|
-
if (!E) return null;
|
|
214
|
-
let { disabled: A, value: O, onSelect: H, forceMount: ne, keywords: N, ...M } = t;
|
|
215
|
-
return n.createElement(C.div, { ref: j(c, l), ...M, id: u, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!I, "data-disabled": !!A, "data-selected": !!I, onPointerMove: A || m.getDisablePointerSelection() ? void 0 : U, onClick: A ? void 0 : x }, t.children);
|
|
216
|
-
}), je = n.forwardRef((t, l) => {
|
|
217
|
-
let { heading: r, children: f, forceMount: u, ...c } = t, d = P(), m = n.useRef(null), b = n.useRef(null), i = P(), p = L(), h = R((E) => u || p.filter() === !1 ? !0 : E.search ? E.filtered.groups.has(d) : !0);
|
|
218
|
-
$(() => p.group(d), []), ye(d, m, [t.value, t.heading, b]);
|
|
219
|
-
let I = n.useMemo(() => ({ id: d, forceMount: u }), [u]);
|
|
220
|
-
return n.createElement(C.div, { ref: j(m, l), ...c, "cmdk-group": "", role: "presentation", hidden: h ? void 0 : !0 }, r && n.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: i }, r), z(t, (E) => n.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? i : void 0 }, n.createElement(ge.Provider, { value: I }, E))));
|
|
221
|
-
}), Le = n.forwardRef((t, l) => {
|
|
222
|
-
let { alwaysRender: r, ...f } = t, u = n.useRef(null), c = R((d) => !d.search);
|
|
223
|
-
return !r && !c ? null : n.createElement(C.div, { ref: j(u, l), ...f, "cmdk-separator": "", role: "separator" });
|
|
224
|
-
}), Oe = n.forwardRef((t, l) => {
|
|
225
|
-
let { onValueChange: r, ...f } = t, u = t.value != null, c = re(), d = R((i) => i.search), m = R((i) => i.selectedItemId), b = L();
|
|
226
|
-
return n.useEffect(() => {
|
|
227
|
-
t.value != null && c.setState("search", t.value);
|
|
228
|
-
}, [t.value]), n.createElement(C.input, { ref: l, ...f, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": m, id: b.inputId, type: "text", value: u ? t.value : d, onChange: (i) => {
|
|
229
|
-
u || c.setState("search", i.target.value), r?.(i.target.value);
|
|
230
|
-
} });
|
|
231
|
-
}), Be = n.forwardRef((t, l) => {
|
|
232
|
-
let { children: r, label: f = "Suggestions", ...u } = t, c = n.useRef(null), d = n.useRef(null), m = R((i) => i.selectedItemId), b = L();
|
|
233
|
-
return n.useEffect(() => {
|
|
234
|
-
if (d.current && c.current) {
|
|
235
|
-
let i = d.current, p = c.current, h, I = new ResizeObserver(() => {
|
|
236
|
-
h = requestAnimationFrame(() => {
|
|
237
|
-
let E = i.offsetHeight;
|
|
238
|
-
p.style.setProperty("--cmdk-list-height", E.toFixed(1) + "px");
|
|
239
|
-
});
|
|
240
|
-
});
|
|
241
|
-
return I.observe(i), () => {
|
|
242
|
-
cancelAnimationFrame(h), I.unobserve(i);
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
}, []), n.createElement(C.div, { ref: j(c, l), ...u, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": m, "aria-label": f, id: b.listId }, z(t, (i) => n.createElement("div", { ref: j(d, b.listInnerRef), "cmdk-list-sizer": "" }, i)));
|
|
246
|
-
}), ze = n.forwardRef((t, l) => {
|
|
247
|
-
let { open: r, onOpenChange: f, overlayClassName: u, contentClassName: c, container: d, ...m } = t;
|
|
248
|
-
return n.createElement(Ee, { open: r, onOpenChange: f }, n.createElement(ke, { container: d }, n.createElement(Se, { "cmdk-overlay": "", className: u }), n.createElement(Ie, { "aria-label": t.label, "cmdk-dialog": "", className: c }, n.createElement(be, { ref: l, ...m }))));
|
|
249
|
-
}), Ue = n.forwardRef((t, l) => R((r) => r.filtered.count === 0) ? n.createElement(C.div, { ref: l, ...t, "cmdk-empty": "", role: "presentation" }) : null), He = n.forwardRef((t, l) => {
|
|
250
|
-
let { progress: r, children: f, label: u = "Loading...", ...c } = t;
|
|
251
|
-
return n.createElement(C.div, { ref: l, ...c, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": u }, z(t, (d) => n.createElement("div", { "aria-hidden": !0 }, d)));
|
|
252
|
-
}), _e = Object.assign(be, { List: Be, Item: Ve, Input: Oe, Group: je, Separator: Le, Dialog: ze, Empty: Ue, Loading: He });
|
|
253
|
-
function Ne(t, l) {
|
|
254
|
-
let r = t.nextElementSibling;
|
|
255
|
-
for (; r; ) {
|
|
256
|
-
if (r.matches(l)) return r;
|
|
257
|
-
r = r.nextElementSibling;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
function Te(t, l) {
|
|
261
|
-
let r = t.previousElementSibling;
|
|
262
|
-
for (; r; ) {
|
|
263
|
-
if (r.matches(l)) return r;
|
|
264
|
-
r = r.previousElementSibling;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
function we(t) {
|
|
268
|
-
let l = n.useRef(t);
|
|
269
|
-
return $(() => {
|
|
270
|
-
l.current = t;
|
|
271
|
-
}), l;
|
|
272
|
-
}
|
|
273
|
-
var $ = typeof window > "u" ? n.useEffect : n.useLayoutEffect;
|
|
274
|
-
function K(t) {
|
|
275
|
-
let l = n.useRef();
|
|
276
|
-
return l.current === void 0 && (l.current = t()), l;
|
|
277
|
-
}
|
|
278
|
-
function R(t) {
|
|
279
|
-
let l = re(), r = () => t(l.snapshot());
|
|
280
|
-
return n.useSyncExternalStore(l.subscribe, r, r);
|
|
281
|
-
}
|
|
282
|
-
function ye(t, l, r, f = []) {
|
|
283
|
-
let u = n.useRef(), c = L();
|
|
284
|
-
return $(() => {
|
|
285
|
-
var d;
|
|
286
|
-
let m = (() => {
|
|
287
|
-
var i;
|
|
288
|
-
for (let p of r) {
|
|
289
|
-
if (typeof p == "string") return p.trim();
|
|
290
|
-
if (typeof p == "object" && "current" in p) return p.current ? (i = p.current.textContent) == null ? void 0 : i.trim() : u.current;
|
|
291
|
-
}
|
|
292
|
-
})(), b = f.map((i) => i.trim());
|
|
293
|
-
c.value(t, m, b), (d = l.current) == null || d.setAttribute(F, m), u.current = m;
|
|
294
|
-
}), u;
|
|
295
|
-
}
|
|
296
|
-
var We = () => {
|
|
297
|
-
let [t, l] = n.useState(), r = K(() => /* @__PURE__ */ new Map());
|
|
298
|
-
return $(() => {
|
|
299
|
-
r.current.forEach((f) => f()), r.current = /* @__PURE__ */ new Map();
|
|
300
|
-
}, [t]), (f, u) => {
|
|
301
|
-
r.current.set(f, u), l({});
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
function Ge(t) {
|
|
305
|
-
let l = t.type;
|
|
306
|
-
return typeof l == "function" ? l(t.props) : "render" in l ? l.render(t.props) : t;
|
|
307
|
-
}
|
|
308
|
-
function z({ asChild: t, children: l }, r) {
|
|
309
|
-
return t && n.isValidElement(l) ? n.cloneElement(Ge(l), { ref: l.ref }, r(l.props.children)) : r(l);
|
|
310
|
-
}
|
|
311
|
-
var Je = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
312
|
-
export {
|
|
313
|
-
_e as _
|
|
314
|
-
};
|
package/dist/index-D29mdTf5.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { c as O } from "./clsx-OuTLNxxd.js";
|
|
2
|
-
const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
|
|
3
|
-
var u;
|
|
4
|
-
if (l?.variants == null) return y(e, n?.class, n?.className);
|
|
5
|
-
const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
|
|
6
|
-
const a = n?.[t], s = d?.[t];
|
|
7
|
-
if (a === null) return null;
|
|
8
|
-
const i = m(a) || m(s);
|
|
9
|
-
return r[t][i];
|
|
10
|
-
}), v = n && Object.entries(n).reduce((t, a) => {
|
|
11
|
-
let [s, i] = a;
|
|
12
|
-
return i === void 0 || (t[s] = i), t;
|
|
13
|
-
}, {}), N = l == null || (u = l.compoundVariants) === null || u === void 0 ? void 0 : u.reduce((t, a) => {
|
|
14
|
-
let { class: s, className: i, ...f } = a;
|
|
15
|
-
return Object.entries(f).every((C) => {
|
|
16
|
-
let [c, o] = C;
|
|
17
|
-
return Array.isArray(o) ? o.includes({
|
|
18
|
-
...d,
|
|
19
|
-
...v
|
|
20
|
-
}[c]) : {
|
|
21
|
-
...d,
|
|
22
|
-
...v
|
|
23
|
-
}[c] === o;
|
|
24
|
-
}) ? [
|
|
25
|
-
...t,
|
|
26
|
-
s,
|
|
27
|
-
i
|
|
28
|
-
] : t;
|
|
29
|
-
}, []);
|
|
30
|
-
return y(e, V, N, n?.class, n?.className);
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
j as c
|
|
34
|
-
};
|