import { Badge, Card, CardContent, CardDescription, CardHeader, CardTitle, ListRow, } from "@godxjp/ui/data-display"; import { Button, Text } from "@godxjp/ui/general"; import { Flex, PageContainer } from "@godxjp/ui/layout"; /** * Flex · canonical flex primitive (replaced Stack/Inline as named shortcuts). * The default direction is "row" — matching the CSS `display:flex` initial value. * Use direction="col" for vertical stacks (formerly Stack); direction="row" is the * default for horizontal groups (formerly Inline). Keep spacing in gap prop · same * token scale as Stack/Inline. align + justify expose cross-axis and main-axis control. * wrap allows chip clusters and action rows to reflow. Composed only from real * @godxjp/ui components. */ export default function Demo() { return ( 既定 direction="row" · CSS 標準 direction を省略すると row(CSS の display:flex の初期値)。横並びが既定で、 縦積みには direction="col" を明示する。 借方 貸方 残高 direction="col" · 縦スタック 縦積みは direction="col" を明示する。gap トークンで間隔を均一に制御。className で raw gap-* を使わない。 行 1 · 仕訳入力 行 2 · 補助元帳 行 3 · 試算表 direction="row" + justify="between" · ツールバー カードヘッダー内でタイトルとアクションを左右に配置する典型パターン。 請求書一覧 align="center" + justify="center" · センタリング 空状態やローディングブロックを両軸で中央揃えにする用途。 データがありません align · 交差軸の整列(全 5 値) direction="row" の交差軸(縦方向)の揃え方。高さの異なる子要素で start・center・end・baseline・stretch の違いを比較。baseline はテキストの ベースライン、stretch は子要素を行の高さまで引き伸ばす。 {(["start", "center", "end", "stretch", "baseline"] as const).map((a) => ( {a} 標準テキスト ))} justify · 主軸の配置(全 6 値) direction="row" の主軸(横方向)の配置。固定幅トラックで余白の 分配を比較。between は端寄せ、around は各要素の周囲、evenly は要素間と端を すべて均等にする。 {(["start", "center", "end", "between", "around", "evenly"] as const).map((j) => ( {j} 借方 貸方 残高 ))} wrap · 折り返しの有無を比較 wrap={true}(既定の false に対して)。狭いトラックで折り返しの有無を 並べて比較。false では子要素が一行に圧縮され、true では次行へ流れる。 wrap={false}(既定) {/* ui-audit-disable-next-line no-utility-spacing — a tinted tile so the gap between children is visible; the box IS the subject */} 勘定科目 補助科目 部門 wrap={true} {/* ui-audit-disable-next-line no-utility-spacing — a tinted tile so the gap between children is visible; the box IS the subject */} 勘定科目 補助科目 部門 wrap · バッジ・チップクラスター direction="row" + wrap={true} でタグ・ステータスバッジが折り返す。 gap トークンで均一スペーシング。 承認済 保留中 確認待ち 却下 下書き アーカイブ 既定 中立 gap トークンスケール xs · sm · md(既定)· lg · xl。raw gap-* / space-* ユーティリティは使わない。 {(["xs", "sm", "md", "lg", "xl"] as const).map((g) => ( {g} 勘定科目 補助科目 部門 ))} レスポンシブな操作行 画面幅に合わせて操作をまとめます。 刻みにない幅で折りたたむ hideBelow の 4 段(40/48/64/80rem)に無い幅は hideBelowRaw / hideFromRaw で指定します。900px ちょうどでは「広い側」だけが残り、両方消える隙間はありません。 marker="none" · 装飾のない意味的リスト as="ul" は既定で中黒と字下げが付きます。設定メニューのような「行の一覧」では marker="none" を指定すると、ul と li の意味づけと gap トークンは残したまま、 中黒も字下げも消えます。行は ListRow as="li" で、区切り線は行が自分で描きます。 管理 } /> 管理 } /> 発行 } /> 監査ログ IP 制限 SSO 軽い強調と行アクション 締切を確認してください。
  • 添付ファイルを確認
  • 担当者を選択
  • old_status 更新済み
    ); }