@floegence/floe-webapp-core 0.86.58 → 0.86.62

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 (103) hide show
  1. package/dist/components/chat/blocks/BlockRenderer.js +1 -1
  2. package/dist/components/chat/blocks/CodeDiffBlock.js +56 -56
  3. package/dist/components/chat/blocks/ImageBlock.js +1 -1
  4. package/dist/components/chat/blocks/ToolCallBlock.js +57 -57
  5. package/dist/components/chat/status/ConnectionStatus.js +10 -10
  6. package/dist/components/deck/DeckCell.js +25 -25
  7. package/dist/components/deck/DeckContextMenu.js +20 -20
  8. package/dist/components/deck/DeckGrid.js +1 -1
  9. package/dist/components/deck/DeckTopBar.js +42 -42
  10. package/dist/components/deck/DropZonePreview.js +6 -6
  11. package/dist/components/deck/LayoutSelector.js +53 -53
  12. package/dist/components/deck/WidgetFrame.js +28 -28
  13. package/dist/components/deck/WidgetPalette.js +31 -31
  14. package/dist/components/deck/WidgetTypeSwitcher.js +31 -31
  15. package/dist/components/file-browser/Breadcrumb.js +27 -27
  16. package/dist/components/file-browser/DirectoryTree.js +15 -15
  17. package/dist/components/file-browser/DragPreview.js +58 -58
  18. package/dist/components/file-browser/FileBrowser.js +17 -17
  19. package/dist/components/file-browser/FileBrowserStatusBar.js +18 -18
  20. package/dist/components/file-browser/FileBrowserToolbar.js +27 -27
  21. package/dist/components/file-browser/FileContextMenu.js +47 -47
  22. package/dist/components/file-browser/FileGridView.js +53 -51
  23. package/dist/components/file-browser/FileItemDecorations.js +30 -27
  24. package/dist/components/file-browser/FileListView.js +114 -114
  25. package/dist/components/icons/index.js +1357 -1357
  26. package/dist/components/launchpad/Launchpad.js +14 -14
  27. package/dist/components/launchpad/LaunchpadGrid.js +7 -7
  28. package/dist/components/launchpad/LaunchpadItem.js +11 -11
  29. package/dist/components/launchpad/LaunchpadPagination.js +16 -16
  30. package/dist/components/launchpad/LaunchpadSearch.js +9 -9
  31. package/dist/components/layout/ActivityBar.js +52 -55
  32. package/dist/components/layout/BottomBar.js +17 -17
  33. package/dist/components/layout/MobileNavigationPanel.js +36 -36
  34. package/dist/components/layout/MobileTabBar.js +39 -39
  35. package/dist/components/layout/Panel.js +16 -16
  36. package/dist/components/layout/ResizeHandle.js +19 -19
  37. package/dist/components/layout/Shell.js +50 -50
  38. package/dist/components/layout/Sidebar.js +37 -36
  39. package/dist/components/layout/SidebarPane.js +19 -19
  40. package/dist/components/layout/TopBar.js +16 -16
  41. package/dist/components/layout/TopBarIconButton.js +15 -15
  42. package/dist/components/loading/LoadingOverlay.js +9 -9
  43. package/dist/components/loading/Skeleton.js +11 -11
  44. package/dist/components/ui/Button.js +36 -36
  45. package/dist/components/ui/Card.d.ts +11 -62
  46. package/dist/components/ui/Card.js +64 -237
  47. package/dist/components/ui/Checkbox.js +79 -79
  48. package/dist/components/ui/CommandPalette.js +56 -55
  49. package/dist/components/ui/Dialog.js +91 -93
  50. package/dist/components/ui/DirectoryInput.js +22 -22
  51. package/dist/components/ui/DirectoryPicker.js +8 -8
  52. package/dist/components/ui/Dropdown.js +89 -87
  53. package/dist/components/ui/FeedbackIndicator.js +57 -57
  54. package/dist/components/ui/FileOpenPicker.js +37 -37
  55. package/dist/components/ui/FileSavePicker.js +41 -41
  56. package/dist/components/ui/FloatingWindow.js +266 -261
  57. package/dist/components/ui/Form.js +76 -76
  58. package/dist/components/ui/HighlightBlock.js +14 -14
  59. package/dist/components/ui/Input.js +106 -109
  60. package/dist/components/ui/Pagination.js +86 -86
  61. package/dist/components/ui/Popover.d.ts +33 -0
  62. package/dist/components/ui/Popover.js +133 -0
  63. package/dist/components/ui/ProcessingIndicator.js +344 -345
  64. package/dist/components/ui/Progress.js +94 -97
  65. package/dist/components/ui/QuoteBlock.js +25 -25
  66. package/dist/components/ui/Radio.js +91 -91
  67. package/dist/components/ui/SegmentedControl.js +24 -24
  68. package/dist/components/ui/Stepper.js +68 -60
  69. package/dist/components/ui/Switch.js +25 -25
  70. package/dist/components/ui/Tabs.js +99 -87
  71. package/dist/components/ui/Tag.js +12 -9
  72. package/dist/components/ui/Tooltip.js +30 -30
  73. package/dist/components/ui/floatingPresence.d.ts +7 -0
  74. package/dist/components/ui/floatingPresence.js +80 -39
  75. package/dist/components/ui/index.d.ts +2 -1
  76. package/dist/components/ui/picker/DirectoryFavorites.js +27 -27
  77. package/dist/components/ui/picker/PickerBase.js +107 -107
  78. package/dist/context/NotificationContext.js +4 -4
  79. package/dist/context/ThemeContext.js +71 -70
  80. package/dist/floe.css +205 -43
  81. package/dist/full.js +650 -652
  82. package/dist/language.css +320 -0
  83. package/dist/primitives.css +23 -17
  84. package/dist/standalone.css +1 -0
  85. package/dist/styles/themes/classicSemanticTokens.d.ts +122 -122
  86. package/dist/styles/themes/classicSemanticTokens.js +140 -138
  87. package/dist/styles/themes/index.d.ts +3 -1
  88. package/dist/styles/themes/index.js +10 -10
  89. package/dist/styles/themes/presets.d.ts +2 -2
  90. package/dist/styles/themes/presets.js +34 -34
  91. package/dist/styles/tokens.d.ts +152 -68
  92. package/dist/styles/tokens.js +87 -49
  93. package/dist/styles.css +1 -1
  94. package/dist/surface.css +161 -116
  95. package/dist/themes/dark.css +64 -64
  96. package/dist/themes/light.css +64 -64
  97. package/dist/ui.css +171 -255
  98. package/dist/ui.js +176 -178
  99. package/dist/utils/hotInteraction.d.ts +7 -0
  100. package/dist/utils/hotInteraction.js +12 -12
  101. package/dist/widgets/TerminalWidget.js +28 -28
  102. package/dist/workbench-composition.css +15 -15
  103. package/package.json +1 -1
@@ -1,7 +1,7 @@
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";
1
+ import { spread as T, mergeProps as W, memo as B, insert as p, createComponent as P, effect as k, setAttribute as c, className as x, setStyleProperty as E, style as H, template as w } from "solid-js/web";
2
2
  import { splitProps as A, Show as j, For as G } from "solid-js";
3
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>
4
+ var J = /* @__PURE__ */ w('<div class="mb-[var(--floe-gap-inline)] flex items-baseline justify-between"><span>Progress</span><span>'), K = /* @__PURE__ */ w('<div class="absolute inset-0 rounded-xs bg-[color-mix(in_srgb,var(--floe-ink)_16%,transparent)] transition-[width] duration-[var(--floe-duration-slow)] ease-[var(--floe-ease-out)]">'), O = /* @__PURE__ */ w(`<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,19 +29,19 @@ var J = /* @__PURE__ */ p('<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
- `), 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
- const _ = {
32
+ `), Q = /* @__PURE__ */ w("<svg><circle fill=none stroke=currentColor class=text-[var(--floe-well-strong)]></svg>", !1, !0, !1), R = /* @__PURE__ */ w("<span>"), U = /* @__PURE__ */ w("<div data-floe-surface-part=progress-circle role=progressbar aria-valuemin=0><svg><circle fill=none stroke=currentColor stroke-linecap=round>"), Y = /* @__PURE__ */ w('<div class="mb-[var(--floe-gap-inline)] flex items-baseline justify-between"><span>Progress</span><span>%'), Z = /* @__PURE__ */ w("<div><div class=flex role=progressbar aria-valuemin=0>"), ee = /* @__PURE__ */ w("<div data-floe-surface-part=progress-fill>"), te = /* @__PURE__ */ w("<div>"), re = /* @__PURE__ */ w("<div data-floe-surface=inset data-floe-surface-part=progress-track>"), ae = /* @__PURE__ */ w("<div><div><div data-floe-surface-part=step></div></div><span>"), oe = /* @__PURE__ */ w('<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
+ const F = {
34
34
  sm: {
35
35
  track: "h-1",
36
- label: "text-[10px]"
36
+ label: "text-[length:var(--floe-type-caption)]"
37
37
  },
38
38
  md: {
39
- track: "h-2",
40
- label: "text-xs"
39
+ track: "h-1.5",
40
+ label: "text-[length:var(--floe-type-caption)]"
41
41
  },
42
42
  lg: {
43
- track: "h-3",
44
- label: "text-xs"
43
+ track: "h-2",
44
+ label: "text-[length:var(--floe-type-supporting)]"
45
45
  }
46
46
  }, S = {
47
47
  primary: {
@@ -65,66 +65,63 @@ const _ = {
65
65
  label: "text-info"
66
66
  }
67
67
  };
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())}%`;
68
+ function ce(_) {
69
+ const [e, L] = A(_, ["value", "max", "size", "color", "showLabel", "labelFormat", "striped", "animated", "indeterminate", "buffer", "class"]), s = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.max ?? 100, b = () => Math.min(Math.max(e.value ?? 0, 0), u()), f = () => b() / u() * 100, C = () => e.buffer ? Math.min(e.buffer / u() * 100, 100) : 0, h = () => e.labelFormat ? e.labelFormat(b(), u()) : `${Math.round(f())}%`;
70
70
  return (() => {
71
- var c = O(), m = c.firstChild, v = m.firstChild;
72
- return T(c, W({
71
+ var d = O(), v = d.firstChild, m = v.firstChild;
72
+ return T(d, W({
73
73
  get class() {
74
74
  return i("w-full", e.class);
75
75
  }
76
- }, F), !1, !0), w(c, P(j, {
76
+ }, L), !1, !0), p(d, P(j, {
77
77
  get when() {
78
78
  return e.showLabel;
79
79
  },
80
80
  get children() {
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;
81
+ var a = J(), o = a.firstChild, l = o.nextSibling;
82
+ return p(l, h), k((r) => {
83
+ var t = i("text-[var(--floe-ink-soft)]", F[s()].label), n = i("font-medium tabular-nums", F[s()].label, S[g()].label);
84
+ return t !== r.e && x(o, r.e = t), n !== r.t && x(l, r.t = n), r;
85
85
  }, {
86
86
  e: void 0,
87
87
  t: void 0
88
88
  }), a;
89
89
  }
90
- }), m), w(m, P(j, {
90
+ }), v), p(v, P(j, {
91
91
  get when() {
92
92
  return e.buffer;
93
93
  },
94
94
  get children() {
95
95
  var a = K();
96
- return y((n) => E(a, "width", `${C()}%`)), a;
96
+ return k((o) => E(a, "width", `${C()}%`)), a;
97
97
  }
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 : {
98
+ }), m), k((a) => {
99
+ var o = i("relative w-full overflow-hidden rounded-xs bg-[var(--floe-well)]", F[s()].track), l = e.indeterminate ? void 0 : b(), r = u(), t = i("h-full rounded-xs transition-[width] duration-[var(--floe-duration-slow)] ease-[var(--floe-ease-out)]", S[g()].bar, e.striped && "bg-striped", e.animated && e.striped && "animate-stripe", e.indeterminate && "animate-indeterminate w-1/3"), n = e.indeterminate ? void 0 : {
100
100
  width: `${f()}%`
101
101
  };
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;
102
+ return o !== a.e && x(v, a.e = o), l !== a.t && c(v, "aria-valuenow", a.t = l), r !== a.a && c(v, "aria-valuemax", a.a = r), t !== a.o && x(m, a.o = t), a.i = H(m, n, 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
- }), c;
109
+ }), d;
110
110
  })();
111
111
  }
112
- const oe = {
112
+ const ne = {
113
113
  sm: 32,
114
114
  md: 48,
115
115
  lg: 64
116
116
  };
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
- };
117
+ function de(_) {
118
+ const [e, L] = A(_, ["value", "max", "size", "strokeWidth", "color", "showLabel", "labelFormat", "indeterminate", "showTrack", "class"]), s = () => {
119
+ const o = e.size ?? "md";
120
+ return typeof o == "number" ? o : ne[o];
121
+ }, g = () => e.strokeWidth ?? s() / 10, u = () => e.color ?? "primary", b = () => e.max ?? 100, f = () => Math.min(Math.max(e.value ?? 0, 0), b()), C = () => f() / b() * 100, h = () => (s() - g()) / 2, d = () => 2 * Math.PI * h(), v = () => d() - C() / 100 * d(), m = () => e.labelFormat ? e.labelFormat(f(), b()) : `${Math.round(C())}%`, a = () => s() <= 48 ? "text-[length:var(--floe-type-caption)]" : "text-[length:var(--floe-type-supporting)]";
125
122
  return (() => {
126
- var n = U(), s = n.firstChild, r = s.firstChild;
127
- return T(n, W({
123
+ var o = U(), l = o.firstChild, r = l.firstChild;
124
+ return T(o, W({
128
125
  get "data-floe-surface"() {
129
126
  return e.showTrack !== !1 ? "inset" : void 0;
130
127
  },
@@ -133,25 +130,25 @@ function ce(L) {
133
130
  },
134
131
  get style() {
135
132
  return {
136
- width: `${l()}px`,
137
- height: `${l()}px`
133
+ width: `${s()}px`,
134
+ height: `${s()}px`
138
135
  };
139
136
  },
140
137
  get "aria-valuenow"() {
141
138
  return B(() => !!e.indeterminate)() ? void 0 : f();
142
139
  },
143
140
  get "aria-valuemax"() {
144
- return h();
141
+ return b();
145
142
  }
146
- }, F), !1, !0), w(s, P(j, {
143
+ }, L), !1, !0), p(l, P(j, {
147
144
  get when() {
148
145
  return e.showTrack !== !1;
149
146
  },
150
147
  get children() {
151
148
  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;
149
+ return k((n) => {
150
+ var y = s() / 2, z = s() / 2, M = h(), $ = g();
151
+ return y !== n.e && c(t, "cx", n.e = y), z !== n.t && c(t, "cy", n.t = z), M !== n.a && c(t, "r", n.a = M), $ !== n.o && c(t, "stroke-width", n.o = $), n;
155
152
  }, {
156
153
  e: void 0,
157
154
  t: void 0,
@@ -159,17 +156,17 @@ function ce(L) {
159
156
  o: void 0
160
157
  }), t;
161
158
  }
162
- }), r), w(n, P(j, {
159
+ }), r), p(o, P(j, {
163
160
  get when() {
164
161
  return B(() => !!e.showLabel)() && !e.indeterminate;
165
162
  },
166
163
  get children() {
167
164
  var t = R();
168
- return w(t, v), y(() => x(t, i("absolute font-medium tabular-nums", a(), S[u()].label))), t;
165
+ return p(t, m), k(() => x(t, i("absolute font-medium tabular-nums", a(), S[u()].label))), t;
169
166
  }
170
- }), null), y((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;
167
+ }), null), k((t) => {
168
+ var n = i("transform -rotate-90", e.indeterminate && "animate-spin"), y = s(), z = s(), M = s() / 2, $ = s() / 2, D = h(), I = g(), N = String(d()), V = e.indeterminate ? d() * 0.75 : v(), q = i("transition-[stroke-dashoffset] duration-[var(--floe-duration-slow)] ease-[var(--floe-ease-out)]", S[u()].label);
169
+ return n !== t.e && c(l, "class", t.e = n), y !== t.t && c(l, "width", t.t = y), z !== t.a && c(l, "height", t.a = z), M !== t.o && c(r, "cx", t.o = M), $ !== t.i && c(r, "cy", t.i = $), D !== t.n && c(r, "r", t.n = D), I !== t.s && c(r, "stroke-width", t.s = I), N !== t.h && c(r, "stroke-dasharray", t.h = N), V !== t.r && c(r, "stroke-dashoffset", t.r = V), q !== t.d && c(r, "class", t.d = q), t;
173
170
  }, {
174
171
  e: void 0,
175
172
  t: void 0,
@@ -181,104 +178,104 @@ function ce(L) {
181
178
  h: void 0,
182
179
  r: void 0,
183
180
  d: void 0
184
- }), n;
181
+ }), o;
185
182
  })();
186
183
  }
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());
184
+ function ue(_) {
185
+ const [e, L] = A(_, ["value", "max", "segments", "size", "color", "showLabel", "gap", "class"]), s = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.max ?? 100, b = () => e.segments ?? 5, f = () => e.gap ?? 2, C = () => Math.min(Math.max(e.value ?? 0, 0), u()), h = () => C() / u() * 100, d = () => Math.round(h() / 100 * b());
189
186
  return (() => {
190
- var m = Z(), v = m.firstChild;
191
- return T(m, W({
187
+ var v = Z(), m = v.firstChild;
188
+ return T(v, W({
192
189
  get class() {
193
190
  return i("w-full", e.class);
194
191
  }
195
- }, F), !1, !0), w(m, P(j, {
192
+ }, L), !1, !0), p(v, P(j, {
196
193
  get when() {
197
194
  return e.showLabel;
198
195
  },
199
196
  get children() {
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;
197
+ var a = Y(), o = a.firstChild, l = o.nextSibling, r = l.firstChild;
198
+ return p(l, () => Math.round(h()), r), k((t) => {
199
+ var n = i("text-[var(--floe-ink-soft)]", F[s()].label), y = i("font-medium tabular-nums", F[s()].label, S[g()].label);
200
+ return n !== t.e && x(o, t.e = n), y !== t.t && x(l, t.t = y), t;
204
201
  }, {
205
202
  e: void 0,
206
203
  t: void 0
207
204
  }), a;
208
205
  }
209
- }), v), w(v, P(G, {
206
+ }), m), p(m, P(G, {
210
207
  get each() {
211
208
  return Array.from({
212
- length: h()
209
+ length: b()
213
210
  });
214
211
  },
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;
212
+ children: (a, o) => (() => {
213
+ var l = ee();
214
+ return k((r) => {
215
+ var t = o() < d() ? "raised" : "inset", n = i("flex-1 rounded-xs transition-colors duration-[var(--floe-duration-base)] ease-[var(--floe-ease-out)]", F[s()].track, o() < d() ? S[g()].bar : "bg-[var(--floe-well)]");
216
+ return t !== r.e && c(l, "data-floe-surface", r.e = t), n !== r.t && x(l, r.t = n), r;
220
217
  }, {
221
218
  e: void 0,
222
219
  t: void 0
223
- }), s;
220
+ }), l;
224
221
  })()
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;
222
+ })), k((a) => {
223
+ var o = `${f()}px`, l = C(), r = u();
224
+ return o !== a.e && E(m, "gap", a.e = o), l !== a.t && c(m, "aria-valuenow", a.t = l), r !== a.a && c(m, "aria-valuemax", a.a = r), a;
228
225
  }, {
229
226
  e: void 0,
230
227
  t: void 0,
231
228
  a: void 0
232
- }), m;
229
+ }), v;
233
230
  })();
234
231
  }
235
232
  const X = {
236
233
  sm: {
237
- dot: "w-5 h-5 text-[10px]",
238
- label: "text-[10px]",
239
- connector: "h-0.5"
234
+ dot: "w-5 h-5 text-[length:var(--floe-type-caption)]",
235
+ label: "text-[length:var(--floe-type-caption)]",
236
+ connector: "h-px"
240
237
  },
241
238
  md: {
242
- dot: "w-6 h-6 text-xs",
243
- label: "text-xs",
244
- connector: "h-0.5"
239
+ dot: "w-6 h-6 text-[length:var(--floe-type-caption)]",
240
+ label: "text-[length:var(--floe-type-supporting)]",
241
+ connector: "h-px"
245
242
  },
246
243
  lg: {
247
- dot: "w-8 h-8 text-sm",
248
- label: "text-sm",
249
- connector: "h-1"
244
+ dot: "w-8 h-8 text-[length:var(--floe-type-supporting)]",
245
+ label: "text-[length:var(--floe-type-control)]",
246
+ connector: "h-0.5"
250
247
  }
251
248
  };
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";
249
+ function ve(_) {
250
+ const [e, L] = A(_, ["current", "steps", "size", "color", "orientation", "class"]), s = () => e.size ?? "md", g = () => e.color ?? "primary", u = () => e.orientation === "vertical", b = (f) => f < e.current ? "completed" : f === e.current ? "current" : "pending";
254
251
  return (() => {
255
252
  var f = te();
256
253
  return T(f, W({
257
254
  get class() {
258
255
  return i("flex", u() ? "flex-col" : "flex-row items-start", e.class);
259
256
  }
260
- }, F), !1, !0), w(f, P(G, {
257
+ }, L), !1, !0), p(f, P(G, {
261
258
  get each() {
262
259
  return e.steps;
263
260
  },
264
- children: (C, b) => {
265
- const c = () => h(b()), m = () => b() === e.steps.length - 1;
261
+ children: (C, h) => {
262
+ const d = () => b(h()), v = () => h() === e.steps.length - 1;
266
263
  return (() => {
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, {
264
+ var m = ae(), a = m.firstChild, o = a.firstChild, l = a.nextSibling;
265
+ return p(o, (() => {
266
+ var r = B(() => d() === "completed");
267
+ return () => r() ? oe() : h() + 1;
268
+ })()), p(a, P(j, {
272
269
  get when() {
273
- return !m();
270
+ return !v();
274
271
  },
275
272
  get children() {
276
273
  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;
274
+ return k(() => x(r, i("transition-colors duration-[var(--floe-duration-base)] ease-[var(--floe-ease-out)]", u() ? i("w-px h-8 my-1", h() < e.current ? S[g()].bar : "bg-[var(--floe-well-strong)]") : i("flex-1 mx-2", X[s()].connector, h() < e.current ? S[g()].bar : "bg-[var(--floe-well-strong)]")))), r;
278
275
  }
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;
276
+ }), null), p(l, C), k((r) => {
277
+ var t = i("flex", u() ? "flex-row" : "flex-col items-center", !v() && "flex-1"), n = i("flex items-center", u() ? "flex-col" : "flex-row w-full"), y = d() === "pending" ? "inset" : "raised", z = d(), M = i("flex shrink-0 items-center justify-center rounded-full font-medium transition-colors duration-[var(--floe-duration-base)] ease-[var(--floe-ease-out)]", X[s()].dot, d() === "completed" && i(S[g()].bar, "text-primary-foreground"), d() === "current" && i(`border ${S[g()].label}`, "border-current bg-[var(--floe-plane)]"), d() === "pending" && "bg-[var(--floe-well)] text-[var(--floe-ink-soft)]"), $ = i("mt-2 text-center", X[s()].label, d() === "current" ? "font-medium text-[var(--floe-ink)]" : "text-[var(--floe-ink-soft)]", u() && "ml-3 mt-0");
278
+ return t !== r.e && x(m, r.e = t), n !== r.t && x(a, r.t = n), y !== r.a && c(o, "data-floe-surface", r.a = y), z !== r.o && c(o, "data-floe-step-state", r.o = z), M !== r.i && x(o, r.i = M), $ !== r.n && x(l, r.n = $), r;
282
279
  }, {
283
280
  e: void 0,
284
281
  t: void 0,
@@ -286,15 +283,15 @@ function me(L) {
286
283
  o: void 0,
287
284
  i: void 0,
288
285
  n: void 0
289
- }), v;
286
+ }), m;
290
287
  })();
291
288
  }
292
289
  })), f;
293
290
  })();
294
291
  }
295
292
  export {
296
- ce as CircularProgress,
297
- de as LinearProgress,
293
+ de as CircularProgress,
294
+ ce as LinearProgress,
298
295
  ue as SegmentedProgress,
299
- me as StepsProgress
296
+ ve as StepsProgress
300
297
  };
@@ -1,67 +1,67 @@
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
- import { splitProps as y, Show as i } from "solid-js";
1
+ import { spread as v, mergeProps as b, insert as t, createComponent as i, memo as h, effect as p, className as s, template as a } from "solid-js/web";
2
+ import { splitProps as x, Show as c } 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 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
- "border-left-color": `color-mix(in srgb, var(--primary) ${(t() === "subtle" ? 0.5 : 0.7) * 100}%, transparent)`
4
+ var y = /* @__PURE__ */ a("<span>"), $ = /* @__PURE__ */ a('<span class="mx-1 opacity-50">—'), w = /* @__PURE__ */ a("<cite class=not-italic>"), _ = /* @__PURE__ */ a("<footer>"), k = /* @__PURE__ */ a("<blockquote data-floe-surface=inset data-floe-surface-part=message><div>");
5
+ function S(f) {
6
+ const [e, m] = x(f, ["variant", "citation", "author", "class", "children"]), r = () => e.variant ?? "default", g = () => r() === "inline" ? {} : {
7
+ "border-left-color": `color-mix(in srgb, var(--primary) ${(r() === "subtle" ? 0.5 : 0.7) * 100}%, transparent)`
8
8
  };
9
9
  return (() => {
10
- var o = k(), c = o.firstChild;
11
- return b(o, x({
10
+ var l = k(), d = l.firstChild;
11
+ return v(l, b({
12
12
  get class() {
13
13
  return u(
14
14
  "relative my-2",
15
15
  // Default variant - Gray background with solid primary left border
16
- t() === "default" && ["pl-3 py-2 pr-3", "border-l-2", "bg-muted/50", "rounded-r"],
16
+ r() === "default" && ["pl-3 py-2 pr-3", "border-l-2", "bg-[var(--floe-well)]", "rounded-r"],
17
17
  // Subtle variant - Lighter background, visible border
18
- t() === "subtle" && ["pl-3 py-1.5 pr-3", "border-l-2", "bg-muted/30", "rounded-r"],
18
+ r() === "subtle" && ["pl-3 py-1.5 pr-3", "border-l-2", "bg-[var(--floe-well)]", "rounded-r"],
19
19
  // Bordered variant - Full border for emphasis
20
- t() === "bordered" && ["px-3 py-2", "border border-border rounded-md", "border-l-2", "bg-muted/40"],
20
+ r() === "bordered" && ["px-3 py-2", "border border-[var(--floe-line)] rounded-control", "border-l-2", "bg-[var(--floe-well)]"],
21
21
  // Code variant - Monospace, terminal-like
22
- t() === "code" && ["px-3 py-2", "bg-muted/50 rounded", "font-mono", "border-l-2"],
22
+ r() === "code" && ["px-3 py-2", "bg-[var(--floe-well)] rounded-xs", "font-mono", "border-l-2"],
23
23
  // Inline variant - Compact, for tight spaces
24
- t() === "inline" && ["px-2 py-1", "bg-muted/40 rounded", "text-muted-foreground"],
24
+ r() === "inline" && ["px-2 py-1", "bg-[var(--floe-well)] rounded-xs", "text-[var(--floe-ink-quiet)]"],
25
25
  e.class
26
26
  );
27
27
  },
28
28
  get style() {
29
29
  return g();
30
30
  }
31
- }, f), !1, !0), r(c, () => e.children), r(o, d(i, {
31
+ }, m), !1, !0), t(d, () => e.children), t(l, i(c, {
32
32
  get when() {
33
33
  return e.citation || e.author;
34
34
  },
35
35
  get children() {
36
- var n = w();
37
- return r(n, d(i, {
36
+ var o = _();
37
+ return t(o, i(c, {
38
38
  get when() {
39
39
  return e.author;
40
40
  },
41
41
  get children() {
42
- var l = v();
43
- return r(l, () => e.author), l;
42
+ var n = y();
43
+ return t(n, () => e.author), n;
44
44
  }
45
- }), null), r(n, d(i, {
45
+ }), null), t(o, i(c, {
46
46
  get when() {
47
47
  return h(() => !!e.author)() && e.citation;
48
48
  },
49
49
  get children() {
50
50
  return $();
51
51
  }
52
- }), null), r(n, d(i, {
52
+ }), null), t(o, i(c, {
53
53
  get when() {
54
54
  return e.citation;
55
55
  },
56
56
  get children() {
57
- var l = _();
58
- return r(l, () => e.citation), l;
57
+ var n = w();
58
+ return t(n, () => e.citation), n;
59
59
  }
60
- }), null), p(() => s(n, u("mt-1.5 text-[10px] text-muted-foreground/70 not-italic", t() === "code" && "font-mono"))), n;
60
+ }), null), p(() => s(o, u("mt-1.5 text-[length:var(--floe-type-caption)] text-[var(--floe-ink-quiet)] not-italic", r() === "code" && "font-mono"))), o;
61
61
  }
62
- }), null), p(() => s(c, u("text-xs leading-relaxed text-foreground/80", t() === "code" && "text-[11px]", t() === "inline" && "text-[11px]"))), o;
62
+ }), null), p(() => s(d, u("text-xs leading-relaxed text-foreground/80", r() === "code" && "text-caption", r() === "inline" && "text-caption"))), l;
63
63
  })();
64
64
  }
65
65
  export {
66
- q as QuoteBlock
66
+ S as QuoteBlock
67
67
  };