@marigold/components 9.0.1 → 10.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 +195 -107
- package/dist/index.d.ts +195 -107
- package/dist/index.js +718 -604
- package/dist/index.mjs +629 -519
- package/package.json +25 -25
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
|
-
import { GapSpaceProp, AspectProp, WidthProp, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp,
|
|
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
|
*/
|
|
@@ -76,7 +77,7 @@ interface AsideProps extends GapSpaceProp {
|
|
|
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
|
*/
|
|
@@ -135,11 +136,19 @@ declare const FieldGroup: ({ labelWidth, children }: FieldGroupProps) => react_j
|
|
|
135
136
|
|
|
136
137
|
interface ListBoxItemProps extends Omit<RAC.ListBoxItemProps, 'style' | 'className'> {
|
|
137
138
|
}
|
|
138
|
-
declare const _ListBoxItem: (props: ListBoxItemProps) => react_jsx_runtime.JSX.Element;
|
|
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;
|
|
@@ -151,7 +160,7 @@ interface ListBoxComponent extends ForwardRefExoticComponent<ListBoxProps & RefA
|
|
|
151
160
|
}
|
|
152
161
|
declare const _ListBox: ListBoxComponent;
|
|
153
162
|
|
|
154
|
-
type RemovedProps$n = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState';
|
|
163
|
+
type RemovedProps$n = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'inputValue' | 'onInputChange' | 'defaultValue' | 'validate' | 'validationState' | 'slot';
|
|
155
164
|
interface AutocompleteProps extends Omit<RAC.ComboBoxProps<object>, RemovedProps$n>, Pick<FieldBaseProps<'label'>, 'width' | 'label' | 'description' | 'errorMessage'> {
|
|
156
165
|
/**
|
|
157
166
|
* The value of the input (uncontrolled).
|
|
@@ -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.
|
|
@@ -331,7 +354,7 @@ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, Pa
|
|
|
331
354
|
variant?: string;
|
|
332
355
|
size?: string;
|
|
333
356
|
/**
|
|
334
|
-
* Padding of the component. You can see allowed tokens [here](../../
|
|
357
|
+
* Padding of the component. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
335
358
|
*/
|
|
336
359
|
p?: PaddingSpaceProp['space'];
|
|
337
360
|
/**
|
|
@@ -339,13 +362,13 @@ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, Pa
|
|
|
339
362
|
*/
|
|
340
363
|
px?: PaddingSpacePropX['spaceX'];
|
|
341
364
|
/**
|
|
342
|
-
* Padding vertical (top and bottom) of the component. You can see allowed tokens [here](../../
|
|
365
|
+
* Padding vertical (top and bottom) of the component. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
343
366
|
*/
|
|
344
367
|
py?: PaddingSpacePropY['spaceY'];
|
|
345
368
|
}
|
|
346
369
|
declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
347
370
|
|
|
348
|
-
interface CenterProps extends GapSpaceProp {
|
|
371
|
+
interface CenterProps extends GapSpaceProp, AriaRegionProps {
|
|
349
372
|
children?: ReactNode;
|
|
350
373
|
/**
|
|
351
374
|
* The maximum width of the container.
|
|
@@ -355,8 +378,49 @@ interface CenterProps extends GapSpaceProp {
|
|
|
355
378
|
}
|
|
356
379
|
declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
|
|
357
380
|
|
|
358
|
-
type RemovedProps$k = 'className' | 'style' | '
|
|
359
|
-
interface
|
|
381
|
+
type RemovedProps$k = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
|
|
382
|
+
interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$k>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
383
|
+
/**
|
|
384
|
+
* The children of the component
|
|
385
|
+
*/
|
|
386
|
+
children?: ReactNode;
|
|
387
|
+
variant?: string;
|
|
388
|
+
size?: string;
|
|
389
|
+
/**
|
|
390
|
+
* Sets the width of the field. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
391
|
+
* @default full
|
|
392
|
+
*/
|
|
393
|
+
width?: WidthProp['width'];
|
|
394
|
+
/**
|
|
395
|
+
* Sets all checkboxes to disabled
|
|
396
|
+
* @default false
|
|
397
|
+
*/
|
|
398
|
+
disabled?: RAC.CheckboxGroupProps['isDisabled'];
|
|
399
|
+
/**
|
|
400
|
+
* Sets the checkbox as required.
|
|
401
|
+
* @default false
|
|
402
|
+
*/
|
|
403
|
+
required?: RAC.CheckboxGroupProps['isRequired'];
|
|
404
|
+
/**
|
|
405
|
+
* If `true`, the checkbox is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
406
|
+
* @default false
|
|
407
|
+
*/
|
|
408
|
+
error?: RAC.CheckboxGroupProps['isInvalid'];
|
|
409
|
+
/**
|
|
410
|
+
* Sets the checkbox on read only.
|
|
411
|
+
* @default false
|
|
412
|
+
*/
|
|
413
|
+
readOnly?: RAC.CheckboxGroupProps['isReadOnly'];
|
|
414
|
+
/**
|
|
415
|
+
* Wheather the component is displayed vertically or horizontally.
|
|
416
|
+
* @default vertical
|
|
417
|
+
*/
|
|
418
|
+
orientation?: Orientation;
|
|
419
|
+
}
|
|
420
|
+
declare const _CheckboxGroup: ({ children, variant, size, required, disabled, readOnly, error, width, orientation, ...rest }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
421
|
+
|
|
422
|
+
type RemovedProps$j = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
|
|
423
|
+
interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$j> {
|
|
360
424
|
/**
|
|
361
425
|
* Whether the element should be checked (controlled).
|
|
362
426
|
*/
|
|
@@ -397,50 +461,15 @@ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$k> {
|
|
|
397
461
|
*/
|
|
398
462
|
children?: ReactNode;
|
|
399
463
|
}
|
|
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'> {
|
|
464
|
+
interface CheckboxComponent extends ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLLabelElement>> {
|
|
404
465
|
/**
|
|
405
|
-
*
|
|
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'];
|
|
425
|
-
/**
|
|
426
|
-
* If `true`, the checkbox is considered invalid and if set the `errorMessage` is shown instead of the `description`.
|
|
427
|
-
* @default false
|
|
428
|
-
*/
|
|
429
|
-
error?: RAC.CheckboxGroupProps['isInvalid'];
|
|
430
|
-
/**
|
|
431
|
-
* Sets the checkbox on read only.
|
|
432
|
-
* @default false
|
|
466
|
+
* Group for checkboxes.
|
|
433
467
|
*/
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* Wheather the component is displayed vertically or horizontally.
|
|
437
|
-
* @default vertical
|
|
438
|
-
*/
|
|
439
|
-
orientation?: Orientation;
|
|
468
|
+
Group: typeof _CheckboxGroup;
|
|
440
469
|
}
|
|
441
|
-
declare const
|
|
470
|
+
declare const _Checkbox: CheckboxComponent;
|
|
442
471
|
|
|
443
|
-
interface ColumnsProps extends GapSpaceProp {
|
|
472
|
+
interface ColumnsProps extends GapSpaceProp, AriaRegionProps {
|
|
444
473
|
/**
|
|
445
474
|
* The children of the component.
|
|
446
475
|
*/
|
|
@@ -461,7 +490,7 @@ interface ColumnsProps extends GapSpaceProp {
|
|
|
461
490
|
}
|
|
462
491
|
declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => react_jsx_runtime.JSX.Element;
|
|
463
492
|
|
|
464
|
-
interface ContainerProps {
|
|
493
|
+
interface ContainerProps extends AriaRegionProps {
|
|
465
494
|
children?: ReactNode;
|
|
466
495
|
/**
|
|
467
496
|
* The content type of the container.
|
|
@@ -491,6 +520,42 @@ declare const header: {
|
|
|
491
520
|
};
|
|
492
521
|
declare const Container: ({ contentType, size, align, alignItems, children, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
493
522
|
|
|
523
|
+
interface DialogContentProps {
|
|
524
|
+
/**
|
|
525
|
+
* Children of the component.
|
|
526
|
+
*/
|
|
527
|
+
children?: ReactNode;
|
|
528
|
+
variant?: string;
|
|
529
|
+
size?: string;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
interface HeadlineProps extends AriaLabelingProps, TextAlignProp {
|
|
533
|
+
/**
|
|
534
|
+
* Set the color of the headline.
|
|
535
|
+
*/
|
|
536
|
+
color?: string;
|
|
537
|
+
variant?: string;
|
|
538
|
+
size?: string;
|
|
539
|
+
/**
|
|
540
|
+
* Set a different level.
|
|
541
|
+
*/
|
|
542
|
+
level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
|
|
543
|
+
/**
|
|
544
|
+
* Children of the component.
|
|
545
|
+
*/
|
|
546
|
+
children?: ReactNode;
|
|
547
|
+
/**
|
|
548
|
+
* A slot to place the element in.
|
|
549
|
+
*/
|
|
550
|
+
slot?: string;
|
|
551
|
+
}
|
|
552
|
+
declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
553
|
+
|
|
554
|
+
interface DialogTitleProps extends Omit<HeadlineProps, 'slot'> {
|
|
555
|
+
variant?: string;
|
|
556
|
+
size?: string;
|
|
557
|
+
}
|
|
558
|
+
|
|
494
559
|
interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'> {
|
|
495
560
|
/**
|
|
496
561
|
* Wheather compnent is rendered.
|
|
@@ -512,30 +577,16 @@ interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'> {
|
|
|
512
577
|
isNonModal?: boolean;
|
|
513
578
|
}
|
|
514
579
|
|
|
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;
|
|
580
|
+
interface DialogActions {
|
|
526
581
|
/**
|
|
527
582
|
* Children of the component.
|
|
528
583
|
*/
|
|
529
584
|
children?: ReactNode;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
*/
|
|
533
|
-
slot?: string;
|
|
585
|
+
variant?: string;
|
|
586
|
+
size?: string;
|
|
534
587
|
}
|
|
535
|
-
declare const
|
|
588
|
+
declare const DialogActions: ({ variant, size, children }: DialogActions) => react_jsx_runtime.JSX.Element;
|
|
536
589
|
|
|
537
|
-
interface DialogHeadlineProps extends Omit<HeadlineProps, 'slot'> {
|
|
538
|
-
}
|
|
539
590
|
interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
|
|
540
591
|
variant?: string;
|
|
541
592
|
size?: string;
|
|
@@ -552,7 +603,9 @@ interface DialogProps extends Omit<RAC.DialogProps, 'className' | 'style'> {
|
|
|
552
603
|
declare const _Dialog: {
|
|
553
604
|
({ variant, size, closeButton, isNonModal, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
554
605
|
Trigger: ({ open, dismissable, keyboardDismissable, isNonModal, ...rest }: DialogTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
555
|
-
|
|
606
|
+
Title: ({ level, variant, size, children, }: DialogTitleProps) => react_jsx_runtime.JSX.Element;
|
|
607
|
+
Content: ({ variant, size, children, }: DialogContentProps) => react_jsx_runtime.JSX.Element;
|
|
608
|
+
Actions: ({ variant, size, children }: DialogActions) => react_jsx_runtime.JSX.Element;
|
|
556
609
|
};
|
|
557
610
|
|
|
558
611
|
interface DividerProps extends RAC.SeparatorProps {
|
|
@@ -582,7 +635,7 @@ interface GridAreaProps {
|
|
|
582
635
|
}
|
|
583
636
|
|
|
584
637
|
type TemplateValue = 'none' | 'auto' | 'min-content' | 'max-content' | (string & {}) | number;
|
|
585
|
-
interface GridProps extends GapSpaceProp, HeightProp {
|
|
638
|
+
interface GridProps extends GapSpaceProp, HeightProp, AriaRegionProps {
|
|
586
639
|
/**
|
|
587
640
|
* Specifies the named grid areas, much like `grid-template-areas`.
|
|
588
641
|
*/
|
|
@@ -629,20 +682,21 @@ interface ImageProps extends Pick<HtmlProps<'img'>, 'src' | 'srcSet' | 'sizes' |
|
|
|
629
682
|
}
|
|
630
683
|
declare const Image: ({ variant, size, fit, position, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
631
684
|
|
|
632
|
-
interface InlineProps extends
|
|
685
|
+
interface InlineProps extends GapSpaceProp, AriaRegionProps {
|
|
686
|
+
/**
|
|
687
|
+
* The children of the component.
|
|
688
|
+
*/
|
|
633
689
|
children?: ReactNode;
|
|
634
690
|
/**
|
|
635
|
-
* Horizontal alignment of the items inside the
|
|
636
|
-
* @default 'left'
|
|
691
|
+
* Horizontal alignment of the items inside the element.
|
|
637
692
|
*/
|
|
638
693
|
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
639
694
|
/**
|
|
640
|
-
* Vertical alignment of the items inside the
|
|
641
|
-
* @default 'center'
|
|
695
|
+
* Vertical alignment of the items inside the element.
|
|
642
696
|
*/
|
|
643
697
|
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
644
698
|
}
|
|
645
|
-
declare const Inline: ({ space,
|
|
699
|
+
declare const Inline: ({ space, alignX, alignY, children, ...props }: InlineProps) => react_jsx_runtime.JSX.Element;
|
|
646
700
|
|
|
647
701
|
type RemovedProps$i = 'className' | 'style' | 'size';
|
|
648
702
|
interface InputProps extends Omit<RAC.InputProps, RemovedProps$i> {
|
|
@@ -705,8 +759,12 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
705
759
|
}
|
|
706
760
|
declare const _Calendar: ({ disabled, readOnly, size, variant, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
707
761
|
|
|
708
|
-
type RemovedProps$f = 'isDisabled' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
762
|
+
type RemovedProps$f = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
709
763
|
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$f>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
764
|
+
/**
|
|
765
|
+
* Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
|
|
766
|
+
*/
|
|
767
|
+
dateUnavailable?: RAC.DatePickerProps<DateValue>['isDateUnavailable'];
|
|
710
768
|
/**
|
|
711
769
|
* If `true`, the date picker is disabled.
|
|
712
770
|
* @default false
|
|
@@ -741,29 +799,29 @@ interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedPr
|
|
|
741
799
|
}
|
|
742
800
|
declare const _DatePicker: react__default.ForwardRefExoticComponent<DatePickerProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
743
801
|
|
|
744
|
-
type InsetProps = {
|
|
802
|
+
type InsetProps = (AriaRegionProps & {
|
|
745
803
|
/**
|
|
746
804
|
* The children of the component
|
|
747
805
|
*/
|
|
748
806
|
children: ReactNode;
|
|
749
807
|
space?: never;
|
|
750
808
|
/**
|
|
751
|
-
* Horizontal alignment for the children. You can see allowed tokens [here](../../
|
|
809
|
+
* Horizontal alignment for the children. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
752
810
|
*/
|
|
753
811
|
spaceX?: PaddingSpacePropX['spaceX'];
|
|
754
812
|
/**
|
|
755
|
-
* Vertical alignment for the children. You can see allowed tokens [here](../../
|
|
813
|
+
* Vertical alignment for the children. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
756
814
|
*/
|
|
757
815
|
spaceY?: PaddingSpacePropY['spaceY'];
|
|
758
|
-
} | {
|
|
816
|
+
}) | (AriaRegionProps & {
|
|
759
817
|
children: ReactNode;
|
|
760
818
|
/**
|
|
761
|
-
* The space between the children. You can see allowed tokens [here](../../
|
|
819
|
+
* The space between the children. You can see allowed tokens [here](../../foundations/design-tokens?theme=core#spacing).
|
|
762
820
|
*/
|
|
763
821
|
space?: PaddingSpaceProp['space'];
|
|
764
822
|
spaceX?: never;
|
|
765
823
|
spaceY?: never;
|
|
766
|
-
};
|
|
824
|
+
});
|
|
767
825
|
declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
|
|
768
826
|
|
|
769
827
|
type RemovedProps$e = 'className';
|
|
@@ -773,7 +831,7 @@ interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$e> {
|
|
|
773
831
|
}
|
|
774
832
|
declare const _Label: ({ size, variant, children, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
775
833
|
|
|
776
|
-
type RemovedProps$d = 'className' | 'isDisabled';
|
|
834
|
+
type RemovedProps$d = 'className' | 'isDisabled' | 'slot';
|
|
777
835
|
interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$d> {
|
|
778
836
|
variant?: string;
|
|
779
837
|
size?: string;
|
|
@@ -859,7 +917,7 @@ interface MenuProps extends Omit<RAC.MenuTriggerProps, RemovedProps$a>, Omit<RAC
|
|
|
859
917
|
disabled?: boolean;
|
|
860
918
|
}
|
|
861
919
|
declare const _Menu: {
|
|
862
|
-
({ children, label, variant, size, disabled, open, placement, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
920
|
+
({ children, label, variant, size, disabled, open, placement, "aria-label": ariaLabel, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
|
|
863
921
|
Item: ({ children, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
864
922
|
Section: ({ children, title, ...props }: MenuSectionProps) => react_jsx_runtime.JSX.Element;
|
|
865
923
|
};
|
|
@@ -898,9 +956,13 @@ interface SectionMessageProps {
|
|
|
898
956
|
* The children of the component.
|
|
899
957
|
*/
|
|
900
958
|
children?: ReactNode;
|
|
959
|
+
/**
|
|
960
|
+
* Adds a close button, makes the section message dismissable.
|
|
961
|
+
*/
|
|
962
|
+
closeButton?: boolean;
|
|
901
963
|
}
|
|
902
964
|
declare const SectionMessage: {
|
|
903
|
-
({ variant, size, children, ...props }: SectionMessageProps): react_jsx_runtime.JSX.Element;
|
|
965
|
+
({ variant, size, children, closeButton, ...props }: SectionMessageProps): react_jsx_runtime.JSX.Element | null;
|
|
904
966
|
Title: ({ children }: SectionMessageTitleProps) => react_jsx_runtime.JSX.Element;
|
|
905
967
|
Content: ({ children, }: SectionMessageContentProps) => react_jsx_runtime.JSX.Element;
|
|
906
968
|
};
|
|
@@ -965,6 +1027,7 @@ interface ModalProps extends RAC.ModalOverlayProps {
|
|
|
965
1027
|
open?: boolean;
|
|
966
1028
|
dismissable?: boolean;
|
|
967
1029
|
keyboardDismissable?: boolean;
|
|
1030
|
+
size?: string;
|
|
968
1031
|
}
|
|
969
1032
|
declare const _Modal: react.ForwardRefExoticComponent<Omit<ModalProps, "className" | "isOpen" | "isDismissable" | "isKeyboardDismissDisabled"> & react.RefAttributes<HTMLDivElement>>;
|
|
970
1033
|
|
|
@@ -1219,7 +1282,7 @@ interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps
|
|
|
1219
1282
|
}
|
|
1220
1283
|
declare const _SelectList: SelectListComponent;
|
|
1221
1284
|
|
|
1222
|
-
interface ScrollableProps extends WidthProp {
|
|
1285
|
+
interface ScrollableProps extends WidthProp, AriaRegionProps {
|
|
1223
1286
|
/**
|
|
1224
1287
|
* Children of the layout.
|
|
1225
1288
|
*/
|
|
@@ -1255,7 +1318,7 @@ interface SplitProps {
|
|
|
1255
1318
|
}
|
|
1256
1319
|
declare const Split: () => react_jsx_runtime.JSX.Element;
|
|
1257
1320
|
|
|
1258
|
-
interface StackProps extends GapSpaceProp {
|
|
1321
|
+
interface StackProps extends GapSpaceProp, AriaRegionProps {
|
|
1259
1322
|
/**
|
|
1260
1323
|
* Children of the component.
|
|
1261
1324
|
*/
|
|
@@ -1267,18 +1330,16 @@ interface StackProps extends GapSpaceProp {
|
|
|
1267
1330
|
stretch?: boolean;
|
|
1268
1331
|
/**
|
|
1269
1332
|
* Horizontal alignment for the children.
|
|
1270
|
-
* @default none
|
|
1271
1333
|
*/
|
|
1272
1334
|
alignX?: keyof typeof alignment.vertical.alignmentX;
|
|
1273
1335
|
/**
|
|
1274
1336
|
* Vertical alignment for the children.
|
|
1275
|
-
* @default none
|
|
1276
1337
|
*/
|
|
1277
1338
|
alignY?: keyof typeof alignment.vertical.alignmentY;
|
|
1278
1339
|
}
|
|
1279
1340
|
declare const Stack: ({ children, space, stretch, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
|
|
1280
1341
|
|
|
1281
|
-
type RemovedProps$5 = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children';
|
|
1342
|
+
type RemovedProps$5 = 'className' | 'isDisabled' | 'isReadOnly' | 'isSelected' | 'children' | 'slot';
|
|
1282
1343
|
interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$5> {
|
|
1283
1344
|
variant?: string;
|
|
1284
1345
|
size?: string;
|
|
@@ -1354,7 +1415,7 @@ interface Table {
|
|
|
1354
1415
|
Row: (props: RowProps) => JSX.Element;
|
|
1355
1416
|
}
|
|
1356
1417
|
|
|
1357
|
-
interface TextProps extends TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1418
|
+
interface TextProps extends AriaLabelingProps, Omit<RAC.TextProps, 'elementType'>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
|
|
1358
1419
|
/**
|
|
1359
1420
|
* The children of the component
|
|
1360
1421
|
*/
|
|
@@ -1364,10 +1425,15 @@ interface TextProps extends TextAlignProp, FontSizeProp, FontWeightProp, FontSty
|
|
|
1364
1425
|
* @default currentColor
|
|
1365
1426
|
*/
|
|
1366
1427
|
color?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* Element to render
|
|
1430
|
+
* @default "div"
|
|
1431
|
+
*/
|
|
1432
|
+
as?: 'div' | 'p' | 'span';
|
|
1367
1433
|
variant?: string;
|
|
1368
1434
|
size?: string;
|
|
1369
1435
|
}
|
|
1370
|
-
declare const
|
|
1436
|
+
declare const _Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, as, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
1371
1437
|
|
|
1372
1438
|
type RemovedProps$4 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1373
1439
|
interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$4>, Pick<RAC.TextAreaProps, 'rows'>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
@@ -1421,7 +1487,7 @@ interface TextAreaProps extends Omit<RAC.TextFieldProps, RemovedProps$4>, Pick<R
|
|
|
1421
1487
|
}
|
|
1422
1488
|
declare const _TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
1423
1489
|
|
|
1424
|
-
type RemovedProps$3 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue';
|
|
1490
|
+
type RemovedProps$3 = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'value' | 'defaultValue' | 'slot';
|
|
1425
1491
|
interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$3>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
1426
1492
|
variant?: string;
|
|
1427
1493
|
size?: string;
|
|
@@ -1478,7 +1544,7 @@ interface TextFieldProps extends Omit<RAC.TextFieldProps, RemovedProps$3>, Pick<
|
|
|
1478
1544
|
}
|
|
1479
1545
|
declare const _TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
1480
1546
|
|
|
1481
|
-
interface TilesProps extends GapSpaceProp {
|
|
1547
|
+
interface TilesProps extends GapSpaceProp, AriaRegionProps {
|
|
1482
1548
|
/**
|
|
1483
1549
|
* The children of the component.
|
|
1484
1550
|
*/
|
|
@@ -1501,9 +1567,19 @@ interface TilesProps extends GapSpaceProp {
|
|
|
1501
1567
|
}
|
|
1502
1568
|
declare const Tiles: ({ space, stretch, equalHeight, tilesWidth, children, ...props }: TilesProps) => react_jsx_runtime.JSX.Element;
|
|
1503
1569
|
|
|
1504
|
-
type RemovedProps$2 = 'isDisabled' | 'isOpen';
|
|
1570
|
+
type RemovedProps$2 = 'isDisabled' | 'isOpen' | 'children';
|
|
1505
1571
|
interface TooltipTriggerProps extends Omit<RAC.TooltipTriggerComponentProps, RemovedProps$2> {
|
|
1572
|
+
/**
|
|
1573
|
+
* The children of the component.
|
|
1574
|
+
*/
|
|
1575
|
+
children: ReactNode;
|
|
1576
|
+
/**
|
|
1577
|
+
* Whether the tooltip should be disabled, independent from the trigger.
|
|
1578
|
+
*/
|
|
1506
1579
|
disabled?: RAC.TooltipTriggerComponentProps['isDisabled'];
|
|
1580
|
+
/**
|
|
1581
|
+
* Control the visibility of the tooltip.
|
|
1582
|
+
*/
|
|
1507
1583
|
open?: boolean;
|
|
1508
1584
|
}
|
|
1509
1585
|
|
|
@@ -1554,7 +1630,19 @@ declare const _Tag: {
|
|
|
1554
1630
|
Group: ({ width, items, children, renderEmptyState, variant, size, ...rest }: TagGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1555
1631
|
};
|
|
1556
1632
|
|
|
1557
|
-
|
|
1633
|
+
interface XLoaderProps extends SVGProps {
|
|
1634
|
+
/**
|
|
1635
|
+
* Show the loader in `fullsize` and blocks interaction with the site or `ìnline` in a certain area.
|
|
1636
|
+
* @default undefined
|
|
1637
|
+
*/
|
|
1638
|
+
mode?: LoadingModeKeys;
|
|
1639
|
+
}
|
|
1640
|
+
declare const LoadingModes: {
|
|
1641
|
+
readonly FullSize: "fullsize";
|
|
1642
|
+
readonly Inline: "inline";
|
|
1643
|
+
};
|
|
1644
|
+
type LoadingModeKeys = (typeof LoadingModes)[keyof typeof LoadingModes];
|
|
1645
|
+
declare const XLoader: react.ForwardRefExoticComponent<XLoaderProps & react.RefAttributes<SVGElement>>;
|
|
1558
1646
|
|
|
1559
1647
|
interface TabProps extends Omit<RAC.TabProps, 'className' | 'style'> {
|
|
1560
1648
|
}
|
|
@@ -1565,7 +1653,7 @@ interface TabPanelProps extends Omit<RAC.TabPanelProps, 'className' | 'style'> {
|
|
|
1565
1653
|
interface TabListProps extends Omit<RAC.TabListProps<Object>, 'className' | 'style'>, GapSpaceProp {
|
|
1566
1654
|
}
|
|
1567
1655
|
|
|
1568
|
-
interface TabsProps extends Omit<RAC.TabsProps, 'className' | 'style' | 'isDisabled' | 'orientation'> {
|
|
1656
|
+
interface TabsProps extends Omit<RAC.TabsProps, 'className' | 'style' | 'isDisabled' | 'orientation' | 'slot'> {
|
|
1569
1657
|
/**
|
|
1570
1658
|
* Set All TabPanel disabled
|
|
1571
1659
|
* @default false
|
|
@@ -1581,4 +1669,4 @@ declare const _Tabs: {
|
|
|
1581
1669
|
Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
|
|
1582
1670
|
};
|
|
1583
1671
|
|
|
1584
|
-
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$
|
|
1672
|
+
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 };
|