@astropay/payments-lib 1.0.0 → 1.0.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.
@@ -1,4 +1,4 @@
1
- import { p as x, V as z, W as H, w as O, X as W, Y as v, Z as X, O as Y, M as Z } from "./main-1w_Hhk-H.js";
1
+ import { p as x, V as z, W as H, w as O, X as W, Y as v, Z as X, O as Y, M as Z } from "./main-DgMRwY7U.js";
2
2
  function q(e) {
3
3
  let t = 0;
4
4
  for (const o of e)
@@ -1,4 +1,4 @@
1
- import { s as A, C, b as ft, i as Y, g as V, N as h, P as X, S as pt, a as B, c as ht, d as mt, e as St, f as q, r as gt, h as Et, j as yt, k as Tt, l as j, m as J, t as _, n as x, o as M, p as K, q as N, u as Q, v as Z, w as Nt, x as vt, y as b, z as D, A as R, B as wt, D as Mt, E as It, F as Rt, G as Ct, H as bt, I as _t, J as Lt, K as Dt, L as xt, M as Ot, O as At, Q as Vt, R as Pt, T as kt, U as zt } from "./main-1w_Hhk-H.js";
1
+ import { s as A, C, b as ft, i as Y, g as V, N as h, P as X, S as pt, a as B, c as ht, d as mt, e as St, f as q, r as gt, h as Et, j as yt, k as Tt, l as j, m as J, t as _, n as x, o as M, p as K, q as N, u as Q, v as Z, w as Nt, x as vt, y as b, z as D, A as R, B as wt, D as Mt, E as It, F as Rt, G as Ct, H as bt, I as _t, J as Lt, K as Dt, L as xt, M as Ot, O as At, Q as Vt, R as Pt, T as kt, U as zt } from "./main-DgMRwY7U.js";
2
2
  const P = /* @__PURE__ */ new WeakMap();
3
3
  function T(t) {
4
4
  return P.has(t);
@@ -23,6 +23,16 @@ type APComponentStyles = {
23
23
  width: string | number;
24
24
  paddingWrapper: string | number;
25
25
  borderRadiusWrapper: string | number;
26
+ messages: {
27
+ success: {
28
+ textColor: string;
29
+ textSize: number;
30
+ };
31
+ error: {
32
+ textColor: string;
33
+ textSize: number;
34
+ };
35
+ };
26
36
  input: {
27
37
  normal: {
28
38
  textColor: string;
@@ -96,6 +106,83 @@ type APComponentStyles = {
96
106
  borderWidth: number;
97
107
  };
98
108
  };
109
+ divider: {
110
+ color: string;
111
+ variant: 'dashed' | 'dotted' | 'solid';
112
+ size: number;
113
+ };
114
+ card: {
115
+ padding: number;
116
+ backgroundColor: string;
117
+ borderWidth: number;
118
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
119
+ borderColor: string;
120
+ borderRadius: number;
121
+ };
122
+ qrCode: {
123
+ padding: number | string;
124
+ backgroundColor: string;
125
+ borderWidth: number;
126
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
127
+ borderColor: string;
128
+ borderRadius: number;
129
+ };
130
+ badge: {
131
+ default: {
132
+ padding: number | string;
133
+ textColor: string;
134
+ backgroundColor: string;
135
+ borderWidth: number;
136
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
137
+ borderColor: string;
138
+ borderRadius: number;
139
+ };
140
+ highlight: {
141
+ padding: number | string;
142
+ textColor: string;
143
+ backgroundColor: string;
144
+ borderWidth: number;
145
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
146
+ borderColor: string;
147
+ borderRadius: number;
148
+ };
149
+ error: {
150
+ padding: number | string;
151
+ textColor: string;
152
+ backgroundColor: string;
153
+ borderWidth: number;
154
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
155
+ borderColor: string;
156
+ borderRadius: number;
157
+ };
158
+ success: {
159
+ padding: number | string;
160
+ textColor: string;
161
+ backgroundColor: string;
162
+ borderWidth: number;
163
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
164
+ borderColor: string;
165
+ borderRadius: number;
166
+ };
167
+ warning: {
168
+ padding: number | string;
169
+ textColor: string;
170
+ backgroundColor: string;
171
+ borderWidth: number;
172
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
173
+ borderColor: string;
174
+ borderRadius: number;
175
+ };
176
+ };
177
+ timer: {
178
+ padding: number | string;
179
+ textColor: string;
180
+ backgroundColor: string;
181
+ borderWidth: number;
182
+ borderStyle: 'dashed' | 'dotted' | 'solid' | 'none';
183
+ borderColor: string;
184
+ borderRadius: number;
185
+ };
99
186
  };
100
187
  type APCore = {
101
188
  environment?: APEnvironment;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.0.2",
3
3
  "type": "module",
4
4
  "name": "@astropay/payments-lib",
5
5
  "description": "Official AstroPay payments library for web and mobile.",
@@ -8,14 +8,14 @@
8
8
  "author": {
9
9
  "name": "AstroPay",
10
10
  "email": "support@astropay.com",
11
- "url": "https://developers.astropay.com/help"
11
+ "url": "https://developers.astropay.com/contact"
12
12
  },
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "https://developers.astropay.com/docs/payments-library"
18
+ "url": "https://developers.astropay.com/docs/accept-astropay/checkout/payment-lib-web/introduction"
19
19
  },
20
20
  "contributors": [
21
21
  {