@marigold/components 9.0.0 → 9.0.1
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 +26 -7
- package/dist/index.d.ts +26 -7
- package/dist/index.js +155 -145
- package/dist/index.mjs +21 -11
- package/package.json +23 -23
package/dist/index.d.mts
CHANGED
|
@@ -331,7 +331,7 @@ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, Pa
|
|
|
331
331
|
variant?: string;
|
|
332
332
|
size?: string;
|
|
333
333
|
/**
|
|
334
|
-
* Padding of the component.
|
|
334
|
+
* Padding of the component. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
335
335
|
*/
|
|
336
336
|
p?: PaddingSpaceProp['space'];
|
|
337
337
|
/**
|
|
@@ -339,7 +339,7 @@ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, Pa
|
|
|
339
339
|
*/
|
|
340
340
|
px?: PaddingSpacePropX['spaceX'];
|
|
341
341
|
/**
|
|
342
|
-
* Padding vertical (top and bottom) of the component.
|
|
342
|
+
* Padding vertical (top and bottom) of the component. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
343
343
|
*/
|
|
344
344
|
py?: PaddingSpacePropY['spaceY'];
|
|
345
345
|
}
|
|
@@ -520,7 +520,7 @@ interface HeadlineProps extends TextAlignProp {
|
|
|
520
520
|
variant?: string;
|
|
521
521
|
size?: string;
|
|
522
522
|
/**
|
|
523
|
-
* Set a different level
|
|
523
|
+
* Set a different level.
|
|
524
524
|
*/
|
|
525
525
|
level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
|
|
526
526
|
/**
|
|
@@ -571,7 +571,13 @@ interface FooterProps extends Omit<HtmlProps<'footer'>, 'className'> {
|
|
|
571
571
|
declare const Footer: ({ children, variant, size, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
572
572
|
|
|
573
573
|
interface GridAreaProps {
|
|
574
|
+
/**
|
|
575
|
+
* Name of the grid area slot to put the component.
|
|
576
|
+
*/
|
|
574
577
|
name: string;
|
|
578
|
+
/**
|
|
579
|
+
* Children of the component.
|
|
580
|
+
*/
|
|
575
581
|
children?: ReactNode;
|
|
576
582
|
}
|
|
577
583
|
|
|
@@ -742,17 +748,17 @@ type InsetProps = {
|
|
|
742
748
|
children: ReactNode;
|
|
743
749
|
space?: never;
|
|
744
750
|
/**
|
|
745
|
-
* Horizontal alignment for the children
|
|
751
|
+
* Horizontal alignment for the children. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
746
752
|
*/
|
|
747
753
|
spaceX?: PaddingSpacePropX['spaceX'];
|
|
748
754
|
/**
|
|
749
|
-
* Vertical alignment for the children
|
|
755
|
+
* Vertical alignment for the children. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
750
756
|
*/
|
|
751
757
|
spaceY?: PaddingSpacePropY['spaceY'];
|
|
752
758
|
} | {
|
|
753
759
|
children: ReactNode;
|
|
754
760
|
/**
|
|
755
|
-
* The space between the children
|
|
761
|
+
* The space between the children. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
756
762
|
*/
|
|
757
763
|
space?: PaddingSpaceProp['space'];
|
|
758
764
|
spaceX?: never;
|
|
@@ -780,6 +786,9 @@ interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$d> {
|
|
|
780
786
|
declare const _Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
781
787
|
|
|
782
788
|
interface ListItemProps {
|
|
789
|
+
/**
|
|
790
|
+
* Children of the component.
|
|
791
|
+
*/
|
|
783
792
|
children?: ReactNode;
|
|
784
793
|
}
|
|
785
794
|
|
|
@@ -863,10 +872,16 @@ interface ActionMenuProps extends RAC.MenuProps<object> {
|
|
|
863
872
|
declare const ActionMenu: ({ variant, size, disabled, ...props }: ActionMenuProps) => react_jsx_runtime.JSX.Element;
|
|
864
873
|
|
|
865
874
|
interface SectionMessageContentProps {
|
|
875
|
+
/**
|
|
876
|
+
* The children of the component.
|
|
877
|
+
*/
|
|
866
878
|
children?: ReactNode;
|
|
867
879
|
}
|
|
868
880
|
|
|
869
881
|
interface SectionMessageTitleProps {
|
|
882
|
+
/**
|
|
883
|
+
* The children of the component.
|
|
884
|
+
*/
|
|
870
885
|
children?: ReactNode;
|
|
871
886
|
}
|
|
872
887
|
|
|
@@ -1291,7 +1306,7 @@ interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$5> {
|
|
|
1291
1306
|
}
|
|
1292
1307
|
declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLLabelElement>>;
|
|
1293
1308
|
|
|
1294
|
-
interface TableProps extends Pick<AriaTableProps
|
|
1309
|
+
interface TableProps extends Pick<AriaTableProps, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes' | 'showDragButtons' | 'allowDuplicateSelectionEvents'> {
|
|
1295
1310
|
variant?: string;
|
|
1296
1311
|
size?: string;
|
|
1297
1312
|
/**
|
|
@@ -1309,6 +1324,10 @@ interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAc
|
|
|
1309
1324
|
* @default false
|
|
1310
1325
|
*/
|
|
1311
1326
|
disableKeyboardNavigation?: boolean;
|
|
1327
|
+
/**
|
|
1328
|
+
* Content to display when there are no rows in the table.
|
|
1329
|
+
*/
|
|
1330
|
+
emptyState?: () => ReactNode;
|
|
1312
1331
|
}
|
|
1313
1332
|
interface RowProps extends RowProps$1<any> {
|
|
1314
1333
|
variant?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -331,7 +331,7 @@ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, Pa
|
|
|
331
331
|
variant?: string;
|
|
332
332
|
size?: string;
|
|
333
333
|
/**
|
|
334
|
-
* Padding of the component.
|
|
334
|
+
* Padding of the component. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
335
335
|
*/
|
|
336
336
|
p?: PaddingSpaceProp['space'];
|
|
337
337
|
/**
|
|
@@ -339,7 +339,7 @@ interface CardProps extends GapSpaceProp, PaddingSpaceProp, PaddingRightProp, Pa
|
|
|
339
339
|
*/
|
|
340
340
|
px?: PaddingSpacePropX['spaceX'];
|
|
341
341
|
/**
|
|
342
|
-
* Padding vertical (top and bottom) of the component.
|
|
342
|
+
* Padding vertical (top and bottom) of the component. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
343
343
|
*/
|
|
344
344
|
py?: PaddingSpacePropY['spaceY'];
|
|
345
345
|
}
|
|
@@ -520,7 +520,7 @@ interface HeadlineProps extends TextAlignProp {
|
|
|
520
520
|
variant?: string;
|
|
521
521
|
size?: string;
|
|
522
522
|
/**
|
|
523
|
-
* Set a different level
|
|
523
|
+
* Set a different level.
|
|
524
524
|
*/
|
|
525
525
|
level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
|
|
526
526
|
/**
|
|
@@ -571,7 +571,13 @@ interface FooterProps extends Omit<HtmlProps<'footer'>, 'className'> {
|
|
|
571
571
|
declare const Footer: ({ children, variant, size, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
572
572
|
|
|
573
573
|
interface GridAreaProps {
|
|
574
|
+
/**
|
|
575
|
+
* Name of the grid area slot to put the component.
|
|
576
|
+
*/
|
|
574
577
|
name: string;
|
|
578
|
+
/**
|
|
579
|
+
* Children of the component.
|
|
580
|
+
*/
|
|
575
581
|
children?: ReactNode;
|
|
576
582
|
}
|
|
577
583
|
|
|
@@ -742,17 +748,17 @@ type InsetProps = {
|
|
|
742
748
|
children: ReactNode;
|
|
743
749
|
space?: never;
|
|
744
750
|
/**
|
|
745
|
-
* Horizontal alignment for the children
|
|
751
|
+
* Horizontal alignment for the children. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
746
752
|
*/
|
|
747
753
|
spaceX?: PaddingSpacePropX['spaceX'];
|
|
748
754
|
/**
|
|
749
|
-
* Vertical alignment for the children
|
|
755
|
+
* Vertical alignment for the children. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
750
756
|
*/
|
|
751
757
|
spaceY?: PaddingSpacePropY['spaceY'];
|
|
752
758
|
} | {
|
|
753
759
|
children: ReactNode;
|
|
754
760
|
/**
|
|
755
|
-
* The space between the children
|
|
761
|
+
* The space between the children. You can see allowed tokens [here](../../introduction/design-tokens?theme=core#spacing).
|
|
756
762
|
*/
|
|
757
763
|
space?: PaddingSpaceProp['space'];
|
|
758
764
|
spaceX?: never;
|
|
@@ -780,6 +786,9 @@ interface LinkProps extends Omit<RAC.LinkProps, RemovedProps$d> {
|
|
|
780
786
|
declare const _Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
781
787
|
|
|
782
788
|
interface ListItemProps {
|
|
789
|
+
/**
|
|
790
|
+
* Children of the component.
|
|
791
|
+
*/
|
|
783
792
|
children?: ReactNode;
|
|
784
793
|
}
|
|
785
794
|
|
|
@@ -863,10 +872,16 @@ interface ActionMenuProps extends RAC.MenuProps<object> {
|
|
|
863
872
|
declare const ActionMenu: ({ variant, size, disabled, ...props }: ActionMenuProps) => react_jsx_runtime.JSX.Element;
|
|
864
873
|
|
|
865
874
|
interface SectionMessageContentProps {
|
|
875
|
+
/**
|
|
876
|
+
* The children of the component.
|
|
877
|
+
*/
|
|
866
878
|
children?: ReactNode;
|
|
867
879
|
}
|
|
868
880
|
|
|
869
881
|
interface SectionMessageTitleProps {
|
|
882
|
+
/**
|
|
883
|
+
* The children of the component.
|
|
884
|
+
*/
|
|
870
885
|
children?: ReactNode;
|
|
871
886
|
}
|
|
872
887
|
|
|
@@ -1291,7 +1306,7 @@ interface SwitchProps extends Omit<RAC.SwitchProps, RemovedProps$5> {
|
|
|
1291
1306
|
}
|
|
1292
1307
|
declare const _Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<HTMLLabelElement>>;
|
|
1293
1308
|
|
|
1294
|
-
interface TableProps extends Pick<AriaTableProps
|
|
1309
|
+
interface TableProps extends Pick<AriaTableProps, 'focusMode' | 'onRowAction' | 'onCellAction'>, Omit<TableStateProps<object>, 'showSelectionCheckboxes' | 'showDragButtons' | 'allowDuplicateSelectionEvents'> {
|
|
1295
1310
|
variant?: string;
|
|
1296
1311
|
size?: string;
|
|
1297
1312
|
/**
|
|
@@ -1309,6 +1324,10 @@ interface TableProps extends Pick<AriaTableProps<object>, 'focusMode' | 'onRowAc
|
|
|
1309
1324
|
* @default false
|
|
1310
1325
|
*/
|
|
1311
1326
|
disableKeyboardNavigation?: boolean;
|
|
1327
|
+
/**
|
|
1328
|
+
* Content to display when there are no rows in the table.
|
|
1329
|
+
*/
|
|
1330
|
+
emptyState?: () => ReactNode;
|
|
1312
1331
|
}
|
|
1313
1332
|
interface RowProps extends RowProps$1<any> {
|
|
1314
1333
|
variant?: string;
|