@atom-learning/components 1.3.1 → 1.6.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 (167) hide show
  1. package/dist/components/accordion/Accordion.js +1 -1
  2. package/dist/components/accordion/AccordionContent.js +1 -1
  3. package/dist/components/accordion/AccordionItem.js +1 -1
  4. package/dist/components/accordion/AccordionTrigger.js +1 -1
  5. package/dist/components/action-icon/ActionIcon.d.ts +1 -1
  6. package/dist/components/action-icon/ActionIcon.js +1 -1
  7. package/dist/components/alert-dialog/AlertDialog.js +1 -1
  8. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  9. package/dist/components/alert-dialog/alert-context/AlertContext.js +1 -1
  10. package/dist/components/alert-dialog/alert-context/AlertDialog.js +1 -1
  11. package/dist/components/alert-dialog/alert-context/reducer.js +1 -1
  12. package/dist/components/box/Box.js +1 -1
  13. package/dist/components/button/Button.d.ts +1 -1
  14. package/dist/components/button/Button.js +1 -1
  15. package/dist/components/calendar/Calendar.d.ts +19 -0
  16. package/dist/components/calendar/Calendar.js +1 -0
  17. package/dist/components/calendar/Day.d.ts +269 -0
  18. package/dist/components/calendar/Day.js +1 -0
  19. package/dist/components/calendar/constants.d.ts +2 -0
  20. package/dist/components/calendar/constants.js +1 -0
  21. package/dist/components/carousel/Carousel.js +1 -1
  22. package/dist/components/carousel/CarouselArrows.js +1 -1
  23. package/dist/components/carousel/CarouselPagination.js +1 -1
  24. package/dist/components/carousel/CarouselSlide.js +1 -1
  25. package/dist/components/carousel/CarouselSlider.js +1 -1
  26. package/dist/components/checkbox/Checkbox.js +1 -1
  27. package/dist/components/checkbox-field/CheckboxField.js +1 -1
  28. package/dist/components/combobox/Combobox.js +1 -1
  29. package/dist/components/combobox/ComboboxInput.js +1 -1
  30. package/dist/components/combobox/ComboboxPopover.js +1 -1
  31. package/dist/components/date-field/DateField.d.ts +17 -0
  32. package/dist/components/date-field/DateField.js +1 -0
  33. package/dist/components/date-field/index.d.ts +1 -0
  34. package/dist/components/date-input/DateInput.d.ts +19 -0
  35. package/dist/components/date-input/DateInput.js +1 -0
  36. package/dist/components/date-input/constants.d.ts +1 -0
  37. package/dist/components/date-input/constants.js +1 -0
  38. package/dist/components/date-input/index.d.ts +1 -0
  39. package/dist/components/date-input/use-date.d.ts +5 -0
  40. package/dist/components/date-input/use-date.js +1 -0
  41. package/dist/components/dialog/Dialog.js +1 -1
  42. package/dist/components/dialog/DialogContent.d.ts +1 -0
  43. package/dist/components/dialog/DialogContent.js +1 -1
  44. package/dist/components/divider/Divider.js +1 -1
  45. package/dist/components/dropdown-menu/DropdownMenu.js +1 -1
  46. package/dist/components/dropdown-menu/DropdownMenuContent.js +1 -1
  47. package/dist/components/dropdown-menu/DropdownMenuItem.js +1 -1
  48. package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
  49. package/dist/components/dropdown-menu/DropdownMenuTrigger.js +1 -1
  50. package/dist/components/field-wrapper/FieldDescription.js +1 -1
  51. package/dist/components/field-wrapper/FieldWrapper.js +1 -1
  52. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  53. package/dist/components/flex/Flex.js +1 -1
  54. package/dist/components/form/Form.js +1 -1
  55. package/dist/components/form/Form.types.d.ts +2 -2
  56. package/dist/components/form/Form.types.js +1 -1
  57. package/dist/components/form/useFieldError.js +1 -1
  58. package/dist/components/grid/Grid.js +1 -1
  59. package/dist/components/heading/Heading.js +1 -1
  60. package/dist/components/icon/Icon.js +1 -1
  61. package/dist/components/image/Image.js +1 -1
  62. package/dist/components/index.d.ts +7 -1
  63. package/dist/components/input/Input.js +1 -1
  64. package/dist/components/input-field/InputField.js +1 -1
  65. package/dist/components/label/Label.js +1 -1
  66. package/dist/components/link/Link.js +1 -1
  67. package/dist/components/list/List.js +1 -1
  68. package/dist/components/loader/Loader.js +1 -1
  69. package/dist/components/markdown-content/MarkdownContent.js +1 -1
  70. package/dist/components/markdown-content/components/MarkdownCode.js +1 -1
  71. package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
  72. package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
  73. package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
  74. package/dist/components/markdown-content/components/MarkdownInlineCode.js +1 -1
  75. package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
  76. package/dist/components/markdown-content/components/MarkdownList.js +1 -1
  77. package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
  78. package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
  79. package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
  80. package/dist/components/markdown-content/components/MarkdownText.js +1 -1
  81. package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
  82. package/dist/components/notification-badge/NotificationBadge.d.ts +535 -0
  83. package/dist/components/notification-badge/NotificationBadge.js +1 -0
  84. package/dist/components/notification-badge/index.d.ts +1 -0
  85. package/dist/components/password-field/PasswordField.js +1 -1
  86. package/dist/components/password-input/PasswordInput.js +1 -1
  87. package/dist/components/popover/Popover.js +1 -1
  88. package/dist/components/popover/PopoverContent.d.ts +1 -0
  89. package/dist/components/popover/PopoverContent.js +1 -1
  90. package/dist/components/progress-bar/ProgressBar.js +1 -1
  91. package/dist/components/radio-button/RadioButton.js +1 -1
  92. package/dist/components/radio-button/RadioButtonGroup.js +1 -1
  93. package/dist/components/radio-button-field/RadioButtonField.js +1 -1
  94. package/dist/components/radio-button-field/RadioField.js +1 -1
  95. package/dist/components/radio-card/RadioCard.js +1 -1
  96. package/dist/components/radio-card/RadioCardGroup.js +1 -1
  97. package/dist/components/search-input/SearchInput.d.ts +4 -1
  98. package/dist/components/search-input/SearchInput.js +1 -1
  99. package/dist/components/select/Select.js +1 -1
  100. package/dist/components/select-field/SelectField.js +1 -1
  101. package/dist/components/slider/Slider.d.ts +276 -0
  102. package/dist/components/slider/Slider.js +1 -0
  103. package/dist/components/slider/SliderSteps.d.ts +13 -0
  104. package/dist/components/slider/SliderSteps.js +1 -0
  105. package/dist/components/slider/SliderValue.d.ts +9 -0
  106. package/dist/components/slider/SliderValue.js +1 -0
  107. package/dist/components/slider/index.d.ts +1 -0
  108. package/dist/components/slider-field/SliderField.d.ts +13 -0
  109. package/dist/components/slider-field/SliderField.js +1 -0
  110. package/dist/components/slider-field/index.d.ts +1 -0
  111. package/dist/components/stack/Stack.js +1 -1
  112. package/dist/components/stack-content/StackContent.js +1 -1
  113. package/dist/components/stepper/Stepper.d.ts +10 -0
  114. package/dist/components/stepper/Stepper.js +1 -0
  115. package/dist/components/stepper/StepperStepBack.d.ts +4 -0
  116. package/dist/components/stepper/StepperStepBack.js +1 -0
  117. package/dist/components/stepper/StepperStepForward.d.ts +4 -0
  118. package/dist/components/stepper/StepperStepForward.js +1 -0
  119. package/dist/components/stepper/StepperSteps.d.ts +2 -0
  120. package/dist/components/stepper/StepperSteps.js +1 -0
  121. package/dist/components/stepper/index.d.ts +1 -0
  122. package/dist/components/stepper/stepper-context/StepperContext.d.ts +4 -0
  123. package/dist/components/stepper/stepper-context/StepperContext.js +1 -0
  124. package/dist/components/stepper/types.d.ts +24 -0
  125. package/dist/components/switch/Switch.js +1 -1
  126. package/dist/components/table/Table.js +1 -1
  127. package/dist/components/table/TableBody.js +1 -1
  128. package/dist/components/table/TableCell.js +1 -1
  129. package/dist/components/table/TableFooter.js +1 -1
  130. package/dist/components/table/TableHeader.js +1 -1
  131. package/dist/components/table/TableHeaderCell.js +1 -1
  132. package/dist/components/table/TableRow.js +1 -1
  133. package/dist/components/tabs/TabTrigger.js +1 -1
  134. package/dist/components/tabs/Tabs.js +1 -1
  135. package/dist/components/tabs/TabsTriggerList.d.ts +2 -0
  136. package/dist/components/tabs/TabsTriggerList.js +1 -1
  137. package/dist/components/tabs/utils.js +1 -1
  138. package/dist/components/text/Text.js +1 -1
  139. package/dist/components/textarea/Textarea.js +1 -1
  140. package/dist/components/textarea-field/TextareaField.js +1 -1
  141. package/dist/components/toast/Toast.js +1 -1
  142. package/dist/components/toast/ToastProvider.js +1 -1
  143. package/dist/components/tooltip/Tooltip.js +1 -1
  144. package/dist/components/tooltip/TooltipContent.js +1 -1
  145. package/dist/components/validation-error/ValidationError.js +1 -1
  146. package/dist/components/video/Video.js +1 -1
  147. package/dist/docgen.json +1 -1
  148. package/dist/docs/Button.mdx +3 -2
  149. package/dist/docs/DateField.mdx +20 -0
  150. package/dist/docs/DateInput.mdx +87 -0
  151. package/dist/docs/Dialog.mdx +16 -1
  152. package/dist/docs/NotificationBadge.mdx +33 -0
  153. package/dist/docs/RadioButton.mdx +1 -1
  154. package/dist/docs/SearchInput.mdx +2 -1
  155. package/dist/docs/Slider.mdx +117 -0
  156. package/dist/docs/SliderField.mdx +35 -0
  157. package/dist/docs/Stepper.mdx +45 -0
  158. package/dist/docs/Tabs.mdx +17 -0
  159. package/dist/index.cjs.js +1 -1
  160. package/dist/index.js +1 -1
  161. package/dist/stitches.js +1 -1
  162. package/dist/utilities/css-wrapper/CSSWrapper.js +1 -1
  163. package/dist/utilities/style/capsize.js +1 -1
  164. package/dist/utilities/style/encode-background-icon.js +1 -1
  165. package/dist/utilities/style/keyframe-animations.js +1 -1
  166. package/dist/utilities/use-is-mounted-ref/index.js +1 -1
  167. package/package.json +27 -18
@@ -0,0 +1,535 @@
1
+ import 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
+ sm: string;
268
+ md: string;
269
+ lg: string;
270
+ xl: string;
271
+ reducedMotion: string;
272
+ allowMotion: string;
273
+ hover: string;
274
+ }, import("@stitches/react/types/css-util").CSS<{
275
+ sm: string;
276
+ md: string;
277
+ lg: string;
278
+ xl: string;
279
+ reducedMotion: string;
280
+ allowMotion: string;
281
+ hover: string;
282
+ }, {
283
+ colors: {
284
+ textForeground: any;
285
+ textSubtle: any;
286
+ textPlaceholder: any;
287
+ background: any;
288
+ backgroundAccent: any;
289
+ tonal50: any;
290
+ tonal100: any;
291
+ tonal200: any;
292
+ tonal300: any;
293
+ tonal400: any;
294
+ tonal500: any;
295
+ tonal600: any;
296
+ alpha100: any;
297
+ alpha150: any;
298
+ alpha200: any;
299
+ alpha250: any;
300
+ alpha600: any;
301
+ primaryLight: any;
302
+ primary: any;
303
+ primaryMid: any;
304
+ primaryDark: any;
305
+ secondary: any;
306
+ brandRed: any;
307
+ brandRedAccent: any;
308
+ brandGreen: any;
309
+ brandGreenAccent: any;
310
+ brandPurple: any;
311
+ brandPurpleAccent: any;
312
+ brandYellow: any;
313
+ brandYellowAccent: any;
314
+ successLight: any;
315
+ success: any;
316
+ successMid: any;
317
+ successDark: any;
318
+ dangerLight: any;
319
+ danger: any;
320
+ dangerMid: any;
321
+ dangerDark: any;
322
+ warningLight: any;
323
+ warning: any;
324
+ warningMid: any;
325
+ warningDark: any;
326
+ subjectEnglish: any;
327
+ subjectMaths: any;
328
+ subjectScience: any;
329
+ subjectVerbalReasoning: any;
330
+ subjectNonVerbalReasoning: any;
331
+ subjectCreativeWriting: any;
332
+ subjectExamSkills: any;
333
+ };
334
+ space: {
335
+ "0": any;
336
+ "1": any;
337
+ "2": any;
338
+ "3": any;
339
+ "4": any;
340
+ "5": any;
341
+ "6": any;
342
+ "7": any;
343
+ "8": any;
344
+ "9": any;
345
+ };
346
+ fontSizes: {
347
+ xs: any;
348
+ sm: any;
349
+ md: any;
350
+ lg: any;
351
+ xl: any;
352
+ "2xl": any;
353
+ "3xl": any;
354
+ "4xl": any;
355
+ };
356
+ fonts: {
357
+ sans: any;
358
+ mono: any;
359
+ display: any;
360
+ body: any;
361
+ };
362
+ sizes: {
363
+ "0": any;
364
+ "1": any;
365
+ "2": any;
366
+ "3": any;
367
+ "4": any;
368
+ "5": any;
369
+ "6": any;
370
+ "7": any;
371
+ "8": any;
372
+ };
373
+ radii: {
374
+ "0": any;
375
+ "1": any;
376
+ "2": any;
377
+ "3": any;
378
+ round: any;
379
+ };
380
+ shadows: {
381
+ "0": any;
382
+ "1": any;
383
+ "2": any;
384
+ "3": any;
385
+ };
386
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
387
+ bg: (value: {
388
+ readonly [$$PropertyValue]: "background";
389
+ }) => {
390
+ background: {
391
+ readonly [$$PropertyValue]: "background";
392
+ };
393
+ };
394
+ inset: (value: string | number | {
395
+ readonly [$$ScaleValue]: "space";
396
+ }) => {
397
+ top: string | number | {
398
+ readonly [$$ScaleValue]: "space";
399
+ };
400
+ right: string | number | {
401
+ readonly [$$ScaleValue]: "space";
402
+ };
403
+ bottom: string | number | {
404
+ readonly [$$ScaleValue]: "space";
405
+ };
406
+ left: string | number | {
407
+ readonly [$$ScaleValue]: "space";
408
+ };
409
+ };
410
+ size: (value: string | number | {
411
+ readonly [$$ScaleValue]: "size";
412
+ }) => {
413
+ height: string | number | {
414
+ readonly [$$ScaleValue]: "size";
415
+ };
416
+ width: string | number | {
417
+ readonly [$$ScaleValue]: "size";
418
+ };
419
+ };
420
+ p: (value: string | number | {
421
+ readonly [$$ScaleValue]: "space";
422
+ }) => {
423
+ padding: string | number | {
424
+ readonly [$$ScaleValue]: "space";
425
+ };
426
+ };
427
+ pt: (value: string | number | {
428
+ readonly [$$ScaleValue]: "space";
429
+ }) => {
430
+ paddingTop: string | number | {
431
+ readonly [$$ScaleValue]: "space";
432
+ };
433
+ };
434
+ pr: (value: string | number | {
435
+ readonly [$$ScaleValue]: "space";
436
+ }) => {
437
+ paddingRight: string | number | {
438
+ readonly [$$ScaleValue]: "space";
439
+ };
440
+ };
441
+ pb: (value: string | number | {
442
+ readonly [$$ScaleValue]: "space";
443
+ }) => {
444
+ paddingBottom: string | number | {
445
+ readonly [$$ScaleValue]: "space";
446
+ };
447
+ };
448
+ pl: (value: string | number | {
449
+ readonly [$$ScaleValue]: "space";
450
+ }) => {
451
+ paddingLeft: string | number | {
452
+ readonly [$$ScaleValue]: "space";
453
+ };
454
+ };
455
+ px: (value: string | number | {
456
+ readonly [$$ScaleValue]: "space";
457
+ }) => {
458
+ paddingLeft: string | number | {
459
+ readonly [$$ScaleValue]: "space";
460
+ };
461
+ paddingRight: string | number | {
462
+ readonly [$$ScaleValue]: "space";
463
+ };
464
+ };
465
+ py: (value: string | number | {
466
+ readonly [$$ScaleValue]: "space";
467
+ }) => {
468
+ paddingTop: string | number | {
469
+ readonly [$$ScaleValue]: "space";
470
+ };
471
+ paddingBottom: string | number | {
472
+ readonly [$$ScaleValue]: "space";
473
+ };
474
+ };
475
+ m: (value: string | number | {
476
+ readonly [$$ScaleValue]: "space";
477
+ }) => {
478
+ margin: string | number | {
479
+ readonly [$$ScaleValue]: "space";
480
+ };
481
+ };
482
+ mt: (value: string | number | {
483
+ readonly [$$ScaleValue]: "space";
484
+ }) => {
485
+ marginTop: string | number | {
486
+ readonly [$$ScaleValue]: "space";
487
+ };
488
+ };
489
+ mr: (value: string | number | {
490
+ readonly [$$ScaleValue]: "space";
491
+ }) => {
492
+ marginRight: string | number | {
493
+ readonly [$$ScaleValue]: "space";
494
+ };
495
+ };
496
+ mb: (value: string | number | {
497
+ readonly [$$ScaleValue]: "space";
498
+ }) => {
499
+ marginBottom: string | number | {
500
+ readonly [$$ScaleValue]: "space";
501
+ };
502
+ };
503
+ ml: (value: string | number | {
504
+ readonly [$$ScaleValue]: "space";
505
+ }) => {
506
+ marginLeft: string | number | {
507
+ readonly [$$ScaleValue]: "space";
508
+ };
509
+ };
510
+ mx: (value: string | number | {
511
+ readonly [$$ScaleValue]: "space";
512
+ }) => {
513
+ marginLeft: string | number | {
514
+ readonly [$$ScaleValue]: "space";
515
+ };
516
+ marginRight: string | number | {
517
+ readonly [$$ScaleValue]: "space";
518
+ };
519
+ };
520
+ my: (value: string | number | {
521
+ readonly [$$ScaleValue]: "space";
522
+ }) => {
523
+ marginTop: string | number | {
524
+ readonly [$$ScaleValue]: "space";
525
+ };
526
+ marginBottom: string | number | {
527
+ readonly [$$ScaleValue]: "space";
528
+ };
529
+ };
530
+ }>>;
531
+ declare type NotificationBadgeProps = React.ComponentProps<typeof StyledBadge> & {
532
+ value: number | string;
533
+ };
534
+ export declare const NotificationBadge: React.FC<NotificationBadgeProps>;
535
+ export {};
@@ -0,0 +1 @@
1
+ import e from"react";import{Box as i}from"../box/Box.js";import{Flex as n}from"../flex/Flex.js";import{styled as o}from"../../stitches.js";const l=o(i,{position:"relative"}),a=o(n,{fontFamily:"$body",fontSize:"$sm",flexDirection:"column",justifyContent:"center",position:"absolute",top:"0",right:"0",transform:"translate(calc($sizes$2 / 2), -50%)",borderRadius:"$round",p:"$2",height:"$2",minWidth:"$2",textAlign:"center",color:"#fff",bg:"$primary"}),m=({value:t,children:r})=>e.createElement(l,null,!!t&&e.createElement(a,{role:"status"},t),r);export{m as NotificationBadge};
@@ -0,0 +1 @@
1
+ export { NotificationBadge } from './NotificationBadge';
@@ -1 +1 @@
1
- const r=["css","label","name","prompt","description","validation"];function e(){return(e=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(r[t]=o[t])}return r}).apply(this,arguments)}import{createElement as o}from"react";import{useFormContext as t}from"react-hook-form";import{FieldWrapper as i}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import"../form/Form.js";import{useFieldError as n}from"../form/useFieldError.js";import{PasswordInput as s}from"../password-input/PasswordInput.js";const p=p=>{let{css:a={},label:l="Password",name:d,prompt:m,description:c,validation:f}=p,u=function(r,e){if(null==r)return{};var o,t,i={},n=Object.keys(r);for(t=0;t<n.length;t++)o=n[t],e.indexOf(o)>=0||(i[o]=r[o]);return i}(p,r);const{register:j}=t(),{error:v}=n(d),w=f?j(f):j;return o(i,{css:e({},a,{position:"relative"}),description:c,error:v,fieldId:d,label:l,prompt:m,required:Boolean(null==f?void 0:f.required)},o(s,Object.assign({autoComplete:"current-password",name:d,id:d,ref:w},u)))};p.displayName="PasswordField";export{p as PasswordField};
1
+ import{createElement as s}from"react";import{useFormContext as f}from"react-hook-form";import{FieldWrapper as n}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import"../form/Form.js";import{useFieldError as w}from"../form/useFieldError.js";import{PasswordInput as F}from"../password-input/PasswordInput.js";const t=({css:i={},label:p="Password",name:r,prompt:d=void 0,description:m,validation:o,...l})=>{const{register:e}=f(),{error:u}=w(r),c=o?e(o):e;return s(n,{css:{...i,position:"relative"},description:m,error:u,fieldId:r,label:p,prompt:d,required:Boolean(o==null?void 0:o.required)},s(F,{autoComplete:"current-password",name:r,id:r,ref:c,...l}))};t.displayName="PasswordField";export{t as PasswordField};
@@ -1 +1 @@
1
- const o=["css","hidePasswordText","showPasswordText"];function s(){return(s=Object.assign||function(o){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o}).apply(this,arguments)}import{Eye as t,EyeCrossed as r}from"@atom-learning/icons";import{forwardRef as e,useState as n,createElement as i}from"react";import{ActionIcon as a}from"../action-icon/ActionIcon.js";import{Box as c}from"../box/Box.js";import{Icon as p}from"../icon/Icon.js";import{Input as l}from"../input/Input.js";const m=e(((e,m)=>{let{css:f,hidePasswordText:u="Hide password",showPasswordText:d="Show password"}=e,w=function(o,s){if(null==o)return{};var t,r,e={},n=Object.keys(o);for(r=0;r<n.length;r++)t=n[r],s.indexOf(t)>=0||(e[t]=o[t]);return e}(e,o);const[h,x]=n(!1);return i(c,{css:s({position:"relative"},f)},i(l,Object.assign({},w,{type:h?"text":"password",ref:m,css:{pr:"$sizes$2"}})),i(a,{appearance:"simple",theme:"neutral",css:{bottom:0,position:"absolute",right:0},label:h?u:d,onClick:()=>x((o=>!o)),onMouseDown:o=>o.preventDefault(),size:"lg"},i(p,{is:h?t:r,css:{size:20}})))}));m.displayName="PasswordInput";export{m as PasswordInput};
1
+ import{Eye as c,EyeCrossed as d}from"@atom-learning/icons";import{forwardRef as w,useState as f,createElement as s}from"react";import{ActionIcon as u}from"../action-icon/ActionIcon.js";import{Box as b}from"../box/Box.js";import{Icon as I}from"../icon/Icon.js";import{Input as y}from"../input/Input.js";const t=w(({css:r,hidePasswordText:i="Hide password",showPasswordText:a="Show password",...p},n)=>{const[o,m]=f(!1),l=()=>m(e=>!e);return s(b,{css:{position:"relative",...r}},s(y,{...p,type:o?"text":"password",ref:n,css:{pr:"$sizes$2"}}),s(u,{appearance:"simple",theme:"neutral",css:{bottom:0,position:"absolute",right:0},label:o?i:a,onClick:l,onMouseDown:e=>e.preventDefault(),size:"lg"},s(I,{is:o?c:d,css:{size:20}})))});t.displayName="PasswordInput";export{t as PasswordInput};
@@ -1 +1 @@
1
- import{Root as o,Trigger as r}from"@radix-ui/react-popover";import{createElement as t}from"react";import{styled as e}from"../../stitches.js";import{PopoverContent as i}from"./PopoverContent.js";e(o,{});const p=r=>t(o,Object.assign({},r));p.Content=i,p.Trigger=r,p.displayName="Popover";export{p as Popover};
1
+ import{Root as r,Trigger as t}from"@radix-ui/react-popover";import{createElement as m}from"react";import{styled as p}from"../../stitches.js";import{PopoverContent as i}from"./PopoverContent.js";p(r,{});const o=e=>m(r,{...e});o.Content=i,o.Trigger=t,o.displayName="Popover";export{o as Popover};
@@ -269,6 +269,7 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
269
269
  }>>;
270
270
  declare type PopoverContentProps = React.ComponentProps<typeof StyledContent> & React.ComponentProps<typeof Content> & {
271
271
  closePopoverText?: string;
272
+ showCloseButton?: boolean;
272
273
  };
273
274
  export declare const PopoverContent: React.FC<PopoverContentProps>;
274
275
  export {};
@@ -1 +1 @@
1
- const i=["children","side","sideOffset","closePopoverText","size"];import{Close as t}from"@atom-learning/icons";import{Content as e,Arrow as o,Close as a}from"@radix-ui/react-popover";import{createElement as s}from"react";import{styled as r}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"polished";import{slideDownAndFade as n,slideLeftAndFade as m,slideUpAndFade as d,slideRightAndFade as p}from"../../utilities/style/keyframe-animations.js";import{ActionIcon as l}from"../action-icon/ActionIcon.js";import{Icon as c}from"../icon/Icon.js";const f=r(e,{bg:"white",borderRadius:"$1",boxShadow:"$2",maxWidth:"90vw",p:"$sizes$2",pr:"$6",position:"relative","@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:n},'&[data-side="right"]':{animationName:m},'&[data-side="bottom"]':{animationName:d},'&[data-side="left"]':{animationName:p}}},variants:{size:{sm:{maxWidth:"200px"},md:{maxWidth:"400px"},lg:{maxWidth:"600px"}}}}),h=r(o,{fill:"white",zIndex:1,'[data-align="end"] &':{mr:"$sizes$2"},'[data-align="start"] &':{ml:"$sizes$2"}}),u=e=>{let{children:o,side:r="top",sideOffset:n=8,closePopoverText:m="Close popover",size:d="md"}=e,p=function(i,t){if(null==i)return{};var e,o,a={},s=Object.keys(i);for(o=0;o<s.length;o++)e=s[o],t.indexOf(e)>=0||(a[e]=i[e]);return a}(e,i);return s(f,Object.assign({size:d,side:r,sideOffset:n},p),s(l,{as:a,css:{position:"absolute",right:"$0",top:"$0"},label:m,size:"lg",theme:"neutral"},s(c,{is:t})),o,s(h,{width:16,height:8}))};export{u as PopoverContent};
1
+ import{Close as r}from"@atom-learning/icons";import{Content as l,Arrow as p,Close as h}from"@radix-ui/react-popover";import{createElement as t}from"react";import{styled as i}from"../../stitches.js";import{ActionIcon as c}from"../action-icon/ActionIcon.js";import{Icon as $}from"../icon/Icon.js";import{slideDownAndFade as f,slideLeftAndFade as g,slideUpAndFade as w,slideRightAndFade as x}from"../../utilities/style/keyframe-animations.js";const b=i(l,{bg:"white",borderRadius:"$1",boxShadow:"$2",maxWidth:"90vw",p:"$sizes$2",pr:"$6",position:"relative","@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:f},'&[data-side="right"]':{animationName:g},'&[data-side="bottom"]':{animationName:w},'&[data-side="left"]':{animationName:x}}},variants:{size:{sm:{maxWidth:"200px"},md:{maxWidth:"400px"},lg:{maxWidth:"600px"}}}}),C=i(p,{fill:"white",zIndex:1,'[data-align="end"] &':{mr:"$sizes$2"},'[data-align="start"] &':{ml:"$sizes$2"}}),u=({children:o,side:e="top",sideOffset:a=8,closePopoverText:n="Close popover",showCloseButton:m=!0,size:s="md",...d})=>t(b,{size:s,side:e,sideOffset:a,...d},m&&t(c,{as:h,css:{position:"absolute",right:"$0",top:"$0"},label:n,size:"lg",theme:"neutral"},t($,{is:r})),o,t(C,{width:16,height:8}));export{u as PopoverContent};
@@ -1 +1 @@
1
- const r=["value","theme"];import{Root as e,Indicator as o}from"@radix-ui/react-progress";import{createElement as t}from"react";import{styled as i}from"../../stitches.js";const n=i(e,{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"}}}}),a=i(o,{backgroundColor:"currentcolor",borderRadius:"$round",boxSizing:"border-box",height:"100%",position:"absolute",transition:"all 300ms ease-out"}),s=e=>{let{value:o,theme:i="primary"}=e,s=function(r,e){if(null==r)return{};var o,t,i={},n=Object.keys(r);for(t=0;t<n.length;t++)o=n[t],e.indexOf(o)>=0||(i[o]=r[o]);return i}(e,r);return t(n,Object.assign({theme:i},s),t(a,{style:{width:`${o}%`}}))};s.displayName="ProgressBar";export{s as ProgressBar};
1
+ import{Root as s,Indicator as n}from"@radix-ui/react-progress";import{createElement as r}from"react";import{styled as o}from"../../stitches.js";const d=o(s,{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"}}}}),c=o(n,{backgroundColor:"currentcolor",borderRadius:"$round",boxSizing:"border-box",height:"100%",position:"absolute",transition:"all 300ms ease-out"}),e=({value:t,theme:i="primary",...a})=>r(d,{theme:i,...a},r(c,{style:{width:`${t}%`}}));e.displayName="ProgressBar";export{e as ProgressBar};
@@ -1 +1 @@
1
- import{Item as o,Indicator as r}from"@radix-ui/react-radio-group";import{createElement as t}from"react";import{styled as e}from"../../stitches.js";const a=e(o,{alignItems:"center",appearance:"none",backgroundColor:"transparent",border:"1px solid $tonal400",borderRadius:"$round",color:"white",cursor:"pointer",display:"flex",justifyContent:"center",p:0,size:"$1",transition:"all 50ms ease-out","&:focus":{outline:"2px solid $primary",outlineOffset:"1px"},'&[data-state="checked"]':{backgroundColor:"$primary",borderColor:"$primary"},"&[disabled]":{backgroundColor:"$tonal100",borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"}}),n=e(r,{size:"6px",borderRadius:"$round",backgroundColor:"currentcolor",position:"absolute"}),i=o=>t(a,Object.assign({},o),t(n,null));i.displayName="RadioButton";export{i as RadioButton};
1
+ import{Item as n,Indicator as a}from"@radix-ui/react-radio-group";import{createElement as o}from"react";import{styled as r}from"../../stitches.js";const l=r(n,{alignItems:"center",appearance:"none",backgroundColor:"transparent",border:"1px solid $tonal400",borderRadius:"$round",color:"white",cursor:"pointer",display:"flex",justifyContent:"center",p:0,size:"$1",transition:"all 50ms ease-out","&:focus":{outline:"2px solid $primary",outlineOffset:"1px"},'&[data-state="checked"]':{backgroundColor:"$primary",borderColor:"$primary"},"&[disabled]":{backgroundColor:"$tonal100",borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"}}),d=r(a,{size:"6px",borderRadius:"$round",backgroundColor:"currentcolor",position:"absolute"}),t=e=>o(l,{...e},o(d,null));t.displayName="RadioButton";export{t as RadioButton};
@@ -1 +1 @@
1
- import{Root as o}from"@radix-ui/react-radio-group";import{styled as r}from"../../stitches.js";const i=r(o,{display:"flex",flexWrap:"wrap",variants:{direction:{row:{flexDirection:"row","& > *:not(:last-child)":{mr:"$5"}},column:{flexDirection:"column"}}}});i.displayName="RadioButtonGroup";export{i as RadioButtonGroup};
1
+ import{Root as r}from"@radix-ui/react-radio-group";import{styled as t}from"../../stitches.js";const o=t(r,{display:"flex",flexWrap:"wrap",variants:{direction:{row:{flexDirection:"row","& > *:not(:last-child)":{mr:"$5"}},column:{flexDirection:"column"}}}});o.displayName="RadioButtonGroup";export{o as RadioButtonGroup};
@@ -1 +1 @@
1
- import{createElement as o}from"react";import{useFormContext as r,Controller as e}from"react-hook-form";import{Description as t}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as i}from"../form/useFieldError.js";import{Label as a}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as l}from"../radio-button/RadioButtonGroup.js";import{ValidationError as m}from"../validation-error/ValidationError.js";import{styled as s}from"../../stitches.js";import{RadioField as n}from"./RadioField.js";const d=s("fieldset",{all:"unset"}),u=({children:s,css:n,direction:u="column",defaultValue:p,description:c,label:f,name:j,validation:b})=>{const{control:h}=r(),{error:v}=i(j);return o(d,{css:n},o(a,{as:"legend",css:{p:0,mb:"$3"},required:Boolean(null==b?void 0:b.required)},f),c&&o(t,{css:{mb:"$3"}},c),o(e,{control:h,name:j,rules:b,defaultValue:p,render:({onChange:r,value:e})=>o(l,{direction:u,defaultValue:p,onValueChange:r,value:e},s)}),v&&o(m,{css:{mt:"$2"}},v))};u.Item=n,u.displayName="RadioButtonField";export{u as RadioButtonField};
1
+ import{createElement as o}from"react";import{useFormContext as a,Controller as F}from"react-hook-form";import{Description as B}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as R}from"../form/useFieldError.js";import{Label as b}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as C}from"../radio-button/RadioButtonGroup.js";import{ValidationError as E}from"../validation-error/ValidationError.js";import{styled as $}from"../../stitches.js";import{RadioField as g}from"./RadioField.js";const q=$("fieldset",{all:"unset"}),e=({children:s,css:n,direction:p="column",defaultValue:t,description:m,label:d,name:i,validation:r})=>{const{control:u}=a(),{error:l}=R(i);return o(q,{css:n},o(b,{as:"legend",css:{p:0,mb:"$3"},required:Boolean(r==null?void 0:r.required)},d),m&&o(B,{css:{mb:"$3"}},m),o(F,{control:u,name:i,rules:r,defaultValue:t,render:({onChange:c,value:f})=>o(C,{direction:p,defaultValue:t,onValueChange:c,value:f},s)}),l&&o(E,{css:{mt:"$2"}},l))};e.Item=g,e.displayName="RadioButtonField";export{e as RadioButtonField};
@@ -1 +1 @@
1
- const r=["css","label","value"];import{createElement as e}from"react";import"../field-wrapper/FieldWrapper.js";import{InlineFieldWrapper as t}from"../field-wrapper/InlineFieldWrapper.js";import{RadioButton as o}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";const i=i=>{let{css:a,label:l,value:n}=i,p=function(r,e){if(null==r)return{};var t,o,i={},a=Object.keys(r);for(o=0;o<a.length;o++)t=a[o],e.indexOf(t)>=0||(i[t]=r[t]);return i}(i,r);return e(t,{css:a,label:l},e(o,Object.assign({value:n},p)))};i.displayName="RadioField";export{i as RadioField};
1
+ import{createElement as o}from"react";import"../field-wrapper/FieldWrapper.js";import{InlineFieldWrapper as p}from"../field-wrapper/InlineFieldWrapper.js";import{RadioButton as a}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";const i=({css:r,label:e,value:t,...m})=>o(p,{css:r,label:e},o(a,{value:t,...m}));i.displayName="RadioField";export{i as RadioField};
@@ -1 +1 @@
1
- const i=["children","isFullWidth","size","align"];import{Item as r,Indicator as t}from"@radix-ui/react-radio-group";import{createElement as e}from"react";import{styled as l}from"../../stitches.js";import{Box as n}from"../box/Box.js";const o=l(r,{alignItems:"center",bg:"white",border:"1px solid $tonal200",borderRadius:"$0",cursor:"pointer",display:"flex",textAlign:"left",'&[data-state="checked"]':{outline:"2px solid $primary",outlineOffset:"-2px"},variants:{align:{left:{flexDirection:"row"},right:{flexDirection:"row-reverse"}},size:{md:{px:"$4",py:"$3"},lg:{px:"$5",py:"$4"}},isFullWidth:{true:{width:"100%"},false:{width:"max-content"}}}}),a=l("div",{alignItems:"center",appearance:"none",backgroundColor:"transparent",border:"1px solid $tonal500",borderRadius:"$round",display:"flex",flexShrink:0,justifyContent:"center",p:0,size:"$1",transition:"all 50ms ease-out",'[data-state="checked"] &':{backgroundColor:"$primary",borderColor:"$primary"},variants:{containerIsFullWidth:{true:{},false:{}},align:{left:{mr:"$4"},right:{}}},compoundVariants:[{containerIsFullWidth:!0,align:"right",css:{ml:"auto"}},{containerIsFullWidth:!1,align:"right",css:{ml:"$4"}}]}),s=l(t,{backgroundColor:"white",borderRadius:"$round",position:"absolute",size:"6px"}),d=r=>{let{children:t,isFullWidth:l=!1,size:d="md",align:u="left"}=r,c=function(i,r){if(null==i)return{};var t,e,l={},n=Object.keys(i);for(e=0;e<n.length;e++)t=n[e],r.indexOf(t)>=0||(l[t]=i[t]);return l}(r,i);return e(o,Object.assign({},c,{align:u,isFullWidth:l,size:d}),e(a,{align:u,containerIsFullWidth:l},e(s,null)),e(n,null,t))};export{d as RadioCard,o as StyledRadioCard};
1
+ import{Item as s,Indicator as d}from"@radix-ui/react-radio-group";import{createElement as t}from"react";import{styled as r}from"../../stitches.js";import{Box as c}from"../box/Box.js";const i=r(s,{alignItems:"center",bg:"white",border:"1px solid $tonal200",borderRadius:"$0",cursor:"pointer",display:"flex",textAlign:"left",'&[data-state="checked"]':{outline:"2px solid $primary",outlineOffset:"-2px"},variants:{align:{left:{flexDirection:"row"},right:{flexDirection:"row-reverse"}},size:{md:{px:"$4",py:"$3"},lg:{px:"$5",py:"$4"}},isFullWidth:{true:{width:"100%"},false:{width:"max-content"}}}}),p=r("div",{alignItems:"center",appearance:"none",backgroundColor:"transparent",border:"1px solid $tonal500",borderRadius:"$round",display:"flex",flexShrink:0,justifyContent:"center",p:0,size:"$1",transition:"all 50ms ease-out",'[data-state="checked"] &':{backgroundColor:"$primary",borderColor:"$primary"},variants:{containerIsFullWidth:{true:{},false:{}},align:{left:{mr:"$4"},right:{}}},compoundVariants:[{containerIsFullWidth:!0,align:"right",css:{ml:"auto"}},{containerIsFullWidth:!1,align:"right",css:{ml:"$4"}}]}),u=r(d,{backgroundColor:"white",borderRadius:"$round",position:"absolute",size:"6px"}),m=({children:a,isFullWidth:e=!1,size:n="md",align:o="left",...l})=>t(i,{...l,align:o,isFullWidth:e,size:n},t(p,{align:o,containerIsFullWidth:e},t(u,null)),t(c,null,a));export{m as RadioCard,i as StyledRadioCard};
@@ -1 +1 @@
1
- const i=["css","children","size","isFullWidth","align","gap","justify"];import{Root as r}from"@radix-ui/react-radio-group";import{createElement as t,Children as s,isValidElement as e,cloneElement as o}from"react";import{Stack as n}from"../stack/Stack.js";import{RadioCard as a}from"./RadioCard.js";const l=l=>{let{css:c,children:u,size:d,isFullWidth:f,align:p,gap:g="3",justify:m}=l,j=function(i,r){if(null==i)return{};var t,s,e={},o=Object.keys(i);for(s=0;s<o.length;s++)t=o[s],r.indexOf(t)>=0||(e[t]=i[t]);return e}(l,i);return t(r,Object.assign({},j),t(n,{direction:"row",justify:m,gap:g,css:c},s.map(u,(i=>e(i)&&(null==i?void 0:i.type)===a?o(i,{size:d,isFullWidth:f,align:p}):i))))};export{l as RadioCardGroup};
1
+ import{Root as d}from"@radix-ui/react-radio-group";import{createElement as o,Children as l,isValidElement as u,cloneElement as C}from"react";import{Stack as E}from"../stack/Stack.js";import{RadioCard as R}from"./RadioCard.js";const s=({css:t,children:e,size:m,isFullWidth:n,align:i,gap:a="3",justify:p,...f})=>o(d,{...f},o(E,{direction:"row",justify:p,gap:a,css:t},l.map(e,r=>u(r)&&(r==null?void 0:r.type)===R?C(r,{size:m,isFullWidth:n,align:i}):r)));export{s as RadioCardGroup};
@@ -1,9 +1,12 @@
1
1
  import * as React from 'react';
2
+ import { Input } from '../../components/input';
2
3
  import { CSS } from '../../stitches';
3
- import { Input } from '../input/Input';
4
4
  declare type SearchInputProps = React.ComponentProps<typeof Input> & {
5
5
  size: 'sm' | 'md';
6
6
  css?: CSS;
7
+ value?: string;
8
+ clearText?: string;
9
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
10
  };
8
11
  export declare const SearchInput: React.FC<SearchInputProps>;
9
12
  export {};