sprint-asia-custom-component 0.1.111 → 0.1.112
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 +4 -4
- package/package.json +1 -1
- package/src/components/alert/index.js +10 -4
package/dist/index.js
CHANGED
|
@@ -191,8 +191,8 @@
|
|
|
191
191
|
};
|
|
192
192
|
|
|
193
193
|
const Alert = ({
|
|
194
|
-
title
|
|
195
|
-
subtitle
|
|
194
|
+
title,
|
|
195
|
+
subtitle,
|
|
196
196
|
type = "primary",
|
|
197
197
|
titleLeftButton,
|
|
198
198
|
titleRightButton,
|
|
@@ -224,9 +224,9 @@
|
|
|
224
224
|
${type === "warning" && "text-warning800"}
|
|
225
225
|
${type === "danger" && "text-danger500"}
|
|
226
226
|
mr-2`
|
|
227
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
227
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", null, title && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
228
228
|
className: "text-md font-semibold text-black"
|
|
229
|
-
}, title), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
229
|
+
}, title), subtitle && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
230
230
|
className: "text-sm font-normal text-black"
|
|
231
231
|
}, subtitle))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
232
232
|
className: "flex items-center"
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@ import OutlineButton from '../button/outlinebutton'
|
|
|
4
4
|
import PrimaryButton from '../button/primarybutton'
|
|
5
5
|
|
|
6
6
|
const Alert = ({
|
|
7
|
-
title
|
|
8
|
-
subtitle
|
|
7
|
+
title,
|
|
8
|
+
subtitle,
|
|
9
9
|
type = "primary",
|
|
10
10
|
titleLeftButton,
|
|
11
11
|
titleRightButton,
|
|
@@ -45,8 +45,14 @@ const Alert = ({
|
|
|
45
45
|
}
|
|
46
46
|
</div>
|
|
47
47
|
<div>
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
{
|
|
49
|
+
title &&
|
|
50
|
+
<p className='text-md font-semibold text-black'>{title}</p>
|
|
51
|
+
}
|
|
52
|
+
{
|
|
53
|
+
subtitle &&
|
|
54
|
+
<p className='text-sm font-normal text-black'>{subtitle}</p>
|
|
55
|
+
}
|
|
50
56
|
</div>
|
|
51
57
|
</div>
|
|
52
58
|
<div className='flex items-center'>
|