lawgic-dev-kit 0.13.0 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { __module as r } from "../../_virtual/index3.js";
1
+ import { __module as r } from "../../_virtual/index5.js";
2
2
  import { __require as s } from "./node_modules/react-is/index.js";
3
3
  import { __require as t } from "./factoryWithTypeCheckers.js";
4
4
  import { __require as p } from "./factoryWithThrowingShims.js";
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index7.js";
1
+ import { __module as e } from "../../../../_virtual/index6.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.js";
3
3
  import { __require as t } from "./cjs/react-is.development.js";
4
4
  var r;
@@ -1,4 +1,4 @@
1
- import { __module as w } from "../../_virtual/index8.js";
1
+ import { __module as w } from "../../_virtual/index7.js";
2
2
  var p;
3
3
  function x() {
4
4
  if (p) return w.exports;
@@ -1,6 +1,6 @@
1
- import { p as v } from "../../_virtual/index4.js";
2
- import { t as U } from "../../_virtual/index5.js";
3
- import oe from "../../_virtual/index6.js";
1
+ import { p as v } from "../../_virtual/index2.js";
2
+ import { t as U } from "../../_virtual/index3.js";
3
+ import oe from "../../_virtual/index4.js";
4
4
  const ce = Object.prototype.toString, he = Error.prototype.toString, fe = RegExp.prototype.toString, de = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", pe = /^Symbol\((.*)\)(.*)$/;
5
5
  function me(n) {
6
6
  return n != +n ? "NaN" : n === 0 && 1 / n < 0 ? "-0" : "" + n;
@@ -49,14 +49,14 @@ function l(e = "bottom-center") {
49
49
  }
50
50
  return (o = m.find((t) => t.id === e)) == null ? void 0 : o.element;
51
51
  }
52
- function i(e, o = "success", { position: t = "top-right", duration: a = 3e3 } = {}) {
53
- import("../_virtual/client.js").then((n) => n.c).then(({ createRoot: n }) => {
52
+ function c(e, o = "success", { position: t = "top-right", duration: a = 3e3 } = {}) {
53
+ import("react-dom/client").then(({ createRoot: r }) => {
54
54
  const s = l(t);
55
55
  if (!s) return;
56
- const r = document.createElement("div"), c = n(r), f = () => {
57
- c.unmount(), s.removeChild(r);
56
+ const n = document.createElement("div"), i = r(n), f = () => {
57
+ i.unmount(), s.removeChild(n);
58
58
  };
59
- c.render(
59
+ i.render(
60
60
  /* @__PURE__ */ d.jsx(
61
61
  h,
62
62
  {
@@ -66,29 +66,29 @@ function i(e, o = "success", { position: t = "top-right", duration: a = 3e3 } =
66
66
  onClose: f
67
67
  }
68
68
  )
69
- ), s.prepend(r), setTimeout(() => {
70
- r.classList.add("mt-[0.5rem]");
69
+ ), s.prepend(n), setTimeout(() => {
70
+ n.classList.add("mt-[0.5rem]");
71
71
  }, 10);
72
72
  });
73
73
  }
74
74
  const p = (e, o, t = {}) => {
75
- import("../_virtual/client.js").then((a) => a.c).then(({ createRoot: a }) => {
76
- const n = l(t.position);
77
- if (!n) return;
78
- const s = document.createElement("div"), r = a(s), c = () => {
79
- r.unmount(), n.removeChild(s);
75
+ import("react-dom/client").then(({ createRoot: a }) => {
76
+ const r = l(t.position);
77
+ if (!r) return;
78
+ const s = document.createElement("div"), n = a(s), i = () => {
79
+ n.unmount(), r.removeChild(s);
80
80
  };
81
- r.render(
81
+ n.render(
82
82
  /* @__PURE__ */ d.jsx(
83
83
  u,
84
84
  {
85
85
  promise: e,
86
86
  messages: o,
87
87
  options: t,
88
- onClose: c
88
+ onClose: i
89
89
  }
90
90
  )
91
- ), n.prepend(s), setTimeout(() => {
91
+ ), r.prepend(s), setTimeout(() => {
92
92
  s.classList.add("mt-[0.5rem]");
93
93
  }, 10);
94
94
  });
@@ -96,18 +96,18 @@ const p = (e, o, t = {}) => {
96
96
  let t = () => {
97
97
  }, a = () => {
98
98
  };
99
- const n = new Promise((s, r) => {
100
- t = s, a = r;
99
+ const r = new Promise((s, n) => {
100
+ t = s, a = n;
101
101
  });
102
- return p(n, e, o), {
102
+ return p(r, e, o), {
103
103
  resolve: t,
104
104
  reject: a
105
105
  };
106
106
  }, y = {
107
- success: (e, o = {}) => i(e, "success", o),
108
- error: (e, o = {}) => i(e, "error", o),
109
- warning: (e, o = {}) => i(e, "warning", o),
110
- info: (e, o = {}) => i(e, "info", o),
107
+ success: (e, o = {}) => c(e, "success", o),
108
+ error: (e, o = {}) => c(e, "error", o),
109
+ warning: (e, o = {}) => c(e, "warning", o),
110
+ info: (e, o = {}) => c(e, "info", o),
111
111
  async: (e, o, t = {}) => p(e, o, t),
112
112
  loading: (e, o = {}) => b(e, o)
113
113
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lawgic-dev-kit",
3
- "version": "0.13.0",
3
+ "version": "0.13.4",
4
4
  "description": "Componentes de UI para Lawgic",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,24 +0,0 @@
1
- import { __require as c } from "../node_modules/react-dom/client.js";
2
- function a(t, i) {
3
- for (var o = 0; o < i.length; o++) {
4
- const e = i[o];
5
- if (typeof e != "string" && !Array.isArray(e)) {
6
- for (const r in e)
7
- if (r !== "default" && !(r in t)) {
8
- const n = Object.getOwnPropertyDescriptor(e, r);
9
- n && Object.defineProperty(t, r, n.get ? n : {
10
- enumerable: !0,
11
- get: () => e[r]
12
- });
13
- }
14
- }
15
- }
16
- return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
17
- }
18
- var f = c();
19
- const l = /* @__PURE__ */ a({
20
- __proto__: null
21
- }, [f]);
22
- export {
23
- l as c
24
- };
@@ -1,4 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
@@ -1,4 +0,0 @@
1
- var o = { exports: {} };
2
- export {
3
- o as __module
4
- };
@@ -1,4 +0,0 @@
1
- var e = {};
2
- export {
3
- e as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var o = {};
2
- export {
3
- o as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var e = {};
2
- export {
3
- e as __exports
4
- };
@@ -1,4 +0,0 @@
1
- var r = {};
2
- export {
3
- r as __exports
4
- };