@happeouikit/form-elements 2.3.45 → 2.3.47
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/Checkbox.d.ts +1 -1
- package/dist/Switch.d.ts +1 -1
- package/dist/Textarea.d.ts +2 -19
- package/dist/Textarea.types.d.ts +17 -0
- package/dist/index.cjs.js +214 -148
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3044 -2940
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/Checkbox.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CheckboxProps } from "./Checkbox.types";
|
|
2
|
-
declare const Checkbox: ({ label, subtitle, description, indeterminate, onChange, style, disabled, checked, id, background, "data-tip":
|
|
2
|
+
declare const Checkbox: ({ label, subtitle, description, indeterminate, onChange, style, disabled, checked, id, background, "data-tip": dataTip1, "data-tooltip-content": dataTip2, "data-tooltip-id": dataTooltipId, "data-testid": dataTestId, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Checkbox;
|
package/dist/Switch.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SwitchProps } from "./Switch.types";
|
|
2
|
-
declare const Switch: ({ label, subtitle, description, tabIndex, id, disabled, checked, defaultChecked, required, onChange, background, "data-tip":
|
|
2
|
+
declare const Switch: ({ label, subtitle, description, tabIndex, id, disabled, checked, defaultChecked, required, onChange, background, "data-tip": dataTip1, "data-tooltip-content": dataTip2, "data-tooltip-id": dataTipId, "data-testid": dataTestId, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Switch;
|
package/dist/Textarea.d.ts
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
+
import { TextareaProps } from "./Textarea.types";
|
|
2
|
+
declare const Textarea: ({ id, cols, rows, label, description, required, readOnly, disabled, state, errorMessage, hintText, maxHeight, ...props }: TextareaProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
3
|
export default Textarea;
|
|
2
|
-
declare function Textarea({ cols, rows, label, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
cols: any;
|
|
5
|
-
rows: any;
|
|
6
|
-
label: any;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare namespace Textarea {
|
|
9
|
-
namespace propTypes {
|
|
10
|
-
let rows: PropTypes.Requireable<number>;
|
|
11
|
-
let cols: PropTypes.Requireable<number>;
|
|
12
|
-
let autoHeight: PropTypes.Requireable<boolean>;
|
|
13
|
-
let maxHeight: PropTypes.Requireable<number>;
|
|
14
|
-
}
|
|
15
|
-
namespace defaultProps {
|
|
16
|
-
let maxHeight_1: number;
|
|
17
|
-
export { maxHeight_1 as maxHeight };
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface TextareaProps extends React.HTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
rows?: number;
|
|
5
|
+
cols?: number;
|
|
6
|
+
autoHeight?: boolean;
|
|
7
|
+
maxHeight?: number;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
hintText?: React.ReactNode;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
id?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
state: "success" | "error" | "default";
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
}
|