@foxeltech/angular-ui 0.7.131 → 0.7.133
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/foxeltech-angular-ui.mjs +4 -4
- package/fesm2022/foxeltech-angular-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/ui/components/drawer/drawer.component.html +4 -4
- package/src/lib/ui/components/drawer/drawer.component.scss +26 -19
- package/src/lib/ui/components/stat-cards/stat-cards.component.css +18 -0
package/package.json
CHANGED
|
@@ -105,12 +105,12 @@
|
|
|
105
105
|
@if (item.iconData) {
|
|
106
106
|
<lucide-icon
|
|
107
107
|
[img]="item.iconData"
|
|
108
|
-
[size]="isExpanded ?
|
|
108
|
+
[size]="isExpanded ? 15 : 20"
|
|
109
109
|
class="item-icon"
|
|
110
110
|
[class.item-icon--solid]="item.iconSolid"
|
|
111
111
|
/>
|
|
112
112
|
} @else {
|
|
113
|
-
<fx-ui-hero-icon [icon]="item.icon" [size]="isExpanded ?
|
|
113
|
+
<fx-ui-hero-icon [icon]="item.icon" [size]="isExpanded ? 15 : 20" class="item-icon"></fx-ui-hero-icon>
|
|
114
114
|
}
|
|
115
115
|
@if (isExpanded) {
|
|
116
116
|
<span class="item-label">{{ item.label }}</span>
|
|
@@ -136,12 +136,12 @@
|
|
|
136
136
|
@if (item.iconData) {
|
|
137
137
|
<lucide-icon
|
|
138
138
|
[img]="item.iconData"
|
|
139
|
-
[size]="isExpanded ?
|
|
139
|
+
[size]="isExpanded ? 15 : 20"
|
|
140
140
|
class="item-icon"
|
|
141
141
|
[class.item-icon--solid]="item.iconSolid"
|
|
142
142
|
/>
|
|
143
143
|
} @else {
|
|
144
|
-
<fx-ui-hero-icon [icon]="item.icon" [size]="isExpanded ?
|
|
144
|
+
<fx-ui-hero-icon [icon]="item.icon" [size]="isExpanded ? 15 : 20" class="item-icon"></fx-ui-hero-icon>
|
|
145
145
|
}
|
|
146
146
|
@if (isExpanded) {
|
|
147
147
|
<span class="item-label">{{ item.label }}</span>
|
|
@@ -184,7 +184,9 @@
|
|
|
184
184
|
.drawer-section-label {
|
|
185
185
|
/* Demo (.og-sidebar__section sau override): 10.5px, text-faint, giãn chữ
|
|
186
186
|
.08em và KHÔNG viết hoa — override đặt `text-transform: none`. */
|
|
187
|
-
|
|
187
|
+
/* 11.5px since 17/09, up from the demo's 10.5 — it moves with the rows it
|
|
188
|
+
captions, or the caption reads as a different scale from the nav. */
|
|
189
|
+
@apply px-large pt-4 pb-1 text-[length:var(--og-fs-xs)]/[1.4] font-semibold text-faint select-none;
|
|
188
190
|
letter-spacing: var(--og-tracking-label);
|
|
189
191
|
}
|
|
190
192
|
|
|
@@ -204,9 +206,13 @@
|
|
|
204
206
|
8px in, not 16. */
|
|
205
207
|
@apply flex items-center w-full border-none bg-transparent cursor-pointer no-underline relative;
|
|
206
208
|
margin-top: 1px;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
/* +12% on the reference's 12.5px/30px row (anh Tú 17/09: bump the font size
|
|
210
|
+
of the sidebar a bit like 10-20%). The row has to grow with the text or
|
|
211
|
+
the 20px leading exceeds `min-height` and the declared height stops being
|
|
212
|
+
the shipped one — the mistake the 0.7.107 note below records. */
|
|
213
|
+
min-height: 34px;
|
|
214
|
+
padding: 7px 8px;
|
|
215
|
+
font-size: 14px;
|
|
210
216
|
color: rgb(var(--og-text-body));
|
|
211
217
|
border-radius: var(--og-radius-control);
|
|
212
218
|
transition: background-color 130ms ease, color 130ms ease;
|
|
@@ -268,8 +274,8 @@
|
|
|
268
274
|
carries the row on its own and goes back up to 18px (anh Tú 16/09). Expanded
|
|
269
275
|
it stays at the reference's 13px mark. */
|
|
270
276
|
.drawer-item.is-collapsed .item-icon {
|
|
271
|
-
width:
|
|
272
|
-
height:
|
|
277
|
+
width: 20px;
|
|
278
|
+
height: 20px;
|
|
273
279
|
margin-right: 0;
|
|
274
280
|
}
|
|
275
281
|
|
|
@@ -297,21 +303,22 @@
|
|
|
297
303
|
.item-icon {
|
|
298
304
|
@apply flex-shrink-0;
|
|
299
305
|
color: inherit;
|
|
300
|
-
/* The reference's mark is a 12.5px glyph
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
306
|
+
/* The reference's mark is a 12.5px glyph in an 18px slot — icon 13px plus
|
|
307
|
+
5px to restore the slot, i.e. 13 + 5 + the container's 9px gap = 27px from
|
|
308
|
+
the icon's left edge to the label. Scaled with the 14px label (17/09):
|
|
309
|
+
15px + 6px keeps the same proportion at 30px. Sizing the icon itself 18px
|
|
310
|
+
drew it half again too large. */
|
|
311
|
+
width: 15px;
|
|
312
|
+
height: 15px;
|
|
313
|
+
margin-right: 6px;
|
|
307
314
|
}
|
|
308
315
|
|
|
309
316
|
.item-label {
|
|
310
|
-
/* Size comes from .drawer-item (
|
|
311
|
-
Leading
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
@apply flex-1 whitespace-nowrap overflow-hidden text-ellipsis leading-[
|
|
317
|
+
/* Size comes from .drawer-item (14px since 17/09) — no second scale here.
|
|
318
|
+
Leading tracks it: 20px, and the row's 7px padding either side makes 34,
|
|
319
|
+
which is what `min-height` now declares. Raising one without the other is
|
|
320
|
+
how the row's stated height stopped matching the shipped one before. */
|
|
321
|
+
@apply flex-1 whitespace-nowrap overflow-hidden text-ellipsis leading-[20px] text-left;
|
|
315
322
|
font-size: inherit;
|
|
316
323
|
}
|
|
317
324
|
|
|
@@ -329,7 +336,7 @@
|
|
|
329
336
|
}
|
|
330
337
|
|
|
331
338
|
.drawer-version {
|
|
332
|
-
@apply flex items-center justify-center py-3 px-4 text-text-placeholder text-[
|
|
339
|
+
@apply flex items-center justify-center py-3 px-4 text-text-placeholder text-[12px] border-t border-border-default select-none;
|
|
333
340
|
font-family: var(--og-font-mono);
|
|
334
341
|
}
|
|
335
342
|
|
|
@@ -58,6 +58,24 @@
|
|
|
58
58
|
margin-top: 6px;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/* The figure follows the BOX, not just the grid (anh Tú 18/09: show all the
|
|
62
|
+
stats numbers much smaller on the mobile screen). The 32px reference figure
|
|
63
|
+
is sized for a quarter of a desktop page; on a phone the strip is already
|
|
64
|
+
2-up, so each cell is ~175px and a six-digit count like 52,311 filled it
|
|
65
|
+
edge to edge. Same two thresholds the columns use, so the type steps down
|
|
66
|
+
with the layout rather than at some other width. */
|
|
67
|
+
@container (width < 720px) {
|
|
68
|
+
.fx-stat-cell__figure {
|
|
69
|
+
font-size: 22px;
|
|
70
|
+
margin-top: 4px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@container (width < 360px) {
|
|
74
|
+
.fx-stat-cell__figure {
|
|
75
|
+
font-size: 20px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
61
79
|
.fx-stat-cell__sub {
|
|
62
80
|
font-size: var(--og-fs-xs);
|
|
63
81
|
font-weight: 400;
|