@truenas/ui-components 0.1.7 → 0.1.8

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": "@truenas/ui-components",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -259,6 +259,11 @@ declare class TnIconComponent implements AfterViewInit {
259
259
  tooltip: _angular_core.InputSignal<string | undefined>;
260
260
  ariaLabel: _angular_core.InputSignal<string | undefined>;
261
261
  library: _angular_core.InputSignal<IconLibraryType | undefined>;
262
+ /**
263
+ * When true, the icon will expand to fill its container (100% width and height)
264
+ * instead of using the fixed size from the `size` input.
265
+ */
266
+ fullSize: _angular_core.InputSignal<boolean>;
262
267
  svgContainer: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
263
268
  iconResult: IconResult;
264
269
  private iconRegistry;
@@ -276,7 +281,7 @@ declare class TnIconComponent implements AfterViewInit {
276
281
  private generateTextAbbreviation;
277
282
  private cssClassExists;
278
283
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnIconComponent, never>;
279
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnIconComponent, "tn-icon", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "library": { "alias": "library"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
284
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnIconComponent, "tn-icon", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "library": { "alias": "library"; "required": false; "isSignal": true; }; "fullSize": { "alias": "fullSize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
280
285
  }
281
286
 
282
287
  declare class TnIconButtonComponent {
@@ -1029,6 +1034,19 @@ declare class TnIconHarness extends ComponentHarness {
1029
1034
  * ```
1030
1035
  */
1031
1036
  getColor(): Promise<string | null>;
1037
+ /**
1038
+ * Checks if the icon is in full-size mode.
1039
+ *
1040
+ * @returns Promise resolving to true if the icon is full-size, false otherwise.
1041
+ *
1042
+ * @example
1043
+ * ```typescript
1044
+ * const icon = await loader.getHarness(TnIconHarness);
1045
+ * const isFullSize = await icon.isFullSize();
1046
+ * expect(isFullSize).toBe(true);
1047
+ * ```
1048
+ */
1049
+ isFullSize(): Promise<boolean>;
1032
1050
  /**
1033
1051
  * Clicks the icon.
1034
1052
  *
@@ -1052,6 +1070,8 @@ interface IconHarnessFilters extends BaseHarnessFilters {
1052
1070
  library?: string;
1053
1071
  /** Filters by icon size (xs, sm, md, lg, xl). */
1054
1072
  size?: string;
1073
+ /** Filters by full-size mode. */
1074
+ fullSize?: boolean;
1055
1075
  }
1056
1076
 
1057
1077
  /**