ksk-design-system 1.53.0 → 1.54.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.54.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.54.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,34 +436,34 @@ 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", description: r, trailing: i, tone: a = "default", style: o, ...s }) {
440
+ let { theme: c, scales: l } = K(), u = a === "on-primary" ? c.text["on-media"] : c.text["accent-primary"], d = a === "on-primary" ? c.text["on-media"] : c.text["high-emphasis"], f = a === "on-primary" ? c.text["on-media-secondary"] : c.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: l.spacing.scale[2]
447
+ }, o],
448
+ ...s,
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: u,
455
+ marginBottom: l.spacing.scale[1]
456
456
  }],
457
457
  children: e
458
458
  }),
459
459
  /* @__PURE__ */ E(H, {
460
- style: [q(n), { color: s.text["high-emphasis"] }],
460
+ style: [q(n), { color: d }],
461
461
  children: t
462
462
  }),
463
463
  r && /* @__PURE__ */ E(H, {
464
464
  style: [q("body.md"), {
465
- color: s.text["medium-emphasis"],
466
- marginTop: c.spacing.scale[1]
465
+ color: f,
466
+ marginTop: l.spacing.scale[1]
467
467
  }],
468
468
  children: r
469
469
  })
@@ -8,6 +8,8 @@ export interface CardHeaderProps extends ViewProps {
8
8
  titleVariant?: TypoVariant;
9
9
  description?: string;
10
10
  trailing?: React.ReactNode;
11
+ /** 画像/グラデーション等の media 上に載せる場合は "on-primary"。既定 "default" */
12
+ tone?: "default" | "on-primary";
11
13
  }
12
14
  /** カード冒頭の eyebrow+見出し+説明。余白(4px/4px)を内蔵し利用側の mt-* 手書きを不要にする。 */
13
- export declare function CardHeader({ eyebrow, title, titleVariant, description, trailing, style, ...rest }: CardHeaderProps): React.JSX.Element;
15
+ export declare function CardHeader({ eyebrow, title, titleVariant, 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.54.0",
4
4
  "type": "module",
5
5
  "description": "KSK Design System — フリーランス向けマルチテーマ対応デザインシステム",
6
6
  "license": "MIT",