@kaio-xyz/design-system 1.0.39 → 1.0.40
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/components/atoms/list/index.d.ts +2 -0
- package/dist/components/atoms/list/list-item/index.d.ts +1 -0
- package/dist/components/atoms/list/list-item/list-item.d.ts +6 -0
- package/dist/components/atoms/list/list.d.ts +7 -0
- package/dist/components/atoms/list/list.stories.d.ts +12 -0
- package/dist/index.cjs.js +52 -36
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +51 -37
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ListItem } from './list-item';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { List } from './list';
|
|
3
|
+
declare const meta: Meta<typeof List>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof List>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithLabel: Story;
|
|
8
|
+
export declare const OrderSummary: Story;
|
|
9
|
+
export declare const SingleItem: Story;
|
|
10
|
+
export declare const Empty: Story;
|
|
11
|
+
export declare const LongContent: Story;
|
|
12
|
+
export declare const Overflow: Story;
|
package/dist/index.cjs.js
CHANGED
|
@@ -260,16 +260,16 @@ var SvgLoadingCircle = function SvgLoadingCircle(props) {
|
|
|
260
260
|
})));
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
var style$
|
|
263
|
+
var style$h = {"root":"stack-module__root__AqSLk"};
|
|
264
264
|
|
|
265
265
|
var Stack = function (_a) {
|
|
266
266
|
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"]);
|
|
267
|
-
return (jsxRuntime.jsx("div", __assign({ className: clsx(style$
|
|
267
|
+
return (jsxRuntime.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 })));
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
var baseStyle = {"root":"badge-base-module__root__oUZlm"};
|
|
271
271
|
|
|
272
|
-
var style$
|
|
272
|
+
var style$g = {"root":"badge-module__root__rXpaz"};
|
|
273
273
|
|
|
274
274
|
var BadgeStatuses = {
|
|
275
275
|
success: "success",
|
|
@@ -288,16 +288,16 @@ var Badge = function (_a) {
|
|
|
288
288
|
default: return jsxRuntime.jsx(SvgCircleDashed, {});
|
|
289
289
|
}
|
|
290
290
|
}, [status]);
|
|
291
|
-
return (jsxRuntime.jsx("label", __assign({ className: clsx(baseStyle.root, style$
|
|
291
|
+
return (jsxRuntime.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: jsxRuntime.jsxs(Stack, { position: "horizontal", children: [hasIcon && icon, text] }) })));
|
|
292
292
|
};
|
|
293
293
|
|
|
294
|
-
var style$
|
|
294
|
+
var style$f = {"root":"button-module__root__CDCDX"};
|
|
295
295
|
|
|
296
|
-
var style$
|
|
296
|
+
var style$e = {"root":"spinned-icon-module__root__xchkj"};
|
|
297
297
|
|
|
298
298
|
var SpinnedIcon = function (_a) {
|
|
299
299
|
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"]);
|
|
300
|
-
return (jsxRuntime.jsx("div", { className: clsx(style$
|
|
300
|
+
return (jsxRuntime.jsx("div", { className: clsx(style$e.root, className), style: {
|
|
301
301
|
width: size,
|
|
302
302
|
height: size,
|
|
303
303
|
animationDuration: "".concat(duration, "s"),
|
|
@@ -311,19 +311,19 @@ var Button = React.forwardRef(function (_a, ref) {
|
|
|
311
311
|
var baseIcon = Icon && jsxRuntime.jsx(Icon, __assign({}, iconProps));
|
|
312
312
|
var loadingIcon = isLoading && jsxRuntime.jsx(SpinnedIcon, __assign({ size: iconSize }, iconProps));
|
|
313
313
|
var iconChild = loadingIcon || baseIcon || null;
|
|
314
|
-
var classes = clsx(style$
|
|
314
|
+
var classes = clsx(style$f.root, props.className);
|
|
315
315
|
return (isAnchor(props) ? (jsxRuntime.jsx("a", __assign({ "aria-disabled": props.disabled, ref: ref }, props, { className: classes, children: props.children }))) : (jsxRuntime.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: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [iconChild, isLoading ? "Loading" : props.children] }) }))));
|
|
316
316
|
});
|
|
317
317
|
Button.displayName = "Button";
|
|
318
318
|
|
|
319
|
-
var style$
|
|
319
|
+
var style$d = {"hint":"hint-module__hint__0cpje","children":"hint-module__children__GSZxg"};
|
|
320
320
|
|
|
321
321
|
var Hint = function (_a) {
|
|
322
322
|
var children = _a.children, className = _a.className, _b = _a.kind, kind = _b === void 0 ? "info" : _b, attributes = __rest(_a, ["children", "className", "kind"]);
|
|
323
|
-
return (jsxRuntime.jsxs(Stack, __assign({ space: "xs", position: "horizontal", className: clsx(style$
|
|
323
|
+
return (jsxRuntime.jsxs(Stack, __assign({ space: "xs", position: "horizontal", className: clsx(style$d.hint, className), "data-type": kind }, attributes, { children: [jsxRuntime.jsx(SvgInfo, {}), jsxRuntime.jsx("span", { className: style$d.children, children: children })] })));
|
|
324
324
|
};
|
|
325
325
|
|
|
326
|
-
var style$
|
|
326
|
+
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"};
|
|
327
327
|
|
|
328
328
|
var TextField = React.forwardRef(function (_a, ref) {
|
|
329
329
|
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"]);
|
|
@@ -360,28 +360,28 @@ var TextField = React.forwardRef(function (_a, ref) {
|
|
|
360
360
|
setHasValue(e.target.value.length > 0);
|
|
361
361
|
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
362
362
|
};
|
|
363
|
-
return (jsxRuntime.jsx("fieldset", { "aria-disabled": disabled, disabled: disabled, className: clsx(style$
|
|
363
|
+
return (jsxRuntime.jsx("fieldset", { "aria-disabled": disabled, disabled: disabled, className: clsx(style$c.textField, className), "data-no-padding": noPadding, "data-full-width": fullWidth, children: jsxRuntime.jsxs("div", { className: style$c.container, "data-has-label": !!label, "data-has-hint": !!hint, "data-has-button": !!button, "data-floating-label": floatingLabel, children: [label && (jsxRuntime.jsx("label", { className: style$c.label, htmlFor: id, "data-floating": floatingLabel, "data-active": isLabelFloating, children: label })), jsxRuntime.jsxs("div", { className: style$c.fieldWrapper, children: [jsxRuntime.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 && jsxRuntime.jsx(Hint, { kind: "error", className: style$c.hint, children: hint })] }) }));
|
|
364
364
|
});
|
|
365
365
|
TextField.displayName = "TextField";
|
|
366
366
|
|
|
367
|
-
var style$
|
|
367
|
+
var style$b = {"container":"container-module__container__CAxQw"};
|
|
368
368
|
|
|
369
369
|
var Container = function (_a) {
|
|
370
370
|
var children = _a.children, className = _a.className, size = _a.size, noPadding = _a.noPadding, attributes = __rest(_a, ["children", "className", "size", "noPadding"]);
|
|
371
|
-
return (jsxRuntime.jsx("div", __assign({ className: clsx(style$
|
|
371
|
+
return (jsxRuntime.jsx("div", __assign({ className: clsx(style$b.container, className) }, size ? { "data-size": size } : {}, { "data-nopadding": noPadding }, attributes, { children: children })));
|
|
372
372
|
};
|
|
373
373
|
|
|
374
|
-
var style$
|
|
374
|
+
var style$a = {"field":"password-field-module__field__-sFqA","button":"password-field-module__button__FtG9V"};
|
|
375
375
|
|
|
376
376
|
var PasswordField = React.forwardRef(function (_a, ref) {
|
|
377
377
|
var disabled = _a.disabled, rest = __rest(_a, ["disabled"]);
|
|
378
378
|
var _b = React.useState(false), isPasswordVisible = _b[0], setIsPasswordVisible = _b[1];
|
|
379
|
-
var button = (jsxRuntime.jsx("button", { onClick: function () { return setIsPasswordVisible(function (prev) { return !prev; }); }, type: "button", disabled: disabled, className: style$
|
|
380
|
-
return (jsxRuntime.jsx(TextField, __assign({ disabled: disabled }, rest, { ref: ref, type: isPasswordVisible ? "text" : "password", button: button, className: style$
|
|
379
|
+
var button = (jsxRuntime.jsx("button", { onClick: function () { return setIsPasswordVisible(function (prev) { return !prev; }); }, type: "button", disabled: disabled, className: style$a.button, children: isPasswordVisible ? jsxRuntime.jsx(SvgEyeOpen, {}) : jsxRuntime.jsx(SvgEyeClosed, {}) }));
|
|
380
|
+
return (jsxRuntime.jsx(TextField, __assign({ disabled: disabled }, rest, { ref: ref, type: isPasswordVisible ? "text" : "password", button: button, className: style$a.field })));
|
|
381
381
|
});
|
|
382
382
|
PasswordField.displayName = "PasswordField";
|
|
383
383
|
|
|
384
|
-
var style$
|
|
384
|
+
var style$9 = {"validator":"validate-password-field-module__validator__Do-6w"};
|
|
385
385
|
|
|
386
386
|
var rules = {
|
|
387
387
|
length: /^.{8,}$/,
|
|
@@ -406,19 +406,19 @@ var ValidatePasswordField = React.forwardRef(function (_a, ref) {
|
|
|
406
406
|
React.useEffect(function () {
|
|
407
407
|
setIsPasswordValid === null || setIsPasswordValid === void 0 ? void 0 : setIsPasswordValid(isLenghtCheckOk && isCaseCheckOk && isNumberCheckOk && isSpecialCheckOk);
|
|
408
408
|
}, [isLenghtCheckOk, isCaseCheckOk, isNumberCheckOk, isSpecialCheckOk, setIsPasswordValid]);
|
|
409
|
-
var getValidator = function (isCheckOk, label) { return (jsxRuntime.jsxs(Stack, { position: "horizontal", className: style$
|
|
409
|
+
var getValidator = function (isCheckOk, label) { return (jsxRuntime.jsxs(Stack, { position: "horizontal", className: style$9.validator, "data-is-valid": isCheckOk, children: [isCheckOk ? jsxRuntime.jsx(SvgCheck, {}) : jsxRuntime.jsx(SvgCircleDashed, {}), jsxRuntime.jsx("p", { children: label })] })); };
|
|
410
410
|
return (jsxRuntime.jsxs(Stack, { space: "m", children: [jsxRuntime.jsx(PasswordField, __assign({ onChange: onHandleChange, ref: ref }, rest)), jsxRuntime.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: @ $ ! % * ? & _ #)")] })] }));
|
|
411
411
|
});
|
|
412
412
|
ValidatePasswordField.displayName = "ValidatePasswordField";
|
|
413
413
|
|
|
414
|
-
var style$
|
|
414
|
+
var style$8 = {"root":"label-module__root__34bJr"};
|
|
415
415
|
|
|
416
416
|
var Label = function (_a) {
|
|
417
417
|
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;
|
|
418
|
-
return (jsxRuntime.jsx("label", { className: clsx(style$
|
|
418
|
+
return (jsxRuntime.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 }));
|
|
419
419
|
};
|
|
420
420
|
|
|
421
|
-
var style$
|
|
421
|
+
var style$7 = {"label":"select-module__label__EWUYF","selector":"select-module__selector__55oxp","hint":"select-module__hint__SPtu-"};
|
|
422
422
|
|
|
423
423
|
var IconAndLabel = function (_a) {
|
|
424
424
|
var children = _a.children, Icon = _a.icon;
|
|
@@ -439,7 +439,7 @@ var CustomSingleValue = function (_a) {
|
|
|
439
439
|
};
|
|
440
440
|
var Select = function (_a) {
|
|
441
441
|
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"]);
|
|
442
|
-
return (jsxRuntime.jsxs("div", { className: clsx(style$
|
|
442
|
+
return (jsxRuntime.jsxs("div", { className: clsx(style$7.root, className), children: [label && jsxRuntime.jsx(Label, { id: id, label: label, className: style$7.label }), jsxRuntime.jsxs("div", { "data-test": dataTest, className: style$7.selector, "data-error": !!error, children: [jsxRuntime.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 && jsxRuntime.jsx(Hint, { kind: "error", className: style$7.hint, children: error })] })] }));
|
|
443
443
|
};
|
|
444
444
|
Select.displayName = "Select";
|
|
445
445
|
|
|
@@ -452,14 +452,14 @@ var FormSelect = function (_a) {
|
|
|
452
452
|
};
|
|
453
453
|
FormSelect.displayName = "FormSelect";
|
|
454
454
|
|
|
455
|
-
var style$
|
|
455
|
+
var style$6 = {"root":"loader-module__root__qnInQ"};
|
|
456
456
|
|
|
457
457
|
var Loader = function (_a) {
|
|
458
458
|
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;
|
|
459
|
-
return (jsxRuntime.jsx("div", { className: style$
|
|
459
|
+
return (jsxRuntime.jsx("div", { className: style$6.root, "data-full-page": fullPage, "data-is-light-overlay": isLightOverlay, children: jsxRuntime.jsxs(Stack, { dataAlignItems: "center", children: [jsxRuntime.jsx(SpinnedIcon, { size: 50 }), text && jsxRuntime.jsx("p", { children: text }), children] }) }));
|
|
460
460
|
};
|
|
461
461
|
|
|
462
|
-
var style$
|
|
462
|
+
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"};
|
|
463
463
|
|
|
464
464
|
var Checkbox = function (_a) {
|
|
465
465
|
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"]);
|
|
@@ -472,11 +472,11 @@ var Checkbox = function (_a) {
|
|
|
472
472
|
var dynamicStyle = {
|
|
473
473
|
"--vAlign": verticalAlign,
|
|
474
474
|
};
|
|
475
|
-
return (jsxRuntime.jsxs("label", { style: dynamicStyle, className: clsx(style$
|
|
475
|
+
return (jsxRuntime.jsxs("label", { style: dynamicStyle, className: clsx(style$5.root, className), "data-disabled": disabled, "data-size": size, "data-variant": variant, children: [jsxRuntime.jsxs("span", { className: style$5.frame, children: [jsxRuntime.jsx("input", __assign({ "aria-disabled": disabled, disabled: disabled, onChange: onChange, type: "checkbox", ref: inputRef, checked: checked }, attributes, { id: id, "data-test": dataTest })), jsxRuntime.jsxs("span", { className: style$5.customCheckbox, "aria-hidden": "true", children: [checked && !indeterminate && (jsxRuntime.jsx(SvgCheck, { className: style$5.icon })), indeterminate && (jsxRuntime.jsx(SvgMinus, { className: style$5.icon }))] })] }), label && jsxRuntime.jsx("span", { className: style$5.label, children: label })] }));
|
|
476
476
|
};
|
|
477
477
|
Checkbox.displayName = "Checkbox";
|
|
478
478
|
|
|
479
|
-
var style$
|
|
479
|
+
var style$4 = {"root":"clipboard-module__root__wVZhy"};
|
|
480
480
|
|
|
481
481
|
var trimString = function (str, noOfChars) {
|
|
482
482
|
if (noOfChars === void 0) { noOfChars = 4; }
|
|
@@ -501,28 +501,42 @@ var Clipboard = function (_a) {
|
|
|
501
501
|
}, [value]);
|
|
502
502
|
var text = isShowingCopy ? 'Copied!' : displayValue;
|
|
503
503
|
var icon = isShowingCopy ? jsxRuntime.jsx(SvgCheck, {}) : jsxRuntime.jsx(SvgClipboard, {});
|
|
504
|
-
return (jsxRuntime.jsx("button", { type: "button", onClick: handleClick, className: style$
|
|
504
|
+
return (jsxRuntime.jsx("button", { type: "button", onClick: handleClick, className: style$4.root, "data-is-copied": isCopied, "data-is-showing-copy": isShowingCopy, children: jsxRuntime.jsxs(Stack, { position: "horizontal", children: [jsxRuntime.jsx("span", { children: text }), icon] }) }));
|
|
505
505
|
};
|
|
506
506
|
|
|
507
|
-
var style$
|
|
507
|
+
var style$3 = {"root":"stepper-module__root__hgDss"};
|
|
508
508
|
|
|
509
509
|
var Stepper = function (_a) {
|
|
510
510
|
var children = _a.children;
|
|
511
|
-
return (jsxRuntime.jsx("ul", { className: style$
|
|
511
|
+
return (jsxRuntime.jsx("ul", { className: style$3.root, children: children }));
|
|
512
512
|
};
|
|
513
513
|
|
|
514
|
-
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"};
|
|
514
|
+
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"};
|
|
515
515
|
|
|
516
516
|
var Step = function (_a) {
|
|
517
517
|
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;
|
|
518
518
|
var icon = React.useMemo(function () {
|
|
519
519
|
switch (true) {
|
|
520
|
-
case isCompleted: return jsxRuntime.jsx(SvgCheck, { className: style.checkIcon });
|
|
521
|
-
case isCurrent: return jsxRuntime.jsx(SpinnedIcon, { icon: SvgLoadingCircle, size: iconSize, className: style.loadingIcon });
|
|
522
|
-
default: return jsxRuntime.jsx("span", { className: style.emptyIcon });
|
|
520
|
+
case isCompleted: return jsxRuntime.jsx(SvgCheck, { className: style$2.checkIcon });
|
|
521
|
+
case isCurrent: return jsxRuntime.jsx(SpinnedIcon, { icon: SvgLoadingCircle, size: iconSize, className: style$2.loadingIcon });
|
|
522
|
+
default: return jsxRuntime.jsx("span", { className: style$2.emptyIcon });
|
|
523
523
|
}
|
|
524
524
|
}, [isCompleted, isCurrent]);
|
|
525
|
-
return (jsxRuntime.jsx("li", { className: style.root, "data-is-current": isCurrent, style: { '--icon-size': "".concat(iconSize, "px") }, children: jsxRuntime.jsxs(Stack, { className: style.container, position: "horizontal", children: [icon, jsxRuntime.jsx("span", { className: style.label, children: label })] }) }));
|
|
525
|
+
return (jsxRuntime.jsx("li", { className: style$2.root, "data-is-current": isCurrent, style: { '--icon-size': "".concat(iconSize, "px") }, children: jsxRuntime.jsxs(Stack, { className: style$2.container, position: "horizontal", children: [icon, jsxRuntime.jsx("span", { className: style$2.label, children: label })] }) }));
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
var style$1 = {"root":"list-module__root__OXx93"};
|
|
529
|
+
|
|
530
|
+
var List = function (_a) {
|
|
531
|
+
var label = _a.label, children = _a.children;
|
|
532
|
+
return (jsxRuntime.jsxs(Stack, { className: style$1.root, children: [label && jsxRuntime.jsx("p", { children: label }), jsxRuntime.jsx("ul", { children: children })] }));
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
var style = {"root":"list-item-module__root__-fOHc","label":"list-item-module__label__rMBF5","value":"list-item-module__value__A3HYb"};
|
|
536
|
+
|
|
537
|
+
var ListItem = function (_a) {
|
|
538
|
+
var value = _a.value, label = _a.label;
|
|
539
|
+
return (jsxRuntime.jsxs(Stack, { position: "horizontal-space", space: "m", className: style.root, dataAlignItems: "flex-start", children: [jsxRuntime.jsx("span", { className: style.label, children: label }), jsxRuntime.jsx("span", { className: style.value, children: value })] }));
|
|
526
540
|
};
|
|
527
541
|
|
|
528
542
|
exports.Badge = Badge;
|
|
@@ -531,6 +545,8 @@ exports.Checkbox = Checkbox;
|
|
|
531
545
|
exports.Clipboard = Clipboard;
|
|
532
546
|
exports.Container = Container;
|
|
533
547
|
exports.FormSelect = FormSelect;
|
|
548
|
+
exports.List = List;
|
|
549
|
+
exports.ListItem = ListItem;
|
|
534
550
|
exports.Loader = Loader;
|
|
535
551
|
exports.PasswordField = PasswordField;
|
|
536
552
|
exports.Select = Select;
|