@atom-learning/components 1.11.0 → 1.14.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.
- package/CHANGELOG.md +2 -20
- package/dist/components/badge/Badge.d.ts +536 -0
- package/dist/components/badge/Badge.js +1 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/dialog/Dialog.d.ts +3 -1
- package/dist/components/dialog/Dialog.js +1 -1
- package/dist/components/form/Form.js +1 -1
- package/dist/components/form/Form.types.d.ts +3 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/progress-bar/ProgressBar.js +1 -1
- package/dist/components/tabs/TabTrigger.d.ts +1 -1
- package/dist/components/tabs/TabTrigger.js +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +2 -1
- package/dist/components/tooltip/Tooltip.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/docs/Badge.mdx +38 -0
- package/dist/docs/Button.mdx +2 -2
- package/dist/docs/Form.mdx +4 -0
- package/dist/docs/NotificationBadge.mdx +10 -8
- package/dist/docs/Tooltip.mdx +12 -8
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
## [1.14.1](https://github.com/Atom-Learning/components/compare/v1.14.0...v1.14.1) (2022-06-08)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* focus-visible style ([4b9cb3b](https://github.com/Atom-Learning/components/commit/4b9cb3b3a9c56ee46956cc24639bfe73db00193b))
|
|
8
|
-
* pr comments ([29f63a1](https://github.com/Atom-Learning/components/commit/29f63a1975d965149568fdc70906638704a7566c))
|
|
9
|
-
* remove unnecessary specificity ([55e0d35](https://github.com/Atom-Learning/components/commit/55e0d35a5d3e78dddd803a895d004f93a99aa979))
|
|
10
|
-
* Stack only default align if actually undefined ([5c93835](https://github.com/Atom-Learning/components/commit/5c93835fa730ea21e2d16b3052f469b876e2a9e8))
|
|
11
|
-
* ToggleGroup use direction for variants and let orientation pass down to Radix ([271c573](https://github.com/Atom-Learning/components/commit/271c573601f12cf3b9ac3763ef5655c540ad4185))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Features
|
|
15
|
-
|
|
16
|
-
* cleaner way to remove Icon padding ([477da4e](https://github.com/Atom-Learning/components/commit/477da4ed4c2789f6991d222a70a54bb0cba4f211))
|
|
17
|
-
* instal radix togglegroup, update mdast-util-from-markdown ([6169a95](https://github.com/Atom-Learning/components/commit/6169a95a084f67cfcfc5d6befb775f1c4fe587d7))
|
|
18
|
-
* more flexible Stack ([6a67bfb](https://github.com/Atom-Learning/components/commit/6a67bfb0d04b6e88e39e2032c19e9b745d4229be))
|
|
19
|
-
* revert Stack gap to default to 2 ([3a34735](https://github.com/Atom-Learning/components/commit/3a34735adc2aa19aacf624bfb3fe2dcb305041bc))
|
|
20
|
-
* simplify ToggleGroup test ([1a26019](https://github.com/Atom-Learning/components/commit/1a260195fba528f8ddb47e71b056fd15f2b0b47c))
|
|
21
|
-
* Stack change wrap variants to explicit flex-wrap properties ([794e94a](https://github.com/Atom-Learning/components/commit/794e94a64eed2ef106607f5cfdfe00411cb39887))
|
|
22
|
-
* ToggleGroup and ToggleGroupButton ([0e8353e](https://github.com/Atom-Learning/components/commit/0e8353ec06f5bbe2b8314e406b7207529c2046f8))
|
|
23
|
-
* ToggleGroup better doc description ([3ebd878](https://github.com/Atom-Learning/components/commit/3ebd8780ef4d50babbc622edf1ef7dcaa0441f83))
|
|
24
|
-
* ToggleGroup.mdx docs ([4a4c5e5](https://github.com/Atom-Learning/components/commit/4a4c5e5af4a61db81934ffffc076e842498d7d8a))
|
|
6
|
+
* the ProgressBar now accepts absolute values and calculates the percentage based on them ([a62e04b](https://github.com/Atom-Learning/components/commit/a62e04b02d3666276a156f4f2ad15b4848397063))
|
|
25
7
|
|
|
26
8
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
27
9
|
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const StyledBadge: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
reducedMotion: string;
|
|
8
|
+
allowMotion: string;
|
|
9
|
+
hover: string;
|
|
10
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
xl: string;
|
|
15
|
+
reducedMotion: string;
|
|
16
|
+
allowMotion: string;
|
|
17
|
+
hover: string;
|
|
18
|
+
}, {
|
|
19
|
+
colors: {
|
|
20
|
+
textForeground: any;
|
|
21
|
+
textSubtle: any;
|
|
22
|
+
textPlaceholder: any;
|
|
23
|
+
background: any;
|
|
24
|
+
backgroundAccent: any;
|
|
25
|
+
tonal50: any;
|
|
26
|
+
tonal100: any;
|
|
27
|
+
tonal200: any;
|
|
28
|
+
tonal300: any;
|
|
29
|
+
tonal400: any;
|
|
30
|
+
tonal500: any;
|
|
31
|
+
tonal600: any;
|
|
32
|
+
alpha100: any;
|
|
33
|
+
alpha150: any;
|
|
34
|
+
alpha200: any;
|
|
35
|
+
alpha250: any;
|
|
36
|
+
alpha600: any;
|
|
37
|
+
primaryLight: any;
|
|
38
|
+
primary: any;
|
|
39
|
+
primaryMid: any;
|
|
40
|
+
primaryDark: any;
|
|
41
|
+
secondary: any;
|
|
42
|
+
brandRed: any;
|
|
43
|
+
brandRedAccent: any;
|
|
44
|
+
brandGreen: any;
|
|
45
|
+
brandGreenAccent: any;
|
|
46
|
+
brandPurple: any;
|
|
47
|
+
brandPurpleAccent: any;
|
|
48
|
+
brandYellow: any;
|
|
49
|
+
brandYellowAccent: any;
|
|
50
|
+
successLight: any;
|
|
51
|
+
success: any;
|
|
52
|
+
successMid: any;
|
|
53
|
+
successDark: any;
|
|
54
|
+
dangerLight: any;
|
|
55
|
+
danger: any;
|
|
56
|
+
dangerMid: any;
|
|
57
|
+
dangerDark: any;
|
|
58
|
+
warningLight: any;
|
|
59
|
+
warning: any;
|
|
60
|
+
warningMid: any;
|
|
61
|
+
warningDark: any;
|
|
62
|
+
subjectEnglish: any;
|
|
63
|
+
subjectMaths: any;
|
|
64
|
+
subjectScience: any;
|
|
65
|
+
subjectVerbalReasoning: any;
|
|
66
|
+
subjectNonVerbalReasoning: any;
|
|
67
|
+
subjectCreativeWriting: any;
|
|
68
|
+
subjectExamSkills: any;
|
|
69
|
+
};
|
|
70
|
+
space: {
|
|
71
|
+
"0": any;
|
|
72
|
+
"1": any;
|
|
73
|
+
"2": any;
|
|
74
|
+
"3": any;
|
|
75
|
+
"4": any;
|
|
76
|
+
"5": any;
|
|
77
|
+
"6": any;
|
|
78
|
+
"7": any;
|
|
79
|
+
"8": any;
|
|
80
|
+
"9": any;
|
|
81
|
+
};
|
|
82
|
+
fontSizes: {
|
|
83
|
+
xs: any;
|
|
84
|
+
sm: any;
|
|
85
|
+
md: any;
|
|
86
|
+
lg: any;
|
|
87
|
+
xl: any;
|
|
88
|
+
"2xl": any;
|
|
89
|
+
"3xl": any;
|
|
90
|
+
"4xl": any;
|
|
91
|
+
};
|
|
92
|
+
fonts: {
|
|
93
|
+
sans: any;
|
|
94
|
+
mono: any;
|
|
95
|
+
display: any;
|
|
96
|
+
body: any;
|
|
97
|
+
};
|
|
98
|
+
sizes: {
|
|
99
|
+
"0": any;
|
|
100
|
+
"1": any;
|
|
101
|
+
"2": any;
|
|
102
|
+
"3": any;
|
|
103
|
+
"4": any;
|
|
104
|
+
"5": any;
|
|
105
|
+
"6": any;
|
|
106
|
+
"7": any;
|
|
107
|
+
"8": any;
|
|
108
|
+
};
|
|
109
|
+
radii: {
|
|
110
|
+
"0": any;
|
|
111
|
+
"1": any;
|
|
112
|
+
"2": any;
|
|
113
|
+
"3": any;
|
|
114
|
+
round: any;
|
|
115
|
+
};
|
|
116
|
+
shadows: {
|
|
117
|
+
"0": any;
|
|
118
|
+
"1": any;
|
|
119
|
+
"2": any;
|
|
120
|
+
"3": any;
|
|
121
|
+
};
|
|
122
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
123
|
+
bg: (value: {
|
|
124
|
+
readonly [$$PropertyValue]: "background";
|
|
125
|
+
}) => {
|
|
126
|
+
background: {
|
|
127
|
+
readonly [$$PropertyValue]: "background";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
inset: (value: string | number | {
|
|
131
|
+
readonly [$$ScaleValue]: "space";
|
|
132
|
+
}) => {
|
|
133
|
+
top: string | number | {
|
|
134
|
+
readonly [$$ScaleValue]: "space";
|
|
135
|
+
};
|
|
136
|
+
right: string | number | {
|
|
137
|
+
readonly [$$ScaleValue]: "space";
|
|
138
|
+
};
|
|
139
|
+
bottom: string | number | {
|
|
140
|
+
readonly [$$ScaleValue]: "space";
|
|
141
|
+
};
|
|
142
|
+
left: string | number | {
|
|
143
|
+
readonly [$$ScaleValue]: "space";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
size: (value: string | number | {
|
|
147
|
+
readonly [$$ScaleValue]: "size";
|
|
148
|
+
}) => {
|
|
149
|
+
height: string | number | {
|
|
150
|
+
readonly [$$ScaleValue]: "size";
|
|
151
|
+
};
|
|
152
|
+
width: string | number | {
|
|
153
|
+
readonly [$$ScaleValue]: "size";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
p: (value: string | number | {
|
|
157
|
+
readonly [$$ScaleValue]: "space";
|
|
158
|
+
}) => {
|
|
159
|
+
padding: string | number | {
|
|
160
|
+
readonly [$$ScaleValue]: "space";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
pt: (value: string | number | {
|
|
164
|
+
readonly [$$ScaleValue]: "space";
|
|
165
|
+
}) => {
|
|
166
|
+
paddingTop: string | number | {
|
|
167
|
+
readonly [$$ScaleValue]: "space";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
pr: (value: string | number | {
|
|
171
|
+
readonly [$$ScaleValue]: "space";
|
|
172
|
+
}) => {
|
|
173
|
+
paddingRight: string | number | {
|
|
174
|
+
readonly [$$ScaleValue]: "space";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
pb: (value: string | number | {
|
|
178
|
+
readonly [$$ScaleValue]: "space";
|
|
179
|
+
}) => {
|
|
180
|
+
paddingBottom: string | number | {
|
|
181
|
+
readonly [$$ScaleValue]: "space";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
pl: (value: string | number | {
|
|
185
|
+
readonly [$$ScaleValue]: "space";
|
|
186
|
+
}) => {
|
|
187
|
+
paddingLeft: string | number | {
|
|
188
|
+
readonly [$$ScaleValue]: "space";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
px: (value: string | number | {
|
|
192
|
+
readonly [$$ScaleValue]: "space";
|
|
193
|
+
}) => {
|
|
194
|
+
paddingLeft: string | number | {
|
|
195
|
+
readonly [$$ScaleValue]: "space";
|
|
196
|
+
};
|
|
197
|
+
paddingRight: string | number | {
|
|
198
|
+
readonly [$$ScaleValue]: "space";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
py: (value: string | number | {
|
|
202
|
+
readonly [$$ScaleValue]: "space";
|
|
203
|
+
}) => {
|
|
204
|
+
paddingTop: string | number | {
|
|
205
|
+
readonly [$$ScaleValue]: "space";
|
|
206
|
+
};
|
|
207
|
+
paddingBottom: string | number | {
|
|
208
|
+
readonly [$$ScaleValue]: "space";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
m: (value: string | number | {
|
|
212
|
+
readonly [$$ScaleValue]: "space";
|
|
213
|
+
}) => {
|
|
214
|
+
margin: string | number | {
|
|
215
|
+
readonly [$$ScaleValue]: "space";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
mt: (value: string | number | {
|
|
219
|
+
readonly [$$ScaleValue]: "space";
|
|
220
|
+
}) => {
|
|
221
|
+
marginTop: string | number | {
|
|
222
|
+
readonly [$$ScaleValue]: "space";
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
mr: (value: string | number | {
|
|
226
|
+
readonly [$$ScaleValue]: "space";
|
|
227
|
+
}) => {
|
|
228
|
+
marginRight: string | number | {
|
|
229
|
+
readonly [$$ScaleValue]: "space";
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
mb: (value: string | number | {
|
|
233
|
+
readonly [$$ScaleValue]: "space";
|
|
234
|
+
}) => {
|
|
235
|
+
marginBottom: string | number | {
|
|
236
|
+
readonly [$$ScaleValue]: "space";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
ml: (value: string | number | {
|
|
240
|
+
readonly [$$ScaleValue]: "space";
|
|
241
|
+
}) => {
|
|
242
|
+
marginLeft: string | number | {
|
|
243
|
+
readonly [$$ScaleValue]: "space";
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
mx: (value: string | number | {
|
|
247
|
+
readonly [$$ScaleValue]: "space";
|
|
248
|
+
}) => {
|
|
249
|
+
marginLeft: string | number | {
|
|
250
|
+
readonly [$$ScaleValue]: "space";
|
|
251
|
+
};
|
|
252
|
+
marginRight: string | number | {
|
|
253
|
+
readonly [$$ScaleValue]: "space";
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
my: (value: string | number | {
|
|
257
|
+
readonly [$$ScaleValue]: "space";
|
|
258
|
+
}) => {
|
|
259
|
+
marginTop: string | number | {
|
|
260
|
+
readonly [$$ScaleValue]: "space";
|
|
261
|
+
};
|
|
262
|
+
marginBottom: string | number | {
|
|
263
|
+
readonly [$$ScaleValue]: "space";
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
}>>, {
|
|
267
|
+
theme?: "success" | "danger" | "warning" | "neutral" | "info" | undefined;
|
|
268
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
269
|
+
}, {
|
|
270
|
+
sm: string;
|
|
271
|
+
md: string;
|
|
272
|
+
lg: string;
|
|
273
|
+
xl: string;
|
|
274
|
+
reducedMotion: string;
|
|
275
|
+
allowMotion: string;
|
|
276
|
+
hover: string;
|
|
277
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
278
|
+
sm: string;
|
|
279
|
+
md: string;
|
|
280
|
+
lg: string;
|
|
281
|
+
xl: string;
|
|
282
|
+
reducedMotion: string;
|
|
283
|
+
allowMotion: string;
|
|
284
|
+
hover: string;
|
|
285
|
+
}, {
|
|
286
|
+
colors: {
|
|
287
|
+
textForeground: any;
|
|
288
|
+
textSubtle: any;
|
|
289
|
+
textPlaceholder: any;
|
|
290
|
+
background: any;
|
|
291
|
+
backgroundAccent: any;
|
|
292
|
+
tonal50: any;
|
|
293
|
+
tonal100: any;
|
|
294
|
+
tonal200: any;
|
|
295
|
+
tonal300: any;
|
|
296
|
+
tonal400: any;
|
|
297
|
+
tonal500: any;
|
|
298
|
+
tonal600: any;
|
|
299
|
+
alpha100: any;
|
|
300
|
+
alpha150: any;
|
|
301
|
+
alpha200: any;
|
|
302
|
+
alpha250: any;
|
|
303
|
+
alpha600: any;
|
|
304
|
+
primaryLight: any;
|
|
305
|
+
primary: any;
|
|
306
|
+
primaryMid: any;
|
|
307
|
+
primaryDark: any;
|
|
308
|
+
secondary: any;
|
|
309
|
+
brandRed: any;
|
|
310
|
+
brandRedAccent: any;
|
|
311
|
+
brandGreen: any;
|
|
312
|
+
brandGreenAccent: any;
|
|
313
|
+
brandPurple: any;
|
|
314
|
+
brandPurpleAccent: any;
|
|
315
|
+
brandYellow: any;
|
|
316
|
+
brandYellowAccent: any;
|
|
317
|
+
successLight: any;
|
|
318
|
+
success: any;
|
|
319
|
+
successMid: any;
|
|
320
|
+
successDark: any;
|
|
321
|
+
dangerLight: any;
|
|
322
|
+
danger: any;
|
|
323
|
+
dangerMid: any;
|
|
324
|
+
dangerDark: any;
|
|
325
|
+
warningLight: any;
|
|
326
|
+
warning: any;
|
|
327
|
+
warningMid: any;
|
|
328
|
+
warningDark: any;
|
|
329
|
+
subjectEnglish: any;
|
|
330
|
+
subjectMaths: any;
|
|
331
|
+
subjectScience: any;
|
|
332
|
+
subjectVerbalReasoning: any;
|
|
333
|
+
subjectNonVerbalReasoning: any;
|
|
334
|
+
subjectCreativeWriting: any;
|
|
335
|
+
subjectExamSkills: any;
|
|
336
|
+
};
|
|
337
|
+
space: {
|
|
338
|
+
"0": any;
|
|
339
|
+
"1": any;
|
|
340
|
+
"2": any;
|
|
341
|
+
"3": any;
|
|
342
|
+
"4": any;
|
|
343
|
+
"5": any;
|
|
344
|
+
"6": any;
|
|
345
|
+
"7": any;
|
|
346
|
+
"8": any;
|
|
347
|
+
"9": any;
|
|
348
|
+
};
|
|
349
|
+
fontSizes: {
|
|
350
|
+
xs: any;
|
|
351
|
+
sm: any;
|
|
352
|
+
md: any;
|
|
353
|
+
lg: any;
|
|
354
|
+
xl: any;
|
|
355
|
+
"2xl": any;
|
|
356
|
+
"3xl": any;
|
|
357
|
+
"4xl": any;
|
|
358
|
+
};
|
|
359
|
+
fonts: {
|
|
360
|
+
sans: any;
|
|
361
|
+
mono: any;
|
|
362
|
+
display: any;
|
|
363
|
+
body: any;
|
|
364
|
+
};
|
|
365
|
+
sizes: {
|
|
366
|
+
"0": any;
|
|
367
|
+
"1": any;
|
|
368
|
+
"2": any;
|
|
369
|
+
"3": any;
|
|
370
|
+
"4": any;
|
|
371
|
+
"5": any;
|
|
372
|
+
"6": any;
|
|
373
|
+
"7": any;
|
|
374
|
+
"8": any;
|
|
375
|
+
};
|
|
376
|
+
radii: {
|
|
377
|
+
"0": any;
|
|
378
|
+
"1": any;
|
|
379
|
+
"2": any;
|
|
380
|
+
"3": any;
|
|
381
|
+
round: any;
|
|
382
|
+
};
|
|
383
|
+
shadows: {
|
|
384
|
+
"0": any;
|
|
385
|
+
"1": any;
|
|
386
|
+
"2": any;
|
|
387
|
+
"3": any;
|
|
388
|
+
};
|
|
389
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
390
|
+
bg: (value: {
|
|
391
|
+
readonly [$$PropertyValue]: "background";
|
|
392
|
+
}) => {
|
|
393
|
+
background: {
|
|
394
|
+
readonly [$$PropertyValue]: "background";
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
inset: (value: string | number | {
|
|
398
|
+
readonly [$$ScaleValue]: "space";
|
|
399
|
+
}) => {
|
|
400
|
+
top: string | number | {
|
|
401
|
+
readonly [$$ScaleValue]: "space";
|
|
402
|
+
};
|
|
403
|
+
right: string | number | {
|
|
404
|
+
readonly [$$ScaleValue]: "space";
|
|
405
|
+
};
|
|
406
|
+
bottom: string | number | {
|
|
407
|
+
readonly [$$ScaleValue]: "space";
|
|
408
|
+
};
|
|
409
|
+
left: string | number | {
|
|
410
|
+
readonly [$$ScaleValue]: "space";
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
size: (value: string | number | {
|
|
414
|
+
readonly [$$ScaleValue]: "size";
|
|
415
|
+
}) => {
|
|
416
|
+
height: string | number | {
|
|
417
|
+
readonly [$$ScaleValue]: "size";
|
|
418
|
+
};
|
|
419
|
+
width: string | number | {
|
|
420
|
+
readonly [$$ScaleValue]: "size";
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
p: (value: string | number | {
|
|
424
|
+
readonly [$$ScaleValue]: "space";
|
|
425
|
+
}) => {
|
|
426
|
+
padding: string | number | {
|
|
427
|
+
readonly [$$ScaleValue]: "space";
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
pt: (value: string | number | {
|
|
431
|
+
readonly [$$ScaleValue]: "space";
|
|
432
|
+
}) => {
|
|
433
|
+
paddingTop: string | number | {
|
|
434
|
+
readonly [$$ScaleValue]: "space";
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
pr: (value: string | number | {
|
|
438
|
+
readonly [$$ScaleValue]: "space";
|
|
439
|
+
}) => {
|
|
440
|
+
paddingRight: string | number | {
|
|
441
|
+
readonly [$$ScaleValue]: "space";
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
pb: (value: string | number | {
|
|
445
|
+
readonly [$$ScaleValue]: "space";
|
|
446
|
+
}) => {
|
|
447
|
+
paddingBottom: string | number | {
|
|
448
|
+
readonly [$$ScaleValue]: "space";
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
pl: (value: string | number | {
|
|
452
|
+
readonly [$$ScaleValue]: "space";
|
|
453
|
+
}) => {
|
|
454
|
+
paddingLeft: string | number | {
|
|
455
|
+
readonly [$$ScaleValue]: "space";
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
px: (value: string | number | {
|
|
459
|
+
readonly [$$ScaleValue]: "space";
|
|
460
|
+
}) => {
|
|
461
|
+
paddingLeft: string | number | {
|
|
462
|
+
readonly [$$ScaleValue]: "space";
|
|
463
|
+
};
|
|
464
|
+
paddingRight: string | number | {
|
|
465
|
+
readonly [$$ScaleValue]: "space";
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
py: (value: string | number | {
|
|
469
|
+
readonly [$$ScaleValue]: "space";
|
|
470
|
+
}) => {
|
|
471
|
+
paddingTop: string | number | {
|
|
472
|
+
readonly [$$ScaleValue]: "space";
|
|
473
|
+
};
|
|
474
|
+
paddingBottom: string | number | {
|
|
475
|
+
readonly [$$ScaleValue]: "space";
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
m: (value: string | number | {
|
|
479
|
+
readonly [$$ScaleValue]: "space";
|
|
480
|
+
}) => {
|
|
481
|
+
margin: string | number | {
|
|
482
|
+
readonly [$$ScaleValue]: "space";
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
mt: (value: string | number | {
|
|
486
|
+
readonly [$$ScaleValue]: "space";
|
|
487
|
+
}) => {
|
|
488
|
+
marginTop: string | number | {
|
|
489
|
+
readonly [$$ScaleValue]: "space";
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
mr: (value: string | number | {
|
|
493
|
+
readonly [$$ScaleValue]: "space";
|
|
494
|
+
}) => {
|
|
495
|
+
marginRight: string | number | {
|
|
496
|
+
readonly [$$ScaleValue]: "space";
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
mb: (value: string | number | {
|
|
500
|
+
readonly [$$ScaleValue]: "space";
|
|
501
|
+
}) => {
|
|
502
|
+
marginBottom: string | number | {
|
|
503
|
+
readonly [$$ScaleValue]: "space";
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
ml: (value: string | number | {
|
|
507
|
+
readonly [$$ScaleValue]: "space";
|
|
508
|
+
}) => {
|
|
509
|
+
marginLeft: string | number | {
|
|
510
|
+
readonly [$$ScaleValue]: "space";
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
mx: (value: string | number | {
|
|
514
|
+
readonly [$$ScaleValue]: "space";
|
|
515
|
+
}) => {
|
|
516
|
+
marginLeft: string | number | {
|
|
517
|
+
readonly [$$ScaleValue]: "space";
|
|
518
|
+
};
|
|
519
|
+
marginRight: string | number | {
|
|
520
|
+
readonly [$$ScaleValue]: "space";
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
my: (value: string | number | {
|
|
524
|
+
readonly [$$ScaleValue]: "space";
|
|
525
|
+
}) => {
|
|
526
|
+
marginTop: string | number | {
|
|
527
|
+
readonly [$$ScaleValue]: "space";
|
|
528
|
+
};
|
|
529
|
+
marginBottom: string | number | {
|
|
530
|
+
readonly [$$ScaleValue]: "space";
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
}>>;
|
|
534
|
+
declare type BadgeProps = React.ComponentProps<typeof StyledBadge>;
|
|
535
|
+
export declare const Badge: React.FC<BadgeProps>;
|
|
536
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createElement as e}from"react";import{styled as s}from"../../stitches.js";import{Box as n}from"../box/Box.js";import{Flex as c}from"../flex/Flex.js";const l=s(c,{justifyContent:"center",alignItems:"center",borderRadius:"$0",border:"1px solid #FFFFFF",fontFamily:"$body",variants:{theme:{success:{bg:"$successLight",color:"$successDark"},warning:{bg:"$warningLight",color:"$tonal600"},danger:{bg:"$dangerLight",color:"$dangerDark"},neutral:{bg:"$tonal50",color:"$tonal400"},info:{bg:"$primaryLight",color:"$primaryMid"}},size:{xs:{fontSize:"$sm",px:"$3",height:"calc(24px - $space$1)"},sm:{fontSize:"$md",px:"$4",height:"calc(32px - $space$1)"},md:{fontSize:"$md",px:"$4",height:"calc(48px - $space$1)"}}}}),o=({theme:r="info",size:t="sm",children:a,...i})=>e(l,{role:"status",theme:r,size:t,...i},e(n,{as:"div",css:{whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis",py:"$0"}},a));o.displayName="Badge";export{o as Badge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Badge } from './Badge';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Trigger } from '@radix-ui/react-dialog';
|
|
1
|
+
import { Description, Title, Trigger } from '@radix-ui/react-dialog';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { DialogClose } from './DialogClose';
|
|
4
4
|
import { DialogContent } from './DialogContent';
|
|
@@ -271,6 +271,8 @@ declare type DialogProps = React.ComponentProps<typeof StyledDialog>;
|
|
|
271
271
|
export declare const Dialog: React.FC<DialogProps> & {
|
|
272
272
|
Close: typeof DialogClose;
|
|
273
273
|
Content: typeof DialogContent;
|
|
274
|
+
Description: typeof Description;
|
|
275
|
+
Title: typeof Title;
|
|
274
276
|
Trigger: typeof Trigger;
|
|
275
277
|
};
|
|
276
278
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Root as r,Trigger as
|
|
1
|
+
import{Root as i,Description as e,Title as r,Trigger as l}from"@radix-ui/react-dialog";import{createElement as m}from"react";import{styled as g}from"../../stitches.js";import{DialogClose as n}from"./DialogClose.js";import{DialogContent as p}from"./DialogContent.js";const a=g(i,{}),o=t=>m(a,{...t});o.Close=n,o.Content=p,o.Description=e,o.Title=r,o.Trigger=l,o.displayName="Dialog";export{o as Dialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g from"invariant";import{createElement as a}from"react";import{useForm as h,FormProvider as v}from"react-hook-form";import w from"react-hook-form-persist";import{styled as S}from"../../stitches.js";import{StorageEnum as x}from"./Form.types.js";const y=S("form",{}),C=({persist:r,watch:e,setValue:n,children:s})=>{const{id:i,...o}=r;let t={...o,storage:o.storage===x.LOCAL?window.localStorage:window.sessionStorage};if(o.exclude){const{exclude:f,...m}=t,c=e(),u=Object.keys(c).filter(d=>{var l;if(!((l=o.exclude)==null?void 0:l.includes(d)))return d});t={...m,include:u}}return w(i,{watch:e,setValue:n},t),s},F=({formMethods:r,handleSubmit:e,onSubmit:n,onError:s,children:i,...o})=>a(v,{...r},a(y,{"aria-label":"form",...o,onSubmit:e(n,s)},i)),b=({children:r,defaultValues:e={},onSubmit:n,onError:s,validationMode:i="onBlur",render:o,persist:t,...f})=>{g(!(r&&o),"`Form` should only be given one of `children` or `render`. When both are provided, `render` will be used and `children` will be ignored.");const m=h({defaultValues:e,mode:i}),{handleSubmit:c,watch:u,setValue:d}=m,l=o?o(m):r,p={formMethods:m,handleSubmit:c,onSubmit:n,onError:s,...f};return t?a(C,{persist:t,watch:u,setValue:d},a(F,{...p},l)):a(F,{...p},l)};b.displayName="Form";export{b as Form};
|
|
@@ -23,8 +23,9 @@ export declare type PersistFormWrapperValues = {
|
|
|
23
23
|
};
|
|
24
24
|
export declare type FormContentValues = {
|
|
25
25
|
formMethods: any;
|
|
26
|
-
handleSubmit: (data: any) => void | any
|
|
26
|
+
handleSubmit: (submitHandler: (data: any) => void | any, submitErrorHandler?: (errors: any) => void) => (e: any) => Promise<void>;
|
|
27
27
|
onSubmit: (data: any) => void | any;
|
|
28
|
+
onError?: (errors: any) => void;
|
|
28
29
|
children: React.ReactNode | any;
|
|
29
30
|
};
|
|
30
31
|
export declare type FormValues = {
|
|
@@ -32,6 +33,7 @@ export declare type FormValues = {
|
|
|
32
33
|
[key: string]: string | number;
|
|
33
34
|
};
|
|
34
35
|
onSubmit: (data: any) => void | any;
|
|
36
|
+
onError?: (errors: any) => void;
|
|
35
37
|
validationMode?: Mode;
|
|
36
38
|
persist?: PersistOptions;
|
|
37
39
|
} & ({
|
|
@@ -3,6 +3,7 @@ export { Accordion } from './accordion';
|
|
|
3
3
|
export { EmptyState } from './empty-state';
|
|
4
4
|
export { ActionIcon } from './action-icon';
|
|
5
5
|
export { AlertDialog, useAlert, AlertProvider } from './alert-dialog';
|
|
6
|
+
export { Badge } from './badge';
|
|
6
7
|
export { Box } from './box';
|
|
7
8
|
export { Button, StyledButton } from './button';
|
|
8
9
|
export { Carousel, useCarousel } from './carousel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Root as
|
|
1
|
+
import{Root as n,Indicator as d}from"@radix-ui/react-progress";import{createElement as t}from"react";import{styled as e}from"../../stitches.js";const c=e(n,{borderRadius:"$round",background:"$tonal100",height:"$0",position:"relative",overflow:"hidden",width:"100%",variants:{theme:{primary:{color:"$primary"},success:{color:"$success"},warning:{color:"$warning"},danger:{color:"$danger"}}}}),l=e(d,{backgroundColor:"currentcolor",borderRadius:"$round",boxSizing:"border-box",height:"100%",position:"absolute",transition:"all 300ms ease-out"}),s=({value:r,max:o=100,theme:a="primary",...i})=>t(c,{value:r,max:o,theme:a,...i},t(l,{style:{width:"100%",transform:`translateX(-${100-(r||0)/o*100}%)`}}));s.displayName="ProgressBar";export{s as ProgressBar};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const StyledTabTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<
|
|
2
|
+
declare const StyledTabTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>, {
|
|
3
3
|
theme?: "dark" | "light" | undefined;
|
|
4
4
|
}, {
|
|
5
5
|
sm: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Trigger as
|
|
1
|
+
import{Trigger as l}from"@radix-ui/react-tabs";import{opacify as o}from"color2k";import{createElement as n}from"react";import{styled as c,theme as e}from"../../stitches.js";const s=c(l,{background:"none",border:"none",cursor:"pointer",flexShrink:0,fontFamily:"$body",p:"$4",height:"$5",userSelect:"none",transition:"0.3s",variants:{theme:{light:{'&[data-state="active"]':{color:"$primary",fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},'&[data-state="inactive"]':{color:"$tonal500"},"&:not([data-disabled]):hover":{color:"$primary",bg:o(e.colors.primary.value,-.9)},"&:not([data-disabled]):active":{color:"$primary",bg:o(e.colors.primary.value,-.8),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}},dark:{color:"white",'&[data-state="active"]':{fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},"&:not([data-disabled]):hover":{bg:o("white",-.8)},"&:not([data-disabled]):active":{bg:o("white",-.7),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}}}}}),a=({children:t,theme:r,disabled:i=!1,...d})=>n(s,{disabled:i,theme:r,...d},t);a.displayName="TabTrigger";export{a as TabTrigger};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Root, Trigger } from '@radix-ui/react-tooltip';
|
|
1
|
+
import { Provider, Root, Trigger } from '@radix-ui/react-tooltip';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { TooltipContent } from './TooltipContent';
|
|
4
4
|
declare type TooltipProps = React.ComponentProps<typeof Root>;
|
|
5
5
|
export declare const Tooltip: React.FC<TooltipProps> & {
|
|
6
6
|
Content: typeof TooltipContent;
|
|
7
7
|
Trigger: typeof Trigger;
|
|
8
|
+
Provider: typeof Provider;
|
|
8
9
|
};
|
|
9
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Root as i,Trigger as m}from"@radix-ui/react-tooltip";import{createElement as
|
|
1
|
+
import{Root as i,Trigger as m,Provider as p}from"@radix-ui/react-tooltip";import{createElement as l}from"react";import{styled as n}from"../../stitches.js";import{TooltipContent as T}from"./TooltipContent.js";const o=({children:r,delayDuration:t=350,...e})=>l(i,{delayDuration:t,...e},r);o.Content=T,o.Trigger=n(m,{}),o.Provider=p,o.displayName="Tooltip";export{o as Tooltip};
|