lawgic-dev-kit 0.23.2 → 0.23.6
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/_virtual/index2.js +2 -3
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index5.js +5 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/TextInput/TextInput.js +22 -22
- package/dist/components/atoms/Toast/Toast.js +5 -5
- package/dist/lawgic-dev-kit.umd.js +55 -55
- package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +27 -22
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/package.json +1 -1
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var t = r();
|
|
4
|
-
const s = /* @__PURE__ */ o(t);
|
|
1
|
+
import { __require as r } from "../node_modules/tiny-case/index.js";
|
|
2
|
+
var a = r();
|
|
5
3
|
export {
|
|
6
|
-
|
|
4
|
+
a as t
|
|
7
5
|
};
|
package/dist/_virtual/index5.js
CHANGED
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as l } from "../../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { useController as w } from "react-hook-form";
|
|
3
3
|
import { useTheme as v } from "../../../hooks/useTheme.js";
|
|
4
4
|
import "react";
|
|
5
5
|
const S = ({
|
|
6
|
-
label:
|
|
6
|
+
label: a,
|
|
7
7
|
control: x,
|
|
8
8
|
name: e,
|
|
9
9
|
placeholder: d,
|
|
10
10
|
className: i = "",
|
|
11
11
|
disabled: t = !1,
|
|
12
|
-
leftSide:
|
|
13
|
-
rightSide:
|
|
12
|
+
leftSide: n,
|
|
13
|
+
rightSide: u,
|
|
14
14
|
translateKey: p = "",
|
|
15
15
|
size: g = "md",
|
|
16
16
|
...m
|
|
17
17
|
}) => {
|
|
18
18
|
const {
|
|
19
|
-
field: { value:
|
|
19
|
+
field: { value: c = "", onChange: f, ref: b, onBlur: h },
|
|
20
20
|
fieldState: { error: r }
|
|
21
|
-
} = w({ name: e, control: x }), { t: s } = v(),
|
|
21
|
+
} = w({ name: e, control: x }), { t: s } = v(), o = {
|
|
22
22
|
sm: {
|
|
23
23
|
container: "px-16 py-8",
|
|
24
24
|
text: "text-sm",
|
|
@@ -34,25 +34,25 @@ const S = ({
|
|
|
34
34
|
gap: "gap-8"
|
|
35
35
|
}
|
|
36
36
|
}[g], $ = s(e), y = s(p);
|
|
37
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ l.jsxs(
|
|
38
38
|
"label",
|
|
39
39
|
{
|
|
40
|
-
className: `flex flex-col group select-none ${
|
|
40
|
+
className: `flex flex-col group select-none ${o.gap} ${t && "cursor-not-allowed"} ${i}`,
|
|
41
41
|
htmlFor: e,
|
|
42
42
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
a && /* @__PURE__ */ l.jsx(
|
|
44
44
|
"h6",
|
|
45
45
|
{
|
|
46
|
-
className: `text-gray-600 font-600 leading-none group ${r && "text-red-500!"} ${
|
|
47
|
-
children:
|
|
46
|
+
className: `text-gray-600 font-600 leading-none group ${r && "text-red-500!"} ${o.label} ${t && "text-gray-300"}`,
|
|
47
|
+
children: a
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ l.jsxs(
|
|
51
51
|
"label",
|
|
52
52
|
{
|
|
53
53
|
htmlFor: e,
|
|
54
54
|
className: `
|
|
55
|
-
flex items-center justify-between gap-8 ${
|
|
55
|
+
flex items-center justify-between gap-8 ${o.container}
|
|
56
56
|
|
|
57
57
|
${r && "border-red-500!"}
|
|
58
58
|
|
|
@@ -60,7 +60,7 @@ const S = ({
|
|
|
60
60
|
|
|
61
61
|
rounded-full border
|
|
62
62
|
|
|
63
|
-
${
|
|
63
|
+
${c && !t ? "border-blue-200" : "border-blue-100"}
|
|
64
64
|
${!t && "group-hover:border-blue-300"}
|
|
65
65
|
${t && "cursor-not-allowed"}
|
|
66
66
|
|
|
@@ -69,27 +69,27 @@ const S = ({
|
|
|
69
69
|
group-disabled:bg-gray-500
|
|
70
70
|
`,
|
|
71
71
|
children: [
|
|
72
|
-
|
|
73
|
-
/* @__PURE__ */
|
|
72
|
+
n && n,
|
|
73
|
+
/* @__PURE__ */ l.jsx(
|
|
74
74
|
"input",
|
|
75
75
|
{
|
|
76
76
|
id: e,
|
|
77
77
|
name: e,
|
|
78
78
|
disabled: t,
|
|
79
79
|
placeholder: d,
|
|
80
|
-
value:
|
|
81
|
-
onChange: (j) =>
|
|
80
|
+
value: c,
|
|
81
|
+
onChange: (j) => f(j.target.value),
|
|
82
82
|
onBlur: h,
|
|
83
|
-
ref:
|
|
84
|
-
className: `group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${
|
|
83
|
+
ref: b,
|
|
84
|
+
className: `group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${o.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,
|
|
85
85
|
...m
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
|
|
88
|
+
u && u
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
),
|
|
92
|
-
(r == null ? void 0 : r.message) && /* @__PURE__ */
|
|
92
|
+
(r == null ? void 0 : r.message) && /* @__PURE__ */ l.jsx("h4", { className: `font-500 text-red-500 leading-none ${o.error}`, children: s(r.message, { x: y || $ }) })
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { faXmark as b, faCircleInfo as s,
|
|
2
|
+
import { faXmark as b, faCircleInfo as s, faTriangleExclamation as g, faHexagonXmark as h, faCircleCheck as y } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
|
|
3
3
|
import { FontAwesomeIcon as x } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
|
|
4
4
|
import { useState as j, useEffect as f } from "react";
|
|
5
5
|
import { AnimatePresence as k } from "../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
@@ -21,13 +21,13 @@ const N = 500, B = ({
|
|
|
21
21
|
i = "text-red-500", t = "bg-red-100", a = h;
|
|
22
22
|
break;
|
|
23
23
|
case "warning":
|
|
24
|
-
i = "text-yellow-500", t = "bg-yellow-100", a =
|
|
24
|
+
i = "text-yellow-500", t = "bg-yellow-100", a = g;
|
|
25
25
|
break;
|
|
26
26
|
case "loading":
|
|
27
|
-
i = "text-
|
|
27
|
+
i = "text-blue-500", t = "bg-blue-100", a = s;
|
|
28
28
|
break;
|
|
29
29
|
case "notification":
|
|
30
|
-
i = "text-blue-500", t = "bg-blue-100", a =
|
|
30
|
+
i = "text-blue-500", t = "bg-blue-100", a = s;
|
|
31
31
|
break;
|
|
32
32
|
default:
|
|
33
33
|
i = "text-blue-500", t = "bg-blue-100", a = s;
|
|
@@ -93,7 +93,7 @@ const N = 500, B = ({
|
|
|
93
93
|
/* @__PURE__ */ e.jsxs("div", { className: "space-y-12", children: [
|
|
94
94
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-12", children: [
|
|
95
95
|
/* @__PURE__ */ e.jsx(x, { icon: a, className: `text-[20px] p-6 rounded-full self-start ${i} ${t}` }),
|
|
96
|
-
/* @__PURE__ */ e.jsx("h5", { className: "text-lg font-
|
|
96
|
+
/* @__PURE__ */ e.jsx("h5", { className: "text-lg font-semibold text-blue-900 self-center", children: r.title })
|
|
97
97
|
] }),
|
|
98
98
|
r.description && /* @__PURE__ */ e.jsx("span", { className: "text-md text-gray-500 leading-[16px]", children: r.description })
|
|
99
99
|
] })
|