@egov3/system-design 1.3.207 → 1.3.209

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.
Files changed (28) hide show
  1. package/dist/cjs/components/ErrorModal/index.js +3 -2
  2. package/dist/cjs/components/ErrorModal/index.js.map +1 -1
  3. package/dist/cjs/components/Identity/CodeInput/CodeInput.module.css.js +22 -0
  4. package/dist/cjs/components/Identity/CodeInput/CodeInput.module.css.js.map +1 -0
  5. package/dist/cjs/components/Identity/CodeInput/index.js +55 -0
  6. package/dist/cjs/components/Identity/CodeInput/index.js.map +1 -0
  7. package/dist/cjs/constants/i18n/Identity/CodeInput.js +12 -0
  8. package/dist/cjs/constants/i18n/Identity/CodeInput.js.map +1 -0
  9. package/dist/cjs/constants/i18n/index.js +2 -0
  10. package/dist/cjs/constants/i18n/index.js.map +1 -1
  11. package/dist/cjs/index.js +103 -101
  12. package/dist/cjs/index.js.map +1 -1
  13. package/dist/esm/components/ErrorModal/index.js +3 -2
  14. package/dist/esm/components/ErrorModal/index.js.map +1 -1
  15. package/dist/esm/components/Identity/CodeInput/CodeInput.module.css.js +18 -0
  16. package/dist/esm/components/Identity/CodeInput/CodeInput.module.css.js.map +1 -0
  17. package/dist/esm/components/Identity/CodeInput/index.js +53 -0
  18. package/dist/esm/components/Identity/CodeInput/index.js.map +1 -0
  19. package/dist/esm/constants/i18n/Identity/CodeInput.js +10 -0
  20. package/dist/esm/constants/i18n/Identity/CodeInput.js.map +1 -0
  21. package/dist/esm/constants/i18n/index.js +2 -0
  22. package/dist/esm/constants/i18n/index.js.map +1 -1
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/types/components/ErrorModal/index.d.ts +4 -2
  26. package/dist/types/components/Identity/CodeInput/index.d.ts +22 -0
  27. package/dist/types/index.d.ts +1 -0
  28. package/package.json +1 -1
@@ -49,11 +49,12 @@ require('../../baseComponents/TextWithAction/TextWithAction.module.css.js');
49
49
  var index$2 = require('../../baseComponents/Title/index.js');
50
50
  var ErrorModal_module = require('./ErrorModal.module.css.js');
51
51
 
52
- const ErrorModal = ({ status, message, lang, isOpen, onClose, footerButtons = [], }) => {
52
+ const ErrorModal = ({ status, message, title, illustration, lang, isOpen, onClose, footerButtons = [], }) => {
53
53
  const isAuthError = status === 401;
54
54
  const langDic = index$1.i18n.ErrorModal;
55
55
  const langDicMsg = message ?? (isAuthError ? langDic.NotAuthorizedMessage[lang] : "");
56
- return (jsxRuntime.jsx(index.Modal, { isOpen: isOpen, setIsOpen: onClose, variant: "small", lang: lang, isContentScroll: false, children: jsxRuntime.jsxs("div", { className: ErrorModal_module.default.wrapper, "data-testid": "ErrorModal_WRAPPER", children: [jsxRuntime.jsxs("div", { className: ErrorModal_module.default.headerWrapper, "data-testid": "ErrorModal_HEADER", children: [jsxRuntime.jsx("span", { className: ErrorModal_module.default.iconEgov, "data-testid": "ErrorModal_LOGO", children: jsxRuntime.jsx(Egov.EgovIcon, { width: "70px", height: "24px", viewBox: "0 0 70 24" }) }), jsxRuntime.jsx("button", { type: "button", onClick: onClose, className: ErrorModal_module.default.actionButton, "data-testid": "ErrorModal_CLOSE_BTN", "aria-label": langDic.CloseModalButton[lang], children: jsxRuntime.jsx(Close.CloseIcon, { width: "16px", height: "16px" }) })] }), jsxRuntime.jsxs("div", { className: ErrorModal_module.default.bodyWrapper, "data-testid": "ErrorModal_BODY", children: [isAuthError ? (jsxRuntime.jsx(Verification.VerificationIllustration, { "data-testid": "ErrorModal_ICON_AUTH" })) : (jsxRuntime.jsx(InternetNotAvailable.InternetNotAvailableIllustration, { "data-testid": "ErrorModal_ICON_COMMON" })), jsxRuntime.jsx(index$2.Title, { isCentered: true, title: langDic.Title[lang], size: "medium", subtext: langDicMsg }), footerButtons.length > 0 && (jsxRuntime.jsx("div", { className: ErrorModal_module.default.buttonWrapper, "data-testid": "ModalFooterButton_WRAP", children: footerButtons.map((item) => (jsxRuntime.jsx(index$3.Button, { "aria-label": item.text, "data-testid": item.dataTestid, disabled: item.isDisabled, onClick: item.onClick, size: "large", variant: item.variant, children: item.text }, item.dataTestid))) }))] })] }) }));
56
+ return (jsxRuntime.jsx(index.Modal, { isOpen: isOpen, setIsOpen: onClose, variant: "small", lang: lang, isContentScroll: false, children: jsxRuntime.jsxs("div", { className: ErrorModal_module.default.wrapper, "data-testid": "ErrorModal_WRAPPER", children: [jsxRuntime.jsxs("div", { className: ErrorModal_module.default.headerWrapper, "data-testid": "ErrorModal_HEADER", children: [jsxRuntime.jsx("span", { className: ErrorModal_module.default.iconEgov, "data-testid": "ErrorModal_LOGO", children: jsxRuntime.jsx(Egov.EgovIcon, { width: "70px", height: "24px", viewBox: "0 0 70 24" }) }), jsxRuntime.jsx("button", { type: "button", onClick: onClose, className: ErrorModal_module.default.actionButton, "data-testid": "ErrorModal_CLOSE_BTN", "aria-label": langDic.CloseModalButton[lang], children: jsxRuntime.jsx(Close.CloseIcon, { width: "16px", height: "16px" }) })] }), jsxRuntime.jsxs("div", { className: ErrorModal_module.default.bodyWrapper, "data-testid": "ErrorModal_BODY", children: [illustration ??
57
+ (isAuthError ? (jsxRuntime.jsx(Verification.VerificationIllustration, { "data-testid": "ErrorModal_ICON_AUTH" })) : (jsxRuntime.jsx(InternetNotAvailable.InternetNotAvailableIllustration, { "data-testid": "ErrorModal_ICON_COMMON" }))), jsxRuntime.jsx(index$2.Title, { isCentered: true, title: title ?? langDic.Title[lang], size: "medium", subtext: langDicMsg }), footerButtons.length > 0 && (jsxRuntime.jsx("div", { className: ErrorModal_module.default.buttonWrapper, "data-testid": "ModalFooterButton_WRAP", children: footerButtons.map((item) => (jsxRuntime.jsx(index$3.Button, { "aria-label": item.text, "data-testid": item.dataTestid, disabled: item.isDisabled, onClick: item.onClick, size: "large", variant: item.variant, children: item.text }, item.dataTestid))) }))] })] }) }));
57
58
  };
58
59
 
59
60
  exports.ErrorModal = ErrorModal;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["i18n","_jsx","Modal","_jsxs","styles","EgovIcon","CloseIcon","VerificationIllustration","InternetNotAvailableIllustration","Title","Button"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBa,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,OAAO,EACP,IAAI,EACJ,MAAM,EACN,OAAO,EACP,aAAa,GAAG,EAAE,GACD,KAAI;AACrB,IAAA,MAAM,WAAW,GAAG,MAAM,KAAK,GAAG;AAClC,IAAA,MAAM,OAAO,GAAGA,YAAI,CAAC,UAAU;IAC/B,MAAM,UAAU,GACd,OAAO,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IAEpE,QACEC,cAAA,CAACC,WAAK,EAAA,EACJ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,KAAK,EAAA,QAAA,EAEtBC,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,yBAAM,CAAC,OAAO,EAAA,aAAA,EAAc,oBAAoB,EAAA,QAAA,EAAA,CAC9DD,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,yBAAM,CAAC,aAAa,EAAA,aAAA,EAAc,mBAAmB,EAAA,QAAA,EAAA,CACnEH,cAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAEG,yBAAM,CAAC,QAAQ,EAAA,aAAA,EAAc,iBAAiB,EAAA,QAAA,EAC7DH,cAAA,CAACI,aAAQ,EAAA,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAA,CAAG,EAAA,CACtD,EACPJ,cAAA,CAAA,QAAA,EAAA,EACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE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CACF,EAAA,CACA;AAEZ;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["i18n","_jsx","Modal","_jsxs","styles","EgovIcon","CloseIcon","VerificationIllustration","InternetNotAvailableIllustration","Title","Button"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBO,MAAM,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,OAAO,EACP,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,aAAa,GAAG,EAAE,GACD,KAAI;AACrB,IAAA,MAAM,WAAW,GAAG,MAAM,KAAK,GAAG;AAClC,IAAA,MAAM,OAAO,GAAGA,YAAI,CAAC,UAAU;IAC/B,MAAM,UAAU,GACd,OAAO,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IAEpE,QACEC,cAAA,CAACC,WAAK,EAAA,EACJ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,KAAK,EAAA,QAAA,EAEtBC,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,yBAAM,CAAC,OAAO,EAAA,aAAA,EAAc,oBAAoB,EAAA,QAAA,EAAA,CAC9DD,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,yBAAM,CAAC,aAAa,EAAA,aAAA,EAAc,mBAAmB,EAAA,QAAA,EAAA,CACnEH,yBAAM,SAAS,EAAEG,yBAAM,CAAC,QAAQ,EAAA,aAAA,EAAc,iBAAiB,EAAA,QAAA,EAC7DH,cAAA,CAACI,aAAQ,EAAA,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAA,CAAG,EAAA,CACtD,EACPJ,cAAA,CAAA,QAAA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I,CAAC,IAAI,EAAA,EAJL,IAAI,CAAC,UAAU,CAKb,CACV,CAAC,EAAA,CACE,CACP,CAAA,EAAA,CACG,CAAA,EAAA,CACF,EAAA,CACA;AAEZ;;;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var css_248z = ".CodeInput-module_wrapper__npfrd {\n display: flex;\n flex-direction: column;\n gap: 32px;\n align-self: stretch;\n}\n\n.CodeInput-module_infoBlock__ZZcia {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.CodeInput-module_title__oVT2Y {\n text-align: center;\n font-kerning: none;\n}\n\n.CodeInput-module_description__8oFOt {\n text-align: center;\n display: block;\n}\n\n.CodeInput-module_inputWrapper__EpRgu {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n}\n\n.CodeInput-module_resendButton__i0GX- {\n width: fit-content;\n align-self: center;\n}\n";
6
+ var styles = {"wrapper":"CodeInput-module_wrapper__npfrd","infoBlock":"CodeInput-module_infoBlock__ZZcia","title":"CodeInput-module_title__oVT2Y","description":"CodeInput-module_description__8oFOt","inputWrapper":"CodeInput-module_inputWrapper__EpRgu","resendButton":"CodeInput-module_resendButton__i0GX-"};
7
+ function styleInject(css, options) {
8
+ if (typeof document === 'undefined') return;
9
+ const head = document.head || document.getElementsByTagName('head')[0];
10
+ const style = document.createElement('style');
11
+ style.type = 'text/css';
12
+ if (style.styleSheet) {
13
+ style.styleSheet.cssText = css;
14
+ } else {
15
+ style.appendChild(document.createTextNode(css));
16
+ }
17
+ head.appendChild(style);
18
+ }
19
+ styleInject(css_248z);
20
+
21
+ exports.default = styles;
22
+ //# sourceMappingURL=CodeInput.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeInput.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ require('../../../styles/colors.css.js');
5
+ require('../../../baseComponents/Accordion/Accordion.module.css.js');
6
+ require('@egov3/graphics/General/Close');
7
+ require('react');
8
+ require('../../../baseComponents/Overlay/Overlay.module.css.js');
9
+ var index = require('../../../baseComponents/Typography/index.js');
10
+ require('../../../baseComponents/BottomSheet/BottomSheet.module.css.js');
11
+ var index$4 = require('../../../baseComponents/Button/index.js');
12
+ require('@egov3/graphics/General/CheckboxEmpty');
13
+ require('@egov3/graphics/General/CheckboxEmptyFilled');
14
+ require('../../../styles/typography.module.css.js');
15
+ require('../../../baseComponents/Checkbox/Checkbox.module.css.js');
16
+ require('../../../baseComponents/RadioGroup/RadioGroup.module.css.js');
17
+ require('@egov3/graphics/Basic/ChevronDownSmall');
18
+ var index$2 = require('../../../constants/i18n/index.js');
19
+ require('../../../baseComponents/SelectBoxButton/SelectBoxButton.module.css.js');
20
+ require('../../../baseComponents/DropdownSelect/DropdownSelect.module.css.js');
21
+ require('../../../baseComponents/InputField/index.js');
22
+ var index$1 = require('../../../baseComponents/InputFieldGroup/index.js');
23
+ require('../../../baseComponents/Label/Label.module.css.js');
24
+ require('../../../baseComponents/Loader/Loader.module.css.js');
25
+ require('../../../baseComponents/LoadingSkeleton/LoadingSkeleton.module.css.js');
26
+ require('@egov3/graphics/Basic/ChevronLeft');
27
+ require('@egov3/graphics/Logo/Egov');
28
+ require('../../../baseComponents/Modal/Modal.module.css.js');
29
+ require('../../../baseComponents/PhotoCutter/PhotoCutter.module.css.js');
30
+ require('../../../baseComponents/ProgressBar/ProgressBar.module.css.js');
31
+ require('../../../baseComponents/RadioToggle/RadioToggle.module.css.js');
32
+ require('@egov3/graphics/General/DocFilled');
33
+ var index$3 = require('../../../baseComponents/StatusText/index.js');
34
+ require('../../../baseComponents/Responses/Responses.module.css.js');
35
+ require('@egov3/graphics/General/Clear');
36
+ require('@egov3/graphics/General/Loader');
37
+ require('@egov3/graphics/General/Search');
38
+ require('../../../baseComponents/SearchBar/SearchBar.module.css.js');
39
+ require('@egov3/graphics/Basic/Check');
40
+ require('@egov3/graphics/General/Hourglass');
41
+ require('../../../baseComponents/StatusStepper/StatusStepper.module.css.js');
42
+ require('../../../baseComponents/TabButtons/TabButtons.module.css.js');
43
+ require('../../../baseComponents/TextareaField/index.js');
44
+ require('../../../baseComponents/TextPair/TextPair.module.css.js');
45
+ require('../../../baseComponents/TextWithAction/TextWithAction.module.css.js');
46
+ require('../../../baseComponents/Title/Title.module.css.js');
47
+ var CodeInput_module = require('./CodeInput.module.css.js');
48
+
49
+ const CodeInput = ({ lang, title, description, code, handleInputChange, errorText, resendButton, "data-testid": dataTestid = "CodeInput", }) => {
50
+ const langDic = index$2.i18n.CodeInput;
51
+ return (jsxRuntime.jsxs("div", { className: CodeInput_module.default.wrapper, "data-testid": `${dataTestid}_WRAPPER`, children: [jsxRuntime.jsxs("div", { className: CodeInput_module.default.infoBlock, "data-testid": `${dataTestid}_INFO`, children: [jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "heading3", className: CodeInput_module.default.title, "data-testid": `${dataTestid}_TITLE`, "aria-label": title, children: title }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "body2Regular", className: CodeInput_module.default.description, "data-testid": `${dataTestid}_DESCRIPTION`, children: description })] }), jsxRuntime.jsxs("div", { className: CodeInput_module.default.inputWrapper, "data-testid": `${dataTestid}_INPUT_WRAPPER`, children: [jsxRuntime.jsx(index$1.InputFieldGroup, { length: code.length, code: code, handleInputChange: handleInputChange, "aria-label": langDic.AriaInputField[lang], "data-testid": `${dataTestid}_FIELD` }), errorText && errorText.length > 0 && (jsxRuntime.jsx(index$3.StatusText, { text: errorText, variant: "ERROR", isAlignedCenter: true }))] }), resendButton && (jsxRuntime.jsx(index$4.Button, { variant: "tinted", size: "small", className: CodeInput_module.default.resendButton, disabled: resendButton.isDisabled, onClick: resendButton.onClick, "aria-label": resendButton.label, "data-testid": `${dataTestid}_RESEND_BTN`, children: resendButton.label }))] }));
52
+ };
53
+
54
+ exports.CodeInput = CodeInput;
55
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/components/Identity/CodeInput/index.tsx"],"sourcesContent":[null],"names":["i18n","_jsxs","styles","_jsx","Typography","InputFieldGroup","StatusText","Button"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,IAAI,EACJ,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,aAAa,EAAE,UAAU,GAAG,WAAW,GACvB,KAAI;AACpB,IAAA,MAAM,OAAO,GAAGA,YAAI,CAAC,SAAS;IAE9B,QACEC,yBAAK,SAAS,EAAEC,wBAAM,CAAC,OAAO,iBAAe,CAAA,EAAG,UAAU,UAAU,EAAA,QAAA,EAAA,CAClED,eAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,wBAAM,CAAC,SAAS,EAAA,aAAA,EAAe,GAAG,UAAU,CAAA,KAAA,CAAO,aACjEC,cAAA,CAACC,gBAAU,IACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,UAAU,EACpB,SAAS,EAAEF,wBAAM,CAAC,KAAK,EAAA,aAAA,EACV,GAAG,UAAU,CAAA,MAAA,CAAQ,gBACtB,KAAK,EAAA,QAAA,EAEhB,KAAK,EAAA,CACK,EACbC,eAACC,gBAAU,EAAA,EACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,cAAc,EACxB,SAAS,EAAEF,wBAAM,CAAC,WAAW,EAAA,aAAA,EAChB,CAAA,EAAG,UAAU,CAAA,YAAA,CAAc,EAAA,QAAA,EAEvC,WAAW,EAAA,CACD,CAAA,EAAA,CACT,EACND,eAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEC,wBAAM,CAAC,YAAY,EAAA,aAAA,EACjB,CAAA,EAAG,UAAU,CAAA,cAAA,CAAgB,EAAA,QAAA,EAAA,CAE1CC,eAACE,uBAAe,EAAA,EACd,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAE,IAAI,EACV,iBAAiB,EAAE,iBAAiB,EAAA,YAAA,EACxB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAA,aAAA,EAC3B,GAAG,UAAU,CAAA,MAAA,CAAQ,GAClC,EACD,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,KAChCF,cAAA,CAACG,kBAAU,EAAA,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAC,OAAO,EAAC,eAAe,EAAE,IAAI,EAAA,CAAI,CACvE,IACG,EACL,YAAY,KACXH,cAAA,CAACI,cAAM,EAAA,EACL,OAAO,EAAC,QAAQ,EAChB,IAAI,EAAC,OAAO,EACZ,SAAS,EAAEL,wBAAM,CAAC,YAAY,EAC9B,QAAQ,EAAE,YAAY,CAAC,UAAU,EACjC,OAAO,EAAE,YAAY,CAAC,OAAO,gBACjB,YAAY,CAAC,KAAK,EAAA,aAAA,EACjB,CAAA,EAAG,UAAU,CAAA,WAAA,CAAa,EAAA,QAAA,EAEtC,YAAY,CAAC,KAAK,GACZ,CACV,CAAA,EAAA,CACG;AAEV;;;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ const CodeInput = {
4
+ AriaInputField: {
5
+ ru: "Поле для ввода кода",
6
+ kk: "Код енгізу өрісі",
7
+ en: "Code input field",
8
+ },
9
+ };
10
+
11
+ exports.CodeInput = CodeInput;
12
+ //# sourceMappingURL=CodeInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeInput.js","sources":["../../../../../src/constants/i18n/Identity/CodeInput.tsx"],"sourcesContent":[null],"names":[],"mappings":";;AAAO,MAAM,SAAS,GAAG;AACvB,IAAA,cAAc,EAAE;AACd,QAAA,EAAE,EAAE,qBAAqB;AACzB,QAAA,EAAE,EAAE,kBAAkB;AACtB,QAAA,EAAE,EAAE,kBAAkB;AACvB,KAAA;;;;;"}
@@ -6,6 +6,7 @@ var ErrorModal = require('./ErrorModal.js');
6
6
  var Agreement = require('./Identity/Agreement.js');
7
7
  var Auth = require('./Identity/Auth.js');
8
8
  var AuthQR = require('./Identity/AuthQR.js');
9
+ var CodeInput = require('./Identity/CodeInput.js');
9
10
  var EdsSuccess = require('./Identity/EdsSuccess.js');
10
11
  var EmptyMessages = require('./Messages/EmptyMessages.js');
11
12
  var HelpNotificationItem = require('./Messages/HelpNotificationItem.js');
@@ -36,6 +37,7 @@ const i18n = {
36
37
  EdsSuccess: EdsSuccess.EdsSuccess,
37
38
  Auth: Auth.Auth,
38
39
  Agreement: Agreement.Agreement,
40
+ CodeInput: CodeInput.CodeInput,
39
41
  HelpNotificationItem: HelpNotificationItem.HelpNotificationItem,
40
42
  MsgBody: MsgBody.MsgBody,
41
43
  EmptyMessages: EmptyMessages.EmptyMessages,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":["AuthQR","Calendar","Common","DocCard","Feedback","Modal","SelectBoxButton","ErrorModal","SetUpAccess","ProfileHealthGeneral","EdsSuccess","Auth","Agreement","HelpNotificationItem","MsgBody","EmptyMessages","MsgComponentHeader","FileUpload","PrivacyModal","SearchBar","ServiceDetails"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuBO,MAAM,IAAI,GAAG;YAClBA,aAAM;cACNC,iBAAQ;YACRC,aAAM;aACNC,eAAO;cACPC,iBAAQ;WACRC,WAAK;qBACLC,+BAAe;gBACfC,qBAAU;iBACVC,uBAAW;0BACXC,yCAAoB;gBACpBC,qBAAU;UACVC,SAAI;eACJC,mBAAS;0BACTC,yCAAoB;aAEpBC,eAAO;mBACPC,2BAAa;wBACbC,qCAAkB;gBAClBC,qBAAU;kBACVC,yBAAY;eACZC,mBAAS;oBACTC,6BAAc;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":["AuthQR","Calendar","Common","DocCard","Feedback","Modal","SelectBoxButton","ErrorModal","SetUpAccess","ProfileHealthGeneral","EdsSuccess","Auth","Agreement","CodeInput","HelpNotificationItem","MsgBody","EmptyMessages","MsgComponentHeader","FileUpload","PrivacyModal","SearchBar","ServiceDetails"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAwBO,MAAM,IAAI,GAAG;YAClBA,aAAM;cACNC,iBAAQ;YACRC,aAAM;aACNC,eAAO;cACPC,iBAAQ;WACRC,WAAK;qBACLC,+BAAe;gBACfC,qBAAU;iBACVC,uBAAW;0BACXC,yCAAoB;gBACpBC,qBAAU;UACVC,SAAI;eACJC,mBAAS;eACTC,mBAAS;0BACTC,yCAAoB;aAEpBC,eAAO;mBACPC,2BAAa;wBACbC,qCAAkB;gBAClBC,qBAAU;kBACVC,yBAAY;eACZC,mBAAS;oBACTC,6BAAc;;;;;"}
package/dist/cjs/index.js CHANGED
@@ -7,61 +7,62 @@ var index = require('./baseComponents/Accordion/index.js');
7
7
  var index$4 = require('./baseComponents/BottomSheet/index.js');
8
8
  var index$5 = require('./baseComponents/Button/index.js');
9
9
  var index$8 = require('./baseComponents/Checkbox/index.js');
10
- var index$b = require('./baseComponents/DropdownSelect/index.js');
11
- var index$l = require('./baseComponents/InputField/index.js');
12
- var index$m = require('./baseComponents/InputFieldGroup/index.js');
13
- var index$n = require('./baseComponents/Label/index.js');
14
- var index$o = require('./baseComponents/Loader/index.js');
15
- var index$p = require('./baseComponents/LoadingSkeleton/index.js');
16
- var index$q = require('./baseComponents/Modal/index.js');
17
- var index$x = require('./baseComponents/Overlay/index.js');
18
- var index$z = require('./baseComponents/PhotoCutter/index.js');
19
- var index$D = require('./baseComponents/ProgressBar/index.js');
20
- var index$9 = require('./baseComponents/RadioGroup/index.js');
21
- var index$F = require('./baseComponents/RadioToggle/index.js');
22
- var index$G = require('./baseComponents/Responses/index.js');
23
- var index$I = require('./baseComponents/SearchBar/index.js');
24
- var index$J = require('./baseComponents/SelectBoxButton/index.js');
25
- var index$N = require('./baseComponents/StatusStepper/index.js');
26
- var index$O = require('./baseComponents/StatusText/index.js');
27
- var index$P = require('./baseComponents/TabButtons/index.js');
28
- var index$S = require('./baseComponents/TextareaField/index.js');
29
- var index$Q = require('./baseComponents/TextPair/index.js');
30
- var index$R = require('./baseComponents/TextWithAction/index.js');
31
- var index$T = require('./baseComponents/Title/index.js');
32
- var index$U = require('./baseComponents/Typography/index.js');
10
+ var index$c = require('./baseComponents/DropdownSelect/index.js');
11
+ var index$m = require('./baseComponents/InputField/index.js');
12
+ var index$n = require('./baseComponents/InputFieldGroup/index.js');
13
+ var index$o = require('./baseComponents/Label/index.js');
14
+ var index$p = require('./baseComponents/Loader/index.js');
15
+ var index$q = require('./baseComponents/LoadingSkeleton/index.js');
16
+ var index$r = require('./baseComponents/Modal/index.js');
17
+ var index$y = require('./baseComponents/Overlay/index.js');
18
+ var index$A = require('./baseComponents/PhotoCutter/index.js');
19
+ var index$E = require('./baseComponents/ProgressBar/index.js');
20
+ var index$a = require('./baseComponents/RadioGroup/index.js');
21
+ var index$G = require('./baseComponents/RadioToggle/index.js');
22
+ var index$H = require('./baseComponents/Responses/index.js');
23
+ var index$J = require('./baseComponents/SearchBar/index.js');
24
+ var index$K = require('./baseComponents/SelectBoxButton/index.js');
25
+ var index$O = require('./baseComponents/StatusStepper/index.js');
26
+ var index$P = require('./baseComponents/StatusText/index.js');
27
+ var index$Q = require('./baseComponents/TabButtons/index.js');
28
+ var index$T = require('./baseComponents/TextareaField/index.js');
29
+ var index$R = require('./baseComponents/TextPair/index.js');
30
+ var index$S = require('./baseComponents/TextWithAction/index.js');
31
+ var index$U = require('./baseComponents/Title/index.js');
32
+ var index$V = require('./baseComponents/Typography/index.js');
33
33
  var index$6 = require('./components/Calendar/index.js');
34
34
  var index$7 = require('./components/Calendar/Body/index.js');
35
- var index$e = require('./components/ErrorModal/index.js');
35
+ var index$f = require('./components/ErrorModal/index.js');
36
36
  var index$1 = require('./components/Identity/Agreement/index.js');
37
37
  var index$2 = require('./components/Identity/Auth/index.js');
38
38
  var index$3 = require('./components/Identity/AuthQR/index.js');
39
- var index$c = require('./components/Identity/EdsSuccess/index.js');
40
- var index$k = require('./components/Identity/IdentityModal/index.js');
41
- var index$d = require('./components/Messages/EmptyMessages/index.js');
42
- var index$h = require('./components/Messages/HelpNotification/index.js');
43
- var index$i = require('./components/Messages/HelpNotificationItem/index.js');
44
- var index$r = require('./components/Messages/MsgBody/index.js');
45
- var index$s = require('./components/Messages/MsgComponentHeader/index.js');
46
- var index$t = require('./components/Messages/MsgSearch/index.js');
47
- var index$W = require('./components/Navigation/ViewToggle/index.js');
48
- var index$v = require('./components/Notification/Item/index.js');
49
- var index$w = require('./components/Notification/Wrapper/index.js');
50
- var index$A = require('./components/Presale/index.js');
51
- var index$B = require('./components/PrivacyModal/index.js');
52
- var index$a = require('./components/Profile/DocCard/index.js');
53
- var index$j = require('./components/Profile/IconToggleItem/index.js');
54
- var index$C = require('./components/Profile/ProfileHealthGeneral/index.js');
55
- var index$H = require('./components/Profile/RightMenuSectionItem/index.js');
56
- var index$L = require('./components/Profile/SetUpAccess/index.js');
57
- var index$E = require('./components/QRAppButton/index.js');
58
- var index$f = require('./components/Services/Feedback/index.js');
59
- var index$g = require('./components/Services/FileForUpload/index.js');
60
- var index$u = require('./components/Services/NextStepComponent/index.js');
61
- var index$y = require('./components/Services/PersonalIDTemplate/index.js');
62
- var index$K = require('./components/Services/ServiceCardComponent/index.js');
63
- var index$V = require('./components/Services/UsefulServiceCard/index.js');
64
- var index$M = require('./components/SocialCard/index.js');
39
+ var index$9 = require('./components/Identity/CodeInput/index.js');
40
+ var index$d = require('./components/Identity/EdsSuccess/index.js');
41
+ var index$l = require('./components/Identity/IdentityModal/index.js');
42
+ var index$e = require('./components/Messages/EmptyMessages/index.js');
43
+ var index$i = require('./components/Messages/HelpNotification/index.js');
44
+ var index$j = require('./components/Messages/HelpNotificationItem/index.js');
45
+ var index$s = require('./components/Messages/MsgBody/index.js');
46
+ var index$t = require('./components/Messages/MsgComponentHeader/index.js');
47
+ var index$u = require('./components/Messages/MsgSearch/index.js');
48
+ var index$X = require('./components/Navigation/ViewToggle/index.js');
49
+ var index$w = require('./components/Notification/Item/index.js');
50
+ var index$x = require('./components/Notification/Wrapper/index.js');
51
+ var index$B = require('./components/Presale/index.js');
52
+ var index$C = require('./components/PrivacyModal/index.js');
53
+ var index$b = require('./components/Profile/DocCard/index.js');
54
+ var index$k = require('./components/Profile/IconToggleItem/index.js');
55
+ var index$D = require('./components/Profile/ProfileHealthGeneral/index.js');
56
+ var index$I = require('./components/Profile/RightMenuSectionItem/index.js');
57
+ var index$M = require('./components/Profile/SetUpAccess/index.js');
58
+ var index$F = require('./components/QRAppButton/index.js');
59
+ var index$g = require('./components/Services/Feedback/index.js');
60
+ var index$h = require('./components/Services/FileForUpload/index.js');
61
+ var index$v = require('./components/Services/NextStepComponent/index.js');
62
+ var index$z = require('./components/Services/PersonalIDTemplate/index.js');
63
+ var index$L = require('./components/Services/ServiceCardComponent/index.js');
64
+ var index$W = require('./components/Services/UsefulServiceCard/index.js');
65
+ var index$N = require('./components/SocialCard/index.js');
65
66
 
66
67
 
67
68
 
@@ -69,60 +70,61 @@ exports.Accordion = index.Accordion;
69
70
  exports.BottomSheet = index$4.BottomSheet;
70
71
  exports.Button = index$5.Button;
71
72
  exports.Checkbox = index$8.Checkbox;
72
- exports.DropdownSelect = index$b.DropdownSelect;
73
- exports.InputField = index$l.InputField;
74
- exports.InputFieldGroup = index$m.InputFieldGroup;
75
- exports.Label = index$n.Label;
76
- exports.Loader = index$o.Loader;
77
- exports.LoadingSkeleton = index$p.LoadingSkeleton;
78
- exports.Modal = index$q.Modal;
79
- exports.Overlay = index$x.Overlay;
80
- exports.PhotoCutter = index$z.PhotoCutter;
81
- exports.ProgressBar = index$D.ProgressBar;
82
- exports.CustomRadioButton = index$9.CustomRadioButton;
83
- exports.RadioGroup = index$9.RadioGroup;
84
- exports.RadioToggle = index$F.RadioToggle;
85
- exports.Responses = index$G.Responses;
86
- exports.SearchBar = index$I.SearchBar;
87
- exports.SelectBoxButton = index$J.SelectBoxButton;
88
- exports.StatusStepper = index$N.StatusStepper;
89
- exports.StatusText = index$O.StatusText;
90
- exports.TabButtons = index$P.TabButtons;
91
- exports.TextareaField = index$S.TextareaField;
92
- exports.TextPair = index$Q.TextPair;
93
- exports.TextWithAction = index$R.TextWithAction;
94
- exports.Title = index$T.Title;
95
- exports.Typography = index$U.Typography;
73
+ exports.DropdownSelect = index$c.DropdownSelect;
74
+ exports.InputField = index$m.InputField;
75
+ exports.InputFieldGroup = index$n.InputFieldGroup;
76
+ exports.Label = index$o.Label;
77
+ exports.Loader = index$p.Loader;
78
+ exports.LoadingSkeleton = index$q.LoadingSkeleton;
79
+ exports.Modal = index$r.Modal;
80
+ exports.Overlay = index$y.Overlay;
81
+ exports.PhotoCutter = index$A.PhotoCutter;
82
+ exports.ProgressBar = index$E.ProgressBar;
83
+ exports.CustomRadioButton = index$a.CustomRadioButton;
84
+ exports.RadioGroup = index$a.RadioGroup;
85
+ exports.RadioToggle = index$G.RadioToggle;
86
+ exports.Responses = index$H.Responses;
87
+ exports.SearchBar = index$J.SearchBar;
88
+ exports.SelectBoxButton = index$K.SelectBoxButton;
89
+ exports.StatusStepper = index$O.StatusStepper;
90
+ exports.StatusText = index$P.StatusText;
91
+ exports.TabButtons = index$Q.TabButtons;
92
+ exports.TextareaField = index$T.TextareaField;
93
+ exports.TextPair = index$R.TextPair;
94
+ exports.TextWithAction = index$S.TextWithAction;
95
+ exports.Title = index$U.Title;
96
+ exports.Typography = index$V.Typography;
96
97
  exports.Calendar = index$6.Calendar;
97
98
  exports.CalendarBody = index$7.CalendarBody;
98
- exports.ErrorModal = index$e.ErrorModal;
99
+ exports.ErrorModal = index$f.ErrorModal;
99
100
  exports.Agreement = index$1.Agreement;
100
101
  exports.Auth = index$2.Auth;
101
102
  exports.AuthQR = index$3.AuthQR;
102
- exports.EdsSuccess = index$c.EdsSuccess;
103
- exports.IdentityModal = index$k.IdentityModal;
104
- exports.EmptyMessages = index$d.EmptyMessages;
105
- exports.HelpNotification = index$h.HelpNotification;
106
- exports.HelpNotificationItem = index$i.HelpNotificationItem;
107
- exports.MsgBody = index$r.MsgBody;
108
- exports.MsgComponentHeader = index$s.MsgComponentHeader;
109
- exports.MsgSearch = index$t.MsgSearch;
110
- exports.ViewToggle = index$W.ViewToggle;
111
- exports.NotificationItem = index$v.NotificationItem;
112
- exports.NotificationWrapper = index$w.NotificationWrapper;
113
- exports.PresaleComponent = index$A.PresaleComponent;
114
- exports.PrivacyModal = index$B.PrivacyModal;
115
- exports.DocCard = index$a.DocCard;
116
- exports.IconToggleItem = index$j.IconToggleItem;
117
- exports.ProfileHealthGeneral = index$C.ProfileHealthGeneral;
118
- exports.RightMenuSectionItem = index$H.RightMenuSectionItem;
119
- exports.SetUpAccess = index$L.SetUpAccess;
120
- exports.QRAppButton = index$E.QRAppButton;
121
- exports.Feedback = index$f.Feedback;
122
- exports.FileForUpload = index$g.FileForUpload;
123
- exports.NextStepComponent = index$u.NextStepComponent;
124
- exports.PersonalIDTemplate = index$y.PersonalIDTemplate;
125
- exports.ServiceCardComponent = index$K.ServiceCardComponent;
126
- exports.UsefulServiceCard = index$V.UsefulServiceCard;
127
- exports.SocialCard = index$M.SocialCard;
103
+ exports.CodeInput = index$9.CodeInput;
104
+ exports.EdsSuccess = index$d.EdsSuccess;
105
+ exports.IdentityModal = index$l.IdentityModal;
106
+ exports.EmptyMessages = index$e.EmptyMessages;
107
+ exports.HelpNotification = index$i.HelpNotification;
108
+ exports.HelpNotificationItem = index$j.HelpNotificationItem;
109
+ exports.MsgBody = index$s.MsgBody;
110
+ exports.MsgComponentHeader = index$t.MsgComponentHeader;
111
+ exports.MsgSearch = index$u.MsgSearch;
112
+ exports.ViewToggle = index$X.ViewToggle;
113
+ exports.NotificationItem = index$w.NotificationItem;
114
+ exports.NotificationWrapper = index$x.NotificationWrapper;
115
+ exports.PresaleComponent = index$B.PresaleComponent;
116
+ exports.PrivacyModal = index$C.PrivacyModal;
117
+ exports.DocCard = index$b.DocCard;
118
+ exports.IconToggleItem = index$k.IconToggleItem;
119
+ exports.ProfileHealthGeneral = index$D.ProfileHealthGeneral;
120
+ exports.RightMenuSectionItem = index$I.RightMenuSectionItem;
121
+ exports.SetUpAccess = index$M.SetUpAccess;
122
+ exports.QRAppButton = index$F.QRAppButton;
123
+ exports.Feedback = index$g.Feedback;
124
+ exports.FileForUpload = index$h.FileForUpload;
125
+ exports.NextStepComponent = index$v.NextStepComponent;
126
+ exports.PersonalIDTemplate = index$z.PersonalIDTemplate;
127
+ exports.ServiceCardComponent = index$L.ServiceCardComponent;
128
+ exports.UsefulServiceCard = index$W.UsefulServiceCard;
129
+ exports.SocialCard = index$N.SocialCard;
128
130
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -47,11 +47,12 @@ import '../../baseComponents/TextWithAction/TextWithAction.module.css.js';
47
47
  import { Title } from '../../baseComponents/Title/index.js';
48
48
  import styles from './ErrorModal.module.css.js';
49
49
 
50
- const ErrorModal = ({ status, message, lang, isOpen, onClose, footerButtons = [], }) => {
50
+ const ErrorModal = ({ status, message, title, illustration, lang, isOpen, onClose, footerButtons = [], }) => {
51
51
  const isAuthError = status === 401;
52
52
  const langDic = i18n.ErrorModal;
53
53
  const langDicMsg = message ?? (isAuthError ? langDic.NotAuthorizedMessage[lang] : "");
54
- return (jsx(Modal, { isOpen: isOpen, setIsOpen: onClose, variant: "small", lang: lang, isContentScroll: false, children: jsxs("div", { className: styles.wrapper, "data-testid": "ErrorModal_WRAPPER", children: [jsxs("div", { className: styles.headerWrapper, "data-testid": "ErrorModal_HEADER", children: [jsx("span", { className: styles.iconEgov, "data-testid": "ErrorModal_LOGO", children: jsx(EgovIcon, { width: "70px", height: "24px", viewBox: "0 0 70 24" }) }), jsx("button", { type: "button", onClick: onClose, className: styles.actionButton, "data-testid": "ErrorModal_CLOSE_BTN", "aria-label": langDic.CloseModalButton[lang], children: jsx(CloseIcon, { width: "16px", height: "16px" }) })] }), jsxs("div", { className: styles.bodyWrapper, "data-testid": "ErrorModal_BODY", children: [isAuthError ? (jsx(VerificationIllustration, { "data-testid": "ErrorModal_ICON_AUTH" })) : (jsx(InternetNotAvailableIllustration, { "data-testid": "ErrorModal_ICON_COMMON" })), jsx(Title, { isCentered: true, title: langDic.Title[lang], size: "medium", subtext: langDicMsg }), footerButtons.length > 0 && (jsx("div", { className: styles.buttonWrapper, "data-testid": "ModalFooterButton_WRAP", children: footerButtons.map((item) => (jsx(Button, { "aria-label": item.text, "data-testid": item.dataTestid, disabled: item.isDisabled, onClick: item.onClick, size: "large", variant: item.variant, children: item.text }, item.dataTestid))) }))] })] }) }));
54
+ return (jsx(Modal, { isOpen: isOpen, setIsOpen: onClose, variant: "small", lang: lang, isContentScroll: false, children: jsxs("div", { className: styles.wrapper, "data-testid": "ErrorModal_WRAPPER", children: [jsxs("div", { className: styles.headerWrapper, "data-testid": "ErrorModal_HEADER", children: [jsx("span", { className: styles.iconEgov, "data-testid": "ErrorModal_LOGO", children: jsx(EgovIcon, { width: "70px", height: "24px", viewBox: "0 0 70 24" }) }), jsx("button", { type: "button", onClick: onClose, className: styles.actionButton, "data-testid": "ErrorModal_CLOSE_BTN", "aria-label": langDic.CloseModalButton[lang], children: jsx(CloseIcon, { width: "16px", height: "16px" }) })] }), jsxs("div", { className: styles.bodyWrapper, "data-testid": "ErrorModal_BODY", children: [illustration ??
55
+ (isAuthError ? (jsx(VerificationIllustration, { "data-testid": "ErrorModal_ICON_AUTH" })) : (jsx(InternetNotAvailableIllustration, { "data-testid": "ErrorModal_ICON_COMMON" }))), jsx(Title, { isCentered: true, title: title ?? langDic.Title[lang], size: "medium", subtext: langDicMsg }), footerButtons.length > 0 && (jsx("div", { className: styles.buttonWrapper, "data-testid": "ModalFooterButton_WRAP", children: footerButtons.map((item) => (jsx(Button, { "aria-label": item.text, "data-testid": item.dataTestid, disabled: item.isDisabled, onClick: item.onClick, size: "large", variant: item.variant, children: item.text }, item.dataTestid))) }))] })] }) }));
55
56
  };
56
57
 
57
58
  export { ErrorModal };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBa,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,OAAO,EACP,IAAI,EACJ,MAAM,EACN,OAAO,EACP,aAAa,GAAG,EAAE,GACD,KAAI;AACrB,IAAA,MAAM,WAAW,GAAG,MAAM,KAAK,GAAG;AAClC,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU;IAC/B,MAAM,UAAU,GACd,OAAO,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IAEpE,QACEA,GAAA,CAAC,KAAK,EAAA,EACJ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,KAAK,EAAA,QAAA,EAEtBC,IAAA,CAAA,KAAA,EAA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AAC,KACvBA,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,aAAa,EAAA,aAAA,EACnB,wBAAwB,EAAA,QAAA,EAEnC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,MACtBA,GAAA,CAAC,MAAM,EAAA,EAAA,YAAA,EACO,IAAI,CAAC,IAAI,EAAA,aAAA,EACR,IAAI,CAAC,UAAU,EAC5B,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,EAErB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,OAAO,EAAA,QAAA,EAEpB,IAAI,CAAC,IAAI,EAAA,EAJL,IAAI,CAAC,UAAU,CAKb,CACV,CAAC,EAAA,CACE,CACP,CAAA,EAAA,CACG,CAAA,EAAA,CACF,EAAA,CACA;AAEZ;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBO,MAAM,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,OAAO,EACP,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,aAAa,GAAG,EAAE,GACD,KAAI;AACrB,IAAA,MAAM,WAAW,GAAG,MAAM,KAAK,GAAG;AAClC,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU;IAC/B,MAAM,UAAU,GACd,OAAO,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;IAEpE,QACEA,GAAA,CAAC,KAAK,EAAA,EACJ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,OAAO,EAClB,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,IAAI,EACV,eAAe,EAAE,KAAK,EAAA,QAAA,EAEtBC,IAAA,CAAA,KA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AAC,MAAM,GAAG,CAAC,KACvBA,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,aAAa,EAAA,aAAA,EACnB,wBAAwB,EAAA,QAAA,EAEnC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,MACtBA,GAAA,CAAC,MAAM,EAAA,EAAA,YAAA,EACO,IAAI,CAAC,IAAI,EAAA,aAAA,EACR,IAAI,CAAC,UAAU,EAC5B,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,OAAO,EAAE,IAAI,CAAC,OAAO,EAErB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,OAAO,EAAA,QAAA,EAEpB,IAAI,CAAC,IAAI,EAAA,EAJL,IAAI,CAAC,UAAU,CAKb,CACV,CAAC,EAAA,CACE,CACP,CAAA,EAAA,CACG,CAAA,EAAA,CACF,EAAA,CACA;AAEZ;;;;"}
@@ -0,0 +1,18 @@
1
+ var css_248z = ".CodeInput-module_wrapper__npfrd {\n display: flex;\n flex-direction: column;\n gap: 32px;\n align-self: stretch;\n}\n\n.CodeInput-module_infoBlock__ZZcia {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.CodeInput-module_title__oVT2Y {\n text-align: center;\n font-kerning: none;\n}\n\n.CodeInput-module_description__8oFOt {\n text-align: center;\n display: block;\n}\n\n.CodeInput-module_inputWrapper__EpRgu {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n}\n\n.CodeInput-module_resendButton__i0GX- {\n width: fit-content;\n align-self: center;\n}\n";
2
+ var styles = {"wrapper":"CodeInput-module_wrapper__npfrd","infoBlock":"CodeInput-module_infoBlock__ZZcia","title":"CodeInput-module_title__oVT2Y","description":"CodeInput-module_description__8oFOt","inputWrapper":"CodeInput-module_inputWrapper__EpRgu","resendButton":"CodeInput-module_resendButton__i0GX-"};
3
+ function styleInject(css, options) {
4
+ if (typeof document === 'undefined') return;
5
+ const head = document.head || document.getElementsByTagName('head')[0];
6
+ const style = document.createElement('style');
7
+ style.type = 'text/css';
8
+ if (style.styleSheet) {
9
+ style.styleSheet.cssText = css;
10
+ } else {
11
+ style.appendChild(document.createTextNode(css));
12
+ }
13
+ head.appendChild(style);
14
+ }
15
+ styleInject(css_248z);
16
+
17
+ export { styles as default };
18
+ //# sourceMappingURL=CodeInput.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeInput.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,53 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import '../../../styles/colors.css.js';
3
+ import '../../../baseComponents/Accordion/Accordion.module.css.js';
4
+ import '@egov3/graphics/General/Close';
5
+ import 'react';
6
+ import '../../../baseComponents/Overlay/Overlay.module.css.js';
7
+ import { Typography } from '../../../baseComponents/Typography/index.js';
8
+ import '../../../baseComponents/BottomSheet/BottomSheet.module.css.js';
9
+ import { Button } from '../../../baseComponents/Button/index.js';
10
+ import '@egov3/graphics/General/CheckboxEmpty';
11
+ import '@egov3/graphics/General/CheckboxEmptyFilled';
12
+ import '../../../styles/typography.module.css.js';
13
+ import '../../../baseComponents/Checkbox/Checkbox.module.css.js';
14
+ import '../../../baseComponents/RadioGroup/RadioGroup.module.css.js';
15
+ import '@egov3/graphics/Basic/ChevronDownSmall';
16
+ import { i18n } from '../../../constants/i18n/index.js';
17
+ import '../../../baseComponents/SelectBoxButton/SelectBoxButton.module.css.js';
18
+ import '../../../baseComponents/DropdownSelect/DropdownSelect.module.css.js';
19
+ import '../../../baseComponents/InputField/index.js';
20
+ import { InputFieldGroup } from '../../../baseComponents/InputFieldGroup/index.js';
21
+ import '../../../baseComponents/Label/Label.module.css.js';
22
+ import '../../../baseComponents/Loader/Loader.module.css.js';
23
+ import '../../../baseComponents/LoadingSkeleton/LoadingSkeleton.module.css.js';
24
+ import '@egov3/graphics/Basic/ChevronLeft';
25
+ import '@egov3/graphics/Logo/Egov';
26
+ import '../../../baseComponents/Modal/Modal.module.css.js';
27
+ import '../../../baseComponents/PhotoCutter/PhotoCutter.module.css.js';
28
+ import '../../../baseComponents/ProgressBar/ProgressBar.module.css.js';
29
+ import '../../../baseComponents/RadioToggle/RadioToggle.module.css.js';
30
+ import '@egov3/graphics/General/DocFilled';
31
+ import { StatusText } from '../../../baseComponents/StatusText/index.js';
32
+ import '../../../baseComponents/Responses/Responses.module.css.js';
33
+ import '@egov3/graphics/General/Clear';
34
+ import '@egov3/graphics/General/Loader';
35
+ import '@egov3/graphics/General/Search';
36
+ import '../../../baseComponents/SearchBar/SearchBar.module.css.js';
37
+ import '@egov3/graphics/Basic/Check';
38
+ import '@egov3/graphics/General/Hourglass';
39
+ import '../../../baseComponents/StatusStepper/StatusStepper.module.css.js';
40
+ import '../../../baseComponents/TabButtons/TabButtons.module.css.js';
41
+ import '../../../baseComponents/TextareaField/index.js';
42
+ import '../../../baseComponents/TextPair/TextPair.module.css.js';
43
+ import '../../../baseComponents/TextWithAction/TextWithAction.module.css.js';
44
+ import '../../../baseComponents/Title/Title.module.css.js';
45
+ import styles from './CodeInput.module.css.js';
46
+
47
+ const CodeInput = ({ lang, title, description, code, handleInputChange, errorText, resendButton, "data-testid": dataTestid = "CodeInput", }) => {
48
+ const langDic = i18n.CodeInput;
49
+ return (jsxs("div", { className: styles.wrapper, "data-testid": `${dataTestid}_WRAPPER`, children: [jsxs("div", { className: styles.infoBlock, "data-testid": `${dataTestid}_INFO`, children: [jsx(Typography, { tag: "span", fontClass: "heading3", className: styles.title, "data-testid": `${dataTestid}_TITLE`, "aria-label": title, children: title }), jsx(Typography, { tag: "span", fontClass: "body2Regular", className: styles.description, "data-testid": `${dataTestid}_DESCRIPTION`, children: description })] }), jsxs("div", { className: styles.inputWrapper, "data-testid": `${dataTestid}_INPUT_WRAPPER`, children: [jsx(InputFieldGroup, { length: code.length, code: code, handleInputChange: handleInputChange, "aria-label": langDic.AriaInputField[lang], "data-testid": `${dataTestid}_FIELD` }), errorText && errorText.length > 0 && (jsx(StatusText, { text: errorText, variant: "ERROR", isAlignedCenter: true }))] }), resendButton && (jsx(Button, { variant: "tinted", size: "small", className: styles.resendButton, disabled: resendButton.isDisabled, onClick: resendButton.onClick, "aria-label": resendButton.label, "data-testid": `${dataTestid}_RESEND_BTN`, children: resendButton.label }))] }));
50
+ };
51
+
52
+ export { CodeInput };
53
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/components/Identity/CodeInput/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BO,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,IAAI,EACJ,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,aAAa,EAAE,UAAU,GAAG,WAAW,GACvB,KAAI;AACpB,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS;IAE9B,QACEA,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,iBAAe,CAAA,EAAG,UAAU,UAAU,EAAA,QAAA,EAAA,CAClEA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,SAAS,EAAA,aAAA,EAAe,GAAG,UAAU,CAAA,KAAA,CAAO,aACjEC,GAAA,CAAC,UAAU,IACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,UAAU,EACpB,SAAS,EAAE,MAAM,CAAC,KAAK,EAAA,aAAA,EACV,GAAG,UAAU,CAAA,MAAA,CAAQ,gBACtB,KAAK,EAAA,QAAA,EAEhB,KAAK,EAAA,CACK,EACbA,IAAC,UAAU,EAAA,EACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,cAAc,EACxB,SAAS,EAAE,MAAM,CAAC,WAAW,EAAA,aAAA,EAChB,CAAA,EAAG,UAAU,CAAA,YAAA,CAAc,EAAA,QAAA,EAEvC,WAAW,EAAA,CACD,CAAA,EAAA,CACT,EACND,IAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,YAAY,EAAA,aAAA,EACjB,CAAA,EAAG,UAAU,CAAA,cAAA,CAAgB,EAAA,QAAA,EAAA,CAE1CC,IAAC,eAAe,EAAA,EACd,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAE,IAAI,EACV,iBAAiB,EAAE,iBAAiB,EAAA,YAAA,EACxB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAA,aAAA,EAC3B,GAAG,UAAU,CAAA,MAAA,CAAQ,GAClC,EACD,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,KAChCA,GAAA,CAAC,UAAU,EAAA,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAC,OAAO,EAAC,eAAe,EAAE,IAAI,EAAA,CAAI,CACvE,IACG,EACL,YAAY,KACXA,GAAA,CAAC,MAAM,EAAA,EACL,OAAO,EAAC,QAAQ,EAChB,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,MAAM,CAAC,YAAY,EAC9B,QAAQ,EAAE,YAAY,CAAC,UAAU,EACjC,OAAO,EAAE,YAAY,CAAC,OAAO,gBACjB,YAAY,CAAC,KAAK,EAAA,aAAA,EACjB,CAAA,EAAG,UAAU,CAAA,WAAA,CAAa,EAAA,QAAA,EAEtC,YAAY,CAAC,KAAK,GACZ,CACV,CAAA,EAAA,CACG;AAEV;;;;"}
@@ -0,0 +1,10 @@
1
+ const CodeInput = {
2
+ AriaInputField: {
3
+ ru: "Поле для ввода кода",
4
+ kk: "Код енгізу өрісі",
5
+ en: "Code input field",
6
+ },
7
+ };
8
+
9
+ export { CodeInput };
10
+ //# sourceMappingURL=CodeInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeInput.js","sources":["../../../../../src/constants/i18n/Identity/CodeInput.tsx"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,SAAS,GAAG;AACvB,IAAA,cAAc,EAAE;AACd,QAAA,EAAE,EAAE,qBAAqB;AACzB,QAAA,EAAE,EAAE,kBAAkB;AACtB,QAAA,EAAE,EAAE,kBAAkB;AACvB,KAAA;;;;;"}
@@ -4,6 +4,7 @@ import { ErrorModal } from './ErrorModal.js';
4
4
  import { Agreement } from './Identity/Agreement.js';
5
5
  import { Auth } from './Identity/Auth.js';
6
6
  import { AuthQR } from './Identity/AuthQR.js';
7
+ import { CodeInput } from './Identity/CodeInput.js';
7
8
  import { EdsSuccess } from './Identity/EdsSuccess.js';
8
9
  import { EmptyMessages } from './Messages/EmptyMessages.js';
9
10
  import { HelpNotificationItem } from './Messages/HelpNotificationItem.js';
@@ -34,6 +35,7 @@ const i18n = {
34
35
  EdsSuccess,
35
36
  Auth,
36
37
  Agreement,
38
+ CodeInput,
37
39
  HelpNotificationItem,
38
40
  MsgBody,
39
41
  EmptyMessages,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuBO,MAAM,IAAI,GAAG;IAClB,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;IACL,eAAe;IACf,UAAU;IACV,WAAW;IACX,oBAAoB;IACpB,UAAU;IACV,IAAI;IACJ,SAAS;IACT,oBAAoB;IAEpB,OAAO;IACP,aAAa;IACb,kBAAkB;IAClB,UAAU;IACV,YAAY;IACZ,SAAS;IACT,cAAc;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBO,MAAM,IAAI,GAAG;IAClB,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;IACL,eAAe;IACf,UAAU;IACV,WAAW;IACX,oBAAoB;IACpB,UAAU;IACV,IAAI;IACJ,SAAS;IACT,SAAS;IACT,oBAAoB;IAEpB,OAAO;IACP,aAAa;IACb,kBAAkB;IAClB,UAAU;IACV,YAAY;IACZ,SAAS;IACT,cAAc;;;;;"}
package/dist/esm/index.js CHANGED
@@ -34,6 +34,7 @@ export { ErrorModal } from './components/ErrorModal/index.js';
34
34
  export { Agreement } from './components/Identity/Agreement/index.js';
35
35
  export { Auth } from './components/Identity/Auth/index.js';
36
36
  export { AuthQR } from './components/Identity/AuthQR/index.js';
37
+ export { CodeInput } from './components/Identity/CodeInput/index.js';
37
38
  export { EdsSuccess } from './components/Identity/EdsSuccess/index.js';
38
39
  export { IdentityModal } from './components/Identity/IdentityModal/index.js';
39
40
  export { EmptyMessages } from './components/Messages/EmptyMessages/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,15 +1,17 @@
1
- import * as react from 'react';
1
+ import { JSX } from 'react';
2
2
  import { ILangProps } from '../../interfaces/common/index.js';
3
3
  import { IFooterButtonsItem } from '../../baseComponents/Modal/index.js';
4
4
 
5
5
  interface IErrorModalProps extends ILangProps {
6
6
  status?: number;
7
7
  message?: string;
8
+ title?: string;
9
+ illustration?: JSX.Element;
8
10
  isOpen: boolean;
9
11
  onClose: () => void;
10
12
  footerButtons?: IFooterButtonsItem[];
11
13
  }
12
- declare const ErrorModal: ({ status, message, lang, isOpen, onClose, footerButtons, }: IErrorModalProps) => react.JSX.Element;
14
+ declare const ErrorModal: ({ status, message, title, illustration, lang, isOpen, onClose, footerButtons, }: IErrorModalProps) => JSX.Element;
13
15
 
14
16
  export { ErrorModal };
15
17
  export type { IErrorModalProps };
@@ -0,0 +1,22 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { ILangProps } from '../../../interfaces/common/index.js';
4
+
5
+ interface ICodeInputResendButton {
6
+ label: string;
7
+ isDisabled?: boolean;
8
+ onClick: () => void;
9
+ }
10
+ interface ICodeInputProps extends ILangProps {
11
+ title: string;
12
+ description: ReactNode;
13
+ code: string[];
14
+ handleInputChange: (index: number) => (event: React.ChangeEvent<HTMLInputElement>) => void;
15
+ errorText?: string;
16
+ resendButton?: ICodeInputResendButton;
17
+ "data-testid"?: string;
18
+ }
19
+ declare const CodeInput: ({ lang, title, description, code, handleInputChange, errorText, resendButton, "data-testid": dataTestid, }: ICodeInputProps) => react.JSX.Element;
20
+
21
+ export { CodeInput };
22
+ export type { ICodeInputProps, ICodeInputResendButton };
@@ -31,6 +31,7 @@ export { ErrorModal, IErrorModalProps } from './components/ErrorModal/index.js';
31
31
  export { Agreement, IAgreementStepProps } from './components/Identity/Agreement/index.js';
32
32
  export { Auth, IAuthStepProps } from './components/Identity/Auth/index.js';
33
33
  export { AuthQR, IAuthQRProps } from './components/Identity/AuthQR/index.js';
34
+ export { CodeInput, ICodeInputProps, ICodeInputResendButton } from './components/Identity/CodeInput/index.js';
34
35
  export { EdsSuccess, IEdsSuccessProps } from './components/Identity/EdsSuccess/index.js';
35
36
  export { IIdentityModalProps, IdentityModal } from './components/Identity/IdentityModal/index.js';
36
37
  export { EmptyMessages, IEmptyMessagesProps } from './components/Messages/EmptyMessages/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egov3/system-design",
3
- "version": "1.3.207",
3
+ "version": "1.3.209",
4
4
  "type": "module",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/types/index.d.ts",