lambda-ui-components 1.0.3 → 1.1.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/dist/main.d.ts CHANGED
@@ -2552,14 +2552,14 @@ export declare const Stepper: default_2.FC<StepperProps> & {
2552
2552
  };
2553
2553
 
2554
2554
  declare interface StepperProps {
2555
- /** Array of step objects defining the stepper structure */
2556
- steps: StepperStep[];
2557
2555
  /** The index of the step that is active by default (0-indexed) */
2558
2556
  defaultActiveStep?: number;
2559
2557
  /** The orientation of the stepper */
2560
2558
  orientation?: StepperVariants["orientation"];
2561
2559
  /** Callback function triggered when a step is completed */
2562
2560
  onStepCompleted?: (stepIndex: number) => void;
2561
+ /** Callback function triggered before advancing to the next step for validation */
2562
+ onStepValidate?: (stepIndex: number) => StepValidationResult | Promise<StepValidationResult>;
2563
2563
  /** Additional CSS class names for the container */
2564
2564
  className?: string;
2565
2565
  /** Inline CSS styles for the container */
@@ -2598,6 +2598,13 @@ declare interface StepProps extends StepperStep {
2598
2598
  index: number;
2599
2599
  }
2600
2600
 
2601
+ declare interface StepValidationResult {
2602
+ /** Whether the step is valid */
2603
+ isValid: boolean;
2604
+ /** Optional error message if validation fails */
2605
+ errorMessage?: string;
2606
+ }
2607
+
2601
2608
  export declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLInputElement>>;
2602
2609
 
2603
2610
  declare type SwitchLabelVariants = VariantProps<typeof pos_label>;