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