@marigold/components 6.4.0 → 6.5.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
@@ -22,7 +22,6 @@ import { CalendarState } from '@react-stately/calendar';
22
22
  import { AriaNumberFieldProps } from '@react-types/numberfield';
23
23
  import { OverlayProps as OverlayProps$1, AriaPopoverProps, AriaModalOverlayProps } from '@react-aria/overlays';
24
24
  import { OverlayTriggerState } from '@react-stately/overlays';
25
- import { AriaRadioGroupProps, AriaRadioProps } from '@react-types/radio';
26
25
  import { Item, Section } from '@react-stately/collections';
27
26
  import { AriaSelectProps } from '@react-types/select';
28
27
  import { AriaTableProps } from '@react-aria/table';
@@ -141,8 +140,8 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
141
140
  }
142
141
  declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
143
142
 
144
- type RemovedProps$4 = 'isDisabled';
145
- interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$4> {
143
+ type RemovedProps$6 = 'isDisabled';
144
+ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$6> {
146
145
  variant?: string;
147
146
  size?: string;
148
147
  fullWidth?: boolean;
@@ -268,8 +267,8 @@ interface DividerProps extends RAC.SeparatorProps {
268
267
  }
269
268
  declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
270
269
 
271
- type RemovedProps$3 = 'className';
272
- interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$3> {
270
+ type RemovedProps$5 = 'className';
271
+ interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$5> {
273
272
  size?: string;
274
273
  variant?: string;
275
274
  }
@@ -316,8 +315,8 @@ interface HeaderProps extends Omit<HtmlProps<'header'>, 'className'> {
316
315
  }
317
316
  declare const Header: ({ children, variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
318
317
 
319
- type RemovedProps$2 = 'className' | 'level';
320
- interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$2>, TextAlignProp {
318
+ type RemovedProps$4 = 'className' | 'level';
319
+ interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$4>, TextAlignProp {
321
320
  color?: string;
322
321
  variant?: string;
323
322
  size?: string;
@@ -413,8 +412,8 @@ type InsetProps = {
413
412
  };
414
413
  declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
415
414
 
416
- type RemovedProps$1 = 'className' | 'isDisabled';
417
- interface LinksProps extends Omit<RAC.LinkProps, RemovedProps$1> {
415
+ type RemovedProps$3 = 'className' | 'isDisabled';
416
+ interface LinksProps extends Omit<RAC.LinkProps, RemovedProps$3> {
418
417
  variant?: string;
419
418
  size?: string;
420
419
  disabled?: RAC.LinkProps['isDisabled'];
@@ -527,32 +526,39 @@ interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
527
526
  }
528
527
  declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
529
528
 
530
- interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRquired' | 'isReadOnly ' | 'validationState'> {
529
+ type RemovedProps$2 = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'isSelected';
530
+ interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$2> {
531
531
  variant?: string;
532
532
  size?: string;
533
+ label?: string;
534
+ description?: string;
535
+ errorMessage?: string;
533
536
  children: ReactNode[];
534
537
  width?: WidthProp['width'];
535
- required?: boolean;
536
- disabled?: boolean;
538
+ error?: RAC.RadioGroupProps['isInvalid'];
539
+ required?: RAC.RadioGroupProps['isRequired'];
540
+ disabled?: RAC.RadioGroupProps['isDisabled'];
537
541
  readOnly?: boolean;
538
- error?: boolean;
542
+ value?: string;
539
543
  }
540
- declare const RadioGroup: ({ variant, size, children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
544
+ declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
541
545
 
542
- type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
543
- interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps | 'children' | 'className'>, AriaRadioProps {
544
- width?: string;
546
+ type RemovedProps$1 = 'className' | 'style' | 'children' | 'isDisabled';
547
+ interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$1> {
545
548
  variant?: string;
546
549
  size?: string;
547
- disabled?: boolean;
550
+ width?: string;
551
+ children?: ReactNode;
552
+ disabled?: RAC.RadioProps['isDisabled'];
548
553
  }
549
- declare const Radio: RadioComponent;
554
+ declare const _Radio: RadioComponent;
555
+
550
556
  /**
551
557
  * We need this so that TypeScripts allows us to add
552
558
  * additional properties to the component (function).
553
559
  */
554
560
  interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>> {
555
- Group: typeof RadioGroup;
561
+ Group: typeof _RadioGroup;
556
562
  }
557
563
 
558
564
  interface SelectProps extends Omit<AriaSelectProps<object>, 'autoComplete' | 'isOpen' | 'isLoading' | 'onLoadMore' | 'isDisabled' | 'isRequired' | 'validationState' | 'onSelectionChange'>, Omit<HtmlProps<'select'>, 'onKeyUp' | 'onKeyDown' | 'onFocus' | 'onBlur' | 'children' | 'size' | 'onChange' | 'className'> {
@@ -728,4 +734,4 @@ declare const Tabs: {
728
734
  Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
729
735
  };
730
736
 
731
- export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, _Button as Button, ButtonProps, Calendar, CalendarCell, CalendarCellProps, CalendarGrid, CalendarGridProps, CalendarProps, Card, CardProps, Center, CenterProps, _Checkbox as Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, Columns, ColumnsProps, ComboBox, ComboBoxProps, Container, ContainerProps, CustomCheckboxProps, CustomRadioProps, CustomTextAreaEvents, CustomTextFieldEvents, DateField, DateFieldProps, DatePicker, DatePickerProps, Dialog, DialogChildProps, DialogProps, _Divider as Divider, DividerProps, FieldBase, FieldBaseProps, FieldGroup, FieldGroupContext, FieldGroupContextProps, FieldGroupProps, Footer, FooterProps, Header, HeaderProps, _Headline as Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, _Label as Label, LabelProps, _Link as Link, LinksProps, List, ListProps, MarigoldProvider, MarigoldProviderProps, Menu, MenuProps, Message, MessageProps, Modal, ModalProps, NumberField, NumberFieldProps, Overlay, OverlayProps, Popover, PopoverProps, Radio, RadioComponent, RadioGroup, RadioGroupProps, RadioProps, RowProps, Select, SelectComponent, SelectProps, _Slider as Slider, SliderProps, Split, SplitProps, Stack, StackProps, _Switch as Switch, SwitchProps, Table, TableProps, Tabs, Tag, TagComponent, Text, TextArea, TextAreaProps, TextField, TextFieldProps, TextProps, Tiles, TilesProps, Tooltip, TooltipProps, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, XLoader, _Slider, useCheckboxGroupContext, useFieldGroupContext };
737
+ export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, _Button as Button, ButtonProps, Calendar, CalendarCell, CalendarCellProps, CalendarGrid, CalendarGridProps, CalendarProps, Card, CardProps, Center, CenterProps, _Checkbox as Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, Columns, ColumnsProps, ComboBox, ComboBoxProps, Container, ContainerProps, CustomCheckboxProps, CustomTextAreaEvents, CustomTextFieldEvents, DateField, DateFieldProps, DatePicker, DatePickerProps, Dialog, DialogChildProps, DialogProps, _Divider as Divider, DividerProps, FieldBase, FieldBaseProps, FieldGroup, FieldGroupContext, FieldGroupContextProps, FieldGroupProps, Footer, FooterProps, Header, HeaderProps, _Headline as Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, _Label as Label, LabelProps, _Link as Link, LinksProps, List, ListProps, MarigoldProvider, MarigoldProviderProps, Menu, MenuProps, Message, MessageProps, Modal, ModalProps, NumberField, NumberFieldProps, Overlay, OverlayProps, Popover, PopoverProps, _Radio as Radio, RadioComponent, _RadioGroup as RadioGroup, RadioGroupProps, RadioProps, RowProps, Select, SelectComponent, SelectProps, _Slider as Slider, SliderProps, Split, SplitProps, Stack, StackProps, _Switch as Switch, SwitchProps, Table, TableProps, Tabs, Tag, TagComponent, Text, TextArea, TextAreaProps, TextField, TextFieldProps, TextProps, Tiles, TilesProps, Tooltip, TooltipProps, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, XLoader, _Slider, useCheckboxGroupContext, useFieldGroupContext };
package/dist/index.d.ts CHANGED
@@ -22,7 +22,6 @@ import { CalendarState } from '@react-stately/calendar';
22
22
  import { AriaNumberFieldProps } from '@react-types/numberfield';
23
23
  import { OverlayProps as OverlayProps$1, AriaPopoverProps, AriaModalOverlayProps } from '@react-aria/overlays';
24
24
  import { OverlayTriggerState } from '@react-stately/overlays';
25
- import { AriaRadioGroupProps, AriaRadioProps } from '@react-types/radio';
26
25
  import { Item, Section } from '@react-stately/collections';
27
26
  import { AriaSelectProps } from '@react-types/select';
28
27
  import { AriaTableProps } from '@react-aria/table';
@@ -141,8 +140,8 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
141
140
  }
142
141
  declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
143
142
 
144
- type RemovedProps$4 = 'isDisabled';
145
- interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$4> {
143
+ type RemovedProps$6 = 'isDisabled';
144
+ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$6> {
146
145
  variant?: string;
147
146
  size?: string;
148
147
  fullWidth?: boolean;
@@ -268,8 +267,8 @@ interface DividerProps extends RAC.SeparatorProps {
268
267
  }
269
268
  declare const _Divider: ({ variant, ...props }: DividerProps) => react_jsx_runtime.JSX.Element;
270
269
 
271
- type RemovedProps$3 = 'className';
272
- interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$3> {
270
+ type RemovedProps$5 = 'className';
271
+ interface LabelProps extends Omit<RAC.LabelProps, RemovedProps$5> {
273
272
  size?: string;
274
273
  variant?: string;
275
274
  }
@@ -316,8 +315,8 @@ interface HeaderProps extends Omit<HtmlProps<'header'>, 'className'> {
316
315
  }
317
316
  declare const Header: ({ children, variant, size, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
318
317
 
319
- type RemovedProps$2 = 'className' | 'level';
320
- interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$2>, TextAlignProp {
318
+ type RemovedProps$4 = 'className' | 'level';
319
+ interface HeadlineProps extends Omit<RAC.HeadingProps, RemovedProps$4>, TextAlignProp {
321
320
  color?: string;
322
321
  variant?: string;
323
322
  size?: string;
@@ -413,8 +412,8 @@ type InsetProps = {
413
412
  };
414
413
  declare const Inset: ({ space, spaceX, spaceY, children }: InsetProps) => react_jsx_runtime.JSX.Element;
415
414
 
416
- type RemovedProps$1 = 'className' | 'isDisabled';
417
- interface LinksProps extends Omit<RAC.LinkProps, RemovedProps$1> {
415
+ type RemovedProps$3 = 'className' | 'isDisabled';
416
+ interface LinksProps extends Omit<RAC.LinkProps, RemovedProps$3> {
418
417
  variant?: string;
419
418
  size?: string;
420
419
  disabled?: RAC.LinkProps['isDisabled'];
@@ -527,32 +526,39 @@ interface MarigoldProviderProps<T extends Theme> extends ThemeProviderProps<T> {
527
526
  }
528
527
  declare function MarigoldProvider<T extends Theme>({ children, theme, }: MarigoldProviderProps<T>): react_jsx_runtime.JSX.Element;
529
528
 
530
- interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRquired' | 'isReadOnly ' | 'validationState'> {
529
+ type RemovedProps$2 = 'className' | 'style' | 'isDisabled' | 'isInvalid' | 'isRequired' | 'isSelected';
530
+ interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$2> {
531
531
  variant?: string;
532
532
  size?: string;
533
+ label?: string;
534
+ description?: string;
535
+ errorMessage?: string;
533
536
  children: ReactNode[];
534
537
  width?: WidthProp['width'];
535
- required?: boolean;
536
- disabled?: boolean;
538
+ error?: RAC.RadioGroupProps['isInvalid'];
539
+ required?: RAC.RadioGroupProps['isRequired'];
540
+ disabled?: RAC.RadioGroupProps['isDisabled'];
537
541
  readOnly?: boolean;
538
- error?: boolean;
542
+ value?: string;
539
543
  }
540
- declare const RadioGroup: ({ variant, size, children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
544
+ declare const _RadioGroup: ({ variant, size, label, error, disabled, required, readOnly, description, errorMessage, orientation, children, width, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
541
545
 
542
- type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
543
- interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps | 'children' | 'className'>, AriaRadioProps {
544
- width?: string;
546
+ type RemovedProps$1 = 'className' | 'style' | 'children' | 'isDisabled';
547
+ interface RadioProps extends Omit<RAC.RadioProps, RemovedProps$1> {
545
548
  variant?: string;
546
549
  size?: string;
547
- disabled?: boolean;
550
+ width?: string;
551
+ children?: ReactNode;
552
+ disabled?: RAC.RadioProps['isDisabled'];
548
553
  }
549
- declare const Radio: RadioComponent;
554
+ declare const _Radio: RadioComponent;
555
+
550
556
  /**
551
557
  * We need this so that TypeScripts allows us to add
552
558
  * additional properties to the component (function).
553
559
  */
554
560
  interface RadioComponent extends ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>> {
555
- Group: typeof RadioGroup;
561
+ Group: typeof _RadioGroup;
556
562
  }
557
563
 
558
564
  interface SelectProps extends Omit<AriaSelectProps<object>, 'autoComplete' | 'isOpen' | 'isLoading' | 'onLoadMore' | 'isDisabled' | 'isRequired' | 'validationState' | 'onSelectionChange'>, Omit<HtmlProps<'select'>, 'onKeyUp' | 'onKeyDown' | 'onFocus' | 'onBlur' | 'children' | 'size' | 'onChange' | 'className'> {
@@ -728,4 +734,4 @@ declare const Tabs: {
728
734
  Item: <T>(props: _react_types_shared.ItemProps<T>) => JSX.Element;
729
735
  };
730
736
 
731
- export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, _Button as Button, ButtonProps, Calendar, CalendarCell, CalendarCellProps, CalendarGrid, CalendarGridProps, CalendarProps, Card, CardProps, Center, CenterProps, _Checkbox as Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, Columns, ColumnsProps, ComboBox, ComboBoxProps, Container, ContainerProps, CustomCheckboxProps, CustomRadioProps, CustomTextAreaEvents, CustomTextFieldEvents, DateField, DateFieldProps, DatePicker, DatePickerProps, Dialog, DialogChildProps, DialogProps, _Divider as Divider, DividerProps, FieldBase, FieldBaseProps, FieldGroup, FieldGroupContext, FieldGroupContextProps, FieldGroupProps, Footer, FooterProps, Header, HeaderProps, _Headline as Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, _Label as Label, LabelProps, _Link as Link, LinksProps, List, ListProps, MarigoldProvider, MarigoldProviderProps, Menu, MenuProps, Message, MessageProps, Modal, ModalProps, NumberField, NumberFieldProps, Overlay, OverlayProps, Popover, PopoverProps, Radio, RadioComponent, RadioGroup, RadioGroupProps, RadioProps, RowProps, Select, SelectComponent, SelectProps, _Slider as Slider, SliderProps, Split, SplitProps, Stack, StackProps, _Switch as Switch, SwitchProps, Table, TableProps, Tabs, Tag, TagComponent, Text, TextArea, TextAreaProps, TextField, TextFieldProps, TextProps, Tiles, TilesProps, Tooltip, TooltipProps, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, XLoader, _Slider, useCheckboxGroupContext, useFieldGroupContext };
737
+ export { Accordion, AccordionItem, AccordionItemProps, AccordionOwnItemProps, AccordionProps, ActionMenu, Aside, AsideProps, Aspect, AspectProps, Autocomplete, AutocompleteProps, Badge, BadgeProps, Body, BodyProps, Breakout, BreakoutProps, _Button as Button, ButtonProps, Calendar, CalendarCell, CalendarCellProps, CalendarGrid, CalendarGridProps, CalendarProps, Card, CardProps, Center, CenterProps, _Checkbox as Checkbox, CheckboxGroup, CheckboxGroupContext, CheckboxGroupContextProps, CheckboxGroupProps, CheckboxProps, Columns, ColumnsProps, ComboBox, ComboBoxProps, Container, ContainerProps, CustomCheckboxProps, CustomTextAreaEvents, CustomTextFieldEvents, DateField, DateFieldProps, DatePicker, DatePickerProps, Dialog, DialogChildProps, DialogProps, _Divider as Divider, DividerProps, FieldBase, FieldBaseProps, FieldGroup, FieldGroupContext, FieldGroupContextProps, FieldGroupProps, Footer, FooterProps, Header, HeaderProps, _Headline as Headline, HeadlineProps, Image, ImageProps, Inline, InlineProps, Input, InputOwnProps, InputProps, Inset, InsetProps, _Label as Label, LabelProps, _Link as Link, LinksProps, List, ListProps, MarigoldProvider, MarigoldProviderProps, Menu, MenuProps, Message, MessageProps, Modal, ModalProps, NumberField, NumberFieldProps, Overlay, OverlayProps, Popover, PopoverProps, _Radio as Radio, RadioComponent, _RadioGroup as RadioGroup, RadioGroupProps, RadioProps, RowProps, Select, SelectComponent, SelectProps, _Slider as Slider, SliderProps, Split, SplitProps, Stack, StackProps, _Switch as Switch, SwitchProps, Table, TableProps, Tabs, Tag, TagComponent, Text, TextArea, TextAreaProps, TextField, TextFieldProps, TextProps, Tiles, TilesProps, Tooltip, TooltipProps, Tray, TrayProps, TrayWrapper, Underlay, UnderlayProps, XLoader, _Slider, useCheckboxGroupContext, useFieldGroupContext };