@energycap/components 0.46.1 → 0.46.2

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": "@energycap/components",
3
- "version": "0.46.1",
3
+ "version": "0.46.2",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
@@ -545,6 +545,7 @@ $checkbox-indicator-size: $form-control-icon-size;
545
545
  cursor: pointer;
546
546
  display: flex;
547
547
  flex: 1 1 0%;
548
+ gap: 0.25rem;
548
549
  justify-content: center;
549
550
  line-height: 1.1em;
550
551
  margin-bottom: 0;
@@ -557,6 +558,10 @@ $checkbox-indicator-size: $form-control-icon-size;
557
558
  .ec-icon {
558
559
  color: inherit;
559
560
  }
561
+
562
+ &.is-selected {
563
+ color: var(--ec-color-interactive);
564
+ }
560
565
  }
561
566
 
562
567
  a {
@@ -3361,6 +3361,12 @@ declare class RadioButtonComponent extends FormControlBase implements AfterViewI
3361
3361
  * @default 'row'
3362
3362
  */
3363
3363
  direction?: RadioButtonDirection;
3364
+ /**
3365
+ * When true, only icons are displayed in toggle options — labels are hidden even if present on the option.
3366
+ * Only applies when type is 'toggle'.
3367
+ * @default false
3368
+ */
3369
+ iconOnly: boolean;
3364
3370
  /**
3365
3371
  * The name of the radio input element used to group radio elements
3366
3372
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio
@@ -3380,7 +3386,7 @@ declare class RadioButtonComponent extends FormControlBase implements AfterViewI
3380
3386
  ngOnInit(): void;
3381
3387
  ngAfterViewInit(): void;
3382
3388
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
3383
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "ec-radiobutton", never, { "type": { "alias": "type"; "required": false; }; "options": { "alias": "options"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
3389
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "ec-radiobutton", never, { "type": { "alias": "type"; "required": false; }; "options": { "alias": "options"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
3384
3390
  }
3385
3391
 
3386
3392
  interface ClickableElement {