@eqtylab/equality 5.5.3 → 6.0.0-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/CHANGELOG.md CHANGED
@@ -2,6 +2,90 @@
2
2
 
3
3
  Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
4
 
5
+ ## 6.0.0 - 2026-11-19
6
+
7
+ Controls and rows move to one scale: 28, 36 and 44. The default control drops from 40 to 36, and
8
+ menu rows grow from 32 to 36. If your app copied a 40px height from Equality to line something up
9
+ with a control, search for it: it now sits 4px taller than the control beside it.
10
+
11
+ ### Changed
12
+
13
+ | Part | Height | Text | Side padding |
14
+ | ------------------------------------------------------------------------- | ---------- | -------- | ------------ |
15
+ | `Button` `md` | 40 to 36 | 14 | 12 |
16
+ | `Button` `lg` | 44 | 14 to 16 | 32 to 16 |
17
+ | `Button` `sm` | 28 | 12 | 8 |
18
+ | `IconButton` `md` | 40 to 36 | | |
19
+ | `IconButton` `xs`, `sm`, `lg` | 24, 28, 44 | | |
20
+ | `SegmentedControls` `md` | 40 to 36 | 14 | 12 |
21
+ | `SegmentedControls` `lg` | 44 | 14 to 16 | 16 |
22
+ | `Input`, `SearchBar`, `Select` trigger | 40 to 36 | 14 | 8, 8, 12 |
23
+ | `Tabs` list | 40 to 36 | 18 | 12 |
24
+ | `Table` header | 40 to 36 | 14 | |
25
+ | `Table` row | 36 | 14 | 16 |
26
+ | `Timeline` `md` marker | 40 to 36 | | |
27
+ | `Nav` rail item | 40 to 36 | | |
28
+ | `NavSwitcher` and the `Nav` panel title | 32 to 36 | 14 | 8 |
29
+ | `NavList` row | 36 | 14 | 8 |
30
+ | `DropdownMenu`, `RadioDropdown`, `SortSelector` and `FilterDropdown` rows | 32 to 36 | 14 | 8 |
31
+ | `Select` option | 32 to 36 | 14 | 8 |
32
+ | `Command` row | 32 to 36 | 14 | 8 |
33
+ | `Command` row in a `CommandDialog` | 44 to 36 | 14 | 8 |
34
+ | `DisplayField` | 38 to 36 | 14 | 12 |
35
+ | `DateRangePicker` day | 40 to 36 | 14 | |
36
+
37
+ - Large `Button` side padding halves, from 32 to 16. This is the largest single move.
38
+ - The gap between an icon and its text grows from 6 to 8 on every `md` and `lg` `Button`, link
39
+ buttons included, and on `md` and `lg` segments.
40
+ - A row that wraps keeps its padding and grows; 36 is its minimum.
41
+ - `Command`'s input bar stays 36. The field inside it now fits: it was 40, or 48 in a
42
+ `CommandDialog`, and overflowed the bar.
43
+ - `Tabs` triggers fill the list's height. `Input` centres its text without vertical padding.
44
+ - The `Nav` switcher is as tall as the rail's first item, so the panel header no longer nudges it
45
+ down to line the two up.
46
+
47
+ ### Added
48
+
49
+ - Control size decisions: `--eq-control-xs-height`, `-sm-height`, `-md-height` and `-lg-height`;
50
+ a font size, line height and gap for `sm`, `md` and `lg`; and
51
+ `--eq-control-padding-x-condensed`, `-normal` and `-spacious`. A control or row you build
52
+ yourself reads these, such as `h-(--eq-control-md-height)`, so it follows the scale.
53
+
54
+ ### Deprecated
55
+
56
+ - `--eq-list-item-height`. Use `--eq-control-md-height`.
57
+ - `--eq-list-item-padding-x`. Use `--eq-control-padding-x-condensed`.
58
+ - `--eq-list-item-gap`. Use `--eq-control-md-gap`.
59
+ - `--eq-list-item-font-size`. Use `--eq-control-md-font-size`.
60
+
61
+ Each keeps its value until a later major release removes it, but nothing in Equality reads it any
62
+ more, so a site's override of one no longer takes effect. Override the name that replaces it.
63
+
64
+ ### Removed
65
+
66
+ - `--eq-control-height`. Use `--eq-control-md-height`, which the `Nav` rail now reads.
67
+
68
+ ## 5.6.0 - 2026-11-18
69
+
70
+ ### Added
71
+
72
+ - `Card` takes `selected`, which makes it a choice in a set, such as a radio card. With `onClick`, a
73
+ choice takes the grey list hover in place of the brand border and gradient; while `selected` is
74
+ `true` it takes the current-item fill, a primary border and, in forced colours, an outline. Pass
75
+ `false` for the unchosen cards so they hover the same way.
76
+ - `Card` takes `variant`, `success`, `warning` or `danger`, which tints its border and background
77
+ with that badge colour. It defaults to `default`, untinted, and isn't combined with `selected`.
78
+ Both tints sit over the elevation's background rather than replacing it.
79
+ - `Textarea` takes `variant="bare"`, for a textarea inside a frame that draws its own edge, such as
80
+ an editor with a toolbar: no border, background, radius or focus ring, so the frame must show
81
+ focus. `variant` defaults to `default`.
82
+ - `Button` takes `variant="field"`, for a button that opens a picker in a form. It draws as
83
+ `Select`'s trigger does, with the input's border, background and hover, full width, spreading its
84
+ content across it and clipping what overflows. Wrap the label in a `flex-1 truncate` span, so a
85
+ long value cuts off rather than pushing a `suffix` out.
86
+ - `IconButton` takes `size="xs"`: 24px, the WCAG 2.2 AA minimum target size, with a 14px icon, for
87
+ an action inside a picker field such as a clear button.
88
+
5
89
  ## 5.5.3 - 2026-11-18
6
90
 
7
91
  ### Changed
@@ -1,8 +1,8 @@
1
1
  /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
2
  .button {
3
3
  border-radius: var(--radius-md, 0.375rem);
4
- font-size: 0.875rem;
5
- line-height: var(--tw-leading, calc(1.25 / 0.875));
4
+ font-size: var(--eq-control-md-font-size);
5
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
6
6
  --tw-font-weight: 500;
7
7
  font-weight: 500;
8
8
  white-space: nowrap;
@@ -19,7 +19,7 @@
19
19
  display: flex;
20
20
  align-items: center;
21
21
  justify-content: center;
22
- gap: calc(0.25rem * 1.5);
22
+ gap: var(--eq-control-md-gap);
23
23
  cursor: pointer;
24
24
  &:disabled {
25
25
  cursor: not-allowed;
@@ -233,6 +233,44 @@
233
233
  }
234
234
  }
235
235
  }
236
+ .button--field {
237
+ --mix-color: var(--color-border);
238
+ --hover-darken: 12%;
239
+ --hover-lighten: 12%;
240
+ border-style: var(--tw-border-style);
241
+ border-width: 1px;
242
+ border-color: var(--color-border, color(display-p3 0.7432 0.7432 0.7432));
243
+ background-color: var(--color-background, color(display-p3 1 1 1));
244
+ color: var(--color-text-primary, color(display-p3 0 0 0));
245
+ width: 100%;
246
+ justify-content: space-between;
247
+ overflow: hidden;
248
+ text-align: left;
249
+ --tw-font-weight: 400;
250
+ font-weight: 400;
251
+ &:hover {
252
+ @media (hover: hover) {
253
+ &:not(*:disabled) {
254
+ border-color: var(--mix-color);
255
+ @supports (color: color-mix(in lab, red, red)) {
256
+ border-color: color-mix(in oklch, var(--mix-color), black var(--hover-darken, 20%));
257
+ }
258
+ }
259
+ }
260
+ }
261
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
262
+ &:hover {
263
+ @media (hover: hover) {
264
+ &:not(*:disabled) {
265
+ border-color: var(--mix-color);
266
+ @supports (color: color-mix(in lab, red, red)) {
267
+ border-color: color-mix(in oklch, var(--mix-color), white var(--hover-lighten, 20%));
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
236
274
  .button--link {
237
275
  --mix-color: var(--color-text-link);
238
276
  color: var(--mix-color);
@@ -296,24 +334,29 @@
296
334
  }
297
335
  }
298
336
  .size--sm {
299
- font-size: 0.75rem;
300
- line-height: var(--tw-leading, calc(1 / 0.75));
337
+ gap: var(--eq-control-sm-gap);
338
+ font-size: var(--eq-control-sm-font-size);
339
+ line-height: var(--tw-leading,var(--eq-control-sm-line-height));
301
340
  }
302
341
  .size--sm:not(.button--link) {
303
- height: calc(0.25rem * 7);
342
+ height: var(--eq-control-sm-height);
304
343
  border-radius: var(--radius-md, 0.375rem);
305
- padding-inline: calc(calc(0.25rem * 2) + var(--button-edge-inset,0px));
344
+ padding-inline: calc(var(--eq-control-padding-x-condensed) + var(--button-edge-inset,0px));
306
345
  }
307
346
  .size--md:not(.button--link) {
308
- height: calc(0.25rem * 10);
347
+ height: var(--eq-control-md-height);
309
348
  border-radius: var(--radius-md, 0.375rem);
310
- padding-inline: calc(calc(0.25rem * 3) + var(--button-edge-inset,0px));
311
- padding-block: calc(0.25rem * 2);
349
+ padding-inline: calc(var(--eq-control-padding-x-normal) + var(--button-edge-inset,0px));
350
+ }
351
+ .size--lg {
352
+ gap: var(--eq-control-lg-gap);
353
+ font-size: var(--eq-control-lg-font-size);
354
+ line-height: var(--tw-leading,var(--eq-control-lg-line-height));
312
355
  }
313
356
  .size--lg:not(.button--link) {
314
- height: calc(0.25rem * 11);
357
+ height: var(--eq-control-lg-height);
315
358
  border-radius: var(--radius-md, 0.375rem);
316
- padding-inline: calc(calc(0.25rem * 8) + var(--button-edge-inset,0px));
359
+ padding-inline: calc(var(--eq-control-padding-x-spacious) + var(--button-edge-inset,0px));
317
360
  }
318
361
  @property --tw-font-weight {
319
362
  syntax: "*";
@@ -1,4 +1,9 @@
1
1
  /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
+ @property --card-tint {
3
+ syntax: '<color>';
4
+ inherits: false;
5
+ initial-value: transparent;
6
+ }
2
7
  .card {
3
8
  container-type: inline-size;
4
9
  container-name: card;
@@ -111,6 +116,65 @@
111
116
  --tw-shadow-color: color-mix(in oklab, rgba(0, 0, 0, 0.1) var(--tw-shadow-alpha), transparent);
112
117
  }
113
118
  }
119
+ .card--choice,
120
+ .card--selected,
121
+ .card--success,
122
+ .card--warning,
123
+ .card--danger {
124
+ background-image: linear-gradient(var(--card-tint), var(--card-tint));
125
+ }
126
+ .card--choice {
127
+ cursor: pointer;
128
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
129
+ transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
130
+ transition-duration: var(--tw-duration, 150ms);
131
+ transition-property: color, background-color, border-color, --card-tint;
132
+ &:hover {
133
+ @media (hover: hover) {
134
+ --card-tint: var(--color-list-item-hover);
135
+ }
136
+ }
137
+ &:active {
138
+ --card-tint: var(--color-list-item-hover);
139
+ }
140
+ }
141
+ .card--selected,
142
+ .card--selected:hover,
143
+ .card--selected:active {
144
+ --card-tint: var(--color-list-item-current);
145
+ border-color: var(--color-text-primary, color(display-p3 0 0 0));
146
+ @media (forced-colors: active) {
147
+ outline-style: var(--tw-outline-style);
148
+ outline-width: 2px;
149
+ }
150
+ @media (forced-colors: active) {
151
+ outline-offset: calc(2px * -1);
152
+ }
153
+ @media (forced-colors: active) {
154
+ outline-color: Highlight;
155
+ }
156
+ }
157
+ .card--success {
158
+ --card-tint: color-mix(in srgb, color(display-p3 0.7403 0.8486 0.7417) 20%, transparent);
159
+ @supports (color: color-mix(in lab, red, red)) {
160
+ --card-tint: color-mix(in oklab, var(--color-badge-background-success) 20%, transparent);
161
+ }
162
+ border-color: var(--color-badge-background-success, color(display-p3 0.7403 0.8486 0.7417));
163
+ }
164
+ .card--warning {
165
+ --card-tint: color-mix(in srgb, color(display-p3 0.9327 0.8528 0.7204) 20%, transparent);
166
+ @supports (color: color-mix(in lab, red, red)) {
167
+ --card-tint: color-mix(in oklab, var(--color-badge-background-warning) 20%, transparent);
168
+ }
169
+ border-color: var(--color-badge-background-warning, color(display-p3 0.9327 0.8528 0.7204));
170
+ }
171
+ .card--danger {
172
+ --card-tint: color-mix(in srgb, color(display-p3 0.9358 0.751 0.7228) 20%, transparent);
173
+ @supports (color: color-mix(in lab, red, red)) {
174
+ --card-tint: color-mix(in oklab, var(--color-badge-background-danger) 20%, transparent);
175
+ }
176
+ border-color: var(--color-badge-background-danger, color(display-p3 0.9358 0.751 0.7228));
177
+ }
114
178
  @property --tw-border-style {
115
179
  syntax: "*";
116
180
  inherits: false;
@@ -236,3 +300,8 @@
236
300
  syntax: "*";
237
301
  inherits: false;
238
302
  }
303
+ @property --tw-outline-style {
304
+ syntax: "*";
305
+ inherits: false;
306
+ initial-value: solid;
307
+ }
@@ -28,20 +28,6 @@
28
28
  padding: calc(0.25rem * 0);
29
29
  }
30
30
  .command-dialog-content-inner {
31
- &[data-slot="command-input-wrapper"] {
32
- :is(& *) {
33
- height: calc(0.25rem * 12);
34
- }
35
- }
36
- & [cmdk-input] {
37
- height: calc(0.25rem * 12);
38
- }
39
- & [cmdk-item] {
40
- padding-inline: calc(0.25rem * 2);
41
- }
42
- & [cmdk-item] {
43
- padding-block: calc(0.25rem * 3);
44
- }
45
31
  & [cmdk-item] svg {
46
32
  width: calc(0.25rem * 5);
47
33
  height: calc(0.25rem * 5);
@@ -71,7 +57,7 @@
71
57
  border-bottom-style: var(--tw-border-style);
72
58
  border-bottom-width: 1px;
73
59
  border-color: var(--color-border-overlay, color(display-p3 0.8011 0.807 0.814));
74
- height: calc(0.25rem * 9);
60
+ height: var(--eq-control-md-height);
75
61
  padding-inline: calc(0.25rem * 3);
76
62
  display: flex;
77
63
  align-items: center;
@@ -103,9 +89,9 @@
103
89
  outline-offset: 2px;
104
90
  }
105
91
  display: flex;
106
- height: calc(0.25rem * 10);
92
+ height: 100%;
107
93
  width: 100%;
108
- padding-block: calc(0.25rem * 3);
94
+ padding-block: calc(0.25rem * 0);
109
95
  &:disabled {
110
96
  cursor: not-allowed;
111
97
  }
@@ -160,14 +146,15 @@
160
146
  outline: 2px solid transparent;
161
147
  outline-offset: 2px;
162
148
  }
163
- font-size: 0.875rem;
164
- line-height: var(--tw-leading, calc(1.25 / 0.875));
149
+ font-size: var(--eq-control-md-font-size);
150
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
165
151
  display: flex;
166
152
  align-items: center;
167
153
  gap: calc(0.25rem * 2);
168
154
  position: relative;
169
- padding-inline: calc(0.25rem * 2);
170
- padding-block: calc(0.25rem * 1.5);
155
+ min-height: var(--eq-control-md-height);
156
+ padding-inline: var(--eq-control-padding-x-condensed);
157
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
171
158
  cursor: pointer;
172
159
  -webkit-user-select: none;
173
160
  user-select: none;
@@ -1,7 +1,7 @@
1
1
  /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
2
2
  .display-field {
3
- font-size: 0.875rem;
4
- line-height: var(--tw-leading, calc(1.25 / 0.875));
3
+ font-size: var(--eq-control-md-font-size);
4
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
5
5
  text-overflow: clip;
6
6
  color: var(--color-text-primary, color(display-p3 0 0 0));
7
7
  }
@@ -12,7 +12,7 @@
12
12
  border-color: var(--color-border, color(display-p3 0.7432 0.7432 0.7432));
13
13
  background-color: var(--color-popover-background, color(display-p3 0.9738 0.9799 0.9872));
14
14
  display: flex;
15
- height: calc(0.25rem * 9.5);
15
+ height: var(--eq-control-md-height);
16
16
  width: 100%;
17
17
  overflow: clip;
18
18
  --tw-ring-offset-color: var(--color-background, color(display-p3 1 1 1));
@@ -51,8 +51,8 @@
51
51
  align-items: center;
52
52
  gap: calc(0.25rem * 1);
53
53
  padding-inline: calc(0.25rem * 2);
54
- font-size: 0.875rem;
55
- line-height: var(--tw-leading, calc(1.25 / 0.875));
54
+ font-size: var(--eq-control-md-font-size);
55
+ line-height: var(--tw-leading,var(--eq-control-md-line-height));
56
56
  --tw-font-weight: 500;
57
57
  font-weight: 500;
58
58
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
@@ -65,8 +65,10 @@
65
65
  display: block;
66
66
  width: 100%;
67
67
  overflow-y: clip;
68
+ align-content: center;
69
+ align-self: stretch;
68
70
  padding-inline: calc(0.25rem * 3);
69
- padding-block: calc(0.25rem * 2);
71
+ padding-block: calc(0.25rem * 0);
70
72
  font-family: var(--font-mono);
71
73
  }
72
74
  .actions {
@@ -55,9 +55,10 @@
55
55
  }
56
56
  .dropdown-menu-trigger,
57
57
  .dropdown-menu-item {
58
- padding-inline: calc(0.25rem * 2);
59
- padding-block: calc(0.25rem * 1.5);
60
- gap: calc(0.25rem * 2);
58
+ min-height: var(--eq-control-md-height);
59
+ padding-inline: var(--eq-control-padding-x-condensed);
60
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
61
+ gap: var(--eq-control-md-gap);
61
62
  & svg {
62
63
  pointer-events: none;
63
64
  }
@@ -71,8 +72,9 @@
71
72
  }
72
73
  .dropdown-menu-checkbox-item,
73
74
  .dropdown-menu-radio-item {
74
- padding-block: calc(0.25rem * 1.5);
75
- padding-right: calc(0.25rem * 2);
75
+ min-height: var(--eq-control-md-height);
76
+ padding-block: calc((var(--eq-control-md-height) - var(--eq-control-md-line-height)) / 2);
77
+ padding-right: var(--eq-control-padding-x-condensed);
76
78
  padding-left: calc(0.25rem * 8);
77
79
  }
78
80
  .dropdown-menu-trigger,
@@ -252,18 +254,18 @@
252
254
  justify-content: center;
253
255
  }
254
256
  .dropdown-menu-item-indicator-checkbox {
255
- top: calc(0.25rem * 2.25);
256
257
  width: calc(0.25rem * 3.5);
257
258
  height: calc(0.25rem * 3.5);
259
+ top: calc((var(--eq-control-md-height) - calc(0.25rem * 3.5)) / 2);
258
260
  border-radius: 0.25rem;
259
261
  border-style: var(--tw-border-style);
260
262
  border-width: 1px;
261
263
  border-color: var(--color-text-secondary, color(display-p3 0.1792 0.1792 0.1792));
262
264
  }
263
265
  .dropdown-menu-item-indicator-radio {
264
- top: calc(0.25rem * 1.5);
265
266
  height: calc(0.25rem * 5);
266
267
  width: calc(0.25rem * 4);
268
+ top: calc((var(--eq-control-md-height) - calc(0.25rem * 5)) / 2);
267
269
  }
268
270
  .dropdown-menu-checkbox-item[data-state='checked'] .dropdown-menu-item-indicator-checkbox {
269
271
  border-color: var(--color-button-primary-border, color(display-p3 0.5242 0.2903 0.7705));
@@ -36,19 +36,24 @@
36
36
  }
37
37
  display: flex;
38
38
  }
39
+ .size--xs {
40
+ width: var(--eq-control-xs-height);
41
+ height: var(--eq-control-xs-height);
42
+ border-radius: var(--radius-md, 0.375rem);
43
+ }
39
44
  .size--sm {
40
- width: calc(0.25rem * 7);
41
- height: calc(0.25rem * 7);
45
+ width: var(--eq-control-sm-height);
46
+ height: var(--eq-control-sm-height);
42
47
  border-radius: var(--radius-md, 0.375rem);
43
48
  }
44
49
  .size--md {
45
- width: calc(0.25rem * 10);
46
- height: calc(0.25rem * 10);
50
+ width: var(--eq-control-md-height);
51
+ height: var(--eq-control-md-height);
47
52
  border-radius: var(--radius-md, 0.375rem);
48
53
  }
49
54
  .size--lg {
50
- width: calc(0.25rem * 11);
51
- height: calc(0.25rem * 11);
55
+ width: var(--eq-control-lg-height);
56
+ height: var(--eq-control-lg-height);
52
57
  border-radius: var(--radius-md, 0.375rem);
53
58
  }
54
59
  .icon-btn--primary {
package/dist/index.cjs CHANGED
@@ -221,6 +221,7 @@ var buttonVariants = classVarianceAuthority.cva(styles__default.default["button"
221
221
  warning: [styles__default.default["button--filled"], styles__default.default["button--warning"]],
222
222
  secondary: [styles__default.default["button--filled"], styles__default.default["button--secondary"]],
223
223
  tertiary: styles__default.default["button--tertiary"],
224
+ field: styles__default.default["button--field"],
224
225
  link: styles__default.default["button--link"],
225
226
  navigation: styles__default.default["button--navigation"]
226
227
  },
@@ -947,26 +948,40 @@ var CardContentHeader = React16.forwardRef(
947
948
  );
948
949
  CardContentHeader.displayName = "CardContentHeader";
949
950
  var cardElevationVariants = generateElevationVariants(styles12__default.default, "card", ELEVATION.RAISED);
950
- var Card = React16__namespace.forwardRef(({ className, hoverGradientClassName, elevation = ELEVATION.RAISED, ...props }, ref) => {
951
- const shouldHaveHoverStyle = props.onClick !== void 0;
952
- return /* @__PURE__ */ jsxRuntime.jsxs(
953
- "div",
954
- {
955
- ref,
956
- className: cn(
957
- styles12__default.default.card,
958
- shouldHaveHoverStyle && styles12__default.default["card--hover"],
959
- cardElevationVariants({ elevation }),
960
- className
961
- ),
962
- ...props,
963
- children: [
964
- shouldHaveHoverStyle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles12__default.default["card-hover-gradient"], hoverGradientClassName) }),
965
- props.children
966
- ]
967
- }
968
- );
969
- });
951
+ var Card = React16__namespace.forwardRef(
952
+ ({
953
+ className,
954
+ hoverGradientClassName,
955
+ elevation = ELEVATION.RAISED,
956
+ selected,
957
+ variant = "default",
958
+ ...props
959
+ }, ref) => {
960
+ const isClickable = props.onClick !== void 0;
961
+ const isChoice = selected !== void 0;
962
+ const shouldHaveHoverStyle = isClickable && !isChoice;
963
+ return /* @__PURE__ */ jsxRuntime.jsxs(
964
+ "div",
965
+ {
966
+ ref,
967
+ className: cn(
968
+ styles12__default.default.card,
969
+ shouldHaveHoverStyle && styles12__default.default["card--hover"],
970
+ cardElevationVariants({ elevation }),
971
+ isChoice && isClickable && styles12__default.default["card--choice"],
972
+ selected && styles12__default.default["card--selected"],
973
+ variant !== "default" && styles12__default.default[`card--${variant}`],
974
+ className
975
+ ),
976
+ ...props,
977
+ children: [
978
+ shouldHaveHoverStyle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles12__default.default["card-hover-gradient"], hoverGradientClassName) }),
979
+ props.children
980
+ ]
981
+ }
982
+ );
983
+ }
984
+ );
970
985
  Card.displayName = "Card";
971
986
  var CardHeader = React16__namespace.forwardRef(
972
987
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles12__default.default["card-header"], className), ...props })
@@ -1004,6 +1019,7 @@ Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
1004
1019
  var iconButtonVariants = classVarianceAuthority.cva(styles14__default.default["icon-btn"], {
1005
1020
  variants: {
1006
1021
  size: {
1022
+ xs: styles14__default.default["size--xs"],
1007
1023
  sm: styles14__default.default["size--sm"],
1008
1024
  md: styles14__default.default["size--md"],
1009
1025
  lg: styles14__default.default["size--lg"]
@@ -1019,6 +1035,7 @@ var iconButtonVariants = classVarianceAuthority.cva(styles14__default.default["i
1019
1035
  }
1020
1036
  });
1021
1037
  var iconSizeMap = {
1038
+ xs: 14,
1022
1039
  sm: 16,
1023
1040
  md: 22,
1024
1041
  lg: 26
@@ -5188,8 +5205,19 @@ var Tabs = ({
5188
5205
  );
5189
5206
  };
5190
5207
  var Textarea = React16__namespace.forwardRef(
5191
- ({ className, ...props }, ref) => {
5192
- return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(styles62__default.default["textarea"], className), ref, ...props });
5208
+ ({ className, variant = "default", ...props }, ref) => {
5209
+ return /* @__PURE__ */ jsxRuntime.jsx(
5210
+ "textarea",
5211
+ {
5212
+ className: cn(
5213
+ styles62__default.default["textarea"],
5214
+ variant === "bare" && styles62__default.default["textarea--bare"],
5215
+ className
5216
+ ),
5217
+ ref,
5218
+ ...props
5219
+ }
5220
+ );
5193
5221
  }
5194
5222
  );
5195
5223
  Textarea.displayName = "Textarea";