@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,252 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Accordion · Breadcrumb · Progress · Slider · Avatar · Tree · Upload
|
|
3
|
+
--------------------------------------------------------------------------
|
|
4
|
+
Accordion DS `Accordion` (Figma 4113:1059)
|
|
5
|
+
Breadcrumb DS `Breadcrumb`
|
|
6
|
+
ProgressBar DS `ProgressBar` (Figma 4399:20639)
|
|
7
|
+
Slider DS `Slider` (Figma 4731:482)
|
|
8
|
+
========================================================================== */
|
|
9
|
+
|
|
10
|
+
/* ══ Accordion ══════════════════════════════════════════════════════════ */
|
|
11
|
+
/* DS: header 16/600 #000B36, 16px padding (lg), 16px chevron #6C737F,
|
|
12
|
+
hover #FCFCFD, pressed #F3F4F6, 1px #E5E7EB rules. Content is 16/400
|
|
13
|
+
#3C5073 with an asymmetric inset — 16px leading, 48px trailing. */
|
|
14
|
+
|
|
15
|
+
html.mt-ds :is(.p-accordionpanel, .p-accordion-panel) {
|
|
16
|
+
border-color: #e5e7eb;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
html.mt-ds :is(.p-accordionheader, .p-accordion-header) {
|
|
20
|
+
padding: 16px;
|
|
21
|
+
background: transparent;
|
|
22
|
+
font-family: var(--ds-font-sans);
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
line-height: 24px;
|
|
26
|
+
color: #000b36;
|
|
27
|
+
transition: background-color var(--ds-transition-fast);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
html.mt-ds :is(.p-accordionheader, .p-accordion-header):not(.p-disabled):hover {
|
|
31
|
+
background: #fcfcfd;
|
|
32
|
+
color: #000b36;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
html.mt-ds
|
|
36
|
+
:is(.p-accordionheader, .p-accordion-header):not(.p-disabled):active {
|
|
37
|
+
background: #f3f4f6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
html.mt-ds :is(.p-accordionheader, .p-accordion-header).p-disabled {
|
|
41
|
+
color: #3c5073;
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
html.mt-ds
|
|
46
|
+
:is(.p-accordionheader, .p-accordion-header)
|
|
47
|
+
:is(.p-accordionheader-toggle-icon, .p-icon) {
|
|
48
|
+
width: 16px;
|
|
49
|
+
height: 16px;
|
|
50
|
+
color: #6c737f;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
html.mt-ds :is(.p-accordioncontent-content, .p-accordion-content) {
|
|
54
|
+
padding-block: 8px 24px;
|
|
55
|
+
padding-inline: 16px 48px;
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
line-height: 24px;
|
|
59
|
+
color: #3c5073;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* ══ Breadcrumb ═════════════════════════════════════════════════════════ */
|
|
63
|
+
/* DS: 14/400, links #3C5073, current #000B36, separator #98A2B3, and the
|
|
64
|
+
trail sits on a #F9FAFB pill. */
|
|
65
|
+
|
|
66
|
+
html.mt-ds .p-breadcrumb {
|
|
67
|
+
padding: 0;
|
|
68
|
+
border: none;
|
|
69
|
+
background: #f9fafb;
|
|
70
|
+
border-radius: 8px;
|
|
71
|
+
font-family: var(--ds-font-sans);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
html.mt-ds .p-breadcrumb-item-link {
|
|
75
|
+
height: 34px;
|
|
76
|
+
padding-inline: 8px;
|
|
77
|
+
border-radius: 2px;
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
line-height: 20px;
|
|
81
|
+
color: #3c5073;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
html.mt-ds .p-breadcrumb-item:last-child .p-breadcrumb-item-label {
|
|
85
|
+
color: #000b36;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
html.mt-ds .p-breadcrumb-separator {
|
|
89
|
+
color: #98a2b3;
|
|
90
|
+
margin-inline: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* ══ Progress bar ═══════════════════════════════════════════════════════ */
|
|
94
|
+
/* DS: 4px radius (not a pill), #E7E9ED track, primary fill. */
|
|
95
|
+
|
|
96
|
+
html.mt-ds .p-progressbar {
|
|
97
|
+
height: 8px;
|
|
98
|
+
border-radius: 4px;
|
|
99
|
+
background: #e7e9ed;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
html.mt-ds .p-progressbar-value {
|
|
104
|
+
background: #1849a9;
|
|
105
|
+
border-radius: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
html.mt-ds .p-progressbar-label {
|
|
109
|
+
font-family: var(--ds-font-sans);
|
|
110
|
+
font-size: 12px;
|
|
111
|
+
line-height: 18px;
|
|
112
|
+
color: #233a61;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
html.mt-ds .p-progressspinner-circle {
|
|
116
|
+
stroke: #1849a9;
|
|
117
|
+
animation: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* ══ Slider ═════════════════════════════════════════════════════════════ */
|
|
121
|
+
/* DS: 8px track #F3F4F6, primary fill, 16px circular thumb #1849A9 with a
|
|
122
|
+
1px #175CD3 stroke. */
|
|
123
|
+
|
|
124
|
+
html.mt-ds .p-slider {
|
|
125
|
+
background: #f3f4f6;
|
|
126
|
+
border-radius: 4px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
html.mt-ds .p-slider-horizontal {
|
|
130
|
+
height: 8px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
html.mt-ds .p-slider-vertical {
|
|
134
|
+
width: 8px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
html.mt-ds .p-slider-range {
|
|
138
|
+
background: #1849a9;
|
|
139
|
+
border-radius: 4px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
html.mt-ds .p-slider-handle {
|
|
143
|
+
width: 16px;
|
|
144
|
+
height: 16px;
|
|
145
|
+
border: 1px solid #175cd3;
|
|
146
|
+
border-radius: 50%;
|
|
147
|
+
background: #1849a9;
|
|
148
|
+
box-shadow: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
html.mt-ds .p-slider-handle:focus-visible {
|
|
152
|
+
outline: 2px solid #1849a9;
|
|
153
|
+
outline-offset: 2px;
|
|
154
|
+
box-shadow: none;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* ══ Avatar ═════════════════════════════════════════════════════════════ */
|
|
158
|
+
|
|
159
|
+
html.mt-ds .p-avatar {
|
|
160
|
+
border-radius: 9999px;
|
|
161
|
+
background: #f3f4f6;
|
|
162
|
+
color: #3c5073;
|
|
163
|
+
font-family: var(--ds-font-sans);
|
|
164
|
+
font-weight: 500;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
html.mt-ds .p-avatar-group .p-avatar {
|
|
168
|
+
border: 2px solid #ffffff;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* ══ Tree ═══════════════════════════════════════════════════════════════ */
|
|
172
|
+
/* Reuses the DS menu-item rhythm: 40px rows, 8px padding, 4px radius. */
|
|
173
|
+
|
|
174
|
+
html.mt-ds .p-tree {
|
|
175
|
+
border: none;
|
|
176
|
+
background: transparent;
|
|
177
|
+
padding: 0;
|
|
178
|
+
font-family: var(--ds-font-sans);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Scoped through `.p-tree` so it outranks the tree component's own
|
|
182
|
+
descendant rules, which are unlayered too and would otherwise win on
|
|
183
|
+
source order. */
|
|
184
|
+
html.mt-ds .p-tree .p-tree-node-content {
|
|
185
|
+
min-height: 40px;
|
|
186
|
+
height: auto;
|
|
187
|
+
padding: 8px;
|
|
188
|
+
gap: 8px;
|
|
189
|
+
border-radius: 4px;
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
line-height: 20px;
|
|
192
|
+
color: #000b36;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* The 54px row height comes from the `mt-tree` template's own `py-3`/`py-4`
|
|
196
|
+
utilities on inner elements, not from the node container — so the DS 40px
|
|
197
|
+
row can only be reached by overriding those. Coupled to that template by
|
|
198
|
+
necessity; revisit if the tree markup changes. */
|
|
199
|
+
html.mt-ds .p-tree .p-tree-node-content :is(.py-4, .py-3) {
|
|
200
|
+
padding-block: 8px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
html.mt-ds .p-tree-node-content:not(.p-tree-node-selected):hover {
|
|
204
|
+
background: #e5e7eb;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
html.mt-ds .p-tree-node-content.p-tree-node-selected {
|
|
208
|
+
background: #eff8ff;
|
|
209
|
+
color: #1849a9;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
html.mt-ds .p-tree-node-toggle-button {
|
|
213
|
+
width: 20px;
|
|
214
|
+
height: 20px;
|
|
215
|
+
color: #6c737f;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* ══ File upload ════════════════════════════════════════════════════════ */
|
|
219
|
+
/* DS drop zone: dashed #D2D6DB, 8px radius, #FCFCFD surface. */
|
|
220
|
+
|
|
221
|
+
html.mt-ds :is(.p-fileupload, .p-fileupload-content) {
|
|
222
|
+
border-radius: 8px;
|
|
223
|
+
font-family: var(--ds-font-sans);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
html.mt-ds .p-fileupload-content {
|
|
227
|
+
border: 1px dashed #d2d6db;
|
|
228
|
+
background: #fcfcfd;
|
|
229
|
+
padding: 24px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
html.mt-ds .p-fileupload-highlight {
|
|
233
|
+
border-color: #1849a9;
|
|
234
|
+
background: #eff8ff;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* ══ Divider ════════════════════════════════════════════════════════════ */
|
|
238
|
+
|
|
239
|
+
html.mt-ds .p-divider-horizontal::before {
|
|
240
|
+
border-block-start-color: #e5e7eb;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
html.mt-ds .p-divider-vertical::before {
|
|
244
|
+
border-inline-start-color: #e5e7eb;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* ══ Skeleton ═══════════════════════════════════════════════════════════ */
|
|
248
|
+
|
|
249
|
+
html.mt-ds .p-skeleton {
|
|
250
|
+
background: #e7e9ed;
|
|
251
|
+
border-radius: 4px;
|
|
252
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Dropdown panels & menus
|
|
3
|
+
--------------------------------------------------------------------------
|
|
4
|
+
Dropdown transcribed from DS `DropdownInput/DropdownInput.module.css`,
|
|
5
|
+
menu from `Menu/Menu.module.css` (Figma 4458:1032 / 4458:1381).
|
|
6
|
+
|
|
7
|
+
These are NOT the same surface, and the difference is easy to get wrong:
|
|
8
|
+
|
|
9
|
+
Dropdown panel 4px radius · 1px #D2D6DB · 8px padding · shadow-xl
|
|
10
|
+
Menu panel 8px radius · 1px #E5E7EB · 8px sections · shadow-md
|
|
11
|
+
|
|
12
|
+
The other thing PrimeNG gets differently: it marks the selected option with
|
|
13
|
+
a tinted row. The DS keeps the row transparent and puts a tick at the
|
|
14
|
+
trailing edge, reserving a 16px slot on every row so labels never shift.
|
|
15
|
+
========================================================================== */
|
|
16
|
+
|
|
17
|
+
/* ══ Dropdown / select / autocomplete panel ═════════════════════════════ */
|
|
18
|
+
|
|
19
|
+
html.mt-ds
|
|
20
|
+
:is(
|
|
21
|
+
.p-select-overlay,
|
|
22
|
+
.p-multiselect-overlay,
|
|
23
|
+
.p-autocomplete-overlay,
|
|
24
|
+
.p-treeselect-overlay,
|
|
25
|
+
.p-cascadeselect-overlay
|
|
26
|
+
) {
|
|
27
|
+
background: #ffffff;
|
|
28
|
+
border: 1px solid #d2d6db;
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
padding: 8px;
|
|
31
|
+
box-shadow:
|
|
32
|
+
0 20px 24px -4px rgb(16 24 40 / 0.08),
|
|
33
|
+
0 8px 8px -4px rgb(16 24 40 / 0.03);
|
|
34
|
+
font-family: var(--ds-font-sans);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
html.mt-ds
|
|
38
|
+
:is(
|
|
39
|
+
.p-select-list-container,
|
|
40
|
+
.p-multiselect-list-container,
|
|
41
|
+
.p-autocomplete-list-container
|
|
42
|
+
) {
|
|
43
|
+
max-height: 256px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
html.mt-ds :is(.p-select-list, .p-multiselect-list, .p-autocomplete-list) {
|
|
47
|
+
padding: 0;
|
|
48
|
+
gap: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* ── Option row ────────────────────────────────────────────────────────── */
|
|
52
|
+
|
|
53
|
+
html.mt-ds
|
|
54
|
+
:is(
|
|
55
|
+
.p-select-option,
|
|
56
|
+
.p-multiselect-option,
|
|
57
|
+
.p-autocomplete-option,
|
|
58
|
+
.p-cascadeselect-option-content
|
|
59
|
+
) {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: 8px;
|
|
63
|
+
padding: 8px;
|
|
64
|
+
border-radius: 4px;
|
|
65
|
+
background: transparent;
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
color: #000b36;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
html.mt-ds
|
|
73
|
+
:is(.p-select-option, .p-multiselect-option, .p-autocomplete-option):not(
|
|
74
|
+
.p-disabled
|
|
75
|
+
):hover,
|
|
76
|
+
html.mt-ds
|
|
77
|
+
:is(.p-select-option, .p-multiselect-option, .p-autocomplete-option).p-focus {
|
|
78
|
+
background: #e5e7eb;
|
|
79
|
+
color: #000b36;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
html.mt-ds
|
|
83
|
+
:is(.p-select-option, .p-multiselect-option, .p-autocomplete-option):not(
|
|
84
|
+
.p-disabled
|
|
85
|
+
):active {
|
|
86
|
+
background: #d2d6db;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
html.mt-ds
|
|
90
|
+
:is(
|
|
91
|
+
.p-select-option,
|
|
92
|
+
.p-multiselect-option,
|
|
93
|
+
.p-autocomplete-option
|
|
94
|
+
).p-disabled {
|
|
95
|
+
background: transparent;
|
|
96
|
+
color: #6c7c96;
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* ── Selection tick ────────────────────────────────────────────────────
|
|
101
|
+
A 16px slot on every row keeps the label position stable between selected
|
|
102
|
+
and unselected; only the tick itself appears on selection. */
|
|
103
|
+
|
|
104
|
+
html.mt-ds :is(.p-select-option, .p-autocomplete-option)::after {
|
|
105
|
+
content: "";
|
|
106
|
+
width: 16px;
|
|
107
|
+
height: 16px;
|
|
108
|
+
flex-shrink: 0;
|
|
109
|
+
margin-inline-start: auto;
|
|
110
|
+
background-repeat: no-repeat;
|
|
111
|
+
background-position: center;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
html.mt-ds
|
|
115
|
+
:is(
|
|
116
|
+
.p-select-option.p-select-option-selected,
|
|
117
|
+
.p-autocomplete-option-selected
|
|
118
|
+
)::after {
|
|
119
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13.5 4.5L6.5 11.5L3 8' stroke='%231849A9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
html.mt-ds .p-select-option.p-select-option-selected {
|
|
123
|
+
background: transparent;
|
|
124
|
+
color: #000b36;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
html.mt-ds .p-select-option.p-select-option-selected:hover,
|
|
128
|
+
html.mt-ds .p-select-option.p-select-option-selected.p-focus {
|
|
129
|
+
background: #e5e7eb;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Multi-select rows carry a real checkbox — the DS puts it at the trailing
|
|
133
|
+
edge, PrimeNG at the leading edge. `order` moves it without reversing the
|
|
134
|
+
row, so the label keeps its start alignment under RTL too. */
|
|
135
|
+
html.mt-ds .p-multiselect-option .p-checkbox {
|
|
136
|
+
order: 2;
|
|
137
|
+
margin-inline-start: auto;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
html.mt-ds .p-multiselect-option.p-multiselect-option-selected {
|
|
141
|
+
background: transparent;
|
|
142
|
+
color: #000b36;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* ── Group label ───────────────────────────────────────────────────────── */
|
|
146
|
+
|
|
147
|
+
html.mt-ds
|
|
148
|
+
:is(
|
|
149
|
+
.p-select-option-group,
|
|
150
|
+
.p-multiselect-option-group,
|
|
151
|
+
.p-autocomplete-option-group
|
|
152
|
+
) {
|
|
153
|
+
padding: 8px 8px 0;
|
|
154
|
+
background: transparent;
|
|
155
|
+
font-size: 14px;
|
|
156
|
+
font-weight: 600;
|
|
157
|
+
line-height: 20px;
|
|
158
|
+
color: #000b36;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* ── Filter row & empty message ────────────────────────────────────────── */
|
|
162
|
+
|
|
163
|
+
html.mt-ds :is(.p-select-header, .p-multiselect-header) {
|
|
164
|
+
padding: 0 0 8px;
|
|
165
|
+
border-bottom: 1px solid #e5e7eb;
|
|
166
|
+
margin-bottom: 8px;
|
|
167
|
+
background: transparent;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
html.mt-ds :is(.p-select-empty-message, .p-multiselect-empty-message) {
|
|
171
|
+
padding: 8px;
|
|
172
|
+
font-size: 14px;
|
|
173
|
+
line-height: 20px;
|
|
174
|
+
color: #6c7c96;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* ══ Menu panel ═════════════════════════════════════════════════════════ */
|
|
178
|
+
/* DS menu item: 40px tall, 8px padding, 8px gap, 4px radius. */
|
|
179
|
+
|
|
180
|
+
html.mt-ds :is(.p-menu, .p-tieredmenu, .p-contextmenu, .p-popover) {
|
|
181
|
+
background: #ffffff;
|
|
182
|
+
border: 1px solid #e5e7eb;
|
|
183
|
+
border-radius: 8px;
|
|
184
|
+
padding: 8px;
|
|
185
|
+
box-shadow: var(--ds-shadow-md);
|
|
186
|
+
font-family: var(--ds-font-sans);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
html.mt-ds
|
|
190
|
+
:is(.p-menu-list, .p-tieredmenu-root-list, .p-contextmenu-root-list) {
|
|
191
|
+
padding: 0;
|
|
192
|
+
gap: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
html.mt-ds
|
|
196
|
+
:is(.p-menu-item-link, .p-tieredmenu-item-link, .p-contextmenu-item-link) {
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: 8px;
|
|
200
|
+
min-height: 40px;
|
|
201
|
+
padding: 8px;
|
|
202
|
+
border-radius: 4px;
|
|
203
|
+
font-size: 14px;
|
|
204
|
+
font-weight: 400;
|
|
205
|
+
line-height: 20px;
|
|
206
|
+
color: #000b36;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
html.mt-ds
|
|
210
|
+
:is(.p-menu-item, .p-tieredmenu-item, .p-contextmenu-item):not(
|
|
211
|
+
.p-disabled
|
|
212
|
+
):hover
|
|
213
|
+
> :is(.p-menu-item-link, .p-tieredmenu-item-link, .p-contextmenu-item-link),
|
|
214
|
+
html.mt-ds
|
|
215
|
+
:is(
|
|
216
|
+
.p-menu-item-link,
|
|
217
|
+
.p-tieredmenu-item-link,
|
|
218
|
+
.p-contextmenu-item-link
|
|
219
|
+
):hover {
|
|
220
|
+
background: #e5e7eb;
|
|
221
|
+
color: #000b36;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
html.mt-ds
|
|
225
|
+
:is(
|
|
226
|
+
.p-menu-item-link,
|
|
227
|
+
.p-tieredmenu-item-link,
|
|
228
|
+
.p-contextmenu-item-link
|
|
229
|
+
):active {
|
|
230
|
+
background: #d2d6db;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
html.mt-ds
|
|
234
|
+
:is(.p-menu-item, .p-tieredmenu-item, .p-contextmenu-item).p-disabled
|
|
235
|
+
> * {
|
|
236
|
+
color: #6c7c96;
|
|
237
|
+
opacity: 1;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
html.mt-ds :is(.p-menu-item-icon, .p-tieredmenu-item-icon) {
|
|
241
|
+
color: inherit;
|
|
242
|
+
width: 20px;
|
|
243
|
+
height: 20px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* Group heading — the DS shouts these in 12/700 uppercase. */
|
|
247
|
+
html.mt-ds :is(.p-menu-submenu-label, .p-tieredmenu-submenu-label) {
|
|
248
|
+
padding: 4px 16px 4px 8px;
|
|
249
|
+
background: transparent;
|
|
250
|
+
font-size: 12px;
|
|
251
|
+
font-weight: 700;
|
|
252
|
+
line-height: 18px;
|
|
253
|
+
letter-spacing: 0.04em;
|
|
254
|
+
text-transform: uppercase;
|
|
255
|
+
color: #000b36;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
html.mt-ds :is(.p-menu-separator, .p-tieredmenu-separator) {
|
|
259
|
+
border-top: 1px solid #e5e7eb;
|
|
260
|
+
margin: 8px 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* Destructive actions belong last and read red. */
|
|
264
|
+
html.mt-ds
|
|
265
|
+
:is(.p-menu-item, .p-tieredmenu-item, .p-contextmenu-item).mt-ds-destructive
|
|
266
|
+
> * {
|
|
267
|
+
color: #a30000;
|
|
268
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Pagination — transcribed from DS `Pagination/Pagination.module.css`
|
|
3
|
+
(Figma node 4399:22726)
|
|
4
|
+
--------------------------------------------------------------------------
|
|
5
|
+
The DS pagination is *typographic*: pages are plain text in #3C5073, and the
|
|
6
|
+
current page is marked by colour plus a 3px rounded underline. There is no
|
|
7
|
+
filled box and no border — which is the opposite of both the PrimeNG default
|
|
8
|
+
and the classic MT paginator, so every one of those rules has to be undone
|
|
9
|
+
here rather than merely re-tinted.
|
|
10
|
+
|
|
11
|
+
Item sm 24px/14 · md 32px/14 · lg 40px/16 · 4px radius
|
|
12
|
+
Default #3C5073 Hover bg #F3F4F6
|
|
13
|
+
Current #1849A9 + 24px × 3px underline pill
|
|
14
|
+
Disabled #9DA4AE Focus 2px #1849A9, offset 2px
|
|
15
|
+
========================================================================== */
|
|
16
|
+
|
|
17
|
+
html.mt-ds .p-paginator {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
padding: 0;
|
|
22
|
+
border: none;
|
|
23
|
+
background: transparent;
|
|
24
|
+
font-family: var(--ds-font-sans);
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
html.mt-ds .p-paginator-pages {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 8px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
html.mt-ds
|
|
35
|
+
:is(
|
|
36
|
+
.p-paginator-page,
|
|
37
|
+
.p-paginator-first,
|
|
38
|
+
.p-paginator-prev,
|
|
39
|
+
.p-paginator-next,
|
|
40
|
+
.p-paginator-last
|
|
41
|
+
) {
|
|
42
|
+
position: relative;
|
|
43
|
+
min-width: 32px;
|
|
44
|
+
width: 32px;
|
|
45
|
+
height: 32px;
|
|
46
|
+
padding: 0;
|
|
47
|
+
border: none;
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
background: transparent;
|
|
50
|
+
box-shadow: none;
|
|
51
|
+
color: #3c5073;
|
|
52
|
+
font-family: inherit;
|
|
53
|
+
font-size: 14px;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
line-height: 20px;
|
|
56
|
+
transition:
|
|
57
|
+
background-color 0.15s ease,
|
|
58
|
+
color 0.15s ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
html.mt-ds
|
|
62
|
+
:is(
|
|
63
|
+
.p-paginator-page,
|
|
64
|
+
.p-paginator-first,
|
|
65
|
+
.p-paginator-prev,
|
|
66
|
+
.p-paginator-next,
|
|
67
|
+
.p-paginator-last
|
|
68
|
+
):not(:disabled, .p-disabled, .p-paginator-page-selected):hover {
|
|
69
|
+
background: #f3f4f6;
|
|
70
|
+
border: none;
|
|
71
|
+
color: #3c5073;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Current page — colour plus the underline pill, never a filled box. */
|
|
75
|
+
html.mt-ds .p-paginator .p-paginator-page.p-paginator-page-selected {
|
|
76
|
+
background: transparent;
|
|
77
|
+
border: none;
|
|
78
|
+
color: #1849a9;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
html.mt-ds .p-paginator .p-paginator-page.p-paginator-page-selected::after {
|
|
83
|
+
content: "";
|
|
84
|
+
position: absolute;
|
|
85
|
+
bottom: 0;
|
|
86
|
+
left: 50%;
|
|
87
|
+
transform: translateX(-50%);
|
|
88
|
+
width: 24px;
|
|
89
|
+
height: 3px;
|
|
90
|
+
border-radius: 9999px;
|
|
91
|
+
background: #1849a9;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
html.mt-ds
|
|
95
|
+
:is(
|
|
96
|
+
.p-paginator-first,
|
|
97
|
+
.p-paginator-prev,
|
|
98
|
+
.p-paginator-next,
|
|
99
|
+
.p-paginator-last
|
|
100
|
+
):is(:disabled, .p-disabled) {
|
|
101
|
+
background: transparent;
|
|
102
|
+
color: #9da4ae;
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
html.mt-ds
|
|
107
|
+
:is(
|
|
108
|
+
.p-paginator-page,
|
|
109
|
+
.p-paginator-first,
|
|
110
|
+
.p-paginator-prev,
|
|
111
|
+
.p-paginator-next,
|
|
112
|
+
.p-paginator-last
|
|
113
|
+
):focus-visible {
|
|
114
|
+
outline: 2px solid #1849a9;
|
|
115
|
+
outline-offset: 2px;
|
|
116
|
+
box-shadow: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Rows-per-page select keeps the standard DS field chrome. */
|
|
120
|
+
html.mt-ds .p-paginator .p-select {
|
|
121
|
+
height: 32px;
|
|
122
|
+
min-height: 32px;
|
|
123
|
+
margin-inline-start: 8px;
|
|
124
|
+
border: 1px solid #d2d6db;
|
|
125
|
+
border-radius: 4px;
|
|
126
|
+
background: #ffffff;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
html.mt-ds .p-paginator .p-select .p-select-label {
|
|
130
|
+
padding: 0 8px;
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
line-height: 20px;
|
|
133
|
+
color: #000b36;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
html.mt-ds .p-paginator-current {
|
|
137
|
+
font-size: 14px;
|
|
138
|
+
line-height: 20px;
|
|
139
|
+
color: #3c5073;
|
|
140
|
+
}
|