sprint-asia-custom-component 0.1.163 → 0.1.165
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/index.js
CHANGED
|
@@ -26019,6 +26019,7 @@
|
|
|
26019
26019
|
selectedFile,
|
|
26020
26020
|
error = "",
|
|
26021
26021
|
disabled,
|
|
26022
|
+
maxSize = null,
|
|
26022
26023
|
acceptExcel = false
|
|
26023
26024
|
}) => {
|
|
26024
26025
|
const [errorMessage, setErrorMessage] = React.useState("");
|
|
@@ -26053,7 +26054,9 @@
|
|
|
26053
26054
|
maxFiles,
|
|
26054
26055
|
accept: acceptExcel ? excelAcceptedFiles : defaultAcceptedFiles,
|
|
26055
26056
|
noKeyboard: true,
|
|
26056
|
-
maxSize
|
|
26057
|
+
...(maxSize !== null && {
|
|
26058
|
+
maxSize
|
|
26059
|
+
}),
|
|
26057
26060
|
onDropRejected,
|
|
26058
26061
|
disabled
|
|
26059
26062
|
});
|
|
@@ -29181,7 +29184,7 @@
|
|
|
29181
29184
|
className: "text-sm font-normal text-black mb-1"
|
|
29182
29185
|
}, title), isRequired && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
29183
29186
|
className: "text-sm font-normal text-danger500 ml-1"
|
|
29184
|
-
}, "*")), rightComponent
|
|
29187
|
+
}, "*")), rightComponent), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29185
29188
|
className: "relative rounded-md"
|
|
29186
29189
|
}, /*#__PURE__*/React__default["default"].createElement("section", {
|
|
29187
29190
|
className: "absolute inset-y-0 left-0 pl-2 flex items-center justify-center gap-2"
|
|
@@ -29196,7 +29199,7 @@
|
|
|
29196
29199
|
min: minimum !== null && minimum !== undefined && type === "number" ? minimum : undefined,
|
|
29197
29200
|
max: maximum !== null && maximum !== undefined && type === "number" ? maximum : undefined,
|
|
29198
29201
|
type: type === "password" ? showPassword ? "text" : "password" : type,
|
|
29199
|
-
className: `py-2.5 px-4 w-full font-normal text-sm text-
|
|
29202
|
+
className: `py-2.5 px-4 w-full font-normal text-sm text-black rounded-md border
|
|
29200
29203
|
${!value && mode === "default" && "bg-neutral20 border-neutral50 focus:outline-2 outline-primary500"}
|
|
29201
29204
|
${value && mode === "default" && "bg-neutral20 border-black focus:outline-2 outline-primary500"}
|
|
29202
29205
|
${isFocused && mode === "default" && "bg-neutral20 border-primary500"}
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ const DropzoneUploadFile = ({
|
|
|
11
11
|
selectedFile,
|
|
12
12
|
error = "",
|
|
13
13
|
disabled,
|
|
14
|
+
maxSize = null,
|
|
14
15
|
acceptExcel = false,
|
|
15
16
|
}) => {
|
|
16
17
|
const [errorMessage, setErrorMessage] = useState("");
|
|
@@ -48,7 +49,7 @@ const DropzoneUploadFile = ({
|
|
|
48
49
|
maxFiles,
|
|
49
50
|
accept: acceptExcel ? excelAcceptedFiles : defaultAcceptedFiles,
|
|
50
51
|
noKeyboard: true,
|
|
51
|
-
maxSize
|
|
52
|
+
...(maxSize !== null && { maxSize }),
|
|
52
53
|
onDropRejected,
|
|
53
54
|
disabled,
|
|
54
55
|
});
|
|
@@ -43,9 +43,7 @@ const TextInput = ({
|
|
|
43
43
|
{isRequired && <p className="text-sm font-normal text-danger500 ml-1">*</p>}
|
|
44
44
|
</div>
|
|
45
45
|
)}
|
|
46
|
-
{
|
|
47
|
-
rightComponent && {rightComponent}
|
|
48
|
-
}
|
|
46
|
+
{rightComponent}
|
|
49
47
|
</div>
|
|
50
48
|
|
|
51
49
|
<div className="relative rounded-md">
|
|
@@ -67,7 +65,7 @@ const TextInput = ({
|
|
|
67
65
|
min={minimum !== null && minimum !== undefined && type === "number" ? minimum : undefined}
|
|
68
66
|
max={maximum !== null && maximum !== undefined && type === "number" ? maximum : undefined}
|
|
69
67
|
type={type === "password" ? (showPassword ? "text" : "password") : type}
|
|
70
|
-
className={`py-2.5 px-4 w-full font-normal text-sm text-
|
|
68
|
+
className={`py-2.5 px-4 w-full font-normal text-sm text-black rounded-md border
|
|
71
69
|
${!value &&
|
|
72
70
|
mode === "default" &&
|
|
73
71
|
"bg-neutral20 border-neutral50 focus:outline-2 outline-primary500"
|