@almadar/ui 4.50.18 → 4.50.20
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/dist/avl/index.cjs +1 -1
- package/dist/avl/index.js +1 -1
- package/dist/components/atoms/Button.d.ts +2 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/molecules/WizardNavigation.d.ts +16 -6
- package/dist/components/molecules/WizardProgress.d.ts +1 -1
- package/dist/docs/index.d.cts +2 -0
- package/dist/marketing/index.d.cts +2 -0
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/runtime/index.cjs +1 -1
- package/dist/runtime/index.js +1 -1
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -27390,7 +27390,7 @@ var init_WizardProgress = __esm({
|
|
|
27390
27390
|
stepClickEvent
|
|
27391
27391
|
}) => {
|
|
27392
27392
|
const eventBus = useEventBus();
|
|
27393
|
-
const normalizedSteps = steps.map(
|
|
27393
|
+
const normalizedSteps = (steps ?? []).map(
|
|
27394
27394
|
(s, i) => typeof s === "string" ? { id: `step-${i}`, title: s } : s
|
|
27395
27395
|
);
|
|
27396
27396
|
const totalSteps = normalizedSteps.length;
|
package/dist/avl/index.js
CHANGED
|
@@ -27344,7 +27344,7 @@ var init_WizardProgress = __esm({
|
|
|
27344
27344
|
stepClickEvent
|
|
27345
27345
|
}) => {
|
|
27346
27346
|
const eventBus = useEventBus();
|
|
27347
|
-
const normalizedSteps = steps.map(
|
|
27347
|
+
const normalizedSteps = (steps ?? []).map(
|
|
27348
27348
|
(s, i) => typeof s === "string" ? { id: `step-${i}`, title: s } : s
|
|
27349
27349
|
);
|
|
27350
27350
|
const totalSteps = normalizedSteps.length;
|
|
@@ -21,5 +21,7 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
21
21
|
actionPayload?: EventPayload;
|
|
22
22
|
/** Button label text (alternative to children for schema-driven rendering) */
|
|
23
23
|
label?: string;
|
|
24
|
+
/** Disable the button (greys out, blocks click events) */
|
|
25
|
+
disabled?: boolean;
|
|
24
26
|
}
|
|
25
27
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -22565,7 +22565,7 @@ var init_WizardProgress = __esm({
|
|
|
22565
22565
|
stepClickEvent
|
|
22566
22566
|
}) => {
|
|
22567
22567
|
const eventBus = useEventBus();
|
|
22568
|
-
const normalizedSteps = steps.map(
|
|
22568
|
+
const normalizedSteps = (steps ?? []).map(
|
|
22569
22569
|
(s, i) => typeof s === "string" ? { id: `step-${i}`, title: s } : s
|
|
22570
22570
|
);
|
|
22571
22571
|
const totalSteps = normalizedSteps.length;
|
package/dist/components/index.js
CHANGED
|
@@ -22519,7 +22519,7 @@ var init_WizardProgress = __esm({
|
|
|
22519
22519
|
stepClickEvent
|
|
22520
22520
|
}) => {
|
|
22521
22521
|
const eventBus = useEventBus();
|
|
22522
|
-
const normalizedSteps = steps.map(
|
|
22522
|
+
const normalizedSteps = (steps ?? []).map(
|
|
22523
22523
|
(s, i) => typeof s === "string" ? { id: `step-${i}`, title: s } : s
|
|
22524
22524
|
);
|
|
22525
22525
|
const totalSteps = normalizedSteps.length;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* Uses wireframe theme styling (high contrast, sharp edges).
|
|
9
9
|
*/
|
|
10
10
|
import React from "react";
|
|
11
|
+
import type { EventEmit } from "@almadar/core";
|
|
11
12
|
export interface WizardNavigationProps {
|
|
12
13
|
/** Current step index (0-based) */
|
|
13
14
|
currentStep: number;
|
|
@@ -27,12 +28,21 @@ export interface WizardNavigationProps {
|
|
|
27
28
|
nextLabel?: string;
|
|
28
29
|
/** Custom label for Complete button */
|
|
29
30
|
completeLabel?: string;
|
|
30
|
-
/** Event to emit on Back click */
|
|
31
|
-
onBack?:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
/** Event to emit on Back click — emits UI:{onBack} with { currentStep, totalSteps } */
|
|
32
|
+
onBack?: EventEmit<{
|
|
33
|
+
currentStep: number;
|
|
34
|
+
totalSteps: number;
|
|
35
|
+
}>;
|
|
36
|
+
/** Event to emit on Next click — emits UI:{onNext} with { currentStep, totalSteps } */
|
|
37
|
+
onNext?: EventEmit<{
|
|
38
|
+
currentStep: number;
|
|
39
|
+
totalSteps: number;
|
|
40
|
+
}>;
|
|
41
|
+
/** Event to emit on Complete click — emits UI:{onComplete} with { currentStep, totalSteps } */
|
|
42
|
+
onComplete?: EventEmit<{
|
|
43
|
+
currentStep: number;
|
|
44
|
+
totalSteps: number;
|
|
45
|
+
}>;
|
|
36
46
|
/** Direct callback for Back (alternative to event) */
|
|
37
47
|
onBackClick?: () => void;
|
|
38
48
|
/** Direct callback for Next (alternative to event) */
|
|
@@ -22,7 +22,7 @@ export interface WizardProgressStep {
|
|
|
22
22
|
}
|
|
23
23
|
export interface WizardProgressProps {
|
|
24
24
|
/** Step definitions (compatible with WizardContainer's WizardStep). A string is shorthand for `{ id: str, title: str }`. */
|
|
25
|
-
steps
|
|
25
|
+
steps?: (WizardProgressStep | string)[];
|
|
26
26
|
/** Current step index (0-based) */
|
|
27
27
|
currentStep: number;
|
|
28
28
|
/** Callback when a completed step is clicked */
|
package/dist/docs/index.d.cts
CHANGED
|
@@ -186,6 +186,8 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
186
186
|
actionPayload?: EventPayload;
|
|
187
187
|
/** Button label text (alternative to children for schema-driven rendering) */
|
|
188
188
|
label?: string;
|
|
189
|
+
/** Disable the button (greys out, blocks click events) */
|
|
190
|
+
disabled?: boolean;
|
|
189
191
|
}
|
|
190
192
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
191
193
|
|
|
@@ -185,6 +185,8 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
185
185
|
actionPayload?: EventPayload;
|
|
186
186
|
/** Button label text (alternative to children for schema-driven rendering) */
|
|
187
187
|
label?: string;
|
|
188
|
+
/** Disable the button (greys out, blocks click events) */
|
|
189
|
+
disabled?: boolean;
|
|
188
190
|
}
|
|
189
191
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
190
192
|
|
package/dist/providers/index.cjs
CHANGED
|
@@ -23802,7 +23802,7 @@ var init_WizardProgress = __esm({
|
|
|
23802
23802
|
stepClickEvent
|
|
23803
23803
|
}) => {
|
|
23804
23804
|
const eventBus = useEventBus();
|
|
23805
|
-
const normalizedSteps = steps.map(
|
|
23805
|
+
const normalizedSteps = (steps ?? []).map(
|
|
23806
23806
|
(s, i) => typeof s === "string" ? { id: `step-${i}`, title: s } : s
|
|
23807
23807
|
);
|
|
23808
23808
|
const totalSteps = normalizedSteps.length;
|
package/dist/providers/index.js
CHANGED
|
@@ -23756,7 +23756,7 @@ var init_WizardProgress = __esm({
|
|
|
23756
23756
|
stepClickEvent
|
|
23757
23757
|
}) => {
|
|
23758
23758
|
const eventBus = useEventBus();
|
|
23759
|
-
const normalizedSteps = steps.map(
|
|
23759
|
+
const normalizedSteps = (steps ?? []).map(
|
|
23760
23760
|
(s, i) => typeof s === "string" ? { id: `step-${i}`, title: s } : s
|
|
23761
23761
|
);
|
|
23762
23762
|
const totalSteps = normalizedSteps.length;
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -23507,7 +23507,7 @@ var init_WizardProgress = __esm({
|
|
|
23507
23507
|
stepClickEvent
|
|
23508
23508
|
}) => {
|
|
23509
23509
|
const eventBus = useEventBus();
|
|
23510
|
-
const normalizedSteps = steps.map(
|
|
23510
|
+
const normalizedSteps = (steps ?? []).map(
|
|
23511
23511
|
(s, i) => typeof s === "string" ? { id: `step-${i}`, title: s } : s
|
|
23512
23512
|
);
|
|
23513
23513
|
const totalSteps = normalizedSteps.length;
|
package/dist/runtime/index.js
CHANGED
|
@@ -23461,7 +23461,7 @@ var init_WizardProgress = __esm({
|
|
|
23461
23461
|
stepClickEvent
|
|
23462
23462
|
}) => {
|
|
23463
23463
|
const eventBus = useEventBus();
|
|
23464
|
-
const normalizedSteps = steps.map(
|
|
23464
|
+
const normalizedSteps = (steps ?? []).map(
|
|
23465
23465
|
(s, i) => typeof s === "string" ? { id: `step-${i}`, title: s } : s
|
|
23466
23466
|
);
|
|
23467
23467
|
const totalSteps = normalizedSteps.length;
|