@egov3/system-design 1.3.229 → 1.3.231
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/RadioToggle/RadioToggle.module.css.js +2 -2
- package/dist/cjs/baseComponents/RadioToggle/index.js +2 -2
- package/dist/cjs/baseComponents/RadioToggle/index.js.map +1 -1
- package/dist/cjs/baseComponents/SearchBar/index.js +8 -5
- package/dist/cjs/baseComponents/SearchBar/index.js.map +1 -1
- package/dist/cjs/components/Services/PersonalIDTemplate/PersonalIDTemplate.module.css.js +2 -2
- package/dist/cjs/components/Services/PersonalIDTemplate/index.js +2 -2
- package/dist/cjs/components/Services/PersonalIDTemplate/index.js.map +1 -1
- package/dist/cjs/styles/colors.css.js +1 -1
- package/dist/esm/baseComponents/RadioToggle/RadioToggle.module.css.js +2 -2
- package/dist/esm/baseComponents/RadioToggle/index.js +2 -2
- package/dist/esm/baseComponents/RadioToggle/index.js.map +1 -1
- package/dist/esm/baseComponents/SearchBar/index.js +8 -5
- package/dist/esm/baseComponents/SearchBar/index.js.map +1 -1
- package/dist/esm/components/Services/PersonalIDTemplate/PersonalIDTemplate.module.css.js +2 -2
- package/dist/esm/components/Services/PersonalIDTemplate/index.js +3 -3
- package/dist/esm/components/Services/PersonalIDTemplate/index.js.map +1 -1
- package/dist/esm/styles/colors.css.js +1 -1
- package/dist/styles/colors.css +6 -0
- package/dist/types/baseComponents/RadioToggle/index.d.ts +2 -1
- package/dist/types/components/Services/PersonalIDTemplate/index.d.ts +1 -1
- package/dist/types/interfaces/PersonalIDTemplate.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var css_248z = ".RadioToggle-module_wrap__8YjWu {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 4px;\n width: 32px;\n height: 16px;\n border-radius: 40px;\n background: var(--leaf);\n}\n\n.RadioToggle-module_wrapLock__fmILT {\n justify-content: flex-start;\n background: var(--surface-surface-3);\n}\n\n.RadioToggle-module_round__X-Pkz {\n width: 16px;\n height: 16px;\n background: var(--surface-surface-2);\n border-radius: 100px;\n}\n";
|
|
6
|
-
var styles = {"wrap":"RadioToggle-module_wrap__8YjWu","wrapLock":"RadioToggle-module_wrapLock__fmILT","round":"RadioToggle-module_round__X-Pkz"};
|
|
5
|
+
var css_248z = ".RadioToggle-module_wrap__8YjWu {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 4px;\n width: 32px;\n height: 16px;\n border-radius: 40px;\n background: var(--leaf);\n}\n\n.RadioToggle-module_isDisabled__6Bm-s {\n background: var(--icon-tertiary);\n}\n\n.RadioToggle-module_wrapLock__fmILT {\n justify-content: flex-start;\n background: var(--surface-surface-3);\n}\n\n.RadioToggle-module_round__X-Pkz {\n width: 16px;\n height: 16px;\n background: var(--surface-surface-2);\n border-radius: 100px;\n}\n";
|
|
6
|
+
var styles = {"wrap":"RadioToggle-module_wrap__8YjWu","isDisabled":"RadioToggle-module_isDisabled__6Bm-s","wrapLock":"RadioToggle-module_wrapLock__fmILT","round":"RadioToggle-module_round__X-Pkz"};
|
|
7
7
|
function styleInject(css, options) {
|
|
8
8
|
if (typeof document === 'undefined') return;
|
|
9
9
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -4,9 +4,9 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var joinClasses = require('../../utils/joinClasses.js');
|
|
5
5
|
var RadioToggle_module = require('./RadioToggle.module.css.js');
|
|
6
6
|
|
|
7
|
-
const RadioToggle = ({ lock, setLock }) => (jsxRuntime.jsx("button", { type: "button", "data-testid": "RadioToggle_BUTTON", "aria-pressed": lock, "aria-label": "\u041A\u043D\u043E\u043F\u043A\u0430 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F", onClick: () => {
|
|
7
|
+
const RadioToggle = ({ lock, setLock, isDisabled = false, }) => (jsxRuntime.jsx("button", { type: "button", "data-testid": "RadioToggle_BUTTON", "aria-pressed": lock, "aria-label": "\u041A\u043D\u043E\u043F\u043A\u0430 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F", onClick: () => {
|
|
8
8
|
setLock(!lock);
|
|
9
|
-
}, children: jsxRuntime.jsx("div", { "data-testid": "RadioToggle_WRAP", className: joinClasses.joinClasses(RadioToggle_module.default.wrap, lock && RadioToggle_module.default.wrapLock), children: jsxRuntime.jsx("div", { "data-testid": "RadioToggle_ROUND", className: RadioToggle_module.default.round }) }) }));
|
|
9
|
+
}, disabled: isDisabled, children: jsxRuntime.jsx("div", { "data-testid": "RadioToggle_WRAP", className: joinClasses.joinClasses(RadioToggle_module.default.wrap, isDisabled && RadioToggle_module.default.isDisabled, lock && RadioToggle_module.default.wrapLock), children: jsxRuntime.jsx("div", { "data-testid": "RadioToggle_ROUND", className: RadioToggle_module.default.round }) }) }));
|
|
10
10
|
|
|
11
11
|
exports.RadioToggle = RadioToggle;
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/RadioToggle/index.tsx"],"sourcesContent":[null],"names":["_jsx","joinClasses","styles"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/RadioToggle/index.tsx"],"sourcesContent":[null],"names":["_jsx","joinClasses","styles"],"mappings":";;;;;;AAYO,MAAM,WAAW,GAAG,CAAC,EAC1B,IAAI,EACJ,OAAO,EACP,UAAU,GAAG,KAAK,GACA,MAClBA,cAAA,CAAA,QAAA,EAAA,EACE,IAAI,EAAC,QAAQ,iBACD,oBAAoB,EAAA,cAAA,EAClB,IAAI,EAAA,YAAA,EACP,+GAAqB,EAChC,OAAO,EAAE,MAAK;AACZ,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC;AAChB,IAAA,CAAC,EACD,QAAQ,EAAE,UAAU,EAAA,QAAA,EAEpBA,cAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EACc,kBAAkB,EAC9B,SAAS,EAAEC,uBAAW,CACpBC,0BAAM,CAAC,IAAI,EACX,UAAU,IAAIA,0BAAM,CAAC,UAAU,EAC/B,IAAI,IAAIA,0BAAM,CAAC,QAAQ,CACxB,YAEDF,cAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,mBAAmB,EAAC,SAAS,EAAEE,0BAAM,CAAC,KAAK,GAAQ,EAAA,CAChE,EAAA,CACC;;;;"}
|
|
@@ -13,13 +13,16 @@ var SearchBar_module = require('./SearchBar.module.css.js');
|
|
|
13
13
|
|
|
14
14
|
const langDic = index.i18n.SearchBar;
|
|
15
15
|
const SearchBar = ({ lang, handleModalOpen, handleOnEnter, handleOnClear, handleOnChange, variant = "default", loading = false, disabled = false, defaultValue = "", showClearButton = true, placeholder = "", "aria-label": ariaLabel = "", debounceDelay = 300, formatter, }) => {
|
|
16
|
-
const
|
|
16
|
+
const formatDefault = () => formatter ? formatter(defaultValue) : defaultValue;
|
|
17
|
+
const [value, setValue] = React.useState(formatDefault);
|
|
18
|
+
const [prevSource, setPrevSource] = React.useState({ defaultValue, formatter });
|
|
19
|
+
if (prevSource.defaultValue !== defaultValue ||
|
|
20
|
+
prevSource.formatter !== formatter) {
|
|
21
|
+
setPrevSource({ defaultValue, formatter });
|
|
22
|
+
setValue(formatDefault());
|
|
23
|
+
}
|
|
17
24
|
const inputRef = React.useRef(null);
|
|
18
25
|
const debouncedOnChangeRef = React.useRef(null);
|
|
19
|
-
React.useEffect(() => {
|
|
20
|
-
const formattedDefault = formatter ? formatter(defaultValue) : defaultValue;
|
|
21
|
-
setValue(formattedDefault);
|
|
22
|
-
}, [defaultValue, formatter]);
|
|
23
26
|
React.useEffect(() => {
|
|
24
27
|
debouncedOnChangeRef.current = debounce.debounce((value) => {
|
|
25
28
|
if (handleOnChange) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/SearchBar/index.tsx"],"sourcesContent":[null],"names":["i18n","useState","useRef","useEffect","debounce","useCallback","joinClasses","styles","typography","_jsx","_jsxs","LoaderIcon","SearchIcon","ClearIcon"],"mappings":";;;;;;;;;;;;;AA8BA,MAAM,OAAO,GAAGA,UAAI,CAAC,SAAS;AAEvB,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,eAAe,EACf,aAAa,EACb,aAAa,EACb,cAAc,EACd,OAAO,GAAG,SAAS,EACnB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,YAAY,GAAG,EAAE,EACjB,eAAe,GAAG,IAAI,EACtB,WAAW,GAAG,EAAE,EAChB,YAAY,EAAE,SAAS,GAAG,EAAE,EAC5B,aAAa,GAAG,GAAG,EACnB,SAAS,GACO,KAAI;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/SearchBar/index.tsx"],"sourcesContent":[null],"names":["i18n","useState","useRef","useEffect","debounce","useCallback","joinClasses","styles","typography","_jsx","_jsxs","LoaderIcon","SearchIcon","ClearIcon"],"mappings":";;;;;;;;;;;;;AA8BA,MAAM,OAAO,GAAGA,UAAI,CAAC,SAAS;AAEvB,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,eAAe,EACf,aAAa,EACb,aAAa,EACb,cAAc,EACd,OAAO,GAAG,SAAS,EACnB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,YAAY,GAAG,EAAE,EACjB,eAAe,GAAG,IAAI,EACtB,WAAW,GAAG,EAAE,EAChB,YAAY,EAAE,SAAS,GAAG,EAAE,EAC5B,aAAa,GAAG,GAAG,EACnB,SAAS,GACO,KAAI;AACpB,IAAA,MAAM,aAAa,GAAG,MACpB,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC,GAAG,YAAY;IAEpD,MAAM,CAAC,KAAK,E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EAAE,aAAa,EACxB,SAAS,EAAE,YAAY,GACvB,EACD,eAAe,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,eAAe,KACtDA,0CACc,wBAAwB,EACpC,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,WAAW,EACpB,SAAS,EAAEF,wBAAM,CAAC,WAAW,EAAA,YAAA,EACjB,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EACrC,QAAQ,EAAE,QAAQ,EAAA,QAAA,EAElBE,cAAA,CAACI,eAAS,EAAA,EACR,SAAS,EAAEN,wBAAM,CAAC,SAAS,EAAA,aAAA,EACf,sBAAsB,EAAA,CAClC,EAAA,CACK,CACV,CAAA,EAAA,CACG,EAAA,CACF;AAEV;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var css_248z = ".PersonalIDTemplate-module_card__WThmZ {\n position: relative;\n display: inline-block;\n width: 364px;\n container-type: inline-size;\n color: var(--text-primary);\n}\n\n.PersonalIDTemplate-module_illustration__HPKBU {\n display: block;\n width: 100%;\n height: auto;\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC {\n position: absolute;\n inset: 0;\n}\n\n.PersonalIDTemplate-module_photo__VtZsV {\n position: absolute;\n left: 4.55cqi;\n top: 16.32cqi;\n width: 28.68cqi; /* 245.78px @ 857 */\n aspect-ratio: 3.5 / 4.5; /* 316px tall @ 857 */\n object-fit: cover;\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_sign__zBLAP {\n position: absolute;\n left: 56.3cqi; /* 482.5px @ 857 */\n top: 52.82cqi;\n width: 28.59cqi; /* 245px @ 857 */\n height: 8.59cqi;\n object-fit: fill;\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_empty__C0VLt {\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_field__94BPp {\n position: absolute;\n font-size: 2.57cqi; /* 22px @ 857 */\n line-height: 2.8cqi; /* 24px @ 857 */\n}\n\n.PersonalIDTemplate-module_lastName__RyBV5 {\n left: 37.23cqi;\n top: 21.81cqi;\n}\n\n.PersonalIDTemplate-module_firstName__EjRDV {\n left: 37.23cqi;\n top: 30.16cqi;\n}\n\n.PersonalIDTemplate-module_middleName__2DAhJ {\n left: 37.23cqi;\n top: 39.47cqi;\n}\n\n.PersonalIDTemplate-module_birthDate__9LndI {\n left: 37.23cqi;\n top: 47.58cqi;\n}\n\n.PersonalIDTemplate-module_gender__M-nA1 {\n left: 73.21cqi;\n top: 47.58cqi;\n text-align: center;\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_iin__KKSjh {\n /* TODO: Поменять на динамический шрифт после фикса на Figma */\n left: 12.53cqi;\n top: 57.7cqi;\n font-size: 3.27cqi; /* 28px @ 857 */\n line-height: 3.73cqi; /* 32px @ 857 */\n}\n";
|
|
6
|
-
var styles = {"card":"PersonalIDTemplate-module_card__WThmZ","illustration":"PersonalIDTemplate-module_illustration__HPKBU","overlay":"PersonalIDTemplate-module_overlay__wd4gC","photo":"PersonalIDTemplate-module_photo__VtZsV","sign":"PersonalIDTemplate-module_sign__zBLAP","empty":"PersonalIDTemplate-module_empty__C0VLt","field":"PersonalIDTemplate-module_field__94BPp","lastName":"PersonalIDTemplate-module_lastName__RyBV5","firstName":"PersonalIDTemplate-module_firstName__EjRDV","middleName":"PersonalIDTemplate-module_middleName__2DAhJ","birthDate":"PersonalIDTemplate-module_birthDate__9LndI","gender":"PersonalIDTemplate-module_gender__M-nA1","iin":"PersonalIDTemplate-module_iin__KKSjh"};
|
|
5
|
+
var css_248z = ".PersonalIDTemplate-module_card__WThmZ {\n position: relative;\n display: inline-block;\n width: 364px;\n container-type: inline-size;\n color: var(--text-primary);\n}\n\n.PersonalIDTemplate-module_illustration__HPKBU {\n display: block;\n width: 100%;\n height: auto;\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC {\n position: absolute;\n inset: 0;\n}\n\n.PersonalIDTemplate-module_photo__VtZsV {\n position: absolute;\n left: 4.55cqi;\n top: 16.32cqi;\n width: 28.68cqi; /* 245.78px @ 857 */\n aspect-ratio: 3.5 / 4.5; /* 316px tall @ 857 */\n object-fit: cover;\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_sign__zBLAP {\n position: absolute;\n left: 56.3cqi; /* 482.5px @ 857 */\n top: 52.82cqi;\n width: 28.59cqi; /* 245px @ 857 */\n height: 8.59cqi;\n object-fit: fill;\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_empty__C0VLt {\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_invalid__iVmBU {\n background: var(--page-color-overlay-error);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_field__94BPp {\n position: absolute;\n font-size: 2.57cqi; /* 22px @ 857 */\n line-height: 2.8cqi; /* 24px @ 857 */\n}\n\n.PersonalIDTemplate-module_lastName__RyBV5 {\n left: 37.23cqi;\n top: 21.81cqi;\n}\n\n.PersonalIDTemplate-module_firstName__EjRDV {\n left: 37.23cqi;\n top: 30.16cqi;\n}\n\n.PersonalIDTemplate-module_middleName__2DAhJ {\n left: 37.23cqi;\n top: 39.47cqi;\n}\n\n.PersonalIDTemplate-module_birthDate__9LndI {\n left: 37.23cqi;\n top: 47.58cqi;\n}\n\n.PersonalIDTemplate-module_gender__M-nA1 {\n left: 73.21cqi;\n top: 47.58cqi;\n text-align: center;\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_iin__KKSjh {\n /* TODO: Поменять на динамический шрифт после фикса на Figma */\n left: 12.53cqi;\n top: 57.7cqi;\n font-size: 3.27cqi; /* 28px @ 857 */\n line-height: 3.73cqi; /* 32px @ 857 */\n}\n";
|
|
6
|
+
var styles = {"card":"PersonalIDTemplate-module_card__WThmZ","illustration":"PersonalIDTemplate-module_illustration__HPKBU","overlay":"PersonalIDTemplate-module_overlay__wd4gC","photo":"PersonalIDTemplate-module_photo__VtZsV","sign":"PersonalIDTemplate-module_sign__zBLAP","empty":"PersonalIDTemplate-module_empty__C0VLt","invalid":"PersonalIDTemplate-module_invalid__iVmBU","field":"PersonalIDTemplate-module_field__94BPp","lastName":"PersonalIDTemplate-module_lastName__RyBV5","firstName":"PersonalIDTemplate-module_firstName__EjRDV","middleName":"PersonalIDTemplate-module_middleName__2DAhJ","birthDate":"PersonalIDTemplate-module_birthDate__9LndI","gender":"PersonalIDTemplate-module_gender__M-nA1","iin":"PersonalIDTemplate-module_iin__KKSjh"};
|
|
7
7
|
function styleInject(css, options) {
|
|
8
8
|
if (typeof document === 'undefined') return;
|
|
9
9
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -53,8 +53,8 @@ require('../../../baseComponents/TextWithAction/TextWithAction.module.css.js');
|
|
|
53
53
|
require('../../../baseComponents/Title/Title.module.css.js');
|
|
54
54
|
var PersonalIDTemplate_module = require('./PersonalIDTemplate.module.css.js');
|
|
55
55
|
|
|
56
|
-
const CardImage = ({ src, className, testId, }) => src ? (jsxRuntime.jsx("img", { className: className, src: src, alt: "", "data-testid": testId })) : (jsxRuntime.jsx("div", { className: joinClasses.joinClasses(className, PersonalIDTemplate_module.default.empty), "data-testid": testId }));
|
|
57
|
-
const PersonalIDTemplate = ({ userPhoto, userSign, userData, className, }) => (jsxRuntime.jsxs("div", { className: joinClasses.joinClasses(PersonalIDTemplate_module.default.card, className), "data-testid": "PersonalIDTemplate", children: [jsxRuntime.jsx(PersonalIDLabeled.PersonalIDLabeledIllustration, { className: PersonalIDTemplate_module.default.illustration }), jsxRuntime.jsxs("div", { className: PersonalIDTemplate_module.default.overlay, "data-testid": "PersonalIDTemplate_OVERLAY", children: [jsxRuntime.jsx(CardImage, { src: userPhoto, className: PersonalIDTemplate_module.default.photo, testId: "PersonalIDTemplate_PHOTO" }), jsxRuntime.jsx(CardImage, { src: userSign, className: PersonalIDTemplate_module.default.sign, testId: "PersonalIDTemplate_SIGN" }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.lastName), "data-testid": "PersonalIDTemplate_LASTNAME_VALUE", children: userData?.lastName }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.firstName), "data-testid": "PersonalIDTemplate_FIRSTNAME_VALUE", children: userData?.firstName }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.middleName), "data-testid": "PersonalIDTemplate_MIDDLENAME_VALUE", children: userData?.middleName }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.birthDate), "data-testid": "PersonalIDTemplate_BIRTHDATE_VALUE", children: userData?.birthDate }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.gender), "data-testid": "PersonalIDTemplate_GENDER_VALUE", children: userData?.gender }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "heading2", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.iin), "data-testid": "PersonalIDTemplate_IIN_VALUE", children: userData?.IIN })] })] }));
|
|
56
|
+
const CardImage = ({ src, className, testId, isInvalid, invalidTestId, }) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [src ? (jsxRuntime.jsx("img", { className: className, src: src, alt: "", "data-testid": testId })) : (jsxRuntime.jsx("div", { className: joinClasses.joinClasses(className, PersonalIDTemplate_module.default.empty), "data-testid": testId })), isInvalid && (jsxRuntime.jsx("div", { className: joinClasses.joinClasses(className, PersonalIDTemplate_module.default.invalid), "data-testid": invalidTestId }))] }));
|
|
57
|
+
const PersonalIDTemplate = ({ userPhoto, userSign, userData, className, isPhotoInvalid = false, isSignInvalid = false, }) => (jsxRuntime.jsxs("div", { className: joinClasses.joinClasses(PersonalIDTemplate_module.default.card, className), "data-testid": "PersonalIDTemplate", children: [jsxRuntime.jsx(PersonalIDLabeled.PersonalIDLabeledIllustration, { className: PersonalIDTemplate_module.default.illustration }), jsxRuntime.jsxs("div", { className: PersonalIDTemplate_module.default.overlay, "data-testid": "PersonalIDTemplate_OVERLAY", children: [jsxRuntime.jsx(CardImage, { src: userPhoto, className: PersonalIDTemplate_module.default.photo, testId: "PersonalIDTemplate_PHOTO", isInvalid: isPhotoInvalid, invalidTestId: "PersonalIDTemplate_PHOTO_INVALID" }), jsxRuntime.jsx(CardImage, { src: userSign, className: PersonalIDTemplate_module.default.sign, testId: "PersonalIDTemplate_SIGN", isInvalid: isSignInvalid, invalidTestId: "PersonalIDTemplate_SIGN_INVALID" }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.lastName), "data-testid": "PersonalIDTemplate_LASTNAME_VALUE", children: userData?.lastName }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.firstName), "data-testid": "PersonalIDTemplate_FIRSTNAME_VALUE", children: userData?.firstName }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.middleName), "data-testid": "PersonalIDTemplate_MIDDLENAME_VALUE", children: userData?.middleName }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.birthDate), "data-testid": "PersonalIDTemplate_BIRTHDATE_VALUE", children: userData?.birthDate }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.gender), "data-testid": "PersonalIDTemplate_GENDER_VALUE", children: userData?.gender }), jsxRuntime.jsx(index.Typography, { tag: "span", fontClass: "heading2", className: joinClasses.joinClasses(PersonalIDTemplate_module.default.field, PersonalIDTemplate_module.default.iin), "data-testid": "PersonalIDTemplate_IIN_VALUE", children: userData?.IIN })] })] }));
|
|
58
58
|
|
|
59
59
|
exports.PersonalIDTemplate = PersonalIDTemplate;
|
|
60
60
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/PersonalIDTemplate/index.tsx"],"sourcesContent":[null],"names":["_jsx","joinClasses","styles","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/PersonalIDTemplate/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx","joinClasses","styles","PersonalIDLabeledIllustration","Typography"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAM,SAAS,GAAG,CAAC,EACjB,GAAG,EACH,SAAS,EACT,MAAM,EACN,SAAS,EACT,aAAa,GAOd,MACCA,eAAA,CAAAC,mBAAA,EAAA,EAAA,QAAA,EAAA,CACG,GAAG,IACFC,cAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAC,EAAE,EAAA,aAAA,EAAc,MAAM,EAAA,CAAI,KAEnEA,cAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEC,uBAAW,CAAC,SAAS,EAAEC,iCAAM,CAAC,KAAK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1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var css_248z = ":root {\n /* Buttons Colors */\n --button-alternative-default-color: rgba(170, 170, 170, 0.64);\n --button-disabled-default-color: #c5ccd3;\n --button-primary-default: #2f57e4;\n --button-primary-on-hover-color: #173fcc;\n --button-secondary-default-color: #e6e9ec;\n --button-secondary-on-hover: #c5ccd3;\n --button-tinted-default-color: #ebf0fe;\n --button-tinted-on-hover-color: #d4e3fd;\n --button-black-default-color: #000;\n --button-black-on-hover-color: #333;\n --button-tinted-red-default-color: rgba(254, 235, 229, 1);\n\n /* Default Colors */\n --default-primary-accent: #2f57e4;\n --default-white-color: #fff;\n --default-black-color: #000;\n\n /* General lightmode colors */\n --leaf: #c1dc19;\n\n /* Icons Colors */\n --icon-accent-color: #2f57e4;\n --icon-error-color: #f35929;\n --icon-primary-color: #000;\n --icon-secondary-color: #758393;\n --icon-success: #57bb09;\n --icon-warning-color: #f3a229;\n --icon-tertiary: #ccd1d7;\n --icon-white-nonconvert-color: #fff;\n --icon-disabled-color: #929daa;\n\n /* Page Color */\n --page-color-background-gray: #f0f2f4;\n --page-color-background-white: #fff;\n --page-color-overlay-web: rgba(0, 0, 0, 0.5);\n\n /* Surface Colors */\n --surface-surface-1: #f0f2f4;\n --surface-surface-2: #fff;\n --surface-surface-3: #e3e7eb;\n --surface-surface-4: rgba(170, 170, 170, 0.64);\n --surface-surface-alt: rgba(240, 242, 244, 0.8);\n --surface-surface-black-nonconvert: #000;\n --surface-surface-black-opacity: rgba(0, 0, 0, 0.24);\n --surface-surface-white-nonconvert: #fff;\n --surface-surface-tinted: #ebf0fe;\n --surface-accent: #2f57e4;\n\n /* Text Colors */\n --text-accent: #2f57e4;\n --text-disabled-accent-color: #b3c2f6;\n --text-disabled-color: #929daa;\n --text-primary: #000;\n --text-secondary: #758393;\n --text-white-nonconvert-color: #fff;\n --text-error: #f35929;\n --text-success: #57bb09;\n --text-warning: rgba(243, 162, 41, 1);\n\n /* Border-Stroke Colors */\n --border-stroke-primary: #e6e9ec;\n --border-stroke-secondary: #758393;\n\n /*number of cards on tablet, laptop, and desktop screens*/\n --tablet: 3;\n --labtop: 4;\n --desktop: 6;\n}\n";
|
|
3
|
+
var css_248z = ":root {\n /* Buttons Colors */\n --button-alternative-default-color: rgba(170, 170, 170, 0.64);\n --button-disabled-default-color: #c5ccd3;\n --button-primary-default: #2f57e4;\n --button-primary-on-hover-color: #173fcc;\n --button-secondary-default-color: #e6e9ec;\n --button-secondary-on-hover: #c5ccd3;\n --button-tinted-default-color: #ebf0fe;\n --button-tinted-on-hover-color: #d4e3fd;\n --button-black-default-color: #000;\n --button-black-on-hover-color: #333;\n --button-tinted-red-default-color: rgba(254, 235, 229, 1);\n\n /* Default Colors */\n --default-primary-accent: #2f57e4;\n --default-white-color: #fff;\n --default-black-color: #000;\n\n /* General lightmode colors */\n --leaf: #c1dc19;\n --flamingo: #f35929;\n\n /* Icons Colors */\n --icon-accent-color: #2f57e4;\n --icon-error-color: #f35929;\n --icon-primary-color: #000;\n --icon-secondary-color: #758393;\n --icon-success: #57bb09;\n --icon-warning-color: #f3a229;\n --icon-tertiary: #ccd1d7;\n --icon-white-nonconvert-color: #fff;\n --icon-disabled-color: #929daa;\n\n /* Page Color */\n --page-color-background-gray: #f0f2f4;\n --page-color-background-white: #fff;\n --page-color-overlay-web: rgba(0, 0, 0, 0.5);\n --page-color-overlay-error: color-mix(\n in srgb,\n var(--flamingo) 50%,\n transparent\n );\n\n /* Surface Colors */\n --surface-surface-1: #f0f2f4;\n --surface-surface-2: #fff;\n --surface-surface-3: #e3e7eb;\n --surface-surface-4: rgba(170, 170, 170, 0.64);\n --surface-surface-alt: rgba(240, 242, 244, 0.8);\n --surface-surface-black-nonconvert: #000;\n --surface-surface-black-opacity: rgba(0, 0, 0, 0.24);\n --surface-surface-white-nonconvert: #fff;\n --surface-surface-tinted: #ebf0fe;\n --surface-accent: #2f57e4;\n\n /* Text Colors */\n --text-accent: #2f57e4;\n --text-disabled-accent-color: #b3c2f6;\n --text-disabled-color: #929daa;\n --text-primary: #000;\n --text-secondary: #758393;\n --text-white-nonconvert-color: #fff;\n --text-error: #f35929;\n --text-success: #57bb09;\n --text-warning: rgba(243, 162, 41, 1);\n\n /* Border-Stroke Colors */\n --border-stroke-primary: #e6e9ec;\n --border-stroke-secondary: #758393;\n\n /*number of cards on tablet, laptop, and desktop screens*/\n --tablet: 3;\n --labtop: 4;\n --desktop: 6;\n}\n";
|
|
4
4
|
function styleInject(css, options) {
|
|
5
5
|
if (typeof document === 'undefined') return;
|
|
6
6
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var css_248z = ".RadioToggle-module_wrap__8YjWu {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 4px;\n width: 32px;\n height: 16px;\n border-radius: 40px;\n background: var(--leaf);\n}\n\n.RadioToggle-module_wrapLock__fmILT {\n justify-content: flex-start;\n background: var(--surface-surface-3);\n}\n\n.RadioToggle-module_round__X-Pkz {\n width: 16px;\n height: 16px;\n background: var(--surface-surface-2);\n border-radius: 100px;\n}\n";
|
|
2
|
-
var styles = {"wrap":"RadioToggle-module_wrap__8YjWu","wrapLock":"RadioToggle-module_wrapLock__fmILT","round":"RadioToggle-module_round__X-Pkz"};
|
|
1
|
+
var css_248z = ".RadioToggle-module_wrap__8YjWu {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 4px;\n width: 32px;\n height: 16px;\n border-radius: 40px;\n background: var(--leaf);\n}\n\n.RadioToggle-module_isDisabled__6Bm-s {\n background: var(--icon-tertiary);\n}\n\n.RadioToggle-module_wrapLock__fmILT {\n justify-content: flex-start;\n background: var(--surface-surface-3);\n}\n\n.RadioToggle-module_round__X-Pkz {\n width: 16px;\n height: 16px;\n background: var(--surface-surface-2);\n border-radius: 100px;\n}\n";
|
|
2
|
+
var styles = {"wrap":"RadioToggle-module_wrap__8YjWu","isDisabled":"RadioToggle-module_isDisabled__6Bm-s","wrapLock":"RadioToggle-module_wrapLock__fmILT","round":"RadioToggle-module_round__X-Pkz"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
5
5
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -2,9 +2,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { joinClasses } from '../../utils/joinClasses.js';
|
|
3
3
|
import styles from './RadioToggle.module.css.js';
|
|
4
4
|
|
|
5
|
-
const RadioToggle = ({ lock, setLock }) => (jsx("button", { type: "button", "data-testid": "RadioToggle_BUTTON", "aria-pressed": lock, "aria-label": "\u041A\u043D\u043E\u043F\u043A\u0430 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F", onClick: () => {
|
|
5
|
+
const RadioToggle = ({ lock, setLock, isDisabled = false, }) => (jsx("button", { type: "button", "data-testid": "RadioToggle_BUTTON", "aria-pressed": lock, "aria-label": "\u041A\u043D\u043E\u043F\u043A\u0430 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F", onClick: () => {
|
|
6
6
|
setLock(!lock);
|
|
7
|
-
}, children: jsx("div", { "data-testid": "RadioToggle_WRAP", className: joinClasses(styles.wrap, lock && styles.wrapLock), children: jsx("div", { "data-testid": "RadioToggle_ROUND", className: styles.round }) }) }));
|
|
7
|
+
}, disabled: isDisabled, children: jsx("div", { "data-testid": "RadioToggle_WRAP", className: joinClasses(styles.wrap, isDisabled && styles.isDisabled, lock && styles.wrapLock), children: jsx("div", { "data-testid": "RadioToggle_ROUND", className: styles.round }) }) }));
|
|
8
8
|
|
|
9
9
|
export { RadioToggle };
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/RadioToggle/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/RadioToggle/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAYO,MAAM,WAAW,GAAG,CAAC,EAC1B,IAAI,EACJ,OAAO,EACP,UAAU,GAAG,KAAK,GACA,MAClBA,GAAA,CAAA,QAAA,EAAA,EACE,IAAI,EAAC,QAAQ,iBACD,oBAAoB,EAAA,cAAA,EAClB,IAAI,EAAA,YAAA,EACP,+GAAqB,EAChC,OAAO,EAAE,MAAK;AACZ,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC;AAChB,IAAA,CAAC,EACD,QAAQ,EAAE,UAAU,EAAA,QAAA,EAEpBA,GAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EACc,kBAAkB,EAC9B,SAAS,EAAE,WAAW,CACpB,MAAM,CAAC,IAAI,EACX,UAAU,IAAI,MAAM,CAAC,UAAU,EAC/B,IAAI,IAAI,MAAM,CAAC,QAAQ,CACxB,YAEDA,GAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,mBAAmB,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,GAAQ,EAAA,CAChE,EAAA,CACC;;;;"}
|
|
@@ -11,13 +11,16 @@ import styles from './SearchBar.module.css.js';
|
|
|
11
11
|
|
|
12
12
|
const langDic = i18n.SearchBar;
|
|
13
13
|
const SearchBar = ({ lang, handleModalOpen, handleOnEnter, handleOnClear, handleOnChange, variant = "default", loading = false, disabled = false, defaultValue = "", showClearButton = true, placeholder = "", "aria-label": ariaLabel = "", debounceDelay = 300, formatter, }) => {
|
|
14
|
-
const
|
|
14
|
+
const formatDefault = () => formatter ? formatter(defaultValue) : defaultValue;
|
|
15
|
+
const [value, setValue] = useState(formatDefault);
|
|
16
|
+
const [prevSource, setPrevSource] = useState({ defaultValue, formatter });
|
|
17
|
+
if (prevSource.defaultValue !== defaultValue ||
|
|
18
|
+
prevSource.formatter !== formatter) {
|
|
19
|
+
setPrevSource({ defaultValue, formatter });
|
|
20
|
+
setValue(formatDefault());
|
|
21
|
+
}
|
|
15
22
|
const inputRef = useRef(null);
|
|
16
23
|
const debouncedOnChangeRef = useRef(null);
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
const formattedDefault = formatter ? formatter(defaultValue) : defaultValue;
|
|
19
|
-
setValue(formattedDefault);
|
|
20
|
-
}, [defaultValue, formatter]);
|
|
21
24
|
useEffect(() => {
|
|
22
25
|
debouncedOnChangeRef.current = debounce((value) => {
|
|
23
26
|
if (handleOnChange) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/SearchBar/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AA8BA,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS;AAEvB,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,eAAe,EACf,aAAa,EACb,aAAa,EACb,cAAc,EACd,OAAO,GAAG,SAAS,EACnB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,YAAY,GAAG,EAAE,EACjB,eAAe,GAAG,IAAI,EACtB,WAAW,GAAG,EAAE,EAChB,YAAY,EAAE,SAAS,GAAG,EAAE,EAC5B,aAAa,GAAG,GAAG,EACnB,SAAS,GACO,KAAI;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/SearchBar/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AA8BA,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS;AAEvB,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,eAAe,EACf,aAAa,EACb,aAAa,EACb,cAAc,EACd,OAAO,GAAG,SAAS,EACnB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,YAAY,GAAG,EAAE,EACjB,eAAe,GAAG,IAAI,EACtB,WAAW,GAAG,EAAE,EAChB,YAAY,EAAE,SAAS,G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ClB,QAAQ,EAAE,CAAC,CAAC,eAAe,EAAA,YAAA,EACf,aAAa,EACzB,WAAW,EAAE,eAAe,EAC5B,OAAO,EAAE,gBAAgB,EACzB,SAAS,EAAE,aAAa,EACxB,SAAS,EAAE,YAAY,GACvB,EACD,eAAe,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,eAAe,KACtDA,+BACc,wBAAwB,EACpC,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,MAAM,CAAC,WAAW,EAAA,YAAA,EACjB,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EACrC,QAAQ,EAAE,QAAQ,EAAA,QAAA,EAElBA,GAAA,CAAC,SAAS,EAAA,EACR,SAAS,EAAE,MAAM,CAAC,SAAS,EAAA,aAAA,EACf,sBAAsB,EAAA,CAClC,EAAA,CACK,CACV,CAAA,EAAA,CACG,EAAA,CACF;AAEV;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var css_248z = ".PersonalIDTemplate-module_card__WThmZ {\n position: relative;\n display: inline-block;\n width: 364px;\n container-type: inline-size;\n color: var(--text-primary);\n}\n\n.PersonalIDTemplate-module_illustration__HPKBU {\n display: block;\n width: 100%;\n height: auto;\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC {\n position: absolute;\n inset: 0;\n}\n\n.PersonalIDTemplate-module_photo__VtZsV {\n position: absolute;\n left: 4.55cqi;\n top: 16.32cqi;\n width: 28.68cqi; /* 245.78px @ 857 */\n aspect-ratio: 3.5 / 4.5; /* 316px tall @ 857 */\n object-fit: cover;\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_sign__zBLAP {\n position: absolute;\n left: 56.3cqi; /* 482.5px @ 857 */\n top: 52.82cqi;\n width: 28.59cqi; /* 245px @ 857 */\n height: 8.59cqi;\n object-fit: fill;\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_empty__C0VLt {\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_field__94BPp {\n position: absolute;\n font-size: 2.57cqi; /* 22px @ 857 */\n line-height: 2.8cqi; /* 24px @ 857 */\n}\n\n.PersonalIDTemplate-module_lastName__RyBV5 {\n left: 37.23cqi;\n top: 21.81cqi;\n}\n\n.PersonalIDTemplate-module_firstName__EjRDV {\n left: 37.23cqi;\n top: 30.16cqi;\n}\n\n.PersonalIDTemplate-module_middleName__2DAhJ {\n left: 37.23cqi;\n top: 39.47cqi;\n}\n\n.PersonalIDTemplate-module_birthDate__9LndI {\n left: 37.23cqi;\n top: 47.58cqi;\n}\n\n.PersonalIDTemplate-module_gender__M-nA1 {\n left: 73.21cqi;\n top: 47.58cqi;\n text-align: center;\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_iin__KKSjh {\n /* TODO: Поменять на динамический шрифт после фикса на Figma */\n left: 12.53cqi;\n top: 57.7cqi;\n font-size: 3.27cqi; /* 28px @ 857 */\n line-height: 3.73cqi; /* 32px @ 857 */\n}\n";
|
|
2
|
-
var styles = {"card":"PersonalIDTemplate-module_card__WThmZ","illustration":"PersonalIDTemplate-module_illustration__HPKBU","overlay":"PersonalIDTemplate-module_overlay__wd4gC","photo":"PersonalIDTemplate-module_photo__VtZsV","sign":"PersonalIDTemplate-module_sign__zBLAP","empty":"PersonalIDTemplate-module_empty__C0VLt","field":"PersonalIDTemplate-module_field__94BPp","lastName":"PersonalIDTemplate-module_lastName__RyBV5","firstName":"PersonalIDTemplate-module_firstName__EjRDV","middleName":"PersonalIDTemplate-module_middleName__2DAhJ","birthDate":"PersonalIDTemplate-module_birthDate__9LndI","gender":"PersonalIDTemplate-module_gender__M-nA1","iin":"PersonalIDTemplate-module_iin__KKSjh"};
|
|
1
|
+
var css_248z = ".PersonalIDTemplate-module_card__WThmZ {\n position: relative;\n display: inline-block;\n width: 364px;\n container-type: inline-size;\n color: var(--text-primary);\n}\n\n.PersonalIDTemplate-module_illustration__HPKBU {\n display: block;\n width: 100%;\n height: auto;\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC {\n position: absolute;\n inset: 0;\n}\n\n.PersonalIDTemplate-module_photo__VtZsV {\n position: absolute;\n left: 4.55cqi;\n top: 16.32cqi;\n width: 28.68cqi; /* 245.78px @ 857 */\n aspect-ratio: 3.5 / 4.5; /* 316px tall @ 857 */\n object-fit: cover;\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_sign__zBLAP {\n position: absolute;\n left: 56.3cqi; /* 482.5px @ 857 */\n top: 52.82cqi;\n width: 28.59cqi; /* 245px @ 857 */\n height: 8.59cqi;\n object-fit: fill;\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_empty__C0VLt {\n background: var(--surface-surface-1);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_invalid__iVmBU {\n background: var(--page-color-overlay-error);\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_field__94BPp {\n position: absolute;\n font-size: 2.57cqi; /* 22px @ 857 */\n line-height: 2.8cqi; /* 24px @ 857 */\n}\n\n.PersonalIDTemplate-module_lastName__RyBV5 {\n left: 37.23cqi;\n top: 21.81cqi;\n}\n\n.PersonalIDTemplate-module_firstName__EjRDV {\n left: 37.23cqi;\n top: 30.16cqi;\n}\n\n.PersonalIDTemplate-module_middleName__2DAhJ {\n left: 37.23cqi;\n top: 39.47cqi;\n}\n\n.PersonalIDTemplate-module_birthDate__9LndI {\n left: 37.23cqi;\n top: 47.58cqi;\n}\n\n.PersonalIDTemplate-module_gender__M-nA1 {\n left: 73.21cqi;\n top: 47.58cqi;\n text-align: center;\n}\n\n.PersonalIDTemplate-module_overlay__wd4gC .PersonalIDTemplate-module_iin__KKSjh {\n /* TODO: Поменять на динамический шрифт после фикса на Figma */\n left: 12.53cqi;\n top: 57.7cqi;\n font-size: 3.27cqi; /* 28px @ 857 */\n line-height: 3.73cqi; /* 32px @ 857 */\n}\n";
|
|
2
|
+
var styles = {"card":"PersonalIDTemplate-module_card__WThmZ","illustration":"PersonalIDTemplate-module_illustration__HPKBU","overlay":"PersonalIDTemplate-module_overlay__wd4gC","photo":"PersonalIDTemplate-module_photo__VtZsV","sign":"PersonalIDTemplate-module_sign__zBLAP","empty":"PersonalIDTemplate-module_empty__C0VLt","invalid":"PersonalIDTemplate-module_invalid__iVmBU","field":"PersonalIDTemplate-module_field__94BPp","lastName":"PersonalIDTemplate-module_lastName__RyBV5","firstName":"PersonalIDTemplate-module_firstName__EjRDV","middleName":"PersonalIDTemplate-module_middleName__2DAhJ","birthDate":"PersonalIDTemplate-module_birthDate__9LndI","gender":"PersonalIDTemplate-module_gender__M-nA1","iin":"PersonalIDTemplate-module_iin__KKSjh"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
5
5
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { PersonalIDLabeledIllustration } from '@egov3/graphics/Documents/PersonalIDLabeled';
|
|
3
3
|
import '../../../styles/colors.css.js';
|
|
4
4
|
import { joinClasses } from '../../../utils/joinClasses.js';
|
|
@@ -51,8 +51,8 @@ import '../../../baseComponents/TextWithAction/TextWithAction.module.css.js';
|
|
|
51
51
|
import '../../../baseComponents/Title/Title.module.css.js';
|
|
52
52
|
import styles from './PersonalIDTemplate.module.css.js';
|
|
53
53
|
|
|
54
|
-
const CardImage = ({ src, className, testId, }) => src ? (jsx("img", { className: className, src: src, alt: "", "data-testid": testId })) : (jsx("div", { className: joinClasses(className, styles.empty), "data-testid": testId }));
|
|
55
|
-
const PersonalIDTemplate = ({ userPhoto, userSign, userData, className, }) => (jsxs("div", { className: joinClasses(styles.card, className), "data-testid": "PersonalIDTemplate", children: [jsx(PersonalIDLabeledIllustration, { className: styles.illustration }), jsxs("div", { className: styles.overlay, "data-testid": "PersonalIDTemplate_OVERLAY", children: [jsx(CardImage, { src: userPhoto, className: styles.photo, testId: "PersonalIDTemplate_PHOTO" }), jsx(CardImage, { src: userSign, className: styles.sign, testId: "PersonalIDTemplate_SIGN" }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.lastName), "data-testid": "PersonalIDTemplate_LASTNAME_VALUE", children: userData?.lastName }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.firstName), "data-testid": "PersonalIDTemplate_FIRSTNAME_VALUE", children: userData?.firstName }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.middleName), "data-testid": "PersonalIDTemplate_MIDDLENAME_VALUE", children: userData?.middleName }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.birthDate), "data-testid": "PersonalIDTemplate_BIRTHDATE_VALUE", children: userData?.birthDate }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.gender), "data-testid": "PersonalIDTemplate_GENDER_VALUE", children: userData?.gender }), jsx(Typography, { tag: "span", fontClass: "heading2", className: joinClasses(styles.field, styles.iin), "data-testid": "PersonalIDTemplate_IIN_VALUE", children: userData?.IIN })] })] }));
|
|
54
|
+
const CardImage = ({ src, className, testId, isInvalid, invalidTestId, }) => (jsxs(Fragment, { children: [src ? (jsx("img", { className: className, src: src, alt: "", "data-testid": testId })) : (jsx("div", { className: joinClasses(className, styles.empty), "data-testid": testId })), isInvalid && (jsx("div", { className: joinClasses(className, styles.invalid), "data-testid": invalidTestId }))] }));
|
|
55
|
+
const PersonalIDTemplate = ({ userPhoto, userSign, userData, className, isPhotoInvalid = false, isSignInvalid = false, }) => (jsxs("div", { className: joinClasses(styles.card, className), "data-testid": "PersonalIDTemplate", children: [jsx(PersonalIDLabeledIllustration, { className: styles.illustration }), jsxs("div", { className: styles.overlay, "data-testid": "PersonalIDTemplate_OVERLAY", children: [jsx(CardImage, { src: userPhoto, className: styles.photo, testId: "PersonalIDTemplate_PHOTO", isInvalid: isPhotoInvalid, invalidTestId: "PersonalIDTemplate_PHOTO_INVALID" }), jsx(CardImage, { src: userSign, className: styles.sign, testId: "PersonalIDTemplate_SIGN", isInvalid: isSignInvalid, invalidTestId: "PersonalIDTemplate_SIGN_INVALID" }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.lastName), "data-testid": "PersonalIDTemplate_LASTNAME_VALUE", children: userData?.lastName }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.firstName), "data-testid": "PersonalIDTemplate_FIRSTNAME_VALUE", children: userData?.firstName }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.middleName), "data-testid": "PersonalIDTemplate_MIDDLENAME_VALUE", children: userData?.middleName }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.birthDate), "data-testid": "PersonalIDTemplate_BIRTHDATE_VALUE", children: userData?.birthDate }), jsx(Typography, { tag: "span", fontClass: "subtitles1", className: joinClasses(styles.field, styles.gender), "data-testid": "PersonalIDTemplate_GENDER_VALUE", children: userData?.gender }), jsx(Typography, { tag: "span", fontClass: "heading2", className: joinClasses(styles.field, styles.iin), "data-testid": "PersonalIDTemplate_IIN_VALUE", children: userData?.IIN })] })] }));
|
|
56
56
|
|
|
57
57
|
export { PersonalIDTemplate };
|
|
58
58
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/PersonalIDTemplate/index.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/PersonalIDTemplate/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_F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C,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAA,aAAA,EACvC,iCAAiC,YAE5C,QAAQ,EAAE,MAAM,EAAA,CACN,EAEbA,GAAA,CAAC,UAAU,EAAA,EACT,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,UAAU,EACpB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,EAAA,aAAA,EACpC,8BAA8B,EAAA,QAAA,EAEzC,QAAQ,EAAE,GAAG,EAAA,CACH,CAAA,EAAA,CACT,CAAA,EAAA,CACF;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var css_248z = ":root {\n /* Buttons Colors */\n --button-alternative-default-color: rgba(170, 170, 170, 0.64);\n --button-disabled-default-color: #c5ccd3;\n --button-primary-default: #2f57e4;\n --button-primary-on-hover-color: #173fcc;\n --button-secondary-default-color: #e6e9ec;\n --button-secondary-on-hover: #c5ccd3;\n --button-tinted-default-color: #ebf0fe;\n --button-tinted-on-hover-color: #d4e3fd;\n --button-black-default-color: #000;\n --button-black-on-hover-color: #333;\n --button-tinted-red-default-color: rgba(254, 235, 229, 1);\n\n /* Default Colors */\n --default-primary-accent: #2f57e4;\n --default-white-color: #fff;\n --default-black-color: #000;\n\n /* General lightmode colors */\n --leaf: #c1dc19;\n\n /* Icons Colors */\n --icon-accent-color: #2f57e4;\n --icon-error-color: #f35929;\n --icon-primary-color: #000;\n --icon-secondary-color: #758393;\n --icon-success: #57bb09;\n --icon-warning-color: #f3a229;\n --icon-tertiary: #ccd1d7;\n --icon-white-nonconvert-color: #fff;\n --icon-disabled-color: #929daa;\n\n /* Page Color */\n --page-color-background-gray: #f0f2f4;\n --page-color-background-white: #fff;\n --page-color-overlay-web: rgba(0, 0, 0, 0.5);\n\n /* Surface Colors */\n --surface-surface-1: #f0f2f4;\n --surface-surface-2: #fff;\n --surface-surface-3: #e3e7eb;\n --surface-surface-4: rgba(170, 170, 170, 0.64);\n --surface-surface-alt: rgba(240, 242, 244, 0.8);\n --surface-surface-black-nonconvert: #000;\n --surface-surface-black-opacity: rgba(0, 0, 0, 0.24);\n --surface-surface-white-nonconvert: #fff;\n --surface-surface-tinted: #ebf0fe;\n --surface-accent: #2f57e4;\n\n /* Text Colors */\n --text-accent: #2f57e4;\n --text-disabled-accent-color: #b3c2f6;\n --text-disabled-color: #929daa;\n --text-primary: #000;\n --text-secondary: #758393;\n --text-white-nonconvert-color: #fff;\n --text-error: #f35929;\n --text-success: #57bb09;\n --text-warning: rgba(243, 162, 41, 1);\n\n /* Border-Stroke Colors */\n --border-stroke-primary: #e6e9ec;\n --border-stroke-secondary: #758393;\n\n /*number of cards on tablet, laptop, and desktop screens*/\n --tablet: 3;\n --labtop: 4;\n --desktop: 6;\n}\n";
|
|
1
|
+
var css_248z = ":root {\n /* Buttons Colors */\n --button-alternative-default-color: rgba(170, 170, 170, 0.64);\n --button-disabled-default-color: #c5ccd3;\n --button-primary-default: #2f57e4;\n --button-primary-on-hover-color: #173fcc;\n --button-secondary-default-color: #e6e9ec;\n --button-secondary-on-hover: #c5ccd3;\n --button-tinted-default-color: #ebf0fe;\n --button-tinted-on-hover-color: #d4e3fd;\n --button-black-default-color: #000;\n --button-black-on-hover-color: #333;\n --button-tinted-red-default-color: rgba(254, 235, 229, 1);\n\n /* Default Colors */\n --default-primary-accent: #2f57e4;\n --default-white-color: #fff;\n --default-black-color: #000;\n\n /* General lightmode colors */\n --leaf: #c1dc19;\n --flamingo: #f35929;\n\n /* Icons Colors */\n --icon-accent-color: #2f57e4;\n --icon-error-color: #f35929;\n --icon-primary-color: #000;\n --icon-secondary-color: #758393;\n --icon-success: #57bb09;\n --icon-warning-color: #f3a229;\n --icon-tertiary: #ccd1d7;\n --icon-white-nonconvert-color: #fff;\n --icon-disabled-color: #929daa;\n\n /* Page Color */\n --page-color-background-gray: #f0f2f4;\n --page-color-background-white: #fff;\n --page-color-overlay-web: rgba(0, 0, 0, 0.5);\n --page-color-overlay-error: color-mix(\n in srgb,\n var(--flamingo) 50%,\n transparent\n );\n\n /* Surface Colors */\n --surface-surface-1: #f0f2f4;\n --surface-surface-2: #fff;\n --surface-surface-3: #e3e7eb;\n --surface-surface-4: rgba(170, 170, 170, 0.64);\n --surface-surface-alt: rgba(240, 242, 244, 0.8);\n --surface-surface-black-nonconvert: #000;\n --surface-surface-black-opacity: rgba(0, 0, 0, 0.24);\n --surface-surface-white-nonconvert: #fff;\n --surface-surface-tinted: #ebf0fe;\n --surface-accent: #2f57e4;\n\n /* Text Colors */\n --text-accent: #2f57e4;\n --text-disabled-accent-color: #b3c2f6;\n --text-disabled-color: #929daa;\n --text-primary: #000;\n --text-secondary: #758393;\n --text-white-nonconvert-color: #fff;\n --text-error: #f35929;\n --text-success: #57bb09;\n --text-warning: rgba(243, 162, 41, 1);\n\n /* Border-Stroke Colors */\n --border-stroke-primary: #e6e9ec;\n --border-stroke-secondary: #758393;\n\n /*number of cards on tablet, laptop, and desktop screens*/\n --tablet: 3;\n --labtop: 4;\n --desktop: 6;\n}\n";
|
|
2
2
|
function styleInject(css, options) {
|
|
3
3
|
if (typeof document === 'undefined') return;
|
|
4
4
|
const head = document.head || document.getElementsByTagName('head')[0];
|
package/dist/styles/colors.css
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
/* General lightmode colors */
|
|
21
21
|
--leaf: #c1dc19;
|
|
22
|
+
--flamingo: #f35929;
|
|
22
23
|
|
|
23
24
|
/* Icons Colors */
|
|
24
25
|
--icon-accent-color: #2f57e4;
|
|
@@ -35,6 +36,11 @@
|
|
|
35
36
|
--page-color-background-gray: #f0f2f4;
|
|
36
37
|
--page-color-background-white: #fff;
|
|
37
38
|
--page-color-overlay-web: rgba(0, 0, 0, 0.5);
|
|
39
|
+
--page-color-overlay-error: color-mix(
|
|
40
|
+
in srgb,
|
|
41
|
+
var(--flamingo) 50%,
|
|
42
|
+
transparent
|
|
43
|
+
);
|
|
38
44
|
|
|
39
45
|
/* Surface Colors */
|
|
40
46
|
--surface-surface-1: #f0f2f4;
|
|
@@ -4,8 +4,9 @@ import { Dispatch, SetStateAction } from 'react';
|
|
|
4
4
|
interface IRadioToggleProps {
|
|
5
5
|
lock: boolean;
|
|
6
6
|
setLock: Dispatch<SetStateAction<boolean>>;
|
|
7
|
+
isDisabled?: boolean;
|
|
7
8
|
}
|
|
8
|
-
declare const RadioToggle: ({ lock, setLock }: IRadioToggleProps) => react.JSX.Element;
|
|
9
|
+
declare const RadioToggle: ({ lock, setLock, isDisabled, }: IRadioToggleProps) => react.JSX.Element;
|
|
9
10
|
|
|
10
11
|
export { RadioToggle };
|
|
11
12
|
export type { IRadioToggleProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IPersonalIDTemplateProps } from '../../../interfaces/PersonalIDTemplate.js';
|
|
3
3
|
|
|
4
|
-
declare const PersonalIDTemplate: ({ userPhoto, userSign, userData, className, }: IPersonalIDTemplateProps) => react.JSX.Element;
|
|
4
|
+
declare const PersonalIDTemplate: ({ userPhoto, userSign, userData, className, isPhotoInvalid, isSignInvalid, }: IPersonalIDTemplateProps) => react.JSX.Element;
|
|
5
5
|
|
|
6
6
|
export { PersonalIDTemplate };
|