codexly-ui 0.12.8 → 0.12.9
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/fesm2022/codexly-ui.mjs +47 -34
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +7 -1
package/package.json
CHANGED
package/types/codexly-ui.d.ts
CHANGED
|
@@ -134,6 +134,12 @@ declare class ClxButtonComponent {
|
|
|
134
134
|
private readonly _themeSvc;
|
|
135
135
|
readonly variant: _angular_core.InputSignal<ClxButtonVariant>;
|
|
136
136
|
readonly color: _angular_core.InputSignal<ClxColorInput | undefined>;
|
|
137
|
+
/** Marks a button as the secondary action in a pair (e.g. "Cancelar" next to "Guardar") — resolves
|
|
138
|
+
* the theme's secondaryColor instead of primaryColor when `color` isn't explicitly passed, falling
|
|
139
|
+
* back to primaryColor if the theme has no secondaryColor of its own. `[color]` always wins over
|
|
140
|
+
* this when set, same precedence every other themed zone in this library follows. Named `emphasis`
|
|
141
|
+
* (not `role`) to avoid colliding with the native HTML `role` ARIA attribute. */
|
|
142
|
+
readonly emphasis: _angular_core.InputSignal<"primary" | "secondary">;
|
|
137
143
|
/** Overrides only the text color, independent of `color`/`variant` — e.g. a solid button on an
|
|
138
144
|
* unusual background shade (bright yellow) where the variant's own resolved text color (white)
|
|
139
145
|
* reads poorly and a themed text tone is needed instead. */
|
|
@@ -177,7 +183,7 @@ declare class ClxButtonComponent {
|
|
|
177
183
|
protected readonly _hostClass: _angular_core.Signal<string>;
|
|
178
184
|
protected _onRipple(event: Event): void;
|
|
179
185
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxButtonComponent, never>;
|
|
180
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxButtonComponent, "button[clx-button], a[clx-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "textColor": { "alias": "textColor"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "badgeColor": { "alias": "badgeColor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
186
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxButtonComponent, "button[clx-button], a[clx-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "emphasis": { "alias": "emphasis"; "required": false; "isSignal": true; }; "textColor": { "alias": "textColor"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "badgeColor": { "alias": "badgeColor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
181
187
|
}
|
|
182
188
|
|
|
183
189
|
type ClxButtonGroupShape = 'flat' | 'circular';
|