@masterteam/components 0.0.245 → 0.0.246

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.
Files changed (31) hide show
  1. package/assets/common.css +1 -1
  2. package/assets/ds-components/button.css +385 -385
  3. package/assets/ds-components/tabs.css +331 -331
  4. package/assets/i18n/ar.json +3 -0
  5. package/assets/i18n/en.json +3 -0
  6. package/fesm2022/masterteam-components-business-fields.mjs +29 -8
  7. package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
  8. package/fesm2022/masterteam-components-date-field.mjs +9 -3
  9. package/fesm2022/masterteam-components-date-field.mjs.map +1 -1
  10. package/fesm2022/masterteam-components-entities.mjs +89 -13
  11. package/fesm2022/masterteam-components-entities.mjs.map +1 -1
  12. package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
  13. package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
  14. package/fesm2022/masterteam-components-property-filter-builder.mjs +1 -1
  15. package/fesm2022/masterteam-components-property-filter-builder.mjs.map +1 -1
  16. package/fesm2022/masterteam-components-table.mjs +20 -3
  17. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  18. package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
  19. package/fesm2022/masterteam-components-treeselect-field.mjs +2 -2
  20. package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -1
  21. package/fesm2022/masterteam-components-user-search-field.mjs +20 -4
  22. package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
  23. package/fesm2022/masterteam-components.mjs +11 -1
  24. package/fesm2022/masterteam-components.mjs.map +1 -1
  25. package/package.json +17 -17
  26. package/types/masterteam-components-business-fields.d.ts +13 -0
  27. package/types/masterteam-components-date-field.d.ts +7 -1
  28. package/types/masterteam-components-entities.d.ts +68 -5
  29. package/types/masterteam-components-table.d.ts +8 -3
  30. package/types/masterteam-components-user-search-field.d.ts +5 -1
  31. package/types/masterteam-components.d.ts +12 -1
@@ -1,385 +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
- }
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
+ }