@ctrl-ui/react 0.9.12 → 0.9.14

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 (51) hide show
  1. package/README.md +20 -7
  2. package/dist/blocks/design-canvas.js +16 -10
  3. package/dist/knob-contracts/field-knobs.d.ts +1 -1
  4. package/dist/knob-contracts/field-knobs.js +1 -0
  5. package/dist/knob-contracts/gradient-editor-knobs.d.ts +1 -1
  6. package/dist/knob-contracts/gradient-editor-knobs.js +1 -4
  7. package/dist/knob-contracts/popup-knobs.d.ts +1 -1
  8. package/dist/knob-contracts/popup-knobs.js +2 -0
  9. package/dist/lib/phone-input-format.js +1 -1
  10. package/dist/styles/recipes/card.css +8 -0
  11. package/dist/styles/recipes/color-picker-values.css +4 -18
  12. package/dist/styles/recipes/color-picker.css +3 -4
  13. package/dist/styles/recipes/field-parts.css +8 -1
  14. package/dist/styles/recipes/gradient-editor.css +3 -47
  15. package/dist/styles/recipes/markdown.css +5 -1
  16. package/dist/styles/recipes/popup-lists.css +17 -0
  17. package/dist/styles/recipes/popup.css +3 -0
  18. package/dist/styles/theme.css +4 -0
  19. package/dist/ui/autocomplete.d.ts +3 -0
  20. package/dist/ui/autocomplete.js +17 -2
  21. package/dist/ui/chart-cartesian.d.ts +60 -57
  22. package/dist/ui/chart-cartesian.js +7 -7
  23. package/dist/ui/chart-colors.d.ts +4 -2
  24. package/dist/ui/chart-colors.js +6 -2
  25. package/dist/ui/chart-marks.d.ts +4 -4
  26. package/dist/ui/chart-marks.js +14 -5
  27. package/dist/ui/chart-series.d.ts +9 -6
  28. package/dist/ui/chart-series.js +3 -2
  29. package/dist/ui/color-picker-swatches.d.ts +4 -3
  30. package/dist/ui/color-picker-swatches.js +7 -8
  31. package/dist/ui/command.d.ts +12 -0
  32. package/dist/ui/command.js +31 -1
  33. package/dist/ui/field.js +1 -1
  34. package/dist/ui/gradient-editor.d.ts +3 -2
  35. package/dist/ui/gradient-editor.js +7 -8
  36. package/dist/ui/markdown-components.d.ts +27 -0
  37. package/dist/ui/markdown-components.js +57 -0
  38. package/dist/ui/markdown-elements.d.ts +6 -25
  39. package/dist/ui/markdown-elements.js +19 -53
  40. package/dist/ui/markdown.d.ts +2 -7
  41. package/dist/ui/markdown.js +3 -20
  42. package/dist/ui/phone-input.js +2 -2
  43. package/lint/biome-preset.json +8 -1
  44. package/lint/class-policy.mjs +50 -1
  45. package/lint/eslint-plugin.mjs +98 -49
  46. package/lint/grit-rules.mjs +131 -42
  47. package/lint/no-component-part-css.grit +16 -0
  48. package/lint/no-component-style-classes.grit +66 -36
  49. package/lint/no-component-style-props.grit +51 -0
  50. package/lint/no-raw-type-classes.grit +1 -1
  51. package/package.json +5 -1
@@ -1,6 +1,6 @@
1
1
  language js(typescript, jsx)
2
2
 
3
3
  JsxAttribute(name=`className`) as $attr where {
4
- $attr <: contains or { JsxString(), JsStringLiteralExpression(), JsTemplateChunkElement(), JsLiteralMemberName() as $memberName where { $memberName <: r"(?s)[\"'].*" } } as $text where { $text <: r"(?s).*(?:(?:^|[^\w-])text-(?:micro|caption|label|body|body-lg|heading-[1-4]|display|xs|sm|base|lg|xl|[2-9]xl)\b|(?:^|[^\w-])text-\[\d[^\]]*\]).*" },
4
+ $attr <: contains or { JsxString(), JsStringLiteralExpression(), JsTemplateChunkElement(), JsLiteralMemberName() as $attrMember where { $attrMember <: r"(?s)[\"'].*" } } as $text where { $text <: r"(?s).*(?:(?:^|[^\w-])text-(?:micro|caption|label|body|body-lg|heading-[1-4]|display|xs|sm|base|lg|xl|[2-9]xl)\b|(?:^|[^\w-])text-\[\d[^\]]*\]).*" },
5
5
  register_diagnostic(span=$attr, message="Text size in className: render text through <Text>/<Heading> on the type scale, or size the control with its size prop or --cui-*-font-size knob.", severity="error")
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctrl-ui/react",
3
- "version": "0.9.12",
3
+ "version": "0.9.14",
4
4
  "description": "100+ React components for Tailwind CSS and shadcn/ui: pickers, trees, editors, canvases, app templates, and AI chat surfaces, with neutral defaults and consumer-owned themes.",
5
5
  "keywords": [
6
6
  "react",
@@ -61,6 +61,7 @@
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@base-ui/react": "^1.9.0",
64
+ "@biomejs/biome": ">=2.5.0",
64
65
  "@tanstack/charts": "^1.1.0",
65
66
  "@tanstack/react-virtual": "^3.14.13",
66
67
  "@tiptap/core": "3.31.4",
@@ -98,6 +99,9 @@
98
99
  "zod": "^4.6.5"
99
100
  },
100
101
  "peerDependenciesMeta": {
102
+ "@biomejs/biome": {
103
+ "optional": true
104
+ },
101
105
  "@tanstack/charts": {
102
106
  "optional": true
103
107
  },