@marigold/components 9.0.2 → 10.1.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 +184 -97
- package/dist/index.d.ts +184 -97
- package/dist/index.js +1154 -938
- package/dist/index.mjs +882 -666
- package/package.json +26 -26
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { ItemElement, SelectionMode, ItemProps, Node, Orientation } from '@react-types/shared';
|
|
2
|
+
export { Selection } from '@react-types/shared';
|
|
1
3
|
export { useAsyncList, useListData } from '@react-stately/data';
|
|
2
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
5
|
import * as react from 'react';
|
|
4
6
|
import react__default, { ReactElement, ReactNode, ElementType, ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes, Key as Key$1, Dispatch, SetStateAction } from 'react';
|
|
5
7
|
import { AriaAccordionProps } from '@react-aria/accordion';
|
|
6
|
-
import { ItemElement, SelectionMode, ItemProps, Node, Orientation } from '@react-types/shared';
|
|
7
8
|
import { TreeState } from '@react-stately/tree';
|
|
8
9
|
import { GapSpaceProp, AspectProp, WidthProp, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
|
|
9
10
|
export { ThemeProvider, useTheme } from '@marigold/system';
|
|
10
|
-
import { NonZeroPercentage, DistributiveOmit, HtmlProps } from '@marigold/types';
|
|
11
|
+
import { AriaRegionProps, NonZeroPercentage, DistributiveOmit, HtmlProps, AriaLabelingProps } from '@marigold/types';
|
|
11
12
|
import RAC, { ValidationResult, Key, DateValue, TagListProps } from 'react-aria-components';
|
|
12
13
|
export { Form, FormProps, RouterProvider } from 'react-aria-components';
|
|
13
14
|
export { I18nProvider } from '@react-aria/i18n';
|
|
@@ -54,7 +55,7 @@ interface AccordionItemProps {
|
|
|
54
55
|
}
|
|
55
56
|
declare const AccordionItem: ({ item, state, title, variant, size, ...props }: AccordionItemProps) => react_jsx_runtime.JSX.Element;
|
|
56
57
|
|
|
57
|
-
interface AsideProps extends GapSpaceProp {
|
|
58
|
+
interface AsideProps extends GapSpaceProp, AriaRegionProps {
|
|
58
59
|
/**
|
|
59
60
|
* The children of the component.
|
|
60
61
|
*/
|
|
@@ -65,18 +66,18 @@ interface AsideProps extends GapSpaceProp {
|
|
|
65
66
|
*/
|
|
66
67
|
side?: 'left' | 'right';
|
|
67
68
|
/**
|
|
68
|
-
* The
|
|
69
|
+
* The width of the side content.
|
|
69
70
|
*/
|
|
70
71
|
sideWidth?: string;
|
|
71
72
|
/**
|
|
72
|
-
* At
|
|
73
|
+
* At what percentage of the content's width should the other content wrap beneath it
|
|
73
74
|
* @default 50%
|
|
74
75
|
*/
|
|
75
76
|
wrap?: NonZeroPercentage;
|
|
76
77
|
}
|
|
77
78
|
declare const Aside: ({ children, sideWidth, space, side, wrap, }: AsideProps) => react_jsx_runtime.JSX.Element;
|
|
78
79
|
|
|
79
|
-
interface AspectProps extends AspectProp {
|
|
80
|
+
interface AspectProps extends AspectProp, AriaRegionProps {
|
|
80
81
|
/**
|
|
81
82
|
* The children of the component.
|
|
82
83
|
*/
|
|
@@ -117,7 +118,7 @@ interface FieldBaseProps<T extends ElementType> extends WidthProp, Pick<HelpText
|
|
|
117
118
|
isInvalid?: boolean;
|
|
118
119
|
isRequired?: boolean;
|
|
119
120
|
}
|
|
120
|
-
declare const FieldBase: <T extends ElementType>(props: FieldBaseProps<T> & DistributiveOmit<ComponentPropsWithRef<T>, "as"> & react.RefAttributes<any>) => ReactNode;
|
|
121
|
+
declare const FieldBase: <T extends ElementType>(props: FieldBaseProps<T> & DistributiveOmit<ComponentPropsWithRef<T>, "as"> & react.RefAttributes<any>) => React.ReactNode;
|
|
121
122
|
|
|
122
123
|
interface FieldGroupContextProps {
|
|
123
124
|
labelWidth?: string;
|
|
@@ -137,9 +138,17 @@ interface ListBoxItemProps extends Omit<RAC.ListBoxItemProps, 'style' | 'classNa
|
|
|
137
138
|
}
|
|
138
139
|
declare const _ListBoxItem: ({ ...props }: ListBoxItemProps) => react_jsx_runtime.JSX.Element;
|
|
139
140
|
|
|
140
|
-
interface SectionProps extends Omit<RAC.SectionProps<object>, 'className' | 'style'> {
|
|
141
|
+
interface SectionProps extends Omit<RAC.SectionProps<object>, 'className' | 'style' | 'children'> {
|
|
142
|
+
/**
|
|
143
|
+
* Section header to display.
|
|
144
|
+
*/
|
|
145
|
+
header: ReactNode;
|
|
146
|
+
/**
|
|
147
|
+
* Children of the section.
|
|
148
|
+
*/
|
|
149
|
+
children: ReactNode;
|
|
141
150
|
}
|
|
142
|
-
declare const _Section: (props: SectionProps) => react_jsx_runtime.JSX.Element;
|
|
151
|
+
declare const _Section: ({ header, children, ...props }: SectionProps) => react_jsx_runtime.JSX.Element;
|
|
143
152
|
|
|
144
153
|
interface ListBoxProps extends Omit<RAC.ListBoxProps<object>, 'className' | 'style'> {
|
|
145
154
|
variant?: string;
|
|
@@ -208,7 +217,14 @@ interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps
|
|
|
208
217
|
onSubmit?: (value: string | number | null, key: Key | null) => void;
|
|
209
218
|
}
|
|
210
219
|
interface AutocompleteComponent extends ForwardRefExoticComponent<AutocompleteProps & RefAttributes<HTMLInputElement>> {
|
|
211
|
-
|
|
220
|
+
/**
|
|
221
|
+
* Options for the Combobox.
|
|
222
|
+
*/
|
|
223
|
+
Option: typeof _ListBox.Item;
|
|
224
|
+
/**
|
|
225
|
+
* Section for the Combobox, to put options in.
|
|
226
|
+
*/
|
|
227
|
+
Section: typeof _ListBox.Section;
|
|
212
228
|
}
|
|
213
229
|
declare const _Autocomplete: AutocompleteComponent;
|
|
214
230
|
|
|
@@ -258,7 +274,14 @@ interface ComboBoxProps extends Omit<RAC.ComboBoxProps<any>, RemovedProps$m>, Pi
|
|
|
258
274
|
placeholder?: string;
|
|
259
275
|
}
|
|
260
276
|
interface ComboBoxComponent extends ForwardRefExoticComponent<ComboBoxProps & RefAttributes<HTMLInputElement>> {
|
|
261
|
-
|
|
277
|
+
/**
|
|
278
|
+
* Options for the Combobox.
|
|
279
|
+
*/
|
|
280
|
+
Option: typeof _ListBox.Item;
|
|
281
|
+
/**
|
|
282
|
+
* Section for the Combobox, to put options in.
|
|
283
|
+
*/
|
|
284
|
+
Section: typeof _ListBox.Section;
|
|
262
285
|
}
|
|
263
286
|
declare const _ComboBox: ComboBoxComponent;
|
|
264
287
|
|
|
@@ -272,7 +295,7 @@ interface BadgeProps {
|
|
|
272
295
|
}
|
|
273
296
|
declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
274
297
|
|
|
275
|
-
interface BreakoutProps {
|
|
298
|
+
interface BreakoutProps extends AriaRegionProps {
|
|
276
299
|
children?: ReactNode;
|
|
277
300
|
/**
|
|
278
301
|
* Set the height of the breakout element.
|
|
@@ -301,7 +324,7 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
301
324
|
}
|
|
302
325
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
303
326
|
|
|
304
|
-
type RemovedProps$l = 'isDisabled';
|
|
327
|
+
type RemovedProps$l = 'isDisabled' | 'isPending';
|
|
305
328
|
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$l> {
|
|
306
329
|
variant?: string;
|
|
307
330
|
size?: string;
|
|
@@ -323,6 +346,11 @@ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$l> {
|
|
|
323
346
|
* @default false
|
|
324
347
|
*/
|
|
325
348
|
disabled?: RAC.ButtonProps['isDisabled'];
|
|
349
|
+
/**
|
|
350
|
+
* Whether the button is in a loading state.
|
|
351
|
+
* This disables press and hover events while retaining focusability, and announces the loading state to screen readers.
|
|
352
|
+
*/
|
|
353
|
+
loading?: RAC.ButtonProps['isPending'];
|
|
326
354
|
}
|
|
327
355
|
declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
328
356
|
|
|
@@ -331,7 +359,7 @@ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, Pa
|
|
|
331
359
|
variant?: string;
|
|
332
360
|
size?: string;
|
|
333
361
|
/**
|
|
334
|
-
* Padding of the component. You can see allowed tokens [here](../../
|
|
362
|
+
* Padding of the component. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
335
363
|
*/
|
|
336
364
|
p?: PaddingSpaceProp['space'];
|
|
337
365
|
/**
|
|
@@ -339,13 +367,13 @@ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, Pa
|
|
|
339
367
|
*/
|
|
340
368
|
px?: PaddingSpacePropX['spaceX'];
|
|
341
369
|
/**
|
|
342
|
-
* Padding vertical (top and bottom) of the component. You can see allowed tokens [here](../../
|
|
370
|
+
* Padding vertical (top and bottom) of the component. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
343
371
|
*/
|
|
344
372
|
py?: PaddingSpacePropY['spaceY'];
|
|
345
373
|
}
|
|
346
374
|
declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
347
375
|
|
|
348
|
-
interface CenterProps extends GapSpaceProp {
|
|
376
|
+
interface CenterProps extends GapSpaceProp, AriaRegionProps {
|
|
349
377
|
children?: ReactNode;
|
|
350
378
|
/**
|
|
351
379
|
* The maximum width of the container.
|
|
@@ -355,8 +383,49 @@ interface CenterProps extends GapSpaceProp {
|
|
|
355
383
|
}
|
|
356
384
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
357
385
|
|
|
358
|
-
type RemovedProps$k = 'className' | 'style' | '
|
|
359
|
-
interface
|
|
386
|
+
type RemovedProps$k = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
387
|
+
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$k>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
388
|
+
/**
|
|
389
|
+
* The children of the component
|
|
390
|
+
*/
|
|
391
|
+
children?: ReactNode;
|
|
392
|
+
variant?: string;
|
|
393
|
+
size?: string;
|
|
394
|
+
/**
|
|
395
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
396
|
+
* @default full
|
|
397
|
+
*/
|
|
398
|
+
width?: WidthProp['width'];
|
|
399
|
+
/**
|
|
400
|
+
* Sets all checkboxes to disabled
|
|
401
|
+
* @default false
|
|
402
|
+
*/
|
|
403
|
+
disabled?: RAC.CheckboxGroupProps['isDisabled'];
|
|
404
|
+
/**
|
|
405
|
+
* Sets the checkbox as required.
|
|
406
|
+
* @default false
|
|
407
|
+
*/
|
|
408
|
+
required?: RAC.CheckboxGroupProps['isRequired'];
|
|
409
|
+
/**
|
|
410
|
+
* If `true`, the checkbox is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
411
|
+
* @default false
|
|
412
|
+
*/
|
|
413
|
+
error?: RAC.CheckboxGroupProps['isInvalid'];
|
|
414
|
+
/**
|
|
415
|
+
* Sets the checkbox on read only.
|
|
416
|
+
* @default false
|
|
417
|
+
*/
|
|
418
|
+
readOnly?: RAC.CheckboxGroupProps['isReadOnly'];
|
|
419
|
+
/**
|
|
420
|
+
* Wheather the component is displayed vertically or horizontally.
|
|
421
|
+
* @default vertical
|
|
422
|
+
*/
|
|
423
|
+
orientation?: Orientation;
|
|
424
|
+
}
|
|
425
|
+
declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
426
|
+
|
|
427
|
+
type RemovedProps$j = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
|
|
428
|
+
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$j> {
|
|
360
429
|
/**
|
|
361
430
|
* Whether the element should be checked (controlled).
|
|
362
431
|
*/
|
|
@@ -397,50 +466,15 @@ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$k> {
|
|
|
397
466
|
*/
|
|
398
467
|
children?: ReactNode;
|
|
399
468
|
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
type RemovedProps$j = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
403
|
-
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$j>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
404
|
-
/**
|
|
405
|
-
* The children of the component
|
|
406
|
-
*/
|
|
407
|
-
children?: ReactNode;
|
|
408
|
-
variant?: string;
|
|
409
|
-
size?: string;
|
|
410
|
-
/**
|
|
411
|
-
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
412
|
-
* @default full
|
|
413
|
-
*/
|
|
414
|
-
width?: WidthProp['width'];
|
|
415
|
-
/**
|
|
416
|
-
* Sets all checkboxes to disabled
|
|
417
|
-
* @default false
|
|
418
|
-
*/
|
|
419
|
-
disabled?: RAC.CheckboxGroupProps['isDisabled'];
|
|
420
|
-
/**
|
|
421
|
-
* Sets the checkbox as required.
|
|
422
|
-
* @default false
|
|
423
|
-
*/
|
|
424
|
-
required?: RAC.CheckboxGroupProps['isRequired'];
|
|
469
|
+
interface CheckboxComponent extends ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLLabelElement>> {
|
|
425
470
|
/**
|
|
426
|
-
*
|
|
427
|
-
* @default false
|
|
471
|
+
* Group for checkboxes.
|
|
428
472
|
*/
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Sets the checkbox on read only.
|
|
432
|
-
* @default false
|
|
433
|
-
*/
|
|
434
|
-
readOnly?: RAC.CheckboxGroupProps['isReadOnly'];
|
|
435
|
-
/**
|
|
436
|
-
* Wheather the component is displayed vertically or horizontally.
|
|
437
|
-
* @default vertical
|
|
438
|
-
*/
|
|
439
|
-
orientation?: Orientation;
|
|
473
|
+
Group: typeof _CheckboxGroup;
|
|
440
474
|
}
|
|
441
|
-
declare const
|
|
475
|
+
declare const _Checkbox: CheckboxComponent;
|
|
442
476
|
|
|
443
|
-
interface ColumnsProps extends GapSpaceProp {
|
|
477
|
+
interface ColumnsProps extends GapSpaceProp, AriaRegionProps {
|
|
444
478
|
/**
|
|
445
479
|
* The children of the component.
|
|
446
480
|
*/
|
|
@@ -461,7 +495,7 @@ interface ColumnsProps extends GapSpaceProp {
|
|
|
461
495
|
}
|
|
462
496
|
declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => react_jsx_runtime.JSX.Element;
|
|
463
497
|
|
|
464
|
-
interface ContainerProps {
|
|
498
|
+
interface ContainerProps extends AriaRegionProps {
|
|
465
499
|
children?: ReactNode;
|
|
466
500
|
/**
|
|
467
501
|
* The content type of the container.
|
|
@@ -491,6 +525,42 @@ declare const header: {
|
|
|
491
525
|
};
|
|
492
526
|
declare const Container: ({ contentType, size, align, alignItems, children, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
493
527
|
|
|
528
|
+
interface DialogContentProps {
|
|
529
|
+
/**
|
|
530
|
+
* Children of the component.
|
|
531
|
+
*/
|
|
532
|
+
children?: ReactNode;
|
|
533
|
+
variant?: string;
|
|
534
|
+
size?: string;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
interface HeadlineProps extends AriaLabelingProps, TextAlignProp {
|
|
538
|
+
/**
|
|
539
|
+
* Set the color of the headline.
|
|
540
|
+
*/
|
|
541
|
+
color?: string;
|
|
542
|
+
variant?: string;
|
|
543
|
+
size?: string;
|
|
544
|
+
/**
|
|
545
|
+
* Set a different level.
|
|
546
|
+
*/
|
|
547
|
+
level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
|
|
548
|
+
/**
|
|
549
|
+
* Children of the component.
|
|
550
|
+
*/
|
|
551
|
+
children?: ReactNode;
|
|
552
|
+
/**
|
|
553
|
+
* A slot to place the element in.
|
|
554
|
+
*/
|
|
555
|
+
slot?: string;
|
|
556
|
+
}
|
|
557
|
+
declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
558
|
+
|
|
559
|
+
interface DialogTitleProps extends Omit<HeadlineProps, 'slot'> {
|
|
560
|
+
variant?: string;
|
|
561
|
+
size?: string;
|
|
562
|
+
}
|
|
563
|
+
|
|
494
564
|
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'> {
|
|
495
565
|
/**
|
|
496
566
|
* Wheather compnent is rendered.
|
|
@@ -512,30 +582,16 @@ interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'> {
|
|
|
512
582
|
isNonModal?: boolean;
|
|
513
583
|
}
|
|
514
584
|
|
|
515
|
-
interface
|
|
516
|
-
/**
|
|
517
|
-
* Set the color of the headline.
|
|
518
|
-
*/
|
|
519
|
-
color?: string;
|
|
520
|
-
variant?: string;
|
|
521
|
-
size?: string;
|
|
522
|
-
/**
|
|
523
|
-
* Set a different level.
|
|
524
|
-
*/
|
|
525
|
-
level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
|
|
585
|
+
interface DialogActions {
|
|
526
586
|
/**
|
|
527
587
|
* Children of the component.
|
|
528
588
|
*/
|
|
529
589
|
children?: ReactNode;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
*/
|
|
533
|
-
slot?: string;
|
|
590
|
+
variant?: string;
|
|
591
|
+
size?: string;
|
|
534
592
|
}
|
|
535
|
-
declare const
|
|
593
|
+
declare const DialogActions: ({ variant, size, children }: DialogActions) => react_jsx_runtime.JSX.Element;
|
|
536
594
|
|
|
537
|
-
interface DialogHeadlineProps extends Omit<HeadlineProps, 'slot'> {
|
|
538
|
-
}
|
|
539
595
|
interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
|
|
540
596
|
variant?: string;
|
|
541
597
|
size?: string;
|
|
@@ -552,7 +608,9 @@ interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
|
|
|
552
608
|
declare const _Dialog: {
|
|
553
609
|
({ variant, size, closeButton, isNonModal, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
554
610
|
Trigger: ({ open, dismissable, keyboardDismissable, isNonModal, ...rest }: DialogTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
555
|
-
|
|
611
|
+
Title: ({ level, variant, size, children, }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
612
|
+
Content: ({ variant, size, children, }: DialogContentProps) => react_jsx_runtime.JSX.Element;
|
|
613
|
+
Actions: ({ variant, size, children }: DialogActions) => react_jsx_runtime.JSX.Element;
|
|
556
614
|
};
|
|
557
615
|
|
|
558
616
|
interface DividerProps extends RAC.SeparatorProps {
|
|
@@ -582,7 +640,7 @@ interface GridAreaProps {
|
|
|
582
640
|
}
|
|
583
641
|
|
|
584
642
|
type TemplateValue = 'none' | 'auto' | 'min-content' | 'max-content' | (string & {}) | number;
|
|
585
|
-
interface GridProps extends GapSpaceProp, HeightProp {
|
|
643
|
+
interface GridProps extends GapSpaceProp, HeightProp, AriaRegionProps {
|
|
586
644
|
/**
|
|
587
645
|
* Specifies the named grid areas, much like `grid-template-areas`.
|
|
588
646
|
*/
|
|
@@ -629,7 +687,7 @@ interface ImageProps extends Pick<HtmlProps<'img'>, 'src' | 'srcSet' | 'sizes' |
|
|
|
629
687
|
}
|
|
630
688
|
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
631
689
|
|
|
632
|
-
interface InlineProps extends GapSpaceProp {
|
|
690
|
+
interface InlineProps extends GapSpaceProp, AriaRegionProps {
|
|
633
691
|
/**
|
|
634
692
|
* The children of the component.
|
|
635
693
|
*/
|
|
@@ -659,6 +717,9 @@ type RemovedProps$h = 'className' | 'isRequired' | 'isDisabled' | 'isInvalid' |
|
|
|
659
717
|
interface DateFieldProps extends Omit<RAC.DateFieldProps<DateValue>, RemovedProps$h>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
660
718
|
variant?: string;
|
|
661
719
|
size?: string;
|
|
720
|
+
/**
|
|
721
|
+
* Optional element (e.g., button or icon) rendered inside the DateField.
|
|
722
|
+
*/
|
|
662
723
|
action?: ReactElement;
|
|
663
724
|
/**
|
|
664
725
|
* If `true`, the date field is required.
|
|
@@ -706,8 +767,12 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
706
767
|
}
|
|
707
768
|
declare const _Calendar: ({ disabled, readOnly, size, variant, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
708
769
|
|
|
709
|
-
type RemovedProps$f = 'isDisabled' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
770
|
+
type RemovedProps$f = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
710
771
|
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$f>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
772
|
+
/**
|
|
773
|
+
* Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
|
|
774
|
+
*/
|
|
775
|
+
dateUnavailable?: RAC.DatePickerProps<DateValue>['isDateUnavailable'];
|
|
711
776
|
/**
|
|
712
777
|
* If `true`, the date picker is disabled.
|
|
713
778
|
* @default false
|
|
@@ -742,29 +807,29 @@ interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedPr
|
|
|
742
807
|
}
|
|
743
808
|
declare const _DatePicker: react__default.ForwardRefExoticComponent<DatePickerProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
744
809
|
|
|
745
|
-
type InsetProps = {
|
|
810
|
+
type InsetProps = (AriaRegionProps & {
|
|
746
811
|
/**
|
|
747
812
|
* The children of the component
|
|
748
813
|
*/
|
|
749
814
|
children: ReactNode;
|
|
750
815
|
space?: never;
|
|
751
816
|
/**
|
|
752
|
-
* Horizontal alignment for the children. You can see allowed tokens [here](../../
|
|
817
|
+
* Horizontal alignment for the children. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
753
818
|
*/
|
|
754
819
|
spaceX?: PaddingSpacePropX['spaceX'];
|
|
755
820
|
/**
|
|
756
|
-
* Vertical alignment for the children. You can see allowed tokens [here](../../
|
|
821
|
+
* Vertical alignment for the children. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
757
822
|
*/
|
|
758
823
|
spaceY?: PaddingSpacePropY['spaceY'];
|
|
759
|
-
} | {
|
|
824
|
+
}) | (AriaRegionProps & {
|
|
760
825
|
children: ReactNode;
|
|
761
826
|
/**
|
|
762
|
-
* The space between the children. You can see allowed tokens [here](../../
|
|
827
|
+
* The space between the children. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
763
828
|
*/
|
|
764
829
|
space?: PaddingSpaceProp['space'];
|
|
765
830
|
spaceX?: never;
|
|
766
831
|
spaceY?: never;
|
|
767
|
-
};
|
|
832
|
+
});
|
|
768
833
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
769
834
|
|
|
770
835
|
type RemovedProps$e = 'className';
|
|
@@ -860,7 +925,7 @@ interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$a>, Omit<RAC
|
|
|
860
925
|
disabled?: boolean;
|
|
861
926
|
}
|
|
862
927
|
declare const _Menu: {
|
|
863
|
-
({ children, label, variant, size, disabled, open, placement, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
928
|
+
({ children, label, variant, size, disabled, open, placement, "aria-label": ariaLabel, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
864
929
|
Item: ({ children, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
865
930
|
Section: ({ children, title, ...props }: MenuSectionProps) => react_jsx_runtime.JSX.Element;
|
|
866
931
|
};
|
|
@@ -899,9 +964,13 @@ interface SectionMessageProps {
|
|
|
899
964
|
* The children of the component.
|
|
900
965
|
*/
|
|
901
966
|
children?: ReactNode;
|
|
967
|
+
/**
|
|
968
|
+
* Adds a close button, makes the section message dismissable.
|
|
969
|
+
*/
|
|
970
|
+
closeButton?: boolean;
|
|
902
971
|
}
|
|
903
972
|
declare const SectionMessage: {
|
|
904
|
-
({ variant, size, children, ...props }: SectionMessageProps): react_jsx_runtime.JSX.Element;
|
|
973
|
+
({ variant, size, children, closeButton, ...props }: SectionMessageProps): react_jsx_runtime.JSX.Element | null;
|
|
905
974
|
Title: ({ children }: SectionMessageTitleProps) => react_jsx_runtime.JSX.Element;
|
|
906
975
|
Content: ({ children, }: SectionMessageContentProps) => react_jsx_runtime.JSX.Element;
|
|
907
976
|
};
|
|
@@ -966,6 +1035,7 @@ interface ModalProps extends RAC.ModalOverlayProps {
|
|
|
966
1035
|
open?: boolean;
|
|
967
1036
|
dismissable?: boolean;
|
|
968
1037
|
keyboardDismissable?: boolean;
|
|
1038
|
+
size?: string;
|
|
969
1039
|
}
|
|
970
1040
|
declare const _Modal: react.ForwardRefExoticComponent<Omit<ModalProps, "className" | "isOpen" | "isDismissable" | "isKeyboardDismissDisabled"> & react.RefAttributes<HTMLDivElement>>;
|
|
971
1041
|
|
|
@@ -1220,7 +1290,7 @@ interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps
|
|
|
1220
1290
|
}
|
|
1221
1291
|
declare const _SelectList: SelectListComponent;
|
|
1222
1292
|
|
|
1223
|
-
interface ScrollableProps extends WidthProp {
|
|
1293
|
+
interface ScrollableProps extends WidthProp, AriaRegionProps {
|
|
1224
1294
|
/**
|
|
1225
1295
|
* Children of the layout.
|
|
1226
1296
|
*/
|
|
@@ -1232,9 +1302,9 @@ interface ScrollableProps extends WidthProp {
|
|
|
1232
1302
|
}
|
|
1233
1303
|
declare const Scrollable: ({ children, width, height, ...props }: ScrollableProps) => react_jsx_runtime.JSX.Element;
|
|
1234
1304
|
|
|
1235
|
-
interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'label'> {
|
|
1305
|
+
interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'orientation'>, Pick<FieldBaseProps<'label'>, 'description'> {
|
|
1236
1306
|
/**
|
|
1237
|
-
* Labels for the thumbs in the slider.
|
|
1307
|
+
* Labels for the thumbs in the slider. Also used for the name when submitting the form.
|
|
1238
1308
|
*/
|
|
1239
1309
|
thumbLabels?: string[];
|
|
1240
1310
|
/**
|
|
@@ -1249,6 +1319,11 @@ interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'label'
|
|
|
1249
1319
|
* @default false
|
|
1250
1320
|
*/
|
|
1251
1321
|
disabled?: boolean;
|
|
1322
|
+
/**
|
|
1323
|
+
* @deprecated Will be removed in the next major version. Use `label` prop instead.
|
|
1324
|
+
*/
|
|
1325
|
+
children?: ReactNode;
|
|
1326
|
+
label?: string;
|
|
1252
1327
|
}
|
|
1253
1328
|
declare const _Slider: react__default.ForwardRefExoticComponent<SliderProps<number | number[]> & react__default.RefAttributes<HTMLDivElement>>;
|
|
1254
1329
|
|
|
@@ -1256,7 +1331,7 @@ interface SplitProps {
|
|
|
1256
1331
|
}
|
|
1257
1332
|
declare const Split: () => react_jsx_runtime.JSX.Element;
|
|
1258
1333
|
|
|
1259
|
-
interface StackProps extends GapSpaceProp {
|
|
1334
|
+
interface StackProps extends GapSpaceProp, AriaRegionProps {
|
|
1260
1335
|
/**
|
|
1261
1336
|
* Children of the component.
|
|
1262
1337
|
*/
|
|
@@ -1353,7 +1428,7 @@ interface Table {
|
|
|
1353
1428
|
Row: (props: RowProps) => JSX.Element;
|
|
1354
1429
|
}
|
|
1355
1430
|
|
|
1356
|
-
interface TextProps extends Omit<RAC.TextProps, 'elementType'>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1431
|
+
interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, 'elementType'>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1357
1432
|
/**
|
|
1358
1433
|
* The children of the component
|
|
1359
1434
|
*/
|
|
@@ -1482,7 +1557,7 @@ interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$3>, Pick<
|
|
|
1482
1557
|
}
|
|
1483
1558
|
declare const _TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
1484
1559
|
|
|
1485
|
-
interface TilesProps extends GapSpaceProp {
|
|
1560
|
+
interface TilesProps extends GapSpaceProp, AriaRegionProps {
|
|
1486
1561
|
/**
|
|
1487
1562
|
* The children of the component.
|
|
1488
1563
|
*/
|
|
@@ -1568,7 +1643,19 @@ declare const _Tag: {
|
|
|
1568
1643
|
Group: ({ width, items, children, renderEmptyState, variant, size, ...rest }: TagGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1569
1644
|
};
|
|
1570
1645
|
|
|
1571
|
-
|
|
1646
|
+
interface XLoaderProps extends SVGProps {
|
|
1647
|
+
/**
|
|
1648
|
+
* Show the loader in `fullsize` and blocks interaction with the site or `ìnline` in a certain area.
|
|
1649
|
+
* @default undefined
|
|
1650
|
+
*/
|
|
1651
|
+
mode?: LoadingModeKeys;
|
|
1652
|
+
}
|
|
1653
|
+
declare const LoadingModes: {
|
|
1654
|
+
readonly FullSize: "fullsize";
|
|
1655
|
+
readonly Inline: "inline";
|
|
1656
|
+
};
|
|
1657
|
+
type LoadingModeKeys = (typeof LoadingModes)[keyof typeof LoadingModes];
|
|
1658
|
+
declare const XLoader: react.ForwardRefExoticComponent<XLoaderProps & react.RefAttributes<SVGElement>>;
|
|
1572
1659
|
|
|
1573
1660
|
interface TabProps extends Omit<RAC.TabProps, 'className' | 'style'> {
|
|
1574
1661
|
}
|
|
@@ -1595,4 +1682,4 @@ declare const _Tabs: {
|
|
|
1595
1682
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
1596
1683
|
};
|
|
1597
1684
|
|
|
1598
|
-
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, _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 RemovedProps$
|
|
1685
|
+
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, type CheckboxComponent, _CheckboxGroup as CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CloseButton, type ColumnProps, Columns, type ColumnsProps, _ComboBox as ComboBox, type ComboBoxProps, Container, type ContainerProps, _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 RemovedProps$j as RemovedProps, 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 as 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, type XLoaderProps, _Calendar, useFieldGroupContext, usePortalContainer };
|