lambda-ui-components 1.0.3 → 1.2.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/README.md +20 -5
- package/dist/main.css +1 -1
- package/dist/main.d.ts +9 -8
- package/dist/main.mjs +2536 -2530
- package/dist/main.umd.js +45 -45
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -2537,12 +2537,6 @@ declare interface StepContentProps {
|
|
|
2537
2537
|
index?: number;
|
|
2538
2538
|
/** The content to be rendered */
|
|
2539
2539
|
children: ReactNode;
|
|
2540
|
-
/** Whether validation should be performed for this step */
|
|
2541
|
-
validate?: boolean;
|
|
2542
|
-
/** Whether the step content is currently valid */
|
|
2543
|
-
isValid?: boolean;
|
|
2544
|
-
/** Error message to display if validation fails */
|
|
2545
|
-
errorMessage?: string;
|
|
2546
2540
|
}
|
|
2547
2541
|
|
|
2548
2542
|
export declare const Stepper: default_2.FC<StepperProps> & {
|
|
@@ -2552,14 +2546,14 @@ export declare const Stepper: default_2.FC<StepperProps> & {
|
|
|
2552
2546
|
};
|
|
2553
2547
|
|
|
2554
2548
|
declare interface StepperProps {
|
|
2555
|
-
/** Array of step objects defining the stepper structure */
|
|
2556
|
-
steps: StepperStep[];
|
|
2557
2549
|
/** The index of the step that is active by default (0-indexed) */
|
|
2558
2550
|
defaultActiveStep?: number;
|
|
2559
2551
|
/** The orientation of the stepper */
|
|
2560
2552
|
orientation?: StepperVariants["orientation"];
|
|
2561
2553
|
/** Callback function triggered when a step is completed */
|
|
2562
2554
|
onStepCompleted?: (stepIndex: number) => void;
|
|
2555
|
+
/** Callback function triggered before advancing to the next step for validation */
|
|
2556
|
+
onStepValidate?: (stepIndex: number) => StepValidationResult | Promise<StepValidationResult>;
|
|
2563
2557
|
/** Additional CSS class names for the container */
|
|
2564
2558
|
className?: string;
|
|
2565
2559
|
/** Inline CSS styles for the container */
|
|
@@ -2598,6 +2592,13 @@ declare interface StepProps extends StepperStep {
|
|
|
2598
2592
|
index: number;
|
|
2599
2593
|
}
|
|
2600
2594
|
|
|
2595
|
+
declare interface StepValidationResult {
|
|
2596
|
+
/** Whether the step is valid */
|
|
2597
|
+
isValid: boolean;
|
|
2598
|
+
/** Optional error message if validation fails */
|
|
2599
|
+
errorMessage?: string;
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2601
2602
|
export declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLInputElement>>;
|
|
2602
2603
|
|
|
2603
2604
|
declare type SwitchLabelVariants = VariantProps<typeof pos_label>;
|