@happeouikit/form-elements 2.3.34 → 2.3.35

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.
@@ -1,19 +1,14 @@
1
- export default RadioButton;
2
- declare function RadioButton({ label, subtitle, description, ...props }: {
3
- [x: string]: any;
4
- label: any;
5
- subtitle: any;
6
- description: any;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- declare namespace RadioButton {
9
- namespace propTypes {
10
- let label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
11
- let subtitle: PropTypes.Requireable<PropTypes.ReactNodeLike>;
12
- let description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
13
- }
14
- namespace defaultProps {
15
- let label_1: null;
16
- export { label_1 as label };
17
- }
18
- }
19
1
  import PropTypes from "prop-types";
2
+ import { RadioButtonProps } from "./RadioButton.types";
3
+ declare const RadioButton: {
4
+ ({ label, subtitle, description, background, id, ...props }: RadioButtonProps): import("react/jsx-runtime").JSX.Element;
5
+ propTypes: {
6
+ label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
7
+ subtitle: PropTypes.Requireable<PropTypes.ReactNodeLike>;
8
+ description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ };
10
+ defaultProps: {
11
+ label: null;
12
+ };
13
+ };
14
+ export default RadioButton;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface RadioButtonProps {
3
+ label?: React.ReactNode;
4
+ subtitle?: React.ReactNode;
5
+ description?: React.ReactNode;
6
+ id?: string;
7
+ background?: string;
8
+ [key: string]: any;
9
+ }