sprint-asia-custom-component 0.1.59 → 0.1.60
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 +8 -8
- package/package.json +1 -1
- package/src/components/footer/index.js +23 -17
package/dist/index.js
CHANGED
|
@@ -47834,8 +47834,8 @@
|
|
|
47834
47834
|
};
|
|
47835
47835
|
|
|
47836
47836
|
const Footer = ({
|
|
47837
|
-
titleLeftButton = "
|
|
47838
|
-
titleRightButton = "
|
|
47837
|
+
titleLeftButton = "Delete",
|
|
47838
|
+
titleRightButton = "Edit",
|
|
47839
47839
|
isActiveLeftButton,
|
|
47840
47840
|
isActiveRightButton,
|
|
47841
47841
|
onClickLeftButton,
|
|
@@ -47845,18 +47845,18 @@
|
|
|
47845
47845
|
className: "fixed bottom-0 flex justify-end w-full items-center py-1 px-6 bg-white"
|
|
47846
47846
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47847
47847
|
className: "flex items-center mr-48"
|
|
47848
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47848
|
+
}, isActiveLeftButton && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47849
47849
|
className: "m-1"
|
|
47850
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
47850
|
+
}, /*#__PURE__*/React__default["default"].createElement(DangerButton, {
|
|
47851
47851
|
title: titleLeftButton,
|
|
47852
47852
|
onClick: onClickLeftButton,
|
|
47853
|
-
isActive:
|
|
47854
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47853
|
+
isActive: true
|
|
47854
|
+
})), isActiveRightButton && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47855
47855
|
className: "m-1"
|
|
47856
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
47856
|
+
}, /*#__PURE__*/React__default["default"].createElement(OutlineButton, {
|
|
47857
47857
|
title: titleRightButton,
|
|
47858
47858
|
onClick: onClickRightButton,
|
|
47859
|
-
isActive:
|
|
47859
|
+
isActive: true
|
|
47860
47860
|
}))));
|
|
47861
47861
|
};
|
|
47862
47862
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import OutlineButton from '../button/outlinebutton';
|
|
3
|
-
import
|
|
3
|
+
import DangerButton from '../button/dangerbutton';
|
|
4
4
|
|
|
5
5
|
const Footer = ({
|
|
6
|
-
titleLeftButton = "
|
|
7
|
-
titleRightButton = "
|
|
6
|
+
titleLeftButton = "Delete",
|
|
7
|
+
titleRightButton = "Edit",
|
|
8
8
|
isActiveLeftButton,
|
|
9
9
|
isActiveRightButton,
|
|
10
10
|
onClickLeftButton,
|
|
@@ -13,20 +13,26 @@ const Footer = ({
|
|
|
13
13
|
return (
|
|
14
14
|
<div className='fixed bottom-0 flex justify-end w-full items-center py-1 px-6 bg-white'>
|
|
15
15
|
<div className='flex items-center mr-48'>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
{
|
|
17
|
+
isActiveLeftButton &&
|
|
18
|
+
<div className='m-1'>
|
|
19
|
+
<DangerButton
|
|
20
|
+
title={titleLeftButton}
|
|
21
|
+
onClick={onClickLeftButton}
|
|
22
|
+
isActive={true}
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
}
|
|
26
|
+
{
|
|
27
|
+
isActiveRightButton &&
|
|
28
|
+
<div className='m-1'>
|
|
29
|
+
<OutlineButton
|
|
30
|
+
title={titleRightButton}
|
|
31
|
+
onClick={onClickRightButton}
|
|
32
|
+
isActive={true}
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
}
|
|
30
36
|
</div>
|
|
31
37
|
</div>
|
|
32
38
|
);
|