@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
|
@@ -1,513 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import * as n from "react";
|
|
4
|
-
import { useRef as be, useEffect as ge, useMemo as ne, isValidElement as j, useCallback as Se } from "react";
|
|
5
|
-
import * as Ne from "react-dom";
|
|
6
|
-
import { P as D, a as Ie, c as b, b as Ae, d as De, u as _e } from "../../index--l0zux8V.js";
|
|
7
|
-
import { u as ce } from "../../index-DLcqcWxM.js";
|
|
8
|
-
import { c as Fe } from "../../index-CJnS4BVW.js";
|
|
9
|
-
import { B as Le, R as Me, P as ke } from "../../index-BvEpLnOv.js";
|
|
10
|
-
import { P as Oe } from "../../index-3fEdeexs.js";
|
|
11
|
-
import { u as Y } from "../../index-0ioNhtNM.js";
|
|
12
|
-
import { R as Ve } from "../../index-BKjcReYh.js";
|
|
13
|
-
import { cn as U } from "../../utils/index.js";
|
|
14
|
-
import { closeToastVariants as Ke, toastVariants as He, viewportToastVariants as We } from "./Toast.variants.js";
|
|
15
|
-
import { CheckCircleFilledIcon as Ue } from "../../assets/icons/components/CheckCircleFilled.js";
|
|
16
|
-
import { ErrorIcon as Xe } from "../../assets/icons/components/Error.js";
|
|
17
|
-
import { WarningTriangleIcon as Ye } from "../../assets/icons/components/WarningTriangle.js";
|
|
18
|
-
import { X as $e } from "../../x-Eoa9FJjA.js";
|
|
19
|
-
var ze = Object.freeze({
|
|
20
|
-
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
21
|
-
position: "absolute",
|
|
22
|
-
border: 0,
|
|
23
|
-
width: 1,
|
|
24
|
-
height: 1,
|
|
25
|
-
padding: 0,
|
|
26
|
-
margin: -1,
|
|
27
|
-
overflow: "hidden",
|
|
28
|
-
clip: "rect(0, 0, 0, 0)",
|
|
29
|
-
whiteSpace: "nowrap",
|
|
30
|
-
wordWrap: "normal"
|
|
31
|
-
}), Be = "VisuallyHidden", Z = n.forwardRef(
|
|
32
|
-
(e, o) => /* @__PURE__ */ s(
|
|
33
|
-
D.span,
|
|
34
|
-
{
|
|
35
|
-
...e,
|
|
36
|
-
ref: o,
|
|
37
|
-
style: { ...ze, ...e.style }
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
);
|
|
41
|
-
Z.displayName = Be;
|
|
42
|
-
var ee = "ToastProvider", [te, je, qe] = Fe("Toast"), [ue] = Ae("Toast", [qe]), [Ge, $] = ue(ee), le = (e) => {
|
|
43
|
-
const {
|
|
44
|
-
__scopeToast: o,
|
|
45
|
-
label: r = "Notification",
|
|
46
|
-
duration: t = 5e3,
|
|
47
|
-
swipeDirection: u = "right",
|
|
48
|
-
swipeThreshold: d = 50,
|
|
49
|
-
children: f
|
|
50
|
-
} = e, [w, v] = n.useState(null), [c, E] = n.useState(0), T = n.useRef(!1), x = n.useRef(!1);
|
|
51
|
-
return r.trim() || console.error(
|
|
52
|
-
`Invalid prop \`label\` supplied to \`${ee}\`. Expected non-empty \`string\`.`
|
|
53
|
-
), /* @__PURE__ */ s(te.Provider, { scope: o, children: /* @__PURE__ */ s(
|
|
54
|
-
Ge,
|
|
55
|
-
{
|
|
56
|
-
scope: o,
|
|
57
|
-
label: r,
|
|
58
|
-
duration: t,
|
|
59
|
-
swipeDirection: u,
|
|
60
|
-
swipeThreshold: d,
|
|
61
|
-
toastCount: c,
|
|
62
|
-
viewport: w,
|
|
63
|
-
onViewportChange: v,
|
|
64
|
-
onToastAdd: n.useCallback(() => E((R) => R + 1), []),
|
|
65
|
-
onToastRemove: n.useCallback(() => E((R) => R - 1), []),
|
|
66
|
-
isFocusedToastEscapeKeyDownRef: T,
|
|
67
|
-
isClosePausedRef: x,
|
|
68
|
-
children: f
|
|
69
|
-
}
|
|
70
|
-
) });
|
|
71
|
-
};
|
|
72
|
-
le.displayName = ee;
|
|
73
|
-
var de = "ToastViewport", Je = ["F8"], G = "toast.viewportPause", J = "toast.viewportResume", fe = n.forwardRef(
|
|
74
|
-
(e, o) => {
|
|
75
|
-
const {
|
|
76
|
-
__scopeToast: r,
|
|
77
|
-
hotkey: t = Je,
|
|
78
|
-
label: u = "Notifications ({hotkey})",
|
|
79
|
-
...d
|
|
80
|
-
} = e, f = $(de, r), w = je(r), v = n.useRef(null), c = n.useRef(null), E = n.useRef(null), T = n.useRef(null), x = ce(o, T, f.onViewportChange), R = t.join("+").replace(/Key/g, "").replace(/Digit/g, ""), g = f.toastCount > 0;
|
|
81
|
-
n.useEffect(() => {
|
|
82
|
-
const a = (y) => {
|
|
83
|
-
t.length !== 0 && t.every((m) => y[m] || y.code === m) && T.current?.focus();
|
|
84
|
-
};
|
|
85
|
-
return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
|
|
86
|
-
}, [t]), n.useEffect(() => {
|
|
87
|
-
const a = v.current, y = T.current;
|
|
88
|
-
if (g && a && y) {
|
|
89
|
-
const p = () => {
|
|
90
|
-
if (!f.isClosePausedRef.current) {
|
|
91
|
-
const h = new CustomEvent(G);
|
|
92
|
-
y.dispatchEvent(h), f.isClosePausedRef.current = !0;
|
|
93
|
-
}
|
|
94
|
-
}, m = () => {
|
|
95
|
-
if (f.isClosePausedRef.current) {
|
|
96
|
-
const h = new CustomEvent(J);
|
|
97
|
-
y.dispatchEvent(h), f.isClosePausedRef.current = !1;
|
|
98
|
-
}
|
|
99
|
-
}, P = (h) => {
|
|
100
|
-
!a.contains(h.relatedTarget) && m();
|
|
101
|
-
}, C = () => {
|
|
102
|
-
a.contains(document.activeElement) || m();
|
|
103
|
-
};
|
|
104
|
-
return a.addEventListener("focusin", p), a.addEventListener("focusout", P), a.addEventListener("pointermove", p), a.addEventListener("pointerleave", C), window.addEventListener("blur", p), window.addEventListener("focus", m), () => {
|
|
105
|
-
a.removeEventListener("focusin", p), a.removeEventListener("focusout", P), a.removeEventListener("pointermove", p), a.removeEventListener("pointerleave", C), window.removeEventListener("blur", p), window.removeEventListener("focus", m);
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
}, [g, f.isClosePausedRef]);
|
|
109
|
-
const l = n.useCallback(
|
|
110
|
-
({ tabbingDirection: a }) => {
|
|
111
|
-
const p = w().map((m) => {
|
|
112
|
-
const P = m.ref.current, C = [P, ...lt(P)];
|
|
113
|
-
return a === "forwards" ? C : C.reverse();
|
|
114
|
-
});
|
|
115
|
-
return (a === "forwards" ? p.reverse() : p).flat();
|
|
116
|
-
},
|
|
117
|
-
[w]
|
|
118
|
-
);
|
|
119
|
-
return n.useEffect(() => {
|
|
120
|
-
const a = T.current;
|
|
121
|
-
if (a) {
|
|
122
|
-
const y = (p) => {
|
|
123
|
-
const m = p.altKey || p.ctrlKey || p.metaKey;
|
|
124
|
-
if (p.key === "Tab" && !m) {
|
|
125
|
-
const C = document.activeElement, h = p.shiftKey;
|
|
126
|
-
if (p.target === a && h) {
|
|
127
|
-
c.current?.focus();
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
const F = l({ tabbingDirection: h ? "backwards" : "forwards" }), V = F.findIndex((A) => A === C);
|
|
131
|
-
q(F.slice(V + 1)) ? p.preventDefault() : h ? c.current?.focus() : E.current?.focus();
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
return a.addEventListener("keydown", y), () => a.removeEventListener("keydown", y);
|
|
135
|
-
}
|
|
136
|
-
}, [w, l]), /* @__PURE__ */ I(
|
|
137
|
-
Le,
|
|
138
|
-
{
|
|
139
|
-
ref: v,
|
|
140
|
-
role: "region",
|
|
141
|
-
"aria-label": u.replace("{hotkey}", R),
|
|
142
|
-
tabIndex: -1,
|
|
143
|
-
style: { pointerEvents: g ? void 0 : "none" },
|
|
144
|
-
children: [
|
|
145
|
-
g && /* @__PURE__ */ s(
|
|
146
|
-
Q,
|
|
147
|
-
{
|
|
148
|
-
ref: c,
|
|
149
|
-
onFocusFromOutsideViewport: () => {
|
|
150
|
-
const a = l({
|
|
151
|
-
tabbingDirection: "forwards"
|
|
152
|
-
});
|
|
153
|
-
q(a);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
),
|
|
157
|
-
/* @__PURE__ */ s(te.Slot, { scope: r, children: /* @__PURE__ */ s(D.ol, { tabIndex: -1, ...d, ref: x }) }),
|
|
158
|
-
g && /* @__PURE__ */ s(
|
|
159
|
-
Q,
|
|
160
|
-
{
|
|
161
|
-
ref: E,
|
|
162
|
-
onFocusFromOutsideViewport: () => {
|
|
163
|
-
const a = l({
|
|
164
|
-
tabbingDirection: "backwards"
|
|
165
|
-
});
|
|
166
|
-
q(a);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
)
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
);
|
|
175
|
-
fe.displayName = de;
|
|
176
|
-
var pe = "ToastFocusProxy", Q = n.forwardRef(
|
|
177
|
-
(e, o) => {
|
|
178
|
-
const { __scopeToast: r, onFocusFromOutsideViewport: t, ...u } = e, d = $(pe, r);
|
|
179
|
-
return /* @__PURE__ */ s(
|
|
180
|
-
Z,
|
|
181
|
-
{
|
|
182
|
-
tabIndex: 0,
|
|
183
|
-
...u,
|
|
184
|
-
ref: o,
|
|
185
|
-
style: { position: "fixed" },
|
|
186
|
-
onFocus: (f) => {
|
|
187
|
-
const w = f.relatedTarget;
|
|
188
|
-
!d.viewport?.contains(w) && t();
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
|
-
Q.displayName = pe;
|
|
195
|
-
var k = "Toast", Qe = "toast.swipeStart", Ze = "toast.swipeMove", et = "toast.swipeCancel", tt = "toast.swipeEnd", me = n.forwardRef(
|
|
196
|
-
(e, o) => {
|
|
197
|
-
const { forceMount: r, open: t, defaultOpen: u, onOpenChange: d, ...f } = e, [w, v] = Ie({
|
|
198
|
-
prop: t,
|
|
199
|
-
defaultProp: u ?? !0,
|
|
200
|
-
onChange: d,
|
|
201
|
-
caller: k
|
|
202
|
-
});
|
|
203
|
-
return /* @__PURE__ */ s(Oe, { present: r || w, children: /* @__PURE__ */ s(
|
|
204
|
-
nt,
|
|
205
|
-
{
|
|
206
|
-
open: w,
|
|
207
|
-
...f,
|
|
208
|
-
ref: o,
|
|
209
|
-
onClose: () => v(!1),
|
|
210
|
-
onPause: Y(e.onPause),
|
|
211
|
-
onResume: Y(e.onResume),
|
|
212
|
-
onSwipeStart: b(e.onSwipeStart, (c) => {
|
|
213
|
-
c.currentTarget.setAttribute("data-swipe", "start");
|
|
214
|
-
}),
|
|
215
|
-
onSwipeMove: b(e.onSwipeMove, (c) => {
|
|
216
|
-
const { x: E, y: T } = c.detail.delta;
|
|
217
|
-
c.currentTarget.setAttribute("data-swipe", "move"), c.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${E}px`), c.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${T}px`);
|
|
218
|
-
}),
|
|
219
|
-
onSwipeCancel: b(e.onSwipeCancel, (c) => {
|
|
220
|
-
c.currentTarget.setAttribute("data-swipe", "cancel"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
221
|
-
}),
|
|
222
|
-
onSwipeEnd: b(e.onSwipeEnd, (c) => {
|
|
223
|
-
const { x: E, y: T } = c.detail.delta;
|
|
224
|
-
c.currentTarget.setAttribute("data-swipe", "end"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), c.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${E}px`), c.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${T}px`), v(!1);
|
|
225
|
-
})
|
|
226
|
-
}
|
|
227
|
-
) });
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
me.displayName = k;
|
|
231
|
-
var [ot, rt] = ue(k, {
|
|
232
|
-
onClose() {
|
|
233
|
-
}
|
|
234
|
-
}), nt = n.forwardRef(
|
|
235
|
-
(e, o) => {
|
|
236
|
-
const {
|
|
237
|
-
__scopeToast: r,
|
|
238
|
-
type: t = "foreground",
|
|
239
|
-
duration: u,
|
|
240
|
-
open: d,
|
|
241
|
-
onClose: f,
|
|
242
|
-
onEscapeKeyDown: w,
|
|
243
|
-
onPause: v,
|
|
244
|
-
onResume: c,
|
|
245
|
-
onSwipeStart: E,
|
|
246
|
-
onSwipeMove: T,
|
|
247
|
-
onSwipeCancel: x,
|
|
248
|
-
onSwipeEnd: R,
|
|
249
|
-
...g
|
|
250
|
-
} = e, l = $(k, r), [a, y] = n.useState(null), p = ce(o, (i) => y(i)), m = n.useRef(null), P = n.useRef(null), C = u || l.duration, h = n.useRef(0), _ = n.useRef(C), O = n.useRef(0), { onToastAdd: F, onToastRemove: V } = l, A = Y(() => {
|
|
251
|
-
a?.contains(document.activeElement) && l.viewport?.focus(), f();
|
|
252
|
-
}), K = n.useCallback(
|
|
253
|
-
(i) => {
|
|
254
|
-
!i || i === 1 / 0 || (window.clearTimeout(O.current), h.current = (/* @__PURE__ */ new Date()).getTime(), O.current = window.setTimeout(A, i));
|
|
255
|
-
},
|
|
256
|
-
[A]
|
|
257
|
-
);
|
|
258
|
-
n.useEffect(() => {
|
|
259
|
-
const i = l.viewport;
|
|
260
|
-
if (i) {
|
|
261
|
-
const S = () => {
|
|
262
|
-
K(_.current), c?.();
|
|
263
|
-
}, N = () => {
|
|
264
|
-
const L = (/* @__PURE__ */ new Date()).getTime() - h.current;
|
|
265
|
-
_.current = _.current - L, window.clearTimeout(O.current), v?.();
|
|
266
|
-
};
|
|
267
|
-
return i.addEventListener(G, N), i.addEventListener(J, S), () => {
|
|
268
|
-
i.removeEventListener(G, N), i.removeEventListener(J, S);
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
}, [l.viewport, C, v, c, K]), n.useEffect(() => {
|
|
272
|
-
d && !l.isClosePausedRef.current && K(C);
|
|
273
|
-
}, [d, C, l.isClosePausedRef, K]), n.useEffect(() => (F(), () => V()), [F, V]);
|
|
274
|
-
const oe = n.useMemo(() => a ? Ce(a) : null, [a]);
|
|
275
|
-
return l.viewport ? /* @__PURE__ */ I(ie, { children: [
|
|
276
|
-
oe && /* @__PURE__ */ s(
|
|
277
|
-
st,
|
|
278
|
-
{
|
|
279
|
-
__scopeToast: r,
|
|
280
|
-
role: "status",
|
|
281
|
-
"aria-live": t === "foreground" ? "assertive" : "polite",
|
|
282
|
-
children: oe
|
|
283
|
-
}
|
|
284
|
-
),
|
|
285
|
-
/* @__PURE__ */ s(ot, { scope: r, onClose: A, children: Ne.createPortal(
|
|
286
|
-
/* @__PURE__ */ s(te.ItemSlot, { scope: r, children: /* @__PURE__ */ s(
|
|
287
|
-
Me,
|
|
288
|
-
{
|
|
289
|
-
asChild: !0,
|
|
290
|
-
onEscapeKeyDown: b(w, () => {
|
|
291
|
-
l.isFocusedToastEscapeKeyDownRef.current || A(), l.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
292
|
-
}),
|
|
293
|
-
children: /* @__PURE__ */ s(
|
|
294
|
-
D.li,
|
|
295
|
-
{
|
|
296
|
-
tabIndex: 0,
|
|
297
|
-
"data-state": d ? "open" : "closed",
|
|
298
|
-
"data-swipe-direction": l.swipeDirection,
|
|
299
|
-
...g,
|
|
300
|
-
ref: p,
|
|
301
|
-
style: { userSelect: "none", touchAction: "none", ...e.style },
|
|
302
|
-
onKeyDown: b(e.onKeyDown, (i) => {
|
|
303
|
-
i.key === "Escape" && (w?.(i.nativeEvent), i.nativeEvent.defaultPrevented || (l.isFocusedToastEscapeKeyDownRef.current = !0, A()));
|
|
304
|
-
}),
|
|
305
|
-
onPointerDown: b(e.onPointerDown, (i) => {
|
|
306
|
-
i.button === 0 && (m.current = { x: i.clientX, y: i.clientY });
|
|
307
|
-
}),
|
|
308
|
-
onPointerMove: b(e.onPointerMove, (i) => {
|
|
309
|
-
if (!m.current) return;
|
|
310
|
-
const S = i.clientX - m.current.x, N = i.clientY - m.current.y, L = !!P.current, M = ["left", "right"].includes(l.swipeDirection), H = ["left", "up"].includes(l.swipeDirection) ? Math.min : Math.max, xe = M ? H(0, S) : 0, Re = M ? 0 : H(0, N), z = i.pointerType === "touch" ? 10 : 2, W = { x: xe, y: Re }, re = { originalEvent: i, delta: W };
|
|
311
|
-
L ? (P.current = W, X(Ze, T, re, {
|
|
312
|
-
discrete: !1
|
|
313
|
-
})) : se(W, l.swipeDirection, z) ? (P.current = W, X(Qe, E, re, {
|
|
314
|
-
discrete: !1
|
|
315
|
-
}), i.target.setPointerCapture(i.pointerId)) : (Math.abs(S) > z || Math.abs(N) > z) && (m.current = null);
|
|
316
|
-
}),
|
|
317
|
-
onPointerUp: b(e.onPointerUp, (i) => {
|
|
318
|
-
const S = P.current, N = i.target;
|
|
319
|
-
if (N.hasPointerCapture(i.pointerId) && N.releasePointerCapture(i.pointerId), P.current = null, m.current = null, S) {
|
|
320
|
-
const L = i.currentTarget, M = { originalEvent: i, delta: S };
|
|
321
|
-
se(S, l.swipeDirection, l.swipeThreshold) ? X(tt, R, M, {
|
|
322
|
-
discrete: !0
|
|
323
|
-
}) : X(
|
|
324
|
-
et,
|
|
325
|
-
x,
|
|
326
|
-
M,
|
|
327
|
-
{
|
|
328
|
-
discrete: !0
|
|
329
|
-
}
|
|
330
|
-
), L.addEventListener("click", (H) => H.preventDefault(), {
|
|
331
|
-
once: !0
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
})
|
|
335
|
-
}
|
|
336
|
-
)
|
|
337
|
-
}
|
|
338
|
-
) }),
|
|
339
|
-
l.viewport
|
|
340
|
-
) })
|
|
341
|
-
] }) : null;
|
|
342
|
-
}
|
|
343
|
-
), st = (e) => {
|
|
344
|
-
const { __scopeToast: o, children: r, ...t } = e, u = $(k, o), [d, f] = n.useState(!1), [w, v] = n.useState(!1);
|
|
345
|
-
return ct(() => f(!0)), n.useEffect(() => {
|
|
346
|
-
const c = window.setTimeout(() => v(!0), 1e3);
|
|
347
|
-
return () => window.clearTimeout(c);
|
|
348
|
-
}, []), w ? null : /* @__PURE__ */ s(ke, { asChild: !0, children: /* @__PURE__ */ s(Z, { ...t, children: d && /* @__PURE__ */ I(ie, { children: [
|
|
349
|
-
u.label,
|
|
350
|
-
" ",
|
|
351
|
-
r
|
|
352
|
-
] }) }) });
|
|
353
|
-
}, at = "ToastTitle", we = n.forwardRef(
|
|
354
|
-
(e, o) => {
|
|
355
|
-
const { __scopeToast: r, ...t } = e;
|
|
356
|
-
return /* @__PURE__ */ s(D.div, { ...t, ref: o });
|
|
357
|
-
}
|
|
358
|
-
);
|
|
359
|
-
we.displayName = at;
|
|
360
|
-
var it = "ToastDescription", Te = n.forwardRef(
|
|
361
|
-
(e, o) => {
|
|
362
|
-
const { __scopeToast: r, ...t } = e;
|
|
363
|
-
return /* @__PURE__ */ s(D.div, { ...t, ref: o });
|
|
364
|
-
}
|
|
365
|
-
);
|
|
366
|
-
Te.displayName = it;
|
|
367
|
-
var ve = "ToastAction", Ee = n.forwardRef(
|
|
368
|
-
(e, o) => {
|
|
369
|
-
const { altText: r, ...t } = e;
|
|
370
|
-
return r.trim() ? /* @__PURE__ */ s(Pe, { altText: r, asChild: !0, children: /* @__PURE__ */ s(ye, { ...t, ref: o }) }) : (console.error(
|
|
371
|
-
`Invalid prop \`altText\` supplied to \`${ve}\`. Expected non-empty \`string\`.`
|
|
372
|
-
), null);
|
|
373
|
-
}
|
|
374
|
-
);
|
|
375
|
-
Ee.displayName = ve;
|
|
376
|
-
var he = "ToastClose", ye = n.forwardRef(
|
|
377
|
-
(e, o) => {
|
|
378
|
-
const { __scopeToast: r, ...t } = e, u = rt(he, r);
|
|
379
|
-
return /* @__PURE__ */ s(Pe, { asChild: !0, children: /* @__PURE__ */ s(
|
|
380
|
-
D.button,
|
|
381
|
-
{
|
|
382
|
-
type: "button",
|
|
383
|
-
...t,
|
|
384
|
-
ref: o,
|
|
385
|
-
onClick: b(e.onClick, u.onClose)
|
|
386
|
-
}
|
|
387
|
-
) });
|
|
388
|
-
}
|
|
389
|
-
);
|
|
390
|
-
ye.displayName = he;
|
|
391
|
-
var Pe = n.forwardRef((e, o) => {
|
|
392
|
-
const { __scopeToast: r, altText: t, ...u } = e;
|
|
393
|
-
return /* @__PURE__ */ s(
|
|
394
|
-
D.div,
|
|
395
|
-
{
|
|
396
|
-
"data-radix-toast-announce-exclude": "",
|
|
397
|
-
"data-radix-toast-announce-alt": t || void 0,
|
|
398
|
-
...u,
|
|
399
|
-
ref: o
|
|
400
|
-
}
|
|
401
|
-
);
|
|
402
|
-
});
|
|
403
|
-
function Ce(e) {
|
|
404
|
-
const o = [];
|
|
405
|
-
return Array.from(e.childNodes).forEach((t) => {
|
|
406
|
-
if (t.nodeType === t.TEXT_NODE && t.textContent && o.push(t.textContent), ut(t)) {
|
|
407
|
-
const u = t.ariaHidden || t.hidden || t.style.display === "none", d = t.dataset.radixToastAnnounceExclude === "";
|
|
408
|
-
if (!u)
|
|
409
|
-
if (d) {
|
|
410
|
-
const f = t.dataset.radixToastAnnounceAlt;
|
|
411
|
-
f && o.push(f);
|
|
412
|
-
} else
|
|
413
|
-
o.push(...Ce(t));
|
|
414
|
-
}
|
|
415
|
-
}), o;
|
|
416
|
-
}
|
|
417
|
-
function X(e, o, r, { discrete: t }) {
|
|
418
|
-
const u = r.originalEvent.currentTarget, d = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: r });
|
|
419
|
-
o && u.addEventListener(e, o, { once: !0 }), t ? De(u, d) : u.dispatchEvent(d);
|
|
420
|
-
}
|
|
421
|
-
var se = (e, o, r = 0) => {
|
|
422
|
-
const t = Math.abs(e.x), u = Math.abs(e.y), d = t > u;
|
|
423
|
-
return o === "left" || o === "right" ? d && t > r : !d && u > r;
|
|
424
|
-
};
|
|
425
|
-
function ct(e = () => {
|
|
426
|
-
}) {
|
|
427
|
-
const o = Y(e);
|
|
428
|
-
_e(() => {
|
|
429
|
-
let r = 0, t = 0;
|
|
430
|
-
return r = window.requestAnimationFrame(() => t = window.requestAnimationFrame(o)), () => {
|
|
431
|
-
window.cancelAnimationFrame(r), window.cancelAnimationFrame(t);
|
|
432
|
-
};
|
|
433
|
-
}, [o]);
|
|
434
|
-
}
|
|
435
|
-
function ut(e) {
|
|
436
|
-
return e.nodeType === e.ELEMENT_NODE;
|
|
437
|
-
}
|
|
438
|
-
function lt(e) {
|
|
439
|
-
const o = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
440
|
-
acceptNode: (t) => {
|
|
441
|
-
const u = t.tagName === "INPUT" && t.type === "hidden";
|
|
442
|
-
return t.disabled || t.hidden || u ? NodeFilter.FILTER_SKIP : t.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
for (; r.nextNode(); ) o.push(r.currentNode);
|
|
446
|
-
return o;
|
|
447
|
-
}
|
|
448
|
-
function q(e) {
|
|
449
|
-
const o = document.activeElement;
|
|
450
|
-
return e.some((r) => r === o ? !0 : (r.focus(), document.activeElement !== o));
|
|
451
|
-
}
|
|
452
|
-
var dt = le, ft = fe, pt = me, mt = we, ae = Te, wt = Ee;
|
|
453
|
-
const _t = ({
|
|
454
|
-
title: e,
|
|
455
|
-
duration: o = 5e3,
|
|
456
|
-
titleClassName: r,
|
|
457
|
-
descriptionClassName: t,
|
|
458
|
-
description: u,
|
|
459
|
-
children: d,
|
|
460
|
-
theme: f,
|
|
461
|
-
showCloseButton: w = !0,
|
|
462
|
-
closeButtonClassName: v,
|
|
463
|
-
className: c,
|
|
464
|
-
open: E = !1,
|
|
465
|
-
setOpen: T,
|
|
466
|
-
variant: x
|
|
467
|
-
}) => {
|
|
468
|
-
const R = be(0);
|
|
469
|
-
ge(() => () => clearTimeout(R.current), []);
|
|
470
|
-
const g = ne(() => j(e) ? /* @__PURE__ */ s(B, { className: r, children: e }) : e, [e, r]), l = ne(() => j(u) ? /* @__PURE__ */ s(B, { className: t, children: u }) : u, [u, t]), a = Se(() => {
|
|
471
|
-
T(!1), R.current = window.setTimeout(() => T(!0), 100);
|
|
472
|
-
}, [T]);
|
|
473
|
-
return /* @__PURE__ */ I(dt, { swipeDirection: "right", duration: o, children: [
|
|
474
|
-
/* @__PURE__ */ s(B, { onClick: a, children: d }),
|
|
475
|
-
/* @__PURE__ */ I(
|
|
476
|
-
pt,
|
|
477
|
-
{
|
|
478
|
-
className: U(He({ variant: x, className: c })),
|
|
479
|
-
"data-theme": f,
|
|
480
|
-
open: E,
|
|
481
|
-
onOpenChange: T,
|
|
482
|
-
children: [
|
|
483
|
-
/* @__PURE__ */ I("div", { className: "flex gap-2 items-center flex-1", children: [
|
|
484
|
-
x === "success" && /* @__PURE__ */ s(Ue, { size: 20, className: "shrink-0" }),
|
|
485
|
-
x === "error" && /* @__PURE__ */ s(Xe, { size: 20, className: "shrink-0" }),
|
|
486
|
-
x === "warning" && /* @__PURE__ */ s(Ye, { size: 20, className: "shrink-0" }),
|
|
487
|
-
/* @__PURE__ */ I("div", { className: "flex flex-col gap-1", children: [
|
|
488
|
-
/* @__PURE__ */ s(mt, { asChild: !0, className: r, children: g }),
|
|
489
|
-
l && (j(l) ? /* @__PURE__ */ s(ae, { asChild: !0, children: l }) : /* @__PURE__ */ s(ae, { className: U("text-sm", t), children: l }))
|
|
490
|
-
] })
|
|
491
|
-
] }),
|
|
492
|
-
w && /* @__PURE__ */ s(wt, { asChild: !0, altText: "Close the toast", children: /* @__PURE__ */ I("button", { type: "button", className: "cursor-pointer", children: [
|
|
493
|
-
/* @__PURE__ */ s(
|
|
494
|
-
$e,
|
|
495
|
-
{
|
|
496
|
-
className: U(
|
|
497
|
-
Ke({
|
|
498
|
-
className: v
|
|
499
|
-
})
|
|
500
|
-
)
|
|
501
|
-
}
|
|
502
|
-
),
|
|
503
|
-
/* @__PURE__ */ s(Ve, { children: "Close toast" })
|
|
504
|
-
] }) })
|
|
505
|
-
]
|
|
506
|
-
}
|
|
507
|
-
),
|
|
508
|
-
/* @__PURE__ */ s(ft, { className: U(We()) })
|
|
509
|
-
] });
|
|
510
|
-
};
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as o } from "../../Toast-C3XjAvtC.js";
|
|
511
3
|
export {
|
|
512
|
-
|
|
4
|
+
o as Toast
|
|
513
5
|
};
|
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
defaultVariants: {
|
|
30
|
-
variant: "success"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
), s = a([
|
|
1
|
+
import { t as a } from "../../dist-DtEbXv47.js";
|
|
2
|
+
var t = a([
|
|
3
|
+
"rounded-md",
|
|
4
|
+
"p-4",
|
|
5
|
+
"flex",
|
|
6
|
+
"flex-row",
|
|
7
|
+
"relative",
|
|
8
|
+
"overflow-hidden",
|
|
9
|
+
"h-14",
|
|
10
|
+
"items-center",
|
|
11
|
+
"gap-8",
|
|
12
|
+
"data-[state=open]:animate-slide-in",
|
|
13
|
+
"data-[state=closed]:animate-hide",
|
|
14
|
+
"data-[swipe=move]:translate-x-4",
|
|
15
|
+
"data-[swipe=cancel]:translate-x-0",
|
|
16
|
+
"data-[swipe=end]:animate-swipe-out",
|
|
17
|
+
"text-white",
|
|
18
|
+
"shadow-[0px_2px_4px_0px_rgba(100,116,139,0.25)]"
|
|
19
|
+
], {
|
|
20
|
+
variants: { variant: {
|
|
21
|
+
success: ["bg-green-800"],
|
|
22
|
+
error: ["bg-red-800"],
|
|
23
|
+
warning: ["bg-amber-800"]
|
|
24
|
+
} },
|
|
25
|
+
defaultVariants: { variant: "success" }
|
|
26
|
+
}), r = a([
|
|
34
27
|
"fixed",
|
|
35
28
|
"bottom-0",
|
|
36
29
|
"right-0",
|
|
@@ -43,9 +36,13 @@ const t = a(
|
|
|
43
36
|
"m-0",
|
|
44
37
|
"z-50",
|
|
45
38
|
"outline-none"
|
|
46
|
-
]), i = a([
|
|
39
|
+
]), i = a([
|
|
40
|
+
"w-4",
|
|
41
|
+
"h-4",
|
|
42
|
+
"text-white"
|
|
43
|
+
]);
|
|
47
44
|
export {
|
|
48
45
|
i as closeToastVariants,
|
|
49
46
|
t as toastVariants,
|
|
50
|
-
|
|
47
|
+
r as viewportToastVariants
|
|
51
48
|
};
|
|
@@ -1,37 +1,18 @@
|
|
|
1
|
+
import { t as p } from "../../utils-DHuiYnx1.js";
|
|
2
|
+
import { a as c, i as h, n as x, o as f, r as g, t as w } from "../../dist-CSP6X06u.js";
|
|
1
3
|
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}) => /* @__PURE__ */ r(c, { delayDuration: m, children: /* @__PURE__ */ a(p, { children: [
|
|
15
|
-
/* @__PURE__ */ r(h, { asChild: !0, children: /* @__PURE__ */ r("span", { children: s }) }),
|
|
16
|
-
/* @__PURE__ */ r(x, { children: /* @__PURE__ */ a(
|
|
17
|
-
f,
|
|
18
|
-
{
|
|
19
|
-
side: t,
|
|
20
|
-
sideOffset: o,
|
|
21
|
-
className: w(
|
|
22
|
-
"rounded px-2 py-1 text-xs shadow-md",
|
|
23
|
-
"animate-in fade-in-0",
|
|
24
|
-
i,
|
|
25
|
-
n,
|
|
26
|
-
d
|
|
27
|
-
),
|
|
28
|
-
children: [
|
|
29
|
-
e,
|
|
30
|
-
/* @__PURE__ */ r(g, { className: l })
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
) })
|
|
34
|
-
] }) });
|
|
4
|
+
var C = ({ content: t, children: e, side: s = "top", sideOffset: o = 4, bgClassName: i = "bg-slate-700", arrowClassName: l = "fill-slate-700", textClassName: n = "text-white", className: d, delayDuration: m = 0 }) => /* @__PURE__ */ r(h, {
|
|
5
|
+
delayDuration: m,
|
|
6
|
+
children: /* @__PURE__ */ a(c, { children: [/* @__PURE__ */ r(f, {
|
|
7
|
+
asChild: !0,
|
|
8
|
+
children: /* @__PURE__ */ r("span", { children: e })
|
|
9
|
+
}), /* @__PURE__ */ r(g, { children: /* @__PURE__ */ a(x, {
|
|
10
|
+
side: s,
|
|
11
|
+
sideOffset: o,
|
|
12
|
+
className: p("rounded px-2 py-1 text-xs shadow-md", "animate-in fade-in-0", i, n, d),
|
|
13
|
+
children: [t, /* @__PURE__ */ r(w, { className: l })]
|
|
14
|
+
}) })] })
|
|
15
|
+
});
|
|
35
16
|
export {
|
|
36
|
-
|
|
17
|
+
C as Tooltip
|
|
37
18
|
};
|