stp-ui-kit 0.0.112 → 0.0.113
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/components/form/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/form/FormItem/FormItem.d.ts +4 -1
- package/dist/components/form/Input/BaseInputWrapper.d.ts +2 -1
- package/dist/components/form/Input/Input.d.ts +1 -0
- package/dist/components/form/Input/TextArea.d.ts +1 -0
- package/dist/components/form/RadioButton/RadioButton.d.ts +2 -1
- package/dist/components/form/RadioButton/RadioButton.stories.d.ts +1 -1
- package/dist/components/form/Select/Select.d.ts +1 -0
- package/dist/stp-ui-kit.es.js +1654 -1620
- package/dist/stp-ui-kit.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/styles/main.scss +1 -0
|
@@ -4,6 +4,7 @@ interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
4
4
|
error?: string;
|
|
5
5
|
helperText?: string;
|
|
6
6
|
indeterminate?: boolean;
|
|
7
|
+
required?: boolean;
|
|
7
8
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
8
9
|
}
|
|
9
10
|
export declare const Checkbox: React.FC<CheckboxProps>;
|
|
@@ -7,10 +7,13 @@ interface FormItemProps {
|
|
|
7
7
|
}
|
|
8
8
|
declare const FormItem: {
|
|
9
9
|
({ children, error, disabled, readOnly }: FormItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
Label: ({ children }:
|
|
10
|
+
Label: ({ children, required }: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLElement>>;
|
|
12
12
|
Message: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
};
|
|
14
|
+
interface LabelProps extends PropsWithChildren {
|
|
15
|
+
required?: boolean;
|
|
16
|
+
}
|
|
14
17
|
interface InputProps extends React.ComponentPropsWithoutRef<"input"> {
|
|
15
18
|
as?: React.ElementType;
|
|
16
19
|
className?: string;
|
|
@@ -6,10 +6,11 @@ interface BaseInputWrapperProps {
|
|
|
6
6
|
helperText?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
readOnly?: boolean;
|
|
9
|
+
required?: boolean;
|
|
9
10
|
prefix?: React.ReactNode;
|
|
10
11
|
postfix?: React.ReactNode;
|
|
11
12
|
children: React.ReactNode;
|
|
12
13
|
className?: string;
|
|
13
14
|
}
|
|
14
|
-
export declare const BaseInputWrapper: ({ label, labelPlacement, error, helperText, disabled, readOnly, prefix, postfix, children, className, }: BaseInputWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const BaseInputWrapper: ({ label, labelPlacement, error, helperText, disabled, readOnly, required, prefix, postfix, children, className, }: BaseInputWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -8,6 +8,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
|
8
8
|
postfix?: React.ReactNode;
|
|
9
9
|
maskRegex?: string;
|
|
10
10
|
textPrefix?: string;
|
|
11
|
+
required?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
14
|
export type { InputProps };
|
|
@@ -5,6 +5,7 @@ interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
|
|
|
5
5
|
helperText?: string;
|
|
6
6
|
prefix?: React.ReactNode;
|
|
7
7
|
postfix?: React.ReactNode;
|
|
8
|
+
required?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
10
11
|
export type { TextAreaProps };
|
|
@@ -4,7 +4,8 @@ interface RadioButtonProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
4
4
|
error?: string;
|
|
5
5
|
helperText?: string;
|
|
6
6
|
name: string;
|
|
7
|
+
required?: boolean;
|
|
7
8
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
8
9
|
}
|
|
9
|
-
export declare const RadioButton: ({ label, error, helperText, disabled, className, name, onChange, ...rest }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const RadioButton: ({ label, error, helperText, disabled, className, name, required, onChange, ...rest }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|