codexly-ui 0.9.0 → 0.10.0
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 +36 -26
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +9 -2
package/package.json
CHANGED
package/types/codexly-ui.d.ts
CHANGED
|
@@ -2248,6 +2248,8 @@ type ClxToastType = ClxColor;
|
|
|
2248
2248
|
interface ClxToastAction {
|
|
2249
2249
|
label: string;
|
|
2250
2250
|
onClick: () => void;
|
|
2251
|
+
/** Visual weight for this action button. Defaults to 'link' to match the single-action look. */
|
|
2252
|
+
variant?: 'link' | 'solid' | 'outline' | 'ghost';
|
|
2251
2253
|
}
|
|
2252
2254
|
interface ClxToastOptions {
|
|
2253
2255
|
type?: ClxToastType;
|
|
@@ -2261,13 +2263,17 @@ interface ClxToastOptions {
|
|
|
2261
2263
|
animationIn?: ClxAnimateName;
|
|
2262
2264
|
animationOut?: ClxAnimateName;
|
|
2263
2265
|
animationDuration?: number;
|
|
2266
|
+
/** Single action — kept for backward compatibility, equivalent to actions: [action]. */
|
|
2264
2267
|
action?: ClxToastAction;
|
|
2268
|
+
/** Multiple action buttons (e.g. Approve/Reject). Takes precedence over `action` when both are set. */
|
|
2269
|
+
actions?: ClxToastAction[];
|
|
2265
2270
|
}
|
|
2266
|
-
interface ClxToastEntry extends Required<Omit<ClxToastOptions, 'title' | 'action' | 'icon'>> {
|
|
2271
|
+
interface ClxToastEntry extends Required<Omit<ClxToastOptions, 'title' | 'action' | 'actions' | 'icon'>> {
|
|
2267
2272
|
id: string;
|
|
2268
2273
|
title?: string;
|
|
2269
2274
|
icon?: string;
|
|
2270
2275
|
action?: ClxToastAction;
|
|
2276
|
+
actions?: ClxToastAction[];
|
|
2271
2277
|
removing: boolean;
|
|
2272
2278
|
}
|
|
2273
2279
|
|
|
@@ -2288,12 +2294,13 @@ declare class ClxToastComponent implements OnInit, OnDestroy {
|
|
|
2288
2294
|
protected readonly _colorClass: _angular_core.Signal<string>;
|
|
2289
2295
|
protected readonly _progressColor: _angular_core.Signal<string>;
|
|
2290
2296
|
protected readonly _buttonColor: _angular_core.Signal<codexly_ui.ClxColorInput>;
|
|
2297
|
+
protected readonly _actions: _angular_core.Signal<ClxToastAction[]>;
|
|
2291
2298
|
private get _card();
|
|
2292
2299
|
ngOnInit(): void;
|
|
2293
2300
|
ngOnDestroy(): void;
|
|
2294
2301
|
protected _onMouseEnter(): void;
|
|
2295
2302
|
protected _onMouseLeave(): void;
|
|
2296
|
-
protected _onAction(): void;
|
|
2303
|
+
protected _onAction(action: ClxToastAction): void;
|
|
2297
2304
|
playExitAnimation(): Promise<void>;
|
|
2298
2305
|
private _startTimer;
|
|
2299
2306
|
private _stopTimer;
|