@egov3/system-design 1.3.140 → 1.3.142
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/baseComponents/Modal/index.js +2 -2
- package/dist/cjs/baseComponents/Modal/index.js.map +1 -1
- package/dist/cjs/baseComponents/Typography/index.js.map +1 -1
- package/dist/cjs/components/Identity/IdentityModal/index.js +1 -1
- package/dist/cjs/components/Identity/IdentityModal/index.js.map +1 -1
- package/dist/cjs/styles/typography.module.css.js +2 -2
- package/dist/esm/baseComponents/Modal/index.js +2 -2
- package/dist/esm/baseComponents/Modal/index.js.map +1 -1
- package/dist/esm/baseComponents/Typography/index.js.map +1 -1
- package/dist/esm/components/Identity/IdentityModal/index.js +1 -1
- package/dist/esm/components/Identity/IdentityModal/index.js.map +1 -1
- package/dist/esm/styles/typography.module.css.js +2 -2
- package/dist/types/baseComponents/Modal/index.d.ts +3 -1
- package/dist/types/baseComponents/Typography/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11,11 +11,11 @@ var index = require('../Overlay/index.js');
|
|
|
11
11
|
var index$2 = require('../Typography/index.js');
|
|
12
12
|
var Modal_module = require('./Modal.module.css.js');
|
|
13
13
|
|
|
14
|
-
const Modal = ({ children, header, lang, isOpen, setIsOpen, variant, isWithOverlay = true, isContentScroll = true, isAnimated = true, footerButtons = [], }) => {
|
|
14
|
+
const Modal = ({ children, header, lang, isOpen, setIsOpen, variant, isWithOverlay = true, isContentScroll = true, isAnimated = true, footerButtons = [], wrapperClassName, disableDefaultWrapperSpacing = false, }) => {
|
|
15
15
|
const Wrapper = isWithOverlay
|
|
16
16
|
? index.Overlay
|
|
17
17
|
: (props) => jsxRuntime.jsx("div", { ...props });
|
|
18
|
-
return (jsxRuntime.jsx(Wrapper, { className:
|
|
18
|
+
return (jsxRuntime.jsx(Wrapper, { className: joinClasses.joinClasses(!disableDefaultWrapperSpacing && !isContentScroll && Modal_module.default.fixModal, wrapperClassName), children: jsxRuntime.jsxs("div", { "data-testid": "Modal_WRAPPER", className: joinClasses.joinClasses(Modal_module.default.contentWrap, isContentScroll && Modal_module.default.contentWrapHeight, Modal_module.default[`${variant}Variant`], !isAnimated && Modal_module.default.noAnimation), children: [header && (jsxRuntime.jsxs("div", { "data-testid": "Modal_HEADER", className: Modal_module.default.contentHeader, children: [header.goBackService && (jsxRuntime.jsx("button", { "aria-label": index$1.i18n.Modal.AriaBackButton[lang], className: Modal_module.default.posLeft, "data-testid": "IdentityHeaderGoBack_BTN", onClick: header.goBackService, type: "button", children: jsxRuntime.jsx(ChevronLeft.ChevronLeftIcon, { width: "18px", height: "18px", "data-testid": "ModalChevronLeft_ICON" }) })), header?.handleHeaderLogoClick && (jsxRuntime.jsx("button", { "aria-label": index$1.i18n.Modal.AriaAuthorizationPageBtn[lang], className: Modal_module.default.posCenter, "data-testid": "ModalHeaderGoMain_BTN", onClick: header.handleHeaderLogoClick, type: "button", children: jsxRuntime.jsx(Egov.EgovIcon, { width: "69px", height: "24px", "data-testid": "ModalHeaderEgov_ICON" }) })), header?.title && (jsxRuntime.jsx(index$2.Typography, { tag: "h3", fontClass: "body1Medium", "data-testid": "Modal_TITLE", className: Modal_module.default.posLeft, children: header.title })), header?.isClosable && (jsxRuntime.jsx("button", { className: Modal_module.default.posRight, type: "button", "data-testid": "ModalHeaderBtn_CLOSE", onClick: () => {
|
|
19
19
|
if (setIsOpen) {
|
|
20
20
|
setIsOpen(!isOpen);
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/Modal/index.tsx"],"sourcesContent":[null],"names":["Overlay","_jsx","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/Modal/index.tsx"],"sourcesContent":[null],"names":["Overlay","_jsx","joinClasses","styles","_jsxs","i18n","ChevronLeftIcon","EgovIcon","Typography","CloseIcon","Button"],"mappings":";;;;;;;;;;;;;AAwCO,MAAM,KAAK,GAA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vBF,wBAAK,SAAS,EAAEE,oBAAM,CAAC,OAAO,EAAA,aAAA,EAAc,wBAAwB,EAAA,QAAA,EACjE,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,MACtBF,cAAA,CAACS,cAAM,kBACO,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,EAAA,QAAA,EAEX,IAAI,CAAC,IAAI,IAHL,IAAI,CAAC,IAAI,CAIP,CACV,CAAC,GACE,CACP,CAAA,EAAA,CACG,EAAA,CACE;AAEd;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/Typography/index.tsx"],"sourcesContent":[null],"names":["joinClasses","typography"],"mappings":";;;;;;AAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/Typography/index.tsx"],"sourcesContent":[null],"names":["joinClasses","typography"],"mappings":";;;;;;AAAA;AA6BO,MAAM,UAAU,GAAyB,CAAC,EAC/C,GAAG,EACH,SAAS,EACT,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,SAAS,EACb,KACC,KAAK,CAAC,aAAa,CACjB,GAAG,EACH;AACE,IAAA,GAAG,SAAS;IACZ,SAAS,EAAEA,uBAAW,CAACC,yBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,SAAS,CAAC;IAC9D,KAAK;CACN,EACD,QAAQ;;;;"}
|
|
@@ -35,7 +35,7 @@ var IdentityModal_module = require('./IdentityModal.module.css.js');
|
|
|
35
35
|
|
|
36
36
|
const IdentityModal = ({ children, goBackService, handleLangChange, lang, handleLogoClick, }) => {
|
|
37
37
|
const langDic = index$1.i18n.Common;
|
|
38
|
-
return (jsxRuntime.jsxs("div", { className: IdentityModal_module.default.overlayModalFix, "data-testid": "IdentityModule_OVERLAY", children: [jsxRuntime.jsx(index.Modal, { variant: "small", isWithOverlay: false, lang: "ru", isAnimated: false, header: {
|
|
38
|
+
return (jsxRuntime.jsxs("div", { className: IdentityModal_module.default.overlayModalFix, "data-testid": "IdentityModule_OVERLAY", children: [jsxRuntime.jsx(index.Modal, { variant: "small", isWithOverlay: false, lang: "ru", isAnimated: false, disableDefaultWrapperSpacing: true, header: {
|
|
39
39
|
handleHeaderLogoClick: handleLogoClick,
|
|
40
40
|
goBackService: goBackService,
|
|
41
41
|
}, isContentScroll: false, children: jsxRuntime.jsx("div", { className: IdentityModal_module.default.loginBox, "data-testid": "IdentityModule_LOGIN_BOX", children: jsxRuntime.jsx("div", { className: IdentityModal_module.default.loginBody, "data-testid": "IdentityModule_LOGIN_BODY", children: children }) }) }), handleLangChange && (jsxRuntime.jsx("div", { className: IdentityModal_module.default.langFooterWrapper, "data-testid": "IdentityModule_FOOTER", children: common.languageList.map(([langCode, langLabel]) => (jsxRuntime.jsx("button", { type: "button", "data-testid": `IdentityModule_FOOTER_BTN_${langCode}`, className: joinClasses.joinClasses(IdentityModal_module.default.langFooter, langCode === lang
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Identity/IdentityModal/index.tsx"],"sourcesContent":[null],"names":["i18n","_jsxs","styles","_jsx","Modal","languageList","joinClasses","Typography"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,IAAI,EACJ,eAAe,GACK,KAAI;AACxB,IAAA,MAAM,OAAO,GAAGA,YAAI,CAAC,MAAM;AAE3B,IAAA,QACEC,eAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEC,4BAAM,CAAC,eAAe,EAAA,aAAA,EACrB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Identity/IdentityModal/index.tsx"],"sourcesContent":[null],"names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B,QAAQ,KAAK;0BACTA,4BAAM,CAAC;AACT,0BAAEA,4BAAM,CAAC,mBAAmB,CAC/B,gBACW,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EACrC,OAAO,EAAE,MAAK;wBACZ,gBAAgB,CAAC,QAAQ,CAAC;AAC5B,oBAAA,CAAC,EAAA,QAAA,EAEDC,cAAA,CAACI,kBAAU,EAAA,EAAA,YAAA,EACG,SAAS,EAAA,aAAA,EACR,CAAA,sBAAA,EAAyB,QAAQ,CAAA,CAAE,EAChD,SAAS,EAAC,kBAAkB,EAC5B,GAAG,EAAC,MAAM,EAAA,QAAA,EAET,QAAQ,CAAC,iBAAiB,EAAE,GAClB,EAAA,EAnBR,QAAQ,CAoBN,CACV,CAAC,EAAA,CACE,CACP,CAAA,EAAA,CACG;AAEV;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var css_248z = "/* Headings/Heading 1 */\n.typography-module_heading1__ub7Od {\n font-family: \"Inter\", sans-serif;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 36px; /* 112.5% */\n letter-spacing: -0.32px;\n}\n\n/* Headings/Heading 3 */\n.typography-module_heading3__QLNPD {\n font-family: \"Inter\", sans-serif;\n font-size: 24px;\n font-style: normal;\n font-weight: 600;\n line-height: 28px; /* 116.667% */\n letter-spacing: -0.24px;\n}\n\n/* Subtitles/Subtitle 3 */\n.typography-module_subtitles3__QZScB {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Medium */\n.typography-module_body1Medium__INZB0 {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Regular */\n.typography-module_body1Regular__H3iQB {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 2, Medium */\n.typography-module_body2Medium__Caa0m {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 2, Regular */\n.typography-module_body2Regular__MEtzs {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 3, Regular */\n.typography-module_body3Regular__rp6ng {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 114.286% */\n}\n\n/* Caption/Caption 1, Medium */\n.typography-module_caption1Medium__xXMm- {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Regular */\n.typography-module_caption1Regular__QVGyq {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Semibold */\n.typography-module_caption1Semibold__Il1Aq {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 2, Medium */\n.typography-module_caption2Medium__0Vvmy {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 500;\n line-height: 12px; /* 120% */\n}\n\n/* Caption/Caption 2, Regular */\n.typography-module_caption2Regular__GxtiS {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 400;\n line-height: 12px; /* 120% */\n}\n\n.typography-module_caption2Semibold__4ysJe {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 600;\n line-height: 12px; /* 120% */\n}\n";
|
|
6
|
-
var typography = {"heading1":"typography-module_heading1__ub7Od","heading3":"typography-module_heading3__QLNPD","subtitles3":"typography-module_subtitles3__QZScB","body1Medium":"typography-module_body1Medium__INZB0","body1Regular":"typography-module_body1Regular__H3iQB","body2Medium":"typography-module_body2Medium__Caa0m","body2Regular":"typography-module_body2Regular__MEtzs","body3Regular":"typography-module_body3Regular__rp6ng","caption1Medium":"typography-module_caption1Medium__xXMm-","caption1Regular":"typography-module_caption1Regular__QVGyq","caption1Semibold":"typography-module_caption1Semibold__Il1Aq","caption2Medium":"typography-module_caption2Medium__0Vvmy","caption2Regular":"typography-module_caption2Regular__GxtiS","caption2Semibold":"typography-module_caption2Semibold__4ysJe"};
|
|
5
|
+
var css_248z = "/* Headings/Heading 1 */\n.typography-module_heading1__ub7Od {\n font-family: \"Inter\", sans-serif;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 36px; /* 112.5% */\n letter-spacing: -0.32px;\n}\n\n/* Headings/Heading 3 */\n.typography-module_heading3__QLNPD {\n font-family: \"Inter\", sans-serif;\n font-size: 24px;\n font-style: normal;\n font-weight: 600;\n line-height: 28px; /* 116.667% */\n letter-spacing: -0.24px;\n}\n\n/* Subtitles/Subtitle 1 */\n.typography-module_subtitles1__34Gvf {\n font-family: \"Inter\", sans-serif;\n font-size: 22px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 109.091% */\n letter-spacing: -0.22px;\n}\n\n/* Subtitles/Subtitle 2 */\n.typography-module_subtitles2__0miaI {\n font-family: \"Inter\", sans-serif;\n font-size: 18px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 133.333% */\n}\n\n/* Subtitles/Subtitle 3 */\n.typography-module_subtitles3__QZScB {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Medium */\n.typography-module_body1Medium__INZB0 {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Regular */\n.typography-module_body1Regular__H3iQB {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 2, Medium */\n.typography-module_body2Medium__Caa0m {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 2, Regular */\n.typography-module_body2Regular__MEtzs {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 3, Regular */\n.typography-module_body3Regular__rp6ng {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 114.286% */\n}\n\n/* Caption/Caption 1, Medium */\n.typography-module_caption1Medium__xXMm- {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Regular */\n.typography-module_caption1Regular__QVGyq {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Semibold */\n.typography-module_caption1Semibold__Il1Aq {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 2, Medium */\n.typography-module_caption2Medium__0Vvmy {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 500;\n line-height: 12px; /* 120% */\n}\n\n/* Caption/Caption 2, Regular */\n.typography-module_caption2Regular__GxtiS {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 400;\n line-height: 12px; /* 120% */\n}\n\n.typography-module_caption2Semibold__4ysJe {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 600;\n line-height: 12px; /* 120% */\n}\n";
|
|
6
|
+
var typography = {"heading1":"typography-module_heading1__ub7Od","heading3":"typography-module_heading3__QLNPD","subtitles1":"typography-module_subtitles1__34Gvf","subtitles2":"typography-module_subtitles2__0miaI","subtitles3":"typography-module_subtitles3__QZScB","body1Medium":"typography-module_body1Medium__INZB0","body1Regular":"typography-module_body1Regular__H3iQB","body2Medium":"typography-module_body2Medium__Caa0m","body2Regular":"typography-module_body2Regular__MEtzs","body3Regular":"typography-module_body3Regular__rp6ng","caption1Medium":"typography-module_caption1Medium__xXMm-","caption1Regular":"typography-module_caption1Regular__QVGyq","caption1Semibold":"typography-module_caption1Semibold__Il1Aq","caption2Medium":"typography-module_caption2Medium__0Vvmy","caption2Regular":"typography-module_caption2Regular__GxtiS","caption2Semibold":"typography-module_caption2Semibold__4ysJe"};
|
|
7
7
|
function styleInject(css, options) {
|
|
8
8
|
if (typeof document === 'undefined') return;
|
|
9
9
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -9,11 +9,11 @@ import { Overlay } from '../Overlay/index.js';
|
|
|
9
9
|
import { Typography } from '../Typography/index.js';
|
|
10
10
|
import styles from './Modal.module.css.js';
|
|
11
11
|
|
|
12
|
-
const Modal = ({ children, header, lang, isOpen, setIsOpen, variant, isWithOverlay = true, isContentScroll = true, isAnimated = true, footerButtons = [], }) => {
|
|
12
|
+
const Modal = ({ children, header, lang, isOpen, setIsOpen, variant, isWithOverlay = true, isContentScroll = true, isAnimated = true, footerButtons = [], wrapperClassName, disableDefaultWrapperSpacing = false, }) => {
|
|
13
13
|
const Wrapper = isWithOverlay
|
|
14
14
|
? Overlay
|
|
15
15
|
: (props) => jsx("div", { ...props });
|
|
16
|
-
return (jsx(Wrapper, { className:
|
|
16
|
+
return (jsx(Wrapper, { className: joinClasses(!disableDefaultWrapperSpacing && !isContentScroll && styles.fixModal, wrapperClassName), children: jsxs("div", { "data-testid": "Modal_WRAPPER", className: joinClasses(styles.contentWrap, isContentScroll && styles.contentWrapHeight, styles[`${variant}Variant`], !isAnimated && styles.noAnimation), children: [header && (jsxs("div", { "data-testid": "Modal_HEADER", className: styles.contentHeader, children: [header.goBackService && (jsx("button", { "aria-label": i18n.Modal.AriaBackButton[lang], className: styles.posLeft, "data-testid": "IdentityHeaderGoBack_BTN", onClick: header.goBackService, type: "button", children: jsx(ChevronLeftIcon, { width: "18px", height: "18px", "data-testid": "ModalChevronLeft_ICON" }) })), header?.handleHeaderLogoClick && (jsx("button", { "aria-label": i18n.Modal.AriaAuthorizationPageBtn[lang], className: styles.posCenter, "data-testid": "ModalHeaderGoMain_BTN", onClick: header.handleHeaderLogoClick, type: "button", children: jsx(EgovIcon, { width: "69px", height: "24px", "data-testid": "ModalHeaderEgov_ICON" }) })), header?.title && (jsx(Typography, { tag: "h3", fontClass: "body1Medium", "data-testid": "Modal_TITLE", className: styles.posLeft, children: header.title })), header?.isClosable && (jsx("button", { className: styles.posRight, type: "button", "data-testid": "ModalHeaderBtn_CLOSE", onClick: () => {
|
|
17
17
|
if (setIsOpen) {
|
|
18
18
|
setIsOpen(!isOpen);
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/Modal/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/Modal/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AAwCO,MAAM,KAAK,GAAG,CAAC,EACpB,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,MAAM,EACN,SAAS,EACT,OAAO,EACP,aAAa,GAAG,IAAI,EACpB,eAAe,GAAG,IAAI,EACtB,UAAU,GAAG,IAAI,EACjB,aAAa,GAAG,EAAE,EAClB,gBAAgB,EAChB,4BAA4B,GAAG,KAAK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,OAAO,EAAE,IAAI,CAAC,OAAO,EAErB,IAAI,EAAC,OAAO,EAAA,QAAA,EAEX,IAAI,CAAC,IAAI,IAHL,IAAI,CAAC,IAAI,CAIP,CACV,CAAC,GACE,CACP,CAAA,EAAA,CACG,EAAA,CACE;AAEd;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/Typography/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/Typography/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;AA6BO,MAAM,UAAU,GAAyB,CAAC,EAC/C,GAAG,EACH,SAAS,EACT,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,SAAS,EACb,KACC,KAAK,CAAC,aAAa,CACjB,GAAG,EACH;AACE,IAAA,GAAG,SAAS;IACZ,SAAS,EAAE,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,SAAS,CAAC;IAC9D,KAAK;CACN,EACD,QAAQ;;;;"}
|
|
@@ -33,7 +33,7 @@ import styles from './IdentityModal.module.css.js';
|
|
|
33
33
|
|
|
34
34
|
const IdentityModal = ({ children, goBackService, handleLangChange, lang, handleLogoClick, }) => {
|
|
35
35
|
const langDic = i18n.Common;
|
|
36
|
-
return (jsxs("div", { className: styles.overlayModalFix, "data-testid": "IdentityModule_OVERLAY", children: [jsx(Modal, { variant: "small", isWithOverlay: false, lang: "ru", isAnimated: false, header: {
|
|
36
|
+
return (jsxs("div", { className: styles.overlayModalFix, "data-testid": "IdentityModule_OVERLAY", children: [jsx(Modal, { variant: "small", isWithOverlay: false, lang: "ru", isAnimated: false, disableDefaultWrapperSpacing: true, header: {
|
|
37
37
|
handleHeaderLogoClick: handleLogoClick,
|
|
38
38
|
goBackService: goBackService,
|
|
39
39
|
}, isContentScroll: false, children: jsx("div", { className: styles.loginBox, "data-testid": "IdentityModule_LOGIN_BOX", children: jsx("div", { className: styles.loginBody, "data-testid": "IdentityModule_LOGIN_BODY", children: children }) }) }), handleLangChange && (jsx("div", { className: styles.langFooterWrapper, "data-testid": "IdentityModule_FOOTER", children: languageList.map(([langCode, langLabel]) => (jsx("button", { type: "button", "data-testid": `IdentityModule_FOOTER_BTN_${langCode}`, className: joinClasses(styles.langFooter, langCode === lang
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Identity/IdentityModal/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,IAAI,EACJ,eAAe,GACK,KAAI;AACxB,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM;AAE3B,IAAA,QACEA,IAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,eAAe,EAAA,aAAA,EACrB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Identity/IdentityModal/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,IAAI,EACJ,eAAe,GACK,KAAI;AACxB,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM;AAE3B,IAAA,QACEA,IAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,eAAe,EAAA,aAAA,EACrB,wBAAwB,aAEpCC,GAAA,CAAC,KAAK,EAAA,EACJ,OAAO,EAAC,OAAO,EACf,aAAa,EAAE,KAAK,EACpB,IAAI,EAAC,IAAI,EACT,UAAU,EAAE,KAAK,EACjB,4BAA4B,EAAE,IAAI,EAClC,MAAM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
|
1
|
-
var css_248z = "/* Headings/Heading 1 */\n.typography-module_heading1__ub7Od {\n font-family: \"Inter\", sans-serif;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 36px; /* 112.5% */\n letter-spacing: -0.32px;\n}\n\n/* Headings/Heading 3 */\n.typography-module_heading3__QLNPD {\n font-family: \"Inter\", sans-serif;\n font-size: 24px;\n font-style: normal;\n font-weight: 600;\n line-height: 28px; /* 116.667% */\n letter-spacing: -0.24px;\n}\n\n/* Subtitles/Subtitle 3 */\n.typography-module_subtitles3__QZScB {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Medium */\n.typography-module_body1Medium__INZB0 {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Regular */\n.typography-module_body1Regular__H3iQB {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 2, Medium */\n.typography-module_body2Medium__Caa0m {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 2, Regular */\n.typography-module_body2Regular__MEtzs {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 3, Regular */\n.typography-module_body3Regular__rp6ng {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 114.286% */\n}\n\n/* Caption/Caption 1, Medium */\n.typography-module_caption1Medium__xXMm- {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Regular */\n.typography-module_caption1Regular__QVGyq {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Semibold */\n.typography-module_caption1Semibold__Il1Aq {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 2, Medium */\n.typography-module_caption2Medium__0Vvmy {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 500;\n line-height: 12px; /* 120% */\n}\n\n/* Caption/Caption 2, Regular */\n.typography-module_caption2Regular__GxtiS {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 400;\n line-height: 12px; /* 120% */\n}\n\n.typography-module_caption2Semibold__4ysJe {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 600;\n line-height: 12px; /* 120% */\n}\n";
|
|
2
|
-
var typography = {"heading1":"typography-module_heading1__ub7Od","heading3":"typography-module_heading3__QLNPD","subtitles3":"typography-module_subtitles3__QZScB","body1Medium":"typography-module_body1Medium__INZB0","body1Regular":"typography-module_body1Regular__H3iQB","body2Medium":"typography-module_body2Medium__Caa0m","body2Regular":"typography-module_body2Regular__MEtzs","body3Regular":"typography-module_body3Regular__rp6ng","caption1Medium":"typography-module_caption1Medium__xXMm-","caption1Regular":"typography-module_caption1Regular__QVGyq","caption1Semibold":"typography-module_caption1Semibold__Il1Aq","caption2Medium":"typography-module_caption2Medium__0Vvmy","caption2Regular":"typography-module_caption2Regular__GxtiS","caption2Semibold":"typography-module_caption2Semibold__4ysJe"};
|
|
1
|
+
var css_248z = "/* Headings/Heading 1 */\n.typography-module_heading1__ub7Od {\n font-family: \"Inter\", sans-serif;\n font-size: 32px;\n font-style: normal;\n font-weight: 600;\n line-height: 36px; /* 112.5% */\n letter-spacing: -0.32px;\n}\n\n/* Headings/Heading 3 */\n.typography-module_heading3__QLNPD {\n font-family: \"Inter\", sans-serif;\n font-size: 24px;\n font-style: normal;\n font-weight: 600;\n line-height: 28px; /* 116.667% */\n letter-spacing: -0.24px;\n}\n\n/* Subtitles/Subtitle 1 */\n.typography-module_subtitles1__34Gvf {\n font-family: \"Inter\", sans-serif;\n font-size: 22px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 109.091% */\n letter-spacing: -0.22px;\n}\n\n/* Subtitles/Subtitle 2 */\n.typography-module_subtitles2__0miaI {\n font-family: \"Inter\", sans-serif;\n font-size: 18px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 133.333% */\n}\n\n/* Subtitles/Subtitle 3 */\n.typography-module_subtitles3__QZScB {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Medium */\n.typography-module_body1Medium__INZB0 {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 1, Regular */\n.typography-module_body1Regular__H3iQB {\n font-family: \"Inter\", sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 24px; /* 150% */\n}\n\n/* Body/Body 2, Medium */\n.typography-module_body2Medium__Caa0m {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 2, Regular */\n.typography-module_body2Regular__MEtzs {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px; /* 142.857% */\n}\n\n/* Body/Body 3, Regular */\n.typography-module_body3Regular__rp6ng {\n font-family: \"Inter\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 114.286% */\n}\n\n/* Caption/Caption 1, Medium */\n.typography-module_caption1Medium__xXMm- {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Regular */\n.typography-module_caption1Regular__QVGyq {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 1, Semibold */\n.typography-module_caption1Semibold__Il1Aq {\n font-family: \"Inter\", sans-serif;\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 16px; /* 133.333% */\n}\n\n/* Caption/Caption 2, Medium */\n.typography-module_caption2Medium__0Vvmy {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 500;\n line-height: 12px; /* 120% */\n}\n\n/* Caption/Caption 2, Regular */\n.typography-module_caption2Regular__GxtiS {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 400;\n line-height: 12px; /* 120% */\n}\n\n.typography-module_caption2Semibold__4ysJe {\n font-family: \"Inter\", sans-serif;\n font-size: 10px;\n font-style: normal;\n font-weight: 600;\n line-height: 12px; /* 120% */\n}\n";
|
|
2
|
+
var typography = {"heading1":"typography-module_heading1__ub7Od","heading3":"typography-module_heading3__QLNPD","subtitles1":"typography-module_subtitles1__34Gvf","subtitles2":"typography-module_subtitles2__0miaI","subtitles3":"typography-module_subtitles3__QZScB","body1Medium":"typography-module_body1Medium__INZB0","body1Regular":"typography-module_body1Regular__H3iQB","body2Medium":"typography-module_body2Medium__Caa0m","body2Regular":"typography-module_body2Regular__MEtzs","body3Regular":"typography-module_body3Regular__rp6ng","caption1Medium":"typography-module_caption1Medium__xXMm-","caption1Regular":"typography-module_caption1Regular__QVGyq","caption1Semibold":"typography-module_caption1Semibold__Il1Aq","caption2Medium":"typography-module_caption2Medium__0Vvmy","caption2Regular":"typography-module_caption2Regular__GxtiS","caption2Semibold":"typography-module_caption2Semibold__4ysJe"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
5
5
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -22,8 +22,10 @@ interface IModalProps extends ILangProps {
|
|
|
22
22
|
footerButtons?: IFooterButtonsItem[];
|
|
23
23
|
isContentScroll?: boolean;
|
|
24
24
|
isAnimated?: boolean;
|
|
25
|
+
wrapperClassName?: string;
|
|
26
|
+
disableDefaultWrapperSpacing?: boolean;
|
|
25
27
|
}
|
|
26
|
-
declare const Modal: ({ children, header, lang, isOpen, setIsOpen, variant, isWithOverlay, isContentScroll, isAnimated, footerButtons, }: IModalProps) => react__default.JSX.Element;
|
|
28
|
+
declare const Modal: ({ children, header, lang, isOpen, setIsOpen, variant, isWithOverlay, isContentScroll, isAnimated, footerButtons, wrapperClassName, disableDefaultWrapperSpacing, }: IModalProps) => react__default.JSX.Element;
|
|
27
29
|
|
|
28
30
|
export { Modal };
|
|
29
31
|
export type { IFooterButtonsItem, IModalProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react__default, { ElementType, FC } from 'react';
|
|
2
2
|
|
|
3
|
-
type TFontClass = "heading1" | "heading3" | "subtitles3" | "body1Medium" | "body1Regular" | "body2Medium" | "body2Regular" | "body3Regular" | "caption1Medium" | "caption1Regular" | "caption1Semibold" | "caption2Medium" | "caption2Regular" | "caption2Semibold";
|
|
3
|
+
type TFontClass = "heading1" | "heading3" | "subtitles1" | "subtitles2" | "subtitles3" | "body1Medium" | "body1Regular" | "body2Medium" | "body2Regular" | "body3Regular" | "caption1Medium" | "caption1Regular" | "caption1Semibold" | "caption2Medium" | "caption2Regular" | "caption2Semibold";
|
|
4
4
|
interface ITypographyProps extends react__default.HTMLAttributes<HTMLElement> {
|
|
5
5
|
tag: ElementType;
|
|
6
6
|
fontClass: TFontClass;
|