@abdellatifui/react 3.2.91 → 3.2.93
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/nextgen.css +4 -1
- package/dist/nextgen.d.ts +1 -0
- package/dist/nextgen.js +29 -8
- package/package.json +1 -1
package/dist/nextgen.css
CHANGED
|
@@ -98,7 +98,10 @@
|
|
|
98
98
|
.abdellatifuimap .maplibregl-ctrl *{
|
|
99
99
|
border-radius: 100px;
|
|
100
100
|
cursor: default !important;
|
|
101
|
-
}
|
|
101
|
+
}.css-opacity-0 {
|
|
102
|
+
opacity: 0 !important;
|
|
103
|
+
}
|
|
104
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
102
105
|
/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on May 13, 2024 */
|
|
103
106
|
@layer properties {
|
|
104
107
|
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
package/dist/nextgen.d.ts
CHANGED
package/dist/nextgen.js
CHANGED
|
@@ -24048,6 +24048,7 @@ const vrs$c = cva("px-1", {
|
|
|
24048
24048
|
const AccordionItem = (props) => {
|
|
24049
24049
|
const key = useGeneratedId(5, false, false);
|
|
24050
24050
|
const ref = useRef();
|
|
24051
|
+
const contentRef = useRef();
|
|
24051
24052
|
const refTrigger = useRef();
|
|
24052
24053
|
const {
|
|
24053
24054
|
value = key,
|
|
@@ -24059,7 +24060,8 @@ const AccordionItem = (props) => {
|
|
|
24059
24060
|
onClose = () => {
|
|
24060
24061
|
},
|
|
24061
24062
|
defaultOpen = false,
|
|
24062
|
-
disabled = false
|
|
24063
|
+
disabled = false,
|
|
24064
|
+
delay = 0
|
|
24063
24065
|
} = props;
|
|
24064
24066
|
const { updateApi, options: options2 } = useContext(AccordionContext);
|
|
24065
24067
|
const id = useGeneratedId(5, true, false);
|
|
@@ -24068,6 +24070,9 @@ const AccordionItem = (props) => {
|
|
|
24068
24070
|
const form = { ...props, open: isOpen, ref, refTrigger };
|
|
24069
24071
|
if (isOpen) {
|
|
24070
24072
|
onOpen(form);
|
|
24073
|
+
setTimeout(() => {
|
|
24074
|
+
$(contentRef.current).find("div").first().removeClass("css-opacity-0");
|
|
24075
|
+
}, delay);
|
|
24071
24076
|
}
|
|
24072
24077
|
if (!isOpen) {
|
|
24073
24078
|
onClose(form);
|
|
@@ -24082,13 +24087,29 @@ const AccordionItem = (props) => {
|
|
|
24082
24087
|
}, 100);
|
|
24083
24088
|
}
|
|
24084
24089
|
}, [defaultOpen]);
|
|
24085
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
24086
|
-
|
|
24087
|
-
|
|
24088
|
-
|
|
24089
|
-
|
|
24090
|
-
|
|
24091
|
-
|
|
24090
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
24091
|
+
AccordionItem$1,
|
|
24092
|
+
{
|
|
24093
|
+
ref,
|
|
24094
|
+
id,
|
|
24095
|
+
onClick: handleClick,
|
|
24096
|
+
className: cn(vrs$c({ disabled, border: options2.border }), className),
|
|
24097
|
+
disabled,
|
|
24098
|
+
value,
|
|
24099
|
+
children: [
|
|
24100
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionTrigger, { ref: refTrigger, children: header }),
|
|
24101
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24102
|
+
AccordionContent,
|
|
24103
|
+
{
|
|
24104
|
+
className: "css-opacity-0",
|
|
24105
|
+
ref: contentRef,
|
|
24106
|
+
children
|
|
24107
|
+
}
|
|
24108
|
+
)
|
|
24109
|
+
]
|
|
24110
|
+
},
|
|
24111
|
+
key
|
|
24112
|
+
);
|
|
24092
24113
|
};
|
|
24093
24114
|
const CopyButton = forwardRef((props, ref) => {
|
|
24094
24115
|
const [icon, setIcon] = useState(/* @__PURE__ */ jsxRuntimeExports.jsx(Copy, { size: 16 }));
|