@appquality/unguess-design-system 3.0.11-alpha → 3.1.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 (71) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/build/index.d.ts +1 -1
  3. package/build/index.js +556 -512
  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 +137 -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 +11 -1
  63. package/build/stories/typography/typescale/index.d.ts +26 -8
  64. package/build/stories/typography/typescale/index.stories.d.ts +11 -1
  65. package/package.json +2 -2
  66. package/yarn-error.log +17994 -0
  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
@@ -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,28 @@ declare const theme: {
204
204
  xxxl: string;
205
205
  };
206
206
  components: {
207
- chrome: any;
208
- notification: any;
207
+ "navigation.hoverableItem": ({ isCurrent }: {
208
+ isCurrent: boolean;
209
+ }) => {
210
+ color: string | undefined;
211
+ "font-weight": number;
212
+ "background-color"?: string | undefined;
213
+ "border-top-left-radius": string;
214
+ "border-bottom-left-radius": string;
215
+ "&:hover, &.hover": {
216
+ "background-color": string | undefined;
217
+ color: string | undefined;
218
+ };
219
+ "&:active, &.active": {
220
+ "background-color": string | undefined;
221
+ color: string | undefined;
222
+ };
223
+ "&.isCurrent": {
224
+ color: string | undefined;
225
+ "font-weight": number;
226
+ "background-color": string | undefined;
227
+ };
228
+ };
209
229
  "notifications.notification": ({ type, isPrimary, }: {
210
230
  type: string;
211
231
  isPrimary: boolean;
@@ -252,74 +272,106 @@ declare const theme: {
252
272
  }) => {
253
273
  fontWeight: number;
254
274
  } | undefined;
255
- "forms.input": ({ isFocused }: {
256
- isFocused: boolean;
257
- }) => {
258
- boxShadow: string;
259
- } | undefined;
260
275
  "dropdowns.item": ({ addable, checked, ...rest }: {
261
276
  addable: boolean;
262
277
  checked: boolean;
263
278
  }) => {
264
- "&:hover": {
265
- backgroundColor: string;
266
- };
267
279
  fontWeight?: number | undefined;
268
280
  color?: string | undefined;
269
281
  cursor?: string | undefined;
270
282
  };
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
- }) => {
283
+ "buttons.icon_button": ({ disabled, isBright, isAccent, isPrimary, isBasic, }: import("../buttons/button/_types").ButtonArgs) => {
280
284
  pointerEvents?: string | undefined;
281
285
  backgroundColor?: string | undefined;
282
286
  color?: string | undefined;
287
+ border?: string | undefined;
283
288
  "&:hover"?: {
289
+ borderColor: string | undefined;
290
+ color: string | undefined;
284
291
  backgroundColor: string;
285
- color?: undefined;
286
292
  } | {
287
293
  backgroundColor: string;
294
+ color: string | undefined;
295
+ borderColor?: undefined;
296
+ } | {
297
+ backgroundColor: string | undefined;
288
298
  color: string;
299
+ borderColor?: undefined;
300
+ } | {
301
+ backgroundColor: string;
302
+ borderColor?: undefined;
303
+ color?: undefined;
289
304
  } | undefined;
290
305
  "&:active"?: {
306
+ borderColor: string | undefined;
307
+ color: string | undefined;
308
+ backgroundColor: string;
309
+ } | {
291
310
  backgroundColor: string;
311
+ color: string | undefined;
312
+ borderColor?: undefined;
313
+ } | {
314
+ backgroundColor: string | undefined;
292
315
  color: string;
316
+ borderColor?: undefined;
317
+ } | {
318
+ backgroundColor: string;
319
+ borderColor?: undefined;
320
+ color?: undefined;
293
321
  } | undefined;
322
+ borderColor?: string | undefined;
294
323
  };
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": {
324
+ "buttons.button": ({ isAccent, isBright, isPrimary, isBasic, isLink, }: import("../buttons/button/_types").ButtonArgs) => {
325
+ backgroundColor?: string | undefined;
326
+ color?: string | undefined;
327
+ border?: string | undefined;
328
+ "&:hover"?: {
329
+ borderColor: string | undefined;
330
+ color: string | undefined;
306
331
  backgroundColor: string;
307
- color: string;
308
- };
309
- "&:active": {
332
+ } | {
333
+ backgroundColor: string | undefined;
334
+ borderColor?: undefined;
335
+ color?: undefined;
336
+ } | {
310
337
  backgroundColor: string;
311
- color: string;
312
- };
313
- } | {
314
- backgroundColor?: undefined;
315
- color?: undefined;
316
- border?: undefined;
317
- "&:hover"?: undefined;
318
- "&:active"?: undefined;
338
+ color: string | undefined;
339
+ borderColor?: undefined;
340
+ } | {
341
+ color: string | undefined;
342
+ borderColor?: undefined;
343
+ backgroundColor?: undefined;
344
+ } | undefined;
345
+ "&:active"?: {
346
+ borderColor: string | undefined;
347
+ color: string | undefined;
348
+ backgroundColor: string;
349
+ } | {
350
+ backgroundColor: string | undefined;
351
+ borderColor?: undefined;
352
+ color?: undefined;
353
+ } | {
354
+ backgroundColor: string;
355
+ color: string | undefined;
356
+ borderColor?: undefined;
357
+ } | {
358
+ color: string | undefined;
359
+ borderColor?: undefined;
360
+ backgroundColor?: undefined;
361
+ } | undefined;
362
+ borderColor?: string | undefined;
363
+ };
364
+ "cards.card": {
365
+ border: string;
319
366
  };
367
+ chrome: any;
368
+ colors: {
369
+ primaryText: string;
370
+ };
371
+ notification: any;
320
372
  };
321
373
  shadows: {
322
- boxShadow: (theme: import("@zendeskgarden/react-theming").IGardenTheme) => string;
374
+ boxShadow: (theme: import("styled-components").DefaultTheme) => string;
323
375
  xs: (color: string) => string;
324
376
  sm: (color: string) => string;
325
377
  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>>;