@nuvoui/core 1.3.0 → 1.3.2

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 (34) hide show
  1. package/dist/nuvoui.css +775 -1406
  2. package/dist/nuvoui.css.map +1 -1
  3. package/dist/nuvoui.min.css +1 -1
  4. package/dist/nuvoui.min.css.map +1 -1
  5. package/package.json +2 -2
  6. package/src/styles/abstracts/_config.scss +30 -2
  7. package/src/styles/abstracts/_functions.scss +16 -5
  8. package/src/styles/base/_base.scss +6 -6
  9. package/src/styles/base/_reset.scss +0 -2
  10. package/src/styles/build.scss +3 -0
  11. package/src/styles/layouts/_container.scss +8 -1
  12. package/src/styles/layouts/_flex.scss +124 -228
  13. package/src/styles/layouts/_grid.scss +14 -43
  14. package/src/styles/themes/_theme.scss +10 -10
  15. package/src/styles/themes/refactored_borders.ipynb +37 -0
  16. package/src/styles/utilities/_alignment.scss +2 -1
  17. package/src/styles/utilities/_animations.scss +20 -32
  18. package/src/styles/utilities/_backdrop-filters.scss +7 -11
  19. package/src/styles/utilities/_borders.scss +80 -270
  20. package/src/styles/utilities/_container-queries.scss +17 -21
  21. package/src/styles/utilities/_cursor.scss +2 -1
  22. package/src/styles/utilities/_display.scss +73 -44
  23. package/src/styles/utilities/_helpers.scss +1 -0
  24. package/src/styles/utilities/_media-queries.scss +3 -5
  25. package/src/styles/utilities/_opacity.scss +52 -67
  26. package/src/styles/utilities/_position.scss +104 -132
  27. package/src/styles/utilities/_shadows.scss +9 -14
  28. package/src/styles/utilities/_sizing.scss +1 -1
  29. package/src/styles/utilities/_spacing.scss +143 -205
  30. package/src/styles/utilities/_tooltips.scss +203 -200
  31. package/src/styles/utilities/_transforms.scss +9 -11
  32. package/src/styles/utilities/_transitions.scss +8 -10
  33. package/src/styles/utilities/_typography.scss +17 -22
  34. package/src/styles/utilities/_z-index.scss +12 -19
@@ -5,8 +5,9 @@
5
5
  @use "sass:list";
6
6
  @use "../utilities/colors" as COL;
7
7
  @use "../abstracts/config" as VAR;
8
+ @use "../abstracts/functions" as FN;
8
9
 
9
- @if VAR.$generate-utility-classes {
10
+ @if FN.feature-enabled("theme") {
10
11
  :root,
11
12
  #{VAR.$parent-selector} [data-theme="light"] {
12
13
  // Theme color CSS variables
@@ -79,19 +80,18 @@
79
80
  @each $color-name, $scale in COL.$colors {
80
81
  @each $shade, $value in $scale {
81
82
  // Automatic text contrast for backgrounds
82
- // todo: documentaton may add karo issay
83
83
  #{VAR.$parent-selector} .text-on-#{$color-name}-#{$shade} {
84
84
  color: COL.find-text-color($value);
85
85
  }
86
86
 
87
87
  #{VAR.$parent-selector} .text-#{$color-name}-#{$shade},
88
- #{VAR.$parent-selector} .hover\:text-#{$color-name}-#{$shade}:hover, // todo: improve these loops to save time
88
+ #{VAR.$parent-selector} .hover\:text-#{$color-name}-#{$shade}:hover,
89
89
  #{VAR.$parent-selector} .group:hover .group-hover\:text-#{$color-name}-#{$shade} {
90
90
  color: var(--#{$color-name}-#{$shade});
91
91
  }
92
92
 
93
93
  #{VAR.$parent-selector} .bg-#{$color-name}-#{$shade},
94
- #{VAR.$parent-selector} .hover\:bg-#{$color-name}-#{$shade}:hover, // todo: improve these loops to save time
94
+ #{VAR.$parent-selector} .hover\:bg-#{$color-name}-#{$shade}:hover,
95
95
  #{VAR.$parent-selector} .group:hover .group-hover\:bg-#{$color-name}-#{$shade} {
96
96
  background-color: var(--#{$color-name}-#{$shade});
97
97
  }
@@ -105,13 +105,13 @@
105
105
 
106
106
  // Base color classes
107
107
  #{VAR.$parent-selector} .text-#{$color-name},
108
- #{VAR.$parent-selector} .hover\:text-#{$color-name}:hover, // todo: improve these loops to save time
108
+ #{VAR.$parent-selector} .hover\:text-#{$color-name}:hover,
109
109
  #{VAR.$parent-selector} .group:hover .group-hover\:text-#{$color-name} {
110
110
  color: var(--#{$color-name});
111
111
  }
112
112
 
113
113
  #{VAR.$parent-selector} .bg-#{$color-name},
114
- #{VAR.$parent-selector} .hover\:bg-#{$color-name}:hover, // todo: improve these loops to save time
114
+ #{VAR.$parent-selector} .hover\:bg-#{$color-name}:hover,
115
115
  #{VAR.$parent-selector} .group:hover .group-hover\:bg-#{$color-name} {
116
116
  background-color: var(--#{$color-name});
117
117
  }
@@ -132,13 +132,13 @@
132
132
  }
133
133
 
134
134
  #{VAR.$parent-selector} .text-#{$color-name}-#{$shade},
135
- #{VAR.$parent-selector} .hover\:text-#{$color-name}-#{$shade}:hover, // todo: improve these loops to save time
135
+ #{VAR.$parent-selector} .hover\:text-#{$color-name}-#{$shade}:hover,
136
136
  #{VAR.$parent-selector} .group:hover .group-hover\:text-#{$color-name}-#{$shade} {
137
137
  color: var(--#{$color-name}-#{$shade});
138
138
  }
139
139
 
140
140
  #{VAR.$parent-selector} .bg-#{$color-name}-#{$shade},
141
- #{VAR.$parent-selector} .hover\:bg-#{$color-name}-#{$shade}:hover, // todo: improve these loops to save time
141
+ #{VAR.$parent-selector} .hover\:bg-#{$color-name}-#{$shade}:hover,
142
142
  #{VAR.$parent-selector} .group:hover .group-hover\:bg-#{$color-name}-#{$shade} {
143
143
  background-color: var(--#{$color-name}-#{$shade});
144
144
  }
@@ -152,13 +152,13 @@
152
152
 
153
153
  // Base color classes
154
154
  #{VAR.$parent-selector} .text-#{$color-name},
155
- #{VAR.$parent-selector} .hover\:text-#{$color-name}:hover, // todo: improve these loops to save time
155
+ #{VAR.$parent-selector} .hover\:text-#{$color-name}:hover,
156
156
  #{VAR.$parent-selector} .group:hover .group-hover\:text-#{$color-name} {
157
157
  color: var(--#{$color-name});
158
158
  }
159
159
 
160
160
  #{VAR.$parent-selector} .bg-#{$color-name},
161
- #{VAR.$parent-selector} .hover\:bg-#{$color-name}:hover, // todo: improve these loops to save time
161
+ #{VAR.$parent-selector} .hover\:bg-#{$color-name}:hover,
162
162
  #{VAR.$parent-selector} .group:hover .group-hover\:bg-#{$color-name} {
163
163
  background-color: var(--#{$color-name});
164
164
  }
@@ -0,0 +1,37 @@
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": null,
6
+ "id": "initial_id",
7
+ "metadata": {
8
+ "collapsed": true
9
+ },
10
+ "outputs": [],
11
+ "source": [
12
+ ""
13
+ ]
14
+ }
15
+ ],
16
+ "metadata": {
17
+ "kernelspec": {
18
+ "display_name": "Python 3",
19
+ "language": "python",
20
+ "name": "python3"
21
+ },
22
+ "language_info": {
23
+ "codemirror_mode": {
24
+ "name": "ipython",
25
+ "version": 2
26
+ },
27
+ "file_extension": ".py",
28
+ "mimetype": "text/x-python",
29
+ "name": "python",
30
+ "nbconvert_exporter": "python",
31
+ "pygments_lexer": "ipython2",
32
+ "version": "2.7.6"
33
+ }
34
+ },
35
+ "nbformat": 4,
36
+ "nbformat_minor": 5
37
+ }
@@ -1,4 +1,5 @@
1
1
  @use "../abstracts/config" as VAR;
2
+ @use "../abstracts/functions" as FN;
2
3
 
3
4
  @mixin align-baseline {
4
5
  vertical-align: baseline;
@@ -13,7 +14,7 @@
13
14
  vertical-align: bottom;
14
15
  }
15
16
 
16
- @if VAR.$generate-utility-classes {
17
+ @if FN.feature-enabled("alignments") {
17
18
  #{VAR.$parent-selector} .align-baseline {
18
19
  @include align-baseline;
19
20
  }
@@ -2,7 +2,7 @@
2
2
  @use "sass:math";
3
3
  @use "sass:map";
4
4
 
5
- @use "../abstracts/functions" as *;
5
+ @use "../abstracts/functions" as FN;
6
6
  @use "../abstracts/config" as VAR;
7
7
 
8
8
  $generated-keyframes: ();
@@ -17,11 +17,9 @@ $generated-keyframes: ();
17
17
  }
18
18
  }
19
19
 
20
- /**
21
- * @mixin animate-bounce
22
- * @description Creates a bouncing animation
23
- * @param {Map} $props - Animation properties
24
- */
20
+ // @mixin animate-bounce
21
+ // @description Creates a bouncing animation
22
+ // @param {Map} $props - Animation properties
25
23
  @mixin animate-bounce($props: ()) {
26
24
  $defaults: (
27
25
  vertical: 0.5rem,
@@ -73,11 +71,9 @@ $generated-keyframes: ();
73
71
  transition-timing-function: ease-in-out;
74
72
  }
75
73
 
76
- /**
77
- * @mixin animate-pulse
78
- * @description Creates a pulsing opacity animation
79
- * @param {Map} $props - Animation properties
80
- */
74
+ // @mixin animate-pulse
75
+ // @description Creates a pulsing opacity animation
76
+ // @param {Map} $props - Animation properties
81
77
  @mixin animate-pulse($props: ()) {
82
78
  $defaults: (
83
79
  min-opacity: 0.5,
@@ -111,11 +107,9 @@ $generated-keyframes: ();
111
107
  }
112
108
  }
113
109
 
114
- /**
115
- * @mixin animate-spin
116
- * @description Creates a spinning animation
117
- * @param {Map} $props - Animation properties
118
- */
110
+ // @mixin animate-spin
111
+ // @description Creates a spinning animation
112
+ // @param {Map} $props - Animation properties
119
113
  @mixin animate-spin($props: ()) {
120
114
  $defaults: (
121
115
  direction: normal,
@@ -150,11 +144,9 @@ $generated-keyframes: ();
150
144
  }
151
145
  }
152
146
 
153
- /**
154
- * @mixin animate-ping
155
- * @description Creates a ping animation (scale + fade)
156
- * @param {Map} $props - Animation properties
157
- */
147
+ // @mixin animate-ping
148
+ // @description Creates a ping animation (scale + fade)
149
+ // @param {Map} $props - Animation properties
158
150
  @mixin animate-ping($props: ()) {
159
151
  $defaults: (
160
152
  scale: 2,
@@ -183,11 +175,9 @@ $generated-keyframes: ();
183
175
  }
184
176
  }
185
177
 
186
- /**
187
- * @mixin animate-fade
188
- * @description Creates fade in/out animation
189
- * @param {Map} $props - Animation properties
190
- */
178
+ // @mixin animate-fade
179
+ // @description Creates fade in/out animation
180
+ // @param {Map} $props - Animation properties
191
181
  @mixin animate-fade($props: ()) {
192
182
  $defaults: (
193
183
  type: in,
@@ -248,11 +238,9 @@ $generated-keyframes: ();
248
238
  }
249
239
  }
250
240
 
251
- /**
252
- * @mixin animate-shake
253
- * @description Creates a shake animation
254
- * @param {Map} $props - Animation properties
255
- */
241
+ // @mixin animate-shake
242
+ // @description Creates a shake animation
243
+ // @param {Map} $props - Animation properties
256
244
  @mixin animate-shake($props: ()) {
257
245
  $defaults: (
258
246
  intensity: 5px,
@@ -296,7 +284,7 @@ $generated-keyframes: ();
296
284
  }
297
285
  }
298
286
 
299
- @if VAR.$generate-utility-classes {
287
+ @if FN.feature-enabled("animations") {
300
288
  // Add to your existing animation utilities
301
289
 
302
290
  #{VAR.$parent-selector} .animate-pulse {
@@ -3,16 +3,12 @@
3
3
  @use "../abstracts/config" as VAR;
4
4
  @use "../abstracts/functions" as FN;
5
5
 
6
- /**
7
- * Backdrop Filter Utilities
8
- *
9
- * Provides utility classes and mixins for backdrop-filter effects.
10
- * All utilities come with responsive variants.
11
- *
12
- * Usage:
13
- * <div class="backdrop-blur-md">Blurred backdrop</div>
14
- * <div class="backdrop-blur-lg@md">Blurred backdrop on medium screens and up</div>
15
- */
6
+ // Backdrop Filter Utilities
7
+ // Provides utility classes and mixins for backdrop-filter effects.
8
+ // All utilities come with responsive variants.
9
+ // Usage:
10
+ // <div class="backdrop-blur-md">Blurred backdrop</div>
11
+ // <div class="backdrop-blur-lg@md">Blurred backdrop on medium screens and up</div>
16
12
 
17
13
  // Blur values
18
14
  $backdrop-blur-values: (
@@ -305,7 +301,7 @@ $backdrop-filter-presets: (
305
301
  }
306
302
  }
307
303
 
308
- @if VAR.$generate-utility-classes {
304
+ @if FN.feature-enabled("backdrops") {
309
305
  // Generate base utilities
310
306
  @include generate-backdrop-filter-utilities;
311
307