@atom-learning/components 2.47.0 → 2.49.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 (38) hide show
  1. package/CHANGELOG.md +11 -4
  2. package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -1
  3. package/dist/components/index.d.ts +3 -0
  4. package/dist/components/tile/Tile.d.ts +224 -0
  5. package/dist/components/tile/Tile.js +2 -0
  6. package/dist/components/tile/Tile.js.map +1 -0
  7. package/dist/components/tile/TileGroup.d.ts +227 -0
  8. package/dist/components/tile/TileGroup.js +2 -0
  9. package/dist/components/tile/TileGroup.js.map +1 -0
  10. package/dist/components/tile/TileNoOverflowContainer.d.ts +425 -0
  11. package/dist/components/tile/TileNoOverflowContainer.js +2 -0
  12. package/dist/components/tile/TileNoOverflowContainer.js.map +1 -0
  13. package/dist/components/tile/index.d.ts +7 -0
  14. package/dist/components/tile/index.js +2 -0
  15. package/dist/components/tile/index.js.map +1 -0
  16. package/dist/components/tile-interactive/TileInteractive.d.ts +868 -0
  17. package/dist/components/tile-interactive/TileInteractive.js +2 -0
  18. package/dist/components/tile-interactive/TileInteractive.js.map +1 -0
  19. package/dist/components/tile-interactive/index.d.ts +1 -0
  20. package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +656 -0
  21. package/dist/components/tile-toggle-group/TileToggleGroupItem.js +2 -0
  22. package/dist/components/tile-toggle-group/TileToggleGroupItem.js.map +1 -0
  23. package/dist/components/tile-toggle-group/TileToggleGroupRoot.d.ts +453 -0
  24. package/dist/components/tile-toggle-group/TileToggleGroupRoot.js +2 -0
  25. package/dist/components/tile-toggle-group/TileToggleGroupRoot.js.map +1 -0
  26. package/dist/components/tile-toggle-group/index.d.ts +7 -0
  27. package/dist/components/tile-toggle-group/index.js +2 -0
  28. package/dist/components/tile-toggle-group/index.js.map +1 -0
  29. package/dist/components/toggle-group/ToggleGroupRoot.js +1 -1
  30. package/dist/docgen.json +1 -1
  31. package/dist/index.cjs.js +1 -1
  32. package/dist/index.cjs.js.map +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/utilities/no-overflow-container/NoOverflowContainer.d.ts +425 -0
  35. package/dist/utilities/no-overflow-container/NoOverflowContainer.js +2 -0
  36. package/dist/utilities/no-overflow-container/NoOverflowContainer.js.map +1 -0
  37. package/dist/utilities/no-overflow-container/index.d.ts +1 -0
  38. package/package.json +1 -1
@@ -0,0 +1,656 @@
1
+ import * as ToggleGroup from '@radix-ui/react-toggle-group';
2
+ import * as React from 'react';
3
+ declare const StyledTileToggleGroupItem: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
4
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
5
+ }, "border" | "borderRadius" | "css"> & import("@stitches/react/types/styled-component").TransformProps<{
6
+ borderRadius?: "sm" | "md" | "lg" | undefined;
7
+ border?: boolean | "true" | undefined;
8
+ }, {
9
+ sm: string;
10
+ md: string;
11
+ lg: string;
12
+ xl: string;
13
+ reducedMotion: string;
14
+ allowMotion: string;
15
+ hover: string;
16
+ }> & {
17
+ css?: import("@stitches/react/types/css-util").CSS<{
18
+ sm: string;
19
+ md: string;
20
+ lg: string;
21
+ xl: string;
22
+ reducedMotion: string;
23
+ allowMotion: string;
24
+ hover: string;
25
+ }, {
26
+ colors: {
27
+ textForeground: any;
28
+ textSubtle: any;
29
+ textPlaceholder: any;
30
+ background: any;
31
+ backgroundAccent: any;
32
+ grey100: any;
33
+ grey200: any;
34
+ grey300: any;
35
+ grey400: any;
36
+ grey500: any;
37
+ grey600: any;
38
+ grey700: any;
39
+ grey800: any;
40
+ grey900: any;
41
+ grey1000: any;
42
+ grey1100: any;
43
+ grey1200: any;
44
+ blue100: any;
45
+ blue200: any;
46
+ blue300: any;
47
+ blue400: any;
48
+ blue500: any;
49
+ blue600: any;
50
+ blue700: any;
51
+ blue800: any;
52
+ blue900: any;
53
+ blue1000: any;
54
+ blue1100: any;
55
+ blue1200: any;
56
+ purple100: any;
57
+ purple200: any;
58
+ purple300: any;
59
+ purple400: any;
60
+ purple500: any;
61
+ purple600: any;
62
+ purple700: any;
63
+ purple800: any;
64
+ purple900: any;
65
+ purple1000: any;
66
+ purple1100: any;
67
+ purple1200: any;
68
+ tonal50: any;
69
+ tonal100: any;
70
+ tonal200: any;
71
+ tonal300: any;
72
+ tonal400: any;
73
+ tonal500: any;
74
+ tonal600: any;
75
+ alpha100: any;
76
+ alpha150: any;
77
+ alpha200: any;
78
+ alpha250: any;
79
+ alpha600: any;
80
+ primaryLight: any;
81
+ primary: any;
82
+ primaryMid: any;
83
+ primaryDark: any;
84
+ secondary: any;
85
+ brandRed: any;
86
+ brandRedAccent: any;
87
+ brandGreen: any;
88
+ brandGreenAccent: any;
89
+ brandPurple: any;
90
+ brandPurpleAccent: any;
91
+ brandYellow: any;
92
+ brandYellowAccent: any;
93
+ successLight: any;
94
+ success: any;
95
+ successMid: any;
96
+ successDark: any;
97
+ dangerLight: any;
98
+ danger: any;
99
+ dangerMid: any;
100
+ dangerDark: any;
101
+ warningLight: any;
102
+ warning: any;
103
+ warningMid: any;
104
+ warningDark: any;
105
+ warningText: any;
106
+ subjectEnglish: any;
107
+ subjectMaths: any;
108
+ subjectScience: any;
109
+ subjectVerbalReasoning: any;
110
+ subjectNonVerbalReasoning: any;
111
+ subjectCreativeWriting: any;
112
+ subjectExamSkills: any;
113
+ };
114
+ space: {
115
+ "0": any;
116
+ "1": any;
117
+ "2": any;
118
+ "3": any;
119
+ "4": any;
120
+ "5": any;
121
+ "6": any;
122
+ "7": any;
123
+ "8": any;
124
+ "9": any;
125
+ "24": any;
126
+ };
127
+ fontSizes: {
128
+ xs: any;
129
+ sm: any;
130
+ md: any;
131
+ lg: any;
132
+ xl: any;
133
+ "2xl": any;
134
+ "3xl": any;
135
+ "4xl": any;
136
+ };
137
+ fonts: {
138
+ sans: any;
139
+ mono: any;
140
+ display: any;
141
+ body: any;
142
+ };
143
+ sizes: {
144
+ "0": any;
145
+ "1": any;
146
+ "2": any;
147
+ "3": any;
148
+ "4": any;
149
+ "5": any;
150
+ "6": any;
151
+ "7": any;
152
+ "8": any;
153
+ };
154
+ radii: {
155
+ "0": any;
156
+ "1": any;
157
+ "2": any;
158
+ "3": any;
159
+ round: any;
160
+ };
161
+ shadows: {
162
+ "0": any;
163
+ "1": any;
164
+ "2": any;
165
+ "3": any;
166
+ };
167
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
168
+ bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
169
+ background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
170
+ };
171
+ size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
172
+ height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
173
+ width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
174
+ };
175
+ p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
176
+ padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
177
+ };
178
+ pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
179
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
180
+ };
181
+ pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
182
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
183
+ };
184
+ pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
185
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
186
+ };
187
+ pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
188
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
189
+ };
190
+ px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
191
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
192
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
193
+ };
194
+ py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
195
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
196
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
197
+ };
198
+ m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
199
+ margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
200
+ };
201
+ mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
202
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
203
+ };
204
+ mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
205
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
206
+ };
207
+ mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
208
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
209
+ };
210
+ ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
211
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
212
+ };
213
+ mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
214
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
215
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
216
+ };
217
+ my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
218
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
219
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
220
+ };
221
+ }> | undefined;
222
+ } & {
223
+ asWorkaround?: React.ElementType<any> | undefined;
224
+ colorScheme?: import("../..").TcolorScheme | undefined;
225
+ }, "colorScheme" | "border" | "borderRadius" | "css" | "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asWorkaround"> & React.RefAttributes<HTMLButtonElement>, "css"> & import("@stitches/react/types/styled-component").TransformProps<{}, {
226
+ sm: string;
227
+ md: string;
228
+ lg: string;
229
+ xl: string;
230
+ reducedMotion: string;
231
+ allowMotion: string;
232
+ hover: string;
233
+ }> & {
234
+ css?: import("@stitches/react/types/css-util").CSS<{
235
+ sm: string;
236
+ md: string;
237
+ lg: string;
238
+ xl: string;
239
+ reducedMotion: string;
240
+ allowMotion: string;
241
+ hover: string;
242
+ }, {
243
+ colors: {
244
+ textForeground: any;
245
+ textSubtle: any;
246
+ textPlaceholder: any;
247
+ background: any;
248
+ backgroundAccent: any;
249
+ grey100: any;
250
+ grey200: any;
251
+ grey300: any;
252
+ grey400: any;
253
+ grey500: any;
254
+ grey600: any;
255
+ grey700: any;
256
+ grey800: any;
257
+ grey900: any;
258
+ grey1000: any;
259
+ grey1100: any;
260
+ grey1200: any;
261
+ blue100: any;
262
+ blue200: any;
263
+ blue300: any;
264
+ blue400: any;
265
+ blue500: any;
266
+ blue600: any;
267
+ blue700: any;
268
+ blue800: any;
269
+ blue900: any;
270
+ blue1000: any;
271
+ blue1100: any;
272
+ blue1200: any;
273
+ purple100: any;
274
+ purple200: any;
275
+ purple300: any;
276
+ purple400: any;
277
+ purple500: any;
278
+ purple600: any;
279
+ purple700: any;
280
+ purple800: any;
281
+ purple900: any;
282
+ purple1000: any;
283
+ purple1100: any;
284
+ purple1200: any;
285
+ tonal50: any;
286
+ tonal100: any;
287
+ tonal200: any;
288
+ tonal300: any;
289
+ tonal400: any;
290
+ tonal500: any;
291
+ tonal600: any;
292
+ alpha100: any;
293
+ alpha150: any;
294
+ alpha200: any;
295
+ alpha250: any;
296
+ alpha600: any;
297
+ primaryLight: any;
298
+ primary: any;
299
+ primaryMid: any;
300
+ primaryDark: any;
301
+ secondary: any;
302
+ brandRed: any;
303
+ brandRedAccent: any;
304
+ brandGreen: any;
305
+ brandGreenAccent: any;
306
+ brandPurple: any;
307
+ brandPurpleAccent: any;
308
+ brandYellow: any;
309
+ brandYellowAccent: any;
310
+ successLight: any;
311
+ success: any;
312
+ successMid: any;
313
+ successDark: any;
314
+ dangerLight: any;
315
+ danger: any;
316
+ dangerMid: any;
317
+ dangerDark: any;
318
+ warningLight: any;
319
+ warning: any;
320
+ warningMid: any;
321
+ warningDark: any;
322
+ warningText: any;
323
+ subjectEnglish: any;
324
+ subjectMaths: any;
325
+ subjectScience: any;
326
+ subjectVerbalReasoning: any;
327
+ subjectNonVerbalReasoning: any;
328
+ subjectCreativeWriting: any;
329
+ subjectExamSkills: any;
330
+ };
331
+ space: {
332
+ "0": any;
333
+ "1": any;
334
+ "2": any;
335
+ "3": any;
336
+ "4": any;
337
+ "5": any;
338
+ "6": any;
339
+ "7": any;
340
+ "8": any;
341
+ "9": any;
342
+ "24": any;
343
+ };
344
+ fontSizes: {
345
+ xs: any;
346
+ sm: any;
347
+ md: any;
348
+ lg: any;
349
+ xl: any;
350
+ "2xl": any;
351
+ "3xl": any;
352
+ "4xl": any;
353
+ };
354
+ fonts: {
355
+ sans: any;
356
+ mono: any;
357
+ display: any;
358
+ body: any;
359
+ };
360
+ sizes: {
361
+ "0": any;
362
+ "1": any;
363
+ "2": any;
364
+ "3": any;
365
+ "4": any;
366
+ "5": any;
367
+ "6": any;
368
+ "7": any;
369
+ "8": any;
370
+ };
371
+ radii: {
372
+ "0": any;
373
+ "1": any;
374
+ "2": any;
375
+ "3": any;
376
+ round: any;
377
+ };
378
+ shadows: {
379
+ "0": any;
380
+ "1": any;
381
+ "2": any;
382
+ "3": any;
383
+ };
384
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
385
+ bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
386
+ background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
387
+ };
388
+ size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
389
+ height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
390
+ width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
391
+ };
392
+ p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
393
+ padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
394
+ };
395
+ pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
396
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
397
+ };
398
+ pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
399
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
400
+ };
401
+ pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
402
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
403
+ };
404
+ pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
405
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
406
+ };
407
+ px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
408
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
409
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
410
+ };
411
+ py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
412
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
413
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
414
+ };
415
+ m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
416
+ margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
417
+ };
418
+ mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
419
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
420
+ };
421
+ mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
422
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
423
+ };
424
+ mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
425
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
426
+ };
427
+ ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
428
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
429
+ };
430
+ mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
431
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
432
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
433
+ };
434
+ my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
435
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
436
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
437
+ };
438
+ }> | undefined;
439
+ } & {
440
+ type?: string | undefined;
441
+ } & import("../../types").NavigatorActions, "color" | "colorScheme" | "translate" | "border" | "borderRadius" | "css" | "onBlur" | "onChange" | "onSubmit" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "type" | "href" | "asWorkaround"> & React.RefAttributes<HTMLButtonElement>>, {}, {
442
+ sm: string;
443
+ md: string;
444
+ lg: string;
445
+ xl: string;
446
+ reducedMotion: string;
447
+ allowMotion: string;
448
+ hover: string;
449
+ }, import("@stitches/react/types/css-util").CSS<{
450
+ sm: string;
451
+ md: string;
452
+ lg: string;
453
+ xl: string;
454
+ reducedMotion: string;
455
+ allowMotion: string;
456
+ hover: string;
457
+ }, {
458
+ colors: {
459
+ textForeground: any;
460
+ textSubtle: any;
461
+ textPlaceholder: any;
462
+ background: any;
463
+ backgroundAccent: any;
464
+ grey100: any;
465
+ grey200: any;
466
+ grey300: any;
467
+ grey400: any;
468
+ grey500: any;
469
+ grey600: any;
470
+ grey700: any;
471
+ grey800: any;
472
+ grey900: any;
473
+ grey1000: any;
474
+ grey1100: any;
475
+ grey1200: any;
476
+ blue100: any;
477
+ blue200: any;
478
+ blue300: any;
479
+ blue400: any;
480
+ blue500: any;
481
+ blue600: any;
482
+ blue700: any;
483
+ blue800: any;
484
+ blue900: any;
485
+ blue1000: any;
486
+ blue1100: any;
487
+ blue1200: any;
488
+ purple100: any;
489
+ purple200: any;
490
+ purple300: any;
491
+ purple400: any;
492
+ purple500: any;
493
+ purple600: any;
494
+ purple700: any;
495
+ purple800: any;
496
+ purple900: any;
497
+ purple1000: any;
498
+ purple1100: any;
499
+ purple1200: any;
500
+ tonal50: any;
501
+ tonal100: any;
502
+ tonal200: any;
503
+ tonal300: any;
504
+ tonal400: any;
505
+ tonal500: any;
506
+ tonal600: any;
507
+ alpha100: any;
508
+ alpha150: any;
509
+ alpha200: any;
510
+ alpha250: any;
511
+ alpha600: any;
512
+ primaryLight: any;
513
+ primary: any;
514
+ primaryMid: any;
515
+ primaryDark: any;
516
+ secondary: any;
517
+ brandRed: any;
518
+ brandRedAccent: any;
519
+ brandGreen: any;
520
+ brandGreenAccent: any;
521
+ brandPurple: any;
522
+ brandPurpleAccent: any;
523
+ brandYellow: any;
524
+ brandYellowAccent: any;
525
+ successLight: any;
526
+ success: any;
527
+ successMid: any;
528
+ successDark: any;
529
+ dangerLight: any;
530
+ danger: any;
531
+ dangerMid: any;
532
+ dangerDark: any;
533
+ warningLight: any;
534
+ warning: any;
535
+ warningMid: any;
536
+ warningDark: any;
537
+ warningText: any;
538
+ subjectEnglish: any;
539
+ subjectMaths: any;
540
+ subjectScience: any;
541
+ subjectVerbalReasoning: any;
542
+ subjectNonVerbalReasoning: any;
543
+ subjectCreativeWriting: any;
544
+ subjectExamSkills: any;
545
+ };
546
+ space: {
547
+ "0": any;
548
+ "1": any;
549
+ "2": any;
550
+ "3": any;
551
+ "4": any;
552
+ "5": any;
553
+ "6": any;
554
+ "7": any;
555
+ "8": any;
556
+ "9": any;
557
+ "24": any;
558
+ };
559
+ fontSizes: {
560
+ xs: any;
561
+ sm: any;
562
+ md: any;
563
+ lg: any;
564
+ xl: any;
565
+ "2xl": any;
566
+ "3xl": any;
567
+ "4xl": any;
568
+ };
569
+ fonts: {
570
+ sans: any;
571
+ mono: any;
572
+ display: any;
573
+ body: any;
574
+ };
575
+ sizes: {
576
+ "0": any;
577
+ "1": any;
578
+ "2": any;
579
+ "3": any;
580
+ "4": any;
581
+ "5": any;
582
+ "6": any;
583
+ "7": any;
584
+ "8": any;
585
+ };
586
+ radii: {
587
+ "0": any;
588
+ "1": any;
589
+ "2": any;
590
+ "3": any;
591
+ round: any;
592
+ };
593
+ shadows: {
594
+ "0": any;
595
+ "1": any;
596
+ "2": any;
597
+ "3": any;
598
+ };
599
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
600
+ bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
601
+ background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
602
+ };
603
+ size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
604
+ height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
605
+ width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
606
+ };
607
+ p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
608
+ padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
609
+ };
610
+ pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
611
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
612
+ };
613
+ pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
614
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
615
+ };
616
+ pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
617
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
618
+ };
619
+ pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
620
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
621
+ };
622
+ px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
623
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
624
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
625
+ };
626
+ py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
627
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
628
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
629
+ };
630
+ m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
631
+ margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
632
+ };
633
+ mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
634
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
635
+ };
636
+ mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
637
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
638
+ };
639
+ mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
640
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
641
+ };
642
+ ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
643
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
644
+ };
645
+ mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
646
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
647
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
648
+ };
649
+ my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
650
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
651
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
652
+ };
653
+ }>>;
654
+ declare type TTileToggleGroupItem = React.ComponentProps<typeof ToggleGroup.Item> & React.ComponentProps<typeof StyledTileToggleGroupItem>;
655
+ export declare const TileToggleGroupItem: React.FC<TTileToggleGroupItem>;
656
+ export {};
@@ -0,0 +1,2 @@
1
+ import*as r from"@radix-ui/react-toggle-group";import*as t from"react";import{TileInteractive as a}from"../tile-interactive/TileInteractive.js";import{styled as i}from"../../stitches.js";const n=i(a,{"&:not([disabled])":{'&[data-state="on"]':{"&:hover":{bg:"$interactive2"},"&:active":{bg:"$interactive3"}}},'&[data-state="on"]':{bg:"$interactive1",borderColor:"$accent8","&::before":{content:"",position:"absolute",inset:-1,boxShadow:"inset $colors$accent8 0px 0px 0px 2px",borderRadius:"inherit",zIndex:1}}}),c=({children:e,...o})=>t.createElement(r.Item,{...o,asChild:!0},t.createElement(n,{asWorkaround:"button"},e));export{c as TileToggleGroupItem};
2
+ //# sourceMappingURL=TileToggleGroupItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TileToggleGroupItem.js","sources":["../../../src/components/tile-toggle-group/TileToggleGroupItem.tsx"],"sourcesContent":["import * as ToggleGroup from '@radix-ui/react-toggle-group'\nimport * as React from 'react'\n\nimport { TileInteractive } from '~/components/tile-interactive'\nimport { styled } from '~/stitches'\n\nconst StyledTileToggleGroupItem = styled(TileInteractive, {\n '&:not([disabled])': {\n '&[data-state=\"on\"]': {\n '&:hover': {\n bg: '$interactive2'\n },\n '&:active': {\n bg: '$interactive3'\n }\n }\n },\n '&[data-state=\"on\"]': {\n bg: '$interactive1',\n borderColor: '$accent8',\n '&::before': {\n content: '',\n position: 'absolute',\n inset: -1, // account for 1px Tile border\n boxShadow: 'inset $colors$accent8 0px 0px 0px 2px',\n borderRadius: 'inherit',\n zIndex: 1 // so it's over anything nested which touches sides\n }\n }\n})\n\ntype TTileToggleGroupItem = React.ComponentProps<typeof ToggleGroup.Item> &\n React.ComponentProps<typeof StyledTileToggleGroupItem>\n\nexport const TileToggleGroupItem: React.FC<TTileToggleGroupItem> = ({\n children,\n ...rest\n}) => {\n return (\n <ToggleGroup.Item {...rest} asChild>\n <StyledTileToggleGroupItem asWorkaround=\"button\">\n {children}\n </StyledTileToggleGroupItem>\n </ToggleGroup.Item>\n )\n}\n"],"names":["StyledTileToggleGroupItem","styled","TileInteractive","TileToggleGroupItem","children","rest","React","ToggleGroup"],"mappings":"2LAMA,MAAMA,EAA4BC,EAAOC,EAAiB,CACxD,oBAAqB,CACnB,qBAAsB,CACpB,UAAW,CACT,GAAI,eACN,EACA,WAAY,CACV,GAAI,eACN,CACF,CACF,EACA,qBAAsB,CACpB,GAAI,gBACJ,YAAa,WACb,YAAa,CACX,QAAS,GACT,SAAU,WACV,MAAO,GACP,UAAW,wCACX,aAAc,UACd,OAAQ,CACV,CACF,CACF,CAAC,EAKYC,EAAsD,CAAC,CAClE,SAAAC,KACGC,CACL,IAEIC,EAAA,cAACC,EAAY,KAAZ,CAAkB,GAAGF,EAAM,QAAO,EAAA,EACjCC,EAAA,cAACN,EAAA,CAA0B,aAAa,QAAA,EACrCI,CACH,CACF"}