@floegence/floe-webapp-core 0.35.26 → 0.35.27
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { spread as i, mergeProps as s, insert as a,
|
|
2
|
-
import { splitProps as
|
|
1
|
+
import { createComponent as o, spread as i, mergeProps as s, insert as a, template as c } from "solid-js/web";
|
|
2
|
+
import { splitProps as u, Show as p } from "solid-js";
|
|
3
3
|
import { cn as d } from "../../utils/cn.js";
|
|
4
4
|
import { Tooltip as b } from "../ui/Tooltip.js";
|
|
5
5
|
var m = /* @__PURE__ */ c("<button type=button>");
|
|
6
|
-
function y(
|
|
7
|
-
const [e,
|
|
6
|
+
function y(n) {
|
|
7
|
+
const [e, l] = u(n, ["label", "children", "tooltip", "tooltipPlacement", "tooltipDelay", "class", "disabled"]), r = () => (() => {
|
|
8
8
|
var t = m();
|
|
9
9
|
return i(t, s({
|
|
10
10
|
get class() {
|
|
@@ -16,15 +16,17 @@ function y(l) {
|
|
|
16
16
|
get disabled() {
|
|
17
17
|
return e.disabled;
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, l), !1, !0), a(t, () => e.children), t;
|
|
20
20
|
})();
|
|
21
|
-
return
|
|
21
|
+
return o(p, {
|
|
22
22
|
get when() {
|
|
23
23
|
return e.tooltip !== !1;
|
|
24
24
|
},
|
|
25
|
-
fallback
|
|
25
|
+
get fallback() {
|
|
26
|
+
return r();
|
|
27
|
+
},
|
|
26
28
|
get children() {
|
|
27
|
-
return
|
|
29
|
+
return o(b, {
|
|
28
30
|
get content() {
|
|
29
31
|
return e.tooltip ?? e.label;
|
|
30
32
|
},
|
|
@@ -34,7 +36,9 @@ function y(l) {
|
|
|
34
36
|
get delay() {
|
|
35
37
|
return e.tooltipDelay ?? 0;
|
|
36
38
|
},
|
|
37
|
-
children
|
|
39
|
+
get children() {
|
|
40
|
+
return r();
|
|
41
|
+
}
|
|
38
42
|
});
|
|
39
43
|
}
|
|
40
44
|
});
|