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 +10 -4
- package/dist/esm/types.d.ts +1 -0
- package/package.json +1 -1
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
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
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) {
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -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";
|