@faststore/ui 3.0.88 → 3.0.89
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/package.json +3 -3
- package/src/components/molecules/InputField/styles.scss +17 -13
- package/src/components/molecules/OrderSummary/styles.scss +4 -0
- package/src/components/molecules/ProductCard/styles.scss +4 -2
- package/src/components/molecules/QuantitySelector/styles.scss +1 -1
- package/src/components/molecules/Toast/styles.scss +1 -1
- package/src/components/organisms/PaymentMethods/styles.scss +5 -5
- package/src/components/organisms/RegionModal/styles.scss +1 -1
- package/src/styles/base/tokens.scss +15 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.89",
|
|
4
4
|
"description": "A lightweight, framework agnostic component library for React",
|
|
5
5
|
"author": "emersonlaurentino",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@faststore/components": "^3.0.
|
|
51
|
+
"@faststore/components": "^3.0.89",
|
|
52
52
|
"include-media": "^1.4.10",
|
|
53
53
|
"modern-normalize": "^1.1.0",
|
|
54
54
|
"react-swipeable": "^7.0.0",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"volta": {
|
|
72
72
|
"extends": "../../package.json"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "ade8691a5faef6c3a490ddc4e624d6742e311d6b"
|
|
75
75
|
}
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
--fs-input-field-label-color : var(--fs-color-text-light);
|
|
19
19
|
--fs-input-field-label-size : var(--fs-text-size-tiny);
|
|
20
20
|
|
|
21
|
+
// Button
|
|
22
|
+
--fs-input-field-button-height : var(--fs-control-tap-size);
|
|
23
|
+
|
|
21
24
|
// Error
|
|
22
25
|
--fs-input-field-error-message-size : var(--fs-text-size-legend);
|
|
23
26
|
--fs-input-field-error-message-line-height : 1.1;
|
|
@@ -41,17 +44,18 @@
|
|
|
41
44
|
display: flex;
|
|
42
45
|
flex-flow: column;
|
|
43
46
|
|
|
44
|
-
input,
|
|
45
|
-
label {
|
|
47
|
+
[data-fs-input],
|
|
48
|
+
[data-fs-label] {
|
|
46
49
|
transition: var(--fs-input-field-transition-property) var(--fs-input-field-transition-timing) var(--fs-input-field-transition-function);
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
input {
|
|
52
|
+
[data-fs-input] {
|
|
53
|
+
--fs-input-padding: var(--fs-input-field-padding);
|
|
50
54
|
padding: var(--fs-input-field-padding);
|
|
51
55
|
color: var(--fs-input-field-color);
|
|
52
56
|
|
|
53
57
|
&:placeholder-shown + label {
|
|
54
|
-
top: calc(
|
|
58
|
+
top: calc(50% - (var(--fs-input-field-size) / 2));
|
|
55
59
|
overflow: hidden;
|
|
56
60
|
}
|
|
57
61
|
|
|
@@ -76,11 +80,11 @@
|
|
|
76
80
|
}
|
|
77
81
|
}
|
|
78
82
|
|
|
79
|
-
label {
|
|
83
|
+
[data-fs-label] {
|
|
80
84
|
position: absolute;
|
|
81
85
|
padding: var(--fs-input-field-label-padding);
|
|
82
86
|
font-size: var(--fs-input-field-size);
|
|
83
|
-
line-height:
|
|
87
|
+
line-height: var(--fs-input-field-size);
|
|
84
88
|
color: var(--fs-input-field-label-color);
|
|
85
89
|
}
|
|
86
90
|
|
|
@@ -89,11 +93,12 @@
|
|
|
89
93
|
// --------------------------------------------------------
|
|
90
94
|
|
|
91
95
|
&[data-fs-input-field-error="true"] {
|
|
92
|
-
input {
|
|
96
|
+
[data-fs-input] {
|
|
93
97
|
border-color: var(--fs-input-field-error-border-color);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
@include input-focus-ring(
|
|
99
|
+
$outline: #{var(--fs-input-field-error-focus-ring)},
|
|
100
|
+
$border: #{var(--fs-input-field-error-border-color)}
|
|
101
|
+
);
|
|
97
102
|
|
|
98
103
|
&:hover:not(:disabled):not(:focus-visible):not(:focus) {
|
|
99
104
|
border-color: var(--fs-input-field-error-border-color);
|
|
@@ -112,14 +117,13 @@
|
|
|
112
117
|
&[data-fs-input-field-actionable="true"] {
|
|
113
118
|
min-width: rem(250px);
|
|
114
119
|
|
|
115
|
-
input {
|
|
116
|
-
padding-right: var(--fs-spacing-13);
|
|
117
|
-
}
|
|
120
|
+
[data-fs-input] { padding-right: var(--fs-spacing-13); }
|
|
118
121
|
|
|
119
122
|
[data-fs-button] {
|
|
120
123
|
position: absolute;
|
|
121
124
|
top: 0;
|
|
122
125
|
right: 0;
|
|
126
|
+
height: var(--fs-input-field-button-height);
|
|
123
127
|
|
|
124
128
|
[data-fs-button-wrapper]::before {
|
|
125
129
|
position: absolute;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
// Default properties
|
|
7
7
|
--fs-order-summary-padding : var(--fs-spacing-3);
|
|
8
8
|
--fs-order-summary-margin-bottom : var(--fs-spacing-2);
|
|
9
|
+
--fs-order-summary-row-gap : 0;
|
|
9
10
|
|
|
10
11
|
--fs-order-summary-discount-text-color : var(--fs-color-success-text);
|
|
11
12
|
|
|
@@ -20,7 +21,10 @@
|
|
|
20
21
|
// --------------------------------------------------------
|
|
21
22
|
// Structural Styles
|
|
22
23
|
// --------------------------------------------------------
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
23
26
|
padding: var(--fs-order-summary-padding);
|
|
27
|
+
row-gap: var(--fs-order-summary-row-gap);
|
|
24
28
|
|
|
25
29
|
li {
|
|
26
30
|
display: flex;
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
--fs-product-card-price-size : var(--fs-text-size-base);
|
|
40
40
|
|
|
41
41
|
// Out Of Stock
|
|
42
|
-
--fs-product-card-out-of-stock-bkg-color :
|
|
42
|
+
--fs-product-card-out-of-stock-bkg-color : transparent;
|
|
43
|
+
--fs-product-card-out-of-stock-border-color: var(--fs-color-neutral-1);
|
|
43
44
|
--fs-product-card-out-of-stock-img-opacity : .5;
|
|
44
45
|
|
|
45
46
|
// Taxes label
|
|
@@ -168,7 +169,8 @@
|
|
|
168
169
|
// --------------------------------------------------------
|
|
169
170
|
|
|
170
171
|
&[data-fs-product-card="out-of-stock"] {
|
|
171
|
-
--fs-product-card-bkg-color
|
|
172
|
+
--fs-product-card-bkg-color : var(--fs-product-card-out-of-stock-bkg-color);
|
|
173
|
+
--fs-product-card-border-color : var(--fs-product-card-out-of-stock-border-color);
|
|
172
174
|
|
|
173
175
|
[data-fs-product-card-image] { opacity: var(--fs-product-card-out-of-stock-img-opacity); }
|
|
174
176
|
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
justify-content: center;
|
|
43
43
|
width: var(--fs-qty-selector-width);
|
|
44
44
|
height: var(--fs-qty-selector-height);
|
|
45
|
-
border-radius: var(--fs-qty-selector-border-radius);
|
|
46
45
|
box-shadow: var(--fs-qty-selector-shadow);
|
|
47
46
|
|
|
48
47
|
[data-quantity-selector-input] {
|
|
@@ -53,6 +52,7 @@
|
|
|
53
52
|
color: var(--fs-qty-selector-text-color);
|
|
54
53
|
text-align: center;
|
|
55
54
|
border: var(--fs-qty-selector-border-width) solid var(--fs-qty-selector-border-color);
|
|
55
|
+
border-radius: var(--fs-qty-selector-border-radius);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
[data-quantity-selector-button] {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
// Title
|
|
33
33
|
--fs-toast-title-size : var(--fs-text-size-body);
|
|
34
34
|
--fs-toast-title-weight : var(--fs-text-weight-bold);
|
|
35
|
-
--fs-toast-title-line-height :
|
|
35
|
+
--fs-toast-title-line-height : 1.2;
|
|
36
36
|
--fs-toast-title-margin-left : var(--fs-spacing-3);
|
|
37
37
|
|
|
38
38
|
// Message
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
// Flag
|
|
14
14
|
--fs-payment-methods-flag-width : var(--fs-spacing-5);
|
|
15
15
|
--fs-payment-methods-flag-height : var(--fs-spacing-4);
|
|
16
|
+
--fs-payment-methods-flag-bkg-color : var(--fs-color-neutral-0);
|
|
16
17
|
--fs-payment-methods-flag-border-width : var(--fs-border-width);
|
|
17
18
|
--fs-payment-methods-flag-border-color : var(--fs-color-neutral-3);
|
|
18
19
|
--fs-payment-methods-flag-border-radius : var(--fs-border-radius-small);
|
|
@@ -44,21 +45,20 @@
|
|
|
44
45
|
justify-content: space-between;
|
|
45
46
|
margin-top: var(--fs-payment-methods-flags-margin-top);
|
|
46
47
|
|
|
47
|
-
li {
|
|
48
|
-
display: flex;
|
|
49
|
-
place-content: center;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
48
|
@include media("<notebook") {
|
|
53
49
|
column-gap: var(--fs-grid-gap-2);
|
|
54
50
|
}
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
[data-fs-payment-methods-flag] {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
58
57
|
width: var(--fs-payment-methods-flag-width);
|
|
59
58
|
height: var(--fs-payment-methods-flag-height);
|
|
60
59
|
overflow: hidden;
|
|
61
60
|
border: var(--fs-payment-methods-flag-border-width) solid var(--fs-payment-methods-flag-border-color);
|
|
62
61
|
border-radius: var(--fs-payment-methods-flag-border-radius);
|
|
62
|
+
background-color: var(--fs-payment-methods-flag-bkg-color);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// --------------------------------------------------------
|
|
15
15
|
// Structural Styles
|
|
16
16
|
// --------------------------------------------------------
|
|
17
|
-
[data-fs-
|
|
17
|
+
[data-fs-input-field] {
|
|
18
18
|
margin-bottom: var(--fs-region-modal-margin-bottom);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -117,6 +117,8 @@
|
|
|
117
117
|
// WEIGHT
|
|
118
118
|
--fs-text-weight-light : 300;
|
|
119
119
|
--fs-text-weight-regular : 400;
|
|
120
|
+
--fs-text-weight-medium : 500;
|
|
121
|
+
--fs-text-weight-semibold : 600;
|
|
120
122
|
--fs-text-weight-bold : 700;
|
|
121
123
|
--fs-text-weight-black : 900;
|
|
122
124
|
|
|
@@ -128,8 +130,8 @@
|
|
|
128
130
|
// ensure consistency throughout the project.
|
|
129
131
|
// Access https://type-scale.com and pick a scale that
|
|
130
132
|
// suits the store's branding.
|
|
131
|
-
--fs-text-scale-mobile :
|
|
132
|
-
--fs-text-scale-desktop :
|
|
133
|
+
--fs-text-scale-mobile : 2px;
|
|
134
|
+
--fs-text-scale-desktop : 4px;
|
|
133
135
|
|
|
134
136
|
--fs-scale : var(--fs-text-scale-mobile);
|
|
135
137
|
|
|
@@ -141,18 +143,19 @@
|
|
|
141
143
|
--fs-text-size-base : 16px; // 1rem
|
|
142
144
|
|
|
143
145
|
--fs-text-size-0 : 12px; // Smallest
|
|
144
|
-
--fs-text-size-1 : 14px; // Smaller
|
|
145
|
-
--fs-text-size-2 : var(--fs-text-size-base);
|
|
146
|
-
--fs-text-size-3 : calc(var(--fs-text-size-2)
|
|
147
|
-
--fs-text-size-4 : calc(var(--fs-text-size-3)
|
|
148
|
-
--fs-text-size-5 : calc(var(--fs-text-size-4)
|
|
149
|
-
--fs-text-size-6 : calc(var(--fs-text-size-5)
|
|
150
|
-
--fs-text-size-7 : calc(var(--fs-text-size-6)
|
|
151
|
-
--fs-text-size-8 : calc(var(--fs-text-size-7)
|
|
146
|
+
--fs-text-size-1 : 14px; // Smaller // Mobile Desktop
|
|
147
|
+
--fs-text-size-2 : var(--fs-text-size-base); // 16px 16px
|
|
148
|
+
--fs-text-size-3 : calc(var(--fs-text-size-2) + var(--fs-scale)); // 18px 20px
|
|
149
|
+
--fs-text-size-4 : calc(var(--fs-text-size-3) + var(--fs-scale)); // 20px 24px
|
|
150
|
+
--fs-text-size-5 : calc(var(--fs-text-size-4) + var(--fs-scale)); // 22px 28px
|
|
151
|
+
--fs-text-size-6 : calc(var(--fs-text-size-5) + var(--fs-scale)); // 24px 32px
|
|
152
|
+
--fs-text-size-7 : calc(var(--fs-text-size-6) + (var(--fs-scale) * 2)); // 28px 40px
|
|
153
|
+
--fs-text-size-8 : calc(var(--fs-text-size-7) + (var(--fs-scale) * 2)); // 32px 48px
|
|
154
|
+
--fs-text-size-9 : calc(var(--fs-text-size-8) + (var(--fs-scale) * 2)); // 36px 56px
|
|
152
155
|
|
|
153
156
|
// HIERARCHY SCALE
|
|
154
|
-
--fs-text-size-title-huge : var(--fs-text-size-
|
|
155
|
-
--fs-text-size-title-page : var(--fs-text-size-
|
|
157
|
+
--fs-text-size-title-huge : var(--fs-text-size-8);
|
|
158
|
+
--fs-text-size-title-page : var(--fs-text-size-7);
|
|
156
159
|
--fs-text-size-title-product : var(--fs-text-size-4);
|
|
157
160
|
--fs-text-size-title-section : var(--fs-text-size-4);
|
|
158
161
|
--fs-text-size-title-subsection : var(--fs-text-size-4);
|