@televet/kibble-ui 1.12.13 → 1.12.14-beta.2f7t93z.2
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/build/components/Feedback/Alert/alert.component.d.ts +21 -0
- package/build/components/Feedback/Alert/alert.config.d.ts +2 -0
- package/build/components/Feedback/Alert/alert.types.d.ts +13 -0
- package/build/components/Feedback/Alert/components/AlertButton/alertButton.component.d.ts +8 -0
- package/build/components/Feedback/Alert/components/AlertIcon/alertIcon.component.d.ts +6 -0
- package/build/components/Feedback/Alert/index.d.ts +6 -0
- package/build/components/Feedback/index.d.ts +1 -0
- package/build/components/index.d.ts +1 -0
- package/build/hooks/useOverflowingText.d.ts +2 -0
- package/build/index.js +997 -893
- package/build/index.js.map +1 -1
- package/build/theme/theme.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlertProps as CAlertProps } from '@chakra-ui/react';
|
|
3
|
+
import { IconProps } from 'components/MediaAndIcons';
|
|
4
|
+
import { AlertVariant } from './alert.types';
|
|
5
|
+
import { ButtonProps } from 'components/Forms/Button';
|
|
6
|
+
import { TextProps } from 'components/Typography/Text';
|
|
7
|
+
export interface AlertProps extends CAlertProps {
|
|
8
|
+
status?: AlertVariant;
|
|
9
|
+
showIcon?: boolean;
|
|
10
|
+
iconProps?: IconProps;
|
|
11
|
+
showButton?: boolean;
|
|
12
|
+
buttonProps?: ButtonProps;
|
|
13
|
+
buttonTitle?: string;
|
|
14
|
+
alertTitle: string;
|
|
15
|
+
titleProps?: TextProps;
|
|
16
|
+
description?: string;
|
|
17
|
+
descriptionProps?: TextProps;
|
|
18
|
+
showCloseButton?: boolean;
|
|
19
|
+
onClose?: React.MouseEventHandler<HTMLButtonElement>;
|
|
20
|
+
}
|
|
21
|
+
export declare const Alert: ({ status, showIcon, iconProps, showButton, buttonProps, buttonTitle, alertTitle, titleProps, description, descriptionProps, showCloseButton, onClose, }: AlertProps) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum AlertVariant {
|
|
2
|
+
Error = "error",
|
|
3
|
+
Warning = "warning",
|
|
4
|
+
Success = "success",
|
|
5
|
+
Info = "info"
|
|
6
|
+
}
|
|
7
|
+
export declare enum AlertStatusIcon {
|
|
8
|
+
error = "warningSign",
|
|
9
|
+
warning = "warningSign",
|
|
10
|
+
success = "checkmark",
|
|
11
|
+
info = "infoCircleOutlined"
|
|
12
|
+
}
|
|
13
|
+
export declare type AlertButtonAlignment = 'right' | 'bottom';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AlertButtonAlignment, AlertVariant } from '../../alert.types';
|
|
2
|
+
import { ButtonProps } from 'components/Forms/Button';
|
|
3
|
+
export interface AlertButtonProps extends ButtonProps {
|
|
4
|
+
alignment: AlertButtonAlignment;
|
|
5
|
+
status: AlertVariant;
|
|
6
|
+
pairedWithCloseButton?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const AlertButton: ({ status, alignment, variant, size, pairedWithCloseButton, ...rest }: AlertButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AlertVariant } from '../../alert.types';
|
|
2
|
+
import { IconProps } from 'components/MediaAndIcons/Icon';
|
|
3
|
+
export interface AlertIconProps extends IconProps {
|
|
4
|
+
status: AlertVariant;
|
|
5
|
+
}
|
|
6
|
+
export declare const AlertIcon: ({ status, ...rest }: AlertIconProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Alert as CAlert } from '@chakra-ui/react';
|
|
2
|
+
export * from './components/AlertButton/alertButton.component';
|
|
3
|
+
export * from './components/AlertIcon/alertIcon.component';
|
|
4
|
+
export * from './alert.component';
|
|
5
|
+
export * from './alert.types';
|
|
6
|
+
export * from './alert.config';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Alert';
|