@masterteam/components 0.0.243 → 0.0.245

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.
@@ -0,0 +1,385 @@
1
+ /* ==========================================================================
2
+ Button — transcribed from DS `Button/Button.module.css` (Figma node 4159:280)
3
+ --------------------------------------------------------------------------
4
+ The DS sizes buttons by explicit height + horizontal padding, not by vertical
5
+ padding, so the label baseline stays put whatever the icon does. PrimeNG
6
+ sizes by padding, so height is asserted here and padding-Y zeroed.
7
+
8
+ DS variant → PrimeNG variant. No `mt-button` API change: existing call sites
9
+ get the DS look for free.
10
+
11
+ primary default (no severity)
12
+ neutral severity="secondary"
13
+ secondary-solid [outlined]
14
+ transparent [text]
15
+ danger severity="danger"
16
+ danger-secondary severity="danger" + [outlined] | [text]
17
+ ========================================================================== */
18
+
19
+ html.mt-ds .p-button {
20
+ /* Sized from the field tokens, not its own literals, so a button and a field
21
+ on the same row can never drift apart. The DS default button size is `lg`,
22
+ which is the same 40px the default field uses. */
23
+ height: var(--ds-field-height);
24
+ padding: 0 var(--ds-field-pad-x);
25
+ gap: 4px;
26
+ border-width: 1px;
27
+ border-style: solid;
28
+ border-radius: 4px;
29
+ font-family: var(--ds-font-sans);
30
+ font-size: var(--ds-field-font);
31
+ line-height: var(--ds-field-line);
32
+ font-weight: 500;
33
+ white-space: nowrap;
34
+ flex-shrink: 0;
35
+ position: relative;
36
+ overflow: hidden;
37
+ transition:
38
+ background-color var(--ds-transition-fast),
39
+ border-color var(--ds-transition-fast),
40
+ color var(--ds-transition-fast);
41
+ }
42
+
43
+ /* The DS scale is 24 / 32 / 40. With the default sitting on 40 (DS large),
44
+ `size="small"` maps to DS *medium* rather than DS small — dropping two steps
45
+ to 24px reads as broken next to a 40px default. DS small remains reachable
46
+ via `.mt-ds-button-xs` for genuinely dense surfaces. */
47
+ html.mt-ds .p-button-sm {
48
+ height: 32px;
49
+ padding: 0 8px;
50
+ font-size: 14px;
51
+ line-height: 20px;
52
+ }
53
+
54
+ html.mt-ds .p-button.mt-ds-button-xs {
55
+ height: 24px;
56
+ padding: 0 8px;
57
+ font-size: 12px;
58
+ line-height: 18px;
59
+ }
60
+
61
+ html.mt-ds .p-button.p-button-icon-only.mt-ds-button-xs {
62
+ width: 24px;
63
+ }
64
+
65
+ html.mt-ds .p-button-lg {
66
+ height: 40px;
67
+ padding: 0 12px;
68
+ font-size: 16px;
69
+ line-height: 24px;
70
+ }
71
+
72
+ /* ── Icon slot: 16 / 20 / 24 by size ───────────────────────────────────── */
73
+
74
+ html.mt-ds .p-button :is(.p-icon, .p-button-icon, mt-icon, svg) {
75
+ width: 20px;
76
+ height: 20px;
77
+ font-size: 20px;
78
+ flex-shrink: 0;
79
+ }
80
+
81
+ html.mt-ds .p-button-sm :is(.p-icon, .p-button-icon, mt-icon, svg) {
82
+ width: 16px;
83
+ height: 16px;
84
+ font-size: 16px;
85
+ }
86
+
87
+ html.mt-ds .p-button-lg :is(.p-icon, .p-button-icon, mt-icon, svg) {
88
+ width: 24px;
89
+ height: 24px;
90
+ font-size: 24px;
91
+ }
92
+
93
+ /* ── Icon-only: square, no horizontal padding ──────────────────────────── */
94
+
95
+ /* `gap: 0` matters: PrimeNG still renders an (empty, zero-width) label span
96
+ next to the icon, and the 4px inter-child gap then pushes the icon off
97
+ centre by half of it. */
98
+ html.mt-ds .p-button.p-button-icon-only {
99
+ width: var(--ds-field-height);
100
+ padding: 0;
101
+ gap: 0;
102
+ aspect-ratio: 1;
103
+ }
104
+
105
+ html.mt-ds .p-button.p-button-icon-only.p-button-sm {
106
+ width: 32px;
107
+ }
108
+
109
+ html.mt-ds .p-button.p-button-icon-only.p-button-lg {
110
+ width: 40px;
111
+ }
112
+
113
+ /* ── Primary ───────────────────────────────────────────────────────────── */
114
+
115
+ html.mt-ds
116
+ .p-button:not(
117
+ .p-button-secondary,
118
+ .p-button-danger,
119
+ .p-button-outlined,
120
+ .p-button-text,
121
+ .p-button-link
122
+ ) {
123
+ background: #1849a9;
124
+ border-color: #1849a9;
125
+ color: #f9fafb;
126
+ }
127
+
128
+ html.mt-ds
129
+ .p-button:not(
130
+ .p-button-secondary,
131
+ .p-button-danger,
132
+ .p-button-outlined,
133
+ .p-button-text,
134
+ .p-button-link
135
+ ):not(:disabled):hover {
136
+ background: #194185;
137
+ border-color: #194185;
138
+ }
139
+
140
+ html.mt-ds
141
+ .p-button:not(
142
+ .p-button-secondary,
143
+ .p-button-danger,
144
+ .p-button-outlined,
145
+ .p-button-text,
146
+ .p-button-link
147
+ ):not(:disabled):active {
148
+ background: #102a56;
149
+ border-color: #102a56;
150
+ }
151
+
152
+ html.mt-ds
153
+ .p-button:not(
154
+ .p-button-secondary,
155
+ .p-button-danger,
156
+ .p-button-outlined,
157
+ .p-button-text,
158
+ .p-button-link
159
+ ):focus-visible {
160
+ outline: none;
161
+ box-shadow:
162
+ 0 0 0 2px #1849a9,
163
+ 0 0 0 5px #f9fafb;
164
+ }
165
+
166
+ /* ── Neutral ───────────────────────────────────────────────────────────── */
167
+
168
+ html.mt-ds
169
+ .p-button.p-button-secondary:not(
170
+ .p-button-outlined,
171
+ .p-button-text,
172
+ .p-button-link
173
+ ) {
174
+ background: #f3f4f6;
175
+ border-color: #f3f4f6;
176
+ color: #000b36;
177
+ }
178
+
179
+ html.mt-ds
180
+ .p-button.p-button-secondary:not(
181
+ .p-button-outlined,
182
+ .p-button-text,
183
+ .p-button-link
184
+ ):not(:disabled):hover {
185
+ background: #e5e7eb;
186
+ border-color: #e5e7eb;
187
+ color: #000b36;
188
+ }
189
+
190
+ html.mt-ds
191
+ .p-button.p-button-secondary:not(
192
+ .p-button-outlined,
193
+ .p-button-text,
194
+ .p-button-link
195
+ ):not(:disabled):active {
196
+ background: #d2d6db;
197
+ border-color: #d2d6db;
198
+ }
199
+
200
+ html.mt-ds .p-button.p-button-secondary:focus-visible {
201
+ outline: none;
202
+ box-shadow:
203
+ 0 0 0 2px #f3f4f6,
204
+ 0 0 0 5px #1849a9;
205
+ }
206
+
207
+ /* ── Secondary-solid (tinted) ──────────────────────────────────────────── */
208
+
209
+ html.mt-ds .p-button.p-button-outlined:not(.p-button-danger) {
210
+ background: rgb(24 73 169 / 0.2);
211
+ border-color: transparent;
212
+ color: #1849a9;
213
+ }
214
+
215
+ html.mt-ds
216
+ .p-button.p-button-outlined:not(.p-button-danger):not(:disabled):hover {
217
+ background: rgb(24 73 169 / 0.1);
218
+ border-color: transparent;
219
+ color: #1849a9;
220
+ }
221
+
222
+ html.mt-ds
223
+ .p-button.p-button-outlined:not(.p-button-danger):not(:disabled):active {
224
+ background: rgb(24 73 169 / 0.3);
225
+ }
226
+
227
+ html.mt-ds .p-button.p-button-outlined:not(.p-button-danger):focus-visible {
228
+ outline: none;
229
+ box-shadow:
230
+ 0 0 0 2px rgb(24 73 169 / 0.2),
231
+ 0 0 0 5px #1849a9;
232
+ }
233
+
234
+ /* ── Transparent / ghost ───────────────────────────────────────────────── */
235
+
236
+ html.mt-ds .p-button:is(.p-button-text, .p-button-link):not(.p-button-danger) {
237
+ background: transparent;
238
+ border-color: transparent;
239
+ color: #175cd3;
240
+ }
241
+
242
+ html.mt-ds
243
+ .p-button:is(.p-button-text, .p-button-link):not(.p-button-danger):not(
244
+ :disabled
245
+ ):hover {
246
+ background: rgb(24 73 169 / 0.06);
247
+ color: #1570ef;
248
+ }
249
+
250
+ html.mt-ds
251
+ .p-button:is(.p-button-text, .p-button-link):not(.p-button-danger):not(
252
+ :disabled
253
+ ):active {
254
+ background: rgb(24 73 169 / 0.12);
255
+ color: #1570ef;
256
+ }
257
+
258
+ html.mt-ds
259
+ .p-button:is(.p-button-text, .p-button-link):not(
260
+ .p-button-danger
261
+ ):focus-visible {
262
+ outline: none;
263
+ box-shadow:
264
+ 0 0 0 2px transparent,
265
+ 0 0 0 5px #1849a9;
266
+ }
267
+
268
+ /* ── Danger ────────────────────────────────────────────────────────────── */
269
+
270
+ html.mt-ds
271
+ .p-button.p-button-danger:not(
272
+ .p-button-outlined,
273
+ .p-button-text,
274
+ .p-button-link
275
+ ) {
276
+ background: #a30000;
277
+ border-color: #a30000;
278
+ color: #f9fafb;
279
+ }
280
+
281
+ html.mt-ds
282
+ .p-button.p-button-danger:not(
283
+ .p-button-outlined,
284
+ .p-button-text,
285
+ .p-button-link
286
+ ):not(:disabled):hover {
287
+ background: #8b0000;
288
+ border-color: #8b0000;
289
+ }
290
+
291
+ html.mt-ds
292
+ .p-button.p-button-danger:not(
293
+ .p-button-outlined,
294
+ .p-button-text,
295
+ .p-button-link
296
+ ):not(:disabled):active {
297
+ background: #6f0000;
298
+ border-color: #6f0000;
299
+ }
300
+
301
+ html.mt-ds
302
+ .p-button.p-button-danger:not(
303
+ .p-button-outlined,
304
+ .p-button-text,
305
+ .p-button-link
306
+ ):focus-visible {
307
+ outline: none;
308
+ box-shadow:
309
+ 0 0 0 2px #a30000,
310
+ 0 0 0 5px #f9fafb;
311
+ }
312
+
313
+ /* ── Danger-secondary ──────────────────────────────────────────────────── */
314
+
315
+ html.mt-ds
316
+ .p-button.p-button-danger:is(
317
+ .p-button-outlined,
318
+ .p-button-text,
319
+ .p-button-link
320
+ ) {
321
+ background: #fcdad7;
322
+ border-color: transparent;
323
+ color: #a30000;
324
+ }
325
+
326
+ html.mt-ds
327
+ .p-button.p-button-danger:is(
328
+ .p-button-outlined,
329
+ .p-button-text,
330
+ .p-button-link
331
+ ):not(:disabled):hover {
332
+ background: #f8bab5;
333
+ color: #a30000;
334
+ }
335
+
336
+ html.mt-ds
337
+ .p-button.p-button-danger:is(
338
+ .p-button-outlined,
339
+ .p-button-text,
340
+ .p-button-link
341
+ ):not(:disabled):active {
342
+ background: #f3908a;
343
+ }
344
+
345
+ html.mt-ds
346
+ .p-button.p-button-danger:is(
347
+ .p-button-outlined,
348
+ .p-button-text,
349
+ .p-button-link
350
+ ):focus-visible {
351
+ outline: none;
352
+ box-shadow:
353
+ 0 0 0 2px #fcdad7,
354
+ 0 0 0 5px #a30000;
355
+ }
356
+
357
+ /* ── Disabled — dedicated tokens, never opacity ────────────────────────── */
358
+
359
+ html.mt-ds .p-button:disabled,
360
+ html.mt-ds .p-button.p-disabled {
361
+ background: #d2d6db;
362
+ border-color: #d2d6db;
363
+ color: #6c7c96;
364
+ opacity: 1;
365
+ cursor: not-allowed;
366
+ }
367
+
368
+ html.mt-ds
369
+ .p-button:is(.p-button-text, .p-button-link):is(:disabled, .p-disabled) {
370
+ background: transparent;
371
+ border-color: transparent;
372
+ color: #6c7c96;
373
+ }
374
+
375
+ /* ── Loading — DS hides the label and centres the spinner ──────────────── */
376
+
377
+ html.mt-ds .p-button-loading .p-button-label {
378
+ visibility: hidden;
379
+ }
380
+
381
+ html.mt-ds .p-button-loading .p-button-loading-icon {
382
+ position: absolute;
383
+ inset: 0;
384
+ margin: auto;
385
+ }
@@ -0,0 +1,124 @@
1
+ /* ==========================================================================
2
+ Content Switcher — transcribed from DS `ContentSwitcher/ContentSwitcher.module.css`
3
+ (Figma nodes 4157:86138 + 4157:85806)
4
+ --------------------------------------------------------------------------
5
+ `mt-tabs` in its default `horizontal` mode renders a PrimeNG
6
+ `p-selectbutton`, which is a content switcher rather than a tab strip — so
7
+ that is the DS component it maps to, and the DS Tabs spec deliberately does
8
+ not apply. `mt-tabs mode="underline"` is the DS Line Tab (see tabs.css).
9
+
10
+ Track #F3F4F6, item dividers #E5E7EB, text #000B36
11
+ Selected #1849A9 fill, #F9FAFB text
12
+ Hover #E5E7EB
13
+ Sizes sm 32px/16px · md 40px/18px · lg 48px/20px · min-width 76px
14
+ Radius 8px on the outer corners only, square between items
15
+
16
+ PrimeNG splits a togglebutton into a root plus a `.p-togglebutton-content`
17
+ span, and by default paints the *checked* fill on the inner span with its
18
+ own radius and padding — which reads as a pill floating inside a track. The
19
+ DS fills the whole item edge to edge, so the fill moves to the root and the
20
+ inner span is flattened to a transparent layout box.
21
+ ========================================================================== */
22
+
23
+ html.mt-ds .p-selectbutton {
24
+ display: inline-flex;
25
+ align-items: stretch;
26
+ gap: 0;
27
+ padding: 0;
28
+ border: none;
29
+ border-radius: 8px;
30
+ background: #f3f4f6;
31
+ overflow: hidden;
32
+ font-family: var(--ds-font-sans);
33
+ }
34
+
35
+ html.mt-ds .p-selectbutton .p-togglebutton {
36
+ height: 32px;
37
+ min-width: 76px;
38
+ padding: 0;
39
+ border: none;
40
+ border-radius: 0;
41
+ background: #f3f4f6;
42
+ color: #000b36;
43
+ font-weight: 400;
44
+ white-space: nowrap;
45
+ transition:
46
+ background-color 120ms ease,
47
+ color 120ms ease;
48
+ }
49
+
50
+ html.mt-ds .p-selectbutton .p-togglebutton .p-togglebutton-content {
51
+ width: 100%;
52
+ height: 100%;
53
+ padding: 0 8px;
54
+ background: transparent;
55
+ border-radius: 0;
56
+ box-shadow: none;
57
+ color: inherit;
58
+ font-size: 14px;
59
+ line-height: 20px;
60
+ font-weight: inherit;
61
+ }
62
+
63
+ /* Dividers sit between items only — inline-start auto-flips under RTL. */
64
+ html.mt-ds .p-selectbutton .p-togglebutton + .p-togglebutton {
65
+ border-inline-start: 1px solid #e5e7eb;
66
+ }
67
+
68
+ html.mt-ds
69
+ .p-selectbutton
70
+ .p-togglebutton:not(.p-togglebutton-checked, .p-disabled):hover {
71
+ background: #e5e7eb;
72
+ color: #000b36;
73
+ }
74
+
75
+ html.mt-ds .p-selectbutton .p-togglebutton.p-togglebutton-checked {
76
+ background: #1849a9;
77
+ color: #f9fafb;
78
+ }
79
+
80
+ html.mt-ds
81
+ .p-selectbutton
82
+ .p-togglebutton.p-togglebutton-checked
83
+ .p-togglebutton-content {
84
+ background: transparent;
85
+ box-shadow: none;
86
+ color: #f9fafb;
87
+ }
88
+
89
+ html.mt-ds .p-selectbutton .p-togglebutton:focus-visible {
90
+ z-index: 1;
91
+ background: #1849a9;
92
+ color: #f9fafb;
93
+ outline: 2px solid #1849a9;
94
+ outline-offset: 1px;
95
+ box-shadow: inset 0 0 0 2px #1849a9;
96
+ }
97
+
98
+ html.mt-ds .p-selectbutton .p-togglebutton:is(:disabled, .p-disabled) {
99
+ background: #f3f4f6;
100
+ color: #6c7c96;
101
+ opacity: 1;
102
+ }
103
+
104
+ /* ── Sizes — PrimeNG offers sm / default / lg; the DS ramp maps onto them ── */
105
+
106
+ html.mt-ds .p-selectbutton .p-togglebutton-sm {
107
+ height: 32px;
108
+ }
109
+
110
+ html.mt-ds .p-selectbutton .p-togglebutton-sm .p-togglebutton-content {
111
+ padding: 0 8px;
112
+ font-size: 16px;
113
+ line-height: 24px;
114
+ }
115
+
116
+ html.mt-ds .p-selectbutton .p-togglebutton-lg {
117
+ height: 40px;
118
+ }
119
+
120
+ html.mt-ds .p-selectbutton .p-togglebutton-lg .p-togglebutton-content {
121
+ padding: 0 12px;
122
+ font-size: 16px;
123
+ line-height: 24px;
124
+ }
@@ -0,0 +1,220 @@
1
+ /* ==========================================================================
2
+ Feedback — Toast · Inline notification · Tooltip
3
+ --------------------------------------------------------------------------
4
+ Toast DS `NotificationToast` (Figma 4399:21638)
5
+ Notification DS `Notification` (Figma 4399:21418)
6
+ Tooltip DS `Tooltip` (Figma 4404:4368)
7
+
8
+ The DS builds both notification surfaces around a coloured accent strip
9
+ rather than a tinted card: the toast is white with an 8px bar down its
10
+ leading edge, the inline banner is tinted with a 2px bar along its bottom.
11
+ ========================================================================== */
12
+
13
+ /* ══ Toast ══════════════════════════════════════════════════════════════ */
14
+
15
+ html.mt-ds .p-toast {
16
+ max-width: 484px;
17
+ width: 484px;
18
+ }
19
+
20
+ html.mt-ds .p-toast-message {
21
+ position: relative;
22
+ overflow: hidden;
23
+ border: none;
24
+ border-radius: 8px;
25
+ background: #ffffff;
26
+ box-shadow: 0 32px 64px -12px rgb(16 24 40 / 0.14);
27
+ font-family: var(--ds-font-sans);
28
+ }
29
+
30
+ /* 8px accent strip on the inline-start edge — mirrors under RTL for free. */
31
+ html.mt-ds .p-toast-message::before {
32
+ content: "";
33
+ position: absolute;
34
+ inset-block: 0;
35
+ inset-inline-start: 0;
36
+ width: 8px;
37
+ opacity: 0.7;
38
+ background: #d2d6db;
39
+ }
40
+
41
+ html.mt-ds .p-toast-message-content {
42
+ align-items: flex-start;
43
+ gap: 12px;
44
+ padding: 16px 24px;
45
+ }
46
+
47
+ html.mt-ds .p-toast-message-icon {
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+ width: 40px;
52
+ height: 40px;
53
+ min-width: 40px;
54
+ border-radius: 9999px;
55
+ background: #f3f4f6;
56
+ color: #374151;
57
+ }
58
+
59
+ html.mt-ds .p-toast-summary {
60
+ font-size: 16px;
61
+ font-weight: 700;
62
+ line-height: 24px;
63
+ color: #000b36;
64
+ }
65
+
66
+ html.mt-ds .p-toast-detail {
67
+ margin-top: 4px;
68
+ font-size: 14px;
69
+ font-weight: 400;
70
+ line-height: 20px;
71
+ color: #3c5073;
72
+ }
73
+
74
+ html.mt-ds .p-toast-close-button {
75
+ width: 32px;
76
+ height: 32px;
77
+ border-radius: 4px;
78
+ color: #3c5073;
79
+ }
80
+
81
+ html.mt-ds .p-toast-close-button:hover {
82
+ background: rgb(0 0 0 / 0.06);
83
+ }
84
+
85
+ /* Per-severity accent + icon disc. */
86
+ html.mt-ds .p-toast-message-success::before {
87
+ background: rgb(0 97 33 / 0.7);
88
+ }
89
+ html.mt-ds .p-toast-message-success .p-toast-message-icon {
90
+ background: #e6f4ee;
91
+ color: #006121;
92
+ }
93
+
94
+ html.mt-ds .p-toast-message-error::before {
95
+ background: rgb(163 0 0 / 0.7);
96
+ }
97
+ html.mt-ds .p-toast-message-error .p-toast-message-icon {
98
+ background: #fdeceb;
99
+ color: #a30000;
100
+ }
101
+
102
+ html.mt-ds .p-toast-message-warn::before {
103
+ background: rgb(221 118 0 / 0.7);
104
+ }
105
+ html.mt-ds .p-toast-message-warn .p-toast-message-icon {
106
+ background: #fef4e6;
107
+ color: #dd7600;
108
+ }
109
+
110
+ html.mt-ds .p-toast-message-info::before {
111
+ background: rgb(24 73 169 / 0.7);
112
+ }
113
+ html.mt-ds .p-toast-message-info .p-toast-message-icon {
114
+ background: #eff8ff;
115
+ color: #1849a9;
116
+ }
117
+
118
+ /* ══ Inline notification banner ═════════════════════════════════════════ */
119
+ /* PrimeNG `p-message` is the closest surface to the DS Notification. */
120
+
121
+ html.mt-ds .p-message {
122
+ position: relative;
123
+ min-height: 56px;
124
+ padding: 8px 24px;
125
+ border: none;
126
+ border-radius: 4px;
127
+ overflow: hidden;
128
+ font-family: var(--ds-font-sans);
129
+ font-size: 16px;
130
+ line-height: 24px;
131
+ }
132
+
133
+ html.mt-ds .p-message::after {
134
+ content: "";
135
+ position: absolute;
136
+ inset-inline: 0;
137
+ bottom: 0;
138
+ height: 2px;
139
+ }
140
+
141
+ html.mt-ds .p-message-content {
142
+ gap: 8px;
143
+ padding: 0;
144
+ }
145
+
146
+ html.mt-ds .p-message-text {
147
+ font-size: 16px;
148
+ line-height: 24px;
149
+ }
150
+
151
+ html.mt-ds .p-message-error {
152
+ background: #fdeceb;
153
+ color: #a30000;
154
+ }
155
+ html.mt-ds .p-message-error::after {
156
+ background: rgb(163 0 0 / 0.7);
157
+ }
158
+
159
+ html.mt-ds .p-message-warn {
160
+ background: #fffbf6;
161
+ color: #dd7600;
162
+ }
163
+ html.mt-ds .p-message-warn::after {
164
+ background: rgb(221 118 0 / 0.6);
165
+ }
166
+
167
+ html.mt-ds .p-message-success {
168
+ background: #e6f4ee;
169
+ color: #006121;
170
+ }
171
+ html.mt-ds .p-message-success::after {
172
+ background: rgb(0 97 33 / 0.6);
173
+ }
174
+
175
+ html.mt-ds .p-message-info {
176
+ background: #eff8ff;
177
+ color: #1849a9;
178
+ }
179
+ html.mt-ds .p-message-info::after {
180
+ background: rgb(24 73 169 / 0.6);
181
+ }
182
+
183
+ html.mt-ds .p-message-secondary {
184
+ background: #f5faff;
185
+ color: #3c5073;
186
+ }
187
+ html.mt-ds .p-message-secondary::after {
188
+ background: rgb(210 214 219 / 0.6);
189
+ }
190
+
191
+ /* ══ Tooltip ════════════════════════════════════════════════════════════ */
192
+ /* DS dark tooltip: #1F2A37 surface, 4px content radius, 8px padding,
193
+ 12/18 text, layered drop-shadows. Note this is #1F2A37 — the #1A2236 in the
194
+ chart tokens is the *chart* tooltip and a different surface.
195
+
196
+ A bare PrimeNG tooltip is a single string, which is the DS tooltip's primary
197
+ text, so it takes the primary-on-dark colour (#F9FAFB) rather than the
198
+ secondary body colour the DS uses under a title. */
199
+
200
+ html.mt-ds .p-tooltip .p-tooltip-text {
201
+ max-width: 240px;
202
+ padding: 8px;
203
+ border-radius: 4px;
204
+ background: #1f2a37;
205
+ color: #f9fafb;
206
+ font-family: var(--ds-font-sans);
207
+ font-size: 12px;
208
+ font-weight: 400;
209
+ line-height: 18px;
210
+ box-shadow:
211
+ 0 2px 4px rgb(16 24 40 / 0.08),
212
+ 0 8px 20px rgb(16 24 40 / 0.14);
213
+ }
214
+
215
+ html.mt-ds .p-tooltip .p-tooltip-arrow {
216
+ border-top-color: #1f2a37;
217
+ border-bottom-color: #1f2a37;
218
+ border-left-color: #1f2a37;
219
+ border-right-color: #1f2a37;
220
+ }