@faststore/ui 2.0.69-alpha.0 → 2.0.70-alpha.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": "2.0.69-alpha.0",
3
+ "version": "2.0.70-alpha.0",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -59,5 +59,5 @@
59
59
  "node": "16.18.0",
60
60
  "yarn": "1.19.1"
61
61
  },
62
- "gitHead": "9203ce7fd8a8fd0d0ae60afde8743adaec18c53d"
62
+ "gitHead": "5718a199c16ee52a9446cd4090a4f564863c4243"
63
63
  }
@@ -0,0 +1,68 @@
1
+ [data-fs-search-product-card] {
2
+ // --------------------------------------------------------
3
+ // Design Tokens for Search Product Card
4
+ // --------------------------------------------------------
5
+
6
+ // Link
7
+ --fs-search-product-card-link-padding : var(--fs-spacing-1) var(--fs-spacing-3);
8
+
9
+ // Image
10
+ --fs-search-product-card-image-border-radius : var(--fs-border-radius);
11
+ --fs-search-product-card-image-margin-right : var(--fs-spacing-3);
12
+ --fs-search-product-card-image-size : 3.5rem;
13
+
14
+ // Title
15
+ --fs-search-product-card-title-margin-bottom : var(--fs-spacing-0);
16
+ --fs-search-product-card-title-size : var(--fs-text-size-2);
17
+ --fs-search-product-card-title-line-height : 1.2;
18
+ --fs-search-product-card-title-color : var(--fs-color-text);
19
+
20
+ // Price
21
+ --fs-search-product-card-price-gap : var(--fs-spacing-1);
22
+ --fs-search-product-card-price-size : var(--fs-text-size-2);
23
+ --fs-search-product-card-price-listing-size : var(--fs-text-size-1);
24
+
25
+ [data-fs-search-product-card-image] {
26
+ display: flex;
27
+ width: var(--fs-search-product-card-image-size);
28
+ height: var(--fs-search-product-card-image-size);
29
+ margin-right: var(--fs-search-product-card-image-margin-right);
30
+ overflow: hidden;
31
+ border-radius: var(--fs-search-product-card-image-border-radius);
32
+ }
33
+
34
+ [data-fs-search-product-card-title] {
35
+ margin-bottom: var(--fs-search-product-card-title-margin-bottom);
36
+ font-size: var(--fs-search-product-card-title-size);
37
+ font-weight: var(--fs-text-weight-bold);
38
+ line-height: var(--fs-search-product-card-title-line-height);
39
+ color: var(--fs-search-product-card-title-color);
40
+ text-decoration: none;
41
+ outline: none;
42
+
43
+ @include truncate-title;
44
+ }
45
+
46
+ [data-fs-search-product-card-prices] {
47
+ display: flex;
48
+ align-items: baseline;
49
+ column-gap: var(--fs-search-product-card-price-gap);
50
+
51
+ [data-fs-price-variant="listing"] {
52
+ font-size: var(--fs-search-product-card-price-listing-size);
53
+ line-height: 1.7;
54
+ }
55
+
56
+ [data-fs-price-variant="spot"] {
57
+ font-size: var(--fs-search-product-card-price-size);
58
+ color: var(--fs-product-card-price-color);
59
+ }
60
+ }
61
+
62
+ [data-fs-search-product-card-link] {
63
+ padding: var(--fs-search-product-card-link-padding);
64
+ display: flex;
65
+ align-items: center;
66
+ text-decoration: none;
67
+ }
68
+ }
@@ -33,6 +33,7 @@
33
33
  @import "../components/molecules/QuantitySelector/styles";
34
34
  @import "../components/molecules/RadioField/styles";
35
35
  @import "../components/molecules/Rating/styles";
36
+ @import "../components/molecules/SearchProductCard/styles";
36
37
  @import "../components/molecules/SelectField/styles";
37
38
  @import "../components/molecules/Table/styles";
38
39
  @import "../components/molecules/Tag/styles";