@sellgar/kit 0.0.137 → 0.0.138
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/index.js +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13287,13 +13287,14 @@ const xm = s.createContext(null), Em = () => {
|
|
|
13287
13287
|
return i.open ? /* @__PURE__ */ s.createElement($l, null, /* @__PURE__ */ s.createElement(hd, { className: lc.overlay, lockScroll: !0 }, /* @__PURE__ */ s.createElement(ro, { context: i }, /* @__PURE__ */ s.createElement(lf, { ref: r, ...l.getFloatingProps(t) }, t.children)))) : null;
|
|
13288
13288
|
}), l1 = s.forwardRef(function(t, n) {
|
|
13289
13289
|
const {
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13290
|
+
isClosable: i,
|
|
13291
|
+
onClose: l,
|
|
13292
|
+
context: { onOpenChange: r }
|
|
13293
|
+
} = Em(), o = () => {
|
|
13294
|
+
i && (r(!1), l && l());
|
|
13294
13295
|
};
|
|
13295
|
-
return /* @__PURE__ */ s.createElement("div", { className: lc.close, ...t, ref: n, onClick:
|
|
13296
|
-
}), Y1 = (e) => /* @__PURE__ */ s.createElement(n1, { open:
|
|
13296
|
+
return /* @__PURE__ */ s.createElement("div", { className: lc.close, ...t, ref: n, onClick: o }, /* @__PURE__ */ s.createElement(Fe, { icon: "close-line" }));
|
|
13297
|
+
}), Y1 = ({ isClosable: e = !0, ...t }) => /* @__PURE__ */ s.createElement(n1, { open: t.open, onOpen: t.onOpen, onClose: t.onClose }, /* @__PURE__ */ s.createElement(i1, { className: lc.wrapper }, e && /* @__PURE__ */ s.createElement(l1, null), t.children));
|
|
13297
13298
|
export {
|
|
13298
13299
|
v1 as Accordion,
|
|
13299
13300
|
ym as Animate,
|