@aaamb/ngx-design-system 1.7.1 → 2.0.0
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/fesm2022/aaamb-ngx-design-system.mjs +5638 -930
- package/fesm2022/aaamb-ngx-design-system.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/compiled.css +1 -1
- package/styles/datepicker.css +247 -106
- package/styles/fonts/Poppins-Bold.ttf +0 -0
- package/styles/selectors.css +239 -68
- package/styles/theme.css +397 -36
- package/types/aaamb-ngx-design-system.d.ts +2118 -216
package/styles/selectors.css
CHANGED
|
@@ -1,111 +1,282 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Figma Team Library → Inputs & Dropdowns.
|
|
3
|
+
*
|
|
4
|
+
* - Trigger: the closed state of Dropdown Menu (Input Field, Type=Select).
|
|
5
|
+
* Same box as ads-input: see src/components/input/field-styles.ts.
|
|
6
|
+
* - Panel: Dropdown Menu (Type Single · Multiple; Size sm · md).
|
|
7
|
+
* - Items: Menu Item (Type Option · Checkbox; State Default · Hover · Focus ·
|
|
8
|
+
* Selected · Disabled; Size sm · md).
|
|
9
|
+
*
|
|
10
|
+
* Scoped to ads-single-selector and ads-multiple-selector through the
|
|
11
|
+
* `ads-select` host class and the `ads-select-dropdown` panel class.
|
|
12
|
+
*/
|
|
4
13
|
|
|
5
|
-
|
|
6
|
-
height: 2.375rem !important;
|
|
7
|
-
}
|
|
14
|
+
/* ---------- Trigger ---------- */
|
|
8
15
|
|
|
9
|
-
.
|
|
10
|
-
|
|
16
|
+
.ads-select {
|
|
17
|
+
--ads-select-h: 2.25rem;
|
|
18
|
+
--ads-select-fs: var(--text-body-large-regular);
|
|
19
|
+
--ads-select-lh: var(--text-body-large-regular--line-height);
|
|
11
20
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
.ads-select--sm {
|
|
22
|
+
--ads-select-h: 2rem;
|
|
23
|
+
--ads-select-fs: var(--text-body-base-regular);
|
|
24
|
+
--ads-select-lh: var(--text-body-base-regular--line-height);
|
|
16
25
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
.ads-select--lg {
|
|
27
|
+
--ads-select-h: 2.75rem;
|
|
28
|
+
}
|
|
29
|
+
.ads-select--xl {
|
|
30
|
+
--ads-select-h: 3rem;
|
|
21
31
|
}
|
|
22
32
|
|
|
23
|
-
.ant-select
|
|
24
|
-
|
|
33
|
+
.ads-select.ant-select {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: var(--ads-select-h);
|
|
36
|
+
font-family: var(--font-poppins);
|
|
37
|
+
font-size: var(--ads-select-fs);
|
|
38
|
+
line-height: var(--ads-select-lh);
|
|
39
|
+
color: var(--text-color-body);
|
|
25
40
|
}
|
|
26
41
|
|
|
27
|
-
.ant-select
|
|
28
|
-
|
|
42
|
+
.ads-select.ant-select .ant-select-selector,
|
|
43
|
+
.ads-select.ant-select-multiple.ant-select-show-arrow .ant-select-selector,
|
|
44
|
+
.ads-select.ant-select-multiple.ant-select-allow-clear .ant-select-selector {
|
|
45
|
+
height: 100%;
|
|
46
|
+
padding: 0 2.5rem 0 0.75rem;
|
|
47
|
+
border: 1px solid var(--border-color-default);
|
|
48
|
+
border-radius: var(--radius-md);
|
|
49
|
+
background-color: var(--background-color-brand-subtle);
|
|
50
|
+
box-shadow: none;
|
|
51
|
+
align-items: center;
|
|
52
|
+
transition:
|
|
53
|
+
border-color 0.15s,
|
|
54
|
+
background-color 0.15s;
|
|
29
55
|
}
|
|
30
56
|
|
|
31
|
-
.ant-select-
|
|
32
|
-
color:
|
|
57
|
+
.ads-select.ant-select:not(.ant-select-disabled):hover .ant-select-selector {
|
|
58
|
+
border-color: var(--border-color-brand);
|
|
33
59
|
}
|
|
34
60
|
|
|
35
|
-
.ant-select:not(.ant-select-disabled)
|
|
61
|
+
.ads-select.ant-select-focused:not(.ant-select-disabled) .ant-select-selector,
|
|
62
|
+
.ads-select.ant-select-focused:not(.ant-select-disabled):hover
|
|
63
|
+
.ant-select-selector {
|
|
64
|
+
border-color: var(--border-color-brand-strong);
|
|
65
|
+
background-color: var(--background-color-surface);
|
|
36
66
|
box-shadow: none;
|
|
37
67
|
}
|
|
38
68
|
|
|
39
|
-
.
|
|
40
|
-
|
|
69
|
+
.ads-select.ant-select-status-error:not(.ant-select-disabled)
|
|
70
|
+
.ant-select-selector,
|
|
71
|
+
.ads-select.ant-select-status-error:not(.ant-select-disabled):hover
|
|
72
|
+
.ant-select-selector {
|
|
73
|
+
border-color: var(--border-color-error);
|
|
74
|
+
background-color: var(--background-color-surface);
|
|
75
|
+
box-shadow: none;
|
|
41
76
|
}
|
|
42
77
|
|
|
43
|
-
.
|
|
44
|
-
border-color:
|
|
45
|
-
|
|
78
|
+
.ads-select.ant-select-disabled .ant-select-selector {
|
|
79
|
+
border-color: var(--border-color-disabled);
|
|
80
|
+
background-color: var(--background-color-disabled);
|
|
81
|
+
color: var(--text-color-disabled);
|
|
46
82
|
}
|
|
47
83
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
84
|
+
/* Value, placeholder and search input share the field's text style. */
|
|
85
|
+
.ads-select.ant-select .ant-select-selection-item,
|
|
86
|
+
.ads-select.ant-select .ant-select-selection-placeholder {
|
|
87
|
+
line-height: calc(var(--ads-select-h) - 2px);
|
|
88
|
+
padding-inline-end: 0;
|
|
89
|
+
}
|
|
90
|
+
.ads-select.ant-select .ant-select-selection-item {
|
|
91
|
+
color: var(--text-color-body);
|
|
92
|
+
}
|
|
93
|
+
.ads-select.ant-select .ant-select-selection-placeholder {
|
|
94
|
+
color: var(--text-color-tertiary);
|
|
95
|
+
inset-inline: 0.75rem 2.5rem;
|
|
96
|
+
}
|
|
97
|
+
.ads-select.ant-select-disabled .ant-select-selection-item,
|
|
98
|
+
.ads-select.ant-select-disabled .ant-select-selection-placeholder {
|
|
99
|
+
color: var(--text-color-disabled);
|
|
51
100
|
}
|
|
52
101
|
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
|
|
102
|
+
.ads-select.ant-select-single .ant-select-selector .ant-select-selection-search {
|
|
103
|
+
inset-inline: 0.75rem 2.5rem;
|
|
104
|
+
}
|
|
105
|
+
.ads-select.ant-select .ant-select-selection-search-input {
|
|
106
|
+
height: 100%;
|
|
107
|
+
font: inherit;
|
|
108
|
+
color: var(--text-color-body);
|
|
56
109
|
}
|
|
57
110
|
|
|
58
|
-
.
|
|
59
|
-
|
|
111
|
+
/* Multiple: one "N items selected" summary instead of tags. */
|
|
112
|
+
.ads-select.ant-select-multiple .ant-select-selection-wrap {
|
|
113
|
+
height: 100%;
|
|
114
|
+
align-items: center;
|
|
115
|
+
}
|
|
116
|
+
.ads-select.ant-select-multiple .ant-select-selection-overflow {
|
|
117
|
+
flex-wrap: nowrap;
|
|
118
|
+
align-items: center;
|
|
119
|
+
}
|
|
120
|
+
.ads-select.ant-select-multiple .ant-select-selection-overflow-item {
|
|
121
|
+
margin: 0;
|
|
122
|
+
}
|
|
123
|
+
.ads-select.ant-select-multiple .ant-select-selection-item {
|
|
124
|
+
height: auto;
|
|
125
|
+
margin: 0;
|
|
126
|
+
padding: 0;
|
|
127
|
+
border: 0;
|
|
128
|
+
background: transparent;
|
|
129
|
+
line-height: var(--ads-select-lh);
|
|
130
|
+
font-size: inherit;
|
|
131
|
+
}
|
|
132
|
+
.ads-select.ant-select-multiple .ant-select-selection-placeholder {
|
|
133
|
+
inset-inline: 0;
|
|
134
|
+
}
|
|
135
|
+
.ads-select.ant-select-multiple .ant-select-selection-search {
|
|
136
|
+
margin-inline-start: 0;
|
|
137
|
+
}
|
|
138
|
+
.ads-select.ant-select-multiple .ant-select-selection-search-input {
|
|
139
|
+
height: var(--ads-select-lh);
|
|
60
140
|
}
|
|
61
141
|
|
|
62
|
-
|
|
63
|
-
|
|
142
|
+
/* Trailing icon, loading and clear: 16 px in icon/primary, 12 px from the edge. */
|
|
143
|
+
.ads-select.ant-select .ant-select-arrow,
|
|
144
|
+
.ads-select.ant-select .ant-select-clear {
|
|
145
|
+
inset-inline-end: 0.75rem;
|
|
146
|
+
width: 1rem;
|
|
147
|
+
height: 1rem;
|
|
148
|
+
margin-top: -0.5rem;
|
|
149
|
+
font-size: 1rem;
|
|
150
|
+
color: var(--color-icon-primary);
|
|
151
|
+
}
|
|
152
|
+
.ads-select.ant-select .ant-select-clear {
|
|
153
|
+
background-color: var(--background-color-brand-subtle);
|
|
154
|
+
}
|
|
155
|
+
.ads-select.ant-select-focused .ant-select-clear,
|
|
156
|
+
.ads-select.ant-select-status-error .ant-select-clear {
|
|
157
|
+
background-color: var(--background-color-surface);
|
|
64
158
|
}
|
|
159
|
+
.ads-select.ant-select-disabled .ant-select-arrow {
|
|
160
|
+
color: var(--color-icon-disabled);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* ---------- Panel (Dropdown Menu) ---------- */
|
|
65
164
|
|
|
66
|
-
.
|
|
67
|
-
|
|
68
|
-
|
|
165
|
+
.ads-select-dropdown {
|
|
166
|
+
--ads-item-h: 2.25rem;
|
|
167
|
+
--ads-item-fs: var(--text-body-large-regular);
|
|
168
|
+
--ads-item-lh: var(--text-body-large-regular--line-height);
|
|
169
|
+
}
|
|
170
|
+
.ads-select-dropdown--sm {
|
|
171
|
+
--ads-item-h: 2rem;
|
|
172
|
+
--ads-item-fs: var(--text-body-base-regular);
|
|
173
|
+
--ads-item-lh: var(--text-body-base-regular--line-height);
|
|
69
174
|
}
|
|
70
175
|
|
|
71
|
-
.
|
|
72
|
-
|
|
73
|
-
|
|
176
|
+
.ads-select-dropdown .ant-select-dropdown {
|
|
177
|
+
padding: 0.25rem 0.25rem 0.125rem;
|
|
178
|
+
border: 1px solid var(--border-color-default);
|
|
179
|
+
border-radius: var(--radius-md);
|
|
180
|
+
background-color: var(--background-color-surface);
|
|
181
|
+
box-shadow: var(--shadow-raised);
|
|
182
|
+
font-family: var(--font-poppins);
|
|
74
183
|
}
|
|
75
184
|
|
|
76
|
-
|
|
77
|
-
|
|
185
|
+
/* ---------- Items (Menu Item) ---------- */
|
|
186
|
+
|
|
187
|
+
.ads-select-dropdown .ant-select-item {
|
|
188
|
+
min-height: var(--ads-item-h);
|
|
189
|
+
height: var(--ads-item-h);
|
|
190
|
+
margin-bottom: 0.125rem;
|
|
191
|
+
padding: 0 0.75rem;
|
|
192
|
+
gap: 0.5rem;
|
|
78
193
|
align-items: center;
|
|
79
|
-
|
|
194
|
+
border-radius: var(--radius-sm);
|
|
195
|
+
font-size: var(--ads-item-fs);
|
|
196
|
+
line-height: var(--ads-item-lh);
|
|
197
|
+
font-weight: 400;
|
|
198
|
+
color: var(--text-color-body);
|
|
80
199
|
}
|
|
81
200
|
|
|
82
|
-
.ant-select-
|
|
83
|
-
|
|
201
|
+
.ads-select-dropdown .ant-select-item-group {
|
|
202
|
+
min-height: auto;
|
|
203
|
+
height: var(--ads-item-h);
|
|
204
|
+
font-size: var(--text-caption-regular);
|
|
205
|
+
line-height: var(--text-caption-regular--line-height);
|
|
206
|
+
color: var(--text-color-tertiary);
|
|
207
|
+
}
|
|
208
|
+
.ads-select-dropdown .ant-select-item-option-grouped {
|
|
209
|
+
padding-inline-start: 1.25rem;
|
|
84
210
|
}
|
|
85
211
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
background-color:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
212
|
+
/* Hover: the pointer is on the item. */
|
|
213
|
+
.ads-select-dropdown .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
|
|
214
|
+
background-color: var(--background-color-brand-subtle);
|
|
215
|
+
color: var(--text-color-body);
|
|
216
|
+
}
|
|
217
|
+
/* Focus: ng-zorro also marks the keyboard item active; without the pointer on it, it is Focus. */
|
|
218
|
+
.ads-select-dropdown
|
|
219
|
+
.ant-select-item-option-active:not(:hover):not(.ant-select-item-option-selected):not(
|
|
220
|
+
.ant-select-item-option-disabled
|
|
221
|
+
) {
|
|
222
|
+
color: var(--text-color-accent);
|
|
92
223
|
}
|
|
93
224
|
|
|
94
|
-
.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
225
|
+
.ads-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
|
|
226
|
+
background-color: var(--background-color-brand-muted);
|
|
227
|
+
color: var(--text-color-primary);
|
|
228
|
+
font-weight: 500;
|
|
98
229
|
}
|
|
99
230
|
|
|
100
|
-
.ant-select-
|
|
101
|
-
|
|
231
|
+
.ads-select-dropdown .ant-select-item-option-disabled {
|
|
232
|
+
color: var(--text-color-disabled);
|
|
102
233
|
}
|
|
103
234
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
235
|
+
/* Option type (single): check icon after the label when selected. */
|
|
236
|
+
.ads-select-dropdown--single
|
|
237
|
+
.ant-select-item-option-selected:not(.ant-select-item-option-disabled)::after {
|
|
238
|
+
content: "";
|
|
239
|
+
flex: none;
|
|
240
|
+
width: 1rem;
|
|
241
|
+
height: 1rem;
|
|
242
|
+
background-color: var(--color-icon-primary);
|
|
243
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='translate(-291 -1417)' d='M300.215 1432.61L309.876 1422.94C310.104 1422.72 310.37 1422.6 310.674 1422.6C310.978 1422.6 311.244 1422.72 311.472 1422.94C311.7 1423.17 311.814 1423.44 311.814 1423.76C311.814 1424.07 311.7 1424.34 311.472 1424.57L301.013 1435.06C300.785 1435.28 300.519 1435.4 300.215 1435.4C299.911 1435.4 299.645 1435.28 299.417 1435.06L294.515 1430.15C294.287 1429.93 294.177 1429.66 294.186 1429.34C294.195 1429.03 294.314 1428.76 294.543 1428.53C294.772 1428.3 295.043 1428.19 295.356 1428.19C295.669 1428.19 295.94 1428.3 296.168 1428.53L300.215 1432.61Z'/%3E%3C/svg%3E")
|
|
244
|
+
center / contain no-repeat;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Checkbox type (multiple): 16 px checkbox before the label. */
|
|
248
|
+
.ads-select-dropdown--multiple .ant-select-item-option-state {
|
|
249
|
+
display: none;
|
|
250
|
+
}
|
|
251
|
+
.ads-select-dropdown--multiple .ant-select-item-option::before {
|
|
252
|
+
content: "";
|
|
253
|
+
flex: none;
|
|
254
|
+
box-sizing: border-box;
|
|
255
|
+
width: 1rem;
|
|
256
|
+
height: 1rem;
|
|
257
|
+
border: 1.5px solid var(--border-color-brand-strong);
|
|
258
|
+
border-radius: var(--radius-xs);
|
|
259
|
+
background: var(--background-color-surface) center / 0.875rem no-repeat;
|
|
260
|
+
}
|
|
261
|
+
.ads-select-dropdown--multiple
|
|
262
|
+
.ant-select-item-option-active:hover:not(.ant-select-item-option-selected):not(
|
|
263
|
+
.ant-select-item-option-disabled
|
|
264
|
+
)::before {
|
|
265
|
+
background-color: var(--background-color-brand-subtle);
|
|
266
|
+
}
|
|
267
|
+
.ads-select-dropdown--multiple
|
|
268
|
+
.ant-select-item-option-active:not(:hover):not(.ant-select-item-option-selected):not(
|
|
269
|
+
.ant-select-item-option-disabled
|
|
270
|
+
)::before {
|
|
271
|
+
background-color: var(--background-color-brand-muted);
|
|
272
|
+
}
|
|
273
|
+
.ads-select-dropdown--multiple
|
|
274
|
+
.ant-select-item-option-selected:not(.ant-select-item-option-disabled)::before {
|
|
275
|
+
border-color: var(--background-color-action-primary);
|
|
276
|
+
background-color: var(--background-color-action-primary);
|
|
277
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FEFEFE' transform='translate(-291 -1417)' d='M300.215 1432.61L309.876 1422.94C310.104 1422.72 310.37 1422.6 310.674 1422.6C310.978 1422.6 311.244 1422.72 311.472 1422.94C311.7 1423.17 311.814 1423.44 311.814 1423.76C311.814 1424.07 311.7 1424.34 311.472 1424.57L301.013 1435.06C300.785 1435.28 300.519 1435.4 300.215 1435.4C299.911 1435.4 299.645 1435.28 299.417 1435.06L294.515 1430.15C294.287 1429.93 294.177 1429.66 294.186 1429.34C294.195 1429.03 294.314 1428.76 294.543 1428.53C294.772 1428.3 295.043 1428.19 295.356 1428.19C295.669 1428.19 295.94 1428.3 296.168 1428.53L300.215 1432.61Z'/%3E%3C/svg%3E");
|
|
278
|
+
}
|
|
279
|
+
.ads-select-dropdown--multiple .ant-select-item-option-disabled::before {
|
|
280
|
+
border-color: var(--border-color-disabled);
|
|
281
|
+
background-color: var(--background-color-disabled);
|
|
111
282
|
}
|