@marigold/components 8.0.1 → 9.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 CHANGED
@@ -5,9 +5,9 @@ import react__default, { ReactElement, ReactNode, ElementType, ComponentPropsWit
5
5
  import { AriaAccordionProps } from '@react-aria/accordion';
6
6
  import { ItemElement, SelectionMode, ItemProps, Node, Orientation } from '@react-types/shared';
7
7
  import { TreeState } from '@react-stately/tree';
8
- import { GapSpaceProp, AspectProp, WidthProp, AlignmentProp, alignment, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PlaceItemsProp, GridColumn, GridColsAlignProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
8
+ import { GapSpaceProp, AspectProp, WidthProp, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, AlignmentProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
9
9
  export { ThemeProvider, useTheme } from '@marigold/system';
10
- import { NonZeroPercentage, HtmlProps, DistributiveOmit } from '@marigold/types';
10
+ import { NonZeroPercentage, DistributiveOmit, HtmlProps } from '@marigold/types';
11
11
  import RAC, { ValidationResult, Key, DateValue, TagListProps } from 'react-aria-components';
12
12
  export { Form, FormProps, RouterProvider } from 'react-aria-components';
13
13
  export { I18nProvider } from '@react-aria/i18n';
@@ -76,7 +76,7 @@ interface AsideProps extends GapSpaceProp {
76
76
  }
77
77
  declare const Aside: ({ children, sideWidth, space, side, wrap, }: AsideProps) => react_jsx_runtime.JSX.Element;
78
78
 
79
- interface AspectProps extends Omit<HtmlProps<'div'>, 'className'>, AspectProp {
79
+ interface AspectProps extends AspectProp {
80
80
  /**
81
81
  * The children of the component.
82
82
  */
@@ -104,6 +104,9 @@ interface HelpTextProps {
104
104
 
105
105
  interface FieldBaseProps<T extends ElementType> extends WidthProp, Pick<HelpTextProps, 'description' | 'errorMessage'> {
106
106
  as?: T;
107
+ /**
108
+ * Specifies the label of the field.
109
+ */
107
110
  label?: ReactNode;
108
111
  variant?: string;
109
112
  size?: string;
@@ -259,7 +262,7 @@ interface ComboBoxComponent extends ForwardRefExoticComponent<ComboBoxProps & Re
259
262
  }
260
263
  declare const _ComboBox: ComboBoxComponent;
261
264
 
262
- interface BadgeProps extends Omit<HtmlProps<'div'>, 'className'> {
265
+ interface BadgeProps {
263
266
  /**
264
267
  * Children of the component
265
268
  */
@@ -269,7 +272,7 @@ interface BadgeProps extends Omit<HtmlProps<'div'>, 'className'> {
269
272
  }
270
273
  declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
271
274
 
272
- interface BreakoutProps extends Omit<HtmlProps<'div'>, 'className'>, AlignmentProp {
275
+ interface BreakoutProps {
273
276
  children?: ReactNode;
274
277
  /**
275
278
  * Set the height of the breakout element.
@@ -286,7 +289,7 @@ interface BreakoutProps extends Omit<HtmlProps<'div'>, 'className'>, AlignmentPr
286
289
  */
287
290
  alignY?: keyof typeof alignment.horizontal.alignmentY;
288
291
  }
289
- declare const Breakout: ({ height, children, alignX, alignY, ...props }: BreakoutProps) => react_jsx_runtime.JSX.Element;
292
+ declare const Breakout: ({ height, children, alignX, alignY, }: BreakoutProps) => react_jsx_runtime.JSX.Element;
290
293
 
291
294
  interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
292
295
  /**
@@ -323,7 +326,7 @@ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$l> {
323
326
  }
324
327
  declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
325
328
 
326
- interface CardProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
329
+ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
327
330
  children?: ReactNode;
328
331
  variant?: string;
329
332
  size?: string;
@@ -342,7 +345,7 @@ interface CardProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp, P
342
345
  }
343
346
  declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
344
347
 
345
- interface CenterProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp {
348
+ interface CenterProps extends GapSpaceProp {
346
349
  children?: ReactNode;
347
350
  /**
348
351
  * The maximum width of the container.
@@ -352,8 +355,31 @@ interface CenterProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp
352
355
  }
353
356
  declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
354
357
 
355
- type CustomCheckboxProps = 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp';
356
- interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps>, Pick<RAC.CheckboxProps, CustomCheckboxProps> {
358
+ type RemovedProps$k = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
359
+ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$k> {
360
+ /**
361
+ * Whether the element should be checked (controlled).
362
+ */
363
+ checked?: boolean | undefined;
364
+ /**
365
+ * Whether the element should be checked (uncontrolled).
366
+ */
367
+ defaultChecked?: boolean | undefined;
368
+ /**
369
+ * Whether the checkbox is disabled.
370
+ * @default false
371
+ */
372
+ disabled?: boolean;
373
+ /**
374
+ * Whether the checkbox is required.
375
+ * @default false
376
+ */
377
+ required?: boolean;
378
+ /**
379
+ * Whether the checkbox is read-only.
380
+ * @default false
381
+ */
382
+ readOnly?: boolean;
357
383
  /**
358
384
  * Use when it represents both selected and not selected values.
359
385
  * @default false
@@ -366,11 +392,15 @@ interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defa
366
392
  error?: boolean;
367
393
  variant?: string;
368
394
  size?: string;
395
+ /**
396
+ * Children of the component.
397
+ */
398
+ children?: ReactNode;
369
399
  }
370
400
  declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLLabelElement>>;
371
401
 
372
- type RemovedProps$k = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
373
- interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$k>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
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'> {
374
404
  /**
375
405
  * The children of the component
376
406
  */
@@ -431,7 +461,7 @@ interface ColumnsProps extends GapSpaceProp {
431
461
  }
432
462
  declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => react_jsx_runtime.JSX.Element;
433
463
 
434
- interface ContainerProps extends Omit<HtmlProps<'div'>, 'className'>, PlaceItemsProp, GridColumn, GridColsAlignProp {
464
+ interface ContainerProps {
435
465
  children?: ReactNode;
436
466
  /**
437
467
  * The content type of the container.
@@ -443,7 +473,7 @@ interface ContainerProps extends Omit<HtmlProps<'div'>, 'className'>, PlaceItems
443
473
  * Set alignment the content inside the container.
444
474
  * @default left
445
475
  */
446
- align?: 'left' | 'right' | 'center';
476
+ align?: GridColsAlignProp['align'];
447
477
  /**
448
478
  * Set alignment of the items inside the container.
449
479
  */
@@ -482,8 +512,7 @@ interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'> {
482
512
  isNonModal?: boolean;
483
513
  }
484
514
 
485
- type RemovedProps$j = 'className' | 'level';
486
- interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$j>, TextAlignProp {
515
+ interface HeadlineProps extends TextAlignProp {
487
516
  /**
488
517
  * Set the color of the headline.
489
518
  */
@@ -493,7 +522,15 @@ interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$j>, TextAlig
493
522
  /**
494
523
  * Set a different level from theme, values are from 1 - 6.
495
524
  */
496
- level?: '1' | '2' | '3' | '4' | '5' | '6' | RAC.HeadingProps['level'];
525
+ level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
526
+ /**
527
+ * Children of the component.
528
+ */
529
+ children?: ReactNode;
530
+ /**
531
+ * A slot to place the element in.
532
+ */
533
+ slot?: string;
497
534
  }
498
535
  declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
499
536
 
@@ -540,8 +577,17 @@ interface GridAreaProps {
540
577
 
541
578
  type TemplateValue = 'none' | 'auto' | 'min-content' | 'max-content' | (string & {}) | number;
542
579
  interface GridProps extends GapSpaceProp, HeightProp {
580
+ /**
581
+ * Specifies the named grid areas, much like `grid-template-areas`.
582
+ */
543
583
  areas: string[];
584
+ /**
585
+ * Specifies the width of each column in the grid.
586
+ */
544
587
  columns: TemplateValue[];
588
+ /**
589
+ * Specifies the height of each rows in the grid.
590
+ */
545
591
  rows: TemplateValue[];
546
592
  /**
547
593
  * Children of the layout.
@@ -563,7 +609,7 @@ interface HeaderProps extends Omit<RAC.HeadingProps, 'children'> {
563
609
  }
564
610
  declare const _Header: ({ variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
565
611
 
566
- interface ImageProps extends Omit<HtmlProps<'img'>, 'className'>, ObjectFitProp, ObjectPositionProp {
612
+ interface ImageProps extends Pick<HtmlProps<'img'>, 'src' | 'srcSet' | 'sizes' | 'slot' | 'title' | 'height' | 'width' | 'role' | 'datatype'>, ObjectFitProp, ObjectPositionProp {
567
613
  variant?: string;
568
614
  size?: string;
569
615
  /**
@@ -687,7 +733,7 @@ interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedPr
687
733
  */
688
734
  width?: WidthProp['width'];
689
735
  }
690
- declare const _DatePicker: ({ disabled, required, readOnly, error, variant, size, open, granularity, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
736
+ declare const _DatePicker: react__default.ForwardRefExoticComponent<DatePickerProps & react__default.RefAttributes<HTMLDivElement>>;
691
737
 
692
738
  type InsetProps = {
693
739
  /**
@@ -733,11 +779,11 @@ interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$d> {
733
779
  }
734
780
  declare const _Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
735
781
 
736
- interface ListItemProps extends Omit<HtmlProps<'li'>, 'className'> {
782
+ interface ListItemProps {
737
783
  children?: ReactNode;
738
784
  }
739
785
 
740
- interface ListProps extends Omit<HtmlProps<'ul'>, 'className'> {
786
+ interface ListProps {
741
787
  variant?: string;
742
788
  size?: string;
743
789
  /**
@@ -830,9 +876,13 @@ declare const icons: {
830
876
  warning: () => react_jsx_runtime.JSX.Element;
831
877
  error: () => react_jsx_runtime.JSX.Element;
832
878
  };
833
- interface SectionMessageProps extends Omit<HtmlProps<'div'>, 'className'> {
879
+ interface SectionMessageProps {
834
880
  variant?: keyof typeof icons;
835
881
  size?: string;
882
+ /**
883
+ * The children of the component.
884
+ */
885
+ children?: ReactNode;
836
886
  }
837
887
  declare const SectionMessage: {
838
888
  ({ variant, size, children, ...props }: SectionMessageProps): react_jsx_runtime.JSX.Element;
@@ -1155,7 +1205,13 @@ interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps
1155
1205
  declare const _SelectList: SelectListComponent;
1156
1206
 
1157
1207
  interface ScrollableProps extends WidthProp {
1208
+ /**
1209
+ * Children of the layout.
1210
+ */
1158
1211
  children?: ReactNode;
1212
+ /**
1213
+ * Specifies the height of the scrollable container.
1214
+ */
1159
1215
  height?: string;
1160
1216
  }
1161
1217
  declare const Scrollable: ({ children, width, height, ...props }: ScrollableProps) => react_jsx_runtime.JSX.Element;
@@ -1180,11 +1236,14 @@ interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'label'
1180
1236
  }
1181
1237
  declare const _Slider: react__default.ForwardRefExoticComponent<SliderProps<number | number[]> & react__default.RefAttributes<HTMLDivElement>>;
1182
1238
 
1183
- interface SplitProps extends Omit<HtmlProps<'div'>, 'className'> {
1239
+ interface SplitProps {
1184
1240
  }
1185
- declare const Split: (props: SplitProps) => react_jsx_runtime.JSX.Element;
1241
+ declare const Split: () => react_jsx_runtime.JSX.Element;
1186
1242
 
1187
- interface StackProps extends AlignmentProp, GapSpaceProp {
1243
+ interface StackProps extends GapSpaceProp {
1244
+ /**
1245
+ * Children of the component.
1246
+ */
1188
1247
  children?: ReactNode;
1189
1248
  /**
1190
1249
  * Stretch to fill space (vertical AND horizontal, useful if you want to change y alignment).
@@ -1276,17 +1335,17 @@ interface Table {
1276
1335
  Row: (props: RowProps) => JSX.Element;
1277
1336
  }
1278
1337
 
1279
- interface TextProps extends Omit<HtmlProps<'p'>, 'className'>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
1338
+ interface TextProps extends TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
1280
1339
  /**
1281
1340
  * The children of the component
1282
1341
  */
1283
1342
  children?: React.ReactNode;
1284
- variant?: string;
1285
1343
  /**
1286
1344
  * Set the text color.
1287
1345
  * @default currentColor
1288
1346
  */
1289
1347
  color?: string;
1348
+ variant?: string;
1290
1349
  size?: string;
1291
1350
  }
1292
1351
  declare const Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
@@ -1503,4 +1562,4 @@ declare const _Tabs: {
1503
1562
  Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
1504
1563
  };
1505
1564
 
1506
- 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 };
1565
+ 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$k 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, _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 };
package/dist/index.d.ts CHANGED
@@ -5,9 +5,9 @@ import react__default, { ReactElement, ReactNode, ElementType, ComponentPropsWit
5
5
  import { AriaAccordionProps } from '@react-aria/accordion';
6
6
  import { ItemElement, SelectionMode, ItemProps, Node, Orientation } from '@react-types/shared';
7
7
  import { TreeState } from '@react-stately/tree';
8
- import { GapSpaceProp, AspectProp, WidthProp, AlignmentProp, alignment, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PlaceItemsProp, GridColumn, GridColsAlignProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
8
+ import { GapSpaceProp, AspectProp, WidthProp, alignment, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp, PaddingSpacePropX, PaddingSpacePropY, GridColsAlignProp, PlaceItemsProp, TextAlignProp, HeightProp, ObjectFitProp, ObjectPositionProp, AlignmentProp, Theme, ThemeProviderProps, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp, SVGProps } from '@marigold/system';
9
9
  export { ThemeProvider, useTheme } from '@marigold/system';
10
- import { NonZeroPercentage, HtmlProps, DistributiveOmit } from '@marigold/types';
10
+ import { NonZeroPercentage, DistributiveOmit, HtmlProps } from '@marigold/types';
11
11
  import RAC, { ValidationResult, Key, DateValue, TagListProps } from 'react-aria-components';
12
12
  export { Form, FormProps, RouterProvider } from 'react-aria-components';
13
13
  export { I18nProvider } from '@react-aria/i18n';
@@ -76,7 +76,7 @@ interface AsideProps extends GapSpaceProp {
76
76
  }
77
77
  declare const Aside: ({ children, sideWidth, space, side, wrap, }: AsideProps) => react_jsx_runtime.JSX.Element;
78
78
 
79
- interface AspectProps extends Omit<HtmlProps<'div'>, 'className'>, AspectProp {
79
+ interface AspectProps extends AspectProp {
80
80
  /**
81
81
  * The children of the component.
82
82
  */
@@ -104,6 +104,9 @@ interface HelpTextProps {
104
104
 
105
105
  interface FieldBaseProps<T extends ElementType> extends WidthProp, Pick<HelpTextProps, 'description' | 'errorMessage'> {
106
106
  as?: T;
107
+ /**
108
+ * Specifies the label of the field.
109
+ */
107
110
  label?: ReactNode;
108
111
  variant?: string;
109
112
  size?: string;
@@ -259,7 +262,7 @@ interface ComboBoxComponent extends ForwardRefExoticComponent<ComboBoxProps & Re
259
262
  }
260
263
  declare const _ComboBox: ComboBoxComponent;
261
264
 
262
- interface BadgeProps extends Omit<HtmlProps<'div'>, 'className'> {
265
+ interface BadgeProps {
263
266
  /**
264
267
  * Children of the component
265
268
  */
@@ -269,7 +272,7 @@ interface BadgeProps extends Omit<HtmlProps<'div'>, 'className'> {
269
272
  }
270
273
  declare const Badge: ({ variant, size, children, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
271
274
 
272
- interface BreakoutProps extends Omit<HtmlProps<'div'>, 'className'>, AlignmentProp {
275
+ interface BreakoutProps {
273
276
  children?: ReactNode;
274
277
  /**
275
278
  * Set the height of the breakout element.
@@ -286,7 +289,7 @@ interface BreakoutProps extends Omit<HtmlProps<'div'>, 'className'>, AlignmentPr
286
289
  */
287
290
  alignY?: keyof typeof alignment.horizontal.alignmentY;
288
291
  }
289
- declare const Breakout: ({ height, children, alignX, alignY, ...props }: BreakoutProps) => react_jsx_runtime.JSX.Element;
292
+ declare const Breakout: ({ height, children, alignX, alignY, }: BreakoutProps) => react_jsx_runtime.JSX.Element;
290
293
 
291
294
  interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
292
295
  /**
@@ -323,7 +326,7 @@ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$l> {
323
326
  }
324
327
  declare const _Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
325
328
 
326
- interface CardProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
329
+ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, PaddingLeftProp, PaddingBottomProp, PaddingTopProp {
327
330
  children?: ReactNode;
328
331
  variant?: string;
329
332
  size?: string;
@@ -342,7 +345,7 @@ interface CardProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp, P
342
345
  }
343
346
  declare const Card: ({ children, variant, size, space, p, px, py, pt, pb, pl, pr, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
344
347
 
345
- interface CenterProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp {
348
+ interface CenterProps extends GapSpaceProp {
346
349
  children?: ReactNode;
347
350
  /**
348
351
  * The maximum width of the container.
@@ -352,8 +355,31 @@ interface CenterProps extends Omit<HtmlProps<'div'>, 'className'>, GapSpaceProp
352
355
  }
353
356
  declare const Center: ({ maxWidth, space, children, ...props }: CenterProps) => react_jsx_runtime.JSX.Element;
354
357
 
355
- type CustomCheckboxProps = 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp';
356
- interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defaultValue' | CustomCheckboxProps>, Pick<RAC.CheckboxProps, CustomCheckboxProps> {
358
+ type RemovedProps$k = 'className' | 'style' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'isSelected' | 'isIndeterminate' | 'defaultSelected';
359
+ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$k> {
360
+ /**
361
+ * Whether the element should be checked (controlled).
362
+ */
363
+ checked?: boolean | undefined;
364
+ /**
365
+ * Whether the element should be checked (uncontrolled).
366
+ */
367
+ defaultChecked?: boolean | undefined;
368
+ /**
369
+ * Whether the checkbox is disabled.
370
+ * @default false
371
+ */
372
+ disabled?: boolean;
373
+ /**
374
+ * Whether the checkbox is required.
375
+ * @default false
376
+ */
377
+ required?: boolean;
378
+ /**
379
+ * Whether the checkbox is read-only.
380
+ * @default false
381
+ */
382
+ readOnly?: boolean;
357
383
  /**
358
384
  * Use when it represents both selected and not selected values.
359
385
  * @default false
@@ -366,11 +392,15 @@ interface CheckboxProps extends Omit<HtmlProps<'input'>, 'size' | 'type' | 'defa
366
392
  error?: boolean;
367
393
  variant?: string;
368
394
  size?: string;
395
+ /**
396
+ * Children of the component.
397
+ */
398
+ children?: ReactNode;
369
399
  }
370
400
  declare const _Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLLabelElement>>;
371
401
 
372
- type RemovedProps$k = 'className' | 'style' | 'children' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly';
373
- interface CheckboxGroupProps extends Omit<RAC.CheckboxGroupProps, RemovedProps$k>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
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'> {
374
404
  /**
375
405
  * The children of the component
376
406
  */
@@ -431,7 +461,7 @@ interface ColumnsProps extends GapSpaceProp {
431
461
  }
432
462
  declare const Columns: ({ space, columns, collapseAt, stretch, children, ...props }: ColumnsProps) => react_jsx_runtime.JSX.Element;
433
463
 
434
- interface ContainerProps extends Omit<HtmlProps<'div'>, 'className'>, PlaceItemsProp, GridColumn, GridColsAlignProp {
464
+ interface ContainerProps {
435
465
  children?: ReactNode;
436
466
  /**
437
467
  * The content type of the container.
@@ -443,7 +473,7 @@ interface ContainerProps extends Omit<HtmlProps<'div'>, 'className'>, PlaceItems
443
473
  * Set alignment the content inside the container.
444
474
  * @default left
445
475
  */
446
- align?: 'left' | 'right' | 'center';
476
+ align?: GridColsAlignProp['align'];
447
477
  /**
448
478
  * Set alignment of the items inside the container.
449
479
  */
@@ -482,8 +512,7 @@ interface DialogTriggerProps extends Omit<RAC.DialogTriggerProps, 'isOpen'> {
482
512
  isNonModal?: boolean;
483
513
  }
484
514
 
485
- type RemovedProps$j = 'className' | 'level';
486
- interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$j>, TextAlignProp {
515
+ interface HeadlineProps extends TextAlignProp {
487
516
  /**
488
517
  * Set the color of the headline.
489
518
  */
@@ -493,7 +522,15 @@ interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$j>, TextAlig
493
522
  /**
494
523
  * Set a different level from theme, values are from 1 - 6.
495
524
  */
496
- level?: '1' | '2' | '3' | '4' | '5' | '6' | RAC.HeadingProps['level'];
525
+ level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
526
+ /**
527
+ * Children of the component.
528
+ */
529
+ children?: ReactNode;
530
+ /**
531
+ * A slot to place the element in.
532
+ */
533
+ slot?: string;
497
534
  }
498
535
  declare const _Headline: ({ variant, size, children, align, color, level, ...props }: HeadlineProps) => react_jsx_runtime.JSX.Element;
499
536
 
@@ -540,8 +577,17 @@ interface GridAreaProps {
540
577
 
541
578
  type TemplateValue = 'none' | 'auto' | 'min-content' | 'max-content' | (string & {}) | number;
542
579
  interface GridProps extends GapSpaceProp, HeightProp {
580
+ /**
581
+ * Specifies the named grid areas, much like `grid-template-areas`.
582
+ */
543
583
  areas: string[];
584
+ /**
585
+ * Specifies the width of each column in the grid.
586
+ */
544
587
  columns: TemplateValue[];
588
+ /**
589
+ * Specifies the height of each rows in the grid.
590
+ */
545
591
  rows: TemplateValue[];
546
592
  /**
547
593
  * Children of the layout.
@@ -563,7 +609,7 @@ interface HeaderProps extends Omit<RAC.HeadingProps, 'children'> {
563
609
  }
564
610
  declare const _Header: ({ variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
565
611
 
566
- interface ImageProps extends Omit<HtmlProps<'img'>, 'className'>, ObjectFitProp, ObjectPositionProp {
612
+ interface ImageProps extends Pick<HtmlProps<'img'>, 'src' | 'srcSet' | 'sizes' | 'slot' | 'title' | 'height' | 'width' | 'role' | 'datatype'>, ObjectFitProp, ObjectPositionProp {
567
613
  variant?: string;
568
614
  size?: string;
569
615
  /**
@@ -687,7 +733,7 @@ interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedPr
687
733
  */
688
734
  width?: WidthProp['width'];
689
735
  }
690
- declare const _DatePicker: ({ disabled, required, readOnly, error, variant, size, open, granularity, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
736
+ declare const _DatePicker: react__default.ForwardRefExoticComponent<DatePickerProps & react__default.RefAttributes<HTMLDivElement>>;
691
737
 
692
738
  type InsetProps = {
693
739
  /**
@@ -733,11 +779,11 @@ interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$d> {
733
779
  }
734
780
  declare const _Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
735
781
 
736
- interface ListItemProps extends Omit<HtmlProps<'li'>, 'className'> {
782
+ interface ListItemProps {
737
783
  children?: ReactNode;
738
784
  }
739
785
 
740
- interface ListProps extends Omit<HtmlProps<'ul'>, 'className'> {
786
+ interface ListProps {
741
787
  variant?: string;
742
788
  size?: string;
743
789
  /**
@@ -830,9 +876,13 @@ declare const icons: {
830
876
  warning: () => react_jsx_runtime.JSX.Element;
831
877
  error: () => react_jsx_runtime.JSX.Element;
832
878
  };
833
- interface SectionMessageProps extends Omit<HtmlProps<'div'>, 'className'> {
879
+ interface SectionMessageProps {
834
880
  variant?: keyof typeof icons;
835
881
  size?: string;
882
+ /**
883
+ * The children of the component.
884
+ */
885
+ children?: ReactNode;
836
886
  }
837
887
  declare const SectionMessage: {
838
888
  ({ variant, size, children, ...props }: SectionMessageProps): react_jsx_runtime.JSX.Element;
@@ -1155,7 +1205,13 @@ interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps
1155
1205
  declare const _SelectList: SelectListComponent;
1156
1206
 
1157
1207
  interface ScrollableProps extends WidthProp {
1208
+ /**
1209
+ * Children of the layout.
1210
+ */
1158
1211
  children?: ReactNode;
1212
+ /**
1213
+ * Specifies the height of the scrollable container.
1214
+ */
1159
1215
  height?: string;
1160
1216
  }
1161
1217
  declare const Scrollable: ({ children, width, height, ...props }: ScrollableProps) => react_jsx_runtime.JSX.Element;
@@ -1180,11 +1236,14 @@ interface SliderProps<T> extends Omit<RAC.SliderProps<T>, 'isDisabled' | 'label'
1180
1236
  }
1181
1237
  declare const _Slider: react__default.ForwardRefExoticComponent<SliderProps<number | number[]> & react__default.RefAttributes<HTMLDivElement>>;
1182
1238
 
1183
- interface SplitProps extends Omit<HtmlProps<'div'>, 'className'> {
1239
+ interface SplitProps {
1184
1240
  }
1185
- declare const Split: (props: SplitProps) => react_jsx_runtime.JSX.Element;
1241
+ declare const Split: () => react_jsx_runtime.JSX.Element;
1186
1242
 
1187
- interface StackProps extends AlignmentProp, GapSpaceProp {
1243
+ interface StackProps extends GapSpaceProp {
1244
+ /**
1245
+ * Children of the component.
1246
+ */
1188
1247
  children?: ReactNode;
1189
1248
  /**
1190
1249
  * Stretch to fill space (vertical AND horizontal, useful if you want to change y alignment).
@@ -1276,17 +1335,17 @@ interface Table {
1276
1335
  Row: (props: RowProps) => JSX.Element;
1277
1336
  }
1278
1337
 
1279
- interface TextProps extends Omit<HtmlProps<'p'>, 'className'>, TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
1338
+ interface TextProps extends TextAlignProp, FontSizeProp, FontWeightProp, FontStyleProp, CursorProp {
1280
1339
  /**
1281
1340
  * The children of the component
1282
1341
  */
1283
1342
  children?: React.ReactNode;
1284
- variant?: string;
1285
1343
  /**
1286
1344
  * Set the text color.
1287
1345
  * @default currentColor
1288
1346
  */
1289
1347
  color?: string;
1348
+ variant?: string;
1290
1349
  size?: string;
1291
1350
  }
1292
1351
  declare const Text: ({ variant, size, color, align, cursor, weight, fontSize, fontStyle, children, ...props }: TextProps) => react_jsx_runtime.JSX.Element;
@@ -1503,4 +1562,4 @@ declare const _Tabs: {
1503
1562
  Item: (props: TabProps) => react_jsx_runtime.JSX.Element;
1504
1563
  };
1505
1564
 
1506
- 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 };
1565
+ 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$k 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, _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 };