@faststore/ui 3.15.3 → 3.16.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.15.3",
3
+ "version": "3.16.0",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  }
48
48
  ],
49
49
  "dependencies": {
50
- "@faststore/components": "^3.15.3",
50
+ "@faststore/components": "^3.16.0",
51
51
  "include-media": "^1.4.10",
52
52
  "modern-normalize": "^1.1.0",
53
53
  "react-swipeable": "^7.0.0",
@@ -69,5 +69,5 @@
69
69
  "volta": {
70
70
  "extends": "../../package.json"
71
71
  },
72
- "gitHead": "d1e33c64330a0fc7b25930d7e86382efb9bd56ef"
72
+ "gitHead": "f8e0fe29267488a76fb8d85c33c3aa2cebf0d0f9"
73
73
  }
@@ -18,10 +18,12 @@
18
18
  --fs-rating-actionable-icon-height : var(--fs-rating-actionable-icon-width);
19
19
  --fs-rating-actionable-icon-color : var(--fs-rating-color-empty);
20
20
  --fs-rating-actionable-icon-color-selected : var(--fs-rating-color);
21
+ --fs-rating-button-min-height : var(--fs-spacing-5);
21
22
 
22
23
  // --------------------------------------------------------
23
24
  // Structural Styles
24
25
  // --------------------------------------------------------
26
+
25
27
  display: flex;
26
28
 
27
29
  [data-fs-icon] {
@@ -31,6 +33,8 @@
31
33
  }
32
34
 
33
35
  [data-fs-rating-button] {
36
+ --fs-button-small-min-height: var(--fs-rating-button-min-height);
37
+
34
38
  color: unset;
35
39
 
36
40
  &[disabled] [data-fs-button-wrapper] {
@@ -92,6 +96,7 @@
92
96
  [data-fs-icon] {
93
97
  width: var(--fs-rating-actionable-icon-width);
94
98
  height: var(--fs-rating-actionable-icon-height);
99
+ color: var(--fs-rating-actionable-color);
95
100
  color: var(--fs-rating-actionable-icon-color);
96
101
  }
97
102
  }
@@ -0,0 +1,44 @@
1
+ [data-fs-rating-field] {
2
+ // --------------------------------------------------------
3
+ // Design Tokens for Rating Field
4
+ // --------------------------------------------------------
5
+
6
+ // Label
7
+ --fs-rating-field-label-color : var(--fs-color-text-light);
8
+ --fs-rating-field-label-size : var(--fs-text-size-2);
9
+ --fs-rating-field-label-line-height : var(--fs-text-size-4);
10
+
11
+ // Error
12
+ --fs-rating-field-error-message-size : var(--fs-text-size-legend);
13
+ --fs-rating-field-error-message-line-height : 1.1;
14
+ --fs-rating-field-error-message-color : var(--fs-color-danger-text);
15
+
16
+ // --------------------------------------------------------
17
+ // Structural Styles
18
+ // --------------------------------------------------------
19
+ display: flex;
20
+ flex-direction: column;
21
+
22
+ [data-fs-rating-field-label] {
23
+ margin-bottom: var(--fs-spacing-0);
24
+ font-size: var(--fs-rating-field-label-size);
25
+ line-height: var(--fs-rating-field-label-line-height);
26
+ color: var(--fs-rating-field-label-color);
27
+ }
28
+
29
+ [data-fs-rating-field-error-message] {
30
+ margin-top: var(--fs-spacing-0);
31
+ font-size: var(--fs-rating-field-error-message-size);
32
+ line-height: var(--fs-rating-field-error-message-line-height);
33
+ color: var(--fs-rating-field-error-message-color);
34
+ }
35
+
36
+ // --------------------------------------------------------
37
+ // Variants Styles
38
+ // --------------------------------------------------------
39
+ &[data-fs-rating-field-error="true"] {
40
+ [data-fs-rating-item="empty"] [data-fs-icon] {
41
+ color: var(--fs-rating-field-error-message-color);
42
+ }
43
+ }
44
+ }
@@ -41,6 +41,7 @@
41
41
  @import "../components/molecules/QuantitySelector/styles";
42
42
  @import "../components/molecules/RadioField/styles";
43
43
  @import "../components/molecules/Rating/styles";
44
+ @import "../components/molecules/RatingField/styles";
44
45
  @import "../components/molecules/RegionBar/styles";
45
46
  @import "../components/molecules/SearchAutoComplete/styles";
46
47
  @import "../components/molecules/SearchDropdown/styles";