@faststore/ui 2.1.59 → 2.1.61

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.1.59",
3
+ "version": "2.1.61",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -58,5 +58,5 @@
58
58
  "node": "16.18.0",
59
59
  "yarn": "1.19.1"
60
60
  },
61
- "gitHead": "05b10eeeea2357088be82a4b94aba7f223e9de0d"
61
+ "gitHead": "2847a365cb0da48e493ecdb0c9f2975e672628d4"
62
62
  }
@@ -7,18 +7,20 @@
7
7
  @use "sass:math";
8
8
  /* SQ-ENABLE */
9
9
 
10
- @import "~include-media/dist/include-media";
11
-
12
10
  // Include Media Overwrites //////////////////////////
13
11
 
12
+ @import "~include-media/dist/include-media";
13
+
14
14
  $breakpoints: (
15
- "phone": 320px,
16
- "phonemid": 375px,
17
- "tablet": 768px,
15
+ "phone": 320px,
16
+ "phonemid": 375px,
17
+ "tablet": 768px,
18
18
  "notebook": 1280px,
19
19
  "desktop": 1440px,
20
20
  );
21
21
 
22
+ // Global mixins /////////////////////////////////////
23
+
22
24
  // Px to rem.
23
25
  $base: 16px !default;
24
26
 
@@ -28,6 +30,19 @@ $base: 16px !default;
28
30
  @return #{$rem}rem;
29
31
  }
30
32
 
33
+ @mixin truncate-title($max-lines: var(--fs-text-max-lines)) {
34
+ display: -webkit-box;
35
+ overflow: hidden;
36
+ -webkit-box-orient: vertical;
37
+ -moz-box-orient: vertical;
38
+ -webkit-line-clamp: $max-lines;
39
+ line-clamp: $max-lines;
40
+ text-overflow: -o-ellipsis-lastline;
41
+ text-overflow: ellipsis;
42
+ white-space: normal;
43
+ }
44
+
45
+ // Layout & Spacing Mixins ///////////////////////////
31
46
 
32
47
  @mixin layout-content {
33
48
  box-sizing: border-box;
@@ -64,6 +79,8 @@ $base: 16px !default;
64
79
  }
65
80
  }
66
81
 
82
+ // Focus Ring Mixins /////////////////////////////////
83
+
67
84
  @mixin input-focus-ring($outline: #{var(--fs-color-focus-ring)}, $border: #{var(--fs-border-color-active)}) {
68
85
  @media not all and (min-resolution: .001dpcm) { // Target only Safari browsers
69
86
  @supports (-webkit-appearance:none) { // Use `focus` instead of `focus-visible`
@@ -103,15 +120,3 @@ $base: 16px !default;
103
120
  }
104
121
  &:focus-visible { @include focus-ring; }
105
122
  }
106
-
107
- @mixin truncate-title($max-lines: var(--fs-text-max-lines)) {
108
- display: -webkit-box;
109
- overflow: hidden;
110
- -webkit-box-orient: vertical;
111
- -moz-box-orient: vertical;
112
- -webkit-line-clamp: $max-lines;
113
- line-clamp: $max-lines;
114
- text-overflow: -o-ellipsis-lastline;
115
- text-overflow: ellipsis;
116
- white-space: normal;
117
- }
@@ -1,5 +1,4 @@
1
1
  @import "./base/reset";
2
- @import "./base/utilities";
3
- @import "./base/typography";
4
2
  @import "./base/tokens";
3
+ @import "./base/typography";
5
4
  @import "./base/layout";