buildgrid-ui 1.21.0 → 1.22.18

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.
@@ -12,3 +12,4 @@ export * from './number-stepper';
12
12
  export * from './paginated-items';
13
13
  export * from './pagination-controls';
14
14
  export * from './sidebar';
15
+ export * from './wizard';
@@ -0,0 +1,2 @@
1
+ export * from './use-wizard';
2
+ export * from './wizard';
@@ -0,0 +1,15 @@
1
+ export interface UseWizardOptions {
2
+ totalSteps: number;
3
+ /** 1-based step numbers that are disabled and must be skipped during navigation */
4
+ disabled?: number[];
5
+ initial?: number;
6
+ }
7
+ export interface UseWizardReturn {
8
+ currentStep: number;
9
+ goToStep: (step: number) => void;
10
+ goNext: () => void;
11
+ goPrevious: () => void;
12
+ canGoNext: boolean;
13
+ canGoPrevious: boolean;
14
+ }
15
+ export declare function useWizard({ totalSteps, disabled, initial, }: UseWizardOptions): UseWizardReturn;
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ export interface WizardProgressStepProps {
3
+ label: string;
4
+ icon: React.ComponentType<{
5
+ className?: string;
6
+ }>;
7
+ disabled?: boolean;
8
+ children?: React.ReactNode;
9
+ }
10
+ export declare function WizardProgressStep(_props: WizardProgressStepProps): null;
11
+ export interface WizardProgressProps {
12
+ children: React.ReactNode;
13
+ /** 1-based index of the current step */
14
+ currentStep: number;
15
+ onGoToStep?: (step: number) => void;
16
+ /** Allow clicking any step, not just completed ones */
17
+ freeNavigation?: boolean;
18
+ /** Hide step labels, showing only icons */
19
+ showLabels?: boolean;
20
+ className?: string;
21
+ }
22
+ export declare function WizardProgress({ children, currentStep, onGoToStep, freeNavigation, showLabels, className, }: WizardProgressProps): import("react/jsx-runtime").JSX.Element;