@konstructio/ui 0.1.2-alpha.75 → 0.1.2-alpha.77
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-DiXvUzhu.js +42 -0
- package/dist/Modal-h5H4yxYg.js +128 -0
- package/dist/assets/icons/components/Accounts.js +23 -35
- package/dist/assets/icons/components/AddChart.js +20 -26
- package/dist/assets/icons/components/AlertOutline.js +20 -26
- package/dist/assets/icons/components/AppRepo.js +20 -26
- package/dist/assets/icons/components/Apps.js +20 -26
- package/dist/assets/icons/components/Archives.js +20 -26
- package/dist/assets/icons/components/ArrowDown.js +20 -26
- package/dist/assets/icons/components/ArrowLeft.js +20 -26
- package/dist/assets/icons/components/ArrowRight.js +20 -26
- package/dist/assets/icons/components/ArrowUp.js +19 -25
- package/dist/assets/icons/components/BarChart.js +24 -36
- package/dist/assets/icons/components/BookOpen.js +20 -30
- package/dist/assets/icons/components/CalendarMonth.js +20 -26
- package/dist/assets/icons/components/Check.js +20 -26
- package/dist/assets/icons/components/CheckCircleFilled.js +25 -29
- package/dist/assets/icons/components/CheckCircleOutline.js +20 -26
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +20 -24
- package/dist/assets/icons/components/ClockAlert.js +20 -26
- package/dist/assets/icons/components/ClockOutline.js +20 -26
- package/dist/assets/icons/components/Close.js +20 -26
- package/dist/assets/icons/components/Cloud.js +20 -20
- package/dist/assets/icons/components/CloudLockOutline.js +20 -26
- package/dist/assets/icons/components/Clusters.js +24 -42
- package/dist/assets/icons/components/CogOutline.js +20 -26
- package/dist/assets/icons/components/Copy.js +20 -26
- package/dist/assets/icons/components/Cpu.js +23 -39
- package/dist/assets/icons/components/Cube.js +20 -26
- package/dist/assets/icons/components/Datacenter.js +20 -26
- package/dist/assets/icons/components/Delete.js +20 -26
- package/dist/assets/icons/components/DollarSign.js +20 -28
- package/dist/assets/icons/components/Download.js +20 -26
- package/dist/assets/icons/components/Edit.js +20 -26
- package/dist/assets/icons/components/Ellipses.js +20 -26
- package/dist/assets/icons/components/Environments.js +20 -28
- package/dist/assets/icons/components/Error.js +20 -26
- package/dist/assets/icons/components/ErrorOutline.js +20 -26
- package/dist/assets/icons/components/Exclamation.js +20 -26
- package/dist/assets/icons/components/Git.js +20 -26
- package/dist/assets/icons/components/GitOpsCatalog.js +23 -39
- package/dist/assets/icons/components/GridView.js +20 -20
- package/dist/assets/icons/components/Help.js +25 -23
- package/dist/assets/icons/components/HideOutline.js +23 -35
- package/dist/assets/icons/components/Home.js +20 -26
- package/dist/assets/icons/components/Home2.js +20 -26
- package/dist/assets/icons/components/Id.js +19 -25
- package/dist/assets/icons/components/InfoCircle.js +25 -29
- package/dist/assets/icons/components/InformationOutline.js +20 -26
- package/dist/assets/icons/components/InvoiceList.js +20 -26
- package/dist/assets/icons/components/Key.js +20 -26
- package/dist/assets/icons/components/LightBulb.js +23 -41
- package/dist/assets/icons/components/Loader.js +20 -26
- package/dist/assets/icons/components/Network.js +20 -26
- package/dist/assets/icons/components/PagesStack.js +25 -23
- package/dist/assets/icons/components/Pageview.js +20 -26
- package/dist/assets/icons/components/People.js +20 -26
- package/dist/assets/icons/components/PhotoLibrary.js +19 -25
- package/dist/assets/icons/components/Pipeline.js +20 -28
- package/dist/assets/icons/components/Plus.js +20 -26
- package/dist/assets/icons/components/PowerSettings.js +20 -26
- package/dist/assets/icons/components/Preview.js +20 -26
- package/dist/assets/icons/components/ReceiptLong.js +20 -20
- package/dist/assets/icons/components/Refresh.js +20 -26
- package/dist/assets/icons/components/ScatterPlot.js +20 -20
- package/dist/assets/icons/components/Search.js +25 -30
- package/dist/assets/icons/components/Server.js +20 -26
- package/dist/assets/icons/components/Start.js +20 -26
- package/dist/assets/icons/components/TabNew.js +24 -48
- package/dist/assets/icons/components/Teams.js +20 -26
- package/dist/assets/icons/components/Upload.js +19 -25
- package/dist/assets/icons/components/Warning.js +20 -26
- package/dist/assets/icons/components/WarningTriangle.js +20 -26
- package/dist/assets/icons/components/X.js +20 -26
- package/dist/compiler-runtime-DA41awpA.js +36 -0
- package/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/Alert/Alert.js +78 -61
- package/dist/components/Alert/Alert.types.d.ts +3 -1
- package/dist/components/Alert/Alert.variants.js +30 -85
- package/dist/components/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +102 -128
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +5 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +4 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +25 -7
- package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/components/Autocomplete/Autocomplete.js +55 -83
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +3 -1
- package/dist/components/Autocomplete/Autocomplete.variants.js +1 -21
- package/dist/components/Autocomplete/components/List/List.js +48 -45
- package/dist/components/Autocomplete/components/List/List.variants.js +1 -29
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +74 -58
- package/dist/components/Autocomplete/hooks/useNavigationList.js +68 -62
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.js +66 -77
- package/dist/components/Badge/Badge.types.d.ts +3 -1
- package/dist/components/Badge/Badge.variants.js +33 -96
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +78 -70
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +3 -1
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +1 -7
- package/dist/components/Breadcrumb/components/Item/Item.d.ts +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.js +33 -47
- package/dist/components/Breadcrumb/components/Item/Item.types.d.ts +3 -1
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +26 -63
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.js +37 -40
- package/dist/components/Button/Button.types.d.ts +3 -1
- package/dist/components/Button/Button.variants.js +96 -292
- package/dist/components/ButtonGroup/ButtonGroup.js +101 -138
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +9 -31
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +105 -113
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +48 -94
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +26 -43
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +28 -35
- package/dist/components/ButtonGroup/hooks/useButtonGroup.js +63 -61
- package/dist/components/Card/Card.d.ts +2 -2
- package/dist/components/Card/Card.js +35 -35
- package/dist/components/Card/Card.types.d.ts +3 -1
- package/dist/components/Card/Card.variants.js +25 -37
- package/dist/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.js +247 -268
- package/dist/components/Checkbox/Checkbox.types.d.ts +3 -1
- package/dist/components/Checkbox/Checkbox.variants.js +18 -65
- package/dist/components/Command/Command.d.ts +2 -2
- package/dist/components/Command/Command.js +46 -38
- package/dist/components/Command/Command.types.d.ts +3 -1
- package/dist/components/Command/Command.variants.js +1 -44
- package/dist/components/Command/components/Command.js +19 -6
- package/dist/components/Command/components/CommandEmpty.js +11 -13
- package/dist/components/Command/components/CommandGroup.js +19 -17
- package/dist/components/Command/components/CommandInput.js +60 -52
- package/dist/components/Command/components/CommandItem.js +28 -26
- package/dist/components/Command/components/CommandList.js +19 -14
- package/dist/components/Command/components/CommandSeparator.js +19 -14
- package/dist/components/Command/components/CommandShortcut.js +16 -16
- package/dist/components/Command/components/DialogContent.js +35 -29
- package/dist/components/Command/components/DialogOverlay.js +18 -16
- package/dist/components/Command/contexts/Command.provider.js +23 -21
- package/dist/components/Counter/Counter.d.ts +2 -2
- package/dist/components/Counter/Counter.js +151 -154
- package/dist/components/Counter/Counter.types.d.ts +3 -1
- package/dist/components/Counter/Counter.variants.js +6 -53
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.js +93 -162
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +3 -1
- package/dist/components/DateRangePicker/DateRangePicker.variants.js +1 -20
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +81 -115
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +1 -45
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +14 -20
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +50 -57
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +56 -251
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +33 -37
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +30 -95
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +10 -126
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +138 -113
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +2 -16
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +68 -102
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +1 -22
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +55 -90
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +55 -90
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +204 -177
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +58 -63
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +1 -19
- package/dist/components/DateRangePicker/constants/presets.js +16 -7
- package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +1 -3
- package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +187 -171
- package/dist/components/DateRangePicker/utils/disabled-dates.js +16 -22
- package/dist/components/DateRangePicker/utils/validation.js +2 -17
- package/dist/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/components/Datepicker/DatePicker.js +80 -135
- package/dist/components/Datepicker/DatePicker.types.d.ts +3 -1
- package/dist/components/Divider/Divider.js +18 -7
- package/dist/components/Drawer/Drawer.js +108 -130
- package/dist/components/Drawer/Drawer.variants.js +17 -81
- package/dist/components/Drawer/components/Body/Body.js +18 -21
- package/dist/components/Drawer/components/Footer/Footer.js +18 -23
- package/dist/components/Drawer/components/Header/Header.js +20 -24
- package/dist/components/Drawer/contexts/Drawer.context.js +2 -2
- package/dist/components/Drawer/hooks/useDrawer.js +81 -57
- package/dist/components/DropdownButton/DropdownButton.js +99 -114
- package/dist/components/Filter/Filter.js +40 -29
- package/dist/components/Filter/Filter.types.d.ts +5 -3
- package/dist/components/Filter/Filter.variants.js +1 -17
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +128 -94
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +83 -144
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +87 -81
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +66 -120
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +22 -34
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +74 -117
- package/dist/components/Filter/components/ResetButton/ResetButton.js +24 -29
- package/dist/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +83 -135
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +83 -69
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +80 -151
- package/dist/components/Filter/contexts/filter.provider.js +16 -4
- package/dist/components/Filter/events/index.js +3 -3
- package/dist/components/ImageUpload/ImageUpload.d.ts +2 -2
- package/dist/components/ImageUpload/ImageUpload.js +48 -150
- package/dist/components/ImageUpload/ImageUpload.types.d.ts +3 -1
- package/dist/components/ImageUpload/ImageUpload.variants.js +41 -93
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/Input.js +43 -168
- package/dist/components/Input/Input.types.d.ts +3 -1
- package/dist/components/Input/Input.variants.js +9 -51
- package/dist/components/LineChart/LineChart.d.ts +2 -2
- package/dist/components/LineChart/LineChart.js +83 -120
- package/dist/components/LineChart/LineChart.types.d.ts +4 -2
- package/dist/components/Loading/Loading.d.ts +2 -2
- package/dist/components/Loading/Loading.js +22 -18
- package/dist/components/Loading/Loading.types.d.ts +3 -1
- package/dist/components/Loading/Loading.variants.js +1 -8
- package/dist/components/Modal/Modal.js +3 -2
- package/dist/components/Modal/components/Body/Body.js +16 -5
- package/dist/components/Modal/components/Footer/Footer.js +16 -11
- package/dist/components/Modal/components/Header/Header.js +16 -11
- package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -3
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +1 -28
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.context.js +1 -3
- package/dist/components/Modal/contexts/Modal.provider.js +33 -23
- package/dist/components/Modal/hooks/useModal.js +29 -18
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +2 -2
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +26 -32
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +3 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +1 -25
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +32 -27
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +13 -32
- package/dist/components/MultiSelectDropdown/components/List/List.js +26 -27
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +1 -21
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +73 -123
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +1 -3
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +128 -131
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +30 -26
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +19 -6
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +9 -39
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +28 -33
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +171 -231
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +7 -41
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +47 -36
- package/dist/components/PhoneNumberInput/components/Wrapper.js +465 -503
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +1 -3
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1163 -1135
- package/dist/components/PieChart/PieChart.js +82 -72
- package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.js +47 -38
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +3 -1
- package/dist/components/ProgressBar/ProgressBar.variants.js +11 -28
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/Radio/Radio.js +71 -95
- package/dist/components/Radio/Radio.types.d.ts +3 -1
- package/dist/components/Radio/Radio.variants.js +33 -85
- package/dist/components/RadioCard/RadioCard.d.ts +2 -2
- package/dist/components/RadioCard/RadioCard.js +32 -36
- package/dist/components/RadioCard/RadioCard.types.d.ts +5 -3
- package/dist/components/RadioCardGroup/RadioCardGroup.d.ts +2 -2
- package/dist/components/RadioCardGroup/RadioCardGroup.js +42 -43
- package/dist/components/RadioCardGroup/RadioCardGroup.types.d.ts +4 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.js +48 -48
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +4 -2
- package/dist/components/Range/Range.d.ts +2 -2
- package/dist/components/Range/Range.js +83 -61
- package/dist/components/Range/Range.types.d.ts +3 -1
- package/dist/components/Range/Range.variants.js +19 -49
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Select/Select.js +52 -65
- package/dist/components/Select/Select.types.d.ts +3 -1
- package/dist/components/Select/Select.variants.js +13 -66
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +3 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -22
- package/dist/components/Select/components/EmptyList.js +8 -3
- package/dist/components/Select/components/List/List.js +89 -168
- package/dist/components/Select/components/List/List.types.d.ts +1 -1
- package/dist/components/Select/components/List/List.variants.js +1 -41
- package/dist/components/Select/components/ListItem/ListItem.js +41 -96
- package/dist/components/Select/components/ListItem/ListItem.variants.js +1 -19
- package/dist/components/Select/components/Wrapper.js +110 -233
- package/dist/components/Select/components/index.js +1 -1
- package/dist/components/Select/contexts/select.provider.js +34 -41
- package/dist/components/Select/hooks/useNavigationList.js +50 -44
- package/dist/components/Select/hooks/useSelect.js +104 -94
- package/dist/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.js +26 -21
- package/dist/components/Sidebar/Sidebar.types.d.ts +3 -1
- package/dist/components/Sidebar/Sidebar.variants.js +1 -27
- package/dist/components/Sidebar/components/Footer/Footer.d.ts +2 -2
- package/dist/components/Sidebar/components/Footer/Footer.js +18 -6
- package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +3 -1
- package/dist/components/Sidebar/components/Footer/Footer.variants.js +1 -8
- package/dist/components/Sidebar/components/Logo/Logo.d.ts +2 -2
- package/dist/components/Sidebar/components/Logo/Logo.js +18 -6
- package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +3 -1
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +1 -19
- package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +2 -2
- package/dist/components/Sidebar/components/Navigation/Navigation.js +26 -17
- package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +7 -5
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +33 -24
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +24 -24
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +12 -39
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +17 -6
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +1 -5
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +20 -9
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +1 -10
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +21 -60
- package/dist/components/Sidebar/components/index.d.ts +7 -7
- package/dist/components/Slider/Slider.d.ts +2 -2
- package/dist/components/Slider/Slider.js +70 -56
- package/dist/components/Slider/Slider.types.d.ts +3 -1
- package/dist/components/Slider/Slider.variants.js +19 -41
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.js +56 -55
- package/dist/components/Spinner/Spinner.types.d.ts +4 -2
- package/dist/components/Spinner/Spinner.variants.js +19 -45
- package/dist/components/Stepper/Stepper.d.ts +2 -2
- package/dist/components/Stepper/Stepper.js +56 -72
- package/dist/components/Stepper/Stepper.types.d.ts +3 -1
- package/dist/components/Stepper/Stepper.variants.js +132 -188
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +151 -197
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +24 -27
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +39 -20
- package/dist/components/Stepper/components/StepItem/StepItem.js +15 -6
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +93 -111
- package/dist/components/Stepper/hooks/useStepItemLogic.js +3 -6
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/Switch.js +135 -178
- package/dist/components/Switch/Switch.types.d.ts +3 -1
- package/dist/components/Switch/Switch.variants.js +1 -40
- package/dist/components/Table/Table.js +29 -25
- package/dist/components/Table/Table.types.d.ts +3 -1
- package/dist/components/Table/Table.variants.js +6 -30
- package/dist/components/Table/components/Body.js +20 -16
- package/dist/components/Table/components/Filter.js +21 -7
- package/dist/components/Table/components/Head.js +20 -16
- package/dist/components/Table/components/Row.js +28 -26
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +34 -26
- package/dist/components/Tabs/Tabs.types.d.ts +3 -1
- package/dist/components/Tabs/Tabs.variants.js +10 -39
- package/dist/components/Tabs/components/Content.js +23 -14
- package/dist/components/Tabs/components/List.js +28 -19
- package/dist/components/Tabs/components/Trigger.js +25 -21
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Tag/Tag.js +33 -17
- package/dist/components/Tag/Tag.types.d.ts +3 -1
- package/dist/components/Tag/Tag.variants.js +23 -36
- package/dist/components/TagSelect/TagSelect.d.ts +2 -2
- package/dist/components/TagSelect/TagSelect.js +19 -6
- package/dist/components/TagSelect/TagSelect.types.d.ts +4 -2
- package/dist/components/TagSelect/TagSelect.variants.js +1 -22
- package/dist/components/TagSelect/components/Item/Item.js +24 -18
- package/dist/components/TagSelect/components/Item/Item.types.d.ts +1 -1
- package/dist/components/TagSelect/components/Item/Item.variants.js +13 -26
- package/dist/components/TagSelect/components/List/List.js +22 -9
- package/dist/components/TagSelect/components/List/List.variants.js +1 -19
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +68 -84
- package/dist/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/components/TagSelect/contexts/TagSelect.provider.js +75 -65
- package/dist/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
- package/dist/components/TagSelect/hooks/useTagSelect.js +30 -26
- package/dist/components/TextArea/TextArea.d.ts +2 -2
- package/dist/components/TextArea/TextArea.js +35 -34
- package/dist/components/TextArea/TextArea.types.d.ts +3 -1
- package/dist/components/TextArea/TextArea.variants.js +1 -16
- package/dist/components/TimePicker/TimePicker.d.ts +2 -2
- package/dist/components/TimePicker/TimePicker.js +21 -11
- package/dist/components/TimePicker/TimePicker.types.d.ts +3 -1
- package/dist/components/TimePicker/TimePicker.variants.js +1 -64
- package/dist/components/TimePicker/components/HoursList/HoursList.js +77 -116
- package/dist/components/TimePicker/components/HoursList/HoursList.types.d.ts +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +79 -88
- package/dist/components/TimePicker/components/MeridianList/MeridianList.types.d.ts +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +66 -89
- package/dist/components/TimePicker/components/MinutesList/MinutesList.types.d.ts +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +144 -228
- package/dist/components/TimePicker/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +44 -75
- package/dist/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -1
- package/dist/components/TimePicker/contexts/time-picker.hook.js +1 -3
- package/dist/components/TimePicker/contexts/time-picker.provider.js +76 -58
- package/dist/components/Toast/Toast.d.ts +2 -2
- package/dist/components/Toast/Toast.js +374 -339
- package/dist/components/Toast/Toast.types.d.ts +3 -1
- package/dist/components/Toast/Toast.variants.js +10 -43
- package/dist/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.js +36 -35
- package/dist/components/Tooltip/Tooltip.types.d.ts +3 -1
- package/dist/components/Typography/Typography.d.ts +2 -2
- package/dist/components/Typography/Typography.js +26 -23
- package/dist/components/Typography/Typography.types.d.ts +3 -1
- package/dist/components/Typography/Typography.variants.js +24 -59
- package/dist/components/VirtualizedTable/VirtualizedTable.js +9 -91
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +1 -1
- package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -23
- package/dist/components/VirtualizedTable/assets/chevron-up.js +12 -22
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +62 -115
- package/dist/components/VirtualizedTable/components/Body/Body.js +29 -83
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +104 -165
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +13 -19
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +43 -49
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +116 -174
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +32 -57
- package/dist/components/VirtualizedTable/components/Header/Header.js +61 -98
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +65 -63
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +32 -102
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +51 -29
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +4 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +20 -24
- package/dist/components/VirtualizedTable/contexts/table.provider.js +129 -158
- package/dist/components/VirtualizedTable/events/index.js +18 -18
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/contexts/theme.provider.js +61 -49
- package/dist/hooks/useToggle.js +10 -8
- package/dist/index-0g-eSmV1.js +142 -0
- package/dist/{index-Jr0cra7i.js → index-B9v5VxE2.js} +6 -6
- package/dist/index-BvEpLnOv.js +144 -0
- package/dist/{index-9a-FL_6D.js → index-C6mt--X_.js} +44 -45
- package/dist/{index-B7-5g1Sm.js → index-CiACf4ao.js} +407 -401
- package/dist/{index-Dfq4O3b4.js → index-Dy4FVowi.js} +1 -1
- package/dist/{index-Cmf-IG4l.js → index-kTGTSLpq.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +12 -11
- package/dist/{proxy-BvdTb_6B.js → proxy-BGrSEZuV.js} +2001 -1929
- package/dist/styles.css +1 -1
- package/dist/utils/index.js +1 -3
- package/package.json +12 -11
- package/dist/AdditionalOptions-C2FDVZhu.js +0 -45
- package/dist/Modal-BTOXCb0Y.js +0 -120
- package/dist/index-CESXsoMn.js +0 -14
- package/dist/index-Dd_ZmIqU.js +0 -139
- package/dist/index-URQGEGX7.js +0 -136
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as a, jsxs as U, Fragment as ce } from "react/jsx-runtime";
|
|
2
|
+
import { c as Re } from "../../compiler-runtime-DA41awpA.js";
|
|
3
|
+
import { S as J } from "../../index-BvoZGpli.js";
|
|
3
4
|
import * as n from "react";
|
|
4
|
-
import { useRef as be, useEffect as ge,
|
|
5
|
+
import { useRef as be, useEffect as ge, isValidElement as Q } from "react";
|
|
5
6
|
import * as Ne from "react-dom";
|
|
6
|
-
import { P as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
9
|
-
import { B as
|
|
10
|
-
import { P as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { CheckCircleFilledIcon as
|
|
17
|
-
import { ErrorIcon as
|
|
18
|
-
import { WarningTriangleIcon as
|
|
19
|
-
|
|
20
|
-
var ze = Object.freeze({
|
|
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
21
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
22
22
|
position: "absolute",
|
|
23
23
|
border: 0,
|
|
@@ -29,142 +29,142 @@ var ze = Object.freeze({
|
|
|
29
29
|
clip: "rect(0, 0, 0, 0)",
|
|
30
30
|
whiteSpace: "nowrap",
|
|
31
31
|
wordWrap: "normal"
|
|
32
|
-
}),
|
|
33
|
-
(
|
|
34
|
-
|
|
32
|
+
}), Ye = "VisuallyHidden", re = n.forwardRef(
|
|
33
|
+
(t, e) => /* @__PURE__ */ a(
|
|
34
|
+
X.span,
|
|
35
35
|
{
|
|
36
|
-
...
|
|
37
|
-
ref:
|
|
38
|
-
style: { ...
|
|
36
|
+
...t,
|
|
37
|
+
ref: e,
|
|
38
|
+
style: { ...Xe, ...t.style }
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
);
|
|
42
|
-
|
|
43
|
-
var
|
|
42
|
+
re.displayName = Ye;
|
|
43
|
+
var se = "ToastProvider", [ne, ze, je] = De("Toast"), [ue] = Se("Toast", [je]), [qe, G] = ue(se), de = (t) => {
|
|
44
44
|
const {
|
|
45
|
-
__scopeToast:
|
|
45
|
+
__scopeToast: e,
|
|
46
46
|
label: r = "Notification",
|
|
47
|
-
duration:
|
|
48
|
-
swipeDirection:
|
|
49
|
-
swipeThreshold:
|
|
47
|
+
duration: o = 5e3,
|
|
48
|
+
swipeDirection: c = "right",
|
|
49
|
+
swipeThreshold: u = 50,
|
|
50
50
|
children: f
|
|
51
|
-
} =
|
|
51
|
+
} = t, [v, T] = n.useState(null), [l, R] = n.useState(0), y = n.useRef(!1), K = n.useRef(!1);
|
|
52
52
|
return r.trim() || console.error(
|
|
53
|
-
`Invalid prop \`label\` supplied to \`${
|
|
54
|
-
), /* @__PURE__ */
|
|
55
|
-
|
|
53
|
+
`Invalid prop \`label\` supplied to \`${se}\`. Expected non-empty \`string\`.`
|
|
54
|
+
), /* @__PURE__ */ a(ne.Provider, { scope: e, children: /* @__PURE__ */ a(
|
|
55
|
+
qe,
|
|
56
56
|
{
|
|
57
|
-
scope:
|
|
57
|
+
scope: e,
|
|
58
58
|
label: r,
|
|
59
|
-
duration:
|
|
60
|
-
swipeDirection:
|
|
61
|
-
swipeThreshold:
|
|
62
|
-
toastCount:
|
|
63
|
-
viewport:
|
|
64
|
-
onViewportChange:
|
|
65
|
-
onToastAdd: n.useCallback(() =>
|
|
66
|
-
onToastRemove: n.useCallback(() =>
|
|
67
|
-
isFocusedToastEscapeKeyDownRef:
|
|
68
|
-
isClosePausedRef:
|
|
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
69
|
children: f
|
|
70
70
|
}
|
|
71
71
|
) });
|
|
72
72
|
};
|
|
73
|
-
|
|
74
|
-
var
|
|
75
|
-
(
|
|
73
|
+
de.displayName = se;
|
|
74
|
+
var fe = "ToastViewport", Ge = ["F8"], ee = "toast.viewportPause", te = "toast.viewportResume", pe = n.forwardRef(
|
|
75
|
+
(t, e) => {
|
|
76
76
|
const {
|
|
77
77
|
__scopeToast: r,
|
|
78
|
-
hotkey:
|
|
79
|
-
label:
|
|
80
|
-
...
|
|
81
|
-
} =
|
|
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
82
|
n.useEffect(() => {
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const i = (C) => {
|
|
84
|
+
o.length !== 0 && o.every((m) => C[m] || C.code === m) && y.current?.focus();
|
|
85
85
|
};
|
|
86
|
-
return document.addEventListener("keydown",
|
|
87
|
-
}, [
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
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
90
|
const p = () => {
|
|
91
91
|
if (!f.isClosePausedRef.current) {
|
|
92
|
-
const h = new CustomEvent(
|
|
93
|
-
|
|
92
|
+
const h = new CustomEvent(ee);
|
|
93
|
+
C.dispatchEvent(h), f.isClosePausedRef.current = !0;
|
|
94
94
|
}
|
|
95
95
|
}, m = () => {
|
|
96
96
|
if (f.isClosePausedRef.current) {
|
|
97
|
-
const h = new CustomEvent(
|
|
98
|
-
|
|
97
|
+
const h = new CustomEvent(te);
|
|
98
|
+
C.dispatchEvent(h), f.isClosePausedRef.current = !1;
|
|
99
99
|
}
|
|
100
|
-
},
|
|
101
|
-
!
|
|
102
|
-
},
|
|
103
|
-
|
|
100
|
+
}, E = (h) => {
|
|
101
|
+
!i.contains(h.relatedTarget) && m();
|
|
102
|
+
}, P = () => {
|
|
103
|
+
i.contains(document.activeElement) || m();
|
|
104
104
|
};
|
|
105
|
-
return
|
|
106
|
-
|
|
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
107
|
};
|
|
108
108
|
}
|
|
109
|
-
}, [
|
|
110
|
-
const
|
|
111
|
-
({ tabbingDirection:
|
|
112
|
-
const p =
|
|
113
|
-
const
|
|
114
|
-
return
|
|
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
115
|
});
|
|
116
|
-
return (
|
|
116
|
+
return (i === "forwards" ? p.reverse() : p).flat();
|
|
117
117
|
},
|
|
118
|
-
[
|
|
118
|
+
[v]
|
|
119
119
|
);
|
|
120
120
|
return n.useEffect(() => {
|
|
121
|
-
const
|
|
122
|
-
if (
|
|
123
|
-
const
|
|
121
|
+
const i = y.current;
|
|
122
|
+
if (i) {
|
|
123
|
+
const C = (p) => {
|
|
124
124
|
const m = p.altKey || p.ctrlKey || p.metaKey;
|
|
125
125
|
if (p.key === "Tab" && !m) {
|
|
126
|
-
const
|
|
127
|
-
if (p.target ===
|
|
128
|
-
|
|
126
|
+
const P = document.activeElement, h = p.shiftKey;
|
|
127
|
+
if (p.target === i && h) {
|
|
128
|
+
l.current?.focus();
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
|
|
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
133
|
}
|
|
134
134
|
};
|
|
135
|
-
return
|
|
135
|
+
return i.addEventListener("keydown", C), () => i.removeEventListener("keydown", C);
|
|
136
136
|
}
|
|
137
|
-
}, [
|
|
138
|
-
|
|
137
|
+
}, [v, d]), /* @__PURE__ */ U(
|
|
138
|
+
Fe,
|
|
139
139
|
{
|
|
140
|
-
ref:
|
|
140
|
+
ref: T,
|
|
141
141
|
role: "region",
|
|
142
|
-
"aria-label":
|
|
142
|
+
"aria-label": c.replace("{hotkey}", b),
|
|
143
143
|
tabIndex: -1,
|
|
144
|
-
style: { pointerEvents:
|
|
144
|
+
style: { pointerEvents: w ? void 0 : "none" },
|
|
145
145
|
children: [
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
w && /* @__PURE__ */ a(
|
|
147
|
+
oe,
|
|
148
148
|
{
|
|
149
|
-
ref:
|
|
149
|
+
ref: l,
|
|
150
150
|
onFocusFromOutsideViewport: () => {
|
|
151
|
-
const
|
|
151
|
+
const i = d({
|
|
152
152
|
tabbingDirection: "forwards"
|
|
153
153
|
});
|
|
154
|
-
|
|
154
|
+
Z(i);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
/* @__PURE__ */ a(ne.Slot, { scope: r, children: /* @__PURE__ */ a(X.ol, { tabIndex: -1, ...u, ref: K }) }),
|
|
159
|
+
w && /* @__PURE__ */ a(
|
|
160
|
+
oe,
|
|
161
161
|
{
|
|
162
|
-
ref:
|
|
162
|
+
ref: R,
|
|
163
163
|
onFocusFromOutsideViewport: () => {
|
|
164
|
-
const
|
|
164
|
+
const i = d({
|
|
165
165
|
tabbingDirection: "backwards"
|
|
166
166
|
});
|
|
167
|
-
|
|
167
|
+
Z(i);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
)
|
|
@@ -173,162 +173,162 @@ var de = "ToastViewport", Je = ["F8"], G = "toast.viewportPause", J = "toast.vie
|
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
|
-
|
|
177
|
-
var
|
|
178
|
-
(
|
|
179
|
-
const { __scopeToast: r, onFocusFromOutsideViewport:
|
|
180
|
-
return /* @__PURE__ */
|
|
181
|
-
|
|
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
182
|
{
|
|
183
183
|
tabIndex: 0,
|
|
184
|
-
...
|
|
185
|
-
ref:
|
|
184
|
+
...c,
|
|
185
|
+
ref: e,
|
|
186
186
|
style: { position: "fixed" },
|
|
187
187
|
onFocus: (f) => {
|
|
188
|
-
const
|
|
189
|
-
!
|
|
188
|
+
const v = f.relatedTarget;
|
|
189
|
+
!u.viewport?.contains(v) && o();
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
193
|
}
|
|
194
194
|
);
|
|
195
|
-
|
|
196
|
-
var
|
|
197
|
-
(
|
|
198
|
-
const { forceMount: r, open:
|
|
199
|
-
prop:
|
|
200
|
-
defaultProp:
|
|
201
|
-
onChange:
|
|
202
|
-
caller:
|
|
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
203
|
});
|
|
204
|
-
return /* @__PURE__ */
|
|
205
|
-
|
|
204
|
+
return /* @__PURE__ */ a(Me, { present: r || v, children: /* @__PURE__ */ a(
|
|
205
|
+
rt,
|
|
206
206
|
{
|
|
207
|
-
open:
|
|
207
|
+
open: v,
|
|
208
208
|
...f,
|
|
209
|
-
ref:
|
|
210
|
-
onClose: () =>
|
|
211
|
-
onPause:
|
|
212
|
-
onResume:
|
|
213
|
-
onSwipeStart:
|
|
214
|
-
|
|
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
215
|
}),
|
|
216
|
-
onSwipeMove:
|
|
217
|
-
const { x:
|
|
218
|
-
|
|
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
219
|
}),
|
|
220
|
-
onSwipeCancel:
|
|
221
|
-
|
|
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
222
|
}),
|
|
223
|
-
onSwipeEnd:
|
|
224
|
-
const { x:
|
|
225
|
-
|
|
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
226
|
})
|
|
227
227
|
}
|
|
228
228
|
) });
|
|
229
229
|
}
|
|
230
230
|
);
|
|
231
|
-
|
|
232
|
-
var [
|
|
231
|
+
we.displayName = Y;
|
|
232
|
+
var [tt, ot] = ue(Y, {
|
|
233
233
|
onClose() {
|
|
234
234
|
}
|
|
235
|
-
}),
|
|
236
|
-
(
|
|
235
|
+
}), rt = n.forwardRef(
|
|
236
|
+
(t, e) => {
|
|
237
237
|
const {
|
|
238
238
|
__scopeToast: r,
|
|
239
|
-
type:
|
|
240
|
-
duration:
|
|
241
|
-
open:
|
|
239
|
+
type: o = "foreground",
|
|
240
|
+
duration: c,
|
|
241
|
+
open: u,
|
|
242
242
|
onClose: f,
|
|
243
|
-
onEscapeKeyDown:
|
|
244
|
-
onPause:
|
|
245
|
-
onResume:
|
|
246
|
-
onSwipeStart:
|
|
247
|
-
onSwipeMove:
|
|
248
|
-
onSwipeCancel:
|
|
249
|
-
onSwipeEnd:
|
|
250
|
-
...
|
|
251
|
-
} =
|
|
252
|
-
|
|
253
|
-
}),
|
|
254
|
-
(
|
|
255
|
-
!
|
|
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
256
|
},
|
|
257
|
-
[
|
|
257
|
+
[N]
|
|
258
258
|
);
|
|
259
259
|
n.useEffect(() => {
|
|
260
|
-
const
|
|
261
|
-
if (
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
},
|
|
265
|
-
const
|
|
266
|
-
|
|
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
267
|
};
|
|
268
|
-
return
|
|
269
|
-
|
|
268
|
+
return s.addEventListener(ee, g), s.addEventListener(te, x), () => {
|
|
269
|
+
s.removeEventListener(ee, g), s.removeEventListener(te, x);
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
|
-
}, [
|
|
273
|
-
|
|
274
|
-
}, [
|
|
275
|
-
const
|
|
276
|
-
return
|
|
277
|
-
|
|
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
278
|
st,
|
|
279
279
|
{
|
|
280
280
|
__scopeToast: r,
|
|
281
281
|
role: "status",
|
|
282
|
-
"aria-live":
|
|
283
|
-
children:
|
|
282
|
+
"aria-live": o === "foreground" ? "assertive" : "polite",
|
|
283
|
+
children: k
|
|
284
284
|
}
|
|
285
285
|
),
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
-
|
|
286
|
+
/* @__PURE__ */ a(tt, { scope: r, onClose: N, children: Ne.createPortal(
|
|
287
|
+
/* @__PURE__ */ a(ne.ItemSlot, { scope: r, children: /* @__PURE__ */ a(
|
|
288
|
+
Le,
|
|
289
289
|
{
|
|
290
290
|
asChild: !0,
|
|
291
|
-
onEscapeKeyDown:
|
|
292
|
-
|
|
291
|
+
onEscapeKeyDown: O(v, () => {
|
|
292
|
+
d.isFocusedToastEscapeKeyDownRef.current || N(), d.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
293
293
|
}),
|
|
294
|
-
children: /* @__PURE__ */
|
|
295
|
-
|
|
294
|
+
children: /* @__PURE__ */ a(
|
|
295
|
+
X.li,
|
|
296
296
|
{
|
|
297
297
|
tabIndex: 0,
|
|
298
|
-
"data-state":
|
|
299
|
-
"data-swipe-direction":
|
|
300
|
-
...
|
|
298
|
+
"data-state": u ? "open" : "closed",
|
|
299
|
+
"data-swipe-direction": d.swipeDirection,
|
|
300
|
+
...w,
|
|
301
301
|
ref: p,
|
|
302
|
-
style: { userSelect: "none", touchAction: "none", ...
|
|
303
|
-
onKeyDown:
|
|
304
|
-
|
|
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
305
|
}),
|
|
306
|
-
onPointerDown:
|
|
307
|
-
|
|
306
|
+
onPointerDown: O(t.onPointerDown, (s) => {
|
|
307
|
+
s.button === 0 && (m.current = { x: s.clientX, y: s.clientY });
|
|
308
308
|
}),
|
|
309
|
-
onPointerMove:
|
|
309
|
+
onPointerMove: O(t.onPointerMove, (s) => {
|
|
310
310
|
if (!m.current) return;
|
|
311
|
-
const
|
|
312
|
-
|
|
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
313
|
discrete: !1
|
|
314
|
-
})) :
|
|
314
|
+
})) : ae(V, d.swipeDirection, B) ? (E.current = V, j(Je, R, _, {
|
|
315
315
|
discrete: !1
|
|
316
|
-
}),
|
|
316
|
+
}), s.target.setPointerCapture(s.pointerId)) : (Math.abs(x) > B || Math.abs(g) > B) && (m.current = null);
|
|
317
317
|
}),
|
|
318
|
-
onPointerUp:
|
|
319
|
-
const
|
|
320
|
-
if (
|
|
321
|
-
const
|
|
322
|
-
|
|
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
323
|
discrete: !0
|
|
324
|
-
}) :
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
324
|
+
}) : j(
|
|
325
|
+
Ze,
|
|
326
|
+
K,
|
|
327
|
+
I,
|
|
328
328
|
{
|
|
329
329
|
discrete: !0
|
|
330
330
|
}
|
|
331
|
-
),
|
|
331
|
+
), S.addEventListener("click", (F) => F.preventDefault(), {
|
|
332
332
|
once: !0
|
|
333
333
|
});
|
|
334
334
|
}
|
|
@@ -337,178 +337,213 @@ var [ot, rt] = ue(k, {
|
|
|
337
337
|
)
|
|
338
338
|
}
|
|
339
339
|
) }),
|
|
340
|
-
|
|
340
|
+
d.viewport
|
|
341
341
|
) })
|
|
342
342
|
] }) : null;
|
|
343
343
|
}
|
|
344
|
-
), st = (
|
|
345
|
-
const { __scopeToast:
|
|
346
|
-
return
|
|
347
|
-
const
|
|
348
|
-
return () => window.clearTimeout(
|
|
349
|
-
}, []),
|
|
350
|
-
|
|
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
351
|
" ",
|
|
352
352
|
r
|
|
353
353
|
] }) }) });
|
|
354
|
-
},
|
|
355
|
-
(
|
|
356
|
-
const { __scopeToast: r, ...
|
|
357
|
-
return /* @__PURE__ */
|
|
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
358
|
}
|
|
359
359
|
);
|
|
360
|
-
|
|
361
|
-
var
|
|
362
|
-
(
|
|
363
|
-
const { __scopeToast: r, ...
|
|
364
|
-
return /* @__PURE__ */
|
|
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
365
|
}
|
|
366
366
|
);
|
|
367
|
-
Te.displayName =
|
|
368
|
-
var
|
|
369
|
-
(
|
|
370
|
-
const { altText: r, ...
|
|
371
|
-
return r.trim() ? /* @__PURE__ */
|
|
372
|
-
`Invalid prop \`altText\` supplied to \`${
|
|
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
373
|
), null);
|
|
374
374
|
}
|
|
375
375
|
);
|
|
376
|
-
|
|
377
|
-
var
|
|
378
|
-
(
|
|
379
|
-
const { __scopeToast: r, ...
|
|
380
|
-
return /* @__PURE__ */
|
|
381
|
-
|
|
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
382
|
{
|
|
383
383
|
type: "button",
|
|
384
|
-
...
|
|
385
|
-
ref:
|
|
386
|
-
onClick:
|
|
384
|
+
...o,
|
|
385
|
+
ref: e,
|
|
386
|
+
onClick: O(t.onClick, c.onClose)
|
|
387
387
|
}
|
|
388
388
|
) });
|
|
389
389
|
}
|
|
390
390
|
);
|
|
391
|
-
|
|
392
|
-
var Pe = n.forwardRef((
|
|
393
|
-
const { __scopeToast: r, altText:
|
|
394
|
-
return /* @__PURE__ */
|
|
395
|
-
|
|
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
396
|
{
|
|
397
397
|
"data-radix-toast-announce-exclude": "",
|
|
398
|
-
"data-radix-toast-announce-alt":
|
|
399
|
-
...
|
|
400
|
-
ref:
|
|
398
|
+
"data-radix-toast-announce-alt": o || void 0,
|
|
399
|
+
...c,
|
|
400
|
+
ref: e
|
|
401
401
|
}
|
|
402
402
|
);
|
|
403
403
|
});
|
|
404
|
-
function
|
|
405
|
-
const
|
|
406
|
-
return Array.from(
|
|
407
|
-
if (
|
|
408
|
-
const
|
|
409
|
-
if (!
|
|
410
|
-
if (
|
|
411
|
-
const f =
|
|
412
|
-
f &&
|
|
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
413
|
} else
|
|
414
|
-
|
|
414
|
+
e.push(...xe(o));
|
|
415
415
|
}
|
|
416
|
-
}),
|
|
416
|
+
}), e;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
const
|
|
420
|
-
|
|
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
421
|
}
|
|
422
|
-
var
|
|
423
|
-
const
|
|
424
|
-
return
|
|
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
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function it(t = () => {
|
|
427
427
|
}) {
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
let r = 0,
|
|
431
|
-
return r = window.requestAnimationFrame(() =>
|
|
432
|
-
window.cancelAnimationFrame(r), window.cancelAnimationFrame(
|
|
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
433
|
};
|
|
434
|
-
}, [
|
|
434
|
+
}, [e]);
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
return
|
|
436
|
+
function ct(t) {
|
|
437
|
+
return t.nodeType === t.ELEMENT_NODE;
|
|
438
438
|
}
|
|
439
|
-
function lt(
|
|
440
|
-
const
|
|
441
|
-
acceptNode: (
|
|
442
|
-
const
|
|
443
|
-
return
|
|
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
444
|
}
|
|
445
445
|
});
|
|
446
|
-
for (; r.nextNode(); )
|
|
447
|
-
return
|
|
446
|
+
for (; r.nextNode(); ) e.push(r.currentNode);
|
|
447
|
+
return e;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
const
|
|
451
|
-
return
|
|
449
|
+
function Z(t) {
|
|
450
|
+
const e = document.activeElement;
|
|
451
|
+
return t.some((r) => r === e ? !0 : (r.focus(), document.activeElement !== e));
|
|
452
452
|
}
|
|
453
|
-
var
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
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;
|
|
511
546
|
};
|
|
512
547
|
export {
|
|
513
|
-
|
|
548
|
+
Dt as Toast
|
|
514
549
|
};
|