@x-plat/design-system 0.6.1 → 0.7.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/dist/components/Accordion/index.css +10 -3
- package/dist/components/Alert/index.css +7 -0
- package/dist/components/AutoResizeTextArea/index.css +3 -0
- package/dist/components/Avatar/index.css +13 -1
- package/dist/components/Badge/index.css +13 -2
- package/dist/components/Box/index.css +8 -5
- package/dist/components/Breadcrumb/index.css +5 -1
- package/dist/components/Button/index.css +10 -1
- package/dist/components/Calendar/index.css +10 -6
- package/dist/components/CardTab/index.css +14 -2
- package/dist/components/Chart/index.css +32 -11
- package/dist/components/ChatInput/index.css +6 -0
- package/dist/components/CheckBox/index.css +10 -1
- package/dist/components/Chip/index.css +12 -0
- package/dist/components/DatePicker/index.css +51 -12
- package/dist/components/Drawer/index.css +14 -7
- package/dist/components/Dropdown/index.css +5 -1
- package/dist/components/Editor/index.css +49 -10
- package/dist/components/EmptyState/index.css +9 -2
- package/dist/components/FileUpload/index.css +9 -2
- package/dist/components/HtmlTypeWriter/index.cjs +2 -0
- package/dist/components/HtmlTypeWriter/index.css +13 -1
- package/dist/components/HtmlTypeWriter/index.d.cts +3 -3
- package/dist/components/HtmlTypeWriter/index.d.ts +3 -3
- package/dist/components/HtmlTypeWriter/index.js +1 -0
- package/dist/components/ImageSelector/index.css +8 -0
- package/dist/components/Input/index.css +12 -0
- package/dist/components/Modal/index.css +1 -1
- package/dist/components/Pagination/index.css +25 -1
- package/dist/components/PopOver/index.css +1 -1
- package/dist/components/Progress/index.css +5 -2
- package/dist/components/Radio/index.css +9 -0
- package/dist/components/Select/index.css +20 -3
- package/dist/components/Steps/index.css +14 -4
- package/dist/components/Switch/index.css +1 -1
- package/dist/components/Tab/index.css +16 -1
- package/dist/components/Table/index.cjs +4 -1
- package/dist/components/Table/index.css +12 -0
- package/dist/components/Table/index.d.cts +2 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +4 -1
- package/dist/components/Tag/index.css +12 -0
- package/dist/components/TextArea/index.css +9 -0
- package/dist/components/Toast/index.css +8 -1
- package/dist/components/Tooltip/index.css +8 -4
- package/dist/components/Video/index.css +30 -19
- package/dist/components/index.cjs +6 -1
- package/dist/components/index.css +484 -99
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +5 -1
- package/dist/index.cjs +6 -1
- package/dist/index.css +484 -99
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/layout/index.css +40 -0
- package/guidelines/components/accordion.md +1 -1
- package/guidelines/components/avatar.md +1 -1
- package/guidelines/components/card.md +1 -1
- package/guidelines/components/chart.md +1 -1
- package/guidelines/components/data-display.md +4 -4
- package/guidelines/components/dropdown.md +1 -1
- package/guidelines/components/file-media.md +3 -3
- package/guidelines/components/html-typewriter.md +1 -1
- package/guidelines/components/navigation.md +144 -20
- package/guidelines/components/swiper.md +2 -2
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
gap: var(--spacing-space-2);
|
|
8
8
|
white-space: nowrap;
|
|
9
9
|
border-radius: var(--spacing-radius-md);
|
|
10
|
-
font-weight:
|
|
10
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
border: 1px solid transparent;
|
|
13
13
|
transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
@@ -15,20 +15,29 @@
|
|
|
15
15
|
.lib-xplat-button.sm {
|
|
16
16
|
height: var(--spacing-control-height-sm);
|
|
17
17
|
padding: 0 var(--spacing-space-3);
|
|
18
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
18
19
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
19
20
|
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
21
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
22
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
20
23
|
}
|
|
21
24
|
.lib-xplat-button.md {
|
|
22
25
|
height: var(--spacing-control-height-md);
|
|
23
26
|
padding: 0 var(--spacing-space-4);
|
|
27
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
24
28
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
25
29
|
line-height: var(--semantic-typo-label-2-m-lh);
|
|
30
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
31
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
26
32
|
}
|
|
27
33
|
.lib-xplat-button.lg {
|
|
28
34
|
height: var(--spacing-control-height-lg);
|
|
29
35
|
padding: 0 var(--spacing-space-6);
|
|
36
|
+
font-family: var(--semantic-typo-label-1-m-font);
|
|
30
37
|
font-size: var(--semantic-typo-label-1-m-size);
|
|
31
38
|
line-height: var(--semantic-typo-label-1-m-lh);
|
|
39
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
40
|
+
letter-spacing: var(--semantic-typo-label-1-m-ls);
|
|
32
41
|
}
|
|
33
42
|
.lib-xplat-button:disabled {
|
|
34
43
|
cursor: not-allowed;
|
|
@@ -124,18 +133,27 @@
|
|
|
124
133
|
}
|
|
125
134
|
.lib-xplat-input-wrap .lib-xplat-input.sm {
|
|
126
135
|
height: var(--spacing-control-height-sm);
|
|
136
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
127
137
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
128
138
|
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
139
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
140
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
129
141
|
}
|
|
130
142
|
.lib-xplat-input-wrap .lib-xplat-input.md {
|
|
131
143
|
height: var(--spacing-control-height-md);
|
|
144
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
132
145
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
133
146
|
line-height: var(--semantic-typo-label-2-m-lh);
|
|
147
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
148
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
134
149
|
}
|
|
135
150
|
.lib-xplat-input-wrap .lib-xplat-input.lg {
|
|
136
151
|
height: var(--spacing-control-height-lg);
|
|
152
|
+
font-family: var(--semantic-typo-label-1-m-font);
|
|
137
153
|
font-size: var(--semantic-typo-label-1-m-size);
|
|
138
154
|
line-height: var(--semantic-typo-label-1-m-lh);
|
|
155
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
156
|
+
letter-spacing: var(--semantic-typo-label-1-m-ls);
|
|
139
157
|
}
|
|
140
158
|
.lib-xplat-input-wrap .lib-xplat-input.disabled {
|
|
141
159
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
@@ -177,8 +195,11 @@
|
|
|
177
195
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation {
|
|
178
196
|
display: flex;
|
|
179
197
|
gap: var(--spacing-space-1);
|
|
198
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
180
199
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
181
200
|
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
201
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
202
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
182
203
|
align-items: center;
|
|
183
204
|
user-select: none;
|
|
184
205
|
}
|
|
@@ -229,7 +250,7 @@
|
|
|
229
250
|
align-items: center;
|
|
230
251
|
justify-content: center;
|
|
231
252
|
opacity: 0;
|
|
232
|
-
background-color:
|
|
253
|
+
background-color: var(--semantic-interaction-overlay-50);
|
|
233
254
|
transition: opacity 0.2s ease;
|
|
234
255
|
}
|
|
235
256
|
.lib-xplat-modal.dim.enter {
|
|
@@ -260,7 +281,7 @@
|
|
|
260
281
|
border-radius: var(--spacing-radius-md);
|
|
261
282
|
transition: background-color 0.15s;
|
|
262
283
|
font-size: clamp(13px, 3cqi, 18px);
|
|
263
|
-
font-weight:
|
|
284
|
+
font-weight: var(--semantic-typo-label-1-sb-weight);
|
|
264
285
|
color: var(--semantic-text-primary);
|
|
265
286
|
min-width: 110px;
|
|
266
287
|
text-align: center;
|
|
@@ -299,7 +320,7 @@
|
|
|
299
320
|
.lib-xplat-datepicker .datepicker-picker-cell.active {
|
|
300
321
|
background-color: var(--semantic-surface-brand-default);
|
|
301
322
|
color: var(--semantic-text-inverse);
|
|
302
|
-
font-weight:
|
|
323
|
+
font-weight: var(--semantic-typo-label-1-sb-weight);
|
|
303
324
|
}
|
|
304
325
|
.lib-xplat-datepicker .datepicker-nav {
|
|
305
326
|
display: flex;
|
|
@@ -328,7 +349,7 @@
|
|
|
328
349
|
.lib-xplat-datepicker .datepicker-weekday {
|
|
329
350
|
text-align: center;
|
|
330
351
|
font-size: clamp(11px, 2cqi, 14px);
|
|
331
|
-
font-weight:
|
|
352
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
332
353
|
padding: var(--spacing-space-1) 0;
|
|
333
354
|
color: var(--semantic-text-tertiary);
|
|
334
355
|
}
|
|
@@ -375,16 +396,16 @@
|
|
|
375
396
|
cursor: not-allowed;
|
|
376
397
|
}
|
|
377
398
|
.lib-xplat-datepicker .datepicker-day.today {
|
|
378
|
-
font-weight:
|
|
399
|
+
font-weight: var(--semantic-typo-display-1-b-weight);
|
|
379
400
|
box-shadow: inset 0 0 0 1px var(--semantic-surface-brand-default);
|
|
380
401
|
}
|
|
381
402
|
.lib-xplat-datepicker .datepicker-day.selected {
|
|
382
403
|
background-color: var(--semantic-surface-brand-default);
|
|
383
404
|
color: var(--semantic-text-inverse);
|
|
384
|
-
font-weight:
|
|
405
|
+
font-weight: var(--semantic-typo-label-1-sb-weight);
|
|
385
406
|
}
|
|
386
407
|
.lib-xplat-datepicker .datepicker-day.selected:hover {
|
|
387
|
-
background-color:
|
|
408
|
+
background-color: var(--semantic-surface-brand-strong);
|
|
388
409
|
}
|
|
389
410
|
.lib-xplat-datepicker .datepicker-day.highlighted {
|
|
390
411
|
background-color: color-mix(in srgb, var(--semantic-surface-brand-default) 20%, transparent);
|
|
@@ -430,8 +451,11 @@
|
|
|
430
451
|
.lib-xplat-datepicker .datepicker-range-label {
|
|
431
452
|
display: block;
|
|
432
453
|
text-align: center;
|
|
433
|
-
font-
|
|
434
|
-
font-
|
|
454
|
+
font-family: var(--semantic-typo-caption-2-m-font);
|
|
455
|
+
font-size: var(--semantic-typo-caption-2-m-size);
|
|
456
|
+
line-height: var(--semantic-typo-caption-2-m-lh);
|
|
457
|
+
font-weight: var(--semantic-typo-caption-2-m-weight);
|
|
458
|
+
letter-spacing: var(--semantic-typo-caption-2-m-ls);
|
|
435
459
|
color: var(--semantic-text-tertiary);
|
|
436
460
|
margin-bottom: var(--spacing-space-2);
|
|
437
461
|
}
|
|
@@ -474,7 +498,7 @@
|
|
|
474
498
|
background-color: var(--semantic-surface-neutral-primary);
|
|
475
499
|
border: 1px solid var(--semantic-border-primary);
|
|
476
500
|
border-radius: var(--spacing-radius-md);
|
|
477
|
-
box-shadow:
|
|
501
|
+
box-shadow: var(--semantic-shadow-md);
|
|
478
502
|
}
|
|
479
503
|
.lib-xplat-popup-datepicker-card {
|
|
480
504
|
background-color: var(--semantic-surface-neutral-primary);
|
|
@@ -511,15 +535,27 @@
|
|
|
511
535
|
}
|
|
512
536
|
.lib-xplat-tab.sm {
|
|
513
537
|
height: var(--spacing-control-height-sm);
|
|
538
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
514
539
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
540
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
541
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
542
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
515
543
|
}
|
|
516
544
|
.lib-xplat-tab.md {
|
|
517
545
|
height: var(--spacing-control-height-md);
|
|
546
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
518
547
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
548
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
549
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
550
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
519
551
|
}
|
|
520
552
|
.lib-xplat-tab.lg {
|
|
521
553
|
height: var(--spacing-control-height-lg);
|
|
554
|
+
font-family: var(--semantic-typo-label-1-m-font);
|
|
522
555
|
font-size: var(--semantic-typo-label-1-m-size);
|
|
556
|
+
line-height: var(--semantic-typo-label-1-m-lh);
|
|
557
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
558
|
+
letter-spacing: var(--semantic-typo-label-1-m-ls);
|
|
523
559
|
}
|
|
524
560
|
.lib-xplat-tab.type-default {
|
|
525
561
|
width: 100%;
|
|
@@ -557,8 +593,11 @@
|
|
|
557
593
|
justify-content: center;
|
|
558
594
|
white-space: nowrap;
|
|
559
595
|
padding: 0 var(--spacing-space-3);
|
|
596
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
560
597
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
561
|
-
|
|
598
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
599
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
600
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
562
601
|
height: 100%;
|
|
563
602
|
background: none;
|
|
564
603
|
border: none;
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
position: fixed;
|
|
4
4
|
inset: 0;
|
|
5
5
|
z-index: 1000;
|
|
6
|
-
background:
|
|
6
|
+
background: transparent;
|
|
7
7
|
transition: background-color 0.25s ease;
|
|
8
8
|
}
|
|
9
9
|
.lib-xplat-drawer-overlay.enter {
|
|
10
|
-
background:
|
|
10
|
+
background: var(--semantic-interaction-overlay-50);
|
|
11
11
|
}
|
|
12
12
|
.lib-xplat-drawer-overlay.exit {
|
|
13
|
-
background:
|
|
13
|
+
background: transparent;
|
|
14
14
|
}
|
|
15
15
|
.lib-xplat-drawer {
|
|
16
16
|
position: fixed;
|
|
17
17
|
top: 0;
|
|
18
18
|
height: 100%;
|
|
19
19
|
background: var(--semantic-surface-neutral-primary);
|
|
20
|
-
box-shadow: -
|
|
20
|
+
box-shadow: var(--semantic-shadow-overlay);
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
transition: transform 0.25s ease;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
.lib-xplat-drawer.left {
|
|
46
46
|
left: 0;
|
|
47
47
|
transform: translateX(-100%);
|
|
48
|
-
box-shadow:
|
|
48
|
+
box-shadow: var(--semantic-shadow-overlay);
|
|
49
49
|
}
|
|
50
50
|
.lib-xplat-drawer.left.enter {
|
|
51
51
|
transform: translateX(0);
|
|
@@ -58,15 +58,22 @@
|
|
|
58
58
|
border-bottom: 1px solid var(--semantic-border-primary);
|
|
59
59
|
}
|
|
60
60
|
.lib-xplat-drawer .drawer-title {
|
|
61
|
-
font-
|
|
62
|
-
font-
|
|
61
|
+
font-family: var(--semantic-typo-label-2-sb-font);
|
|
62
|
+
font-size: var(--semantic-typo-label-2-sb-size);
|
|
63
|
+
line-height: var(--semantic-typo-label-2-sb-lh);
|
|
64
|
+
font-weight: var(--semantic-typo-label-2-sb-weight);
|
|
65
|
+
letter-spacing: var(--semantic-typo-label-2-sb-ls);
|
|
63
66
|
color: var(--semantic-text-primary);
|
|
64
67
|
}
|
|
65
68
|
.lib-xplat-drawer .close-btn {
|
|
66
69
|
background: none;
|
|
67
70
|
border: none;
|
|
68
71
|
cursor: pointer;
|
|
72
|
+
font-family: var(--semantic-typo-heading-1-m-font);
|
|
69
73
|
font-size: var(--semantic-typo-heading-1-m-size);
|
|
74
|
+
line-height: var(--semantic-typo-heading-1-m-lh);
|
|
75
|
+
font-weight: var(--semantic-typo-heading-1-m-weight);
|
|
76
|
+
letter-spacing: var(--semantic-typo-heading-1-m-ls);
|
|
70
77
|
line-height: 1;
|
|
71
78
|
color: var(--semantic-icon-primary);
|
|
72
79
|
padding: 0;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
background: var(--semantic-surface-neutral-primary);
|
|
15
15
|
border: 1px solid var(--semantic-border-primary);
|
|
16
16
|
border-radius: var(--spacing-radius-md);
|
|
17
|
-
box-shadow:
|
|
17
|
+
box-shadow: var(--semantic-shadow-md);
|
|
18
18
|
padding: var(--spacing-space-1) 0;
|
|
19
19
|
opacity: 0;
|
|
20
20
|
transform: translateY(-4px);
|
|
@@ -34,7 +34,11 @@
|
|
|
34
34
|
padding: var(--spacing-space-2) 14px;
|
|
35
35
|
border: none;
|
|
36
36
|
background: none;
|
|
37
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
37
38
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
39
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
40
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
41
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
38
42
|
color: var(--semantic-text-primary);
|
|
39
43
|
cursor: pointer;
|
|
40
44
|
text-align: left;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
background: transparent;
|
|
36
36
|
color: var(--semantic-text-primary);
|
|
37
37
|
font-family: inherit;
|
|
38
|
-
font-weight:
|
|
38
|
+
font-weight: var(--semantic-typo-label-1-sb-weight);
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
transition: background 100ms ease, border-color 100ms ease;
|
|
41
41
|
}
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
.lib-xplat-editor__editable h5,
|
|
72
72
|
.lib-xplat-editor__editable h6 {
|
|
73
73
|
margin: var(--spacing-space-4) 0 var(--spacing-space-2);
|
|
74
|
-
font-weight:
|
|
74
|
+
font-weight: var(--semantic-typo-label-1-sb-weight);
|
|
75
75
|
line-height: 1.3;
|
|
76
76
|
}
|
|
77
77
|
.lib-xplat-editor__editable h1:first-child,
|
|
@@ -83,13 +83,28 @@
|
|
|
83
83
|
margin-top: 0;
|
|
84
84
|
}
|
|
85
85
|
.lib-xplat-editor__editable h1 {
|
|
86
|
-
font-
|
|
86
|
+
font-family: var(--semantic-typo-title-1-sb-font);
|
|
87
|
+
font-size: var(--semantic-typo-title-1-sb-size);
|
|
88
|
+
line-height: var(--semantic-typo-title-1-sb-lh);
|
|
89
|
+
font-weight: var(--semantic-typo-title-1-sb-weight);
|
|
90
|
+
letter-spacing: var(--semantic-typo-title-1-sb-ls);
|
|
91
|
+
line-height: 1.3;
|
|
87
92
|
}
|
|
88
93
|
.lib-xplat-editor__editable h2 {
|
|
89
|
-
font-
|
|
94
|
+
font-family: var(--semantic-typo-heading-1-sb-font);
|
|
95
|
+
font-size: var(--semantic-typo-heading-1-sb-size);
|
|
96
|
+
line-height: var(--semantic-typo-heading-1-sb-lh);
|
|
97
|
+
font-weight: var(--semantic-typo-heading-1-sb-weight);
|
|
98
|
+
letter-spacing: var(--semantic-typo-heading-1-sb-ls);
|
|
99
|
+
line-height: 1.3;
|
|
90
100
|
}
|
|
91
101
|
.lib-xplat-editor__editable h3 {
|
|
92
|
-
font-
|
|
102
|
+
font-family: var(--semantic-typo-label-1-sb-font);
|
|
103
|
+
font-size: var(--semantic-typo-label-1-sb-size);
|
|
104
|
+
line-height: var(--semantic-typo-label-1-sb-lh);
|
|
105
|
+
font-weight: var(--semantic-typo-label-1-sb-weight);
|
|
106
|
+
letter-spacing: var(--semantic-typo-label-1-sb-ls);
|
|
107
|
+
line-height: 1.3;
|
|
93
108
|
}
|
|
94
109
|
.lib-xplat-editor__editable p {
|
|
95
110
|
margin: var(--spacing-space-2) 0;
|
|
@@ -124,12 +139,16 @@
|
|
|
124
139
|
border-radius: var(--spacing-radius-md);
|
|
125
140
|
background: var(--semantic-surface-neutral-secondary);
|
|
126
141
|
color: var(--semantic-text-primary);
|
|
142
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
143
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
144
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
145
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
146
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
127
147
|
font-family:
|
|
128
148
|
ui-monospace,
|
|
129
149
|
"SF Mono",
|
|
130
150
|
Menlo,
|
|
131
151
|
monospace;
|
|
132
|
-
font-size: var(--semantic-typo-caption-1-r-size);
|
|
133
152
|
line-height: 1.5;
|
|
134
153
|
overflow-x: auto;
|
|
135
154
|
white-space: pre-wrap;
|
|
@@ -138,12 +157,16 @@
|
|
|
138
157
|
padding: 2px 6px;
|
|
139
158
|
border-radius: var(--spacing-radius-sm);
|
|
140
159
|
background: var(--semantic-surface-neutral-secondary);
|
|
160
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
161
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
162
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
163
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
164
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
141
165
|
font-family:
|
|
142
166
|
ui-monospace,
|
|
143
167
|
"SF Mono",
|
|
144
168
|
Menlo,
|
|
145
169
|
monospace;
|
|
146
|
-
font-size: var(--semantic-typo-caption-1-r-size);
|
|
147
170
|
color: var(--semantic-text-primary);
|
|
148
171
|
}
|
|
149
172
|
.lib-xplat-editor__editable a {
|
|
@@ -184,8 +207,12 @@
|
|
|
184
207
|
border-radius: var(--spacing-radius-sm);
|
|
185
208
|
background: transparent;
|
|
186
209
|
color: var(--semantic-text-primary);
|
|
187
|
-
font-family:
|
|
210
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
188
211
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
212
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
213
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
214
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
215
|
+
font-family: inherit;
|
|
189
216
|
text-align: left;
|
|
190
217
|
cursor: pointer;
|
|
191
218
|
}
|
|
@@ -199,7 +226,11 @@
|
|
|
199
226
|
}
|
|
200
227
|
.lib-xplat-editor__slash-item .hint {
|
|
201
228
|
color: var(--semantic-text-tertiary);
|
|
229
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
202
230
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
231
|
+
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
232
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
233
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
203
234
|
}
|
|
204
235
|
.lib-xplat-editor__link-popover {
|
|
205
236
|
position: absolute;
|
|
@@ -220,8 +251,12 @@
|
|
|
220
251
|
border-radius: var(--spacing-radius-sm);
|
|
221
252
|
background: var(--semantic-surface-neutral-primary);
|
|
222
253
|
color: var(--semantic-text-primary);
|
|
223
|
-
font-family:
|
|
254
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
224
255
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
256
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
257
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
258
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
259
|
+
font-family: inherit;
|
|
225
260
|
outline: none;
|
|
226
261
|
}
|
|
227
262
|
.lib-xplat-editor__link-popover input:focus {
|
|
@@ -233,8 +268,12 @@
|
|
|
233
268
|
border-radius: var(--spacing-radius-sm);
|
|
234
269
|
background: var(--semantic-surface-neutral-primary);
|
|
235
270
|
color: var(--semantic-text-primary);
|
|
236
|
-
font-family:
|
|
271
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
237
272
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
273
|
+
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
274
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
275
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
276
|
+
font-family: inherit;
|
|
238
277
|
cursor: pointer;
|
|
239
278
|
}
|
|
240
279
|
.lib-xplat-editor__link-popover button:hover {
|
|
@@ -17,13 +17,20 @@
|
|
|
17
17
|
font-size: var(--semantic-typo-display-1-b-size);
|
|
18
18
|
}
|
|
19
19
|
.lib-xplat-empty-state .empty-title {
|
|
20
|
-
font-
|
|
21
|
-
font-
|
|
20
|
+
font-family: var(--semantic-typo-caption-1-m-font);
|
|
21
|
+
font-size: var(--semantic-typo-caption-1-m-size);
|
|
22
|
+
line-height: var(--semantic-typo-caption-1-m-lh);
|
|
23
|
+
font-weight: var(--semantic-typo-caption-1-m-weight);
|
|
24
|
+
letter-spacing: var(--semantic-typo-caption-1-m-ls);
|
|
22
25
|
color: var(--semantic-text-secondary);
|
|
23
26
|
margin: 0;
|
|
24
27
|
}
|
|
25
28
|
.lib-xplat-empty-state .empty-description {
|
|
29
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
26
30
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
31
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
32
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
33
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
27
34
|
color: var(--semantic-text-tertiary);
|
|
28
35
|
margin: var(--spacing-space-2) 0 0;
|
|
29
36
|
max-width: 320px;
|
|
@@ -32,13 +32,20 @@
|
|
|
32
32
|
font-size: var(--semantic-typo-display-2-sb-size);
|
|
33
33
|
}
|
|
34
34
|
.lib-xplat-file-upload .upload-label {
|
|
35
|
-
font-
|
|
36
|
-
font-
|
|
35
|
+
font-family: var(--semantic-typo-caption-1-m-font);
|
|
36
|
+
font-size: var(--semantic-typo-caption-1-m-size);
|
|
37
|
+
line-height: var(--semantic-typo-caption-1-m-lh);
|
|
38
|
+
font-weight: var(--semantic-typo-caption-1-m-weight);
|
|
39
|
+
letter-spacing: var(--semantic-typo-caption-1-m-ls);
|
|
37
40
|
color: var(--semantic-text-secondary);
|
|
38
41
|
margin: 0;
|
|
39
42
|
}
|
|
40
43
|
.lib-xplat-file-upload .upload-description {
|
|
44
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
41
45
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
46
|
+
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
47
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
48
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
42
49
|
color: var(--semantic-text-tertiary);
|
|
43
50
|
margin: var(--spacing-space-1) 0 0;
|
|
44
51
|
}
|
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/components/HtmlTypeWriter/index.ts
|
|
31
31
|
var HtmlTypeWriter_exports = {};
|
|
32
32
|
__export(HtmlTypeWriter_exports, {
|
|
33
|
+
HtmlTypeWriter: () => HtmlTypeWriter_default,
|
|
33
34
|
HtmlTypewriter: () => HtmlTypeWriter_default
|
|
34
35
|
});
|
|
35
36
|
module.exports = __toCommonJS(HtmlTypeWriter_exports);
|
|
@@ -169,5 +170,6 @@ HtmlTypeWriter.displayName = "HtmlTypeWriter";
|
|
|
169
170
|
var HtmlTypeWriter_default = HtmlTypeWriter;
|
|
170
171
|
// Annotate the CommonJS export names for ESM import in node:
|
|
171
172
|
0 && (module.exports = {
|
|
173
|
+
HtmlTypeWriter,
|
|
172
174
|
HtmlTypewriter
|
|
173
175
|
});
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/* src/components/HtmlTypeWriter/htmlTypeWriter.scss */
|
|
2
2
|
.lib-xplat-htmlTypewriter {
|
|
3
3
|
width: 100%;
|
|
4
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
4
5
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
6
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
7
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
8
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
5
9
|
}
|
|
6
10
|
.lib-xplat-htmlTypewriter h1,
|
|
7
11
|
.lib-xplat-htmlTypewriter h2,
|
|
@@ -9,13 +13,21 @@
|
|
|
9
13
|
.lib-xplat-htmlTypewriter h4,
|
|
10
14
|
.lib-xplat-htmlTypewriter h5,
|
|
11
15
|
.lib-xplat-htmlTypewriter h6 {
|
|
12
|
-
font-weight:
|
|
16
|
+
font-weight: var(--semantic-typo-label-2-sb-weight);
|
|
13
17
|
}
|
|
14
18
|
.lib-xplat-htmlTypewriter h3 {
|
|
19
|
+
font-family: var(--semantic-typo-title-1-m-font);
|
|
15
20
|
font-size: var(--semantic-typo-title-1-m-size);
|
|
21
|
+
line-height: var(--semantic-typo-title-1-m-lh);
|
|
22
|
+
font-weight: var(--semantic-typo-title-1-m-weight);
|
|
23
|
+
letter-spacing: var(--semantic-typo-title-1-m-ls);
|
|
16
24
|
}
|
|
17
25
|
.lib-xplat-htmlTypewriter h4 {
|
|
26
|
+
font-family: var(--semantic-typo-heading-1-m-font);
|
|
18
27
|
font-size: var(--semantic-typo-heading-1-m-size);
|
|
28
|
+
line-height: var(--semantic-typo-heading-1-m-lh);
|
|
29
|
+
font-weight: var(--semantic-typo-heading-1-m-weight);
|
|
30
|
+
letter-spacing: var(--semantic-typo-heading-1-m-ls);
|
|
19
31
|
}
|
|
20
32
|
.lib-xplat-htmlTypewriter hr {
|
|
21
33
|
color: var(--semantic-border-primary);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
interface
|
|
3
|
+
interface HtmlTypeWriterProps {
|
|
4
4
|
html: string;
|
|
5
5
|
duration?: number;
|
|
6
6
|
onDone?: () => void;
|
|
7
7
|
onChange?: () => void;
|
|
8
8
|
}
|
|
9
9
|
declare const HtmlTypeWriter: {
|
|
10
|
-
({ html, duration, onDone, onChange, }:
|
|
10
|
+
({ html, duration, onDone, onChange, }: HtmlTypeWriterProps): react_jsx_runtime.JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export { HtmlTypeWriter as HtmlTypewriter };
|
|
14
|
+
export { HtmlTypeWriter, HtmlTypeWriter as HtmlTypewriter };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
interface
|
|
3
|
+
interface HtmlTypeWriterProps {
|
|
4
4
|
html: string;
|
|
5
5
|
duration?: number;
|
|
6
6
|
onDone?: () => void;
|
|
7
7
|
onChange?: () => void;
|
|
8
8
|
}
|
|
9
9
|
declare const HtmlTypeWriter: {
|
|
10
|
-
({ html, duration, onDone, onChange, }:
|
|
10
|
+
({ html, duration, onDone, onChange, }: HtmlTypeWriterProps): react_jsx_runtime.JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export { HtmlTypeWriter as HtmlTypewriter };
|
|
14
|
+
export { HtmlTypeWriter, HtmlTypeWriter as HtmlTypewriter };
|
|
@@ -51,7 +51,11 @@
|
|
|
51
51
|
}
|
|
52
52
|
.lib-xplat-imageselector > .content .skeleton > .label {
|
|
53
53
|
margin-top: var(--spacing-space-1);
|
|
54
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
54
55
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
56
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
57
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
58
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
55
59
|
color: var(--semantic-text-tertiary);
|
|
56
60
|
}
|
|
57
61
|
.lib-xplat-imageselector > .content .skeleton:hover > .icon-wrapper {
|
|
@@ -67,7 +71,11 @@
|
|
|
67
71
|
transform: translate(-50%, -50%);
|
|
68
72
|
display: flex;
|
|
69
73
|
gap: 0.5em;
|
|
74
|
+
font-family: var(--semantic-typo-title-2-m-font);
|
|
70
75
|
font-size: var(--semantic-typo-title-2-m-size);
|
|
76
|
+
line-height: var(--semantic-typo-title-2-m-lh);
|
|
77
|
+
font-weight: var(--semantic-typo-title-2-m-weight);
|
|
78
|
+
letter-spacing: var(--semantic-typo-title-2-m-ls);
|
|
71
79
|
background-color: var(--semantic-surface-neutral-tertiary);
|
|
72
80
|
padding: var(--spacing-space-1) var(--spacing-space-3);
|
|
73
81
|
align-items: center;
|
|
@@ -27,18 +27,27 @@
|
|
|
27
27
|
}
|
|
28
28
|
.lib-xplat-input-wrap .lib-xplat-input.sm {
|
|
29
29
|
height: var(--spacing-control-height-sm);
|
|
30
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
30
31
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
31
32
|
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
33
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
34
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
32
35
|
}
|
|
33
36
|
.lib-xplat-input-wrap .lib-xplat-input.md {
|
|
34
37
|
height: var(--spacing-control-height-md);
|
|
38
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
35
39
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
36
40
|
line-height: var(--semantic-typo-label-2-m-lh);
|
|
41
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
42
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
37
43
|
}
|
|
38
44
|
.lib-xplat-input-wrap .lib-xplat-input.lg {
|
|
39
45
|
height: var(--spacing-control-height-lg);
|
|
46
|
+
font-family: var(--semantic-typo-label-1-m-font);
|
|
40
47
|
font-size: var(--semantic-typo-label-1-m-size);
|
|
41
48
|
line-height: var(--semantic-typo-label-1-m-lh);
|
|
49
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
50
|
+
letter-spacing: var(--semantic-typo-label-1-m-ls);
|
|
42
51
|
}
|
|
43
52
|
.lib-xplat-input-wrap .lib-xplat-input.disabled {
|
|
44
53
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
@@ -80,8 +89,11 @@
|
|
|
80
89
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation {
|
|
81
90
|
display: flex;
|
|
82
91
|
gap: var(--spacing-space-1);
|
|
92
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
83
93
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
84
94
|
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
95
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
96
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
85
97
|
align-items: center;
|
|
86
98
|
user-select: none;
|
|
87
99
|
}
|