@mezzanine-ui/system 1.0.0-canary.1 → 1.0.0-canary.11

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.
@@ -9,9 +9,6 @@ $effect-contexts: (shadow, focus);
9
9
 
10
10
  $effect-values: (
11
11
  shadow: (
12
- none: (
13
- value: 0 0 0 0 rgb(0 0 0 / 0%),
14
- ),
15
12
  raised: (
16
13
  value: 0 0 6px 0 semantic.variable(shadow, dark),
17
14
  ),
@@ -21,15 +18,30 @@ $effect-values: (
21
18
  modal: (
22
19
  value: string.unquote('0 9px 28px 8px #{semantic.variable(shadow, dark-faint)}, 0 20px 24px -4px #{semantic.variable(shadow, dark-light)}, 0 3px 6px -4px #{semantic.variable(shadow, dark-ghost)}'),
23
20
  ),
24
- table-sticky: (
21
+ drawer: (
22
+ value: -6px 0 10px 0 semantic.variable(shadow, dark),
23
+ ),
24
+ table-sticky-left: (
25
25
  value: 1px 0 4px 0 semantic.variable(shadow, dark),
26
26
  ),
27
+ table-sticky-right: (
28
+ value: -1px 0 4px 0 semantic.variable(shadow, dark),
29
+ ),
30
+ table-list-floating: (
31
+ value: 0px 6px 16px 0 semantic.variable(shadow, dark),
32
+ ),
27
33
  slider-handle: (
28
34
  value: 0 2px 3px 0 semantic.variable(shadow, brand),
29
35
  ),
30
36
  inner-top-and-bottom: (
31
37
  value: string.unquote('0 1px 1px 0 #{semantic.variable(shadow, light-faint)} inset, 0 -1px 1px 0 #{semantic.variable(shadow, light-faint)} inset, 0 0 12px 0 #{semantic.variable(shadow, dark)}'),
32
38
  ),
39
+ inner-top: (
40
+ value: string.unquote('0 1px 1px 0 #{semantic.variable(shadow, light-faint)} inset, 0 0 12px 0 #{semantic.variable(shadow, dark)}'),
41
+ ),
42
+ inner-bottom: (
43
+ value: string.unquote('0 -1px 1px 0 #{semantic.variable(shadow, light-faint)} inset, 0 0 12px 0 #{semantic.variable(shadow, dark)}'),
44
+ ),
33
45
  ),
34
46
  focus: (
35
47
  primary: (
@@ -3,21 +3,38 @@
3
3
 
4
4
  $prefix: mzn-motion;
5
5
 
6
- $duration-names: (shortest, shorter, short, standard, long);
6
+ $duration-names: (fast, moderate, slow, loop, pause-short, pause-long);
7
7
  $default-durations: (
8
- shortest: 150ms,
9
- shorter: 200ms,
10
- short: 250ms,
11
- standard: 300ms,
12
- long: 375ms,
8
+ fast: 150ms,
9
+ moderate: 250ms,
10
+ slow: 400ms,
11
+ long: 1000ms,
12
+ loop: 1600ms,
13
+ pause-short: 3000ms,
14
+ pause-long: 10000ms,
13
15
  );
14
16
 
15
- $easing-names: (standard, emphasized, decelerated, accelerated);
17
+ $easing-names: (entrance, exit, standard);
16
18
  $default-easings: (
17
- standard: cubic-bezier(0.58, 0.01, 0.29, 1.01),
18
- emphasized: cubic-bezier(0.83, 0, 0.17, 1),
19
- decelerated: cubic-bezier(0, 0, 0.3, 1),
20
- accelerated: cubic-bezier(0.32, 0, 0.67, 0),
19
+ entrance: cubic-bezier(0.0, 0.0, 0.58, 1),
20
+ exit: cubic-bezier(0.42, 0.0, 1, 1),
21
+ standard: cubic-bezier(0.4, 0.0, 0.2, 1),
22
+ );
23
+
24
+ $pattern-names: (breathe, skeleton-loading, spin);
25
+ $default-pattern: (
26
+ breathe: (
27
+ duration: loop,
28
+ easing: standard,
29
+ ),
30
+ skeleton-loading: (
31
+ duration: loop,
32
+ easing: standard,
33
+ ),
34
+ spin: (
35
+ duration: loop,
36
+ easing: entrance,
37
+ ),
21
38
  );
22
39
 
23
40
  $default-options: (
@@ -33,6 +50,10 @@ $default-options: (
33
50
  @return list.includes($easing-names, $easing-name);
34
51
  }
35
52
 
53
+ @function is-pattern-name-valid($pattern-name) {
54
+ @return list.includes($pattern-names, $pattern-name);
55
+ }
56
+
36
57
  @function duration($duration-name) {
37
58
  @if not is-duration-name-valid($duration-name) {
38
59
  @error 'Invalid duration name #{$duration-name}. Please choose one of #{$duration-names}';
@@ -62,3 +83,19 @@ $default-options: (
62
83
  --#{$prefix}-easing-#{$name}: #{$value};
63
84
  }
64
85
  }
86
+
87
+ @mixin pattern($pattern-name, $action-name: animation) {
88
+ @if not is-pattern-name-valid($pattern-name) {
89
+ @error 'Invalid pattern name #{$pattern-name}. Please choose one of #{$pattern-names}';
90
+ }
91
+
92
+ $pattern: map.get($default-pattern, $pattern-name);
93
+
94
+ @if $pattern {
95
+ $duration-name: map.get($pattern, duration);
96
+ $easing-name: map.get($pattern, easing);
97
+
98
+ #{$action-name}-duration: duration($duration-name);
99
+ #{$action-name}-timing-function: easing($easing-name);
100
+ }
101
+ }
@@ -1,2 +1,2 @@
1
- export type MotionDurationType = 'shortest' | 'shorter' | 'short' | 'standard' | 'long';
1
+ export type MotionDurationType = 'fast' | 'moderate' | 'slow' | 'loop' | 'pauseShort' | 'pauseLong';
2
2
  export declare const MOTION_DURATION: Readonly<Record<MotionDurationType, number>>;
@@ -1,9 +1,10 @@
1
1
  const MOTION_DURATION = {
2
- shortest: 150,
3
- shorter: 200,
4
- short: 250,
5
- standard: 300,
6
- long: 375,
2
+ fast: 150,
3
+ moderate: 250,
4
+ slow: 400,
5
+ loop: 1600,
6
+ pauseShort: 3000,
7
+ pauseLong: 10000,
7
8
  };
8
9
 
9
10
  export { MOTION_DURATION };
@@ -1,2 +1,2 @@
1
- export type MotionEasingType = 'standard' | 'emphasized' | 'decelerated' | 'accelerated';
1
+ export type MotionEasingType = 'entrance' | 'exit' | 'standard';
2
2
  export declare const MOTION_EASING: Readonly<Record<MotionEasingType, string>>;
package/motion/easing.js CHANGED
@@ -1,8 +1,7 @@
1
1
  const MOTION_EASING = {
2
- standard: 'cubic-bezier(0.58, 0.01, 0.29, 1.01)',
3
- emphasized: 'cubic-bezier(0.83, 0, 0.17, 1)',
4
- decelerated: 'cubic-bezier(0, 0, 0.3, 1)',
5
- accelerated: 'cubic-bezier(0.32, 0, 0.67, 0)',
2
+ entrance: 'cubic-bezier(0, 0, 0.58, 1)',
3
+ exit: 'cubic-bezier(0.42, 0, 1, 1)',
4
+ standard: 'cubic-bezier(0.4, 0.0, 0.2, 1)',
6
5
  };
7
6
 
8
7
  export { MOTION_EASING };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mezzanine-ui/system",
3
- "version": "1.0.0-canary.1",
3
+ "version": "1.0.0-canary.11",
4
4
  "description": "Design System for mezzanine-ui",
5
5
  "author": "Mezzanine",
6
6
  "repository": {
@@ -116,6 +116,7 @@ $default-primitives: (
116
116
  // 白色系 - 特殊級距: white, white-alpha-10/20/.../90
117
117
  white-base: (
118
118
  white: #FFF,
119
+ white-alpha-0: rgb(255 255 255 / 0%),
119
120
  white-alpha-5: rgb(255 255 255 / 5%),
120
121
  white-alpha-10: rgb(255 255 255 / 10%),
121
122
  white-alpha-20: rgb(255 255 255 / 20%),
@@ -130,6 +131,7 @@ $default-primitives: (
130
131
  // 黑色系 - 特殊級距: black, black-alpha-3/5/8/10/20/.../90
131
132
  black-base: (
132
133
  black: #000,
134
+ black-alpha-0: rgb(0 0 0 / 0%),
133
135
  black-alpha-3: rgb(0 0 0 / 3%),
134
136
  black-alpha-5: rgb(0 0 0 / 5%),
135
137
  black-alpha-8: rgb(0 0 0 / 8%),
@@ -13,6 +13,7 @@ $semantic-contexts: (
13
13
  icon,
14
14
  border,
15
15
  separator,
16
+ scrollbar,
16
17
  overlay,
17
18
  surface,
18
19
  shadow
@@ -50,6 +51,10 @@ $semantic-colors: (
50
51
  light: primitive.variable(gray, 700),
51
52
  dark: primitive.variable(gray, 950),
52
53
  ),
54
+ fixed-solid: (
55
+ light: primitive.variable(gray, 800),
56
+ dark: primitive.variable(gray, 800),
57
+ ),
53
58
  neutral-ghost: (
54
59
  light: primitive.variable(gray, 50),
55
60
  dark: primitive.variable(gray, 950),
@@ -320,6 +325,10 @@ $semantic-colors: (
320
325
  ),
321
326
  ),
322
327
  border: (
328
+ ghost: (
329
+ light: primitive.variable(black-base, black-alpha-0),
330
+ dark: primitive.variable(black-base, black-alpha-0),
331
+ ),
323
332
  fixed-light: (
324
333
  light: primitive.variable(white-base, white),
325
334
  dark: primitive.variable(white-base, white),
@@ -328,6 +337,14 @@ $semantic-colors: (
328
337
  light: primitive.variable(white-base, white-alpha-20),
329
338
  dark: primitive.variable(white-base, white-alpha-20),
330
339
  ),
340
+ invisible: (
341
+ light: primitive.variable(black-base, black-alpha-0),
342
+ dark: primitive.variable(gray, 700),
343
+ ),
344
+ neutral-ghost: (
345
+ light: primitive.variable(gray, 100),
346
+ dark: primitive.variable(gray, 800),
347
+ ),
331
348
  neutral-faint: (
332
349
  light: primitive.variable(gray, 200),
333
350
  dark: primitive.variable(gray, 700),
@@ -366,6 +383,10 @@ $semantic-colors: (
366
383
  ),
367
384
  ),
368
385
  separator: (
386
+ ghost: (
387
+ light: primitive.variable(black-base, black-alpha-0),
388
+ dark: primitive.variable(black-base, black-alpha-0),
389
+ ),
369
390
  neutral-faint: (
370
391
  light: primitive.variable(gray, 200),
371
392
  dark: primitive.variable(gray, 700),
@@ -383,6 +404,20 @@ $semantic-colors: (
383
404
  dark: primitive.variable(brand, 500),
384
405
  ),
385
406
  ),
407
+ scrollbar: (
408
+ neutral-light: (
409
+ light: primitive.variable(black-base, black-alpha-5),
410
+ dark: primitive.variable(white-base, white-alpha-5),
411
+ ),
412
+ neutral: (
413
+ light: primitive.variable(black-base, black-alpha-40),
414
+ dark: primitive.variable(white-base, white-alpha-40),
415
+ ),
416
+ strong: (
417
+ light: primitive.variable(black-base, black-alpha-60),
418
+ dark: primitive.variable(white-base, white-alpha-60),
419
+ ),
420
+ ),
386
421
  overlay: (
387
422
  strong: (
388
423
  light: primitive.variable(black-base, black-alpha-60),
@@ -10,6 +10,7 @@ $primitive-scales: (
10
10
  0,
11
11
  1,
12
12
  2,
13
+ 3,
13
14
  4,
14
15
  6,
15
16
  8,
@@ -24,12 +25,22 @@ $primitive-scales: (
24
25
  32,
25
26
  36,
26
27
  40,
28
+ 44,
27
29
  48,
28
30
  52,
29
31
  56,
30
32
  60,
31
33
  64,
34
+ 68,
35
+ 70,
36
+ 76,
32
37
  80,
38
+ 88,
39
+ 92,
40
+ 96,
41
+ 100,
42
+ 120,
43
+ 140,
33
44
  160,
34
45
  240,
35
46
  320,
@@ -40,7 +51,8 @@ $primitive-scales: (
40
51
  640,
41
52
  720,
42
53
  960,
43
- 1140
54
+ 1140,
55
+ 1280,
44
56
  );
45
57
 
46
58
  // 預設 spacing 值定義(px 會自動轉換為 rem)
@@ -48,6 +60,7 @@ $default-primitives: (
48
60
  0: 0,
49
61
  1: 1px,
50
62
  2: 2px,
63
+ 3: 3px,
51
64
  4: 4px,
52
65
  6: 6px,
53
66
  8: 8px,
@@ -62,12 +75,22 @@ $default-primitives: (
62
75
  32: 32px,
63
76
  36: 36px,
64
77
  40: 40px,
78
+ 44: 44px,
65
79
  48: 48px,
66
80
  52: 52px,
67
81
  56: 56px,
68
82
  60: 60px,
69
83
  64: 64px,
84
+ 68: 68px,
85
+ 70: 70px,
86
+ 76: 76px,
70
87
  80: 80px,
88
+ 88: 88px,
89
+ 92: 92px,
90
+ 96: 96px,
91
+ 100: 100px,
92
+ 120: 120px,
93
+ 140: 140px,
71
94
  160: 160px,
72
95
  240: 240px,
73
96
  320: 320px,
@@ -79,6 +102,7 @@ $default-primitives: (
79
102
  720: 720px,
80
103
  960: 960px,
81
104
  1140: 1140px,
105
+ 1280: 1280px
82
106
  );
83
107
 
84
108
  // 驗證 scale 是否有效
@@ -16,6 +16,7 @@ $padding-categories: (horizontal, vertical);
16
16
  // 定義各個分類下的 tones
17
17
  $element-tones: (
18
18
  hairline,
19
+ micro,
19
20
  tiny,
20
21
  tight,
21
22
  compact,
@@ -36,8 +37,17 @@ $element-tones: (
36
37
  );
37
38
 
38
39
  $container-tones: (
40
+ minimal,
41
+ minimized,
39
42
  collapsed,
43
+ reduced,
44
+ condensed,
45
+ compressed,
46
+ tightened,
40
47
  tiny,
48
+ medium,
49
+ small,
50
+ snug,
41
51
  tight,
42
52
  slim,
43
53
  narrow,
@@ -47,7 +57,8 @@ $container-tones: (
47
57
  broad,
48
58
  wide,
49
59
  expanded,
50
- max
60
+ max,
61
+ xwide
51
62
  );
52
63
 
53
64
  $horizontal-tones: (
@@ -64,11 +75,15 @@ $horizontal-tones: (
64
75
  comfort-fixed,
65
76
  roomy,
66
77
  spacious,
78
+ open,
67
79
  relaxed,
68
80
  airy,
69
81
  breath,
82
+ loose,
70
83
  wide,
71
- max
84
+ max,
85
+ ultra,
86
+ xultra
72
87
  );
73
88
 
74
89
  $vertical-tones: (
@@ -76,13 +91,20 @@ $vertical-tones: (
76
91
  micro,
77
92
  tiny,
78
93
  tight,
94
+ tight-fixed,
79
95
  base,
80
96
  calm,
81
97
  comfort,
82
98
  roomy,
83
99
  spacious,
84
100
  generous,
85
- relaxed
101
+ relaxed,
102
+ airy,
103
+ breath,
104
+ loose,
105
+ wide,
106
+ max,
107
+ ultra
86
108
  );
87
109
 
88
110
  $semantic-spacings: (
@@ -92,6 +114,10 @@ $semantic-spacings: (
92
114
  default: primitive.variable(1),
93
115
  compact: primitive.variable(1),
94
116
  ),
117
+ micro: (
118
+ default: primitive.variable(3),
119
+ compact: primitive.variable(3),
120
+ ),
95
121
  tiny: (
96
122
  default: primitive.variable(4),
97
123
  compact: primitive.variable(4),
@@ -124,6 +150,10 @@ $semantic-spacings: (
124
150
  default: primitive.variable(20),
125
151
  compact: primitive.variable(18),
126
152
  ),
153
+ gentle-fixed: (
154
+ default: primitive.variable(20),
155
+ compact: primitive.variable(20),
156
+ ),
127
157
  relaxed: (
128
158
  default: primitive.variable(24),
129
159
  compact: primitive.variable(20),
@@ -132,6 +162,10 @@ $semantic-spacings: (
132
162
  default: primitive.variable(28),
133
163
  compact: primitive.variable(24),
134
164
  ),
165
+ airy-fixed: (
166
+ default: primitive.variable(28),
167
+ compact: primitive.variable(28),
168
+ ),
135
169
  roomy: (
136
170
  default: primitive.variable(32),
137
171
  compact: primitive.variable(28),
@@ -140,6 +174,10 @@ $semantic-spacings: (
140
174
  default: primitive.variable(36),
141
175
  compact: primitive.variable(32),
142
176
  ),
177
+ loose-fixed: (
178
+ default: primitive.variable(36),
179
+ compact: primitive.variable(36),
180
+ ),
143
181
  extra-wide: (
144
182
  default: primitive.variable(40),
145
183
  compact: primitive.variable(36),
@@ -148,28 +186,76 @@ $semantic-spacings: (
148
186
  default: primitive.variable(40),
149
187
  compact: primitive.variable(24),
150
188
  ),
189
+ wide-expanded: (
190
+ default: primitive.variable(40),
191
+ compact: primitive.variable(24),
192
+ ),
151
193
  expansive: (
152
194
  default: primitive.variable(60),
153
- compact: primitive.variable(24),
195
+ compact: primitive.variable(56),
154
196
  ),
155
197
  extra: (
156
198
  default: primitive.variable(64),
157
199
  compact: primitive.variable(48),
158
200
  ),
201
+ ultra-fixed: (
202
+ default: primitive.variable(68),
203
+ compact: primitive.variable(68),
204
+ ),
159
205
  max: (
160
206
  default: primitive.variable(80),
161
207
  compact: primitive.variable(64),
162
208
  ),
209
+ xwide: (
210
+ default: primitive.variable(100),
211
+ compact: primitive.variable(92),
212
+ ),
163
213
  ),
164
214
  container: (
215
+ minimal: (
216
+ default: primitive.variable(36),
217
+ compact: primitive.variable(28),
218
+ ),
219
+ minimized: (
220
+ default: primitive.variable(40),
221
+ compact: primitive.variable(32),
222
+ ),
165
223
  collapsed: (
166
224
  default: primitive.variable(52),
167
225
  compact: primitive.variable(52),
168
226
  ),
227
+ reduced: (
228
+ default: primitive.variable(56),
229
+ compact: primitive.variable(48),
230
+ ),
231
+ condensed: (
232
+ default: primitive.variable(60),
233
+ compact: primitive.variable(52),
234
+ ),
235
+ compressed: (
236
+ default: primitive.variable(70),
237
+ compact: primitive.variable(70),
238
+ ),
239
+ tightened: (
240
+ default: primitive.variable(76),
241
+ compact: primitive.variable(68),
242
+ ),
169
243
  tiny: (
170
244
  default: primitive.variable(80),
171
245
  compact: primitive.variable(80),
172
246
  ),
247
+ medium: (
248
+ default: primitive.variable(96),
249
+ compact: primitive.variable(88),
250
+ ),
251
+ small: (
252
+ default: primitive.variable(100),
253
+ compact: primitive.variable(92),
254
+ ),
255
+ snug: (
256
+ default: primitive.variable(140),
257
+ compact: primitive.variable(120),
258
+ ),
173
259
  tight: (
174
260
  default: primitive.variable(160),
175
261
  compact: primitive.variable(160),
@@ -210,6 +296,10 @@ $semantic-spacings: (
210
296
  default: primitive.variable(960),
211
297
  compact: primitive.variable(960),
212
298
  ),
299
+ xwide: (
300
+ default: primitive.variable(1280),
301
+ compact: primitive.variable(1280),
302
+ ),
213
303
  ),
214
304
  ),
215
305
  gap: (
@@ -220,7 +310,7 @@ $semantic-spacings: (
220
310
  tiny: (
221
311
  default: primitive.variable(2),
222
312
  compact: primitive.variable(2),
223
- ),
313
+ ),
224
314
  tight: (
225
315
  default: primitive.variable(4),
226
316
  compact: primitive.variable(2),
@@ -253,6 +343,10 @@ $semantic-spacings: (
253
343
  default: primitive.variable(24),
254
344
  compact: primitive.variable(20),
255
345
  ),
346
+ relaxed: (
347
+ default: primitive.variable(32),
348
+ compact: primitive.variable(28),
349
+ ),
256
350
  loose: (
257
351
  default: primitive.variable(40),
258
352
  compact: primitive.variable(36),
@@ -312,6 +406,10 @@ $semantic-spacings: (
312
406
  default: primitive.variable(16),
313
407
  compact: primitive.variable(14),
314
408
  ),
409
+ open: (
410
+ default: primitive.variable(20),
411
+ compact: primitive.variable(16),
412
+ ),
315
413
  relaxed: (
316
414
  default: primitive.variable(24),
317
415
  compact: primitive.variable(20),
@@ -324,6 +422,10 @@ $semantic-spacings: (
324
422
  default: primitive.variable(32),
325
423
  compact: primitive.variable(28),
326
424
  ),
425
+ loose: (
426
+ default: primitive.variable(36),
427
+ compact: primitive.variable(32),
428
+ ),
327
429
  wide: (
328
430
  default: primitive.variable(40),
329
431
  compact: primitive.variable(36),
@@ -332,6 +434,14 @@ $semantic-spacings: (
332
434
  default: primitive.variable(48),
333
435
  compact: primitive.variable(40),
334
436
  ),
437
+ ultra: (
438
+ default: primitive.variable(64),
439
+ compact: primitive.variable(56),
440
+ ),
441
+ xultra: (
442
+ default: primitive.variable(80),
443
+ compact: primitive.variable(76),
444
+ ),
335
445
  ),
336
446
  vertical: (
337
447
  none: (
@@ -350,6 +460,10 @@ $semantic-spacings: (
350
460
  default: primitive.variable(6),
351
461
  compact: primitive.variable(4),
352
462
  ),
463
+ tight-fixed: (
464
+ default: primitive.variable(6),
465
+ compact: primitive.variable(6),
466
+ ),
353
467
  base: (
354
468
  default: primitive.variable(8),
355
469
  compact: primitive.variable(4),
@@ -372,11 +486,35 @@ $semantic-spacings: (
372
486
  ),
373
487
  generous: (
374
488
  default: primitive.variable(20),
375
- compact: primitive.variable(14),
489
+ compact: primitive.variable(16),
376
490
  ),
377
491
  relaxed: (
378
492
  default: primitive.variable(24),
379
- compact: primitive.variable(16),
493
+ compact: primitive.variable(20),
494
+ ),
495
+ airy: (
496
+ default: primitive.variable(28),
497
+ compact: primitive.variable(24),
498
+ ),
499
+ breath: (
500
+ default: primitive.variable(32),
501
+ compact: primitive.variable(28),
502
+ ),
503
+ loose: (
504
+ default: primitive.variable(36),
505
+ compact: primitive.variable(32),
506
+ ),
507
+ wide: (
508
+ default: primitive.variable(40),
509
+ compact: primitive.variable(36),
510
+ ),
511
+ max: (
512
+ default: primitive.variable(48),
513
+ compact: primitive.variable(44),
514
+ ),
515
+ ultra: (
516
+ default: primitive.variable(68),
517
+ compact: primitive.variable(64),
380
518
  ),
381
519
  ),
382
520
  ),
@@ -1,17 +1,33 @@
1
+ @use 'sass:meta';
2
+ @use 'sass:string';
1
3
  @use '../motion';
2
4
 
3
- @function enter($property, $duration: motion.duration(short), $delay: 0ms) {
4
- @return $property $duration motion.easing(decelerated) $delay;
5
- }
5
+ @function entrance($property, $duration: moderate, $delay: 0ms) {
6
+ $duration-value: if(
7
+ meta.type-of($duration) == number or string.index(meta.inspect($duration), 'calc') != null,
8
+ $duration,
9
+ motion.duration($duration)
10
+ );
6
11
 
7
- @function exit($property, $duration: motion.duration(shorter), $delay: 0ms) {
8
- @return $property $duration motion.easing(accelerated) $delay;
12
+ @return $property $duration-value motion.easing(entrance) $delay;
9
13
  }
10
14
 
11
- @function emphasized($property, $duration: motion.duration(short), $delay: 0ms) {
12
- @return $property $duration motion.easing(emphasized) $delay;
15
+ @function exit($property, $duration: moderate, $delay: 0ms) {
16
+ $duration-value: if(
17
+ meta.type-of($duration) == number or string.index(meta.inspect($duration), 'calc') != null,
18
+ $duration,
19
+ motion.duration($duration)
20
+ );
21
+
22
+ @return $property $duration-value motion.easing(exit) $delay;
13
23
  }
14
24
 
15
- @function standard($property, $duration: motion.duration(short), $delay: 0ms) {
16
- @return $property $duration motion.easing(standard) $delay;
25
+ @function standard($property, $duration: moderate, $delay: 0ms) {
26
+ $duration-value: if(
27
+ meta.type-of($duration) == number or string.index(meta.inspect($duration), 'calc') != null,
28
+ $duration,
29
+ motion.duration($duration)
30
+ );
31
+
32
+ @return $property $duration-value motion.easing(standard) $delay;
17
33
  }
@@ -16,6 +16,7 @@ $semantic-types: (
16
16
  text-link-body,
17
17
  text-link-caption,
18
18
  caption,
19
+ caption-mono,
19
20
  caption-highlight,
20
21
  annotation,
21
22
  annotation-highlight,
@@ -101,6 +102,13 @@ $semantic-typographies: (
101
102
  line-height: primitive.line-height-variable(caption),
102
103
  letter-spacing: primitive.letter-spacing-variable(0),
103
104
  ),
105
+ caption-mono: (
106
+ font-family: primitive.font-family-variable(sfmono),
107
+ font-size: primitive.font-size-variable(12),
108
+ font-weight: primitive.font-weight-variable(regular),
109
+ line-height: primitive.line-height-variable(caption),
110
+ letter-spacing: primitive.letter-spacing-variable(0),
111
+ ),
104
112
  caption-highlight: (
105
113
  font-size: primitive.font-size-variable(12),
106
114
  font-weight: primitive.font-weight-variable(semibold),
@@ -133,14 +141,14 @@ $semantic-typographies: (
133
141
  ),
134
142
  input: (
135
143
  font-size: primitive.font-size-variable(14),
136
- font-weight: primitive.font-weight-variable(semibold),
144
+ font-weight: primitive.font-weight-variable(regular),
137
145
  line-height: primitive.line-height-variable(functional),
138
146
  letter-spacing: primitive.letter-spacing-variable(0),
139
147
  ),
140
148
  input-mono: (
141
149
  font-family: primitive.font-family-variable(sfmono),
142
150
  font-size: primitive.font-size-variable(14),
143
- font-weight: primitive.font-weight-variable(semibold),
151
+ font-weight: primitive.font-weight-variable(regular),
144
152
  line-height: primitive.line-height-variable(functional),
145
153
  letter-spacing: primitive.letter-spacing-variable(0),
146
154
  ),
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * SF Mono is a monospaced font designed by Apple.
5
5
  * This file provides @font-face declarations to load SF Mono from file.
6
+ * download link: https://www.cufonfonts.com/font/sf-mono
6
7
  */
7
8
 
8
9
  /* SF Mono Regular (400) */
@@ -11,7 +12,7 @@
11
12
  font-style: normal;
12
13
  font-weight: 400;
13
14
  font-display: swap;
14
- src: url('~@mezzanine-ui/system/typography/SF-Mono/SF-Mono-Regular.otf') format('opentype');
15
+ src: url('~@mezzanine-ui/system/typography/SF-Mono/SFMonoRegular.woff') format('woff');
15
16
  }
16
17
 
17
18
  /* SF Mono Medium (500) */
@@ -20,7 +21,7 @@
20
21
  font-style: normal;
21
22
  font-weight: 500;
22
23
  font-display: swap;
23
- src: url('~@mezzanine-ui/system/typography/SF-Mono/SF-Mono-Medium.otf') format('opentype');
24
+ src: url('~@mezzanine-ui/system/typography/SF-Mono/SFMonoMedium.woff') format('woff');
24
25
  }
25
26
 
26
27
  /* SF Mono Semibold (600) */
@@ -29,5 +30,5 @@
29
30
  font-style: normal;
30
31
  font-weight: 600;
31
32
  font-display: swap;
32
- src: url('~@mezzanine-ui/system/typography/SF-Mono/SF-Mono-Semibold.otf') format('opentype');
33
+ src: url('~@mezzanine-ui/system/typography/SF-Mono/SFMonoSemibold.woff') format('woff');
33
34
  }
@@ -1,7 +1,7 @@
1
1
  @use '../utils/list';
2
2
 
3
3
  $prefix: mzn-z-index;
4
- $orders: (modal, drawer, popover, feedback);
4
+ $orders: (base, alert, modal, drawer, popover, feedback);
5
5
 
6
6
  @mixin variables($base: 1000) {
7
7
  @for $index from 1 through list.length($orders) {