@atom-learning/components 1.3.1 → 1.6.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/Accordion.js +1 -1
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionItem.js +1 -1
- package/dist/components/accordion/AccordionTrigger.js +1 -1
- package/dist/components/action-icon/ActionIcon.d.ts +1 -1
- package/dist/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/alert-dialog/AlertDialog.js +1 -1
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/alert-dialog/alert-context/AlertContext.js +1 -1
- package/dist/components/alert-dialog/alert-context/AlertDialog.js +1 -1
- package/dist/components/alert-dialog/alert-context/reducer.js +1 -1
- package/dist/components/box/Box.js +1 -1
- package/dist/components/button/Button.d.ts +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/calendar/Calendar.d.ts +19 -0
- package/dist/components/calendar/Calendar.js +1 -0
- package/dist/components/calendar/Day.d.ts +269 -0
- package/dist/components/calendar/Day.js +1 -0
- package/dist/components/calendar/constants.d.ts +2 -0
- package/dist/components/calendar/constants.js +1 -0
- package/dist/components/carousel/Carousel.js +1 -1
- package/dist/components/carousel/CarouselArrows.js +1 -1
- package/dist/components/carousel/CarouselPagination.js +1 -1
- package/dist/components/carousel/CarouselSlide.js +1 -1
- package/dist/components/carousel/CarouselSlider.js +1 -1
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/checkbox-field/CheckboxField.js +1 -1
- package/dist/components/combobox/Combobox.js +1 -1
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxPopover.js +1 -1
- package/dist/components/date-field/DateField.d.ts +17 -0
- package/dist/components/date-field/DateField.js +1 -0
- package/dist/components/date-field/index.d.ts +1 -0
- package/dist/components/date-input/DateInput.d.ts +19 -0
- package/dist/components/date-input/DateInput.js +1 -0
- package/dist/components/date-input/constants.d.ts +1 -0
- package/dist/components/date-input/constants.js +1 -0
- package/dist/components/date-input/index.d.ts +1 -0
- package/dist/components/date-input/use-date.d.ts +5 -0
- package/dist/components/date-input/use-date.js +1 -0
- package/dist/components/dialog/Dialog.js +1 -1
- package/dist/components/dialog/DialogContent.d.ts +1 -0
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/divider/Divider.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenu.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuContent.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.js +1 -1
- package/dist/components/field-wrapper/FieldDescription.js +1 -1
- package/dist/components/field-wrapper/FieldWrapper.js +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/flex/Flex.js +1 -1
- package/dist/components/form/Form.js +1 -1
- package/dist/components/form/Form.types.d.ts +2 -2
- package/dist/components/form/Form.types.js +1 -1
- package/dist/components/form/useFieldError.js +1 -1
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/icon/Icon.js +1 -1
- package/dist/components/image/Image.js +1 -1
- package/dist/components/index.d.ts +7 -1
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input-field/InputField.js +1 -1
- package/dist/components/label/Label.js +1 -1
- package/dist/components/link/Link.js +1 -1
- package/dist/components/list/List.js +1 -1
- package/dist/components/loader/Loader.js +1 -1
- package/dist/components/markdown-content/MarkdownContent.js +1 -1
- package/dist/components/markdown-content/components/MarkdownCode.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/MarkdownList.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/MarkdownText.js +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
- package/dist/components/notification-badge/NotificationBadge.d.ts +535 -0
- package/dist/components/notification-badge/NotificationBadge.js +1 -0
- package/dist/components/notification-badge/index.d.ts +1 -0
- package/dist/components/password-field/PasswordField.js +1 -1
- package/dist/components/password-input/PasswordInput.js +1 -1
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/popover/PopoverContent.d.ts +1 -0
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/progress-bar/ProgressBar.js +1 -1
- package/dist/components/radio-button/RadioButton.js +1 -1
- package/dist/components/radio-button/RadioButtonGroup.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/RadioCard.js +1 -1
- package/dist/components/radio-card/RadioCardGroup.js +1 -1
- package/dist/components/search-input/SearchInput.d.ts +4 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select-field/SelectField.js +1 -1
- package/dist/components/slider/Slider.d.ts +276 -0
- package/dist/components/slider/Slider.js +1 -0
- package/dist/components/slider/SliderSteps.d.ts +13 -0
- package/dist/components/slider/SliderSteps.js +1 -0
- package/dist/components/slider/SliderValue.d.ts +9 -0
- package/dist/components/slider/SliderValue.js +1 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider-field/SliderField.d.ts +13 -0
- package/dist/components/slider-field/SliderField.js +1 -0
- package/dist/components/slider-field/index.d.ts +1 -0
- package/dist/components/stack/Stack.js +1 -1
- package/dist/components/stack-content/StackContent.js +1 -1
- package/dist/components/stepper/Stepper.d.ts +10 -0
- package/dist/components/stepper/Stepper.js +1 -0
- package/dist/components/stepper/StepperStepBack.d.ts +4 -0
- package/dist/components/stepper/StepperStepBack.js +1 -0
- package/dist/components/stepper/StepperStepForward.d.ts +4 -0
- package/dist/components/stepper/StepperStepForward.js +1 -0
- package/dist/components/stepper/StepperSteps.d.ts +2 -0
- package/dist/components/stepper/StepperSteps.js +1 -0
- package/dist/components/stepper/index.d.ts +1 -0
- package/dist/components/stepper/stepper-context/StepperContext.d.ts +4 -0
- package/dist/components/stepper/stepper-context/StepperContext.js +1 -0
- package/dist/components/stepper/types.d.ts +24 -0
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/table/Table.js +1 -1
- package/dist/components/table/TableBody.js +1 -1
- package/dist/components/table/TableCell.js +1 -1
- package/dist/components/table/TableFooter.js +1 -1
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/table/TableHeaderCell.js +1 -1
- package/dist/components/table/TableRow.js +1 -1
- package/dist/components/tabs/TabTrigger.js +1 -1
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/TabsTriggerList.d.ts +2 -0
- package/dist/components/tabs/TabsTriggerList.js +1 -1
- package/dist/components/tabs/utils.js +1 -1
- package/dist/components/text/Text.js +1 -1
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea-field/TextareaField.js +1 -1
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/ToastProvider.js +1 -1
- package/dist/components/tooltip/Tooltip.js +1 -1
- package/dist/components/tooltip/TooltipContent.js +1 -1
- package/dist/components/validation-error/ValidationError.js +1 -1
- package/dist/components/video/Video.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/docs/Button.mdx +3 -2
- package/dist/docs/DateField.mdx +20 -0
- package/dist/docs/DateInput.mdx +87 -0
- package/dist/docs/Dialog.mdx +16 -1
- package/dist/docs/NotificationBadge.mdx +33 -0
- package/dist/docs/RadioButton.mdx +1 -1
- package/dist/docs/SearchInput.mdx +2 -1
- package/dist/docs/Slider.mdx +117 -0
- package/dist/docs/SliderField.mdx +35 -0
- package/dist/docs/Stepper.mdx +45 -0
- package/dist/docs/Tabs.mdx +17 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/stitches.js +1 -1
- package/dist/utilities/css-wrapper/CSSWrapper.js +1 -1
- package/dist/utilities/style/capsize.js +1 -1
- package/dist/utilities/style/encode-background-icon.js +1 -1
- package/dist/utilities/style/keyframe-animations.js +1 -1
- package/dist/utilities/use-is-mounted-ref/index.js +1 -1
- package/package.json +27 -18
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const StyledBadge: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
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
|
+
subjectEnglish: any;
|
|
63
|
+
subjectMaths: any;
|
|
64
|
+
subjectScience: any;
|
|
65
|
+
subjectVerbalReasoning: any;
|
|
66
|
+
subjectNonVerbalReasoning: any;
|
|
67
|
+
subjectCreativeWriting: any;
|
|
68
|
+
subjectExamSkills: any;
|
|
69
|
+
};
|
|
70
|
+
space: {
|
|
71
|
+
"0": any;
|
|
72
|
+
"1": any;
|
|
73
|
+
"2": any;
|
|
74
|
+
"3": any;
|
|
75
|
+
"4": any;
|
|
76
|
+
"5": any;
|
|
77
|
+
"6": any;
|
|
78
|
+
"7": any;
|
|
79
|
+
"8": any;
|
|
80
|
+
"9": any;
|
|
81
|
+
};
|
|
82
|
+
fontSizes: {
|
|
83
|
+
xs: any;
|
|
84
|
+
sm: any;
|
|
85
|
+
md: any;
|
|
86
|
+
lg: any;
|
|
87
|
+
xl: any;
|
|
88
|
+
"2xl": any;
|
|
89
|
+
"3xl": any;
|
|
90
|
+
"4xl": any;
|
|
91
|
+
};
|
|
92
|
+
fonts: {
|
|
93
|
+
sans: any;
|
|
94
|
+
mono: any;
|
|
95
|
+
display: any;
|
|
96
|
+
body: any;
|
|
97
|
+
};
|
|
98
|
+
sizes: {
|
|
99
|
+
"0": any;
|
|
100
|
+
"1": any;
|
|
101
|
+
"2": any;
|
|
102
|
+
"3": any;
|
|
103
|
+
"4": any;
|
|
104
|
+
"5": any;
|
|
105
|
+
"6": any;
|
|
106
|
+
"7": any;
|
|
107
|
+
"8": any;
|
|
108
|
+
};
|
|
109
|
+
radii: {
|
|
110
|
+
"0": any;
|
|
111
|
+
"1": any;
|
|
112
|
+
"2": any;
|
|
113
|
+
"3": any;
|
|
114
|
+
round: any;
|
|
115
|
+
};
|
|
116
|
+
shadows: {
|
|
117
|
+
"0": any;
|
|
118
|
+
"1": any;
|
|
119
|
+
"2": any;
|
|
120
|
+
"3": any;
|
|
121
|
+
};
|
|
122
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
123
|
+
bg: (value: {
|
|
124
|
+
readonly [$$PropertyValue]: "background";
|
|
125
|
+
}) => {
|
|
126
|
+
background: {
|
|
127
|
+
readonly [$$PropertyValue]: "background";
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
inset: (value: string | number | {
|
|
131
|
+
readonly [$$ScaleValue]: "space";
|
|
132
|
+
}) => {
|
|
133
|
+
top: string | number | {
|
|
134
|
+
readonly [$$ScaleValue]: "space";
|
|
135
|
+
};
|
|
136
|
+
right: string | number | {
|
|
137
|
+
readonly [$$ScaleValue]: "space";
|
|
138
|
+
};
|
|
139
|
+
bottom: string | number | {
|
|
140
|
+
readonly [$$ScaleValue]: "space";
|
|
141
|
+
};
|
|
142
|
+
left: string | number | {
|
|
143
|
+
readonly [$$ScaleValue]: "space";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
size: (value: string | number | {
|
|
147
|
+
readonly [$$ScaleValue]: "size";
|
|
148
|
+
}) => {
|
|
149
|
+
height: string | number | {
|
|
150
|
+
readonly [$$ScaleValue]: "size";
|
|
151
|
+
};
|
|
152
|
+
width: string | number | {
|
|
153
|
+
readonly [$$ScaleValue]: "size";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
p: (value: string | number | {
|
|
157
|
+
readonly [$$ScaleValue]: "space";
|
|
158
|
+
}) => {
|
|
159
|
+
padding: string | number | {
|
|
160
|
+
readonly [$$ScaleValue]: "space";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
pt: (value: string | number | {
|
|
164
|
+
readonly [$$ScaleValue]: "space";
|
|
165
|
+
}) => {
|
|
166
|
+
paddingTop: string | number | {
|
|
167
|
+
readonly [$$ScaleValue]: "space";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
pr: (value: string | number | {
|
|
171
|
+
readonly [$$ScaleValue]: "space";
|
|
172
|
+
}) => {
|
|
173
|
+
paddingRight: string | number | {
|
|
174
|
+
readonly [$$ScaleValue]: "space";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
pb: (value: string | number | {
|
|
178
|
+
readonly [$$ScaleValue]: "space";
|
|
179
|
+
}) => {
|
|
180
|
+
paddingBottom: string | number | {
|
|
181
|
+
readonly [$$ScaleValue]: "space";
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
pl: (value: string | number | {
|
|
185
|
+
readonly [$$ScaleValue]: "space";
|
|
186
|
+
}) => {
|
|
187
|
+
paddingLeft: string | number | {
|
|
188
|
+
readonly [$$ScaleValue]: "space";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
px: (value: string | number | {
|
|
192
|
+
readonly [$$ScaleValue]: "space";
|
|
193
|
+
}) => {
|
|
194
|
+
paddingLeft: string | number | {
|
|
195
|
+
readonly [$$ScaleValue]: "space";
|
|
196
|
+
};
|
|
197
|
+
paddingRight: string | number | {
|
|
198
|
+
readonly [$$ScaleValue]: "space";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
py: (value: string | number | {
|
|
202
|
+
readonly [$$ScaleValue]: "space";
|
|
203
|
+
}) => {
|
|
204
|
+
paddingTop: string | number | {
|
|
205
|
+
readonly [$$ScaleValue]: "space";
|
|
206
|
+
};
|
|
207
|
+
paddingBottom: string | number | {
|
|
208
|
+
readonly [$$ScaleValue]: "space";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
m: (value: string | number | {
|
|
212
|
+
readonly [$$ScaleValue]: "space";
|
|
213
|
+
}) => {
|
|
214
|
+
margin: string | number | {
|
|
215
|
+
readonly [$$ScaleValue]: "space";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
mt: (value: string | number | {
|
|
219
|
+
readonly [$$ScaleValue]: "space";
|
|
220
|
+
}) => {
|
|
221
|
+
marginTop: string | number | {
|
|
222
|
+
readonly [$$ScaleValue]: "space";
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
mr: (value: string | number | {
|
|
226
|
+
readonly [$$ScaleValue]: "space";
|
|
227
|
+
}) => {
|
|
228
|
+
marginRight: string | number | {
|
|
229
|
+
readonly [$$ScaleValue]: "space";
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
mb: (value: string | number | {
|
|
233
|
+
readonly [$$ScaleValue]: "space";
|
|
234
|
+
}) => {
|
|
235
|
+
marginBottom: string | number | {
|
|
236
|
+
readonly [$$ScaleValue]: "space";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
ml: (value: string | number | {
|
|
240
|
+
readonly [$$ScaleValue]: "space";
|
|
241
|
+
}) => {
|
|
242
|
+
marginLeft: string | number | {
|
|
243
|
+
readonly [$$ScaleValue]: "space";
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
mx: (value: string | number | {
|
|
247
|
+
readonly [$$ScaleValue]: "space";
|
|
248
|
+
}) => {
|
|
249
|
+
marginLeft: string | number | {
|
|
250
|
+
readonly [$$ScaleValue]: "space";
|
|
251
|
+
};
|
|
252
|
+
marginRight: string | number | {
|
|
253
|
+
readonly [$$ScaleValue]: "space";
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
my: (value: string | number | {
|
|
257
|
+
readonly [$$ScaleValue]: "space";
|
|
258
|
+
}) => {
|
|
259
|
+
marginTop: string | number | {
|
|
260
|
+
readonly [$$ScaleValue]: "space";
|
|
261
|
+
};
|
|
262
|
+
marginBottom: string | number | {
|
|
263
|
+
readonly [$$ScaleValue]: "space";
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
}>>, {}, {
|
|
267
|
+
sm: string;
|
|
268
|
+
md: string;
|
|
269
|
+
lg: string;
|
|
270
|
+
xl: string;
|
|
271
|
+
reducedMotion: string;
|
|
272
|
+
allowMotion: string;
|
|
273
|
+
hover: string;
|
|
274
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
275
|
+
sm: string;
|
|
276
|
+
md: string;
|
|
277
|
+
lg: string;
|
|
278
|
+
xl: string;
|
|
279
|
+
reducedMotion: string;
|
|
280
|
+
allowMotion: string;
|
|
281
|
+
hover: string;
|
|
282
|
+
}, {
|
|
283
|
+
colors: {
|
|
284
|
+
textForeground: any;
|
|
285
|
+
textSubtle: any;
|
|
286
|
+
textPlaceholder: any;
|
|
287
|
+
background: any;
|
|
288
|
+
backgroundAccent: any;
|
|
289
|
+
tonal50: any;
|
|
290
|
+
tonal100: any;
|
|
291
|
+
tonal200: any;
|
|
292
|
+
tonal300: any;
|
|
293
|
+
tonal400: any;
|
|
294
|
+
tonal500: any;
|
|
295
|
+
tonal600: any;
|
|
296
|
+
alpha100: any;
|
|
297
|
+
alpha150: any;
|
|
298
|
+
alpha200: any;
|
|
299
|
+
alpha250: any;
|
|
300
|
+
alpha600: any;
|
|
301
|
+
primaryLight: any;
|
|
302
|
+
primary: any;
|
|
303
|
+
primaryMid: any;
|
|
304
|
+
primaryDark: any;
|
|
305
|
+
secondary: any;
|
|
306
|
+
brandRed: any;
|
|
307
|
+
brandRedAccent: any;
|
|
308
|
+
brandGreen: any;
|
|
309
|
+
brandGreenAccent: any;
|
|
310
|
+
brandPurple: any;
|
|
311
|
+
brandPurpleAccent: any;
|
|
312
|
+
brandYellow: any;
|
|
313
|
+
brandYellowAccent: any;
|
|
314
|
+
successLight: any;
|
|
315
|
+
success: any;
|
|
316
|
+
successMid: any;
|
|
317
|
+
successDark: any;
|
|
318
|
+
dangerLight: any;
|
|
319
|
+
danger: any;
|
|
320
|
+
dangerMid: any;
|
|
321
|
+
dangerDark: any;
|
|
322
|
+
warningLight: any;
|
|
323
|
+
warning: any;
|
|
324
|
+
warningMid: any;
|
|
325
|
+
warningDark: any;
|
|
326
|
+
subjectEnglish: any;
|
|
327
|
+
subjectMaths: any;
|
|
328
|
+
subjectScience: any;
|
|
329
|
+
subjectVerbalReasoning: any;
|
|
330
|
+
subjectNonVerbalReasoning: any;
|
|
331
|
+
subjectCreativeWriting: any;
|
|
332
|
+
subjectExamSkills: any;
|
|
333
|
+
};
|
|
334
|
+
space: {
|
|
335
|
+
"0": any;
|
|
336
|
+
"1": any;
|
|
337
|
+
"2": any;
|
|
338
|
+
"3": any;
|
|
339
|
+
"4": any;
|
|
340
|
+
"5": any;
|
|
341
|
+
"6": any;
|
|
342
|
+
"7": any;
|
|
343
|
+
"8": any;
|
|
344
|
+
"9": any;
|
|
345
|
+
};
|
|
346
|
+
fontSizes: {
|
|
347
|
+
xs: any;
|
|
348
|
+
sm: any;
|
|
349
|
+
md: any;
|
|
350
|
+
lg: any;
|
|
351
|
+
xl: any;
|
|
352
|
+
"2xl": any;
|
|
353
|
+
"3xl": any;
|
|
354
|
+
"4xl": any;
|
|
355
|
+
};
|
|
356
|
+
fonts: {
|
|
357
|
+
sans: any;
|
|
358
|
+
mono: any;
|
|
359
|
+
display: any;
|
|
360
|
+
body: any;
|
|
361
|
+
};
|
|
362
|
+
sizes: {
|
|
363
|
+
"0": any;
|
|
364
|
+
"1": any;
|
|
365
|
+
"2": any;
|
|
366
|
+
"3": any;
|
|
367
|
+
"4": any;
|
|
368
|
+
"5": any;
|
|
369
|
+
"6": any;
|
|
370
|
+
"7": any;
|
|
371
|
+
"8": any;
|
|
372
|
+
};
|
|
373
|
+
radii: {
|
|
374
|
+
"0": any;
|
|
375
|
+
"1": any;
|
|
376
|
+
"2": any;
|
|
377
|
+
"3": any;
|
|
378
|
+
round: any;
|
|
379
|
+
};
|
|
380
|
+
shadows: {
|
|
381
|
+
"0": any;
|
|
382
|
+
"1": any;
|
|
383
|
+
"2": any;
|
|
384
|
+
"3": any;
|
|
385
|
+
};
|
|
386
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
387
|
+
bg: (value: {
|
|
388
|
+
readonly [$$PropertyValue]: "background";
|
|
389
|
+
}) => {
|
|
390
|
+
background: {
|
|
391
|
+
readonly [$$PropertyValue]: "background";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
inset: (value: string | number | {
|
|
395
|
+
readonly [$$ScaleValue]: "space";
|
|
396
|
+
}) => {
|
|
397
|
+
top: string | number | {
|
|
398
|
+
readonly [$$ScaleValue]: "space";
|
|
399
|
+
};
|
|
400
|
+
right: string | number | {
|
|
401
|
+
readonly [$$ScaleValue]: "space";
|
|
402
|
+
};
|
|
403
|
+
bottom: string | number | {
|
|
404
|
+
readonly [$$ScaleValue]: "space";
|
|
405
|
+
};
|
|
406
|
+
left: string | number | {
|
|
407
|
+
readonly [$$ScaleValue]: "space";
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
size: (value: string | number | {
|
|
411
|
+
readonly [$$ScaleValue]: "size";
|
|
412
|
+
}) => {
|
|
413
|
+
height: string | number | {
|
|
414
|
+
readonly [$$ScaleValue]: "size";
|
|
415
|
+
};
|
|
416
|
+
width: string | number | {
|
|
417
|
+
readonly [$$ScaleValue]: "size";
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
p: (value: string | number | {
|
|
421
|
+
readonly [$$ScaleValue]: "space";
|
|
422
|
+
}) => {
|
|
423
|
+
padding: string | number | {
|
|
424
|
+
readonly [$$ScaleValue]: "space";
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
pt: (value: string | number | {
|
|
428
|
+
readonly [$$ScaleValue]: "space";
|
|
429
|
+
}) => {
|
|
430
|
+
paddingTop: string | number | {
|
|
431
|
+
readonly [$$ScaleValue]: "space";
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
pr: (value: string | number | {
|
|
435
|
+
readonly [$$ScaleValue]: "space";
|
|
436
|
+
}) => {
|
|
437
|
+
paddingRight: string | number | {
|
|
438
|
+
readonly [$$ScaleValue]: "space";
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
pb: (value: string | number | {
|
|
442
|
+
readonly [$$ScaleValue]: "space";
|
|
443
|
+
}) => {
|
|
444
|
+
paddingBottom: string | number | {
|
|
445
|
+
readonly [$$ScaleValue]: "space";
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
pl: (value: string | number | {
|
|
449
|
+
readonly [$$ScaleValue]: "space";
|
|
450
|
+
}) => {
|
|
451
|
+
paddingLeft: string | number | {
|
|
452
|
+
readonly [$$ScaleValue]: "space";
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
px: (value: string | number | {
|
|
456
|
+
readonly [$$ScaleValue]: "space";
|
|
457
|
+
}) => {
|
|
458
|
+
paddingLeft: string | number | {
|
|
459
|
+
readonly [$$ScaleValue]: "space";
|
|
460
|
+
};
|
|
461
|
+
paddingRight: string | number | {
|
|
462
|
+
readonly [$$ScaleValue]: "space";
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
py: (value: string | number | {
|
|
466
|
+
readonly [$$ScaleValue]: "space";
|
|
467
|
+
}) => {
|
|
468
|
+
paddingTop: string | number | {
|
|
469
|
+
readonly [$$ScaleValue]: "space";
|
|
470
|
+
};
|
|
471
|
+
paddingBottom: string | number | {
|
|
472
|
+
readonly [$$ScaleValue]: "space";
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
m: (value: string | number | {
|
|
476
|
+
readonly [$$ScaleValue]: "space";
|
|
477
|
+
}) => {
|
|
478
|
+
margin: string | number | {
|
|
479
|
+
readonly [$$ScaleValue]: "space";
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
mt: (value: string | number | {
|
|
483
|
+
readonly [$$ScaleValue]: "space";
|
|
484
|
+
}) => {
|
|
485
|
+
marginTop: string | number | {
|
|
486
|
+
readonly [$$ScaleValue]: "space";
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
mr: (value: string | number | {
|
|
490
|
+
readonly [$$ScaleValue]: "space";
|
|
491
|
+
}) => {
|
|
492
|
+
marginRight: string | number | {
|
|
493
|
+
readonly [$$ScaleValue]: "space";
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
mb: (value: string | number | {
|
|
497
|
+
readonly [$$ScaleValue]: "space";
|
|
498
|
+
}) => {
|
|
499
|
+
marginBottom: string | number | {
|
|
500
|
+
readonly [$$ScaleValue]: "space";
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
ml: (value: string | number | {
|
|
504
|
+
readonly [$$ScaleValue]: "space";
|
|
505
|
+
}) => {
|
|
506
|
+
marginLeft: string | number | {
|
|
507
|
+
readonly [$$ScaleValue]: "space";
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
mx: (value: string | number | {
|
|
511
|
+
readonly [$$ScaleValue]: "space";
|
|
512
|
+
}) => {
|
|
513
|
+
marginLeft: string | number | {
|
|
514
|
+
readonly [$$ScaleValue]: "space";
|
|
515
|
+
};
|
|
516
|
+
marginRight: string | number | {
|
|
517
|
+
readonly [$$ScaleValue]: "space";
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
my: (value: string | number | {
|
|
521
|
+
readonly [$$ScaleValue]: "space";
|
|
522
|
+
}) => {
|
|
523
|
+
marginTop: string | number | {
|
|
524
|
+
readonly [$$ScaleValue]: "space";
|
|
525
|
+
};
|
|
526
|
+
marginBottom: string | number | {
|
|
527
|
+
readonly [$$ScaleValue]: "space";
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
}>>;
|
|
531
|
+
declare type NotificationBadgeProps = React.ComponentProps<typeof StyledBadge> & {
|
|
532
|
+
value: number | string;
|
|
533
|
+
};
|
|
534
|
+
export declare const NotificationBadge: React.FC<NotificationBadgeProps>;
|
|
535
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import{Box as i}from"../box/Box.js";import{Flex as n}from"../flex/Flex.js";import{styled as o}from"../../stitches.js";const l=o(i,{position:"relative"}),a=o(n,{fontFamily:"$body",fontSize:"$sm",flexDirection:"column",justifyContent:"center",position:"absolute",top:"0",right:"0",transform:"translate(calc($sizes$2 / 2), -50%)",borderRadius:"$round",p:"$2",height:"$2",minWidth:"$2",textAlign:"center",color:"#fff",bg:"$primary"}),m=({value:t,children:r})=>e.createElement(l,null,!!t&&e.createElement(a,{role:"status"},t),r);export{m as NotificationBadge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationBadge } from './NotificationBadge';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{createElement as s}from"react";import{useFormContext as f}from"react-hook-form";import{FieldWrapper as n}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import"../form/Form.js";import{useFieldError as w}from"../form/useFieldError.js";import{PasswordInput as F}from"../password-input/PasswordInput.js";const t=({css:i={},label:p="Password",name:r,prompt:d=void 0,description:m,validation:o,...l})=>{const{register:e}=f(),{error:u}=w(r),c=o?e(o):e;return s(n,{css:{...i,position:"relative"},description:m,error:u,fieldId:r,label:p,prompt:d,required:Boolean(o==null?void 0:o.required)},s(F,{autoComplete:"current-password",name:r,id:r,ref:c,...l}))};t.displayName="PasswordField";export{t as PasswordField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Eye as c,EyeCrossed as d}from"@atom-learning/icons";import{forwardRef as w,useState as f,createElement as s}from"react";import{ActionIcon as u}from"../action-icon/ActionIcon.js";import{Box as b}from"../box/Box.js";import{Icon as I}from"../icon/Icon.js";import{Input as y}from"../input/Input.js";const t=w(({css:r,hidePasswordText:i="Hide password",showPasswordText:a="Show password",...p},n)=>{const[o,m]=f(!1),l=()=>m(e=>!e);return s(b,{css:{position:"relative",...r}},s(y,{...p,type:o?"text":"password",ref:n,css:{pr:"$sizes$2"}}),s(u,{appearance:"simple",theme:"neutral",css:{bottom:0,position:"absolute",right:0},label:o?i:a,onClick:l,onMouseDown:e=>e.preventDefault(),size:"lg"},s(I,{is:o?c:d,css:{size:20}})))});t.displayName="PasswordInput";export{t as PasswordInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Root as
|
|
1
|
+
import{Root as r,Trigger as t}from"@radix-ui/react-popover";import{createElement as m}from"react";import{styled as p}from"../../stitches.js";import{PopoverContent as i}from"./PopoverContent.js";p(r,{});const o=e=>m(r,{...e});o.Content=i,o.Trigger=t,o.displayName="Popover";export{o as Popover};
|
|
@@ -269,6 +269,7 @@ declare const StyledContent: import("@stitches/react/types/styled-component").St
|
|
|
269
269
|
}>>;
|
|
270
270
|
declare type PopoverContentProps = React.ComponentProps<typeof StyledContent> & React.ComponentProps<typeof Content> & {
|
|
271
271
|
closePopoverText?: string;
|
|
272
|
+
showCloseButton?: boolean;
|
|
272
273
|
};
|
|
273
274
|
export declare const PopoverContent: React.FC<PopoverContentProps>;
|
|
274
275
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Close as r}from"@atom-learning/icons";import{Content as l,Arrow as p,Close as h}from"@radix-ui/react-popover";import{createElement as t}from"react";import{styled as i}from"../../stitches.js";import{ActionIcon as c}from"../action-icon/ActionIcon.js";import{Icon as $}from"../icon/Icon.js";import{slideDownAndFade as f,slideLeftAndFade as g,slideUpAndFade as w,slideRightAndFade as x}from"../../utilities/style/keyframe-animations.js";const b=i(l,{bg:"white",borderRadius:"$1",boxShadow:"$2",maxWidth:"90vw",p:"$sizes$2",pr:"$6",position:"relative","@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:f},'&[data-side="right"]':{animationName:g},'&[data-side="bottom"]':{animationName:w},'&[data-side="left"]':{animationName:x}}},variants:{size:{sm:{maxWidth:"200px"},md:{maxWidth:"400px"},lg:{maxWidth:"600px"}}}}),C=i(p,{fill:"white",zIndex:1,'[data-align="end"] &':{mr:"$sizes$2"},'[data-align="start"] &':{ml:"$sizes$2"}}),u=({children:o,side:e="top",sideOffset:a=8,closePopoverText:n="Close popover",showCloseButton:m=!0,size:s="md",...d})=>t(b,{size:s,side:e,sideOffset:a,...d},m&&t(c,{as:h,css:{position:"absolute",right:"$0",top:"$0"},label:n,size:"lg",theme:"neutral"},t($,{is:r})),o,t(C,{width:16,height:8}));export{u as PopoverContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Root as s,Indicator as n}from"@radix-ui/react-progress";import{createElement as r}from"react";import{styled as o}from"../../stitches.js";const d=o(s,{borderRadius:"$round",background:"$tonal100",height:"$0",position:"relative",overflow:"hidden",width:"100%",variants:{theme:{primary:{color:"$primary"},success:{color:"$success"},warning:{color:"$warning"},danger:{color:"$danger"}}}}),c=o(n,{backgroundColor:"currentcolor",borderRadius:"$round",boxSizing:"border-box",height:"100%",position:"absolute",transition:"all 300ms ease-out"}),e=({value:t,theme:i="primary",...a})=>r(d,{theme:i,...a},r(c,{style:{width:`${t}%`}}));e.displayName="ProgressBar";export{e as ProgressBar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Item as
|
|
1
|
+
import{Item as n,Indicator as a}from"@radix-ui/react-radio-group";import{createElement as o}from"react";import{styled as r}from"../../stitches.js";const l=r(n,{alignItems:"center",appearance:"none",backgroundColor:"transparent",border:"1px solid $tonal400",borderRadius:"$round",color:"white",cursor:"pointer",display:"flex",justifyContent:"center",p:0,size:"$1",transition:"all 50ms ease-out","&:focus":{outline:"2px solid $primary",outlineOffset:"1px"},'&[data-state="checked"]':{backgroundColor:"$primary",borderColor:"$primary"},"&[disabled]":{backgroundColor:"$tonal100",borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"}}),d=r(a,{size:"6px",borderRadius:"$round",backgroundColor:"currentcolor",position:"absolute"}),t=e=>o(l,{...e},o(d,null));t.displayName="RadioButton";export{t as RadioButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Root as
|
|
1
|
+
import{Root as r}from"@radix-ui/react-radio-group";import{styled as t}from"../../stitches.js";const o=t(r,{display:"flex",flexWrap:"wrap",variants:{direction:{row:{flexDirection:"row","& > *:not(:last-child)":{mr:"$5"}},column:{flexDirection:"column"}}}});o.displayName="RadioButtonGroup";export{o as RadioButtonGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createElement as o}from"react";import{useFormContext as
|
|
1
|
+
import{createElement as o}from"react";import{useFormContext as a,Controller as F}from"react-hook-form";import{Description as B}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as R}from"../form/useFieldError.js";import{Label as b}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as C}from"../radio-button/RadioButtonGroup.js";import{ValidationError as E}from"../validation-error/ValidationError.js";import{styled as $}from"../../stitches.js";import{RadioField as g}from"./RadioField.js";const q=$("fieldset",{all:"unset"}),e=({children:s,css:n,direction:p="column",defaultValue:t,description:m,label:d,name:i,validation:r})=>{const{control:u}=a(),{error:l}=R(i);return o(q,{css:n},o(b,{as:"legend",css:{p:0,mb:"$3"},required:Boolean(r==null?void 0:r.required)},d),m&&o(B,{css:{mb:"$3"}},m),o(F,{control:u,name:i,rules:r,defaultValue:t,render:({onChange:c,value:f})=>o(C,{direction:p,defaultValue:t,onValueChange:c,value:f},s)}),l&&o(E,{css:{mt:"$2"}},l))};e.Item=g,e.displayName="RadioButtonField";export{e as RadioButtonField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{createElement as o}from"react";import"../field-wrapper/FieldWrapper.js";import{InlineFieldWrapper as p}from"../field-wrapper/InlineFieldWrapper.js";import{RadioButton as a}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";const i=({css:r,label:e,value:t,...m})=>o(p,{css:r,label:e},o(a,{value:t,...m}));i.displayName="RadioField";export{i as RadioField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Item as s,Indicator as d}from"@radix-ui/react-radio-group";import{createElement as t}from"react";import{styled as r}from"../../stitches.js";import{Box as c}from"../box/Box.js";const i=r(s,{alignItems:"center",bg:"white",border:"1px solid $tonal200",borderRadius:"$0",cursor:"pointer",display:"flex",textAlign:"left",'&[data-state="checked"]':{outline:"2px solid $primary",outlineOffset:"-2px"},variants:{align:{left:{flexDirection:"row"},right:{flexDirection:"row-reverse"}},size:{md:{px:"$4",py:"$3"},lg:{px:"$5",py:"$4"}},isFullWidth:{true:{width:"100%"},false:{width:"max-content"}}}}),p=r("div",{alignItems:"center",appearance:"none",backgroundColor:"transparent",border:"1px solid $tonal500",borderRadius:"$round",display:"flex",flexShrink:0,justifyContent:"center",p:0,size:"$1",transition:"all 50ms ease-out",'[data-state="checked"] &':{backgroundColor:"$primary",borderColor:"$primary"},variants:{containerIsFullWidth:{true:{},false:{}},align:{left:{mr:"$4"},right:{}}},compoundVariants:[{containerIsFullWidth:!0,align:"right",css:{ml:"auto"}},{containerIsFullWidth:!1,align:"right",css:{ml:"$4"}}]}),u=r(d,{backgroundColor:"white",borderRadius:"$round",position:"absolute",size:"6px"}),m=({children:a,isFullWidth:e=!1,size:n="md",align:o="left",...l})=>t(i,{...l,align:o,isFullWidth:e,size:n},t(p,{align:o,containerIsFullWidth:e},t(u,null)),t(c,null,a));export{m as RadioCard,i as StyledRadioCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Root as d}from"@radix-ui/react-radio-group";import{createElement as o,Children as l,isValidElement as u,cloneElement as C}from"react";import{Stack as E}from"../stack/Stack.js";import{RadioCard as R}from"./RadioCard.js";const s=({css:t,children:e,size:m,isFullWidth:n,align:i,gap:a="3",justify:p,...f})=>o(d,{...f},o(E,{direction:"row",justify:p,gap:a,css:t},l.map(e,r=>u(r)&&(r==null?void 0:r.type)===R?C(r,{size:m,isFullWidth:n,align:i}):r)));export{s as RadioCardGroup};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Input } from '../../components/input';
|
|
2
3
|
import { CSS } from '../../stitches';
|
|
3
|
-
import { Input } from '../input/Input';
|
|
4
4
|
declare type SearchInputProps = React.ComponentProps<typeof Input> & {
|
|
5
5
|
size: 'sm' | 'md';
|
|
6
6
|
css?: CSS;
|
|
7
|
+
value?: string;
|
|
8
|
+
clearText?: string;
|
|
9
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
10
|
};
|
|
8
11
|
export declare const SearchInput: React.FC<SearchInputProps>;
|
|
9
12
|
export {};
|