@livechat/design-system-react-components 1.0.0-alpha.2 → 1.0.0-alpha.6

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 (152) hide show
  1. package/dist/dsrc.cjs.js +1 -0
  2. package/dist/dsrc.es.js +2213 -0
  3. package/dist/dsrc.umd.js +1 -0
  4. package/dist/{components → src/components/Alert}/Alert.d.ts +19 -19
  5. package/dist/src/components/Alert/index.d.ts +1 -0
  6. package/dist/src/components/Badge/Badge.d.ts +5 -0
  7. package/dist/src/components/Badge/index.d.ts +1 -0
  8. package/dist/{components → src/components/Button}/Button.d.ts +13 -13
  9. package/dist/src/components/Button/index.d.ts +2 -0
  10. package/dist/{components → src/components/ButtonGroup}/ButtonGroup.d.ts +11 -11
  11. package/dist/src/components/ButtonGroup/index.d.ts +1 -0
  12. package/dist/src/components/Card/Card.d.ts +6 -0
  13. package/dist/src/components/Card/index.d.ts +2 -0
  14. package/dist/src/components/Checkbox/Checkbox.d.ts +7 -0
  15. package/dist/{components → src/components/Checkbox}/CheckboxField.d.ts +7 -7
  16. package/dist/src/components/Checkbox/index.d.ts +2 -0
  17. package/dist/src/components/FieldDescription/FieldDescription.d.ts +3 -0
  18. package/dist/src/components/FieldDescription/index.d.ts +1 -0
  19. package/dist/src/components/FieldError/FieldError.d.ts +3 -0
  20. package/dist/src/components/FieldError/index.d.ts +1 -0
  21. package/dist/src/components/FieldGroup/FieldGroup.d.ts +8 -0
  22. package/dist/src/components/FieldGroup/index.d.ts +1 -0
  23. package/dist/src/components/Form/Form.d.ts +7 -0
  24. package/dist/src/components/Form/index.d.ts +2 -0
  25. package/dist/src/components/FormGroup/FormGroup.d.ts +7 -0
  26. package/dist/src/components/FormGroup/index.d.ts +1 -0
  27. package/dist/{components → src/components/Icon}/Icon.d.ts +70 -69
  28. package/dist/src/components/Icon/index.d.ts +1 -0
  29. package/dist/src/components/InputField/InputField.d.ts +15 -0
  30. package/dist/src/components/InputField/index.d.ts +1 -0
  31. package/dist/src/components/Link/Link.d.ts +14 -0
  32. package/dist/src/components/Link/index.d.ts +1 -0
  33. package/dist/{components → src/components/Loader}/Loader.d.ts +10 -10
  34. package/dist/src/components/Loader/index.d.ts +1 -0
  35. package/dist/src/components/Modal/ActionModal.d.ts +8 -0
  36. package/dist/src/components/Modal/Modal.d.ts +7 -0
  37. package/dist/src/components/Modal/ModalBase.d.ts +6 -0
  38. package/dist/src/components/Modal/ModalCloseButton.d.ts +3 -0
  39. package/dist/src/components/Modal/ModalPortal.d.ts +7 -0
  40. package/dist/src/components/Modal/index.d.ts +10 -0
  41. package/dist/src/components/NumericInput/NumericInput.d.ts +14 -0
  42. package/dist/src/components/NumericInput/NumericInputField.d.ts +19 -0
  43. package/dist/src/components/NumericInput/index.d.ts +2 -0
  44. package/dist/src/components/Popover/Popover.d.ts +15 -0
  45. package/dist/src/components/Popover/index.d.ts +1 -0
  46. package/dist/{components → src/components/Progress}/ProgressCircle.d.ts +9 -9
  47. package/dist/{components → src/components/Progress}/constants.d.ts +12 -12
  48. package/dist/{components → src/components/Progress}/helpers.d.ts +3 -3
  49. package/dist/src/components/Progress/index.d.ts +1 -0
  50. package/dist/{components → src/components/PromoBanner}/PromoBanner.d.ts +19 -19
  51. package/dist/src/components/PromoBanner/index.d.ts +1 -0
  52. package/dist/src/components/RadioButton/RadioButton.d.ts +7 -0
  53. package/dist/src/components/RadioButton/index.d.ts +1 -0
  54. package/dist/{components → src/components/Switch}/Switch.d.ts +20 -17
  55. package/dist/src/components/Switch/index.d.ts +1 -0
  56. package/dist/{components → src/components/Tab}/Tab.d.ts +12 -12
  57. package/dist/{components → src/components/Tab}/TabsWrapper.d.ts +3 -3
  58. package/dist/src/components/Tab/index.d.ts +2 -0
  59. package/dist/src/components/Tag/Tag.d.ts +12 -0
  60. package/dist/src/components/Tag/index.d.ts +1 -0
  61. package/dist/src/components/TagInput/EditableTag.d.ts +11 -0
  62. package/dist/src/components/TagInput/EditableTagContent.d.ts +11 -0
  63. package/dist/src/components/TagInput/EmailTagInput.d.ts +5 -0
  64. package/dist/src/components/TagInput/TagInput.d.ts +12 -0
  65. package/dist/src/components/TagInput/index.d.ts +4 -0
  66. package/dist/src/components/TextField/TextField.d.ts +13 -0
  67. package/dist/src/components/TextField/index.d.ts +1 -0
  68. package/dist/{components → src/components/Toast}/Toast.d.ts +22 -22
  69. package/dist/{components → src/components/Toast}/ToastWrapper.d.ts +27 -26
  70. package/dist/src/components/Toast/index.d.ts +2 -0
  71. package/dist/{components → src/components/Typography}/Heading.d.ts +11 -11
  72. package/dist/{components → src/components/Typography}/Text.d.ts +15 -15
  73. package/dist/src/components/Typography/index.d.ts +2 -0
  74. package/dist/src/index.d.ts +29 -0
  75. package/dist/src/themes/designTokens.d.ts +126 -0
  76. package/dist/src/utils/keyCodes.d.ts +12 -0
  77. package/dist/{utils → src/utils}/noop.d.ts +1 -1
  78. package/dist/src/vite-env.d.ts +1 -0
  79. package/dist/style.css +1 -0
  80. package/package.json +40 -35
  81. package/dist/components/Alert.spec.d.ts +0 -1
  82. package/dist/components/Badge.d.ts +0 -6
  83. package/dist/components/Badge.spec.d.ts +0 -1
  84. package/dist/components/Button.spec.d.ts +0 -1
  85. package/dist/components/ButtonGroup.spec.d.ts +0 -1
  86. package/dist/components/Card.d.ts +0 -6
  87. package/dist/components/Card.spec.d.ts +0 -1
  88. package/dist/components/Checkbox.d.ts +0 -7
  89. package/dist/components/CheckboxField.spec.d.ts +0 -1
  90. package/dist/components/FieldDescription.d.ts +0 -3
  91. package/dist/components/FieldError.d.ts +0 -3
  92. package/dist/components/FieldGroup.d.ts +0 -8
  93. package/dist/components/FieldGroup.spec.d.ts +0 -1
  94. package/dist/components/FieldLabel.d.ts +0 -3
  95. package/dist/components/Form.d.ts +0 -7
  96. package/dist/components/Form.spec.d.ts +0 -1
  97. package/dist/components/FormGroup.d.ts +0 -7
  98. package/dist/components/FormGroup.spec.d.ts +0 -1
  99. package/dist/components/Loader.spec.d.ts +0 -1
  100. package/dist/components/Modal/ActionModal.d.ts +0 -8
  101. package/dist/components/Modal/Modal.d.ts +0 -7
  102. package/dist/components/Modal/ModalBase.d.ts +0 -6
  103. package/dist/components/Modal/ModalBase.spec.d.ts +0 -1
  104. package/dist/components/Modal/ModalCloseButton.d.ts +0 -3
  105. package/dist/components/Modal/ModalPortal.d.ts +0 -7
  106. package/dist/components/ProgressBar.d.ts +0 -9
  107. package/dist/components/ProgressBar.spec.d.ts +0 -1
  108. package/dist/components/ProgressCircle.spec.d.ts +0 -1
  109. package/dist/components/PromoBanner.spec.d.ts +0 -1
  110. package/dist/components/RadioButton.d.ts +0 -7
  111. package/dist/components/RadioButton.spec.d.ts +0 -1
  112. package/dist/components/Switch.spec.d.ts +0 -1
  113. package/dist/components/Tab.spec.d.ts +0 -1
  114. package/dist/components/TabsWrapper.spec.d.ts +0 -1
  115. package/dist/components/Toast.spec.d.ts +0 -1
  116. package/dist/components/ToastWrapper.spec.d.ts +0 -1
  117. package/dist/constants/keyCodes.d.ts +0 -3
  118. package/dist/index.css +0 -2
  119. package/dist/index.css.map +0 -1
  120. package/dist/index.d.ts +0 -8
  121. package/dist/index.js +0 -2
  122. package/dist/index.js.map +0 -1
  123. package/dist/index.modern.js +0 -2
  124. package/dist/index.modern.js.map +0 -1
  125. package/dist/index.module.js +0 -2
  126. package/dist/index.module.js.map +0 -1
  127. package/dist/index.umd.js +0 -2
  128. package/dist/index.umd.js.map +0 -1
  129. package/dist/stories/Alert.stories.d.ts +0 -14
  130. package/dist/stories/Badge.stories.d.ts +0 -16
  131. package/dist/stories/Button.stories.d.ts +0 -20
  132. package/dist/stories/ButtonGroup.stories.d.ts +0 -18
  133. package/dist/stories/Card.stories.d.ts +0 -10
  134. package/dist/stories/CheckboxField.stories.d.ts +0 -9
  135. package/dist/stories/FieldGroup.stories.d.ts +0 -9
  136. package/dist/stories/Form.stories.d.ts +0 -6
  137. package/dist/stories/FormGroup.stories.d.ts +0 -9
  138. package/dist/stories/Icon.stories.d.ts +0 -14
  139. package/dist/stories/Loader.stories.d.ts +0 -8
  140. package/dist/stories/Modal.stories.d.ts +0 -19
  141. package/dist/stories/ProgressCircle.stories.d.ts +0 -13
  142. package/dist/stories/Progressbar.stories.d.ts +0 -13
  143. package/dist/stories/PromoBanner.stories.d.ts +0 -13
  144. package/dist/stories/RadioButton.stories.d.ts +0 -9
  145. package/dist/stories/Switch.stories.d.ts +0 -12
  146. package/dist/stories/Tab.stories.d.ts +0 -10
  147. package/dist/stories/TabsWrapper.stories.d.ts +0 -15
  148. package/dist/stories/Toast.stories.d.ts +0 -15
  149. package/dist/stories/ToastWrapper.stories.d.ts +0 -40
  150. package/dist/stories/foundations/components/ColorTokens.d.ts +0 -2
  151. package/dist/stories/foundations/components/IconsShowcase.d.ts +0 -6
  152. package/dist/test-utils.d.ts +0 -2
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ interface Props {
3
+ id: string;
4
+ labelText?: string;
5
+ labelAdornment?: React.ReactNode;
6
+ className?: string;
7
+ inline?: boolean;
8
+ error?: string;
9
+ description?: React.ReactNode;
10
+ labelRightNode?: React.ReactNode;
11
+ fieldClassName?: string;
12
+ value: string;
13
+ max?: number;
14
+ min?: number;
15
+ onChange: (value: string) => void;
16
+ }
17
+ export declare type NumericInputFieldProps = Props & React.InputHTMLAttributes<HTMLInputElement>;
18
+ export declare const NumericInputField: React.FC<NumericInputFieldProps>;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ export { NumericInput } from './NumericInput';
2
+ export { NumericInputField } from './NumericInputField';
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import * as PopperCore from '@popperjs/core';
3
+ declare type PopoverModifiers = {
4
+ [key: string]: Partial<PopperCore.StrictModifiers>;
5
+ };
6
+ export interface IPopoverProps {
7
+ children?: React.ReactNode;
8
+ className?: string;
9
+ modifiers?: PopoverModifiers;
10
+ placement?: PopperCore.Placement;
11
+ isVisible?: boolean;
12
+ triggerRenderer: () => React.ReactNode;
13
+ }
14
+ export declare const Popover: React.FC<IPopoverProps>;
15
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Popover';
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
2
- import { ProgressSize, ProgressStatus } from './constants';
3
- export interface IProps {
4
- className?: string;
5
- percent: number;
6
- status?: ProgressStatus;
7
- size?: ProgressSize;
8
- }
9
- export declare const ProgressCircle: React.ExoticComponent<IProps & React.RefAttributes<HTMLInputElement>>;
1
+ import * as React from 'react';
2
+ import { ProgressSize, ProgressStatus } from './constants';
3
+ export interface ProgressCircleProps {
4
+ className?: string;
5
+ percent: number;
6
+ status?: ProgressStatus;
7
+ size?: ProgressSize;
8
+ }
9
+ export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,12 +1,12 @@
1
- export declare enum ProgressStatus {
2
- Normal = "normal",
3
- Error = "error",
4
- Success = "success"
5
- }
6
- export declare enum ProgressSize {
7
- Small = "small",
8
- Medium = "medium",
9
- Large = "large"
10
- }
11
- export declare const PROGRESS_STATUSES: ProgressStatus[];
12
- export declare const PROGRESS_SIZES: ProgressSize[];
1
+ export declare const enum ProgressStatus {
2
+ Normal = "normal",
3
+ Error = "error",
4
+ Success = "success"
5
+ }
6
+ export declare const enum ProgressSize {
7
+ Small = "small",
8
+ Medium = "medium",
9
+ Large = "large"
10
+ }
11
+ export declare const PROGRESS_STATUSES: ProgressStatus[];
12
+ export declare const PROGRESS_SIZES: ProgressSize[];
@@ -1,3 +1,3 @@
1
- import { ProgressStatus } from './constants';
2
- export declare function getPercentNumber(status: ProgressStatus, percent?: number): number;
3
- export declare function getProgressStatus(status: ProgressStatus, percent: number): ProgressStatus;
1
+ import { ProgressStatus } from './constants';
2
+ export declare function getPercentNumber(status: ProgressStatus, percent?: number): number;
3
+ export declare function getProgressStatus(status: ProgressStatus, percent: number): ProgressStatus;
@@ -0,0 +1 @@
1
+ export { ProgressCircle } from './ProgressCircle';
@@ -1,19 +1,19 @@
1
- import * as React from 'react';
2
- export declare enum PromoBannerSize {
3
- Small = "small",
4
- Medium = "medium",
5
- Large = "large"
6
- }
7
- export interface IPromoBannerProps {
8
- className?: string;
9
- buttonText?: string;
10
- header: string;
11
- img?: string;
12
- light?: boolean;
13
- linkText?: string;
14
- size?: PromoBannerSize;
15
- onButtonClick?: () => void;
16
- onClose?: () => void;
17
- onLinkClick?: () => void;
18
- }
19
- export declare const PromoBanner: React.FC<IPromoBannerProps>;
1
+ import * as React from 'react';
2
+ export declare const enum PromoBannerSize {
3
+ Small = "small",
4
+ Medium = "medium",
5
+ Large = "large"
6
+ }
7
+ export interface PromoBannerProps {
8
+ className?: string;
9
+ buttonText?: string;
10
+ header: string;
11
+ img?: string;
12
+ light?: boolean;
13
+ linkText?: string;
14
+ size?: PromoBannerSize;
15
+ onButtonClick?: () => void;
16
+ onClose?: () => void;
17
+ onLinkClick?: () => void;
18
+ }
19
+ export declare const PromoBanner: React.FC<PromoBannerProps>;
@@ -0,0 +1 @@
1
+ export { PromoBanner } from './PromoBanner';
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface RadioButtonProps extends React.HTMLAttributes<HTMLInputElement> {
3
+ description?: React.ReactNode;
4
+ checked?: boolean;
5
+ disabled?: boolean;
6
+ }
7
+ export declare const RadioButton: React.FC<RadioButtonProps>;
@@ -0,0 +1 @@
1
+ export { RadioButton } from './RadioButton';
@@ -1,17 +1,20 @@
1
- import * as React from 'react';
2
- declare enum SwitchSize {
3
- Basic = "basic",
4
- Compact = "compact"
5
- }
6
- export interface IProps {
7
- className?: string;
8
- defaultOn?: boolean;
9
- disabled?: boolean;
10
- innerRef?: React.LegacyRef<HTMLInputElement> | undefined;
11
- name?: string;
12
- on?: boolean;
13
- onChange?(e: React.FormEvent, value: boolean): void;
14
- size?: SwitchSize;
15
- }
16
- export declare const Switch: React.FC<IProps>;
17
- export {};
1
+ import * as React from 'react';
2
+ export declare const enum SwitchSize {
3
+ Basic = "basic",
4
+ Compact = "compact"
5
+ }
6
+ export declare const enum SwitchStyles {
7
+ Enabled = "enabled",
8
+ Disabled = "disabled"
9
+ }
10
+ export interface SwitchProps {
11
+ className?: string;
12
+ defaultOn?: boolean;
13
+ disabled?: boolean;
14
+ innerRef?: React.LegacyRef<HTMLInputElement> | undefined;
15
+ name?: string;
16
+ on?: boolean;
17
+ onChange?(e: React.FormEvent, value: boolean): void;
18
+ size?: SwitchSize;
19
+ }
20
+ export declare const Switch: React.FC<SwitchProps>;
@@ -0,0 +1 @@
1
+ export { Switch } from './Switch';
@@ -1,12 +1,12 @@
1
- import * as React from 'react';
2
- declare type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
3
- href: string;
4
- }) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
5
- href?: never;
6
- });
7
- export declare type ITabProps = HTMLProps & {
8
- description?: React.ReactNode;
9
- isSelected?: boolean;
10
- };
11
- export declare const Tab: React.FC<ITabProps>;
12
- export {};
1
+ import * as React from 'react';
2
+ declare type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
3
+ href: string;
4
+ }) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
5
+ href?: never;
6
+ });
7
+ export declare type TabProps = HTMLProps & {
8
+ description?: React.ReactNode;
9
+ isSelected?: boolean;
10
+ };
11
+ export declare const Tab: React.FC<TabProps>;
12
+ export {};
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
- export declare const TabsWrapper: React.FC<React.HTMLAttributes<HTMLDivElement>>;
3
- export declare const TabsList: React.FC<React.HTMLAttributes<HTMLDivElement>>;
1
+ import * as React from 'react';
2
+ export declare const TabsWrapper: React.FC<React.HTMLAttributes<HTMLDivElement>>;
3
+ export declare const TabsList: React.FC<React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export * from './Tab';
2
+ export * from './TabsWrapper';
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ kind?: 'default' | 'info' | 'warning' | 'success' | 'error';
4
+ size?: 'medium' | 'large';
5
+ customColor?: string;
6
+ dismissible?: boolean;
7
+ outline?: boolean;
8
+ onRemove?(): void;
9
+ icon?: React.FC<React.SVGProps<SVGSVGElement>> | string;
10
+ avatar?: string;
11
+ }
12
+ export declare const Tag: React.FC<TagProps>;
@@ -0,0 +1 @@
1
+ export { Tag } from './Tag';
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export interface EditableTagProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ inputRef: React.RefObject<HTMLInputElement>;
4
+ index: number;
5
+ update: (idx: number, value: string) => void;
6
+ remove: (idx: number) => void;
7
+ validator?: (val: string) => boolean;
8
+ children: string;
9
+ size: 'medium' | 'large';
10
+ }
11
+ export declare const EditableTag: React.FC<EditableTagProps>;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export interface EditableTagContentProps {
3
+ value: string;
4
+ className?: string;
5
+ innerEditableRef: React.RefObject<HTMLDivElement>;
6
+ inputRef: React.RefObject<HTMLInputElement>;
7
+ change: (value: string) => void;
8
+ remove: () => void;
9
+ validator?: (value: string) => boolean;
10
+ }
11
+ export declare const EditableTagContent: React.FC<EditableTagContentProps>;
@@ -0,0 +1,5 @@
1
+ import { TagInputProps } from './TagInput';
2
+ import * as React from 'react';
3
+ export declare type EmailTagInputProps = Omit<TagInputProps, 'validator'>;
4
+ export declare const emailRegex: RegExp;
5
+ export declare const EmailTagInput: React.FC<EmailTagInputProps>;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ declare type Tags = string[];
3
+ export interface TagInputProps {
4
+ error?: string;
5
+ tags?: Tags;
6
+ onChange: (tags: Tags) => void;
7
+ placeholder?: string;
8
+ validator?: (val: string) => boolean;
9
+ size?: 'medium' | 'large';
10
+ }
11
+ export declare const TagInput: React.FC<TagInputProps>;
12
+ export {};
@@ -0,0 +1,4 @@
1
+ export { TagInput } from './TagInput';
2
+ export type { TagInputProps } from './TagInput';
3
+ export { EmailTagInput } from './EmailTagInput';
4
+ export type { EmailTagInputProps } from './EmailTagInput';
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export interface TextFieldProps {
3
+ labelText?: string;
4
+ labelAdornment?: React.ReactNode;
5
+ labelFor?: string;
6
+ className?: string;
7
+ inline?: boolean;
8
+ error?: string;
9
+ description?: React.ReactNode;
10
+ children?: React.ReactNode;
11
+ labelRightNode?: React.ReactNode;
12
+ }
13
+ export declare const TextField: React.FC<TextFieldProps>;
@@ -0,0 +1 @@
1
+ export { TextField } from './TextField';
@@ -1,22 +1,22 @@
1
- import * as React from 'react';
2
- export declare enum Variants {
3
- Success = "success",
4
- Warning = "warning",
5
- Error = "error",
6
- Info = "info",
7
- Notification = "notification"
8
- }
9
- interface IToastActionProps {
10
- handler: () => void;
11
- label: string;
12
- closeOnClick?: boolean;
13
- }
14
- export interface IToastProps {
15
- action?: IToastActionProps;
16
- className?: string;
17
- removable?: boolean;
18
- variant?: Variants;
19
- onClose?: () => void;
20
- }
21
- export declare const Toast: React.FC<IToastProps>;
22
- export {};
1
+ import * as React from 'react';
2
+ export declare const enum Variants {
3
+ Success = "success",
4
+ Warning = "warning",
5
+ Error = "error",
6
+ Info = "info",
7
+ Notification = "notification"
8
+ }
9
+ interface ToastAction {
10
+ handler: () => void;
11
+ label: string;
12
+ closeOnClick?: boolean;
13
+ }
14
+ export interface ToastProps {
15
+ action?: ToastAction;
16
+ className?: string;
17
+ removable?: boolean;
18
+ variant?: Variants;
19
+ onClose?: () => void;
20
+ }
21
+ export declare const Toast: React.FC<ToastProps>;
22
+ export {};
@@ -1,26 +1,27 @@
1
- import * as React from 'react';
2
- import { IToastProps } from './Toast';
3
- export declare enum HorizontalPosition {
4
- Left = "left",
5
- Center = "center",
6
- Right = "right"
7
- }
8
- export declare enum VerticalPosition {
9
- Top = "top",
10
- Bottom = "bottom"
11
- }
12
- export declare const ANIMATION_TIME = 200;
13
- export interface IToastsProps extends IToastProps {
14
- id: string;
15
- content: React.ReactElement | string;
16
- }
17
- export interface IToastWrapperProps {
18
- className?: string;
19
- toasts: IToastsProps[];
20
- fixed?: boolean;
21
- block?: boolean;
22
- animationType?: string;
23
- verticalPosition?: VerticalPosition;
24
- horizontalPosition?: HorizontalPosition;
25
- }
26
- export declare const ToastWrapper: React.FC<IToastWrapperProps>;
1
+ import * as React from 'react';
2
+ import { ToastProps, Toast } from './Toast';
3
+ export declare enum HorizontalPosition {
4
+ Left = "left",
5
+ Center = "center",
6
+ Right = "right"
7
+ }
8
+ export declare enum VerticalPosition {
9
+ Top = "top",
10
+ Bottom = "bottom"
11
+ }
12
+ export declare const ANIMATION_TIME = 200;
13
+ interface Toast extends ToastProps {
14
+ id: string;
15
+ content: React.ReactElement | string;
16
+ }
17
+ export interface ToastWrapperProps {
18
+ className?: string;
19
+ toasts: Toast[];
20
+ fixed?: boolean;
21
+ block?: boolean;
22
+ animationType?: string;
23
+ verticalPosition?: VerticalPosition;
24
+ horizontalPosition?: HorizontalPosition;
25
+ }
26
+ export declare const ToastWrapper: React.FC<ToastWrapperProps>;
27
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './Toast';
2
+ export * from './ToastWrapper';
@@ -1,11 +1,11 @@
1
- import * as React from 'react';
2
- declare type TSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
3
- interface IProps {
4
- size?: TSize;
5
- /** DOM element name that will be rendered */
6
- as?: string;
7
- /** Optional custom className */
8
- className?: string;
9
- }
10
- export declare const Heading: React.FC<IProps>;
11
- export {};
1
+ import * as React from 'react';
2
+ declare type TSize = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
3
+ interface IProps {
4
+ size?: TSize;
5
+ /** DOM element name that will be rendered */
6
+ as?: string;
7
+ /** Optional custom className */
8
+ className?: string;
9
+ }
10
+ export declare const Heading: React.FC<IProps>;
11
+ export {};
@@ -1,15 +1,15 @@
1
- import * as React from 'react';
2
- declare type TSize = 'md' | 'sm' | 'xs';
3
- interface IProps {
4
- /** DOM element name that will be rendered */
5
- as?: string;
6
- size?: TSize;
7
- /** Optional custom className */
8
- className?: string;
9
- caps?: boolean;
10
- bold?: boolean;
11
- underline?: boolean;
12
- strike?: boolean;
13
- }
14
- export declare const Text: React.FC<IProps>;
15
- export {};
1
+ import * as React from 'react';
2
+ declare type TSize = 'md' | 'sm' | 'xs';
3
+ interface IProps {
4
+ /** DOM element name that will be rendered */
5
+ as?: string;
6
+ size?: TSize;
7
+ /** Optional custom className */
8
+ className?: string;
9
+ caps?: boolean;
10
+ bold?: boolean;
11
+ underline?: boolean;
12
+ strike?: boolean;
13
+ }
14
+ export declare const Text: React.FC<IProps>;
15
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Heading } from './Heading';
2
+ export { Text } from './Text';
@@ -0,0 +1,29 @@
1
+ export { DesignTokens } from './themes/designTokens';
2
+ export * from './components/Alert';
3
+ export * from './components/Badge';
4
+ export * from './components/Button';
5
+ export * from './components/ButtonGroup';
6
+ export * from './components/Card';
7
+ export * from './components/Checkbox';
8
+ export * from './components/FieldDescription';
9
+ export * from './components/FieldError';
10
+ export * from './components/FieldGroup';
11
+ export * from './components/Form';
12
+ export * from './components/FormGroup';
13
+ export * from './components/Icon';
14
+ export * from './components/InputField';
15
+ export * from './components/Link';
16
+ export * from './components/Loader';
17
+ export * from './components/Modal';
18
+ export * from './components/NumericInput';
19
+ export * from './components/Popover';
20
+ export * from './components/Progress';
21
+ export * from './components/PromoBanner';
22
+ export * from './components/RadioButton';
23
+ export * from './components/Switch';
24
+ export * from './components/Tab';
25
+ export * from './components/Tag';
26
+ export * from './components/TagInput';
27
+ export * from './components/TextField';
28
+ export * from './components/Toast';
29
+ export * from './components/Typography';
@@ -0,0 +1,126 @@
1
+ export declare const DesignTokens: {
2
+ Background: string;
3
+ SurfaceBasicDefault: string;
4
+ SurfaceBasicSubtle: string;
5
+ SurfaceBasicHover: string;
6
+ SurfaceBasicActive: string;
7
+ SurfaceBasicDisabled: string;
8
+ SurfaceSecondaryDefault: string;
9
+ SurfaceSecondarySubtle: string;
10
+ SurfaceSecondaryHover: string;
11
+ SurfaceSecondaryDisabled: string;
12
+ SurfaceFeedbackInfo: string;
13
+ SurfaceFeedbackNegative: string;
14
+ SurfaceFeedbackWarning: string;
15
+ SurfaceFeedbackPositive: string;
16
+ SurfaceInvertDefault: string;
17
+ SurfaceInvertSubtle: string;
18
+ SurfaceInvertDisabled: string;
19
+ SurfaceOverlay: string;
20
+ ContentDefault: string;
21
+ ContentSubtle: string;
22
+ ContentDisabled: string;
23
+ ContentWhiteLocked: string;
24
+ ContentInvertDefault: string;
25
+ ContentInvertSubtle: string;
26
+ ContentInvertDisabled: string;
27
+ BorderDefault: string;
28
+ BorderSubtle: string;
29
+ BorderHover: string;
30
+ BorderDisabled: string;
31
+ BorderInvertDefault: string;
32
+ BorderInvertSubtle: string;
33
+ BorderInvertHover: string;
34
+ BorderInvertDisabled: string;
35
+ ColorActionActive: string;
36
+ ColorActionHover: string;
37
+ ColorActionDefault: string;
38
+ ColorActionDisabled: string;
39
+ ColorNegativeActive: string;
40
+ ColorNegativeHover: string;
41
+ ColorNegativeDefault: string;
42
+ ColorNegativeDisabled: string;
43
+ ColorWarningDefault: string;
44
+ ColorWarningHover: string;
45
+ ColorPositiveDefault: string;
46
+ ColorPositiveHover: string;
47
+ ColorPositiveDisabled: string;
48
+ ColorBot: string;
49
+ ColorBlack: string;
50
+ ColorWhite: string;
51
+ DecorBlue900: string;
52
+ DecorBlue800: string;
53
+ DecorBlue700: string;
54
+ DecorBlue600: string;
55
+ DecorBlue500: string;
56
+ DecorBlue400: string;
57
+ DecorBlue300: string;
58
+ DecorBlue200: string;
59
+ DecorBlue100: string;
60
+ DecorBlue50: string;
61
+ DecorOrange900: string;
62
+ DecorOrange800: string;
63
+ DecorOrange700: string;
64
+ DecorOrange600: string;
65
+ DecorOrange500: string;
66
+ DecorOrange400: string;
67
+ DecorOrange300: string;
68
+ DecorOrange200: string;
69
+ DecorOrange100: string;
70
+ DecorOrange50: string;
71
+ DecorYellow900: string;
72
+ DecorYellow800: string;
73
+ DecorYellow700: string;
74
+ DecorYellow600: string;
75
+ DecorYellow500: string;
76
+ DecorYellow400: string;
77
+ DecorYellow300: string;
78
+ DecorYellow200: string;
79
+ DecorYellow100: string;
80
+ DecorYellow50: string;
81
+ DecorGray950: string;
82
+ DecorGray900: string;
83
+ DecorGray800: string;
84
+ DecorGray700: string;
85
+ DecorGray600: string;
86
+ DecorGray500: string;
87
+ DecorGray400: string;
88
+ DecorGray300: string;
89
+ DecorGray200: string;
90
+ DecorGray150: string;
91
+ DecorGray100: string;
92
+ DecorGray75: string;
93
+ DecorGray50: string;
94
+ DecorGray40: string;
95
+ DecorGray20: string;
96
+ DecorGreen900: string;
97
+ DecorGreen800: string;
98
+ DecorGreen700: string;
99
+ DecorGreen600: string;
100
+ DecorGreen500: string;
101
+ DecorGreen400: string;
102
+ DecorGreen300: string;
103
+ DecorGreen200: string;
104
+ DecorGreen100: string;
105
+ DecorGreen50: string;
106
+ DecorRed900: string;
107
+ DecorRed800: string;
108
+ DecorRed700: string;
109
+ DecorRed600: string;
110
+ DecorRed500: string;
111
+ DecorRed400: string;
112
+ DecorRed300: string;
113
+ DecorRed200: string;
114
+ DecorRed100: string;
115
+ DecorRed50: string;
116
+ DecorPurple900: string;
117
+ DecorPurple800: string;
118
+ DecorPurple700: string;
119
+ DecorPurple600: string;
120
+ DecorPurple500: string;
121
+ DecorPurple400: string;
122
+ DecorPurple300: string;
123
+ DecorPurple200: string;
124
+ DecorPurple100: string;
125
+ DecorPurple50: string;
126
+ };
@@ -0,0 +1,12 @@
1
+ export declare const KeyCodes: {
2
+ esc: string;
3
+ enter: string;
4
+ backspace: string;
5
+ delete: string;
6
+ spacebar: string;
7
+ tab: string;
8
+ semicolon: string;
9
+ comma: string;
10
+ arrowUp: string;
11
+ arrowDown: string;
12
+ };