strapi-custom-auth 1.2.1 → 1.2.3
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.
|
@@ -8,17 +8,19 @@ const DynamicExpenses = ({
|
|
|
8
8
|
description,
|
|
9
9
|
disabled,
|
|
10
10
|
error,
|
|
11
|
-
intlLabel,
|
|
12
11
|
name,
|
|
13
12
|
onChange,
|
|
14
|
-
|
|
13
|
+
label,
|
|
15
14
|
required,
|
|
16
15
|
value
|
|
17
16
|
}) => {
|
|
18
|
-
const
|
|
17
|
+
const tempValue = value ? value.split(":")[0] : null;
|
|
18
|
+
const [selection, setSelection] = React.useState(
|
|
19
|
+
tempValue === "p" ? "percentuali" : tempValue === "f" ? "fisse" : "nessuna"
|
|
20
|
+
);
|
|
19
21
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "12px" }, children: [
|
|
20
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: "bold", fontSize: "12px", marginBottom: "8px" }, children: name }),
|
|
21
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", justifyContent: "start", gap: "15px", marginBottom: "
|
|
22
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: "bold", fontSize: "12px", marginBottom: "8px" }, children: label ?? name }),
|
|
23
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", justifyContent: "start", gap: "15px", marginBottom: "12px" }, children: ["nessuna", "percentuali", "fisse"].map((option) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22
24
|
"label",
|
|
23
25
|
{
|
|
24
26
|
style: { display: "flex", alignItems: "center", gap: "5px", fontSize: "12px" },
|
|
@@ -6,17 +6,19 @@ const DynamicExpenses = ({
|
|
|
6
6
|
description,
|
|
7
7
|
disabled,
|
|
8
8
|
error,
|
|
9
|
-
intlLabel,
|
|
10
9
|
name,
|
|
11
10
|
onChange,
|
|
12
|
-
|
|
11
|
+
label,
|
|
13
12
|
required,
|
|
14
13
|
value
|
|
15
14
|
}) => {
|
|
16
|
-
const
|
|
15
|
+
const tempValue = value ? value.split(":")[0] : null;
|
|
16
|
+
const [selection, setSelection] = useState(
|
|
17
|
+
tempValue === "p" ? "percentuali" : tempValue === "f" ? "fisse" : "nessuna"
|
|
18
|
+
);
|
|
17
19
|
return /* @__PURE__ */ jsxs("div", { style: { fontSize: "12px" }, children: [
|
|
18
|
-
/* @__PURE__ */ jsx("div", { style: { fontWeight: "bold", fontSize: "12px", marginBottom: "8px" }, children: name }),
|
|
19
|
-
/* @__PURE__ */ jsx("div", { style: { display: "flex", justifyContent: "start", gap: "15px", marginBottom: "
|
|
20
|
+
/* @__PURE__ */ jsx("div", { style: { fontWeight: "bold", fontSize: "12px", marginBottom: "8px" }, children: label ?? name }),
|
|
21
|
+
/* @__PURE__ */ jsx("div", { style: { display: "flex", justifyContent: "start", gap: "15px", marginBottom: "12px" }, children: ["nessuna", "percentuali", "fisse"].map((option) => /* @__PURE__ */ jsxs(
|
|
20
22
|
"label",
|
|
21
23
|
{
|
|
22
24
|
style: { display: "flex", alignItems: "center", gap: "5px", fontSize: "12px" },
|
package/dist/admin/index.js
CHANGED
|
@@ -60,7 +60,7 @@ const index = {
|
|
|
60
60
|
defaultMessage: "Create your Dynamic Expenses"
|
|
61
61
|
},
|
|
62
62
|
components: {
|
|
63
|
-
Input: async () => Promise.resolve().then(() => require("../_chunks/DynamicExpenses-
|
|
63
|
+
Input: async () => Promise.resolve().then(() => require("../_chunks/DynamicExpenses-BHR_Q51B.js")).then((module2) => ({
|
|
64
64
|
default: module2.DynamicExpenses
|
|
65
65
|
}))
|
|
66
66
|
}
|
package/dist/admin/index.mjs
CHANGED
|
@@ -59,7 +59,7 @@ const index = {
|
|
|
59
59
|
defaultMessage: "Create your Dynamic Expenses"
|
|
60
60
|
},
|
|
61
61
|
components: {
|
|
62
|
-
Input: async () => import("../_chunks/DynamicExpenses-
|
|
62
|
+
Input: async () => import("../_chunks/DynamicExpenses-DaUi-YZE.mjs").then((module) => ({
|
|
63
63
|
default: module.DynamicExpenses
|
|
64
64
|
}))
|
|
65
65
|
}
|
package/package.json
CHANGED