@saar-ai/web-widget 0.15.0 → 0.16.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.
@@ -0,0 +1,45 @@
1
+ /*
2
+ * The pointer on every actionable element (SAA-450). Tailwind v4's preflight
3
+ * dropped v3's `button { cursor: pointer }`, and neither shadow-DOM sheet loads
4
+ * `@wesence/ui`'s base layer, so both entries import this copy of its rule.
5
+ * Keep the two selector lists identical; `packages/ui`'s pointer-cursor test
6
+ * compares them.
7
+ *
8
+ * `:where()` keeps it at zero specificity in `@layer base`: any component rule
9
+ * or `cursor-*` utility wins. Disabled controls keep the default cursor. The
10
+ * text rule comes first so a checkbox, radio or button input gets the pointer
11
+ * by order.
12
+ */
13
+ @layer base {
14
+ :where(input, textarea):where(:enabled) {
15
+ cursor: text;
16
+ }
17
+
18
+ :where(
19
+ button,
20
+ select,
21
+ summary,
22
+ a[href],
23
+ label[for],
24
+ [type='button'],
25
+ [type='checkbox'],
26
+ [type='color'],
27
+ [type='file'],
28
+ [type='image'],
29
+ [type='radio'],
30
+ [type='range'],
31
+ [type='reset'],
32
+ [type='submit'],
33
+ [role='button'],
34
+ [role='checkbox'],
35
+ [role='menuitem'],
36
+ [role='menuitemcheckbox'],
37
+ [role='menuitemradio'],
38
+ [role='option'],
39
+ [role='radio'],
40
+ [role='switch'],
41
+ [role='tab']
42
+ ):where(:not(:disabled, [aria-disabled='true'])) {
43
+ cursor: pointer;
44
+ }
45
+ }
@@ -48,6 +48,7 @@
48
48
  @source not '../**/__tests__/**';
49
49
  @source not '../**/*.test.{ts,tsx}';
50
50
  @import './tokens.css';
51
+ @import './cursor.css';
51
52
  @import './concierge.css';
52
53
  /* LAST, after concierge.css — its rules win the cascade by order. See the
53
54
  * file's own header and DOCK_SPEC §7.1 rule 1's 2026-09-15 exception. */