@kaio-xyz/design-system 1.1.28 → 1.1.29
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 +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -370,7 +370,7 @@ var isAnchor = function (props) { return props.href !== undefined; };
|
|
|
370
370
|
var Button = React.forwardRef(function (_a, ref) {
|
|
371
371
|
var _b = _a.fullWidth, fullWidth = _b === void 0 ? false : _b, _c = _a.variant, variant = _c === void 0 ? "primary" : _c, _d = _a.size, size = _d === void 0 ? "normal" : _d, _e = _a.isInverted, isInverted = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, _g = _a.iconSize, iconSize = _g === void 0 ? 22 : _g, Icon = _a.icon, props = __rest(_a, ["fullWidth", "variant", "size", "isInverted", "isLoading", "iconSize", "icon"]);
|
|
372
372
|
var iconProps = { width: iconSize, height: iconSize, "aria-hidden": "true" };
|
|
373
|
-
var baseIcon = Icon && jsxRuntime.jsx(Icon, __assign({}, iconProps));
|
|
373
|
+
var baseIcon = Icon && jsxRuntime.jsx(Icon, __assign({}, iconProps, { viewBox: "0 0 24 24" }));
|
|
374
374
|
var loadingIcon = isLoading && jsxRuntime.jsx(SpinnedIcon, __assign({ size: iconSize }, iconProps));
|
|
375
375
|
var iconChild = loadingIcon || baseIcon || null;
|
|
376
376
|
var classes = clsx(style$q.root, props.className);
|
|
@@ -561,7 +561,7 @@ var Clipboard = function (_a) {
|
|
|
561
561
|
}, 2000);
|
|
562
562
|
}, [value]);
|
|
563
563
|
var text = isShowingCopy ? 'Copied!' : displayValue;
|
|
564
|
-
var icon = isShowingCopy ? jsxRuntime.jsx(SvgCheck, {}) : jsxRuntime.jsx(SvgClipboard, {});
|
|
564
|
+
var icon = isShowingCopy ? jsxRuntime.jsx(SvgCheck, { viewBox: "0 0 24 24" }) : jsxRuntime.jsx(SvgClipboard, { viewBox: "0 0 24 24" });
|
|
565
565
|
return (jsxRuntime.jsx("button", { type: "button", onClick: handleClick, className: style$f.root, "data-is-copied": isCopied, "data-is-showing-copy": isShowingCopy, "data-test": dataTest, children: jsxRuntime.jsxs(Stack, { position: "horizontal", children: [jsxRuntime.jsx("span", { children: text }), icon] }) }));
|
|
566
566
|
};
|
|
567
567
|
|
|
@@ -578,7 +578,7 @@ var Step = function (_a) {
|
|
|
578
578
|
var key = _a.key, label = _a.label, dataTest = _a.dataTest, _b = _a.iconSize, iconSize = _b === void 0 ? 16 : _b, _c = _a.isCompleted, isCompleted = _c === void 0 ? false : _c, _d = _a.isCurrent, isCurrent = _d === void 0 ? false : _d;
|
|
579
579
|
var icon = React.useMemo(function () {
|
|
580
580
|
switch (true) {
|
|
581
|
-
case isCompleted: return jsxRuntime.jsx(SvgCheck, { className: style$d.checkIcon });
|
|
581
|
+
case isCompleted: return jsxRuntime.jsx(SvgCheck, { className: style$d.checkIcon, viewBox: "0 0 24 24" });
|
|
582
582
|
case isCurrent: return jsxRuntime.jsx(SpinnedIcon, { icon: SvgLoadingCircle, size: iconSize, className: style$d.loadingIcon });
|
|
583
583
|
default: return jsxRuntime.jsx("span", { className: style$d.emptyIcon });
|
|
584
584
|
}
|
|
@@ -671,7 +671,7 @@ var style$6 = {"content":"dropdown-menu-module__content__sSYNC","arrow":"dropdow
|
|
|
671
671
|
|
|
672
672
|
var DropdownMenu$1 = function (_a) {
|
|
673
673
|
var text = _a.text, children = _a.children, Icon = _a.icon, disabled = _a.disabled, body = _a.body, variant = _a.variant, rest = __rest(_a, ["text", "children", "icon", "disabled", "body", "variant"]);
|
|
674
|
-
var defaultBody = !text ? Icon && jsxRuntime.jsx(Icon, {}) : jsxRuntime.jsx(Button, { icon: Icon, variant: variant, children: text });
|
|
674
|
+
var defaultBody = !text ? Icon && jsxRuntime.jsx(Icon, { viewBox: "0 0 24 24" }) : jsxRuntime.jsx(Button, { icon: Icon, variant: variant, children: text });
|
|
675
675
|
return (jsxRuntime.jsxs(RDropdownMenu__namespace.Root, { children: [jsxRuntime.jsx(RDropdownMenu__namespace.Trigger, __assign({}, rest, { asChild: !!text, className: style$6.trigger, disabled: disabled, children: body ? body : defaultBody })), jsxRuntime.jsx(RDropdownMenu__namespace.Portal, { children: jsxRuntime.jsxs(RDropdownMenu__namespace.Content, { className: style$6.content, sideOffset: 5, children: [children, jsxRuntime.jsx(RDropdownMenu__namespace.Arrow, { className: style$6.arrow })] }) })] }));
|
|
676
676
|
};
|
|
677
677
|
|