@konstructio/ui 0.1.2-alpha.77 → 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 -23
- package/dist/assets/icons/components/AddChart.js +18 -20
- package/dist/assets/icons/components/AlertOutline.js +18 -20
- package/dist/assets/icons/components/AppRepo.js +18 -20
- package/dist/assets/icons/components/Apps.js +18 -20
- package/dist/assets/icons/components/Archives.js +18 -20
- package/dist/assets/icons/components/ArrowDown.js +18 -20
- package/dist/assets/icons/components/ArrowLeft.js +18 -20
- package/dist/assets/icons/components/ArrowRight.js +17 -19
- package/dist/assets/icons/components/ArrowUp.js +18 -20
- package/dist/assets/icons/components/BarChart.js +28 -24
- package/dist/assets/icons/components/BookOpen.js +22 -20
- package/dist/assets/icons/components/CalendarMonth.js +18 -20
- package/dist/assets/icons/components/Check.js +18 -20
- package/dist/assets/icons/components/CheckCircleFilled.js +28 -25
- package/dist/assets/icons/components/CheckCircleOutline.js +18 -20
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +18 -20
- package/dist/assets/icons/components/ClockAlert.js +18 -20
- package/dist/assets/icons/components/ClockOutline.js +18 -20
- package/dist/assets/icons/components/Close.js +18 -20
- package/dist/assets/icons/components/Cloud.js +12 -17
- package/dist/assets/icons/components/CloudLockOutline.js +18 -20
- package/dist/assets/icons/components/Clusters.js +28 -24
- package/dist/assets/icons/components/CogOutline.js +18 -20
- package/dist/assets/icons/components/Copy.js +18 -20
- package/dist/assets/icons/components/Cpu.js +25 -23
- package/dist/assets/icons/components/Cube.js +18 -20
- package/dist/assets/icons/components/Datacenter.js +18 -20
- package/dist/assets/icons/components/Delete.js +18 -20
- package/dist/assets/icons/components/DollarSign.js +20 -20
- package/dist/assets/icons/components/Download.js +17 -19
- package/dist/assets/icons/components/Edit.js +18 -20
- package/dist/assets/icons/components/Ellipses.js +18 -20
- package/dist/assets/icons/components/Environments.js +20 -20
- package/dist/assets/icons/components/Error.js +18 -20
- package/dist/assets/icons/components/ErrorOutline.js +18 -20
- package/dist/assets/icons/components/Exclamation.js +21 -20
- package/dist/assets/icons/components/Git.js +15 -17
- package/dist/assets/icons/components/GitOpsCatalog.js +25 -23
- package/dist/assets/icons/components/GridView.js +15 -20
- package/dist/assets/icons/components/Help.js +24 -25
- package/dist/assets/icons/components/HideOutline.js +21 -23
- package/dist/assets/icons/components/Home.js +18 -20
- package/dist/assets/icons/components/Home2.js +21 -20
- package/dist/assets/icons/components/Id.js +17 -19
- package/dist/assets/icons/components/InfoCircle.js +28 -25
- package/dist/assets/icons/components/InformationOutline.js +18 -20
- package/dist/assets/icons/components/InvoiceList.js +18 -20
- package/dist/assets/icons/components/Key.js +18 -20
- package/dist/assets/icons/components/LightBulb.js +27 -23
- package/dist/assets/icons/components/Loader.js +18 -20
- package/dist/assets/icons/components/Network.js +18 -20
- package/dist/assets/icons/components/PagesStack.js +24 -25
- package/dist/assets/icons/components/Pageview.js +18 -20
- package/dist/assets/icons/components/People.js +18 -20
- package/dist/assets/icons/components/PhotoLibrary.js +14 -16
- package/dist/assets/icons/components/Pipeline.js +20 -20
- package/dist/assets/icons/components/Plus.js +18 -20
- package/dist/assets/icons/components/PowerSettings.js +18 -20
- package/dist/assets/icons/components/Preview.js +18 -20
- package/dist/assets/icons/components/ReceiptLong.js +15 -20
- package/dist/assets/icons/components/Refresh.js +18 -20
- package/dist/assets/icons/components/ScatterPlot.js +15 -20
- package/dist/assets/icons/components/Search.js +30 -25
- package/dist/assets/icons/components/Server.js +18 -20
- package/dist/assets/icons/components/Start.js +18 -20
- package/dist/assets/icons/components/TabNew.js +34 -24
- package/dist/assets/icons/components/Teams.js +17 -19
- package/dist/assets/icons/components/Upload.js +18 -20
- package/dist/assets/icons/components/Warning.js +18 -20
- package/dist/assets/icons/components/WarningTriangle.js +18 -20
- package/dist/assets/icons/components/X.js +18 -20
- 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 +58 -79
- package/dist/components/Alert/Alert.variants.js +86 -46
- package/dist/components/AlertDialog/AlertDialog.js +71 -103
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -7
- package/dist/components/AlertDialog/components/index.js +2 -2
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +12 -25
- package/dist/components/Autocomplete/Autocomplete.js +58 -54
- package/dist/components/Autocomplete/Autocomplete.variants.js +26 -2
- package/dist/components/Autocomplete/components/List/List.js +33 -48
- package/dist/components/Autocomplete/components/List/List.variants.js +33 -5
- package/dist/components/Autocomplete/components/index.js +2 -2
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +32 -79
- package/dist/components/Autocomplete/hooks/useNavigationList.js +47 -65
- package/dist/components/Badge/Badge.js +62 -66
- package/dist/components/Badge/Badge.variants.js +69 -16
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -97
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +14 -4
- package/dist/components/Breadcrumb/components/Item/Item.js +33 -33
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +47 -23
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
- package/dist/components/Button/Button.js +22 -37
- package/dist/components/Button/Button.variants.js +294 -75
- package/dist/components/ButtonGroup/ButtonGroup.js +84 -101
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +29 -14
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +57 -105
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +60 -27
- package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +20 -25
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +16 -28
- 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 +49 -64
- package/dist/components/Card/Card.js +22 -34
- package/dist/components/Card/Card.variants.js +26 -13
- package/dist/components/Checkbox/Checkbox.js +2 -343
- package/dist/components/Checkbox/Checkbox.variants.js +50 -13
- package/dist/components/Command/Command.js +29 -46
- package/dist/components/Command/Command.variants.js +46 -3
- package/dist/components/Command/components/Command.js +14 -19
- package/dist/components/Command/components/CommandEmpty.js +9 -10
- package/dist/components/Command/components/CommandGroup.js +10 -18
- package/dist/components/Command/components/CommandInput.js +2 -90
- package/dist/components/Command/components/CommandItem.js +17 -28
- package/dist/components/Command/components/CommandList.js +11 -19
- package/dist/components/Command/components/CommandSeparator.js +11 -19
- package/dist/components/Command/components/CommandShortcut.js +7 -16
- package/dist/components/Command/components/DialogContent.js +20 -35
- package/dist/components/Command/components/DialogOverlay.js +11 -19
- 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 -23
- package/dist/components/Command/contexts/index.js +2 -2
- package/dist/components/Counter/Counter.js +3 -206
- package/dist/components/Counter/Counter.variants.js +53 -19
- package/dist/components/DateRangePicker/DateRangePicker.js +77 -93
- package/dist/components/DateRangePicker/DateRangePicker.variants.js +23 -4
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +75 -81
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +54 -10
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +8 -14
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +35 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +179 -107
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +19 -34
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +78 -61
- 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 -31
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +19 -19
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +121 -144
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +82 -53
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +8 -8
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +60 -69
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +31 -5
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +43 -55
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +43 -55
- 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 +144 -176
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +37 -56
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +20 -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 +22 -16
- package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +3 -3
- package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +4 -5
- package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +114 -187
- package/dist/components/DateRangePicker/contexts/index.js +6 -6
- package/dist/components/DateRangePicker/utils/disabled-dates.js +25 -39
- 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 +60 -57
- package/dist/components/Datepicker/DatePicker.js +48 -81
- package/dist/components/Datepicker/DatePicker.variants.js +3 -3
- package/dist/components/Divider/Divider.js +6 -17
- package/dist/components/Divider/Divider.variants.js +9 -11
- package/dist/components/Drawer/Drawer.js +73 -109
- package/dist/components/Drawer/Drawer.variants.js +74 -24
- package/dist/components/Drawer/components/Body/Body.js +12 -18
- package/dist/components/Drawer/components/Body/index.js +2 -2
- package/dist/components/Drawer/components/Footer/Footer.js +12 -18
- package/dist/components/Drawer/components/Footer/index.js +2 -2
- package/dist/components/Drawer/components/Header/Header.js +13 -20
- 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 +3 -3
- 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 +54 -82
- package/dist/components/DropdownButton/DropdownButton.js +2 -118
- package/dist/components/Filter/Filter.js +32 -40
- package/dist/components/Filter/Filter.variants.js +24 -4
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +59 -127
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +73 -84
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +47 -84
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +52 -67
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +29 -39
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +55 -75
- package/dist/components/Filter/components/ResetButton/ResetButton.js +19 -25
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +73 -84
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +48 -83
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +81 -81
- 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 +7 -16
- 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 -119
- package/dist/components/ImageUpload/ImageUpload.variants.js +86 -51
- package/dist/components/Input/Input.js +2 -161
- package/dist/components/Input/Input.variants.js +46 -11
- package/dist/components/LineChart/LineChart.js +63 -56
- package/dist/components/Loading/Loading.js +2 -22
- package/dist/components/Loading/Loading.variants.js +9 -2
- package/dist/components/Modal/Modal.js +3 -9
- package/dist/components/Modal/components/Body/Body.js +8 -16
- package/dist/components/Modal/components/Footer/Footer.js +8 -16
- package/dist/components/Modal/components/Header/Header.js +8 -16
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -11
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +29 -2
- package/dist/components/Modal/components/index.js +8 -8
- package/dist/components/Modal/contexts/Modal.context.js +1 -1
- package/dist/components/Modal/contexts/Modal.provider.js +20 -33
- package/dist/components/Modal/contexts/index.js +2 -2
- package/dist/components/Modal/hooks/useModal.js +20 -31
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +2 -26
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +29 -5
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +19 -32
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +21 -11
- package/dist/components/MultiSelectDropdown/components/List/List.js +2 -27
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +23 -3
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +2 -74
- 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 -4
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +94 -122
- package/dist/components/MultiSelectDropdown/contexts/index.js +2 -2
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +18 -31
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +11 -18
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +37 -14
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +16 -28
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +2 -670
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +22 -20
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +48 -52
- package/dist/components/PhoneNumberInput/components/Wrapper.js +2 -612
- 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 -6
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -6092
- package/dist/components/PhoneNumberInput/utils/index.js +7 -8
- package/dist/components/PieChart/PieChart.js +49 -85
- package/dist/components/ProgressBar/ProgressBar.js +29 -47
- package/dist/components/ProgressBar/ProgressBar.variants.js +24 -14
- package/dist/components/Radio/Radio.js +50 -70
- package/dist/components/Radio/Radio.variants.js +76 -30
- package/dist/components/RadioCard/RadioCard.js +19 -32
- package/dist/components/RadioCard/RadioCard.variants.js +7 -2
- package/dist/components/RadioCardGroup/RadioCardGroup.js +25 -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 +49 -83
- package/dist/components/Range/Range.variants.js +46 -25
- package/dist/components/Select/Select.js +36 -56
- package/dist/components/Select/Select.variants.js +59 -5
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +2 -10
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +3 -3
- package/dist/components/Select/components/EmptyList.js +3 -8
- package/dist/components/Select/components/List/List.js +113 -88
- package/dist/components/Select/components/List/List.variants.js +42 -2
- package/dist/components/Select/components/ListItem/ListItem.js +51 -49
- package/dist/components/Select/components/ListItem/ListItem.variants.js +21 -3
- package/dist/components/Select/components/Wrapper.js +2 -125
- 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 +39 -42
- package/dist/components/Select/hooks/useNavigationList.js +34 -49
- package/dist/components/Select/hooks/useSelect.js +54 -100
- package/dist/components/Sidebar/Sidebar.js +22 -26
- package/dist/components/Sidebar/Sidebar.variants.js +29 -3
- package/dist/components/Sidebar/components/Footer/Footer.js +9 -18
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +9 -2
- package/dist/components/Sidebar/components/Logo/Logo.js +9 -18
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +20 -2
- package/dist/components/Sidebar/components/Navigation/Navigation.js +17 -26
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +8 -3
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +14 -33
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +6 -2
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +14 -25
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +28 -8
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +6 -17
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +6 -2
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -21
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +12 -3
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +27 -34
- package/dist/components/Sidebar/components/index.js +14 -14
- package/dist/components/Slider/Slider.js +38 -70
- package/dist/components/Slider/Slider.variants.js +39 -26
- package/dist/components/Spinner/Spinner.js +2 -56
- package/dist/components/Spinner/Spinner.variants.js +36 -24
- package/dist/components/Stepper/Stepper.js +45 -56
- package/dist/components/Stepper/Stepper.variants.js +174 -77
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +120 -151
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +15 -24
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +2 -40
- package/dist/components/Stepper/components/StepItem/StepItem.js +6 -15
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +70 -94
- 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 -15
- package/dist/components/Stepper/utils/index.js +4 -5
- package/dist/components/Switch/Switch.js +2 -185
- package/dist/components/Switch/Switch.variants.js +41 -2
- package/dist/components/Table/Table.js +18 -29
- package/dist/components/Table/Table.variants.js +29 -12
- package/dist/components/Table/components/Body.js +9 -20
- package/dist/components/Table/components/Filter.js +13 -21
- package/dist/components/Table/components/Head.js +9 -20
- package/dist/components/Table/components/Row.js +14 -28
- package/dist/components/Table/components/index.js +6 -6
- package/dist/components/Tabs/Tabs.js +26 -34
- package/dist/components/Tabs/Tabs.variants.js +54 -42
- package/dist/components/Tabs/components/Content.js +12 -21
- package/dist/components/Tabs/components/List.js +17 -28
- package/dist/components/Tabs/components/Trigger.js +19 -25
- package/dist/components/Tabs/components/index.js +4 -4
- package/dist/components/Tag/Tag.js +26 -33
- package/dist/components/Tag/Tag.variants.js +31 -25
- package/dist/components/TagSelect/TagSelect.js +13 -18
- package/dist/components/TagSelect/TagSelect.variants.js +26 -5
- package/dist/components/TagSelect/components/Item/Item.js +14 -23
- package/dist/components/TagSelect/components/Item/Item.variants.js +16 -12
- package/dist/components/TagSelect/components/List/List.js +17 -22
- package/dist/components/TagSelect/components/List/List.variants.js +21 -3
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -69
- 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 +49 -75
- package/dist/components/TagSelect/contexts/index.js +4 -4
- package/dist/components/TagSelect/hooks/useTagSelect.js +18 -31
- package/dist/components/TextArea/TextArea.js +27 -35
- package/dist/components/TextArea/TextArea.variants.js +18 -3
- package/dist/components/TimePicker/TimePicker.js +15 -23
- package/dist/components/TimePicker/TimePicker.variants.js +65 -2
- package/dist/components/TimePicker/components/HoursList/HoursList.js +88 -75
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +53 -79
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +61 -64
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +134 -143
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +38 -44
- 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 -5
- package/dist/components/TimePicker/contexts/time-picker.provider.js +56 -76
- package/dist/components/TimePicker/utils/index.js +17 -19
- package/dist/components/Toast/Toast.js +3 -547
- package/dist/components/Toast/Toast.variants.js +44 -14
- package/dist/components/Tooltip/Tooltip.js +16 -36
- package/dist/components/Typography/Typography.js +16 -27
- package/dist/components/Typography/Typography.variants.js +71 -26
- package/dist/components/VirtualizedTable/VirtualizedTable.js +89 -77
- 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 +14 -13
- package/dist/components/VirtualizedTable/assets/chevron-up.js +14 -13
- package/dist/components/VirtualizedTable/assets/index.js +4 -4
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +35 -63
- package/dist/components/VirtualizedTable/components/Body/Body.js +49 -57
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +100 -105
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +18 -20
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +29 -43
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +110 -117
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +42 -32
- package/dist/components/VirtualizedTable/components/Header/Header.js +33 -58
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +29 -65
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +39 -32
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +39 -52
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +9 -19
- 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 -239
- 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 -96
- 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 -10
- 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 -19
- 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 -2920
- 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 -19
- package/dist/AdditionalOptions-DiXvUzhu.js +0 -42
- package/dist/Combination-BtmnusWq.js +0 -480
- package/dist/DayPicker-CaeUXRCF.js +0 -2798
- package/dist/Modal-h5H4yxYg.js +0 -128
- 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/compiler-runtime-DA41awpA.js +0 -36
- 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-0g-eSmV1.js +0 -142
- package/dist/index-0ioNhtNM.js +0 -10
- package/dist/index-B9v5VxE2.js +0 -431
- 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-C6mt--X_.js +0 -478
- package/dist/index-CJnS4BVW.js +0 -93
- package/dist/index-CiACf4ao.js +0 -1885
- package/dist/index-D29mdTf5.js +0 -34
- package/dist/index-Dy4FVowi.js +0 -314
- package/dist/index-kTGTSLpq.js +0 -322
- 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,136 @@
|
|
|
1
|
+
import { n as g } from "./dist-ByyYBtbL.js";
|
|
2
|
+
import { t as x } from "./utils-DHuiYnx1.js";
|
|
3
|
+
import { a as M, r as $, s as j, t as P } from "./dist-uVUx9i0a.js";
|
|
4
|
+
import { Typography as N } from "./components/Typography/Typography.js";
|
|
5
|
+
import { t as z } from "./dist-BL-H4bEw2.js";
|
|
6
|
+
import { t as A } from "./dist-DeVdyMHW2.js";
|
|
7
|
+
import { switchVariants as U, thumbVariants as q } from "./components/Switch/Switch.variants.js";
|
|
8
|
+
import * as m from "react";
|
|
9
|
+
import { forwardRef as F, useEffect as L, useId as O, useImperativeHandle as V, useRef as D } from "react";
|
|
10
|
+
import { jsx as l, jsxs as R } from "react/jsx-runtime";
|
|
11
|
+
var C = "Switch", [W, ce] = j(C), [X, G] = W(C), E = m.forwardRef((r, d) => {
|
|
12
|
+
const { __scopeSwitch: e, name: n, checked: t, defaultChecked: h, required: a, disabled: c, value: u = "on", onCheckedChange: p, form: i, ...w } = r, [o, v] = m.useState(null), k = g(d, (b) => v(b)), s = m.useRef(!1), S = o ? i || !!o.closest("form") : !0, [f, y] = $({
|
|
13
|
+
prop: t,
|
|
14
|
+
defaultProp: h ?? !1,
|
|
15
|
+
onChange: p,
|
|
16
|
+
caller: C
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ R(X, {
|
|
19
|
+
scope: e,
|
|
20
|
+
checked: f,
|
|
21
|
+
disabled: c,
|
|
22
|
+
children: [/* @__PURE__ */ l(P.button, {
|
|
23
|
+
type: "button",
|
|
24
|
+
role: "switch",
|
|
25
|
+
"aria-checked": f,
|
|
26
|
+
"aria-required": a,
|
|
27
|
+
"data-state": T(f),
|
|
28
|
+
"data-disabled": c ? "" : void 0,
|
|
29
|
+
disabled: c,
|
|
30
|
+
value: u,
|
|
31
|
+
...w,
|
|
32
|
+
ref: k,
|
|
33
|
+
onClick: M(r.onClick, (b) => {
|
|
34
|
+
y((H) => !H), S && (s.current = b.isPropagationStopped(), s.current || b.stopPropagation());
|
|
35
|
+
})
|
|
36
|
+
}), S && /* @__PURE__ */ l(B, {
|
|
37
|
+
control: o,
|
|
38
|
+
bubbles: !s.current,
|
|
39
|
+
name: n,
|
|
40
|
+
value: u,
|
|
41
|
+
checked: f,
|
|
42
|
+
required: a,
|
|
43
|
+
disabled: c,
|
|
44
|
+
form: i,
|
|
45
|
+
style: { transform: "translateX(-100%)" }
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
E.displayName = C;
|
|
50
|
+
var _ = "SwitchThumb", I = m.forwardRef((r, d) => {
|
|
51
|
+
const { __scopeSwitch: e, ...n } = r, t = G(_, e);
|
|
52
|
+
return /* @__PURE__ */ l(P.span, {
|
|
53
|
+
"data-state": T(t.checked),
|
|
54
|
+
"data-disabled": t.disabled ? "" : void 0,
|
|
55
|
+
...n,
|
|
56
|
+
ref: d
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
I.displayName = _;
|
|
60
|
+
var J = "SwitchBubbleInput", B = m.forwardRef(({ __scopeSwitch: r, control: d, checked: e, bubbles: n = !0, ...t }, h) => {
|
|
61
|
+
const a = m.useRef(null), c = g(a, h), u = z(e), p = A(d);
|
|
62
|
+
return m.useEffect(() => {
|
|
63
|
+
const i = a.current;
|
|
64
|
+
if (!i) return;
|
|
65
|
+
const w = window.HTMLInputElement.prototype, o = Object.getOwnPropertyDescriptor(w, "checked").set;
|
|
66
|
+
if (u !== e && o) {
|
|
67
|
+
const v = new Event("click", { bubbles: n });
|
|
68
|
+
o.call(i, e), i.dispatchEvent(v);
|
|
69
|
+
}
|
|
70
|
+
}, [
|
|
71
|
+
u,
|
|
72
|
+
e,
|
|
73
|
+
n
|
|
74
|
+
]), /* @__PURE__ */ l("input", {
|
|
75
|
+
type: "checkbox",
|
|
76
|
+
"aria-hidden": !0,
|
|
77
|
+
defaultChecked: e,
|
|
78
|
+
...t,
|
|
79
|
+
tabIndex: -1,
|
|
80
|
+
ref: c,
|
|
81
|
+
style: {
|
|
82
|
+
...t.style,
|
|
83
|
+
...p,
|
|
84
|
+
position: "absolute",
|
|
85
|
+
pointerEvents: "none",
|
|
86
|
+
opacity: 0,
|
|
87
|
+
margin: 0
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
B.displayName = J;
|
|
92
|
+
function T(r) {
|
|
93
|
+
return r ? "checked" : "unchecked";
|
|
94
|
+
}
|
|
95
|
+
var K = E, Q = I, ie = F(({ alignment: r = "horizontal", className: d, defaultChecked: e, disabled: n = !1, helperText: t, helperTextClassName: h, label: a, labelClassName: c, labelWrapperClassName: u, name: p, theme: i, thumbClassName: w, value: o, onChange: v }, k) => {
|
|
96
|
+
const s = D(null), S = O(), f = p ? `${S}-${p}` : S;
|
|
97
|
+
return V(k, () => s.current, [s]), L(() => {
|
|
98
|
+
s.current && (s.current.value = `${o}`);
|
|
99
|
+
}, [o]), /* @__PURE__ */ R("div", {
|
|
100
|
+
className: x("w-full", "flex", "gap-3", r === "vertical" ? "flex-col" : "flex-row", u),
|
|
101
|
+
"data-theme": i,
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ l(K, {
|
|
104
|
+
id: f,
|
|
105
|
+
defaultChecked: e,
|
|
106
|
+
checked: o,
|
|
107
|
+
onCheckedChange: (y) => v?.(y),
|
|
108
|
+
className: x(U({ className: d })),
|
|
109
|
+
"aria-label": a,
|
|
110
|
+
disabled: n,
|
|
111
|
+
children: /* @__PURE__ */ l(Q, { className: q({ className: w }) })
|
|
112
|
+
}),
|
|
113
|
+
a ? /* @__PURE__ */ R(N, {
|
|
114
|
+
component: "label",
|
|
115
|
+
className: x("flex", "flex-col", "text-sm", "dark:text-white", "select-none", c),
|
|
116
|
+
htmlFor: f,
|
|
117
|
+
style: { paddingRight: 15 },
|
|
118
|
+
children: [a, t ? /* @__PURE__ */ l(N, {
|
|
119
|
+
component: "span",
|
|
120
|
+
className: x("text-xs", "select-none", "text-slate-600", "dark:text-metal-400", h),
|
|
121
|
+
children: t
|
|
122
|
+
}) : null]
|
|
123
|
+
}) : null,
|
|
124
|
+
/* @__PURE__ */ l("input", {
|
|
125
|
+
ref: s,
|
|
126
|
+
name: p,
|
|
127
|
+
type: "text",
|
|
128
|
+
className: "hidden",
|
|
129
|
+
"aria-hidden": "true"
|
|
130
|
+
})
|
|
131
|
+
]
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
ie as t
|
|
136
|
+
};
|
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import { t as ge } from "./x-BwIi6Wii.js";
|
|
2
|
+
import { n as ie } from "./dist-ByyYBtbL.js";
|
|
3
|
+
import { t as Y } from "./dist-DXJSck4j.js";
|
|
4
|
+
import { t as be } from "./dist-CBnErrr1.js";
|
|
5
|
+
import { t as W } from "./utils-DHuiYnx1.js";
|
|
6
|
+
import { CheckCircleFilledIcon as Se } from "./assets/icons/components/CheckCircleFilled.js";
|
|
7
|
+
import { ErrorIcon as Ne } from "./assets/icons/components/Error.js";
|
|
8
|
+
import { WarningTriangleIcon as Ae } from "./assets/icons/components/WarningTriangle.js";
|
|
9
|
+
import { a as g, i as _e, n as De, r as Ie, s as Le, t as _ } from "./dist-uVUx9i0a.js";
|
|
10
|
+
import { t as $ } from "./dist-C8r5DW7s.js";
|
|
11
|
+
import { i as Fe, n as Me, t as ke } from "./dist-DXXHfL7M.js";
|
|
12
|
+
import { t as Oe } from "./dist-DpqiA4Yn.js";
|
|
13
|
+
import { t as Ve } from "./dist-DZNdbzbm.js";
|
|
14
|
+
import { closeToastVariants as Ke, toastVariants as We, viewportToastVariants as He } from "./components/Toast/Toast.variants.js";
|
|
15
|
+
import * as n from "react";
|
|
16
|
+
import { isValidElement as z, useCallback as $e, useEffect as Ue, useMemo as ne, useRef as Xe } from "react";
|
|
17
|
+
import * as Ye from "react-dom";
|
|
18
|
+
import { Fragment as ce, jsx as s, jsxs as A } from "react/jsx-runtime";
|
|
19
|
+
var ze = Object.freeze({
|
|
20
|
+
position: "absolute",
|
|
21
|
+
border: 0,
|
|
22
|
+
width: 1,
|
|
23
|
+
height: 1,
|
|
24
|
+
padding: 0,
|
|
25
|
+
margin: -1,
|
|
26
|
+
overflow: "hidden",
|
|
27
|
+
clip: "rect(0, 0, 0, 0)",
|
|
28
|
+
whiteSpace: "nowrap",
|
|
29
|
+
wordWrap: "normal"
|
|
30
|
+
}), je = "VisuallyHidden", J = n.forwardRef((e, r) => /* @__PURE__ */ s(_.span, {
|
|
31
|
+
...e,
|
|
32
|
+
ref: r,
|
|
33
|
+
style: {
|
|
34
|
+
...ze,
|
|
35
|
+
...e.style
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
J.displayName = je;
|
|
39
|
+
var Q = "ToastProvider", [Z, Be, qe] = Ve("Toast"), [le, It] = Le("Toast", [qe]), [Ge, U] = le(Q), ue = (e) => {
|
|
40
|
+
const { __scopeToast: r, label: t = "Notification", duration: o = 5e3, swipeDirection: c = "right", swipeThreshold: d = 50, children: p } = e, [m, v] = n.useState(null), [a, h] = n.useState(0), w = n.useRef(!1), P = n.useRef(!1);
|
|
41
|
+
return t.trim() || console.error(`Invalid prop \`label\` supplied to \`${Q}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ s(Z.Provider, {
|
|
42
|
+
scope: r,
|
|
43
|
+
children: /* @__PURE__ */ s(Ge, {
|
|
44
|
+
scope: r,
|
|
45
|
+
label: t,
|
|
46
|
+
duration: o,
|
|
47
|
+
swipeDirection: c,
|
|
48
|
+
swipeThreshold: d,
|
|
49
|
+
toastCount: a,
|
|
50
|
+
viewport: m,
|
|
51
|
+
onViewportChange: v,
|
|
52
|
+
onToastAdd: n.useCallback(() => h((R) => R + 1), []),
|
|
53
|
+
onToastRemove: n.useCallback(() => h((R) => R - 1), []),
|
|
54
|
+
isFocusedToastEscapeKeyDownRef: w,
|
|
55
|
+
isClosePausedRef: P,
|
|
56
|
+
children: p
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
ue.displayName = Q;
|
|
61
|
+
var de = "ToastViewport", Je = ["F8"], B = "toast.viewportPause", q = "toast.viewportResume", fe = n.forwardRef((e, r) => {
|
|
62
|
+
const { __scopeToast: t, hotkey: o = Je, label: c = "Notifications ({hotkey})", ...d } = e, p = U(de, t), m = Be(t), v = n.useRef(null), a = n.useRef(null), h = n.useRef(null), w = n.useRef(null), P = ie(r, w, p.onViewportChange), R = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), b = p.toastCount > 0;
|
|
63
|
+
n.useEffect(() => {
|
|
64
|
+
const u = (E) => {
|
|
65
|
+
o.length !== 0 && o.every((f) => E[f] || E.code === f) && w.current?.focus();
|
|
66
|
+
};
|
|
67
|
+
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
68
|
+
}, [o]), n.useEffect(() => {
|
|
69
|
+
const u = v.current, E = w.current;
|
|
70
|
+
if (b && u && E) {
|
|
71
|
+
const f = () => {
|
|
72
|
+
if (!p.isClosePausedRef.current) {
|
|
73
|
+
const C = new CustomEvent(B);
|
|
74
|
+
E.dispatchEvent(C), p.isClosePausedRef.current = !0;
|
|
75
|
+
}
|
|
76
|
+
}, T = () => {
|
|
77
|
+
if (p.isClosePausedRef.current) {
|
|
78
|
+
const C = new CustomEvent(q);
|
|
79
|
+
E.dispatchEvent(C), p.isClosePausedRef.current = !1;
|
|
80
|
+
}
|
|
81
|
+
}, y = (C) => {
|
|
82
|
+
u.contains(C.relatedTarget) || T();
|
|
83
|
+
}, x = () => {
|
|
84
|
+
u.contains(document.activeElement) || T();
|
|
85
|
+
};
|
|
86
|
+
return u.addEventListener("focusin", f), u.addEventListener("focusout", y), u.addEventListener("pointermove", f), u.addEventListener("pointerleave", x), window.addEventListener("blur", f), window.addEventListener("focus", T), () => {
|
|
87
|
+
u.removeEventListener("focusin", f), u.removeEventListener("focusout", y), u.removeEventListener("pointermove", f), u.removeEventListener("pointerleave", x), window.removeEventListener("blur", f), window.removeEventListener("focus", T);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}, [b, p.isClosePausedRef]);
|
|
91
|
+
const l = n.useCallback(({ tabbingDirection: u }) => {
|
|
92
|
+
const E = m().map((f) => {
|
|
93
|
+
const T = f.ref.current, y = [T, ...ut(T)];
|
|
94
|
+
return u === "forwards" ? y : y.reverse();
|
|
95
|
+
});
|
|
96
|
+
return (u === "forwards" ? E.reverse() : E).flat();
|
|
97
|
+
}, [m]);
|
|
98
|
+
return n.useEffect(() => {
|
|
99
|
+
const u = w.current;
|
|
100
|
+
if (u) {
|
|
101
|
+
const E = (f) => {
|
|
102
|
+
const T = f.altKey || f.ctrlKey || f.metaKey;
|
|
103
|
+
if (f.key === "Tab" && !T) {
|
|
104
|
+
const y = document.activeElement, x = f.shiftKey;
|
|
105
|
+
if (f.target === u && x) {
|
|
106
|
+
a.current?.focus();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const C = l({ tabbingDirection: x ? "backwards" : "forwards" }), D = C.findIndex((I) => I === y);
|
|
110
|
+
j(C.slice(D + 1)) ? f.preventDefault() : x ? a.current?.focus() : h.current?.focus();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
return u.addEventListener("keydown", E), () => u.removeEventListener("keydown", E);
|
|
114
|
+
}
|
|
115
|
+
}, [m, l]), /* @__PURE__ */ A(Me, {
|
|
116
|
+
ref: v,
|
|
117
|
+
role: "region",
|
|
118
|
+
"aria-label": c.replace("{hotkey}", R),
|
|
119
|
+
tabIndex: -1,
|
|
120
|
+
style: { pointerEvents: b ? void 0 : "none" },
|
|
121
|
+
children: [
|
|
122
|
+
b && /* @__PURE__ */ s(G, {
|
|
123
|
+
ref: a,
|
|
124
|
+
onFocusFromOutsideViewport: () => {
|
|
125
|
+
j(l({ tabbingDirection: "forwards" }));
|
|
126
|
+
}
|
|
127
|
+
}),
|
|
128
|
+
/* @__PURE__ */ s(Z.Slot, {
|
|
129
|
+
scope: t,
|
|
130
|
+
children: /* @__PURE__ */ s(_.ol, {
|
|
131
|
+
tabIndex: -1,
|
|
132
|
+
...d,
|
|
133
|
+
ref: P
|
|
134
|
+
})
|
|
135
|
+
}),
|
|
136
|
+
b && /* @__PURE__ */ s(G, {
|
|
137
|
+
ref: h,
|
|
138
|
+
onFocusFromOutsideViewport: () => {
|
|
139
|
+
j(l({ tabbingDirection: "backwards" }));
|
|
140
|
+
}
|
|
141
|
+
})
|
|
142
|
+
]
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
fe.displayName = de;
|
|
146
|
+
var pe = "ToastFocusProxy", G = n.forwardRef((e, r) => {
|
|
147
|
+
const { __scopeToast: t, onFocusFromOutsideViewport: o, ...c } = e, d = U(pe, t);
|
|
148
|
+
return /* @__PURE__ */ s(J, {
|
|
149
|
+
tabIndex: 0,
|
|
150
|
+
...c,
|
|
151
|
+
ref: r,
|
|
152
|
+
style: { position: "fixed" },
|
|
153
|
+
onFocus: (p) => {
|
|
154
|
+
const m = p.relatedTarget;
|
|
155
|
+
d.viewport?.contains(m) || o();
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
G.displayName = pe;
|
|
160
|
+
var k = "Toast", Qe = "toast.swipeStart", Ze = "toast.swipeMove", et = "toast.swipeCancel", tt = "toast.swipeEnd", me = n.forwardRef((e, r) => {
|
|
161
|
+
const { forceMount: t, open: o, defaultOpen: c, onOpenChange: d, ...p } = e, [m, v] = Ie({
|
|
162
|
+
prop: o,
|
|
163
|
+
defaultProp: c ?? !0,
|
|
164
|
+
onChange: d,
|
|
165
|
+
caller: k
|
|
166
|
+
});
|
|
167
|
+
return /* @__PURE__ */ s(Oe, {
|
|
168
|
+
present: t || m,
|
|
169
|
+
children: /* @__PURE__ */ s(nt, {
|
|
170
|
+
open: m,
|
|
171
|
+
...p,
|
|
172
|
+
ref: r,
|
|
173
|
+
onClose: () => v(!1),
|
|
174
|
+
onPause: $(e.onPause),
|
|
175
|
+
onResume: $(e.onResume),
|
|
176
|
+
onSwipeStart: g(e.onSwipeStart, (a) => {
|
|
177
|
+
a.currentTarget.setAttribute("data-swipe", "start");
|
|
178
|
+
}),
|
|
179
|
+
onSwipeMove: g(e.onSwipeMove, (a) => {
|
|
180
|
+
const { x: h, y: w } = a.detail.delta;
|
|
181
|
+
a.currentTarget.setAttribute("data-swipe", "move"), a.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${h}px`), a.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${w}px`);
|
|
182
|
+
}),
|
|
183
|
+
onSwipeCancel: g(e.onSwipeCancel, (a) => {
|
|
184
|
+
a.currentTarget.setAttribute("data-swipe", "cancel"), a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
185
|
+
}),
|
|
186
|
+
onSwipeEnd: g(e.onSwipeEnd, (a) => {
|
|
187
|
+
const { x: h, y: w } = a.detail.delta;
|
|
188
|
+
a.currentTarget.setAttribute("data-swipe", "end"), a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), a.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${h}px`), a.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${w}px`), v(!1);
|
|
189
|
+
})
|
|
190
|
+
})
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
me.displayName = k;
|
|
194
|
+
var [rt, ot] = le(k, { onClose() {
|
|
195
|
+
} }), nt = n.forwardRef((e, r) => {
|
|
196
|
+
const { __scopeToast: t, type: o = "foreground", duration: c, open: d, onClose: p, onEscapeKeyDown: m, onPause: v, onResume: a, onSwipeStart: h, onSwipeMove: w, onSwipeCancel: P, onSwipeEnd: R, ...b } = e, l = U(k, t), [u, E] = n.useState(null), f = ie(r, (i) => E(i)), T = n.useRef(null), y = n.useRef(null), x = c || l.duration, C = n.useRef(0), D = n.useRef(x), I = n.useRef(0), { onToastAdd: ee, onToastRemove: te } = l, L = $(() => {
|
|
197
|
+
u?.contains(document.activeElement) && l.viewport?.focus(), p();
|
|
198
|
+
}), O = n.useCallback((i) => {
|
|
199
|
+
!i || i === 1 / 0 || (window.clearTimeout(I.current), C.current = (/* @__PURE__ */ new Date()).getTime(), I.current = window.setTimeout(L, i));
|
|
200
|
+
}, [L]);
|
|
201
|
+
n.useEffect(() => {
|
|
202
|
+
const i = l.viewport;
|
|
203
|
+
if (i) {
|
|
204
|
+
const S = () => {
|
|
205
|
+
O(D.current), a?.();
|
|
206
|
+
}, N = () => {
|
|
207
|
+
const F = (/* @__PURE__ */ new Date()).getTime() - C.current;
|
|
208
|
+
D.current = D.current - F, window.clearTimeout(I.current), v?.();
|
|
209
|
+
};
|
|
210
|
+
return i.addEventListener(B, N), i.addEventListener(q, S), () => {
|
|
211
|
+
i.removeEventListener(B, N), i.removeEventListener(q, S);
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}, [
|
|
215
|
+
l.viewport,
|
|
216
|
+
x,
|
|
217
|
+
v,
|
|
218
|
+
a,
|
|
219
|
+
O
|
|
220
|
+
]), n.useEffect(() => {
|
|
221
|
+
d && !l.isClosePausedRef.current && O(x);
|
|
222
|
+
}, [
|
|
223
|
+
d,
|
|
224
|
+
x,
|
|
225
|
+
l.isClosePausedRef,
|
|
226
|
+
O
|
|
227
|
+
]), n.useEffect(() => (ee(), () => te()), [ee, te]);
|
|
228
|
+
const re = n.useMemo(() => u ? Ce(u) : null, [u]);
|
|
229
|
+
return l.viewport ? /* @__PURE__ */ A(ce, { children: [re && /* @__PURE__ */ s(st, {
|
|
230
|
+
__scopeToast: t,
|
|
231
|
+
role: "status",
|
|
232
|
+
"aria-live": o === "foreground" ? "assertive" : "polite",
|
|
233
|
+
children: re
|
|
234
|
+
}), /* @__PURE__ */ s(rt, {
|
|
235
|
+
scope: t,
|
|
236
|
+
onClose: L,
|
|
237
|
+
children: Ye.createPortal(/* @__PURE__ */ s(Z.ItemSlot, {
|
|
238
|
+
scope: t,
|
|
239
|
+
children: /* @__PURE__ */ s(Fe, {
|
|
240
|
+
asChild: !0,
|
|
241
|
+
onEscapeKeyDown: g(m, () => {
|
|
242
|
+
l.isFocusedToastEscapeKeyDownRef.current || L(), l.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
243
|
+
}),
|
|
244
|
+
children: /* @__PURE__ */ s(_.li, {
|
|
245
|
+
tabIndex: 0,
|
|
246
|
+
"data-state": d ? "open" : "closed",
|
|
247
|
+
"data-swipe-direction": l.swipeDirection,
|
|
248
|
+
...b,
|
|
249
|
+
ref: f,
|
|
250
|
+
style: {
|
|
251
|
+
userSelect: "none",
|
|
252
|
+
touchAction: "none",
|
|
253
|
+
...e.style
|
|
254
|
+
},
|
|
255
|
+
onKeyDown: g(e.onKeyDown, (i) => {
|
|
256
|
+
i.key === "Escape" && (m?.(i.nativeEvent), i.nativeEvent.defaultPrevented || (l.isFocusedToastEscapeKeyDownRef.current = !0, L()));
|
|
257
|
+
}),
|
|
258
|
+
onPointerDown: g(e.onPointerDown, (i) => {
|
|
259
|
+
i.button === 0 && (T.current = {
|
|
260
|
+
x: i.clientX,
|
|
261
|
+
y: i.clientY
|
|
262
|
+
});
|
|
263
|
+
}),
|
|
264
|
+
onPointerMove: g(e.onPointerMove, (i) => {
|
|
265
|
+
if (!T.current) return;
|
|
266
|
+
const S = i.clientX - T.current.x, N = i.clientY - T.current.y, F = !!y.current, M = ["left", "right"].includes(l.swipeDirection), V = ["left", "up"].includes(l.swipeDirection) ? Math.min : Math.max, Pe = M ? V(0, S) : 0, Re = M ? 0 : V(0, N), X = i.pointerType === "touch" ? 10 : 2, K = {
|
|
267
|
+
x: Pe,
|
|
268
|
+
y: Re
|
|
269
|
+
}, oe = {
|
|
270
|
+
originalEvent: i,
|
|
271
|
+
delta: K
|
|
272
|
+
};
|
|
273
|
+
F ? (y.current = K, H(Ze, w, oe, { discrete: !1 })) : se(K, l.swipeDirection, X) ? (y.current = K, H(Qe, h, oe, { discrete: !1 }), i.target.setPointerCapture(i.pointerId)) : (Math.abs(S) > X || Math.abs(N) > X) && (T.current = null);
|
|
274
|
+
}),
|
|
275
|
+
onPointerUp: g(e.onPointerUp, (i) => {
|
|
276
|
+
const S = y.current, N = i.target;
|
|
277
|
+
if (N.hasPointerCapture(i.pointerId) && N.releasePointerCapture(i.pointerId), y.current = null, T.current = null, S) {
|
|
278
|
+
const F = i.currentTarget, M = {
|
|
279
|
+
originalEvent: i,
|
|
280
|
+
delta: S
|
|
281
|
+
};
|
|
282
|
+
se(S, l.swipeDirection, l.swipeThreshold) ? H(tt, R, M, { discrete: !0 }) : H(et, P, M, { discrete: !0 }), F.addEventListener("click", (V) => V.preventDefault(), { once: !0 });
|
|
283
|
+
}
|
|
284
|
+
})
|
|
285
|
+
})
|
|
286
|
+
})
|
|
287
|
+
}), l.viewport)
|
|
288
|
+
})] }) : null;
|
|
289
|
+
}), st = (e) => {
|
|
290
|
+
const { __scopeToast: r, children: t, ...o } = e, c = U(k, r), [d, p] = n.useState(!1), [m, v] = n.useState(!1);
|
|
291
|
+
return ct(() => p(!0)), n.useEffect(() => {
|
|
292
|
+
const a = window.setTimeout(() => v(!0), 1e3);
|
|
293
|
+
return () => window.clearTimeout(a);
|
|
294
|
+
}, []), m ? null : /* @__PURE__ */ s(ke, {
|
|
295
|
+
asChild: !0,
|
|
296
|
+
children: /* @__PURE__ */ s(J, {
|
|
297
|
+
...o,
|
|
298
|
+
children: d && /* @__PURE__ */ A(ce, { children: [
|
|
299
|
+
c.label,
|
|
300
|
+
" ",
|
|
301
|
+
t
|
|
302
|
+
] })
|
|
303
|
+
})
|
|
304
|
+
});
|
|
305
|
+
}, at = "ToastTitle", we = n.forwardRef((e, r) => {
|
|
306
|
+
const { __scopeToast: t, ...o } = e;
|
|
307
|
+
return /* @__PURE__ */ s(_.div, {
|
|
308
|
+
...o,
|
|
309
|
+
ref: r
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
we.displayName = at;
|
|
313
|
+
var it = "ToastDescription", Te = n.forwardRef((e, r) => {
|
|
314
|
+
const { __scopeToast: t, ...o } = e;
|
|
315
|
+
return /* @__PURE__ */ s(_.div, {
|
|
316
|
+
...o,
|
|
317
|
+
ref: r
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
Te.displayName = it;
|
|
321
|
+
var ve = "ToastAction", Ee = n.forwardRef((e, r) => {
|
|
322
|
+
const { altText: t, ...o } = e;
|
|
323
|
+
return t.trim() ? /* @__PURE__ */ s(xe, {
|
|
324
|
+
altText: t,
|
|
325
|
+
asChild: !0,
|
|
326
|
+
children: /* @__PURE__ */ s(ye, {
|
|
327
|
+
...o,
|
|
328
|
+
ref: r
|
|
329
|
+
})
|
|
330
|
+
}) : (console.error(`Invalid prop \`altText\` supplied to \`${ve}\`. Expected non-empty \`string\`.`), null);
|
|
331
|
+
});
|
|
332
|
+
Ee.displayName = ve;
|
|
333
|
+
var he = "ToastClose", ye = n.forwardRef((e, r) => {
|
|
334
|
+
const { __scopeToast: t, ...o } = e, c = ot(he, t);
|
|
335
|
+
return /* @__PURE__ */ s(xe, {
|
|
336
|
+
asChild: !0,
|
|
337
|
+
children: /* @__PURE__ */ s(_.button, {
|
|
338
|
+
type: "button",
|
|
339
|
+
...o,
|
|
340
|
+
ref: r,
|
|
341
|
+
onClick: g(e.onClick, c.onClose)
|
|
342
|
+
})
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
ye.displayName = he;
|
|
346
|
+
var xe = n.forwardRef((e, r) => {
|
|
347
|
+
const { __scopeToast: t, altText: o, ...c } = e;
|
|
348
|
+
return /* @__PURE__ */ s(_.div, {
|
|
349
|
+
"data-radix-toast-announce-exclude": "",
|
|
350
|
+
"data-radix-toast-announce-alt": o || void 0,
|
|
351
|
+
...c,
|
|
352
|
+
ref: r
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
function Ce(e) {
|
|
356
|
+
const r = [];
|
|
357
|
+
return Array.from(e.childNodes).forEach((t) => {
|
|
358
|
+
if (t.nodeType === t.TEXT_NODE && t.textContent && r.push(t.textContent), lt(t)) {
|
|
359
|
+
const o = t.ariaHidden || t.hidden || t.style.display === "none", c = t.dataset.radixToastAnnounceExclude === "";
|
|
360
|
+
if (!o) if (c) {
|
|
361
|
+
const d = t.dataset.radixToastAnnounceAlt;
|
|
362
|
+
d && r.push(d);
|
|
363
|
+
} else r.push(...Ce(t));
|
|
364
|
+
}
|
|
365
|
+
}), r;
|
|
366
|
+
}
|
|
367
|
+
function H(e, r, t, { discrete: o }) {
|
|
368
|
+
const c = t.originalEvent.currentTarget, d = new CustomEvent(e, {
|
|
369
|
+
bubbles: !0,
|
|
370
|
+
cancelable: !0,
|
|
371
|
+
detail: t
|
|
372
|
+
});
|
|
373
|
+
r && c.addEventListener(e, r, { once: !0 }), o ? De(c, d) : c.dispatchEvent(d);
|
|
374
|
+
}
|
|
375
|
+
var se = (e, r, t = 0) => {
|
|
376
|
+
const o = Math.abs(e.x), c = Math.abs(e.y), d = o > c;
|
|
377
|
+
return r === "left" || r === "right" ? d && o > t : !d && c > t;
|
|
378
|
+
};
|
|
379
|
+
function ct(e = () => {
|
|
380
|
+
}) {
|
|
381
|
+
const r = $(e);
|
|
382
|
+
_e(() => {
|
|
383
|
+
let t = 0, o = 0;
|
|
384
|
+
return t = window.requestAnimationFrame(() => o = window.requestAnimationFrame(r)), () => {
|
|
385
|
+
window.cancelAnimationFrame(t), window.cancelAnimationFrame(o);
|
|
386
|
+
};
|
|
387
|
+
}, [r]);
|
|
388
|
+
}
|
|
389
|
+
function lt(e) {
|
|
390
|
+
return e.nodeType === e.ELEMENT_NODE;
|
|
391
|
+
}
|
|
392
|
+
function ut(e) {
|
|
393
|
+
const r = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (o) => {
|
|
394
|
+
const c = o.tagName === "INPUT" && o.type === "hidden";
|
|
395
|
+
return o.disabled || o.hidden || c ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
396
|
+
} });
|
|
397
|
+
for (; t.nextNode(); ) r.push(t.currentNode);
|
|
398
|
+
return r;
|
|
399
|
+
}
|
|
400
|
+
function j(e) {
|
|
401
|
+
const r = document.activeElement;
|
|
402
|
+
return e.some((t) => t === r ? !0 : (t.focus(), document.activeElement !== r));
|
|
403
|
+
}
|
|
404
|
+
var dt = ue, ft = fe, pt = me, mt = we, ae = Te, wt = Ee, Lt = ({ title: e, duration: r = 5e3, titleClassName: t, descriptionClassName: o, description: c, children: d, theme: p, showCloseButton: m = !0, closeButtonClassName: v, className: a, open: h = !1, setOpen: w, variant: P }) => {
|
|
405
|
+
const R = Xe(0);
|
|
406
|
+
Ue(() => () => clearTimeout(R.current), []);
|
|
407
|
+
const b = ne(() => z(e) ? /* @__PURE__ */ s(Y, {
|
|
408
|
+
className: t,
|
|
409
|
+
children: e
|
|
410
|
+
}) : e, [e, t]), l = ne(() => z(c) ? /* @__PURE__ */ s(Y, {
|
|
411
|
+
className: o,
|
|
412
|
+
children: c
|
|
413
|
+
}) : c, [c, o]);
|
|
414
|
+
return /* @__PURE__ */ A(dt, {
|
|
415
|
+
swipeDirection: "right",
|
|
416
|
+
duration: r,
|
|
417
|
+
children: [
|
|
418
|
+
/* @__PURE__ */ s(Y, {
|
|
419
|
+
onClick: $e(() => {
|
|
420
|
+
w(!1), R.current = window.setTimeout(() => w(!0), 100);
|
|
421
|
+
}, [w]),
|
|
422
|
+
children: d
|
|
423
|
+
}),
|
|
424
|
+
/* @__PURE__ */ A(pt, {
|
|
425
|
+
className: W(We({
|
|
426
|
+
variant: P,
|
|
427
|
+
className: a
|
|
428
|
+
})),
|
|
429
|
+
"data-theme": p,
|
|
430
|
+
open: h,
|
|
431
|
+
onOpenChange: w,
|
|
432
|
+
children: [/* @__PURE__ */ A("div", {
|
|
433
|
+
className: "flex gap-2 items-center flex-1",
|
|
434
|
+
children: [
|
|
435
|
+
P === "success" && /* @__PURE__ */ s(Se, {
|
|
436
|
+
size: 20,
|
|
437
|
+
className: "shrink-0"
|
|
438
|
+
}),
|
|
439
|
+
P === "error" && /* @__PURE__ */ s(Ne, {
|
|
440
|
+
size: 20,
|
|
441
|
+
className: "shrink-0"
|
|
442
|
+
}),
|
|
443
|
+
P === "warning" && /* @__PURE__ */ s(Ae, {
|
|
444
|
+
size: 20,
|
|
445
|
+
className: "shrink-0"
|
|
446
|
+
}),
|
|
447
|
+
/* @__PURE__ */ A("div", {
|
|
448
|
+
className: "flex flex-col gap-1",
|
|
449
|
+
children: [/* @__PURE__ */ s(mt, {
|
|
450
|
+
asChild: !0,
|
|
451
|
+
className: t,
|
|
452
|
+
children: b
|
|
453
|
+
}), l && (z(l) ? /* @__PURE__ */ s(ae, {
|
|
454
|
+
asChild: !0,
|
|
455
|
+
children: l
|
|
456
|
+
}) : /* @__PURE__ */ s(ae, {
|
|
457
|
+
className: W("text-sm", o),
|
|
458
|
+
children: l
|
|
459
|
+
}))]
|
|
460
|
+
})
|
|
461
|
+
]
|
|
462
|
+
}), m && /* @__PURE__ */ s(wt, {
|
|
463
|
+
asChild: !0,
|
|
464
|
+
altText: "Close the toast",
|
|
465
|
+
children: /* @__PURE__ */ A("button", {
|
|
466
|
+
type: "button",
|
|
467
|
+
className: "cursor-pointer",
|
|
468
|
+
children: [/* @__PURE__ */ s(ge, { className: W(Ke({ className: v })) }), /* @__PURE__ */ s(be, { children: "Close toast" })]
|
|
469
|
+
})
|
|
470
|
+
})]
|
|
471
|
+
}),
|
|
472
|
+
/* @__PURE__ */ s(ft, { className: W(He()) })
|
|
473
|
+
]
|
|
474
|
+
});
|
|
475
|
+
};
|
|
476
|
+
export {
|
|
477
|
+
Lt as t
|
|
478
|
+
};
|