@nuvoui/core 1.2.0 → 1.2.1

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.
@@ -32,65 +32,67 @@
32
32
  @mixin w-screen { & { width: 100vw; } }
33
33
  @mixin h-screen { & { height: 100dvh; } }
34
34
 
35
- .w-screen { @include w-screen; }
36
- .h-screen { @include h-screen; }
35
+ @if VAR.$generate-utility-classes {
36
+ .w-screen { @include w-screen; }
37
+ .h-screen { @include h-screen; }
37
38
 
38
- // Width utilities need :not(.flex) to avoid conflicts with flex child sizing
39
- :not(.flex)>.w-auto { @include w-auto; }
40
- :not(.flex)>.w-full { @include w-full; }
39
+ // Width utilities need :not(.flex) to avoid conflicts with flex child sizing
40
+ :not(.flex)>.w-auto { @include w-auto; }
41
+ :not(.flex)>.w-full { @include w-full; }
41
42
 
42
- .h-auto { @include h-auto; }
43
- .h-full { @include h-full; }
44
- .min-w-full { @include min-w-full; }
45
- .max-w-full { @include max-w-full; }
46
- .min-h-full { @include min-h-full; }
47
- .max-h-full { @include max-h-full; }
43
+ .h-auto { @include h-auto; }
44
+ .h-full { @include h-full; }
45
+ .min-w-full { @include min-w-full; }
46
+ .max-w-full { @include max-w-full; }
47
+ .min-h-full { @include min-h-full; }
48
+ .max-h-full { @include max-h-full; }
48
49
 
49
- // Percentage widths
50
- @each $i in VAR.$percentages {
51
- .w-#{$i}p { @include width-percent($i); }
52
- .h-#{$i}p { @include height-percent($i); }
53
- .min-w-#{$i}p { @include min-width-percent($i); }
54
- .min-h-#{$i}p { @include min-height-percent($i); }
55
- .max-w-#{$i}p { @include max-width-percent($i); }
56
- .max-h-#{$i}p { @include max-height-percent($i); }
57
- }
50
+ // Percentage widths
51
+ @each $i in VAR.$percentages {
52
+ .w-#{$i}p { @include width-percent($i); }
53
+ .h-#{$i}p { @include height-percent($i); }
54
+ .min-w-#{$i}p { @include min-width-percent($i); }
55
+ .min-h-#{$i}p { @include min-height-percent($i); }
56
+ .max-w-#{$i}p { @include max-width-percent($i); }
57
+ .max-h-#{$i}p { @include max-height-percent($i); }
58
+ }
58
59
 
59
- // Generate utilities from spacing map
60
- @each $key, $value in VAR.$spacings {
61
- .w-#{$key} { @include width($value); }
62
- .h-#{$key} { @include height($value); }
63
- .min-w-#{$key} { @include min-width($value); }
64
- .min-h-#{$key} { @include min-height($value); }
65
- .max-w-#{$key} { @include max-width($value); }
66
- .max-h-#{$key} { @include max-height($value); }
67
- }
60
+ // Generate utilities from spacing map
61
+ @each $key, $value in VAR.$spacings {
62
+ .w-#{$key} { @include width($value); }
63
+ .h-#{$key} { @include height($value); }
64
+ .min-w-#{$key} { @include min-width($value); }
65
+ .min-h-#{$key} { @include min-height($value); }
66
+ .max-w-#{$key} { @include max-width($value); }
67
+ .max-h-#{$key} { @include max-height($value); }
68
+ }
68
69
 
69
- // Pixel widths based on spacing scale
70
- @each $breakpoint, $width in VAR.$breakpoints {
70
+ // Pixel widths based on spacing scale
71
+ @each $breakpoint, $width in VAR.$breakpoints {
71
72
 
72
- .w-#{$breakpoint} { @include width($width); }
73
- .min-w-#{$breakpoint} { @include min-width($width); }
74
- .max-w-#{$breakpoint} { @include max-width($width); }
73
+ .w-#{$breakpoint} { @include width($width); }
74
+ .min-w-#{$breakpoint} { @include min-width($width); }
75
+ .max-w-#{$breakpoint} { @include max-width($width); }
75
76
 
76
- @include MQ.media-up ($breakpoint) {
77
- // Generate utilities from spacing map
78
- @each $i in VAR.$percentages {
79
- .w-#{$i}p\@#{$breakpoint} { @include width-percent($i); }
80
- .h-#{$i}p\@#{$breakpoint} { @include height-percent($i); }
81
- .min-w-#{$i}p\@#{$breakpoint} { @include min-width-percent($i); }
82
- .min-h-#{$i}p\@#{$breakpoint} { @include min-height-percent($i); }
83
- .max-w-#{$i}p\@#{$breakpoint} { @include max-width-percent($i); }
84
- .max-h-#{$i}p\@#{$breakpoint} { @include max-height-percent($i); }
85
- }
77
+ @include MQ.media-up ($breakpoint) {
78
+ // Generate utilities from spacing map
79
+ @each $i in VAR.$percentages {
80
+ .w-#{$i}p\@#{$breakpoint} { @include width-percent($i); }
81
+ .h-#{$i}p\@#{$breakpoint} { @include height-percent($i); }
82
+ .min-w-#{$i}p\@#{$breakpoint} { @include min-width-percent($i); }
83
+ .min-h-#{$i}p\@#{$breakpoint} { @include min-height-percent($i); }
84
+ .max-w-#{$i}p\@#{$breakpoint} { @include max-width-percent($i); }
85
+ .max-h-#{$i}p\@#{$breakpoint} { @include max-height-percent($i); }
86
+ }
86
87
 
87
- @each $key, $value in VAR.$spacings {
88
- .w-#{$key}\@#{$breakpoint} { @include width($value); }
89
- .h-#{$key}\@#{$breakpoint} { @include height($value); }
90
- .min-w-#{$key}\@#{$breakpoint} { @include min-width($value); }
91
- .min-h-#{$key}\@#{$breakpoint} { @include min-height($value); }
92
- .max-w-#{$key}\@#{$breakpoint} { @include max-width($value); }
93
- .max-h-#{$key}\@#{$breakpoint} { @include max-height($value); }
88
+ @each $key, $value in VAR.$spacings {
89
+ .w-#{$key}\@#{$breakpoint} { @include width($value); }
90
+ .h-#{$key}\@#{$breakpoint} { @include height($value); }
91
+ .min-w-#{$key}\@#{$breakpoint} { @include min-width($value); }
92
+ .min-h-#{$key}\@#{$breakpoint} { @include min-height($value); }
93
+ .max-w-#{$key}\@#{$breakpoint} { @include max-width($value); }
94
+ .max-h-#{$key}\@#{$breakpoint} { @include max-height($value); }
95
+ }
94
96
  }
95
97
  }
96
98
  }
@@ -308,91 +308,93 @@
308
308
  */
309
309
  @mixin gap-y($val) { $val: format-unit-value($val); row-gap: $val; }
310
310
 
311
- // -----------------------------------------------
312
- // AUTO MARGIN UTILITY CLASSES
313
- // -----------------------------------------------
314
-
315
- .mx-auto { @include mx-auto; }
316
- .ml-auto { @include ml-auto; }
317
- .mr-auto { @include mr-auto; }
318
-
319
- // -----------------------------------------------
320
- // GAP AUTO CLASS
321
- // -----------------------------------------------
322
-
323
- .gap-auto { gap: auto; }
324
-
325
- // -----------------------------------------------
326
- // SPACING CLASSES
327
- // -----------------------------------------------
328
-
329
- @each $key, $value in $spacings {
330
- // Padding classes
331
- .p-#{$key} { @include p($value); }
332
- .px-#{$key} { @include px($value); }
333
- .py-#{$key} { @include py($value); }
334
- .pt-#{$key} { @include pt($value); }
335
- .pr-#{$key} { @include pr($value); }
336
- .pb-#{$key} { @include pb($value); }
337
- .pl-#{$key} { @include pl($value); }
338
-
339
- // Margin classes
340
- .m-#{$key} { @include m($value); }
341
- .mx-#{$key} { @include mx($value); }
342
- .my-#{$key} { @include my($value); }
343
- .mt-#{$key} { @include mt($value); }
344
- .mr-#{$key} { @include mr($value); }
345
- .mb-#{$key} { @include mb($value); }
346
- .ml-#{$key} { @include ml($value); }
347
-
348
- // Gap classes
349
- .gap-#{$key} { @include gap($value); }
350
- .gap-x-#{$key} { @include gap-x($value); }
351
- .gap-y-#{$key} { @include gap-y($value); }
352
-
353
- // Space classes
354
- .space-x-#{$key} { @include space-x($value); }
355
- .space-y-#{$key} { @include space-y($value); }
356
- }
357
-
311
+ @if $generate-utility-classes {
312
+ // -----------------------------------------------
313
+ // AUTO MARGIN UTILITY CLASSES
314
+ // -----------------------------------------------
315
+
316
+ .mx-auto { @include mx-auto; }
317
+ .ml-auto { @include ml-auto; }
318
+ .mr-auto { @include mr-auto; }
319
+
320
+ // -----------------------------------------------
321
+ // GAP AUTO CLASS
322
+ // -----------------------------------------------
323
+
324
+ .gap-auto { gap: auto; }
325
+
326
+ // -----------------------------------------------
327
+ // SPACING CLASSES
328
+ // -----------------------------------------------
329
+
330
+ @each $key, $value in $spacings {
331
+ // Padding classes
332
+ .p-#{$key} { @include p($value); }
333
+ .px-#{$key} { @include px($value); }
334
+ .py-#{$key} { @include py($value); }
335
+ .pt-#{$key} { @include pt($value); }
336
+ .pr-#{$key} { @include pr($value); }
337
+ .pb-#{$key} { @include pb($value); }
338
+ .pl-#{$key} { @include pl($value); }
339
+
340
+ // Margin classes
341
+ .m-#{$key} { @include m($value); }
342
+ .mx-#{$key} { @include mx($value); }
343
+ .my-#{$key} { @include my($value); }
344
+ .mt-#{$key} { @include mt($value); }
345
+ .mr-#{$key} { @include mr($value); }
346
+ .mb-#{$key} { @include mb($value); }
347
+ .ml-#{$key} { @include ml($value); }
348
+
349
+ // Gap classes
350
+ .gap-#{$key} { @include gap($value); }
351
+ .gap-x-#{$key} { @include gap-x($value); }
352
+ .gap-y-#{$key} { @include gap-y($value); }
353
+
354
+ // Space classes
355
+ .space-x-#{$key} { @include space-x($value); }
356
+ .space-y-#{$key} { @include space-y($value); }
357
+ }
358
358
 
359
- // -----------------------------------------------
360
- // RESPONSIVE SPACING CLASSES
361
- // -----------------------------------------------
362
359
 
363
- @each $breakpoint, $width in $breakpoints {
364
- @media (min-width: #{$width}) {
365
- .mx-auto\@#{$breakpoint} { @include mx-auto; }
366
- .ml-auto\@#{$breakpoint} { @include ml-auto; }
367
- .mr-auto\@#{$breakpoint} { @include mr-auto; }
368
-
369
- // Generate utilities from spacing map
370
- @each $key, $value in $spacings {
371
- // Padding classes
372
- .p-#{$key}\@#{$breakpoint} { @include p($value); }
373
- .px-#{$key}\@#{$breakpoint} { @include px($value); }
374
- .py-#{$key}\@#{$breakpoint} { @include py($value); }
375
- .pt-#{$key}\@#{$breakpoint} { @include pt($value); }
376
- .pr-#{$key}\@#{$breakpoint} { @include pr($value); }
377
- .pb-#{$key}\@#{$breakpoint} { @include pb($value); }
378
- .pl-#{$key}\@#{$breakpoint} { @include pl($value); }
379
-
380
- // Margin classes
381
- .m-#{$key}\@#{$breakpoint} { @include m($value); }
382
- .mx-#{$key}\@#{$breakpoint} { @include mx($value); }
383
- .my-#{$key}\@#{$breakpoint} { @include my($value); }
384
- .mt-#{$key}\@#{$breakpoint} { @include mt($value); }
385
- .mr-#{$key}\@#{$breakpoint} { @include mr($value); }
386
- .mb-#{$key}\@#{$breakpoint} { @include mb($value); }
387
- .ml-#{$key}\@#{$breakpoint} { @include ml($value); }
388
-
389
- .gap-#{$key}\@#{$breakpoint} { gap: $value; }
390
- .gap-x-#{$key}\@#{$breakpoint} { column-gap: $value; }
391
- .gap-y-#{$key}\@#{$breakpoint} { row-gap: $value; }
392
-
393
- // Space classes
394
- .space-x-#{$key}\@#{$breakpoint} { @include space-x($value); }
395
- .space-y-#{$key}\@#{$breakpoint} { @include space-y($value); }
396
- }
397
- }
360
+ // -----------------------------------------------
361
+ // RESPONSIVE SPACING CLASSES
362
+ // -----------------------------------------------
363
+
364
+ @each $breakpoint, $width in $breakpoints {
365
+ @media (min-width: #{$width}) {
366
+ .mx-auto\@#{$breakpoint} { @include mx-auto; }
367
+ .ml-auto\@#{$breakpoint} { @include ml-auto; }
368
+ .mr-auto\@#{$breakpoint} { @include mr-auto; }
369
+
370
+ // Generate utilities from spacing map
371
+ @each $key, $value in $spacings {
372
+ // Padding classes
373
+ .p-#{$key}\@#{$breakpoint} { @include p($value); }
374
+ .px-#{$key}\@#{$breakpoint} { @include px($value); }
375
+ .py-#{$key}\@#{$breakpoint} { @include py($value); }
376
+ .pt-#{$key}\@#{$breakpoint} { @include pt($value); }
377
+ .pr-#{$key}\@#{$breakpoint} { @include pr($value); }
378
+ .pb-#{$key}\@#{$breakpoint} { @include pb($value); }
379
+ .pl-#{$key}\@#{$breakpoint} { @include pl($value); }
380
+
381
+ // Margin classes
382
+ .m-#{$key}\@#{$breakpoint} { @include m($value); }
383
+ .mx-#{$key}\@#{$breakpoint} { @include mx($value); }
384
+ .my-#{$key}\@#{$breakpoint} { @include my($value); }
385
+ .mt-#{$key}\@#{$breakpoint} { @include mt($value); }
386
+ .mr-#{$key}\@#{$breakpoint} { @include mr($value); }
387
+ .mb-#{$key}\@#{$breakpoint} { @include mb($value); }
388
+ .ml-#{$key}\@#{$breakpoint} { @include ml($value); }
389
+
390
+ .gap-#{$key}\@#{$breakpoint} { gap: $value; }
391
+ .gap-x-#{$key}\@#{$breakpoint} { column-gap: $value; }
392
+ .gap-y-#{$key}\@#{$breakpoint} { row-gap: $value; }
393
+
394
+ // Space classes
395
+ .space-x-#{$key}\@#{$breakpoint} { @include space-x($value); }
396
+ .space-y-#{$key}\@#{$breakpoint} { @include space-y($value); }
397
+ }
398
+ }
399
+ }
398
400
  }
@@ -42,18 +42,13 @@
42
42
  transition-delay: $time;
43
43
  }
44
44
 
45
- // Base transition
46
- .transition {
47
- @include transition;
48
- }
49
-
50
- // Property-specific transitions
51
- .transition-none { @include transition-none; }
52
- .transition-all { @include transition-all; }
53
- .transition-colors { @include transition-colors; }
54
- .transition-opacity { @include transition-opacity; }
55
- .transition-shadow { @include transition-shadow; }
56
- .transition-transform { @include transition-transform; }
45
+ // Timing functions
46
+ $timing-functions: (
47
+ 'linear': linear,
48
+ 'in': cubic-bezier(0.4, 0, 1, 1),
49
+ 'out': cubic-bezier(0, 0, 0.2, 1),
50
+ 'in-out': cubic-bezier(0.4, 0, 0.2, 1),
51
+ );
57
52
 
58
53
  // Durations
59
54
  $durations: (
@@ -68,31 +63,6 @@ $durations: (
68
63
  '1000': 1000ms,
69
64
  );
70
65
 
71
- @each $name, $value in $durations {
72
- .duration-#{$name} {
73
- @include duration($value);
74
- }
75
- }
76
-
77
- // Timing functions
78
- $timing-functions: (
79
- 'linear': linear,
80
- 'in': cubic-bezier(0.4, 0, 1, 1),
81
- 'out': cubic-bezier(0, 0, 0.2, 1),
82
- 'in-out': cubic-bezier(0.4, 0, 0.2, 1),
83
- );
84
-
85
- @each $name, $value in $timing-functions {
86
- .ease-#{$name} {
87
- transition-timing-function: $value;
88
- }
89
- }
90
-
91
- // Specific timing function classes
92
- .ease-linear { @include ease-linear; }
93
- .ease-in { @include ease-in; }
94
- .ease-out { @include ease-out; }
95
- .ease-in-out { @include ease-in-out; }
96
66
 
97
67
  // Delays
98
68
  $delays: (
@@ -107,45 +77,79 @@ $delays: (
107
77
  '1000': 1000ms,
108
78
  );
109
79
 
110
- @each $name, $value in $delays {
111
- .delay-#{$name} {
112
- @include delay($value);
80
+
81
+ @if $generate-utility-classes {
82
+ // Base transition
83
+ .transition {
84
+ @include transition;
113
85
  }
114
- }
115
86
 
116
- // Responsive variants
117
- @each $breakpoint, $width in $breakpoints {
118
- @media (min-width: #{$width}) {
119
- // Base transition
120
- .transition\@#{$breakpoint} {
121
- @include transition;
87
+ // Property-specific transitions
88
+ .transition-none { @include transition-none; }
89
+ .transition-all { @include transition-all; }
90
+ .transition-colors { @include transition-colors; }
91
+ .transition-opacity { @include transition-opacity; }
92
+ .transition-shadow { @include transition-shadow; }
93
+ .transition-transform { @include transition-transform; }
94
+
95
+ @each $name, $value in $durations {
96
+ .duration-#{$name} {
97
+ @include duration($value);
122
98
  }
123
-
124
- // Property-specific transitions
125
- .transition-none\@#{$breakpoint} { @include transition-none; }
126
- .transition-all\@#{$breakpoint} { @include transition-all; }
127
- .transition-colors\@#{$breakpoint} { @include transition-colors; }
128
- .transition-opacity\@#{$breakpoint} { @include transition-opacity; }
129
- .transition-shadow\@#{$breakpoint} { @include transition-shadow; }
130
- .transition-transform\@#{$breakpoint} { @include transition-transform; }
131
-
132
- // Duration responsive variants
133
- @each $name, $value in $durations {
134
- .duration-#{$name}\@#{$breakpoint} {
135
- @include duration($value);
136
- }
99
+ }
100
+
101
+ @each $name, $value in $timing-functions {
102
+ .ease-#{$name} {
103
+ transition-timing-function: $value;
104
+ }
105
+ }
106
+
107
+ // Specific timing function classes
108
+ .ease-linear { @include ease-linear; }
109
+ .ease-in { @include ease-in; }
110
+ .ease-out { @include ease-out; }
111
+ .ease-in-out { @include ease-in-out; }
112
+
113
+ @each $name, $value in $delays {
114
+ .delay-#{$name} {
115
+ @include delay($value);
137
116
  }
138
-
139
- // Timing function responsive variants
140
- .ease-linear\@#{$breakpoint} { @include ease-linear; }
141
- .ease-in\@#{$breakpoint} { @include ease-in; }
142
- .ease-out\@#{$breakpoint} { @include ease-out; }
143
- .ease-in-out\@#{$breakpoint} { @include ease-in-out; }
144
-
145
- // Delay responsive variants
146
- @each $name, $value in $delays {
147
- .delay-#{$name}\@#{$breakpoint} {
148
- @include delay($value);
117
+ }
118
+
119
+ // Responsive variants
120
+ @each $breakpoint, $width in $breakpoints {
121
+ @media (min-width: #{$width}) {
122
+ // Base transition
123
+ .transition\@#{$breakpoint} {
124
+ @include transition;
125
+ }
126
+
127
+ // Property-specific transitions
128
+ .transition-none\@#{$breakpoint} { @include transition-none; }
129
+ .transition-all\@#{$breakpoint} { @include transition-all; }
130
+ .transition-colors\@#{$breakpoint} { @include transition-colors; }
131
+ .transition-opacity\@#{$breakpoint} { @include transition-opacity; }
132
+ .transition-shadow\@#{$breakpoint} { @include transition-shadow; }
133
+ .transition-transform\@#{$breakpoint} { @include transition-transform; }
134
+
135
+ // Duration responsive variants
136
+ @each $name, $value in $durations {
137
+ .duration-#{$name}\@#{$breakpoint} {
138
+ @include duration($value);
139
+ }
140
+ }
141
+
142
+ // Timing function responsive variants
143
+ .ease-linear\@#{$breakpoint} { @include ease-linear; }
144
+ .ease-in\@#{$breakpoint} { @include ease-in; }
145
+ .ease-out\@#{$breakpoint} { @include ease-out; }
146
+ .ease-in-out\@#{$breakpoint} { @include ease-in-out; }
147
+
148
+ // Delay responsive variants
149
+ @each $name, $value in $delays {
150
+ .delay-#{$name}\@#{$breakpoint} {
151
+ @include delay($value);
152
+ }
149
153
  }
150
154
  }
151
155
  }
@@ -102,10 +102,6 @@
102
102
  @mixin whitespace-pre-wrap { white-space: pre-wrap; }
103
103
 
104
104
 
105
-
106
-
107
-
108
-
109
105
  @mixin responsive-typography($breakpoint: null) {
110
106
  $suffix: if($breakpoint, "\\@#{$breakpoint}", "");
111
107
 
@@ -157,25 +153,26 @@
157
153
  .truncate-3#{$suffix} { @include truncate-lines(3); }
158
154
  .truncate-4#{$suffix} { @include truncate-lines(4); }
159
155
  .truncate-5#{$suffix} { @include truncate-lines(5); }
160
-
161
156
  }
162
157
 
163
- @include responsive-typography;
164
- .break-normal { @include break-normal; }
165
- .break-words { @include break-words; }
166
- .break-all { @include break-all; }
167
- .whitespace-normal { @include whitespace-normal; }
168
- .whitespace-nowrap { @include whitespace-nowrap; }
169
- .whitespace-pre { @include whitespace-pre; }
170
- .whitespace-pre-line { @include whitespace-pre-line; }
171
- .whitespace-pre-wrap { @include whitespace-pre-wrap; }
172
-
173
- @each $breakpoint, $width in VAR.$breakpoints {
174
- @media (min-width: #{$width}) {
175
- @each $size, $val in VAR.$font-sizes {
176
- .text-#{$size}\@#{$breakpoint} { @include text-size($size); }
177
- }
178
- @include responsive-typography($breakpoint);
179
- }
180
- }
158
+ @if VAR.$generate-utility-classes {
159
+ @include responsive-typography;
160
+ .break-normal { @include break-normal; }
161
+ .break-words { @include break-words; }
162
+ .break-all { @include break-all; }
163
+ .whitespace-normal { @include whitespace-normal; }
164
+ .whitespace-nowrap { @include whitespace-nowrap; }
165
+ .whitespace-pre { @include whitespace-pre; }
166
+ .whitespace-pre-line { @include whitespace-pre-line; }
167
+ .whitespace-pre-wrap { @include whitespace-pre-wrap; }
168
+
169
+ @each $breakpoint, $width in VAR.$breakpoints {
170
+ @media (min-width: #{$width}) {
171
+ @each $size, $val in VAR.$font-sizes {
172
+ .text-#{$size}\@#{$breakpoint} { @include text-size($size); }
173
+ }
174
+ @include responsive-typography($breakpoint);
175
+ }
176
+ }
181
177
 
178
+ }