@godxjp/ui 28.5.0 → 28.7.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/dist/components/data-display/data-table.d.ts +10 -2
- package/dist/components/data-display/data-table.js +12 -5
- package/dist/components/data-display/scroll-area.js +16 -2
- package/dist/components/data-display/service-launcher-card.d.ts +25 -0
- package/dist/components/data-display/table.d.ts +38 -1
- package/dist/components/data-display/table.js +57 -39
- package/dist/components/data-entry/field.d.ts +1 -1
- package/dist/components/data-entry/field.js +35 -4
- package/dist/components/data-entry/form-field.js +29 -12
- package/dist/components/data-entry/input.d.ts +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/nav-list.d.ts +9 -1
- package/dist/components/layout/nav-list.js +22 -11
- package/dist/components/layout/sidebar.d.ts +16 -2
- package/dist/components/layout/sidebar.js +1 -0
- package/dist/components/navigation/app-setting-picker.js +20 -3
- package/dist/components/ui/password-input.d.ts +1 -1
- package/dist/components/ui/table.js +1 -0
- package/dist/contracts/measurement.json +1 -1
- package/dist/i18n/messages/en.json +5 -1
- package/dist/i18n/messages/ja.json +5 -1
- package/dist/i18n/messages/vi.json +5 -1
- package/dist/lib/control-styles.d.ts +18 -3
- package/dist/lib/control-styles.js +1 -1
- package/dist/lib/hooks.d.ts +23 -0
- package/dist/lib/hooks.js +27 -0
- package/dist/props/components/data-display.prop.d.ts +14 -0
- package/dist/props/components/data-entry.prop.d.ts +36 -2
- package/dist/props/components/layout.prop.d.ts +16 -5
- package/dist/props/registry.d.ts +2 -2
- package/dist/props/registry.js +10 -2
- package/dist/styles/control.css +12 -0
- package/dist/styles/data-display-layout.css +25 -2
- package/dist/styles/dialog-layout.css +12 -0
- package/dist/styles/form-layout.css +22 -0
- package/dist/styles/layout.css +1 -2
- package/dist/styles/navigation-layout.css +18 -19
- package/dist/tokens/components/data-display.css +2 -1
- package/dist/tokens/components/feedback.css +2 -0
- package/dist/tokens/components/form.css +2 -0
- package/dist/tokens/components/navigation.css +2 -0
- package/docs/COMPOSITION-VS-COMPONENT.md +3 -0
- package/docs/DESIGN-AUTHORITY.md +25 -5
- package/docs/FRAME-COVERAGE-REPORT.md +1 -1
- package/docs/data-display/collapsible.tsx +5 -5
- package/docs/data-display/descriptions.tsx +188 -109
- package/docs/data-display/legend.tsx +17 -4
- package/docs/data-display/scroll-area.tsx +106 -5
- package/docs/data-display/service-launcher-card.tsx +275 -115
- package/docs/data-display/stat-card.tsx +319 -64
- package/docs/data-entry/form.tsx +700 -6
- package/docs/data-entry/input.tsx +663 -53
- package/docs/data-entry/radio-group.tsx +216 -2
- package/docs/data-entry/switch.tsx +210 -4
- package/docs/data-entry/upload-crop-dialog.tsx +24 -25
- package/docs/layout/nav-list.tsx +556 -35
- package/package.json +9 -7
- package/scripts/visual-audit.mjs +29 -1
|
@@ -116,6 +116,7 @@ export default function Demo() {
|
|
|
116
116
|
<Card variant="outline" className="h-64 w-full">
|
|
117
117
|
<CardContent flush>
|
|
118
118
|
<ScrollArea
|
|
119
|
+
className="h-72"
|
|
119
120
|
anchor="bottom"
|
|
120
121
|
viewportRef={streamViewport}
|
|
121
122
|
onAnchoredChange={setAnchored}
|
|
@@ -176,7 +177,7 @@ export default function Demo() {
|
|
|
176
177
|
<CardContent>
|
|
177
178
|
<Card variant="outline" className="h-40 w-full">
|
|
178
179
|
<CardContent flush>
|
|
179
|
-
<ScrollArea anchor="bottom" anchorOffset={0}>
|
|
180
|
+
<ScrollArea className="h-40" anchor="bottom" anchorOffset={0}>
|
|
180
181
|
<CardContent>
|
|
181
182
|
<Flex direction="col" gap="xs">
|
|
182
183
|
{entries.map((e) => (
|
|
@@ -192,6 +193,67 @@ export default function Demo() {
|
|
|
192
193
|
</CardContent>
|
|
193
194
|
</Card>
|
|
194
195
|
|
|
196
|
+
<Card>
|
|
197
|
+
<CardHeader>
|
|
198
|
+
<CardTitle level={2}>
|
|
199
|
+
scrollbar="always" — 「スクロールバーが見えない」の答え
|
|
200
|
+
</CardTitle>
|
|
201
|
+
<CardDescription>
|
|
202
|
+
既定の <code>auto</code> はプラットフォームに任せます。macOS / iPadOS
|
|
203
|
+
のシステム既定「スクロール中にのみ表示」では、それは
|
|
204
|
+
<strong>オーバーレイのバー</strong>
|
|
205
|
+
です。つまり、すでにスクロールしている間しか存在しません。止まっている状態では、
|
|
206
|
+
この面がスクロールできることが一切わかりません(gh#798)。
|
|
207
|
+
下の2つは中身も高さも同一で、違うのは <code>scrollbar</code> だけです。
|
|
208
|
+
</CardDescription>
|
|
209
|
+
</CardHeader>
|
|
210
|
+
<CardContent>
|
|
211
|
+
<ResponsiveGrid columns={{ sm: 1, md: 2 }}>
|
|
212
|
+
<Flex direction="col" gap="xs">
|
|
213
|
+
<Text size="sm" tone="muted">
|
|
214
|
+
scrollbar="auto"(既定)— macOS では静止時にバーが出ない
|
|
215
|
+
</Text>
|
|
216
|
+
<Card variant="outline" className="w-full">
|
|
217
|
+
<CardContent flush>
|
|
218
|
+
<ScrollArea className="h-40">
|
|
219
|
+
<CardContent>
|
|
220
|
+
<Flex direction="col" gap="xs">
|
|
221
|
+
{entries.map((e) => (
|
|
222
|
+
<div key={`auto-${e}`} className="text-sm tabular-nums">
|
|
223
|
+
{e}
|
|
224
|
+
</div>
|
|
225
|
+
))}
|
|
226
|
+
</Flex>
|
|
227
|
+
</CardContent>
|
|
228
|
+
</ScrollArea>
|
|
229
|
+
</CardContent>
|
|
230
|
+
</Card>
|
|
231
|
+
</Flex>
|
|
232
|
+
|
|
233
|
+
<Flex direction="col" gap="xs">
|
|
234
|
+
<Text size="sm" tone="muted">
|
|
235
|
+
scrollbar="always" — レイアウトを占める古典的なバー
|
|
236
|
+
</Text>
|
|
237
|
+
<Card variant="outline" className="w-full">
|
|
238
|
+
<CardContent flush>
|
|
239
|
+
<ScrollArea className="h-40" scrollbar="always">
|
|
240
|
+
<CardContent>
|
|
241
|
+
<Flex direction="col" gap="xs">
|
|
242
|
+
{entries.map((e) => (
|
|
243
|
+
<div key={`always-${e}`} className="text-sm tabular-nums">
|
|
244
|
+
{e}
|
|
245
|
+
</div>
|
|
246
|
+
))}
|
|
247
|
+
</Flex>
|
|
248
|
+
</CardContent>
|
|
249
|
+
</ScrollArea>
|
|
250
|
+
</CardContent>
|
|
251
|
+
</Card>
|
|
252
|
+
</Flex>
|
|
253
|
+
</ResponsiveGrid>
|
|
254
|
+
</CardContent>
|
|
255
|
+
</Card>
|
|
256
|
+
|
|
195
257
|
<Card>
|
|
196
258
|
<CardHeader>
|
|
197
259
|
<CardTitle level={2}>固定高さのリスト(縦スクロール)</CardTitle>
|
|
@@ -200,9 +262,14 @@ export default function Demo() {
|
|
|
200
262
|
</CardDescription>
|
|
201
263
|
</CardHeader>
|
|
202
264
|
<CardContent>
|
|
203
|
-
|
|
265
|
+
{/* THE HEIGHT GOES ON THE SCROLLAREA, not on an ancestor. It was on the outer Card,
|
|
266
|
+
and neither CardContent nor ScrollArea inherits a height from it — so the
|
|
267
|
+
ScrollArea grew to its content, `scrollHeight === clientHeight`, and the demo for
|
|
268
|
+
a scrolling component did not scroll. Measured on the published site before this
|
|
269
|
+
change. The page header says this rule outright; the example broke it. */}
|
|
270
|
+
<Card variant="outline" className="w-full">
|
|
204
271
|
<CardContent flush>
|
|
205
|
-
<ScrollArea>
|
|
272
|
+
<ScrollArea className="h-56">
|
|
206
273
|
<CardContent>
|
|
207
274
|
<Flex direction="col" gap="xs">
|
|
208
275
|
{entries.map((e) => (
|
|
@@ -288,6 +355,37 @@ export default function Demo() {
|
|
|
288
355
|
</CardContent>
|
|
289
356
|
</Card>
|
|
290
357
|
|
|
358
|
+
<Card>
|
|
359
|
+
<CardHeader>
|
|
360
|
+
<CardTitle level={2}>スクロール領域に名前を付ける(label)</CardTitle>
|
|
361
|
+
<CardDescription>
|
|
362
|
+
溢れている間、ビューポートは Tab
|
|
363
|
+
で止まる(キーボードだけで中身を送るために必要)。その停止点は名前を持つ。既定は
|
|
364
|
+
「スクロール可能な領域」の翻訳で、画面がその領域を呼べるときは label
|
|
365
|
+
で「監査ログ」と名乗る。ロールはランドマークの region ではなく group
|
|
366
|
+
にしてある。同じ名前のランドマークが一画面に並ぶと axe landmark-unique
|
|
367
|
+
に触れるため。溢れていなければ停止点も role も名前も出ない(gh#821)。
|
|
368
|
+
</CardDescription>
|
|
369
|
+
</CardHeader>
|
|
370
|
+
<CardContent>
|
|
371
|
+
<Card variant="outline" className="w-full">
|
|
372
|
+
<CardContent flush>
|
|
373
|
+
<ScrollArea className="h-40" label="監査ログ">
|
|
374
|
+
<CardContent>
|
|
375
|
+
<Flex direction="col" gap="xs">
|
|
376
|
+
{entries.map((e) => (
|
|
377
|
+
<div key={e} className="text-sm tabular-nums">
|
|
378
|
+
{e}
|
|
379
|
+
</div>
|
|
380
|
+
))}
|
|
381
|
+
</Flex>
|
|
382
|
+
</CardContent>
|
|
383
|
+
</ScrollArea>
|
|
384
|
+
</CardContent>
|
|
385
|
+
</Card>
|
|
386
|
+
</CardContent>
|
|
387
|
+
</Card>
|
|
388
|
+
|
|
291
389
|
<Card>
|
|
292
390
|
<CardHeader>
|
|
293
391
|
<CardTitle level={2}>内容が収まる場合(バー非表示)</CardTitle>
|
|
@@ -296,9 +394,12 @@ export default function Demo() {
|
|
|
296
394
|
</CardDescription>
|
|
297
395
|
</CardHeader>
|
|
298
396
|
<CardContent>
|
|
299
|
-
|
|
397
|
+
{/* Same h-56 as above, DELIBERATELY not overflowing: `shortEntries` fits, so no bar
|
|
398
|
+
appears. This is the control case — it is only meaningful next to one that does
|
|
399
|
+
overflow, which is why the demo above had to be fixed first. */}
|
|
400
|
+
<Card variant="outline" className="w-full">
|
|
300
401
|
<CardContent flush>
|
|
301
|
-
<ScrollArea>
|
|
402
|
+
<ScrollArea className="h-56">
|
|
302
403
|
<CardContent>
|
|
303
404
|
<Flex direction="col" gap="xs">
|
|
304
405
|
{shortEntries.map((e) => (
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
BookOpen,
|
|
3
|
+
Boxes,
|
|
4
|
+
Calendar,
|
|
3
5
|
Clock3,
|
|
4
6
|
Database,
|
|
7
|
+
FileText,
|
|
5
8
|
LayoutGrid,
|
|
9
|
+
Mail,
|
|
6
10
|
PlugZap,
|
|
7
11
|
ReceiptText,
|
|
12
|
+
Server,
|
|
8
13
|
ShieldCheck,
|
|
9
14
|
} from "lucide-react";
|
|
10
15
|
|
|
@@ -13,132 +18,287 @@ import {
|
|
|
13
18
|
ServiceLauncherCard,
|
|
14
19
|
ServiceLauncherCardSkeleton,
|
|
15
20
|
} from "@godxjp/ui/data-display";
|
|
16
|
-
import { Button } from "@godxjp/ui/general";
|
|
21
|
+
import { Button, Text } from "@godxjp/ui/general";
|
|
17
22
|
import { Flex, PageContainer, ResponsiveGrid } from "@godxjp/ui/layout";
|
|
18
23
|
|
|
19
24
|
/**
|
|
20
|
-
* ServiceLauncherCard —
|
|
21
|
-
*
|
|
25
|
+
* ServiceLauncherCard — one tile for one application in an organization's launcher.
|
|
26
|
+
*
|
|
27
|
+
* WHY THIS PAGE IS GENERIC. It used to render this product's own service catalogue —
|
|
28
|
+
* `attendance.godx.jp`, plans `Standard/Enterprise/Free`, a 「カタログを見る」 link — which made a
|
|
29
|
+
* reader ask whether the component belonged in a UI framework at all. A fair question: a page that
|
|
30
|
+
* demonstrates a product cannot demonstrate a component. The data here is therefore ANY
|
|
31
|
+
* organization's internal tools, on RFC 2606 reserved domains, with no plan names of ours.
|
|
32
|
+
*
|
|
33
|
+
* WHAT IS NOT NEGOTIABLE is the state set — available / restricted / suspended / archived /
|
|
34
|
+
* loading / catalog entry. Those ARE the component's API surface, because the component infers
|
|
35
|
+
* nothing: `statusLabel`, `statusTone`, `disabledReason` and `action` all come from the consumer's
|
|
36
|
+
* own entitlement contract. There is no `href`, no `available`, no `entitlement` prop to find.
|
|
37
|
+
*
|
|
38
|
+
* ResponsiveGrid owns the 3 → 2 → 1 ladder. The page writes no grid tracks and no page-local CSS.
|
|
22
39
|
*/
|
|
40
|
+
|
|
41
|
+
/** A section heading. Headings are headings, not Cards — a Card here would nest borders. */
|
|
42
|
+
function Section({
|
|
43
|
+
title,
|
|
44
|
+
why,
|
|
45
|
+
children,
|
|
46
|
+
}: {
|
|
47
|
+
title: string;
|
|
48
|
+
why: string;
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
}) {
|
|
51
|
+
return (
|
|
52
|
+
<Flex direction="col" gap="sm">
|
|
53
|
+
<Text as="div" weight="medium">
|
|
54
|
+
{title}
|
|
55
|
+
</Text>
|
|
56
|
+
<Text as="div" size="sm" tone="muted">
|
|
57
|
+
{why}
|
|
58
|
+
</Text>
|
|
59
|
+
{children}
|
|
60
|
+
</Flex>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
23
64
|
export default function Demo() {
|
|
24
65
|
return (
|
|
25
66
|
<PageContainer
|
|
26
67
|
title="ServiceLauncherCard"
|
|
27
|
-
subtitle="
|
|
68
|
+
subtitle="社内アプリケーション一覧のタイル — 利用可能・制限・停止・アーカイブ・読み込み中・カタログ導線"
|
|
28
69
|
>
|
|
29
70
|
<Flex direction="col" gap="lg">
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
<Section
|
|
72
|
+
title="1 · 基本 · 利用できるサービス"
|
|
73
|
+
why="アイコン・名称・ステータス・説明・識別子・操作。ステータスの文言は常に利用側のコピーで、コンポーネントが決めるのは tone に対応する Badge の意味づけだけです。"
|
|
74
|
+
>
|
|
75
|
+
<ResponsiveGrid columns={{ sm: 1, md: 2, lg: 3 }}>
|
|
76
|
+
<ServiceLauncherCard
|
|
77
|
+
icon={Clock3}
|
|
78
|
+
title="勤怠管理"
|
|
79
|
+
statusLabel="利用可能"
|
|
80
|
+
statusTone="success"
|
|
81
|
+
description="打刻、シフト、休暇申請を一つのワークスペースで管理します。"
|
|
82
|
+
metadata="attend.corp.example.jp · v4.2"
|
|
83
|
+
action={<Button>サービスを開く</Button>}
|
|
84
|
+
/>
|
|
85
|
+
<ServiceLauncherCard
|
|
86
|
+
icon={ReceiptText}
|
|
87
|
+
title="経費精算"
|
|
88
|
+
statusLabel="利用可能"
|
|
89
|
+
statusTone="success"
|
|
90
|
+
description="領収書の提出から承認、仕訳連携までを扱います。"
|
|
91
|
+
metadata="keihi.corp.example.jp · v2.8"
|
|
92
|
+
action={<Button>サービスを開く</Button>}
|
|
93
|
+
/>
|
|
94
|
+
<ServiceLauncherCard
|
|
95
|
+
icon={Calendar}
|
|
96
|
+
title="会議室予約"
|
|
97
|
+
statusLabel="利用可能"
|
|
98
|
+
statusTone="success"
|
|
99
|
+
description="拠点ごとの会議室と備品を予約します。"
|
|
100
|
+
metadata="rooms.corp.example.jp · v1.9"
|
|
101
|
+
action={<Button>サービスを開く</Button>}
|
|
102
|
+
/>
|
|
103
|
+
</ResponsiveGrid>
|
|
104
|
+
</Section>
|
|
105
|
+
|
|
106
|
+
<Section
|
|
107
|
+
title="2 · statusTone の 6 値すべて"
|
|
108
|
+
why="success / warning / destructive / info / neutral / muted。tone は Badge の意味づけだけを決め、文言・判定・操作の可否はすべて利用側が渡します。"
|
|
109
|
+
>
|
|
110
|
+
<ResponsiveGrid columns={{ sm: 1, md: 2, lg: 3 }}>
|
|
111
|
+
<ServiceLauncherCard
|
|
112
|
+
icon={Mail}
|
|
113
|
+
titleLevel={3}
|
|
114
|
+
title="社内メール"
|
|
115
|
+
statusLabel="稼働中"
|
|
116
|
+
statusTone="success"
|
|
117
|
+
description="メールボックス、配布リスト、共有署名を管理します。"
|
|
118
|
+
metadata="mail.corp.example.jp"
|
|
119
|
+
action={<Button>サービスを開く</Button>}
|
|
120
|
+
/>
|
|
121
|
+
<ServiceLauncherCard
|
|
122
|
+
icon={Server}
|
|
123
|
+
titleLevel={3}
|
|
124
|
+
title="ファイル共有"
|
|
125
|
+
statusLabel="メンテナンス中"
|
|
126
|
+
statusTone="warning"
|
|
127
|
+
description="部門フォルダと外部共有リンクを扱います。"
|
|
128
|
+
metadata="files.corp.example.jp"
|
|
129
|
+
action={<Button variant="outline">状況を見る</Button>}
|
|
130
|
+
/>
|
|
131
|
+
<ServiceLauncherCard
|
|
132
|
+
icon={Database}
|
|
133
|
+
titleLevel={3}
|
|
134
|
+
title="データ連携基盤"
|
|
135
|
+
statusLabel="停止中"
|
|
136
|
+
statusTone="destructive"
|
|
137
|
+
description="外部システムとのデータ同期ジョブを管理します。"
|
|
138
|
+
metadata="sync.corp.example.jp"
|
|
139
|
+
action={<Button variant="outline">履歴を見る</Button>}
|
|
140
|
+
/>
|
|
141
|
+
<ServiceLauncherCard
|
|
142
|
+
icon={ShieldCheck}
|
|
143
|
+
titleLevel={3}
|
|
144
|
+
title="権限管理"
|
|
145
|
+
statusLabel="管理者限定"
|
|
146
|
+
statusTone="info"
|
|
147
|
+
description="ロール、二要素認証ポリシー、監査イベントを確認します。"
|
|
148
|
+
metadata="iam.corp.example.jp"
|
|
149
|
+
action={<Button variant="outline">権限を確認</Button>}
|
|
150
|
+
/>
|
|
151
|
+
<ServiceLauncherCard
|
|
152
|
+
icon={PlugZap}
|
|
153
|
+
titleLevel={3}
|
|
154
|
+
title="連携アプリ"
|
|
155
|
+
statusLabel="準備中"
|
|
156
|
+
statusTone="neutral"
|
|
157
|
+
description="サードパーティ連携の接続とスコープを設定します。"
|
|
158
|
+
metadata="connect.corp.example.jp"
|
|
159
|
+
action={<Button variant="outline">設定を開く</Button>}
|
|
160
|
+
/>
|
|
161
|
+
<ServiceLauncherCard
|
|
162
|
+
icon={BookOpen}
|
|
163
|
+
titleLevel={3}
|
|
164
|
+
title="旧ナレッジベース"
|
|
165
|
+
statusLabel="アーカイブ"
|
|
166
|
+
statusTone="muted"
|
|
167
|
+
description="2024 年度までの運用手順を読み取り専用で保管しています。"
|
|
168
|
+
metadata="kb-archive.corp.example.jp"
|
|
169
|
+
action={<Button variant="outline">アーカイブを見る</Button>}
|
|
170
|
+
/>
|
|
171
|
+
</ResponsiveGrid>
|
|
172
|
+
</Section>
|
|
173
|
+
|
|
174
|
+
<Section
|
|
175
|
+
title="3 · disabledReason · 操作が効かない理由は操作より先に置かれる"
|
|
176
|
+
why="無効化されたボタンは「なぜ」を一切伝えません。だから理由は DOM 順で操作より先に置かれ(WCAG 2.2 · 1.3.2)、タイルは data-unavailable を帯びてメダリオンが沈みます。disabledReason はボタンを無効化しません — それは利用側の Button prop のままです。"
|
|
177
|
+
>
|
|
178
|
+
<ResponsiveGrid columns={{ sm: 1, md: 2, lg: 3 }}>
|
|
179
|
+
<ServiceLauncherCard
|
|
180
|
+
icon={Boxes}
|
|
181
|
+
titleLevel={3}
|
|
182
|
+
title="在庫管理"
|
|
183
|
+
statusLabel="未申請"
|
|
184
|
+
statusTone="warning"
|
|
185
|
+
description="拠点別の在庫、入出庫、棚卸を管理します。"
|
|
186
|
+
metadata="zaiko.corp.example.jp"
|
|
187
|
+
disabledReason="この部門ではまだ利用申請が承認されていません。"
|
|
188
|
+
action={<Button disabled>サービスを開く</Button>}
|
|
189
|
+
/>
|
|
190
|
+
<ServiceLauncherCard
|
|
191
|
+
icon={FileText}
|
|
192
|
+
titleLevel={3}
|
|
193
|
+
title="契約書管理"
|
|
194
|
+
statusLabel="権限なし"
|
|
195
|
+
statusTone="info"
|
|
196
|
+
description="契約書の保管、期限通知、電子署名の依頼を扱います。"
|
|
197
|
+
metadata="keiyaku.corp.example.jp"
|
|
198
|
+
disabledReason="閲覧には法務部門のロールが必要です。IT ヘルプデスクへ申請してください。"
|
|
199
|
+
action={<Button disabled>サービスを開く</Button>}
|
|
200
|
+
/>
|
|
201
|
+
<ServiceLauncherCard
|
|
202
|
+
icon={Database}
|
|
203
|
+
titleLevel={3}
|
|
204
|
+
title="分析基盤"
|
|
205
|
+
statusLabel="停止中"
|
|
206
|
+
statusTone="destructive"
|
|
207
|
+
description="全社ダッシュボードとデータマートを提供します。"
|
|
208
|
+
metadata="bi.corp.example.jp"
|
|
209
|
+
disabledReason="このサービスは組織の管理者によって停止されています。"
|
|
210
|
+
action={<Button disabled>サービスを開く</Button>}
|
|
211
|
+
/>
|
|
212
|
+
</ResponsiveGrid>
|
|
213
|
+
</Section>
|
|
214
|
+
|
|
215
|
+
<Section
|
|
216
|
+
title="4 · 読み込み中とカタログ導線"
|
|
217
|
+
why="ServiceLauncherCardSkeleton は同じ骨格の初期プレースホルダーで、label が必須・aria-busy を持ち、ライブリージョンは意図的に開きません。ServiceCatalogCta は実在する追加導線がある場合にだけ並べる相棒タイルで、既定の Plus 以外のグリフも受け取ります。"
|
|
218
|
+
>
|
|
219
|
+
<ResponsiveGrid columns={{ sm: 1, md: 2, lg: 3 }}>
|
|
220
|
+
<ServiceLauncherCardSkeleton label="サービスを読み込み中" />
|
|
221
|
+
<ServiceCatalogCta
|
|
222
|
+
title="アプリを追加"
|
|
223
|
+
action={<Button variant="outline">申請フォームを開く</Button>}
|
|
224
|
+
/>
|
|
225
|
+
<ServiceCatalogCta
|
|
226
|
+
icon={LayoutGrid}
|
|
227
|
+
title="すべての社内アプリを見る"
|
|
228
|
+
action={<Button variant="ghost">一覧を開く</Button>}
|
|
229
|
+
/>
|
|
230
|
+
</ResponsiveGrid>
|
|
231
|
+
</Section>
|
|
65
232
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
action={<Button variant="ghost">カタログ一覧</Button>}
|
|
104
|
-
/>
|
|
105
|
-
</ResponsiveGrid>
|
|
233
|
+
<Section
|
|
234
|
+
title="5 · 端に触れる · 3 行の名称、説明なし、切れない長いホスト名"
|
|
235
|
+
why="整った例はタイルが崩れる場所を何も見せません。ここは崩れる側です:3 行になる名称と 2 語の名称が同じ行に並び、説明のないタイルが説明のあるタイルの隣に置かれ、空白のないホスト名が列幅を広げようとします。見苦しく見えるなら、このセクションは仕事をしています — 耐えるのはサンプルデータではなくコンポーネントの側です。"
|
|
236
|
+
>
|
|
237
|
+
<ResponsiveGrid columns={{ sm: 1, md: 2, lg: 3 }}>
|
|
238
|
+
<ServiceLauncherCard
|
|
239
|
+
icon={ShieldCheck}
|
|
240
|
+
titleLevel={3}
|
|
241
|
+
title="グローバル人事情報基盤・従業員セルフサービスポータル(アジア太平洋地域)"
|
|
242
|
+
statusLabel="利用可能"
|
|
243
|
+
statusTone="success"
|
|
244
|
+
description="人事マスタ、勤怠、給与、評価を一元管理する統合ワークスペースです。"
|
|
245
|
+
metadata="workforce-identity-administration.ap-northeast-1.corp.example.jp · v11.0"
|
|
246
|
+
action={<Button>サービスを開く</Button>}
|
|
247
|
+
/>
|
|
248
|
+
<ServiceLauncherCard
|
|
249
|
+
icon={Clock3}
|
|
250
|
+
titleLevel={3}
|
|
251
|
+
title="日報"
|
|
252
|
+
statusLabel="利用可能"
|
|
253
|
+
statusTone="success"
|
|
254
|
+
metadata="nippo.corp.example.jp"
|
|
255
|
+
action={<Button>サービスを開く</Button>}
|
|
256
|
+
/>
|
|
257
|
+
<ServiceLauncherCard
|
|
258
|
+
icon={Server}
|
|
259
|
+
titleLevel={3}
|
|
260
|
+
title="Global Workforce Identity & Entitlement Administration Console"
|
|
261
|
+
statusLabel="Attention required"
|
|
262
|
+
statusTone="warning"
|
|
263
|
+
description="Review pending entitlement requests before the next access certification."
|
|
264
|
+
metadata="workforce-identity-administration.ap-southeast-1.corp.example.com"
|
|
265
|
+
disabledReason="Your organization has no approved request for this service yet."
|
|
266
|
+
action={<Button disabled>Open service</Button>}
|
|
267
|
+
/>
|
|
268
|
+
</ResponsiveGrid>
|
|
269
|
+
</Section>
|
|
106
270
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
metadata="workforce-identity-administration.ap-southeast-1.godx.jp · Enterprise"
|
|
139
|
-
action={<Button variant="outline">Xem quyền truy cập</Button>}
|
|
140
|
-
/>
|
|
141
|
-
</ResponsiveGrid>
|
|
271
|
+
<Section
|
|
272
|
+
title="6 · 最小のタイル"
|
|
273
|
+
why="必須は icon・title・action の 3 つだけです。statusLabel を省けば Badge の行ごと消え、description と metadata を省いても骨格は保たれます — 隣の満載のタイルと高さを比べてください。"
|
|
274
|
+
>
|
|
275
|
+
<ResponsiveGrid columns={{ sm: 1, md: 2, lg: 3 }}>
|
|
276
|
+
<ServiceLauncherCard
|
|
277
|
+
icon={BookOpen}
|
|
278
|
+
titleLevel={3}
|
|
279
|
+
title="社内 Wiki"
|
|
280
|
+
action={<Button variant="outline">開く</Button>}
|
|
281
|
+
/>
|
|
282
|
+
<ServiceLauncherCard
|
|
283
|
+
icon={Mail}
|
|
284
|
+
titleLevel={3}
|
|
285
|
+
title="問い合わせ窓口"
|
|
286
|
+
description="社内のシステム相談はこちらで受け付けています。"
|
|
287
|
+
action={<Button variant="outline">開く</Button>}
|
|
288
|
+
/>
|
|
289
|
+
<ServiceLauncherCard
|
|
290
|
+
icon={Calendar}
|
|
291
|
+
titleLevel={3}
|
|
292
|
+
title="全社カレンダー"
|
|
293
|
+
statusLabel="利用可能"
|
|
294
|
+
statusTone="success"
|
|
295
|
+
description="全社行事、休業日、拠点別の予定を共有します。"
|
|
296
|
+
metadata="calendar.corp.example.jp · v3.1"
|
|
297
|
+
disabledReason="読み取り専用で公開されています。"
|
|
298
|
+
action={<Button variant="outline">開く</Button>}
|
|
299
|
+
/>
|
|
300
|
+
</ResponsiveGrid>
|
|
301
|
+
</Section>
|
|
142
302
|
</Flex>
|
|
143
303
|
</PageContainer>
|
|
144
304
|
);
|