@aseansc/ui 5.1.0 → 5.2.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/CHANGELOG.md CHANGED
@@ -4,6 +4,37 @@ All notable changes to `@aseansc/ui` (trước đây `@asc/ui`) are documented h
4
4
 
5
5
  ---
6
6
 
7
+ ## [5.2.0] — 2026-10-07
8
+
9
+ Đồng bộ form-field / input / button theo Figma design system.
10
+
11
+ ### Added
12
+
13
+ - **`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"`.
14
+ - 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`.
15
+
16
+ ### Changed
17
+
18
+ - **`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`.
19
+ - **`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`).
20
+ - **`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).
21
+ - **`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.
22
+ - **Form controls (input, select, datepicker, input-number, password, textarea, input-mask, auto-complete)**:
23
+ - `--asc-h-md` 36px → **40px** (button md cũng cao theo).
24
+ - Line-height theo size: xs 16 · sm 18 · md 20 · lg 24 · xl 28; textarea sm 13px → 12px.
25
+ - 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`.
26
+ - Nút xóa dạng tròn xám `#DEDFE0`, dấu × trắng.
27
+ - Viền khi disabled `#F2F3F5`.
28
+ - **`AscInputComponent`**: hiện đồng thời nút xóa và icon phải (trước chỉ hiện 1 trong 2).
29
+ - 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.
30
+
31
+ ### Fixed
32
+
33
+ - 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.
34
+ - Dark mode: `--asc-text-secondary` bị comment nuốt mất (cùng dòng với `--asc-table-header-color`).
35
+
36
+ ---
37
+
7
38
  ## [5.1.0] — 2026-10-01
8
39
 
9
40
  ### Added