@aurora-ds/components 1.1.3 → 1.1.5
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/cjs/index.js +18 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +18 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +17 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -849,7 +849,9 @@ type CardProps = BoxProps & {
|
|
|
849
849
|
padding?: keyof Theme['spacing'];
|
|
850
850
|
};
|
|
851
851
|
|
|
852
|
-
type
|
|
852
|
+
type StackProps = BoxProps;
|
|
853
|
+
|
|
854
|
+
type CardHeaderProps = StackProps & {
|
|
853
855
|
/** Main label of the card header. */
|
|
854
856
|
label: string;
|
|
855
857
|
/** Optional icon rendered before the label. */
|
|
@@ -858,7 +860,7 @@ type CardHeaderProps = {
|
|
|
858
860
|
actions?: ReactNode;
|
|
859
861
|
};
|
|
860
862
|
|
|
861
|
-
type CardBodyProps = {
|
|
863
|
+
type CardBodyProps = StackProps & {
|
|
862
864
|
/** Card body content. */
|
|
863
865
|
children: ReactNode;
|
|
864
866
|
/** Vertical padding using a spacing token. @default 'md' */
|
|
@@ -912,8 +914,6 @@ type GridProps = Omit<BoxProps, 'display'> & GridStyleProps & {
|
|
|
912
914
|
*/
|
|
913
915
|
declare const Grid: FC<GridProps>;
|
|
914
916
|
|
|
915
|
-
type StackProps = BoxProps;
|
|
916
|
-
|
|
917
917
|
/**
|
|
918
918
|
* A flex `Box` for laying out children along a single axis.
|
|
919
919
|
*
|
|
@@ -933,11 +933,24 @@ type AlertProps = {
|
|
|
933
933
|
children?: ReactNode;
|
|
934
934
|
/** Explicit width for the Alert. */
|
|
935
935
|
width?: CSSProperties['width'];
|
|
936
|
+
/** Whether to show the border outline. @default true */
|
|
937
|
+
outline?: boolean;
|
|
938
|
+
/** Box shadow token. @default 'none' */
|
|
939
|
+
shadow?: keyof Theme['shadows'];
|
|
936
940
|
};
|
|
937
941
|
|
|
938
942
|
type AlertTitleProps = {
|
|
939
943
|
/** Title text displayed next to the variant icon. */
|
|
940
944
|
children: ReactNode;
|
|
945
|
+
/**
|
|
946
|
+
* Custom icon to display.
|
|
947
|
+
* - For **default** variant: adds an icon (none exists by default).
|
|
948
|
+
* - For **success / error / warning / info** variants: replaces the built-in variant icon.
|
|
949
|
+
*
|
|
950
|
+
* Pass a raw SVG component (inherits the accent color) or a pre-rendered `ReactNode`
|
|
951
|
+
* (e.g. `<Icon icon={MyIcon} strokeColor="primaryMain" />`) for full customisation.
|
|
952
|
+
*/
|
|
953
|
+
icon?: ComponentType<SVGProps<SVGSVGElement>> | ReactNode;
|
|
941
954
|
};
|
|
942
955
|
|
|
943
956
|
type AlertBodyProps = {
|