@godxjp/ui 31.7.0 → 31.9.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/agent/START-HERE.md +4 -4
- package/agent/components/ColorPicker.json +16 -8
- package/agent/components/Select.json +22 -0
- package/agent/components/SplitPane.json +8 -1
- package/agent/components.json +46 -9
- package/agent/index.json +4 -4
- package/agent/llms.txt +5 -5
- package/agent/tokens.json +24 -0
- package/dist/components/data-entry/chat-composer.js +11 -4
- package/dist/components/data-entry/chat-suggestion.js +2 -0
- package/dist/components/data-entry/color-picker.d.ts +2 -2
- package/dist/components/data-entry/color-picker.js +150 -37
- package/dist/components/data-entry/command-palette.js +2 -1
- package/dist/components/data-entry/date-picker.js +2 -0
- package/dist/components/data-entry/index.d.ts +1 -1
- package/dist/components/data-entry/number-input.js +2 -1
- package/dist/components/data-entry/search-select.js +55 -17
- package/dist/components/data-entry/select.js +1 -1
- package/dist/components/data-entry/time-picker.js +3 -0
- package/dist/components/feedback/non-modal-layer.js +2 -1
- package/dist/components/general/typography.js +5 -1
- package/dist/components/layout/split-pane.d.ts +16 -1
- package/dist/components/layout/split-pane.js +7 -2
- package/dist/components/navigation/pagination.js +2 -1
- package/dist/components/ui/tag-input.js +2 -1
- package/dist/contracts/measurement.json +1 -1
- package/dist/i18n/messages/en.json +4 -2
- package/dist/i18n/messages/ja.json +4 -2
- package/dist/i18n/messages/vi.json +4 -2
- package/dist/lib/ime.d.ts +12 -0
- package/dist/lib/ime.js +7 -0
- package/dist/props/components/data-entry.prop.d.ts +66 -1
- package/dist/props/components/index.d.ts +1 -1
- package/dist/props/registry.d.ts +15 -0
- package/dist/props/registry.js +17 -0
- package/dist/styles/control.css +79 -0
- package/dist/styles/layers.json +1 -1
- package/dist/styles/layout.css +45 -0
- package/dist/tokens/components/control.css +8 -0
- package/docs/data-entry/color-picker.tsx +72 -0
- package/docs/data-entry/select.tsx +38 -0
- package/docs/i18n/messages/en.json +28 -0
- package/docs/i18n/messages/ja.json +28 -0
- package/docs/i18n/messages/vi.json +28 -0
- package/docs/layout/split-pane.tsx +65 -0
- package/package.json +2 -2
|
@@ -537,6 +537,34 @@
|
|
|
537
537
|
"longIdTitle": "Định danh dài và +N",
|
|
538
538
|
"ledgerLabel": "Mã sổ cái",
|
|
539
539
|
"ledgerHelper": "Định danh 71 ký tự vẫn nằm trong khung"
|
|
540
|
+
},
|
|
541
|
+
"select": {
|
|
542
|
+
"createTitle": "Tags: dòng tạo mới, onCreate và so khớp không phân biệt hoa thường",
|
|
543
|
+
"createDescription": "Văn bản gõ vào không khớp tùy chọn nào được đưa ra thành dòng “Tạo” rõ ràng. onCreate chỉ báo văn bản mới tạo, không bao giờ báo id của tùy chọn. Gõ “bug” sẽ tìm thấy “Bug” thay vì tạo bản trùng (caseSensitive trả lại so khớp chính xác). Khác antd, dòng tạo có nhãn và văn bản dài hơn 12 ký tự bị allowCreate từ chối.",
|
|
544
|
+
"createField": "Nhãn",
|
|
545
|
+
"createdHelper": "Đã tạo trong phiên này: {list}",
|
|
546
|
+
"createdNone": "Chưa tạo gì"
|
|
547
|
+
},
|
|
548
|
+
"colorPicker": {
|
|
549
|
+
"presetsTitle": "Màu thẻ chọn từ bảng màu",
|
|
550
|
+
"presetsDescription": "presets — các nhóm ô màu cố định dưới bộ chọn; mỗi nhóm thu gọn được, bộ chọn tự do vẫn còn.",
|
|
551
|
+
"paletteLabel": "Màu nhãn",
|
|
552
|
+
"recommendedGroup": "Đề xuất",
|
|
553
|
+
"recentGroup": "Dùng gần đây",
|
|
554
|
+
"presetsOnlyTitle": "Chỉ bảng màu",
|
|
555
|
+
"presetsOnlyDescription": "panelRender chỉ trả về Presets — người dùng chọn trong bảng màu, không gõ được mã hex tuỳ ý.",
|
|
556
|
+
"tagColorLabel": "Màu thẻ",
|
|
557
|
+
"tagColorHelper": "Phím mũi tên di chuyển giữa các ô màu; ô đang chọn được đọc lên."
|
|
558
|
+
},
|
|
559
|
+
"splitPaneStackOrder": {
|
|
560
|
+
"title": "stackOrder — đưa cột phụ lên trước khi xếp chồng",
|
|
561
|
+
"lead": "stackOrder=\"aside-first\" đặt cột phụ lên trên cột chính khi khung quá hẹp để chia đôi, và đặt nó trước trong DOM nên phím Tab cũng tới nó trước. Khi đủ rộng để chia, nó nằm ở cột cuối như mặc định. Khung nhúng bên dưới hẹp hơn ngưỡng chia đôi, nên thẻ thuộc tính nằm trên luồng bình luận.",
|
|
562
|
+
"propertiesTitle": "Thuộc tính",
|
|
563
|
+
"status": "Trạng thái",
|
|
564
|
+
"statusValue": "Đang xử lý",
|
|
565
|
+
"assignee": "Người phụ trách",
|
|
566
|
+
"threadTitle": "Bình luận",
|
|
567
|
+
"threadLead": "Trên điện thoại, luồng bình luận dài không còn đẩy phần thuộc tính xuống dưới."
|
|
540
568
|
}
|
|
541
569
|
},
|
|
542
570
|
"serviceLauncherShowcase": {
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
StatCard,
|
|
11
11
|
} from "@godxjp/ui/data-display";
|
|
12
12
|
import { Button, Text } from "@godxjp/ui/general";
|
|
13
|
+
import { useTranslation } from "@godxjp/ui/i18n";
|
|
13
14
|
import { FileText, Building2, Calendar, CreditCard, ArrowRight } from "lucide-react";
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -98,6 +99,7 @@ const yen = (n: number) => yenFormat.format(Math.round(n));
|
|
|
98
99
|
const toNumber = (amount: string) => Number(amount.replace(/[^0-9]/g, ""));
|
|
99
100
|
|
|
100
101
|
export default function Demo() {
|
|
102
|
+
const { t } = useTranslation();
|
|
101
103
|
const [selectedId, setSelectedId] = useState<string>("INV-0241");
|
|
102
104
|
const [asideWidth, setAsideWidth] = useState<"sm" | "md">("md");
|
|
103
105
|
const [threadOpen, setThreadOpen] = useState(true);
|
|
@@ -406,6 +408,69 @@ export default function Demo() {
|
|
|
406
408
|
</CardContent>
|
|
407
409
|
</Card>
|
|
408
410
|
|
|
411
|
+
{/* ── stackOrder="aside-first" (gh#1057) — the aside stacks ABOVE main when narrow ── */}
|
|
412
|
+
<Card>
|
|
413
|
+
<CardHeader>
|
|
414
|
+
<CardTitle level={2}>{t("showcase.splitPaneStackOrder.title")}</CardTitle>
|
|
415
|
+
<CardDescription>{t("showcase.splitPaneStackOrder.lead")}</CardDescription>
|
|
416
|
+
</CardHeader>
|
|
417
|
+
<CardContent>
|
|
418
|
+
<Card className="max-w-md">
|
|
419
|
+
<CardContent>
|
|
420
|
+
<SplitPane
|
|
421
|
+
stackOrder="aside-first"
|
|
422
|
+
asideWidth="sm"
|
|
423
|
+
asideLabel={t("showcase.splitPaneStackOrder.propertiesTitle")}
|
|
424
|
+
aside={
|
|
425
|
+
<Card variant="muted">
|
|
426
|
+
<CardHeader>
|
|
427
|
+
<CardTitle level={3} className="text-sm">
|
|
428
|
+
{t("showcase.splitPaneStackOrder.propertiesTitle")}
|
|
429
|
+
</CardTitle>
|
|
430
|
+
</CardHeader>
|
|
431
|
+
<CardContent>
|
|
432
|
+
<Flex direction="col" gap="xs">
|
|
433
|
+
<Flex direction="row" justify="between" gap="sm">
|
|
434
|
+
<Text tone="muted">{t("showcase.splitPaneStackOrder.status")}</Text>
|
|
435
|
+
<Badge tone="info">
|
|
436
|
+
{t("showcase.splitPaneStackOrder.statusValue")}
|
|
437
|
+
</Badge>
|
|
438
|
+
</Flex>
|
|
439
|
+
<Flex direction="row" justify="between" gap="sm">
|
|
440
|
+
<Text tone="muted">{t("showcase.splitPaneStackOrder.assignee")}</Text>
|
|
441
|
+
<Text>{THREAD_REPLIES[0].author}</Text>
|
|
442
|
+
</Flex>
|
|
443
|
+
</Flex>
|
|
444
|
+
</CardContent>
|
|
445
|
+
</Card>
|
|
446
|
+
}
|
|
447
|
+
>
|
|
448
|
+
<Card>
|
|
449
|
+
<CardHeader>
|
|
450
|
+
<CardTitle level={3} className="text-sm">
|
|
451
|
+
{t("showcase.splitPaneStackOrder.threadTitle")}
|
|
452
|
+
</CardTitle>
|
|
453
|
+
<CardDescription>
|
|
454
|
+
{t("showcase.splitPaneStackOrder.threadLead")}
|
|
455
|
+
</CardDescription>
|
|
456
|
+
</CardHeader>
|
|
457
|
+
<CardContent>
|
|
458
|
+
<Flex direction="col" gap="sm">
|
|
459
|
+
{CHANNEL_MESSAGES.map((message) => (
|
|
460
|
+
<Flex key={message.author} direction="col" gap="xs">
|
|
461
|
+
<Text weight="medium">{message.author}</Text>
|
|
462
|
+
<Text tone="muted">{message.body}</Text>
|
|
463
|
+
</Flex>
|
|
464
|
+
))}
|
|
465
|
+
</Flex>
|
|
466
|
+
</CardContent>
|
|
467
|
+
</Card>
|
|
468
|
+
</SplitPane>
|
|
469
|
+
</CardContent>
|
|
470
|
+
</Card>
|
|
471
|
+
</CardContent>
|
|
472
|
+
</Card>
|
|
473
|
+
|
|
409
474
|
<Card>
|
|
410
475
|
<CardHeader>
|
|
411
476
|
<CardTitle level={2}>Container stress · narrow vs wide embed</CardTitle>
|