@marigold/components 6.2.5 → 6.2.6

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
@@ -410,8 +410,9 @@ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDis
410
410
  shouldCloseOnSelect?: boolean;
411
411
  variant?: string;
412
412
  size?: string;
413
+ width?: WidthProp['width'];
413
414
  }
414
- declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
415
+ declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, width, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
415
416
 
416
417
  type InsetProps = {
417
418
  children: ReactNode;
@@ -492,7 +493,7 @@ declare const Message: ({ messageTitle, variant, size, children, ...props }: Mes
492
493
  * Thus, we adjust our regular props to match them.
493
494
  */
494
495
  type CustomProps = 'size' | 'width' | 'type' | 'value' | 'defaultValue' | 'step' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp' | 'min' | 'max';
495
- interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<AriaNumberFieldProps, 'isDisabled' | 'isRequired' | 'isReadOnly'>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
496
+ interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<AriaNumberFieldProps, 'isDisabled' | 'label' | 'description' | 'errorMessage' | 'isRequired' | 'isReadOnly'>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
496
497
  variant?: string;
497
498
  size?: string;
498
499
  width?: WidthProp['width'];
@@ -553,7 +554,7 @@ interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRq
553
554
  declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
554
555
 
555
556
  type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
556
- interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps>, AriaRadioProps {
557
+ interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps | 'children'>, AriaRadioProps {
557
558
  width?: string;
558
559
  variant?: string;
559
560
  size?: string;
@@ -620,7 +621,7 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
620
621
  declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
621
622
 
622
623
  type CustomSwitchProps = 'size' | 'value' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyUp';
623
- interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps> {
624
+ interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps | 'children'> {
624
625
  selected?: boolean;
625
626
  variant?: string;
626
627
  size?: string;
package/dist/index.d.ts CHANGED
@@ -410,8 +410,9 @@ interface DatePickerProps extends Omit<AriaDatePickerProps<CalendarDate>, 'isDis
410
410
  shouldCloseOnSelect?: boolean;
411
411
  variant?: string;
412
412
  size?: string;
413
+ width?: WidthProp['width'];
413
414
  }
414
- declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
415
+ declare const DatePicker: ({ disabled, required, readonly, open, error, shouldCloseOnSelect, variant, size, width, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
415
416
 
416
417
  type InsetProps = {
417
418
  children: ReactNode;
@@ -492,7 +493,7 @@ declare const Message: ({ messageTitle, variant, size, children, ...props }: Mes
492
493
  * Thus, we adjust our regular props to match them.
493
494
  */
494
495
  type CustomProps = 'size' | 'width' | 'type' | 'value' | 'defaultValue' | 'step' | 'onChange' | 'onFocus' | 'onBlur' | 'onKeyDown' | 'onKeyUp' | 'min' | 'max';
495
- interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<AriaNumberFieldProps, 'isDisabled' | 'isRequired' | 'isReadOnly'>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
496
+ interface NumberFieldProps extends Omit<HtmlProps<'input'>, CustomProps>, Omit<AriaNumberFieldProps, 'isDisabled' | 'label' | 'description' | 'errorMessage' | 'isRequired' | 'isReadOnly'>, Pick<FieldBaseProps, 'label' | 'description' | 'error' | 'errorMessage'> {
496
497
  variant?: string;
497
498
  size?: string;
498
499
  width?: WidthProp['width'];
@@ -553,7 +554,7 @@ interface RadioGroupProps extends Omit<AriaRadioGroupProps, 'isDisabled' | 'isRq
553
554
  declare const RadioGroup: ({ children, orientation, width, required, disabled, readOnly, error, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
554
555
 
555
556
  type CustomRadioProps = 'size' | 'width' | 'type' | 'defaultChecked' | 'value' | 'onFocus' | 'onBlur' | 'onKeyUp' | 'onKeyDown';
556
- interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps>, AriaRadioProps {
557
+ interface RadioProps extends Omit<HtmlProps<'input'>, CustomRadioProps | 'children'>, AriaRadioProps {
557
558
  width?: string;
558
559
  variant?: string;
559
560
  size?: string;
@@ -620,7 +621,7 @@ interface StackProps extends AlignmentProp, GapSpaceProp {
620
621
  declare const Stack: ({ children, space, stretch, orientation, alignX, alignY, ...props }: StackProps) => react_jsx_runtime.JSX.Element;
621
622
 
622
623
  type CustomSwitchProps = 'size' | 'value' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyUp';
623
- interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps> {
624
+ interface SwitchProps extends Omit<AriaSwitchProps, 'isSelected'>, Omit<HtmlProps<'input'>, CustomSwitchProps | 'children'> {
624
625
  selected?: boolean;
625
626
  variant?: string;
626
627
  size?: string;
package/dist/index.js CHANGED
@@ -2484,6 +2484,7 @@ var DatePicker = ({
2484
2484
  shouldCloseOnSelect,
2485
2485
  variant,
2486
2486
  size,
2487
+ width,
2487
2488
  ...rest
2488
2489
  }) => {
2489
2490
  const props = {
@@ -2525,6 +2526,7 @@ var DatePicker = ({
2525
2526
  error,
2526
2527
  description: !state.isOpen && description,
2527
2528
  triggerRef: ref,
2529
+ width,
2528
2530
  action: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: classNames2.container, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
2529
2531
  Button,
2530
2532
  {
package/dist/index.mjs CHANGED
@@ -2452,6 +2452,7 @@ var DatePicker = ({
2452
2452
  shouldCloseOnSelect,
2453
2453
  variant,
2454
2454
  size,
2455
+ width,
2455
2456
  ...rest
2456
2457
  }) => {
2457
2458
  const props = {
@@ -2493,6 +2494,7 @@ var DatePicker = ({
2493
2494
  error,
2494
2495
  description: !state.isOpen && description,
2495
2496
  triggerRef: ref,
2497
+ width,
2496
2498
  action: /* @__PURE__ */ jsx51("div", { className: classNames2.container, children: /* @__PURE__ */ jsx51(
2497
2499
  Button,
2498
2500
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/components",
3
- "version": "6.2.5",
3
+ "version": "6.2.6",
4
4
  "description": "Components for the Marigold Design System",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -83,8 +83,8 @@
83
83
  "@react-types/table": "3.8.0",
84
84
  "@react-types/tooltip": "3.4.3",
85
85
  "react-is": "18.2.0",
86
- "@marigold/icons": "1.2.14",
87
- "@marigold/system": "6.2.5",
86
+ "@marigold/icons": "1.2.15",
87
+ "@marigold/system": "6.2.6",
88
88
  "@marigold/types": "1.0.1"
89
89
  },
90
90
  "peerDependencies": {
@@ -92,7 +92,9 @@
92
92
  "react-dom": "17.x || 18.x"
93
93
  },
94
94
  "devDependencies": {
95
- "@types/react": "18.2.14",
95
+ "@types/react": "18.2.21",
96
+ "@types/react-transition-group": "4.4.6",
97
+ "class-variance-authority": "0.7.0",
96
98
  "react": "18.2.0",
97
99
  "react-dom": "18.2.0",
98
100
  "tsup": "7.2.0",