@veeqo/ui 7.2.4 → 7.3.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.
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import type { AlertProps } from './types';
3
- export declare const Alert: ({ size, variant, colours: passedColours, rightActions, rightActionsSlot, title, titleSlot, messageSlot, message, children, iconSlot, onClickClose, ...divProps }: AlertProps) => React.JSX.Element;
2
+ import { AlertProps } from './types';
3
+ export declare const Alert: ({ size, variant, colours: passedColours, rightActions, RightActionsSlot, title, TitleSlot, MessageSlot, message, children, iconSlot, onClickClose, ...divProps }: AlertProps) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { AlertSizes } from './types';
2
+ export declare const SpacingMap: Record<AlertSizes, string>;
3
+ export declare const IconSizeMap: Record<AlertSizes, string>;
@@ -0,0 +1,4 @@
1
+ import { AlertColours } from '../types';
2
+ export declare const AlertContainer: import("styled-components").StyledComponent<"div", any, import("../../Stack/types").StackProps & {
3
+ colours: AlertColours;
4
+ }, never>;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { Action } from '../../Modal/types';
3
+ import { AlertColours, BaseAlertProps } from '../types';
4
+ export type AlertProps = React.HTMLAttributes<HTMLDivElement> & BaseAlertProps & {
5
+ size?: AlertSizes;
6
+ colours?: AlertColours;
7
+ rightActions?: Action[];
8
+ RightActionsSlot?: ReactNode;
9
+ TitleSlot?: ReactNode;
10
+ MessageSlot?: ReactNode;
11
+ message?: string;
12
+ children?: ReactNode;
13
+ onClickClose?: () => void;
14
+ };
15
+ export type AlertSizes = 'base' | 'sm' | 'xs';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MiniAlertProps } from './types';
3
+ export declare const MiniAlert: ({ title, variant, iconSlot, customTitleColour, customIconColour, }: MiniAlertProps) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { AlertVariants } from '../types';
2
+ export declare const TextColourMap: Record<AlertVariants, string>;
3
+ export declare const IconStyles: {
4
+ minWidth: string;
5
+ minHeight: string;
6
+ width: string;
7
+ height: string;
8
+ };
@@ -0,0 +1 @@
1
+ export { MiniAlert } from './MiniAlert';
@@ -0,0 +1,5 @@
1
+ import { BaseAlertProps } from '../types';
2
+ export type MiniAlertProps = BaseAlertProps & {
3
+ customIconColour?: string;
4
+ customTitleColour?: string;
5
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AlertColours, AlertVariants } from './types';
3
+ export declare const IconMap: Record<AlertVariants, (props: any) => React.JSX.Element>;
4
+ export declare const ColourMap: Record<AlertVariants, AlertColours>;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export type AlertColours = {
3
+ primary: string;
4
+ background: string;
5
+ };
6
+ export type AlertVariants = 'default' | 'error' | 'success' | 'info' | 'warning' | 'recommend';
7
+ export type BaseAlertProps = {
8
+ title?: string;
9
+ variant?: AlertVariants;
10
+ iconSlot?: (props: any) => React.JSX.Element;
11
+ };
@@ -1,6 +1,7 @@
1
1
  export { Accordion } from './Accordion';
2
2
  export { ActionMenu } from './ActionMenu';
3
- export { Alert } from './Alert';
3
+ export { Alert } from './Alerts/Alert';
4
+ export { MiniAlert } from './Alerts/MiniAlert';
4
5
  export { Anchor } from './Anchor';
5
6
  export { AnimatedDropdown } from './AnimatedDropdown';
6
7
  export { Avatar } from './Avatar';