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

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.27",
4
4
  "tag": "next",
5
5
  "description": "eUI EDS components package",
6
6
  "homepage": "https://eui.ecdevops.eu",
@@ -40,7 +40,7 @@ declare class EdsChipModel implements EdsChipData {
40
40
  /**
41
41
  * Local narrowed color union — the chip's color contract.
42
42
  */
43
- type EdsChipColor = 'neutral' | 'info' | 'success' | 'warning' | 'critical';
43
+ type EdsChipColor = 'neutral' | 'primary' | 'info' | 'success' | 'warning' | 'critical';
44
44
  /**
45
45
  * Local narrowed size union — the chip's size contract.
46
46
  */
@@ -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":[]}
@@ -12,6 +12,8 @@ declare class EdsOverlay {
12
12
  fixedWidth: i0.InputSignal<string>;
13
13
  /** Enables automatic closing when clicking outside the overlay. */
14
14
  hasClosedOnClickOutside: i0.InputSignalWithTransform<boolean, unknown>;
15
+ /** Shows a dimmed backdrop behind the overlay panel. Off by default. */
16
+ hasBackdrop: i0.InputSignalWithTransform<boolean, unknown>;
15
17
  /** Applies highlighted visual styling. */
16
18
  isHighlighted: i0.InputSignalWithTransform<boolean, unknown>;
17
19
  /** Emitted when the overlay's active state changes (typically false for close requests). */
@@ -20,7 +22,7 @@ declare class EdsOverlay {
20
22
  onEscape(): void;
21
23
  onBackdropClick(): void;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<EdsOverlay, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<EdsOverlay, "eds-overlay", never, { "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "fixedWidth": { "alias": "fixedWidth"; "required": false; "isSignal": true; }; "hasClosedOnClickOutside": { "alias": "hasClosedOnClickOutside"; "required": false; "isSignal": true; }; "isHighlighted": { "alias": "isHighlighted"; "required": false; "isSignal": true; }; }, { "activeState": "activeState"; }, never, ["eds-overlay-header", "eds-overlay-content", "eds-overlay-footer", "*"], true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<EdsOverlay, "eds-overlay", never, { "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "fixedWidth": { "alias": "fixedWidth"; "required": false; "isSignal": true; }; "hasClosedOnClickOutside": { "alias": "hasClosedOnClickOutside"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "isHighlighted": { "alias": "isHighlighted"; "required": false; "isSignal": true; }; }, { "activeState": "activeState"; }, never, ["eds-overlay-header", "eds-overlay-content", "eds-overlay-footer", "*"], true, never>;
24
26
  }
25
27
 
26
28
  declare class EdsOverlayHeader {
@@ -1 +1 @@
1
- {"version":3,"file":"eui-eds-eds-overlay.d.ts","sources":["../../eds-overlay/eds-overlay.ts","../../eds-overlay/eds-overlay-header.ts","../../eds-overlay/eds-overlay-header-label.ts","../../eds-overlay/eds-overlay-header-sublabel.ts","../../eds-overlay/eds-overlay-header-action-items.ts","../../eds-overlay/eds-overlay-content.ts","../../eds-overlay/eds-overlay-footer.ts","../../eds-overlay/index.ts"],"mappings":";;AAGM,KAAM,kBAAkB;AAE9B,cAaa,UAAU;;AAErB,cAAQA,EAAA,CAAA,wBAAA;;AAGR,cAAQA,EAAA,CAAA,WAAA,CAAA,kBAAA;;AAGR,WAAKA,EAAA,CAAA,WAAA;;AAGL,gBAAUA,EAAA,CAAA,WAAA;;AAGV,6BAAuBA,EAAA,CAAA,wBAAA;;AAGvB,mBAAaA,EAAA,CAAA,wBAAA;;AAGb,iBAAWA,EAAA,CAAA,gBAAA;AAEX,iBAAWA,EAAA,CAAA,MAAA;AAWX;AAMA;yCAvCW,UAAU;2CAAV,UAAU;AA4CtB;;AC3DD,cAMa,gBAAgB;;AAE3B,gBAAUA,EAAA,CAAA,gBAAA;AAEV;yCAJW,gBAAgB;2CAAhB,gBAAgB;AAO5B;;ACdD,cAKa,qBAAqB;yCAArB,qBAAqB;2CAArB,qBAAqB;AAAG;;ACLrC,cAKa,wBAAwB;yCAAxB,wBAAwB;2CAAxB,wBAAwB;AAAG;;ACLxC,cAKa,2BAA2B;yCAA3B,2BAA2B;2CAA3B,2BAA2B;AAAG;;ACL3C,cAKa,iBAAiB;yCAAjB,iBAAiB;2CAAjB,iBAAiB;AAAG;;ACLjC,cAKa,gBAAgB;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAAG;;ACYhC;AACA,cAAa,WAAW,mBAAA,UAAA,SAAA,gBAAA,SAAA,qBAAA,SAAA,wBAAA,SAAA,2BAAA,SAAA,iBAAA,SAAA,gBAAA;;;;","names":["_angular_core"]}
1
+ {"version":3,"file":"eui-eds-eds-overlay.d.ts","sources":["../../eds-overlay/eds-overlay.ts","../../eds-overlay/eds-overlay-header.ts","../../eds-overlay/eds-overlay-header-label.ts","../../eds-overlay/eds-overlay-header-sublabel.ts","../../eds-overlay/eds-overlay-header-action-items.ts","../../eds-overlay/eds-overlay-content.ts","../../eds-overlay/eds-overlay-footer.ts","../../eds-overlay/index.ts"],"mappings":";;AAGM,KAAM,kBAAkB;AAE9B,cAaa,UAAU;;AAErB,cAAQA,EAAA,CAAA,wBAAA;;AAGR,cAAQA,EAAA,CAAA,WAAA,CAAA,kBAAA;;AAGR,WAAKA,EAAA,CAAA,WAAA;;AAGL,gBAAUA,EAAA,CAAA,WAAA;;AAGV,6BAAuBA,EAAA,CAAA,wBAAA;;AAGvB,iBAAWA,EAAA,CAAA,wBAAA;;AAGX,mBAAaA,EAAA,CAAA,wBAAA;;AAGb,iBAAWA,EAAA,CAAA,gBAAA;AAEX,iBAAWA,EAAA,CAAA,MAAA;AAWX;AAMA;yCA1CW,UAAU;2CAAV,UAAU;AA+CtB;;AC9DD,cAMa,gBAAgB;;AAE3B,gBAAUA,EAAA,CAAA,gBAAA;AAEV;yCAJW,gBAAgB;2CAAhB,gBAAgB;AAO5B;;ACdD,cAKa,qBAAqB;yCAArB,qBAAqB;2CAArB,qBAAqB;AAAG;;ACLrC,cAKa,wBAAwB;yCAAxB,wBAAwB;2CAAxB,wBAAwB;AAAG;;ACLxC,cAKa,2BAA2B;yCAA3B,2BAA2B;2CAA3B,2BAA2B;AAAG;;ACL3C,cAKa,iBAAiB;yCAAjB,iBAAiB;2CAAjB,iBAAiB;AAAG;;ACLjC,cAKa,gBAAgB;yCAAhB,gBAAgB;2CAAhB,gBAAgB;AAAG;;ACYhC;AACA,cAAa,WAAW,mBAAA,UAAA,SAAA,gBAAA,SAAA,qBAAA,SAAA,wBAAA,SAAA,2BAAA,SAAA,iBAAA,SAAA,gBAAA;;;;","names":["_angular_core"]}