@egov3/system-design 1.3.247 → 1.3.249
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/HtmlContainer/HtmlContainer.module.css.js +1 -1
- package/dist/cjs/components/UploadFile/index.js +3 -2
- package/dist/cjs/components/UploadFile/index.js.map +1 -1
- package/dist/esm/baseComponents/HtmlContainer/HtmlContainer.module.css.js +1 -1
- package/dist/esm/components/UploadFile/index.js +3 -2
- package/dist/esm/components/UploadFile/index.js.map +1 -1
- package/dist/types/components/UploadFile/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var css_248z = ".HtmlContainer-module_wrapper__gTqJh {\n font-family: \"Inter\", sans-serif;\n color: var(--text-primary);\n max-width: 100%;\n max-height: 100%;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar {\n width:
|
|
5
|
+
var css_248z = ".HtmlContainer-module_wrapper__gTqJh {\n font-family: \"Inter\", sans-serif;\n color: var(--text-primary);\n max-width: 100%;\n max-height: 100%;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar {\n width: 16px;\n height: 20px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-track {\n background-color: var(--surface-surface-3);\n background-clip: padding-box;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-thumb {\n background-color: var(--icon-secondary-color);\n background-clip: padding-box;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-track:vertical,\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-thumb:vertical {\n border-inline-start: 12px solid transparent;\n border-start-start-radius: 16px 2px;\n border-end-start-radius: 16px 2px;\n border-start-end-radius: 2px;\n border-end-end-radius: 2px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-track:horizontal,\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-thumb:horizontal {\n border-block-start: 16px solid transparent;\n border-start-start-radius: 2px 18px;\n border-start-end-radius: 2px 18px;\n border-end-start-radius: 2px;\n border-end-end-radius: 2px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-corner {\n background: transparent;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-button {\n display: none;\n}\n\n.HtmlContainer-module_wrapper__gTqJh > :last-child {\n margin-bottom: 0;\n}\n\n.HtmlContainer-module_wrapper__gTqJh h1 {\n margin-bottom: 16px;\n font-size: 32px;\n font-weight: 600;\n line-height: 36px;\n letter-spacing: -0.32px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh h2 {\n margin-bottom: 12px;\n font-size: 28px;\n font-weight: 600;\n line-height: 32px;\n letter-spacing: -0.28px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh h3 {\n margin-bottom: 8px;\n font-size: 24px;\n font-weight: 600;\n line-height: 28px;\n letter-spacing: -0.24px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh p,\n.HtmlContainer-module_wrapper__gTqJh li,\n.HtmlContainer-module_wrapper__gTqJh a,\n.HtmlContainer-module_wrapper__gTqJh blockquote {\n font-size: 16px;\n font-weight: 400;\n line-height: 20px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh p,\n.HtmlContainer-module_wrapper__gTqJh ul,\n.HtmlContainer-module_wrapper__gTqJh ol,\n.HtmlContainer-module_wrapper__gTqJh blockquote {\n margin-bottom: 16px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh strong,\n.HtmlContainer-module_wrapper__gTqJh b {\n font-weight: 600;\n}\n\n.HtmlContainer-module_wrapper__gTqJh small {\n font-size: 14px;\n font-weight: 400;\n line-height: 18px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh ul,\n.HtmlContainer-module_wrapper__gTqJh ol {\n padding-inline-start: 1.5em;\n}\n";
|
|
6
6
|
var styles = {"wrapper":"HtmlContainer-module_wrapper__gTqJh"};
|
|
7
7
|
function styleInject(css, options) {
|
|
8
8
|
if (typeof document === 'undefined') return;
|
|
@@ -12,7 +12,8 @@ const UploadFile = ({ files, label, lang, accept, isMultiple = false, isDisabled
|
|
|
12
12
|
const inputRef = React.useRef(null);
|
|
13
13
|
const [selecting, setSelecting] = React.useState(false);
|
|
14
14
|
const isDisabledValue = isDisabled || isLoading || selecting;
|
|
15
|
-
const
|
|
15
|
+
const uploadedFiles = Array.isArray(files) ? files : [files];
|
|
16
|
+
const canShowAddButton = isMultiple || uploadedFiles.length === 0;
|
|
16
17
|
const handleChange = async (event) => {
|
|
17
18
|
const selectedFiles = Array.from(event.currentTarget.files ?? []);
|
|
18
19
|
event.currentTarget.value = "";
|
|
@@ -26,7 +27,7 @@ const UploadFile = ({ files, label, lang, accept, isMultiple = false, isDisabled
|
|
|
26
27
|
setSelecting(false);
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
|
-
return (jsxRuntime.jsxs("div", { className: UploadFile_module.default.wrapper, "data-testid": "UPLOAD_FILE_WRAPPER", children: [
|
|
30
|
+
return (jsxRuntime.jsxs("div", { className: UploadFile_module.default.wrapper, "data-testid": "UPLOAD_FILE_WRAPPER", children: [uploadedFiles.length > 0 && (jsxRuntime.jsx("div", { className: UploadFile_module.default.fileList, "data-testid": "UPLOAD_FILE_LIST", children: uploadedFiles.map((file) => (jsxRuntime.jsx(index.FileForUpload, { lang: lang, uploadingFile: file, handleRemoveFile: () => {
|
|
30
31
|
if (!isDisabledValue)
|
|
31
32
|
onRemove(file.id, file.fileId);
|
|
32
33
|
} }, file.id))) })), canShowAddButton && (jsxRuntime.jsxs(index$1.Button, { type: "button", "data-testid": "UPLOAD_BUTTON_FILE", size: "small", variant: "tinted", disabled: isDisabledValue, onClick: () => inputRef.current?.click(), "aria-label": label, children: [jsxRuntime.jsx(AttachFileAdd.AttachFileAddIcon, { "data-testid": "ATTACH_FILE_ICON", width: 20, height: 20, fill: "var(--icon-accent-color)", "aria-hidden": "true" }), jsxRuntime.jsx(index$2.Typography, { "data-testid": "UPLOAD_BUTTON_LABEL", tag: "span", fontClass: "body2Medium", children: label })] })), jsxRuntime.jsx("input", { ref: inputRef, type: "file", accept: accept, multiple: isMultiple, disabled: isDisabledValue || !canShowAddButton, onChange: handleChange, className: UploadFile_module.default.fileInput })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/UploadFile/index.tsx"],"sourcesContent":[null],"names":["useRef","useState","_jsxs","styles","_jsx","FileForUpload","Button","AttachFileAddIcon","Typography"],"mappings":";;;;;;;;;;AAsBO,MAAM,UAAU,GAAG,CAAC,EACzB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,MAAM,EACN,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/UploadFile/index.tsx"],"sourcesContent":[null],"names":["useRef","useState","_jsxs","styles","_jsx","FileForUpload","Button","AttachFileAddIcon","Typography"],"mappings":";;;;;;;;;;AAsBO,MAAM,UAAU,GAAG,CAAC,EACzB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,MAAM,EACN,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,QAAQ,EACR,QAAQ,GACS,KAAI;AACrB,IAAA,MAAM,QAAQ,GAAGA,YAAM,CAAmB,IAAI,CAAC;IAC/C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAGC,cAAQ,CAAC,KAAK,CAAC;AACjD,IAAA,MAAM,eAAe,GAAG,UAAU,IAAI,SAAS,IAAI,SAAS;AAC5D,IAAA,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GA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B,EAChC,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,QAAQ,EAChB,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,MAAM,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,EAAA,YAAA,EAC5B,KAAK,EAAA,QAAA,EAAA,CAEjBF,cAAA,CAACG,+BAAiB,EAAA,EAAA,aAAA,EACJ,kBAAkB,EAC9B,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,IAAI,EAAC,0BAA0B,EAAA,aAAA,EACnB,MAAM,EAAA,CAClB,EACFH,cAAA,CAACI,kBAAU,EAAA,EAAA,aAAA,EACG,qBAAqB,EACjC,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,aAAa,EAAA,QAAA,EAEtB,KAAK,EAAA,CACK,CAAA,EAAA,CACN,CACV,EACDJ,cAAA,CAAA,OAAA,EAAA,EACE,GAAG,EAAE,QAAQ,EACb,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,eAAe,IAAI,CAAC,gBAAgB,EAC9C,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAED,yBAAM,CAAC,SAAS,EAAA,CAC3B,CAAA,EAAA,CACE;AAEV;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var css_248z = ".HtmlContainer-module_wrapper__gTqJh {\n font-family: \"Inter\", sans-serif;\n color: var(--text-primary);\n max-width: 100%;\n max-height: 100%;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar {\n width:
|
|
1
|
+
var css_248z = ".HtmlContainer-module_wrapper__gTqJh {\n font-family: \"Inter\", sans-serif;\n color: var(--text-primary);\n max-width: 100%;\n max-height: 100%;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar {\n width: 16px;\n height: 20px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-track {\n background-color: var(--surface-surface-3);\n background-clip: padding-box;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-thumb {\n background-color: var(--icon-secondary-color);\n background-clip: padding-box;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-track:vertical,\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-thumb:vertical {\n border-inline-start: 12px solid transparent;\n border-start-start-radius: 16px 2px;\n border-end-start-radius: 16px 2px;\n border-start-end-radius: 2px;\n border-end-end-radius: 2px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-track:horizontal,\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-thumb:horizontal {\n border-block-start: 16px solid transparent;\n border-start-start-radius: 2px 18px;\n border-start-end-radius: 2px 18px;\n border-end-start-radius: 2px;\n border-end-end-radius: 2px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-corner {\n background: transparent;\n}\n\n.HtmlContainer-module_wrapper__gTqJh::-webkit-scrollbar-button {\n display: none;\n}\n\n.HtmlContainer-module_wrapper__gTqJh > :last-child {\n margin-bottom: 0;\n}\n\n.HtmlContainer-module_wrapper__gTqJh h1 {\n margin-bottom: 16px;\n font-size: 32px;\n font-weight: 600;\n line-height: 36px;\n letter-spacing: -0.32px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh h2 {\n margin-bottom: 12px;\n font-size: 28px;\n font-weight: 600;\n line-height: 32px;\n letter-spacing: -0.28px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh h3 {\n margin-bottom: 8px;\n font-size: 24px;\n font-weight: 600;\n line-height: 28px;\n letter-spacing: -0.24px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh p,\n.HtmlContainer-module_wrapper__gTqJh li,\n.HtmlContainer-module_wrapper__gTqJh a,\n.HtmlContainer-module_wrapper__gTqJh blockquote {\n font-size: 16px;\n font-weight: 400;\n line-height: 20px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh p,\n.HtmlContainer-module_wrapper__gTqJh ul,\n.HtmlContainer-module_wrapper__gTqJh ol,\n.HtmlContainer-module_wrapper__gTqJh blockquote {\n margin-bottom: 16px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh strong,\n.HtmlContainer-module_wrapper__gTqJh b {\n font-weight: 600;\n}\n\n.HtmlContainer-module_wrapper__gTqJh small {\n font-size: 14px;\n font-weight: 400;\n line-height: 18px;\n}\n\n.HtmlContainer-module_wrapper__gTqJh ul,\n.HtmlContainer-module_wrapper__gTqJh ol {\n padding-inline-start: 1.5em;\n}\n";
|
|
2
2
|
var styles = {"wrapper":"HtmlContainer-module_wrapper__gTqJh"};
|
|
3
3
|
function styleInject(css, options) {
|
|
4
4
|
if (typeof document === 'undefined') return;
|
|
@@ -10,7 +10,8 @@ const UploadFile = ({ files, label, lang, accept, isMultiple = false, isDisabled
|
|
|
10
10
|
const inputRef = useRef(null);
|
|
11
11
|
const [selecting, setSelecting] = useState(false);
|
|
12
12
|
const isDisabledValue = isDisabled || isLoading || selecting;
|
|
13
|
-
const
|
|
13
|
+
const uploadedFiles = Array.isArray(files) ? files : [files];
|
|
14
|
+
const canShowAddButton = isMultiple || uploadedFiles.length === 0;
|
|
14
15
|
const handleChange = async (event) => {
|
|
15
16
|
const selectedFiles = Array.from(event.currentTarget.files ?? []);
|
|
16
17
|
event.currentTarget.value = "";
|
|
@@ -24,7 +25,7 @@ const UploadFile = ({ files, label, lang, accept, isMultiple = false, isDisabled
|
|
|
24
25
|
setSelecting(false);
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
|
-
return (jsxs("div", { className: styles.wrapper, "data-testid": "UPLOAD_FILE_WRAPPER", children: [
|
|
28
|
+
return (jsxs("div", { className: styles.wrapper, "data-testid": "UPLOAD_FILE_WRAPPER", children: [uploadedFiles.length > 0 && (jsx("div", { className: styles.fileList, "data-testid": "UPLOAD_FILE_LIST", children: uploadedFiles.map((file) => (jsx(FileForUpload, { lang: lang, uploadingFile: file, handleRemoveFile: () => {
|
|
28
29
|
if (!isDisabledValue)
|
|
29
30
|
onRemove(file.id, file.fileId);
|
|
30
31
|
} }, file.id))) })), canShowAddButton && (jsxs(Button, { type: "button", "data-testid": "UPLOAD_BUTTON_FILE", size: "small", variant: "tinted", disabled: isDisabledValue, onClick: () => inputRef.current?.click(), "aria-label": label, children: [jsx(AttachFileAddIcon, { "data-testid": "ATTACH_FILE_ICON", width: 20, height: 20, fill: "var(--icon-accent-color)", "aria-hidden": "true" }), jsx(Typography, { "data-testid": "UPLOAD_BUTTON_LABEL", tag: "span", fontClass: "body2Medium", children: label })] })), jsx("input", { ref: inputRef, type: "file", accept: accept, multiple: isMultiple, disabled: isDisabledValue || !canShowAddButton, onChange: handleChange, className: styles.fileInput })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/UploadFile/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAsBO,MAAM,UAAU,GAAG,CAAC,EACzB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,MAAM,EACN,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/UploadFile/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAsBO,MAAM,UAAU,GAAG,CAAC,EACzB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,MAAM,EACN,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,KAAK,EACjB,QAAQ,EACR,QAAQ,GACS,KAAI;AACrB,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC;IAC/C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;AACjD,IAAA,MAAM,eAAe,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CACE,CACP,EACA,gBAAgB,KACfD,IAAA,CAAC,MAAM,EAAA,EACL,IAAI,EAAC,QAAQ,EAAA,aAAA,EACD,oBAAoB,EAChC,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,QAAQ,EAChB,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,MAAM,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,EAAA,YAAA,EAC5B,KAAK,EAAA,QAAA,EAAA,CAEjBC,GAAA,CAAC,iBAAiB,EAAA,EAAA,aAAA,EACJ,kBAAkB,EAC9B,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,IAAI,EAAC,0BAA0B,EAAA,aAAA,EACnB,MAAM,EAAA,CAClB,EACFA,GAAA,CAAC,UAAU,EAAA,EAAA,aAAA,EACG,qBAAqB,EACjC,GAAG,EAAC,MAAM,EACV,SAAS,EAAC,aAAa,EAAA,QAAA,EAEtB,KAAK,EAAA,CACK,CAAA,EAAA,CACN,CACV,EACDA,GAAA,CAAA,OAAA,EAAA,EACE,GAAG,EAAE,QAAQ,EACb,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,eAAe,IAAI,CAAC,gBAAgB,EAC9C,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,MAAM,CAAC,SAAS,EAAA,CAC3B,CAAA,EAAA,CACE;AAEV;;;;"}
|
|
@@ -3,7 +3,7 @@ import { ILangGeneric } from '../../interfaces/common/index.js';
|
|
|
3
3
|
import { IUploadedFile } from '../Services/FileForUpload/index.js';
|
|
4
4
|
|
|
5
5
|
interface IUploadFileProps {
|
|
6
|
-
files: IUploadedFile[];
|
|
6
|
+
files: IUploadedFile[] | IUploadedFile;
|
|
7
7
|
label: string;
|
|
8
8
|
lang: keyof ILangGeneric<string>;
|
|
9
9
|
accept?: string;
|