impact-nova 3.0.0-alpha.14 → 3.0.0-alpha.15

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
- import * as n from "react";
2
+ import * as i from "react";
3
3
  import * as L from "@radix-ui/react-checkbox";
4
4
  import * as G from "@radix-ui/react-radio-group";
5
5
  import { Slot as T } from "@radix-ui/react-slot";
@@ -8,11 +8,11 @@ import { Checkmark as V } from "impact-nova-icons";
8
8
  import { Badge as F } from "../../data-display/badge/badge.js";
9
9
  import { createComponent as p } from "../../../lib/primitives/create-component.js";
10
10
  import { useComposedRefs as _ } from "../../../lib/compose-refs.js";
11
- import { cn as d } from "../../../lib/utils.js";
11
+ import { cn as l } from "../../../lib/utils.js";
12
12
  import { choiceCardCheckboxIndicatorClassName as H, choiceCardRadioIndicatorClassName as $ } from "./choice-card-indicator.variants.js";
13
13
  import { ChoiceCardFeaturedBackdrop as K } from "./choice-card-featured-backdrop.js";
14
14
  import { choiceCardVariants as W } from "./choice-card.variants.js";
15
- const y = n.createContext(null), g = n.createContext({
15
+ const y = i.createContext(null), g = i.createContext({
16
16
  value: "",
17
17
  selected: !1,
18
18
  type: "single",
@@ -21,19 +21,19 @@ const y = n.createContext(null), g = n.createContext({
21
21
  labelIsExplicit: !1,
22
22
  setAccessibleName: () => {
23
23
  }
24
- }), v = n.createContext({
24
+ }), v = i.createContext({
25
25
  inCompare: !1,
26
26
  rows: 0,
27
27
  fit: "scroll"
28
28
  }), B = () => {
29
- const e = n.useContext(y);
29
+ const e = i.useContext(y);
30
30
  if (!e)
31
31
  throw new Error("ChoiceCard components must be used within ChoiceCardGroup");
32
32
  return e;
33
33
  };
34
34
  function Ce() {
35
35
  const { value: e, type: a, setValue: t, isSelected: o } = B();
36
- return n.useMemo(
36
+ return i.useMemo(
37
37
  () => ({
38
38
  value: e,
39
39
  type: a,
@@ -44,7 +44,7 @@ function Ce() {
44
44
  );
45
45
  }
46
46
  function pe() {
47
- return n.useContext(g);
47
+ return i.useContext(g);
48
48
  }
49
49
  function Z({
50
50
  selected: e,
@@ -52,9 +52,9 @@ function Z({
52
52
  mode: t,
53
53
  size: o,
54
54
  variant: c,
55
- className: i
55
+ className: n
56
56
  }) {
57
- return d(
57
+ return l(
58
58
  W({
59
59
  variant: c,
60
60
  size: o,
@@ -62,7 +62,7 @@ function Z({
62
62
  mode: t,
63
63
  disabled: !!a
64
64
  }),
65
- i
65
+ n
66
66
  );
67
67
  }
68
68
  const q = ({
@@ -71,18 +71,18 @@ const q = ({
71
71
  onValueChange: t,
72
72
  disabled: o,
73
73
  orientation: c = "horizontal",
74
- wrap: i = !1,
75
- className: l,
74
+ wrap: n = !1,
75
+ className: d,
76
76
  children: h
77
77
  }) => {
78
78
  const [C, s] = M({
79
79
  prop: e,
80
80
  defaultProp: a,
81
81
  onChange: t
82
- }), u = n.useCallback(
82
+ }), u = i.useCallback(
83
83
  (m) => C === m,
84
84
  [C]
85
- ), f = n.useMemo(
85
+ ), f = i.useMemo(
86
86
  () => ({
87
87
  type: "single",
88
88
  disabled: o,
@@ -99,10 +99,10 @@ const q = ({
99
99
  value: C,
100
100
  onValueChange: s,
101
101
  disabled: o,
102
- className: l,
102
+ className: d,
103
103
  "data-component": "choice-card-group",
104
104
  "data-type": "single",
105
- "data-layout": i ? "wrap" : c === "vertical" ? "column" : "row",
105
+ "data-layout": n ? "wrap" : c === "vertical" ? "column" : "row",
106
106
  children: h
107
107
  }
108
108
  ) });
@@ -112,18 +112,18 @@ const q = ({
112
112
  onValueChange: t,
113
113
  disabled: o,
114
114
  orientation: c = "horizontal",
115
- wrap: i = !1,
116
- className: l,
115
+ wrap: n = !1,
116
+ className: d,
117
117
  children: h
118
118
  }) => {
119
119
  const [C, s] = M({
120
120
  prop: e,
121
121
  defaultProp: a,
122
122
  onChange: t
123
- }), u = n.useMemo(() => C ?? [], [C]), f = n.useCallback(
123
+ }), u = i.useMemo(() => C ?? [], [C]), f = i.useCallback(
124
124
  (b) => u.includes(b),
125
125
  [u]
126
- ), m = n.useCallback(
126
+ ), m = i.useCallback(
127
127
  (b) => {
128
128
  if (u.includes(b)) {
129
129
  s(u.filter((N) => N !== b));
@@ -132,7 +132,7 @@ const q = ({
132
132
  s([...u, b]);
133
133
  },
134
134
  [u, s]
135
- ), k = n.useMemo(
135
+ ), k = i.useMemo(
136
136
  () => ({
137
137
  type: "multiple",
138
138
  disabled: o,
@@ -147,10 +147,10 @@ const q = ({
147
147
  "div",
148
148
  {
149
149
  role: "group",
150
- className: l,
150
+ className: d,
151
151
  "data-component": "choice-card-group",
152
152
  "data-type": "multiple",
153
- "data-layout": i ? "wrap" : c === "vertical" ? "column" : "row",
153
+ "data-layout": n ? "wrap" : c === "vertical" ? "column" : "row",
154
154
  children: h
155
155
  }
156
156
  ) });
@@ -176,8 +176,8 @@ const U = p(
176
176
  disabled: t = !1,
177
177
  mode: o,
178
178
  size: c,
179
- variant: i,
180
- children: l,
179
+ variant: n,
180
+ children: d,
181
181
  onClick: h,
182
182
  onPointerDown: C,
183
183
  onKeyDown: s,
@@ -191,14 +191,14 @@ const U = p(
191
191
  disabled: t,
192
192
  mode: o,
193
193
  size: c,
194
- variant: i,
194
+ variant: n,
195
195
  className: e
196
196
  }),
197
197
  "data-component": "choice-card",
198
198
  "data-selected": a || void 0,
199
199
  "data-disabled": t || void 0,
200
200
  "data-size": c,
201
- "data-variant": i,
201
+ "data-variant": n,
202
202
  "aria-disabled": t || void 0,
203
203
  onClick: (m) => E(t, m, h),
204
204
  onPointerDown: (m) => E(t, m, C),
@@ -210,7 +210,7 @@ const U = p(
210
210
  s?.(m);
211
211
  },
212
212
  ...u,
213
- children: l
213
+ children: d
214
214
  }
215
215
  )
216
216
  ), he = p(
@@ -221,29 +221,29 @@ const U = p(
221
221
  children: t,
222
222
  disabled: o,
223
223
  size: c = "md",
224
- variant: i = "default",
225
- "aria-label": l,
224
+ variant: n = "default",
225
+ "aria-label": d,
226
226
  ...h
227
227
  }, C) => {
228
- const s = B(), u = n.useContext(v), f = o || s.disabled, m = s.isSelected(e), [k, b] = n.useState(""), N = n.useCallback((w) => {
228
+ const s = B(), u = i.useContext(v), f = o || s.disabled, m = s.isSelected(e), [k, b] = i.useState(""), N = i.useCallback((w) => {
229
229
  b((P) => P === w ? P : w);
230
- }, []), S = !!l, j = n.useMemo(
230
+ }, []), S = !!d, j = i.useMemo(
231
231
  () => ({
232
232
  value: e,
233
233
  selected: m,
234
234
  disabled: f,
235
235
  type: s.type,
236
236
  size: c,
237
- variant: i,
237
+ variant: n,
238
238
  labelIsExplicit: S,
239
239
  setAccessibleName: N
240
240
  }),
241
- [e, m, f, s.type, c, i, S, N]
242
- ), z = l ?? (k || e), R = () => {
241
+ [e, m, f, s.type, c, n, S, N]
242
+ ), z = d ?? (k || e), R = () => {
243
243
  f || s.toggle(e);
244
244
  }, A = (w) => {
245
245
  Q(w.target) || R(), h.onClick?.(w);
246
- }, I = d(
246
+ }, I = l(
247
247
  "pointer-events-none absolute inset-0 z-0 opacity-0 outline-none",
248
248
  u.inCompare && "[grid-column:1] [grid-row:1/-1]"
249
249
  ), D = s.type === "single" ? /* @__PURE__ */ r(
@@ -274,10 +274,10 @@ const U = p(
274
274
  disabled: f,
275
275
  mode: s.type,
276
276
  size: c,
277
- variant: i,
278
- className: d(
277
+ variant: n,
278
+ className: l(
279
279
  a,
280
- u.inCompare && d(
280
+ u.inCompare && l(
281
281
  "isolate grid w-full grid-rows-subgrid [grid-row:1/-1] gap-0",
282
282
  u.fit === "auto" ? "min-w-0 max-w-[420px]" : "w-[411px] min-w-[411px] max-w-[411px]"
283
283
  )
@@ -286,22 +286,23 @@ const U = p(
286
286
  onClick: A,
287
287
  children: [
288
288
  D,
289
- i === "featured" ? /* @__PURE__ */ r(K, {}) : null,
289
+ n === "featured" ? /* @__PURE__ */ r(K, {}) : null,
290
290
  t
291
291
  ]
292
292
  }
293
293
  ) });
294
294
  }
295
295
  ), fe = p("ChoiceCardIndicator", ({ className: e, shape: a }, t) => {
296
- const { selected: o, type: c, disabled: i } = n.useContext(g);
296
+ const { selected: o, type: c, disabled: n } = i.useContext(g);
297
297
  return (a ?? (c === "multiple" ? "checkbox" : "radio")) === "checkbox" ? /* @__PURE__ */ r(
298
298
  "span",
299
299
  {
300
300
  ref: t,
301
- className: d(
301
+ className: l(
302
302
  H,
303
- o && "border-brand bg-accent text-brand",
304
- i && "border-stroke bg-disabled-surface text-disabled-foreground data-[state=checked]:border-stroke data-[state=checked]:bg-disabled-surface",
303
+ o && !n && "border-brand bg-accent text-brand",
304
+ o && n && "border-stroke-field bg-disabled-surface text-content-secondary",
305
+ !o && n && "border-stroke bg-disabled-surface text-disabled-foreground",
305
306
  e
306
307
  ),
307
308
  "data-slot": "choice-card-indicator",
@@ -313,10 +314,11 @@ const U = p(
313
314
  "span",
314
315
  {
315
316
  ref: t,
316
- className: d(
317
+ className: l(
317
318
  $,
318
- o && "ring-brand",
319
- i && "bg-disabled-surface ring-stroke",
319
+ o && !n && "ring-brand",
320
+ o && n && "bg-disabled-surface text-stroke-field ring-stroke-field",
321
+ !o && n && "bg-disabled-surface ring-stroke",
320
322
  e
321
323
  ),
322
324
  "data-slot": "choice-card-indicator",
@@ -330,7 +332,7 @@ const U = p(
330
332
  "div",
331
333
  {
332
334
  ref: o,
333
- className: d("pointer-events-none absolute inset-0 overflow-hidden", e),
335
+ className: l("pointer-events-none absolute inset-0 overflow-hidden", e),
334
336
  "data-slot": "choice-card-background",
335
337
  "aria-hidden": "true",
336
338
  ...t,
@@ -345,7 +347,7 @@ function X({ className: e }) {
345
347
  width: 28,
346
348
  height: 32,
347
349
  viewBox: "0 0 28 32",
348
- className: d("relative z-0 block h-8 w-7 shrink-0", e),
350
+ className: l("relative z-0 block h-8 w-7 shrink-0", e),
349
351
  "data-slot": "choice-card-ribbon-wedge",
350
352
  "aria-hidden": "true",
351
353
  children: /* @__PURE__ */ r(
@@ -364,7 +366,7 @@ const xe = p(
364
366
  "div",
365
367
  {
366
368
  ref: o,
367
- className: d("pointer-events-none absolute bottom-0 right-0 flex h-8 items-stretch", e),
369
+ className: l("pointer-events-none absolute bottom-0 right-0 flex h-8 items-stretch", e),
368
370
  "data-slot": "choice-card-ribbon",
369
371
  ...t,
370
372
  children: [
@@ -372,7 +374,7 @@ const xe = p(
372
374
  /* @__PURE__ */ r(
373
375
  "div",
374
376
  {
375
- className: d(
377
+ className: l(
376
378
  // Start fill at the chevron tip (28 − 11) so no empty purple band sits before the label
377
379
  "relative z-[1] -ms-[17px] flex h-8 items-center rounded-br-xl pe-2 ps-1",
378
380
  "bg-[linear-gradient(90deg,var(--color-choice-card-ribbon-from)_0%,var(--color-choice-card-ribbon-to)_100%)]"
@@ -387,12 +389,12 @@ const xe = p(
387
389
  ), ge = p(
388
390
  "ChoiceCardFooter",
389
391
  ({ className: e, children: a, ...t }, o) => {
390
- const c = n.useContext(v);
392
+ const c = i.useContext(v);
391
393
  return /* @__PURE__ */ r(
392
394
  "div",
393
395
  {
394
396
  ref: o,
395
- className: d(
397
+ className: l(
396
398
  "flex flex-wrap items-start gap-2",
397
399
  c.inCompare && "[grid-row:-1] self-end pt-4",
398
400
  e
@@ -406,12 +408,12 @@ const xe = p(
406
408
  ), we = p(
407
409
  "ChoiceCardContent",
408
410
  ({ className: e, children: a, ...t }, o) => {
409
- const { variant: c } = n.useContext(g);
410
- return n.useContext(v).inCompare ? /* @__PURE__ */ r(
411
+ const { variant: c } = i.useContext(g);
412
+ return i.useContext(v).inCompare ? /* @__PURE__ */ r(
411
413
  "div",
412
414
  {
413
415
  ref: o,
414
- className: d("contents", e),
416
+ className: l("contents", e),
415
417
  "data-slot": "choice-card-content",
416
418
  ...t,
417
419
  children: a
@@ -420,7 +422,7 @@ const xe = p(
420
422
  "div",
421
423
  {
422
424
  ref: o,
423
- className: d(
425
+ className: l(
424
426
  "relative z-[1] flex min-w-0 flex-1 flex-col items-start gap-1",
425
427
  c === "featured" && "w-full flex-none gap-2 p-3",
426
428
  c === "compare" && "w-full flex-none gap-4",
@@ -436,14 +438,14 @@ const xe = p(
436
438
  "div",
437
439
  {
438
440
  ref: o,
439
- className: d("flex shrink-0 items-center justify-center", e),
441
+ className: l("flex shrink-0 items-center justify-center", e),
440
442
  "data-slot": "choice-card-media",
441
443
  ...t,
442
444
  children: a
443
445
  }
444
446
  )), Ne = p("ChoiceCardTitle", ({ className: e, children: a, ...t }, o) => {
445
- const { selected: c, disabled: i, size: l, variant: h, labelIsExplicit: C, setAccessibleName: s } = n.useContext(g), u = n.useRef(null), f = _(o, u);
446
- return n.useLayoutEffect(() => {
447
+ const { selected: c, disabled: n, size: d, variant: h, labelIsExplicit: C, setAccessibleName: s } = i.useContext(g), u = i.useRef(null), f = _(o, u);
448
+ return i.useLayoutEffect(() => {
447
449
  if (C) return;
448
450
  const m = u.current?.textContent?.trim();
449
451
  m && s(m);
@@ -451,11 +453,11 @@ const xe = p(
451
453
  "h3",
452
454
  {
453
455
  ref: f,
454
- className: d(
456
+ className: l(
455
457
  "capitalize text-content",
456
- l === "sm" ? "text-sm font-semibold leading-6" : "text-base font-bold leading-6",
458
+ d === "sm" ? "text-sm font-semibold leading-6" : "text-base font-bold leading-6",
457
459
  (h === "featured" || h === "compare") && "text-base font-semibold leading-6",
458
- i && !c && "text-content-secondary",
460
+ n && !c && "text-content-secondary",
459
461
  e
460
462
  ),
461
463
  ...t,
@@ -465,12 +467,12 @@ const xe = p(
465
467
  }), ke = p(
466
468
  "ChoiceCardHeader",
467
469
  ({ className: e, children: a, ...t }, o) => {
468
- const c = n.useContext(v);
470
+ const c = i.useContext(v);
469
471
  return /* @__PURE__ */ r(
470
472
  "div",
471
473
  {
472
474
  ref: o,
473
- className: d(
475
+ className: l(
474
476
  "flex w-full items-center gap-2",
475
477
  c.inCompare && "[grid-row:1] min-w-0 overflow-hidden",
476
478
  e
@@ -482,16 +484,16 @@ const xe = p(
482
484
  );
483
485
  }
484
486
  ), ye = p("ChoiceCardDescription", ({ className: e, children: a, ...t }, o) => {
485
- const { selected: c, disabled: i, variant: l } = n.useContext(g);
487
+ const { selected: c, disabled: n, variant: d } = i.useContext(g);
486
488
  return /* @__PURE__ */ r(
487
489
  "p",
488
490
  {
489
491
  ref: o,
490
- className: d(
492
+ className: l(
491
493
  "text-xs font-medium leading-4 text-content-secondary",
492
- l === "featured" && "leading-[18px]",
493
- l === "compare" && "capitalize font-bold leading-5 text-content-icon",
494
- i && !c && l !== "featured" && "text-content-muted",
494
+ d === "featured" && "leading-[18px]",
495
+ d === "compare" && "capitalize font-bold leading-5 text-content-icon",
496
+ n && !c && d !== "featured" && "text-content-muted",
495
497
  e
496
498
  ),
497
499
  ...t,
@@ -506,21 +508,21 @@ const xe = p(
506
508
  placement: t = "start",
507
509
  icon: o,
508
510
  children: c = "Selected",
509
- ...i
510
- }, l) => {
511
- const { selected: h } = n.useContext(g);
511
+ ...n
512
+ }, d) => {
513
+ const { selected: h } = i.useContext(g);
512
514
  return h ? /* @__PURE__ */ r(
513
515
  a ? T : "div",
514
516
  {
515
- ref: l,
517
+ ref: d,
516
518
  "data-slot": "choice-card-status",
517
519
  "data-placement": t,
518
- className: d(
520
+ className: l(
519
521
  "pointer-events-none absolute z-10 -top-4",
520
522
  t === "center" ? "left-1/2 -translate-x-1/2" : "start-3",
521
523
  e
522
524
  ),
523
- ...i,
525
+ ...n,
524
526
  children: a ? c : /* @__PURE__ */ r(F, { variant: "solid", color: "success", size: "md", icon: o ?? /* @__PURE__ */ r(V, { className: "size-4" }), children: c })
525
527
  }
526
528
  ) : null;
@@ -532,7 +534,7 @@ const xe = p(
532
534
  {
533
535
  ref: o,
534
536
  "data-slot": "choice-card-index",
535
- className: d(
537
+ className: l(
536
538
  "inline-flex size-[22px] shrink-0 items-center justify-center rounded-md bg-content-icon text-[12px] font-bold leading-none tracking-[-0.12px] text-brand-foreground group-data-[selected]:bg-success",
537
539
  e
538
540
  ),
@@ -543,21 +545,21 @@ const xe = p(
543
545
  ), Re = p(
544
546
  "ChoiceCardStats",
545
547
  ({ className: e, children: a, ...t }, o) => {
546
- const c = n.Children.toArray(a);
548
+ const c = i.Children.toArray(a);
547
549
  return /* @__PURE__ */ r(
548
550
  "div",
549
551
  {
550
552
  ref: o,
551
553
  "data-slot": "choice-card-stats",
552
- className: d(
554
+ className: l(
553
555
  "flex h-[46px] w-full items-center rounded-lg bg-canvas-muted",
554
556
  e
555
557
  ),
556
558
  ...t,
557
- children: c.map((i, l) => /* @__PURE__ */ x(n.Fragment, { children: [
558
- l > 0 ? /* @__PURE__ */ r("div", { className: "h-3 w-px shrink-0 bg-stroke-field", "aria-hidden": "true" }) : null,
559
- i
560
- ] }, l))
559
+ children: c.map((n, d) => /* @__PURE__ */ x(i.Fragment, { children: [
560
+ d > 0 ? /* @__PURE__ */ r("div", { className: "h-3 w-px shrink-0 bg-stroke-field", "aria-hidden": "true" }) : null,
561
+ n
562
+ ] }, d))
561
563
  }
562
564
  );
563
565
  }
@@ -568,7 +570,7 @@ const xe = p(
568
570
  {
569
571
  ref: c,
570
572
  "data-slot": "choice-card-stat",
571
- className: d(
573
+ className: l(
572
574
  "flex min-w-0 flex-1 flex-col items-center gap-0.5 p-1",
573
575
  e
574
576
  ),
@@ -585,7 +587,7 @@ function Y(e, a) {
585
587
  const t = a === "auto" ? "minmax(0, 420px)" : "411px";
586
588
  return `max-content ${Array.from(
587
589
  { length: e },
588
- (c, i) => i === 0 ? t : `1rem ${t}`
590
+ (c, n) => n === 0 ? t : `1rem ${t}`
589
591
  ).join(" ")}`;
590
592
  }
591
593
  function ee({ rows: e }) {
@@ -617,7 +619,7 @@ const te = p(
617
619
  {
618
620
  ref: o,
619
621
  "data-slot": "choice-card-compare-labels",
620
- className: d(
622
+ className: l(
621
623
  "sticky start-0 z-20 grid grid-rows-subgrid items-center justify-items-end bg-canvas [grid-row:1/-1]",
622
624
  e
623
625
  ),
@@ -637,7 +639,7 @@ const te = p(
637
639
  {
638
640
  ref: o,
639
641
  "data-slot": "choice-card-compare-label",
640
- className: d("flex items-center self-center", e),
642
+ className: l("flex items-center self-center", e),
641
643
  ...t,
642
644
  children: [
643
645
  /* @__PURE__ */ r("span", { className: "rounded-full border border-canvas-accordion bg-accent px-2 py-1 text-sm font-medium leading-[21px] text-accent-foreground capitalize whitespace-nowrap", children: a }),
@@ -658,7 +660,7 @@ const te = p(
658
660
  {
659
661
  ref: t,
660
662
  "data-slot": "choice-card-compare-lead",
661
- className: d("[grid-row:2] min-h-4 min-w-0", e),
663
+ className: l("[grid-row:2] min-h-4 min-w-0", e),
662
664
  ...a
663
665
  }
664
666
  )
@@ -669,17 +671,17 @@ const te = p(
669
671
  {
670
672
  ref: t,
671
673
  "data-slot": "choice-card-compare-row",
672
- className: d("flex w-full min-w-0 items-center justify-center self-stretch", e),
674
+ className: l("flex w-full min-w-0 items-center justify-center self-stretch", e),
673
675
  ...a
674
676
  }
675
677
  )
676
678
  ), Me = p(
677
679
  "ChoiceCardCompare",
678
680
  ({ className: e, children: a, fit: t = "scroll", ...o }, c) => {
679
- const i = n.Children.toArray(a), l = i.find(
680
- (s) => n.isValidElement(s) && s.type === te
681
- ), h = i.filter((s) => s !== l), C = n.isValidElement(l) && l.props ? n.Children.count(
682
- l.props.children
681
+ const n = i.Children.toArray(a), d = n.find(
682
+ (s) => i.isValidElement(s) && s.type === te
683
+ ), h = n.filter((s) => s !== d), C = i.isValidElement(d) && d.props ? i.Children.count(
684
+ d.props.children
683
685
  ) : 0;
684
686
  return /* @__PURE__ */ r(v.Provider, { value: { inCompare: !0, rows: C, fit: t }, children: /* @__PURE__ */ r(
685
687
  "div",
@@ -687,7 +689,7 @@ const te = p(
687
689
  ref: c,
688
690
  "data-slot": "choice-card-compare",
689
691
  "data-fit": t,
690
- className: d(
692
+ className: l(
691
693
  "w-full min-w-0 overscroll-x-contain pt-5 pb-2",
692
694
  t === "auto" ? "overflow-x-auto" : "overflow-x-scroll",
693
695
  "[scrollbar-width:thin] [scrollbar-color:var(--color-stroke)_transparent]",
@@ -698,7 +700,7 @@ const te = p(
698
700
  children: /* @__PURE__ */ x(
699
701
  "div",
700
702
  {
701
- className: d(
703
+ className: l(
702
704
  "grid w-full grid-flow-col items-stretch",
703
705
  t === "auto" ? "min-w-0" : "min-w-max"
704
706
  ),
@@ -707,8 +709,8 @@ const te = p(
707
709
  gridTemplateRows: `auto auto repeat(${Math.max(C, 1)}, minmax(3.5rem, auto)) auto`
708
710
  },
709
711
  children: [
710
- l,
711
- h.map((s, u) => /* @__PURE__ */ x(n.Fragment, { children: [
712
+ d,
713
+ h.map((s, u) => /* @__PURE__ */ x(i.Fragment, { children: [
712
714
  u > 0 && C > 0 ? /* @__PURE__ */ r(ee, { rows: C }) : null,
713
715
  s
714
716
  ] }, u))
@@ -1,5 +1,5 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- const r = "border-stroke-subtle p-3 hover:border-stroke-field hover:bg-accent", a = "border-brand border-l-[3px] border-l-brand bg-brand-tint py-3 pr-3 pl-2.5 shadow-elevation-header hover:bg-brand-tint", o = e(
2
+ const r = "border-stroke-subtle p-3 hover:border-stroke-field hover:bg-accent", a = "border-brand border-l-[3px] border-l-brand bg-brand-tint py-3 pr-3 pl-2.5 shadow-elevation-header hover:bg-brand-tint", d = "border-stroke-field border-l-[3px] border-l-stroke-field bg-canvas-muted py-3 pr-3 pl-2.5 shadow-none", o = e(
3
3
  [
4
4
  "group relative cursor-pointer select-none transition-[border-color,background-color,box-shadow] duration-150",
5
5
  "has-[[data-slot=choice-card-control]:focus-visible]:outline-none has-[[data-slot=choice-card-control]:focus-visible]:ring-1 has-[[data-slot=choice-card-control]:focus-visible]:ring-focus-ring"
@@ -48,9 +48,16 @@ const r = "border-stroke-subtle p-3 hover:border-stroke-field hover:bg-accent",
48
48
  },
49
49
  {
50
50
  variant: "default",
51
+ selected: !1,
51
52
  disabled: !0,
52
53
  class: "border-stroke-subtle bg-canvas-muted p-3"
53
54
  },
55
+ {
56
+ variant: "default",
57
+ selected: !0,
58
+ disabled: !0,
59
+ class: d
60
+ },
54
61
  {
55
62
  variant: "featured",
56
63
  selected: !1,
@@ -65,9 +72,16 @@ const r = "border-stroke-subtle p-3 hover:border-stroke-field hover:bg-accent",
65
72
  },
66
73
  {
67
74
  variant: "featured",
75
+ selected: !1,
68
76
  disabled: !0,
69
77
  class: "border border-stroke-subtle border-b-[3px] border-b-stroke-subtle bg-canvas-muted"
70
78
  },
79
+ {
80
+ variant: "featured",
81
+ selected: !0,
82
+ disabled: !0,
83
+ class: "border border-stroke-field border-b-[3px] border-b-stroke-field bg-canvas-muted"
84
+ },
71
85
  {
72
86
  variant: "compare",
73
87
  selected: !1,
@@ -82,8 +96,15 @@ const r = "border-stroke-subtle p-3 hover:border-stroke-field hover:bg-accent",
82
96
  },
83
97
  {
84
98
  variant: "compare",
99
+ selected: !1,
85
100
  disabled: !0,
86
101
  class: "border-stroke-subtle bg-canvas-muted"
102
+ },
103
+ {
104
+ variant: "compare",
105
+ selected: !0,
106
+ disabled: !0,
107
+ class: "border-stroke-field bg-canvas-muted shadow-none"
87
108
  }
88
109
  ],
89
110
  defaultVariants: {