@atom-learning/components 3.6.0 → 3.7.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 (40) hide show
  1. package/CHANGELOG.md +8 -7
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/components/pagination/PaginationPopover.js +1 -1
  4. package/dist/components/pagination/PaginationPopover.js.map +1 -1
  5. package/dist/components/tree/Tree.d.ts +4775 -0
  6. package/dist/components/tree/Tree.js +2 -0
  7. package/dist/components/tree/Tree.js.map +1 -0
  8. package/dist/components/tree/TreeCollapsible.d.ts +328 -0
  9. package/dist/components/tree/TreeCollapsible.js +2 -0
  10. package/dist/components/tree/TreeCollapsible.js.map +1 -0
  11. package/dist/components/tree/TreeCollapsibleContent.d.ts +939 -0
  12. package/dist/components/tree/TreeCollapsibleContent.js +2 -0
  13. package/dist/components/tree/TreeCollapsibleContent.js.map +1 -0
  14. package/dist/components/tree/TreeCollapsibleTrigger.d.ts +7 -0
  15. package/dist/components/tree/TreeCollapsibleTrigger.js +2 -0
  16. package/dist/components/tree/TreeCollapsibleTrigger.js.map +1 -0
  17. package/dist/components/tree/TreeIcon.d.ts +649 -0
  18. package/dist/components/tree/TreeIcon.js +2 -0
  19. package/dist/components/tree/TreeIcon.js.map +1 -0
  20. package/dist/components/tree/TreeItem.d.ts +5 -0
  21. package/dist/components/tree/TreeItem.js +2 -0
  22. package/dist/components/tree/TreeItem.js.map +1 -0
  23. package/dist/components/tree/TreeItemContent.d.ts +330 -0
  24. package/dist/components/tree/TreeItemContent.js +2 -0
  25. package/dist/components/tree/TreeItemContent.js.map +1 -0
  26. package/dist/components/tree/TreeList.d.ts +5 -0
  27. package/dist/components/tree/TreeList.js +2 -0
  28. package/dist/components/tree/TreeList.js.map +1 -0
  29. package/dist/components/tree/TreeListItem.d.ts +330 -0
  30. package/dist/components/tree/TreeListItem.js +2 -0
  31. package/dist/components/tree/TreeListItem.js.map +1 -0
  32. package/dist/components/tree/TreeText.d.ts +5 -0
  33. package/dist/components/tree/TreeText.js +2 -0
  34. package/dist/components/tree/TreeText.js.map +1 -0
  35. package/dist/components/tree/index.d.ts +1 -0
  36. package/dist/docgen.json +1 -1
  37. package/dist/index.cjs.js +1 -1
  38. package/dist/index.cjs.js.map +1 -1
  39. package/dist/index.js +1 -1
  40. package/package.json +1 -1
@@ -0,0 +1,330 @@
1
+ import * as React from 'react';
2
+ export declare const TreeListItem: React.ForwardRefExoticComponent<Pick<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
4
+ }, "direction" | "gap" | "css" | "wrap" | "justify" | "align"> & import("@stitches/react/types/styled-component").TransformProps<{
5
+ direction?: "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | "revert-layer" | undefined;
6
+ wrap?: "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap" | "wrap-reverse" | "revert-layer" | undefined;
7
+ justify?: "center" | "left" | "right" | "stretch" | "inherit" | "initial" | "revert" | "unset" | "space-around" | "space-between" | "space-evenly" | "end" | "flex-end" | "flex-start" | "start" | "normal" | "revert-layer" | "unsafe" | "safe" | undefined;
8
+ align?: "center" | "stretch" | "inherit" | "initial" | "revert" | "unset" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "revert-layer" | "unsafe" | "safe" | "first baseline" | "last baseline" | undefined;
9
+ gap?: number | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "24" | undefined;
10
+ }, {
11
+ sm: string;
12
+ md: string;
13
+ lg: string;
14
+ xl: string;
15
+ reducedMotion: string;
16
+ allowMotion: string;
17
+ hover: string;
18
+ }> & {
19
+ css?: import("@stitches/react/types/css-util").CSS<{
20
+ sm: string;
21
+ md: string;
22
+ lg: string;
23
+ xl: string;
24
+ reducedMotion: string;
25
+ allowMotion: string;
26
+ hover: string;
27
+ }, {
28
+ colors: {
29
+ textForeground: any;
30
+ textSubtle: any;
31
+ textPlaceholder: any;
32
+ background: any;
33
+ backgroundAccent: any;
34
+ grey100: any;
35
+ grey200: any;
36
+ grey300: any;
37
+ grey400: any;
38
+ grey500: any;
39
+ grey600: any;
40
+ grey700: any;
41
+ grey800: any;
42
+ grey900: any;
43
+ grey1000: any;
44
+ grey1100: any;
45
+ grey1200: any;
46
+ blue100: any;
47
+ blue200: any;
48
+ blue300: any;
49
+ blue400: any;
50
+ blue500: any;
51
+ blue600: any;
52
+ blue700: any;
53
+ blue800: any;
54
+ blue900: any;
55
+ blue1000: any;
56
+ blue1100: any;
57
+ blue1200: any;
58
+ purple100: any;
59
+ purple200: any;
60
+ purple300: any;
61
+ purple400: any;
62
+ purple500: any;
63
+ purple600: any;
64
+ purple700: any;
65
+ purple800: any;
66
+ purple900: any;
67
+ purple1000: any;
68
+ purple1100: any;
69
+ purple1200: any;
70
+ cyan100: any;
71
+ cyan200: any;
72
+ cyan300: any;
73
+ cyan400: any;
74
+ cyan500: any;
75
+ cyan600: any;
76
+ cyan700: any;
77
+ cyan800: any;
78
+ cyan900: any;
79
+ cyan1000: any;
80
+ cyan1100: any;
81
+ cyan1200: any;
82
+ green100: any;
83
+ green200: any;
84
+ green300: any;
85
+ green400: any;
86
+ green500: any;
87
+ green600: any;
88
+ green700: any;
89
+ green800: any;
90
+ green900: any;
91
+ green1000: any;
92
+ green1100: any;
93
+ green1200: any;
94
+ magenta100: any;
95
+ magenta200: any;
96
+ magenta300: any;
97
+ magenta400: any;
98
+ magenta500: any;
99
+ magenta600: any;
100
+ magenta700: any;
101
+ magenta800: any;
102
+ magenta900: any;
103
+ magenta1000: any;
104
+ magenta1100: any;
105
+ magenta1200: any;
106
+ red100: any;
107
+ red200: any;
108
+ red300: any;
109
+ red400: any;
110
+ red500: any;
111
+ red600: any;
112
+ red700: any;
113
+ red800: any;
114
+ red900: any;
115
+ red1000: any;
116
+ red1100: any;
117
+ red1200: any;
118
+ teal100: any;
119
+ teal200: any;
120
+ teal300: any;
121
+ teal400: any;
122
+ teal500: any;
123
+ teal600: any;
124
+ teal700: any;
125
+ teal800: any;
126
+ teal900: any;
127
+ teal1000: any;
128
+ teal1100: any;
129
+ teal1200: any;
130
+ orange100: any;
131
+ orange200: any;
132
+ orange300: any;
133
+ orange400: any;
134
+ orange500: any;
135
+ orange600: any;
136
+ orange700: any;
137
+ orange800: any;
138
+ orange900: any;
139
+ orange1000: any;
140
+ orange1100: any;
141
+ orange1200: any;
142
+ yellow100: any;
143
+ yellow200: any;
144
+ yellow300: any;
145
+ yellow400: any;
146
+ yellow500: any;
147
+ yellow600: any;
148
+ yellow700: any;
149
+ yellow800: any;
150
+ yellow900: any;
151
+ yellow1000: any;
152
+ yellow1100: any;
153
+ yellow1200: any;
154
+ lime100: any;
155
+ lime200: any;
156
+ lime300: any;
157
+ lime400: any;
158
+ lime500: any;
159
+ lime600: any;
160
+ lime700: any;
161
+ lime800: any;
162
+ lime900: any;
163
+ lime1000: any;
164
+ lime1100: any;
165
+ lime1200: any;
166
+ tonal50: any;
167
+ tonal100: any;
168
+ tonal200: any;
169
+ tonal300: any;
170
+ tonal400: any;
171
+ tonal500: any;
172
+ tonal600: any;
173
+ alpha100: any;
174
+ alpha150: any;
175
+ alpha200: any;
176
+ alpha250: any;
177
+ alpha600: any;
178
+ primaryLight: any;
179
+ primary: any;
180
+ primaryMid: any;
181
+ primaryDark: any;
182
+ secondary: any;
183
+ brandRed: any;
184
+ brandRedAccent: any;
185
+ brandGreen: any;
186
+ brandGreenAccent: any;
187
+ brandPurple: any;
188
+ brandPurpleAccent: any;
189
+ brandYellow: any;
190
+ brandYellowAccent: any;
191
+ successLight: any;
192
+ success: any;
193
+ successMid: any;
194
+ successDark: any;
195
+ dangerLight: any;
196
+ danger: any;
197
+ dangerMid: any;
198
+ dangerDark: any;
199
+ warningLight: any;
200
+ warning: any;
201
+ warningMid: any;
202
+ warningDark: any;
203
+ warningText: any;
204
+ subjectEnglish: any;
205
+ subjectMaths: any;
206
+ subjectScience: any;
207
+ subjectVerbalReasoning: any;
208
+ subjectNonVerbalReasoning: any;
209
+ subjectCreativeWriting: any;
210
+ subjectExamSkills: any;
211
+ glBlueLight: any;
212
+ glBluePrimary: any;
213
+ glBlueDark: any;
214
+ };
215
+ space: {
216
+ "0": any;
217
+ "1": any;
218
+ "2": any;
219
+ "3": any;
220
+ "4": any;
221
+ "5": any;
222
+ "6": any;
223
+ "7": any;
224
+ "8": any;
225
+ "9": any;
226
+ "24": any;
227
+ };
228
+ fontSizes: {
229
+ xs: any;
230
+ sm: any;
231
+ md: any;
232
+ lg: any;
233
+ xl: any;
234
+ "2xl": any;
235
+ "3xl": any;
236
+ "4xl": any;
237
+ };
238
+ fonts: {
239
+ sans: any;
240
+ mono: any;
241
+ display: any;
242
+ body: any;
243
+ };
244
+ sizes: {
245
+ "0": any;
246
+ "1": any;
247
+ "2": any;
248
+ "3": any;
249
+ "4": any;
250
+ "5": any;
251
+ "6": any;
252
+ "7": any;
253
+ "8": any;
254
+ };
255
+ radii: {
256
+ "0": any;
257
+ "1": any;
258
+ "2": any;
259
+ "3": any;
260
+ round: any;
261
+ };
262
+ shadows: {
263
+ "0": any;
264
+ "1": any;
265
+ "2": any;
266
+ "3": any;
267
+ };
268
+ ratios: {
269
+ "16-9": any;
270
+ "3-2": any;
271
+ "4-3": any;
272
+ "1-1": any;
273
+ "3-4": any;
274
+ };
275
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
276
+ bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
277
+ background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
278
+ };
279
+ size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
280
+ height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
281
+ width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
282
+ };
283
+ p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
284
+ padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
285
+ };
286
+ pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
287
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
288
+ };
289
+ pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
290
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
291
+ };
292
+ pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
293
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
294
+ };
295
+ pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
296
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
297
+ };
298
+ px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
299
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
300
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
301
+ };
302
+ py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
303
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
304
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
305
+ };
306
+ m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
307
+ margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
308
+ };
309
+ mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
310
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
311
+ };
312
+ mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
313
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
314
+ };
315
+ mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
316
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
317
+ };
318
+ ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
319
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
320
+ };
321
+ mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
322
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
323
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
324
+ };
325
+ my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
326
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
327
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
328
+ };
329
+ }> | undefined;
330
+ }, "direction" | "gap" | "css" | "key" | "wrap" | "justify" | keyof React.HTMLAttributes<HTMLDivElement> | "align"> & React.RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,2 @@
1
+ import{styled as o}from"../../stitches.js";import*as e from"react";import{Flex as i}from"../flex/Flex.js";const m=o(i,{"&:not(:first-child)":{mt:"$0"}}),f=e.forwardRef((t,r)=>e.createElement(m,{as:"li",gap:2,align:"center",...t,ref:r,role:"treeitem"}));export{f as TreeListItem};
2
+ //# sourceMappingURL=TreeListItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeListItem.js","sources":["../../../src/components/tree/TreeListItem.tsx"],"sourcesContent":["import { styled } from '~/stitches'\nimport * as React from 'react'\n\nimport { Flex } from '~/components/flex'\n\ntype TreeListItemProps = React.ComponentProps<typeof Flex>\n\nconst StyledTreeListItem = styled(Flex, {\n '&:not(:first-child)': {\n mt: '$0'\n }\n})\n\nexport const TreeListItem = React.forwardRef(\n (\n props: TreeListItemProps,\n ref: React.ForwardedRef<HTMLLIElement>\n ): JSX.Element => {\n return (\n <StyledTreeListItem\n as=\"li\"\n gap={2}\n align=\"center\"\n {...props}\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Stitches polymorphic components issue due to `as=\"li\"`\n ref={ref}\n role=\"treeitem\"\n />\n )\n }\n)\n"],"names":["StyledTreeListItem","styled","Flex","TreeListItem","React","props","ref"],"mappings":"0GAOA,MAAMA,EAAqBC,EAAOC,EAAM,CACtC,sBAAuB,CACrB,GAAI,IACN,CACF,CAAC,EAEYC,EAAeC,EAAM,WAChC,CACEC,EACAC,IAGEF,EAAA,cAACJ,EAAA,CACC,GAAG,KACH,IAAK,EACL,MAAM,SACL,GAAGK,EAGJ,IAAKC,EACL,KAAK,UAAA,CACP,CAGN"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { Text } from '../../components/text';
3
+ declare type TStyledTreeTextProps = React.ComponentProps<typeof Text>;
4
+ export declare const TreeText: (props: TStyledTreeTextProps) => JSX.Element;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ import o from"react";import{Text as t}from"../text/Text.js";import{styled as r}from"../../stitches.js";const i=r.withConfig({shouldForwardStitchesProp:e=>["as"].includes(e)})(t,{py:"$0",whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis"}),s=e=>o.createElement(i,{size:"md",as:"span",...e,noCapsize:!0});export{s as TreeText};
2
+ //# sourceMappingURL=TreeText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeText.js","sources":["../../../src/components/tree/TreeText.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Text } from '~/components/text'\nimport { styled } from '~/stitches'\n\ntype TStyledTreeTextProps = React.ComponentProps<typeof Text>\n\nconst StyledTreeText = styled.withConfig({\n shouldForwardStitchesProp: (propName) => ['as'].includes(propName)\n})(Text, {\n py: '$0',\n whiteSpace: 'nowrap',\n overflowX: 'hidden',\n textOverflow: 'ellipsis'\n})\n\nexport const TreeText = (props: TStyledTreeTextProps): JSX.Element => {\n return <StyledTreeText size=\"md\" as=\"span\" {...props} noCapsize />\n}\n"],"names":["StyledTreeText","styled","propName","Text","TreeText","props","React"],"mappings":"uGAOA,MAAMA,EAAiBC,EAAO,WAAW,CACvC,0BAA4BC,GAAa,CAAC,IAAI,EAAE,SAASA,CAAQ,CACnE,CAAC,EAAEC,EAAM,CACP,GAAI,KACJ,WAAY,SACZ,UAAW,SACX,aAAc,UAChB,CAAC,EAEYC,EAAYC,GAChBC,EAAA,cAACN,EAAA,CAAe,KAAK,KAAK,GAAG,OAAQ,GAAGK,EAAO,UAAS,EAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export { Tree } from './Tree';