@kaio-xyz/design-system 1.1.35 → 1.1.37

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.cjs.js CHANGED
@@ -898,7 +898,7 @@ var style$2 = {"root":"drawer-module__root__D3rM0","backdrop":"drawer-module__ba
898
898
  var Drawer = function (_a) {
899
899
  var isOpen = _a.isOpen, title = _a.title, children = _a.children, className = _a.className, actions = _a.actions, onClose = _a.onClose, _b = _a.isLarge, isLarge = _b === void 0 ? false : _b;
900
900
  var canAnimate = useCanAnimate();
901
- var drawerContent = (jsxRuntime.jsxs("div", { className: clsx(style$2.root, className), "data-is-open": isOpen, "data-can-animate": canAnimate, children: [jsxRuntime.jsx("button", { className: style$2.backdrop, tabIndex: 0, onClick: onClose, onKeyDown: function (e) { return (isEnter(e) ? onClose === null || onClose === void 0 ? void 0 : onClose() : null); } }), jsxRuntime.jsxs("div", { className: style$2.drawer, "data-is-large": isLarge, children: [jsxRuntime.jsxs("div", { className: style$2.header, children: [jsxRuntime.jsx("h2", { className: style$2.title, children: title }), jsxRuntime.jsx("button", { onClick: onClose, className: style$2.closeButton, type: "button", disabled: !onClose, children: jsxRuntime.jsx(SvgCross, {}) })] }), jsxRuntime.jsxs("div", { className: style$2.body, children: [jsxRuntime.jsx("div", { className: style$2.content, children: isOpen ? children : null }), actions && jsxRuntime.jsx("div", { className: style$2.actions, children: actions })] })] })] }));
901
+ var drawerContent = (jsxRuntime.jsxs("div", { className: clsx(style$2.root, className), "data-is-open": isOpen, "data-can-animate": canAnimate, children: [jsxRuntime.jsx("button", { className: style$2.backdrop, tabIndex: 0, onClick: onClose, onKeyDown: function (e) { return (isEnter(e) ? onClose === null || onClose === void 0 ? void 0 : onClose() : null); } }), jsxRuntime.jsxs("div", { className: style$2.drawer, "data-is-large": isLarge, children: [jsxRuntime.jsxs("div", { className: style$2.header, children: [jsxRuntime.jsx("h2", { className: style$2.title, children: title }), jsxRuntime.jsx("button", { onClick: onClose, className: style$2.closeButton, type: "button", disabled: !onClose, children: jsxRuntime.jsx(SvgCross, { viewBox: "0 0 24 24" }) })] }), jsxRuntime.jsxs("div", { className: style$2.body, children: [jsxRuntime.jsx("div", { className: style$2.content, children: isOpen ? children : null }), actions && jsxRuntime.jsx("div", { className: style$2.actions, children: actions })] })] })] }));
902
902
  return reactDom.createPortal(drawerContent, document.body);
903
903
  };
904
904