@codecademy/gamut-styles 17.12.0-alpha.2d3aae.0 → 17.12.0-alpha.2f9b47.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/ColorMode.d.ts +123 -120
- package/dist/variance/config.d.ts +82 -80
- package/dist/variance/config.js +41 -40
- package/dist/variance/props.d.ts +164 -160
- package/dist/variance/utils.d.ts +2 -2
- package/package.json +3 -3
|
@@ -414,23 +414,43 @@ export declare const positioning: {
|
|
|
414
414
|
};
|
|
415
415
|
readonly inset: {
|
|
416
416
|
readonly property: "inset";
|
|
417
|
-
readonly properties:
|
|
417
|
+
readonly properties: {
|
|
418
|
+
readonly physical: readonly ["top", "right", "bottom", "left"];
|
|
419
|
+
readonly logical: readonly ["insetBlockStart", "insetInlineEnd", "insetBlockEnd", "insetInlineStart"];
|
|
420
|
+
};
|
|
421
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
418
422
|
readonly transform: (value: string | number) => string | 0;
|
|
419
423
|
};
|
|
420
424
|
readonly top: {
|
|
421
|
-
readonly property:
|
|
425
|
+
readonly property: {
|
|
426
|
+
readonly physical: "top";
|
|
427
|
+
readonly logical: "insetBlockStart";
|
|
428
|
+
};
|
|
429
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
422
430
|
readonly transform: (value: string | number) => string | 0;
|
|
423
431
|
};
|
|
424
432
|
readonly right: {
|
|
425
|
-
readonly property:
|
|
433
|
+
readonly property: {
|
|
434
|
+
readonly physical: "right";
|
|
435
|
+
readonly logical: "insetInlineEnd";
|
|
436
|
+
};
|
|
437
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
426
438
|
readonly transform: (value: string | number) => string | 0;
|
|
427
439
|
};
|
|
428
440
|
readonly bottom: {
|
|
429
|
-
readonly property:
|
|
441
|
+
readonly property: {
|
|
442
|
+
readonly physical: "bottom";
|
|
443
|
+
readonly logical: "insetBlockEnd";
|
|
444
|
+
};
|
|
445
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
430
446
|
readonly transform: (value: string | number) => string | 0;
|
|
431
447
|
};
|
|
432
448
|
readonly left: {
|
|
433
|
-
readonly property:
|
|
449
|
+
readonly property: {
|
|
450
|
+
readonly physical: "left";
|
|
451
|
+
readonly logical: "insetInlineStart";
|
|
452
|
+
};
|
|
453
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
434
454
|
readonly transform: (value: string | number) => string | 0;
|
|
435
455
|
};
|
|
436
456
|
readonly zIndex: {
|
|
@@ -498,10 +518,18 @@ export declare const layout: {
|
|
|
498
518
|
readonly property: "overflow";
|
|
499
519
|
};
|
|
500
520
|
readonly overflowX: {
|
|
501
|
-
readonly property:
|
|
521
|
+
readonly property: {
|
|
522
|
+
readonly physical: "overflowX";
|
|
523
|
+
readonly logical: "overflowInline";
|
|
524
|
+
};
|
|
525
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
502
526
|
};
|
|
503
527
|
readonly overflowY: {
|
|
504
|
-
readonly property:
|
|
528
|
+
readonly property: {
|
|
529
|
+
readonly physical: "overflowY";
|
|
530
|
+
readonly logical: "overflowBlock";
|
|
531
|
+
};
|
|
532
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
505
533
|
};
|
|
506
534
|
readonly dimensions: {
|
|
507
535
|
readonly property: "width";
|
|
@@ -509,59 +537,32 @@ export declare const layout: {
|
|
|
509
537
|
readonly transform: (value: string | number) => string | 0;
|
|
510
538
|
};
|
|
511
539
|
readonly width: {
|
|
512
|
-
readonly property:
|
|
513
|
-
readonly physical: "width";
|
|
514
|
-
readonly logical: "inlineSize";
|
|
515
|
-
};
|
|
516
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
540
|
+
readonly property: "width";
|
|
517
541
|
readonly transform: (value: string | number) => string | 0;
|
|
518
542
|
};
|
|
519
543
|
readonly minWidth: {
|
|
520
|
-
readonly property:
|
|
521
|
-
readonly physical: "minWidth";
|
|
522
|
-
readonly logical: "minInlineSize";
|
|
523
|
-
};
|
|
524
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
544
|
+
readonly property: "minWidth";
|
|
525
545
|
readonly transform: (value: string | number) => string | 0;
|
|
526
546
|
};
|
|
527
547
|
readonly maxWidth: {
|
|
528
|
-
readonly property:
|
|
529
|
-
readonly physical: "maxWidth";
|
|
530
|
-
readonly logical: "maxInlineSize";
|
|
531
|
-
};
|
|
532
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
548
|
+
readonly property: "maxWidth";
|
|
533
549
|
readonly transform: (value: string | number) => string | 0;
|
|
534
550
|
};
|
|
535
551
|
readonly height: {
|
|
536
|
-
readonly property:
|
|
537
|
-
readonly physical: "height";
|
|
538
|
-
readonly logical: "blockSize";
|
|
539
|
-
};
|
|
540
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
552
|
+
readonly property: "height";
|
|
541
553
|
readonly transform: (value: string | number) => string | 0;
|
|
542
554
|
};
|
|
543
555
|
readonly minHeight: {
|
|
544
|
-
readonly property:
|
|
545
|
-
readonly physical: "minHeight";
|
|
546
|
-
readonly logical: "minBlockSize";
|
|
547
|
-
};
|
|
548
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
556
|
+
readonly property: "minHeight";
|
|
549
557
|
readonly transform: (value: string | number) => string | 0;
|
|
550
558
|
};
|
|
551
559
|
readonly maxHeight: {
|
|
552
|
-
readonly property:
|
|
553
|
-
readonly physical: "maxHeight";
|
|
554
|
-
readonly logical: "maxBlockSize";
|
|
555
|
-
};
|
|
556
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
560
|
+
readonly property: "maxHeight";
|
|
557
561
|
readonly transform: (value: string | number) => string | 0;
|
|
558
562
|
};
|
|
559
563
|
readonly verticalAlign: {
|
|
560
564
|
readonly property: "verticalAlign";
|
|
561
565
|
};
|
|
562
|
-
readonly direction: {
|
|
563
|
-
readonly property: "direction";
|
|
564
|
-
};
|
|
565
566
|
};
|
|
566
567
|
export declare const list: {
|
|
567
568
|
readonly listStyle: {
|
|
@@ -1142,23 +1143,43 @@ export declare const all: {
|
|
|
1142
1143
|
};
|
|
1143
1144
|
inset: {
|
|
1144
1145
|
readonly property: "inset";
|
|
1145
|
-
readonly properties:
|
|
1146
|
+
readonly properties: {
|
|
1147
|
+
readonly physical: readonly ["top", "right", "bottom", "left"];
|
|
1148
|
+
readonly logical: readonly ["insetBlockStart", "insetInlineEnd", "insetBlockEnd", "insetInlineStart"];
|
|
1149
|
+
};
|
|
1150
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1146
1151
|
readonly transform: (value: string | number) => string | 0;
|
|
1147
1152
|
};
|
|
1148
1153
|
top: {
|
|
1149
|
-
readonly property:
|
|
1154
|
+
readonly property: {
|
|
1155
|
+
readonly physical: "top";
|
|
1156
|
+
readonly logical: "insetBlockStart";
|
|
1157
|
+
};
|
|
1158
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1150
1159
|
readonly transform: (value: string | number) => string | 0;
|
|
1151
1160
|
};
|
|
1152
1161
|
right: {
|
|
1153
|
-
readonly property:
|
|
1162
|
+
readonly property: {
|
|
1163
|
+
readonly physical: "right";
|
|
1164
|
+
readonly logical: "insetInlineEnd";
|
|
1165
|
+
};
|
|
1166
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1154
1167
|
readonly transform: (value: string | number) => string | 0;
|
|
1155
1168
|
};
|
|
1156
1169
|
bottom: {
|
|
1157
|
-
readonly property:
|
|
1170
|
+
readonly property: {
|
|
1171
|
+
readonly physical: "bottom";
|
|
1172
|
+
readonly logical: "insetBlockEnd";
|
|
1173
|
+
};
|
|
1174
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1158
1175
|
readonly transform: (value: string | number) => string | 0;
|
|
1159
1176
|
};
|
|
1160
1177
|
left: {
|
|
1161
|
-
readonly property:
|
|
1178
|
+
readonly property: {
|
|
1179
|
+
readonly physical: "left";
|
|
1180
|
+
readonly logical: "insetInlineStart";
|
|
1181
|
+
};
|
|
1182
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1162
1183
|
readonly transform: (value: string | number) => string | 0;
|
|
1163
1184
|
};
|
|
1164
1185
|
zIndex: {
|
|
@@ -1216,10 +1237,18 @@ export declare const all: {
|
|
|
1216
1237
|
readonly property: "overflow";
|
|
1217
1238
|
};
|
|
1218
1239
|
overflowX: {
|
|
1219
|
-
readonly property:
|
|
1240
|
+
readonly property: {
|
|
1241
|
+
readonly physical: "overflowX";
|
|
1242
|
+
readonly logical: "overflowInline";
|
|
1243
|
+
};
|
|
1244
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1220
1245
|
};
|
|
1221
1246
|
overflowY: {
|
|
1222
|
-
readonly property:
|
|
1247
|
+
readonly property: {
|
|
1248
|
+
readonly physical: "overflowY";
|
|
1249
|
+
readonly logical: "overflowBlock";
|
|
1250
|
+
};
|
|
1251
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1223
1252
|
};
|
|
1224
1253
|
dimensions: {
|
|
1225
1254
|
readonly property: "width";
|
|
@@ -1227,59 +1256,32 @@ export declare const all: {
|
|
|
1227
1256
|
readonly transform: (value: string | number) => string | 0;
|
|
1228
1257
|
};
|
|
1229
1258
|
width: {
|
|
1230
|
-
readonly property:
|
|
1231
|
-
readonly physical: "width";
|
|
1232
|
-
readonly logical: "inlineSize";
|
|
1233
|
-
};
|
|
1234
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1259
|
+
readonly property: "width";
|
|
1235
1260
|
readonly transform: (value: string | number) => string | 0;
|
|
1236
1261
|
};
|
|
1237
1262
|
minWidth: {
|
|
1238
|
-
readonly property:
|
|
1239
|
-
readonly physical: "minWidth";
|
|
1240
|
-
readonly logical: "minInlineSize";
|
|
1241
|
-
};
|
|
1242
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1263
|
+
readonly property: "minWidth";
|
|
1243
1264
|
readonly transform: (value: string | number) => string | 0;
|
|
1244
1265
|
};
|
|
1245
1266
|
maxWidth: {
|
|
1246
|
-
readonly property:
|
|
1247
|
-
readonly physical: "maxWidth";
|
|
1248
|
-
readonly logical: "maxInlineSize";
|
|
1249
|
-
};
|
|
1250
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1267
|
+
readonly property: "maxWidth";
|
|
1251
1268
|
readonly transform: (value: string | number) => string | 0;
|
|
1252
1269
|
};
|
|
1253
1270
|
height: {
|
|
1254
|
-
readonly property:
|
|
1255
|
-
readonly physical: "height";
|
|
1256
|
-
readonly logical: "blockSize";
|
|
1257
|
-
};
|
|
1258
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1271
|
+
readonly property: "height";
|
|
1259
1272
|
readonly transform: (value: string | number) => string | 0;
|
|
1260
1273
|
};
|
|
1261
1274
|
minHeight: {
|
|
1262
|
-
readonly property:
|
|
1263
|
-
readonly physical: "minHeight";
|
|
1264
|
-
readonly logical: "minBlockSize";
|
|
1265
|
-
};
|
|
1266
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1275
|
+
readonly property: "minHeight";
|
|
1267
1276
|
readonly transform: (value: string | number) => string | 0;
|
|
1268
1277
|
};
|
|
1269
1278
|
maxHeight: {
|
|
1270
|
-
readonly property:
|
|
1271
|
-
readonly physical: "maxHeight";
|
|
1272
|
-
readonly logical: "maxBlockSize";
|
|
1273
|
-
};
|
|
1274
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
1279
|
+
readonly property: "maxHeight";
|
|
1275
1280
|
readonly transform: (value: string | number) => string | 0;
|
|
1276
1281
|
};
|
|
1277
1282
|
verticalAlign: {
|
|
1278
1283
|
readonly property: "verticalAlign";
|
|
1279
1284
|
};
|
|
1280
|
-
direction: {
|
|
1281
|
-
readonly property: "direction";
|
|
1282
|
-
};
|
|
1283
1285
|
justifyContent: {
|
|
1284
1286
|
readonly property: "justifyContent";
|
|
1285
1287
|
};
|
package/dist/variance/config.js
CHANGED
|
@@ -411,23 +411,43 @@ export const positioning = {
|
|
|
411
411
|
},
|
|
412
412
|
inset: {
|
|
413
413
|
property: 'inset',
|
|
414
|
-
properties:
|
|
414
|
+
properties: {
|
|
415
|
+
physical: ['top', 'right', 'bottom', 'left'],
|
|
416
|
+
logical: ['insetBlockStart', 'insetInlineEnd', 'insetBlockEnd', 'insetInlineStart']
|
|
417
|
+
},
|
|
418
|
+
resolveProperty: getPropertyMode,
|
|
415
419
|
transform: transformSize
|
|
416
420
|
},
|
|
417
421
|
top: {
|
|
418
|
-
property:
|
|
422
|
+
property: {
|
|
423
|
+
physical: 'top',
|
|
424
|
+
logical: 'insetBlockStart'
|
|
425
|
+
},
|
|
426
|
+
resolveProperty: getPropertyMode,
|
|
419
427
|
transform: transformSize
|
|
420
428
|
},
|
|
421
429
|
right: {
|
|
422
|
-
property:
|
|
430
|
+
property: {
|
|
431
|
+
physical: 'right',
|
|
432
|
+
logical: 'insetInlineEnd'
|
|
433
|
+
},
|
|
434
|
+
resolveProperty: getPropertyMode,
|
|
423
435
|
transform: transformSize
|
|
424
436
|
},
|
|
425
437
|
bottom: {
|
|
426
|
-
property:
|
|
438
|
+
property: {
|
|
439
|
+
physical: 'bottom',
|
|
440
|
+
logical: 'insetBlockEnd'
|
|
441
|
+
},
|
|
442
|
+
resolveProperty: getPropertyMode,
|
|
427
443
|
transform: transformSize
|
|
428
444
|
},
|
|
429
445
|
left: {
|
|
430
|
-
property:
|
|
446
|
+
property: {
|
|
447
|
+
physical: 'left',
|
|
448
|
+
logical: 'insetInlineStart'
|
|
449
|
+
},
|
|
450
|
+
resolveProperty: getPropertyMode,
|
|
431
451
|
transform: transformSize
|
|
432
452
|
},
|
|
433
453
|
zIndex: {
|
|
@@ -456,10 +476,18 @@ export const layout = {
|
|
|
456
476
|
property: 'overflow'
|
|
457
477
|
},
|
|
458
478
|
overflowX: {
|
|
459
|
-
property:
|
|
479
|
+
property: {
|
|
480
|
+
physical: 'overflowX',
|
|
481
|
+
logical: 'overflowInline'
|
|
482
|
+
},
|
|
483
|
+
resolveProperty: getPropertyMode
|
|
460
484
|
},
|
|
461
485
|
overflowY: {
|
|
462
|
-
property:
|
|
486
|
+
property: {
|
|
487
|
+
physical: 'overflowY',
|
|
488
|
+
logical: 'overflowBlock'
|
|
489
|
+
},
|
|
490
|
+
resolveProperty: getPropertyMode
|
|
463
491
|
},
|
|
464
492
|
dimensions: {
|
|
465
493
|
property: 'width',
|
|
@@ -467,59 +495,32 @@ export const layout = {
|
|
|
467
495
|
transform: transformSize
|
|
468
496
|
},
|
|
469
497
|
width: {
|
|
470
|
-
property:
|
|
471
|
-
physical: 'width',
|
|
472
|
-
logical: 'inlineSize'
|
|
473
|
-
},
|
|
474
|
-
resolveProperty: getPropertyMode,
|
|
498
|
+
property: 'width',
|
|
475
499
|
transform: transformSize
|
|
476
500
|
},
|
|
477
501
|
minWidth: {
|
|
478
|
-
property:
|
|
479
|
-
physical: 'minWidth',
|
|
480
|
-
logical: 'minInlineSize'
|
|
481
|
-
},
|
|
482
|
-
resolveProperty: getPropertyMode,
|
|
502
|
+
property: 'minWidth',
|
|
483
503
|
transform: transformSize
|
|
484
504
|
},
|
|
485
505
|
maxWidth: {
|
|
486
|
-
property:
|
|
487
|
-
physical: 'maxWidth',
|
|
488
|
-
logical: 'maxInlineSize'
|
|
489
|
-
},
|
|
490
|
-
resolveProperty: getPropertyMode,
|
|
506
|
+
property: 'maxWidth',
|
|
491
507
|
transform: transformSize
|
|
492
508
|
},
|
|
493
509
|
height: {
|
|
494
|
-
property:
|
|
495
|
-
physical: 'height',
|
|
496
|
-
logical: 'blockSize'
|
|
497
|
-
},
|
|
498
|
-
resolveProperty: getPropertyMode,
|
|
510
|
+
property: 'height',
|
|
499
511
|
transform: transformSize
|
|
500
512
|
},
|
|
501
513
|
minHeight: {
|
|
502
|
-
property:
|
|
503
|
-
physical: 'minHeight',
|
|
504
|
-
logical: 'minBlockSize'
|
|
505
|
-
},
|
|
506
|
-
resolveProperty: getPropertyMode,
|
|
514
|
+
property: 'minHeight',
|
|
507
515
|
transform: transformSize
|
|
508
516
|
},
|
|
509
517
|
maxHeight: {
|
|
510
|
-
property:
|
|
511
|
-
physical: 'maxHeight',
|
|
512
|
-
logical: 'maxBlockSize'
|
|
513
|
-
},
|
|
514
|
-
resolveProperty: getPropertyMode,
|
|
518
|
+
property: 'maxHeight',
|
|
515
519
|
transform: transformSize
|
|
516
520
|
},
|
|
517
521
|
verticalAlign: {
|
|
518
522
|
property: 'verticalAlign'
|
|
519
523
|
},
|
|
520
|
-
direction: {
|
|
521
|
-
property: 'direction'
|
|
522
|
-
},
|
|
523
524
|
...selfAlignments,
|
|
524
525
|
...gridItems,
|
|
525
526
|
...flexItems
|