@kaio-xyz/design-system 1.1.34 → 1.1.36
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 +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -518,8 +518,8 @@ FormSelect.displayName = "FormSelect";
|
|
|
518
518
|
var style$j = {"root":"loader-module__root__qnInQ"};
|
|
519
519
|
|
|
520
520
|
var Loader = function (_a) {
|
|
521
|
-
var text = _a.text, _b = _a.
|
|
522
|
-
return (jsxRuntime.jsx("div", { className: style$j.root, "data-
|
|
521
|
+
var text = _a.text, _b = _a.isLightOverlay, isLightOverlay = _b === void 0 ? false : _b, children = _a.children;
|
|
522
|
+
return (jsxRuntime.jsx("div", { className: style$j.root, "data-is-light-overlay": isLightOverlay, children: jsxRuntime.jsxs(Stack, { dataAlignItems: "center", children: [jsxRuntime.jsx(SpinnedIcon, { size: 50 }), text && jsxRuntime.jsx("p", { children: text }), children] }) }));
|
|
523
523
|
};
|
|
524
524
|
|
|
525
525
|
var style$i = {"root":"checkbox-module__root__W52jD","customCheckbox":"checkbox-module__customCheckbox__LACTE","label":"checkbox-module__label__ujd0G","frame":"checkbox-module__frame__njRTK","icon":"checkbox-module__icon__7kQzK"};
|
|
@@ -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
|
|