@livechat/design-system-react-components 1.16.5 → 1.16.7

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 (64) hide show
  1. package/README.md +82 -0
  2. package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +11 -0
  3. package/dist/components/Icon/IconsShowcase/constans.d.ts +2 -0
  4. package/dist/components/Icon/IconsShowcase/helpers.d.ts +2 -0
  5. package/dist/components/Icon/IconsShowcase/types.d.ts +9 -0
  6. package/dist/components/Picker/helpers.d.ts +1 -0
  7. package/dist/components/Picker/hooks/useFloatingPicker.d.ts +33 -0
  8. package/dist/components/Picker/hooks/usePickerItems.d.ts +20 -0
  9. package/dist/components/Picker/types.d.ts +17 -1
  10. package/dist/components/Typography/Display.d.ts +3 -1
  11. package/dist/components/Typography/Heading.d.ts +7 -3
  12. package/dist/components/Typography/Text.d.ts +13 -3
  13. package/dist/components/Typography/index.d.ts +1 -0
  14. package/dist/components/Typography/types.d.ts +3 -0
  15. package/dist/dsrc.cjs.js +1 -1
  16. package/dist/dsrc.es.js +1793 -1655
  17. package/dist/{themes → foundations}/design-token.d.ts +2 -0
  18. package/dist/foundations/radius-token.d.ts +6 -0
  19. package/dist/foundations/shadow-token.d.ts +1 -0
  20. package/dist/foundations/spacing-token.d.ts +4 -0
  21. package/dist/foundations/transition-token.d.ts +3 -0
  22. package/dist/index.d.ts +1 -1
  23. package/dist/preview-stats.json +621 -558
  24. package/dist/stories/components/Table/Table.d.ts +13 -0
  25. package/dist/stories/foundations/Color/ColorTable.d.ts +7 -0
  26. package/dist/stories/foundations/Color/constants.d.ts +2 -0
  27. package/dist/stories/foundations/Color/data.d.ts +7 -0
  28. package/dist/stories/foundations/Color/helpers.d.ts +2 -0
  29. package/dist/stories/foundations/Color/types.d.ts +43 -0
  30. package/dist/stories/foundations/Radius/RadiusTable.d.ts +7 -0
  31. package/dist/stories/foundations/Radius/constants.d.ts +2 -0
  32. package/dist/stories/foundations/Radius/types.d.ts +8 -0
  33. package/dist/stories/foundations/Shadow/ShadowTable.d.ts +7 -0
  34. package/dist/stories/foundations/Shadow/constants.d.ts +2 -0
  35. package/dist/stories/foundations/Shadow/types.d.ts +6 -0
  36. package/dist/stories/foundations/Spacing/SpacingTable.d.ts +7 -0
  37. package/dist/stories/foundations/Spacing/constants.d.ts +2 -0
  38. package/dist/stories/foundations/Spacing/types.d.ts +7 -0
  39. package/dist/stories/foundations/Transition/TransitionTable.d.ts +7 -0
  40. package/dist/stories/foundations/Transition/components/TransitionDelayExample.d.ts +2 -0
  41. package/dist/stories/foundations/Transition/components/TransitionDurationExample.d.ts +2 -0
  42. package/dist/stories/foundations/Transition/components/TransitionTimingExample.d.ts +2 -0
  43. package/dist/stories/foundations/Transition/constants.d.ts +4 -0
  44. package/dist/stories/foundations/Transition/types.d.ts +16 -0
  45. package/dist/stories/foundations/Typography/components/DisplayExamples.d.ts +2 -0
  46. package/dist/stories/foundations/Typography/components/HeadingExamples.d.ts +2 -0
  47. package/dist/stories/foundations/Typography/components/TextExamples.d.ts +2 -0
  48. package/dist/stories/helpers.d.ts +6 -0
  49. package/dist/style.css +1 -1
  50. package/package.json +3 -3
  51. package/dist/docs/components/ColorTokens.d.ts +0 -2
  52. package/dist/docs/components/Icons/TablerIconsShowcase.d.ts +0 -6
  53. package/dist/docs/components/Radius/Radius.d.ts +0 -2
  54. package/dist/docs/components/Radius/RadiusExamples.d.ts +0 -2
  55. package/dist/docs/components/Shadow/Shadow.d.ts +0 -2
  56. package/dist/docs/components/Shadow/ShadowExamples.d.ts +0 -2
  57. package/dist/docs/components/Spacing/Spacing.d.ts +0 -2
  58. package/dist/docs/components/Spacing/SpacingExamples.d.ts +0 -2
  59. package/dist/docs/components/Transition/TransitionTable.d.ts +0 -10
  60. package/dist/docs/components/Transition/transitionDelay.d.ts +0 -6
  61. package/dist/docs/components/Transition/transitionDuration.d.ts +0 -5
  62. package/dist/docs/components/Transition/transitionTiming.d.ts +0 -5
  63. /package/dist/{docs → stories}/components/BlockColumns/BlockColumns.d.ts +0 -0
  64. /package/dist/{docs → stories}/components/StoryDescriptor.d.ts +0 -0
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ type BasicTableData = Record<string, unknown> & {
3
+ enum: string | number;
4
+ token: string;
5
+ deprecated?: boolean;
6
+ };
7
+ interface ITable {
8
+ data: BasicTableData[];
9
+ columnNames: string[];
10
+ renderExample?: (token: string) => React.ReactNode;
11
+ }
12
+ export declare const Table: React.FC<ITable>;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { ColorShape } from './types';
3
+ interface IColorTableProps {
4
+ data: ColorShape[];
5
+ }
6
+ export declare const ColorTable: React.FC<IColorTableProps>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ColorShape } from './types';
2
+ export declare const ColorsTokens: ColorShape[];
@@ -0,0 +1,7 @@
1
+ import { DesignTokenKey } from '../../../foundations/design-token';
2
+ import { ColorGroup } from './types';
3
+ export declare const ColorsData: Record<DesignTokenKey, {
4
+ group: ColorGroup;
5
+ desc: string;
6
+ deprecated?: boolean;
7
+ }>;
@@ -0,0 +1,2 @@
1
+ import { ColorGroup, ColorShape } from './types';
2
+ export declare const getColorsByGroup: (group: ColorGroup) => ColorShape[];
@@ -0,0 +1,43 @@
1
+ import { DesignTokenKey } from '../../../foundations/design-token';
2
+ export declare enum ColorGroup {
3
+ ContentBasic = 0,
4
+ ContentGradient = 1,
5
+ ContentInvert = 2,
6
+ ContentLocked = 3,
7
+ SurfacePrimary = 4,
8
+ SurfaceSecondary = 5,
9
+ SurfaceTertiary = 6,
10
+ SurfaceModerate = 7,
11
+ SurfaceInvert = 8,
12
+ SurfaceAccentEmphasisHigh = 9,
13
+ SurfaceAccentEmphasisLow = 10,
14
+ SurfaceAccentEmphasisMin = 11,
15
+ SurfaceAccentEmphasisMedium = 12,
16
+ SurfaceLocked = 13,
17
+ SurfaceOther = 14,
18
+ SurfaceAvatar = 15,
19
+ SurfaceGradient = 16,
20
+ Background = 17,
21
+ BorderBasic = 18,
22
+ BorderInvert = 19,
23
+ ActionPrimary = 20,
24
+ ActionNegative = 21,
25
+ ActionPositive = 22,
26
+ ActionWarning = 23,
27
+ ActionNeutral = 24,
28
+ ActionHighContrast = 25,
29
+ Illustration = 26,
30
+ Products = 27,
31
+ Decor = 28,
32
+ SurfaceComponentSpecific = 29,
33
+ Deprecated = 30
34
+ }
35
+ export type ColorBaseBody = {
36
+ enum: DesignTokenKey;
37
+ token: string;
38
+ };
39
+ export type ColorShape = ColorBaseBody & {
40
+ desc: string;
41
+ group: ColorGroup | string;
42
+ deprecated?: boolean;
43
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { RadiusShape } from './types';
3
+ interface IColorTableProps {
4
+ data: RadiusShape[];
5
+ }
6
+ export declare const RadiusTable: React.FC<IColorTableProps>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { RadiusShape } from './types';
2
+ export declare const RadiusTokens: RadiusShape[];
@@ -0,0 +1,8 @@
1
+ import { RadiusTokenKey } from '../../../foundations/radius-token';
2
+ export type RadiusShape = {
3
+ enum: RadiusTokenKey;
4
+ token: string;
5
+ size: string;
6
+ desc: string;
7
+ deprecated?: boolean;
8
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { ShadowShape } from './types';
3
+ interface IColorTableProps {
4
+ data: ShadowShape[];
5
+ }
6
+ export declare const ShadowTable: React.FC<IColorTableProps>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ShadowShape } from './types';
2
+ export declare const ShadowTokens: ShadowShape[];
@@ -0,0 +1,6 @@
1
+ import { ShadowTokenKey } from '../../../foundations/shadow-token';
2
+ export type ShadowShape = {
3
+ enum: ShadowTokenKey;
4
+ token: string;
5
+ desc: string;
6
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { SpacingShape } from './types';
3
+ interface IColorTableProps {
4
+ data: SpacingShape[];
5
+ }
6
+ export declare const SpacingTable: React.FC<IColorTableProps>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SpacingShape } from './types';
2
+ export declare const SpacingTokens: SpacingShape[];
@@ -0,0 +1,7 @@
1
+ import { SpacingTokenKey } from '../../../foundations/spacing-token';
2
+ export type SpacingShape = {
3
+ enum: SpacingTokenKey;
4
+ token: string;
5
+ size: string;
6
+ desc: string;
7
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { TransitionShape } from './types';
3
+ interface ITransitionTableProps {
4
+ data: TransitionShape[];
5
+ }
6
+ export declare const TransitionTable: React.FC<ITransitionTableProps>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const TransitionDelayExample: React.FC;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const TransitionDurationExample: React.FC;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const TransitionTimingExample: React.FC;
@@ -0,0 +1,4 @@
1
+ import { TransitionDelayShape, TransitionDurationShape, TransitionTimingShape } from './types';
2
+ export declare const TransitionDurationTokens: TransitionDurationShape[];
3
+ export declare const TransitionTimingTokens: TransitionTimingShape[];
4
+ export declare const TransitionDelayTokens: TransitionDelayShape[];
@@ -0,0 +1,16 @@
1
+ import { TransitionDelayTokenKey, TransitionDurationTokenKey, TransitionTimingTokenKey } from '../../../foundations/transition-token';
2
+ export type TransitionShape = {
3
+ enum: string;
4
+ token: string;
5
+ value: string;
6
+ desc: string;
7
+ };
8
+ export type TransitionDurationShape = TransitionShape & {
9
+ enum: TransitionDurationTokenKey;
10
+ };
11
+ export type TransitionTimingShape = TransitionShape & {
12
+ enum: TransitionTimingTokenKey;
13
+ };
14
+ export type TransitionDelayShape = TransitionShape & {
15
+ enum: TransitionDelayTokenKey;
16
+ };
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const DisplayExamples: React.FC;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const HeadingExamples: React.FC;
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const TextExamples: React.FC;
@@ -0,0 +1,6 @@
1
+ export declare const handleCopyText: (text: string) => void;
2
+ export declare const sortDeprecated: (a: {
3
+ deprecated?: boolean;
4
+ }, b: {
5
+ deprecated?: boolean;
6
+ }) => number;