@itcase/ui 1.4.8 → 1.4.10
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/dist/{DropdownItem-mr__S8vt.js → DropdownItem-B3E-_Cwp.js} +5 -5
- package/dist/{DropdownItem-NllzSt5M.js → DropdownItem-Qg-_2YWD.js} +5 -5
- package/dist/cjs/components/Accordion.js +6 -7
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/Chips.js +6 -6
- package/dist/cjs/components/Choice.js +10 -8
- package/dist/cjs/components/Dot.js +2 -2
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Pagination.js +1 -1
- package/dist/components/Accordion.js +6 -7
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Chips.js +6 -6
- package/dist/components/Choice.js +11 -9
- package/dist/components/Dot.js +2 -2
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/css/mixins/mixin_fill-gradient.css +30 -6
- package/dist/css/mixins/mixin_typography.css +140 -119
- package/dist/css/mixins/mixin_utils.css +9 -10
- package/dist/css/styles/fill/fill_active_hover.css +17 -13
- package/dist/stories/{Typography.mdx → TypographyAM.mdx} +4 -4
- package/dist/stories/TypographyBaikal.mdx +82 -0
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +2 -1
- package/dist/types/types/componentProps/align.d.ts +0 -1
- package/package.json +8 -8
- package/dist/types/components/Grid/stories/args.d.ts +0 -90
- package/dist/types/components/Group/stories/args.d.ts +0 -78
- package/dist/types/components/Tab/stories/args.d.ts +0 -171
|
@@ -1,216 +1,237 @@
|
|
|
1
1
|
@define-mixin h1 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
2
|
-
@mixin font $weight, var(--typography-h1-min
|
|
3
|
-
$minLetterSpacing, var(--typography-h1-min-line-height
|
|
4
|
-
var(--typography-h1-max-line-height
|
|
5
|
-
var(--typography-h1-font
|
|
2
|
+
@mixin font $weight, var(--typography-h1-min), var(--typography-h1-max),
|
|
3
|
+
$minLetterSpacing, var(--typography-h1-min-line-height),
|
|
4
|
+
var(--typography-h1-max-line-height), $maxLetterSpacing,
|
|
5
|
+
var(--typography-h1-font);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@define-mixin h2 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
9
|
-
@mixin font $weight, var(--typography-h2-min
|
|
10
|
-
$minLetterSpacing, var(--typography-h2-min-line-height
|
|
11
|
-
var(--typography-h2-max-line-height
|
|
12
|
-
var(--typography-h2-font
|
|
9
|
+
@mixin font $weight, var(--typography-h2-min), var(--typography-h2-max),
|
|
10
|
+
$minLetterSpacing, var(--typography-h2-min-line-height),
|
|
11
|
+
var(--typography-h2-max-line-height), $maxLetterSpacing,
|
|
12
|
+
var(--typography-h2-font);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@define-mixin h3 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
16
|
-
@mixin font $weight, var(--typography-h3-min
|
|
17
|
-
$minLetterSpacing, var(--typography-h3-min-line-height
|
|
18
|
-
var(--typography-h3-max-line-height
|
|
19
|
-
var(--typography-h3-font
|
|
16
|
+
@mixin font $weight, var(--typography-h3-min), var(--typography-h3-max),
|
|
17
|
+
$minLetterSpacing, var(--typography-h3-min-line-height),
|
|
18
|
+
var(--typography-h3-max-line-height), $maxLetterSpacing,
|
|
19
|
+
var(--typography-h3-font);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
@define-mixin h4 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
23
|
-
@mixin font $weight, var(--typography-h4-min
|
|
24
|
-
$minLetterSpacing, var(--typography-h4-min-line-height
|
|
25
|
-
var(--typography-h4-max-line-height
|
|
26
|
-
var(--typography-h4-font
|
|
23
|
+
@mixin font $weight, var(--typography-h4-min), var(--typography-h4-max),
|
|
24
|
+
$minLetterSpacing, var(--typography-h4-min-line-height),
|
|
25
|
+
var(--typography-h4-max-line-height), $maxLetterSpacing,
|
|
26
|
+
var(--typography-h4-font);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@define-mixin h5 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
30
|
-
@mixin font $weight, var(--typography-h5-min
|
|
31
|
-
$minLetterSpacing, var(--typography-h5-min-line-height
|
|
32
|
-
var(--typography-h5-max-line-height
|
|
33
|
-
var(--typography-h5-font
|
|
30
|
+
@mixin font $weight, var(--typography-h5-min), var(--typography-h5-max),
|
|
31
|
+
$minLetterSpacing, var(--typography-h5-min-line-height),
|
|
32
|
+
var(--typography-h5-max-line-height), $maxLetterSpacing,
|
|
33
|
+
var(--typography-h5-font);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
@define-mixin h6 $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
37
|
-
@mixin font $weight, var(--typography-h6-min
|
|
38
|
-
$minLetterSpacing, var(--typography-h6-min-line-height
|
|
39
|
-
var(--typography-h6-max-line-height
|
|
40
|
-
var(--typography-h6-font
|
|
37
|
+
@mixin font $weight, var(--typography-h6-min), var(--typography-h6-max),
|
|
38
|
+
$minLetterSpacing, var(--typography-h6-min-line-height),
|
|
39
|
+
var(--typography-h6-max-line-height), $maxLetterSpacing,
|
|
40
|
+
var(--typography-h6-font);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@define-mixin hero_h1 $weight: normal, $minLetterSpacing: 0,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var(--typography-hero1-
|
|
47
|
-
var(--typography-hero1-
|
|
43
|
+
@define-mixin hero_h1 $weight: normal, $minLetterSpacing: 0,
|
|
44
|
+
$maxLetterSpacing: 0 {
|
|
45
|
+
@mixin font $weight, var(--typography-hero1-min), var(--typography-hero1-max),
|
|
46
|
+
$minLetterSpacing, var(--typography-hero1-min-line-height),
|
|
47
|
+
var(--typography-hero1-max-line-height), $maxLetterSpacing,
|
|
48
|
+
var(--typography-hero1-font);
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
@define-mixin hero_h2 $weight: normal, $minLetterSpacing: 0,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
var(--typography-hero2-
|
|
54
|
-
var(--typography-hero2-
|
|
51
|
+
@define-mixin hero_h2 $weight: normal, $minLetterSpacing: 0,
|
|
52
|
+
$maxLetterSpacing: 0 {
|
|
53
|
+
@mixin font $weight, var(--typography-hero2-min), var(--typography-hero2-max),
|
|
54
|
+
$minLetterSpacing, var(--typography-hero2-min-line-height),
|
|
55
|
+
var(--typography-hero2-max-line-height), $maxLetterSpacing,
|
|
56
|
+
var(--typography-hero2-font);
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
@define-mixin hero_h3 $weight: normal, $minLetterSpacing: 0,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var(--typography-hero3-
|
|
61
|
-
var(--typography-hero3-
|
|
59
|
+
@define-mixin hero_h3 $weight: normal, $minLetterSpacing: 0,
|
|
60
|
+
$maxLetterSpacing: 0 {
|
|
61
|
+
@mixin font $weight, var(--typography-hero3-min), var(--typography-hero3-max),
|
|
62
|
+
$minLetterSpacing, var(--typography-hero3-min-line-height),
|
|
63
|
+
var(--typography-hero3-max-line-height), $maxLetterSpacing,
|
|
64
|
+
var(--typography-hero3-font);
|
|
62
65
|
}
|
|
63
66
|
|
|
64
|
-
@define-mixin hero_h4 $weight: normal, $minLetterSpacing: 0,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
var(--typography-hero4-
|
|
68
|
-
var(--typography-hero4-
|
|
67
|
+
@define-mixin hero_h4 $weight: normal, $minLetterSpacing: 0,
|
|
68
|
+
$maxLetterSpacing: 0 {
|
|
69
|
+
@mixin font $weight, var(--typography-hero4-min), var(--typography-hero4-max),
|
|
70
|
+
$minLetterSpacing, var(--typography-hero4-min-line-height),
|
|
71
|
+
var(--typography-hero4-max-line-height), $maxLetterSpacing,
|
|
72
|
+
var(--typography-hero4-font);
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
@define-mixin hero_h5 $weight: normal, $minLetterSpacing: 0,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var(--typography-hero5-
|
|
75
|
-
var(--typography-hero5-
|
|
75
|
+
@define-mixin hero_h5 $weight: normal, $minLetterSpacing: 0,
|
|
76
|
+
$maxLetterSpacing: 0 {
|
|
77
|
+
@mixin font $weight, var(--typography-hero5-min), var(--typography-hero5-max),
|
|
78
|
+
$minLetterSpacing, var(--typography-hero5-min-line-height),
|
|
79
|
+
var(--typography-hero5-max-line-height), $maxLetterSpacing,
|
|
80
|
+
var(--typography-hero5-font);
|
|
76
81
|
}
|
|
77
82
|
|
|
78
|
-
@define-mixin hero_h6 $weight: normal, $minLetterSpacing: 0,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var(--typography-hero6-
|
|
82
|
-
var(--typography-hero6-
|
|
83
|
+
@define-mixin hero_h6 $weight: normal, $minLetterSpacing: 0,
|
|
84
|
+
$maxLetterSpacing: 0 {
|
|
85
|
+
@mixin font $weight, var(--typography-hero6-min), var(--typography-hero6-max),
|
|
86
|
+
$minLetterSpacing, var(--typography-hero6-min-line-height),
|
|
87
|
+
var(--typography-hero6-max-line-height), $maxLetterSpacing,
|
|
88
|
+
var(--typography-hero6-font);
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
@define-mixin p $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
86
|
-
@mixin font $weight, var(--typography-p-min
|
|
87
|
-
$minLetterSpacing, var(--typography-p-min-line-height
|
|
88
|
-
var(--typography-p-max-line-height
|
|
89
|
-
var(--typography-p-font
|
|
92
|
+
@mixin font $weight, var(--typography-p-min), var(--typography-p-max),
|
|
93
|
+
$minLetterSpacing, var(--typography-p-min-line-height),
|
|
94
|
+
var(--typography-p-max-line-height), $maxLetterSpacing,
|
|
95
|
+
var(--typography-p-font);
|
|
90
96
|
}
|
|
91
97
|
|
|
92
|
-
@define-mixin text-xxl $weight: normal, $minLetterSpacing: 0,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
var(--typography-text-xxl-max
|
|
96
|
-
var(--typography-text-xxl-
|
|
98
|
+
@define-mixin text-xxl $weight: normal, $minLetterSpacing: 0,
|
|
99
|
+
$maxLetterSpacing: 0 {
|
|
100
|
+
@mixin font $weight, var(--typography-text-xxl-min),
|
|
101
|
+
var(--typography-text-xxl-max), $minLetterSpacing,
|
|
102
|
+
var(--typography-text-xxl-min-line-height),
|
|
103
|
+
var(--typography-text-xxl-max-line-height), $maxLetterSpacing,
|
|
104
|
+
var(--typography-text-xxl-font);
|
|
97
105
|
}
|
|
98
106
|
|
|
99
|
-
@define-mixin text-xl $weight: normal, $minLetterSpacing: 0,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
var(--typography-text-xl-max
|
|
103
|
-
var(--typography-text-xl-
|
|
107
|
+
@define-mixin text-xl $weight: normal, $minLetterSpacing: 0,
|
|
108
|
+
$maxLetterSpacing: 0 {
|
|
109
|
+
@mixin font $weight, var(--typography-text-xl-min),
|
|
110
|
+
var(--typography-text-xl-max), $minLetterSpacing,
|
|
111
|
+
var(--typography-text-xl-min-line-height),
|
|
112
|
+
var(--typography-text-xl-max-line-height), $maxLetterSpacing,
|
|
113
|
+
var(--typography-text-xl-font);
|
|
104
114
|
}
|
|
105
115
|
|
|
106
116
|
@define-mixin text-l $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
107
|
-
@mixin font $weight, var(--typography-text-l-min
|
|
108
|
-
|
|
109
|
-
var(--typography-text-l-
|
|
110
|
-
var(--typography-text-l-
|
|
117
|
+
@mixin font $weight, var(--typography-text-l-min),
|
|
118
|
+
var(--typography-text-l-max), $minLetterSpacing,
|
|
119
|
+
var(--typography-text-l-min-line-height),
|
|
120
|
+
var(--typography-text-l-max-line-height), $maxLetterSpacing,
|
|
121
|
+
var(--typography-text-l-font);
|
|
111
122
|
}
|
|
112
123
|
|
|
113
124
|
@define-mixin text-m $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
114
|
-
@mixin font $weight, var(--typography-text-m-min
|
|
115
|
-
|
|
116
|
-
var(--typography-text-m-
|
|
117
|
-
var(--typography-text-m-
|
|
125
|
+
@mixin font $weight, var(--typography-text-m-min),
|
|
126
|
+
var(--typography-text-m-max), $minLetterSpacing,
|
|
127
|
+
var(--typography-text-m-min-line-height),
|
|
128
|
+
var(--typography-text-m-max-line-height), $maxLetterSpacing,
|
|
129
|
+
var(--typography-text-m-font);
|
|
118
130
|
}
|
|
119
131
|
|
|
120
132
|
@define-mixin text-s $weight: normal, $minLetterSpacing: 0, $maxLetterSpacing: 0 {
|
|
121
|
-
@mixin font $weight, var(--typography-text-s-min
|
|
122
|
-
|
|
123
|
-
var(--typography-text-s-
|
|
124
|
-
var(--typography-text-s-
|
|
133
|
+
@mixin font $weight, var(--typography-text-s-min),
|
|
134
|
+
var(--typography-text-s-max), $minLetterSpacing,
|
|
135
|
+
var(--typography-text-s-min-line-height),
|
|
136
|
+
var(--typography-text-s-max-line-height), $maxLetterSpacing,
|
|
137
|
+
var(--typography-text-s-font);
|
|
125
138
|
}
|
|
126
139
|
|
|
127
|
-
@define-mixin text-xs $weight: normal, $minLetterSpacing: 0,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
var(--typography-text-xs-max
|
|
131
|
-
var(--typography-text-xs-
|
|
140
|
+
@define-mixin text-xs $weight: normal, $minLetterSpacing: 0,
|
|
141
|
+
$maxLetterSpacing: 0 {
|
|
142
|
+
@mixin font $weight, var(--typography-text-xs-min),
|
|
143
|
+
var(--typography-text-xs-max), $minLetterSpacing,
|
|
144
|
+
var(--typography-text-xs-min-line-height),
|
|
145
|
+
var(--typography-text-xs-max-line-height), $maxLetterSpacing,
|
|
146
|
+
var(--typography-text-xs-font);
|
|
132
147
|
}
|
|
133
148
|
|
|
134
|
-
@define-mixin text-xxs $weight: normal, $minLetterSpacing: 0,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
var(--typography-text-xxs-max
|
|
138
|
-
var(--typography-text-xxs-
|
|
149
|
+
@define-mixin text-xxs $weight: normal, $minLetterSpacing: 0,
|
|
150
|
+
$maxLetterSpacing: 0 {
|
|
151
|
+
@mixin font $weight, var(--typography-text-xxs-min),
|
|
152
|
+
var(--typography-text-xxs-max), $minLetterSpacing,
|
|
153
|
+
var(--typography-text-xxs-min-line-height),
|
|
154
|
+
var(--typography-text-xxs-max-line-height), $maxLetterSpacing,
|
|
155
|
+
var(--typography-text-xxs-font);
|
|
139
156
|
}
|
|
140
157
|
|
|
141
158
|
@define-mixin email-h1 $weight: normal {
|
|
142
|
-
@mixin font-fixed $weight, var(--typography-email-h1
|
|
143
|
-
var(--typography-email-h1-line-height
|
|
159
|
+
@mixin font-fixed $weight, var(--typography-email-h1),
|
|
160
|
+
var(--typography-email-h1-line-height), var(--font-email);
|
|
144
161
|
}
|
|
145
162
|
|
|
146
163
|
@define-mixin email-h2 $weight: normal {
|
|
147
|
-
@mixin font-fixed $weight, var(--typography-email-h2
|
|
148
|
-
var(--typography-email-h2-line-height
|
|
164
|
+
@mixin font-fixed $weight, var(--typography-email-h2),
|
|
165
|
+
var(--typography-email-h2-line-height), var(--font-email);
|
|
149
166
|
}
|
|
150
167
|
|
|
151
168
|
@define-mixin email-h3 $weight: normal {
|
|
152
|
-
@mixin font-fixed $weight, var(--typography-email-h3
|
|
153
|
-
var(--typography-email-h3-line-height
|
|
169
|
+
@mixin font-fixed $weight, var(--typography-email-h3),
|
|
170
|
+
var(--typography-email-h3-line-height), var(--font-email);
|
|
154
171
|
}
|
|
155
172
|
|
|
156
173
|
@define-mixin email-h4 $weight: normal {
|
|
157
|
-
@mixin font-fixed $weight, var(--typography-email-h4
|
|
158
|
-
var(--typography-email-h4-line-height
|
|
174
|
+
@mixin font-fixed $weight, var(--typography-email-h4),
|
|
175
|
+
var(--typography-email-h4-line-height), var(--font-email);
|
|
159
176
|
}
|
|
160
177
|
|
|
161
178
|
@define-mixin email-h5 $weight: normal {
|
|
162
|
-
@mixin font-fixed $weight, var(--typography-email-h5
|
|
163
|
-
var(--typography-email-h5-line-height
|
|
179
|
+
@mixin font-fixed $weight, var(--typography-email-h5),
|
|
180
|
+
var(--typography-email-h5-line-height), var(--font-email);
|
|
164
181
|
}
|
|
165
182
|
|
|
166
183
|
@define-mixin email-h6 $weight: normal {
|
|
167
|
-
@mixin font-fixed $weight, var(--typography-email-h6
|
|
168
|
-
var(--typography-email-h6-line-height
|
|
184
|
+
@mixin font-fixed $weight, var(--typography-email-h6),
|
|
185
|
+
var(--typography-email-h6-line-height), var(--font-email);
|
|
169
186
|
}
|
|
170
187
|
|
|
171
188
|
@define-mixin email-p $weight: normal {
|
|
172
|
-
@mixin font-fixed $weight, var(--typography-email-p
|
|
173
|
-
var(--typography-email-p-line-height
|
|
189
|
+
@mixin font-fixed $weight, var(--typography-email-p),
|
|
190
|
+
var(--typography-email-p-line-height), var(--font-email);
|
|
174
191
|
}
|
|
175
192
|
|
|
176
193
|
@define-mixin email-text-xxl $weight: normal {
|
|
177
|
-
@mixin font-fixed $weight, var(--typography-email-text-xxl
|
|
178
|
-
var(--typography-email-text-xxl-line-height
|
|
194
|
+
@mixin font-fixed $weight, var(--typography-email-text-xxl),
|
|
195
|
+
var(--typography-email-text-xxl-line-height), var(--font-email);
|
|
179
196
|
}
|
|
180
197
|
|
|
181
198
|
@define-mixin email-text-xl $weight: normal {
|
|
182
|
-
@mixin font-fixed $weight, var(--typography-email-text-xl
|
|
183
|
-
var(--typography-email-text-xl-line-height
|
|
199
|
+
@mixin font-fixed $weight, var(--typography-email-text-xl),
|
|
200
|
+
var(--typography-email-text-xl-line-height), var(--font-email);
|
|
184
201
|
}
|
|
185
202
|
|
|
186
203
|
@define-mixin email-text-l $weight: normal {
|
|
187
|
-
@mixin font-fixed $weight, var(--typography-email-text-l
|
|
188
|
-
var(--typography-email-text-l-line-height
|
|
204
|
+
@mixin font-fixed $weight, var(--typography-email-text-l),
|
|
205
|
+
var(--typography-email-text-l-line-height), var(--font-email);
|
|
189
206
|
}
|
|
190
207
|
|
|
191
208
|
@define-mixin email-text-m $weight: normal {
|
|
192
|
-
@mixin font-fixed $weight, var(--typography-email-text-m
|
|
193
|
-
var(--typography-email-text-m-line-height
|
|
209
|
+
@mixin font-fixed $weight, var(--typography-email-text-m),
|
|
210
|
+
var(--typography-email-text-m-line-height), var(--font-email);
|
|
194
211
|
}
|
|
195
212
|
|
|
196
213
|
@define-mixin email-text-s $weight: normal {
|
|
197
|
-
@mixin font-fixed $weight, var(--typography-email-text-s
|
|
198
|
-
var(--typography-email-text-s-line-height
|
|
214
|
+
@mixin font-fixed $weight, var(--typography-email-text-s),
|
|
215
|
+
var(--typography-email-text-s-line-height), var(--font-email);
|
|
199
216
|
}
|
|
200
217
|
|
|
201
218
|
@define-mixin email-text-xs $weight: normal {
|
|
202
|
-
@mixin font-fixed $weight, var(--typography-email-text-xs
|
|
203
|
-
var(--typographyemail-text-xs-line-height
|
|
219
|
+
@mixin font-fixed $weight, var(--typography-email-text-xs),
|
|
220
|
+
var(--typographyemail-text-xs-line-height), var(--font-email);
|
|
204
221
|
}
|
|
205
222
|
|
|
206
223
|
@define-mixin email-text-xxs $weight: normal {
|
|
207
|
-
@mixin font-fixed $weight, var(--typography-email-text-xxs
|
|
208
|
-
var(--typography-email-text-xxs-line-height
|
|
224
|
+
@mixin font-fixed $weight, var(--typography-email-text-xxs),
|
|
225
|
+
var(--typography-email-text-xxs-line-height), var(--font-email);
|
|
209
226
|
}
|
|
210
227
|
|
|
211
228
|
@define-mixin text-gradient-primary {
|
|
212
229
|
color: transparent;
|
|
213
|
-
background: linear-gradient(
|
|
230
|
+
background: linear-gradient(
|
|
231
|
+
90deg,
|
|
232
|
+
hsl(266, 100%, 64%, 1) 0%,
|
|
233
|
+
hsl(213, 79%, 68%, 1) 50%
|
|
234
|
+
);
|
|
214
235
|
background-clip: text;
|
|
215
236
|
text-fill-color: transparent;
|
|
216
237
|
}
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* stylelint-disable declaration-property-value-keyword-no-deprecated */
|
|
2
|
+
@define-mixin font $fontWeight, $minFontSize, $maxFontSize, $minLetterSpacing,
|
|
3
|
+
$minLineHeight, $maxLineHeight, $maxLetterSpacing, $fontFamily {
|
|
3
4
|
font-size: fluid(
|
|
4
5
|
$minFontSize,
|
|
5
6
|
$maxFontSize,
|
|
6
|
-
var(--typography-min-viewport
|
|
7
|
-
var(--typography-max-viewport
|
|
7
|
+
var(--typography-min-viewport),
|
|
8
|
+
var(--typography-max-viewport)
|
|
8
9
|
);
|
|
9
10
|
font-weight: $fontWeight;
|
|
10
11
|
line-height: fluid(
|
|
11
12
|
$minLineHeight,
|
|
12
13
|
$maxLineHeight,
|
|
13
|
-
var(--typography-min-viewport
|
|
14
|
-
var(--typography-max-viewport
|
|
14
|
+
var(--typography-min-viewport),
|
|
15
|
+
var(--typography-max-viewport)
|
|
15
16
|
);
|
|
16
17
|
letter-spacing: fluid(
|
|
17
18
|
$minLetterSpacing,
|
|
18
19
|
$maxLetterSpacing,
|
|
19
|
-
var(--typography-min-viewport
|
|
20
|
-
var(--typography-max-viewport
|
|
20
|
+
var(--typography-min-viewport),
|
|
21
|
+
var(--typography-max-viewport)
|
|
21
22
|
);
|
|
22
23
|
font-family: $fontFamily;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
25
|
@define-mixin font-fixed $weight, $size, $line, $family {
|
|
26
26
|
font-size: $size;
|
|
27
27
|
font-weight: $weight;
|
|
28
28
|
font-family: $family;
|
|
29
29
|
line-height: $line;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
31
|
@define-mixin word-wrap {
|
|
33
32
|
overflow-wrap: break-word;
|
|
34
33
|
word-wrap: break-word;
|
|
@@ -2,28 +2,32 @@
|
|
|
2
2
|
&_active {
|
|
3
3
|
&_hover {
|
|
4
4
|
@each $type in accent, primary, secondary, tertiary, quaternary, quinary,
|
|
5
|
-
senary, surface, error, success, warning, info, danger,
|
|
6
|
-
gradient {
|
|
5
|
+
senary, surface, error, success, warning, info, danger, gradient {
|
|
7
6
|
&_$(type) {
|
|
8
|
-
@each $color in primary, secondary, tertiary, quaternary
|
|
9
|
-
senary, accent, disabled, hover, active {
|
|
7
|
+
@each $color in primary, secondary, tertiary, quaternary {
|
|
10
8
|
&-$(color) {
|
|
11
9
|
&:hover {
|
|
12
10
|
background: var(--color-$(type)-$(color));
|
|
13
11
|
}
|
|
12
|
+
&-hover {
|
|
13
|
+
&:hover {
|
|
14
|
+
background: var(--color-$(type)-$(color)-hover);
|
|
15
|
+
}
|
|
16
|
+
&-active {
|
|
17
|
+
&:hover {
|
|
18
|
+
background: var(--color-$(type)-$(color)-active-hover);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&-active {
|
|
23
|
+
&:hover {
|
|
24
|
+
background: var(--color-$(type)-$(color)-active);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
14
27
|
}
|
|
15
28
|
}
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
|
-
@each $type in accent, primary, secondary, tertiary, quaternary, quinary,
|
|
19
|
-
senary, surface, error, success, warning, info, danger, disabled,
|
|
20
|
-
gradient {
|
|
21
|
-
&_$(type) {
|
|
22
|
-
&-primary {
|
|
23
|
-
background: var(--color-$(type)-primary);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Meta, Typeset } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
<Meta title="Tokens / Typography" />
|
|
3
|
+
<Meta title="Tokens / Typography / AM" />
|
|
4
4
|
|
|
5
5
|
export const typography = {
|
|
6
6
|
type: {
|
|
7
|
-
primary: '
|
|
7
|
+
primary: 'Wix Madefor Display, sans-serif',
|
|
8
8
|
},
|
|
9
9
|
weight: {
|
|
10
10
|
regular: '400',
|
|
@@ -27,7 +27,7 @@ export const SampleText = 'Lorem ipsum dolor sit amet, consectetur adipiscing el
|
|
|
27
27
|
# Typography
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
**Font:**
|
|
30
|
+
**Font:** Wix Madefor Display
|
|
31
31
|
|
|
32
32
|
**Title:** H1- H6
|
|
33
33
|
|
|
@@ -47,7 +47,7 @@ export const SampleText = 'Lorem ipsum dolor sit amet, consectetur adipiscing el
|
|
|
47
47
|
|
|
48
48
|
export const textography = {
|
|
49
49
|
type: {
|
|
50
|
-
primary: '
|
|
50
|
+
primary: 'Wix Madefor Display, sans-serif',
|
|
51
51
|
},
|
|
52
52
|
weight: {
|
|
53
53
|
regular: '400',
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Meta, Typeset } from '@storybook/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title="Tokens / Typography / Baikal" />
|
|
4
|
+
|
|
5
|
+
export const typography = {
|
|
6
|
+
type: {
|
|
7
|
+
primary: 'PF-Din-Display-Pro, sans-serif',
|
|
8
|
+
},
|
|
9
|
+
weight: {
|
|
10
|
+
regular: '400',
|
|
11
|
+
bold: '700',
|
|
12
|
+
extrabold: '800',
|
|
13
|
+
black: '900',
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
h1: 64,
|
|
17
|
+
h2: 46,
|
|
18
|
+
h3: 32,
|
|
19
|
+
h4: 24,
|
|
20
|
+
h5: 18,
|
|
21
|
+
h6: 16,
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const SampleText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'
|
|
26
|
+
|
|
27
|
+
# Typography
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
**Font:** PF-Din-Display-Pro
|
|
31
|
+
|
|
32
|
+
**Title:** H1- H6
|
|
33
|
+
|
|
34
|
+
<Typeset
|
|
35
|
+
fontSizes={[
|
|
36
|
+
Number(typography.size.h1),
|
|
37
|
+
Number(typography.size.h2),
|
|
38
|
+
Number(typography.size.h3),
|
|
39
|
+
Number(typography.size.h4),
|
|
40
|
+
Number(typography.size.h5),
|
|
41
|
+
Number(typography.size.h6),
|
|
42
|
+
]}
|
|
43
|
+
fontWeight={typography.weight.regular}
|
|
44
|
+
sampleText={SampleText}
|
|
45
|
+
fontFamily={typography.type.primary}
|
|
46
|
+
/>
|
|
47
|
+
|
|
48
|
+
export const textography = {
|
|
49
|
+
type: {
|
|
50
|
+
primary: 'PF-Din-Display-Pro, sans-serif',
|
|
51
|
+
},
|
|
52
|
+
weight: {
|
|
53
|
+
regular: '400',
|
|
54
|
+
semibold: '600',
|
|
55
|
+
},
|
|
56
|
+
size: {
|
|
57
|
+
xxl: 24,
|
|
58
|
+
xl: 22,
|
|
59
|
+
l: 20,
|
|
60
|
+
m: 16,
|
|
61
|
+
s: 14,
|
|
62
|
+
xs: 12,
|
|
63
|
+
xxs: 10,
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
**Text:** xxl- xxs
|
|
68
|
+
|
|
69
|
+
<Typeset
|
|
70
|
+
fontSizes={[
|
|
71
|
+
Number(textography.size.xxl),
|
|
72
|
+
Number(textography.size.xl),
|
|
73
|
+
Number(textography.size.l),
|
|
74
|
+
Number(textography.size.m),
|
|
75
|
+
Number(textography.size.s),
|
|
76
|
+
Number(textography.size.xs),
|
|
77
|
+
Number(textography.size.xxs),
|
|
78
|
+
]}
|
|
79
|
+
fontWeight={textography.weight.regular}
|
|
80
|
+
sampleText={SampleText}
|
|
81
|
+
fontFamily={textography.type.primary}
|
|
82
|
+
/>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { tAlignDirectionProps, tAlignmentProps,
|
|
2
|
+
import { tAlignDirectionProps, tAlignmentProps, tDirectionProps, tFillHoverProps, tFillProps, tJustifyContentProps, tShapeProps, tSizeProps, tTextAlignProps, tTextColorActiveProps, tTextColorHoverProps, tTextColorProps, tTextGradientProps, tTextSizeProps, tTextStyleProps, tTextWeightProps, tTextWrapProps, tTypeProps, tUnderlineProps } from 'types';
|
|
3
3
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
4
|
+
import { tAlignProps, tElevationProps, tWidthProps } from '@itcase/types';
|
|
4
5
|
import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
5
6
|
export interface iDropdownProps extends iStyleAttributes {
|
|
6
7
|
[key: number | string | symbol]: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -97,19 +97,19 @@
|
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
99
99
|
"@itcase/common": "^1.2.22",
|
|
100
|
-
"@itcase/config": "^1.0.
|
|
100
|
+
"@itcase/config": "^1.0.36",
|
|
101
101
|
"@itcase/icons": "^1.0.29",
|
|
102
|
-
"@itcase/storybook-config": "^1.1.
|
|
103
|
-
"@itcase/tokens-am": "^1.0
|
|
104
|
-
"@itcase/tokens-baikal": "^1.0
|
|
102
|
+
"@itcase/storybook-config": "^1.1.9",
|
|
103
|
+
"@itcase/tokens-am": "^1.1.0",
|
|
104
|
+
"@itcase/tokens-baikal": "^1.1.0",
|
|
105
105
|
"clsx": "^2.1.1",
|
|
106
106
|
"date-fns": "^4.1.0",
|
|
107
107
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
108
108
|
"eslint-plugin-import": "^2.31.0",
|
|
109
|
-
"framer-motion": "^12.7.
|
|
109
|
+
"framer-motion": "^12.7.4",
|
|
110
110
|
"js-cookie": "^3.0.5",
|
|
111
111
|
"lodash": "^4.17.21",
|
|
112
|
-
"motion": "^12.7.
|
|
112
|
+
"motion": "^12.7.4",
|
|
113
113
|
"rc-slider": "^11.1.8",
|
|
114
114
|
"react": "^18.3.1",
|
|
115
115
|
"react-dadata": "^2.27.4",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"@babel/preset-react": "^7.26.3",
|
|
135
135
|
"@commitlint/cli": "^19.8.0",
|
|
136
136
|
"@commitlint/config-conventional": "^19.8.0",
|
|
137
|
-
"@itcase/lint": "^1.1.
|
|
137
|
+
"@itcase/lint": "^1.1.7",
|
|
138
138
|
"@rollup/plugin-alias": "^5.1.1",
|
|
139
139
|
"@rollup/plugin-babel": "^6.0.4",
|
|
140
140
|
"@rollup/plugin-commonjs": "^28.0.3",
|