@faststore/components 2.2.0-alpha.4 → 2.2.0-alpha.9
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/cjs/organisms/ShippingSimulation/ShippingSimulation.d.ts +46 -0
- package/dist/cjs/organisms/ShippingSimulation/ShippingSimulation.js.map +1 -1
- package/dist/esm/organisms/ShippingSimulation/ShippingSimulation.d.ts +46 -0
- package/dist/esm/organisms/ShippingSimulation/ShippingSimulation.js.map +1 -1
- package/package.json +2 -2
- package/src/organisms/ShippingSimulation/ShippingSimulation.tsx +47 -0
|
@@ -16,6 +16,48 @@ interface ShippingSLA {
|
|
|
16
16
|
*/
|
|
17
17
|
price: number;
|
|
18
18
|
}
|
|
19
|
+
interface Address {
|
|
20
|
+
/**
|
|
21
|
+
* Address postal code
|
|
22
|
+
*/
|
|
23
|
+
postalCode?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Address city
|
|
26
|
+
*/
|
|
27
|
+
city?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Address state
|
|
30
|
+
*/
|
|
31
|
+
state?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Address country
|
|
34
|
+
*/
|
|
35
|
+
country?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Address street
|
|
38
|
+
*/
|
|
39
|
+
street?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Address number
|
|
42
|
+
*/
|
|
43
|
+
number?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Address neighborhood
|
|
46
|
+
*/
|
|
47
|
+
neighborhood?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Address complement
|
|
50
|
+
*/
|
|
51
|
+
complement?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Address reference
|
|
54
|
+
*/
|
|
55
|
+
reference?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Address geoCoordinates
|
|
58
|
+
*/
|
|
59
|
+
geoCoordinates?: [number];
|
|
60
|
+
}
|
|
19
61
|
export interface ShippingSimulationProps extends HTMLAttributes<HTMLDivElement> {
|
|
20
62
|
/**
|
|
21
63
|
* ID to find this component in testing tools (e.g.: cypress,
|
|
@@ -58,6 +100,10 @@ export interface ShippingSimulationProps extends HTMLAttributes<HTMLDivElement>
|
|
|
58
100
|
* Location for shipping.
|
|
59
101
|
*/
|
|
60
102
|
location?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Address for shipping.
|
|
105
|
+
*/
|
|
106
|
+
address?: Address;
|
|
61
107
|
/**
|
|
62
108
|
* Options for shipping simulation.
|
|
63
109
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShippingSimulation.js","sourceRoot":"","sources":["../../../../src/organisms/ShippingSimulation/ShippingSimulation.tsx"],"names":[],"mappings":";;;AAGA,0DAAyB;AAEzB,6BAWc;
|
|
1
|
+
{"version":3,"file":"ShippingSimulation.js","sourceRoot":"","sources":["../../../../src/organisms/ShippingSimulation/ShippingSimulation.tsx"],"names":[],"mappings":";;;AAGA,0DAAyB;AAEzB,6BAWc;AA6Hd,SAAS,kBAAkB,CAAC,EAC1B,MAAM,GAAG,wBAAwB,EACjC,SAAS,EACT,KAAK,GAAG,UAAU,EAClB,UAAU,GAAG,aAAa,EAC1B,YAAY,GAAG,kBAAkB,EACjC,sBAAsB,EACtB,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,kBAAkB,GAAG,KAAK,EAC1B,YAAY,EACZ,UAAU,EACV,GAAG,UAAU,EACW;IACxB,MAAM,kBAAkB,GAAG,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAA;IAE1D,OAAO,CACL,qHAEqC,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,iBAC5D,MAAM,KACf,UAAU;QAEd,mFAAuC,KAAK,CAAM;QAElD,8BAAC,cAAU,IACT,UAAU,QACV,KAAK,EAAE,YAAY,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@ -16,6 +16,48 @@ interface ShippingSLA {
|
|
|
16
16
|
*/
|
|
17
17
|
price: number;
|
|
18
18
|
}
|
|
19
|
+
interface Address {
|
|
20
|
+
/**
|
|
21
|
+
* Address postal code
|
|
22
|
+
*/
|
|
23
|
+
postalCode?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Address city
|
|
26
|
+
*/
|
|
27
|
+
city?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Address state
|
|
30
|
+
*/
|
|
31
|
+
state?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Address country
|
|
34
|
+
*/
|
|
35
|
+
country?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Address street
|
|
38
|
+
*/
|
|
39
|
+
street?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Address number
|
|
42
|
+
*/
|
|
43
|
+
number?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Address neighborhood
|
|
46
|
+
*/
|
|
47
|
+
neighborhood?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Address complement
|
|
50
|
+
*/
|
|
51
|
+
complement?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Address reference
|
|
54
|
+
*/
|
|
55
|
+
reference?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Address geoCoordinates
|
|
58
|
+
*/
|
|
59
|
+
geoCoordinates?: [number];
|
|
60
|
+
}
|
|
19
61
|
export interface ShippingSimulationProps extends HTMLAttributes<HTMLDivElement> {
|
|
20
62
|
/**
|
|
21
63
|
* ID to find this component in testing tools (e.g.: cypress,
|
|
@@ -58,6 +100,10 @@ export interface ShippingSimulationProps extends HTMLAttributes<HTMLDivElement>
|
|
|
58
100
|
* Location for shipping.
|
|
59
101
|
*/
|
|
60
102
|
location?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Address for shipping.
|
|
105
|
+
*/
|
|
106
|
+
address?: Address;
|
|
61
107
|
/**
|
|
62
108
|
* Options for shipping simulation.
|
|
63
109
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShippingSimulation.js","sourceRoot":"","sources":["../../../../src/organisms/ShippingSimulation/ShippingSimulation.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,IAAI,EACJ,UAAU,EACV,IAAI,EAGJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ShippingSimulation.js","sourceRoot":"","sources":["../../../../src/organisms/ShippingSimulation/ShippingSimulation.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,IAAI,EACJ,UAAU,EACV,IAAI,EAGJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAA;AA6Hd,SAAS,kBAAkB,CAAC,EAC1B,MAAM,GAAG,wBAAwB,EACjC,SAAS,EACT,KAAK,GAAG,UAAU,EAClB,UAAU,GAAG,aAAa,EAC1B,YAAY,GAAG,kBAAkB,EACjC,sBAAsB,EACtB,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,kBAAkB,GAAG,KAAK,EAC1B,YAAY,EACZ,UAAU,EACV,GAAG,UAAU,EACW;IACxB,MAAM,kBAAkB,GAAG,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAA;IAE1D,OAAO,CACL,2GAEqC,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,iBAC5D,MAAM,KACf,UAAU;QAEd,yEAAuC,KAAK,CAAM;QAElD,oBAAC,UAAU,IACT,UAAU,QACV,KAAK,EAAE,YAAY,EACnB,EAAE,EAAE,GAAG,MAAM,cAAc,EAC3B,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,CAAC,KAAK,E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"version": "2.2.0-alpha.9",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"typings": "dist/esm/index.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"node": "16.18.0",
|
|
44
44
|
"yarn": "1.19.1"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "79b9eb42f6f8fb7fdead1141f384c7b826357fa3"
|
|
47
47
|
}
|
|
@@ -31,6 +31,49 @@ interface ShippingSLA {
|
|
|
31
31
|
price: number
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
interface Address {
|
|
35
|
+
/**
|
|
36
|
+
* Address postal code
|
|
37
|
+
*/
|
|
38
|
+
postalCode?: string
|
|
39
|
+
/**
|
|
40
|
+
* Address city
|
|
41
|
+
*/
|
|
42
|
+
city?: string
|
|
43
|
+
/**
|
|
44
|
+
* Address state
|
|
45
|
+
*/
|
|
46
|
+
state?: string
|
|
47
|
+
/**
|
|
48
|
+
* Address country
|
|
49
|
+
*/
|
|
50
|
+
country?: string
|
|
51
|
+
/**
|
|
52
|
+
* Address street
|
|
53
|
+
*/
|
|
54
|
+
street?: string
|
|
55
|
+
/**
|
|
56
|
+
* Address number
|
|
57
|
+
*/
|
|
58
|
+
number?: string
|
|
59
|
+
/**
|
|
60
|
+
* Address neighborhood
|
|
61
|
+
*/
|
|
62
|
+
neighborhood?: string
|
|
63
|
+
/**
|
|
64
|
+
* Address complement
|
|
65
|
+
*/
|
|
66
|
+
complement?: string
|
|
67
|
+
/**
|
|
68
|
+
* Address reference
|
|
69
|
+
*/
|
|
70
|
+
reference?: string
|
|
71
|
+
/**
|
|
72
|
+
* Address geoCoordinates
|
|
73
|
+
*/
|
|
74
|
+
geoCoordinates?: [number]
|
|
75
|
+
}
|
|
76
|
+
|
|
34
77
|
export interface ShippingSimulationProps
|
|
35
78
|
extends HTMLAttributes<HTMLDivElement> {
|
|
36
79
|
/**
|
|
@@ -74,6 +117,10 @@ export interface ShippingSimulationProps
|
|
|
74
117
|
* Location for shipping.
|
|
75
118
|
*/
|
|
76
119
|
location?: string
|
|
120
|
+
/**
|
|
121
|
+
* Address for shipping.
|
|
122
|
+
*/
|
|
123
|
+
address?: Address
|
|
77
124
|
/**
|
|
78
125
|
* Options for shipping simulation.
|
|
79
126
|
*/
|