@televet/kibble-ui 1.7.0 → 1.7.1-beta.3yp84vd.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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FlexProps } from '@chakra-ui/react';
3
2
  import { NotificationCounterSize } from './notificationCounter.types';
4
3
  export interface NotificationCounterProps extends FlexProps {
@@ -39,6 +39,19 @@ export declare const formControlArgTypes: {
39
39
  type: {
40
40
  name: string;
41
41
  };
42
+ table: {
43
+ type: {
44
+ summary: string;
45
+ };
46
+ };
47
+ };
48
+ helperTextAlignment: {
49
+ control: string;
50
+ options: string[];
51
+ defaultValue: string;
52
+ type: {
53
+ name: string;
54
+ };
42
55
  table: {
43
56
  type: {
44
57
  summary: string;
@@ -57,6 +70,9 @@ export declare const formControlArgTypes: {
57
70
  type: {
58
71
  summary: string;
59
72
  };
73
+ defaultValue: {
74
+ summary: string;
75
+ };
60
76
  };
61
77
  };
62
78
  isDisabled: {
@@ -122,4 +138,13 @@ export declare const formControlArgTypes: {
122
138
  };
123
139
  defaultValue: boolean;
124
140
  };
141
+ labelStyle: {
142
+ type: string;
143
+ description: string;
144
+ table: {
145
+ type: {
146
+ summary: string;
147
+ };
148
+ };
149
+ };
125
150
  };
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { Dict } from 'shared/types';
2
3
  export interface WithFormControlProps {
3
4
  errorText?: string;
4
5
  helperText?: string;
@@ -8,5 +9,7 @@ export interface WithFormControlProps {
8
9
  isReadOnly?: boolean;
9
10
  isRequired?: boolean;
10
11
  label?: string;
12
+ labelStyle?: Dict;
13
+ helperTextAlignment?: 'start' | 'end';
11
14
  }
12
15
  export declare function withFormControl<P extends object>(Component: React.ComponentType<P>): React.FC<P & WithFormControlProps>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IRatingDotProps {
3
2
  number: number;
4
3
  isInteractive?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IRatingDotsProps {
3
2
  minValue: number;
4
3
  maxValue: number;
@@ -1,5 +1,5 @@
1
1
  import { AvatarProps as CAvatarProps, Placement } from '@chakra-ui/react';
2
- import { CSSProperties } from 'react';
2
+ import React, { CSSProperties } from 'react';
3
3
  import { AvatarSize } from './avatar.types';
4
4
  export declare enum AvatarVariant {
5
5
  Green = "green",
@@ -17,9 +17,9 @@ export interface AvatarProps extends CAvatarProps {
17
17
  showTooltip?: boolean;
18
18
  tooltipPlacement?: Placement;
19
19
  style?: CSSProperties;
20
- handleClick?: () => void;
20
+ handleClick?: React.MouseEventHandler<HTMLSpanElement>;
21
21
  showRemoveButton?: boolean;
22
- handleRemoveButtonClick?: () => void;
22
+ handleRemoveButtonClick?: React.MouseEventHandler<HTMLDivElement>;
23
23
  variant?: AvatarVariant;
24
24
  tooltipText?: string;
25
25
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AvatarProps, AvatarSize } from 'components/MediaAndIcons/Avatar';
3
2
  export interface AvatarGroupProps {
4
3
  avatars: AvatarProps[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LogoHoliday, LogoType, LogoColor } from './logo.types';
3
2
  export interface ILogoProps {
4
3
  type?: LogoType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuListProps as CMenuListProps } from '@chakra-ui/react';
3
2
  import { MenuItemProps } from '../MenuItem/menuItem.component';
4
3
  export interface MenuListProps extends CMenuListProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuOptionGroupProps as CMenuOptionGroupProps } from '@chakra-ui/react';
3
2
  declare const MenuOptionGroup: ({ children, ...rest }: CMenuOptionGroupProps) => JSX.Element;
4
3
  export default MenuOptionGroup;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface MenuSelectAllButtonsProps {
3
2
  groupName?: string;
4
3
  handleToggleAllItems: ({ groupName, clear }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PlacementWithLogical, TooltipProps as ChakraTooltipProps } from '@chakra-ui/react';
3
2
  export interface TooltipProps extends ChakraTooltipProps {
4
3
  label: string;