lambda-ui-components 1.0.2 → 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/README.md +20 -5
- package/dist/main.css +1 -1
- package/dist/main.d.ts +13 -5
- package/dist/main.mjs +4430 -4375
- package/dist/main.umd.js +48 -48
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -440,7 +440,7 @@ export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttribut
|
|
|
440
440
|
|
|
441
441
|
declare const button: (props?: ({
|
|
442
442
|
color?: "neutral" | "primary" | "secondary" | "danger" | "success" | "warning" | "info" | null | undefined;
|
|
443
|
-
variant?: "soft" | "text" | "dashed" | "solid" | "outline" | "classic" | "subtle" | "unstyled" | null | undefined;
|
|
443
|
+
variant?: "soft" | "text" | "dashed" | "solid" | "outline" | "themed" | "classic" | "subtle" | "unstyled" | null | undefined;
|
|
444
444
|
size?: "tiny" | "small" | "medium" | "large" | null | undefined;
|
|
445
445
|
radius?: "default" | "none" | "tiny" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
446
446
|
block?: boolean | null | undefined;
|
|
@@ -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>;
|
|
@@ -2685,7 +2692,7 @@ export declare const Table: (<T>({ size, variant, highlightOnHover, children, da
|
|
|
2685
2692
|
};
|
|
2686
2693
|
} & HTMLAttributes<HTMLTableElement> & {
|
|
2687
2694
|
size?: "tiny" | "small" | "medium" | "large";
|
|
2688
|
-
variant?: "soft" | "underlined" | "bordered" | "striped" | null | undefined;
|
|
2695
|
+
variant?: "soft" | "underlined" | "bordered" | "striped" | "bordered-transparent" | null | undefined;
|
|
2689
2696
|
}) => JSX.Element) & {
|
|
2690
2697
|
Header: ({ children, ...props }: HTMLAttributes<HTMLTableSectionElement> & {
|
|
2691
2698
|
children: ReactNode;
|
|
@@ -3216,9 +3223,10 @@ export declare const useNotification: () => NotificationContextType;
|
|
|
3216
3223
|
|
|
3217
3224
|
export declare function usePathObserver(): string;
|
|
3218
3225
|
|
|
3219
|
-
export declare const usePopover: <T extends HTMLElement, U extends HTMLElement>(
|
|
3226
|
+
export declare const usePopover: <T extends HTMLElement, U extends HTMLElement>(config?: {
|
|
3220
3227
|
x?: number;
|
|
3221
3228
|
y?: number;
|
|
3229
|
+
disableListeners?: boolean;
|
|
3222
3230
|
}, itemCallbacks?: Array<(() => void) | undefined>) => {
|
|
3223
3231
|
isOpen: boolean;
|
|
3224
3232
|
setIsOpen: Dispatch<SetStateAction<boolean>>;
|