@livechat/design-system-react-components 1.0.0-alpha.5 → 1.0.0-alpha.51

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 (108) hide show
  1. package/dist/dsrc.cjs.js +15 -1
  2. package/dist/dsrc.es.js +3194 -994
  3. package/dist/dsrc.umd.js +15 -1
  4. package/dist/shadow/shadow.css +39 -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 +39 -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 +4 -14
  13. package/dist/src/components/Avatar/Avatar.d.ts +19 -0
  14. package/dist/src/components/Avatar/Avatar.helpers.d.ts +2 -0
  15. package/dist/src/components/Avatar/index.d.ts +1 -0
  16. package/dist/src/components/Badge/Badge.d.ts +6 -2
  17. package/dist/src/components/Badge/Badge.helpers.d.ts +1 -0
  18. package/dist/src/components/Button/Button.d.ts +13 -5
  19. package/dist/src/components/Button/index.d.ts +1 -1
  20. package/dist/src/components/Card/Card.d.ts +8 -2
  21. package/dist/src/components/Checkbox/Checkbox.d.ts +3 -3
  22. package/dist/src/components/Checkbox/index.d.ts +0 -1
  23. package/dist/src/components/DatePicker/DatePicker.d.ts +4 -0
  24. package/dist/src/components/DatePicker/DatePickerNavbar.d.ts +4 -0
  25. package/dist/src/components/DatePicker/RangeDatePicker.d.ts +16 -0
  26. package/dist/src/components/DatePicker/helpers.d.ts +39 -0
  27. package/dist/src/components/DatePicker/hooks.d.ts +6 -0
  28. package/dist/src/components/DatePicker/index.d.ts +2 -0
  29. package/dist/src/components/DatePicker/types.d.ts +100 -0
  30. package/dist/src/components/FieldGroup/FieldGroup.d.ts +1 -1
  31. package/dist/src/components/FileUploadProgress/FileUploadProgress.d.ts +15 -0
  32. package/dist/src/components/FileUploadProgress/FileUploadProgressActions.d.ts +9 -0
  33. package/dist/src/components/FileUploadProgress/index.d.ts +2 -0
  34. package/dist/src/components/Form/Form.d.ts +1 -1
  35. package/dist/src/components/{TextField/TextField.d.ts → FormField/FormField.d.ts} +2 -2
  36. package/dist/src/components/FormField/index.d.ts +1 -0
  37. package/dist/src/components/FormGroup/FormGroup.d.ts +1 -1
  38. package/dist/src/components/Icon/Icon.d.ts +6 -62
  39. package/dist/src/components/Icon/index.d.ts +1 -1
  40. package/dist/src/components/Input/Input.d.ts +14 -0
  41. package/dist/src/components/Input/index.d.ts +1 -0
  42. package/dist/src/components/Modal/Modal.d.ts +2 -0
  43. package/dist/src/components/Modal/ModalBase.d.ts +2 -1
  44. package/dist/src/components/Modal/ModalCloseButton.d.ts +4 -1
  45. package/dist/src/components/Modal/ModalPortal.d.ts +1 -1
  46. package/dist/src/components/Modal/index.d.ts +0 -2
  47. package/dist/src/components/NumericInput/index.d.ts +0 -1
  48. package/dist/src/components/Picker/Picker.d.ts +23 -0
  49. package/dist/src/components/Picker/PickerList.d.ts +23 -0
  50. package/dist/src/components/Picker/Trigger.d.ts +15 -0
  51. package/dist/src/components/Picker/TriggerBody.d.ts +16 -0
  52. package/dist/src/components/Picker/constants.d.ts +21 -0
  53. package/dist/src/components/Picker/index.d.ts +2 -0
  54. package/dist/src/components/Popover/Popover.d.ts +4 -7
  55. package/dist/src/components/Progress/ProgressBar.d.ts +9 -0
  56. package/dist/src/components/Progress/ProgressCircle.d.ts +1 -1
  57. package/dist/src/components/Progress/constants.d.ts +2 -10
  58. package/dist/src/components/Progress/index.d.ts +1 -0
  59. package/dist/src/components/PromoBanner/PromoBanner.d.ts +1 -7
  60. package/dist/src/components/RadioButton/RadioButton.d.ts +2 -2
  61. package/dist/src/components/Search/Search.d.ts +12 -0
  62. package/dist/src/components/Search/index.d.ts +1 -0
  63. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +18 -0
  64. package/dist/src/components/SegmentedControl/index.d.ts +2 -0
  65. package/dist/src/components/Switch/Switch.d.ts +5 -8
  66. package/dist/src/components/Tab/Tab.d.ts +5 -2
  67. package/dist/src/components/Tag/Tag.d.ts +5 -3
  68. package/dist/src/components/TagInput/TagInput.d.ts +1 -0
  69. package/dist/src/components/Textarea/Textarea.d.ts +6 -0
  70. package/dist/src/components/Textarea/index.d.ts +1 -0
  71. package/dist/src/components/Toast/Toast.d.ts +8 -14
  72. package/dist/src/components/Toast/ToastWrapper.d.ts +2 -9
  73. package/dist/src/components/Tooltip/Info.d.ts +8 -0
  74. package/dist/src/components/Tooltip/Interactive.d.ts +23 -0
  75. package/dist/src/components/Tooltip/Simple.d.ts +4 -0
  76. package/dist/src/components/Tooltip/SpotlightOverlay.d.ts +7 -0
  77. package/dist/src/components/Tooltip/Tooltip.d.ts +22 -0
  78. package/dist/src/components/Tooltip/UserGuide.d.ts +12 -0
  79. package/dist/src/components/Tooltip/helpers.d.ts +2 -0
  80. package/dist/src/components/Tooltip/index.d.ts +5 -0
  81. package/dist/src/components/Tooltip/virtualElementReference.d.ts +9 -0
  82. package/dist/src/components/Typography/Heading.d.ts +1 -1
  83. package/dist/src/components/Typography/Text.d.ts +1 -1
  84. package/dist/src/components/UploadBar/UploadBar.d.ts +16 -0
  85. package/dist/src/components/UploadBar/index.d.ts +1 -0
  86. package/dist/src/foundations/shadow-token.d.ts +5 -0
  87. package/dist/src/foundations/spacing-token.d.ts +16 -0
  88. package/dist/src/global.d.ts +4 -0
  89. package/dist/src/index.d.ts +16 -4
  90. package/dist/src/themes/{designTokens.d.ts → design-token.d.ts} +104 -4
  91. package/dist/src/utils/constants.d.ts +1 -0
  92. package/dist/src/utils/index.d.ts +1 -0
  93. package/dist/style.css +1 -1
  94. package/dist/themes/dark.css +145 -21
  95. package/dist/themes/dark.css.map +1 -1
  96. package/dist/themes/legacy.css +133 -9
  97. package/dist/themes/legacy.css.map +1 -1
  98. package/dist/themes/light.css +133 -9
  99. package/dist/themes/light.css.map +1 -1
  100. package/package.json +23 -13
  101. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +0 -11
  102. package/dist/src/components/ButtonGroup/index.d.ts +0 -1
  103. package/dist/src/components/Checkbox/CheckboxField.d.ts +0 -7
  104. package/dist/src/components/InputField/InputField.d.ts +0 -15
  105. package/dist/src/components/InputField/index.d.ts +0 -1
  106. package/dist/src/components/Modal/ActionModal.d.ts +0 -8
  107. package/dist/src/components/NumericInput/NumericInputField.d.ts +0 -19
  108. package/dist/src/components/TextField/index.d.ts +0 -1
@@ -0,0 +1,9 @@
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>>;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { ProgressSize, ProgressStatus } from './constants';
3
3
  export interface ProgressCircleProps {
4
4
  className?: string;
5
- percent: number;
5
+ progressValue: number;
6
6
  status?: ProgressStatus;
7
7
  size?: ProgressSize;
8
8
  }
@@ -1,12 +1,4 @@
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
- }
1
+ export declare type ProgressStatus = 'normal' | 'error' | 'success';
2
+ export declare type ProgressSize = 'small' | 'medium' | 'large';
11
3
  export declare const PROGRESS_STATUSES: ProgressStatus[];
12
4
  export declare const PROGRESS_SIZES: ProgressSize[];
@@ -1 +1,2 @@
1
1
  export { ProgressCircle } from './ProgressCircle';
2
+ export { ProgressBar } from './ProgressBar';
@@ -1,9 +1,4 @@
1
1
  import * as React from 'react';
2
- export declare const enum PromoBannerSize {
3
- Small = "small",
4
- Medium = "medium",
5
- Large = "large"
6
- }
7
2
  export interface PromoBannerProps {
8
3
  className?: string;
9
4
  buttonText?: string;
@@ -11,9 +6,8 @@ export interface PromoBannerProps {
11
6
  img?: string;
12
7
  light?: boolean;
13
8
  linkText?: string;
14
- size?: PromoBannerSize;
15
9
  onButtonClick?: () => void;
16
10
  onClose?: () => void;
17
11
  onLinkClick?: () => void;
18
12
  }
19
- export declare const PromoBanner: React.FC<PromoBannerProps>;
13
+ export declare const PromoBanner: React.FC<React.PropsWithChildren<PromoBannerProps>>;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export interface RadioButtonProps extends React.HTMLAttributes<HTMLInputElement> {
3
- description?: React.ReactNode;
3
+ description?: string;
4
4
  checked?: boolean;
5
5
  disabled?: boolean;
6
6
  }
7
- export declare const RadioButton: React.FC<RadioButtonProps>;
7
+ export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ export interface ISearchInputProps {
3
+ isCollapsable?: boolean;
4
+ isDisabled?: boolean;
5
+ isLoading?: boolean;
6
+ placeholder?: string;
7
+ size?: 'compact' | 'medium' | 'large';
8
+ value: string;
9
+ className?: string;
10
+ onChange: (value: string) => void;
11
+ }
12
+ export declare const SearchInput: React.FC<ISearchInputProps>;
@@ -0,0 +1 @@
1
+ export { SearchInput } from './Search';
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ import { ButtonProps } from '../Button';
3
+ export declare type ButtonSize = 'compact' | 'medium' | 'large';
4
+ declare type ButtonElement = {
5
+ id: string;
6
+ label: string;
7
+ } & Pick<ButtonProps, 'disabled' | 'loading' | 'icon'>;
8
+ export interface SegmentedControlProps extends React.HTMLAttributes<HTMLDivElement> {
9
+ className?: string;
10
+ buttons: ButtonElement[];
11
+ fullWidth?: boolean;
12
+ size?: ButtonSize;
13
+ initialId?: string;
14
+ currentId?: string;
15
+ onButtonClick?: (id: string, event: React.MouseEvent<HTMLElement>) => void;
16
+ }
17
+ export declare const SegmentedControl: React.FC<SegmentedControlProps>;
18
+ export {};
@@ -0,0 +1,2 @@
1
+ export { SegmentedControl } from './SegmentedControl';
2
+ export type { SegmentedControlProps } from './SegmentedControl';
@@ -1,13 +1,9 @@
1
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
- }
2
+ export declare const baseClass = "switch";
3
+ export declare type SwitchSize = 'compact' | 'medium' | 'large';
4
+ export declare type SwitchState = 'regular' | 'loading' | 'locked';
10
5
  export interface SwitchProps {
6
+ ariaLabel?: string;
11
7
  className?: string;
12
8
  defaultOn?: boolean;
13
9
  disabled?: boolean;
@@ -16,5 +12,6 @@ export interface SwitchProps {
16
12
  on?: boolean;
17
13
  onChange?(e: React.FormEvent, value: boolean): void;
18
14
  size?: SwitchSize;
15
+ state?: SwitchState;
19
16
  }
20
17
  export declare const Switch: React.FC<SwitchProps>;
@@ -1,12 +1,15 @@
1
1
  import * as React from 'react';
2
+ import { Size } from 'utils';
2
3
  declare type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
3
4
  href: string;
4
5
  }) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
5
6
  href?: never;
6
7
  });
7
8
  export declare type TabProps = HTMLProps & {
8
- description?: React.ReactNode;
9
+ count?: number;
9
10
  isSelected?: boolean;
11
+ asBadge?: boolean;
12
+ size?: Size;
10
13
  };
11
- export declare const Tab: React.FC<TabProps>;
14
+ export declare const Tab: React.FC<React.PropsWithChildren<TabProps>>;
12
15
  export {};
@@ -1,12 +1,14 @@
1
1
  import * as React from 'react';
2
+ import { IconSize, IconSource } from '../Icon';
2
3
  export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
3
- kind?: 'default' | 'info' | 'warning' | 'success' | 'error';
4
+ kind?: 'default' | 'info' | 'warning' | 'success' | 'error' | 'purple' | 'black';
4
5
  size?: 'medium' | 'large';
6
+ iconSize?: IconSize;
5
7
  customColor?: string;
6
8
  dismissible?: boolean;
7
9
  outline?: boolean;
8
10
  onRemove?(): void;
9
- icon?: React.FC<React.SVGProps<SVGSVGElement>> | string;
11
+ icon?: IconSource;
10
12
  avatar?: string;
11
13
  }
12
- export declare const Tag: React.FC<TagProps>;
14
+ export declare const Tag: React.FC<React.PropsWithChildren<TagProps>>;
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare type Tags = string[];
3
3
  export interface TagInputProps {
4
+ id?: string;
4
5
  error?: string;
5
6
  tags?: Tags;
6
7
  onChange: (tags: Tags) => void;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ className?: string;
4
+ error?: boolean;
5
+ }
6
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1 @@
1
+ export { Textarea } from './Textarea';
@@ -1,22 +1,16 @@
1
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;
2
+ declare type ToastKind = 'success' | 'warning' | 'error' | 'info';
3
+ declare type ToastAction = {
4
+ onClick: () => void;
11
5
  label: string;
12
- closeOnClick?: boolean;
13
- }
14
- export interface ToastProps {
6
+ closesOnClick?: boolean;
7
+ };
8
+ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
15
9
  action?: ToastAction;
16
10
  className?: string;
17
11
  removable?: boolean;
18
- variant?: Variants;
12
+ kind?: ToastKind;
19
13
  onClose?: () => void;
20
14
  }
21
- export declare const Toast: React.FC<ToastProps>;
15
+ export declare const Toast: React.FC<React.PropsWithChildren<ToastProps>>;
22
16
  export {};
@@ -1,14 +1,7 @@
1
1
  import * as React from 'react';
2
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
- }
3
+ declare type HorizontalPosition = 'left' | 'center' | 'right';
4
+ declare type VerticalPosition = 'top' | 'bottom';
12
5
  export declare const ANIMATION_TIME = 200;
13
6
  interface Toast extends ToastProps {
14
7
  id: string;
@@ -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,23 @@
1
+ import * as React from 'react';
2
+ import { ButtonKind } from '../Button';
3
+ export declare const Interactive: React.FC<{
4
+ header?: string;
5
+ text: string;
6
+ image?: {
7
+ src: string;
8
+ alt: string;
9
+ };
10
+ closeWithX?: boolean;
11
+ theme?: 'invert' | 'important';
12
+ handleCloseAction?: (ev: React.MouseEvent) => void;
13
+ primaryButton: {
14
+ handleClick: () => void;
15
+ label: string;
16
+ kind?: ButtonKind;
17
+ };
18
+ secondaryButton: {
19
+ handleClick: () => void;
20
+ label: string;
21
+ kind?: ButtonKind;
22
+ };
23
+ }>;
@@ -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
+ }
@@ -7,5 +7,5 @@ interface IProps {
7
7
  /** Optional custom className */
8
8
  className?: string;
9
9
  }
10
- export declare const Heading: React.FC<IProps>;
10
+ export declare const Heading: React.FC<React.PropsWithChildren<IProps>>;
11
11
  export {};
@@ -11,5 +11,5 @@ interface IProps {
11
11
  underline?: boolean;
12
12
  strike?: boolean;
13
13
  }
14
- export declare const Text: React.FC<IProps>;
14
+ export declare const Text: React.FC<React.PropsWithChildren<IProps>>;
15
15
  export {};
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { ProgressStatus, ProgressSize } from '../Progress/constants';
3
+ export interface UploadBarProps {
4
+ className?: string;
5
+ progressValue: number;
6
+ title: string;
7
+ isExpanded?: boolean;
8
+ errorMessage?: string;
9
+ status?: ProgressStatus;
10
+ icon?: React.ReactNode;
11
+ size?: ProgressSize;
12
+ mode?: 'single' | 'multiple';
13
+ onCloseButtonClick?: () => void;
14
+ onRetryButtonClick?: () => void;
15
+ }
16
+ export declare const UploadBar: React.FC<React.PropsWithChildren<UploadBarProps>>;
@@ -0,0 +1 @@
1
+ export * from './UploadBar';
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ declare module '*.mdx' {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -1,29 +1,41 @@
1
- export { DesignTokens } from './themes/designTokens';
1
+ export { DesignToken } from './themes/design-token';
2
+ export { SpacingToken } from './foundations/spacing-token';
3
+ export { ShadowToken } from './foundations/shadow-token';
4
+ export type { Size } from './utils';
2
5
  export * from './components/Alert';
6
+ export * from './components/Avatar';
3
7
  export * from './components/Badge';
4
8
  export * from './components/Button';
5
- export * from './components/ButtonGroup';
9
+ export * from './components/SegmentedControl';
6
10
  export * from './components/Card';
7
11
  export * from './components/Checkbox';
12
+ export * from './components/DatePicker';
8
13
  export * from './components/FieldDescription';
9
14
  export * from './components/FieldError';
10
15
  export * from './components/FieldGroup';
11
16
  export * from './components/Form';
17
+ export * from './components/FormField';
12
18
  export * from './components/FormGroup';
13
19
  export * from './components/Icon';
14
- export * from './components/InputField';
20
+ export * from './components/Input';
15
21
  export * from './components/Link';
16
22
  export * from './components/Loader';
17
23
  export * from './components/Modal';
18
24
  export * from './components/NumericInput';
25
+ export * from './components/Picker';
19
26
  export * from './components/Popover';
20
27
  export * from './components/Progress';
21
28
  export * from './components/PromoBanner';
22
29
  export * from './components/RadioButton';
30
+ export * from './components/Search';
23
31
  export * from './components/Switch';
24
32
  export * from './components/Tab';
25
33
  export * from './components/Tag';
26
34
  export * from './components/TagInput';
27
- export * from './components/TextField';
35
+ export * from './components/FormField';
28
36
  export * from './components/Toast';
37
+ export * from './components/Tooltip';
29
38
  export * from './components/Typography';
39
+ export * from './components/Textarea';
40
+ export * from './components/FileUploadProgress';
41
+ export * from './components/UploadBar';
@@ -1,51 +1,142 @@
1
- export declare const DesignTokens: {
1
+ export declare const DesignToken: {
2
2
  Background: string;
3
+ Background01: string;
4
+ Background02: string;
5
+ Background03: string;
3
6
  SurfaceBasicDefault: string;
7
+ SurfacePrimaryDefault: string;
4
8
  SurfaceBasicSubtle: string;
9
+ SurfaceSecondaryDefault: string;
10
+ SurfaceSecondaryHover: string;
11
+ SurfaceSecondaryActive: string;
12
+ SurfaceSecondaryDisabled: string;
5
13
  SurfaceBasicHover: string;
14
+ SurfacePrimaryHover: string;
6
15
  SurfaceBasicActive: string;
16
+ SurfacePrimaryActive: string;
17
+ SurfacePrimaryActiveColored: string;
7
18
  SurfaceBasicDisabled: string;
8
- SurfaceSecondaryDefault: string;
19
+ SurfacePrimaryDisabled: string;
20
+ SurfaceTertiaryDefault: string;
9
21
  SurfaceSecondarySubtle: string;
10
- SurfaceSecondaryHover: string;
11
- SurfaceSecondaryDisabled: string;
22
+ SurfaceModerateDefault: string;
23
+ SurfaceModerateHover: string;
24
+ SurfaceModerateActive: string;
25
+ SurfaceTertiaryHover: string;
26
+ SurfaceTertiaryActive: string;
27
+ SurfaceTertiaryDisabled: string;
12
28
  SurfaceFeedbackInfo: string;
29
+ SurfaceAccentEmphasisLowInfo: string;
13
30
  SurfaceFeedbackNegative: string;
31
+ SurfaceAccentEmphasisLowNegative: string;
14
32
  SurfaceFeedbackWarning: string;
33
+ SurfaceAccentEmphasisLowWarning: string;
15
34
  SurfaceFeedbackPositive: string;
35
+ SurfaceAccentEmphasisLowPositive: string;
36
+ SurfaceAccentEmphasisLowPurple: string;
37
+ SurfaceAccentEmphasisMinInfo: string;
38
+ SurfaceAccentEmphasisMinNegative: string;
39
+ SurfaceAccentEmphasisMinWarning: string;
40
+ SurfaceAccentEmphasisMinPositive: string;
41
+ SurfaceAccentEmphasisMinPurple: string;
16
42
  SurfaceInvertDefault: string;
43
+ SurfaceInvertPrimary: string;
17
44
  SurfaceInvertSubtle: string;
45
+ SurfaceInvertSecondary: string;
18
46
  SurfaceInvertDisabled: string;
47
+ SurfaceLockedDefault: string;
48
+ SurfaceLockedHover: string;
49
+ SurfaceLockedActive: string;
50
+ SurfaceLockedDisabled: string;
51
+ SurfaceLockedWhite: string;
52
+ SurfaceLockedBlack: string;
53
+ SurfaceAccentEmphasisHighInfo: string;
54
+ SurfaceAccentEmphasisHighNegative: string;
55
+ SurfaceAccentEmphasisHighWarning: string;
56
+ SurfaceAccentEmphasisHighPositive: string;
57
+ SurfaceAccentEmphasisHighPurple: string;
19
58
  SurfaceOverlay: string;
59
+ SurfaceOtherOverlay: string;
60
+ SurfaceOtherAgent: string;
61
+ SurfaceOtherSkeleton: string;
20
62
  ContentDefault: string;
63
+ ContentBasicPrimary: string;
21
64
  ContentSubtle: string;
65
+ ContentBasicSecondary: string;
22
66
  ContentDisabled: string;
67
+ ContentBasicDisabled: string;
68
+ ContentBasicNegative: string;
69
+ ContentBasicWarning: string;
70
+ ContentBasicPositive: string;
71
+ ContentBasicInfo: string;
72
+ ContentBasicPurple: string;
73
+ ContentBasicGradient01: string;
23
74
  ContentWhiteLocked: string;
75
+ ContentLockedWhite: string;
76
+ ContentBlackLocked: string;
77
+ ContentLockedBlack: string;
78
+ ContentLockedDefault: string;
79
+ ContentLockedHover: string;
80
+ ContentLockedActive: string;
81
+ ContentLockedDisabled: string;
24
82
  ContentInvertDefault: string;
83
+ ContentInvertPrimary: string;
25
84
  ContentInvertSubtle: string;
85
+ ContentInvertSecondary: string;
26
86
  ContentInvertDisabled: string;
87
+ ContentInvertGradient01: string;
27
88
  BorderDefault: string;
89
+ BorderBasicPrimary: string;
90
+ BorderBasicSecondary: string;
28
91
  BorderSubtle: string;
92
+ BorderBasicTertiary: string;
29
93
  BorderHover: string;
94
+ BorderBasicHover: string;
30
95
  BorderDisabled: string;
96
+ BorderBasicDisabled: string;
97
+ BorderBasicNegative: string;
98
+ BorderBasicWarning: string;
99
+ BorderBasicPositive: string;
100
+ BorderBasicInfo: string;
101
+ BorderBasicPurple: string;
31
102
  BorderInvertDefault: string;
103
+ BorderInvertPrimary: string;
32
104
  BorderInvertSubtle: string;
105
+ BorderInvertSecondary: string;
33
106
  BorderInvertHover: string;
34
107
  BorderInvertDisabled: string;
35
108
  ColorActionActive: string;
109
+ ActionPrimaryActive: string;
36
110
  ColorActionHover: string;
111
+ ActionPrimaryHover: string;
37
112
  ColorActionDefault: string;
113
+ ActionPrimaryDefault: string;
114
+ ColorActionDefaultRgb: string;
38
115
  ColorActionDisabled: string;
116
+ ActionPrimaryDisabled: string;
39
117
  ColorNegativeActive: string;
118
+ ActionNegativeActive: string;
40
119
  ColorNegativeHover: string;
120
+ ActionNegativeHover: string;
41
121
  ColorNegativeDefault: string;
122
+ ActionNegativeDefault: string;
42
123
  ColorNegativeDisabled: string;
124
+ ActionNegativeDisabled: string;
43
125
  ColorWarningDefault: string;
126
+ ActionWarningDefault: string;
44
127
  ColorWarningHover: string;
128
+ ActionWarningHover: string;
45
129
  ColorPositiveDefault: string;
130
+ ActionPositiveDefault: string;
46
131
  ColorPositiveHover: string;
132
+ ActionPositiveHover: string;
47
133
  ColorPositiveDisabled: string;
134
+ ActionPositiveDisabled: string;
135
+ ActionNeutralDefault: string;
136
+ ActionNeutralHover: string;
137
+ ActionNeutralDisabled: string;
48
138
  ColorBot: string;
139
+ SurfaceOtherBot: string;
49
140
  ColorBlack: string;
50
141
  ColorWhite: string;
51
142
  DecorBlue900: string;
@@ -123,4 +214,13 @@ export declare const DesignTokens: {
123
214
  DecorPurple200: string;
124
215
  DecorPurple100: string;
125
216
  DecorPurple50: string;
217
+ ProductsLivechat: string;
218
+ ProductsHelpdesk: string;
219
+ ProductsChatbot: string;
220
+ ProductsKnowledgebase: string;
221
+ IllustrationsPrimary: string;
222
+ IllustrationsSecondary: string;
223
+ IllustrationsStroke: string;
224
+ TagSurface01: string;
225
+ TagContent01: string;
126
226
  };
@@ -0,0 +1 @@
1
+ export declare type Size = 'compact' | 'medium' | 'large';
@@ -0,0 +1 @@
1
+ export type { Size } from './constants';