@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.
- package/dist/components/chat/input/ChatInput.js +8 -8
- package/dist/components/ui/Button.js +16 -13
- package/dist/components/ui/Card.js +125 -119
- package/dist/components/ui/Checkbox.js +178 -132
- package/dist/components/ui/CommandPalette.js +10 -10
- package/dist/components/ui/Dialog.js +1 -1
- package/dist/components/ui/DirectoryInput.js +5 -5
- package/dist/components/ui/Dropdown.d.ts +2 -0
- package/dist/components/ui/Dropdown.js +119 -114
- package/dist/components/ui/FloatingWindow.js +211 -199
- package/dist/components/ui/HighlightBlock.js +8 -8
- package/dist/components/ui/Input.js +40 -40
- package/dist/components/ui/Pagination.js +90 -88
- package/dist/components/ui/ProcessingIndicator.js +1 -1
- package/dist/components/ui/Progress.js +99 -88
- package/dist/components/ui/QuoteBlock.js +9 -9
- package/dist/components/ui/Radio.js +151 -127
- package/dist/components/ui/SegmentedControl.js +26 -25
- package/dist/components/ui/Stepper.js +114 -112
- package/dist/components/ui/Switch.js +34 -33
- package/dist/components/ui/Tabs.js +153 -150
- package/dist/components/ui/Tag.js +24 -21
- package/dist/components/ui/Tooltip.js +10 -10
- package/dist/components/ui/floatingPresence.js +40 -30
- package/dist/components/workbench/WorkbenchHud.js +9 -9
- package/dist/components/workbench/WorkbenchLockButton.js +4 -4
- package/dist/components/workbench/WorkbenchWidget.js +46 -43
- package/dist/context/FloeConfigContext.d.ts +5 -1
- package/dist/context/FloeConfigContext.js +10 -9
- package/dist/context/ThemeContext.d.ts +3 -1
- package/dist/context/ThemeContext.js +78 -71
- package/dist/floe.css +1 -0
- package/dist/full.js +839 -836
- package/dist/index.js +150 -147
- package/dist/input-focus.css +0 -1
- package/dist/styles/themes/index.d.ts +3 -0
- package/dist/styles/themes/index.js +40 -31
- package/dist/styles/tokens.d.ts +36 -0
- package/dist/styles/tokens.js +12 -5
- package/dist/styles.css +1 -1
- package/dist/surface.css +467 -0
- package/dist/themes.d.ts +1 -1
- package/dist/ui.css +9 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { spread as
|
|
2
|
-
import { splitProps as
|
|
3
|
-
import { cn as
|
|
4
|
-
var
|
|
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
|
-
`),
|
|
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
|
|
69
|
-
const [e,
|
|
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
|
|
72
|
-
return
|
|
71
|
+
var c = O(), m = c.firstChild, v = m.firstChild;
|
|
72
|
+
return T(c, W({
|
|
73
73
|
get class() {
|
|
74
|
-
return
|
|
74
|
+
return i("w-full", e.class);
|
|
75
75
|
}
|
|
76
|
-
},
|
|
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
|
|
82
|
-
return w(
|
|
83
|
-
var t =
|
|
84
|
-
return t !== r.e && x(
|
|
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
|
-
}),
|
|
88
|
+
}), a;
|
|
89
89
|
}
|
|
90
|
-
}), m), w(m,
|
|
90
|
+
}), m), w(m, P(j, {
|
|
91
91
|
get when() {
|
|
92
92
|
return e.buffer;
|
|
93
93
|
},
|
|
94
94
|
get children() {
|
|
95
|
-
var
|
|
96
|
-
return y((
|
|
95
|
+
var a = K();
|
|
96
|
+
return y((n) => E(a, "width", `${C()}%`)), a;
|
|
97
97
|
}
|
|
98
|
-
}),
|
|
99
|
-
var
|
|
100
|
-
width: `${
|
|
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
|
|
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
|
-
}),
|
|
109
|
+
}), c;
|
|
110
110
|
})();
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const oe = {
|
|
113
113
|
sm: 32,
|
|
114
114
|
md: 48,
|
|
115
115
|
lg: 64
|
|
116
116
|
};
|
|
117
|
-
function
|
|
118
|
-
const [e,
|
|
119
|
-
const
|
|
120
|
-
return typeof
|
|
121
|
-
}, g = () => e.strokeWidth ?? l() / 10, u = () => e.color ?? "primary", h = () => e.max ?? 100,
|
|
122
|
-
const
|
|
123
|
-
return
|
|
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
|
|
127
|
-
return
|
|
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
|
|
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 :
|
|
141
|
+
return B(() => !!e.indeterminate)() ? void 0 : f();
|
|
139
142
|
},
|
|
140
143
|
get "aria-valuemax"() {
|
|
141
144
|
return h();
|
|
142
145
|
}
|
|
143
|
-
},
|
|
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 =
|
|
149
|
-
return y((
|
|
150
|
-
var
|
|
151
|
-
return
|
|
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(
|
|
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 =
|
|
165
|
-
return w(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
|
|
169
|
-
return
|
|
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
|
-
}),
|
|
184
|
+
}), n;
|
|
182
185
|
})();
|
|
183
186
|
}
|
|
184
|
-
function ue(
|
|
185
|
-
const [e,
|
|
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 =
|
|
188
|
-
return
|
|
190
|
+
var m = Z(), v = m.firstChild;
|
|
191
|
+
return T(m, W({
|
|
189
192
|
get class() {
|
|
190
|
-
return
|
|
193
|
+
return i("w-full", e.class);
|
|
191
194
|
}
|
|
192
|
-
},
|
|
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
|
|
198
|
-
return w(
|
|
199
|
-
var
|
|
200
|
-
return
|
|
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
|
-
}),
|
|
207
|
+
}), a;
|
|
205
208
|
}
|
|
206
|
-
}),
|
|
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: (
|
|
213
|
-
var
|
|
214
|
-
return y(() =>
|
|
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((
|
|
217
|
-
var
|
|
218
|
-
return
|
|
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
|
|
244
|
-
const [e,
|
|
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
|
|
247
|
-
return
|
|
255
|
+
var f = te();
|
|
256
|
+
return T(f, W({
|
|
248
257
|
get class() {
|
|
249
|
-
return
|
|
258
|
+
return i("flex", u() ? "flex-col" : "flex-row items-start", e.class);
|
|
250
259
|
}
|
|
251
|
-
},
|
|
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
|
|
265
|
+
const c = () => h(b()), m = () => b() === e.steps.length - 1;
|
|
257
266
|
return (() => {
|
|
258
|
-
var
|
|
259
|
-
return w(
|
|
260
|
-
var r = B(() =>
|
|
261
|
-
return () => r() ?
|
|
262
|
-
})()), w(
|
|
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 =
|
|
268
|
-
return y(() => x(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(
|
|
271
|
-
var t =
|
|
272
|
-
return t !== r.e && x(
|
|
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
|
-
|
|
286
|
+
o: void 0,
|
|
287
|
+
i: void 0,
|
|
288
|
+
n: void 0
|
|
289
|
+
}), v;
|
|
279
290
|
})();
|
|
280
291
|
}
|
|
281
|
-
})),
|
|
292
|
+
})), f;
|
|
282
293
|
})();
|
|
283
294
|
}
|
|
284
295
|
export {
|
|
285
|
-
|
|
286
|
-
|
|
296
|
+
ce as CircularProgress,
|
|
297
|
+
de as LinearProgress,
|
|
287
298
|
ue as SegmentedProgress,
|
|
288
|
-
|
|
299
|
+
me as StepsProgress
|
|
289
300
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { spread as
|
|
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(
|
|
6
|
-
const [e,
|
|
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
|
|
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
|
|
29
|
+
return g();
|
|
30
30
|
}
|
|
31
|
-
},
|
|
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(() =>
|
|
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(() =>
|
|
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 {
|