@atom-learning/components 2.28.2 → 2.28.3-beta.1
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 +0 -7
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionItem.js +1 -1
- package/dist/components/accordion/AccordionTrigger.d.ts +5 -4
- package/dist/components/accordion/AccordionTrigger.js +1 -1
- package/dist/components/tabs/Tabs.d.ts +7 -276
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/TabsContent.d.ts +267 -0
- package/dist/components/tabs/TabsContent.js +1 -0
- package/dist/components/tabs/{TabTrigger.d.ts → TabsTrigger.d.ts} +3 -6
- package/dist/components/tabs/TabsTrigger.js +1 -0
- package/dist/components/tabs/TabsTriggerList.d.ts +5 -9
- package/dist/components/tabs/TabsTriggerList.js +1 -1
- package/dist/components/top-bar/TopBar.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/docs/Accordion.mdx +56 -7
- package/dist/docs/README.mdx +79 -0
- package/dist/docs/Tabs.mdx +31 -57
- package/dist/experiments/color-scheme/ColorScheme.d.ts +201 -0
- package/dist/experiments/color-scheme/ColorScheme.js +1 -0
- package/dist/experiments/color-scheme/blue.json.js +1 -0
- package/dist/experiments/color-scheme/generateAlphaColors.d.ts +1 -0
- package/dist/experiments/color-scheme/generateAlphaColors.js +1 -0
- package/dist/experiments/color-scheme/index.d.ts +1 -0
- package/dist/experiments/color-scheme/slate.json.js +1 -0
- package/dist/experiments/color-scheme/stitches.colorscheme.config.d.ts +452 -0
- package/dist/experiments/color-scheme/stitches.colorscheme.config.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/utilities/hooks/useCallbackRef.js +1 -1
- package/dist/utilities/hooks/useScrollPosition.d.ts +6 -3
- package/dist/utilities/hooks/useScrollPosition.js +1 -1
- package/dist/utilities/hooks/useWindowScrollPosition.d.ts +6 -0
- package/dist/utilities/hooks/useWindowScrollPosition.js +1 -0
- package/dist/utilities/hooks/useWindowSize.d.ts +8 -0
- package/dist/utilities/hooks/useWindowSize.js +1 -0
- package/package.json +3 -2
- package/dist/components/tabs/TabTrigger.js +0 -1
- package/dist/components/tabs/utils.d.ts +0 -2
- package/dist/components/tabs/utils.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
## [2.28.2](https://github.com/Atom-Learning/components/compare/v2.28.1...v2.28.2) (2023-01-18)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* read custom idColumn correctly ([28c4d3f](https://github.com/Atom-Learning/components/commit/28c4d3fb4a09c1003ba236848c77aeea21ce53c2))
|
|
7
|
-
|
|
8
1
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
9
2
|
|
|
10
3
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Content as
|
|
1
|
+
import{Content as n}from"@radix-ui/react-accordion";import t from"react";import{keyframes as o,styled as i}from"../../stitches.js";import{CSSWrapper as d}from"../../utilities/css-wrapper/CSSWrapper.js";const c=o({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),s=o({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),m=i(n,{border:0,width:"100%",bg:"$background",overflow:"hidden",'&[data-state="open"]':{borderRadius:"0 0 $0 $0"},"@allowMotion":{'&[data-state="open"]':{animation:`${c} 300ms ease-out`},'&[data-state="closed"]':{animation:`${s} 300ms ease-out`}}}),h=({children:e,css:r,...a})=>t.createElement(m,{...a},t.createElement(d,{css:r},e));export{h as AccordionContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Item as
|
|
1
|
+
import{Item as m}from"@radix-ui/react-accordion";import r from"react";import{styled as l}from"../../stitches.js";const c=l(m,{width:"100%","&:not(:last-child)":{mb:"$1"}}),i=({children:t,value:e,...o})=>r.createElement(c,{value:e,...o},t);export{i as AccordionItem};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, {
|
|
2
|
+
import { ColorScheme } from '../../experiments/color-scheme';
|
|
3
|
+
declare const StyledTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-accordion").AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>, {}, {
|
|
5
4
|
sm: string;
|
|
6
5
|
md: string;
|
|
7
6
|
lg: string;
|
|
@@ -267,6 +266,8 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
|
|
|
267
266
|
};
|
|
268
267
|
};
|
|
269
268
|
}>>;
|
|
270
|
-
declare type AccordionTriggerProps = React.ComponentProps<typeof StyledTrigger
|
|
269
|
+
declare type AccordionTriggerProps = React.ComponentProps<typeof StyledTrigger> & {
|
|
270
|
+
colorScheme?: typeof ColorScheme;
|
|
271
|
+
};
|
|
271
272
|
export declare const AccordionTrigger: React.FC<AccordionTriggerProps>;
|
|
272
273
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ChevronDown as
|
|
1
|
+
import{ChevronDown as i}from"@atom-learning/icons";import{Trigger as s}from"@radix-ui/react-accordion";import e from"react";import{styled as t}from"../../stitches.js";import{Icon as n}from"../icon/Icon.js";import{focusVisibleStyleBlock as c}from"../../utilities/style/focus-visible-style-block.js";import{ColorScheme as d}from"../../experiments/color-scheme/ColorScheme.js";const l=t(n,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"},'[data-state="closed"] > &':{transform:"rotate(0deg)"}}),m=t(s,{border:0,py:"$3",px:"$4",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",bg:"$interactive2",color:"$interactiveForeground","&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:active, &:hover, &:focus-visible":{bg:"$interactive3"},"&:focus-visible":{...c()}},'&[data-state="open"]':{borderRadius:"$0 $0 0 0"},'&[data-state="closed"]':{borderRadius:"$0"}}),f=({children:o,colorScheme:r={},...a})=>e.createElement(d,{asChild:!0,accent:"slate",interactive:"loContrast1",...r},e.createElement(m,{...a},o,e.createElement(l,{is:i})));export{f as AccordionTrigger};
|
|
@@ -1,278 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { TabsTriggerList } from './TabsTriggerList';
|
|
3
|
+
import { TabsTrigger } from './TabsTrigger';
|
|
4
|
+
import { TabsContent } from './TabsContent';
|
|
4
5
|
declare type TabsProps = React.ComponentProps<typeof StyledRoot>;
|
|
5
|
-
declare const StyledRoot: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsProps & React.RefAttributes<HTMLDivElement>>, {
|
|
6
|
-
theme?: "dark" | "light" | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
sm: string;
|
|
9
|
-
md: string;
|
|
10
|
-
lg: string;
|
|
11
|
-
xl: string;
|
|
12
|
-
reducedMotion: string;
|
|
13
|
-
allowMotion: string;
|
|
14
|
-
hover: string;
|
|
15
|
-
}, import("@stitches/react/types/css-util").CSS<{
|
|
16
|
-
sm: string;
|
|
17
|
-
md: string;
|
|
18
|
-
lg: string;
|
|
19
|
-
xl: string;
|
|
20
|
-
reducedMotion: string;
|
|
21
|
-
allowMotion: string;
|
|
22
|
-
hover: string;
|
|
23
|
-
}, {
|
|
24
|
-
colors: {
|
|
25
|
-
textForeground: any;
|
|
26
|
-
textSubtle: any;
|
|
27
|
-
textPlaceholder: any;
|
|
28
|
-
background: any;
|
|
29
|
-
backgroundAccent: any;
|
|
30
|
-
tonal50: any;
|
|
31
|
-
tonal100: any;
|
|
32
|
-
tonal200: any;
|
|
33
|
-
tonal300: any;
|
|
34
|
-
tonal400: any;
|
|
35
|
-
tonal500: any;
|
|
36
|
-
tonal600: any;
|
|
37
|
-
alpha100: any;
|
|
38
|
-
alpha150: any;
|
|
39
|
-
alpha200: any;
|
|
40
|
-
alpha250: any;
|
|
41
|
-
alpha600: any;
|
|
42
|
-
primaryLight: any;
|
|
43
|
-
primary: any;
|
|
44
|
-
primaryMid: any;
|
|
45
|
-
primaryDark: any;
|
|
46
|
-
secondary: any;
|
|
47
|
-
brandRed: any;
|
|
48
|
-
brandRedAccent: any;
|
|
49
|
-
brandGreen: any;
|
|
50
|
-
brandGreenAccent: any;
|
|
51
|
-
brandPurple: any;
|
|
52
|
-
brandPurpleAccent: any;
|
|
53
|
-
brandYellow: any;
|
|
54
|
-
brandYellowAccent: any;
|
|
55
|
-
successLight: any;
|
|
56
|
-
success: any;
|
|
57
|
-
successMid: any;
|
|
58
|
-
successDark: any;
|
|
59
|
-
dangerLight: any;
|
|
60
|
-
danger: any;
|
|
61
|
-
dangerMid: any;
|
|
62
|
-
dangerDark: any;
|
|
63
|
-
warningLight: any;
|
|
64
|
-
warning: any;
|
|
65
|
-
warningMid: any;
|
|
66
|
-
warningDark: any;
|
|
67
|
-
warningText: any;
|
|
68
|
-
subjectEnglish: any;
|
|
69
|
-
subjectMaths: any;
|
|
70
|
-
subjectScience: any;
|
|
71
|
-
subjectVerbalReasoning: any;
|
|
72
|
-
subjectNonVerbalReasoning: any;
|
|
73
|
-
subjectCreativeWriting: any;
|
|
74
|
-
subjectExamSkills: any;
|
|
75
|
-
};
|
|
76
|
-
space: {
|
|
77
|
-
"0": any;
|
|
78
|
-
"1": any;
|
|
79
|
-
"2": any;
|
|
80
|
-
"3": any;
|
|
81
|
-
"4": any;
|
|
82
|
-
"5": any;
|
|
83
|
-
"6": any;
|
|
84
|
-
"7": any;
|
|
85
|
-
"8": any;
|
|
86
|
-
"9": any;
|
|
87
|
-
};
|
|
88
|
-
fontSizes: {
|
|
89
|
-
xs: any;
|
|
90
|
-
sm: any;
|
|
91
|
-
md: any;
|
|
92
|
-
lg: any;
|
|
93
|
-
xl: any;
|
|
94
|
-
"2xl": any;
|
|
95
|
-
"3xl": any;
|
|
96
|
-
"4xl": any;
|
|
97
|
-
};
|
|
98
|
-
fonts: {
|
|
99
|
-
sans: any;
|
|
100
|
-
mono: any;
|
|
101
|
-
display: any;
|
|
102
|
-
body: any;
|
|
103
|
-
};
|
|
104
|
-
sizes: {
|
|
105
|
-
"0": any;
|
|
106
|
-
"1": any;
|
|
107
|
-
"2": any;
|
|
108
|
-
"3": any;
|
|
109
|
-
"4": any;
|
|
110
|
-
"5": any;
|
|
111
|
-
"6": any;
|
|
112
|
-
"7": any;
|
|
113
|
-
"8": any;
|
|
114
|
-
};
|
|
115
|
-
radii: {
|
|
116
|
-
"0": any;
|
|
117
|
-
"1": any;
|
|
118
|
-
"2": any;
|
|
119
|
-
"3": any;
|
|
120
|
-
round: any;
|
|
121
|
-
};
|
|
122
|
-
shadows: {
|
|
123
|
-
"0": any;
|
|
124
|
-
"1": any;
|
|
125
|
-
"2": any;
|
|
126
|
-
"3": any;
|
|
127
|
-
};
|
|
128
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
129
|
-
bg: (value: {
|
|
130
|
-
readonly [$$PropertyValue]: "background";
|
|
131
|
-
}) => {
|
|
132
|
-
background: {
|
|
133
|
-
readonly [$$PropertyValue]: "background";
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
inset: (value: string | number | {
|
|
137
|
-
readonly [$$ScaleValue]: "space";
|
|
138
|
-
}) => {
|
|
139
|
-
top: string | number | {
|
|
140
|
-
readonly [$$ScaleValue]: "space";
|
|
141
|
-
};
|
|
142
|
-
right: string | number | {
|
|
143
|
-
readonly [$$ScaleValue]: "space";
|
|
144
|
-
};
|
|
145
|
-
bottom: string | number | {
|
|
146
|
-
readonly [$$ScaleValue]: "space";
|
|
147
|
-
};
|
|
148
|
-
left: string | number | {
|
|
149
|
-
readonly [$$ScaleValue]: "space";
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
size: (value: string | number | {
|
|
153
|
-
readonly [$$ScaleValue]: "size";
|
|
154
|
-
}) => {
|
|
155
|
-
height: string | number | {
|
|
156
|
-
readonly [$$ScaleValue]: "size";
|
|
157
|
-
};
|
|
158
|
-
width: string | number | {
|
|
159
|
-
readonly [$$ScaleValue]: "size";
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
p: (value: string | number | {
|
|
163
|
-
readonly [$$ScaleValue]: "space";
|
|
164
|
-
}) => {
|
|
165
|
-
padding: string | number | {
|
|
166
|
-
readonly [$$ScaleValue]: "space";
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
pt: (value: string | number | {
|
|
170
|
-
readonly [$$ScaleValue]: "space";
|
|
171
|
-
}) => {
|
|
172
|
-
paddingTop: string | number | {
|
|
173
|
-
readonly [$$ScaleValue]: "space";
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
pr: (value: string | number | {
|
|
177
|
-
readonly [$$ScaleValue]: "space";
|
|
178
|
-
}) => {
|
|
179
|
-
paddingRight: string | number | {
|
|
180
|
-
readonly [$$ScaleValue]: "space";
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
pb: (value: string | number | {
|
|
184
|
-
readonly [$$ScaleValue]: "space";
|
|
185
|
-
}) => {
|
|
186
|
-
paddingBottom: string | number | {
|
|
187
|
-
readonly [$$ScaleValue]: "space";
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
pl: (value: string | number | {
|
|
191
|
-
readonly [$$ScaleValue]: "space";
|
|
192
|
-
}) => {
|
|
193
|
-
paddingLeft: string | number | {
|
|
194
|
-
readonly [$$ScaleValue]: "space";
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
px: (value: string | number | {
|
|
198
|
-
readonly [$$ScaleValue]: "space";
|
|
199
|
-
}) => {
|
|
200
|
-
paddingLeft: string | number | {
|
|
201
|
-
readonly [$$ScaleValue]: "space";
|
|
202
|
-
};
|
|
203
|
-
paddingRight: string | number | {
|
|
204
|
-
readonly [$$ScaleValue]: "space";
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
py: (value: string | number | {
|
|
208
|
-
readonly [$$ScaleValue]: "space";
|
|
209
|
-
}) => {
|
|
210
|
-
paddingTop: string | number | {
|
|
211
|
-
readonly [$$ScaleValue]: "space";
|
|
212
|
-
};
|
|
213
|
-
paddingBottom: string | number | {
|
|
214
|
-
readonly [$$ScaleValue]: "space";
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
m: (value: string | number | {
|
|
218
|
-
readonly [$$ScaleValue]: "space";
|
|
219
|
-
}) => {
|
|
220
|
-
margin: string | number | {
|
|
221
|
-
readonly [$$ScaleValue]: "space";
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
mt: (value: string | number | {
|
|
225
|
-
readonly [$$ScaleValue]: "space";
|
|
226
|
-
}) => {
|
|
227
|
-
marginTop: string | number | {
|
|
228
|
-
readonly [$$ScaleValue]: "space";
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
mr: (value: string | number | {
|
|
232
|
-
readonly [$$ScaleValue]: "space";
|
|
233
|
-
}) => {
|
|
234
|
-
marginRight: string | number | {
|
|
235
|
-
readonly [$$ScaleValue]: "space";
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
mb: (value: string | number | {
|
|
239
|
-
readonly [$$ScaleValue]: "space";
|
|
240
|
-
}) => {
|
|
241
|
-
marginBottom: string | number | {
|
|
242
|
-
readonly [$$ScaleValue]: "space";
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
ml: (value: string | number | {
|
|
246
|
-
readonly [$$ScaleValue]: "space";
|
|
247
|
-
}) => {
|
|
248
|
-
marginLeft: string | number | {
|
|
249
|
-
readonly [$$ScaleValue]: "space";
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
mx: (value: string | number | {
|
|
253
|
-
readonly [$$ScaleValue]: "space";
|
|
254
|
-
}) => {
|
|
255
|
-
marginLeft: string | number | {
|
|
256
|
-
readonly [$$ScaleValue]: "space";
|
|
257
|
-
};
|
|
258
|
-
marginRight: string | number | {
|
|
259
|
-
readonly [$$ScaleValue]: "space";
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
my: (value: string | number | {
|
|
263
|
-
readonly [$$ScaleValue]: "space";
|
|
264
|
-
}) => {
|
|
265
|
-
marginTop: string | number | {
|
|
266
|
-
readonly [$$ScaleValue]: "space";
|
|
267
|
-
};
|
|
268
|
-
marginBottom: string | number | {
|
|
269
|
-
readonly [$$ScaleValue]: "space";
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
}>>;
|
|
273
|
-
declare const StyledTabContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & React.RefAttributes<HTMLDivElement>>, {
|
|
274
|
-
theme?: "dark" | "light" | undefined;
|
|
275
|
-
}, {
|
|
6
|
+
declare const StyledRoot: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsProps & React.RefAttributes<HTMLDivElement>>, {}, {
|
|
276
7
|
sm: string;
|
|
277
8
|
md: string;
|
|
278
9
|
lg: string;
|
|
@@ -539,8 +270,8 @@ declare const StyledTabContent: import("@stitches/react/types/styled-component")
|
|
|
539
270
|
};
|
|
540
271
|
}>>;
|
|
541
272
|
export declare const Tabs: React.FC<TabsProps> & {
|
|
542
|
-
TriggerList: typeof
|
|
543
|
-
Trigger: typeof
|
|
544
|
-
Content: typeof
|
|
273
|
+
TriggerList: typeof TabsTriggerList;
|
|
274
|
+
Trigger: typeof TabsTrigger;
|
|
275
|
+
Content: typeof TabsContent;
|
|
545
276
|
};
|
|
546
277
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Root as
|
|
1
|
+
import{Root as i}from"@radix-ui/react-tabs";import*as e from"react";import{styled as m}from"../../stitches.js";import{TabsTriggerList as s}from"./TabsTriggerList.js";import{TabsTrigger as a}from"./TabsTrigger.js";import{TabsContent as g}from"./TabsContent.js";const T=m(i,{width:"100%"}),r=({children:t,...o})=>e.createElement(T,{...o},t);r.TriggerList=s,r.Trigger=a,r.Content=g,r.displayName="Tabs";export{r as Tabs};
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const TabsContent: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & 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{Content as t}from"@radix-ui/react-tabs";import{styled as n}from"../../stitches.js";const e=n(t,{flexGrow:1,fontFamily:"$body"}),o=e;o.displayName="TabsContent";export{o as TabsContent};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
theme?: "dark" | "light" | undefined;
|
|
4
|
-
}, {
|
|
2
|
+
declare const StyledTabsTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>, {}, {
|
|
5
3
|
sm: string;
|
|
6
4
|
md: string;
|
|
7
5
|
lg: string;
|
|
@@ -267,9 +265,8 @@ declare const StyledTabTrigger: import("@stitches/react/types/styled-component")
|
|
|
267
265
|
};
|
|
268
266
|
};
|
|
269
267
|
}>>;
|
|
270
|
-
interface
|
|
268
|
+
interface TabsTriggerProps extends React.ComponentProps<typeof StyledTabsTrigger> {
|
|
271
269
|
value: string;
|
|
272
|
-
disabled?: boolean;
|
|
273
270
|
}
|
|
274
|
-
export declare const
|
|
271
|
+
export declare const TabsTrigger: React.FC<TabsTriggerProps>;
|
|
275
272
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Trigger as i}from"@radix-ui/react-tabs";import*as e from"react";import{styled as a}from"../../stitches.js";import{Text as n}from"../text/Text.js";import{focusVisibleStyleBlock as c}from"../../utilities/style/focus-visible-style-block.js";const s=a(i,{background:"none",border:"none",cursor:"pointer",flexShrink:0,p:"$4",userSelect:"none",borderBottom:"2px solid transparent",'&[data-state="active"]':{color:"$interactive1",fontWeight:600,letterSpacing:"-0.005em",borderColor:"currentColor"},"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:hover, &:focus-visible":{color:"$interactive2",bg:"$accentA1"},"&:active":{color:"$interactive3"},"&:focus-visible":{...c()}}}),r=({children:o,...t})=>e.createElement(s,{asChild:!0,...t},e.createElement(n,{size:"sm",as:"span"},o));r.displayName="TabsTrigger";export{r as TabsTrigger};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
scrollPercentage?: number;
|
|
5
|
-
}
|
|
6
|
-
declare const StyledTriggerList: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & React.RefAttributes<HTMLDivElement>>, {
|
|
7
|
-
theme?: "dark" | "light" | undefined;
|
|
8
|
-
appearance?: "uppercase" | undefined;
|
|
9
|
-
}, {
|
|
2
|
+
import { ColorScheme } from '../../experiments/color-scheme';
|
|
3
|
+
declare const StyledTriggerList: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & React.RefAttributes<HTMLDivElement>>, {}, {
|
|
10
4
|
sm: string;
|
|
11
5
|
md: string;
|
|
12
6
|
lg: string;
|
|
@@ -272,5 +266,7 @@ declare const StyledTriggerList: import("@stitches/react/types/styled-component"
|
|
|
272
266
|
};
|
|
273
267
|
};
|
|
274
268
|
}>>;
|
|
275
|
-
export declare const
|
|
269
|
+
export declare const TabsTriggerList: React.FC<React.ComponentProps<typeof StyledTriggerList> & {
|
|
270
|
+
colorScheme?: typeof ColorScheme;
|
|
271
|
+
}>;
|
|
276
272
|
export {};
|