@knkcs/anker 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/index.d.ts +48 -12
- package/dist/atoms/index.js +77 -49
- package/dist/atoms/index.js.map +1 -1
- package/dist/{chunk-FGKGX4UF.js → chunk-7UJ4QEUW.js} +4 -3
- package/dist/chunk-7UJ4QEUW.js.map +1 -0
- package/dist/chunk-C4JI3JNA.js +147 -0
- package/dist/chunk-C4JI3JNA.js.map +1 -0
- package/dist/chunk-GJTQLZ4O.js +73 -0
- package/dist/chunk-GJTQLZ4O.js.map +1 -0
- package/dist/chunk-NJFF6S77.js +108 -0
- package/dist/chunk-NJFF6S77.js.map +1 -0
- package/dist/chunk-QU3FF5WI.js +36 -0
- package/dist/chunk-QU3FF5WI.js.map +1 -0
- package/dist/{chunk-4D3EY2W2.js → chunk-YSFUGIQM.js} +388 -34
- package/dist/chunk-YSFUGIQM.js.map +1 -0
- package/dist/components/index.d.ts +124 -12
- package/dist/components/index.js +291 -50
- package/dist/components/index.js.map +1 -1
- package/dist/forms/index.d.ts +2 -13
- package/dist/forms/index.js +81 -119
- package/dist/forms/index.js.map +1 -1
- package/dist/primitives/index.d.ts +142 -90
- package/dist/primitives/index.js +38 -116
- package/dist/primitives/index.js.map +1 -1
- package/dist/theme/index.d.ts +80 -8
- package/dist/theme/index.js +1 -1
- package/package.json +5 -1
- package/dist/chunk-4D3EY2W2.js.map +0 -1
- package/dist/chunk-4T32UC26.js +0 -81
- package/dist/chunk-4T32UC26.js.map +0 -1
- package/dist/chunk-FGKGX4UF.js.map +0 -1
- package/dist/chunk-QSCNXHMU.js +0 -32
- package/dist/chunk-QSCNXHMU.js.map +0 -1
- package/dist/chunk-YXTW5OAJ.js +0 -303
- package/dist/chunk-YXTW5OAJ.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
3
|
-
import { Accordion, Alert as Alert$1, Breadcrumb, IconButtonProps, SpanProps, HoverCard as HoverCard$1, Menu, PinInput as PinInput$1, Popover as Popover$1, Progress as Progress$1, ProgressCircle as ProgressCircle$1, SystemContext, RadioGroup as RadioGroup$1, SegmentGroup, SkeletonProps as SkeletonProps$1, Slider as Slider$1, SpinnerProps as SpinnerProps$1, BadgeProps, Stat, Tooltip as Tooltip$1 } from '@chakra-ui/react';
|
|
4
|
-
|
|
3
|
+
import { Accordion, Alert as Alert$1, Breadcrumb, Checkbox as Checkbox$1, IconButtonProps, SpanProps, HoverCard as HoverCard$1, Menu, NativeSelectFieldProps, NativeSelectRootProps, PinInput as PinInput$1, Popover as Popover$1, Progress as Progress$1, ProgressCircle as ProgressCircle$1, HTMLChakraProps, SystemContext, RadioGroup as RadioGroup$1, SegmentGroup, SkeletonProps as SkeletonProps$1, Slider as Slider$1, SpinnerProps as SpinnerProps$1, BadgeProps, Stat, Tooltip as Tooltip$1 } from '@chakra-ui/react';
|
|
4
|
+
export { Box, BoxProps, Center, CenterProps, Code, Collapsible, CollapsibleRootProps as CollapsibleProps, Container, ContainerProps, Flex, FlexProps, Grid, GridItem, GridItemProps, GridProps, HStack, Heading, HeadingProps, Link, LinkProps, Separator, SeparatorProps, Spacer, Stack, StackProps, Table, TableRootProps as TableProps, Text, TextProps, Textarea, TextareaProps, VStack } from '@chakra-ui/react';
|
|
5
|
+
import * as React from 'react';
|
|
5
6
|
import React__default from 'react';
|
|
6
7
|
export { A as Avatar, a as AvatarGroup, b as AvatarProps } from '../avatar-DhqkKdqc.js';
|
|
7
8
|
import { ThemeProviderProps } from 'next-themes';
|
|
@@ -11,42 +12,58 @@ import * as _zag_js_toast from '@zag-js/toast';
|
|
|
11
12
|
|
|
12
13
|
interface AccordionItemProps extends Accordion.ItemProps {
|
|
13
14
|
/** The trigger label shown in the accordion header. */
|
|
14
|
-
label: React
|
|
15
|
+
label: React.ReactNode;
|
|
15
16
|
/** Content revealed when the item is expanded. */
|
|
16
|
-
children: React
|
|
17
|
+
children: React.ReactNode;
|
|
17
18
|
}
|
|
18
19
|
declare const AccordionItem: {
|
|
19
20
|
({ ref, ...props }: AccordionItemProps & {
|
|
20
|
-
ref?: React
|
|
21
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
21
22
|
}): react_jsx_runtime.JSX.Element;
|
|
22
23
|
displayName: string;
|
|
23
24
|
};
|
|
24
|
-
declare const AccordionRoot: React
|
|
25
|
+
declare const AccordionRoot: React.ForwardRefExoticComponent<Accordion.RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
26
|
type AccordionRootProps = Accordion.RootProps;
|
|
26
27
|
|
|
27
28
|
interface AlertProps extends Omit<Alert$1.RootProps, "title"> {
|
|
28
|
-
startElement?: React
|
|
29
|
-
endElement?: React
|
|
30
|
-
title?: React
|
|
31
|
-
icon?: React
|
|
29
|
+
startElement?: React.ReactNode;
|
|
30
|
+
endElement?: React.ReactNode;
|
|
31
|
+
title?: React.ReactNode;
|
|
32
|
+
icon?: React.ReactElement;
|
|
32
33
|
}
|
|
33
34
|
declare const Alert: {
|
|
34
35
|
({ ref, ...props }: AlertProps & {
|
|
35
|
-
ref?: React
|
|
36
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
36
37
|
}): react_jsx_runtime.JSX.Element;
|
|
37
38
|
displayName: string;
|
|
38
39
|
};
|
|
39
40
|
|
|
40
|
-
declare const BreadcrumbRoot: React
|
|
41
|
-
declare const BreadcrumbList: React
|
|
42
|
-
declare const BreadcrumbItem: React
|
|
43
|
-
declare const BreadcrumbLink: React
|
|
44
|
-
declare const BreadcrumbCurrentLink: React
|
|
45
|
-
declare const BreadcrumbSeparator: React
|
|
46
|
-
declare const BreadcrumbEllipsis: React
|
|
41
|
+
declare const BreadcrumbRoot: React.ForwardRefExoticComponent<Breadcrumb.RootProps & React.RefAttributes<HTMLElement>>;
|
|
42
|
+
declare const BreadcrumbList: React.ForwardRefExoticComponent<Breadcrumb.ListProps & React.RefAttributes<HTMLElement>>;
|
|
43
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<Breadcrumb.ItemProps & React.RefAttributes<HTMLElement>>;
|
|
44
|
+
declare const BreadcrumbLink: React.ForwardRefExoticComponent<Breadcrumb.LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
45
|
+
declare const BreadcrumbCurrentLink: React.ForwardRefExoticComponent<Breadcrumb.CurrentLinkProps & React.RefAttributes<HTMLElement>>;
|
|
46
|
+
declare const BreadcrumbSeparator: React.ForwardRefExoticComponent<Breadcrumb.SeparatorProps & React.RefAttributes<HTMLElement>>;
|
|
47
|
+
declare const BreadcrumbEllipsis: React.ForwardRefExoticComponent<Breadcrumb.EllipsisProps & React.RefAttributes<HTMLElement>>;
|
|
47
48
|
type BreadcrumbRootProps = Breadcrumb.RootProps;
|
|
48
49
|
type BreadcrumbLinkProps = Breadcrumb.LinkProps;
|
|
49
50
|
|
|
51
|
+
interface CheckboxProps extends Checkbox$1.RootProps {
|
|
52
|
+
/** Checkbox label text or content. */
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
/** Additional props forwarded to the hidden input element. */
|
|
55
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
56
|
+
/** Ref attached to the root element. */
|
|
57
|
+
rootRef?: React.RefObject<HTMLLabelElement | null>;
|
|
58
|
+
}
|
|
59
|
+
declare const Checkbox: {
|
|
60
|
+
({ ref, ...props }: CheckboxProps & {
|
|
61
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
62
|
+
}): react_jsx_runtime.JSX.Element;
|
|
63
|
+
displayName: string;
|
|
64
|
+
};
|
|
65
|
+
declare const CheckboxGroup: _chakra_ui_react.CheckboxGroupComponent;
|
|
66
|
+
|
|
50
67
|
interface ColorModeProviderProps extends ThemeProviderProps {
|
|
51
68
|
}
|
|
52
69
|
declare function ColorModeProvider(props: ColorModeProviderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -71,32 +88,32 @@ interface ColorModeButtonProps extends Omit<IconButtonProps, "aria-label"> {
|
|
|
71
88
|
}
|
|
72
89
|
declare const ColorModeButton: {
|
|
73
90
|
({ ref, label, ...props }: ColorModeButtonProps & {
|
|
74
|
-
ref?: React
|
|
91
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
75
92
|
}): react_jsx_runtime.JSX.Element;
|
|
76
93
|
displayName: string;
|
|
77
94
|
};
|
|
78
95
|
declare const LightMode: {
|
|
79
96
|
({ ref, ...props }: SpanProps & {
|
|
80
|
-
ref?: React
|
|
97
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
81
98
|
}): react_jsx_runtime.JSX.Element;
|
|
82
99
|
displayName: string;
|
|
83
100
|
};
|
|
84
101
|
declare const DarkMode: {
|
|
85
102
|
({ ref, ...props }: SpanProps & {
|
|
86
|
-
ref?: React
|
|
103
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
87
104
|
}): react_jsx_runtime.JSX.Element;
|
|
88
105
|
displayName: string;
|
|
89
106
|
};
|
|
90
107
|
|
|
91
108
|
interface HoverCardProps extends HoverCard$1.RootProps {
|
|
92
109
|
/** Content displayed in the hover card. */
|
|
93
|
-
content: React
|
|
110
|
+
content: React.ReactNode;
|
|
94
111
|
/** Whether to show an arrow. @default false */
|
|
95
112
|
showArrow?: boolean;
|
|
96
113
|
/** Whether to render in a portal. @default true */
|
|
97
114
|
portalled?: boolean;
|
|
98
115
|
/** Container ref for portal. */
|
|
99
|
-
portalRef?: React
|
|
116
|
+
portalRef?: React.RefObject<HTMLElement | null>;
|
|
100
117
|
/** Props passed to the content element. */
|
|
101
118
|
contentProps?: HoverCard$1.ContentProps;
|
|
102
119
|
}
|
|
@@ -121,62 +138,79 @@ interface LeavePageConfirmationProps {
|
|
|
121
138
|
/** Label for the cancel/stay button. Defaults to "Stay". */
|
|
122
139
|
cancelLabel?: string;
|
|
123
140
|
}
|
|
124
|
-
declare const LeavePageConfirmation:
|
|
141
|
+
declare const LeavePageConfirmation: React__default.FC<LeavePageConfirmationProps>;
|
|
125
142
|
|
|
126
143
|
interface MenuContentProps extends Menu.ContentProps {
|
|
127
144
|
/** Whether to render the menu content inside a portal. @default true */
|
|
128
145
|
portalled?: boolean;
|
|
129
146
|
/** Container ref for the portal. */
|
|
130
|
-
portalRef?: React
|
|
147
|
+
portalRef?: React.RefObject<HTMLElement | null>;
|
|
131
148
|
}
|
|
132
149
|
declare const MenuContent: {
|
|
133
150
|
({ ref, ...props }: MenuContentProps & {
|
|
134
|
-
ref?: React
|
|
151
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
135
152
|
}): react_jsx_runtime.JSX.Element;
|
|
136
153
|
displayName: string;
|
|
137
154
|
};
|
|
138
155
|
declare const MenuArrow: {
|
|
139
156
|
({ ref, ...props }: Menu.ArrowProps & {
|
|
140
|
-
ref?: React
|
|
157
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
141
158
|
}): react_jsx_runtime.JSX.Element;
|
|
142
159
|
displayName: string;
|
|
143
160
|
};
|
|
144
161
|
declare const MenuCheckboxItem: {
|
|
145
162
|
({ ref, ...props }: Menu.CheckboxItemProps & {
|
|
146
|
-
ref?: React
|
|
163
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
147
164
|
}): react_jsx_runtime.JSX.Element;
|
|
148
165
|
displayName: string;
|
|
149
166
|
};
|
|
150
167
|
declare const MenuRadioItem: {
|
|
151
168
|
({ ref, ...props }: Menu.RadioItemProps & {
|
|
152
|
-
ref?: React
|
|
169
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
153
170
|
}): react_jsx_runtime.JSX.Element;
|
|
154
171
|
displayName: string;
|
|
155
172
|
};
|
|
156
173
|
declare const MenuItemGroup: {
|
|
157
174
|
({ ref, ...props }: Menu.ItemGroupProps & {
|
|
158
|
-
ref?: React
|
|
175
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
159
176
|
}): react_jsx_runtime.JSX.Element;
|
|
160
177
|
displayName: string;
|
|
161
178
|
};
|
|
162
179
|
interface MenuTriggerItemProps extends Menu.ItemProps {
|
|
163
180
|
/** Icon rendered before the trigger item label. */
|
|
164
|
-
startIcon?: React
|
|
181
|
+
startIcon?: React.ReactNode;
|
|
165
182
|
}
|
|
166
183
|
declare const MenuTriggerItem: {
|
|
167
184
|
({ ref, ...props }: MenuTriggerItemProps & {
|
|
168
|
-
ref?: React
|
|
185
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
186
|
+
}): react_jsx_runtime.JSX.Element;
|
|
187
|
+
displayName: string;
|
|
188
|
+
};
|
|
189
|
+
declare const MenuRadioItemGroup: React.ForwardRefExoticComponent<Menu.RadioItemGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
190
|
+
declare const MenuContextTrigger: React.ForwardRefExoticComponent<Menu.ContextTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
191
|
+
declare const MenuRoot: React.FC<Menu.RootProps>;
|
|
192
|
+
declare const MenuSeparator: React.ForwardRefExoticComponent<Menu.SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
193
|
+
declare const MenuItem: React.ForwardRefExoticComponent<Menu.ItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
194
|
+
declare const MenuItemText: React.ForwardRefExoticComponent<Menu.ItemTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
declare const MenuItemCommand: React.ForwardRefExoticComponent<Menu.CommandProps & React.RefAttributes<HTMLElement>>;
|
|
196
|
+
declare const MenuTrigger: React.ForwardRefExoticComponent<Menu.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
197
|
+
|
|
198
|
+
interface NativeSelectProps extends Omit<NativeSelectFieldProps, "placeholder"> {
|
|
199
|
+
/** Props forwarded to the root wrapper. */
|
|
200
|
+
size?: NativeSelectRootProps["size"];
|
|
201
|
+
variant?: NativeSelectRootProps["variant"];
|
|
202
|
+
disabled?: NativeSelectRootProps["disabled"];
|
|
203
|
+
invalid?: NativeSelectRootProps["invalid"];
|
|
204
|
+
unstyled?: NativeSelectRootProps["unstyled"];
|
|
205
|
+
/** Rendered as a disabled first <option> */
|
|
206
|
+
placeholder?: string;
|
|
207
|
+
}
|
|
208
|
+
declare const NativeSelect: {
|
|
209
|
+
({ ref, ...props }: NativeSelectProps & {
|
|
210
|
+
ref?: React.Ref<HTMLSelectElement>;
|
|
169
211
|
}): react_jsx_runtime.JSX.Element;
|
|
170
212
|
displayName: string;
|
|
171
213
|
};
|
|
172
|
-
declare const MenuRadioItemGroup: React$1.ForwardRefExoticComponent<Menu.RadioItemGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
173
|
-
declare const MenuContextTrigger: React$1.ForwardRefExoticComponent<Menu.ContextTriggerProps & React$1.RefAttributes<HTMLElement>>;
|
|
174
|
-
declare const MenuRoot: React$1.FC<Menu.RootProps>;
|
|
175
|
-
declare const MenuSeparator: React$1.ForwardRefExoticComponent<Menu.SeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
176
|
-
declare const MenuItem: React$1.ForwardRefExoticComponent<Menu.ItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
177
|
-
declare const MenuItemText: React$1.ForwardRefExoticComponent<Menu.ItemTextProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
178
|
-
declare const MenuItemCommand: React$1.ForwardRefExoticComponent<Menu.CommandProps & React$1.RefAttributes<HTMLElement>>;
|
|
179
|
-
declare const MenuTrigger: React$1.ForwardRefExoticComponent<Menu.TriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
180
214
|
|
|
181
215
|
interface PinInputProps extends Omit<PinInput$1.RootProps, "children"> {
|
|
182
216
|
/** Number of input fields. @default 4 */
|
|
@@ -184,7 +218,7 @@ interface PinInputProps extends Omit<PinInput$1.RootProps, "children"> {
|
|
|
184
218
|
}
|
|
185
219
|
declare const PinInput: {
|
|
186
220
|
({ ref, ...props }: PinInputProps & {
|
|
187
|
-
ref?: React
|
|
221
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
188
222
|
}): react_jsx_runtime.JSX.Element;
|
|
189
223
|
displayName: string;
|
|
190
224
|
};
|
|
@@ -194,37 +228,37 @@ declare const Popover: {
|
|
|
194
228
|
(props: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
195
229
|
displayName: string;
|
|
196
230
|
};
|
|
197
|
-
declare const PopoverTrigger: React
|
|
231
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<Popover$1.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
198
232
|
interface PopoverContentProps extends Popover$1.ContentProps {
|
|
199
233
|
/** Whether to show an arrow. @default false */
|
|
200
234
|
showArrow?: boolean;
|
|
201
235
|
/** Whether to render in a portal. @default true */
|
|
202
236
|
portalled?: boolean;
|
|
203
237
|
/** Container ref for portal. */
|
|
204
|
-
portalRef?: React
|
|
238
|
+
portalRef?: React.RefObject<HTMLElement | null>;
|
|
205
239
|
}
|
|
206
240
|
declare const PopoverContent: {
|
|
207
241
|
({ ref, ...props }: PopoverContentProps & {
|
|
208
|
-
ref?: React
|
|
242
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
209
243
|
}): react_jsx_runtime.JSX.Element;
|
|
210
244
|
displayName: string;
|
|
211
245
|
};
|
|
212
|
-
declare const PopoverHeader: React
|
|
213
|
-
declare const PopoverBody: React
|
|
214
|
-
declare const PopoverFooter: React
|
|
215
|
-
declare const PopoverCloseTrigger: React
|
|
216
|
-
declare const PopoverTitle: React
|
|
217
|
-
declare const PopoverDescription: React
|
|
246
|
+
declare const PopoverHeader: React.ForwardRefExoticComponent<Popover$1.HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
247
|
+
declare const PopoverBody: React.ForwardRefExoticComponent<Popover$1.BodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
248
|
+
declare const PopoverFooter: React.ForwardRefExoticComponent<Popover$1.FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
249
|
+
declare const PopoverCloseTrigger: React.ForwardRefExoticComponent<Popover$1.CloseTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
250
|
+
declare const PopoverTitle: React.ForwardRefExoticComponent<Popover$1.TitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
251
|
+
declare const PopoverDescription: React.ForwardRefExoticComponent<Popover$1.DescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
218
252
|
|
|
219
253
|
interface ProgressProps extends Progress$1.RootProps {
|
|
220
254
|
/** Whether to show the percentage label. @default false */
|
|
221
255
|
showValue?: boolean;
|
|
222
256
|
/** Label text displayed above the progress bar. */
|
|
223
|
-
label?: React
|
|
257
|
+
label?: React.ReactNode;
|
|
224
258
|
}
|
|
225
259
|
declare const Progress: {
|
|
226
260
|
({ ref, ...props }: ProgressProps & {
|
|
227
|
-
ref?: React
|
|
261
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
228
262
|
}): react_jsx_runtime.JSX.Element;
|
|
229
263
|
displayName: string;
|
|
230
264
|
};
|
|
@@ -234,14 +268,20 @@ interface ProgressCircleProps extends ProgressCircle$1.RootProps {
|
|
|
234
268
|
}
|
|
235
269
|
declare const ProgressCircle: {
|
|
236
270
|
({ ref, ...props }: ProgressCircleProps & {
|
|
237
|
-
ref?: React
|
|
271
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
238
272
|
}): react_jsx_runtime.JSX.Element;
|
|
239
273
|
displayName: string;
|
|
240
274
|
};
|
|
241
275
|
|
|
242
|
-
|
|
243
|
-
size?:
|
|
244
|
-
}
|
|
276
|
+
interface ProseProps extends HTMLChakraProps<"div"> {
|
|
277
|
+
size?: "md" | "lg";
|
|
278
|
+
}
|
|
279
|
+
declare const Prose: {
|
|
280
|
+
({ ref, size, ...props }: ProseProps & {
|
|
281
|
+
ref?: React__default.Ref<HTMLDivElement>;
|
|
282
|
+
}): react_jsx_runtime.JSX.Element;
|
|
283
|
+
displayName: string;
|
|
284
|
+
};
|
|
245
285
|
|
|
246
286
|
interface ProviderProps extends ColorModeProviderProps {
|
|
247
287
|
/** Override the default anker theme system. */
|
|
@@ -254,21 +294,21 @@ declare namespace Provider {
|
|
|
254
294
|
|
|
255
295
|
interface RadioProps extends RadioGroup$1.ItemProps {
|
|
256
296
|
/** Ref attached to the root element. */
|
|
257
|
-
rootRef?: React
|
|
297
|
+
rootRef?: React.RefObject<HTMLDivElement | null>;
|
|
258
298
|
/** Additional props forwarded to the hidden input element. */
|
|
259
|
-
inputProps?: React
|
|
299
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
260
300
|
}
|
|
261
301
|
declare const Radio: {
|
|
262
302
|
({ ref, ...props }: RadioProps & {
|
|
263
|
-
ref?: React
|
|
303
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
264
304
|
}): react_jsx_runtime.JSX.Element;
|
|
265
305
|
displayName: string;
|
|
266
306
|
};
|
|
267
|
-
declare const RadioGroup: React
|
|
307
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroup$1.RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
268
308
|
|
|
269
309
|
interface SegmentedControlItem {
|
|
270
310
|
value: string;
|
|
271
|
-
label: React
|
|
311
|
+
label: React.ReactNode;
|
|
272
312
|
disabled?: boolean;
|
|
273
313
|
}
|
|
274
314
|
interface SegmentedControlProps extends Omit<SegmentGroup.RootProps, "children"> {
|
|
@@ -277,7 +317,7 @@ interface SegmentedControlProps extends Omit<SegmentGroup.RootProps, "children">
|
|
|
277
317
|
}
|
|
278
318
|
declare const SegmentedControl: {
|
|
279
319
|
({ ref, ...props }: SegmentedControlProps & {
|
|
280
|
-
ref?: React
|
|
320
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
281
321
|
}): react_jsx_runtime.JSX.Element;
|
|
282
322
|
displayName: string;
|
|
283
323
|
};
|
|
@@ -302,16 +342,16 @@ interface SliderProps extends Slider$1.RootProps {
|
|
|
302
342
|
/** Whether to show the current value label. @default false */
|
|
303
343
|
showValue?: boolean;
|
|
304
344
|
/** Label text displayed alongside the slider. */
|
|
305
|
-
label?: React
|
|
345
|
+
label?: React.ReactNode;
|
|
306
346
|
/** Marks to display on the track. */
|
|
307
347
|
marks?: Array<number | {
|
|
308
348
|
value: number;
|
|
309
|
-
label: React
|
|
349
|
+
label: React.ReactNode;
|
|
310
350
|
}>;
|
|
311
351
|
}
|
|
312
352
|
declare const Slider: {
|
|
313
353
|
({ ref, ...props }: SliderProps & {
|
|
314
|
-
ref?: React
|
|
354
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
315
355
|
}): react_jsx_runtime.JSX.Element;
|
|
316
356
|
displayName: string;
|
|
317
357
|
};
|
|
@@ -320,27 +360,39 @@ type SpinnerProps = SpinnerProps$1;
|
|
|
320
360
|
declare const Spinner: React__default.FC<SpinnerProps>;
|
|
321
361
|
|
|
322
362
|
interface StatLabelProps extends Stat.LabelProps {
|
|
323
|
-
info?: React
|
|
363
|
+
info?: React.ReactNode;
|
|
324
364
|
}
|
|
325
|
-
declare const StatLabel:
|
|
326
|
-
ref
|
|
327
|
-
|
|
365
|
+
declare const StatLabel: {
|
|
366
|
+
({ ref, ...props }: StatLabelProps & {
|
|
367
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
368
|
+
}): react_jsx_runtime.JSX.Element;
|
|
369
|
+
displayName: string;
|
|
370
|
+
};
|
|
328
371
|
interface StatValueTextProps extends Stat.ValueTextProps {
|
|
329
372
|
value?: number;
|
|
330
373
|
formatOptions?: Intl.NumberFormatOptions;
|
|
331
374
|
}
|
|
332
|
-
declare const StatValueText:
|
|
333
|
-
ref
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
declare const
|
|
339
|
-
ref
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
375
|
+
declare const StatValueText: {
|
|
376
|
+
({ ref, ...props }: StatValueTextProps & {
|
|
377
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
378
|
+
}): react_jsx_runtime.JSX.Element;
|
|
379
|
+
displayName: string;
|
|
380
|
+
};
|
|
381
|
+
declare const StatUpTrend: {
|
|
382
|
+
({ ref, ...props }: BadgeProps & {
|
|
383
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
384
|
+
}): react_jsx_runtime.JSX.Element;
|
|
385
|
+
displayName: string;
|
|
386
|
+
};
|
|
387
|
+
declare const StatDownTrend: {
|
|
388
|
+
({ ref, ...props }: BadgeProps & {
|
|
389
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
390
|
+
}): react_jsx_runtime.JSX.Element;
|
|
391
|
+
displayName: string;
|
|
392
|
+
};
|
|
393
|
+
declare const StatRoot: React.ForwardRefExoticComponent<Stat.RootProps & React.RefAttributes<HTMLDListElement>>;
|
|
394
|
+
declare const StatHelpText: React.ForwardRefExoticComponent<Stat.HelpTextProps & React.RefAttributes<HTMLElement>>;
|
|
395
|
+
declare const StatValueUnit: React.ForwardRefExoticComponent<Stat.ValueUnitProps & React.RefAttributes<HTMLElement>>;
|
|
344
396
|
|
|
345
397
|
interface CreateToasterOptions {
|
|
346
398
|
placement?: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
|
|
@@ -356,13 +408,13 @@ declare const Toaster: () => react_jsx_runtime.JSX.Element;
|
|
|
356
408
|
interface ToggleTipProps extends Popover$1.RootProps {
|
|
357
409
|
showArrow?: boolean;
|
|
358
410
|
portalled?: boolean;
|
|
359
|
-
portalRef?: React
|
|
360
|
-
content?: React
|
|
411
|
+
portalRef?: React.RefObject<HTMLElement | null>;
|
|
412
|
+
content?: React.ReactNode;
|
|
361
413
|
contentProps?: Popover$1.ContentProps;
|
|
362
414
|
}
|
|
363
415
|
declare const ToggleTip: {
|
|
364
416
|
({ ref, ...props }: ToggleTipProps & {
|
|
365
|
-
ref?: React
|
|
417
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
366
418
|
}): react_jsx_runtime.JSX.Element;
|
|
367
419
|
displayName: string;
|
|
368
420
|
};
|
|
@@ -373,7 +425,7 @@ interface InfoTipProps extends Partial<ToggleTipProps> {
|
|
|
373
425
|
}
|
|
374
426
|
declare const InfoTip: {
|
|
375
427
|
({ ref, ...props }: InfoTipProps & {
|
|
376
|
-
ref?: React
|
|
428
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
377
429
|
}): react_jsx_runtime.JSX.Element;
|
|
378
430
|
displayName: string;
|
|
379
431
|
};
|
|
@@ -381,16 +433,16 @@ declare const InfoTip: {
|
|
|
381
433
|
interface TooltipProps extends Tooltip$1.RootProps {
|
|
382
434
|
showArrow?: boolean;
|
|
383
435
|
portalled?: boolean;
|
|
384
|
-
portalRef?: React
|
|
385
|
-
content: React
|
|
436
|
+
portalRef?: React.RefObject<HTMLElement | null>;
|
|
437
|
+
content: React.ReactNode;
|
|
386
438
|
contentProps?: Tooltip$1.ContentProps;
|
|
387
439
|
disabled?: boolean;
|
|
388
440
|
}
|
|
389
441
|
declare const Tooltip: {
|
|
390
442
|
({ ref, ...props }: TooltipProps & {
|
|
391
|
-
ref?: React
|
|
392
|
-
}): string | number | bigint | boolean | Iterable<React
|
|
443
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
444
|
+
}): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
393
445
|
displayName: string;
|
|
394
446
|
};
|
|
395
447
|
|
|
396
|
-
export { AccordionItem, type AccordionItemProps, AccordionRoot, type AccordionRootProps, Alert, type AlertProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbRoot, type BreadcrumbRootProps, BreadcrumbSeparator, type ColorMode, ColorModeButton, ColorModeIcon, ColorModeProvider, type ColorModeProviderProps, type CreateToasterOptions, DarkMode, HoverCard, type HoverCardProps, InfoTip, type InfoTipProps, LeavePageConfirmation, type LeavePageConfirmationProps, LightMode, MenuArrow, MenuCheckboxItem, MenuContent, MenuContextTrigger, MenuItem, MenuItemCommand, MenuItemGroup, MenuItemText, MenuRadioItem, MenuRadioItemGroup, MenuRoot, MenuSeparator, MenuTrigger, MenuTriggerItem, type MenuTriggerItemProps, PinInput, type PinInputProps, Popover, PopoverBody, PopoverCloseTrigger, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverFooter, PopoverHeader, type PopoverProps, PopoverTitle, PopoverTrigger, Progress, ProgressCircle, type ProgressCircleProps, type ProgressProps, Prose, Provider, type ProviderProps, Radio, RadioGroup, type RadioProps, SegmentedControl, type SegmentedControlItem, type SegmentedControlProps, Skeleton, SkeletonCircle, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatDownTrend, StatHelpText, StatLabel, StatRoot, StatUpTrend, StatValueText, StatValueUnit, Toaster, ToggleTip, type ToggleTipProps, Tooltip, type TooltipProps, type UseColorModeReturn, createAnkerToaster, toaster, useColorMode, useColorModeValue };
|
|
448
|
+
export { AccordionItem, type AccordionItemProps, AccordionRoot, type AccordionRootProps, Alert, type AlertProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbRoot, type BreadcrumbRootProps, BreadcrumbSeparator, Checkbox, CheckboxGroup, type CheckboxProps, type ColorMode, ColorModeButton, ColorModeIcon, ColorModeProvider, type ColorModeProviderProps, type CreateToasterOptions, DarkMode, HoverCard, type HoverCardProps, InfoTip, type InfoTipProps, LeavePageConfirmation, type LeavePageConfirmationProps, LightMode, MenuArrow, MenuCheckboxItem, MenuContent, MenuContextTrigger, MenuItem, MenuItemCommand, MenuItemGroup, MenuItemText, MenuRadioItem, MenuRadioItemGroup, MenuRoot, MenuSeparator, MenuTrigger, MenuTriggerItem, type MenuTriggerItemProps, NativeSelect, type NativeSelectProps, PinInput, type PinInputProps, Popover, PopoverBody, PopoverCloseTrigger, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverFooter, PopoverHeader, type PopoverProps, PopoverTitle, PopoverTrigger, Progress, ProgressCircle, type ProgressCircleProps, type ProgressProps, Prose, type ProseProps, Provider, type ProviderProps, Radio, RadioGroup, type RadioProps, SegmentedControl, type SegmentedControlItem, type SegmentedControlProps, Skeleton, SkeletonCircle, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatDownTrend, StatHelpText, StatLabel, type StatLabelProps, StatRoot, StatUpTrend, StatValueText, type StatValueTextProps, StatValueUnit, Toaster, ToggleTip, type ToggleTipProps, Tooltip, type TooltipProps, type UseColorModeReturn, createAnkerToaster, toaster, useColorMode, useColorModeValue };
|