@televet/kibble-ui 1.2.0 → 1.2.1-beta.2exrqbf.1

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.
Files changed (71) hide show
  1. package/build/components/Button/button.component.d.ts +4 -3
  2. package/build/components/Button/button.config.d.ts +16 -2
  3. package/build/components/Button/button.model.d.ts +1 -1
  4. package/build/components/Button/button.records.d.ts +2 -0
  5. package/build/components/Button/button.types.d.ts +8 -5
  6. package/build/components/Button/index.d.ts +0 -1
  7. package/build/components/Drawer/drawer.records.d.ts +13 -0
  8. package/build/components/FormControl/formControl.argTypes.d.ts +125 -0
  9. package/build/components/FormControl/formControl.component.d.ts +12 -0
  10. package/build/components/FormControl/formControl.config.d.ts +2 -0
  11. package/build/components/Forms/Button/button.component.d.ts +13 -0
  12. package/build/components/Forms/Button/button.config.d.ts +16 -0
  13. package/build/components/Forms/Button/button.types.d.ts +8 -0
  14. package/build/components/Forms/Button/index.d.ts +3 -0
  15. package/build/components/Forms/Textarea/index.d.ts +4 -0
  16. package/build/components/Forms/Textarea/textarea.component.d.ts +5 -0
  17. package/build/components/Forms/Textarea/textarea.config.d.ts +2 -0
  18. package/build/components/Forms/Textarea/textarea.types.d.ts +2 -0
  19. package/build/components/Icon/icon.config.d.ts +3 -0
  20. package/build/components/Icon/icon.types.d.ts +1 -1
  21. package/build/components/Logo/logo.records.d.ts +33 -0
  22. package/build/components/Media/Icon/icon.component.d.ts +8 -0
  23. package/build/components/Media/Icon/icon.records.d.ts +3 -0
  24. package/build/components/Media/Icon/icon.types.d.ts +3 -0
  25. package/build/components/Media/Icon/index.d.ts +2 -0
  26. package/build/components/Media/Logo/index.d.ts +2 -0
  27. package/build/components/Media/Logo/logo.component.d.ts +14 -0
  28. package/build/components/Media/Logo/logo.config.d.ts +6 -0
  29. package/build/components/Media/Logo/logo.types.d.ts +3 -0
  30. package/build/components/Media/Logo/logos.d.ts +22 -0
  31. package/build/components/Overlay/Drawer/drawer.config.d.ts +13 -0
  32. package/build/components/Overlay/Drawer/index.d.ts +1 -0
  33. package/build/components/Overlay/Tooltip/index.d.ts +3 -0
  34. package/build/components/Overlay/Tooltip/tooltip.component.d.ts +8 -0
  35. package/build/components/Overlay/Tooltip/tooltip.config.d.ts +8 -0
  36. package/build/components/Overlay/Tooltip/tooltip.types.d.ts +4 -0
  37. package/build/components/Select/index.d.ts +2 -0
  38. package/build/components/Select/select.component.d.ts +9 -0
  39. package/build/components/Select/select.config.d.ts +2 -0
  40. package/build/components/Switch/index.d.ts +2 -0
  41. package/build/components/Switch/switch.component.d.ts +7 -0
  42. package/build/components/Switch/switch.config.d.ts +2 -0
  43. package/build/components/TextInput/index.d.ts +2 -0
  44. package/build/components/TextInput/textInput.component.d.ts +7 -0
  45. package/build/components/TextInput/textInput.config.d.ts +2 -0
  46. package/build/components/Textarea/index.d.ts +0 -2
  47. package/build/components/Textarea/textarea.component.d.ts +5 -3
  48. package/build/components/Tooltip/index.d.ts +1 -1
  49. package/build/components/Tooltip/tooltip.config.d.ts +1 -1
  50. package/build/components/Tooltip/tooltip.records.d.ts +9 -0
  51. package/build/components/Tooltip/tooltip.types.d.ts +4 -0
  52. package/build/components/Typography/Heading/heading.component.d.ts +1 -0
  53. package/build/components/Typography/Heading/heading.records.d.ts +2 -0
  54. package/build/components/Typography/Text/text.records.d.ts +2 -0
  55. package/build/components/index.d.ts +3 -0
  56. package/build/index.js +2815 -463
  57. package/build/index.js.map +1 -1
  58. package/build/shared/interfaces/SelectOption.d.ts +4 -0
  59. package/build/theme/index.d.ts +1 -1
  60. package/build/theme/theme.config.d.ts +1 -1
  61. package/build/theme/theme.model.d.ts +4 -3
  62. package/build/theme/theme.record.d.ts +2 -0
  63. package/build/theme/theme.types.d.ts +39 -0
  64. package/build/theme/tokens/colors/color.model.d.ts +39 -17
  65. package/build/theme/tokens/colors/color.record.d.ts +5 -5
  66. package/build/theme/tokens/colors/color.type.d.ts +95 -1
  67. package/build/theme/tokens/colors/color.types.d.ts +105 -0
  68. package/build/theme/tokens/colors/colors.d.ts +3 -0
  69. package/build/theme/tokens/colors/index.d.ts +1 -2
  70. package/build/theme/tokens/colors.d.ts +82 -0
  71. package/package.json +3 -2
@@ -1,12 +1,13 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { ButtonProps as ChakraButtonProps } from '@chakra-ui/react';
3
3
  import { IconName } from '../Icon';
4
- import { ButtonSize, ButtonVariant } from './button.types';
4
+ import { ButtonSizeType, ButtonVariantType } from './button.types';
5
5
  export interface ButtonProps extends ChakraButtonProps {
6
6
  children?: ReactNode;
7
- variant?: ButtonVariant;
8
- size?: ButtonSize;
7
+ variant?: ButtonVariantType;
8
+ size?: ButtonSizeType;
9
9
  iconName?: IconName;
10
10
  iconPosition?: 'left' | 'right';
11
+ darkMode?: boolean;
11
12
  }
12
13
  export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,2 +1,16 @@
1
- import { ButtonStyleConfig } from './button.types';
2
- export declare const ButtonConfig: ButtonStyleConfig;
1
+ import { ButtonStyleType } from './button.types';
2
+ export declare const ButtonVariantConfig: ButtonStyleType;
3
+ export declare const ButtonSizeConfig: {
4
+ lg: {
5
+ p: string;
6
+ };
7
+ md: {
8
+ p: string;
9
+ };
10
+ sm: {
11
+ p: string;
12
+ };
13
+ xs: {
14
+ p: string;
15
+ };
16
+ };
@@ -1,5 +1,5 @@
1
1
  import { ButtonColorOptions } from './button.types';
2
- import { AdaptiveColorMap } from '../../theme/tokens';
2
+ import { AdaptiveColorMap } from '../../theme/tokens/colors';
3
3
  export interface ButtonVariantConfig extends AdaptiveColorMap<ButtonColorOptions> {
4
4
  variant: 'solid' | 'outline' | 'ghost';
5
5
  }
@@ -0,0 +1,2 @@
1
+ import { ButtonStyleConfig } from './button.types';
2
+ export declare const ButtonConfig: ButtonStyleConfig;
@@ -1,5 +1,8 @@
1
- import { ButtonVariantConfig } from './button.model';
2
- export declare type ButtonVariant = 'primary' | 'primaryDestructive' | 'secondary' | 'secondaryDestructive' | 'secondarySubtle' | 'secondarySubtleDestructive' | 'tertiary' | 'tertiaryDestructive' | 'ghost' | 'ghostNeutral' | 'ghostDestructive';
3
- export declare type ButtonColorOptions = 'content' | 'default' | 'hover' | 'active' | 'border';
4
- export declare type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
5
- export declare type ButtonStyleConfig = Record<ButtonVariant, ButtonVariantConfig>;
1
+ import { AdaptiveColorMap } from '../../theme/tokens';
2
+ export interface ButtonVariantConfigType extends AdaptiveColorMap<ButtonColorOptionsType> {
3
+ variant: 'solid' | 'outline' | 'ghost';
4
+ }
5
+ export declare type ButtonVariantType = 'primary' | 'primaryDestructive' | 'secondary' | 'secondaryDestructive' | 'secondarySubtle' | 'secondarySubtleDestructive' | 'tertiary' | 'tertiaryDestructive' | 'ghost' | 'ghostNeutral' | 'ghostDestructive';
6
+ export declare type ButtonColorOptionsType = 'content' | 'default' | 'hover' | 'active' | 'border';
7
+ export declare type ButtonSizeType = 'xs' | 'sm' | 'md' | 'lg';
8
+ export declare type ButtonStyleType = Record<ButtonVariantType, ButtonVariantConfigType>;
@@ -1,4 +1,3 @@
1
1
  export * from './button.component';
2
2
  export * from './button.types';
3
- export * from './button.model';
4
3
  export * from './button.config';
@@ -0,0 +1,13 @@
1
+ export declare const DrawerConfig: {
2
+ variants: {
3
+ alwaysOpen: {
4
+ parts: string[];
5
+ dialog: {
6
+ pointerEvents: string;
7
+ };
8
+ dialogContainer: {
9
+ pointerEvents: string;
10
+ };
11
+ };
12
+ };
13
+ };
@@ -0,0 +1,125 @@
1
+ export declare const formControlArgTypes: {
2
+ onChange: {
3
+ type: {
4
+ required: boolean;
5
+ };
6
+ table: {
7
+ type: {
8
+ summary: string;
9
+ };
10
+ };
11
+ };
12
+ size: {
13
+ control: string;
14
+ description: string;
15
+ options: string[];
16
+ table: {
17
+ type: {
18
+ summary: string;
19
+ };
20
+ defaultValue: {
21
+ summary: string;
22
+ };
23
+ };
24
+ defaultValue: string;
25
+ };
26
+ label: {
27
+ control: string;
28
+ type: {
29
+ name: string;
30
+ };
31
+ table: {
32
+ type: {
33
+ summary: string;
34
+ };
35
+ };
36
+ };
37
+ helperText: {
38
+ control: string;
39
+ type: {
40
+ name: string;
41
+ };
42
+ table: {
43
+ type: {
44
+ summary: string;
45
+ };
46
+ defaultValue: {
47
+ summary: string;
48
+ };
49
+ };
50
+ };
51
+ errorText: {
52
+ control: string;
53
+ type: {
54
+ name: string;
55
+ };
56
+ table: {
57
+ type: {
58
+ summary: string;
59
+ };
60
+ };
61
+ };
62
+ isDisabled: {
63
+ type: string;
64
+ description: string;
65
+ table: {
66
+ type: {
67
+ summary: string;
68
+ };
69
+ defaultValue: {
70
+ summary: string;
71
+ };
72
+ };
73
+ defaultValue: boolean;
74
+ };
75
+ isInvalid: {
76
+ type: string;
77
+ description: string;
78
+ table: {
79
+ type: {
80
+ summary: string;
81
+ };
82
+ defaultValue: {
83
+ summary: string;
84
+ };
85
+ };
86
+ defaultValue: boolean;
87
+ };
88
+ isReadOnly: {
89
+ type: string;
90
+ table: {
91
+ type: {
92
+ summary: string;
93
+ };
94
+ defaultValue: {
95
+ summary: string;
96
+ };
97
+ };
98
+ defaultValue: boolean;
99
+ };
100
+ isRequired: {
101
+ type: string;
102
+ description: string;
103
+ table: {
104
+ type: {
105
+ summary: string;
106
+ };
107
+ defaultValue: {
108
+ summary: string;
109
+ };
110
+ };
111
+ defaultValue: boolean;
112
+ };
113
+ autoFocus: {
114
+ type: string;
115
+ table: {
116
+ type: {
117
+ summary: string;
118
+ };
119
+ defaultValue: {
120
+ summary: string;
121
+ };
122
+ };
123
+ defaultValue: boolean;
124
+ };
125
+ };
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface WithFormControlProps {
3
+ label?: string;
4
+ errorText?: string;
5
+ helperText?: string;
6
+ isInvalid?: boolean;
7
+ isRequired?: boolean;
8
+ isReadOnly?: boolean;
9
+ isDisabled?: boolean;
10
+ placeholder?: string;
11
+ }
12
+ export declare function withFormControl<P extends object>(Component: React.ComponentType<P>): React.FC<P & WithFormControlProps>;
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/react';
2
+ export declare const FormControlConfig: ComponentStyleConfig;
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { ButtonProps as ChakraButtonProps } from '@chakra-ui/react';
3
+ import { IconName } from '../../Media/Icon';
4
+ import { ButtonSizeType, ButtonVariantType } from './button.types';
5
+ export interface ButtonProps extends ChakraButtonProps {
6
+ children?: ReactNode;
7
+ variant?: ButtonVariantType;
8
+ size?: ButtonSizeType;
9
+ iconName?: IconName;
10
+ iconPosition?: 'left' | 'right';
11
+ darkMode?: boolean;
12
+ }
13
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,16 @@
1
+ import { ButtonStyleType } from './button.types';
2
+ export declare const ButtonVariantConfig: ButtonStyleType;
3
+ export declare const ButtonSizeConfig: {
4
+ lg: {
5
+ p: string;
6
+ };
7
+ md: {
8
+ p: string;
9
+ };
10
+ sm: {
11
+ p: string;
12
+ };
13
+ xs: {
14
+ p: string;
15
+ };
16
+ };
@@ -0,0 +1,8 @@
1
+ import { AdaptiveColorMap } from '../../../theme/tokens';
2
+ export interface ButtonVariantConfigType extends AdaptiveColorMap<ButtonColorOptionsType> {
3
+ variant: 'solid' | 'outline' | 'ghost';
4
+ }
5
+ export declare type ButtonVariantType = 'primary' | 'primaryDestructive' | 'secondary' | 'secondaryDestructive' | 'secondarySubtle' | 'secondarySubtleDestructive' | 'tertiary' | 'tertiaryDestructive' | 'ghost' | 'ghostNeutral' | 'ghostDestructive';
6
+ export declare type ButtonColorOptionsType = 'content' | 'default' | 'hover' | 'active' | 'border';
7
+ export declare type ButtonSizeType = 'xs' | 'sm' | 'md' | 'lg';
8
+ export declare type ButtonStyleType = Record<ButtonVariantType, ButtonVariantConfigType>;
@@ -0,0 +1,3 @@
1
+ export * from './button.component';
2
+ export * from './button.types';
3
+ export * from './button.config';
@@ -0,0 +1,4 @@
1
+ export * from './textarea.component';
2
+ export * from './textarea.types';
3
+ export * from './textarea.config';
4
+ export * from './textarea.config';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { TextareaProps as CTextareaProps } from '@chakra-ui/react';
3
+ export interface TextareaProps extends CTextareaProps {
4
+ }
5
+ export declare const Textarea: (props: TextareaProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/react';
2
+ export declare const TextareaConfig: ComponentStyleConfig;
@@ -0,0 +1,2 @@
1
+ export declare type TextareaSize = 'sm' | 'md' | 'lg';
2
+ export declare type TextareaResizeOrientation = 'horizontal' | 'vertical' | 'none';
@@ -0,0 +1,3 @@
1
+ import { IconName, IconsSize } from './icon.types';
2
+ export declare const IconMap: Record<IconName, any>;
3
+ export declare const IconSizeMap: Record<IconsSize, number>;
@@ -1,3 +1,3 @@
1
- export declare type IconName = 'alertCircle' | 'animalBird' | 'animalCat' | 'animalCow' | 'animalDog' | 'animalHorse' | 'arrowDownRight' | 'arrowCircle' | 'arrowLeft' | 'arrowRight' | 'arrowsIn' | 'arrowsOut' | 'article' | 'asterisk' | 'bell' | 'bellRinging' | 'bookmarkFilled' | 'bookmarkOutlined' | 'brush' | 'caduceus' | 'calendarDate' | 'calendarCheck' | 'calendarInfo' | 'calendarPen' | 'calendarOutlined' | 'camera' | 'cameraFlip' | 'cameraOff' | 'cancel' | 'cellphone' | 'cellphoneAlert' | 'chainLink' | 'chatBubbleFilled' | 'chatBubbleOutlined' | 'checkmark' | 'checkmarkBox' | 'checkmarkCircle' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'circleDotted' | 'clock' | 'close' | 'closeCircle' | 'code' | 'conversation' | 'creditCardHand' | 'crossClipboard' | 'crossPaw' | 'crossHatPerson' | 'dogHouse' | 'dogHouseOutlined' | 'dollar' | 'dollarCircle' | 'dotsCircle' | 'dotsHorizontal' | 'dotsVertical' | 'doubleArrowCircle' | 'download' | 'dragDrop' | 'emailSend' | 'envelopeFilled' | 'envelopeOutlined' | 'eyedropper' | 'eyeOpen' | 'eyeSlash' | 'faceScreen' | 'formsFilled' | 'formsOutlined' | 'funnelFilled' | 'funnelOutlined' | 'gear' | 'grid' | 'horizontalLines' | 'house' | 'infoCircleFilled' | 'infoCircleOutlined' | 'invoice' | 'invoiceOutlined' | 'list' | 'locationMarker' | 'locationMarkerGround' | 'lockRectangle' | 'lockRound' | 'loudspeaker' | 'magnifyingGlass' | 'manHeadset' | 'message' | 'messages' | 'messageClipboard' | 'messageEllipses' | 'messageGear' | 'messageLink' | 'microphone' | 'microphoneMute' | 'moveLeft' | 'moveRight' | 'notification' | 'paperAirplane' | 'paperAirplane2' | 'paperAirplaneRight' | 'paperclip' | 'paperPen' | 'paw' | 'paw2' | 'pawMagnifyingGlass' | 'pawOutlined' | 'pdfLogo' | 'pen' | 'penSquare' | 'person' | 'phone' | 'phoneButtons' | 'phoneDown' | 'phoneRing' | 'pill' | 'pillHand' | 'playingCards' | 'plus' | 'questionMark' | 'questionMarkCircle' | 'quilInk' | 'reactLogo' | 'report' | 'robot' | 'smileyFace' | 'smileyFacePlus' | 'star' | 'star2' | 'star2Outlined' | 'team' | 'textEdit' | 'thumbsUp' | 'trashcan' | 'twoSquares' | 'upload' | 'videoCamera' | 'warningSign' | 'website';
1
+ export declare type IconName = 'alertCircle' | 'animalBird' | 'animalCat' | 'animalCow' | 'animalDog' | 'animalHorse' | 'arrowDownRight' | 'arrowCircle' | 'arrowLeft' | 'arrowRight' | 'arrowsIn' | 'arrowsOut' | 'article' | 'asterisk' | 'bell' | 'bellRinging' | 'bookmarkFilled' | 'bookmarkOutlined' | 'brush' | 'caduceus' | 'calendarDate' | 'calendarCheck' | 'calendarInfo' | 'calendarPen' | 'calendarOutlined' | 'camera' | 'cameraFlip' | 'cameraOff' | 'cancel' | 'cellphone' | 'cellphoneAlert' | 'chainLink' | 'chatBubbleFilled' | 'chatBubbleOutlined' | 'checkmark' | 'checkmarkBox' | 'checkmarkCircle' | 'checkmarkList' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'circleDotted' | 'clock' | 'close' | 'closeCircle' | 'code' | 'conversation' | 'creditCardHand' | 'crossClipboard' | 'crossPaw' | 'crossHatPerson' | 'dogHouse' | 'dogHouseOutlined' | 'dollar' | 'dollarCircle' | 'dotsCircle' | 'dotsHorizontal' | 'dotsVertical' | 'doubleArrowCircle' | 'download' | 'dragDrop' | 'emailSend' | 'envelopeFilled' | 'envelopeOutlined' | 'eyedropper' | 'eyeOpen' | 'eyeSlash' | 'faceScreen' | 'formsFilled' | 'formsOutlined' | 'funnelFilled' | 'funnelOutlined' | 'gear' | 'grid' | 'horizontalLines' | 'house' | 'infoCircleFilled' | 'infoCircleOutlined' | 'input' | 'invoice' | 'invoiceOutlined' | 'largeTextInput' | 'list' | 'locationMarker' | 'locationMarkerGround' | 'lockRectangle' | 'lockRound' | 'loudspeaker' | 'magnifyingGlass' | 'manHeadset' | 'message' | 'messages' | 'messageClipboard' | 'messageEllipses' | 'messageGear' | 'messageLink' | 'microphone' | 'microphoneMute' | 'moveLeft' | 'moveRight' | 'multipleChoice' | 'notification' | 'paperAirplane' | 'paperAirplane2' | 'paperAirplaneRight' | 'paperclip' | 'paperPen' | 'paw' | 'paw2' | 'pawMagnifyingGlass' | 'pawOutlined' | 'pdfLogo' | 'pen' | 'penSquare' | 'person' | 'personAdd' | 'phone' | 'phoneButtons' | 'phoneDown' | 'phoneRing' | 'pill' | 'pillHand' | 'playingCards' | 'plus' | 'questionMark' | 'questionMarkCircle' | 'quilInk' | 'reactLogo' | 'record' | 'report' | 'robot' | 'smileyFace' | 'smileyFacePlus' | 'star' | 'star2' | 'star2Outlined' | 'starCircle' | 'team' | 'textEdit' | 'thumbsUp' | 'trashcan' | 'twoSquares' | 'upload' | 'videoCamera' | 'warningSign' | 'website';
2
2
  export declare type IconsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
3
3
  export declare type IconColor = 'default' | 'subtle' | 'inactive' | 'active' | 'success' | 'warning' | 'error' | 'currentColor';
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ export declare type LogoType = 'full' | 'icon';
3
+ export declare type LogoColor = 'teal' | 'black' | 'white';
4
+ export declare enum LogoHoliday {
5
+ NewYears = "NewYears",
6
+ Valentines = "Valentines",
7
+ StPatricks = "StPatricks",
8
+ Easter1 = "Easter1",
9
+ Easter2 = "Easter2",
10
+ Easter3 = "Easter3",
11
+ Easter4 = "Easter4",
12
+ Easter5 = "Easter5",
13
+ Easter6 = "Easter6",
14
+ MothersDay = "MothersDay",
15
+ MemorialDay = "MemorialDay",
16
+ FathersDay = "FathersDay",
17
+ Halloween = "Halloween",
18
+ Thanksgiving = "Thanksgiving",
19
+ Christmas = "Christmas"
20
+ }
21
+ export declare const holidaysLogoIconMap: {
22
+ [key in LogoHoliday]: React.FC;
23
+ };
24
+ export declare const logoIconMap: {
25
+ black: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
26
+ white: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
27
+ teal: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
28
+ };
29
+ export declare const fullLogoMap: {
30
+ black: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
31
+ white: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
32
+ teal: import("react").FC<import("react").SVGProps<SVGSVGElement>>;
33
+ };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IconColor, IconName, IconsSize } from './icon.types';
3
+ export interface IconProps {
4
+ name: IconName;
5
+ size?: IconsSize;
6
+ color?: IconColor;
7
+ }
8
+ export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<any>>;
@@ -0,0 +1,3 @@
1
+ import { IconName, IconsSize } from './icon.types';
2
+ export declare const IconMap: Record<IconName, any>;
3
+ export declare const IconSizeMap: Record<IconsSize, number>;
@@ -0,0 +1,3 @@
1
+ export declare type IconName = 'alertCircle' | 'animalBird' | 'animalCat' | 'animalCow' | 'animalDog' | 'animalHorse' | 'arrowDownRight' | 'arrowCircle' | 'arrowLeft' | 'arrowRight' | 'arrowsIn' | 'arrowsOut' | 'article' | 'asterisk' | 'bell' | 'bellRinging' | 'bookmarkFilled' | 'bookmarkOutlined' | 'brush' | 'caduceus' | 'calendarDate' | 'calendarCheck' | 'calendarInfo' | 'calendarPen' | 'calendarOutlined' | 'camera' | 'cameraFlip' | 'cameraOff' | 'cancel' | 'cellphone' | 'cellphoneAlert' | 'chainLink' | 'chatBubbleFilled' | 'chatBubbleOutlined' | 'checkmark' | 'checkmarkBox' | 'checkmarkCircle' | 'checkmarkList' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'circleDotted' | 'clock' | 'close' | 'closeCircle' | 'code' | 'conversation' | 'creditCardHand' | 'crossClipboard' | 'crossPaw' | 'crossHatPerson' | 'dogHouse' | 'dogHouseOutlined' | 'dollar' | 'dollarCircle' | 'dotsCircle' | 'dotsHorizontal' | 'dotsVertical' | 'doubleArrowCircle' | 'download' | 'dragDrop' | 'emailSend' | 'envelopeFilled' | 'envelopeOutlined' | 'eyedropper' | 'eyeOpen' | 'eyeSlash' | 'faceScreen' | 'formsFilled' | 'formsOutlined' | 'funnelFilled' | 'funnelOutlined' | 'gear' | 'grid' | 'horizontalLines' | 'house' | 'infoCircleFilled' | 'infoCircleOutlined' | 'input' | 'invoice' | 'invoiceOutlined' | 'largeTextInput' | 'list' | 'locationMarker' | 'locationMarkerGround' | 'lockRectangle' | 'lockRound' | 'loudspeaker' | 'magnifyingGlass' | 'manHeadset' | 'message' | 'messages' | 'messageClipboard' | 'messageEllipses' | 'messageGear' | 'messageLink' | 'microphone' | 'microphoneMute' | 'moveLeft' | 'moveRight' | 'multipleChoice' | 'notification' | 'paperAirplane' | 'paperAirplane2' | 'paperAirplaneRight' | 'paperclip' | 'paperPen' | 'paw' | 'paw2' | 'pawMagnifyingGlass' | 'pawOutlined' | 'pdfLogo' | 'pen' | 'penSquare' | 'person' | 'personAdd' | 'phone' | 'phoneButtons' | 'phoneDown' | 'phoneRing' | 'pill' | 'pillHand' | 'playingCards' | 'plus' | 'questionMark' | 'questionMarkCircle' | 'quilInk' | 'reactLogo' | 'record' | 'report' | 'robot' | 'smileyFace' | 'smileyFacePlus' | 'star' | 'star2' | 'star2Outlined' | 'starCircle' | 'team' | 'textEdit' | 'thumbsUp' | 'trashcan' | 'twoSquares' | 'upload' | 'videoCamera' | 'warningSign' | 'website';
2
+ export declare type IconsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
3
+ export declare type IconColor = 'default' | 'subtle' | 'inactive' | 'active' | 'success' | 'warning' | 'error' | 'currentColor';
@@ -0,0 +1,2 @@
1
+ export * from './icon.component';
2
+ export * from './icon.types';
@@ -0,0 +1,2 @@
1
+ export * from './logo.component';
2
+ export * from './logo.types';
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { LogoHoliday, LogoType, LogoColor } from './logo.types';
3
+ export interface ILogoProps {
4
+ type?: LogoType;
5
+ color?: LogoColor;
6
+ holiday?: LogoHoliday;
7
+ height?: number;
8
+ width?: number;
9
+ handleClick?: () => void;
10
+ }
11
+ export declare const Logo: {
12
+ ({ type, color, holiday, height, width, handleClick, }: ILogoProps): JSX.Element;
13
+ displayName: string;
14
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { Props } from 'framer-motion/types/types';
3
+ import { LogoColor, LogoHoliday } from './logo.types';
4
+ export declare const holidaysLogoIconMap: Record<LogoHoliday, React.FC<Props>>;
5
+ export declare const logoIconMap: Record<LogoColor, React.FC<Props>>;
6
+ export declare const fullLogoMap: Record<LogoColor, React.FC<Props>>;
@@ -0,0 +1,3 @@
1
+ export declare type LogoHoliday = 'newYears' | 'valentines' | 'stPatricks' | 'easter1' | 'easter2' | 'easter3' | 'easter4' | 'easter5' | 'easter6' | 'mothersDay' | 'memorialDay' | 'fathersDay' | 'halloween' | 'thanksgiving' | 'christmas';
2
+ export declare type LogoType = 'full' | 'icon';
3
+ export declare type LogoColor = 'teal' | 'black' | 'white';
@@ -0,0 +1,22 @@
1
+ import { ReactComponent as TealLogo } from '../../../assets/logos/teal.svg';
2
+ import { ReactComponent as TealLogoIcon } from '../../../assets/logos/tealIcon.svg';
3
+ import { ReactComponent as BlackLogo } from '../../../assets/logos/black.svg';
4
+ import { ReactComponent as BlackLogoIcon } from '../../../assets/logos/blackIcon.svg';
5
+ import { ReactComponent as WhiteLogo } from '../../../assets/logos/white.svg';
6
+ import { ReactComponent as WhiteLogoIcon } from '../../../assets/logos/whiteIcon.svg';
7
+ import { ReactComponent as NewYearsLogoIcon } from '../../../assets/logos/holidays/newYears.svg';
8
+ import { ReactComponent as ValentinesLogoIcon } from '../../../assets/logos/holidays/valentines.svg';
9
+ import { ReactComponent as StPatricksLogoIcon } from '../../../assets/logos/holidays/stPatricks.svg';
10
+ import { ReactComponent as Easter1LogoIcon } from '../../../assets/logos/holidays/easter1.svg';
11
+ import { ReactComponent as Easter2LogoIcon } from '../../../assets/logos/holidays/easter2.svg';
12
+ import { ReactComponent as Easter3LogoIcon } from '../../../assets/logos/holidays/easter3.svg';
13
+ import { ReactComponent as Easter4LogoIcon } from '../../../assets/logos/holidays/easter4.svg';
14
+ import { ReactComponent as Easter5LogoIcon } from '../../../assets/logos/holidays/easter5.svg';
15
+ import { ReactComponent as Easter6LogoIcon } from '../../../assets/logos/holidays/easter6.svg';
16
+ import { ReactComponent as MothersDayLogoIcon } from '../../../assets/logos/holidays/mothersDay.svg';
17
+ import { ReactComponent as MemorialDayLogoIcon } from '../../../assets/logos/holidays/memorialDay.svg';
18
+ import { ReactComponent as FathersDayLogoIcon } from '../../../assets/logos/holidays/fathersDay.svg';
19
+ import { ReactComponent as HalloweenLogoIcon } from '../../../assets/logos/holidays/halloween.svg';
20
+ import { ReactComponent as ThanksgivingLogoIcon } from '../../../assets/logos/holidays/thanksgiving.svg';
21
+ import { ReactComponent as ChristmasLogoIcon } from '../../../assets/logos/holidays/christmas.svg';
22
+ export { TealLogo, TealLogoIcon, BlackLogo, BlackLogoIcon, WhiteLogo, WhiteLogoIcon, NewYearsLogoIcon, ValentinesLogoIcon, StPatricksLogoIcon, Easter1LogoIcon, Easter2LogoIcon, Easter3LogoIcon, Easter4LogoIcon, Easter5LogoIcon, Easter6LogoIcon, MothersDayLogoIcon, MemorialDayLogoIcon, FathersDayLogoIcon, HalloweenLogoIcon, ThanksgivingLogoIcon, ChristmasLogoIcon, };
@@ -0,0 +1,13 @@
1
+ export declare const DrawerConfig: {
2
+ variants: {
3
+ alwaysOpen: {
4
+ parts: string[];
5
+ dialog: {
6
+ pointerEvents: string;
7
+ };
8
+ dialogContainer: {
9
+ pointerEvents: string;
10
+ };
11
+ };
12
+ };
13
+ };
@@ -0,0 +1 @@
1
+ export * from './drawer.config';
@@ -0,0 +1,3 @@
1
+ export * from './tooltip.component';
2
+ export * from './tooltip.types';
3
+ export * from './tooltip.config';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { PlacementWithLogical, TooltipProps as ChakraTooltipProps } from '@chakra-ui/react';
3
+ export interface TooltipProps extends ChakraTooltipProps {
4
+ label: string;
5
+ placement?: PlacementWithLogical;
6
+ titleCaseLabel?: boolean;
7
+ }
8
+ export declare const Tooltip: ({ children, label, openDelay, placement, titleCaseLabel, ...rest }: TooltipProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { TooltipStyleConfig } from './tooltip.types';
2
+ export declare const TooltipGlobalStyle: {
3
+ '[id^=tooltip]': {
4
+ padding: string;
5
+ borderRadius: string;
6
+ };
7
+ };
8
+ export declare const TooltipConfig: TooltipStyleConfig;
@@ -0,0 +1,4 @@
1
+ import { AdaptiveColor } from '../../../theme/tokens';
2
+ export interface TooltipStyleConfig {
3
+ color: AdaptiveColor;
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './select.component';
2
+ export * from './select.config';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SelectProps as CSelectProps } from '@chakra-ui/react';
3
+ import { SelectOption } from 'shared/interfaces/SelectOption';
4
+ import { WithFormControlProps } from '../FormControl/formControl.component';
5
+ export interface SelectProps extends WithFormControlProps, CSelectProps {
6
+ options: SelectOption[];
7
+ }
8
+ declare const WrappedSelect: React.FC<SelectProps & WithFormControlProps>;
9
+ export { WrappedSelect as Select };
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/react';
2
+ export declare const SelectConfig: ComponentStyleConfig;
@@ -0,0 +1,2 @@
1
+ export * from './switch.component';
2
+ export * from './switch.config';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { SwitchProps as CSwitchProps } from '@chakra-ui/react';
3
+ import { WithFormControlProps } from '../FormControl/formControl.component';
4
+ export interface SwitchProps extends WithFormControlProps, CSwitchProps {
5
+ }
6
+ declare const WrappedSwitch: React.FC<SwitchProps & WithFormControlProps>;
7
+ export { WrappedSwitch as Switch };
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/react';
2
+ export declare const SwitchConfig: ComponentStyleConfig;
@@ -0,0 +1,2 @@
1
+ export * from './textInput.component';
2
+ export * from './textInput.config';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { InputProps as CInputProps } from '@chakra-ui/react';
3
+ import { WithFormControlProps } from '../FormControl/formControl.component';
4
+ export interface TextInputProps extends WithFormControlProps, CInputProps {
5
+ }
6
+ declare const WrappedTextInput: React.FC<TextInputProps & WithFormControlProps>;
7
+ export { WrappedTextInput as TextInput };
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/react';
2
+ export declare const TextInputConfig: ComponentStyleConfig;
@@ -1,4 +1,2 @@
1
1
  export * from './textarea.component';
2
- export * from './textarea.types';
3
- export * from './textarea.config';
4
2
  export * from './textarea.config';
@@ -1,5 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { TextareaProps as CTextareaProps } from '@chakra-ui/react';
3
- export interface TextareaProps extends CTextareaProps {
3
+ import { WithFormControlProps } from '../FormControl/formControl.component';
4
+ export interface TextareaProps extends WithFormControlProps, CTextareaProps {
4
5
  }
5
- export declare const Textarea: (props: TextareaProps) => JSX.Element;
6
+ declare const WrappedTextArea: React.FC<TextareaProps & WithFormControlProps>;
7
+ export { WrappedTextArea as Textarea };
@@ -1,3 +1,3 @@
1
1
  export * from './tooltip.component';
2
- export * from './tooltip.model';
2
+ export * from './tooltip.types';
3
3
  export * from './tooltip.config';
@@ -1,4 +1,4 @@
1
- import { TooltipStyleConfig } from './tooltip.model';
1
+ import { TooltipStyleConfig } from './tooltip.types';
2
2
  export declare const TooltipGlobalStyle: {
3
3
  '[id^=tooltip]': {
4
4
  padding: string;
@@ -0,0 +1,9 @@
1
+ import { TooltipStyleConfig } from './tooltip.model';
2
+ export declare const TooltipGlobalStyle: {
3
+ '[id^=tooltip]': {
4
+ padding: string;
5
+ borderRadius: string;
6
+ textTransform: string;
7
+ };
8
+ };
9
+ export declare const TooltipConfig: TooltipStyleConfig;
@@ -0,0 +1,4 @@
1
+ import { AdaptiveColor } from '../../theme/tokens';
2
+ export interface TooltipStyleConfig {
3
+ color: AdaptiveColor;
4
+ }
@@ -5,5 +5,6 @@ export interface HeadingProps extends ChakraHeadingProps {
5
5
  children: ReactNode;
6
6
  size?: HeadingSize;
7
7
  variant?: HeadingVariant;
8
+ darkMode?: boolean;
8
9
  }
9
10
  export declare const Heading: ({ children, size, variant, ...rest }: HeadingProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { HeadingStyleConfig } from './heading.types';
2
+ export declare const HeadingConfig: HeadingStyleConfig;
@@ -0,0 +1,2 @@
1
+ import { ComponentStyleConfig } from '@chakra-ui/theme';
2
+ export declare const TextConfig: ComponentStyleConfig;
@@ -4,5 +4,8 @@ export * from './Logo';
4
4
  export * from './Typography';
5
5
  export * from './Textarea';
6
6
  export * from './Button';
7
+ export * from './TextInput';
8
+ export * from './Select';
7
9
  export * from './Tooltip';
10
+ export * from './Switch';
8
11
  export { Box, BoxProps, Center, CenterProps, Flex, FlexProps, Hide, HideProps, Show, ShowProps, Tbody, Td, Th, Thead, Tr, VStack, HStack, } from '@chakra-ui/react';