@livechat/design-system-react-components 2.0.0-alpha.3 → 2.0.0-alpha.5

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 (67) hide show
  1. package/dist/components/ActionBar/types.d.ts +1 -2
  2. package/dist/components/AppFrame/AppFrame.d.ts +3 -0
  3. package/dist/components/AppFrame/components/ExpirationCounter/ExpirationCounter.d.ts +21 -0
  4. package/dist/components/AppFrame/components/Navigation/Navigation.d.ts +3 -0
  5. package/dist/components/AppFrame/components/Navigation/types.d.ts +8 -0
  6. package/dist/components/AppFrame/components/NavigationGroup/NavigationGroup.d.ts +3 -0
  7. package/dist/components/AppFrame/components/NavigationGroup/types.d.ts +16 -0
  8. package/dist/components/AppFrame/components/NavigationItem/NavigationItem.d.ts +3 -0
  9. package/dist/components/AppFrame/components/NavigationItem/types.d.ts +40 -0
  10. package/dist/components/AppFrame/components/NavigationTopBar/NavigationTopBar.d.ts +45 -0
  11. package/dist/components/AppFrame/components/NavigationTopBar/examples.d.ts +15 -0
  12. package/dist/components/AppFrame/components/NavigationTopBar/types.d.ts +59 -0
  13. package/dist/components/AppFrame/components/SideNavigation/SideNavigation.d.ts +3 -0
  14. package/dist/components/AppFrame/components/SideNavigation/types.d.ts +28 -0
  15. package/dist/components/AppFrame/components/SideNavigationGroup/SideNavigationGroup.d.ts +3 -0
  16. package/dist/components/AppFrame/components/SideNavigationGroup/types.d.ts +32 -0
  17. package/dist/components/AppFrame/components/SideNavigationItem/SideNavigationItem.d.ts +3 -0
  18. package/dist/components/AppFrame/components/SideNavigationItem/constants.d.ts +3 -0
  19. package/dist/components/AppFrame/components/SideNavigationItem/types.d.ts +44 -0
  20. package/dist/components/AppFrame/components/index.d.ts +9 -0
  21. package/dist/components/AppFrame/hooks/useAppFrameAnimations.d.ts +12 -0
  22. package/dist/components/AppFrame/index.d.ts +2 -0
  23. package/dist/components/AppFrame/stories-helpers.d.ts +19 -0
  24. package/dist/components/AppFrame/types.d.ts +38 -0
  25. package/dist/components/Badge/Badge.d.ts +3 -0
  26. package/dist/components/Button/Button.d.ts +1 -1
  27. package/dist/components/DetailsCard/DetailsCard.d.ts +1 -1
  28. package/dist/components/Modal/components/ActionModalContent.d.ts +29 -0
  29. package/dist/components/Modal/components/ModalPortal.d.ts +5 -4
  30. package/dist/components/Modal/index.d.ts +1 -0
  31. package/dist/components/OnboardingChecklist/OnboardingChecklist.d.ts +3 -0
  32. package/dist/components/OnboardingChecklist/components/CheckListItem.d.ts +3 -0
  33. package/dist/components/OnboardingChecklist/components/index.d.ts +1 -0
  34. package/dist/components/OnboardingChecklist/index.d.ts +2 -0
  35. package/dist/components/OnboardingChecklist/types.d.ts +97 -0
  36. package/dist/components/Picker/components/PickerTriggerBody.d.ts +1 -0
  37. package/dist/components/Picker/hooks/useFloatingPicker.d.ts +2 -1
  38. package/dist/components/Picker/hooks/usePickerItems.d.ts +4 -2
  39. package/dist/components/Popover/types.d.ts +2 -1
  40. package/dist/components/ProductSwitcher/ProductSwitcher.d.ts +4 -0
  41. package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +10 -0
  42. package/dist/components/ProductSwitcher/components/ProductTile/ProductTile.d.ts +9 -0
  43. package/dist/components/ProductSwitcher/constants.d.ts +7 -0
  44. package/dist/components/ProductSwitcher/helpers.d.ts +10 -0
  45. package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +14 -0
  46. package/dist/components/ProductSwitcher/index.d.ts +4 -0
  47. package/dist/components/ProductSwitcher/openwidgetLogoUri.d.ts +1 -0
  48. package/dist/components/ProductSwitcher/types.d.ts +44 -0
  49. package/dist/components/StatusBadge/StatusBadge.d.ts +13 -0
  50. package/dist/components/StatusBadge/index.d.ts +1 -0
  51. package/dist/components/Tooltip/types.d.ts +4 -0
  52. package/dist/components/Typography/Text.d.ts +2 -0
  53. package/dist/components/UpdateBadge/UpdateBadge.d.ts +2 -0
  54. package/dist/components/UpdateBadge/index.d.ts +1 -0
  55. package/dist/foundations/design-token.d.ts +7 -0
  56. package/dist/index.cjs +1 -1
  57. package/dist/index.d.ts +6 -1
  58. package/dist/index.js +4336 -2717
  59. package/dist/providers/AppFrameProvider.d.ts +11 -0
  60. package/dist/providers/ThemeProvider.d.ts +19 -0
  61. package/dist/providers/constants.d.ts +4 -0
  62. package/dist/providers/helpers.d.ts +4 -0
  63. package/dist/providers/index.d.ts +5 -0
  64. package/dist/providers/types.d.ts +1 -0
  65. package/dist/style.css +1 -1
  66. package/dist/utils/plural.d.ts +1 -0
  67. package/package.json +5 -5
@@ -0,0 +1,97 @@
1
+ import * as React from 'react';
2
+ export interface IChecklistItemProps {
3
+ /**
4
+ * Define the unique id of the item
5
+ */
6
+ id: string;
7
+ /**
8
+ * Set the title of the item
9
+ */
10
+ title: string;
11
+ /**
12
+ * Set the additional text for the title
13
+ */
14
+ titleHint?: string;
15
+ /**
16
+ * Set the description of the item
17
+ */
18
+ description: string;
19
+ /**
20
+ * The element to display when the item is active
21
+ */
22
+ cta: React.ReactElement;
23
+ /**
24
+ * The element to display in the right column when the item is active
25
+ */
26
+ placeholder: React.ReactElement;
27
+ }
28
+ export interface ICheckListItem extends Omit<IChecklistItemProps, 'placeholder'> {
29
+ isActive: boolean;
30
+ isChecked: boolean;
31
+ isLastElement: boolean;
32
+ onClick: (id: string) => void;
33
+ }
34
+ export type ICompletionMessageDataProps = {
35
+ /**
36
+ * Set the title of the complete state
37
+ */
38
+ title: string;
39
+ /**
40
+ * Set the greeting text of the complete state
41
+ */
42
+ greetingText?: string;
43
+ /**
44
+ * The element to display when the checklist is completed before the animation starts
45
+ */
46
+ placeholder?: React.ReactElement;
47
+ /**
48
+ * Define the delay betweend displaying complete placeholder and the animation starts
49
+ */
50
+ delay?: number;
51
+ /**
52
+ * Define the custom heigh of content visible after checklist complete
53
+ */
54
+ height?: number;
55
+ };
56
+ export interface IOnboardingChecklistProps {
57
+ /**
58
+ * The CSS class for the component
59
+ */
60
+ className?: string;
61
+ /**
62
+ * Set the title of the checklist
63
+ */
64
+ title: string;
65
+ /**
66
+ * Set the greeting text of the checklist
67
+ */
68
+ greetingText?: string;
69
+ /**
70
+ * The list of items to display
71
+ */
72
+ items: IChecklistItemProps[];
73
+ /**
74
+ * Set to define the active item
75
+ */
76
+ activeItemId: string;
77
+ /**
78
+ * Set to defined the complete items
79
+ */
80
+ completedItemsIds: string[];
81
+ /**
82
+ * Callback function when list element is clicked
83
+ */
84
+ onActiveChange: (id: string) => void;
85
+ /**
86
+ * The CSS class for the right column
87
+ */
88
+ placeholderClassName?: string;
89
+ /**
90
+ * Set to define the checklist is completed
91
+ */
92
+ isCompleted?: boolean;
93
+ /**
94
+ * Complete element which will be displayed when `isCompleted` is true
95
+ */
96
+ completionMessageData: ICompletionMessageDataProps;
97
+ }
@@ -17,5 +17,6 @@ export interface ITriggerBodyProps {
17
17
  onClear: () => void;
18
18
  virtualItemRef: React.MutableRefObject<HTMLElement | null>;
19
19
  isTriggerFocused: boolean;
20
+ inputRef?: React.RefObject<HTMLInputElement>;
20
21
  }
21
22
  export declare const PickerTriggerBody: React.FC<ITriggerBodyProps>;
@@ -13,6 +13,7 @@ interface UseFloatingPickerProps {
13
13
  maxListHeight: number;
14
14
  isOpen?: boolean;
15
15
  onVisibilityChange?: (open: boolean, event?: Event | undefined) => void;
16
+ searchPhrase?: string;
16
17
  }
17
18
  interface IUseFloatingPicker {
18
19
  getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
@@ -31,5 +32,5 @@ interface IUseFloatingPicker {
31
32
  pointer: boolean;
32
33
  setPointer: (pointer: boolean) => void;
33
34
  }
34
- export declare const useFloatingPicker: ({ disabled, items, placement, minListHeight, maxListHeight, floatingStrategy, useDismissHookProps, useClickHookProps, isOpen, onVisibilityChange, }: UseFloatingPickerProps) => IUseFloatingPicker;
35
+ export declare const useFloatingPicker: ({ disabled, items, placement, minListHeight, maxListHeight, floatingStrategy, useDismissHookProps, useClickHookProps, isOpen, onVisibilityChange, searchPhrase, }: UseFloatingPickerProps) => IUseFloatingPicker;
35
36
  export {};
@@ -1,5 +1,5 @@
1
1
  import { IPickerListItem } from '../types';
2
-
2
+ import * as React from 'react';
3
3
  interface UsePickerItemsProps {
4
4
  selected?: IPickerListItem[] | null;
5
5
  options: IPickerListItem[];
@@ -7,6 +7,8 @@ interface UsePickerItemsProps {
7
7
  selectAllOptionText?: string;
8
8
  onSelect: (items: IPickerListItem[] | null) => void;
9
9
  setOpen: (isOpen: boolean) => void;
10
+ clearSearchAfterSelection: boolean;
11
+ inputRef: React.RefObject<HTMLInputElement>;
10
12
  }
11
13
  interface IUsePickerItems {
12
14
  selectedKeys: string[];
@@ -17,5 +19,5 @@ interface IUsePickerItems {
17
19
  handleItemRemove: (itemKey: string) => void;
18
20
  handleClear: () => void;
19
21
  }
20
- export declare const usePickerItems: ({ selected, options, type, selectAllOptionText, onSelect, setOpen, }: UsePickerItemsProps) => IUsePickerItems;
22
+ export declare const usePickerItems: ({ selected, options, type, selectAllOptionText, onSelect, setOpen, clearSearchAfterSelection, inputRef, }: UsePickerItemsProps) => IUsePickerItems;
21
23
  export {};
@@ -1,3 +1,4 @@
1
+ import { OffsetOptions } from '@floating-ui/core';
1
2
  import { Placement, UseClickProps, UseDismissProps, FlipOptions, Strategy } from '@floating-ui/react';
2
3
  import * as React from 'react';
3
4
  export interface IPopoverProps {
@@ -37,7 +38,7 @@ export interface IPopoverProps {
37
38
  /**
38
39
  * Set the popover offset
39
40
  */
40
- offsetSize?: number;
41
+ offsetSize?: OffsetOptions;
41
42
  /**
42
43
  * Set `false` if the menu is not to be closed with an esc press
43
44
  */
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ProductSwitcherProps } from './types';
3
+
4
+ export declare const ProductSwitcher: FC<ProductSwitcherProps>;
@@ -0,0 +1,10 @@
1
+ import { FC, MouseEvent } from 'react';
2
+ import { ProductOption, ProductId } from '../../types';
3
+
4
+ type IProps = {
5
+ onClick: (event: MouseEvent, id: ProductId) => void;
6
+ product: ProductOption;
7
+ isActive?: boolean;
8
+ };
9
+ export declare const ProductRow: FC<IProps>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import { ProductOption } from '../../types';
3
+
4
+ type IProps = Pick<ProductOption, 'icon' | 'notificationCount' | 'backgroundColors' | 'expired' | 'iconColor'> & {
5
+ isMainProduct?: boolean;
6
+ withBorder?: boolean;
7
+ };
8
+ export declare const ProductTile: FC<IProps>;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ProductOption, ProductData, ProductId } from './types';
2
+
3
+ export declare const ProductSwitcherProducts: ProductOption[];
4
+ export declare const labsRedirectData: ProductData[];
5
+ export declare const stagingRedirectData: ProductData[];
6
+ export declare const prodRedirectData: ProductData[];
7
+ export declare const alwaysVisibleProducts: ProductId[];
@@ -0,0 +1,10 @@
1
+ import { ProductName, ProductData, ProductId, ProductOption, ProductSubscription, Env } from './types';
2
+
3
+ export declare const getRedirectURL: (productClientId: string, productRedirectUri: string, organizationId: string, mainProductId: ProductId, env: Env) => string;
4
+ export declare const getTrialDaysLeft: (trialEnd: string) => number;
5
+ export declare const isVisibleProduct: (productId: ProductId, installedProducts: {
6
+ product: ProductName;
7
+ }[]) => boolean;
8
+ export declare const createProductOption: (product: ProductOption, redirectData: ProductData[], subscriptions: ProductSubscription, organizationId: string, mainProductId: ProductId, env: Env) => ProductOption;
9
+ export declare const getRedirectDataByEnv: (env: Env) => ProductData[];
10
+ export declare const getUtmSource: (env: Env, mainProductId: ProductId) => string | undefined;
@@ -0,0 +1,14 @@
1
+ import { Env, ProductId, ProductName, ProductOption, ProductSubscription } from '../types';
2
+
3
+ export interface IProductSwitcherHook {
4
+ env?: Env;
5
+ installedProducts: {
6
+ product: ProductName;
7
+ }[];
8
+ organizationId: string;
9
+ subscriptions: ProductSubscription;
10
+ mainProductId: ProductId;
11
+ }
12
+ export declare const useProductSwitcher: ({ env, installedProducts, subscriptions, organizationId, mainProductId, }: IProductSwitcherHook) => {
13
+ products: ProductOption[];
14
+ };
@@ -0,0 +1,4 @@
1
+ export { type ProductOption, type ProductSwitcherProps, type ProductId, type ProductData, } from './types';
2
+ export * from './ProductSwitcher';
3
+ export { useProductSwitcher } from './hooks/useProductSwitcher';
4
+ export { ProductSwitcherProducts } from './constants';
@@ -0,0 +1 @@
1
+ export declare const OpenWidgetLogoUri = "data:image/svg+xml,%3Csvg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg clip-path=\"url(%23clip0_24854_8994)\"%3E%3Crect width=\"40\" height=\"40\" fill=\"%230066FF\"/%3E%3Cg filter=\"url(%23filter0_f_24854_8994)\"%3E%3Cpath d=\"M32.6382 31.0816C41.9891 31.0816 49.5694 23.5012 49.5694 14.1504C49.5694 4.79953 41.9891 -2.78082 32.6382 -2.78082C23.2874 -2.78082 15.707 4.79953 15.707 14.1504C15.707 23.5012 23.2874 31.0816 32.6382 31.0816Z\" fill=\"%23FF4205\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter1_f_24854_8994)\"%3E%3Cpath d=\"M10.417 50.1292C19.7679 50.1292 27.3482 42.5488 27.3482 33.198C27.3482 23.8471 19.7679 16.2668 10.417 16.2668C1.0662 16.2668 -6.51416 23.8471 -6.51416 33.198C-6.51416 42.5488 1.0662 50.1292 10.417 50.1292Z\" fill=\"%2373CE3B\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter2_f_24854_8994)\"%3E%3Cpath d=\"M9.35788 16.2667C15.2022 16.2667 19.9399 11.529 19.9399 5.68472C19.9399 -0.159555 15.2022 -4.89728 9.35788 -4.89728C3.5136 -4.89728 -1.22412 -0.159555 -1.22412 5.68472C-1.22412 11.529 3.5136 16.2667 9.35788 16.2667Z\" fill=\"%233750FF\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter3_f_24854_8994)\"%3E%3Cpath d=\"M7.24274 18.3831C13.6714 18.3831 18.8829 13.1716 18.8829 6.74292C18.8829 0.314217 13.6714 -4.89728 7.24274 -4.89728C0.814034 -4.89728 -4.39746 0.314217 -4.39746 6.74292C-4.39746 13.1716 0.814034 18.3831 7.24274 18.3831Z\" fill=\"%233750FF\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter4_f_24854_8994)\"%3E%3Cpath d=\"M8.29938 21.5577C14.7281 21.5577 19.9396 16.3462 19.9396 9.91748C19.9396 3.48878 14.7281 -1.72272 8.29938 -1.72272C1.87068 -1.72272 -3.34082 3.48878 -3.34082 9.91748C-3.34082 16.3462 1.87068 21.5577 8.29938 21.5577Z\" fill=\"%233750FF\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter5_f_24854_8994)\"%3E%3Cpath d=\"M33.6973 45.8964C40.126 45.8964 45.3375 40.6849 45.3375 34.2562C45.3375 27.8275 40.126 22.616 33.6973 22.616C27.2686 22.616 22.0571 27.8275 22.0571 34.2562C22.0571 40.6849 27.2686 45.8964 33.6973 45.8964Z\" fill=\"%23FFD001\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter6_f_24854_8994)\"%3E%3Cpath d=\"M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z\" fill=\"%23FFD001\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter7_f_24854_8994)\"%3E%3Cpath d=\"M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z\" fill=\"%23FFD001\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter8_f_24854_8994)\"%3E%3Cpath d=\"M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z\" fill=\"%2373CE3B\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter9_f_24854_8994)\"%3E%3Cpath d=\"M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z\" fill=\"%2373CE3B\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter10_f_24854_8994)\"%3E%3Cpath d=\"M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z\" fill=\"%2373CE3B\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter11_f_24854_8994)\"%3E%3Cpath d=\"M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z\" fill=\"%2373CE3B\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter12_f_24854_8994)\"%3E%3Cpath d=\"M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z\" fill=\"%2373CE3B\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter13_f_24854_8994)\"%3E%3Cpath d=\"M9.35898 38.489C12.8655 38.489 15.7082 35.6463 15.7082 32.1398C15.7082 28.6332 12.8655 25.7906 9.35898 25.7906C5.8524 25.7906 3.00977 28.6332 3.00977 32.1398C3.00977 35.6463 5.8524 38.489 9.35898 38.489Z\" fill=\"%2373CE3B\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter14_f_24854_8994)\"%3E%3Cpath d=\"M38.9871 31.0816C46.5846 31.0816 52.7437 24.9225 52.7437 17.325C52.7437 9.7274 46.5846 3.56836 38.9871 3.56836C31.3895 3.56836 25.2305 9.7274 25.2305 17.325C25.2305 24.9225 31.3895 31.0816 38.9871 31.0816Z\" fill=\"%23FF4205\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter15_f_24854_8994)\"%3E%3Cpath d=\"M38.9879 25.7905C45.4166 25.7905 50.6281 20.579 50.6281 14.1503C50.6281 7.72157 45.4166 2.51007 38.9879 2.51007C32.5592 2.51007 27.3477 7.72157 27.3477 14.1503C27.3477 20.579 32.5592 25.7905 38.9879 25.7905Z\" fill=\"%23FF4205\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter16_f_24854_8994)\"%3E%3Cpath d=\"M9.35868 21.5578C14.0341 21.5578 17.8243 17.7676 17.8243 13.0922C17.8243 8.41674 14.0341 4.62656 9.35868 4.62656C4.68325 4.62656 0.893066 8.41674 0.893066 13.0922C0.893066 17.7676 4.68325 21.5578 9.35868 21.5578Z\" fill=\"%233750FF\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter17_f_24854_8994)\"%3E%3Cpath d=\"M31.5797 18.3831C35.0862 18.3831 37.9289 15.5404 37.9289 12.0339C37.9289 8.5273 35.0862 5.68466 31.5797 5.68466C28.0731 5.68466 25.2305 8.5273 25.2305 12.0339C25.2305 15.5404 28.0731 18.3831 31.5797 18.3831Z\" fill=\"%23FF2E00\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter18_f_24854_8994)\"%3E%3Cpath d=\"M12.5312 14.1503C18.3755 14.1503 23.1132 9.41257 23.1132 3.5683C23.1132 -2.27598 18.3755 -7.0137 12.5312 -7.0137C6.68694 -7.0137 1.94922 -2.27598 1.94922 3.5683C1.94922 9.41257 6.68694 14.1503 12.5312 14.1503Z\" fill=\"%233851FF\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter19_f_24854_8994)\"%3E%3Cpath d=\"M28.4057 13.0921C34.25 13.0921 38.9877 8.35441 38.9877 2.51013C38.9877 -3.33415 34.25 -8.07187 28.4057 -8.07187C22.5615 -8.07187 17.8237 -3.33415 17.8237 2.51013C17.8237 8.35441 22.5615 13.0921 28.4057 13.0921Z\" fill=\"%23F3354D\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter20_f_24854_8994)\"%3E%3Cpath d=\"M33.6958 48.0128C39.54 48.0128 44.2778 43.275 44.2778 37.4308C44.2778 31.5865 39.54 26.8488 33.6958 26.8488C27.8515 26.8488 23.1138 31.5865 23.1138 37.4308C23.1138 43.275 27.8515 48.0128 33.6958 48.0128Z\" fill=\"%23FFD101\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter21_f_24854_8994)\"%3E%3Cpath d=\"M8.30173 43.78C14.146 43.78 18.8837 39.0422 18.8837 33.198C18.8837 27.3537 14.146 22.616 8.30173 22.616C2.45745 22.616 -2.28027 27.3537 -2.28027 33.198C-2.28027 39.0422 2.45745 43.78 8.30173 43.78Z\" fill=\"%237FCF35\"/%3E%3C/g%3E%3Cg filter=\"url(%23filter22_f_24854_8994)\"%3E%3Cpath d=\"M6.18454 34.2562C12.0288 34.2562 16.7665 29.5184 16.7665 23.6742C16.7665 17.8299 12.0288 13.0922 6.18454 13.0922C0.340261 13.0922 -4.39746 17.8299 -4.39746 23.6742C-4.39746 29.5184 0.340261 34.2562 6.18454 34.2562Z\" fill=\"%231D7DD0\"/%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3Cfilter id=\"filter0_f_24854_8994\" x=\"-8.29297\" y=\"-26.7808\" width=\"81.8623\" height=\"81.8624\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter1_f_24854_8994\" x=\"-30.5142\" y=\"-7.73322\" width=\"81.8623\" height=\"81.8624\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter2_f_24854_8994\" x=\"-25.2241\" y=\"-28.8973\" width=\"69.1641\" height=\"69.164\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter3_f_24854_8994\" x=\"-28.3975\" y=\"-28.8973\" width=\"71.2803\" height=\"71.2804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter4_f_24854_8994\" x=\"-27.3408\" y=\"-25.7227\" width=\"71.2803\" height=\"71.2804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter5_f_24854_8994\" x=\"-1.94287\" y=\"-1.38403\" width=\"71.2803\" height=\"71.2804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter6_f_24854_8994\" x=\"-6.17627\" y=\"0.732361\" width=\"71.2803\" height=\"71.2804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter7_f_24854_8994\" x=\"-6.17627\" y=\"0.732361\" width=\"71.2803\" height=\"71.2804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter8_f_24854_8994\" x=\"-27.3408\" y=\"-3.50043\" width=\"67.0479\" height=\"67.0476\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter9_f_24854_8994\" x=\"-27.3408\" y=\"-3.50043\" width=\"67.0479\" height=\"67.0476\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter10_f_24854_8994\" x=\"-27.3408\" y=\"-3.50043\" width=\"67.0479\" height=\"67.0476\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter11_f_24854_8994\" x=\"-27.3408\" y=\"-3.50043\" width=\"67.0479\" height=\"67.0476\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter12_f_24854_8994\" x=\"-27.3408\" y=\"-3.50043\" width=\"67.0479\" height=\"67.0476\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter13_f_24854_8994\" x=\"-20.9902\" y=\"1.79056\" width=\"60.6982\" height=\"60.6984\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter14_f_24854_8994\" x=\"1.23047\" y=\"-20.4316\" width=\"75.5132\" height=\"75.5132\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter15_f_24854_8994\" x=\"3.34766\" y=\"-21.4899\" width=\"71.2803\" height=\"71.2804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter16_f_24854_8994\" x=\"-23.1069\" y=\"-19.3734\" width=\"64.9312\" height=\"64.9312\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter17_f_24854_8994\" x=\"1.23047\" y=\"-18.3153\" width=\"60.6982\" height=\"60.6984\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"12\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter18_f_24854_8994\" x=\"-9.05078\" y=\"-18.0137\" width=\"43.1641\" height=\"43.164\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"5.5\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter19_f_24854_8994\" x=\"6.82373\" y=\"-19.0719\" width=\"43.1641\" height=\"43.164\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"5.5\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter20_f_24854_8994\" x=\"12.1138\" y=\"15.8488\" width=\"43.1641\" height=\"43.164\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"5.5\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter21_f_24854_8994\" x=\"-13.2803\" y=\"11.616\" width=\"43.1641\" height=\"43.164\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"5.5\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3Cfilter id=\"filter22_f_24854_8994\" x=\"-15.3975\" y=\"2.09216\" width=\"43.1641\" height=\"43.164\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"%3E%3CfeFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/%3E%3CfeBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/%3E%3CfeGaussianBlur stdDeviation=\"5.5\" result=\"effect1_foregroundBlur_24854_8994\"/%3E%3C/filter%3E%3CclipPath id=\"clip0_24854_8994\"%3E%3Crect width=\"40\" height=\"40\" fill=\"white\"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A";
@@ -0,0 +1,44 @@
1
+ import { ReactNode } from 'react';
2
+ import { IconSource } from '../Icon';
3
+
4
+ export type ProductId = 'livechat' | 'helpdesk' | 'chatbot' | 'openwidget' | 'knowledgebase' | 'hello' | 'accounts';
5
+ export type ProductName = 'LiveChat' | 'HelpDesk' | 'ChatBot' | 'OpenWidget' | 'KnowledgeBase' | 'Hello' | 'Accounts';
6
+ export type Env = 'labs' | 'staging' | 'prod';
7
+ export interface ProductSwitcherProps {
8
+ mainProductId: ProductId;
9
+ productOptions: ProductOption[];
10
+ textURL?: string;
11
+ openedOnInit?: boolean;
12
+ isVisible?: boolean;
13
+ onOpen?: (event?: Event) => void;
14
+ onClose?: (event?: Event) => void;
15
+ onSelect?: (id: ProductId) => void;
16
+ }
17
+ export declare const SSOProductIdMap: Record<ProductId, ProductName>;
18
+ export type ProductSubscription = Partial<Record<ProductId, {
19
+ status: 'trial' | 'active' | 'cancelled' | 'past_due' | 'expired';
20
+ next_charge_at?: string;
21
+ }>>;
22
+ export interface ProductOption {
23
+ id: ProductId;
24
+ shortcutKey?: string;
25
+ name: string;
26
+ expired?: boolean;
27
+ trialDaysLeft?: number;
28
+ nameAdornment?: ReactNode;
29
+ icon: IconSource;
30
+ iconColor?: string;
31
+ notificationCount?: number;
32
+ backgroundColors: {
33
+ main: string;
34
+ second: string;
35
+ third: string;
36
+ };
37
+ withDivider?: boolean;
38
+ url: string;
39
+ }
40
+ export type ProductData = {
41
+ clientId: string;
42
+ product: ProductName;
43
+ redirectUri: string;
44
+ };
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export type StatusBadgeSizes = '3XS' | '2XS' | 'XS' | 'SM' | 'MD' | 'LG' | 'XL' | '2XL' | '3XL';
3
+ export interface IStatusBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /**
5
+ * Specify the status badge kind
6
+ */
7
+ kind?: 'offline' | 'accept' | 'not-accept';
8
+ /**
9
+ * Specify the status badge size
10
+ */
11
+ size?: StatusBadgeSizes;
12
+ }
13
+ export declare const StatusBadge: React.FC<IStatusBadgeProps>;
@@ -0,0 +1 @@
1
+ export { StatusBadge } from './StatusBadge';
@@ -93,6 +93,10 @@ export interface ITooltipProps {
93
93
  * Set the tooltip distance from the trigger
94
94
  */
95
95
  offsetMainAxis?: number;
96
+ /**
97
+ * Set the tooltip distance from the trigger
98
+ */
99
+ offsetCrossAxis?: number;
96
100
  /**
97
101
  * Set custom reference object for the tooltip
98
102
  */
@@ -24,6 +24,8 @@ interface IProps extends React.HTMLAttributes<HTMLElement> {
24
24
  customColor?: string;
25
25
  /** Optional prop to set the text align */
26
26
  textAlign?: TTextAlign;
27
+ /** Optional prop to set the no margin */
28
+ noMargin?: boolean;
27
29
  }
28
30
  export declare const Text: React.FC<React.PropsWithChildren<IProps>>;
29
31
  export {};
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const UpdateBadge: React.FC;
@@ -0,0 +1 @@
1
+ export { UpdateBadge } from './UpdateBadge';
@@ -363,5 +363,12 @@ export declare const DesignToken: {
363
363
  OnePopoverMessageBackgroundDefault: string;
364
364
  OnePopoverBorderDefault: string;
365
365
  OnePopoverBorderActive: string;
366
+ OneTooltipBackground: string;
367
+ ContentBasicAutofill: string;
368
+ ProductsHello: string;
369
+ ProductsPlatform: string;
370
+ SurfaceCheckListItemOpenBackground: string;
371
+ SurfaceCheckListBackground: string;
372
+ ContentBasicPlaceholder: string;
366
373
  };
367
374
  export type DesignTokenKey = keyof typeof DesignToken;