@novasamatech/host-papp-react-ui 0.6.18 → 0.7.0-1

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.
@@ -1,49 +1,49 @@
1
- const o = "papp_Pairing-module_popoverContent_3xnU8", r = "papp_Pairing-module_container_gH7WU", e = "papp_Pairing-module_pairingContainer_R5atH", n = "papp_Pairing-module_pairingHeader_bpfNW", i = "papp_Pairing-module_scanCallToAction_lOQ-T", a = "papp_Pairing-module_qrContainer_-B50j", p = "papp_Pairing-module_pairingDescription_UJE0U", t = "papp_Pairing-module_loaderLogo_iHsP9", _ = "papp_Pairing-module_loaderContainer_cR46U", l = "papp_Pairing-module_loaderHeader_-q0jo", c = "papp_Pairing-module_loaderText_beteT", d = "papp_Pairing-module_errorContainer_KW5T-", P = "papp_Pairing-module_errorTitle_qokH0", g = "papp_Pairing-module_popoverContainer_fOWoF", s = "papp_Pairing-module_pairingPopoverHeader_PAQot", C = "papp_Pairing-module_scanCallToActionPopover_Irz-z", v = "papp_Pairing-module_pairingDescriptionPopover_z71yj", m = "papp_Pairing-module_errorContainerPopover_4mELg", u = "papp_Pairing-module_pairingPopoverContainer_RvVnH", T = "papp_Pairing-module_errorTitlePopover_-FPrd", H = "papp_Pairing-module_errorGenericText_ZPwQb", x = "papp_Pairing-module_loaderContainerPopover_n1-JJ", A = {
1
+ const o = "papp_Pairing-module_popoverContent_3xnU8", r = "papp_Pairing-module_container_gH7WU", e = "papp_Pairing-module_pairingContainer_R5atH", n = "papp_Pairing-module_pairingHeader_bpfNW", i = "papp_Pairing-module_scanCallToAction_lOQ-T", a = "papp_Pairing-module_pairingDescription_UJE0U", p = "papp_Pairing-module_loaderLogo_iHsP9", t = "papp_Pairing-module_loaderContainer_cR46U", _ = "papp_Pairing-module_loaderHeader_-q0jo", l = "papp_Pairing-module_loaderText_beteT", c = "papp_Pairing-module_errorContainer_KW5T-", d = "papp_Pairing-module_errorTitle_qokH0", P = "papp_Pairing-module_popoverContainer_fOWoF", g = "papp_Pairing-module_pairingPopoverHeader_PAQot", s = "papp_Pairing-module_scanCallToActionPopover_Irz-z", C = "papp_Pairing-module_pairingDescriptionPopover_z71yj", v = "papp_Pairing-module_errorContainerPopover_4mELg", u = "papp_Pairing-module_pairingPopoverContainer_RvVnH", m = "papp_Pairing-module_errorTitlePopover_-FPrd", T = "papp_Pairing-module_errorGenericText_ZPwQb", H = "papp_Pairing-module_loaderContainerPopover_n1-JJ", x = "papp_Pairing-module_retryButton_kWeRx", A = {
2
2
  popoverContent: o,
3
3
  container: r,
4
4
  pairingContainer: e,
5
5
  pairingHeader: n,
6
6
  scanCallToAction: i,
7
- qrContainer: a,
8
- pairingDescription: p,
9
- loaderLogo: t,
10
- loaderContainer: _,
11
- loaderHeader: l,
12
- loaderText: c,
13
- errorContainer: d,
14
- errorTitle: P,
15
- popoverContainer: g,
16
- pairingPopoverHeader: s,
17
- scanCallToActionPopover: C,
18
- pairingDescriptionPopover: v,
19
- errorContainerPopover: m,
7
+ pairingDescription: a,
8
+ loaderLogo: p,
9
+ loaderContainer: t,
10
+ loaderHeader: _,
11
+ loaderText: l,
12
+ errorContainer: c,
13
+ errorTitle: d,
14
+ popoverContainer: P,
15
+ pairingPopoverHeader: g,
16
+ scanCallToActionPopover: s,
17
+ pairingDescriptionPopover: C,
18
+ errorContainerPopover: v,
20
19
  pairingPopoverContainer: u,
21
- errorTitlePopover: T,
22
- errorGenericText: H,
23
- loaderContainerPopover: x
20
+ errorTitlePopover: m,
21
+ errorGenericText: T,
22
+ loaderContainerPopover: H,
23
+ retryButton: x
24
24
  };
25
25
  export {
26
26
  r as container,
27
27
  A as default,
28
- d as errorContainer,
29
- m as errorContainerPopover,
30
- H as errorGenericText,
31
- P as errorTitle,
32
- T as errorTitlePopover,
33
- _ as loaderContainer,
34
- x as loaderContainerPopover,
35
- l as loaderHeader,
36
- t as loaderLogo,
37
- c as loaderText,
28
+ c as errorContainer,
29
+ v as errorContainerPopover,
30
+ T as errorGenericText,
31
+ d as errorTitle,
32
+ m as errorTitlePopover,
33
+ t as loaderContainer,
34
+ H as loaderContainerPopover,
35
+ _ as loaderHeader,
36
+ p as loaderLogo,
37
+ l as loaderText,
38
38
  e as pairingContainer,
39
- p as pairingDescription,
40
- v as pairingDescriptionPopover,
39
+ a as pairingDescription,
40
+ C as pairingDescriptionPopover,
41
41
  n as pairingHeader,
42
42
  u as pairingPopoverContainer,
43
- s as pairingPopoverHeader,
44
- g as popoverContainer,
43
+ g as pairingPopoverHeader,
44
+ P as popoverContainer,
45
45
  o as popoverContent,
46
- a as qrContainer,
46
+ x as retryButton,
47
47
  i as scanCallToAction,
48
- C as scanCallToActionPopover
48
+ s as scanCallToActionPopover
49
49
  };
@@ -1,107 +1,104 @@
1
- import { jsx as o, jsxs as L } from "react/jsx-runtime";
2
- import { c as M } from "react/compiler-runtime";
3
- import { Button as b, ThemeProvider as z, defaultTheme as D } from "@novasamatech/tr-ui";
4
- import { memo as P, useEffect as $ } from "react";
5
- import { useAuthStatus as R } from "../hooks/authStatus.js";
6
- import { useAuthentication as x } from "../providers/AuthProvider.js";
1
+ import { jsx as c, jsxs as L } from "react/jsx-runtime";
2
+ import { c as S } from "react/compiler-runtime";
3
+ import { Button as x } from "@novasamatech/tr-ui";
4
+ import { memo as H, useEffect as b } from "react";
5
+ import { useAuthStatus as z } from "../hooks/authStatus.js";
6
+ import { useAuthentication as T } from "../providers/AuthProvider.js";
7
7
  import { useTranslations as A } from "../providers/TranslationProvider.js";
8
- import { LogoSmall as j } from "../ui/LogoSmall.js";
9
- import { Modal as I } from "../ui/Modal.js";
10
- import { QrCode as U } from "../ui/QrCode.js";
11
- import d from "./Pairing.module.css.js";
12
- const X = P((i) => {
13
- const e = M(34);
8
+ import { LogoSmall as D } from "../ui/LogoSmall.js";
9
+ import { Modal as $ } from "../ui/Modal.js";
10
+ import { QrCode as P } from "../ui/QrCode.js";
11
+ import m from "./Pairing.module.css.js";
12
+ const J = H((i) => {
13
+ const e = S(31);
14
14
  let n;
15
15
  e[0] !== i ? (n = i === void 0 ? {} : i, e[0] = i, e[1] = n) : n = e[1];
16
16
  const {
17
17
  theme: l,
18
18
  size: r
19
- } = n, s = r === void 0 ? 280 : r, a = x(), {
19
+ } = n, s = r === void 0 ? 280 : r, a = T(), {
20
20
  status: t
21
- } = R(), p = a.authUIMode === "modal" && t.step !== "none" && t.step !== "finished";
22
- let c;
23
- e[2] !== a || e[3] !== t.step ? (c = (H) => {
24
- !H && t.step !== "attestation" && a.abortAuthentication();
25
- }, e[2] = a, e[3] = t.step, e[4] = c) : c = e[4];
26
- const m = c;
27
- let v, C;
28
- e[5] !== a || e[6] !== t.step ? (v = () => {
21
+ } = z(), o = a.authUIMode === "modal" && t.step !== "none" && t.step !== "finished";
22
+ let p;
23
+ e[2] !== a || e[3] !== t.step ? (p = (E) => {
24
+ !E && t.step !== "attestation" && a.abortAuthentication();
25
+ }, e[2] = a, e[3] = t.step, e[4] = p) : p = e[4];
26
+ const d = p;
27
+ let N, C;
28
+ e[5] !== a || e[6] !== t.step ? (N = () => {
29
29
  a.authUIMode === "modal" && t.step === "finished" && a.abortAuthentication();
30
- }, C = [a, t.step], e[5] = a, e[6] = t.step, e[7] = v, e[8] = C) : (v = e[7], C = e[8]), $(v, C);
31
- const S = l ?? "light";
30
+ }, C = [a, t.step], e[5] = a, e[6] = t.step, e[7] = N, e[8] = C) : (N = e[7], C = e[8]), b(N, C);
32
31
  let g;
33
- e[9] !== s || e[10] !== t.payload || e[11] !== t.step || e[12] !== l ? (g = t.step === "pairing" && /* @__PURE__ */ o(_, { theme: l, size: s, payload: t.payload }), e[9] = s, e[10] = t.payload, e[11] = t.step, e[12] = l, e[13] = g) : g = e[13];
32
+ e[9] !== s || e[10] !== t.payload || e[11] !== t.step || e[12] !== l ? (g = t.step === "pairing" && /* @__PURE__ */ c(R, { theme: l, size: s, payload: t.payload }), e[9] = s, e[10] = t.payload, e[11] = t.step, e[12] = l, e[13] = g) : g = e[13];
34
33
  let f;
35
- e[14] !== t.message || e[15] !== t.step ? (f = t.step === "pairingError" && /* @__PURE__ */ o(E, { message: t.message }), e[14] = t.message, e[15] = t.step, e[16] = f) : f = e[16];
34
+ e[14] !== t.message || e[15] !== t.step ? (f = t.step === "pairingError" && /* @__PURE__ */ c(M, { message: t.message }), e[14] = t.message, e[15] = t.step, e[16] = f) : f = e[16];
36
35
  let h;
37
- e[17] !== t.step ? (h = t.step === "attestation" && /* @__PURE__ */ o(k, {}), e[17] = t.step, e[18] = h) : h = e[18];
36
+ e[17] !== t.step ? (h = t.step === "attestation" && /* @__PURE__ */ c(j, {}), e[17] = t.step, e[18] = h) : h = e[18];
38
37
  let u;
39
- e[19] !== t.message || e[20] !== t.step ? (u = t.step === "attestationError" && /* @__PURE__ */ o(E, { message: t.message }), e[19] = t.message, e[20] = t.step, e[21] = u) : u = e[21];
40
- let N;
41
- e[22] !== u || e[23] !== g || e[24] !== f || e[25] !== h ? (N = /* @__PURE__ */ L("div", { className: d.container, children: [
38
+ e[19] !== t.message || e[20] !== t.step ? (u = t.step === "attestationError" && /* @__PURE__ */ c(M, { message: t.message }), e[19] = t.message, e[20] = t.step, e[21] = u) : u = e[21];
39
+ let y;
40
+ e[22] !== g || e[23] !== f || e[24] !== h || e[25] !== u ? (y = /* @__PURE__ */ L("div", { className: m.container, children: [
42
41
  g,
43
42
  f,
44
43
  h,
45
44
  u
46
- ] }), e[22] = u, e[23] = g, e[24] = f, e[25] = h, e[26] = N) : N = e[26];
47
- let y;
48
- e[27] !== p || e[28] !== N || e[29] !== m ? (y = /* @__PURE__ */ o(I, { open: p, onOpenChange: m, width: "fit-content", children: N }), e[27] = p, e[28] = N, e[29] = m, e[30] = y) : y = e[30];
49
- let T;
50
- return e[31] !== y || e[32] !== S ? (T = /* @__PURE__ */ o(z, { theme: D, defaultMode: S, children: y }), e[31] = y, e[32] = S, e[33] = T) : T = e[33], T;
51
- }), _ = (i) => {
52
- const e = M(15), {
45
+ ] }), e[22] = g, e[23] = f, e[24] = h, e[25] = u, e[26] = y) : y = e[26];
46
+ let v;
47
+ return e[27] !== o || e[28] !== y || e[29] !== d ? (v = /* @__PURE__ */ c($, { open: o, onOpenChange: d, width: "fit-content", children: y }), e[27] = o, e[28] = y, e[29] = d, e[30] = v) : v = e[30], v;
48
+ }), R = (i) => {
49
+ const e = S(15), {
53
50
  payload: n,
54
51
  size: l,
55
52
  theme: r
56
53
  } = i, s = A();
57
54
  let a;
58
- e[0] !== s.pairingHeader ? (a = /* @__PURE__ */ o("span", { className: d.pairingHeader, children: s.pairingHeader }), e[0] = s.pairingHeader, e[1] = a) : a = e[1];
55
+ e[0] !== s.pairingHeader ? (a = /* @__PURE__ */ c("span", { className: m.pairingHeader, children: s.pairingHeader }), e[0] = s.pairingHeader, e[1] = a) : a = e[1];
59
56
  let t;
60
- e[2] !== s.pairingScanCallToAction ? (t = /* @__PURE__ */ o("span", { className: d.scanCallToAction, children: s.pairingScanCallToAction }), e[2] = s.pairingScanCallToAction, e[3] = t) : t = e[3];
57
+ e[2] !== s.pairingScanCallToAction ? (t = /* @__PURE__ */ c("span", { className: m.scanCallToAction, children: s.pairingScanCallToAction }), e[2] = s.pairingScanCallToAction, e[3] = t) : t = e[3];
58
+ let o;
59
+ e[4] !== n || e[5] !== l || e[6] !== r ? (o = /* @__PURE__ */ c(P, { value: n, size: l, theme: r }), e[4] = n, e[5] = l, e[6] = r, e[7] = o) : o = e[7];
61
60
  let p;
62
- e[4] !== n || e[5] !== l || e[6] !== r ? (p = /* @__PURE__ */ o("div", { className: d.qrContainer, children: /* @__PURE__ */ o(U, { value: n, size: l, theme: r }) }), e[4] = n, e[5] = l, e[6] = r, e[7] = p) : p = e[7];
63
- let c;
64
- e[8] !== s.pairingDescription ? (c = /* @__PURE__ */ o("span", { className: d.pairingDescription, children: s.pairingDescription }), e[8] = s.pairingDescription, e[9] = c) : c = e[9];
65
- let m;
66
- return e[10] !== a || e[11] !== t || e[12] !== p || e[13] !== c ? (m = /* @__PURE__ */ L("div", { className: d.pairingContainer, children: [
61
+ e[8] !== s.pairingDescription ? (p = /* @__PURE__ */ c("span", { className: m.pairingDescription, children: s.pairingDescription }), e[8] = s.pairingDescription, e[9] = p) : p = e[9];
62
+ let d;
63
+ return e[10] !== a || e[11] !== t || e[12] !== o || e[13] !== p ? (d = /* @__PURE__ */ L("div", { className: m.pairingContainer, children: [
67
64
  a,
68
65
  t,
69
- p,
70
- c
71
- ] }), e[10] = a, e[11] = t, e[12] = p, e[13] = c, e[14] = m) : m = e[14], m;
72
- }, k = () => {
73
- const i = M(8), e = A();
66
+ o,
67
+ p
68
+ ] }), e[10] = a, e[11] = t, e[12] = o, e[13] = p, e[14] = d) : d = e[14], d;
69
+ }, j = () => {
70
+ const i = S(8), e = A();
74
71
  let n;
75
- i[0] !== e.pairingLoginMessage ? (n = /* @__PURE__ */ o("span", { className: d.loaderHeader, children: e.pairingLoginMessage }), i[0] = e.pairingLoginMessage, i[1] = n) : n = i[1];
72
+ i[0] !== e.pairingLoginMessage ? (n = /* @__PURE__ */ c("span", { className: m.loaderHeader, children: e.pairingLoginMessage }), i[0] = e.pairingLoginMessage, i[1] = n) : n = i[1];
76
73
  let l;
77
- i[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ o("div", { className: d.loaderLogo, children: /* @__PURE__ */ o(j, { size: 100 }) }), i[2] = l) : l = i[2];
74
+ i[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ c("div", { className: m.loaderLogo, children: /* @__PURE__ */ c(D, { size: 100 }) }), i[2] = l) : l = i[2];
78
75
  let r;
79
- i[3] !== e.pairingLoader ? (r = /* @__PURE__ */ o("span", { className: d.loaderText, children: e.pairingLoader }), i[3] = e.pairingLoader, i[4] = r) : r = i[4];
76
+ i[3] !== e.pairingLoader ? (r = /* @__PURE__ */ c("span", { className: m.loaderText, children: e.pairingLoader }), i[3] = e.pairingLoader, i[4] = r) : r = i[4];
80
77
  let s;
81
- return i[5] !== n || i[6] !== r ? (s = /* @__PURE__ */ L("div", { className: d.loaderContainer, children: [
78
+ return i[5] !== n || i[6] !== r ? (s = /* @__PURE__ */ L("div", { className: m.loaderContainer, children: [
82
79
  n,
83
80
  l,
84
81
  r
85
82
  ] }), i[5] = n, i[6] = r, i[7] = s) : s = i[7], s;
86
- }, E = (i) => {
87
- const e = M(13), {
83
+ }, M = (i) => {
84
+ const e = S(13), {
88
85
  message: n
89
- } = i, l = x(), r = A();
86
+ } = i, l = T(), r = A();
90
87
  let s;
91
- e[0] !== r.pairingError ? (s = /* @__PURE__ */ o("span", { className: d.errorTitle, children: r.pairingError }), e[0] = r.pairingError, e[1] = s) : s = e[1];
88
+ e[0] !== r.pairingError ? (s = /* @__PURE__ */ c("span", { className: m.errorTitle, children: r.pairingError }), e[0] = r.pairingError, e[1] = s) : s = e[1];
92
89
  let a;
93
- e[2] !== n ? (a = /* @__PURE__ */ o("span", { className: d.errorGenericText, children: n }), e[2] = n, e[3] = a) : a = e[3];
90
+ e[2] !== n ? (a = /* @__PURE__ */ c("span", { className: m.errorGenericText, children: n }), e[2] = n, e[3] = a) : a = e[3];
94
91
  let t;
95
92
  e[4] !== l ? (t = () => l.authenticate(), e[4] = l, e[5] = t) : t = e[5];
93
+ let o;
94
+ e[6] !== t || e[7] !== r.pairingRetry ? (o = /* @__PURE__ */ c(x, { variant: "secondary", type: "button", onClick: t, children: r.pairingRetry }), e[6] = t, e[7] = r.pairingRetry, e[8] = o) : o = e[8];
96
95
  let p;
97
- e[6] !== t || e[7] !== r.pairingRetry ? (p = /* @__PURE__ */ o(b, { variant: "secondary", type: "button", onClick: t, children: r.pairingRetry }), e[6] = t, e[7] = r.pairingRetry, e[8] = p) : p = e[8];
98
- let c;
99
- return e[9] !== s || e[10] !== a || e[11] !== p ? (c = /* @__PURE__ */ L("div", { className: d.errorContainer, children: [
96
+ return e[9] !== s || e[10] !== a || e[11] !== o ? (p = /* @__PURE__ */ L("div", { className: m.errorContainer, children: [
100
97
  s,
101
98
  a,
102
- p
103
- ] }), e[9] = s, e[10] = a, e[11] = p, e[12] = c) : c = e[12], c;
99
+ o
100
+ ] }), e[9] = s, e[10] = a, e[11] = o, e[12] = p) : p = e[12], p;
104
101
  };
105
102
  export {
106
- X as PairingModal
103
+ J as PairingModal
107
104
  };
@@ -1,7 +1,14 @@
1
+ import { ALIGN_OPTIONS, SIDE_OPTIONS } from '@radix-ui/react-popper';
1
2
  import { PropsWithChildren } from 'react';
3
+ type Side = (typeof SIDE_OPTIONS)[number];
4
+ type Align = (typeof ALIGN_OPTIONS)[number];
2
5
  type Props = PropsWithChildren<{
3
6
  theme?: 'light' | 'dark';
4
7
  size?: number;
8
+ side?: Side;
9
+ sizeOffset?: number;
10
+ align?: Align;
11
+ alignOffset?: number;
5
12
  }>;
6
- export declare const PairingPopover: import('react').MemoExoticComponent<({ theme, size, children }: Props) => import("react").JSX.Element>;
13
+ export declare const PairingPopover: import('react').MemoExoticComponent<({ theme, size, align, side, alignOffset, sizeOffset, children }: Props) => import("react").JSX.Element>;
7
14
  export {};
@@ -1,123 +1,124 @@
1
- import { jsx as a, jsxs as L } from "react/jsx-runtime";
2
- import { c as x } from "react/compiler-runtime";
3
- import { Popover as k, Button as $, ThemeProvider as j, defaultTheme as B } from "@novasamatech/tr-ui";
4
- import { memo as I, useEffect as K } from "react";
5
- import { useAuthStatus as M } from "../hooks/authStatus.js";
6
- import { useAuthentication as _ } from "../providers/AuthProvider.js";
7
- import { useTranslations as z } from "../providers/TranslationProvider.js";
8
- import { LogoSmall as q } from "../ui/LogoSmall.js";
9
- import { QrCode as w } from "../ui/QrCode.js";
10
- import m from "./Pairing.module.css.js";
11
- const ie = I((r) => {
12
- const e = x(45), {
1
+ import { jsx as a, jsxs as T } from "react/jsx-runtime";
2
+ import { c as A } from "react/compiler-runtime";
3
+ import * as x from "@radix-ui/react-popover";
4
+ import { memo as K, useEffect as w } from "react";
5
+ import { useAuthStatus as G } from "../hooks/authStatus.js";
6
+ import { useAuthentication as B } from "../providers/AuthProvider.js";
7
+ import { useTranslations as $ } from "../providers/TranslationProvider.js";
8
+ import { LogoSmall as M } from "../ui/LogoSmall.js";
9
+ import { QrCode as Q } from "../ui/QrCode.js";
10
+ import g from "./Pairing.module.css.js";
11
+ const ie = K((o) => {
12
+ const e = A(46), {
13
13
  theme: n,
14
- size: l,
15
- children: s
16
- } = r, o = l === void 0 ? 240 : l, i = _(), {
14
+ size: c,
15
+ align: i,
16
+ side: r,
17
+ alignOffset: s,
18
+ sizeOffset: p,
19
+ children: l
20
+ } = o, m = n === void 0 ? "dark" : n, f = c === void 0 ? 240 : c, v = p === void 0 ? 4 : p, d = B(), {
17
21
  status: t
18
- } = M(), p = typeof process < "u" && process.env?.STORYBOOK === "true", c = i.authUIMode === "popover" && (p || t.step !== "none");
19
- let g;
20
- e[0] !== i || e[1] !== t.step ? (g = () => {
21
- t.step === "none" && i.authenticate("popover");
22
- }, e[0] = i, e[1] = t.step, e[2] = g) : g = e[2];
23
- const A = g;
24
- let E;
25
- e[3] !== i || e[4] !== t.step ? (E = (T) => {
26
- !T && t.step !== "attestation" && i.abortAuthentication();
27
- }, e[3] = i, e[4] = t.step, e[5] = E) : E = e[5];
28
- const H = E;
29
- let D;
30
- e[6] !== i ? (D = () => () => {
31
- i.abortAuthentication();
32
- }, e[6] = i, e[7] = D) : D = e[7];
22
+ } = G(), I = typeof process < "u" && process.env?.STORYBOOK === "true", H = d.authUIMode === "popover" && (I || t.step !== "none");
33
23
  let b;
34
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = [], e[8] = b) : b = e[8], K(D, b);
35
- const O = n ?? "light";
36
- let d;
37
- e[9] !== s || e[10] !== A ? (d = /* @__PURE__ */ a(k.Trigger, { asChild: !0, onClick: A, children: s }), e[9] = s, e[10] = A, e[11] = d) : d = e[11];
38
- let f, v;
39
- e[12] !== t.step ? (f = (T) => {
40
- t.step === "attestation" && T.preventDefault();
41
- }, v = (T) => {
42
- t.step === "attestation" && T.preventDefault();
43
- }, e[12] = t.step, e[13] = f, e[14] = v) : (f = e[13], v = e[14]);
24
+ e[0] !== d || e[1] !== t.step ? (b = () => {
25
+ t.step === "none" && d.authenticate("popover");
26
+ }, e[0] = d, e[1] = t.step, e[2] = b) : b = e[2];
27
+ const R = b;
28
+ let D;
29
+ e[3] !== d || e[4] !== t.step ? (D = (E) => {
30
+ !E && t.step !== "attestation" && d.abortAuthentication();
31
+ }, e[3] = d, e[4] = t.step, e[5] = D) : D = e[5];
32
+ const _ = D;
33
+ let z;
34
+ e[6] !== d ? (z = () => () => {
35
+ d.abortAuthentication();
36
+ }, e[6] = d, e[7] = z) : z = e[7];
37
+ let W;
38
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = [], e[8] = W) : W = e[8], w(z, W);
44
39
  let h;
45
- e[15] !== o || e[16] !== t.payload || e[17] !== t.step || e[18] !== n ? (h = t.step === "pairing" && /* @__PURE__ */ a(G, { theme: n, size: o, payload: t.payload }), e[15] = o, e[16] = t.payload, e[17] = t.step, e[18] = n, e[19] = h) : h = e[19];
46
- let u;
47
- e[20] !== t.message || e[21] !== t.step ? (u = t.step === "pairingError" && /* @__PURE__ */ a(R, { message: t.message }), e[20] = t.message, e[21] = t.step, e[22] = u) : u = e[22];
48
- let P;
49
- e[23] !== t.step ? (P = t.step === "attestation" && /* @__PURE__ */ a(Q, {}), e[23] = t.step, e[24] = P) : P = e[24];
40
+ e[9] !== l || e[10] !== R ? (h = /* @__PURE__ */ a(x.Trigger, { asChild: !0, onClick: R, children: l }), e[9] = l, e[10] = R, e[11] = h) : h = e[11];
41
+ let u, P;
42
+ e[12] !== t.step ? (P = (E) => {
43
+ t.step === "attestation" && E.preventDefault();
44
+ }, u = (E) => {
45
+ t.step === "attestation" && E.preventDefault();
46
+ }, e[12] = t.step, e[13] = u, e[14] = P) : (u = e[13], P = e[14]);
50
47
  let y;
51
- e[25] !== t.message || e[26] !== t.step ? (y = t.step === "attestationError" && /* @__PURE__ */ a(R, { message: t.message }), e[25] = t.message, e[26] = t.step, e[27] = y) : y = e[27];
52
- let C;
53
- e[28] !== h || e[29] !== u || e[30] !== P || e[31] !== y ? (C = /* @__PURE__ */ L("div", { className: m.popoverContainer, children: [
54
- h,
55
- u,
56
- P,
57
- y
58
- ] }), e[28] = h, e[29] = u, e[30] = P, e[31] = y, e[32] = C) : C = e[32];
48
+ e[15] !== f || e[16] !== t.payload || e[17] !== t.step || e[18] !== m ? (y = t.step === "pairing" && /* @__PURE__ */ a(U, { theme: m, size: f, payload: t.payload }), e[15] = f, e[16] = t.payload, e[17] = t.step, e[18] = m, e[19] = y) : y = e[19];
59
49
  let N;
60
- e[33] !== C || e[34] !== f || e[35] !== v ? (N = /* @__PURE__ */ a(k.Content, { className: m.popoverContent, onInteractOutside: f, onEscapeKeyDown: v, children: C }), e[33] = C, e[34] = f, e[35] = v, e[36] = N) : N = e[36];
50
+ e[20] !== t.message || e[21] !== t.step ? (N = t.step === "pairingError" && /* @__PURE__ */ a(j, { message: t.message }), e[20] = t.message, e[21] = t.step, e[22] = N) : N = e[22];
51
+ let C;
52
+ e[23] !== t.step ? (C = t.step === "attestation" && /* @__PURE__ */ a(Y, {}), e[23] = t.step, e[24] = C) : C = e[24];
61
53
  let S;
62
- e[37] !== c || e[38] !== N || e[39] !== d || e[40] !== H ? (S = /* @__PURE__ */ L(k, { open: c, onOpenChange: H, children: [
63
- d,
64
- N
65
- ] }), e[37] = c, e[38] = N, e[39] = d, e[40] = H, e[41] = S) : S = e[41];
66
- let W;
67
- return e[42] !== S || e[43] !== O ? (W = /* @__PURE__ */ a(j, { theme: B, defaultMode: O, children: S }), e[42] = S, e[43] = O, e[44] = W) : W = e[44], W;
68
- }), G = (r) => {
69
- const e = x(15), {
54
+ e[25] !== t.message || e[26] !== t.step ? (S = t.step === "attestationError" && /* @__PURE__ */ a(j, { message: t.message }), e[25] = t.message, e[26] = t.step, e[27] = S) : S = e[27];
55
+ let L;
56
+ e[28] !== y || e[29] !== N || e[30] !== C || e[31] !== S ? (L = /* @__PURE__ */ T("div", { className: g.popoverContainer, children: [
57
+ y,
58
+ N,
59
+ C,
60
+ S
61
+ ] }), e[28] = y, e[29] = N, e[30] = C, e[31] = S, e[32] = L) : L = e[32];
62
+ let O;
63
+ e[33] !== i || e[34] !== s || e[35] !== r || e[36] !== v || e[37] !== u || e[38] !== L || e[39] !== P ? (O = /* @__PURE__ */ a(x.Portal, { children: /* @__PURE__ */ a(x.Content, { side: r, align: i, sideOffset: v, alignOffset: s, className: g.popoverContent, onInteractOutside: P, onEscapeKeyDown: u, children: L }) }), e[33] = i, e[34] = s, e[35] = r, e[36] = v, e[37] = u, e[38] = L, e[39] = P, e[40] = O) : O = e[40];
64
+ let k;
65
+ return e[41] !== H || e[42] !== O || e[43] !== h || e[44] !== _ ? (k = /* @__PURE__ */ T(x.Root, { open: H, onOpenChange: _, children: [
66
+ h,
67
+ O
68
+ ] }), e[41] = H, e[42] = O, e[43] = h, e[44] = _, e[45] = k) : k = e[45], k;
69
+ }), U = (o) => {
70
+ const e = A(15), {
70
71
  payload: n,
71
- size: l,
72
- theme: s
73
- } = r, o = z();
74
- let i;
75
- e[0] !== o.pairingPopoverWelcome ? (i = /* @__PURE__ */ a("span", { className: m.pairingPopoverHeader, children: o.pairingPopoverWelcome }), e[0] = o.pairingPopoverWelcome, e[1] = i) : i = e[1];
76
- let t;
77
- e[2] !== n || e[3] !== l || e[4] !== s ? (t = /* @__PURE__ */ a("div", { className: m.qrContainer, children: /* @__PURE__ */ a(w, { value: n, size: l, theme: s }) }), e[2] = n, e[3] = l, e[4] = s, e[5] = t) : t = e[5];
72
+ size: c,
73
+ theme: i
74
+ } = o, r = i === void 0 ? "light" : i, s = $();
78
75
  let p;
79
- e[6] !== o.pairingPopoverLoginHeading ? (p = /* @__PURE__ */ a("span", { className: m.scanCallToActionPopover, children: o.pairingPopoverLoginHeading }), e[6] = o.pairingPopoverLoginHeading, e[7] = p) : p = e[7];
80
- let c;
81
- e[8] !== o.pairingPopoverScanDescription ? (c = /* @__PURE__ */ a("span", { className: m.pairingDescriptionPopover, children: o.pairingPopoverScanDescription }), e[8] = o.pairingPopoverScanDescription, e[9] = c) : c = e[9];
82
- let g;
83
- return e[10] !== i || e[11] !== t || e[12] !== p || e[13] !== c ? (g = /* @__PURE__ */ L("div", { className: m.pairingPopoverContainer, children: [
84
- i,
85
- t,
76
+ e[0] !== s.pairingPopoverWelcome ? (p = /* @__PURE__ */ a("span", { className: g.pairingPopoverHeader, children: s.pairingPopoverWelcome }), e[0] = s.pairingPopoverWelcome, e[1] = p) : p = e[1];
77
+ let l;
78
+ e[2] !== n || e[3] !== c || e[4] !== r ? (l = /* @__PURE__ */ a(Q, { value: n, size: c, theme: r }), e[2] = n, e[3] = c, e[4] = r, e[5] = l) : l = e[5];
79
+ let m;
80
+ e[6] !== s.pairingPopoverLoginHeading ? (m = /* @__PURE__ */ a("span", { className: g.scanCallToActionPopover, children: s.pairingPopoverLoginHeading }), e[6] = s.pairingPopoverLoginHeading, e[7] = m) : m = e[7];
81
+ let f;
82
+ e[8] !== s.pairingPopoverScanDescription ? (f = /* @__PURE__ */ a("span", { className: g.pairingDescriptionPopover, children: s.pairingPopoverScanDescription }), e[8] = s.pairingPopoverScanDescription, e[9] = f) : f = e[9];
83
+ let v;
84
+ return e[10] !== p || e[11] !== l || e[12] !== m || e[13] !== f ? (v = /* @__PURE__ */ T("div", { className: g.pairingPopoverContainer, children: [
86
85
  p,
87
- c
88
- ] }), e[10] = i, e[11] = t, e[12] = p, e[13] = c, e[14] = g) : g = e[14], g;
89
- }, Q = () => {
90
- const r = x(8), e = z();
86
+ l,
87
+ m,
88
+ f
89
+ ] }), e[10] = p, e[11] = l, e[12] = m, e[13] = f, e[14] = v) : v = e[14], v;
90
+ }, Y = () => {
91
+ const o = A(8), e = $();
91
92
  let n;
92
- r[0] !== e.pairingPopoverWelcome ? (n = /* @__PURE__ */ a("span", { className: m.pairingPopoverHeader, children: e.pairingPopoverWelcome }), r[0] = e.pairingPopoverWelcome, r[1] = n) : n = r[1];
93
- let l;
94
- r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ a("div", { className: m.loaderLogo, children: /* @__PURE__ */ a(q, { size: 100 }) }), r[2] = l) : l = r[2];
95
- let s;
96
- r[3] !== e.pairingLoader ? (s = /* @__PURE__ */ a("span", { className: m.loaderText, children: e.pairingLoader }), r[3] = e.pairingLoader, r[4] = s) : s = r[4];
97
- let o;
98
- return r[5] !== n || r[6] !== s ? (o = /* @__PURE__ */ L("div", { className: m.loaderContainerPopover, children: [
93
+ o[0] !== e.pairingPopoverWelcome ? (n = /* @__PURE__ */ a("span", { className: g.pairingPopoverHeader, children: e.pairingPopoverWelcome }), o[0] = e.pairingPopoverWelcome, o[1] = n) : n = o[1];
94
+ let c;
95
+ o[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a("div", { className: g.loaderLogo, children: /* @__PURE__ */ a(M, { size: 100 }) }), o[2] = c) : c = o[2];
96
+ let i;
97
+ o[3] !== e.pairingLoader ? (i = /* @__PURE__ */ a("span", { className: g.loaderText, children: e.pairingLoader }), o[3] = e.pairingLoader, o[4] = i) : i = o[4];
98
+ let r;
99
+ return o[5] !== n || o[6] !== i ? (r = /* @__PURE__ */ T("div", { className: g.loaderContainerPopover, children: [
99
100
  n,
100
- l,
101
- s
102
- ] }), r[5] = n, r[6] = s, r[7] = o) : o = r[7], o;
103
- }, R = (r) => {
104
- const e = x(13), {
101
+ c,
102
+ i
103
+ ] }), o[5] = n, o[6] = i, o[7] = r) : r = o[7], r;
104
+ }, j = (o) => {
105
+ const e = A(13), {
105
106
  message: n
106
- } = r, l = _(), s = z();
107
- let o;
108
- e[0] !== s.pairingError ? (o = /* @__PURE__ */ a("span", { className: m.errorTitlePopover, children: s.pairingError }), e[0] = s.pairingError, e[1] = o) : o = e[1];
109
- let i;
110
- e[2] !== n ? (i = n && /* @__PURE__ */ a("span", { className: m.errorGenericText, children: n }), e[2] = n, e[3] = i) : i = e[3];
111
- let t;
112
- e[4] !== l ? (t = () => l.authenticate(), e[4] = l, e[5] = t) : t = e[5];
107
+ } = o, c = B(), i = $();
108
+ let r;
109
+ e[0] !== i.pairingError ? (r = /* @__PURE__ */ a("span", { className: g.errorTitlePopover, children: i.pairingError }), e[0] = i.pairingError, e[1] = r) : r = e[1];
110
+ let s;
111
+ e[2] !== n ? (s = n && /* @__PURE__ */ a("span", { className: g.errorGenericText, children: n }), e[2] = n, e[3] = s) : s = e[3];
113
112
  let p;
114
- e[6] !== t || e[7] !== s.pairingRetry ? (p = /* @__PURE__ */ a($, { variant: "secondary", type: "button", onClick: t, children: s.pairingRetry }), e[6] = t, e[7] = s.pairingRetry, e[8] = p) : p = e[8];
115
- let c;
116
- return e[9] !== o || e[10] !== i || e[11] !== p ? (c = /* @__PURE__ */ L("div", { className: m.errorContainerPopover, children: [
117
- o,
118
- i,
119
- p
120
- ] }), e[9] = o, e[10] = i, e[11] = p, e[12] = c) : c = e[12], c;
113
+ e[4] !== c ? (p = () => c.authenticate(), e[4] = c, e[5] = p) : p = e[5];
114
+ let l;
115
+ e[6] !== p || e[7] !== i.pairingRetry ? (l = /* @__PURE__ */ a("button", { className: g.retryButton, type: "button", onClick: p, children: i.pairingRetry }), e[6] = p, e[7] = i.pairingRetry, e[8] = l) : l = e[8];
116
+ let m;
117
+ return e[9] !== r || e[10] !== s || e[11] !== l ? (m = /* @__PURE__ */ T("div", { className: g.errorContainerPopover, children: [
118
+ r,
119
+ s,
120
+ l
121
+ ] }), e[9] = r, e[10] = s, e[11] = l, e[12] = m) : m = e[12], m;
121
122
  };
122
123
  export {
123
124
  ie as PairingPopover
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- @keyframes papp_Modal-module_fadeInOpacity_lXaQm{0%{opacity:0}to{opacity:1}}.papp_Modal-module_backdrop_5PnfC{z-index:1000;position:fixed;inset:0;background:hsl(var(--general-background) / .3);opacity:1;animation-name:papp_Modal-module_fadeInOpacity_lXaQm;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:.3s}.papp_Modal-module_modal_L5tLT{z-index:1001;position:absolute;inset:0;margin:auto;width:300px;height:fit-content;border-radius:32px;opacity:1;animation-name:papp_Modal-module_fadeInOpacity_lXaQm;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:.5s;text-rendering:geometricPrecision;background:var(--color-surface-tertiary-inverse);color:var(--color-text-foreground-inverse)}@keyframes papp_QrCode-module_fadeInOpacity_ZCaTW{0%{opacity:0}to{opacity:1}}.papp_QrCode-module_container_L11My{border-radius:34px;animation-name:papp_QrCode-module_fadeInOpacity_ZCaTW;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:.3s;display:flex;justify-content:center;align-items:center;padding:16px}.papp_QrCode-module_gradientLayer_0Gbcy{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.9) 0%,rgba(255,240,200,.7) 5%,rgba(255,200,150,.4) 10%,transparent 18%),radial-gradient(ellipse at 50% 30%,rgba(255,100,200,.6) 0%,rgba(200,120,255,.5) 15%,rgba(150,100,255,.3) 30%,transparent 50%),radial-gradient(ellipse at 50% 70%,rgba(100,200,255,.5) 0%,rgba(80,150,255,.4) 20%,rgba(60,100,200,.3) 40%,transparent 55%),radial-gradient(circle at 20% 20%,rgba(150,100,255,.5) 0%,rgba(120,80,200,.3) 25%,transparent 45%),radial-gradient(circle at 80% 20%,rgba(100,200,255,.5) 0%,rgba(80,150,200,.3) 25%,transparent 45%),radial-gradient(circle at 20% 80%,rgba(255,150,100,.5) 0%,rgba(200,100,150,.3) 25%,transparent 45%),linear-gradient(135deg,#3c5096e6,#5064b4cc 12%,#6478c8b3 25%,#7864b4b3 37%,#8c50a0b3 50%,#78468cbf 62%,#645078cc 75%,#505a82d9 87%,#3c466ee6)}.papp_QrCode-module_gradient-layer_7agFl:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 40%,rgba(255,200,100,.3) 0%,rgba(255,150,150,.2) 15%,transparent 30%),radial-gradient(circle at 70% 60%,rgba(100,255,200,.3) 0%,rgba(100,200,255,.2) 15%,transparent 30%),radial-gradient(circle at 50% 80%,rgba(200,100,255,.3) 0%,rgba(150,100,200,.2) 20%,transparent 35%);filter:blur(25px)}.papp_QrCode-module_gradient-layer_7agFl:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 40% 30%,rgba(255,180,200,.2) 0%,rgba(200,150,255,.15) 20%,transparent 35%),radial-gradient(circle at 60% 70%,rgba(100,220,255,.2) 0%,rgba(150,180,255,.15) 20%,transparent 35%),radial-gradient(ellipse at 80% 50%,rgba(255,150,100,.2) 0%,rgba(255,100,150,.1) 25%,transparent 40%);filter:blur(35px);mix-blend-mode:screen}.papp_Pairing-module_popoverContent_3xnU8{padding:0;border-radius:32px;background:var(--color-surface-tertiary-inverse);color:var(--color-text-foreground-inverse)}.papp_Pairing-module_container_gH7WU{width:350px}.papp_Pairing-module_genericText_zDzqC{font-family:Inter,sans-serif;font-size:24px}.papp_Pairing-module_pairingContainer_R5atH{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 50px 30px}.papp_Pairing-module_pairingHeader_bpfNW{font-family:Inter,sans-serif;text-align:center;font-size:20px;font-style:normal;font-weight:400;line-height:1.83;letter-spacing:-.573px;margin-bottom:9px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_scanCallToAction_lOQ-T{font-family:Inter,sans-serif;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));text-align:center;font-size:22px;font-style:normal;font-weight:400;line-height:1.5;margin-bottom:15px}.papp_Pairing-module_qrContainer_-B50j{background:hsl(var(--general-muted));border-radius:20px}.papp_Pairing-module_pairingDescription_UJE0U{font-family:Inter,sans-serif;width:300px;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));text-align:center;font-size:16px;font-style:normal;font-weight:400;line-height:1.2;margin-top:20px}@keyframes papp_Pairing-module_loader_S62aK{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.papp_Pairing-module_loaderLogo_iHsP9{width:fit-content;height:fit-content;animation:papp_Pairing-module_loader_S62aK 3s linear infinite}.papp_Pairing-module_loaderContainer_cR46U{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:40px;padding:30px;box-sizing:border-box}.papp_Pairing-module_loaderHeader_-q0jo{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:22px;line-height:1.5;letter-spacing:-.526px}.papp_Pairing-module_loaderText_beteT{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:29.203px;font-style:normal;font-weight:400;line-height:53.452px;letter-spacing:-.526px}.papp_Pairing-module_finishedContainer_FtMTm{display:flex;flex-direction:column;align-items:center;height:100%;box-sizing:border-box;padding:40px 70px}.papp_Pairing-module_finishedLogo_jkEDX{display:flex;flex-direction:row;align-items:center;gap:12px}.papp_Pairing-module_finishedLogoSeparator_iRufd{width:1px;height:24px;background:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)))}.papp_Pairing-module_finishedLogoTitle_qKs3e{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:16px;white-space:nowrap;font-style:normal;font-weight:600;line-height:140%;letter-spacing:-.329px}.papp_Pairing-module_finishedWelcome_Zvm-X{margin-top:54px;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));font-family:Inter,sans-serif;font-size:18.39px;font-style:normal;font-weight:400;line-height:27.585px;letter-spacing:1.947px;text-transform:uppercase}.papp_Pairing-module_finishedUsername_RIpsa{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:32.882px;font-style:normal;font-weight:400;line-height:60.185px;letter-spacing:-.593px}.papp_Pairing-module_finishedVoucher_rR0jH{flex-grow:1}.papp_Pairing-module_finishedButton_iuvIR{display:flex;flex-direction:column;width:262px}.papp_Pairing-module_errorContainer_KW5T-{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:12px;height:100%;box-sizing:border-box;padding:40px 30px}.papp_Pairing-module_errorTitle_qokH0{font-family:Inter,sans-serif;text-align:center;font-size:22px;font-style:normal;font-weight:400;line-height:1.83;letter-spacing:-.573px;margin-bottom:9px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_genericText_zDzqC{font-family:Inter,sans-serif;font-size:24px;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)))}.papp_Pairing-module_popoverContainer_fOWoF{width:280px}.papp_Pairing-module_pairingPopoverHeader_PAQot{font-family:Inter,sans-serif;text-align:center;font-size:16px;line-height:1.5;letter-spacing:-.573px;margin-bottom:15px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_scanCallToActionPopover_Irz-z{font-family:Inter,sans-serif;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));text-align:center;font-size:20px;font-weight:600;line-height:1.2;margin:15px 0 10px}.papp_Pairing-module_pairingDescriptionPopover_z71yj{font-family:Inter,sans-serif;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));text-align:center;font-size:14px;line-height:1.2}.papp_Pairing-module_errorContainerPopover_4mELg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:50px 20px;min-height:250px}.papp_Pairing-module_pairingPopoverContainer_RvVnH{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 25px}.papp_Pairing-module_errorTitlePopover_-FPrd{font-family:Inter,sans-serif;text-align:center;font-size:18px;font-style:normal;line-height:1.5;letter-spacing:-.573px;margin-bottom:10px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_errorGenericText_ZPwQb{font-family:Inter,sans-serif;text-align:center;font-size:16px;font-style:normal;line-height:1.5;letter-spacing:-.573px;margin-bottom:20px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_loaderContainerPopover_n1-JJ{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:40px;padding:20px}.papp_Pairing-module_loaderText_beteT{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:20px;line-height:1.5;letter-spacing:-.526px}
1
+ @keyframes papp_Modal-module_fadeInOpacity_lXaQm{0%{opacity:0}to{opacity:1}}.papp_Modal-module_backdrop_5PnfC{z-index:1000;position:fixed;inset:0;background:hsl(var(--general-background) / .3);opacity:1;animation-name:papp_Modal-module_fadeInOpacity_lXaQm;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:.3s}.papp_Modal-module_modal_L5tLT{z-index:1001;position:absolute;inset:0;margin:auto;width:300px;height:fit-content;border-radius:32px;opacity:1;animation-name:papp_Modal-module_fadeInOpacity_lXaQm;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:.5s;text-rendering:geometricPrecision;background:var(--color-surface-tertiary-inverse);color:var(--color-text-foreground-inverse)}@keyframes papp_QrCode-module_fadeInOpacity_ZCaTW{0%{opacity:0}to{opacity:1}}.papp_QrCode-module_container_L11My{border-radius:34px;animation-name:papp_QrCode-module_fadeInOpacity_ZCaTW;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:.3s;display:flex;justify-content:center;align-items:center;padding:16px}.papp_QrCode-module_gradientLayer_0Gbcy{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.9) 0%,rgba(255,240,200,.7) 5%,rgba(255,200,150,.4) 10%,transparent 18%),radial-gradient(ellipse at 50% 30%,rgba(255,100,200,.6) 0%,rgba(200,120,255,.5) 15%,rgba(150,100,255,.3) 30%,transparent 50%),radial-gradient(ellipse at 50% 70%,rgba(100,200,255,.5) 0%,rgba(80,150,255,.4) 20%,rgba(60,100,200,.3) 40%,transparent 55%),radial-gradient(circle at 20% 20%,rgba(150,100,255,.5) 0%,rgba(120,80,200,.3) 25%,transparent 45%),radial-gradient(circle at 80% 20%,rgba(100,200,255,.5) 0%,rgba(80,150,200,.3) 25%,transparent 45%),radial-gradient(circle at 20% 80%,rgba(255,150,100,.5) 0%,rgba(200,100,150,.3) 25%,transparent 45%),linear-gradient(135deg,#3c5096e6,#5064b4cc 12%,#6478c8b3 25%,#7864b4b3 37%,#8c50a0b3 50%,#78468cbf 62%,#645078cc 75%,#505a82d9 87%,#3c466ee6)}.papp_QrCode-module_gradient-layer_7agFl:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 40%,rgba(255,200,100,.3) 0%,rgba(255,150,150,.2) 15%,transparent 30%),radial-gradient(circle at 70% 60%,rgba(100,255,200,.3) 0%,rgba(100,200,255,.2) 15%,transparent 30%),radial-gradient(circle at 50% 80%,rgba(200,100,255,.3) 0%,rgba(150,100,200,.2) 20%,transparent 35%);filter:blur(25px)}.papp_QrCode-module_gradient-layer_7agFl:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 40% 30%,rgba(255,180,200,.2) 0%,rgba(200,150,255,.15) 20%,transparent 35%),radial-gradient(circle at 60% 70%,rgba(100,220,255,.2) 0%,rgba(150,180,255,.15) 20%,transparent 35%),radial-gradient(ellipse at 80% 50%,rgba(255,150,100,.2) 0%,rgba(255,100,150,.1) 25%,transparent 40%);filter:blur(35px);mix-blend-mode:screen}.papp_Pairing-module_popoverContent_3xnU8{padding:0;border-radius:32px;background:var(--color-surface-tertiary-inverse);color:var(--color-text-foreground-inverse)}.papp_Pairing-module_container_gH7WU{width:350px}.papp_Pairing-module_genericText_zDzqC{font-family:Inter,sans-serif;font-size:24px}.papp_Pairing-module_pairingContainer_R5atH{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 50px 30px}.papp_Pairing-module_pairingHeader_bpfNW{font-family:Inter,sans-serif;text-align:center;font-size:20px;font-style:normal;font-weight:400;line-height:1.83;letter-spacing:-.573px;margin-bottom:9px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_scanCallToAction_lOQ-T{font-family:Inter,sans-serif;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));text-align:center;font-size:22px;font-style:normal;font-weight:400;line-height:1.5;margin-bottom:15px}.papp_Pairing-module_pairingDescription_UJE0U{font-family:Inter,sans-serif;width:300px;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));text-align:center;font-size:16px;font-style:normal;font-weight:400;line-height:1.2;margin-top:20px}@keyframes papp_Pairing-module_loader_S62aK{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.papp_Pairing-module_loaderLogo_iHsP9{width:fit-content;height:fit-content;animation:papp_Pairing-module_loader_S62aK 3s linear infinite}.papp_Pairing-module_loaderContainer_cR46U{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:40px;padding:30px;box-sizing:border-box}.papp_Pairing-module_loaderHeader_-q0jo{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:22px;line-height:1.5;letter-spacing:-.526px}.papp_Pairing-module_loaderText_beteT{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:29.203px;font-style:normal;font-weight:400;line-height:53.452px;letter-spacing:-.526px}.papp_Pairing-module_finishedContainer_FtMTm{display:flex;flex-direction:column;align-items:center;height:100%;box-sizing:border-box;padding:40px 70px}.papp_Pairing-module_finishedLogo_jkEDX{display:flex;flex-direction:row;align-items:center;gap:12px}.papp_Pairing-module_finishedLogoSeparator_iRufd{width:1px;height:24px;background:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)))}.papp_Pairing-module_finishedLogoTitle_qKs3e{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:16px;white-space:nowrap;font-style:normal;font-weight:600;line-height:140%;letter-spacing:-.329px}.papp_Pairing-module_finishedWelcome_Zvm-X{margin-top:54px;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));font-family:Inter,sans-serif;font-size:18.39px;font-style:normal;font-weight:400;line-height:27.585px;letter-spacing:1.947px;text-transform:uppercase}.papp_Pairing-module_finishedUsername_RIpsa{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:32.882px;font-style:normal;font-weight:400;line-height:60.185px;letter-spacing:-.593px}.papp_Pairing-module_finishedVoucher_rR0jH{flex-grow:1}.papp_Pairing-module_finishedButton_iuvIR{display:flex;flex-direction:column;width:262px}.papp_Pairing-module_errorContainer_KW5T-{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:12px;height:100%;box-sizing:border-box;padding:40px 30px}.papp_Pairing-module_errorTitle_qokH0{font-family:Inter,sans-serif;text-align:center;font-size:22px;font-style:normal;font-weight:400;line-height:1.83;letter-spacing:-.573px;margin-bottom:9px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_genericText_zDzqC{font-family:Inter,sans-serif;font-size:24px;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)))}.papp_Pairing-module_popoverContainer_fOWoF{width:280px}.papp_Pairing-module_pairingPopoverHeader_PAQot{font-family:Inter,sans-serif;text-align:center;font-size:16px;line-height:1.5;letter-spacing:-.573px;margin-bottom:15px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_scanCallToActionPopover_Irz-z{font-family:Inter,sans-serif;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));text-align:center;font-size:20px;font-weight:600;line-height:1.2;margin:15px 0 10px}.papp_Pairing-module_pairingDescriptionPopover_z71yj{font-family:Inter,sans-serif;color:var(--color-text-foreground-inverse, hsl(var(--muted-foreground)));text-align:center;font-size:14px;line-height:1.2}.papp_Pairing-module_errorContainerPopover_4mELg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:50px 20px;min-height:250px}.papp_Pairing-module_pairingPopoverContainer_RvVnH{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 25px}.papp_Pairing-module_errorTitlePopover_-FPrd{font-family:Inter,sans-serif;text-align:center;font-size:18px;font-style:normal;line-height:1.5;letter-spacing:-.573px;margin-bottom:10px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_errorGenericText_ZPwQb{font-family:Inter,sans-serif;text-align:center;font-size:16px;font-style:normal;line-height:1.5;letter-spacing:-.573px;margin-bottom:20px;color:var(--color-text-foreground-inverse)}.papp_Pairing-module_loaderContainerPopover_n1-JJ{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:40px;padding:20px}.papp_Pairing-module_loaderText_beteT{color:var(--color-text-foreground-inverse);text-align:center;font-family:Inter,sans-serif;font-size:20px;line-height:1.5;letter-spacing:-.526px}.papp_Pairing-module_retryButton_kWeRx{font-family:Inter,sans-serif;font-size:16px;font-weight:500;padding:10px 24px;border-radius:12px;border:1px solid var(--color-text-foreground-inverse);background:transparent;color:var(--color-text-foreground-inverse);cursor:pointer}
package/dist/ui/QrCode.js CHANGED
@@ -1,20 +1,20 @@
1
- import { jsx as L } from "react/jsx-runtime";
2
- import u from "qr-code-styling";
3
- import { memo as i, useState as Q, useMemo as x, useEffect as A } from "react";
4
- import C from "./QrCode.module.css.js";
5
- const y = u, E = "#000000", c = "#ffffff", U = "PHN2ZyB3aWR0aD0iNDMiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0MyA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuNDIxMzggMTAuMTkyM0MtMC43MzQyNTUgMTMuODcxNyAtMC44MTc0NjcgMTguOTkzNCAyLjI0MjE1IDIxLjYyMTVDNS4zMDE3NyAyNC4yNTYgMTAuMzM5MyAyMy40MDM1IDEzLjUwMTMgMTkuNzE3N0MxNi42NTY5IDE2LjAzODMgMTYuNzQwMSAxMC45MTY3IDEzLjY4MDUgOC4yODg1NEMxMi40ODM2IDcuMjU2NTIgMTAuOTczIDYuNzYyOTQgOS4zOTgzNCA2Ljc2Mjk0QzYuOTUzMiA2Ljc2Mjk0IDQuMzQxNjQgNy45NTUyMSAyLjQyMTM4IDEwLjE5MjNaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMS41MDYxNCAyOS4yMzA0Qy0wLjg2ODU4NCAzMi4wNTA4IDAuMTYxOTU2IDM2LjgzOTIgMy44MTA0NiAzOS45MjI0QzcuNDU4OTYgNDMuMDA1NyA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x-runtime";
2
+ import x from "qr-code-styling";
3
+ import { memo as C, useState as c, useMemo as E, useEffect as T } from "react";
4
+ import k from "./QrCode.module.css.js";
5
+ const A = x, y = "#000000", O = "#ffffff", U = "PHN2ZyB3aWR0aD0iNDMiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0MyA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuNDIxMzggMTAuMTkyM0MtMC43MzQyNTUgMTMuODcxNyAtMC44MTc0NjcgMTguOTkzNCAyLjI0MjE1IDIxLjYyMTVDNS4zMDE3NyAyNC4yNTYgMTAuMzM5MyAyMy40MDM1IDEzLjUwMTMgMTkuNzE3N0MxNi42NTY5IDE2LjAzODMgMTYuNzQwMSAxMC45MTY3IDEzLjY4MDUgOC4yODg1NEMxMi40ODM2IDcuMjU2NTIgMTAuOTczIDYuNzYyOTQgOS4zOTgzNCA2Ljc2Mjk0QzYuOTUzMiA2Ljc2Mjk0IDQuMzQxNjQgNy45NTUyMSAyLjQyMTM4IDEwLjE5MjNaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMS41MDYxNCAyOS4yMzA0Qy0wLjg2ODU4NCAzMi4wNTA4IDAuMTYxOTU2IDM2LjgzOTIgMy44MTA0NiAzOS45MjI0QzcuNDU4OTYgNDMuMDA1NyAxMi4zNDkyIDQzLjIyMzYgMTQuNzI0IDQwLjQwMzJDMTcuMDk4NyAzNy41ODI3IDE2LjA2ODEgMzIuNzk0NCAxMi40MTk2IDI5LjcxMTJDMTAuNDg2NiAyOC4wNzY2IDguMjA3ODYgMjcuMjQ5NyA2LjE0MDM4IDI3LjI0OTdDNC4zMDMzMyAyNy4yNDk3IDIuNjI2MyAyNy45MDM1IDEuNTEyNTQgMjkuMjMwNCIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTIyLjkyOTcgMzkuNTUwNkMxOC42NDc1IDQwLjkwM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xNDU4IDQ2Ljk1NzQgMTYuMTA5NiA0OS4xNDkgMjEuNTMwOUM1MS4zNDA2IDI2Ljk2MDkgNTQuNDg5OSAzMC44MDI1IDU2LjE4OTcgMzAuMTIwNUM1Ny44ODA4IDI5LjQzODUgNTcuNDgzOSAyNC40ODMzIDU1LjI5MjMgMTkuMDUzNEM1My4yNzMzIDE0LjA0NjQgNTAuNDM0NiAxMC4zODYxIDQ4LjY3NDQgMTAuMzg2MUM0OC41Mjc3IDEwLjM4NjEgNDguMzg5NyAxMC40MTIgNDguMjUxNiAxMC40NjM4WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNNDkuNTU0NCA0My40NDkxQzQ3LjEzODUgNDguNjg5MiA0Ni4zMDE1IDUzLjQ2MzEgNDcuNjkwNyA1NC4xMDE5QzQ5LjA3OTggNTQuNzQwNyA1Mi4xNjg4IDUxLjAxMTQgNTQuNTg0NyA0NS43NzEzQzU3LjAwOTIgNDAuNTMxMyA1Ny44Mzc2IDM1Ljc1NzQgNTYuNDU3IDM1LjExODVDNTYuMzUzNSAzNS4wNjY3IDU2LjI0MTMgMzUuMDQ5NSA1Ni4xMTE5IDM1LjA0OTVDNTQuNjAyIDM1LjA0OTUgNTEuNzg5MSAzOC42MDYyIDQ5LjU1NDQgNDMuNDQ5MVoiIGZpbGw9IndoaXRlIi8+PC9zdmc+", s = C(({
6
6
  value: j,
7
7
  size: M,
8
- theme: z = "light"
8
+ theme: L = "light"
9
9
  }) => {
10
- const [N, O] = Q(null), g = z === "dark", D = g ? c : E, T = g ? k : U, I = x(() => new y({
10
+ const [N, u] = c(null), z = L === "dark", D = z ? O : y, i = z ? y : O, g = z ? Y : U, I = E(() => new A({
11
11
  data: j,
12
12
  type: "svg",
13
13
  shape: "square",
14
14
  width: M,
15
15
  height: M,
16
16
  margin: 0,
17
- image: `data:image/svg+xml;base64,${T}`,
17
+ image: `data:image/svg+xml;base64,${g}`,
18
18
  imageOptions: {
19
19
  hideBackgroundDots: !0,
20
20
  imageSize: 0.4,
@@ -38,18 +38,19 @@ const y = u, E = "#000000", c = "#ffffff", U = "PHN2ZyB3aWR0aD0iNDMiIGhlaWdodD0i
38
38
  qrOptions: {
39
39
  errorCorrectionLevel: "M"
40
40
  }
41
- }), [M, z, D, T]);
42
- return A(() => (N && I.append(N), () => {
43
- N && y._clearContainer(N);
44
- }), [I, N]), A(() => {
41
+ }), [M, D, g]);
42
+ return T(() => (N && I.append(N), () => {
43
+ N && A._clearContainer(N);
44
+ }), [I, N]), T(() => {
45
45
  I?.update({
46
46
  data: j
47
47
  });
48
- }, [j, I]), /* @__PURE__ */ L("div", { className: C.container, style: {
48
+ }, [j, I]), /* @__PURE__ */ Q("div", { className: k.container, style: {
49
49
  height: M,
50
- width: M
51
- }, ref: O });
50
+ width: M,
51
+ backgroundColor: i
52
+ }, ref: u });
52
53
  });
53
54
  export {
54
- t as QrCode
55
+ s as QrCode
55
56
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/host-papp-react-ui",
3
3
  "type": "module",
4
- "version": "0.6.18",
4
+ "version": "0.7.0-1",
5
5
  "description": "Polkadot app UI Flow",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -30,18 +30,20 @@
30
30
  "react-dom": ">=18"
31
31
  },
32
32
  "dependencies": {
33
- "@novasamatech/statement-store": "0.6.18",
34
- "@polkadot-api/utils": "^0.2.0",
33
+ "@novasamatech/host-papp": "0.7.0-1",
34
+ "@novasamatech/statement-store": "0.7.0-1",
35
+ "@polkadot-api/utils": "^0.4.0",
35
36
  "@radix-ui/react-dialog": "1.1.15",
37
+ "@radix-ui/react-popover": "1.1.15",
36
38
  "qr-code-styling": "1.9.2",
37
- "@novasamatech/tr-ui": "0.1.38"
39
+ "@novasamatech/tr-ui": "0.2.3"
38
40
  },
39
41
  "devDependencies": {
40
42
  "@types/react": "19.2.14",
41
43
  "@types/react-dom": "19.2.3",
42
- "@polkadot-api/substrate-bindings": "^0.17.0",
43
- "react": "19.2.4",
44
- "react-dom": "19.2.4",
44
+ "@polkadot-api/substrate-bindings": "^0.20.0",
45
+ "react": "19.2.5",
46
+ "react-dom": "19.2.5",
45
47
  "typescript-plugin-css-modules": "5.2.0",
46
48
  "vite-plugin-wasm": "3.6.0"
47
49
  },