@qasa/qds-ui 0.6.0 → 0.7.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 (36) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/button/button-styles.d.ts +114 -0
  4. package/dist/cjs/types/components/heading/heading.d.ts +58 -10
  5. package/dist/cjs/types/components/icon/create-icon.d.ts +57 -0
  6. package/dist/cjs/types/components/icon-button/icon-button-styles.d.ts +114 -0
  7. package/dist/cjs/types/components/label/label.d.ts +57 -0
  8. package/dist/cjs/types/components/loading-dots/loading-dots.d.ts +57 -0
  9. package/dist/cjs/types/components/paragraph/paragraph.d.ts +57 -0
  10. package/dist/cjs/types/hooks/use-breakpoint.d.ts +4 -6
  11. package/dist/cjs/types/styles/common-styles.d.ts +57 -0
  12. package/dist/cjs/types/theme/foundations/index.d.ts +57 -0
  13. package/dist/cjs/types/theme/foundations/radius.d.ts +1 -0
  14. package/dist/cjs/types/theme/foundations/typography.d.ts +56 -0
  15. package/dist/cjs/types/theme/theme-tools.d.ts +57 -0
  16. package/dist/cjs/types/theme/theme.d.ts +57 -0
  17. package/dist/esm/index.js +1 -1
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/types/components/button/button-styles.d.ts +114 -0
  20. package/dist/esm/types/components/heading/heading.d.ts +58 -10
  21. package/dist/esm/types/components/icon/create-icon.d.ts +57 -0
  22. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +114 -0
  23. package/dist/esm/types/components/label/label.d.ts +57 -0
  24. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +57 -0
  25. package/dist/esm/types/components/paragraph/paragraph.d.ts +57 -0
  26. package/dist/esm/types/hooks/use-breakpoint.d.ts +4 -6
  27. package/dist/esm/types/styles/common-styles.d.ts +57 -0
  28. package/dist/esm/types/theme/foundations/index.d.ts +57 -0
  29. package/dist/esm/types/theme/foundations/radius.d.ts +1 -0
  30. package/dist/esm/types/theme/foundations/typography.d.ts +56 -0
  31. package/dist/esm/types/theme/theme-tools.d.ts +57 -0
  32. package/dist/esm/types/theme/theme.d.ts +57 -0
  33. package/dist/index.d.ts +689 -16
  34. package/package.json +14 -13
  35. package/dist/cjs/types/utils/test-utils.d.ts +0 -14
  36. package/dist/esm/types/utils/test-utils.d.ts +0 -14
@@ -195,6 +195,7 @@ declare const getSizeStyles: (theme: {
195
195
  };
196
196
  radii: {
197
197
  none: string;
198
+ '2xs': string;
198
199
  xs: string;
199
200
  sm: string;
200
201
  md: string;
@@ -211,6 +212,30 @@ declare const getSizeStyles: (theme: {
211
212
  };
212
213
  typography: {
213
214
  display: {
215
+ '3xl': {
216
+ fontFamily: string;
217
+ fontWeight: string;
218
+ fontSize: string;
219
+ lineHeight: string;
220
+ letterSpacing: string;
221
+ fontFeatureSettings: string;
222
+ };
223
+ '2xl': {
224
+ fontFamily: string;
225
+ fontWeight: string;
226
+ fontSize: string;
227
+ lineHeight: string;
228
+ letterSpacing: string;
229
+ fontFeatureSettings: string;
230
+ };
231
+ xl: {
232
+ fontFamily: string;
233
+ fontWeight: string;
234
+ fontSize: string;
235
+ lineHeight: string;
236
+ letterSpacing: string;
237
+ fontFeatureSettings: string;
238
+ };
214
239
  lg: {
215
240
  fontFamily: string;
216
241
  fontWeight: string;
@@ -227,6 +252,22 @@ declare const getSizeStyles: (theme: {
227
252
  letterSpacing: string;
228
253
  fontFeatureSettings: string;
229
254
  };
255
+ sm: {
256
+ fontFamily: string;
257
+ fontWeight: string;
258
+ fontSize: string;
259
+ lineHeight: string;
260
+ letterSpacing: string;
261
+ fontFeatureSettings: string;
262
+ };
263
+ xs: {
264
+ fontFamily: string;
265
+ fontWeight: string;
266
+ fontSize: string;
267
+ lineHeight: string;
268
+ letterSpacing: string;
269
+ fontFeatureSettings: string;
270
+ };
230
271
  };
231
272
  title: {
232
273
  lg: {
@@ -325,6 +366,22 @@ declare const getSizeStyles: (theme: {
325
366
  letterSpacing: string;
326
367
  };
327
368
  };
369
+ button: {
370
+ md: {
371
+ fontFamily: string;
372
+ fontWeight: string;
373
+ fontSize: string;
374
+ lineHeight: string;
375
+ letterSpacing: string;
376
+ };
377
+ sm: {
378
+ fontFamily: string;
379
+ fontWeight: string;
380
+ fontSize: string;
381
+ lineHeight: string;
382
+ letterSpacing: string;
383
+ };
384
+ };
328
385
  caption: {
329
386
  md: {
330
387
  fontFamily: string;
@@ -1,11 +1,9 @@
1
1
  export interface UseBreakpointOptions {
2
2
  /**
3
- * If `true` the intital value will be `base` instead of the current breakpoint.
4
- * This is to support hydration when using SSR.
3
+ * If `true` the initial value will be `base` instead of the current breakpoint.
4
+ * This is to support hydration when using server side rendering.
5
5
  *
6
- * If you're creating a client-side rendered app, you can pass `false` to get the correct value on the first render.
7
- *
8
- * @default true
6
+ * @default false
9
7
  */
10
8
  ssr?: boolean;
11
9
  }
@@ -13,5 +11,5 @@ export interface UseBreakpointOptions {
13
11
  * Hook for getting the current breakpoint.
14
12
  */
15
13
  export declare function useBreakpoint(params?: UseBreakpointOptions): {
16
- currentBreakpoint: "2xl" | "base" | "lg" | "md" | "sm" | "xl";
14
+ currentBreakpoint: "2xl" | "base" | "xl" | "lg" | "md" | "sm";
17
15
  };
@@ -192,6 +192,7 @@ export declare const getFormFieldBaseStyles: (theme: {
192
192
  };
193
193
  radii: {
194
194
  none: string;
195
+ '2xs': string;
195
196
  xs: string;
196
197
  sm: string;
197
198
  md: string;
@@ -208,6 +209,30 @@ export declare const getFormFieldBaseStyles: (theme: {
208
209
  };
209
210
  typography: {
210
211
  display: {
212
+ '3xl': {
213
+ fontFamily: string;
214
+ fontWeight: string;
215
+ fontSize: string;
216
+ lineHeight: string;
217
+ letterSpacing: string;
218
+ fontFeatureSettings: string;
219
+ };
220
+ '2xl': {
221
+ fontFamily: string;
222
+ fontWeight: string;
223
+ fontSize: string;
224
+ lineHeight: string;
225
+ letterSpacing: string;
226
+ fontFeatureSettings: string;
227
+ };
228
+ xl: {
229
+ fontFamily: string;
230
+ fontWeight: string;
231
+ fontSize: string;
232
+ lineHeight: string;
233
+ letterSpacing: string;
234
+ fontFeatureSettings: string;
235
+ };
211
236
  lg: {
212
237
  fontFamily: string;
213
238
  fontWeight: string;
@@ -224,6 +249,22 @@ export declare const getFormFieldBaseStyles: (theme: {
224
249
  letterSpacing: string;
225
250
  fontFeatureSettings: string;
226
251
  };
252
+ sm: {
253
+ fontFamily: string;
254
+ fontWeight: string;
255
+ fontSize: string;
256
+ lineHeight: string;
257
+ letterSpacing: string;
258
+ fontFeatureSettings: string;
259
+ };
260
+ xs: {
261
+ fontFamily: string;
262
+ fontWeight: string;
263
+ fontSize: string;
264
+ lineHeight: string;
265
+ letterSpacing: string;
266
+ fontFeatureSettings: string;
267
+ };
227
268
  };
228
269
  title: {
229
270
  lg: {
@@ -322,6 +363,22 @@ export declare const getFormFieldBaseStyles: (theme: {
322
363
  letterSpacing: string;
323
364
  };
324
365
  };
366
+ button: {
367
+ md: {
368
+ fontFamily: string;
369
+ fontWeight: string;
370
+ fontSize: string;
371
+ lineHeight: string;
372
+ letterSpacing: string;
373
+ };
374
+ sm: {
375
+ fontFamily: string;
376
+ fontWeight: string;
377
+ fontSize: string;
378
+ lineHeight: string;
379
+ letterSpacing: string;
380
+ };
381
+ };
325
382
  caption: {
326
383
  md: {
327
384
  fontFamily: string;
@@ -197,6 +197,7 @@ export declare const foundations: {
197
197
  };
198
198
  radii: {
199
199
  none: string;
200
+ '2xs': string;
200
201
  xs: string;
201
202
  sm: string;
202
203
  md: string;
@@ -213,6 +214,30 @@ export declare const foundations: {
213
214
  };
214
215
  typography: {
215
216
  display: {
217
+ '3xl': {
218
+ fontFamily: string;
219
+ fontWeight: string;
220
+ fontSize: string;
221
+ lineHeight: string;
222
+ letterSpacing: string;
223
+ fontFeatureSettings: string;
224
+ };
225
+ '2xl': {
226
+ fontFamily: string;
227
+ fontWeight: string;
228
+ fontSize: string;
229
+ lineHeight: string;
230
+ letterSpacing: string;
231
+ fontFeatureSettings: string;
232
+ };
233
+ xl: {
234
+ fontFamily: string;
235
+ fontWeight: string;
236
+ fontSize: string;
237
+ lineHeight: string;
238
+ letterSpacing: string;
239
+ fontFeatureSettings: string;
240
+ };
216
241
  lg: {
217
242
  fontFamily: string;
218
243
  fontWeight: string;
@@ -229,6 +254,22 @@ export declare const foundations: {
229
254
  letterSpacing: string;
230
255
  fontFeatureSettings: string;
231
256
  };
257
+ sm: {
258
+ fontFamily: string;
259
+ fontWeight: string;
260
+ fontSize: string;
261
+ lineHeight: string;
262
+ letterSpacing: string;
263
+ fontFeatureSettings: string;
264
+ };
265
+ xs: {
266
+ fontFamily: string;
267
+ fontWeight: string;
268
+ fontSize: string;
269
+ lineHeight: string;
270
+ letterSpacing: string;
271
+ fontFeatureSettings: string;
272
+ };
232
273
  };
233
274
  title: {
234
275
  lg: {
@@ -327,6 +368,22 @@ export declare const foundations: {
327
368
  letterSpacing: string;
328
369
  };
329
370
  };
371
+ button: {
372
+ md: {
373
+ fontFamily: string;
374
+ fontWeight: string;
375
+ fontSize: string;
376
+ lineHeight: string;
377
+ letterSpacing: string;
378
+ };
379
+ sm: {
380
+ fontFamily: string;
381
+ fontWeight: string;
382
+ fontSize: string;
383
+ lineHeight: string;
384
+ letterSpacing: string;
385
+ };
386
+ };
330
387
  caption: {
331
388
  md: {
332
389
  fontFamily: string;
@@ -1,5 +1,6 @@
1
1
  export declare const radii: {
2
2
  none: string;
3
+ '2xs': string;
3
4
  xs: string;
4
5
  sm: string;
5
6
  md: string;
@@ -1,5 +1,29 @@
1
1
  export declare const typography: {
2
2
  display: {
3
+ '3xl': {
4
+ fontFamily: string;
5
+ fontWeight: string;
6
+ fontSize: string;
7
+ lineHeight: string;
8
+ letterSpacing: string;
9
+ fontFeatureSettings: string;
10
+ };
11
+ '2xl': {
12
+ fontFamily: string;
13
+ fontWeight: string;
14
+ fontSize: string;
15
+ lineHeight: string;
16
+ letterSpacing: string;
17
+ fontFeatureSettings: string;
18
+ };
19
+ xl: {
20
+ fontFamily: string;
21
+ fontWeight: string;
22
+ fontSize: string;
23
+ lineHeight: string;
24
+ letterSpacing: string;
25
+ fontFeatureSettings: string;
26
+ };
3
27
  lg: {
4
28
  fontFamily: string;
5
29
  fontWeight: string;
@@ -16,6 +40,22 @@ export declare const typography: {
16
40
  letterSpacing: string;
17
41
  fontFeatureSettings: string;
18
42
  };
43
+ sm: {
44
+ fontFamily: string;
45
+ fontWeight: string;
46
+ fontSize: string;
47
+ lineHeight: string;
48
+ letterSpacing: string;
49
+ fontFeatureSettings: string;
50
+ };
51
+ xs: {
52
+ fontFamily: string;
53
+ fontWeight: string;
54
+ fontSize: string;
55
+ lineHeight: string;
56
+ letterSpacing: string;
57
+ fontFeatureSettings: string;
58
+ };
19
59
  };
20
60
  title: {
21
61
  lg: {
@@ -114,6 +154,22 @@ export declare const typography: {
114
154
  letterSpacing: string;
115
155
  };
116
156
  };
157
+ button: {
158
+ md: {
159
+ fontFamily: string;
160
+ fontWeight: string;
161
+ fontSize: string;
162
+ lineHeight: string;
163
+ letterSpacing: string;
164
+ };
165
+ sm: {
166
+ fontFamily: string;
167
+ fontWeight: string;
168
+ fontSize: string;
169
+ lineHeight: string;
170
+ letterSpacing: string;
171
+ };
172
+ };
117
173
  caption: {
118
174
  md: {
119
175
  fontFamily: string;
@@ -15,6 +15,30 @@ export interface ThemeOverrides {
15
15
  export declare const overrideTheme: (overrides: ThemeOverrides) => {
16
16
  typography: {
17
17
  display: {
18
+ '3xl': {
19
+ fontFamily: string;
20
+ fontWeight: string;
21
+ fontSize: string;
22
+ lineHeight: string;
23
+ letterSpacing: string;
24
+ fontFeatureSettings: string;
25
+ };
26
+ '2xl': {
27
+ fontFamily: string;
28
+ fontWeight: string;
29
+ fontSize: string;
30
+ lineHeight: string;
31
+ letterSpacing: string;
32
+ fontFeatureSettings: string;
33
+ };
34
+ xl: {
35
+ fontFamily: string;
36
+ fontWeight: string;
37
+ fontSize: string;
38
+ lineHeight: string;
39
+ letterSpacing: string;
40
+ fontFeatureSettings: string;
41
+ };
18
42
  lg: {
19
43
  fontFamily: string;
20
44
  fontWeight: string;
@@ -31,6 +55,22 @@ export declare const overrideTheme: (overrides: ThemeOverrides) => {
31
55
  letterSpacing: string;
32
56
  fontFeatureSettings: string;
33
57
  };
58
+ sm: {
59
+ fontFamily: string;
60
+ fontWeight: string;
61
+ fontSize: string;
62
+ lineHeight: string;
63
+ letterSpacing: string;
64
+ fontFeatureSettings: string;
65
+ };
66
+ xs: {
67
+ fontFamily: string;
68
+ fontWeight: string;
69
+ fontSize: string;
70
+ lineHeight: string;
71
+ letterSpacing: string;
72
+ fontFeatureSettings: string;
73
+ };
34
74
  };
35
75
  title: {
36
76
  lg: {
@@ -129,6 +169,22 @@ export declare const overrideTheme: (overrides: ThemeOverrides) => {
129
169
  letterSpacing: string;
130
170
  };
131
171
  };
172
+ button: {
173
+ md: {
174
+ fontFamily: string;
175
+ fontWeight: string;
176
+ fontSize: string;
177
+ lineHeight: string;
178
+ letterSpacing: string;
179
+ };
180
+ sm: {
181
+ fontFamily: string;
182
+ fontWeight: string;
183
+ fontSize: string;
184
+ lineHeight: string;
185
+ letterSpacing: string;
186
+ };
187
+ };
132
188
  caption: {
133
189
  md: {
134
190
  fontFamily: string;
@@ -339,6 +395,7 @@ export declare const overrideTheme: (overrides: ThemeOverrides) => {
339
395
  };
340
396
  radii: {
341
397
  none: string;
398
+ '2xs': string;
342
399
  xs: string;
343
400
  sm: string;
344
401
  md: string;
@@ -192,6 +192,7 @@ export declare const theme: {
192
192
  };
193
193
  radii: {
194
194
  none: string;
195
+ '2xs': string;
195
196
  xs: string;
196
197
  sm: string;
197
198
  md: string;
@@ -208,6 +209,30 @@ export declare const theme: {
208
209
  };
209
210
  typography: {
210
211
  display: {
212
+ '3xl': {
213
+ fontFamily: string;
214
+ fontWeight: string;
215
+ fontSize: string;
216
+ lineHeight: string;
217
+ letterSpacing: string;
218
+ fontFeatureSettings: string;
219
+ };
220
+ '2xl': {
221
+ fontFamily: string;
222
+ fontWeight: string;
223
+ fontSize: string;
224
+ lineHeight: string;
225
+ letterSpacing: string;
226
+ fontFeatureSettings: string;
227
+ };
228
+ xl: {
229
+ fontFamily: string;
230
+ fontWeight: string;
231
+ fontSize: string;
232
+ lineHeight: string;
233
+ letterSpacing: string;
234
+ fontFeatureSettings: string;
235
+ };
211
236
  lg: {
212
237
  fontFamily: string;
213
238
  fontWeight: string;
@@ -224,6 +249,22 @@ export declare const theme: {
224
249
  letterSpacing: string;
225
250
  fontFeatureSettings: string;
226
251
  };
252
+ sm: {
253
+ fontFamily: string;
254
+ fontWeight: string;
255
+ fontSize: string;
256
+ lineHeight: string;
257
+ letterSpacing: string;
258
+ fontFeatureSettings: string;
259
+ };
260
+ xs: {
261
+ fontFamily: string;
262
+ fontWeight: string;
263
+ fontSize: string;
264
+ lineHeight: string;
265
+ letterSpacing: string;
266
+ fontFeatureSettings: string;
267
+ };
227
268
  };
228
269
  title: {
229
270
  lg: {
@@ -322,6 +363,22 @@ export declare const theme: {
322
363
  letterSpacing: string;
323
364
  };
324
365
  };
366
+ button: {
367
+ md: {
368
+ fontFamily: string;
369
+ fontWeight: string;
370
+ fontSize: string;
371
+ lineHeight: string;
372
+ letterSpacing: string;
373
+ };
374
+ sm: {
375
+ fontFamily: string;
376
+ fontWeight: string;
377
+ fontSize: string;
378
+ lineHeight: string;
379
+ letterSpacing: string;
380
+ };
381
+ };
325
382
  caption: {
326
383
  md: {
327
384
  fontFamily: string;