@blockbite/ui 2.0.19 → 2.0.20

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
@@ -1,6 +1,6 @@
1
- import { Pencil1 as Mt, Plus as vn, Trash as mn, ChevronDown as hn, Cross2 as yn, Tailwind as bn, Percentage as gn, Grid as xn, Desktop as _n, Slider as jn, ColumnSpacing as Cn } from "@blockbite/icons";
2
- import { Button as ye, Dropdown as wn, TextControl as rt, CheckboxControl as En, DropdownMenu as Rn, FocalPointPicker as Sn, PanelRow as kn, Popover as Tn, RangeControl as On, Modal as Pn, Notice as Nn, __experimentalInputControl as An, __experimentalInputControlSuffixWrapper as In, SelectControl as Dn, Spinner as $n, TabPanel as Fn, __experimentalToggleGroupControl as Ln, __experimentalToggleGroupControlOptionIcon as Mn, __experimentalToggleGroupControlOption as Bn, ToggleControl as Wn } from "@wordpress/components";
3
- import { memo as tt, useState as F, useEffect as G, useCallback as Bt, useRef as lr, createPortal as Wt, forwardRef as Un, createContext as Ut, useContext as nt, Children as Rr, isValidElement as Sr, useMemo as Vn } from "@wordpress/element";
1
+ import { Button as ye, Dropdown as pn, TextControl as rt, CheckboxControl as vn, DropdownMenu as mn, FocalPointPicker as hn, PanelRow as yn, Popover as bn, RangeControl as gn, Modal as xn, Notice as _n, __experimentalInputControl as jn, __experimentalInputControlSuffixWrapper as Cn, SelectControl as wn, Spinner as En, TabPanel as Rn, __experimentalToggleGroupControl as Sn, __experimentalToggleGroupControlOptionIcon as kn, __experimentalToggleGroupControlOption as Tn, ToggleControl as On } from "@wordpress/components";
2
+ import { memo as tt, useState as F, useEffect as G, useCallback as Mt, useRef as lr, createPortal as Bt, forwardRef as Pn, createContext as Wt, useContext as nt, Children as Rr, isValidElement as Sr, useMemo as Nn } from "@wordpress/element";
3
+ import { Plus as An, Trash as In, ChevronDown as Dn, Cross2 as $n, Tailwind as Fn, Percentage as Ln, Grid as Mn, Desktop as Bn, Slider as Wn, ColumnSpacing as Un, Pencil1 as Vn } from "@blockbite/icons";
4
4
  import Yn from "@wordpress/api-fetch";
5
5
  import { __ as Me } from "@wordpress/i18n";
6
6
  import { MediaUploadCheck as Qr, MediaUpload as Pt } from "@wordpress/block-editor";
@@ -656,8 +656,8 @@ function Jn() {
656
656
  var S = e, L = b(S), q = c === "" ? mr + $e(S, 0) : c;
657
657
  if (Be(L)) {
658
658
  var Z = "";
659
- q != null && (Z = Ye(q) + "/"), Fe(L, r, Z, "", function(pn) {
660
- return pn;
659
+ q != null && (Z = Ye(q) + "/"), Fe(L, r, Z, "", function(dn) {
660
+ return dn;
661
661
  });
662
662
  } else L != null && (Re(L) && (L.key && (!S || S.key !== L.key) && Ae(L.key), L = Ir(
663
663
  L,
@@ -681,8 +681,8 @@ function Jn() {
681
681
  if (typeof Zr == "function") {
682
682
  var kt = e;
683
683
  Zr === kt.entries && (rr || be("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), rr = !0);
684
- for (var fn = Zr.call(kt), Tt, dn = 0; !(Tt = fn.next()).done; )
685
- Q = Tt.value, re = ce + $e(Q, dn++), se += Fe(Q, r, i, re, b);
684
+ for (var cn = Zr.call(kt), Tt, fn = 0; !(Tt = cn.next()).done; )
685
+ Q = Tt.value, re = ce + $e(Q, fn++), se += Fe(Q, r, i, re, b);
686
686
  } else if (R === "object") {
687
687
  var Ot = String(e);
688
688
  throw new Error("Objects are not valid as a React child (found: " + (Ot === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Ot) + "). If you meant to render a collection of children, use an array instead.");
@@ -993,7 +993,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
993
993
  var e = C();
994
994
  return e.useId();
995
995
  }
996
- function zt(e, r, i) {
996
+ function Yt(e, r, i) {
997
997
  var c = C();
998
998
  return c.useSyncExternalStore(e, r, i);
999
999
  }
@@ -1001,7 +1001,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1001
1001
  function vt() {
1002
1002
  }
1003
1003
  vt.__reactDisabledLog = !0;
1004
- function Ht() {
1004
+ function zt() {
1005
1005
  {
1006
1006
  if (ar === 0) {
1007
1007
  it = console.log, lt = console.info, ut = console.warn, ct = console.error, ft = console.group, dt = console.groupCollapsed, pt = console.groupEnd;
@@ -1024,7 +1024,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1024
1024
  ar++;
1025
1025
  }
1026
1026
  }
1027
- function qt() {
1027
+ function Ht() {
1028
1028
  {
1029
1029
  if (ar--, ar === 0) {
1030
1030
  var e = {
@@ -1075,8 +1075,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1075
1075
  }
1076
1076
  var qr = !1, xr;
1077
1077
  {
1078
- var Gt = typeof WeakMap == "function" ? WeakMap : Map;
1079
- xr = new Gt();
1078
+ var qt = typeof WeakMap == "function" ? WeakMap : Map;
1079
+ xr = new qt();
1080
1080
  }
1081
1081
  function mt(e, r) {
1082
1082
  if (!e || qr)
@@ -1091,7 +1091,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1091
1091
  var b = Error.prepareStackTrace;
1092
1092
  Error.prepareStackTrace = void 0;
1093
1093
  var R;
1094
- R = zr.current, zr.current = null, Ht();
1094
+ R = zr.current, zr.current = null, zt();
1095
1095
  try {
1096
1096
  if (r) {
1097
1097
  var w = function() {
@@ -1144,15 +1144,15 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1144
1144
  }
1145
1145
  }
1146
1146
  } finally {
1147
- qr = !1, zr.current = R, qt(), Error.prepareStackTrace = b;
1147
+ qr = !1, zr.current = R, Ht(), Error.prepareStackTrace = b;
1148
1148
  }
1149
1149
  var re = e ? e.displayName || e.name : "", se = re ? gr(re) : "";
1150
1150
  return typeof e == "function" && xr.set(e, se), se;
1151
1151
  }
1152
- function Kt(e, r, i) {
1152
+ function Gt(e, r, i) {
1153
1153
  return mt(e, !1);
1154
1154
  }
1155
- function Jt(e) {
1155
+ function Kt(e) {
1156
1156
  var r = e.prototype;
1157
1157
  return !!(r && r.isReactComponent);
1158
1158
  }
@@ -1160,7 +1160,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1160
1160
  if (e == null)
1161
1161
  return "";
1162
1162
  if (typeof e == "function")
1163
- return mt(e, Jt(e));
1163
+ return mt(e, Kt(e));
1164
1164
  if (typeof e == "string")
1165
1165
  return gr(e);
1166
1166
  switch (e) {
@@ -1172,7 +1172,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1172
1172
  if (typeof e == "object")
1173
1173
  switch (e.$$typeof) {
1174
1174
  case j:
1175
- return Kt(e.render);
1175
+ return Gt(e.render);
1176
1176
  case T:
1177
1177
  return _r(e.type, r, i);
1178
1178
  case k: {
@@ -1193,7 +1193,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1193
1193
  } else
1194
1194
  yt.setExtraStackFrame(null);
1195
1195
  }
1196
- function Xt(e, r, i, c, b) {
1196
+ function Jt(e, r, i, c, b) {
1197
1197
  {
1198
1198
  var R = Function.call.bind(De);
1199
1199
  for (var w in e)
@@ -1231,7 +1231,7 @@ Check the render method of \`` + e + "`.";
1231
1231
  }
1232
1232
  return "";
1233
1233
  }
1234
- function Zt(e) {
1234
+ function Xt(e) {
1235
1235
  if (e !== void 0) {
1236
1236
  var r = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
1237
1237
  return `
@@ -1240,11 +1240,11 @@ Check your code at ` + r + ":" + i + ".";
1240
1240
  }
1241
1241
  return "";
1242
1242
  }
1243
- function Qt(e) {
1244
- return e != null ? Zt(e.__source) : "";
1243
+ function Zt(e) {
1244
+ return e != null ? Xt(e.__source) : "";
1245
1245
  }
1246
1246
  var gt = {};
1247
- function en(e) {
1247
+ function Qt(e) {
1248
1248
  var r = bt();
1249
1249
  if (!r) {
1250
1250
  var i = typeof e == "string" ? e : e.displayName || e.name;
@@ -1257,7 +1257,7 @@ Check the top-level render call using <` + i + ">.");
1257
1257
  function xt(e, r) {
1258
1258
  if (!(!e._store || e._store.validated || e.key != null)) {
1259
1259
  e._store.validated = !0;
1260
- var i = en(r);
1260
+ var i = Qt(r);
1261
1261
  if (!gt[i]) {
1262
1262
  gt[i] = !0;
1263
1263
  var c = "";
@@ -1298,7 +1298,7 @@ Check the top-level render call using <` + i + ">.");
1298
1298
  return;
1299
1299
  if (i) {
1300
1300
  var c = _e(r);
1301
- Xt(i, e.props, "prop", c, e);
1301
+ Jt(i, e.props, "prop", c, e);
1302
1302
  } else if (r.PropTypes !== void 0 && !Gr) {
1303
1303
  Gr = !0;
1304
1304
  var b = _e(r);
@@ -1307,7 +1307,7 @@ Check the top-level render call using <` + i + ">.");
1307
1307
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1308
1308
  }
1309
1309
  }
1310
- function rn(e) {
1310
+ function en(e) {
1311
1311
  {
1312
1312
  for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
1313
1313
  var c = r[i];
@@ -1324,7 +1324,7 @@ Check the top-level render call using <` + i + ">.");
1324
1324
  if (!c) {
1325
1325
  var b = "";
1326
1326
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1327
- var R = Qt(r);
1327
+ var R = Zt(r);
1328
1328
  R ? b += R : b += bt();
1329
1329
  var w;
1330
1330
  e === null ? w = "null" : Be(e) ? w = "array" : e !== void 0 && e.$$typeof === l ? (w = "<" + (_e(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, b);
@@ -1335,10 +1335,10 @@ 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 === f ? rn(S) : jt(S), S;
1338
+ return e === f ? en(S) : jt(S), S;
1339
1339
  }
1340
1340
  var wt = !1;
1341
- function tn(e) {
1341
+ function rn(e) {
1342
1342
  var r = Ct.bind(null, e);
1343
1343
  return r.type = e, wt || (wt = !0, be("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(r, "type", {
1344
1344
  enumerable: !1,
@@ -1349,12 +1349,12 @@ Check the top-level render call using <` + i + ">.");
1349
1349
  }
1350
1350
  }), r;
1351
1351
  }
1352
- function nn(e, r, i) {
1352
+ function tn(e, r, i) {
1353
1353
  for (var c = Dr.apply(this, arguments), b = 2; b < arguments.length; b++)
1354
1354
  _t(arguments[b], c.type);
1355
1355
  return jt(c), c;
1356
1356
  }
1357
- function an(e, r) {
1357
+ function nn(e, r) {
1358
1358
  var i = K.transition;
1359
1359
  K.transition = {};
1360
1360
  var c = K.transition;
@@ -1369,7 +1369,7 @@ Check the top-level render call using <` + i + ">.");
1369
1369
  }
1370
1370
  }
1371
1371
  var Et = !1, Cr = null;
1372
- function on(e) {
1372
+ function an(e) {
1373
1373
  if (Cr === null)
1374
1374
  try {
1375
1375
  var r = ("require" + Math.random()).slice(0, 7), i = o && o[r];
@@ -1443,7 +1443,7 @@ Check the top-level render call using <` + i + ">.");
1443
1443
  var c = X.current;
1444
1444
  if (c !== null)
1445
1445
  try {
1446
- Xr(c), on(function() {
1446
+ Xr(c), an(function() {
1447
1447
  c.length === 0 ? (X.current = null, r(e)) : Kr(e, r, i);
1448
1448
  });
1449
1449
  } catch (b) {
@@ -1473,14 +1473,14 @@ Check the top-level render call using <` + i + ">.");
1473
1473
  }
1474
1474
  }
1475
1475
  }
1476
- var sn = Ct, ln = nn, un = tn, cn = {
1476
+ var on = Ct, sn = tn, ln = rn, un = {
1477
1477
  map: ze,
1478
1478
  forEach: Fr,
1479
1479
  count: hr,
1480
1480
  toArray: yr,
1481
1481
  only: br
1482
1482
  };
1483
- a.Children = cn, a.Component = $, a.Fragment = f, a.Profiler = v, a.PureComponent = U, a.StrictMode = h, a.Suspense = _, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = le, a.act = St, a.cloneElement = ln, a.createContext = Lr, a.createElement = sn, a.createFactory = un, a.createRef = Or, a.forwardRef = Ur, a.isValidElement = Re, a.lazy = Wr, a.memo = x, a.startTransition = an, a.unstable_act = St, a.useCallback = he, a.useContext = B, a.useDebugValue = fe, a.useDeferredValue = Vr, a.useEffect = ue, a.useId = Yr, a.useImperativeHandle = we, a.useInsertionEffect = ee, a.useLayoutEffect = te, a.useMemo = ke, a.useReducer = D, a.useRef = P, a.useState = V, 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 = un, a.Component = $, a.Fragment = f, a.Profiler = v, a.PureComponent = U, a.StrictMode = h, a.Suspense = _, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = le, a.act = St, a.cloneElement = sn, a.createContext = Lr, a.createElement = on, a.createFactory = ln, a.createRef = Or, a.forwardRef = Ur, a.isValidElement = Re, a.lazy = Wr, a.memo = x, a.startTransition = nn, a.unstable_act = St, a.useCallback = he, a.useContext = B, a.useDebugValue = fe, a.useDeferredValue = Vr, a.useEffect = ue, a.useId = Yr, a.useImperativeHandle = we, a.useInsertionEffect = ee, a.useLayoutEffect = te, a.useMemo = ke, a.useReducer = D, a.useRef = P, a.useState = V, a.useSyncExternalStore = Yt, 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
  }
@@ -2182,7 +2182,7 @@ const W = /* @__PURE__ */ Gn(ra), ne = ({
2182
2182
  G(() => {
2183
2183
  _(d === u);
2184
2184
  }, [d]);
2185
- const O = Bt(() => {
2185
+ const O = Mt(() => {
2186
2186
  _((T) => !T), f(u);
2187
2187
  }, [j, f]);
2188
2188
  return /* @__PURE__ */ n.jsxs(
@@ -2222,7 +2222,7 @@ const W = /* @__PURE__ */ Gn(ra), ne = ({
2222
2222
  G(() => {
2223
2223
  _(a);
2224
2224
  }, [a]);
2225
- const O = Bt(
2225
+ const O = Mt(
2226
2226
  (k) => {
2227
2227
  const ae = u && j === k ? "" : k;
2228
2228
  _(ae), p?.(ae);
@@ -2282,7 +2282,7 @@ function Sa({
2282
2282
  }, [d, a]), G(() => {
2283
2283
  f(""), v(a);
2284
2284
  }, [o, a]), /* @__PURE__ */ n.jsx(
2285
- wn,
2285
+ pn,
2286
2286
  {
2287
2287
  className: "option-panel-dropdown",
2288
2288
  contentClassName: "option-panel-dropdown-content",
@@ -2294,8 +2294,8 @@ function Sa({
2294
2294
  size: "small",
2295
2295
  onClick: p,
2296
2296
  "aria-expanded": g,
2297
- children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1 !bg-transparent !p-0 !text-[11px] !text-current", children: [
2298
- u && /* @__PURE__ */ n.jsx(
2297
+ children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1.5 !bg-transparent !p-0 !text-[11px] !text-current", children: [
2298
+ u && !!o && /* @__PURE__ */ n.jsx(
2299
2299
  "div",
2300
2300
  {
2301
2301
  className: W(
@@ -2303,8 +2303,7 @@ function Sa({
2303
2303
  )
2304
2304
  }
2305
2305
  ),
2306
- /* @__PURE__ */ n.jsx("span", { children: o || "Select option…" }),
2307
- /* @__PURE__ */ n.jsx(Mt, {})
2306
+ /* @__PURE__ */ n.jsx("span", { children: o || "Select option…" })
2308
2307
  ] })
2309
2308
  }
2310
2309
  ) }),
@@ -2320,7 +2319,7 @@ function Sa({
2320
2319
  autoComplete: "off"
2321
2320
  }
2322
2321
  ),
2323
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-1 !bg-transparent !p-0 !pt-2", children: [
2322
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-1 !bg-transparent p-0 !pt-2", children: [
2324
2323
  h.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "!text-gray-medium col-span-2 pb-2 text-center !text-[11px]", children: "No options found." }),
2325
2324
  h.map((g, p) => /* @__PURE__ */ n.jsxs(
2326
2325
  ta,
@@ -2409,7 +2408,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2409
2408
  height: "100%"
2410
2409
  }
2411
2410
  ),
2412
- d && Wt(
2411
+ d && Bt(
2413
2412
  /* @__PURE__ */ n.jsx("div", { className: "b_", children: /* @__PURE__ */ n.jsx(
2414
2413
  "div",
2415
2414
  {
@@ -2495,7 +2494,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2495
2494
  return G(() => {
2496
2495
  d(u);
2497
2496
  }, [u]), /* @__PURE__ */ n.jsx(ne, { className: "blockbite-ui__checkbox mx-1 flex items-center gap-2", children: /* @__PURE__ */ n.jsx(
2498
- En,
2497
+ vn,
2499
2498
  {
2500
2499
  label: o,
2501
2500
  help: a,
@@ -2503,7 +2502,7 @@ const aa = ({ children: o, className: a, label: u, onClick: l }) => /* @__PURE__
2503
2502
  onChange: d
2504
2503
  }
2505
2504
  ) });
2506
- }, ot = Un(
2505
+ }, ot = Pn(
2507
2506
  ({
2508
2507
  onClick: o,
2509
2508
  onChange: a,
@@ -2641,7 +2640,7 @@ const Aa = ({
2641
2640
  ye,
2642
2641
  {
2643
2642
  onClick: A,
2644
- icon: /* @__PURE__ */ n.jsx(vn, { className: "h-4 w-4" }),
2643
+ icon: /* @__PURE__ */ n.jsx(An, { className: "h-4 w-4" }),
2645
2644
  variant: "tertiary",
2646
2645
  size: "compact",
2647
2646
  children: "Add"
@@ -2651,7 +2650,7 @@ const Aa = ({
2651
2650
  ye,
2652
2651
  {
2653
2652
  onClick: Y,
2654
- icon: /* @__PURE__ */ n.jsx(mn, { className: "h-4 w-4" }),
2653
+ icon: /* @__PURE__ */ n.jsx(In, { className: "h-4 w-4" }),
2655
2654
  variant: "tertiary",
2656
2655
  size: "compact",
2657
2656
  disabled: !a || o.length === 0,
@@ -2691,7 +2690,7 @@ const Aa = ({
2691
2690
  label: o,
2692
2691
  className: a,
2693
2692
  defaultValue: u,
2694
- defaultIcon: l = hn,
2693
+ defaultIcon: l = Dn,
2695
2694
  onPressedChange: d,
2696
2695
  options: f
2697
2696
  }) => {
@@ -2719,7 +2718,7 @@ const Aa = ({
2719
2718
  }
2720
2719
  ];
2721
2720
  return /* @__PURE__ */ n.jsx(
2722
- Rn,
2721
+ mn,
2723
2722
  {
2724
2723
  controls: g,
2725
2724
  className: W(
@@ -2807,7 +2806,7 @@ const Fa = ({
2807
2806
  });
2808
2807
  }
2809
2808
  }, [o]), /* @__PURE__ */ n.jsx(ne, { className: "relative flex flex-col", children: /* @__PURE__ */ n.jsx(
2810
- Sn,
2809
+ hn,
2811
2810
  {
2812
2811
  url: u,
2813
2812
  value: l,
@@ -2921,7 +2920,7 @@ function Ma({ mediaProps: o, mediaCallback: a }) {
2921
2920
  };
2922
2921
  a({ ...p });
2923
2922
  };
2924
- return /* @__PURE__ */ n.jsxs(kn, { children: [
2923
+ return /* @__PURE__ */ n.jsxs(yn, { children: [
2925
2924
  l.id !== null && /* @__PURE__ */ n.jsx(Qr, { children: /* @__PURE__ */ n.jsx(
2926
2925
  Pt,
2927
2926
  {
@@ -2977,7 +2976,7 @@ const ia = ({
2977
2976
  v(p), f && f(p);
2978
2977
  };
2979
2978
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: h && /* @__PURE__ */ n.jsx(
2980
- Tn,
2979
+ bn,
2981
2980
  {
2982
2981
  position: u,
2983
2982
  className: "blockbite-ui__popover bb_",
@@ -2992,7 +2991,7 @@ const ia = ({
2992
2991
  onClick: g,
2993
2992
  size: "small",
2994
2993
  className: "close-button absolute right-0 top-0",
2995
- children: /* @__PURE__ */ n.jsx(yn, {})
2994
+ children: /* @__PURE__ */ n.jsx($n, {})
2996
2995
  }
2997
2996
  ),
2998
2997
  o
@@ -3020,7 +3019,7 @@ const ia = ({
3020
3019
  }
3021
3020
  return /* @__PURE__ */ n.jsxs(ne, { className: "flex min-w-[240px] flex-col", children: [
3022
3021
  /* @__PURE__ */ n.jsx(
3023
- On,
3022
+ gn,
3024
3023
  {
3025
3024
  __next40pxDefaultSize: !0,
3026
3025
  __nextHasNoMarginBottom: !0,
@@ -3066,15 +3065,15 @@ const ia = ({
3066
3065
  h(!0);
3067
3066
  }, de = [
3068
3067
  {
3069
- icon: /* @__PURE__ */ n.jsx(bn, {}),
3068
+ icon: /* @__PURE__ */ n.jsx(Fn, {}),
3070
3069
  label: "Tailwind CSS Units",
3071
3070
  value: "native"
3072
3071
  },
3073
- { icon: /* @__PURE__ */ n.jsx(gn, {}), label: "Percentage Units", value: "percent" },
3074
- { icon: /* @__PURE__ */ n.jsx(xn, {}), label: "Grid Units", value: "grid" },
3075
- { icon: /* @__PURE__ */ n.jsx(_n, {}), label: "Screen Units", value: "screen" },
3076
- { icon: /* @__PURE__ */ n.jsx(jn, {}), label: "Pixel Units", value: "arbitrary" },
3077
- { icon: /* @__PURE__ */ n.jsx(Cn, {}), label: "Fluid Units", value: "fluid" }
3072
+ { icon: /* @__PURE__ */ n.jsx(Ln, {}), label: "Percentage Units", value: "percent" },
3073
+ { icon: /* @__PURE__ */ n.jsx(Mn, {}), label: "Grid Units", value: "grid" },
3074
+ { icon: /* @__PURE__ */ n.jsx(Bn, {}), label: "Screen Units", value: "screen" },
3075
+ { icon: /* @__PURE__ */ n.jsx(Wn, {}), label: "Pixel Units", value: "arbitrary" },
3076
+ { icon: /* @__PURE__ */ n.jsx(Un, {}), label: "Fluid Units", value: "fluid" }
3078
3077
  ];
3079
3078
  return /* @__PURE__ */ n.jsx("div", { className: "relative flex flex-col items-baseline", children: /* @__PURE__ */ n.jsxs(
3080
3079
  ot,
@@ -3146,8 +3145,8 @@ const ia = ({
3146
3145
  ]
3147
3146
  }
3148
3147
  ) });
3149
- }, Vt = Ut(null), Yt = () => {
3150
- const o = nt(Vt);
3148
+ }, Ut = Wt(null), Vt = () => {
3149
+ const o = nt(Ut);
3151
3150
  if (!o)
3152
3151
  throw new Error("useModalContext must be used within a ModalProvider");
3153
3152
  return o;
@@ -3165,10 +3164,10 @@ const ia = ({
3165
3164
  const v = () => h(!0), g = () => h(!1);
3166
3165
  return G(() => {
3167
3166
  u(f);
3168
- }, [f, u]), /* @__PURE__ */ n.jsxs(Vt.Provider, { value: { closeModal: g, openModal: v }, children: [
3167
+ }, [f, u]), /* @__PURE__ */ n.jsxs(Ut.Provider, { value: { closeModal: g, openModal: v }, children: [
3169
3168
  Rr.map(o, (p) => Sr(p) && p.type === da ? p : null),
3170
3169
  f && /* @__PURE__ */ n.jsx(
3171
- Pn,
3170
+ xn,
3172
3171
  {
3173
3172
  className: W("blockbite-ui__modal bb_", d),
3174
3173
  onRequestClose: g,
@@ -3209,10 +3208,10 @@ const ia = ({
3209
3208
  children: o
3210
3209
  }
3211
3210
  ), Ua = ({ children: o }) => {
3212
- const { closeModal: a } = Yt();
3211
+ const { closeModal: a } = Vt();
3213
3212
  return /* @__PURE__ */ n.jsx("div", { onClick: a, className: "cursor-pointer", children: o });
3214
3213
  }, da = ({ children: o }) => {
3215
- const { openModal: a } = Yt();
3214
+ const { openModal: a } = Vt();
3216
3215
  return /* @__PURE__ */ n.jsx("div", { onClick: a, className: "cursor-pointer", children: o });
3217
3216
  };
3218
3217
  function pa(o, a) {
@@ -3241,7 +3240,7 @@ const Va = ({
3241
3240
  onClose: a,
3242
3241
  children: u
3243
3242
  }) => {
3244
- const l = Vn(() => document.createElement("div"), []);
3243
+ const l = Nn(() => document.createElement("div"), []);
3245
3244
  return G(() => {
3246
3245
  const d = o;
3247
3246
  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";
@@ -3251,7 +3250,7 @@ const Va = ({
3251
3250
  return d.addEventListener("beforeunload", f), () => {
3252
3251
  d.removeEventListener("beforeunload", f);
3253
3252
  };
3254
- }, [o]), Wt(u, l);
3253
+ }, [o]), Bt(u, l);
3255
3254
  }, Ya = ({
3256
3255
  children: o,
3257
3256
  status: a = "success",
@@ -3259,7 +3258,7 @@ const Va = ({
3259
3258
  }) => {
3260
3259
  const [l, d] = F(!0);
3261
3260
  return /* @__PURE__ */ n.jsx(ne, { onClick: () => d(!1), children: l && /* @__PURE__ */ n.jsx(
3262
- Nn,
3261
+ _n,
3263
3262
  {
3264
3263
  status: a,
3265
3264
  className: W(u),
@@ -3275,12 +3274,12 @@ const Va = ({
3275
3274
  }) => {
3276
3275
  const [d, f] = F(!1);
3277
3276
  return /* @__PURE__ */ n.jsx(
3278
- An,
3277
+ jn,
3279
3278
  {
3280
3279
  label: o,
3281
3280
  value: a,
3282
3281
  type: d ? "text" : "password",
3283
- suffix: /* @__PURE__ */ n.jsx(In, { variant: "control", children: /* @__PURE__ */ n.jsx(
3282
+ suffix: /* @__PURE__ */ n.jsx(Cn, { variant: "control", children: /* @__PURE__ */ n.jsx(
3284
3283
  ye,
3285
3284
  {
3286
3285
  icon: /* @__PURE__ */ n.jsx(zn, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx(
@@ -3395,7 +3394,7 @@ const Ka = ({
3395
3394
  };
3396
3395
  return /* @__PURE__ */ n.jsxs("div", { className: a, children: [
3397
3396
  l && l.length > 0 && /* @__PURE__ */ n.jsx(
3398
- Dn,
3397
+ wn,
3399
3398
  {
3400
3399
  __next40pxDefaultSize: !0,
3401
3400
  __nextHasNoMarginBottom: !0,
@@ -3445,8 +3444,8 @@ const Ka = ({
3445
3444
  setTimeout(() => {
3446
3445
  l(!1);
3447
3446
  }, 500), a && l(!0);
3448
- }, [u, a]), u && /* @__PURE__ */ n.jsx($n, { className: W(o) });
3449
- }, st = Ut(null), ha = ({
3447
+ }, [u, a]), u && /* @__PURE__ */ n.jsx(En, { className: W(o) });
3448
+ }, st = Wt(null), ha = ({
3450
3449
  children: o,
3451
3450
  defaultValue: a,
3452
3451
  value: u,
@@ -3468,7 +3467,7 @@ const Ka = ({
3468
3467
  }) => {
3469
3468
  const d = nt(st), f = l || d?.setActiveTab;
3470
3469
  return /* @__PURE__ */ n.jsx(
3471
- Fn,
3470
+ Rn,
3472
3471
  {
3473
3472
  className: W("tabs-list", u),
3474
3473
  tabs: o,
@@ -3507,7 +3506,7 @@ const Ka = ({
3507
3506
  onChange: o
3508
3507
  }
3509
3508
  ),
3510
- /* @__PURE__ */ n.jsx(Mt, { className: "absolute right-1 top-2" })
3509
+ /* @__PURE__ */ n.jsx(Vn, { className: "absolute right-1 top-2" })
3511
3510
  ] }),
3512
3511
  " ",
3513
3512
  u
@@ -3526,7 +3525,7 @@ const Ka = ({
3526
3525
  return G(() => {
3527
3526
  v(u);
3528
3527
  }, [u]), /* @__PURE__ */ n.jsx(ne, { className: W(o), children: /* @__PURE__ */ n.jsx(
3529
- Ln,
3528
+ Sn,
3530
3529
  {
3531
3530
  __next40pxDefaultSize: !0,
3532
3531
  __nextHasNoMarginBottom: !0,
@@ -3535,7 +3534,7 @@ const Ka = ({
3535
3534
  label: typeof d == "string" ? d : "",
3536
3535
  children: a.map(
3537
3536
  (p) => l === "icon" ? /* @__PURE__ */ n.jsx(
3538
- Mn,
3537
+ kn,
3539
3538
  {
3540
3539
  icon: p.icon,
3541
3540
  label: p.label,
@@ -3544,7 +3543,7 @@ const Ka = ({
3544
3543
  },
3545
3544
  `ToggleGroupControlIcon-${p.value}`
3546
3545
  ) : /* @__PURE__ */ n.jsx(
3547
- Bn,
3546
+ Tn,
3548
3547
  {
3549
3548
  value: p.value,
3550
3549
  label: p.label,
@@ -3567,7 +3566,7 @@ const Ka = ({
3567
3566
  return G(() => {
3568
3567
  f(l);
3569
3568
  }, [l]), /* @__PURE__ */ n.jsx(ne, { className: W(a, "flex items-center gap-2"), children: /* @__PURE__ */ n.jsx(
3570
- Wn,
3569
+ On,
3571
3570
  {
3572
3571
  checked: d,
3573
3572
  label: o,
@@ -3626,6 +3625,6 @@ export {
3626
3625
  no as ToggleGroup,
3627
3626
  ao as ToggleSwitch,
3628
3627
  ne as Wrap,
3629
- Yt as useModalContext
3628
+ Vt as useModalContext
3630
3629
  };
3631
3630
  //# sourceMappingURL=index.js.map