hplx-react-elements-dev 1.0.72 → 1.0.74
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
|
@@ -4634,21 +4634,25 @@ var RadioBtn = function RadioBtn(_a) {
|
|
|
4634
4634
|
iconfile = _a.iconfile,
|
|
4635
4635
|
id = _a.id,
|
|
4636
4636
|
text = _a.text,
|
|
4637
|
-
secondaryText = _a.secondaryText
|
|
4637
|
+
secondaryText = _a.secondaryText,
|
|
4638
|
+
className = _a.className,
|
|
4639
|
+
value = _a.value,
|
|
4640
|
+
onChange = _a.onChange;
|
|
4638
4641
|
return jsxRuntime.exports.jsx("div", __assign({
|
|
4639
4642
|
className: "radiobutton"
|
|
4640
4643
|
}, {
|
|
4641
4644
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
4642
|
-
className: "hplxt-
|
|
4645
|
+
className: "hplxt-flex hplxt-flex-row hplxt-flex-1 ".concat(className)
|
|
4643
4646
|
}, {
|
|
4644
4647
|
children: [jsxRuntime.exports.jsx("input", {
|
|
4645
4648
|
className: "hplxt-sr-only hplxt-peer hplxt-border-0 focus:hplxt-border-0",
|
|
4646
4649
|
type: "radio",
|
|
4647
|
-
value:
|
|
4648
|
-
name:
|
|
4650
|
+
value: value,
|
|
4651
|
+
name: 'radioBtn',
|
|
4649
4652
|
id: id,
|
|
4650
4653
|
"data-testid": id,
|
|
4651
|
-
disabled: disabled
|
|
4654
|
+
disabled: disabled,
|
|
4655
|
+
onChange: onChange
|
|
4652
4656
|
}), jsxRuntime.exports.jsx("label", {
|
|
4653
4657
|
className: "".concat(getPaddingClassName(size, disabled)),
|
|
4654
4658
|
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 }: RadioBtnProps) => JSX.Element;
|
|
3
|
+
declare const RadioBtn: ({ size, disabled, iconfile, id, text, secondaryText, className, value, onChange }: RadioBtnProps) => JSX.Element;
|
|
4
4
|
export default RadioBtn;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -273,6 +273,9 @@ export interface RadioBtnProps {
|
|
|
273
273
|
text: string;
|
|
274
274
|
secondaryText: string;
|
|
275
275
|
id: any;
|
|
276
|
+
value: string;
|
|
277
|
+
className?: any;
|
|
278
|
+
onChange: () => void;
|
|
276
279
|
}
|
|
277
280
|
export type ToggleSwitchThemeType = "Dark" | "Light";
|
|
278
281
|
export type ToggleSwitchSizeType = "sm" | "md";
|