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