haze-ui 1.33.0 → 1.34.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/LICENSE +21 -0
- package/README.md +35 -11
- package/dist/THIRD-PARTY-NOTICES.md +152 -0
- package/dist/components/Accordion/Accordion.js +40 -8
- package/dist/components/Accordion/AccordionContext.js +9 -0
- package/dist/components/Accordion/AccordionItem.js +30 -15
- package/dist/components/Accordion/index.js +3 -3
- package/dist/components/ActivityRail/ActivityRail.js +46 -37
- package/dist/components/Affix/Affix.js +0 -1
- package/dist/components/Affix/index.js +0 -1
- package/dist/components/Alert/Alert.js +17 -23
- package/dist/components/Alert/alert-styles.js +14 -0
- package/dist/components/Alert/index.js +3 -2
- package/dist/components/ApprovalCard/ApprovalCard.js +70 -43
- package/dist/components/Avatar/Avatar.js +5 -4
- package/dist/components/AvatarGroup/AvatarGroup.js +15 -18
- package/dist/components/AvatarGroup/index.js +0 -1
- package/dist/components/Badge/Badge.js +5 -4
- package/dist/components/Badge/badge-styles.js +2 -1
- package/dist/components/Badge/index.js +2 -2
- package/dist/components/Banner/Banner.js +17 -23
- package/dist/components/Banner/banner-styles.js +14 -0
- package/dist/components/Banner/index.js +3 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +16 -17
- package/dist/components/Breadcrumb/BreadcrumbItem.js +7 -10
- package/dist/components/Breadcrumb/index.js +0 -1
- package/dist/components/Button/ButtonLink.js +11 -9
- package/dist/components/ButtonGroup/ButtonGroup.js +48 -0
- package/dist/components/ButtonGroup/ButtonGroupContext.js +9 -0
- package/dist/components/ButtonGroup/ButtonGroupSeparator.js +30 -0
- package/dist/components/ButtonGroup/button-group-styles.js +7 -0
- package/dist/components/ButtonGroup/index.js +5 -0
- package/dist/components/Calendar/Calendar.js +355 -305
- package/dist/components/Card/Card.js +9 -7
- package/dist/components/Card/index.js +2 -2
- package/dist/components/Carousel/Carousel.js +108 -91
- package/dist/components/Carousel/CarouselSlide.js +15 -9
- package/dist/components/Cascader/Cascader.js +190 -173
- package/dist/components/Chart/Chart.js +122 -24
- package/dist/components/Chart/chart-elements.js +271 -114
- package/dist/components/ChatInput/ChatInput.js +32 -28
- package/dist/components/ChatMessage/ChatMessage.js +79 -72
- package/dist/components/Checkbox/Checkbox.js +17 -14
- package/dist/components/Checkbox/CheckboxCore.js +28 -17
- package/dist/components/Chip/Chip.js +18 -33
- package/dist/components/Chip/chip-styles.js +23 -0
- package/dist/components/Chip/index.js +3 -3
- package/dist/components/CodeBlock/CodeBlock.js +1 -0
- package/dist/components/CodeBlock/index.js +1 -0
- package/dist/components/Collapsible/Collapsible.js +53 -44
- package/dist/components/ColorPicker/ColorPicker.js +84 -73
- package/dist/components/ColorPicker/ColorPickerCore.js +60 -39
- package/dist/components/ColorPicker/ColorPickerPanel.js +312 -109
- package/dist/components/ColorPicker/color-picker-styles.js +2 -2
- package/dist/components/ColorPicker/gradient.js +114 -0
- package/dist/components/Combobox/Combobox.js +125 -123
- package/dist/components/Combobox/ComboboxGroup.js +23 -16
- package/dist/components/Combobox/ComboboxOption.js +12 -8
- package/dist/components/Combobox/combobox-options.js +26 -0
- package/dist/components/Command/Command.js +182 -97
- package/dist/components/Command/CommandDialog.js +49 -34
- package/dist/components/Command/command-filter.js +80 -10
- package/dist/components/ConfigProvider/ConfigContext.js +7 -38
- package/dist/components/ConfigProvider/ConfigProvider.js +15 -7
- package/dist/components/ConfigProvider/useConfigDefaults.js +5 -2
- package/dist/components/ContextMenu/ContextMenu.js +52 -34
- package/dist/components/ContextMenu/ContextMenuContent.js +40 -26
- package/dist/components/ContextMenu/ContextMenuItem.js +22 -13
- package/dist/components/ContextMenu/ContextMenuSeparator.js +14 -7
- package/dist/components/ContextMenu/ContextMenuTrigger.js +21 -12
- package/dist/components/ConversationList/ConversationItem.js +45 -29
- package/dist/components/ConversationList/ConversationList.js +22 -15
- package/dist/components/CopyButton/CopyButton.js +83 -0
- package/dist/components/CopyButton/Snippet.js +50 -0
- package/dist/components/CopyButton/copy-button-styles.js +11 -0
- package/dist/components/CopyButton/index.js +5 -0
- package/dist/components/CopyButton/snippet-styles.js +7 -0
- package/dist/components/Countdown/Countdown.js +48 -34
- package/dist/components/DataTable/CellEditor.js +34 -24
- package/dist/components/DataTable/DataTable.js +591 -321
- package/dist/components/DataTable/column-filter.js +106 -0
- package/dist/components/DataTable/column-reorder.js +17 -0
- package/dist/components/DataTable/csv.js +15 -14
- package/dist/components/DataTable/features.js +19 -18
- package/dist/components/DataTable/filters.js +26 -0
- package/dist/components/DateField/DateField.js +28 -0
- package/dist/components/DateField/DateFieldCore.js +94 -0
- package/dist/components/DateField/index.js +4 -0
- package/dist/components/DateField/segmented-field.js +121 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +35 -28
- package/dist/components/Datepicker/Datepicker.js +31 -27
- package/dist/components/Descriptions/Descriptions.js +0 -1
- package/dist/components/Descriptions/index.js +0 -1
- package/dist/components/Dialog/Dialog.js +47 -41
- package/dist/components/DiffViewer/DiffViewer.js +65 -48
- package/dist/components/Disclosure/Disclosure.js +31 -22
- package/dist/components/Drawer/Drawer.js +50 -39
- package/dist/components/DropdownMenu/DropdownMenu.js +61 -45
- package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.js +24 -22
- package/dist/components/DropdownMenu/DropdownMenuContent.js +5 -5
- package/dist/components/DropdownMenu/DropdownMenuGroup.js +26 -16
- package/dist/components/DropdownMenu/DropdownMenuItem.js +2 -1
- package/dist/components/DropdownMenu/DropdownMenuRadioGroup.js +33 -21
- package/dist/components/DropdownMenu/DropdownMenuRadioItem.js +22 -20
- package/dist/components/DropdownMenu/DropdownMenuSeparator.js +14 -7
- package/dist/components/DropdownMenu/DropdownMenuSub.js +28 -16
- package/dist/components/DropdownMenu/DropdownMenuSubContent.js +14 -13
- package/dist/components/DropdownMenu/DropdownMenuSubTrigger.js +22 -17
- package/dist/components/DropdownMenu/DropdownMenuTrigger.js +33 -22
- package/dist/components/Empty/Empty.js +41 -28
- package/dist/components/ErrorBoundary/ErrorBoundary.js +88 -0
- package/dist/components/ErrorBoundary/index.js +3 -0
- package/dist/components/FileInput/FileInput.js +23 -16
- package/dist/components/FilePreview/FilePreview.js +104 -91
- package/dist/components/FloatButton/float-button-glyphs.js +9 -7
- package/dist/components/Fullscreen/Fullscreen.js +35 -27
- package/dist/components/Heatmap/Heatmap.js +124 -0
- package/dist/components/Heatmap/heatmap-styles.js +6 -0
- package/dist/components/Heatmap/index.js +2 -0
- package/dist/components/Image/Image.js +56 -32
- package/dist/components/Image/ImageGalleryContext.js +9 -0
- package/dist/components/Image/ImagePreview.js +297 -200
- package/dist/components/Image/ImagePreviewGroup.js +46 -0
- package/dist/components/Image/index.js +2 -1
- package/dist/components/InlineCitation/InlineCitation.js +78 -0
- package/dist/components/InlineCitation/index.js +3 -0
- package/dist/components/InlineEdit/InlineEdit.js +62 -40
- package/dist/components/Input/Input.js +21 -17
- package/dist/components/Input/InputCore.js +9 -12
- package/dist/components/Input/input-styles.js +11 -0
- package/dist/components/InputGroup/InputGroup.js +33 -0
- package/dist/components/InputGroup/InputGroupAddon.js +27 -0
- package/dist/components/InputGroup/InputGroupContext.js +9 -0
- package/dist/components/InputGroup/index.js +5 -0
- package/dist/components/InputGroup/input-group-styles.js +11 -0
- package/dist/components/JsonView/JsonView.js +277 -179
- package/dist/components/Kbd/Kbd.js +3 -2
- package/dist/components/List/List.js +0 -1
- package/dist/components/List/ListItem.js +0 -1
- package/dist/components/List/index.js +0 -1
- package/dist/components/LocaleProvider/LocaleProvider.js +17 -17
- package/dist/components/LocaleProvider/ar-sa.js +22 -2
- package/dist/components/LocaleProvider/de-de.js +22 -2
- package/dist/components/LocaleProvider/es-es.js +22 -2
- package/dist/components/LocaleProvider/fr-fr.js +22 -2
- package/dist/components/LocaleProvider/it-it.js +22 -2
- package/dist/components/LocaleProvider/ja-jp.js +22 -2
- package/dist/components/LocaleProvider/ko-kr.js +22 -2
- package/dist/components/LocaleProvider/locale.js +22 -2
- package/dist/components/LocaleProvider/pt-br.js +22 -2
- package/dist/components/LocaleProvider/ru-ru.js +22 -2
- package/dist/components/LocaleProvider/useStrings.js +20 -9
- package/dist/components/LocaleProvider/zh-cn.js +22 -2
- package/dist/components/LogViewer/LogViewer.js +89 -59
- package/dist/components/Mark/Mark.js +3 -1
- package/dist/components/MaskedInput/MaskedInput.js +25 -0
- package/dist/components/MaskedInput/MaskedInputCore.js +47 -0
- package/dist/components/MaskedInput/index.js +5 -0
- package/dist/components/MaskedInput/mask.js +154 -0
- package/dist/components/Mentions/Mentions.js +18 -13
- package/dist/components/Menu/Menu.js +202 -55
- package/dist/components/Menu/MenuCheckboxItem.js +24 -22
- package/dist/components/Menu/MenuContext.js +9 -0
- package/dist/components/Menu/MenuDivider.js +12 -8
- package/dist/components/Menu/MenuGroup.js +26 -16
- package/dist/components/Menu/MenuItem.js +20 -18
- package/dist/components/Menu/MenuRadioGroup.js +34 -22
- package/dist/components/Menu/MenuRadioItem.js +23 -21
- package/dist/components/Menu/MenuSub.js +29 -17
- package/dist/components/Menu/MenuSubContent.js +15 -14
- package/dist/components/Menu/MenuSubTrigger.js +23 -18
- package/dist/components/Meter/Meter.js +63 -0
- package/dist/components/Meter/index.js +4 -0
- package/dist/components/Meter/meter-styles.js +11 -0
- package/dist/components/ModelPicker/ModelPicker.js +38 -24
- package/dist/components/NavigationBar/NavLink.js +0 -1
- package/dist/components/NavigationBar/NavigationBar.js +0 -1
- package/dist/components/NavigationBar/index.js +0 -1
- package/dist/components/NavigationMenu/NavigationMenu.js +73 -0
- package/dist/components/NavigationMenu/NavigationMenuContent.js +53 -0
- package/dist/components/NavigationMenu/NavigationMenuContext.js +17 -0
- package/dist/components/NavigationMenu/NavigationMenuItem.js +72 -0
- package/dist/components/NavigationMenu/NavigationMenuList.js +59 -0
- package/dist/components/NavigationMenu/NavigationMenuTrigger.js +82 -0
- package/dist/components/NavigationMenu/index.js +7 -0
- package/dist/components/NumberInput/NumberInput.js +22 -18
- package/dist/components/NumberInput/NumberInputCore.js +23 -30
- package/dist/components/NumberInput/index.js +4 -3
- package/dist/components/NumberInput/number-input-styles.js +15 -0
- package/dist/components/OTPInput/OTPInput.js +28 -15
- package/dist/components/Pagination/Pagination.js +81 -83
- package/dist/components/Pagination/pagination-styles.js +11 -0
- package/dist/components/PasswordInput/PasswordInput.js +18 -15
- package/dist/components/PasswordInput/PasswordInputCore.js +39 -28
- package/dist/components/PhoneInput/PhoneInput.js +144 -0
- package/dist/components/PhoneInput/index.js +4 -0
- package/dist/components/PhoneInput/phone-input-styles.js +7 -0
- package/dist/components/PhoneInput/phone-number.js +8 -0
- package/dist/components/Plan/Plan.js +115 -0
- package/dist/components/Plan/index.js +3 -0
- package/dist/components/Popconfirm/Popconfirm.js +152 -0
- package/dist/components/Popconfirm/index.js +3 -0
- package/dist/components/Popover/Popover.js +55 -40
- package/dist/components/Progress/Progress.js +40 -57
- package/dist/components/Progress/index.js +3 -3
- package/dist/components/Progress/progress-styles.js +28 -0
- package/dist/components/PullToRefresh/PullToRefresh.js +121 -0
- package/dist/components/PullToRefresh/index.js +3 -0
- package/dist/components/Queue/Queue.js +68 -0
- package/dist/components/Queue/index.js +3 -0
- package/dist/components/Radio/Radio.js +28 -19
- package/dist/components/Radio/RadioGroup.js +14 -13
- package/dist/components/Radio/RadioGroupCore.js +34 -19
- package/dist/components/Rating/Rating.js +29 -16
- package/dist/components/Result/Result.js +0 -1
- package/dist/components/Result/index.js +0 -1
- package/dist/components/RichTextEditor/RichTextEditor.js +257 -0
- package/dist/components/RichTextEditor/index.js +3 -0
- package/dist/components/Schedule/Schedule.js +566 -0
- package/dist/components/Schedule/index.js +3 -0
- package/dist/components/ScrollArea/ScrollArea.js +28 -9
- package/dist/components/ScrollArea/ScrollAreaContext.js +11 -0
- package/dist/components/ScrollArea/ScrollThumb.js +114 -0
- package/dist/components/ScrollArea/ScrollViewport.js +52 -0
- package/dist/components/ScrollArea/Scrollbar.js +49 -0
- package/dist/components/ScrollArea/index.js +5 -2
- package/dist/components/ScrollArea/scroll-math.js +58 -0
- package/dist/components/Segmented/Segmented.js +29 -16
- package/dist/components/Select/Option.js +12 -8
- package/dist/components/Select/OptionGroup.js +12 -8
- package/dist/components/Select/Select.js +52 -30
- package/dist/components/Select/SelectCore.js +62 -57
- package/dist/components/Select/SelectFloating.js +256 -172
- package/dist/components/Select/index.js +5 -5
- package/dist/components/Select/select-options.js +8 -6
- package/dist/components/Sidebar/Sidebar.js +102 -76
- package/dist/components/Sources/Sources.js +54 -50
- package/dist/components/Sparkline/Sparkline.js +2 -2
- package/dist/components/Sparkline/index.js +1 -1
- package/dist/components/Sparkline/sparkline-styles.js +3 -1
- package/dist/components/Spinner/Spinner.js +4 -3
- package/dist/components/Splitter/Splitter.js +54 -44
- package/dist/components/StatusBar/StatusBar.js +0 -1
- package/dist/components/StatusBar/index.js +0 -1
- package/dist/components/StepTimeline/StepTimeline.js +95 -29
- package/dist/components/Stepper/Stepper.js +34 -20
- package/dist/components/StreamingText/StreamingText.js +33 -31
- package/dist/components/Switch/Switch.js +27 -15
- package/dist/components/Switch/SwitchCore.js +18 -29
- package/dist/components/Switch/index.js +4 -3
- package/dist/components/Switch/switch-styles.js +19 -0
- package/dist/components/TabBar/TabBar.js +0 -1
- package/dist/components/TabBar/index.js +0 -1
- package/dist/components/Table/Table.js +38 -17
- package/dist/components/Table/TableBody.js +17 -8
- package/dist/components/Table/TableCell.js +9 -7
- package/dist/components/Table/TableContext.js +9 -0
- package/dist/components/Table/TableHead.js +17 -8
- package/dist/components/Table/TableRow.js +12 -7
- package/dist/components/Table/table-styles.js +7 -0
- package/dist/components/Tabs/SortableTabList.js +70 -51
- package/dist/components/Tabs/Tab.js +70 -53
- package/dist/components/Tabs/TabList.js +96 -75
- package/dist/components/Tabs/TabPanel.js +20 -15
- package/dist/components/Tabs/Tabs.js +37 -15
- package/dist/components/Tabs/index.js +7 -6
- package/dist/components/Tabs/tab-metas.js +20 -10
- package/dist/components/Tabs/tabs-styles.js +23 -0
- package/dist/components/Tag/Tag.js +14 -26
- package/dist/components/Tag/index.js +3 -3
- package/dist/components/Tag/tag-styles.js +16 -0
- package/dist/components/TagGroup/SortableTagGroup.js +50 -30
- package/dist/components/TagGroup/TagGroup.js +29 -22
- package/dist/components/TagGroup/TagGroupItem.js +32 -25
- package/dist/components/TagInput/SortableTagInput.js +24 -19
- package/dist/components/TagInput/SortableTagInputCore.js +69 -42
- package/dist/components/TagInput/TagInput.js +33 -20
- package/dist/components/Textarea/Textarea.js +19 -15
- package/dist/components/Textarea/TextareaCore.js +6 -9
- package/dist/components/Textarea/textarea-styles.js +11 -0
- package/dist/components/ThinkingIndicator/ThinkingIndicator.js +42 -29
- package/dist/components/TimeField/TimeField.js +29 -0
- package/dist/components/TimeField/TimeFieldCore.js +69 -0
- package/dist/components/TimeField/index.js +4 -0
- package/dist/components/TimeGrid/TimeGrid.js +89 -0
- package/dist/components/TimeGrid/index.js +3 -0
- package/dist/components/TimeGrid/time-grid-styles.js +7 -0
- package/dist/components/TimePicker/TimePicker.js +31 -30
- package/dist/components/TimePicker/TimePickerCore.js +20 -12
- package/dist/components/Timeline/Timeline.js +0 -1
- package/dist/components/Timeline/index.js +0 -1
- package/dist/components/Toast/ToastContainer.js +99 -69
- package/dist/components/Toggle/Toggle.js +16 -13
- package/dist/components/TokenCounter/TokenCounter.js +56 -31
- package/dist/components/Toolbar/Toolbar.js +5 -3
- package/dist/components/Toolbar/ToolbarSeparator.js +19 -14
- package/dist/components/Tooltip/Tooltip.js +37 -30
- package/dist/components/Trace/Trace.js +132 -0
- package/dist/components/Trace/index.js +3 -0
- package/dist/components/Transfer/Transfer.js +18 -13
- package/dist/components/Transfer/TransferCore.js +144 -88
- package/dist/components/Tree/SortableTree.js +115 -96
- package/dist/components/Tree/Tree.js +81 -80
- package/dist/components/Tree/TreeItem.js +198 -143
- package/dist/components/TreeSelect/TreeSelect.js +59 -55
- package/dist/components/Upload/Upload.js +28 -24
- package/dist/components/Upload/UploadCore.js +241 -184
- package/dist/components/Upload/UploadList.js +349 -298
- package/dist/components/Workbench/Workbench.js +165 -126
- package/dist/css/accordion.css +1 -1
- package/dist/css/affix.css +1 -1
- package/dist/css/alert.css +1 -1
- package/dist/css/app-shell.css +1 -1
- package/dist/css/badge.css +1 -1
- package/dist/css/banner.css +1 -1
- package/dist/css/bottom-sheet.css +1 -1
- package/dist/css/button-group.css +4 -0
- package/dist/css/card.css +1 -1
- package/dist/css/carousel.css +1 -1
- package/dist/css/chart.css +2 -1
- package/dist/css/chat-container.css +1 -1
- package/dist/css/chip.css +1 -1
- package/dist/css/color-picker.css +2 -1
- package/dist/css/combobox.css +3 -3
- package/dist/css/command.css +1 -1
- package/dist/css/confirm-dialog.css +1 -1
- package/dist/css/context-menu.css +2 -2
- package/dist/css/copy-button.css +5 -0
- package/dist/css/data-table.css +2 -1
- package/dist/css/date-field.css +4 -0
- package/dist/css/datepicker.css +1 -1
- package/dist/css/drawer.css +1 -1
- package/dist/css/dropdown-menu.css +1 -1
- package/dist/css/error-boundary.css +4 -0
- package/dist/css/heatmap.css +4 -0
- package/dist/css/image.css +1 -1
- package/dist/css/inline-citation.css +4 -0
- package/dist/css/input-group.css +4 -0
- package/dist/css/input.css +2 -1
- package/dist/css/loading-overlay.css +1 -1
- package/dist/css/mark.css +1 -1
- package/dist/css/menu.css +2 -2
- package/dist/css/meter.css +4 -0
- package/dist/css/navigation-menu.css +9 -0
- package/dist/css/number-input.css +2 -1
- package/dist/css/otp-input.css +1 -0
- package/dist/css/pagination.css +2 -1
- package/dist/css/phone-input.css +4 -0
- package/dist/css/plan.css +4 -0
- package/dist/css/popconfirm.css +5 -0
- package/dist/css/popover.css +1 -1
- package/dist/css/progress.css +1 -1
- package/dist/css/pull-to-refresh.css +4 -0
- package/dist/css/queue.css +4 -0
- package/dist/css/rating.css +1 -0
- package/dist/css/rich-text-editor.css +5 -0
- package/dist/css/schedule.css +4 -0
- package/dist/css/scroll-area.css +4 -1
- package/dist/css/segmented.css +1 -0
- package/dist/css/select.css +4 -3
- package/dist/css/sparkline.css +1 -1
- package/dist/css/step-timeline.css +1 -1
- package/dist/css/switch.css +3 -1
- package/dist/css/table.css +2 -1
- package/dist/css/tabs.css +4 -3
- package/dist/css/tag-group.css +1 -1
- package/dist/css/tag-input.css +2 -1
- package/dist/css/tag.css +1 -1
- package/dist/css/textarea.css +2 -1
- package/dist/css/time-grid.css +4 -0
- package/dist/css/time-picker.css +1 -1
- package/dist/css/timeline.css +1 -1
- package/dist/css/toast.css +1 -1
- package/dist/css/tokens.css +2 -2
- package/dist/css/tooltip.css +1 -1
- package/dist/css/tour.css +1 -1
- package/dist/css/trace.css +4 -0
- package/dist/css/tree-select.css +1 -1
- 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/workbench.css +1 -1
- package/dist/css-manifest.json +158 -9
- package/dist/design-tokens/cyan-dark.json +32 -0
- package/dist/design-tokens/cyan-light.json +32 -0
- package/dist/design-tokens/dark.json +32 -0
- package/dist/design-tokens/light.json +32 -0
- package/dist/design-tokens/orange-dark.json +32 -0
- package/dist/design-tokens/orange-light.json +32 -0
- package/dist/design-tokens/rose-dark.json +32 -0
- package/dist/design-tokens/rose-light.json +32 -0
- package/dist/design-tokens/teal-dark.json +32 -0
- package/dist/design-tokens/teal-light.json +32 -0
- package/dist/design-tokens/violet-dark.json +32 -0
- package/dist/design-tokens/violet-light.json +32 -0
- package/dist/form/FormItem.js +71 -52
- package/dist/form/index.js +3 -3
- package/dist/haze-ui.css +160 -61
- package/dist/hooks/useClipboard.js +22 -14
- package/dist/hooks/useDebouncedCallback.js +17 -11
- package/dist/hooks/useDebouncedValue.js +8 -7
- package/dist/hooks/useFullscreen.js +40 -36
- package/dist/hooks/useMediaQuery.js +9 -5
- package/dist/hooks/useStorageState.js +43 -34
- package/dist/hooks/useTitle.js +12 -9
- package/dist/index.js +325 -277
- package/dist/locales/index.js +14 -0
- package/dist/mcp-docs.json +3078 -364
- package/dist/registry.json +585 -60
- package/dist/sitemap.xml +25 -0
- package/dist/tokens/colors.js +2 -2
- package/dist/tokens/index.js +8 -8
- package/dist/tokens/registry.js +47 -13
- package/dist/tokens/z-index.js +35 -0
- package/dist/types/components/Accordion/Accordion.d.ts +33 -4
- package/dist/types/components/Accordion/AccordionContext.d.ts +41 -0
- package/dist/types/components/Accordion/AccordionItem.d.ts +18 -3
- package/dist/types/components/Accordion/index.d.ts +4 -4
- package/dist/types/components/ActivityRail/index.d.ts +4 -4
- package/dist/types/components/Affix/index.d.ts +2 -2
- package/dist/types/components/Alert/Alert.d.ts +6 -3
- package/dist/types/components/Alert/alert-styles.d.ts +20 -0
- package/dist/types/components/Alert/index.d.ts +3 -2
- package/dist/types/components/Anchor/index.d.ts +2 -2
- package/dist/types/components/AppShell/index.d.ts +2 -2
- package/dist/types/components/ApprovalCard/index.d.ts +2 -2
- package/dist/types/components/AspectRatio/index.d.ts +2 -2
- package/dist/types/components/AsyncSection/index.d.ts +2 -2
- package/dist/types/components/Avatar/Avatar.d.ts +4 -2
- package/dist/types/components/Avatar/index.d.ts +2 -2
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +8 -2
- package/dist/types/components/AvatarGroup/index.d.ts +2 -2
- package/dist/types/components/BackToTop/index.d.ts +2 -2
- package/dist/types/components/Badge/Badge.d.ts +6 -3
- package/dist/types/components/Badge/badge-styles.d.ts +4 -3
- package/dist/types/components/Badge/index.d.ts +3 -3
- package/dist/types/components/Banner/Banner.d.ts +6 -3
- package/dist/types/components/Banner/banner-styles.d.ts +20 -0
- package/dist/types/components/Banner/index.d.ts +3 -2
- package/dist/types/components/BottomSheet/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +3 -3
- package/dist/types/components/Breadcrumb/BreadcrumbItem.d.ts +23 -5
- package/dist/types/components/Breadcrumb/index.d.ts +4 -4
- package/dist/types/components/Button/ButtonLink.d.ts +4 -12
- package/dist/types/components/Button/index.d.ts +5 -5
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +52 -0
- package/dist/types/components/ButtonGroup/ButtonGroupContext.d.ts +28 -0
- package/dist/types/components/ButtonGroup/ButtonGroupSeparator.d.ts +18 -0
- package/dist/types/components/ButtonGroup/button-group-styles.d.ts +45 -0
- package/dist/types/components/ButtonGroup/index.d.ts +6 -0
- package/dist/types/components/Calendar/Calendar.d.ts +74 -3
- package/dist/types/components/Calendar/index.d.ts +2 -2
- package/dist/types/components/Card/Card.d.ts +32 -5
- package/dist/types/components/Card/index.d.ts +3 -2
- package/dist/types/components/Carousel/Carousel.d.ts +27 -3
- package/dist/types/components/Carousel/index.d.ts +4 -4
- package/dist/types/components/Cascader/Cascader.d.ts +44 -2
- package/dist/types/components/Cascader/index.d.ts +2 -2
- package/dist/types/components/Chart/Chart.d.ts +111 -18
- package/dist/types/components/Chart/chart-elements.d.ts +73 -7
- package/dist/types/components/Chart/index.d.ts +2 -2
- package/dist/types/components/ChatContainer/index.d.ts +2 -2
- package/dist/types/components/ChatInput/index.d.ts +2 -2
- package/dist/types/components/ChatMessage/index.d.ts +2 -2
- package/dist/types/components/Checkbox/index.d.ts +4 -4
- package/dist/types/components/Chip/Chip.d.ts +12 -3
- package/dist/types/components/Chip/chip-styles.d.ts +51 -0
- package/dist/types/components/Chip/index.d.ts +3 -2
- package/dist/types/components/CodeBlock/index.d.ts +2 -2
- package/dist/types/components/Collapsible/index.d.ts +2 -2
- package/dist/types/components/ColorPicker/ColorPicker.d.ts +37 -4
- package/dist/types/components/ColorPicker/ColorPickerPanel.d.ts +28 -9
- package/dist/types/components/ColorPicker/color-picker-styles.d.ts +27 -0
- package/dist/types/components/ColorPicker/gradient.d.ts +64 -0
- package/dist/types/components/ColorPicker/index.d.ts +5 -4
- package/dist/types/components/Combobox/Combobox.d.ts +24 -23
- package/dist/types/components/Combobox/ComboboxOption.d.ts +11 -4
- package/dist/types/components/Combobox/combobox-options.d.ts +24 -0
- package/dist/types/components/Combobox/index.d.ts +6 -6
- package/dist/types/components/Command/Command.d.ts +36 -5
- package/dist/types/components/Command/command-filter.d.ts +57 -5
- package/dist/types/components/Command/index.d.ts +4 -4
- package/dist/types/components/ConfigProvider/ConfigContext.d.ts +102 -23
- package/dist/types/components/ConfigProvider/ConfigProvider.d.ts +16 -6
- package/dist/types/components/ConfigProvider/index.d.ts +4 -4
- package/dist/types/components/ConfigProvider/useConfigDefaults.d.ts +17 -4
- package/dist/types/components/ConfirmDialog/confirm.d.ts +1 -1
- package/dist/types/components/ConfirmDialog/index.d.ts +4 -4
- package/dist/types/components/Container/index.d.ts +2 -2
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +20 -2
- package/dist/types/components/ContextMenu/ContextMenuContext.d.ts +25 -1
- package/dist/types/components/ContextMenu/index.d.ts +11 -10
- package/dist/types/components/ConversationList/index.d.ts +4 -4
- package/dist/types/components/CopyButton/CopyButton.d.ts +56 -0
- package/dist/types/components/CopyButton/Snippet.d.ts +48 -0
- package/dist/types/components/CopyButton/copy-button-styles.d.ts +21 -0
- package/dist/types/components/CopyButton/index.d.ts +5 -0
- package/dist/types/components/CopyButton/snippet-styles.d.ts +10 -0
- package/dist/types/components/CountUp/index.d.ts +2 -2
- package/dist/types/components/Countdown/index.d.ts +2 -2
- package/dist/types/components/DataTable/DataTable.d.ts +169 -10
- package/dist/types/components/DataTable/column-filter.d.ts +27 -0
- package/dist/types/components/DataTable/column-reorder.d.ts +32 -0
- package/dist/types/components/DataTable/csv.d.ts +13 -3
- package/dist/types/components/DataTable/features.d.ts +18 -1
- package/dist/types/components/DataTable/filters.d.ts +25 -0
- package/dist/types/components/DataTable/index.d.ts +6 -5
- package/dist/types/components/DataTable/summary.d.ts +1 -1
- package/dist/types/components/DateField/DateField.d.ts +21 -0
- package/dist/types/components/DateField/DateFieldCore.d.ts +30 -0
- package/dist/types/components/DateField/index.d.ts +4 -0
- package/dist/types/components/DateField/segmented-field.d.ts +70 -0
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/types/components/DateRangePicker/index.d.ts +4 -4
- package/dist/types/components/DateRangePicker/presets.d.ts +1 -1
- package/dist/types/components/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/dist/types/components/DateTimePicker/index.d.ts +2 -2
- package/dist/types/components/Datepicker/Datepicker.d.ts +2 -2
- package/dist/types/components/Datepicker/DatepickerCore.d.ts +1 -1
- package/dist/types/components/Datepicker/index.d.ts +4 -4
- package/dist/types/components/Descriptions/index.d.ts +2 -2
- package/dist/types/components/Dialog/Dialog.d.ts +12 -1
- package/dist/types/components/Dialog/index.d.ts +2 -2
- package/dist/types/components/DiffViewer/index.d.ts +2 -2
- package/dist/types/components/Disclosure/index.d.ts +2 -2
- package/dist/types/components/Divider/index.d.ts +2 -2
- package/dist/types/components/Drawer/Drawer.d.ts +23 -1
- package/dist/types/components/Drawer/index.d.ts +2 -2
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +16 -3
- package/dist/types/components/DropdownMenu/DropdownMenuContext.d.ts +39 -1
- package/dist/types/components/DropdownMenu/index.d.ts +25 -24
- package/dist/types/components/Ellipsis/index.d.ts +2 -2
- package/dist/types/components/Empty/index.d.ts +2 -2
- package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +45 -0
- package/dist/types/components/ErrorBoundary/index.d.ts +2 -0
- package/dist/types/components/Fieldset/index.d.ts +2 -2
- package/dist/types/components/FileInput/index.d.ts +2 -2
- package/dist/types/components/FilePreview/index.d.ts +2 -2
- package/dist/types/components/Flex/index.d.ts +2 -2
- package/dist/types/components/FloatButton/index.d.ts +4 -4
- package/dist/types/components/Fullscreen/Fullscreen.d.ts +1 -1
- package/dist/types/components/Fullscreen/index.d.ts +3 -3
- package/dist/types/components/Grid/index.d.ts +4 -4
- package/dist/types/components/Heatmap/Heatmap.d.ts +69 -0
- package/dist/types/components/Heatmap/heatmap-styles.d.ts +25 -0
- package/dist/types/components/Heatmap/index.d.ts +2 -0
- package/dist/types/components/Highlight/index.d.ts +2 -2
- package/dist/types/components/HoverCard/HoverCard.d.ts +2 -2
- package/dist/types/components/HoverCard/index.d.ts +2 -2
- package/dist/types/components/Icon/index.d.ts +2 -2
- package/dist/types/components/Image/Image.d.ts +4 -0
- package/dist/types/components/Image/ImageGalleryContext.d.ts +29 -0
- package/dist/types/components/Image/ImagePreview.d.ts +15 -1
- package/dist/types/components/Image/ImagePreviewGroup.d.ts +23 -0
- package/dist/types/components/Image/index.d.ts +4 -2
- package/dist/types/components/ImageCrop/ImageCrop.d.ts +2 -2
- package/dist/types/components/ImageCrop/index.d.ts +3 -3
- package/dist/types/components/Indicator/index.d.ts +2 -2
- package/dist/types/components/InlineCitation/InlineCitation.d.ts +17 -0
- package/dist/types/components/InlineCitation/index.d.ts +2 -0
- package/dist/types/components/InlineCompletion/index.d.ts +2 -2
- package/dist/types/components/InlineEdit/index.d.ts +2 -2
- package/dist/types/components/Input/index.d.ts +4 -4
- package/dist/types/components/Input/input-styles.d.ts +15 -0
- package/dist/types/components/InputGroup/InputGroup.d.ts +47 -0
- package/dist/types/components/InputGroup/InputGroupAddon.d.ts +22 -0
- package/dist/types/components/InputGroup/InputGroupContext.d.ts +21 -0
- package/dist/types/components/InputGroup/index.d.ts +6 -0
- package/dist/types/components/InputGroup/input-group-styles.d.ts +34 -0
- package/dist/types/components/JsonView/index.d.ts +2 -2
- package/dist/types/components/Kbd/Kbd.d.ts +4 -2
- package/dist/types/components/Kbd/index.d.ts +2 -2
- package/dist/types/components/List/index.d.ts +4 -4
- package/dist/types/components/LoadingOverlay/index.d.ts +2 -2
- package/dist/types/components/LocaleProvider/LocaleContext.d.ts +2 -2
- package/dist/types/components/LocaleProvider/LocaleProvider.d.ts +1 -1
- package/dist/types/components/LocaleProvider/ar-sa.d.ts +1 -1
- package/dist/types/components/LocaleProvider/de-de.d.ts +1 -1
- package/dist/types/components/LocaleProvider/es-es.d.ts +1 -1
- package/dist/types/components/LocaleProvider/fr-fr.d.ts +1 -1
- package/dist/types/components/LocaleProvider/index.d.ts +18 -18
- package/dist/types/components/LocaleProvider/it-it.d.ts +1 -1
- package/dist/types/components/LocaleProvider/ja-jp.d.ts +1 -1
- package/dist/types/components/LocaleProvider/ko-kr.d.ts +1 -1
- package/dist/types/components/LocaleProvider/locale.d.ts +20 -0
- package/dist/types/components/LocaleProvider/pt-br.d.ts +1 -1
- package/dist/types/components/LocaleProvider/ru-ru.d.ts +1 -1
- package/dist/types/components/LocaleProvider/strings.d.ts +1 -1
- package/dist/types/components/LocaleProvider/useStrings.d.ts +1 -1
- package/dist/types/components/LocaleProvider/zh-cn.d.ts +1 -1
- package/dist/types/components/LogViewer/index.d.ts +2 -2
- package/dist/types/components/Mark/Mark.d.ts +2 -2
- package/dist/types/components/Mark/index.d.ts +2 -2
- package/dist/types/components/MarkdownRenderer/index.d.ts +2 -2
- package/dist/types/components/MaskedInput/MaskedInput.d.ts +20 -0
- package/dist/types/components/MaskedInput/MaskedInputCore.d.ts +33 -0
- package/dist/types/components/MaskedInput/index.d.ts +6 -0
- package/dist/types/components/MaskedInput/mask.d.ts +77 -0
- package/dist/types/components/Masonry/index.d.ts +2 -2
- package/dist/types/components/Mentions/Mentions.d.ts +1 -1
- package/dist/types/components/Mentions/index.d.ts +4 -4
- package/dist/types/components/Menu/Menu.d.ts +42 -3
- package/dist/types/components/Menu/MenuContext.d.ts +39 -0
- package/dist/types/components/Menu/index.d.ts +20 -19
- package/dist/types/components/Meter/Meter.d.ts +72 -0
- package/dist/types/components/Meter/index.d.ts +3 -0
- package/dist/types/components/Meter/meter-styles.d.ts +25 -0
- package/dist/types/components/ModelPicker/index.d.ts +2 -2
- package/dist/types/components/NavigationBar/index.d.ts +4 -4
- package/dist/types/components/NavigationMenu/NavigationMenu.d.ts +47 -0
- package/dist/types/components/NavigationMenu/NavigationMenuContent.d.ts +16 -0
- package/dist/types/components/NavigationMenu/NavigationMenuContext.d.ts +77 -0
- package/dist/types/components/NavigationMenu/NavigationMenuItem.d.ts +13 -0
- package/dist/types/components/NavigationMenu/NavigationMenuList.d.ts +15 -0
- package/dist/types/components/NavigationMenu/NavigationMenuTrigger.d.ts +15 -0
- package/dist/types/components/NavigationMenu/index.d.ts +11 -0
- package/dist/types/components/NumberFormatter/index.d.ts +2 -2
- package/dist/types/components/NumberInput/index.d.ts +5 -4
- package/dist/types/components/NumberInput/number-input-styles.d.ts +10 -0
- package/dist/types/components/OTPInput/OTPInput.d.ts +9 -1
- package/dist/types/components/OTPInput/index.d.ts +4 -4
- package/dist/types/components/Pagination/index.d.ts +2 -2
- package/dist/types/components/Pagination/pagination-styles.d.ts +13 -0
- package/dist/types/components/PasswordInput/index.d.ts +4 -4
- package/dist/types/components/PhoneInput/PhoneInput.d.ts +35 -0
- package/dist/types/components/PhoneInput/index.d.ts +3 -0
- package/dist/types/components/PhoneInput/phone-input-styles.d.ts +11 -0
- package/dist/types/components/PhoneInput/phone-number.d.ts +9 -0
- package/dist/types/components/Plan/Plan.d.ts +26 -0
- package/dist/types/components/Plan/index.d.ts +2 -0
- package/dist/types/components/Popconfirm/Popconfirm.d.ts +57 -0
- package/dist/types/components/Popconfirm/index.d.ts +2 -0
- package/dist/types/components/Popover/Popover.d.ts +1 -1
- package/dist/types/components/Popover/index.d.ts +2 -2
- package/dist/types/components/Progress/Progress.d.ts +7 -3
- package/dist/types/components/Progress/index.d.ts +3 -2
- package/dist/types/components/Progress/progress-styles.d.ts +41 -0
- package/dist/types/components/PromptInput/index.d.ts +2 -2
- package/dist/types/components/PullToRefresh/PullToRefresh.d.ts +61 -0
- package/dist/types/components/PullToRefresh/index.d.ts +2 -0
- package/dist/types/components/QRCode/index.d.ts +2 -2
- package/dist/types/components/Queue/Queue.d.ts +25 -0
- package/dist/types/components/Queue/index.d.ts +2 -0
- package/dist/types/components/Radio/index.d.ts +6 -6
- package/dist/types/components/Rating/Rating.d.ts +8 -1
- package/dist/types/components/Rating/index.d.ts +4 -4
- package/dist/types/components/Resizable/index.d.ts +2 -2
- package/dist/types/components/Result/index.d.ts +2 -2
- package/dist/types/components/RichTextEditor/RichTextEditor.d.ts +56 -0
- package/dist/types/components/RichTextEditor/index.d.ts +2 -0
- package/dist/types/components/Schedule/Schedule.d.ts +113 -0
- package/dist/types/components/Schedule/index.d.ts +2 -0
- package/dist/types/components/ScrollArea/ScrollArea.d.ts +27 -3
- package/dist/types/components/ScrollArea/ScrollAreaContext.d.ts +24 -0
- package/dist/types/components/ScrollArea/ScrollThumb.d.ts +9 -0
- package/dist/types/components/ScrollArea/ScrollViewport.d.ts +8 -0
- package/dist/types/components/ScrollArea/Scrollbar.d.ts +19 -0
- package/dist/types/components/ScrollArea/index.d.ts +9 -2
- package/dist/types/components/ScrollArea/scroll-math.d.ts +121 -0
- package/dist/types/components/Segmented/Segmented.d.ts +10 -2
- package/dist/types/components/Segmented/index.d.ts +4 -4
- package/dist/types/components/Select/Option.d.ts +4 -1
- package/dist/types/components/Select/Select.d.ts +87 -15
- package/dist/types/components/Select/SelectCore.d.ts +32 -14
- package/dist/types/components/Select/SelectFloating.d.ts +33 -14
- package/dist/types/components/Select/index.d.ts +8 -8
- package/dist/types/components/Select/select-options.d.ts +16 -10
- package/dist/types/components/Sidebar/index.d.ts +4 -4
- package/dist/types/components/Signature/index.d.ts +2 -2
- package/dist/types/components/Skeleton/index.d.ts +2 -2
- package/dist/types/components/Slider/index.d.ts +4 -4
- package/dist/types/components/Sources/index.d.ts +2 -2
- package/dist/types/components/Sparkline/Sparkline.d.ts +3 -3
- package/dist/types/components/Sparkline/index.d.ts +3 -3
- package/dist/types/components/Sparkline/sparkline-styles.d.ts +7 -5
- package/dist/types/components/Spinner/Spinner.d.ts +4 -1
- package/dist/types/components/Spinner/index.d.ts +2 -2
- package/dist/types/components/Splitter/index.d.ts +2 -2
- package/dist/types/components/Spoiler/index.d.ts +2 -2
- package/dist/types/components/Stat/index.d.ts +2 -2
- package/dist/types/components/StatusBar/index.d.ts +3 -3
- package/dist/types/components/StepTimeline/StepTimeline.d.ts +17 -2
- package/dist/types/components/StepTimeline/index.d.ts +2 -2
- package/dist/types/components/Stepper/index.d.ts +4 -4
- package/dist/types/components/StreamingText/index.d.ts +2 -2
- package/dist/types/components/SwipeAction/index.d.ts +2 -2
- package/dist/types/components/Switch/Switch.d.ts +12 -2
- package/dist/types/components/Switch/index.d.ts +5 -4
- package/dist/types/components/Switch/switch-styles.d.ts +15 -0
- package/dist/types/components/TabBar/index.d.ts +4 -4
- package/dist/types/components/Table/Table.d.ts +17 -2
- package/dist/types/components/Table/TableContext.d.ts +27 -0
- package/dist/types/components/Table/index.d.ts +11 -10
- package/dist/types/components/Table/table-styles.d.ts +9 -0
- package/dist/types/components/Tabs/Tab.d.ts +9 -1
- package/dist/types/components/Tabs/TabList.d.ts +1 -1
- package/dist/types/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +76 -5
- package/dist/types/components/Tabs/TabsContext.d.ts +35 -0
- package/dist/types/components/Tabs/index.d.ts +12 -11
- package/dist/types/components/Tabs/tab-metas.d.ts +15 -1
- package/dist/types/components/Tabs/tabs-styles.d.ts +10 -0
- package/dist/types/components/Tag/Tag.d.ts +34 -6
- package/dist/types/components/Tag/index.d.ts +3 -2
- package/dist/types/components/Tag/tag-styles.d.ts +28 -0
- package/dist/types/components/TagGroup/SortableTagGroup.d.ts +1 -1
- package/dist/types/components/TagGroup/index.d.ts +6 -6
- package/dist/types/components/TagInput/SortableTagInputCore.d.ts +1 -1
- package/dist/types/components/TagInput/TagInput.d.ts +10 -1
- package/dist/types/components/TagInput/index.d.ts +8 -8
- package/dist/types/components/Textarea/index.d.ts +4 -4
- package/dist/types/components/Textarea/textarea-styles.d.ts +12 -0
- package/dist/types/components/ThinkingIndicator/index.d.ts +2 -2
- package/dist/types/components/TimeField/TimeField.d.ts +26 -0
- package/dist/types/components/TimeField/TimeFieldCore.d.ts +36 -0
- package/dist/types/components/TimeField/index.d.ts +4 -0
- package/dist/types/components/TimeGrid/TimeGrid.d.ts +58 -0
- package/dist/types/components/TimeGrid/index.d.ts +2 -0
- package/dist/types/components/TimeGrid/time-grid-styles.d.ts +13 -0
- package/dist/types/components/TimePicker/TimePicker.d.ts +1 -1
- package/dist/types/components/TimePicker/TimePickerPanel.d.ts +1 -1
- package/dist/types/components/TimePicker/index.d.ts +5 -5
- package/dist/types/components/Timeline/index.d.ts +2 -2
- package/dist/types/components/Toast/Toast.d.ts +1 -1
- package/dist/types/components/Toast/ToastContainer.d.ts +1 -1
- package/dist/types/components/Toast/index.d.ts +7 -7
- package/dist/types/components/Toast/toast-channel.d.ts +1 -1
- package/dist/types/components/Toast/useToast.d.ts +1 -1
- package/dist/types/components/Toggle/index.d.ts +4 -4
- package/dist/types/components/TokenCounter/index.d.ts +2 -2
- package/dist/types/components/ToolCallCard/index.d.ts +2 -2
- package/dist/types/components/Toolbar/index.d.ts +8 -8
- package/dist/types/components/Tooltip/Tooltip.d.ts +26 -4
- package/dist/types/components/Tooltip/index.d.ts +2 -2
- package/dist/types/components/Tour/Tour.d.ts +1 -1
- package/dist/types/components/Tour/index.d.ts +2 -2
- package/dist/types/components/Trace/Trace.d.ts +37 -0
- package/dist/types/components/Trace/index.d.ts +2 -0
- package/dist/types/components/Transfer/Transfer.d.ts +1 -1
- package/dist/types/components/Transfer/index.d.ts +4 -4
- package/dist/types/components/Tree/SortableTree.d.ts +2 -2
- package/dist/types/components/Tree/Tree.d.ts +2 -2
- package/dist/types/components/Tree/TreeItem.d.ts +1 -1
- package/dist/types/components/Tree/index.d.ts +4 -4
- package/dist/types/components/Tree/sortable-tree-utils.d.ts +1 -1
- package/dist/types/components/Tree/types.d.ts +9 -1
- package/dist/types/components/Tree/utils.d.ts +1 -1
- package/dist/types/components/TreeSelect/TreeSelect.d.ts +1 -1
- package/dist/types/components/TreeSelect/index.d.ts +2 -2
- package/dist/types/components/Typography/index.d.ts +2 -2
- package/dist/types/components/Upload/Upload.d.ts +25 -2
- package/dist/types/components/Upload/UploadCore.d.ts +44 -3
- package/dist/types/components/Upload/UploadList.d.ts +16 -2
- package/dist/types/components/Upload/index.d.ts +5 -5
- package/dist/types/components/Upload/types.d.ts +28 -1
- package/dist/types/components/Upload/xhr-upload.d.ts +1 -1
- package/dist/types/components/VirtualList/index.d.ts +2 -2
- package/dist/types/components/VisuallyHidden/index.d.ts +2 -2
- package/dist/types/components/Watermark/index.d.ts +2 -2
- package/dist/types/components/Workbench/index.d.ts +2 -2
- package/dist/types/dates/buddhist.d.ts +1 -1
- package/dist/types/dates/ethiopic.d.ts +1 -1
- package/dist/types/dates/gregory.d.ts +1 -1
- package/dist/types/dates/hebrew.d.ts +1 -1
- package/dist/types/dates/index.d.ts +11 -11
- package/dist/types/dates/islamic.d.ts +1 -1
- package/dist/types/dates/japanese.d.ts +1 -1
- package/dist/types/dates/persian.d.ts +1 -1
- package/dist/types/dates/registry.d.ts +1 -1
- package/dist/types/form/FormItem.d.ts +38 -1
- package/dist/types/form/index.d.ts +17 -7
- package/dist/types/headless/index.d.ts +38 -34
- package/dist/types/hooks/index.d.ts +33 -33
- package/dist/types/index.d.ts +351 -308
- package/dist/types/locales/index.d.ts +32 -0
- package/dist/types/tokens/colors.d.ts +15 -0
- package/dist/types/tokens/density.d.ts +1 -1
- package/dist/types/tokens/index.d.ts +11 -11
- package/dist/types/tokens/palette.d.ts +1 -1
- package/dist/types/tokens/registry.d.ts +1 -1
- package/dist/types/tokens/z-index.d.ts +33 -0
- package/dist/types/utils/floating.d.ts +1 -1
- package/dist/types/utils/native-form.d.ts +32 -0
- package/dist/types/utils/presence.d.ts +21 -2
- package/dist/types/utils/sortable-shared.d.ts +6 -0
- package/dist/types/utils/submenu.d.ts +1 -1
- package/dist/utils/direction.js +10 -8
- package/dist/utils/floating.js +227 -185
- package/dist/utils/focus-scope.js +27 -24
- package/dist/utils/menuRadio.js +23 -21
- package/dist/utils/native-form.js +42 -0
- package/dist/utils/presence.js +16 -12
- package/dist/utils/sortable-shared.js +12 -8
- package/dist/utils/sortable.js +55 -39
- package/dist/utils/submenu.js +94 -82
- package/dist/utils/view-transition.js +11 -13
- package/dist/utils/viewport.js +9 -8
- package/package.json +141 -11
|
@@ -4,5 +4,5 @@ type TabPanelProps = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export default function TabPanel({ value, className, children, }: TabPanelProps): import("react").JSX.Element;
|
|
7
|
+
export default function TabPanel({ value, className, children, }: TabPanelProps): import("react").JSX.Element | null;
|
|
8
8
|
export type { TabPanelProps };
|
|
@@ -1,8 +1,71 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
2
|
import type { ControlOrValue } from 'react-use-control';
|
|
3
|
-
import type { TabsClassNames } from './TabsContext';
|
|
3
|
+
import type { TabsClassNames, TabsVariant, TabsAddable } from './TabsContext.js';
|
|
4
|
+
import type { TabStatus } from './Tab.js';
|
|
5
|
+
/**
|
|
6
|
+
* One tab of the data-driven `items` API on `<Tabs>`: the same affordances
|
|
7
|
+
* a compound `<Tab>` + `<TabPanel>` pair would declare, flattened into a
|
|
8
|
+
* record. `panel` is the tab's content — the panel always renders (even
|
|
9
|
+
* without `panel`) so the tab's `aria-controls` target never dangles.
|
|
10
|
+
*/
|
|
11
|
+
type TabData = {
|
|
12
|
+
value: string;
|
|
13
|
+
label: ReactNode;
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/** Inert tab: not clickable, not focusable, skipped by the roving
|
|
16
|
+
* model — surfaced on the compound layer as Tab's `disabled`. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Renders the × close affordance (purely visual on this path — the
|
|
19
|
+
* notifying `onClose` lives on the compound `<Tab>`). */
|
|
20
|
+
closable?: boolean;
|
|
21
|
+
status?: TabStatus;
|
|
22
|
+
panel?: ReactNode;
|
|
23
|
+
};
|
|
4
24
|
type TabsProps = {
|
|
5
25
|
value?: ControlOrValue<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Visual skin of the whole strip, distributed through context:
|
|
28
|
+
* `line` (default — the classic underline strip, full-width
|
|
29
|
+
* separator), `card` (flat antd-style cards, the selected tab
|
|
30
|
+
* raising onto a bordered surface) or `pill` (the Segmented-style
|
|
31
|
+
* capsule). Omitting it keeps the line look byte-for-byte.
|
|
32
|
+
*/
|
|
33
|
+
variant?: TabsVariant;
|
|
34
|
+
/**
|
|
35
|
+
* Data-driven mode: renders the `<TabList>` (one `<Tab>` per item)
|
|
36
|
+
* and every `<TabPanel>` for you — the strip keeps the full
|
|
37
|
+
* compound machinery (overflow folding, roving keyboard,
|
|
38
|
+
* ResizeObserver compression) because it is the same `<TabList>`
|
|
39
|
+
* path. Mutually exclusive with compound `children`; when both are
|
|
40
|
+
* given, `items` wins and a dev-time console.error explains the
|
|
41
|
+
* conflict.
|
|
42
|
+
*/
|
|
43
|
+
items?: TabData[];
|
|
44
|
+
/**
|
|
45
|
+
* `false` (default) keeps inactive tab panels mounted and hidden
|
|
46
|
+
* (`display: none`) — panel state survives tab switches. `true`
|
|
47
|
+
* unmounts them instead: switching destroys the panel's internal
|
|
48
|
+
* state (inputs, scroll), trading keep-alive for a lighter DOM.
|
|
49
|
+
*/
|
|
50
|
+
destroyInactiveTabPane?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* `false` (default) mounts every panel eagerly (hidden behind
|
|
53
|
+
* `display: none` when inactive). `true` defers each panel's first
|
|
54
|
+
* mount to its first activation — `items` and compound paths alike.
|
|
55
|
+
* After the first activation `destroyInactiveTabPane` takes over
|
|
56
|
+
* again: keep the panel alive and hidden (`false`) or unmount it on
|
|
57
|
+
* every switch away (`true`).
|
|
58
|
+
*/
|
|
59
|
+
lazy?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Renders the `+` button at the tail of the tab bar (outside the
|
|
62
|
+
* tablist, so the strip keeps owning nothing but tabs). A real
|
|
63
|
+
* button — a normal tab stop, Enter/Space activates. `onAdd` only
|
|
64
|
+
* notifies; growing the `items` array (or mounting another compound
|
|
65
|
+
* `<Tab>`) is the consumer's job. `addLabel` overrides the
|
|
66
|
+
* accessible name.
|
|
67
|
+
*/
|
|
68
|
+
addable?: TabsAddable;
|
|
6
69
|
/**
|
|
7
70
|
* Semantic slot classes (AntD v6 `classNames` shape): declared once
|
|
8
71
|
* here and distributed to every part through context — see
|
|
@@ -10,7 +73,15 @@ type TabsProps = {
|
|
|
10
73
|
*/
|
|
11
74
|
classNames?: TabsClassNames;
|
|
12
75
|
className?: string;
|
|
13
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Forwarded to the root wrapper `<div data-slot='tabs'>` — layout
|
|
78
|
+
* measurement and `ref.current.focus()`-style element access reach
|
|
79
|
+
* the family root (the strip and panels keep their own internal
|
|
80
|
+
* handles).
|
|
81
|
+
*/
|
|
82
|
+
ref?: Ref<HTMLDivElement>;
|
|
83
|
+
/** Compound mode: `<TabList>` + `<TabPanel>`s. Omit when using `items`. */
|
|
84
|
+
children?: ReactNode;
|
|
14
85
|
};
|
|
15
|
-
export default function Tabs({ value: valueControl, classNames, className, children, }: TabsProps): import("react").JSX.Element;
|
|
16
|
-
export type { TabsProps };
|
|
86
|
+
export default function Tabs({ value: valueControl, variant, items, destroyInactiveTabPane, lazy, addable, classNames, className, ref, children, }: TabsProps): import("react").JSX.Element;
|
|
87
|
+
export type { TabsProps, TabData };
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Visual skin of the strip, declared once on `<Tabs>` and distributed
|
|
4
|
+
* through context:
|
|
5
|
+
*
|
|
6
|
+
* - `line` — the classic underline strip (default, the long-standing look)
|
|
7
|
+
* - `card` — flat antd-style cards; the selected tab raises onto a
|
|
8
|
+
* bordered surface, no strip separator
|
|
9
|
+
* - `pill` — the Segmented-style capsule: a muted trough with the
|
|
10
|
+
* selected tab lifting onto the bg surface
|
|
11
|
+
*/
|
|
12
|
+
export type TabsVariant = 'line' | 'card' | 'pill';
|
|
13
|
+
/**
|
|
14
|
+
* The strip-tail `+` affordance, declared once on `<Tabs>` — see
|
|
15
|
+
* `addable` there. `addLabel` overrides the button's accessible
|
|
16
|
+
* name (the i18n hook).
|
|
17
|
+
*/
|
|
18
|
+
export type TabsAddable = {
|
|
19
|
+
onAdd?: () => void;
|
|
20
|
+
addLabel?: string;
|
|
21
|
+
};
|
|
2
22
|
/**
|
|
3
23
|
* Semantic slot classes (AntD v6 `classNames` shape) for the Tabs
|
|
4
24
|
* family: declared once on the `<Tabs>` root and distributed to every
|
|
@@ -21,6 +41,21 @@ export type TabsClassNames = {
|
|
|
21
41
|
type TabsContextValue = {
|
|
22
42
|
value: string;
|
|
23
43
|
setValue: Dispatch<SetStateAction<string>>;
|
|
44
|
+
/** Strip/tab visual variant — one declaration on `<Tabs>` skins
|
|
45
|
+
* every part (the strip chrome, each tab, the overflow areas). */
|
|
46
|
+
variant: TabsVariant;
|
|
47
|
+
/** Unmount inactive tab panels instead of keeping them alive and
|
|
48
|
+
* hidden — see `destroyInactiveTabPane` on `<Tabs>`. */
|
|
49
|
+
destroyInactiveTabPane: boolean;
|
|
50
|
+
/** Defer each panel's first mount to its first activation — see
|
|
51
|
+
* `lazy` on `<Tabs>`. */
|
|
52
|
+
lazy: boolean;
|
|
53
|
+
/** Values that have been active at least once (seeded with the
|
|
54
|
+
* initial value) — the lazy-mount ledger `TabPanel` consults
|
|
55
|
+
* before mounting an inactive panel. */
|
|
56
|
+
activated: ReadonlySet<string>;
|
|
57
|
+
/** Renders the strip-tail `+` button when set (TabList reads it). */
|
|
58
|
+
addable: TabsAddable | undefined;
|
|
24
59
|
classNames: TabsClassNames | undefined;
|
|
25
60
|
};
|
|
26
61
|
export declare const TabsProvider: import("react").Provider<TabsContextValue | undefined>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { default as Tabs } from './Tabs';
|
|
2
|
-
export type { TabsProps } from './Tabs';
|
|
3
|
-
export type { TabsClassNames } from './TabsContext';
|
|
4
|
-
export { default as TabList } from './TabList';
|
|
5
|
-
export type { TabListProps } from './TabList';
|
|
6
|
-
export { default as Tab } from './Tab';
|
|
7
|
-
export type { TabProps, TabStatus } from './Tab';
|
|
8
|
-
export { default as TabPanel } from './TabPanel';
|
|
9
|
-
export type { TabPanelProps } from './TabPanel';
|
|
10
|
-
export { default as SortableTabList } from './SortableTabList';
|
|
11
|
-
export type { SortableTabListProps } from './SortableTabList';
|
|
1
|
+
export { default as Tabs } from './Tabs.js';
|
|
2
|
+
export type { TabsProps } from './Tabs.js';
|
|
3
|
+
export type { TabsClassNames } from './TabsContext.js';
|
|
4
|
+
export { default as TabList } from './TabList.js';
|
|
5
|
+
export type { TabListProps } from './TabList.js';
|
|
6
|
+
export { default as Tab } from './Tab.js';
|
|
7
|
+
export type { TabProps, TabStatus } from './Tab.js';
|
|
8
|
+
export { default as TabPanel } from './TabPanel.js';
|
|
9
|
+
export type { TabPanelProps } from './TabPanel.js';
|
|
10
|
+
export { default as SortableTabList } from './SortableTabList.js';
|
|
11
|
+
export type { SortableTabListProps } from './SortableTabList.js';
|
|
12
|
+
export { tabVariants, listVariants } from './tabs-styles.js';
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { TabStatus } from './Tab';
|
|
2
|
+
import type { TabStatus } from './Tab.js';
|
|
3
3
|
export type TabMeta = {
|
|
4
4
|
value: string;
|
|
5
5
|
label: ReactNode;
|
|
6
6
|
icon?: ReactNode;
|
|
7
7
|
status?: TabStatus;
|
|
8
|
+
/** Carried into the overflow menu so a disabled tab is not
|
|
9
|
+
* selectable through the ⋯ radios either. */
|
|
10
|
+
disabled?: boolean;
|
|
8
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* The lazy-mount ledger: tab values that have been active at least
|
|
14
|
+
* once, seeded with the initial value. `<TabPanel>` consults it when
|
|
15
|
+
* `lazy` is set on `<Tabs>` — a panel that has never been active stays
|
|
16
|
+
* unmounted until its first activation. Recording happens in an effect
|
|
17
|
+
* (the newly active panel already mounts through `isActive`, so the
|
|
18
|
+
* one-commit lag is invisible). Lives here beside the metas collector
|
|
19
|
+
* so the component files keep a components-only export surface for
|
|
20
|
+
* react-refresh.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useActivatedTabs(activeValue: string, enabled: boolean): ReadonlySet<string>;
|
|
9
23
|
/**
|
|
10
24
|
* `<Tab>` children in DOM order for the overflow menu: arrays and
|
|
11
25
|
* Fragments flatten. Anything else between the tabs is left alone —
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TabsVariant } from './TabsContext.js';
|
|
2
|
+
/** Per-variant skin pair — `idle` rides every tab of the variant,
|
|
3
|
+
* `active` only the selected one (after the shared active floor). */
|
|
4
|
+
export declare const tabVariants: Record<TabsVariant, {
|
|
5
|
+
idle: string;
|
|
6
|
+
active: string;
|
|
7
|
+
}>;
|
|
8
|
+
/** Per-variant strip chrome — the tabs carry the matching skins (see
|
|
9
|
+
* `tabVariants`). `variant` rides the Tabs context. */
|
|
10
|
+
export declare const listVariants: Record<TabsVariant, string>;
|
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import type { ComponentPropsWithRef, ElementType, ReactNode } from 'react';
|
|
2
|
+
type TagOwnProps = {
|
|
3
|
+
/** Semantic status color. */
|
|
4
|
+
color?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
4
5
|
size?: 'sm' | 'md';
|
|
5
6
|
closable?: boolean;
|
|
6
7
|
onClose?: () => void;
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Accessible label for the remove button. Inlined default keeps Tag
|
|
10
|
+
* hook-free (RSC-safe: no useStrings); locale-aware callers pass
|
|
11
|
+
* their own string.
|
|
12
|
+
*/
|
|
13
|
+
removeLabel?: string;
|
|
8
14
|
children: ReactNode;
|
|
9
15
|
};
|
|
10
|
-
|
|
11
|
-
|
|
16
|
+
/**
|
|
17
|
+
* MUI-OverridableComponent-shaped polymorphism (Button's pattern): own
|
|
18
|
+
* props first, then the target element's props minus the colliding keys.
|
|
19
|
+
* The skin, `data-slot` and the remove button always land on/inside the
|
|
20
|
+
* rendered element — the same "wiring wins" precedence as Button's `as`.
|
|
21
|
+
* `ref` (and every native attribute) flows through to the rendered root.
|
|
22
|
+
*/
|
|
23
|
+
type TagProps<T extends ElementType = 'span'> = TagOwnProps & {
|
|
24
|
+
/**
|
|
25
|
+
* Render element. `'span'` (default) keeps the static tag; `'a'`
|
|
26
|
+
* renders a clickable tag link — `href`, `target`, `rel` and the
|
|
27
|
+
* rest of the anchor surface flow through, and the link shape resets
|
|
28
|
+
* the UA underline so the tag looks identical to the `span` form.
|
|
29
|
+
* Any component that forwards props to a DOM element works the same
|
|
30
|
+
* way (e.g. a router Link).
|
|
31
|
+
*
|
|
32
|
+
* Don't combine an interactive `as` with `closable`: the remove
|
|
33
|
+
* button would nest inside a link — invalid HTML and an SR/keyboard
|
|
34
|
+
* trap.
|
|
35
|
+
*/
|
|
36
|
+
as?: T;
|
|
37
|
+
} & Omit<ComponentPropsWithRef<T>, keyof TagOwnProps | 'as'>;
|
|
38
|
+
export default function Tag<T extends ElementType = 'span'>({ color, size, closable, onClose, removeLabel, as, className, children, ...rest }: TagProps<T>): import("react").JSX.Element;
|
|
39
|
+
export type { TagOwnProps, TagProps };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default as Tag } from './Tag';
|
|
2
|
-
export type { TagProps } from './Tag';
|
|
1
|
+
export { default as Tag } from './Tag.js';
|
|
2
|
+
export type { TagProps } from './Tag.js';
|
|
3
|
+
export { colors as tagVariants, tagSizes } from './tag-styles.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Tag skin — the base, color and size classes the `Tag`
|
|
3
|
+
* component wears. Living in their own module keeps the component file
|
|
4
|
+
* free of style internals (react-refresh boundary) and lets the
|
|
5
|
+
* colors/sizes maps ship as public constants (`tagVariants` /
|
|
6
|
+
* `tagSizes`, the shadcn `buttonVariants` precedent) for consumers
|
|
7
|
+
* composing custom elements with the same skin; split-css groups the
|
|
8
|
+
* emitted CSS into `haze-ui/css/tag.css` with them.
|
|
9
|
+
*/
|
|
10
|
+
export declare const base: import("@linaria/core").LinariaClassName;
|
|
11
|
+
export declare const colors: {
|
|
12
|
+
readonly default: import("@linaria/core").LinariaClassName;
|
|
13
|
+
readonly primary: import("@linaria/core").LinariaClassName;
|
|
14
|
+
readonly success: import("@linaria/core").LinariaClassName;
|
|
15
|
+
readonly warning: import("@linaria/core").LinariaClassName;
|
|
16
|
+
readonly danger: import("@linaria/core").LinariaClassName;
|
|
17
|
+
readonly info: import("@linaria/core").LinariaClassName;
|
|
18
|
+
};
|
|
19
|
+
export declare const tagSizes: {
|
|
20
|
+
readonly sm: import("@linaria/core").LinariaClassName;
|
|
21
|
+
readonly md: import("@linaria/core").LinariaClassName;
|
|
22
|
+
};
|
|
23
|
+
/** The link shape (`as` set): anchors get a UA underline the tag skin
|
|
24
|
+
* never asked for — reset it (the color classes already own the ink;
|
|
25
|
+
* Button's `link` class does the same for its anchor shape). Applies to
|
|
26
|
+
* every explicit `as`, including router Links that render anchors. */
|
|
27
|
+
export declare const linkShape: import("@linaria/core").LinariaClassName;
|
|
28
|
+
export declare const closeBtn: import("@linaria/core").LinariaClassName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { type TagGroupClassNames } from './TagGroup';
|
|
2
|
+
import { type TagGroupClassNames } from './TagGroup.js';
|
|
3
3
|
/**
|
|
4
4
|
* Drag-and-drop reorderable variant of TagGroup — built on @dnd-kit
|
|
5
5
|
* (a haze-ui dependency), so this module statically imports the dnd
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { default as TagGroup } from './TagGroup';
|
|
2
|
-
export { default as TagGroupItem } from './TagGroupItem';
|
|
3
|
-
export { default as SortableTagGroup } from './SortableTagGroup';
|
|
4
|
-
export type { TagGroupClassNames, TagGroupProps } from './TagGroup';
|
|
5
|
-
export type { TagGroupItemProps } from './TagGroupItem';
|
|
6
|
-
export type { SortableTagGroupProps } from './SortableTagGroup';
|
|
1
|
+
export { default as TagGroup } from './TagGroup.js';
|
|
2
|
+
export { default as TagGroupItem } from './TagGroupItem.js';
|
|
3
|
+
export { default as SortableTagGroup } from './SortableTagGroup.js';
|
|
4
|
+
export type { TagGroupClassNames, TagGroupProps } from './TagGroup.js';
|
|
5
|
+
export type { TagGroupItemProps } from './TagGroupItem.js';
|
|
6
|
+
export type { SortableTagGroupProps } from './SortableTagGroup.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TagInputCoreProps } from './TagInputCore';
|
|
1
|
+
import type { TagInputCoreProps } from './TagInputCore.js';
|
|
2
2
|
/**
|
|
3
3
|
* Props for `SortableTagInputCore` — the full `TagInputCoreProps` field
|
|
4
4
|
* set (value/onChange/placeholder/maxTags/disabled/className/id/aria/ref)
|
|
@@ -7,6 +7,15 @@ type TagInputProps = {
|
|
|
7
7
|
maxTags?: number;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Form field name: renders one hidden input per tag under the same
|
|
12
|
+
* name (native repeated-field semantics) so `<form action={fn}>` /
|
|
13
|
+
* `new FormData(form).getAll(name)` receive every tag — the inner
|
|
14
|
+
* text input never carries it (partial drafts would leak). An empty
|
|
15
|
+
* list submits nothing. react-f0rm `FormItem` usage never passes it,
|
|
16
|
+
* so both worlds coexist.
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
10
19
|
/**
|
|
11
20
|
* 字段 id(FormItem 桥生成):必须挂到内部可聚焦的 input 上而非根
|
|
12
21
|
* div,<label htmlFor> 与错误 span 的 aria 链路才能接到焦点元素——
|
|
@@ -21,5 +30,5 @@ type TagInputProps = {
|
|
|
21
30
|
* element form bridges and `ref.current.focus()` reach. */
|
|
22
31
|
ref?: Ref<HTMLInputElement>;
|
|
23
32
|
};
|
|
24
|
-
export default function TagInput({ value: valueControl, onChange, placeholder, maxTags, disabled, className, id, 'aria-invalid': ariaInvalid, 'aria-describedby': ariaDescribedby, ref, }: TagInputProps): import("react").JSX.Element;
|
|
33
|
+
export default function TagInput({ value: valueControl, onChange, placeholder, maxTags, disabled, className, name, id, 'aria-invalid': ariaInvalid, 'aria-describedby': ariaDescribedby, ref, }: TagInputProps): import("react").JSX.Element;
|
|
25
34
|
export type { TagInputProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { default as TagInput } from './TagInput';
|
|
2
|
-
export type { TagInputProps } from './TagInput';
|
|
3
|
-
export { default as TagInputCore } from './TagInputCore';
|
|
4
|
-
export type { TagInputCoreProps } from './TagInputCore';
|
|
5
|
-
export { default as SortableTagInput } from './SortableTagInput';
|
|
6
|
-
export type { SortableTagInputProps } from './SortableTagInput';
|
|
7
|
-
export { default as SortableTagInputCore } from './SortableTagInputCore';
|
|
8
|
-
export type { SortableTagInputCoreProps } from './SortableTagInputCore';
|
|
1
|
+
export { default as TagInput } from './TagInput.js';
|
|
2
|
+
export type { TagInputProps } from './TagInput.js';
|
|
3
|
+
export { default as TagInputCore } from './TagInputCore.js';
|
|
4
|
+
export type { TagInputCoreProps } from './TagInputCore.js';
|
|
5
|
+
export { default as SortableTagInput } from './SortableTagInput.js';
|
|
6
|
+
export type { SortableTagInputProps } from './SortableTagInput.js';
|
|
7
|
+
export { default as SortableTagInputCore } from './SortableTagInputCore.js';
|
|
8
|
+
export type { SortableTagInputCoreProps } from './SortableTagInputCore.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Textarea } from './Textarea';
|
|
2
|
-
export type { TextareaProps } from './Textarea';
|
|
3
|
-
export { default as TextareaCore } from './TextareaCore';
|
|
4
|
-
export type { TextareaCoreProps } from './TextareaCore';
|
|
1
|
+
export { default as Textarea } from './Textarea.js';
|
|
2
|
+
export type { TextareaProps } from './Textarea.js';
|
|
3
|
+
export { default as TextareaCore } from './TextareaCore.js';
|
|
4
|
+
export type { TextareaCoreProps } from './TextareaCore.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Textarea size skin — the per-size padding/typography classes
|
|
3
|
+
* the `TextareaCore` component wears (the `Textarea` sugar delegates to
|
|
4
|
+
* it). Sibling styles module per the react-refresh boundary convention
|
|
5
|
+
* (Input `input-styles` / NumberInput `number-input-styles` precedent);
|
|
6
|
+
* split-css groups the module with the Textarea family's css.
|
|
7
|
+
*/
|
|
8
|
+
export declare const sizes: {
|
|
9
|
+
readonly sm: import("@linaria/core").LinariaClassName;
|
|
10
|
+
readonly md: import("@linaria/core").LinariaClassName;
|
|
11
|
+
readonly lg: import("@linaria/core").LinariaClassName;
|
|
12
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as ThinkingIndicator } from './ThinkingIndicator';
|
|
2
|
-
export type { ThinkingIndicatorProps } from './ThinkingIndicator';
|
|
1
|
+
export { default as ThinkingIndicator } from './ThinkingIndicator.js';
|
|
2
|
+
export type { ThinkingIndicatorProps } from './ThinkingIndicator.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
import type { ControlOrValue } from 'react-use-control';
|
|
3
|
+
import type { TimePickerFormat } from '../TimePicker/time.js';
|
|
4
|
+
import type { TimeLabels, TimePlaceholder } from './TimeFieldCore.js';
|
|
5
|
+
type TimeFieldProps = {
|
|
6
|
+
/** `"HH:mm"` / `"HH:mm:ss"` matching `format` (TimePicker's value
|
|
7
|
+
* semantics) or `''` when empty; commits fire only when every
|
|
8
|
+
* segment holds a value. */
|
|
9
|
+
value?: ControlOrValue<string>;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
/** Column granularity and the value's serialization shape; defaults
|
|
12
|
+
* to `'HH:mm'` (no second segment), matching TimePicker. */
|
|
13
|
+
format?: TimePickerFormat;
|
|
14
|
+
/** 12-hour presentation with an AM/PM segment; the value stays
|
|
15
|
+
* 24-hour either way (10 PM serializes as `22:00`). */
|
|
16
|
+
use12Hours?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
placeholder?: TimePlaceholder;
|
|
19
|
+
labels?: TimeLabels;
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Forwarded to the current tab-stop segment span — the element form
|
|
22
|
+
* bridges and `ref.current.focus()` reach. */
|
|
23
|
+
ref?: Ref<HTMLSpanElement>;
|
|
24
|
+
} & Omit<ComponentPropsWithoutRef<'div'>, 'onChange'>;
|
|
25
|
+
export default function TimeField({ value: valueControl, onChange, format, use12Hours, disabled, placeholder, labels, className, ref, ...rest }: TimeFieldProps): import("react").JSX.Element;
|
|
26
|
+
export type { TimeFieldProps };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
import type { TimePickerFormat } from '../TimePicker/time.js';
|
|
3
|
+
/** Per-segment placeholder strings for the empty state. */
|
|
4
|
+
type TimePlaceholder = {
|
|
5
|
+
hour?: string;
|
|
6
|
+
minute?: string;
|
|
7
|
+
second?: string;
|
|
8
|
+
dayPeriod?: string;
|
|
9
|
+
};
|
|
10
|
+
/** Accessible segment names, overriding the built-in English ones. */
|
|
11
|
+
type TimeLabels = {
|
|
12
|
+
hour?: string;
|
|
13
|
+
minute?: string;
|
|
14
|
+
second?: string;
|
|
15
|
+
dayPeriod?: string;
|
|
16
|
+
};
|
|
17
|
+
type TimeFieldCoreProps = {
|
|
18
|
+
/** `"HH:mm"` / `"HH:mm:ss"` matching `format` (TimePicker's value
|
|
19
|
+
* semantics), or `''` when empty. */
|
|
20
|
+
value: string;
|
|
21
|
+
onChange: (value: string) => void;
|
|
22
|
+
/** Column granularity and the value's serialization shape; defaults
|
|
23
|
+
* to `'HH:mm'` (no second segment), matching TimePicker. */
|
|
24
|
+
format?: TimePickerFormat;
|
|
25
|
+
/** 12-hour presentation with an AM/PM segment; the value stays
|
|
26
|
+
* 24-hour either way (10 PM serializes as `22:00`). */
|
|
27
|
+
use12Hours?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
placeholder?: TimePlaceholder;
|
|
30
|
+
labels?: TimeLabels;
|
|
31
|
+
className?: string;
|
|
32
|
+
/** Forwarded to the current tab-stop segment span. */
|
|
33
|
+
ref?: Ref<HTMLSpanElement>;
|
|
34
|
+
} & Omit<ComponentPropsWithoutRef<'div'>, 'onChange'>;
|
|
35
|
+
export default function TimeFieldCore({ value, onChange, format, use12Hours, disabled, placeholder, labels, className, ref, ...rest }: TimeFieldCoreProps): import("react").JSX.Element;
|
|
36
|
+
export type { TimeFieldCoreProps, TimePlaceholder, TimeLabels };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
+
import type { ControlOrValue } from 'react-use-control';
|
|
3
|
+
/**
|
|
4
|
+
* TimeGrid — a single-select grid of `'HH:mm'` time slots generated
|
|
5
|
+
* from a `from`..`to` window and a minute `step` (Mantine 8 TimeGrid
|
|
6
|
+
* precedent). The selection is controllable state
|
|
7
|
+
* (`ControlOrValue<string>` via useControl): pass a plain string for
|
|
8
|
+
* uncontrolled usage, a control or `value` + `onChange` for the
|
|
9
|
+
* controlled flow — `''` is the no-selection sentinel.
|
|
10
|
+
*
|
|
11
|
+
* Accessibility: an ARIA radio group — the root carries
|
|
12
|
+
* `role="radiogroup"` (name it with `aria-label`), every slot is a
|
|
13
|
+
* native `<button role="radio">` with `aria-checked`. Keyboard follows
|
|
14
|
+
* the roving-tabindex radio/grid hybrid: the selected slot (else the
|
|
15
|
+
* first enabled one) is the group's single tab stop; arrows move by
|
|
16
|
+
* slot (left/right) or by row (`columns`, up/down), Home/End jump the
|
|
17
|
+
* edges, and every move both focuses and selects — the radio pattern's
|
|
18
|
+
* arrow-checks semantics. Disabled slots are skipped and unreachable.
|
|
19
|
+
*
|
|
20
|
+
* Form participation mirrors Segmented: a `name` renders a hidden
|
|
21
|
+
* input bridge so `new FormData(form)` / server actions receive the
|
|
22
|
+
* selected `'HH:mm'`; `''` submits nothing.
|
|
23
|
+
*/
|
|
24
|
+
type TimeGridClassNames = {
|
|
25
|
+
/** The radiogroup root (`data-slot='time-grid'`). */
|
|
26
|
+
root?: string;
|
|
27
|
+
/** Every slot button (`data-slot='cell'`). */
|
|
28
|
+
cell?: string;
|
|
29
|
+
};
|
|
30
|
+
type TimeGridProps = {
|
|
31
|
+
/** Selected `'HH:mm'` slot — `ControlOrValue<string>`, `''` = none. */
|
|
32
|
+
value?: ControlOrValue<string>;
|
|
33
|
+
onChange?: (value: string) => void;
|
|
34
|
+
/** Window start, `'HH:mm'`; default '00:00'. */
|
|
35
|
+
from?: string;
|
|
36
|
+
/** Window end, `'HH:mm'`, inclusive when step-aligned; default '23:00'. */
|
|
37
|
+
to?: string;
|
|
38
|
+
/** Slot cadence in minutes; default 60. */
|
|
39
|
+
step?: number;
|
|
40
|
+
/** Slots rendered unselectable (skipped by the keyboard rover too). */
|
|
41
|
+
disabledValues?: readonly string[];
|
|
42
|
+
/** Slots per row in the grid; default 4. */
|
|
43
|
+
columns?: number;
|
|
44
|
+
/** Display text per slot (defaults to the `'HH:mm'` value). */
|
|
45
|
+
formatLabel?: (value: string) => string;
|
|
46
|
+
/**
|
|
47
|
+
* Form field name: renders a hidden input bridge next to the group
|
|
48
|
+
* so `<form action={fn}>` / `new FormData(form)` receive the selected
|
|
49
|
+
* slot. The `''` no-selection sentinel submits nothing.
|
|
50
|
+
*/
|
|
51
|
+
name?: string;
|
|
52
|
+
classNames?: TimeGridClassNames;
|
|
53
|
+
className?: string;
|
|
54
|
+
/** Forwarded to the group's focus target — the selected slot's button (falling back to the first enabled one). */
|
|
55
|
+
ref?: Ref<HTMLButtonElement>;
|
|
56
|
+
} & Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onChange'>;
|
|
57
|
+
export default function TimeGrid({ value: valueControl, onChange, from, to, step, disabledValues, columns, formatLabel, name, classNames, className, style, ref, ...rest }: TimeGridProps): import("react").JSX.Element;
|
|
58
|
+
export type { TimeGridProps, TimeGridClassNames };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared TimeGrid skin — the slot-picker chrome (group grid and the
|
|
3
|
+
* per-slot button in its idle and selected states) the `TimeGrid`
|
|
4
|
+
* component wears. Living in its own module keeps the component file
|
|
5
|
+
* free of style internals (react-refresh boundary); split-css groups
|
|
6
|
+
* the emitted CSS into `haze-ui/css/time-grid.css`. The grid's column
|
|
7
|
+
* count is layout data (the `columns` prop) and rides the root as an
|
|
8
|
+
* inline `grid-template-columns`, not a class.
|
|
9
|
+
*/
|
|
10
|
+
export declare const timeGridBase: import("@linaria/core").LinariaClassName;
|
|
11
|
+
export declare const timeGridButton: import("@linaria/core").LinariaClassName;
|
|
12
|
+
/** The checked slot — must follow `timeGridButton` in the class list. */
|
|
13
|
+
export declare const timeGridButtonSelected: import("@linaria/core").LinariaClassName;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
2
|
import type { ControlOrValue } from 'react-use-control';
|
|
3
|
-
import type { TimeParts, TimePickerFormat } from './time';
|
|
3
|
+
import type { TimeParts, TimePickerFormat } from './time.js';
|
|
4
4
|
type TimePickerProps = {
|
|
5
5
|
value?: ControlOrValue<string>;
|
|
6
6
|
/** Panel visibility; defaults to the trigger's own toggle state. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef, Ref } from 'react';
|
|
2
|
-
import type { TimeParts, TimePickerFormat } from './time';
|
|
2
|
+
import type { TimeParts, TimePickerFormat } from './time.js';
|
|
3
3
|
/**
|
|
4
4
|
* One enabled/disabled decision for a candidate cell. The predicate is
|
|
5
5
|
* evaluated against the currently selected parts for the other fields
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as TimePicker } from './TimePicker';
|
|
2
|
-
export type { TimePickerProps } from './TimePicker';
|
|
3
|
-
export { default as TimePickerCore } from './TimePickerCore';
|
|
4
|
-
export type { TimePickerCoreProps } from './TimePickerCore';
|
|
5
|
-
export type { TimeParts, TimePickerFormat } from './time';
|
|
1
|
+
export { default as TimePicker } from './TimePicker.js';
|
|
2
|
+
export type { TimePickerProps } from './TimePicker.js';
|
|
3
|
+
export { default as TimePickerCore } from './TimePickerCore.js';
|
|
4
|
+
export type { TimePickerCoreProps } from './TimePickerCore.js';
|
|
5
|
+
export type { TimeParts, TimePickerFormat } from './time.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Timeline, TimelineItem } from './Timeline';
|
|
2
|
-
export type { TimelineProps, TimelineItemProps } from './Timeline';
|
|
1
|
+
export { Timeline, TimelineItem } from './Timeline.js';
|
|
2
|
+
export type { TimelineProps, TimelineItemProps } from './Timeline.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
import type { ToastAction } from './ToastContext';
|
|
2
|
+
import type { ToastAction } from './ToastContext.js';
|
|
3
3
|
/**
|
|
4
4
|
* Semantic slot classes (AntD v6 `classNames` shape) for the toast
|
|
5
5
|
* family. Toasts are usually fired imperatively (`useToast()` /
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ToastClassNames } from './Toast';
|
|
2
|
+
import type { ToastClassNames } from './Toast.js';
|
|
3
3
|
type ToastPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
4
4
|
type ToastContainerProps = {
|
|
5
5
|
children: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default as Toast } from './Toast';
|
|
2
|
-
export type { ToastProps, ToastClassNames } from './Toast';
|
|
3
|
-
export { default as ToastContainer } from './ToastContainer';
|
|
4
|
-
export type { ToastContainerProps } from './ToastContainer';
|
|
5
|
-
export { default as useToast } from './useToast';
|
|
6
|
-
export { toast } from './toast-channel';
|
|
7
|
-
export type { ToastAction, ToastOptions, ToastVariant } from './toast-channel';
|
|
1
|
+
export { default as Toast } from './Toast.js';
|
|
2
|
+
export type { ToastProps, ToastClassNames } from './Toast.js';
|
|
3
|
+
export { default as ToastContainer } from './ToastContainer.js';
|
|
4
|
+
export type { ToastContainerProps } from './ToastContainer.js';
|
|
5
|
+
export { default as useToast } from './useToast.js';
|
|
6
|
+
export { toast } from './toast-channel.js';
|
|
7
|
+
export type { ToastAction, ToastOptions, ToastVariant } from './toast-channel.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ToastAction, ToastDeferredCopyKey, ToastItem, ToastUpdateOptions, ToastVariant } from './ToastContext';
|
|
2
|
+
import type { ToastAction, ToastDeferredCopyKey, ToastItem, ToastUpdateOptions, ToastVariant } from './ToastContext.js';
|
|
3
3
|
/** Options accepted by `toast()` — the same call shape `useToast()` takes. */
|
|
4
4
|
type ToastOptions = {
|
|
5
5
|
variant?: ToastVariant;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ToastOptions, ToastPromiseOptions, ToastUpdateOptions, ToastVariantOptions } from './toast-channel';
|
|
2
|
+
import type { ToastOptions, ToastPromiseOptions, ToastUpdateOptions, ToastVariantOptions } from './toast-channel.js';
|
|
3
3
|
/**
|
|
4
4
|
* The `useToast()` return value: the toast trigger itself (returns the id,
|
|
5
5
|
* usable with `update`) plus `loading`/`update`/`promise` — one-to-one
|