@nuvoui/core 1.1.8 → 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.
Files changed (39) hide show
  1. package/README.md +90 -35
  2. package/dist/nuvoui.css +28531 -0
  3. package/dist/nuvoui.css.map +1 -0
  4. package/dist/nuvoui.min.css +2 -1
  5. package/dist/nuvoui.min.css.map +1 -0
  6. package/package.json +48 -27
  7. package/src/styles/abstracts/_config.scss +157 -0
  8. package/src/styles/abstracts/_functions.scss +81 -0
  9. package/src/styles/abstracts/_index.scss +2 -0
  10. package/src/styles/base/_base.scss +2 -2
  11. package/src/styles/base/_index.scss +2 -0
  12. package/src/styles/base/_reset.scss +8 -6
  13. package/src/styles/index.scss +11 -30
  14. package/src/styles/layouts/_container.scss +7 -23
  15. package/src/styles/layouts/_flex.scss +116 -113
  16. package/src/styles/layouts/_grid.scss +70 -100
  17. package/src/styles/layouts/_index.scss +3 -0
  18. package/src/styles/mixins-map.scss +1 -1515
  19. package/src/styles/themes/_index.scss +1 -0
  20. package/src/styles/themes/_theme.scss +175 -55
  21. package/src/styles/utilities/_alignment.scss +9 -7
  22. package/src/styles/utilities/_animations.scss +65 -61
  23. package/src/styles/utilities/_borders.scss +283 -18
  24. package/src/styles/utilities/_colors.scss +68 -49
  25. package/src/styles/utilities/_container-queries.scss +19 -18
  26. package/src/styles/utilities/_display.scss +59 -57
  27. package/src/styles/utilities/_helpers.scss +110 -108
  28. package/src/styles/utilities/_index.scss +19 -0
  29. package/src/styles/utilities/_media-queries.scss +68 -15
  30. package/src/styles/utilities/_opacity.scss +51 -27
  31. package/src/styles/utilities/_position.scss +38 -37
  32. package/src/styles/utilities/_shadows.scss +195 -137
  33. package/src/styles/utilities/_sizing.scss +74 -71
  34. package/src/styles/utilities/_spacing.scss +117 -99
  35. package/src/styles/utilities/_tooltips.scss +153 -105
  36. package/src/styles/utilities/_transitions.scss +77 -73
  37. package/src/styles/utilities/_typography.scss +23 -26
  38. package/src/styles/utilities/_functions.scss +0 -84
  39. package/src/styles/utilities/_variables.scss +0 -126
@@ -1,9 +1,10 @@
1
1
  // Section: Layout
2
2
  // Module: Grid | Grid Inline
3
+ // Note: Gap utilities are defined in _spacing.scss
3
4
 
4
5
  @use 'sass:math';
5
- @use '../utilities/functions' as FN;
6
- @use '../utilities/variables' as VAR;
6
+ @use '../abstracts/functions' as FN;
7
+ @use '../abstracts' as VAR;
7
8
 
8
9
  /**
9
10
  * @description Establishes a grid container.
@@ -50,6 +51,14 @@
50
51
 
51
52
  // Grid Alignment Mixins
52
53
 
54
+ // Alignment Classes
55
+ $alignments: (
56
+ 'start': start,
57
+ 'end': end,
58
+ 'center': center,
59
+ 'stretch': stretch
60
+ );
61
+
53
62
  /**
54
63
  * @description justify-items container.
55
64
  * @param {string} $value - The value for the justify-items property.
@@ -87,120 +96,81 @@
87
96
  grid-row: $row;
88
97
  }
89
98
 
90
- @mixin grid-gap($value) { gap: $value; }
91
- @mixin col-gap($value) { column-gap: $value; }
92
- @mixin row-gap($value) { row-gap: $value; }
93
-
94
- // Classes
95
- .grid { @include grid; }
96
- .grid.inline { @include grid-inline; }
99
+ @if VAR.$generate-utility-classes {
100
+ // Classes
101
+ .grid { @include grid; }
102
+ .grid.inline { @include grid-inline; }
97
103
 
98
104
 
99
- @for $i from 1 through VAR.$column-count {
100
- .grid.cols-#{$i} { @include cols($i); }
101
- .grid.rows-#{$i} { @include rows($i); }
102
- }
103
-
104
- // Grid Template Classes
105
- @each $breakpoint, $width in VAR.$breakpoints {
106
- // Responsive grid columns
107
- @media (min-width: #{$width}) {
108
- @for $i from 1 through VAR.$column-count {
109
- .grid.cols-#{$i}\@#{$breakpoint} { @include cols($i); }
110
- .grid.rows-#{$i}\@#{$breakpoint} { @include rows($i); }
111
- }
105
+ @for $i from 1 through VAR.$column-count {
106
+ .grid.cols-#{$i} { @include cols($i); }
107
+ .grid.rows-#{$i} { @include rows($i); }
112
108
  }
113
- }
114
-
115
109
 
116
- // Add corresponding classes
117
- .grid-gap-1 { @include grid-gap(0.25rem); }
118
- .grid-gap-2 { @include grid-gap(0.5rem); }
119
- .grid-gap-4 { @include grid-gap(1rem); }
120
- .col-gap-1 { @include col-gap(0.25rem); }
121
- .col-gap-2 { @include col-gap(0.5rem); }
122
- .col-gap-4 { @include col-gap(1rem); }
123
- .row-gap-1 { @include row-gap(0.25rem); }
124
- .row-gap-2 { @include row-gap(0.5rem); }
125
- .row-gap-4 { @include row-gap(1rem); }
126
-
127
- // Responsive grid gaps
128
- @each $breakpoint, $width in VAR.$breakpoints {
129
- @media (min-width: #{$width}) {
130
- .grid-gap-1\@#{$breakpoint} { @include grid-gap(0.25rem); }
131
- .grid-gap-2\@#{$breakpoint} { @include grid-gap(0.5rem); }
132
- .grid-gap-4\@#{$breakpoint} { @include grid-gap(1rem); }
133
-
134
- .col-gap-1\@#{$breakpoint} { @include col-gap(0.25rem); }
135
- .col-gap-2\@#{$breakpoint} { @include col-gap(0.5rem); }
136
- .col-gap-4\@#{$breakpoint} { @include col-gap(1rem); }
137
-
138
- .row-gap-1\@#{$breakpoint} { @include row-gap(0.25rem); }
139
- .row-gap-2\@#{$breakpoint} { @include row-gap(0.5rem); }
140
- .row-gap-4\@#{$breakpoint} { @include row-gap(1rem); }
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); }
117
+ }
118
+ }
141
119
  }
142
- }
143
120
 
144
121
 
145
- // Generate Column Span Classes with Responsive Variants
146
- @for $i from 1 through VAR.$column-count {
147
- .span-col-#{$i} {
148
- @include span-col($i);
149
- }
122
+ // Generate Column Span Classes with Responsive Variants
123
+ @for $i from 1 through VAR.$column-count {
124
+ .span-col-#{$i} {
125
+ @include span-col($i);
126
+ }
150
127
 
151
- .span-row-#{$i} {
152
- @include span-row($i);
153
- }
128
+ .span-row-#{$i} {
129
+ @include span-row($i);
130
+ }
154
131
 
155
- @each $breakpoint, $width in VAR.$breakpoints {
156
- @media (min-width: #{$width}) {
157
- .span-col-#{$i}\@#{$breakpoint} {
158
- @include span-col($i);
159
- }
132
+ @each $breakpoint, $width in VAR.$breakpoints {
133
+ @media (min-width: #{$width}) {
134
+ .span-col-#{$i}\@#{$breakpoint} {
135
+ @include span-col($i);
136
+ }
160
137
 
161
- .span-row-#{$i}\@#{$breakpoint} {
162
- @include span-row($i);
138
+ .span-row-#{$i}\@#{$breakpoint} {
139
+ @include span-row($i);
140
+ }
163
141
  }
164
142
  }
165
143
  }
166
- }
167
-
168
144
 
169
- // Auto-fit/fill Classes
170
- @each $size, $width in VAR.$grid-item-sizes {
171
- .grid.auto-fit-#{$size} { @include auto-fit($width); }
172
- .grid.auto-fill-#{$size} { @include auto-fill($width); }
173
- }
174
-
175
- // Flow Classes
176
- .grid.flow-row { @include flow-in-row; }
177
- .grid.flow-col { @include flow-in-col; }
178
- .grid.flow-dense { @include flow-dense-items; }
179
-
180
- // Alignment Classes
181
- $alignments: (
182
- 'start': start,
183
- 'end': end,
184
- 'center': center,
185
- 'stretch': stretch
186
- );
187
145
 
188
- @each $name, $value in $alignments {
189
- .justify-items-#{$name} { justify-items: $value; }
190
- .align-items-#{$name} { align-items: $value; }
191
- .place-items-#{$name} { place-items: $value; }
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
+ }
192
151
 
193
- @each $breakpoint, $width in VAR.$breakpoints {
194
- @media (min-width: #{$width}) {
195
- .justify-items-#{$name}\@#{$breakpoint} {
196
- justify-items: $value;
197
- }
198
- .align-items-#{$name}\@#{$breakpoint} {
199
- align-items: $value;
200
- }
201
- .place-items-#{$name}\@#{$breakpoint} {
202
- place-items: $value;
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; }
156
+
157
+ @each $name, $value in $alignments {
158
+ .justify-items-#{$name} { justify-items: $value; }
159
+ .align-items-#{$name} { align-items: $value; }
160
+ .place-items-#{$name} { place-items: $value; }
161
+
162
+ @each $breakpoint, $width in VAR.$breakpoints {
163
+ @media (min-width: #{$width}) {
164
+ .justify-items-#{$name}\@#{$breakpoint} {
165
+ justify-items: $value;
166
+ }
167
+ .align-items-#{$name}\@#{$breakpoint} {
168
+ align-items: $value;
169
+ }
170
+ .place-items-#{$name}\@#{$breakpoint} {
171
+ place-items: $value;
172
+ }
203
173
  }
204
174
  }
205
175
  }
206
- }
176
+ }
@@ -0,0 +1,3 @@
1
+ @forward "container";
2
+ @forward "flex";
3
+ @forward "grid";