@yewdiel21/motion-kit 0.18.0 → 0.19.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.
Files changed (68) hide show
  1. package/README.md +240 -222
  2. package/dist/auto/index.d.ts +4 -3
  3. package/dist/auto/index.js +5 -3
  4. package/dist/auto/index.js.map +1 -1
  5. package/dist/{chunk-QFBOHPWZ.js → chunk-CQP66AZK.js} +2 -2
  6. package/dist/{chunk-QP4QJOEN.js → chunk-H4STLMCM.js} +2 -2
  7. package/dist/{chunk-EDMXWUW3.js → chunk-KDIJX6G4.js} +3 -3
  8. package/dist/{chunk-DOOMULVV.js → chunk-OLT3CWDJ.js} +4 -2
  9. package/dist/chunk-OLT3CWDJ.js.map +1 -0
  10. package/dist/{chunk-AWDEKDEJ.js → chunk-PEDYJ2TV.js} +8 -22
  11. package/dist/chunk-PEDYJ2TV.js.map +1 -0
  12. package/dist/{chunk-Q7IW4FV3.js → chunk-Y4GIBTRG.js} +1422 -967
  13. package/dist/chunk-Y4GIBTRG.js.map +1 -0
  14. package/dist/css/components/code-block.css +267 -0
  15. package/dist/css/components/command-search.css +274 -2
  16. package/dist/css/components/dialog.css +264 -0
  17. package/dist/css/components/heatmap-chart.css +267 -1
  18. package/dist/css/components/scroll-area.css +261 -0
  19. package/dist/css/components/select.css +284 -4
  20. package/dist/elements/index.d.ts +15 -4
  21. package/dist/elements/index.js +36 -6
  22. package/dist/elements/index.js.map +1 -1
  23. package/dist/{engine-t8d7brjn.d.ts → engine-D6XV-WNt.d.ts} +50 -1
  24. package/dist/gl/index.js +2 -2
  25. package/dist/index.css +308 -7
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +7 -5
  28. package/dist/index.js.map +1 -1
  29. package/dist/react/index.d.ts +20 -7
  30. package/dist/react/index.js +56 -7
  31. package/dist/react/index.js.map +1 -1
  32. package/dist/{reduced-dPsZYqtI.d.ts → reduced-4croIXl-.d.ts} +1 -1
  33. package/dist/{store-6hZNKiee.d.ts → store-CAHWkurn.d.ts} +1 -1
  34. package/package.json +110 -110
  35. package/registry.json +1357 -1340
  36. package/src/auto/auto-init.ts +341 -339
  37. package/src/components/code-block/README.md +1 -1
  38. package/src/components/code-block/code-block.css +5 -0
  39. package/src/components/code-block/engine.ts +5 -0
  40. package/src/components/command-search/README.md +1 -1
  41. package/src/components/command-search/command-search.css +12 -2
  42. package/src/components/command-search/engine.ts +6 -0
  43. package/src/components/dialog/README.md +104 -103
  44. package/src/components/dialog/dialog.css +2 -0
  45. package/src/components/dialog/engine.ts +465 -449
  46. package/src/components/heatmap-chart/README.md +48 -48
  47. package/src/components/heatmap-chart/engine.ts +6 -1
  48. package/src/components/heatmap-chart/heatmap-chart.css +5 -1
  49. package/src/components/icons.ts +1 -0
  50. package/src/components/scroll-area/README.md +89 -0
  51. package/src/components/scroll-area/element.ts +35 -0
  52. package/src/components/scroll-area/engine.ts +528 -0
  53. package/src/components/scroll-area/react.tsx +67 -0
  54. package/src/components/scroll-area/scroll-area.css +260 -0
  55. package/src/components/select/README.md +1 -1
  56. package/src/components/select/engine.ts +16 -4
  57. package/src/components/select/select.css +22 -4
  58. package/src/core/timing.ts +2 -0
  59. package/src/elements/index.ts +321 -318
  60. package/src/index.ts +1 -0
  61. package/src/motion/morph.ts +5 -2
  62. package/src/react/index.ts +2 -1
  63. package/dist/chunk-AWDEKDEJ.js.map +0 -1
  64. package/dist/chunk-DOOMULVV.js.map +0 -1
  65. package/dist/chunk-Q7IW4FV3.js.map +0 -1
  66. /package/dist/{chunk-QFBOHPWZ.js.map → chunk-CQP66AZK.js.map} +0 -0
  67. /package/dist/{chunk-QP4QJOEN.js.map → chunk-H4STLMCM.js.map} +0 -0
  68. /package/dist/{chunk-EDMXWUW3.js.map → chunk-KDIJX6G4.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { ct as MenuOptions, cs as MenuInstance, bB as DialogOptions, bz as DialogInstance, df as RevealSpeed } from './engine-t8d7brjn.js';
1
+ import { cu as MenuOptions, ct as MenuInstance, bC as DialogOptions, bA as DialogInstance, dg as RevealSpeed } from './engine-D6XV-WNt.js';
2
2
  import { I as Instance } from './types-BkS_raL8.js';
3
3
  import { SplitText } from 'gsap/SplitText';
4
4
 
@@ -1,6 +1,6 @@
1
1
  import { I as Instance } from './types-BkS_raL8.js';
2
2
  import { Flip } from 'gsap/Flip';
3
- import { an as RevealHandle, ao as DateInput } from './engine-t8d7brjn.js';
3
+ import { ao as RevealHandle, ap as DateInput } from './engine-D6XV-WNt.js';
4
4
 
5
5
  interface ThemePickerOptions {
6
6
  /** Theme ids to show, in order. Default: visible presets, or all with showHidden. */
package/package.json CHANGED
@@ -1,110 +1,110 @@
1
- {
2
- "name": "@yewdiel21/motion-kit",
3
- "version": "0.18.0",
4
- "description": "Motion toolkit for vanilla, Astro and React: GSAP recipes, accessible components, 19 themes, CSS controls and optional WebGL effects.",
5
- "type": "module",
6
- "license": "UNLICENSED",
7
- "homepage": "https://motion-kit-playground.vercel.app",
8
- "bugs": {
9
- "url": "https://github.com/YewdielMartinez/motion-kit/issues"
10
- },
11
- "keywords": ["animation", "gsap", "react", "astro", "webgl", "motion", "ui"],
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/YewdielMartinez/motion-kit.git",
15
- "directory": "packages/motion-kit"
16
- },
17
- "sideEffects": [
18
- "**/*.css"
19
- ],
20
- "exports": {
21
- ".": {
22
- "types": "./dist/index.d.ts",
23
- "import": "./dist/index.js"
24
- },
25
- "./react": {
26
- "types": "./dist/react/index.d.ts",
27
- "import": "./dist/react/index.js"
28
- },
29
- "./auto": {
30
- "types": "./dist/auto/index.d.ts",
31
- "import": "./dist/auto/index.js"
32
- },
33
- "./elements": {
34
- "types": "./dist/elements/index.d.ts",
35
- "import": "./dist/elements/index.js"
36
- },
37
- "./theme": {
38
- "types": "./dist/theme/index.d.ts",
39
- "import": "./dist/theme/index.js"
40
- },
41
- "./theme/generate": {
42
- "types": "./dist/theme/generate.d.ts",
43
- "import": "./dist/theme/generate.js"
44
- },
45
- "./gl": {
46
- "types": "./dist/gl/index.d.ts",
47
- "import": "./dist/gl/index.js"
48
- },
49
- "./css": {
50
- "types": "./css.d.ts",
51
- "default": "./dist/index.css"
52
- },
53
- "./css/*": {
54
- "types": "./css.d.ts",
55
- "default": "./dist/css/*.css"
56
- },
57
- "./package.json": "./package.json",
58
- "./registry.json": "./registry.json"
59
- },
60
- "bin": {
61
- "motion-kit": "bin/motion-kit.mjs"
62
- },
63
- "files": [
64
- "dist",
65
- "src",
66
- "registry.json",
67
- "bin",
68
- "skills",
69
- "NOTICE",
70
- "css.d.ts"
71
- ],
72
- "scripts": {
73
- "build": "tsup && node scripts/build-css.mjs",
74
- "prepack": "pnpm run build",
75
- "test": "vitest run",
76
- "typecheck": "tsc --noEmit"
77
- },
78
- "peerDependencies": {
79
- "gsap": ">=3.13.0",
80
- "react": ">=18",
81
- "@material/material-color-utilities": "^0.3.0"
82
- },
83
- "peerDependenciesMeta": {
84
- "react": {
85
- "optional": true
86
- },
87
- "@material/material-color-utilities": {
88
- "optional": true
89
- }
90
- },
91
- "publishConfig": {
92
- "registry": "https://registry.npmjs.org/",
93
- "access": "public"
94
- },
95
- "devDependencies": {
96
- "@material/material-color-utilities": "^0.3.0",
97
- "@testing-library/dom": "^10.4.2",
98
- "@testing-library/react": "^16.3.3",
99
- "@types/node": "^24.19.2",
100
- "@types/react": "19.2.14",
101
- "@types/react-dom": "19.2.3",
102
- "gsap": "3.14.2",
103
- "jsdom": "^30.1.3",
104
- "react": "19.2.4",
105
- "react-dom": "19.2.4",
106
- "tsup": "^8.5.1",
107
- "typescript": "5.9.3",
108
- "vitest": "4.1.11"
109
- }
110
- }
1
+ {
2
+ "name": "@yewdiel21/motion-kit",
3
+ "version": "0.19.0",
4
+ "description": "Motion toolkit for vanilla, Astro and React: GSAP recipes, accessible components, 19 themes, CSS controls and optional WebGL effects.",
5
+ "type": "module",
6
+ "license": "UNLICENSED",
7
+ "homepage": "https://motion-kit-playground.vercel.app",
8
+ "bugs": {
9
+ "url": "https://github.com/YewdielMartinez/motion-kit/issues"
10
+ },
11
+ "keywords": ["animation", "gsap", "react", "astro", "webgl", "motion", "ui"],
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/YewdielMartinez/motion-kit.git",
15
+ "directory": "packages/motion-kit"
16
+ },
17
+ "sideEffects": [
18
+ "**/*.css"
19
+ ],
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.js"
24
+ },
25
+ "./react": {
26
+ "types": "./dist/react/index.d.ts",
27
+ "import": "./dist/react/index.js"
28
+ },
29
+ "./auto": {
30
+ "types": "./dist/auto/index.d.ts",
31
+ "import": "./dist/auto/index.js"
32
+ },
33
+ "./elements": {
34
+ "types": "./dist/elements/index.d.ts",
35
+ "import": "./dist/elements/index.js"
36
+ },
37
+ "./theme": {
38
+ "types": "./dist/theme/index.d.ts",
39
+ "import": "./dist/theme/index.js"
40
+ },
41
+ "./theme/generate": {
42
+ "types": "./dist/theme/generate.d.ts",
43
+ "import": "./dist/theme/generate.js"
44
+ },
45
+ "./gl": {
46
+ "types": "./dist/gl/index.d.ts",
47
+ "import": "./dist/gl/index.js"
48
+ },
49
+ "./css": {
50
+ "types": "./css.d.ts",
51
+ "default": "./dist/index.css"
52
+ },
53
+ "./css/*": {
54
+ "types": "./css.d.ts",
55
+ "default": "./dist/css/*.css"
56
+ },
57
+ "./package.json": "./package.json",
58
+ "./registry.json": "./registry.json"
59
+ },
60
+ "bin": {
61
+ "motion-kit": "bin/motion-kit.mjs"
62
+ },
63
+ "files": [
64
+ "dist",
65
+ "src",
66
+ "registry.json",
67
+ "bin",
68
+ "skills",
69
+ "NOTICE",
70
+ "css.d.ts"
71
+ ],
72
+ "scripts": {
73
+ "build": "tsup && node scripts/build-css.mjs",
74
+ "prepack": "pnpm run build",
75
+ "test": "vitest run",
76
+ "typecheck": "tsc --noEmit"
77
+ },
78
+ "peerDependencies": {
79
+ "gsap": ">=3.13.0",
80
+ "react": ">=18",
81
+ "@material/material-color-utilities": "^0.3.0"
82
+ },
83
+ "peerDependenciesMeta": {
84
+ "react": {
85
+ "optional": true
86
+ },
87
+ "@material/material-color-utilities": {
88
+ "optional": true
89
+ }
90
+ },
91
+ "publishConfig": {
92
+ "registry": "https://registry.npmjs.org/",
93
+ "access": "public"
94
+ },
95
+ "devDependencies": {
96
+ "@material/material-color-utilities": "^0.3.0",
97
+ "@testing-library/dom": "^10.4.2",
98
+ "@testing-library/react": "^16.3.3",
99
+ "@types/node": "^24.19.2",
100
+ "@types/react": "19.2.14",
101
+ "@types/react-dom": "19.2.3",
102
+ "gsap": "3.14.2",
103
+ "jsdom": "^30.1.3",
104
+ "react": "19.2.4",
105
+ "react-dom": "19.2.4",
106
+ "tsup": "^8.5.1",
107
+ "typescript": "5.9.3",
108
+ "vitest": "4.1.11"
109
+ }
110
+ }