@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.
Files changed (65) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -1
  3. package/dist/nuvoui.css +878 -646
  4. package/dist/nuvoui.css.map +1 -1
  5. package/dist/nuvoui.min.css +23 -1
  6. package/dist/nuvoui.min.css.map +1 -1
  7. package/package.json +1 -1
  8. package/src/styles/base/_base.scss +148 -147
  9. package/src/styles/base/_reset.scss +41 -49
  10. package/src/styles/build.scss +25 -1
  11. package/src/styles/components/_tooltips.scss +271 -0
  12. package/src/styles/config/_borders.scss +15 -0
  13. package/src/styles/config/_breakpoints.scss +11 -0
  14. package/src/styles/config/_colors.scss +192 -0
  15. package/src/styles/config/_constants.scss +1 -0
  16. package/src/styles/config/_container-queries.scss +1 -0
  17. package/src/styles/config/_feature-flags.scss +33 -0
  18. package/src/styles/config/_layouts.scss +13 -0
  19. package/src/styles/config/_shadows.scss +9 -0
  20. package/src/styles/config/_spacing.scss +41 -0
  21. package/src/styles/config/_theme-validation.scss +59 -0
  22. package/src/styles/config/_typography.scss +45 -0
  23. package/src/styles/functions/_breakpoints.scss +15 -0
  24. package/src/styles/functions/_colors.scss +280 -0
  25. package/src/styles/functions/_css-vars.scss +33 -0
  26. package/src/styles/functions/_feature-flags.scss +20 -0
  27. package/src/styles/functions/_math.scss +72 -0
  28. package/src/styles/functions/_strings.scss +68 -0
  29. package/src/styles/functions/_types.scss +104 -0
  30. package/src/styles/functions/_units.scss +83 -0
  31. package/src/styles/index.scss +26 -5
  32. package/src/styles/layouts/_container.scss +28 -27
  33. package/src/styles/layouts/_flex.scss +343 -337
  34. package/src/styles/layouts/_grid.scss +131 -128
  35. package/src/styles/mixins-map.json +486 -479
  36. package/src/styles/mixins-map.scss +1 -1
  37. package/src/styles/themes/_theme.scss +230 -211
  38. package/src/styles/tools/_accessibility.scss +50 -0
  39. package/src/styles/tools/_container-queries.scss +98 -0
  40. package/src/styles/tools/_feature-support.scss +46 -0
  41. package/src/styles/tools/_media-queries.scss +70 -0
  42. package/src/styles/tools/_modern-layout.scss +49 -0
  43. package/src/styles/utilities/_alignment.scss +35 -34
  44. package/src/styles/utilities/_animations.scss +312 -311
  45. package/src/styles/utilities/_backdrop-filters.scss +194 -193
  46. package/src/styles/utilities/_borders.scss +243 -237
  47. package/src/styles/utilities/_colors.scss +16 -136
  48. package/src/styles/utilities/_cursor.scss +10 -10
  49. package/src/styles/utilities/_display.scss +192 -191
  50. package/src/styles/utilities/_helpers.scss +106 -106
  51. package/src/styles/utilities/_opacity.scss +27 -25
  52. package/src/styles/utilities/_position.scss +124 -121
  53. package/src/styles/utilities/_shadows.scss +171 -169
  54. package/src/styles/utilities/_sizing.scss +197 -194
  55. package/src/styles/utilities/_spacing.scss +230 -227
  56. package/src/styles/utilities/_transforms.scss +235 -234
  57. package/src/styles/utilities/_transitions.scss +136 -135
  58. package/src/styles/utilities/_typography.scss +254 -239
  59. package/src/styles/utilities/_z-index.scss +69 -68
  60. package/src/styles/abstracts/_config.scss +0 -254
  61. package/src/styles/abstracts/_functions.scss +0 -626
  62. package/src/styles/themes/refactored_borders.ipynb +0 -37
  63. package/src/styles/utilities/_container-queries.scss +0 -95
  64. package/src/styles/utilities/_media-queries.scss +0 -189
  65. package/src/styles/utilities/_tooltips.scss +0 -258
@@ -1,6 +1,7 @@
1
1
  // _transitions.scss
2
- @use "../abstracts/config" as VAR;
3
- @use "../abstracts/functions" as FN;
2
+ @use "../config/feature-flags" as config-flags;
3
+ @use "../config/breakpoints" as config-breakpoint;
4
+ @use "../functions/feature-flags" as fn-flags;
4
5
 
5
6
  // Transition Utilities
6
7
  // - .transition: Default transition for common properties
@@ -11,198 +12,198 @@
11
12
 
12
13
  // Property-specific transition mixins
13
14
  @mixin transition-none {
14
- transition-property: none;
15
+ transition-property: none;
15
16
  }
16
17
  @mixin transition {
17
- transition-property: all;
18
+ transition-property: all;
18
19
  }
19
20
  @mixin transition-colors {
20
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
21
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
21
22
  }
22
23
  @mixin transition-opacity {
23
- transition-property: opacity;
24
+ transition-property: opacity;
24
25
  }
25
26
  @mixin transition-shadow {
26
- transition-property: box-shadow;
27
+ transition-property: box-shadow;
27
28
  }
28
29
  @mixin transition-transform {
29
- transition-property: transform;
30
+ transition-property: transform;
30
31
  }
31
32
 
32
33
  // Duration mixins
33
34
  @mixin duration($time) {
34
- transition-duration: $time;
35
+ transition-duration: $time;
35
36
  }
36
37
 
37
38
  // Timing function mixins
38
39
  @mixin ease-linear {
39
- transition-timing-function: linear;
40
+ transition-timing-function: linear;
40
41
  }
41
42
  @mixin ease-in {
42
- transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
43
+ transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
43
44
  }
44
45
  @mixin ease-out {
45
- transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
46
+ transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
46
47
  }
47
48
  @mixin ease-in-out {
48
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
49
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
49
50
  }
50
51
 
51
52
  // Delay mixins
52
53
  @mixin delay($time) {
53
- transition-delay: $time;
54
+ transition-delay: $time;
54
55
  }
55
56
 
56
57
  // Timing functions
57
58
  $timing-functions: (
58
- "linear": linear,
59
- "in": cubic-bezier(0.4, 0, 1, 1),
60
- "out": cubic-bezier(0, 0, 0.2, 1),
61
- "in-out": cubic-bezier(0.4, 0, 0.2, 1),
59
+ "linear": linear,
60
+ "in": cubic-bezier(0.4, 0, 1, 1),
61
+ "out": cubic-bezier(0, 0, 0.2, 1),
62
+ "in-out": cubic-bezier(0.4, 0, 0.2, 1),
62
63
  );
63
64
 
64
65
  // Durations
65
66
  $durations: (
66
- "0": 0ms,
67
- "75": 75ms,
68
- "100": 100ms,
69
- "150": 150ms,
70
- "200": 200ms,
71
- "300": 300ms,
72
- "500": 500ms,
73
- "700": 700ms,
74
- "1000": 1000ms,
67
+ "0": 0ms,
68
+ "75": 75ms,
69
+ "100": 100ms,
70
+ "150": 150ms,
71
+ "200": 200ms,
72
+ "300": 300ms,
73
+ "500": 500ms,
74
+ "700": 700ms,
75
+ "1000": 1000ms,
75
76
  );
76
77
 
77
78
  // Delays
78
79
  $delays: (
79
- "0": 0ms,
80
- "75": 75ms,
81
- "100": 100ms,
82
- "150": 150ms,
83
- "200": 200ms,
84
- "300": 300ms,
85
- "500": 500ms,
86
- "700": 700ms,
87
- "1000": 1000ms,
80
+ "0": 0ms,
81
+ "75": 75ms,
82
+ "100": 100ms,
83
+ "150": 150ms,
84
+ "200": 200ms,
85
+ "300": 300ms,
86
+ "500": 500ms,
87
+ "700": 700ms,
88
+ "1000": 1000ms,
88
89
  );
89
90
 
90
- @if FN.feature-enabled("transitions") {
91
- // Property-specific transitions
92
- #{VAR.$parent-selector} .transition-none {
93
- @include transition-none;
94
- }
95
-
96
- #{VAR.$parent-selector} .transition {
97
- @include transition;
98
- }
99
-
100
- #{VAR.$parent-selector} .transition-colors {
101
- @include transition-colors;
102
- }
103
-
104
- #{VAR.$parent-selector} .transition-opacity {
105
- @include transition-opacity;
106
- }
107
-
108
- #{VAR.$parent-selector} .transition-shadow {
109
- @include transition-shadow;
110
- }
111
-
112
- #{VAR.$parent-selector} .transition-transform {
113
- @include transition-transform;
114
- }
115
-
116
- @each $name, $value in $durations {
117
- #{VAR.$parent-selector} .duration-#{$name} {
118
- @include duration($value);
91
+ @if fn-flags.feature-enabled("transitions") {
92
+ // Property-specific transitions
93
+ #{config-flags.$parent-selector} .transition-none {
94
+ @include transition-none;
119
95
  }
120
- }
121
96
 
122
- @each $name, $value in $timing-functions {
123
- #{VAR.$parent-selector} .ease-#{$name} {
124
- transition-timing-function: $value;
97
+ #{config-flags.$parent-selector} .transition {
98
+ @include transition;
125
99
  }
126
- }
127
-
128
- // Specific timing function classes
129
- #{VAR.$parent-selector} .ease-linear {
130
- @include ease-linear;
131
- }
132
-
133
- #{VAR.$parent-selector} .ease-in {
134
- @include ease-in;
135
- }
136
100
 
137
- #{VAR.$parent-selector} .ease-out {
138
- @include ease-out;
139
- }
140
-
141
- #{VAR.$parent-selector} .ease-in-out {
142
- @include ease-in-out;
143
- }
144
-
145
- @each $name, $value in $delays {
146
- #{VAR.$parent-selector} .delay-#{$name} {
147
- @include delay($value);
101
+ #{config-flags.$parent-selector} .transition-colors {
102
+ @include transition-colors;
148
103
  }
149
- }
150
-
151
- // Responsive variants
152
- @each $breakpoint, $width in VAR.$breakpoints {
153
- @media (min-width: #{$width}) {
154
- // Base transition
155
- #{VAR.$parent-selector} .transition\@#{$breakpoint} {
156
- @include transition;
157
- }
158
104
 
159
- // Property-specific transitions
160
- #{VAR.$parent-selector} .transition-none\@#{$breakpoint} {
161
- @include transition-none;
162
- }
163
- #{VAR.$parent-selector} .transition\@#{$breakpoint} {
164
- @include transition;
165
- }
166
- #{VAR.$parent-selector} .transition-colors\@#{$breakpoint} {
167
- @include transition-colors;
168
- }
169
- #{VAR.$parent-selector} .transition-opacity\@#{$breakpoint} {
105
+ #{config-flags.$parent-selector} .transition-opacity {
170
106
  @include transition-opacity;
171
- }
172
- #{VAR.$parent-selector} .transition-shadow\@#{$breakpoint} {
107
+ }
108
+
109
+ #{config-flags.$parent-selector} .transition-shadow {
173
110
  @include transition-shadow;
174
- }
175
- #{VAR.$parent-selector} .transition-transform\@#{$breakpoint} {
111
+ }
112
+
113
+ #{config-flags.$parent-selector} .transition-transform {
176
114
  @include transition-transform;
177
- }
115
+ }
178
116
 
179
- // Duration responsive variants
180
- @each $name, $value in $durations {
181
- #{VAR.$parent-selector} .duration-#{$name}\@#{$breakpoint} {
182
- @include duration($value);
117
+ @each $name, $value in $durations {
118
+ #{config-flags.$parent-selector} .duration-#{$name} {
119
+ @include duration($value);
183
120
  }
184
- }
121
+ }
185
122
 
186
- // Timing function responsive variants
187
- #{VAR.$parent-selector} .ease-linear\@#{$breakpoint} {
123
+ @each $name, $value in $timing-functions {
124
+ #{config-flags.$parent-selector} .ease-#{$name} {
125
+ transition-timing-function: $value;
126
+ }
127
+ }
128
+
129
+ // Specific timing function classes
130
+ #{config-flags.$parent-selector} .ease-linear {
188
131
  @include ease-linear;
189
- }
190
- #{VAR.$parent-selector} .ease-in\@#{$breakpoint} {
132
+ }
133
+
134
+ #{config-flags.$parent-selector} .ease-in {
191
135
  @include ease-in;
192
- }
193
- #{VAR.$parent-selector} .ease-out\@#{$breakpoint} {
136
+ }
137
+
138
+ #{config-flags.$parent-selector} .ease-out {
194
139
  @include ease-out;
195
- }
196
- #{VAR.$parent-selector} .ease-in-out\@#{$breakpoint} {
140
+ }
141
+
142
+ #{config-flags.$parent-selector} .ease-in-out {
197
143
  @include ease-in-out;
198
- }
144
+ }
145
+
146
+ @each $name, $value in $delays {
147
+ #{config-flags.$parent-selector} .delay-#{$name} {
148
+ @include delay($value);
149
+ }
150
+ }
199
151
 
200
- // Delay responsive variants
201
- @each $name, $value in $delays {
202
- #{VAR.$parent-selector} .delay-#{$name}\@#{$breakpoint} {
203
- @include delay($value);
152
+ // Responsive variants
153
+ @each $breakpoint, $width in config-breakpoint.$breakpoints {
154
+ @media (min-width: #{$width}) {
155
+ // Base transition
156
+ #{config-flags.$parent-selector} .transition\@#{$breakpoint} {
157
+ @include transition;
158
+ }
159
+
160
+ // Property-specific transitions
161
+ #{config-flags.$parent-selector} .transition-none\@#{$breakpoint} {
162
+ @include transition-none;
163
+ }
164
+ #{config-flags.$parent-selector} .transition\@#{$breakpoint} {
165
+ @include transition;
166
+ }
167
+ #{config-flags.$parent-selector} .transition-colors\@#{$breakpoint} {
168
+ @include transition-colors;
169
+ }
170
+ #{config-flags.$parent-selector} .transition-opacity\@#{$breakpoint} {
171
+ @include transition-opacity;
172
+ }
173
+ #{config-flags.$parent-selector} .transition-shadow\@#{$breakpoint} {
174
+ @include transition-shadow;
175
+ }
176
+ #{config-flags.$parent-selector} .transition-transform\@#{$breakpoint} {
177
+ @include transition-transform;
178
+ }
179
+
180
+ // Duration responsive variants
181
+ @each $name, $value in $durations {
182
+ #{config-flags.$parent-selector} .duration-#{$name}\@#{$breakpoint} {
183
+ @include duration($value);
184
+ }
185
+ }
186
+
187
+ // Timing function responsive variants
188
+ #{config-flags.$parent-selector} .ease-linear\@#{$breakpoint} {
189
+ @include ease-linear;
190
+ }
191
+ #{config-flags.$parent-selector} .ease-in\@#{$breakpoint} {
192
+ @include ease-in;
193
+ }
194
+ #{config-flags.$parent-selector} .ease-out\@#{$breakpoint} {
195
+ @include ease-out;
196
+ }
197
+ #{config-flags.$parent-selector} .ease-in-out\@#{$breakpoint} {
198
+ @include ease-in-out;
199
+ }
200
+
201
+ // Delay responsive variants
202
+ @each $name, $value in $delays {
203
+ #{config-flags.$parent-selector} .delay-#{$name}\@#{$breakpoint} {
204
+ @include delay($value);
205
+ }
206
+ }
204
207
  }
205
- }
206
208
  }
207
- }
208
209
  }