@floegence/floe-webapp-core 0.80.1 → 0.80.2
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/ui/Button.js +4 -4
- package/dist/primitives.css +3 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { spread as u, mergeProps as g, insert as n, createComponent as t, memo as m, Dynamic as
|
|
1
|
+
import { spread as u, mergeProps as g, insert as n, createComponent as t, memo as m, Dynamic as h, effect as b, className as f, template as d } from "solid-js/web";
|
|
2
2
|
import { splitProps as p, Show as i } from "solid-js";
|
|
3
3
|
import { cn as s } from "../../utils/cn.js";
|
|
4
4
|
import { Loader2 as v } from "../icons/index.js";
|
|
@@ -33,7 +33,7 @@ function P(a) {
|
|
|
33
33
|
return e.variant === "ghost" || e.variant === "ghost-destructive" ? void 0 : "raised";
|
|
34
34
|
},
|
|
35
35
|
get class() {
|
|
36
|
-
return s("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", w[e.variant ?? "default"], z[e.size ?? "md"], e.class);
|
|
36
|
+
return s("inline-flex min-w-max items-center justify-center gap-1.5 whitespace-nowrap 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", w[e.variant ?? "default"], z[e.size ?? "md"], e.class);
|
|
37
37
|
},
|
|
38
38
|
get disabled() {
|
|
39
39
|
return e.disabled || e.loading;
|
|
@@ -52,7 +52,7 @@ function P(a) {
|
|
|
52
52
|
return e.loading;
|
|
53
53
|
},
|
|
54
54
|
get fallback() {
|
|
55
|
-
return m(() => !!e.icon)() && t(
|
|
55
|
+
return m(() => !!e.icon)() && t(h, {
|
|
56
56
|
get component() {
|
|
57
57
|
return e.icon;
|
|
58
58
|
},
|
|
@@ -64,7 +64,7 @@ function P(a) {
|
|
|
64
64
|
class: "h-full w-full animate-spin"
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
})),
|
|
67
|
+
})), b(() => f(o, s("inline-flex shrink-0 items-center justify-center", l()))), o;
|
|
68
68
|
}
|
|
69
69
|
}), null), n(r, () => e.children, null), r;
|
|
70
70
|
})();
|
package/dist/primitives.css
CHANGED
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
--floe-radius-floating: 12px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
/* Action labels stay on one line; their containing toolbar owns reflow. */
|
|
27
|
+
:where(button) { white-space: nowrap; }
|
|
28
|
+
|
|
26
29
|
/* Compact visual controls retain usable, non-overlapping touch geometry. */
|
|
27
30
|
@media (pointer: coarse) {
|
|
28
31
|
body {
|