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 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
- [`&.${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.success.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(
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: i.palette.success.contrastText,
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
- ) : y ? /* @__PURE__ */ d(
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 ${o}`,
10100
- backgroundColor: gt(o, 0.2),
10101
- color: o,
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: m
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: l,
10120
- color: s,
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: m
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: s,
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((c, y) => /* @__PURE__ */ ee(
10153
+ children: e.map((p, c) => /* @__PURE__ */ ee(
10153
10154
  Vl,
10154
10155
  {
10155
- onMouseEnter: () => f(y),
10156
- onMouseLeave: () => f(null),
10157
- onClick: () => r == null ? void 0 : r(y),
10158
- completed: y < t,
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: p, children: [
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: y === t ? o : s
10178
+ color: c === t ? a : o
10178
10179
  },
10179
- children: c.label
10180
+ children: p.label
10180
10181
  }
10181
10182
  ),
10182
10183
  /* @__PURE__ */ d(
10183
10184
  qc,
10184
10185
  {
10185
10186
  size: "small",
10186
- colorHex: y < t ? a : y === t ? "#973B00" : s,
10187
- label: y < t ? "Completed" : y === t ? "In progress" : "Not started"
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(s, 0.38),
10198
+ color: gt(o, 0.38),
10198
10199
  mt: 0.5,
10199
10200
  width: "80%"
10200
10201
  },
10201
- children: c.description
10202
+ children: p.description
10202
10203
  }
10203
10204
  )
10204
10205
  ] }),
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" : "" })
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
- y !== e.length - 1 && /* @__PURE__ */ d(uo, { sx: { ml: 4.2, borderColor: i.palette.divider } })
10210
+ c !== e.length - 1 && /* @__PURE__ */ d(uo, { sx: { ml: 4.2, borderColor: i.palette.divider } })
10210
10211
  ]
10211
10212
  },
10212
- y
10213
+ c
10213
10214
  ))
10214
10215
  }
10215
10216
  );