caplink-saas-ui-shared-component-library 1.57.2 → 1.57.4
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.
|
@@ -6,14 +6,14 @@ export declare enum FancyAccordionStatusEnum {
|
|
|
6
6
|
}
|
|
7
7
|
export type FancyAccordionProps = {
|
|
8
8
|
className?: string;
|
|
9
|
+
style?: CSSProperties;
|
|
9
10
|
title: string;
|
|
10
11
|
description?: string;
|
|
11
12
|
isOpen?: boolean;
|
|
12
|
-
onToggle?(): void;
|
|
13
|
+
onToggle?(_isOpen?: boolean): void;
|
|
13
14
|
leftElement?: ReactNode;
|
|
14
15
|
rightElement?: (toggleButtonElement: ReactNode) => JSX.Element;
|
|
15
16
|
status?: FancyAccordionStatusEnum;
|
|
16
|
-
style?: CSSProperties;
|
|
17
17
|
defaultShowDescription?: boolean;
|
|
18
18
|
defaultShowContent?: boolean;
|
|
19
19
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -24380,8 +24380,9 @@ function l_e({
|
|
|
24380
24380
|
() => _.hasOverflow || _.numberOfLines > 1,
|
|
24381
24381
|
[_.hasOverflow, _.numberOfLines]
|
|
24382
24382
|
), N = ne(() => {
|
|
24383
|
-
|
|
24384
|
-
|
|
24383
|
+
const L = !f;
|
|
24384
|
+
p(L), d?.(L);
|
|
24385
|
+
}, [d, f]), M = ne(() => {
|
|
24385
24386
|
const L = !m;
|
|
24386
24387
|
if (g(L), b.current && clearTimeout(b.current), L || v) {
|
|
24387
24388
|
y(!1);
|
|
@@ -24497,7 +24498,7 @@ function l_e({
|
|
|
24497
24498
|
j
|
|
24498
24499
|
]
|
|
24499
24500
|
), k = he(
|
|
24500
|
-
() => o
|
|
24501
|
+
() => o ? /* @__PURE__ */ h.jsx(
|
|
24501
24502
|
Xd.div,
|
|
24502
24503
|
{
|
|
24503
24504
|
"data-testid": "fancy-accordion-content",
|
|
@@ -24512,7 +24513,7 @@ function l_e({
|
|
|
24512
24513
|
children: o
|
|
24513
24514
|
}
|
|
24514
24515
|
) : void 0,
|
|
24515
|
-
[o,
|
|
24516
|
+
[o, f]
|
|
24516
24517
|
);
|
|
24517
24518
|
return /* @__PURE__ */ h.jsxs("div", { "data-testid": "fancy-accordion-container", className: R, style: s, children: [
|
|
24518
24519
|
x && /* @__PURE__ */ h.jsx(
|