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

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 (192) hide show
  1. package/dist/dsrc.cjs.js +15 -0
  2. package/dist/dsrc.es.js +3255 -0
  3. package/dist/dsrc.umd.js +15 -0
  4. package/dist/shadow/shadow.css +7 -0
  5. package/dist/shadow/shadow.css.map +1 -0
  6. package/dist/shadow/spacing.css +18 -0
  7. package/dist/shadow/spacing.css.map +1 -0
  8. package/dist/spacing/shadow.css +7 -0
  9. package/dist/spacing/shadow.css.map +1 -0
  10. package/dist/spacing/spacing.css +18 -0
  11. package/dist/spacing/spacing.css.map +1 -0
  12. package/dist/src/components/Alert/Alert.d.ts +9 -0
  13. package/dist/src/components/Alert/index.d.ts +1 -0
  14. package/dist/src/components/Avatar/Avatar.d.ts +19 -0
  15. package/dist/src/components/Avatar/Avatar.helpers.d.ts +2 -0
  16. package/dist/src/components/Avatar/index.d.ts +1 -0
  17. package/dist/src/components/Badge/Badge.d.ts +9 -0
  18. package/dist/src/components/Badge/Badge.helpers.d.ts +1 -0
  19. package/dist/src/components/Badge/index.d.ts +1 -0
  20. package/dist/{components → src/components/Button}/Button.d.ts +14 -13
  21. package/dist/src/components/Button/index.d.ts +2 -0
  22. package/dist/{components → src/components/ButtonGroup}/ButtonGroup.d.ts +11 -11
  23. package/dist/src/components/ButtonGroup/index.d.ts +1 -0
  24. package/dist/src/components/Card/Card.d.ts +12 -0
  25. package/dist/src/components/Card/index.d.ts +2 -0
  26. package/dist/src/components/Checkbox/Checkbox.d.ts +7 -0
  27. package/dist/src/components/Checkbox/index.d.ts +1 -0
  28. package/dist/src/components/FieldDescription/FieldDescription.d.ts +3 -0
  29. package/dist/src/components/FieldDescription/index.d.ts +1 -0
  30. package/dist/src/components/FieldError/FieldError.d.ts +3 -0
  31. package/dist/src/components/FieldError/index.d.ts +1 -0
  32. package/dist/src/components/FieldGroup/FieldGroup.d.ts +8 -0
  33. package/dist/src/components/FieldGroup/index.d.ts +1 -0
  34. package/dist/src/components/Form/Form.d.ts +7 -0
  35. package/dist/src/components/Form/index.d.ts +2 -0
  36. package/dist/src/components/FormField/FormField.d.ts +13 -0
  37. package/dist/src/components/FormField/index.d.ts +1 -0
  38. package/dist/src/components/FormGroup/FormGroup.d.ts +7 -0
  39. package/dist/src/components/FormGroup/index.d.ts +1 -0
  40. package/dist/src/components/Icon/Icon.d.ts +14 -0
  41. package/dist/src/components/Icon/index.d.ts +1 -0
  42. package/dist/src/components/Input/Input.d.ts +9 -0
  43. package/dist/src/components/Input/index.d.ts +1 -0
  44. package/dist/src/components/Link/Link.d.ts +14 -0
  45. package/dist/src/components/Link/index.d.ts +1 -0
  46. package/dist/{components → src/components/Loader}/Loader.d.ts +10 -10
  47. package/dist/src/components/Loader/index.d.ts +1 -0
  48. package/dist/src/components/Modal/ActionModal.d.ts +8 -0
  49. package/dist/src/components/Modal/Modal.d.ts +7 -0
  50. package/dist/src/components/Modal/ModalBase.d.ts +6 -0
  51. package/dist/src/components/Modal/ModalCloseButton.d.ts +3 -0
  52. package/dist/src/components/Modal/ModalPortal.d.ts +7 -0
  53. package/dist/src/components/Modal/index.d.ts +10 -0
  54. package/dist/src/components/NumericInput/NumericInput.d.ts +14 -0
  55. package/dist/src/components/NumericInput/index.d.ts +1 -0
  56. package/dist/src/components/Picker/Picker.d.ts +17 -0
  57. package/dist/src/components/Picker/PickerList.d.ts +18 -0
  58. package/dist/src/components/Picker/Trigger.d.ts +15 -0
  59. package/dist/src/components/Picker/index.d.ts +1 -0
  60. package/dist/src/components/Popover/Popover.d.ts +10 -0
  61. package/dist/src/components/Popover/index.d.ts +1 -0
  62. package/dist/{components → src/components/Progress}/ProgressBar.d.ts +9 -9
  63. package/dist/src/components/Progress/ProgressCircle.d.ts +9 -0
  64. package/dist/src/components/Progress/constants.d.ts +4 -0
  65. package/dist/{components → src/components/Progress}/helpers.d.ts +3 -3
  66. package/dist/src/components/Progress/index.d.ts +2 -0
  67. package/dist/{components → src/components/PromoBanner}/PromoBanner.d.ts +13 -19
  68. package/dist/src/components/PromoBanner/index.d.ts +1 -0
  69. package/dist/src/components/RadioButton/RadioButton.d.ts +7 -0
  70. package/dist/src/components/RadioButton/index.d.ts +1 -0
  71. package/dist/src/components/Search/Search.d.ts +16 -0
  72. package/dist/src/components/Search/index.d.ts +1 -0
  73. package/dist/{components → src/components/Switch}/Switch.d.ts +16 -17
  74. package/dist/src/components/Switch/index.d.ts +1 -0
  75. package/dist/{components → src/components/Tab}/Tab.d.ts +12 -12
  76. package/dist/{components → src/components/Tab}/TabsWrapper.d.ts +3 -3
  77. package/dist/src/components/Tab/index.d.ts +2 -0
  78. package/dist/src/components/Tag/Tag.d.ts +12 -0
  79. package/dist/src/components/Tag/index.d.ts +1 -0
  80. package/dist/src/components/TagInput/EditableTag.d.ts +11 -0
  81. package/dist/src/components/TagInput/EditableTagContent.d.ts +11 -0
  82. package/dist/src/components/TagInput/EmailTagInput.d.ts +5 -0
  83. package/dist/src/components/TagInput/TagInput.d.ts +12 -0
  84. package/dist/src/components/TagInput/index.d.ts +4 -0
  85. package/dist/src/components/Toast/Toast.d.ts +16 -0
  86. package/dist/src/components/Toast/ToastWrapper.d.ts +20 -0
  87. package/dist/src/components/Toast/index.d.ts +2 -0
  88. package/dist/src/components/Tooltip/Info.d.ts +8 -0
  89. package/dist/src/components/Tooltip/Interactive.d.ts +14 -0
  90. package/dist/src/components/Tooltip/Simple.d.ts +4 -0
  91. package/dist/src/components/Tooltip/SpotlightOverlay.d.ts +7 -0
  92. package/dist/src/components/Tooltip/Tooltip.d.ts +22 -0
  93. package/dist/src/components/Tooltip/UserGuide.d.ts +12 -0
  94. package/dist/src/components/Tooltip/helpers.d.ts +2 -0
  95. package/dist/src/components/Tooltip/index.d.ts +5 -0
  96. package/dist/src/components/Tooltip/virtualElementReference.d.ts +9 -0
  97. package/dist/{components → src/components/Typography}/Heading.d.ts +11 -11
  98. package/dist/{components → src/components/Typography}/Text.d.ts +15 -15
  99. package/dist/src/components/Typography/index.d.ts +2 -0
  100. package/dist/src/foundations/shadow-token.d.ts +5 -0
  101. package/dist/src/foundations/spacing-token.d.ts +16 -0
  102. package/dist/src/index.d.ts +36 -0
  103. package/dist/src/themes/design-token.d.ts +126 -0
  104. package/dist/src/utils/keyCodes.d.ts +12 -0
  105. package/dist/{utils → src/utils}/noop.d.ts +1 -1
  106. package/dist/src/vite-env.d.ts +1 -0
  107. package/dist/style.css +1 -0
  108. package/dist/themes/dark.css +130 -0
  109. package/dist/themes/dark.css.map +1 -0
  110. package/dist/themes/legacy.css +131 -0
  111. package/dist/themes/legacy.css.map +1 -0
  112. package/dist/themes/light.css +130 -0
  113. package/dist/themes/light.css.map +1 -0
  114. package/package.json +51 -36
  115. package/dist/components/Alert.d.ts +0 -19
  116. package/dist/components/Alert.spec.d.ts +0 -1
  117. package/dist/components/Badge.d.ts +0 -6
  118. package/dist/components/Badge.spec.d.ts +0 -1
  119. package/dist/components/Button.spec.d.ts +0 -1
  120. package/dist/components/ButtonGroup.spec.d.ts +0 -1
  121. package/dist/components/Card.d.ts +0 -6
  122. package/dist/components/Card.spec.d.ts +0 -1
  123. package/dist/components/Checkbox.d.ts +0 -7
  124. package/dist/components/CheckboxField.d.ts +0 -7
  125. package/dist/components/CheckboxField.spec.d.ts +0 -1
  126. package/dist/components/FieldDescription.d.ts +0 -3
  127. package/dist/components/FieldError.d.ts +0 -3
  128. package/dist/components/FieldGroup.d.ts +0 -8
  129. package/dist/components/FieldGroup.spec.d.ts +0 -1
  130. package/dist/components/FieldLabel.d.ts +0 -3
  131. package/dist/components/Form.d.ts +0 -7
  132. package/dist/components/Form.spec.d.ts +0 -1
  133. package/dist/components/FormGroup.d.ts +0 -7
  134. package/dist/components/FormGroup.spec.d.ts +0 -1
  135. package/dist/components/Icon.d.ts +0 -69
  136. package/dist/components/Loader.spec.d.ts +0 -1
  137. package/dist/components/Modal/ActionModal.d.ts +0 -8
  138. package/dist/components/Modal/Modal.d.ts +0 -7
  139. package/dist/components/Modal/ModalBase.d.ts +0 -6
  140. package/dist/components/Modal/ModalBase.spec.d.ts +0 -1
  141. package/dist/components/Modal/ModalCloseButton.d.ts +0 -3
  142. package/dist/components/Modal/ModalPortal.d.ts +0 -7
  143. package/dist/components/ProgressBar.spec.d.ts +0 -1
  144. package/dist/components/ProgressCircle.d.ts +0 -9
  145. package/dist/components/ProgressCircle.spec.d.ts +0 -1
  146. package/dist/components/PromoBanner.spec.d.ts +0 -1
  147. package/dist/components/RadioButton.d.ts +0 -7
  148. package/dist/components/RadioButton.spec.d.ts +0 -1
  149. package/dist/components/Switch.spec.d.ts +0 -1
  150. package/dist/components/Tab.spec.d.ts +0 -1
  151. package/dist/components/TabsWrapper.spec.d.ts +0 -1
  152. package/dist/components/Toast.d.ts +0 -22
  153. package/dist/components/Toast.spec.d.ts +0 -1
  154. package/dist/components/ToastWrapper.d.ts +0 -26
  155. package/dist/components/ToastWrapper.spec.d.ts +0 -1
  156. package/dist/components/constants.d.ts +0 -12
  157. package/dist/constants/keyCodes.d.ts +0 -3
  158. package/dist/index.css +0 -2
  159. package/dist/index.css.map +0 -1
  160. package/dist/index.d.ts +0 -8
  161. package/dist/index.js +0 -2
  162. package/dist/index.js.map +0 -1
  163. package/dist/index.modern.js +0 -2
  164. package/dist/index.modern.js.map +0 -1
  165. package/dist/index.module.js +0 -2
  166. package/dist/index.module.js.map +0 -1
  167. package/dist/index.umd.js +0 -2
  168. package/dist/index.umd.js.map +0 -1
  169. package/dist/stories/Alert.stories.d.ts +0 -14
  170. package/dist/stories/Badge.stories.d.ts +0 -16
  171. package/dist/stories/Button.stories.d.ts +0 -20
  172. package/dist/stories/ButtonGroup.stories.d.ts +0 -18
  173. package/dist/stories/Card.stories.d.ts +0 -10
  174. package/dist/stories/CheckboxField.stories.d.ts +0 -9
  175. package/dist/stories/FieldGroup.stories.d.ts +0 -9
  176. package/dist/stories/Form.stories.d.ts +0 -6
  177. package/dist/stories/FormGroup.stories.d.ts +0 -9
  178. package/dist/stories/Icon.stories.d.ts +0 -14
  179. package/dist/stories/Loader.stories.d.ts +0 -8
  180. package/dist/stories/Modal.stories.d.ts +0 -19
  181. package/dist/stories/ProgressCircle.stories.d.ts +0 -13
  182. package/dist/stories/Progressbar.stories.d.ts +0 -13
  183. package/dist/stories/PromoBanner.stories.d.ts +0 -13
  184. package/dist/stories/RadioButton.stories.d.ts +0 -9
  185. package/dist/stories/Switch.stories.d.ts +0 -12
  186. package/dist/stories/Tab.stories.d.ts +0 -10
  187. package/dist/stories/TabsWrapper.stories.d.ts +0 -15
  188. package/dist/stories/Toast.stories.d.ts +0 -15
  189. package/dist/stories/ToastWrapper.stories.d.ts +0 -40
  190. package/dist/stories/foundations/components/ColorTokens.d.ts +0 -2
  191. package/dist/stories/foundations/components/IconsShowcase.d.ts +0 -6
  192. package/dist/test-utils.d.ts +0 -2
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface ModalBaseProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ onClose(): void;
4
+ closeOnEscPress?: boolean;
5
+ }
6
+ export declare const ModalBase: React.FC<ModalBaseProps>;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare type ModalCloseButtonProps = React.HTMLAttributes<HTMLButtonElement>;
3
+ export declare const ModalCloseButton: React.FC<ModalCloseButtonProps>;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface ModalPortalProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ children: React.ReactNode;
4
+ zIndex: number;
5
+ parentElementName?: string;
6
+ }
7
+ export declare const ModalPortal: React.FC<ModalPortalProps>;
@@ -0,0 +1,10 @@
1
+ export { ActionModal } from './ActionModal';
2
+ export { Modal } from './Modal';
3
+ export { ModalBase } from './ModalBase';
4
+ export { ModalCloseButton } from './ModalCloseButton';
5
+ export { ModalPortal } from './ModalPortal';
6
+ export type { ActionModalProps } from './ActionModal';
7
+ export type { ModalProps } from './Modal';
8
+ export type { ModalBaseProps } from './ModalBase';
9
+ export type { ModalCloseButtonProps } from './ModalCloseButton';
10
+ export type { ModalPortalProps } from './ModalPortal';
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ interface Props {
3
+ className?: string;
4
+ error?: string;
5
+ value: string;
6
+ max?: number;
7
+ min?: number;
8
+ disabled?: boolean;
9
+ noControls?: boolean;
10
+ onChange: (value: string) => void;
11
+ }
12
+ export declare type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & Props;
13
+ export declare const NumericInput: React.FC<NumericInputProps>;
14
+ export {};
@@ -0,0 +1 @@
1
+ export { NumericInput } from './NumericInput';
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { TriggerSize } from './Trigger';
3
+ import { IPickerListItem } from './PickerList';
4
+ export interface IPickerProps {
5
+ disabled?: boolean;
6
+ label?: string;
7
+ error?: string;
8
+ options: IPickerListItem[];
9
+ selectedOption?: IPickerListItem;
10
+ size?: TriggerSize;
11
+ placeholder?: string;
12
+ isRequired?: boolean;
13
+ noSearchResultText?: string;
14
+ searchDisabled?: boolean;
15
+ onSelect: (selectedItem: IPickerListItem | null) => void;
16
+ }
17
+ export declare const Picker: React.FC<IPickerProps>;
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { TriggerSize } from './Trigger';
3
+ export interface IPickerListItem {
4
+ key: string;
5
+ name: string;
6
+ groupHeader?: boolean;
7
+ disabled?: boolean;
8
+ }
9
+ export interface IPickerListProps {
10
+ isOpen: boolean;
11
+ items: IPickerListItem[];
12
+ selectedItem: IPickerListItem | null;
13
+ size?: TriggerSize;
14
+ emptyStateText?: string;
15
+ onClose: () => void;
16
+ onSelect: (item: IPickerListItem) => void;
17
+ }
18
+ export declare const PickerList: React.FC<IPickerListProps>;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ export declare type TriggerSize = 'compact' | 'medium' | 'large';
3
+ export interface ITriggerProps {
4
+ isSearchDisabled: boolean;
5
+ isDisabled?: boolean;
6
+ isError?: boolean;
7
+ isItemSelected: boolean;
8
+ isOpen: boolean;
9
+ isRequired?: boolean;
10
+ size?: TriggerSize;
11
+ onClick: () => void;
12
+ onClearClick: () => void;
13
+ onFilter: (text: string) => void;
14
+ }
15
+ export declare const Trigger: React.FC<ITriggerProps>;
@@ -0,0 +1 @@
1
+ export * from './Picker';
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { Placement } from '@floating-ui/react-dom';
3
+ export interface IPopoverProps {
4
+ children?: React.ReactNode;
5
+ className?: string;
6
+ placement?: Placement;
7
+ isVisible?: boolean;
8
+ triggerRenderer: () => React.ReactNode;
9
+ }
10
+ export declare const Popover: React.FC<IPopoverProps>;
@@ -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 ProgressBar: React.ExoticComponent<IProps & React.RefAttributes<HTMLInputElement>>;
1
+ import * as React from 'react';
2
+ import { ProgressSize, ProgressStatus } from './constants';
3
+ export interface ProgressBarProps {
4
+ className?: string;
5
+ percent: number;
6
+ status?: ProgressStatus;
7
+ size?: ProgressSize;
8
+ }
9
+ export declare const ProgressBar: React.ExoticComponent<ProgressBarProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { ProgressSize, ProgressStatus } from './constants';
3
+ export interface ProgressCircleProps {
4
+ className?: string;
5
+ progressValue: number;
6
+ status?: ProgressStatus;
7
+ size?: ProgressSize;
8
+ }
9
+ export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,4 @@
1
+ export declare type ProgressStatus = 'normal' | 'error' | 'success';
2
+ export declare type ProgressSize = 'small' | 'medium' | 'large';
3
+ export declare const PROGRESS_STATUSES: ProgressStatus[];
4
+ 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,2 @@
1
+ export { ProgressCircle } from './ProgressCircle';
2
+ export { ProgressBar } from './ProgressBar';
@@ -1,19 +1,13 @@
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 interface PromoBannerProps {
3
+ className?: string;
4
+ buttonText?: string;
5
+ header: string;
6
+ img?: string;
7
+ light?: boolean;
8
+ linkText?: string;
9
+ onButtonClick?: () => void;
10
+ onClose?: () => void;
11
+ onLinkClick?: () => void;
12
+ }
13
+ 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?: string;
4
+ checked?: boolean;
5
+ disabled?: boolean;
6
+ }
7
+ export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export { RadioButton } from './RadioButton';
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export declare const enum SearchSize {
3
+ Compact = "compact",
4
+ Medium = "medium",
5
+ Large = "large"
6
+ }
7
+ export interface ISearchInputProps {
8
+ isCollapsable?: boolean;
9
+ isDisabled?: boolean;
10
+ isLoading?: boolean;
11
+ placeholder?: string;
12
+ size?: SearchSize;
13
+ value?: string;
14
+ onChange: (value: string) => void;
15
+ }
16
+ export declare const SearchInput: React.FC<ISearchInputProps>;
@@ -0,0 +1 @@
1
+ export { SearchInput } from './Search';
@@ -1,17 +1,16 @@
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 baseClass = "switch";
3
+ export declare type SwitchSize = 'compact' | 'medium' | 'large';
4
+ export declare type SwitchState = 'regular' | 'loading' | 'locked';
5
+ export interface SwitchProps {
6
+ className?: string;
7
+ defaultOn?: boolean;
8
+ disabled?: boolean;
9
+ innerRef?: React.LegacyRef<HTMLInputElement> | undefined;
10
+ name?: string;
11
+ on?: boolean;
12
+ onChange?(e: React.FormEvent, value: boolean): void;
13
+ size?: SwitchSize;
14
+ state?: SwitchState;
15
+ }
16
+ 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,16 @@
1
+ import * as React from 'react';
2
+ declare type ToastKind = 'success' | 'warning' | 'error' | 'info';
3
+ declare type ToastAction = {
4
+ onClick: () => void;
5
+ label: string;
6
+ closesOnClick?: boolean;
7
+ };
8
+ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
9
+ action?: ToastAction;
10
+ className?: string;
11
+ removable?: boolean;
12
+ kind?: ToastKind;
13
+ onClose?: () => void;
14
+ }
15
+ export declare const Toast: React.FC<ToastProps>;
16
+ export {};
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ import { ToastProps, Toast } from './Toast';
3
+ declare type HorizontalPosition = 'left' | 'center' | 'right';
4
+ declare type VerticalPosition = 'top' | 'bottom';
5
+ export declare const ANIMATION_TIME = 200;
6
+ interface Toast extends ToastProps {
7
+ id: string;
8
+ content: React.ReactElement | string;
9
+ }
10
+ export interface ToastWrapperProps {
11
+ className?: string;
12
+ toasts: Toast[];
13
+ fixed?: boolean;
14
+ block?: boolean;
15
+ animationType?: string;
16
+ verticalPosition?: VerticalPosition;
17
+ horizontalPosition?: HorizontalPosition;
18
+ }
19
+ export declare const ToastWrapper: React.FC<ToastWrapperProps>;
20
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './Toast';
2
+ export * from './ToastWrapper';
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export declare const Info: React.FC<{
3
+ header: string;
4
+ text: string;
5
+ closeWithX?: boolean;
6
+ theme?: string;
7
+ handleCloseAction?: (ev: React.MouseEvent) => void;
8
+ }>;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export declare const Interactive: React.FC<{
3
+ header: string;
4
+ text: string;
5
+ image?: {
6
+ src: string;
7
+ alt: string;
8
+ };
9
+ closeWithX?: boolean;
10
+ theme?: 'invert' | 'important';
11
+ handleClickPrimary: () => void;
12
+ handleClickSecondary: () => void;
13
+ handleCloseAction?: (ev: React.MouseEvent) => void;
14
+ }>;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export declare const Simple: React.FC<{
3
+ text: string;
4
+ }>;
@@ -0,0 +1,7 @@
1
+ declare const SpotlightOverlay: ({ gap, isVisible, slide, disablePointerEvents, }: {
2
+ gap: DOMRect | null;
3
+ isVisible: boolean;
4
+ slide: boolean;
5
+ disablePointerEvents: boolean;
6
+ }) => JSX.Element | null;
7
+ export default SpotlightOverlay;
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { Placement, VirtualElement } from '@floating-ui/react-dom';
3
+ export interface ITooltipProps {
4
+ children?: React.ReactNode;
5
+ className?: string;
6
+ theme?: 'invert' | 'important' | undefined;
7
+ placement?: Placement;
8
+ isVisible?: boolean;
9
+ withFadeAnimation?: boolean;
10
+ transitionDuration?: number;
11
+ transitionDelay?: number;
12
+ hoverOutDelayTimeout?: number;
13
+ offsetMainAxis?: number;
14
+ triggerOnClick?: boolean;
15
+ arrowOffsetY?: number;
16
+ arrowOffsetX?: number;
17
+ triggerRenderer: () => React.ReactNode;
18
+ referenceElement?: VirtualElement;
19
+ onOpen?: () => void;
20
+ onClose?: () => void;
21
+ }
22
+ export declare const Tooltip: React.FC<ITooltipProps>;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { ModalPortalProps } from '../Modal/';
3
+ import { ITooltipProps } from './Tooltip';
4
+ interface IOwnProps {
5
+ shouldSlide?: boolean;
6
+ className?: string;
7
+ disableSpotlightPointerEvents?: boolean;
8
+ }
9
+ interface IUserGuide extends IOwnProps, ITooltipProps, Omit<ModalPortalProps, 'children'> {
10
+ }
11
+ export declare const UserGuide: React.FC<IUserGuide>;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ import { IconKind } from '../Icon';
2
+ export declare function getIconType(theme: string): IconKind;
@@ -0,0 +1,5 @@
1
+ export { Tooltip } from './Tooltip';
2
+ export { Simple } from './Simple';
3
+ export { Info } from './Info';
4
+ export { Interactive } from './Interactive';
5
+ export { UserGuide } from './UserGuide';
@@ -0,0 +1,9 @@
1
+ export default class VirtualReference {
2
+ element: Element;
3
+ padding: number;
4
+ constructor(element: Element, padding: number);
5
+ addPadding(rect: DOMRect): Omit<DOMRect, 'toJSON'>;
6
+ getBoundingClientRect(): Omit<DOMRect, 'toJSON'>;
7
+ get clientWidth(): number;
8
+ get clientHeight(): number;
9
+ }
@@ -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,5 @@
1
+ export declare const ShadowToken: {
2
+ Float: string;
3
+ PopOver: string;
4
+ Modal: string;
5
+ };
@@ -0,0 +1,16 @@
1
+ export declare const SpacingToken: {
2
+ Spacing0: string;
3
+ Spacing05: string;
4
+ Spacing1: string;
5
+ Spacing2: string;
6
+ Spacing3: string;
7
+ Spacing4: string;
8
+ Spacing5: string;
9
+ Spacing6: string;
10
+ Spacing8: string;
11
+ Spacing12: string;
12
+ Spacing16: string;
13
+ Spacing18: string;
14
+ Spacing20: string;
15
+ Spacing24: string;
16
+ };