@faststore/ui 2.2.0-alpha.1 → 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/ui",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.9",
|
|
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": "^2.2.0-alpha.
|
|
51
|
+
"@faststore/components": "^2.2.0-alpha.9",
|
|
52
52
|
"include-media": "^1.4.10",
|
|
53
53
|
"modern-normalize": "^1.1.0",
|
|
54
54
|
"react-swipeable": "^7.0.0",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"node": "16.18.0",
|
|
73
73
|
"yarn": "1.19.1"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "79b9eb42f6f8fb7fdead1141f384c7b826357fa3"
|
|
76
76
|
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// --------------------------------------------------------
|
|
5
5
|
|
|
6
6
|
// Track
|
|
7
|
-
--fs-carousel-padding-mobile : 0 var(--fs-grid-padding);
|
|
8
|
-
--fs-carousel-padding-desktop : 0 calc((100% - var(--fs-grid-max-width))/2) var(--fs-spacing-0);
|
|
7
|
+
--fs-carousel-padding-mobile : var(--fs-spacing-0) var(--fs-grid-padding);
|
|
8
|
+
--fs-carousel-padding-desktop : var(--fs-spacing-0) calc((100% - var(--fs-grid-max-width))/2) var(--fs-spacing-0);
|
|
9
9
|
|
|
10
10
|
// Item
|
|
11
11
|
--fs-carousel-item-width-mobile : 60%;
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
[data-fs-carousel-track] {
|
|
99
|
+
display: flex;
|
|
99
100
|
padding: var(--fs-carousel-padding-mobile);
|
|
100
101
|
|
|
101
102
|
&::-webkit-scrollbar {
|
|
@@ -109,6 +110,7 @@
|
|
|
109
110
|
|
|
110
111
|
[data-fs-carousel-item] {
|
|
111
112
|
width: var(--fs-carousel-item-width-mobile);
|
|
113
|
+
flex-shrink: 0;
|
|
112
114
|
|
|
113
115
|
&:not(:last-of-type) {
|
|
114
116
|
margin-right: var(--fs-carousel-item-margin-right);
|
|
@@ -116,7 +118,6 @@
|
|
|
116
118
|
|
|
117
119
|
@include media(">=tablet") {
|
|
118
120
|
width: var(--fs-carousel-item-width-tablet);
|
|
119
|
-
height: 100%;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
@include media(">=desktop") {
|
|
@@ -117,7 +117,12 @@
|
|
|
117
117
|
border-radius: var(--fs-image-gallery-selector-thumbnail-border-radius);
|
|
118
118
|
border: var(--fs-image-gallery-selector-thumbnail-border-width) solid transparent;
|
|
119
119
|
transition: all var(--fs-image-gallery-transition-timing) var(--fs-image-gallery-transition-function);
|
|
120
|
-
img {
|
|
120
|
+
img {
|
|
121
|
+
border-radius: var(--fs-image-gallery-selector-thumbnail-border-radius);
|
|
122
|
+
object-fit: cover;
|
|
123
|
+
height: inherit;
|
|
124
|
+
max-width: inherit;
|
|
125
|
+
}
|
|
121
126
|
> span {
|
|
122
127
|
width: 100%;
|
|
123
128
|
height: 100%;
|
|
@@ -139,7 +144,9 @@
|
|
|
139
144
|
transform: scale(0.95);
|
|
140
145
|
}
|
|
141
146
|
|
|
142
|
-
|
|
147
|
+
&:focus-visible [data-fs-button-wrapper] {
|
|
148
|
+
@include focus-ring;
|
|
149
|
+
}
|
|
143
150
|
|
|
144
151
|
@include media(">=notebook") {
|
|
145
152
|
width: var(--fs-image-gallery-selector-thumbnail-width-notebook);
|
|
@@ -207,6 +214,15 @@
|
|
|
207
214
|
}
|
|
208
215
|
}
|
|
209
216
|
|
|
217
|
+
@mixin image_pos($pos) {
|
|
218
|
+
[data-fs-image-gallery-position='#{$pos}'] {
|
|
219
|
+
object-position: $pos;
|
|
220
|
+
[data-fs-image] {
|
|
221
|
+
object-position: $pos;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
210
226
|
// --------------------------------------------------------
|
|
211
227
|
// Variants Styles
|
|
212
228
|
// --------------------------------------------------------
|
|
@@ -218,4 +234,25 @@
|
|
|
218
234
|
column-gap: var(--fs-image-gallery-gap-notebook);
|
|
219
235
|
}
|
|
220
236
|
}
|
|
237
|
+
|
|
238
|
+
&[data-fs-image-gallery-position="top"] {
|
|
239
|
+
> [data-fs-image],
|
|
240
|
+
[data-fs-image-gallery-selector-thumbnail] [data-fs-image] {
|
|
241
|
+
object-position: top;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&[data-fs-image-gallery-position="center"] {
|
|
246
|
+
> [data-fs-image],
|
|
247
|
+
[data-fs-image-gallery-selector-thumbnail] [data-fs-image] {
|
|
248
|
+
object-position: center;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
&[data-fs-image-gallery-position="bottom"] {
|
|
253
|
+
> [data-fs-image],
|
|
254
|
+
[data-fs-image-gallery-selector-thumbnail] [data-fs-image] {
|
|
255
|
+
object-position: bottom;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
221
258
|
}
|
|
@@ -117,6 +117,12 @@
|
|
|
117
117
|
row-gap: var(--fs-product-details-vertical-spacing);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
[data-fs-product-details-prices] {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
120
126
|
[data-fs-product-details-values] {
|
|
121
127
|
display: flex;
|
|
122
128
|
justify-content: space-between;
|