@blockbite/ui 2.0.17 → 2.0.18

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/index.js CHANGED
@@ -23,7 +23,7 @@ var Nt;
23
23
  function Hn() {
24
24
  if (Nt) return N;
25
25
  Nt = 1;
26
- var o = Symbol.for("react.element"), a = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), p = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), _ = Symbol.iterator;
26
+ var o = Symbol.for("react.element"), a = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), h = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), p = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), _ = Symbol.iterator;
27
27
  function O(s) {
28
28
  return s === null || typeof s != "object" ? null : (s = _ && s[_] || s["@@iterator"], typeof s == "function" ? s : null);
29
29
  }
@@ -147,7 +147,7 @@ function Hn() {
147
147
  }, only: function(s) {
148
148
  if (!Oe(s)) throw Error("React.Children.only expected to receive a single React element child.");
149
149
  return s;
150
- } }, N.Component = de, N.Fragment = u, N.Profiler = f, N.PureComponent = Y, N.StrictMode = l, N.Suspense = g, N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ne, N.act = Ce, N.cloneElement = function(s, y, I) {
150
+ } }, N.Component = de, N.Fragment = u, N.Profiler = d, N.PureComponent = Y, N.StrictMode = l, N.Suspense = g, N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ne, N.act = Ce, N.cloneElement = function(s, y, I) {
151
151
  if (s == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + s + ".");
152
152
  var $ = S({}, s.props), M = s.key, J = s.ref, q = s._owner;
153
153
  if (y != null) {
@@ -163,7 +163,7 @@ function Hn() {
163
163
  }
164
164
  return { $$typeof: o, type: s.type, key: M, ref: J, props: $, _owner: q };
165
165
  }, N.createContext = function(s) {
166
- return s = { $$typeof: h, _currentValue: s, _currentValue2: s, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, s.Provider = { $$typeof: d, _context: s }, s.Consumer = s;
166
+ return s = { $$typeof: h, _currentValue: s, _currentValue2: s, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, s.Provider = { $$typeof: f, _context: s }, s.Consumer = s;
167
167
  }, N.createElement = je, N.createFactory = function(s) {
168
168
  var y = je.bind(null, s);
169
169
  return y.type = s, y;
@@ -230,7 +230,7 @@ function Jn() {
230
230
  return At || (At = 1, function(o, a) {
231
231
  process.env.NODE_ENV !== "production" && function() {
232
232
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
233
- var u = "18.3.1", l = Symbol.for("react.element"), f = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), p = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), ae = Symbol.for("react.offscreen"), de = Symbol.iterator, A = "@@iterator";
233
+ var u = "18.3.1", l = Symbol.for("react.element"), d = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), p = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), ae = Symbol.for("react.offscreen"), de = Symbol.iterator, A = "@@iterator";
234
234
  function Y(e) {
235
235
  if (e === null || typeof e != "object")
236
236
  return null;
@@ -449,9 +449,9 @@ function Jn() {
449
449
  if (typeof e == "string")
450
450
  return e;
451
451
  switch (e) {
452
- case d:
453
- return "Fragment";
454
452
  case f:
453
+ return "Fragment";
454
+ case d:
455
455
  return "Portal";
456
456
  case v:
457
457
  return "Profiler";
@@ -648,7 +648,7 @@ function Jn() {
648
648
  case "object":
649
649
  switch (e.$$typeof) {
650
650
  case l:
651
- case f:
651
+ case d:
652
652
  w = !0;
653
653
  }
654
654
  }
@@ -895,7 +895,7 @@ Your code should look like:
895
895
  var t;
896
896
  t = Symbol.for("react.module.reference");
897
897
  function m(e) {
898
- return !!(typeof e == "string" || typeof e == "function" || e === d || e === v || me || e === h || e === _ || e === O || ve || e === ae || Oe || Je || Pe || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === T || e.$$typeof === g || e.$$typeof === p || e.$$typeof === j || // This needs to include all possible module reference object
898
+ return !!(typeof e == "string" || typeof e == "function" || e === f || e === v || me || e === h || e === _ || e === O || ve || e === ae || Oe || Je || Pe || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === T || e.$$typeof === g || e.$$typeof === p || e.$$typeof === j || // This needs to include all possible module reference object
899
899
  // types supported by any Flight configuration anywhere since
900
900
  // we don't know which Flight build this will end up being used
901
901
  // with.
@@ -959,7 +959,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
959
959
  var i = C();
960
960
  return i.useInsertionEffect(e, r);
961
961
  }
962
- function ne(e, r) {
962
+ function te(e, r) {
963
963
  var i = C();
964
964
  return i.useLayoutEffect(e, r);
965
965
  }
@@ -1335,7 +1335,7 @@ Check the top-level render call using <` + i + ">.");
1335
1335
  if (c)
1336
1336
  for (var L = 2; L < arguments.length; L++)
1337
1337
  _t(arguments[L], e);
1338
- return e === d ? rn(k) : jt(k), k;
1338
+ return e === f ? rn(k) : jt(k), k;
1339
1339
  }
1340
1340
  var wt = !1;
1341
1341
  function tn(e) {
@@ -1480,7 +1480,7 @@ Check the top-level render call using <` + i + ">.");
1480
1480
  toArray: yr,
1481
1481
  only: br
1482
1482
  };
1483
- a.Children = cn, a.Component = $, a.Fragment = d, a.Profiler = v, a.PureComponent = V, a.StrictMode = h, a.Suspense = _, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = le, a.act = kt, a.cloneElement = ln, a.createContext = Lr, a.createElement = sn, a.createFactory = un, a.createRef = Or, a.forwardRef = Vr, a.isValidElement = Re, a.lazy = Ur, a.memo = x, a.startTransition = an, a.unstable_act = kt, a.useCallback = he, a.useContext = W, a.useDebugValue = fe, a.useDeferredValue = Br, a.useEffect = ue, a.useId = Yr, a.useImperativeHandle = we, a.useInsertionEffect = ee, a.useLayoutEffect = ne, a.useMemo = Se, a.useReducer = D, a.useRef = P, a.useState = B, a.useSyncExternalStore = zt, a.useTransition = nr, a.version = u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1483
+ a.Children = cn, a.Component = $, a.Fragment = f, a.Profiler = v, a.PureComponent = V, a.StrictMode = h, a.Suspense = _, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = le, a.act = kt, a.cloneElement = ln, a.createContext = Lr, a.createElement = sn, a.createFactory = un, a.createRef = Or, a.forwardRef = Vr, a.isValidElement = Re, a.lazy = Ur, a.memo = x, a.startTransition = an, a.unstable_act = kt, a.useCallback = he, a.useContext = W, a.useDebugValue = fe, a.useDeferredValue = Br, a.useEffect = ue, a.useId = Yr, a.useImperativeHandle = we, a.useInsertionEffect = ee, a.useLayoutEffect = te, a.useMemo = Se, a.useReducer = D, a.useRef = P, a.useState = B, a.useSyncExternalStore = zt, a.useTransition = nr, a.version = u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1484
1484
  }();
1485
1485
  }(ir, ir.exports)), ir.exports;
1486
1486
  }
@@ -1501,13 +1501,13 @@ var Dt;
1501
1501
  function Xn() {
1502
1502
  if (Dt) return or;
1503
1503
  Dt = 1;
1504
- var o = at(), a = Symbol.for("react.element"), u = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, f = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
1504
+ var o = at(), a = Symbol.for("react.element"), u = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, d = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
1505
1505
  function h(v, g, p) {
1506
1506
  var j, _ = {}, O = null, T = null;
1507
1507
  p !== void 0 && (O = "" + p), g.key !== void 0 && (O = "" + g.key), g.ref !== void 0 && (T = g.ref);
1508
- for (j in g) l.call(g, j) && !d.hasOwnProperty(j) && (_[j] = g[j]);
1508
+ for (j in g) l.call(g, j) && !f.hasOwnProperty(j) && (_[j] = g[j]);
1509
1509
  if (v && v.defaultProps) for (j in g = v.defaultProps, g) _[j] === void 0 && (_[j] = g[j]);
1510
- return { $$typeof: a, type: v, key: O, ref: T, props: _, _owner: f.current };
1510
+ return { $$typeof: a, type: v, key: O, ref: T, props: _, _owner: d.current };
1511
1511
  }
1512
1512
  return or.Fragment = u, or.jsx = h, or.jsxs = h, or;
1513
1513
  }
@@ -1524,7 +1524,7 @@ var sr = {};
1524
1524
  var $t;
1525
1525
  function Zn() {
1526
1526
  return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
1527
- var o = at(), a = Symbol.for("react.element"), u = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), v = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), S = Symbol.iterator, ae = "@@iterator";
1527
+ var o = at(), a = Symbol.for("react.element"), u = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), v = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), S = Symbol.iterator, ae = "@@iterator";
1528
1528
  function de(t) {
1529
1529
  if (t === null || typeof t != "object")
1530
1530
  return null;
@@ -1552,7 +1552,7 @@ function Zn() {
1552
1552
  var H = !1, X = !1, ie = !1, pe = !1, je = !1, Te;
1553
1553
  Te = Symbol.for("react.module.reference");
1554
1554
  function Oe(t) {
1555
- return !!(typeof t == "string" || typeof t == "function" || t === l || t === d || je || t === f || t === p || t === j || pe || t === T || H || X || ie || typeof t == "object" && t !== null && (t.$$typeof === O || t.$$typeof === _ || t.$$typeof === h || t.$$typeof === v || t.$$typeof === g || // This needs to include all possible module reference object
1555
+ return !!(typeof t == "string" || typeof t == "function" || t === l || t === f || je || t === d || t === p || t === j || pe || t === T || H || X || ie || typeof t == "object" && t !== null && (t.$$typeof === O || t.$$typeof === _ || t.$$typeof === h || t.$$typeof === v || t.$$typeof === g || // This needs to include all possible module reference object
1556
1556
  // types supported by any Flight configuration anywhere since
1557
1557
  // we don't know which Flight build this will end up being used
1558
1558
  // with.
@@ -1580,9 +1580,9 @@ function Zn() {
1580
1580
  return "Fragment";
1581
1581
  case u:
1582
1582
  return "Portal";
1583
- case d:
1584
- return "Profiler";
1585
1583
  case f:
1584
+ return "Profiler";
1585
+ case d:
1586
1586
  return "StrictMode";
1587
1587
  case p:
1588
1588
  return "Suspense";
@@ -1744,18 +1744,18 @@ function Zn() {
1744
1744
  if (fe && C && typeof fe.stack == "string") {
1745
1745
  for (var P = fe.stack.split(`
1746
1746
  `), ue = C.stack.split(`
1747
- `), ee = P.length - 1, ne = ue.length - 1; ee >= 1 && ne >= 0 && P[ee] !== ue[ne]; )
1748
- ne--;
1749
- for (; ee >= 1 && ne >= 0; ee--, ne--)
1750
- if (P[ee] !== ue[ne]) {
1751
- if (ee !== 1 || ne !== 1)
1747
+ `), ee = P.length - 1, te = ue.length - 1; ee >= 1 && te >= 0 && P[ee] !== ue[te]; )
1748
+ te--;
1749
+ for (; ee >= 1 && te >= 0; ee--, te--)
1750
+ if (P[ee] !== ue[te]) {
1751
+ if (ee !== 1 || te !== 1)
1752
1752
  do
1753
- if (ee--, ne--, ne < 0 || P[ee] !== ue[ne]) {
1753
+ if (ee--, te--, te < 0 || P[ee] !== ue[te]) {
1754
1754
  var he = `
1755
1755
  ` + P[ee].replace(" at new ", " at ");
1756
1756
  return t.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", t.displayName)), typeof t == "function" && oe.set(t, he), he;
1757
1757
  }
1758
- while (ee >= 1 && ne >= 0);
1758
+ while (ee >= 1 && te >= 0);
1759
1759
  break;
1760
1760
  }
1761
1761
  }
@@ -1940,8 +1940,8 @@ function Zn() {
1940
1940
  D[B] === void 0 && (D[B] = ee[B]);
1941
1941
  }
1942
1942
  if (P || ue) {
1943
- var ne = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
1944
- P && Dr(D, ne), ue && Re(D, ne);
1943
+ var te = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
1944
+ P && Dr(D, te), ue && Re(D, te);
1945
1945
  }
1946
1946
  return mr(t, P, ue, W, C, Ze.current, D);
1947
1947
  }
@@ -2068,9 +2068,9 @@ Check the top-level render call using <` + x + ">.");
2068
2068
  var ee;
2069
2069
  t === null ? ee = "null" : Ve(t) ? ee = "array" : t !== void 0 && t.$$typeof === a ? (ee = "<" + (ve(t.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : ee = typeof t, Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ee, P);
2070
2070
  }
2071
- var ne = $r(t, m, x, W, B);
2072
- if (ne == null)
2073
- return ne;
2071
+ var te = $r(t, m, x, W, B);
2072
+ if (te == null)
2073
+ return te;
2074
2074
  if (D) {
2075
2075
  var he = m.children;
2076
2076
  if (he !== void 0)
@@ -2098,7 +2098,7 @@ React keys must be passed directly to JSX without using spread:
2098
2098
  <%s key={someKey} {...props} />`, nr, we, Br, we), qe[we + nr] = !0;
2099
2099
  }
2100
2100
  }
2101
- return t === l ? Le(ne) : Lr(ne), ne;
2101
+ return t === l ? Le(te) : Lr(te), te;
2102
2102
  }
2103
2103
  }
2104
2104
  function Mr(t, m, x) {
@@ -2129,40 +2129,40 @@ function ea() {
2129
2129
  (function() {
2130
2130
  var a = {}.hasOwnProperty;
2131
2131
  function u() {
2132
- for (var d = "", h = 0; h < arguments.length; h++) {
2132
+ for (var f = "", h = 0; h < arguments.length; h++) {
2133
2133
  var v = arguments[h];
2134
- v && (d = f(d, l(v)));
2134
+ v && (f = d(f, l(v)));
2135
2135
  }
2136
- return d;
2136
+ return f;
2137
2137
  }
2138
- function l(d) {
2139
- if (typeof d == "string" || typeof d == "number")
2140
- return d;
2141
- if (typeof d != "object")
2138
+ function l(f) {
2139
+ if (typeof f == "string" || typeof f == "number")
2140
+ return f;
2141
+ if (typeof f != "object")
2142
2142
  return "";
2143
- if (Array.isArray(d))
2144
- return u.apply(null, d);
2145
- if (d.toString !== Object.prototype.toString && !d.toString.toString().includes("[native code]"))
2146
- return d.toString();
2143
+ if (Array.isArray(f))
2144
+ return u.apply(null, f);
2145
+ if (f.toString !== Object.prototype.toString && !f.toString.toString().includes("[native code]"))
2146
+ return f.toString();
2147
2147
  var h = "";
2148
- for (var v in d)
2149
- a.call(d, v) && d[v] && (h = f(h, v));
2148
+ for (var v in f)
2149
+ a.call(f, v) && f[v] && (h = d(h, v));
2150
2150
  return h;
2151
2151
  }
2152
- function f(d, h) {
2153
- return h ? d ? d + " " + h : d + h : d;
2152
+ function d(f, h) {
2153
+ return h ? f ? f + " " + h : f + h : f;
2154
2154
  }
2155
2155
  o.exports ? (u.default = u, o.exports = u) : window.classNames = u;
2156
2156
  })();
2157
2157
  }(et)), et.exports;
2158
2158
  }
2159
2159
  var ra = ea();
2160
- const U = /* @__PURE__ */ Kn(ra), te = ({
2160
+ const U = /* @__PURE__ */ Kn(ra), ne = ({
2161
2161
  children: o,
2162
2162
  className: a,
2163
2163
  important: u = !1,
2164
2164
  onClick: l
2165
- }) => u ? /* @__PURE__ */ n.jsx("div", { className: "bb_", onClick: l, children: /* @__PURE__ */ n.jsx("div", { className: a, children: o }) }) : /* @__PURE__ */ n.jsx("div", { className: a, children: o }), He = ({ icon: o, className: a = "" }) => o ? /* @__PURE__ */ n.jsxs(te, { className: "blockbite--icon", children: [
2165
+ }) => u ? /* @__PURE__ */ n.jsx("div", { className: "bb_", onClick: l, children: /* @__PURE__ */ n.jsx("div", { className: a, children: o }) }) : /* @__PURE__ */ n.jsx("div", { className: a, children: o }), He = ({ icon: o, className: a = "" }) => o ? /* @__PURE__ */ n.jsxs(ne, { className: "blockbite--icon", children: [
2166
2166
  /* @__PURE__ */ n.jsx(o, { className: a }),
2167
2167
  " "
2168
2168
  ] }) : null, ta = tt(
@@ -2171,8 +2171,8 @@ const U = /* @__PURE__ */ Kn(ra), te = ({
2171
2171
  className: a,
2172
2172
  value: u,
2173
2173
  variant: l = "secondary",
2174
- defaultPressed: f,
2175
- onPressedChange: d,
2174
+ defaultPressed: d,
2175
+ onPressedChange: f,
2176
2176
  icon: h,
2177
2177
  size: v = "compact",
2178
2178
  display: g = "auto",
@@ -2180,11 +2180,11 @@ const U = /* @__PURE__ */ Kn(ra), te = ({
2180
2180
  }) => {
2181
2181
  const [j, _] = F(!1);
2182
2182
  K(() => {
2183
- _(f === u);
2184
- }, [f]);
2183
+ _(d === u);
2184
+ }, [d]);
2185
2185
  const O = Wt(() => {
2186
- _((T) => !T), d(u);
2187
- }, [j, d]);
2186
+ _((T) => !T), f(u);
2187
+ }, [j, f]);
2188
2188
  return /* @__PURE__ */ n.jsxs(
2189
2189
  ye,
2190
2190
  {
@@ -2211,8 +2211,8 @@ const U = /* @__PURE__ */ Kn(ra), te = ({
2211
2211
  defaultPressed: a = "",
2212
2212
  toggle: u = !0,
2213
2213
  display: l = "auto",
2214
- options: f,
2215
- size: d = "compact",
2214
+ options: d,
2215
+ size: f = "compact",
2216
2216
  tabs: h = !1,
2217
2217
  variant: v = "secondary",
2218
2218
  stretch: g = !1,
@@ -2233,14 +2233,14 @@ const U = /* @__PURE__ */ Kn(ra), te = ({
2233
2233
  /* @__PURE__ */ n.jsx("span", { children: S.label })
2234
2234
  ] });
2235
2235
  return /* @__PURE__ */ n.jsx(
2236
- te,
2236
+ ne,
2237
2237
  {
2238
2238
  className: U(
2239
2239
  "blockbite-ui__button-group flex flex-wrap gap-1",
2240
2240
  o,
2241
2241
  h ? "blockbite-ui__button-group--tabs" : ""
2242
2242
  ),
2243
- children: f.map((S, ae) => /* @__PURE__ */ n.jsxs(
2243
+ children: d.map((S, ae) => /* @__PURE__ */ n.jsxs(
2244
2244
  ye,
2245
2245
  {
2246
2246
  className: U("blockbite-ui__button--default", {
@@ -2250,7 +2250,7 @@ const U = /* @__PURE__ */ Kn(ra), te = ({
2250
2250
  "aria-label": S.label,
2251
2251
  showTooltip: !0,
2252
2252
  value: S.value,
2253
- size: d,
2253
+ size: f,
2254
2254
  label: S?.tooltip || S.label,
2255
2255
  variant: v,
2256
2256
  isPressed: j === S.value,
@@ -2272,22 +2272,22 @@ function ka({
2272
2272
  swatch: u,
2273
2273
  onPressedChange: l
2274
2274
  }) {
2275
- const [f, d] = F(""), [h, v] = F([]);
2275
+ const [d, f] = F(""), [h, v] = F([]);
2276
2276
  return K(() => {
2277
2277
  v(
2278
2278
  a.filter(
2279
- (g) => g.label.toLowerCase().includes(f.toLowerCase())
2279
+ (g) => g.label.toLowerCase().includes(d.toLowerCase())
2280
2280
  )
2281
2281
  );
2282
- }, [f, a]), K(() => {
2283
- d(""), v(a);
2282
+ }, [d, a]), K(() => {
2283
+ f(""), v(a);
2284
2284
  }, [o, a]), /* @__PURE__ */ n.jsx(
2285
2285
  wn,
2286
2286
  {
2287
2287
  className: "option-panel-dropdown",
2288
2288
  contentClassName: "option-panel-dropdown-content",
2289
2289
  popoverProps: { placement: "bottom-start" },
2290
- renderToggle: ({ isOpen: g, onToggle: p }) => /* @__PURE__ */ n.jsx(te, { important: !0, children: /* @__PURE__ */ n.jsx(
2290
+ renderToggle: ({ isOpen: g, onToggle: p }) => /* @__PURE__ */ n.jsx(ne, { important: !0, children: /* @__PURE__ */ n.jsx(
2291
2291
  ye,
2292
2292
  {
2293
2293
  variant: "secondary",
@@ -2308,13 +2308,13 @@ function ka({
2308
2308
  ] })
2309
2309
  }
2310
2310
  ) }),
2311
- renderContent: () => /* @__PURE__ */ n.jsx(te, { important: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "w-52", children: [
2311
+ renderContent: () => /* @__PURE__ */ n.jsx(ne, { important: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "w-52", children: [
2312
2312
  /* @__PURE__ */ n.jsx(
2313
2313
  rt,
2314
2314
  {
2315
2315
  label: "Search options",
2316
- value: f,
2317
- onChange: (g) => d(g),
2316
+ value: d,
2317
+ onChange: (g) => f(g),
2318
2318
  autoComplete: "off"
2319
2319
  }
2320
2320
  ),
@@ -2365,13 +2365,13 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2365
2365
  ]
2366
2366
  }
2367
2367
  ), Sa = ({ htmlContent: o, cssContent: a, frontendAssets: u }) => {
2368
- const l = lr(null), [f, d] = F(null);
2368
+ const l = lr(null), [d, f] = F(null);
2369
2369
  return K(() => {
2370
2370
  const h = l.current;
2371
2371
  return h && (h.onload = () => {
2372
2372
  const v = h.contentDocument || h.contentWindow.document;
2373
2373
  if (v) {
2374
- d(v.body);
2374
+ f(v.body);
2375
2375
  const g = v.createElement("style");
2376
2376
  g.innerHTML = a, v.head.appendChild(g), u.forEach(({ type: p, id: j, url: _ }) => {
2377
2377
  const O = document.getElementById(j);
@@ -2407,7 +2407,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2407
2407
  height: "100%"
2408
2408
  }
2409
2409
  ),
2410
- f && Ut(
2410
+ d && Ut(
2411
2411
  /* @__PURE__ */ n.jsx("div", { className: "b_", children: /* @__PURE__ */ n.jsx(
2412
2412
  "div",
2413
2413
  {
@@ -2415,7 +2415,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2415
2415
  dangerouslySetInnerHTML: { __html: o }
2416
2416
  }
2417
2417
  ) }),
2418
- f
2418
+ d
2419
2419
  )
2420
2420
  ]
2421
2421
  }
@@ -2425,8 +2425,8 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2425
2425
  size: a = "default",
2426
2426
  label: u,
2427
2427
  className: l,
2428
- onClick: f,
2429
- variant: d = "primary",
2428
+ onClick: d,
2429
+ variant: f = "primary",
2430
2430
  display: h = "auto",
2431
2431
  icon: v,
2432
2432
  disabled: g = !1
@@ -2436,7 +2436,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2436
2436
  ye,
2437
2437
  {
2438
2438
  size: a,
2439
- variant: d,
2439
+ variant: f,
2440
2440
  label: u,
2441
2441
  showTooltip: !0,
2442
2442
  disabled: g,
@@ -2444,13 +2444,13 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2444
2444
  l,
2445
2445
  "blockbite-ui__button",
2446
2446
  "flex items-center justify-center gap-1",
2447
- { "is-primary": d === "primary" },
2448
- { "is-secondary": d === "secondary" },
2449
- { "is-link": d === "link" },
2450
- { "is-tertiary": d === "tertiary" },
2447
+ { "is-primary": f === "primary" },
2448
+ { "is-secondary": f === "secondary" },
2449
+ { "is-link": f === "link" },
2450
+ { "is-tertiary": f === "tertiary" },
2451
2451
  { "is-icon": h === "icon" }
2452
2452
  ),
2453
- onClick: f,
2453
+ onClick: d,
2454
2454
  children: [
2455
2455
  v && /* @__PURE__ */ n.jsx(
2456
2456
  He,
@@ -2465,41 +2465,40 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2465
2465
  }
2466
2466
  );
2467
2467
  }, Oa = ({ children: o, title: a }) => /* @__PURE__ */ n.jsxs(
2468
- te,
2468
+ ne,
2469
2469
  {
2470
2470
  className: U(
2471
2471
  "text-gray-medium my-2 flex items-center gap-1 text-[12px] font-medium",
2472
2472
  U
2473
2473
  ),
2474
2474
  children: [
2475
- a && /* @__PURE__ */ n.jsx(te, { className: "font-medium", children: a }),
2475
+ a && /* @__PURE__ */ n.jsx(ne, { className: "font-medium", children: a }),
2476
2476
  o
2477
2477
  ]
2478
2478
  }
2479
2479
  ), Pa = ({
2480
- id: o = "",
2481
- title: a,
2482
- className: u,
2483
- help: l,
2484
- badge: f
2485
- }) => /* @__PURE__ */ n.jsxs("div", { ...o ? { id: o } : null, className: U("mb-4", u), children: [
2480
+ title: o,
2481
+ className: a,
2482
+ help: u,
2483
+ badge: l,
2484
+ ...d
2485
+ }) => /* @__PURE__ */ n.jsxs("div", { className: U("mb-2", a), ...d, children: [
2486
2486
  /* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-wrap items-center gap-2 justify-between", children: [
2487
- /* @__PURE__ */ n.jsx("small", { className: "shrink-1 text-[12px]", children: a }),
2488
- !!f && /* @__PURE__ */ n.jsx(aa, { className: "text-[.65rem] py-px px-1", children: f }),
2489
- /* @__PURE__ */ n.jsx("span", { className: "h-[1px] w-full bg-easy" })
2487
+ /* @__PURE__ */ n.jsx("span", { className: "shrink-1 text-[11px] font-medium uppercase leading-snug", children: o }),
2488
+ !!l && /* @__PURE__ */ n.jsx(aa, { className: "text-[10px] py-px px-1", children: l })
2490
2489
  ] }),
2491
- l && /* @__PURE__ */ n.jsx("small", { className: "w-full shrink-0 text-[12px]", children: l })
2490
+ u && /* @__PURE__ */ n.jsx("small", { className: "w-full shrink-0 text-[11px]", children: u })
2492
2491
  ] }), Na = ({ label: o, help: a, defaultChecked: u }) => {
2493
- const [l, f] = F(u);
2492
+ const [l, d] = F(u);
2494
2493
  return K(() => {
2495
- f(u);
2496
- }, [u]), /* @__PURE__ */ n.jsx(te, { className: "blockbite-ui__checkbox mx-1 flex items-center gap-2", children: /* @__PURE__ */ n.jsx(
2494
+ d(u);
2495
+ }, [u]), /* @__PURE__ */ n.jsx(ne, { className: "blockbite-ui__checkbox mx-1 flex items-center gap-2", children: /* @__PURE__ */ n.jsx(
2497
2496
  En,
2498
2497
  {
2499
2498
  label: o,
2500
2499
  help: a,
2501
2500
  checked: l,
2502
- onChange: f
2501
+ onChange: d
2503
2502
  }
2504
2503
  ) });
2505
2504
  }, ot = Vn(
@@ -2508,8 +2507,8 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2508
2507
  onChange: a,
2509
2508
  className: u,
2510
2509
  defaultValue: l,
2511
- children: f,
2512
- inputClassName: d,
2510
+ children: d,
2511
+ inputClassName: f,
2513
2512
  readOnly: h,
2514
2513
  placeholder: v,
2515
2514
  onBlur: g,
@@ -2532,7 +2531,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2532
2531
  id: S,
2533
2532
  className: U(
2534
2533
  "border-primary !m-0 !mb-0 h-[32px] !rounded-none border border-opacity-70 focus:outline-none focus:ring-0",
2535
- d
2534
+ f
2536
2535
  ),
2537
2536
  type: p,
2538
2537
  value: l,
@@ -2546,7 +2545,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2546
2545
  ref: T
2547
2546
  }
2548
2547
  ),
2549
- /* @__PURE__ */ n.jsx("span", { children: f }),
2548
+ /* @__PURE__ */ n.jsx("span", { children: d }),
2550
2549
  _ && /* @__PURE__ */ n.jsx("p", { className: "text-primary !m-0 !mb-0 text-xs", children: _ })
2551
2550
  ]
2552
2551
  }
@@ -2559,8 +2558,8 @@ const Aa = ({
2559
2558
  active: a,
2560
2559
  setActive: u,
2561
2560
  onCreate: l,
2562
- onDelete: f,
2563
- onUpdate: d,
2561
+ onDelete: d,
2562
+ onUpdate: f,
2564
2563
  onSwitch: h,
2565
2564
  renderItemActions: v,
2566
2565
  addons: g,
@@ -2576,13 +2575,13 @@ const Aa = ({
2576
2575
  }, Y = () => {
2577
2576
  if (!a || o.length === 0) return;
2578
2577
  const H = o.filter((pe) => pe.id !== a?.id), X = o.findIndex((pe) => pe.id === a?.id), ie = H[X] || H[0];
2579
- f(a?.id), u(ie);
2578
+ d(a?.id), u(ie);
2580
2579
  }, ge = (H) => {
2581
- ae(!0), O.id && d(O.id, { name: H }), setTimeout(() => {
2580
+ ae(!0), O.id && f(O.id, { name: H }), setTimeout(() => {
2582
2581
  T({ id: "", name: "" }), ae(!1);
2583
2582
  }, 500);
2584
2583
  };
2585
- return /* @__PURE__ */ n.jsxs(te, { important: !0, className: p, children: [
2584
+ return /* @__PURE__ */ n.jsxs(ne, { important: !0, className: p, children: [
2586
2585
  /* @__PURE__ */ n.jsxs("ul", { className: "h-[calc(100%-80px)] divide-y overflow-auto", children: [
2587
2586
  g,
2588
2587
  o.length > 0 && /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("ul", { className: "divide-y border-b", children: o.map((H) => /* @__PURE__ */ n.jsxs(
@@ -2612,7 +2611,7 @@ const Aa = ({
2612
2611
  O.id === H.id && !S && /* @__PURE__ */ n.jsx(
2613
2612
  ot,
2614
2613
  {
2615
- className: "absolute left-1 top-0 w-full h-full",
2614
+ className: "absolute left-1 top-0 w-[calc(100%-.5rem)] h-full",
2616
2615
  inputClassName: "w-full",
2617
2616
  defaultValue: O.name,
2618
2617
  onChange: (X) => T({ ...O, name: X }),
@@ -2666,9 +2665,9 @@ const Aa = ({
2666
2665
  className: a,
2667
2666
  children: u,
2668
2667
  show: l,
2669
- message: f
2668
+ message: d
2670
2669
  }) => {
2671
- const [d, h] = F(!1), v = lr(!1), g = lr(null);
2670
+ const [f, h] = F(!1), v = lr(!1), g = lr(null);
2672
2671
  return K(() => {
2673
2672
  v.current = !0;
2674
2673
  }, []), K(() => {
@@ -2678,12 +2677,12 @@ const Aa = ({
2678
2677
  }, o)), () => {
2679
2678
  g.current && clearTimeout(g.current);
2680
2679
  };
2681
- }, [l, o]), d ? /* @__PURE__ */ n.jsx(
2682
- te,
2680
+ }, [l, o]), f ? /* @__PURE__ */ n.jsx(
2681
+ ne,
2683
2682
  {
2684
2683
  important: !0,
2685
2684
  className: U("bb-ui__disappearing-message", a),
2686
- children: /* @__PURE__ */ n.jsx("div", { className: "bb-ui__disappearing-message__content", children: f ?? u })
2685
+ children: /* @__PURE__ */ n.jsx("div", { className: "bb-ui__disappearing-message__content", children: d ?? u })
2687
2686
  }
2688
2687
  ) : null;
2689
2688
  }, oa = ({
@@ -2691,21 +2690,21 @@ const Aa = ({
2691
2690
  className: a,
2692
2691
  defaultValue: u,
2693
2692
  defaultIcon: l = hn,
2694
- onPressedChange: f,
2695
- options: d
2693
+ onPressedChange: d,
2694
+ options: f
2696
2695
  }) => {
2697
2696
  const [h, v] = F(null);
2698
2697
  K(() => {
2699
2698
  v(u);
2700
2699
  }, [u]);
2701
2700
  const g = [
2702
- ...d.map((p) => ({
2701
+ ...f.map((p) => ({
2703
2702
  icon: p.icon,
2704
2703
  label: p.label,
2705
2704
  title: p.label,
2706
2705
  value: p.value,
2707
2706
  onClick: () => {
2708
- v(p.value), f(p.value);
2707
+ v(p.value), d(p.value);
2709
2708
  }
2710
2709
  })),
2711
2710
  {
@@ -2713,7 +2712,7 @@ const Aa = ({
2713
2712
  title: "Reset",
2714
2713
  value: "reset",
2715
2714
  onClick: () => {
2716
- v("reset"), f("reset");
2715
+ v("reset"), d("reset");
2717
2716
  }
2718
2717
  }
2719
2718
  ];
@@ -2725,7 +2724,7 @@ const Aa = ({
2725
2724
  "blockbite-ui__dropdown-picker border-primary border",
2726
2725
  a
2727
2726
  ),
2728
- icon: d.find((p) => p.value === h)?.icon || /* @__PURE__ */ n.jsx(He, { icon: l }),
2727
+ icon: f.find((p) => p.value === h)?.icon || /* @__PURE__ */ n.jsx(He, { icon: l }),
2729
2728
  label: o || "Select"
2730
2729
  }
2731
2730
  );
@@ -2735,9 +2734,9 @@ function Da({
2735
2734
  title: a,
2736
2735
  description: u,
2737
2736
  children: l = null,
2738
- ...f
2737
+ ...d
2739
2738
  }) {
2740
- return /* @__PURE__ */ n.jsx("div", { ...f, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full w-full flex-col items-center justify-center text-center !font-sans", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-sm", children: [
2739
+ return /* @__PURE__ */ n.jsx("div", { ...d, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full w-full flex-col items-center justify-center text-center !font-sans", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-sm", children: [
2741
2740
  o && /* @__PURE__ */ n.jsx("div", { className: "mx-auto !text-gray-400", children: o }),
2742
2741
  /* @__PURE__ */ n.jsx("h3", { className: "text-gray-medium mt-2 !font-sans text-sm font-medium", children: a }),
2743
2742
  /* @__PURE__ */ n.jsx("p", { className: "mt-1 !font-sans text-sm !text-gray-500", children: u }),
@@ -2747,21 +2746,21 @@ function Da({
2747
2746
  function $a({
2748
2747
  children: o
2749
2748
  }) {
2750
- const a = lr(null), [u, l] = F({ x: 100, y: 100 }), [f, d] = F(!1), [h, v] = F({ x: 0, y: 0 });
2749
+ const a = lr(null), [u, l] = F({ x: 100, y: 100 }), [d, f] = F(!1), [h, v] = F({ x: 0, y: 0 });
2751
2750
  K(() => {
2752
2751
  const p = (_) => {
2753
- f && l({
2752
+ d && l({
2754
2753
  x: _.clientX - h.x,
2755
2754
  y: _.clientY - h.y
2756
2755
  });
2757
- }, j = () => d(!1);
2756
+ }, j = () => f(!1);
2758
2757
  return window.addEventListener("mousemove", p), window.addEventListener("mouseup", j), () => {
2759
2758
  window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", j);
2760
2759
  };
2761
- }, [f, h]);
2760
+ }, [d, h]);
2762
2761
  const g = (p) => {
2763
2762
  const j = a.current.getBoundingClientRect();
2764
- v({ x: p.clientX - j.left, y: p.clientY - j.top }), d(!0);
2763
+ v({ x: p.clientX - j.left, y: p.clientY - j.top }), f(!0);
2765
2764
  };
2766
2765
  return /* @__PURE__ */ n.jsx("div", { className: "bb_", children: /* @__PURE__ */ n.jsxs(
2767
2766
  "div",
@@ -2787,7 +2786,7 @@ const Fa = ({
2787
2786
  onValueChange: a,
2788
2787
  url: u
2789
2788
  }) => {
2790
- const [l, f] = F({
2789
+ const [l, d] = F({
2791
2790
  x: 0.5,
2792
2791
  y: 0.5
2793
2792
  });
@@ -2799,38 +2798,38 @@ const Fa = ({
2799
2798
  );
2800
2799
  }, [l]), K(() => {
2801
2800
  if (o.includes("%")) {
2802
- const [d, h] = o.replace("[", "").replace("%]", "").split("_").map((v) => parseFloat(v) / 100);
2803
- f({
2804
- x: d,
2801
+ const [f, h] = o.replace("[", "").replace("%]", "").split("_").map((v) => parseFloat(v) / 100);
2802
+ d({
2803
+ x: f,
2805
2804
  y: h
2806
2805
  });
2807
2806
  }
2808
- }, [o]), /* @__PURE__ */ n.jsx(te, { className: "relative flex flex-col", children: /* @__PURE__ */ n.jsx(
2807
+ }, [o]), /* @__PURE__ */ n.jsx(ne, { className: "relative flex flex-col", children: /* @__PURE__ */ n.jsx(
2809
2808
  kn,
2810
2809
  {
2811
2810
  url: u,
2812
2811
  value: l,
2813
- onDrag: (d) => f(d),
2814
- onChange: (d) => f(d)
2812
+ onDrag: (f) => d(f),
2813
+ onChange: (f) => d(f)
2815
2814
  }
2816
2815
  ) });
2817
2816
  };
2818
2817
  function La(o) {
2819
- const [a, u] = F(""), [l, f] = F([]), [d, h] = F({
2818
+ const [a, u] = F(""), [l, d] = F([]), [f, h] = F({
2820
2819
  url: "",
2821
2820
  title: ""
2822
2821
  });
2823
2822
  return K(() => {
2824
- a !== "" && (f(null), Yn({
2823
+ a !== "" && (d(null), Yn({
2825
2824
  path: `/blockbite/v1/block-helpers/get-links/${a}`
2826
2825
  }).then(
2827
2826
  (v) => {
2828
- v?.length ? f([...v]) : f([]);
2827
+ v?.length ? d([...v]) : d([]);
2829
2828
  }
2830
2829
  ));
2831
2830
  }, [a]), K(() => {
2832
- d.url !== "" && o.parentCallback(d);
2833
- }, [d]), /* @__PURE__ */ n.jsxs(te, { className: "blockbite--editor-linkwrap", children: [
2831
+ f.url !== "" && o.parentCallback(f);
2832
+ }, [f]), /* @__PURE__ */ n.jsxs(ne, { className: "blockbite--editor-linkwrap", children: [
2834
2833
  /* @__PURE__ */ n.jsx(
2835
2834
  rt,
2836
2835
  {
@@ -2858,7 +2857,7 @@ function sa({ links: o, onActiveLink: a }) {
2858
2857
  return /* @__PURE__ */ n.jsx("p", { children: "Loading..." });
2859
2858
  if (o.length === 0)
2860
2859
  return /* @__PURE__ */ n.jsx("p", { children: "No Results" });
2861
- const u = o.map((l) => /* @__PURE__ */ n.jsx(te, { children: /* @__PURE__ */ n.jsxs(
2860
+ const u = o.map((l) => /* @__PURE__ */ n.jsx(ne, { children: /* @__PURE__ */ n.jsxs(
2862
2861
  "span",
2863
2862
  {
2864
2863
  className: "blockbite--editor-link",
@@ -2880,7 +2879,7 @@ function Ma({ mediaProps: o, mediaCallback: a }) {
2880
2879
  "svg",
2881
2880
  "text/plain",
2882
2881
  "application/json"
2883
- ], [l, f] = F({
2882
+ ], [l, d] = F({
2884
2883
  id: null,
2885
2884
  url: "",
2886
2885
  sizes: [],
@@ -2890,9 +2889,9 @@ function Ma({ mediaProps: o, mediaCallback: a }) {
2890
2889
  height: 0
2891
2890
  });
2892
2891
  K(() => {
2893
- o && f({ ...o });
2892
+ o && d({ ...o });
2894
2893
  }, [o]);
2895
- const d = () => {
2894
+ const f = () => {
2896
2895
  a({ ...{
2897
2896
  mediaId: 0,
2898
2897
  mediaUrl: ""
@@ -2954,7 +2953,7 @@ function Ma({ mediaProps: o, mediaCallback: a }) {
2954
2953
  render: ({ open: v }) => /* @__PURE__ */ n.jsx(ye, { onClick: v, children: Me("Replace media", "blockbite") })
2955
2954
  }
2956
2955
  ) }),
2957
- l.id !== 0 && /* @__PURE__ */ n.jsx(Qr, { children: /* @__PURE__ */ n.jsx(ye, { onClick: () => d(), isDestructive: !0, children: Me("Remove media", "blockbite") }) })
2956
+ l.id !== 0 && /* @__PURE__ */ n.jsx(Qr, { children: /* @__PURE__ */ n.jsx(ye, { onClick: () => f(), isDestructive: !0, children: Me("Remove media", "blockbite") }) })
2958
2957
  ] });
2959
2958
  }
2960
2959
  const ia = ({
@@ -2962,8 +2961,8 @@ const ia = ({
2962
2961
  className: a,
2963
2962
  position: u,
2964
2963
  visible: l,
2965
- onClick: f,
2966
- onVisibleChange: d
2964
+ onClick: d,
2965
+ onVisibleChange: f
2967
2966
  }) => {
2968
2967
  const [h, v] = F(!!l);
2969
2968
  K(() => {
@@ -2971,16 +2970,16 @@ const ia = ({
2971
2970
  }, [l]);
2972
2971
  const g = () => {
2973
2972
  const p = !h;
2974
- v(p), d && d(p);
2973
+ v(p), f && f(p);
2975
2974
  };
2976
2975
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: h && /* @__PURE__ */ n.jsx(
2977
2976
  Tn,
2978
2977
  {
2979
2978
  position: u,
2980
2979
  className: "blockbite-ui__popover bb_",
2981
- onClick: f,
2980
+ onClick: d,
2982
2981
  onFocusOutside: () => {
2983
- v(!1), d && d(!1);
2982
+ v(!1), f && f(!1);
2984
2983
  },
2985
2984
  children: /* @__PURE__ */ n.jsx("div", { className: a, children: /* @__PURE__ */ n.jsxs("div", { className: "relative h-full w-full p-4", children: [
2986
2985
  /* @__PURE__ */ n.jsx(
@@ -3001,8 +3000,8 @@ const ia = ({
3001
3000
  label: a,
3002
3001
  min: u = 0,
3003
3002
  max: l = 2e3,
3004
- withInputField: f = !1,
3005
- onValueChange: d,
3003
+ withInputField: d = !1,
3004
+ onValueChange: f,
3006
3005
  gridMode: h = !1,
3007
3006
  showTooltip: v = !1,
3008
3007
  ...g
@@ -3013,9 +3012,9 @@ const ia = ({
3013
3012
  }, [o]);
3014
3013
  function O(T) {
3015
3014
  const S = T * (h ? 16 : 1);
3016
- d(S.toString());
3015
+ f(S.toString());
3017
3016
  }
3018
- return /* @__PURE__ */ n.jsxs(te, { className: "flex min-w-[240px] flex-col", children: [
3017
+ return /* @__PURE__ */ n.jsxs(ne, { className: "flex min-w-[240px] flex-col", children: [
3019
3018
  /* @__PURE__ */ n.jsx(
3020
3019
  On,
3021
3020
  {
@@ -3024,7 +3023,7 @@ const ia = ({
3024
3023
  min: u,
3025
3024
  max: l,
3026
3025
  showTooltip: v,
3027
- withInputField: f,
3026
+ withInputField: d,
3028
3027
  onChange: (T) => {
3029
3028
  _(T), O(T);
3030
3029
  },
@@ -3042,14 +3041,14 @@ const ia = ({
3042
3041
  defaultValue: a,
3043
3042
  onValueChange: u,
3044
3043
  onUnitChange: l,
3045
- inputClassName: f = "w-[75px]"
3044
+ inputClassName: d = "w-[75px]"
3046
3045
  }) => {
3047
- const [d, h] = F(!1), [v, g] = F([]), [p, j] = F(o), [_, O] = F(""), [T, S] = F(a);
3046
+ const [f, h] = F(!1), [v, g] = F([]), [p, j] = F(o), [_, O] = F(""), [T, S] = F(a);
3048
3047
  K(() => {
3049
3048
  o && j(o), O(a.toString());
3050
3049
  }, [o, a]), K(() => {
3051
- !d && p === "arbitrary" && S(_);
3052
- }, [d]);
3050
+ !f && p === "arbitrary" && S(_);
3051
+ }, [f]);
3053
3052
  const ae = (A) => {
3054
3053
  if (A !== "arbitrary" && bb?.codex?.units?.spacing?.[A]) {
3055
3054
  const Y = bb.codex.units.spacing[A];
@@ -3071,10 +3070,10 @@ const ia = ({
3071
3070
  { icon: /* @__PURE__ */ n.jsx(jn, {}), label: "Pixel Units", value: "arbitrary" },
3072
3071
  { icon: /* @__PURE__ */ n.jsx(Cn, {}), label: "Fluid Units", value: "fluid" }
3073
3072
  ];
3074
- return /* @__PURE__ */ n.jsx(te, { className: "relative flex flex-col items-baseline", children: /* @__PURE__ */ n.jsxs(
3073
+ return /* @__PURE__ */ n.jsx("div", { className: "relative flex flex-col items-baseline", children: /* @__PURE__ */ n.jsxs(
3075
3074
  ot,
3076
3075
  {
3077
- inputClassName: f,
3076
+ inputClassName: d,
3078
3077
  defaultValue: (
3079
3078
  // Remove the "b_" prefix for grid units
3080
3079
  p === "grid" ? _.replace("b_", "") : _
@@ -3088,7 +3087,7 @@ const ia = ({
3088
3087
  /* @__PURE__ */ n.jsx(
3089
3088
  ia,
3090
3089
  {
3091
- visible: d,
3090
+ visible: f,
3092
3091
  position: "bottom left",
3093
3092
  className: "w-[300px] bg-white shadow-sm",
3094
3093
  onVisibleChange: h,
@@ -3151,21 +3150,21 @@ const ia = ({
3151
3150
  defaultOpen: a,
3152
3151
  onOpenChange: u,
3153
3152
  title: l,
3154
- className: f
3153
+ className: d
3155
3154
  }) => {
3156
- const [d, h] = F(!1);
3155
+ const [f, h] = F(!1);
3157
3156
  K(() => {
3158
3157
  h(a);
3159
3158
  }, [a]);
3160
3159
  const v = () => h(!0), g = () => h(!1);
3161
3160
  return K(() => {
3162
- u(d);
3163
- }, [d, u]), /* @__PURE__ */ n.jsxs(Bt.Provider, { value: { closeModal: g, openModal: v }, children: [
3161
+ u(f);
3162
+ }, [f, u]), /* @__PURE__ */ n.jsxs(Bt.Provider, { value: { closeModal: g, openModal: v }, children: [
3164
3163
  Rr.map(o, (p) => kr(p) && p.type === da ? p : null),
3165
- d && /* @__PURE__ */ n.jsx(
3164
+ f && /* @__PURE__ */ n.jsx(
3166
3165
  Pn,
3167
3166
  {
3168
- className: U("blockbite-ui__modal bb_", f),
3167
+ className: U("blockbite-ui__modal bb_", d),
3169
3168
  onRequestClose: g,
3170
3169
  title: l,
3171
3170
  children: /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
@@ -3215,8 +3214,8 @@ function pa(o, a) {
3215
3214
  try {
3216
3215
  if (u.cssRules) {
3217
3216
  const l = a.createElement("style");
3218
- Array.from(u.cssRules).forEach((f) => {
3219
- l.appendChild(a.createTextNode(f.cssText));
3217
+ Array.from(u.cssRules).forEach((d) => {
3218
+ l.appendChild(a.createTextNode(d.cssText));
3220
3219
  }), a.head.appendChild(l);
3221
3220
  } else if (u.href) {
3222
3221
  const l = a.createElement("link");
@@ -3224,8 +3223,8 @@ function pa(o, a) {
3224
3223
  }
3225
3224
  } catch (l) {
3226
3225
  if (u.href) {
3227
- const f = a.createElement("link");
3228
- f.rel = "stylesheet", f.href = u.href, a.head.appendChild(f);
3226
+ const d = a.createElement("link");
3227
+ d.rel = "stylesheet", d.href = u.href, a.head.appendChild(d);
3229
3228
  } else
3230
3229
  console.warn("Error copying styles:", l);
3231
3230
  }
@@ -3238,13 +3237,13 @@ const Ba = ({
3238
3237
  }) => {
3239
3238
  const l = Bn(() => document.createElement("div"), []);
3240
3239
  return K(() => {
3241
- const f = o;
3242
- f.document.body.innerHTML = "", f.document.body.appendChild(l), f.document.body.classList.add("bb_"), pa(document, f.document), f.document.title = document.title || "Blockbite Editor";
3243
- const d = () => {
3240
+ const d = o;
3241
+ d.document.body.innerHTML = "", d.document.body.appendChild(l), d.document.body.classList.add("bb_"), pa(document, d.document), d.document.title = document.title || "Blockbite Editor";
3242
+ const f = () => {
3244
3243
  setTimeout(a, 100);
3245
3244
  };
3246
- return f.addEventListener("beforeunload", d), () => {
3247
- f.removeEventListener("beforeunload", d);
3245
+ return d.addEventListener("beforeunload", f), () => {
3246
+ d.removeEventListener("beforeunload", f);
3248
3247
  };
3249
3248
  }, [o]), Ut(u, l);
3250
3249
  }, Ya = ({
@@ -3252,13 +3251,13 @@ const Ba = ({
3252
3251
  status: a = "success",
3253
3252
  className: u
3254
3253
  }) => {
3255
- const [l, f] = F(!0);
3256
- return /* @__PURE__ */ n.jsx(te, { onClick: () => f(!1), children: l && /* @__PURE__ */ n.jsx(
3254
+ const [l, d] = F(!0);
3255
+ return /* @__PURE__ */ n.jsx(ne, { onClick: () => d(!1), children: l && /* @__PURE__ */ n.jsx(
3257
3256
  Nn,
3258
3257
  {
3259
3258
  status: a,
3260
3259
  className: U(u),
3261
- onRemove: () => f(!1),
3260
+ onRemove: () => d(!1),
3262
3261
  children: o
3263
3262
  }
3264
3263
  ) });
@@ -3268,24 +3267,24 @@ const Ba = ({
3268
3267
  onChange: u,
3269
3268
  ...l
3270
3269
  }) => {
3271
- const [f, d] = F(!1);
3270
+ const [d, f] = F(!1);
3272
3271
  return /* @__PURE__ */ n.jsx(
3273
3272
  An,
3274
3273
  {
3275
3274
  label: o,
3276
3275
  value: a,
3277
- type: f ? "text" : "password",
3276
+ type: d ? "text" : "password",
3278
3277
  suffix: /* @__PURE__ */ n.jsx(In, { variant: "control", children: /* @__PURE__ */ n.jsx(
3279
3278
  ye,
3280
3279
  {
3281
3280
  icon: /* @__PURE__ */ n.jsx(zn, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx(
3282
3281
  qn,
3283
3282
  {
3284
- d: f ? "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z" : "M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"
3283
+ d: d ? "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z" : "M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"
3285
3284
  }
3286
3285
  ) }),
3287
3286
  label: "Show password",
3288
- onClick: () => d((h) => !h),
3287
+ onClick: () => f((h) => !h),
3289
3288
  size: "small"
3290
3289
  }
3291
3290
  ) }),
@@ -3298,23 +3297,23 @@ const Ba = ({
3298
3297
  activeId: a,
3299
3298
  onSelect: u,
3300
3299
  className: l
3301
- }) => /* @__PURE__ */ n.jsx(te, { important: !0, className: l, children: /* @__PURE__ */ n.jsx("div", { className: "w-[200px] overflow-y-auto border-r border-gray-200 gap-2", children: o.map((f) => /* @__PURE__ */ n.jsxs(
3300
+ }) => /* @__PURE__ */ n.jsx(ne, { important: !0, className: l, children: /* @__PURE__ */ n.jsx("div", { className: "w-[200px] overflow-y-auto border-r border-gray-200 gap-2", children: o.map((d) => /* @__PURE__ */ n.jsxs(
3302
3301
  "div",
3303
3302
  {
3304
- onClick: () => u(f.id),
3305
- className: `cursor-pointer p-2 border-l-4 flex gap-2 items-center ${a === f.id ? "border-blue-500 bg-gray-100" : "border-transparent"}`,
3303
+ onClick: () => u(d.id),
3304
+ className: `cursor-pointer p-2 border-l-4 flex gap-2 items-center ${a === d.id ? "border-blue-500 bg-gray-100" : "border-transparent"}`,
3306
3305
  children: [
3307
- /* @__PURE__ */ n.jsx("span", { className: "rounded bg-slate-300 w-12 h-12 flex items-center justify-center text-2xl font-bold text-white", children: f.name.charAt(0).toUpperCase() }),
3308
- /* @__PURE__ */ n.jsx("p", { className: "text-sm text-center mt-1", children: f.name })
3306
+ /* @__PURE__ */ n.jsx("span", { className: "rounded bg-slate-300 w-12 h-12 flex items-center justify-center text-2xl font-bold text-white", children: d.name.charAt(0).toUpperCase() }),
3307
+ /* @__PURE__ */ n.jsx("p", { className: "text-sm text-center mt-1", children: d.name })
3309
3308
  ]
3310
3309
  },
3311
- f.id
3310
+ d.id
3312
3311
  )) }) });
3313
3312
  function Ga(o) {
3314
- const { media: a, mediaClass: u } = o, { url: l, alt: f, sizes: d } = a;
3315
- if (d === void 0)
3316
- return /* @__PURE__ */ n.jsx("img", { src: l, alt: f, className: `bf_media ${u}` });
3317
- const { thumbnail: h, medium: v, large: g } = d, p = h || l, j = v || l, _ = g || l;
3313
+ const { media: a, mediaClass: u } = o, { url: l, alt: d, sizes: f } = a;
3314
+ if (f === void 0)
3315
+ return /* @__PURE__ */ n.jsx("img", { src: l, alt: d, className: `bf_media ${u}` });
3316
+ const { thumbnail: h, medium: v, large: g } = f, p = h || l, j = v || l, _ = g || l;
3318
3317
  return /* @__PURE__ */ n.jsxs("picture", { className: "bf_responsive-media", children: [
3319
3318
  p ? /* @__PURE__ */ n.jsx(
3320
3319
  "source",
@@ -3340,11 +3339,11 @@ function Ga(o) {
3340
3339
  className: `bf_media ${u}`
3341
3340
  }
3342
3341
  ) : null,
3343
- j ? /* @__PURE__ */ n.jsx("img", { src: j, alt: f, className: `bf_media ${u}` }) : null
3342
+ j ? /* @__PURE__ */ n.jsx("img", { src: j, alt: d, className: `bf_media ${u}` }) : null
3344
3343
  ] });
3345
3344
  }
3346
3345
  function Ka(o) {
3347
- const { media: a, mediaClass: u } = o, { url: l } = a, f = l;
3346
+ const { media: a, mediaClass: u } = o, { url: l } = a, d = l;
3348
3347
  return /* @__PURE__ */ n.jsx(
3349
3348
  "video",
3350
3349
  {
@@ -3355,7 +3354,7 @@ function Ka(o) {
3355
3354
  autoPlay: !0,
3356
3355
  muted: !0,
3357
3356
  loop: !0,
3358
- children: /* @__PURE__ */ n.jsx("source", { src: f, type: "video/mp4" })
3357
+ children: /* @__PURE__ */ n.jsx("source", { src: d, type: "video/mp4" })
3359
3358
  }
3360
3359
  );
3361
3360
  }
@@ -3364,7 +3363,7 @@ const Ha = ({
3364
3363
  className: a = "",
3365
3364
  height: u = "large"
3366
3365
  }) => /* @__PURE__ */ n.jsx(
3367
- te,
3366
+ ne,
3368
3367
  {
3369
3368
  className: U("scrollbar relative overflow-y-scroll", a, {
3370
3369
  "h-[400px]": u === "large",
@@ -3378,8 +3377,8 @@ const Ha = ({
3378
3377
  className: a,
3379
3378
  defaultValue: u,
3380
3379
  options: l,
3381
- label: f = "",
3382
- emptyLabel: d = "No options available"
3380
+ label: d = "",
3381
+ emptyLabel: f = "No options available"
3383
3382
  }) => {
3384
3383
  const [h, v] = F("");
3385
3384
  K(() => {
@@ -3392,34 +3391,34 @@ const Ha = ({
3392
3391
  l && l.length > 0 && /* @__PURE__ */ n.jsx(
3393
3392
  Dn,
3394
3393
  {
3395
- label: f || "",
3394
+ label: d || "",
3396
3395
  value: h || "",
3397
3396
  onChange: g,
3398
3397
  options: [{ value: "", label: "Select an option" }, ...l]
3399
3398
  }
3400
3399
  ),
3401
- (!l || l?.length === 0) && /* @__PURE__ */ n.jsx("p", { className: "mb-2", children: d })
3400
+ (!l || l?.length === 0) && /* @__PURE__ */ n.jsx("p", { className: "mb-2", children: f })
3402
3401
  ] });
3403
3402
  }, { select: va, dispatch: ma } = wp.data, Xa = ({
3404
3403
  buttonText: o = "Add block"
3405
3404
  }) => {
3406
3405
  const a = () => {
3407
- const u = va("core/block-editor").getSelectedBlock(), { clientId: l, innerBlocks: f } = u, d = f[f.length - 1], h = Gn(
3408
- d.name,
3409
- d.attributes,
3410
- d.innerBlocks
3406
+ const u = va("core/block-editor").getSelectedBlock(), { clientId: l, innerBlocks: d } = u, f = d[d.length - 1], h = Gn(
3407
+ f.name,
3408
+ f.attributes,
3409
+ f.innerBlocks
3411
3410
  );
3412
3411
  ma("core/block-editor").insertBlocks(h, 0, l);
3413
3412
  };
3414
3413
  return /* @__PURE__ */ n.jsx(ye, { variant: "primary", onClick: () => a(), children: o });
3415
3414
  }, Za = ({ children: o, watch: a, className: u }) => {
3416
- const [l, f] = F(0);
3415
+ const [l, d] = F(0);
3417
3416
  return K(() => {
3418
3417
  setTimeout(() => {
3419
- f(1);
3418
+ d(1);
3420
3419
  }, 250);
3421
3420
  }, [a]), /* @__PURE__ */ n.jsx(
3422
- te,
3421
+ ne,
3423
3422
  {
3424
3423
  className: U(
3425
3424
  u,
@@ -3444,29 +3443,29 @@ const Ha = ({
3444
3443
  defaultValue: a,
3445
3444
  value: u,
3446
3445
  onValueChange: l,
3447
- ...f
3446
+ ...d
3448
3447
  }) => {
3449
- const d = u !== void 0, [h, v] = F(a || ""), j = {
3450
- activeTab: d ? u : h,
3448
+ const f = u !== void 0, [h, v] = F(a || ""), j = {
3449
+ activeTab: f ? u : h,
3451
3450
  setActiveTab: (_) => {
3452
- d || v(_), l && l(_);
3451
+ f || v(_), l && l(_);
3453
3452
  }
3454
3453
  };
3455
- return /* @__PURE__ */ n.jsx(st.Provider, { value: j, children: /* @__PURE__ */ n.jsx(te, { important: !0, className: f.className, children: o }) });
3454
+ return /* @__PURE__ */ n.jsx(st.Provider, { value: j, children: /* @__PURE__ */ n.jsx(ne, { important: !0, className: d.className, children: o }) });
3456
3455
  }, ya = ({
3457
3456
  options: o,
3458
3457
  children: a,
3459
3458
  className: u,
3460
3459
  onValueChange: l
3461
3460
  }) => {
3462
- const f = nt(st), d = l || f?.setActiveTab;
3461
+ const d = nt(st), f = l || d?.setActiveTab;
3463
3462
  return /* @__PURE__ */ n.jsx(
3464
3463
  Fn,
3465
3464
  {
3466
3465
  className: U("tabs-list", u),
3467
3466
  tabs: o,
3468
3467
  onSelect: (h) => {
3469
- d(h);
3468
+ f(h);
3470
3469
  },
3471
3470
  children: () => a
3472
3471
  }
@@ -3475,7 +3474,7 @@ const Ha = ({
3475
3474
  value: o,
3476
3475
  children: a,
3477
3476
  className: u
3478
- }) => nt(st)?.activeTab === o ? /* @__PURE__ */ n.jsx(te, { className: u, children: a }) : null, eo = {
3477
+ }) => nt(st)?.activeTab === o ? /* @__PURE__ */ n.jsx(ne, { className: u, children: a }) : null, eo = {
3479
3478
  Wrapper: ha,
3480
3479
  List: ya,
3481
3480
  Content: ba
@@ -3488,7 +3487,7 @@ const Ha = ({
3488
3487
  onChange: o,
3489
3488
  defaultValue: a,
3490
3489
  children: u
3491
- }) => /* @__PURE__ */ n.jsxs(te, { className: "blockbite-ui__text-control-label flex items-center", children: [
3490
+ }) => /* @__PURE__ */ n.jsxs(ne, { className: "blockbite-ui__text-control-label flex items-center", children: [
3492
3491
  /* @__PURE__ */ n.jsxs("span", { className: "outline-b-2 relative block -outline-offset-2 outline-black", children: [
3493
3492
  /* @__PURE__ */ n.jsx(rt, { type: "text", value: a, onChange: o }),
3494
3493
  /* @__PURE__ */ n.jsx(Mt, { className: "absolute right-1 top-2" })
@@ -3501,20 +3500,20 @@ const Ha = ({
3501
3500
  options: a,
3502
3501
  defaultPressed: u,
3503
3502
  display: l = "label",
3504
- label: f = !1,
3505
- onPressedChange: d
3503
+ label: d = !1,
3504
+ onPressedChange: f
3506
3505
  }) => {
3507
3506
  const [h, v] = F(""), g = (p) => {
3508
- d(p);
3507
+ f(p);
3509
3508
  };
3510
3509
  return K(() => {
3511
3510
  v(u);
3512
- }, [u]), /* @__PURE__ */ n.jsx(te, { className: U(o), children: /* @__PURE__ */ n.jsx(
3511
+ }, [u]), /* @__PURE__ */ n.jsx(ne, { className: U(o), children: /* @__PURE__ */ n.jsx(
3513
3512
  Ln,
3514
3513
  {
3515
3514
  isBlock: !0,
3516
3515
  value: h,
3517
- label: typeof f == "string" ? f : "",
3516
+ label: typeof d == "string" ? d : "",
3518
3517
  children: a.map(
3519
3518
  (p) => l === "icon" ? /* @__PURE__ */ n.jsx(
3520
3519
  Mn,
@@ -3545,16 +3544,16 @@ const Ha = ({
3545
3544
  checked: l = !1
3546
3545
  // Default to false if undefined, so it's always controlled
3547
3546
  }) => {
3548
- const [f, d] = F(l);
3547
+ const [d, f] = F(l);
3549
3548
  return K(() => {
3550
- d(l);
3551
- }, [l]), /* @__PURE__ */ n.jsx(te, { className: U(a, "flex items-center gap-2"), children: /* @__PURE__ */ n.jsx(
3549
+ f(l);
3550
+ }, [l]), /* @__PURE__ */ n.jsx(ne, { className: U(a, "flex items-center gap-2"), children: /* @__PURE__ */ n.jsx(
3552
3551
  Un,
3553
3552
  {
3554
- checked: f,
3553
+ checked: d,
3555
3554
  label: o,
3556
3555
  onChange: (h) => {
3557
- d(h), u && u(h);
3556
+ f(h), u && u(h);
3558
3557
  }
3559
3558
  }
3560
3559
  ) });
@@ -3607,7 +3606,7 @@ export {
3607
3606
  to as TextControlLabel,
3608
3607
  no as ToggleGroup,
3609
3608
  ao as ToggleSwitch,
3610
- te as Wrap,
3609
+ ne as Wrap,
3611
3610
  Yt as useModalContext
3612
3611
  };
3613
3612
  //# sourceMappingURL=index.js.map