@kaio-xyz/design-system 1.1.27 → 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.d.ts CHANGED
@@ -159,8 +159,8 @@ declare const Checkbox: {
159
159
  };
160
160
 
161
161
  type ClipboardProps = {
162
- value?: string;
163
- dataTest: string;
162
+ value: string;
163
+ dataTest?: string;
164
164
  trim?: boolean;
165
165
  trimLength?: number;
166
166
  };
package/dist/index.esm.js CHANGED
@@ -347,7 +347,7 @@ var isAnchor = function (props) { return props.href !== undefined; };
347
347
  var Button = forwardRef(function (_a, ref) {
348
348
  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"]);
349
349
  var iconProps = { width: iconSize, height: iconSize, "aria-hidden": "true" };
350
- var baseIcon = Icon && jsx(Icon, __assign({}, iconProps));
350
+ var baseIcon = Icon && jsx(Icon, __assign({}, iconProps, { viewBox: "0 0 24 24" }));
351
351
  var loadingIcon = isLoading && jsx(SpinnedIcon, __assign({ size: iconSize }, iconProps));
352
352
  var iconChild = loadingIcon || baseIcon || null;
353
353
  var classes = clsx(style$q.root, props.className);
@@ -538,7 +538,7 @@ var Clipboard = function (_a) {
538
538
  }, 2000);
539
539
  }, [value]);
540
540
  var text = isShowingCopy ? 'Copied!' : displayValue;
541
- var icon = isShowingCopy ? jsx(SvgCheck, {}) : jsx(SvgClipboard, {});
541
+ var icon = isShowingCopy ? jsx(SvgCheck, { viewBox: "0 0 24 24" }) : jsx(SvgClipboard, { viewBox: "0 0 24 24" });
542
542
  return (jsx("button", { type: "button", onClick: handleClick, className: style$f.root, "data-is-copied": isCopied, "data-is-showing-copy": isShowingCopy, "data-test": dataTest, children: jsxs(Stack, { position: "horizontal", children: [jsx("span", { children: text }), icon] }) }));
543
543
  };
544
544
 
@@ -555,7 +555,7 @@ var Step = function (_a) {
555
555
  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;
556
556
  var icon = useMemo(function () {
557
557
  switch (true) {
558
- case isCompleted: return jsx(SvgCheck, { className: style$d.checkIcon });
558
+ case isCompleted: return jsx(SvgCheck, { className: style$d.checkIcon, viewBox: "0 0 24 24" });
559
559
  case isCurrent: return jsx(SpinnedIcon, { icon: SvgLoadingCircle, size: iconSize, className: style$d.loadingIcon });
560
560
  default: return jsx("span", { className: style$d.emptyIcon });
561
561
  }
@@ -648,7 +648,7 @@ var style$6 = {"content":"dropdown-menu-module__content__sSYNC","arrow":"dropdow
648
648
 
649
649
  var DropdownMenu$1 = function (_a) {
650
650
  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"]);
651
- var defaultBody = !text ? Icon && jsx(Icon, {}) : jsx(Button, { icon: Icon, variant: variant, children: text });
651
+ var defaultBody = !text ? Icon && jsx(Icon, { viewBox: "0 0 24 24" }) : jsx(Button, { icon: Icon, variant: variant, children: text });
652
652
  return (jsxs(RDropdownMenu.Root, { children: [jsx(RDropdownMenu.Trigger, __assign({}, rest, { asChild: !!text, className: style$6.trigger, disabled: disabled, children: body ? body : defaultBody })), jsx(RDropdownMenu.Portal, { children: jsxs(RDropdownMenu.Content, { className: style$6.content, sideOffset: 5, children: [children, jsx(RDropdownMenu.Arrow, { className: style$6.arrow })] }) })] }));
653
653
  };
654
654