@qasa/qds-ui 0.10.0-next.6 → 0.10.0-next.8
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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/checkbox/checkbox.d.ts +70 -0
- package/dist/cjs/types/components/checkbox/index.d.ts +1 -0
- package/dist/cjs/types/components/display-text/display-text.d.ts +29 -0
- package/dist/cjs/types/components/display-text/index.d.ts +1 -0
- package/dist/cjs/types/components/heading/heading.d.ts +1 -445
- package/dist/cjs/types/styles/common-styles.d.ts +1 -1
- package/dist/cjs/types/utils/html-attributes.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/checkbox/checkbox.d.ts +70 -0
- package/dist/esm/types/components/checkbox/index.d.ts +1 -0
- package/dist/esm/types/components/display-text/display-text.d.ts +29 -0
- package/dist/esm/types/components/display-text/index.d.ts +1 -0
- package/dist/esm/types/components/heading/heading.d.ts +1 -445
- package/dist/esm/types/styles/common-styles.d.ts +1 -1
- package/dist/esm/types/utils/html-attributes.d.ts +1 -0
- package/dist/index.d.ts +4 -447
- package/package.json +2 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
interface CheckboxOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The label for the checkbox. Accepts a string, or a React component for rendering links within the label.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```jsx
|
|
9
|
+
* <Checkbox label="I agree to the terms and conditions" />
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```jsx
|
|
14
|
+
* <Checkbox
|
|
15
|
+
* label={
|
|
16
|
+
* <>
|
|
17
|
+
* I agree to <Link href="/terms">the terms and conditions</Link>
|
|
18
|
+
* </>
|
|
19
|
+
* }
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
label: string | ReactElement<unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
|
|
26
|
+
*/
|
|
27
|
+
isDefaultChecked?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
|
|
30
|
+
*/
|
|
31
|
+
defaultChecked?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The controlled checked state of the checkbox. Must be used in conjunction with `onCheckedChange`.
|
|
34
|
+
*/
|
|
35
|
+
isChecked?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The controlled checked state of the checkbox. Must be used in conjunction with `onCheckedChange`.
|
|
38
|
+
*/
|
|
39
|
+
checked?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Event handler called when the checked state of the checkbox changes.
|
|
42
|
+
*/
|
|
43
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
44
|
+
/**
|
|
45
|
+
* If `true` the checkbox will render in its invalid state.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
isInvalid?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If `true` it prevents the user from interacting with the checkbox.
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
isDisabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* If `true` the user must check the checkbox before the owning form can be submitted.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
isRequired?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The name of the checkbox. Submitted with its owning form as part of a name/value pair.
|
|
61
|
+
*/
|
|
62
|
+
name?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The value given as data when submitted with a `name`.
|
|
65
|
+
*/
|
|
66
|
+
value?: string;
|
|
67
|
+
}
|
|
68
|
+
export declare type CheckboxProps = Omit<CheckboxPrimitive.CheckboxProps, 'asChild' | 'children' | 'checked' | 'defaultChecked' | keyof CheckboxOptions> & CheckboxOptions;
|
|
69
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps, "children" | "asChild" | keyof CheckboxOptions> & CheckboxOptions & import("react").RefAttributes<HTMLButtonElement>>;
|
|
70
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './checkbox';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as Polymorphic from '../../utils/polymorphic';
|
|
2
|
+
import type { Theme } from '../../theme';
|
|
3
|
+
declare type DisplaySize = keyof Theme['typography']['display'];
|
|
4
|
+
declare type DisplayTextAlign = 'left' | 'center' | 'right';
|
|
5
|
+
declare type DisplayTextWrap = 'pretty' | 'balance' | 'wrap' | 'nowrap' | 'stable';
|
|
6
|
+
interface DisplayTextOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Sets the visual size of the display text.
|
|
9
|
+
* To override the rendered tag, use the `as` prop.
|
|
10
|
+
*
|
|
11
|
+
* @default 'md'
|
|
12
|
+
*/
|
|
13
|
+
size?: DisplaySize;
|
|
14
|
+
/**
|
|
15
|
+
* Sets the text alignment
|
|
16
|
+
* @default 'left'
|
|
17
|
+
*/
|
|
18
|
+
textAlign?: DisplayTextAlign;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the text wrapping
|
|
21
|
+
* @default 'pretty'
|
|
22
|
+
* Read more on [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap)
|
|
23
|
+
*/
|
|
24
|
+
textWrap?: DisplayTextWrap;
|
|
25
|
+
}
|
|
26
|
+
declare type DisplayTextComponent = Polymorphic.ForwardRefComponent<'h2', DisplayTextOptions>;
|
|
27
|
+
export declare type DisplayTextProps = Polymorphic.PropsOf<DisplayTextComponent>;
|
|
28
|
+
export declare const DisplayText: DisplayTextComponent;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './display-text';
|
|
@@ -1,454 +1,10 @@
|
|
|
1
|
-
import type { VariantProps } from '../../styles';
|
|
2
1
|
import type * as Polymorphic from '../../utils/polymorphic';
|
|
3
2
|
import type { Theme } from '../../theme';
|
|
4
|
-
declare
|
|
5
|
-
mediaQueries: {
|
|
6
|
-
readonly smUp: "@media(min-width: 480px)";
|
|
7
|
-
readonly mdUp: "@media(min-width: 768px)";
|
|
8
|
-
readonly lgUp: "@media(min-width: 1024px)";
|
|
9
|
-
readonly xlUp: "@media(min-width: 1280px)";
|
|
10
|
-
readonly '2xlUp': "@media(min-width: 1536px)";
|
|
11
|
-
};
|
|
12
|
-
spacing: {
|
|
13
|
-
'0x': string;
|
|
14
|
-
'1x': string;
|
|
15
|
-
'2x': string;
|
|
16
|
-
'3x': string;
|
|
17
|
-
'4x': string;
|
|
18
|
-
'5x': string;
|
|
19
|
-
'6x': string;
|
|
20
|
-
'8x': string;
|
|
21
|
-
'12x': string;
|
|
22
|
-
'16x': string;
|
|
23
|
-
'20x': string;
|
|
24
|
-
'24x': string;
|
|
25
|
-
};
|
|
26
|
-
breakpoints: {
|
|
27
|
-
readonly base: 0;
|
|
28
|
-
readonly sm: 480;
|
|
29
|
-
readonly md: 768;
|
|
30
|
-
readonly lg: 1024;
|
|
31
|
-
readonly xl: 1280;
|
|
32
|
-
readonly '2xl': 1536;
|
|
33
|
-
};
|
|
34
|
-
zIndices: {
|
|
35
|
-
hide: number;
|
|
36
|
-
auto: string;
|
|
37
|
-
base: number;
|
|
38
|
-
docked: number;
|
|
39
|
-
dropdown: number;
|
|
40
|
-
sticky: number;
|
|
41
|
-
banner: number;
|
|
42
|
-
overlay: number;
|
|
43
|
-
modal: number;
|
|
44
|
-
popover: number;
|
|
45
|
-
skipLink: number;
|
|
46
|
-
toast: number;
|
|
47
|
-
tooltip: number;
|
|
48
|
-
};
|
|
49
|
-
colors: {
|
|
50
|
-
core: {
|
|
51
|
-
black: string;
|
|
52
|
-
white: string;
|
|
53
|
-
gray90: string;
|
|
54
|
-
gray80: string;
|
|
55
|
-
gray70: string;
|
|
56
|
-
gray60: string;
|
|
57
|
-
gray50: string;
|
|
58
|
-
gray40: string;
|
|
59
|
-
gray30: string;
|
|
60
|
-
gray20: string;
|
|
61
|
-
gray10: string;
|
|
62
|
-
uiPink: string;
|
|
63
|
-
uiPinkDark: string;
|
|
64
|
-
uiPinkLight: string;
|
|
65
|
-
brown: string;
|
|
66
|
-
brownDark: string;
|
|
67
|
-
brownLight: string;
|
|
68
|
-
offWhite: string;
|
|
69
|
-
offWhiteDark: string;
|
|
70
|
-
offWhiteLight: string;
|
|
71
|
-
softPink: string;
|
|
72
|
-
warmYellow: string;
|
|
73
|
-
softYellow: string;
|
|
74
|
-
red10: string;
|
|
75
|
-
red20: string;
|
|
76
|
-
red30: string;
|
|
77
|
-
red40: string;
|
|
78
|
-
red50: string;
|
|
79
|
-
red60: string;
|
|
80
|
-
red70: string;
|
|
81
|
-
red80: string;
|
|
82
|
-
red90: string;
|
|
83
|
-
green90: string;
|
|
84
|
-
green80: string;
|
|
85
|
-
green70: string;
|
|
86
|
-
green60: string;
|
|
87
|
-
green50: string;
|
|
88
|
-
green40: string;
|
|
89
|
-
green30: string;
|
|
90
|
-
green20: string;
|
|
91
|
-
green10: string;
|
|
92
|
-
blue90: string;
|
|
93
|
-
blue80: string;
|
|
94
|
-
blue70: string;
|
|
95
|
-
blue60: string;
|
|
96
|
-
blue50: string;
|
|
97
|
-
blue40: string;
|
|
98
|
-
blue30: string;
|
|
99
|
-
blue20: string;
|
|
100
|
-
blue10: string;
|
|
101
|
-
yellow90: string;
|
|
102
|
-
yellow80: string;
|
|
103
|
-
yellow70: string;
|
|
104
|
-
yellow60: string;
|
|
105
|
-
yellow50: string;
|
|
106
|
-
yellow40: string;
|
|
107
|
-
yellow30: string;
|
|
108
|
-
yellow20: string;
|
|
109
|
-
yellow10: string;
|
|
110
|
-
blackAlpha20: string;
|
|
111
|
-
};
|
|
112
|
-
bg: {
|
|
113
|
-
default: string;
|
|
114
|
-
brandPrimary: string;
|
|
115
|
-
brandPrimaryHover: string;
|
|
116
|
-
brandPrimaryActive: string;
|
|
117
|
-
brandSecondary: string;
|
|
118
|
-
brandSecondaryHover: string;
|
|
119
|
-
brandSecondaryActive: string;
|
|
120
|
-
brandTertiary: string;
|
|
121
|
-
brandTertiaryHover: string;
|
|
122
|
-
brandTertiaryActive: string;
|
|
123
|
-
negative: string;
|
|
124
|
-
warning: string;
|
|
125
|
-
positive: string;
|
|
126
|
-
inset: string;
|
|
127
|
-
backdrop: string;
|
|
128
|
-
};
|
|
129
|
-
text: {
|
|
130
|
-
strong: string;
|
|
131
|
-
default: string;
|
|
132
|
-
subtle: string;
|
|
133
|
-
disabled: string;
|
|
134
|
-
negative: string;
|
|
135
|
-
warning: string;
|
|
136
|
-
positive: string;
|
|
137
|
-
onBrandPrimary: string;
|
|
138
|
-
onBrandSecondary: string;
|
|
139
|
-
onBrandTertiary: string;
|
|
140
|
-
};
|
|
141
|
-
icon: {
|
|
142
|
-
default: string;
|
|
143
|
-
strong: string;
|
|
144
|
-
subtle: string;
|
|
145
|
-
disabled: string;
|
|
146
|
-
negative: string;
|
|
147
|
-
warning: string;
|
|
148
|
-
positive: string;
|
|
149
|
-
onBrandPrimary: string;
|
|
150
|
-
onBrandSecondary: string;
|
|
151
|
-
onBrandTertiary: string;
|
|
152
|
-
};
|
|
153
|
-
border: {
|
|
154
|
-
default: string;
|
|
155
|
-
defaultHover: string;
|
|
156
|
-
defaultSelected: string;
|
|
157
|
-
strong: string;
|
|
158
|
-
subtle: string;
|
|
159
|
-
negative: string;
|
|
160
|
-
warning: string;
|
|
161
|
-
positive: string;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
sizes: {
|
|
165
|
-
112: string;
|
|
166
|
-
128: string;
|
|
167
|
-
144: string;
|
|
168
|
-
160: string;
|
|
169
|
-
176: string;
|
|
170
|
-
192: string;
|
|
171
|
-
224: string;
|
|
172
|
-
256: string;
|
|
173
|
-
288: string;
|
|
174
|
-
320: string;
|
|
175
|
-
384: string;
|
|
176
|
-
448: string;
|
|
177
|
-
512: string;
|
|
178
|
-
576: string;
|
|
179
|
-
672: string;
|
|
180
|
-
768: string;
|
|
181
|
-
896: string;
|
|
182
|
-
1024: string;
|
|
183
|
-
'0x': string;
|
|
184
|
-
'1x': string;
|
|
185
|
-
'2x': string;
|
|
186
|
-
'3x': string;
|
|
187
|
-
'4x': string;
|
|
188
|
-
'5x': string;
|
|
189
|
-
'6x': string;
|
|
190
|
-
'8x': string;
|
|
191
|
-
'12x': string;
|
|
192
|
-
'16x': string;
|
|
193
|
-
'20x': string;
|
|
194
|
-
'24x': string;
|
|
195
|
-
};
|
|
196
|
-
radii: {
|
|
197
|
-
none: string;
|
|
198
|
-
'2xs': string;
|
|
199
|
-
xs: string;
|
|
200
|
-
sm: string;
|
|
201
|
-
md: string;
|
|
202
|
-
lg: string;
|
|
203
|
-
xl: string;
|
|
204
|
-
full: string;
|
|
205
|
-
};
|
|
206
|
-
shadows: {
|
|
207
|
-
none: string;
|
|
208
|
-
sm: string;
|
|
209
|
-
md: string;
|
|
210
|
-
lg: string;
|
|
211
|
-
xl: string;
|
|
212
|
-
};
|
|
213
|
-
typography: {
|
|
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
|
-
};
|
|
239
|
-
lg: {
|
|
240
|
-
fontFamily: string;
|
|
241
|
-
fontWeight: string;
|
|
242
|
-
fontSize: string;
|
|
243
|
-
lineHeight: string;
|
|
244
|
-
letterSpacing: string;
|
|
245
|
-
fontFeatureSettings: string;
|
|
246
|
-
};
|
|
247
|
-
md: {
|
|
248
|
-
fontFamily: string;
|
|
249
|
-
fontWeight: string;
|
|
250
|
-
fontSize: string;
|
|
251
|
-
lineHeight: string;
|
|
252
|
-
letterSpacing: string;
|
|
253
|
-
fontFeatureSettings: string;
|
|
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
|
-
};
|
|
271
|
-
};
|
|
272
|
-
title: {
|
|
273
|
-
lg: {
|
|
274
|
-
fontFamily: string;
|
|
275
|
-
fontWeight: string;
|
|
276
|
-
fontSize: string;
|
|
277
|
-
lineHeight: string;
|
|
278
|
-
letterSpacing: string;
|
|
279
|
-
};
|
|
280
|
-
md: {
|
|
281
|
-
fontFamily: string;
|
|
282
|
-
fontWeight: string;
|
|
283
|
-
fontSize: string;
|
|
284
|
-
lineHeight: string;
|
|
285
|
-
letterSpacing: string;
|
|
286
|
-
};
|
|
287
|
-
sm: {
|
|
288
|
-
fontFamily: string;
|
|
289
|
-
fontWeight: string;
|
|
290
|
-
fontSize: string;
|
|
291
|
-
lineHeight: string;
|
|
292
|
-
letterSpacing: string;
|
|
293
|
-
};
|
|
294
|
-
xs: {
|
|
295
|
-
fontFamily: string;
|
|
296
|
-
fontWeight: string;
|
|
297
|
-
fontSize: string;
|
|
298
|
-
lineHeight: string;
|
|
299
|
-
letterSpacing: string;
|
|
300
|
-
};
|
|
301
|
-
'2xs': {
|
|
302
|
-
fontFamily: string;
|
|
303
|
-
fontWeight: string;
|
|
304
|
-
fontSize: string;
|
|
305
|
-
lineHeight: string;
|
|
306
|
-
letterSpacing: string;
|
|
307
|
-
};
|
|
308
|
-
'3xs': {
|
|
309
|
-
fontFamily: string;
|
|
310
|
-
fontWeight: string;
|
|
311
|
-
fontSize: string;
|
|
312
|
-
lineHeight: string;
|
|
313
|
-
letterSpacing: string;
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
body: {
|
|
317
|
-
xl: {
|
|
318
|
-
fontFamily: string;
|
|
319
|
-
fontWeight: string;
|
|
320
|
-
fontSize: string;
|
|
321
|
-
lineHeight: string;
|
|
322
|
-
letterSpacing: string;
|
|
323
|
-
};
|
|
324
|
-
lg: {
|
|
325
|
-
fontFamily: string;
|
|
326
|
-
fontWeight: string;
|
|
327
|
-
fontSize: string;
|
|
328
|
-
lineHeight: string;
|
|
329
|
-
letterSpacing: string;
|
|
330
|
-
};
|
|
331
|
-
md: {
|
|
332
|
-
fontFamily: string;
|
|
333
|
-
fontWeight: string;
|
|
334
|
-
fontSize: string;
|
|
335
|
-
lineHeight: string;
|
|
336
|
-
letterSpacing: string;
|
|
337
|
-
};
|
|
338
|
-
sm: {
|
|
339
|
-
fontFamily: string;
|
|
340
|
-
fontWeight: string;
|
|
341
|
-
fontSize: string;
|
|
342
|
-
lineHeight: string;
|
|
343
|
-
letterSpacing: string;
|
|
344
|
-
};
|
|
345
|
-
xs: {
|
|
346
|
-
fontFamily: string;
|
|
347
|
-
fontWeight: string;
|
|
348
|
-
fontSize: string;
|
|
349
|
-
lineHeight: string;
|
|
350
|
-
letterSpacing: string;
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
label: {
|
|
354
|
-
md: {
|
|
355
|
-
fontFamily: string;
|
|
356
|
-
fontWeight: string;
|
|
357
|
-
fontSize: string;
|
|
358
|
-
lineHeight: string;
|
|
359
|
-
letterSpacing: string;
|
|
360
|
-
};
|
|
361
|
-
sm: {
|
|
362
|
-
fontFamily: string;
|
|
363
|
-
fontWeight: string;
|
|
364
|
-
fontSize: string;
|
|
365
|
-
lineHeight: string;
|
|
366
|
-
letterSpacing: string;
|
|
367
|
-
};
|
|
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
|
-
};
|
|
385
|
-
caption: {
|
|
386
|
-
md: {
|
|
387
|
-
fontFamily: string;
|
|
388
|
-
fontWeight: string;
|
|
389
|
-
fontSize: string;
|
|
390
|
-
lineHeight: string;
|
|
391
|
-
letterSpacing: string;
|
|
392
|
-
};
|
|
393
|
-
sm: {
|
|
394
|
-
fontFamily: string;
|
|
395
|
-
fontWeight: string;
|
|
396
|
-
fontSize: string;
|
|
397
|
-
lineHeight: string;
|
|
398
|
-
letterSpacing: string;
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
}) => {
|
|
403
|
-
lg: {
|
|
404
|
-
fontFamily: string;
|
|
405
|
-
fontWeight: string;
|
|
406
|
-
fontSize: string;
|
|
407
|
-
lineHeight: string;
|
|
408
|
-
letterSpacing: string;
|
|
409
|
-
};
|
|
410
|
-
md: {
|
|
411
|
-
fontFamily: string;
|
|
412
|
-
fontWeight: string;
|
|
413
|
-
fontSize: string;
|
|
414
|
-
lineHeight: string;
|
|
415
|
-
letterSpacing: string;
|
|
416
|
-
};
|
|
417
|
-
sm: {
|
|
418
|
-
fontFamily: string;
|
|
419
|
-
fontWeight: string;
|
|
420
|
-
fontSize: string;
|
|
421
|
-
lineHeight: string;
|
|
422
|
-
letterSpacing: string;
|
|
423
|
-
};
|
|
424
|
-
xs: {
|
|
425
|
-
fontFamily: string;
|
|
426
|
-
fontWeight: string;
|
|
427
|
-
fontSize: string;
|
|
428
|
-
lineHeight: string;
|
|
429
|
-
letterSpacing: string;
|
|
430
|
-
};
|
|
431
|
-
'2xs': {
|
|
432
|
-
fontFamily: string;
|
|
433
|
-
fontWeight: string;
|
|
434
|
-
fontSize: string;
|
|
435
|
-
lineHeight: string;
|
|
436
|
-
letterSpacing: string;
|
|
437
|
-
};
|
|
438
|
-
'3xs': {
|
|
439
|
-
fontFamily: string;
|
|
440
|
-
fontWeight: string;
|
|
441
|
-
fontSize: string;
|
|
442
|
-
lineHeight: string;
|
|
443
|
-
letterSpacing: string;
|
|
444
|
-
};
|
|
445
|
-
};
|
|
446
|
-
declare type HeadingSize = VariantProps<typeof getSizeStyles>;
|
|
3
|
+
declare type HeadingSize = keyof Theme['typography']['title'];
|
|
447
4
|
declare type HeadingColor = keyof Theme['colors']['text'];
|
|
448
5
|
interface HeadingOptions {
|
|
449
6
|
/**
|
|
450
7
|
* Sets the visual size of the heading.
|
|
451
|
-
* Also sets the HTML tag used for the heading.
|
|
452
8
|
* To override the rendered tag, use the `as` prop.
|
|
453
9
|
*
|
|
454
10
|
* @default 'md'
|
|
@@ -408,7 +408,7 @@ export declare const getFormFieldBaseStyles: (theme: {
|
|
|
408
408
|
borderColor: string;
|
|
409
409
|
boxShadow: `0 0 0 1px ${string}`;
|
|
410
410
|
};
|
|
411
|
-
'&[aria-invalid=true]': {
|
|
411
|
+
'&[aria-invalid="true"]': {
|
|
412
412
|
borderColor: string;
|
|
413
413
|
'&:focus': {
|
|
414
414
|
boxShadow: `0 0 0 1px ${string}`;
|