@codecademy/gamut 67.6.4-alpha.94f59d.0 → 67.6.4-alpha.a08632.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/Anchor/index.d.ts +60 -12
- package/dist/Badge/index.d.ts +60 -12
- package/dist/Box/props.d.ts +60 -12
- package/dist/Button/shared/styles.d.ts +60 -12
- package/dist/Card/elements.d.ts +180 -36
- package/dist/Form/elements/Form.d.ts +60 -12
- package/dist/InternalFloatingCard/InternalFloatingCard.d.ts +30 -6
- package/dist/Layout/Column.d.ts +60 -12
- package/dist/Layout/LayoutGrid.d.ts +60 -12
- package/dist/List/elements.d.ts +120 -24
- package/dist/Menu/elements.d.ts +60 -12
- package/dist/Pagination/AnimatedPaginationButtons.d.ts +60 -12
- package/dist/Pagination/utils.d.ts +60 -12
- package/dist/Tabs/props.d.ts +60 -12
- package/dist/Tag/types.d.ts +60 -12
- package/dist/Toggle/elements.d.ts +120 -24
- package/dist/Typography/Text.d.ts +60 -12
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +7 -7
- package/dist/DetailedCode/DetailedCodeBody/index.d.ts +0 -3
- package/dist/DetailedCode/DetailedCodeBody/index.js +0 -17
- package/dist/DetailedCode/DetailedCodeButton/index.d.ts +0 -3
- package/dist/DetailedCode/DetailedCodeButton/index.js +0 -65
- package/dist/DetailedCode/elements.d.ts +0 -37
- package/dist/DetailedCode/elements.js +0 -37
- package/dist/DetailedCode/index.d.ts +0 -3
- package/dist/DetailedCode/index.js +0 -43
- package/dist/DetailedCode/types.d.ts +0 -19
- package/dist/DetailedCode/types.js +0 -1
|
@@ -31,29 +31,53 @@ export declare const ToggleTrack: import("@emotion/styled").StyledComponent<{
|
|
|
31
31
|
}>;
|
|
32
32
|
px?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
33
33
|
readonly property: "padding";
|
|
34
|
-
readonly properties:
|
|
34
|
+
readonly properties: {
|
|
35
|
+
readonly physical: readonly ["paddingLeft", "paddingRight"];
|
|
36
|
+
readonly logical: readonly ["paddingInlineStart", "paddingInlineEnd"];
|
|
37
|
+
};
|
|
35
38
|
readonly scale: "spacing";
|
|
39
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
36
40
|
}>;
|
|
37
41
|
py?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
38
42
|
readonly property: "padding";
|
|
39
|
-
readonly properties:
|
|
43
|
+
readonly properties: {
|
|
44
|
+
readonly physical: readonly ["paddingTop", "paddingBottom"];
|
|
45
|
+
readonly logical: readonly ["paddingBlockStart", "paddingBlockEnd"];
|
|
46
|
+
};
|
|
40
47
|
readonly scale: "spacing";
|
|
48
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
41
49
|
}>;
|
|
42
50
|
pt?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
43
|
-
readonly property:
|
|
51
|
+
readonly property: {
|
|
52
|
+
readonly physical: "paddingTop";
|
|
53
|
+
readonly logical: "paddingBlockStart";
|
|
54
|
+
};
|
|
44
55
|
readonly scale: "spacing";
|
|
56
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
45
57
|
}>;
|
|
46
58
|
pb?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
47
|
-
readonly property:
|
|
59
|
+
readonly property: {
|
|
60
|
+
readonly physical: "paddingBottom";
|
|
61
|
+
readonly logical: "paddingBlockEnd";
|
|
62
|
+
};
|
|
48
63
|
readonly scale: "spacing";
|
|
64
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
49
65
|
}>;
|
|
50
66
|
pr?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
51
|
-
readonly property:
|
|
67
|
+
readonly property: {
|
|
68
|
+
readonly physical: "paddingRight";
|
|
69
|
+
readonly logical: "paddingInlineEnd";
|
|
70
|
+
};
|
|
52
71
|
readonly scale: "spacing";
|
|
72
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
53
73
|
}>;
|
|
54
74
|
pl?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
55
|
-
readonly property:
|
|
75
|
+
readonly property: {
|
|
76
|
+
readonly physical: "paddingLeft";
|
|
77
|
+
readonly logical: "paddingInlineStart";
|
|
78
|
+
};
|
|
56
79
|
readonly scale: "spacing";
|
|
80
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
57
81
|
}>;
|
|
58
82
|
m?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
59
83
|
readonly property: "margin";
|
|
@@ -61,29 +85,53 @@ export declare const ToggleTrack: import("@emotion/styled").StyledComponent<{
|
|
|
61
85
|
}>;
|
|
62
86
|
mx?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
63
87
|
readonly property: "margin";
|
|
64
|
-
readonly properties:
|
|
88
|
+
readonly properties: {
|
|
89
|
+
readonly physical: readonly ["marginLeft", "marginRight"];
|
|
90
|
+
readonly logical: readonly ["marginInlineStart", "marginInlineEnd"];
|
|
91
|
+
};
|
|
92
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
65
93
|
readonly scale: "spacing";
|
|
66
94
|
}>;
|
|
67
95
|
my?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
68
96
|
readonly property: "margin";
|
|
69
|
-
readonly properties:
|
|
97
|
+
readonly properties: {
|
|
98
|
+
readonly physical: readonly ["marginTop", "marginBottom"];
|
|
99
|
+
readonly logical: readonly ["marginBlockStart", "marginBlockEnd"];
|
|
100
|
+
};
|
|
101
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
70
102
|
readonly scale: "spacing";
|
|
71
103
|
}>;
|
|
72
104
|
mt?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
73
|
-
readonly property:
|
|
105
|
+
readonly property: {
|
|
106
|
+
readonly physical: "marginTop";
|
|
107
|
+
readonly logical: "marginBlockStart";
|
|
108
|
+
};
|
|
74
109
|
readonly scale: "spacing";
|
|
110
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
75
111
|
}>;
|
|
76
112
|
mb?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
77
|
-
readonly property:
|
|
113
|
+
readonly property: {
|
|
114
|
+
readonly physical: "marginBottom";
|
|
115
|
+
readonly logical: "marginBlockEnd";
|
|
116
|
+
};
|
|
78
117
|
readonly scale: "spacing";
|
|
118
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
79
119
|
}>;
|
|
80
120
|
mr?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
81
|
-
readonly property:
|
|
121
|
+
readonly property: {
|
|
122
|
+
readonly physical: "marginRight";
|
|
123
|
+
readonly logical: "marginInlineEnd";
|
|
124
|
+
};
|
|
82
125
|
readonly scale: "spacing";
|
|
126
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
83
127
|
}>;
|
|
84
128
|
ml?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
85
|
-
readonly property:
|
|
129
|
+
readonly property: {
|
|
130
|
+
readonly physical: "marginLeft";
|
|
131
|
+
readonly logical: "marginInlineStart";
|
|
132
|
+
};
|
|
86
133
|
readonly scale: "spacing";
|
|
134
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
87
135
|
}>;
|
|
88
136
|
textColor?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
89
137
|
readonly property: "color";
|
|
@@ -143,29 +191,53 @@ export declare const ToggleLabel: import("@emotion/styled").StyledComponent<{
|
|
|
143
191
|
}>;
|
|
144
192
|
px?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
145
193
|
readonly property: "padding";
|
|
146
|
-
readonly properties:
|
|
194
|
+
readonly properties: {
|
|
195
|
+
readonly physical: readonly ["paddingLeft", "paddingRight"];
|
|
196
|
+
readonly logical: readonly ["paddingInlineStart", "paddingInlineEnd"];
|
|
197
|
+
};
|
|
147
198
|
readonly scale: "spacing";
|
|
199
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
148
200
|
}>;
|
|
149
201
|
py?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
150
202
|
readonly property: "padding";
|
|
151
|
-
readonly properties:
|
|
203
|
+
readonly properties: {
|
|
204
|
+
readonly physical: readonly ["paddingTop", "paddingBottom"];
|
|
205
|
+
readonly logical: readonly ["paddingBlockStart", "paddingBlockEnd"];
|
|
206
|
+
};
|
|
152
207
|
readonly scale: "spacing";
|
|
208
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
153
209
|
}>;
|
|
154
210
|
pt?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
155
|
-
readonly property:
|
|
211
|
+
readonly property: {
|
|
212
|
+
readonly physical: "paddingTop";
|
|
213
|
+
readonly logical: "paddingBlockStart";
|
|
214
|
+
};
|
|
156
215
|
readonly scale: "spacing";
|
|
216
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
157
217
|
}>;
|
|
158
218
|
pb?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
159
|
-
readonly property:
|
|
219
|
+
readonly property: {
|
|
220
|
+
readonly physical: "paddingBottom";
|
|
221
|
+
readonly logical: "paddingBlockEnd";
|
|
222
|
+
};
|
|
160
223
|
readonly scale: "spacing";
|
|
224
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
161
225
|
}>;
|
|
162
226
|
pr?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
163
|
-
readonly property:
|
|
227
|
+
readonly property: {
|
|
228
|
+
readonly physical: "paddingRight";
|
|
229
|
+
readonly logical: "paddingInlineEnd";
|
|
230
|
+
};
|
|
164
231
|
readonly scale: "spacing";
|
|
232
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
165
233
|
}>;
|
|
166
234
|
pl?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
167
|
-
readonly property:
|
|
235
|
+
readonly property: {
|
|
236
|
+
readonly physical: "paddingLeft";
|
|
237
|
+
readonly logical: "paddingInlineStart";
|
|
238
|
+
};
|
|
168
239
|
readonly scale: "spacing";
|
|
240
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
169
241
|
}>;
|
|
170
242
|
m?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
171
243
|
readonly property: "margin";
|
|
@@ -173,28 +245,52 @@ export declare const ToggleLabel: import("@emotion/styled").StyledComponent<{
|
|
|
173
245
|
}>;
|
|
174
246
|
mx?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
175
247
|
readonly property: "margin";
|
|
176
|
-
readonly properties:
|
|
248
|
+
readonly properties: {
|
|
249
|
+
readonly physical: readonly ["marginLeft", "marginRight"];
|
|
250
|
+
readonly logical: readonly ["marginInlineStart", "marginInlineEnd"];
|
|
251
|
+
};
|
|
252
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
177
253
|
readonly scale: "spacing";
|
|
178
254
|
}>;
|
|
179
255
|
my?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
180
256
|
readonly property: "margin";
|
|
181
|
-
readonly properties:
|
|
257
|
+
readonly properties: {
|
|
258
|
+
readonly physical: readonly ["marginTop", "marginBottom"];
|
|
259
|
+
readonly logical: readonly ["marginBlockStart", "marginBlockEnd"];
|
|
260
|
+
};
|
|
261
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
182
262
|
readonly scale: "spacing";
|
|
183
263
|
}>;
|
|
184
264
|
mt?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
185
|
-
readonly property:
|
|
265
|
+
readonly property: {
|
|
266
|
+
readonly physical: "marginTop";
|
|
267
|
+
readonly logical: "marginBlockStart";
|
|
268
|
+
};
|
|
186
269
|
readonly scale: "spacing";
|
|
270
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
187
271
|
}>;
|
|
188
272
|
mb?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
189
|
-
readonly property:
|
|
273
|
+
readonly property: {
|
|
274
|
+
readonly physical: "marginBottom";
|
|
275
|
+
readonly logical: "marginBlockEnd";
|
|
276
|
+
};
|
|
190
277
|
readonly scale: "spacing";
|
|
278
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
191
279
|
}>;
|
|
192
280
|
mr?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
193
|
-
readonly property:
|
|
281
|
+
readonly property: {
|
|
282
|
+
readonly physical: "marginRight";
|
|
283
|
+
readonly logical: "marginInlineEnd";
|
|
284
|
+
};
|
|
194
285
|
readonly scale: "spacing";
|
|
286
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
195
287
|
}>;
|
|
196
288
|
ml?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
197
|
-
readonly property:
|
|
289
|
+
readonly property: {
|
|
290
|
+
readonly physical: "marginLeft";
|
|
291
|
+
readonly logical: "marginInlineStart";
|
|
292
|
+
};
|
|
198
293
|
readonly scale: "spacing";
|
|
294
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
199
295
|
}>;
|
|
200
296
|
}, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
@@ -184,29 +184,53 @@ declare const textProps: import("@codecademy/variance/dist/types/config").Parser
|
|
|
184
184
|
};
|
|
185
185
|
readonly px: {
|
|
186
186
|
readonly property: "padding";
|
|
187
|
-
readonly properties:
|
|
187
|
+
readonly properties: {
|
|
188
|
+
readonly physical: readonly ["paddingLeft", "paddingRight"];
|
|
189
|
+
readonly logical: readonly ["paddingInlineStart", "paddingInlineEnd"];
|
|
190
|
+
};
|
|
188
191
|
readonly scale: "spacing";
|
|
192
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
189
193
|
};
|
|
190
194
|
readonly py: {
|
|
191
195
|
readonly property: "padding";
|
|
192
|
-
readonly properties:
|
|
196
|
+
readonly properties: {
|
|
197
|
+
readonly physical: readonly ["paddingTop", "paddingBottom"];
|
|
198
|
+
readonly logical: readonly ["paddingBlockStart", "paddingBlockEnd"];
|
|
199
|
+
};
|
|
193
200
|
readonly scale: "spacing";
|
|
201
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
194
202
|
};
|
|
195
203
|
readonly pt: {
|
|
196
|
-
readonly property:
|
|
204
|
+
readonly property: {
|
|
205
|
+
readonly physical: "paddingTop";
|
|
206
|
+
readonly logical: "paddingBlockStart";
|
|
207
|
+
};
|
|
197
208
|
readonly scale: "spacing";
|
|
209
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
198
210
|
};
|
|
199
211
|
readonly pb: {
|
|
200
|
-
readonly property:
|
|
212
|
+
readonly property: {
|
|
213
|
+
readonly physical: "paddingBottom";
|
|
214
|
+
readonly logical: "paddingBlockEnd";
|
|
215
|
+
};
|
|
201
216
|
readonly scale: "spacing";
|
|
217
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
202
218
|
};
|
|
203
219
|
readonly pr: {
|
|
204
|
-
readonly property:
|
|
220
|
+
readonly property: {
|
|
221
|
+
readonly physical: "paddingRight";
|
|
222
|
+
readonly logical: "paddingInlineEnd";
|
|
223
|
+
};
|
|
205
224
|
readonly scale: "spacing";
|
|
225
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
206
226
|
};
|
|
207
227
|
readonly pl: {
|
|
208
|
-
readonly property:
|
|
228
|
+
readonly property: {
|
|
229
|
+
readonly physical: "paddingLeft";
|
|
230
|
+
readonly logical: "paddingInlineStart";
|
|
231
|
+
};
|
|
209
232
|
readonly scale: "spacing";
|
|
233
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
210
234
|
};
|
|
211
235
|
readonly m: {
|
|
212
236
|
readonly property: "margin";
|
|
@@ -214,29 +238,53 @@ declare const textProps: import("@codecademy/variance/dist/types/config").Parser
|
|
|
214
238
|
};
|
|
215
239
|
readonly mx: {
|
|
216
240
|
readonly property: "margin";
|
|
217
|
-
readonly properties:
|
|
241
|
+
readonly properties: {
|
|
242
|
+
readonly physical: readonly ["marginLeft", "marginRight"];
|
|
243
|
+
readonly logical: readonly ["marginInlineStart", "marginInlineEnd"];
|
|
244
|
+
};
|
|
245
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
218
246
|
readonly scale: "spacing";
|
|
219
247
|
};
|
|
220
248
|
readonly my: {
|
|
221
249
|
readonly property: "margin";
|
|
222
|
-
readonly properties:
|
|
250
|
+
readonly properties: {
|
|
251
|
+
readonly physical: readonly ["marginTop", "marginBottom"];
|
|
252
|
+
readonly logical: readonly ["marginBlockStart", "marginBlockEnd"];
|
|
253
|
+
};
|
|
254
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
223
255
|
readonly scale: "spacing";
|
|
224
256
|
};
|
|
225
257
|
readonly mt: {
|
|
226
|
-
readonly property:
|
|
258
|
+
readonly property: {
|
|
259
|
+
readonly physical: "marginTop";
|
|
260
|
+
readonly logical: "marginBlockStart";
|
|
261
|
+
};
|
|
227
262
|
readonly scale: "spacing";
|
|
263
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
228
264
|
};
|
|
229
265
|
readonly mb: {
|
|
230
|
-
readonly property:
|
|
266
|
+
readonly property: {
|
|
267
|
+
readonly physical: "marginBottom";
|
|
268
|
+
readonly logical: "marginBlockEnd";
|
|
269
|
+
};
|
|
231
270
|
readonly scale: "spacing";
|
|
271
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
232
272
|
};
|
|
233
273
|
readonly mr: {
|
|
234
|
-
readonly property:
|
|
274
|
+
readonly property: {
|
|
275
|
+
readonly physical: "marginRight";
|
|
276
|
+
readonly logical: "marginInlineEnd";
|
|
277
|
+
};
|
|
235
278
|
readonly scale: "spacing";
|
|
279
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
236
280
|
};
|
|
237
281
|
readonly ml: {
|
|
238
|
-
readonly property:
|
|
282
|
+
readonly property: {
|
|
283
|
+
readonly physical: "marginLeft";
|
|
284
|
+
readonly logical: "marginInlineStart";
|
|
285
|
+
};
|
|
239
286
|
readonly scale: "spacing";
|
|
287
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
240
288
|
};
|
|
241
289
|
}>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
|
|
242
290
|
truncateLines: {
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export * from './Coachmark';
|
|
|
16
16
|
export * from './ConnectedForm';
|
|
17
17
|
export * from './ContentContainer';
|
|
18
18
|
export * from './DelayedRenderWrapper';
|
|
19
|
-
export * from './DetailedCode';
|
|
20
19
|
export * from './Disclosure';
|
|
21
20
|
export * from './DataList';
|
|
22
21
|
export * from './Drawer';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ export * from './Coachmark';
|
|
|
15
15
|
export * from './ConnectedForm';
|
|
16
16
|
export * from './ContentContainer';
|
|
17
17
|
export * from './DelayedRenderWrapper';
|
|
18
|
-
export * from './DetailedCode';
|
|
19
18
|
export * from './Disclosure';
|
|
20
19
|
export * from './DataList';
|
|
21
20
|
export * from './Drawer';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut",
|
|
3
3
|
"description": "Styleguide & Component library for Codecademy",
|
|
4
|
-
"version": "67.6.4-alpha.
|
|
4
|
+
"version": "67.6.4-alpha.a08632.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/gamut-icons": "9.54.0",
|
|
8
|
-
"@codecademy/gamut-illustrations": "0.58.0",
|
|
9
|
-
"@codecademy/gamut-patterns": "0.10.
|
|
10
|
-
"@codecademy/gamut-styles": "17.11.0",
|
|
11
|
-
"@codecademy/variance": "0.25.0",
|
|
7
|
+
"@codecademy/gamut-icons": "9.54.1-alpha.a08632.0",
|
|
8
|
+
"@codecademy/gamut-illustrations": "0.58.1-alpha.a08632.0",
|
|
9
|
+
"@codecademy/gamut-patterns": "0.10.20-alpha.a08632.0",
|
|
10
|
+
"@codecademy/gamut-styles": "17.11.1-alpha.a08632.0",
|
|
11
|
+
"@codecademy/variance": "0.25.1-alpha.a08632.0",
|
|
12
12
|
"@types/marked": "^4.0.8",
|
|
13
13
|
"@vidstack/react": "^1.12.12",
|
|
14
14
|
"classnames": "^2.2.5",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"dist/**/[A-Z]**/[A-Z]*.js",
|
|
57
57
|
"dist/**/[A-Z]**/index.js"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "bdb0f1e00dd0595f0fb2e61e131eedb0aa86f04d"
|
|
60
60
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Source } from '@storybook/blocks';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { DetailedCodeBodyWrapper } from '../elements';
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const DetailedCodeBody = ({
|
|
6
|
-
code,
|
|
7
|
-
language
|
|
8
|
-
}) => {
|
|
9
|
-
return /*#__PURE__*/_jsx(DetailedCodeBodyWrapper, {
|
|
10
|
-
column: true,
|
|
11
|
-
children: /*#__PURE__*/_jsx(Source, {
|
|
12
|
-
code: code,
|
|
13
|
-
dark: true,
|
|
14
|
-
language: language
|
|
15
|
-
})
|
|
16
|
-
});
|
|
17
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { MiniChevronDownIcon } from '@codecademy/gamut-icons';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Rotation } from '../../Animation';
|
|
4
|
-
import { Box, FlexBox } from '../../Box';
|
|
5
|
-
import { Text } from '../../Typography';
|
|
6
|
-
import { DetailedCodeButtonWrapper } from '../elements';
|
|
7
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
export const DetailedCodeButton = ({
|
|
9
|
-
heading,
|
|
10
|
-
isExpanded,
|
|
11
|
-
language,
|
|
12
|
-
setIsExpanded
|
|
13
|
-
}) => {
|
|
14
|
-
const handleClick = () => {
|
|
15
|
-
if (setIsExpanded) {
|
|
16
|
-
setIsExpanded(prev => !prev);
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
return /*#__PURE__*/_jsx(FlexBox, {
|
|
20
|
-
children: /*#__PURE__*/_jsx(DetailedCodeButtonWrapper, {
|
|
21
|
-
"aria-expanded": isExpanded,
|
|
22
|
-
height: "100%",
|
|
23
|
-
px: 16,
|
|
24
|
-
py: 12,
|
|
25
|
-
variant: "interface",
|
|
26
|
-
width: "100%",
|
|
27
|
-
onClick: handleClick,
|
|
28
|
-
children: /*#__PURE__*/_jsxs(FlexBox, {
|
|
29
|
-
alignItems: "center",
|
|
30
|
-
columnGap: 16,
|
|
31
|
-
flexDirection: "row",
|
|
32
|
-
justifyContent: "space-between",
|
|
33
|
-
width: "100%",
|
|
34
|
-
children: [/*#__PURE__*/_jsxs(FlexBox, {
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
columnGap: 12,
|
|
37
|
-
children: [heading && /*#__PURE__*/_jsx(Text, {
|
|
38
|
-
as: "h3",
|
|
39
|
-
fontWeight: "title",
|
|
40
|
-
p: 0,
|
|
41
|
-
textAlign: "start",
|
|
42
|
-
variant: "title-xs",
|
|
43
|
-
children: heading
|
|
44
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
45
|
-
color: "text-secondary",
|
|
46
|
-
fontFamily: "monospace",
|
|
47
|
-
variant: "p-small",
|
|
48
|
-
children: language
|
|
49
|
-
})]
|
|
50
|
-
}), /*#__PURE__*/_jsx(Box, {
|
|
51
|
-
p: 8,
|
|
52
|
-
children: /*#__PURE__*/_jsx(Rotation, {
|
|
53
|
-
height: 16,
|
|
54
|
-
rotated: isExpanded,
|
|
55
|
-
width: 16,
|
|
56
|
-
children: /*#__PURE__*/_jsx(MiniChevronDownIcon, {
|
|
57
|
-
"aria-hidden": true,
|
|
58
|
-
size: 16
|
|
59
|
-
})
|
|
60
|
-
})
|
|
61
|
-
})]
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
});
|
|
65
|
-
};
|