@arkyn/components 1.3.124 → 1.3.125

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
@@ -656,7 +656,7 @@ const xc = ct({});
656
656
  function cp() {
657
657
  return je(xc);
658
658
  }
659
- function ow(t) {
659
+ function aw(t) {
660
660
  const { schema: e, children: n, className: r, ...i } = t, s = !((l) => {
661
661
  let c = !1;
662
662
  const d = (p) => {
@@ -666,15 +666,15 @@ function ow(t) {
666
666
  })(n) ? "nonExistsAlertTitle" : "existsAlertTitle", u = `arkynAlertContainer ${e} ${s} ${r}`;
667
667
  return /* @__PURE__ */ x.jsx(xc.Provider, { value: t, children: /* @__PURE__ */ x.jsx("div", { className: u.trim(), ...i, children: n }) });
668
668
  }
669
- function aw(t) {
669
+ function sw(t) {
670
670
  const { className: e, ...n } = t, r = `arkynAlertContent ${e}`;
671
671
  return /* @__PURE__ */ x.jsx("div", { className: r.trim(), ...n });
672
672
  }
673
- function sw(t) {
673
+ function uw(t) {
674
674
  const { className: e, ...n } = t, r = `arkynAlertDescription ${e}`;
675
675
  return /* @__PURE__ */ x.jsx("div", { className: r.trim(), ...n });
676
676
  }
677
- function uw(t) {
677
+ function lw(t) {
678
678
  const { className: e, ...n } = t, { schema: r } = cp(), i = `arkynAlertIcon ${r} ${e}`;
679
679
  switch (r) {
680
680
  case "success":
@@ -705,7 +705,7 @@ function pp(t, e, n) {
705
705
  const r = t;
706
706
  return /* @__PURE__ */ x.jsx("p", { className: n, children: /* @__PURE__ */ x.jsx(r, { color: "var(--secondary-600)", size: e, strokeWidth: 2.5 }) });
707
707
  }
708
- function lw(t) {
708
+ function cw(t) {
709
709
  const {
710
710
  variant: e = "ghost",
711
711
  scheme: n = "primary",
@@ -722,11 +722,11 @@ function lw(t) {
722
722
  mi(c, i)
723
723
  ] });
724
724
  }
725
- function cw(t) {
725
+ function fw(t) {
726
726
  const { className: e, ...n } = t, r = `arkynCard ${e}`;
727
727
  return /* @__PURE__ */ x.jsx("div", { className: r.trim(), ...n });
728
728
  }
729
- function fw(t) {
729
+ function dw(t) {
730
730
  const {
731
731
  className: e,
732
732
  orientation: n = "horizontal",
@@ -4651,7 +4651,7 @@ var Hs = {
4651
4651
  className: ""
4652
4652
  }, e.contextType = xe, e;
4653
4653
  })(qe);
4654
- function dw({
4654
+ function pw({
4655
4655
  coordinates: t,
4656
4656
  zoom: e = 18,
4657
4657
  draggable: n = !1,
@@ -4672,11 +4672,11 @@ function dw({
4672
4672
  }
4673
4673
  ) }) : /* @__PURE__ */ x.jsx("div", { className: "arkynGoogleMapPinnedEmpty " + r, ...i, children: /* @__PURE__ */ x.jsx(Ud, {}) });
4674
4674
  }
4675
- function pw(t) {
4675
+ function hw(t) {
4676
4676
  const { className: e, ...n } = t, r = `arkynSkeleton ${e}`;
4677
4677
  return /* @__PURE__ */ x.jsx("aside", { className: r.trim(), ...n });
4678
4678
  }
4679
- function hw(t) {
4679
+ function vw(t) {
4680
4680
  const {
4681
4681
  emptyMessage: e = "Nenhum dado adicionado.",
4682
4682
  className: n,
@@ -4685,29 +4685,29 @@ function hw(t) {
4685
4685
  } = t, o = `arkynTableBody ${n}`, a = _t.count(r) === 0;
4686
4686
  return /* @__PURE__ */ x.jsx("tbody", { className: o.trim(), ...i, children: a ? /* @__PURE__ */ x.jsx("tr", { className: "arkynTableBodyEmptyLine", children: /* @__PURE__ */ x.jsx("td", { colSpan: 100, children: /* @__PURE__ */ x.jsx("div", { children: e }) }) }) : r });
4687
4687
  }
4688
- function vw(t) {
4688
+ function gw(t) {
4689
4689
  const { className: e, children: n, ...r } = t, i = `arkynTableCaption ${e}`;
4690
4690
  return /* @__PURE__ */ x.jsx("caption", { className: i.trim(), ...r, children: /* @__PURE__ */ x.jsx("div", { className: "arkynTableCaptionContent", children: n }) });
4691
4691
  }
4692
- function gw(t) {
4692
+ function mw(t) {
4693
4693
  const { children: e, className: n, ...r } = t, i = `arkynTableContainer ${n}`;
4694
4694
  return /* @__PURE__ */ x.jsx("div", { className: i.trim(), ...r, children: /* @__PURE__ */ x.jsx("table", { children: e }) });
4695
4695
  }
4696
- function mw(t) {
4696
+ function yw(t) {
4697
4697
  const { className: e, children: n, ...r } = t, i = `arkynTableFooter ${e}`;
4698
4698
  return /* @__PURE__ */ x.jsxs("tfoot", { className: i.trim(), ...r, children: [
4699
4699
  /* @__PURE__ */ x.jsx("tr", { className: "spacingRow" }),
4700
4700
  /* @__PURE__ */ x.jsx("tr", { children: /* @__PURE__ */ x.jsx("th", { colSpan: 100, children: /* @__PURE__ */ x.jsx("div", { className: "arkynTableFooterContent", children: n }) }) })
4701
4701
  ] });
4702
4702
  }
4703
- function yw(t) {
4703
+ function Cw(t) {
4704
4704
  const { className: e, children: n, ...r } = t, i = `arkynTableHeader ${e}`;
4705
4705
  return /* @__PURE__ */ x.jsxs("thead", { className: i.trim(), ...r, children: [
4706
4706
  /* @__PURE__ */ x.jsx("tr", { children: n }),
4707
4707
  /* @__PURE__ */ x.jsx("tr", { className: "spacingRow" })
4708
4708
  ] });
4709
4709
  }
4710
- function Cw(t) {
4710
+ function Dw(t) {
4711
4711
  const {
4712
4712
  isLoading: e = !1,
4713
4713
  scheme: n = "primary",
@@ -4734,7 +4734,7 @@ function Cw(t) {
4734
4734
  ] });
4735
4735
  }
4736
4736
  const _c = ct({});
4737
- function Dw(t) {
4737
+ function bw(t) {
4738
4738
  var d, p;
4739
4739
  const e = Ec(), {
4740
4740
  children: n,
@@ -4755,7 +4755,7 @@ function Dw(t) {
4755
4755
  function Lt() {
4756
4756
  return je(_c);
4757
4757
  }
4758
- function bw(t) {
4758
+ function Ew(t) {
4759
4759
  const {
4760
4760
  name: e,
4761
4761
  className: n = "",
@@ -4794,11 +4794,11 @@ function bw(t) {
4794
4794
  }
4795
4795
  );
4796
4796
  }
4797
- function Ew(t) {
4797
+ function ww(t) {
4798
4798
  const { children: e, className: n, ...r } = t, i = `arkynFormError ${n}`, { error: o } = Lt();
4799
4799
  return e ? /* @__PURE__ */ x.jsx("strong", { className: i.trim(), ...r, children: e }) : o ? /* @__PURE__ */ x.jsx("strong", { className: i.trim(), ...r, children: o }) : /* @__PURE__ */ x.jsx(x.Fragment, {});
4800
4800
  }
4801
- function ww(t) {
4801
+ function Bw(t) {
4802
4802
  const {
4803
4803
  showAsterisk: e = !1,
4804
4804
  className: n = "",
@@ -5307,7 +5307,7 @@ function Uh(t) {
5307
5307
  function Hh(t) {
5308
5308
  return t.type === "currency" ? /* @__PURE__ */ x.jsx(Nh, { ...t }) : t.type === "masked" ? /* @__PURE__ */ x.jsx(zh, { ...t }) : t.type === "cpf-cnpj" ? /* @__PURE__ */ x.jsx(Th, { ...t }) : /* @__PURE__ */ x.jsx(Uh, { ...t });
5309
5309
  }
5310
- function Bw({
5310
+ function xw({
5311
5311
  onChange: t,
5312
5312
  onPlaceChanged: e,
5313
5313
  options: n,
@@ -5348,7 +5348,7 @@ function Bw({
5348
5348
  }
5349
5349
  );
5350
5350
  }
5351
- function xw(t) {
5351
+ function Aw(t) {
5352
5352
  const {
5353
5353
  isLoading: e = !1,
5354
5354
  scheme: n = "primary",
@@ -5376,7 +5376,7 @@ const Uc = ct({});
5376
5376
  function Vh() {
5377
5377
  return je(Uc);
5378
5378
  }
5379
- function Aw(t) {
5379
+ function Lw(t) {
5380
5380
  const {
5381
5381
  defaultValue: e,
5382
5382
  name: n,
@@ -5412,7 +5412,7 @@ function Aw(t) {
5412
5412
  }
5413
5413
  );
5414
5414
  }
5415
- function Lw(t) {
5415
+ function Ow(t) {
5416
5416
  const {
5417
5417
  value: e,
5418
5418
  size: n,
@@ -15286,7 +15286,7 @@ const sd = (t) => {
15286
15286
  }
15287
15287
  return "";
15288
15288
  }, Tl = (t) => t.children.map((e) => sd(e)).join(""), Rl = (t) => /<\/?[a-z][\s\S]*>/i.test(t);
15289
- function Ow({
15289
+ function Sw({
15290
15290
  name: t,
15291
15291
  defaultValue: e,
15292
15292
  enforceCharacterLimit: n = !1,
@@ -15388,7 +15388,7 @@ function XD(t, e) {
15388
15388
  ...f
15389
15389
  };
15390
15390
  }
15391
- function Sw(t) {
15391
+ function Pw(t) {
15392
15392
  var J;
15393
15393
  const [e, n] = I(!1), { inputRef: r, id: i, error: o } = Lt(), a = Ue(null), s = r || a, u = t.isError || !!o, {
15394
15394
  disabled: l,
@@ -15500,7 +15500,7 @@ function Sw(t) {
15500
15500
  e && /* @__PURE__ */ x.jsx("aside", { className: "arkyn_select_overlay", onClick: _ })
15501
15501
  ] });
15502
15502
  }
15503
- function Pw(t) {
15503
+ function Fw(t) {
15504
15504
  const {
15505
15505
  size: e = "lg",
15506
15506
  defaultChecked: n = !1,
@@ -15528,7 +15528,7 @@ function Pw(t) {
15528
15528
  }
15529
15529
  ) });
15530
15530
  }
15531
- function Fw(t) {
15531
+ function Mw(t) {
15532
15532
  const {
15533
15533
  variant: e = "solid",
15534
15534
  size: n = "md",
@@ -15572,11 +15572,11 @@ function Fw(t) {
15572
15572
  }
15573
15573
  );
15574
15574
  }
15575
- function Mw(t) {
15575
+ function kw(t) {
15576
15576
  const { className: e = "", ...n } = t, r = `arkynBreadcrumbContainer ${e}`;
15577
15577
  return /* @__PURE__ */ x.jsx("nav", { className: r, ...n });
15578
15578
  }
15579
- function kw(t) {
15579
+ function Tw(t) {
15580
15580
  const { pathname: e } = wc(), {
15581
15581
  className: n = "",
15582
15582
  disabled: r = !1,
@@ -15607,7 +15607,7 @@ function JD(t = "") {
15607
15607
  }
15608
15608
  };
15609
15609
  }
15610
- function Tw(t) {
15610
+ function Rw(t) {
15611
15611
  const {
15612
15612
  scope: e,
15613
15613
  totalCountRegisters: n,
@@ -15687,7 +15687,7 @@ function QD() {
15687
15687
  throw new Error("useTabContext must be used within a TabProvider");
15688
15688
  return je(ea);
15689
15689
  }
15690
- function Rw(t) {
15690
+ function Iw(t) {
15691
15691
  const {
15692
15692
  children: e,
15693
15693
  onClick: n,
@@ -15721,7 +15721,7 @@ function Rw(t) {
15721
15721
  /* @__PURE__ */ x.jsx("div", { className: "activeLine", style: p })
15722
15722
  ] });
15723
15723
  }
15724
- function Iw(t) {
15724
+ function jw(t) {
15725
15725
  const { children: e, className: n = "", onClick: r, ...i } = t, { value: o, showInitialTab: a, handleTabClick: s } = QD(), u = o === i.value && o ? "activeTrue" : "activeFalse", c = `arkynTabButton ${o === i.value && a ? "showBorderBottom" : ""} ${u} ${n}`;
15726
15726
  function d(p) {
15727
15727
  s(p), r && r(p);
@@ -15729,7 +15729,7 @@ function Iw(t) {
15729
15729
  return /* @__PURE__ */ x.jsx("button", { onClick: d, className: c.trim(), ...i, children: e });
15730
15730
  }
15731
15731
  const ud = ct({});
15732
- function jw(t) {
15732
+ function Nw(t) {
15733
15733
  const {
15734
15734
  isVisibled: e,
15735
15735
  makeInvisible: n,
@@ -15763,7 +15763,7 @@ function jw(t) {
15763
15763
  )
15764
15764
  ] }) }) });
15765
15765
  }
15766
- function Nw(t) {
15766
+ function _w(t) {
15767
15767
  const {
15768
15768
  showCloseButton: e = !0,
15769
15769
  className: n,
@@ -15785,7 +15785,7 @@ function Nw(t) {
15785
15785
  ] });
15786
15786
  }
15787
15787
  const ld = ct({});
15788
- function _w(t) {
15788
+ function $w(t) {
15789
15789
  const {
15790
15790
  isVisibled: e,
15791
15791
  makeInvisible: n,
@@ -15818,11 +15818,11 @@ function _w(t) {
15818
15818
  )
15819
15819
  ] }) }) });
15820
15820
  }
15821
- function $w(t) {
15821
+ function zw(t) {
15822
15822
  const { alignment: e = "right", className: n, ...r } = t, i = `arkynModalFooter ${e} ${n}`;
15823
15823
  return /* @__PURE__ */ x.jsx("footer", { className: i.trim(), ...r });
15824
15824
  }
15825
- function zw(t) {
15825
+ function Ww(t) {
15826
15826
  const {
15827
15827
  showCloseButton: e = !0,
15828
15828
  className: n,
@@ -15843,7 +15843,7 @@ function zw(t) {
15843
15843
  )
15844
15844
  ] });
15845
15845
  }
15846
- function Ww(t) {
15846
+ function Uw(t) {
15847
15847
  const { children: e, button: n, closeOnClick: r, orientation: i = "bottomLeft" } = t, [o, a] = I(!1), u = `arkynPopover ${i} ${o ? "visibleTrue" : "visibleFalse"}`;
15848
15848
  function l() {
15849
15849
  o || a(!0);
@@ -15893,7 +15893,7 @@ function eb(t) {
15893
15893
  ] })
15894
15894
  ] });
15895
15895
  }
15896
- function Uw(t) {
15896
+ function Hw(t) {
15897
15897
  const {
15898
15898
  text: e,
15899
15899
  size: n = "lg",
@@ -17715,7 +17715,7 @@ function u1() {
17715
17715
  function fc(t) {
17716
17716
  return t && typeof t.title == "string" && typeof t.message == "string" && (t.size === void 0 || t.size === "md" || t.size === "lg") && (t.type === "info" || t.type === "success" || t.type === "danger" || t.type === "warning");
17717
17717
  }
17718
- function Hw() {
17718
+ function Vw() {
17719
17719
  const t = Ec(), { closeModal: e } = je(Xa), { showToast: n } = u1();
17720
17720
  B(() => {
17721
17721
  const r = t == null ? void 0 : t.closeModalKey;
@@ -17736,7 +17736,7 @@ function Hw() {
17736
17736
  }, [t]);
17737
17737
  }
17738
17738
  const Md = ct({});
17739
- function Vw(t) {
17739
+ function qw(t) {
17740
17740
  const e = je(Md);
17741
17741
  if (Object.entries(e).length === 0)
17742
17742
  throw new Error("useDrawer must be used within a Provider");
@@ -17751,7 +17751,7 @@ function Vw(t) {
17751
17751
  } else
17752
17752
  return e;
17753
17753
  }
17754
- function qw(t) {
17754
+ function Gw(t) {
17755
17755
  const e = je(Xa);
17756
17756
  if (Object.entries(e).length === 0)
17757
17757
  throw new Error("useModal must be used within a Provider");
@@ -17766,7 +17766,7 @@ function qw(t) {
17766
17766
  } else
17767
17767
  return e;
17768
17768
  }
17769
- function Gw(t) {
17769
+ function Zw(t) {
17770
17770
  const { children: e = !1 } = t, [n, r] = I([]);
17771
17771
  function i(u) {
17772
17772
  return !!n.some((l) => l.key === u);
@@ -17790,7 +17790,7 @@ function Gw(t) {
17790
17790
  }
17791
17791
  );
17792
17792
  }
17793
- function Zw({
17793
+ function Yw({
17794
17794
  googleMapsApiKey: t,
17795
17795
  children: e,
17796
17796
  ...n
@@ -17805,7 +17805,7 @@ function Zw({
17805
17805
  }
17806
17806
  );
17807
17807
  }
17808
- function Yw(t) {
17808
+ function Kw(t) {
17809
17809
  const { children: e = !1 } = t, [n, r] = I([]);
17810
17810
  function i(u) {
17811
17811
  return !!n.some((l) => l.key === u);
@@ -18203,10 +18203,10 @@ var Y1 = ({ id: t, className: e, style: n, onHeightUpdate: r, children: i }) =>
18203
18203
  let c = l.position || e, d = u.calculateOffset(l, { reverseOrder: t, gutter: r, defaultPosition: e }), p = K1(c, d);
18204
18204
  return lt.createElement(Y1, { id: l.id, key: l.id, onHeightUpdate: u.updateHeight, className: l.visible ? X1 : "", style: p }, l.type === "custom" ? Li(l.message, l) : i ? i(l) : lt.createElement(Z1, { toast: l, position: c }));
18205
18205
  }));
18206
- };
18207
- function Kw({ children: t }) {
18206
+ }, Q1 = Bt;
18207
+ function Xw({ children: t }) {
18208
18208
  function e(n) {
18209
- Bt.custom((r) => /* @__PURE__ */ x.jsx(eb, { ...n }));
18209
+ Q1.custom((r) => /* @__PURE__ */ x.jsx(eb, { ...n }));
18210
18210
  }
18211
18211
  return /* @__PURE__ */ x.jsxs(Fd.Provider, { value: { showToast: e }, children: [
18212
18212
  /* @__PURE__ */ x.jsx(J1, {}),
@@ -18214,55 +18214,55 @@ function Kw({ children: t }) {
18214
18214
  ] });
18215
18215
  }
18216
18216
  export {
18217
- ow as AlertContainer,
18218
- aw as AlertContent,
18219
- sw as AlertDescription,
18220
- uw as AlertIcon,
18217
+ aw as AlertContainer,
18218
+ sw as AlertContent,
18219
+ uw as AlertDescription,
18220
+ lw as AlertIcon,
18221
18221
  lp as AlertTitle,
18222
- lw as Badge,
18223
- Mw as BreadcrumbContainer,
18224
- kw as BreadcrumbLink,
18225
- Cw as Button,
18226
- cw as Card,
18227
- bw as Checkbox,
18228
- fw as Divider,
18229
- jw as DrawerContainer,
18230
- Nw as DrawerHeader,
18231
- Gw as DrawerProvider,
18232
- Dw as FormController,
18233
- Ew as FormError,
18234
- ww as FormLabel,
18235
- dw as GoogleMap,
18236
- Zw as GoogleProvider,
18237
- Bw as GoogleSearchPlaces,
18238
- xw as IconButton,
18222
+ cw as Badge,
18223
+ kw as BreadcrumbContainer,
18224
+ Tw as BreadcrumbLink,
18225
+ Dw as Button,
18226
+ fw as Card,
18227
+ Ew as Checkbox,
18228
+ dw as Divider,
18229
+ Nw as DrawerContainer,
18230
+ _w as DrawerHeader,
18231
+ Zw as DrawerProvider,
18232
+ bw as FormController,
18233
+ ww as FormError,
18234
+ Bw as FormLabel,
18235
+ pw as GoogleMap,
18236
+ Yw as GoogleProvider,
18237
+ xw as GoogleSearchPlaces,
18238
+ Aw as IconButton,
18239
18239
  Hh as Input,
18240
- _w as ModalContainer,
18241
- $w as ModalFooter,
18242
- zw as ModalHeader,
18243
- Yw as ModalProvider,
18244
- Tw as Pagination,
18245
- Ww as Popover,
18246
- Lw as RadioBox,
18247
- Aw as RadioGroup,
18248
- Ow as RichText,
18249
- Sw as Select,
18250
- pw as Skeleton,
18251
- Pw as Switch,
18252
- Iw as TabButton,
18253
- Rw as TabContainer,
18254
- hw as TableBody,
18255
- vw as TableCaption,
18256
- gw as TableContainer,
18257
- mw as TableFooter,
18258
- yw as TableHeader,
18259
- Fw as Textarea,
18240
+ $w as ModalContainer,
18241
+ zw as ModalFooter,
18242
+ Ww as ModalHeader,
18243
+ Kw as ModalProvider,
18244
+ Rw as Pagination,
18245
+ Uw as Popover,
18246
+ Ow as RadioBox,
18247
+ Lw as RadioGroup,
18248
+ Sw as RichText,
18249
+ Pw as Select,
18250
+ hw as Skeleton,
18251
+ Fw as Switch,
18252
+ jw as TabButton,
18253
+ Iw as TabContainer,
18254
+ vw as TableBody,
18255
+ gw as TableCaption,
18256
+ mw as TableContainer,
18257
+ yw as TableFooter,
18258
+ Cw as TableHeader,
18259
+ Mw as Textarea,
18260
18260
  eb as Toast,
18261
- Kw as ToastProvider,
18262
- Uw as Tooltip,
18263
- Hw as useAutomation,
18264
- Vw as useDrawer,
18265
- qw as useModal,
18261
+ Xw as ToastProvider,
18262
+ Hw as Tooltip,
18263
+ Vw as useAutomation,
18264
+ qw as useDrawer,
18265
+ Gw as useModal,
18266
18266
  JD as useScopedParams,
18267
18267
  u1 as useToast
18268
18268
  };
@@ -24,12 +24,12 @@ Check the render method of \``+S+"`."}return""}}function Rn(S){{if(S!==void 0){v
24
24
 
25
25
  Check your code at `+$+":"+oe+"."}return""}}var xr={};function Wi(S){{var $=Br();if(!$){var oe=typeof S=="string"?S:S.displayName||S.name;oe&&($=`
26
26
 
27
- Check the top-level render call using <`+oe+">.")}return $}}function An(S,$){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var oe=Wi($);if(xr[oe])return;xr[oe]=!0;var ye="";S&&S._owner&&S._owner!==kt.current&&(ye=" It was passed a child from "+j(S._owner.type)+"."),Wt(S),B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',oe,ye),Wt(null)}}function Sr(S,$){{if(typeof S!="object")return;if(ae(S))for(var oe=0;oe<S.length;oe++){var ye=S[oe];Hn(ye)&&An(ye,$)}else if(Hn(S))S._store&&(S._store.validated=!0);else if(S){var ke=d(S);if(typeof ke=="function"&&ke!==S.entries)for(var je=ke.call(S),Me;!(Me=je.next()).done;)Hn(Me.value)&&An(Me.value,$)}}}function Ui(S){{var $=S.type;if($==null||typeof $=="string")return;var oe;if(typeof $=="function")oe=$.propTypes;else if(typeof $=="object"&&($.$$typeof===u||$.$$typeof===p))oe=$.propTypes;else return;if(oe){var ye=j($);ge(oe,S.props,"prop",ye,S)}else if($.PropTypes!==void 0&&!an){an=!0;var ke=j($);B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ke||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vn(S){{for(var $=Object.keys(S.props),oe=0;oe<$.length;oe++){var ye=$[oe];if(ye!=="children"&&ye!=="key"){Wt(S),B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ye),Wt(null);break}}S.ref!==null&&(Wt(S),B("Invalid attribute `ref` supplied to `React.Fragment`."),Wt(null))}}var Ar={};function Lr(S,$,oe,ye,ke,je){{var Me=P(S);if(!Me){var Le="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(Le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var tt=Rn(ke);tt?Le+=tt:Le+=Br();var Ge;S===null?Ge="null":ae(S)?Ge="array":S!==void 0&&S.$$typeof===e?(Ge="<"+(j(S.type)||"Unknown")+" />",Le=" Did you accidentally export a JSX literal instead of a component?"):Ge=typeof S,B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ge,Le)}var Je=Un(S,$,oe,ke,je);if(Je==null)return Je;if(Me){var at=$.children;if(at!==void 0)if(ye)if(ae(at)){for(var Ut=0;Ut<at.length;Ut++)Sr(at[Ut],S);Object.freeze&&Object.freeze(at)}else B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Sr(at,S)}if(ve.call($,"key")){var Ht=j(S),nt=Object.keys($).filter(function(Q1){return Q1!=="key"}),Ee=nt.length>0?"{key: someKey, "+nt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ar[Ht+Ee]){var J1=nt.length>0?"{"+nt.join(": ..., ")+": ...}":"{}";B(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+oe+">.")}return $}}function An(S,$){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var oe=Wi($);if(xr[oe])return;xr[oe]=!0;var ye="";S&&S._owner&&S._owner!==kt.current&&(ye=" It was passed a child from "+j(S._owner.type)+"."),Wt(S),B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',oe,ye),Wt(null)}}function Sr(S,$){{if(typeof S!="object")return;if(ae(S))for(var oe=0;oe<S.length;oe++){var ye=S[oe];Hn(ye)&&An(ye,$)}else if(Hn(S))S._store&&(S._store.validated=!0);else if(S){var ke=d(S);if(typeof ke=="function"&&ke!==S.entries)for(var je=ke.call(S),Me;!(Me=je.next()).done;)Hn(Me.value)&&An(Me.value,$)}}}function Ui(S){{var $=S.type;if($==null||typeof $=="string")return;var oe;if(typeof $=="function")oe=$.propTypes;else if(typeof $=="object"&&($.$$typeof===u||$.$$typeof===p))oe=$.propTypes;else return;if(oe){var ye=j($);ge(oe,S.props,"prop",ye,S)}else if($.PropTypes!==void 0&&!an){an=!0;var ke=j($);B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ke||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vn(S){{for(var $=Object.keys(S.props),oe=0;oe<$.length;oe++){var ye=$[oe];if(ye!=="children"&&ye!=="key"){Wt(S),B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ye),Wt(null);break}}S.ref!==null&&(Wt(S),B("Invalid attribute `ref` supplied to `React.Fragment`."),Wt(null))}}var Ar={};function Lr(S,$,oe,ye,ke,je){{var Me=P(S);if(!Me){var Le="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(Le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var tt=Rn(ke);tt?Le+=tt:Le+=Br();var Ge;S===null?Ge="null":ae(S)?Ge="array":S!==void 0&&S.$$typeof===e?(Ge="<"+(j(S.type)||"Unknown")+" />",Le=" Did you accidentally export a JSX literal instead of a component?"):Ge=typeof S,B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ge,Le)}var Je=Un(S,$,oe,ke,je);if(Je==null)return Je;if(Me){var at=$.children;if(at!==void 0)if(ye)if(ae(at)){for(var Ut=0;Ut<at.length;Ut++)Sr(at[Ut],S);Object.freeze&&Object.freeze(at)}else B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Sr(at,S)}if(ve.call($,"key")){var Ht=j(S),nt=Object.keys($).filter(function($1){return $1!=="key"}),Ee=nt.length>0?"{key: someKey, "+nt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ar[Ht+Ee]){var Q1=nt.length>0?"{"+nt.join(": ..., ")+": ...}":"{}";B(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,Ee,Ht,J1,Ht),Ar[Ht+Ee]=!0}}return S===r?Vn(Je):Ui(Je),Je}}function qn(S,$,oe){return Lr(S,$,oe,!0)}function Hi(S,$,oe){return Lr(S,$,oe,!1)}var Ri=Hi,Gn=qn;Yn.Fragment=r,Yn.jsx=Ri,Yn.jsxs=Gn}()),Yn}process.env.NODE_ENV==="production"?Vi.exports=Dd():Vi.exports=Ed();var x=Vi.exports;function Vs(t){const{className:e,...n}=t,r=`arkynAlertTitle ${e}`;return x.jsx("div",{className:r.trim(),...n})}const qs=c.createContext({});function bd(){return c.useContext(qs)}function wd(t){const{schema:e,children:n,className:r,...i}=t,a=!(l=>{let f=!1;const p=h=>{Array.isArray(h)?h.forEach(p):h&&typeof h=="object"&&"type"in h&&(h.type===Vs?f=!0:h.props&&h.props.children&&p(h.props.children))};return p(l),f})(n)?"nonExistsAlertTitle":"existsAlertTitle",u=`arkynAlertContainer ${e} ${a} ${r}`;return x.jsx(qs.Provider,{value:t,children:x.jsx("div",{className:u.trim(),...i,children:n})})}function Bd(t){const{className:e,...n}=t,r=`arkynAlertContent ${e}`;return x.jsx("div",{className:r.trim(),...n})}function xd(t){const{className:e,...n}=t,r=`arkynAlertDescription ${e}`;return x.jsx("div",{className:r.trim(),...n})}function Sd(t){const{className:e,...n}=t,{schema:r}=bd(),i=`arkynAlertIcon ${r} ${e}`;switch(r){case"success":return x.jsx(Se.CheckCircle2,{className:i,...n});case"danger":return x.jsx(Se.XCircle,{className:i,...n});case"warning":return x.jsx(Se.AlertTriangle,{className:i,...n});case"info":return x.jsx(Se.Info,{className:i,...n})}}function Pr(t,e){return e?x.jsx(e,{size:t,strokeWidth:2.5}):x.jsx(x.Fragment,{})}function Gs(t,e){return[...new Array(e-t)].map((n,r)=>t+r+1).filter(n=>n>0)}function Ad(t,e,n){return t>=n?[]:Gs(t,t+e)}function Ld(t,e){return t<=1?[]:Gs(t-1-e,t-1)}function Od(t,e,n){if(!t)return x.jsx(x.Fragment,{});if(typeof t=="string")return x.jsx("p",{className:n,children:t});const r=t;return x.jsx("p",{className:n,children:x.jsx(r,{color:"var(--secondary-600)",size:e,strokeWidth:2.5})})}function Pd(t){const{variant:e="ghost",scheme:n="primary",size:r="md",leftIcon:i,rightIcon:o,className:s="",children:a,...u}=t,f={md:12,lg:14}[r],p=`arkynBadge ${e} ${n} ${r} ${s}`;return x.jsxs("div",{className:p.trim(),...u,children:[Pr(f,i),a,Pr(f,i)]})}function Fd(t){const{className:e,...n}=t,r=`arkynCard ${e}`;return x.jsx("div",{className:r.trim(),...n})}function Md(t){const{className:e,orientation:n="horizontal",...r}=t,i=`arkynDivider ${n} ${e}`;return x.jsx("div",{className:i.trim(),...r})}/*! *****************************************************************************
32
+ <%s key={someKey} {...props} />`,Ee,Ht,Q1,Ht),Ar[Ht+Ee]=!0}}return S===r?Vn(Je):Ui(Je),Je}}function qn(S,$,oe){return Lr(S,$,oe,!0)}function Hi(S,$,oe){return Lr(S,$,oe,!1)}var Ri=Hi,Gn=qn;Yn.Fragment=r,Yn.jsx=Ri,Yn.jsxs=Gn}()),Yn}process.env.NODE_ENV==="production"?Vi.exports=Dd():Vi.exports=Ed();var x=Vi.exports;function Vs(t){const{className:e,...n}=t,r=`arkynAlertTitle ${e}`;return x.jsx("div",{className:r.trim(),...n})}const qs=c.createContext({});function bd(){return c.useContext(qs)}function wd(t){const{schema:e,children:n,className:r,...i}=t,a=!(l=>{let f=!1;const p=h=>{Array.isArray(h)?h.forEach(p):h&&typeof h=="object"&&"type"in h&&(h.type===Vs?f=!0:h.props&&h.props.children&&p(h.props.children))};return p(l),f})(n)?"nonExistsAlertTitle":"existsAlertTitle",u=`arkynAlertContainer ${e} ${a} ${r}`;return x.jsx(qs.Provider,{value:t,children:x.jsx("div",{className:u.trim(),...i,children:n})})}function Bd(t){const{className:e,...n}=t,r=`arkynAlertContent ${e}`;return x.jsx("div",{className:r.trim(),...n})}function xd(t){const{className:e,...n}=t,r=`arkynAlertDescription ${e}`;return x.jsx("div",{className:r.trim(),...n})}function Sd(t){const{className:e,...n}=t,{schema:r}=bd(),i=`arkynAlertIcon ${r} ${e}`;switch(r){case"success":return x.jsx(Se.CheckCircle2,{className:i,...n});case"danger":return x.jsx(Se.XCircle,{className:i,...n});case"warning":return x.jsx(Se.AlertTriangle,{className:i,...n});case"info":return x.jsx(Se.Info,{className:i,...n})}}function Pr(t,e){return e?x.jsx(e,{size:t,strokeWidth:2.5}):x.jsx(x.Fragment,{})}function Gs(t,e){return[...new Array(e-t)].map((n,r)=>t+r+1).filter(n=>n>0)}function Ad(t,e,n){return t>=n?[]:Gs(t,t+e)}function Ld(t,e){return t<=1?[]:Gs(t-1-e,t-1)}function Od(t,e,n){if(!t)return x.jsx(x.Fragment,{});if(typeof t=="string")return x.jsx("p",{className:n,children:t});const r=t;return x.jsx("p",{className:n,children:x.jsx(r,{color:"var(--secondary-600)",size:e,strokeWidth:2.5})})}function Pd(t){const{variant:e="ghost",scheme:n="primary",size:r="md",leftIcon:i,rightIcon:o,className:s="",children:a,...u}=t,f={md:12,lg:14}[r],p=`arkynBadge ${e} ${n} ${r} ${s}`;return x.jsxs("div",{className:p.trim(),...u,children:[Pr(f,i),a,Pr(f,i)]})}function Fd(t){const{className:e,...n}=t,r=`arkynCard ${e}`;return x.jsx("div",{className:r.trim(),...n})}function Md(t){const{className:e,orientation:n="horizontal",...r}=t,i=`arkynDivider ${n} ${e}`;return x.jsx("div",{className:i.trim(),...r})}/*! *****************************************************************************
33
33
  Copyright (c) Microsoft Corporation.
34
34
 
35
35
  Permission to use, copy, modify, and/or distribute this software for any
@@ -284,4 +284,4 @@ to {
284
284
  > * {
285
285
  pointer-events: auto;
286
286
  }
287
- `,zi=16,K1=({reverseOrder:t,position:e="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:s})=>{let{toasts:a,handlers:u}=w1(n);return rt.createElement("div",{style:{position:"fixed",zIndex:9999,top:zi,left:zi,right:zi,bottom:zi,pointerEvents:"none",...o},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},a.map(l=>{let f=l.position||e,p=u.calculateOffset(l,{reverseOrder:t,gutter:r,defaultPosition:e}),h=Z1(f,p);return rt.createElement(G1,{id:l.id,key:l.id,onHeightUpdate:u.updateHeight,className:l.visible?Y1:"",style:h},l.type==="custom"?Ii(l.message,l):i?i(l):rt.createElement(q1,{toast:l,position:f}))}))};function X1({children:t}){function e(n){Et.custom(r=>x.jsx(pf,{...n}))}return x.jsxs(cd.Provider,{value:{showToast:e},children:[x.jsx(K1,{}),t]})}fe.AlertContainer=wd,fe.AlertContent=Bd,fe.AlertDescription=xd,fe.AlertIcon=Sd,fe.AlertTitle=Vs,fe.Badge=Pd,fe.BreadcrumbContainer=TD,fe.BreadcrumbLink=ID,fe.Button=oh,fe.Card=Fd,fe.Checkbox=ah,fe.Divider=Md,fe.DrawerContainer=WD,fe.DrawerHeader=UD,fe.DrawerProvider=r1,fe.FormController=sh,fe.FormError=uh,fe.FormLabel=lh,fe.GoogleMap=Qp,fe.GoogleProvider=i1,fe.GoogleSearchPlaces=Eh,fe.IconButton=bh,fe.Input=iu,fe.ModalContainer=HD,fe.ModalFooter=RD,fe.ModalHeader=VD,fe.ModalProvider=o1,fe.Pagination=jD,fe.Popover=qD,fe.RadioBox=xh,fe.RadioGroup=Bh,fe.RichText=OD,fe.Select=FD,fe.Skeleton=$p,fe.Switch=MD,fe.TabButton=zD,fe.TabContainer=_D,fe.TableBody=eh,fe.TableCaption=th,fe.TableContainer=nh,fe.TableFooter=rh,fe.TableHeader=ih,fe.Textarea=kD,fe.Toast=pf,fe.ToastProvider=X1,fe.Tooltip=GD,fe.useAutomation=e1,fe.useDrawer=t1,fe.useModal=n1,fe.useScopedParams=cf,fe.useToast=fd,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
287
+ `,zi=16,K1=({reverseOrder:t,position:e="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:s})=>{let{toasts:a,handlers:u}=w1(n);return rt.createElement("div",{style:{position:"fixed",zIndex:9999,top:zi,left:zi,right:zi,bottom:zi,pointerEvents:"none",...o},className:s,onMouseEnter:u.startPause,onMouseLeave:u.endPause},a.map(l=>{let f=l.position||e,p=u.calculateOffset(l,{reverseOrder:t,gutter:r,defaultPosition:e}),h=Z1(f,p);return rt.createElement(G1,{id:l.id,key:l.id,onHeightUpdate:u.updateHeight,className:l.visible?Y1:"",style:h},l.type==="custom"?Ii(l.message,l):i?i(l):rt.createElement(q1,{toast:l,position:f}))}))},X1=Et;function J1({children:t}){function e(n){X1.custom(r=>x.jsx(pf,{...n}))}return x.jsxs(cd.Provider,{value:{showToast:e},children:[x.jsx(K1,{}),t]})}fe.AlertContainer=wd,fe.AlertContent=Bd,fe.AlertDescription=xd,fe.AlertIcon=Sd,fe.AlertTitle=Vs,fe.Badge=Pd,fe.BreadcrumbContainer=TD,fe.BreadcrumbLink=ID,fe.Button=oh,fe.Card=Fd,fe.Checkbox=ah,fe.Divider=Md,fe.DrawerContainer=WD,fe.DrawerHeader=UD,fe.DrawerProvider=r1,fe.FormController=sh,fe.FormError=uh,fe.FormLabel=lh,fe.GoogleMap=Qp,fe.GoogleProvider=i1,fe.GoogleSearchPlaces=Eh,fe.IconButton=bh,fe.Input=iu,fe.ModalContainer=HD,fe.ModalFooter=RD,fe.ModalHeader=VD,fe.ModalProvider=o1,fe.Pagination=jD,fe.Popover=qD,fe.RadioBox=xh,fe.RadioGroup=Bh,fe.RichText=OD,fe.Select=FD,fe.Skeleton=$p,fe.Switch=MD,fe.TabButton=zD,fe.TabContainer=_D,fe.TableBody=eh,fe.TableCaption=th,fe.TableContainer=nh,fe.TableFooter=rh,fe.TableHeader=ih,fe.Textarea=kD,fe.Toast=pf,fe.ToastProvider=J1,fe.Tooltip=GD,fe.useAutomation=e1,fe.useDrawer=t1,fe.useModal=n1,fe.useScopedParams=cf,fe.useToast=fd,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Toaster, toast } from "react-hot-toast";
2
+ import toast, { Toaster } from "react-hot-toast";
3
3
  import { ToastContext } from "../context/ToastContext";
4
4
  import { Toast } from "../components/Toast";
5
5
  function ToastProvider({ children }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/components",
3
- "version": "1.3.124",
3
+ "version": "1.3.125",
4
4
  "main": "./dist/bundle.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Lucas Gonçalves",
@@ -1,5 +1,5 @@
1
1
  import { ToastProps, ToastProviderProps } from "@arkyn/types";
2
- import { Toaster, toast } from "react-hot-toast";
2
+ import toast, { Toaster } from "react-hot-toast";
3
3
 
4
4
  import { ToastContext } from "../context/ToastContext";
5
5
  import { Toast } from "../components/Toast";