fiboui 2.8.3 → 2.8.4

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/content.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as s, B as r, I as o } from "./icons-7Xl0GDMW.js";
2
- import { a9 as n, a8 as I } from "./client-8KCOzRhg.js";
3
- import { A as m, I as p, L as x, P as A, a as f, S as l } from "./index-CVy8N94v.js";
1
+ import { A as s, B as r, I as o } from "./icons-DujcjAOD.js";
2
+ import { ad as n, ac as I } from "./client-DOrZXJAN.js";
3
+ import { A as m, I as p, L as x, P as A, a as f, S as l } from "./index-rNMzRy8Y.js";
4
4
  export {
5
5
  m as Alert,
6
6
  s as Avatar,
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as e, E as t, N as r, a0 as i, Z as o, _ as n, U as l, F as u, I as c, M as S, T as p, O as g, h as b, w as T, P as v, R as E, x as d, y as C, S as R, a2 as F, l as I, k as f, c as m, b as y, a as O, Y as P, Q as x, W as M, g as N, V as _, X as w, K as A, L as B, i as L, $ as V, J as h, o as q, H as z, r as G, z as K, s as W, G as X, A as j, D as k, B as D, a1 as H, f as J, q as Q, e as U, t as Y, j as Z, d as $, v as ss, u as as, n as es, p as ts, m as rs } from "./client-8KCOzRhg.js";
2
- import { L as os, c as ns, b as ls, a as us, e as cs, l as Ss, p as ps, w as gs } from "./page-FXW2hz2C.js";
1
+ import { C as e, E as t, V as r, a4 as i, a1 as o, a2 as n, Y as l, F as u, N as c, L as S, M as p, X as g, O as T, k as b, z as v, P as E, R as d, A as C, B as R, S as F, a6 as I, p as f, n as m, d as y, c as O, b as P, a as x, a0 as M, W as N, e as _, _ as w, g as A, Z as B, $ as V, T as L, U as h, i as q, l as z, a3 as G, Q as K, o as W, K as X, r as j, D as k, s as D, J as H, G as J, I as Q, H as U, a5 as Y, j as Z, w as $, h as ss, x as as, m as es, f as ts, y as rs, u as is, t as os, v as ns, q as ls } from "./client-DOrZXJAN.js";
2
+ import { a as cs, c as Ss, p as ps, w as gs } from "./page-BOQJIKa5.js";
3
3
  export {
4
4
  e as ComputedSignal,
5
5
  t as Easing,
@@ -10,60 +10,60 @@ export {
10
10
  l as FiboStyles,
11
11
  u as FineGrainText,
12
12
  c as INTERACTION_EFFECTS,
13
- os as ListSignal,
14
- S as MOTION_PRESETS,
15
- p as MotionStyles,
16
- g as Observable,
13
+ S as ListSignal,
14
+ p as MOTION_PRESETS,
15
+ g as MotionStyles,
16
+ T as Observable,
17
17
  b as Observer,
18
- T as Presence,
19
- v as ProviderWrapper,
20
- E as ReactivityRoot,
21
- d as Reveal,
22
- C as ScrollProgress,
23
- R as Signal,
24
- F as ValueBuilder,
25
- I as applyResponsiveStyles,
26
- f as bindText,
27
- ns as collection,
28
- m as computed,
29
- ls as createPage,
30
- y as createReactivityRoot,
31
- O as createStore,
32
- us as cssCurve,
33
- P as endSsrRequest,
34
- x as ensureInteractionFxCss,
35
- cs as ensureListId,
36
- M as getCss,
37
- N as getCurrentScope,
38
- _ as getMotionCss,
39
- w as getStyleTag,
40
- A as interactionEffectClass,
41
- B as interactionEffectKebab,
42
- L as interp,
43
- Ss as listSignal,
44
- V as mount,
45
- h as normalizeInteractionEffect,
46
- q as observable,
18
+ v as Presence,
19
+ E as ProviderWrapper,
20
+ d as ReactivityRoot,
21
+ C as Reveal,
22
+ R as ScrollProgress,
23
+ F as Signal,
24
+ I as ValueBuilder,
25
+ f as applyResponsiveStyles,
26
+ m as bindText,
27
+ y as collection,
28
+ O as computed,
29
+ cs as createPage,
30
+ P as createReactivityRoot,
31
+ x as createStore,
32
+ Ss as cssCurve,
33
+ M as endSsrRequest,
34
+ N as ensureInteractionFxCss,
35
+ _ as ensureListId,
36
+ w as getCss,
37
+ A as getCurrentScope,
38
+ B as getMotionCss,
39
+ V as getStyleTag,
40
+ L as interactionEffectClass,
41
+ h as interactionEffectKebab,
42
+ q as interp,
43
+ z as listSignal,
44
+ G as mount,
45
+ K as normalizeInteractionEffect,
46
+ W as observable,
47
47
  ps as page,
48
- z as resolveCssEase,
49
- G as runInScope,
50
- K as scrollTo,
51
- W as signal,
52
- X as springEase,
53
- j as startViewTransition,
54
- k as supportsScrollTimeline,
55
- D as supportsViewTimeline,
56
- H as toElement,
57
- J as useBuilderState,
58
- Q as useMountTransition,
59
- U as useObservable,
60
- Y as usePrefersReducedMotion,
61
- Z as useProvider,
62
- $ as useReactiveStore,
63
- ss as useScrollProgress,
64
- as as useSignal,
65
- es as useSpring,
66
- ts as useStagger,
67
- rs as useTransition,
48
+ X as resolveCssEase,
49
+ j as runInScope,
50
+ k as scrollTo,
51
+ D as signal,
52
+ H as springEase,
53
+ J as startViewTransition,
54
+ Q as supportsScrollTimeline,
55
+ U as supportsViewTimeline,
56
+ Y as toElement,
57
+ Z as useBuilderState,
58
+ $ as useMountTransition,
59
+ ss as useObservable,
60
+ as as usePrefersReducedMotion,
61
+ es as useProvider,
62
+ ts as useReactiveStore,
63
+ rs as useScrollProgress,
64
+ is as useSignal,
65
+ os as useSpring,
66
+ ns as useStagger,
67
+ ls as useTransition,
68
68
  gs as withFiboStyles
69
69
  };
@@ -2,7 +2,7 @@ var L = Object.defineProperty;
2
2
  var R = (t, r, e) => r in t ? L(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
3
  var i = (t, r, e) => R(t, typeof r != "symbol" ? r + "" : r, e);
4
4
  import h from "react";
5
- import { aT as C, aU as E, au as y, b5 as I, a3 as j, a8 as H, aX as W, a_ as M, aY as D } from "./client-8KCOzRhg.js";
5
+ import { aX as C, aY as E, ay as y, ba as I, a7 as j, ac as H, a$ as W, b2 as M, b0 as D } from "./client-DOrZXJAN.js";
6
6
  import { jsx as s, jsxs as v } from "react/jsx-runtime";
7
7
  function $(t) {
8
8
  if (typeof t != "string") return "";
@@ -77,7 +77,7 @@ const V = ({ size: t }) => h.createElement(
77
77
  overflow: "visible"
78
78
  }).children([A, B]).build();
79
79
  });
80
- class T extends E {
80
+ class q extends E {
81
81
  constructor() {
82
82
  super(...arguments);
83
83
  i(this, "_image", "");
@@ -134,8 +134,8 @@ class T extends E {
134
134
  return h.createElement(U, e);
135
135
  }
136
136
  }
137
- const re = C(T);
138
- function q(t) {
137
+ const re = C(q);
138
+ function T(t) {
139
139
  return t === "success" || t === "warning" || t === "error" || t === "info" ? t : "none";
140
140
  }
141
141
  function P(t) {
@@ -145,7 +145,7 @@ function G(t) {
145
145
  return t === "pill" ? "pill" : "rounded";
146
146
  }
147
147
  const J = h.memo((t) => {
148
- const { text: r, icon: e, variant: u, intent: g, shape: d, className: b, style: p, ...x } = t, n = q(g), o = P(u), l = G(d), c = {
148
+ const { text: r, icon: e, variant: u, intent: g, shape: d, className: b, style: p, ...x } = t, n = T(g), o = P(u), l = G(d), c = {
149
149
  none: { bg: "#F9FAFB", text: "#6B7280", border: "#E5E7EB" },
150
150
  success: { bg: "#ECFDF5", text: "#059669", border: "transparent" },
151
151
  warning: { bg: "#FFFBEB", text: "#D97706", border: "transparent" },
@@ -2,10 +2,10 @@ var c = Object.defineProperty;
2
2
  var f = (s, e, t) => e in s ? c(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var i = (s, e, t) => f(s, typeof e != "symbol" ? e + "" : e, t);
4
4
  import m from "react";
5
- import { aT as d, aU as y, aV as x, aW as n, aX as o, aY as l, aZ as T, a_ as v } from "./client-8KCOzRhg.js";
5
+ import { aX as d, aY as y, aZ as x, a_ as n, a$ as o, b0 as l, b1 as v, b2 as T } from "./client-DOrZXJAN.js";
6
6
  function p(s, e) {
7
7
  if (!(typeof e != "string" || !o(e)))
8
- for (const t of v(e))
8
+ for (const t of T(e))
9
9
  s.bindSignal(t);
10
10
  }
11
11
  function h(s, e) {
@@ -138,7 +138,7 @@ class g extends y {
138
138
  _.node = u;
139
139
  };
140
140
  }
141
- return m.createElement(T, a);
141
+ return m.createElement(v, a);
142
142
  }
143
143
  }
144
144
  const I = d(g);
@@ -2,7 +2,7 @@ var w = Object.defineProperty;
2
2
  var S = (s, e, t) => e in s ? w(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var n = (s, e, t) => S(s, typeof e != "symbol" ? e + "" : e, t);
4
4
  import m from "react";
5
- import { aT as g, aU as d, a$ as N, b0 as C, aY as j, aX as _, a_ as z } from "./client-8KCOzRhg.js";
5
+ import { aX as g, aY as d, b8 as N, b9 as C, b0 as j, a$ as _, b2 as z } from "./client-DOrZXJAN.js";
6
6
  function B(s, e) {
7
7
  if (!(typeof e != "string" || !_(e)))
8
8
  for (const t of z(e))
@@ -27,8 +27,8 @@ function I(s) {
27
27
  return typeof s == "string" && _(s) ? j(s) : s;
28
28
  }
29
29
  function M(s, e) {
30
- const { children: t, ...r } = e, a = t !== void 0 ? t : s;
31
- return { nodes: a == null ? [] : Array.isArray(a) ? a : [a], rest: r };
30
+ const { children: t, ...r } = e, o = t !== void 0 ? t : s;
31
+ return { nodes: o == null ? [] : Array.isArray(o) ? o : [o], rest: r };
32
32
  }
33
33
  class $ extends d {
34
34
  constructor() {
@@ -78,7 +78,7 @@ class $ extends d {
78
78
  center: "items-center",
79
79
  end: "items-end",
80
80
  stretch: "items-stretch"
81
- }, a = {
81
+ }, o = {
82
82
  small: "flex-[0.3]",
83
83
  medium: "flex-1",
84
84
  large: "flex-[1.5]"
@@ -90,16 +90,16 @@ class $ extends d {
90
90
  this.isHug() ? "w-auto self-auto" : "w-full min-w-0 min-h-0",
91
91
  t[this._mainAxisAlignment],
92
92
  r[this._crossAxisAlignment],
93
- this._size ? a[this._size] : "",
93
+ this._size ? o[this._size] : "",
94
94
  ...this._classNames
95
- ], h = this.getStyle(), { nodes: c, rest: p } = M(this.processChildren(), this._props), { className: x, style: u, ...y } = p, A = [...i, x].filter(Boolean).join(" "), b = c.map(I), o = {
95
+ ], h = this.getStyle(), { nodes: c, rest: p } = M(this.processChildren(), this._props), { className: x, style: u, ...y } = p, A = [...i, x].filter(Boolean).join(" "), b = c.map(I), a = {
96
96
  ...h,
97
97
  ...u && typeof u == "object" ? u : {}
98
98
  };
99
- return this._spacing != null && this._spacing !== "" && (typeof this._spacing == "number" ? o.gap = `${this._spacing}px` : isNaN(Number(this._spacing)) ? o.gap = this._spacing : o.gap = `${Number(this._spacing) * 4}px`), m.createElement(
99
+ return this._spacing != null && this._spacing !== "" && (typeof this._spacing == "number" ? a.gap = `${this._spacing}px` : isNaN(Number(this._spacing)) ? a.gap = this._spacing : a.gap = `${Number(this._spacing) * 4}px`), m.createElement(
100
100
  "div",
101
101
  {
102
- style: o,
102
+ style: a,
103
103
  ...y,
104
104
  className: A
105
105
  },
@@ -107,7 +107,7 @@ class $ extends d {
107
107
  );
108
108
  }
109
109
  }
110
- const X = g($);
110
+ const Y = g($);
111
111
  function f(s) {
112
112
  return typeof s == "number" ? `${s}px` : s;
113
113
  }
@@ -140,19 +140,19 @@ class H extends d {
140
140
  return this._grow = Number.isFinite(r) ? r : 1, this._expand = !0, this;
141
141
  }
142
142
  build() {
143
- const { className: t, style: r, ...a } = this._props, i = { ...this.getStyle(), ...E(r) }, h = this._height != null || this._width != null, c = this._expand ?? !h;
143
+ const { className: t, style: r, ...o } = this._props, i = { ...this.getStyle(), ...E(r) }, h = this._height != null || this._width != null, c = this._expand ?? !h;
144
144
  this._height != null && (i.height = f(this._height)), this._width != null && (i.width = f(this._width)), c ? (i.flex = `${this._grow ?? 1} 1 0%`, i.alignSelf = i.alignSelf ?? "stretch", i.minWidth = i.minWidth ?? 0, i.minHeight = i.minHeight ?? 0) : i.flex = "0 0 auto";
145
145
  const p = ["fibo-spacer", this.getClassName(), t].filter(Boolean).join(" ");
146
146
  return m.createElement("div", {
147
- ...a,
147
+ ...o,
148
148
  style: i,
149
149
  className: p,
150
150
  "aria-hidden": !0
151
151
  });
152
152
  }
153
153
  }
154
- const Y = g(H);
154
+ const k = g(H);
155
155
  export {
156
- X as C,
157
- Y as S
156
+ Y as C,
157
+ k as S
158
158
  };