@arkyn/components 1.4.6 → 1.4.7

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/bundle.js CHANGED
@@ -6969,14 +6969,14 @@ const du = /* @__PURE__ */ Ra(Of), Zm = du.default || du, Ki = (t) => {
6969
6969
  }, YO = (t) => {
6970
6970
  const e = Zm(t);
6971
6971
  return Array.isArray(e) ? e.map((r) => typeof r == "string" ? { text: r } : Ki(r)) : typeof e == "string" ? [{ text: e }] : [Ki(e)];
6972
- };
6972
+ }, XO = (t) => /<\/?[a-z][\s\S]*>/i.test(t);
6973
6973
  function Uf(t, e, r) {
6974
6974
  if (!t) return /* @__PURE__ */ y.jsx(y.Fragment, {});
6975
6975
  if (typeof t == "string") return /* @__PURE__ */ y.jsx("p", { className: r, children: t });
6976
6976
  const n = t;
6977
6977
  return /* @__PURE__ */ y.jsx("p", { className: r, children: /* @__PURE__ */ y.jsx(n, { color: "var(--secondary-600)", size: e, strokeWidth: 2.5 }) });
6978
6978
  }
6979
- function XO(t) {
6979
+ function JO(t) {
6980
6980
  const {
6981
6981
  variant: e = "ghost",
6982
6982
  scheme: r = "primary",
@@ -6993,11 +6993,11 @@ function XO(t) {
6993
6993
  ha(c, a)
6994
6994
  ] });
6995
6995
  }
6996
- function JO(t) {
6996
+ function QO(t) {
6997
6997
  const { className: e, ...r } = t, n = `arkynCard ${e}`;
6998
6998
  return /* @__PURE__ */ y.jsx("div", { className: n.trim(), ...r });
6999
6999
  }
7000
- function QO(t) {
7000
+ function ex(t) {
7001
7001
  const {
7002
7002
  className: e,
7003
7003
  orientation: r = "horizontal",
@@ -7005,11 +7005,11 @@ function QO(t) {
7005
7005
  } = t, a = `arkynDivider ${r} ${e}`;
7006
7006
  return /* @__PURE__ */ y.jsx("div", { className: a.trim(), ...n });
7007
7007
  }
7008
- function ex(t) {
7008
+ function tx(t) {
7009
7009
  const { className: e, ...r } = t, n = `arkynSkeleton ${e}`;
7010
7010
  return /* @__PURE__ */ y.jsx("aside", { className: n.trim(), ...r });
7011
7011
  }
7012
- function tx(t) {
7012
+ function rx(t) {
7013
7013
  const {
7014
7014
  emptyMessage: e = "Nenhum dado adicionado.",
7015
7015
  className: r,
@@ -7018,22 +7018,22 @@ function tx(t) {
7018
7018
  } = t, i = `arkynTableBody ${r}`, s = Nt.count(n) === 0;
7019
7019
  return /* @__PURE__ */ y.jsx("tbody", { className: i.trim(), ...a, children: s ? /* @__PURE__ */ y.jsx("tr", { className: "arkynTableBodyEmptyLine", children: /* @__PURE__ */ y.jsx("td", { colSpan: 100, children: /* @__PURE__ */ y.jsx("div", { children: e }) }) }) : n });
7020
7020
  }
7021
- function rx(t) {
7021
+ function nx(t) {
7022
7022
  const { className: e, children: r, ...n } = t, a = `arkynTableCaption ${e}`;
7023
7023
  return /* @__PURE__ */ y.jsx("caption", { className: a.trim(), ...n, children: /* @__PURE__ */ y.jsx("div", { className: "arkynTableCaptionContent", children: r }) });
7024
7024
  }
7025
- function nx(t) {
7025
+ function ax(t) {
7026
7026
  const { children: e, className: r, ...n } = t, a = `arkynTableContainer ${r}`;
7027
7027
  return /* @__PURE__ */ y.jsx("div", { className: a.trim(), ...n, children: /* @__PURE__ */ y.jsx("table", { children: e }) });
7028
7028
  }
7029
- function ax(t) {
7029
+ function ix(t) {
7030
7030
  const { className: e, children: r, ...n } = t, a = `arkynTableFooter ${e}`;
7031
7031
  return /* @__PURE__ */ y.jsxs("tfoot", { className: a.trim(), ...n, children: [
7032
7032
  /* @__PURE__ */ y.jsx("tr", { className: "spacingRow" }),
7033
7033
  /* @__PURE__ */ y.jsx("tr", { children: /* @__PURE__ */ y.jsx("th", { colSpan: 100, children: /* @__PURE__ */ y.jsx("div", { className: "arkynTableFooterContent", children: r }) }) })
7034
7034
  ] });
7035
7035
  }
7036
- function ix(t) {
7036
+ function sx(t) {
7037
7037
  const { className: e, children: r, ...n } = t, a = `arkynTableHeader ${e}`;
7038
7038
  return /* @__PURE__ */ y.jsxs("thead", { className: a.trim(), ...n, children: [
7039
7039
  /* @__PURE__ */ y.jsx("tr", { children: r }),
@@ -7110,7 +7110,7 @@ function pu(t) {
7110
7110
  function Dt() {
7111
7111
  return Se(qf);
7112
7112
  }
7113
- function sx(t) {
7113
+ function ox(t) {
7114
7114
  const {
7115
7115
  name: e,
7116
7116
  className: r = "",
@@ -7149,7 +7149,7 @@ function sx(t) {
7149
7149
  }
7150
7150
  );
7151
7151
  }
7152
- function ox(t) {
7152
+ function ux(t) {
7153
7153
  const { children: e, className: r, ...n } = t, a = `arkynFormError ${r}`, { error: i } = Dt();
7154
7154
  return e ? /* @__PURE__ */ y.jsx("strong", { className: a.trim(), ...n, children: e }) : i ? /* @__PURE__ */ y.jsx("strong", { className: a.trim(), ...n, children: i }) : /* @__PURE__ */ y.jsx(y.Fragment, {});
7155
7155
  }
@@ -7944,7 +7944,7 @@ function Dy(t) {
7944
7944
  }
7945
7945
  ) : /* @__PURE__ */ y.jsx(y.Fragment, {});
7946
7946
  }
7947
- function ux(t) {
7947
+ function lx(t) {
7948
7948
  const {
7949
7949
  name: e,
7950
7950
  options: r,
@@ -8068,7 +8068,7 @@ const Yf = st({});
8068
8068
  function by() {
8069
8069
  return Se(Yf);
8070
8070
  }
8071
- function lx(t) {
8071
+ function cx(t) {
8072
8072
  const {
8073
8073
  defaultValue: e,
8074
8074
  name: r,
@@ -8104,7 +8104,7 @@ function lx(t) {
8104
8104
  }
8105
8105
  );
8106
8106
  }
8107
- function cx(t) {
8107
+ function fx(t) {
8108
8108
  const {
8109
8109
  value: e,
8110
8110
  size: r,
@@ -11941,7 +11941,7 @@ const rl = {
11941
11941
  children: [{ text: "" }]
11942
11942
  }
11943
11943
  ];
11944
- function fx(t) {
11944
+ function dx(t) {
11945
11945
  const {
11946
11946
  name: e,
11947
11947
  hiddenButtons: r,
@@ -11995,7 +11995,7 @@ function fx(t) {
11995
11995
  Y("right") && /* @__PURE__ */ y.jsx(yr, { format: "right", icon: Qp }),
11996
11996
  Y("center") && /* @__PURE__ */ y.jsx(yr, { format: "center", icon: eh }),
11997
11997
  Y("justify") && /* @__PURE__ */ y.jsx(yr, { format: "justify", icon: th }),
11998
- n && /* @__PURE__ */ y.jsx(VD, { ...n })
11998
+ n && Y("image") && /* @__PURE__ */ y.jsx(VD, { ...n })
11999
11999
  ] }),
12000
12000
  /* @__PURE__ */ y.jsx(
12001
12001
  BD,
@@ -12059,7 +12059,7 @@ function ZD(t, e) {
12059
12059
  ...f
12060
12060
  };
12061
12061
  }
12062
- function dx(t) {
12062
+ function px(t) {
12063
12063
  var w;
12064
12064
  const [e, r] = k(""), [n, a] = k(!1), { inputRef: i, id: s, error: o } = Dt(), u = Re(null), l = i || u, c = t.isError || !!o, {
12065
12065
  disabled: d,
@@ -12183,7 +12183,7 @@ function dx(t) {
12183
12183
  n && /* @__PURE__ */ y.jsx("aside", { className: "arkyn_select_overlay", onClick: G })
12184
12184
  ] });
12185
12185
  }
12186
- function px(t) {
12186
+ function hx(t) {
12187
12187
  const {
12188
12188
  size: e = "lg",
12189
12189
  defaultChecked: r = !1,
@@ -12211,7 +12211,7 @@ function px(t) {
12211
12211
  }
12212
12212
  ) });
12213
12213
  }
12214
- function hx(t) {
12214
+ function vx(t) {
12215
12215
  const {
12216
12216
  variant: e = "solid",
12217
12217
  size: r = "md",
@@ -12255,11 +12255,11 @@ function hx(t) {
12255
12255
  }
12256
12256
  );
12257
12257
  }
12258
- function vx(t) {
12258
+ function gx(t) {
12259
12259
  const { className: e = "", ...r } = t, n = `arkynBreadcrumbContainer ${e}`;
12260
12260
  return /* @__PURE__ */ y.jsx("nav", { className: n, ...r });
12261
12261
  }
12262
- function gx(t) {
12262
+ function mx(t) {
12263
12263
  const { pathname: e } = ys(), {
12264
12264
  className: r = "",
12265
12265
  disabled: n = !1,
@@ -12293,7 +12293,7 @@ function Nd(t = "") {
12293
12293
  function nl(t, e) {
12294
12294
  return [...new Array(e - t)].map((r, n) => t + n + 1).filter((r) => r > 0);
12295
12295
  }
12296
- function mx(t) {
12296
+ function yx(t) {
12297
12297
  const {
12298
12298
  scope: e,
12299
12299
  totalCountRegisters: r,
@@ -12373,7 +12373,7 @@ function mx(t) {
12373
12373
  ] });
12374
12374
  }
12375
12375
  const _d = st({});
12376
- function yx(t) {
12376
+ function Cx(t) {
12377
12377
  const {
12378
12378
  isVisibled: e,
12379
12379
  makeInvisible: r,
@@ -12407,7 +12407,7 @@ function yx(t) {
12407
12407
  )
12408
12408
  ] }) }) });
12409
12409
  }
12410
- function Cx(t) {
12410
+ function Dx(t) {
12411
12411
  const {
12412
12412
  showCloseButton: e = !0,
12413
12413
  className: r,
@@ -12428,7 +12428,7 @@ function Cx(t) {
12428
12428
  )
12429
12429
  ] });
12430
12430
  }
12431
- function Dx(t) {
12431
+ function bx(t) {
12432
12432
  const { children: e, button: r, closeOnClick: n, orientation: a = "bottomLeft" } = t, [i, s] = k(!1), u = `arkynPopover ${a} ${i ? "visibleTrue" : "visibleFalse"}`;
12433
12433
  function l() {
12434
12434
  i || s(!0);
@@ -12451,7 +12451,7 @@ function Dx(t) {
12451
12451
  i && /* @__PURE__ */ y.jsx("div", { onClick: () => s(!1), className: "arkynPopoverOverlay" })
12452
12452
  ] });
12453
12453
  }
12454
- function bx(t) {
12454
+ function Ex(t) {
12455
12455
  const { message: e, type: r } = t, n = `arkynToast ${r}}`;
12456
12456
  function a() {
12457
12457
  switch (r) {
@@ -14279,7 +14279,7 @@ function rw() {
14279
14279
  function Ml(t) {
14280
14280
  return t && typeof t.title == "string" && typeof t.message == "string" && (t.size === void 0 || t.size === "md" || t.size === "lg") && (t.type === "success" || t.type === "danger");
14281
14281
  }
14282
- function Ex() {
14282
+ function wx() {
14283
14283
  const t = of(), { closeModal: e, closeAll: r } = Se(ao), { showToast: n } = rw(), { getParam: a } = Nd(), { pathname: i } = ys(), s = uf(), o = a("closeAllModals");
14284
14284
  x(() => {
14285
14285
  o === "true" && (r(), s(i));
@@ -14301,7 +14301,7 @@ function Ex() {
14301
14301
  }, [t]);
14302
14302
  }
14303
14303
  const up = st({});
14304
- function wx(t) {
14304
+ function Ox(t) {
14305
14305
  const e = Se(up);
14306
14306
  if (Object.entries(e).length === 0)
14307
14307
  throw new Error("useDrawer must be used within a Provider");
@@ -14327,7 +14327,7 @@ function aw() {
14327
14327
  () => !1
14328
14328
  );
14329
14329
  }
14330
- function Ox(t) {
14330
+ function xx(t) {
14331
14331
  const e = Se(ao);
14332
14332
  if (Object.entries(e).length === 0)
14333
14333
  throw new Error("useModal must be used within a Provider");
@@ -14342,7 +14342,7 @@ function Ox(t) {
14342
14342
  } else
14343
14343
  return e;
14344
14344
  }
14345
- function xx(t) {
14345
+ function Bx(t) {
14346
14346
  const { children: e = !1 } = t, [r, n] = k([]);
14347
14347
  function a(u) {
14348
14348
  return !!r.some((l) => l.key === u);
@@ -18990,7 +18990,7 @@ K(Bp, "defaultProps", {
18990
18990
  className: ""
18991
18991
  });
18992
18992
  K(Bp, "contextType", me);
18993
- function Lx({
18993
+ function Ax({
18994
18994
  googleMapsApiKey: t,
18995
18995
  children: e,
18996
18996
  ...r
@@ -19005,7 +19005,7 @@ function Lx({
19005
19005
  }
19006
19006
  );
19007
19007
  }
19008
- function Ax(t) {
19008
+ function Sx(t) {
19009
19009
  const { children: e = !1 } = t, [r, n] = k([]);
19010
19010
  function a(l) {
19011
19011
  return !!r.some((c) => c.key === l);
@@ -19407,7 +19407,7 @@ var FO = ({ id: t, className: e, style: r, onHeightUpdate: n, children: a }) =>
19407
19407
  return it.createElement(FO, { id: l.id, key: l.id, onHeightUpdate: u.updateHeight, className: l.visible ? MO : "", style: p }, l.type === "custom" ? Ma(l.message, l) : a ? a(l) : it.createElement(PO, { toast: l, position: c }));
19408
19408
  }));
19409
19409
  }, Jc = wt;
19410
- function Sx({ children: t }) {
19410
+ function Px({ children: t }) {
19411
19411
  function e(r) {
19412
19412
  switch (r.type) {
19413
19413
  case "success":
@@ -19454,7 +19454,7 @@ function Sx({ children: t }) {
19454
19454
  function jO({ children: t, fallback: e = null }) {
19455
19455
  return aw() ? /* @__PURE__ */ y.jsx(y.Fragment, { children: t() }) : /* @__PURE__ */ y.jsx(y.Fragment, { children: e });
19456
19456
  }
19457
- function Px({
19457
+ function Fx({
19458
19458
  coordinates: t,
19459
19459
  zoom: e = 18,
19460
19460
  draggable: r = !1,
@@ -19475,7 +19475,7 @@ function Px({
19475
19475
  }
19476
19476
  ) }) : /* @__PURE__ */ y.jsx("div", { className: "arkynGoogleMapPinnedEmpty " + n, ...a, children: /* @__PURE__ */ y.jsx(nh, {}) });
19477
19477
  }
19478
- function Fx({
19478
+ function Tx({
19479
19479
  onChange: t,
19480
19480
  onPlaceChanged: e,
19481
19481
  options: r,
@@ -19589,7 +19589,7 @@ let IO = class {
19589
19589
  function NO(t) {
19590
19590
  return new IO().initialize(t), /* @__PURE__ */ y.jsx(y.Fragment, {});
19591
19591
  }
19592
- function Mx(t) {
19592
+ function kx(t) {
19593
19593
  const {
19594
19594
  gtmId: e,
19595
19595
  auth: r = "",
@@ -19616,60 +19616,61 @@ export {
19616
19616
  GO as AlertDescription,
19617
19617
  ZO as AlertIcon,
19618
19618
  ch as AlertTitle,
19619
- XO as Badge,
19620
- vx as BreadcrumbContainer,
19621
- gx as BreadcrumbLink,
19619
+ JO as Badge,
19620
+ gx as BreadcrumbContainer,
19621
+ mx as BreadcrumbLink,
19622
19622
  ba as Button,
19623
- JO as Card,
19624
- sx as Checkbox,
19623
+ QO as Card,
19624
+ ox as Checkbox,
19625
19625
  jO as ClientOnly,
19626
- QO as Divider,
19627
- yx as DrawerContainer,
19628
- Cx as DrawerHeader,
19629
- xx as DrawerProvider,
19626
+ ex as Divider,
19627
+ Cx as DrawerContainer,
19628
+ Dx as DrawerHeader,
19629
+ Bx as DrawerProvider,
19630
19630
  pu as FormController,
19631
- ox as FormError,
19631
+ ux as FormError,
19632
19632
  hu as FormLabel,
19633
- Px as GoogleMap,
19634
- Lx as GoogleProvider,
19635
- Fx as GoogleSearchPlaces,
19636
- Mx as GoogleTagManager,
19633
+ Fx as GoogleMap,
19634
+ Ax as GoogleProvider,
19635
+ Tx as GoogleSearchPlaces,
19636
+ kx as GoogleTagManager,
19637
19637
  Km as IconButton,
19638
19638
  ty as ImageUpload,
19639
19639
  Ka as Input,
19640
19640
  $D as ModalContainer,
19641
19641
  zD as ModalFooter,
19642
19642
  WD as ModalHeader,
19643
- Ax as ModalProvider,
19644
- ux as MultiSelect,
19645
- mx as Pagination,
19646
- Dx as Popover,
19647
- cx as RadioBox,
19648
- lx as RadioGroup,
19649
- fx as RichText,
19650
- dx as Select,
19651
- ex as Skeleton,
19652
- px as Switch,
19643
+ Sx as ModalProvider,
19644
+ lx as MultiSelect,
19645
+ yx as Pagination,
19646
+ bx as Popover,
19647
+ fx as RadioBox,
19648
+ cx as RadioGroup,
19649
+ dx as RichText,
19650
+ px as Select,
19651
+ tx as Skeleton,
19652
+ hx as Switch,
19653
19653
  el as TabButton,
19654
19654
  UD as TabContainer,
19655
- tx as TableBody,
19656
- rx as TableCaption,
19657
- nx as TableContainer,
19658
- ax as TableFooter,
19659
- ix as TableHeader,
19660
- hx as Textarea,
19661
- bx as Toast,
19662
- Sx as ToastProvider,
19655
+ rx as TableBody,
19656
+ nx as TableCaption,
19657
+ ax as TableContainer,
19658
+ ix as TableFooter,
19659
+ sx as TableHeader,
19660
+ vx as Textarea,
19661
+ Ex as Toast,
19662
+ Px as ToastProvider,
19663
19663
  Ym as Tooltip,
19664
19664
  KO as getHtmlFromRichTextValue,
19665
19665
  YO as getRichTextValueFromHtml,
19666
+ XO as isHtml,
19666
19667
  Uf as morpheme,
19667
- Ex as useAutomation,
19668
- wx as useDrawer,
19668
+ wx as useAutomation,
19669
+ Ox as useDrawer,
19669
19670
  Vf as useFieldErrors,
19670
19671
  Dt as useFormController,
19671
19672
  aw as useHydrated,
19672
- Ox as useModal,
19673
+ xx as useModal,
19673
19674
  Nd as useScopedParams,
19674
19675
  rw as useToast
19675
19676
  };