@cosmicdrift/kumiko-renderer 0.137.0 → 0.139.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/primitives.tsx +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-renderer",
3
- "version": "0.137.0",
3
+ "version": "0.139.0",
4
4
  "description": "Platform-agnostic React renderer for Kumiko screens. Contains the shared logic — primitives-contract, hooks, KumikoScreen, navigation & SSE abstractions — that any platform-specific renderer (web, native) composes. No DOM, no EventSource, no react-dom.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -15,8 +15,8 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@cosmicdrift/kumiko-framework": "0.137.0",
19
- "@cosmicdrift/kumiko-headless": "0.137.0",
18
+ "@cosmicdrift/kumiko-framework": "0.139.0",
19
+ "@cosmicdrift/kumiko-headless": "0.139.0",
20
20
  "react": "^19.2.6"
21
21
  },
22
22
  "devDependencies": {
@@ -69,6 +69,9 @@ export type ButtonProps = {
69
69
  * Save, "danger" für Delete, "secondary" für Confirm-State,
70
70
  * "link" für Inline-Aktionen im Fließtext (kein BG, underline). */
71
71
  readonly variant?: "primary" | "secondary" | "danger" | "link";
72
+ /** Größe — default="md". "sm" für kompakte Inline-Aktionen (Toolbar,
73
+ * Listen-Zeilen), "icon" für quadratische Icon-only-Buttons. */
74
+ readonly size?: "sm" | "md" | "icon";
72
75
  readonly children: ReactNode;
73
76
  readonly testId?: string;
74
77
  };
@@ -181,6 +184,19 @@ export type InputProps =
181
184
  readonly required?: boolean;
182
185
  readonly hasError?: boolean;
183
186
  }
187
+ | {
188
+ readonly kind: "range";
189
+ readonly id: string;
190
+ readonly name: string;
191
+ readonly value: number;
192
+ readonly onChange: (v: number) => void;
193
+ readonly min: number;
194
+ readonly max: number;
195
+ readonly step?: number;
196
+ readonly disabled?: boolean;
197
+ readonly required?: boolean;
198
+ readonly hasError?: boolean;
199
+ }
184
200
  | {
185
201
  readonly kind: "boolean";
186
202
  readonly id: string;