haze-ui 1.12.1 → 1.13.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 +99 -31
- package/dist/components/Checkbox/Checkbox.js +13 -20
- package/dist/components/Checkbox/CheckboxCore.js +23 -0
- package/dist/components/ColorPicker/ColorPicker.js +13 -42
- package/dist/components/ColorPicker/ColorPickerCore.js +38 -0
- package/dist/components/Combobox/Combobox.js +45 -34
- package/dist/components/Command/Command.js +72 -37
- package/dist/components/ContextMenu/ContextMenu.js +19 -17
- package/dist/components/ContextMenu/ContextMenuContent.js +24 -12
- package/dist/components/ContextMenu/ContextMenuItem.js +2 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +17 -35
- package/dist/components/DateRangePicker/DateRangePickerCore.js +33 -0
- package/dist/components/Datepicker/Calendar.js +58 -44
- package/dist/components/Datepicker/Datepicker.js +15 -39
- package/dist/components/Datepicker/DatepickerCore.js +50 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +20 -20
- package/dist/components/DropdownMenu/DropdownMenuContent.js +38 -45
- package/dist/components/DropdownMenu/DropdownMenuTrigger.js +9 -7
- package/dist/components/InlineEdit/InlineEdit.js +1 -0
- package/dist/components/Input/Input.js +11 -22
- package/dist/components/Input/InputCore.js +26 -0
- package/dist/components/Menu/Menu.js +38 -26
- package/dist/components/Menu/MenuItem.js +1 -0
- package/dist/components/ModelPicker/ModelPicker.js +1 -0
- package/dist/components/NumberInput/NumberInput.js +16 -53
- package/dist/components/NumberInput/NumberInputCore.js +56 -0
- package/dist/components/OTPInput/OTPInput.js +11 -45
- package/dist/components/OTPInput/OTPInputCore.js +44 -0
- package/dist/components/PasswordInput/PasswordInput.js +14 -29
- package/dist/components/PasswordInput/PasswordInputCore.js +31 -0
- package/dist/components/Popover/Popover.js +32 -75
- package/dist/components/Progress/Progress.js +2 -0
- package/dist/components/Radio/RadioGroup.js +12 -21
- package/dist/components/Radio/RadioGroupCore.js +24 -0
- package/dist/components/Rating/Rating.js +14 -46
- package/dist/components/Rating/RatingCore.js +48 -0
- package/dist/components/Segmented/Segmented.js +12 -37
- package/dist/components/Segmented/SegmentedCore.js +39 -0
- package/dist/components/Select/Select.js +12 -23
- package/dist/components/Select/SelectCore.js +27 -0
- package/dist/components/Slider/Slider.js +10 -15
- package/dist/components/Slider/SliderCore.js +19 -0
- package/dist/components/Switch/Switch.js +11 -38
- package/dist/components/Switch/SwitchCore.js +42 -0
- package/dist/components/TagInput/TagInput.js +18 -72
- package/dist/components/TagInput/TagInputCore.js +68 -0
- package/dist/components/Textarea/Textarea.js +11 -22
- package/dist/components/Textarea/TextareaCore.js +26 -0
- package/dist/components/TimePicker/TimePicker.js +10 -15
- package/dist/components/TimePicker/TimePickerCore.js +18 -0
- package/dist/components/Tooltip/Tooltip.js +50 -24
- package/dist/components/Tree/TreeItem.js +44 -41
- package/dist/components/Upload/Upload.js +1 -0
- package/dist/css/checkbox.css +1 -1
- package/dist/css/color-picker.css +1 -1
- package/dist/css/combobox.css +2 -1
- package/dist/css/command.css +1 -1
- package/dist/css/context-menu.css +1 -0
- package/dist/css/date-range-picker.css +1 -1
- package/dist/css/datepicker.css +3 -2
- package/dist/css/dropdown-menu.css +2 -1
- package/dist/css/input.css +1 -1
- package/dist/css/menu.css +2 -1
- package/dist/css/number-input.css +1 -1
- package/dist/css/otp-input.css +1 -1
- package/dist/css/password-input.css +1 -1
- package/dist/css/popover.css +2 -1
- package/dist/css/radio.css +1 -1
- package/dist/css/rating.css +1 -1
- package/dist/css/segmented.css +1 -1
- package/dist/css/select.css +1 -1
- package/dist/css/slider.css +1 -1
- package/dist/css/switch.css +1 -1
- package/dist/css/tag-input.css +1 -1
- package/dist/css/textarea.css +1 -1
- package/dist/css/time-picker.css +1 -1
- package/dist/css/tooltip.css +2 -1
- package/dist/form/FormItem.js +41 -33
- package/dist/haze-ui.css +31 -24
- package/dist/index.js +138 -122
- package/dist/types/components/Checkbox/CheckboxCore.d.ts +12 -0
- package/dist/types/components/Checkbox/index.d.ts +2 -0
- package/dist/types/components/ColorPicker/ColorPickerCore.d.ts +8 -0
- package/dist/types/components/ColorPicker/index.d.ts +2 -0
- package/dist/types/components/ContextMenu/ContextMenuContent.d.ts +1 -1
- package/dist/types/components/ContextMenu/ContextMenuContext.d.ts +5 -1
- package/dist/types/components/DateRangePicker/DateRangePickerCore.d.ts +11 -0
- package/dist/types/components/DateRangePicker/index.d.ts +2 -0
- package/dist/types/components/Datepicker/DatepickerCore.d.ts +12 -0
- package/dist/types/components/Datepicker/index.d.ts +2 -0
- package/dist/types/components/DropdownMenu/DropdownMenuContent.d.ts +1 -1
- package/dist/types/components/DropdownMenu/DropdownMenuContext.d.ts +3 -0
- package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/dist/types/components/Input/InputCore.d.ts +13 -0
- package/dist/types/components/Input/index.d.ts +2 -0
- package/dist/types/components/NumberInput/NumberInputCore.d.ts +15 -0
- package/dist/types/components/NumberInput/index.d.ts +2 -0
- package/dist/types/components/OTPInput/OTPInputCore.d.ts +8 -0
- package/dist/types/components/OTPInput/index.d.ts +2 -0
- package/dist/types/components/PasswordInput/PasswordInputCore.d.ts +9 -0
- package/dist/types/components/PasswordInput/index.d.ts +2 -0
- package/dist/types/components/Radio/RadioContext.d.ts +1 -2
- package/dist/types/components/Radio/RadioGroupCore.d.ts +10 -0
- package/dist/types/components/Radio/index.d.ts +2 -0
- package/dist/types/components/Rating/RatingCore.d.ts +9 -0
- package/dist/types/components/Rating/index.d.ts +2 -0
- package/dist/types/components/Segmented/Segmented.d.ts +1 -6
- package/dist/types/components/Segmented/SegmentedCore.d.ts +15 -0
- package/dist/types/components/Segmented/index.d.ts +2 -0
- package/dist/types/components/Select/SelectCore.d.ts +13 -0
- package/dist/types/components/Select/index.d.ts +2 -0
- package/dist/types/components/Slider/SliderCore.d.ts +11 -0
- package/dist/types/components/Slider/index.d.ts +2 -0
- package/dist/types/components/Switch/Switch.d.ts +1 -1
- package/dist/types/components/Switch/SwitchCore.d.ts +12 -0
- package/dist/types/components/Switch/index.d.ts +2 -0
- package/dist/types/components/TagInput/TagInputCore.d.ts +20 -0
- package/dist/types/components/TagInput/index.d.ts +2 -0
- package/dist/types/components/Textarea/TextareaCore.d.ts +12 -0
- package/dist/types/components/Textarea/index.d.ts +2 -0
- package/dist/types/components/TimePicker/TimePickerCore.d.ts +9 -0
- package/dist/types/components/TimePicker/index.d.ts +2 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +5 -1
- package/dist/types/form/FormItem.d.ts +86 -19
- package/dist/types/form/index.d.ts +2 -3
- package/dist/types/index.d.ts +36 -36
- package/dist/types/utils/floating.d.ts +99 -0
- package/dist/types/utils/menuKeyboard.d.ts +43 -0
- package/dist/utils/floating.js +181 -0
- package/dist/utils/menuKeyboard.js +88 -0
- package/package.json +45 -19
- package/dist/components/DropdownMenu/useMenuKeyboard.js +0 -52
- package/dist/form/useFormControl.js +0 -54
- package/dist/types/components/DropdownMenu/useMenuKeyboard.d.ts +0 -19
- package/dist/types/form/useFormControl.d.ts +0 -35
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/utils/index.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -3,125 +3,141 @@ import { spacing as n } from "./tokens/spacing.js";
|
|
|
3
3
|
import { typography as r } from "./tokens/typography.js";
|
|
4
4
|
import { COMPONENT_TOKENS as i, TOKEN_REGISTRY as a } from "./tokens/registry.js";
|
|
5
5
|
import o from "./components/Button/Button.js";
|
|
6
|
-
import s from "./components/Input/
|
|
7
|
-
import c from "./components/
|
|
8
|
-
import l from "./components/Select/
|
|
9
|
-
import u from "./components/
|
|
10
|
-
import d from "./components/
|
|
11
|
-
import f from "./components/
|
|
12
|
-
import p from "./components/
|
|
13
|
-
import m from "./components/
|
|
14
|
-
import h from "./components/
|
|
15
|
-
import g from "./components/
|
|
16
|
-
import _ from "./components/
|
|
17
|
-
import v from "./components/
|
|
18
|
-
import y from "./components/
|
|
19
|
-
import b from "./components/
|
|
20
|
-
import x from "./components/
|
|
21
|
-
import S from "./components/
|
|
22
|
-
import C from "./components/
|
|
23
|
-
import w from "./components/
|
|
24
|
-
import T from "./components/
|
|
25
|
-
import E from "./components/
|
|
26
|
-
import D from "./components/
|
|
27
|
-
import O from "./components/
|
|
28
|
-
import k from "./components/
|
|
29
|
-
import A from "./components/
|
|
30
|
-
import j from "./components/
|
|
31
|
-
import M from "./components/
|
|
32
|
-
import N from "./components/
|
|
33
|
-
import P from "./components/
|
|
34
|
-
import F from "./components/
|
|
35
|
-
import I from "./components/
|
|
36
|
-
import L from "./components/
|
|
37
|
-
import R from "./components/
|
|
38
|
-
import z from "./components/
|
|
39
|
-
import B from "./components/
|
|
40
|
-
import V from "./components/
|
|
41
|
-
import H from "./components/
|
|
42
|
-
import U from "./components/
|
|
43
|
-
import W from "./components/
|
|
44
|
-
import G from "./components/
|
|
45
|
-
import K from "./components/
|
|
46
|
-
import q from "./components/
|
|
47
|
-
import J from "./components/
|
|
48
|
-
import Y from "./components/
|
|
49
|
-
import X from "./components/
|
|
50
|
-
import Z from "./components/
|
|
51
|
-
import Q from "./components/
|
|
52
|
-
import $ from "./components/
|
|
53
|
-
import ee from "./components/
|
|
54
|
-
import te from "./components/
|
|
55
|
-
import ne from "./components/
|
|
56
|
-
import re from "./components/
|
|
57
|
-
import ie from "./components/
|
|
58
|
-
import ae from "./components/
|
|
59
|
-
import oe from "./components/
|
|
60
|
-
import se from "./components/
|
|
61
|
-
import ce from "./components/
|
|
62
|
-
import le from "./components/
|
|
63
|
-
import ue from "./components/
|
|
64
|
-
import de from "./components/
|
|
65
|
-
import fe from "./components/
|
|
66
|
-
import pe
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import {
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import We from "./components/
|
|
87
|
-
import Ge from "./components/
|
|
88
|
-
import Ke from "./components/
|
|
89
|
-
import qe from "./components/
|
|
90
|
-
import Je from "./components/
|
|
91
|
-
import Ye from "./components/
|
|
92
|
-
import Xe from "./components/
|
|
93
|
-
import Ze from "./components/
|
|
94
|
-
import Qe from "./components/
|
|
95
|
-
import $e from "./components/
|
|
96
|
-
import et from "./components/
|
|
97
|
-
import tt from "./components/
|
|
98
|
-
import nt from "./components/
|
|
99
|
-
import rt from "./components/
|
|
100
|
-
import it from "./components/
|
|
101
|
-
import at from "./components/
|
|
102
|
-
import ot from "./components/
|
|
103
|
-
import st from "./components/
|
|
104
|
-
import ct from "./components/
|
|
105
|
-
import lt from "./components/
|
|
106
|
-
import ut from "./components/
|
|
107
|
-
import dt from "./components/
|
|
108
|
-
import ft from "./components/
|
|
109
|
-
import pt from "./components/
|
|
110
|
-
import mt from "./components/
|
|
111
|
-
import ht from "./components/
|
|
112
|
-
import gt from "./components/
|
|
113
|
-
import _t from "./components/
|
|
114
|
-
import vt from "./components/
|
|
115
|
-
import yt from "./components/
|
|
116
|
-
import bt
|
|
117
|
-
import
|
|
118
|
-
import
|
|
119
|
-
import
|
|
120
|
-
import
|
|
121
|
-
import
|
|
122
|
-
import
|
|
123
|
-
import
|
|
124
|
-
import
|
|
125
|
-
import
|
|
126
|
-
import
|
|
127
|
-
|
|
6
|
+
import s from "./components/Input/InputCore.js";
|
|
7
|
+
import c from "./components/Input/Input.js";
|
|
8
|
+
import l from "./components/Select/SelectCore.js";
|
|
9
|
+
import u from "./components/Select/Select.js";
|
|
10
|
+
import d from "./components/Select/Option.js";
|
|
11
|
+
import f from "./components/Checkbox/CheckboxCore.js";
|
|
12
|
+
import p from "./components/Checkbox/Checkbox.js";
|
|
13
|
+
import m from "./components/Switch/SwitchCore.js";
|
|
14
|
+
import h from "./components/Switch/Switch.js";
|
|
15
|
+
import g from "./components/Badge/Badge.js";
|
|
16
|
+
import _ from "./components/Dialog/Dialog.js";
|
|
17
|
+
import v from "./components/Tooltip/Tooltip.js";
|
|
18
|
+
import y from "./components/Popover/Popover.js";
|
|
19
|
+
import b from "./components/Card/Card.js";
|
|
20
|
+
import x from "./components/Radio/Radio.js";
|
|
21
|
+
import S from "./components/Radio/RadioGroupCore.js";
|
|
22
|
+
import C from "./components/Radio/RadioGroup.js";
|
|
23
|
+
import w from "./components/Textarea/TextareaCore.js";
|
|
24
|
+
import T from "./components/Textarea/Textarea.js";
|
|
25
|
+
import E from "./components/Slider/SliderCore.js";
|
|
26
|
+
import D from "./components/Slider/Slider.js";
|
|
27
|
+
import O from "./components/Tabs/Tabs.js";
|
|
28
|
+
import k from "./components/Tabs/TabList.js";
|
|
29
|
+
import A from "./components/Tabs/Tab.js";
|
|
30
|
+
import j from "./components/Tabs/TabPanel.js";
|
|
31
|
+
import M from "./components/Accordion/Accordion.js";
|
|
32
|
+
import N from "./components/Accordion/AccordionItem.js";
|
|
33
|
+
import P from "./components/Alert/Alert.js";
|
|
34
|
+
import F from "./components/Avatar/Avatar.js";
|
|
35
|
+
import I from "./components/Tag/Tag.js";
|
|
36
|
+
import L from "./components/Skeleton/Skeleton.js";
|
|
37
|
+
import R from "./components/Icon/Icon.js";
|
|
38
|
+
import z from "./components/Image/Image.js";
|
|
39
|
+
import B from "./components/Flex/Flex.js";
|
|
40
|
+
import V from "./components/Breadcrumb/Breadcrumb.js";
|
|
41
|
+
import H from "./components/Breadcrumb/BreadcrumbItem.js";
|
|
42
|
+
import U from "./components/Disclosure/Disclosure.js";
|
|
43
|
+
import W from "./components/Menu/Menu.js";
|
|
44
|
+
import G from "./components/Menu/MenuItem.js";
|
|
45
|
+
import K from "./components/Menu/MenuDivider.js";
|
|
46
|
+
import q from "./components/NumberInput/NumberInputCore.js";
|
|
47
|
+
import J from "./components/NumberInput/NumberInput.js";
|
|
48
|
+
import Y from "./components/FileInput/FileInput.js";
|
|
49
|
+
import X from "./components/Toast/Toast.js";
|
|
50
|
+
import Z from "./components/Toast/ToastContainer.js";
|
|
51
|
+
import Q from "./components/Toast/useToast.js";
|
|
52
|
+
import $ from "./components/List/List.js";
|
|
53
|
+
import ee from "./components/List/ListItem.js";
|
|
54
|
+
import te from "./components/Combobox/Combobox.js";
|
|
55
|
+
import ne from "./components/Table/Table.js";
|
|
56
|
+
import re from "./components/Table/TableHead.js";
|
|
57
|
+
import ie from "./components/Table/TableBody.js";
|
|
58
|
+
import ae from "./components/Table/TableRow.js";
|
|
59
|
+
import oe from "./components/Table/TableCell.js";
|
|
60
|
+
import se from "./components/Carousel/Carousel.js";
|
|
61
|
+
import ce from "./components/Carousel/CarouselSlide.js";
|
|
62
|
+
import le from "./components/Datepicker/DatepickerCore.js";
|
|
63
|
+
import ue from "./components/Datepicker/Datepicker.js";
|
|
64
|
+
import de from "./components/Tree/Tree.js";
|
|
65
|
+
import fe from "./components/Divider/Divider.js";
|
|
66
|
+
import pe from "./components/Spinner/Spinner.js";
|
|
67
|
+
import me from "./components/Empty/Empty.js";
|
|
68
|
+
import he from "./components/Progress/Progress.js";
|
|
69
|
+
import ge from "./components/Pagination/Pagination.js";
|
|
70
|
+
import _e from "./components/Grid/Grid.js";
|
|
71
|
+
import ve from "./components/Grid/GridItem.js";
|
|
72
|
+
import ye from "./components/Drawer/Drawer.js";
|
|
73
|
+
import be from "./components/Stepper/Stepper.js";
|
|
74
|
+
import xe from "./components/Stepper/Step.js";
|
|
75
|
+
import Se, { CommandInput as Ce, CommandItem as we, CommandList as Te } from "./components/Command/Command.js";
|
|
76
|
+
import { ResizableGroup as Ee, ResizableHandle as De, ResizablePanel as Oe } from "./components/Resizable/Resizable.js";
|
|
77
|
+
import { Collapsible as ke, CollapsibleContent as Ae, CollapsibleTrigger as je } from "./components/Collapsible/Collapsible.js";
|
|
78
|
+
import Me from "./components/Transfer/Transfer.js";
|
|
79
|
+
import Ne from "./components/Upload/Upload.js";
|
|
80
|
+
import Pe from "./components/ColorPicker/ColorPickerCore.js";
|
|
81
|
+
import Fe from "./components/ColorPicker/ColorPicker.js";
|
|
82
|
+
import Ie from "./components/Rating/RatingCore.js";
|
|
83
|
+
import Le from "./components/Rating/Rating.js";
|
|
84
|
+
import { Timeline as Re, TimelineItem as ze } from "./components/Timeline/Timeline.js";
|
|
85
|
+
import { Paragraph as Be, Text as Ve, Title as He } from "./components/Typography/Typography.js";
|
|
86
|
+
import { Stat as Ue, StatGroup as We } from "./components/Stat/Stat.js";
|
|
87
|
+
import Ge from "./components/Segmented/SegmentedCore.js";
|
|
88
|
+
import Ke from "./components/Segmented/Segmented.js";
|
|
89
|
+
import qe from "./components/Chip/Chip.js";
|
|
90
|
+
import Je from "./components/ScrollArea/ScrollArea.js";
|
|
91
|
+
import Ye from "./components/TimePicker/TimePickerCore.js";
|
|
92
|
+
import Xe from "./components/TimePicker/TimePicker.js";
|
|
93
|
+
import Ze from "./components/DateRangePicker/DateRangePickerCore.js";
|
|
94
|
+
import Qe from "./components/DateRangePicker/DateRangePicker.js";
|
|
95
|
+
import $e from "./components/OTPInput/OTPInputCore.js";
|
|
96
|
+
import et from "./components/OTPInput/OTPInput.js";
|
|
97
|
+
import tt from "./components/PasswordInput/PasswordInputCore.js";
|
|
98
|
+
import nt from "./components/PasswordInput/PasswordInput.js";
|
|
99
|
+
import rt from "./components/TagInput/TagInputCore.js";
|
|
100
|
+
import it from "./components/TagInput/TagInput.js";
|
|
101
|
+
import at from "./components/InlineEdit/InlineEdit.js";
|
|
102
|
+
import ot from "./components/DropdownMenu/DropdownMenu.js";
|
|
103
|
+
import st from "./components/DropdownMenu/DropdownMenuTrigger.js";
|
|
104
|
+
import ct from "./components/DropdownMenu/DropdownMenuContent.js";
|
|
105
|
+
import lt from "./components/DropdownMenu/DropdownMenuItem.js";
|
|
106
|
+
import ut from "./components/DropdownMenu/DropdownMenuSeparator.js";
|
|
107
|
+
import dt from "./components/ContextMenu/ContextMenu.js";
|
|
108
|
+
import ft from "./components/ContextMenu/ContextMenuTrigger.js";
|
|
109
|
+
import pt from "./components/ContextMenu/ContextMenuContent.js";
|
|
110
|
+
import mt from "./components/ContextMenu/ContextMenuItem.js";
|
|
111
|
+
import ht from "./components/ContextMenu/ContextMenuSeparator.js";
|
|
112
|
+
import gt from "./components/NavigationBar/NavigationBar.js";
|
|
113
|
+
import _t from "./components/NavigationBar/NavLink.js";
|
|
114
|
+
import vt from "./components/BackToTop/BackToTop.js";
|
|
115
|
+
import yt from "./components/Affix/Affix.js";
|
|
116
|
+
import bt from "./components/Container/Container.js";
|
|
117
|
+
import xt from "./components/Banner/Banner.js";
|
|
118
|
+
import St from "./components/ConfirmDialog/ConfirmDialog.js";
|
|
119
|
+
import Ct from "./components/CodeBlock/CodeBlock.js";
|
|
120
|
+
import wt from "./components/AspectRatio/AspectRatio.js";
|
|
121
|
+
import Tt from "./components/VirtualList/VirtualList.js";
|
|
122
|
+
import Et from "./components/TagGroup/TagGroup.js";
|
|
123
|
+
import Dt from "./components/TagGroup/TagGroupItem.js";
|
|
124
|
+
import Ot from "./components/BottomSheet/BottomSheet.js";
|
|
125
|
+
import kt from "./components/SwipeAction/SwipeAction.js";
|
|
126
|
+
import At from "./components/ChatMessage/ChatMessage.js";
|
|
127
|
+
import jt from "./components/ChatContainer/ChatContainer.js";
|
|
128
|
+
import Mt from "./components/ChatInput/ChatInput.js";
|
|
129
|
+
import Nt from "./components/StreamingText/StreamingText.js";
|
|
130
|
+
import Pt from "./components/MarkdownRenderer/MarkdownRenderer.js";
|
|
131
|
+
import Ft from "./components/ToolCallCard/ToolCallCard.js";
|
|
132
|
+
import It from "./components/ThinkingIndicator/ThinkingIndicator.js";
|
|
133
|
+
import Lt, { StepTimelineItem as Rt } from "./components/StepTimeline/StepTimeline.js";
|
|
134
|
+
import zt from "./components/ApprovalCard/ApprovalCard.js";
|
|
135
|
+
import Bt from "./components/TokenCounter/TokenCounter.js";
|
|
136
|
+
import Vt from "./components/ModelPicker/ModelPicker.js";
|
|
137
|
+
import Ht from "./components/ConversationList/ConversationList.js";
|
|
138
|
+
import Ut from "./components/ConversationList/ConversationItem.js";
|
|
139
|
+
import Wt from "./components/DiffViewer/DiffViewer.js";
|
|
140
|
+
import Gt from "./components/LogViewer/LogViewer.js";
|
|
141
|
+
import Kt from "./form/FormItem.js";
|
|
142
|
+
import { useControl as qt } from "react-use-control";
|
|
143
|
+
export { M as Accordion, N as AccordionItem, yt as Affix, P as Alert, zt as ApprovalCard, wt as AspectRatio, F as Avatar, vt as BackToTop, g as Badge, xt as Banner, Ot as BottomSheet, V as Breadcrumb, H as BreadcrumbItem, o as Button, i as COMPONENT_TOKENS, b as Card, se as Carousel, ce as CarouselSlide, jt as ChatContainer, Mt as ChatInput, At as ChatMessage, p as Checkbox, f as CheckboxCore, qe as Chip, Ct as CodeBlock, ke as Collapsible, Ae as CollapsibleContent, je as CollapsibleTrigger, Fe as ColorPicker, Pe as ColorPickerCore, te as Combobox, Se as Command, Ce as CommandInput, we as CommandItem, Te as CommandList, St as ConfirmDialog, bt as Container, dt as ContextMenu, pt as ContextMenuContent, mt as ContextMenuItem, ht as ContextMenuSeparator, ft as ContextMenuTrigger, Ut as ConversationItem, Ht as ConversationList, Qe as DateRangePicker, Ze as DateRangePickerCore, ue as Datepicker, le as DatepickerCore, _ as Dialog, Wt as DiffViewer, U as Disclosure, fe as Divider, ye as Drawer, ot as DropdownMenu, ct as DropdownMenuContent, lt as DropdownMenuItem, ut as DropdownMenuSeparator, st as DropdownMenuTrigger, me as Empty, Y as FileInput, B as Flex, Kt as FormItem, _e as Grid, ve as GridItem, R as Icon, z as Image, at as InlineEdit, c as Input, s as InputCore, $ as List, ee as ListItem, Gt as LogViewer, Pt as MarkdownRenderer, W as Menu, K as MenuDivider, G as MenuItem, Vt as ModelPicker, _t as NavLink, gt as NavigationBar, J as NumberInput, q as NumberInputCore, et as OTPInput, $e as OTPInputCore, d as Option, ge as Pagination, Be as Paragraph, nt as PasswordInput, tt as PasswordInputCore, y as Popover, he as Progress, x as Radio, C as RadioGroup, S as RadioGroupCore, Le as Rating, Ie as RatingCore, Ee as ResizableGroup, De as ResizableHandle, Oe as ResizablePanel, Je as ScrollArea, Ke as Segmented, Ge as SegmentedCore, u as Select, l as SelectCore, L as Skeleton, D as Slider, E as SliderCore, pe as Spinner, Ue as Stat, We as StatGroup, xe as Step, Lt as StepTimeline, Rt as StepTimelineItem, be as Stepper, Nt as StreamingText, kt as SwipeAction, h as Switch, m as SwitchCore, a as TOKEN_REGISTRY, A as Tab, k as TabList, j as TabPanel, ne as Table, ie as TableBody, oe as TableCell, re as TableHead, ae as TableRow, O as Tabs, I as Tag, Et as TagGroup, Dt as TagGroupItem, it as TagInput, rt as TagInputCore, Ve as Text, T as Textarea, w as TextareaCore, It as ThinkingIndicator, Xe as TimePicker, Ye as TimePickerCore, Re as Timeline, ze as TimelineItem, He as Title, X as Toast, Z as ToastContainer, Bt as TokenCounter, Ft as ToolCallCard, v as Tooltip, Me as Transfer, de as Tree, Ne as Upload, Tt as VirtualList, e as darkTheme, t as lightTheme, n as spacing, r as typography, qt as useControl, Q as useToast };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type CheckboxCoreProps = {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange: (checked: boolean) => void;
|
|
5
|
+
/** Native change event passthrough — invoked with the DOM event after
|
|
6
|
+
* `onChange`, so a spread can never override the controlled callback. */
|
|
7
|
+
onNativeChange?: ComponentPropsWithoutRef<'input'>['onChange'];
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
} & Omit<ComponentPropsWithoutRef<'input'>, 'checked' | 'onChange' | 'type'>;
|
|
11
|
+
export default function CheckboxCore({ checked, onChange, onNativeChange, className, label, ...rest }: CheckboxCoreProps): import("react").JSX.Element;
|
|
12
|
+
export type { CheckboxCoreProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ColorPickerCoreProps = {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
presets?: string[];
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function ColorPickerCore({ value, onChange, presets, className, }: ColorPickerCoreProps): import("react").JSX.Element;
|
|
8
|
+
export type { ColorPickerCoreProps };
|
|
@@ -3,5 +3,5 @@ type ContextMenuContentProps = {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
export default function ContextMenuContent({ children, className }: ContextMenuContentProps): import("react").JSX.Element | null;
|
|
6
|
+
export default function ContextMenuContent({ children, className, }: ContextMenuContentProps): import("react").JSX.Element | null;
|
|
7
7
|
export type { ContextMenuContentProps };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import type { Dispatch, SetStateAction } from 'react';
|
|
1
|
+
import type { Dispatch, RefObject, SetStateAction } from 'react';
|
|
2
|
+
import type { FloatingBehavior } from '../../utils/floating';
|
|
2
3
|
type ContextMenuContextValue = {
|
|
3
4
|
open: boolean;
|
|
4
5
|
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
5
6
|
x: number;
|
|
6
7
|
y: number;
|
|
7
8
|
setPosition: (x: number, y: number) => void;
|
|
9
|
+
contentRef: RefObject<HTMLDivElement | null>;
|
|
10
|
+
/** Floating-panel behavior shared by the root and content. */
|
|
11
|
+
floating: FloatingBehavior;
|
|
8
12
|
};
|
|
9
13
|
export declare const ContextMenuProvider: import("react").Provider<ContextMenuContextValue | undefined>;
|
|
10
14
|
export declare function useContextMenuContext(): ContextMenuContextValue;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type DateRangePickerCoreProps = {
|
|
3
|
+
startDate: string;
|
|
4
|
+
endDate: string;
|
|
5
|
+
onStartChange: (value: string) => void;
|
|
6
|
+
onEndChange: (value: string) => void;
|
|
7
|
+
separator?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export default function DateRangePickerCore({ startDate, endDate, onStartChange, onEndChange, separator, className, }: DateRangePickerCoreProps): import("react").JSX.Element;
|
|
11
|
+
export type { DateRangePickerCoreProps };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default as DateRangePicker } from './DateRangePicker';
|
|
2
2
|
export type { DateRangePickerProps } from './DateRangePicker';
|
|
3
|
+
export { default as DateRangePickerCore } from './DateRangePickerCore';
|
|
4
|
+
export type { DateRangePickerCoreProps } from './DateRangePickerCore';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type DatepickerCoreProps = {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
open: boolean;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
min?: string;
|
|
7
|
+
max?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export default function DatepickerCore({ value, onChange, open, onOpenChange, min, max, placeholder, className, }: DatepickerCoreProps): import("react").JSX.Element;
|
|
12
|
+
export type { DatepickerCoreProps };
|
|
@@ -4,5 +4,5 @@ type DropdownMenuContentProps = {
|
|
|
4
4
|
align?: 'start' | 'center' | 'end';
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
|
-
export default function DropdownMenuContent({ children, align, className }: DropdownMenuContentProps): import("react").JSX.Element | null;
|
|
7
|
+
export default function DropdownMenuContent({ children, align, className, }: DropdownMenuContentProps): import("react").JSX.Element | null;
|
|
8
8
|
export type { DropdownMenuContentProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Dispatch, RefObject, SetStateAction } from 'react';
|
|
2
|
+
import type { FloatingBehavior } from '../../utils/floating';
|
|
2
3
|
type DropdownMenuContextValue = {
|
|
3
4
|
open: boolean;
|
|
4
5
|
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
@@ -14,6 +15,8 @@ type DropdownMenuContextValue = {
|
|
|
14
15
|
focusRequestRef: {
|
|
15
16
|
current: 'first' | 'last' | null;
|
|
16
17
|
};
|
|
18
|
+
/** Floating-panel behavior shared by the trigger and content. */
|
|
19
|
+
floating: FloatingBehavior;
|
|
17
20
|
};
|
|
18
21
|
export declare const DropdownMenuProvider: import("react").Provider<DropdownMenuContextValue | undefined>;
|
|
19
22
|
export declare function useDropdownMenuContext(): DropdownMenuContextValue;
|
|
@@ -3,5 +3,5 @@ type DropdownMenuTriggerProps = {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
className?: string;
|
|
5
5
|
};
|
|
6
|
-
export default function DropdownMenuTrigger({ children, className }: DropdownMenuTriggerProps): import("react").JSX.Element;
|
|
6
|
+
export default function DropdownMenuTrigger({ children, className, }: DropdownMenuTriggerProps): import("react").JSX.Element;
|
|
7
7
|
export type { DropdownMenuTriggerProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
type InputCoreProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
/** Native change event passthrough — invoked with the DOM event after
|
|
6
|
+
* `onChange`. Kept out of `rest` on purpose so the controlled `onChange`
|
|
7
|
+
* callback above can never be overridden by a spread. */
|
|
8
|
+
onNativeChange?: ComponentPropsWithoutRef<'input'>['onChange'];
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
className?: string;
|
|
11
|
+
} & Omit<ComponentPropsWithoutRef<'input'>, 'value' | 'onChange' | 'size'>;
|
|
12
|
+
export default function InputCore({ value, onChange, onNativeChange, size, className, ...rest }: InputCoreProps): import("react").JSX.Element;
|
|
13
|
+
export type { InputCoreProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
type NumberInputCoreProps = {
|
|
3
|
+
value: number;
|
|
4
|
+
onChange: (value: number) => void;
|
|
5
|
+
/** Native change event passthrough — invoked with the DOM event after
|
|
6
|
+
* `onChange`, so a spread can never override the controlled callback. */
|
|
7
|
+
onNativeChange?: ComponentPropsWithoutRef<'input'>['onChange'];
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
step?: number;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
className?: string;
|
|
13
|
+
} & Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'value' | 'onChange' | 'size'>;
|
|
14
|
+
export default function NumberInputCore({ value, onChange, onNativeChange, min, max, step, size, className, ...rest }: NumberInputCoreProps): import("react").JSX.Element;
|
|
15
|
+
export type { NumberInputCoreProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type OTPInputCoreProps = {
|
|
2
|
+
length?: number;
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export default function OTPInputCore({ length, value, onChange, className, }: OTPInputCoreProps): import("react").JSX.Element;
|
|
8
|
+
export type { OTPInputCoreProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type PasswordInputCoreProps = {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function PasswordInputCore({ value, onChange, placeholder, disabled, className, }: PasswordInputCoreProps): import("react").JSX.Element;
|
|
9
|
+
export type { PasswordInputCoreProps };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { Dispatch, SetStateAction } from 'react';
|
|
2
1
|
type RadioContextValue = {
|
|
3
2
|
name: string;
|
|
4
3
|
value: string;
|
|
5
|
-
setValue:
|
|
4
|
+
setValue: (value: string) => void;
|
|
6
5
|
};
|
|
7
6
|
export declare const RadioProvider: import("react").Provider<RadioContextValue | undefined>;
|
|
8
7
|
export declare function useRadioContext(): RadioContextValue | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type RadioGroupCoreProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
name?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export default function RadioGroupCore({ value, onChange, name, className, children, }: RadioGroupCoreProps): import("react").JSX.Element;
|
|
10
|
+
export type { RadioGroupCoreProps };
|
|
@@ -2,3 +2,5 @@ export { default as Radio } from './Radio';
|
|
|
2
2
|
export type { RadioProps } from './Radio';
|
|
3
3
|
export { default as RadioGroup } from './RadioGroup';
|
|
4
4
|
export type { RadioGroupProps } from './RadioGroup';
|
|
5
|
+
export { default as RadioGroupCore } from './RadioGroupCore';
|
|
6
|
+
export type { RadioGroupCoreProps } from './RadioGroupCore';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type RatingCoreProps = {
|
|
2
|
+
value: number;
|
|
3
|
+
onChange: (value: number) => void;
|
|
4
|
+
count?: number;
|
|
5
|
+
allowHalf?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function RatingCore({ value, onChange, count, allowHalf, className, }: RatingCoreProps): import("react").JSX.Element;
|
|
9
|
+
export type { RatingCoreProps };
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import type { Control } from 'react-use-control';
|
|
3
|
-
type SegmentedOption
|
|
4
|
-
value: string;
|
|
5
|
-
label: ReactNode;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
};
|
|
2
|
+
import type { SegmentedOption } from './SegmentedCore';
|
|
8
3
|
type SegmentedProps = {
|
|
9
4
|
options: SegmentedOption[];
|
|
10
5
|
value?: Control<string> | string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type SegmentedOption = string | {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type SegmentedCoreProps = {
|
|
8
|
+
options: SegmentedOption[];
|
|
9
|
+
value: string;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export default function SegmentedCore({ options, value, onChange, size, className, }: SegmentedCoreProps): import("react").JSX.Element;
|
|
15
|
+
export type { SegmentedCoreProps, SegmentedOption };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default as Segmented } from './Segmented';
|
|
2
2
|
export type { SegmentedProps, SegmentedOption } from './Segmented';
|
|
3
|
+
export { default as SegmentedCore } from './SegmentedCore';
|
|
4
|
+
export type { SegmentedCoreProps, SegmentedOption as SegmentedCoreOption } from './SegmentedCore';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type SelectCoreProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
/** Native change event passthrough — invoked with the DOM event after
|
|
6
|
+
* `onChange`, so a spread can never override the controlled callback. */
|
|
7
|
+
onNativeChange?: ComponentPropsWithoutRef<'select'>['onChange'];
|
|
8
|
+
size?: 'sm' | 'md' | 'lg';
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
} & Omit<ComponentPropsWithoutRef<'select'>, 'value' | 'onChange' | 'size'>;
|
|
12
|
+
export default function SelectCore({ value, onChange, onNativeChange, size, className, children, ...rest }: SelectCoreProps): import("react").JSX.Element;
|
|
13
|
+
export type { SelectCoreProps };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as Select } from './Select';
|
|
2
2
|
export type { SelectProps } from './Select';
|
|
3
|
+
export { default as SelectCore } from './SelectCore';
|
|
4
|
+
export type { SelectCoreProps } from './SelectCore';
|
|
3
5
|
export { default as Option } from './Option';
|
|
4
6
|
export type { OptionProps } from './Option';
|