@kaio-xyz/design-system 1.1.21 → 1.1.23
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.d.ts +6 -3
- 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
|
@@ -569,14 +569,14 @@ var Clipboard = function (_a) {
|
|
|
569
569
|
var style$e = {"root":"stepper-module__root__hgDss"};
|
|
570
570
|
|
|
571
571
|
var Stepper = function (_a) {
|
|
572
|
-
var children = _a.children;
|
|
573
|
-
return (jsxRuntime.jsx("ul", { className: style$e.root, children: children }));
|
|
572
|
+
var children = _a.children, dataTest = _a.dataTest, className = _a.className;
|
|
573
|
+
return (jsxRuntime.jsx("ul", { className: clsx(style$e.root, className), "data-test": dataTest, children: children }));
|
|
574
574
|
};
|
|
575
575
|
|
|
576
576
|
var style$d = {"root":"step-module__root__Tk1Yq","container":"step-module__container__XbQSB","label":"step-module__label__UNF3I","emptyIcon":"step-module__emptyIcon__-xNcB","checkIcon":"step-module__checkIcon__MWBUM","loadingIcon":"step-module__loadingIcon__-VoCZ"};
|
|
577
577
|
|
|
578
578
|
var Step = function (_a) {
|
|
579
|
-
var key = _a.key, label = _a.label, _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
|
+
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;
|
|
580
580
|
var icon = React.useMemo(function () {
|
|
581
581
|
switch (true) {
|
|
582
582
|
case isCompleted: return jsxRuntime.jsx(SvgCheck, { className: style$d.checkIcon });
|
|
@@ -584,7 +584,7 @@ var Step = function (_a) {
|
|
|
584
584
|
default: return jsxRuntime.jsx("span", { className: style$d.emptyIcon });
|
|
585
585
|
}
|
|
586
586
|
}, [isCompleted, isCurrent]);
|
|
587
|
-
return (jsxRuntime.jsx("li", { className: style$d.root, "data-is-current": isCurrent, style: { '--icon-size': "".concat(iconSize, "px") }, children: jsxRuntime.jsxs(Stack, { className: style$d.container, position: "horizontal", children: [icon, jsxRuntime.jsx("span", { className: style$d.label, children: label })] }) }, key));
|
|
587
|
+
return (jsxRuntime.jsx("li", { className: style$d.root, "data-is-current": isCurrent, "data-test": dataTest, style: { '--icon-size': "".concat(iconSize, "px") }, children: jsxRuntime.jsxs(Stack, { className: style$d.container, position: "horizontal", children: [icon, jsxRuntime.jsx("span", { className: style$d.label, children: label })] }) }, key));
|
|
588
588
|
};
|
|
589
589
|
|
|
590
590
|
var style$c = {"root":"list-module__root__OXx93"};
|