@comitor/ui 3.22.0 → 4.1.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.
Files changed (55) hide show
  1. package/README.md +16 -2
  2. package/dist/components/composite/page-header.d.ts +13 -3
  3. package/dist/components/composite/page-header.js +31 -15
  4. package/dist/components/composite/page-header.js.map +1 -1
  5. package/dist/i18n/namespaces/shell.js +6 -0
  6. package/dist/i18n/namespaces/shell.js.map +1 -1
  7. package/dist/shell/app-header.js +2 -2
  8. package/dist/shell/app-header.js.map +1 -1
  9. package/dist/shell/app-rail.d.ts +26 -0
  10. package/dist/shell/app-rail.js +133 -0
  11. package/dist/shell/app-rail.js.map +1 -0
  12. package/dist/shell/app-shell.d.ts +36 -3
  13. package/dist/shell/app-shell.js +18 -3
  14. package/dist/shell/app-shell.js.map +1 -1
  15. package/dist/shell/index.d.ts +8 -4
  16. package/dist/shell/index.js +4 -0
  17. package/dist/shell/index.js.map +1 -1
  18. package/dist/shell/mobile-menu.d.ts +12 -2
  19. package/dist/shell/mobile-menu.js +37 -3
  20. package/dist/shell/mobile-menu.js.map +1 -1
  21. package/dist/shell/module-rail.js +2 -1
  22. package/dist/shell/module-rail.js.map +1 -1
  23. package/dist/shell/nav-scope-panel.d.ts +22 -0
  24. package/dist/shell/nav-scope-panel.js +80 -0
  25. package/dist/shell/nav-scope-panel.js.map +1 -0
  26. package/dist/shell/nav-scope.d.ts +18 -0
  27. package/dist/shell/nav-scope.js +24 -0
  28. package/dist/shell/nav-scope.js.map +1 -0
  29. package/dist/shell/shell-context.d.ts +23 -3
  30. package/dist/shell/shell-context.js +17 -5
  31. package/dist/shell/shell-context.js.map +1 -1
  32. package/dist/shell/sidebar-account-button.d.ts +13 -3
  33. package/dist/shell/sidebar-account-button.js +12 -1
  34. package/dist/shell/sidebar-account-button.js.map +1 -1
  35. package/dist/shell/sidebar-action-button.d.ts +26 -0
  36. package/dist/shell/sidebar-action-button.js +43 -0
  37. package/dist/shell/sidebar-action-button.js.map +1 -0
  38. package/dist/shell/sidebar-group.d.ts +5 -1
  39. package/dist/shell/sidebar-group.js +26 -2
  40. package/dist/shell/sidebar-group.js.map +1 -1
  41. package/dist/shell/sidebar-menu-item.d.ts +13 -3
  42. package/dist/shell/sidebar-menu-item.js +87 -23
  43. package/dist/shell/sidebar-menu-item.js.map +1 -1
  44. package/dist/shell/sidebar.d.ts +14 -1
  45. package/dist/shell/sidebar.js +95 -48
  46. package/dist/shell/sidebar.js.map +1 -1
  47. package/dist/shell/types.d.ts +50 -1
  48. package/dist/shell/types.js.map +1 -1
  49. package/dist/shell/utils.js +1 -0
  50. package/dist/shell/utils.js.map +1 -1
  51. package/dist/tokens.d.ts +11 -1
  52. package/dist/tokens.js +10 -0
  53. package/dist/tokens.js.map +1 -1
  54. package/package.json +1 -1
  55. package/styles.css +17 -0
package/styles.css CHANGED
@@ -522,6 +522,8 @@
522
522
  --sidebar-border: #edeef1;
523
523
  --sidebar-accent: var(--brand-tint);
524
524
  --sidebar-accent-foreground: #0e1116;
525
+ /* Nền DẢI ỨNG DỤNG (`AppRail`, 4.1.0): một bậc TỐI hơn `--sidebar` — dải là cột ngoài cùng, đọc như một lớp riêng trước thanh bên (nguyên mẫu Tasks v2). */
526
+ --app-rail: #f2f2f0;
525
527
 
526
528
  /* ─ Alias trạng thái (package bổ sung; comitor-ds chưa có) ─
527
529
  Trỏ vào màu phụ để đổi tông trạng thái mà không đụng brand.
@@ -646,6 +648,7 @@
646
648
  --sidebar-width-icon: calc(3.25rem + 1px);
647
649
  --module-rail-width: 5.25rem; /* 84px, thanh phân hệ (3.17.1; 72px tới 3.17.0): ô 72px cách hai mép 6px */
648
650
  --module-panel-width: 15rem; /* 240px, thanh bên cạnh thanh phân hệ — cộng lại 324px (84px + 240px) */
651
+ --app-rail-width: 3.5rem; /* 56px, dải ứng dụng chỉ-icon (4.0.0): ô 36px cách hai mép 10px — cộng thanh bên là 312px */
649
652
  --header-height: 3.5rem; /* 56px */
650
653
 
651
654
  /* ─ Thang MẬT ĐỘ — giá trị lúc THOẢI MÁI (mặc định) ─
@@ -831,6 +834,10 @@
831
834
  --page-header-align: flex-start;
832
835
  --page-subtitle-text: 0.875rem;
833
836
  --table-head-h: 2.5rem; /* 40px — h-10 của hàng tiêu đề bảng */
837
+ /* Thanh của màn (4.0.0) — `PageHeader variant="compact"` và hàng tab đứng ngay dưới nó, KỂ CẢ đường kẻ đáy: 44px ở
838
+ mật độ thường, 40px ở mật độ gọn (khối 5d). Khung không thanh trên (`AppShell header="none"`) lấy thanh này làm
839
+ thanh duy nhất của trang, nên chiều cao của nó là một token chứ không phải một lớp viết tay ở từng app. */
840
+ --page-bar-h: 2.75rem;
834
841
 
835
842
  /* ─ Thang ĐỔ BÓNG (elevation) ─
836
843
  Giá trị THÔ nằm ở đây chứ không nằm trong @theme, vì bóng phải đổi theo light/dark:
@@ -937,6 +944,8 @@
937
944
  --sidebar-border: #1e2128;
938
945
  --sidebar-accent: #1e2128;
939
946
  --sidebar-accent-foreground: #f7f7f8;
947
+ /* Nền DẢI ỨNG DỤNG (`AppRail`, 4.1.0): một bậc TỐI hơn `--sidebar` — dải là cột ngoài cùng, đọc như một lớp riêng trước thanh bên (nguyên mẫu Tasks v2). */
948
+ --app-rail: #101217;
940
949
 
941
950
  /* Màu phụ KHÔNG có bản dark — comitor-ds dùng đúng một hex cho cả hai theme, và bản này theo.
942
951
  Số đo trên tint /20 hợp lên --card (đọc được, tuy dưới AA ở hai tone): teal 3,39 · green 4,26
@@ -1297,6 +1306,8 @@
1297
1306
  --sidebar-foreground: #14170f;
1298
1307
  --sidebar-border: #e6eade;
1299
1308
  --sidebar-accent-foreground: var(--brand-ink);
1309
+ /* Nền DẢI ỨNG DỤNG (`AppRail`, 4.1.0): một bậc TỐI hơn `--sidebar` — dải là cột ngoài cùng, đọc như một lớp riêng trước thanh bên (nguyên mẫu Tasks v2). */
1310
+ --app-rail: #eef1e7;
1300
1311
  --elevation-surface: 0 1px 2px rgba(16, 32, 16, 0.04);
1301
1312
  --elevation-control: 0 1px 2px rgba(16, 32, 16, 0.08);
1302
1313
  --elevation-card: 0 1px 3px rgba(16, 32, 16, 0.05), 0 4px 14px -4px rgba(16, 32, 16, 0.1);
@@ -1348,6 +1359,8 @@
1348
1359
  --sidebar-border: #272e21;
1349
1360
  --sidebar-accent: #253216;
1350
1361
  --sidebar-accent-foreground: var(--brand-dark-link);
1362
+ /* Nền DẢI ỨNG DỤNG (`AppRail`, 4.1.0): một bậc TỐI hơn `--sidebar` — dải là cột ngoài cùng, đọc như một lớp riêng trước thanh bên (nguyên mẫu Tasks v2). */
1363
+ --app-rail: #0f130d;
1351
1364
  }
1352
1365
 
1353
1366
  /* teal — xanh mòng két đậm.
@@ -1758,6 +1771,7 @@
1758
1771
  --list-item-py: 0.5rem;
1759
1772
  --nav-item-py: 0.25rem;
1760
1773
  --table-head-h: 2rem;
1774
+ --page-bar-h: 2.5rem;
1761
1775
  }
1762
1776
 
1763
1777
  /* ────────────────────────────────────────────────────────────────────────────
@@ -1885,6 +1899,7 @@
1885
1899
 
1886
1900
  /* Sidebar */
1887
1901
  --color-sidebar: var(--sidebar);
1902
+ --color-app-rail: var(--app-rail);
1888
1903
  --color-sidebar-foreground: var(--sidebar-foreground);
1889
1904
  --color-sidebar-border: var(--sidebar-border);
1890
1905
  --color-sidebar-accent: var(--sidebar-accent);
@@ -2011,7 +2026,9 @@
2011
2026
  --spacing-sidebar-icon: var(--sidebar-width-icon);
2012
2027
  --spacing-module-rail: var(--module-rail-width);
2013
2028
  --spacing-module-panel: var(--module-panel-width);
2029
+ --spacing-app-rail: var(--app-rail-width);
2014
2030
  --spacing-header: var(--header-height);
2031
+ --spacing-page-bar: var(--page-bar-h);
2015
2032
  }
2016
2033
 
2017
2034
  /* ────────────────────────────────────────────────────────────────────────────