@kaio-xyz/design-system 1.0.39 → 1.0.41

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.esm.js CHANGED
@@ -240,16 +240,16 @@ var SvgLoadingCircle = function SvgLoadingCircle(props) {
240
240
  })));
241
241
  };
242
242
 
243
- var style$f = {"root":"stack-module__root__AqSLk"};
243
+ var style$h = {"root":"stack-module__root__AqSLk"};
244
244
 
245
245
  var Stack = function (_a) {
246
246
  var children = _a.children, _b = _a.space, space = _b === void 0 ? "s" : _b, className = _a.className, _c = _a.position, position = _c === void 0 ? "vertical" : _c, _d = _a.fullHeight, fullHeight = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, dataTest = _a.dataTest, dataAlignItems = _a.dataAlignItems, dataCapitalize = _a.dataCapitalize, dataMarginTop = _a.dataMarginTop, dataMarginBottom = _a.dataMarginBottom, dataMarginLeft = _a.dataMarginLeft, dataPaddingBottom = _a.dataPaddingBottom, rest = __rest(_a, ["children", "space", "className", "position", "fullHeight", "fullWidth", "dataTest", "dataAlignItems", "dataCapitalize", "dataMarginTop", "dataMarginBottom", "dataMarginLeft", "dataPaddingBottom"]);
247
- return (jsx("div", __assign({ className: clsx(style$f.root, className), "data-space": space, "data-position": position, "data-full-width": fullWidth, "data-full-height": fullHeight, "data-test": dataTest, "data-align-items": dataAlignItems, "data-capitalize": dataCapitalize, "data-margin-top": dataMarginTop, "data-margin-bottom": dataMarginBottom, "data-margin-left": dataMarginLeft, "data-padding-bottom": dataPaddingBottom }, rest, { children: children })));
247
+ return (jsx("div", __assign({ className: clsx(style$h.root, className), "data-space": space, "data-position": position, "data-full-width": fullWidth, "data-full-height": fullHeight, "data-test": dataTest, "data-align-items": dataAlignItems, "data-capitalize": dataCapitalize, "data-margin-top": dataMarginTop, "data-margin-bottom": dataMarginBottom, "data-margin-left": dataMarginLeft, "data-padding-bottom": dataPaddingBottom }, rest, { children: children })));
248
248
  };
249
249
 
250
250
  var baseStyle = {"root":"badge-base-module__root__oUZlm"};
251
251
 
252
- var style$e = {"root":"badge-module__root__rXpaz"};
252
+ var style$g = {"root":"badge-module__root__rXpaz"};
253
253
 
254
254
  var BadgeStatuses = {
255
255
  success: "success",
@@ -268,16 +268,16 @@ var Badge = function (_a) {
268
268
  default: return jsx(SvgCircleDashed, {});
269
269
  }
270
270
  }, [status]);
271
- return (jsx("label", __assign({ className: clsx(baseStyle.root, style$e.root), title: text, "data-status": status, "data-full-width": fullWidth, "data-test": dataTest, "data-reverted": reverted, "data-size": size }, props, { children: jsxs(Stack, { position: "horizontal", children: [hasIcon && icon, text] }) })));
271
+ return (jsx("label", __assign({ className: clsx(baseStyle.root, style$g.root), title: text, "data-status": status, "data-full-width": fullWidth, "data-test": dataTest, "data-reverted": reverted, "data-size": size }, props, { children: jsxs(Stack, { position: "horizontal", children: [hasIcon && icon, text] }) })));
272
272
  };
273
273
 
274
- var style$d = {"root":"button-module__root__CDCDX"};
274
+ var style$f = {"root":"button-module__root__CDCDX"};
275
275
 
276
- var style$c = {"root":"spinned-icon-module__root__xchkj"};
276
+ var style$e = {"root":"spinned-icon-module__root__xchkj"};
277
277
 
278
278
  var SpinnedIcon = function (_a) {
279
279
  var _b = _a.size, size = _b === void 0 ? 22 : _b, _c = _a.duration, duration = _c === void 0 ? 1 : _c, _d = _a.className, className = _d === void 0 ? '' : _d, _e = _a.icon, Icon = _e === void 0 ? SvgLoader : _e, rest = __rest(_a, ["size", "duration", "className", "icon"]);
280
- return (jsx("div", { className: clsx(style$c.root, className), style: {
280
+ return (jsx("div", { className: clsx(style$e.root, className), style: {
281
281
  width: size,
282
282
  height: size,
283
283
  animationDuration: "".concat(duration, "s"),
@@ -291,19 +291,19 @@ var Button = forwardRef(function (_a, ref) {
291
291
  var baseIcon = Icon && jsx(Icon, __assign({}, iconProps));
292
292
  var loadingIcon = isLoading && jsx(SpinnedIcon, __assign({ size: iconSize }, iconProps));
293
293
  var iconChild = loadingIcon || baseIcon || null;
294
- var classes = clsx(style$d.root, props.className);
294
+ var classes = clsx(style$f.root, props.className);
295
295
  return (isAnchor(props) ? (jsx("a", __assign({ "aria-disabled": props.disabled, ref: ref }, props, { className: classes, children: props.children }))) : (jsx("button", __assign({ "aria-disabled": props.disabled, ref: ref, type: "button" }, props, { className: classes, "data-type": variant, "data-size": size, "data-full-width": fullWidth, "data-inverted": isInverted, disabled: props.disabled || isLoading, "data-is-loading": isLoading, children: jsxs(Fragment, { children: [iconChild, isLoading ? "Loading" : props.children] }) }))));
296
296
  });
297
297
  Button.displayName = "Button";
298
298
 
299
- var style$b = {"hint":"hint-module__hint__0cpje","children":"hint-module__children__GSZxg"};
299
+ var style$d = {"hint":"hint-module__hint__0cpje","children":"hint-module__children__GSZxg"};
300
300
 
301
301
  var Hint = function (_a) {
302
302
  var children = _a.children, className = _a.className, _b = _a.kind, kind = _b === void 0 ? "info" : _b, attributes = __rest(_a, ["children", "className", "kind"]);
303
- return (jsxs(Stack, __assign({ space: "xs", position: "horizontal", className: clsx(style$b.hint, className), "data-type": kind }, attributes, { children: [jsx(SvgInfo, {}), jsx("span", { className: style$b.children, children: children })] })));
303
+ return (jsxs(Stack, __assign({ space: "xs", position: "horizontal", className: clsx(style$d.hint, className), "data-type": kind }, attributes, { children: [jsx(SvgInfo, {}), jsx("span", { className: style$d.children, children: children })] })));
304
304
  };
305
305
 
306
- var style$a = {"field":"text-field-module__field__iZ0TF","label":"text-field-module__label__ClJkz","container":"text-field-module__container__IKtNZ","fieldWrapper":"text-field-module__fieldWrapper__nQ7l8","textField":"text-field-module__textField__756eR","hint":"text-field-module__hint__Ad6VA"};
306
+ var style$c = {"field":"text-field-module__field__iZ0TF","label":"text-field-module__label__ClJkz","container":"text-field-module__container__IKtNZ","fieldWrapper":"text-field-module__fieldWrapper__nQ7l8","textField":"text-field-module__textField__756eR","hint":"text-field-module__hint__Ad6VA"};
307
307
 
308
308
  var TextField = forwardRef(function (_a, ref) {
309
309
  var className = _a.className, disabled = _a.disabled, hint = _a.hint, id = _a.id, label = _a.label, onChange = _a.onChange, readOnly = _a.readOnly, invalid = _a.invalid, button = _a.button, _b = _a.fullWidth, fullWidth = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? "default" : _c, _d = _a.noPadding, noPadding = _d === void 0 ? false : _d, _e = _a.floatingLabel, floatingLabel = _e === void 0 ? true : _e, value = _a.value, defaultValue = _a.defaultValue, onFocus = _a.onFocus, onBlur = _a.onBlur, attributes = __rest(_a, ["className", "disabled", "hint", "id", "label", "onChange", "readOnly", "invalid", "button", "fullWidth", "size", "noPadding", "floatingLabel", "value", "defaultValue", "onFocus", "onBlur"]);
@@ -340,28 +340,28 @@ var TextField = forwardRef(function (_a, ref) {
340
340
  setHasValue(e.target.value.length > 0);
341
341
  onChange === null || onChange === void 0 ? void 0 : onChange(e);
342
342
  };
343
- return (jsx("fieldset", { "aria-disabled": disabled, disabled: disabled, className: clsx(style$a.textField, className), "data-no-padding": noPadding, "data-full-width": fullWidth, children: jsxs("div", { className: style$a.container, "data-has-label": !!label, "data-has-hint": !!hint, "data-has-button": !!button, "data-floating-label": floatingLabel, children: [label && (jsx("label", { className: style$a.label, htmlFor: id, "data-floating": floatingLabel, "data-active": isLabelFloating, children: label })), jsxs("div", { className: style$a.fieldWrapper, children: [jsx("input", __assign({ "aria-readonly": readOnly, className: style$a.field, readOnly: readOnly, "data-type": "single", "data-size": size, "data-floating-label": floatingLabel, id: id, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur, "data-invalid": invalid, ref: inputRef, type: "text", value: value, defaultValue: defaultValue }, attributes)), button ? button : null] }), hint && jsx(Hint, { kind: "error", className: style$a.hint, children: hint })] }) }));
343
+ return (jsx("fieldset", { "aria-disabled": disabled, disabled: disabled, className: clsx(style$c.textField, className), "data-no-padding": noPadding, "data-full-width": fullWidth, children: jsxs("div", { className: style$c.container, "data-has-label": !!label, "data-has-hint": !!hint, "data-has-button": !!button, "data-floating-label": floatingLabel, children: [label && (jsx("label", { className: style$c.label, htmlFor: id, "data-floating": floatingLabel, "data-active": isLabelFloating, children: label })), jsxs("div", { className: style$c.fieldWrapper, children: [jsx("input", __assign({ "aria-readonly": readOnly, className: style$c.field, readOnly: readOnly, "data-type": "single", "data-size": size, "data-floating-label": floatingLabel, id: id, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur, "data-invalid": invalid, ref: inputRef, type: "text", value: value, defaultValue: defaultValue }, attributes)), button ? button : null] }), hint && jsx(Hint, { kind: "error", className: style$c.hint, children: hint })] }) }));
344
344
  });
345
345
  TextField.displayName = "TextField";
346
346
 
347
- var style$9 = {"container":"container-module__container__CAxQw"};
347
+ var style$b = {"container":"container-module__container__CAxQw"};
348
348
 
349
349
  var Container = function (_a) {
350
350
  var children = _a.children, className = _a.className, size = _a.size, noPadding = _a.noPadding, attributes = __rest(_a, ["children", "className", "size", "noPadding"]);
351
- return (jsx("div", __assign({ className: clsx(style$9.container, className) }, size ? { "data-size": size } : {}, { "data-nopadding": noPadding }, attributes, { children: children })));
351
+ return (jsx("div", __assign({ className: clsx(style$b.container, className) }, size ? { "data-size": size } : {}, { "data-nopadding": noPadding }, attributes, { children: children })));
352
352
  };
353
353
 
354
- var style$8 = {"field":"password-field-module__field__-sFqA","button":"password-field-module__button__FtG9V"};
354
+ var style$a = {"field":"password-field-module__field__-sFqA","button":"password-field-module__button__FtG9V"};
355
355
 
356
356
  var PasswordField = forwardRef(function (_a, ref) {
357
357
  var disabled = _a.disabled, rest = __rest(_a, ["disabled"]);
358
358
  var _b = useState(false), isPasswordVisible = _b[0], setIsPasswordVisible = _b[1];
359
- var button = (jsx("button", { onClick: function () { return setIsPasswordVisible(function (prev) { return !prev; }); }, type: "button", disabled: disabled, className: style$8.button, children: isPasswordVisible ? jsx(SvgEyeOpen, {}) : jsx(SvgEyeClosed, {}) }));
360
- return (jsx(TextField, __assign({ disabled: disabled }, rest, { ref: ref, type: isPasswordVisible ? "text" : "password", button: button, className: style$8.field })));
359
+ var button = (jsx("button", { onClick: function () { return setIsPasswordVisible(function (prev) { return !prev; }); }, type: "button", disabled: disabled, className: style$a.button, children: isPasswordVisible ? jsx(SvgEyeOpen, {}) : jsx(SvgEyeClosed, {}) }));
360
+ return (jsx(TextField, __assign({ disabled: disabled }, rest, { ref: ref, type: isPasswordVisible ? "text" : "password", button: button, className: style$a.field })));
361
361
  });
362
362
  PasswordField.displayName = "PasswordField";
363
363
 
364
- var style$7 = {"validator":"validate-password-field-module__validator__Do-6w"};
364
+ var style$9 = {"validator":"validate-password-field-module__validator__Do-6w"};
365
365
 
366
366
  var rules = {
367
367
  length: /^.{8,}$/,
@@ -386,19 +386,19 @@ var ValidatePasswordField = forwardRef(function (_a, ref) {
386
386
  useEffect(function () {
387
387
  setIsPasswordValid === null || setIsPasswordValid === void 0 ? void 0 : setIsPasswordValid(isLenghtCheckOk && isCaseCheckOk && isNumberCheckOk && isSpecialCheckOk);
388
388
  }, [isLenghtCheckOk, isCaseCheckOk, isNumberCheckOk, isSpecialCheckOk, setIsPasswordValid]);
389
- var getValidator = function (isCheckOk, label) { return (jsxs(Stack, { position: "horizontal", className: style$7.validator, "data-is-valid": isCheckOk, children: [isCheckOk ? jsx(SvgCheck, {}) : jsx(SvgCircleDashed, {}), jsx("p", { children: label })] })); };
389
+ var getValidator = function (isCheckOk, label) { return (jsxs(Stack, { position: "horizontal", className: style$9.validator, "data-is-valid": isCheckOk, children: [isCheckOk ? jsx(SvgCheck, {}) : jsx(SvgCircleDashed, {}), jsx("p", { children: label })] })); };
390
390
  return (jsxs(Stack, { space: "m", children: [jsx(PasswordField, __assign({ onChange: onHandleChange, ref: ref }, rest)), jsxs(Stack, { children: [getValidator(isLenghtCheckOk, "At least 8 characters"), getValidator(isCaseCheckOk, "Include uppercase & lowercase letters"), getValidator(isNumberCheckOk, "Include at least one number"), getValidator(isSpecialCheckOk, "Include at least one special character (allowed: @ $ ! % * ? & _ #)")] })] }));
391
391
  });
392
392
  ValidatePasswordField.displayName = "ValidatePasswordField";
393
393
 
394
- var style$6 = {"root":"label-module__root__34bJr"};
394
+ var style$8 = {"root":"label-module__root__34bJr"};
395
395
 
396
396
  var Label = function (_a) {
397
397
  var id = _a.id, label = _a.label, className = _a.className, _b = _a.hasMargin, hasMargin = _b === void 0 ? true : _b, _c = _a.hasHalfMargin, hasHalfMargin = _c === void 0 ? false : _c, _d = _a.hasCursorPointer, hasCursorPointer = _d === void 0 ? false : _d;
398
- return (jsx("label", { className: clsx(style$6.root, className), htmlFor: id, "data-margin-bottom": hasMargin, "data-half-margin-bottom": hasHalfMargin, "data-has-cursor-pointer": hasCursorPointer, children: label }));
398
+ return (jsx("label", { className: clsx(style$8.root, className), htmlFor: id, "data-margin-bottom": hasMargin, "data-half-margin-bottom": hasHalfMargin, "data-has-cursor-pointer": hasCursorPointer, children: label }));
399
399
  };
400
400
 
401
- var style$5 = {"label":"select-module__label__EWUYF","selector":"select-module__selector__55oxp","hint":"select-module__hint__SPtu-"};
401
+ var style$7 = {"label":"select-module__label__EWUYF","selector":"select-module__selector__55oxp","hint":"select-module__hint__SPtu-"};
402
402
 
403
403
  var IconAndLabel = function (_a) {
404
404
  var children = _a.children, Icon = _a.icon;
@@ -419,7 +419,7 @@ var CustomSingleValue = function (_a) {
419
419
  };
420
420
  var Select = function (_a) {
421
421
  var id = _a.id, label = _a.label, dataTest = _a.dataTest, isDisabled = _a.isDisabled, className = _a.className, error = _a.error, customComponents = _a.components, rest = __rest(_a, ["id", "label", "dataTest", "isDisabled", "className", "error", "components"]);
422
- return (jsxs("div", { className: clsx(style$5.root, className), children: [label && jsx(Label, { id: id, label: label, className: style$5.label }), jsxs("div", { "data-test": dataTest, className: style$5.selector, "data-error": !!error, children: [jsx(ReactSelect, __assign({ id: id, classNamePrefix: "select", components: __assign(__assign({}, customComponents), { IndicatorSeparator: function () { return null; }, Option: CustomOption, SingleValue: CustomSingleValue, DropdownIndicator: CustomDropdownIndicator, MultiValueLabel: CustomMultiValueLabel }) }, rest, { isDisabled: isDisabled })), error && jsx(Hint, { kind: "error", className: style$5.hint, children: error })] })] }));
422
+ return (jsxs("div", { className: clsx(style$7.root, className), children: [label && jsx(Label, { id: id, label: label, className: style$7.label }), jsxs("div", { "data-test": dataTest, className: style$7.selector, "data-error": !!error, children: [jsx(ReactSelect, __assign({ id: id, classNamePrefix: "select", components: __assign(__assign({}, customComponents), { IndicatorSeparator: function () { return null; }, Option: CustomOption, SingleValue: CustomSingleValue, DropdownIndicator: CustomDropdownIndicator, MultiValueLabel: CustomMultiValueLabel }) }, rest, { isDisabled: isDisabled })), error && jsx(Hint, { kind: "error", className: style$7.hint, children: error })] })] }));
423
423
  };
424
424
  Select.displayName = "Select";
425
425
 
@@ -432,14 +432,14 @@ var FormSelect = function (_a) {
432
432
  };
433
433
  FormSelect.displayName = "FormSelect";
434
434
 
435
- var style$4 = {"root":"loader-module__root__qnInQ"};
435
+ var style$6 = {"root":"loader-module__root__qnInQ"};
436
436
 
437
437
  var Loader = function (_a) {
438
438
  var text = _a.text, _b = _a.fullPage, fullPage = _b === void 0 ? true : _b, _c = _a.isLightOverlay, isLightOverlay = _c === void 0 ? false : _c, children = _a.children;
439
- return (jsx("div", { className: style$4.root, "data-full-page": fullPage, "data-is-light-overlay": isLightOverlay, children: jsxs(Stack, { dataAlignItems: "center", children: [jsx(SpinnedIcon, { size: 50 }), text && jsx("p", { children: text }), children] }) }));
439
+ return (jsx("div", { className: style$6.root, "data-full-page": fullPage, "data-is-light-overlay": isLightOverlay, children: jsxs(Stack, { dataAlignItems: "center", children: [jsx(SpinnedIcon, { size: 50 }), text && jsx("p", { children: text }), children] }) }));
440
440
  };
441
441
 
442
- var style$3 = {"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"};
442
+ var style$5 = {"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"};
443
443
 
444
444
  var Checkbox = function (_a) {
445
445
  var className = _a.className, disabled = _a.disabled, id = _a.id, label = _a.label, _b = _a.verticalAlign, verticalAlign = _b === void 0 ? "center" : _b, onChange = _a.onChange, dataTest = _a.dataTest, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.variant, variant = _d === void 0 ? "primary" : _d, _e = _a.indeterminate, indeterminate = _e === void 0 ? false : _e, checked = _a.checked, attributes = __rest(_a, ["className", "disabled", "id", "label", "verticalAlign", "onChange", "dataTest", "size", "variant", "indeterminate", "checked"]);
@@ -452,11 +452,11 @@ var Checkbox = function (_a) {
452
452
  var dynamicStyle = {
453
453
  "--vAlign": verticalAlign,
454
454
  };
455
- return (jsxs("label", { style: dynamicStyle, className: clsx(style$3.root, className), "data-disabled": disabled, "data-size": size, "data-variant": variant, children: [jsxs("span", { className: style$3.frame, children: [jsx("input", __assign({ "aria-disabled": disabled, disabled: disabled, onChange: onChange, type: "checkbox", ref: inputRef, checked: checked }, attributes, { id: id, "data-test": dataTest })), jsxs("span", { className: style$3.customCheckbox, "aria-hidden": "true", children: [checked && !indeterminate && (jsx(SvgCheck, { className: style$3.icon })), indeterminate && (jsx(SvgMinus, { className: style$3.icon }))] })] }), label && jsx("span", { className: style$3.label, children: label })] }));
455
+ return (jsxs("label", { style: dynamicStyle, className: clsx(style$5.root, className), "data-disabled": disabled, "data-size": size, "data-variant": variant, children: [jsxs("span", { className: style$5.frame, children: [jsx("input", __assign({ "aria-disabled": disabled, disabled: disabled, onChange: onChange, type: "checkbox", ref: inputRef, checked: checked }, attributes, { id: id, "data-test": dataTest })), jsxs("span", { className: style$5.customCheckbox, "aria-hidden": "true", children: [checked && !indeterminate && (jsx(SvgCheck, { className: style$5.icon })), indeterminate && (jsx(SvgMinus, { className: style$5.icon }))] })] }), label && jsx("span", { className: style$5.label, children: label })] }));
456
456
  };
457
457
  Checkbox.displayName = "Checkbox";
458
458
 
459
- var style$2 = {"root":"clipboard-module__root__wVZhy"};
459
+ var style$4 = {"root":"clipboard-module__root__wVZhy"};
460
460
 
461
461
  var trimString = function (str, noOfChars) {
462
462
  if (noOfChars === void 0) { noOfChars = 4; }
@@ -481,29 +481,43 @@ var Clipboard = function (_a) {
481
481
  }, [value]);
482
482
  var text = isShowingCopy ? 'Copied!' : displayValue;
483
483
  var icon = isShowingCopy ? jsx(SvgCheck, {}) : jsx(SvgClipboard, {});
484
- return (jsx("button", { type: "button", onClick: handleClick, className: style$2.root, "data-is-copied": isCopied, "data-is-showing-copy": isShowingCopy, children: jsxs(Stack, { position: "horizontal", children: [jsx("span", { children: text }), icon] }) }));
484
+ return (jsx("button", { type: "button", onClick: handleClick, className: style$4.root, "data-is-copied": isCopied, "data-is-showing-copy": isShowingCopy, children: jsxs(Stack, { position: "horizontal", children: [jsx("span", { children: text }), icon] }) }));
485
485
  };
486
486
 
487
- var style$1 = {"root":"stepper-module__root__hgDss"};
487
+ var style$3 = {"root":"stepper-module__root__hgDss"};
488
488
 
489
489
  var Stepper = function (_a) {
490
490
  var children = _a.children;
491
- return (jsx("ul", { className: style$1.root, children: children }));
491
+ return (jsx("ul", { className: style$3.root, children: children }));
492
492
  };
493
493
 
494
- var style = {"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"};
494
+ var style$2 = {"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"};
495
495
 
496
496
  var Step = function (_a) {
497
- var 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;
497
+ 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;
498
498
  var icon = useMemo(function () {
499
499
  switch (true) {
500
- case isCompleted: return jsx(SvgCheck, { className: style.checkIcon });
501
- case isCurrent: return jsx(SpinnedIcon, { icon: SvgLoadingCircle, size: iconSize, className: style.loadingIcon });
502
- default: return jsx("span", { className: style.emptyIcon });
500
+ case isCompleted: return jsx(SvgCheck, { className: style$2.checkIcon });
501
+ case isCurrent: return jsx(SpinnedIcon, { icon: SvgLoadingCircle, size: iconSize, className: style$2.loadingIcon });
502
+ default: return jsx("span", { className: style$2.emptyIcon });
503
503
  }
504
504
  }, [isCompleted, isCurrent]);
505
- return (jsx("li", { className: style.root, "data-is-current": isCurrent, style: { '--icon-size': "".concat(iconSize, "px") }, children: jsxs(Stack, { className: style.container, position: "horizontal", children: [icon, jsx("span", { className: style.label, children: label })] }) }));
505
+ return (jsx("li", { className: style$2.root, "data-is-current": isCurrent, style: { '--icon-size': "".concat(iconSize, "px") }, children: jsxs(Stack, { className: style$2.container, position: "horizontal", children: [icon, jsx("span", { className: style$2.label, children: label })] }) }, key));
506
506
  };
507
507
 
508
- export { Badge, Button, Checkbox, Clipboard, Container, FormSelect, Loader, PasswordField, Select, SpinnedIcon, Stack, Step, Stepper, TextField, ValidatePasswordField };
508
+ var style$1 = {"root":"list-module__root__OXx93"};
509
+
510
+ var List = function (_a) {
511
+ var label = _a.label, children = _a.children;
512
+ return (jsxs(Stack, { className: style$1.root, children: [label && jsx("p", { children: label }), jsx("ul", { children: children })] }));
513
+ };
514
+
515
+ var style = {"root":"list-item-module__root__-fOHc","label":"list-item-module__label__rMBF5","value":"list-item-module__value__A3HYb"};
516
+
517
+ var ListItem = function (_a) {
518
+ var value = _a.value, label = _a.label, key = _a.key;
519
+ return (jsx("li", { children: jsxs(Stack, { position: "horizontal-space", space: "m", className: style.root, dataAlignItems: "flex-start", children: [jsx("span", { className: style.label, children: label }), jsx("span", { className: style.value, children: value })] }) }, key));
520
+ };
521
+
522
+ export { Badge, Button, Checkbox, Clipboard, Container, FormSelect, List, ListItem, Loader, PasswordField, Select, SpinnedIcon, Stack, Step, Stepper, TextField, ValidatePasswordField };
509
523
  //# sourceMappingURL=index.esm.js.map