@atom-learning/components 1.17.2-beta.0 → 1.17.2

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 (34) hide show
  1. package/CHANGELOG.md +207 -0
  2. package/dist/components/accordion/Accordion.d.ts +2 -3
  3. package/dist/components/accordion/Accordion.js +1 -1
  4. package/dist/components/dialog/DialogContent.js +1 -1
  5. package/dist/components/divider/Divider.d.ts +2 -1
  6. package/dist/components/divider/Divider.js +1 -1
  7. package/dist/components/heading/Heading.d.ts +1 -1
  8. package/dist/components/heading/Heading.js +1 -1
  9. package/dist/components/image/Image.d.ts +1 -1
  10. package/dist/components/image/Image.js +1 -1
  11. package/dist/components/index.d.ts +0 -1
  12. package/dist/components/link/Link.js +1 -1
  13. package/dist/components/list/List.d.ts +3 -4
  14. package/dist/components/list/List.js +1 -1
  15. package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
  16. package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
  17. package/dist/components/stack/Stack.d.ts +5 -5
  18. package/dist/components/stack/Stack.js +1 -1
  19. package/dist/components/stack-content/StackContent.js +1 -1
  20. package/dist/components/text/Text.d.ts +2 -2
  21. package/dist/components/text/Text.js +1 -1
  22. package/dist/docgen.json +1 -1
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.js +1 -1
  25. package/package.json +1 -1
  26. package/dist/components/toggle-group/ToggleGroupButton.d.ts +0 -534
  27. package/dist/components/toggle-group/ToggleGroupButton.js +0 -1
  28. package/dist/components/toggle-group/ToggleGroupItem.d.ts +0 -532
  29. package/dist/components/toggle-group/ToggleGroupItem.js +0 -1
  30. package/dist/components/toggle-group/ToggleGroupRoot.d.ts +0 -280
  31. package/dist/components/toggle-group/ToggleGroupRoot.js +0 -1
  32. package/dist/components/toggle-group/index.d.ts +0 -1351
  33. package/dist/components/toggle-group/index.js +0 -1
  34. package/dist/utilities/style/focus-visible-style-block.js +0 -1
@@ -1,280 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- import{Root as m}from"@radix-ui/react-toggle-group";import{Children as u,createElement as n,isValidElement as b,cloneElement as R}from"react";import{Stack as $}from"../stack/Stack.js";import{styled as g}from"../../stitches.js";import{StyledItem as t}from"./ToggleGroupItem.js";const l=g(m,{width:"fit-content",variants:{isFullWidth:{true:{width:"100%",[`& ${t}`]:{flexBasis:0,flexGrow:1}}},hasGap:{true:{[`& ${t}`]:{borderRadius:"$0"}},false:{borderRadius:"$0",bg:"white",[`& ${t}`]:{bg:"transparent",borderRadius:0,position:"relative","&:not(:last-child)::before":{content:"",position:"absolute"}}}},direction:{column:{},row:{}}},compoundVariants:[{hasGap:!1,direction:"row",css:{[`& ${t}`]:{"&: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:{[`& ${t}`]:{"&: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"}}}}]}),w=r=>r==="horizontal"?"row":"column",x=({size:r="md",orientation:e="horizontal",gap:i=!1,isFullWidth:d,children:p,wrap:c="no-wrap",...h})=>{const a=typeof i=="number",f=u.toArray(p),s=w(e);return n(l,{direction:s,hasGap:a,isFullWidth:d,orientation:e,...h},n($,{direction:s,gap:a&&i,align:!1,wrap:c},f.map(o=>b(o)?R(o,{...o.props,size:r}):o)))};export{l as StyledRoot,x as ToggleGroupRoot};