period-ui 0.5.0 → 0.5.1
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/components/molecules/form/form-file-uploader/form-file-uploader.d.ts +1 -1
- package/dist/components/molecules/form/form-file-uploader/form-file-uploader.d.ts.map +1 -1
- package/dist/components/molecules/form/form-file-uploader/form-file-uploader.js +1 -1
- package/dist/components/molecules/form/form-file-uploader/form-file-uploader.js.map +1 -1
- package/dist/components/molecules/form/form-image-uploader/form-image-uploader.d.ts +1 -1
- package/dist/components/molecules/form/form-image-uploader/form-image-uploader.d.ts.map +1 -1
- package/dist/components/molecules/form/form-image-uploader/form-image-uploader.js +1 -1
- package/dist/components/molecules/form/form-image-uploader/form-image-uploader.js.map +1 -1
- package/dist/components/organisms/file-uploader/components/drop-area.d.ts.map +1 -1
- package/dist/components/organisms/file-uploader/components/drop-area.js +2 -1
- package/dist/components/organisms/file-uploader/components/drop-area.js.map +1 -1
- package/dist/components/organisms/file-uploader/components/file-input.d.ts +13 -0
- package/dist/components/organisms/file-uploader/components/file-input.d.ts.map +1 -0
- package/dist/components/organisms/file-uploader/components/file-input.js +8 -0
- package/dist/components/organisms/file-uploader/components/file-input.js.map +1 -0
- package/dist/components/organisms/file-uploader/components/index.d.ts +1 -0
- package/dist/components/organisms/file-uploader/components/index.d.ts.map +1 -1
- package/dist/components/organisms/file-uploader/components/index.js +1 -0
- package/dist/components/organisms/file-uploader/components/index.js.map +1 -1
- package/dist/components/organisms/file-uploader/components/uploaded-file.d.ts +2 -1
- package/dist/components/organisms/file-uploader/components/uploaded-file.d.ts.map +1 -1
- package/dist/components/organisms/file-uploader/components/uploaded-file.js +2 -2
- package/dist/components/organisms/file-uploader/components/uploaded-file.js.map +1 -1
- package/dist/components/organisms/file-uploader/file-uploader-styles.d.ts +1 -1
- package/dist/components/organisms/file-uploader/file-uploader-styles.d.ts.map +1 -1
- package/dist/components/organisms/file-uploader/file-uploader-styles.js +1 -0
- package/dist/components/organisms/file-uploader/file-uploader-styles.js.map +1 -1
- package/dist/components/organisms/file-uploader/file-uploader-types.d.ts +1 -2
- package/dist/components/organisms/file-uploader/file-uploader-types.d.ts.map +1 -1
- package/dist/components/organisms/file-uploader/file-uploader-types.js +0 -1
- package/dist/components/organisms/file-uploader/file-uploader-types.js.map +1 -1
- package/dist/components/organisms/file-uploader/file-uploader.d.ts +2 -1
- package/dist/components/organisms/file-uploader/file-uploader.d.ts.map +1 -1
- package/dist/components/organisms/file-uploader/file-uploader.js +8 -5
- package/dist/components/organisms/file-uploader/file-uploader.js.map +1 -1
- package/dist/components/organisms/image-uploader/components/image-preview.d.ts +2 -1
- package/dist/components/organisms/image-uploader/components/image-preview.d.ts.map +1 -1
- package/dist/components/organisms/image-uploader/components/image-preview.js +2 -2
- package/dist/components/organisms/image-uploader/components/image-preview.js.map +1 -1
- package/dist/components/organisms/image-uploader/image-uploader-styles.d.ts +1 -0
- package/dist/components/organisms/image-uploader/image-uploader-styles.d.ts.map +1 -1
- package/dist/components/organisms/image-uploader/image-uploader-styles.js +5 -1
- package/dist/components/organisms/image-uploader/image-uploader-styles.js.map +1 -1
- package/dist/components/organisms/image-uploader/image-uploader-types.d.ts +1 -2
- package/dist/components/organisms/image-uploader/image-uploader-types.d.ts.map +1 -1
- package/dist/components/organisms/image-uploader/image-uploader-types.js +0 -1
- package/dist/components/organisms/image-uploader/image-uploader-types.js.map +1 -1
- package/dist/components/organisms/image-uploader/image-uploader.d.ts +2 -1
- package/dist/components/organisms/image-uploader/image-uploader.d.ts.map +1 -1
- package/dist/components/organisms/image-uploader/image-uploader.js +8 -5
- package/dist/components/organisms/image-uploader/image-uploader.js.map +1 -1
- package/dist/index.mjs +2984 -2911
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileUploaderProps } from '../../../../components';
|
|
2
2
|
import { FormControlProps } from '../../../../containers';
|
|
3
|
-
export type FormFileUploaderProps = FormControlProps & Omit<FileUploaderProps, 'id' | 'describedBy' | 'isDisabled'> & {
|
|
3
|
+
export type FormFileUploaderProps = FormControlProps & Omit<FileUploaderProps, 'id' | 'describedBy' | 'isDisabled' | 'isError'> & {
|
|
4
4
|
formControlClassName?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function FormFileUploader({ label, helperText, errorText, optionalLabel, hideRequiredMark, containerClassName, toolTipProps, inputWidth, formName, formProps, formControlClassName, id, isRequired, isDisabled, state, onSelectFile, onDelete, ...fileUploaderProps }: FormFileUploaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-file-uploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-file-uploader/form-file-uploader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAqB,MAAM,wBAAwB,CAAC;AAC5F,OAAO,EAAe,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAClD,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,aAAa,GAAG,YAAY,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"form-file-uploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-file-uploader/form-file-uploader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAqB,MAAM,wBAAwB,CAAC;AAC5F,OAAO,EAAe,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAClD,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,aAAa,GAAG,YAAY,GAAG,SAAS,CAAC,GAAG;IACzE,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEJ,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,oBAAoB,EACpB,EAAE,EACF,UAAU,EACV,UAAU,EACV,KAAiC,EACjC,YAAY,EACZ,QAAQ,EACR,GAAG,iBAAiB,EACrB,EAAE,qBAAqB,2CAkDvB"}
|
|
@@ -19,6 +19,6 @@ function FormFileUploader({ label, helperText, errorText, optionalLabel, hideReq
|
|
|
19
19
|
void formProps.setFieldTouched(formName, true, true);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { id: id, label: label, helperText: helperText, optionalLabel: optionalLabel, hideRequiredMark: hideRequiredMark, containerClassName: containerClassName, toolTipProps: toolTipProps, inputWidth: inputWidth, formName: formName, formProps: formProps, isRequired: isRequired, isDisabled: isDisabled, errorText: errorText || formProps?.errors[formName ?? ''], className: formControlClassName, children: ({ isErrorVisible, inputId, describedBy }) => ((0, jsx_runtime_1.jsx)(components_1.FileUploader, { ...fileUploaderProps, id: inputId, describedBy: describedBy, isDisabled: isDisabled,
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { id: id, label: label, helperText: helperText, optionalLabel: optionalLabel, hideRequiredMark: hideRequiredMark, containerClassName: containerClassName, toolTipProps: toolTipProps, inputWidth: inputWidth, formName: formName, formProps: formProps, isRequired: isRequired, isDisabled: isDisabled, errorText: errorText || formProps?.errors[formName ?? ''], className: formControlClassName, children: ({ isErrorVisible, inputId, describedBy }) => ((0, jsx_runtime_1.jsx)(components_1.FileUploader, { ...fileUploaderProps, id: inputId, describedBy: describedBy, isDisabled: isDisabled, isError: isErrorVisible, state: state, onSelectFile: handleSelectFile, onDelete: handleDelete })) }));
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=form-file-uploader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-file-uploader.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-file-uploader/form-file-uploader.tsx"],"names":[],"mappings":";;AAQA,
|
|
1
|
+
{"version":3,"file":"form-file-uploader.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-file-uploader/form-file-uploader.tsx"],"names":[],"mappings":";;AAQA,4CAqEC;;AA7ED,uDAA4F;AAC5F,uDAAuE;AAOvE,SAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,oBAAoB,EACpB,EAAE,EACF,UAAU,EACV,UAAU,EACV,KAAK,GAAG,8BAAiB,CAAC,OAAO,EACjC,YAAY,EACZ,QAAQ,EACR,GAAG,iBAAiB,EACE;IACtB,SAAS,gBAAgB,CAAC,IAAU;QAClC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;QAErB,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;YAC1B,KAAK,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC7C,KAAK,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAED,SAAS,YAAY;QACnB,QAAQ,EAAE,EAAE,CAAC;QAEb,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;YAC1B,KAAK,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC7C,KAAK,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAED,OAAO,CACL,uBAAC,wBAAW,IACV,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,IAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAwB,EACjF,SAAS,EAAE,oBAAoB,YAE9B,CAAC,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAC7C,uBAAC,yBAAY,OACP,iBAAiB,EACrB,EAAE,EAAE,OAAO,EACX,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,gBAAgB,EAC9B,QAAQ,EAAE,YAAY,GACtB,CACH,GACW,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ImageUploaderProps } from '../../../../components';
|
|
2
2
|
import { FormControlProps } from '../../../../containers';
|
|
3
|
-
export type FormImageUploaderProps = FormControlProps & Omit<ImageUploaderProps, 'id' | 'describedBy' | 'isDisabled'> & {
|
|
3
|
+
export type FormImageUploaderProps = FormControlProps & Omit<ImageUploaderProps, 'id' | 'describedBy' | 'isDisabled' | 'isError'> & {
|
|
4
4
|
formControlClassName?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function FormImageUploader({ label, helperText, errorText, optionalLabel, hideRequiredMark, containerClassName, toolTipProps, inputWidth, formName, formProps, formControlClassName, id, isRequired, isDisabled, state, onSelectFile, onDelete, ...imageUploaderProps }: FormImageUploaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-image-uploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-image-uploader/form-image-uploader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,kBAAkB,EAAsB,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAe,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GACnD,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,aAAa,GAAG,YAAY,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"form-image-uploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-image-uploader/form-image-uploader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,kBAAkB,EAAsB,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAe,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GACnD,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,aAAa,GAAG,YAAY,GAAG,SAAS,CAAC,GAAG;IAC1E,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEJ,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,oBAAoB,EACpB,EAAE,EACF,UAAU,EACV,UAAU,EACV,KAAkC,EAClC,YAAY,EACZ,QAAQ,EACR,GAAG,kBAAkB,EACtB,EAAE,sBAAsB,2CAkDxB"}
|
|
@@ -19,6 +19,6 @@ function FormImageUploader({ label, helperText, errorText, optionalLabel, hideRe
|
|
|
19
19
|
void formProps.setFieldTouched(formName, true, true);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { id: id, label: label, helperText: helperText, optionalLabel: optionalLabel, hideRequiredMark: hideRequiredMark, containerClassName: containerClassName, toolTipProps: toolTipProps, inputWidth: inputWidth, formName: formName, formProps: formProps, isRequired: isRequired, isDisabled: isDisabled, errorText: errorText || formProps?.errors[formName ?? ''], className: formControlClassName, children: ({ isErrorVisible, inputId, describedBy }) => ((0, jsx_runtime_1.jsx)(components_1.ImageUploader, { ...imageUploaderProps, id: inputId, describedBy: describedBy, isDisabled: isDisabled,
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { id: id, label: label, helperText: helperText, optionalLabel: optionalLabel, hideRequiredMark: hideRequiredMark, containerClassName: containerClassName, toolTipProps: toolTipProps, inputWidth: inputWidth, formName: formName, formProps: formProps, isRequired: isRequired, isDisabled: isDisabled, errorText: errorText || formProps?.errors[formName ?? ''], className: formControlClassName, children: ({ isErrorVisible, inputId, describedBy }) => ((0, jsx_runtime_1.jsx)(components_1.ImageUploader, { ...imageUploaderProps, id: inputId, describedBy: describedBy, isDisabled: isDisabled, isError: isErrorVisible, state: state, onSelectFile: handleSelectFile, onDelete: handleDelete })) }));
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=form-image-uploader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-image-uploader.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-image-uploader/form-image-uploader.tsx"],"names":[],"mappings":";;AAQA,
|
|
1
|
+
{"version":3,"file":"form-image-uploader.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-image-uploader/form-image-uploader.tsx"],"names":[],"mappings":";;AAQA,8CAqEC;;AA7ED,uDAA+F;AAC/F,uDAAuE;AAOvE,SAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,UAAU,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,oBAAoB,EACpB,EAAE,EACF,UAAU,EACV,UAAU,EACV,KAAK,GAAG,+BAAkB,CAAC,OAAO,EAClC,YAAY,EACZ,QAAQ,EACR,GAAG,kBAAkB,EACE;IACvB,SAAS,gBAAgB,CAAC,IAAU;QAClC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;QAErB,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC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version":3,"file":"drop-area.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/drop-area.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"drop-area.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/drop-area.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtE,KAAK,aAAa,GAAG;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,aAAa,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC9D,UAAU,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACvD,WAAW,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACxD,MAAM,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,UAAU,EACV,UAAU,EACV,MAAM,EACN,QAAQ,EACR,eAAe,EACf,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,EAAE,EACF,WAAW,EACX,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,EACX,MAAM,GACP,EAAE,aAAa,2CA8Ff"}
|
|
@@ -5,6 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const components_1 = require("../../../../components");
|
|
6
6
|
const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
|
|
7
7
|
const file_uploader_styles_1 = require("../file-uploader-styles");
|
|
8
|
+
const file_input_1 = require("./file-input");
|
|
8
9
|
function DropArea({ isError, isDragging, isDisabled, accept, inputRef, dragAndDropText, linkTextDesktop, linkTextMobile, uploadTextDesktop, uploadTextMobile, dropActiveText, className, id, describedBy, onOpenPicker, onInputChange, onDragOver, onDragLeave, onDrop, }) {
|
|
9
10
|
const tone = isDragging ? 'dragging' : isError ? 'error' : 'default';
|
|
10
11
|
const iconColor = isError ? components_1.IconColor.RED_01 : components_1.IconColor.BLUE_01;
|
|
@@ -19,6 +20,6 @@ function DropArea({ isError, isDragging, isDisabled, accept, inputRef, dragAndDr
|
|
|
19
20
|
onOpenPicker();
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div", { role: "presentation", "aria-disabled": isDisabled || undefined, className: (0, tailwind_utils_1.tailwind)((0, file_uploader_styles_1.dropAreaStyles)({ tone, isInteractive: !isDisabled }), isDisabled && 'opacity-60', className), onClick: handleAreaClick, onDragOver: onDragOver, onDragLeave: onDragLeave, onDrop: onDrop, children: [(0, jsx_runtime_1.jsx)(
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)("div", { role: "presentation", "aria-disabled": isDisabled || undefined, className: (0, tailwind_utils_1.tailwind)((0, file_uploader_styles_1.dropAreaStyles)({ tone, isInteractive: !isDisabled }), isDisabled && 'opacity-60', className), onClick: handleAreaClick, onDragOver: onDragOver, onDragLeave: onDragLeave, onDrop: onDrop, children: [(0, jsx_runtime_1.jsx)(file_input_1.FileInput, { inputRef: inputRef, id: id, accept: accept, isDisabled: isDisabled, isError: isError, describedBy: describedBy, onChange: onInputChange }), isDragging ? ((0, jsx_runtime_1.jsx)(components_1.Text, { as: "p", variant: components_1.TextVariant.BODY, color: components_1.TextColors.BLACK, className: "whitespace-normal", children: dropActiveText })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: components_1.IconSymbol.UPLOAD, size: components_1.IconSize.TWO_XL, color: iconColor }), (0, jsx_runtime_1.jsxs)(components_1.Text, { as: "p", variant: components_1.TextVariant.BODY, color: components_1.TextColors.BLACK, className: "hidden whitespace-normal md:block", children: [dragAndDropText ? `${dragAndDropText} ` : '', (0, jsx_runtime_1.jsx)(components_1.Text, { as: "button", type: "button", variant: components_1.TextVariant.LINK, color: components_1.TextColors.BLUE, className: "whitespace-normal", disabled: isDisabled, onClick: handleLinkClick, children: linkTextDesktop }), ' ', uploadTextDesktop] }), (0, jsx_runtime_1.jsxs)(components_1.Text, { as: "p", variant: components_1.TextVariant.BODY, color: components_1.TextColors.BLACK, className: "whitespace-normal md:hidden", children: [(0, jsx_runtime_1.jsx)(components_1.Text, { as: "button", type: "button", variant: components_1.TextVariant.LINK, color: components_1.TextColors.BLUE, className: "whitespace-normal", disabled: isDisabled, onClick: handleLinkClick, children: linkTextMobile }), ' ', uploadTextMobile ?? uploadTextDesktop] })] }))] }));
|
|
23
24
|
}
|
|
24
25
|
//# sourceMappingURL=drop-area.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-area.js","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/drop-area.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"drop-area.js","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/drop-area.tsx"],"names":[],"mappings":";;AA4BA,4BAkHC;;AA7ID,uDAAmH;AACnH,qEAA4D;AAC5D,kEAAyD;AACzD,6CAAyC;AAwBzC,SAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,UAAU,EACV,UAAU,EACV,MAAM,EACN,QAAQ,EACR,eAAe,EACf,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,EAAE,EACF,WAAW,EACX,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,EACX,MAAM,GACQ;IACd,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IACrE,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,sBAAS,CAAC,MAAM,CAAC,CAAC,CAAC,sBAAS,CAAC,OAAO,CAAC;IAEjE,SAAS,eAAe;QACtB,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,YAAY,EAAE,CAAC;QACjB,CAAC;IACH,CAAC;IAED,SAAS,eAAe,CAAC,KAAoC;QAC3D,KAAK,CAAC,eAAe,EAAE,CAAC;QAExB,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,YAAY,EAAE,CAAC;QACjB,CAAC;IACH,CAAC;IAED,OAAO,CACL,iCACE,IAAI,EAAC,cAAc,mBACJ,UAAU,IAAI,SAAS,EACtC,SAAS,EAAE,IAAA,yBAAQ,EACjB,IAAA,qCAAc,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,UAAU,EAAE,CAAC,EACpD,UAAU,IAAI,YAAY,EAC1B,SAAS,CACV,EACD,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,MAAM,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,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,wBAAW,CAAC,IAAI,EACzB,KAAK,EAAE,uBAAU,CAAC,IAAI,EACtB,SAAS,EAAC,mBAAmB,EAC7B,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,eAAe,YAEvB,cAAc,GACV,EAAC,GAAG,EACV,gBAAgB,IAAI,iBAAiB,IACjC,IACN,CACJ,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ChangeEvent, RefObject } from 'react';
|
|
2
|
+
type FileInputProps = {
|
|
3
|
+
inputRef: RefObject<HTMLInputElement>;
|
|
4
|
+
accept?: string;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isError?: boolean;
|
|
7
|
+
id?: string;
|
|
8
|
+
describedBy?: string;
|
|
9
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare function FileInput({ inputRef, accept, isDisabled, isError, id, describedBy, onChange, }: FileInputProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=file-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-input.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/file-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/C,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,MAAM,EACN,UAAU,EACV,OAAO,EACP,EAAE,EACF,WAAW,EACX,QAAQ,GACT,EAAE,cAAc,2CAchB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileInput = FileInput;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function FileInput({ inputRef, accept, isDisabled, isError, id, describedBy, onChange, }) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("input", { ref: inputRef, id: id, type: "file", accept: accept, hidden: true, disabled: isDisabled, "aria-invalid": isError || undefined, "aria-describedby": describedBy, onChange: onChange }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=file-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-input.js","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/file-input.tsx"],"names":[],"mappings":";;AAYA,8BAsBC;;AAtBD,SAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,MAAM,EACN,UAAU,EACV,OAAO,EACP,EAAE,EACF,WAAW,EACX,QAAQ,GACO;IACf,OAAO,CACL,kCACE,GAAG,EAAE,QAAQ,EACb,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,MAAM,EACd,MAAM,QACN,QAAQ,EAAE,UAAU,kBACN,OAAO,IAAI,SAAS,sBAChB,WAAW,EAC7B,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./drop-area"), exports);
|
|
18
|
+
__exportStar(require("./file-input"), exports);
|
|
18
19
|
__exportStar(require("./uploading-file"), exports);
|
|
19
20
|
__exportStar(require("./uploaded-file"), exports);
|
|
20
21
|
__exportStar(require("./file-actions"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC;AACjC,kDAAgC;AAChC,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B;AAC7B,mDAAiC;AACjC,kDAAgC;AAChC,iDAA+B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
type UploadedFileProps = {
|
|
2
2
|
fileName?: string;
|
|
3
3
|
fileSize?: string;
|
|
4
|
+
isError?: boolean;
|
|
4
5
|
className?: string;
|
|
5
6
|
id?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare function UploadedFile({ fileName, fileSize, className, id }: UploadedFileProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function UploadedFile({ fileName, fileSize, isError, className, id }: UploadedFileProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=uploaded-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploaded-file.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/uploaded-file.tsx"],"names":[],"mappings":"AAYA,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"uploaded-file.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/uploaded-file.tsx"],"names":[],"mappings":"AAYA,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,iBAAiB,2CAmC7F"}
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const components_1 = require("../../../../components");
|
|
6
6
|
const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
|
|
7
7
|
const file_uploader_styles_1 = require("../file-uploader-styles");
|
|
8
|
-
function UploadedFile({ fileName, fileSize, className, id }) {
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("div", { id: id, className: (0, tailwind_utils_1.tailwind)((0, file_uploader_styles_1.fileContainerStyles)({ tone: 'completed' }), 'min-w-0 flex-1', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: components_1.IconSymbol.FILE, size: components_1.IconSize.TWO_XL, color: components_1.IconColor.BLUE_01 }), (0, jsx_runtime_1.jsx)(components_1.Text, { as: "p", variant: components_1.TextVariant.BODY, color: components_1.TextColors.BLACK, className: "whitespace-normal break-all", children: fileName })] }), fileSize && ((0, jsx_runtime_1.jsx)(components_1.Text, { as: "p", variant: components_1.TextVariant.HELPER, color: components_1.TextColors.BLACK_02, className: "whitespace-normal", children: fileSize }))] }));
|
|
8
|
+
function UploadedFile({ fileName, fileSize, isError, className, id }) {
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)("div", { id: id, className: (0, tailwind_utils_1.tailwind)((0, file_uploader_styles_1.fileContainerStyles)({ tone: isError ? 'error' : 'completed' }), 'min-w-0 flex-1', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-2", children: [(0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: components_1.IconSymbol.FILE, size: components_1.IconSize.TWO_XL, color: components_1.IconColor.BLUE_01 }), (0, jsx_runtime_1.jsx)(components_1.Text, { as: "p", variant: components_1.TextVariant.BODY, color: components_1.TextColors.BLACK, className: "whitespace-normal break-all", children: fileName })] }), fileSize && ((0, jsx_runtime_1.jsx)(components_1.Text, { as: "p", variant: components_1.TextVariant.HELPER, color: components_1.TextColors.BLACK_02, className: "whitespace-normal", children: fileSize }))] }));
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=uploaded-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploaded-file.js","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/uploaded-file.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"uploaded-file.js","sourceRoot":"","sources":["../../../../../src/components/organisms/file-uploader/components/uploaded-file.tsx"],"names":[],"mappings":";;AAoBA,oCAmCC;;AAvDD,uDAQgC;AAChC,qEAA4D;AAC5D,kEAA8D;AAU9D,SAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAqB;IAC5F,OAAO,CACL,iCACE,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,IAAA,yBAAQ,EACjB,IAAA,0CAAmB,EAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,EAC9D,gBAAgB,EAChB,SAAS,CACV,aAED,iCAAK,SAAS,EAAC,yBAAyB,aACtC,uBAAC,sBAAS,IAAC,IAAI,EAAE,uBAAU,CAAC,IAAI,EAAE,IAAI,EAAE,qBAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,sBAAS,CAAC,OAAO,GAAI,EAErF,uBAAC,iBAAI,IACH,EAAE,EAAC,GAAG,EACN,OAAO,EAAE,wBAAW,CAAC,IAAI,EACzB,KAAK,EAAE,uBAAU,CAAC,KAAK,EACvB,SAAS,EAAC,6BAA6B,YAEtC,QAAQ,GACJ,IACH,EAEL,QAAQ,IAAI,CACX,uBAAC,iBAAI,IACH,EAAE,EAAC,GAAG,EACN,OAAO,EAAE,wBAAW,CAAC,MAAM,EAC3B,KAAK,EAAE,uBAAU,CAAC,QAAQ,EAC1B,SAAS,EAAC,mBAAmB,YAE5B,QAAQ,GACJ,CACR,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -3,6 +3,6 @@ export declare const dropAreaStyles: (props?: ({
|
|
|
3
3
|
isInteractive?: boolean | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
5
|
export declare const fileContainerStyles: (props?: ({
|
|
6
|
-
tone?: "loading" | "completed" | null | undefined;
|
|
6
|
+
tone?: "loading" | "error" | "completed" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
8
|
//# sourceMappingURL=file-uploader-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploader-styles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader-styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;mFAuB1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;
|
|
1
|
+
{"version":3,"file":"file-uploader-styles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader-styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;mFAuB1B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;mFAiB/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploader-styles.js","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader-styles.ts"],"names":[],"mappings":";;;AAAA,uEAA+C;AAElC,QAAA,cAAc,GAAG,IAAA,8BAAG,EAC/B;IACE,mBAAmB;IACnB,iDAAiD;IACjD,yBAAyB;IACzB,aAAa;IACb,sBAAsB;IACtB,mBAAmB;CACpB,EACD;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,yBAAyB;YAClC,QAAQ,EAAE,2BAA2B;YACrC,KAAK,EAAE,wBAAwB;SAChC;QACD,aAAa,EAAE;YACb,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,gBAAgB;SACxB;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE;CAC1D,CACF,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,8BAAG,EACpC;IACE,iCAAiC;IACjC,oCAAoC;IACpC,WAAW;IACX,oCAAoC;CACrC,EACD;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,6BAA6B;
|
|
1
|
+
{"version":3,"file":"file-uploader-styles.js","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader-styles.ts"],"names":[],"mappings":";;;AAAA,uEAA+C;AAElC,QAAA,cAAc,GAAG,IAAA,8BAAG,EAC/B;IACE,mBAAmB;IACnB,iDAAiD;IACjD,yBAAyB;IACzB,aAAa;IACb,sBAAsB;IACtB,mBAAmB;CACpB,EACD;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,yBAAyB;YAClC,QAAQ,EAAE,2BAA2B;YACrC,KAAK,EAAE,wBAAwB;SAChC;QACD,aAAa,EAAE;YACb,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,gBAAgB;SACxB;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE;CAC1D,CACF,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAA,8BAAG,EACpC;IACE,iCAAiC;IACjC,oCAAoC;IACpC,WAAW;IACX,oCAAoC;CACrC,EACD;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,6BAA6B;YACxC,KAAK,EAAE,0CAA0C;SAClD;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;CACrC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploader-types.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader-types.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"file-uploader-types.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader-types.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB"}
|
|
@@ -6,6 +6,5 @@ var FileUploaderState;
|
|
|
6
6
|
FileUploaderState["DEFAULT"] = "DEFAULT";
|
|
7
7
|
FileUploaderState["LOADING"] = "LOADING";
|
|
8
8
|
FileUploaderState["COMPLETED"] = "COMPLETED";
|
|
9
|
-
FileUploaderState["ERROR"] = "ERROR";
|
|
10
9
|
})(FileUploaderState || (exports.FileUploaderState = FileUploaderState = {}));
|
|
11
10
|
//# sourceMappingURL=file-uploader-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploader-types.js","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"file-uploader-types.js","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;AACzB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FileUploaderState } from './file-uploader-types';
|
|
2
2
|
export type FileUploaderProps = {
|
|
3
3
|
state?: FileUploaderState;
|
|
4
|
+
isError?: boolean;
|
|
4
5
|
fileName?: string;
|
|
5
6
|
fileSize?: string;
|
|
6
7
|
progress?: number;
|
|
@@ -20,5 +21,5 @@ export type FileUploaderProps = {
|
|
|
20
21
|
onReplace?: () => void;
|
|
21
22
|
onDelete?: () => void;
|
|
22
23
|
};
|
|
23
|
-
export declare function FileUploader({ state, fileName, fileSize, progress, accept, isDisabled, dragAndDropText, linkTextDesktop, linkTextMobile, uploadDocumentText, dropActiveText, replaceLabel, deleteLabel, className, id, describedBy, onSelectFile, onReplace, onDelete, }: FileUploaderProps): JSX.Element;
|
|
24
|
+
export declare function FileUploader({ state, isError, fileName, fileSize, progress, accept, isDisabled, dragAndDropText, linkTextDesktop, linkTextMobile, uploadDocumentText, dropActiveText, replaceLabel, deleteLabel, className, id, describedBy, onSelectFile, onReplace, onDelete, }: FileUploaderProps): JSX.Element;
|
|
24
25
|
//# sourceMappingURL=file-uploader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,KAAiC,EACjC,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,UAAkB,EAClB,eAAe,EACf,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,SAAS,EACT,EAAE,EACF,WAAW,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"file-uploader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,KAAiC,EACjC,OAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,UAAkB,EAClB,eAAe,EACf,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,SAAS,EACT,EAAE,EACF,WAAW,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAoEjC"}
|
|
@@ -6,15 +6,18 @@ const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
|
6
6
|
const components_1 = require("./components");
|
|
7
7
|
const file_uploader_types_1 = require("./file-uploader-types");
|
|
8
8
|
const use_file_drop_zone_1 = require("../../../utils/use-file-drop-zone");
|
|
9
|
-
function FileUploader({ state = file_uploader_types_1.FileUploaderState.DEFAULT, fileName, fileSize, progress, accept, isDisabled = false, dragAndDropText, linkTextDesktop, linkTextMobile, uploadDocumentText, dropActiveText, replaceLabel, deleteLabel, className, id, describedBy, onSelectFile, onReplace, onDelete, }) {
|
|
10
|
-
const
|
|
11
|
-
|
|
9
|
+
function FileUploader({ state = file_uploader_types_1.FileUploaderState.DEFAULT, isError = false, fileName, fileSize, progress, accept, isDisabled = false, dragAndDropText, linkTextDesktop, linkTextMobile, uploadDocumentText, dropActiveText, replaceLabel, deleteLabel, className, id, describedBy, onSelectFile, onReplace, onDelete, }) {
|
|
10
|
+
const { inputRef, isDragging, openPicker, handleInputChange, handleDragOver, handleDragLeave, handleDrop, } = (0, use_file_drop_zone_1.useFileDropZone)({ isInteractive: !isDisabled, onSelectFile });
|
|
11
|
+
function handleReplace() {
|
|
12
|
+
onReplace?.();
|
|
13
|
+
openPicker();
|
|
14
|
+
}
|
|
12
15
|
if (state === file_uploader_types_1.FileUploaderState.LOADING) {
|
|
13
16
|
return (0, jsx_runtime_1.jsx)(components_1.UploadingFile, { id: id, fileName: fileName, progress: progress, className: className });
|
|
14
17
|
}
|
|
15
18
|
if (state === file_uploader_types_1.FileUploaderState.COMPLETED) {
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex items-start gap-3', className), children: [(0, jsx_runtime_1.jsx)(components_1.
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex items-start gap-3', className), children: [(0, jsx_runtime_1.jsx)(components_1.FileInput, { inputRef: inputRef, id: id, accept: accept, isDisabled: isDisabled, isError: isError, describedBy: describedBy, onChange: handleInputChange }), (0, jsx_runtime_1.jsx)(components_1.UploadedFile, { fileName: fileName, fileSize: fileSize, isError: isError }), (0, jsx_runtime_1.jsx)(components_1.FileActions, { replaceLabel: replaceLabel, deleteLabel: deleteLabel, isDisabled: isDisabled, onReplace: handleReplace, onDelete: onDelete })] }));
|
|
17
20
|
}
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(components_1.DropArea, { id: id, describedBy: describedBy, isError:
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(components_1.DropArea, { id: id, describedBy: describedBy, isError: isError, isDragging: isDragging, isDisabled: isDisabled, accept: accept, inputRef: inputRef, className: className, dragAndDropText: dragAndDropText, linkTextDesktop: linkTextDesktop, linkTextMobile: linkTextMobile, uploadTextDesktop: uploadDocumentText, dropActiveText: dropActiveText, onOpenPicker: openPicker, onInputChange: handleInputChange, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop }));
|
|
19
22
|
}
|
|
20
23
|
//# sourceMappingURL=file-uploader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-uploader.js","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"file-uploader.js","sourceRoot":"","sources":["../../../../src/components/organisms/file-uploader/file-uploader.tsx"],"names":[],"mappings":";;AA4BA,oCAyFC;;AArHD,kEAAyD;AACzD,6CAA6F;AAC7F,+DAA0D;AAC1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AO,GAAI,EAE1E,uBAAC,wBAAW,IACV,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,QAAQ,GAClB,IACE,CACP,CAAC;IACJ,CAAC;IAED,OAAO,CACL,uBAAC,qBAAQ,IACP,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,EAChC,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,kBAAkB,EACrC,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,UAAU,EACxB,aAAa,EAAE,iBAAiB,EAChC,UAAU,EAAE,cAAc,EAC1B,WAAW,EAAE,eAAe,EAC5B,MAAM,EAAE,UAAU,GAClB,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -3,9 +3,10 @@ type ImagePreviewProps = {
|
|
|
3
3
|
imageUrl?: string;
|
|
4
4
|
imageAlt?: string;
|
|
5
5
|
imageFit?: ImageUploaderFit;
|
|
6
|
+
isError?: boolean;
|
|
6
7
|
className?: string;
|
|
7
8
|
id?: string;
|
|
8
9
|
};
|
|
9
|
-
export declare function ImagePreview({ imageUrl, imageAlt, imageFit, className, id }: ImagePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function ImagePreview({ imageUrl, imageAlt, imageFit, isError, className, id, }: ImagePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=image-preview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-preview.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/image-uploader/components/image-preview.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"image-preview.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/image-uploader/components/image-preview.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,SAAS,EACT,EAAE,GACH,EAAE,iBAAiB,2CASnB"}
|
|
@@ -4,7 +4,7 @@ exports.ImagePreview = ImagePreview;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
|
|
6
6
|
const image_uploader_styles_1 = require("../image-uploader-styles");
|
|
7
|
-
function ImagePreview({ imageUrl, imageAlt, imageFit, className, id }) {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)("img", { id: id, src: imageUrl, alt: imageAlt, className: (0, tailwind_utils_1.tailwind)((0, image_uploader_styles_1.imagePreviewStyles)({ fit: imageFit }), className) }));
|
|
7
|
+
function ImagePreview({ imageUrl, imageAlt, imageFit, isError, className, id, }) {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("img", { id: id, src: imageUrl, alt: imageAlt, className: (0, tailwind_utils_1.tailwind)((0, image_uploader_styles_1.imagePreviewStyles)({ fit: imageFit, isError }), className) }));
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=image-preview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-preview.js","sourceRoot":"","sources":["../../../../../src/components/organisms/image-uploader/components/image-preview.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"image-preview.js","sourceRoot":"","sources":["../../../../../src/components/organisms/image-uploader/components/image-preview.tsx"],"names":[],"mappings":";;AAaA,oCAgBC;;AA7BD,qEAA4D;AAC5D,oEAA8D;AAY9D,SAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,SAAS,EACT,EAAE,GACgB;IAClB,OAAO,CACL,gCACE,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,QAAQ,EACb,GAAG,EAAE,QAAQ,EACb,SAAS,EAAE,IAAA,yBAAQ,EAAC,IAAA,0CAAkB,EAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC,GAC9E,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -2,6 +2,7 @@ export declare const imageUploaderSize = "h-36 w-36 md:h-[204px] md:w-[204px]";
|
|
|
2
2
|
export declare const imageDropAreaStyles: string[];
|
|
3
3
|
export declare const imagePreviewStyles: (props?: ({
|
|
4
4
|
fit?: "contain" | "cover" | null | undefined;
|
|
5
|
+
isError?: boolean | null | undefined;
|
|
5
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
7
|
export declare const loadingAreaStyles: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
7
8
|
//# sourceMappingURL=image-uploader-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-uploader-styles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader-styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,wCAAwC,CAAC;AAEvE,eAAO,MAAM,mBAAmB,UAAsC,CAAC;AAEvE,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"image-uploader-styles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader-styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,wCAAwC,CAAC;AAEvE,eAAO,MAAM,mBAAmB,UAAsC,CAAC;AAEvE,eAAO,MAAM,kBAAkB;;;mFAY7B,CAAC;AAEH,eAAO,MAAM,iBAAiB,yFAM5B,CAAC"}
|
|
@@ -10,8 +10,12 @@ exports.imagePreviewStyles = (0, class_variance_authority_1.cva)([exports.imageU
|
|
|
10
10
|
cover: 'object-cover',
|
|
11
11
|
contain: 'bg-gray-06 object-contain',
|
|
12
12
|
},
|
|
13
|
+
isError: {
|
|
14
|
+
true: 'border-2 border-solid border-red-01',
|
|
15
|
+
false: '',
|
|
16
|
+
},
|
|
13
17
|
},
|
|
14
|
-
defaultVariants: { fit: 'cover' },
|
|
18
|
+
defaultVariants: { fit: 'cover', isError: false },
|
|
15
19
|
});
|
|
16
20
|
exports.loadingAreaStyles = (0, class_variance_authority_1.cva)([
|
|
17
21
|
exports.imageUploaderSize,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-uploader-styles.js","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader-styles.ts"],"names":[],"mappings":";;;AAAA,uEAA+C;AAElC,QAAA,iBAAiB,GAAG,qCAAqC,CAAC;AAE1D,QAAA,mBAAmB,GAAG,CAAC,yBAAiB,EAAE,cAAc,CAAC,CAAC;AAE1D,QAAA,kBAAkB,GAAG,IAAA,8BAAG,EAAC,CAAC,yBAAiB,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE;IACnF,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,KAAK,EAAE,cAAc;YACrB,OAAO,EAAE,2BAA2B;SACrC;KACF;IACD,eAAe,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"image-uploader-styles.js","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader-styles.ts"],"names":[],"mappings":";;;AAAA,uEAA+C;AAElC,QAAA,iBAAiB,GAAG,qCAAqC,CAAC;AAE1D,QAAA,mBAAmB,GAAG,CAAC,yBAAiB,EAAE,cAAc,CAAC,CAAC;AAE1D,QAAA,kBAAkB,GAAG,IAAA,8BAAG,EAAC,CAAC,yBAAiB,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE;IACnF,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,KAAK,EAAE,cAAc;YACrB,OAAO,EAAE,2BAA2B;SACrC;QACD,OAAO,EAAE;YACP,IAAI,EAAE,qCAAqC;YAC3C,KAAK,EAAE,EAAE;SACV;KACF;IACD,eAAe,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;CAClD,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,IAAA,8BAAG,EAAC;IACnC,yBAAiB;IACjB,UAAU;IACV,kCAAkC;IAClC,YAAY;IACZ,6CAA6C;CAC9C,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-uploader-types.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader-types.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"image-uploader-types.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader-types.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;CACpB"}
|
|
@@ -6,7 +6,6 @@ var ImageUploaderState;
|
|
|
6
6
|
ImageUploaderState["DEFAULT"] = "DEFAULT";
|
|
7
7
|
ImageUploaderState["LOADING"] = "LOADING";
|
|
8
8
|
ImageUploaderState["COMPLETED"] = "COMPLETED";
|
|
9
|
-
ImageUploaderState["ERROR"] = "ERROR";
|
|
10
9
|
})(ImageUploaderState || (exports.ImageUploaderState = ImageUploaderState = {}));
|
|
11
10
|
var ImageUploaderFit;
|
|
12
11
|
(function (ImageUploaderFit) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-uploader-types.js","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"image-uploader-types.js","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;AACzB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,uCAAmB,CAAA;AACrB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ImageUploaderFit, ImageUploaderState } from './image-uploader-types';
|
|
2
2
|
export type ImageUploaderProps = {
|
|
3
3
|
state?: ImageUploaderState;
|
|
4
|
+
isError?: boolean;
|
|
4
5
|
imageUrl?: string;
|
|
5
6
|
imageAlt?: string;
|
|
6
7
|
imageFit?: ImageUploaderFit;
|
|
@@ -21,5 +22,5 @@ export type ImageUploaderProps = {
|
|
|
21
22
|
onReplace?: () => void;
|
|
22
23
|
onDelete?: () => void;
|
|
23
24
|
};
|
|
24
|
-
export declare function ImageUploader({ state, imageUrl, imageAlt, imageFit, accept, isDisabled, linkTextDesktop, linkTextMobile, uploadTextDesktop, uploadTextMobile, dropActiveText, loadingLabel, replaceLabel, deleteLabel, className, id, describedBy, onSelectFile, onReplace, onDelete, }: ImageUploaderProps): JSX.Element;
|
|
25
|
+
export declare function ImageUploader({ state, isError, imageUrl, imageAlt, imageFit, accept, isDisabled, linkTextDesktop, linkTextMobile, uploadTextDesktop, uploadTextMobile, dropActiveText, loadingLabel, replaceLabel, deleteLabel, className, id, describedBy, onSelectFile, onReplace, onDelete, }: ImageUploaderProps): JSX.Element;
|
|
25
26
|
//# sourceMappingURL=image-uploader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-uploader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,KAAkC,EAClC,QAAQ,EACR,QAAQ,EACR,QAAiC,EACjC,MAAkB,EAClB,UAAkB,EAClB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,EAAE,EACF,WAAW,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"image-uploader.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,KAAkC,EAClC,OAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAiC,EACjC,MAAkB,EAClB,UAAkB,EAClB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,EAAE,EACF,WAAW,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAoElC"}
|
|
@@ -8,15 +8,18 @@ const use_file_drop_zone_1 = require("../../../utils/use-file-drop-zone");
|
|
|
8
8
|
const components_2 = require("./components");
|
|
9
9
|
const image_uploader_styles_1 = require("./image-uploader-styles");
|
|
10
10
|
const image_uploader_types_1 = require("./image-uploader-types");
|
|
11
|
-
function ImageUploader({ state = image_uploader_types_1.ImageUploaderState.DEFAULT, imageUrl, imageAlt, imageFit = image_uploader_types_1.ImageUploaderFit.COVER, accept = 'image/*', isDisabled = false, linkTextDesktop, linkTextMobile, uploadTextDesktop, uploadTextMobile, dropActiveText, loadingLabel, replaceLabel, deleteLabel, className, id, describedBy, onSelectFile, onReplace, onDelete, }) {
|
|
12
|
-
const
|
|
13
|
-
|
|
11
|
+
function ImageUploader({ state = image_uploader_types_1.ImageUploaderState.DEFAULT, isError = false, imageUrl, imageAlt, imageFit = image_uploader_types_1.ImageUploaderFit.COVER, accept = 'image/*', isDisabled = false, linkTextDesktop, linkTextMobile, uploadTextDesktop, uploadTextMobile, dropActiveText, loadingLabel, replaceLabel, deleteLabel, className, id, describedBy, onSelectFile, onReplace, onDelete, }) {
|
|
12
|
+
const { inputRef, isDragging, openPicker, handleInputChange, handleDragOver, handleDragLeave, handleDrop, } = (0, use_file_drop_zone_1.useFileDropZone)({ isInteractive: !isDisabled, onSelectFile });
|
|
13
|
+
function handleReplace() {
|
|
14
|
+
onReplace?.();
|
|
15
|
+
openPicker();
|
|
16
|
+
}
|
|
14
17
|
if (state === image_uploader_types_1.ImageUploaderState.LOADING) {
|
|
15
18
|
return (0, jsx_runtime_1.jsx)(components_2.LoadingArea, { id: id, loadingLabel: loadingLabel, className: className });
|
|
16
19
|
}
|
|
17
20
|
if (state === image_uploader_types_1.ImageUploaderState.COMPLETED) {
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex items-start gap-3', className), children: [(0, jsx_runtime_1.jsx)(
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex items-start gap-3', className), children: [(0, jsx_runtime_1.jsx)(components_1.FileInput, { inputRef: inputRef, id: id, accept: accept, isDisabled: isDisabled, isError: isError, describedBy: describedBy, onChange: handleInputChange }), (0, jsx_runtime_1.jsx)(components_2.ImagePreview, { imageUrl: imageUrl, imageAlt: imageAlt, imageFit: imageFit, isError: isError }), (0, jsx_runtime_1.jsx)(components_1.FileActions, { replaceLabel: replaceLabel, deleteLabel: deleteLabel, isDisabled: isDisabled, onReplace: handleReplace, onDelete: onDelete })] }));
|
|
19
22
|
}
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(components_1.DropArea, { id: id, describedBy: describedBy, isError:
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)(components_1.DropArea, { id: id, describedBy: describedBy, isError: isError, isDragging: isDragging, isDisabled: isDisabled, accept: accept, inputRef: inputRef, className: (0, tailwind_utils_1.tailwind)(image_uploader_styles_1.imageDropAreaStyles, className), linkTextDesktop: linkTextDesktop, linkTextMobile: linkTextMobile, uploadTextDesktop: uploadTextDesktop, uploadTextMobile: uploadTextMobile, dropActiveText: dropActiveText, onOpenPicker: openPicker, onInputChange: handleInputChange, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop }));
|
|
21
24
|
}
|
|
22
25
|
//# sourceMappingURL=image-uploader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-uploader.js","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"image-uploader.js","sourceRoot":"","sources":["../../../../src/components/organisms/image-uploader/image-uploader.tsx"],"names":[],"mappings":";;AA+BA,sCA0FC;;AAzHD,oDAAuE;AACvE,kEAAyD;AACzD,0EAAoE;AACpE,6CAAyD;AACzD,mEAA8D;AAC9D,iEAA8E;AA0B9E,SAAgB,aAAa,CAAC,EAC5B,KAAK,GAAG,yCAAkB,CAAC,OAAO,EAClC,OAAO,GAAG,KAAK,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,GAAG,uCAAgB,CAAC,KAAK,EACjC,MAAM,GAAG,SAAS,EAClB,UAAU,GAAG,KAAK,EAClB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,EAAE,EACF,WAAW,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,GACW;IACnB,MAAM,EACJ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,GACX,GAAG,IAAA,oCAAe,EAAC,EAAE,aAAa,EAAE,CAAC,UAAU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