@apipass/design-system 1.6.0 → 1.6.2

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/lib/index.js CHANGED
@@ -620,8 +620,8 @@ function ge(e, r) {
620
620
  var n, i, s, a, d = [], u = !0, C = !1;
621
621
  try {
622
622
  if (s = (o = o.call(e)).next, r !== 0) for (; !(u = (n = s.call(o)).done) && (d.push(n.value), d.length !== r); u = !0) ;
623
- } catch (f) {
624
- C = !0, i = f;
623
+ } catch (k) {
624
+ C = !0, i = k;
625
625
  } finally {
626
626
  try {
627
627
  if (!u && o.return != null && (a = o.return(), Object(a) !== a)) return;
@@ -802,8 +802,8 @@ function Te(e) {
802
802
  current: e
803
803
  }, n = _3(Oe)(o, r), i = _3(Se)(o), s = _3(E3.changes)(e), a = _3(Ee)(o);
804
804
  function d() {
805
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(f) {
806
- return f;
805
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(k) {
806
+ return k;
807
807
  };
808
808
  return E3.selector(C), C(o.current);
809
809
  }
@@ -1027,46 +1027,46 @@ function f9(e, r, o, n) {
1027
1027
  function q6(e, r) {
1028
1028
  return e.Uri.parse(r);
1029
1029
  }
1030
- function L9({ original: e, modified: r, language: o, originalLanguage: n, modifiedLanguage: i, originalModelPath: s, modifiedModelPath: a, keepCurrentOriginalModel: d = !1, keepCurrentModifiedModel: u = !1, theme: C = "light", loading: f = "Loading...", options: p = {}, height: b = "100%", width: V = "100%", className: M, wrapperProps: g = {}, beforeMount: W = $3, onMount: y = $3 }) {
1030
+ function L9({ original: e, modified: r, language: o, originalLanguage: n, modifiedLanguage: i, originalModelPath: s, modifiedModelPath: a, keepCurrentOriginalModel: d = !1, keepCurrentModifiedModel: u = !1, theme: C = "light", loading: k = "Loading...", options: p = {}, height: b = "100%", width: V = "100%", className: M, wrapperProps: g = {}, beforeMount: W = $3, onMount: y = $3 }) {
1031
1031
  let [j, X] = E(!1), [Q, I] = E(!0), Z = v(null), N = v(null), n3 = v(null), T = v(y), H = v(W), J = v(!1);
1032
1032
  U6(() => {
1033
- let k = z6.init();
1034
- return k.then((w) => (N.current = w) && I(!1)).catch((w) => (w == null ? void 0 : w.type) !== "cancelation" && console.error("Monaco initialization: error:", w)), () => Z.current ? c3() : k.cancel();
1033
+ let f = z6.init();
1034
+ return f.then((w) => (N.current = w) && I(!1)).catch((w) => (w == null ? void 0 : w.type) !== "cancelation" && console.error("Monaco initialization: error:", w)), () => Z.current ? c3() : f.cancel();
1035
1035
  }), A(() => {
1036
1036
  if (Z.current && N.current) {
1037
- let k = Z.current.getOriginalEditor(), w = g3(N.current, e || "", n || o || "text", s || "");
1038
- w !== k.getModel() && k.setModel(w);
1037
+ let f = Z.current.getOriginalEditor(), w = g3(N.current, e || "", n || o || "text", s || "");
1038
+ w !== f.getModel() && f.setModel(w);
1039
1039
  }
1040
1040
  }, [s], j), A(() => {
1041
1041
  if (Z.current && N.current) {
1042
- let k = Z.current.getModifiedEditor(), w = g3(N.current, r || "", i || o || "text", a || "");
1043
- w !== k.getModel() && k.setModel(w);
1042
+ let f = Z.current.getModifiedEditor(), w = g3(N.current, r || "", i || o || "text", a || "");
1043
+ w !== f.getModel() && f.setModel(w);
1044
1044
  }
1045
1045
  }, [a], j), A(() => {
1046
- let k = Z.current.getModifiedEditor();
1047
- k.getOption(N.current.editor.EditorOption.readOnly) ? k.setValue(r || "") : r !== k.getValue() && (k.executeEdits("", [{ range: k.getModel().getFullModelRange(), text: r || "", forceMoveMarkers: !0 }]), k.pushUndoStop());
1046
+ let f = Z.current.getModifiedEditor();
1047
+ f.getOption(N.current.editor.EditorOption.readOnly) ? f.setValue(r || "") : r !== f.getValue() && (f.executeEdits("", [{ range: f.getModel().getFullModelRange(), text: r || "", forceMoveMarkers: !0 }]), f.pushUndoStop());
1048
1048
  }, [r], j), A(() => {
1049
- var k, w;
1050
- (w = (k = Z.current) == null ? void 0 : k.getModel()) == null || w.original.setValue(e || "");
1049
+ var f, w;
1050
+ (w = (f = Z.current) == null ? void 0 : f.getModel()) == null || w.original.setValue(e || "");
1051
1051
  }, [e], j), A(() => {
1052
- let { original: k, modified: w } = Z.current.getModel();
1053
- N.current.editor.setModelLanguage(k, n || o || "text"), N.current.editor.setModelLanguage(w, i || o || "text");
1052
+ let { original: f, modified: w } = Z.current.getModel();
1053
+ N.current.editor.setModelLanguage(f, n || o || "text"), N.current.editor.setModelLanguage(w, i || o || "text");
1054
1054
  }, [o, n, i], j), A(() => {
1055
- var k;
1056
- (k = N.current) == null || k.editor.setTheme(C);
1055
+ var f;
1056
+ (f = N.current) == null || f.editor.setTheme(C);
1057
1057
  }, [C], j), A(() => {
1058
- var k;
1059
- (k = Z.current) == null || k.updateOptions(p);
1058
+ var f;
1059
+ (f = Z.current) == null || f.updateOptions(p);
1060
1060
  }, [p], j);
1061
1061
  let i3 = O(() => {
1062
1062
  var U;
1063
1063
  if (!N.current) return;
1064
1064
  H.current(N.current);
1065
- let k = g3(N.current, e || "", n || o || "text", s || ""), w = g3(N.current, r || "", i || o || "text", a || "");
1066
- (U = Z.current) == null || U.setModel({ original: k, modified: w });
1065
+ let f = g3(N.current, e || "", n || o || "text", s || ""), w = g3(N.current, r || "", i || o || "text", a || "");
1066
+ (U = Z.current) == null || U.setModel({ original: f, modified: w });
1067
1067
  }, [o, r, i, e, n, s, a]), a3 = O(() => {
1068
- var k;
1069
- !J.current && n3.current && (Z.current = N.current.editor.createDiffEditor(n3.current, { automaticLayout: !0, ...p }), i3(), (k = N.current) == null || k.editor.setTheme(C), X(!0), J.current = !0);
1068
+ var f;
1069
+ !J.current && n3.current && (Z.current = N.current.editor.createDiffEditor(n3.current, { automaticLayout: !0, ...p }), i3(), (f = N.current) == null || f.editor.setTheme(C), X(!0), J.current = !0);
1070
1070
  }, [p, C, i3]);
1071
1071
  x(() => {
1072
1072
  j && T.current(Z.current, N.current);
@@ -1075,10 +1075,10 @@ function L9({ original: e, modified: r, language: o, originalLanguage: n, modifi
1075
1075
  }, [Q, j, a3]);
1076
1076
  function c3() {
1077
1077
  var w, U, q, Y;
1078
- let k = (w = Z.current) == null ? void 0 : w.getModel();
1079
- d || ((U = k == null ? void 0 : k.original) == null || U.dispose()), u || ((q = k == null ? void 0 : k.modified) == null || q.dispose()), (Y = Z.current) == null || Y.dispose();
1078
+ let f = (w = Z.current) == null ? void 0 : w.getModel();
1079
+ d || ((U = f == null ? void 0 : f.original) == null || U.dispose()), u || ((q = f == null ? void 0 : f.modified) == null || q.dispose()), (Y = Z.current) == null || Y.dispose();
1080
1080
  }
1081
- return $.createElement(G6, { width: V, height: b, isEditorReady: j, loading: f, _ref: n3, className: M, wrapperProps: g });
1081
+ return $.createElement(G6, { width: V, height: b, isEditorReady: j, loading: k, _ref: n3, className: M, wrapperProps: g });
1082
1082
  }
1083
1083
  var g9 = L9;
1084
1084
  h6(g9);
@@ -1089,8 +1089,8 @@ function v9(e) {
1089
1089
  }, [e]), r.current;
1090
1090
  }
1091
1091
  var M9 = v9, S3 = /* @__PURE__ */ new Map();
1092
- function m9({ defaultValue: e, defaultLanguage: r, defaultPath: o, value: n, language: i, path: s, theme: a = "light", line: d, loading: u = "Loading...", options: C = {}, overrideServices: f = {}, saveViewState: p = !0, keepCurrentModel: b = !1, width: V = "100%", height: M = "100%", className: g, wrapperProps: W = {}, beforeMount: y = $3, onMount: j = $3, onChange: X, onValidate: Q = $3 }) {
1093
- let [I, Z] = E(!1), [N, n3] = E(!0), T = v(null), H = v(null), J = v(null), i3 = v(j), a3 = v(y), c3 = v(), k = v(n), w = M9(s), U = v(!1), q = v(!1);
1092
+ function m9({ defaultValue: e, defaultLanguage: r, defaultPath: o, value: n, language: i, path: s, theme: a = "light", line: d, loading: u = "Loading...", options: C = {}, overrideServices: k = {}, saveViewState: p = !0, keepCurrentModel: b = !1, width: V = "100%", height: M = "100%", className: g, wrapperProps: W = {}, beforeMount: y = $3, onMount: j = $3, onChange: X, onValidate: Q = $3 }) {
1093
+ let [I, Z] = E(!1), [N, n3] = E(!0), T = v(null), H = v(null), J = v(null), i3 = v(j), a3 = v(y), c3 = v(), f = v(n), w = M9(s), U = v(!1), q = v(!1);
1094
1094
  U6(() => {
1095
1095
  let m = z6.init();
1096
1096
  return m.then((P) => (T.current = P) && n3(!1)).catch((P) => (P == null ? void 0 : P.type) !== "cancelation" && console.error("Monaco initialization: error:", P)), () => H.current ? b3() : m.cancel();
@@ -1119,14 +1119,14 @@ function m9({ defaultValue: e, defaultLanguage: r, defaultPath: o, value: n, lan
1119
1119
  if (!(!J.current || !T.current) && !U.current) {
1120
1120
  a3.current(T.current);
1121
1121
  let P = s || o, L = g3(T.current, n || e || "", r || i || "", P || "");
1122
- H.current = (m = T.current) == null ? void 0 : m.editor.create(J.current, { model: L, automaticLayout: !0, ...C }, f), p && H.current.restoreViewState(S3.get(P)), T.current.editor.setTheme(a), d !== void 0 && H.current.revealLine(d), Z(!0), U.current = !0;
1122
+ H.current = (m = T.current) == null ? void 0 : m.editor.create(J.current, { model: L, automaticLayout: !0, ...C }, k), p && H.current.restoreViewState(S3.get(P)), T.current.editor.setTheme(a), d !== void 0 && H.current.revealLine(d), Z(!0), U.current = !0;
1123
1123
  }
1124
- }, [e, r, o, n, i, s, C, f, p, a, d]);
1124
+ }, [e, r, o, n, i, s, C, k, p, a, d]);
1125
1125
  x(() => {
1126
1126
  I && i3.current(H.current, T.current);
1127
1127
  }, [I]), x(() => {
1128
1128
  !N && !I && Y();
1129
- }, [N, I, Y]), k.current = n, x(() => {
1129
+ }, [N, I, Y]), f.current = n, x(() => {
1130
1130
  var m, P;
1131
1131
  I && X && ((m = c3.current) == null || m.dispose(), c3.current = (P = H.current) == null ? void 0 : P.onDidChangeModelContent((L) => {
1132
1132
  q.current || X(H.current.getValue(), L);
@@ -1166,11 +1166,11 @@ function K6({
1166
1166
  isReadOnly: d = !1,
1167
1167
  options: u,
1168
1168
  className: C,
1169
- editorRef: f
1169
+ editorRef: k
1170
1170
  }) {
1171
1171
  const [p, b] = E(!1), V = v(null);
1172
1172
  function M(W, y) {
1173
- f && (f.current = W), W.onDidFocusEditorWidget(() => b(!0)), W.onDidBlurEditorWidget(() => b(!1));
1173
+ k && (k.current = W), W.onDidFocusEditorWidget(() => b(!0)), W.onDidBlurEditorWidget(() => b(!1));
1174
1174
  }
1175
1175
  const g = h("code-editor-wrapper", C, {
1176
1176
  "code-editor-focused": p,
@@ -1234,12 +1234,12 @@ function wo({
1234
1234
  }) {
1235
1235
  const d = v(null), u = !i && !s;
1236
1236
  function C() {
1237
- var f, p;
1237
+ var k, p;
1238
1238
  if (o) {
1239
1239
  o();
1240
1240
  return;
1241
1241
  }
1242
- (p = (f = d.current) == null ? void 0 : f.getAction("editor.action.formatDocument")) == null || p.run();
1242
+ (p = (k = d.current) == null ? void 0 : k.getAction("editor.action.formatDocument")) == null || p.run();
1243
1243
  }
1244
1244
  return /* @__PURE__ */ l("div", { className: h("code-editor-panel", n), children: [
1245
1245
  u && /* @__PURE__ */ l("div", { className: "code-editor-panel-header", children: [
@@ -2019,8 +2019,8 @@ function T9({ className: e, ...r }) {
2019
2019
  const E9 = $.forwardRef(function({ className: r, results: o, onSearch: n, ...i }, s) {
2020
2020
  const [a, d] = E(""), u = v(null), C = (p) => {
2021
2021
  d(p), n && n(p);
2022
- }, f = h(r, "search-input-container");
2023
- return /* @__PURE__ */ l(S1, { className: f, children: [
2022
+ }, k = h(r, "search-input-container");
2023
+ return /* @__PURE__ */ l(S1, { className: k, children: [
2024
2024
  /* @__PURE__ */ t(R, { hidden: !0, children: i["aria-label"] || "Search" }),
2025
2025
  /* @__PURE__ */ t(
2026
2026
  o1,
@@ -2362,7 +2362,7 @@ function V7({
2362
2362
  `section-variant-${a.variant}`,
2363
2363
  `section-padding-top-${s || n}`,
2364
2364
  `section-padding-bottom-${i || n}`
2365
- ), f = a.variant === "image" ? /* @__PURE__ */ t(
2365
+ ), k = a.variant === "image" ? /* @__PURE__ */ t(
2366
2366
  I9,
2367
2367
  {
2368
2368
  alt: "Background image",
@@ -2376,19 +2376,19 @@ function V7({
2376
2376
  switch (o) {
2377
2377
  case "section":
2378
2378
  return /* @__PURE__ */ l("section", { className: C, ...u, children: [
2379
- f,
2379
+ k,
2380
2380
  " ",
2381
2381
  e
2382
2382
  ] });
2383
2383
  case "header":
2384
2384
  return /* @__PURE__ */ l("header", { className: C, ...u, children: [
2385
- f,
2385
+ k,
2386
2386
  " ",
2387
2387
  e
2388
2388
  ] });
2389
2389
  case "footer":
2390
2390
  return /* @__PURE__ */ l("footer", { className: C, ...u, children: [
2391
- f,
2391
+ k,
2392
2392
  " ",
2393
2393
  e
2394
2394
  ] });
@@ -2405,7 +2405,7 @@ function _7({
2405
2405
  container: d = !1,
2406
2406
  justifyItems: u = "stretch",
2407
2407
  alignItems: C = "stretch",
2408
- style: f = {},
2408
+ style: k = {},
2409
2409
  ...p
2410
2410
  }) {
2411
2411
  const b = h(
@@ -2419,7 +2419,7 @@ function _7({
2419
2419
  s && `grid-row-gap-${s}`,
2420
2420
  a && `grid-flow-${a.replace(" ", "-")}`
2421
2421
  ), V = {
2422
- ...f,
2422
+ ...k,
2423
2423
  display: "grid",
2424
2424
  gridTemplateColumns: r,
2425
2425
  gridTemplateRows: o,
@@ -3071,14 +3071,14 @@ function Z0(e, r, o) {
3071
3071
  }, [
3072
3072
  a
3073
3073
  ]);
3074
- let d = a ? e : n, u = O((C, ...f) => {
3074
+ let d = a ? e : n, u = O((C, ...k) => {
3075
3075
  let p = (b, ...V) => {
3076
3076
  o && (Object.is(d, b) || o(b, ...V)), a || (d = b);
3077
3077
  };
3078
3078
  typeof C == "function" ? (process.env.NODE_ENV !== "production" && console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), i((V, ...M) => {
3079
3079
  let g = C(a ? d : V, ...M);
3080
- return p(g, ...f), a ? V : g;
3081
- })) : (a || i(C), p(C, ...f));
3080
+ return p(g, ...k), a ? V : g;
3081
+ })) : (a || i(C), p(C, ...k));
3082
3082
  }, [
3083
3083
  a,
3084
3084
  d,
@@ -3215,8 +3215,8 @@ function B0(e) {
3215
3215
  n,
3216
3216
  i
3217
3217
  ]), a = T0(s), d = O((u) => {
3218
- const C = f3(u.target), f = C ? R3(C) : R3();
3219
- u.target === u.currentTarget && f === M0(u.nativeEvent) && (o && o(u), i && i(!0), a(u));
3218
+ const C = f3(u.target), k = C ? R3(C) : R3();
3219
+ u.target === u.currentTarget && k === M0(u.nativeEvent) && (o && o(u), i && i(!0), a(u));
3220
3220
  }, [
3221
3221
  i,
3222
3222
  o,
@@ -3307,7 +3307,7 @@ function K0(e) {
3307
3307
  target: null
3308
3308
  }).current;
3309
3309
  x(q0, []);
3310
- let { addGlobalListener: u, removeAllGlobalListeners: C } = N0(), { hoverProps: f, triggerHoverEnd: p } = y3(() => {
3310
+ let { addGlobalListener: u, removeAllGlobalListeners: C } = N0(), { hoverProps: k, triggerHoverEnd: p } = y3(() => {
3311
3311
  let b = (g, W) => {
3312
3312
  if (d.pointerType = W, i || W === "touch" || d.isHovered || !g.currentTarget.contains(g.target)) return;
3313
3313
  d.isHovered = !0;
@@ -3359,7 +3359,7 @@ function K0(e) {
3359
3359
  }, [
3360
3360
  i
3361
3361
  ]), {
3362
- hoverProps: f,
3362
+ hoverProps: k,
3363
3363
  isHovered: s
3364
3364
  };
3365
3365
  }
@@ -3381,7 +3381,7 @@ function X0(e, r, o) {
3381
3381
  o,
3382
3382
  r
3383
3383
  ]);
3384
- let f = () => {
3384
+ let k = () => {
3385
3385
  i !== "focus" && (p1() === "pointer" ? a.current = !0 : a.current = !1, u());
3386
3386
  }, p = () => {
3387
3387
  i !== "focus" && (d.current = !1, a.current = !1, C());
@@ -3393,7 +3393,7 @@ function X0(e, r, o) {
3393
3393
  d.current = !1, a.current = !1, C(!0);
3394
3394
  }, { hoverProps: g } = K0({
3395
3395
  isDisabled: n,
3396
- onHoverStart: f,
3396
+ onHoverStart: k,
3397
3397
  onHoverEnd: p
3398
3398
  }), { focusableProps: W } = U0({
3399
3399
  isDisabled: n,
@@ -3443,10 +3443,10 @@ let h3 = {}, Y0 = 0, V3 = !1, e3 = null, u3 = null;
3443
3443
  function e2(e = {}) {
3444
3444
  let { delay: r = J0, closeDelay: o = W6 } = e, { isOpen: n, open: i, close: s } = Q0(e), a = y3(() => `${++Y0}`, []), d = v(null), u = v(s), C = () => {
3445
3445
  h3[a] = b;
3446
- }, f = () => {
3446
+ }, k = () => {
3447
3447
  for (let M in h3) M !== a && (h3[M](!0), delete h3[M]);
3448
3448
  }, p = () => {
3449
- d.current && clearTimeout(d.current), d.current = null, f(), C(), V3 = !0, i(), e3 && (clearTimeout(e3), e3 = null), u3 && (clearTimeout(u3), u3 = null);
3449
+ d.current && clearTimeout(d.current), d.current = null, k(), C(), V3 = !0, i(), e3 && (clearTimeout(e3), e3 = null), u3 && (clearTimeout(u3), u3 = null);
3450
3450
  }, b = (M) => {
3451
3451
  M || o <= 0 ? (d.current && clearTimeout(d.current), d.current = null, u.current()) : d.current || (d.current = setTimeout(() => {
3452
3452
  d.current = null, u.current();
@@ -3454,7 +3454,7 @@ function e2(e = {}) {
3454
3454
  delete h3[a], u3 = null, V3 = !1;
3455
3455
  }, Math.max(W6, o)));
3456
3456
  }, V = () => {
3457
- f(), C(), !n && !e3 && !V3 ? e3 = setTimeout(() => {
3457
+ k(), C(), !n && !e3 && !V3 ? e3 = setTimeout(() => {
3458
3458
  e3 = null, V3 = !0, p();
3459
3459
  }, r) : n || p();
3460
3460
  };
@@ -3483,7 +3483,7 @@ function t2({
3483
3483
  closeDelay: s,
3484
3484
  placement: a
3485
3485
  }) {
3486
- const d = e2({ delay: i, closeDelay: s }), u = v(null), { triggerProps: C, tooltipProps: f } = X0(
3486
+ const d = e2({ delay: i, closeDelay: s }), u = v(null), { triggerProps: C, tooltipProps: k } = X0(
3487
3487
  {},
3488
3488
  d,
3489
3489
  u
@@ -3493,7 +3493,7 @@ function t2({
3493
3493
  /* @__PURE__ */ t(se.Provider, { value: d, children: /* @__PURE__ */ l(
3494
3494
  le,
3495
3495
  {
3496
- ...f,
3496
+ ...k,
3497
3497
  triggerRef: u,
3498
3498
  className: p,
3499
3499
  offset: n,
@@ -3585,11 +3585,11 @@ function D7({
3585
3585
  isDanger: d = !1,
3586
3586
  isLoading: u = !1,
3587
3587
  onConfirm: C,
3588
- onClose: f
3588
+ onClose: k
3589
3589
  }) {
3590
3590
  const [p, b] = E(""), V = n ? p === n : !0;
3591
3591
  function M() {
3592
- b(""), f();
3592
+ b(""), k();
3593
3593
  }
3594
3594
  function g() {
3595
3595
  V && (b(""), C());
@@ -3728,7 +3728,7 @@ function s2({
3728
3728
  isLoading: d = !1,
3729
3729
  loadingMessage: u = "Loading...",
3730
3730
  emptyMessage: C = "No records found",
3731
- previousLabel: f = "Previous",
3731
+ previousLabel: k = "Previous",
3732
3732
  nextLabel: p = "Next",
3733
3733
  pageSize: b = 10,
3734
3734
  nestedColumns: V,
@@ -3741,7 +3741,7 @@ function s2({
3741
3741
  nestedPageSize: Q
3742
3742
  }) {
3743
3743
  const [I, Z] = E(""), [N, n3] = E(1), [T, H] = E(/* @__PURE__ */ new Set()), [J, i3] = E(/* @__PURE__ */ new Map()), a3 = !!M && !!V, c3 = !!n;
3744
- function k(L) {
3744
+ function f(L) {
3745
3745
  const _ = L.id;
3746
3746
  H((S) => {
3747
3747
  const d3 = new Set(S);
@@ -3817,7 +3817,7 @@ function s2({
3817
3817
  className: "data-table-expand-btn",
3818
3818
  "aria-label": _ ? "Collapse row" : "Expand row",
3819
3819
  "aria-expanded": _,
3820
- onClick: () => k(L),
3820
+ onClick: () => f(L),
3821
3821
  children: _ ? /* @__PURE__ */ t(Z3, { size: "16" }) : /* @__PURE__ */ t(he, { size: "16" })
3822
3822
  }
3823
3823
  ) }),
@@ -3849,7 +3849,7 @@ function s2({
3849
3849
  currentPage: b3,
3850
3850
  totalPages: Y,
3851
3851
  onPageChange: n3,
3852
- previousLabel: f,
3852
+ previousLabel: k,
3853
3853
  nextLabel: p
3854
3854
  }
3855
3855
  )
@@ -3862,16 +3862,17 @@ function A7({
3862
3862
  cancelLabel: n = "Cancel",
3863
3863
  isLoading: i = !1,
3864
3864
  isSubmitDisabled: s = !1,
3865
- onSubmit: a,
3866
- onClose: d,
3867
- children: u
3865
+ size: a = "medium",
3866
+ onSubmit: d,
3867
+ onClose: u,
3868
+ children: C
3868
3869
  }) {
3869
- return e ? /* @__PURE__ */ t(k6, { isOpen: e, onOpenChange: (C) => !C && d(), children: /* @__PURE__ */ l(p6, { children: [
3870
+ return e ? /* @__PURE__ */ t(k6, { isOpen: e, onOpenChange: (k) => !k && u(), children: /* @__PURE__ */ l(p6, { className: h("form-modal", `form-modal--${a}`), children: [
3870
3871
  /* @__PURE__ */ l(t3, { direction: "row", alignPrimary: "space-between", alignSecondary: "center", children: [
3871
3872
  /* @__PURE__ */ t(e1, { children: r }),
3872
- /* @__PURE__ */ t(Y6, { onPress: d })
3873
+ /* @__PURE__ */ t(Y6, { onPress: u })
3873
3874
  ] }),
3874
- /* @__PURE__ */ t(t1, { children: /* @__PURE__ */ t(t3, { direction: "column", gap: "300", children: u }) }),
3875
+ /* @__PURE__ */ t(t1, { children: /* @__PURE__ */ t(t3, { direction: "column", gap: "300", children: C }) }),
3875
3876
  /* @__PURE__ */ l(
3876
3877
  t3,
3877
3878
  {
@@ -3880,12 +3881,12 @@ function A7({
3880
3881
  alignPrimary: "end",
3881
3882
  className: "form-modal-footer",
3882
3883
  children: [
3883
- /* @__PURE__ */ t(z, { variant: "neutral", onPress: d, isDisabled: i, children: n }),
3884
+ /* @__PURE__ */ t(z, { variant: "neutral", onPress: u, isDisabled: i, children: n }),
3884
3885
  /* @__PURE__ */ t(
3885
3886
  z,
3886
3887
  {
3887
3888
  variant: "primary",
3888
- onPress: a,
3889
+ onPress: d,
3889
3890
  isDisabled: s || i,
3890
3891
  children: i ? "..." : o
3891
3892
  }