@masterteam/components 0.0.248 → 0.0.250

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.
@@ -1,252 +1,263 @@
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
- }
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: var(--p-avatar-border-radius);
161
+ background: var(--p-avatar-background);
162
+ color: var(--p-avatar-color);
163
+ font-family: var(--ds-font-sans);
164
+ font-weight: 500;
165
+ }
166
+
167
+ /* PrimeNG exposes avatar paint through inherited custom properties. Keep
168
+ caller-supplied semantic/tenant colours authoritative under the DS layer. */
169
+ html.mt-ds .p-avatar.p-avatar-circle,
170
+ html.mt-ds .p-avatar.p-avatar-circle img {
171
+ border-radius: var(--ds-radius-full);
172
+ }
173
+
174
+ html.mt-ds .p-avatar.p-avatar-image {
175
+ background: transparent;
176
+ }
177
+
178
+ html.mt-ds .p-avatar-group .p-avatar {
179
+ border: 2px solid var(--p-avatar-group-border-color);
180
+ }
181
+
182
+ /* ══ Tree ═══════════════════════════════════════════════════════════════ */
183
+ /* Reuses the DS menu-item rhythm: 40px rows, 8px padding, 4px radius. */
184
+
185
+ html.mt-ds .p-tree {
186
+ border: none;
187
+ background: transparent;
188
+ padding: 0;
189
+ font-family: var(--ds-font-sans);
190
+ }
191
+
192
+ /* Scoped through `.p-tree` so it outranks the tree component's own
193
+ descendant rules, which are unlayered too and would otherwise win on
194
+ source order. */
195
+ html.mt-ds .p-tree .p-tree-node-content {
196
+ min-height: 40px;
197
+ height: auto;
198
+ padding: 8px;
199
+ gap: 8px;
200
+ border-radius: 4px;
201
+ font-size: 14px;
202
+ line-height: 20px;
203
+ color: #000b36;
204
+ }
205
+
206
+ /* The 54px row height comes from the `mt-tree` template's own `py-3`/`py-4`
207
+ utilities on inner elements, not from the node container — so the DS 40px
208
+ row can only be reached by overriding those. Coupled to that template by
209
+ necessity; revisit if the tree markup changes. */
210
+ html.mt-ds .p-tree .p-tree-node-content :is(.py-4, .py-3) {
211
+ padding-block: 8px;
212
+ }
213
+
214
+ html.mt-ds .p-tree-node-content:not(.p-tree-node-selected):hover {
215
+ background: #e5e7eb;
216
+ }
217
+
218
+ html.mt-ds .p-tree-node-content.p-tree-node-selected {
219
+ background: #eff8ff;
220
+ color: #1849a9;
221
+ }
222
+
223
+ html.mt-ds .p-tree-node-toggle-button {
224
+ width: 20px;
225
+ height: 20px;
226
+ color: #6c737f;
227
+ }
228
+
229
+ /* ══ File upload ════════════════════════════════════════════════════════ */
230
+ /* DS drop zone: dashed #D2D6DB, 8px radius, #FCFCFD surface. */
231
+
232
+ html.mt-ds :is(.p-fileupload, .p-fileupload-content) {
233
+ border-radius: 8px;
234
+ font-family: var(--ds-font-sans);
235
+ }
236
+
237
+ html.mt-ds .p-fileupload-content {
238
+ border: 1px dashed #d2d6db;
239
+ background: #fcfcfd;
240
+ padding: 24px;
241
+ }
242
+
243
+ html.mt-ds .p-fileupload-highlight {
244
+ border-color: #1849a9;
245
+ background: #eff8ff;
246
+ }
247
+
248
+ /* ══ Divider ════════════════════════════════════════════════════════════ */
249
+
250
+ html.mt-ds .p-divider-horizontal::before {
251
+ border-block-start-color: #e5e7eb;
252
+ }
253
+
254
+ html.mt-ds .p-divider-vertical::before {
255
+ border-inline-start-color: #e5e7eb;
256
+ }
257
+
258
+ /* ══ Skeleton ═══════════════════════════════════════════════════════════ */
259
+
260
+ html.mt-ds .p-skeleton {
261
+ background: #e7e9ed;
262
+ border-radius: 4px;
263
+ }