@htmlbricks/hb-page-checkout 0.8.39 → 0.8.45

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/release/docs.mjs DELETED
@@ -1,39 +0,0 @@
1
- export var storybookArgs = {
2
- shipments: { control: { type: "array" } },
3
- user: { control: { type: "object" } },
4
- payment: { control: { type: "object" } },
5
- paymentCompleted: { action: "paymentCompleted" },
6
- saveUser: { action: "saveUser" },
7
- // saveShipment: { action: "saveShipment" },
8
- gateways: { control: { type: "array" } },
9
- completed: { control: { type: "radio" }, options: ["yes", "no"] }
10
- };
11
- var cssVars = [
12
- { name: "--hb-checkout-border", description: "", defaultValue: "0.5px solid rgba(197, 197, 197, 0.808)", valueType: "string" },
13
- { name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
14
- { name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
15
- { name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
16
- { name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
17
- { name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
18
- { name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
19
- ];
20
- export var cssParts = [];
21
- export var htmlSlots = [];
22
- export var i18nLanguages = [];
23
- export var styleSetup = {
24
- vars: cssVars,
25
- parts: cssParts
26
- };
27
- export var componentSetup = {
28
- definitions: null,
29
- storybookArgs: storybookArgs,
30
- styleSetup: styleSetup,
31
- htmlSlots: htmlSlots,
32
- i18n: i18nLanguages,
33
- examples: [],
34
- name: "",
35
- category: "",
36
- tags: [],
37
- size: {}
38
- };
39
- //# sourceMappingURL=docs.js.map
@@ -1,255 +0,0 @@
1
- {
2
- "$ref": "#/definitions/Component",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "definitions": {
5
- "Component": {
6
- "additionalProperties": false,
7
- "properties": {
8
- "completed": {
9
- "enum": [
10
- "yes",
11
- "no"
12
- ],
13
- "type": "string"
14
- },
15
- "gateways": {
16
- "items": {
17
- "$ref": "#/definitions/IGateway"
18
- },
19
- "type": "array"
20
- },
21
- "id": {
22
- "type": "string"
23
- },
24
- "payment": {
25
- "additionalProperties": false,
26
- "properties": {
27
- "countryCode": {
28
- "enum": [
29
- "IT",
30
- "US",
31
- "EU"
32
- ],
33
- "type": "string"
34
- },
35
- "currencyCode": {
36
- "type": "string"
37
- },
38
- "currencySymbol": {
39
- "enum": [
40
- "€",
41
- "$"
42
- ],
43
- "type": "string"
44
- },
45
- "items": {
46
- "items": {
47
- "$ref": "#/definitions/IShopItem"
48
- },
49
- "type": "array"
50
- },
51
- "merchantName": {
52
- "type": "string"
53
- },
54
- "shipmentFee": {
55
- "type": "number"
56
- },
57
- "total": {
58
- "type": "number"
59
- },
60
- "type": {
61
- "$ref": "#/definitions/IPaymentType"
62
- }
63
- },
64
- "required": [
65
- "countryCode",
66
- "currencyCode",
67
- "items",
68
- "merchantName",
69
- "total"
70
- ],
71
- "type": "object"
72
- },
73
- "shipments": {
74
- "items": {
75
- "$ref": "#/definitions/IShipment"
76
- },
77
- "type": "array"
78
- },
79
- "style": {
80
- "type": "string"
81
- },
82
- "user": {
83
- "$ref": "#/definitions/IUser"
84
- }
85
- },
86
- "required": [
87
- "shipments",
88
- "user",
89
- "payment",
90
- "gateways"
91
- ],
92
- "type": "object"
93
- },
94
- "IGateway": {
95
- "additionalProperties": false,
96
- "properties": {
97
- "cardNetworks": {
98
- "items": {
99
- "type": "string"
100
- },
101
- "type": "array"
102
- },
103
- "currency": {
104
- "enum": [
105
- "€",
106
- "$"
107
- ],
108
- "type": "string"
109
- },
110
- "fixedPrice": {
111
- "type": "number"
112
- },
113
- "gatewayId": {
114
- "type": "string"
115
- },
116
- "gatewayMerchantId": {
117
- "type": "string"
118
- },
119
- "id": {
120
- "enum": [
121
- "google",
122
- "paypal"
123
- ],
124
- "type": "string"
125
- },
126
- "label": {
127
- "type": "string"
128
- },
129
- "merchantId": {
130
- "type": "string"
131
- },
132
- "paypalid": {
133
- "type": "string"
134
- },
135
- "percentagePrice": {
136
- "type": "number"
137
- }
138
- },
139
- "required": [
140
- "id",
141
- "label"
142
- ],
143
- "type": "object"
144
- },
145
- "IPaymentType": {
146
- "enum": [
147
- "book",
148
- "buy",
149
- "checkout",
150
- "donate",
151
- "order",
152
- "pay",
153
- "plain",
154
- "subscribe"
155
- ],
156
- "type": "string"
157
- },
158
- "IShipment": {
159
- "additionalProperties": false,
160
- "properties": {
161
- "arriveDate": {
162
- "format": "date-time",
163
- "type": "string"
164
- },
165
- "available": {
166
- "type": "boolean"
167
- },
168
- "currency": {
169
- "type": "string"
170
- },
171
- "id": {
172
- "type": "string"
173
- },
174
- "label": {
175
- "type": "string"
176
- },
177
- "price": {
178
- "type": "number"
179
- },
180
- "selected": {
181
- "type": "boolean"
182
- },
183
- "standard": {
184
- "type": "boolean"
185
- }
186
- },
187
- "required": [
188
- "price",
189
- "arriveDate",
190
- "available",
191
- "id",
192
- "label",
193
- "currency"
194
- ],
195
- "type": "object"
196
- },
197
- "IShopItem": {
198
- "additionalProperties": false,
199
- "properties": {
200
- "id": {
201
- "type": "string"
202
- },
203
- "name": {
204
- "type": "string"
205
- },
206
- "quantity": {
207
- "type": "number"
208
- },
209
- "taxPercentage": {
210
- "type": "number"
211
- },
212
- "unit": {
213
- "type": "string"
214
- },
215
- "unitaryPrice": {
216
- "type": "number"
217
- }
218
- },
219
- "required": [
220
- "id",
221
- "name",
222
- "unitaryPrice",
223
- "taxPercentage"
224
- ],
225
- "type": "object"
226
- },
227
- "IUser": {
228
- "additionalProperties": false,
229
- "properties": {
230
- "addressWithNumber": {
231
- "type": "string"
232
- },
233
- "city": {
234
- "type": "string"
235
- },
236
- "fixed": {
237
- "type": "boolean"
238
- },
239
- "fullName": {
240
- "type": "string"
241
- },
242
- "nationality": {
243
- "type": "string"
244
- },
245
- "zip": {
246
- "type": "string"
247
- }
248
- },
249
- "required": [
250
- "fullName"
251
- ],
252
- "type": "object"
253
- }
254
- }
255
- }
@@ -1,67 +0,0 @@
1
- {
2
- "$ref": "#/definitions/Events",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "definitions": {
5
- "Events": {
6
- "additionalProperties": false,
7
- "properties": {
8
- "paymentCompleted": {
9
- "additionalProperties": false,
10
- "properties": {
11
- "completed": {
12
- "const": true,
13
- "type": "boolean"
14
- },
15
- "method": {
16
- "type": "string"
17
- },
18
- "total": {
19
- "type": "number"
20
- }
21
- },
22
- "required": [
23
- "total",
24
- "method",
25
- "completed"
26
- ],
27
- "type": "object"
28
- },
29
- "saveUser": {
30
- "$ref": "#/definitions/IUser"
31
- }
32
- },
33
- "required": [
34
- "saveUser",
35
- "paymentCompleted"
36
- ],
37
- "type": "object"
38
- },
39
- "IUser": {
40
- "additionalProperties": false,
41
- "properties": {
42
- "addressWithNumber": {
43
- "type": "string"
44
- },
45
- "city": {
46
- "type": "string"
47
- },
48
- "fixed": {
49
- "type": "boolean"
50
- },
51
- "fullName": {
52
- "type": "string"
53
- },
54
- "nationality": {
55
- "type": "string"
56
- },
57
- "zip": {
58
- "type": "string"
59
- }
60
- },
61
- "required": [
62
- "fullName"
63
- ],
64
- "type": "object"
65
- }
66
- }
67
- }