@pontive/pontkit-core 3.3.0 → 3.4.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/styles.css CHANGED
@@ -40,6 +40,7 @@
40
40
  * dimension.css the dimension unit, size scale and keywords, space keywords, size/inset defaults
41
41
  * filter.css the blur unit (--pont-ref-filter-blur) and the blur scale derived from it
42
42
  * layout.css aspect ratios (--pont-ref-layout-aspect-auto, -square, -video)
43
+ * motion.css durations, easings, transition properties (ref) and the transition/animation roles (sem)
43
44
  * opacity.css the opacity unit (--pont-ref-opacity), none/full, and the disabled role
44
45
  * radius.css the radius knob (--pont-ref-radius) and the ref scale derived from it
45
46
  * typography.css font stacks (ref) and roles (sem), size, weight, tracking and leading scales (ref)
@@ -323,6 +324,257 @@
323
324
  }
324
325
  }
325
326
 
327
+ /* ./motion.css */
328
+ /*
329
+ * ===========================================================================
330
+ * MOTION TOKENS
331
+ * ===========================================================================
332
+ */
333
+
334
+ /*
335
+ * --------------------------------------------------
336
+ * MOTION DURATION TOKENS
337
+ * `[transition|animation]-duration`, `[transition|animation]-delay`
338
+ * --------------------------------------------------
339
+ */
340
+
341
+ @layer pont.tokens {
342
+ :root {
343
+ --pont-ref-motion-duration: 1ms;
344
+
345
+ --pont-ref-motion-duration-s: calc(var(--pont-ref-motion-duration) * 1000);
346
+ }
347
+ }
348
+
349
+ /*
350
+ * --------------------------------------------------
351
+ * MOTION EASING TOKENS
352
+ * `[transition|animation]-timing-function`
353
+ * --------------------------------------------------
354
+ */
355
+
356
+ @layer pont.tokens {
357
+ :root {
358
+ --pont-ref-motion-easing-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
359
+ --pont-ref-motion-easing-linear: cubic-bezier(0, 0, 1, 1);
360
+
361
+ --pont-ref-motion-easing-ease-in: cubic-bezier(0.4, 0, 1, 1);
362
+ --pont-ref-motion-easing-ease-out: cubic-bezier(0, 0, 0.2, 1);
363
+ --pont-ref-motion-easing-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
364
+
365
+ --pont-ref-motion-easing-ease-in-native: cubic-bezier(0.42, 0, 1, 1);
366
+ --pont-ref-motion-easing-ease-out-native: cubic-bezier(0, 0, 0.58, 1);
367
+ --pont-ref-motion-easing-ease-in-out-native: cubic-bezier(0.42, 0, 0.58, 1);
368
+ }
369
+ }
370
+
371
+ /*
372
+ * ---------------------------------------------------------------------------
373
+ * MOTION TRANSITION TOKENS
374
+ * ---------------------------------------------------------------------------
375
+ */
376
+
377
+ /*
378
+ * --------------------------------------------------
379
+ * MOTION TRANSITION PROPERTY TOKENS
380
+ * `transition-property`
381
+ * --------------------------------------------------
382
+ */
383
+
384
+ @layer pont.tokens {
385
+ :root {
386
+ --pont-ref-motion-trans-property-all: all;
387
+ --pont-ref-motion-trans-property-none: none;
388
+
389
+ --pont-ref-motion-trans-property-colors:
390
+ color, background-color, border-color, outline-color,
391
+ text-decoration-color, fill, stroke, --pont-gradient-from,
392
+ --pont-gradient-via, --pont-gradient-to;
393
+ --pont-ref-motion-trans-property-opacity: opacity;
394
+ --pont-ref-motion-trans-property-shadow: box-shadow;
395
+ --pont-ref-motion-trans-property-transform:
396
+ transform, translate, scale, rotate;
397
+ }
398
+ }
399
+
400
+ @layer pont.tokens {
401
+ :root {
402
+ --pont-sem-motion-trans-property:
403
+ var(--pont-ref-motion-trans-property-colors),
404
+ var(--pont-ref-motion-trans-property-opacity),
405
+ var(--pont-ref-motion-trans-property-shadow),
406
+ var(--pont-ref-motion-trans-property-transform), filter,
407
+ -webkit-backdrop-filter, backdrop-filter, display, content-visibility,
408
+ overlay, pointer-events;
409
+ }
410
+ }
411
+
412
+ /*
413
+ * --------------------------------------------------
414
+ * MOTION TRANSITION DURATION TOKENS
415
+ * `transition-duration`, `transition-delay`
416
+ * --------------------------------------------------
417
+ */
418
+
419
+ @layer pont.tokens {
420
+ :root {
421
+ --pont-sem-motion-trans-duration: calc(
422
+ var(--pont-ref-motion-duration) * 150
423
+ );
424
+ --pont-sem-motion-trans-duration-slow: calc(
425
+ var(--pont-ref-motion-duration) * 200
426
+ );
427
+ --pont-sem-motion-trans-duration-fast: calc(
428
+ var(--pont-ref-motion-duration) * 100
429
+ );
430
+ }
431
+ }
432
+
433
+ /*
434
+ * --------------------------------------------------
435
+ * MOTION TRANSITION EASING TOKENS
436
+ * `transition-timing-function`
437
+ * --------------------------------------------------
438
+ */
439
+
440
+ @layer pont.tokens {
441
+ :root {
442
+ --pont-sem-motion-trans-easing: var(--pont-ref-motion-easing-ease-in-out);
443
+ }
444
+ }
445
+
446
+ /*
447
+ * ---------------------------------------------------------------------------
448
+ * MOTION ANIMATION TOKENS
449
+ * ---------------------------------------------------------------------------
450
+ */
451
+
452
+ /*
453
+ * --------------------------------------------------
454
+ * MOTION ANIMATION NAME TOKENS
455
+ * `animation-name`
456
+ * --------------------------------------------------
457
+ */
458
+
459
+ @layer pont.tokens {
460
+ :root {
461
+ --pont-sem-motion-anim-spin-name: pont-spin;
462
+ --pont-sem-motion-anim-ping-name: pont-ping;
463
+ --pont-sem-motion-anim-pulse-name: pont-pulse;
464
+ --pont-sem-motion-anim-bounce-name: pont-bounce;
465
+ }
466
+ }
467
+
468
+ /*
469
+ * --------------------------------------------------
470
+ * MOTION ANIMATION DURATION TOKENS
471
+ * `animation-duration`, `animation-delay`
472
+ * --------------------------------------------------
473
+ */
474
+
475
+ @layer pont.tokens {
476
+ :root {
477
+ --pont-sem-motion-anim-duration: var(--pont-ref-motion-duration-s);
478
+ --pont-sem-motion-anim-duration-slow: calc(
479
+ var(--pont-ref-motion-duration-s) * 2
480
+ );
481
+
482
+ --pont-sem-motion-anim-spin-duration: var(--pont-sem-motion-anim-duration);
483
+ --pont-sem-motion-anim-ping-duration: var(--pont-sem-motion-anim-duration);
484
+ --pont-sem-motion-anim-pulse-duration: var(
485
+ --pont-sem-motion-anim-duration-slow
486
+ );
487
+ --pont-sem-motion-anim-bounce-duration: var(
488
+ --pont-sem-motion-anim-duration
489
+ );
490
+ }
491
+ }
492
+
493
+ /*
494
+ * --------------------------------------------------
495
+ * MOTION ANIMATION EASING TOKENS
496
+ * `animation-timing-function`
497
+ * --------------------------------------------------
498
+ */
499
+
500
+ @layer pont.tokens {
501
+ :root {
502
+ --pont-sem-motion-anim-easing: var(--pont-ref-motion-easing-ease);
503
+
504
+ --pont-sem-motion-anim-spin-easing: var(--pont-ref-motion-easing-linear);
505
+ --pont-sem-motion-anim-ping-easing: var(--pont-ref-motion-easing-ease-out);
506
+ --pont-sem-motion-anim-pulse-easing: cubic-bezier(0.4, 0, 0.6, 1);
507
+ --pont-sem-motion-anim-bounce-easing: var(--pont-sem-motion-anim-easing);
508
+ }
509
+ }
510
+
511
+ /*
512
+ * --------------------------------------------------
513
+ * MOTION ANIMATION ITERATION TOKENS
514
+ * `animation-iteration-count`
515
+ * --------------------------------------------------
516
+ */
517
+
518
+ @layer pont.tokens {
519
+ :root {
520
+ --pont-ref-motion-anim-iteration-infinite: infinite;
521
+ }
522
+ }
523
+
524
+ @layer pont.tokens {
525
+ :root {
526
+ --pont-sem-motion-anim-spin-iteration: var(
527
+ --pont-ref-motion-anim-iteration-infinite
528
+ );
529
+ --pont-sem-motion-anim-ping-iteration: var(
530
+ --pont-ref-motion-anim-iteration-infinite
531
+ );
532
+ --pont-sem-motion-anim-pulse-iteration: var(
533
+ --pont-ref-motion-anim-iteration-infinite
534
+ );
535
+ --pont-sem-motion-anim-bounce-iteration: var(
536
+ --pont-ref-motion-anim-iteration-infinite
537
+ );
538
+ }
539
+ }
540
+
541
+ /*
542
+ * --------------------------------------------------
543
+ * MOTION ANIMATION 'COMPOSITE' TOKENS
544
+ * `animation`
545
+ * --------------------------------------------------
546
+ */
547
+
548
+ @layer pont.tokens {
549
+ :root {
550
+ --pont-ref-motion-anim-none: none;
551
+ }
552
+ }
553
+
554
+ @layer pont.tokens {
555
+ :root {
556
+ --pont-sem-motion-anim-spin: var(--pont-sem-motion-anim-spin-name)
557
+ var(--pont-sem-motion-anim-spin-duration)
558
+ var(--pont-sem-motion-anim-spin-easing)
559
+ var(--pont-sem-motion-anim-spin-iteration);
560
+
561
+ --pont-sem-motion-anim-ping: var(--pont-sem-motion-anim-ping-name)
562
+ var(--pont-sem-motion-anim-ping-duration)
563
+ var(--pont-sem-motion-anim-ping-easing)
564
+ var(--pont-sem-motion-anim-ping-iteration);
565
+
566
+ --pont-sem-motion-anim-pulse: var(--pont-sem-motion-anim-pulse-name)
567
+ var(--pont-sem-motion-anim-pulse-duration)
568
+ var(--pont-sem-motion-anim-pulse-easing)
569
+ var(--pont-sem-motion-anim-pulse-iteration);
570
+
571
+ --pont-sem-motion-anim-bounce: var(--pont-sem-motion-anim-bounce-name)
572
+ var(--pont-sem-motion-anim-bounce-duration)
573
+ var(--pont-sem-motion-anim-bounce-easing)
574
+ var(--pont-sem-motion-anim-bounce-iteration);
575
+ }
576
+ }
577
+
326
578
  /* ./opacity.css */
327
579
  /*
328
580
  * ===========================================================================
@@ -1002,19 +1254,6 @@
1002
1254
  }
1003
1255
  }
1004
1256
 
1005
- /* ./ref/motion.css */
1006
- /*
1007
- * ===========================================================================
1008
- * MOTION REFERENCE TOKENS
1009
- * ===========================================================================
1010
- */
1011
-
1012
- @layer pont.tokens {
1013
- :root {
1014
- --pont-ref-animate-iteration-infinite: infinite;
1015
- }
1016
- }
1017
-
1018
1257
  /* ./sem/color.css */
1019
1258
  /*
1020
1259
  * sem · colour roles: shadcn's set plus pont's status colours, built on the
@@ -1185,66 +1424,6 @@
1185
1424
  }
1186
1425
  }
1187
1426
 
1188
- /* ./sem/motion.css */
1189
- /*
1190
- * ===========================================================================
1191
- * MOTION SEMANTIC TOKENS
1192
- * ===========================================================================
1193
- */
1194
-
1195
- @layer pont.tokens {
1196
- :root {
1197
- --pont-sem-duration: 150ms;
1198
-
1199
- --pont-sem-ease-linear: linear;
1200
- --pont-sem-ease-in: cubic-bezier(0.4, 0, 1, 1);
1201
- --pont-sem-ease-out: cubic-bezier(0, 0, 0.2, 1);
1202
- --pont-sem-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
1203
-
1204
- --pont-sem-animate-spin-name: pont-spin;
1205
- --pont-sem-animate-spin-duration: 1s;
1206
- --pont-sem-animate-spin-function: var(--pont-sem-ease-linear);
1207
- --pont-sem-animate-spin-iteration: var(
1208
- --pont-ref-animate-iteration-infinite
1209
- );
1210
- --pont-sem-animate-spin: var(--pont-sem-animate-spin-name)
1211
- var(--pont-sem-animate-spin-duration)
1212
- var(--pont-sem-animate-spin-function)
1213
- var(--pont-sem-animate-spin-iteration);
1214
-
1215
- --pont-sem-animate-ping-name: pont-ping;
1216
- --pont-sem-animate-ping-duration: 1s;
1217
- --pont-sem-animate-ping-function: var(--pont-sem-ease-out);
1218
- --pont-sem-animate-ping-iteration: var(
1219
- --pont-ref-animate-iteration-infinite
1220
- );
1221
- --pont-sem-animate-ping: var(--pont-sem-animate-ping-name)
1222
- var(--pont-sem-animate-ping-duration)
1223
- var(--pont-sem-animate-ping-function)
1224
- var(--pont-sem-animate-ping-iteration);
1225
-
1226
- --pont-sem-animate-pulse-name: pont-pulse;
1227
- --pont-sem-animate-pulse-duration: 2s;
1228
- --pont-sem-animate-pulse-function: cubic-bezier(0.4, 0, 0.6, 1);
1229
- --pont-sem-animate-pulse-iteration: var(
1230
- --pont-ref-animate-iteration-infinite
1231
- );
1232
- --pont-sem-animate-pulse: var(--pont-sem-animate-pulse-name)
1233
- var(--pont-sem-animate-pulse-duration)
1234
- var(--pont-sem-animate-pulse-function)
1235
- var(--pont-sem-animate-pulse-iteration);
1236
-
1237
- --pont-sem-animate-bounce-name: pont-bounce;
1238
- --pont-sem-animate-bounce-duration: 1s;
1239
- --pont-sem-animate-bounce-iteration: var(
1240
- --pont-ref-animate-iteration-infinite
1241
- );
1242
- --pont-sem-animate-bounce: var(--pont-sem-animate-bounce-name)
1243
- var(--pont-sem-animate-bounce-duration)
1244
- var(--pont-sem-animate-bounce-iteration);
1245
- }
1246
- }
1247
-
1248
1427
  /* ./sem/shadow.css */
1249
1428
  /*
1250
1429
  * ===========================================================================
@@ -1290,7 +1469,11 @@
1290
1469
 
1291
1470
  /* ./base.css */
1292
1471
  /*
1293
- * pont base: the machinery every component recipe shares.
1472
+ * ===========================================================================
1473
+ * BASE STYLES
1474
+ * ---------------------------------------------------------------------------
1475
+ * The machinery every component recipe shares
1476
+ * ===========================================================================
1294
1477
  *
1295
1478
  * Nothing here styles the page. Components never rely on a global reset
1296
1479
  * (shadcn relies on Tailwind preflight); every recipe states the box,
@@ -1299,23 +1482,96 @@
1299
1482
  */
1300
1483
 
1301
1484
  /*
1485
+ * ---------------------------------------------------------------------------
1486
+ * PROPERTY AT-RULES
1487
+ * ---------------------------------------------------------------------------
1488
+ * `@property`
1489
+ * ---------------------------------------------------------------------------
1490
+ */
1491
+
1492
+ /*
1493
+ * --------------------------------------------------
1494
+ * GRADIENT PROPERTY AT-RULES
1495
+ * --------------------------------------------------
1496
+ */
1497
+
1498
+ @property --pont-gradient-position {
1499
+ syntax: "*";
1500
+ inherits: false;
1501
+ }
1502
+
1503
+ @property --pont-gradient-from {
1504
+ syntax: "<color>";
1505
+ inherits: false;
1506
+ initial-value: #0000;
1507
+ }
1508
+
1509
+ @property --pont-gradient-via {
1510
+ syntax: "<color>";
1511
+ inherits: false;
1512
+ initial-value: #0000;
1513
+ }
1514
+
1515
+ @property --pont-gradient-to {
1516
+ syntax: "<color>";
1517
+ inherits: false;
1518
+ initial-value: #0000;
1519
+ }
1520
+
1521
+ @property --pont-gradient-stops {
1522
+ syntax: "*";
1523
+ inherits: false;
1524
+ }
1525
+
1526
+ @property --pont-gradient-via-stops {
1527
+ syntax: "*";
1528
+ inherits: false;
1529
+ }
1530
+
1531
+ @property --pont-gradient-from-position {
1532
+ syntax: "<length-percentage>";
1533
+ inherits: false;
1534
+ initial-value: 0%;
1535
+ }
1536
+
1537
+ @property --pont-gradient-via-position {
1538
+ syntax: "<length-percentage>";
1539
+ inherits: false;
1540
+ initial-value: 50%;
1541
+ }
1542
+
1543
+ @property --pont-gradient-to-position {
1544
+ syntax: "<length-percentage>";
1545
+ inherits: false;
1546
+ initial-value: 100%;
1547
+ }
1548
+
1549
+ /*
1550
+ * --------------------------------------------------
1551
+ * SHADOW PROPERTY AT-RULES
1552
+ * --------------------------------------------------
1553
+ *
1302
1554
  * Box-shadow composition (how Tailwind composes `shadow-xs` + `ring-3`).
1303
1555
  * A recipe sets `--pont-shadow` and/or `--pont-ring-shadow` and the
1304
1556
  * shared declaration below combines them, so a focus ring never erases the
1305
1557
  * elevation shadow. `inherits: false` stops a parent's ring leaking into
1306
1558
  * children. @property is global; it cannot be layered and does not need to be.
1307
1559
  */
1560
+
1308
1561
  @property --pont-shadow {
1309
1562
  syntax: "*";
1310
1563
  inherits: false;
1311
1564
  initial-value: 0 0 #0000;
1312
1565
  }
1566
+
1313
1567
  @property --pont-ring-shadow {
1314
1568
  syntax: "*";
1315
1569
  inherits: false;
1316
1570
  initial-value: 0 0 #0000;
1317
1571
  }
1318
1572
 
1573
+ /* * -------------------------------------------------------------------- * */
1574
+
1319
1575
  @layer pont.base {
1320
1576
  /* Tier 3 shells: a tag for authors, no box, no role, never styled. */
1321
1577
  [data-pont-shell] {
@@ -1360,6 +1616,7 @@
1360
1616
  transform: rotate(360deg);
1361
1617
  }
1362
1618
  }
1619
+
1363
1620
  @keyframes pont-ping {
1364
1621
  75%,
1365
1622
  100% {
@@ -1367,11 +1624,13 @@
1367
1624
  opacity: 0;
1368
1625
  }
1369
1626
  }
1627
+
1370
1628
  @keyframes pont-pulse {
1371
1629
  50% {
1372
1630
  opacity: 0.5;
1373
1631
  }
1374
1632
  }
1633
+
1375
1634
  @keyframes pont-bounce {
1376
1635
  0%,
1377
1636
  100% {
@@ -1495,9 +1754,9 @@
1495
1754
  white-space: nowrap;
1496
1755
  user-select: none;
1497
1756
  outline: none;
1498
- transition-property: all;
1499
- transition-duration: var(--pont-sem-duration);
1500
- transition-timing-function: var(--pont-sem-ease-in-out);
1757
+ transition-property: var(--pont-ref-motion-trans-property-all);
1758
+ transition-duration: var(--pont-sem-motion-trans-duration);
1759
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
1501
1760
 
1502
1761
  /* .cn-button */
1503
1762
  border: var(--pont-sem-border-width) solid var(--_pont-button-border-color);
@@ -1781,8 +2040,8 @@
1781
2040
  --pont-shadow: var(--pont-sem-shadow-xs);
1782
2041
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
1783
2042
  transition-property: color, box-shadow;
1784
- transition-duration: var(--pont-sem-duration);
1785
- transition-timing-function: var(--pont-sem-ease-in-out);
2043
+ transition-duration: var(--pont-sem-motion-trans-duration);
2044
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
1786
2045
  }
1787
2046
 
1788
2047
  @media (width >= 48rem) {
@@ -1871,8 +2130,8 @@
1871
2130
  --pont-shadow: var(--pont-sem-shadow-xs);
1872
2131
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
1873
2132
  transition-property: color, box-shadow;
1874
- transition-duration: var(--pont-sem-duration);
1875
- transition-timing-function: var(--pont-sem-ease-in-out);
2133
+ transition-duration: var(--pont-sem-motion-trans-duration);
2134
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
1876
2135
  }
1877
2136
 
1878
2137
  @media (width >= 48rem) {
@@ -1951,9 +2210,9 @@
1951
2210
  color: inherit;
1952
2211
  --pont-shadow: var(--pont-sem-shadow-xs);
1953
2212
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
1954
- transition-property: box-shadow;
1955
- transition-duration: var(--pont-sem-duration);
1956
- transition-timing-function: var(--pont-sem-ease-in-out);
2213
+ transition-property: var(--pont-ref-motion-trans-property-shadow);
2214
+ transition-duration: var(--pont-sem-motion-trans-duration);
2215
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
1957
2216
  }
1958
2217
 
1959
2218
  /* Enlarged hit area: after:absolute after:-inset-x-3 after:-inset-y-2 */
@@ -2007,7 +2266,7 @@
2007
2266
  display: grid;
2008
2267
  place-content: center;
2009
2268
  color: currentColor;
2010
- transition: none;
2269
+ transition-property: var(--pont-ref-motion-trans-property-none);
2011
2270
  }
2012
2271
  [data-pont-checkbox-indicator] > svg {
2013
2272
  width: 0.875rem;
@@ -2122,9 +2381,9 @@
2122
2381
  font-weight: var(--_pont-badge-font-weight);
2123
2382
  outline: none;
2124
2383
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
2125
- transition-property: all;
2126
- transition-duration: var(--pont-sem-duration);
2127
- transition-timing-function: var(--pont-sem-ease-in-out);
2384
+ transition-property: var(--pont-ref-motion-trans-property-all);
2385
+ transition-duration: var(--pont-sem-motion-trans-duration);
2386
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
2128
2387
  background-color: var(--_pont-badge-bg);
2129
2388
  color: var(--_pont-badge-fg);
2130
2389
  }
@@ -2260,12 +2519,12 @@
2260
2519
  box-sizing: border-box;
2261
2520
  background-color: var(--_pont-skeleton-bg);
2262
2521
  border-radius: var(--_pont-skeleton-radius);
2263
- animation: var(--pont-sem-animate-pulse);
2522
+ animation: var(--pont-sem-motion-anim-pulse);
2264
2523
  }
2265
2524
 
2266
2525
  @media (prefers-reduced-motion: reduce) {
2267
2526
  :is(pont-prim-skeleton, pont-skeleton, [data-pont-skeleton]) {
2268
- animation: none;
2527
+ animation: var(--pont-ref-motion-anim-none);
2269
2528
  }
2270
2529
  }
2271
2530
  }
@@ -2287,7 +2546,7 @@
2287
2546
  background-color: currentColor;
2288
2547
  -webkit-mask: var(--pont-spinner-icon, var(--_pont-spinner-default)) center / contain no-repeat;
2289
2548
  mask: var(--pont-spinner-icon, var(--_pont-spinner-default)) center / contain no-repeat;
2290
- animation: var(--pont-sem-animate-spin);
2549
+ animation: var(--pont-sem-motion-anim-spin);
2291
2550
  }
2292
2551
  }
2293
2552
 
@@ -3421,8 +3680,8 @@
3421
3680
  --pont-shadow: var(--pont-sem-shadow-xs);
3422
3681
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
3423
3682
  transition-property: color, box-shadow;
3424
- transition-duration: var(--pont-sem-duration);
3425
- transition-timing-function: var(--pont-sem-ease-in-out);
3683
+ transition-duration: var(--pont-sem-motion-trans-duration);
3684
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
3426
3685
  }
3427
3686
 
3428
3687
  :is(pont-prim-input-group, [data-pont-input-group]):has([data-slot="input-group-control"]:focus-visible) {
@@ -3699,9 +3958,9 @@
3699
3958
  text-decoration: none;
3700
3959
  outline: none;
3701
3960
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
3702
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
3703
- transition-duration: 100ms;
3704
- transition-timing-function: var(--pont-sem-ease-in-out);
3961
+ transition-property: var(--pont-ref-motion-trans-property-colors);
3962
+ transition-duration: var(--pont-sem-motion-trans-duration-fast);
3963
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
3705
3964
  }
3706
3965
  [data-pont-item]:focus-visible {
3707
3966
  border-color: var(--pont-sem-color-ring);
@@ -3918,8 +4177,8 @@
3918
4177
  --pont-shadow: var(--pont-sem-shadow-xs);
3919
4178
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
3920
4179
  transition-property: color, box-shadow;
3921
- transition-duration: var(--pont-sem-duration);
3922
- transition-timing-function: var(--pont-sem-ease-in-out);
4180
+ transition-duration: var(--pont-sem-motion-trans-duration);
4181
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
3923
4182
  }
3924
4183
  [data-pont-native-select]::selection {
3925
4184
  background-color: var(--pont-sem-color-primary);
@@ -4031,9 +4290,9 @@
4031
4290
 
4032
4291
  :is(:is(pont-prim-table, pont-table) > table > * > tr, [data-pont-table-row]) {
4033
4292
  border-bottom: var(--pont-sem-border-width) solid var(--_pont-table-border-color, var(--pont-sem-color-border));
4034
- transition-property: color, background-color, border-color;
4035
- transition-duration: var(--pont-sem-duration);
4036
- transition-timing-function: var(--pont-sem-ease-in-out);
4293
+ transition-property: var(--pont-ref-motion-trans-property-colors);
4294
+ transition-duration: var(--pont-sem-motion-trans-duration);
4295
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
4037
4296
  }
4038
4297
  :is(:is(pont-prim-table, pont-table) > table > * > tr, [data-pont-table-row]):hover,
4039
4298
  :is(:is(pont-prim-table, pont-table) > table > * > tr, [data-pont-table-row]):has([aria-expanded="true"]) {
@@ -4291,9 +4550,9 @@
4291
4550
  outline: none;
4292
4551
  --pont-shadow: var(--pont-sem-shadow-xs);
4293
4552
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
4294
- transition-property: all;
4295
- transition-duration: var(--pont-sem-duration);
4296
- transition-timing-function: var(--pont-sem-ease-in-out);
4553
+ transition-property: var(--pont-ref-motion-trans-property-all);
4554
+ transition-duration: var(--pont-sem-motion-trans-duration);
4555
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
4297
4556
  }
4298
4557
  :is(pont-prim-input-otp-slot, [data-pont-input-otp-slot]):first-child {
4299
4558
  border-left-width: var(--pont-sem-border-width);
@@ -4330,7 +4589,8 @@
4330
4589
  width: var(--pont-ref-dimension-size-px);
4331
4590
  height: 1rem;
4332
4591
  background-color: var(--pont-sem-color-foreground);
4333
- animation: pont-caret-blink 1s ease-out infinite;
4592
+ animation: pont-caret-blink var(--pont-sem-motion-anim-duration) var(--pont-ref-motion-easing-ease-out)
4593
+ var(--pont-ref-motion-anim-iteration-infinite);
4334
4594
  }
4335
4595
 
4336
4596
  :is(pont-prim-input-otp-separator, [data-pont-input-otp-separator]) {
@@ -4400,9 +4660,9 @@
4400
4660
  [data-pont-progress-indicator] {
4401
4661
  height: var(--pont-ref-dimension-size-full);
4402
4662
  background-color: var(--_pont-progress-indicator-bg, var(--pont-sem-color-primary));
4403
- transition-property: all;
4404
- transition-duration: var(--pont-sem-duration);
4405
- transition-timing-function: var(--pont-sem-ease-in-out);
4663
+ transition-property: var(--pont-ref-motion-trans-property-all);
4664
+ transition-duration: var(--pont-sem-motion-trans-duration);
4665
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
4406
4666
  }
4407
4667
 
4408
4668
  :is(pont-prim-progress-label, [data-pont-progress-label]) {
@@ -4656,8 +4916,8 @@
4656
4916
  --pont-shadow: var(--_pont-slider-thumb-shadow);
4657
4917
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
4658
4918
  transition-property: color, box-shadow;
4659
- transition-duration: var(--pont-sem-duration);
4660
- transition-timing-function: var(--pont-sem-ease-in-out);
4919
+ transition-duration: var(--pont-sem-motion-trans-duration);
4920
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
4661
4921
  }
4662
4922
  [data-pont-slider-thumb][data-orientation="horizontal"] {
4663
4923
  top: 50%;
@@ -4725,9 +4985,9 @@
4725
4985
  outline: none;
4726
4986
  --pont-shadow: var(--pont-sem-shadow-xs);
4727
4987
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
4728
- transition-property: all;
4729
- transition-duration: var(--pont-sem-duration);
4730
- transition-timing-function: var(--pont-sem-ease-in-out);
4988
+ transition-property: var(--pont-ref-motion-trans-property-all);
4989
+ transition-duration: var(--pont-sem-motion-trans-duration);
4990
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
4731
4991
  }
4732
4992
 
4733
4993
  :is(pont-prim-switch, pont-switch, [data-pont-switch])::after {
@@ -4775,9 +5035,9 @@
4775
5035
  border-radius: var(--pont-ref-radius-full);
4776
5036
  background-color: var(--_pont-switch-thumb-bg);
4777
5037
  translate: 0 0;
4778
- transition-property: translate, transform;
4779
- transition-duration: var(--pont-sem-duration);
4780
- transition-timing-function: var(--pont-sem-ease-in-out);
5038
+ transition-property: var(--pont-ref-motion-trans-property-transform);
5039
+ transition-duration: var(--pont-sem-motion-trans-duration);
5040
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
4781
5041
  }
4782
5042
  [data-pont-switch][data-size="sm"] > [data-pont-switch-thumb] {
4783
5043
  width: 0.75rem;
@@ -4912,9 +5172,9 @@
4912
5172
  user-select: none;
4913
5173
  outline: none;
4914
5174
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
4915
- transition-property: all;
4916
- transition-duration: var(--pont-sem-duration);
4917
- transition-timing-function: var(--pont-sem-ease-in-out);
5175
+ transition-property: var(--pont-ref-motion-trans-property-all);
5176
+ transition-duration: var(--pont-sem-motion-trans-duration);
5177
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
4918
5178
  }
4919
5179
  [data-pont-tabs][data-orientation="vertical"] [data-pont-tabs-trigger] {
4920
5180
  width: var(--pont-ref-dimension-size-full);
@@ -4970,7 +5230,9 @@
4970
5230
  position: absolute;
4971
5231
  background-color: var(--_pont-tabs-indicator-bg, var(--pont-sem-color-foreground));
4972
5232
  opacity: 0;
4973
- transition: opacity var(--pont-sem-duration) var(--pont-sem-ease-in-out);
5233
+ transition-property: var(--pont-ref-motion-trans-property-opacity);
5234
+ transition-duration: var(--pont-sem-motion-trans-duration);
5235
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
4974
5236
  }
4975
5237
  [data-pont-tabs]:not([data-orientation="vertical"]) [data-pont-tabs-trigger]::after {
4976
5238
  left: 0;
@@ -5015,7 +5277,8 @@
5015
5277
  * A component opts into the slide by setting the --_pont-popup-enter-*
5016
5278
  * privates; the defaults below are exactly that shadcn recipe. They are
5017
5279
  * CSS-internal (no script writes them) and not tokens: animation mechanics
5018
- * stay literal (docs/11-tokens.md §5). Every one is declared on each popup,
5280
+ * stay literal (docs/11-tokens.md §5); the duration and easing read the
5281
+ * motion roles (tokens/motion.css). Every one is declared on each popup,
5019
5282
  * so a nested popup (a submenu) never inherits its parent's slide, as
5020
5283
  * tw-animate-css's non-inheriting `--tw-enter-*` properties behave.
5021
5284
  */
@@ -5078,7 +5341,7 @@
5078
5341
  --_pont-popup-exit-scale: 0.95;
5079
5342
  --_pont-popup-exit-translate-x: 0;
5080
5343
  --_pont-popup-exit-translate-y: 0;
5081
- --_pont-popup-duration: 100ms;
5344
+ --_pont-popup-duration: var(--pont-sem-motion-trans-duration-fast);
5082
5345
  }
5083
5346
 
5084
5347
  /* An author `display` must never reveal a closed popover. */
@@ -5101,16 +5364,16 @@
5101
5364
  }
5102
5365
 
5103
5366
  [data-pont-popup][data-open] {
5104
- animation: pont-popup-enter var(--_pont-popup-duration) var(--pont-sem-ease-in-out);
5367
+ animation: pont-popup-enter var(--_pont-popup-duration) var(--pont-sem-motion-trans-easing);
5105
5368
  }
5106
5369
  [data-pont-popup][data-closed] {
5107
- animation: pont-popup-exit var(--_pont-popup-duration) var(--pont-sem-ease-in-out) forwards;
5370
+ animation: pont-popup-exit var(--_pont-popup-duration) var(--pont-sem-motion-trans-easing) forwards;
5108
5371
  }
5109
5372
 
5110
5373
  @media (prefers-reduced-motion: reduce) {
5111
5374
  [data-pont-popup]:is([data-open], [data-closed]),
5112
5375
  [data-pont-popup]:is([data-open], [data-closed])::backdrop {
5113
- animation: none;
5376
+ animation: var(--pont-ref-motion-anim-none);
5114
5377
  }
5115
5378
  }
5116
5379
  }
@@ -5473,8 +5736,8 @@
5473
5736
  --pont-shadow: var(--pont-sem-shadow-xs);
5474
5737
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
5475
5738
  transition-property: color, box-shadow;
5476
- transition-duration: var(--pont-sem-duration);
5477
- transition-timing-function: var(--pont-sem-ease-in-out);
5739
+ transition-duration: var(--pont-sem-motion-trans-duration);
5740
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
5478
5741
  }
5479
5742
  [data-pont-select-trigger][data-placeholder] {
5480
5743
  color: var(--pont-sem-color-muted-foreground);
@@ -5540,7 +5803,7 @@
5540
5803
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
5541
5804
  }
5542
5805
  [data-pont-select-content][data-align-trigger="true"] {
5543
- animation: none;
5806
+ animation: var(--pont-ref-motion-anim-none);
5544
5807
  }
5545
5808
 
5546
5809
  /* group: "scroll-my-1 p-1" */
@@ -5684,8 +5947,8 @@
5684
5947
  --pont-shadow: var(--pont-sem-shadow-xs);
5685
5948
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
5686
5949
  transition-property: color, box-shadow;
5687
- transition-duration: var(--pont-sem-duration);
5688
- transition-timing-function: var(--pont-sem-ease-in-out);
5950
+ transition-duration: var(--pont-sem-motion-trans-duration);
5951
+ transition-timing-function: var(--pont-sem-motion-trans-easing);
5689
5952
  }
5690
5953
  [data-pont-combobox-input]:has(> [data-slot="input-group-control"]:focus-visible) {
5691
5954
  border-color: var(--pont-sem-color-ring);
@@ -6217,10 +6480,10 @@
6217
6480
  backdrop-filter: blur(var(--pont-ref-filter-blur-xs));
6218
6481
  }
6219
6482
  :is([data-pont-dialog-content], [data-pont-alert-dialog-content], [data-pont-sheet-content], [data-pont-drawer-content])[data-open]::backdrop {
6220
- animation: pont-backdrop-enter var(--_pont-popup-duration) var(--pont-sem-ease-in-out);
6483
+ animation: pont-backdrop-enter var(--_pont-popup-duration) var(--pont-sem-motion-trans-easing);
6221
6484
  }
6222
6485
  :is([data-pont-dialog-content], [data-pont-alert-dialog-content], [data-pont-sheet-content], [data-pont-drawer-content])[data-closed]::backdrop {
6223
- animation: pont-backdrop-exit var(--_pont-popup-duration) var(--pont-sem-ease-in-out) forwards;
6486
+ animation: pont-backdrop-exit var(--_pont-popup-duration) var(--pont-sem-motion-trans-easing) forwards;
6224
6487
  }
6225
6488
  /* modal="false": no overlay. */
6226
6489
  :is([data-pont-dialog-content], [data-pont-alert-dialog-content], [data-pont-sheet-content], [data-pont-drawer-content])[data-modal="false"]::backdrop {
@@ -6445,7 +6708,7 @@
6445
6708
  --pont-shadow: var(--_pont-sheet-shadow);
6446
6709
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
6447
6710
  /* the slide (core/popup/popup.css keyframes) */
6448
- --_pont-popup-duration: 200ms;
6711
+ --_pont-popup-duration: var(--pont-sem-motion-trans-duration-slow);
6449
6712
  --_pont-popup-enter-scale: 1;
6450
6713
  --_pont-popup-exit-scale: 1;
6451
6714
  }
@@ -6872,7 +7135,7 @@
6872
7135
  box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
6873
7136
  outline: none;
6874
7137
  overflow-wrap: anywhere;
6875
- animation: pont-toast-enter 400ms var(--pont-sem-ease-out);
7138
+ animation: pont-toast-enter 400ms var(--pont-ref-motion-easing-ease-out);
6876
7139
  transition: opacity 400ms, translate 400ms;
6877
7140
  }
6878
7141
  [data-pont-toast]:focus-visible {
@@ -6906,7 +7169,7 @@
6906
7169
  height: 1rem;
6907
7170
  }
6908
7171
  [data-pont-toast] svg[data-spin] {
6909
- animation: var(--pont-sem-animate-spin);
7172
+ animation: var(--pont-sem-motion-anim-spin);
6910
7173
  }
6911
7174
 
6912
7175
  [data-pont-toast] > [data-content] {
@@ -6979,8 +7242,8 @@
6979
7242
  @media (prefers-reduced-motion: reduce) {
6980
7243
  [data-pont-toast],
6981
7244
  [data-pont-toast][data-removed] {
6982
- animation: none;
6983
- transition: none;
7245
+ animation: var(--pont-ref-motion-anim-none);
7246
+ transition-property: var(--pont-ref-motion-trans-property-none);
6984
7247
  translate: none;
6985
7248
  }
6986
7249
  }
@@ -7876,7 +8139,9 @@
7876
8139
  height: var(--pont-sem-dimension-size);
7877
8140
  border-radius: var(--pont-ref-radius-md);
7878
8141
  box-shadow: 0 0 0 var(--pont-sem-border-width) var(--pont-sem-color-border);
7879
- transition: opacity 200ms ease;
8142
+ transition-property: var(--pont-ref-motion-trans-property-opacity);
8143
+ transition-duration: var(--pont-sem-motion-trans-duration-slow);
8144
+ transition-timing-function: var(--pont-ref-motion-easing-ease);
7880
8145
  }
7881
8146
  [data-pont-qr-code][data-obscured] > [data-slot="qr-code-image"] {
7882
8147
  opacity: 0.15;
@@ -7889,7 +8154,7 @@
7889
8154
  }
7890
8155
  @media (prefers-reduced-motion: reduce) {
7891
8156
  [data-pont-qr-code] > [data-slot="qr-code-image"] {
7892
- transition: none;
8157
+ transition-property: var(--pont-ref-motion-trans-property-none);
7893
8158
  }
7894
8159
  }
7895
8160
  }