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