@springmicro/cart 0.3.2 → 0.3.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/.eslintrc.cjs +21 -21
- package/README.md +64 -64
- package/dist/index.js +531 -527
- package/dist/index.umd.cjs +43 -43
- package/package.json +5 -3
- package/src/AddToCartForm.tsx +16 -16
- package/src/CartButton.tsx +249 -249
- package/src/ProductCard.css +106 -106
- package/src/ProductCard.tsx +165 -165
- package/src/checkout/CheckoutList.css +93 -93
- package/src/checkout/CheckoutList.tsx +272 -264
- package/src/checkout/components/Address.tsx +265 -265
- package/src/checkout/components/Billing.tsx +353 -353
- package/src/checkout/components/CartProductCard.css +67 -67
- package/src/checkout/components/CartProductCard.tsx +80 -80
- package/src/checkout/components/Order.tsx +95 -93
- package/src/checkout/components/ProviderLogos.tsx +93 -93
- package/src/checkout/components/index.tsx +104 -104
- package/src/index.css +5 -5
- package/src/index.ts +35 -35
- package/src/types.d.ts +56 -56
- package/src/utils/api.ts +67 -67
- package/src/utils/cartAuthHandler.ts +50 -50
- package/src/utils/index.ts +28 -28
- package/src/utils/storage.ts +133 -133
- package/tsconfig.json +24 -24
- package/tsconfig.node.json +11 -11
- package/vite.config.ts +25 -25
- package/springmicro-cart-0.2.3.tgz +0 -0
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
.two-col {
|
|
2
|
-
display: flex;
|
|
3
|
-
/* grid-template-columns: 1fr 1fr; */
|
|
4
|
-
margin-top: 2rem;
|
|
5
|
-
align-items: flex-start;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.two-col > * {
|
|
9
|
-
width: 50%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.checkout-list {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
gap: 1rem;
|
|
17
|
-
padding: 8px 4px;
|
|
18
|
-
margin-top: 1rem;
|
|
19
|
-
max-height: 50vh;
|
|
20
|
-
overflow: auto;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@keyframes cardanimate {
|
|
24
|
-
0% {
|
|
25
|
-
box-shadow: 0px 2px 5px 2px #dfdfdfff;
|
|
26
|
-
}
|
|
27
|
-
50% {
|
|
28
|
-
box-shadow: 0px 0px 0px 0px #ffffff00;
|
|
29
|
-
}
|
|
30
|
-
100% {
|
|
31
|
-
box-shadow: 0px 2px 5px 2px #dfdfdfff;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.skeleton-card {
|
|
36
|
-
min-height: 318px;
|
|
37
|
-
border-radius: 8px;
|
|
38
|
-
box-shadow: 0px 2px 5px 2px #dfdfdfff;
|
|
39
|
-
animation: cardanimate 1.25s linear infinite;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
#status-bar {
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: row;
|
|
45
|
-
gap: 1rem;
|
|
46
|
-
align-items: center;
|
|
47
|
-
margin-left: 56px;
|
|
48
|
-
margin-bottom: 1rem;
|
|
49
|
-
margin-top: 2rem;
|
|
50
|
-
font-size: 18px;
|
|
51
|
-
font-weight: 600;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.status-bar {
|
|
55
|
-
width: 200px;
|
|
56
|
-
height: 6px;
|
|
57
|
-
background: linear-gradient(
|
|
58
|
-
90deg,
|
|
59
|
-
rgb(40, 130, 213) 0%,
|
|
60
|
-
rgb(40, 130, 213) 50%,
|
|
61
|
-
lightgrey 50%,
|
|
62
|
-
lightgrey 100%
|
|
63
|
-
);
|
|
64
|
-
background-position: 100% 0;
|
|
65
|
-
transition: color 0.3s 0s; /* active -> inactive */
|
|
66
|
-
background-size: 200% 100%;
|
|
67
|
-
border-radius: 16px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.status-bar.active {
|
|
71
|
-
background-position: 0 0;
|
|
72
|
-
transition: background-position 0.75s; /* inactive -> active */
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.status-text {
|
|
76
|
-
color: lightgrey;
|
|
77
|
-
transition: color 0.3s 0s; /* active -> inactive */
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.status-text.active {
|
|
81
|
-
color: rgb(40, 130, 213);
|
|
82
|
-
transition: color 0.5s 0.65s; /* inactive -> active */
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.shopping-button {
|
|
86
|
-
color: white;
|
|
87
|
-
background-color: rgb(39, 138, 230);
|
|
88
|
-
padding: 4px 16px 6px;
|
|
89
|
-
border-radius: 8px;
|
|
90
|
-
outline: none;
|
|
91
|
-
transition: all 0.3s;
|
|
92
|
-
text-decoration: none;
|
|
93
|
-
}
|
|
1
|
+
.two-col {
|
|
2
|
+
display: flex;
|
|
3
|
+
/* grid-template-columns: 1fr 1fr; */
|
|
4
|
+
margin-top: 2rem;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.two-col > * {
|
|
9
|
+
width: 50%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.checkout-list {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 1rem;
|
|
17
|
+
padding: 8px 4px;
|
|
18
|
+
margin-top: 1rem;
|
|
19
|
+
max-height: 50vh;
|
|
20
|
+
overflow: auto;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes cardanimate {
|
|
24
|
+
0% {
|
|
25
|
+
box-shadow: 0px 2px 5px 2px #dfdfdfff;
|
|
26
|
+
}
|
|
27
|
+
50% {
|
|
28
|
+
box-shadow: 0px 0px 0px 0px #ffffff00;
|
|
29
|
+
}
|
|
30
|
+
100% {
|
|
31
|
+
box-shadow: 0px 2px 5px 2px #dfdfdfff;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.skeleton-card {
|
|
36
|
+
min-height: 318px;
|
|
37
|
+
border-radius: 8px;
|
|
38
|
+
box-shadow: 0px 2px 5px 2px #dfdfdfff;
|
|
39
|
+
animation: cardanimate 1.25s linear infinite;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#status-bar {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: row;
|
|
45
|
+
gap: 1rem;
|
|
46
|
+
align-items: center;
|
|
47
|
+
margin-left: 56px;
|
|
48
|
+
margin-bottom: 1rem;
|
|
49
|
+
margin-top: 2rem;
|
|
50
|
+
font-size: 18px;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.status-bar {
|
|
55
|
+
width: 200px;
|
|
56
|
+
height: 6px;
|
|
57
|
+
background: linear-gradient(
|
|
58
|
+
90deg,
|
|
59
|
+
rgb(40, 130, 213) 0%,
|
|
60
|
+
rgb(40, 130, 213) 50%,
|
|
61
|
+
lightgrey 50%,
|
|
62
|
+
lightgrey 100%
|
|
63
|
+
);
|
|
64
|
+
background-position: 100% 0;
|
|
65
|
+
transition: color 0.3s 0s; /* active -> inactive */
|
|
66
|
+
background-size: 200% 100%;
|
|
67
|
+
border-radius: 16px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.status-bar.active {
|
|
71
|
+
background-position: 0 0;
|
|
72
|
+
transition: background-position 0.75s; /* inactive -> active */
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.status-text {
|
|
76
|
+
color: lightgrey;
|
|
77
|
+
transition: color 0.3s 0s; /* active -> inactive */
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.status-text.active {
|
|
81
|
+
color: rgb(40, 130, 213);
|
|
82
|
+
transition: color 0.5s 0.65s; /* inactive -> active */
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.shopping-button {
|
|
86
|
+
color: white;
|
|
87
|
+
background-color: rgb(39, 138, 230);
|
|
88
|
+
padding: 4px 16px 6px;
|
|
89
|
+
border-radius: 8px;
|
|
90
|
+
outline: none;
|
|
91
|
+
transition: all 0.3s;
|
|
92
|
+
text-decoration: none;
|
|
93
|
+
}
|