@cueplusplus/ui 0.8.0 → 0.9.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 (60) hide show
  1. package/CHANGELOG.md +262 -0
  2. package/README.md +49 -0
  3. package/dist/chat/message-list.js +2 -1
  4. package/dist/configurator/_export.d.ts +1 -1
  5. package/dist/configurator/_export.js +53 -13
  6. package/dist/configurator/_overrides.d.ts +25 -6
  7. package/dist/configurator/_overrides.js +30 -17
  8. package/dist/configurator/configurator.js +8 -3
  9. package/dist/configurator/panel-sections.js +43 -13
  10. package/dist/elements/command-palette.js +1 -1
  11. package/dist/elements/flow-graph.js +2 -2
  12. package/dist/elements/markdown.js +1 -1
  13. package/dist/elements/surfaces.js +4 -3
  14. package/dist/index.d.ts +5 -2
  15. package/dist/index.js +2 -1
  16. package/dist/midi/piano-keyboard.js +5 -1
  17. package/dist/primitives/chip.d.ts +1 -1
  18. package/dist/styles.css +23 -1
  19. package/dist/system/density.d.ts +17 -8
  20. package/dist/system/density.js +39 -16
  21. package/dist/system/index.d.ts +5 -2
  22. package/dist/system/index.js +2 -1
  23. package/dist/system/overrides.d.ts +43 -0
  24. package/dist/system/overrides.js +238 -0
  25. package/dist/system/portal.d.ts +4 -2
  26. package/dist/system/portal.js +34 -3
  27. package/dist/system/prepaint.d.ts +58 -7
  28. package/dist/system/prepaint.js +72 -20
  29. package/dist/system/theme-provider.d.ts +133 -8
  30. package/dist/system/theme-provider.js +203 -72
  31. package/dist/system/theme-registry.d.ts +53 -0
  32. package/dist/system/theme-registry.js +66 -0
  33. package/dist/system/use-density.d.ts +13 -5
  34. package/dist/system/use-density.js +142 -13
  35. package/dist/system/use-theme.d.ts +5 -3
  36. package/dist/system/use-theme.js +5 -3
  37. package/dist/system/vocabulary.d.ts +15 -0
  38. package/dist/system/vocabulary.js +111 -0
  39. package/dist/theming/contrast.d.ts +2 -122
  40. package/dist/theming/contrast.js +2 -194
  41. package/dist/theming/create-theme.d.ts +37 -11
  42. package/dist/theming/create-theme.js +54 -17
  43. package/dist/theming/index.d.ts +3 -4
  44. package/dist/theming/index.js +3 -4
  45. package/dist/theming/serialize.d.ts +24 -11
  46. package/dist/theming/serialize.js +16 -18
  47. package/manifest/components/colors-section.json +2 -3
  48. package/manifest/components/cue-portal-frame.json +1 -1
  49. package/manifest/components/density.json +1 -1
  50. package/manifest/components/export-dialog.json +0 -3
  51. package/manifest/components/preset-section.json +2 -3
  52. package/manifest/components/shape-section.json +2 -3
  53. package/manifest/components/theme-configurator.json +0 -3
  54. package/manifest/components/theme-provider.json +24 -9
  55. package/manifest/components/token-editor.json +0 -3
  56. package/manifest/manifest.json +145 -24
  57. package/manifest/tokens.json +121 -11
  58. package/package.json +15 -6
  59. package/dist/theming/_presets.d.ts +0 -11
  60. package/dist/theming/_presets.js +0 -678
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@cueplusplus/ui",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "CUE++ design system components: Tailwind v4 styled wrappers over Base UI, driven by @cueplusplus/tokens.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/cueplusplus/product-design-system"
9
+ "url": "https://github.com/cueplusplus/product-design-system",
10
+ "directory": "packages/ui"
10
11
  },
11
12
  "publishConfig": {
12
13
  "registry": "https://registry.npmjs.org"
@@ -134,13 +135,15 @@
134
135
  "files": [
135
136
  "dist",
136
137
  "manifest",
138
+ "README.md",
137
139
  "CHANGELOG.md"
138
140
  ],
139
141
  "dependencies": {
140
142
  "clsx": "^2.1.1",
141
143
  "culori": "^4.0.2",
142
144
  "tailwind-merge": "^3.6.0",
143
- "@cueplusplus/tokens": "0.8.0"
145
+ "@cueplusplus/theme-base": "^1.0.0",
146
+ "@cueplusplus/tokens": "0.9.0"
144
147
  },
145
148
  "peerDependencies": {
146
149
  "@assistant-ui/react": "^0.15.16",
@@ -237,6 +240,7 @@
237
240
  "anser": "^2.3.5",
238
241
  "date-fns": "^4.4.0",
239
242
  "embla-carousel-react": "^8.6.0",
243
+ "eslint": "^9.17.0",
240
244
  "heat-graph": "^0.0.15",
241
245
  "jsdom": "^30.0.1",
242
246
  "lucide-react": "^1.31.0",
@@ -254,13 +258,18 @@
254
258
  "typescript": "^5.7.0",
255
259
  "vitest": "^4.1.10",
256
260
  "@repo/docgen": "0.0.0",
257
- "@repo/typescript-config": "0.0.0"
261
+ "@cueplusplus/theme-tools": "1.0.0",
262
+ "@repo/typescript-config": "0.0.0",
263
+ "@repo/eslint-config": "0.0.0"
258
264
  },
259
265
  "scripts": {
260
266
  "build": "pnpm run check:manifest && tsdown",
261
- "manifest": "node ../docgen/dist/package-manifest-cli.mjs",
262
267
  "check:manifest": "node ../docgen/dist/package-manifest-cli.mjs --check",
268
+ "check:publish": "pnpm run check:manifest && publint && attw --pack .",
269
+ "lint": "eslint . --max-warnings 0",
270
+ "manifest": "node ../docgen/dist/package-manifest-cli.mjs",
263
271
  "test": "vitest run",
264
- "check:publish": "pnpm run check:manifest && publint && attw --pack ."
272
+ "test:fixtures": "node ../theme-tools/dist/cli.mjs build --config test/fixtures/theme-foo.config.ts --out test/fixtures/theme-foo && rm test/fixtures/theme-foo/index.js test/fixtures/theme-foo/index.d.ts",
273
+ "typecheck": "tsc --noEmit"
265
274
  }
266
275
  }
@@ -1,11 +0,0 @@
1
- import { Density, ThemeName } from "@cueplusplus/tokens";
2
- //#region src/theming/_presets.d.ts
3
- /**
4
- * The colour tokens every theme block declares, in the order the tokens build
5
- * emits them. A generated theme is complete exactly when it covers this list.
6
- */
7
- declare const THEME_COLOR_TOKENS: readonly ["bg", "sunken", "surface-1", "surface-2", "surface-3", "fg", "fg-muted", "fg-subtle", "border", "border-strong", "border-overlay", "accent", "accent-hover", "accent-fg", "ok", "busy", "warn", "warn-fg", "danger", "danger-fg", "info", "stream", "selection", "focus", "data-ground", "scrim"];
8
- /** One of the colour tokens a theme block owns. */
9
- type ThemeColorToken = (typeof THEME_COLOR_TOKENS)[number];
10
- //#endregion
11
- export { THEME_COLOR_TOKENS, ThemeColorToken };