@nuvoui/core 1.3.5 → 1.4.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.
- package/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/nuvoui.css +878 -646
- package/dist/nuvoui.css.map +1 -1
- package/dist/nuvoui.min.css +23 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/base/_base.scss +148 -147
- package/src/styles/base/_reset.scss +41 -49
- package/src/styles/build.scss +25 -1
- package/src/styles/components/_tooltips.scss +271 -0
- package/src/styles/config/_borders.scss +15 -0
- package/src/styles/config/_breakpoints.scss +11 -0
- package/src/styles/config/_colors.scss +192 -0
- package/src/styles/config/_constants.scss +1 -0
- package/src/styles/config/_container-queries.scss +1 -0
- package/src/styles/config/_feature-flags.scss +33 -0
- package/src/styles/config/_layouts.scss +13 -0
- package/src/styles/config/_shadows.scss +9 -0
- package/src/styles/config/_spacing.scss +41 -0
- package/src/styles/config/_theme-validation.scss +59 -0
- package/src/styles/config/_typography.scss +45 -0
- package/src/styles/functions/_breakpoints.scss +15 -0
- package/src/styles/functions/_colors.scss +280 -0
- package/src/styles/functions/_css-vars.scss +33 -0
- package/src/styles/functions/_feature-flags.scss +20 -0
- package/src/styles/functions/_math.scss +72 -0
- package/src/styles/functions/_strings.scss +68 -0
- package/src/styles/functions/_types.scss +104 -0
- package/src/styles/functions/_units.scss +83 -0
- package/src/styles/index.scss +26 -5
- package/src/styles/layouts/_container.scss +28 -27
- package/src/styles/layouts/_flex.scss +343 -337
- package/src/styles/layouts/_grid.scss +131 -128
- package/src/styles/mixins-map.json +486 -479
- package/src/styles/mixins-map.scss +1 -1
- package/src/styles/themes/_theme.scss +230 -211
- package/src/styles/tools/_accessibility.scss +50 -0
- package/src/styles/tools/_container-queries.scss +98 -0
- package/src/styles/tools/_feature-support.scss +46 -0
- package/src/styles/tools/_media-queries.scss +70 -0
- package/src/styles/tools/_modern-layout.scss +49 -0
- package/src/styles/utilities/_alignment.scss +35 -34
- package/src/styles/utilities/_animations.scss +312 -311
- package/src/styles/utilities/_backdrop-filters.scss +194 -193
- package/src/styles/utilities/_borders.scss +243 -237
- package/src/styles/utilities/_colors.scss +16 -136
- package/src/styles/utilities/_cursor.scss +10 -10
- package/src/styles/utilities/_display.scss +192 -191
- package/src/styles/utilities/_helpers.scss +106 -106
- package/src/styles/utilities/_opacity.scss +27 -25
- package/src/styles/utilities/_position.scss +124 -121
- package/src/styles/utilities/_shadows.scss +171 -169
- package/src/styles/utilities/_sizing.scss +197 -194
- package/src/styles/utilities/_spacing.scss +230 -227
- package/src/styles/utilities/_transforms.scss +235 -234
- package/src/styles/utilities/_transitions.scss +136 -135
- package/src/styles/utilities/_typography.scss +254 -239
- package/src/styles/utilities/_z-index.scss +69 -68
- package/src/styles/abstracts/_config.scss +0 -254
- package/src/styles/abstracts/_functions.scss +0 -626
- package/src/styles/themes/refactored_borders.ipynb +0 -37
- package/src/styles/utilities/_container-queries.scss +0 -95
- package/src/styles/utilities/_media-queries.scss +0 -189
- package/src/styles/utilities/_tooltips.scss +0 -258
|
@@ -2,47 +2,49 @@
|
|
|
2
2
|
@use "sass:map";
|
|
3
3
|
@use "sass:math";
|
|
4
4
|
@use "sass:string";
|
|
5
|
-
@use "../
|
|
6
|
-
@use "../
|
|
5
|
+
@use "../config/feature-flags" as config-flags;
|
|
6
|
+
@use "../config/breakpoints" as config-breakpoint;
|
|
7
|
+
@use "../config/shadows" as config-shadow;
|
|
8
|
+
@use "../functions/feature-flags" as fn-flags;
|
|
7
9
|
|
|
8
10
|
// TODO: SHADOWS WITH COLOR VARIANTS WITH RESPONSIVE
|
|
9
11
|
$shadow-sizes: (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
12
|
+
"sm": (
|
|
13
|
+
"x": 0,
|
|
14
|
+
"y": 1px,
|
|
15
|
+
"blur": 2px,
|
|
16
|
+
"spread": 0,
|
|
17
|
+
),
|
|
18
|
+
"md": (
|
|
19
|
+
"x": 0,
|
|
20
|
+
"y": 4px,
|
|
21
|
+
"blur": 6px,
|
|
22
|
+
"spread": -1px,
|
|
23
|
+
),
|
|
24
|
+
"lg": (
|
|
25
|
+
"x": 0,
|
|
26
|
+
"y": 10px,
|
|
27
|
+
"blur": 15px,
|
|
28
|
+
"spread": -3px,
|
|
29
|
+
),
|
|
30
|
+
"xl": (
|
|
31
|
+
"x": 0,
|
|
32
|
+
"y": 20px,
|
|
33
|
+
"blur": 25px,
|
|
34
|
+
"spread": -5px,
|
|
35
|
+
),
|
|
36
|
+
"hero": (
|
|
37
|
+
"x": 0,
|
|
38
|
+
"y": 20px,
|
|
39
|
+
"blur": 25px,
|
|
40
|
+
"spread": 5px,
|
|
41
|
+
),
|
|
42
|
+
"monster": (
|
|
43
|
+
"x": 0,
|
|
44
|
+
"y": 20px,
|
|
45
|
+
"blur": 55px,
|
|
46
|
+
"spread": 20px,
|
|
47
|
+
),
|
|
46
48
|
);
|
|
47
49
|
|
|
48
50
|
// Generates a CSS shadow string from a given size.
|
|
@@ -51,178 +53,178 @@ $shadow-sizes: (
|
|
|
51
53
|
// @return {String} - The CSS shadow string.
|
|
52
54
|
|
|
53
55
|
@mixin shadow-base($x, $y, $blur, $spread, $color) {
|
|
54
|
-
|
|
56
|
+
box-shadow: $x $y $blur $spread $color;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
// Generates a CSS shadow string from a given size.
|
|
58
60
|
// @param {String} $size - The shadow size.
|
|
59
61
|
// @param {String} $color - The shadow color.
|
|
60
62
|
@mixin shadow($size: "md", $color: "default") {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
@if not map.has-key($shadow-sizes, $size) {
|
|
64
|
+
@error "Shadow size '#{$size}' not found in $shadow-sizes map";
|
|
65
|
+
$size: "md"; // Fallback to default
|
|
66
|
+
}
|
|
67
|
+
@if not map.has-key(config-shadow.$shadow-colors, $color) {
|
|
68
|
+
@error "Shadow color '#{$color}' not found in config-shadow.$shadow-colors map";
|
|
69
|
+
$color: "default"; // Fallback to default
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
$shadow: map.get($shadow-sizes, $size);
|
|
73
|
+
$shadow-color: map.get(config-shadow.$shadow-colors, $color);
|
|
74
|
+
@include shadow-base(map.get($shadow, "x"), map.get($shadow, "y"), map.get($shadow, "blur"), map.get($shadow, "spread"), $shadow-color);
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
@mixin shadow-inset($size: "md", $color: "default") {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
$shadow: map.get($shadow-sizes, $size);
|
|
79
|
+
$shadow-color: map.get(config-shadow.$shadow-colors, $color);
|
|
78
80
|
|
|
79
|
-
|
|
81
|
+
box-shadow: inset map.get($shadow, "x") map.get($shadow, "y") map.get($shadow, "blur") map.get($shadow, "spread") $shadow-color;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
@mixin elevation($i) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
@if $i == 1 {
|
|
86
|
+
@include shadow("sm");
|
|
87
|
+
} @else if $i == 2 {
|
|
88
|
+
@include shadow("md");
|
|
89
|
+
} @else if $i == 3 {
|
|
90
|
+
@include shadow("lg");
|
|
91
|
+
} @else if $i == 4 {
|
|
92
|
+
@include shadow("xl");
|
|
93
|
+
} @else if $i == 5 {
|
|
94
|
+
@include shadow("monster");
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
z-index: $i;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
// Utility Classes
|
|
99
|
-
@if
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@each $size, $values in $shadow-sizes {
|
|
105
|
-
#{VAR.$parent-selector} .shadow-#{$size} {
|
|
106
|
-
@include shadow($size);
|
|
101
|
+
@if fn-flags.feature-enabled("shadows") {
|
|
102
|
+
#{config-flags.$parent-selector} .shadow-none {
|
|
103
|
+
box-shadow: none !important;
|
|
107
104
|
}
|
|
108
105
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
#{VAR.$parent-selector} .shadow-#{$size}-#{$color-name} {
|
|
113
|
-
@include shadow($size, $color-name);
|
|
106
|
+
@each $size, $values in $shadow-sizes {
|
|
107
|
+
#{config-flags.$parent-selector} .shadow-#{$size} {
|
|
108
|
+
@include shadow($size);
|
|
114
109
|
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
110
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
#{VAR.$parent-selector} .shadow-inset-#{$size}-#{$color-name} {
|
|
126
|
-
@include shadow-inset($size, $color-name);
|
|
111
|
+
// Shadow with color variants
|
|
112
|
+
@each $color-name, $color-value in config-shadow.$shadow-colors {
|
|
113
|
+
@if $color-name != "default" {
|
|
114
|
+
#{config-flags.$parent-selector} .shadow-#{$size}-#{$color-name} {
|
|
115
|
+
@include shadow($size, $color-name);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
127
118
|
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
119
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
@include shadow($size);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// Hover shadows with color variants
|
|
137
|
-
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
138
|
-
@if $color-name != "default" {
|
|
139
|
-
#{VAR.$parent-selector} .hover\:shadow-#{$size}-#{$color-name}:hover {
|
|
140
|
-
@include shadow($size, $color-name);
|
|
120
|
+
#{config-flags.$parent-selector} .shadow-inset-#{$size} {
|
|
121
|
+
@include shadow-inset($size);
|
|
141
122
|
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
123
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
@if $color-name != "default" {
|
|
153
|
-
#{VAR.$parent-selector} .focus\:shadow-#{$size}-#{$color-name}:focus {
|
|
154
|
-
@include shadow($size, $color-name);
|
|
124
|
+
// Inset shadows with color variants
|
|
125
|
+
@each $color-name, $color-value in config-shadow.$shadow-colors {
|
|
126
|
+
@if $color-name != "default" {
|
|
127
|
+
#{config-flags.$parent-selector} .shadow-inset-#{$size}-#{$color-name} {
|
|
128
|
+
@include shadow-inset($size, $color-name);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
155
131
|
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
132
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// Active shadows with color variants
|
|
165
|
-
@each $color-name, $color-value in VAR.$shadow-colors {
|
|
166
|
-
@if $color-name != "default" {
|
|
167
|
-
#{VAR.$parent-selector} .active\:shadow-#{$size}-#{$color-name}:active {
|
|
168
|
-
@include shadow($size, $color-name);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// Responsive variants
|
|
175
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
176
|
-
@media (min-width: #{$width}) {
|
|
177
|
-
@each $size, $values in $shadow-sizes {
|
|
178
|
-
// Regular shadows with breakpoints
|
|
179
|
-
#{VAR.$parent-selector} .shadow-#{$size}\@#{$breakpoint} {
|
|
180
|
-
@include shadow($size);
|
|
133
|
+
// Hover shadows
|
|
134
|
+
#{config-flags.$parent-selector} .hover\:shadow-#{$size}:hover {
|
|
135
|
+
@include shadow($size);
|
|
181
136
|
}
|
|
182
137
|
|
|
183
|
-
//
|
|
184
|
-
@each $color-name, $color-value in
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
138
|
+
// Hover shadows with color variants
|
|
139
|
+
@each $color-name, $color-value in config-shadow.$shadow-colors {
|
|
140
|
+
@if $color-name != "default" {
|
|
141
|
+
#{config-flags.$parent-selector} .hover\:shadow-#{$size}-#{$color-name}:hover {
|
|
142
|
+
@include shadow($size, $color-name);
|
|
143
|
+
}
|
|
188
144
|
}
|
|
189
|
-
}
|
|
190
145
|
}
|
|
191
146
|
|
|
192
|
-
//
|
|
193
|
-
#{
|
|
194
|
-
|
|
147
|
+
// Focus shadows
|
|
148
|
+
#{config-flags.$parent-selector} .focus\:shadow-#{$size}:focus {
|
|
149
|
+
@include shadow($size);
|
|
195
150
|
}
|
|
196
151
|
|
|
197
|
-
//
|
|
198
|
-
@each $color-name, $color-value in
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
152
|
+
// Focus shadows with color variants
|
|
153
|
+
@each $color-name, $color-value in config-shadow.$shadow-colors {
|
|
154
|
+
@if $color-name != "default" {
|
|
155
|
+
#{config-flags.$parent-selector} .focus\:shadow-#{$size}-#{$color-name}:focus {
|
|
156
|
+
@include shadow($size, $color-name);
|
|
157
|
+
}
|
|
202
158
|
}
|
|
203
|
-
}
|
|
204
159
|
}
|
|
205
160
|
|
|
206
|
-
//
|
|
207
|
-
#{
|
|
208
|
-
|
|
161
|
+
// Active shadows
|
|
162
|
+
#{config-flags.$parent-selector} .active\:shadow-#{$size}:active {
|
|
163
|
+
@include shadow($size);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Active shadows with color variants
|
|
167
|
+
@each $color-name, $color-value in config-shadow.$shadow-colors {
|
|
168
|
+
@if $color-name != "default" {
|
|
169
|
+
#{config-flags.$parent-selector} .active\:shadow-#{$size}-#{$color-name}:active {
|
|
170
|
+
@include shadow($size, $color-name);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
209
173
|
}
|
|
174
|
+
}
|
|
210
175
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
176
|
+
// Responsive variants
|
|
177
|
+
@each $breakpoint, $width in config-breakpoint.$breakpoints {
|
|
178
|
+
@media (min-width: #{$width}) {
|
|
179
|
+
@each $size, $values in $shadow-sizes {
|
|
180
|
+
// Regular shadows with breakpoints
|
|
181
|
+
#{config-flags.$parent-selector} .shadow-#{$size}\@#{$breakpoint} {
|
|
182
|
+
@include shadow($size);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Shadows with color variants at breakpoints
|
|
186
|
+
@each $color-name, $color-value in config-shadow.$shadow-colors {
|
|
187
|
+
@if $color-name != "default" {
|
|
188
|
+
#{config-flags.$parent-selector} .shadow-#{$size}-#{$color-name}\@#{$breakpoint} {
|
|
189
|
+
@include shadow($size, $color-name);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// Hover shadows with breakpoints
|
|
195
|
+
#{config-flags.$parent-selector} .hover\:shadow-#{$size}\@#{$breakpoint}:hover {
|
|
196
|
+
@include shadow($size);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Hover shadows with color variants at breakpoints
|
|
200
|
+
@each $color-name, $color-value in config-shadow.$shadow-colors {
|
|
201
|
+
@if $color-name != "default" {
|
|
202
|
+
#{config-flags.$parent-selector} .hover\:shadow-#{$size}-#{$color-name}\@#{$breakpoint}:hover {
|
|
203
|
+
@include shadow($size, $color-name);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// Focus shadows with breakpoints
|
|
209
|
+
#{config-flags.$parent-selector} .focus\:shadow-#{$size}\@#{$breakpoint}:focus {
|
|
210
|
+
@include shadow($size);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// Focus shadows with color variants at breakpoints
|
|
214
|
+
@each $color-name, $color-value in config-shadow.$shadow-colors {
|
|
215
|
+
@if $color-name != "default" {
|
|
216
|
+
#{config-flags.$parent-selector} .focus\:shadow-#{$size}-#{$color-name}\@#{$breakpoint}:focus {
|
|
217
|
+
@include shadow($size, $color-name);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
216
221
|
}
|
|
217
|
-
}
|
|
218
222
|
}
|
|
219
|
-
}
|
|
220
223
|
}
|
|
221
|
-
}
|
|
222
224
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
@for $i from 1 through 5 {
|
|
226
|
+
#{config-flags.$parent-selector} .elevation-#{$i} {
|
|
227
|
+
@include elevation($i);
|
|
228
|
+
}
|
|
226
229
|
}
|
|
227
|
-
}
|
|
228
230
|
}
|