@aurora-ds/components 1.1.3 → 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 +14 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +14 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -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 = {
|