@itcase/ui 1.2.16 → 1.2.17

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.
@@ -1,70 +1,153 @@
1
- @define-mixin h1-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
1
+ @define-mixin h1-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
2
2
  @mixin font $weight, var(--typography-h1-min), var(--typography-h1-max), $minLetterSpacing,
3
3
  var(--typography-h1-min-line-height), var(--typography-h1-max-line-height), $maxLetterSpacing,
4
4
  var(--typography-h1-font);
5
5
  }
6
6
 
7
- @define-mixin h2-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
8
- @mixin font $weight, 26px, 32px, $minLetterSpacing, 46px, 58px, $maxLetterSpacing,
9
- var(--font-primary);
7
+ @define-mixin h2-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
8
+ @mixin font $weight, var(--typography-h2-min), var(--typography-h2-max), $minLetterSpacing,
9
+ var(--typography-h2-min-line-height), var(--typography-h2-max-line-height), $maxLetterSpacing,
10
+ var(--typography-h2-font);
10
11
  }
11
12
 
12
- @define-mixin h3-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
13
- @mixin font $weight, 18px, 24px, $minLetterSpacing, 32px, 40px, $maxLetterSpacing,
14
- var(--font-primary);
13
+ @define-mixin h3-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
14
+ @mixin font $weight, var(--typography-h3-min), var(--typography-h3-max), $minLetterSpacing,
15
+ var(--typography-h3-min-line-height), var(--typography-h3-max-line-height), $maxLetterSpacing,
16
+ var(--typography-h3-font);
15
17
  }
16
18
 
17
- @define-mixin h4-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
18
- @mixin font $weight, 16px, 18px, $minLetterSpacing, 24px, 30px, $maxLetterSpacing,
19
- var(--font-primary);
19
+ @define-mixin h4-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
20
+ @mixin font $weight, var(--typography-h4-min), var(--typography-h4-max), $minLetterSpacing,
21
+ var(--typography-h4-min-line-height), var(--typography-h4-max-line-height), $maxLetterSpacing,
22
+ var(--typography-h4-font);
20
23
  }
21
24
 
22
- @define-mixin h5-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
23
- @mixin font $weight, 14px, 16px, $minLetterSpacing, 18px, 26px, $maxLetterSpacing,
24
- var(--font-primary);
25
+ @define-mixin h5-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
26
+ @mixin font $weight, var(--typography-h5-min), var(--typography-h5-max), $minLetterSpacing,
27
+ var(--typography-h5-min-line-height), var(--typography-h5-max-line-height), $maxLetterSpacing,
28
+ var(--typography-h5-font);
25
29
  }
26
30
 
27
- @define-mixin h6-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
28
- @mixin font $weight, 12px, 18px, $minLetterSpacing, 16px, 24px, $maxLetterSpacing,
29
- var(--font-primary);
31
+ @define-mixin h6-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
32
+ @mixin font $weight, var(--typography-h6-min), var(--typography-h6-max), $minLetterSpacing,
33
+ var(--typography-h6-min-line-height), var(--typography-h6-max-line-height), $maxLetterSpacing,
34
+ var(--typography-h6-font);
30
35
  }
31
36
 
32
- @define-mixin p-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
33
- @mixin font $weight, 12px, 16px, $minLetterSpacing, 16px, 24px, $maxLetterSpacing,
34
- var(--font-primary);
37
+ @define-mixin p-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
38
+ @mixin font $weight, var(--typography-p-min), var(--typography-p-max), $minLetterSpacing,
39
+ var(--typography-p-min-line-height), var(--typography-p-max-line-height), $maxLetterSpacing,
40
+ var(--typography-p-font);
35
41
  }
36
42
 
37
- @define-mixin text-xxl-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
38
- @mixin font $weight, 24px, 28px, $minLetterSpacing, 24px, 28px, $maxLetterSpacing,
39
- var(--font-primary);
43
+ @define-mixin text-xxl-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
44
+ @mixin font $weight, var(--typography-text-xxl-min), var(--typography-text-xxl-max),
45
+ $minLetterSpacing, var(--typography-text-xxl-min-line-height),
46
+ var(--typography-text-xxl-max-line-height), $maxLetterSpacing, var(--typography-text-xxl-font);
40
47
  }
41
48
 
42
- @define-mixin text-xl-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
43
- @mixin font $weight, 20px, 24px, $minLetterSpacing, 20px, 24px, $maxLetterSpacing,
44
- var(--font-primary);
49
+ @define-mixin text-xl-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
50
+ @mixin font $weight, var(--typography-text-xl-min), var(--typography-text-xl-max),
51
+ $minLetterSpacing, var(--typography-text-xl-min-line-height),
52
+ var(--typography-text-xl-max-line-height), $maxLetterSpacing, var(--typography-text-xl-font);
45
53
  }
46
54
 
47
- @define-mixin text-l-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
48
- @mixin font $weight, 18px, 24px, $minLetterSpacing, 18px, 24px, $maxLetterSpacing,
49
- var(--font-primary);
55
+ @define-mixin text-l-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
56
+ @mixin font $weight, var(--typography-text-l-min), var(--typography-text-l-max), $minLetterSpacing,
57
+ var(--typography-text-l-min-line-height), var(--typography-text-l-max-line-height),
58
+ $maxLetterSpacing, var(--typography-text-l-font);
50
59
  }
51
60
 
52
- @define-mixin text-m-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
53
- @mixin font $weight, 16px, 18px, $minLetterSpacing, 16px, 20px, $maxLetterSpacing,
54
- var(--font-primary);
61
+ @define-mixin text-m-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
62
+ @mixin font $weight, var(--typography-text-m-min), var(--typography-text-m-max), $minLetterSpacing,
63
+ var(--typography-text-m-min-line-height), var(--typography-text-m-max-line-height),
64
+ $maxLetterSpacing, var(--typography-text-m-font);
55
65
  }
56
66
 
57
- @define-mixin text-s-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
58
- @mixin font $weight, 14px, 18px, $minLetterSpacing, 14px, 18px, $maxLetterSpacing,
59
- var(--font-primary);
67
+ @define-mixin text-s-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
68
+ @mixin font $weight, var(--typography-text-s-min), var(--typography-text-s-max), $minLetterSpacing,
69
+ var(--typography-text-s-min-line-height), var(--typography-text-s-max-line-height),
70
+ $maxLetterSpacing, var(--typography-text-s-font);
60
71
  }
61
72
 
62
- @define-mixin text-xs-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
63
- @mixin font $weight, 12px, 16px, $minLetterSpacing, 12px, 16px, $maxLetterSpacing,
64
- var(--font-primary);
73
+ @define-mixin text-xs-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
74
+ @mixin font $weight, var(--typography-text-xs-min), var(--typography-text-xs-max),
75
+ $minLetterSpacing, var(--typography-text-xs-min-line-height),
76
+ var(--typography-text-xs-max-line-height), $maxLetterSpacing, var(--typography-text-xs-font);
65
77
  }
66
78
 
67
- @define-mixin text-xxs-new $weight: normal, $minLetterSpacing: 0px, $maxLetterSpacing: 0px {
68
- @mixin font $weight, 10px, 14px, $minLetterSpacing, 10px, 14px, $maxLetterSpacing,
69
- var(--font-primary);
79
+ @define-mixin text-xxs-new $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
80
+ @mixin font $weight, var(--typography-text-xxs-min), var(--typography-text-xxs-max),
81
+ $minLetterSpacing, var(--typography-text-xxs-min-line-height),
82
+ var(--typography-text-xxs-max-line-height), $maxLetterSpacing, var(--typography-text-xxs-font);
83
+ }
84
+
85
+ @define-mixin email-h1 $weight: normal {
86
+ @mixin font-fixed $weight, $weight, var(--typography-email-h1), $letterSpacing,
87
+ var(--typography-email-h1-line-height), var(--typography-email-h1-font);
88
+ }
89
+
90
+ @define-mixin email-h2 $weight: normal {
91
+ @mixin font-fixed $weight, $weight, var(--typography-email-h2), $letterSpacing,
92
+ var(--typography-email-h2-line-height), var(--typography-email-h2-font);
93
+ }
94
+
95
+ @define-mixin email-h3 $weight: normal {
96
+ @mixin font-fixed $weight, $weight, var(--typography-email-h3), $letterSpacing,
97
+ var(--typography-email-h3-line-height), var(--typography-email-h3-font);
98
+ }
99
+
100
+ @define-mixin email-h4 $weight: normal {
101
+ @mixin font-fixed $weight, $weight, var(--typography-email-h4), $letterSpacing,
102
+ var(--typography-email-h4-line-height), var(--typography-email-h4-font);
103
+ }
104
+
105
+ @define-mixin email-h5 $weight: normal {
106
+ @mixin font-fixed $weight, $weight, var(--typography-email-h5), $letterSpacing,
107
+ var(--typography-email-h5-line-height), var(--typography-email-h5-font);
108
+ }
109
+
110
+ @define-mixin email-h6 $weight: normal {
111
+ @mixin font-fixed $weight, $weight, var(--typography-email-h6), $letterSpacing,
112
+ var(--typography-email-h6-line-height), var(--typography-email-h6-font);
113
+ }
114
+
115
+ @define-mixin email-p $weight: normal {
116
+ @mixin font-fixed $weight, $weight, var(--typography-email-p), $letterSpacing,
117
+ var(--typography-email-p-line-height), var(--typography-email-p-font);
118
+ }
119
+
120
+ @define-mixin email-text-xxl $weight: normal {
121
+ @mixin font-fixed $weight, $weight, var(--typography-email-text-xxl), $letterSpacing,
122
+ var(--typography-email-text-xxl-line-height), var(--typography-email-text-xxl-font);
123
+ }
124
+
125
+ @define-mixin email-text-xl $weight: normal {
126
+ @mixin font-fixed $weight, $weight, var(--typography-email-text-xl), $letterSpacing,
127
+ var(--typography-email-text-xl-line-height), var(--typography-email-text-xl-font);
128
+ }
129
+
130
+ @define-mixin email-text-l $weight: normal {
131
+ @mixin font-fixed $weight, $weight, var(--typography-email-text-l), $letterSpacing,
132
+ var(--typography-email-text-l-line-height), var(--typography-email-text-l-font);
133
+ }
134
+
135
+ @define-mixin email-text-m $weight: normal {
136
+ @mixin font-fixed $weight, $weight, var(--typography-email-text-m), $letterSpacing,
137
+ var(--typography-email-text-m-line-height), var(--typography-email-text-m-font);
138
+ }
139
+
140
+ @define-mixin email-text-s $weight: normal {
141
+ @mixin font-fixed $weight, $weight, var(--typography-email-text-s), $letterSpacing,
142
+ var(--typography-email-text-s-line-height), var(--typography-email-text-s-font);
143
+ }
144
+
145
+ @define-mixin email-text-xs $weight: normal {
146
+ @mixin font-fixed $weight, $weight, var(--typographyemail-text-xs), $letterSpacing,
147
+ var(--typographyemail-text-xs-line-height), var(--typographyemail-text-xs-font);
148
+ }
149
+
150
+ @define-mixin email-text-xxs $weight: normal {
151
+ @mixin font-fixed $weight, $weight, var(--typography-email-text-xxs), $letterSpacing,
152
+ var(--typography-email-text-xxs-line-height), var(--typography-email-text-xxs-font);
70
153
  }
@@ -1,4 +1,5 @@
1
- @define-mixin font $fontWeight, $minFontSize, $minLineHeight, $minLetterSpacing, $maxFontSize, $maxLineHeight, $maxLetterSpacing, $fontFamily {
1
+ @define-mixin font $fontWeight, $minFontSize, $minLineHeight, $minLetterSpacing, $maxFontSize,
2
+ $maxLineHeight, $maxLetterSpacing, $fontFamily {
2
3
  font-size: responsive $minFontSize $maxFontSize;
3
4
  font-range: var(--min-max);
4
5
  font-weight: $fontWeight;
@@ -14,6 +15,13 @@
14
15
  }
15
16
  }
16
17
 
18
+ @define-mixin font-fixed $weight, $size, $line, $family {
19
+ font-size: $size;
20
+ font-weight: $weight;
21
+ font-family: $family;
22
+ line-height: $line;
23
+ }
24
+
17
25
  @define-mixin word-wrap {
18
26
  overflow-wrap: break-word;
19
27
  word-wrap: break-word;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",