@faststore/ui 3.5.0 → 3.7.0

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": "3.5.0",
3
+ "version": "3.7.0",
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.5.0",
51
+ "@faststore/components": "^3.7.0",
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": "180554c88fee738fb4fffe62f9dd6d0ceab6bdfb"
74
+ "gitHead": "b692b179d39c24f590083cc0a1fdaaa779aa6dd9"
75
75
  }
@@ -0,0 +1,163 @@
1
+ [data-fs-sku-matrix-sidebar] {
2
+ // --------------------------------------------------------
3
+ // Design Tokens for SKU Matrix Sidebar
4
+ // --------------------------------------------------------
5
+
6
+ // Default properties
7
+
8
+ // Background
9
+ --fs-sku-matrix-sidebar-bkg-color : var(--fs-color-body-bkg);
10
+
11
+ // Title
12
+ --fs-sku-matrix-sidebar-title-size : var(--fs-text-size-6);
13
+ --fs-sku-matrix-sidebar-title-text-weight : var(--fs-text-weight-semibold);
14
+
15
+ // Cell
16
+ --fs-sku-matrix-sidebar-table-cell-font-size : var(--fs-text-size-tiny);
17
+ --fs-sku-matrix-sidebar-table-cell-text-weight : var(--fs-text-weight-medium);
18
+
19
+
20
+ // Partial
21
+ --fs-sku-matrix-slide-over-partial-gap : calc(2 * var(--fs-grid-padding));
22
+ --fs-sku-matrix-slide-over-partial-width-mobile : calc(100vw - var(--fs-sku-matrix-slide-over-partial-gap));
23
+
24
+ // --------------------------------------------------------
25
+ // Structural Styles
26
+ // --------------------------------------------------------
27
+
28
+ display: flex;
29
+ flex-direction: column;
30
+ height: 100vh;
31
+ overflow: auto;
32
+
33
+ [data-fs-table] {
34
+ flex-shrink: 0;
35
+ padding: var(--fs-spacing-3) var(--fs-spacing-8);
36
+ padding-bottom: 0;
37
+
38
+ @include media("<tablet") {
39
+ padding: var(--fs-spacing-3);
40
+ padding-bottom: 0;
41
+ }
42
+ }
43
+
44
+ &[data-fs-slide-over] {
45
+ background-color: var(--fs-sku-matrix-sidebar-bkg-color);
46
+
47
+ [data-fs-slide-over-header] {
48
+ padding: var(--fs-spacing-8);
49
+ padding-bottom: 0;
50
+
51
+ @include media("<tablet") {
52
+ padding: var(--fs-spacing-3);
53
+ padding-bottom: 0;
54
+ }
55
+ }
56
+
57
+ &[data-fs-slide-over-size="partial"] {
58
+ width: var(--fs-sku-matrix-slide-over-partial-width-mobile);
59
+
60
+ @include media(">=notebook") {
61
+ max-width: var(--fs-sku-matrix-slide-over-partial-width-mobile);
62
+ }
63
+ }
64
+ }
65
+
66
+ [data-fs-sku-matrix-sidebar-title] {
67
+ font-size: var(--fs-sku-matrix-sidebar-title-size);
68
+ font-weight: var(--fs-sku-matrix-sidebar-title-text-weight);
69
+ line-height: 1.12;
70
+ }
71
+
72
+ [data-fs-table] {
73
+ color: var(--fs-color-neutral-6);
74
+
75
+ [data-fs-table-cell] {
76
+ &:first-child {
77
+ padding-left: 0;
78
+ }
79
+
80
+ &:last-child {
81
+ padding-right: 0;
82
+ }
83
+ }
84
+ }
85
+
86
+ [data-fs-table-head] {
87
+ [data-fs-table-cell] {
88
+ font-size: var(--fs-sku-matrix-sidebar-table-cell-font-size);
89
+ font-weight: var(--fs-sku-matrix-sidebar-table-cell-text-weight);
90
+ }
91
+ }
92
+
93
+ [data-fs-table-cell],
94
+ [data-fs-price-variant="spot"] {
95
+ font-weight: var(--fs-text-weight-medium);
96
+ }
97
+
98
+ [data-fs-table-cell]:first-child,
99
+ [data-fs-sku-matrix-sidebar-table-price] {
100
+ color: var(--fs-color-text);
101
+ }
102
+
103
+ [data-fs-sku-matrix-sidebar-table-price] {
104
+ display: flex;
105
+ align-items: center;
106
+ justify-content: flex-end;
107
+ }
108
+
109
+ [data-fs-sku-matrix-sidebar-table-cell-quantity-selector] {
110
+ width: 1%;
111
+ }
112
+
113
+ [data-fs-sku-matrix-sidebar-cell-image] {
114
+ display: flex;
115
+ align-items: center;
116
+ gap: var(--fs-spacing-2);
117
+
118
+ > div {
119
+ img {
120
+ object-fit: cover;
121
+ object-position: center;
122
+ }
123
+ }
124
+ }
125
+
126
+ [data-fs-quantity-selector] {
127
+ [data-fs-icon] {
128
+ margin: 0;
129
+ }
130
+ }
131
+
132
+ [data-fs-sku-matrix-sidebar-footer] {
133
+ display: flex;
134
+ justify-content: space-between;
135
+
136
+ position: sticky;
137
+ bottom: 0;
138
+ left: 0;
139
+ right: 0;
140
+ margin-top: auto;
141
+
142
+ background-color: var(--fs-sku-matrix-sidebar-bkg-color);
143
+
144
+ padding: var(--fs-spacing-4) var(--fs-spacing-8);
145
+ border-top: var(--fs-border-width) solid var(--fs-border-color-light);
146
+ width: 100%;
147
+
148
+ > div {
149
+ display: flex;
150
+ gap: var(--fs-spacing-3);
151
+ align-items: center;
152
+
153
+ > p {
154
+ font-weight: var(--fs-text-weight-semibold);
155
+ color: var(--fs-color-neutral-5);
156
+ }
157
+ }
158
+
159
+ @include media("<tablet") {
160
+ padding: var(--fs-spacing-3);
161
+ }
162
+ }
163
+ }
@@ -56,7 +56,6 @@
56
56
  @import "../components/molecules/Toggle/styles";
57
57
  @import "../components/molecules/ToggleField/styles";
58
58
 
59
-
60
59
  // Organisms
61
60
  @import "../components/organisms/BannerText/styles";
62
61
  @import "../components/organisms/BannerNewsletter/styles";
@@ -81,6 +80,7 @@
81
80
  @import "../components/organisms/ProductShelf/styles";
82
81
  @import "../components/organisms/RegionModal/styles";
83
82
  @import "../components/organisms/SearchInput/styles";
83
+ @import "../components/organisms/SKUMatrix/styles";
84
84
  @import "../components/organisms/ShippingSimulation/styles";
85
85
  @import "../components/organisms/SlideOver/styles";
86
86
  @import "../components/organisms/Tiles/styles";