@platned/ui 0.9.2 → 0.9.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platned/ui",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Platned-Innovations/Platned-Design-System.git"
@@ -15,6 +15,11 @@
15
15
  "import": "./dist/index.js",
16
16
  "require": "./dist/index.cjs"
17
17
  },
18
+ "./data-table": {
19
+ "types": "./dist/data-table.d.ts",
20
+ "import": "./dist/data-table.js",
21
+ "require": "./dist/data-table.cjs"
22
+ },
18
23
  "./sidebar": {
19
24
  "types": "./dist/sidebar.d.ts",
20
25
  "import": "./dist/sidebar.js",
@@ -371,6 +371,17 @@ module.exports = {
371
371
 
372
372
  // Named layers, so a consumer's own z-index cannot land between a Modal and its
373
373
  // close button. Overlays previously used bare z-50/z-20/z-10 with no scale.
374
+ // Motion tokens (styles/tokens/motion.css), new in 0.9.4.
375
+ transitionDuration: {
376
+ fast: 'var(--motion-duration-fast)',
377
+ base: 'var(--motion-duration-base)',
378
+ slow: 'var(--motion-duration-slow)',
379
+ },
380
+ transitionTimingFunction: {
381
+ standard: 'var(--motion-ease-standard)',
382
+ enter: 'var(--motion-ease-enter)',
383
+ exit: 'var(--motion-ease-exit)',
384
+ },
374
385
  zIndex: {
375
386
  base: '0',
376
387
  raised: '10',
@@ -385,15 +396,16 @@ module.exports = {
385
396
  },
386
397
  },
387
398
  plugins: [
388
- // `motion-reduce:` ships with Tailwind, but nothing in the library used it — there
389
- // was no `prefers-reduced-motion` handling anywhere, including an infinite
390
- // `animate-pulse`. This adds the inverse-of-inverse escape hatch components need:
391
- // `motion-safe:animate-pulse` for opt-in motion, and `animate-none` under
392
- // `motion-reduce` for anything already animating.
399
+ // Reduced motion. Until 0.9.4 this was a blanket base rule that cut every animation and
400
+ // transition on the page to 0.01ms under `prefers-reduced-motion`, including the app's own.
401
+ // It froze spinners mid-turn and stopped colour fades WCAG 2.3.3 has no quarrel with, and an
402
+ // app could not opt a single element back in. Components now gate their own movement
403
+ // (`motion-reduce:transition-none`, `motion-safe:animate-*`), and the old behaviour is an
404
+ // opt-in class for an app that wants it: `<html class="motion-reduce-all">`.
393
405
  function reducedMotion({ addBase }) {
394
406
  addBase({
395
407
  '@media (prefers-reduced-motion: reduce)': {
396
- '*, *::before, *::after': {
408
+ '.motion-reduce-all, .motion-reduce-all *, .motion-reduce-all *::before, .motion-reduce-all *::after': {
397
409
  animationDuration: '0.01ms !important',
398
410
  animationIterationCount: '1 !important',
399
411
  transitionDuration: '0.01ms !important',