@televet/kibble-ui 1.2.3-beta.2p81ym7.3 → 1.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.
- package/build/components/Avatar/avatar.component.d.ts +26 -0
- package/build/components/Avatar/avatar.config.d.ts +2 -0
- package/build/components/Avatar/avatar.types.d.ts +1 -0
- package/build/components/Avatar/index.d.ts +3 -0
- package/build/components/AvatarGroup/avatarGroup.component.d.ts +13 -0
- package/build/components/AvatarGroup/avatarGroup.utilities.d.ts +6 -0
- package/build/components/AvatarGroup/index.d.ts +1 -0
- package/build/components/Textarea/index.d.ts +0 -1
- package/build/components/Typography/Heading/heading.component.d.ts +3 -4
- package/build/components/Typography/Text/text.component.d.ts +2 -6
- package/build/components/Typography/Text/text.types.d.ts +0 -1
- package/build/components/Typography/index.d.ts +0 -1
- package/build/components/index.d.ts +1 -0
- package/build/index.d.ts +0 -1
- package/build/index.js +441 -270
- package/build/index.js.map +1 -1
- package/build/theme/theme.types.d.ts +3 -1
- package/build/theme/tokens/colors/color.types.d.ts +23 -2
- package/build/theme/tokens/fontWeights.d.ts +12 -3
- package/package.json +4 -2
- package/build/components/Button/button.model.d.ts +0 -5
- package/build/components/Button/button.records.d.ts +0 -2
- package/build/components/Drawer/drawer.records.d.ts +0 -13
- package/build/components/Modal/index.d.ts +0 -2
- package/build/components/Modal/modal-section.component.d.ts +0 -7
- package/build/components/Modal/modal.component.d.ts +0 -24
- package/build/components/Modal/modal.types.d.ts +0 -1
- package/build/components/Tooltip/tooltip.model.d.ts +0 -4
- package/build/components/Tooltip/tooltip.records.d.ts +0 -9
- package/build/components/Typography/Heading/heading.records.d.ts +0 -2
- package/build/components/Typography/Text/text.records.d.ts +0 -2
- package/build/components/Typography/typography.types.d.ts +0 -1
- package/build/hocs/index.d.ts +0 -2
- package/build/hocs/withDarkMode.d.ts +0 -2
- package/build/hocs/withTheme.d.ts +0 -3
- package/build/theme/theme.model.d.ts +0 -37
- package/build/theme/theme.record.d.ts +0 -2
- package/build/theme/tokens/colors/color.model.d.ts +0 -64
- package/build/theme/tokens/colors/color.type.d.ts +0 -9
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AvatarProps as CAvatarProps, Placement } from '@chakra-ui/react';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { AvatarSize } from './avatar.types';
|
|
4
|
+
export declare enum AvatarVariant {
|
|
5
|
+
Green = "green",
|
|
6
|
+
Red = "red",
|
|
7
|
+
Blue = "blue",
|
|
8
|
+
Comet = "comet",
|
|
9
|
+
Number = "number",
|
|
10
|
+
Dashed = "dashed",
|
|
11
|
+
Image = "image"
|
|
12
|
+
}
|
|
13
|
+
export interface AvatarProps extends CAvatarProps {
|
|
14
|
+
name: string;
|
|
15
|
+
size?: AvatarSize;
|
|
16
|
+
isClinic?: boolean;
|
|
17
|
+
showTooltip?: boolean;
|
|
18
|
+
tooltipPlacement?: Placement;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
handleClick?: () => void;
|
|
21
|
+
showRemoveButton?: boolean;
|
|
22
|
+
handleRemoveButtonClick?: () => void;
|
|
23
|
+
variant?: AvatarVariant;
|
|
24
|
+
tooltipText?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const Avatar: ({ name, src, isClinic, size, showTooltip, tooltipPlacement, style, handleClick, showRemoveButton, handleRemoveButtonClick, variant, tooltipText, ...rest }: AvatarProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AvatarProps, AvatarSize } from 'components/Avatar';
|
|
3
|
+
export interface AvatarGroupProps {
|
|
4
|
+
avatars: AvatarProps[];
|
|
5
|
+
max?: number;
|
|
6
|
+
size?: AvatarSize;
|
|
7
|
+
handleAddButtonClick?: () => void;
|
|
8
|
+
showAddButton?: boolean;
|
|
9
|
+
addButtonTooltipText?: string;
|
|
10
|
+
showRemoveAvatarButton?: boolean;
|
|
11
|
+
handleRemoveButtonClick?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const AvatarGroup: ({ avatars, max, size, handleAddButtonClick, showAddButton, addButtonTooltipText, showRemoveAvatarButton, handleRemoveButtonClick, }: AvatarGroupProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './avatarGroup.component';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { HeadingProps as ChakraHeadingProps } from '@chakra-ui/react';
|
|
3
|
-
import { HeadingSize } from './heading.types';
|
|
4
|
-
import { TextColor } from '../typography.types';
|
|
3
|
+
import { HeadingSize, HeadingVariant } from './heading.types';
|
|
5
4
|
export interface HeadingProps extends ChakraHeadingProps {
|
|
6
5
|
children: ReactNode;
|
|
7
6
|
size?: HeadingSize;
|
|
8
|
-
|
|
7
|
+
variant?: HeadingVariant;
|
|
9
8
|
darkMode?: boolean;
|
|
10
9
|
}
|
|
11
|
-
export declare const Heading: ({ children, size,
|
|
10
|
+
export declare const Heading: ({ children, size, variant, ...rest }: HeadingProps) => JSX.Element;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { TextProps as ChakraTextProps } from '@chakra-ui/react';
|
|
3
|
-
import {
|
|
4
|
-
import { TextColor } from '../typography.types';
|
|
3
|
+
import { TextVariant } from './text.types';
|
|
5
4
|
export interface TextProps extends ChakraTextProps {
|
|
6
5
|
children: ReactNode;
|
|
7
|
-
as?: HTMLTagName;
|
|
8
6
|
variant?: TextVariant;
|
|
9
|
-
color?: TextColor;
|
|
10
|
-
darkMode?: boolean;
|
|
11
7
|
}
|
|
12
|
-
export declare const Text: ({ children, variant,
|
|
8
|
+
export declare const Text: ({ children, variant, ...rest }: TextProps) => JSX.Element;
|
|
@@ -3,6 +3,7 @@ export * from './Icon';
|
|
|
3
3
|
export * from './Logo';
|
|
4
4
|
export * from './Typography';
|
|
5
5
|
export * from './Textarea';
|
|
6
|
+
export * from './Avatar';
|
|
6
7
|
export * from './Button';
|
|
7
8
|
export * from './Tooltip';
|
|
8
9
|
export { Box, BoxProps, Center, CenterProps, Flex, FlexProps, Hide, HideProps, Show, ShowProps, Tbody, Td, Th, Thead, Tr, VStack, HStack, } from '@chakra-ui/react';
|