@appquality/unguess-design-system 3.0.12-alpha → 3.1.1

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 (72) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/build/index.d.ts +1 -1
  3. package/build/index.js +835 -673
  4. package/build/stories/alerts/index.d.ts +1 -1
  5. package/build/stories/breadcrumbs/index.stories.d.ts +2 -2
  6. package/build/stories/buttons/anchor/index.d.ts +2 -2
  7. package/build/stories/buttons/anchor/index.stories.d.ts +5 -5
  8. package/build/stories/buttons/button/_types.d.ts +2 -29
  9. package/build/stories/buttons/button/index.d.ts +1 -1
  10. package/build/stories/buttons/button/index.stories.d.ts +5 -1216
  11. package/build/stories/buttons/button-group/index.d.ts +2 -2
  12. package/build/stories/buttons/button-group/index.stories.d.ts +10 -11
  13. package/build/stories/buttons/icon-button/_types.d.ts +2 -16
  14. package/build/stories/buttons/icon-button/index.stories.d.ts +2 -2
  15. package/build/stories/buttons/utils.d.ts +12 -0
  16. package/build/stories/cards/index.d.ts +6 -0
  17. package/build/stories/charts/ChartContainer.d.ts +1 -1
  18. package/build/stories/dropdowns/field/index.d.ts +1 -1
  19. package/build/stories/dropdowns/select/index.d.ts +1 -1
  20. package/build/stories/editor/editorStyle.d.ts +1 -1
  21. package/build/stories/forms/input/index.d.ts +1 -1
  22. package/build/stories/forms/input-toggle/index.d.ts +1 -1
  23. package/build/stories/label/index.d.ts +1 -1
  24. package/build/stories/lightbox/parts/body.d.ts +3 -3
  25. package/build/stories/lightbox/parts/footer.d.ts +1 -1
  26. package/build/stories/modals/fullscreen/index.d.ts +4 -4
  27. package/build/stories/modals/index.d.ts +1 -1
  28. package/build/stories/navigation/header/header-item/brandItem.d.ts +1 -1
  29. package/build/stories/navigation/nav/nav-item/accordionItem.d.ts +1 -1
  30. package/build/stories/navigation/nav/nav-item/navItemProject.d.ts +1 -1
  31. package/build/stories/navigation/page-header/index.d.ts +8 -4
  32. package/build/stories/navigation/page-header/styled/main.d.ts +9 -4
  33. package/build/stories/player/parts/container.d.ts +1 -1
  34. package/build/stories/player/parts/controls.d.ts +2 -2
  35. package/build/stories/player/parts/floatingControls.d.ts +1 -1
  36. package/build/stories/player/parts/video.d.ts +1 -1
  37. package/build/stories/profile-modal/menuItem.d.ts +1 -1
  38. package/build/stories/profile-modal/menuItemIcon.d.ts +1 -1
  39. package/build/stories/slider/index.d.ts +2 -0
  40. package/build/stories/slider/parts/container.d.ts +1 -1
  41. package/build/stories/slider/parts/slickSlider.d.ts +1 -1
  42. package/build/stories/special-cards/index.d.ts +12 -5
  43. package/build/stories/special-cards/styled/header.d.ts +10 -3
  44. package/build/stories/special-cards/styled/meta.d.ts +1 -1
  45. package/build/stories/special-cards/styled/thumbnail.d.ts +1 -1
  46. package/build/stories/stepper/index.d.ts +3 -3
  47. package/build/stories/tags/index.d.ts +3 -3
  48. package/build/stories/theme/charts.d.ts +1 -17
  49. package/build/stories/theme/colors.d.ts +5 -10
  50. package/build/stories/theme/components.d.ts +116 -42
  51. package/build/stories/theme/gradients.d.ts +0 -1
  52. package/build/stories/theme/index.d.ts +158 -85
  53. package/build/stories/theme/mixins.d.ts +2 -2
  54. package/build/stories/theme/palette.d.ts +35 -36
  55. package/build/stories/theme/palette.stories.d.ts +19 -5
  56. package/build/stories/theme/utils.d.ts +6 -2
  57. package/build/stories/timeline/index.d.ts +2 -2
  58. package/build/stories/tooltip/index.d.ts +1 -1
  59. package/build/stories/tooltip/index.stories.d.ts +1 -1
  60. package/build/stories/typography/paragraph/index.d.ts +2 -2
  61. package/build/stories/typography/paragraph/index.stories.d.ts +3 -3
  62. package/build/stories/typography/typescale/anchortag/index.stories.d.ts +10 -1
  63. package/build/stories/typography/typescale/index.d.ts +26 -8
  64. package/build/stories/typography/typescale/index.stories.d.ts +10 -1
  65. package/package.json +2 -4
  66. package/.babelrc.json +0 -3
  67. package/build/stories/buttons/anchor/_types.d.ts +0 -11
  68. package/build/stories/buttons/button-group/_types.d.ts +0 -5
  69. package/build/stories/buttons/utils/useButtonVariant.d.ts +0 -5
  70. package/build/stories/typography/paragraph/_types.d.ts +0 -5
  71. package/build/stories/typography/typescale/_types.d.ts +0 -43
  72. package/yarn-error.log +0 -13958
@@ -1,6 +1,39 @@
1
+ import { ButtonArgs } from "../buttons/button/_types";
1
2
  export declare const components: {
2
- chrome: any;
3
- notification: any;
3
+ "text.primary": () => {
4
+ color: string | undefined;
5
+ };
6
+ "text.success": () => {
7
+ color: string | undefined;
8
+ };
9
+ "text.warning": () => {
10
+ color: string | undefined;
11
+ };
12
+ "text.danger": () => {
13
+ color: string | undefined;
14
+ };
15
+ "navigation.hoverableItem": ({ isCurrent }: {
16
+ isCurrent: boolean;
17
+ }) => {
18
+ color: string | undefined;
19
+ "font-weight": number;
20
+ "background-color"?: string | undefined;
21
+ "border-top-left-radius": string;
22
+ "border-bottom-left-radius": string;
23
+ "&:hover, &.hover": {
24
+ "background-color": string | undefined;
25
+ color: string | undefined;
26
+ };
27
+ "&:active, &.active": {
28
+ "background-color": string | undefined;
29
+ color: string | undefined;
30
+ };
31
+ "&.isCurrent": {
32
+ color: string | undefined;
33
+ "font-weight": number;
34
+ "background-color": string | undefined;
35
+ };
36
+ };
4
37
  "notifications.notification": ({ type, isPrimary, }: {
5
38
  type: string;
6
39
  isPrimary: boolean;
@@ -47,69 +80,110 @@ export declare const components: {
47
80
  }) => {
48
81
  fontWeight: number;
49
82
  } | undefined;
50
- "forms.input": ({ isFocused }: {
51
- isFocused: boolean;
52
- }) => {
53
- boxShadow: string;
54
- } | undefined;
55
83
  "dropdowns.item": ({ addable, checked, ...rest }: {
56
84
  addable: boolean;
57
85
  checked: boolean;
58
86
  }) => {
59
- "&:hover": {
60
- backgroundColor: string;
61
- };
62
87
  fontWeight?: number | undefined;
63
88
  color?: string | undefined;
64
89
  cursor?: string | undefined;
65
90
  };
66
- "buttons.icon_button": ({ isDanger, isBasic, isPrimary, isHovered, isNeutral, isBright, disabled, }: {
67
- isBasic: boolean;
68
- isDanger: boolean;
69
- isPrimary: boolean;
70
- isHovered: boolean;
71
- isNeutral: boolean;
72
- isBright: boolean;
73
- disabled: boolean;
74
- }) => {
91
+ "buttons.icon_button": ({ disabled, isBright, isAccent, isPrimary, isBasic, }: ButtonArgs) => {
75
92
  pointerEvents?: string | undefined;
76
93
  backgroundColor?: string | undefined;
77
94
  color?: string | undefined;
95
+ border?: string | undefined;
78
96
  "&:hover"?: {
97
+ borderColor: string | undefined;
98
+ color: string | undefined;
79
99
  backgroundColor: string;
80
- color?: undefined;
100
+ "& svg"?: undefined;
101
+ } | {
102
+ backgroundColor: string;
103
+ color: string | undefined;
104
+ borderColor?: undefined;
105
+ "& svg"?: undefined;
106
+ } | {
107
+ backgroundColor: string | undefined;
108
+ color: string;
109
+ borderColor?: undefined;
110
+ "& svg"?: undefined;
81
111
  } | {
82
112
  backgroundColor: string;
83
113
  color: string;
114
+ "& svg": {
115
+ color: string;
116
+ };
117
+ borderColor?: undefined;
84
118
  } | undefined;
85
119
  "&:active"?: {
120
+ borderColor: string | undefined;
121
+ color: string | undefined;
122
+ backgroundColor: string;
123
+ "& svg"?: undefined;
124
+ } | {
125
+ backgroundColor: string;
126
+ color: string | undefined;
127
+ borderColor?: undefined;
128
+ "& svg"?: undefined;
129
+ } | {
130
+ backgroundColor: string | undefined;
131
+ color: string;
132
+ borderColor?: undefined;
133
+ "& svg"?: undefined;
134
+ } | {
86
135
  backgroundColor: string;
87
136
  color: string;
137
+ "& svg": {
138
+ color: string;
139
+ };
140
+ borderColor?: undefined;
88
141
  } | undefined;
142
+ borderColor?: string | undefined;
89
143
  };
90
- "buttons.button": ({ isDanger, isPrimary, isHovered, isNeutral, isBright, }: {
91
- isDanger: boolean;
92
- isPrimary: boolean;
93
- isHovered: boolean;
94
- isNeutral: boolean;
95
- isBright: boolean;
96
- }) => {
97
- backgroundColor: string;
98
- color: string;
99
- border: string;
100
- "&:hover": {
144
+ "buttons.button": ({ isAccent, isBright, isPrimary, isBasic, isLink, }: ButtonArgs) => {
145
+ backgroundColor?: string | undefined;
146
+ color?: string | undefined;
147
+ border?: string | undefined;
148
+ "&:hover"?: {
149
+ borderColor: string | undefined;
150
+ color: string | undefined;
101
151
  backgroundColor: string;
102
- color: string;
103
- };
104
- "&:active": {
152
+ } | {
153
+ backgroundColor: string | undefined;
154
+ borderColor?: undefined;
155
+ color?: undefined;
156
+ } | {
105
157
  backgroundColor: string;
106
- color: string;
107
- };
108
- } | {
109
- backgroundColor?: undefined;
110
- color?: undefined;
111
- border?: undefined;
112
- "&:hover"?: undefined;
113
- "&:active"?: undefined;
158
+ color: string | undefined;
159
+ borderColor?: undefined;
160
+ } | {
161
+ color: string | undefined;
162
+ borderColor?: undefined;
163
+ backgroundColor?: undefined;
164
+ } | undefined;
165
+ "&:active"?: {
166
+ borderColor: string | undefined;
167
+ color: string | undefined;
168
+ backgroundColor: string;
169
+ } | {
170
+ backgroundColor: string | undefined;
171
+ borderColor?: undefined;
172
+ color?: undefined;
173
+ } | {
174
+ backgroundColor: string;
175
+ color: string | undefined;
176
+ borderColor?: undefined;
177
+ } | {
178
+ color: string | undefined;
179
+ borderColor?: undefined;
180
+ backgroundColor?: undefined;
181
+ } | undefined;
182
+ borderColor?: string | undefined;
183
+ };
184
+ "cards.card": {
185
+ border: string;
114
186
  };
187
+ chrome: any;
188
+ notification: any;
115
189
  };
@@ -1,4 +1,3 @@
1
1
  export declare const gradients: {
2
- horizontal: string;
3
2
  dark: string;
4
3
  };
@@ -8,16 +8,18 @@ declare const theme: {
8
8
  xl: string;
9
9
  };
10
10
  colors: {
11
- primaryHue: string;
12
- warningHue: string;
13
- successHue: string;
14
- dangerHue: string;
15
- accentHue: string;
16
11
  base: "light" | "dark";
17
12
  background: string;
18
13
  foreground: string;
14
+ primaryHue: string;
15
+ dangerHue: string;
16
+ warningHue: string;
17
+ successHue: string;
19
18
  neutralHue: string;
20
19
  chromeHue: string;
20
+ } & {
21
+ infoHue: string;
22
+ accentHue: string;
21
23
  };
22
24
  palette: {
23
25
  black: string;
@@ -44,6 +46,7 @@ declare const theme: {
44
46
  "800": string;
45
47
  };
46
48
  blue: {
49
+ "50": string;
47
50
  "100": string;
48
51
  "200": string;
49
52
  "300": string;
@@ -62,6 +65,7 @@ declare const theme: {
62
65
  "600": string;
63
66
  "700": string;
64
67
  "800": string;
68
+ "900": string;
65
69
  };
66
70
  yellow: {
67
71
  "100": string;
@@ -72,8 +76,10 @@ declare const theme: {
72
76
  "600": string;
73
77
  "700": string;
74
78
  "800": string;
79
+ "900": string;
75
80
  };
76
81
  green: {
82
+ "50": string;
77
83
  "100": string;
78
84
  "200": string;
79
85
  "300": string;
@@ -83,7 +89,7 @@ declare const theme: {
83
89
  "700": string;
84
90
  "800": string;
85
91
  };
86
- kale: {
92
+ azure: {
87
93
  "100": string;
88
94
  "200": string;
89
95
  "300": string;
@@ -92,26 +98,29 @@ declare const theme: {
92
98
  "600": string;
93
99
  "700": string;
94
100
  "800": string;
101
+ "900": string;
95
102
  };
96
- fuschia: {
97
- "400": string;
103
+ kale: {
104
+ "100": string;
105
+ "200": string;
106
+ "300": string;
98
107
  "600": string;
99
- M400: string;
100
- M600: string;
108
+ "700": string;
109
+ "800": string;
101
110
  };
102
111
  pink: {
103
- "400": string;
104
112
  "600": string;
105
- M400: string;
106
- M600: string;
113
+ "700": string;
114
+ "800": string;
115
+ "900": string;
107
116
  };
108
117
  crimson: {
118
+ "200": string;
119
+ "300": string;
109
120
  "400": string;
110
- "600": string;
111
- M400: string;
112
- M600: string;
121
+ "500": string;
113
122
  };
114
- orange: {
123
+ fuschia: {
115
124
  "400": string;
116
125
  "600": string;
117
126
  M400: string;
@@ -119,54 +128,46 @@ declare const theme: {
119
128
  };
120
129
  lemon: {
121
130
  "400": string;
131
+ "500": string;
122
132
  "600": string;
123
- M400: string;
124
- M600: string;
133
+ "700": string;
125
134
  };
126
- lime: {
135
+ teal: {
127
136
  "400": string;
137
+ "500": string;
128
138
  "600": string;
129
- M400: string;
130
- M600: string;
139
+ "700": string;
131
140
  };
132
- mint: {
133
- "400": string;
141
+ royal: {
134
142
  "600": string;
135
- M400: string;
136
- M600: string;
143
+ "700": string;
144
+ "800": string;
145
+ "900": string;
137
146
  };
138
- teal: {
147
+ purple: {
148
+ "200": string;
149
+ "300": string;
139
150
  "400": string;
140
- "600": string;
141
- M400: string;
142
- M600: string;
151
+ "500": string;
143
152
  };
144
- azure: {
153
+ lime: {
145
154
  "400": string;
146
155
  "600": string;
147
156
  M400: string;
148
157
  M600: string;
149
158
  };
150
- royal: {
159
+ mint: {
151
160
  "400": string;
152
161
  "600": string;
153
162
  M400: string;
154
163
  M600: string;
155
164
  };
156
- purple: {
165
+ orange: {
157
166
  "400": string;
158
167
  "600": string;
159
168
  M400: string;
160
169
  M600: string;
161
170
  };
162
- water: {
163
- 100: string;
164
- 200: string;
165
- 300: string;
166
- 600: string;
167
- 700: string;
168
- 800: string;
169
- };
170
171
  };
171
172
  fonts: {
172
173
  system: string;
@@ -184,7 +185,6 @@ declare const theme: {
184
185
  black: number;
185
186
  };
186
187
  gradients: {
187
- horizontal: string;
188
188
  dark: string;
189
189
  };
190
190
  borderRadii: {
@@ -204,8 +204,40 @@ declare const theme: {
204
204
  xxxl: string;
205
205
  };
206
206
  components: {
207
- chrome: any;
208
- notification: any;
207
+ "text.primary": () => {
208
+ color: string | undefined;
209
+ };
210
+ "text.success": () => {
211
+ color: string | undefined;
212
+ };
213
+ "text.warning": () => {
214
+ color: string | undefined;
215
+ };
216
+ "text.danger": () => {
217
+ color: string | undefined;
218
+ };
219
+ "navigation.hoverableItem": ({ isCurrent }: {
220
+ isCurrent: boolean;
221
+ }) => {
222
+ color: string | undefined;
223
+ "font-weight": number;
224
+ "background-color"?: string | undefined;
225
+ "border-top-left-radius": string;
226
+ "border-bottom-left-radius": string;
227
+ "&:hover, &.hover": {
228
+ "background-color": string | undefined;
229
+ color: string | undefined;
230
+ };
231
+ "&:active, &.active": {
232
+ "background-color": string | undefined;
233
+ color: string | undefined;
234
+ };
235
+ "&.isCurrent": {
236
+ color: string | undefined;
237
+ "font-weight": number;
238
+ "background-color": string | undefined;
239
+ };
240
+ };
209
241
  "notifications.notification": ({ type, isPrimary, }: {
210
242
  type: string;
211
243
  isPrimary: boolean;
@@ -252,74 +284,115 @@ declare const theme: {
252
284
  }) => {
253
285
  fontWeight: number;
254
286
  } | undefined;
255
- "forms.input": ({ isFocused }: {
256
- isFocused: boolean;
257
- }) => {
258
- boxShadow: string;
259
- } | undefined;
260
287
  "dropdowns.item": ({ addable, checked, ...rest }: {
261
288
  addable: boolean;
262
289
  checked: boolean;
263
290
  }) => {
264
- "&:hover": {
265
- backgroundColor: string;
266
- };
267
291
  fontWeight?: number | undefined;
268
292
  color?: string | undefined;
269
293
  cursor?: string | undefined;
270
294
  };
271
- "buttons.icon_button": ({ isDanger, isBasic, isPrimary, isHovered, isNeutral, isBright, disabled, }: {
272
- isBasic: boolean;
273
- isDanger: boolean;
274
- isPrimary: boolean;
275
- isHovered: boolean;
276
- isNeutral: boolean;
277
- isBright: boolean;
278
- disabled: boolean;
279
- }) => {
295
+ "buttons.icon_button": ({ disabled, isBright, isAccent, isPrimary, isBasic, }: import("../buttons/button/_types").ButtonArgs) => {
280
296
  pointerEvents?: string | undefined;
281
297
  backgroundColor?: string | undefined;
282
298
  color?: string | undefined;
299
+ border?: string | undefined;
283
300
  "&:hover"?: {
301
+ borderColor: string | undefined;
302
+ color: string | undefined;
284
303
  backgroundColor: string;
285
- color?: undefined;
304
+ "& svg"?: undefined;
305
+ } | {
306
+ backgroundColor: string;
307
+ color: string | undefined;
308
+ borderColor?: undefined;
309
+ "& svg"?: undefined;
310
+ } | {
311
+ backgroundColor: string | undefined;
312
+ color: string;
313
+ borderColor?: undefined;
314
+ "& svg"?: undefined;
286
315
  } | {
287
316
  backgroundColor: string;
288
317
  color: string;
318
+ "& svg": {
319
+ color: string;
320
+ };
321
+ borderColor?: undefined;
289
322
  } | undefined;
290
323
  "&:active"?: {
324
+ borderColor: string | undefined;
325
+ color: string | undefined;
291
326
  backgroundColor: string;
327
+ "& svg"?: undefined;
328
+ } | {
329
+ backgroundColor: string;
330
+ color: string | undefined;
331
+ borderColor?: undefined;
332
+ "& svg"?: undefined;
333
+ } | {
334
+ backgroundColor: string | undefined;
292
335
  color: string;
336
+ borderColor?: undefined;
337
+ "& svg"?: undefined;
338
+ } | {
339
+ backgroundColor: string;
340
+ color: string;
341
+ "& svg": {
342
+ color: string;
343
+ };
344
+ borderColor?: undefined;
293
345
  } | undefined;
346
+ borderColor?: string | undefined;
294
347
  };
295
- "buttons.button": ({ isDanger, isPrimary, isHovered, isNeutral, isBright, }: {
296
- isDanger: boolean;
297
- isPrimary: boolean;
298
- isHovered: boolean;
299
- isNeutral: boolean;
300
- isBright: boolean;
301
- }) => {
302
- backgroundColor: string;
303
- color: string;
304
- border: string;
305
- "&:hover": {
348
+ "buttons.button": ({ isAccent, isBright, isPrimary, isBasic, isLink, }: import("../buttons/button/_types").ButtonArgs) => {
349
+ backgroundColor?: string | undefined;
350
+ color?: string | undefined;
351
+ border?: string | undefined;
352
+ "&:hover"?: {
353
+ borderColor: string | undefined;
354
+ color: string | undefined;
306
355
  backgroundColor: string;
307
- color: string;
308
- };
309
- "&:active": {
356
+ } | {
357
+ backgroundColor: string | undefined;
358
+ borderColor?: undefined;
359
+ color?: undefined;
360
+ } | {
310
361
  backgroundColor: string;
311
- color: string;
312
- };
313
- } | {
314
- backgroundColor?: undefined;
315
- color?: undefined;
316
- border?: undefined;
317
- "&:hover"?: undefined;
318
- "&:active"?: undefined;
362
+ color: string | undefined;
363
+ borderColor?: undefined;
364
+ } | {
365
+ color: string | undefined;
366
+ borderColor?: undefined;
367
+ backgroundColor?: undefined;
368
+ } | undefined;
369
+ "&:active"?: {
370
+ borderColor: string | undefined;
371
+ color: string | undefined;
372
+ backgroundColor: string;
373
+ } | {
374
+ backgroundColor: string | undefined;
375
+ borderColor?: undefined;
376
+ color?: undefined;
377
+ } | {
378
+ backgroundColor: string;
379
+ color: string | undefined;
380
+ borderColor?: undefined;
381
+ } | {
382
+ color: string | undefined;
383
+ borderColor?: undefined;
384
+ backgroundColor?: undefined;
385
+ } | undefined;
386
+ borderColor?: string | undefined;
319
387
  };
388
+ "cards.card": {
389
+ border: string;
390
+ };
391
+ chrome: any;
392
+ notification: any;
320
393
  };
321
394
  shadows: {
322
- boxShadow: (theme: import("@zendeskgarden/react-theming").IGardenTheme) => string;
395
+ boxShadow: (theme: import("styled-components").DefaultTheme) => string;
323
396
  xs: (color: string) => string;
324
397
  sm: (color: string) => string;
325
398
  md: (color: string) => string;
@@ -1,4 +1,4 @@
1
1
  export declare const flexCenter: import("styled-components").FlattenSimpleInterpolation;
2
2
  export declare const flexColumnCenter: import("styled-components").FlattenSimpleInterpolation;
3
- export declare const flexStart: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
4
- export declare const cardStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
3
+ export declare const flexStart: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
4
+ export declare const cardStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;