@nuvoui/core 1.2.5 → 1.2.7

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 (42) hide show
  1. package/README.md +2 -2
  2. package/dist/nuvoui.css +22277 -22831
  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 +2 -2
  7. package/src/styles/abstracts/_config.scss +124 -56
  8. package/src/styles/abstracts/_functions.scss +21 -61
  9. package/src/styles/base/_base.scss +67 -59
  10. package/src/styles/base/_reset.scss +11 -8
  11. package/src/styles/index.scss +28 -10
  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.json +482 -0
  16. package/src/styles/mixins-map.scss +1 -1
  17. package/src/styles/themes/_theme.scss +114 -94
  18. package/src/styles/utilities/_alignment.scss +40 -13
  19. package/src/styles/utilities/_animations.scss +165 -105
  20. package/src/styles/utilities/_backdrop-filters.scss +156 -107
  21. package/src/styles/utilities/_borders.scss +329 -143
  22. package/src/styles/utilities/_colors.scss +24 -25
  23. package/src/styles/utilities/_container-queries.scss +7 -7
  24. package/src/styles/utilities/_cursor.scss +10 -17
  25. package/src/styles/utilities/_display.scss +234 -85
  26. package/src/styles/utilities/_helpers.scss +5 -5
  27. package/src/styles/utilities/_media-queries.scss +24 -27
  28. package/src/styles/utilities/_opacity.scss +15 -31
  29. package/src/styles/utilities/_position.scss +129 -66
  30. package/src/styles/utilities/_shadows.scss +25 -31
  31. package/src/styles/utilities/_sizing.scss +269 -108
  32. package/src/styles/utilities/_spacing.scss +254 -156
  33. package/src/styles/utilities/_tooltips.scss +35 -31
  34. package/src/styles/utilities/_transforms.scss +179 -156
  35. package/src/styles/utilities/_transitions.scss +134 -68
  36. package/src/styles/utilities/_typography.scss +341 -127
  37. package/src/styles/utilities/_z-index.scss +79 -49
  38. package/src/styles/abstracts/_index.scss +0 -1
  39. package/src/styles/base/_index.scss +0 -2
  40. package/src/styles/layouts/_index.scss +0 -3
  41. package/src/styles/themes/_index.scss +0 -1
  42. package/src/styles/utilities/_index.scss +0 -23
@@ -1,133 +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 '../abstracts/functions' as FN;
7
- @use './container-queries' as Q;
8
- @use './media-queries' as MQ;
9
-
10
- @mixin width($value) { width: FN.fix-units($value); }
11
- @mixin height($value) { height: FN.fix-units($value); }
12
- @mixin min-width($value) { min-width: FN.fix-units($value); }
13
- @mixin min-height($value) { min-height: FN.fix-units($value); }
14
- @mixin max-width($value) { max-width: FN.fix-units($value); }
15
- @mixin max-height($value) { max-height: FN.fix-units($value); }
16
- .widthx { @include width(100%); }
17
- @mixin width-percent($i) { width: str.unquote($i + '%'); }
18
- @mixin height-percent($i) { height: str.unquote($i + '%'); }
19
- @mixin min-width-percent($i) { min-width: str.unquote($i + '%'); }
20
- @mixin min-height-percent($i) { min-height: str.unquote($i + '%'); }
21
- @mixin max-width-percent($i) { max-width: str.unquote($i + '%'); }
22
- @mixin max-height-percent($i) { max-height: str.unquote($i + '%'); }
23
-
24
- @mixin w-auto { @include width(auto);}
25
- @mixin w-full { @include width(100%);}
26
- @mixin h-auto { @include height(auto);}
27
- @mixin h-full { @include height(100%);}
28
- @mixin w-max { @include width(max-content);}
29
- @mixin h-max { @include height(max-content);}
30
- @mixin w-min { @include width(min-content);}
31
- @mixin h-min { @include height(min-content);}
32
- @mixin w-fit { @include width(fit-content);}
33
- @mixin h-fit { @include height(fit-content);}
34
- @mixin min-w-full { @include min-width(100%);}
35
- @mixin max-w-full { @include max-width(100%);}
36
- @mixin min-h-full { @include min-height(100%);}
37
- @mixin max-h-full { @include max-height(100%);}
38
-
39
- @mixin w-screen { width: 100vw; }
40
- @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
+ }
41
96
 
42
97
  @if VAR.$generate-utility-classes {
43
- .w-screen { @include w-screen; }
44
- .h-screen { @include h-screen; }
45
-
46
- .w-auto { @include w-auto; }
47
- .w-full { @include w-full; }
48
- .h-auto { @include h-auto; }
49
- .h-full { @include h-full; }
50
- .w-min { @include w-min;}
51
- .h-min { @include h-min;}
52
- .w-fit { @include w-fit;}
53
- .h-fit { @include h-fit;}
54
-
55
- .min-w-full { @include min-w-full; }
56
- .max-w-full { @include max-w-full; }
57
- .min-h-full { @include min-h-full; }
58
- .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
+ }
59
153
 
60
154
  // Percentage widths
61
155
  @each $i in VAR.$percentages {
62
- .w-#{$i}p { @include width-percent($i); }
63
- .h-#{$i}p { @include height-percent($i); }
64
- .min-w-#{$i}p { @include min-width-percent($i); }
65
- .min-h-#{$i}p { @include min-height-percent($i); }
66
- .max-w-#{$i}p { @include max-width-percent($i); }
67
- .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
+ }
68
174
  }
69
175
 
70
176
  // Generate utilities from spacing map
71
177
  @each $key, $value in VAR.$spacings {
72
- .w-#{$key},
73
- .hover\:w-#{$key}:hover,
74
- .group:hover .group-hover\:w-#{$key} { @include width($value); }
75
- .h-#{$key},
76
- .hover\:h-#{$key}:hover,
77
- .group:hover .group-hover\:h-#{$key} { @include 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
+ }
78
188
 
79
- .min-w-#{$key} { @include min-width($value); }
80
- .min-h-#{$key} { @include min-height($value); }
81
- .max-w-#{$key} { @include max-width($value); }
82
- .max-h-#{$key} { @include max-height($value); }
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
+ }
83
201
  }
84
202
 
85
203
  // Pixel widths based on spacing scale
86
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
+ }
87
214
 
88
- .w-#{$breakpoint} { @include width($width); }
89
- .min-w-#{$breakpoint} { @include min-width($width); }
90
- .max-w-#{$breakpoint} { @include max-width($width); }
91
-
92
-
93
- .w-auto\@#{$breakpoint} { @include w-auto; }
94
- .w-full\@#{$breakpoint} { @include w-full; }
95
- .h-auto\@#{$breakpoint} { @include h-auto; }
96
- .h-full\@#{$breakpoint} { @include h-full; }
97
- .w-min\@#{$breakpoint}{ @include w-min;}
98
- .h-min\@#{$breakpoint}{ @include h-min;}
99
- .w-fit\@#{$breakpoint}{ @include w-fit;}
100
- .h-fit\@#{$breakpoint}{ @include h-fit;}
101
-
102
- @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) {
103
241
  // Generate utilities from spacing map
104
242
  @each $i in VAR.$percentages {
105
- .w-#{$i}\@#{$breakpoint},
106
- .hover\:w-#{$i}\@#{$breakpoint}:hover,
107
- .group:hover .group-hover\:w-#{$i}\@#{$breakpoint} { @include width($i); }
108
- .h-#{$i}\@#{$breakpoint},
109
- .hover\:h-#{$i}\@#{$breakpoint}:hover,
110
- .group:hover .group-hover\:h-#{$i}\@#{$breakpoint} { @include height($i); }
111
-
112
- .min-w-#{$i}p\@#{$breakpoint} { @include min-width-percent($i); }
113
- .min-h-#{$i}p\@#{$breakpoint} { @include min-height-percent($i); }
114
- .max-w-#{$i}p\@#{$breakpoint} { @include max-width-percent($i); }
115
- .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
+ }
116
266
  }
117
267
 
118
268
  @each $key, $value in VAR.$spacings {
119
- .w-#{$key}\@#{$breakpoint},
120
- .hover\:w-#{$key}\@#{$breakpoint}:hover,
121
- .group:hover .group-hover\:w-#{$key}\@#{$breakpoint} { @include width($value); }
122
- .h-#{$key}\@#{$breakpoint},
123
- .hover\:h-#{$key}\@#{$breakpoint}:hover,
124
- .group:hover .group-hover\:h-#{$key}\@#{$breakpoint} { @include height($value); }
125
-
126
-
127
- .min-w-#{$key}\@#{$breakpoint} { @include min-width($value); }
128
- .min-h-#{$key}\@#{$breakpoint} { @include min-height($value); }
129
- .max-w-#{$key}\@#{$breakpoint} { @include max-width($value); }
130
- .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
+ }
131
292
  }
132
293
  }
133
294
  }