hplx-react-elements-dev 1.0.50 → 1.0.51

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
@@ -4320,11 +4320,17 @@ var CollapsibleCard = function CollapsibleCard(props) {
4320
4320
  _k = _a.disabled,
4321
4321
  disabled = _k === void 0 ? false : _k,
4322
4322
  handleCollapsibleDisplay = _a.handleCollapsibleDisplay,
4323
- headerRightChildren = _a.headerRightChildren;
4323
+ headerRightChildren = _a.headerRightChildren,
4324
+ _l = _a.expanded,
4325
+ expanded = _l === void 0 ? false : _l;
4324
4326
 
4325
- var _l = useState(false),
4326
- active = _l[0],
4327
- setActive = _l[1];
4327
+ useEffect(function () {
4328
+ setActive(expanded);
4329
+ }, [expanded]);
4330
+
4331
+ var _m = useState(false),
4332
+ active = _m[0],
4333
+ setActive = _m[1];
4328
4334
 
4329
4335
  var OnButtonClick = function OnButtonClick() {
4330
4336
  setActive(function (prevValue) {
@@ -256,6 +256,7 @@ export interface CollapsibleCardProps {
256
256
  disabled?: boolean;
257
257
  handleCollapsibleDisplay?: Function;
258
258
  headerRightChildren?: ReactNode;
259
+ expanded?: boolean;
259
260
  }
260
261
  export type RadioBtnSizeType = "sm" | "md";
261
262
  export type RadioBtnType = "checkmark" | "dot";
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.50",
12
+ "version": "1.0.51",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",