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