@masterteam/components 0.0.332 → 0.0.334
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/i18n/ar.json +1 -0
- package/assets/i18n/en.json +1 -0
- package/fesm2022/masterteam-components-client-page.mjs +10 -4
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs +10 -0
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +8 -3
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +4 -4
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +9 -2
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-slider-field.mjs +2 -2
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-tooltip.mjs +11 -3
- package/fesm2022/masterteam-components-tooltip.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +3 -662
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-client-page.d.ts +7 -2
- package/types/masterteam-components-dynamic-drawer.d.ts +6 -0
- package/types/masterteam-components-entities.d.ts +8 -5
- package/types/masterteam-components-select-field.d.ts +7 -0
- package/types/masterteam-components-tooltip.d.ts +1 -0
- package/types/masterteam-components.d.ts +2 -174
- package/assets/ds-components/button.css +0 -385
- package/assets/ds-components/content-switcher.css +0 -124
- package/assets/ds-components/feedback.css +0 -220
- package/assets/ds-components/field.css +0 -526
- package/assets/ds-components/misc.css +0 -252
- package/assets/ds-components/overlay.css +0 -268
- package/assets/ds-components/pagination.css +0 -140
- package/assets/ds-components/selection-controls.css +0 -245
- package/assets/ds-components/surfaces.css +0 -173
- package/assets/ds-components/table.css +0 -142
- package/assets/ds-components/tabs.css +0 -331
- package/assets/ds-identity.css +0 -275
- 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 +0 -100
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
Tabs — transcribed from DS `Tabs/Tabs.module.css` (Figma node 4747:83313)
|
|
3
|
-
--------------------------------------------------------------------------
|
|
4
|
-
Horizontal (small): 36px tall · 8px/12px padding [DS Medium is 44/12/16;
|
|
5
|
-
small is used as the default - this product is denser
|
|
6
|
-
than the DS reference layouts] · 3px bottom bar #1849A9
|
|
7
|
-
list divider 3px #D2D6DB · text always 14px
|
|
8
|
-
weight 500 unselected → 700 selected · colour #000B36
|
|
9
|
-
hover bg #E5E7EB · pressed #D2D6DB · disabled #6C7C96
|
|
10
|
-
Vertical (medium): 44px tall · 12px padding · 3px pill-rounded left bar
|
|
11
|
-
weight 400 unselected → 600 selected
|
|
12
|
-
|
|
13
|
-
Two targets, because the library has two tab implementations: `mt-tabs`
|
|
14
|
-
(hand-rolled with Tailwind utilities) and PrimeNG `p-tabs`. Unlayered rules
|
|
15
|
-
outrank both `@layer utilities` and `@layer primeng`, so neither needs a
|
|
16
|
-
template change.
|
|
17
|
-
========================================================================== */
|
|
18
|
-
|
|
19
|
-
/* ══ mt-tabs — underline (horizontal) mode ══════════════════════════════ */
|
|
20
|
-
/* Transcribed from the real .htab rules, not the summary at the top of the DS
|
|
21
|
-
module - that comment claims 36/44/52 per size, but every .htabSmall /
|
|
22
|
-
Medium / Large block is identical: 52px tall, 16px padding, 14/20 text.
|
|
23
|
-
|
|
24
|
-
The active indicator is NOT a bottom border. It is a 3px pill inset 16px
|
|
25
|
-
from each inline edge, so it sits under the label rather than spanning the
|
|
26
|
-
full tab - which is why a border-bottom never looked right. Hover paints
|
|
27
|
-
the same bar in #1F2A37. */
|
|
28
|
-
|
|
29
|
-
html.mt-ds mt-tabs [role="tablist"][aria-orientation="horizontal"] > div {
|
|
30
|
-
border-bottom: 3px solid #d2d6db;
|
|
31
|
-
gap: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
html.mt-ds
|
|
35
|
-
mt-tabs
|
|
36
|
-
[role="tablist"][aria-orientation="horizontal"]
|
|
37
|
-
[role="tab"] {
|
|
38
|
-
position: relative;
|
|
39
|
-
height: 52px;
|
|
40
|
-
padding: 16px;
|
|
41
|
-
gap: 8px;
|
|
42
|
-
margin-bottom: 0;
|
|
43
|
-
border: none;
|
|
44
|
-
border-radius: 4px;
|
|
45
|
-
font-family: var(--ds-font-sans);
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
font-weight: 500;
|
|
48
|
-
line-height: 20px;
|
|
49
|
-
color: #000b36;
|
|
50
|
-
transition: background-color var(--ds-transition-fast);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
html.mt-ds
|
|
54
|
-
mt-tabs
|
|
55
|
-
[role="tablist"][aria-orientation="horizontal"]
|
|
56
|
-
[role="tab"]::after {
|
|
57
|
-
content: "";
|
|
58
|
-
position: absolute;
|
|
59
|
-
bottom: 0;
|
|
60
|
-
inset-inline: 16px;
|
|
61
|
-
height: 3px;
|
|
62
|
-
border-radius: 9999px;
|
|
63
|
-
background: transparent;
|
|
64
|
-
transition: background-color var(--ds-transition-fast);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
html.mt-ds
|
|
68
|
-
mt-tabs
|
|
69
|
-
[role="tablist"][aria-orientation="horizontal"]
|
|
70
|
-
[role="tab"]:not([aria-selected="true"], :disabled):hover {
|
|
71
|
-
background: #e5e7eb;
|
|
72
|
-
color: #000b36;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
html.mt-ds
|
|
76
|
-
mt-tabs
|
|
77
|
-
[role="tablist"][aria-orientation="horizontal"]
|
|
78
|
-
[role="tab"]:not([aria-selected="true"], :disabled):hover::after {
|
|
79
|
-
background: #1f2a37;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
html.mt-ds
|
|
83
|
-
mt-tabs
|
|
84
|
-
[role="tablist"][aria-orientation="horizontal"]
|
|
85
|
-
[role="tab"]:not([aria-selected="true"], :disabled):active {
|
|
86
|
-
background: #d2d6db;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
html.mt-ds
|
|
90
|
-
mt-tabs
|
|
91
|
-
[role="tablist"][aria-orientation="horizontal"]
|
|
92
|
-
[role="tab"][aria-selected="true"] {
|
|
93
|
-
background: transparent;
|
|
94
|
-
color: #000b36;
|
|
95
|
-
font-weight: 700;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
html.mt-ds
|
|
99
|
-
mt-tabs
|
|
100
|
-
[role="tablist"][aria-orientation="horizontal"]
|
|
101
|
-
[role="tab"][aria-selected="true"]::after {
|
|
102
|
-
background: #1849a9;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
html.mt-ds
|
|
106
|
-
mt-tabs
|
|
107
|
-
[role="tablist"][aria-orientation="horizontal"]
|
|
108
|
-
[role="tab"]:disabled {
|
|
109
|
-
color: #6c7c96;
|
|
110
|
-
background: transparent;
|
|
111
|
-
opacity: 1;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
html.mt-ds
|
|
115
|
-
mt-tabs
|
|
116
|
-
[role="tablist"][aria-orientation="horizontal"]
|
|
117
|
-
[role="tab"][aria-selected="true"]:disabled::after {
|
|
118
|
-
background: #6c7c96;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/* ══ mt-tabs — vertical mode ════════════════════════════════════════════ */
|
|
122
|
-
|
|
123
|
-
html.mt-ds mt-tabs [role="tablist"][aria-orientation="vertical"] {
|
|
124
|
-
width: 150px;
|
|
125
|
-
gap: 0;
|
|
126
|
-
padding: 0;
|
|
127
|
-
border: none;
|
|
128
|
-
border-radius: 0;
|
|
129
|
-
background: transparent;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
html.mt-ds mt-tabs [role="tablist"][aria-orientation="vertical"] [role="tab"] {
|
|
133
|
-
position: relative;
|
|
134
|
-
height: 36px;
|
|
135
|
-
padding: 8px 12px;
|
|
136
|
-
border-radius: 0;
|
|
137
|
-
font-family: var(--ds-font-sans);
|
|
138
|
-
font-size: 14px;
|
|
139
|
-
font-weight: 400;
|
|
140
|
-
color: #000b36;
|
|
141
|
-
background: transparent;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
html.mt-ds
|
|
145
|
-
mt-tabs
|
|
146
|
-
[role="tablist"][aria-orientation="vertical"]
|
|
147
|
-
[role="tab"]::before {
|
|
148
|
-
content: "";
|
|
149
|
-
position: absolute;
|
|
150
|
-
inset-inline-start: 0;
|
|
151
|
-
inset-block: 0;
|
|
152
|
-
width: 3px;
|
|
153
|
-
border-radius: 9999px;
|
|
154
|
-
background: transparent;
|
|
155
|
-
transition: background-color var(--ds-transition-fast);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
html.mt-ds
|
|
159
|
-
mt-tabs
|
|
160
|
-
[role="tablist"][aria-orientation="vertical"]
|
|
161
|
-
[role="tab"]:not([aria-selected="true"], :disabled):hover {
|
|
162
|
-
background: #e5e7eb;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
html.mt-ds
|
|
166
|
-
mt-tabs
|
|
167
|
-
[role="tablist"][aria-orientation="vertical"]
|
|
168
|
-
[role="tab"]:not([aria-selected="true"], :disabled):hover::before {
|
|
169
|
-
background: #1f2a37;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
html.mt-ds
|
|
173
|
-
mt-tabs
|
|
174
|
-
[role="tablist"][aria-orientation="vertical"]
|
|
175
|
-
[role="tab"][aria-selected="true"] {
|
|
176
|
-
background: transparent;
|
|
177
|
-
color: #000b36;
|
|
178
|
-
font-weight: 600;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
html.mt-ds
|
|
182
|
-
mt-tabs
|
|
183
|
-
[role="tablist"][aria-orientation="vertical"]
|
|
184
|
-
[role="tab"][aria-selected="true"]::before {
|
|
185
|
-
background: #1849a9;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
html.mt-ds
|
|
189
|
-
mt-tabs
|
|
190
|
-
[role="tablist"][aria-orientation="vertical"]
|
|
191
|
-
[role="tab"][aria-selected="true"]:disabled::before {
|
|
192
|
-
background: #d2d6db;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/* ── Shared: focus ring ────────────────────────────────────────────────── */
|
|
196
|
-
|
|
197
|
-
html.mt-ds mt-tabs [role="tab"]:focus-visible {
|
|
198
|
-
outline: 3px solid #1849a9;
|
|
199
|
-
outline-offset: 2px;
|
|
200
|
-
box-shadow: none;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/* ══ PrimeNG p-tabs ═════════════════════════════════════════════════════ */
|
|
204
|
-
|
|
205
|
-
html.mt-ds .p-tablist {
|
|
206
|
-
border-bottom: 3px solid #d2d6db;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
html.mt-ds .p-tab {
|
|
210
|
-
height: 44px;
|
|
211
|
-
padding: 12px 16px;
|
|
212
|
-
border-width: 0 0 3px 0;
|
|
213
|
-
border-color: transparent;
|
|
214
|
-
font-family: var(--ds-font-sans);
|
|
215
|
-
font-size: 14px;
|
|
216
|
-
font-weight: 500;
|
|
217
|
-
color: #000b36;
|
|
218
|
-
margin-bottom: -3px;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
html.mt-ds .p-tab:not(.p-tab-active, .p-disabled):hover {
|
|
222
|
-
background: #e5e7eb;
|
|
223
|
-
color: #000b36;
|
|
224
|
-
border-color: transparent;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
html.mt-ds .p-tab-active {
|
|
228
|
-
color: #000b36;
|
|
229
|
-
font-weight: 700;
|
|
230
|
-
border-color: #1849a9;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
html.mt-ds .p-tablist-active-bar {
|
|
234
|
-
height: 3px;
|
|
235
|
-
bottom: -3px;
|
|
236
|
-
background: #1849a9;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/* ══ mt-tabs default mode — render as DS Tabs, not a content switcher ═══ */
|
|
240
|
-
/* mt-tabs with no mode set renders a p-selectbutton, so it was picking up the
|
|
241
|
-
content-switcher look: a grey track with one solid blue filled segment. But
|
|
242
|
-
callers use it as a tab strip, and a DS tab is an underline rather than a
|
|
243
|
-
segmented control — so it read as the wrong component entirely, whatever its
|
|
244
|
-
dimensions.
|
|
245
|
-
|
|
246
|
-
Scoped to mt-tabs, so a bare p-selectbutton used as a genuine view toggle
|
|
247
|
-
keeps the content-switcher treatment from content-switcher.css. */
|
|
248
|
-
|
|
249
|
-
html.mt-ds mt-tabs .p-selectbutton {
|
|
250
|
-
gap: 0;
|
|
251
|
-
padding: 0;
|
|
252
|
-
border: none;
|
|
253
|
-
border-bottom: 3px solid #d2d6db;
|
|
254
|
-
border-radius: 0;
|
|
255
|
-
background: transparent;
|
|
256
|
-
overflow: visible;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
html.mt-ds mt-tabs .p-selectbutton .p-togglebutton {
|
|
260
|
-
position: relative;
|
|
261
|
-
height: 52px;
|
|
262
|
-
min-width: 0;
|
|
263
|
-
border: none;
|
|
264
|
-
border-radius: 4px;
|
|
265
|
-
background: transparent;
|
|
266
|
-
color: #000b36;
|
|
267
|
-
font-weight: 500;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/* No inter-item dividers on a tab strip - those belong to the switcher. */
|
|
271
|
-
html.mt-ds mt-tabs .p-selectbutton .p-togglebutton + .p-togglebutton {
|
|
272
|
-
border-inline-start: none;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
html.mt-ds mt-tabs .p-selectbutton .p-togglebutton .p-togglebutton-content {
|
|
276
|
-
gap: 8px;
|
|
277
|
-
padding: 16px;
|
|
278
|
-
background: transparent;
|
|
279
|
-
color: inherit;
|
|
280
|
-
font-size: 14px;
|
|
281
|
-
font-weight: inherit;
|
|
282
|
-
line-height: 20px;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
html.mt-ds mt-tabs .p-selectbutton .p-togglebutton::after {
|
|
286
|
-
content: "";
|
|
287
|
-
position: absolute;
|
|
288
|
-
bottom: 0;
|
|
289
|
-
inset-inline: 16px;
|
|
290
|
-
height: 3px;
|
|
291
|
-
border-radius: 9999px;
|
|
292
|
-
background: transparent;
|
|
293
|
-
transition: background-color var(--ds-transition-fast);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
html.mt-ds
|
|
297
|
-
mt-tabs
|
|
298
|
-
.p-selectbutton
|
|
299
|
-
.p-togglebutton:not(.p-togglebutton-checked, .p-disabled):hover {
|
|
300
|
-
background: #e5e7eb;
|
|
301
|
-
color: #000b36;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
html.mt-ds
|
|
305
|
-
mt-tabs
|
|
306
|
-
.p-selectbutton
|
|
307
|
-
.p-togglebutton:not(.p-togglebutton-checked, .p-disabled):hover::after {
|
|
308
|
-
background: #1f2a37;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
html.mt-ds mt-tabs .p-selectbutton .p-togglebutton.p-togglebutton-checked {
|
|
312
|
-
background: transparent;
|
|
313
|
-
color: #000b36;
|
|
314
|
-
font-weight: 700;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
html.mt-ds
|
|
318
|
-
mt-tabs
|
|
319
|
-
.p-selectbutton
|
|
320
|
-
.p-togglebutton.p-togglebutton-checked
|
|
321
|
-
.p-togglebutton-content {
|
|
322
|
-
background: transparent;
|
|
323
|
-
color: #000b36;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
html.mt-ds
|
|
327
|
-
mt-tabs
|
|
328
|
-
.p-selectbutton
|
|
329
|
-
.p-togglebutton.p-togglebutton-checked::after {
|
|
330
|
-
background: #1849a9;
|
|
331
|
-
}
|
package/assets/ds-identity.css
DELETED
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
Masterteam Design System — EXPERIMENTAL design identity
|
|
3
|
-
--------------------------------------------------------------------------
|
|
4
|
-
Source of truth : Figma WTmRAkJVvw0IvZMA7wBdTC · DsMasterteam (Storybook)
|
|
5
|
-
Angular port : @masterteam/components
|
|
6
|
-
|
|
7
|
-
This file has two parts:
|
|
8
|
-
|
|
9
|
-
1. `--ds-*` raw tokens on :root. Definitions only — declaring a custom
|
|
10
|
-
property paints nothing, so this part is always safe to ship.
|
|
11
|
-
2. Everything under `html.mt-ds`. This is where the identity is actually
|
|
12
|
-
applied. Nothing here renders until the host opts in with
|
|
13
|
-
`provideMTComponents({ designIdentity: 'experimental' })` or
|
|
14
|
-
`setMTDesignIdentity('experimental')`.
|
|
15
|
-
|
|
16
|
-
Three layers make up the identity:
|
|
17
|
-
|
|
18
|
-
1. The PrimeUIX preset (`src/lib/config/ds-identity.preset.ts`) — the
|
|
19
|
-
palette and the coarse geometry, reaching every component at once.
|
|
20
|
-
2. `ds-components/*.css` — per-component specs transcribed from the DS
|
|
21
|
-
modules: exact heights, per-state borders, variant colours, focus
|
|
22
|
-
rings. These are what make an `mt-*` component read as its DS
|
|
23
|
-
counterpart rather than merely share its palette.
|
|
24
|
-
3. This file — the cross-cutting remainder: font, type, the animated
|
|
25
|
-
input underline, tooltip, charts.
|
|
26
|
-
|
|
27
|
-
Layers 2 and 3 are deliberately **unlayered** CSS. Tailwind utilities live
|
|
28
|
-
in `@layer utilities` and the PrimeNG theme in `@layer primeng`, and
|
|
29
|
-
unlayered rules outrank both — so the DS look lands on hand-rolled Tailwind
|
|
30
|
-
components and PrimeNG wrappers alike, with no `!important` and no template
|
|
31
|
-
changes.
|
|
32
|
-
========================================================================== */
|
|
33
|
-
|
|
34
|
-
@import "./ibm-plex-sans-arabic.css";
|
|
35
|
-
|
|
36
|
-
/* Per-component DS specs. Order matters: later files win ties. */
|
|
37
|
-
@import "./ds-components/button.css";
|
|
38
|
-
@import "./ds-components/field.css";
|
|
39
|
-
@import "./ds-components/selection-controls.css";
|
|
40
|
-
@import "./ds-components/tabs.css";
|
|
41
|
-
@import "./ds-components/content-switcher.css";
|
|
42
|
-
@import "./ds-components/table.css";
|
|
43
|
-
@import "./ds-components/surfaces.css";
|
|
44
|
-
@import "./ds-components/overlay.css";
|
|
45
|
-
@import "./ds-components/feedback.css";
|
|
46
|
-
@import "./ds-components/pagination.css";
|
|
47
|
-
@import "./ds-components/misc.css";
|
|
48
|
-
|
|
49
|
-
:root {
|
|
50
|
-
/* ── Typography ─────────────────────────────────────────────── */
|
|
51
|
-
--ds-font-sans: "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif;
|
|
52
|
-
--ds-font-weight-regular: 400;
|
|
53
|
-
--ds-font-weight-medium: 500;
|
|
54
|
-
--ds-font-weight-semibold: 600;
|
|
55
|
-
--ds-font-weight-bold: 700;
|
|
56
|
-
|
|
57
|
-
/* Type scale — size / line-height pairs (Figma Typography / Desktop) */
|
|
58
|
-
--ds-text-xs: 0.75rem; /* 12px */
|
|
59
|
-
--ds-text-xs-lh: 1.125rem; /* 18px */
|
|
60
|
-
--ds-text-sm: 0.875rem; /* 14px */
|
|
61
|
-
--ds-text-sm-lh: 1.25rem; /* 20px */
|
|
62
|
-
--ds-text-md: 1rem; /* 16px */
|
|
63
|
-
--ds-text-md-lh: 1.5rem; /* 24px */
|
|
64
|
-
--ds-text-lg: 1.125rem; /* 18px */
|
|
65
|
-
--ds-text-lg-lh: 1.75rem; /* 28px */
|
|
66
|
-
--ds-text-xl: 1.25rem; /* 20px */
|
|
67
|
-
--ds-text-xl-lh: 1.875rem; /* 30px */
|
|
68
|
-
--ds-display-xs: 1.5rem; /* 24px */
|
|
69
|
-
--ds-display-xs-lh: 2rem; /* 32px */
|
|
70
|
-
--ds-display-sm: 1.875rem; /* 30px */
|
|
71
|
-
--ds-display-sm-lh: 2.375rem; /* 38px */
|
|
72
|
-
--ds-display-md: 2.25rem; /* 36px */
|
|
73
|
-
--ds-display-md-lh: 2.75rem; /* 44px */
|
|
74
|
-
|
|
75
|
-
/* ── Spacing (4px grid) ─────────────────────────────────────── */
|
|
76
|
-
--ds-space-xxs: 2px;
|
|
77
|
-
--ds-space-xs: 4px;
|
|
78
|
-
--ds-space-sm: 6px;
|
|
79
|
-
--ds-space-md: 8px;
|
|
80
|
-
--ds-space-lg: 12px;
|
|
81
|
-
--ds-space-xl: 16px;
|
|
82
|
-
--ds-space-2xl: 20px;
|
|
83
|
-
--ds-space-3xl: 24px;
|
|
84
|
-
--ds-space-4xl: 32px;
|
|
85
|
-
--ds-space-5xl: 40px;
|
|
86
|
-
--ds-space-6xl: 48px;
|
|
87
|
-
|
|
88
|
-
/* ── Radius ─────────────────────────────────────────────────── */
|
|
89
|
-
--ds-radius-xs: 2px;
|
|
90
|
-
--ds-radius-sm: 4px; /* default — buttons, inputs, dropdowns */
|
|
91
|
-
--ds-radius-md: 8px; /* cards, tooltips, popovers */
|
|
92
|
-
--ds-radius-lg: 16px; /* modals, drawers */
|
|
93
|
-
--ds-radius-xl: 24px;
|
|
94
|
-
--ds-radius-full: 9999px;
|
|
95
|
-
|
|
96
|
-
/* ── Elevation (Figma effect styles — do not invent new ones) ─ */
|
|
97
|
-
--ds-shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
|
|
98
|
-
--ds-shadow-sm:
|
|
99
|
-
0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
|
|
100
|
-
--ds-shadow-md:
|
|
101
|
-
0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
|
|
102
|
-
--ds-shadow-lg:
|
|
103
|
-
0 12px 16px -6px rgba(16, 24, 40, 0.08),
|
|
104
|
-
0 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
105
|
-
--ds-shadow-xl:
|
|
106
|
-
0 20px 24px -4px rgba(16, 24, 40, 0.08),
|
|
107
|
-
0 8px 8px -4px rgba(16, 24, 40, 0.03);
|
|
108
|
-
--ds-shadow-2xl: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
|
|
109
|
-
--ds-shadow-3xl: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
|
|
110
|
-
|
|
111
|
-
/* ── Motion ─────────────────────────────────────────────────── */
|
|
112
|
-
--ds-transition-fast: 120ms ease;
|
|
113
|
-
--ds-transition-base: 200ms ease;
|
|
114
|
-
|
|
115
|
-
/* ── Field density ──────────────────────────────────────────────
|
|
116
|
-
The DS publishes two field sizes, medium (32/14/8) and large (40/16/12).
|
|
117
|
-
Large is the default here; switch these four values to move the whole
|
|
118
|
-
form scale back to medium in one place. */
|
|
119
|
-
--ds-field-height: 40px;
|
|
120
|
-
--ds-field-font: 16px;
|
|
121
|
-
--ds-field-line: 24px;
|
|
122
|
-
--ds-field-pad-x: 12px;
|
|
123
|
-
|
|
124
|
-
/* ── Control heights ────────────────────────────────────────── */
|
|
125
|
-
--ds-control-height-sm: 24px;
|
|
126
|
-
--ds-control-height-md: 32px;
|
|
127
|
-
--ds-control-height-lg: 40px;
|
|
128
|
-
|
|
129
|
-
/* ── Focus ring (double ring — inner primary, outer white) ──── */
|
|
130
|
-
--ds-focus-ring-color: #1849a9;
|
|
131
|
-
--ds-focus-outline-color: #ffffff;
|
|
132
|
-
|
|
133
|
-
/* ── Colours that no PrimeUIX token covers ──────────────────── */
|
|
134
|
-
--ds-text-strong: #000b36; /* default label / body text */
|
|
135
|
-
--ds-text-secondary: #3c5073;
|
|
136
|
-
--ds-text-placeholder: #b6bdca;
|
|
137
|
-
--ds-disabled-bg: #d2d6db;
|
|
138
|
-
--ds-disabled-text: #6c7c96;
|
|
139
|
-
--ds-input-border: #d2d6db;
|
|
140
|
-
--ds-input-border-hover: #1f2a37;
|
|
141
|
-
--ds-input-border-readonly: #ced3dc;
|
|
142
|
-
--ds-danger: #a30000;
|
|
143
|
-
|
|
144
|
-
/* ── Chart palette (max 6 series — never add a 7th) ─────────── */
|
|
145
|
-
--ds-chart-series-1: #1849a9;
|
|
146
|
-
--ds-chart-series-2: #175cd3;
|
|
147
|
-
--ds-chart-series-3: #2e90fa;
|
|
148
|
-
--ds-chart-series-4: #53b1fd;
|
|
149
|
-
--ds-chart-series-5: #b2ddff;
|
|
150
|
-
--ds-chart-series-6: #d1e9ff;
|
|
151
|
-
--ds-chart-null: #d2d6db;
|
|
152
|
-
--ds-chart-skeleton: #e7e9ed;
|
|
153
|
-
--ds-chart-grid: #f3f4f6;
|
|
154
|
-
--ds-chart-title: #000b36;
|
|
155
|
-
--ds-chart-subtitle: #3c5073;
|
|
156
|
-
--ds-chart-axis-label: #6c7c96;
|
|
157
|
-
--ds-chart-tooltip-bg: #1a2236;
|
|
158
|
-
--ds-chart-kpi-positive: #006121;
|
|
159
|
-
--ds-chart-kpi-bg: rgba(0, 97, 33, 0.1);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/* ==========================================================================
|
|
163
|
-
Opt-in layer — everything below requires `html.mt-ds`
|
|
164
|
-
========================================================================== */
|
|
165
|
-
|
|
166
|
-
html.mt-ds {
|
|
167
|
-
/* One font for LTR and RTL alike; the DS has no per-language stack. */
|
|
168
|
-
--default-font-family: var(--ds-font-sans);
|
|
169
|
-
font-size: 16px;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/* The base stylesheet swaps in Cairo for Arabic. The DS deliberately does not:
|
|
173
|
-
IBM Plex Sans Arabic covers both scripts, and swapping breaks the rhythm. */
|
|
174
|
-
html.mt-ds:lang(ar) {
|
|
175
|
-
--default-font-family: var(--ds-font-sans);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@supports (font-variation-settings: normal) {
|
|
179
|
-
html.mt-ds,
|
|
180
|
-
html.mt-ds:lang(ar) {
|
|
181
|
-
--default-font-family: var(--ds-font-sans);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
html.mt-ds body {
|
|
186
|
-
font-size: var(--ds-text-sm);
|
|
187
|
-
line-height: var(--ds-text-sm-lh);
|
|
188
|
-
font-weight: var(--ds-font-weight-regular);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/* ── Input underline ───────────────────────────────────────────
|
|
192
|
-
Distinctive DS behaviour: the field grows a 2px primary bar along its bottom
|
|
193
|
-
edge — one third wide while pressed, full width once focused. Implemented as
|
|
194
|
-
an animated background layer so it works on the bare <input> element without
|
|
195
|
-
a wrapper. These rules sit outside @layer primeng, so the per-property
|
|
196
|
-
cascade keeps `background-image` even though PrimeNG sets the `background`
|
|
197
|
-
shorthand. */
|
|
198
|
-
html.mt-ds
|
|
199
|
-
:is(
|
|
200
|
-
.p-inputtext,
|
|
201
|
-
.p-textarea,
|
|
202
|
-
.p-select,
|
|
203
|
-
.p-multiselect,
|
|
204
|
-
.p-datepicker-input
|
|
205
|
-
) {
|
|
206
|
-
background-image: linear-gradient(
|
|
207
|
-
to right,
|
|
208
|
-
var(--p-primary-color),
|
|
209
|
-
var(--p-primary-color)
|
|
210
|
-
);
|
|
211
|
-
background-repeat: no-repeat;
|
|
212
|
-
background-position: bottom center;
|
|
213
|
-
background-size: 0% 2px;
|
|
214
|
-
transition:
|
|
215
|
-
background-size 150ms ease,
|
|
216
|
-
border-color var(--ds-transition-fast),
|
|
217
|
-
background-color var(--ds-transition-fast);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
html.mt-ds :is(.p-inputtext, .p-textarea):active:not(:focus) {
|
|
221
|
-
background-size: 33% 2px;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
html.mt-ds :is(.p-inputtext, .p-textarea):focus,
|
|
225
|
-
html.mt-ds
|
|
226
|
-
:is(.p-select, .p-multiselect, .p-datepicker):is(
|
|
227
|
-
.p-focus,
|
|
228
|
-
.p-inputwrapper-focus
|
|
229
|
-
)
|
|
230
|
-
> :is(.p-select-label, .p-multiselect-label-container, .p-datepicker-input),
|
|
231
|
-
html.mt-ds :is(.p-select, .p-multiselect).p-focus {
|
|
232
|
-
background-size: 100% 2px;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/* Error fields flip the bar to the DS danger red. */
|
|
236
|
-
html.mt-ds
|
|
237
|
-
:is(
|
|
238
|
-
.p-inputtext,
|
|
239
|
-
.p-textarea,
|
|
240
|
-
.p-select,
|
|
241
|
-
.p-multiselect
|
|
242
|
-
).ng-invalid.ng-touched,
|
|
243
|
-
html.mt-ds :is(.p-inputtext, .p-textarea, .p-select, .p-multiselect).p-invalid {
|
|
244
|
-
background-image: linear-gradient(
|
|
245
|
-
to right,
|
|
246
|
-
var(--ds-danger),
|
|
247
|
-
var(--ds-danger)
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/* ── Disabled ──────────────────────────────────────────────────
|
|
252
|
-
Hard DS rule: disabled state is a colour swap, never an opacity fade. The
|
|
253
|
-
preset zeroes `disabledOpacity`; this catches the components that dim
|
|
254
|
-
themselves in component CSS rather than through the token. */
|
|
255
|
-
html.mt-ds .p-disabled,
|
|
256
|
-
html.mt-ds .p-component:disabled {
|
|
257
|
-
opacity: 1;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/* Elevation, tooltip and toast live with their components in ds-components/. */
|
|
261
|
-
|
|
262
|
-
/* ── Charts ────────────────────────────────────────────────────
|
|
263
|
-
Series colours are consumed by @masterteam/dashboard-builder through these
|
|
264
|
-
variables, so a chart re-themes with the rest of the identity. */
|
|
265
|
-
html.mt-ds {
|
|
266
|
-
--mt-chart-series-1: var(--ds-chart-series-1);
|
|
267
|
-
--mt-chart-series-2: var(--ds-chart-series-2);
|
|
268
|
-
--mt-chart-series-3: var(--ds-chart-series-3);
|
|
269
|
-
--mt-chart-series-4: var(--ds-chart-series-4);
|
|
270
|
-
--mt-chart-series-5: var(--ds-chart-series-5);
|
|
271
|
-
--mt-chart-series-6: var(--ds-chart-series-6);
|
|
272
|
-
--mt-chart-grid: var(--ds-chart-grid);
|
|
273
|
-
--mt-chart-title: var(--ds-chart-title);
|
|
274
|
-
--mt-chart-subtitle: var(--ds-chart-subtitle);
|
|
275
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|