@zazz-ui/core 0.9.1 → 0.11.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 +144 -0
- package/README.md +3 -3
- package/dist/sri.json +89 -88
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +8370 -1264
- package/editor/zazz.html-data.json +31 -41
- package/editor/zazz.language-data.json +516 -247
- package/editor/zazz.lint-data.json +654 -619
- 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 +151 -60
- package/src/base/kit-styling.d.ts.map +1 -1
- package/src/base/kit-styling.js +134 -128
- package/src/base/kit-styling.ts +134 -128
- 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/accordion/accordion.css +3 -0
- package/src/primitives/alert-dialog/alert-dialog.css +1 -1
- package/src/primitives/alert-dialog/alert-dialog.html +14 -14
- package/src/primitives/autocomplete/autocomplete.css +4 -2
- package/src/primitives/avatar/avatar.html +4 -6
- package/src/primitives/badge/badge.css +77 -56
- package/src/primitives/breadcrumbs/breadcrumbs.html +1 -7
- package/src/primitives/button/button.css +75 -60
- 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 +13 -0
- package/src/primitives/combobox/combobox.css +25 -2
- 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/command/command-dialog.html +109 -107
- package/src/primitives/command/command.css +16 -8
- 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 +111 -44
- 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 +16 -9
- package/src/primitives/input-group/input-group-password-group.html +1 -1
- package/src/primitives/input-group/input-group.css +19 -11
- package/src/primitives/kbd/kbd.css +4 -0
- package/src/primitives/lightbox/lightbox.css +17 -4
- 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/mobile-menu/mobile-menu.css +17 -16
- package/src/primitives/mobile-menu/mobile-menu.html +4 -4
- package/src/primitives/navigation-menu/navigation-menu.css +8 -3
- package/src/primitives/navigation-menu/navigation-menu.html +2 -2
- package/src/primitives/otp/otp.css +7 -2
- package/src/primitives/password-group/password-group.css +20 -12
- package/src/primitives/password-group/password-group.html +1 -1
- package/src/primitives/popover/popover.css +29 -10
- package/src/primitives/progress/progress.css +5 -0
- package/src/primitives/radio/radio.css +15 -2
- package/src/primitives/scroll-fade/scroll-fade.css +1 -1
- package/src/primitives/select/select.css +42 -21
- package/src/primitives/slider/slider.css +11 -0
- package/src/primitives/switch/switch.css +67 -20
- package/src/primitives/tabs/tabs.css +20 -1
- package/src/primitives/textarea/textarea.css +19 -10
- package/src/primitives/toaster/toaster.css +8 -4
- package/src/primitives/toggle/toggle.css +37 -9
- package/src/primitives/toggle-group/toggle-group.css +4 -0
- package/src/primitives/tooltip/tooltip.css +44 -25
- package/src/primitives/utilities/pile.html +2 -3
- package/src/base/_switches.css +0 -148
package/src/base/kit-styling.ts
CHANGED
|
@@ -140,6 +140,7 @@ export const KIT_SELECTORS: readonly string[] = [
|
|
|
140
140
|
'[data-reveal]:is([data-reveal-state~="in-view"], [data-gjs-type])',
|
|
141
141
|
'[data-ui~="badge"]',
|
|
142
142
|
'[data-ui~="badge"] > svg',
|
|
143
|
+
'[data-ui~="badge"]:is(button, a[href])',
|
|
143
144
|
'[data-ui~="badge"]:is(button, a[href]):not([aria-disabled="true"])',
|
|
144
145
|
'[data-ui~="badge"][data-badge-size="icon"]',
|
|
145
146
|
'[data-ui~="button"]',
|
|
@@ -148,6 +149,7 @@ export const KIT_SELECTORS: readonly string[] = [
|
|
|
148
149
|
'[data-ui~="button"]:not([aria-disabled="true"])',
|
|
149
150
|
'[data-ui~="button"][data-button-size="icon"]',
|
|
150
151
|
'[data-ui~="button"][data-button-size="icon-sm"]',
|
|
152
|
+
'[data-ui~="button"][data-button-size="sm"]',
|
|
151
153
|
'[data-ui~="button"][data-button-size="sm"]:has(> :is(kbd, ui-kbd-group, [data-ui~="kbd-group"]))',
|
|
152
154
|
'[data-ui~="callout"]',
|
|
153
155
|
'[data-ui~="card"]',
|
|
@@ -217,10 +219,9 @@ export const KIT_SELECTORS: readonly string[] = [
|
|
|
217
219
|
'[data-ui~="password-group"] [data-ui~="textarea"]',
|
|
218
220
|
'[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
221
|
'[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
222
|
'[data-ui~="progress"]',
|
|
223
223
|
'[data-ui~="radio"]',
|
|
224
|
+
'[data-ui~="scroll-fade"]',
|
|
224
225
|
'[data-ui~="select"]',
|
|
225
226
|
'[data-ui~="select"] > button',
|
|
226
227
|
'[data-ui~="select"] > button > svg',
|
|
@@ -230,7 +231,6 @@ export const KIT_SELECTORS: readonly string[] = [
|
|
|
230
231
|
'[data-ui~="select"] selectedcontent > svg',
|
|
231
232
|
'[data-ui~="separator"]',
|
|
232
233
|
'[data-ui~="separator"][data-separator-orientation="vertical"]',
|
|
233
|
-
'[data-ui~="sr-only"]',
|
|
234
234
|
'[data-ui~="table"]',
|
|
235
235
|
'[data-ui~="table"] :is(th, td)',
|
|
236
236
|
'[data-ui~="table"] caption',
|
|
@@ -277,55 +277,59 @@ export const KIT_SELECTORS: readonly string[] = [
|
|
|
277
277
|
export const TIER_READS: Readonly<Record<string, readonly number[]>> = {
|
|
278
278
|
band: [63],
|
|
279
279
|
bg: [
|
|
280
|
-
2, 15, 29, 38, 127, 133, 136,
|
|
281
|
-
|
|
280
|
+
2, 15, 29, 38, 127, 133, 136, 139, 141, 144, 149, 150, 151, 168, 170, 183, 204, 217, 218, 220,
|
|
281
|
+
227, 229, 238, 239, 242, 243, 244, 260, 261, 263,
|
|
282
282
|
],
|
|
283
283
|
"border-color": [
|
|
284
|
-
15, 38, 133, 136,
|
|
285
|
-
247, 261,
|
|
286
|
-
],
|
|
287
|
-
"border-style": [38, 136,
|
|
288
|
-
"border-width": [38, 136,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
284
|
+
15, 38, 133, 136, 139, 141, 144, 149, 150, 168, 170, 204, 218, 220, 238, 239, 242, 243, 244,
|
|
285
|
+
247, 260, 261,
|
|
286
|
+
],
|
|
287
|
+
"border-style": [38, 136, 141, 149, 150, 168, 218, 220, 238, 239, 260, 261],
|
|
288
|
+
"border-width": [38, 136, 141, 149, 150, 168, 169, 218, 220, 238, 239, 260, 261],
|
|
289
|
+
"corner-shape": [
|
|
290
|
+
2, 29, 38, 106, 112, 127, 133, 136, 141, 149, 150, 151, 168, 170, 183, 204, 217, 218, 220, 238,
|
|
291
|
+
239, 247, 260, 261, 263,
|
|
292
|
+
],
|
|
293
|
+
cursor: [170, 204, 260],
|
|
294
|
+
display: [2, 159, 166, 170, 204],
|
|
295
|
+
"flex-wrap": [38, 170, 204],
|
|
296
|
+
"font-family": [133, 136, 141, 229, 239, 263],
|
|
297
|
+
"font-size": [38, 133, 136, 141, 168, 220, 229, 238, 239, 263],
|
|
298
|
+
"font-weight": [133, 136, 141, 239],
|
|
299
|
+
gap: [2, 34, 38, 61, 95, 133, 136, 141, 149, 150, 159, 166, 170, 204, 239, 263],
|
|
300
|
+
h: [38, 136, 151, 168, 183, 217, 220, 260],
|
|
301
|
+
items: [38, 166, 170, 204],
|
|
302
|
+
justify: [166],
|
|
303
|
+
leading: [38, 133, 136, 141, 168, 220, 238, 239, 263],
|
|
300
304
|
m: [2],
|
|
301
305
|
"max-h": [26, 238],
|
|
302
306
|
"max-w": [133, 247],
|
|
303
|
-
"min-h": [38,
|
|
304
|
-
"min-w": [38, 58, 97, 98,
|
|
307
|
+
"min-h": [38, 141, 170, 204, 238, 239, 263],
|
|
308
|
+
"min-w": [38, 58, 97, 98, 168, 220, 238, 247, 263],
|
|
305
309
|
mx: [133, 247],
|
|
306
310
|
my: [133, 247],
|
|
307
|
-
p: [2,
|
|
308
|
-
pl: [38,
|
|
309
|
-
pr: [38,
|
|
310
|
-
px: [133, 136,
|
|
311
|
+
p: [2, 149, 150, 170, 204, 238, 247],
|
|
312
|
+
pl: [38, 168, 220],
|
|
313
|
+
pr: [38, 168, 220],
|
|
314
|
+
px: [133, 136, 141, 239, 263],
|
|
311
315
|
py: [38, 133, 263],
|
|
312
316
|
radius: [
|
|
313
|
-
2, 29, 38, 106, 112, 127, 133, 136,
|
|
317
|
+
2, 29, 38, 106, 112, 127, 133, 136, 141, 149, 150, 151, 168, 170, 183, 204, 217, 218, 220, 238,
|
|
314
318
|
239, 247, 260, 261, 263,
|
|
315
319
|
],
|
|
316
|
-
"ring-color": [136,
|
|
317
|
-
self: [
|
|
320
|
+
"ring-color": [136, 141, 239],
|
|
321
|
+
self: [159],
|
|
318
322
|
shadow: [
|
|
319
|
-
20, 26, 38, 97, 133, 136,
|
|
323
|
+
20, 26, 38, 97, 133, 136, 141, 149, 150, 151, 168, 170, 204, 218, 220, 238, 239, 247, 260, 261,
|
|
320
324
|
],
|
|
321
325
|
"shadow-angle": [4, 259],
|
|
322
326
|
size: [218, 261],
|
|
323
|
-
"template-cols": [
|
|
327
|
+
"template-cols": [159],
|
|
324
328
|
text: [
|
|
325
|
-
38, 133, 136,
|
|
329
|
+
38, 133, 136, 139, 141, 144, 149, 150, 151, 168, 170, 204, 220, 229, 238, 239, 242, 243, 244,
|
|
326
330
|
263,
|
|
327
331
|
],
|
|
328
|
-
w: [38, 98,
|
|
332
|
+
w: [38, 98, 151, 159, 168, 170, 183, 204, 217, 220, 238, 260],
|
|
329
333
|
};
|
|
330
334
|
|
|
331
335
|
/**
|
|
@@ -334,176 +338,178 @@ export const TIER_READS: Readonly<Record<string, readonly number[]>> = {
|
|
|
334
338
|
* their own value, and a tier alone applies there only through `TIER_READS`.
|
|
335
339
|
*/
|
|
336
340
|
export const TIER_BLOCKS: Readonly<Record<string, readonly number[]>> = {
|
|
337
|
-
"anchor-name": [28, 38, 49, 96, 103, 131,
|
|
338
|
-
|
|
341
|
+
"anchor-name": [28, 38, 49, 96, 103, 131, 151, 190, 193, 200, 202],
|
|
342
|
+
animation: [152, 217, 219, 259],
|
|
343
|
+
aspect: [82, 84, 140, 145, 146, 245, 246],
|
|
339
344
|
"backdrop-filter": [117],
|
|
340
|
-
band: [63,
|
|
345
|
+
band: [63, 161, 162, 165],
|
|
341
346
|
basis: [
|
|
342
|
-
18, 19, 35, 36, 39, 55, 56, 73, 87, 120,
|
|
347
|
+
18, 19, 35, 36, 39, 55, 56, 73, 87, 120, 173, 174, 179, 180, 201, 207, 208, 213, 214, 221, 265,
|
|
343
348
|
],
|
|
344
349
|
bg: [
|
|
345
350
|
2, 15, 16, 29, 38, 39, 56, 80, 83, 99, 100, 106, 109, 111, 112, 113, 117, 123, 127, 132, 133,
|
|
346
|
-
136,
|
|
347
|
-
|
|
351
|
+
136, 141, 149, 150, 151, 156, 168, 170, 179, 180, 183, 186, 187, 204, 213, 214, 217, 218, 220,
|
|
352
|
+
223, 227, 229, 232, 233, 235, 238, 239, 247, 251, 253, 257, 258, 259, 260, 261, 263,
|
|
348
353
|
],
|
|
349
|
-
"col-end": [63,
|
|
350
|
-
"col-span": [63,
|
|
351
|
-
"col-start": [63,
|
|
354
|
+
"col-end": [63, 160, 161, 162, 165],
|
|
355
|
+
"col-span": [63, 161, 162, 165],
|
|
356
|
+
"col-start": [63, 160, 161, 162, 165],
|
|
352
357
|
elevation: [
|
|
353
|
-
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136,
|
|
354
|
-
|
|
358
|
+
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 141, 149, 150, 151, 168,
|
|
359
|
+
170, 179, 180, 204, 218, 220, 223, 238, 239, 247, 254, 260, 261,
|
|
355
360
|
],
|
|
356
361
|
flex: [
|
|
357
|
-
18, 19, 35, 36, 39, 47, 48, 55, 56, 73, 87, 93, 94, 99, 118, 119, 120, 121, 136,
|
|
358
|
-
|
|
362
|
+
18, 19, 35, 36, 39, 47, 48, 55, 56, 73, 87, 93, 94, 99, 118, 119, 120, 121, 136, 141, 156, 171,
|
|
363
|
+
173, 174, 178, 179, 180, 201, 205, 207, 208, 212, 213, 214, 218, 221, 222, 224, 226, 227, 239,
|
|
359
364
|
257, 260, 261, 265,
|
|
360
365
|
],
|
|
361
|
-
"flex-wrap": [38,
|
|
366
|
+
"flex-wrap": [38, 170, 186, 204],
|
|
362
367
|
gap: [
|
|
363
368
|
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,
|
|
365
|
-
|
|
369
|
+
123, 133, 136, 141, 149, 150, 156, 159, 170, 171, 177, 186, 193, 200, 203, 204, 205, 211, 220,
|
|
370
|
+
221, 223, 239, 256, 263,
|
|
366
371
|
],
|
|
367
372
|
"gap-x": [
|
|
368
373
|
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,
|
|
370
|
-
|
|
374
|
+
123, 133, 136, 141, 149, 150, 156, 159, 170, 171, 177, 186, 193, 200, 203, 204, 205, 211, 220,
|
|
375
|
+
221, 223, 239, 256, 263,
|
|
371
376
|
],
|
|
372
377
|
"gap-y": [
|
|
373
378
|
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,
|
|
375
|
-
|
|
379
|
+
123, 133, 136, 149, 150, 156, 159, 170, 171, 177, 186, 193, 200, 203, 204, 205, 211, 220, 221,
|
|
380
|
+
223, 256, 263,
|
|
376
381
|
],
|
|
377
|
-
"grid-cols": [62, 64,
|
|
378
|
-
"grid-rows": [67, 68,
|
|
382
|
+
"grid-cols": [62, 64, 159, 203],
|
|
383
|
+
"grid-rows": [67, 68, 155, 158],
|
|
384
|
+
isolation: [29, 33, 127, 151, 190, 254, 265],
|
|
379
385
|
items: [
|
|
380
386
|
20, 21, 29, 38, 47, 48, 51, 54, 61, 62, 69, 70, 83, 85, 100, 106, 108, 110, 112, 113, 116, 123,
|
|
381
|
-
127, 133, 136, 137,
|
|
382
|
-
|
|
387
|
+
127, 133, 136, 137, 141, 142, 154, 166, 170, 171, 173, 174, 177, 187, 188, 193, 200, 203, 204,
|
|
388
|
+
205, 207, 208, 211, 218, 220, 221, 223, 225, 239, 241, 261, 263,
|
|
383
389
|
],
|
|
384
390
|
justify: [
|
|
385
|
-
20, 21, 69, 70, 76, 83, 86, 113, 115, 136, 137,
|
|
386
|
-
|
|
391
|
+
20, 21, 51, 69, 70, 76, 83, 86, 113, 115, 136, 137, 141, 142, 154, 155, 156, 166, 171, 186, 187,
|
|
392
|
+
200, 205, 220, 239, 241, 263,
|
|
387
393
|
],
|
|
388
394
|
opacity: [
|
|
389
|
-
0, 1, 47, 66, 71, 72, 84, 88, 89, 109, 114, 117, 123, 124, 125, 126, 133, 134, 135,
|
|
390
|
-
|
|
395
|
+
0, 1, 47, 66, 71, 72, 84, 88, 89, 109, 114, 117, 123, 124, 125, 126, 133, 134, 135, 163, 164,
|
|
396
|
+
189, 240, 247, 254, 255, 262, 264,
|
|
391
397
|
],
|
|
392
|
-
order: [24, 43, 53,
|
|
398
|
+
order: [24, 43, 53, 172, 173, 174, 175, 176, 206, 207, 208, 209, 210],
|
|
393
399
|
p: [
|
|
394
|
-
2, 3, 5, 6, 22, 25, 38, 40, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 75, 76, 83, 100, 104,
|
|
395
|
-
113, 117, 122, 123, 133, 136, 137,
|
|
396
|
-
155,
|
|
397
|
-
205,
|
|
398
|
-
250, 253, 263, 266, 267, 268,
|
|
400
|
+
2, 3, 5, 6, 22, 25, 38, 40, 41, 44, 50, 51, 53, 54, 56, 57, 59, 60, 70, 75, 76, 83, 100, 104,
|
|
401
|
+
112, 113, 117, 122, 123, 133, 136, 137, 140, 141, 142, 143, 145, 146, 148, 149, 150, 152, 154,
|
|
402
|
+
155, 156, 157, 168, 170, 171, 173, 174, 177, 179, 180, 181, 182, 184, 185, 186, 187, 192, 200,
|
|
403
|
+
204, 205, 207, 208, 211, 213, 214, 215, 216, 220, 223, 230, 231, 234, 238, 239, 241, 245, 246,
|
|
404
|
+
247, 250, 253, 263, 266, 267, 268,
|
|
399
405
|
],
|
|
400
406
|
pb: [
|
|
401
|
-
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 75, 76, 104, 112, 117, 122, 123,
|
|
402
|
-
|
|
403
|
-
|
|
407
|
+
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 54, 56, 57, 59, 60, 70, 75, 76, 104, 112, 117, 122, 123,
|
|
408
|
+
133, 137, 140, 142, 145, 146, 149, 150, 152, 154, 155, 156, 170, 173, 174, 180, 184, 186, 187,
|
|
409
|
+
192, 200, 204, 207, 208, 214, 230, 231, 234, 238, 241, 245, 246, 247, 253, 263,
|
|
404
410
|
],
|
|
405
411
|
pl: [
|
|
406
|
-
2, 3, 5, 6, 22, 25, 38, 40, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 83, 100, 112, 113, 117,
|
|
407
|
-
123, 133, 136, 137,
|
|
408
|
-
|
|
409
|
-
|
|
412
|
+
2, 3, 5, 6, 22, 25, 38, 40, 41, 44, 50, 51, 53, 54, 56, 57, 59, 60, 70, 83, 100, 112, 113, 117,
|
|
413
|
+
122, 123, 133, 136, 137, 140, 141, 142, 143, 145, 146, 148, 149, 150, 152, 154, 156, 157, 168,
|
|
414
|
+
170, 171, 177, 179, 180, 181, 184, 185, 186, 187, 192, 200, 204, 205, 211, 213, 214, 215, 220,
|
|
415
|
+
223, 230, 231, 238, 239, 241, 245, 246, 247, 250, 253, 263, 266, 267, 268,
|
|
410
416
|
],
|
|
411
417
|
"place-content": [
|
|
412
|
-
20, 21, 69, 70, 76, 83, 86, 113, 115, 136, 137,
|
|
413
|
-
|
|
418
|
+
20, 21, 51, 69, 70, 76, 83, 86, 113, 115, 136, 137, 141, 142, 154, 155, 156, 166, 171, 186, 187,
|
|
419
|
+
200, 205, 220, 239, 241, 247, 263,
|
|
414
420
|
],
|
|
415
421
|
"place-items": [
|
|
416
422
|
20, 21, 29, 38, 47, 48, 51, 54, 61, 62, 69, 70, 83, 85, 100, 106, 108, 110, 112, 113, 116, 123,
|
|
417
|
-
127, 133, 136, 137,
|
|
418
|
-
|
|
423
|
+
127, 133, 136, 137, 141, 142, 154, 166, 170, 171, 173, 174, 177, 187, 188, 193, 200, 203, 204,
|
|
424
|
+
205, 207, 208, 211, 218, 220, 221, 223, 225, 239, 241, 261, 263,
|
|
419
425
|
],
|
|
420
426
|
position: [
|
|
421
|
-
13, 17, 29, 30, 33, 65, 66, 77, 78, 79, 82, 90, 91, 101, 105, 109, 111, 112, 113, 114, 117,
|
|
422
|
-
127, 128, 132,
|
|
427
|
+
13, 17, 29, 30, 33, 47, 65, 66, 77, 78, 79, 82, 90, 91, 101, 105, 109, 111, 112, 113, 114, 117,
|
|
428
|
+
123, 127, 128, 132, 138, 146, 147, 153, 155, 190, 191, 199, 218, 239, 240, 247, 251, 254, 260,
|
|
423
429
|
261, 264, 265,
|
|
424
430
|
],
|
|
425
|
-
"position-anchor": [26, 45, 59, 97, 102, 111, 133,
|
|
431
|
+
"position-anchor": [26, 45, 59, 97, 102, 111, 133, 194, 195, 196, 197, 198],
|
|
426
432
|
"position-area": [117, 247],
|
|
427
433
|
pr: [
|
|
428
|
-
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 100, 112, 113, 117, 122, 123, 133,
|
|
429
|
-
136, 137,
|
|
430
|
-
|
|
431
|
-
|
|
434
|
+
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 54, 56, 57, 59, 60, 70, 100, 112, 113, 117, 122, 123, 133,
|
|
435
|
+
136, 137, 140, 141, 142, 143, 145, 146, 148, 149, 150, 152, 154, 156, 157, 168, 170, 171, 177,
|
|
436
|
+
179, 180, 182, 184, 186, 187, 192, 200, 204, 205, 211, 213, 214, 216, 220, 223, 230, 231, 238,
|
|
437
|
+
239, 241, 245, 246, 247, 253, 263,
|
|
432
438
|
],
|
|
433
439
|
pt: [
|
|
434
|
-
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 75, 76, 104, 112, 117, 122, 123,
|
|
435
|
-
|
|
436
|
-
|
|
440
|
+
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 54, 56, 57, 59, 60, 70, 75, 76, 104, 112, 117, 122, 123,
|
|
441
|
+
133, 137, 140, 142, 145, 146, 149, 150, 152, 154, 156, 157, 170, 173, 174, 180, 184, 186, 187,
|
|
442
|
+
192, 200, 204, 207, 208, 214, 230, 231, 234, 238, 241, 245, 246, 247, 253, 263,
|
|
437
443
|
],
|
|
438
444
|
px: [
|
|
439
|
-
2, 3, 5, 6, 22, 25, 38, 40, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 83, 100, 112, 113, 117,
|
|
440
|
-
123, 133, 136, 137,
|
|
441
|
-
|
|
442
|
-
|
|
445
|
+
2, 3, 5, 6, 22, 25, 38, 40, 41, 44, 50, 51, 53, 54, 56, 57, 59, 60, 70, 83, 100, 112, 113, 117,
|
|
446
|
+
122, 123, 133, 136, 137, 140, 141, 142, 143, 145, 146, 148, 149, 150, 152, 154, 156, 157, 168,
|
|
447
|
+
170, 171, 177, 179, 180, 181, 182, 184, 185, 186, 187, 192, 200, 204, 205, 211, 213, 214, 215,
|
|
448
|
+
216, 220, 223, 230, 231, 238, 239, 241, 245, 246, 247, 250, 253, 263, 266, 267, 268,
|
|
443
449
|
],
|
|
444
450
|
py: [
|
|
445
|
-
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 56, 57, 59, 60, 70, 75, 76, 104, 112, 117, 122, 123,
|
|
446
|
-
|
|
447
|
-
|
|
451
|
+
2, 3, 22, 25, 38, 41, 44, 50, 51, 53, 54, 56, 57, 59, 60, 70, 75, 76, 104, 112, 117, 122, 123,
|
|
452
|
+
133, 137, 140, 142, 145, 146, 149, 150, 152, 154, 155, 156, 157, 170, 173, 174, 180, 184, 186,
|
|
453
|
+
187, 192, 200, 204, 207, 208, 214, 230, 231, 234, 238, 241, 245, 246, 247, 253, 263,
|
|
448
454
|
],
|
|
449
455
|
radius: [
|
|
450
456
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
451
|
-
130, 132, 133, 136,
|
|
452
|
-
|
|
457
|
+
130, 132, 133, 136, 141, 149, 150, 151, 168, 170, 178, 179, 180, 183, 192, 200, 204, 212, 213,
|
|
458
|
+
214, 217, 218, 220, 223, 238, 239, 247, 253, 260, 261, 262, 263,
|
|
453
459
|
],
|
|
454
460
|
"radius-b": [
|
|
455
461
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
456
|
-
130, 132, 133, 136,
|
|
457
|
-
|
|
462
|
+
130, 132, 133, 136, 141, 149, 150, 151, 168, 170, 178, 179, 180, 183, 192, 200, 204, 212, 213,
|
|
463
|
+
214, 217, 218, 220, 223, 238, 239, 247, 253, 260, 261, 262, 263,
|
|
458
464
|
],
|
|
459
465
|
"radius-l": [
|
|
460
466
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
461
|
-
130, 132, 133, 136,
|
|
462
|
-
|
|
467
|
+
130, 132, 133, 136, 141, 149, 150, 151, 168, 170, 178, 179, 180, 183, 192, 200, 204, 212, 213,
|
|
468
|
+
214, 217, 218, 220, 223, 238, 239, 247, 253, 260, 261, 262, 263,
|
|
463
469
|
],
|
|
464
470
|
"radius-r": [
|
|
465
471
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
466
|
-
130, 132, 133, 136,
|
|
467
|
-
|
|
472
|
+
130, 132, 133, 136, 141, 149, 150, 151, 168, 170, 178, 179, 180, 183, 192, 200, 204, 212, 213,
|
|
473
|
+
214, 217, 218, 220, 223, 238, 239, 247, 253, 260, 261, 262, 263,
|
|
468
474
|
],
|
|
469
475
|
"radius-t": [
|
|
470
476
|
2, 14, 29, 31, 32, 38, 47, 71, 74, 80, 81, 82, 87, 90, 100, 106, 111, 112, 113, 123, 127, 129,
|
|
471
|
-
130, 132, 133, 136,
|
|
472
|
-
|
|
477
|
+
130, 132, 133, 136, 141, 149, 150, 151, 168, 170, 178, 179, 180, 183, 192, 200, 204, 212, 213,
|
|
478
|
+
214, 217, 218, 220, 223, 238, 239, 247, 253, 260, 261, 262, 263,
|
|
473
479
|
],
|
|
474
480
|
ring: [
|
|
475
|
-
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136,
|
|
476
|
-
|
|
481
|
+
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 141, 149, 150, 151, 168,
|
|
482
|
+
170, 179, 180, 204, 218, 220, 223, 238, 239, 247, 254, 260, 261,
|
|
477
483
|
],
|
|
478
484
|
"ring-color": [
|
|
479
|
-
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136,
|
|
480
|
-
|
|
485
|
+
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 141, 149, 150, 151, 168,
|
|
486
|
+
170, 179, 180, 204, 218, 220, 223, 238, 239, 247, 254, 260, 261,
|
|
481
487
|
],
|
|
482
488
|
"ring-offset": [
|
|
483
|
-
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136,
|
|
484
|
-
|
|
489
|
+
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 141, 149, 150, 151, 168,
|
|
490
|
+
170, 179, 180, 204, 218, 220, 223, 238, 239, 247, 254, 260, 261,
|
|
485
491
|
],
|
|
486
492
|
"ring-offset-color": [
|
|
487
|
-
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136,
|
|
488
|
-
|
|
493
|
+
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 141, 149, 150, 151, 168,
|
|
494
|
+
170, 179, 180, 204, 218, 220, 223, 238, 239, 247, 254, 260, 261,
|
|
489
495
|
],
|
|
490
|
-
"row-end": [
|
|
491
|
-
"row-span": [
|
|
492
|
-
"row-start": [
|
|
493
|
-
self: [
|
|
496
|
+
"row-end": [152, 156, 157, 160, 161, 162, 165],
|
|
497
|
+
"row-span": [152, 156, 157, 161, 162, 165],
|
|
498
|
+
"row-start": [152, 156, 157, 160, 161, 162, 165],
|
|
499
|
+
self: [155, 156, 159, 165, 167, 228],
|
|
494
500
|
shadow: [
|
|
495
|
-
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136,
|
|
496
|
-
|
|
501
|
+
20, 26, 27, 38, 45, 46, 58, 97, 102, 109, 111, 113, 117, 123, 133, 136, 141, 149, 150, 151, 168,
|
|
502
|
+
170, 179, 180, 204, 218, 220, 223, 238, 239, 247, 254, 260, 261,
|
|
497
503
|
],
|
|
498
504
|
shrink: [
|
|
499
|
-
18, 19, 35, 36, 39, 47, 48, 55, 56, 73, 87, 93, 94, 99, 118, 119, 120, 121, 136,
|
|
500
|
-
|
|
505
|
+
18, 19, 35, 36, 39, 47, 48, 55, 56, 73, 87, 93, 94, 99, 118, 119, 120, 121, 136, 141, 156, 171,
|
|
506
|
+
178, 179, 180, 201, 205, 212, 213, 214, 218, 221, 222, 224, 226, 227, 239, 257, 260, 261, 265,
|
|
501
507
|
],
|
|
502
|
-
"template-cols": [62, 64,
|
|
503
|
-
"template-rows": [67, 68,
|
|
504
|
-
"text-align": [107, 115,
|
|
505
|
-
"text-decoration": [136,
|
|
508
|
+
"template-cols": [62, 64, 159, 203],
|
|
509
|
+
"template-rows": [67, 68, 155, 158],
|
|
510
|
+
"text-align": [107, 115, 165, 200, 220, 229, 230, 252],
|
|
511
|
+
"text-decoration": [136, 141, 192, 237, 239, 248, 249],
|
|
506
512
|
"text-wrap": [7, 8, 9, 10, 11, 12, 113, 133, 236, 251],
|
|
507
|
-
translate: [66,
|
|
508
|
-
z: [65, 77, 78, 91, 111, 113,
|
|
513
|
+
translate: [66, 163, 164],
|
|
514
|
+
z: [65, 77, 78, 91, 111, 113, 153, 187],
|
|
509
515
|
};
|
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,"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,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 = [
|