@marianmeres/stuic 3.72.0 → 3.72.2

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.
@@ -7,34 +7,37 @@
7
7
  :root {
8
8
  /* Default look is a pill switcher. Override radius/bg to get a square group. */
9
9
  --stuic-button-group-radius: 9999px;
10
- --stuic-button-group-padding: 3px;
10
+ --stuic-button-group-padding-x: 4px;
11
+ --stuic-button-group-padding-y: 3px;
11
12
  --stuic-button-group-gap: 0.25rem;
12
13
 
13
- /* Button sizing - 44px is Apple HIG minimum touch target */
14
+ /* Button sizing — overall height = min-height + 2×padding + 2×border = 44px (Apple HIG min) */
14
15
  --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 */
16
+ --stuic-button-group-button-padding-y: 0.375rem;
17
+ --stuic-button-group-button-min-height: 2.25rem; /* 36px */
17
18
 
18
19
  /* Focus ring */
19
- --stuic-button-group-ring-width: 3px;
20
+ --stuic-button-group-ring-width: 4px;
20
21
  --stuic-button-group-ring-color: var(--stuic-color-ring);
21
22
 
22
23
  /* Container colors - theme vars */
23
24
  --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);
25
+ --stuic-button-group-text: var(--stuic-color-muted-foreground);
26
+ --stuic-button-group-border: var(--stuic-input-border);
27
+ --stuic-button-group-border-focus: var(--stuic-color-primary);
28
+ --stuic-button-group-border-width: 1px;
26
29
 
27
30
  /* Button colors (inactive) */
28
31
  --stuic-button-group-button-bg: transparent;
29
- --stuic-button-group-button-text: var(--stuic-color-foreground);
32
+ --stuic-button-group-button-text: var(--stuic-color-muted-foreground);
30
33
  --stuic-button-group-button-bg-hover: transparent;
31
34
  --stuic-button-group-button-text-hover: var(--stuic-color-foreground);
32
35
 
33
36
  /* 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);
37
+ --stuic-button-group-button-bg-active: var(--stuic-color-surface-1);
38
+ --stuic-button-group-button-text-active: var(--stuic-color-surface-1-foreground);
39
+ --stuic-button-group-button-bg-active-hover: var(--stuic-color-surface-1);
40
+ --stuic-button-group-button-text-active-hover: var(--stuic-color-surface-1-foreground);
38
41
  }
39
42
 
40
43
  @layer components {
@@ -51,7 +54,7 @@
51
54
  width: 100%;
52
55
 
53
56
  /* Box model */
54
- padding: var(--stuic-button-group-padding);
57
+ padding: var(--stuic-button-group-padding-y) var(--stuic-button-group-padding-x);
55
58
  border-width: var(--stuic-button-group-border-width, var(--stuic-border-width));
56
59
  border-style: solid;
57
60
  border-radius: var(--stuic-button-group-radius, var(--stuic-radius-button));
@@ -64,6 +67,7 @@
64
67
 
65
68
  /* Focus-within state */
66
69
  .stuic-button-group:focus-within {
70
+ border-color: var(--stuic-button-group-border-focus);
67
71
  outline: var(--stuic-button-group-ring-width) solid
68
72
  var(--stuic-button-group-ring-color);
69
73
  outline-offset: 0;
@@ -158,7 +158,7 @@
158
158
  classDialog="flex items-center justify-center"
159
159
  >
160
160
  {#snippet header()}
161
- <div class="flex items-center justify-between p-4 pb-0">
161
+ <div class="flex items-center justify-between p-4">
162
162
  <H level={1} renderLevel={3} class="pl-2">
163
163
  {resolvedTitle}
164
164
  </H>
@@ -165,7 +165,7 @@
165
165
  classDialog="flex items-center justify-center"
166
166
  >
167
167
  {#snippet header()}
168
- <div class="flex items-center justify-between p-4 pb-0">
168
+ <div class="flex items-center justify-between p-4">
169
169
  <H level={1} renderLevel={3} class="pl-2">
170
170
  {title ?? t("register_form.modal_title")}
171
171
  </H>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "3.72.0",
3
+ "version": "3.72.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",