@usetheo/ui 0.6.1-next.0 → 0.6.2-next.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/styles.css CHANGED
@@ -27,6 +27,31 @@
27
27
  border-color: hsl(var(--border));
28
28
  }
29
29
 
30
+ /* Tailwind v4 preflight regression compensation —
31
+ * v4 intentionally dropped the `button { cursor: pointer }` rule
32
+ * (https://tailwindcss.com/docs/upgrade-guide#default-button-cursor)
33
+ * so every native <button> renders with the default arrow cursor.
34
+ *
35
+ * Library authors are expected to opt in explicitly per button. The
36
+ * Violet Forge `<Button>` primitive does so (see its CVA). For the
37
+ * dozens of native <button> elements composites render directly,
38
+ * we restore the v3 behavior here — scoped to *interactive* buttons:
39
+ *
40
+ * - `:not(:disabled)` skips the HTML `disabled` attribute path
41
+ * (browser already shows `cursor: default` for disabled, but the
42
+ * rule below stays explicit for clarity).
43
+ * - `:not([aria-disabled="true"])` skips the ARIA-disabled path
44
+ * (where the button stays focusable but acts as no-op).
45
+ *
46
+ * This is an EXPLICIT opt-in by the library author for consumers who
47
+ * imported `@usetheo/ui/styles.css` — it does NOT alter Tailwind's
48
+ * global preflight, only this stylesheet's @layer base.
49
+ */
50
+ button:not(:disabled):not([aria-disabled="true"]),
51
+ [role="button"]:not([aria-disabled="true"]) {
52
+ cursor: pointer;
53
+ }
54
+
30
55
  html {
31
56
  font-family: var(--font-body);
32
57
  -webkit-font-smoothing: antialiased;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usetheo/ui",
3
- "version": "0.6.1-next.0",
3
+ "version": "0.6.2-next.0",
4
4
  "description": "Theo UI — framework-agnostic React component library with the Violet Forge design system. Focused on AI-agent interfaces, cloud dashboards, and developer-tooling surfaces.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",