@veeqo/ui 5.10.0 → 5.12.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/components/Alert/Alert.d.ts +3 -0
- package/dist/components/Alert/Alert.test.d.ts +1 -0
- package/dist/components/Alert/constants.d.ts +6 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Alert/styled.d.ts +4 -0
- package/dist/components/Alert/types.d.ts +20 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tempIcons/RecommendIcon.d.ts +2 -0
- package/dist/tempIcons/WarningIcon.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AlertColours, AlertSizes, AlertVariants } from './types';
|
|
3
|
+
export declare const SpacingMap: Record<AlertSizes, string>;
|
|
4
|
+
export declare const IconSizeMap: Record<AlertSizes, string>;
|
|
5
|
+
export declare const IconMap: Record<AlertVariants, (props: any) => React.JSX.Element>;
|
|
6
|
+
export declare const ColourMap: Record<AlertVariants, AlertColours>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Alert } from './Alert';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Action } from '../Modal/types';
|
|
3
|
+
export type AlertProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
size?: AlertSizes;
|
|
5
|
+
variant?: AlertVariants;
|
|
6
|
+
colours?: AlertColours;
|
|
7
|
+
rightActions?: Action[];
|
|
8
|
+
title?: string;
|
|
9
|
+
titleSlot?: ReactNode;
|
|
10
|
+
message?: string;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
iconSlot?: (props: any) => React.JSX.Element;
|
|
13
|
+
onClickClose?: () => void;
|
|
14
|
+
};
|
|
15
|
+
export type AlertVariants = 'default' | 'error' | 'success' | 'info' | 'warning' | 'recommend';
|
|
16
|
+
export type AlertSizes = 'base' | 'sm' | 'xs';
|
|
17
|
+
export type AlertColours = {
|
|
18
|
+
primary: string;
|
|
19
|
+
background: string;
|
|
20
|
+
};
|