@floegence/floe-webapp-core 0.52.13 → 0.53.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.
Files changed (41) hide show
  1. package/dist/components/chat/ChatProvider.js +31 -30
  2. package/dist/components/chat/hooks/useAttachments.js +27 -26
  3. package/dist/components/chat/hooks/useCodeDiff.js +24 -23
  4. package/dist/components/chat/hooks/useCodeHighlight.js +21 -20
  5. package/dist/components/chat/hooks/useMarkdown.js +27 -26
  6. package/dist/components/chat/hooks/useMermaid.js +21 -20
  7. package/dist/components/layout/BottomBar.js +22 -22
  8. package/dist/components/layout/TopBar.js +7 -7
  9. package/dist/components/ui/Button.js +1 -1
  10. package/dist/components/ui/Card.js +1 -1
  11. package/dist/components/ui/Checkbox.js +69 -69
  12. package/dist/components/ui/CommandPalette.js +29 -30
  13. package/dist/components/ui/Dialog.js +1 -1
  14. package/dist/components/ui/Dropdown.js +36 -38
  15. package/dist/components/ui/FloatingWindow.js +2 -3
  16. package/dist/components/ui/Input.js +3 -3
  17. package/dist/components/ui/Radio.js +26 -26
  18. package/dist/components/ui/SegmentedControl.js +6 -6
  19. package/dist/components/ui/Tabs.js +43 -43
  20. package/dist/components/ui/floatingPresence.js +1 -1
  21. package/dist/components/workbench/workbenchHelpers.js +96 -96
  22. package/dist/context/ThemeContext.js +75 -65
  23. package/dist/floe.css +27 -55
  24. package/dist/full.js +61 -59
  25. package/dist/index.js +26 -24
  26. package/dist/styles/themes/classicSemanticTokens.d.ts +142 -0
  27. package/dist/styles/themes/classicSemanticTokens.js +100 -94
  28. package/dist/styles/themes/presets.d.ts +3 -1
  29. package/dist/styles/themes/presets.js +126 -63
  30. package/dist/styles/tokens.d.ts +252 -252
  31. package/dist/styles/tokens.js +165 -164
  32. package/dist/styles.css +1 -1
  33. package/dist/surface.css +17 -42
  34. package/dist/themes/dark.css +41 -95
  35. package/dist/themes/light.css +43 -95
  36. package/dist/themes/shell-presets.generated.css +146 -4
  37. package/dist/utils/index.d.ts +1 -0
  38. package/dist/utils/secureRandom.d.ts +2 -0
  39. package/dist/utils/secureRandom.js +11 -0
  40. package/dist/utils/secureRandom.test.d.ts +1 -0
  41. package/package.json +1 -1
@@ -2,62 +2,62 @@ import { insert as n, effect as a, className as u, createComponent as c, templat
2
2
  import { Show as s } from "solid-js";
3
3
  import { cn as m } from "../../utils/cn.js";
4
4
  import { useResolvedFloeConfig as f } from "../../context/FloeConfigContext.js";
5
- var h = /* @__PURE__ */ i("<footer data-floe-shell-slot=bottom-bar style=border-top-color:var(--bottom-bar-border)>"), g = /* @__PURE__ */ i('<span class="w-2.5 h-2.5">'), $ = /* @__PURE__ */ i("<button type=button>"), d = /* @__PURE__ */ i("<span>");
6
- function C(e) {
5
+ var h = /* @__PURE__ */ i("<footer data-floe-shell-slot=bottom-bar style=background-color:var(--activity-bar);border-top-color:var(--bottom-bar-border)>"), g = /* @__PURE__ */ i('<span class="w-2.5 h-2.5">'), v = /* @__PURE__ */ i("<button type=button>"), d = /* @__PURE__ */ i("<span>");
6
+ function C(t) {
7
7
  return (() => {
8
8
  var r = h();
9
- return n(r, () => e.children), a(() => u(r, m(e.height ?? "h-5", "shrink-0 flex items-center justify-between px-1.5", "bg-background border-t border-border", "text-[10px] text-muted-foreground font-mono", e.class))), r;
9
+ return n(r, () => t.children), a(() => u(r, m(t.height ?? "h-5", "shrink-0 flex items-center justify-between px-1.5", "bg-background border-t border-border", "text-[10px] text-muted-foreground font-mono", t.class))), r;
10
10
  })();
11
11
  }
12
- function v(e) {
13
- const r = () => m("flex items-center gap-1 px-1 py-0.5 rounded-sm", e.onClick && "hover:bg-muted/80 cursor-pointer", "transition-colors duration-75", e.class);
12
+ function $(t) {
13
+ const r = () => m("flex items-center gap-1 px-1 py-0.5 rounded-sm", t.onClick && "hover:bg-muted/80 cursor-pointer", "transition-colors duration-75", t.class);
14
14
  return c(s, {
15
15
  get when() {
16
- return e.onClick;
16
+ return t.onClick;
17
17
  },
18
18
  get fallback() {
19
19
  return (() => {
20
- var t = d();
21
- return n(t, c(s, {
20
+ var e = d();
21
+ return n(e, c(s, {
22
22
  get when() {
23
- return e.icon;
23
+ return t.icon;
24
24
  },
25
25
  get children() {
26
26
  var o = g();
27
- return n(o, () => e.icon), o;
27
+ return n(o, () => t.icon), o;
28
28
  }
29
- }), null), n(t, () => e.children, null), a(() => u(t, r())), t;
29
+ }), null), n(e, () => t.children, null), a(() => u(e, r())), e;
30
30
  })();
31
31
  },
32
32
  get children() {
33
- var t = $();
34
- return t.$$click = () => e.onClick?.(), n(t, c(s, {
33
+ var e = v();
34
+ return e.$$click = () => t.onClick?.(), n(e, c(s, {
35
35
  get when() {
36
- return e.icon;
36
+ return t.icon;
37
37
  },
38
38
  get children() {
39
39
  var o = g();
40
- return n(o, () => e.icon), o;
40
+ return n(o, () => t.icon), o;
41
41
  }
42
- }), null), n(t, () => e.children, null), a(() => u(t, r())), t;
42
+ }), null), n(e, () => t.children, null), a(() => u(e, r())), e;
43
43
  }
44
44
  });
45
45
  }
46
- function y(e) {
47
- const r = f(), t = {
46
+ function y(t) {
47
+ const r = f(), e = {
48
48
  connected: "bg-success",
49
49
  disconnected: "bg-muted-foreground",
50
50
  connecting: "bg-warning animate-pulse",
51
51
  error: "bg-error"
52
52
  }, o = () => r.config.strings.statusIndicator;
53
- return c(v, {
53
+ return c($, {
54
54
  get children() {
55
55
  return [(() => {
56
56
  var l = d();
57
- return a(() => u(l, m("w-1.5 h-1.5 rounded-full", t[e.status]))), l;
57
+ return a(() => u(l, m("w-1.5 h-1.5 rounded-full", e[t.status]))), l;
58
58
  })(), (() => {
59
59
  var l = d();
60
- return n(l, () => e.label ?? o()[e.status]), l;
60
+ return n(l, () => t.label ?? o()[t.status]), l;
61
61
  })()];
62
62
  }
63
63
  });
@@ -65,6 +65,6 @@ function y(e) {
65
65
  b(["click"]);
66
66
  export {
67
67
  C as BottomBar,
68
- v as BottomBarItem,
68
+ $ as BottomBarItem,
69
69
  y as StatusIndicator
70
70
  };
@@ -1,15 +1,15 @@
1
1
  import { insert as t, createComponent as s, effect as y, className as h, setAttribute as $, template as l, delegateEvents as _ } from "solid-js/web";
2
- import { Show as x } from "solid-js";
3
- import { cn as v } from "../../utils/cn.js";
2
+ import { Show as v } from "solid-js";
3
+ import { cn as x } from "../../utils/cn.js";
4
4
  import { useCommand as w } from "../../context/CommandContext.js";
5
5
  import { Search as C } from "../icons/index.js";
6
6
  import { useResolvedFloeConfig as S } from "../../context/FloeConfigContext.js";
7
- var B = /* @__PURE__ */ l('<span class="font-medium text-[11px] tracking-tight hidden sm:inline">'), E = /* @__PURE__ */ l('<kbd class="hidden md:inline text-[10px] px-1 py-0.5 rounded bg-background/60 border border-border/40 font-mono shrink-0 leading-none">'), F = /* @__PURE__ */ l('<header data-floe-shell-slot=top-bar style=border-bottom-color:var(--top-bar-border)><div class="h-10 flex items-center gap-2 px-3"><div class="flex items-center gap-2 flex-shrink-0"></div><button type=button><span class="flex-1 text-left hidden sm:inline truncate"></span></button><div class="flex items-center gap-0.5">'), j = /* @__PURE__ */ l('<div class="w-6 h-6 rounded bg-primary flex items-center justify-center text-primary-foreground text-xs font-bold">F');
7
+ var B = /* @__PURE__ */ l('<span class="font-medium text-[11px] tracking-tight hidden sm:inline">'), E = /* @__PURE__ */ l('<kbd class="hidden md:inline text-[10px] px-1 py-0.5 rounded bg-background/60 border border-border/40 font-mono shrink-0 leading-none">'), F = /* @__PURE__ */ l('<header data-floe-shell-slot=top-bar style=background-color:var(--activity-bar);border-bottom-color:var(--top-bar-border)><div class="h-10 flex items-center gap-2 px-3"><div class="flex items-center gap-2 flex-shrink-0"></div><button type=button><span class="flex-1 text-left hidden sm:inline truncate"></span></button><div class="flex items-center gap-0.5">'), j = /* @__PURE__ */ l('<div class="w-6 h-6 rounded bg-primary flex items-center justify-center text-primary-foreground text-xs font-bold">F');
8
8
  function R(o) {
9
9
  const c = w(), a = S(), n = () => a.config.commands.palette.enabled;
10
10
  return (() => {
11
11
  var i = F(), p = i.firstChild, d = p.firstChild, r = d.nextSibling, m = r.firstChild, k = r.nextSibling;
12
- return t(d, () => o.logo || j(), null), t(d, s(x, {
12
+ return t(d, () => o.logo || j(), null), t(d, s(v, {
13
13
  get when() {
14
14
  return o.title;
15
15
  },
@@ -19,7 +19,7 @@ function R(o) {
19
19
  }
20
20
  }), null), r.$$click = () => n() && c.open(), t(r, s(C, {
21
21
  class: "w-3 h-3 shrink-0"
22
- }), m), t(m, () => a.config.strings.topBar.searchPlaceholder), t(r, s(x, {
22
+ }), m), t(m, () => a.config.strings.topBar.searchPlaceholder), t(r, s(v, {
23
23
  get when() {
24
24
  return n();
25
25
  },
@@ -28,12 +28,12 @@ function R(o) {
28
28
  return t(e, () => c.getKeybindDisplay(a.config.commands.palette.keybind)), e;
29
29
  }
30
30
  }), null), t(k, () => o.actions), y((e) => {
31
- var b = v(
31
+ var b = x(
32
32
  // Safe-area padding must not be applied on a fixed-height element (border-box),
33
33
  // otherwise the content gets squeezed on iOS notch devices.
34
34
  "shrink-0 bg-background border-b border-border safe-top safe-left safe-right",
35
35
  o.class
36
- ), f = o.ariaLabel, u = !n(), g = v("flex-1 max-w-sm flex items-center gap-2 h-[26px] px-2.5", n() ? "cursor-pointer" : "cursor-not-allowed", "text-[11px] text-muted-foreground tracking-tight", "bg-muted/30 hover:bg-muted/60 rounded-md", "border border-border/40 hover:border-border/70", "transition-colors duration-100", "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring", !n() && "opacity-50 hover:bg-muted/30");
36
+ ), f = o.ariaLabel, u = !n(), g = x("flex-1 max-w-sm flex items-center gap-2 h-[26px] px-2.5", n() ? "cursor-pointer" : "cursor-not-allowed", "text-[11px] text-muted-foreground tracking-tight", "bg-muted/30 hover:bg-muted/60 rounded-md", "border border-border/40 hover:border-border/70", "transition-colors duration-100", "focus:outline-none focus-visible:ring-1 focus-visible:ring-ring", !n() && "opacity-50 hover:bg-muted/30");
37
37
  return b !== e.e && h(i, e.e = b), f !== e.t && $(i, "aria-label", e.t = f), u !== e.a && (r.disabled = e.a = u), g !== e.o && h(r, e.o = g), e;
38
38
  }, {
39
39
  e: void 0,
@@ -33,7 +33,7 @@ function k(i) {
33
33
  return r.variant === "ghost" || r.variant === "ghost-destructive" ? void 0 : "raised";
34
34
  },
35
35
  get class() {
36
- return a("inline-flex items-center justify-center gap-1.5 font-medium cursor-pointer", "transition-[color,background-color,border-color,box-shadow] duration-120", "focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed", v[r.variant ?? "default"], f[r.size ?? "md"], r.class);
36
+ return a("inline-flex items-center justify-center gap-1.5 font-medium cursor-pointer", "transition-[color,background-color,border-color] duration-120", "focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed", v[r.variant ?? "default"], f[r.size ?? "md"], r.class);
37
37
  },
38
38
  get disabled() {
39
39
  return r.disabled || r.loading;
@@ -37,7 +37,7 @@ function oe(l) {
37
37
  B(() => {
38
38
  s !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(s), s = null);
39
39
  });
40
- const k = "rounded-lg duration-180 ease-out", P = () => e.enableTilt || r() === "hover-lift" ? "transition-[color,background-color,border-color,box-shadow,transform]" : "transition-[color,background-color,border-color,box-shadow]", j = {
40
+ const k = "rounded-[10px] duration-180 ease-out", P = () => e.enableTilt || r() === "hover-lift" ? "transition-[color,background-color,border-color,box-shadow,transform]" : "transition-[color,background-color,border-color]", j = {
41
41
  default: "bg-card border border-border shadow-sm hover:shadow-sm",
42
42
  "hover-lift": "bg-card border border-border shadow-sm hover:shadow-md hover:-translate-y-0.5",
43
43
  "gradient-border": "relative bg-card overflow-hidden",
@@ -1,7 +1,7 @@
1
- import { createComponent as l, insert as o, effect as f, className as m, setAttribute as p, spread as D, mergeProps as M, template as v, use as N, memo as G } from "solid-js/web";
2
- import { splitProps as B, createUniqueId as U, Switch as V, Match as S, Show as b, For as J, useContext as K, createEffect as O, createContext as Q } from "solid-js";
1
+ import { createComponent as o, insert as l, effect as f, className as b, setAttribute as p, spread as D, mergeProps as M, template as v, use as N, memo as G } from "solid-js/web";
2
+ import { splitProps as B, createUniqueId as U, Switch as V, Match as S, Show as m, For as J, useContext as K, createEffect as O, createContext as Q } from "solid-js";
3
3
  import { cn as u } from "../../utils/cn.js";
4
- var R = /* @__PURE__ */ v('<svg viewBox="0 0 12 12"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M2 6l3 3 5-6">'), T = /* @__PURE__ */ v('<svg viewBox="0 0 12 12"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round><path d="M2 6h8">'), W = /* @__PURE__ */ v("<div role=group>"), X = /* @__PURE__ */ v("<div data-floe-surface=inset data-floe-surface-part=indicator>"), Y = /* @__PURE__ */ v("<input data-floe-choice-input type=checkbox>"), _ = /* @__PURE__ */ v("<span>"), Z = /* @__PURE__ */ v('<div class="flex flex-col">'), ee = /* @__PURE__ */ v('<label><div class="relative flex items-center justify-center pt-0.5">'), re = /* @__PURE__ */ v("<label data-floe-surface-part=choice><span class=font-medium>"), te = /* @__PURE__ */ v('<div class="absolute top-2 right-2"><svg class="w-4 h-4 text-primary"fill=currentColor viewBox="0 0 20 20"><path fill-rule=evenodd d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"clip-rule=evenodd>'), ne = /* @__PURE__ */ v('<label data-floe-surface-part=choice><div class="flex items-start gap-3"><div class="flex items-center justify-center pt-0.5"></div><div class="flex flex-col flex-1 min-w-0">'), le = /* @__PURE__ */ v('<div class="absolute top-1.5 right-1.5"><div class="w-4 h-4 rounded-full bg-primary flex items-center justify-center">'), oe = /* @__PURE__ */ v("<label data-floe-surface-part=choice>"), ie = /* @__PURE__ */ v("<div>");
4
+ var R = /* @__PURE__ */ v('<svg viewBox="0 0 12 12"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M2 6l3 3 5-6">'), T = /* @__PURE__ */ v('<svg viewBox="0 0 12 12"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round><path d="M2 6h8">'), W = /* @__PURE__ */ v("<div role=group>"), X = /* @__PURE__ */ v("<div data-floe-surface=inset data-floe-surface-part=indicator>"), Y = /* @__PURE__ */ v("<input data-floe-choice-input type=checkbox>"), _ = /* @__PURE__ */ v("<span>"), Z = /* @__PURE__ */ v('<div class="flex flex-col">'), ee = /* @__PURE__ */ v('<label><div class="relative flex items-center justify-center pt-0.5">'), re = /* @__PURE__ */ v("<label data-floe-surface-part=choice><span class=font-medium>"), te = /* @__PURE__ */ v('<div class="absolute top-2 right-2"><svg class="w-4 h-4 text-primary"fill=currentColor viewBox="0 0 20 20"><path fill-rule=evenodd d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"clip-rule=evenodd>'), ne = /* @__PURE__ */ v('<label data-floe-surface-part=choice><div class="flex items-start gap-3"><div class="flex items-center justify-center pt-0.5"></div><div class="flex flex-col flex-1 min-w-0">'), oe = /* @__PURE__ */ v('<div class="absolute top-1.5 right-1.5"><div class="w-4 h-4 rounded-full bg-primary flex items-center justify-center">'), le = /* @__PURE__ */ v("<label data-floe-surface-part=choice>"), ie = /* @__PURE__ */ v("<div>");
5
5
  const F = Q();
6
6
  function ae() {
7
7
  return K(F);
@@ -29,7 +29,7 @@ const C = {
29
29
  sm: "px-2.5 py-1 text-xs",
30
30
  md: "px-3 py-1.5 text-xs",
31
31
  lg: "px-4 py-2 text-sm"
32
- }, de = {
32
+ }, ce = {
33
33
  sm: "p-2.5",
34
34
  md: "p-3",
35
35
  lg: "p-4"
@@ -53,7 +53,7 @@ function A(w) {
53
53
  return f(() => p(a, "class", w.class)), a;
54
54
  })();
55
55
  }
56
- function ce(w) {
56
+ function de(w) {
57
57
  return (() => {
58
58
  var a = T();
59
59
  return f(() => p(a, "class", w.class)), a;
@@ -62,18 +62,18 @@ function ce(w) {
62
62
  function ue(w) {
63
63
  const [a, e] = B(w, ["value", "onChange", "size", "orientation", "variant", "disabled", "class", "children"]), h = () => a.variant ?? "default", I = {
64
64
  value: () => a.value ?? [],
65
- onChange: (g, c) => {
66
- const x = a.value ?? [], y = c ? [...x, g] : x.filter((d) => d !== g);
65
+ onChange: (g, d) => {
66
+ const x = a.value ?? [], y = d ? [...x, g] : x.filter((c) => c !== g);
67
67
  a.onChange?.(y);
68
68
  },
69
69
  size: () => a.size ?? "md",
70
70
  variant: h,
71
71
  disabled: () => a.disabled ?? !1
72
72
  }, j = () => {
73
- const g = h(), c = a.orientation === "horizontal";
74
- return g === "button" ? u("inline-flex rounded-md border border-border overflow-hidden", c ? "flex-row" : "flex-col") : g === "card" || g === "tile" ? u("grid gap-2", c ? "grid-flow-col auto-cols-fr" : "grid-cols-1") : u("flex", c ? "flex-row flex-wrap gap-4" : "flex-col gap-2");
73
+ const g = h(), d = a.orientation === "horizontal";
74
+ return g === "button" ? u("inline-flex rounded-md border border-border overflow-hidden", d ? "flex-row" : "flex-col") : g === "card" || g === "tile" ? u("grid gap-2", d ? "grid-flow-col auto-cols-fr" : "grid-cols-1") : u("flex", d ? "flex-row flex-wrap gap-4" : "flex-col gap-2");
75
75
  };
76
- return l(F.Provider, {
76
+ return o(F.Provider, {
77
77
  value: I,
78
78
  get children() {
79
79
  var g = W();
@@ -87,40 +87,40 @@ function ue(w) {
87
87
  get class() {
88
88
  return u(j(), a.class);
89
89
  }
90
- }, e), !1, !0), o(g, () => a.children), g;
90
+ }, e), !1, !0), l(g, () => a.children), g;
91
91
  }
92
92
  });
93
93
  }
94
94
  function fe(w) {
95
- const a = ae(), [e, h] = B(w, ["value", "checked", "onChange", "label", "description", "icon", "size", "variant", "indeterminate", "ref", "class", "disabled", "id"]), I = U(), j = () => e.id ?? I, g = () => a !== void 0, c = () => e.size ?? a?.size() ?? "md", x = () => e.variant ?? a?.variant() ?? "default", y = () => e.disabled ?? a?.disabled() ?? !1, d = () => g() && e.value ? a.value().includes(e.value) : e.checked ?? !1, H = () => {
96
- y() || (g() && e.value ? a.onChange(e.value, !d()) : e.onChange?.(!d()));
95
+ const a = ae(), [e, h] = B(w, ["value", "checked", "onChange", "label", "description", "icon", "size", "variant", "indeterminate", "ref", "class", "disabled", "id"]), I = U(), j = () => e.id ?? I, g = () => a !== void 0, d = () => e.size ?? a?.size() ?? "md", x = () => e.variant ?? a?.variant() ?? "default", y = () => e.disabled ?? a?.disabled() ?? !1, c = () => g() && e.value ? a.value().includes(e.value) : e.checked ?? !1, H = () => {
96
+ y() || (g() && e.value ? a.onChange(e.value, !c()) : e.onChange?.(!c()));
97
97
  }, L = () => (() => {
98
98
  var t = X();
99
- return o(t, l(b, {
99
+ return l(t, o(m, {
100
100
  get when() {
101
101
  return e.indeterminate;
102
102
  },
103
103
  get children() {
104
- return l(ce, {
104
+ return o(de, {
105
105
  get class() {
106
- return u(C[c()].icon, "transition-transform duration-150");
106
+ return u(C[d()].icon, "transition-transform duration-150");
107
107
  }
108
108
  });
109
109
  }
110
- }), null), o(t, l(b, {
110
+ }), null), l(t, o(m, {
111
111
  get when() {
112
- return G(() => !e.indeterminate)() && d();
112
+ return G(() => !e.indeterminate)() && c();
113
113
  },
114
114
  get children() {
115
- return l(A, {
115
+ return o(A, {
116
116
  get class() {
117
- return u(C[c()].icon, "transition-transform duration-150");
117
+ return u(C[d()].icon, "transition-transform duration-150");
118
118
  }
119
119
  });
120
120
  }
121
121
  }), null), f((r) => {
122
- var n = d() || e.indeterminate ? "true" : void 0, i = u("rounded-[3px] border-2 transition-all duration-150", "flex items-center justify-center", C[c()].box, d() || e.indeterminate ? "border-primary bg-primary text-primary-foreground" : "border-input bg-background hover:border-primary/50", y() && "cursor-not-allowed");
123
- return n !== r.e && p(t, "data-floe-selected", r.e = n), i !== r.t && m(t, r.t = i), r;
122
+ var n = c() || e.indeterminate ? "true" : void 0, i = u("rounded-[3px] border-2 transition-[background-color,border-color,color] duration-120", "flex items-center justify-center", C[d()].box, c() || e.indeterminate ? "border-primary bg-primary text-primary-foreground" : "border-input bg-background hover:border-primary/50", y() && "cursor-not-allowed");
123
+ return n !== r.e && p(t, "data-floe-selected", r.e = n), i !== r.t && b(t, r.t = i), r;
124
124
  }, {
125
125
  e: void 0,
126
126
  t: void 0
@@ -141,10 +141,10 @@ function fe(w) {
141
141
  return e.value;
142
142
  },
143
143
  get checked() {
144
- return d();
144
+ return c();
145
145
  },
146
146
  get "aria-checked"() {
147
- return G(() => !!e.indeterminate)() ? "mixed" : d();
147
+ return G(() => !!e.indeterminate)() ? "mixed" : c();
148
148
  },
149
149
  get disabled() {
150
150
  return y();
@@ -155,51 +155,51 @@ function fe(w) {
155
155
  }, h), !1, !1), n;
156
156
  })();
157
157
  };
158
- return l(V, {
158
+ return o(V, {
159
159
  get children() {
160
- return [l(S, {
160
+ return [o(S, {
161
161
  get when() {
162
162
  return x() === "default";
163
163
  },
164
164
  get children() {
165
165
  var t = ee(), r = t.firstChild;
166
- return o(r, l(z, {}), null), o(r, l(L, {}), null), o(t, l(b, {
166
+ return l(r, o(z, {}), null), l(r, o(L, {}), null), l(t, o(m, {
167
167
  get when() {
168
168
  return e.label || e.description;
169
169
  },
170
170
  get children() {
171
171
  var n = Z();
172
- return o(n, l(b, {
172
+ return l(n, o(m, {
173
173
  get when() {
174
174
  return e.label;
175
175
  },
176
176
  get children() {
177
177
  var i = _();
178
- return o(i, () => e.label), f(() => m(i, u("text-foreground", C[c()].label))), i;
178
+ return l(i, () => e.label), f(() => b(i, u("text-foreground", C[d()].label))), i;
179
179
  }
180
- }), null), o(n, l(b, {
180
+ }), null), l(n, o(m, {
181
181
  get when() {
182
182
  return e.description;
183
183
  },
184
184
  get children() {
185
185
  var i = _();
186
- return o(i, () => e.description), f(() => m(i, u("text-muted-foreground", C[c()].description))), i;
186
+ return l(i, () => e.description), f(() => b(i, u("text-muted-foreground", C[d()].description))), i;
187
187
  }
188
188
  }), null), n;
189
189
  }
190
- }), null), f(() => m(t, u("inline-flex items-start gap-2 cursor-pointer select-none", y() && "opacity-50 cursor-not-allowed", e.class))), t;
190
+ }), null), f(() => b(t, u("inline-flex items-start gap-2 cursor-pointer select-none", y() && "opacity-50 cursor-not-allowed", e.class))), t;
191
191
  }
192
- }), l(S, {
192
+ }), o(S, {
193
193
  get when() {
194
194
  return x() === "button";
195
195
  },
196
196
  get children() {
197
197
  var t = re(), r = t.firstChild;
198
- return o(t, l(z, {
198
+ return l(t, o(z, {
199
199
  class: "sr-only"
200
- }), r), o(r, () => e.label), f((n) => {
201
- var i = d() ? "inset" : "raised", s = d() ? "true" : void 0, k = x(), $ = u("cursor-pointer select-none transition-colors duration-150", "border-r border-border last:border-r-0", se[c()], d() ? "bg-primary text-primary-foreground" : "bg-background text-foreground hover:bg-muted", y() && "opacity-50 cursor-not-allowed", e.class);
202
- return i !== n.e && p(t, "data-floe-surface", n.e = i), s !== n.t && p(t, "data-floe-selected", n.t = s), k !== n.a && p(t, "data-floe-choice-variant", n.a = k), $ !== n.o && m(t, n.o = $), n;
200
+ }), r), l(r, () => e.label), f((n) => {
201
+ var i = c() ? "inset" : "raised", s = c() ? "true" : void 0, k = x(), $ = u("cursor-pointer select-none transition-colors duration-150", "border-r border-border last:border-r-0", se[d()], c() ? "bg-primary text-primary-foreground" : "bg-background text-foreground hover:bg-muted", y() && "opacity-50 cursor-not-allowed", e.class);
202
+ return i !== n.e && p(t, "data-floe-surface", n.e = i), s !== n.t && p(t, "data-floe-selected", n.t = s), k !== n.a && p(t, "data-floe-choice-variant", n.a = k), $ !== n.o && b(t, n.o = $), n;
203
203
  }, {
204
204
  e: void 0,
205
205
  t: void 0,
@@ -207,40 +207,40 @@ function fe(w) {
207
207
  o: void 0
208
208
  }), t;
209
209
  }
210
- }), l(S, {
210
+ }), o(S, {
211
211
  get when() {
212
212
  return x() === "card";
213
213
  },
214
214
  get children() {
215
215
  var t = ne(), r = t.firstChild, n = r.firstChild, i = n.nextSibling;
216
- return o(t, l(z, {
216
+ return l(t, o(z, {
217
217
  class: "sr-only"
218
- }), r), o(n, l(L, {})), o(i, l(b, {
218
+ }), r), l(n, o(L, {})), l(i, o(m, {
219
219
  get when() {
220
220
  return e.label;
221
221
  },
222
222
  get children() {
223
223
  var s = _();
224
- return o(s, () => e.label), f(() => m(s, u("font-medium text-foreground", C[c()].label))), s;
224
+ return l(s, () => e.label), f(() => b(s, u("font-medium text-foreground", C[d()].label))), s;
225
225
  }
226
- }), null), o(i, l(b, {
226
+ }), null), l(i, o(m, {
227
227
  get when() {
228
228
  return e.description;
229
229
  },
230
230
  get children() {
231
231
  var s = _();
232
- return o(s, () => e.description), f(() => m(s, u("text-muted-foreground mt-0.5", C[c()].description))), s;
232
+ return l(s, () => e.description), f(() => b(s, u("text-muted-foreground mt-0.5", C[d()].description))), s;
233
233
  }
234
- }), null), o(t, l(b, {
234
+ }), null), l(t, o(m, {
235
235
  get when() {
236
- return d();
236
+ return c();
237
237
  },
238
238
  get children() {
239
239
  return te();
240
240
  }
241
241
  }), null), f((s) => {
242
- var k = d() ? "inset" : "raised", $ = d() ? "true" : void 0, P = x(), E = u("relative cursor-pointer select-none rounded-lg border-2 transition-all duration-150", de[c()], d() ? "border-primary bg-primary/5" : "border-border bg-background hover:border-primary/50 hover:bg-muted/50", y() && "opacity-50 cursor-not-allowed", e.class);
243
- return k !== s.e && p(t, "data-floe-surface", s.e = k), $ !== s.t && p(t, "data-floe-selected", s.t = $), P !== s.a && p(t, "data-floe-choice-variant", s.a = P), E !== s.o && m(t, s.o = E), s;
242
+ var k = c() ? "inset" : "raised", $ = c() ? "true" : void 0, P = x(), E = u("relative cursor-pointer select-none rounded-lg border-2 transition-[background-color,border-color,color] duration-120", ce[d()], c() ? "border-primary bg-primary/5" : "border-border bg-background hover:border-primary/50 hover:bg-muted/50", y() && "opacity-50 cursor-not-allowed", e.class);
243
+ return k !== s.e && p(t, "data-floe-surface", s.e = k), $ !== s.t && p(t, "data-floe-selected", s.t = $), P !== s.a && p(t, "data-floe-choice-variant", s.a = P), E !== s.o && b(t, s.o = E), s;
244
244
  }, {
245
245
  e: void 0,
246
246
  t: void 0,
@@ -248,15 +248,15 @@ function fe(w) {
248
248
  o: void 0
249
249
  }), t;
250
250
  }
251
- }), l(S, {
251
+ }), o(S, {
252
252
  get when() {
253
253
  return x() === "tile";
254
254
  },
255
255
  get children() {
256
- var t = oe();
257
- return o(t, l(z, {
256
+ var t = le();
257
+ return l(t, o(z, {
258
258
  class: "sr-only"
259
- }), null), o(t, l(b, {
259
+ }), null), l(t, o(m, {
260
260
  get when() {
261
261
  return e.icon;
262
262
  },
@@ -264,42 +264,42 @@ function fe(w) {
264
264
  const n = r();
265
265
  return (() => {
266
266
  var i = ie();
267
- return o(i, l(n, {
267
+ return l(i, o(n, {
268
268
  get class() {
269
- return q[c()].icon;
269
+ return q[d()].icon;
270
270
  }
271
- })), f(() => m(i, u("mb-2 transition-colors duration-150", d() ? "text-primary" : "text-muted-foreground"))), i;
271
+ })), f(() => b(i, u("mb-2 transition-colors duration-150", c() ? "text-primary" : "text-muted-foreground"))), i;
272
272
  })();
273
273
  }
274
- }), null), o(t, l(b, {
274
+ }), null), l(t, o(m, {
275
275
  get when() {
276
276
  return e.label;
277
277
  },
278
278
  get children() {
279
279
  var r = _();
280
- return o(r, () => e.label), f(() => m(r, u("font-medium transition-colors duration-150", C[c()].label, d() ? "text-primary" : "text-foreground"))), r;
280
+ return l(r, () => e.label), f(() => b(r, u("font-medium transition-colors duration-150", C[d()].label, c() ? "text-primary" : "text-foreground"))), r;
281
281
  }
282
- }), null), o(t, l(b, {
282
+ }), null), l(t, o(m, {
283
283
  get when() {
284
284
  return e.description;
285
285
  },
286
286
  get children() {
287
287
  var r = _();
288
- return o(r, () => e.description), f(() => m(r, u("text-muted-foreground mt-0.5", C[c()].description))), r;
288
+ return l(r, () => e.description), f(() => b(r, u("text-muted-foreground mt-0.5", C[d()].description))), r;
289
289
  }
290
- }), null), o(t, l(b, {
290
+ }), null), l(t, o(m, {
291
291
  get when() {
292
- return d();
292
+ return c();
293
293
  },
294
294
  get children() {
295
- var r = le(), n = r.firstChild;
296
- return o(n, l(A, {
295
+ var r = oe(), n = r.firstChild;
296
+ return l(n, o(A, {
297
297
  class: "w-2.5 h-2.5 text-primary-foreground"
298
298
  })), r;
299
299
  }
300
300
  }), null), f((r) => {
301
- var n = d() ? "inset" : "raised", i = d() ? "true" : void 0, s = x(), k = u("relative flex flex-col items-center justify-center cursor-pointer select-none", "rounded-lg border-2 transition-all duration-150 text-center", q[c()].container, d() ? "border-primary bg-primary/5" : "border-border bg-background hover:border-primary/50 hover:bg-muted/50", y() && "opacity-50 cursor-not-allowed", e.class);
302
- return n !== r.e && p(t, "data-floe-surface", r.e = n), i !== r.t && p(t, "data-floe-selected", r.t = i), s !== r.a && p(t, "data-floe-choice-variant", r.a = s), k !== r.o && m(t, r.o = k), r;
301
+ var n = c() ? "inset" : "raised", i = c() ? "true" : void 0, s = x(), k = u("relative flex flex-col items-center justify-center cursor-pointer select-none", "rounded-lg border-2 transition-[background-color,border-color,color] duration-120 text-center", q[d()].container, c() ? "border-primary bg-primary/5" : "border-border bg-background hover:border-primary/50 hover:bg-muted/50", y() && "opacity-50 cursor-not-allowed", e.class);
302
+ return n !== r.e && p(t, "data-floe-surface", r.e = n), i !== r.t && p(t, "data-floe-selected", r.t = i), s !== r.a && p(t, "data-floe-choice-variant", r.a = s), k !== r.o && b(t, r.o = k), r;
303
303
  }, {
304
304
  e: void 0,
305
305
  t: void 0,
@@ -311,15 +311,15 @@ function fe(w) {
311
311
  }
312
312
  });
313
313
  }
314
- function me(w) {
314
+ function be(w) {
315
315
  const [a, e] = B(w, ["options"]);
316
- return l(ue, M(e, {
316
+ return o(ue, M(e, {
317
317
  get children() {
318
- return l(J, {
318
+ return o(J, {
319
319
  get each() {
320
320
  return a.options;
321
321
  },
322
- children: (h) => l(fe, {
322
+ children: (h) => o(fe, {
323
323
  get value() {
324
324
  return h.value;
325
325
  },
@@ -343,5 +343,5 @@ function me(w) {
343
343
  export {
344
344
  fe as Checkbox,
345
345
  ue as CheckboxGroup,
346
- me as CheckboxList
346
+ be as CheckboxList
347
347
  };