@atom-learning/components 1.8.1 → 1.10.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 +7 -4
- package/dist/components/action-icon/ActionIcon.d.ts +43 -43
- package/dist/components/button/Button.d.ts +42 -42
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/empty-state/EmptyState.d.ts +542 -0
- package/dist/components/empty-state/EmptyState.js +1 -0
- package/dist/components/empty-state/EmptyStateBody.d.ts +540 -0
- package/dist/components/empty-state/EmptyStateBody.js +1 -0
- package/dist/components/empty-state/EmptyStateImage.d.ts +538 -0
- package/dist/components/empty-state/EmptyStateImage.js +1 -0
- package/dist/components/empty-state/EmptyStateTitle.d.ts +267 -0
- package/dist/components/empty-state/EmptyStateTitle.js +1 -0
- package/dist/components/empty-state/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/label/Label.d.ts +2 -2
- package/dist/components/radio-button/RadioButtonGroup.d.ts +1 -1
- package/dist/components/stack/Stack.d.ts +1 -1
- package/dist/docgen.json +1 -1
- package/dist/docs/EmptyState.mdx +20 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/stitches.d.ts +202 -202
- package/package.json +2 -2
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
export declare const EmptyStateTitle: import("@stitches/react/types/styled-component").StyledComponent<"h2", {
|
|
2
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
|
|
3
|
+
}, {
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
reducedMotion: string;
|
|
9
|
+
allowMotion: string;
|
|
10
|
+
hover: string;
|
|
11
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
12
|
+
sm: string;
|
|
13
|
+
md: string;
|
|
14
|
+
lg: string;
|
|
15
|
+
xl: string;
|
|
16
|
+
reducedMotion: string;
|
|
17
|
+
allowMotion: string;
|
|
18
|
+
hover: string;
|
|
19
|
+
}, {
|
|
20
|
+
colors: {
|
|
21
|
+
textForeground: any;
|
|
22
|
+
textSubtle: any;
|
|
23
|
+
textPlaceholder: any;
|
|
24
|
+
background: any;
|
|
25
|
+
backgroundAccent: any;
|
|
26
|
+
tonal50: any;
|
|
27
|
+
tonal100: any;
|
|
28
|
+
tonal200: any;
|
|
29
|
+
tonal300: any;
|
|
30
|
+
tonal400: any;
|
|
31
|
+
tonal500: any;
|
|
32
|
+
tonal600: any;
|
|
33
|
+
alpha100: any;
|
|
34
|
+
alpha150: any;
|
|
35
|
+
alpha200: any;
|
|
36
|
+
alpha250: any;
|
|
37
|
+
alpha600: any;
|
|
38
|
+
primaryLight: any;
|
|
39
|
+
primary: any;
|
|
40
|
+
primaryMid: any;
|
|
41
|
+
primaryDark: any;
|
|
42
|
+
secondary: any;
|
|
43
|
+
brandRed: any;
|
|
44
|
+
brandRedAccent: any;
|
|
45
|
+
brandGreen: any;
|
|
46
|
+
brandGreenAccent: any;
|
|
47
|
+
brandPurple: any;
|
|
48
|
+
brandPurpleAccent: any;
|
|
49
|
+
brandYellow: any;
|
|
50
|
+
brandYellowAccent: any;
|
|
51
|
+
successLight: any;
|
|
52
|
+
success: any;
|
|
53
|
+
successMid: any;
|
|
54
|
+
successDark: any;
|
|
55
|
+
dangerLight: any;
|
|
56
|
+
danger: any;
|
|
57
|
+
dangerMid: any;
|
|
58
|
+
dangerDark: any;
|
|
59
|
+
warningLight: any;
|
|
60
|
+
warning: any;
|
|
61
|
+
warningMid: any;
|
|
62
|
+
warningDark: 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{styled as t}from"../../stitches.js";const o=t("h2",{color:"$tonal400",fontFamily:"$body",fontWeight:"600",variants:{size:{xs:{fontSize:"$md",mb:"$3"},sm:{fontSize:"$md",mb:"$3"},md:{fontSize:"$md",mb:"$3"},lg:{fontSize:"$lg",mb:"$4"},xl:{fontSize:"$lg",mb:"$4"}}}});export{o as EmptyStateTitle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmptyState } from './EmptyState';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { ValidationOptions } from './form';
|
|
2
2
|
export { Accordion } from './accordion';
|
|
3
|
+
export { EmptyState } from './empty-state';
|
|
3
4
|
export { ActionIcon } from './action-icon';
|
|
4
5
|
export { AlertDialog, useAlert, AlertProvider } from './alert-dialog';
|
|
5
6
|
export { Box } from './box';
|
|
@@ -2,9 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import type { Override } from '../../utilities/types';
|
|
3
3
|
declare const StyledLabel: import("@stitches/react/types/styled-component").StyledComponent<"label", {
|
|
4
4
|
size?: "sm" | "md" | undefined;
|
|
5
|
-
type?: "
|
|
5
|
+
type?: "inline" | "block" | undefined;
|
|
6
6
|
align?: "center" | "start" | undefined;
|
|
7
|
-
direction?: "
|
|
7
|
+
direction?: "row" | "reverse" | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
sm: string;
|
|
10
10
|
md: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as RadioGroup from '@radix-ui/react-radio-group';
|
|
3
3
|
export declare const RadioButtonGroup: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RadioGroup.RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, {
|
|
4
|
-
direction?: "
|
|
4
|
+
direction?: "row" | "column" | undefined;
|
|
5
5
|
}, {
|
|
6
6
|
sm: string;
|
|
7
7
|
md: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CSS } from '../../stitches';
|
|
3
3
|
declare const StyledStack: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
4
|
-
direction?: "
|
|
4
|
+
direction?: "row" | "column" | "row-reverse" | undefined;
|
|
5
5
|
justify?: "center" | "end" | "start" | undefined;
|
|
6
6
|
gap?: number | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | undefined;
|
|
7
7
|
}, {
|