@marigold/components 13.0.0 → 14.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 +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +140 -142
- package/dist/index.mjs +146 -142
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -293,7 +293,7 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
293
293
|
}
|
|
294
294
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
295
295
|
|
|
296
|
-
type RemovedProps$r = 'isDisabled' | 'isPending';
|
|
296
|
+
type RemovedProps$r = 'isDisabled' | 'isPending' | 'className' | 'style';
|
|
297
297
|
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$r> {
|
|
298
298
|
variant?: string;
|
|
299
299
|
size?: string;
|
|
@@ -302,10 +302,6 @@ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$r> {
|
|
|
302
302
|
* @default false
|
|
303
303
|
*/
|
|
304
304
|
fullWidth?: boolean;
|
|
305
|
-
/**
|
|
306
|
-
* Class of the component.
|
|
307
|
-
*/
|
|
308
|
-
className?: string;
|
|
309
305
|
/**
|
|
310
306
|
* Children of the component
|
|
311
307
|
*/
|
|
@@ -432,6 +428,7 @@ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$p> {
|
|
|
432
428
|
error?: boolean;
|
|
433
429
|
/**
|
|
434
430
|
* Set the label of the checkbox.
|
|
431
|
+
* @default none
|
|
435
432
|
*
|
|
436
433
|
*/
|
|
437
434
|
label?: ReactNode;
|
|
@@ -887,7 +884,8 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
887
884
|
variant?: string;
|
|
888
885
|
size?: string;
|
|
889
886
|
/**
|
|
890
|
-
*
|
|
887
|
+
* Sets the width of the calendar. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
888
|
+
* @default fit
|
|
891
889
|
*/
|
|
892
890
|
width?: WidthProp['width'];
|
|
893
891
|
/**
|
|
@@ -895,7 +893,7 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
895
893
|
*/
|
|
896
894
|
dateUnavailable?: RAC.CalendarProps<DateValue>['isDateUnavailable'];
|
|
897
895
|
}
|
|
898
|
-
declare const _Calendar: ({ disabled, readOnly, size, variant, dateUnavailable, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
896
|
+
declare const _Calendar: ({ disabled, readOnly, size, variant, width, dateUnavailable, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
899
897
|
|
|
900
898
|
type RemovedProps$j = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
901
899
|
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$j>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
@@ -1395,7 +1393,7 @@ interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$c> {
|
|
|
1395
1393
|
* Set the label of the radio group.
|
|
1396
1394
|
* @default none
|
|
1397
1395
|
*/
|
|
1398
|
-
label?:
|
|
1396
|
+
label?: ReactNode;
|
|
1399
1397
|
/**
|
|
1400
1398
|
* Set the radio group help text.
|
|
1401
1399
|
* @default none
|
|
@@ -1529,7 +1527,7 @@ interface SelectProps<T extends object> extends Omit<RAC.SelectProps<T>, RemoveP
|
|
|
1529
1527
|
/**
|
|
1530
1528
|
* Set a label for the select.
|
|
1531
1529
|
*/
|
|
1532
|
-
label?:
|
|
1530
|
+
label?: ReactNode;
|
|
1533
1531
|
/**
|
|
1534
1532
|
* Set a description for the select.
|
|
1535
1533
|
*/
|
|
@@ -1599,6 +1597,11 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps<object>
|
|
|
1599
1597
|
}
|
|
1600
1598
|
declare const _Select: SelectComponent;
|
|
1601
1599
|
|
|
1600
|
+
interface SelectListAction {
|
|
1601
|
+
children: ReactNode;
|
|
1602
|
+
}
|
|
1603
|
+
declare const SelectListAction: ({ children }: SelectListAction) => react_jsx_runtime.JSX.Element;
|
|
1604
|
+
|
|
1602
1605
|
type RemovedProps$9 = 'className' | 'style' | 'isDisabled';
|
|
1603
1606
|
interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, RemovedProps$9> {
|
|
1604
1607
|
children?: ReactNode;
|
|
@@ -1622,6 +1625,7 @@ interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps
|
|
|
1622
1625
|
* Items of the SelectList.
|
|
1623
1626
|
*/
|
|
1624
1627
|
Item: typeof _SelectListItem;
|
|
1628
|
+
Action: typeof SelectListAction;
|
|
1625
1629
|
}
|
|
1626
1630
|
declare const _SelectList: SelectListComponent;
|
|
1627
1631
|
|
package/dist/index.d.ts
CHANGED
|
@@ -293,7 +293,7 @@ interface BodyProps extends Omit<HtmlProps<'section'>, 'className'> {
|
|
|
293
293
|
}
|
|
294
294
|
declare const Body: ({ children, variant, size, ...props }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
295
295
|
|
|
296
|
-
type RemovedProps$r = 'isDisabled' | 'isPending';
|
|
296
|
+
type RemovedProps$r = 'isDisabled' | 'isPending' | 'className' | 'style';
|
|
297
297
|
interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$r> {
|
|
298
298
|
variant?: string;
|
|
299
299
|
size?: string;
|
|
@@ -302,10 +302,6 @@ interface ButtonProps extends Omit<RAC.ButtonProps, RemovedProps$r> {
|
|
|
302
302
|
* @default false
|
|
303
303
|
*/
|
|
304
304
|
fullWidth?: boolean;
|
|
305
|
-
/**
|
|
306
|
-
* Class of the component.
|
|
307
|
-
*/
|
|
308
|
-
className?: string;
|
|
309
305
|
/**
|
|
310
306
|
* Children of the component
|
|
311
307
|
*/
|
|
@@ -432,6 +428,7 @@ interface CheckboxProps extends Omit<RAC.CheckboxProps, RemovedProps$p> {
|
|
|
432
428
|
error?: boolean;
|
|
433
429
|
/**
|
|
434
430
|
* Set the label of the checkbox.
|
|
431
|
+
* @default none
|
|
435
432
|
*
|
|
436
433
|
*/
|
|
437
434
|
label?: ReactNode;
|
|
@@ -887,7 +884,8 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
887
884
|
variant?: string;
|
|
888
885
|
size?: string;
|
|
889
886
|
/**
|
|
890
|
-
*
|
|
887
|
+
* Sets the width of the calendar. You can see allowed tokens here: https://tailwindcss.com/docs/width
|
|
888
|
+
* @default fit
|
|
891
889
|
*/
|
|
892
890
|
width?: WidthProp['width'];
|
|
893
891
|
/**
|
|
@@ -895,7 +893,7 @@ interface CalendarProps extends Omit<RAC.CalendarProps<DateValue>, RemovedProps$
|
|
|
895
893
|
*/
|
|
896
894
|
dateUnavailable?: RAC.CalendarProps<DateValue>['isDateUnavailable'];
|
|
897
895
|
}
|
|
898
|
-
declare const _Calendar: ({ disabled, readOnly, size, variant, dateUnavailable, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
896
|
+
declare const _Calendar: ({ disabled, readOnly, size, variant, width, dateUnavailable, ...rest }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
899
897
|
|
|
900
898
|
type RemovedProps$j = 'isDisabled' | 'isDateUnavailable' | 'isReadOnly' | 'isRequired' | 'isInvalid' | 'style' | 'className' | 'isOpen';
|
|
901
899
|
interface DatePickerProps extends Omit<RAC.DatePickerProps<DateValue>, RemovedProps$j>, Pick<FieldBaseProps<'label'>, 'label' | 'description' | 'errorMessage'> {
|
|
@@ -1395,7 +1393,7 @@ interface RadioGroupProps extends Omit<RAC.RadioGroupProps, RemovedProps$c> {
|
|
|
1395
1393
|
* Set the label of the radio group.
|
|
1396
1394
|
* @default none
|
|
1397
1395
|
*/
|
|
1398
|
-
label?:
|
|
1396
|
+
label?: ReactNode;
|
|
1399
1397
|
/**
|
|
1400
1398
|
* Set the radio group help text.
|
|
1401
1399
|
* @default none
|
|
@@ -1529,7 +1527,7 @@ interface SelectProps<T extends object> extends Omit<RAC.SelectProps<T>, RemoveP
|
|
|
1529
1527
|
/**
|
|
1530
1528
|
* Set a label for the select.
|
|
1531
1529
|
*/
|
|
1532
|
-
label?:
|
|
1530
|
+
label?: ReactNode;
|
|
1533
1531
|
/**
|
|
1534
1532
|
* Set a description for the select.
|
|
1535
1533
|
*/
|
|
@@ -1599,6 +1597,11 @@ interface SelectComponent extends ForwardRefExoticComponent<SelectProps<object>
|
|
|
1599
1597
|
}
|
|
1600
1598
|
declare const _Select: SelectComponent;
|
|
1601
1599
|
|
|
1600
|
+
interface SelectListAction {
|
|
1601
|
+
children: ReactNode;
|
|
1602
|
+
}
|
|
1603
|
+
declare const SelectListAction: ({ children }: SelectListAction) => react_jsx_runtime.JSX.Element;
|
|
1604
|
+
|
|
1602
1605
|
type RemovedProps$9 = 'className' | 'style' | 'isDisabled';
|
|
1603
1606
|
interface SelectListItemProps extends Omit<RAC.GridListItemProps<object>, RemovedProps$9> {
|
|
1604
1607
|
children?: ReactNode;
|
|
@@ -1622,6 +1625,7 @@ interface SelectListComponent extends ForwardRefExoticComponent<SelectListProps
|
|
|
1622
1625
|
* Items of the SelectList.
|
|
1623
1626
|
*/
|
|
1624
1627
|
Item: typeof _SelectListItem;
|
|
1628
|
+
Action: typeof SelectListAction;
|
|
1625
1629
|
}
|
|
1626
1630
|
declare const _SelectList: SelectListComponent;
|
|
1627
1631
|
|