@atom-learning/components 2.18.0 → 2.20.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 (39) hide show
  1. package/CHANGELOG.md +3 -9
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/components/sidedrawer/Sidedrawer.d.ts +24 -0
  4. package/dist/components/sidedrawer/Sidedrawer.js +1 -0
  5. package/dist/components/sidedrawer/Sidedrawer.styles.d.ts +44 -0
  6. package/dist/components/sidedrawer/Sidedrawer.styles.js +1 -0
  7. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts +2 -0
  8. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -0
  9. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts +267 -0
  10. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.js +1 -0
  11. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts +267 -0
  12. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.js +1 -0
  13. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts +2 -0
  14. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.js +1 -0
  15. package/dist/components/sidedrawer/SidedrawerAccordion/index.d.ts +4 -0
  16. package/dist/components/sidedrawer/SidedrawerBody.d.ts +2 -0
  17. package/dist/components/sidedrawer/SidedrawerBody.js +1 -0
  18. package/dist/components/sidedrawer/SidedrawerClose.d.ts +2 -0
  19. package/dist/components/sidedrawer/SidedrawerClose.js +1 -0
  20. package/dist/components/sidedrawer/SidedrawerContent.d.ts +2 -0
  21. package/dist/components/sidedrawer/SidedrawerContent.js +1 -0
  22. package/dist/components/sidedrawer/SidedrawerFooter.d.ts +266 -0
  23. package/dist/components/sidedrawer/SidedrawerFooter.js +1 -0
  24. package/dist/components/sidedrawer/SidedrawerHeader.d.ts +2 -0
  25. package/dist/components/sidedrawer/SidedrawerHeader.js +1 -0
  26. package/dist/components/sidedrawer/SidedrawerItem.d.ts +9 -0
  27. package/dist/components/sidedrawer/SidedrawerItem.js +1 -0
  28. package/dist/components/sidedrawer/SidedrawerOverlay.d.ts +267 -0
  29. package/dist/components/sidedrawer/SidedrawerOverlay.js +1 -0
  30. package/dist/components/sidedrawer/SidedrawerTrigger.d.ts +267 -0
  31. package/dist/components/sidedrawer/SidedrawerTrigger.js +1 -0
  32. package/dist/components/sidedrawer/index.d.ts +1 -0
  33. package/dist/docgen.json +1 -1
  34. package/dist/docs/Sidedrawer.mdx +155 -0
  35. package/dist/index.cjs.js +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/utilities/style/keyframe-animations.d.ts +8 -0
  38. package/dist/utilities/style/keyframe-animations.js +1 -1
  39. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,20 +1,14 @@
1
- # [2.18.0](https://github.com/Atom-Learning/components/compare/v2.17.0...v2.18.0) (2022-11-30)
1
+ # [2.20.0](https://github.com/Atom-Learning/components/compare/v2.19.0...v2.20.0) (2022-12-02)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * update README ([3ae762d](https://github.com/Atom-Learning/components/commit/3ae762dde4d9decba395bb3e278c00fb404a8d81))
6
+ * update snapshots ([db7ef16](https://github.com/Atom-Learning/components/commit/db7ef16412906bbc11d7a7881038bb2a640a5206))
7
7
 
8
8
 
9
9
  ### Features
10
10
 
11
- * add experimental flag to ColorScheme component ([bb8d223](https://github.com/Atom-Learning/components/commit/bb8d223889de948d5502f8bd2627c154dd7e20b1))
12
- * change foreground colour to one from slate gradient and use white directly ([cbf8aac](https://github.com/Atom-Learning/components/commit/cbf8aacd903f20a4efe9dda2d29b906056d9d06f))
13
- * changes based on PR comments ([d58d803](https://github.com/Atom-Learning/components/commit/d58d80399fe55ec6c52c15b1fb52e53173e7b97f))
14
- * ColorScheme alpha version ([bc204cb](https://github.com/Atom-Learning/components/commit/bc204cb9c6ac4163c8bfab552d5f4daa769610fa))
15
- * remove testing lib requirement ([c9d68b9](https://github.com/Atom-Learning/components/commit/c9d68b95a8fbd54ee36cc23a532ce6465507afdc))
16
- * rename tonal vars to base to match property of ColorScheme component ([6253323](https://github.com/Atom-Learning/components/commit/62533232a5d91b84a7e6d996fa9dd02ce78e8f5d))
17
- * space out all children of StackContent ([004848e](https://github.com/Atom-Learning/components/commit/004848e6f602579cadb3cbe741ab61fca5240688))
11
+ * upgrade packages ([8c0df76](https://github.com/Atom-Learning/components/commit/8c0df768169f5e4f3fbd6af3515ba2178f9bde89))
18
12
 
19
13
  # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
20
14
 
@@ -44,6 +44,7 @@ export { PasswordField } from './password-field';
44
44
  export { PasswordInput } from './password-input';
45
45
  export { Popover } from './popover';
46
46
  export { ProgressBar } from './progress-bar';
47
+ export { Sidedrawer } from './sidedrawer';
47
48
  export { Stepper } from './stepper';
48
49
  export { RadioButton, RadioButtonGroup } from './radio-button';
49
50
  export { RadioButtonField } from './radio-button-field';
@@ -0,0 +1,24 @@
1
+ import * as Dialog from '@radix-ui/react-dialog';
2
+ import React from 'react';
3
+ import { SidedrawerAccordionContent, SidedrawerAccordionItem, SidedrawerAccordionTrigger } from './SidedrawerAccordion';
4
+ import { SidedrawerBody } from './SidedrawerBody';
5
+ import { SidedrawerClose } from './SidedrawerClose';
6
+ import { SidedrawerContent } from './SidedrawerContent';
7
+ import { SidedrawerFooter } from './SidedrawerFooter';
8
+ import { SidedrawerHeader } from './SidedrawerHeader';
9
+ import { SidedrawerItem } from './SidedrawerItem';
10
+ import { SidedrawerTrigger } from './SidedrawerTrigger';
11
+ declare type SidedrawerSubComponents = {
12
+ Accordion: typeof SidedrawerAccordionItem;
13
+ AccordionContent: typeof SidedrawerAccordionContent;
14
+ AccordionTrigger: typeof SidedrawerAccordionTrigger;
15
+ Body: typeof SidedrawerBody;
16
+ Close: typeof SidedrawerClose;
17
+ Content: typeof SidedrawerContent;
18
+ Footer: typeof SidedrawerFooter;
19
+ Header: typeof SidedrawerHeader;
20
+ Item: typeof SidedrawerItem;
21
+ Trigger: typeof SidedrawerTrigger;
22
+ };
23
+ export declare const Sidedrawer: React.FC<React.ComponentProps<typeof Dialog.Root>> & SidedrawerSubComponents;
24
+ export {};
@@ -0,0 +1 @@
1
+ import*as i from"@radix-ui/react-dialog";import d from"react";import"./SidedrawerAccordion/SidedrawerAccordionRoot.js";import{SidedrawerAccordionContent as t}from"./SidedrawerAccordion/SidedrawerAccordionContent.js";import{SidedrawerAccordionItem as m}from"./SidedrawerAccordion/SidedrawerAccordionItem.js";import{SidedrawerAccordionTrigger as n}from"./SidedrawerAccordion/SidedrawerAccordionTrigger.js";import{SidedrawerBody as a}from"./SidedrawerBody.js";import{SidedrawerClose as c}from"./SidedrawerClose.js";import{SidedrawerContent as p}from"./SidedrawerContent.js";import{SidedrawerFooter as f}from"./SidedrawerFooter.js";import{SidedrawerHeader as w}from"./SidedrawerHeader.js";import{SidedrawerItem as S}from"./SidedrawerItem.js";import{SidedrawerTrigger as g}from"./SidedrawerTrigger.js";const r=({children:o,...e})=>d.createElement(i.Root,{...e},o);r.Accordion=m,r.AccordionContent=t,r.AccordionTrigger=n,r.Body=a,r.Close=c,r.Content=p,r.Footer=f,r.Header=w,r.Item=S,r.Trigger=g;export{r as Sidedrawer};
@@ -0,0 +1,44 @@
1
+ export declare const sidedrawerItemStyles: {
2
+ alignItems: string;
3
+ bg: string;
4
+ border: string;
5
+ borderLeft: string;
6
+ color: string;
7
+ cursor: string;
8
+ display: string;
9
+ fontFamily: string;
10
+ fontWeight: string;
11
+ fontSize: string;
12
+ margin: number;
13
+ minHeight: string;
14
+ outline: string;
15
+ outlineOffset: string;
16
+ py: string;
17
+ px: string;
18
+ width: string;
19
+ textDecoration: string;
20
+ '&:hover': {
21
+ bg: string;
22
+ };
23
+ '&:active': {
24
+ bg: string;
25
+ };
26
+ '&:focus-visible': {
27
+ boxShadow: string;
28
+ };
29
+ '&[disabled]': {
30
+ opacity: string;
31
+ pointerEvents: string;
32
+ cursor: string;
33
+ };
34
+ variants: {
35
+ active: {
36
+ true: {
37
+ bg: string;
38
+ borderLeft: string;
39
+ color: string;
40
+ fontWeight: string;
41
+ };
42
+ };
43
+ };
44
+ };
@@ -0,0 +1 @@
1
+ const t={alignItems:"center",bg:"white",border:"unset",borderLeft:"4px solid transparent",color:"$tonal600",cursor:"pointer",display:"flex",fontFamily:"$body",fontWeight:"400",fontSize:"$md",margin:0,minHeight:"48px",outline:"unset",outlineOffset:"unset",py:"$3",px:"$4",width:"100%",textDecoration:"none","&:hover":{bg:"$tonal50"},"&:active":{bg:"$tonal100"},"&:focus-visible":{boxShadow:"inset 0 0 0 2px $colors$primary"},"&[disabled]":{opacity:"0.3",pointerEvents:"none",cursor:"default"},variants:{active:{true:{bg:"$primaryLight",borderLeft:"4px solid $primary",color:"$primary",fontWeight:"600"}}}};export{t as sidedrawerItemStyles};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SidedrawerAccordionContent: React.FC;
@@ -0,0 +1 @@
1
+ import t from"react";import{Content as n}from"@radix-ui/react-accordion";import{Box as r}from"../../box/Box.js";import{keyframes as o,styled as i}from"../../../stitches.js";const m=o({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),d=o({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),h=i(n,{bg:"white",overflow:"hidden","@allowMotion":{'&[data-state="open"]':{animation:`${m} 300ms ease-out`},'&[data-state="closed"]':{animation:`${d} 300ms ease-out`}}}),c=({children:e})=>t.createElement(h,null,t.Children.map(e,a=>t.createElement(r,{css:{"> a":{px:"$6"},"> button":{px:"$6"}}},a)));export{c as SidedrawerAccordionContent};
@@ -0,0 +1,267 @@
1
+ /// <reference types="react" />
2
+ export declare const SidedrawerAccordionItem: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-accordion").AccordionItemProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
6
+ xl: string;
7
+ reducedMotion: string;
8
+ allowMotion: string;
9
+ hover: string;
10
+ }, import("@stitches/react/types/css-util").CSS<{
11
+ sm: string;
12
+ md: string;
13
+ lg: string;
14
+ xl: string;
15
+ reducedMotion: string;
16
+ allowMotion: string;
17
+ hover: string;
18
+ }, {
19
+ colors: {
20
+ textForeground: any;
21
+ textSubtle: any;
22
+ textPlaceholder: any;
23
+ background: any;
24
+ backgroundAccent: any;
25
+ tonal50: any;
26
+ tonal100: any;
27
+ tonal200: any;
28
+ tonal300: any;
29
+ tonal400: any;
30
+ tonal500: any;
31
+ tonal600: any;
32
+ alpha100: any;
33
+ alpha150: any;
34
+ alpha200: any;
35
+ alpha250: any;
36
+ alpha600: any;
37
+ primaryLight: any;
38
+ primary: any;
39
+ primaryMid: any;
40
+ primaryDark: any;
41
+ secondary: any;
42
+ brandRed: any;
43
+ brandRedAccent: any;
44
+ brandGreen: any;
45
+ brandGreenAccent: any;
46
+ brandPurple: any;
47
+ brandPurpleAccent: any;
48
+ brandYellow: any;
49
+ brandYellowAccent: any;
50
+ successLight: any;
51
+ success: any;
52
+ successMid: any;
53
+ successDark: any;
54
+ dangerLight: any;
55
+ danger: any;
56
+ dangerMid: any;
57
+ dangerDark: any;
58
+ warningLight: any;
59
+ warning: any;
60
+ warningMid: any;
61
+ warningDark: any;
62
+ warningText: any;
63
+ subjectEnglish: any;
64
+ subjectMaths: any;
65
+ subjectScience: any;
66
+ subjectVerbalReasoning: any;
67
+ subjectNonVerbalReasoning: any;
68
+ subjectCreativeWriting: any;
69
+ subjectExamSkills: any;
70
+ };
71
+ space: {
72
+ "0": any;
73
+ "1": any;
74
+ "2": any;
75
+ "3": any;
76
+ "4": any;
77
+ "5": any;
78
+ "6": any;
79
+ "7": any;
80
+ "8": any;
81
+ "9": any;
82
+ };
83
+ fontSizes: {
84
+ xs: any;
85
+ sm: any;
86
+ md: any;
87
+ lg: any;
88
+ xl: any;
89
+ "2xl": any;
90
+ "3xl": any;
91
+ "4xl": any;
92
+ };
93
+ fonts: {
94
+ sans: any;
95
+ mono: any;
96
+ display: any;
97
+ body: any;
98
+ };
99
+ sizes: {
100
+ "0": any;
101
+ "1": any;
102
+ "2": any;
103
+ "3": any;
104
+ "4": any;
105
+ "5": any;
106
+ "6": any;
107
+ "7": any;
108
+ "8": any;
109
+ };
110
+ radii: {
111
+ "0": any;
112
+ "1": any;
113
+ "2": any;
114
+ "3": any;
115
+ round: any;
116
+ };
117
+ shadows: {
118
+ "0": any;
119
+ "1": any;
120
+ "2": any;
121
+ "3": any;
122
+ };
123
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
124
+ bg: (value: {
125
+ readonly [$$PropertyValue]: "background";
126
+ }) => {
127
+ background: {
128
+ readonly [$$PropertyValue]: "background";
129
+ };
130
+ };
131
+ inset: (value: string | number | {
132
+ readonly [$$ScaleValue]: "space";
133
+ }) => {
134
+ top: string | number | {
135
+ readonly [$$ScaleValue]: "space";
136
+ };
137
+ right: string | number | {
138
+ readonly [$$ScaleValue]: "space";
139
+ };
140
+ bottom: string | number | {
141
+ readonly [$$ScaleValue]: "space";
142
+ };
143
+ left: string | number | {
144
+ readonly [$$ScaleValue]: "space";
145
+ };
146
+ };
147
+ size: (value: string | number | {
148
+ readonly [$$ScaleValue]: "size";
149
+ }) => {
150
+ height: string | number | {
151
+ readonly [$$ScaleValue]: "size";
152
+ };
153
+ width: string | number | {
154
+ readonly [$$ScaleValue]: "size";
155
+ };
156
+ };
157
+ p: (value: string | number | {
158
+ readonly [$$ScaleValue]: "space";
159
+ }) => {
160
+ padding: string | number | {
161
+ readonly [$$ScaleValue]: "space";
162
+ };
163
+ };
164
+ pt: (value: string | number | {
165
+ readonly [$$ScaleValue]: "space";
166
+ }) => {
167
+ paddingTop: string | number | {
168
+ readonly [$$ScaleValue]: "space";
169
+ };
170
+ };
171
+ pr: (value: string | number | {
172
+ readonly [$$ScaleValue]: "space";
173
+ }) => {
174
+ paddingRight: string | number | {
175
+ readonly [$$ScaleValue]: "space";
176
+ };
177
+ };
178
+ pb: (value: string | number | {
179
+ readonly [$$ScaleValue]: "space";
180
+ }) => {
181
+ paddingBottom: string | number | {
182
+ readonly [$$ScaleValue]: "space";
183
+ };
184
+ };
185
+ pl: (value: string | number | {
186
+ readonly [$$ScaleValue]: "space";
187
+ }) => {
188
+ paddingLeft: string | number | {
189
+ readonly [$$ScaleValue]: "space";
190
+ };
191
+ };
192
+ px: (value: string | number | {
193
+ readonly [$$ScaleValue]: "space";
194
+ }) => {
195
+ paddingLeft: string | number | {
196
+ readonly [$$ScaleValue]: "space";
197
+ };
198
+ paddingRight: string | number | {
199
+ readonly [$$ScaleValue]: "space";
200
+ };
201
+ };
202
+ py: (value: string | number | {
203
+ readonly [$$ScaleValue]: "space";
204
+ }) => {
205
+ paddingTop: string | number | {
206
+ readonly [$$ScaleValue]: "space";
207
+ };
208
+ paddingBottom: string | number | {
209
+ readonly [$$ScaleValue]: "space";
210
+ };
211
+ };
212
+ m: (value: string | number | {
213
+ readonly [$$ScaleValue]: "space";
214
+ }) => {
215
+ margin: string | number | {
216
+ readonly [$$ScaleValue]: "space";
217
+ };
218
+ };
219
+ mt: (value: string | number | {
220
+ readonly [$$ScaleValue]: "space";
221
+ }) => {
222
+ marginTop: string | number | {
223
+ readonly [$$ScaleValue]: "space";
224
+ };
225
+ };
226
+ mr: (value: string | number | {
227
+ readonly [$$ScaleValue]: "space";
228
+ }) => {
229
+ marginRight: string | number | {
230
+ readonly [$$ScaleValue]: "space";
231
+ };
232
+ };
233
+ mb: (value: string | number | {
234
+ readonly [$$ScaleValue]: "space";
235
+ }) => {
236
+ marginBottom: string | number | {
237
+ readonly [$$ScaleValue]: "space";
238
+ };
239
+ };
240
+ ml: (value: string | number | {
241
+ readonly [$$ScaleValue]: "space";
242
+ }) => {
243
+ marginLeft: string | number | {
244
+ readonly [$$ScaleValue]: "space";
245
+ };
246
+ };
247
+ mx: (value: string | number | {
248
+ readonly [$$ScaleValue]: "space";
249
+ }) => {
250
+ marginLeft: string | number | {
251
+ readonly [$$ScaleValue]: "space";
252
+ };
253
+ marginRight: string | number | {
254
+ readonly [$$ScaleValue]: "space";
255
+ };
256
+ };
257
+ my: (value: string | number | {
258
+ readonly [$$ScaleValue]: "space";
259
+ }) => {
260
+ marginTop: string | number | {
261
+ readonly [$$ScaleValue]: "space";
262
+ };
263
+ marginBottom: string | number | {
264
+ readonly [$$ScaleValue]: "space";
265
+ };
266
+ };
267
+ }>>;
@@ -0,0 +1 @@
1
+ import{Item as o}from"@radix-ui/react-accordion";import{styled as r}from"../../../stitches.js";const t=r(o,{});export{t as SidedrawerAccordionItem};
@@ -0,0 +1,267 @@
1
+ /// <reference types="react" />
2
+ export declare const SidedrawerAccordionRoot: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<(import("@radix-ui/react-accordion").AccordionSingleProps | import("@radix-ui/react-accordion").AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>>, {}, {
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
6
+ xl: string;
7
+ reducedMotion: string;
8
+ allowMotion: string;
9
+ hover: string;
10
+ }, import("@stitches/react/types/css-util").CSS<{
11
+ sm: string;
12
+ md: string;
13
+ lg: string;
14
+ xl: string;
15
+ reducedMotion: string;
16
+ allowMotion: string;
17
+ hover: string;
18
+ }, {
19
+ colors: {
20
+ textForeground: any;
21
+ textSubtle: any;
22
+ textPlaceholder: any;
23
+ background: any;
24
+ backgroundAccent: any;
25
+ tonal50: any;
26
+ tonal100: any;
27
+ tonal200: any;
28
+ tonal300: any;
29
+ tonal400: any;
30
+ tonal500: any;
31
+ tonal600: any;
32
+ alpha100: any;
33
+ alpha150: any;
34
+ alpha200: any;
35
+ alpha250: any;
36
+ alpha600: any;
37
+ primaryLight: any;
38
+ primary: any;
39
+ primaryMid: any;
40
+ primaryDark: any;
41
+ secondary: any;
42
+ brandRed: any;
43
+ brandRedAccent: any;
44
+ brandGreen: any;
45
+ brandGreenAccent: any;
46
+ brandPurple: any;
47
+ brandPurpleAccent: any;
48
+ brandYellow: any;
49
+ brandYellowAccent: any;
50
+ successLight: any;
51
+ success: any;
52
+ successMid: any;
53
+ successDark: any;
54
+ dangerLight: any;
55
+ danger: any;
56
+ dangerMid: any;
57
+ dangerDark: any;
58
+ warningLight: any;
59
+ warning: any;
60
+ warningMid: any;
61
+ warningDark: any;
62
+ warningText: any;
63
+ subjectEnglish: any;
64
+ subjectMaths: any;
65
+ subjectScience: any;
66
+ subjectVerbalReasoning: any;
67
+ subjectNonVerbalReasoning: any;
68
+ subjectCreativeWriting: any;
69
+ subjectExamSkills: any;
70
+ };
71
+ space: {
72
+ "0": any;
73
+ "1": any;
74
+ "2": any;
75
+ "3": any;
76
+ "4": any;
77
+ "5": any;
78
+ "6": any;
79
+ "7": any;
80
+ "8": any;
81
+ "9": any;
82
+ };
83
+ fontSizes: {
84
+ xs: any;
85
+ sm: any;
86
+ md: any;
87
+ lg: any;
88
+ xl: any;
89
+ "2xl": any;
90
+ "3xl": any;
91
+ "4xl": any;
92
+ };
93
+ fonts: {
94
+ sans: any;
95
+ mono: any;
96
+ display: any;
97
+ body: any;
98
+ };
99
+ sizes: {
100
+ "0": any;
101
+ "1": any;
102
+ "2": any;
103
+ "3": any;
104
+ "4": any;
105
+ "5": any;
106
+ "6": any;
107
+ "7": any;
108
+ "8": any;
109
+ };
110
+ radii: {
111
+ "0": any;
112
+ "1": any;
113
+ "2": any;
114
+ "3": any;
115
+ round: any;
116
+ };
117
+ shadows: {
118
+ "0": any;
119
+ "1": any;
120
+ "2": any;
121
+ "3": any;
122
+ };
123
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
124
+ bg: (value: {
125
+ readonly [$$PropertyValue]: "background";
126
+ }) => {
127
+ background: {
128
+ readonly [$$PropertyValue]: "background";
129
+ };
130
+ };
131
+ inset: (value: string | number | {
132
+ readonly [$$ScaleValue]: "space";
133
+ }) => {
134
+ top: string | number | {
135
+ readonly [$$ScaleValue]: "space";
136
+ };
137
+ right: string | number | {
138
+ readonly [$$ScaleValue]: "space";
139
+ };
140
+ bottom: string | number | {
141
+ readonly [$$ScaleValue]: "space";
142
+ };
143
+ left: string | number | {
144
+ readonly [$$ScaleValue]: "space";
145
+ };
146
+ };
147
+ size: (value: string | number | {
148
+ readonly [$$ScaleValue]: "size";
149
+ }) => {
150
+ height: string | number | {
151
+ readonly [$$ScaleValue]: "size";
152
+ };
153
+ width: string | number | {
154
+ readonly [$$ScaleValue]: "size";
155
+ };
156
+ };
157
+ p: (value: string | number | {
158
+ readonly [$$ScaleValue]: "space";
159
+ }) => {
160
+ padding: string | number | {
161
+ readonly [$$ScaleValue]: "space";
162
+ };
163
+ };
164
+ pt: (value: string | number | {
165
+ readonly [$$ScaleValue]: "space";
166
+ }) => {
167
+ paddingTop: string | number | {
168
+ readonly [$$ScaleValue]: "space";
169
+ };
170
+ };
171
+ pr: (value: string | number | {
172
+ readonly [$$ScaleValue]: "space";
173
+ }) => {
174
+ paddingRight: string | number | {
175
+ readonly [$$ScaleValue]: "space";
176
+ };
177
+ };
178
+ pb: (value: string | number | {
179
+ readonly [$$ScaleValue]: "space";
180
+ }) => {
181
+ paddingBottom: string | number | {
182
+ readonly [$$ScaleValue]: "space";
183
+ };
184
+ };
185
+ pl: (value: string | number | {
186
+ readonly [$$ScaleValue]: "space";
187
+ }) => {
188
+ paddingLeft: string | number | {
189
+ readonly [$$ScaleValue]: "space";
190
+ };
191
+ };
192
+ px: (value: string | number | {
193
+ readonly [$$ScaleValue]: "space";
194
+ }) => {
195
+ paddingLeft: string | number | {
196
+ readonly [$$ScaleValue]: "space";
197
+ };
198
+ paddingRight: string | number | {
199
+ readonly [$$ScaleValue]: "space";
200
+ };
201
+ };
202
+ py: (value: string | number | {
203
+ readonly [$$ScaleValue]: "space";
204
+ }) => {
205
+ paddingTop: string | number | {
206
+ readonly [$$ScaleValue]: "space";
207
+ };
208
+ paddingBottom: string | number | {
209
+ readonly [$$ScaleValue]: "space";
210
+ };
211
+ };
212
+ m: (value: string | number | {
213
+ readonly [$$ScaleValue]: "space";
214
+ }) => {
215
+ margin: string | number | {
216
+ readonly [$$ScaleValue]: "space";
217
+ };
218
+ };
219
+ mt: (value: string | number | {
220
+ readonly [$$ScaleValue]: "space";
221
+ }) => {
222
+ marginTop: string | number | {
223
+ readonly [$$ScaleValue]: "space";
224
+ };
225
+ };
226
+ mr: (value: string | number | {
227
+ readonly [$$ScaleValue]: "space";
228
+ }) => {
229
+ marginRight: string | number | {
230
+ readonly [$$ScaleValue]: "space";
231
+ };
232
+ };
233
+ mb: (value: string | number | {
234
+ readonly [$$ScaleValue]: "space";
235
+ }) => {
236
+ marginBottom: string | number | {
237
+ readonly [$$ScaleValue]: "space";
238
+ };
239
+ };
240
+ ml: (value: string | number | {
241
+ readonly [$$ScaleValue]: "space";
242
+ }) => {
243
+ marginLeft: string | number | {
244
+ readonly [$$ScaleValue]: "space";
245
+ };
246
+ };
247
+ mx: (value: string | number | {
248
+ readonly [$$ScaleValue]: "space";
249
+ }) => {
250
+ marginLeft: string | number | {
251
+ readonly [$$ScaleValue]: "space";
252
+ };
253
+ marginRight: string | number | {
254
+ readonly [$$ScaleValue]: "space";
255
+ };
256
+ };
257
+ my: (value: string | number | {
258
+ readonly [$$ScaleValue]: "space";
259
+ }) => {
260
+ marginTop: string | number | {
261
+ readonly [$$ScaleValue]: "space";
262
+ };
263
+ marginBottom: string | number | {
264
+ readonly [$$ScaleValue]: "space";
265
+ };
266
+ };
267
+ }>>;
@@ -0,0 +1 @@
1
+ import{Root as r}from"@radix-ui/react-accordion";import{styled as d}from"../../../stitches.js";const o=d(r,{width:"100%"});o.displayName="SidedrawerAccordionRoot";export{o as SidedrawerAccordionRoot};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SidedrawerAccordionTrigger: React.FC;
@@ -0,0 +1 @@
1
+ import{ChevronDown as o}from"@atom-learning/icons";import e from"react";import{Trigger as m,Header as n}from"@radix-ui/react-accordion";import{styled as t}from"../../../stitches.js";import{Icon as a}from"../../icon/Icon.js";import{Flex as i}from"../../flex/Flex.js";import{sidedrawerItemStyles as s}from"../Sidedrawer.styles.js";const l=t(m,{justifyContent:"space-between",m:0,p:0,"&[data-state=open]":{fontWeight:"600"},...s}),c=t(a,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"}}),d=({children:r})=>e.createElement(n,null,e.createElement(l,null,e.createElement(i,{css:{alignItems:"center"}},r),e.createElement(c,{is:o,size:"sm"})));export{d as SidedrawerAccordionTrigger};
@@ -0,0 +1,4 @@
1
+ export { SidedrawerAccordionRoot } from './SidedrawerAccordionRoot';
2
+ export { SidedrawerAccordionContent } from './SidedrawerAccordionContent';
3
+ export { SidedrawerAccordionItem } from './SidedrawerAccordionItem';
4
+ export { SidedrawerAccordionTrigger } from './SidedrawerAccordionTrigger';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SidedrawerBody: React.FC;
@@ -0,0 +1 @@
1
+ import r,{isValidElement as l}from"react";import{Box as d}from"../box/Box.js";import{SidedrawerAccordionRoot as m}from"./SidedrawerAccordion/SidedrawerAccordionRoot.js";import"./SidedrawerAccordion/SidedrawerAccordionContent.js";import"./SidedrawerAccordion/SidedrawerAccordionItem.js";import"./SidedrawerAccordion/SidedrawerAccordionTrigger.js";const a=({children:e})=>{let o=!1;return r.Children.forEach(e,t=>{var i;l(t)&&((i=t.props)==null?void 0:i.value)&&(o=!0)}),r.createElement(d,{css:{flexGrow:1,width:"100%",overflowY:"auto"}},o?r.createElement(m,{type:"single"},e):e)};export{a as SidedrawerBody};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SidedrawerClose: React.FC;