@kaio-xyz/design-system 1.1.1 → 1.1.4

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.
@@ -0,0 +1 @@
1
+ export { default as Modal, type ModalProps } from "./modal";
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes, PropsWithChildren, ReactNode } from "react";
2
+ export type ModalProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {
3
+ id?: string;
4
+ visible?: boolean;
5
+ title?: string;
6
+ actions?: ReactNode[];
7
+ size?: "default" | "small" | "medium" | "large";
8
+ isFullWidth?: boolean;
9
+ isScrollable?: boolean;
10
+ onClose?: () => void;
11
+ };
12
+ declare const Modal: ({ visible, ...props }: ModalProps) => import("react").ReactPortal | null;
13
+ export default Modal;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Modal } from './';
3
+ declare const meta: Meta<typeof Modal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1,11 @@
1
+ import { ModalProps } from "@/components/atoms/modal";
2
+ export type ConfirmModalProps = Omit<ModalProps, "actions"> & {
3
+ isLoading?: boolean;
4
+ cancelDataTest: string;
5
+ confirmDataTest: string;
6
+ isConfirmDisabled?: boolean;
7
+ confirmText?: string;
8
+ cancelText?: string;
9
+ onConfirmClick: () => void;
10
+ };
11
+ export declare const ConfirmModal: ({ children, isLoading, cancelDataTest, confirmDataTest, isConfirmDisabled, confirmText, cancelText, onClose, onConfirmClick, ...props }: ConfirmModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { ConfirmModal } from './confirm-modal';
3
+ declare const meta: Meta<typeof ConfirmModal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -0,0 +1 @@
1
+ export { ConfirmModal, type ConfirmModalProps } from "./confirm-modal";
@@ -0,0 +1,3 @@
1
+ export { ConfirmModal } from "./confirm-modal";
2
+ export { OtpModal } from "./otp-modal";
3
+ export { InfoModal } from "./info-modal";
@@ -0,0 +1 @@
1
+ export { InfoModal } from "./info-modal";
@@ -0,0 +1,6 @@
1
+ import { ModalProps } from '@/components/atoms/modal';
2
+ export type ConfirmModalProps = Omit<ModalProps, "actions"> & {
3
+ acceptDataTest: string;
4
+ acceptText?: string;
5
+ };
6
+ export declare const InfoModal: ({ children, acceptDataTest, acceptText, onClose, ...props }: ConfirmModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { OtpModal } from "./otp-modal";
@@ -0,0 +1,8 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { ConfirmModalProps } from '../confirm-modal';
3
+ type OtpModalProps = Omit<ConfirmModalProps, "cancelDataTest" | "confirmDataTest" | "title"> & {
4
+ code: string;
5
+ setCode: Dispatch<SetStateAction<string>>;
6
+ };
7
+ export declare const OtpModal: ({ code, setCode, onConfirmClick, isLoading, ...rest }: OtpModalProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
package/dist/index.cjs.js CHANGED
@@ -5,6 +5,8 @@ var clsx = require('clsx');
5
5
  var React = require('react');
6
6
  var ReactSelect = require('react-select');
7
7
  var reactHookForm = require('react-hook-form');
8
+ var RAccordion = require('@radix-ui/react-accordion');
9
+ var reactDom = require('react-dom');
8
10
 
9
11
  function _interopNamespaceDefault(e) {
10
12
  var n = Object.create(null);
@@ -24,6 +26,7 @@ function _interopNamespaceDefault(e) {
24
26
  }
25
27
 
26
28
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
29
+ var RAccordion__namespace = /*#__PURE__*/_interopNamespaceDefault(RAccordion);
27
30
 
28
31
  /******************************************************************************
29
32
  Copyright (c) Microsoft Corporation.
@@ -65,35 +68,59 @@ function __rest(s, e) {
65
68
  return t;
66
69
  }
67
70
 
71
+ function __spreadArray(to, from, pack) {
72
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
73
+ if (ar || !(i in from)) {
74
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
75
+ ar[i] = from[i];
76
+ }
77
+ }
78
+ return to.concat(ar || Array.prototype.slice.call(from));
79
+ }
80
+
68
81
  typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
69
82
  var e = new Error(message);
70
83
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
71
84
  };
72
85
 
86
+ var _path$c;
87
+ 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); }
88
+ var SvgCheck = function SvgCheck(props) {
89
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
90
+ width: "1em",
91
+ height: "1em",
92
+ fill: "none",
93
+ xmlns: "http://www.w3.org/2000/svg"
94
+ }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
95
+ d: "M20.6474 3.30281C20.8943 2.97025 21.3647 2.90067 21.6972 3.14754C22.0298 3.39444 22.0994 3.86477 21.8525 4.19734L9.60251 20.6973C9.48001 20.8623 9.29478 20.9693 9.09079 20.9942C8.88673 21.0191 8.68101 20.959 8.52244 20.8282L2.27244 15.672C1.95326 15.4083 1.90836 14.9357 2.17185 14.6163C2.43551 14.2971 2.90813 14.2522 3.22751 14.5157L8.86716 19.169L20.6474 3.30281Z",
96
+ fill: "#98989D"
97
+ })));
98
+ };
99
+
73
100
  var _path$b;
74
101
  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); }
75
- var SvgCheck = function SvgCheck(props) {
102
+ var SvgCircleDashed = function SvgCircleDashed(props) {
76
103
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
77
104
  width: "1em",
78
105
  height: "1em",
79
106
  fill: "none",
80
107
  xmlns: "http://www.w3.org/2000/svg"
81
108
  }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
82
- d: "M20.6474 3.30281C20.8943 2.97025 21.3647 2.90067 21.6972 3.14754C22.0298 3.39444 22.0994 3.86477 21.8525 4.19734L9.60251 20.6973C9.48001 20.8623 9.29478 20.9693 9.09079 20.9942C8.88673 21.0191 8.68101 20.959 8.52244 20.8282L2.27244 15.672C1.95326 15.4083 1.90836 14.9357 2.17185 14.6163C2.43551 14.2971 2.90813 14.2522 3.22751 14.5157L8.86716 19.169L20.6474 3.30281Z",
109
+ d: "M13.4258 20.3809C13.8341 20.3122 14.2211 20.5878 14.29 20.9961C14.3588 21.4044 14.0832 21.7914 13.6748 21.8604C13.1298 21.9523 12.5702 22 12 22C11.4298 22 10.8702 21.9523 10.3252 21.8604C9.91684 21.7914 9.6412 21.4044 9.70996 20.9961C9.77886 20.5878 10.1659 20.3122 10.5742 20.3809C11.0372 20.459 11.5137 20.5 12 20.5C12.4863 20.5 12.9628 20.459 13.4258 20.3809ZM4.02051 16.7422C4.35812 16.5022 4.82643 16.5813 5.06641 16.9189C5.62015 17.6979 6.30206 18.3799 7.08105 18.9336C7.41867 19.1736 7.49779 19.6419 7.25781 19.9795C7.01785 20.3166 6.55031 20.3957 6.21289 20.1562C5.297 19.5052 4.49477 18.703 3.84375 17.7871C3.6043 17.4497 3.68345 16.9821 4.02051 16.7422ZM18.9336 16.9189C19.1736 16.5813 19.6419 16.5022 19.9795 16.7422C20.3165 16.9822 20.3957 17.4497 20.1562 17.7871C19.5052 18.703 18.703 19.5052 17.7871 20.1562C17.4497 20.3957 16.9822 20.3165 16.7422 19.9795C16.5022 19.6419 16.5813 19.1736 16.9189 18.9336C17.6979 18.3799 18.3799 17.6979 18.9336 16.9189ZM2 12C2 11.4298 2.04769 10.8702 2.13965 10.3252C2.20855 9.91684 2.59556 9.6412 3.00391 9.70996C3.41221 9.77886 3.68781 10.1659 3.61914 10.5742C3.54102 11.0372 3.5 11.5137 3.5 12C3.5 12.4863 3.54102 12.9628 3.61914 13.4258C3.68781 13.8341 3.41221 14.2211 3.00391 14.29C2.59556 14.3588 2.20855 14.0832 2.13965 13.6748C2.04769 13.1298 2 12.5702 2 12ZM20.5 12C20.5 11.5137 20.459 11.0372 20.3809 10.5742C20.3122 10.1659 20.5878 9.77886 20.9961 9.70996C21.4044 9.6412 21.7914 9.91684 21.8604 10.3252C21.9523 10.8702 22 11.4298 22 12C22 12.5702 21.9523 13.1298 21.8604 13.6748C21.7914 14.0832 21.4044 14.3588 20.9961 14.29C20.5878 14.2211 20.3122 13.8341 20.3809 13.4258C20.459 12.9628 20.5 12.4863 20.5 12ZM6.21289 3.84375C6.55032 3.6043 7.01785 3.68344 7.25781 4.02051C7.49779 4.35812 7.41867 4.82643 7.08105 5.06641C6.30206 5.62015 5.62015 6.30206 5.06641 7.08105C4.82643 7.41867 4.35812 7.49779 4.02051 7.25781C3.68344 7.01785 3.6043 6.55032 3.84375 6.21289C4.49478 5.297 5.297 4.49478 6.21289 3.84375ZM16.7422 4.02051C16.9821 3.68345 17.4497 3.60431 17.7871 3.84375C18.703 4.49477 19.5052 5.297 20.1562 6.21289C20.3957 6.55031 20.3166 7.01785 19.9795 7.25781C19.6419 7.49779 19.1736 7.41867 18.9336 7.08105C18.3799 6.30206 17.6979 5.62015 16.9189 5.06641C16.5813 4.82643 16.5022 4.35812 16.7422 4.02051ZM12 2C12.5702 2 13.1298 2.04769 13.6748 2.13965C14.0832 2.20855 14.3588 2.59556 14.29 3.00391C14.2211 3.41221 13.8341 3.68781 13.4258 3.61914C12.9628 3.54102 12.4863 3.5 12 3.5C11.5137 3.5 11.0372 3.54102 10.5742 3.61914C10.1659 3.68781 9.77886 3.41221 9.70996 3.00391C9.6412 2.59556 9.91684 2.20855 10.3252 2.13965C10.8702 2.04769 11.4298 2 12 2Z",
83
110
  fill: "#98989D"
84
111
  })));
85
112
  };
86
113
 
87
114
  var _path$a;
88
115
  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); }
89
- var SvgCircleDashed = function SvgCircleDashed(props) {
116
+ var SvgCross = function SvgCross(props) {
90
117
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
91
118
  width: "1em",
92
119
  height: "1em",
93
120
  fill: "none",
94
121
  xmlns: "http://www.w3.org/2000/svg"
95
122
  }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
96
- d: "M13.4258 20.3809C13.8341 20.3122 14.2211 20.5878 14.29 20.9961C14.3588 21.4044 14.0832 21.7914 13.6748 21.8604C13.1298 21.9523 12.5702 22 12 22C11.4298 22 10.8702 21.9523 10.3252 21.8604C9.91684 21.7914 9.6412 21.4044 9.70996 20.9961C9.77886 20.5878 10.1659 20.3122 10.5742 20.3809C11.0372 20.459 11.5137 20.5 12 20.5C12.4863 20.5 12.9628 20.459 13.4258 20.3809ZM4.02051 16.7422C4.35812 16.5022 4.82643 16.5813 5.06641 16.9189C5.62015 17.6979 6.30206 18.3799 7.08105 18.9336C7.41867 19.1736 7.49779 19.6419 7.25781 19.9795C7.01785 20.3166 6.55031 20.3957 6.21289 20.1562C5.297 19.5052 4.49477 18.703 3.84375 17.7871C3.6043 17.4497 3.68345 16.9821 4.02051 16.7422ZM18.9336 16.9189C19.1736 16.5813 19.6419 16.5022 19.9795 16.7422C20.3165 16.9822 20.3957 17.4497 20.1562 17.7871C19.5052 18.703 18.703 19.5052 17.7871 20.1562C17.4497 20.3957 16.9822 20.3165 16.7422 19.9795C16.5022 19.6419 16.5813 19.1736 16.9189 18.9336C17.6979 18.3799 18.3799 17.6979 18.9336 16.9189ZM2 12C2 11.4298 2.04769 10.8702 2.13965 10.3252C2.20855 9.91684 2.59556 9.6412 3.00391 9.70996C3.41221 9.77886 3.68781 10.1659 3.61914 10.5742C3.54102 11.0372 3.5 11.5137 3.5 12C3.5 12.4863 3.54102 12.9628 3.61914 13.4258C3.68781 13.8341 3.41221 14.2211 3.00391 14.29C2.59556 14.3588 2.20855 14.0832 2.13965 13.6748C2.04769 13.1298 2 12.5702 2 12ZM20.5 12C20.5 11.5137 20.459 11.0372 20.3809 10.5742C20.3122 10.1659 20.5878 9.77886 20.9961 9.70996C21.4044 9.6412 21.7914 9.91684 21.8604 10.3252C21.9523 10.8702 22 11.4298 22 12C22 12.5702 21.9523 13.1298 21.8604 13.6748C21.7914 14.0832 21.4044 14.3588 20.9961 14.29C20.5878 14.2211 20.3122 13.8341 20.3809 13.4258C20.459 12.9628 20.5 12.4863 20.5 12ZM6.21289 3.84375C6.55032 3.6043 7.01785 3.68344 7.25781 4.02051C7.49779 4.35812 7.41867 4.82643 7.08105 5.06641C6.30206 5.62015 5.62015 6.30206 5.06641 7.08105C4.82643 7.41867 4.35812 7.49779 4.02051 7.25781C3.68344 7.01785 3.6043 6.55032 3.84375 6.21289C4.49478 5.297 5.297 4.49478 6.21289 3.84375ZM16.7422 4.02051C16.9821 3.68345 17.4497 3.60431 17.7871 3.84375C18.703 4.49477 19.5052 5.297 20.1562 6.21289C20.3957 6.55031 20.3166 7.01785 19.9795 7.25781C19.6419 7.49779 19.1736 7.41867 18.9336 7.08105C18.3799 6.30206 17.6979 5.62015 16.9189 5.06641C16.5813 4.82643 16.5022 4.35812 16.7422 4.02051ZM12 2C12.5702 2 13.1298 2.04769 13.6748 2.13965C14.0832 2.20855 14.3588 2.59556 14.29 3.00391C14.2211 3.41221 13.8341 3.68781 13.4258 3.61914C12.9628 3.54102 12.4863 3.5 12 3.5C11.5137 3.5 11.0372 3.54102 10.5742 3.61914C10.1659 3.68781 9.77886 3.41221 9.70996 3.00391C9.6412 2.59556 9.91684 2.20855 10.3252 2.13965C10.8702 2.04769 11.4298 2 12 2Z",
123
+ d: "M18.7197 4.21967C19.0126 3.92678 19.4873 3.92678 19.7802 4.21967C20.0731 4.51256 20.0731 4.98732 19.7802 5.28022L13.0605 11.9999L19.7802 18.7197C20.0731 19.0126 20.0731 19.4873 19.7802 19.7802C19.4873 20.0731 19.0126 20.0731 18.7197 19.7802L11.9999 13.0605L5.28022 19.7802C4.98732 20.0731 4.51256 20.0731 4.21967 19.7802C3.92678 19.4873 3.92678 19.0126 4.21967 18.7197L10.9394 11.9999L4.21967 5.28022C3.92678 4.98732 3.92678 4.51256 4.21967 4.21967C4.51256 3.92678 4.98732 3.92678 5.28022 4.21967L11.9999 10.9394L18.7197 4.21967Z",
97
124
  fill: "#98989D"
98
125
  })));
99
126
  };
@@ -260,16 +287,16 @@ var SvgLoadingCircle = function SvgLoadingCircle(props) {
260
287
  })));
261
288
  };
262
289
 
263
- var style$h = {"root":"stack-module__root__AqSLk"};
290
+ var style$l = {"root":"stack-module__root__AqSLk"};
264
291
 
265
292
  var Stack = function (_a) {
266
293
  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$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 })));
294
+ return (jsxRuntime.jsx("div", __assign({ className: clsx(style$l.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
295
  };
269
296
 
270
297
  var baseStyle = {"root":"badge-base-module__root__oUZlm"};
271
298
 
272
- var style$g = {"root":"badge-module__root__rXpaz"};
299
+ var style$k = {"root":"badge-module__root__rXpaz"};
273
300
 
274
301
  var BadgeStatuses = {
275
302
  success: "success",
@@ -288,16 +315,16 @@ var Badge = function (_a) {
288
315
  default: return jsxRuntime.jsx(SvgCircleDashed, {});
289
316
  }
290
317
  }, [status]);
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] }) })));
318
+ return (jsxRuntime.jsx("label", __assign({ className: clsx(baseStyle.root, style$k.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
319
  };
293
320
 
294
- var style$f = {"root":"button-module__root__CDCDX"};
321
+ var style$j = {"root":"button-module__root__CDCDX"};
295
322
 
296
- var style$e = {"root":"spinned-icon-module__root__xchkj"};
323
+ var style$i = {"root":"spinned-icon-module__root__xchkj"};
297
324
 
298
325
  var SpinnedIcon = function (_a) {
299
326
  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$e.root, className), style: {
327
+ return (jsxRuntime.jsx("div", { className: clsx(style$i.root, className), style: {
301
328
  width: size,
302
329
  height: size,
303
330
  animationDuration: "".concat(duration, "s"),
@@ -311,19 +338,19 @@ var Button = React.forwardRef(function (_a, ref) {
311
338
  var baseIcon = Icon && jsxRuntime.jsx(Icon, __assign({}, iconProps));
312
339
  var loadingIcon = isLoading && jsxRuntime.jsx(SpinnedIcon, __assign({ size: iconSize }, iconProps));
313
340
  var iconChild = loadingIcon || baseIcon || null;
314
- var classes = clsx(style$f.root, props.className);
341
+ var classes = clsx(style$j.root, props.className);
315
342
  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
343
  });
317
344
  Button.displayName = "Button";
318
345
 
319
- var style$d = {"hint":"hint-module__hint__0cpje","children":"hint-module__children__GSZxg"};
346
+ var style$h = {"hint":"hint-module__hint__0cpje","children":"hint-module__children__GSZxg"};
320
347
 
321
348
  var Hint = function (_a) {
322
349
  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$d.hint, className), "data-type": kind }, attributes, { children: [jsxRuntime.jsx(SvgInfo, {}), jsxRuntime.jsx("span", { className: style$d.children, children: children })] })));
350
+ return (jsxRuntime.jsxs(Stack, __assign({ space: "xs", position: "horizontal", className: clsx(style$h.hint, className), "data-type": kind }, attributes, { children: [jsxRuntime.jsx(SvgInfo, {}), jsxRuntime.jsx("span", { className: style$h.children, children: children })] })));
324
351
  };
325
352
 
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"};
353
+ var style$g = {"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
354
 
328
355
  var TextField = React.forwardRef(function (_a, ref) {
329
356
  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 +387,28 @@ var TextField = React.forwardRef(function (_a, ref) {
360
387
  setHasValue(e.target.value.length > 0);
361
388
  onChange === null || onChange === void 0 ? void 0 : onChange(e);
362
389
  };
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 })] }) }));
390
+ return (jsxRuntime.jsx("fieldset", { "aria-disabled": disabled, disabled: disabled, className: clsx(style$g.textField, className), "data-no-padding": noPadding, "data-full-width": fullWidth, children: jsxRuntime.jsxs("div", { className: style$g.container, "data-has-label": !!label, "data-has-hint": !!hint, "data-has-button": !!button, "data-floating-label": floatingLabel, children: [label && (jsxRuntime.jsx("label", { className: style$g.label, htmlFor: id, "data-floating": floatingLabel, "data-active": isLabelFloating, children: label })), jsxRuntime.jsxs("div", { className: style$g.fieldWrapper, children: [jsxRuntime.jsx("input", __assign({ "aria-readonly": readOnly, className: style$g.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$g.hint, children: hint })] }) }));
364
391
  });
365
392
  TextField.displayName = "TextField";
366
393
 
367
- var style$b = {"container":"container-module__container__CAxQw"};
394
+ var style$f = {"container":"container-module__container__CAxQw"};
368
395
 
369
396
  var Container = function (_a) {
370
397
  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$b.container, className) }, size ? { "data-size": size } : {}, { "data-nopadding": noPadding }, attributes, { children: children })));
398
+ return (jsxRuntime.jsx("div", __assign({ className: clsx(style$f.container, className) }, size ? { "data-size": size } : {}, { "data-nopadding": noPadding }, attributes, { children: children })));
372
399
  };
373
400
 
374
- var style$a = {"field":"password-field-module__field__-sFqA","button":"password-field-module__button__FtG9V"};
401
+ var style$e = {"field":"password-field-module__field__-sFqA","button":"password-field-module__button__FtG9V"};
375
402
 
376
403
  var PasswordField = React.forwardRef(function (_a, ref) {
377
404
  var disabled = _a.disabled, rest = __rest(_a, ["disabled"]);
378
405
  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$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 })));
406
+ var button = (jsxRuntime.jsx("button", { onClick: function () { return setIsPasswordVisible(function (prev) { return !prev; }); }, type: "button", disabled: disabled, className: style$e.button, children: isPasswordVisible ? jsxRuntime.jsx(SvgEyeOpen, {}) : jsxRuntime.jsx(SvgEyeClosed, {}) }));
407
+ return (jsxRuntime.jsx(TextField, __assign({ disabled: disabled }, rest, { ref: ref, type: isPasswordVisible ? "text" : "password", button: button, className: style$e.field })));
381
408
  });
382
409
  PasswordField.displayName = "PasswordField";
383
410
 
384
- var style$9 = {"validator":"validate-password-field-module__validator__Do-6w"};
411
+ var style$d = {"validator":"validate-password-field-module__validator__Do-6w"};
385
412
 
386
413
  var rules = {
387
414
  length: /^.{8,}$/,
@@ -406,19 +433,19 @@ var ValidatePasswordField = React.forwardRef(function (_a, ref) {
406
433
  React.useEffect(function () {
407
434
  setIsPasswordValid === null || setIsPasswordValid === void 0 ? void 0 : setIsPasswordValid(isLenghtCheckOk && isCaseCheckOk && isNumberCheckOk && isSpecialCheckOk);
408
435
  }, [isLenghtCheckOk, isCaseCheckOk, isNumberCheckOk, isSpecialCheckOk, setIsPasswordValid]);
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 })] })); };
436
+ var getValidator = function (isCheckOk, label) { return (jsxRuntime.jsxs(Stack, { position: "horizontal", className: style$d.validator, "data-is-valid": isCheckOk, children: [isCheckOk ? jsxRuntime.jsx(SvgCheck, {}) : jsxRuntime.jsx(SvgCircleDashed, {}), jsxRuntime.jsx("p", { children: label })] })); };
410
437
  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
438
  });
412
439
  ValidatePasswordField.displayName = "ValidatePasswordField";
413
440
 
414
- var style$8 = {"root":"label-module__root__34bJr"};
441
+ var style$c = {"root":"label-module__root__34bJr"};
415
442
 
416
443
  var Label = function (_a) {
417
444
  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$8.root, className), htmlFor: id, "data-margin-bottom": hasMargin, "data-half-margin-bottom": hasHalfMargin, "data-has-cursor-pointer": hasCursorPointer, children: label }));
445
+ return (jsxRuntime.jsx("label", { className: clsx(style$c.root, className), htmlFor: id, "data-margin-bottom": hasMargin, "data-half-margin-bottom": hasHalfMargin, "data-has-cursor-pointer": hasCursorPointer, children: label }));
419
446
  };
420
447
 
421
- var style$7 = {"label":"select-module__label__EWUYF","selector":"select-module__selector__55oxp","hint":"select-module__hint__SPtu-"};
448
+ var style$b = {"label":"select-module__label__EWUYF","selector":"select-module__selector__55oxp","hint":"select-module__hint__SPtu-"};
422
449
 
423
450
  var IconAndLabel = function (_a) {
424
451
  var children = _a.children, Icon = _a.icon;
@@ -439,7 +466,7 @@ var CustomSingleValue = function (_a) {
439
466
  };
440
467
  var Select = function (_a) {
441
468
  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$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 })] })] }));
469
+ return (jsxRuntime.jsxs("div", { className: clsx(style$b.root, className), children: [label && jsxRuntime.jsx(Label, { id: id, label: label, className: style$b.label }), jsxRuntime.jsxs("div", { "data-test": dataTest, className: style$b.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$b.hint, children: error })] })] }));
443
470
  };
444
471
  Select.displayName = "Select";
445
472
 
@@ -452,14 +479,14 @@ var FormSelect = function (_a) {
452
479
  };
453
480
  FormSelect.displayName = "FormSelect";
454
481
 
455
- var style$6 = {"root":"loader-module__root__qnInQ"};
482
+ var style$a = {"root":"loader-module__root__qnInQ"};
456
483
 
457
484
  var Loader = function (_a) {
458
485
  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$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] }) }));
486
+ return (jsxRuntime.jsx("div", { className: style$a.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
487
  };
461
488
 
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"};
489
+ var style$9 = {"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
490
 
464
491
  var Checkbox = function (_a) {
465
492
  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 +499,11 @@ var Checkbox = function (_a) {
472
499
  var dynamicStyle = {
473
500
  "--vAlign": verticalAlign,
474
501
  };
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 })] }));
502
+ return (jsxRuntime.jsxs("label", { style: dynamicStyle, className: clsx(style$9.root, className), "data-disabled": disabled, "data-size": size, "data-variant": variant, children: [jsxRuntime.jsxs("span", { className: style$9.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$9.customCheckbox, "aria-hidden": "true", children: [checked && !indeterminate && (jsxRuntime.jsx(SvgCheck, { className: style$9.icon })), indeterminate && (jsxRuntime.jsx(SvgMinus, { className: style$9.icon }))] })] }), label && jsxRuntime.jsx("span", { className: style$9.label, children: label })] }));
476
503
  };
477
504
  Checkbox.displayName = "Checkbox";
478
505
 
479
- var style$4 = {"root":"clipboard-module__root__wVZhy"};
506
+ var style$8 = {"root":"clipboard-module__root__wVZhy"};
480
507
 
481
508
  var trimString = function (str, noOfChars) {
482
509
  if (noOfChars === void 0) { noOfChars = 4; }
@@ -501,53 +528,125 @@ var Clipboard = function (_a) {
501
528
  }, [value]);
502
529
  var text = isShowingCopy ? 'Copied!' : displayValue;
503
530
  var icon = isShowingCopy ? jsxRuntime.jsx(SvgCheck, {}) : jsxRuntime.jsx(SvgClipboard, {});
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] }) }));
531
+ return (jsxRuntime.jsx("button", { type: "button", onClick: handleClick, className: style$8.root, "data-is-copied": isCopied, "data-is-showing-copy": isShowingCopy, children: jsxRuntime.jsxs(Stack, { position: "horizontal", children: [jsxRuntime.jsx("span", { children: text }), icon] }) }));
505
532
  };
506
533
 
507
- var style$3 = {"root":"stepper-module__root__hgDss"};
534
+ var style$7 = {"root":"stepper-module__root__hgDss"};
508
535
 
509
536
  var Stepper = function (_a) {
510
537
  var children = _a.children;
511
- return (jsxRuntime.jsx("ul", { className: style$3.root, children: children }));
538
+ return (jsxRuntime.jsx("ul", { className: style$7.root, children: children }));
512
539
  };
513
540
 
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"};
541
+ var style$6 = {"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
542
 
516
543
  var Step = function (_a) {
517
544
  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;
518
545
  var icon = React.useMemo(function () {
519
546
  switch (true) {
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 });
547
+ case isCompleted: return jsxRuntime.jsx(SvgCheck, { className: style$6.checkIcon });
548
+ case isCurrent: return jsxRuntime.jsx(SpinnedIcon, { icon: SvgLoadingCircle, size: iconSize, className: style$6.loadingIcon });
549
+ default: return jsxRuntime.jsx("span", { className: style$6.emptyIcon });
523
550
  }
524
551
  }, [isCompleted, isCurrent]);
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 })] }) }, key));
552
+ return (jsxRuntime.jsx("li", { className: style$6.root, "data-is-current": isCurrent, style: { '--icon-size': "".concat(iconSize, "px") }, children: jsxRuntime.jsxs(Stack, { className: style$6.container, position: "horizontal", children: [icon, jsxRuntime.jsx("span", { className: style$6.label, children: label })] }) }, key));
526
553
  };
527
554
 
528
- var style$1 = {"root":"list-module__root__OXx93"};
555
+ var style$5 = {"root":"list-module__root__OXx93"};
529
556
 
530
557
  var List = function (_a) {
531
558
  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 })] }));
559
+ return (jsxRuntime.jsxs(Stack, { className: style$5.root, children: [label && jsxRuntime.jsx("p", { children: label }), jsxRuntime.jsx("ul", { children: children })] }));
533
560
  };
534
561
 
535
- var style = {"root":"list-item-module__root__-fOHc","label":"list-item-module__label__rMBF5","value":"list-item-module__value__A3HYb"};
562
+ var style$4 = {"root":"list-item-module__root__-fOHc","label":"list-item-module__label__rMBF5","value":"list-item-module__value__A3HYb"};
536
563
 
537
564
  var ListItem = function (_a) {
538
565
  var value = _a.value, label = _a.label, key = _a.key;
539
- return (jsxRuntime.jsx("li", { children: 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 })] }) }, key));
566
+ return (jsxRuntime.jsx("li", { children: jsxRuntime.jsxs(Stack, { position: "horizontal-space", space: "m", className: style$4.root, dataAlignItems: "flex-start", children: [jsxRuntime.jsx("span", { className: style$4.label, children: label }), jsxRuntime.jsx("span", { className: style$4.value, children: value })] }) }, key));
567
+ };
568
+
569
+ var AccordionRoot = function (_a) {
570
+ var children = _a.children, rest = __rest(_a, ["children"]);
571
+ return (jsxRuntime.jsx(RAccordion__namespace.Root, __assign({}, rest, { children: children })));
572
+ };
573
+
574
+ var style$3 = {"content":"accordion-content-module__content__e93RL","childrenContainer":"accordion-content-module__childrenContainer__tAVvX","children":"accordion-content-module__children__Hihsf"};
575
+
576
+ var AccordionContent = React.forwardRef(function (_a, forwardedRef) {
577
+ var children = _a.children, className = _a.className, hasChildrenPadding = _a.hasChildrenPadding, rest = __rest(_a, ["children", "className", "hasChildrenPadding"]);
578
+ return (jsxRuntime.jsx(RAccordion__namespace.Content, __assign({ className: clsx(style$3.content, className), ref: forwardedRef }, rest, { children: jsxRuntime.jsx("div", { className: style$3.childrenContainer, children: jsxRuntime.jsx("div", { className: style$3.children, "data-has-padding": hasChildrenPadding, children: children }) }) })));
579
+ });
580
+ AccordionContent.displayName = "AccordionContent";
581
+
582
+ var style$2 = {"header":"accordion-trigger-module__header__2LR3z","trigger":"accordion-trigger-module__trigger__jzCw0"};
583
+
584
+ var AccordionTrigger = React.forwardRef(function (_a, forwardedRef) {
585
+ var children = _a.children, _b = _a.className, className = _b === void 0 ? "" : _b, dataTest = _a.dataTest, rest = __rest(_a, ["children", "className", "dataTest"]);
586
+ return (jsxRuntime.jsx(RAccordion__namespace.Header, { className: style$2.header, children: jsxRuntime.jsx(RAccordion__namespace.Trigger, __assign({ className: clsx(style$2.trigger, className), ref: forwardedRef, "data-test": dataTest }, rest, { children: children })) }));
587
+ });
588
+ AccordionTrigger.displayName = "AccordionTrigger";
589
+
590
+ var style$1 = {"root":"accordion-item-module__root__1Yk4f"};
591
+
592
+ var AccordionItem = React.forwardRef(function (_a, forwardedRef) {
593
+ var value = _a.value, trigger = _a.trigger, triggerClassName = _a.triggerClassName, children = _a.children, dataTest = _a.dataTest, _b = _a.hasChildrenPadding, hasChildrenPadding = _b === void 0 ? true : _b;
594
+ return (jsxRuntime.jsxs(RAccordion__namespace.Item, { className: style$1.root, value: value, ref: forwardedRef, "data-test": dataTest, children: [jsxRuntime.jsx(AccordionTrigger, { className: triggerClassName, children: trigger }), jsxRuntime.jsx(AccordionContent, { hasChildrenPadding: hasChildrenPadding, children: children })] }));
595
+ });
596
+ AccordionItem.displayName = "AccordionItem";
597
+
598
+ var Accordion = { Root: AccordionRoot, Item: AccordionItem };
599
+
600
+ var style = {"modal":"modal-module__modal__X2VmM","content":"modal-module__content__Hrybc","header":"modal-module__header__vvu8s","backdrop":"modal-module__backdrop__yqE8l","body":"modal-module__body__ax2L0","bodyWrapper":"modal-module__bodyWrapper__uj88Q","actions":"modal-module__actions__uueCa"};
601
+
602
+ var ModalElement = function (_a) {
603
+ var id = _a.id, children = _a.children, className = _a.className, _b = _a.title, title = _b === void 0 ? "No title" : _b, _c = _a.size, size = _c === void 0 ? "default" : _c, onClose = _a.onClose, _d = _a.actions, actions = _d === void 0 ? [] : _d, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? true : _e, _f = _a.isScrollable, isScrollable = _f === void 0 ? false : _f, visible = _a.visible, attributes = __rest(_a, ["id", "children", "className", "title", "size", "onClose", "actions", "isFullWidth", "isScrollable", "visible"]);
604
+ var modalRef = React.useRef(null);
605
+ return (jsxRuntime.jsxs("dialog", __assign({ ref: modalRef, "aria-modal": "true", "aria-labelledby": id, className: clsx(style.modal, className), "data-test": "Modal__Div__content", "data-visible": visible, "data-is-not-closable": !onClose }, attributes, { children: [jsxRuntime.jsx("dialog", { className: style.backdrop }), jsxRuntime.jsx("div", { className: style.content, "data-size": size, "data-shadow-direction": "top", "data-is-full-width": isFullWidth, "data-is-scrollable": isScrollable, children: jsxRuntime.jsxs("div", { className: style.bodyWrapper, children: __spreadArray([title && (jsxRuntime.jsxs("div", { className: style.header, children: [jsxRuntime.jsx("h2", { id: id, children: title }), jsxRuntime.jsx(SvgCross, { onClick: onClose })] })), jsxRuntime.jsx("div", { className: style.body, children: children })], actions.map(function (i, idx) { return jsxRuntime.jsx("div", { className: style.actions, children: i }, "".concat(id, "_").concat(idx)); }), true) }) })] })));
606
+ };
607
+ var Modal = function (_a) {
608
+ var visible = _a.visible, props = __rest(_a, ["visible"]);
609
+ var element = jsxRuntime.jsx(ModalElement, __assign({ visible: visible }, props));
610
+ return visible
611
+ ? reactDom.createPortal(element, document.body)
612
+ : null;
613
+ };
614
+
615
+ var ConfirmModal = function (_a) {
616
+ var children = _a.children, _b = _a.isLoading, isLoading = _b === void 0 ? false : _b, cancelDataTest = _a.cancelDataTest, confirmDataTest = _a.confirmDataTest, _c = _a.isConfirmDisabled, isConfirmDisabled = _c === void 0 ? false : _c, _d = _a.confirmText, confirmText = _d === void 0 ? "Confirm" : _d, _e = _a.cancelText, cancelText = _e === void 0 ? "Cancel" : _e, onClose = _a.onClose, onConfirmClick = _a.onConfirmClick, props = __rest(_a, ["children", "isLoading", "cancelDataTest", "confirmDataTest", "isConfirmDisabled", "confirmText", "cancelText", "onClose", "onConfirmClick"]);
617
+ var actions = [
618
+ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Button, { variant: "secondary", onClick: onClose, "data-test": cancelDataTest, disabled: isLoading || !onClose, children: cancelText }, "cancel"), jsxRuntime.jsx(Button, { onClick: onConfirmClick, disabled: isConfirmDisabled || isLoading, "data-test": confirmDataTest, isLoading: isLoading, children: confirmText }, "confirm")] })
619
+ ];
620
+ return (jsxRuntime.jsx(Modal, __assign({ onClose: onClose, actions: actions, size: "small" }, props, { children: children })));
621
+ };
622
+
623
+ var OtpModal = function (_a) {
624
+ var code = _a.code, setCode = _a.setCode, onConfirmClick = _a.onConfirmClick, isLoading = _a.isLoading, rest = __rest(_a, ["code", "setCode", "onConfirmClick", "isLoading"]);
625
+ return (jsxRuntime.jsx(ConfirmModal, __assign({}, rest, { title: "OTP", isFullWidth: false, onConfirmClick: onConfirmClick, isLoading: isLoading, cancelDataTest: "LoginWithMfa__Button__cancel", confirmDataTest: "LoginWithMfa__Button__submit", children: jsxRuntime.jsxs(Stack, { children: [jsxRuntime.jsx("p", { children: "Enter the code from the authenticator app" }), jsxRuntime.jsx(TextField, { value: code, onChange: function (e) { return setCode(e.target.value); }, id: "otp", label: "OTP*", "data-test": "ResetPassword__TextField__OTP", disabled: isLoading, fullWidth: true, type: "number" })] }) })));
626
+ };
627
+
628
+ var InfoModal = function (_a) {
629
+ var children = _a.children, acceptDataTest = _a.acceptDataTest, _b = _a.acceptText, acceptText = _b === void 0 ? "Close" : _b, onClose = _a.onClose, props = __rest(_a, ["children", "acceptDataTest", "acceptText", "onClose"]);
630
+ var actions = [
631
+ jsxRuntime.jsx(Button, { variant: "primary", onClick: onClose, "data-test": acceptDataTest, children: acceptText }, "accept")
632
+ ];
633
+ return (jsxRuntime.jsx(Modal, __assign({ onClose: onClose, actions: actions, size: "small" }, props, { children: children })));
540
634
  };
541
635
 
636
+ exports.Accordion = Accordion;
542
637
  exports.Badge = Badge;
543
638
  exports.Button = Button;
544
639
  exports.Checkbox = Checkbox;
545
640
  exports.Clipboard = Clipboard;
641
+ exports.ConfirmModal = ConfirmModal;
546
642
  exports.Container = Container;
547
643
  exports.FormSelect = FormSelect;
644
+ exports.InfoModal = InfoModal;
548
645
  exports.List = List;
549
646
  exports.ListItem = ListItem;
550
647
  exports.Loader = Loader;
648
+ exports.Modal = Modal;
649
+ exports.OtpModal = OtpModal;
551
650
  exports.PasswordField = PasswordField;
552
651
  exports.Select = Select;
553
652
  exports.SpinnedIcon = SpinnedIcon;