@zazz-ui/core 0.9.1 → 0.10.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/AUTHORING.md +21 -16
- package/CHANGELOG.md +89 -0
- package/README.md +3 -3
- package/dist/sri.json +85 -84
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +9042 -1944
- package/editor/zazz.html-data.json +31 -41
- package/editor/zazz.language-data.json +468 -233
- package/editor/zazz.lint-data.json +412 -396
- package/package.json +2 -3
- package/src/base/_defaults.css +59 -40
- package/src/base/_layers.css +5 -2
- package/src/base/_properties-2xl.css +10 -0
- package/src/base/_properties-active.css +8 -0
- package/src/base/_properties-checked.css +8 -0
- package/src/base/_properties-current.css +8 -0
- package/src/base/_properties-disabled.css +8 -0
- package/src/base/_properties-focus-visible.css +8 -0
- package/src/base/_properties-focus-within.css +8 -0
- package/src/base/_properties-hover.css +8 -0
- package/src/base/_properties-lg.css +10 -0
- package/src/base/_properties-md.css +10 -0
- package/src/base/_properties-open.css +8 -0
- package/src/base/_properties-sm.css +10 -0
- package/src/base/_properties-starting.css +4 -0
- package/src/base/_properties-stuck.css +4 -0
- package/src/base/_properties-xl.css +10 -0
- package/src/base/_properties.css +55 -15
- package/src/base/_reset.css +8 -4
- package/src/base/_typography.css +26 -9
- package/src/base/_utilities-box.css +63 -59
- package/src/base/_utilities-color.css +55 -8
- package/src/base/_utilities-effects.css +8 -0
- package/src/base/_utilities-flow.css +28 -5
- package/src/base/_utilities-pseudo.css +4 -0
- package/src/base/_utilities-spacing.css +8 -8
- package/src/base/_utilities-sr.css +98 -0
- package/src/base/_utilities-tier-2xl.css +5 -0
- package/src/base/_utilities-tier-active.css +5 -1
- package/src/base/_utilities-tier-checked.css +5 -1
- package/src/base/_utilities-tier-current.css +5 -1
- package/src/base/_utilities-tier-disabled.css +5 -1
- package/src/base/_utilities-tier-focus-visible.css +5 -1
- package/src/base/_utilities-tier-focus-within.css +5 -1
- package/src/base/_utilities-tier-hover.css +5 -1
- package/src/base/_utilities-tier-lg.css +5 -0
- package/src/base/_utilities-tier-md.css +5 -0
- package/src/base/_utilities-tier-open.css +5 -1
- package/src/base/_utilities-tier-sm.css +5 -0
- package/src/base/_utilities-tier-starting.css +2 -0
- package/src/base/_utilities-tier-stuck.css +3 -0
- package/src/base/_utilities-tier-xl.css +5 -0
- package/src/base/_utilities-typography.css +263 -3
- package/src/base/_variables.css +123 -57
- package/src/base/kit-styling.d.ts.map +1 -1
- package/src/base/kit-styling.js +90 -86
- package/src/base/kit-styling.ts +90 -86
- package/src/base/utilities.d.ts +23 -8
- package/src/base/utilities.d.ts.map +1 -1
- package/src/base/utilities.js +78 -3
- package/src/base/utilities.ts +95 -11
- package/src/head.d.ts.map +1 -1
- package/src/head.js +4 -5
- package/src/head.ts +4 -5
- package/src/index.css +3 -2
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +13 -3
- package/src/manifest.ts +13 -3
- package/src/primitives/alert-dialog/alert-dialog.css +1 -1
- package/src/primitives/autocomplete/autocomplete.css +4 -2
- package/src/primitives/avatar/avatar.html +4 -6
- package/src/primitives/badge/badge.css +63 -56
- package/src/primitives/breadcrumbs/breadcrumbs.html +1 -7
- package/src/primitives/button/button.css +44 -57
- package/src/primitives/button-group/button-group.css +4 -0
- package/src/primitives/callout/callout.css +22 -43
- package/src/primitives/card/card-subgrid.html +2 -3
- package/src/primitives/card/card.css +4 -0
- package/src/primitives/card/card.html +2 -3
- package/src/primitives/checkbox/checkbox.css +4 -0
- package/src/primitives/combobox/combobox.css +8 -1
- package/src/primitives/command/command-actions.d.ts.map +1 -1
- package/src/primitives/command/command-actions.js +4 -9
- package/src/primitives/command/command-actions.ts +4 -9
- package/src/primitives/debug/audit-core.d.ts +1 -1
- package/src/primitives/debug/audit-core.d.ts.map +1 -1
- package/src/primitives/debug/audit-core.js +30 -3
- package/src/primitives/debug/audit-core.ts +40 -2
- package/src/primitives/dialog/dialog-with-form.html +1 -1
- package/src/primitives/dialog/dialog.css +19 -4
- package/src/primitives/fields/fields.css +11 -5
- package/src/primitives/group/group.css +18 -0
- package/src/primitives/group/group.html +26 -0
- package/src/primitives/input/input.css +14 -8
- package/src/primitives/input-group/input-group-password-group.html +1 -1
- package/src/primitives/input-group/input-group.css +12 -8
- package/src/primitives/kbd/kbd.css +4 -0
- package/src/primitives/lightbox/lightbox.css +13 -0
- package/src/primitives/lightbox/lightbox.html +2 -1
- package/src/primitives/menu/menu.css +3 -1
- package/src/primitives/meter/meter.css +10 -3
- package/src/primitives/navigation-menu/navigation-menu.css +5 -0
- package/src/primitives/navigation-menu/navigation-menu.html +2 -2
- package/src/primitives/otp/otp.css +4 -0
- package/src/primitives/password-group/password-group.css +13 -9
- package/src/primitives/password-group/password-group.html +1 -1
- package/src/primitives/popover/popover.css +6 -0
- package/src/primitives/progress/progress.css +5 -0
- package/src/primitives/radio/radio.css +3 -0
- package/src/primitives/select/select.css +17 -9
- package/src/primitives/slider/slider.css +8 -0
- package/src/primitives/switch/switch.css +56 -20
- package/src/primitives/tabs/tabs.css +18 -0
- package/src/primitives/textarea/textarea.css +19 -10
- package/src/primitives/toaster/toaster.css +8 -4
- package/src/primitives/toggle/toggle.css +10 -6
- package/src/primitives/toggle-group/toggle-group.css +4 -0
- package/src/primitives/tooltip/tooltip.css +4 -0
- package/src/primitives/utilities/pile.html +2 -3
- package/src/base/_switches.css +0 -148
package/src/base/kit-styling.ts
CHANGED
|
@@ -217,10 +217,9 @@ export const KIT_SELECTORS: readonly string[] = [
|
|
|
217
217
|
'[data-ui~="password-group"] [data-ui~="textarea"]',
|
|
218
218
|
'[data-ui~="password-group"]:not(:has([data-password-group-slot~="addon"]:not([data-password-group-align]), [data-password-group-slot~="addon"][data-password-group-align="inline-start"])) [data-ui~="input"]',
|
|
219
219
|
'[data-ui~="password-group"]:not(:has([data-password-group-slot~="addon"][data-password-group-align="inline-end"])) [data-ui~="input"]',
|
|
220
|
-
'[data-ui~="pile"]',
|
|
221
|
-
'[data-ui~="pile"] > *',
|
|
222
220
|
'[data-ui~="progress"]',
|
|
223
221
|
'[data-ui~="radio"]',
|
|
222
|
+
'[data-ui~="scroll-fade"]',
|
|
224
223
|
'[data-ui~="select"]',
|
|
225
224
|
'[data-ui~="select"] > button',
|
|
226
225
|
'[data-ui~="select"] > button > svg',
|
|
@@ -230,7 +229,6 @@ export const KIT_SELECTORS: readonly string[] = [
|
|
|
230
229
|
'[data-ui~="select"] selectedcontent > svg',
|
|
231
230
|
'[data-ui~="separator"]',
|
|
232
231
|
'[data-ui~="separator"][data-separator-orientation="vertical"]',
|
|
233
|
-
'[data-ui~="sr-only"]',
|
|
234
232
|
'[data-ui~="table"]',
|
|
235
233
|
'[data-ui~="table"] :is(th, td)',
|
|
236
234
|
'[data-ui~="table"] caption',
|
|
@@ -277,55 +275,59 @@ export const KIT_SELECTORS: readonly string[] = [
|
|
|
277
275
|
export const TIER_READS: Readonly<Record<string, readonly number[]>> = {
|
|
278
276
|
band: [63],
|
|
279
277
|
bg: [
|
|
280
|
-
2, 15, 29, 38, 127, 133, 136, 138, 140, 143, 147, 148, 149, 166, 168, 181, 202,
|
|
281
|
-
|
|
278
|
+
2, 15, 29, 38, 127, 133, 136, 138, 140, 143, 147, 148, 149, 166, 168, 181, 202, 215, 216, 218,
|
|
279
|
+
225, 227, 236, 237, 240, 241, 242, 258, 259, 261,
|
|
282
280
|
],
|
|
283
281
|
"border-color": [
|
|
284
|
-
15, 38, 133, 136, 138, 140, 143, 147, 148, 166, 168, 202,
|
|
285
|
-
|
|
282
|
+
15, 38, 133, 136, 138, 140, 143, 147, 148, 166, 168, 202, 216, 218, 236, 237, 240, 241, 242,
|
|
283
|
+
245, 258, 259,
|
|
286
284
|
],
|
|
287
|
-
"border-style": [38, 136, 140, 147, 148, 166, 218,
|
|
288
|
-
"border-width": [38, 136, 140, 147, 148, 166, 167, 218,
|
|
289
|
-
|
|
285
|
+
"border-style": [38, 136, 140, 147, 148, 166, 216, 218, 236, 237, 258, 259],
|
|
286
|
+
"border-width": [38, 136, 140, 147, 148, 166, 167, 216, 218, 236, 237, 258, 259],
|
|
287
|
+
"corner-shape": [
|
|
288
|
+
2, 29, 38, 106, 112, 127, 133, 136, 140, 147, 148, 149, 166, 168, 181, 202, 215, 216, 218, 236,
|
|
289
|
+
237, 245, 258, 259, 261,
|
|
290
|
+
],
|
|
291
|
+
cursor: [168, 202, 258],
|
|
290
292
|
display: [2, 157, 164, 168, 202],
|
|
291
293
|
"flex-wrap": [38, 168, 202],
|
|
292
|
-
"font-family": [133, 136, 140,
|
|
293
|
-
"font-size": [38, 133, 136, 140, 166,
|
|
294
|
-
"font-weight": [133, 136, 140,
|
|
295
|
-
gap: [2, 34, 38, 61, 95, 133, 136, 140, 147, 148, 157, 164, 168, 202,
|
|
296
|
-
h: [38, 136, 149, 166, 181,
|
|
294
|
+
"font-family": [133, 136, 140, 227, 237, 261],
|
|
295
|
+
"font-size": [38, 133, 136, 140, 166, 218, 227, 236, 237, 261],
|
|
296
|
+
"font-weight": [133, 136, 140, 237],
|
|
297
|
+
gap: [2, 34, 38, 61, 95, 133, 136, 140, 147, 148, 157, 164, 168, 202, 237, 261],
|
|
298
|
+
h: [38, 136, 149, 166, 181, 215, 218, 258],
|
|
297
299
|
items: [38, 164, 168, 202],
|
|
298
300
|
justify: [164],
|
|
299
|
-
leading: [38, 133, 136, 140, 166,
|
|
301
|
+
leading: [38, 133, 136, 140, 166, 218, 236, 237, 261],
|
|
300
302
|
m: [2],
|
|
301
|
-
"max-h": [26,
|
|
302
|
-
"max-w": [133,
|
|
303
|
-
"min-h": [38, 140, 168, 202,
|
|
304
|
-
"min-w": [38, 58, 97, 98, 166,
|
|
305
|
-
mx: [133,
|
|
306
|
-
my: [133,
|
|
307
|
-
p: [2, 147, 148, 168, 202,
|
|
308
|
-
pl: [38, 166,
|
|
309
|
-
pr: [38, 166,
|
|
310
|
-
px: [133, 136, 140,
|
|
311
|
-
py: [38, 133,
|
|
303
|
+
"max-h": [26, 236],
|
|
304
|
+
"max-w": [133, 245],
|
|
305
|
+
"min-h": [38, 140, 168, 202, 236, 237, 261],
|
|
306
|
+
"min-w": [38, 58, 97, 98, 166, 218, 236, 245, 261],
|
|
307
|
+
mx: [133, 245],
|
|
308
|
+
my: [133, 245],
|
|
309
|
+
p: [2, 147, 148, 168, 202, 236, 245],
|
|
310
|
+
pl: [38, 166, 218],
|
|
311
|
+
pr: [38, 166, 218],
|
|
312
|
+
px: [133, 136, 140, 237, 261],
|
|
313
|
+
py: [38, 133, 261],
|
|
312
314
|
radius: [
|
|
313
|
-
2, 29, 38, 106, 112, 127, 133, 136, 140, 147, 148, 149, 166, 168, 181, 202,
|
|
314
|
-
|
|
315
|
+
2, 29, 38, 106, 112, 127, 133, 136, 140, 147, 148, 149, 166, 168, 181, 202, 215, 216, 218, 236,
|
|
316
|
+
237, 245, 258, 259, 261,
|
|
315
317
|
],
|
|
316
|
-
"ring-color": [136, 140,
|
|
318
|
+
"ring-color": [136, 140, 237],
|
|
317
319
|
self: [157],
|
|
318
320
|
shadow: [
|
|
319
|
-
20, 26, 38, 97, 133, 136, 140, 147, 148, 149, 166, 168, 202,
|
|
321
|
+
20, 26, 38, 97, 133, 136, 140, 147, 148, 149, 166, 168, 202, 216, 218, 236, 237, 245, 258, 259,
|
|
320
322
|
],
|
|
321
|
-
"shadow-angle": [4,
|
|
322
|
-
size: [
|
|
323
|
+
"shadow-angle": [4, 257],
|
|
324
|
+
size: [216, 259],
|
|
323
325
|
"template-cols": [157],
|
|
324
326
|
text: [
|
|
325
|
-
38, 133, 136, 138, 140, 143, 147, 148, 149, 166, 168, 202,
|
|
326
|
-
|
|
327
|
+
38, 133, 136, 138, 140, 143, 147, 148, 149, 166, 168, 202, 218, 227, 236, 237, 240, 241, 242,
|
|
328
|
+
261,
|
|
327
329
|
],
|
|
328
|
-
w: [38, 98, 149, 157, 166, 168, 181, 202,
|
|
330
|
+
w: [38, 98, 149, 157, 166, 168, 181, 202, 215, 218, 236, 258],
|
|
329
331
|
};
|
|
330
332
|
|
|
331
333
|
/**
|
|
@@ -335,175 +337,177 @@ export const TIER_READS: Readonly<Record<string, readonly number[]>> = {
|
|
|
335
337
|
*/
|
|
336
338
|
export const TIER_BLOCKS: Readonly<Record<string, readonly number[]>> = {
|
|
337
339
|
"anchor-name": [28, 38, 49, 96, 103, 131, 149, 188, 191, 198, 200],
|
|
338
|
-
|
|
340
|
+
animation: [215, 217, 257],
|
|
341
|
+
aspect: [82, 84, 139, 144, 145, 243, 244],
|
|
339
342
|
"backdrop-filter": [117],
|
|
340
343
|
band: [63, 159, 160, 163],
|
|
341
344
|
basis: [
|
|
342
|
-
18, 19, 35, 36, 39, 55, 56, 73, 87, 120, 171, 172, 177, 178, 199, 205, 206, 211, 212,
|
|
345
|
+
18, 19, 35, 36, 39, 55, 56, 73, 87, 120, 171, 172, 177, 178, 199, 205, 206, 211, 212, 219, 263,
|
|
343
346
|
],
|
|
344
347
|
bg: [
|
|
345
348
|
2, 15, 16, 29, 38, 39, 56, 80, 83, 99, 100, 106, 109, 111, 112, 113, 117, 123, 127, 132, 133,
|
|
346
|
-
136, 140, 147, 148, 149, 154, 166, 168, 177, 178, 181, 184, 185, 202, 211, 212,
|
|
347
|
-
|
|
349
|
+
136, 140, 147, 148, 149, 154, 166, 168, 177, 178, 181, 184, 185, 202, 211, 212, 215, 216, 218,
|
|
350
|
+
221, 225, 227, 230, 231, 233, 236, 237, 245, 249, 251, 255, 256, 257, 258, 259, 261,
|
|
348
351
|
],
|
|
349
|
-
"col-end": [63, 158, 159, 160, 163
|
|
352
|
+
"col-end": [63, 158, 159, 160, 163],
|
|
350
353
|
"col-span": [63, 159, 160, 163],
|
|
351
|
-
"col-start": [63, 158, 159, 160, 163
|
|
354
|
+
"col-start": [63, 158, 159, 160, 163],
|
|
352
355
|
elevation: [
|
|
353
356
|
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 140, 147, 148, 149, 166,
|
|
354
|
-
168, 177, 178, 202,
|
|
357
|
+
168, 177, 178, 202, 216, 218, 221, 236, 237, 245, 252, 258, 259,
|
|
355
358
|
],
|
|
356
359
|
flex: [
|
|
357
360
|
18, 19, 35, 36, 39, 47, 48, 55, 56, 73, 87, 93, 94, 99, 118, 119, 120, 121, 136, 140, 154, 169,
|
|
358
|
-
171, 172, 176, 177, 178, 199, 203, 205, 206, 210, 211, 212,
|
|
359
|
-
|
|
361
|
+
171, 172, 176, 177, 178, 199, 203, 205, 206, 210, 211, 212, 216, 219, 220, 222, 224, 225, 237,
|
|
362
|
+
255, 258, 259, 263,
|
|
360
363
|
],
|
|
361
364
|
"flex-wrap": [38, 168, 184, 202],
|
|
362
365
|
gap: [
|
|
363
366
|
2, 23, 25, 34, 37, 38, 42, 44, 51, 52, 57, 61, 62, 79, 85, 92, 95, 100, 102, 108, 110, 112, 120,
|
|
364
|
-
123, 133, 136, 140, 147, 148, 154, 157, 168, 169, 175, 184, 191, 198, 201, 202, 203, 209,
|
|
365
|
-
|
|
367
|
+
123, 133, 136, 140, 147, 148, 154, 157, 168, 169, 175, 184, 191, 198, 201, 202, 203, 209, 218,
|
|
368
|
+
219, 221, 237, 254, 261,
|
|
366
369
|
],
|
|
367
370
|
"gap-x": [
|
|
368
371
|
2, 23, 25, 34, 37, 38, 42, 44, 51, 52, 57, 61, 62, 79, 85, 92, 95, 100, 102, 108, 110, 112, 120,
|
|
369
|
-
123, 133, 136, 140, 147, 148, 154, 157, 168, 169, 175, 184, 191, 198, 201, 202, 203, 209,
|
|
370
|
-
|
|
372
|
+
123, 133, 136, 140, 147, 148, 154, 157, 168, 169, 175, 184, 191, 198, 201, 202, 203, 209, 218,
|
|
373
|
+
219, 221, 237, 254, 261,
|
|
371
374
|
],
|
|
372
375
|
"gap-y": [
|
|
373
376
|
2, 23, 25, 34, 37, 38, 42, 44, 51, 52, 57, 61, 79, 85, 92, 95, 100, 102, 108, 110, 112, 120,
|
|
374
|
-
123, 133, 136, 147, 148, 154, 157, 168, 169, 175, 184, 191, 198, 201, 202, 203, 209,
|
|
375
|
-
|
|
377
|
+
123, 133, 136, 147, 148, 154, 157, 168, 169, 175, 184, 191, 198, 201, 202, 203, 209, 218, 219,
|
|
378
|
+
221, 254, 261,
|
|
376
379
|
],
|
|
377
380
|
"grid-cols": [62, 64, 157, 201],
|
|
378
381
|
"grid-rows": [67, 68, 153, 156, 186],
|
|
382
|
+
isolation: [29, 33, 127, 149, 188, 263],
|
|
379
383
|
items: [
|
|
380
384
|
20, 21, 29, 38, 47, 48, 51, 54, 61, 62, 69, 70, 83, 85, 100, 106, 108, 110, 112, 113, 116, 123,
|
|
381
385
|
127, 133, 136, 137, 140, 141, 152, 164, 168, 169, 171, 172, 175, 185, 186, 191, 198, 201, 202,
|
|
382
|
-
203, 205, 206, 209,
|
|
386
|
+
203, 205, 206, 209, 216, 218, 219, 221, 223, 237, 239, 259, 261,
|
|
383
387
|
],
|
|
384
388
|
justify: [
|
|
385
389
|
20, 21, 69, 70, 76, 83, 86, 113, 115, 136, 137, 140, 141, 152, 154, 164, 169, 185, 198, 203,
|
|
386
|
-
|
|
390
|
+
218, 237, 239, 261,
|
|
387
391
|
],
|
|
388
392
|
opacity: [
|
|
389
393
|
0, 1, 47, 66, 71, 72, 84, 88, 89, 109, 114, 117, 123, 124, 125, 126, 133, 134, 135, 161, 162,
|
|
390
|
-
187,
|
|
394
|
+
187, 238, 245, 252, 253, 260, 262,
|
|
391
395
|
],
|
|
392
396
|
order: [24, 43, 53, 170, 171, 172, 173, 174, 204, 205, 206, 207, 208],
|
|
393
397
|
p: [
|
|
394
398
|
2, 3, 5, 6, 22, 25, 38, 40, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 75, 76, 83, 100, 104, 112,
|
|
395
399
|
113, 117, 122, 123, 133, 136, 137, 139, 140, 141, 142, 144, 145, 146, 147, 148, 150, 152, 154,
|
|
396
400
|
155, 166, 168, 169, 171, 172, 175, 177, 178, 179, 180, 182, 183, 184, 185, 190, 198, 202, 203,
|
|
397
|
-
205, 206, 209, 211, 212, 213, 214,
|
|
398
|
-
|
|
401
|
+
205, 206, 209, 211, 212, 213, 214, 218, 221, 228, 229, 232, 236, 237, 239, 243, 244, 245, 248,
|
|
402
|
+
251, 261, 264, 265, 266,
|
|
399
403
|
],
|
|
400
404
|
pb: [
|
|
401
405
|
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 75, 76, 104, 112, 117, 122, 123, 133,
|
|
402
406
|
137, 139, 141, 144, 145, 147, 148, 150, 152, 154, 168, 171, 172, 178, 182, 184, 185, 190, 198,
|
|
403
|
-
202, 205, 206, 212, 228,
|
|
407
|
+
202, 205, 206, 212, 228, 229, 232, 236, 239, 243, 244, 245, 251, 261,
|
|
404
408
|
],
|
|
405
409
|
pl: [
|
|
406
410
|
2, 3, 5, 6, 22, 25, 38, 40, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 83, 100, 112, 113, 117, 122,
|
|
407
411
|
123, 133, 136, 137, 139, 140, 141, 142, 144, 145, 146, 147, 148, 150, 152, 154, 155, 166, 168,
|
|
408
|
-
169, 175, 177, 178, 179, 182, 183, 184, 185, 190, 198, 202, 203, 209, 211, 212, 213,
|
|
409
|
-
228,
|
|
412
|
+
169, 175, 177, 178, 179, 182, 183, 184, 185, 190, 198, 202, 203, 209, 211, 212, 213, 218, 221,
|
|
413
|
+
228, 229, 236, 237, 239, 243, 244, 245, 248, 251, 261, 264, 265, 266,
|
|
410
414
|
],
|
|
411
415
|
"place-content": [
|
|
412
416
|
20, 21, 69, 70, 76, 83, 86, 113, 115, 136, 137, 140, 141, 152, 154, 164, 169, 185, 198, 203,
|
|
413
|
-
|
|
417
|
+
218, 237, 239, 245, 261,
|
|
414
418
|
],
|
|
415
419
|
"place-items": [
|
|
416
420
|
20, 21, 29, 38, 47, 48, 51, 54, 61, 62, 69, 70, 83, 85, 100, 106, 108, 110, 112, 113, 116, 123,
|
|
417
421
|
127, 133, 136, 137, 140, 141, 152, 164, 168, 169, 171, 172, 175, 185, 186, 191, 198, 201, 202,
|
|
418
|
-
203, 205, 206, 209,
|
|
422
|
+
203, 205, 206, 209, 216, 218, 219, 221, 223, 237, 239, 259, 261,
|
|
419
423
|
],
|
|
420
424
|
position: [
|
|
421
425
|
13, 17, 29, 30, 33, 65, 66, 77, 78, 79, 82, 90, 91, 101, 105, 109, 111, 112, 113, 114, 117, 123,
|
|
422
|
-
127, 128, 132, 151, 153, 154, 184, 185, 186, 188, 189, 197,
|
|
423
|
-
|
|
426
|
+
127, 128, 132, 151, 153, 154, 184, 185, 186, 188, 189, 197, 216, 237, 238, 245, 249, 252, 259,
|
|
427
|
+
262, 263,
|
|
424
428
|
],
|
|
425
429
|
"position-anchor": [26, 45, 59, 97, 102, 111, 133, 192, 193, 194, 195, 196],
|
|
426
|
-
"position-area": [117,
|
|
430
|
+
"position-area": [117, 245],
|
|
427
431
|
pr: [
|
|
428
432
|
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 100, 112, 113, 117, 122, 123, 133,
|
|
429
433
|
136, 137, 139, 140, 141, 142, 144, 145, 146, 147, 148, 150, 152, 154, 155, 166, 168, 169, 175,
|
|
430
|
-
177, 178, 180, 182, 184, 185, 190, 198, 202, 203, 209, 211, 212, 214,
|
|
431
|
-
|
|
434
|
+
177, 178, 180, 182, 184, 185, 190, 198, 202, 203, 209, 211, 212, 214, 218, 221, 228, 229, 236,
|
|
435
|
+
237, 239, 243, 244, 245, 251, 261,
|
|
432
436
|
],
|
|
433
437
|
pt: [
|
|
434
438
|
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 75, 76, 104, 112, 117, 122, 123, 133,
|
|
435
439
|
137, 139, 141, 144, 145, 147, 148, 150, 152, 154, 155, 168, 171, 172, 178, 182, 184, 185, 190,
|
|
436
|
-
198, 202, 205, 206, 212, 228,
|
|
440
|
+
198, 202, 205, 206, 212, 228, 229, 232, 236, 239, 243, 244, 245, 251, 261,
|
|
437
441
|
],
|
|
438
442
|
px: [
|
|
439
443
|
2, 3, 5, 6, 22, 25, 38, 40, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 83, 100, 112, 113, 117, 122,
|
|
440
444
|
123, 133, 136, 137, 139, 140, 141, 142, 144, 145, 146, 147, 148, 150, 152, 154, 155, 166, 168,
|
|
441
445
|
169, 175, 177, 178, 179, 180, 182, 183, 184, 185, 190, 198, 202, 203, 209, 211, 212, 213, 214,
|
|
442
|
-
|
|
446
|
+
218, 221, 228, 229, 236, 237, 239, 243, 244, 245, 248, 251, 261, 264, 265, 266,
|
|
443
447
|
],
|
|
444
448
|
py: [
|
|
445
449
|
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 75, 76, 104, 112, 117, 122, 123, 133,
|
|
446
450
|
137, 139, 141, 144, 145, 147, 148, 150, 152, 154, 155, 168, 171, 172, 178, 182, 184, 185, 190,
|
|
447
|
-
198, 202, 205, 206, 212, 228,
|
|
451
|
+
198, 202, 205, 206, 212, 228, 229, 232, 236, 239, 243, 244, 245, 251, 261,
|
|
448
452
|
],
|
|
449
453
|
radius: [
|
|
450
454
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
451
455
|
130, 132, 133, 136, 140, 147, 148, 149, 166, 168, 176, 177, 178, 181, 190, 198, 202, 210, 211,
|
|
452
|
-
212,
|
|
456
|
+
212, 215, 216, 218, 221, 236, 237, 245, 251, 258, 259, 260, 261,
|
|
453
457
|
],
|
|
454
458
|
"radius-b": [
|
|
455
459
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
456
460
|
130, 132, 133, 136, 140, 147, 148, 149, 166, 168, 176, 177, 178, 181, 190, 198, 202, 210, 211,
|
|
457
|
-
212,
|
|
461
|
+
212, 215, 216, 218, 221, 236, 237, 245, 251, 258, 259, 260, 261,
|
|
458
462
|
],
|
|
459
463
|
"radius-l": [
|
|
460
464
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
461
465
|
130, 132, 133, 136, 140, 147, 148, 149, 166, 168, 176, 177, 178, 181, 190, 198, 202, 210, 211,
|
|
462
|
-
212,
|
|
466
|
+
212, 215, 216, 218, 221, 236, 237, 245, 251, 258, 259, 260, 261,
|
|
463
467
|
],
|
|
464
468
|
"radius-r": [
|
|
465
469
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
466
470
|
130, 132, 133, 136, 140, 147, 148, 149, 166, 168, 176, 177, 178, 181, 190, 198, 202, 210, 211,
|
|
467
|
-
212,
|
|
471
|
+
212, 215, 216, 218, 221, 236, 237, 245, 251, 258, 259, 260, 261,
|
|
468
472
|
],
|
|
469
473
|
"radius-t": [
|
|
470
474
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
471
475
|
130, 132, 133, 136, 140, 147, 148, 149, 166, 168, 176, 177, 178, 181, 190, 198, 202, 210, 211,
|
|
472
|
-
212,
|
|
476
|
+
212, 215, 216, 218, 221, 236, 237, 245, 251, 258, 259, 260, 261,
|
|
473
477
|
],
|
|
474
478
|
ring: [
|
|
475
479
|
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 140, 147, 148, 149, 166,
|
|
476
|
-
168, 177, 178, 202,
|
|
480
|
+
168, 177, 178, 202, 216, 218, 221, 236, 237, 245, 252, 258, 259,
|
|
477
481
|
],
|
|
478
482
|
"ring-color": [
|
|
479
483
|
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 140, 147, 148, 149, 166,
|
|
480
|
-
168, 177, 178, 202,
|
|
484
|
+
168, 177, 178, 202, 216, 218, 221, 236, 237, 245, 252, 258, 259,
|
|
481
485
|
],
|
|
482
486
|
"ring-offset": [
|
|
483
487
|
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 140, 147, 148, 149, 166,
|
|
484
|
-
168, 177, 178, 202,
|
|
488
|
+
168, 177, 178, 202, 216, 218, 221, 236, 237, 245, 252, 258, 259,
|
|
485
489
|
],
|
|
486
490
|
"ring-offset-color": [
|
|
487
491
|
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 140, 147, 148, 149, 166,
|
|
488
|
-
168, 177, 178, 202,
|
|
492
|
+
168, 177, 178, 202, 216, 218, 221, 236, 237, 245, 252, 258, 259,
|
|
489
493
|
],
|
|
490
|
-
"row-end": [150, 154, 155, 158, 159, 160, 163
|
|
494
|
+
"row-end": [150, 154, 155, 158, 159, 160, 163],
|
|
491
495
|
"row-span": [150, 154, 155, 159, 160, 163],
|
|
492
|
-
"row-start": [150, 154, 155, 158, 159, 160, 163
|
|
493
|
-
self: [153, 154, 157, 163, 165,
|
|
496
|
+
"row-start": [150, 154, 155, 158, 159, 160, 163],
|
|
497
|
+
self: [153, 154, 157, 163, 165, 226],
|
|
494
498
|
shadow: [
|
|
495
499
|
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 140, 147, 148, 149, 166,
|
|
496
|
-
168, 177, 178, 202,
|
|
500
|
+
168, 177, 178, 202, 216, 218, 221, 236, 237, 245, 252, 258, 259,
|
|
497
501
|
],
|
|
498
502
|
shrink: [
|
|
499
503
|
18, 19, 35, 36, 39, 47, 48, 55, 56, 73, 87, 93, 94, 99, 118, 119, 120, 121, 136, 140, 154, 169,
|
|
500
|
-
176, 177, 178, 199, 203, 210, 211, 212,
|
|
504
|
+
176, 177, 178, 199, 203, 210, 211, 212, 216, 219, 220, 222, 224, 225, 237, 255, 258, 259, 263,
|
|
501
505
|
],
|
|
502
506
|
"template-cols": [62, 64, 157, 201],
|
|
503
507
|
"template-rows": [67, 68, 153, 156, 186],
|
|
504
|
-
"text-align": [107, 115, 163, 198,
|
|
505
|
-
"text-decoration": [136, 140, 190,
|
|
506
|
-
"text-wrap": [7, 8, 9, 10, 11, 12, 113, 133,
|
|
508
|
+
"text-align": [107, 115, 163, 198, 218, 227, 228, 250],
|
|
509
|
+
"text-decoration": [136, 140, 190, 235, 237, 246, 247],
|
|
510
|
+
"text-wrap": [7, 8, 9, 10, 11, 12, 113, 133, 234, 249],
|
|
507
511
|
translate: [66, 161, 162],
|
|
508
512
|
z: [65, 77, 78, 91, 111, 113, 151, 185],
|
|
509
513
|
};
|
package/src/base/utilities.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare function isState(tier: string): tier is State;
|
|
|
60
60
|
/** How a utility's value is read. */
|
|
61
61
|
export type Mode = "dual" | "raw" | "keyword" | "integer";
|
|
62
62
|
/** Utility families; each family has one tier kind. */
|
|
63
|
-
export type Family = "flow" | "grid" | "spacing" | "margin" | "sizing" | "typography" | "color" | "effects" | "box";
|
|
63
|
+
export type Family = "flow" | "grid" | "spacing" | "margin" | "sizing" | "typography" | "color" | "effects" | "box" | "sr";
|
|
64
64
|
/** A family's tiers: breakpoints, states, both (paint that also changes per breakpoint), or none. */
|
|
65
65
|
export type Tiers = "breakpoints" | "states" | "both" | "none";
|
|
66
66
|
export declare const FAMILY_TIERS: Record<Family, Tiers>;
|
|
@@ -81,9 +81,15 @@ export interface Utility {
|
|
|
81
81
|
* composite too, as one signed length `--_<name>-w`: a number is that many
|
|
82
82
|
* pixels, a length passes through, and the sign carries meaning (a negative
|
|
83
83
|
* ring is inset). `space` is a dual value the container publishes for its
|
|
84
|
-
* direct children, who take it as a margin (`SPACE_PROPERTIES`).
|
|
84
|
+
* direct children, who take it as a margin (`SPACE_PROPERTIES`). `direct` skips
|
|
85
|
+
* the resolver chain: exact rules per breakpoint, ascending, declare the
|
|
86
|
+
* properties themselves, so a higher tier wins by source order and a tier below
|
|
87
|
+
* the first one set declares nothing. `text-wrap` reads its value through typed
|
|
88
|
+
* channels, which turn `truncate` and `none` into real `text-wrap` values.
|
|
89
|
+
* `animation` yields to `--_motion-off`, so reduced motion stops any value.
|
|
90
|
+
* `divide` is a border between the element's direct children (`divideRules`).
|
|
85
91
|
*/
|
|
86
|
-
emit?: "plain" | "repeat" | "span" | "grid-fit" | "line-clamp" | "bg" | "none" | "border" | "px" | "space";
|
|
92
|
+
emit?: "plain" | "repeat" | "span" | "grid-fit" | "line-clamp" | "bg" | "none" | "border" | "px" | "space" | "direct" | "text-wrap" | "animation" | "divide";
|
|
87
93
|
/**
|
|
88
94
|
* What the precedence chain ends in when neither the base nor an active tier
|
|
89
95
|
* sets the utility: a `px` utility that stands in for a token (`--focus-ring`
|
|
@@ -93,11 +99,6 @@ export interface Utility {
|
|
|
93
99
|
chainEnd?: string;
|
|
94
100
|
/** Overrides the family's tier kind (`none` for a utility that is base-only). */
|
|
95
101
|
tiers?: Tiers;
|
|
96
|
-
/**
|
|
97
|
-
* The `border` emission's width and color channels (`--_<name>-w`, `--_<name>-c`)
|
|
98
|
-
* inherit, for a switch that draws them on the element's children (`--divide`).
|
|
99
|
-
*/
|
|
100
|
-
inherits?: true;
|
|
101
102
|
/**
|
|
102
103
|
* What a dual utility's number multiplies (default `var(--spacing)`):
|
|
103
104
|
* `--radius: 2` is two steps of `--spacing` times `--radius-multiplier`.
|
|
@@ -149,6 +150,20 @@ export declare const SHORTHAND_OF: Readonly<Record<string, readonly string[]>>;
|
|
|
149
150
|
export declare const GRADIENT_TYPES: readonly ["linear", "radial", "conic"];
|
|
150
151
|
/** Standard weight names and the number to write instead (`normal` and `bold` are CSS). */
|
|
151
152
|
export declare const FONT_WEIGHT_NAMES: Readonly<Record<string, number>>;
|
|
153
|
+
/**
|
|
154
|
+
* `data-ui` tokens that are gone, and what replaces each. `data-ui` holds
|
|
155
|
+
* identities only; a leftover token matches nothing, so an element it hid or
|
|
156
|
+
* clipped would change without a word. The audit reports them by this table.
|
|
157
|
+
*/
|
|
158
|
+
export declare const RETIRED_TOKENS: Readonly<Record<string, string>>;
|
|
159
|
+
/** The kit's looping animations: each is a keyframe name and a token (`--spin`). */
|
|
160
|
+
export declare const ANIMATION_TOKENS: readonly ["spin", "ping", "pulse", "bounce"];
|
|
161
|
+
/**
|
|
162
|
+
* The `--display` keyword for a pile: a grid whose direct children share one
|
|
163
|
+
* cell, centered. Not a `DISPLAY_SHORTHANDS` entry, which pairs a display with
|
|
164
|
+
* a flex direction.
|
|
165
|
+
*/
|
|
166
|
+
export declare const DISPLAY_PILE = "grid-pile";
|
|
152
167
|
/**
|
|
153
168
|
* `--display` shorthands that set the flex direction with the display (there
|
|
154
169
|
* is no `--flex-direction` utility): `[display, flex-direction]`. Plain `flex`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["utilities.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,qDAAqD;AACrD,eAAO,MAAM,WAAW,YAAI,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAU,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAMrD,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,MAAM,YACjB,UAAU,EACV,UAAU,EACV,QAAQ,EACR,eAAe,EACf,cAAc,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,MAAM,EACN,OAAO,CACC,CAAC;AACX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAClC,KAAK,EACL;IAAE,MAAM,EAAE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AE,QAAQ;EAChF,CAAC;AAEX,0DAA0D;AAC1D,eAAO,MAAM,eAAe,YAAI,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,CAAU,CAAC;AAC9F,eAAO,MAAM,eAAe,YAAI,MAAM,CAAU,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,YAAI,MAAM,CAAU,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,YAAI,SAAS,CAAU,CAAC;AAE3D,qFAAqF;AACrF,eAAO,MAAM,SAAS,EAAE,SAAS,OAAO,EA2vBvC,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,WAAW,EAAE,SAAS,OAAO,EAEzC,CAAC;AAEF,eAAO,MAAM,YAAY,YAAI,QAAQ,EAAE,OAAO,CAAU,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,6DAA6D;AAC7D,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,MAAM,EAAE,CAM3D;AAED,qDAAqD;AACrD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,IAAI,CAAC;CACd;AAID,sGAAsG;AACtG,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAyBzD"}
|
package/src/base/utilities.js
CHANGED
|
@@ -102,6 +102,7 @@ export const FAMILY_TIERS = {
|
|
|
102
102
|
color: "both",
|
|
103
103
|
effects: "states",
|
|
104
104
|
box: "none",
|
|
105
|
+
sr: "breakpoints",
|
|
105
106
|
};
|
|
106
107
|
/** The margin each `space` utility gives a container's children (all but the last). */
|
|
107
108
|
export const SPACE_PROPERTIES = {
|
|
@@ -173,6 +174,35 @@ export const FONT_WEIGHT_NAMES = {
|
|
|
173
174
|
black: 900,
|
|
174
175
|
heavy: 900,
|
|
175
176
|
};
|
|
177
|
+
/**
|
|
178
|
+
* `data-ui` tokens that are gone, and what replaces each. `data-ui` holds
|
|
179
|
+
* identities only; a leftover token matches nothing, so an element it hid or
|
|
180
|
+
* clipped would change without a word. The audit reports them by this table.
|
|
181
|
+
*/
|
|
182
|
+
export const RETIRED_TOKENS = {
|
|
183
|
+
"sr-only": "`--sr: only`",
|
|
184
|
+
pile: "`--display: grid-pile`",
|
|
185
|
+
isolate: "`--isolation: isolate`",
|
|
186
|
+
"not-prose": '`data-prose-slot="end"`',
|
|
187
|
+
truncate: "`--text-wrap: truncate`",
|
|
188
|
+
spin: "`--animation: var(--spin)`",
|
|
189
|
+
ping: "`--animation: var(--ping)`",
|
|
190
|
+
pulse: "`--animation: var(--pulse)`",
|
|
191
|
+
bounce: "`--animation: var(--bounce)`",
|
|
192
|
+
"divide-x": "`--divide-x: 1`",
|
|
193
|
+
"divide-y": "`--divide-y: 1`",
|
|
194
|
+
container: "`--container-type: inline-size`",
|
|
195
|
+
"theme-dark": '`data-theme="dark"`',
|
|
196
|
+
"theme-light": '`data-theme="light"`',
|
|
197
|
+
};
|
|
198
|
+
/** The kit's looping animations: each is a keyframe name and a token (`--spin`). */
|
|
199
|
+
export const ANIMATION_TOKENS = ["spin", "ping", "pulse", "bounce"];
|
|
200
|
+
/**
|
|
201
|
+
* The `--display` keyword for a pile: a grid whose direct children share one
|
|
202
|
+
* cell, centered. Not a `DISPLAY_SHORTHANDS` entry, which pairs a display with
|
|
203
|
+
* a flex direction.
|
|
204
|
+
*/
|
|
205
|
+
export const DISPLAY_PILE = "grid-pile";
|
|
176
206
|
/**
|
|
177
207
|
* `--display` shorthands that set the flex direction with the display (there
|
|
178
208
|
* is no `--flex-direction` utility): `[display, flex-direction]`. Plain `flex`
|
|
@@ -648,6 +678,8 @@ export const UTILITIES = [
|
|
|
648
678
|
properties: ["text-wrap"],
|
|
649
679
|
mode: "keyword",
|
|
650
680
|
family: "typography",
|
|
681
|
+
emit: "text-wrap",
|
|
682
|
+
tiers: "both",
|
|
651
683
|
noBase: "wrap",
|
|
652
684
|
},
|
|
653
685
|
{
|
|
@@ -694,6 +726,15 @@ export const UTILITIES = [
|
|
|
694
726
|
tiers: "none",
|
|
695
727
|
})),
|
|
696
728
|
{ name: "bg-stops", properties: [], mode: "raw", family: "color", emit: "none", tiers: "none" },
|
|
729
|
+
// before the border utilities: a child's own border loads later and wins
|
|
730
|
+
...["divide", "divide-x", "divide-y"].map((name) => ({
|
|
731
|
+
name,
|
|
732
|
+
properties: [],
|
|
733
|
+
mode: "raw",
|
|
734
|
+
family: "color",
|
|
735
|
+
emit: "divide",
|
|
736
|
+
tiers: "breakpoints",
|
|
737
|
+
})),
|
|
697
738
|
{
|
|
698
739
|
name: "border-color",
|
|
699
740
|
properties: ["border-color"],
|
|
@@ -852,6 +893,15 @@ export const UTILITIES = [
|
|
|
852
893
|
family: "effects",
|
|
853
894
|
noBase: "none",
|
|
854
895
|
},
|
|
896
|
+
{
|
|
897
|
+
name: "animation",
|
|
898
|
+
properties: ["animation"],
|
|
899
|
+
mode: "raw",
|
|
900
|
+
family: "effects",
|
|
901
|
+
emit: "animation",
|
|
902
|
+
tiers: "both",
|
|
903
|
+
noBase: "none",
|
|
904
|
+
},
|
|
855
905
|
{ name: "transition", pseudo: true, properties: ["transition"], mode: "raw", family: "effects" },
|
|
856
906
|
// longhands after the shorthand, so they win over --transition and over a
|
|
857
907
|
// primitive's transition: retime one element without restating its property list
|
|
@@ -902,6 +952,25 @@ export const UTILITIES = [
|
|
|
902
952
|
scale: "var(--spacing) * var(--radius-multiplier)",
|
|
903
953
|
aliases: { full: "var(--radius-full)" },
|
|
904
954
|
})),
|
|
955
|
+
// the radius rules leave corner-shape to the defaults layer (see generate-utilities.ts);
|
|
956
|
+
// this is the per-element override
|
|
957
|
+
{ name: "corner-shape", properties: ["corner-shape"], mode: "raw", family: "box" },
|
|
958
|
+
// visually hidden, in its own layer above every other utility (`srRules`)
|
|
959
|
+
{
|
|
960
|
+
name: "sr",
|
|
961
|
+
properties: [],
|
|
962
|
+
mode: "keyword",
|
|
963
|
+
family: "sr",
|
|
964
|
+
emit: "direct",
|
|
965
|
+
keywords: ["only", "none"],
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
name: "isolation",
|
|
969
|
+
properties: ["isolation"],
|
|
970
|
+
mode: "keyword",
|
|
971
|
+
family: "flow",
|
|
972
|
+
noBase: "auto",
|
|
973
|
+
},
|
|
905
974
|
{ name: "overflow", properties: ["overflow"], mode: "keyword", family: "box" },
|
|
906
975
|
{
|
|
907
976
|
name: "overflow-x",
|
|
@@ -937,9 +1006,15 @@ export const UTILITIES = [
|
|
|
937
1006
|
},
|
|
938
1007
|
{ name: "object-fit", properties: ["object-fit"], mode: "keyword", family: "box" },
|
|
939
1008
|
{ name: "object-position", properties: ["object-position"], mode: "raw", family: "box" },
|
|
940
|
-
// the
|
|
941
|
-
|
|
942
|
-
|
|
1009
|
+
// the shorthand first: each tier's longhands load after it (`containerRules`)
|
|
1010
|
+
...["container", "container-name", "container-type"].map((name) => ({
|
|
1011
|
+
name,
|
|
1012
|
+
properties: [name],
|
|
1013
|
+
mode: "raw",
|
|
1014
|
+
family: "box",
|
|
1015
|
+
emit: "direct",
|
|
1016
|
+
tiers: "breakpoints",
|
|
1017
|
+
})),
|
|
943
1018
|
];
|
|
944
1019
|
/** Utilities that exist only on pseudo-elements. */
|
|
945
1020
|
export const PSEUDO_ONLY = [
|