@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/datepicker.css
CHANGED
|
@@ -1,153 +1,294 @@
|
|
|
1
|
-
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Figma Team Library → Inputs & Dropdowns → Calendar and Calendar Cell.
|
|
3
|
+
*
|
|
4
|
+
* Styles ng-zorro's date picker panels (days, weeks, months, quarters,
|
|
5
|
+
* years) inside `.ads-calendar`: the dropdown of ads-input-datepicker,
|
|
6
|
+
* ads-input-weekpicker and ads-input-rangepicker (`nzDropdownClassName`) and
|
|
7
|
+
* the inline calendars of ads-period-select.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/* ---------- Container ---------- */
|
|
11
|
+
|
|
12
|
+
.ads-calendar .ant-picker-panel-container {
|
|
13
|
+
border: 1px solid var(--border-color-default);
|
|
14
|
+
border-radius: var(--radius-lg);
|
|
15
|
+
background-color: var(--background-color-surface);
|
|
16
|
+
box-shadow: var(--shadow-raised);
|
|
17
|
+
font-family: var(--font-poppins);
|
|
18
|
+
overflow: hidden;
|
|
5
19
|
}
|
|
6
20
|
|
|
7
|
-
.
|
|
8
|
-
|
|
21
|
+
.ads-calendar .ant-picker-panel {
|
|
22
|
+
border: 0;
|
|
23
|
+
background-color: transparent;
|
|
9
24
|
}
|
|
10
25
|
|
|
11
|
-
.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
26
|
+
.ads-calendar .ant-picker-date-panel,
|
|
27
|
+
.ads-calendar .ant-picker-week-panel,
|
|
28
|
+
.ads-calendar .ant-picker-month-panel,
|
|
29
|
+
.ads-calendar .ant-picker-quarter-panel,
|
|
30
|
+
.ads-calendar .ant-picker-year-panel,
|
|
31
|
+
.ads-calendar .ant-picker-decade-panel {
|
|
32
|
+
width: auto;
|
|
33
|
+
padding: 1rem;
|
|
17
34
|
}
|
|
18
35
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
36
|
+
/* Inline calendar inside another panel (Period Picker): no own card. */
|
|
37
|
+
.ads-calendar--inline .ant-picker-inline,
|
|
38
|
+
.ads-calendar--inline .ant-picker-panel-container {
|
|
39
|
+
border: 0;
|
|
40
|
+
border-radius: 0;
|
|
41
|
+
padding: 0;
|
|
42
|
+
background: transparent;
|
|
43
|
+
box-shadow: none;
|
|
22
44
|
}
|
|
23
45
|
|
|
24
|
-
|
|
25
|
-
.ant-picker-week-panel-row-selected td {
|
|
26
|
-
background-color: #0b645c !important;
|
|
27
|
-
}
|
|
46
|
+
/* ---------- Header: previous, title, next ---------- */
|
|
28
47
|
|
|
29
|
-
.ant-picker-
|
|
30
|
-
|
|
48
|
+
.ads-calendar .ant-picker-header {
|
|
49
|
+
height: 2rem;
|
|
50
|
+
margin-bottom: 0.75rem;
|
|
51
|
+
padding: 0;
|
|
52
|
+
border: 0;
|
|
53
|
+
align-items: center;
|
|
54
|
+
color: var(--text-color-primary);
|
|
31
55
|
}
|
|
32
56
|
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
57
|
+
/* Figma has previous and next only; the title buttons open the month and year views. */
|
|
58
|
+
.ads-calendar .ant-picker-header-super-prev-btn,
|
|
59
|
+
.ads-calendar .ant-picker-header-super-next-btn {
|
|
60
|
+
display: none;
|
|
36
61
|
}
|
|
37
62
|
|
|
38
|
-
.ant-picker-
|
|
39
|
-
|
|
63
|
+
.ads-calendar .ant-picker-header-prev-btn,
|
|
64
|
+
.ads-calendar .ant-picker-header-next-btn {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
width: 2rem;
|
|
69
|
+
min-width: 2rem;
|
|
70
|
+
height: 2rem;
|
|
71
|
+
border-radius: var(--radius-sm);
|
|
72
|
+
color: var(--color-icon-primary);
|
|
73
|
+
line-height: 1;
|
|
40
74
|
}
|
|
41
|
-
|
|
42
|
-
.ant-picker-
|
|
43
|
-
color:
|
|
75
|
+
.ads-calendar .ant-picker-header-prev-btn:hover,
|
|
76
|
+
.ads-calendar .ant-picker-header-next-btn:hover {
|
|
77
|
+
background-color: var(--background-color-brand-subtle);
|
|
78
|
+
color: var(--color-icon-primary);
|
|
44
79
|
}
|
|
45
|
-
|
|
46
|
-
.ant-picker-
|
|
47
|
-
|
|
80
|
+
/* ng-zorro draws the arrows with borders; reuse them as Figma chevrons. */
|
|
81
|
+
.ads-calendar .ant-picker-prev-icon,
|
|
82
|
+
.ads-calendar .ant-picker-next-icon {
|
|
83
|
+
width: 0.5rem;
|
|
84
|
+
height: 0.5rem;
|
|
48
85
|
}
|
|
49
|
-
|
|
50
|
-
.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
color:
|
|
86
|
+
.ads-calendar .ant-picker-prev-icon::before,
|
|
87
|
+
.ads-calendar .ant-picker-next-icon::before {
|
|
88
|
+
width: 0.5rem;
|
|
89
|
+
height: 0.5rem;
|
|
90
|
+
border-width: 1.6px 0 0 1.6px;
|
|
91
|
+
border-color: currentColor;
|
|
55
92
|
}
|
|
56
93
|
|
|
57
|
-
.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
background-color: #0b645c !important;
|
|
63
|
-
color: #f6f6f6 !important;
|
|
94
|
+
.ads-calendar .ant-picker-header-view {
|
|
95
|
+
font-size: var(--text-body-base-semibold);
|
|
96
|
+
line-height: 2rem;
|
|
97
|
+
font-weight: 600;
|
|
98
|
+
color: var(--text-color-primary);
|
|
64
99
|
}
|
|
65
|
-
|
|
66
|
-
.ant-picker-header {
|
|
67
|
-
|
|
100
|
+
/* "May 2026", as in Figma: month before year. */
|
|
101
|
+
.ads-calendar .ant-picker-header-view {
|
|
102
|
+
display: flex;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
gap: 0.25rem;
|
|
105
|
+
}
|
|
106
|
+
.ads-calendar .ant-picker-header-view .ant-picker-header-month-btn {
|
|
107
|
+
order: -1;
|
|
108
|
+
}
|
|
109
|
+
.ads-calendar .ant-picker-header-view button {
|
|
110
|
+
font-weight: 600;
|
|
111
|
+
color: inherit;
|
|
112
|
+
}
|
|
113
|
+
.ads-calendar .ant-picker-header-view button:hover {
|
|
114
|
+
color: var(--text-color-accent);
|
|
68
115
|
}
|
|
69
116
|
|
|
70
|
-
|
|
71
|
-
.ant-picker-cell-inner {
|
|
72
|
-
background-color: #ddf0ef;
|
|
73
|
-
}
|
|
117
|
+
/* ---------- Grid ---------- */
|
|
74
118
|
|
|
75
|
-
|
|
76
|
-
|
|
119
|
+
.ads-calendar .ant-picker-body {
|
|
120
|
+
padding: 0;
|
|
77
121
|
}
|
|
78
122
|
|
|
79
|
-
.
|
|
80
|
-
|
|
123
|
+
.ads-calendar .ant-picker-content {
|
|
124
|
+
width: auto;
|
|
125
|
+
height: auto;
|
|
126
|
+
border-collapse: separate;
|
|
127
|
+
border-spacing: 2px;
|
|
128
|
+
margin: -2px;
|
|
129
|
+
table-layout: fixed;
|
|
81
130
|
}
|
|
82
131
|
|
|
83
|
-
.
|
|
84
|
-
|
|
85
|
-
|
|
132
|
+
/* Weekdays: Caption / SemiBold in text/tertiary. */
|
|
133
|
+
.ads-calendar .ant-picker-content th {
|
|
134
|
+
width: 2.25rem;
|
|
135
|
+
height: 1.5rem;
|
|
136
|
+
font-size: var(--text-caption-semibold);
|
|
137
|
+
line-height: var(--text-caption-semibold--line-height);
|
|
138
|
+
font-weight: 600;
|
|
139
|
+
color: var(--text-color-tertiary);
|
|
86
140
|
}
|
|
87
141
|
|
|
88
|
-
|
|
89
|
-
thead {
|
|
90
|
-
tr th:first-child {
|
|
91
|
-
display: none;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
142
|
+
/* ---------- Cell (Calendar Cell) ---------- */
|
|
94
143
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
144
|
+
.ads-calendar .ant-picker-cell {
|
|
145
|
+
padding: 0;
|
|
146
|
+
font-size: var(--text-body-base-regular);
|
|
147
|
+
line-height: var(--text-body-base-regular--line-height);
|
|
148
|
+
color: var(--text-color-disabled);
|
|
98
149
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
.ant-picker-
|
|
103
|
-
|
|
150
|
+
.ads-calendar .ant-picker-cell::before {
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
153
|
+
.ads-calendar .ant-picker-cell-in-view {
|
|
154
|
+
color: var(--text-color-body);
|
|
104
155
|
}
|
|
105
156
|
|
|
106
|
-
.
|
|
107
|
-
|
|
108
|
-
|
|
157
|
+
.ads-calendar .ant-picker-cell .ant-picker-cell-inner {
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
min-width: 0;
|
|
162
|
+
width: 100%;
|
|
163
|
+
height: 2.25rem;
|
|
164
|
+
padding: 0;
|
|
165
|
+
border-radius: var(--radius-sm);
|
|
166
|
+
line-height: inherit;
|
|
167
|
+
transition: background-color 0.15s;
|
|
168
|
+
}
|
|
169
|
+
.ads-calendar .ant-picker-date-panel .ant-picker-cell-inner,
|
|
170
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-cell-inner {
|
|
171
|
+
width: 2.25rem;
|
|
172
|
+
}
|
|
173
|
+
.ads-calendar .ant-picker-month-panel .ant-picker-cell-inner,
|
|
174
|
+
.ads-calendar .ant-picker-year-panel .ant-picker-cell-inner,
|
|
175
|
+
.ads-calendar .ant-picker-decade-panel .ant-picker-cell-inner {
|
|
176
|
+
width: 4.5rem;
|
|
177
|
+
}
|
|
178
|
+
.ads-calendar .ant-picker-quarter-panel .ant-picker-cell-inner {
|
|
179
|
+
width: 4.5rem;
|
|
109
180
|
}
|
|
110
181
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
182
|
+
/* Hover */
|
|
183
|
+
.ads-calendar
|
|
184
|
+
.ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(
|
|
185
|
+
.ant-picker-cell-range-end
|
|
186
|
+
):not(.ant-picker-cell-disabled)
|
|
114
187
|
.ant-picker-cell-inner {
|
|
115
|
-
background-color:
|
|
116
|
-
color:
|
|
188
|
+
background-color: var(--background-color-brand-subtle);
|
|
189
|
+
color: var(--text-color-primary);
|
|
117
190
|
}
|
|
118
191
|
|
|
119
|
-
|
|
120
|
-
|
|
192
|
+
/* Today: 1 px border/brand-strong, SemiBold. */
|
|
193
|
+
.ads-calendar .ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner {
|
|
194
|
+
box-shadow: inset 0 0 0 1px var(--border-color-brand-strong);
|
|
195
|
+
color: var(--text-color-primary);
|
|
196
|
+
font-weight: 600;
|
|
197
|
+
}
|
|
198
|
+
.ads-calendar .ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before {
|
|
199
|
+
display: none;
|
|
121
200
|
}
|
|
122
201
|
|
|
123
|
-
|
|
124
|
-
|
|
202
|
+
/* In range */
|
|
203
|
+
.ads-calendar .ant-picker-cell-in-view.ant-picker-cell-in-range .ant-picker-cell-inner,
|
|
204
|
+
.ads-calendar .ant-picker-cell-in-view.ant-picker-cell-range-hover .ant-picker-cell-inner {
|
|
205
|
+
background-color: var(--background-color-brand-muted);
|
|
206
|
+
color: var(--text-color-primary);
|
|
207
|
+
}
|
|
208
|
+
.ads-calendar .ant-picker-cell-range-hover::after,
|
|
209
|
+
.ads-calendar .ant-picker-cell-range-hover-start::after,
|
|
210
|
+
.ads-calendar .ant-picker-cell-range-hover-end::after {
|
|
211
|
+
display: none;
|
|
125
212
|
}
|
|
126
213
|
|
|
127
|
-
|
|
128
|
-
|
|
214
|
+
/* Selected, range start and range end */
|
|
215
|
+
.ads-calendar .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,
|
|
216
|
+
.ads-calendar .ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
|
|
217
|
+
.ads-calendar .ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {
|
|
218
|
+
border-radius: var(--radius-sm);
|
|
219
|
+
background-color: var(--background-color-action-primary);
|
|
220
|
+
color: var(--text-color-inverse);
|
|
221
|
+
font-weight: 600;
|
|
129
222
|
}
|
|
130
223
|
|
|
131
|
-
|
|
132
|
-
|
|
224
|
+
/* Disabled */
|
|
225
|
+
.ads-calendar .ant-picker-cell-disabled {
|
|
226
|
+
color: var(--text-color-disabled);
|
|
227
|
+
}
|
|
228
|
+
.ads-calendar .ant-picker-cell-disabled .ant-picker-cell-inner {
|
|
229
|
+
background: transparent;
|
|
133
230
|
}
|
|
134
231
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
232
|
+
/* ---------- Weeks: the selected week reads as a range ----------
|
|
233
|
+
* ng-zorro clears the cell background of the week panel with !important (also
|
|
234
|
+
* inside a cascade layer, where it wins over any unlayered !important), so the
|
|
235
|
+
* week colors go on the cells (td) instead of .ant-picker-cell-inner. */
|
|
236
|
+
|
|
237
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-cell-week,
|
|
238
|
+
.ads-calendar .ant-picker-week-panel thead th:first-child {
|
|
239
|
+
display: none;
|
|
139
240
|
}
|
|
140
241
|
|
|
141
|
-
.ant-picker-week-panel-row
|
|
142
|
-
|
|
242
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-week-panel-row td.ant-picker-cell {
|
|
243
|
+
border-radius: var(--radius-sm);
|
|
244
|
+
background: transparent;
|
|
245
|
+
}
|
|
246
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-week-panel-row:hover td.ant-picker-cell {
|
|
247
|
+
background-color: var(--background-color-brand-subtle);
|
|
248
|
+
}
|
|
249
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-week-panel-row:hover td .ant-picker-cell-inner {
|
|
250
|
+
color: var(--text-color-primary);
|
|
251
|
+
}
|
|
252
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-week-panel-row-selected td.ant-picker-cell,
|
|
253
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-week-panel-row-selected:hover td.ant-picker-cell {
|
|
254
|
+
background-color: var(--background-color-brand-muted);
|
|
255
|
+
}
|
|
256
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-week-panel-row-selected td .ant-picker-cell-inner {
|
|
257
|
+
color: var(--text-color-primary);
|
|
258
|
+
font-weight: 400;
|
|
259
|
+
}
|
|
260
|
+
/* First and last day of the selected week: the ends of the range. */
|
|
261
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-week-panel-row-selected td.ant-picker-cell:nth-child(2),
|
|
262
|
+
.ads-calendar .ant-picker-week-panel .ant-picker-week-panel-row-selected td.ant-picker-cell:last-child {
|
|
263
|
+
background-color: var(--background-color-action-primary);
|
|
264
|
+
}
|
|
265
|
+
.ads-calendar
|
|
266
|
+
.ant-picker-week-panel
|
|
267
|
+
.ant-picker-week-panel-row-selected
|
|
268
|
+
td.ant-picker-cell:is(:nth-child(2), :last-child)
|
|
269
|
+
.ant-picker-cell-inner {
|
|
270
|
+
color: var(--text-color-inverse);
|
|
271
|
+
font-weight: 600;
|
|
143
272
|
}
|
|
144
273
|
|
|
145
|
-
|
|
146
|
-
|
|
274
|
+
/* ---------- Footer ---------- */
|
|
275
|
+
|
|
276
|
+
.ads-calendar .ant-picker-footer {
|
|
277
|
+
border-color: var(--border-color-default);
|
|
278
|
+
}
|
|
279
|
+
.ads-calendar .ant-picker-today-btn {
|
|
280
|
+
font-size: var(--text-body-base-medium);
|
|
281
|
+
font-weight: 500;
|
|
282
|
+
color: var(--text-color-link);
|
|
147
283
|
}
|
|
284
|
+
.ads-calendar .ant-picker-today-btn:hover {
|
|
285
|
+
color: var(--text-color-link-hover);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* ---------- Range picker on small screens ---------- */
|
|
148
289
|
|
|
149
290
|
@media (max-width: 640px) {
|
|
150
|
-
.cdk-overlay-pane:has(.ads-
|
|
291
|
+
.cdk-overlay-pane:has(.ads-calendar.ant-picker-dropdown-range) {
|
|
151
292
|
position: fixed !important;
|
|
152
293
|
inset: 0 !important;
|
|
153
294
|
width: 100vw !important;
|
|
@@ -156,7 +297,7 @@
|
|
|
156
297
|
pointer-events: none;
|
|
157
298
|
}
|
|
158
299
|
|
|
159
|
-
.ads-
|
|
300
|
+
.ads-calendar.ant-picker-dropdown-range {
|
|
160
301
|
position: fixed !important;
|
|
161
302
|
inset: 12px 12px auto 12px !important;
|
|
162
303
|
width: calc(100vw - 24px) !important;
|
|
@@ -165,24 +306,24 @@
|
|
|
165
306
|
pointer-events: auto;
|
|
166
307
|
}
|
|
167
308
|
|
|
168
|
-
.ads-
|
|
309
|
+
.ads-calendar.ant-picker-dropdown-range .ant-picker-panel-container {
|
|
169
310
|
width: 100%;
|
|
170
311
|
max-width: 100%;
|
|
171
312
|
max-height: calc(100vh - 24px);
|
|
172
313
|
overflow-y: auto;
|
|
173
314
|
}
|
|
174
315
|
|
|
175
|
-
.ads-
|
|
316
|
+
.ads-calendar.ant-picker-dropdown-range .ant-picker-panels {
|
|
176
317
|
flex-direction: column;
|
|
177
318
|
}
|
|
178
319
|
|
|
179
|
-
.ads-
|
|
180
|
-
.ads-
|
|
181
|
-
.ads-
|
|
320
|
+
.ads-calendar.ant-picker-dropdown-range .ant-picker-panel,
|
|
321
|
+
.ads-calendar.ant-picker-dropdown-range .ant-picker-date-panel,
|
|
322
|
+
.ads-calendar.ant-picker-dropdown-range .ant-picker-content {
|
|
182
323
|
width: 100%;
|
|
183
324
|
}
|
|
184
325
|
|
|
185
|
-
.ads-
|
|
186
|
-
border-top: 1px solid
|
|
326
|
+
.ads-calendar.ant-picker-dropdown-range .ant-picker-panel:last-child {
|
|
327
|
+
border-top: 1px solid var(--border-color-default);
|
|
187
328
|
}
|
|
188
329
|
}
|
|
Binary file
|