@atom-learning/components 2.27.0-beta.0 → 2.28.0-beta.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/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/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/carousel/CarouselArrows.js +1 -1
- package/dist/components/carousel/CarouselSlide.js +1 -1
- package/dist/components/checkbox-field/CheckboxField.js +1 -1
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/chip/ChipGroup.js +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.js +1 -1
- package/dist/components/data-table/DataTableBody.js +1 -1
- package/dist/components/data-table/DataTableDataCell.js +1 -1
- package/dist/components/data-table/DataTableRow.js +1 -1
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/dismissible/DismissibleRoot.js +1 -1
- package/dist/components/dismissible/DismissibleTrigger.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
- package/dist/components/field-wrapper/FieldDescription.js +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/file-input/FileInput.js +1 -1
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/icon/Icon.js +1 -1
- package/dist/components/inline-message/InlineMessage.js +1 -1
- package/dist/components/label/Label.js +1 -1
- package/dist/components/link/Link.js +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
- package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
- package/dist/components/markdown-content/components/MarkdownInlineCode.js +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
- package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -1
- package/dist/components/navigation/NavigationMenuLink.js +1 -1
- package/dist/components/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/number-input/NumberInput.js +1 -1
- package/dist/components/number-input-field/NumberInputField.js +1 -1
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/radio-button/RadioButton.js +1 -1
- package/dist/components/radio-button-field/RadioButtonField.js +1 -1
- package/dist/components/radio-button-field/RadioField.js +1 -1
- package/dist/components/radio-card/RadioCardGroup.js +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/select-field/SelectField.js +1 -1
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -1
- package/dist/components/sidedrawer/SidedrawerContent.js +1 -1
- package/dist/components/slider-field/SliderField.js +1 -1
- package/dist/components/stack-content/StackContent.js +1 -1
- package/dist/components/stepper/StepperStepBack.js +1 -1
- package/dist/components/table/TableHeader.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/toast/Toast.js +1 -1
- package/dist/components/toast/ToastProvider.js +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
- package/dist/components/tooltip/TooltipContent.js +1 -1
- package/dist/components/video/Video.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/docs/Accordion.mdx +56 -7
- package/dist/docs/Tabs.mdx +31 -57
- package/dist/index.cjs.js +1 -1
- package/dist/utilities/hooks/useCallbackRef.js +1 -1
- 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
|
@@ -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 e}from"@radix-ui/react-tabs";import*as i 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(e),r=({children:o,...t})=>i.createElement(T,{...t},o);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 o}from"@radix-ui/react-tabs";import{styled as t}from"../../stitches.js";const n=t(o,{flexGrow:1,fontFamily:"$body"}),r=n;export{r 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 '@atom-learning/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 {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{List as r}from"@radix-ui/react-tabs";import i from"react";import{styled as m}from"../../stitches.js";import{ColorScheme as s}from"@atom-learning/color-scheme";const a=m(r,{flexShrink:0,display:"flex",borderBottom:"1px solid $base3",width:"max-content"}),c=({children:e,colorScheme:t={},...o})=>i.createElement(s,{as:a,base:"slate",accent:"blue",interactive:"hiContrast1",...t,...o},e);export{c as TabsTriggerList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Error as g,Close as
|
|
1
|
+
import{Error as g,Close as $}from"@atom-learning/icons";import*as t from"react";import{toast as h}from"react-hot-toast";import{keyframes as a,styled as i}from"../../stitches.js";import{ActionIcon as v}from"../action-icon/ActionIcon.js";import{Icon as s}from"../icon/Icon.js";import{Loader as y}from"../loader/Loader.js";import{Text as w}from"../text/Text.js";const n=400,x=a({"0%":{transform:"translate3d(0,-100%,0)",opacity:0},"100%":{transform:"translate3d(0,0,0)",opacity:1}}),E=a({"0%":{transform:"translate3d(0,0,0)",opacity:1},"100%":{transform:"translate3d(0,-100%,0)",opacity:0}}),k=i("div",{position:"absolute",width:"100%",variants:{visible:{true:{"@allowMotion":{animation:`${x} 250ms cubic-bezier(0.22, 1, 0.36, 1)`}},false:{opacity:0,"@allowMotion":{animation:`${E} 250ms cubic-bezier(0.22, 1, 0.36, 1)`}}}}}),I=i("div",{pointerEvents:"auto",alignItems:"center",borderRadius:"$0",boxShadow:"$1",boxSizing:"border-box",color:"white",display:"flex",minHeight:"$5",pl:"$4",position:"relative",pr:"$6",py:"$4",transition:"background-color 50ms ease-out",width:"100%","@sm":{width:n},"@allowMotion":{transition:"background-color 50ms ease-out, transform 150ms ease-out"},variants:{status:{blank:{bg:"$primary"},error:{bg:"$danger"},loading:{bg:"$primary"},success:{bg:"$success"}}}}),T=t.memo(({ariaLive:l,height:m,id:e,message:c,role:p,type:o="blank",visible:d,calculateOffset:u,updateHeight:b})=>{const f=u(e,{reverseOrder:!0,margin:8});return t.createElement(k,{visible:d},t.createElement(I,{ref:r=>{r&&m===void 0&&b(e,r.getBoundingClientRect().height)},status:o,role:p,"aria-live":l,style:{transform:`translateY(${f}px)`}},o==="error"&&t.createElement(s,{size:"sm",css:{mr:"$3",flex:"0 0 auto"},is:g}),t.createElement(w,null,c),o==="loading"?t.createElement(y,{css:{flex:"0 0 auto",ml:"auto"}}):t.createElement(v,{css:{position:"absolute",top:"$2",right:"$2",color:"white","&:hover,&:focus":{color:"white",opacity:.5}},label:"Close alert",onClick:()=>h.dismiss(e)},t.createElement(s,{is:$}))))});export{n as TOAST_WIDTH,T as Toast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"react";import{useToaster as p}from"react-hot-toast";import{default as
|
|
1
|
+
import*as t from"react";import{useToaster as p}from"react-hot-toast";import{default as _}from"react-hot-toast";import{styled as c}from"../../stitches.js";import{TOAST_WIDTH as d,Toast as f}from"./Toast.js";import{MAX_Z_INDEX as u}from"../../constants/zIndices.js";const T=c("div",{left:"$2",position:"fixed",top:"$2",right:"$2",zIndex:u,"@sm":{top:"$3",right:"auto",left:`calc(50% - ${d/2}px)`}}),o=({children:a})=>{const{toasts:r,handlers:s}=p(),{startPause:i,endPause:m,calculateOffset:n,updateHeight:l}=s;return t.createElement(t.Fragment,null,t.createElement(T,{onMouseEnter:i,onMouseLeave:m},r.map(e=>t.createElement(f,{key:e.id,calculateOffset:n,updateHeight:l,...e}))),a)};o.displayName="ToastProvider";export{o as ToastProvider,_ as toast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as n from"react";import{styled as g}from"../../stitches.js";import{StyledIcon as f,Icon as r}from"../icon/Icon.js";import{StyledItem as h}from"./ToggleGroupItem.js";const
|
|
1
|
+
import*as n from"react";import{styled as g}from"../../stitches.js";import{StyledIcon as f,Icon as r}from"../icon/Icon.js";import{StyledItem as h}from"./ToggleGroupItem.js";const t={sm:"32px",md:"40px",lg:"48px"},$={sm:"$4",md:"$5",lg:"$5"},u={sm:"$2",md:"$3",lg:"$3"},l=i=>({fontSize:`$${i}`,px:$[i],minHeight:t[i],"& > *:not(:last-child)":{mr:u[i]}}),d=g(h,{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,lineHeight:1,py:"$1",[`& ${f}`]:{flexShrink:0},variants:{size:{sm:l("sm"),md:l("md"),lg:l("lg")},isIconOnly:{true:{}}},compoundVariants:[{isIconOnly:!0,size:"sm",css:{minWidth:t.sm,p:0}},{isIconOnly:!0,size:"md",css:{minWidth:t.md,p:0}},{isIconOnly:!0,size:"lg",css:{minWidth:t.lg,p:0}}]}),x=n.forwardRef(({size:i="md",children:p,...c},a)=>{var o;const s=n.Children.toArray(p),m=s.length<=1,y=m&&n.isValidElement(s[0])&&((o=s[0])==null?void 0:o.type)===r;return n.createElement(d,{ref:a,size:i,isIconOnly:y,...c},s.map(e=>!m&&typeof e=="string"?n.createElement("span",{key:e},e):n.isValidElement(e)&&(e==null?void 0:e.type)===r?n.cloneElement(e,{...e.props,size:i}):e))});export{d as StyledButton,x as ToggleGroupButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Content as m,Arrow as l}from"@radix-ui/react-tooltip";import*as
|
|
1
|
+
import{Content as m,Arrow as l}from"@radix-ui/react-tooltip";import*as a from"react";import{TOOLTIP_Z_INDEX as r}from"../../constants/zIndices.js";import{styled as t}from"../../stitches.js";import{slideDownAndFade as s,slideLeftAndFade as p,slideUpAndFade as f,slideRightAndFade as c}from"../../utilities/style/keyframe-animations.js";const h=t(m,{backgroundColor:"$tonal500",borderRadius:"$0",boxShadow:"$0",color:"white",fontFamily:"$body",fontSize:"$sm",lineHeight:1.5,whiteSpace:"normal",px:"$3",py:"$2",zIndex:r,"@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="delayed-open"]':{'&[data-side="top"]':{animationName:s},'&[data-side="right"]':{animationName:p},'&[data-side="bottom"]':{animationName:f},'&[data-side="left"]':{animationName:c}}},variants:{size:{sm:{maxWidth:"100px"},md:{maxWidth:"250px"},lg:{maxWidth:"400px"}}}}),x=t(l,{fill:"$tonal500",'[data-align="end"] &':{mr:"$2"},'[data-align="start"] &':{ml:"$2"}}),$=({children:i,side:e="top",sideOffset:o=4,size:n="md",...d})=>a.createElement(h,{side:e,sideOffset:o,size:n,...d},i,a.createElement(x,null));export{$ as TooltipContent};
|