@mapbox/assembly 1.12.0 → 1.12.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.
- package/dist/assembly.css +479 -159
- package/dist/assembly.css.map +1 -1
- package/dist/assembly.js +1 -1
- package/package.json +5 -2
- package/src/layout.css +125 -42
- package/src/md4-shim.js +15 -14
- package/src/svgs/pen.svg +2 -2
- package/src/svgs/swipe.svg +1 -1
package/src/layout.css
CHANGED
|
@@ -72,10 +72,18 @@
|
|
|
72
72
|
* <div class="inline-block bg-darken10">inline-block</div>
|
|
73
73
|
* <div class="none bg-darken10">none</div>
|
|
74
74
|
*/
|
|
75
|
-
.inline {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
.
|
|
75
|
+
.inline {
|
|
76
|
+
display: inline !important;
|
|
77
|
+
}
|
|
78
|
+
.block {
|
|
79
|
+
display: block !important;
|
|
80
|
+
}
|
|
81
|
+
.inline-block {
|
|
82
|
+
display: inline-block !important;
|
|
83
|
+
}
|
|
84
|
+
.none {
|
|
85
|
+
display: none !important;
|
|
86
|
+
}
|
|
79
87
|
/** @endgroup */
|
|
80
88
|
|
|
81
89
|
/**
|
|
@@ -102,11 +110,21 @@
|
|
|
102
110
|
* -->
|
|
103
111
|
* </div>
|
|
104
112
|
*/
|
|
105
|
-
.fixed {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.
|
|
109
|
-
|
|
113
|
+
.fixed {
|
|
114
|
+
position: fixed !important;
|
|
115
|
+
}
|
|
116
|
+
.absolute {
|
|
117
|
+
position: absolute !important;
|
|
118
|
+
}
|
|
119
|
+
.relative {
|
|
120
|
+
position: relative !important;
|
|
121
|
+
}
|
|
122
|
+
.static {
|
|
123
|
+
position: static !important;
|
|
124
|
+
}
|
|
125
|
+
.sticky {
|
|
126
|
+
position: sticky !important;
|
|
127
|
+
}
|
|
110
128
|
/** @endgroup */
|
|
111
129
|
|
|
112
130
|
/**
|
|
@@ -122,10 +140,18 @@
|
|
|
122
140
|
* <div class="absolute bg-darken10 top left right align-center">top left right</div>
|
|
123
141
|
* </div>
|
|
124
142
|
*/
|
|
125
|
-
.top {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
.
|
|
143
|
+
.top {
|
|
144
|
+
top: 0 !important;
|
|
145
|
+
}
|
|
146
|
+
.right {
|
|
147
|
+
right: 0 !important;
|
|
148
|
+
}
|
|
149
|
+
.left {
|
|
150
|
+
left: 0 !important;
|
|
151
|
+
}
|
|
152
|
+
.bottom {
|
|
153
|
+
bottom: 0 !important;
|
|
154
|
+
}
|
|
129
155
|
/** @endgroup */
|
|
130
156
|
|
|
131
157
|
/**
|
|
@@ -141,13 +167,27 @@
|
|
|
141
167
|
* <div class="absolute z1-neg1 bg-blue px6 py6 mt24 ml60">z-neg1</div>
|
|
142
168
|
* </div>
|
|
143
169
|
*/
|
|
144
|
-
.z-neg1 {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
.
|
|
170
|
+
.z-neg1 {
|
|
171
|
+
z-index: -1 !important;
|
|
172
|
+
}
|
|
173
|
+
.z0 {
|
|
174
|
+
z-index: 0 !important;
|
|
175
|
+
}
|
|
176
|
+
.z1 {
|
|
177
|
+
z-index: 1 !important;
|
|
178
|
+
}
|
|
179
|
+
.z2 {
|
|
180
|
+
z-index: 2 !important;
|
|
181
|
+
}
|
|
182
|
+
.z3 {
|
|
183
|
+
z-index: 3 !important;
|
|
184
|
+
}
|
|
185
|
+
.z4 {
|
|
186
|
+
z-index: 4 !important;
|
|
187
|
+
}
|
|
188
|
+
.z5 {
|
|
189
|
+
z-index: 5 !important;
|
|
190
|
+
}
|
|
151
191
|
/** @endgroup */
|
|
152
192
|
|
|
153
193
|
/**
|
|
@@ -163,7 +203,7 @@
|
|
|
163
203
|
*/
|
|
164
204
|
|
|
165
205
|
/**
|
|
166
|
-
* Set `auto` margins on left and right. This pattern is useful for horizontally centering block elements
|
|
206
|
+
* Set `auto` margins on left and right. This pattern is useful for horizontally centering block elements
|
|
167
207
|
* or aligning block elements to the start or end of their container.
|
|
168
208
|
*
|
|
169
209
|
* @example
|
|
@@ -172,9 +212,16 @@
|
|
|
172
212
|
* <div class='mr-auto w60 bg-darken10'>mr-auto</div>
|
|
173
213
|
* @memberof Margins
|
|
174
214
|
*/
|
|
175
|
-
.mx-auto {
|
|
176
|
-
|
|
177
|
-
|
|
215
|
+
.mx-auto {
|
|
216
|
+
margin-left: auto !important;
|
|
217
|
+
margin-right: auto !important;
|
|
218
|
+
}
|
|
219
|
+
.ml-auto {
|
|
220
|
+
margin-left: auto !important;
|
|
221
|
+
}
|
|
222
|
+
.mr-auto {
|
|
223
|
+
margin-right: auto !important;
|
|
224
|
+
}
|
|
178
225
|
|
|
179
226
|
/**
|
|
180
227
|
* All padding classes fit the following pattern: `m<side><size>`.
|
|
@@ -214,8 +261,12 @@
|
|
|
214
261
|
* <div class='bg-darken10 flex'>flex</div>
|
|
215
262
|
* <div class='bg-darken10 inline-flex'>inline-flex</div>
|
|
216
263
|
*/
|
|
217
|
-
.flex {
|
|
218
|
-
|
|
264
|
+
.flex {
|
|
265
|
+
display: flex !important;
|
|
266
|
+
}
|
|
267
|
+
.inline-flex {
|
|
268
|
+
display: inline-flex !important;
|
|
269
|
+
}
|
|
219
270
|
/** @endgroup */
|
|
220
271
|
|
|
221
272
|
/**
|
|
@@ -229,7 +280,9 @@
|
|
|
229
280
|
* <span>3</span>
|
|
230
281
|
* </div>
|
|
231
282
|
*/
|
|
232
|
-
.flex--column {
|
|
283
|
+
.flex--column {
|
|
284
|
+
flex-direction: column !important;
|
|
285
|
+
}
|
|
233
286
|
|
|
234
287
|
/**
|
|
235
288
|
* Set the direction of the main axis to bottom-to-top (default is left-to-right).
|
|
@@ -242,7 +295,9 @@
|
|
|
242
295
|
* <span>3</span>
|
|
243
296
|
* </div>
|
|
244
297
|
*/
|
|
245
|
-
.flex--column-reverse {
|
|
298
|
+
.flex--column-reverse {
|
|
299
|
+
flex-direction: column-reverse !important;
|
|
300
|
+
}
|
|
246
301
|
|
|
247
302
|
/**
|
|
248
303
|
* Set the direction of the main axis to left-to-right (the default value of `flex`).
|
|
@@ -255,7 +310,9 @@
|
|
|
255
310
|
* <span>3</span>
|
|
256
311
|
* </div>
|
|
257
312
|
*/
|
|
258
|
-
.flex--row {
|
|
313
|
+
.flex--row {
|
|
314
|
+
flex-direction: row !important;
|
|
315
|
+
}
|
|
259
316
|
|
|
260
317
|
/**
|
|
261
318
|
* Set the direction of the main axis to right-to-left (default is left-to-right).
|
|
@@ -268,7 +325,9 @@
|
|
|
268
325
|
* <span>3</span>
|
|
269
326
|
* </div>
|
|
270
327
|
*/
|
|
271
|
-
.flex--row-reverse {
|
|
328
|
+
.flex--row-reverse {
|
|
329
|
+
flex-direction: row-reverse !important;
|
|
330
|
+
}
|
|
272
331
|
|
|
273
332
|
/**
|
|
274
333
|
* Center an element's children on the main axis.
|
|
@@ -279,7 +338,9 @@
|
|
|
279
338
|
* <div class='bg-darken10'>child</div>
|
|
280
339
|
* </div>
|
|
281
340
|
*/
|
|
282
|
-
.flex--center-main {
|
|
341
|
+
.flex--center-main {
|
|
342
|
+
justify-content: center !important;
|
|
343
|
+
}
|
|
283
344
|
|
|
284
345
|
/**
|
|
285
346
|
* Center an element's children on the cross axis.
|
|
@@ -290,7 +351,9 @@
|
|
|
290
351
|
* <div class='bg-darken10'>child</div>
|
|
291
352
|
* </div>
|
|
292
353
|
*/
|
|
293
|
-
.flex--center-cross {
|
|
354
|
+
.flex--center-cross {
|
|
355
|
+
align-items: center !important;
|
|
356
|
+
}
|
|
294
357
|
|
|
295
358
|
/**
|
|
296
359
|
* Align an element's children to the start of the cross axis.
|
|
@@ -302,7 +365,9 @@
|
|
|
302
365
|
* <div class='bg-darken10'>child</div>
|
|
303
366
|
* </div>
|
|
304
367
|
*/
|
|
305
|
-
.flex--start-cross {
|
|
368
|
+
.flex--start-cross {
|
|
369
|
+
align-items: flex-start !important;
|
|
370
|
+
}
|
|
306
371
|
|
|
307
372
|
/**
|
|
308
373
|
* Align an element's children to the start of the main axis.
|
|
@@ -313,7 +378,9 @@
|
|
|
313
378
|
* <div class='bg-darken10'>child</div>
|
|
314
379
|
* </div>
|
|
315
380
|
*/
|
|
316
|
-
.flex--start-main {
|
|
381
|
+
.flex--start-main {
|
|
382
|
+
justify-content: flex-start !important;
|
|
383
|
+
}
|
|
317
384
|
|
|
318
385
|
/**
|
|
319
386
|
* Align an element's children to the end of the cross axis.
|
|
@@ -325,7 +392,9 @@
|
|
|
325
392
|
* <div class='bg-darken10'>child</div>
|
|
326
393
|
* </div>
|
|
327
394
|
*/
|
|
328
|
-
.flex--end-cross {
|
|
395
|
+
.flex--end-cross {
|
|
396
|
+
align-items: flex-end !important;
|
|
397
|
+
}
|
|
329
398
|
|
|
330
399
|
/**
|
|
331
400
|
* Align an element's children to the end of the main axis.
|
|
@@ -336,7 +405,9 @@
|
|
|
336
405
|
* <div class='bg-darken10'>child</div>
|
|
337
406
|
* </div>
|
|
338
407
|
*/
|
|
339
|
-
.flex--end-main {
|
|
408
|
+
.flex--end-main {
|
|
409
|
+
justify-content: flex-end !important;
|
|
410
|
+
}
|
|
340
411
|
|
|
341
412
|
/**
|
|
342
413
|
* Allow children to wrap. By default, they are all forced onto one line.
|
|
@@ -348,7 +419,9 @@
|
|
|
348
419
|
* <div class='bg-darken10 w600'>child</div>
|
|
349
420
|
* </div>
|
|
350
421
|
*/
|
|
351
|
-
.flex--wrap {
|
|
422
|
+
.flex--wrap {
|
|
423
|
+
flex-wrap: wrap !important;
|
|
424
|
+
}
|
|
352
425
|
|
|
353
426
|
/**
|
|
354
427
|
* Stretch children to fill the parent container along the cross axis.
|
|
@@ -359,7 +432,9 @@
|
|
|
359
432
|
* <div class='bg-darken10'>child</div>
|
|
360
433
|
* </div>
|
|
361
434
|
*/
|
|
362
|
-
.flex--stretch-cross {
|
|
435
|
+
.flex--stretch-cross {
|
|
436
|
+
align-items: stretch !important;
|
|
437
|
+
}
|
|
363
438
|
|
|
364
439
|
/**
|
|
365
440
|
* Evenly distribute children across the line, so first child is at the start
|
|
@@ -372,7 +447,9 @@
|
|
|
372
447
|
* <div class='bg-darken10'>child</div>
|
|
373
448
|
* </div>
|
|
374
449
|
*/
|
|
375
|
-
.flex--space-between-main {
|
|
450
|
+
.flex--space-between-main {
|
|
451
|
+
justify-content: space-between !important;
|
|
452
|
+
}
|
|
376
453
|
|
|
377
454
|
/**
|
|
378
455
|
* Make a child to grow to fill whatever space is available in the main axis of the parent container.
|
|
@@ -479,9 +556,15 @@
|
|
|
479
556
|
* <div class='bg-darken10'> without .clearfix </div>
|
|
480
557
|
* <div class='fl unfloat'>unfloat</div>
|
|
481
558
|
*/
|
|
482
|
-
.fl {
|
|
483
|
-
|
|
484
|
-
|
|
559
|
+
.fl {
|
|
560
|
+
float: left !important;
|
|
561
|
+
}
|
|
562
|
+
.fr {
|
|
563
|
+
float: right !important;
|
|
564
|
+
}
|
|
565
|
+
.unfloat {
|
|
566
|
+
float: none !important;
|
|
567
|
+
}
|
|
485
568
|
.clearfix::after {
|
|
486
569
|
content: '' !important;
|
|
487
570
|
display: block !important;
|
package/src/md4-shim.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
const crypto = require('crypto');
|
|
2
3
|
// MD4 algorithm is not available anymore in NodeJS 17+ (because of lib SSL 3).
|
|
3
4
|
// https://stackoverflow.com/a/72219174/1447466
|
|
4
5
|
// config.output.hashFunction = 'md5'
|
|
5
6
|
// is supposed to disables MD4, but it doesn't work correctly until
|
|
6
7
|
// https://github.com/webpack/webpack/pull/14306
|
|
7
8
|
try {
|
|
8
|
-
|
|
9
|
+
crypto.createHash('md4');
|
|
9
10
|
} catch (e) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
let printed = false;
|
|
12
|
+
const print = alg => {
|
|
13
|
+
if (alg !== 'md4') return;
|
|
14
|
+
if (printed) return;
|
|
15
|
+
printed = true;
|
|
16
|
+
console.warn('MD4 is unsupported, replacing it with MD5');
|
|
17
|
+
};
|
|
18
|
+
const createHash = crypto.createHash;
|
|
19
|
+
crypto.createHash = (alg, ...params) => {
|
|
20
|
+
print(alg);
|
|
21
|
+
return createHash(alg === 'md4' ? 'md5' : alg, ...params);
|
|
22
|
+
};
|
|
22
23
|
}
|
package/src/svgs/pen.svg
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
2
|
<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<path d="M9.
|
|
4
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.46 1.293c.257-.256.634-.354.983-.255l10.533 3.01a4 4 0 0 1 2.9 3.846v3.982l.647.647a.5.5 0 0 1 0 .707l-3.293 3.293a.5.5 0 0 1-.707 0l-.647-.647H7.894a4 4 0 0 1-3.846-2.9L1.038 2.443c-.1-.35-.001-.726.255-.983l.167-.167Zm2.123 1.583a.5.5 0 0 0-.707.
|
|
3
|
+
<path d="M9.626 7.876a1.75 1.75 0 1 1 0 3.501 1.75 1.75 0 0 1 0-3.5Z"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.46 1.293c.257-.256.634-.354.983-.255l10.533 3.01a4 4 0 0 1 2.9 3.846v3.982l.647.647a.5.5 0 0 1 0 .707l-3.293 3.293a.5.5 0 0 1-.707 0l-.647-.647H7.894a4 4 0 0 1-3.846-2.9L1.038 2.443c-.1-.35-.001-.726.255-.983l.167-.167Zm2.123 1.583a.5.5 0 0 0-.707.707l4.485 4.485a2.75 2.75 0 1 0 .707-.707L3.583 2.876Z"/>
|
|
5
5
|
</svg>
|
package/src/svgs/swipe.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
2
|
<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h12ZM9.5
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15 2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h12ZM9.5 8H11a1 1 0 1 1 0 2H9.5v4H14V4H9.5v4ZM4 14h4.5v-4H7a1 1 0 0 1 0-2h1.5V4H4v10Z"/>
|
|
4
4
|
</svg>
|