@atom-learning/components 4.1.4 → 4.2.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/dist/components/index.d.ts +1 -0
- package/dist/components/pagination/PaginationPopover.js +1 -1
- package/dist/components/pagination/PaginationPopover.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControl.d.ts +2579 -0
- package/dist/components/segmented-control/SegmentedControl.js +2 -0
- package/dist/components/segmented-control/SegmentedControl.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControlBadge.d.ts +3 -0
- package/dist/components/segmented-control/SegmentedControlBadge.js +2 -0
- package/dist/components/segmented-control/SegmentedControlBadge.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControlContent.d.ts +365 -0
- package/dist/components/segmented-control/SegmentedControlContent.js +2 -0
- package/dist/components/segmented-control/SegmentedControlContent.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControlContext.d.ts +13 -0
- package/dist/components/segmented-control/SegmentedControlContext.js +2 -0
- package/dist/components/segmented-control/SegmentedControlContext.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControlDescription.d.ts +743 -0
- package/dist/components/segmented-control/SegmentedControlDescription.js +2 -0
- package/dist/components/segmented-control/SegmentedControlDescription.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControlHeading.d.ts +369 -0
- package/dist/components/segmented-control/SegmentedControlHeading.js +2 -0
- package/dist/components/segmented-control/SegmentedControlHeading.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControlIcon.d.ts +3 -0
- package/dist/components/segmented-control/SegmentedControlIcon.js +2 -0
- package/dist/components/segmented-control/SegmentedControlIcon.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControlItem.d.ts +738 -0
- package/dist/components/segmented-control/SegmentedControlItem.js +2 -0
- package/dist/components/segmented-control/SegmentedControlItem.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControlItemList.d.ts +3 -0
- package/dist/components/segmented-control/SegmentedControlItemList.js +2 -0
- package/dist/components/segmented-control/SegmentedControlItemList.js.map +1 -0
- package/dist/components/segmented-control/SegmentedControlRoot.d.ts +1839 -0
- package/dist/components/segmented-control/SegmentedControlRoot.js +2 -0
- package/dist/components/segmented-control/SegmentedControlRoot.js.map +1 -0
- package/dist/components/segmented-control/index.d.ts +1 -0
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{SegmentedControlBadge as o}from"./SegmentedControlBadge.js";import{SegmentedControlContent as t}from"./SegmentedControlContent.js";import{SegmentedControlDescription as e}from"./SegmentedControlDescription.js";import{SegmentedControlHeading as m}from"./SegmentedControlHeading.js";import{SegmentedControlIcon as n}from"./SegmentedControlIcon.js";import{SegmentedControlItem as r}from"./SegmentedControlItem.js";import{SegmentedControlItemList as i}from"./SegmentedControlItemList.js";import{SegmentedControlRoot as d}from"./SegmentedControlRoot.js";const g={Root:d,Item:r,Heading:m,Description:e,Icon:n,Content:t,Badge:o,ItemList:i};export{g as SegmentedControl};
|
|
2
|
+
//# sourceMappingURL=SegmentedControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.js","sources":["../../../src/components/segmented-control/SegmentedControl.tsx"],"sourcesContent":["import { SegmentedControlBadge } from './SegmentedControlBadge'\nimport { SegmentedControlContent } from './SegmentedControlContent'\nimport { SegmentedControlDescription } from './SegmentedControlDescription'\nimport { SegmentedControlHeading } from './SegmentedControlHeading'\nimport { SegmentedControlIcon } from './SegmentedControlIcon'\nimport { SegmentedControlItem } from './SegmentedControlItem'\nimport { SegmentedControlItemList } from './SegmentedControlItemList'\nimport { SegmentedControlRoot } from './SegmentedControlRoot'\n\nexport const SegmentedControl = {\n Root: SegmentedControlRoot,\n Item: SegmentedControlItem,\n Heading: SegmentedControlHeading,\n Description: SegmentedControlDescription,\n Icon: SegmentedControlIcon,\n Content: SegmentedControlContent,\n Badge: SegmentedControlBadge,\n ItemList: SegmentedControlItemList\n}\n"],"names":["SegmentedControl","SegmentedControlRoot","SegmentedControlItem","SegmentedControlHeading","SegmentedControlDescription","SegmentedControlIcon","SegmentedControlContent","SegmentedControlBadge","SegmentedControlItemList"],"mappings":"4iBASa,MAAAA,EAAmB,CAC9B,KAAMC,EACN,KAAMC,EACN,QAASC,EACT,YAAaC,EACb,KAAMC,EACN,QAASC,EACT,MAAOC,EACP,SAAUC,CACZ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as r from"react";import{Badge as s}from"../badge/Badge.js";import{useSegmentedControl as m}from"./SegmentedControlContext.js";const n={sm:"xs",md:"xs",lg:"sm"},c=({css:e,...o})=>{const{size:t}=m();return r.createElement(s,{...o,css:{border:"none",...e,fontWeight:"normal"},size:n[t]})};export{c as SegmentedControlBadge};
|
|
2
|
+
//# sourceMappingURL=SegmentedControlBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControlBadge.js","sources":["../../../src/components/segmented-control/SegmentedControlBadge.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Badge } from '../badge'\nimport { useSegmentedControl } from './SegmentedControlContext'\n\nconst badgeSizeMap = {\n sm: 'xs',\n md: 'xs',\n lg: 'sm'\n}\n\nexport const SegmentedControlBadge = ({\n css,\n ...props\n}: Omit<React.ComponentProps<typeof Badge>, 'size'>): JSX.Element => {\n const { size } = useSegmentedControl()\n return (\n <Badge\n {...props}\n css={{ border: 'none', ...css, fontWeight: 'normal' }}\n size={badgeSizeMap[size as string]}\n />\n )\n}\n"],"names":["badgeSizeMap","SegmentedControlBadge","css","props","size","useSegmentedControl","React","Badge"],"mappings":"qIAKA,MAAMA,EAAe,CACnB,GAAI,KACJ,GAAI,KACJ,GAAI,IACN,EAEaC,EAAwB,CAAC,CACpC,IAAAC,KACGC,CACL,IAAqE,CACnE,KAAM,CAAE,KAAAC,CAAK,EAAIC,EAAoB,EACrC,OACEC,EAAA,cAACC,EAAA,CACE,GAAGJ,EACJ,IAAK,CAAE,OAAQ,OAAQ,GAAGD,EAAK,WAAY,QAAS,EACpD,KAAMF,EAAaI,EAAAA,CACrB,CAEJ"}
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const SegmentedControlContent: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & 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("@atom-learning/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
|
+
textBold: string;
|
|
21
|
+
textRegular: string;
|
|
22
|
+
textSubtle: string;
|
|
23
|
+
textMinimal: string;
|
|
24
|
+
background: string;
|
|
25
|
+
backgroundAccent: string;
|
|
26
|
+
grey100: string;
|
|
27
|
+
grey200: string;
|
|
28
|
+
grey300: string;
|
|
29
|
+
grey400: string;
|
|
30
|
+
grey500: string;
|
|
31
|
+
grey600: string;
|
|
32
|
+
grey700: string;
|
|
33
|
+
grey800: string;
|
|
34
|
+
grey900: string;
|
|
35
|
+
grey1000: string;
|
|
36
|
+
grey1100: string;
|
|
37
|
+
grey1200: string;
|
|
38
|
+
blue100: string;
|
|
39
|
+
blue200: string;
|
|
40
|
+
blue300: string;
|
|
41
|
+
blue400: string;
|
|
42
|
+
blue500: string;
|
|
43
|
+
blue600: string;
|
|
44
|
+
blue700: string;
|
|
45
|
+
blue800: string;
|
|
46
|
+
blue900: string;
|
|
47
|
+
blue1000: string;
|
|
48
|
+
blue1100: string;
|
|
49
|
+
blue1200: string;
|
|
50
|
+
pink100: string;
|
|
51
|
+
pink200: string;
|
|
52
|
+
pink300: string;
|
|
53
|
+
pink400: string;
|
|
54
|
+
pink500: string;
|
|
55
|
+
pink600: string;
|
|
56
|
+
pink700: string;
|
|
57
|
+
pink800: string;
|
|
58
|
+
pink900: string;
|
|
59
|
+
pink1000: string;
|
|
60
|
+
pink1100: string;
|
|
61
|
+
pink1200: string;
|
|
62
|
+
purple100: string;
|
|
63
|
+
purple200: string;
|
|
64
|
+
purple300: string;
|
|
65
|
+
purple400: string;
|
|
66
|
+
purple500: string;
|
|
67
|
+
purple600: string;
|
|
68
|
+
purple700: string;
|
|
69
|
+
purple800: string;
|
|
70
|
+
purple900: string;
|
|
71
|
+
purple1000: string;
|
|
72
|
+
purple1100: string;
|
|
73
|
+
purple1200: string;
|
|
74
|
+
cyan100: string;
|
|
75
|
+
cyan200: string;
|
|
76
|
+
cyan300: string;
|
|
77
|
+
cyan400: string;
|
|
78
|
+
cyan500: string;
|
|
79
|
+
cyan600: string;
|
|
80
|
+
cyan700: string;
|
|
81
|
+
cyan800: string;
|
|
82
|
+
cyan900: string;
|
|
83
|
+
cyan1000: string;
|
|
84
|
+
cyan1100: string;
|
|
85
|
+
cyan1200: string;
|
|
86
|
+
green100: string;
|
|
87
|
+
green200: string;
|
|
88
|
+
green300: string;
|
|
89
|
+
green400: string;
|
|
90
|
+
green500: string;
|
|
91
|
+
green600: string;
|
|
92
|
+
green700: string;
|
|
93
|
+
green800: string;
|
|
94
|
+
green900: string;
|
|
95
|
+
green1000: string;
|
|
96
|
+
green1100: string;
|
|
97
|
+
green1200: string;
|
|
98
|
+
magenta100: string;
|
|
99
|
+
magenta200: string;
|
|
100
|
+
magenta300: string;
|
|
101
|
+
magenta400: string;
|
|
102
|
+
magenta500: string;
|
|
103
|
+
magenta600: string;
|
|
104
|
+
magenta700: string;
|
|
105
|
+
magenta800: string;
|
|
106
|
+
magenta900: string;
|
|
107
|
+
magenta1000: string;
|
|
108
|
+
magenta1100: string;
|
|
109
|
+
magenta1200: string;
|
|
110
|
+
red100: string;
|
|
111
|
+
red200: string;
|
|
112
|
+
red300: string;
|
|
113
|
+
red400: string;
|
|
114
|
+
red500: string;
|
|
115
|
+
red600: string;
|
|
116
|
+
red700: string;
|
|
117
|
+
red800: string;
|
|
118
|
+
red900: string;
|
|
119
|
+
red1000: string;
|
|
120
|
+
red1100: string;
|
|
121
|
+
red1200: string;
|
|
122
|
+
teal100: string;
|
|
123
|
+
teal200: string;
|
|
124
|
+
teal300: string;
|
|
125
|
+
teal400: string;
|
|
126
|
+
teal500: string;
|
|
127
|
+
teal600: string;
|
|
128
|
+
teal700: string;
|
|
129
|
+
teal800: string;
|
|
130
|
+
teal900: string;
|
|
131
|
+
teal1000: string;
|
|
132
|
+
teal1100: string;
|
|
133
|
+
teal1200: string;
|
|
134
|
+
orange100: string;
|
|
135
|
+
orange200: string;
|
|
136
|
+
orange300: string;
|
|
137
|
+
orange400: string;
|
|
138
|
+
orange500: string;
|
|
139
|
+
orange600: string;
|
|
140
|
+
orange700: string;
|
|
141
|
+
orange800: string;
|
|
142
|
+
orange900: string;
|
|
143
|
+
orange1000: string;
|
|
144
|
+
orange1100: string;
|
|
145
|
+
orange1200: string;
|
|
146
|
+
yellow100: string;
|
|
147
|
+
yellow200: string;
|
|
148
|
+
yellow300: string;
|
|
149
|
+
yellow400: string;
|
|
150
|
+
yellow500: string;
|
|
151
|
+
yellow600: string;
|
|
152
|
+
yellow700: string;
|
|
153
|
+
yellow800: string;
|
|
154
|
+
yellow900: string;
|
|
155
|
+
yellow1000: string;
|
|
156
|
+
yellow1100: string;
|
|
157
|
+
yellow1200: string;
|
|
158
|
+
lime100: string;
|
|
159
|
+
lime200: string;
|
|
160
|
+
lime300: string;
|
|
161
|
+
lime400: string;
|
|
162
|
+
lime500: string;
|
|
163
|
+
lime600: string;
|
|
164
|
+
lime700: string;
|
|
165
|
+
lime800: string;
|
|
166
|
+
lime900: string;
|
|
167
|
+
lime1000: string;
|
|
168
|
+
lime1100: string;
|
|
169
|
+
lime1200: string;
|
|
170
|
+
lapis100: string;
|
|
171
|
+
lapis200: string;
|
|
172
|
+
lapis300: string;
|
|
173
|
+
lapis400: string;
|
|
174
|
+
lapis500: string;
|
|
175
|
+
lapis600: string;
|
|
176
|
+
lapis700: string;
|
|
177
|
+
lapis800: string;
|
|
178
|
+
lapis900: string;
|
|
179
|
+
lapis1000: string;
|
|
180
|
+
lapis1100: string;
|
|
181
|
+
lapis1200: string;
|
|
182
|
+
maroon100: string;
|
|
183
|
+
maroon200: string;
|
|
184
|
+
maroon300: string;
|
|
185
|
+
maroon400: string;
|
|
186
|
+
maroon500: string;
|
|
187
|
+
maroon600: string;
|
|
188
|
+
maroon700: string;
|
|
189
|
+
maroon800: string;
|
|
190
|
+
maroon900: string;
|
|
191
|
+
maroon1000: string;
|
|
192
|
+
maroon1100: string;
|
|
193
|
+
maroon1200: string;
|
|
194
|
+
marsh100: string;
|
|
195
|
+
marsh200: string;
|
|
196
|
+
marsh300: string;
|
|
197
|
+
marsh400: string;
|
|
198
|
+
marsh500: string;
|
|
199
|
+
marsh600: string;
|
|
200
|
+
marsh700: string;
|
|
201
|
+
marsh800: string;
|
|
202
|
+
marsh900: string;
|
|
203
|
+
marsh1000: string;
|
|
204
|
+
marsh1100: string;
|
|
205
|
+
marsh1200: string;
|
|
206
|
+
alpha100: string;
|
|
207
|
+
alpha150: string;
|
|
208
|
+
alpha200: string;
|
|
209
|
+
alpha250: string;
|
|
210
|
+
alpha600: string;
|
|
211
|
+
infoLight: string;
|
|
212
|
+
info: string;
|
|
213
|
+
infoMid: string;
|
|
214
|
+
infoDark: string;
|
|
215
|
+
successLight: string;
|
|
216
|
+
success: string;
|
|
217
|
+
successMid: string;
|
|
218
|
+
successDark: string;
|
|
219
|
+
dangerLight: string;
|
|
220
|
+
danger: string;
|
|
221
|
+
dangerMid: string;
|
|
222
|
+
dangerDark: string;
|
|
223
|
+
warningLight: string;
|
|
224
|
+
warning: string;
|
|
225
|
+
warningMid: string;
|
|
226
|
+
warningDark: string;
|
|
227
|
+
warningText: string;
|
|
228
|
+
subjectEnglish: string;
|
|
229
|
+
subjectMaths: string;
|
|
230
|
+
subjectScience: string;
|
|
231
|
+
subjectVerbalReasoning: string;
|
|
232
|
+
subjectNonVerbalReasoning: string;
|
|
233
|
+
subjectCreativeWriting: string;
|
|
234
|
+
subjectExamSkills: string;
|
|
235
|
+
glBlueLight: string;
|
|
236
|
+
glBluePrimary: string;
|
|
237
|
+
glBlueDark: string;
|
|
238
|
+
primary100: string;
|
|
239
|
+
primary200: string;
|
|
240
|
+
primary300: string;
|
|
241
|
+
primary400: string;
|
|
242
|
+
primary500: string;
|
|
243
|
+
primary600: string;
|
|
244
|
+
primary700: string;
|
|
245
|
+
primary800: string;
|
|
246
|
+
primary900: string;
|
|
247
|
+
primary1000: string;
|
|
248
|
+
primary1100: string;
|
|
249
|
+
primary1200: string;
|
|
250
|
+
};
|
|
251
|
+
space: {
|
|
252
|
+
"0": string;
|
|
253
|
+
"1": string;
|
|
254
|
+
"2": string;
|
|
255
|
+
"3": string;
|
|
256
|
+
"4": string;
|
|
257
|
+
"5": string;
|
|
258
|
+
"6": string;
|
|
259
|
+
"7": string;
|
|
260
|
+
"8": string;
|
|
261
|
+
"9": string;
|
|
262
|
+
"24": string;
|
|
263
|
+
};
|
|
264
|
+
fontSizes: {
|
|
265
|
+
xs: string;
|
|
266
|
+
sm: string;
|
|
267
|
+
md: string;
|
|
268
|
+
lg: string;
|
|
269
|
+
xl: string;
|
|
270
|
+
"2xl": string;
|
|
271
|
+
"3xl": string;
|
|
272
|
+
"4xl": string;
|
|
273
|
+
};
|
|
274
|
+
fonts: {
|
|
275
|
+
sans: string;
|
|
276
|
+
mono: string;
|
|
277
|
+
display: string;
|
|
278
|
+
body: string;
|
|
279
|
+
};
|
|
280
|
+
sizes: {
|
|
281
|
+
"0": string;
|
|
282
|
+
"1": string;
|
|
283
|
+
"2": string;
|
|
284
|
+
"3": string;
|
|
285
|
+
"4": string;
|
|
286
|
+
"5": string;
|
|
287
|
+
"6": string;
|
|
288
|
+
"7": string;
|
|
289
|
+
"8": string;
|
|
290
|
+
};
|
|
291
|
+
radii: {
|
|
292
|
+
"0": string;
|
|
293
|
+
"1": string;
|
|
294
|
+
"2": string;
|
|
295
|
+
"3": string;
|
|
296
|
+
round: string;
|
|
297
|
+
};
|
|
298
|
+
shadows: {
|
|
299
|
+
"0": string;
|
|
300
|
+
"1": string;
|
|
301
|
+
"2": string;
|
|
302
|
+
"3": string;
|
|
303
|
+
};
|
|
304
|
+
ratios: {
|
|
305
|
+
"16-9": string;
|
|
306
|
+
"3-2": string;
|
|
307
|
+
"4-3": string;
|
|
308
|
+
"1-1": string;
|
|
309
|
+
"3-4": string;
|
|
310
|
+
};
|
|
311
|
+
}, import("@atom-learning/stitches-react/types/config").DefaultThemeMap, {
|
|
312
|
+
bg: (value: import("@atom-learning/stitches-react").PropertyValue<"background">) => {
|
|
313
|
+
background: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">;
|
|
314
|
+
};
|
|
315
|
+
size: (value: import("@atom-learning/stitches-react").ScaleValue<"size"> | number | string) => {
|
|
316
|
+
height: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
317
|
+
width: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
318
|
+
};
|
|
319
|
+
p: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
320
|
+
padding: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
321
|
+
};
|
|
322
|
+
pt: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
323
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
324
|
+
};
|
|
325
|
+
pr: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
326
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
327
|
+
};
|
|
328
|
+
pb: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
329
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
330
|
+
};
|
|
331
|
+
pl: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
332
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
333
|
+
};
|
|
334
|
+
px: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
335
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
336
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
337
|
+
};
|
|
338
|
+
py: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
339
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
340
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
341
|
+
};
|
|
342
|
+
m: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
343
|
+
margin: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
344
|
+
};
|
|
345
|
+
mt: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
346
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
347
|
+
};
|
|
348
|
+
mr: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
349
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
350
|
+
};
|
|
351
|
+
mb: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
352
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
353
|
+
};
|
|
354
|
+
ml: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
355
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
356
|
+
};
|
|
357
|
+
mx: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
358
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
359
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
360
|
+
};
|
|
361
|
+
my: (value: import("@atom-learning/stitches-react").ScaleValue<"space"> | number | string) => {
|
|
362
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
363
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
364
|
+
};
|
|
365
|
+
}>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControlContent.js","sources":["../../../src/components/segmented-control/SegmentedControlContent.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Tabs } from '../tabs'\n\nexport const SegmentedControlContent = Tabs.Content\n"],"names":["SegmentedControlContent","Tabs"],"mappings":"uCAIO,MAAMA,EAA0BC,EAAK"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SegmentedControlRootProps } from './SegmentedControlRoot';
|
|
3
|
+
export type SegmentedControlTheme = 'primary' | 'marsh';
|
|
4
|
+
interface SegmentedControlContextValue {
|
|
5
|
+
size: SegmentedControlRootProps['size'];
|
|
6
|
+
theme: SegmentedControlTheme;
|
|
7
|
+
}
|
|
8
|
+
interface SegmentedControlProviderProps extends SegmentedControlContextValue {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const SegmentedControlProvider: ({ size, theme, children }: SegmentedControlProviderProps) => JSX.Element;
|
|
12
|
+
export declare const useSegmentedControl: () => SegmentedControlContextValue;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as e from"react";const o=e.createContext({size:"md",theme:"primary"}),s=({size:t,theme:r,children:n})=>{const m=e.useMemo(()=>({size:t,theme:r}),[t,r]);return e.createElement(o.Provider,{value:m},n)},i=()=>e.useContext(o);export{s as SegmentedControlProvider,i as useSegmentedControl};
|
|
2
|
+
//# sourceMappingURL=SegmentedControlContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControlContext.js","sources":["../../../src/components/segmented-control/SegmentedControlContext.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport type { SegmentedControlRootProps } from './SegmentedControlRoot'\n\nexport type SegmentedControlTheme = 'primary' | 'marsh'\n\ninterface SegmentedControlContextValue {\n size: SegmentedControlRootProps['size']\n theme: SegmentedControlTheme\n}\n\ninterface SegmentedControlProviderProps extends SegmentedControlContextValue {\n children: React.ReactNode\n}\n\nconst SegmentedControlContext =\n React.createContext<SegmentedControlContextValue>({\n size: 'md',\n theme: 'primary'\n })\n\nexport const SegmentedControlProvider = ({\n size,\n theme,\n children\n}: SegmentedControlProviderProps): JSX.Element => {\n const value = React.useMemo<SegmentedControlContextValue>(\n () => ({ size, theme }),\n [size, theme]\n )\n\n return (\n <SegmentedControlContext.Provider value={value}>\n {children}\n </SegmentedControlContext.Provider>\n )\n}\n\nexport const useSegmentedControl = (): SegmentedControlContextValue =>\n React.useContext(SegmentedControlContext)\n"],"names":["SegmentedControlContext","React","SegmentedControlProvider","size","theme","children","value","useSegmentedControl"],"mappings":"wBAeA,MAAMA,EACJC,EAAM,cAA4C,CAChD,KAAM,KACN,MAAO,SACT,CAAC,EAEUC,EAA2B,CAAC,CACvC,KAAAC,EACA,MAAAC,EACA,SAAAC,CACF,IAAkD,CAChD,MAAMC,EAAQL,EAAM,QAClB,KAAO,CAAE,KAAAE,EAAM,MAAAC,CAAM,GACrB,CAACD,EAAMC,CAAK,CACd,EAEA,OACEH,EAAA,cAACD,EAAwB,SAAxB,CAAiC,MAAOM,CACtCD,EAAAA,CACH,CAEJ,EAEaE,EAAsB,IACjCN,EAAM,WAAWD,CAAuB"}
|