finform-react-builder 1.12.6 → 1.12.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/index.es.js +47 -48
- package/dist/index.js +22 -22
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -10053,36 +10053,35 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10053
10053
|
...a
|
|
10054
10054
|
})
|
|
10055
10055
|
}
|
|
10056
|
-
), Qm = Et(jl)(({ theme: e }) => {
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10064
|
-
|
|
10065
|
-
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
return y ? /* @__PURE__ */ d(
|
|
10056
|
+
), Qm = Et(jl)(({ theme: e }) => ({
|
|
10057
|
+
[`&.${mr.vertical}`]: {
|
|
10058
|
+
marginLeft: 11
|
|
10059
|
+
// aligns with 24px icon
|
|
10060
|
+
},
|
|
10061
|
+
[`& .${mr.line}`]: {
|
|
10062
|
+
minHeight: 28,
|
|
10063
|
+
borderLeftWidth: 2,
|
|
10064
|
+
height: "70px",
|
|
10065
|
+
borderColor: e.palette.divider,
|
|
10066
|
+
transition: "border-color 0.3s ease",
|
|
10067
|
+
zIndex: -1
|
|
10068
|
+
},
|
|
10069
|
+
[`&.${mr.completed} .${mr.line}`]: {
|
|
10070
|
+
borderColor: e.palette.primary.main
|
|
10071
|
+
}
|
|
10072
|
+
})), Xy = ({ items: e, activeIndex: t = 1, onStepClick: r, sx: n }) => {
|
|
10073
|
+
const i = Oo(), a = i.palette.success.main, o = i.palette.primary.main, s = i.palette.text.primary, l = i.palette.mode === "dark" ? i.palette.grey[700] : i.palette.grey[300], [u, f] = Ot(null), p = (c) => {
|
|
10074
|
+
const { active: y, completed: E, icon: m } = c;
|
|
10075
|
+
return E ? /* @__PURE__ */ d(
|
|
10077
10076
|
K,
|
|
10078
10077
|
{
|
|
10079
10078
|
sx: {
|
|
10080
10079
|
width: 24,
|
|
10081
10080
|
height: 24,
|
|
10082
|
-
border: `1.2px solid ${
|
|
10081
|
+
border: `1.2px solid ${o}`,
|
|
10083
10082
|
borderRadius: "50%",
|
|
10084
|
-
backgroundColor:
|
|
10085
|
-
color:
|
|
10083
|
+
backgroundColor: o,
|
|
10084
|
+
color: i.palette.primary.contrastText,
|
|
10086
10085
|
display: "flex",
|
|
10087
10086
|
alignItems: "center",
|
|
10088
10087
|
justifyContent: "center",
|
|
@@ -10090,16 +10089,16 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10090
10089
|
},
|
|
10091
10090
|
children: /* @__PURE__ */ d(Io, { sx: { fontSize: 16, fontWeight: 600 } })
|
|
10092
10091
|
}
|
|
10093
|
-
) :
|
|
10092
|
+
) : y ? /* @__PURE__ */ d(
|
|
10094
10093
|
K,
|
|
10095
10094
|
{
|
|
10096
10095
|
sx: {
|
|
10097
10096
|
width: 24,
|
|
10098
10097
|
height: 24,
|
|
10099
10098
|
borderRadius: "50%",
|
|
10100
|
-
border: `1.2px solid ${
|
|
10101
|
-
backgroundColor: gt(
|
|
10102
|
-
color:
|
|
10099
|
+
border: `1.2px solid ${o}`,
|
|
10100
|
+
backgroundColor: gt(o, 0.2),
|
|
10101
|
+
color: o,
|
|
10103
10102
|
display: "flex",
|
|
10104
10103
|
alignItems: "center",
|
|
10105
10104
|
justifyContent: "center",
|
|
@@ -10108,7 +10107,7 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10108
10107
|
zIndex: 1e3,
|
|
10109
10108
|
overflow: "hidden"
|
|
10110
10109
|
},
|
|
10111
|
-
children:
|
|
10110
|
+
children: m
|
|
10112
10111
|
}
|
|
10113
10112
|
) : /* @__PURE__ */ d(
|
|
10114
10113
|
K,
|
|
@@ -10117,8 +10116,8 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10117
10116
|
width: 24,
|
|
10118
10117
|
height: 24,
|
|
10119
10118
|
borderRadius: "50%",
|
|
10120
|
-
backgroundColor:
|
|
10121
|
-
color:
|
|
10119
|
+
backgroundColor: l,
|
|
10120
|
+
color: s,
|
|
10122
10121
|
display: "flex",
|
|
10123
10122
|
alignItems: "center",
|
|
10124
10123
|
justifyContent: "center",
|
|
@@ -10126,7 +10125,7 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10126
10125
|
fontSize: 12,
|
|
10127
10126
|
zIndex: 1e3
|
|
10128
10127
|
},
|
|
10129
|
-
children:
|
|
10128
|
+
children: m
|
|
10130
10129
|
}
|
|
10131
10130
|
);
|
|
10132
10131
|
};
|
|
@@ -10142,7 +10141,7 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10142
10141
|
},
|
|
10143
10142
|
"& .MuiStepLabel-label": {
|
|
10144
10143
|
fontSize: 14,
|
|
10145
|
-
color:
|
|
10144
|
+
color: s,
|
|
10146
10145
|
fontWeight: 500
|
|
10147
10146
|
},
|
|
10148
10147
|
"& .MuiStep-root": {
|
|
@@ -10150,13 +10149,13 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10150
10149
|
},
|
|
10151
10150
|
...n
|
|
10152
10151
|
},
|
|
10153
|
-
children: e.map((
|
|
10152
|
+
children: e.map((c, y) => /* @__PURE__ */ ee(
|
|
10154
10153
|
Vl,
|
|
10155
10154
|
{
|
|
10156
|
-
onMouseEnter: () =>
|
|
10157
|
-
onMouseLeave: () =>
|
|
10158
|
-
onClick: () => r == null ? void 0 : r(
|
|
10159
|
-
completed:
|
|
10155
|
+
onMouseEnter: () => f(y),
|
|
10156
|
+
onMouseLeave: () => f(null),
|
|
10157
|
+
onClick: () => r == null ? void 0 : r(y),
|
|
10158
|
+
completed: y < t,
|
|
10160
10159
|
children: [
|
|
10161
10160
|
/* @__PURE__ */ ee(
|
|
10162
10161
|
K,
|
|
@@ -10167,7 +10166,7 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10167
10166
|
alignItems: "flex-start"
|
|
10168
10167
|
},
|
|
10169
10168
|
children: [
|
|
10170
|
-
/* @__PURE__ */ ee(Nl, { StepIconComponent:
|
|
10169
|
+
/* @__PURE__ */ ee(Nl, { StepIconComponent: p, children: [
|
|
10171
10170
|
/* @__PURE__ */ ee(K, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
10172
10171
|
/* @__PURE__ */ d(
|
|
10173
10172
|
fe,
|
|
@@ -10175,17 +10174,17 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10175
10174
|
sx: {
|
|
10176
10175
|
fontSize: 14,
|
|
10177
10176
|
fontWeight: 500,
|
|
10178
|
-
color:
|
|
10177
|
+
color: y === t ? o : s
|
|
10179
10178
|
},
|
|
10180
|
-
children:
|
|
10179
|
+
children: c.label
|
|
10181
10180
|
}
|
|
10182
10181
|
),
|
|
10183
10182
|
/* @__PURE__ */ d(
|
|
10184
10183
|
qc,
|
|
10185
10184
|
{
|
|
10186
10185
|
size: "small",
|
|
10187
|
-
colorHex:
|
|
10188
|
-
label:
|
|
10186
|
+
colorHex: y < t ? a : y === t ? "#973B00" : s,
|
|
10187
|
+
label: y < t ? "Completed" : y === t ? "In progress" : "Not started"
|
|
10189
10188
|
}
|
|
10190
10189
|
)
|
|
10191
10190
|
] }),
|
|
@@ -10195,22 +10194,22 @@ const Ym = Et(jl)(({ theme: e }) => {
|
|
|
10195
10194
|
sx: {
|
|
10196
10195
|
fontSize: 12,
|
|
10197
10196
|
fontWeight: 400,
|
|
10198
|
-
color: gt(
|
|
10197
|
+
color: gt(s, 0.38),
|
|
10199
10198
|
mt: 0.5,
|
|
10200
10199
|
width: "80%"
|
|
10201
10200
|
},
|
|
10202
|
-
children:
|
|
10201
|
+
children: c.description
|
|
10203
10202
|
}
|
|
10204
10203
|
)
|
|
10205
10204
|
] }),
|
|
10206
|
-
|
|
10205
|
+
u === y && /* @__PURE__ */ d(Ze, { sx: { display: y > t ? "none" : "block" }, variant: y < t ? "outlined" : "contained", size: "small", color: "primary", children: y < t ? "Edit" : y === t ? "Complete" : "" })
|
|
10207
10206
|
]
|
|
10208
10207
|
}
|
|
10209
10208
|
),
|
|
10210
|
-
|
|
10209
|
+
y !== e.length - 1 && /* @__PURE__ */ d(uo, { sx: { ml: 4.2, borderColor: i.palette.divider } })
|
|
10211
10210
|
]
|
|
10212
10211
|
},
|
|
10213
|
-
|
|
10212
|
+
y
|
|
10214
10213
|
))
|
|
10215
10214
|
}
|
|
10216
10215
|
);
|