@atom-learning/components 1.17.3 → 1.18.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 (75) hide show
  1. package/CHANGELOG.md +11 -3
  2. package/dist/components/accordion/Accordion.d.ts +2 -1
  3. package/dist/components/accordion/Accordion.js +1 -1
  4. package/dist/components/accordion/AccordionContent.js +1 -1
  5. package/dist/components/accordion/AccordionItem.js +1 -1
  6. package/dist/components/action-icon/ActionIcon.js +1 -1
  7. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  8. package/dist/components/badge/Badge.js +1 -1
  9. package/dist/components/button/Button.js +1 -1
  10. package/dist/components/calendar/Calendar.js +1 -1
  11. package/dist/components/carousel/CarouselArrows.js +1 -1
  12. package/dist/components/checkbox/Checkbox.js +1 -1
  13. package/dist/components/combobox/Combobox.js +1 -1
  14. package/dist/components/dialog/DialogContent.js +1 -1
  15. package/dist/components/divider/Divider.d.ts +2 -3
  16. package/dist/components/divider/Divider.js +1 -1
  17. package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
  18. package/dist/components/empty-state/EmptyStateBody.d.ts +1 -1
  19. package/dist/components/field-wrapper/FieldDescription.js +1 -1
  20. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  21. package/dist/components/file-input/FileInput.js +1 -1
  22. package/dist/components/grid/Grid.js +1 -1
  23. package/dist/components/heading/Heading.d.ts +1 -1
  24. package/dist/components/heading/Heading.js +1 -1
  25. package/dist/components/image/Image.d.ts +1 -1
  26. package/dist/components/image/Image.js +1 -1
  27. package/dist/components/index.d.ts +1 -0
  28. package/dist/components/label/Label.js +1 -1
  29. package/dist/components/link/Link.js +1 -1
  30. package/dist/components/list/List.d.ts +3 -2
  31. package/dist/components/list/List.js +1 -1
  32. package/dist/components/markdown-content/MarkdownContent.js +1 -1
  33. package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
  34. package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
  35. package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
  36. package/dist/components/markdown-content/components/MarkdownInlineCode.js +1 -1
  37. package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
  38. package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
  39. package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
  40. package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
  41. package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
  42. package/dist/components/notification-badge/NotificationBadge.js +1 -1
  43. package/dist/components/radio-button-field/RadioButtonField.js +1 -1
  44. package/dist/components/radio-card/RadioCardGroup.js +1 -1
  45. package/dist/components/search-input/SearchInput.js +1 -1
  46. package/dist/components/slider-field/SliderField.js +1 -1
  47. package/dist/components/stack/Stack.d.ts +5 -5
  48. package/dist/components/stack/Stack.js +1 -1
  49. package/dist/components/stack-content/StackContent.d.ts +1 -1
  50. package/dist/components/stack-content/StackContent.js +1 -1
  51. package/dist/components/stepper/StepperStepForward.js +1 -1
  52. package/dist/components/switch/Switch.js +1 -1
  53. package/dist/components/table/TableBody.js +1 -1
  54. package/dist/components/table/TableHeader.js +1 -1
  55. package/dist/components/tabs/TabTrigger.js +1 -1
  56. package/dist/components/tabs/Tabs.js +1 -1
  57. package/dist/components/tabs/utils.js +1 -1
  58. package/dist/components/text/Text.d.ts +3 -3
  59. package/dist/components/text/Text.js +1 -1
  60. package/dist/components/toast/Toast.js +1 -1
  61. package/dist/components/toast/ToastProvider.js +1 -1
  62. package/dist/components/toggle-group/ToggleGroupButton.d.ts +534 -0
  63. package/dist/components/toggle-group/ToggleGroupButton.js +1 -0
  64. package/dist/components/toggle-group/ToggleGroupItem.d.ts +532 -0
  65. package/dist/components/toggle-group/ToggleGroupItem.js +1 -0
  66. package/dist/components/toggle-group/ToggleGroupRoot.d.ts +280 -0
  67. package/dist/components/toggle-group/ToggleGroupRoot.js +1 -0
  68. package/dist/components/toggle-group/index.d.ts +1351 -0
  69. package/dist/components/toggle-group/index.js +1 -0
  70. package/dist/components/validation-error/ValidationError.js +1 -1
  71. package/dist/docgen.json +1 -1
  72. package/dist/index.cjs.js +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/utilities/style/focus-visible-style-block.js +1 -0
  75. package/package.json +1 -1
@@ -0,0 +1,280 @@
1
+ import * as ToggleGroup from '@radix-ui/react-toggle-group';
2
+ import * as React from 'react';
3
+ declare type RootType = {
4
+ size: 'sm' | 'md' | 'lg';
5
+ orientation?: 'horizontal' | 'vertical';
6
+ gap?: number;
7
+ isFullWidth?: boolean;
8
+ wrap: 'wrap' | 'no-wrap' | 'wrap-reverse';
9
+ };
10
+ export declare const StyledRoot: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<(ToggleGroup.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>) | (ToggleGroup.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>)>, {
11
+ isFullWidth?: boolean | "true" | undefined;
12
+ hasGap?: boolean | "true" | "false" | undefined;
13
+ direction?: "row" | "column" | undefined;
14
+ }, {
15
+ sm: string;
16
+ md: string;
17
+ lg: string;
18
+ xl: string;
19
+ reducedMotion: string;
20
+ allowMotion: string;
21
+ hover: string;
22
+ }, import("@stitches/react/types/css-util").CSS<{
23
+ sm: string;
24
+ md: string;
25
+ lg: string;
26
+ xl: string;
27
+ reducedMotion: string;
28
+ allowMotion: string;
29
+ hover: string;
30
+ }, {
31
+ colors: {
32
+ textForeground: any;
33
+ textSubtle: any;
34
+ textPlaceholder: any;
35
+ background: any;
36
+ backgroundAccent: any;
37
+ tonal50: any;
38
+ tonal100: any;
39
+ tonal200: any;
40
+ tonal300: any;
41
+ tonal400: any;
42
+ tonal500: any;
43
+ tonal600: any;
44
+ alpha100: any;
45
+ alpha150: any;
46
+ alpha200: any;
47
+ alpha250: any;
48
+ alpha600: any;
49
+ primaryLight: any;
50
+ primary: any;
51
+ primaryMid: any;
52
+ primaryDark: any;
53
+ secondary: any;
54
+ brandRed: any;
55
+ brandRedAccent: any;
56
+ brandGreen: any;
57
+ brandGreenAccent: any;
58
+ brandPurple: any;
59
+ brandPurpleAccent: any;
60
+ brandYellow: any;
61
+ brandYellowAccent: any;
62
+ successLight: any;
63
+ success: any;
64
+ successMid: any;
65
+ successDark: any;
66
+ dangerLight: any;
67
+ danger: any;
68
+ dangerMid: any;
69
+ dangerDark: any;
70
+ warningLight: any;
71
+ warning: any;
72
+ warningMid: any;
73
+ warningDark: any;
74
+ subjectEnglish: any;
75
+ subjectMaths: any;
76
+ subjectScience: any;
77
+ subjectVerbalReasoning: any;
78
+ subjectNonVerbalReasoning: any;
79
+ subjectCreativeWriting: any;
80
+ subjectExamSkills: any;
81
+ };
82
+ space: {
83
+ "0": any;
84
+ "1": any;
85
+ "2": any;
86
+ "3": any;
87
+ "4": any;
88
+ "5": any;
89
+ "6": any;
90
+ "7": any;
91
+ "8": any;
92
+ "9": any;
93
+ };
94
+ fontSizes: {
95
+ xs: any;
96
+ sm: any;
97
+ md: any;
98
+ lg: any;
99
+ xl: any;
100
+ "2xl": any;
101
+ "3xl": any;
102
+ "4xl": any;
103
+ };
104
+ fonts: {
105
+ sans: any;
106
+ mono: any;
107
+ display: any;
108
+ body: any;
109
+ };
110
+ sizes: {
111
+ "0": any;
112
+ "1": any;
113
+ "2": any;
114
+ "3": any;
115
+ "4": any;
116
+ "5": any;
117
+ "6": any;
118
+ "7": any;
119
+ "8": any;
120
+ };
121
+ radii: {
122
+ "0": any;
123
+ "1": any;
124
+ "2": any;
125
+ "3": any;
126
+ round: any;
127
+ };
128
+ shadows: {
129
+ "0": any;
130
+ "1": any;
131
+ "2": any;
132
+ "3": any;
133
+ };
134
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
135
+ bg: (value: {
136
+ readonly [$$PropertyValue]: "background";
137
+ }) => {
138
+ background: {
139
+ readonly [$$PropertyValue]: "background";
140
+ };
141
+ };
142
+ inset: (value: string | number | {
143
+ readonly [$$ScaleValue]: "space";
144
+ }) => {
145
+ top: string | number | {
146
+ readonly [$$ScaleValue]: "space";
147
+ };
148
+ right: string | number | {
149
+ readonly [$$ScaleValue]: "space";
150
+ };
151
+ bottom: string | number | {
152
+ readonly [$$ScaleValue]: "space";
153
+ };
154
+ left: string | number | {
155
+ readonly [$$ScaleValue]: "space";
156
+ };
157
+ };
158
+ size: (value: string | number | {
159
+ readonly [$$ScaleValue]: "size";
160
+ }) => {
161
+ height: string | number | {
162
+ readonly [$$ScaleValue]: "size";
163
+ };
164
+ width: string | number | {
165
+ readonly [$$ScaleValue]: "size";
166
+ };
167
+ };
168
+ p: (value: string | number | {
169
+ readonly [$$ScaleValue]: "space";
170
+ }) => {
171
+ padding: string | number | {
172
+ readonly [$$ScaleValue]: "space";
173
+ };
174
+ };
175
+ pt: (value: string | number | {
176
+ readonly [$$ScaleValue]: "space";
177
+ }) => {
178
+ paddingTop: string | number | {
179
+ readonly [$$ScaleValue]: "space";
180
+ };
181
+ };
182
+ pr: (value: string | number | {
183
+ readonly [$$ScaleValue]: "space";
184
+ }) => {
185
+ paddingRight: string | number | {
186
+ readonly [$$ScaleValue]: "space";
187
+ };
188
+ };
189
+ pb: (value: string | number | {
190
+ readonly [$$ScaleValue]: "space";
191
+ }) => {
192
+ paddingBottom: string | number | {
193
+ readonly [$$ScaleValue]: "space";
194
+ };
195
+ };
196
+ pl: (value: string | number | {
197
+ readonly [$$ScaleValue]: "space";
198
+ }) => {
199
+ paddingLeft: string | number | {
200
+ readonly [$$ScaleValue]: "space";
201
+ };
202
+ };
203
+ px: (value: string | number | {
204
+ readonly [$$ScaleValue]: "space";
205
+ }) => {
206
+ paddingLeft: string | number | {
207
+ readonly [$$ScaleValue]: "space";
208
+ };
209
+ paddingRight: string | number | {
210
+ readonly [$$ScaleValue]: "space";
211
+ };
212
+ };
213
+ py: (value: string | number | {
214
+ readonly [$$ScaleValue]: "space";
215
+ }) => {
216
+ paddingTop: string | number | {
217
+ readonly [$$ScaleValue]: "space";
218
+ };
219
+ paddingBottom: string | number | {
220
+ readonly [$$ScaleValue]: "space";
221
+ };
222
+ };
223
+ m: (value: string | number | {
224
+ readonly [$$ScaleValue]: "space";
225
+ }) => {
226
+ margin: string | number | {
227
+ readonly [$$ScaleValue]: "space";
228
+ };
229
+ };
230
+ mt: (value: string | number | {
231
+ readonly [$$ScaleValue]: "space";
232
+ }) => {
233
+ marginTop: string | number | {
234
+ readonly [$$ScaleValue]: "space";
235
+ };
236
+ };
237
+ mr: (value: string | number | {
238
+ readonly [$$ScaleValue]: "space";
239
+ }) => {
240
+ marginRight: string | number | {
241
+ readonly [$$ScaleValue]: "space";
242
+ };
243
+ };
244
+ mb: (value: string | number | {
245
+ readonly [$$ScaleValue]: "space";
246
+ }) => {
247
+ marginBottom: string | number | {
248
+ readonly [$$ScaleValue]: "space";
249
+ };
250
+ };
251
+ ml: (value: string | number | {
252
+ readonly [$$ScaleValue]: "space";
253
+ }) => {
254
+ marginLeft: string | number | {
255
+ readonly [$$ScaleValue]: "space";
256
+ };
257
+ };
258
+ mx: (value: string | number | {
259
+ readonly [$$ScaleValue]: "space";
260
+ }) => {
261
+ marginLeft: string | number | {
262
+ readonly [$$ScaleValue]: "space";
263
+ };
264
+ marginRight: string | number | {
265
+ readonly [$$ScaleValue]: "space";
266
+ };
267
+ };
268
+ my: (value: string | number | {
269
+ readonly [$$ScaleValue]: "space";
270
+ }) => {
271
+ marginTop: string | number | {
272
+ readonly [$$ScaleValue]: "space";
273
+ };
274
+ marginBottom: string | number | {
275
+ readonly [$$ScaleValue]: "space";
276
+ };
277
+ };
278
+ }>>;
279
+ export declare const ToggleGroupRoot: React.FC<React.ComponentProps<typeof StyledRoot> & RootType>;
280
+ export {};
@@ -0,0 +1 @@
1
+ import*as f from"@radix-ui/react-toggle-group";import*as t from"react";import{Stack as u}from"../stack/Stack.js";import{styled as b}from"../../stitches.js";import{StyledItem as o}from"./ToggleGroupItem.js";const d=b(f.Root,{width:"fit-content",variants:{isFullWidth:{true:{width:"100%",[`& ${o}`]:{flexBasis:0,flexGrow:1}}},hasGap:{true:{[`& ${o}`]:{borderRadius:"$0"}},false:{borderRadius:"$0",bg:"white",[`& ${o}`]:{bg:"transparent",borderRadius:0,position:"relative","&:not(:last-child)::before":{content:"",position:"absolute"}}}},direction:{column:{},row:{}}},compoundVariants:[{hasGap:!1,direction:"row",css:{[`& ${o}`]:{"&:not(:last-child)::before":{top:"-1px",height:"calc(100% + 2px)",width:"1px",right:"0",transform:"translateX(150%)"},"&:not(:first-child)":{borderLeftColor:"transparent"},"&:not(:last-child)":{borderRightColor:"transparent"},"&:first-child":{borderTopLeftRadius:"$0",borderBottomLeftRadius:"$0"},"&:last-child":{borderTopRightRadius:"$0",borderBottomRightRadius:"$0"}}}},{hasGap:!1,direction:"column",css:{[`& ${o}`]:{"&:not(:last-child)::before":{bottom:0,left:"-1px",height:"1px",width:"calc(100% + 2px)",transform:"translateY(150%)"},"&:first-child":{borderTopLeftRadius:"$0",borderTopRightRadius:"$0"},"&:last-child":{borderBottomLeftRadius:"$0",borderBottomRightRadius:"$0"},"&:not(:first-child)":{borderTopColor:"transparent"},"&:not(:last-child)":{borderBottomColor:"transparent"}}}}]}),R=e=>e==="horizontal"?"row":"column",g=({size:e="md",orientation:i="horizontal",gap:a=!1,isFullWidth:l,children:p,wrap:h="no-wrap",...c})=>{const s=typeof a=="number",m=t.Children.toArray(p),n=R(i);return t.createElement(d,{direction:n,hasGap:s,isFullWidth:l,orientation:i,...c},t.createElement(u,{direction:n,gap:s&&a,align:!1,wrap:h},m.map(r=>t.isValidElement(r)?t.cloneElement(r,{...r.props,size:e}):r)))};export{d as StyledRoot,g as ToggleGroupRoot};