@nuvoui/core 1.3.5 → 1.4.0

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