@ecomiq/storefront 1.1.3 → 1.1.4
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/chunks/client.css +173 -0
- package/dist/chunks/client.css.map +1 -1
- package/dist/chunks/client.d.ts +88 -2
- package/dist/chunks/client.js +166 -1
- package/dist/chunks/client.js.map +1 -1
- package/dist/react/checkout-page.css +855 -0
- package/dist/react/client.css +984 -0
- package/dist/react/payment-provider.css +91 -0
- package/dist/react/thank-you-page.css +105 -0
- package/package.json +5 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* Estilos headless para proveedores de pago (sin @ecomiq/ui). */
|
|
2
|
+
|
|
3
|
+
.ecomiq-payment-provider__panel {
|
|
4
|
+
border: 1px solid #d9d9d9;
|
|
5
|
+
border-radius: 5px;
|
|
6
|
+
padding: 1rem;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 0.75rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ecomiq-payment-provider__title {
|
|
13
|
+
margin: 0;
|
|
14
|
+
font-size: 0.875rem;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ecomiq-payment-provider__hint {
|
|
19
|
+
margin: 0;
|
|
20
|
+
font-size: 0.875rem;
|
|
21
|
+
color: #6d6d6d;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ecomiq-payment-provider__hint--sm {
|
|
25
|
+
font-size: 0.75rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ecomiq-payment-provider__redirect {
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
width: 100%;
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
padding: 0.65rem 1.25rem;
|
|
35
|
+
border: none;
|
|
36
|
+
border-radius: 5px;
|
|
37
|
+
background: #121212;
|
|
38
|
+
color: #fff;
|
|
39
|
+
font-size: 0.875rem;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
text-decoration: none;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ecomiq-payment-provider__redirect:hover {
|
|
46
|
+
opacity: 0.9;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ecomiq-payment-provider__qr-wrap {
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
padding-top: 0.5rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ecomiq-payment-provider__qr {
|
|
56
|
+
max-width: 220px;
|
|
57
|
+
border: 1px solid #d9d9d9;
|
|
58
|
+
border-radius: 5px;
|
|
59
|
+
background: #fff;
|
|
60
|
+
padding: 0.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ecomiq-payment-provider__mono {
|
|
64
|
+
font-family: ui-monospace, monospace;
|
|
65
|
+
font-size: 0.75rem;
|
|
66
|
+
word-break: break-all;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ecomiq-payment-provider__details {
|
|
70
|
+
border: 1px dashed #d9d9d9;
|
|
71
|
+
border-radius: 5px;
|
|
72
|
+
padding: 0.5rem;
|
|
73
|
+
font-size: 0.75rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ecomiq-payment-provider__details summary {
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
color: #6d6d6d;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ecomiq-payment-provider__details pre {
|
|
83
|
+
margin: 0.5rem 0 0;
|
|
84
|
+
max-height: 12rem;
|
|
85
|
+
overflow: auto;
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
background: #f5f5f5;
|
|
88
|
+
padding: 0.5rem;
|
|
89
|
+
font-size: 0.6875rem;
|
|
90
|
+
line-height: 1.35;
|
|
91
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.ecomiq-thank-you-page {
|
|
2
|
+
--ty-bg: #ffffff;
|
|
3
|
+
--ty-border: #d9d9d9;
|
|
4
|
+
--ty-text: #121212;
|
|
5
|
+
--ty-muted: #6d6d6d;
|
|
6
|
+
--ty-success: #177245;
|
|
7
|
+
min-height: 100dvh;
|
|
8
|
+
background: #f6f6f6;
|
|
9
|
+
color: var(--ty-text);
|
|
10
|
+
font-family:
|
|
11
|
+
-apple-system,
|
|
12
|
+
BlinkMacSystemFont,
|
|
13
|
+
"Segoe UI",
|
|
14
|
+
Roboto,
|
|
15
|
+
Helvetica,
|
|
16
|
+
Arial,
|
|
17
|
+
sans-serif;
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
line-height: 1.5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ecomiq-thank-you-page__top {
|
|
23
|
+
border-bottom: 1px solid var(--ty-border);
|
|
24
|
+
padding: 1.25rem 1.5rem;
|
|
25
|
+
text-align: center;
|
|
26
|
+
background: var(--ty-bg);
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ecomiq-thank-you-page__logo {
|
|
32
|
+
font-size: 1.5rem;
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
letter-spacing: 0.2em;
|
|
35
|
+
text-transform: uppercase;
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
color: inherit;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ecomiq-thank-you-page__logo img {
|
|
41
|
+
max-height: 2.5rem;
|
|
42
|
+
width: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ecomiq-thank-you-page__main {
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
padding: 3rem 1.5rem 4rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ecomiq-thank-you-page__card {
|
|
52
|
+
width: 100%;
|
|
53
|
+
max-width: 32rem;
|
|
54
|
+
text-align: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ecomiq-thank-you-page__icon {
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
width: 3.25rem;
|
|
62
|
+
height: 3.25rem;
|
|
63
|
+
margin: 0 auto 1.5rem;
|
|
64
|
+
border-radius: 50%;
|
|
65
|
+
background: var(--ty-success);
|
|
66
|
+
color: #fff;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ecomiq-thank-you-page__icon svg {
|
|
70
|
+
width: 1.65rem;
|
|
71
|
+
height: 1.65rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ecomiq-thank-you-page__title {
|
|
75
|
+
margin: 0 0 1.25rem;
|
|
76
|
+
font-size: clamp(1.5rem, 4vw, 1.875rem);
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
letter-spacing: -0.02em;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ecomiq-thank-you-page__text {
|
|
82
|
+
margin: 0 0 0.75rem;
|
|
83
|
+
font-size: 0.9375rem;
|
|
84
|
+
color: var(--ty-text);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ecomiq-thank-you-page__text strong {
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ecomiq-thank-you-page__text--muted {
|
|
92
|
+
color: var(--ty-muted);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ecomiq-thank-you-page__actions {
|
|
96
|
+
margin-top: 2rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ecomiq-thank-you-page__link {
|
|
100
|
+
display: inline-block;
|
|
101
|
+
font-size: 0.875rem;
|
|
102
|
+
color: var(--ty-text);
|
|
103
|
+
text-decoration: underline;
|
|
104
|
+
text-underline-offset: 2px;
|
|
105
|
+
}
|
package/package.json
CHANGED
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
"types": "./dist/react.d.ts",
|
|
35
35
|
"import": "./dist/react.js"
|
|
36
36
|
},
|
|
37
|
+
"./react/checkout-page.css": "./dist/react/checkout-page.css",
|
|
38
|
+
"./react/payment-provider.css": "./dist/react/payment-provider.css",
|
|
39
|
+
"./react/thank-you-page.css": "./dist/react/thank-you-page.css",
|
|
40
|
+
"./react/client.css": "./dist/react/client.css",
|
|
37
41
|
"./nextjs": {
|
|
38
42
|
"types": "./dist/nextjs.d.ts",
|
|
39
43
|
"react-server": {
|
|
@@ -75,7 +79,7 @@
|
|
|
75
79
|
"optional": true
|
|
76
80
|
}
|
|
77
81
|
},
|
|
78
|
-
"version": "1.1.
|
|
82
|
+
"version": "1.1.4",
|
|
79
83
|
"dependencies": {
|
|
80
84
|
"@hookform/resolvers": "5.0.1",
|
|
81
85
|
"@tanstack/react-query": "^5.66.9",
|