@egov3/system-design 1.3.206 → 1.3.208
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Calendar/Header/CalendarHeader.module.css.js +1 -1
- package/dist/cjs/components/ErrorModal/index.js +3 -2
- package/dist/cjs/components/ErrorModal/index.js.map +1 -1
- package/dist/esm/components/Calendar/Header/CalendarHeader.module.css.js +1 -1
- package/dist/esm/components/ErrorModal/index.js +3 -2
- package/dist/esm/components/ErrorModal/index.js.map +1 -1
- package/dist/types/components/ErrorModal/index.d.ts +4 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var css_248z = ".CalendarHeader-module_tab__-gPIw {\n width:
|
|
5
|
+
var css_248z = ".CalendarHeader-module_tab__-gPIw {\n width: 100%;\n display: flex;\n justify-content: center;\n gap: 8px;\n flex: 1 0 0;\n}\n\n.CalendarHeader-module_titleActiv__AqXMv {\n padding: 8px 0px;\n width: 100%;\n color: var(--text-primary);\n text-align: center;\n border-bottom: 2px solid var(--icon-accent-color);\n}\n\n.CalendarHeader-module_title__P2RVF {\n width: 100%;\n padding: 8px 0px;\n color: var(--text-disabled-color);\n text-align: center;\n border-bottom: 2px solid var(--surface-surface-3);\n}\n\n.CalendarHeader-module_titleError__zDkX0 {\n text-align: center;\n border-bottom: 2px solid var(--text-error);\n}\n";
|
|
6
6
|
var styles = {"tab":"CalendarHeader-module_tab__-gPIw","titleActiv":"CalendarHeader-module_titleActiv__AqXMv","title":"CalendarHeader-module_title__P2RVF"};
|
|
7
7
|
function styleInject(css, options) {
|
|
8
8
|
if (typeof document === 'undefined') return;
|
|
@@ -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: [
|
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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eader-module_tab__-gPIw {\n width: 100%;\n display: flex;\n justify-content: center;\n gap: 8px;\n flex: 1 0 0;\n}\n\n.CalendarHeader-module_titleActiv__AqXMv {\n padding: 8px 0px;\n width: 100%;\n color: var(--text-primary);\n text-align: center;\n border-bottom: 2px solid var(--icon-accent-color);\n}\n\n.CalendarHeader-module_title__P2RVF {\n width: 100%;\n padding: 8px 0px;\n color: var(--text-disabled-color);\n text-align: center;\n border-bottom: 2px solid var(--surface-surface-3);\n}\n\n.CalendarHeader-module_titleError__zDkX0 {\n text-align: center;\n border-bottom: 2px solid var(--text-error);\n}\n";
|
|
2
2
|
var styles = {"tab":"CalendarHeader-module_tab__-gPIw","titleActiv":"CalendarHeader-module_titleActiv__AqXMv","title":"CalendarHeader-module_title__P2RVF"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
@@ -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: [
|
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AA,CACF,EAAA,CACA;AAEZ;;;;"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
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) =>
|
|
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 };
|