@aseansc/ui 5.5.2 → 5.6.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 +26 -0
- package/fesm2022/aseansc-ui.mjs +380 -61
- package/fesm2022/aseansc-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens/_primitive.scss +5 -3
- package/tokens/_semantic.scss +38 -18
- package/tokens/layout/_menu.scss +7 -8
- package/tokens/preset.css +31 -18
- package/types/aseansc-ui.d.ts +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,32 @@ All notable changes to `@aseansc/ui` (trước đây `@asc/ui`) are documented h
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [5.6.0] — 2026-10-29
|
|
8
|
+
|
|
9
|
+
Đồng bộ màu và giao diện component theo Figma "Thư viện Hệ thống nội bộ" (export Alias light/dark).
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **Color token** (`_semantic.scss`, `design-token-color.json`):
|
|
14
|
+
- success: emerald → **green-500** `#22C55E` (dark bg green-950); warning: amber → **yellow-500** `#EAB308`.
|
|
15
|
+
- `--asc-text-inverse` → `#FCFCFC`; dark `text-link` / `border-focus` → blue-500.
|
|
16
|
+
- `design-token-color.json` thay bằng export mới (sửa các mã chép sai).
|
|
17
|
+
- **Form field dark** (input/select/...): nền `#282829`, viền focus `#747475`, viền lỗi red-500, placeholder `#C0C0C2` — qua biến `--asc-formfield-*`.
|
|
18
|
+
- **Dropdown / list**: option hover/selected nền `#F2F3F5` chữ đen (bỏ highlight hồng), viền `#DEDFE0`, bo 16; placeholder Text/tertiary.
|
|
19
|
+
- **Checkbox**: viền `#747475` (dark `#A7A7A8`), checked + disabled = brand 50%.
|
|
20
|
+
- **Toggle**: bật green-500, tắt `#DEDFE0`, disabled `#F2F3F5`.
|
|
21
|
+
- **Tag**: weight 500; danger/info red/blue 500 trên nền 50; dark nền đặc.
|
|
22
|
+
- **Tabs**: active chữ + gạch chân đen, inactive `#5B5B5C`, weight 500, padding `0 8px 4px 8px`; tab dọc padding `4px 8px`.
|
|
23
|
+
- **Paginator** (`AscPaginator` + `AscTable`): nút 32px bo 8; light hover/active nền đen 5%, dark active nền brand.
|
|
24
|
+
- **Tooltip**: nền trắng 95% chữ đen (dark đen 90%), bo 8, padding 8, mũi tên 14×7, bóng drop-shadow.
|
|
25
|
+
- **Sidebar menu**: item hover/active nền `#F2F3F5` (dark đen 70%), chữ 500, bỏ màu brand; padding 8, bo 8, icon 20px.
|
|
26
|
+
- **Dialog dark**: nền `#0C0C0D` 90%.
|
|
27
|
+
- **`AscAlert`** (Inform): nền màu 50 (dark 950), viền + icon màu 500, chữ Text/primary, title 700, icon 24px, padding 12, gap 8.
|
|
28
|
+
- **Accordion** (FAQ-menu): không khung, header 14/500 padding `12px 0`, đường kẻ `#DEDFE0`, hover brand, nội dung `#5B5B5C`.
|
|
29
|
+
- **`AscToast`** (Inform): nền màu 50 (dark 950), viền màu 500, chữ Text/primary, bo 8, padding 12; icon Phosphor fill 24px (info/warn WarningCircle, success CheckCircle, error Warning), nút X 20px trong ô 36px.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
7
33
|
## [5.5.2] — 2026-10-20
|
|
8
34
|
|
|
9
35
|
Chiều cao select/input, nền layout/table, tag theo Figma.
|