ksk-design-system 1.53.0 → 1.55.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "name": "KSK Design System — Component Contracts",
4
- "version": "1.53.0",
4
+ "version": "1.55.0",
5
5
  "description": "全コンポーネントの構造化定義。バリアント・アクセシビリティ要件・使用ルールを機械可読形式で管理。",
6
6
  "counts": {
7
7
  "ui": 67,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "name": "KSK Design System — Semantic Token Hex Cache",
4
- "version": "1.53.0",
4
+ "version": "1.55.0",
5
5
  "description": "semantic / semanticDark トークン(var(--Primitive-*) 参照)を実 hex に解決したサイドカー生成物。hex はデフォルト(Blue)テーマでの解決値であり、Brand 系(meta.themeDependentKeys に列挙)はテーマ差し替え(orange/green/violet 等)で実色が変わる。テーマ別の完全解決値は `ksk-design-system/native` エクスポート(バンドル済み native トークンモジュール)の themes を参照。tokens.json 本体のスキーマは変更せず、AI がこのファイルだけで実色を把握できるようにし、primitive 値の変更による semantic 実色のドリフトを --check で機械検出する。",
6
6
  "generatedBy": "scripts/generate-token-hex-cache.mjs",
7
7
  "theme": "default",
package/dist/native/ui.js CHANGED
@@ -436,39 +436,52 @@ function Oe({ padding: e = 4, elevation: t, style: n, children: r, ...i }) {
436
436
  }
437
437
  //#endregion
438
438
  //#region src/native/components/CardHeader.tsx
439
- function ke({ eyebrow: e, title: t, titleVariant: n = "heading.xl", description: r, trailing: i, style: a, ...o }) {
440
- let { theme: s, scales: c } = K();
439
+ function ke({ eyebrow: e, title: t, titleVariant: n = "heading.xl", titleLeading: r, description: i, trailing: a, tone: o = "default", style: s, ...c }) {
440
+ let { theme: l, scales: u } = K(), d = o === "on-primary" ? l.text["on-media"] : l.text["accent-primary"], f = o === "on-primary" ? l.text["on-media"] : l.text["high-emphasis"], p = o === "on-primary" ? l.text["on-media-secondary"] : l.text["medium-emphasis"];
441
441
  return /* @__PURE__ */ D(W, {
442
442
  style: [{
443
443
  flexDirection: "row",
444
444
  alignItems: "flex-start",
445
445
  justifyContent: "space-between",
446
- gap: c.spacing.scale[2]
447
- }, a],
448
- ...o,
446
+ gap: u.spacing.scale[2]
447
+ }, s],
448
+ ...c,
449
449
  children: [/* @__PURE__ */ D(W, {
450
450
  style: { flex: 1 },
451
451
  children: [
452
452
  e && /* @__PURE__ */ E(H, {
453
453
  style: [q("label.sm"), {
454
- color: s.text["accent-primary"],
455
- marginBottom: c.spacing.scale[1]
454
+ color: d,
455
+ marginBottom: u.spacing.scale[1]
456
456
  }],
457
457
  children: e
458
458
  }),
459
- /* @__PURE__ */ E(H, {
460
- style: [q(n), { color: s.text["high-emphasis"] }],
459
+ r ? /* @__PURE__ */ D(W, {
460
+ style: {
461
+ flexDirection: "row",
462
+ alignItems: "center",
463
+ gap: u.spacing.scale[1]
464
+ },
465
+ children: [r, /* @__PURE__ */ E(H, {
466
+ style: [q(n), {
467
+ color: f,
468
+ flexShrink: 1
469
+ }],
470
+ children: t
471
+ })]
472
+ }) : /* @__PURE__ */ E(H, {
473
+ style: [q(n), { color: f }],
461
474
  children: t
462
475
  }),
463
- r && /* @__PURE__ */ E(H, {
476
+ i && /* @__PURE__ */ E(H, {
464
477
  style: [q("body.md"), {
465
- color: s.text["medium-emphasis"],
466
- marginTop: c.spacing.scale[1]
478
+ color: p,
479
+ marginTop: u.spacing.scale[1]
467
480
  }],
468
- children: r
481
+ children: i
469
482
  })
470
483
  ]
471
- }), i]
484
+ }), a]
472
485
  });
473
486
  }
474
487
  //#endregion
@@ -6,8 +6,15 @@ export interface CardHeaderProps extends ViewProps {
6
6
  title: string;
7
7
  /** 既定 heading.xl */
8
8
  titleVariant?: TypoVariant;
9
+ /**
10
+ * 見出し先頭に添える装飾アイコン等。タップ可能要素は置かない
11
+ * (押下は Card/親側の責務。ここは視覚的な装飾専用スロット)。
12
+ */
13
+ titleLeading?: React.ReactNode;
9
14
  description?: string;
10
15
  trailing?: React.ReactNode;
16
+ /** 画像/グラデーション等の media 上に載せる場合は "on-primary"。既定 "default" */
17
+ tone?: "default" | "on-primary";
11
18
  }
12
19
  /** カード冒頭の eyebrow+見出し+説明。余白(4px/4px)を内蔵し利用側の mt-* 手書きを不要にする。 */
13
- export declare function CardHeader({ eyebrow, title, titleVariant, description, trailing, style, ...rest }: CardHeaderProps): React.JSX.Element;
20
+ export declare function CardHeader({ eyebrow, title, titleVariant, titleLeading, description, trailing, tone, style, ...rest }: CardHeaderProps): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ksk-design-system",
3
- "version": "1.53.0",
3
+ "version": "1.55.0",
4
4
  "type": "module",
5
5
  "description": "KSK Design System — フリーランス向けマルチテーマ対応デザインシステム",
6
6
  "license": "MIT",