@platned/ui 0.9.3 → 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/dist/chunk-OGQIGGVB.js +2788 -0
- package/dist/chunk-OGQIGGVB.js.map +1 -0
- package/dist/data-table-gr08E5aX.d.ts +458 -0
- package/dist/data-table.cjs +3463 -0
- package/dist/data-table.cjs.map +1 -0
- package/dist/data-table.d.ts +3 -0
- package/dist/data-table.js +832 -0
- package/dist/data-table.js.map +1 -0
- package/dist/index.cjs +188 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +20 -465
- package/dist/index.js +1987 -5292
- package/dist/index.js.map +1 -1
- package/dist/sidebar.cjs +1 -4
- package/dist/sidebar.cjs.map +1 -1
- package/dist/sidebar.js +1 -4
- package/dist/sidebar.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +6 -1
- package/tailwind-preset.cjs +18 -6
- package/dist/index.d.cts +0 -5422
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platned/ui",
|
|
3
|
-
"version": "0.9.
|
|
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",
|
package/tailwind-preset.cjs
CHANGED
|
@@ -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
|
-
//
|
|
389
|
-
//
|
|
390
|
-
//
|
|
391
|
-
//
|
|
392
|
-
// `motion-reduce`
|
|
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',
|