@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
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { n as L } from "./Wrapper-CjUokv72.js";
|
|
2
|
+
import { t as o } from "./utils-DHuiYnx1.js";
|
|
3
|
+
import { LoaderIcon as I } from "./assets/icons/components/Loader.js";
|
|
4
|
+
import { t as C } from "./x-a0ouxoIM.js";
|
|
5
|
+
import { Badge as R } from "./components/Badge/Badge.js";
|
|
6
|
+
import { Typography as N } from "./components/Typography/Typography.js";
|
|
7
|
+
import { useMultiSelectDropdown as w } from "./components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js";
|
|
8
|
+
import { MultiSelectDropdownProvider as V } from "./components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js";
|
|
9
|
+
import { Item as g } from "./components/MultiSelectDropdown/components/Item/Item.js";
|
|
10
|
+
import { listVariants as j } from "./components/MultiSelectDropdown/components/List/List.variants.js";
|
|
11
|
+
import { useMultiSelectDropdown as T } from "./components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js";
|
|
12
|
+
import { labelVariants as W, multiSelectDropdownVariants as $, wrapperVariants as z } from "./components/MultiSelectDropdown/MultiSelectDropdown.variants.js";
|
|
13
|
+
import { forwardRef as b, useId as B, useImperativeHandle as F } from "react";
|
|
14
|
+
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
15
|
+
var H = ({ theme: n }) => {
|
|
16
|
+
const { options: a, selectedOptions: r, isLoading: s, noOptionsText: l } = w();
|
|
17
|
+
return /* @__PURE__ */ e("ul", {
|
|
18
|
+
role: "listbox",
|
|
19
|
+
"data-theme": n,
|
|
20
|
+
className: o(j()),
|
|
21
|
+
children: s ? /* @__PURE__ */ e(g, {
|
|
22
|
+
option: {
|
|
23
|
+
id: "loading",
|
|
24
|
+
label: "Loading..."
|
|
25
|
+
},
|
|
26
|
+
className: "select-none pointer-events-none",
|
|
27
|
+
isSelected: !1
|
|
28
|
+
}, "loading") : a.length > 0 ? a.map((t) => /* @__PURE__ */ e(g, {
|
|
29
|
+
option: t,
|
|
30
|
+
isSelected: r.some((i) => i.id === t.id)
|
|
31
|
+
}, t.id)) : /* @__PURE__ */ e("li", {
|
|
32
|
+
className: "select-none",
|
|
33
|
+
children: /* @__PURE__ */ e(N, {
|
|
34
|
+
variant: "body2",
|
|
35
|
+
className: "italic px-2 py-2",
|
|
36
|
+
children: l ?? "No options"
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}, y = b(({ isRequired: n, label: a, labelClassName: r, labelWrapperClassName: s, name: l, placeholder: t = "", theme: i, wrapperClassName: m }, c) => {
|
|
41
|
+
const p = B(), x = l ? `${p}-name` : "id", { inputRef: u, isLoading: S, isOpen: f, selectedOptions: v, onOpen: O, onRemoveOption: D } = w(), { wrapperRef: M, handleOpen: k } = T();
|
|
42
|
+
return F(c, () => u.current, [u]), /* @__PURE__ */ h("div", {
|
|
43
|
+
ref: M,
|
|
44
|
+
className: o(z({ className: m })),
|
|
45
|
+
"data-theme": i,
|
|
46
|
+
children: [
|
|
47
|
+
a ? /* @__PURE__ */ e("div", {
|
|
48
|
+
className: o(s),
|
|
49
|
+
children: /* @__PURE__ */ h(N, {
|
|
50
|
+
component: "label",
|
|
51
|
+
variant: "labelLarge",
|
|
52
|
+
htmlFor: x,
|
|
53
|
+
className: o(W({ className: r })),
|
|
54
|
+
onClick: () => O(!0),
|
|
55
|
+
children: [
|
|
56
|
+
a,
|
|
57
|
+
" ",
|
|
58
|
+
n && /* @__PURE__ */ e(N, {
|
|
59
|
+
component: "span",
|
|
60
|
+
className: "text-red-500 dark:text-red-500 text-sm font-normal",
|
|
61
|
+
children: "*"
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
})
|
|
65
|
+
}) : null,
|
|
66
|
+
/* @__PURE__ */ h("div", {
|
|
67
|
+
id: x,
|
|
68
|
+
className: o($()),
|
|
69
|
+
role: "combobox",
|
|
70
|
+
onClick: k,
|
|
71
|
+
"aria-expanded": f,
|
|
72
|
+
children: [v.length === 0 ? /* @__PURE__ */ e("span", {
|
|
73
|
+
className: "text-base text-inherit select-none",
|
|
74
|
+
children: t
|
|
75
|
+
}) : /* @__PURE__ */ e("div", {
|
|
76
|
+
className: "flex flex-wrap gap-2",
|
|
77
|
+
children: v.map((d) => /* @__PURE__ */ e(R, {
|
|
78
|
+
"data-value": d.label,
|
|
79
|
+
label: d.value ?? d.label ?? "",
|
|
80
|
+
className: "select-none",
|
|
81
|
+
rightIcon: /* @__PURE__ */ e(C, { onClick: () => D(d) })
|
|
82
|
+
}, d.id))
|
|
83
|
+
}), S ? /* @__PURE__ */ e(I, {
|
|
84
|
+
size: 16,
|
|
85
|
+
className: "animate-spin shrink-0 text-gray-400"
|
|
86
|
+
}) : /* @__PURE__ */ e(L, { className: o("w-4 h-4 transition-all duration-50 shrink-0 text-gray-400", f ? "rotate-0" : "rotate-180") })]
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ e("input", {
|
|
89
|
+
ref: u,
|
|
90
|
+
type: "text",
|
|
91
|
+
name: l,
|
|
92
|
+
className: "hidden",
|
|
93
|
+
readOnly: !0
|
|
94
|
+
}),
|
|
95
|
+
f ? /* @__PURE__ */ e(H, {}) : null
|
|
96
|
+
]
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
y.displayName = "MultiSelectDropdownWrapper";
|
|
100
|
+
var K = b(({ isLoading: n, multiselect: a, name: r, noOptionsText: s, options: l, value: t, onChange: i, onBlur: m, ...c }, p) => /* @__PURE__ */ e(V, {
|
|
101
|
+
defaultOptions: l,
|
|
102
|
+
multiselect: a,
|
|
103
|
+
value: t,
|
|
104
|
+
onChange: i,
|
|
105
|
+
onBlur: m,
|
|
106
|
+
name: r,
|
|
107
|
+
isLoading: n,
|
|
108
|
+
noOptionsText: s,
|
|
109
|
+
children: /* @__PURE__ */ e(y, {
|
|
110
|
+
ref: p,
|
|
111
|
+
name: r,
|
|
112
|
+
...c
|
|
113
|
+
})
|
|
114
|
+
}));
|
|
115
|
+
K.displayName = "KonstructMultiSelectDropdown";
|
|
116
|
+
export {
|
|
117
|
+
y as n,
|
|
118
|
+
H as r,
|
|
119
|
+
K as t
|
|
120
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t } from "./utils-DHuiYnx1.js";
|
|
2
|
+
var o = (e) => ({
|
|
3
|
+
root: t("w-fit", e?.root),
|
|
4
|
+
months: t("flex", e?.months),
|
|
5
|
+
month: t("flex flex-col w-[259px]", e?.month),
|
|
6
|
+
month_caption: "hidden",
|
|
7
|
+
nav: "hidden",
|
|
8
|
+
day_button: t("size-[30px]", "flex", "items-center", "justify-center", "text-sm", "font-semibold", "cursor-pointer", "rounded-full", "hover:bg-slate-100", "dark:hover:bg-metal-700", "transition-colors", "text-[#314158]", "dark:text-white", "focus:outline-none", "focus-visible:outline-none", e?.dayButton),
|
|
9
|
+
day: t("p-0", "w-[37px]", "h-[38px]", "text-center", "align-middle", e?.day),
|
|
10
|
+
selected: t("[&>button]:bg-blue-600", "[&>button]:text-white", "[&>button]:hover:bg-blue-700", "dark:[&>button]:bg-aurora-500", "dark:[&>button]:hover:bg-aurora-500", "dark:[&>button]:text-metal-900", e?.selected),
|
|
11
|
+
range_start: t("drp-range-start", "[&>button]:!bg-blue-600", "[&>button]:!text-white", "[&>button]:!rounded-full", "[&>button]:hover:!bg-blue-700", "[&>button]:relative", "[&>button]:z-10", "dark:[&>button]:!bg-aurora-500", "dark:[&>button]:hover:!bg-aurora-500", "dark:[&>button]:!text-metal-900", "!relative", "before:absolute", "before:top-[4px]", "before:bottom-[4px]", "before:left-1/2", "before:right-0", "before:!bg-[#EFF6FF]", "dark:before:!bg-aurora-500/10", "last:before:!hidden", e?.rangeStart),
|
|
12
|
+
range_end: t("drp-range-end", "[&>button]:!bg-blue-600", "[&>button]:!text-white", "[&>button]:!rounded-full", "[&>button]:hover:!bg-blue-700", "[&>button]:relative", "[&>button]:z-10", "dark:[&>button]:!bg-aurora-500", "dark:[&>button]:hover:!bg-aurora-500", "dark:[&>button]:!text-metal-900", "!relative", "before:absolute", "before:top-[4px]", "before:bottom-[4px]", "before:left-0", "before:right-1/2", "before:!bg-[#EFF6FF]", "dark:before:!bg-aurora-500/10", "first:before:!hidden", e?.rangeEnd),
|
|
13
|
+
range_middle: t("drp-range-middle", "!relative", "before:absolute", "before:top-[4px]", "before:bottom-[4px]", "before:left-0", "before:right-0", "before:!bg-[#EFF6FF]", "dark:before:!bg-aurora-500/10", "first:before:rounded-l-full", "last:before:rounded-r-full", "[&>button]:!text-[#314158]", "[&>button]:!bg-transparent", "[&>button]:!rounded-full", "[&>button]:relative", "[&>button]:z-10", "[&>button]:hover:!bg-blue-100", "dark:[&>button]:!text-white", "dark:[&>button]:hover:!bg-aurora-500/20", e?.rangeMiddle),
|
|
14
|
+
table: t("w-full border-collapse table-fixed", e?.table),
|
|
15
|
+
weekdays: t("text-[#62748e]", "dark:text-metal-400", e?.weekdays),
|
|
16
|
+
weeks: t("[&>tr>td]:p-0", "[&>tr]:h-[38px]", e?.weeks),
|
|
17
|
+
weekday: t("font-semibold", "text-xs", "uppercase", "text-[#62748e]", "dark:text-metal-400", "pb-4", "w-[37px]", e?.weekday),
|
|
18
|
+
today: t("[&>button]:text-[#155dfc]", "dark:[&>button]:text-aurora-500", e?.today),
|
|
19
|
+
month_grid: "w-full",
|
|
20
|
+
disabled: t("[&>button]:opacity-50", "[&>button]:cursor-not-allowed", e?.disabled),
|
|
21
|
+
outside: t("[&>button]:!text-slate-400", "dark:[&>button]:!text-metal-500", e?.outside)
|
|
22
|
+
}), a = 259, b = 32, n = 720 * 60 * 60 * 1e3, d = 56, l = 28, u = 38;
|
|
23
|
+
export {
|
|
24
|
+
l as a,
|
|
25
|
+
a as i,
|
|
26
|
+
d as n,
|
|
27
|
+
u as o,
|
|
28
|
+
n as r,
|
|
29
|
+
o as s,
|
|
30
|
+
b as t
|
|
31
|
+
};
|
package/dist/contexts/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ThemeContext as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import {
|
|
1
|
+
import { ThemeContext as m } from "./theme.context.js";
|
|
2
|
+
import { useTheme as r } from "./theme.hook.js";
|
|
3
|
+
import { t as i } from "../theme.provider-BgxXUOMP.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
m as ThemeContext,
|
|
6
|
+
i as ThemeProvider,
|
|
7
|
+
r as useTheme
|
|
8
8
|
};
|
|
@@ -1,86 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as h, useEffect as g } from "react";
|
|
3
|
-
import { isClient as l } from "../utils/index.js";
|
|
4
|
-
import { ThemeContext as C } from "./theme.context.js";
|
|
5
|
-
function p(r) {
|
|
6
|
-
for (var o = 1; o < arguments.length; o++) {
|
|
7
|
-
var t = arguments[o];
|
|
8
|
-
for (var f in t)
|
|
9
|
-
r[f] = t[f];
|
|
10
|
-
}
|
|
11
|
-
return r;
|
|
12
|
-
}
|
|
13
|
-
var a = {
|
|
14
|
-
read: function(r) {
|
|
15
|
-
return r[0] === '"' && (r = r.slice(1, -1)), r.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
16
|
-
},
|
|
17
|
-
write: function(r) {
|
|
18
|
-
return encodeURIComponent(r).replace(
|
|
19
|
-
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
20
|
-
decodeURIComponent
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
function s(r, o) {
|
|
25
|
-
function t(n, u, e) {
|
|
26
|
-
if (!(typeof document > "u")) {
|
|
27
|
-
e = p({}, o, e), typeof e.expires == "number" && (e.expires = new Date(Date.now() + e.expires * 864e5)), e.expires && (e.expires = e.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
28
|
-
var i = "";
|
|
29
|
-
for (var c in e)
|
|
30
|
-
e[c] && (i += "; " + c, e[c] !== !0 && (i += "=" + e[c].split(";")[0]));
|
|
31
|
-
return document.cookie = n + "=" + r.write(u, n) + i;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function f(n) {
|
|
35
|
-
if (!(typeof document > "u" || arguments.length && !n)) {
|
|
36
|
-
for (var u = document.cookie ? document.cookie.split("; ") : [], e = {}, i = 0; i < u.length; i++) {
|
|
37
|
-
var c = u[i].split("="), m = c.slice(1).join("=");
|
|
38
|
-
try {
|
|
39
|
-
var d = decodeURIComponent(c[0]);
|
|
40
|
-
if (e[d] = r.read(m, d), n === d)
|
|
41
|
-
break;
|
|
42
|
-
} catch {
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return n ? e[n] : e;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return Object.create(
|
|
49
|
-
{
|
|
50
|
-
set: t,
|
|
51
|
-
get: f,
|
|
52
|
-
remove: function(n, u) {
|
|
53
|
-
t(
|
|
54
|
-
n,
|
|
55
|
-
"",
|
|
56
|
-
p({}, u, {
|
|
57
|
-
expires: -1
|
|
58
|
-
})
|
|
59
|
-
);
|
|
60
|
-
},
|
|
61
|
-
withAttributes: function(n) {
|
|
62
|
-
return s(this.converter, p({}, this.attributes, n));
|
|
63
|
-
},
|
|
64
|
-
withConverter: function(n) {
|
|
65
|
-
return s(p({}, this.converter, n), this.attributes);
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
attributes: { value: Object.freeze(o) },
|
|
70
|
-
converter: { value: Object.freeze(r) }
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
var x = s(a, { path: "/" });
|
|
75
|
-
const R = ({
|
|
76
|
-
children: r,
|
|
77
|
-
theme: o
|
|
78
|
-
}) => {
|
|
79
|
-
const [t, f] = h(() => o || (l ? x.get("konstruct-theme") : "kubefirst"));
|
|
80
|
-
return g(() => {
|
|
81
|
-
document.querySelector("body")?.setAttribute("data-theme", t);
|
|
82
|
-
}, [t]), /* @__PURE__ */ v(C.Provider, { value: { theme: t, setTheme: f }, children: r });
|
|
83
|
-
};
|
|
1
|
+
import { t as e } from "../theme.provider-BgxXUOMP.js";
|
|
84
2
|
export {
|
|
85
|
-
|
|
3
|
+
e as ThemeProvider
|
|
86
4
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createContext as A, createElement as c, forwardRef as C, useContext as b } from "react";
|
|
2
|
+
var h = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), L = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), W = (t) => t.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, r, o) => o ? o.toUpperCase() : r.toLowerCase()), d = (t) => {
|
|
3
|
+
const e = W(t);
|
|
4
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
5
|
+
}, n = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: 24,
|
|
8
|
+
height: 24,
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round"
|
|
15
|
+
}, S = (t) => {
|
|
16
|
+
for (const e in t) if (e.startsWith("aria-") || e === "role" || e === "title") return !0;
|
|
17
|
+
return !1;
|
|
18
|
+
}, y = A({}), $ = () => b(y), j = C(({ color: t, size: e, strokeWidth: r, absoluteStrokeWidth: o, className: s = "", children: a, iconNode: m, ...l }, p) => {
|
|
19
|
+
const { size: i = 24, strokeWidth: u = 2, absoluteStrokeWidth: v = !1, color: x = "currentColor", className: w = "" } = $() ?? {}, f = o ?? v ? Number(r ?? u) * 24 / Number(e ?? i) : r ?? u;
|
|
20
|
+
return c("svg", {
|
|
21
|
+
ref: p,
|
|
22
|
+
...n,
|
|
23
|
+
width: e ?? i ?? n.width,
|
|
24
|
+
height: e ?? i ?? n.height,
|
|
25
|
+
stroke: t ?? x,
|
|
26
|
+
strokeWidth: f,
|
|
27
|
+
className: h("lucide", w, s),
|
|
28
|
+
...!a && !S(l) && { "aria-hidden": "true" },
|
|
29
|
+
...l
|
|
30
|
+
}, [...m.map(([k, g]) => c(k, g)), ...Array.isArray(a) ? a : [a]]);
|
|
31
|
+
}), N = (t, e) => {
|
|
32
|
+
const r = C(({ className: o, ...s }, a) => c(j, {
|
|
33
|
+
ref: a,
|
|
34
|
+
iconNode: e,
|
|
35
|
+
className: h(`lucide-${L(d(t))}`, `lucide-${t}`, o),
|
|
36
|
+
...s
|
|
37
|
+
}));
|
|
38
|
+
return r.displayName = d(t), r;
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
N as t
|
|
42
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { t as b } from "./chunk-D1xtDmiO.js";
|
|
2
|
+
import { n as R, o as $, t as A } from "./isObject--aYwGuhx.js";
|
|
3
|
+
var F = /* @__PURE__ */ b(((T, s) => {
|
|
4
|
+
var u = $(), i = function() {
|
|
5
|
+
return u.Date.now();
|
|
6
|
+
};
|
|
7
|
+
s.exports = i;
|
|
8
|
+
})), D = /* @__PURE__ */ b(((T, s) => {
|
|
9
|
+
var u = /\s/;
|
|
10
|
+
function i(m) {
|
|
11
|
+
for (var t = m.length; t-- && u.test(m.charAt(t)); ) ;
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
s.exports = i;
|
|
15
|
+
})), H = /* @__PURE__ */ b(((T, s) => {
|
|
16
|
+
var u = D(), i = /^\s+/;
|
|
17
|
+
function m(t) {
|
|
18
|
+
return t && t.slice(0, u(t) + 1).replace(i, "");
|
|
19
|
+
}
|
|
20
|
+
s.exports = m;
|
|
21
|
+
})), J = /* @__PURE__ */ b(((T, s) => {
|
|
22
|
+
var u = H(), i = A(), m = R(), t = NaN, h = /^[-+]0x[0-9a-f]+$/i, y = /^0b[01]+$/i, E = /^0o[0-7]+$/i, g = parseInt;
|
|
23
|
+
function a(r) {
|
|
24
|
+
if (typeof r == "number") return r;
|
|
25
|
+
if (m(r)) return t;
|
|
26
|
+
if (i(r)) {
|
|
27
|
+
var o = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
28
|
+
r = i(o) ? o + "" : o;
|
|
29
|
+
}
|
|
30
|
+
if (typeof r != "string") return r === 0 ? r : +r;
|
|
31
|
+
r = u(r);
|
|
32
|
+
var f = y.test(r);
|
|
33
|
+
return f || E.test(r) ? g(r.slice(2), f ? 2 : 8) : h.test(r) ? t : +r;
|
|
34
|
+
}
|
|
35
|
+
s.exports = a;
|
|
36
|
+
})), X = /* @__PURE__ */ b(((T, s) => {
|
|
37
|
+
var u = A(), i = F(), m = J(), t = "Expected a function", h = Math.max, y = Math.min;
|
|
38
|
+
function E(g, a, r) {
|
|
39
|
+
var o, f, _, v, n, d, x = 0, O = !1, l = !1, q = !0;
|
|
40
|
+
if (typeof g != "function") throw new TypeError(t);
|
|
41
|
+
a = m(a) || 0, u(r) && (O = !!r.leading, l = "maxWait" in r, _ = l ? h(m(r.maxWait) || 0, a) : _, q = "trailing" in r ? !!r.trailing : q);
|
|
42
|
+
function N(e) {
|
|
43
|
+
var c = o, p = f;
|
|
44
|
+
return o = f = void 0, x = e, v = g.apply(p, c), v;
|
|
45
|
+
}
|
|
46
|
+
function C(e) {
|
|
47
|
+
return x = e, n = setTimeout(I, a), O ? N(e) : v;
|
|
48
|
+
}
|
|
49
|
+
function L(e) {
|
|
50
|
+
var c = e - d, p = e - x, M = a - c;
|
|
51
|
+
return l ? y(M, _ - p) : M;
|
|
52
|
+
}
|
|
53
|
+
function k(e) {
|
|
54
|
+
var c = e - d, p = e - x;
|
|
55
|
+
return d === void 0 || c >= a || c < 0 || l && p >= _;
|
|
56
|
+
}
|
|
57
|
+
function I() {
|
|
58
|
+
var e = i();
|
|
59
|
+
if (k(e)) return W(e);
|
|
60
|
+
n = setTimeout(I, L(e));
|
|
61
|
+
}
|
|
62
|
+
function W(e) {
|
|
63
|
+
return n = void 0, q && o ? N(e) : (o = f = void 0, v);
|
|
64
|
+
}
|
|
65
|
+
function j() {
|
|
66
|
+
n !== void 0 && clearTimeout(n), x = 0, o = d = f = n = void 0;
|
|
67
|
+
}
|
|
68
|
+
function B() {
|
|
69
|
+
return n === void 0 ? v : W(i());
|
|
70
|
+
}
|
|
71
|
+
function S() {
|
|
72
|
+
var e = i(), c = k(e);
|
|
73
|
+
if (o = arguments, f = this, d = e, c) {
|
|
74
|
+
if (n === void 0) return C(d);
|
|
75
|
+
if (l)
|
|
76
|
+
return clearTimeout(n), n = setTimeout(I, a), N(d);
|
|
77
|
+
}
|
|
78
|
+
return n === void 0 && (n = setTimeout(I, a)), v;
|
|
79
|
+
}
|
|
80
|
+
return S.cancel = j, S.flush = B, S;
|
|
81
|
+
}
|
|
82
|
+
s.exports = E;
|
|
83
|
+
}));
|
|
84
|
+
export {
|
|
85
|
+
X as t
|
|
86
|
+
};
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { n as ne } from "./dist-ByyYBtbL.js";
|
|
2
|
+
import { a as I, r as G, s as K, t as C } from "./dist-uVUx9i0a.js";
|
|
3
|
+
import { t as O } from "./dist-DZcOdXgW.js";
|
|
4
|
+
import { t as ae } from "./dist-C8r5DW7s.js";
|
|
5
|
+
import { t as se } from "./dist-DpqiA4Yn.js";
|
|
6
|
+
import { t as L } from "./dist-DstQl8xY.js";
|
|
7
|
+
import { t as ie } from "./dist-DZNdbzbm.js";
|
|
8
|
+
import * as s from "react";
|
|
9
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
10
|
+
var P = "rovingFocusGroup.onEntryFocus", ce = {
|
|
11
|
+
bubbles: !1,
|
|
12
|
+
cancelable: !0
|
|
13
|
+
}, h = "RovingFocusGroup", [N, k, ue] = ie(h), [le, V] = K(h, [ue]), [de, fe] = le(h), U = s.forwardRef((e, o) => /* @__PURE__ */ l(N.Provider, {
|
|
14
|
+
scope: e.__scopeRovingFocusGroup,
|
|
15
|
+
children: /* @__PURE__ */ l(N.Slot, {
|
|
16
|
+
scope: e.__scopeRovingFocusGroup,
|
|
17
|
+
children: /* @__PURE__ */ l(ve, {
|
|
18
|
+
...e,
|
|
19
|
+
ref: o
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
}));
|
|
23
|
+
U.displayName = h;
|
|
24
|
+
var ve = s.forwardRef((e, o) => {
|
|
25
|
+
const { __scopeRovingFocusGroup: n, orientation: t, loop: u = !1, dir: d, currentTabStopId: a, defaultCurrentTabStopId: v, onCurrentTabStopIdChange: T, onEntryFocus: p, preventScrollOnEntryFocus: r = !1, ...i } = e, b = s.useRef(null), E = ne(o, b), w = L(d), [S, c] = G({
|
|
26
|
+
prop: a,
|
|
27
|
+
defaultProp: v ?? null,
|
|
28
|
+
onChange: T,
|
|
29
|
+
caller: h
|
|
30
|
+
}), [F, m] = s.useState(!1), g = ae(p), te = k(n), A = s.useRef(!1), [oe, x] = s.useState(0);
|
|
31
|
+
return s.useEffect(() => {
|
|
32
|
+
const f = b.current;
|
|
33
|
+
if (f)
|
|
34
|
+
return f.addEventListener(P, g), () => f.removeEventListener(P, g);
|
|
35
|
+
}, [g]), /* @__PURE__ */ l(de, {
|
|
36
|
+
scope: n,
|
|
37
|
+
orientation: t,
|
|
38
|
+
dir: w,
|
|
39
|
+
loop: u,
|
|
40
|
+
currentTabStopId: S,
|
|
41
|
+
onItemFocus: s.useCallback((f) => c(f), [c]),
|
|
42
|
+
onItemShiftTab: s.useCallback(() => m(!0), []),
|
|
43
|
+
onFocusableItemAdd: s.useCallback(() => x((f) => f + 1), []),
|
|
44
|
+
onFocusableItemRemove: s.useCallback(() => x((f) => f - 1), []),
|
|
45
|
+
children: /* @__PURE__ */ l(C.div, {
|
|
46
|
+
tabIndex: F || oe === 0 ? -1 : 0,
|
|
47
|
+
"data-orientation": t,
|
|
48
|
+
...i,
|
|
49
|
+
ref: E,
|
|
50
|
+
style: {
|
|
51
|
+
outline: "none",
|
|
52
|
+
...e.style
|
|
53
|
+
},
|
|
54
|
+
onMouseDown: I(e.onMouseDown, () => {
|
|
55
|
+
A.current = !0;
|
|
56
|
+
}),
|
|
57
|
+
onFocus: I(e.onFocus, (f) => {
|
|
58
|
+
const re = !A.current;
|
|
59
|
+
if (f.target === f.currentTarget && re && !F) {
|
|
60
|
+
const M = new CustomEvent(P, ce);
|
|
61
|
+
if (f.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
62
|
+
const y = te().filter((R) => R.focusable);
|
|
63
|
+
Y([
|
|
64
|
+
y.find((R) => R.active),
|
|
65
|
+
y.find((R) => R.id === S),
|
|
66
|
+
...y
|
|
67
|
+
].filter(Boolean).map((R) => R.ref.current), r);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
A.current = !1;
|
|
71
|
+
}),
|
|
72
|
+
onBlur: I(e.onBlur, () => m(!1))
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
}), B = "RovingFocusGroupItem", $ = s.forwardRef((e, o) => {
|
|
76
|
+
const { __scopeRovingFocusGroup: n, focusable: t = !0, active: u = !1, tabStopId: d, children: a, ...v } = e, T = O(), p = d || T, r = fe(B, n), i = r.currentTabStopId === p, b = k(n), { onFocusableItemAdd: E, onFocusableItemRemove: w, currentTabStopId: S } = r;
|
|
77
|
+
return s.useEffect(() => {
|
|
78
|
+
if (t)
|
|
79
|
+
return E(), () => w();
|
|
80
|
+
}, [
|
|
81
|
+
t,
|
|
82
|
+
E,
|
|
83
|
+
w
|
|
84
|
+
]), /* @__PURE__ */ l(N.ItemSlot, {
|
|
85
|
+
scope: n,
|
|
86
|
+
id: p,
|
|
87
|
+
focusable: t,
|
|
88
|
+
active: u,
|
|
89
|
+
children: /* @__PURE__ */ l(C.span, {
|
|
90
|
+
tabIndex: i ? 0 : -1,
|
|
91
|
+
"data-orientation": r.orientation,
|
|
92
|
+
...v,
|
|
93
|
+
ref: o,
|
|
94
|
+
onMouseDown: I(e.onMouseDown, (c) => {
|
|
95
|
+
t ? r.onItemFocus(p) : c.preventDefault();
|
|
96
|
+
}),
|
|
97
|
+
onFocus: I(e.onFocus, () => r.onItemFocus(p)),
|
|
98
|
+
onKeyDown: I(e.onKeyDown, (c) => {
|
|
99
|
+
if (c.key === "Tab" && c.shiftKey) {
|
|
100
|
+
r.onItemShiftTab();
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (c.target !== c.currentTarget) return;
|
|
104
|
+
const F = me(c, r.orientation, r.dir);
|
|
105
|
+
if (F !== void 0) {
|
|
106
|
+
if (c.metaKey || c.ctrlKey || c.altKey || c.shiftKey) return;
|
|
107
|
+
c.preventDefault();
|
|
108
|
+
let m = b().filter((g) => g.focusable).map((g) => g.ref.current);
|
|
109
|
+
if (F === "last") m.reverse();
|
|
110
|
+
else if (F === "prev" || F === "next") {
|
|
111
|
+
F === "prev" && m.reverse();
|
|
112
|
+
const g = m.indexOf(c.currentTarget);
|
|
113
|
+
m = r.loop ? ge(m, g + 1) : m.slice(g + 1);
|
|
114
|
+
}
|
|
115
|
+
setTimeout(() => Y(m));
|
|
116
|
+
}
|
|
117
|
+
}),
|
|
118
|
+
children: typeof a == "function" ? a({
|
|
119
|
+
isCurrentTabStop: i,
|
|
120
|
+
hasTabStop: S != null
|
|
121
|
+
}) : a
|
|
122
|
+
})
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
$.displayName = B;
|
|
126
|
+
var pe = {
|
|
127
|
+
ArrowLeft: "prev",
|
|
128
|
+
ArrowUp: "prev",
|
|
129
|
+
ArrowRight: "next",
|
|
130
|
+
ArrowDown: "next",
|
|
131
|
+
PageUp: "first",
|
|
132
|
+
Home: "first",
|
|
133
|
+
PageDown: "last",
|
|
134
|
+
End: "last"
|
|
135
|
+
};
|
|
136
|
+
function be(e, o) {
|
|
137
|
+
return o !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
138
|
+
}
|
|
139
|
+
function me(e, o, n) {
|
|
140
|
+
const t = be(e.key, n);
|
|
141
|
+
if (!(o === "vertical" && ["ArrowLeft", "ArrowRight"].includes(t)) && !(o === "horizontal" && ["ArrowUp", "ArrowDown"].includes(t)))
|
|
142
|
+
return pe[t];
|
|
143
|
+
}
|
|
144
|
+
function Y(e, o = !1) {
|
|
145
|
+
const n = document.activeElement;
|
|
146
|
+
for (const t of e)
|
|
147
|
+
if (t === n || (t.focus({ preventScroll: o }), document.activeElement !== n)) return;
|
|
148
|
+
}
|
|
149
|
+
function ge(e, o) {
|
|
150
|
+
return e.map((n, t) => e[(o + t) % e.length]);
|
|
151
|
+
}
|
|
152
|
+
var Te = U, Ie = $, _ = "Tabs", [Fe, Pe] = K(_, [V]), z = V(), [Re, D] = Fe(_), H = s.forwardRef((e, o) => {
|
|
153
|
+
const { __scopeTabs: n, value: t, onValueChange: u, defaultValue: d, orientation: a = "horizontal", dir: v, activationMode: T = "automatic", ...p } = e, r = L(v), [i, b] = G({
|
|
154
|
+
prop: t,
|
|
155
|
+
onChange: u,
|
|
156
|
+
defaultProp: d ?? "",
|
|
157
|
+
caller: _
|
|
158
|
+
});
|
|
159
|
+
return /* @__PURE__ */ l(Re, {
|
|
160
|
+
scope: n,
|
|
161
|
+
baseId: O(),
|
|
162
|
+
value: i,
|
|
163
|
+
onValueChange: b,
|
|
164
|
+
orientation: a,
|
|
165
|
+
dir: r,
|
|
166
|
+
activationMode: T,
|
|
167
|
+
children: /* @__PURE__ */ l(C.div, {
|
|
168
|
+
dir: r,
|
|
169
|
+
"data-orientation": a,
|
|
170
|
+
...p,
|
|
171
|
+
ref: o
|
|
172
|
+
})
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
H.displayName = _;
|
|
176
|
+
var j = "TabsList", q = s.forwardRef((e, o) => {
|
|
177
|
+
const { __scopeTabs: n, loop: t = !0, ...u } = e, d = D(j, n), a = z(n);
|
|
178
|
+
return /* @__PURE__ */ l(Te, {
|
|
179
|
+
asChild: !0,
|
|
180
|
+
...a,
|
|
181
|
+
orientation: d.orientation,
|
|
182
|
+
dir: d.dir,
|
|
183
|
+
loop: t,
|
|
184
|
+
children: /* @__PURE__ */ l(C.div, {
|
|
185
|
+
role: "tablist",
|
|
186
|
+
"aria-orientation": d.orientation,
|
|
187
|
+
...u,
|
|
188
|
+
ref: o
|
|
189
|
+
})
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
q.displayName = j;
|
|
193
|
+
var J = "TabsTrigger", Q = s.forwardRef((e, o) => {
|
|
194
|
+
const { __scopeTabs: n, value: t, disabled: u = !1, ...d } = e, a = D(J, n), v = z(n), T = Z(a.baseId, t), p = ee(a.baseId, t), r = t === a.value;
|
|
195
|
+
return /* @__PURE__ */ l(Ie, {
|
|
196
|
+
asChild: !0,
|
|
197
|
+
...v,
|
|
198
|
+
focusable: !u,
|
|
199
|
+
active: r,
|
|
200
|
+
children: /* @__PURE__ */ l(C.button, {
|
|
201
|
+
type: "button",
|
|
202
|
+
role: "tab",
|
|
203
|
+
"aria-selected": r,
|
|
204
|
+
"aria-controls": p,
|
|
205
|
+
"data-state": r ? "active" : "inactive",
|
|
206
|
+
"data-disabled": u ? "" : void 0,
|
|
207
|
+
disabled: u,
|
|
208
|
+
id: T,
|
|
209
|
+
...d,
|
|
210
|
+
ref: o,
|
|
211
|
+
onMouseDown: I(e.onMouseDown, (i) => {
|
|
212
|
+
!u && i.button === 0 && i.ctrlKey === !1 ? a.onValueChange(t) : i.preventDefault();
|
|
213
|
+
}),
|
|
214
|
+
onKeyDown: I(e.onKeyDown, (i) => {
|
|
215
|
+
[" ", "Enter"].includes(i.key) && a.onValueChange(t);
|
|
216
|
+
}),
|
|
217
|
+
onFocus: I(e.onFocus, () => {
|
|
218
|
+
const i = a.activationMode !== "manual";
|
|
219
|
+
!r && !u && i && a.onValueChange(t);
|
|
220
|
+
})
|
|
221
|
+
})
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
Q.displayName = J;
|
|
225
|
+
var W = "TabsContent", X = s.forwardRef((e, o) => {
|
|
226
|
+
const { __scopeTabs: n, value: t, forceMount: u, children: d, ...a } = e, v = D(W, n), T = Z(v.baseId, t), p = ee(v.baseId, t), r = t === v.value, i = s.useRef(r);
|
|
227
|
+
return s.useEffect(() => {
|
|
228
|
+
const b = requestAnimationFrame(() => i.current = !1);
|
|
229
|
+
return () => cancelAnimationFrame(b);
|
|
230
|
+
}, []), /* @__PURE__ */ l(se, {
|
|
231
|
+
present: u || r,
|
|
232
|
+
children: ({ present: b }) => /* @__PURE__ */ l(C.div, {
|
|
233
|
+
"data-state": r ? "active" : "inactive",
|
|
234
|
+
"data-orientation": v.orientation,
|
|
235
|
+
role: "tabpanel",
|
|
236
|
+
"aria-labelledby": T,
|
|
237
|
+
hidden: !b,
|
|
238
|
+
id: p,
|
|
239
|
+
tabIndex: 0,
|
|
240
|
+
...a,
|
|
241
|
+
ref: o,
|
|
242
|
+
style: {
|
|
243
|
+
...e.style,
|
|
244
|
+
animationDuration: i.current ? "0s" : void 0
|
|
245
|
+
},
|
|
246
|
+
children: b && d
|
|
247
|
+
})
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
X.displayName = W;
|
|
251
|
+
function Z(e, o) {
|
|
252
|
+
return `${e}-trigger-${o}`;
|
|
253
|
+
}
|
|
254
|
+
function ee(e, o) {
|
|
255
|
+
return `${e}-content-${o}`;
|
|
256
|
+
}
|
|
257
|
+
var Ne = H, De = q, xe = Q, Me = X;
|
|
258
|
+
export {
|
|
259
|
+
xe as i,
|
|
260
|
+
De as n,
|
|
261
|
+
Ne as r,
|
|
262
|
+
Me as t
|
|
263
|
+
};
|