material-theme-builder 2.1.1 → 2.2.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/tailwind.css CHANGED
@@ -1,5 +1,3 @@
1
- @import "tailwindcss";
2
-
3
1
  @theme inline {
4
2
  --color-background: var(--md-sys-color-background);
5
3
  --color-on-background: var(--md-sys-color-on-background);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "material-theme-builder",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "m3 color-system for JS/TS ecosystem",
5
5
  "keywords": [
6
6
  "react",
@@ -33,10 +33,12 @@
33
33
  },
34
34
  "type": "module",
35
35
  "devDependencies": {
36
+ "@abernier/radix-list": "^1.0.2",
36
37
  "@arethetypeswrong/cli": "^0.18.2",
37
38
  "@changesets/cli": "^2.27.7",
38
39
  "@chromatic-com/storybook": "^5.0.0",
39
40
  "@eslint/js": "^10.0.1",
41
+ "@figma/plugin-typings": "^1.123.0",
40
42
  "@storybook/addon-docs": "^10.1.11",
41
43
  "@storybook/addon-themes": "^10.1.11",
42
44
  "@storybook/react-vite": "^10.1.11",
@@ -44,9 +46,11 @@
44
46
  "@testing-library/dom": "^10.4.1",
45
47
  "@testing-library/react": "^16.3.1",
46
48
  "@types/culori": "^4.0.1",
49
+ "@types/d3": "^7.4.3",
47
50
  "@types/lodash-es": "^4.17.12",
48
51
  "@types/react": "^19.2.7",
49
52
  "@types/react-dom": "^19.2.3",
53
+ "@types/seedrandom": "^3.0.8",
50
54
  "@vitejs/plugin-react": "^5.1.2",
51
55
  "ajv": "^8.18.0",
52
56
  "ajv-formats": "^3.0.1",
@@ -54,24 +58,36 @@
54
58
  "class-variance-authority": "^0.7.1",
55
59
  "clsx": "^2.1.1",
56
60
  "culori": "^4.0.2",
61
+ "d3": "^7.9.0",
57
62
  "eslint": "^10.0.0",
63
+ "eslint-plugin-jsdoc": "^62.7.1",
58
64
  "eslint-plugin-react-hooks": "^7.0.1",
59
- "eslint-plugin-sonarjs": "^3.0.7",
65
+ "eslint-plugin-sonarjs": "^4.0.0",
60
66
  "globals": "^17.3.0",
61
67
  "husky": "^9.1.7",
62
68
  "jsdom": "^28.1.0",
63
69
  "lint-staged": "^16.2.7",
70
+ "lucide-react": "^0.576.0",
64
71
  "postcss": "^8.5.6",
65
72
  "prettier": "^3.3.3",
66
73
  "prettier-plugin-organize-imports": "^4.3.0",
74
+ "radix-ui": "^1.4.3",
67
75
  "react": "^19.2.3",
68
76
  "react-dom": "^19.2.3",
77
+ "seedrandom": "^3.0.5",
78
+ "shadcn": "^3.8.5",
79
+ "simplex-noise": "^4.0.3",
69
80
  "storybook": "^10.1.11",
70
81
  "tailwind-merge": "^3.4.0",
71
82
  "tailwindcss": "^4.1.18",
72
83
  "tsup": "^8.2.4",
84
+ "tw-animate-css": "^1.4.0",
73
85
  "typescript": "^5.5.4",
74
86
  "typescript-eslint": "^8.55.0",
87
+ "usehooks-ts": "^3.1.1",
88
+ "vite": "^7.3.1",
89
+ "vite-plugin-singlefile": "2.3.0",
90
+ "vite-tsconfig-paths": "^6.1.1",
75
91
  "vitest": "^4.0.16"
76
92
  },
77
93
  "peerDependencies": {
@@ -81,12 +97,13 @@
81
97
  "dependencies": {
82
98
  "@material/material-color-utilities": "^0.3.0",
83
99
  "commander": "^14.0.3",
84
- "lodash-es": "^4.17.22"
100
+ "lodash-es": "^4.17.22",
101
+ "zod": "^4.3.6"
85
102
  },
86
103
  "scripts": {
87
104
  "build": "tsup",
88
105
  "lint": "eslint .",
89
- "lgtm": "pnpm run build && pnpm run lint && pnpm run check-format && pnpm run check-exports && pnpm run typecheck && pnpm run test",
106
+ "lgtm": "pnpm run build && pnpm run build-figma && pnpm run lint && pnpm run check-format && pnpm run check-exports && pnpm run typecheck && pnpm run test",
90
107
  "typecheck": "tsc",
91
108
  "test": "vitest run",
92
109
  "pretest": "bash scripts/download-dtcg-schemas.sh",
@@ -97,6 +114,7 @@
97
114
  "local-release": "pnpm run lgtm && changeset version && changeset publish",
98
115
  "storybook": "storybook dev -p 6006",
99
116
  "build-storybook": "storybook build",
117
+ "build-figma": "vite build --config figma-plugin/vite.config.ts && tsup --config figma-plugin/tsup.config.ts",
100
118
  "chromatic": "chromatic --project-token $CHROMATIC_PROJECT_TOKEN",
101
119
  "changeset": "pnpm exec changeset"
102
120
  }
package/src/tailwind.css CHANGED
@@ -1,5 +1,3 @@
1
- @import "tailwindcss";
2
-
3
1
  @theme inline {
4
2
  --color-background: var(--md-sys-color-background);
5
3
  --color-on-background: var(--md-sys-color-on-background);