@appquality/unguess-design-system 2.2.0 → 2.4.0

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 (56) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/build/index.d.ts +31 -1
  3. package/build/index.js +625 -19
  4. package/build/stories/accordions/index.stories.d.ts +1 -0
  5. package/build/stories/avatar/index.d.ts +1 -1
  6. package/build/stories/dropdowns/field/_types.d.ts +2 -0
  7. package/build/stories/dropdowns/field/index.d.ts +4 -0
  8. package/build/stories/dropdowns/item/_types.d.ts +9 -0
  9. package/build/stories/dropdowns/item/index.d.ts +4 -0
  10. package/build/stories/dropdowns/menu/_types.d.ts +31 -0
  11. package/build/stories/dropdowns/menu/index.d.ts +7 -0
  12. package/build/stories/dropdowns/multiselect/_types.d.ts +17 -0
  13. package/build/stories/dropdowns/multiselect/index.d.ts +11 -0
  14. package/build/stories/dropdowns/multiselect/index.stories.d.ts +21 -0
  15. package/build/stories/dropdowns/select/_types.d.ts +5 -1
  16. package/build/stories/dropdowns/select/index.d.ts +16 -0
  17. package/build/stories/dropdowns/select/index.stories.d.ts +20 -0
  18. package/build/stories/{field → forms/field}/_types.d.ts +0 -0
  19. package/build/stories/{field → forms/field}/index.d.ts +0 -0
  20. package/build/stories/{field → forms/field}/index.stories.d.ts +0 -0
  21. package/build/stories/forms/radio/_types.d.ts +3 -0
  22. package/build/stories/forms/radio/index.d.ts +14 -0
  23. package/build/stories/forms/radio/index.stories.d.ts +7 -0
  24. package/build/stories/forms/textarea/_types.d.ts +15 -0
  25. package/build/stories/forms/textarea/index.d.ts +10 -0
  26. package/build/stories/forms/textarea/index.stories.d.ts +8 -0
  27. package/build/stories/forms/toggle/_types.d.ts +3 -0
  28. package/build/stories/forms/toggle/index.d.ts +13 -0
  29. package/build/stories/forms/toggle/index.stories.d.ts +10 -0
  30. package/build/stories/login-form/_types.d.ts +19 -0
  31. package/build/stories/login-form/index.d.ts +10 -0
  32. package/build/stories/login-form/index.stories.d.ts +7 -0
  33. package/build/stories/pagination/_types.d.ts +34 -0
  34. package/build/stories/pagination/index.d.ts +17 -0
  35. package/build/stories/pagination/index.stories.d.ts +7 -0
  36. package/build/stories/table/_types.d.ts +54 -0
  37. package/build/stories/table/index.d.ts +21 -0
  38. package/build/stories/table/index.stories.d.ts +32 -0
  39. package/build/stories/tags/_types.d.ts +17 -0
  40. package/build/stories/tags/index.d.ts +22 -0
  41. package/build/stories/tags/index.stories.d.ts +19 -0
  42. package/build/stories/theme/gradients.d.ts +4 -0
  43. package/build/stories/theme/index.d.ts +155 -11
  44. package/build/stories/theme/palette.d.ts +141 -0
  45. package/build/stories/theme/palette.stories.d.ts +15 -0
  46. package/build/stories/theme/utils.d.ts +1 -0
  47. package/build/stories/tiles/_types.d.ts +12 -0
  48. package/build/stories/tiles/index.d.ts +22 -0
  49. package/build/stories/tiles/index.stories.d.ts +25 -0
  50. package/build/stories/trigger/_types.d.ts +3 -0
  51. package/build/stories/trigger/index.d.ts +7 -0
  52. package/build/stories/typography/paragraph/{ordered.stories.d.ts → index.stories.d.ts} +0 -0
  53. package/build/stories/typography/span/_types.d.ts +13 -0
  54. package/build/stories/typography/span/index.d.ts +13 -0
  55. package/build/stories/typography/span/index.stories.d.ts +6 -0
  56. package/package.json +1 -1
@@ -1,19 +1,153 @@
1
1
  declare const theme: {
2
- colors: {
3
- primaryHue: string;
4
- base: "light" | "dark";
5
- background: string;
6
- foreground: string;
7
- dangerHue: string;
8
- warningHue: string;
9
- successHue: string;
10
- neutralHue: string;
11
- chromeHue: string;
2
+ palette: {
3
+ black: string;
4
+ white: string;
5
+ product: {
6
+ support: string;
7
+ message: string;
8
+ explore: string;
9
+ gather: string;
10
+ guide: string;
11
+ connect: string;
12
+ chat: string;
13
+ talk: string;
14
+ sell: string;
15
+ };
16
+ grey: {
17
+ "100": string;
18
+ "200": string;
19
+ "300": string;
20
+ "400": string;
21
+ "500": string;
22
+ "600": string;
23
+ "700": string;
24
+ "800": string;
25
+ };
26
+ blue: {
27
+ "100": string;
28
+ "200": string;
29
+ "300": string;
30
+ "400": string;
31
+ "500": string;
32
+ "600": string;
33
+ "700": string;
34
+ "800": string;
35
+ };
36
+ red: {
37
+ "100": string;
38
+ "200": string;
39
+ "300": string;
40
+ "400": string;
41
+ "500": string;
42
+ "600": string;
43
+ "700": string;
44
+ "800": string;
45
+ };
46
+ yellow: {
47
+ "100": string;
48
+ "200": string;
49
+ "300": string;
50
+ "400": string;
51
+ "500": string;
52
+ "600": string;
53
+ "700": string;
54
+ "800": string;
55
+ };
56
+ green: {
57
+ "100": string;
58
+ "200": string;
59
+ "300": string;
60
+ "400": string;
61
+ "500": string;
62
+ "600": string;
63
+ "700": string;
64
+ "800": string;
65
+ };
66
+ kale: {
67
+ "100": string;
68
+ "200": string;
69
+ "300": string;
70
+ "400": string;
71
+ "500": string;
72
+ "600": string;
73
+ "700": string;
74
+ "800": string;
75
+ };
76
+ fuschia: {
77
+ "400": string;
78
+ "600": string;
79
+ M400: string;
80
+ M600: string;
81
+ };
82
+ pink: {
83
+ "400": string;
84
+ "600": string;
85
+ M400: string;
86
+ M600: string;
87
+ };
88
+ crimson: {
89
+ "400": string;
90
+ "600": string;
91
+ M400: string;
92
+ M600: string;
93
+ };
94
+ orange: {
95
+ "400": string;
96
+ "600": string;
97
+ M400: string;
98
+ M600: string;
99
+ };
100
+ lemon: {
101
+ "400": string;
102
+ "600": string;
103
+ M400: string;
104
+ M600: string;
105
+ };
106
+ lime: {
107
+ "400": string;
108
+ "600": string;
109
+ M400: string;
110
+ M600: string;
111
+ };
112
+ mint: {
113
+ "400": string;
114
+ "600": string;
115
+ M400: string;
116
+ M600: string;
117
+ };
118
+ teal: {
119
+ "400": string;
120
+ "600": string;
121
+ M400: string;
122
+ M600: string;
123
+ };
124
+ azure: {
125
+ "400": string;
126
+ "600": string;
127
+ M400: string;
128
+ M600: string;
129
+ };
130
+ royal: {
131
+ "400": string;
132
+ "600": string;
133
+ M400: string;
134
+ M600: string;
135
+ };
136
+ purple: {
137
+ "400": string;
138
+ "600": string;
139
+ M400: string;
140
+ M600: string;
141
+ };
12
142
  };
13
143
  fonts: {
14
144
  system: string;
15
145
  mono: string;
16
146
  };
147
+ gradients: {
148
+ horizontal: string;
149
+ dark: string;
150
+ };
17
151
  rtl: boolean;
18
152
  document?: any;
19
153
  borders: {
@@ -38,6 +172,17 @@ declare const theme: {
38
172
  lg: string;
39
173
  xl: string;
40
174
  };
175
+ colors: {
176
+ base: "light" | "dark";
177
+ background: string;
178
+ foreground: string;
179
+ primaryHue: string;
180
+ dangerHue: string;
181
+ warningHue: string;
182
+ successHue: string;
183
+ neutralHue: string;
184
+ chromeHue: string;
185
+ };
41
186
  components: Record<string, any>;
42
187
  fontSizes: {
43
188
  xs: string;
@@ -91,6 +236,5 @@ declare const theme: {
91
236
  xl: string;
92
237
  xxl: string;
93
238
  };
94
- palette: Record<string, string | Record<string | number, string>>;
95
239
  };
96
240
  export { theme };
@@ -0,0 +1,141 @@
1
+ export declare const palette: {
2
+ black: string;
3
+ white: string;
4
+ product: {
5
+ support: string;
6
+ message: string;
7
+ explore: string;
8
+ gather: string;
9
+ guide: string;
10
+ connect: string;
11
+ chat: string;
12
+ talk: string;
13
+ sell: string;
14
+ };
15
+ grey: {
16
+ "100": string;
17
+ "200": string;
18
+ "300": string;
19
+ "400": string;
20
+ "500": string;
21
+ "600": string;
22
+ "700": string;
23
+ "800": string;
24
+ };
25
+ blue: {
26
+ "100": string;
27
+ "200": string;
28
+ "300": string;
29
+ "400": string;
30
+ "500": string;
31
+ "600": string;
32
+ "700": string;
33
+ "800": string;
34
+ };
35
+ red: {
36
+ "100": string;
37
+ "200": string;
38
+ "300": string;
39
+ "400": string;
40
+ "500": string;
41
+ "600": string;
42
+ "700": string;
43
+ "800": string;
44
+ };
45
+ yellow: {
46
+ "100": string;
47
+ "200": string;
48
+ "300": string;
49
+ "400": string;
50
+ "500": string;
51
+ "600": string;
52
+ "700": string;
53
+ "800": string;
54
+ };
55
+ green: {
56
+ "100": string;
57
+ "200": string;
58
+ "300": string;
59
+ "400": string;
60
+ "500": string;
61
+ "600": string;
62
+ "700": string;
63
+ "800": string;
64
+ };
65
+ kale: {
66
+ "100": string;
67
+ "200": string;
68
+ "300": string;
69
+ "400": string;
70
+ "500": string;
71
+ "600": string;
72
+ "700": string;
73
+ "800": string;
74
+ };
75
+ fuschia: {
76
+ "400": string;
77
+ "600": string;
78
+ M400: string;
79
+ M600: string;
80
+ };
81
+ pink: {
82
+ "400": string;
83
+ "600": string;
84
+ M400: string;
85
+ M600: string;
86
+ };
87
+ crimson: {
88
+ "400": string;
89
+ "600": string;
90
+ M400: string;
91
+ M600: string;
92
+ };
93
+ orange: {
94
+ "400": string;
95
+ "600": string;
96
+ M400: string;
97
+ M600: string;
98
+ };
99
+ lemon: {
100
+ "400": string;
101
+ "600": string;
102
+ M400: string;
103
+ M600: string;
104
+ };
105
+ lime: {
106
+ "400": string;
107
+ "600": string;
108
+ M400: string;
109
+ M600: string;
110
+ };
111
+ mint: {
112
+ "400": string;
113
+ "600": string;
114
+ M400: string;
115
+ M600: string;
116
+ };
117
+ teal: {
118
+ "400": string;
119
+ "600": string;
120
+ M400: string;
121
+ M600: string;
122
+ };
123
+ azure: {
124
+ "400": string;
125
+ "600": string;
126
+ M400: string;
127
+ M600: string;
128
+ };
129
+ royal: {
130
+ "400": string;
131
+ "600": string;
132
+ M400: string;
133
+ M600: string;
134
+ };
135
+ purple: {
136
+ "400": string;
137
+ "600": string;
138
+ M400: string;
139
+ M600: string;
140
+ };
141
+ };
@@ -0,0 +1,15 @@
1
+ import { ComponentMeta, Story } from "@storybook/react";
2
+ import { HTMLAttributes } from "react";
3
+ interface Variant {
4
+ colorName: string;
5
+ color: string;
6
+ }
7
+ interface PaletteProps extends HTMLAttributes<HTMLDivElement> {
8
+ cards: Array<{
9
+ title: string;
10
+ colors: Array<Variant>;
11
+ }>;
12
+ }
13
+ export declare const Default: Story<PaletteProps>;
14
+ declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-typography").IParagraphProps & import("react").RefAttributes<HTMLParagraphElement>>>;
15
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const hex2rgba: (hex: string, alpha?: number) => string;
@@ -0,0 +1,12 @@
1
+ import { ChangeEventHandler } from "react";
2
+ import { ITilesProps } from "@zendeskgarden/react-forms";
3
+ export interface TilesArgs extends ITilesProps {
4
+ /** Sets the value of the selected radio button */
5
+ value?: string;
6
+ /** Handles radio selection */
7
+ onChange?: ChangeEventHandler<HTMLInputElement>;
8
+ /** Sets the name used to reference the value of the control */
9
+ name: string;
10
+ /** Centers tile content */
11
+ isCentered?: boolean;
12
+ }
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { TilesArgs } from "./_types";
3
+ /**
4
+ * Tiles are Radio buttons styled with icons or images.
5
+
6
+ * Used for this:
7
+ - Like Radios, Tiles are for choices that can't occur at the same time
8
+
9
+ * Not for this:
10
+ - To choose more than one option at once, use a Checkbox instead
11
+ - To select from a long list of options, use a Select
12
+ - To define an action, use a Button instead
13
+ - For navigation, use an Anchor instead
14
+ */
15
+ declare const Tiles: {
16
+ (props: TilesArgs): JSX.Element;
17
+ Description: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
18
+ Icon: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
19
+ Label: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
20
+ Tile: import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-forms").ITilesTileProps & import("react").RefAttributes<HTMLLabelElement>>;
21
+ };
22
+ export { Tiles };
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { TilesArgs } from "./_types";
4
+ interface Tile {
5
+ value: string;
6
+ label: string;
7
+ icon: React.FC;
8
+ description: string;
9
+ disabled?: boolean;
10
+ }
11
+ interface TilesStoryProps extends TilesArgs {
12
+ tiles: Array<Tile>;
13
+ hasDescription: boolean;
14
+ }
15
+ export declare const Default: Story<TilesStoryProps>;
16
+ export declare const Description: Story<TilesStoryProps>;
17
+ export declare const Disabled: Story<TilesStoryProps>;
18
+ declare const _default: ComponentMeta<{
19
+ (props: TilesArgs): JSX.Element;
20
+ Description: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
21
+ Icon: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
22
+ Label: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
23
+ Tile: import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-forms").ITilesTileProps & import("react").RefAttributes<HTMLLabelElement>>;
24
+ }>;
25
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ITriggerProps } from "@zendeskgarden/react-dropdowns";
2
+ export interface TriggerArgs extends ITriggerProps {
3
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { TriggerArgs } from "./_types";
3
+ /**
4
+ * A Trigger is a wrapper for input elements
5
+ **/
6
+ declare const Trigger: (props: TriggerArgs) => JSX.Element;
7
+ export { Trigger };
@@ -0,0 +1,13 @@
1
+ import { ISpanProps } from "@zendeskgarden/react-typography";
2
+ export interface SpanArgs extends ISpanProps {
3
+ /** Applies bold font style. Font weight is inherited by default. */
4
+ isBold?: boolean;
5
+ /** Renders with monospace font */
6
+ isMonospace?: boolean;
7
+ /**
8
+ * Applies a font color. Use
9
+ * [PALETTE](/components/palette#palette)
10
+ * colors when possible. Accepts all hex values.
11
+ */
12
+ hue?: string;
13
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { SpanArgs } from "./_types";
3
+ /**
4
+ * Use Span to style and format inline text elements.
5
+ * <hr>
6
+ * Used for this:
7
+ - To apply styles to short strings of text
8
+ - To include icons inline with text
9
+ * Not for this:
10
+ - To style an entire block of text, use Paragraph instead
11
+ */
12
+ declare const Span: (props: SpanArgs) => JSX.Element;
13
+ export { Span };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { SpanArgs } from "./_types";
4
+ export declare const Default: Story<SpanArgs>;
5
+ declare const _default: ComponentMeta<(props: SpanArgs) => JSX.Element>;
6
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/react-accordions": "^8.49.0",
6
6
  "@zendeskgarden/react-avatars": "^8.49.0",