@nuvoui/core 1.2.4 → 1.2.6

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.
Files changed (41) hide show
  1. package/README.md +2 -2
  2. package/dist/nuvoui.css +27685 -22739
  3. package/dist/nuvoui.css.map +1 -1
  4. package/dist/nuvoui.min.css +1 -1
  5. package/dist/nuvoui.min.css.map +1 -1
  6. package/package.json +7 -8
  7. package/src/styles/abstracts/_config.scss +87 -34
  8. package/src/styles/abstracts/_functions.scss +70 -37
  9. package/src/styles/base/_base.scss +79 -59
  10. package/src/styles/base/_reset.scss +11 -8
  11. package/src/styles/index.scss +32 -17
  12. package/src/styles/layouts/_container.scss +1 -2
  13. package/src/styles/layouts/_flex.scss +442 -154
  14. package/src/styles/layouts/_grid.scss +145 -75
  15. package/src/styles/mixins-map.scss +1085 -1
  16. package/src/styles/themes/_theme.scss +95 -106
  17. package/src/styles/utilities/_alignment.scss +40 -13
  18. package/src/styles/utilities/_animations.scss +361 -92
  19. package/src/styles/utilities/_backdrop-filters.scss +297 -0
  20. package/src/styles/utilities/_borders.scss +360 -159
  21. package/src/styles/utilities/_colors.scss +24 -34
  22. package/src/styles/utilities/_container-queries.scss +7 -7
  23. package/src/styles/utilities/_cursor.scss +10 -17
  24. package/src/styles/utilities/_display.scss +234 -85
  25. package/src/styles/utilities/_helpers.scss +5 -5
  26. package/src/styles/utilities/_media-queries.scss +24 -27
  27. package/src/styles/utilities/_opacity.scss +15 -31
  28. package/src/styles/utilities/_position.scss +129 -66
  29. package/src/styles/utilities/_shadows.scss +23 -29
  30. package/src/styles/utilities/_sizing.scss +270 -92
  31. package/src/styles/utilities/_spacing.scss +317 -169
  32. package/src/styles/utilities/_tooltips.scss +36 -29
  33. package/src/styles/utilities/_transforms.scss +243 -154
  34. package/src/styles/utilities/_transitions.scss +129 -75
  35. package/src/styles/utilities/_typography.scss +341 -127
  36. package/src/styles/utilities/_z-index.scss +144 -0
  37. package/src/styles/abstracts/_index.scss +0 -1
  38. package/src/styles/base/_index.scss +0 -2
  39. package/src/styles/layouts/_index.scss +0 -3
  40. package/src/styles/themes/_index.scss +0 -1
  41. package/src/styles/utilities/_index.scss +0 -20
@@ -1,116 +1,294 @@
1
1
  // _spacing.scss
2
2
 
3
- @use 'sass:math';
4
- @use 'sass:string' as str;
5
- @use '../abstracts' as VAR;
6
- @use './container-queries' as Q;
7
- @use './media-queries' as MQ;
8
-
9
- @mixin width($value) { width: $value; }
10
- @mixin height($value) { height: $value; }
11
- @mixin min-width($value) { min-width: $value; }
12
- @mixin min-height($value) { min-height: $value; }
13
- @mixin max-width($value) { max-width: $value; }
14
- @mixin max-height($value) { max-height: $value; }
15
-
16
- @mixin width-percent($i) { width: str.unquote($i + '%'); }
17
- @mixin height-percent($i) { height: str.unquote($i + '%'); }
18
- @mixin min-width-percent($i) { min-width: str.unquote($i + '%'); }
19
- @mixin min-height-percent($i) { min-height: str.unquote($i + '%'); }
20
- @mixin max-width-percent($i) { max-width: str.unquote($i + '%'); }
21
- @mixin max-height-percent($i) { max-height: str.unquote($i + '%'); }
22
-
23
- @mixin w-auto { @include width(auto);}
24
- @mixin w-full { @include width(100%);}
25
- @mixin h-auto { @include height(auto);}
26
- @mixin h-full { @include height(100%);}
27
- @mixin w-max { @include width(max-content);}
28
- @mixin h-max { @include height(max-content);}
29
- @mixin w-min { @include width(min-content);}
30
- @mixin h-min { @include height(min-content);}
31
- @mixin w-fit { @include width(fit-content);}
32
- @mixin h-fit { @include height(fit-content);}
33
- @mixin min-w-full { @include min-width(100%);}
34
- @mixin max-w-full { @include max-width(100%);}
35
- @mixin min-h-full { @include min-height(100%);}
36
- @mixin max-h-full { @include max-height(100%);}
37
-
38
- @mixin w-screen { width: 100vw; }
39
- @mixin h-screen { height: 100dvh; }
3
+ @use "sass:math";
4
+ @use "sass:string" as str;
5
+ @use "../abstracts/config" as VAR;
6
+ @use "../abstracts/functions" as FN;
7
+ @use "./container-queries" as Q;
8
+ @use "./media-queries" as MQ;
9
+
10
+ @mixin width($value) {
11
+ width: FN.fix-units($value);
12
+ }
13
+ @mixin height($value) {
14
+ height: FN.fix-units($value);
15
+ }
16
+ @mixin min-width($value) {
17
+ min-width: FN.fix-units($value);
18
+ }
19
+ @mixin min-height($value) {
20
+ min-height: FN.fix-units($value);
21
+ }
22
+ @mixin max-width($value) {
23
+ max-width: FN.fix-units($value);
24
+ }
25
+ @mixin max-height($value) {
26
+ max-height: FN.fix-units($value);
27
+ }
28
+ @mixin width-percent($i) {
29
+ width: str.unquote($i + "%");
30
+ }
31
+ @mixin height-percent($i) {
32
+ height: str.unquote($i + "%");
33
+ }
34
+ @mixin min-width-percent($i) {
35
+ min-width: str.unquote($i + "%");
36
+ }
37
+ @mixin min-height-percent($i) {
38
+ min-height: str.unquote($i + "%");
39
+ }
40
+ @mixin max-width-percent($i) {
41
+ max-width: str.unquote($i + "%");
42
+ }
43
+ @mixin max-height-percent($i) {
44
+ max-height: str.unquote($i + "%");
45
+ }
46
+
47
+ @mixin w-auto {
48
+ @include width(auto);
49
+ }
50
+ @mixin w-full {
51
+ @include width(100%);
52
+ }
53
+ @mixin h-auto {
54
+ @include height(auto);
55
+ }
56
+ @mixin h-full {
57
+ @include height(100%);
58
+ }
59
+ @mixin w-max {
60
+ @include width(max-content);
61
+ }
62
+ @mixin h-max {
63
+ @include height(max-content);
64
+ }
65
+ @mixin w-min {
66
+ @include width(min-content);
67
+ }
68
+ @mixin h-min {
69
+ @include height(min-content);
70
+ }
71
+ @mixin w-fit {
72
+ @include width(fit-content);
73
+ }
74
+ @mixin h-fit {
75
+ @include height(fit-content);
76
+ }
77
+ @mixin min-w-full {
78
+ @include min-width(100%);
79
+ }
80
+ @mixin max-w-full {
81
+ @include max-width(100%);
82
+ }
83
+ @mixin min-h-full {
84
+ @include min-height(100%);
85
+ }
86
+ @mixin max-h-full {
87
+ @include max-height(100%);
88
+ }
89
+
90
+ @mixin w-screen {
91
+ width: 100vw;
92
+ }
93
+ @mixin h-screen {
94
+ height: 100dvh;
95
+ }
40
96
 
41
97
  @if VAR.$generate-utility-classes {
42
- .w-screen { @include w-screen; }
43
- .h-screen { @include h-screen; }
44
-
45
- .w-auto { @include w-auto; }
46
- .w-full { @include w-full; }
47
- .h-auto { @include h-auto; }
48
- .h-full { @include h-full; }
49
- .w-min { @include w-min;}
50
- .h-min { @include h-min;}
51
- .w-fit { @include w-fit;}
52
- .h-fit { @include h-fit;}
53
-
54
- .min-w-full { @include min-w-full; }
55
- .max-w-full { @include max-w-full; }
56
- .min-h-full { @include min-h-full; }
57
- .max-h-full { @include max-h-full; }
98
+ #{VAR.$parent-selector} .w-screen {
99
+ @include w-screen;
100
+ }
101
+
102
+ #{VAR.$parent-selector} .h-screen {
103
+ @include h-screen;
104
+ }
105
+
106
+ #{VAR.$parent-selector} .w-auto {
107
+ @include w-auto;
108
+ }
109
+
110
+ #{VAR.$parent-selector} .w-full {
111
+ @include w-full;
112
+ }
113
+
114
+ #{VAR.$parent-selector} .h-auto {
115
+ @include h-auto;
116
+ }
117
+
118
+ #{VAR.$parent-selector} .h-full {
119
+ @include h-full;
120
+ }
121
+
122
+ #{VAR.$parent-selector} .w-min {
123
+ @include w-min;
124
+ }
125
+
126
+ #{VAR.$parent-selector} .h-min {
127
+ @include h-min;
128
+ }
129
+
130
+ #{VAR.$parent-selector} .w-fit {
131
+ @include w-fit;
132
+ }
133
+
134
+ #{VAR.$parent-selector} .h-fit {
135
+ @include h-fit;
136
+ }
137
+
138
+ #{VAR.$parent-selector} .min-w-full {
139
+ @include min-w-full;
140
+ }
141
+
142
+ #{VAR.$parent-selector} .max-w-full {
143
+ @include max-w-full;
144
+ }
145
+
146
+ #{VAR.$parent-selector} .min-h-full {
147
+ @include min-h-full;
148
+ }
149
+
150
+ #{VAR.$parent-selector} .max-h-full {
151
+ @include max-h-full;
152
+ }
58
153
 
59
154
  // Percentage widths
60
155
  @each $i in VAR.$percentages {
61
- .w-#{$i}p { @include width-percent($i); }
62
- .h-#{$i}p { @include height-percent($i); }
63
- .min-w-#{$i}p { @include min-width-percent($i); }
64
- .min-h-#{$i}p { @include min-height-percent($i); }
65
- .max-w-#{$i}p { @include max-width-percent($i); }
66
- .max-h-#{$i}p { @include max-height-percent($i); }
156
+ #{VAR.$parent-selector} .w-#{$i}p {
157
+ @include width-percent($i);
158
+ }
159
+ #{VAR.$parent-selector} .h-#{$i}p {
160
+ @include height-percent($i);
161
+ }
162
+ #{VAR.$parent-selector} .min-w-#{$i}p {
163
+ @include min-width-percent($i);
164
+ }
165
+ #{VAR.$parent-selector} .min-h-#{$i}p {
166
+ @include min-height-percent($i);
167
+ }
168
+ #{VAR.$parent-selector} .max-w-#{$i}p {
169
+ @include max-width-percent($i);
170
+ }
171
+ #{VAR.$parent-selector} .max-h-#{$i}p {
172
+ @include max-height-percent($i);
173
+ }
67
174
  }
68
175
 
69
176
  // Generate utilities from spacing map
70
177
  @each $key, $value in VAR.$spacings {
71
- .w-#{$key} { @include width($value); }
72
- .h-#{$key} { @include height($value); }
73
- .min-w-#{$key} { @include min-width($value); }
74
- .min-h-#{$key} { @include min-height($value); }
75
- .max-w-#{$key} { @include max-width($value); }
76
- .max-h-#{$key} { @include max-height($value); }
178
+ #{VAR.$parent-selector} .w-#{$key},
179
+ #{VAR.$parent-selector} .hover\:w-#{$key}:hover,
180
+ #{VAR.$parent-selector} .group:hover .group-hover\:w-#{$key} {
181
+ @include width($value);
182
+ }
183
+ #{VAR.$parent-selector} .h-#{$key},
184
+ #{VAR.$parent-selector} .hover\:h-#{$key}:hover,
185
+ #{VAR.$parent-selector} .group:hover .group-hover\:h-#{$key} {
186
+ @include height($value);
187
+ }
188
+
189
+ #{VAR.$parent-selector} .min-w-#{$key} {
190
+ @include min-width($value);
191
+ }
192
+ #{VAR.$parent-selector} .min-h-#{$key} {
193
+ @include min-height($value);
194
+ }
195
+ #{VAR.$parent-selector} .max-w-#{$key} {
196
+ @include max-width($value);
197
+ }
198
+ #{VAR.$parent-selector} .max-h-#{$key} {
199
+ @include max-height($value);
200
+ }
77
201
  }
78
202
 
79
203
  // Pixel widths based on spacing scale
80
204
  @each $breakpoint, $width in VAR.$breakpoints {
205
+ #{VAR.$parent-selector} .w-#{$breakpoint} {
206
+ @include width($width);
207
+ }
208
+ #{VAR.$parent-selector} .min-w-#{$breakpoint} {
209
+ @include min-width($width);
210
+ }
211
+ #{VAR.$parent-selector} .max-w-#{$breakpoint} {
212
+ @include max-width($width);
213
+ }
81
214
 
82
- .w-#{$breakpoint} { @include width($width); }
83
- .min-w-#{$breakpoint} { @include min-width($width); }
84
- .max-w-#{$breakpoint} { @include max-width($width); }
85
-
86
-
87
- .w-auto\@#{$breakpoint} { @include w-auto; }
88
- .w-full\@#{$breakpoint} { @include w-full; }
89
- .h-auto\@#{$breakpoint} { @include h-auto; }
90
- .h-full\@#{$breakpoint} { @include h-full; }
91
- .w-min\@#{$breakpoint}{ @include w-min;}
92
- .h-min\@#{$breakpoint}{ @include h-min;}
93
- .w-fit\@#{$breakpoint}{ @include w-fit;}
94
- .h-fit\@#{$breakpoint}{ @include h-fit;}
95
-
96
- @include MQ.media-up ($breakpoint) {
215
+ #{VAR.$parent-selector} .w-auto\@#{$breakpoint} {
216
+ @include w-auto;
217
+ }
218
+ #{VAR.$parent-selector} .w-full\@#{$breakpoint} {
219
+ @include w-full;
220
+ }
221
+ #{VAR.$parent-selector} .h-auto\@#{$breakpoint} {
222
+ @include h-auto;
223
+ }
224
+ #{VAR.$parent-selector} .h-full\@#{$breakpoint} {
225
+ @include h-full;
226
+ }
227
+ #{VAR.$parent-selector} .w-min\@#{$breakpoint} {
228
+ @include w-min;
229
+ }
230
+ #{VAR.$parent-selector} .h-min\@#{$breakpoint} {
231
+ @include h-min;
232
+ }
233
+ #{VAR.$parent-selector} .w-fit\@#{$breakpoint} {
234
+ @include w-fit;
235
+ }
236
+ #{VAR.$parent-selector} .h-fit\@#{$breakpoint} {
237
+ @include h-fit;
238
+ }
239
+
240
+ @include MQ.media-up($breakpoint) {
97
241
  // Generate utilities from spacing map
98
242
  @each $i in VAR.$percentages {
99
- .w-#{$i}p\@#{$breakpoint} { @include width-percent($i); }
100
- .h-#{$i}p\@#{$breakpoint} { @include height-percent($i); }
101
- .min-w-#{$i}p\@#{$breakpoint} { @include min-width-percent($i); }
102
- .min-h-#{$i}p\@#{$breakpoint} { @include min-height-percent($i); }
103
- .max-w-#{$i}p\@#{$breakpoint} { @include max-width-percent($i); }
104
- .max-h-#{$i}p\@#{$breakpoint} { @include max-height-percent($i); }
243
+ #{VAR.$parent-selector} .w-#{$i}p\@#{$breakpoint},
244
+ #{VAR.$parent-selector} .hover\:w-#{$i}p\@#{$breakpoint}:hover,
245
+ #{VAR.$parent-selector} .group:hover .group-hover\:w-#{$i}p\@#{$breakpoint} {
246
+ @include width-percent($i);
247
+ }
248
+ #{VAR.$parent-selector} .h-#{$i}p\@#{$breakpoint},
249
+ #{VAR.$parent-selector} .hover\:h-#{$i}p\@#{$breakpoint}:hover,
250
+ #{VAR.$parent-selector} .group:hover .group-hover\:h-#{$i}p\@#{$breakpoint} {
251
+ @include height-percent($i);
252
+ }
253
+
254
+ #{VAR.$parent-selector} .min-w-#{$i}p\@#{$breakpoint} {
255
+ @include min-width-percent($i);
256
+ }
257
+ #{VAR.$parent-selector} .min-h-#{$i}p\@#{$breakpoint} {
258
+ @include min-height-percent($i);
259
+ }
260
+ #{VAR.$parent-selector} .max-w-#{$i}p\@#{$breakpoint} {
261
+ @include max-width-percent($i);
262
+ }
263
+ #{VAR.$parent-selector} .max-h-#{$i}p\@#{$breakpoint} {
264
+ @include max-height-percent($i);
265
+ }
105
266
  }
106
267
 
107
268
  @each $key, $value in VAR.$spacings {
108
- .w-#{$key}\@#{$breakpoint} { @include width($value); }
109
- .h-#{$key}\@#{$breakpoint} { @include height($value); }
110
- .min-w-#{$key}\@#{$breakpoint} { @include min-width($value); }
111
- .min-h-#{$key}\@#{$breakpoint} { @include min-height($value); }
112
- .max-w-#{$key}\@#{$breakpoint} { @include max-width($value); }
113
- .max-h-#{$key}\@#{$breakpoint} { @include max-height($value); }
269
+ #{VAR.$parent-selector} .w-#{$key}\@#{$breakpoint},
270
+ #{VAR.$parent-selector} .hover\:w-#{$key}\@#{$breakpoint}:hover,
271
+ #{VAR.$parent-selector} .group:hover .group-hover\:w-#{$key}\@#{$breakpoint} {
272
+ @include width($value);
273
+ }
274
+ #{VAR.$parent-selector} .h-#{$key}\@#{$breakpoint},
275
+ #{VAR.$parent-selector} .hover\:h-#{$key}\@#{$breakpoint}:hover,
276
+ #{VAR.$parent-selector} .group:hover .group-hover\:h-#{$key}\@#{$breakpoint} {
277
+ @include height($value);
278
+ }
279
+
280
+ #{VAR.$parent-selector} .min-w-#{$key}\@#{$breakpoint} {
281
+ @include min-width($value);
282
+ }
283
+ #{VAR.$parent-selector} .min-h-#{$key}\@#{$breakpoint} {
284
+ @include min-height($value);
285
+ }
286
+ #{VAR.$parent-selector} .max-w-#{$key}\@#{$breakpoint} {
287
+ @include max-width($value);
288
+ }
289
+ #{VAR.$parent-selector} .max-h-#{$key}\@#{$breakpoint} {
290
+ @include max-height($value);
291
+ }
114
292
  }
115
293
  }
116
294
  }