hplx-react-elements-dev 1.1.12 → 1.1.13
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/esm/index.js
CHANGED
|
@@ -4834,7 +4834,8 @@ var RadioBtn = function RadioBtn(_a) {
|
|
|
4834
4834
|
secondaryText = _a.secondaryText,
|
|
4835
4835
|
className = _a.className,
|
|
4836
4836
|
value = _a.value,
|
|
4837
|
-
onChange = _a.onChange
|
|
4837
|
+
onChange = _a.onChange,
|
|
4838
|
+
checked = _a.checked;
|
|
4838
4839
|
return jsxRuntime.exports.jsx("div", __assign({
|
|
4839
4840
|
className: "radiobutton"
|
|
4840
4841
|
}, {
|
|
@@ -4845,11 +4846,12 @@ var RadioBtn = function RadioBtn(_a) {
|
|
|
4845
4846
|
className: "hplxt-sr-only hplxt-peer hplxt-border-0 focus:hplxt-border-0",
|
|
4846
4847
|
type: "radio",
|
|
4847
4848
|
value: value,
|
|
4848
|
-
name:
|
|
4849
|
+
name: "radioBtn",
|
|
4849
4850
|
id: id,
|
|
4850
4851
|
"data-testid": id,
|
|
4851
4852
|
disabled: disabled,
|
|
4852
|
-
onChange: onChange
|
|
4853
|
+
onChange: onChange,
|
|
4854
|
+
checked: checked
|
|
4853
4855
|
}), jsxRuntime.exports.jsx("label", {
|
|
4854
4856
|
className: "".concat(getPaddingClassName(size, disabled)),
|
|
4855
4857
|
htmlFor: id
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RadioBtnProps } from "../types";
|
|
3
|
-
declare const RadioBtn: ({ size, disabled, iconfile, id, text, secondaryText, className, value, onChange }: RadioBtnProps) => JSX.Element;
|
|
3
|
+
declare const RadioBtn: ({ size, disabled, iconfile, id, text, secondaryText, className, value, onChange, checked, }: RadioBtnProps) => JSX.Element;
|
|
4
4
|
export default RadioBtn;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -297,7 +297,8 @@ export interface RadioBtnProps {
|
|
|
297
297
|
id: any;
|
|
298
298
|
value: string;
|
|
299
299
|
className?: any;
|
|
300
|
-
onChange: () => void;
|
|
300
|
+
onChange: (event: any) => void;
|
|
301
|
+
checked?: any;
|
|
301
302
|
}
|
|
302
303
|
export type ToggleSwitchThemeType = "Dark" | "Light";
|
|
303
304
|
export type ToggleSwitchSizeType = "sm" | "md";
|