@praxisui/core 10.0.0-rc.42 → 10.0.0-rc.43

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/README.md CHANGED
@@ -470,8 +470,11 @@ Hosts should load the icon fonts they use. Without the classic Material Icons fo
470
470
  Use `PraxisIconButtonComponent` for icon-only actions. It keeps the native
471
471
  `button` contract, centers the glyph, and preserves a 44px pointer target even
472
472
  when the visible surface is compact. It accepts the same `mi:`, `mso:`, `msr:`
473
- and `mss:` icon-family prefixes as `PraxisIconDirective`; unprefixed names keep
474
- the legacy Material Icons behavior.
473
+ and `mss:` icon-family prefixes as `PraxisIconDirective`; explicit prefixes
474
+ always select their named family. Unprefixed names follow the configured
475
+ `MatIconRegistry` default for Material Icons or Symbols (outlined, rounded, or
476
+ sharp). Without a configured Symbols default, they retain legacy Material Icons
477
+ behavior; `providePraxisIconDefaults()` selects Symbols Outlined.
475
478
 
476
479
  ```ts
477
480
  import { Component, signal } from "@angular/core";
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-11-01T13:59:56.156Z",
3
+ "generatedAt": "2026-11-01T16:17:35.480Z",
4
4
  "packageName": "@praxisui/core",
5
- "packageVersion": "10.0.0-rc.42",
5
+ "packageVersion": "10.0.0-rc.43",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 4,
@@ -37231,11 +37231,33 @@ class PraxisIconButtonComponent {
37231
37231
  pressed = input(null, ...(ngDevMode ? [{ debugName: "pressed" }] : /* istanbul ignore next */ []));
37232
37232
  /** Replaces the glyph with a centered progress indicator and exposes aria-busy. */
37233
37233
  busy = input(false, { ...(ngDevMode ? { debugName: "busy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
37234
- /** Preserves legacy unprefixed Material Icons while accepting Praxis icon-family prefixes. */
37234
+ iconRegistry = inject(MatIconRegistry);
37235
+ defaultAuxiliaryClasses = this.iconRegistry.getDefaultFontSetClass()
37236
+ .filter((name) => !['material-icons', 'material-symbols-outlined', 'material-symbols-rounded', 'material-symbols-sharp'].includes(name))
37237
+ .join(' ');
37238
+ /** Explicit families win; unprefixed names use the configured Material font family. */
37235
37239
  resolvedIcon = computed(() => {
37236
37240
  const icon = this.icon().trim();
37237
- return icon.includes(':') ? icon : `mi:${icon}`;
37241
+ if (icon.includes(':'))
37242
+ return icon;
37243
+ const defaults = this.iconRegistry.getDefaultFontSetClass();
37244
+ const family = defaults.includes('material-symbols-rounded') ? 'msr'
37245
+ : defaults.includes('material-symbols-sharp') ? 'mss'
37246
+ : defaults.includes('material-symbols-outlined') ? 'mso'
37247
+ : 'mi';
37248
+ return `${family}:${icon}`;
37238
37249
  }, ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : /* istanbul ignore next */ []));
37250
+ /** Keep MatIcon's own font class aligned with the directive's explicit family. */
37251
+ resolvedFontClass = computed(() => {
37252
+ const prefix = this.resolvedIcon().split(':', 1)[0].toLowerCase();
37253
+ switch (prefix) {
37254
+ case 'ms':
37255
+ case 'mso': return 'material-symbols-outlined';
37256
+ case 'msr': return 'material-symbols-rounded';
37257
+ case 'mss': return 'material-symbols-sharp';
37258
+ default: return 'material-icons';
37259
+ }
37260
+ }, ...(ngDevMode ? [{ debugName: "resolvedFontClass" }] : /* istanbul ignore next */ []));
37239
37261
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisIconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
37240
37262
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisIconButtonComponent, isStandalone: true, selector: "button[praxisIconButton]", inputs: { icon: { classPropertyName: "icon", publicName: "praxisIconButton", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, presentation: { classPropertyName: "presentation", publicName: "presentation", isSignal: true, isRequired: false, transformFunction: null }, pressed: { classPropertyName: "pressed", publicName: "pressed", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, properties: { "attr.aria-pressed": "pressed()", "attr.aria-busy": "busy() ? \"true\" : null", "class.praxis-icon-button--dense": "size() === \"dense\"", "class.praxis-icon-button--compact": "size() === \"compact\"", "class.praxis-icon-button--standard": "size() === \"standard\"", "class.praxis-icon-button--plain": "appearance() === \"plain\"", "class.praxis-icon-button--filled": "appearance() === \"filled\"", "class.praxis-icon-button--pressed": "pressed() === true", "class.praxis-icon-button--busy": "busy()" }, classAttribute: "praxis-icon-button" }, ngImport: i0, template: `
37241
37263
  <span class="praxis-icon-button__surface" aria-hidden="true">
@@ -37244,7 +37266,7 @@ class PraxisIconButtonComponent {
37244
37266
  } @else if (presentation() === 'projected') {
37245
37267
  <span class="praxis-icon-button__projected"><ng-content></ng-content></span>
37246
37268
  } @else {
37247
- <mat-icon [praxisIcon]="resolvedIcon()"></mat-icon>
37269
+ <mat-icon [class]="defaultAuxiliaryClasses" [fontSet]="resolvedFontClass()" [praxisIcon]="resolvedIcon()"></mat-icon>
37248
37270
  }
37249
37271
  </span>
37250
37272
  `, isInline: true, styles: [":host{--praxis-icon-button-target-size: 44px;--praxis-icon-button-surface-size: 40px;--praxis-icon-button-icon-size: 22px;--praxis-icon-button-filled-background: var(--md-sys-color-primary);--praxis-icon-button-filled-foreground: var(--md-sys-color-on-primary);appearance:none;box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 auto;width:var(--praxis-icon-button-target-size);min-width:var(--praxis-icon-button-target-size);height:var(--praxis-icon-button-target-size);margin:0;padding:0;border:0;border-radius:999px;color:var(--md-sys-color-on-surface-variant);background:transparent;cursor:pointer;line-height:1;-webkit-tap-highlight-color:transparent}:host(.praxis-icon-button--compact){--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 20px}:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 36px;--praxis-icon-button-surface-size: 32px;--praxis-icon-button-icon-size: 18px}.praxis-icon-button__surface{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-surface-size);height:var(--praxis-icon-button-surface-size);border-radius:999px;color:inherit;background:transparent;transition:background-color .14s ease,color .14s ease,transform .1s ease}mat-icon{display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);margin:0;font-size:var(--praxis-icon-button-icon-size);line-height:var(--praxis-icon-button-icon-size)}.praxis-icon-button__spinner{box-sizing:border-box;display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:999px;animation:praxis-icon-button-spin .72s linear infinite}.praxis-icon-button__projected{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);min-width:0;overflow:hidden;line-height:var(--praxis-icon-button-icon-size)}@keyframes praxis-icon-button-spin{to{transform:rotate(360deg)}}:host(:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 10%,transparent)}:host(:active:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 16%,transparent);transform:scale(.96)}:host(.praxis-icon-button--pressed:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 14%,transparent)}:host(:focus-visible){outline:2px solid var(--md-sys-color-primary);outline-offset:2px}:host(.praxis-icon-button--filled){color:var(--praxis-icon-button-filled-foreground)}:host(.praxis-icon-button--filled) .praxis-icon-button__surface{background:var(--praxis-icon-button-filled-background);box-shadow:0 4px 12px color-mix(in srgb,var(--praxis-icon-button-filled-background) 24%,transparent)}:host(.praxis-icon-button--filled:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,var(--praxis-icon-button-filled-background) 88%,var(--praxis-icon-button-filled-foreground))}:host(:disabled){cursor:default;opacity:.38}@media(forced-colors:active){.praxis-icon-button__surface{border:1px solid ButtonText}:host(:focus-visible){outline-color:Highlight}}@media(prefers-reduced-motion:reduce){.praxis-icon-button__surface{transition:none}.praxis-icon-button__spinner{animation:none}}@media(pointer:coarse){:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 44px}}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -37258,7 +37280,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
37258
37280
  } @else if (presentation() === 'projected') {
37259
37281
  <span class="praxis-icon-button__projected"><ng-content></ng-content></span>
37260
37282
  } @else {
37261
- <mat-icon [praxisIcon]="resolvedIcon()"></mat-icon>
37283
+ <mat-icon [class]="defaultAuxiliaryClasses" [fontSet]="resolvedFontClass()" [praxisIcon]="resolvedIcon()"></mat-icon>
37262
37284
  }
37263
37285
  </span>
37264
37286
  `, host: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/core",
3
- "version": "10.0.0-rc.42",
3
+ "version": "10.0.0-rc.43",
4
4
  "description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^21.0.0",
@@ -21305,8 +21305,12 @@ declare class PraxisIconButtonComponent {
21305
21305
  readonly pressed: i0.InputSignal<boolean | null>;
21306
21306
  /** Replaces the glyph with a centered progress indicator and exposes aria-busy. */
21307
21307
  readonly busy: i0.InputSignalWithTransform<boolean, unknown>;
21308
- /** Preserves legacy unprefixed Material Icons while accepting Praxis icon-family prefixes. */
21308
+ private readonly iconRegistry;
21309
+ protected readonly defaultAuxiliaryClasses: string;
21310
+ /** Explicit families win; unprefixed names use the configured Material font family. */
21309
21311
  protected readonly resolvedIcon: i0.Signal<string>;
21312
+ /** Keep MatIcon's own font class aligned with the directive's explicit family. */
21313
+ protected readonly resolvedFontClass: i0.Signal<"material-symbols-outlined" | "material-icons" | "material-symbols-rounded" | "material-symbols-sharp">;
21310
21314
  static ɵfac: i0.ɵɵFactoryDeclaration<PraxisIconButtonComponent, never>;
21311
21315
  static ɵcmp: i0.ɵɵComponentDeclaration<PraxisIconButtonComponent, "button[praxisIconButton]", never, { "icon": { "alias": "praxisIconButton"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "presentation": { "alias": "presentation"; "required": false; "isSignal": true; }; "pressed": { "alias": "pressed"; "required": false; "isSignal": true; }; "busy": { "alias": "busy"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
21312
21316
  }