@kouji-ui/components 0.5.0 → 0.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kouji-ui/components",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Opinionated styled Angular components built on @kouji-ui/core directives. Themed at runtime via @kouji-ui/themes.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -3305,13 +3305,24 @@ declare class KjFieldHelpComponent {
3305
3305
  }
3306
3306
  /**
3307
3307
  * Styled wrapper around `KjFieldError`.
3308
+ *
3309
+ * With `kjReserve`, the error line keeps its box while the field is valid
3310
+ * (invisible, one text line tall) so errors appearing / disappearing never
3311
+ * shift the form layout.
3312
+ *
3313
+ * @example
3314
+ * ```html
3315
+ * <kj-field-error kjReserve>Please enter a valid email.</kj-field-error>
3316
+ * ```
3308
3317
  * @doc-category Library/Data input
3309
3318
  * @doc
3310
3319
  * @doc-name field
3311
3320
  */
3312
3321
  declare class KjFieldErrorComponent {
3322
+ /** Keep the error line's box while valid, so showing it never moves the layout. */
3323
+ readonly kjReserve: _angular_core.InputSignalWithTransform<boolean, unknown>;
3313
3324
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<KjFieldErrorComponent, never>;
3314
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<KjFieldErrorComponent, "kj-field-error", never, {}, {}, never, ["*"], true, never>;
3325
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<KjFieldErrorComponent, "kj-field-error", never, { "kjReserve": { "alias": "kjReserve"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
3315
3326
  }
3316
3327
  /**
3317
3328
  * Styled wrapper around `KjFieldGroup`. Lays out an input with optional