@floegence/floe-webapp-core 0.53.0 → 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.
- package/dist/components/layout/BottomBar.js +22 -22
- package/dist/components/layout/TopBar.js +7 -7
- package/dist/components/ui/Button.js +1 -1
- package/dist/components/ui/Card.js +1 -1
- package/dist/components/ui/Checkbox.js +69 -69
- package/dist/components/ui/CommandPalette.js +29 -30
- package/dist/components/ui/Dialog.js +1 -1
- package/dist/components/ui/Dropdown.js +36 -38
- package/dist/components/ui/FloatingWindow.js +2 -3
- package/dist/components/ui/Input.js +3 -3
- package/dist/components/ui/Radio.js +26 -26
- package/dist/components/ui/SegmentedControl.js +6 -6
- package/dist/components/ui/Tabs.js +43 -43
- package/dist/components/ui/floatingPresence.js +1 -1
- package/dist/context/ThemeContext.js +75 -65
- package/dist/floe.css +27 -55
- package/dist/styles/themes/classicSemanticTokens.d.ts +142 -0
- package/dist/styles/themes/classicSemanticTokens.js +100 -94
- package/dist/styles/themes/presets.d.ts +3 -1
- package/dist/styles/themes/presets.js +126 -63
- package/dist/styles/tokens.d.ts +252 -252
- package/dist/styles/tokens.js +165 -164
- package/dist/styles.css +1 -1
- package/dist/surface.css +17 -42
- package/dist/themes/dark.css +41 -95
- package/dist/themes/light.css +43 -95
- package/dist/themes/shell-presets.generated.css +146 -4
- 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">'),
|
|
6
|
-
function C(
|
|
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, () =>
|
|
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
|
|
13
|
-
const r = () => m("flex items-center gap-1 px-1 py-0.5 rounded-sm",
|
|
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
|
|
16
|
+
return t.onClick;
|
|
17
17
|
},
|
|
18
18
|
get fallback() {
|
|
19
19
|
return (() => {
|
|
20
|
-
var
|
|
21
|
-
return n(
|
|
20
|
+
var e = d();
|
|
21
|
+
return n(e, c(s, {
|
|
22
22
|
get when() {
|
|
23
|
-
return
|
|
23
|
+
return t.icon;
|
|
24
24
|
},
|
|
25
25
|
get children() {
|
|
26
26
|
var o = g();
|
|
27
|
-
return n(o, () =>
|
|
27
|
+
return n(o, () => t.icon), o;
|
|
28
28
|
}
|
|
29
|
-
}), null), n(
|
|
29
|
+
}), null), n(e, () => t.children, null), a(() => u(e, r())), e;
|
|
30
30
|
})();
|
|
31
31
|
},
|
|
32
32
|
get children() {
|
|
33
|
-
var
|
|
34
|
-
return
|
|
33
|
+
var e = v();
|
|
34
|
+
return e.$$click = () => t.onClick?.(), n(e, c(s, {
|
|
35
35
|
get when() {
|
|
36
|
-
return
|
|
36
|
+
return t.icon;
|
|
37
37
|
},
|
|
38
38
|
get children() {
|
|
39
39
|
var o = g();
|
|
40
|
-
return n(o, () =>
|
|
40
|
+
return n(o, () => t.icon), o;
|
|
41
41
|
}
|
|
42
|
-
}), null), n(
|
|
42
|
+
}), null), n(e, () => t.children, null), a(() => u(e, r())), e;
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function y(
|
|
47
|
-
const r = f(),
|
|
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(
|
|
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
|
|
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, () =>
|
|
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
|
-
|
|
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
|
|
3
|
-
import { cn as
|
|
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(
|
|
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(
|
|
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 =
|
|
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 =
|
|
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
|
|
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-
|
|
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
|
|
2
|
-
import { splitProps as B, createUniqueId as U, Switch as V, Match as S, Show as
|
|
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">'),
|
|
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
|
-
},
|
|
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
|
|
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,
|
|
66
|
-
const x = a.value ?? [], y =
|
|
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(),
|
|
74
|
-
return g === "button" ? u("inline-flex rounded-md border border-border overflow-hidden",
|
|
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
|
|
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),
|
|
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,
|
|
96
|
-
y() || (g() && e.value ? a.onChange(e.value, !
|
|
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
|
|
99
|
+
return l(t, o(m, {
|
|
100
100
|
get when() {
|
|
101
101
|
return e.indeterminate;
|
|
102
102
|
},
|
|
103
103
|
get children() {
|
|
104
|
-
return
|
|
104
|
+
return o(de, {
|
|
105
105
|
get class() {
|
|
106
|
-
return u(C[
|
|
106
|
+
return u(C[d()].icon, "transition-transform duration-150");
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
-
}), null),
|
|
110
|
+
}), null), l(t, o(m, {
|
|
111
111
|
get when() {
|
|
112
|
-
return G(() => !e.indeterminate)() &&
|
|
112
|
+
return G(() => !e.indeterminate)() && c();
|
|
113
113
|
},
|
|
114
114
|
get children() {
|
|
115
|
-
return
|
|
115
|
+
return o(A, {
|
|
116
116
|
get class() {
|
|
117
|
-
return u(C[
|
|
117
|
+
return u(C[d()].icon, "transition-transform duration-150");
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
}), null), f((r) => {
|
|
122
|
-
var n =
|
|
123
|
-
return n !== r.e && p(t, "data-floe-selected", r.e = n), i !== r.t &&
|
|
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
|
|
144
|
+
return c();
|
|
145
145
|
},
|
|
146
146
|
get "aria-checked"() {
|
|
147
|
-
return G(() => !!e.indeterminate)() ? "mixed" :
|
|
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
|
|
158
|
+
return o(V, {
|
|
159
159
|
get children() {
|
|
160
|
-
return [
|
|
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
|
|
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
|
|
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
|
|
178
|
+
return l(i, () => e.label), f(() => b(i, u("text-foreground", C[d()].label))), i;
|
|
179
179
|
}
|
|
180
|
-
}), null),
|
|
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
|
|
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(() =>
|
|
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
|
-
}),
|
|
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
|
|
198
|
+
return l(t, o(z, {
|
|
199
199
|
class: "sr-only"
|
|
200
|
-
}), r),
|
|
201
|
-
var i =
|
|
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 &&
|
|
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
|
-
}),
|
|
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
|
|
216
|
+
return l(t, o(z, {
|
|
217
217
|
class: "sr-only"
|
|
218
|
-
}), r),
|
|
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
|
|
224
|
+
return l(s, () => e.label), f(() => b(s, u("font-medium text-foreground", C[d()].label))), s;
|
|
225
225
|
}
|
|
226
|
-
}), null),
|
|
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
|
|
232
|
+
return l(s, () => e.description), f(() => b(s, u("text-muted-foreground mt-0.5", C[d()].description))), s;
|
|
233
233
|
}
|
|
234
|
-
}), null),
|
|
234
|
+
}), null), l(t, o(m, {
|
|
235
235
|
get when() {
|
|
236
|
-
return
|
|
236
|
+
return c();
|
|
237
237
|
},
|
|
238
238
|
get children() {
|
|
239
239
|
return te();
|
|
240
240
|
}
|
|
241
241
|
}), null), f((s) => {
|
|
242
|
-
var k =
|
|
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 &&
|
|
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
|
-
}),
|
|
251
|
+
}), o(S, {
|
|
252
252
|
get when() {
|
|
253
253
|
return x() === "tile";
|
|
254
254
|
},
|
|
255
255
|
get children() {
|
|
256
|
-
var t =
|
|
257
|
-
return
|
|
256
|
+
var t = le();
|
|
257
|
+
return l(t, o(z, {
|
|
258
258
|
class: "sr-only"
|
|
259
|
-
}), null),
|
|
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
|
|
267
|
+
return l(i, o(n, {
|
|
268
268
|
get class() {
|
|
269
|
-
return q[
|
|
269
|
+
return q[d()].icon;
|
|
270
270
|
}
|
|
271
|
-
})), f(() =>
|
|
271
|
+
})), f(() => b(i, u("mb-2 transition-colors duration-150", c() ? "text-primary" : "text-muted-foreground"))), i;
|
|
272
272
|
})();
|
|
273
273
|
}
|
|
274
|
-
}), null),
|
|
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
|
|
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),
|
|
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
|
|
288
|
+
return l(r, () => e.description), f(() => b(r, u("text-muted-foreground mt-0.5", C[d()].description))), r;
|
|
289
289
|
}
|
|
290
|
-
}), null),
|
|
290
|
+
}), null), l(t, o(m, {
|
|
291
291
|
get when() {
|
|
292
|
-
return
|
|
292
|
+
return c();
|
|
293
293
|
},
|
|
294
294
|
get children() {
|
|
295
|
-
var r =
|
|
296
|
-
return
|
|
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 =
|
|
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 &&
|
|
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
|
|
314
|
+
function be(w) {
|
|
315
315
|
const [a, e] = B(w, ["options"]);
|
|
316
|
-
return
|
|
316
|
+
return o(ue, M(e, {
|
|
317
317
|
get children() {
|
|
318
|
-
return
|
|
318
|
+
return o(J, {
|
|
319
319
|
get each() {
|
|
320
320
|
return a.options;
|
|
321
321
|
},
|
|
322
|
-
children: (h) =>
|
|
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
|
-
|
|
346
|
+
be as CheckboxList
|
|
347
347
|
};
|