period-ui 0.5.0 → 0.6.0
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/atoms/radio-button/radio-button-group/radio-button-group-types.d.ts +1 -1
- package/dist/components/atoms/radio-button/radio-button-group/radio-button-group-types.d.ts.map +1 -1
- package/dist/components/atoms/radio-button/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/dist/components/atoms/radio-button/radio-button-group/radio-button-group.js +40 -14
- package/dist/components/atoms/radio-button/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/atoms/radio-button/radio-button.d.ts +6 -3
- package/dist/components/atoms/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/atoms/radio-button/radio-button.js +10 -8
- package/dist/components/atoms/radio-button/radio-button.js.map +1 -1
- 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 +5642 -5543
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MultiOptions } from '../../../../types/general';
|
|
2
2
|
import { RadioButtonProps } from '../radio-button';
|
|
3
|
-
export type RadioButtonMultiOptions = MultiOptions & Omit<RadioButtonProps, '
|
|
3
|
+
export type RadioButtonMultiOptions = MultiOptions & Omit<RadioButtonProps, 'isSelected' | 'tabIndex' | 'onKeyDown'>;
|
|
4
4
|
//# sourceMappingURL=radio-button-group-types.d.ts.map
|
package/dist/components/atoms/radio-button/radio-button-group/radio-button-group-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button-group-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/radio-button/radio-button-group/radio-button-group-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,uBAAuB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"radio-button-group-types.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/radio-button/radio-button-group/radio-button-group-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAChD,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button-group.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/radio-button/radio-button-group/radio-button-group.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"radio-button-group.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/radio-button/radio-button-group/radio-button-group.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAMrE,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,WAAW,EACX,QAAQ,GACT,EAAE,qBAAqB,2CAuFvB"}
|
|
@@ -2,29 +2,55 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RadioButtonGroup = RadioButtonGroup;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
5
6
|
const __1 = require("../");
|
|
6
7
|
const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
|
|
8
|
+
const PREVIOUS_KEYS = ['ArrowUp', 'ArrowLeft'];
|
|
9
|
+
const NEXT_KEYS = ['ArrowDown', 'ArrowRight'];
|
|
7
10
|
function RadioButtonGroup({ id, data, className, selectedData, isUnselectable, ariaLabelledBy, ariaDescribedBy, ariaInvalid, onSelect, }) {
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
const radioButtonRefs = (0, react_1.useRef)([]);
|
|
12
|
+
const selectedIndex = data.findIndex((option) => !option.isDisabled && option.value === selectedData);
|
|
13
|
+
const firstEnabledIndex = data.findIndex((option) => !option.isDisabled);
|
|
14
|
+
const focusableIndex = selectedIndex >= 0 ? selectedIndex : firstEnabledIndex;
|
|
15
|
+
function findEnabledIndex(fromIndex, direction) {
|
|
16
|
+
for (let step = 1; step <= data.length; step += 1) {
|
|
17
|
+
const offset = (fromIndex + direction * step) % data.length;
|
|
18
|
+
const candidate = (offset + data.length) % data.length;
|
|
19
|
+
if (candidate !== fromIndex && !data[candidate].isDisabled) {
|
|
20
|
+
return candidate;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return -1;
|
|
24
|
+
}
|
|
25
|
+
function handleSelect(index) {
|
|
26
|
+
const option = data[index];
|
|
27
|
+
if (!option || option.isDisabled) {
|
|
10
28
|
return;
|
|
11
|
-
|
|
29
|
+
}
|
|
30
|
+
if (isUnselectable && option.value === selectedData) {
|
|
12
31
|
onSelect(undefined);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
onSelect(option.value);
|
|
35
|
+
}
|
|
36
|
+
option.onSelect?.();
|
|
37
|
+
}
|
|
38
|
+
function handleKeyDown(event, index) {
|
|
39
|
+
const isPrevious = PREVIOUS_KEYS.includes(event.key);
|
|
40
|
+
const isNext = NEXT_KEYS.includes(event.key);
|
|
41
|
+
if (!isPrevious && !isNext) {
|
|
13
42
|
return;
|
|
14
43
|
}
|
|
15
|
-
|
|
16
|
-
|
|
44
|
+
event.preventDefault();
|
|
45
|
+
const nextIndex = findEnabledIndex(index, isPrevious ? -1 : 1);
|
|
46
|
+
if (nextIndex < 0) {
|
|
17
47
|
return;
|
|
18
48
|
}
|
|
19
|
-
|
|
49
|
+
radioButtonRefs.current[nextIndex]?.focus();
|
|
50
|
+
handleSelect(nextIndex);
|
|
20
51
|
}
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)("div", { id: id, role: "
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(__1.RadioButton, { onSelect: () => {
|
|
25
|
-
onChange(!isSelected, object);
|
|
26
|
-
onSelect?.(!isSelected);
|
|
27
|
-
}, label: label, labelClassName: labelClassName, containerClassName: containerClassName, value: isSelected, isDisabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('mb-[24px]', data.length - 1 === key && 'mb-0') }, key));
|
|
28
|
-
}) }));
|
|
52
|
+
return ((0, jsx_runtime_1.jsx)("div", { id: id, role: "radiogroup", "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid || undefined, className: (0, tailwind_utils_1.tailwind)('space-y-2', className), children: data.map((option, index) => ((0, jsx_runtime_1.jsx)(__1.RadioButton, { ref: (element) => {
|
|
53
|
+
radioButtonRefs.current[index] = element;
|
|
54
|
+
}, label: option.label, className: option.className, labelClassName: option.labelClassName, containerClassName: option.containerClassName, radioButtonClassName: option.radioButtonClassName, isSelected: option.value === selectedData, isDisabled: option.isDisabled, tabIndex: index === focusableIndex ? 0 : -1, onKeyDown: (event) => handleKeyDown(event, index), onSelect: () => handleSelect(index) }, option.value))) }));
|
|
29
55
|
}
|
|
30
56
|
//# sourceMappingURL=radio-button-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button-group.js","sourceRoot":"","sources":["../../../../../src/components/atoms/radio-button/radio-button-group/radio-button-group.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"radio-button-group.js","sourceRoot":"","sources":["../../../../../src/components/atoms/radio-button/radio-button-group/radio-button-group.tsx"],"names":[],"mappings":";;AAoBA,4CAiGC;;AArHD,iCAA8C;AAC9C,2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,GAAG,CAAC,CAAC,MAA+B,EAAE,KAAa,EAAE,EAAE,CAAC,CAC5D,uBAAC,eAAW,IAEV,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE;gBACf,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;YAC3C,CAAC,EACD,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,SAAS,EAAE,MAAM,CAAC,SAAS,EAC3B,cAAc,EAAE,MAAM,CAAC,cAAc,EACrC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,EAC7C,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,EACjD,UAAU,EAAE,MAAM,CAAC,KAAK,KAAK,YAAY,EACzC,UAAU,EAAE,MAAM,CAAC,UAAU,EAC7B,QAAQ,EAAE,KAAK,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC3C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,EACjD,QAAQ,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,IAb9B,MAAM,CAAC,KAAK,CAcjB,CACH,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
1
2
|
export type RadioButtonProps = {
|
|
2
3
|
label?: string;
|
|
3
|
-
|
|
4
|
+
isSelected: boolean;
|
|
4
5
|
isDisabled?: boolean;
|
|
5
6
|
className?: string;
|
|
6
7
|
labelClassName?: string;
|
|
7
8
|
containerClassName?: string;
|
|
8
9
|
radioButtonClassName?: string;
|
|
9
|
-
|
|
10
|
+
tabIndex?: number;
|
|
11
|
+
onKeyDown?: ComponentProps<'button'>['onKeyDown'];
|
|
12
|
+
onSelect?: () => void;
|
|
10
13
|
};
|
|
11
|
-
export declare
|
|
14
|
+
export declare const RadioButton: import("react").ForwardRefExoticComponent<RadioButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
15
|
//# sourceMappingURL=radio-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/radio-button/radio-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio-button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/radio-button/radio-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAI1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,WAAW,gHAwEtB,CAAC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RadioButton =
|
|
3
|
+
exports.RadioButton = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
5
6
|
const components_1 = require("../../../components");
|
|
6
7
|
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
7
|
-
function RadioButton({ label, className,
|
|
8
|
-
const
|
|
8
|
+
exports.RadioButton = (0, react_1.forwardRef)(function RadioButton({ label, className, isSelected = false, isDisabled = false, labelClassName, containerClassName, radioButtonClassName, tabIndex, onKeyDown, onSelect, }, forwardedRef) {
|
|
9
|
+
const labelId = (0, react_1.useId)();
|
|
10
|
+
function handleClick() {
|
|
9
11
|
if (isDisabled) {
|
|
10
12
|
return;
|
|
11
13
|
}
|
|
12
|
-
onSelect?.(
|
|
13
|
-
}
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: (0, tailwind_utils_1.tailwind)('flex flex-col', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer', className), onClick: handleClick, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex flex-row w-fit items-center', containerClassName), children: [(0, jsx_runtime_1.jsx)("button", { role: "radio
|
|
15
|
-
'border-
|
|
16
|
-
}
|
|
14
|
+
onSelect?.();
|
|
15
|
+
}
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, tailwind_utils_1.tailwind)('flex flex-col py-2', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer', className), onClick: handleClick, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex flex-row w-fit items-center', containerClassName), children: [(0, jsx_runtime_1.jsx)("button", { ref: forwardedRef, role: "radio", type: "button", "aria-checked": isSelected, "aria-labelledby": label ? labelId : undefined, disabled: isDisabled, tabIndex: tabIndex, onKeyDown: onKeyDown, className: (0, tailwind_utils_1.tailwind)('flex justify-center items-center md:h-[20px] md:w-[20px] h-[18px] w-[18px] border-2 rounded-full cursor-pointer shrink-0', 'border-gray-04 bg-white', 'hover:bg-gray-05', 'disabled:cursor-not-allowed disabled:border-gray-05 disabled:bg-white', 'focus-visible:outline-none focus-visible:border-white focus-visible:ring-2 focus-visible:ring-blue-01', isSelected &&
|
|
17
|
+
'border-blue-01 bg-blue-01 hover:border-blue-02 hover:bg-blue-02 disabled:border-blue-03 disabled:bg-blue-03', radioButtonClassName), children: isSelected && ((0, jsx_runtime_1.jsx)("div", { className: "bg-white rounded-full md:w-[10px] md:h-[10px] w-[9px] h-[9px]" })) }), label && ((0, jsx_runtime_1.jsx)(components_1.Text, { id: labelId, variant: components_1.TextVariant.BODY, className: (0, tailwind_utils_1.tailwind)('ml-2 select-none whitespace-normal', labelClassName), color: isDisabled ? components_1.TextColors.BLACK_03 : components_1.TextColors.BLACK, children: label }))] }) }));
|
|
18
|
+
});
|
|
17
19
|
//# sourceMappingURL=radio-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button.js","sourceRoot":"","sources":["../../../../src/components/atoms/radio-button/radio-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio-button.js","sourceRoot":"","sources":["../../../../src/components/atoms/radio-button/radio-button.tsx"],"names":[],"mappings":";;;;AAAA,iCAA0D;AAC1D,oDAAoE;AACpE,kEAAyD;AAe5C,QAAA,WAAW,GAAG,IAAA,kBAAU,EAAsC,SAAS,WAAW,CAC7F,EACE,KAAK,EACL,SAAS,EACT,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,QAAQ,EACR,SAAS,EACT,QAAQ,GACT,EACD,YAAY;IAEZ,MAAM,OAAO,GAAG,IAAA,aAAK,GAAE,CAAC;IAExB,SAAS,WAAW;QAClB,IAAI,UAAU,EAAE,CAAC;YACf,OAAO;QACT,CAAC;QAED,QAAQ,EAAE,EAAE,CAAC;IACf,CAAC;IAED,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,yBAAQ,EACjB,oBAAoB,EACpB,UAAU,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,gBAAgB,EACpD,SAAS,CACV,EACD,OAAO,EAAE,WAAW,YAEpB,iCAAK,SAAS,EAAE,IAAA,yBAAQ,EAAC,kCAAkC,EAAE,kBAAkB,CAAC,aAC9E,mCACE,GAAG,EAAE,YAAY,EACjB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,kBACC,UAAU,qBACP,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAC5C,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,IAAA,yBAAQ,EACjB,0HAA0H,EAC1H,yBAAyB,EACzB,kBAAkB,EAClB,uEAAuE,EACvE,uGAAuG,EACvG,UAAU;wBACR,6GAA6G,EAC/G,oBAAoB,CACrB,YAEA,UAAU,IAAI,CACb,gCAAK,SAAS,EAAC,+DAA+D,GAAG,CAClF,GACM,EACR,KAAK,IAAI,CACR,uBAAC,iBAAI,IACH,EAAE,EAAE,OAAO,EACX,OAAO,EAAE,wBAAW,CAAC,IAAI,EACzB,SAAS,EAAE,IAAA,yBAAQ,EAAC,oCAAoC,EAAE,cAAc,CAAC,EACzE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,uBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAU,CAAC,KAAK,YAEzD,KAAK,GACD,CACR,IACG,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -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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,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;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,0BAAa,OACR,kBAAkB,EACtB,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 +1 @@
|
|
|
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;
|
|
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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|
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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Object<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;AA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
|
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;AAC1D,0EAAoE;AAyBpE,SAAgB,YAAY,CAAC,EAC3B,KAAK,GAAG,uCAAiB,CAAC,OAAO,EACjC,OAAO,GAAG,KAAK,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,UAAU,GAAG,KAAK,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,GACU;IAClB,MAAM,EACJ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,iBAAi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,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"}
|