@kouji-ui/core 0.3.0 → 0.5.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/core",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Headless Angular 21 UI primitives — directives over CDK with WCAG 2.1 AAA semantics and zero CSS.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -9008,11 +9008,15 @@ declare class KjFieldHelp {
9008
9008
  *
9009
9009
  * Carries `role="alert"` + `aria-live="polite"` so newly-shown errors
9010
9010
  * are announced. Hidden via `[hidden]` when the field is not in error
9011
- * state.
9011
+ * state — unless `kjFieldErrorReserve` is set, in which case the element
9012
+ * keeps its box (`data-hidden` + `visibility: hidden` styling) so error
9013
+ * text can appear and disappear without shifting the surrounding layout.
9012
9014
  *
9013
9015
  * @example
9014
9016
  * ```html
9015
9017
  * <span kjFieldError>Please enter a valid email.</span>
9018
+ * <!-- Reserve the line so showing the error never moves the layout: -->
9019
+ * <span kjFieldError kjFieldErrorReserve>Please enter a valid email.</span>
9016
9020
  * ```
9017
9021
  * @doc-category Core/Inputs
9018
9022
  * @doc
@@ -9022,10 +9026,16 @@ declare class KjFieldError {
9022
9026
  /** @internal */ readonly ctx: _kouji_ui_core.KjFieldContext;
9023
9027
  /** Override the auto-minted host id. */
9024
9028
  readonly kjFieldErrorId: _angular_core.InputSignal<string | undefined>;
9029
+ /**
9030
+ * When set, the element keeps its layout box while the field is valid
9031
+ * (`visibility: hidden` via `data-hidden` instead of `display: none`),
9032
+ * so the error appearing never repositions the fields around it.
9033
+ */
9034
+ readonly kjFieldErrorReserve: _angular_core.InputSignalWithTransform<boolean, unknown>;
9025
9035
  /** @internal */ readonly id: () => string;
9026
9036
  constructor();
9027
9037
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<KjFieldError, never>;
9028
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<KjFieldError, "[kjFieldError]", never, { "kjFieldErrorId": { "alias": "kjFieldErrorId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9038
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<KjFieldError, "[kjFieldError]", never, { "kjFieldErrorId": { "alias": "kjFieldErrorId"; "required": false; "isSignal": true; }; "kjFieldErrorReserve": { "alias": "kjFieldErrorReserve"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9029
9039
  }
9030
9040
 
9031
9041
  /**