@slashid/jump-page 0.0.8-package.5 → 0.0.8-package.8

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/package/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import ce, { useLayoutEffect as Be, forwardRef as Da, useCallback as La, useState as ae, createContext as aa, useMemo as ra, useContext as Ia, useEffect as Fa } from "react";
1
+ import ce, { useLayoutEffect as Ue, forwardRef as Da, useCallback as La, useState as ae, createContext as aa, useMemo as ra, useContext as Ia, useEffect as Fa } from "react";
2
2
  var ye = { exports: {} }, X = {};
3
3
  /**
4
4
  * @license React
@@ -129,14 +129,14 @@ function Va() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var T = Object.assign, q = 0, J, U, V, se, N, L, B;
132
+ var T = Object.assign, q = 0, J, B, V, se, A, L, U;
133
133
  function oe() {
134
134
  }
135
135
  oe.__reactDisabledLog = !0;
136
136
  function ca() {
137
137
  {
138
138
  if (q === 0) {
139
- J = console.log, U = console.info, V = console.warn, se = console.error, N = console.group, L = console.groupCollapsed, B = console.groupEnd;
139
+ J = console.log, B = console.info, V = console.warn, se = console.error, A = console.group, L = console.groupCollapsed, U = console.groupEnd;
140
140
  var e = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
@@ -169,7 +169,7 @@ function Va() {
169
169
  value: J
170
170
  }),
171
171
  info: T({}, e, {
172
- value: U
172
+ value: B
173
173
  }),
174
174
  warn: T({}, e, {
175
175
  value: V
@@ -178,13 +178,13 @@ function Va() {
178
178
  value: se
179
179
  }),
180
180
  group: T({}, e, {
181
- value: N
181
+ value: A
182
182
  }),
183
183
  groupCollapsed: T({}, e, {
184
184
  value: L
185
185
  }),
186
186
  groupEnd: T({}, e, {
187
- value: B
187
+ value: U
188
188
  })
189
189
  });
190
190
  }
@@ -278,8 +278,8 @@ function Va() {
278
278
  } finally {
279
279
  _e = !1, be.current = x, fa(), Error.prepareStackTrace = h;
280
280
  }
281
- var Z = e ? e.displayName || e.name : "", Ue = Z ? ne(Z) : "";
282
- return typeof e == "function" && le.set(e, Ue), Ue;
281
+ var Z = e ? e.displayName || e.name : "", Be = Z ? ne(Z) : "";
282
+ return typeof e == "function" && le.set(e, Be), Be;
283
283
  }
284
284
  function ba(e, t, l) {
285
285
  return Pe(e, !1);
@@ -640,20 +640,20 @@ function ta(a) {
640
640
  a[o] && (n && (n += " "), n += o);
641
641
  return n;
642
642
  }
643
- function A() {
643
+ function N() {
644
644
  for (var a, r, o = 0, n = "", i = arguments.length; o < i; o++)
645
645
  (a = arguments[o]) && (r = ta(a)) && (n && (n += " "), n += r);
646
646
  return n;
647
647
  }
648
- var $a = "y2413r0", Wa = "y2413r1", Ya = "y2413r2", Ua = "y2413r3", Ge = "sid-theme-root";
649
- function Ba() {
648
+ var $a = "y2413r0", Wa = "y2413r1", Ya = "y2413r2", Ba = "y2413r3", Ge = "sid-theme-root";
649
+ function Ua() {
650
650
  return typeof window < "u" && globalThis === window;
651
651
  }
652
652
  function sa({ theme: a, className: r }) {
653
- return A(
653
+ return N(
654
654
  Ge,
655
655
  `${Ge}__${a}`,
656
- Ua,
656
+ Ba,
657
657
  {
658
658
  [$a]: a === "dark",
659
659
  [Ya]: a === "auto",
@@ -668,17 +668,17 @@ function Ha({ theme: a, className: r }) {
668
668
  }
669
669
  const oa = ({ children: a }) => /* @__PURE__ */ s.jsx("div", { className: sa({ theme: "light" }), children: a }), Za = ({ children: a, theme: r = "light", className: o }) => {
670
670
  const [n, i] = ce.useState(!1);
671
- return Be(() => {
671
+ return Ue(() => {
672
672
  n || i(!0);
673
- }, [o, n, r]), Be(() => {
673
+ }, [o, n, r]), Ue(() => {
674
674
  n && Ha({ theme: r, className: o });
675
675
  }, [o, n, r]), n ? /* @__PURE__ */ s.jsx(s.Fragment, { children: a }) : /* @__PURE__ */ s.jsx(oa, { children: a });
676
676
  };
677
677
  function Qr({ children: a, theme: r = "light", className: o }) {
678
- return Ba() ? /* @__PURE__ */ s.jsx(Za, { theme: r, className: o, children: a }) : /* @__PURE__ */ s.jsx(oa, { children: a });
678
+ return Ua() ? /* @__PURE__ */ s.jsx(Za, { theme: r, className: o, children: a }) : /* @__PURE__ */ s.jsx(oa, { children: a });
679
679
  }
680
680
  var Ga = { default: "_92y0ua2 _92y0ua1", short: "_92y0ua3 _92y0ua1" };
681
- const na = ({ className: a, variant: r = "default" }) => /* @__PURE__ */ s.jsx("div", { className: A(Ga[r], a) });
681
+ const na = ({ className: a, variant: r = "default" }) => /* @__PURE__ */ s.jsx("div", { className: N(Ga[r], a) });
682
682
  var Ka = { primary: "eccmw2 eccmw0", secondary: "eccmw3 eccmw0", secondaryMd: "eccmw4 eccmw0 eccmw1", neutral: "eccmw5 eccmw0", neutralMd: "eccmw6 eccmw0 eccmw1", ghost: "eccmw7 eccmw0", ghostMd: "eccmw8 eccmw0 eccmw1" }, Ja = "eccmw9", Qa = "eccmwa", Xa = { primary: "eccmwb", secondary: "eccmwc", secondaryMd: "eccmwd", neutral: "eccmwe", neutralMd: "eccmwf", ghost: "eccmwg", ghostMd: "eccmwh" };
683
683
  const la = Da(
684
684
  ({
@@ -698,7 +698,7 @@ const la = Da(
698
698
  "data-testid": C,
699
699
  type: n,
700
700
  disabled: b,
701
- className: A(
701
+ className: N(
702
702
  "sid-button",
703
703
  `sid-button--${i}`,
704
704
  Ka[i],
@@ -864,7 +864,7 @@ const ir = () => /* @__PURE__ */ s.jsxs(
864
864
  return /* @__PURE__ */ s.jsxs(
865
865
  "div",
866
866
  {
867
- className: A(
867
+ className: N(
868
868
  "sid-input",
869
869
  "sid-input--password",
870
870
  ar,
@@ -893,11 +893,11 @@ const Me = ({
893
893
  className: r,
894
894
  variant: o = "blue",
895
895
  shouldAnimate: n = !0
896
- }) => /* @__PURE__ */ s.jsxs("div", { className: A(cr, r), children: [
896
+ }) => /* @__PURE__ */ s.jsxs("div", { className: N(cr, r), children: [
897
897
  /* @__PURE__ */ s.jsx(
898
898
  "div",
899
899
  {
900
- className: A(hr[o], {
900
+ className: N(hr[o], {
901
901
  [fr]: n
902
902
  })
903
903
  }
@@ -905,7 +905,7 @@ const Me = ({
905
905
  /* @__PURE__ */ s.jsx(
906
906
  "div",
907
907
  {
908
- className: A(xr[o], {
908
+ className: N(xr[o], {
909
909
  [br]: n
910
910
  })
911
911
  }
@@ -913,7 +913,7 @@ const Me = ({
913
913
  /* @__PURE__ */ s.jsx(
914
914
  "div",
915
915
  {
916
- className: A(vr[o], {
916
+ className: N(vr[o], {
917
917
  [_r]: n
918
918
  })
919
919
  }
@@ -1063,34 +1063,34 @@ var jr = (a) => function() {
1063
1063
  }
1064
1064
  } catch (se) {
1065
1065
  if (process.env.NODE_ENV !== "production") {
1066
- class N extends Error {
1067
- constructor(B) {
1068
- super(B), this.name = "SprinklesError";
1066
+ class A extends Error {
1067
+ constructor(U) {
1068
+ super(U), this.name = "SprinklesError";
1069
1069
  }
1070
1070
  }
1071
- var R = (L) => typeof L == "string" ? '"'.concat(L, '"') : L, T = (L, B, oe) => {
1072
- throw new N('"'.concat(L, '" has no value ').concat(R(B), ". Possible values are ").concat(Object.keys(oe).map(R).join(", ")));
1071
+ var R = (L) => typeof L == "string" ? '"'.concat(L, '"') : L, T = (L, U, oe) => {
1072
+ throw new A('"'.concat(L, '" has no value ').concat(R(U), ". Possible values are ").concat(Object.keys(oe).map(R).join(", ")));
1073
1073
  };
1074
1074
  if (!_)
1075
- throw new N('"'.concat(O, '" is not a valid sprinkle'));
1075
+ throw new A('"'.concat(O, '" is not a valid sprinkle'));
1076
1076
  if ((typeof p == "string" || typeof p == "number") && (p in _.values || T(O, p, _.values), !_.values[p].defaultClass))
1077
- throw new N('"'.concat(O, '" has no default condition. You must specify which conditions to target explicitly. Possible options are ').concat(Object.keys(_.values[p].conditions).map(R).join(", ")));
1077
+ throw new A('"'.concat(O, '" has no default condition. You must specify which conditions to target explicitly. Possible options are ').concat(Object.keys(_.values[p].conditions).map(R).join(", ")));
1078
1078
  if (typeof p == "object") {
1079
1079
  if (!("conditions" in _.values[Object.keys(_.values)[0]]))
1080
- throw new N('"'.concat(O, '" is not a conditional property'));
1080
+ throw new A('"'.concat(O, '" is not a conditional property'));
1081
1081
  if (Array.isArray(p)) {
1082
1082
  if (!("responsiveArray" in _))
1083
- throw new N('"'.concat(O, '" does not support responsive arrays'));
1083
+ throw new A('"'.concat(O, '" does not support responsive arrays'));
1084
1084
  var q = _.responsiveArray.length;
1085
1085
  if (q < p.length)
1086
- throw new N('"'.concat(O, '" only supports up to ').concat(q, " breakpoints. You passed ").concat(p.length));
1086
+ throw new A('"'.concat(O, '" only supports up to ').concat(q, " breakpoints. You passed ").concat(p.length));
1087
1087
  for (var J of p)
1088
1088
  _.values[J] || T(O, J, _.values);
1089
1089
  } else
1090
- for (var U in p) {
1091
- var V = p[U];
1092
- if (V != null && (_.values[V] || T(O, V, _.values), !_.values[V].conditions[U]))
1093
- throw new N('"'.concat(O, '" has no condition named ').concat(R(U), ". Possible values are ").concat(Object.keys(_.values[V].conditions).map(R).join(", ")));
1090
+ for (var B in p) {
1091
+ var V = p[B];
1092
+ if (V != null && (_.values[V] || T(O, V, _.values), !_.values[V].conditions[B]))
1093
+ throw new A('"'.concat(O, '" has no condition named ').concat(R(B), ". Possible values are ").concat(Object.keys(_.values[V].conditions).map(R).join(", ")));
1094
1094
  }
1095
1095
  }
1096
1096
  }
@@ -1110,7 +1110,7 @@ var jr = (a) => function() {
1110
1110
  const Re = (a) => /* @__PURE__ */ s.jsx(
1111
1111
  "div",
1112
1112
  {
1113
- className: A(
1113
+ className: N(
1114
1114
  "sid-stack",
1115
1115
  gr(a.variant),
1116
1116
  da({ gap: a.space || "2" }),
@@ -1160,7 +1160,7 @@ const je = ({
1160
1160
  return /* @__PURE__ */ s.jsxs(
1161
1161
  b,
1162
1162
  {
1163
- className: A(
1163
+ className: N(
1164
1164
  "sid-text",
1165
1165
  `sid-text--${a}`,
1166
1166
  Rr(n),
@@ -1278,15 +1278,11 @@ function Vr() {
1278
1278
  }
1279
1279
  );
1280
1280
  }
1281
- function et({
1282
- children: a,
1283
- header: r = /* @__PURE__ */ s.jsx(qr, {}),
1284
- footer: o = /* @__PURE__ */ s.jsx(Vr, {})
1285
- }) {
1286
- return /* @__PURE__ */ s.jsxs("article", { className: Dr, children: [
1287
- r && /* @__PURE__ */ s.jsx("header", { className: Lr, children: r }),
1281
+ function et({ children: a, className: r, header: o = /* @__PURE__ */ s.jsx(qr, {}), footer: n = /* @__PURE__ */ s.jsx(Vr, {}) }) {
1282
+ return /* @__PURE__ */ s.jsxs("article", { className: N(Dr, r), children: [
1283
+ o && /* @__PURE__ */ s.jsx("header", { className: Lr, children: o }),
1288
1284
  /* @__PURE__ */ s.jsx("div", { children: a }),
1289
- o && /* @__PURE__ */ s.jsx("footer", { className: Ir, children: o })
1285
+ n && /* @__PURE__ */ s.jsx("footer", { className: Ir, children: n })
1290
1286
  ] });
1291
1287
  }
1292
1288
  function $r() {
@@ -1304,8 +1300,8 @@ function at() {
1304
1300
  function Wr({ type: a }) {
1305
1301
  return /* @__PURE__ */ s.jsx(Me, { variant: a === "warning" ? "blue" : "red", shouldAnimate: !1, children: /* @__PURE__ */ s.jsx(lr, {}) });
1306
1302
  }
1307
- function rt({ type: a }) {
1308
- return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1303
+ function rt({ type: a, redirectUri: r }) {
1304
+ return r && window.location.replace(r), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1309
1305
  /* @__PURE__ */ s.jsxs(Re, { space: "0.25", children: [
1310
1306
  /* @__PURE__ */ s.jsx(
1311
1307
  re,
@@ -1346,8 +1342,8 @@ const Yr = () => /* @__PURE__ */ s.jsx(Me, { children: /* @__PURE__ */ s.jsx(
1346
1342
  )
1347
1343
  }
1348
1344
  ) });
1349
- function tt() {
1350
- return /* @__PURE__ */ s.jsxs("article", { "data-testid": "sid-form-success-state", children: [
1345
+ function tt({ redirectUri: a } = {}) {
1346
+ return a && window.location.replace(a), /* @__PURE__ */ s.jsxs("article", { "data-testid": "sid-form-success-state", children: [
1351
1347
  /* @__PURE__ */ s.jsx(
1352
1348
  re,
1353
1349
  {
@@ -1367,7 +1363,7 @@ function tt() {
1367
1363
  /* @__PURE__ */ s.jsx(Yr, {})
1368
1364
  ] });
1369
1365
  }
1370
- var Ur = "_8vopmj0", Br = "_8vopmj2";
1366
+ var Br = "_8vopmj0", Ur = "_8vopmj2";
1371
1367
  function Hr() {
1372
1368
  const { language: a } = Oe();
1373
1369
  return ra(() => Tr(a), [a]);
@@ -1390,7 +1386,7 @@ function Gr({
1390
1386
  } : {};
1391
1387
  }
1392
1388
  function Kr({ message: a }) {
1393
- return /* @__PURE__ */ s.jsx("span", { className: Br, children: a });
1389
+ return /* @__PURE__ */ s.jsx("span", { className: Ur, children: a });
1394
1390
  }
1395
1391
  function st() {
1396
1392
  const a = Hr(), { sdk: r } = Oe(), [o, n] = ae(""), [i, C] = ae(""), [v, b] = ae(null), [f, z] = ae("initial");
@@ -1426,7 +1422,7 @@ function st() {
1426
1422
  /* @__PURE__ */ s.jsx(je, { variant: { color: "contrast", weight: "semibold" }, as: "h2", t: "recover.password.details" })
1427
1423
  ] }),
1428
1424
  /* @__PURE__ */ s.jsxs("form", { onSubmit: w, children: [
1429
- /* @__PURE__ */ s.jsxs("div", { className: Ur, children: [
1425
+ /* @__PURE__ */ s.jsxs("div", { className: Br, children: [
1430
1426
  /* @__PURE__ */ s.jsx(
1431
1427
  Ke,
1432
1428
  {