@egov3/system-design 1.3.94 → 1.3.96
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/Modal.module.css.js +2 -2
- package/dist/cjs/baseComponents/Modal/index.js +4 -3
- package/dist/cjs/baseComponents/Modal/index.js.map +1 -1
- package/dist/cjs/baseComponents/SearchBar/SearchBar.module.css.js +22 -0
- package/dist/cjs/baseComponents/SearchBar/SearchBar.module.css.js.map +1 -0
- package/dist/cjs/baseComponents/SearchBar/index.js +48 -0
- package/dist/cjs/baseComponents/SearchBar/index.js.map +1 -0
- package/dist/cjs/baseComponents/index.js +30 -28
- package/dist/cjs/baseComponents/index.js.map +1 -1
- package/dist/cjs/components/ErrorModal/index.js +1 -1
- package/dist/cjs/components/ErrorModal/index.js.map +1 -1
- package/dist/cjs/components/Identity/IdentityModal/IdentityModal.module.css.js +2 -2
- package/dist/cjs/components/Identity/IdentityModal/index.js +2 -2
- package/dist/cjs/components/Identity/IdentityModal/index.js.map +1 -1
- package/dist/cjs/components/Messages/MsgSearch/MsgSearch.module.css.js +2 -2
- package/dist/cjs/components/Messages/MsgSearch/index.js +5 -14
- package/dist/cjs/components/Messages/MsgSearch/index.js.map +1 -1
- package/dist/cjs/components/Profile/DocCard/index.js +10 -2
- package/dist/cjs/components/Profile/DocCard/index.js.map +1 -1
- package/dist/cjs/components/Profile/SetUpAccess/SetUpAccess.module.css.js +2 -2
- package/dist/cjs/components/Profile/SetUpAccess/index.js +2 -4
- package/dist/cjs/components/Profile/SetUpAccess/index.js.map +1 -1
- package/dist/cjs/components/Services/Feedback/Feedback.module.css.js +2 -2
- package/dist/cjs/components/Services/Feedback/index.js +1 -1
- package/dist/cjs/components/Services/Feedback/index.js.map +1 -1
- package/dist/cjs/constants/i18n/Profile/DocCard.js +12 -0
- package/dist/cjs/constants/i18n/Profile/DocCard.js.map +1 -0
- package/dist/cjs/constants/i18n/Profile/SetUpAccess.js +1 -7
- package/dist/cjs/constants/i18n/Profile/SetUpAccess.js.map +1 -1
- package/dist/cjs/constants/i18n/index.js +2 -0
- package/dist/cjs/constants/i18n/index.js.map +1 -1
- package/dist/esm/baseComponents/Modal/Modal.module.css.js +2 -2
- package/dist/esm/baseComponents/Modal/index.js +4 -3
- package/dist/esm/baseComponents/Modal/index.js.map +1 -1
- package/dist/esm/baseComponents/SearchBar/SearchBar.module.css.js +18 -0
- package/dist/esm/baseComponents/SearchBar/SearchBar.module.css.js.map +1 -0
- package/dist/esm/baseComponents/SearchBar/index.js +46 -0
- package/dist/esm/baseComponents/SearchBar/index.js.map +1 -0
- package/dist/esm/baseComponents/index.js +6 -4
- package/dist/esm/baseComponents/index.js.map +1 -1
- package/dist/esm/components/ErrorModal/index.js +1 -1
- package/dist/esm/components/ErrorModal/index.js.map +1 -1
- package/dist/esm/components/Identity/IdentityModal/IdentityModal.module.css.js +2 -2
- package/dist/esm/components/Identity/IdentityModal/index.js +3 -3
- package/dist/esm/components/Identity/IdentityModal/index.js.map +1 -1
- package/dist/esm/components/Messages/MsgSearch/MsgSearch.module.css.js +2 -2
- package/dist/esm/components/Messages/MsgSearch/index.js +2 -11
- package/dist/esm/components/Messages/MsgSearch/index.js.map +1 -1
- package/dist/esm/components/Profile/DocCard/index.js +10 -2
- package/dist/esm/components/Profile/DocCard/index.js.map +1 -1
- package/dist/esm/components/Profile/SetUpAccess/SetUpAccess.module.css.js +2 -2
- package/dist/esm/components/Profile/SetUpAccess/index.js +3 -5
- package/dist/esm/components/Profile/SetUpAccess/index.js.map +1 -1
- package/dist/esm/components/Services/Feedback/Feedback.module.css.js +2 -2
- package/dist/esm/components/Services/Feedback/index.js +1 -1
- package/dist/esm/components/Services/Feedback/index.js.map +1 -1
- package/dist/esm/constants/i18n/Profile/DocCard.js +10 -0
- package/dist/esm/constants/i18n/Profile/DocCard.js.map +1 -0
- package/dist/esm/constants/i18n/Profile/SetUpAccess.js +1 -7
- package/dist/esm/constants/i18n/Profile/SetUpAccess.js.map +1 -1
- package/dist/esm/constants/i18n/index.js +2 -0
- package/dist/esm/constants/i18n/index.js.map +1 -1
- package/dist/types/baseComponents/Modal/index.d.ts +9 -1
- package/dist/types/baseComponents/SearchBar/index.d.ts +13 -0
- package/dist/types/components/Messages/MsgSearch/index.d.ts +1 -1
- package/dist/types/components/Profile/DocCard/index.d.ts +1 -0
- package/dist/types/components/Profile/SetUpAccess/index.d.ts +0 -2
- package/dist/types/index.d.ts +14 -12
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var css_248z = ".Modal-module_contentWrap__k38CL {\n background: var(--page-color-background-white);\n border-radius: 16px;\n
|
|
2
|
-
var styles = {"contentWrap":"Modal-module_contentWrap__k38CL","flyDown":"Modal-module_flyDown__8XGLa","largeVariant":"Modal-module_largeVariant__tnPGL","smallVariant":"Modal-module_smallVariant__eHFMv","contentHeader":"Modal-module_contentHeader__XyuVc","title":"Modal-module_title__26Kte"};
|
|
1
|
+
var css_248z = ".Modal-module_contentWrap__k38CL {\n background: var(--page-color-background-white);\n border-radius: 16px;\n animation: Modal-module_flyDown__8XGLa 1s;\n display: flex;\n flex-direction: column;\n margin: auto 0;\n}\n\n.Modal-module_contentWrapHeight__LFoO- {\n max-height: calc(100% - 64px);\n}\n\n@media (min-width: 768px) {\n .Modal-module_largeVariant__tnPGL {\n width: clamp(598px, 70vw, 749px);\n }\n}\n\n@media (min-width: 1024px) {\n .Modal-module_largeVariant__tnPGL {\n width: clamp(749px, 70vw, 1052px);\n }\n}\n\n@media (min-width: 1280px) {\n .Modal-module_largeVariant__tnPGL {\n width: clamp(1052px, 70vw, 100%);\n }\n}\n\n@media (min-width: 1440px) {\n .Modal-module_contentWrap__k38CL {\n margin: auto 194px;\n }\n}\n\n.Modal-module_smallVariant__eHFMv {\n width: 400px;\n}\n\n.Modal-module_contentHeader__XyuVc {\n position: relative;\n display: flex;\n justify-content: space-between;\n align-items: center;\n align-self: stretch;\n padding: 12px 16px;\n}\n\n.Modal-module_title__26Kte {\n color: var(--text-primary);\n}\n\n@keyframes Modal-module_flyDown__8XGLa {\n from {\n transform: translateY(-1000px);\n opacity: 0.1;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n.Modal-module_contentBody__ko2lN {\n flex: 1 1 auto;\n overflow-y: auto;\n min-height: 0;\n}\n\n.Modal-module_footerWrap__43bd8 {\n text-align: center;\n}\n\n.Modal-module_fixModal__cKNyu {\n padding: 32px 0px;\n overflow-y: auto;\n align-items: flex-start;\n}\n";
|
|
2
|
+
var styles = {"contentWrap":"Modal-module_contentWrap__k38CL","flyDown":"Modal-module_flyDown__8XGLa","contentWrapHeight":"Modal-module_contentWrapHeight__LFoO-","largeVariant":"Modal-module_largeVariant__tnPGL","smallVariant":"Modal-module_smallVariant__eHFMv","contentHeader":"Modal-module_contentHeader__XyuVc","title":"Modal-module_title__26Kte","contentBody":"Modal-module_contentBody__ko2lN","footerWrap":"Modal-module_footerWrap__43bd8","fixModal":"Modal-module_fixModal__cKNyu"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
5
5
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -3,17 +3,18 @@ import { Icons } from '@egov3/graphics';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { i18n } from '../../constants/i18n/index.js';
|
|
5
5
|
import { joinClasses } from '../../utils/joinClasses.js';
|
|
6
|
+
import { Button } from '../Button/index.js';
|
|
6
7
|
import { Overlay } from '../Overlay/index.js';
|
|
7
8
|
import { Typography } from '../Typography/index.js';
|
|
8
9
|
import styles from './Modal.module.css.js';
|
|
9
10
|
|
|
10
|
-
const Modal = ({ children, header, lang, open, setOpen, variant, withOverlay = true, }) => {
|
|
11
|
+
const Modal = ({ children, header, lang, open, setOpen, variant, withOverlay = true, isContentScroll = true, footerbuttons = [], }) => {
|
|
11
12
|
const Wrapper = withOverlay ? Overlay : React.Fragment;
|
|
12
|
-
return (jsx(Wrapper, { children: jsxs("div", { "data-testid": "Modal_WRAPPER", className: joinClasses(styles.contentWrap, styles[`${variant}Variant`]), children: [header && (jsxs("div", { "data-testid": "Modal_HEADER", className: styles.contentHeader, children: [header?.goBackService && (jsx("button", { "aria-label": i18n.Modal.AriaBackButton[lang], className: styles.regGoBack, "data-testid": "IdentityHeaderGoBack_BTN", onClick: header.goBackService, type: "button", children: jsx(Icons.Basic.ChevronLeft, { width: "18px", height: "18px" }) })), header?.goIdentityMain && (jsx("button", { "aria-label": i18n.Modal.AriaAuthorizationPageBtn[lang], className: styles.logo, "data-testid": "IdentityHeaderGoMain_BTN", onClick: header.goIdentityMain, type: "button", children: jsx(Icons.Logo.Egov, { width: "69px", height: "24px" }) })), header?.title && (jsx(Typography, { tag: "h3", fontClass: "body1Medium", "data-testid": "Modal_TITLE", className: styles.title, children: header.title })), header?.isClosable === true ? (jsx("button", { type: "button", "data-testid": "ModalHeaderBtn_CLOSE", onClick: () => {
|
|
13
|
+
return (jsx(Wrapper, { className: !isContentScroll && styles.fixModal, children: jsxs("div", { "data-testid": "Modal_WRAPPER", className: joinClasses(styles.contentWrap, isContentScroll && styles.contentWrapHeight, styles[`${variant}Variant`]), children: [header && (jsxs("div", { "data-testid": "Modal_HEADER", className: styles.contentHeader, children: [header?.goBackService && (jsx("button", { "aria-label": i18n.Modal.AriaBackButton[lang], className: styles.regGoBack, "data-testid": "IdentityHeaderGoBack_BTN", onClick: header.goBackService, type: "button", children: jsx(Icons.Basic.ChevronLeft, { width: "18px", height: "18px", "data-testid": "ModalChevronLeft_ICON" }) })), header?.goIdentityMain && (jsx("button", { "aria-label": i18n.Modal.AriaAuthorizationPageBtn[lang], className: styles.logo, "data-testid": "IdentityHeaderGoMain_BTN", onClick: header.goIdentityMain, type: "button", children: jsx(Icons.Logo.Egov, { width: "69px", height: "24px", "data-testid": "ModalEgov_ICON" }) })), header?.title && (jsx(Typography, { tag: "h3", fontClass: "body1Medium", "data-testid": "Modal_TITLE", className: styles.title, children: header.title })), header?.isClosable === true ? (jsx("button", { type: "button", "data-testid": "ModalHeaderBtn_CLOSE", onClick: () => {
|
|
13
14
|
if (setOpen) {
|
|
14
15
|
setOpen(!open);
|
|
15
16
|
}
|
|
16
|
-
}, children: jsx(Icons.General.Close, { "data-testid": "
|
|
17
|
+
}, children: jsx(Icons.General.Close, { "data-testid": "ModalClose_ICON" }) })) : (jsx("div", { "data-testid": "IdentityHeaderBtn_CLOSE", className: styles.regCloseBtn }))] })), jsx("div", { className: isContentScroll && styles.contentBody, "data-testid": "Modal_BODY", children: children }), footerbuttons.length > 0 && (jsx("div", { className: styles.footerWrap, "data-testid": "Modal_FOOTER", children: footerbuttons && (jsx("div", { "data-testid": "ModalFooterButton_WRAP", className: styles.wrapper, children: footerbuttons.map((item) => (jsx(Button, { "aria-label": item.text, "data-testid": item.dataTestid, disabled: item.disabled, onClick: item.onClick, size: "large", children: item.text }, item.text))) })) }))] }) }));
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export { Modal };
|
|
@@ -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":";;;;;;;;;;AAmCO,MAAM,KAAK,GAAG,CAAC,EACpB,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,WAAW,GAAG,IAAI,EAClB,eAAe,GAAG,IAAI,EACtB,aAAa,GAAG,EAAE,GACN,KAAI;AAChB,IAAA,MAAM,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,KAAK,CAAC,QAAQ;IACtD,QACEA,IAAC,OAAO,EAAA,EAAC,SAAS,EAAE,CAAC,eAAe,IAAI,MAAM,CAAC,QAAQ,EAAA,QAAA,EACrDC,IA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IAAI,EAAA,EAHL,IAAI,CAAC,IAAI,CAIP,CACV,CAAC,EAAA,CACE,CACP,EAAA,CACG,CACP,CAAA,EAAA,CACG,EAAA,CACE;AAEd;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var css_248z = ".SearchBar-module_searchLayout__VCBFD {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n}\n\n.SearchBar-module_searchIcon__w5c7b > :first-child {\n fill: var(--icon-secondary-color);\n}\n\n.SearchBar-module_clearIcon__tlykn > :first-child {\n fill: var(--icon-secondary-color);\n}\n\n.SearchBar-module_clearIcon__tlykn svg {\n width: 20px;\n height: 20px;\n flex-shrink: 0;\n}\n\n.SearchBar-module_loadingIcon__v-WG9 {\n animation: SearchBar-module_loading__qptyx 1s linear infinite;\n}\n\n.SearchBar-module_loadingIcon__v-WG9 > :first-child {\n fill: var(--icon-accent-color);\n}\n\n@keyframes SearchBar-module_loading__qptyx {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.SearchBar-module_inputContainer__jvbxZ {\n display: flex;\n align-items: center;\n gap: 8px;\n flex: 1 0 0;\n border-radius: 8px;\n}\n\n.SearchBar-module_inputContainer--modal__5Ayyp {\n padding: 12px 16px;\n background: var(--surface-surface-white-nonconvert);\n box-shadow: 0 12px 32px 0 rgba(128, 130, 136, 0.5);\n}\n\n.SearchBar-module_inputContainer--default__82CUU {\n padding: 12px 16px;\n background: var(--surface-surface-1);\n}\n\n.SearchBar-module_inputContainer--chat__fXYm9 {\n padding: 6px 12px;\n background: var(--surface-surface-white-nonconvert);\n}\n\n.SearchBar-module_input__eZosz::placeholder {\n color: var(--text-disabled-color);\n}\n\n.SearchBar-module_iconWrapper__VHJrg {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.SearchBar-module_inputContainer--modal__5Ayyp .SearchBar-module_iconWrapper__VHJrg,\n.SearchBar-module_inputContainer--default__82CUU .SearchBar-module_iconWrapper__VHJrg,\n.SearchBar-module_inputContainer--modal__5Ayyp .SearchBar-module_clearIcon__tlykn,\n.SearchBar-module_inputContainer--default__82CUU .SearchBar-module_clearIcon__tlykn {\n height: 20px;\n width: 20px;\n}\n\n.SearchBar-module_inputContainer--chat__fXYm9 .SearchBar-module_iconWrapper__VHJrg,\n.SearchBar-module_inputContainer--chat__fXYm9 .SearchBar-module_clearIcon__tlykn {\n height: 16px;\n width: 16px;\n}\n\n.SearchBar-module_inputContainer--modal__5Ayyp input,\n.SearchBar-module_inputContainer--default__82CUU input {\n height: 24px;\n}\n\n.SearchBar-module_inputContainer--chat__fXYm9 input {\n height: 20px;\n}\n\n.SearchBar-module_input__eZosz {\n outline: none;\n border: none;\n width: 100%;\n background: transparent;\n}\n\n.SearchBar-module_input__eZosz:focus {\n caret-color: var(--default-primary-accent);\n}\n\nbutton {\n background: transparent;\n margin: 0;\n padding: 0;\n border: none;\n cursor: pointer;\n line-height: 0;\n}\n";
|
|
2
|
+
var styles = {"searchLayout":"SearchBar-module_searchLayout__VCBFD","searchIcon":"SearchBar-module_searchIcon__w5c7b","clearIcon":"SearchBar-module_clearIcon__tlykn","loadingIcon":"SearchBar-module_loadingIcon__v-WG9","loading":"SearchBar-module_loading__qptyx","inputContainer":"SearchBar-module_inputContainer__jvbxZ","inputContainer--modal":"SearchBar-module_inputContainer--modal__5Ayyp","inputContainer--default":"SearchBar-module_inputContainer--default__82CUU","inputContainer--chat":"SearchBar-module_inputContainer--chat__fXYm9","input":"SearchBar-module_input__eZosz","iconWrapper":"SearchBar-module_iconWrapper__VHJrg"};
|
|
3
|
+
function styleInject(css, options) {
|
|
4
|
+
if (typeof document === 'undefined') return;
|
|
5
|
+
const head = document.head || document.getElementsByTagName('head')[0];
|
|
6
|
+
const style = document.createElement('style');
|
|
7
|
+
style.type = 'text/css';
|
|
8
|
+
if (style.styleSheet) {
|
|
9
|
+
style.styleSheet.cssText = css;
|
|
10
|
+
} else {
|
|
11
|
+
style.appendChild(document.createTextNode(css));
|
|
12
|
+
}
|
|
13
|
+
head.appendChild(style);
|
|
14
|
+
}
|
|
15
|
+
styleInject(css_248z);
|
|
16
|
+
|
|
17
|
+
export { styles as default };
|
|
18
|
+
//# sourceMappingURL=SearchBar.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchBar.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { Icons } from '@egov3/graphics';
|
|
3
|
+
import { useState, useRef, useCallback } from 'react';
|
|
4
|
+
import { i18n } from '../../constants/i18n/index.js';
|
|
5
|
+
import { joinClasses } from '../../utils/joinClasses.js';
|
|
6
|
+
import typography from '../../styles/typography.module.css.js';
|
|
7
|
+
import styles from './SearchBar.module.css.js';
|
|
8
|
+
|
|
9
|
+
const langDic = i18n.MsgSearch;
|
|
10
|
+
const SearchBar = ({ lang, handleModalOpen, handleOnEnter, variant = "default", loading = false, disabled = false, defaultValue = "", showClearButton = true, }) => {
|
|
11
|
+
const [value, setValue] = useState(defaultValue);
|
|
12
|
+
const inputRef = useRef(null);
|
|
13
|
+
const handleKeyDown = useCallback((event) => {
|
|
14
|
+
if (disabled || loading)
|
|
15
|
+
return;
|
|
16
|
+
if (event.key === "Enter") {
|
|
17
|
+
event.preventDefault();
|
|
18
|
+
if (handleOnEnter && value.trim()) {
|
|
19
|
+
handleOnEnter(value.trim());
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, [disabled, loading, handleOnEnter, value]);
|
|
23
|
+
const handleClear = useCallback(() => {
|
|
24
|
+
if (disabled || loading)
|
|
25
|
+
return;
|
|
26
|
+
setValue("");
|
|
27
|
+
if (handleOnEnter) {
|
|
28
|
+
handleOnEnter("");
|
|
29
|
+
}
|
|
30
|
+
inputRef.current?.focus();
|
|
31
|
+
}, [disabled, loading, handleOnEnter]);
|
|
32
|
+
const handleInputClick = useCallback((event) => {
|
|
33
|
+
if (variant === "modal") {
|
|
34
|
+
event.stopPropagation();
|
|
35
|
+
if (handleModalOpen && !disabled) {
|
|
36
|
+
handleModalOpen();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, [variant, handleModalOpen, disabled]);
|
|
40
|
+
const inputContainerClasses = joinClasses(styles.inputContainer, styles[`inputContainer--${variant}`]);
|
|
41
|
+
const inputClasses = joinClasses(styles.input, variant === "chat" ? typography.body2Regular : typography.body1Regular);
|
|
42
|
+
return (jsx("div", { "data-testid": "SearchBar_WRAPPER", className: styles.searchLayout, "data-variant": variant, "data-loading": loading, "data-disabled": disabled, children: jsxs("div", { "data-testid": "SearchBar_INPUT_CONTAINER_WRAPPER", className: inputContainerClasses, children: [jsx("div", { className: styles.iconWrapper, children: loading ? (jsx(Icons.General.Loader, { className: styles.loadingIcon, "data-testid": "SearchBar_LOADING_ICON" })) : (jsx(Icons.General.Search, { className: styles.searchIcon, "data-testid": "SearchBar_SEARCH_ICON" })) }), jsx("input", { ref: inputRef, "data-testid": "SearchBar_INPUT", value: value, onChange: (e) => setValue(e.target.value), disabled: disabled, readOnly: variant === "modal", "aria-label": langDic.MsgSearchInputPlaceHolder[lang], placeholder: langDic.MsgSearchInputPlaceHolder[lang], onClick: handleInputClick, onKeyDown: variant === "modal" ? undefined : handleKeyDown, className: inputClasses }), showClearButton && value.length > 0 && variant !== "modal" && (jsx("button", { "data-testid": "SearchBar_CLEAR_BUTTON", type: "button", onClick: handleClear, className: styles.clearButton, "aria-label": "Clear search", disabled: disabled, children: jsx(Icons.General.Clear, { className: styles.clearIcon, "data-testid": "SearchBar_CLEAR_ICON" }) }))] }) }));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { SearchBar };
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/baseComponents/SearchBar/index.tsx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CAAC,KAAK,CAAC,EACzC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,OAAO,KAAK,OAAO,EAAA,YAAA,EACjB,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,EACnD,WAAW,EAAE,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,EACpD,OAAO,EAAE,gBAAgB,EACzB,SAAS,EAAE,OAAO,KAAK,OAAO,GAAG,SAAS,GAAG,aAAa,EAC1D,SAAS,EAAE,YAAY,GACvB,EACD,eAAe,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,KAAK,OAAO,KACzDA,GAAA,CAAA,QAAA,EAAA,EAAA,aAAA,EACc,wBAAwB,EACpC,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,MAAM,CAAC,WAAW,EAAA,YAAA,EAClB,cAAc,EACzB,QAAQ,EAAE,QAAQ,EAAA,QAAA,EAElBA,GAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAA,EAClB,SAAS,EAAE,MAAM,CAAC,SAAS,EAAA,aAAA,EACf,sBAAsB,EAAA,CAClC,GACK,CACV,CAAA,EAAA,CACG,EAAA,CACF;AAEV;;;;"}
|
|
@@ -9,6 +9,7 @@ import { Modal } from './Modal/index.js';
|
|
|
9
9
|
import { Overlay } from './Overlay/index.js';
|
|
10
10
|
import { RadioGroup, CustomRadioButton } from './RadioGroup/index.js';
|
|
11
11
|
import { RadioToggle } from './RadioToggle/index.js';
|
|
12
|
+
import { SearchBar } from './SearchBar/index.js';
|
|
12
13
|
import { SelectBoxButton } from './SelectBoxButton/index.js';
|
|
13
14
|
import { StatusText } from './StatusText/index.js';
|
|
14
15
|
import { TabButtons } from './TabButtons/index.js';
|
|
@@ -25,15 +26,16 @@ const BaseComponents = {
|
|
|
25
26
|
Label,
|
|
26
27
|
Loader,
|
|
27
28
|
Modal,
|
|
29
|
+
Overlay,
|
|
28
30
|
RadioGroup,
|
|
29
31
|
RadioToggle,
|
|
32
|
+
SearchBar,
|
|
30
33
|
SelectBoxButton,
|
|
31
|
-
|
|
34
|
+
StatusText,
|
|
35
|
+
TabButtons,
|
|
32
36
|
TextareaField,
|
|
33
37
|
TextPair,
|
|
34
|
-
|
|
35
|
-
StatusText,
|
|
36
|
-
Overlay,
|
|
38
|
+
Typography,
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
export { BaseComponents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/baseComponents/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/baseComponents/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAoBO,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,MAAM;IACN,iBAAiB;IACjB,UAAU;IACV,eAAe;IACf,KAAK;IACL,MAAM;IACN,KAAK;IACL,OAAO;IACP,UAAU;IACV,WAAW;IACX,SAAS;IACT,eAAe;IACf,UAAU;IACV,UAAU;IACV,aAAa;IACb,QAAQ;IACR,UAAU;;;;;"}
|
|
@@ -8,7 +8,7 @@ const ErrorModal = ({ status, message, lang, open, onClose, onAuthAction, }) =>
|
|
|
8
8
|
const isAuthError = status === 401;
|
|
9
9
|
const langDic = i18n.ErrorModal;
|
|
10
10
|
const langDicMsg = message ?? (isAuthError ? langDic.NotAuthorizedMessage[lang] : "");
|
|
11
|
-
return (jsx(BaseComponents.Modal, { open: open, setOpen: onClose, variant: "small", lang: lang, 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(Icons.Logo.Egov, { 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(Icons.General.Close, { width: "16px", height: "16px" }) })] }), jsxs("div", { className: styles.bodyWrapper, "data-testid": "ErrorModal_BODY", children: [isAuthError ? (jsx(Graphics.Illustrations.Verification, { "data-testid": "ErrorModal_ICON_AUTH" })) : (jsx(Graphics.Illustrations.InternetNotAvailable, { "data-testid": "ErrorModal_ICON_COMMON" })), jsx(BaseComponents.Typography, { tag: "span", fontClass: "heading3", "data-testid": "ErrorModal_TITLE", "aria-label": langDic.Title[lang], children: langDic.Title[lang] }), langDicMsg.length > 0 && (jsx(BaseComponents.Typography, { tag: "span", fontClass: "body2Regular", className: styles.message, "data-testid": "ErrorModal_MESSAGE", "aria-label": langDicMsg, children: langDicMsg })), isAuthError && onAuthAction && (jsx(BaseComponents.Button, { className: styles.actionBtn, size: "large", "data-testid": "ErrorModal_AUTH_BTN", "aria-label": langDic.AuthButton[lang], onClick: onAuthAction, children: langDic.AuthButton[lang] }))] })] }) }));
|
|
11
|
+
return (jsx(BaseComponents.Modal, { open: open, setOpen: 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(Icons.Logo.Egov, { 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(Icons.General.Close, { width: "16px", height: "16px" }) })] }), jsxs("div", { className: styles.bodyWrapper, "data-testid": "ErrorModal_BODY", children: [isAuthError ? (jsx(Graphics.Illustrations.Verification, { "data-testid": "ErrorModal_ICON_AUTH" })) : (jsx(Graphics.Illustrations.InternetNotAvailable, { "data-testid": "ErrorModal_ICON_COMMON" })), jsx(BaseComponents.Typography, { tag: "span", fontClass: "heading3", "data-testid": "ErrorModal_TITLE", "aria-label": langDic.Title[lang], children: langDic.Title[lang] }), langDicMsg.length > 0 && (jsx(BaseComponents.Typography, { tag: "span", fontClass: "body2Regular", className: styles.message, "data-testid": "ErrorModal_MESSAGE", "aria-label": langDicMsg, children: langDicMsg })), isAuthError && onAuthAction && (jsx(BaseComponents.Button, { className: styles.actionBtn, size: "large", "data-testid": "ErrorModal_AUTH_BTN", "aria-label": langDic.AuthButton[lang], onClick: onAuthAction, children: langDic.AuthButton[lang] }))] })] }) }));
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { ErrorModal };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;AAcO,MAAM,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,YAAY,GACK,KAAI;AACrB,IAAA,MAAM,WAAW,GAAG,MAAM,KAAK,GAAG;AAClC,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU;IAC/B,MAAM,UAAU,GACd,OAAO,KAAK,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AAEpE,IAAA,QACEA,GAAA,CAAC,cAAc,CAAC,KAAK,EAAA,EACnB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,IAAI,EAAA,QAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/ErrorModal/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;AAcO,MAAM,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,YAAY,GACK,KAAI;AACrB,IAAA,MAAM,WAAW,G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Box__4cVfu","loginBody":"IdentityModal-module_loginBody__vctVv","langFooterWrapper":"IdentityModal-module_langFooterWrapper__g5yFN","langFooter":"IdentityModal-module_langFooter__LhZCq","langFooterNotActive":"IdentityModal-module_langFooterNotActive__VHbO3","langFooterActive":"IdentityModal-module_langFooterActive__lVLVJ"};
|
|
1
|
+
var css_248z = ".IdentityModal-module_loginBox__4cVfu {\n background-color: var(--default-white-color);\n border-radius: 16px;\n width: 400px;\n}\n\n.IdentityModal-module_loginBody__vctVv {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 32px;\n padding: 32px;\n width: calc(400px - 64px);\n}\n\n.IdentityModal-module_langFooterWrapper__g5yFN {\n padding-top: 20px;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n gap: 16px;\n align-self: stretch;\n}\n\n.IdentityModal-module_langFooter__LhZCq {\n align-items: center;\n display: flex;\n justify-content: center;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n}\n\n.IdentityModal-module_langFooterNotActive__VHbO3 {\n background: var(--page-color-background-white);\n color: var(--text-accent);\n}\n\n.IdentityModal-module_langFooterActive__lVLVJ {\n background: var(--surface-accent);\n color: var(--text-white-nonconvert-color);\n}\n\n.IdentityModal-module_overlayModalFix__k4NU- {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 32px 0px;\n overflow-y: auto;\n}\n";
|
|
2
|
+
var styles = {"loginBox":"IdentityModal-module_loginBox__4cVfu","loginBody":"IdentityModal-module_loginBody__vctVv","langFooterWrapper":"IdentityModal-module_langFooterWrapper__g5yFN","langFooter":"IdentityModal-module_langFooter__LhZCq","langFooterNotActive":"IdentityModal-module_langFooterNotActive__VHbO3","langFooterActive":"IdentityModal-module_langFooterActive__lVLVJ","overlayModalFix":"IdentityModal-module_overlayModalFix__k4NU-"};
|
|
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,
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { BaseComponents } from '../../../baseComponents/index.js';
|
|
3
3
|
import { languageList } from '../../../constants/common.js';
|
|
4
4
|
import { i18n } from '../../../constants/i18n/index.js';
|
|
@@ -12,12 +12,12 @@ const IdentityModal = ({ children, goBackService, handleLangChange, isMain, lang
|
|
|
12
12
|
primary: { owner: "IdentityModal", route: "/" },
|
|
13
13
|
secondary: { owner: "IdentityModal", route: "/identity/main" },
|
|
14
14
|
};
|
|
15
|
-
return (jsxs(
|
|
15
|
+
return (jsxs("div", { className: styles.overlayModalFix, "data-testid": "IdentityModule_OVERLAY", children: [jsx(BaseComponents.Modal, { variant: "small", withOverlay: false, lang: "ru", header: isMain
|
|
16
16
|
? undefined
|
|
17
17
|
: {
|
|
18
18
|
goIdentityMain: navigator(goMainClosure.secondary),
|
|
19
19
|
goBackService: goBackService,
|
|
20
|
-
}, children: jsx("div", { className: styles.loginBox, "data-testid": "IdentityModule_LOGIN_BOX", children: jsxs("div", { className: styles.loginBody, "data-testid": "IdentityModule_LOGIN_BODY", children: [isMain && (jsx(IdentityHeader, { goMainPage: navigator(goMainClosure.primary), lang: lang })), 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
|
|
20
|
+
}, isContentScroll: false, children: jsx("div", { className: styles.loginBox, "data-testid": "IdentityModule_LOGIN_BOX", children: jsxs("div", { className: styles.loginBody, "data-testid": "IdentityModule_LOGIN_BODY", children: [isMain && (jsx(IdentityHeader, { goMainPage: navigator(goMainClosure.primary), lang: lang })), 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
|
|
21
21
|
? styles.langFooterActive
|
|
22
22
|
: styles.langFooterNotActive), "aria-label": langDic.LangBtnAria[lang], onClick: () => {
|
|
23
23
|
handleLangChange(langCode);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Identity/IdentityModal/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAgBO,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,MAAM,EACN,IAAI,EACJ,SAAS,GACW,KAAI;AACxB,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM;AAC3B,IAAA,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,EAAE;QAC/C,SAAS,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,gBAAgB,EAAE;KAC/D;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Identity/IdentityModal/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAgBO,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,MAAM,EACN,IAAI,EACJ,SAAS,GACW,KAAI;AACxB,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM;AAC3B,IAAA,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,EAAE;QAC/C,SAAS,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,gBAAgB,EAAE;KAC/D;AAED,IAAA,QACEA,IAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,MAAM,CAAC,eAAe,EA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AU,EAAA,EAAA,YAAA,EACZ,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,EAAA,CACH,EAAA,EAnBvB,QAAQ,CAoBN,CACV,CAAC,EAAA,CACE,CACP,CAAA,EAAA,CACG;AAEV;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var css_248z = ".MsgSearch-module_searchLayout__8bgGo {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n}\n
|
|
2
|
-
var styles = {"searchLayout":"MsgSearch-module_searchLayout__8bgGo"
|
|
1
|
+
var css_248z = ".MsgSearch-module_searchLayout__8bgGo {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n}\n";
|
|
2
|
+
var styles = {"searchLayout":"MsgSearch-module_searchLayout__8bgGo"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
5
5
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Icons } from '@egov3/graphics';
|
|
3
|
-
import { useState } from 'react';
|
|
4
2
|
import { BaseComponents } from '../../../baseComponents/index.js';
|
|
5
3
|
import { i18n } from '../../../constants/i18n/index.js';
|
|
6
4
|
import styles from './MsgSearch.module.css.js';
|
|
7
5
|
|
|
8
6
|
const langDic = i18n.MsgSearch;
|
|
9
|
-
const MsgSearch = ({ lang, handleClose,
|
|
10
|
-
|
|
11
|
-
return (jsxs("div", { "data-testid": "MsgSearch_WRAPPER", className: styles.searchLayout, children: [jsxs("div", { "data-testid": "InputContainer_WRAPPER", className: styles.inputContainer, children: [jsx(Icons.General.Search, { width: 16, height: 16, className: styles.searchIcon }), jsx("input", { "data-testid": "MsgSearch_INPUT", value: value, "aria-label": langDic.MsgSearchInputPlaceHolder[lang], placeholder: langDic.MsgSearchInputPlaceHolder[lang], onChange: (e) => {
|
|
12
|
-
setValue(e.target.value);
|
|
13
|
-
handleInputChange(e.target.value);
|
|
14
|
-
}, className: styles.input }), value && (jsx(Icons.General.Clear, { width: 16, height: 16, className: styles.clearIcon, onClick: () => {
|
|
15
|
-
setValue("");
|
|
16
|
-
handleInputChange("");
|
|
17
|
-
} }))] }), jsx(BaseComponents.Button, { "data-testid": "MsgSearch_CLOSE", "aria-label": langDic.MsgSearchButton[lang], size: "small", variant: "tinted", onClick: handleClose, children: langDic.MsgSearchButton[lang] })] }));
|
|
7
|
+
const MsgSearch = ({ lang, handleClose, handleOnEnter, }) => {
|
|
8
|
+
return (jsxs("div", { "data-testid": "MsgSearch_WRAPPER", className: styles.searchLayout, children: [jsx(BaseComponents.SearchBar, { variant: "chat", lang: lang, handleOnEnter: handleOnEnter }), jsx(BaseComponents.Button, { "data-testid": "MsgSearch_CLOSE", "aria-label": langDic.MsgSearchButton[lang], size: "small", variant: "tinted", onClick: handleClose, children: langDic.MsgSearchButton[lang] })] }));
|
|
18
9
|
};
|
|
19
10
|
|
|
20
11
|
export { MsgSearch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Messages/MsgSearch/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Messages/MsgSearch/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;AAUA,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS;AAEvB,MAAM,SAAS,GAAG,CAAC,EACxB,IAAI,EACJ,WAAW,EACX,aAAa,GACG,KAAI;AACpB,IAAA,QACEA,IAAA,CAAA,KAAA,EAAA,EAAA,aAAA,EAAiB,mBAAmB,EAAC,SAAS,EAAE,MAAM,CAAC,YAAY,EAAA,QAAA,EAAA,CACjEC,GAAA,CAAC,cAAc,CAAC,SAAS,EAAA,EACvB,OAAO,EAAC,MAAM,EACd,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,aAAa,EAAA,CAC5B,EACFA,IAAC,cAAc,CAAC,MAAM,EAAA,EAAA,aAAA,EACR,iBAAiB,EAAA,YAAA,EACjB,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EACzC,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,QAAQ,EAChB,OAAO,EAAE,WAAW,EAAA,QAAA,EAEnB,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EAAA,CACR,CAAA,EAAA,CACpB;AAEV;;;;"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { BaseComponents } from '../../../baseComponents/index.js';
|
|
4
|
+
import { i18n } from '../../../constants/i18n/index.js';
|
|
4
5
|
import styles from './DocCard.module.css.js';
|
|
5
6
|
|
|
6
|
-
const DocCard = ({ title, docIcon, expiration, children, lang, }) => {
|
|
7
|
+
const DocCard = ({ title, docIcon, expiration, children, lang, handleDownload, }) => {
|
|
7
8
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
9
|
+
const langDic = i18n.DocCard;
|
|
8
10
|
return (jsxs(Fragment, { children: [jsxs("button", { type: "button", "data-testid": "DocCard_BUTTON", onClick: () => {
|
|
9
11
|
setIsModalOpen(!isModalOpen);
|
|
10
|
-
}, className: styles.container, "aria-label": title, children: [jsx("div", { "data-testid": "DocCard_CARD", className: styles.card, children: jsx("div", { "data-testid": "DocCard_DOCUMENT", className: styles.document, children: docIcon }) }), jsxs("div", { "data-testid": "DocCard_TEXT", className: styles.text, children: [jsx(BaseComponents.Typography, { tag: "span", fontClass: "caption1Medium", "data-testid": "DocCard_TITLE", className: styles.title, children: title }), expiration && (jsx(BaseComponents.Typography, { tag: "span", "data-testid": "DocCard_EXPIRATION", className: styles.expiration, "aria-label": expiration, fontClass: "caption1Regular", children: expiration }))] })] }), isModalOpen && (jsx(BaseComponents.Modal, { open: isModalOpen, setOpen: setIsModalOpen, header: { title, isClosable: true }, variant: "small", lang: lang,
|
|
12
|
+
}, className: styles.container, "aria-label": title, children: [jsx("div", { "data-testid": "DocCard_CARD", className: styles.card, children: jsx("div", { "data-testid": "DocCard_DOCUMENT", className: styles.document, children: docIcon }) }), jsxs("div", { "data-testid": "DocCard_TEXT", className: styles.text, children: [jsx(BaseComponents.Typography, { tag: "span", fontClass: "caption1Medium", "data-testid": "DocCard_TITLE", className: styles.title, children: title }), expiration && (jsx(BaseComponents.Typography, { tag: "span", "data-testid": "DocCard_EXPIRATION", className: styles.expiration, "aria-label": expiration, fontClass: "caption1Regular", children: expiration }))] })] }), isModalOpen && (jsx(BaseComponents.Modal, { open: isModalOpen, setOpen: setIsModalOpen, header: { title, isClosable: true }, variant: "small", lang: lang, footerbuttons: [
|
|
13
|
+
{
|
|
14
|
+
text: langDic.downloadButton[lang],
|
|
15
|
+
onClick: handleDownload,
|
|
16
|
+
dataTestid: "DocDetails_BUTTON",
|
|
17
|
+
},
|
|
18
|
+
], children: children }))] }));
|
|
11
19
|
};
|
|
12
20
|
|
|
13
21
|
export { DocCard };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Profile/DocCard/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Profile/DocCard/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;AAeO,MAAM,OAAO,GAAG,CAAC,EACtB,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,cAAc,GACA,KAAI;IAClB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;AACrD,IAAA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OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,EACnC,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,IAAI,EACV,aAAa,EAAE;AACb,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC;AAClC,wBAAA,OAAO,EAAE,cAAc;AACvB,wBAAA,UAAU,EAAE,mBAAmB;AAChC,qBAAA;AACF,iBAAA,EAAA,QAAA,EAEA,QAAQ,EAAA,CACY,CACxB,CAAA,EAAA,CACA;AAEP;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var css_248z = ".SetUpAccess-module_wrap__yns2i {\n display: flex;\n padding: 16px;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n align-self: stretch;\n}\n\n.SetUpAccess-module_info__JRP1c {\n color: var(--text-secondary);\n text-align: center;\n}\n
|
|
2
|
-
var styles = {"wrap":"SetUpAccess-module_wrap__yns2i","info":"SetUpAccess-module_info__JRP1c"
|
|
1
|
+
var css_248z = ".SetUpAccess-module_wrap__yns2i {\n display: flex;\n padding: 16px;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n align-self: stretch;\n}\n\n.SetUpAccess-module_info__JRP1c {\n color: var(--text-secondary);\n text-align: center;\n}\n";
|
|
2
|
+
var styles = {"wrap":"SetUpAccess-module_wrap__yns2i","info":"SetUpAccess-module_info__JRP1c"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
5
5
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { jsxs,
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Icons } from '@egov3/graphics';
|
|
3
3
|
import { BaseComponents } from '../../../baseComponents/index.js';
|
|
4
4
|
import { i18n } from '../../../constants/i18n/index.js';
|
|
5
5
|
import { IconToggleItem } from '../IconToggleItem/index.js';
|
|
6
6
|
import styles from './SetUpAccess.module.css.js';
|
|
7
7
|
|
|
8
|
-
const SetUpAccess = ({ lock, unlock,
|
|
8
|
+
const SetUpAccess = ({ lock, unlock, lang }) => {
|
|
9
9
|
const langDic = i18n.SetUpAccess;
|
|
10
|
-
return (jsxs(
|
|
11
|
-
setClose(!close);
|
|
12
|
-
}, size: "large", "data-testid": "SetUpAccessBtn_SAVE", children: langDic.SetUpAccessBtnSave[lang] }) })] }));
|
|
10
|
+
return (jsxs("div", { "data-testid": "SetUpAccess_WRAP", className: styles.wrap, children: [jsx(IconToggleItem, { Icon: Icons.Logo.Kaspi, lock: lock, unlock: unlock, text: langDic.KaspiBank[lang] }), jsx(IconToggleItem, { Icon: Icons.Logo.Halyk, lock: lock, unlock: unlock, text: langDic.HalykBank[lang] }), jsx(BaseComponents.Typography, { tag: "span", "data-testid": "SetUpAccess_INFO", className: styles.info, "aria-label": langDic.SetUpAccessInfo[lang], fontClass: "caption1Regular", children: langDic.SetUpAccessInfo[lang] })] }));
|
|
13
11
|
};
|
|
14
12
|
|
|
15
13
|
export { SetUpAccess };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Profile/SetUpAccess/index.tsx"],"sourcesContent":[null],"names":["_jsxs","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Profile/SetUpAccess/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AAaO,MAAM,WAAW,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAqB,KAAI;AACvE,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW;IAChC,QACEA,6BAAiB,kBAAkB,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,QAAA,EAAA,CACxDC,GAAA,CAAC,cAAc,EAAA,EACb,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,EACtB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAA,CAC7B,EACFA,GAAA,CAAC,cAAc,EAAA,EACb,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,EACtB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAA,CAC7B,EACFA,GAAA,CAAC,cAAc,CAAC,UAAU,IACxB,GAAG,EAAC,MAAM,EAAA,aAAA,EACE,kBAAkB,EAC9B,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,YAAA,EACV,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EACzC,SAAS,EAAC,iBAAiB,EAAA,QAAA,EAE1B,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EAAA,CACJ,CAAA,EAAA,CACxB;AAEV;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var css_248z = ".Feedback-module_wrap__ymdNC {\n display: flex;\n flex-direction: column;\n width: 400px;\n gap: 12px;\n animation: Feedback-module_flyUp__SZXCL 1s;\n}\n\n.Feedback-module_card__B2AoJ {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n\n border-radius: 12px;\n background: var(--surface-surface-2);\n box-shadow: 0 12px 32px 0 rgba(128, 130, 136, 0.5);\n}\n\n.Feedback-module_content__eQbBZ {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 16px;\n padding: 16px;\n}\n\n.Feedback-module_icons__fgzFi {\n display: flex;\n justify-content: space-between;\n width: 100%;\n}\n\n.Feedback-module_icon__VHuCB {\n width: 48px;\n height: 48px;\n fill: var(--icon-tertiary);\n cursor: pointer;\n}\n\n.Feedback-module_text__Dd6e8 {\n color: var(--text-secondary);\n}\n\n.Feedback-module_button__sXuzg {\n margin-top: 16px;\n}\n\n@keyframes Feedback-module_flyUp__SZXCL {\n from {\n transform: translateY(1000px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}\n";
|
|
2
|
-
var styles = {"wrap":"Feedback-module_wrap__ymdNC","card":"Feedback-module_card__B2AoJ","content":"Feedback-module_content__eQbBZ","icons":"Feedback-module_icons__fgzFi","icon":"Feedback-module_icon__VHuCB","text":"Feedback-module_text__Dd6e8","button":"Feedback-module_button__sXuzg"};
|
|
1
|
+
var css_248z = ".Feedback-module_wrap__ymdNC {\n display: flex;\n flex-direction: column;\n width: 400px;\n gap: 12px;\n animation: Feedback-module_flyUp__SZXCL 1s;\n margin: auto;\n}\n\n.Feedback-module_card__B2AoJ {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n\n border-radius: 12px;\n background: var(--surface-surface-2);\n box-shadow: 0 12px 32px 0 rgba(128, 130, 136, 0.5);\n}\n\n.Feedback-module_content__eQbBZ {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 16px;\n padding: 16px;\n}\n\n.Feedback-module_icons__fgzFi {\n display: flex;\n justify-content: space-between;\n width: 100%;\n}\n\n.Feedback-module_icon__VHuCB {\n width: 48px;\n height: 48px;\n fill: var(--icon-tertiary);\n cursor: pointer;\n}\n\n.Feedback-module_text__Dd6e8 {\n color: var(--text-secondary);\n}\n\n.Feedback-module_button__sXuzg {\n margin-top: 16px;\n}\n\n@keyframes Feedback-module_flyUp__SZXCL {\n from {\n transform: translateY(1000px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n.Feedback-module_overlayModalFix__ly4nq {\n padding: 32px 0px;\n overflow-y: scroll;\n align-items: flex-start;\n}\n";
|
|
2
|
+
var styles = {"wrap":"Feedback-module_wrap__ymdNC","card":"Feedback-module_card__B2AoJ","content":"Feedback-module_content__eQbBZ","icons":"Feedback-module_icons__fgzFi","icon":"Feedback-module_icon__VHuCB","text":"Feedback-module_text__Dd6e8","button":"Feedback-module_button__sXuzg","overlayModalFix":"Feedback-module_overlayModalFix__ly4nq"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
5
5
|
const head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -24,7 +24,7 @@ const Feedback = ({ onAction, value, onChange, lang, rating, setRating, setOpen,
|
|
|
24
24
|
const handleEmojiClick = (emojiRating) => {
|
|
25
25
|
setRating(emojiRating);
|
|
26
26
|
};
|
|
27
|
-
return (jsx(BaseComponents.Overlay, { children: jsxs("div", { "data-testid": "Feedback_WRAP", className: styles.wrap, children: [jsxs("div", { "data-testid": "Feedback_WRAP_RATING", className: styles.card, children: [jsx(BaseComponents.Label, { variant: "big", isSpaced: true, text: langDic.TitleRating[lang], Icon: Icons.General.Close, onAction: () => {
|
|
27
|
+
return (jsx(BaseComponents.Overlay, { className: styles.overlayModalFix, children: jsxs("div", { "data-testid": "Feedback_WRAP", className: styles.wrap, children: [jsxs("div", { "data-testid": "Feedback_WRAP_RATING", className: styles.card, children: [jsx(BaseComponents.Label, { variant: "big", isSpaced: true, text: langDic.TitleRating[lang], Icon: Icons.General.Close, onAction: () => {
|
|
28
28
|
setOpen(false);
|
|
29
29
|
} }), jsxs("div", { "data-testid": "Feedback_RATING_CONTENT", className: styles.content, children: [jsxs("div", { "data-testid": "Feedback_ICONS", className: styles.icons, children: [jsx(Icons.Emoji.Angry, { className: styles.icon, fill: getEmojiColor(1), "data-color": getEmojiColor(1), "aria-label": langDic.AngryEmoji[lang], onClick: () => {
|
|
30
30
|
handleEmojiClick(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/Feedback/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;MAgBa,QAAQ,GAAG,CAAC,EACvB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,OAAO,GACQ,KAAI;AACnB,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ;AAE7B,IAAA,MAAM,aAAa,GAAG,CAAC,WAAmB,KAAI;QAC5C,IAAI,MAAM,KAAK,WAAW;AAAE,YAAA,OAAO,sBAAsB;AAEzD,QAAA,QAAQ,WAAW;AACjB,YAAA,KAAK,CAAC;AACJ,gBAAA,OAAO,yBAAyB;AAClC,YAAA,KAAK,CAAC;AACJ,gBAAA,OAAO,2BAA2B;AACpC,YAAA,KAAK,CAAC;AACJ,gBAAA,OAAO,0BAA0B;AACnC,YAAA,KAAK,CAAC;AACN,YAAA,KAAK,CAAC;AACJ,gBAAA,OAAO,qBAAqB;AAC/B;AACH,IAAA,CAAC;AAED,IAAA,MAAM,gBAAgB,GAAG,CAAC,WAAmB,KAAI;QAC/C,SAAS,CAAC,WAAW,CAAC;AACxB,IAAA,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/Services/Feedback/index.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":";;;;;;MAgBa,QAAQ,GAAG,CAAC,EACvB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,OAAO,GACQ,KAAI;AACnB,IAAA,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ;AAE7B,IAAA,MAAM,aAAa,GAAG,CAAC,WAAmB,KAAI;QAC5C,IAAI,MAAM,KAAK,WAAW;AAAE,YAAA,OAAO,sBAAsB;AAEzD,QAAA,QAAQ,WAAW;AACjB,YAAA,KAAK,CAAC;AACJ,gBAAA,OAAO,yBAAyB;AAClC,YAAA,KAAK,CAAC;AACJ,gBAAA,OAAO,2BAA2B;AACpC,YAAA,KAAK,CAAC;AACJ,gBAAA,OAAO,0BAA0B;AACnC,YAAA,KAAK,CAAC;AACN,YAAA,KAAK,CAAC;AACJ,gBAAA,OAAO,qBAAqB;AAC/B;AACH,IAAA,CAAC;AAED,IAAA,MAAM,gBAAgB,GAAG,CAAC,WAAmB,KAAI;QAC/C,SAAS,CAAC,WAAW,CAAC;AACxB,I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;AACrB,IAAA,cAAc,EAAE;AACd,QAAA,EAAE,EAAE,SAAS;AACb,QAAA,EAAE,EAAE,QAAQ;AACZ,QAAA,EAAE,EAAE,UAAU;AACf,KAAA;;;;;"}
|
|
@@ -13,13 +13,7 @@ const SetUpAccess = {
|
|
|
13
13
|
ru: "Ваши документы доступны в сервисах Kaspi и Halyk. Включение или отключение доступа к вашим данным применяется ко всем видам документов.",
|
|
14
14
|
kk: "Сіздің құжаттарыңыз Kaspi және Halyk қызметтерінде қолжетімді. Деректеріңізге қолжетімділікті қосу немесе өшіру барлық құжат түрлеріне әсер етеді.",
|
|
15
15
|
en: "Your documents are available in the Kaspi and Halyk services. Enabling or disabling access to your data applies to all types of documents.",
|
|
16
|
-
}
|
|
17
|
-
SetUpAccessBtnSave: {
|
|
18
|
-
ru: "Сохранить",
|
|
19
|
-
kk: "Сақтау",
|
|
20
|
-
en: "Save",
|
|
21
|
-
},
|
|
22
|
-
};
|
|
16
|
+
}};
|
|
23
17
|
|
|
24
18
|
export { SetUpAccess };
|
|
25
19
|
//# sourceMappingURL=SetUpAccess.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetUpAccess.js","sources":["../../../../../src/constants/i18n/Profile/SetUpAccess.tsx"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;AACzB,IAAA,SAAS,EAAE;AACT,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,EAAE,EAAE,YAAY;AACjB,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,EAAE,EAAE,YAAY;AACjB,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,EAAE,EAAE,yIAAyI;AAC7I,QAAA,EAAE,EAAE,oJAAoJ;AACxJ,QAAA,EAAE,EAAE,4IAA4I;AACjJ
|
|
1
|
+
{"version":3,"file":"SetUpAccess.js","sources":["../../../../../src/constants/i18n/Profile/SetUpAccess.tsx"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;AACzB,IAAA,SAAS,EAAE;AACT,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,EAAE,EAAE,YAAY;AACjB,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,EAAE,EAAE,YAAY;AAChB,QAAA,EAAE,EAAE,YAAY;AACjB,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,EAAE,EAAE,yIAAyI;AAC7I,QAAA,EAAE,EAAE,oJAAoJ;AACxJ,QAAA,EAAE,EAAE,4IAA4I;AACjJ;;;;"}
|
|
@@ -10,6 +10,7 @@ import { MsgBody } from './Messages/MsgBody.js';
|
|
|
10
10
|
import { MsgComponentHeader } from './Messages/MsgComponentHeader.js';
|
|
11
11
|
import { MsgSearch } from './Messages/MsgSearch.js';
|
|
12
12
|
import { Modal } from './Modal.js';
|
|
13
|
+
import { DocCard } from './Profile/DocCard.js';
|
|
13
14
|
import { ProfileHealthGeneral } from './Profile/ProfileHealthGeneral.js';
|
|
14
15
|
import { SetUpAccess } from './Profile/SetUpAccess.js';
|
|
15
16
|
import { SelectBoxButton } from './SelectBoxButton.js';
|
|
@@ -18,6 +19,7 @@ import { FileUpload } from './Services/FileUpload.js';
|
|
|
18
19
|
|
|
19
20
|
const i18n = {
|
|
20
21
|
Common,
|
|
22
|
+
DocCard,
|
|
21
23
|
Feedback,
|
|
22
24
|
Modal,
|
|
23
25
|
IdentityHeader,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/constants/i18n/index.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAmBO,MAAM,IAAI,GAAG;IAClB,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;IACL,cAAc;IACd,eAAe;IACf,UAAU;IACV,WAAW;IACX,oBAAoB;IACpB,UAAU;IACV,IAAI;IACJ,SAAS;IACT,oBAAoB;IACpB,SAAS;IACT,OAAO;IACP,aAAa;IACb,kBAAkB;IAClB,UAAU;;;;;"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React__default, { Dispatch } from 'react';
|
|
2
2
|
import { ILangProps } from '../../interfaces/common/index.js';
|
|
3
3
|
|
|
4
|
+
interface IFooterbuttonsItem {
|
|
5
|
+
text: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
dataTestid?: string;
|
|
9
|
+
}
|
|
4
10
|
interface IModalProps extends ILangProps {
|
|
5
11
|
children: React__default.ReactNode;
|
|
6
12
|
header?: {
|
|
@@ -13,6 +19,8 @@ interface IModalProps extends ILangProps {
|
|
|
13
19
|
setOpen?: Dispatch<React__default.SetStateAction<boolean>>;
|
|
14
20
|
variant: "large" | "small";
|
|
15
21
|
withOverlay?: boolean;
|
|
22
|
+
footerbuttons?: IFooterbuttonsItem[];
|
|
23
|
+
isContentScroll?: boolean;
|
|
16
24
|
}
|
|
17
25
|
|
|
18
|
-
export type { IModalProps };
|
|
26
|
+
export type { IFooterbuttonsItem, IModalProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ILangProps } from '../../interfaces/common/index.js';
|
|
2
|
+
|
|
3
|
+
interface ISearchBarProps extends ILangProps {
|
|
4
|
+
handleModalOpen?: () => void;
|
|
5
|
+
handleOnEnter?: (value: string) => void;
|
|
6
|
+
variant?: "modal" | "chat" | "default";
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
showClearButton?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type { ISearchBarProps };
|
|
@@ -2,7 +2,7 @@ import { ILangProps } from '../../../interfaces/common/index.js';
|
|
|
2
2
|
|
|
3
3
|
interface IMsgSearchProps extends ILangProps {
|
|
4
4
|
handleClose: () => void;
|
|
5
|
-
|
|
5
|
+
handleOnEnter: (value: string) => void;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export type { IMsgSearchProps };
|
|
@@ -4,8 +4,6 @@ import { ILangProps } from '../../../interfaces/common/index.js';
|
|
|
4
4
|
interface ISetUpAccessProps extends ILangProps {
|
|
5
5
|
lock: boolean;
|
|
6
6
|
unlock: Dispatch<SetStateAction<boolean>>;
|
|
7
|
-
setClose: Dispatch<SetStateAction<boolean>>;
|
|
8
|
-
close: boolean;
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
export type { ISetUpAccessProps };
|