@televet/kibble-ui 1.18.0 → 1.19.0-beta.37pzzaj.5
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/Forms/TimePicker/components/ScrollContainer.d.ts +4 -0
- package/build/components/Forms/TimePicker/components/TimeOption.d.ts +9 -0
- package/build/components/Forms/TimePicker/index.d.ts +3 -0
- package/build/components/Forms/TimePicker/timePicker.argTypes.d.ts +82 -0
- package/build/components/Forms/TimePicker/timePicker.component.d.ts +10 -0
- package/build/components/Forms/TimePicker/timePicker.types.d.ts +4 -0
- package/build/components/Forms/TimeRange/index.d.ts +1 -0
- package/build/components/Forms/TimeRange/timeRange.argTypes.d.ts +38 -0
- package/build/components/Forms/TimeRange/timeRange.component.d.ts +8 -0
- package/build/components/Forms/index.d.ts +1 -0
- package/build/components/MediaAndIcons/Avatar/avatar.component.d.ts +8 -2
- package/build/components/MediaAndIcons/Avatar/avatar.config.d.ts +2 -2
- package/build/components/MediaAndIcons/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +20 -0
- package/build/components/MediaAndIcons/Avatar/index.d.ts +1 -0
- package/build/components/Overlay/Menu/components/MenuItem/menuItem.component.d.ts +1 -1
- package/build/components/Overlay/Modal/index.d.ts +0 -1
- package/build/components/Overlay/Popover/popover.component.d.ts +3 -2
- package/build/index.js +304 -82
- package/build/index.js.map +1 -1
- package/build/shared/types.d.ts +27 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/sizes.d.ts +2 -0
- package/package.json +2 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
interface TimeOptionProps {
|
|
3
|
+
value: string;
|
|
4
|
+
innerRef?: MutableRefObject<HTMLDivElement | null> | null;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
handleClick: (selectedValue: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const TimeOption: ({ value, innerRef, isSelected, handleClick }: TimeOptionProps) => JSX.Element;
|
|
9
|
+
export default TimeOption;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare const timePickerArgTypes: {
|
|
2
|
+
initialTime: {
|
|
3
|
+
defaultValue: Date;
|
|
4
|
+
description: string;
|
|
5
|
+
table: {
|
|
6
|
+
type: {
|
|
7
|
+
summary: string;
|
|
8
|
+
};
|
|
9
|
+
defaultValue: null;
|
|
10
|
+
};
|
|
11
|
+
type: {
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
minuteInterval: {
|
|
16
|
+
defaultValue: number;
|
|
17
|
+
description: string;
|
|
18
|
+
control: string;
|
|
19
|
+
table: {
|
|
20
|
+
type: {
|
|
21
|
+
summary: string;
|
|
22
|
+
};
|
|
23
|
+
defaultValue: number;
|
|
24
|
+
};
|
|
25
|
+
type: {
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
placement: {
|
|
30
|
+
description: string;
|
|
31
|
+
options: import("@chakra-ui/popper/dist/declarations/src/popper.placement").PlacementWithLogical[];
|
|
32
|
+
control: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
table: {
|
|
36
|
+
type: {
|
|
37
|
+
summary: string;
|
|
38
|
+
};
|
|
39
|
+
defaultValue: {
|
|
40
|
+
summary: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
onTimeChange: {
|
|
45
|
+
description: string;
|
|
46
|
+
action: string;
|
|
47
|
+
table: {
|
|
48
|
+
type: {
|
|
49
|
+
summary: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
inputProps: {
|
|
54
|
+
description: string;
|
|
55
|
+
control: {
|
|
56
|
+
type: string;
|
|
57
|
+
};
|
|
58
|
+
table: {
|
|
59
|
+
summary: {
|
|
60
|
+
variant: string;
|
|
61
|
+
size: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
onChange: any;
|
|
66
|
+
size: any;
|
|
67
|
+
label: any;
|
|
68
|
+
helperText: any;
|
|
69
|
+
helperTextAlignment: any;
|
|
70
|
+
errorText: any;
|
|
71
|
+
isDisabled: any;
|
|
72
|
+
isInvalid: any;
|
|
73
|
+
useInvalidIcon: any;
|
|
74
|
+
useInvalidText: any;
|
|
75
|
+
useInvalidBorder: any;
|
|
76
|
+
invalidIconColor: any;
|
|
77
|
+
isReadOnly: any;
|
|
78
|
+
isRequired: any;
|
|
79
|
+
autoFocus: any;
|
|
80
|
+
labelStyle: any;
|
|
81
|
+
formControlStyle: any;
|
|
82
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PlacementWithLogical } from '@chakra-ui/react';
|
|
2
|
+
import { TextInputProps } from '../TextInput';
|
|
3
|
+
export interface TimePickerProps {
|
|
4
|
+
initialTime: Date;
|
|
5
|
+
minuteInterval?: number;
|
|
6
|
+
inputProps?: Omit<TextInputProps, 'onChange' | 'value' | 'isClearable' | 'onClear'>;
|
|
7
|
+
placement?: PlacementWithLogical;
|
|
8
|
+
onTimeChange?: (time: Date) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const TimePicker: ({ initialTime, minuteInterval, inputProps, placement, onTimeChange, }: TimePickerProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './timeRange.component';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const timeRangeArgTypes: {
|
|
2
|
+
startTimePickerProps: {
|
|
3
|
+
description: string;
|
|
4
|
+
control: {
|
|
5
|
+
type: string;
|
|
6
|
+
};
|
|
7
|
+
table: {
|
|
8
|
+
summary: {
|
|
9
|
+
variant: string;
|
|
10
|
+
size: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
endTimePickerProps: {
|
|
15
|
+
description: string;
|
|
16
|
+
control: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
table: {
|
|
20
|
+
summary: {
|
|
21
|
+
variant: string;
|
|
22
|
+
size: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
dashContainerProps: {
|
|
27
|
+
description: string;
|
|
28
|
+
control: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
table: {
|
|
32
|
+
summary: {
|
|
33
|
+
variant: string;
|
|
34
|
+
size: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoxProps } from '@chakra-ui/react';
|
|
2
|
+
import { TimePickerProps } from '../TimePicker/timePicker.component';
|
|
3
|
+
export interface TimeRangeProps {
|
|
4
|
+
startTimePickerProps: TimePickerProps;
|
|
5
|
+
endTimePickerProps: TimePickerProps;
|
|
6
|
+
dashContainerProps?: BoxProps;
|
|
7
|
+
}
|
|
8
|
+
export declare const TimeRange: ({ startTimePickerProps, endTimePickerProps, dashContainerProps, }: TimeRangeProps) => JSX.Element;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AvatarProps as CAvatarProps, Placement } from '@chakra-ui/react';
|
|
2
|
+
import { IconName } from 'components/MediaAndIcons/Icon';
|
|
2
3
|
import React, { CSSProperties } from 'react';
|
|
3
4
|
import { AvatarSize } from './avatar.types';
|
|
5
|
+
import { AvatarBadgeProps } from './components/AvatarBadge/avatarBadge.component';
|
|
4
6
|
export declare enum AvatarVariant {
|
|
5
7
|
Green = "green",
|
|
6
8
|
Red = "red",
|
|
@@ -8,7 +10,8 @@ export declare enum AvatarVariant {
|
|
|
8
10
|
Comet = "comet",
|
|
9
11
|
Number = "number",
|
|
10
12
|
Dashed = "dashed",
|
|
11
|
-
Image = "image"
|
|
13
|
+
Image = "image",
|
|
14
|
+
Icon = "icon"
|
|
12
15
|
}
|
|
13
16
|
export interface AvatarProps extends CAvatarProps {
|
|
14
17
|
name: string;
|
|
@@ -21,6 +24,9 @@ export interface AvatarProps extends CAvatarProps {
|
|
|
21
24
|
showRemoveButton?: boolean;
|
|
22
25
|
handleRemoveButtonClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
23
26
|
variant?: AvatarVariant;
|
|
27
|
+
iconName?: IconName;
|
|
24
28
|
tooltipText?: string;
|
|
29
|
+
showBadge?: boolean;
|
|
30
|
+
badgeProps?: AvatarBadgeProps;
|
|
25
31
|
}
|
|
26
|
-
export declare const Avatar: ({ name, src, isClinic, size, showTooltip, tooltipPlacement, style, handleClick, showRemoveButton, handleRemoveButtonClick, variant, tooltipText, ...rest }: AvatarProps) => JSX.Element;
|
|
32
|
+
export declare const Avatar: ({ name, src, isClinic, size, showTooltip, tooltipPlacement, style, handleClick, showRemoveButton, handleRemoveButtonClick, variant, iconName, tooltipText, showBadge, badgeProps, ...rest }: AvatarProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const AvatarConfig:
|
|
1
|
+
import { CustomStyleConfig } from 'shared/types';
|
|
2
|
+
export declare const AvatarConfig: CustomStyleConfig;
|
package/build/components/MediaAndIcons/Avatar/components/AvatarBadge/avatarBadge.component.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IconName } from 'components/MediaAndIcons/Icon';
|
|
2
|
+
import { AvatarSize } from '../../avatar.types';
|
|
3
|
+
export declare enum AvatarBadgePosition {
|
|
4
|
+
TopLeft = "topLeft",
|
|
5
|
+
TopRight = "topRight",
|
|
6
|
+
BottomLeft = "bottomLeft",
|
|
7
|
+
BottomRight = "bottomRight"
|
|
8
|
+
}
|
|
9
|
+
export interface AvatarBadgeProps {
|
|
10
|
+
badgeIconName?: IconName;
|
|
11
|
+
badgeBackgroundColor?: string;
|
|
12
|
+
badgeBorderColor?: string;
|
|
13
|
+
badgeIconColor?: string;
|
|
14
|
+
badgePosition?: AvatarBadgePosition;
|
|
15
|
+
}
|
|
16
|
+
interface AvatarBadgeComponentProps extends AvatarBadgeProps {
|
|
17
|
+
avatarSize: AvatarSize;
|
|
18
|
+
}
|
|
19
|
+
declare const AvatarBadge: ({ avatarSize, badgeIconName, badgeBackgroundColor, badgeBorderColor, badgeIconColor, badgePosition, }: AvatarBadgeComponentProps) => JSX.Element;
|
|
20
|
+
export default AvatarBadge;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, MutableRefObject, KeyboardEvent, ReactElement } from 'react';
|
|
2
2
|
import { TextColor } from 'components/Typography';
|
|
3
3
|
export interface MenuItemProps {
|
|
4
4
|
canSelectAll?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { PopoverProps as ChakraPopoverProps } from '@chakra-ui/react';
|
|
2
|
+
import { PopoverProps as ChakraPopoverProps, PopoverContentProps } from '@chakra-ui/react';
|
|
3
3
|
import { PopoverSize } from './popover.types';
|
|
4
4
|
import { Token } from '@chakra-ui/styled-system/dist/declarations/src/utils';
|
|
5
5
|
import * as CSS from 'csstype';
|
|
@@ -10,5 +10,6 @@ export interface PopoverProps extends ChakraPopoverProps {
|
|
|
10
10
|
allowEscape?: boolean;
|
|
11
11
|
size?: PopoverSize;
|
|
12
12
|
shadow?: Token<CSS.Property.BoxShadow | number, 'shadows'>;
|
|
13
|
+
contentProps?: PopoverContentProps;
|
|
13
14
|
}
|
|
14
|
-
export declare const Popover: ({ children, popoverTrigger, darkMode, allowEscape, size, shadow, ...rest }: PopoverProps) => JSX.Element;
|
|
15
|
+
export declare const Popover: ({ children, popoverTrigger, darkMode, allowEscape, size, shadow, contentProps, ...rest }: PopoverProps) => JSX.Element;
|