@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.
- package/dist/components/composite/combobox.js +13 -10
- package/dist/components/composite/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +13 -3
- package/dist/components/ui/command.js +12 -3
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/phone-input.js +1 -1
- package/dist/components/ui/phone-input.js.map +1 -1
- package/dist/data-grid/data-grid-cell-variants.js +59 -53
- package/dist/data-grid/data-grid-cell-variants.js.map +1 -1
- package/dist/data-grid/data-grid-filter-menu.js +9 -9
- package/dist/data-grid/data-grid-filter-menu.js.map +1 -1
- package/dist/data-grid/data-grid-sort-menu.js +3 -3
- package/dist/data-grid/data-grid-sort-menu.js.map +1 -1
- package/dist/data-grid/data-grid-view-menu.js +3 -3
- package/dist/data-grid/data-grid-view-menu.js.map +1 -1
- package/dist/data-grid/messages-en.d.ts +5 -0
- package/dist/data-grid/messages-en.js +6 -1
- package/dist/data-grid/messages-en.js.map +1 -1
- package/dist/data-grid/messages-vi.js +2 -1
- package/dist/data-grid/messages-vi.js.map +1 -1
- package/dist/data-grid/messages.d.ts +2 -0
- package/dist/data-grid/use-data-grid.d.ts +12 -2
- package/dist/data-grid/use-data-grid.js +3 -0
- package/dist/data-grid/use-data-grid.js.map +1 -1
- package/dist/i18n/namespaces/command.d.ts +6 -1
- package/dist/i18n/namespaces/command.js +6 -2
- package/dist/i18n/namespaces/command.js.map +1 -1
- package/dist/shell/display-axis-provider.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
/**
|
|
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":["
|
|
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?: "
|
|
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?: "
|
|
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