@react-form-builder/components-rsuite 2.0.0 → 2.2.0

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.js CHANGED
@@ -1,5 +1,5 @@
1
- import { number as J, oneOf as I, color as U, readOnly as le, string as s, boolean as a, event as i, array as y, toLabeledValues as X, define as h, date as q, node as x, containerStyles as oA, useComponentData as aA, isString as se, time as RA, timeFormat as AA, someOf as ie, ComponentStore as GA, nodeArray as de, useBuilderContext as bA, BiDi as T, loadResource as hA, unloadResource as mA, createView as ce } from "@react-form-builder/core";
2
- import { jsx as r, jsxs as v, Fragment as L } from "@emotion/react/jsx-runtime";
1
+ import { number as J, oneOf as u, color as U, readOnly as le, string as s, boolean as a, event as i, array as y, toLabeledValues as X, define as h, date as q, node as x, containerStyles as oA, useComponentData as aA, isString as se, time as RA, timeFormat as AA, someOf as ie, ComponentStore as GA, nodeArray as de, useBuilderContext as bA, BiDi as T, loadResource as hA, unloadResource as mA, createView as ce } from "@react-form-builder/core";
2
+ import { jsx as r, jsxs as S, Fragment as L } from "@emotion/react/jsx-runtime";
3
3
  import { createElement as fe } from "@emotion/react";
4
4
  import { Table as he, Checkbox as wA, Input as _, Breadcrumb as EA, Button as eA, Calendar as MA, Panel as ue, Form as K, DatePicker as HA, Loader as JA, InputPicker as yA, Grid as ve, Row as Ie, Col as cA, InputGroup as PA, Header as Se, Content as ke, Footer as pe, Sidebar as Re, CustomProvider as Ee, Nav as tA, Message as Me, Progress as DA, RadioGroup as Pe, Radio as je, TagPicker as xe, Toggle as Ce, Whisper as Ge, Tooltip as be, Uploader as me, Steps as LA, ButtonToolbar as we } from "rsuite";
5
5
  import C from "@emotion/styled";
@@ -10,7 +10,7 @@ import { Visible as Le, EyeClose as Ne, Search as ze } from "@rsuite/icons";
10
10
  import { arEG as Qe, deDE as Ze, enUS as zA, itIT as We, frFR as Oe, esES as ge, zhCN as Ye, daDK as Ue, enGB as Te, esAR as Fe, fiFI as Xe, huHU as Ke, kkKZ as Be, koKR as Ve, nlNL as qe, ptBR as _e, svSE as $e, trTR as At, zhTW as et, jaJP as tt } from "rsuite/esm/locales/index.js";
11
11
  import { NumericFormat as nt, PatternFormat as rt } from "react-number-format";
12
12
  import ot from "signature_pad";
13
- const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA = I(
13
+ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA = u(
14
14
  "bottomStart",
15
15
  "bottomEnd",
16
16
  "topStart",
@@ -19,7 +19,7 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
19
19
  "rightStart",
20
20
  "leftEnd",
21
21
  "rightEnd"
22
- ), B = I(
22
+ ), B = u(
23
23
  "xs",
24
24
  "sm",
25
25
  "md",
@@ -30,9 +30,9 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
30
30
  "Medium",
31
31
  "Large"
32
32
  ).default("md"), lt = U.named("Background"), vA = {
33
- textAlign: I("start", "center", "end").default("start").radio().hinted("Text alignment"),
33
+ textAlign: u("start", "center", "end").default("start").radio().hinted("Text alignment"),
34
34
  fontSize: F.default(14).hinted("Font size"),
35
- fontWeight: I("lighter", "normal", "bold").default("normal"),
35
+ fontWeight: u("lighter", "normal", "bold").default("normal"),
36
36
  color: U
37
37
  }, D = le.hinted("Read only component").default(!1), IA = {
38
38
  placeholder: s.hinted("Input placeholder"),
@@ -40,9 +40,9 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
40
40
  disabled: a.hinted("Disabled component").default(!1),
41
41
  readOnly: D,
42
42
  onChange: i
43
- }, QA = I("h1", "h2", "h3", "h4", "h5", "h6").default("h4").hinted("Header level"), ZA = {
43
+ }, QA = u("h1", "h2", "h3", "h4", "h5", "h6").default("h4").hinted("Header level"), ZA = {
44
44
  activeKey: s.hinted("Active key, corresponding to one of items value").default("Item1"),
45
- appearance: I("default", "tabs", "subtle").default("default").hinted("A navigation can have different appearances"),
45
+ appearance: u("default", "tabs", "subtle").default("default").hinted("A navigation can have different appearances"),
46
46
  items: y.default(X(["Item1", "Item2", "Item3"])),
47
47
  justified: a.hinted("Justified navigation").default(!1),
48
48
  onSelect: i,
@@ -68,7 +68,7 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
68
68
  onCreate: i,
69
69
  onChange: i,
70
70
  onSearch: i
71
- }, st = I("start", "center", "end").default("start").radio(), WA = I("red", "orange", "yellow", "green", "cyan", "blue", "violet"), { Cell: it } = he, OA = C(it)`
71
+ }, st = u("start", "center", "end").default("start").radio(), WA = u("red", "orange", "yellow", "green", "cyan", "blue", "violet"), { Cell: it } = he, OA = C(it)`
72
72
  padding: 0;
73
73
 
74
74
  & .rs-table-cell-content {
@@ -80,23 +80,23 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
80
80
  top: 6px;
81
81
  }
82
82
  `, ct = ({ rowData: A, dataKey: e, rowIndex: t, onChange: n, ...o }) => {
83
- const l = (d, c) => {
84
- A[e] = c, n == null || n(c, e, t);
83
+ const l = (c, d) => {
84
+ A[e] = d, n == null || n(d, e, t);
85
85
  };
86
86
  return /* @__PURE__ */ r(OA, { ...o, children: /* @__PURE__ */ r(dt, { inline: !0, checked: A[e] ?? !1, onChange: l }) });
87
87
  }, Z = ({ rowData: A, dataKey: e, rowIndex: t, onChange: n, ...o }) => {
88
- const l = A[e] ?? "", d = m((c) => {
89
- A[e] = c, n == null || n(c, e, t);
88
+ const l = A[e] ?? "", c = m((d) => {
89
+ A[e] = d, n == null || n(d, e, t);
90
90
  }, [e, n, A, t]);
91
- return /* @__PURE__ */ r(OA, { ...o, children: /* @__PURE__ */ r(_, { value: l, onChange: d, size: "sm" }) });
91
+ return /* @__PURE__ */ r(OA, { ...o, children: /* @__PURE__ */ r(_, { value: l, onChange: c, size: "sm" }) });
92
92
  }, ft = (A) => A.map((e) => ({ title: e, href: e })), ht = [
93
93
  { name: "title", input: Z },
94
94
  { name: "href", title: "Url", input: Z },
95
95
  { name: "active", input: ct }
96
96
  ], ut = ({ items: A, onItemClick: e, ...t }) => /* @__PURE__ */ r(EA, { ...t, style: { display: "flex" }, children: A == null ? void 0 : A.map(
97
97
  (n) => {
98
- const { title: o = "", ...l } = n, d = () => e == null ? void 0 : e(n);
99
- return /* @__PURE__ */ fe(EA.Item, { ...l, onClick: d, key: o }, o);
98
+ const { title: o = "", ...l } = n, c = () => e == null ? void 0 : e(n);
99
+ return /* @__PURE__ */ fe(EA.Item, { ...l, onClick: c, key: o }, o);
100
100
  }
101
101
  ) }), vt = h(ut, "RsBreadcrumb").name("Breadcrumb").props({
102
102
  separator: s.default("/"),
@@ -105,10 +105,10 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
105
105
  onItemClick: i,
106
106
  onExpand: i
107
107
  }).css({
108
- justifyContent: I("left", "center", "right").default("left").radio().named("Alignment")
108
+ justifyContent: u("left", "center", "right").default("left").radio().named("Alignment")
109
109
  }), It = h(eA, "RsButton").name("Button").props({
110
110
  active: a.hinted("A button can show it is currently the active user selection").default(!1),
111
- appearance: I("default", "primary", "link", "subtle", "ghost").default("default").hinted("A button can have different appearances"),
111
+ appearance: u("default", "primary", "link", "subtle", "ghost").default("default").hinted("A button can have different appearances"),
112
112
  children: s.required.named("Content").default("Button"),
113
113
  color: WA,
114
114
  disabled: a.hinted("A button can show it is currently unable to be interacted with").default(!1),
@@ -135,7 +135,7 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
135
135
  backgroundColor: lt,
136
136
  textAlign: pt,
137
137
  color: Rt
138
- }), Mt = ({ header: A, title: e, headerSize: t, ...n }) => /* @__PURE__ */ r(ue, { header: /* @__PURE__ */ v(L, { children: [
138
+ }), Mt = ({ header: A, title: e, headerSize: t, ...n }) => /* @__PURE__ */ r(ue, { header: /* @__PURE__ */ S(L, { children: [
139
139
  !!e && /* @__PURE__ */ r(gA, { headerSize: t, content: e }),
140
140
  A
141
141
  ] }), ...n }), Pt = h(Mt, "RsCard").name("Card").props({
@@ -209,14 +209,14 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
209
209
  }
210
210
  return A;
211
211
  }, Nt = ({ label: A, value: e, className: t, format: n, defaultValue: o, ...l }) => {
212
- const d = Q(() => YA(n), [n]), c = W(l, "onClean"), f = Q(() => Lt(e), [e]);
213
- return /* @__PURE__ */ v(N, { className: t, children: [
212
+ const c = Q(() => YA(n), [n]), d = W(l, "onClean"), f = Q(() => Lt(e), [e]);
213
+ return /* @__PURE__ */ S(N, { className: t, children: [
214
214
  /* @__PURE__ */ r(K.ControlLabel, { children: A }),
215
- /* @__PURE__ */ r(HA, { ...l, value: f ?? o ?? null, format: d, onClean: c })
215
+ /* @__PURE__ */ r(HA, { ...l, value: f ?? o ?? null, format: c, onClean: d })
216
216
  ] });
217
217
  }, zt = h(Nt, "RsDatePicker").name("DatePicker").props({
218
218
  label: s.default("Date"),
219
- appearance: I("default", "subtle").hinted("Set picker appearance"),
219
+ appearance: u("default", "subtle").hinted("Set picker appearance"),
220
220
  calendarDefaultDate: q.hinted("Calendar panel default presentation date and time"),
221
221
  cleanable: a.hinted("Whether the selected value can be cleared").default(!1),
222
222
  defaultOpen: a.hinted("Default value of open property").default(!1),
@@ -258,7 +258,7 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
258
258
  size: B.hinted("A picker size"),
259
259
  value: q.valued.hinted("Value (Controlled)")
260
260
  }), SA = ({ data: A, onLoadData: e, value: t, preload: n, ...o }) => {
261
- const [l, d] = g(""), [c, f] = g(A ?? []), [S, E] = g(!1), M = (R) => R.value === t;
261
+ const [l, c] = g(""), [d, f] = g(A ?? []), [v, E] = g(!1), M = (R) => R.value === t;
262
262
  Y(() => {
263
263
  n && (e == null || e("", p, 0));
264
264
  }, [n, e]), Y(() => {
@@ -271,21 +271,21 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
271
271
  l && (e && E(!0), e == null || e(l, p, 0));
272
272
  }, [l]);
273
273
  const p = (R) => {
274
- let k = c;
275
- t && R.some(M) && (k = c.filter((z) => !M(z))), f([...k, ...R]), E(!1);
274
+ let k = d;
275
+ t && R.some(M) && (k = d.filter((z) => !M(z))), f([...k, ...R]), E(!1);
276
276
  };
277
- return { data: c, value: t, loading: S, listProps: {
277
+ return { data: d, value: t, loading: v, listProps: {
278
278
  onItemsRendered: ({ visibleStopIndex: R }) => {
279
- e && R >= c.length - 1 && (E(!0), e(l, p, c.length));
279
+ e && R >= d.length - 1 && (E(!0), e(l, p, d.length));
280
280
  }
281
281
  }, onSearch: (R) => {
282
282
  var k;
283
- e && f([]), d(R), (k = o.onSearch) == null || k.call(o, R);
283
+ e && f([]), c(R), (k = o.onSearch) == null || k.call(o, R);
284
284
  }, onOpen: () => {
285
285
  var R;
286
286
  (R = o.onOpen) == null || R.call(o), !t && !n && (e == null || e("", p, 0));
287
287
  }, onCreate: (R, k) => {
288
- f([k, ...c]), d("");
288
+ f([k, ...d]), c("");
289
289
  }, virtualized: !!e };
290
290
  }, TA = C(JA)`
291
291
  && {
@@ -297,12 +297,12 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
297
297
  width: 100%;
298
298
  padding-block: 10px;
299
299
  }
300
- `, Qt = ({ data: A, label: e, onLoadData: t, onSearch: n, onOpen: o, value: l = "", className: d, preload: c, ...f }) => {
301
- const { loading: S, ...E } = SA({ data: A, onLoadData: t, onSearch: n, onOpen: o, value: l, preload: c }), M = W(f, "onClean"), p = m((b) => /* @__PURE__ */ v(L, { children: [
300
+ `, Qt = ({ data: A, label: e, onLoadData: t, onSearch: n, onOpen: o, value: l = "", className: c, preload: d, ...f }) => {
301
+ const { loading: v, ...E } = SA({ data: A, onLoadData: t, onSearch: n, onOpen: o, value: l, preload: d }), M = W(f, "onClean"), p = m((b) => /* @__PURE__ */ S(L, { children: [
302
302
  b,
303
- S && /* @__PURE__ */ r(TA, {})
304
- ] }), [S]);
305
- return /* @__PURE__ */ v(N, { className: d, children: [
303
+ v && /* @__PURE__ */ r(TA, {})
304
+ ] }), [v]);
305
+ return /* @__PURE__ */ S(N, { className: c, children: [
306
306
  /* @__PURE__ */ r(K.ControlLabel, { children: e }),
307
307
  /* @__PURE__ */ r(
308
308
  yA,
@@ -319,7 +319,7 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
319
319
  preload: a.default(!1),
320
320
  label: s.default("Select"),
321
321
  data: y.default(X(["a", "b", "c"]))
322
- }), Wt = (A) => /* @__PURE__ */ r(L, { children: "Dropzone" }), Ot = h(Wt, "RsDropzone").name("Dropzone"), gt = ({ error: A, children: e, placement: t, className: n }) => /* @__PURE__ */ v(Yt, { className: NA(n, A ? "rs-form-control-wrapper" : void 0), children: [
322
+ }), Wt = (A) => /* @__PURE__ */ r(L, { children: "Dropzone" }), Ot = h(Wt, "RsDropzone").name("Dropzone"), gt = ({ error: A, children: e, placement: t, className: n }) => /* @__PURE__ */ S(Yt, { className: NA(n, A ? "rs-form-control-wrapper" : void 0), children: [
323
323
  e,
324
324
  /* @__PURE__ */ r(K.ErrorMessage, { show: !!A, placement: t ?? "bottomStart", children: A })
325
325
  ] }), Yt = C.div`
@@ -330,7 +330,7 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
330
330
  `, Ut = h(gt, "RsErrorMessage").name("Error message").props({
331
331
  placement: lA.default("bottomStart"),
332
332
  className: s
333
- }), Tt = (A) => /* @__PURE__ */ r(ve, { children: /* @__PURE__ */ v(Ie, { children: [
333
+ }), Tt = (A) => /* @__PURE__ */ r(ve, { children: /* @__PURE__ */ S(Ie, { children: [
334
334
  [].map(() => /* @__PURE__ */ r(cA, {})),
335
335
  /* @__PURE__ */ r(cA, { xs: 12, children: A.child1 }),
336
336
  /* @__PURE__ */ r(cA, { xs: 12, children: A.child2 })
@@ -344,20 +344,21 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
344
344
  src: s.required.default(jA).hinted("Image source"),
345
345
  alt: s.named("Description").default("Image").hinted("Image description")
346
346
  }).css({
347
- objectPosition: I("top", "bottom", "left", "right", "center").default("left"),
348
- objectFit: I("contain", "cover", "fill", "none", "scale-down").default("scale-down")
349
- }).preview(/* @__PURE__ */ r("img", { src: jA, width: "200px", height: "auto", alt: "Image" })), An = ({ style: A, className: e, label: t, passwordMask: n, value: o, ...l }) => {
350
- const [d, c] = g(!1), f = n ? /* @__PURE__ */ v(PA, { inside: !0, children: [
351
- /* @__PURE__ */ r(_, { type: d ? "text" : "password", value: o ?? "", ...l }),
352
- /* @__PURE__ */ r(PA.Button, { onClick: () => c(!d), children: d ? /* @__PURE__ */ r(Le, {}) : /* @__PURE__ */ r(Ne, {}) })
353
- ] }) : /* @__PURE__ */ r(_, { value: o ?? "", ...l });
354
- return /* @__PURE__ */ v(N, { style: A, className: e, children: [
347
+ objectPosition: u("top", "bottom", "left", "right", "center").default("left"),
348
+ objectFit: u("contain", "cover", "fill", "none", "scale-down").default("scale-down")
349
+ }).preview(/* @__PURE__ */ r("img", { src: jA, width: "200px", height: "auto", alt: "Image" })), An = ({ style: A, className: e, label: t, passwordMask: n, type: o, value: l, ...c }) => {
350
+ const [d, f] = g(!1), v = n ? /* @__PURE__ */ S(PA, { inside: !0, children: [
351
+ /* @__PURE__ */ r(_, { type: d ? "text" : "password", value: l ?? "", ...c }),
352
+ /* @__PURE__ */ r(PA.Button, { onClick: () => f(!d), children: d ? /* @__PURE__ */ r(Le, {}) : /* @__PURE__ */ r(Ne, {}) })
353
+ ] }) : /* @__PURE__ */ r(_, { type: o, value: l ?? "", ...c });
354
+ return /* @__PURE__ */ S(N, { style: A, className: e, children: [
355
355
  /* @__PURE__ */ r($, { children: t }),
356
- f
356
+ v
357
357
  ] });
358
358
  }, en = h(An, "RsInput").name("Input").props({
359
359
  label: s.default("Input").hinted("Input label"),
360
360
  ...IA,
361
+ type: u("text", "password", "email", "number", "search", "tel", "url", "time").default("text"),
361
362
  value: s.valued,
362
363
  passwordMask: a.default(!1)
363
364
  }), tn = ({ text: A, ...e }) => /* @__PURE__ */ r("label", { ...e, children: A }), nn = h(tn, "RsLabel").name("Label").props({
@@ -375,11 +376,11 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
375
376
  collapsible: a.hinted("Sidebar can be collapsed").default(!1),
376
377
  width: s.hinted("Width")
377
378
  }), sn = ({ text: A, download: e, downloadFilename: t, content: n, children: o, ...l }) => /* @__PURE__ */ r("a", { ...l, download: t ?? e, children: n === "text" ? A : o }), dn = h(sn, "RsLink").name("Link").props({
378
- content: I("text", "custom").default("text").radio(),
379
+ content: u("text", "custom").default("text").radio(),
379
380
  text: s.default("Link"),
380
381
  href: s,
381
382
  children: x.hinted("Component children"),
382
- target: I("_self", "_blank", "_parent", "_top", "_unfencedTop").default("_blank"),
383
+ target: u("_self", "_blank", "_parent", "_top", "_unfencedTop").default("_blank"),
383
384
  download: a.default(!1),
384
385
  downloadFilename: s,
385
386
  onClick: i
@@ -408,9 +409,9 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
408
409
  "ja-JP": tt
409
410
  }, fn = zA, zr = ({ language: A, children: e }) => /* @__PURE__ */ r(Ee, { rtl: A.bidi === "rtl", locale: cn[A.fullCode] ?? fn, children: e }), hn = (A) => A.map((e) => ({ title: e, href: e })), un = ({ onSelect: A, items: e, ...t }) => {
410
411
  const n = aA();
411
- return e != null && e.length ? /* @__PURE__ */ r(tA, { onSelect: (l, d) => {
412
- n.userDefinedProps ?? (n.userDefinedProps = {}), n.userDefinedProps.activeKey = l, A == null || A(l, d);
413
- }, ...t, children: e.map(({ title: l, href: d }, c) => /* @__PURE__ */ r(tA.Item, { href: d, eventKey: l, active: l === t.activeKey, children: l }, c)) }) : null;
412
+ return e != null && e.length ? /* @__PURE__ */ r(tA, { onSelect: (l, c) => {
413
+ n.userDefinedProps ?? (n.userDefinedProps = {}), n.userDefinedProps.activeKey = l, A == null || A(l, c);
414
+ }, ...t, children: e.map(({ title: l, href: c }, d) => /* @__PURE__ */ r(tA.Item, { href: c, eventKey: l, active: l === t.activeKey, children: l }, d)) }) : null;
414
415
  }, vn = [
415
416
  { name: "title", input: Z },
416
417
  { name: "href", title: "Url", input: Z }
@@ -426,7 +427,7 @@ const F = J.withEditorProps({ min: 0 }), at = J.withEditorProps({ min: 1 }), lA
426
427
  children: x,
427
428
  closable: a.default(!1),
428
429
  header: x,
429
- type: I("info", "success", "warning", "error").default("info")
430
+ type: u("info", "success", "warning", "error").default("info")
430
431
  }), FA = ({ onChange: A, ...e }) => /* @__PURE__ */ r(_, { onChange: (n, o) => A == null ? void 0 : A(o, n), ...e });
431
432
  function En(A) {
432
433
  let { decimalSeparator: e = "." } = A, { thousandSeparator: t } = A;
@@ -437,16 +438,16 @@ function En(A) {
437
438
  `), t = void 0, e = "."), t && se(t) && (t.indexOf("-") >= 0 ? (console.warn("Thousand separator can't contain '-' character"), t = void 0) : t.match(/\d/g) && (console.warn("Thousand separator should not contain numeric character"), t = void 0)), e.match(/\d/g) && (console.warn("Decimal separator should not contain numeric character"), e = "."), { decimalSeparator: e, thousandSeparator: t };
438
439
  }
439
440
  const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) => {
440
- const { decimalSeparator: d, thousandSeparator: c } = En(l);
441
- return /* @__PURE__ */ v(N, { style: A, className: e, children: [
441
+ const { decimalSeparator: c, thousandSeparator: d } = En(l);
442
+ return /* @__PURE__ */ S(N, { style: A, className: e, children: [
442
443
  /* @__PURE__ */ r($, { children: t }),
443
444
  /* @__PURE__ */ r(
444
445
  nt,
445
446
  {
446
447
  customInput: FA,
447
448
  ...l,
448
- decimalSeparator: d,
449
- thousandSeparator: c,
449
+ decimalSeparator: c,
450
+ thousandSeparator: d,
450
451
  onValueChange: (f) => n == null ? void 0 : n(f.value),
451
452
  value: o ?? ""
452
453
  }
@@ -464,19 +465,19 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
464
465
  fixedDecimalScale: a.default(!1),
465
466
  prefix: s,
466
467
  suffix: s,
467
- thousandsGroupStyle: I("thousand", "lakh", "wan", "none").default("none"),
468
+ thousandsGroupStyle: u("thousand", "lakh", "wan", "none").default("none"),
468
469
  thousandSeparator: s
469
- }), jn = ({ style: A, className: e, label: t, format: n, onChange: o, value: l, ...d }) => {
470
- let { mask: c } = d;
471
- return c && (c === "string" ? c : c.toString()).match(/\d/g) && (console.warn(`Mask ${c} should not contain numeric character, mask value will be ignored`), c = void 0), /* @__PURE__ */ v(N, { style: A, className: e, children: [
470
+ }), jn = ({ style: A, className: e, label: t, format: n, onChange: o, value: l, ...c }) => {
471
+ let { mask: d } = c;
472
+ return d && (d === "string" ? d : d.toString()).match(/\d/g) && (console.warn(`Mask ${d} should not contain numeric character, mask value will be ignored`), d = void 0), /* @__PURE__ */ S(N, { style: A, className: e, children: [
472
473
  /* @__PURE__ */ r($, { children: t }),
473
474
  /* @__PURE__ */ r(
474
475
  rt,
475
476
  {
476
477
  customInput: FA,
477
478
  format: n ?? "",
478
- ...d,
479
- mask: c,
479
+ ...c,
480
+ mask: d,
480
481
  onValueChange: (f) => o == null ? void 0 : o(f.formattedValue),
481
482
  value: l ?? ""
482
483
  }
@@ -494,26 +495,26 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
494
495
  classPrefix: s.default("progress").hinted("The prefix of the component CSS class"),
495
496
  percent: J.default(50).withEditorProps({ min: 0, max: 100 }).hinted("Percent of progress").valued,
496
497
  showInfo: a.default(!0).hinted("Show text"),
497
- status: I("success", "fail", "active").default("active").hinted("Progress status"),
498
+ status: u("success", "fail", "active").default("active").hinted("Progress status"),
498
499
  strokeColor: U.hinted("Line color"),
499
500
  strokeWidth: J.hinted("Line width")
500
501
  }, Cn = h(DA.Circle, "RsProgressCircle").name("Progress circle").props({
501
502
  ...XA,
502
503
  gapDegree: J.withEditorProps({ min: 0, max: 360 }).hinted("The gap degree of half circle, 0 ~ 360"),
503
- gapPosition: I("right", "top", "bottom", "left").default("top").hinted("Circular progress bar Notch position"),
504
- strokeLinecap: I("round", "square", "butt").default("round").hinted("The end of different types of open paths"),
504
+ gapPosition: u("right", "top", "bottom", "left").default("top").hinted("Circular progress bar Notch position"),
505
+ strokeLinecap: u("round", "square", "butt").default("round").hinted("The end of different types of open paths"),
505
506
  strokeWidth: J.default(6).hinted("Line width"),
506
507
  trailColor: U.hinted("Trail color"),
507
508
  trailWidth: J.default(6).hinted("Trail width")
508
509
  }), Gn = h(DA.Line, "RsProgressLine").name("Progress line").props({
509
510
  ...XA,
510
511
  vertical: a.default(!1).hinted("The progress bar is displayed vertically")
511
- }), bn = ({ items: A, label: e, value: t, className: n, ...o }) => /* @__PURE__ */ v("div", { className: n, children: [
512
+ }), bn = ({ items: A, label: e, value: t, className: n, ...o }) => /* @__PURE__ */ S("div", { className: n, children: [
512
513
  /* @__PURE__ */ r("label", { children: e }),
513
- /* @__PURE__ */ r(Pe, { ...o, value: t ?? "", children: A.map(({ value: l, label: d }, c) => /* @__PURE__ */ r(je, { value: l, children: d ?? l }, c)) })
514
+ /* @__PURE__ */ r(Pe, { ...o, value: t ?? "", children: A.map(({ value: l, label: c }, d) => /* @__PURE__ */ r(je, { value: l, children: c ?? l }, d)) })
514
515
  ] }), mn = h(bn, "RsRadioGroup").name("Radio group").props({
515
516
  name: s.default("RadioGroup").hinted("Radio group name"),
516
- appearance: I("default", "picker").labeled("Default", "Picker").default("default"),
517
+ appearance: u("default", "picker").labeled("Default", "Picker").default("default"),
517
518
  label: s.default("Radio"),
518
519
  disabled: a.hinted("The disable of component").default(!1),
519
520
  readOnly: D,
@@ -521,16 +522,16 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
521
522
  onChange: i,
522
523
  items: y.default(X(["a", "b", "c"])),
523
524
  value: s.valued.hinted("Radio group value")
524
- }), wn = () => null, Hn = ({ data: A, label: e, onLoadData: t, onSearch: n, value: o = "", className: l, preload: d, ...c }) => {
525
- const { loading: f, onOpen: S, ...E } = SA({ data: A, onLoadData: t, onSearch: n, value: o, preload: d }), M = (j) => {
525
+ }), wn = () => null, Hn = ({ data: A, label: e, onLoadData: t, onSearch: n, value: o = "", className: l, preload: c, ...d }) => {
526
+ const { loading: f, onOpen: v, ...E } = SA({ data: A, onLoadData: t, onSearch: n, value: o, preload: c }), M = (j) => {
526
527
  var P;
527
528
  return (P = E.data) != null && P.length ? j : null;
528
- }, p = W(c, "onClean"), b = f ? JA : ze;
529
- return /* @__PURE__ */ v(N, { className: l, children: [
529
+ }, p = W(d, "onClean"), b = f ? JA : ze;
530
+ return /* @__PURE__ */ S(N, { className: l, children: [
530
531
  /* @__PURE__ */ r(K.ControlLabel, { children: e }),
531
- /* @__PURE__ */ v(Jn, { children: [
532
- /* @__PURE__ */ r(yn, { ...c, ...E, onClean: p, renderMenu: M, caretAs: wn }),
533
- !(c.cleanable && o) && /* @__PURE__ */ r(b, { className: "search-icon" })
532
+ /* @__PURE__ */ S(Jn, { children: [
533
+ /* @__PURE__ */ r(yn, { ...d, ...E, onClean: p, renderMenu: M, caretAs: wn }),
534
+ !(d.cleanable && o) && /* @__PURE__ */ r(b, { className: "search-icon" })
534
535
  ] })
535
536
  ] });
536
537
  }, Jn = C.div`
@@ -574,11 +575,11 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
574
575
  width: n = 300,
575
576
  height: o = 150,
576
577
  className: l,
577
- onChange: d,
578
- backgroundColor: c,
578
+ onChange: c,
579
+ backgroundColor: d,
579
580
  readOnly: f,
580
- ...S
581
- } = A, E = V(t), M = V(S), p = V(null), b = V(), j = m(() => {
581
+ ...v
582
+ } = A, E = V(t), M = V(v), p = V(null), b = V(), j = m(() => {
582
583
  var k;
583
584
  return (k = b.current) == null ? void 0 : k.clear();
584
585
  }, []), [P, w] = g();
@@ -590,8 +591,8 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
590
591
  const O = { ratio: Math.max(window.devicePixelRatio ?? 1, 1), width: n, height: o };
591
592
  k.fromDataURL(E.current, O).catch(console.error);
592
593
  }
593
- return k.addEventListener("endStroke", () => d == null ? void 0 : d(k.toDataURL())), k.on(), w(k), b.current = k, () => k.off();
594
- }, [d, n, o]), Y(() => {
594
+ return k.addEventListener("endStroke", () => c == null ? void 0 : c(k.toDataURL())), k.on(), w(k), b.current = k, () => k.off();
595
+ }, [c, n, o]), Y(() => {
595
596
  if (f) {
596
597
  P == null || P.off();
597
598
  return;
@@ -599,22 +600,22 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
599
600
  return P == null || P.on(), () => P == null ? void 0 : P.off();
600
601
  }, [f, P]);
601
602
  const R = Q(
602
- () => ({ borderRadius: 6, backgroundColor: c }),
603
- [c]
603
+ () => ({ borderRadius: 6, backgroundColor: d }),
604
+ [d]
604
605
  );
605
606
  return /* @__PURE__ */ r("canvas", { ref: p, className: l, width: n, height: o, style: R });
606
- }), zn = ({ value: A, style: e, className: t, label: n, clearButtonText: o, readOnly: l, ...d }) => {
607
- const c = V(null), f = Q(
608
- () => ({ width: d.width, marginTop: 6 }),
609
- [d.width]
610
- ), S = W(d, "onChange"), E = m(() => {
607
+ }), zn = ({ value: A, style: e, className: t, label: n, clearButtonText: o, readOnly: l, ...c }) => {
608
+ const d = V(null), f = Q(
609
+ () => ({ width: c.width, marginTop: 6 }),
610
+ [c.width]
611
+ ), v = W(c, "onChange"), E = m(() => {
611
612
  var M;
612
- (M = c.current) == null || M.clear(), S(void 0);
613
- }, [S]);
614
- return /* @__PURE__ */ v(N, { style: e, className: t, children: [
615
- /* @__PURE__ */ v(KA, { children: [
613
+ (M = d.current) == null || M.clear(), v(void 0);
614
+ }, [v]);
615
+ return /* @__PURE__ */ S(N, { style: e, className: t, children: [
616
+ /* @__PURE__ */ S(KA, { children: [
616
617
  n && /* @__PURE__ */ r($, { children: n }),
617
- /* @__PURE__ */ r(Nn, { ...d, readOnly: l, value: A, ref: c, onChange: S })
618
+ /* @__PURE__ */ r(Nn, { ...c, readOnly: l, value: A, ref: d, onChange: v })
618
619
  ] }),
619
620
  !l && /* @__PURE__ */ r(eA, { onClick: E, disabled: !A, appearance: "primary", style: f, children: o })
620
621
  ] });
@@ -639,11 +640,11 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
639
640
  const l = aA();
640
641
  if (!(n != null && n.length))
641
642
  return null;
642
- const d = (f, S) => {
643
- l.userDefinedProps ?? (l.userDefinedProps = {}), l.userDefinedProps.activeKey = f, e == null || e(f, S);
644
- }, c = o.activeKey ?? (n == null ? void 0 : n[0].value);
645
- return /* @__PURE__ */ v(L, { children: [
646
- t === !0 && /* @__PURE__ */ r(gn, { onSelect: d, ...o, children: n.map((f, S) => /* @__PURE__ */ r(tA.Item, { eventKey: f.value, active: f.value === c, children: f.label }, S)) }),
643
+ const c = (f, v) => {
644
+ l.userDefinedProps ?? (l.userDefinedProps = {}), l.userDefinedProps.activeKey = f, e == null || e(f, v);
645
+ }, d = o.activeKey ?? (n == null ? void 0 : n[0].value);
646
+ return /* @__PURE__ */ S(L, { children: [
647
+ t === !0 && /* @__PURE__ */ r(gn, { onSelect: c, ...o, children: n.map((f, v) => /* @__PURE__ */ r(tA.Item, { eventKey: f.value, active: f.value === d, children: f.label }, v)) }),
647
648
  /* @__PURE__ */ r("div", { children: A })
648
649
  ] });
649
650
  }, gn = C(tA)`
@@ -658,20 +659,20 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
658
659
  var e;
659
660
  return `return parentProps.activeKey === '${((e = A.activeKey) == null ? void 0 : e.value) ?? A.activeKey}'`;
660
661
  }).calculable(!1).hinted("A child component of the tab")
661
- }), Un = ({ data: A, label: e, onLoadData: t, onSearch: n, onOpen: o, value: l = [], className: d, ...c }) => {
662
- const { loading: f, ...S } = SA({ data: A, onLoadData: t, onSearch: n, onOpen: o, value: l }), E = W(c, "onClean"), M = m((j) => /* @__PURE__ */ v(L, { children: [
662
+ }), Un = ({ data: A, label: e, onLoadData: t, onSearch: n, onOpen: o, value: l = [], className: c, ...d }) => {
663
+ const { loading: f, ...v } = SA({ data: A, onLoadData: t, onSearch: n, onOpen: o, value: l }), E = W(d, "onClean"), M = m((j) => /* @__PURE__ */ S(L, { children: [
663
664
  j,
664
665
  f && /* @__PURE__ */ r(TA, {})
665
666
  ] }), [f]), p = function(j) {
666
667
  return j && j.value && j.label;
667
668
  }, b = Array.isArray(A) ? A.filter(p) : X(A || []).filter(p);
668
- return /* @__PURE__ */ v(N, { className: d, children: [
669
+ return /* @__PURE__ */ S(N, { className: c, children: [
669
670
  /* @__PURE__ */ r(K.ControlLabel, { children: e }),
670
671
  /* @__PURE__ */ r(
671
672
  xe,
672
673
  {
673
- ...c,
674
- ...S,
674
+ ...d,
675
+ ...v,
675
676
  data: b,
676
677
  onClean: E,
677
678
  renderMenu: M
@@ -683,7 +684,7 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
683
684
  value: y.valued.ofString,
684
685
  label: nA.label.default("Select"),
685
686
  data: y.default(X(["a", "b", "c"]))
686
- }), Fn = ({ style: A, className: e, label: t, ...n }) => /* @__PURE__ */ v(N, { style: A, className: e, children: [
687
+ }), Fn = ({ style: A, className: e, label: t, ...n }) => /* @__PURE__ */ S(N, { style: A, className: e, children: [
687
688
  /* @__PURE__ */ r($, { children: t }),
688
689
  /* @__PURE__ */ r(_, { as: "textarea", ...n })
689
690
  ] }), Xn = h(Fn, "RsTextArea").name("Text area").props({
@@ -702,28 +703,28 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
702
703
  return isNaN(t.getTime()) ? (console.error("Invalid time string:", A), null) : t;
703
704
  }
704
705
  return A;
705
- }, Bn = ({ open: A, label: e, value: t, className: n, format: o, defaultValue: l, onChange: d, ...c }) => {
706
- const f = Q(() => YA(o), [o]), S = W(c, "onClean"), E = Q(() => xA(t, AA), [t]), M = Q(() => xA(l, AA), [l]), p = Q(() => A === !0 ? !0 : void 0, [A]), b = m((j, P) => {
706
+ }, Bn = ({ open: A, label: e, value: t, className: n, format: o, defaultValue: l, onChange: c, ...d }) => {
707
+ const f = Q(() => YA(o), [o]), v = W(d, "onClean"), E = Q(() => xA(t, AA), [t]), M = Q(() => xA(l, AA), [l]), p = Q(() => A === !0 ? !0 : void 0, [A]), b = m((j, P) => {
707
708
  if (j === null) {
708
- d == null || d(null, P);
709
+ c == null || c(null, P);
709
710
  return;
710
711
  }
711
712
  if (Kn(j)) {
712
713
  const w = uA(j, AA);
713
- d == null || d(w, P);
714
+ c == null || c(w, P);
714
715
  }
715
- }, [d]);
716
- return /* @__PURE__ */ v(N, { className: n, children: [
716
+ }, [c]);
717
+ return /* @__PURE__ */ S(N, { className: n, children: [
717
718
  /* @__PURE__ */ r(K.ControlLabel, { children: e }),
718
719
  /* @__PURE__ */ r(
719
720
  HA,
720
721
  {
721
- ...c,
722
+ ...d,
722
723
  onChange: b,
723
724
  value: E ?? M ?? null,
724
725
  open: p,
725
726
  format: f ?? AA,
726
- onClean: S,
727
+ onClean: v,
727
728
  preventOverflow: !0
728
729
  }
729
730
  )
@@ -763,14 +764,14 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
763
764
  unCheckedChildren: s.named("Unchecked text"),
764
765
  disabled: a.hinted("Whether disabled").default(!1),
765
766
  readOnly: D,
766
- size: I("sm", "md", "lg").labeled("Small", "Medium", "Large").default("md"),
767
+ size: u("sm", "md", "lg").labeled("Small", "Medium", "Large").default("md"),
767
768
  color: WA,
768
769
  loading: a.default(!1),
769
770
  onChange: i
770
771
  }), _n = ({ text: A, placement: e, trigger: t, children: n }) => n ? /* @__PURE__ */ r(Ge, { placement: e, trigger: t, speaker: /* @__PURE__ */ r(be, { children: A }), children: /* @__PURE__ */ r("div", { style: { width: "100%", height: "100%" }, children: n }) }) : null, $n = h(_n, "RsTooltip").name("Tooltip").props({
771
772
  text: s.required.default("Tooltip message...").hinted("Tooltip text"),
772
773
  children: x,
773
- placement: I(
774
+ placement: u(
774
775
  "top",
775
776
  "bottom",
776
777
  "right",
@@ -810,7 +811,7 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
810
811
  disabledFileItem: a.default(!1),
811
812
  draggable: a.default(!1),
812
813
  fileListVisible: a.default(!0),
813
- listType: I("text", "picture-text", "picture"),
814
+ listType: u("text", "picture-text", "picture"),
814
815
  method: s,
815
816
  multiple: a.default(!1),
816
817
  name: s,
@@ -826,7 +827,7 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
826
827
  timeout: F,
827
828
  withCredentials: a.default(!1),
828
829
  fileList: y.withEditorProps({ columns: nr }).valued
829
- }), or = () => /* @__PURE__ */ v("svg", { width: "18", height: "18", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
830
+ }), or = () => /* @__PURE__ */ S("svg", { width: "18", height: "18", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
830
831
  /* @__PURE__ */ r(
831
832
  "path",
832
833
  {
@@ -856,9 +857,9 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
856
857
  return e.props.label = { value: `Step ${A}` }, e;
857
858
  }, dr = {
858
859
  onAdd: (A, e, t) => {
859
- var d, c, f;
860
- const n = VA(A + 1), o = t.createComponentData(n), l = (d = e.store.props).activeIndex ?? (d.activeIndex = {});
861
- if (l.value = A, (c = e.children) != null && c.length) {
860
+ var c, d, f;
861
+ const n = VA(A + 1), o = t.createComponentData(n), l = (c = e.store.props).activeIndex ?? (c.activeIndex = {});
862
+ if (l.value = A, (d = e.children) != null && d.length) {
862
863
  (f = e.children[A - 1]) == null || f.insertAfterMe(o);
863
864
  return;
864
865
  }
@@ -877,12 +878,12 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
877
878
  label: (l = o.label) == null ? void 0 : l.value
878
879
  };
879
880
  })) ?? [], onChange: (o) => {
880
- o.forEach(({ label: l }, d) => {
881
+ o.forEach(({ label: l }, c) => {
881
882
  var f;
882
- if (!((f = A.children) != null && f[d]))
883
+ if (!((f = A.children) != null && f[c]))
883
884
  return;
884
- const { props: c } = A.children[d];
885
- c.label = { value: l };
885
+ const { props: d } = A.children[c];
886
+ d.label = { value: l };
886
887
  });
887
888
  } };
888
889
  }
@@ -923,7 +924,7 @@ const Mn = ({ style: A, className: e, label: t, onChange: n, value: o, ...l }) =
923
924
  &.active:hover .rs-steps-item-icon-wrapper {
924
925
  opacity: 0.8;
925
926
  }
926
- `, hr = () => /* @__PURE__ */ v("svg", { width: "18", height: "18", viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
927
+ `, hr = () => /* @__PURE__ */ S("svg", { width: "18", height: "18", viewBox: "0 0 18 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
927
928
  /* @__PURE__ */ r(
928
929
  "path",
929
930
  {
@@ -985,10 +986,10 @@ const ur = {
985
986
  onNext: n,
986
987
  onPrev: o,
987
988
  onFinish: l,
988
- showSteps: d,
989
- showStepsLabels: c,
989
+ showSteps: c,
990
+ showStepsLabels: d,
990
991
  verticalSteps: f,
991
- stepsNavigation: S,
992
+ stepsNavigation: v,
992
993
  prevButtonLabel: E,
993
994
  nextButtonLabel: M,
994
995
  finishButtonLabel: p,
@@ -1001,13 +1002,13 @@ const ur = {
1001
1002
  Y(() => {
1002
1003
  w < e && R(e);
1003
1004
  }, [w, e]);
1004
- const z = aA(), O = ((pA = z.store.children) == null ? void 0 : pA.map(({ props: u }) => {
1005
+ const z = aA(), O = ((pA = z.store.children) == null ? void 0 : pA.map(({ props: I }) => {
1005
1006
  var G;
1006
1007
  return {
1007
- label: (G = u.label) == null ? void 0 : G.value
1008
+ label: (G = I.label) == null ? void 0 : G.value
1008
1009
  };
1009
- })) ?? [], H = m((u) => {
1010
- w < u && R(u), t == null || t(u);
1010
+ })) ?? [], H = m((I) => {
1011
+ w < I && R(I), t == null || t(I);
1011
1012
  }, [w, t]), $A = m(() => {
1012
1013
  if (j) {
1013
1014
  z.validate().then(() => {
@@ -1017,26 +1018,26 @@ const ur = {
1017
1018
  }
1018
1019
  l == null || l();
1019
1020
  }, [z, l, j]), Ae = m(() => {
1020
- let u = e ?? 0;
1021
- u < O.length && (u = u + 1);
1021
+ let I = e ?? 0;
1022
+ I < O.length && (I = I + 1);
1022
1023
  const G = z.children[e];
1023
1024
  if (b) {
1024
1025
  G == null || G.validate().then(() => {
1025
- G != null && G.hasErrors || (H == null || H(u), n == null || n());
1026
+ G != null && G.hasErrors || (H == null || H(I), n == null || n());
1026
1027
  });
1027
1028
  return;
1028
1029
  }
1029
- H == null || H(u), n == null || n();
1030
+ H == null || H(I), n == null || n();
1030
1031
  }, [e, z.children, O.length, n, H, b]), ee = m(() => {
1031
- let u = e ?? 0;
1032
- u > 0 && (u = u - 1), H == null || H(u), o == null || o();
1033
- }, [e, o, H]), sA = m((u) => k || S === "any" || S === "onlyVisited" && u <= w, [w, k, S]), te = m((u) => u <= w ? "process" : "wait", [w]), ne = m((u) => {
1034
- sA(u) && H(u);
1032
+ let I = e ?? 0;
1033
+ I > 0 && (I = I - 1), H == null || H(I), o == null || o();
1034
+ }, [e, o, H]), sA = m((I) => k || v === "any" || v === "onlyVisited" && I <= w, [w, k, v]), te = m((I) => I <= w ? "process" : "wait", [w]), ne = m((I) => {
1035
+ sA(I) && H(I);
1035
1036
  }, [H, sA]), kA = e <= 0, iA = e >= O.length - 1, re = iA && p === M, oe = Q(() => ({
1036
1037
  display: "flex",
1037
1038
  flexDirection: f ? "row" : "column",
1038
1039
  gap: 10
1039
- }), [f]), dA = Array.isArray(A) ? A[e] ?? A[0] : null, ae = /* @__PURE__ */ v(we, { style: vr, className: "buttons", children: [
1040
+ }), [f]), dA = Array.isArray(A) ? A[e] ?? A[0] : null, ae = /* @__PURE__ */ S(we, { style: vr, className: "buttons", children: [
1040
1041
  !kA && /* @__PURE__ */ r(eA, { onClick: ee, disabled: kA, children: E }),
1041
1042
  /* @__PURE__ */ r(
1042
1043
  eA,
@@ -1048,13 +1049,13 @@ const ur = {
1048
1049
  }
1049
1050
  )
1050
1051
  ] });
1051
- return /* @__PURE__ */ v(KA, { style: ur, ...P, children: [
1052
- /* @__PURE__ */ v("div", { style: oe, children: [
1053
- d && !!dA && /* @__PURE__ */ r(LA, { current: e, vertical: f, className: "steps", children: O.map(
1054
- ({ label: u }, G) => /* @__PURE__ */ r(
1052
+ return /* @__PURE__ */ S(KA, { style: ur, ...P, children: [
1053
+ /* @__PURE__ */ S("div", { style: oe, children: [
1054
+ c && !!dA && /* @__PURE__ */ r(LA, { current: e, vertical: f, className: "steps", children: O.map(
1055
+ ({ label: I }, G) => /* @__PURE__ */ r(
1055
1056
  fr,
1056
1057
  {
1057
- title: c && u,
1058
+ title: d && I,
1058
1059
  onClick: () => ne(G),
1059
1060
  status: te(G),
1060
1061
  className: NA({ available: sA(G), active: G === e })
@@ -1079,7 +1080,7 @@ const ur = {
1079
1080
  };
1080
1081
  }
1081
1082
  }),
1082
- stepsNavigation: I("disable", "onlyVisited", "any").labeled("Disable", "Only visited", "Any").default("onlyVisited"),
1083
+ stepsNavigation: u("disable", "onlyVisited", "any").labeled("Disable", "Only visited", "Any").default("onlyVisited"),
1083
1084
  steps: y.default([]).withEditorProps(dr),
1084
1085
  children: de,
1085
1086
  prevButtonLabel: s.default("Previous"),