haze-ui 1.24.1 → 1.26.0
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/README.md +237 -0
- package/dist/components/Accordion/Accordion.js +1 -0
- package/dist/components/Accordion/AccordionItem.js +1 -0
- package/dist/components/Accordion/index.js +1 -0
- package/dist/components/Affix/Affix.js +1 -0
- package/dist/components/Affix/index.js +1 -0
- package/dist/components/Alert/Alert.js +20 -18
- package/dist/components/Alert/index.js +1 -0
- package/dist/components/ApprovalCard/ApprovalCard.js +28 -25
- package/dist/components/ApprovalCard/index.js +1 -0
- package/dist/components/AspectRatio/AspectRatio.js +1 -0
- package/dist/components/AspectRatio/index.js +1 -0
- package/dist/components/AsyncSection/AsyncSection.js +33 -30
- package/dist/components/AsyncSection/index.js +1 -0
- package/dist/components/Avatar/Avatar.js +1 -0
- package/dist/components/Avatar/index.js +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +30 -0
- package/dist/components/AvatarGroup/index.js +3 -0
- package/dist/components/BackToTop/BackToTop.js +16 -14
- package/dist/components/BackToTop/index.js +1 -0
- package/dist/components/Badge/Badge.js +1 -0
- package/dist/components/Badge/index.js +1 -0
- package/dist/components/Banner/Banner.js +20 -18
- package/dist/components/Banner/index.js +1 -0
- package/dist/components/BottomSheet/BottomSheet.js +1 -0
- package/dist/components/BottomSheet/index.js +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +19 -17
- package/dist/components/Breadcrumb/BreadcrumbItem.js +1 -0
- package/dist/components/Breadcrumb/index.js +1 -0
- package/dist/components/Button/Button.js +1 -0
- package/dist/components/Button/ButtonLink.js +1 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/Button/styles.js +1 -0
- package/dist/components/Calendar/Calendar.js +124 -0
- package/dist/components/Calendar/date.js +54 -0
- package/dist/components/Calendar/index.js +3 -0
- package/dist/components/Card/Card.js +1 -0
- package/dist/components/Card/index.js +1 -0
- package/dist/components/Carousel/Carousel.js +43 -40
- package/dist/components/Carousel/CarouselSlide.js +1 -0
- package/dist/components/Carousel/index.js +1 -0
- package/dist/components/Cascader/Cascader.js +228 -0
- package/dist/components/Cascader/index.js +3 -0
- package/dist/components/ChatContainer/ChatContainer.js +1 -0
- package/dist/components/ChatContainer/index.js +1 -0
- package/dist/components/ChatInput/ChatInput.js +31 -29
- package/dist/components/ChatInput/index.js +1 -0
- package/dist/components/ChatMessage/ChatMessage.js +29 -27
- package/dist/components/ChatMessage/index.js +1 -0
- package/dist/components/Checkbox/Checkbox.js +1 -0
- package/dist/components/Checkbox/CheckboxCore.js +1 -0
- package/dist/components/Checkbox/index.js +1 -0
- package/dist/components/Chip/Chip.js +21 -19
- package/dist/components/Chip/index.js +1 -0
- package/dist/components/CodeBlock/CodeBlock.js +1 -0
- package/dist/components/CodeBlock/index.js +1 -0
- package/dist/components/Collapsible/Collapsible.js +1 -0
- package/dist/components/Collapsible/index.js +1 -0
- package/dist/components/ColorPicker/ColorPicker.js +1 -0
- package/dist/components/ColorPicker/ColorPickerCore.js +29 -26
- package/dist/components/ColorPicker/index.js +1 -0
- package/dist/components/Combobox/Combobox.js +70 -41
- package/dist/components/Combobox/ComboboxOption.js +9 -5
- package/dist/components/Combobox/index.js +1 -0
- package/dist/components/Command/Command.js +1 -0
- package/dist/components/Command/index.js +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.js +41 -39
- package/dist/components/ConfirmDialog/index.js +1 -0
- package/dist/components/Container/Container.js +1 -0
- package/dist/components/Container/index.js +1 -0
- package/dist/components/ContextMenu/ContextMenu.js +1 -0
- package/dist/components/ContextMenu/ContextMenuContent.js +1 -0
- package/dist/components/ContextMenu/ContextMenuContext.js +1 -0
- package/dist/components/ContextMenu/ContextMenuItem.js +1 -0
- package/dist/components/ContextMenu/ContextMenuSeparator.js +1 -0
- package/dist/components/ContextMenu/ContextMenuTrigger.js +1 -0
- package/dist/components/ContextMenu/index.js +1 -0
- package/dist/components/ConversationList/ConversationItem.js +1 -0
- package/dist/components/ConversationList/ConversationList.js +1 -0
- package/dist/components/ConversationList/index.js +1 -0
- package/dist/components/DataTable/DataTable.js +193 -0
- package/dist/components/DataTable/index.js +3 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -0
- package/dist/components/DateRangePicker/DateRangePickerCore.js +22 -19
- package/dist/components/DateRangePicker/index.js +1 -0
- package/dist/components/Datepicker/Datepicker.js +11 -8
- package/dist/components/Datepicker/DatepickerCore.js +19 -16
- package/dist/components/Datepicker/index.js +1 -0
- package/dist/components/Dialog/Dialog.js +1 -0
- package/dist/components/Dialog/index.js +1 -0
- package/dist/components/DiffViewer/DiffViewer.js +1 -0
- package/dist/components/DiffViewer/index.js +1 -0
- package/dist/components/Disclosure/Disclosure.js +1 -0
- package/dist/components/Disclosure/index.js +1 -0
- package/dist/components/Divider/Divider.js +1 -0
- package/dist/components/Divider/index.js +1 -0
- package/dist/components/Drawer/Drawer.js +1 -0
- package/dist/components/Drawer/index.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuContent.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuContext.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuItem.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuSeparator.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuTrigger.js +1 -0
- package/dist/components/DropdownMenu/index.js +1 -0
- package/dist/components/Empty/Empty.js +22 -19
- package/dist/components/Empty/index.js +1 -0
- package/dist/components/FileInput/FileInput.js +15 -13
- package/dist/components/FileInput/index.js +1 -0
- package/dist/components/Flex/Flex.js +1 -0
- package/dist/components/Flex/index.js +1 -0
- package/dist/components/Grid/Grid.js +1 -0
- package/dist/components/Grid/GridItem.js +1 -0
- package/dist/components/Grid/index.js +1 -0
- package/dist/components/HoverCard/HoverCard.js +54 -0
- package/dist/components/HoverCard/index.js +3 -0
- package/dist/components/Icon/Icon.js +1 -0
- package/dist/components/Icon/index.js +1 -0
- package/dist/components/Image/Image.js +1 -0
- package/dist/components/Image/index.js +1 -0
- package/dist/components/InlineEdit/InlineEdit.js +33 -31
- package/dist/components/InlineEdit/index.js +1 -0
- package/dist/components/Input/Input.js +1 -0
- package/dist/components/Input/InputCore.js +1 -0
- package/dist/components/Input/index.js +1 -0
- package/dist/components/Kbd/Kbd.js +22 -0
- package/dist/components/Kbd/index.js +3 -0
- package/dist/components/List/List.js +1 -0
- package/dist/components/List/ListItem.js +1 -0
- package/dist/components/List/index.js +1 -0
- package/dist/components/LocaleProvider/LocaleContext.js +6 -0
- package/dist/components/LocaleProvider/LocaleProvider.js +22 -0
- package/dist/components/LocaleProvider/index.js +6 -0
- package/dist/components/LocaleProvider/locale.js +132 -0
- package/dist/components/LocaleProvider/useStrings.js +27 -0
- package/dist/components/LocaleProvider/zh-cn.js +128 -0
- package/dist/components/LogViewer/LogViewer.js +45 -43
- package/dist/components/LogViewer/index.js +1 -0
- package/dist/components/MarkdownRenderer/MarkdownRenderer.js +20 -19
- package/dist/components/MarkdownRenderer/index.js +1 -0
- package/dist/components/MarkdownRenderer/markdown-blocks.js +42 -0
- package/dist/components/Mentions/Mentions.js +17 -0
- package/dist/components/Mentions/MentionsCore.js +116 -0
- package/dist/components/Mentions/index.js +4 -0
- package/dist/components/Menu/Menu.js +1 -0
- package/dist/components/Menu/MenuDivider.js +1 -0
- package/dist/components/Menu/MenuItem.js +1 -0
- package/dist/components/Menu/index.js +1 -0
- package/dist/components/ModelPicker/ModelPicker.js +17 -15
- package/dist/components/ModelPicker/index.js +1 -0
- package/dist/components/NavigationBar/NavLink.js +1 -0
- package/dist/components/NavigationBar/NavigationBar.js +1 -0
- package/dist/components/NavigationBar/index.js +1 -0
- package/dist/components/NumberInput/NumberInput.js +1 -0
- package/dist/components/NumberInput/NumberInputCore.js +35 -33
- package/dist/components/NumberInput/index.js +1 -0
- package/dist/components/OTPInput/OTPInput.js +1 -0
- package/dist/components/OTPInput/OTPInputCore.js +36 -30
- package/dist/components/OTPInput/index.js +1 -0
- package/dist/components/Pagination/Pagination.js +32 -30
- package/dist/components/Pagination/index.js +1 -0
- package/dist/components/PasswordInput/PasswordInput.js +1 -0
- package/dist/components/PasswordInput/PasswordInputCore.js +23 -21
- package/dist/components/PasswordInput/index.js +1 -0
- package/dist/components/Popover/Popover.js +1 -0
- package/dist/components/Popover/index.js +1 -0
- package/dist/components/Progress/Progress.js +41 -39
- package/dist/components/Progress/index.js +1 -0
- package/dist/components/Radio/Radio.js +1 -0
- package/dist/components/Radio/RadioContext.js +1 -0
- package/dist/components/Radio/RadioGroup.js +1 -0
- package/dist/components/Radio/RadioGroupCore.js +1 -0
- package/dist/components/Radio/index.js +1 -0
- package/dist/components/Rating/Rating.js +1 -0
- package/dist/components/Rating/RatingCore.js +29 -26
- package/dist/components/Rating/index.js +1 -0
- package/dist/components/Resizable/Resizable.js +1 -0
- package/dist/components/Resizable/index.js +1 -0
- package/dist/components/ScrollArea/ScrollArea.js +1 -0
- package/dist/components/ScrollArea/index.js +1 -0
- package/dist/components/Segmented/Segmented.js +1 -0
- package/dist/components/Segmented/SegmentedCore.js +1 -0
- package/dist/components/Segmented/index.js +1 -0
- package/dist/components/Select/Option.js +1 -0
- package/dist/components/Select/Select.js +1 -0
- package/dist/components/Select/SelectCore.js +1 -0
- package/dist/components/Select/index.js +1 -0
- package/dist/components/Sidebar/Sidebar.js +113 -0
- package/dist/components/Sidebar/index.js +3 -0
- package/dist/components/Skeleton/Skeleton.js +1 -0
- package/dist/components/Skeleton/index.js +1 -0
- package/dist/components/Slider/Slider.js +1 -0
- package/dist/components/Slider/SliderCore.js +1 -0
- package/dist/components/Slider/index.js +1 -0
- package/dist/components/Spinner/Spinner.js +15 -12
- package/dist/components/Spinner/index.js +1 -0
- package/dist/components/Stat/Stat.js +1 -0
- package/dist/components/Stat/index.js +1 -0
- package/dist/components/StepTimeline/StepTimeline.js +1 -0
- package/dist/components/StepTimeline/index.js +1 -0
- package/dist/components/Stepper/Step.js +1 -0
- package/dist/components/Stepper/Stepper.js +1 -0
- package/dist/components/Stepper/StepperContext.js +1 -0
- package/dist/components/Stepper/index.js +1 -0
- package/dist/components/StreamingText/StreamingText.js +39 -18
- package/dist/components/StreamingText/index.js +1 -0
- package/dist/components/SwipeAction/SwipeAction.js +1 -0
- package/dist/components/SwipeAction/index.js +1 -0
- package/dist/components/Switch/Switch.js +1 -0
- package/dist/components/Switch/SwitchCore.js +1 -0
- package/dist/components/Switch/index.js +1 -0
- package/dist/components/Table/Table.js +1 -0
- package/dist/components/Table/TableBody.js +1 -0
- package/dist/components/Table/TableCell.js +1 -0
- package/dist/components/Table/TableHead.js +1 -0
- package/dist/components/Table/TableRow.js +1 -0
- package/dist/components/Table/index.js +1 -0
- package/dist/components/Tabs/Tab.js +1 -0
- package/dist/components/Tabs/TabList.js +1 -0
- package/dist/components/Tabs/TabPanel.js +1 -0
- package/dist/components/Tabs/Tabs.js +1 -0
- package/dist/components/Tabs/TabsContext.js +1 -0
- package/dist/components/Tabs/index.js +1 -0
- package/dist/components/Tag/Tag.js +17 -14
- package/dist/components/Tag/index.js +1 -0
- package/dist/components/TagGroup/TagGroup.js +1 -0
- package/dist/components/TagGroup/TagGroupItem.js +13 -10
- package/dist/components/TagGroup/index.js +1 -0
- package/dist/components/TagInput/TagInput.js +1 -0
- package/dist/components/TagInput/TagInputCore.js +53 -50
- package/dist/components/TagInput/index.js +1 -0
- package/dist/components/Textarea/Textarea.js +1 -0
- package/dist/components/Textarea/TextareaCore.js +1 -0
- package/dist/components/Textarea/index.js +1 -0
- package/dist/components/ThinkingIndicator/ThinkingIndicator.js +14 -11
- package/dist/components/ThinkingIndicator/index.js +1 -0
- package/dist/components/TimePicker/TimePicker.js +1 -0
- package/dist/components/TimePicker/TimePickerCore.js +1 -0
- package/dist/components/TimePicker/index.js +1 -0
- package/dist/components/Timeline/Timeline.js +1 -0
- package/dist/components/Timeline/index.js +1 -0
- package/dist/components/Toast/Toast.js +36 -30
- package/dist/components/Toast/ToastContainer.js +45 -28
- package/dist/components/Toast/ToastContext.js +1 -0
- package/dist/components/Toast/index.js +5 -3
- package/dist/components/Toast/toast2.js +45 -0
- package/dist/components/Toast/useToast.js +1 -0
- package/dist/components/TokenCounter/TokenCounter.js +20 -18
- package/dist/components/TokenCounter/index.js +1 -0
- package/dist/components/ToolCallCard/ToolCallCard.js +40 -37
- package/dist/components/ToolCallCard/index.js +1 -0
- package/dist/components/Toolbar/Toolbar.js +60 -0
- package/dist/components/Toolbar/ToolbarButton.js +26 -0
- package/dist/components/Toolbar/ToolbarContext.js +9 -0
- package/dist/components/Toolbar/ToolbarSeparator.js +23 -0
- package/dist/components/Toolbar/index.js +5 -0
- package/dist/components/Tooltip/Tooltip.js +1 -0
- package/dist/components/Tooltip/index.js +1 -0
- package/dist/components/Tour/Tour.js +198 -0
- package/dist/components/Tour/index.js +3 -0
- package/dist/components/Transfer/Transfer.js +1 -0
- package/dist/components/Transfer/TransferCore.js +62 -67
- package/dist/components/Transfer/index.js +1 -0
- package/dist/components/Tree/Tree.js +1 -0
- package/dist/components/Tree/TreeItem.js +57 -55
- package/dist/components/Tree/index.js +1 -0
- package/dist/components/Tree/utils.js +1 -0
- package/dist/components/Typography/Typography.js +1 -0
- package/dist/components/Typography/index.js +1 -0
- package/dist/components/Upload/Upload.js +1 -0
- package/dist/components/Upload/UploadCore.js +37 -35
- package/dist/components/Upload/index.js +1 -0
- package/dist/components/VirtualList/VirtualList.js +141 -26
- package/dist/components/VirtualList/index.js +1 -0
- package/dist/css/accordion.css +1 -1
- package/dist/css/affix.css +1 -1
- package/dist/css/alert.css +1 -1
- package/dist/css/approval-card.css +1 -1
- package/dist/css/async-section.css +1 -1
- package/dist/css/avatar-group.css +2 -0
- package/dist/css/back-to-top.css +1 -1
- package/dist/css/breadcrumb.css +1 -1
- package/dist/css/button.css +1 -1
- package/dist/css/calendar.css +2 -0
- package/dist/css/carousel.css +1 -1
- package/dist/css/cascader.css +2 -0
- package/dist/css/chat-input.css +1 -1
- package/dist/css/chat-message.css +1 -1
- package/dist/css/checkbox.css +1 -1
- package/dist/css/chip.css +1 -1
- package/dist/css/code-block.css +1 -1
- package/dist/css/color-picker.css +1 -1
- package/dist/css/combobox.css +1 -1
- package/dist/css/command.css +1 -1
- package/dist/css/container.css +1 -1
- package/dist/css/context-menu.css +1 -1
- package/dist/css/conversation-list.css +1 -1
- package/dist/css/data-table.css +2 -0
- package/dist/css/date-range-picker.css +1 -1
- package/dist/css/datepicker.css +1 -2
- package/dist/css/diff-viewer.css +1 -1
- package/dist/css/disclosure.css +1 -1
- package/dist/css/dropdown-menu.css +1 -1
- package/dist/css/file-input.css +1 -1
- package/dist/css/hover-card.css +2 -0
- package/dist/css/inline-edit.css +1 -1
- package/dist/css/input.css +1 -1
- package/dist/css/kbd.css +2 -0
- package/dist/css/list.css +1 -1
- package/dist/css/log-viewer.css +1 -1
- package/dist/css/markdown-renderer.css +1 -1
- package/dist/css/mentions.css +2 -0
- package/dist/css/menu.css +1 -1
- package/dist/css/model-picker.css +1 -1
- package/dist/css/navigation-bar.css +2 -2
- package/dist/css/number-input.css +1 -1
- package/dist/css/otp-input.css +1 -1
- package/dist/css/pagination.css +1 -1
- package/dist/css/password-input.css +1 -1
- package/dist/css/progress.css +1 -1
- package/dist/css/radio.css +1 -1
- package/dist/css/rating.css +1 -1
- package/dist/css/resizable.css +1 -1
- package/dist/css/segmented.css +1 -1
- package/dist/css/select.css +1 -1
- package/dist/css/sidebar.css +2 -0
- package/dist/css/slider.css +1 -1
- package/dist/css/step-timeline.css +1 -1
- package/dist/css/stepper.css +1 -1
- package/dist/css/streaming-text.css +1 -1
- package/dist/css/swipe-action.css +1 -1
- package/dist/css/switch.css +1 -1
- package/dist/css/table.css +1 -1
- package/dist/css/tabs.css +1 -1
- package/dist/css/tag-input.css +1 -1
- package/dist/css/tag.css +1 -1
- package/dist/css/textarea.css +1 -1
- package/dist/css/time-picker.css +1 -1
- package/dist/css/token-counter.css +1 -1
- package/dist/css/tokens.css +1 -1
- package/dist/css/toolbar.css +4 -0
- package/dist/css/tour.css +2 -0
- package/dist/css/tree.css +1 -1
- package/dist/css/upload.css +1 -1
- package/dist/css/virtual-list.css +1 -1
- package/dist/css-manifest.json +29 -1
- package/dist/form/FormItem.js +1 -0
- package/dist/form/index.js +1 -0
- package/dist/haze-ui.css +74 -63
- package/dist/hooks/useClipboard.js +30 -0
- package/dist/hooks/useDebouncedCallback.js +17 -0
- package/dist/hooks/useDebouncedValue.js +12 -0
- package/dist/hooks/useMediaQuery.js +13 -0
- package/dist/hooks/usePrefersReducedMotion.js +9 -0
- package/dist/hooks/useTitle.js +1 -0
- package/dist/index.js +139 -115
- package/dist/registry.json +247 -0
- package/dist/tokens/colors.js +1 -0
- package/dist/tokens/index.js +1 -0
- package/dist/tokens/motion.js +1 -0
- package/dist/tokens/oklch.js +1 -0
- package/dist/tokens/palette.js +1 -0
- package/dist/tokens/registry.js +1 -0
- package/dist/tokens/spacing.js +1 -0
- package/dist/tokens/typography.js +1 -0
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +9 -0
- package/dist/types/components/AvatarGroup/index.d.ts +2 -0
- package/dist/types/components/Calendar/Calendar.d.ts +21 -0
- package/dist/types/components/Calendar/date.d.ts +79 -0
- package/dist/types/components/Calendar/index.d.ts +2 -0
- package/dist/types/components/Cascader/Cascader.d.ts +26 -0
- package/dist/types/components/Cascader/index.d.ts +2 -0
- package/dist/types/components/Combobox/Combobox.d.ts +7 -1
- package/dist/types/components/Combobox/ComboboxOption.d.ts +13 -1
- package/dist/types/components/DataTable/DataTable.d.ts +102 -0
- package/dist/types/components/DataTable/index.d.ts +2 -0
- package/dist/types/components/Datepicker/Datepicker.d.ts +3 -1
- package/dist/types/components/Datepicker/DatepickerCore.d.ts +3 -1
- package/dist/types/components/HoverCard/HoverCard.d.ts +49 -0
- package/dist/types/components/HoverCard/index.d.ts +2 -0
- package/dist/types/components/Kbd/Kbd.d.ts +6 -0
- package/dist/types/components/Kbd/index.d.ts +2 -0
- package/dist/types/components/LocaleProvider/LocaleContext.d.ts +19 -0
- package/dist/types/components/LocaleProvider/LocaleProvider.d.ts +16 -0
- package/dist/types/components/LocaleProvider/index.d.ts +7 -0
- package/dist/types/components/LocaleProvider/locale.d.ts +182 -0
- package/dist/types/components/LocaleProvider/useStrings.d.ts +10 -0
- package/dist/types/components/LocaleProvider/zh-cn.d.ts +13 -0
- package/dist/types/components/MarkdownRenderer/markdown-blocks.d.ts +6 -0
- package/dist/types/components/Mentions/Mentions.d.ts +17 -0
- package/dist/types/components/Mentions/MentionsCore.d.ts +21 -0
- package/dist/types/components/Mentions/index.d.ts +4 -0
- package/dist/types/components/Sidebar/Sidebar.d.ts +64 -0
- package/dist/types/components/Sidebar/index.d.ts +4 -0
- package/dist/types/components/Toast/index.d.ts +2 -0
- package/dist/types/components/Toast/toast.d.ts +46 -0
- package/dist/types/components/Toolbar/Toolbar.d.ts +16 -0
- package/dist/types/components/Toolbar/ToolbarButton.d.ts +20 -0
- package/dist/types/components/Toolbar/ToolbarContext.d.ts +5 -0
- package/dist/types/components/Toolbar/ToolbarSeparator.d.ts +14 -0
- package/dist/types/components/Toolbar/index.d.ts +6 -0
- package/dist/types/components/Tour/Tour.d.ts +46 -0
- package/dist/types/components/Tour/index.d.ts +2 -0
- package/dist/types/components/VirtualList/VirtualList.d.ts +58 -4
- package/dist/types/components/VirtualList/index.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +6 -0
- package/dist/types/hooks/useClipboard.d.ts +31 -0
- package/dist/types/hooks/useDebouncedCallback.d.ts +21 -0
- package/dist/types/hooks/useDebouncedValue.d.ts +20 -0
- package/dist/types/hooks/useMediaQuery.d.ts +17 -0
- package/dist/types/hooks/usePrefersReducedMotion.d.ts +14 -0
- package/dist/types/index.d.ts +28 -4
- package/dist/utils/classnames.js +1 -0
- package/dist/utils/collision.js +1 -0
- package/dist/utils/floating.js +1 -0
- package/dist/utils/focus-scope.js +1 -0
- package/dist/utils/focus.js +1 -0
- package/dist/utils/menuKeyboard.js +1 -0
- package/dist/utils/presence.js +1 -0
- package/package.json +34 -18
- package/dist/components/Datepicker/Calendar.js +0 -120
- package/dist/types/components/Datepicker/Calendar.d.ts +0 -8
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
|
|
2
|
+
"use client";
|
|
2
3
|
import { classnames as e } from "../../utils/classnames.js";
|
|
4
|
+
import { useStrings as t } from "../LocaleProvider/useStrings.js";
|
|
3
5
|
/* empty css */
|
|
4
|
-
import { jsx as
|
|
6
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
7
|
//#region src/lib/components/Tag/Tag.tsx
|
|
6
|
-
var
|
|
8
|
+
var i = "haze-Tag__base", a = {
|
|
7
9
|
default: "haze-Tag__default",
|
|
8
10
|
primary: "haze-Tag__primary",
|
|
9
11
|
success: "haze-Tag__success",
|
|
10
12
|
warning: "haze-Tag__warning",
|
|
11
13
|
danger: "haze-Tag__danger"
|
|
12
|
-
},
|
|
14
|
+
}, o = {
|
|
13
15
|
sm: "haze-Tag__sm",
|
|
14
16
|
md: "haze-Tag__md"
|
|
15
|
-
},
|
|
16
|
-
function
|
|
17
|
-
|
|
17
|
+
}, s = "haze-Tag__closeBtn";
|
|
18
|
+
function c({ variant: c = "default", size: l = "md", closable: u = !1, onClose: d, className: f, children: p }) {
|
|
19
|
+
let m = t("tag");
|
|
20
|
+
return /* @__PURE__ */ r("span", {
|
|
18
21
|
className: e([
|
|
19
|
-
|
|
20
|
-
i[s],
|
|
22
|
+
i,
|
|
21
23
|
a[c],
|
|
22
|
-
|
|
24
|
+
o[l],
|
|
25
|
+
f
|
|
23
26
|
]),
|
|
24
|
-
children: [
|
|
27
|
+
children: [p, u && /* @__PURE__ */ n("button", {
|
|
25
28
|
type: "button",
|
|
26
|
-
className:
|
|
27
|
-
"aria-label":
|
|
28
|
-
onClick:
|
|
29
|
+
className: s,
|
|
30
|
+
"aria-label": m.remove,
|
|
31
|
+
onClick: d,
|
|
29
32
|
children: "×"
|
|
30
33
|
})]
|
|
31
34
|
});
|
|
32
35
|
}
|
|
33
36
|
//#endregion
|
|
34
|
-
export {
|
|
37
|
+
export { c as default };
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
|
|
2
|
+
"use client";
|
|
2
3
|
import { classnames as e } from "../../utils/classnames.js";
|
|
4
|
+
import { useStrings as t } from "../LocaleProvider/useStrings.js";
|
|
3
5
|
/* empty css */
|
|
4
|
-
import { jsx as
|
|
6
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
7
|
//#region src/lib/components/TagGroup/TagGroupItem.tsx
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var i = "haze-TagGroupItem__tag", a = "haze-TagGroupItem__closeBtn";
|
|
9
|
+
function o({ children: o, onClose: s, className: c }) {
|
|
10
|
+
let l = t("tagGroup");
|
|
11
|
+
return /* @__PURE__ */ r("span", {
|
|
12
|
+
className: e([i, c]),
|
|
13
|
+
children: [o, s && /* @__PURE__ */ n("button", {
|
|
11
14
|
type: "button",
|
|
12
|
-
onClick:
|
|
13
|
-
"aria-label":
|
|
14
|
-
className: e([
|
|
15
|
+
onClick: s,
|
|
16
|
+
"aria-label": l.remove,
|
|
17
|
+
className: e([a]),
|
|
15
18
|
children: "x"
|
|
16
19
|
})]
|
|
17
20
|
});
|
|
18
21
|
}
|
|
19
22
|
//#endregion
|
|
20
|
-
export {
|
|
23
|
+
export { o as default };
|
|
@@ -1,68 +1,71 @@
|
|
|
1
1
|
|
|
2
|
+
"use client";
|
|
2
3
|
import { classnames as e } from "../../utils/classnames.js";
|
|
4
|
+
import { formatString as t } from "../LocaleProvider/locale.js";
|
|
5
|
+
import { useStrings as n } from "../LocaleProvider/useStrings.js";
|
|
3
6
|
/* empty css */
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { useCallback as
|
|
7
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
8
|
+
import { useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
6
9
|
//#region src/lib/components/TagInput/TagInputCore.tsx
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
let [
|
|
10
|
-
|
|
11
|
-
let e =
|
|
10
|
+
var l = "haze-TagInputCore__container", u = "haze-TagInputCore__listWrap", d = "haze-TagInputCore__tag", f = "haze-TagInputCore__removeBtn", p = "haze-TagInputCore__inputEl";
|
|
11
|
+
function m({ value: m, onChange: h, placeholder: g, maxTags: _, disabled: v, className: y, id: b, "aria-invalid": x, "aria-describedby": S }) {
|
|
12
|
+
let [C, w] = c(""), T = s(null), E = s(null), D = s(null);
|
|
13
|
+
o(() => {
|
|
14
|
+
let e = D.current;
|
|
12
15
|
if (e === null) return;
|
|
13
|
-
if (
|
|
14
|
-
|
|
16
|
+
if (D.current = null, m.length === 0) {
|
|
17
|
+
E.current?.focus();
|
|
15
18
|
return;
|
|
16
19
|
}
|
|
17
|
-
let t = Math.min(e,
|
|
18
|
-
(
|
|
19
|
-
}, [
|
|
20
|
-
let
|
|
20
|
+
let t = Math.min(e, m.length - 1);
|
|
21
|
+
(T.current?.querySelectorAll("li > button"))?.[t]?.focus();
|
|
22
|
+
}, [m]);
|
|
23
|
+
let O = a((e) => {
|
|
21
24
|
let t = e.trim();
|
|
22
|
-
t && !
|
|
25
|
+
t && !m.includes(t) && (_ && m.length >= _ || (h([...m, t]), w("")));
|
|
23
26
|
}, [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
]),
|
|
28
|
-
let t =
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
e.key === "Enter" || e.key === "," ? (e.preventDefault(),
|
|
32
|
-
},
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
ref:
|
|
35
|
-
className: e([
|
|
36
|
-
children: [/* @__PURE__ */
|
|
37
|
-
className: e([
|
|
38
|
-
children:
|
|
39
|
-
className: e([
|
|
40
|
-
children: [
|
|
27
|
+
m,
|
|
28
|
+
_,
|
|
29
|
+
h
|
|
30
|
+
]), k = a((e) => {
|
|
31
|
+
let t = m.filter((t, n) => n !== e);
|
|
32
|
+
h(t), D.current = t.length === 0 ? 0 : Math.min(e, t.length - 1);
|
|
33
|
+
}, [m, h]), A = (e) => {
|
|
34
|
+
e.key === "Enter" || e.key === "," ? (e.preventDefault(), O(C)) : e.key === "Backspace" && !C && m.length > 0 && k(m.length - 1);
|
|
35
|
+
}, j = n("tagInput"), M = g || j.placeholder, N = t(m.length === 1 ? j.tagCountSingular : j.tagCount, { count: m.length });
|
|
36
|
+
return /* @__PURE__ */ i("div", {
|
|
37
|
+
ref: T,
|
|
38
|
+
className: e([l, y]),
|
|
39
|
+
children: [/* @__PURE__ */ r("ul", {
|
|
40
|
+
className: e([u]),
|
|
41
|
+
children: m.map((n, a) => /* @__PURE__ */ i("li", {
|
|
42
|
+
className: e([d]),
|
|
43
|
+
children: [n, /* @__PURE__ */ r("button", {
|
|
41
44
|
type: "button",
|
|
42
|
-
onClick: () =>
|
|
45
|
+
onClick: () => k(a),
|
|
43
46
|
onKeyDown: (e) => {
|
|
44
|
-
e.key === "Backspace" && (e.preventDefault(),
|
|
47
|
+
e.key === "Backspace" && (e.preventDefault(), k(a));
|
|
45
48
|
},
|
|
46
|
-
"aria-label":
|
|
47
|
-
disabled:
|
|
48
|
-
className: e([
|
|
49
|
+
"aria-label": t(j.removeTag, { tag: n }),
|
|
50
|
+
disabled: v,
|
|
51
|
+
className: e([f]),
|
|
49
52
|
children: "x"
|
|
50
53
|
})]
|
|
51
|
-
},
|
|
52
|
-
}), /* @__PURE__ */
|
|
53
|
-
ref:
|
|
54
|
-
id:
|
|
55
|
-
"aria-invalid":
|
|
56
|
-
"aria-describedby":
|
|
57
|
-
value:
|
|
58
|
-
onChange: (e) =>
|
|
59
|
-
onKeyDown:
|
|
60
|
-
placeholder:
|
|
61
|
-
"aria-label":
|
|
62
|
-
disabled:
|
|
63
|
-
className: e([
|
|
54
|
+
}, a))
|
|
55
|
+
}), /* @__PURE__ */ r("input", {
|
|
56
|
+
ref: E,
|
|
57
|
+
id: b,
|
|
58
|
+
"aria-invalid": x,
|
|
59
|
+
"aria-describedby": S,
|
|
60
|
+
value: C,
|
|
61
|
+
onChange: (e) => w(e.target.value),
|
|
62
|
+
onKeyDown: A,
|
|
63
|
+
placeholder: m.length === 0 ? g : void 0,
|
|
64
|
+
"aria-label": m.length > 0 ? `${M}, ${N}` : M,
|
|
65
|
+
disabled: v,
|
|
66
|
+
className: e([p])
|
|
64
67
|
})]
|
|
65
68
|
});
|
|
66
69
|
}
|
|
67
70
|
//#endregion
|
|
68
|
-
export {
|
|
71
|
+
export { m as default };
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
|
|
2
|
+
"use client";
|
|
2
3
|
import { classnames as e } from "../../utils/classnames.js";
|
|
4
|
+
import { useStrings as t } from "../LocaleProvider/useStrings.js";
|
|
3
5
|
/* empty css */
|
|
4
|
-
import { jsx as
|
|
6
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
7
|
//#region src/lib/components/ThinkingIndicator/ThinkingIndicator.tsx
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
var i = "haze-ThinkingIndicator__wrapper", a = "haze-ThinkingIndicator__dots", o = "haze-ThinkingIndicator__dot", s = "haze-ThinkingIndicator__dot2", c = "haze-ThinkingIndicator__dot3";
|
|
9
|
+
function l({ text: l, className: u }) {
|
|
10
|
+
let d = t("thinkingIndicator"), f = l ?? d.text;
|
|
11
|
+
return /* @__PURE__ */ r("div", {
|
|
12
|
+
className: e([i, u]),
|
|
13
|
+
children: [/* @__PURE__ */ n("span", { children: f }), /* @__PURE__ */ r("span", {
|
|
14
|
+
className: e([a]),
|
|
12
15
|
children: [
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ n("span", { className: e([o]) }),
|
|
17
|
+
/* @__PURE__ */ n("span", { className: e([o, s]) }),
|
|
18
|
+
/* @__PURE__ */ n("span", { className: e([o, c]) })
|
|
16
19
|
]
|
|
17
20
|
})]
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
23
|
//#endregion
|
|
21
|
-
export {
|
|
24
|
+
export { l as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
"use client";
|
|
2
3
|
import { classnames as e } from "../../utils/classnames.js";
|
|
3
4
|
/* empty css */
|
|
4
5
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
@@ -9,58 +10,63 @@ var o = "haze-Toast__base", s = {
|
|
|
9
10
|
success: "haze-Toast__success",
|
|
10
11
|
warning: "haze-Toast__warning",
|
|
11
12
|
danger: "haze-Toast__danger"
|
|
12
|
-
}, c =
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
}, c = {
|
|
14
|
+
info: "status",
|
|
15
|
+
success: "status",
|
|
16
|
+
warning: "status",
|
|
17
|
+
danger: "alert"
|
|
18
|
+
}, l = "haze-Toast__contentStyle", u = "haze-Toast__closeBtn";
|
|
19
|
+
function d({ variant: d = "info", onClose: f, duration: p, children: m, className: h, ...g }) {
|
|
20
|
+
let _ = a(p), v = a(0), y = a(null), b = a(!1), x = a(!1), S = a(f);
|
|
15
21
|
i(() => {
|
|
16
|
-
|
|
17
|
-
}, [
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
}, []), C = r(() => {
|
|
21
|
-
v.current !== null || g.current <= 0 || (_.current = Date.now(), v.current = setTimeout(() => {
|
|
22
|
-
v.current = null, x.current();
|
|
23
|
-
}, g.current));
|
|
22
|
+
S.current = f;
|
|
23
|
+
}, [f]);
|
|
24
|
+
let C = r(() => {
|
|
25
|
+
y.current !== null && (clearTimeout(y.current), y.current = null, _.current = Math.max(0, _.current - (Date.now() - v.current)));
|
|
24
26
|
}, []), w = r(() => {
|
|
25
|
-
y.current ||
|
|
26
|
-
|
|
27
|
+
y.current !== null || _.current <= 0 || (v.current = Date.now(), y.current = setTimeout(() => {
|
|
28
|
+
y.current = null, S.current();
|
|
29
|
+
}, _.current));
|
|
30
|
+
}, []), T = r(() => {
|
|
31
|
+
b.current || x.current ? C() : w();
|
|
32
|
+
}, [C, w]);
|
|
27
33
|
return i(() => {
|
|
28
|
-
if (!(
|
|
34
|
+
if (!(p <= 0)) return _.current = p, !b.current && !x.current && w(), C;
|
|
29
35
|
}, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
p,
|
|
37
|
+
w,
|
|
38
|
+
C
|
|
33
39
|
]), /* @__PURE__ */ n("div", {
|
|
34
|
-
role:
|
|
40
|
+
role: c[d],
|
|
35
41
|
onPointerEnter: () => {
|
|
36
|
-
|
|
42
|
+
b.current = !0, T();
|
|
37
43
|
},
|
|
38
44
|
onPointerLeave: () => {
|
|
39
|
-
|
|
45
|
+
b.current = !1, T();
|
|
40
46
|
},
|
|
41
47
|
onFocus: () => {
|
|
42
|
-
|
|
48
|
+
x.current = !0, T();
|
|
43
49
|
},
|
|
44
50
|
onBlur: () => {
|
|
45
|
-
|
|
51
|
+
x.current = !1, T();
|
|
46
52
|
},
|
|
47
|
-
...
|
|
53
|
+
...g,
|
|
48
54
|
className: e([
|
|
49
55
|
o,
|
|
50
|
-
s[
|
|
51
|
-
|
|
56
|
+
s[d],
|
|
57
|
+
h
|
|
52
58
|
]),
|
|
53
59
|
children: [/* @__PURE__ */ t("div", {
|
|
54
|
-
className:
|
|
55
|
-
children:
|
|
60
|
+
className: l,
|
|
61
|
+
children: m
|
|
56
62
|
}), /* @__PURE__ */ t("button", {
|
|
57
63
|
type: "button",
|
|
58
|
-
className:
|
|
64
|
+
className: u,
|
|
59
65
|
"aria-label": "Close",
|
|
60
|
-
onClick:
|
|
66
|
+
onClick: f,
|
|
61
67
|
children: "×"
|
|
62
68
|
})]
|
|
63
69
|
});
|
|
64
70
|
}
|
|
65
71
|
//#endregion
|
|
66
|
-
export {
|
|
72
|
+
export { d as default };
|
|
@@ -1,47 +1,64 @@
|
|
|
1
1
|
|
|
2
|
+
"use client";
|
|
2
3
|
import { classnames as e } from "../../utils/classnames.js";
|
|
3
4
|
import { Presence as t } from "../../utils/presence.js";
|
|
4
5
|
import n from "./Toast.js";
|
|
5
6
|
import { ToastProvider as r } from "./ToastContext.js";
|
|
7
|
+
import { nextToastId as i, subscribeToastChannel as a } from "./toast2.js";
|
|
6
8
|
/* empty css */
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { useCallback as
|
|
9
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
10
|
+
import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
|
|
9
11
|
//#region src/lib/components/Toast/ToastContainer.tsx
|
|
10
|
-
var
|
|
12
|
+
var f = "haze-ToastContainer__containerBase", p = {
|
|
11
13
|
"top-left": "haze-ToastContainer__top-left",
|
|
12
14
|
"top-right": "haze-ToastContainer__top-right",
|
|
13
15
|
"bottom-left": "haze-ToastContainer__bottom-left",
|
|
14
16
|
"bottom-right": "haze-ToastContainer__bottom-right"
|
|
15
17
|
};
|
|
16
|
-
function
|
|
17
|
-
let [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
function m({ children: m, maxCount: h, placement: g = "bottom-right" }) {
|
|
19
|
+
let [_, v] = d([]), [y, b] = d([]), x = u([]);
|
|
20
|
+
l(() => {
|
|
21
|
+
x.current = _;
|
|
22
|
+
}, [_]);
|
|
23
|
+
let S = c((e) => {
|
|
24
|
+
v((t) => {
|
|
25
|
+
let n = [...t, e];
|
|
26
|
+
return h === void 0 || n.length <= h ? n : n.slice(n.length - h);
|
|
24
27
|
});
|
|
25
|
-
}, [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
}, [h]), C = c((e) => {
|
|
29
|
+
S({
|
|
30
|
+
...e,
|
|
31
|
+
id: i()
|
|
32
|
+
});
|
|
33
|
+
}, [S]), w = c((e) => {
|
|
34
|
+
b((t) => t.includes(e) ? t : [...t, e]);
|
|
35
|
+
}, []), T = c((e) => {
|
|
36
|
+
v((t) => t.filter((t) => t.id !== e)), b((t) => t.filter((t) => t !== e));
|
|
37
|
+
}, []), E = c((e) => {
|
|
38
|
+
if (e === void 0) {
|
|
39
|
+
x.current.forEach((e) => w(e.id));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
w(e);
|
|
43
|
+
}, [w]);
|
|
44
|
+
return l(() => a({
|
|
45
|
+
onToast: S,
|
|
46
|
+
onDismiss: E
|
|
47
|
+
}), [S, E]), /* @__PURE__ */ s(r, {
|
|
31
48
|
value: {
|
|
32
|
-
toasts:
|
|
33
|
-
addToast:
|
|
34
|
-
removeToast:
|
|
49
|
+
toasts: _,
|
|
50
|
+
addToast: C,
|
|
51
|
+
removeToast: w
|
|
35
52
|
},
|
|
36
|
-
children: [
|
|
37
|
-
className: e([
|
|
38
|
-
children:
|
|
39
|
-
present: !
|
|
40
|
-
onExited: () =>
|
|
41
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: [m, /* @__PURE__ */ o("div", {
|
|
54
|
+
className: e([f, p[g]]),
|
|
55
|
+
children: _.map((e) => /* @__PURE__ */ o(t, {
|
|
56
|
+
present: !y.includes(e.id),
|
|
57
|
+
onExited: () => T(e.id),
|
|
58
|
+
children: /* @__PURE__ */ o(n, {
|
|
42
59
|
variant: e.variant,
|
|
43
60
|
duration: e.duration,
|
|
44
|
-
onClose: () =>
|
|
61
|
+
onClose: () => w(e.id),
|
|
45
62
|
children: e.content
|
|
46
63
|
})
|
|
47
64
|
}, e.id))
|
|
@@ -49,4 +66,4 @@ function d({ children: d, maxCount: f, placement: p = "bottom-right" }) {
|
|
|
49
66
|
});
|
|
50
67
|
}
|
|
51
68
|
//#endregion
|
|
52
|
-
export {
|
|
69
|
+
export { m as default, p as toastPlacements };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import e from "./Toast.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
|
|
3
|
+
import { toast as t } from "./toast2.js";
|
|
4
|
+
import n from "./ToastContainer.js";
|
|
5
|
+
import r from "./useToast.js";
|
|
6
|
+
export { e as Toast, n as ToastContainer, t as toast, r as useToast };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/lib/components/Toast/toast.ts
|
|
3
|
+
var e = [], t = /* @__PURE__ */ new Set(), n = 0;
|
|
4
|
+
function r() {
|
|
5
|
+
return n += 1, n;
|
|
6
|
+
}
|
|
7
|
+
function i(n, i) {
|
|
8
|
+
let a = {
|
|
9
|
+
id: r(),
|
|
10
|
+
content: n,
|
|
11
|
+
variant: i?.variant ?? "info",
|
|
12
|
+
duration: i?.duration ?? 3e3
|
|
13
|
+
}, [o] = t;
|
|
14
|
+
return o ? o.onToast(a) : (e.length >= 100 && e.shift(), e.push(a)), a.id;
|
|
15
|
+
}
|
|
16
|
+
function a(n) {
|
|
17
|
+
if (n === void 0) {
|
|
18
|
+
e.length = 0;
|
|
19
|
+
let [n] = t;
|
|
20
|
+
n?.onDismiss(void 0);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
let r = e.findIndex((e) => e.id === n);
|
|
24
|
+
if (r !== -1) {
|
|
25
|
+
e.splice(r, 1);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
let [i] = t;
|
|
29
|
+
i?.onDismiss(n);
|
|
30
|
+
}
|
|
31
|
+
function o(e) {
|
|
32
|
+
return (t, n) => i(t, {
|
|
33
|
+
...n,
|
|
34
|
+
variant: e
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
i.info = o("info"), i.success = o("success"), i.warning = o("warning"), i.danger = o("danger"), i.dismiss = a;
|
|
38
|
+
function s(n) {
|
|
39
|
+
if (t.add(n), t.size === 1 && e.length > 0) for (let t of e.splice(0)) n.onToast(t);
|
|
40
|
+
return () => {
|
|
41
|
+
t.delete(n);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { r as nextToastId, s as subscribeToastChannel, i as toast };
|