@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.d.ts
CHANGED
|
@@ -167,17 +167,20 @@ declare const Clipboard: ({ value, trim, trimLength }: ClipboardProps) => react_
|
|
|
167
167
|
|
|
168
168
|
type StepperProps = {
|
|
169
169
|
children: ReactNode;
|
|
170
|
+
className?: string;
|
|
171
|
+
dataTest?: string;
|
|
170
172
|
};
|
|
171
|
-
declare const Stepper: ({ children }: StepperProps) => react_jsx_runtime.JSX.Element;
|
|
173
|
+
declare const Stepper: ({ children, dataTest, className }: StepperProps) => react_jsx_runtime.JSX.Element;
|
|
172
174
|
|
|
173
175
|
type StepProps = {
|
|
174
176
|
label: string;
|
|
177
|
+
dataTest: string;
|
|
175
178
|
isCompleted?: boolean;
|
|
176
179
|
isCurrent?: boolean;
|
|
177
180
|
iconSize?: number;
|
|
178
181
|
key?: string;
|
|
179
182
|
};
|
|
180
|
-
declare const Step: ({ key, label, iconSize, isCompleted, isCurrent }: StepProps) => react_jsx_runtime.JSX.Element;
|
|
183
|
+
declare const Step: ({ key, label, dataTest, iconSize, isCompleted, isCurrent, }: StepProps) => react_jsx_runtime.JSX.Element;
|
|
181
184
|
|
|
182
185
|
type ListProps = {
|
|
183
186
|
label?: string;
|
|
@@ -186,7 +189,7 @@ type ListProps = {
|
|
|
186
189
|
declare const List: ({ label, children }: ListProps) => react_jsx_runtime.JSX.Element;
|
|
187
190
|
|
|
188
191
|
type ListItem = {
|
|
189
|
-
value?:
|
|
192
|
+
value?: ReactNode;
|
|
190
193
|
label: string;
|
|
191
194
|
key?: string;
|
|
192
195
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -546,14 +546,14 @@ var Clipboard = function (_a) {
|
|
|
546
546
|
var style$e = {"root":"stepper-module__root__hgDss"};
|
|
547
547
|
|
|
548
548
|
var Stepper = function (_a) {
|
|
549
|
-
var children = _a.children;
|
|
550
|
-
return (jsx("ul", { className: style$e.root, children: children }));
|
|
549
|
+
var children = _a.children, dataTest = _a.dataTest, className = _a.className;
|
|
550
|
+
return (jsx("ul", { className: clsx(style$e.root, className), "data-test": dataTest, children: children }));
|
|
551
551
|
};
|
|
552
552
|
|
|
553
553
|
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"};
|
|
554
554
|
|
|
555
555
|
var Step = function (_a) {
|
|
556
|
-
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;
|
|
556
|
+
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;
|
|
557
557
|
var icon = useMemo(function () {
|
|
558
558
|
switch (true) {
|
|
559
559
|
case isCompleted: return jsx(SvgCheck, { className: style$d.checkIcon });
|
|
@@ -561,7 +561,7 @@ var Step = function (_a) {
|
|
|
561
561
|
default: return jsx("span", { className: style$d.emptyIcon });
|
|
562
562
|
}
|
|
563
563
|
}, [isCompleted, isCurrent]);
|
|
564
|
-
return (jsx("li", { className: style$d.root, "data-is-current": isCurrent, style: { '--icon-size': "".concat(iconSize, "px") }, children: jsxs(Stack, { className: style$d.container, position: "horizontal", children: [icon, jsx("span", { className: style$d.label, children: label })] }) }, key));
|
|
564
|
+
return (jsx("li", { className: style$d.root, "data-is-current": isCurrent, "data-test": dataTest, style: { '--icon-size': "".concat(iconSize, "px") }, children: jsxs(Stack, { className: style$d.container, position: "horizontal", children: [icon, jsx("span", { className: style$d.label, children: label })] }) }, key));
|
|
565
565
|
};
|
|
566
566
|
|
|
567
567
|
var style$c = {"root":"list-module__root__OXx93"};
|