@masterteam/components 0.0.242 → 0.0.244
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/assets/common.css +1 -1
- package/assets/ds-components/button.css +367 -0
- package/assets/ds-components/content-switcher.css +124 -0
- package/assets/ds-components/feedback.css +220 -0
- package/assets/ds-components/field.css +526 -0
- package/assets/ds-components/misc.css +252 -0
- package/assets/ds-components/overlay.css +268 -0
- package/assets/ds-components/pagination.css +140 -0
- package/assets/ds-components/selection-controls.css +245 -0
- package/assets/ds-components/surfaces.css +173 -0
- package/assets/ds-components/table.css +142 -0
- package/assets/ds-components/tabs.css +200 -0
- package/assets/ds-identity.css +275 -0
- package/assets/fonts/IBMPlexSansArabic-400-arabic.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-400-latin.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-500-arabic.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-500-latin.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-600-arabic.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-600-latin.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-700-arabic.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-700-latin.woff2 +0 -0
- package/assets/ibm-plex-sans-arabic.css +100 -0
- package/fesm2022/masterteam-components-table.mjs +2 -2
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +662 -3
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components.d.ts +174 -2
|
@@ -0,0 +1,367 @@
|
|
|
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
|
+
height: 32px;
|
|
21
|
+
padding: 0 8px;
|
|
22
|
+
gap: 4px;
|
|
23
|
+
border-width: 1px;
|
|
24
|
+
border-style: solid;
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
font-family: var(--ds-font-sans);
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
line-height: 20px;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
position: relative;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
transition:
|
|
35
|
+
background-color var(--ds-transition-fast),
|
|
36
|
+
border-color var(--ds-transition-fast),
|
|
37
|
+
color var(--ds-transition-fast);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
html.mt-ds .p-button-sm {
|
|
41
|
+
height: 24px;
|
|
42
|
+
padding: 0 8px;
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
line-height: 18px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
html.mt-ds .p-button-lg {
|
|
48
|
+
height: 40px;
|
|
49
|
+
padding: 0 12px;
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
line-height: 24px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* ── Icon slot: 16 / 20 / 24 by size ───────────────────────────────────── */
|
|
55
|
+
|
|
56
|
+
html.mt-ds .p-button :is(.p-icon, .p-button-icon, mt-icon, svg) {
|
|
57
|
+
width: 20px;
|
|
58
|
+
height: 20px;
|
|
59
|
+
font-size: 20px;
|
|
60
|
+
flex-shrink: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
html.mt-ds .p-button-sm :is(.p-icon, .p-button-icon, mt-icon, svg) {
|
|
64
|
+
width: 16px;
|
|
65
|
+
height: 16px;
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
html.mt-ds .p-button-lg :is(.p-icon, .p-button-icon, mt-icon, svg) {
|
|
70
|
+
width: 24px;
|
|
71
|
+
height: 24px;
|
|
72
|
+
font-size: 24px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* ── Icon-only: square, no horizontal padding ──────────────────────────── */
|
|
76
|
+
|
|
77
|
+
/* `gap: 0` matters: PrimeNG still renders an (empty, zero-width) label span
|
|
78
|
+
next to the icon, and the 4px inter-child gap then pushes the icon off
|
|
79
|
+
centre by half of it. */
|
|
80
|
+
html.mt-ds .p-button.p-button-icon-only {
|
|
81
|
+
width: 32px;
|
|
82
|
+
padding: 0;
|
|
83
|
+
gap: 0;
|
|
84
|
+
aspect-ratio: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
html.mt-ds .p-button.p-button-icon-only.p-button-sm {
|
|
88
|
+
width: 24px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
html.mt-ds .p-button.p-button-icon-only.p-button-lg {
|
|
92
|
+
width: 40px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* ── Primary ───────────────────────────────────────────────────────────── */
|
|
96
|
+
|
|
97
|
+
html.mt-ds
|
|
98
|
+
.p-button:not(
|
|
99
|
+
.p-button-secondary,
|
|
100
|
+
.p-button-danger,
|
|
101
|
+
.p-button-outlined,
|
|
102
|
+
.p-button-text,
|
|
103
|
+
.p-button-link
|
|
104
|
+
) {
|
|
105
|
+
background: #1849a9;
|
|
106
|
+
border-color: #1849a9;
|
|
107
|
+
color: #f9fafb;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
html.mt-ds
|
|
111
|
+
.p-button:not(
|
|
112
|
+
.p-button-secondary,
|
|
113
|
+
.p-button-danger,
|
|
114
|
+
.p-button-outlined,
|
|
115
|
+
.p-button-text,
|
|
116
|
+
.p-button-link
|
|
117
|
+
):not(:disabled):hover {
|
|
118
|
+
background: #194185;
|
|
119
|
+
border-color: #194185;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
html.mt-ds
|
|
123
|
+
.p-button:not(
|
|
124
|
+
.p-button-secondary,
|
|
125
|
+
.p-button-danger,
|
|
126
|
+
.p-button-outlined,
|
|
127
|
+
.p-button-text,
|
|
128
|
+
.p-button-link
|
|
129
|
+
):not(:disabled):active {
|
|
130
|
+
background: #102a56;
|
|
131
|
+
border-color: #102a56;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
html.mt-ds
|
|
135
|
+
.p-button:not(
|
|
136
|
+
.p-button-secondary,
|
|
137
|
+
.p-button-danger,
|
|
138
|
+
.p-button-outlined,
|
|
139
|
+
.p-button-text,
|
|
140
|
+
.p-button-link
|
|
141
|
+
):focus-visible {
|
|
142
|
+
outline: none;
|
|
143
|
+
box-shadow:
|
|
144
|
+
0 0 0 2px #1849a9,
|
|
145
|
+
0 0 0 5px #f9fafb;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ── Neutral ───────────────────────────────────────────────────────────── */
|
|
149
|
+
|
|
150
|
+
html.mt-ds
|
|
151
|
+
.p-button.p-button-secondary:not(
|
|
152
|
+
.p-button-outlined,
|
|
153
|
+
.p-button-text,
|
|
154
|
+
.p-button-link
|
|
155
|
+
) {
|
|
156
|
+
background: #f3f4f6;
|
|
157
|
+
border-color: #f3f4f6;
|
|
158
|
+
color: #000b36;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
html.mt-ds
|
|
162
|
+
.p-button.p-button-secondary:not(
|
|
163
|
+
.p-button-outlined,
|
|
164
|
+
.p-button-text,
|
|
165
|
+
.p-button-link
|
|
166
|
+
):not(:disabled):hover {
|
|
167
|
+
background: #e5e7eb;
|
|
168
|
+
border-color: #e5e7eb;
|
|
169
|
+
color: #000b36;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
html.mt-ds
|
|
173
|
+
.p-button.p-button-secondary:not(
|
|
174
|
+
.p-button-outlined,
|
|
175
|
+
.p-button-text,
|
|
176
|
+
.p-button-link
|
|
177
|
+
):not(:disabled):active {
|
|
178
|
+
background: #d2d6db;
|
|
179
|
+
border-color: #d2d6db;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
html.mt-ds .p-button.p-button-secondary:focus-visible {
|
|
183
|
+
outline: none;
|
|
184
|
+
box-shadow:
|
|
185
|
+
0 0 0 2px #f3f4f6,
|
|
186
|
+
0 0 0 5px #1849a9;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* ── Secondary-solid (tinted) ──────────────────────────────────────────── */
|
|
190
|
+
|
|
191
|
+
html.mt-ds .p-button.p-button-outlined:not(.p-button-danger) {
|
|
192
|
+
background: rgb(24 73 169 / 0.2);
|
|
193
|
+
border-color: transparent;
|
|
194
|
+
color: #1849a9;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
html.mt-ds
|
|
198
|
+
.p-button.p-button-outlined:not(.p-button-danger):not(:disabled):hover {
|
|
199
|
+
background: rgb(24 73 169 / 0.1);
|
|
200
|
+
border-color: transparent;
|
|
201
|
+
color: #1849a9;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
html.mt-ds
|
|
205
|
+
.p-button.p-button-outlined:not(.p-button-danger):not(:disabled):active {
|
|
206
|
+
background: rgb(24 73 169 / 0.3);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
html.mt-ds .p-button.p-button-outlined:not(.p-button-danger):focus-visible {
|
|
210
|
+
outline: none;
|
|
211
|
+
box-shadow:
|
|
212
|
+
0 0 0 2px rgb(24 73 169 / 0.2),
|
|
213
|
+
0 0 0 5px #1849a9;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* ── Transparent / ghost ───────────────────────────────────────────────── */
|
|
217
|
+
|
|
218
|
+
html.mt-ds .p-button:is(.p-button-text, .p-button-link):not(.p-button-danger) {
|
|
219
|
+
background: transparent;
|
|
220
|
+
border-color: transparent;
|
|
221
|
+
color: #175cd3;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
html.mt-ds
|
|
225
|
+
.p-button:is(.p-button-text, .p-button-link):not(.p-button-danger):not(
|
|
226
|
+
:disabled
|
|
227
|
+
):hover {
|
|
228
|
+
background: rgb(24 73 169 / 0.06);
|
|
229
|
+
color: #1570ef;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
html.mt-ds
|
|
233
|
+
.p-button:is(.p-button-text, .p-button-link):not(.p-button-danger):not(
|
|
234
|
+
:disabled
|
|
235
|
+
):active {
|
|
236
|
+
background: rgb(24 73 169 / 0.12);
|
|
237
|
+
color: #1570ef;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
html.mt-ds
|
|
241
|
+
.p-button:is(.p-button-text, .p-button-link):not(
|
|
242
|
+
.p-button-danger
|
|
243
|
+
):focus-visible {
|
|
244
|
+
outline: none;
|
|
245
|
+
box-shadow:
|
|
246
|
+
0 0 0 2px transparent,
|
|
247
|
+
0 0 0 5px #1849a9;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* ── Danger ────────────────────────────────────────────────────────────── */
|
|
251
|
+
|
|
252
|
+
html.mt-ds
|
|
253
|
+
.p-button.p-button-danger:not(
|
|
254
|
+
.p-button-outlined,
|
|
255
|
+
.p-button-text,
|
|
256
|
+
.p-button-link
|
|
257
|
+
) {
|
|
258
|
+
background: #a30000;
|
|
259
|
+
border-color: #a30000;
|
|
260
|
+
color: #f9fafb;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
html.mt-ds
|
|
264
|
+
.p-button.p-button-danger:not(
|
|
265
|
+
.p-button-outlined,
|
|
266
|
+
.p-button-text,
|
|
267
|
+
.p-button-link
|
|
268
|
+
):not(:disabled):hover {
|
|
269
|
+
background: #8b0000;
|
|
270
|
+
border-color: #8b0000;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
html.mt-ds
|
|
274
|
+
.p-button.p-button-danger:not(
|
|
275
|
+
.p-button-outlined,
|
|
276
|
+
.p-button-text,
|
|
277
|
+
.p-button-link
|
|
278
|
+
):not(:disabled):active {
|
|
279
|
+
background: #6f0000;
|
|
280
|
+
border-color: #6f0000;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
html.mt-ds
|
|
284
|
+
.p-button.p-button-danger:not(
|
|
285
|
+
.p-button-outlined,
|
|
286
|
+
.p-button-text,
|
|
287
|
+
.p-button-link
|
|
288
|
+
):focus-visible {
|
|
289
|
+
outline: none;
|
|
290
|
+
box-shadow:
|
|
291
|
+
0 0 0 2px #a30000,
|
|
292
|
+
0 0 0 5px #f9fafb;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* ── Danger-secondary ──────────────────────────────────────────────────── */
|
|
296
|
+
|
|
297
|
+
html.mt-ds
|
|
298
|
+
.p-button.p-button-danger:is(
|
|
299
|
+
.p-button-outlined,
|
|
300
|
+
.p-button-text,
|
|
301
|
+
.p-button-link
|
|
302
|
+
) {
|
|
303
|
+
background: #fcdad7;
|
|
304
|
+
border-color: transparent;
|
|
305
|
+
color: #a30000;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
html.mt-ds
|
|
309
|
+
.p-button.p-button-danger:is(
|
|
310
|
+
.p-button-outlined,
|
|
311
|
+
.p-button-text,
|
|
312
|
+
.p-button-link
|
|
313
|
+
):not(:disabled):hover {
|
|
314
|
+
background: #f8bab5;
|
|
315
|
+
color: #a30000;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
html.mt-ds
|
|
319
|
+
.p-button.p-button-danger:is(
|
|
320
|
+
.p-button-outlined,
|
|
321
|
+
.p-button-text,
|
|
322
|
+
.p-button-link
|
|
323
|
+
):not(:disabled):active {
|
|
324
|
+
background: #f3908a;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
html.mt-ds
|
|
328
|
+
.p-button.p-button-danger:is(
|
|
329
|
+
.p-button-outlined,
|
|
330
|
+
.p-button-text,
|
|
331
|
+
.p-button-link
|
|
332
|
+
):focus-visible {
|
|
333
|
+
outline: none;
|
|
334
|
+
box-shadow:
|
|
335
|
+
0 0 0 2px #fcdad7,
|
|
336
|
+
0 0 0 5px #a30000;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/* ── Disabled — dedicated tokens, never opacity ────────────────────────── */
|
|
340
|
+
|
|
341
|
+
html.mt-ds .p-button:disabled,
|
|
342
|
+
html.mt-ds .p-button.p-disabled {
|
|
343
|
+
background: #d2d6db;
|
|
344
|
+
border-color: #d2d6db;
|
|
345
|
+
color: #6c7c96;
|
|
346
|
+
opacity: 1;
|
|
347
|
+
cursor: not-allowed;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
html.mt-ds
|
|
351
|
+
.p-button:is(.p-button-text, .p-button-link):is(:disabled, .p-disabled) {
|
|
352
|
+
background: transparent;
|
|
353
|
+
border-color: transparent;
|
|
354
|
+
color: #6c7c96;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* ── Loading — DS hides the label and centres the spinner ──────────────── */
|
|
358
|
+
|
|
359
|
+
html.mt-ds .p-button-loading .p-button-label {
|
|
360
|
+
visibility: hidden;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
html.mt-ds .p-button-loading .p-button-loading-icon {
|
|
364
|
+
position: absolute;
|
|
365
|
+
inset: 0;
|
|
366
|
+
margin: auto;
|
|
367
|
+
}
|
|
@@ -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: 40px;
|
|
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 12px;
|
|
54
|
+
background: transparent;
|
|
55
|
+
border-radius: 0;
|
|
56
|
+
box-shadow: none;
|
|
57
|
+
color: inherit;
|
|
58
|
+
font-size: 18px;
|
|
59
|
+
line-height: 28px;
|
|
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: 48px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
html.mt-ds .p-selectbutton .p-togglebutton-lg .p-togglebutton-content {
|
|
121
|
+
padding: 0 16px;
|
|
122
|
+
font-size: 20px;
|
|
123
|
+
line-height: 30px;
|
|
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
|
+
}
|