@atom-learning/components 1.0.0-rc.3 → 1.0.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 +16 -0
- package/dist/components/action-icon/ActionIcon.d.ts +129 -43
- package/dist/components/alert-dialog/AlertDialog.d.ts +128 -42
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +128 -42
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/box/Box.d.ts +128 -42
- package/dist/components/button/Button.d.ts +128 -42
- package/dist/components/button/Button.js +1 -1
- package/dist/components/carousel/Carousel.js +1 -1
- package/dist/components/carousel/CarouselPagination.d.ts +128 -42
- package/dist/components/carousel/CarouselSlide.d.ts +128 -42
- package/dist/components/carousel/CarouselSlider.d.ts +128 -42
- package/dist/components/checkbox/Checkbox.d.ts +128 -42
- package/dist/components/combobox/Combobox.d.ts +128 -42
- package/dist/components/combobox/ComboboxInput.d.ts +128 -42
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxList.d.ts +128 -42
- package/dist/components/combobox/ComboboxOption.d.ts +128 -42
- package/dist/components/combobox/ComboboxPopover.d.ts +128 -42
- package/dist/components/dialog/Dialog.d.ts +128 -42
- package/dist/components/dialog/DialogClose.d.ts +128 -42
- package/dist/components/dialog/DialogContent.d.ts +128 -42
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/divider/Divider.d.ts +134 -43
- package/dist/components/divider/Divider.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +128 -42
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +128 -42
- package/dist/components/dropdown-menu/DropdownMenuContent.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +130 -45
- package/dist/components/dropdown-menu/DropdownMenuItem.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +128 -42
- package/dist/components/dropdown-menu/DropdownMenuSeparator.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +128 -42
- package/dist/components/field-wrapper/InlineFieldWrapper.d.ts +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/flex/Flex.d.ts +128 -42
- package/dist/components/form/Form.d.ts +128 -42
- package/dist/components/grid/Grid.d.ts +128 -42
- package/dist/components/heading/Heading.d.ts +128 -42
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/icon/Icon.d.ts +128 -42
- package/dist/components/image/Image.d.ts +128 -42
- package/dist/components/index.d.ts +5 -4
- package/dist/components/input/Input.d.ts +128 -42
- package/dist/components/label/Label.d.ts +129 -43
- package/dist/components/label/Label.js +1 -1
- package/dist/components/link/Link.d.ts +128 -42
- package/dist/components/list/List.d.ts +288 -116
- package/dist/components/popover/Popover.d.ts +128 -42
- package/dist/components/popover/PopoverContent.d.ts +128 -42
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +128 -42
- package/dist/components/radio-button/RadioButton.d.ts +275 -0
- package/dist/components/radio-button/RadioButton.js +1 -0
- package/dist/components/radio-button/RadioButtonGroup.d.ts +269 -0
- package/dist/components/{radio → radio-button}/RadioButtonGroup.js +0 -0
- package/dist/components/{radio → radio-button}/index.d.ts +0 -0
- package/dist/components/{radio-field/RadioGroupField.d.ts → radio-button-field/RadioButtonField.d.ts} +2 -2
- package/dist/components/radio-button-field/RadioButtonField.js +1 -0
- package/dist/components/{radio-field → radio-button-field}/RadioField.d.ts +1 -1
- package/dist/components/radio-button-field/RadioField.js +1 -0
- package/dist/components/radio-button-field/index.d.ts +1 -0
- package/dist/components/radio-card/RadioCard.d.ts +274 -0
- package/dist/components/radio-card/RadioCard.js +1 -0
- package/dist/components/radio-card/RadioCardGroup.d.ts +9 -0
- package/dist/components/radio-card/RadioCardGroup.js +1 -0
- package/dist/components/radio-card/index.d.ts +2 -0
- package/dist/components/select/Select.d.ts +128 -42
- package/dist/components/select/Select.js +1 -1
- package/dist/components/stack/Stack.d.ts +128 -42
- package/dist/components/stack-content/StackContent.d.ts +128 -42
- package/dist/components/switch/Switch.d.ts +128 -42
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/table/Table.d.ts +128 -42
- package/dist/components/table/TableBody.d.ts +128 -42
- package/dist/components/table/TableCell.d.ts +128 -42
- package/dist/components/table/TableCell.js +1 -1
- package/dist/components/table/TableFooter.d.ts +128 -42
- package/dist/components/table/TableFooterCell.d.ts +128 -42
- package/dist/components/table/TableFooterCell.js +1 -1
- package/dist/components/table/TableHeader.d.ts +128 -42
- package/dist/components/table/TableHeaderCell.d.ts +128 -42
- package/dist/components/table/TableRow.d.ts +128 -42
- package/dist/components/tabs/TabTrigger.d.ts +128 -42
- package/dist/components/tabs/TabTrigger.js +1 -1
- package/dist/components/tabs/Tabs.d.ts +432 -174
- package/dist/components/text/Text.d.ts +128 -42
- package/dist/components/text/Text.js +1 -1
- package/dist/components/textarea/Textarea.d.ts +128 -42
- package/dist/components/toast/Toast.d.ts +128 -42
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/tooltip/Tooltip.js +1 -1
- package/dist/components/tooltip/TooltipContent.d.ts +128 -42
- package/dist/components/tooltip/TooltipContent.js +1 -1
- package/dist/components/video/Video.d.ts +128 -42
- package/dist/docgen.json +1 -1
- package/dist/docs/Divider.mdx +6 -2
- package/dist/docs/DropdownMenu.mdx +5 -3
- package/dist/docs/RadioButtonField.mdx +19 -0
- package/dist/docs/RadioCard.mdx +62 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/stitches.d.ts +610 -200
- package/dist/stitches.js +1 -1
- package/dist/types/navigatorActions.types.d.ts +2 -5
- package/dist/utilities/css-wrapper/CSSWrapper.d.ts +1 -1
- package/dist/utilities/css-wrapper/CSSWrapper.js +1 -1
- package/dist/utilities/style/index.d.ts +3 -2
- package/dist/utilities/style/keyframe-animations.d.ts +24 -0
- package/dist/utilities/style/keyframe-animations.js +1 -0
- package/package.json +21 -20
- package/dist/components/radio/RadioButton.d.ts +0 -189
- package/dist/components/radio/RadioButton.js +0 -1
- package/dist/components/radio/RadioButtonGroup.d.ts +0 -183
- package/dist/components/radio-field/RadioField.js +0 -1
- package/dist/components/radio-field/RadioGroupField.js +0 -1
- package/dist/components/radio-field/index.d.ts +0 -1
- package/dist/docs/RadioField.mdx +0 -19
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import * as RadioGroup from '@radix-ui/react-radio-group';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Override } from '../../utilities/types';
|
|
4
|
+
declare const StyledRadioButton: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<RadioGroup.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>, {}, {
|
|
5
|
+
sm: string;
|
|
6
|
+
md: string;
|
|
7
|
+
lg: string;
|
|
8
|
+
xl: string;
|
|
9
|
+
reducedMotion: string;
|
|
10
|
+
allowMotion: string;
|
|
11
|
+
hover: string;
|
|
12
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
13
|
+
sm: string;
|
|
14
|
+
md: string;
|
|
15
|
+
lg: string;
|
|
16
|
+
xl: string;
|
|
17
|
+
reducedMotion: string;
|
|
18
|
+
allowMotion: string;
|
|
19
|
+
hover: string;
|
|
20
|
+
}, {
|
|
21
|
+
colors: {
|
|
22
|
+
textForeground: any;
|
|
23
|
+
textSubtle: any;
|
|
24
|
+
textPlaceholder: any;
|
|
25
|
+
background: any;
|
|
26
|
+
backgroundAccent: any;
|
|
27
|
+
tonal50: any;
|
|
28
|
+
tonal100: any;
|
|
29
|
+
tonal200: any;
|
|
30
|
+
tonal300: any;
|
|
31
|
+
tonal400: any;
|
|
32
|
+
tonal500: any;
|
|
33
|
+
tonal600: any;
|
|
34
|
+
alpha100: any;
|
|
35
|
+
alpha150: any;
|
|
36
|
+
alpha200: any;
|
|
37
|
+
alpha250: any;
|
|
38
|
+
alpha600: any;
|
|
39
|
+
primaryLight: any;
|
|
40
|
+
primary: any;
|
|
41
|
+
primaryMid: any;
|
|
42
|
+
primaryDark: any;
|
|
43
|
+
secondary: any;
|
|
44
|
+
brandRed: any;
|
|
45
|
+
brandRedAccent: any;
|
|
46
|
+
brandGreen: any;
|
|
47
|
+
brandGreenAccent: any;
|
|
48
|
+
brandPurple: any;
|
|
49
|
+
brandPurpleAccent: any;
|
|
50
|
+
brandYellow: any;
|
|
51
|
+
brandYellowAccent: any;
|
|
52
|
+
successLight: any;
|
|
53
|
+
success: any;
|
|
54
|
+
successMid: any;
|
|
55
|
+
successDark: any;
|
|
56
|
+
dangerLight: any;
|
|
57
|
+
danger: any;
|
|
58
|
+
dangerMid: any;
|
|
59
|
+
dangerDark: any;
|
|
60
|
+
warningLight: any;
|
|
61
|
+
warning: any;
|
|
62
|
+
warningMid: any;
|
|
63
|
+
warningDark: any;
|
|
64
|
+
subjectEnglish: any;
|
|
65
|
+
subjectMaths: any;
|
|
66
|
+
subjectScience: any;
|
|
67
|
+
subjectVerbalReasoning: any;
|
|
68
|
+
subjectNonVerbalReasoning: any;
|
|
69
|
+
subjectCreativeWriting: any;
|
|
70
|
+
subjectExamSkills: any;
|
|
71
|
+
};
|
|
72
|
+
space: {
|
|
73
|
+
"0": any;
|
|
74
|
+
"1": any;
|
|
75
|
+
"2": any;
|
|
76
|
+
"3": any;
|
|
77
|
+
"4": any;
|
|
78
|
+
"5": any;
|
|
79
|
+
"6": any;
|
|
80
|
+
"7": any;
|
|
81
|
+
"8": any;
|
|
82
|
+
"9": any;
|
|
83
|
+
};
|
|
84
|
+
fontSizes: {
|
|
85
|
+
xs: any;
|
|
86
|
+
sm: any;
|
|
87
|
+
md: any;
|
|
88
|
+
lg: any;
|
|
89
|
+
xl: any;
|
|
90
|
+
"2xl": any;
|
|
91
|
+
"3xl": any;
|
|
92
|
+
"4xl": any;
|
|
93
|
+
};
|
|
94
|
+
fonts: {
|
|
95
|
+
sans: any;
|
|
96
|
+
mono: any;
|
|
97
|
+
display: any;
|
|
98
|
+
body: any;
|
|
99
|
+
};
|
|
100
|
+
sizes: {
|
|
101
|
+
"0": any;
|
|
102
|
+
"1": any;
|
|
103
|
+
"2": any;
|
|
104
|
+
"3": any;
|
|
105
|
+
"4": any;
|
|
106
|
+
"5": any;
|
|
107
|
+
"6": any;
|
|
108
|
+
"7": any;
|
|
109
|
+
"8": any;
|
|
110
|
+
};
|
|
111
|
+
radii: {
|
|
112
|
+
"0": any;
|
|
113
|
+
"1": any;
|
|
114
|
+
"2": any;
|
|
115
|
+
"3": any;
|
|
116
|
+
round: any;
|
|
117
|
+
};
|
|
118
|
+
shadows: {
|
|
119
|
+
"0": any;
|
|
120
|
+
"1": any;
|
|
121
|
+
"2": any;
|
|
122
|
+
"3": any;
|
|
123
|
+
};
|
|
124
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
125
|
+
bg: (value: {
|
|
126
|
+
readonly [$$PropertyValue]: "background";
|
|
127
|
+
}) => {
|
|
128
|
+
background: {
|
|
129
|
+
readonly [$$PropertyValue]: "background";
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
inset: (value: string | number | {
|
|
133
|
+
readonly [$$ScaleValue]: "space";
|
|
134
|
+
}) => {
|
|
135
|
+
top: string | number | {
|
|
136
|
+
readonly [$$ScaleValue]: "space";
|
|
137
|
+
};
|
|
138
|
+
right: string | number | {
|
|
139
|
+
readonly [$$ScaleValue]: "space";
|
|
140
|
+
};
|
|
141
|
+
bottom: string | number | {
|
|
142
|
+
readonly [$$ScaleValue]: "space";
|
|
143
|
+
};
|
|
144
|
+
left: string | number | {
|
|
145
|
+
readonly [$$ScaleValue]: "space";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
size: (value: string | number | {
|
|
149
|
+
readonly [$$ScaleValue]: "size";
|
|
150
|
+
}) => {
|
|
151
|
+
height: string | number | {
|
|
152
|
+
readonly [$$ScaleValue]: "size";
|
|
153
|
+
};
|
|
154
|
+
width: string | number | {
|
|
155
|
+
readonly [$$ScaleValue]: "size";
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
p: (value: string | number | {
|
|
159
|
+
readonly [$$ScaleValue]: "space";
|
|
160
|
+
}) => {
|
|
161
|
+
padding: string | number | {
|
|
162
|
+
readonly [$$ScaleValue]: "space";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
pt: (value: string | number | {
|
|
166
|
+
readonly [$$ScaleValue]: "space";
|
|
167
|
+
}) => {
|
|
168
|
+
paddingTop: string | number | {
|
|
169
|
+
readonly [$$ScaleValue]: "space";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
pr: (value: string | number | {
|
|
173
|
+
readonly [$$ScaleValue]: "space";
|
|
174
|
+
}) => {
|
|
175
|
+
paddingRight: string | number | {
|
|
176
|
+
readonly [$$ScaleValue]: "space";
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
pb: (value: string | number | {
|
|
180
|
+
readonly [$$ScaleValue]: "space";
|
|
181
|
+
}) => {
|
|
182
|
+
paddingBottom: string | number | {
|
|
183
|
+
readonly [$$ScaleValue]: "space";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
pl: (value: string | number | {
|
|
187
|
+
readonly [$$ScaleValue]: "space";
|
|
188
|
+
}) => {
|
|
189
|
+
paddingLeft: string | number | {
|
|
190
|
+
readonly [$$ScaleValue]: "space";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
px: (value: string | number | {
|
|
194
|
+
readonly [$$ScaleValue]: "space";
|
|
195
|
+
}) => {
|
|
196
|
+
paddingLeft: string | number | {
|
|
197
|
+
readonly [$$ScaleValue]: "space";
|
|
198
|
+
};
|
|
199
|
+
paddingRight: string | number | {
|
|
200
|
+
readonly [$$ScaleValue]: "space";
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
py: (value: string | number | {
|
|
204
|
+
readonly [$$ScaleValue]: "space";
|
|
205
|
+
}) => {
|
|
206
|
+
paddingTop: string | number | {
|
|
207
|
+
readonly [$$ScaleValue]: "space";
|
|
208
|
+
};
|
|
209
|
+
paddingBottom: string | number | {
|
|
210
|
+
readonly [$$ScaleValue]: "space";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
m: (value: string | number | {
|
|
214
|
+
readonly [$$ScaleValue]: "space";
|
|
215
|
+
}) => {
|
|
216
|
+
margin: string | number | {
|
|
217
|
+
readonly [$$ScaleValue]: "space";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
mt: (value: string | number | {
|
|
221
|
+
readonly [$$ScaleValue]: "space";
|
|
222
|
+
}) => {
|
|
223
|
+
marginTop: string | number | {
|
|
224
|
+
readonly [$$ScaleValue]: "space";
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
mr: (value: string | number | {
|
|
228
|
+
readonly [$$ScaleValue]: "space";
|
|
229
|
+
}) => {
|
|
230
|
+
marginRight: string | number | {
|
|
231
|
+
readonly [$$ScaleValue]: "space";
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
mb: (value: string | number | {
|
|
235
|
+
readonly [$$ScaleValue]: "space";
|
|
236
|
+
}) => {
|
|
237
|
+
marginBottom: string | number | {
|
|
238
|
+
readonly [$$ScaleValue]: "space";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
ml: (value: string | number | {
|
|
242
|
+
readonly [$$ScaleValue]: "space";
|
|
243
|
+
}) => {
|
|
244
|
+
marginLeft: string | number | {
|
|
245
|
+
readonly [$$ScaleValue]: "space";
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
mx: (value: string | number | {
|
|
249
|
+
readonly [$$ScaleValue]: "space";
|
|
250
|
+
}) => {
|
|
251
|
+
marginLeft: string | number | {
|
|
252
|
+
readonly [$$ScaleValue]: "space";
|
|
253
|
+
};
|
|
254
|
+
marginRight: string | number | {
|
|
255
|
+
readonly [$$ScaleValue]: "space";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
my: (value: string | number | {
|
|
259
|
+
readonly [$$ScaleValue]: "space";
|
|
260
|
+
}) => {
|
|
261
|
+
marginTop: string | number | {
|
|
262
|
+
readonly [$$ScaleValue]: "space";
|
|
263
|
+
};
|
|
264
|
+
marginBottom: string | number | {
|
|
265
|
+
readonly [$$ScaleValue]: "space";
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
}>>;
|
|
269
|
+
declare type RadioButtonProps = Override<React.ComponentPropsWithoutRef<typeof StyledRadioButton>, {
|
|
270
|
+
as?: never;
|
|
271
|
+
} & {
|
|
272
|
+
'aria-label'?: string;
|
|
273
|
+
}>;
|
|
274
|
+
export declare const RadioButton: React.FC<RadioButtonProps>;
|
|
275
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Item as o,Indicator as r}from"@radix-ui/react-radio-group";import{createElement as t}from"react";import{styled as e}from"../../stitches.js";const a=e(o,{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"}}),n=e(r,{size:"6px",borderRadius:"$round",backgroundColor:"currentcolor",position:"absolute"}),i=o=>t(a,Object.assign({},o),t(n,null));i.displayName="RadioButton";export{i as RadioButton};
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as RadioGroup from '@radix-ui/react-radio-group';
|
|
3
|
+
export declare const RadioButtonGroup: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RadioGroup.RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, {
|
|
4
|
+
direction?: "column" | "row" | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
sm: string;
|
|
7
|
+
md: string;
|
|
8
|
+
lg: string;
|
|
9
|
+
xl: string;
|
|
10
|
+
reducedMotion: string;
|
|
11
|
+
allowMotion: string;
|
|
12
|
+
hover: string;
|
|
13
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
14
|
+
sm: string;
|
|
15
|
+
md: string;
|
|
16
|
+
lg: string;
|
|
17
|
+
xl: string;
|
|
18
|
+
reducedMotion: string;
|
|
19
|
+
allowMotion: string;
|
|
20
|
+
hover: string;
|
|
21
|
+
}, {
|
|
22
|
+
colors: {
|
|
23
|
+
textForeground: any;
|
|
24
|
+
textSubtle: any;
|
|
25
|
+
textPlaceholder: any;
|
|
26
|
+
background: any;
|
|
27
|
+
backgroundAccent: any;
|
|
28
|
+
tonal50: any;
|
|
29
|
+
tonal100: any;
|
|
30
|
+
tonal200: any;
|
|
31
|
+
tonal300: any;
|
|
32
|
+
tonal400: any;
|
|
33
|
+
tonal500: any;
|
|
34
|
+
tonal600: any;
|
|
35
|
+
alpha100: any;
|
|
36
|
+
alpha150: any;
|
|
37
|
+
alpha200: any;
|
|
38
|
+
alpha250: any;
|
|
39
|
+
alpha600: any;
|
|
40
|
+
primaryLight: any;
|
|
41
|
+
primary: any;
|
|
42
|
+
primaryMid: any;
|
|
43
|
+
primaryDark: any;
|
|
44
|
+
secondary: any;
|
|
45
|
+
brandRed: any;
|
|
46
|
+
brandRedAccent: any;
|
|
47
|
+
brandGreen: any;
|
|
48
|
+
brandGreenAccent: any;
|
|
49
|
+
brandPurple: any;
|
|
50
|
+
brandPurpleAccent: any;
|
|
51
|
+
brandYellow: any;
|
|
52
|
+
brandYellowAccent: any;
|
|
53
|
+
successLight: any;
|
|
54
|
+
success: any;
|
|
55
|
+
successMid: any;
|
|
56
|
+
successDark: any;
|
|
57
|
+
dangerLight: any;
|
|
58
|
+
danger: any;
|
|
59
|
+
dangerMid: any;
|
|
60
|
+
dangerDark: any;
|
|
61
|
+
warningLight: any;
|
|
62
|
+
warning: any;
|
|
63
|
+
warningMid: any;
|
|
64
|
+
warningDark: any;
|
|
65
|
+
subjectEnglish: any;
|
|
66
|
+
subjectMaths: any;
|
|
67
|
+
subjectScience: any;
|
|
68
|
+
subjectVerbalReasoning: any;
|
|
69
|
+
subjectNonVerbalReasoning: any;
|
|
70
|
+
subjectCreativeWriting: any;
|
|
71
|
+
subjectExamSkills: any;
|
|
72
|
+
};
|
|
73
|
+
space: {
|
|
74
|
+
"0": any;
|
|
75
|
+
"1": any;
|
|
76
|
+
"2": any;
|
|
77
|
+
"3": any;
|
|
78
|
+
"4": any;
|
|
79
|
+
"5": any;
|
|
80
|
+
"6": any;
|
|
81
|
+
"7": any;
|
|
82
|
+
"8": any;
|
|
83
|
+
"9": any;
|
|
84
|
+
};
|
|
85
|
+
fontSizes: {
|
|
86
|
+
xs: any;
|
|
87
|
+
sm: any;
|
|
88
|
+
md: any;
|
|
89
|
+
lg: any;
|
|
90
|
+
xl: any;
|
|
91
|
+
"2xl": any;
|
|
92
|
+
"3xl": any;
|
|
93
|
+
"4xl": any;
|
|
94
|
+
};
|
|
95
|
+
fonts: {
|
|
96
|
+
sans: any;
|
|
97
|
+
mono: any;
|
|
98
|
+
display: any;
|
|
99
|
+
body: any;
|
|
100
|
+
};
|
|
101
|
+
sizes: {
|
|
102
|
+
"0": any;
|
|
103
|
+
"1": any;
|
|
104
|
+
"2": any;
|
|
105
|
+
"3": any;
|
|
106
|
+
"4": any;
|
|
107
|
+
"5": any;
|
|
108
|
+
"6": any;
|
|
109
|
+
"7": any;
|
|
110
|
+
"8": any;
|
|
111
|
+
};
|
|
112
|
+
radii: {
|
|
113
|
+
"0": any;
|
|
114
|
+
"1": any;
|
|
115
|
+
"2": any;
|
|
116
|
+
"3": any;
|
|
117
|
+
round: any;
|
|
118
|
+
};
|
|
119
|
+
shadows: {
|
|
120
|
+
"0": any;
|
|
121
|
+
"1": any;
|
|
122
|
+
"2": any;
|
|
123
|
+
"3": any;
|
|
124
|
+
};
|
|
125
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
126
|
+
bg: (value: {
|
|
127
|
+
readonly [$$PropertyValue]: "background";
|
|
128
|
+
}) => {
|
|
129
|
+
background: {
|
|
130
|
+
readonly [$$PropertyValue]: "background";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
inset: (value: string | number | {
|
|
134
|
+
readonly [$$ScaleValue]: "space";
|
|
135
|
+
}) => {
|
|
136
|
+
top: string | number | {
|
|
137
|
+
readonly [$$ScaleValue]: "space";
|
|
138
|
+
};
|
|
139
|
+
right: string | number | {
|
|
140
|
+
readonly [$$ScaleValue]: "space";
|
|
141
|
+
};
|
|
142
|
+
bottom: string | number | {
|
|
143
|
+
readonly [$$ScaleValue]: "space";
|
|
144
|
+
};
|
|
145
|
+
left: string | number | {
|
|
146
|
+
readonly [$$ScaleValue]: "space";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
size: (value: string | number | {
|
|
150
|
+
readonly [$$ScaleValue]: "size";
|
|
151
|
+
}) => {
|
|
152
|
+
height: string | number | {
|
|
153
|
+
readonly [$$ScaleValue]: "size";
|
|
154
|
+
};
|
|
155
|
+
width: string | number | {
|
|
156
|
+
readonly [$$ScaleValue]: "size";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
p: (value: string | number | {
|
|
160
|
+
readonly [$$ScaleValue]: "space";
|
|
161
|
+
}) => {
|
|
162
|
+
padding: string | number | {
|
|
163
|
+
readonly [$$ScaleValue]: "space";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
pt: (value: string | number | {
|
|
167
|
+
readonly [$$ScaleValue]: "space";
|
|
168
|
+
}) => {
|
|
169
|
+
paddingTop: string | number | {
|
|
170
|
+
readonly [$$ScaleValue]: "space";
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
pr: (value: string | number | {
|
|
174
|
+
readonly [$$ScaleValue]: "space";
|
|
175
|
+
}) => {
|
|
176
|
+
paddingRight: string | number | {
|
|
177
|
+
readonly [$$ScaleValue]: "space";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
pb: (value: string | number | {
|
|
181
|
+
readonly [$$ScaleValue]: "space";
|
|
182
|
+
}) => {
|
|
183
|
+
paddingBottom: string | number | {
|
|
184
|
+
readonly [$$ScaleValue]: "space";
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
pl: (value: string | number | {
|
|
188
|
+
readonly [$$ScaleValue]: "space";
|
|
189
|
+
}) => {
|
|
190
|
+
paddingLeft: string | number | {
|
|
191
|
+
readonly [$$ScaleValue]: "space";
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
px: (value: string | number | {
|
|
195
|
+
readonly [$$ScaleValue]: "space";
|
|
196
|
+
}) => {
|
|
197
|
+
paddingLeft: string | number | {
|
|
198
|
+
readonly [$$ScaleValue]: "space";
|
|
199
|
+
};
|
|
200
|
+
paddingRight: string | number | {
|
|
201
|
+
readonly [$$ScaleValue]: "space";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
py: (value: string | number | {
|
|
205
|
+
readonly [$$ScaleValue]: "space";
|
|
206
|
+
}) => {
|
|
207
|
+
paddingTop: string | number | {
|
|
208
|
+
readonly [$$ScaleValue]: "space";
|
|
209
|
+
};
|
|
210
|
+
paddingBottom: string | number | {
|
|
211
|
+
readonly [$$ScaleValue]: "space";
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
m: (value: string | number | {
|
|
215
|
+
readonly [$$ScaleValue]: "space";
|
|
216
|
+
}) => {
|
|
217
|
+
margin: string | number | {
|
|
218
|
+
readonly [$$ScaleValue]: "space";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
mt: (value: string | number | {
|
|
222
|
+
readonly [$$ScaleValue]: "space";
|
|
223
|
+
}) => {
|
|
224
|
+
marginTop: string | number | {
|
|
225
|
+
readonly [$$ScaleValue]: "space";
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
mr: (value: string | number | {
|
|
229
|
+
readonly [$$ScaleValue]: "space";
|
|
230
|
+
}) => {
|
|
231
|
+
marginRight: string | number | {
|
|
232
|
+
readonly [$$ScaleValue]: "space";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
mb: (value: string | number | {
|
|
236
|
+
readonly [$$ScaleValue]: "space";
|
|
237
|
+
}) => {
|
|
238
|
+
marginBottom: string | number | {
|
|
239
|
+
readonly [$$ScaleValue]: "space";
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
ml: (value: string | number | {
|
|
243
|
+
readonly [$$ScaleValue]: "space";
|
|
244
|
+
}) => {
|
|
245
|
+
marginLeft: string | number | {
|
|
246
|
+
readonly [$$ScaleValue]: "space";
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
mx: (value: string | number | {
|
|
250
|
+
readonly [$$ScaleValue]: "space";
|
|
251
|
+
}) => {
|
|
252
|
+
marginLeft: string | number | {
|
|
253
|
+
readonly [$$ScaleValue]: "space";
|
|
254
|
+
};
|
|
255
|
+
marginRight: string | number | {
|
|
256
|
+
readonly [$$ScaleValue]: "space";
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
my: (value: string | number | {
|
|
260
|
+
readonly [$$ScaleValue]: "space";
|
|
261
|
+
}) => {
|
|
262
|
+
marginTop: string | number | {
|
|
263
|
+
readonly [$$ScaleValue]: "space";
|
|
264
|
+
};
|
|
265
|
+
marginBottom: string | number | {
|
|
266
|
+
readonly [$$ScaleValue]: "space";
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
}>>;
|
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ValidationOptions } from '../../components/form';
|
|
3
3
|
import { CSS } from '../../stitches';
|
|
4
4
|
import { RadioField } from './RadioField';
|
|
5
|
-
declare type
|
|
5
|
+
declare type RadioButtonFieldProps = {
|
|
6
6
|
css?: CSS;
|
|
7
7
|
defaultValue?: string;
|
|
8
8
|
label: string;
|
|
@@ -11,7 +11,7 @@ declare type RadioGroupFieldProps = {
|
|
|
11
11
|
description?: string;
|
|
12
12
|
validation?: ValidationOptions;
|
|
13
13
|
};
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const RadioButtonField: React.FC<RadioButtonFieldProps> & {
|
|
15
15
|
Item: typeof RadioField;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createElement as o}from"react";import{useFormContext as r,Controller as e}from"react-hook-form";import{Description as t}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as i}from"../form/useFieldError.js";import{Label as a}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as l}from"../radio-button/RadioButtonGroup.js";import{ValidationError as m}from"../validation-error/ValidationError.js";import{styled as s}from"../../stitches.js";import{RadioField as n}from"./RadioField.js";const d=s("fieldset",{all:"unset"}),u=({children:s,css:n,direction:u="column",defaultValue:p,description:c,label:f,name:j,validation:b})=>{const{control:h}=r(),{error:v}=i(j);return o(d,{css:n},o(a,{as:"legend",css:{p:0,mb:"$3"},required:Boolean(null==b?void 0:b.required)},f),c&&o(t,{css:{mb:"$3"}},c),o(e,{control:h,name:j,rules:b,defaultValue:p,render:({onChange:r,value:e})=>o(l,{direction:u,defaultValue:p,onValueChange:r,value:e},s)}),v&&o(m,{css:{mt:"$2"}},v))};u.Item=n,u.displayName="RadioButtonField";export{u as RadioButtonField};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ValidationOptions } from '../../components/form';
|
|
3
|
-
import { RadioButton } from '../../components/radio';
|
|
3
|
+
import { RadioButton } from '../../components/radio-button';
|
|
4
4
|
import { CSS } from '../../stitches';
|
|
5
5
|
declare type RadioFieldProps = {
|
|
6
6
|
css?: CSS;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const r=["css","label","value"];import{createElement as e}from"react";import"../field-wrapper/FieldWrapper.js";import{InlineFieldWrapper as t}from"../field-wrapper/InlineFieldWrapper.js";import{RadioButton as o}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";const i=i=>{let{css:a,label:l,value:n}=i,p=function(r,e){if(null==r)return{};var t,o,i={},a=Object.keys(r);for(o=0;o<a.length;o++)t=a[o],e.indexOf(t)>=0||(i[t]=r[t]);return i}(i,r);return e(t,{css:a,label:l},e(o,Object.assign({value:n},p)))};i.displayName="RadioField";export{i as RadioField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioButtonField } from './RadioButtonField';
|