hplx-react-elements-dev 1.0.61 → 1.0.62

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,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonGroupsProps } from "../types";
3
- declare const ButtonGroups: ({ options, disabled, value, onChange, ...ButtonGroupsProps }: ButtonGroupsProps) => JSX.Element;
3
+ declare const ButtonGroups: ({ options, disabled, value, onChange, className, style, ...ButtonGroupsProps }: ButtonGroupsProps) => JSX.Element;
4
4
  export default ButtonGroups;
package/dist/esm/index.js CHANGED
@@ -2893,11 +2893,14 @@ var ButtonGroups = function ButtonGroups(_a) {
2893
2893
  disabled = _b === void 0 ? false : _b,
2894
2894
  value = _a.value,
2895
2895
  onChange = _a.onChange,
2896
- ButtonGroupsProps = __rest(_a, ["options", "disabled", "value", "onChange"]);
2896
+ _c = _a.className,
2897
+ className = _c === void 0 ? '' : _c,
2898
+ style = _a.style,
2899
+ ButtonGroupsProps = __rest(_a, ["options", "disabled", "value", "onChange", "className", "style"]);
2897
2900
 
2898
- var _c = useState(-1),
2899
- hovered = _c[0],
2900
- setHovered = _c[1]; // const touch = touched && touched[name];
2901
+ var _d = useState(-1),
2902
+ hovered = _d[0],
2903
+ setHovered = _d[1]; // const touch = touched && touched[name];
2901
2904
  // const error = errors && errors[name];
2902
2905
  // const errorMsg = touch && error ? error : undefined;
2903
2906
 
@@ -2919,7 +2922,8 @@ var ButtonGroups = function ButtonGroups(_a) {
2919
2922
  };
2920
2923
 
2921
2924
  return jsxRuntime.exports.jsx("div", __assign({
2922
- className: "hplxt-border-1 hplxt-border-Gray-300 hplxt-rounded-lg hplxt-flex hplxt-overflow-hidden"
2925
+ className: "hplxt-border-1 hplxt-border-Gray-300 hplxt-rounded-lg hplxt-flex hplxt-overflow-hidden ".concat(className),
2926
+ style: style
2923
2927
  }, {
2924
2928
  children: !!options && options.constructor === Array && options.map(function (option, index) {
2925
2929
  var _a = option || {},
@@ -184,6 +184,8 @@ export interface ButtonGroupsProps {
184
184
  onChange?: (value: string) => void;
185
185
  options: Array<ButtonGroupOptionType>;
186
186
  disabled: boolean;
187
+ className?: string;
188
+ style?: {};
187
189
  }
188
190
  type tooltipPosition = "Top" | "Top end" | "Top start" | "Bottom" | "Left" | "Right";
189
191
  type toolTipTheme = "dark" | "light";
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.61",
12
+ "version": "1.0.62",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",