@eui/eds 22.0.0-alpha.25 → 22.0.0-alpha.26

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": "@eui/eds",
3
- "version": "22.0.0-alpha.25",
3
+ "version": "22.0.0-alpha.26",
4
4
  "tag": "next",
5
5
  "description": "eUI EDS components package",
6
6
  "homepage": "https://eui.ecdevops.eu",
@@ -1,24 +1,40 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import * as i1 from '@eui/eds/shared';
3
- import { EdsColorDirective } from '@eui/eds/shared';
4
2
 
3
+ /**
4
+ * Local narrowed color union — the label's color contract.
5
+ * `neutral` is the default; `critical` colors the label for error context.
6
+ */
7
+ type EdsLabelColor = 'neutral' | 'critical';
8
+ /**
9
+ * A form label applied to `label`, `span`, or `div` elements via the `edsLabel` attribute.
10
+ * Supports a semantic color (`neutral` default, `critical` for errors) reflected as a host
11
+ * attribute, plus a required marker.
12
+ *
13
+ * Usage:
14
+ * ```html
15
+ * <label edsLabel for="name">Name</label>
16
+ * <label edsLabel edsRequired for="email">Email</label>
17
+ * <span edsLabel color="critical">This field is required</span>
18
+ * ```
19
+ */
5
20
  declare class EdsLabel {
21
+ /**
22
+ * Semantic color of the label.
23
+ * @default 'neutral'
24
+ */
25
+ color: _angular_core.InputSignal<EdsLabelColor>;
6
26
  /**
7
27
  * Marks the label as required (appends a red asterisk).
8
28
  * @default false
9
29
  */
10
30
  edsRequired: _angular_core.InputSignalWithTransform<boolean, unknown>;
11
- protected colorDirective: EdsColorDirective;
12
- /**
13
- * Computed host CSS classes based on current state.
14
- */
15
- hostClasses: _angular_core.Signal<string>;
16
31
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EdsLabel, never>;
17
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EdsLabel, "label[edsLabel], span[edsLabel], div[edsLabel]", never, { "edsRequired": { "alias": "edsRequired"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.EdsColorDirective; inputs: { "edsNeutral": "edsNeutral"; "edsCritical": "edsCritical"; "edsColorVariant": "edsColorVariant"; }; outputs: {}; }]>;
32
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EdsLabel, "label[edsLabel], span[edsLabel], div[edsLabel]", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "edsRequired": { "alias": "edsRequired"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
18
33
  }
19
34
 
20
35
  /** Convenience array for importing eds-label. */
21
36
  declare const EDS_LABEL: readonly [typeof EdsLabel];
22
37
 
23
38
  export { EDS_LABEL, EdsLabel };
39
+ export type { EdsLabelColor };
24
40
  //# sourceMappingURL=eui-eds-eds-label.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eui-eds-eds-label.d.ts","sources":["../../eds-label/eds-label.ts","../../eds-label/index.ts"],"mappings":";;;;AAWA,cAoBa,QAAQ;AACjB;;;AAGG;AACH,iBAAW,aAAA,CAAA,wBAAA;8BAEa,iBAAA;AAExB;;AAEG;AACH,iBAAW,aAAA,CAAA,MAAA;oDAZF,QAAQ;sDAAR,QAAQ,8LAAA,EAAA,CAAA,iBAAA;AAsBpB;;ACjDD;AACA,cAAa,SAAS,mBAAA,QAAA;;;;","names":[]}
1
+ {"version":3,"file":"eui-eds-eds-label.d.ts","sources":["../../eds-label/eds-label.ts","../../eds-label/index.ts"],"mappings":";;AAOA;;;AAGG;KACS,aAAa;AAEzB;;;;;;;;;;;AAWG;AACH,cAYa,QAAQ;AACjB;;;AAGG;AACH,WAAK,aAAA,CAAA,WAAA,CAAA,aAAA;AAEL;;;AAGG;AACH,iBAAW,aAAA,CAAA,wBAAA;oDAXF,QAAQ;sDAAR,QAAQ;AAYpB;;AC5CD;AACA,cAAa,SAAS,mBAAA,QAAA;;;;","names":[]}