@kaio-xyz/design-system 1.1.136 → 1.1.138

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 CHANGED
@@ -136,8 +136,8 @@ var _path$f;
136
136
  function _extends$g() { return _extends$g = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$g.apply(null, arguments); }
137
137
  var SvgCheck = function SvgCheck(props) {
138
138
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
139
- width: "1em",
140
- height: "1em",
139
+ width: 24,
140
+ height: 24,
141
141
  fill: "none",
142
142
  xmlns: "http://www.w3.org/2000/svg"
143
143
  }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
@@ -150,8 +150,8 @@ var _path$e;
150
150
  function _extends$f() { return _extends$f = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$f.apply(null, arguments); }
151
151
  var SvgCircleDashed = function SvgCircleDashed(props) {
152
152
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
153
- width: "1em",
154
- height: "1em",
153
+ width: 24,
154
+ height: 24,
155
155
  fill: "none",
156
156
  xmlns: "http://www.w3.org/2000/svg"
157
157
  }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
@@ -164,8 +164,8 @@ var _path$d;
164
164
  function _extends$e() { return _extends$e = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$e.apply(null, arguments); }
165
165
  var SvgCross = function SvgCross(props) {
166
166
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
167
- width: "1em",
168
- height: "1em",
167
+ width: 24,
168
+ height: 24,
169
169
  fill: "none",
170
170
  xmlns: "http://www.w3.org/2000/svg"
171
171
  }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
@@ -178,8 +178,8 @@ var _path$c;
178
178
  function _extends$d() { return _extends$d = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$d.apply(null, arguments); }
179
179
  var SvgDeny = function SvgDeny(props) {
180
180
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
181
- width: "1em",
182
- height: "1em",
181
+ width: 24,
182
+ height: 24,
183
183
  fill: "none",
184
184
  xmlns: "http://www.w3.org/2000/svg"
185
185
  }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
@@ -192,8 +192,8 @@ var _path$b, _path2$4, _path3$2;
192
192
  function _extends$c() { return _extends$c = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$c.apply(null, arguments); }
193
193
  var SvgInfo = function SvgInfo(props) {
194
194
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
195
- width: "1em",
196
- height: "1em",
195
+ width: 24,
196
+ height: 24,
197
197
  fill: "none",
198
198
  xmlns: "http://www.w3.org/2000/svg"
199
199
  }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
@@ -212,8 +212,8 @@ var _path$a;
212
212
  function _extends$b() { return _extends$b = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$b.apply(null, arguments); }
213
213
  var SvgLoader = function SvgLoader(props) {
214
214
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
215
- width: "1em",
216
- height: "1em",
215
+ width: 24,
216
+ height: 24,
217
217
  fill: "none",
218
218
  xmlns: "http://www.w3.org/2000/svg"
219
219
  }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
@@ -226,8 +226,8 @@ var _path$9;
226
226
  function _extends$a() { return _extends$a = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$a.apply(null, arguments); }
227
227
  var SvgWarning = function SvgWarning(props) {
228
228
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
229
- width: "1em",
230
- height: "1em",
229
+ width: 24,
230
+ height: 24,
231
231
  fill: "none",
232
232
  xmlns: "http://www.w3.org/2000/svg"
233
233
  }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -240,8 +240,8 @@ var _path$8, _path2$3, _path3$1, _path4;
240
240
  function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
241
241
  var SvgEyeClosed = function SvgEyeClosed(props) {
242
242
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
243
- width: "1em",
244
- height: "1em",
243
+ width: 24,
244
+ height: 24,
245
245
  fill: "none",
246
246
  xmlns: "http://www.w3.org/2000/svg"
247
247
  }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -263,8 +263,8 @@ var _path$7, _path2$2;
263
263
  function _extends$8() { return _extends$8 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$8.apply(null, arguments); }
264
264
  var SvgEyeOpen = function SvgEyeOpen(props) {
265
265
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
266
- width: "1em",
267
- height: "1em",
266
+ width: 24,
267
+ height: 24,
268
268
  fill: "none",
269
269
  xmlns: "http://www.w3.org/2000/svg"
270
270
  }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -280,8 +280,8 @@ var _path$6;
280
280
  function _extends$7() { return _extends$7 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$7.apply(null, arguments); }
281
281
  var SvgChevronGrabber = function SvgChevronGrabber(props) {
282
282
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
283
- width: "1em",
284
- height: "1em",
283
+ width: 24,
284
+ height: 24,
285
285
  fill: "none",
286
286
  xmlns: "http://www.w3.org/2000/svg"
287
287
  }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -294,8 +294,8 @@ var _path$5;
294
294
  function _extends$6() { return _extends$6 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$6.apply(null, arguments); }
295
295
  var SvgMinus = function SvgMinus(props) {
296
296
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
297
- width: "1em",
298
- height: "1em",
297
+ width: 24,
298
+ height: 24,
299
299
  fill: "none",
300
300
  xmlns: "http://www.w3.org/2000/svg"
301
301
  }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -308,8 +308,8 @@ var _path$4;
308
308
  function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
309
309
  var SvgClipboard = function SvgClipboard(props) {
310
310
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
311
- width: "1em",
312
- height: "1em",
311
+ width: 24,
312
+ height: 24,
313
313
  fill: "none",
314
314
  xmlns: "http://www.w3.org/2000/svg"
315
315
  }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -322,8 +322,8 @@ var _path$3, _path2$1;
322
322
  function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
323
323
  var SvgLoadingCircle = function SvgLoadingCircle(props) {
324
324
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
325
- width: "1em",
326
- height: "1em",
325
+ width: 24,
326
+ height: 24,
327
327
  fill: "none",
328
328
  xmlns: "http://www.w3.org/2000/svg"
329
329
  }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -340,8 +340,8 @@ var _path$2;
340
340
  function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
341
341
  var SvgArrowDownRight = function SvgArrowDownRight(props) {
342
342
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
343
- width: "1em",
344
- height: "1em",
343
+ width: 24,
344
+ height: 24,
345
345
  fill: "none",
346
346
  xmlns: "http://www.w3.org/2000/svg"
347
347
  }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -354,8 +354,8 @@ var _path$1;
354
354
  function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
355
355
  var SvgArrowUpRight = function SvgArrowUpRight(props) {
356
356
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
357
- width: "1em",
358
- height: "1em",
357
+ width: 24,
358
+ height: 24,
359
359
  fill: "none",
360
360
  xmlns: "http://www.w3.org/2000/svg"
361
361
  }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -368,8 +368,8 @@ var _path, _path2, _path3;
368
368
  function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
369
369
  var SvgLock = function SvgLock(props) {
370
370
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
371
- width: "1em",
372
- height: "1em",
371
+ width: 24,
372
+ height: 24,
373
373
  fill: "none",
374
374
  xmlns: "http://www.w3.org/2000/svg"
375
375
  }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
@@ -388,8 +388,8 @@ var _g;
388
388
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
389
389
  var SvgLoginLogo = function SvgLoginLogo(props) {
390
390
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
391
- width: "1em",
392
- height: "1em",
391
+ width: 444,
392
+ height: 499,
393
393
  fill: "none",
394
394
  xmlns: "http://www.w3.org/2000/svg"
395
395
  }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
@@ -460,14 +460,14 @@ var SpinnedIcon = function (_a) {
460
460
  width: size,
461
461
  height: size,
462
462
  animationDuration: "".concat(duration, "s"),
463
- }, children: jsxRuntime.jsx(Icon, __assign({ width: size, height: size, viewBox: "0 0 24 24" }, rest)) }));
463
+ }, children: jsxRuntime.jsx(Icon, __assign({ width: size, height: size }, rest)) }));
464
464
  };
465
465
 
466
466
  var isAnchor = function (props) { return props.href !== undefined; };
467
467
  var Button = React.forwardRef(function (_a, ref) {
468
468
  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, _h = _a.iconPosition, iconPosition = _h === void 0 ? "left" : _h, props = __rest(_a, ["fullWidth", "variant", "size", "isInverted", "isLoading", "iconSize", "icon", "iconPosition"]);
469
469
  var iconProps = { width: iconSize, height: iconSize, "aria-hidden": "true" };
470
- var baseIcon = Icon && jsxRuntime.jsx(Icon, __assign({}, iconProps, { viewBox: "0 0 24 24" }));
470
+ var baseIcon = Icon && jsxRuntime.jsx(Icon, __assign({}, iconProps));
471
471
  var loadingIcon = isLoading && jsxRuntime.jsx(SpinnedIcon, __assign({ size: iconSize }, iconProps));
472
472
  var iconChild = loadingIcon || baseIcon || null;
473
473
  var classes = clsx(style$v.root, props.className);
@@ -666,7 +666,7 @@ var Clipboard = function (_a) {
666
666
  }, 2000);
667
667
  }, [value]);
668
668
  var text = isShowingCopy ? 'Copied!' : displayValue;
669
- var icon = isShowingCopy ? jsxRuntime.jsx(SvgCheck, { viewBox: "0 0 24 24" }) : jsxRuntime.jsx(SvgClipboard, { viewBox: "0 0 24 24" });
669
+ var icon = isShowingCopy ? jsxRuntime.jsx(SvgCheck, {}) : jsxRuntime.jsx(SvgClipboard, {});
670
670
  return (jsxRuntime.jsx("button", { type: "button", onClick: handleClick, className: style$l.root, "data-is-copied": isCopied, "data-is-showing-copy": isShowingCopy, "data-test": dataTest, children: jsxRuntime.jsxs(Stack, { position: "horizontal", children: [jsxRuntime.jsx("span", { children: text }), icon] }) }));
671
671
  };
672
672
 
@@ -683,7 +683,7 @@ var Step = function (_a) {
683
683
  var label = _a.label, dataTest = _a.dataTest, className = _a.className, _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, _e = _a.direction, direction = _e === void 0 ? 'vertical' : _e, props = __rest(_a, ["label", "dataTest", "className", "iconSize", "isCompleted", "isCurrent", "direction"]);
684
684
  var icon = React.useMemo(function () {
685
685
  switch (true) {
686
- case isCompleted: return jsxRuntime.jsx(SvgCheck, { className: style$j.checkIcon, viewBox: "0 0 24 24" });
686
+ case isCompleted: return jsxRuntime.jsx(SvgCheck, { className: style$j.checkIcon });
687
687
  case isCurrent: return jsxRuntime.jsx(SpinnedIcon, { icon: SvgLoadingCircle, size: iconSize, className: style$j.loadingIcon });
688
688
  default: return jsxRuntime.jsx("span", { className: style$j.emptyIcon });
689
689
  }
@@ -776,7 +776,7 @@ var style$c = {"content":"dropdown-menu-module__content__sSYNC","arrow":"dropdow
776
776
 
777
777
  var DropdownMenu$1 = function (_a) {
778
778
  var text = _a.text, children = _a.children, Icon = _a.icon, disabled = _a.disabled, body = _a.body, variant = _a.variant, buttonSize = _a.buttonSize, rest = __rest(_a, ["text", "children", "icon", "disabled", "body", "variant", "buttonSize"]);
779
- var defaultBody = !text ? Icon && jsxRuntime.jsx(Icon, { viewBox: "0 0 24 24" }) : jsxRuntime.jsx(Button, { size: buttonSize, icon: Icon, variant: variant, children: text });
779
+ var defaultBody = !text ? Icon && jsxRuntime.jsx(Icon, {}) : jsxRuntime.jsx(Button, { size: buttonSize, icon: Icon, variant: variant, children: text });
780
780
  return (jsxRuntime.jsxs(RDropdownMenu__namespace.Root, { children: [jsxRuntime.jsx(RDropdownMenu__namespace.Trigger, __assign({}, rest, { asChild: !!text, className: style$c.trigger, disabled: disabled, children: body ? body : defaultBody })), jsxRuntime.jsx(RDropdownMenu__namespace.Portal, { children: jsxRuntime.jsxs(RDropdownMenu__namespace.Content, { className: style$c.content, sideOffset: 5, children: [children, jsxRuntime.jsx(RDropdownMenu__namespace.Arrow, { className: style$c.arrow })] }) })] }));
781
781
  };
782
782
 
@@ -793,7 +793,7 @@ var style$a = {"trigger":"tooltip-module__trigger__8Eylk","content":"tooltip-mod
793
793
 
794
794
  var Tooltip = function (_a) {
795
795
  var children = _a.children, title = _a.title, description = _a.description, rest = __rest(_a, ["children", "title", "description"]);
796
- return (jsxRuntime.jsx(RTooltip__namespace.Provider, { children: jsxRuntime.jsxs(RTooltip__namespace.Root, __assign({}, rest, { children: [jsxRuntime.jsx(RTooltip__namespace.Trigger, { className: style$a.trigger, asChild: true, children: children }), jsxRuntime.jsx(RTooltip__namespace.Portal, { children: jsxRuntime.jsxs(RTooltip__namespace.Content, { className: style$a.content, sideOffset: 2, children: [jsxRuntime.jsx(SvgInfo, { viewBox: "0 0 24 24", className: style$a.icon, width: 20, height: 20 }), jsxRuntime.jsxs("div", { className: style$a.body, children: [jsxRuntime.jsx("span", { className: style$a.title, children: title }), description && jsxRuntime.jsx("span", { className: style$a.description, children: description })] }), jsxRuntime.jsx(RTooltip__namespace.Arrow, { className: style$a.arrow })] }) })] })) }));
796
+ return (jsxRuntime.jsx(RTooltip__namespace.Provider, { children: jsxRuntime.jsxs(RTooltip__namespace.Root, __assign({}, rest, { children: [jsxRuntime.jsx(RTooltip__namespace.Trigger, { className: style$a.trigger, asChild: true, children: children }), jsxRuntime.jsx(RTooltip__namespace.Portal, { children: jsxRuntime.jsxs(RTooltip__namespace.Content, { className: style$a.content, sideOffset: 2, children: [jsxRuntime.jsx(SvgInfo, { className: style$a.icon, width: 20, height: 20 }), jsxRuntime.jsxs("div", { className: style$a.body, children: [jsxRuntime.jsx("span", { className: style$a.title, children: title }), description && jsxRuntime.jsx("span", { className: style$a.description, children: description })] }), jsxRuntime.jsx(RTooltip__namespace.Arrow, { className: style$a.arrow })] }) })] })) }));
797
797
  };
798
798
 
799
799
  var isEnter = function (e) { return e.key === "Enter"; };
@@ -1118,7 +1118,7 @@ var InvestmentGraph = function (_a) {
1118
1118
  ? 'true'
1119
1119
  : 'false', onClick: function () {
1120
1120
  return setViewMode === null || setViewMode === void 0 ? void 0 : setViewMode(mode);
1121
- }, children: mode === 'total' ? 'Total' : 'By Product' }, mode)); }) }))] })] }), isLocked ? (jsxRuntime.jsx("div", { className: style$9.lockedPlaceholder, children: jsxRuntime.jsx("div", { className: style$9.lockIconCircle, children: jsxRuntime.jsx(SvgLock, { viewBox: "0 0 24 24" }) }) })) : viewMode === 'byProduct' && hasByProductView ? (jsxRuntime.jsx(ByProductChart, { chartData: byProductChartData, data: byProductData, ticks: ticks, timeFrame: timeFrame === null || timeFrame === void 0 ? void 0 : timeFrame.value })) : (jsxRuntime.jsx(TotalChart, { data: totalData, ticks: ticks, timeFrame: timeFrame === null || timeFrame === void 0 ? void 0 : timeFrame.value }))] }));
1121
+ }, children: mode === 'total' ? 'Total' : 'By Product' }, mode)); }) }))] })] }), isLocked ? (jsxRuntime.jsx("div", { className: style$9.lockedPlaceholder, children: jsxRuntime.jsx("div", { className: style$9.lockIconCircle, children: jsxRuntime.jsx(SvgLock, {}) }) })) : viewMode === 'byProduct' && hasByProductView ? (jsxRuntime.jsx(ByProductChart, { chartData: byProductChartData, data: byProductData, ticks: ticks, timeFrame: timeFrame === null || timeFrame === void 0 ? void 0 : timeFrame.value })) : (jsxRuntime.jsx(TotalChart, { data: totalData, ticks: ticks, timeFrame: timeFrame === null || timeFrame === void 0 ? void 0 : timeFrame.value }))] }));
1122
1122
  };
1123
1123
 
1124
1124
  var style$8 = {"root":"investments-header-module__root__fxQmk","total":"investments-header-module__total__DrEq0","badge":"investments-header-module__badge__-aeBM"};
@@ -1201,7 +1201,7 @@ var style$6 = {"root":"drawer-module__root__D3rM0","backdrop":"drawer-module__ba
1201
1201
  var Drawer = function (_a) {
1202
1202
  var isOpen = _a.isOpen, title = _a.title, children = _a.children, className = _a.className, actions = _a.actions, onClose = _a.onClose, _b = _a.isLarge, isLarge = _b === void 0 ? false : _b, subTitle = _a.subTitle, rest = __rest(_a, ["isOpen", "title", "children", "className", "actions", "onClose", "isLarge", "subTitle"]);
1203
1203
  var canAnimate = useCanAnimate();
1204
- var drawerContent = (jsxRuntime.jsxs("div", { className: clsx(style$6.root, className), "data-is-open": isOpen, "data-can-animate": canAnimate, children: [jsxRuntime.jsx("button", { className: style$6.backdrop, tabIndex: 0, onClick: onClose, onKeyDown: function (e) { return (isEnter(e) ? onClose === null || onClose === void 0 ? void 0 : onClose() : null); } }), jsxRuntime.jsxs("div", __assign({ className: style$6.drawer, "data-is-large": isLarge }, rest, { children: [jsxRuntime.jsxs("div", { className: style$6.header, children: [jsxRuntime.jsxs(Stack, { children: [jsxRuntime.jsx("h2", { className: style$6.title, children: title }), subTitle && jsxRuntime.jsx("p", { className: style$6.subTitle, children: subTitle })] }), jsxRuntime.jsx("button", { onClick: onClose, className: style$6.closeButton, type: "button", disabled: !onClose, children: jsxRuntime.jsx(SvgCross, { viewBox: "0 0 24 24" }) })] }), jsxRuntime.jsxs("div", { className: style$6.body, children: [jsxRuntime.jsx("div", { className: style$6.content, children: isOpen ? children : null }), actions && jsxRuntime.jsx("div", { className: style$6.actions, children: actions })] })] }))] }));
1204
+ var drawerContent = (jsxRuntime.jsxs("div", { className: clsx(style$6.root, className), "data-is-open": isOpen, "data-can-animate": canAnimate, children: [jsxRuntime.jsx("button", { className: style$6.backdrop, tabIndex: 0, onClick: onClose, onKeyDown: function (e) { return (isEnter(e) ? onClose === null || onClose === void 0 ? void 0 : onClose() : null); } }), jsxRuntime.jsxs("div", __assign({ className: style$6.drawer, "data-is-large": isLarge }, rest, { children: [jsxRuntime.jsxs("div", { className: style$6.header, children: [jsxRuntime.jsxs(Stack, { children: [jsxRuntime.jsx("h2", { className: style$6.title, children: title }), subTitle && jsxRuntime.jsx("p", { className: style$6.subTitle, children: subTitle })] }), jsxRuntime.jsx("button", { onClick: onClose, className: style$6.closeButton, type: "button", disabled: !onClose, children: jsxRuntime.jsx(SvgCross, {}) })] }), jsxRuntime.jsxs("div", { className: style$6.body, children: [jsxRuntime.jsx("div", { className: style$6.content, children: isOpen ? children : null }), actions && jsxRuntime.jsx("div", { className: style$6.actions, children: actions })] })] }))] }));
1205
1205
  return reactDom.createPortal(drawerContent, document.body);
1206
1206
  };
1207
1207
 
@@ -1211,11 +1211,11 @@ var Alert = function (_a) {
1211
1211
  var title = _a.title, _b = _a.type, type = _b === void 0 ? "info" : _b, children = _a.children, buttonText = _a.buttonText, dataTest = _a.dataTest, onClick = _a.onClick, rest = __rest(_a, ["title", "type", "children", "buttonText", "dataTest", "onClick"]);
1212
1212
  var icon = React.useMemo(function () {
1213
1213
  switch (type) {
1214
- case "success": return jsxRuntime.jsx(SvgCheck, { viewBox: "0 0 24 24" });
1214
+ case "success": return jsxRuntime.jsx(SvgCheck, {});
1215
1215
  case "warning":
1216
- case "danger": return jsxRuntime.jsx(SvgWarning, { viewBox: "0 0 24 24" });
1217
- case "info": return jsxRuntime.jsx(SvgInfo, { viewBox: "0 0 24 24" });
1218
- default: return jsxRuntime.jsx(SvgLoader, { viewBox: "0 0 24 24" });
1216
+ case "danger": return jsxRuntime.jsx(SvgWarning, {});
1217
+ case "info": return jsxRuntime.jsx(SvgInfo, {});
1218
+ default: return jsxRuntime.jsx(SvgLoader, {});
1219
1219
  }
1220
1220
  }, [type]);
1221
1221
  return (jsxRuntime.jsxs(Stack, __assign({ className: style$5.root, position: children ? "vertical" : "horizontal-space", space: "m", "data-type": type, "data-test": dataTest }, rest, { children: [jsxRuntime.jsxs(Stack, { position: "horizontal", children: [icon, title] }), jsxRuntime.jsx("p", { children: children }), buttonText && (jsxRuntime.jsx(Button, { className: style$5.button, variant: type, onClick: onClick, isInverted: true, size: "small", children: buttonText }))] })));
@@ -1225,7 +1225,7 @@ var style$4 = {"root":"box-module__root__dZ-MR","icon":"box-module__icon__3dFXL"
1225
1225
 
1226
1226
  var Box = function (_a) {
1227
1227
  var title = _a.title, description = _a.description, Icon = _a.icon, iconType = _a.iconType, fullWidth = _a.fullWidth;
1228
- return (jsxRuntime.jsxs(Stack, { className: style$4.root, "data-is-full-width": fullWidth, as: "dl", children: [jsxRuntime.jsx("dt", { children: title }), jsxRuntime.jsxs("dd", { children: [description, Icon && jsxRuntime.jsx(Icon, { className: style$4.icon, "data-icon-type": iconType, viewBox: "0 0 24 24" })] })] }));
1228
+ return (jsxRuntime.jsxs(Stack, { className: style$4.root, "data-is-full-width": fullWidth, as: "dl", children: [jsxRuntime.jsx("dt", { children: title }), jsxRuntime.jsxs("dd", { children: [description, Icon && jsxRuntime.jsx(Icon, { className: style$4.icon, "data-icon-type": iconType })] })] }));
1229
1229
  };
1230
1230
 
1231
1231
  var style$3 = {"list":"tabs-module__list__Nuvl-","trigger":"tabs-module__trigger__qOk2r","content":"tabs-module__content__4w1tZ","counter":"tabs-module__counter__QkcJB"};
@@ -1719,7 +1719,7 @@ var LoginCredentials = function (_a) {
1719
1719
  var style = {"buttonRow":"login-module__buttonRow__4LBxx"};
1720
1720
 
1721
1721
  var Login = function (_a) {
1722
- var signupRequestRoute = _a.signupRequestRoute, forgotPasswordRoute = _a.forgotPasswordRoute, loginFn = _a.loginFn, mfaLoginFn = _a.mfaLoginFn, onSignIn = _a.onSignIn, onVerifyAccountRedirect = _a.onVerifyAccountRedirect, onError = _a.onError, logo = _a.logo, backgroundIcon = _a.backgroundIcon, footer = _a.footer;
1722
+ var signupRequestRoute = _a.signupRequestRoute, forgotPasswordRoute = _a.forgotPasswordRoute, loginFn = _a.loginFn, mfaLoginFn = _a.mfaLoginFn, onSignIn = _a.onSignIn, onVerifyAccountRedirect = _a.onVerifyAccountRedirect, onError = _a.onError, logo = _a.logo, header = _a.header, backgroundIcon = _a.backgroundIcon, footer = _a.footer;
1723
1723
  var _b = reactHookForm.useForm({ mode: "onChange" }), formState = _b.formState, control = _b.control, register = _b.register, handleSubmit = _b.handleSubmit, resetField = _b.resetField;
1724
1724
  var isValid = formState.isValid, errors = formState.errors;
1725
1725
  var email = reactHookForm.useWatch({ control: control, name: "email" });
@@ -1746,7 +1746,7 @@ var Login = function (_a) {
1746
1746
  var actions = isShowOtp
1747
1747
  ? (jsxRuntime.jsxs(Stack, { children: [jsxRuntime.jsx(Button, { "data-test": "LoginWithMfa__Button__submit", onClick: login, disabled: !isValid || isOtpLoading || isSuccessMfaAuth, isLoading: isOtpLoading, children: "Confirm" }), jsxRuntime.jsxs(Stack, { position: "horizontal-center", className: style.buttonRow, dataAlignItems: "center", children: [jsxRuntime.jsx(Stack, { position: "horizontal", children: jsxRuntime.jsx("p", { children: "Wrong account?" }) }), jsxRuntime.jsx(Link, { onClick: function () { return setIsShowOtp(false); }, children: "Back to login" })] })] }))
1748
1748
  : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Button, { "data-test": "LoginForm__Button__login", type: "submit", disabled: !isValid, isLoading: isLoading, children: "Log in" }), jsxRuntime.jsxs(Stack, { children: [signupRequestRoute && (jsxRuntime.jsxs(Stack, { position: "horizontal-center", className: style.buttonRow, dataAlignItems: "center", children: [jsxRuntime.jsx(Stack, { position: "horizontal", children: jsxRuntime.jsx("p", { children: "Don't have an account?" }) }), jsxRuntime.jsx(Link, { href: signupRequestRoute, "data-test": "LoginForm__Button__signup", children: "Sign up" })] })), jsxRuntime.jsxs(Stack, { position: "horizontal-center", className: style.buttonRow, dataAlignItems: "center", children: [jsxRuntime.jsx(Stack, { position: "horizontal", children: jsxRuntime.jsx("p", { children: "Forgot password?" }) }), jsxRuntime.jsx(Link, { href: forgotPasswordRoute, "data-test": "LoginForm__Button__forgotPassword", children: "Reset" })] })] })] }));
1749
- return (jsxRuntime.jsx("form", { onSubmit: handleSubmit(loginSubmit), children: jsxRuntime.jsx(LoginLayout, { logo: logo, backgroundIcon: backgroundIcon, footer: footer, actions: actions, children: body }) }));
1749
+ return (jsxRuntime.jsx("form", { onSubmit: handleSubmit(loginSubmit), children: jsxRuntime.jsx(LoginLayout, { logo: logo, header: header, backgroundIcon: backgroundIcon, footer: footer, actions: actions, children: body }) }));
1750
1750
  };
1751
1751
 
1752
1752
  exports.Accordion = Accordion;