@floegence/floe-webapp-core 0.50.6 → 0.51.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.
Files changed (44) hide show
  1. package/dist/components/chat/input/ChatInput.js +8 -8
  2. package/dist/components/ui/Button.js +16 -13
  3. package/dist/components/ui/Card.js +125 -119
  4. package/dist/components/ui/Checkbox.js +178 -132
  5. package/dist/components/ui/CommandPalette.js +10 -10
  6. package/dist/components/ui/Dialog.js +1 -1
  7. package/dist/components/ui/DirectoryInput.js +5 -5
  8. package/dist/components/ui/Dropdown.d.ts +2 -0
  9. package/dist/components/ui/Dropdown.js +119 -114
  10. package/dist/components/ui/FloatingWindow.js +211 -199
  11. package/dist/components/ui/HighlightBlock.js +8 -8
  12. package/dist/components/ui/Input.js +40 -40
  13. package/dist/components/ui/Pagination.js +90 -88
  14. package/dist/components/ui/ProcessingIndicator.js +1 -1
  15. package/dist/components/ui/Progress.js +99 -88
  16. package/dist/components/ui/QuoteBlock.js +9 -9
  17. package/dist/components/ui/Radio.js +151 -127
  18. package/dist/components/ui/SegmentedControl.js +26 -25
  19. package/dist/components/ui/Stepper.js +114 -112
  20. package/dist/components/ui/Switch.js +34 -33
  21. package/dist/components/ui/Tabs.js +153 -150
  22. package/dist/components/ui/Tag.js +24 -21
  23. package/dist/components/ui/Tooltip.js +10 -10
  24. package/dist/components/ui/floatingPresence.js +40 -30
  25. package/dist/components/workbench/WorkbenchHud.js +9 -9
  26. package/dist/components/workbench/WorkbenchLockButton.js +4 -4
  27. package/dist/components/workbench/WorkbenchWidget.js +46 -43
  28. package/dist/context/FloeConfigContext.d.ts +5 -1
  29. package/dist/context/FloeConfigContext.js +10 -9
  30. package/dist/context/ThemeContext.d.ts +3 -1
  31. package/dist/context/ThemeContext.js +78 -71
  32. package/dist/floe.css +1 -0
  33. package/dist/full.js +839 -836
  34. package/dist/index.js +150 -147
  35. package/dist/input-focus.css +0 -1
  36. package/dist/styles/themes/index.d.ts +3 -0
  37. package/dist/styles/themes/index.js +40 -31
  38. package/dist/styles/tokens.d.ts +36 -0
  39. package/dist/styles/tokens.js +12 -5
  40. package/dist/styles.css +1 -1
  41. package/dist/surface.css +467 -0
  42. package/dist/themes.d.ts +1 -1
  43. package/dist/ui.css +9 -0
  44. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { spread as W, mergeProps as A, memo as B, insert as w, createComponent as $, effect as y, setAttribute as c, className as x, setStyleProperty as G, style as J, template as k } from "solid-js/web";
2
- import { splitProps as T, Show as L, For as H } from "solid-js";
3
- import { cn as s } from "../../utils/cn.js";
4
- var K = /* @__PURE__ */ k('<div class="flex justify-between mb-1"><span>Progress</span><span>'), O = /* @__PURE__ */ k('<div class="absolute inset-0 bg-muted-foreground/20 transition-all duration-300 rounded-full">'), Q = /* @__PURE__ */ k(`<div><div role=progressbar aria-valuemin=0><div></div></div><style>
1
+ import { spread as T, mergeProps as W, memo as B, insert as w, createComponent as P, effect as y, setAttribute as d, className as x, setStyleProperty as E, style as H, template as p } from "solid-js/web";
2
+ import { splitProps as A, Show as j, For as G } from "solid-js";
3
+ import { cn as i } from "../../utils/cn.js";
4
+ var J = /* @__PURE__ */ p('<div class="flex justify-between mb-1"><span>Progress</span><span>'), K = /* @__PURE__ */ p('<div class="absolute inset-0 bg-muted-foreground/20 transition-all duration-300 rounded-full">'), O = /* @__PURE__ */ p(`<div><div data-floe-surface=inset data-floe-surface-part=progress-track role=progressbar aria-valuemin=0><div data-floe-surface=raised data-floe-surface-part=progress-fill></div></div><style>
5
5
  .bg-striped {
6
6
  background-image: linear-gradient(
7
7
  45deg,
@@ -29,7 +29,7 @@ var K = /* @__PURE__ */ k('<div class="flex justify-between mb-1"><span>Progress
29
29
  .animate-indeterminate {
30
30
  animation: indeterminate 1.5s ease-in-out infinite;
31
31
  }
32
- `), R = /* @__PURE__ */ k("<svg><circle fill=none stroke=currentColor class=text-muted></svg>", !1, !0, !1), U = /* @__PURE__ */ k("<span>"), Y = /* @__PURE__ */ k("<div role=progressbar aria-valuemin=0><svg><circle fill=none stroke=currentColor stroke-linecap=round>"), Z = /* @__PURE__ */ k('<div class="flex justify-between mb-1"><span>Progress</span><span>%'), ee = /* @__PURE__ */ k("<div><div class=flex role=progressbar aria-valuemin=0>"), D = /* @__PURE__ */ k("<div>"), te = /* @__PURE__ */ k("<div><div><div></div></div><span>"), re = /* @__PURE__ */ k('<svg class="w-3 h-3"viewBox="0 0 12 12"fill=none stroke=currentColor stroke-width=2><path d="M2 6l3 3 5-6">');
32
+ `), Q = /* @__PURE__ */ p("<svg><circle fill=none stroke=currentColor class=text-muted></svg>", !1, !0, !1), R = /* @__PURE__ */ p("<span>"), U = /* @__PURE__ */ p("<div data-floe-surface-part=progress-circle role=progressbar aria-valuemin=0><svg><circle fill=none stroke=currentColor stroke-linecap=round>"), Y = /* @__PURE__ */ p('<div class="flex justify-between mb-1"><span>Progress</span><span>%'), Z = /* @__PURE__ */ p("<div><div class=flex role=progressbar aria-valuemin=0>"), ee = /* @__PURE__ */ p("<div data-floe-surface-part=progress-fill>"), te = /* @__PURE__ */ p("<div>"), re = /* @__PURE__ */ p("<div data-floe-surface=inset data-floe-surface-part=progress-track>"), ae = /* @__PURE__ */ p("<div><div><div data-floe-surface-part=step></div></div><span>"), ne = /* @__PURE__ */ p('<svg class="w-3 h-3"viewBox="0 0 12 12"fill=none stroke=currentColor stroke-width=2><path d="M2 6l3 3 5-6">');
33
33
  const _ = {
34
34
  sm: {
35
35
  track: "h-1",
@@ -65,68 +65,71 @@ const _ = {
65
65
  label: "text-info"
66
66
  }
67
67
  };
68
- function ie(M) {
69
- const [e, P] = T(M, ["value", "max", "size", "color", "showLabel", "labelFormat", "striped", "animated", "indeterminate", "buffer", "class"]), l = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.max ?? 100, h = () => Math.min(Math.max(e.value ?? 0, 0), u()), v = () => h() / u() * 100, C = () => e.buffer ? Math.min(e.buffer / u() * 100, 100) : 0, b = () => e.labelFormat ? e.labelFormat(h(), u()) : `${Math.round(v())}%`;
68
+ function de(L) {
69
+ const [e, F] = A(L, ["value", "max", "size", "color", "showLabel", "labelFormat", "striped", "animated", "indeterminate", "buffer", "class"]), l = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.max ?? 100, h = () => Math.min(Math.max(e.value ?? 0, 0), u()), f = () => h() / u() * 100, C = () => e.buffer ? Math.min(e.buffer / u() * 100, 100) : 0, b = () => e.labelFormat ? e.labelFormat(h(), u()) : `${Math.round(f())}%`;
70
70
  return (() => {
71
- var d = Q(), m = d.firstChild, f = m.firstChild;
72
- return W(d, A({
71
+ var c = O(), m = c.firstChild, v = m.firstChild;
72
+ return T(c, W({
73
73
  get class() {
74
- return s("w-full", e.class);
74
+ return i("w-full", e.class);
75
75
  }
76
- }, P), !1, !0), w(d, $(L, {
76
+ }, F), !1, !0), w(c, P(j, {
77
77
  get when() {
78
78
  return e.showLabel;
79
79
  },
80
80
  get children() {
81
- var n = K(), a = n.firstChild, o = a.nextSibling;
82
- return w(o, b), y((r) => {
83
- var t = s("text-muted-foreground", _[l()].label), i = s("font-medium tabular-nums", _[l()].label, S[g()].label);
84
- return t !== r.e && x(a, r.e = t), i !== r.t && x(o, r.t = i), r;
81
+ var a = J(), n = a.firstChild, s = n.nextSibling;
82
+ return w(s, b), y((r) => {
83
+ var t = i("text-muted-foreground", _[l()].label), o = i("font-medium tabular-nums", _[l()].label, S[g()].label);
84
+ return t !== r.e && x(n, r.e = t), o !== r.t && x(s, r.t = o), r;
85
85
  }, {
86
86
  e: void 0,
87
87
  t: void 0
88
- }), n;
88
+ }), a;
89
89
  }
90
- }), m), w(m, $(L, {
90
+ }), m), w(m, P(j, {
91
91
  get when() {
92
92
  return e.buffer;
93
93
  },
94
94
  get children() {
95
- var n = O();
96
- return y((a) => G(n, "width", `${C()}%`)), n;
95
+ var a = K();
96
+ return y((n) => E(a, "width", `${C()}%`)), a;
97
97
  }
98
- }), f), y((n) => {
99
- var a = s("relative w-full overflow-hidden rounded-full bg-muted", _[l()].track), o = e.indeterminate ? void 0 : h(), r = u(), t = s("h-full rounded-full transition-all duration-300", S[g()].bar, e.striped && "bg-striped", e.animated && e.striped && "animate-stripe", e.indeterminate && "animate-indeterminate w-1/3"), i = e.indeterminate ? void 0 : {
100
- width: `${v()}%`
98
+ }), v), y((a) => {
99
+ var n = i("relative w-full overflow-hidden rounded-full bg-muted", _[l()].track), s = e.indeterminate ? void 0 : h(), r = u(), t = i("h-full rounded-full transition-all duration-300", S[g()].bar, e.striped && "bg-striped", e.animated && e.striped && "animate-stripe", e.indeterminate && "animate-indeterminate w-1/3"), o = e.indeterminate ? void 0 : {
100
+ width: `${f()}%`
101
101
  };
102
- return a !== n.e && x(m, n.e = a), o !== n.t && c(m, "aria-valuenow", n.t = o), r !== n.a && c(m, "aria-valuemax", n.a = r), t !== n.o && x(f, n.o = t), n.i = J(f, i, n.i), n;
102
+ return n !== a.e && x(m, a.e = n), s !== a.t && d(m, "aria-valuenow", a.t = s), r !== a.a && d(m, "aria-valuemax", a.a = r), t !== a.o && x(v, a.o = t), a.i = H(v, o, a.i), a;
103
103
  }, {
104
104
  e: void 0,
105
105
  t: void 0,
106
106
  a: void 0,
107
107
  o: void 0,
108
108
  i: void 0
109
- }), d;
109
+ }), c;
110
110
  })();
111
111
  }
112
- const ne = {
112
+ const oe = {
113
113
  sm: 32,
114
114
  md: 48,
115
115
  lg: 64
116
116
  };
117
- function se(M) {
118
- const [e, P] = T(M, ["value", "max", "size", "strokeWidth", "color", "showLabel", "labelFormat", "indeterminate", "showTrack", "class"]), l = () => {
119
- const a = e.size ?? "md";
120
- return typeof a == "number" ? a : ne[a];
121
- }, g = () => e.strokeWidth ?? l() / 10, u = () => e.color ?? "primary", h = () => e.max ?? 100, v = () => Math.min(Math.max(e.value ?? 0, 0), h()), C = () => v() / h() * 100, b = () => (l() - g()) / 2, d = () => 2 * Math.PI * b(), m = () => d() - C() / 100 * d(), f = () => e.labelFormat ? e.labelFormat(v(), h()) : `${Math.round(C())}%`, n = () => {
122
- const a = l();
123
- return a <= 32 ? "text-[8px]" : a <= 48 ? "text-[10px]" : a <= 64 ? "text-xs" : "text-sm";
117
+ function ce(L) {
118
+ const [e, F] = A(L, ["value", "max", "size", "strokeWidth", "color", "showLabel", "labelFormat", "indeterminate", "showTrack", "class"]), l = () => {
119
+ const n = e.size ?? "md";
120
+ return typeof n == "number" ? n : oe[n];
121
+ }, g = () => e.strokeWidth ?? l() / 10, u = () => e.color ?? "primary", h = () => e.max ?? 100, f = () => Math.min(Math.max(e.value ?? 0, 0), h()), C = () => f() / h() * 100, b = () => (l() - g()) / 2, c = () => 2 * Math.PI * b(), m = () => c() - C() / 100 * c(), v = () => e.labelFormat ? e.labelFormat(f(), h()) : `${Math.round(C())}%`, a = () => {
122
+ const n = l();
123
+ return n <= 32 ? "text-[8px]" : n <= 48 ? "text-[10px]" : n <= 64 ? "text-xs" : "text-sm";
124
124
  };
125
125
  return (() => {
126
- var a = Y(), o = a.firstChild, r = o.firstChild;
127
- return W(a, A({
126
+ var n = U(), s = n.firstChild, r = s.firstChild;
127
+ return T(n, W({
128
+ get "data-floe-surface"() {
129
+ return e.showTrack !== !1 ? "inset" : void 0;
130
+ },
128
131
  get class() {
129
- return s("relative inline-flex items-center justify-center", e.class);
132
+ return i("relative inline-flex items-center justify-center", e.class);
130
133
  },
131
134
  get style() {
132
135
  return {
@@ -135,20 +138,20 @@ function se(M) {
135
138
  };
136
139
  },
137
140
  get "aria-valuenow"() {
138
- return B(() => !!e.indeterminate)() ? void 0 : v();
141
+ return B(() => !!e.indeterminate)() ? void 0 : f();
139
142
  },
140
143
  get "aria-valuemax"() {
141
144
  return h();
142
145
  }
143
- }, P), !1, !0), w(o, $(L, {
146
+ }, F), !1, !0), w(s, P(j, {
144
147
  get when() {
145
148
  return e.showTrack !== !1;
146
149
  },
147
150
  get children() {
148
- var t = R();
149
- return y((i) => {
150
- var p = l() / 2, z = l() / 2, F = b(), j = g();
151
- return p !== i.e && c(t, "cx", i.e = p), z !== i.t && c(t, "cy", i.t = z), F !== i.a && c(t, "r", i.a = F), j !== i.o && c(t, "stroke-width", i.o = j), i;
151
+ var t = Q();
152
+ return y((o) => {
153
+ var k = l() / 2, z = l() / 2, M = b(), $ = g();
154
+ return k !== o.e && d(t, "cx", o.e = k), z !== o.t && d(t, "cy", o.t = z), M !== o.a && d(t, "r", o.a = M), $ !== o.o && d(t, "stroke-width", o.o = $), o;
152
155
  }, {
153
156
  e: void 0,
154
157
  t: void 0,
@@ -156,17 +159,17 @@ function se(M) {
156
159
  o: void 0
157
160
  }), t;
158
161
  }
159
- }), r), w(a, $(L, {
162
+ }), r), w(n, P(j, {
160
163
  get when() {
161
164
  return B(() => !!e.showLabel)() && !e.indeterminate;
162
165
  },
163
166
  get children() {
164
- var t = U();
165
- return w(t, f), y(() => x(t, s("absolute font-medium tabular-nums", n(), S[u()].label))), t;
167
+ var t = R();
168
+ return w(t, v), y(() => x(t, i("absolute font-medium tabular-nums", a(), S[u()].label))), t;
166
169
  }
167
170
  }), null), y((t) => {
168
- var i = s("transform -rotate-90", e.indeterminate && "animate-spin"), p = l(), z = l(), F = l() / 2, j = l() / 2, I = b(), N = g(), V = String(d()), q = e.indeterminate ? d() * 0.75 : m(), E = s("transition-all duration-300", S[u()].label);
169
- return i !== t.e && c(o, "class", t.e = i), p !== t.t && c(o, "width", t.t = p), z !== t.a && c(o, "height", t.a = z), F !== t.o && c(r, "cx", t.o = F), j !== t.i && c(r, "cy", t.i = j), I !== t.n && c(r, "r", t.n = I), N !== t.s && c(r, "stroke-width", t.s = N), V !== t.h && c(r, "stroke-dasharray", t.h = V), q !== t.r && c(r, "stroke-dashoffset", t.r = q), E !== t.d && c(r, "class", t.d = E), t;
171
+ var o = i("transform -rotate-90", e.indeterminate && "animate-spin"), k = l(), z = l(), M = l() / 2, $ = l() / 2, D = b(), I = g(), N = String(c()), V = e.indeterminate ? c() * 0.75 : m(), q = i("transition-all duration-300", S[u()].label);
172
+ return o !== t.e && d(s, "class", t.e = o), k !== t.t && d(s, "width", t.t = k), z !== t.a && d(s, "height", t.a = z), M !== t.o && d(r, "cx", t.o = M), $ !== t.i && d(r, "cy", t.i = $), D !== t.n && d(r, "r", t.n = D), I !== t.s && d(r, "stroke-width", t.s = I), N !== t.h && d(r, "stroke-dasharray", t.h = N), V !== t.r && d(r, "stroke-dashoffset", t.r = V), q !== t.d && d(r, "class", t.d = q), t;
170
173
  }, {
171
174
  e: void 0,
172
175
  t: void 0,
@@ -178,44 +181,50 @@ function se(M) {
178
181
  h: void 0,
179
182
  r: void 0,
180
183
  d: void 0
181
- }), a;
184
+ }), n;
182
185
  })();
183
186
  }
184
- function ue(M) {
185
- const [e, P] = T(M, ["value", "max", "segments", "size", "color", "showLabel", "gap", "class"]), l = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.max ?? 100, h = () => e.segments ?? 5, v = () => e.gap ?? 2, C = () => Math.min(Math.max(e.value ?? 0, 0), u()), b = () => C() / u() * 100, d = () => Math.round(b() / 100 * h());
187
+ function ue(L) {
188
+ const [e, F] = A(L, ["value", "max", "segments", "size", "color", "showLabel", "gap", "class"]), l = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.max ?? 100, h = () => e.segments ?? 5, f = () => e.gap ?? 2, C = () => Math.min(Math.max(e.value ?? 0, 0), u()), b = () => C() / u() * 100, c = () => Math.round(b() / 100 * h());
186
189
  return (() => {
187
- var m = ee(), f = m.firstChild;
188
- return W(m, A({
190
+ var m = Z(), v = m.firstChild;
191
+ return T(m, W({
189
192
  get class() {
190
- return s("w-full", e.class);
193
+ return i("w-full", e.class);
191
194
  }
192
- }, P), !1, !0), w(m, $(L, {
195
+ }, F), !1, !0), w(m, P(j, {
193
196
  get when() {
194
197
  return e.showLabel;
195
198
  },
196
199
  get children() {
197
- var n = Z(), a = n.firstChild, o = a.nextSibling, r = o.firstChild;
198
- return w(o, () => Math.round(b()), r), y((t) => {
199
- var i = s("text-muted-foreground", _[l()].label), p = s("font-medium tabular-nums", _[l()].label, S[g()].label);
200
- return i !== t.e && x(a, t.e = i), p !== t.t && x(o, t.t = p), t;
200
+ var a = Y(), n = a.firstChild, s = n.nextSibling, r = s.firstChild;
201
+ return w(s, () => Math.round(b()), r), y((t) => {
202
+ var o = i("text-muted-foreground", _[l()].label), k = i("font-medium tabular-nums", _[l()].label, S[g()].label);
203
+ return o !== t.e && x(n, t.e = o), k !== t.t && x(s, t.t = k), t;
201
204
  }, {
202
205
  e: void 0,
203
206
  t: void 0
204
- }), n;
207
+ }), a;
205
208
  }
206
- }), f), w(f, $(H, {
209
+ }), v), w(v, P(G, {
207
210
  get each() {
208
211
  return Array.from({
209
212
  length: h()
210
213
  });
211
214
  },
212
- children: (n, a) => (() => {
213
- var o = D();
214
- return y(() => x(o, s("flex-1 rounded-full transition-colors duration-200", _[l()].track, a() < d() ? S[g()].bar : "bg-muted"))), o;
215
+ children: (a, n) => (() => {
216
+ var s = ee();
217
+ return y((r) => {
218
+ var t = n() < c() ? "raised" : "inset", o = i("flex-1 rounded-full transition-colors duration-200", _[l()].track, n() < c() ? S[g()].bar : "bg-muted");
219
+ return t !== r.e && d(s, "data-floe-surface", r.e = t), o !== r.t && x(s, r.t = o), r;
220
+ }, {
221
+ e: void 0,
222
+ t: void 0
223
+ }), s;
215
224
  })()
216
- })), y((n) => {
217
- var a = `${v()}px`, o = C(), r = u();
218
- return a !== n.e && G(f, "gap", n.e = a), o !== n.t && c(f, "aria-valuenow", n.t = o), r !== n.a && c(f, "aria-valuemax", n.a = r), n;
225
+ })), y((a) => {
226
+ var n = `${f()}px`, s = C(), r = u();
227
+ return n !== a.e && E(v, "gap", a.e = n), s !== a.t && d(v, "aria-valuenow", a.t = s), r !== a.a && d(v, "aria-valuemax", a.a = r), a;
219
228
  }, {
220
229
  e: void 0,
221
230
  t: void 0,
@@ -240,50 +249,52 @@ const X = {
240
249
  connector: "h-1"
241
250
  }
242
251
  };
243
- function ce(M) {
244
- const [e, P] = T(M, ["current", "steps", "size", "color", "orientation", "class"]), l = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.orientation === "vertical", h = (v) => v < e.current ? "completed" : v === e.current ? "current" : "pending";
252
+ function me(L) {
253
+ const [e, F] = A(L, ["current", "steps", "size", "color", "orientation", "class"]), l = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.orientation === "vertical", h = (f) => f < e.current ? "completed" : f === e.current ? "current" : "pending";
245
254
  return (() => {
246
- var v = D();
247
- return W(v, A({
255
+ var f = te();
256
+ return T(f, W({
248
257
  get class() {
249
- return s("flex", u() ? "flex-col" : "flex-row items-start", e.class);
258
+ return i("flex", u() ? "flex-col" : "flex-row items-start", e.class);
250
259
  }
251
- }, P), !1, !0), w(v, $(H, {
260
+ }, F), !1, !0), w(f, P(G, {
252
261
  get each() {
253
262
  return e.steps;
254
263
  },
255
264
  children: (C, b) => {
256
- const d = () => h(b()), m = () => b() === e.steps.length - 1;
265
+ const c = () => h(b()), m = () => b() === e.steps.length - 1;
257
266
  return (() => {
258
- var f = te(), n = f.firstChild, a = n.firstChild, o = n.nextSibling;
259
- return w(a, (() => {
260
- var r = B(() => d() === "completed");
261
- return () => r() ? re() : b() + 1;
262
- })()), w(n, $(L, {
267
+ var v = ae(), a = v.firstChild, n = a.firstChild, s = a.nextSibling;
268
+ return w(n, (() => {
269
+ var r = B(() => c() === "completed");
270
+ return () => r() ? ne() : b() + 1;
271
+ })()), w(a, P(j, {
263
272
  get when() {
264
273
  return !m();
265
274
  },
266
275
  get children() {
267
- var r = D();
268
- return y(() => x(r, s("transition-colors duration-200", u() ? s("w-0.5 h-8 my-1", b() < e.current ? S[g()].bar : "bg-muted") : s("flex-1 mx-2", X[l()].connector, b() < e.current ? S[g()].bar : "bg-muted")))), r;
276
+ var r = re();
277
+ return y(() => x(r, i("transition-colors duration-200", u() ? i("w-0.5 h-8 my-1", b() < e.current ? S[g()].bar : "bg-muted") : i("flex-1 mx-2", X[l()].connector, b() < e.current ? S[g()].bar : "bg-muted")))), r;
269
278
  }
270
- }), null), w(o, C), y((r) => {
271
- var t = s("flex", u() ? "flex-row" : "flex-col items-center", !m() && "flex-1"), i = s("flex items-center", u() ? "flex-col" : "flex-row w-full"), p = s("flex items-center justify-center rounded-full font-medium transition-colors duration-200 shrink-0", X[l()].dot, d() === "completed" && s(S[g()].bar, "text-primary-foreground"), d() === "current" && s("border-2", `border-current ${S[g()].label}`, "bg-background"), d() === "pending" && "bg-muted text-muted-foreground"), z = s("mt-2 text-center", X[l()].label, d() === "current" ? "text-foreground font-medium" : "text-muted-foreground", u() && "ml-3 mt-0");
272
- return t !== r.e && x(f, r.e = t), i !== r.t && x(n, r.t = i), p !== r.a && x(a, r.a = p), z !== r.o && x(o, r.o = z), r;
279
+ }), null), w(s, C), y((r) => {
280
+ var t = i("flex", u() ? "flex-row" : "flex-col items-center", !m() && "flex-1"), o = i("flex items-center", u() ? "flex-col" : "flex-row w-full"), k = c() === "pending" ? "inset" : "raised", z = c(), M = i("flex items-center justify-center rounded-full font-medium transition-colors duration-200 shrink-0", X[l()].dot, c() === "completed" && i(S[g()].bar, "text-primary-foreground"), c() === "current" && i("border-2", `border-current ${S[g()].label}`, "bg-background"), c() === "pending" && "bg-muted text-muted-foreground"), $ = i("mt-2 text-center", X[l()].label, c() === "current" ? "text-foreground font-medium" : "text-muted-foreground", u() && "ml-3 mt-0");
281
+ return t !== r.e && x(v, r.e = t), o !== r.t && x(a, r.t = o), k !== r.a && d(n, "data-floe-surface", r.a = k), z !== r.o && d(n, "data-floe-step-state", r.o = z), M !== r.i && x(n, r.i = M), $ !== r.n && x(s, r.n = $), r;
273
282
  }, {
274
283
  e: void 0,
275
284
  t: void 0,
276
285
  a: void 0,
277
- o: void 0
278
- }), f;
286
+ o: void 0,
287
+ i: void 0,
288
+ n: void 0
289
+ }), v;
279
290
  })();
280
291
  }
281
- })), v;
292
+ })), f;
282
293
  })();
283
294
  }
284
295
  export {
285
- se as CircularProgress,
286
- ie as LinearProgress,
296
+ ce as CircularProgress,
297
+ de as LinearProgress,
287
298
  ue as SegmentedProgress,
288
- ce as StepsProgress
299
+ me as StepsProgress
289
300
  };
@@ -1,14 +1,14 @@
1
- import { spread as f, mergeProps as x, insert as r, createComponent as d, memo as h, effect as p, className as m, template as a } from "solid-js/web";
1
+ import { spread as b, mergeProps as x, insert as r, createComponent as d, memo as h, effect as p, className as s, template as a } from "solid-js/web";
2
2
  import { splitProps as y, Show as i } from "solid-js";
3
3
  import { cn as u } from "../../utils/cn.js";
4
- var v = /* @__PURE__ */ a("<span>"), $ = /* @__PURE__ */ a('<span class="mx-1 opacity-50">—'), _ = /* @__PURE__ */ a("<cite class=not-italic>"), w = /* @__PURE__ */ a("<footer>"), k = /* @__PURE__ */ a("<blockquote><div>");
5
- function q(s) {
6
- const [e, g] = y(s, ["variant", "citation", "author", "class", "children"]), t = () => e.variant ?? "default", b = () => t() === "inline" ? {} : {
4
+ var v = /* @__PURE__ */ a("<span>"), $ = /* @__PURE__ */ a('<span class="mx-1 opacity-50">—'), _ = /* @__PURE__ */ a("<cite class=not-italic>"), w = /* @__PURE__ */ a("<footer>"), k = /* @__PURE__ */ a("<blockquote data-floe-surface=inset data-floe-surface-part=message><div>");
5
+ function q(m) {
6
+ const [e, f] = y(m, ["variant", "citation", "author", "class", "children"]), t = () => e.variant ?? "default", g = () => t() === "inline" ? {} : {
7
7
  "border-left-color": `color-mix(in srgb, var(--primary) ${(t() === "subtle" ? 0.5 : 0.7) * 100}%, transparent)`
8
8
  };
9
9
  return (() => {
10
10
  var o = k(), c = o.firstChild;
11
- return f(o, x({
11
+ return b(o, x({
12
12
  get class() {
13
13
  return u(
14
14
  "relative my-2",
@@ -26,9 +26,9 @@ function q(s) {
26
26
  );
27
27
  },
28
28
  get style() {
29
- return b();
29
+ return g();
30
30
  }
31
- }, g), !1, !0), r(c, () => e.children), r(o, d(i, {
31
+ }, f), !1, !0), r(c, () => e.children), r(o, d(i, {
32
32
  get when() {
33
33
  return e.citation || e.author;
34
34
  },
@@ -57,9 +57,9 @@ function q(s) {
57
57
  var l = _();
58
58
  return r(l, () => e.citation), l;
59
59
  }
60
- }), null), p(() => m(n, u("mt-1.5 text-[10px] text-muted-foreground/70 not-italic", t() === "code" && "font-mono"))), n;
60
+ }), null), p(() => s(n, u("mt-1.5 text-[10px] text-muted-foreground/70 not-italic", t() === "code" && "font-mono"))), n;
61
61
  }
62
- }), null), p(() => m(c, u("text-xs leading-relaxed text-foreground/80", t() === "code" && "text-[11px]", t() === "inline" && "text-[11px]"))), o;
62
+ }), null), p(() => s(c, u("text-xs leading-relaxed text-foreground/80", t() === "code" && "text-[11px]", t() === "inline" && "text-[11px]"))), o;
63
63
  })();
64
64
  }
65
65
  export {