@atom-learning/components 2.18.0 → 2.19.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.
- package/CHANGELOG.md +25 -9
- package/dist/components/index.d.ts +1 -0
- package/dist/components/sidedrawer/Sidedrawer.d.ts +24 -0
- package/dist/components/sidedrawer/Sidedrawer.js +1 -0
- package/dist/components/sidedrawer/Sidedrawer.styles.d.ts +44 -0
- package/dist/components/sidedrawer/Sidedrawer.styles.js +1 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts +2 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts +267 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.js +1 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts +267 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.js +1 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts +2 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.js +1 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/index.d.ts +4 -0
- package/dist/components/sidedrawer/SidedrawerBody.d.ts +2 -0
- package/dist/components/sidedrawer/SidedrawerBody.js +1 -0
- package/dist/components/sidedrawer/SidedrawerClose.d.ts +2 -0
- package/dist/components/sidedrawer/SidedrawerClose.js +1 -0
- package/dist/components/sidedrawer/SidedrawerContent.d.ts +2 -0
- package/dist/components/sidedrawer/SidedrawerContent.js +1 -0
- package/dist/components/sidedrawer/SidedrawerFooter.d.ts +266 -0
- package/dist/components/sidedrawer/SidedrawerFooter.js +1 -0
- package/dist/components/sidedrawer/SidedrawerHeader.d.ts +2 -0
- package/dist/components/sidedrawer/SidedrawerHeader.js +1 -0
- package/dist/components/sidedrawer/SidedrawerItem.d.ts +9 -0
- package/dist/components/sidedrawer/SidedrawerItem.js +1 -0
- package/dist/components/sidedrawer/SidedrawerOverlay.d.ts +267 -0
- package/dist/components/sidedrawer/SidedrawerOverlay.js +1 -0
- package/dist/components/sidedrawer/SidedrawerTrigger.d.ts +267 -0
- package/dist/components/sidedrawer/SidedrawerTrigger.js +1 -0
- package/dist/components/sidedrawer/index.d.ts +1 -0
- package/dist/docgen.json +1 -1
- package/dist/docs/Sidedrawer.mdx +155 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/utilities/style/keyframe-animations.d.ts +8 -0
- package/dist/utilities/style/keyframe-animations.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,36 @@
|
|
|
1
|
-
# [2.
|
|
1
|
+
# [2.19.0](https://github.com/Atom-Learning/components/compare/v2.18.0...v2.19.0) (2022-12-01)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* sidedrawer - content/footer position ([60e5a01](https://github.com/Atom-Learning/components/commit/60e5a019e201b1b49120f150faee24ad8cb7c67b))
|
|
7
|
+
* sidedrawer - ts validation fix. types fix + aria-label ([88130a4](https://github.com/Atom-Learning/components/commit/88130a4de9df779e03d793ce1dcb53c1f1ceabc3))
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
### Features
|
|
10
11
|
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
12
|
+
* sidedrawer - accordion item simplified ([219c2a8](https://github.com/Atom-Learning/components/commit/219c2a8452e60458b5db5cf994b1436fa87942e3))
|
|
13
|
+
* sidedrawer - accordion removed from item. overlay and footer improvements ([33e4278](https://github.com/Atom-Learning/components/commit/33e42782d524eaa96663e8e3d5835825918b449b))
|
|
14
|
+
* sidedrawer - accordion root simplified, open/close changes ([3158955](https://github.com/Atom-Learning/components/commit/315895506f21af0f0eaa84184483608a90cd52c9))
|
|
15
|
+
* sidedrawer - accordion usage simplified, accordion.item error handling, styles cleanup ([0de86a8](https://github.com/Atom-Learning/components/commit/0de86a84d4e1a92f9c09745365472ea4d5cc9927))
|
|
16
|
+
* sidedrawer - accordtion item animation ([c6fa5bd](https://github.com/Atom-Learning/components/commit/c6fa5bd227bbf748149f1cad2d4c1dc4d1ff0dee))
|
|
17
|
+
* sidedrawer - accordtion root renders automatically. mdx docs added ([1b97feb](https://github.com/Atom-Learning/components/commit/1b97feb4e09893f7fdcd68d8ec5ad711ee06732b))
|
|
18
|
+
* sidedrawer - active item styles improvements. trigger children improvements ([d26fd08](https://github.com/Atom-Learning/components/commit/d26fd0849306cabf1b9d8133843d51b11045bcd7))
|
|
19
|
+
* sidedrawer - api update to support sidedrawer.trigger ([65f3b08](https://github.com/Atom-Learning/components/commit/65f3b085000c268484ec98d3b27f5f2bd6dc5352))
|
|
20
|
+
* sidedrawer - cleanup accordion item render ([a989ba2](https://github.com/Atom-Learning/components/commit/a989ba267f2a280d50262626189ae6b79836c4f0))
|
|
21
|
+
* sidedrawer - close added, header and footer css improvements ([b92c64b](https://github.com/Atom-Learning/components/commit/b92c64b2f1d1ec0cba0fcccac7040169e5aa9bbd))
|
|
22
|
+
* sidedrawer - close on escape key, onClose passed to overlay. docs update ([fa670d5](https://github.com/Atom-Learning/components/commit/fa670d577a5e2e18275a3d18618ecde759c3a98b))
|
|
23
|
+
* sidedrawer - core components foundations ([3c95835](https://github.com/Atom-Learning/components/commit/3c958357fda36aaad68963ad39c43af1a2510a8a))
|
|
24
|
+
* sidedrawer - css and props improvements, animations moved to shared ([97680c5](https://github.com/Atom-Learning/components/commit/97680c51efc93f4800013e297e6a5d748c7db25b))
|
|
25
|
+
* sidedrawer - disabled state + accordion item props improvement ([8f70379](https://github.com/Atom-Learning/components/commit/8f70379e3b44707191a4c157321926f4d908fe2b))
|
|
26
|
+
* sidedrawer - item and accordion ([80abac3](https://github.com/Atom-Learning/components/commit/80abac3bb0355728c7e4967e72e46dcd04f4a39e))
|
|
27
|
+
* sidedrawer - overlay animation fix ([ee8bed2](https://github.com/Atom-Learning/components/commit/ee8bed26fb9fd11a5b24c902cfeb25e2f4635a4c))
|
|
28
|
+
* sidedrawer - render overlay always ([4b629b5](https://github.com/Atom-Learning/components/commit/4b629b526848e7d7e3a19c4af26e0d421e623e7b))
|
|
29
|
+
* sidedrawer docs preview ([5a4e895](https://github.com/Atom-Learning/components/commit/5a4e8957d2df6fa2e3ac21ef38931f6af2c3902a))
|
|
30
|
+
* sidedrawer docs update ([a3dc286](https://github.com/Atom-Learning/components/commit/a3dc2866cd961f990a0cf8ce42fd8d5936cdbf48))
|
|
31
|
+
* sidedrawer foundations change - use dialog ([3927ff5](https://github.com/Atom-Learning/components/commit/3927ff5ea8a16a77706a4f2cccce3f753cea39d9))
|
|
32
|
+
* sidedrawer props simplified ([6871e6b](https://github.com/Atom-Learning/components/commit/6871e6b1b26a7d63e67ff9013f82356b3c6092cd))
|
|
33
|
+
* sidedrawer unit tests ([b7530b3](https://github.com/Atom-Learning/components/commit/b7530b31f45f67df79a340190b78cd21b028a993))
|
|
18
34
|
|
|
19
35
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
20
36
|
|
|
@@ -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 @@
|
|
|
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};
|