@comitor/ui 4.3.0 → 4.3.3

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.
@@ -1,9 +1,14 @@
1
- /** Chữ của `CommandDialog` — tiêu đề + mô tả `sr-only` mà Radix Dialog bắt buộc phải có. */
1
+ /**
2
+ * Chữ của `CommandDialog` (tiêu đề + mô tả `sr-only` mà Radix Dialog bắt buộc phải có) và của `CommandList` (tên trợ năng của
3
+ * danh sách `role="listbox"` — mọi danh sách `cmdk` của gói đi qua nó).
4
+ */
2
5
  interface CommandMessages {
3
6
  /** Tiêu đề cho trình đọc màn hình — prop `title` */
4
7
  dialogTitle: string;
5
8
  /** Mô tả cho trình đọc màn hình — prop `description` */
6
9
  dialogDescription: string;
10
+ /** Tên trợ năng của danh sách (`aria-label` của `[cmdk-list]`) — prop `label` của `CommandList` */
11
+ listLabel: string;
7
12
  }
8
13
  declare const commandEn: CommandMessages;
9
14
  declare const commandVi: CommandMessages;
@@ -1,10 +1,14 @@
1
1
  const commandEn = {
2
2
  dialogTitle: "Command palette",
3
- dialogDescription: "Search for a command to run\u2026"
3
+ dialogDescription: "Search for a command to run\u2026",
4
+ /* Cùng chữ với mặc định cứng của `cmdk` 1.1.1 — tên tiếng Anh không đổi so với trước 4.3.3. */
5
+ listLabel: "Suggestions"
4
6
  };
5
7
  const commandVi = {
6
8
  dialogTitle: "B\u1EA3ng l\u1EC7nh",
7
- dialogDescription: "T\xECm v\xE0 ch\u1EA1y m\u1ED9t l\u1EC7nh\u2026"
9
+ dialogDescription: "T\xECm v\xE0 ch\u1EA1y m\u1ED9t l\u1EC7nh\u2026",
10
+ /* Cùng chữ với `listLabel` của namespace `mention` — cùng một chữ gốc tiếng Anh, cùng một bản dịch. */
11
+ listLabel: "Danh s\xE1ch g\u1EE3i \xFD"
8
12
  };
9
13
  export {
10
14
  commandEn,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/i18n/namespaces/command.ts"],"sourcesContent":["/** Chữ của `CommandDialog` — tiêu đề + mô tả `sr-only` mà Radix Dialog bắt buộc phải có. */\nexport interface CommandMessages {\n /** Tiêu đề cho trình đọc màn hình — prop `title` */\n dialogTitle: string;\n /** Mô tả cho trình đọc màn hình — prop `description` */\n dialogDescription: string;\n}\n\nexport const commandEn: CommandMessages = {\n dialogTitle: \"Command palette\",\n dialogDescription: \"Search for a command to run…\"\n};\n\nexport const commandVi: CommandMessages = {\n dialogTitle: \"Bảng lệnh\",\n dialogDescription: \"Tìm và chạy một lệnh…\"\n};\n"],"mappings":"AAQO,MAAM,YAA6B;AAAA,EACxC,aAAa;AAAA,EACb,mBAAmB;AACrB;AAEO,MAAM,YAA6B;AAAA,EACxC,aAAa;AAAA,EACb,mBAAmB;AACrB;","names":[]}
1
+ {"version":3,"sources":["../../../src/i18n/namespaces/command.ts"],"sourcesContent":["/**\n * Chữ của `CommandDialog` (tiêu đề + mô tả `sr-only` mà Radix Dialog bắt buộc phải có) và của `CommandList` (tên trợ năng của\n * danh sách `role=\"listbox\"` — mọi danh sách `cmdk` của gói đi qua nó).\n */\nexport interface CommandMessages {\n /** Tiêu đề cho trình đọc màn hình — prop `title` */\n dialogTitle: string;\n /** Mô tả cho trình đọc màn hình — prop `description` */\n dialogDescription: string;\n /** Tên trợ năng của danh sách (`aria-label` của `[cmdk-list]`) — prop `label` của `CommandList` */\n listLabel: string;\n}\n\nexport const commandEn: CommandMessages = {\n dialogTitle: \"Command palette\",\n dialogDescription: \"Search for a command to run…\",\n /* Cùng chữ với mặc định cứng của `cmdk` 1.1.1 — tên tiếng Anh không đổi so với trước 4.3.3. */\n listLabel: \"Suggestions\"\n};\n\nexport const commandVi: CommandMessages = {\n dialogTitle: \"Bảng lệnh\",\n dialogDescription: \"Tìm và chạy một lệnh…\",\n /* Cùng chữ với `listLabel` của namespace `mention` — cùng một chữ gốc tiếng Anh, cùng một bản dịch. */\n listLabel: \"Danh sách gợi ý\"\n};\n"],"mappings":"AAaO,MAAM,YAA6B;AAAA,EACxC,aAAa;AAAA,EACb,mBAAmB;AAAA;AAAA,EAEnB,WAAW;AACb;AAEO,MAAM,YAA6B;AAAA,EACxC,aAAa;AAAA,EACb,mBAAmB;AAAA;AAAA,EAEnB,WAAW;AACb;","names":[]}
@@ -47,7 +47,7 @@ declare function useDensity(): {
47
47
  };
48
48
  declare const FontSizeProvider: ({ children, defaultValue, storageKey, nonce }: {
49
49
  children: ReactNode;
50
- defaultValue?: "sm" | "md" | "lg" | undefined;
50
+ defaultValue?: "md" | "sm" | "lg" | undefined;
51
51
  storageKey?: string;
52
52
  /**
53
53
  * Nonce của CSP, cho script chống nháy mà provider này TỰ render.
@@ -71,7 +71,7 @@ declare const FontSizeScript: ({ storageKey, defaultValue, nonce }: {
71
71
  * định của gói thì script GỠ thuộc tính — để `data-palette="green"` mà server đặt sẵn trên
72
72
  * `<html>` không thắng lựa chọn gold người dùng đã lưu.
73
73
  */
74
- defaultValue?: "sm" | "md" | "lg" | undefined;
74
+ defaultValue?: "md" | "sm" | "lg" | undefined;
75
75
  nonce?: string;
76
76
  }) => React.JSX.Element;
77
77
  /** Đọc/đổi cỡ chữ. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comitor/ui",
3
- "version": "4.3.0",
3
+ "version": "4.3.3",
4
4
  "description": "Comitor design system — Shadcn/UI tùy biến theo brand Comitor + component dùng chung cho hệ sinh thái SaaS (Tasks, Chat, CRM, HR…)",
5
5
  "license": "MIT",
6
6
  "type": "module",