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