@televet/kibble-ui 1.17.11-beta.863fuyn1f.2 → 1.17.11
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 +5 -3
- package/build/components/Feedback/Alert/index.d.ts +0 -2
- package/build/components/Feedback/feedback.model.d.ts +5 -0
- package/build/components/Feedback/index.d.ts +2 -0
- package/build/components/Overlay/Modal/components/ModalFooterButtons/modalFooterButtons.component.d.ts +3 -1
- package/build/components/Overlay/Modal/index.d.ts +1 -0
- package/build/components/index.d.ts +0 -1
- package/build/index.js +3995 -8861
- package/build/index.js.map +1 -1
- package/build/theme/theme.types.d.ts +1 -2
- package/package.json +1 -4
- package/build/components/Draggable/SortableList/components/DragHandle/dragHandle.component.d.ts +0 -2
- package/build/components/Draggable/SortableList/components/DragHandle/index.d.ts +0 -1
- package/build/components/Draggable/SortableList/components/SortableItem/index.d.ts +0 -1
- package/build/components/Draggable/SortableList/components/SortableItem/sortableItem.component.d.ts +0 -8
- package/build/components/Draggable/SortableList/components/SortableItem/sortableItem.context.d.ts +0 -9
- package/build/components/Draggable/SortableList/components/SortableOverlay/index.d.ts +0 -1
- package/build/components/Draggable/SortableList/components/SortableOverlay/sortableOverlay.component.d.ts +0 -5
- package/build/components/Draggable/SortableList/components/index.d.ts +0 -3
- package/build/components/Draggable/SortableList/index.d.ts +0 -2
- package/build/components/Draggable/SortableList/mockData.d.ts +0 -41
- package/build/components/Draggable/SortableList/sortableList.component.d.ts +0 -13
- package/build/components/Draggable/index.d.ts +0 -1
- package/build/components/Draggable/utilities/createRange.d.ts +0 -1
- package/build/components/Draggable/utilities/index.d.ts +0 -1
- package/build/components/Feedback/Alert/components/AlertButton/alertButton.component.d.ts +0 -7
- package/build/components/Feedback/Alert/components/AlertIcon/alertIcon.component.d.ts +0 -7
- package/build/shared/keyframes.d.ts +0 -5
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { AlertProps as CAlertProps } from '@chakra-ui/react';
|
|
3
3
|
import { IconProps } from 'components/MediaAndIcons';
|
|
4
4
|
import { AlertVariant } from './alert.types';
|
|
5
5
|
import { ButtonProps } from 'components/Forms/Button';
|
|
6
6
|
import { TextProps } from 'components/Typography/Text';
|
|
7
7
|
import { Status } from '../feedback.types';
|
|
8
|
+
import { HeadingProps } from '../../Typography';
|
|
8
9
|
export interface AlertProps extends CAlertProps {
|
|
10
|
+
children?: ReactNode;
|
|
9
11
|
status?: AlertVariant | Status;
|
|
10
12
|
showIcon?: boolean;
|
|
11
13
|
iconProps?: IconProps;
|
|
12
14
|
showButton?: boolean;
|
|
13
15
|
buttonProps?: ButtonProps;
|
|
14
16
|
buttonTitle?: string;
|
|
15
|
-
alertTitle
|
|
16
|
-
titleProps?:
|
|
17
|
+
alertTitle?: string;
|
|
18
|
+
titleProps?: HeadingProps;
|
|
17
19
|
description?: string;
|
|
18
20
|
descriptionProps?: TextProps;
|
|
19
21
|
showCloseButton?: boolean;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { Alert as CAlert } from '@chakra-ui/react';
|
|
2
|
-
export * from './components/AlertButton/alertButton.component';
|
|
3
|
-
export * from './components/AlertIcon/alertIcon.component';
|
|
4
2
|
export * from './alert.component';
|
|
5
3
|
export * from './alert.types';
|
|
6
4
|
export * from './alert.config';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Status } from './feedback.types';
|
|
2
|
+
import { IconColor } from '../MediaAndIcons';
|
|
3
|
+
export declare const LightStatusVariantMap: Record<Status, string>;
|
|
4
|
+
export declare const DarkStatusVariantMap: Record<Status, string>;
|
|
5
|
+
export declare const AlertIconColorMap: Record<Status, IconColor>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ModalFooterProps as ChakraModalFooterProps } from '@chakra-ui/react';
|
|
2
2
|
export interface ModalFooterButtonProps extends ChakraModalFooterProps {
|
|
3
|
+
mixpanelName?: string;
|
|
3
4
|
submitText?: string;
|
|
4
5
|
isLoading?: boolean;
|
|
6
|
+
loadingText?: string;
|
|
5
7
|
isDisabled?: boolean;
|
|
6
8
|
isDestructive?: boolean;
|
|
7
9
|
onSubmit?: () => void;
|
|
8
10
|
allowCancel?: boolean;
|
|
9
11
|
onCancel?: () => void;
|
|
10
12
|
}
|
|
11
|
-
export declare const ModalFooterButtons: ({ submitText, isLoading, isDisabled, isDestructive, children, onSubmit, allowCancel, onCancel, ...rest }: ModalFooterButtonProps) => JSX.Element;
|
|
13
|
+
export declare const ModalFooterButtons: ({ submitText, isLoading, loadingText, isDisabled, isDestructive, mixpanelName, children, onSubmit, allowCancel, onCancel, ...rest }: ModalFooterButtonProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './modal.types';
|
|
2
2
|
export * as BetaModal from './modal.component';
|
|
3
|
+
export * from './modal.component';
|
|
3
4
|
export * from './components/ModalHeader/modalHeader.component';
|
|
4
5
|
export * from './components/ModalCloseButton/modalCloseButton.component';
|
|
5
6
|
export * from './components/ModalBody/modalBody.component';
|