@lmb-it/kitsconcerto-native 0.1.293 → 0.1.294

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/index.d.ts +10 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3316,7 +3316,16 @@ export interface IButtonProps<IconT> extends IStyleClasses {
3316
3316
  'type'?: 'submit' | 'button';
3317
3317
  ref?: Ref<any>;
3318
3318
  children?: string | ReactNode;
3319
- severity?: "secondary" | "success" | "info" | "warning" | "help" | "danger" | "contrast" | "brand" | undefined;
3319
+ /**
3320
+ * ⛔ THIS UNION IS NOT `Theme/severity.ts`'s `Severity`, AND THAT IS THE
3321
+ * TRAP. It is a separate inline list — it carries `contrast`, which the
3322
+ * theme type does not — so adding a member to `Severity` alone lets the
3323
+ * RESOLVER understand a value that the PROP still rejects. Theme-6A hit
3324
+ * exactly that: `primary-interactive` resolved correctly and
3325
+ * `<Button severity="primary-interactive">` would not compile.
3326
+ * Any future severity has to be added in both places, or unified.
3327
+ */
3328
+ severity?: "secondary" | "success" | "info" | "warning" | "help" | "danger" | "contrast" | "brand" | "primary-interactive" | undefined;
3320
3329
  icon?: IconT;
3321
3330
  iconPos?: 'left' | 'right' | 'top' | 'bottom';
3322
3331
  size?: 'sm' | 'md' | 'lg';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lmb-it/kitsconcerto-native",
3
- "version": "0.1.293",
3
+ "version": "0.1.294",
4
4
  "description": "KitsConcerto — Native (React Native) UI components",
5
5
  "main": "index.cjs",
6
6
  "module": "index.js",