@nuvoui/core 1.2.5 → 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 +21899 -22748
  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 +81 -47
  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.scss +1085 -1
  16. package/src/styles/themes/_theme.scss +127 -91
  17. package/src/styles/utilities/_alignment.scss +40 -13
  18. package/src/styles/utilities/_animations.scss +165 -105
  19. package/src/styles/utilities/_backdrop-filters.scss +111 -83
  20. package/src/styles/utilities/_borders.scss +329 -143
  21. package/src/styles/utilities/_colors.scss +24 -25
  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 +269 -108
  31. package/src/styles/utilities/_spacing.scss +254 -156
  32. package/src/styles/utilities/_tooltips.scss +35 -31
  33. package/src/styles/utilities/_transforms.scss +179 -156
  34. package/src/styles/utilities/_transitions.scss +134 -68
  35. package/src/styles/utilities/_typography.scss +341 -127
  36. package/src/styles/utilities/_z-index.scss +79 -49
  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 -23
@@ -2,24 +2,31 @@
2
2
  // Module: Grid | Grid Inline
3
3
  // Note: Gap utilities are defined in _spacing.scss
4
4
 
5
- @use 'sass:math';
6
- @use '../abstracts/functions' as FN;
7
- @use '../abstracts' as VAR;
5
+ @use "sass:math";
6
+ @use "../abstracts/functions" as FN;
7
+ @use "../abstracts/config" as VAR;
8
8
 
9
9
  /**
10
10
  * @description Establishes a grid container.
11
11
  */
12
- @mixin grid {display: grid;}
12
+ @mixin grid {
13
+ display: grid;
14
+ }
13
15
 
14
16
  /**
15
17
  * @description Establishes a inline-grid container.
16
18
  */
17
- @mixin grid-inline {display: inline-grid;}
19
+ @mixin grid-inline {
20
+ display: inline-grid;
21
+ }
18
22
 
19
23
  // Grid Template Mixins
20
- @mixin cols($count) {grid-template-columns: repeat($count, minmax(0, 1fr));}
21
- @mixin rows($count) {grid-template-rows: repeat($count, minmax(0, 1fr));}
22
-
24
+ @mixin cols($count) {
25
+ grid-template-columns: repeat($count, minmax(0, 1fr));
26
+ }
27
+ @mixin rows($count) {
28
+ grid-template-rows: repeat($count, minmax(0, 1fr));
29
+ }
23
30
 
24
31
  /**
25
32
  * @description Establishes a grid container with a specified number of columns.
@@ -41,49 +48,77 @@
41
48
  }
42
49
 
43
50
  // Auto-fit/fill Mixins
44
- @mixin auto-fit($min-width) {grid-template-columns: repeat(auto-fit, minmax($min-width, 1fr));}
45
- @mixin auto-fill($min-width) {grid-template-columns: repeat(auto-fill, minmax($min-width, 1fr));}
51
+ @mixin auto-fit($min-width) {
52
+ grid-template-columns: repeat(auto-fit, minmax($min-width, 1fr));
53
+ }
54
+ @mixin auto-fill($min-width) {
55
+ grid-template-columns: repeat(auto-fill, minmax($min-width, 1fr));
56
+ }
46
57
 
47
58
  // Grid Flow Mixins
48
- @mixin flow-in-row { grid-auto-flow: row; }
49
- @mixin flow-in-col { grid-auto-flow: column; }
50
- @mixin flow-dense-items { grid-auto-flow: dense; }
59
+ @mixin flow-in-row {
60
+ grid-auto-flow: row;
61
+ }
62
+ @mixin flow-in-col {
63
+ grid-auto-flow: column;
64
+ }
65
+ @mixin flow-dense-items {
66
+ grid-auto-flow: dense;
67
+ }
51
68
 
52
69
  // Grid Alignment Mixins
53
70
 
54
71
  // Alignment Classes
55
72
  $alignments: (
56
- 'start': start,
57
- 'end': end,
58
- 'center': center,
59
- 'stretch': stretch
73
+ "start": start,
74
+ "end": end,
75
+ "center": center,
76
+ "stretch": stretch,
60
77
  );
61
78
 
62
79
  /**
63
80
  * @description justify-items container.
64
81
  * @param {string} $value - The value for the justify-items property.
65
82
  */
66
- @mixin justify($value) {justify-items: $value;}
83
+ @mixin justify($value) {
84
+ justify-items: $value;
85
+ }
67
86
 
68
87
  /**
69
88
  * @description Establishes a align-items container.
70
89
  * @param {string} $value - The value for the align-items property.
71
90
  */
72
- @mixin align($value) {align-items: $value;}
91
+ @mixin align($value) {
92
+ align-items: $value;
93
+ }
73
94
 
74
95
  /**
75
96
  * @description Establishes a place-items container.
76
97
  * @param {string} $value - The value for the place-items property.
77
98
  */
78
- @mixin place($value) {place-items: $value;}
99
+ @mixin place($value) {
100
+ place-items: $value;
101
+ }
79
102
 
80
103
  // Grid Item Placement Mixins
81
- @mixin col-span($span) {grid-column: span $span / span $span;}
82
- @mixin row-span($span) {grid-row: span $span / span $span;}
83
- @mixin col-start($start) {grid-column-start: $start;}
84
- @mixin col-end($end) {grid-column-end: $end;}
85
- @mixin row-start($start) {grid-row-start: $start;}
86
- @mixin row-end($end) {grid-row-end: $end;}
104
+ @mixin col-span($span) {
105
+ grid-column: span $span / span $span;
106
+ }
107
+ @mixin row-span($span) {
108
+ grid-row: span $span / span $span;
109
+ }
110
+ @mixin col-start($start) {
111
+ grid-column-start: $start;
112
+ }
113
+ @mixin col-end($end) {
114
+ grid-column-end: $end;
115
+ }
116
+ @mixin row-start($start) {
117
+ grid-row-start: $start;
118
+ }
119
+ @mixin row-end($end) {
120
+ grid-row-end: $end;
121
+ }
87
122
 
88
123
  @mixin grid-position($col, $row) {
89
124
  grid-column: $col;
@@ -98,77 +133,112 @@ $alignments: (
98
133
 
99
134
  @if VAR.$generate-utility-classes {
100
135
  // Classes
101
- .grid { @include grid; }
102
- .grid.inline { @include grid-inline; }
103
-
136
+ #{VAR.$parent-selector} .grid {
137
+ @include grid;
138
+ }
104
139
 
105
- @for $i from 1 through VAR.$column-count {
106
- .grid.cols-#{$i} { @include cols($i); }
107
- .grid.rows-#{$i} { @include rows($i); }
140
+ #{VAR.$parent-selector} .grid.inline {
141
+ @include grid-inline;
108
142
  }
109
143
 
110
- // Grid Template Classes
111
- @each $breakpoint, $width in VAR.$breakpoints {
112
- // Responsive grid columns
113
- @media (min-width: #{$width}) {
114
- @for $i from 1 through VAR.$column-count {
115
- .grid.cols-#{$i}\@#{$breakpoint} { @include cols($i); }
116
- .grid.rows-#{$i}\@#{$breakpoint} { @include rows($i); }
144
+ #{VAR.$parent-selector} .grid {
145
+ // Auto-fit/fill Classes
146
+ @each $size, $width in VAR.$grid-item-sizes {
147
+ &.auto-fit-#{$size} {
148
+ @include auto-fit($width);
149
+ }
150
+
151
+ &.auto-fill-#{$size} {
152
+ @include auto-fill($width);
117
153
  }
118
154
  }
119
- }
120
155
 
156
+ // Flow Classes
157
+ &.flow-row {
158
+ @include flow-in-row;
159
+ }
160
+
161
+ &.flow-col {
162
+ @include flow-in-col;
163
+ }
121
164
 
122
- // Generate Column Span Classes with Responsive Variants
123
- @for $i from 1 through VAR.$column-count {
124
- .col-span-#{$i} {
125
- @include col-span($i);
165
+ &.flow-dense {
166
+ @include flow-dense-items;
126
167
  }
127
168
 
128
- .row-span-#{$i} {
129
- @include row-span($i);
169
+ @for $i from 1 through VAR.$column-count {
170
+ &.cols-#{$i} {
171
+ @include cols($i);
172
+ }
173
+
174
+ &.rows-#{$i} {
175
+ @include rows($i);
176
+ }
130
177
  }
131
178
 
179
+ // Grid Template Classes
132
180
  @each $breakpoint, $width in VAR.$breakpoints {
181
+ // Responsive grid columns
133
182
  @media (min-width: #{$width}) {
134
- .col-span-#{$i}\@#{$breakpoint} {
135
- @include col-span($i);
183
+ @for $i from 1 through VAR.$column-count {
184
+ &.cols-#{$i}\@#{$breakpoint} {
185
+ @include cols($i);
186
+ }
187
+
188
+ &.rows-#{$i}\@#{$breakpoint} {
189
+ @include rows($i);
190
+ }
136
191
  }
192
+ }
193
+ }
194
+
195
+ // Generate Column Span Classes with Responsive Variants
196
+ @for $i from 1 through VAR.$column-count {
197
+ & .col-span-#{$i} {
198
+ @include col-span($i);
199
+ }
200
+
201
+ & .row-span-#{$i} {
202
+ @include row-span($i);
203
+ }
204
+
205
+ @each $breakpoint, $width in VAR.$breakpoints {
206
+ @media (min-width: #{$width}) {
207
+ & .col-span-#{$i}\@#{$breakpoint} {
208
+ @include col-span($i);
209
+ }
137
210
 
138
- .row-span-#{$i}\@#{$breakpoint} {
139
- @include row-span($i);
211
+ & .row-span-#{$i}\@#{$breakpoint} {
212
+ @include row-span($i);
213
+ }
140
214
  }
141
215
  }
142
216
  }
143
- }
144
217
 
218
+ @each $name, $value in $alignments {
219
+ & .justify-#{$name} {
220
+ @include justify($value);
221
+ }
145
222
 
146
- // Auto-fit/fill Classes
147
- @each $size, $width in VAR.$grid-item-sizes {
148
- .grid.auto-fit-#{$size} { @include auto-fit($width); }
149
- .grid.auto-fill-#{$size} { @include auto-fill($width); }
150
- }
151
-
152
- // Flow Classes
153
- .grid.flow-row { @include flow-in-row; }
154
- .grid.flow-col { @include flow-in-col; }
155
- .grid.flow-dense { @include flow-dense-items; }
223
+ & .align-#{$name} {
224
+ @include align($value);
225
+ }
156
226
 
157
- @each $name, $value in $alignments {
158
- .justify-#{$name} { @include justify($value); }
159
- .align-#{$name} { @include align($value); }
160
- .place-#{$name} { @include place($value); }
227
+ & .place-#{$name} {
228
+ @include place($value);
229
+ }
161
230
 
162
- @each $breakpoint, $width in VAR.$breakpoints {
163
- @media (min-width: #{$width}) {
164
- .justify-#{$name}\@#{$breakpoint} {
165
- @include justify($value);
166
- }
167
- .align-#{$name}\@#{$breakpoint} {
168
- @include align($value);
169
- }
170
- .place-#{$name}\@#{$breakpoint} {
171
- @include place($value);
231
+ @each $breakpoint, $width in VAR.$breakpoints {
232
+ @media (min-width: #{$width}) {
233
+ & .justify-#{$name}\@#{$breakpoint} {
234
+ @include justify($value);
235
+ }
236
+ & .align-#{$name}\@#{$breakpoint} {
237
+ @include align($value);
238
+ }
239
+ & .place-#{$name}\@#{$breakpoint} {
240
+ @include place($value);
241
+ }
172
242
  }
173
243
  }
174
244
  }