sprint-asia-custom-component 0.1.15 → 0.1.16
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
|
@@ -44008,7 +44008,7 @@
|
|
|
44008
44008
|
title = 'Title Modal',
|
|
44009
44009
|
subtitle = 'Subtitle Modal',
|
|
44010
44010
|
type = 'default',
|
|
44011
|
-
addition,
|
|
44011
|
+
addition = "state",
|
|
44012
44012
|
placeholderTextArea,
|
|
44013
44013
|
onChangeTextArea,
|
|
44014
44014
|
valueTextArea,
|
|
@@ -44027,6 +44027,8 @@
|
|
|
44027
44027
|
return typeof valueTextArea === 'string' && valueTextArea.trim() !== '';
|
|
44028
44028
|
} else if (addition === 'dropzone&input') {
|
|
44029
44029
|
return fileUploaded && typeof textInputValue === 'string' && textInputValue.trim() !== '';
|
|
44030
|
+
} else if (addition === 'state') {
|
|
44031
|
+
return true;
|
|
44030
44032
|
}
|
|
44031
44033
|
return false;
|
|
44032
44034
|
};
|
|
@@ -46639,7 +46641,7 @@
|
|
|
46639
46641
|
className: "rounded-md shadow-sm"
|
|
46640
46642
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
46641
46643
|
type: "button",
|
|
46642
|
-
className: "flex items-center w-60 py-2.5 text-left px-4 bg-
|
|
46644
|
+
className: "flex items-center w-60 py-2.5 text-left px-4 bg-white border-neutral50 font-normal text-sm text-neutral300 rounded-md border focus:outline-none",
|
|
46643
46645
|
onClick: () => setShowFilterMenu(!showFilterMenu)
|
|
46644
46646
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
46645
46647
|
className: "flex-grow"
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@ const FilterDropdown = ({
|
|
|
59
59
|
<span className='rounded-md shadow-sm'>
|
|
60
60
|
<button
|
|
61
61
|
type='button'
|
|
62
|
-
className="flex items-center w-60 py-2.5 text-left px-4 bg-
|
|
62
|
+
className="flex items-center w-60 py-2.5 text-left px-4 bg-white border-neutral50 font-normal text-sm text-neutral300 rounded-md border focus:outline-none"
|
|
63
63
|
onClick={() => setShowFilterMenu(!showFilterMenu)}
|
|
64
64
|
>
|
|
65
65
|
<span className='flex-grow'>{buttonText}</span>
|
|
@@ -14,7 +14,7 @@ const ModalState = ({
|
|
|
14
14
|
title = 'Title Modal',
|
|
15
15
|
subtitle = 'Subtitle Modal',
|
|
16
16
|
type = 'default',
|
|
17
|
-
addition,
|
|
17
|
+
addition = "state",
|
|
18
18
|
placeholderTextArea,
|
|
19
19
|
onChangeTextArea,
|
|
20
20
|
valueTextArea,
|
|
@@ -33,9 +33,13 @@ const ModalState = ({
|
|
|
33
33
|
if (addition === 'textarea') {
|
|
34
34
|
// Check if valueTextArea is a string before calling .trim()
|
|
35
35
|
return typeof valueTextArea === 'string' && valueTextArea.trim() !== '';
|
|
36
|
-
}
|
|
36
|
+
}
|
|
37
|
+
else if (addition === 'dropzone&input') {
|
|
37
38
|
return fileUploaded && typeof textInputValue === 'string' && textInputValue.trim() !== '';
|
|
38
39
|
}
|
|
40
|
+
else if (addition === 'state') {
|
|
41
|
+
return true
|
|
42
|
+
}
|
|
39
43
|
return false;
|
|
40
44
|
};
|
|
41
45
|
|