@aseansc/ui 5.1.0 → 5.2.1
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/CHANGELOG.md +42 -0
- package/fesm2022/aseansc-ui.mjs +98 -41
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/_semantic.scss +213 -191
- package/tokens/layout/_menu.scss +5 -3
- package/tokens/preset.css +22 -5
- package/types/aseansc-ui.d.ts +18 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,48 @@ All notable changes to `@aseansc/ui` (trước đây `@asc/ui`) are documented h
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [5.2.1] — 2026-10-07
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- **Chiều cao size sm**: `--asc-h-sm` 32px → **36px** — input, select, datepicker, input-number, password và **button** size sm.
|
|
12
|
+
- **`AscFormFieldComponent` — helper text / error text**: 14px → **12px**, line-height 18px (cả md và sm, theo designer).
|
|
13
|
+
- **Layout sidebar**: `.layout-sidebar` padding **16px dọc / 12px ngang** (override qua `--layout-sidebar-padding-y` / `--layout-sidebar-padding-x`); `.layout-sidebar-logo` / `.layout-sidebar-content` bỏ padding ngang, logo cách menu 16px.
|
|
14
|
+
- **Menu**: `.layout-menu ul a` padding `0.75rem 1rem` → `10px 8px`.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## [5.2.0] — 2026-10-07
|
|
19
|
+
|
|
20
|
+
Đồng bộ form-field / input / button theo Figma design system.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- **`AscFormFieldComponent` — label icon**: input `labelIcon` (icon trước label), `labelSuffixIcon` (icon sau label, trước dấu `*`), `labelTooltip` (tooltip trên icon sau label — không truyền `labelSuffixIcon` thì tự dùng `pi pi-info-circle`, focus được bằng bàn phím). Icon 20×20, chỉ áp dụng `typeLabel="default"`.
|
|
25
|
+
- CSS variable mới: `--asc-field-view-gap`, `--asc-field-label-color`, `--asc-field-label-line-height`, `--asc-field-hint-color`, `--asc-field-hint-font-size`, `--asc-field-label-icon-size`, `--asc-button-solid-text`, `--asc-button-outline-border`, `--asc-button-outline-text`, `--asc-button-outline-bg-hover`, `--asc-button-outline-bg-active`, `--asc-button-disabled-opacity`, `--asc-formfield-focus-border-color`, `--asc-formfield-disabled-border-color`, `--asc-input-clear-bg`, `--asc-input-clear-bg-hover`, `--asc-input-clear-color`, `--asc-input-icon-size`.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- **`AscFormFieldComponent` — `labelWidth`**: default đổi từ `10rem` sang `max-content`. Không truyền thì KHÔNG gắn inline style → app chỉnh được qua CSS `--asc-field-label-width` (global hoặc theo vùng) mà không cần `!important`.
|
|
30
|
+
- **`AscFormFieldComponent` — mode Xem**: không hiện dấu `*` bắt buộc và chữ "(tùy chọn)"; khoảng cách label – giá trị 16px cho cả layout ngang/dọc (`--asc-field-view-gap`).
|
|
31
|
+
- **`AscFormFieldComponent` — typography**: label 14px / 400 / line-height 20px, màu `#5B5B5C` (trước: weight 500, màu `#0F0F0F`); helper text và error text 14px / 20px (trước 12px).
|
|
32
|
+
- **`AscButtonComponent`**: chữ weight 400 (trước 500); solid primary chữ `#FCFCFC`; disabled opacity 35% (trước 60%, loading giữ 60%); outlined **primary** và secondary theo spec Outline — nền trong suốt, viền `#525252`, chữ `#262626` (trước primary outlined viền đỏ); icon md 20px, line-height theo size.
|
|
33
|
+
- **Form controls (input, select, datepicker, input-number, password, textarea, input-mask, auto-complete)**:
|
|
34
|
+
- `--asc-h-md` 36px → **40px** (button md cũng cao theo).
|
|
35
|
+
- Line-height theo size: xs 16 · sm 18 · md 20 · lg 24 · xl 28; textarea sm 13px → 12px.
|
|
36
|
+
- Icon (trái/phải, mũi tên select, lịch, mắt password, nút xóa) 20px cho sm/md, màu `#0F0F0F`.
|
|
37
|
+
- Nút xóa dạng tròn xám `#DEDFE0`, dấu × trắng.
|
|
38
|
+
- Viền khi disabled `#F2F3F5`.
|
|
39
|
+
- **`AscInputComponent`**: hiện đồng thời nút xóa và icon phải (trước chỉ hiện 1 trong 2).
|
|
40
|
+
- Theme: viền focus form field `#A7A7A8` (trước `blue.500`), màu icon form field `#0F0F0F` (trước `surface.400`) — áp cho cả `p-*` PrimeNG dùng trực tiếp.
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
|
|
44
|
+
- Password, input-number, datepicker: rule size ép `padding-inline-end` đè chỗ PrimeNG chừa cho icon/nút xóa → chữ đè lên icon. Input-mask: chừa padding cho nút xóa.
|
|
45
|
+
- Dark mode: `--asc-text-secondary` bị comment nuốt mất (cùng dòng với `--asc-table-header-color`).
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
7
49
|
## [5.1.0] — 2026-10-01
|
|
8
50
|
|
|
9
51
|
### Added
|