@ofgdev/ui-components 1.2.24 → 1.2.26
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/StarRating/StarRating.d.ts +11 -0
- package/dist/StarRating/index.d.ts +1 -0
- package/dist/Stepper/Step.d.ts +1 -10
- package/dist/Stepper/Stepper.d.ts +4 -1
- package/dist/Stepper/SubStep.d.ts +1 -0
- package/dist/Stepper/types.d.ts +10 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +2132 -2069
- package/dist/ui-components.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface StarRatingProps {
|
|
2
|
+
value?: number;
|
|
3
|
+
onChange?: (value: number) => void;
|
|
4
|
+
maxStars?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const StarRating: import('react').ForwardRefExoticComponent<StarRatingProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StarRating';
|
package/dist/Stepper/Step.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { StepComponentProps } from './types';
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
collapsible?: boolean;
|
|
7
|
-
defaultExpanded?: boolean;
|
|
8
|
-
isLocked: boolean;
|
|
9
|
-
onAddSubStep?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const Step: React.FC<StepProps>;
|
|
12
|
-
export {};
|
|
3
|
+
export declare const Step: React.FC<StepComponentProps>;
|
|
@@ -2,7 +2,10 @@ import { default as React } from 'react';
|
|
|
2
2
|
export interface StepperProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
currentStep?: number;
|
|
5
|
-
onStepChange?: (
|
|
5
|
+
onStepChange?: (config: {
|
|
6
|
+
step?: number | string;
|
|
7
|
+
subStep?: number | string;
|
|
8
|
+
}) => void;
|
|
6
9
|
className?: string;
|
|
7
10
|
}
|
|
8
11
|
export declare const Stepper: React.FC<StepperProps>;
|
package/dist/Stepper/types.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export interface StepComponentProps {
|
|
2
|
+
title: string;
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
onExpand?: (expanded: boolean) => void;
|
|
6
|
+
isLocked?: boolean;
|
|
2
7
|
stepIndex?: number;
|
|
3
8
|
current?: boolean;
|
|
4
9
|
completed?: boolean;
|
|
5
|
-
onStepClick?: () => void;
|
|
10
|
+
onStepClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
11
|
+
onStepChange?: (config: {
|
|
12
|
+
step?: number | string;
|
|
13
|
+
subStep?: number | string;
|
|
14
|
+
}) => void;
|
|
6
15
|
}
|