@codecademy/gamut 68.0.1-alpha.4aeb6d.0 → 68.0.1-alpha.588625.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 +33 -6
- package/dist/Badge/index.d.ts +35 -20
- package/dist/Box/props.d.ts +61 -150
- package/dist/Button/shared/styles.d.ts +59 -136
- package/dist/Card/elements.d.ts +183 -450
- package/dist/Form/elements/Form.d.ts +59 -136
- package/dist/GridForm/GridFormSections/GridFormSectionBreak.d.ts +61 -150
- package/dist/InternalFloatingCard/InternalFloatingCard.d.ts +33 -6
- package/dist/Layout/Column.d.ts +33 -6
- package/dist/List/elements.d.ts +94 -156
- package/dist/Menu/elements.d.ts +61 -150
- package/dist/Pagination/AnimatedPaginationButtons.d.ts +61 -138
- package/dist/Pagination/EllipsisButton.d.ts +5 -5
- package/dist/Pagination/EllipsisButton.js +2 -2
- package/dist/Pagination/index.js +4 -4
- package/dist/Pagination/utils.d.ts +59 -136
- package/dist/Pagination/utils.js +1 -1
- package/dist/Tabs/props.d.ts +33 -6
- package/dist/Tag/types.d.ts +33 -6
- package/dist/Toggle/elements.d.ts +2 -14
- package/dist/Typography/Text.d.ts +35 -20
- package/package.json +7 -7
|
@@ -65,32 +65,59 @@ export declare const buttonProps: import("@codecademy/variance/dist/types/config
|
|
|
65
65
|
readonly transform: (value: string | number) => string | 0;
|
|
66
66
|
};
|
|
67
67
|
readonly width: {
|
|
68
|
-
readonly property:
|
|
68
|
+
readonly property: {
|
|
69
|
+
readonly physical: "width";
|
|
70
|
+
readonly logical: "inlineSize";
|
|
71
|
+
};
|
|
72
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
69
73
|
readonly transform: (value: string | number) => string | 0;
|
|
70
74
|
};
|
|
71
75
|
readonly minWidth: {
|
|
72
|
-
readonly property:
|
|
76
|
+
readonly property: {
|
|
77
|
+
readonly physical: "minWidth";
|
|
78
|
+
readonly logical: "minInlineSize";
|
|
79
|
+
};
|
|
80
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
73
81
|
readonly transform: (value: string | number) => string | 0;
|
|
74
82
|
};
|
|
75
83
|
readonly maxWidth: {
|
|
76
|
-
readonly property:
|
|
84
|
+
readonly property: {
|
|
85
|
+
readonly physical: "maxWidth";
|
|
86
|
+
readonly logical: "maxInlineSize";
|
|
87
|
+
};
|
|
88
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
77
89
|
readonly transform: (value: string | number) => string | 0;
|
|
78
90
|
};
|
|
79
91
|
readonly height: {
|
|
80
|
-
readonly property:
|
|
92
|
+
readonly property: {
|
|
93
|
+
readonly physical: "height";
|
|
94
|
+
readonly logical: "blockSize";
|
|
95
|
+
};
|
|
96
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
81
97
|
readonly transform: (value: string | number) => string | 0;
|
|
82
98
|
};
|
|
83
99
|
readonly minHeight: {
|
|
84
|
-
readonly property:
|
|
100
|
+
readonly property: {
|
|
101
|
+
readonly physical: "minHeight";
|
|
102
|
+
readonly logical: "minBlockSize";
|
|
103
|
+
};
|
|
104
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
85
105
|
readonly transform: (value: string | number) => string | 0;
|
|
86
106
|
};
|
|
87
107
|
readonly maxHeight: {
|
|
88
|
-
readonly property:
|
|
108
|
+
readonly property: {
|
|
109
|
+
readonly physical: "maxHeight";
|
|
110
|
+
readonly logical: "maxBlockSize";
|
|
111
|
+
};
|
|
112
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
89
113
|
readonly transform: (value: string | number) => string | 0;
|
|
90
114
|
};
|
|
91
115
|
readonly verticalAlign: {
|
|
92
116
|
readonly property: "verticalAlign";
|
|
93
117
|
};
|
|
118
|
+
readonly direction: {
|
|
119
|
+
readonly property: "direction";
|
|
120
|
+
};
|
|
94
121
|
}>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
|
|
95
122
|
readonly position: {
|
|
96
123
|
readonly property: "position";
|
|
@@ -238,52 +265,28 @@ export declare const buttonProps: import("@codecademy/variance/dist/types/config
|
|
|
238
265
|
};
|
|
239
266
|
readonly borderX: {
|
|
240
267
|
readonly property: "border";
|
|
241
|
-
readonly properties:
|
|
242
|
-
readonly physical: readonly ["borderLeft", "borderRight"];
|
|
243
|
-
readonly logical: readonly ["borderInlineStart", "borderInlineEnd"];
|
|
244
|
-
};
|
|
245
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
268
|
+
readonly properties: readonly ["borderLeft", "borderRight"];
|
|
246
269
|
readonly scale: "borders";
|
|
247
270
|
};
|
|
248
271
|
readonly borderY: {
|
|
249
272
|
readonly property: "border";
|
|
250
|
-
readonly properties:
|
|
251
|
-
readonly physical: readonly ["borderTop", "borderBottom"];
|
|
252
|
-
readonly logical: readonly ["borderBlockStart", "borderBlockEnd"];
|
|
253
|
-
};
|
|
254
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
273
|
+
readonly properties: readonly ["borderTop", "borderBottom"];
|
|
255
274
|
readonly scale: "borders";
|
|
256
275
|
};
|
|
257
276
|
readonly borderTop: {
|
|
258
|
-
readonly property:
|
|
259
|
-
readonly physical: "borderTop";
|
|
260
|
-
readonly logical: "borderBlockStart";
|
|
261
|
-
};
|
|
262
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
277
|
+
readonly property: "borderTop";
|
|
263
278
|
readonly scale: "borders";
|
|
264
279
|
};
|
|
265
280
|
readonly borderRight: {
|
|
266
|
-
readonly property:
|
|
267
|
-
readonly physical: "borderRight";
|
|
268
|
-
readonly logical: "borderInlineEnd";
|
|
269
|
-
};
|
|
270
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
281
|
+
readonly property: "borderRight";
|
|
271
282
|
readonly scale: "borders";
|
|
272
283
|
};
|
|
273
284
|
readonly borderBottom: {
|
|
274
|
-
readonly property:
|
|
275
|
-
readonly physical: "borderBottom";
|
|
276
|
-
readonly logical: "borderBlockEnd";
|
|
277
|
-
};
|
|
278
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
285
|
+
readonly property: "borderBottom";
|
|
279
286
|
readonly scale: "borders";
|
|
280
287
|
};
|
|
281
288
|
readonly borderLeft: {
|
|
282
|
-
readonly property:
|
|
283
|
-
readonly physical: "borderLeft";
|
|
284
|
-
readonly logical: "borderInlineStart";
|
|
285
|
-
};
|
|
286
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
289
|
+
readonly property: "borderLeft";
|
|
287
290
|
readonly scale: "borders";
|
|
288
291
|
};
|
|
289
292
|
readonly borderWidth: {
|
|
@@ -291,47 +294,23 @@ export declare const buttonProps: import("@codecademy/variance/dist/types/config
|
|
|
291
294
|
};
|
|
292
295
|
readonly borderWidthX: {
|
|
293
296
|
readonly property: "borderWidth";
|
|
294
|
-
readonly properties:
|
|
295
|
-
readonly physical: readonly ["borderLeftWidth", "borderRightWidth"];
|
|
296
|
-
readonly logical: readonly ["borderInlineStartWidth", "borderInlineEndWidth"];
|
|
297
|
-
};
|
|
298
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
297
|
+
readonly properties: readonly ["borderLeftWidth", "borderRightWidth"];
|
|
299
298
|
};
|
|
300
299
|
readonly borderWidthY: {
|
|
301
300
|
readonly property: "borderWidth";
|
|
302
|
-
readonly properties:
|
|
303
|
-
readonly physical: readonly ["borderTopWidth", "borderBottomWidth"];
|
|
304
|
-
readonly logical: readonly ["borderBlockStartWidth", "borderBlockEndWidth"];
|
|
305
|
-
};
|
|
306
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
301
|
+
readonly properties: readonly ["borderTopWidth", "borderBottomWidth"];
|
|
307
302
|
};
|
|
308
303
|
readonly borderWidthLeft: {
|
|
309
|
-
readonly property:
|
|
310
|
-
readonly physical: "borderLeftWidth";
|
|
311
|
-
readonly logical: "borderInlineStartWidth";
|
|
312
|
-
};
|
|
313
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
304
|
+
readonly property: "borderLeftWidth";
|
|
314
305
|
};
|
|
315
306
|
readonly borderWidthRight: {
|
|
316
|
-
readonly property:
|
|
317
|
-
readonly physical: "borderRightWidth";
|
|
318
|
-
readonly logical: "borderInlineEndWidth";
|
|
319
|
-
};
|
|
320
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
307
|
+
readonly property: "borderRightWidth";
|
|
321
308
|
};
|
|
322
309
|
readonly borderWidthTop: {
|
|
323
|
-
readonly property:
|
|
324
|
-
readonly physical: "borderTopWidth";
|
|
325
|
-
readonly logical: "borderBlockStartWidth";
|
|
326
|
-
};
|
|
327
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
310
|
+
readonly property: "borderTopWidth";
|
|
328
311
|
};
|
|
329
312
|
readonly borderWidthBottom: {
|
|
330
|
-
readonly property:
|
|
331
|
-
readonly physical: "borderBottomWidth";
|
|
332
|
-
readonly logical: "borderBlockEndWidth";
|
|
333
|
-
};
|
|
334
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
313
|
+
readonly property: "borderBottomWidth";
|
|
335
314
|
};
|
|
336
315
|
readonly borderRadius: {
|
|
337
316
|
readonly property: "borderRadius";
|
|
@@ -339,70 +318,38 @@ export declare const buttonProps: import("@codecademy/variance/dist/types/config
|
|
|
339
318
|
};
|
|
340
319
|
readonly borderRadiusLeft: {
|
|
341
320
|
readonly property: "borderRadius";
|
|
342
|
-
readonly properties:
|
|
343
|
-
readonly physical: readonly ["borderTopLeftRadius", "borderBottomLeftRadius"];
|
|
344
|
-
readonly logical: readonly ["borderStartStartRadius", "borderEndStartRadius"];
|
|
345
|
-
};
|
|
346
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
321
|
+
readonly properties: readonly ["borderTopLeftRadius", "borderBottomLeftRadius"];
|
|
347
322
|
readonly scale: "borderRadii";
|
|
348
323
|
};
|
|
349
324
|
readonly borderRadiusTop: {
|
|
350
325
|
readonly property: "borderRadius";
|
|
351
|
-
readonly properties:
|
|
352
|
-
readonly physical: readonly ["borderTopLeftRadius", "borderTopRightRadius"];
|
|
353
|
-
readonly logical: readonly ["borderStartStartRadius", "borderStartEndRadius"];
|
|
354
|
-
};
|
|
355
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
326
|
+
readonly properties: readonly ["borderTopLeftRadius", "borderTopRightRadius"];
|
|
356
327
|
readonly scale: "borderRadii";
|
|
357
328
|
};
|
|
358
329
|
readonly borderRadiusBottom: {
|
|
359
330
|
readonly property: "borderRadius";
|
|
360
|
-
readonly properties:
|
|
361
|
-
readonly physical: readonly ["borderBottomLeftRadius", "borderBottomRightRadius"];
|
|
362
|
-
readonly logical: readonly ["borderEndStartRadius", "borderEndEndRadius"];
|
|
363
|
-
};
|
|
364
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
331
|
+
readonly properties: readonly ["borderBottomLeftRadius", "borderBottomRightRadius"];
|
|
365
332
|
readonly scale: "borderRadii";
|
|
366
333
|
};
|
|
367
334
|
readonly borderRadiusRight: {
|
|
368
335
|
readonly property: "borderRadius";
|
|
369
|
-
readonly properties:
|
|
370
|
-
readonly physical: readonly ["borderTopRightRadius", "borderBottomRightRadius"];
|
|
371
|
-
readonly logical: readonly ["borderStartEndRadius", "borderEndEndRadius"];
|
|
372
|
-
};
|
|
373
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
336
|
+
readonly properties: readonly ["borderTopRightRadius", "borderBottomRightRadius"];
|
|
374
337
|
readonly scale: "borderRadii";
|
|
375
338
|
};
|
|
376
339
|
readonly borderRadiusTopLeft: {
|
|
377
|
-
readonly property:
|
|
378
|
-
readonly physical: "borderTopLeftRadius";
|
|
379
|
-
readonly logical: "borderStartStartRadius";
|
|
380
|
-
};
|
|
381
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
340
|
+
readonly property: "borderTopLeftRadius";
|
|
382
341
|
readonly scale: "borderRadii";
|
|
383
342
|
};
|
|
384
343
|
readonly borderRadiusTopRight: {
|
|
385
|
-
readonly property:
|
|
386
|
-
readonly physical: "borderTopRightRadius";
|
|
387
|
-
readonly logical: "borderStartEndRadius";
|
|
388
|
-
};
|
|
389
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
344
|
+
readonly property: "borderTopRightRadius";
|
|
390
345
|
readonly scale: "borderRadii";
|
|
391
346
|
};
|
|
392
347
|
readonly borderRadiusBottomRight: {
|
|
393
|
-
readonly property:
|
|
394
|
-
readonly physical: "borderBottomRightRadius";
|
|
395
|
-
readonly logical: "borderEndEndRadius";
|
|
396
|
-
};
|
|
397
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
348
|
+
readonly property: "borderBottomRightRadius";
|
|
398
349
|
readonly scale: "borderRadii";
|
|
399
350
|
};
|
|
400
351
|
readonly borderRadiusBottomLeft: {
|
|
401
|
-
readonly property:
|
|
402
|
-
readonly physical: "borderBottomLeftRadius";
|
|
403
|
-
readonly logical: "borderEndStartRadius";
|
|
404
|
-
};
|
|
405
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
352
|
+
readonly property: "borderBottomLeftRadius";
|
|
406
353
|
readonly scale: "borderRadii";
|
|
407
354
|
};
|
|
408
355
|
readonly borderStyle: {
|
|
@@ -410,47 +357,23 @@ export declare const buttonProps: import("@codecademy/variance/dist/types/config
|
|
|
410
357
|
};
|
|
411
358
|
readonly borderStyleX: {
|
|
412
359
|
readonly property: "borderStyle";
|
|
413
|
-
readonly properties:
|
|
414
|
-
readonly physical: readonly ["borderLeftStyle", "borderRightStyle"];
|
|
415
|
-
readonly logical: readonly ["borderInlineStartStyle", "borderInlineEndStyle"];
|
|
416
|
-
};
|
|
417
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
360
|
+
readonly properties: readonly ["borderLeftStyle", "borderRightStyle"];
|
|
418
361
|
};
|
|
419
362
|
readonly borderStyleY: {
|
|
420
363
|
readonly property: "borderStyle";
|
|
421
|
-
readonly properties:
|
|
422
|
-
readonly physical: readonly ["borderTopStyle", "borderBottomStyle"];
|
|
423
|
-
readonly logical: readonly ["borderBlockStartStyle", "borderBlockEndStyle"];
|
|
424
|
-
};
|
|
425
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
364
|
+
readonly properties: readonly ["borderTopStyle", "borderBottomStyle"];
|
|
426
365
|
};
|
|
427
366
|
readonly borderStyleLeft: {
|
|
428
|
-
readonly property:
|
|
429
|
-
readonly physical: "borderLeftStyle";
|
|
430
|
-
readonly logical: "borderInlineStartStyle";
|
|
431
|
-
};
|
|
432
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
367
|
+
readonly property: "borderLeftStyle";
|
|
433
368
|
};
|
|
434
369
|
readonly borderStyleRight: {
|
|
435
|
-
readonly property:
|
|
436
|
-
readonly physical: "borderRightStyle";
|
|
437
|
-
readonly logical: "borderInlineEndStyle";
|
|
438
|
-
};
|
|
439
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
370
|
+
readonly property: "borderRightStyle";
|
|
440
371
|
};
|
|
441
372
|
readonly borderStyleTop: {
|
|
442
|
-
readonly property:
|
|
443
|
-
readonly physical: "borderTopStyle";
|
|
444
|
-
readonly logical: "borderBlockStartStyle";
|
|
445
|
-
};
|
|
446
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
373
|
+
readonly property: "borderTopStyle";
|
|
447
374
|
};
|
|
448
375
|
readonly borderStyleBottom: {
|
|
449
|
-
readonly property:
|
|
450
|
-
readonly physical: "borderBottomStyle";
|
|
451
|
-
readonly logical: "borderBlockEndStyle";
|
|
452
|
-
};
|
|
453
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
376
|
+
readonly property: "borderBottomStyle";
|
|
454
377
|
};
|
|
455
378
|
}>>]>>;
|
|
456
379
|
export declare const templateVariants: <Variant extends string, Styles>(variants: readonly Variant[], template: (colors: Variant) => Styles) => (props: import("@codecademy/variance/dist/types/config").VariantProps<"variant", unknown> & {
|