@marianmeres/stuic 3.72.0 → 3.72.1

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.
@@ -10,31 +10,33 @@
10
10
  --stuic-button-group-padding: 3px;
11
11
  --stuic-button-group-gap: 0.25rem;
12
12
 
13
- /* Button sizing - 44px is Apple HIG minimum touch target */
13
+ /* Button sizing — overall height = min-height + 2×padding + 2×border = 44px (Apple HIG min) */
14
14
  --stuic-button-group-button-padding-x: 0.75rem;
15
- --stuic-button-group-button-padding-y: 0.5rem;
16
- --stuic-button-group-button-min-height: 2.75rem; /* 44px */
15
+ --stuic-button-group-button-padding-y: 0.375rem;
16
+ --stuic-button-group-button-min-height: 2.25rem; /* 36px */
17
17
 
18
18
  /* Focus ring */
19
- --stuic-button-group-ring-width: 3px;
19
+ --stuic-button-group-ring-width: 4px;
20
20
  --stuic-button-group-ring-color: var(--stuic-color-ring);
21
21
 
22
22
  /* Container colors - theme vars */
23
23
  --stuic-button-group-bg: var(--stuic-color-muted);
24
- --stuic-button-group-text: var(--stuic-color-foreground);
25
- --stuic-button-group-border: var(--stuic-color-border);
24
+ --stuic-button-group-text: var(--stuic-color-muted-foreground);
25
+ --stuic-button-group-border: var(--stuic-input-border);
26
+ --stuic-button-group-border-focus: var(--stuic-color-primary);
27
+ --stuic-button-group-border-width: 1px;
26
28
 
27
29
  /* Button colors (inactive) */
28
30
  --stuic-button-group-button-bg: transparent;
29
- --stuic-button-group-button-text: var(--stuic-color-foreground);
31
+ --stuic-button-group-button-text: var(--stuic-color-muted-foreground);
30
32
  --stuic-button-group-button-bg-hover: transparent;
31
33
  --stuic-button-group-button-text-hover: var(--stuic-color-foreground);
32
34
 
33
35
  /* Button colors (active) */
34
- --stuic-button-group-button-bg-active: var(--stuic-color-muted-foreground);
35
- --stuic-button-group-button-text-active: var(--stuic-color-primary-foreground);
36
- --stuic-button-group-button-bg-active-hover: var(--stuic-color-muted-foreground);
37
- --stuic-button-group-button-text-active-hover: var(--stuic-color-primary-foreground);
36
+ --stuic-button-group-button-bg-active: var(--stuic-color-surface-1);
37
+ --stuic-button-group-button-text-active: var(--stuic-color-surface-1-foreground);
38
+ --stuic-button-group-button-bg-active-hover: var(--stuic-color-surface-1);
39
+ --stuic-button-group-button-text-active-hover: var(--stuic-color-surface-1-foreground);
38
40
  }
39
41
 
40
42
  @layer components {
@@ -64,6 +66,7 @@
64
66
 
65
67
  /* Focus-within state */
66
68
  .stuic-button-group:focus-within {
69
+ border-color: var(--stuic-button-group-border-focus);
67
70
  outline: var(--stuic-button-group-ring-width) solid
68
71
  var(--stuic-button-group-ring-color);
69
72
  outline-offset: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "3.72.0",
3
+ "version": "3.72.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",