@atom-learning/components 2.0.0 → 2.2.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 (118) hide show
  1. package/CHANGELOG.md +0 -26
  2. package/dist/components/accordion/Accordion.d.ts +1 -0
  3. package/dist/components/accordion/AccordionContent.d.ts +1 -0
  4. package/dist/components/accordion/AccordionItem.d.ts +1 -0
  5. package/dist/components/accordion/AccordionTrigger.d.ts +1 -0
  6. package/dist/components/action-icon/ActionIcon.d.ts +1 -0
  7. package/dist/components/alert-dialog/AlertDialog.d.ts +1 -0
  8. package/dist/components/alert-dialog/AlertDialogContent.d.ts +1 -0
  9. package/dist/components/badge/Badge.d.ts +2 -0
  10. package/dist/components/box/Box.d.ts +1 -0
  11. package/dist/components/button/Button.d.ts +1 -0
  12. package/dist/components/calendar/Day.d.ts +1 -0
  13. package/dist/components/carousel/CarouselPagination.d.ts +1 -0
  14. package/dist/components/carousel/CarouselSlide.d.ts +1 -0
  15. package/dist/components/carousel/CarouselSlider.d.ts +1 -0
  16. package/dist/components/checkbox/Checkbox.d.ts +1 -0
  17. package/dist/components/combobox/Combobox.d.ts +1 -0
  18. package/dist/components/combobox/ComboboxInput.d.ts +1 -0
  19. package/dist/components/combobox/ComboboxList.d.ts +1 -0
  20. package/dist/components/combobox/ComboboxOption.d.ts +1 -0
  21. package/dist/components/combobox/ComboboxPopover.d.ts +1 -0
  22. package/dist/components/dialog/Dialog.d.ts +1 -0
  23. package/dist/components/dialog/DialogBackground.d.ts +2 -0
  24. package/dist/components/dialog/DialogClose.d.ts +1 -0
  25. package/dist/components/dialog/DialogContent.d.ts +1 -0
  26. package/dist/components/divider/Divider.d.ts +1 -0
  27. package/dist/components/dropdown-menu/DropdownMenu.d.ts +1 -0
  28. package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +1 -0
  29. package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +1 -0
  30. package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +1 -0
  31. package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +1 -0
  32. package/dist/components/empty-state/EmptyState.d.ts +2 -0
  33. package/dist/components/empty-state/EmptyStateBody.d.ts +2 -0
  34. package/dist/components/empty-state/EmptyStateImage.d.ts +2 -0
  35. package/dist/components/empty-state/EmptyStateTitle.d.ts +1 -0
  36. package/dist/components/field-wrapper/FieldWrapper.js +1 -1
  37. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  38. package/dist/components/flex/Flex.d.ts +1 -0
  39. package/dist/components/form/Form.d.ts +1 -0
  40. package/dist/components/grid/Grid.d.ts +1 -0
  41. package/dist/components/heading/Heading.d.ts +1 -0
  42. package/dist/components/icon/Icon.d.ts +1 -0
  43. package/dist/components/image/Image.d.ts +1 -0
  44. package/dist/components/index.d.ts +2 -1
  45. package/dist/components/inline-message/InlineMessage.config.d.ts +5 -0
  46. package/dist/components/inline-message/InlineMessage.config.js +1 -0
  47. package/dist/components/inline-message/InlineMessage.d.ts +541 -0
  48. package/dist/components/inline-message/InlineMessage.js +1 -0
  49. package/dist/components/inline-message/InlineMessage.types.d.ts +1 -0
  50. package/dist/components/inline-message/index.d.ts +1 -0
  51. package/dist/components/input/Input.d.ts +1 -0
  52. package/dist/components/label/Label.d.ts +1 -0
  53. package/dist/components/link/Link.d.ts +1 -0
  54. package/dist/components/list/List.d.ts +2 -0
  55. package/dist/components/navigation/NavigationMenu.d.ts +15 -0
  56. package/dist/components/navigation/NavigationMenu.js +1 -0
  57. package/dist/components/navigation/NavigationMenuContext.d.ts +7 -0
  58. package/dist/components/navigation/NavigationMenuContext.js +1 -0
  59. package/dist/components/navigation/NavigationMenuDropdown.d.ts +7 -0
  60. package/dist/components/navigation/NavigationMenuDropdown.js +1 -0
  61. package/dist/components/navigation/NavigationMenuItem.d.ts +287 -0
  62. package/dist/components/navigation/NavigationMenuItem.js +1 -0
  63. package/dist/components/navigation/index.d.ts +1 -0
  64. package/dist/components/notification-badge/NotificationBadge.d.ts +2 -0
  65. package/dist/components/popover/Popover.d.ts +1 -0
  66. package/dist/components/popover/PopoverContent.d.ts +1 -0
  67. package/dist/components/progress-bar/ProgressBar.d.ts +1 -0
  68. package/dist/components/radio-button/RadioButton.d.ts +1 -0
  69. package/dist/components/radio-button/RadioButtonGroup.d.ts +1 -0
  70. package/dist/components/radio-button-field/RadioButtonField.js +1 -1
  71. package/dist/components/radio-card/RadioCard.d.ts +1 -0
  72. package/dist/components/select/Select.d.ts +1 -0
  73. package/dist/components/slider/Slider.d.ts +1 -0
  74. package/dist/components/stack/Stack.d.ts +1 -0
  75. package/dist/components/stack-content/StackContent.d.ts +1 -0
  76. package/dist/components/stepper/StepperStepBullet.d.ts +2 -0
  77. package/dist/components/stepper/StepperStepContainer.d.ts +2 -0
  78. package/dist/components/stepper/StepperStepLabel.d.ts +2 -0
  79. package/dist/components/switch/Switch.d.ts +1 -0
  80. package/dist/components/table/Table.d.ts +1 -0
  81. package/dist/components/table/TableBody.d.ts +1 -0
  82. package/dist/components/table/TableCell.d.ts +1 -0
  83. package/dist/components/table/TableFooter.d.ts +1 -0
  84. package/dist/components/table/TableFooterCell.d.ts +1 -0
  85. package/dist/components/table/TableHeader.d.ts +1 -0
  86. package/dist/components/table/TableHeaderCell.d.ts +1 -0
  87. package/dist/components/table/TableRow.d.ts +1 -0
  88. package/dist/components/tabs/TabTrigger.d.ts +1 -0
  89. package/dist/components/tabs/Tabs.d.ts +2 -0
  90. package/dist/components/tabs/TabsTriggerList.d.ts +1 -0
  91. package/dist/components/text/Text.d.ts +1 -0
  92. package/dist/components/textarea/Textarea.d.ts +1 -0
  93. package/dist/components/toast/Toast.d.ts +1 -0
  94. package/dist/components/toggle-group/ToggleGroupButton.d.ts +2 -0
  95. package/dist/components/toggle-group/ToggleGroupItem.d.ts +2 -0
  96. package/dist/components/toggle-group/ToggleGroupRoot.d.ts +1 -0
  97. package/dist/components/toggle-group/index.d.ts +5 -0
  98. package/dist/components/tooltip/TooltipContent.d.ts +1 -0
  99. package/dist/components/video/Video.d.ts +2 -0
  100. package/dist/docgen.json +1 -1
  101. package/dist/docs/CheckboxField.mdx +1 -1
  102. package/dist/docs/DateField.mdx +2 -2
  103. package/dist/docs/FieldWrapper.mdx +1 -1
  104. package/dist/docs/Form.mdx +3 -3
  105. package/dist/docs/InlineMessage.mdx +52 -0
  106. package/dist/docs/InputField.mdx +2 -2
  107. package/dist/docs/NavigationMenu.mdx +113 -0
  108. package/dist/docs/RadioButtonField.mdx +2 -2
  109. package/dist/docs/SelectField.mdx +2 -2
  110. package/dist/docs/TextareaField.mdx +1 -1
  111. package/dist/index.cjs.js +1 -1
  112. package/dist/index.js +1 -1
  113. package/dist/stitches.d.ts +10 -0
  114. package/package.json +4 -2
  115. package/dist/components/validation-error/ValidationError.d.ts +0 -7
  116. package/dist/components/validation-error/ValidationError.js +0 -1
  117. package/dist/components/validation-error/index.d.ts +0 -1
  118. package/dist/docs/ValidationError.mdx +0 -12
@@ -0,0 +1,541 @@
1
+ import * as React from 'react';
2
+ import { InlineMessageTheme } from './InlineMessage.types';
3
+ declare const InlineMessageContainer: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
4
+ sm: string;
5
+ md: string;
6
+ lg: string;
7
+ xl: string;
8
+ reducedMotion: string;
9
+ allowMotion: string;
10
+ hover: string;
11
+ }, import("@stitches/react/types/css-util").CSS<{
12
+ sm: string;
13
+ md: string;
14
+ lg: string;
15
+ xl: string;
16
+ reducedMotion: string;
17
+ allowMotion: string;
18
+ hover: string;
19
+ }, {
20
+ colors: {
21
+ textForeground: any;
22
+ textSubtle: any;
23
+ textPlaceholder: any;
24
+ background: any;
25
+ backgroundAccent: any;
26
+ tonal50: any;
27
+ tonal100: any;
28
+ tonal200: any;
29
+ tonal300: any;
30
+ tonal400: any;
31
+ tonal500: any;
32
+ tonal600: any;
33
+ alpha100: any;
34
+ alpha150: any;
35
+ alpha200: any;
36
+ alpha250: any;
37
+ alpha600: any;
38
+ primaryLight: any;
39
+ primary: any;
40
+ primaryMid: any;
41
+ primaryDark: any;
42
+ secondary: any;
43
+ brandRed: any;
44
+ brandRedAccent: any;
45
+ brandGreen: any;
46
+ brandGreenAccent: any;
47
+ brandPurple: any;
48
+ brandPurpleAccent: any;
49
+ brandYellow: any;
50
+ brandYellowAccent: any;
51
+ successLight: any;
52
+ success: any;
53
+ successMid: any;
54
+ successDark: any;
55
+ dangerLight: any;
56
+ danger: any;
57
+ dangerMid: any;
58
+ dangerDark: any;
59
+ warningLight: any;
60
+ warning: any;
61
+ warningMid: any;
62
+ warningDark: any;
63
+ warningText: any;
64
+ subjectEnglish: any;
65
+ subjectMaths: any;
66
+ subjectScience: any;
67
+ subjectVerbalReasoning: any;
68
+ subjectNonVerbalReasoning: any;
69
+ subjectCreativeWriting: any;
70
+ subjectExamSkills: any;
71
+ };
72
+ space: {
73
+ "0": any;
74
+ "1": any;
75
+ "2": any;
76
+ "3": any;
77
+ "4": any;
78
+ "5": any;
79
+ "6": any;
80
+ "7": any;
81
+ "8": any;
82
+ "9": any;
83
+ };
84
+ fontSizes: {
85
+ xs: any;
86
+ sm: any;
87
+ md: any;
88
+ lg: any;
89
+ xl: any;
90
+ "2xl": any;
91
+ "3xl": any;
92
+ "4xl": any;
93
+ };
94
+ fonts: {
95
+ sans: any;
96
+ mono: any;
97
+ display: any;
98
+ body: any;
99
+ };
100
+ sizes: {
101
+ "0": any;
102
+ "1": any;
103
+ "2": any;
104
+ "3": any;
105
+ "4": any;
106
+ "5": any;
107
+ "6": any;
108
+ "7": any;
109
+ "8": any;
110
+ };
111
+ radii: {
112
+ "0": any;
113
+ "1": any;
114
+ "2": any;
115
+ "3": any;
116
+ round: any;
117
+ };
118
+ shadows: {
119
+ "0": any;
120
+ "1": any;
121
+ "2": any;
122
+ "3": any;
123
+ };
124
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
125
+ bg: (value: {
126
+ readonly [$$PropertyValue]: "background";
127
+ }) => {
128
+ background: {
129
+ readonly [$$PropertyValue]: "background";
130
+ };
131
+ };
132
+ inset: (value: string | number | {
133
+ readonly [$$ScaleValue]: "space";
134
+ }) => {
135
+ top: string | number | {
136
+ readonly [$$ScaleValue]: "space";
137
+ };
138
+ right: string | number | {
139
+ readonly [$$ScaleValue]: "space";
140
+ };
141
+ bottom: string | number | {
142
+ readonly [$$ScaleValue]: "space";
143
+ };
144
+ left: string | number | {
145
+ readonly [$$ScaleValue]: "space";
146
+ };
147
+ };
148
+ size: (value: string | number | {
149
+ readonly [$$ScaleValue]: "size";
150
+ }) => {
151
+ height: string | number | {
152
+ readonly [$$ScaleValue]: "size";
153
+ };
154
+ width: string | number | {
155
+ readonly [$$ScaleValue]: "size";
156
+ };
157
+ };
158
+ p: (value: string | number | {
159
+ readonly [$$ScaleValue]: "space";
160
+ }) => {
161
+ padding: string | number | {
162
+ readonly [$$ScaleValue]: "space";
163
+ };
164
+ };
165
+ pt: (value: string | number | {
166
+ readonly [$$ScaleValue]: "space";
167
+ }) => {
168
+ paddingTop: string | number | {
169
+ readonly [$$ScaleValue]: "space";
170
+ };
171
+ };
172
+ pr: (value: string | number | {
173
+ readonly [$$ScaleValue]: "space";
174
+ }) => {
175
+ paddingRight: string | number | {
176
+ readonly [$$ScaleValue]: "space";
177
+ };
178
+ };
179
+ pb: (value: string | number | {
180
+ readonly [$$ScaleValue]: "space";
181
+ }) => {
182
+ paddingBottom: string | number | {
183
+ readonly [$$ScaleValue]: "space";
184
+ };
185
+ };
186
+ pl: (value: string | number | {
187
+ readonly [$$ScaleValue]: "space";
188
+ }) => {
189
+ paddingLeft: string | number | {
190
+ readonly [$$ScaleValue]: "space";
191
+ };
192
+ };
193
+ px: (value: string | number | {
194
+ readonly [$$ScaleValue]: "space";
195
+ }) => {
196
+ paddingLeft: string | number | {
197
+ readonly [$$ScaleValue]: "space";
198
+ };
199
+ paddingRight: string | number | {
200
+ readonly [$$ScaleValue]: "space";
201
+ };
202
+ };
203
+ py: (value: string | number | {
204
+ readonly [$$ScaleValue]: "space";
205
+ }) => {
206
+ paddingTop: string | number | {
207
+ readonly [$$ScaleValue]: "space";
208
+ };
209
+ paddingBottom: string | number | {
210
+ readonly [$$ScaleValue]: "space";
211
+ };
212
+ };
213
+ m: (value: string | number | {
214
+ readonly [$$ScaleValue]: "space";
215
+ }) => {
216
+ margin: string | number | {
217
+ readonly [$$ScaleValue]: "space";
218
+ };
219
+ };
220
+ mt: (value: string | number | {
221
+ readonly [$$ScaleValue]: "space";
222
+ }) => {
223
+ marginTop: string | number | {
224
+ readonly [$$ScaleValue]: "space";
225
+ };
226
+ };
227
+ mr: (value: string | number | {
228
+ readonly [$$ScaleValue]: "space";
229
+ }) => {
230
+ marginRight: string | number | {
231
+ readonly [$$ScaleValue]: "space";
232
+ };
233
+ };
234
+ mb: (value: string | number | {
235
+ readonly [$$ScaleValue]: "space";
236
+ }) => {
237
+ marginBottom: string | number | {
238
+ readonly [$$ScaleValue]: "space";
239
+ };
240
+ };
241
+ ml: (value: string | number | {
242
+ readonly [$$ScaleValue]: "space";
243
+ }) => {
244
+ marginLeft: string | number | {
245
+ readonly [$$ScaleValue]: "space";
246
+ };
247
+ };
248
+ mx: (value: string | number | {
249
+ readonly [$$ScaleValue]: "space";
250
+ }) => {
251
+ marginLeft: string | number | {
252
+ readonly [$$ScaleValue]: "space";
253
+ };
254
+ marginRight: string | number | {
255
+ readonly [$$ScaleValue]: "space";
256
+ };
257
+ };
258
+ my: (value: string | number | {
259
+ readonly [$$ScaleValue]: "space";
260
+ }) => {
261
+ marginTop: string | number | {
262
+ readonly [$$ScaleValue]: "space";
263
+ };
264
+ marginBottom: string | number | {
265
+ readonly [$$ScaleValue]: "space";
266
+ };
267
+ };
268
+ }>>, {
269
+ theme?: InlineMessageTheme | undefined;
270
+ }, {
271
+ sm: string;
272
+ md: string;
273
+ lg: string;
274
+ xl: string;
275
+ reducedMotion: string;
276
+ allowMotion: string;
277
+ hover: string;
278
+ }, import("@stitches/react/types/css-util").CSS<{
279
+ sm: string;
280
+ md: string;
281
+ lg: string;
282
+ xl: string;
283
+ reducedMotion: string;
284
+ allowMotion: string;
285
+ hover: string;
286
+ }, {
287
+ colors: {
288
+ textForeground: any;
289
+ textSubtle: any;
290
+ textPlaceholder: any;
291
+ background: any;
292
+ backgroundAccent: any;
293
+ tonal50: any;
294
+ tonal100: any;
295
+ tonal200: any;
296
+ tonal300: any;
297
+ tonal400: any;
298
+ tonal500: any;
299
+ tonal600: any;
300
+ alpha100: any;
301
+ alpha150: any;
302
+ alpha200: any;
303
+ alpha250: any;
304
+ alpha600: any;
305
+ primaryLight: any;
306
+ primary: any;
307
+ primaryMid: any;
308
+ primaryDark: any;
309
+ secondary: any;
310
+ brandRed: any;
311
+ brandRedAccent: any;
312
+ brandGreen: any;
313
+ brandGreenAccent: any;
314
+ brandPurple: any;
315
+ brandPurpleAccent: any;
316
+ brandYellow: any;
317
+ brandYellowAccent: any;
318
+ successLight: any;
319
+ success: any;
320
+ successMid: any;
321
+ successDark: any;
322
+ dangerLight: any;
323
+ danger: any;
324
+ dangerMid: any;
325
+ dangerDark: any;
326
+ warningLight: any;
327
+ warning: any;
328
+ warningMid: any;
329
+ warningDark: any;
330
+ warningText: any;
331
+ subjectEnglish: any;
332
+ subjectMaths: any;
333
+ subjectScience: any;
334
+ subjectVerbalReasoning: any;
335
+ subjectNonVerbalReasoning: any;
336
+ subjectCreativeWriting: any;
337
+ subjectExamSkills: any;
338
+ };
339
+ space: {
340
+ "0": any;
341
+ "1": any;
342
+ "2": any;
343
+ "3": any;
344
+ "4": any;
345
+ "5": any;
346
+ "6": any;
347
+ "7": any;
348
+ "8": any;
349
+ "9": any;
350
+ };
351
+ fontSizes: {
352
+ xs: any;
353
+ sm: any;
354
+ md: any;
355
+ lg: any;
356
+ xl: any;
357
+ "2xl": any;
358
+ "3xl": any;
359
+ "4xl": any;
360
+ };
361
+ fonts: {
362
+ sans: any;
363
+ mono: any;
364
+ display: any;
365
+ body: any;
366
+ };
367
+ sizes: {
368
+ "0": any;
369
+ "1": any;
370
+ "2": any;
371
+ "3": any;
372
+ "4": any;
373
+ "5": any;
374
+ "6": any;
375
+ "7": any;
376
+ "8": any;
377
+ };
378
+ radii: {
379
+ "0": any;
380
+ "1": any;
381
+ "2": any;
382
+ "3": any;
383
+ round: any;
384
+ };
385
+ shadows: {
386
+ "0": any;
387
+ "1": any;
388
+ "2": any;
389
+ "3": any;
390
+ };
391
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
392
+ bg: (value: {
393
+ readonly [$$PropertyValue]: "background";
394
+ }) => {
395
+ background: {
396
+ readonly [$$PropertyValue]: "background";
397
+ };
398
+ };
399
+ inset: (value: string | number | {
400
+ readonly [$$ScaleValue]: "space";
401
+ }) => {
402
+ top: string | number | {
403
+ readonly [$$ScaleValue]: "space";
404
+ };
405
+ right: string | number | {
406
+ readonly [$$ScaleValue]: "space";
407
+ };
408
+ bottom: string | number | {
409
+ readonly [$$ScaleValue]: "space";
410
+ };
411
+ left: string | number | {
412
+ readonly [$$ScaleValue]: "space";
413
+ };
414
+ };
415
+ size: (value: string | number | {
416
+ readonly [$$ScaleValue]: "size";
417
+ }) => {
418
+ height: string | number | {
419
+ readonly [$$ScaleValue]: "size";
420
+ };
421
+ width: string | number | {
422
+ readonly [$$ScaleValue]: "size";
423
+ };
424
+ };
425
+ p: (value: string | number | {
426
+ readonly [$$ScaleValue]: "space";
427
+ }) => {
428
+ padding: string | number | {
429
+ readonly [$$ScaleValue]: "space";
430
+ };
431
+ };
432
+ pt: (value: string | number | {
433
+ readonly [$$ScaleValue]: "space";
434
+ }) => {
435
+ paddingTop: string | number | {
436
+ readonly [$$ScaleValue]: "space";
437
+ };
438
+ };
439
+ pr: (value: string | number | {
440
+ readonly [$$ScaleValue]: "space";
441
+ }) => {
442
+ paddingRight: string | number | {
443
+ readonly [$$ScaleValue]: "space";
444
+ };
445
+ };
446
+ pb: (value: string | number | {
447
+ readonly [$$ScaleValue]: "space";
448
+ }) => {
449
+ paddingBottom: string | number | {
450
+ readonly [$$ScaleValue]: "space";
451
+ };
452
+ };
453
+ pl: (value: string | number | {
454
+ readonly [$$ScaleValue]: "space";
455
+ }) => {
456
+ paddingLeft: string | number | {
457
+ readonly [$$ScaleValue]: "space";
458
+ };
459
+ };
460
+ px: (value: string | number | {
461
+ readonly [$$ScaleValue]: "space";
462
+ }) => {
463
+ paddingLeft: string | number | {
464
+ readonly [$$ScaleValue]: "space";
465
+ };
466
+ paddingRight: string | number | {
467
+ readonly [$$ScaleValue]: "space";
468
+ };
469
+ };
470
+ py: (value: string | number | {
471
+ readonly [$$ScaleValue]: "space";
472
+ }) => {
473
+ paddingTop: string | number | {
474
+ readonly [$$ScaleValue]: "space";
475
+ };
476
+ paddingBottom: string | number | {
477
+ readonly [$$ScaleValue]: "space";
478
+ };
479
+ };
480
+ m: (value: string | number | {
481
+ readonly [$$ScaleValue]: "space";
482
+ }) => {
483
+ margin: string | number | {
484
+ readonly [$$ScaleValue]: "space";
485
+ };
486
+ };
487
+ mt: (value: string | number | {
488
+ readonly [$$ScaleValue]: "space";
489
+ }) => {
490
+ marginTop: string | number | {
491
+ readonly [$$ScaleValue]: "space";
492
+ };
493
+ };
494
+ mr: (value: string | number | {
495
+ readonly [$$ScaleValue]: "space";
496
+ }) => {
497
+ marginRight: string | number | {
498
+ readonly [$$ScaleValue]: "space";
499
+ };
500
+ };
501
+ mb: (value: string | number | {
502
+ readonly [$$ScaleValue]: "space";
503
+ }) => {
504
+ marginBottom: string | number | {
505
+ readonly [$$ScaleValue]: "space";
506
+ };
507
+ };
508
+ ml: (value: string | number | {
509
+ readonly [$$ScaleValue]: "space";
510
+ }) => {
511
+ marginLeft: string | number | {
512
+ readonly [$$ScaleValue]: "space";
513
+ };
514
+ };
515
+ mx: (value: string | number | {
516
+ readonly [$$ScaleValue]: "space";
517
+ }) => {
518
+ marginLeft: string | number | {
519
+ readonly [$$ScaleValue]: "space";
520
+ };
521
+ marginRight: string | number | {
522
+ readonly [$$ScaleValue]: "space";
523
+ };
524
+ };
525
+ my: (value: string | number | {
526
+ readonly [$$ScaleValue]: "space";
527
+ }) => {
528
+ marginTop: string | number | {
529
+ readonly [$$ScaleValue]: "space";
530
+ };
531
+ marginBottom: string | number | {
532
+ readonly [$$ScaleValue]: "space";
533
+ };
534
+ };
535
+ }>>;
536
+ declare type TInlineMessageProps = React.ComponentProps<typeof InlineMessageContainer> & {
537
+ showIcon?: boolean;
538
+ size?: 'xs' | 'sm' | 'md';
539
+ };
540
+ export declare const InlineMessage: React.FC<TInlineMessageProps>;
541
+ export {};
@@ -0,0 +1 @@
1
+ import*as e from"react";import{INLINE_MESSAGE_THEMES as c,INLINE_MESSAGE_ICONS as a}from"./InlineMessage.config.js";import{Flex as E}from"../flex/Flex.js";import{Text as l}from"../text/Text.js";import{Icon as f}from"../icon/Icon.js";import{styled as t}from"../../stitches.js";const p=t(E,{variants:{theme:c}}),I=t(f,{flexShrink:"0",mr:"$2"}),h=({css:s,showIcon:m=!0,theme:r="error",size:o="sm",children:i,...n})=>e.createElement(p,{theme:r,css:s,...n},m&&e.createElement(I,{size:"sm",is:a[r]}),e.createElement(l,{as:"span",size:o,css:{color:"inherit",transform:"translateY($space$0)"}},i));export{h as InlineMessage};
@@ -0,0 +1 @@
1
+ export declare type InlineMessageTheme = 'warning' | 'error' | 'success' | 'info' | 'neutral';
@@ -0,0 +1 @@
1
+ export { InlineMessage } from './InlineMessage';
@@ -63,6 +63,7 @@ declare const StyledInput: import("@stitches/react/types/styled-component").Styl
63
63
  warning: any;
64
64
  warningMid: any;
65
65
  warningDark: any;
66
+ warningText: any;
66
67
  subjectEnglish: any;
67
68
  subjectMaths: any;
68
69
  subjectScience: any;
@@ -65,6 +65,7 @@ declare const StyledLabel: import("@stitches/react/types/styled-component").Styl
65
65
  warning: any;
66
66
  warningMid: any;
67
67
  warningDark: any;
68
+ warningText: any;
68
69
  subjectEnglish: any;
69
70
  subjectMaths: any;
70
71
  subjectScience: any;
@@ -63,6 +63,7 @@ export declare const StyledLink: import("@stitches/react/types/styled-component"
63
63
  warning: any;
64
64
  warningMid: any;
65
65
  warningDark: any;
66
+ warningText: any;
66
67
  subjectEnglish: any;
67
68
  subjectMaths: any;
68
69
  subjectScience: any;
@@ -59,6 +59,7 @@ export declare const StyledLi: import("@stitches/react/types/styled-component").
59
59
  warning: any;
60
60
  warningMid: any;
61
61
  warningDark: any;
62
+ warningText: any;
62
63
  subjectEnglish: any;
63
64
  subjectMaths: any;
64
65
  subjectScience: any;
@@ -327,6 +328,7 @@ export declare const StyledList: import("@stitches/react/types/styled-component"
327
328
  warning: any;
328
329
  warningMid: any;
329
330
  warningDark: any;
331
+ warningText: any;
330
332
  subjectEnglish: any;
331
333
  subjectMaths: any;
332
334
  subjectScience: any;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { CSS } from '../../stitches';
3
+ import { NavigationMenuDropdown } from './NavigationMenuDropdown';
4
+ import { NavigationMenuDropdownContent, NavigationMenuDropdownItem, NavigationMenuLink } from './NavigationMenuItem';
5
+ declare type NavigationMenuSubComponents = {
6
+ Link: typeof NavigationMenuLink;
7
+ Dropdown: typeof NavigationMenuDropdown;
8
+ DropdownContent: typeof NavigationMenuDropdownContent;
9
+ DropdownItem: typeof NavigationMenuDropdownItem;
10
+ };
11
+ declare type NavigationMenuProps = {
12
+ css?: CSS;
13
+ };
14
+ export declare const NavigationMenu: React.FC<NavigationMenuProps> & NavigationMenuSubComponents;
15
+ export {};
@@ -0,0 +1 @@
1
+ import*as l from"@radix-ui/react-navigation-menu";import t from"react";import{DIALOG_Z_INDEX as M}from"../../constants/dialog.js";import{keyframes as h,styled as n}from"../../stitches.js";import{fadeOut as w}from"../../utilities/style/keyframe-animations.js";import{NavigationMenuContext as x}from"./NavigationMenuContext.js";import{NavigationMenuDropdown as D}from"./NavigationMenuDropdown.js";import{NavigationMenuLink as E,NavigationMenuDropdownContent as C,NavigationMenuDropdownItem as $}from"./NavigationMenuItem.js";const I=h({"0%, 50%":{opacity:0},"100%":{opacity:1}}),L=n(l.Root,{display:"flex",justifyContent:"center",position:"relative"}),k=n(l.List,{all:"unset",display:"flex",justifyContent:"center",alignItems:"center",gap:"$1",listStyle:"none"}),S=n(l.Viewport,{zIndex:M}),_=n("div",{position:"absolute",left:0,top:"100%",width:"100%",display:"flex",justifyContent:"center"}),o=({children:f,css:m})=>{const[p,u]=t.useState(),[a,c]=t.useState(),[i,d]=t.useState(0),r=t.useRef(null),s=200;t.useLayoutEffect(()=>{r.current&&d(r.current.offsetWidth)},[]),t.useEffect(()=>{let e;return a===""&&(e=setTimeout(()=>u(null),s)),()=>{e!==null&&clearTimeout(e)}},[a]);const y=(e,v)=>{if(e&&i&&a===v){const g=i/2,N=i-e.offsetLeft-e.offsetWidth+e.offsetWidth/2;u(Math.round(g-N))}return e};return t.createElement(x.Provider,{value:{onNodeUpdate:y}},t.createElement(L,{onValueChange:c,css:m},t.createElement(k,{ref:r},f),t.createElement(_,null,t.createElement(S,{css:{transform:`translateX(${p||0}px)`,'&[data-state="open"]':{animation:`${I} ${s}ms ease`},'&[data-state="closed"]':{animation:`${w} ${s}ms ease-out`}}}))))};o.Link=E,o.Dropdown=D,o.DropdownContent=C,o.DropdownItem=$,o.displayName="NavigationMenu";export{o as NavigationMenu};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface NavigationMenuContextValue {
3
+ onNodeUpdate: (trigger: HTMLButtonElement, itemValue: string) => HTMLButtonElement;
4
+ }
5
+ export declare const NavigationMenuContext: React.Context<NavigationMenuContextValue | undefined>;
6
+ export declare const useNavigationMenuContext: () => NavigationMenuContextValue;
7
+ export {};
@@ -0,0 +1 @@
1
+ import e from"react";const o=e.createContext(void 0),n=()=>{const t=e.useContext(o);if(t===void 0)throw new Error("useNavigationMenuContext must be used within a NavigationMenuContextProvider");return t};export{o as NavigationMenuContext,n as useNavigationMenuContext};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare type NavigationMenuDropdownProps = {
3
+ title: string;
4
+ active?: boolean;
5
+ } & React.HTMLProps<HTMLButtonElement>;
6
+ export declare const NavigationMenuDropdown: React.FC<NavigationMenuDropdownProps>;
7
+ export {};
@@ -0,0 +1 @@
1
+ import*as r from"@radix-ui/react-navigation-menu";import t from"react";import{styled as p}from"../../stitches.js";import{useNavigationMenuContext as m}from"./NavigationMenuContext.js";import{NavigationMenuDropdownTrigger as d}from"./NavigationMenuItem.js";const l=p(r.Content,{p:"$3",bg:"white",mt:"4px",boxShadow:"0px 3px 6px rgba(51, 51, 51, 0.15), 0px 3px 6px rgba(51, 51, 51, 0.2)",borderRadius:"$1"}),u=({children:o,title:e,...n})=>{const{onNodeUpdate:a}=m();return t.createElement(r.Item,{value:e},t.createElement(d,{...n,ref:i=>a(i,e)},e),t.createElement(l,null,o))};export{u as NavigationMenuDropdown};