react-simple-accordion-ui
Version:
A flexible and customizable accordion component for React applications.
842 lines (834 loc) • 27.5 kB
JavaScript
import xe, { memo as _r, useMemo as pr, useState as vr, useCallback as mr } from "react";
import gr from "styled-components";
function hr(d) {
return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
}
var Q = { exports: {} }, $ = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Ce;
function yr() {
if (Ce) return $;
Ce = 1;
var d = xe, S = Symbol.for("react.element"), m = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, l = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
function c(v, p, x) {
var g, C = {}, A = null, Y = null;
x !== void 0 && (A = "" + x), p.key !== void 0 && (A = "" + p.key), p.ref !== void 0 && (Y = p.ref);
for (g in p) h.call(p, g) && !a.hasOwnProperty(g) && (C[g] = p[g]);
if (v && v.defaultProps) for (g in p = v.defaultProps, p) C[g] === void 0 && (C[g] = p[g]);
return { $$typeof: S, type: v, key: A, ref: Y, props: C, _owner: l.current };
}
return $.Fragment = m, $.jsx = c, $.jsxs = c, $;
}
var N = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var we;
function br() {
return we || (we = 1, process.env.NODE_ENV !== "production" && function() {
var d = xe, S = Symbol.for("react.element"), m = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), v = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), ee = Symbol.iterator, Oe = "@@iterator";
function Pe(e) {
if (e === null || typeof e != "object")
return null;
var r = ee && e[ee] || e[Oe];
return typeof r == "function" ? r : null;
}
var P = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function y(e) {
{
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
t[n - 1] = arguments[n];
ke("error", e, t);
}
}
function ke(e, r, t) {
{
var n = P.ReactDebugCurrentFrame, s = n.getStackAddendum();
s !== "" && (r += "%s", t = t.concat([s]));
var u = t.map(function(i) {
return String(i);
});
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
}
}
var Ie = !1, We = !1, De = !1, Fe = !1, $e = !1, re;
re = Symbol.for("react.module.reference");
function Ne(e) {
return !!(typeof e == "string" || typeof e == "function" || e === h || e === a || $e || e === l || e === x || e === g || Fe || e === Y || Ie || We || De || typeof e == "object" && e !== null && (e.$$typeof === A || e.$$typeof === C || e.$$typeof === c || e.$$typeof === v || e.$$typeof === p || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
e.$$typeof === re || e.getModuleId !== void 0));
}
function Ye(e, r, t) {
var n = e.displayName;
if (n)
return n;
var s = r.displayName || r.name || "";
return s !== "" ? t + "(" + s + ")" : t;
}
function te(e) {
return e.displayName || "Context";
}
function w(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;
if (typeof e == "string")
return e;
switch (e) {
case h:
return "Fragment";
case m:
return "Portal";
case a:
return "Profiler";
case l:
return "StrictMode";
case x:
return "Suspense";
case g:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case v:
var r = e;
return te(r) + ".Consumer";
case c:
var t = e;
return te(t._context) + ".Provider";
case p:
return Ye(e, e.render, "ForwardRef");
case C:
var n = e.displayName || null;
return n !== null ? n : w(e.type) || "Memo";
case A: {
var s = e, u = s._payload, i = s._init;
try {
return w(i(u));
} catch {
return null;
}
}
}
return null;
}
var j = Object.assign, W = 0, ne, ae, oe, ie, se, ue, ce;
function le() {
}
le.__reactDisabledLog = !0;
function Le() {
{
if (W === 0) {
ne = console.log, ae = console.info, oe = console.warn, ie = console.error, se = console.group, ue = console.groupCollapsed, ce = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: le,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
W++;
}
}
function Me() {
{
if (W--, W === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: j({}, e, {
value: ne
}),
info: j({}, e, {
value: ae
}),
warn: j({}, e, {
value: oe
}),
error: j({}, e, {
value: ie
}),
group: j({}, e, {
value: se
}),
groupCollapsed: j({}, e, {
value: ue
}),
groupEnd: j({}, e, {
value: ce
})
});
}
W < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var H = P.ReactCurrentDispatcher, B;
function L(e, r, t) {
{
if (B === void 0)
try {
throw Error();
} catch (s) {
var n = s.stack.trim().match(/\n( *(at )?)/);
B = n && n[1] || "";
}
return `
` + B + e;
}
}
var J = !1, M;
{
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
M = new Ve();
}
function fe(e, r) {
if (!e || J)
return "";
{
var t = M.get(e);
if (t !== void 0)
return t;
}
var n;
J = !0;
var s = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var u;
u = H.current, H.current = null, Le();
try {
if (r) {
var i = function() {
throw Error();
};
if (Object.defineProperty(i.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(i, []);
} catch (R) {
n = R;
}
Reflect.construct(e, [], i);
} else {
try {
i.call();
} catch (R) {
n = R;
}
e.call(i.prototype);
}
} else {
try {
throw Error();
} catch (R) {
n = R;
}
e();
}
} catch (R) {
if (R && n && typeof R.stack == "string") {
for (var o = R.stack.split(`
`), b = n.stack.split(`
`), f = o.length - 1, _ = b.length - 1; f >= 1 && _ >= 0 && o[f] !== b[_]; )
_--;
for (; f >= 1 && _ >= 0; f--, _--)
if (o[f] !== b[_]) {
if (f !== 1 || _ !== 1)
do
if (f--, _--, _ < 0 || o[f] !== b[_]) {
var T = `
` + o[f].replace(" at new ", " at ");
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, T), T;
}
while (f >= 1 && _ >= 0);
break;
}
}
} finally {
J = !1, H.current = u, Me(), Error.prepareStackTrace = s;
}
var I = e ? e.displayName || e.name : "", O = I ? L(I) : "";
return typeof e == "function" && M.set(e, O), O;
}
function Ue(e, r, t) {
return fe(e, !1);
}
function He(e) {
var r = e.prototype;
return !!(r && r.isReactComponent);
}
function V(e, r, t) {
if (e == null)
return "";
if (typeof e == "function")
return fe(e, He(e));
if (typeof e == "string")
return L(e);
switch (e) {
case x:
return L("Suspense");
case g:
return L("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case p:
return Ue(e.render);
case C:
return V(e.type, r, t);
case A: {
var n = e, s = n._payload, u = n._init;
try {
return V(u(s), r, t);
} catch {
}
}
}
return "";
}
var D = Object.prototype.hasOwnProperty, de = {}, _e = P.ReactDebugCurrentFrame;
function U(e) {
if (e) {
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
_e.setExtraStackFrame(t);
} else
_e.setExtraStackFrame(null);
}
function Be(e, r, t, n, s) {
{
var u = Function.call.bind(D);
for (var i in e)
if (u(e, i)) {
var o = void 0;
try {
if (typeof e[i] != "function") {
var b = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw b.name = "Invariant Violation", b;
}
o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (f) {
o = f;
}
o && !(o instanceof Error) && (U(s), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), U(null)), o instanceof Error && !(o.message in de) && (de[o.message] = !0, U(s), y("Failed %s type: %s", t, o.message), U(null));
}
}
}
var Je = Array.isArray;
function q(e) {
return Je(e);
}
function qe(e) {
{
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
return t;
}
}
function ze(e) {
try {
return pe(e), !1;
} catch {
return !0;
}
}
function pe(e) {
return "" + e;
}
function ve(e) {
if (ze(e))
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), pe(e);
}
var F = P.ReactCurrentOwner, Ke = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, me, ge, z;
z = {};
function Ge(e) {
if (D.call(e, "ref")) {
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
if (r && r.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function Xe(e) {
if (D.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;
if (r && r.isReactWarning)
return !1;
}
return e.key !== void 0;
}
function Ze(e, r) {
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
var t = w(F.current.type);
z[t] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', w(F.current.type), e.ref), z[t] = !0);
}
}
function Qe(e, r) {
{
var t = function() {
me || (me = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};
t.isReactWarning = !0, Object.defineProperty(e, "key", {
get: t,
configurable: !0
});
}
}
function er(e, r) {
{
var t = function() {
ge || (ge = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
};
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
get: t,
configurable: !0
});
}
}
var rr = function(e, r, t, n, s, u, i) {
var o = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: S,
// Built-in properties that belong on the element
type: e,
key: r,
ref: t,
props: i,
// Record the component responsible for creating this element.
_owner: u
};
return o._store = {}, Object.defineProperty(o._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(o, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: n
}), Object.defineProperty(o, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: s
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
};
function tr(e, r, t, n, s) {
{
var u, i = {}, o = null, b = null;
t !== void 0 && (ve(t), o = "" + t), Xe(r) && (ve(r.key), o = "" + r.key), Ge(r) && (b = r.ref, Ze(r, s));
for (u in r)
D.call(r, u) && !Ke.hasOwnProperty(u) && (i[u] = r[u]);
if (e && e.defaultProps) {
var f = e.defaultProps;
for (u in f)
i[u] === void 0 && (i[u] = f[u]);
}
if (o || b) {
var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
o && Qe(i, _), b && er(i, _);
}
return rr(e, o, b, s, n, F.current, i);
}
}
var K = P.ReactCurrentOwner, he = P.ReactDebugCurrentFrame;
function k(e) {
if (e) {
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
he.setExtraStackFrame(t);
} else
he.setExtraStackFrame(null);
}
var G;
G = !1;
function X(e) {
return typeof e == "object" && e !== null && e.$$typeof === S;
}
function ye() {
{
if (K.current) {
var e = w(K.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function nr(e) {
return "";
}
var be = {};
function ar(e) {
{
var r = ye();
if (!r) {
var t = typeof e == "string" ? e : e.displayName || e.name;
t && (r = `
Check the top-level render call using <` + t + ">.");
}
return r;
}
}
function Re(e, r) {
{
if (!e._store || e._store.validated || e.key != null)
return;
e._store.validated = !0;
var t = ar(r);
if (be[t])
return;
be[t] = !0;
var n = "";
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + w(e._owner.type) + "."), k(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
}
}
function Ee(e, r) {
{
if (typeof e != "object")
return;
if (q(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
X(n) && Re(n, r);
}
else if (X(e))
e._store && (e._store.validated = !0);
else if (e) {
var s = Pe(e);
if (typeof s == "function" && s !== e.entries)
for (var u = s.call(e), i; !(i = u.next()).done; )
X(i.value) && Re(i.value, r);
}
}
}
function or(e) {
{
var r = e.type;
if (r == null || typeof r == "string")
return;
var t;
if (typeof r == "function")
t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === C))
t = r.propTypes;
else
return;
if (t) {
var n = w(r);
Be(t, e.props, "prop", n, e);
} else if (r.PropTypes !== void 0 && !G) {
G = !0;
var s = w(r);
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ir(e) {
{
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
var n = r[t];
if (n !== "children" && n !== "key") {
k(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
break;
}
}
e.ref !== null && (k(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
}
}
var Se = {};
function Te(e, r, t, n, s, u) {
{
var i = Ne(e);
if (!i) {
var o = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var b = nr();
b ? o += b : o += ye();
var f;
e === null ? f = "null" : q(e) ? f = "array" : e !== void 0 && e.$$typeof === S ? (f = "<" + (w(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, o);
}
var _ = tr(e, r, t, s, u);
if (_ == null)
return _;
if (i) {
var T = r.children;
if (T !== void 0)
if (n)
if (q(T)) {
for (var I = 0; I < T.length; I++)
Ee(T[I], e);
Object.freeze && Object.freeze(T);
} else
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Ee(T, e);
}
if (D.call(r, "key")) {
var O = w(e), R = Object.keys(r).filter(function(dr) {
return dr !== "key";
}), Z = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!Se[O + Z]) {
var fr = R.length > 0 ? "{" + R.join(": ..., ") + ": ...}" : "{}";
y(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, Z, O, fr, O), Se[O + Z] = !0;
}
}
return e === h ? ir(_) : or(_), _;
}
}
function sr(e, r, t) {
return Te(e, r, t, !0);
}
function ur(e, r, t) {
return Te(e, r, t, !1);
}
var cr = ur, lr = sr;
N.Fragment = h, N.jsx = cr, N.jsxs = lr;
}()), N;
}
process.env.NODE_ENV === "production" ? Q.exports = yr() : Q.exports = br();
var E = Q.exports, Ae = { exports: {} };
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
(function(d) {
(function() {
var S = {}.hasOwnProperty;
function m() {
for (var a = "", c = 0; c < arguments.length; c++) {
var v = arguments[c];
v && (a = l(a, h(v)));
}
return a;
}
function h(a) {
if (typeof a == "string" || typeof a == "number")
return a;
if (typeof a != "object")
return "";
if (Array.isArray(a))
return m.apply(null, a);
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
return a.toString();
var c = "";
for (var v in a)
S.call(a, v) && a[v] && (c = l(c, v));
return c;
}
function l(a, c) {
return c ? a ? a + " " + c : a + c : a;
}
d.exports ? (m.default = m, d.exports = m) : window.classNames = m;
})();
})(Ae);
var Rr = Ae.exports;
const je = /* @__PURE__ */ hr(Rr), Er = gr.section`
&.RSA__AccordionWrapper {
.RSA__AccordionWrapper__Item {
&.active {
.RSA__AccordionWrapper__Item__Header {
.RSA__AccordionWrapper__Item__Header__Toggle {
.RSA__AccordionWrapper__Item__Header__Toggle__Icon {
transform: rotate(180deg);
}
}
}
.RSA__AccordionWrapper__Item__Content {
opacity: 1;
visibility: visible;
grid-template-rows: 1fr;
}
}
.RSA__AccordionWrapper__Item__Header {
position: relative;
.RSA__AccordionWrapper__Item__Header__Toggle {
font-size: initial;
font-family: inherit;
cursor: pointer;
position: relative;
width: 100%;
background: 0;
padding: 0;
margin: 0;
border: 0;
outline: none;
display: flex;
align-items: center;
color: currentColor;
.RSA__AccordionWrapper__Item__Header__Toggle__Icon {
margin-left: auto;
transition: 200ms ease-in-out;
flex: 0 0 24px;
}
}
}
.RSA__AccordionWrapper__Item__Content {
opacity: 0;
visibility: hidden;
position: relative;
display: grid;
grid-template-rows: 0fr;
transition:
grid-template-rows 400ms ease-in-out,
opacity 800ms ease-in-out,
visibility 800ms ease-in-out;
.RSA__AccordionWrapper__Item__Content__ContentContainer {
overflow: hidden;
}
}
}
}
`, Sr = (d) => {
const [S, m] = vr(/* @__PURE__ */ new Set()), h = mr(
(l) => {
m((a) => d ? a.has(l) ? new Set([...a].filter((c) => c !== l)) : /* @__PURE__ */ new Set([...a, l]) : a.has(l) ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([l]));
},
[d]
);
return { active: S, toggleActive: h };
}, Tr = _r(
({
title: d,
content: S,
action: m,
uuid: h,
isActive: l,
toggleActive: a,
duration: c,
easing: v
}) => {
const p = je("RSA__AccordionWrapper__Item", {
active: l
});
return /* @__PURE__ */ E.jsxs("div", { className: p, children: [
/* @__PURE__ */ E.jsx("div", { className: "RSA__AccordionWrapper__Item__Header", children: m ? /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
d,
/* @__PURE__ */ E.jsx(
"span",
{
"aria-expanded": l,
"aria-label": "expand",
onClick: () => a(h),
role: "button",
children: m(l)
}
)
] }) : /* @__PURE__ */ E.jsxs(
"button",
{
"aria-expanded": l,
"aria-label": "expand",
onClick: () => a(h),
className: "RSA__AccordionWrapper__Item__Header__Toggle",
children: [
d,
/* @__PURE__ */ E.jsxs(
"svg",
{
className: "RSA__AccordionWrapper__Item__Header__Toggle__Icon",
width: "24",
height: "24",
viewBox: "0 0 24 24",
strokeWidth: "2",
stroke: "currentColor",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
children: [
/* @__PURE__ */ E.jsx("path", { d: "M0 0h24v24H0z", stroke: "none" }),
/* @__PURE__ */ E.jsx("path", { d: "m6 9 6 6 6-6" })
]
}
)
]
}
) }),
/* @__PURE__ */ E.jsx(
"div",
{
className: "RSA__AccordionWrapper__Item__Content",
"aria-hidden": !l,
style: {
transitionTimingFunction: v,
transitionDuration: c ? `${c}ms` : void 0
},
children: /* @__PURE__ */ E.jsx("div", { className: "RSA__AccordionWrapper__Item__Content__ContentContainer", children: /* @__PURE__ */ E.jsx("div", { className: "RSA__AccordionWrapper__Item__Content__ContentContainer__Wrapper", children: S }) })
}
)
] });
}
), xr = ({
allowMultiple: d = !0,
className: S,
duration: m,
easing: h,
items: l
}) => {
const { active: a, toggleActive: c } = Sr(d), v = pr(
() => l.map((p, x) => {
const g = `accordion-item-${x}`, C = a.has(g);
return /* @__PURE__ */ E.jsx(
Tr,
{
...p,
uuid: g,
isActive: C,
toggleActive: c,
duration: m,
easing: h
},
g
);
}),
[l, a, c, m, h]
);
return /* @__PURE__ */ E.jsx(Er, { className: je("RSA__AccordionWrapper", S), children: v });
};
export {
xr as Accordion
};