@aurora-ds/components 1.1.2 → 1.1.4
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 +30 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +30 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -841,6 +841,12 @@ declare const Box: FC<BoxProps>;
|
|
|
841
841
|
type CardProps = BoxProps & {
|
|
842
842
|
/** Visual style. @default 'outlined' */
|
|
843
843
|
variant?: CardVariant;
|
|
844
|
+
/**
|
|
845
|
+
* Inner padding using a spacing token. Use `'none'` when composing with
|
|
846
|
+
* `Card.Header` / `Card.Body`, which manage their own spacing.
|
|
847
|
+
* @default 'md'
|
|
848
|
+
*/
|
|
849
|
+
padding?: keyof Theme['spacing'];
|
|
844
850
|
};
|
|
845
851
|
|
|
846
852
|
type CardHeaderProps = {
|
|
@@ -927,11 +933,24 @@ type AlertProps = {
|
|
|
927
933
|
children?: ReactNode;
|
|
928
934
|
/** Explicit width for the Alert. */
|
|
929
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'];
|
|
930
940
|
};
|
|
931
941
|
|
|
932
942
|
type AlertTitleProps = {
|
|
933
943
|
/** Title text displayed next to the variant icon. */
|
|
934
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;
|
|
935
954
|
};
|
|
936
955
|
|
|
937
956
|
type AlertBodyProps = {
|