@marigold/components 7.8.1 → 8.0.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/dist/index.d.mts +662 -7
- package/dist/index.d.ts +662 -7
- package/dist/index.js +306 -279
- package/dist/index.mjs +287 -260
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -12,11 +12,18 @@ import RAC, { ValidationResult, Key, DateValue, TagListProps } from 'react-aria-
|
|
|
12
12
|
export { Form, FormProps, RouterProvider } from 'react-aria-components';
|
|
13
13
|
export { I18nProvider } from '@react-aria/i18n';
|
|
14
14
|
import { AriaTableProps } from '@react-aria/table';
|
|
15
|
-
import { TableStateProps, RowProps as RowProps$1, TableBody, Cell, TableHeader
|
|
15
|
+
import { TableStateProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, TableBody, Cell, TableHeader } from '@react-stately/table';
|
|
16
16
|
export { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
17
17
|
|
|
18
18
|
interface AccordionProps extends Omit<AriaAccordionProps<object>, 'children' | 'expandedKeys' | 'disabledKeys' | 'onExpandedChange'> {
|
|
19
|
+
/**
|
|
20
|
+
* The children of the component
|
|
21
|
+
*/
|
|
19
22
|
children: ItemElement<object>[] | ItemElement<object>;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the mode of items open at the same time.
|
|
25
|
+
* @default single
|
|
26
|
+
*/
|
|
20
27
|
selectionMode?: SelectionMode;
|
|
21
28
|
}
|
|
22
29
|
declare const Accordion: {
|
|
@@ -30,8 +37,17 @@ interface AccordionOwnItemProps<T> extends ItemProps<T> {
|
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
interface AccordionItemProps {
|
|
40
|
+
/**
|
|
41
|
+
* Represents a single node in the tree structure, including its key, value, and any child nodes.
|
|
42
|
+
*/
|
|
33
43
|
item: Node<object>;
|
|
44
|
+
/**
|
|
45
|
+
* Manages the state of the tree structure, including selection and expansion of nodes.
|
|
46
|
+
*/
|
|
34
47
|
state: TreeState<object>;
|
|
48
|
+
/**
|
|
49
|
+
* Sets title of the accordion item which will be displayed to the button.
|
|
50
|
+
*/
|
|
35
51
|
title: string | ReactNode;
|
|
36
52
|
variant?: string;
|
|
37
53
|
size?: string;
|
|
@@ -39,15 +55,36 @@ interface AccordionItemProps {
|
|
|
39
55
|
declare const AccordionItem: ({ item, state, title, variant, size, ...props }: AccordionItemProps) => react_jsx_runtime.JSX.Element;
|
|
40
56
|
|
|
41
57
|
interface AsideProps extends GapSpaceProp {
|
|
58
|
+
/**
|
|
59
|
+
* The children of the component.
|
|
60
|
+
*/
|
|
42
61
|
children: [ReactElement, ReactElement];
|
|
62
|
+
/**
|
|
63
|
+
* The side of the aside content.
|
|
64
|
+
* @default left
|
|
65
|
+
*/
|
|
43
66
|
side?: 'left' | 'right';
|
|
67
|
+
/**
|
|
68
|
+
* The side width of the aside content.
|
|
69
|
+
*/
|
|
44
70
|
sideWidth?: string;
|
|
71
|
+
/**
|
|
72
|
+
* At which percent the content should wrap.
|
|
73
|
+
* @default 50%
|
|
74
|
+
*/
|
|
45
75
|
wrap?: NonZeroPercentage;
|
|
46
76
|
}
|
|
47
77
|
declare const Aside: ({ children, sideWidth, space, side, wrap, }: AsideProps) => react_jsx_runtime.JSX.Element;
|
|
48
78
|
|
|
49
79
|
interface AspectProps extends Omit<HtmlProps<'div'>, 'className'>, AspectProp {
|
|
80
|
+
/**
|
|
81
|
+
* The children of the component.
|
|
82
|
+
*/
|
|
50
83
|
children?: ReactNode;
|
|
84
|
+
/**
|
|
85
|
+
* The maximum width of the image.
|
|
86
|
+
* @default 100%
|
|
87
|
+
*/
|
|
51
88
|
maxWidth?: string;
|
|
52
89
|
}
|
|
53
90
|
declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -55,7 +92,13 @@ declare const Aspect: ({ ratio, maxWidth, children, }: AspectProps) => react_jsx
|
|
|
55
92
|
interface HelpTextProps {
|
|
56
93
|
variant?: string;
|
|
57
94
|
size?: string;
|
|
95
|
+
/**
|
|
96
|
+
* A helpful text.
|
|
97
|
+
*/
|
|
58
98
|
description?: ReactNode;
|
|
99
|
+
/**
|
|
100
|
+
* An error message.
|
|
101
|
+
*/
|
|
59
102
|
errorMessage?: ReactNode | ((v: ValidationResult) => ReactNode);
|
|
60
103
|
}
|
|
61
104
|
|
|
@@ -65,6 +108,11 @@ interface FieldBaseProps<T extends ElementType> extends WidthProp, Pick<HelpText
|
|
|
65
108
|
variant?: string;
|
|
66
109
|
size?: string;
|
|
67
110
|
children?: ReactNode;
|
|
111
|
+
/**
|
|
112
|
+
* Use RAC prop names here so we can directly pass the components via "as"
|
|
113
|
+
*/
|
|
114
|
+
isInvalid?: boolean;
|
|
115
|
+
isRequired?: boolean;
|
|
68
116
|
}
|
|
69
117
|
declare const FieldBase: <T extends ElementType>(props: FieldBaseProps<T> & DistributiveOmit<ComponentPropsWithRef<T>, "as"> & react.RefAttributes<any>) => ReactNode;
|
|
70
118
|
|
|
@@ -99,13 +147,45 @@ declare const _ListBox: ListBoxComponent;
|
|
|
99
147
|
|
|
100
148
|
type RemovedProps$n = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState';
|
|
101
149
|
interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$n>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
150
|
+
/**
|
|
151
|
+
* The value of the input (uncontrolled).
|
|
152
|
+
*/
|
|
102
153
|
defaultValue?: RAC.ComboBoxProps<object>['defaultInputValue'];
|
|
154
|
+
/**
|
|
155
|
+
* The value of the input (controlled).
|
|
156
|
+
*/
|
|
103
157
|
value?: RAC.ComboBoxProps<object>['inputValue'];
|
|
158
|
+
/**
|
|
159
|
+
* Called when the input value changes.
|
|
160
|
+
*/
|
|
104
161
|
onChange?: RAC.ComboBoxProps<object>['onInputChange'];
|
|
162
|
+
/**
|
|
163
|
+
* Called when the clear button is pressed.
|
|
164
|
+
*/
|
|
105
165
|
onClear?: () => void;
|
|
166
|
+
/**
|
|
167
|
+
* If `true`, the input is disabled.
|
|
168
|
+
*
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
106
171
|
disabled?: RAC.ComboBoxProps<object>['isDisabled'];
|
|
172
|
+
/**
|
|
173
|
+
* If `true`, the input is required.
|
|
174
|
+
*
|
|
175
|
+
* @default false
|
|
176
|
+
*/
|
|
107
177
|
required?: RAC.ComboBoxProps<object>['isRequired'];
|
|
178
|
+
/**
|
|
179
|
+
* If `true`, the field is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
180
|
+
*
|
|
181
|
+
* @default false
|
|
182
|
+
*/
|
|
108
183
|
error?: RAC.ComboBoxProps<object>['isInvalid'];
|
|
184
|
+
/**
|
|
185
|
+
* If `true`, the input is readOnly.
|
|
186
|
+
*
|
|
187
|
+
* @default false
|
|
188
|
+
*/
|
|
109
189
|
readOnly?: RAC.ComboBoxProps<object>['isReadOnly'];
|
|
110
190
|
variant?: string;
|
|
111
191
|
size?: string;
|
|
@@ -130,14 +210,45 @@ type RemovedProps$m = 'className' | 'style' | 'children' | 'isDisabled' | 'isReq
|
|
|
130
210
|
interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$m>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
131
211
|
variant?: string;
|
|
132
212
|
size?: string;
|
|
213
|
+
/**
|
|
214
|
+
* If `true`, the input is disabled.
|
|
215
|
+
* @default false
|
|
216
|
+
*/
|
|
133
217
|
disabled?: RAC.ComboBoxProps<any>['isDisabled'];
|
|
218
|
+
/**
|
|
219
|
+
* If `true`, the input is required.
|
|
220
|
+
* @default false
|
|
221
|
+
*/
|
|
134
222
|
required?: RAC.ComboBoxProps<any>['isRequired'];
|
|
223
|
+
/**
|
|
224
|
+
* If `true`, the input is readOnly.
|
|
225
|
+
* @default false
|
|
226
|
+
*/
|
|
135
227
|
readOnly?: RAC.ComboBoxProps<any>['isReadOnly'];
|
|
228
|
+
/**
|
|
229
|
+
* If `true`, the field is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
230
|
+
* @default false
|
|
231
|
+
*/
|
|
136
232
|
error?: RAC.ComboBoxProps<any>['isInvalid'];
|
|
233
|
+
/**
|
|
234
|
+
* The value of the input (uncontrolled).
|
|
235
|
+
*/
|
|
137
236
|
defaultValue?: RAC.ComboBoxProps<any>['defaultInputValue'];
|
|
237
|
+
/**
|
|
238
|
+
* The value of the input (controlled).
|
|
239
|
+
*/
|
|
138
240
|
value?: RAC.ComboBoxProps<any>['inputValue'];
|
|
241
|
+
/**
|
|
242
|
+
* Called when the input value changes.
|
|
243
|
+
*/
|
|
139
244
|
onChange?: RAC.ComboBoxProps<any>['onInputChange'];
|
|
245
|
+
/**
|
|
246
|
+
* ReactNode or function to render the list of items.
|
|
247
|
+
*/
|
|
140
248
|
children?: ReactNode | ((item: any) => ReactNode);
|
|
249
|
+
/**
|
|
250
|
+
* Set the placeholder for the select.
|
|
251
|
+
*/
|
|
141
252
|
placeholder?: string;
|
|
142
253
|
}
|
|
143
254
|
interface ComboBoxComponent extends ForwardRefExoticComponent<ComboBoxProps & RefAttributes<HTMLInputElement>> {
|
|
@@ -146,6 +257,9 @@ interface ComboBoxComponent extends ForwardRefExoticComponent<ComboBoxProps & Re
|
|
|
146
257
|
declare const _ComboBox: ComboBoxComponent;
|
|
147
258
|
|
|
148
259
|
interface BadgeProps extends Omit<HtmlProps<'div'>, 'className'> {
|
|
260
|
+
/**
|
|
261
|
+
* Children of the component
|
|
262
|
+
*/
|
|
149
263
|
children?: React.ReactNode;
|
|
150
264
|
variant?: string;
|
|
151
265
|
size?: string;
|
|
@@ -154,13 +268,27 @@ declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => reac
|
|
|
154
268
|
|
|
155
269
|
interface BreakoutProps extends Omit<HtmlProps<'div'>, 'className'>, AlignmentProp {
|
|
156
270
|
children?: ReactNode;
|
|
271
|
+
/**
|
|
272
|
+
* Set the height of the breakout element.
|
|
273
|
+
*/
|
|
157
274
|
height?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Horizontal alignment of the items inside the breakout element.
|
|
277
|
+
* @default left
|
|
278
|
+
*/
|
|
158
279
|
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
280
|
+
/**
|
|
281
|
+
* Vertical alignment of the items inside the breakout element.
|
|
282
|
+
* @default top
|
|
283
|
+
*/
|
|
159
284
|
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
160
285
|
}
|
|
161
|
-
declare const Breakout: ({ height, children,
|
|
286
|
+
declare const Breakout: ({ height, children, alignX, alignY, ...props }: BreakoutProps) => react_jsx_runtime.JSX.Element;
|
|
162
287
|
|
|
163
288
|
interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
289
|
+
/**
|
|
290
|
+
* Children of the component
|
|
291
|
+
*/
|
|
164
292
|
children?: ReactNode;
|
|
165
293
|
variant?: string;
|
|
166
294
|
size?: string;
|
|
@@ -171,9 +299,23 @@ type RemovedProps$l = 'isDisabled';
|
|
|
171
299
|
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$l> {
|
|
172
300
|
variant?: string;
|
|
173
301
|
size?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Stretches the button width with full available space.
|
|
304
|
+
* @default false
|
|
305
|
+
*/
|
|
174
306
|
fullWidth?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* Class of the component.
|
|
309
|
+
*/
|
|
175
310
|
className?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Children of the component
|
|
313
|
+
*/
|
|
176
314
|
children?: ReactNode;
|
|
315
|
+
/**
|
|
316
|
+
* Disables the button.
|
|
317
|
+
* @default false
|
|
318
|
+
*/
|
|
177
319
|
disabled?: RAC.ButtonProps['isDisabled'];
|
|
178
320
|
}
|
|
179
321
|
declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
@@ -182,21 +324,42 @@ interface CardProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp, P
|
|
|
182
324
|
children?: ReactNode;
|
|
183
325
|
variant?: string;
|
|
184
326
|
size?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Padding of the component.
|
|
329
|
+
*/
|
|
185
330
|
p?: PaddingSpaceProp['space'];
|
|
331
|
+
/**
|
|
332
|
+
* Padding horizontal (left and right) of the component.
|
|
333
|
+
*/
|
|
186
334
|
px?: PaddingSpacePropX['spaceX'];
|
|
335
|
+
/**
|
|
336
|
+
* Padding vertical (top and bottom) of the component.
|
|
337
|
+
*/
|
|
187
338
|
py?: PaddingSpacePropY['spaceY'];
|
|
188
339
|
}
|
|
189
340
|
declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
190
341
|
|
|
191
342
|
interface CenterProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp {
|
|
192
343
|
children?: ReactNode;
|
|
344
|
+
/**
|
|
345
|
+
* The maximum width of the container.
|
|
346
|
+
* @default 100%
|
|
347
|
+
*/
|
|
193
348
|
maxWidth?: string;
|
|
194
349
|
}
|
|
195
350
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
196
351
|
|
|
197
352
|
type CustomCheckboxProps = 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp';
|
|
198
353
|
interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps>, Pick<RAC.CheckboxProps, CustomCheckboxProps> {
|
|
354
|
+
/**
|
|
355
|
+
* Use when it represents both selected and not selected values.
|
|
356
|
+
* @default false
|
|
357
|
+
*/
|
|
199
358
|
indeterminate?: boolean;
|
|
359
|
+
/**
|
|
360
|
+
* If `true`, the checkbox is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
361
|
+
* @default false
|
|
362
|
+
*/
|
|
200
363
|
error?: boolean;
|
|
201
364
|
variant?: string;
|
|
202
365
|
size?: string;
|
|
@@ -205,31 +368,82 @@ declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.R
|
|
|
205
368
|
|
|
206
369
|
type RemovedProps$k = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
207
370
|
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$k>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
371
|
+
/**
|
|
372
|
+
* The children of the component
|
|
373
|
+
*/
|
|
208
374
|
children?: ReactNode;
|
|
209
375
|
variant?: string;
|
|
210
376
|
size?: string;
|
|
377
|
+
/**
|
|
378
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
379
|
+
* @default full
|
|
380
|
+
*/
|
|
211
381
|
width?: WidthProp['width'];
|
|
382
|
+
/**
|
|
383
|
+
* Sets all checkboxes to disabled
|
|
384
|
+
* @default false
|
|
385
|
+
*/
|
|
212
386
|
disabled?: RAC.CheckboxGroupProps['isDisabled'];
|
|
387
|
+
/**
|
|
388
|
+
* Sets the checkbox as required.
|
|
389
|
+
* @default false
|
|
390
|
+
*/
|
|
213
391
|
required?: RAC.CheckboxGroupProps['isRequired'];
|
|
392
|
+
/**
|
|
393
|
+
* If `true`, the checkbox is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
394
|
+
* @default false
|
|
395
|
+
*/
|
|
214
396
|
error?: RAC.CheckboxGroupProps['isInvalid'];
|
|
397
|
+
/**
|
|
398
|
+
* Sets the checkbox on read only.
|
|
399
|
+
* @default false
|
|
400
|
+
*/
|
|
215
401
|
readOnly?: RAC.CheckboxGroupProps['isReadOnly'];
|
|
402
|
+
/**
|
|
403
|
+
* Wheather the component is displayed vertically or horizontally.
|
|
404
|
+
* @default vertical
|
|
405
|
+
*/
|
|
216
406
|
orientation?: Orientation;
|
|
217
407
|
}
|
|
218
408
|
declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
219
409
|
|
|
220
410
|
interface ColumnsProps extends GapSpaceProp {
|
|
411
|
+
/**
|
|
412
|
+
* The children of the component.
|
|
413
|
+
*/
|
|
221
414
|
children?: ReactNode;
|
|
415
|
+
/**
|
|
416
|
+
* An array of numbers to set the size of the children. The columns array length and the count of children must be the same. Write "fit" for the column you want to have it fitting the contents width and height.
|
|
417
|
+
*/
|
|
222
418
|
columns: Array<number | 'fit'>;
|
|
419
|
+
/**
|
|
420
|
+
* Collapse children into a vertical layout at given width. Note that `collapseAt` is based on the total element width, and not the window width. With a default value of "0" columns will not collapse by default.
|
|
421
|
+
*/
|
|
223
422
|
collapseAt?: string;
|
|
423
|
+
/**
|
|
424
|
+
* Stretch to height of parent container.
|
|
425
|
+
* @default false
|
|
426
|
+
*/
|
|
224
427
|
stretch?: boolean;
|
|
225
428
|
}
|
|
226
429
|
declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => react_jsx_runtime.JSX.Element;
|
|
227
430
|
|
|
228
431
|
interface ContainerProps extends Omit<HtmlProps<'div'>, 'className'>, PlaceItemsProp, GridColumn, GridColsAlignProp {
|
|
229
432
|
children?: ReactNode;
|
|
433
|
+
/**
|
|
434
|
+
* The content type of the container.
|
|
435
|
+
* @default 'content'
|
|
436
|
+
*/
|
|
230
437
|
contentType?: 'content' | 'header';
|
|
231
438
|
size?: keyof typeof content | keyof typeof header;
|
|
439
|
+
/**
|
|
440
|
+
* Set alignment the content inside the container.
|
|
441
|
+
* @default left
|
|
442
|
+
*/
|
|
232
443
|
align?: 'left' | 'right' | 'center';
|
|
444
|
+
/**
|
|
445
|
+
* Set alignment of the items inside the container.
|
|
446
|
+
*/
|
|
233
447
|
alignItems?: PlaceItemsProp['align'];
|
|
234
448
|
}
|
|
235
449
|
declare const content: {
|
|
@@ -245,17 +459,37 @@ declare const header: {
|
|
|
245
459
|
declare const Container: ({ contentType, size, align, alignItems, children, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
246
460
|
|
|
247
461
|
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'> {
|
|
462
|
+
/**
|
|
463
|
+
* Wheather compnent is rendered.
|
|
464
|
+
* @default false
|
|
465
|
+
*/
|
|
248
466
|
open?: boolean;
|
|
467
|
+
/**
|
|
468
|
+
* Whether to close the overlay when the user interacts outside it.
|
|
469
|
+
* @default false
|
|
470
|
+
*/
|
|
249
471
|
dismissable?: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* Whether pressing the escape key to close the overlay should be disabled.
|
|
474
|
+
*/
|
|
250
475
|
keyboardDismissable?: boolean;
|
|
476
|
+
/**
|
|
477
|
+
* If `true`, the dialog will be non-modal, meaning it will not block interaction with the background content.
|
|
478
|
+
*/
|
|
251
479
|
isNonModal?: boolean;
|
|
252
480
|
}
|
|
253
481
|
|
|
254
482
|
type RemovedProps$j = 'className' | 'level';
|
|
255
483
|
interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$j>, TextAlignProp {
|
|
484
|
+
/**
|
|
485
|
+
* Set the color of the headline.
|
|
486
|
+
*/
|
|
256
487
|
color?: string;
|
|
257
488
|
variant?: string;
|
|
258
489
|
size?: string;
|
|
490
|
+
/**
|
|
491
|
+
* Set a different level from theme, values are from 1 - 6.
|
|
492
|
+
*/
|
|
259
493
|
level?: '1' | '2' | '3' | '4' | '5' | '6' | RAC.HeadingProps['level'];
|
|
260
494
|
}
|
|
261
495
|
declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -265,7 +499,14 @@ interface DialogHeadlineProps extends Omit<HeadlineProps, 'slot'> {
|
|
|
265
499
|
interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
|
|
266
500
|
variant?: string;
|
|
267
501
|
size?: string;
|
|
502
|
+
/**
|
|
503
|
+
* Show the close button.
|
|
504
|
+
*/
|
|
268
505
|
closeButton?: boolean;
|
|
506
|
+
/**
|
|
507
|
+
* If `true`, the dialog will be non-modal, meaning it will not block interaction with the background content.
|
|
508
|
+
* @default false
|
|
509
|
+
*/
|
|
269
510
|
isNonModal?: boolean;
|
|
270
511
|
}
|
|
271
512
|
declare const _Dialog: {
|
|
@@ -280,6 +521,9 @@ interface DividerProps extends RAC.SeparatorProps {
|
|
|
280
521
|
declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
|
|
281
522
|
|
|
282
523
|
interface FooterProps extends Omit<HtmlProps<'footer'>, 'className'> {
|
|
524
|
+
/**
|
|
525
|
+
* The children of the component.
|
|
526
|
+
*/
|
|
283
527
|
children?: ReactNode;
|
|
284
528
|
variant?: string;
|
|
285
529
|
size?: string;
|
|
@@ -307,6 +551,9 @@ declare const Grid: {
|
|
|
307
551
|
};
|
|
308
552
|
|
|
309
553
|
interface HeaderProps extends Omit<RAC.HeadingProps, 'children'> {
|
|
554
|
+
/**
|
|
555
|
+
* The children of the component.
|
|
556
|
+
*/
|
|
310
557
|
children?: ReactNode;
|
|
311
558
|
variant?: string;
|
|
312
559
|
size?: string;
|
|
@@ -316,14 +563,28 @@ declare const _Header: ({ variant, size, ...props }: HeaderProps) => react_jsx_r
|
|
|
316
563
|
interface ImageProps extends Omit<HtmlProps<'img'>, 'className'>, ObjectFitProp, ObjectPositionProp {
|
|
317
564
|
variant?: string;
|
|
318
565
|
size?: string;
|
|
566
|
+
/**
|
|
567
|
+
* The children of the component.
|
|
568
|
+
*/
|
|
319
569
|
children?: never;
|
|
570
|
+
/**
|
|
571
|
+
* specifies an alternate text for an image, if the image cannot be displayed.
|
|
572
|
+
*/
|
|
320
573
|
alt: string;
|
|
321
574
|
}
|
|
322
575
|
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
323
576
|
|
|
324
577
|
interface InlineProps extends AlignmentProp, GapSpaceProp {
|
|
325
578
|
children?: ReactNode;
|
|
579
|
+
/**
|
|
580
|
+
* Horizontal alignment of the items inside the breakout element.
|
|
581
|
+
* @default 'left'
|
|
582
|
+
*/
|
|
326
583
|
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
584
|
+
/**
|
|
585
|
+
* Vertical alignment of the items inside the breakout element.
|
|
586
|
+
* @default 'center'
|
|
587
|
+
*/
|
|
327
588
|
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
328
589
|
}
|
|
329
590
|
declare const Inline: ({ space, orientation, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -343,17 +604,45 @@ interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProp
|
|
|
343
604
|
variant?: string;
|
|
344
605
|
size?: string;
|
|
345
606
|
action?: ReactElement;
|
|
607
|
+
/**
|
|
608
|
+
* If `true`, the date field is required.
|
|
609
|
+
* @default false
|
|
610
|
+
*/
|
|
346
611
|
required?: RAC.DateFieldProps<DateValue>['isRequired'];
|
|
612
|
+
/**
|
|
613
|
+
* If `true`, the date field is disabled.
|
|
614
|
+
* @default false
|
|
615
|
+
*/
|
|
347
616
|
disabled?: RAC.DateFieldProps<DateValue>['isDisabled'];
|
|
617
|
+
/**
|
|
618
|
+
* If `true`, the field is considered invalid and if set the errorMessage is shown instead of the `description`.
|
|
619
|
+
* @default false
|
|
620
|
+
*/
|
|
348
621
|
error?: RAC.DateFieldProps<DateValue>['isInvalid'];
|
|
622
|
+
/**
|
|
623
|
+
* If `true`, the date field is readOnly.
|
|
624
|
+
* @default false
|
|
625
|
+
*/
|
|
349
626
|
readOnly?: RAC.DateFieldProps<DateValue>['isReadOnly'];
|
|
627
|
+
/**
|
|
628
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
629
|
+
* @default 'full'
|
|
630
|
+
*/
|
|
350
631
|
width?: WidthProp['width'];
|
|
351
632
|
}
|
|
352
633
|
declare const _DateField: react.ForwardRefExoticComponent<DateFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
353
634
|
|
|
354
635
|
type RemovedProps$g = 'isDisabled' | 'isReadOnly' | 'isInvalid' | 'errorMessage' | 'className' | 'style';
|
|
355
636
|
interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$g> {
|
|
637
|
+
/**
|
|
638
|
+
* Disables the Calendar.
|
|
639
|
+
* @default false
|
|
640
|
+
*/
|
|
356
641
|
disabled?: boolean;
|
|
642
|
+
/**
|
|
643
|
+
* Whether the calendar value is immutable.
|
|
644
|
+
* @default false
|
|
645
|
+
*/
|
|
357
646
|
readOnly?: boolean;
|
|
358
647
|
variant?: string;
|
|
359
648
|
size?: string;
|
|
@@ -363,24 +652,59 @@ declare const _Calendar: ({ disabled, readOnly, size, variant, ...rest }: Calend
|
|
|
363
652
|
|
|
364
653
|
type RemovedProps$f = 'isDisabled' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
365
654
|
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$f>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
655
|
+
/**
|
|
656
|
+
* If `true`, the date picker is disabled.
|
|
657
|
+
* @default false
|
|
658
|
+
*/
|
|
366
659
|
disabled?: RAC.DatePickerProps<DateValue>['isDisabled'];
|
|
660
|
+
/**
|
|
661
|
+
* If `true`, the date picker is required.
|
|
662
|
+
* @default false
|
|
663
|
+
*/
|
|
367
664
|
required?: RAC.DatePickerProps<DateValue>['isRequired'];
|
|
665
|
+
/**
|
|
666
|
+
* If `true`, the date picker is readOnly.
|
|
667
|
+
* @default false
|
|
668
|
+
*/
|
|
368
669
|
readOnly?: RAC.DatePickerProps<DateValue>['isReadOnly'];
|
|
670
|
+
/**
|
|
671
|
+
* If `true`, the field is considered invalid and if set the errorMessage is shown instead of the `description`.
|
|
672
|
+
* @default false
|
|
673
|
+
*/
|
|
369
674
|
error?: RAC.DatePickerProps<DateValue>['isInvalid'];
|
|
675
|
+
/**
|
|
676
|
+
* Whether the calendar is open by default (controlled).
|
|
677
|
+
* @default false
|
|
678
|
+
*/
|
|
370
679
|
open?: RAC.DatePickerProps<DateValue>['isOpen'];
|
|
371
680
|
variant?: string;
|
|
372
681
|
size?: string;
|
|
682
|
+
/**
|
|
683
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
684
|
+
*/
|
|
373
685
|
width?: WidthProp['width'];
|
|
374
686
|
}
|
|
375
687
|
declare const _DatePicker: ({ disabled, required, readOnly, error, variant, size, open, granularity, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
376
688
|
|
|
377
689
|
type InsetProps = {
|
|
690
|
+
/**
|
|
691
|
+
* The children of the component
|
|
692
|
+
*/
|
|
378
693
|
children: ReactNode;
|
|
379
694
|
space?: never;
|
|
695
|
+
/**
|
|
696
|
+
* Horizontal alignment for the children
|
|
697
|
+
*/
|
|
380
698
|
spaceX?: PaddingSpacePropX['spaceX'];
|
|
699
|
+
/**
|
|
700
|
+
* Vertical alignment for the children
|
|
701
|
+
*/
|
|
381
702
|
spaceY?: PaddingSpacePropY['spaceY'];
|
|
382
703
|
} | {
|
|
383
704
|
children: ReactNode;
|
|
705
|
+
/**
|
|
706
|
+
* The space between the children
|
|
707
|
+
*/
|
|
384
708
|
space?: PaddingSpaceProp['space'];
|
|
385
709
|
spaceX?: never;
|
|
386
710
|
spaceY?: never;
|
|
@@ -398,6 +722,10 @@ type RemovedProps$d = 'className' | 'isDisabled';
|
|
|
398
722
|
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$d> {
|
|
399
723
|
variant?: string;
|
|
400
724
|
size?: string;
|
|
725
|
+
/**
|
|
726
|
+
* The link can't be clicked
|
|
727
|
+
* @default false
|
|
728
|
+
*/
|
|
401
729
|
disabled?: RAC.LinkProps['isDisabled'];
|
|
402
730
|
}
|
|
403
731
|
declare const _Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -409,7 +737,14 @@ interface ListItemProps extends Omit<HtmlProps<'li'>, 'className'> {
|
|
|
409
737
|
interface ListProps extends Omit<HtmlProps<'ul'>, 'className'> {
|
|
410
738
|
variant?: string;
|
|
411
739
|
size?: string;
|
|
740
|
+
/**
|
|
741
|
+
* Displaying a unordered or ordered list for showing Information.
|
|
742
|
+
* @default 'ul'
|
|
743
|
+
*/
|
|
412
744
|
as?: 'ul' | 'ol';
|
|
745
|
+
/**
|
|
746
|
+
* The children of the component.
|
|
747
|
+
*/
|
|
413
748
|
children?: ReactNode;
|
|
414
749
|
}
|
|
415
750
|
declare const List: {
|
|
@@ -436,13 +771,33 @@ declare const _Popover: react.ForwardRefExoticComponent<PopoverProps & react.Ref
|
|
|
436
771
|
|
|
437
772
|
type RemovedProps$a = 'isOpen' | 'className' | 'style' | 'children';
|
|
438
773
|
interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$a>, Omit<RAC.MenuProps<object>, RemovedProps$a> {
|
|
774
|
+
/**
|
|
775
|
+
* Whether the menu is open.
|
|
776
|
+
* @default false
|
|
777
|
+
*/
|
|
439
778
|
open?: RAC.MenuTriggerProps['isOpen'];
|
|
779
|
+
/**
|
|
780
|
+
* Placement of the popover.
|
|
781
|
+
* @default 'bottom'
|
|
782
|
+
*/
|
|
440
783
|
placement?: PopoverProps['placement'];
|
|
784
|
+
/**
|
|
785
|
+
* The label for the menu trigger button.
|
|
786
|
+
*/
|
|
441
787
|
label?: ReactNode;
|
|
442
788
|
variant?: string;
|
|
443
789
|
size?: string;
|
|
790
|
+
/**
|
|
791
|
+
* Handler that is called when an action is performed on an item.
|
|
792
|
+
*/
|
|
444
793
|
onAction?: (key: Key$1) => void;
|
|
794
|
+
/**
|
|
795
|
+
* The contents of the menu.
|
|
796
|
+
*/
|
|
445
797
|
children?: ReactNode;
|
|
798
|
+
/**
|
|
799
|
+
* Whether the menu trigger is disabled.
|
|
800
|
+
*/
|
|
446
801
|
disabled?: boolean;
|
|
447
802
|
}
|
|
448
803
|
declare const _Menu: {
|
|
@@ -458,18 +813,29 @@ interface ActionMenuProps extends RAC.MenuProps<object> {
|
|
|
458
813
|
}
|
|
459
814
|
declare const ActionMenu: ({ variant, size, disabled, ...props }: ActionMenuProps) => react_jsx_runtime.JSX.Element;
|
|
460
815
|
|
|
816
|
+
interface SectionMessageContentProps {
|
|
817
|
+
children?: ReactNode;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
interface SectionMessageTitleProps {
|
|
821
|
+
children?: ReactNode;
|
|
822
|
+
}
|
|
823
|
+
|
|
461
824
|
declare const icons: {
|
|
462
825
|
success: () => react_jsx_runtime.JSX.Element;
|
|
463
826
|
info: () => react_jsx_runtime.JSX.Element;
|
|
464
827
|
warning: () => react_jsx_runtime.JSX.Element;
|
|
465
828
|
error: () => react_jsx_runtime.JSX.Element;
|
|
466
829
|
};
|
|
467
|
-
interface
|
|
468
|
-
messageTitle: ReactNode;
|
|
830
|
+
interface SectionMessageProps extends Omit<HtmlProps<'div'>, 'className'> {
|
|
469
831
|
variant?: keyof typeof icons;
|
|
470
832
|
size?: string;
|
|
471
833
|
}
|
|
472
|
-
declare const
|
|
834
|
+
declare const SectionMessage: {
|
|
835
|
+
({ variant, size, children, ...props }: SectionMessageProps): react_jsx_runtime.JSX.Element;
|
|
836
|
+
Title: ({ children }: SectionMessageTitleProps) => react_jsx_runtime.JSX.Element;
|
|
837
|
+
Content: ({ children, }: SectionMessageContentProps) => react_jsx_runtime.JSX.Element;
|
|
838
|
+
};
|
|
473
839
|
|
|
474
840
|
interface MultiSelectItemProps {
|
|
475
841
|
id: Key;
|
|
@@ -489,12 +855,40 @@ type RemovedProps$9 = 'className' | 'style' | 'children' | 'isDisabled' | 'isReq
|
|
|
489
855
|
interface NumberFieldProps extends Omit<RAC.NumberFieldProps, RemovedProps$9>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
490
856
|
variant?: string;
|
|
491
857
|
size?: string;
|
|
858
|
+
/**
|
|
859
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
860
|
+
* @default full
|
|
861
|
+
*/
|
|
492
862
|
width?: WidthProp['width'];
|
|
863
|
+
/**
|
|
864
|
+
* If `true`, the input is disabled.
|
|
865
|
+
* @default false
|
|
866
|
+
*/
|
|
493
867
|
disabled?: RAC.NumberFieldProps['isDisabled'];
|
|
868
|
+
/**
|
|
869
|
+
* If `true`, the input is required.
|
|
870
|
+
* @default false
|
|
871
|
+
*/
|
|
494
872
|
required?: RAC.NumberFieldProps['isRequired'];
|
|
873
|
+
/**
|
|
874
|
+
* If `true`, the field is considered invalid and if set the errorMessage is shown instead of the `description`.
|
|
875
|
+
* @default false
|
|
876
|
+
*/
|
|
495
877
|
error?: RAC.NumberFieldProps['isInvalid'];
|
|
878
|
+
/**
|
|
879
|
+
* If `true`, the input is readOnly.
|
|
880
|
+
* @default false
|
|
881
|
+
*/
|
|
496
882
|
readOnly?: RAC.NumberFieldProps['isReadOnly'];
|
|
883
|
+
/**
|
|
884
|
+
* Property for hiding the step buttons of the field.
|
|
885
|
+
* @default false
|
|
886
|
+
*/
|
|
497
887
|
hideStepper?: boolean;
|
|
888
|
+
/**
|
|
889
|
+
* Placeholder text for the input field.
|
|
890
|
+
* @default none
|
|
891
|
+
*/
|
|
498
892
|
placeholder?: string;
|
|
499
893
|
}
|
|
500
894
|
declare const _NumberField: react.ForwardRefExoticComponent<NumberFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
@@ -526,16 +920,59 @@ type RemovedProps$8 = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRe
|
|
|
526
920
|
interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$8> {
|
|
527
921
|
variant?: string;
|
|
528
922
|
size?: string;
|
|
923
|
+
/**
|
|
924
|
+
* Set the label of the radio group.
|
|
925
|
+
* @default none
|
|
926
|
+
*/
|
|
529
927
|
label?: string;
|
|
928
|
+
/**
|
|
929
|
+
* Set the radio group help text.
|
|
930
|
+
* @default none
|
|
931
|
+
*/
|
|
530
932
|
description?: string;
|
|
933
|
+
/**
|
|
934
|
+
* Set the radio group error message if an error occurs.
|
|
935
|
+
* @default none
|
|
936
|
+
*/
|
|
531
937
|
errorMessage?: string;
|
|
938
|
+
/**
|
|
939
|
+
* The children elements of the radio group.
|
|
940
|
+
*/
|
|
532
941
|
children: ReactNode[];
|
|
942
|
+
/**
|
|
943
|
+
* Control the width of the field.
|
|
944
|
+
* @default 100%
|
|
945
|
+
*/
|
|
533
946
|
width?: WidthProp['width'];
|
|
947
|
+
/**
|
|
948
|
+
* If `true`, the radio group is considered invalid and if set the `errorMessage` is shown.
|
|
949
|
+
* @default false
|
|
950
|
+
*/
|
|
534
951
|
error?: RAC.RadioGroupProps['isInvalid'];
|
|
952
|
+
/**
|
|
953
|
+
* If `true`, the radio group is required.
|
|
954
|
+
* @default false
|
|
955
|
+
*/
|
|
535
956
|
required?: RAC.RadioGroupProps['isRequired'];
|
|
957
|
+
/**
|
|
958
|
+
* If `true`, the radio group is disabled.
|
|
959
|
+
* @default false
|
|
960
|
+
*/
|
|
536
961
|
disabled?: RAC.RadioGroupProps['isDisabled'];
|
|
962
|
+
/**
|
|
963
|
+
* Set the radio group as read-only.
|
|
964
|
+
* @default false
|
|
965
|
+
*/
|
|
537
966
|
readOnly?: boolean;
|
|
967
|
+
/**
|
|
968
|
+
* The selected value of the radio group.
|
|
969
|
+
*/
|
|
538
970
|
value?: string;
|
|
971
|
+
/**
|
|
972
|
+
* Set the radio group direction.
|
|
973
|
+
* @default vertical
|
|
974
|
+
*/
|
|
975
|
+
orientation?: 'horizontal' | 'vertical';
|
|
539
976
|
}
|
|
540
977
|
declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
541
978
|
|
|
@@ -543,8 +980,16 @@ type RemovedProps$7 = 'className' | 'style' | 'children' | 'isDisabled';
|
|
|
543
980
|
interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$7> {
|
|
544
981
|
variant?: string;
|
|
545
982
|
size?: string;
|
|
983
|
+
/**
|
|
984
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
985
|
+
* @default full
|
|
986
|
+
*/
|
|
546
987
|
width?: string;
|
|
547
988
|
children?: ReactNode;
|
|
989
|
+
/**
|
|
990
|
+
* Set the radio disabled.
|
|
991
|
+
* @default false
|
|
992
|
+
*/
|
|
548
993
|
disabled?: RAC.RadioProps['isDisabled'];
|
|
549
994
|
}
|
|
550
995
|
declare const _Radio: RadioComponent;
|
|
@@ -559,17 +1004,55 @@ interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttri
|
|
|
559
1004
|
|
|
560
1005
|
type RemovedProps$6 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
561
1006
|
interface SearchFieldProps extends Omit<RAC.SearchFieldProps, RemovedProps$6>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1007
|
+
/**
|
|
1008
|
+
* Icon element to display in the search field.
|
|
1009
|
+
*/
|
|
562
1010
|
icon?: ReactElement;
|
|
1011
|
+
/**
|
|
1012
|
+
* Action element to display in the search field.
|
|
1013
|
+
*/
|
|
563
1014
|
action?: ReactElement;
|
|
564
1015
|
variant?: string;
|
|
565
1016
|
size?: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
1019
|
+
* @default full
|
|
1020
|
+
*/
|
|
566
1021
|
width?: WidthProp['width'];
|
|
1022
|
+
/**
|
|
1023
|
+
* If `true`, the input is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
1024
|
+
* @default false
|
|
1025
|
+
*/
|
|
567
1026
|
error?: RAC.SearchFieldProps['isInvalid'];
|
|
1027
|
+
/**
|
|
1028
|
+
* If `true`, the input is disabled.
|
|
1029
|
+
* @default false
|
|
1030
|
+
*/
|
|
568
1031
|
disabled?: RAC.SearchFieldProps['isDisabled'];
|
|
1032
|
+
/**
|
|
1033
|
+
* If `true`, the input is required.
|
|
1034
|
+
* @default false
|
|
1035
|
+
*/
|
|
569
1036
|
required?: RAC.SearchFieldProps['isRequired'];
|
|
1037
|
+
/**
|
|
1038
|
+
* If `true`, the input is readOnly.
|
|
1039
|
+
* @default false
|
|
1040
|
+
*/
|
|
570
1041
|
readOnly?: RAC.SearchFieldProps['isReadOnly'];
|
|
1042
|
+
/**
|
|
1043
|
+
* The current value of the input field.
|
|
1044
|
+
* @default none
|
|
1045
|
+
*/
|
|
571
1046
|
value?: string;
|
|
1047
|
+
/**
|
|
1048
|
+
* The default value of the input field.
|
|
1049
|
+
* @default none
|
|
1050
|
+
*/
|
|
572
1051
|
defaultValue?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* Placeholder text for the input field.
|
|
1054
|
+
* @default none
|
|
1055
|
+
*/
|
|
573
1056
|
placeholder?: string;
|
|
574
1057
|
}
|
|
575
1058
|
declare const _SearchField: react.ForwardRefExoticComponent<SearchFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
@@ -616,10 +1099,21 @@ interface ScrollableProps extends WidthProp {
|
|
|
616
1099
|
declare const Scrollable: ({ children, width, height, ...props }: ScrollableProps) => react_jsx_runtime.JSX.Element;
|
|
617
1100
|
|
|
618
1101
|
interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'label'> {
|
|
1102
|
+
/**
|
|
1103
|
+
* Labels for the thumbs in the slider.
|
|
1104
|
+
*/
|
|
619
1105
|
thumbLabels?: string[];
|
|
1106
|
+
/**
|
|
1107
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
1108
|
+
* @default full
|
|
1109
|
+
*/
|
|
620
1110
|
width?: WidthProp['width'];
|
|
621
1111
|
variant?: string;
|
|
622
1112
|
size?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* If `true`, the input is disabled.
|
|
1115
|
+
* @default false
|
|
1116
|
+
*/
|
|
623
1117
|
disabled?: boolean;
|
|
624
1118
|
}
|
|
625
1119
|
declare const _Slider: react__default.ForwardRefExoticComponent<SliderProps<number | number[]> & react__default.RefAttributes<HTMLDivElement>>;
|
|
@@ -630,20 +1124,48 @@ declare const Split: (props: SplitProps) => react_jsx_runtime.JSX.Element;
|
|
|
630
1124
|
|
|
631
1125
|
interface StackProps extends AlignmentProp, GapSpaceProp {
|
|
632
1126
|
children?: ReactNode;
|
|
1127
|
+
/**
|
|
1128
|
+
* Stretch to fill space (vertical AND horizontal, useful if you want to change y alignment).
|
|
1129
|
+
* @default false
|
|
1130
|
+
*/
|
|
633
1131
|
stretch?: boolean;
|
|
1132
|
+
/**
|
|
1133
|
+
* Horizontal alignment for the children.
|
|
1134
|
+
* @default none
|
|
1135
|
+
*/
|
|
634
1136
|
alignX?: keyof typeof alignment.vertical.alignmentX;
|
|
1137
|
+
/**
|
|
1138
|
+
* Vertical alignment for the children.
|
|
1139
|
+
* @default none
|
|
1140
|
+
*/
|
|
635
1141
|
alignY?: keyof typeof alignment.vertical.alignmentY;
|
|
636
1142
|
}
|
|
637
|
-
declare const Stack: ({ children, space, stretch,
|
|
1143
|
+
declare const Stack: ({ children, space, stretch, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
638
1144
|
|
|
639
1145
|
type RemovedProps$5 = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children';
|
|
640
1146
|
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$5> {
|
|
641
1147
|
variant?: string;
|
|
642
1148
|
size?: string;
|
|
643
1149
|
children?: ReactNode;
|
|
1150
|
+
/**
|
|
1151
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
1152
|
+
* @default full
|
|
1153
|
+
*/
|
|
644
1154
|
width?: WidthProp['width'];
|
|
1155
|
+
/**
|
|
1156
|
+
* Disables the switch.
|
|
1157
|
+
* @default false
|
|
1158
|
+
*/
|
|
645
1159
|
disabled?: RAC.SwitchProps['isDisabled'];
|
|
1160
|
+
/**
|
|
1161
|
+
* Set the switch to read-only.
|
|
1162
|
+
* @default false
|
|
1163
|
+
*/
|
|
646
1164
|
readOnly?: RAC.SwitchProps['isReadOnly'];
|
|
1165
|
+
/**
|
|
1166
|
+
* With this prop you can set the switch selected.
|
|
1167
|
+
* @default false
|
|
1168
|
+
*/
|
|
647
1169
|
selected?: RAC.SwitchProps['isSelected'];
|
|
648
1170
|
}
|
|
649
1171
|
declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLLabelElement>>;
|
|
@@ -651,8 +1173,20 @@ declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAt
|
|
|
651
1173
|
interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes'> {
|
|
652
1174
|
variant?: string;
|
|
653
1175
|
size?: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* Stretch table to fill the container.
|
|
1178
|
+
* @default false
|
|
1179
|
+
*/
|
|
654
1180
|
stretch?: boolean;
|
|
1181
|
+
/**
|
|
1182
|
+
* Make the column sticky to the top of the table.
|
|
1183
|
+
* @default true
|
|
1184
|
+
*/
|
|
655
1185
|
stickyHeader?: boolean;
|
|
1186
|
+
/**
|
|
1187
|
+
* Disable keyboard navigation. Use if you have input fields in your table. Be aware that this is bad for accessibility.
|
|
1188
|
+
* @default false
|
|
1189
|
+
*/
|
|
656
1190
|
disableKeyboardNavigation?: boolean;
|
|
657
1191
|
}
|
|
658
1192
|
interface RowProps extends RowProps$1<any> {
|
|
@@ -660,6 +1194,10 @@ interface RowProps extends RowProps$1<any> {
|
|
|
660
1194
|
size?: string;
|
|
661
1195
|
}
|
|
662
1196
|
interface ColumnProps extends Omit<ColumnProps$1<any>, 'width'>, WidthProp {
|
|
1197
|
+
/**
|
|
1198
|
+
* Control the alignment of Column.
|
|
1199
|
+
* @default left
|
|
1200
|
+
*/
|
|
663
1201
|
align?: Exclude<JSX.IntrinsicElements['td']['align'], 'char'>;
|
|
664
1202
|
}
|
|
665
1203
|
declare const Table: Table;
|
|
@@ -677,8 +1215,15 @@ interface Table {
|
|
|
677
1215
|
}
|
|
678
1216
|
|
|
679
1217
|
interface TextProps extends Omit<HtmlProps<'p'>, 'className'>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1218
|
+
/**
|
|
1219
|
+
* The children of the component
|
|
1220
|
+
*/
|
|
680
1221
|
children?: React.ReactNode;
|
|
681
1222
|
variant?: string;
|
|
1223
|
+
/**
|
|
1224
|
+
* Set the text color.
|
|
1225
|
+
* @default currentColor
|
|
1226
|
+
*/
|
|
682
1227
|
color?: string;
|
|
683
1228
|
size?: string;
|
|
684
1229
|
}
|
|
@@ -688,14 +1233,51 @@ type RemovedProps$4 = 'className' | 'style' | 'children' | 'isDisabled' | 'isReq
|
|
|
688
1233
|
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$4>, Pick<RAC.TextAreaProps, 'rows'>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
689
1234
|
variant?: string;
|
|
690
1235
|
size?: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
1238
|
+
* @default full
|
|
1239
|
+
*/
|
|
691
1240
|
width?: WidthProp['width'];
|
|
1241
|
+
/**
|
|
1242
|
+
* If `true`, the textarea is disabled.
|
|
1243
|
+
* @default false
|
|
1244
|
+
*/
|
|
692
1245
|
disabled?: RAC.TextFieldProps['isDisabled'];
|
|
1246
|
+
/**
|
|
1247
|
+
* If `true`, the textarea is required.
|
|
1248
|
+
* @default false
|
|
1249
|
+
*/
|
|
693
1250
|
required?: RAC.TextFieldProps['isRequired'];
|
|
1251
|
+
/**
|
|
1252
|
+
* If `true`, the field is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
1253
|
+
* @default false
|
|
1254
|
+
*/
|
|
694
1255
|
error?: RAC.TextFieldProps['isInvalid'];
|
|
1256
|
+
/**
|
|
1257
|
+
* If `true`, the textarea is read-only.
|
|
1258
|
+
* @default false
|
|
1259
|
+
*/
|
|
695
1260
|
readOnly?: RAC.TextFieldProps['isReadOnly'];
|
|
1261
|
+
/**
|
|
1262
|
+
* The value of the textarea.
|
|
1263
|
+
* @default none
|
|
1264
|
+
*/
|
|
696
1265
|
value?: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* The default value of the textarea.
|
|
1268
|
+
* @default none
|
|
1269
|
+
*/
|
|
697
1270
|
defaultValue?: string;
|
|
1271
|
+
/**
|
|
1272
|
+
* Placeholder text for the textarea.
|
|
1273
|
+
* @default none
|
|
1274
|
+
*/
|
|
698
1275
|
placeholder?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* Sets the number of rows in the textarea.
|
|
1278
|
+
* @default none
|
|
1279
|
+
*/
|
|
1280
|
+
rows?: number;
|
|
699
1281
|
}
|
|
700
1282
|
declare const _TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
701
1283
|
|
|
@@ -703,23 +1285,78 @@ type RemovedProps$3 = 'className' | 'style' | 'children' | 'isDisabled' | 'isReq
|
|
|
703
1285
|
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$3>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
704
1286
|
variant?: string;
|
|
705
1287
|
size?: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
1290
|
+
* @default full
|
|
1291
|
+
*/
|
|
706
1292
|
width?: WidthProp['width'];
|
|
1293
|
+
/**
|
|
1294
|
+
* If `true`, the input is disabled.
|
|
1295
|
+
* @default false
|
|
1296
|
+
*/
|
|
707
1297
|
disabled?: RAC.TextFieldProps['isDisabled'];
|
|
1298
|
+
/**
|
|
1299
|
+
* If `true`, the input is required.
|
|
1300
|
+
* @default false
|
|
1301
|
+
*/
|
|
708
1302
|
required?: RAC.TextFieldProps['isRequired'];
|
|
1303
|
+
/**
|
|
1304
|
+
* If `true`, the field is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
1305
|
+
* @default false
|
|
1306
|
+
*/
|
|
709
1307
|
error?: RAC.TextFieldProps['isInvalid'];
|
|
1308
|
+
/**
|
|
1309
|
+
* If `true`, the input is readOnly.
|
|
1310
|
+
* @default false
|
|
1311
|
+
*/
|
|
710
1312
|
readOnly?: RAC.TextFieldProps['isReadOnly'];
|
|
1313
|
+
/**
|
|
1314
|
+
* The minimum value for the input field.
|
|
1315
|
+
* @default none
|
|
1316
|
+
*/
|
|
711
1317
|
min?: HTMLInputElement['min'];
|
|
1318
|
+
/**
|
|
1319
|
+
* The maximum value for the input field.
|
|
1320
|
+
* @default none
|
|
1321
|
+
*/
|
|
712
1322
|
max?: HTMLInputElement['max'];
|
|
1323
|
+
/**
|
|
1324
|
+
* The value of the input field.
|
|
1325
|
+
* @default none
|
|
1326
|
+
*/
|
|
713
1327
|
value?: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* The default value of the input field.
|
|
1330
|
+
* @default none
|
|
1331
|
+
*/
|
|
714
1332
|
defaultValue?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Placeholder text for the input field.
|
|
1335
|
+
* @default none
|
|
1336
|
+
*/
|
|
715
1337
|
placeholder?: string;
|
|
716
1338
|
}
|
|
717
1339
|
declare const _TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
718
1340
|
|
|
719
1341
|
interface TilesProps extends GapSpaceProp {
|
|
1342
|
+
/**
|
|
1343
|
+
* The children of the component.
|
|
1344
|
+
*/
|
|
720
1345
|
children: ReactNode;
|
|
1346
|
+
/**
|
|
1347
|
+
* Set minimum width for all items inside.
|
|
1348
|
+
* @default '250px'
|
|
1349
|
+
*/
|
|
721
1350
|
tilesWidth: string;
|
|
1351
|
+
/**
|
|
1352
|
+
* Tiles will stretch to available width and will distribute their width equally. Note that this can make them wider than the specified tiles width, but not smaller than the given "tilesWidth". Basically, this is full responsive mode.
|
|
1353
|
+
* @default false
|
|
1354
|
+
*/
|
|
722
1355
|
stretch?: boolean;
|
|
1356
|
+
/**
|
|
1357
|
+
* If true, all items will have the size of the biggest item.
|
|
1358
|
+
* @default false
|
|
1359
|
+
*/
|
|
723
1360
|
equalHeight?: boolean;
|
|
724
1361
|
}
|
|
725
1362
|
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -732,9 +1369,15 @@ interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, Rem
|
|
|
732
1369
|
|
|
733
1370
|
type RemovedProps$1 = 'className' | 'isOpen' | 'style';
|
|
734
1371
|
interface TooltipProps extends Omit<RAC.TooltipProps, RemovedProps$1> {
|
|
1372
|
+
/**
|
|
1373
|
+
* The children of the component.
|
|
1374
|
+
*/
|
|
735
1375
|
children?: ReactNode;
|
|
736
1376
|
variant?: string;
|
|
737
1377
|
size?: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* Whether the element is rendered.
|
|
1380
|
+
*/
|
|
738
1381
|
open?: RAC.TooltipProps['isOpen'];
|
|
739
1382
|
}
|
|
740
1383
|
declare const _Tooltip: {
|
|
@@ -746,7 +1389,15 @@ type RemovedProps = 'className' | 'style' | 'children' | 'isRequired';
|
|
|
746
1389
|
interface TagGroupProps extends Omit<RAC.TagGroupProps, RemovedProps>, Pick<TagListProps<object>, 'items' | 'children' | 'renderEmptyState'>, Pick<FieldBaseProps<'label'>, 'label' | 'description'> {
|
|
747
1390
|
variant?: string;
|
|
748
1391
|
size?: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
1394
|
+
* @default full
|
|
1395
|
+
*/
|
|
749
1396
|
width?: WidthProp['width'];
|
|
1397
|
+
/**
|
|
1398
|
+
* Displays a remove button on each tag.
|
|
1399
|
+
* @default false
|
|
1400
|
+
*/
|
|
750
1401
|
allowsRemoving?: boolean;
|
|
751
1402
|
}
|
|
752
1403
|
|
|
@@ -775,6 +1426,10 @@ interface TabListProps extends Omit<RAC.TabListProps<Object>, 'className' | 'sty
|
|
|
775
1426
|
}
|
|
776
1427
|
|
|
777
1428
|
interface TabsProps extends Omit<RAC.TabsProps, 'className' | 'style' | 'isDisabled' | 'orientation'> {
|
|
1429
|
+
/**
|
|
1430
|
+
* Set All TabPanel disabled
|
|
1431
|
+
* @default false
|
|
1432
|
+
*/
|
|
778
1433
|
disabled?: boolean;
|
|
779
1434
|
size?: 'small' | 'medium' | 'large';
|
|
780
1435
|
variant?: string;
|
|
@@ -786,4 +1441,4 @@ declare const _Tabs: {
|
|
|
786
1441
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
787
1442
|
};
|
|
788
1443
|
|
|
789
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionOwnItemProps, type AccordionProps, ActionMenu, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, Body, type BodyProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CloseButton, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, type CustomCheckboxProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, _Divider as Divider, type DividerProps, FieldBase, type FieldBaseProps, FieldGroup, FieldGroupContext, type FieldGroupContextProps, type FieldGroupProps, Footer, type FooterProps, Grid, type GridProps, _Header as Header, type HeaderProps, _Headline as Headline, type HeadlineProps, Image, type ImageProps, Inline, type InlineProps, _Input as Input, type InputProps, Inset, type InsetProps, _Label as Label, type LabelProps, _Link as Link, type LinkProps, List, type ListProps, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps,
|
|
1444
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionOwnItemProps, type AccordionProps, ActionMenu, type GridAreaProps as AreaProps, Aside, type AsideProps, Aspect, type AspectProps, _Autocomplete as Autocomplete, type AutocompleteProps, Badge, type BadgeProps, Body, type BodyProps, Breakout, type BreakoutProps, _Button as Button, type ButtonProps, _Calendar as Calendar, type CalendarProps, Card, type CardProps, Center, type CenterProps, _Checkbox as Checkbox, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CloseButton, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, type CustomCheckboxProps, _DateField as DateField, type DateFieldProps, _DatePicker as DatePicker, type DatePickerProps, _Dialog as Dialog, type DialogProps, _Divider as Divider, type DividerProps, FieldBase, type FieldBaseProps, FieldGroup, FieldGroupContext, type FieldGroupContextProps, type FieldGroupProps, Footer, type FooterProps, Grid, type GridProps, _Header as Header, type HeaderProps, _Headline as Headline, type HeadlineProps, Image, type ImageProps, Inline, type InlineProps, _Input as Input, type InputProps, Inset, type InsetProps, _Label as Label, type LabelProps, _Link as Link, type LinkProps, List, type ListProps, MarigoldProvider, type MarigoldProviderProps, _Menu as Menu, type MenuProps, _Modal as Modal, type ModalProps, type MultiSelectItemProps, type MultiSelectProps, Multiselect, _NumberField as NumberField, type NumberFieldProps, OverlayContainerProvider, _Popover as Popover, type PopoverProps, _Radio as Radio, type RadioComponent, _RadioGroup as RadioGroup, type RadioGroupProps, type RadioProps, type RowProps, Scrollable, type ScrollableProps, _SearchField as SearchField, type SearchFieldProps, SectionMessage, type SectionMessageProps, _Select as Select, type SelectComponent, _SelectList as SelectList, type SelectListProps, type SelectProps, _Slider as Slider, type SliderProps, Split, type SplitProps, Stack, type StackProps, _Switch as Switch, type SwitchProps, Table, type TableProps, _Tabs as Tabs, type TabsProps, _Tag as Tag, type TagProps, type TemplateValue, Text, _TextArea as TextArea, type TextAreaProps, _TextField as TextField, type TextFieldProps, type TextProps, Tiles, type TilesProps, _Tooltip as Tooltip, type TooltipProps, Underlay, type UnderlayProps, XLoader, _Calendar, useFieldGroupContext, usePortalContainer };
|