@finhay-pro/leaf-design-system 0.2.5 → 0.2.6

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/README.md CHANGED
@@ -376,7 +376,7 @@ vào bản CDN, không vào bản npm.
376
376
  | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
377
377
  | `Button` | Khung icon · label · icon — bật/tắt từng phần; `width` / `height`; `onClick` trả Promise → tự loading (spinner thay leading icon, khoá click), `loading` controlled |
378
378
  | `Tabs` | Tabs Items — `items[]` (`value` · `label: ReactNode` · `disabled`), `fit`; phím ← → Home End |
379
- | `Dialog` | Panel + backdrop blur — `open` (controlled), `title` / `onBack` / `onClose(reason)`, `dismissible`, `closeLabel` / `backLabel`, `theme`, `maxWidth` / `height` / `maxHeight`, `backgroundGradient` |
379
+ | `Dialog` | Panel + backdrop blur — `open` (controlled), `title` / `onBack` / `onClose(reason)`, `dismissible`, `closeLabel` / `backLabel`, `theme`, `maxWidth` / `height` / `maxHeight` / `padding`, `backgroundGradient` |
380
380
  | `Logo` | Wordmark FHSC · Finhay · FHC — `brand` / `mode` / `side` / `size` |
381
381
  | `Skeleton` | Placeholder shimmer — `width` / `height` / `border` (radius), nền `--base-tertiary` |
382
382
  | `Empty` | Trạng thái không có dữ liệu — `image` (string URL; không truyền = ẩn, `""` = CDN mặc định) · `size` sm/md · `description` (mặc định “Không có dữ liệu”) |
@@ -605,13 +605,13 @@ Layout, spacing, responsive, hover dùng Tailwind giống app React.
605
605
  ```html
606
606
  <link
607
607
  rel="stylesheet"
608
- href="https://<cdn>/leaf-0.2.5.min.css"
609
- integrity="sha384-4Y2dKd+qWT/j/vzSqisWr24T93m2BiQ1qwNzq/NE1gr1x0jresCkMQnyOheVweVW"
608
+ href="https://<cdn>/leaf-0.2.6.min.css"
609
+ integrity="sha384-c4+NwwQQosnqQ0VIKeAASRWNEhz5KjDJci5b4KKd/BNuoij7ok8VNv/TXI77sZsI"
610
610
  crossorigin="anonymous"
611
611
  />
612
612
  <script
613
- src="https://<cdn>/leaf-0.2.5.min.js"
614
- integrity="sha384-3mvnC8gyvSnGroVSMa3oCnAhIgzJBdUeiOiUsDM0vfs+NIANZiLocfYAetDBPb4T"
613
+ src="https://<cdn>/leaf-0.2.6.min.js"
614
+ integrity="sha384-zkLEekpE6f+0JQoyJqc6oflrtQtW1PFvzhW/rnHhFEmd+Kf2ox/AngNexg8O4gRS"
615
615
  crossorigin="anonymous"
616
616
  defer
617
617
  ></script>
@@ -860,6 +860,18 @@ overlay = `.leaf-spinner-overlay` (app tự `hidden`/mount).
860
860
 
861
861
  ## Changelog
862
862
 
863
+ ### 0.2.6
864
+
865
+ - **`Tabs`:** prop `stretch` / `data-stretch` — tab chia đều chiều ngang, không xuống dòng, nhãn
866
+ dài cắt `…`; kết hợp `variant="title"` + `label` là icon + chữ cho tab icon trên nhãn.
867
+ - **`Dialog` / `Drawer`:** prop `padding` (`--leaf-dialog-padding`) — thu padding panel cho modal
868
+ không header, nội dung tự chia section có nền riêng.
869
+ - **Sửa type:** `title` của `Collapsible`, `Slider`, `FileViewerDialog` nhận `ReactNode` (trước
870
+ đây chỉ nhận chuỗi do gộp với `title` của div).
871
+
872
+ Tương thích ngược với 0.2.5 — prop mới tuỳ chọn, thay đổi type chỉ nới rộng. Chi tiết:
873
+ `CHANGELOG.md`.
874
+
863
875
  ### 0.2.5
864
876
 
865
877
  - **Sửa lỗi `Carousel`:** `slidesPerView` dạng số lấy bề rộng slide theo viewport (container query