maverick-wave 3.6.3 → 3.9.0

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "maverick-wave",
3
- "version": "3.6.3",
3
+ "version": "3.9.0",
4
4
  "config": {
5
- "version_short": "3.6"
5
+ "version_short": "3.9"
6
6
  },
7
7
  "description": "A lightweight, modern CSS framework for building responsive websites with elegance and speed.",
8
8
  "main": "src/js/main.js",
@@ -1,6 +1,6 @@
1
1
  <h3 class="mw-section-subtitle">Empty State</h3>
2
2
 
3
- <div class="mw-grid-2 mw-gap-6">
3
+ <div class="mw-grid-2-lg">
4
4
  <div>
5
5
  <h3 class="mw-card-title mw-mb-4">Basic & Color Variants</h3>
6
6
  <div class="mw-card mw-card-simple">
@@ -4,7 +4,7 @@
4
4
  light up. You can also determine the icon flexibly.
5
5
  </p>
6
6
 
7
- <div class="mw-grid-2">
7
+ <div class="mw-grid-2-lg">
8
8
  <div>
9
9
  <h3 class="mw-mb-4">Ratings in different sizes</h3>
10
10
  <div class="mw-card mw-card-simple">
@@ -15,7 +15,6 @@
15
15
  <th>Name</th>
16
16
  <th>Position</th>
17
17
  <th>Location</th>
18
- <th>Status</th>
19
18
  <th class="mw-text-numeric">Budget</th>
20
19
  </tr>
21
20
  </thead>
@@ -25,7 +24,6 @@
25
24
  <td>John Doe</td>
26
25
  <td>Developer</td>
27
26
  <td>New York</td>
28
- <td><span class="mw-tag mw-tag-success">Active</span></td>
29
27
  <td class="mw-text-numeric">1,204.50</td>
30
28
  </tr>
31
29
  <tr>
@@ -33,7 +31,6 @@
33
31
  <td>Jane Smith</td>
34
32
  <td>Designer</td>
35
33
  <td>London</td>
36
- <td><span class="mw-tag mw-tag-warning">Pending</span></td>
37
34
  <td class="mw-text-numeric">87.00</td>
38
35
  </tr>
39
36
  <tr>
@@ -41,7 +38,6 @@
41
38
  <td>Bob Johnson</td>
42
39
  <td>Manager</td>
43
40
  <td>Berlin</td>
44
- <td><span class="mw-tag mw-tag-muted">Draft</span></td>
45
41
  <td class="mw-text-numeric">15,930.25</td>
46
42
  </tr>
47
43
  </tbody>
@@ -1,6 +1,6 @@
1
1
  <h3 class="mw-section-subtitle">Tags</h3>
2
2
 
3
- <div class="mw-grid-3 mw-gap-6">
3
+ <div class="mw-grid-2-lg mw-gap-6">
4
4
  <!-- COLUMN 1: Basic & Status -->
5
5
  <div>
6
6
  <h3 class="mw-card-title mw-mb-4">Status & Types</h3>
@@ -21,7 +21,7 @@ $danger-color: #db182f !default;
21
21
  $info-color: #17a2b8 !default;
22
22
  $gray-color: #565656 !default;
23
23
  $dark-background: #0b111a !default;
24
- $dark-text-color: #dd2222 !default;
24
+ $dark-text-color: #d6dbdf !default;
25
25
  $light-background: #d2d1e1 !default;
26
26
  $light-text-color: #1a1a1d !default;
27
27
  // Form controls stay light in both themes, so they get their own root value
@@ -10,7 +10,7 @@
10
10
 
11
11
  html {
12
12
  scroll-behavior: smooth;
13
- min-width: 360px;
13
+ min-width: 375px;
14
14
  // Keeps anchor targets clear of the fixed header, plus a bit of breathing room
15
15
  scroll-padding-top: calc(var(--mw-header-height) + #{spacing('4')});
16
16
  -webkit-text-size-adjust: 100%;
@@ -2,6 +2,8 @@
2
2
 
3
3
  .mw-rating {
4
4
  display: inline-flex;
5
+ flex-wrap: wrap;
6
+ max-width: 100%;
5
7
  gap: spacing('3');
6
8
  font-size: font-size('2xl');
7
9
  padding: spacing('2') spacing('4');
@@ -32,7 +34,7 @@
32
34
 
33
35
  &-icon {
34
36
  color: var(--mw-gray-color);
35
- transition: color var(--mw-transition);
37
+ transition: var(--mw-transition);
36
38
  pointer-events: none;
37
39
  }
38
40
  }
@@ -98,10 +98,15 @@ $_mw-tag-colors: (
98
98
  }
99
99
 
100
100
  // Size variants
101
+ // a little more air between the items instead of inside them
102
+ .mw-tags-lg {
103
+ gap: spacing('3');
104
+ }
105
+
101
106
  .mw-tags-lg .mw-tags-item,
102
107
  .mw-tag-lg {
103
108
  font-size: font-size('sm');
104
- padding: spacing('1') spacing('3');
109
+ padding: spacing('2') spacing('3');
105
110
 
106
111
  .mw-tags-remove {
107
112
  width: 22px;
@@ -20,10 +20,11 @@ $_size-lg: spacing('7');
20
20
 
21
21
  &-inline {
22
22
  flex-direction: row;
23
+ flex-wrap: wrap;
23
24
  align-items: center;
24
- gap: spacing('6');
25
+ gap: spacing('2') spacing('6');
25
26
  @include media-down('sm') {
26
- gap: spacing('4');
27
+ gap: spacing('2') spacing('4');
27
28
  }
28
29
  }
29
30
  }
@@ -17,7 +17,7 @@
17
17
 
18
18
  .mw-grid-1 {
19
19
  @extend %grid-base;
20
- grid-template-columns: 1fr;
20
+ grid-template-columns: minmax(0, 1fr);
21
21
 
22
22
  justify-items: stretch;
23
23
  > * {
@@ -28,57 +28,57 @@
28
28
 
29
29
  .mw-grid-2 {
30
30
  @extend %grid-base;
31
- grid-template-columns: repeat(2, 1fr);
31
+ grid-template-columns: repeat(2, minmax(0, 1fr));
32
32
 
33
33
  @include media-down('sm') {
34
- grid-template-columns: 1fr;
34
+ grid-template-columns: minmax(0, 1fr);
35
35
  }
36
36
  }
37
37
 
38
38
  .mw-grid-3 {
39
39
  @extend %grid-base;
40
- grid-template-columns: repeat(3, 1fr);
40
+ grid-template-columns: repeat(3, minmax(0, 1fr));
41
41
 
42
42
  @include media-down('md') {
43
- grid-template-columns: repeat(2, 1fr);
43
+ grid-template-columns: repeat(2, minmax(0, 1fr));
44
44
  }
45
45
 
46
46
  @include media-down('sm') {
47
- grid-template-columns: 1fr;
47
+ grid-template-columns: minmax(0, 1fr);
48
48
  }
49
49
  }
50
50
 
51
51
  .mw-grid-4 {
52
52
  @extend %grid-base;
53
- grid-template-columns: repeat(4, 1fr);
53
+ grid-template-columns: repeat(4, minmax(0, 1fr));
54
54
 
55
55
  @include media-down('lg') {
56
- grid-template-columns: repeat(2, 1fr);
56
+ grid-template-columns: repeat(2, minmax(0, 1fr));
57
57
  }
58
58
 
59
59
  @include media-down('sm') {
60
- grid-template-columns: 1fr;
60
+ grid-template-columns: minmax(0, 1fr);
61
61
  }
62
62
  }
63
63
 
64
64
  .mw-grid-5 {
65
65
  @extend %grid-base;
66
- grid-template-columns: repeat(5, 1fr);
66
+ grid-template-columns: repeat(5, minmax(0, 1fr));
67
67
 
68
68
  @include media-down('lg') {
69
- grid-template-columns: repeat(4, 1fr);
69
+ grid-template-columns: repeat(4, minmax(0, 1fr));
70
70
  }
71
71
 
72
72
  @include media-down('md') {
73
- grid-template-columns: repeat(3, 1fr);
73
+ grid-template-columns: repeat(3, minmax(0, 1fr));
74
74
  }
75
75
 
76
76
  @include media-down('sm') {
77
- grid-template-columns: repeat(2, 1fr);
77
+ grid-template-columns: repeat(2, minmax(0, 1fr));
78
78
  }
79
79
 
80
80
  @include media-down('xs') {
81
- grid-template-columns: 1fr;
81
+ grid-template-columns: minmax(0, 1fr);
82
82
  }
83
83
  }
84
84
 
@@ -87,11 +87,11 @@
87
87
  @extend %grid-base;
88
88
 
89
89
  // Default: 12-column grid (you can adjust this base)
90
- grid-template-columns: repeat(12, 1fr);
90
+ grid-template-columns: repeat(12, minmax(0, 1fr));
91
91
 
92
92
  // At MD breakpoint and below, force single column
93
93
  @include media-down('md') {
94
- grid-template-columns: 1fr;
94
+ grid-template-columns: minmax(0, 1fr);
95
95
 
96
96
  // Reset all spans to full width
97
97
  > * {
@@ -110,7 +110,7 @@
110
110
  // Responsive auto grid
111
111
  .mw-grid-auto {
112
112
  @extend %grid-base;
113
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
113
+ grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
114
114
 
115
115
  // Ensure children don't override the grid behavior
116
116
  > * {
@@ -123,12 +123,12 @@
123
123
  // Alternative with different minimum widths
124
124
  .mw-grid-auto-sm {
125
125
  @extend %grid-base;
126
- grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
126
+ grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
127
127
  }
128
128
 
129
129
  .mw-grid-auto-md {
130
130
  @extend %grid-base;
131
- grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
131
+ grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
132
132
  }
133
133
 
134
134
  .mw-grid-lg {
@@ -137,7 +137,7 @@
137
137
 
138
138
  .mw-grid-1-lg {
139
139
  @extend %grid-base-lg;
140
- grid-template-columns: 1fr;
140
+ grid-template-columns: minmax(0, 1fr);
141
141
  justify-items: stretch;
142
142
  > * {
143
143
  width: 100% !important;
@@ -147,72 +147,72 @@
147
147
 
148
148
  .mw-grid-2-lg {
149
149
  @extend %grid-base-lg;
150
- grid-template-columns: repeat(2, 1fr);
150
+ grid-template-columns: repeat(2, minmax(0, 1fr));
151
151
  @include media-down('sm') {
152
- grid-template-columns: 1fr;
152
+ grid-template-columns: minmax(0, 1fr);
153
153
  gap: spacing('6');
154
154
  }
155
155
  }
156
156
 
157
157
  .mw-grid-3-lg {
158
158
  @extend %grid-base-lg;
159
- grid-template-columns: repeat(3, 1fr);
159
+ grid-template-columns: repeat(3, minmax(0, 1fr));
160
160
  @include media-down('lg') {
161
- grid-template-columns: repeat(2, 1fr);
161
+ grid-template-columns: repeat(2, minmax(0, 1fr));
162
162
  gap: spacing('7');
163
163
  }
164
164
  @include media-down('sm') {
165
- grid-template-columns: 1fr;
165
+ grid-template-columns: minmax(0, 1fr);
166
166
  gap: spacing('6');
167
167
  }
168
168
  }
169
169
 
170
170
  .mw-grid-4-lg {
171
171
  @extend %grid-base-lg;
172
- grid-template-columns: repeat(4, 1fr);
172
+ grid-template-columns: repeat(4, minmax(0, 1fr));
173
173
  @include media-down('xl') {
174
- grid-template-columns: repeat(2, 1fr);
174
+ grid-template-columns: repeat(2, minmax(0, 1fr));
175
175
  }
176
176
  @include media-down('md') {
177
177
  gap: spacing('7');
178
178
  }
179
179
  @include media-down('sm') {
180
- grid-template-columns: 1fr;
180
+ grid-template-columns: minmax(0, 1fr);
181
181
  gap: spacing('6');
182
182
  }
183
183
  }
184
184
 
185
185
  .mw-grid-5-lg {
186
186
  @extend %grid-base-lg;
187
- grid-template-columns: repeat(5, 1fr);
187
+ grid-template-columns: repeat(5, minmax(0, 1fr));
188
188
  @include media-down('xl') {
189
- grid-template-columns: repeat(4, 1fr);
189
+ grid-template-columns: repeat(4, minmax(0, 1fr));
190
190
  }
191
191
  @include media-down('lg') {
192
- grid-template-columns: repeat(3, 1fr);
192
+ grid-template-columns: repeat(3, minmax(0, 1fr));
193
193
  }
194
194
  @include media-down('md') {
195
- grid-template-columns: repeat(2, 1fr);
195
+ grid-template-columns: repeat(2, minmax(0, 1fr));
196
196
  gap: spacing('7');
197
197
  }
198
198
  @include media-down('sm') {
199
- grid-template-columns: 1fr;
199
+ grid-template-columns: minmax(0, 1fr);
200
200
  gap: spacing('6');
201
201
  }
202
202
  }
203
203
 
204
204
  .mw-grid-auto-lg {
205
205
  @extend %grid-base-lg;
206
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
206
+ grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
207
207
  }
208
208
 
209
209
  // Flexible grids with large spacing
210
210
  .mw-grid-flex-lg {
211
211
  @extend %grid-base-lg;
212
- grid-template-columns: repeat(12, 1fr);
212
+ grid-template-columns: repeat(12, minmax(0, 1fr));
213
213
 
214
214
  @include media-down('md') {
215
- grid-template-columns: 1fr;
215
+ grid-template-columns: minmax(0, 1fr);
216
216
  gap: spacing('5');
217
217
  > * {
218
218
  grid-column: 1 / -1 !important;
@@ -223,7 +223,7 @@
223
223
  // Base stack - items keep their natural width
224
224
  .mw-grid-stack {
225
225
  @extend %grid-base;
226
- grid-template-columns: 1fr;
226
+ grid-template-columns: minmax(0, 1fr);
227
227
  justify-items: start; // Items keep natural width, aligned left
228
228
 
229
229
  // Remove the forced width from grid-1
@@ -236,7 +236,7 @@
236
236
  // Stack variants with different alignments
237
237
  .mw-grid-stack-center {
238
238
  @extend %grid-base;
239
- grid-template-columns: 1fr;
239
+ grid-template-columns: minmax(0, 1fr);
240
240
  justify-items: center;
241
241
 
242
242
  > * {
@@ -246,7 +246,7 @@
246
246
 
247
247
  .mw-grid-stack-end {
248
248
  @extend %grid-base;
249
- grid-template-columns: 1fr;
249
+ grid-template-columns: minmax(0, 1fr);
250
250
  justify-items: end;
251
251
 
252
252
  > * {
@@ -257,7 +257,7 @@
257
257
 
258
258
  .mw-grid-stack-stretch {
259
259
  @extend %grid-base;
260
- grid-template-columns: 1fr;
260
+ grid-template-columns: minmax(0, 1fr);
261
261
  justify-items: stretch;
262
262
 
263
263
  > * {
@@ -269,7 +269,7 @@
269
269
  // Large spacing variants
270
270
  .mw-grid-stack-lg {
271
271
  @extend %grid-base-lg;
272
- grid-template-columns: 1fr;
272
+ grid-template-columns: minmax(0, 1fr);
273
273
  justify-items: start;
274
274
 
275
275
  > * {
@@ -280,7 +280,7 @@
280
280
 
281
281
  .mw-grid-stack-center-lg {
282
282
  @extend %grid-base-lg;
283
- grid-template-columns: 1fr;
283
+ grid-template-columns: minmax(0, 1fr);
284
284
  justify-items: center;
285
285
 
286
286
  > * {