sprint-asia-custom-component 0.1.48 → 0.1.49
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.css +1 -1
- package/dist/index.js +1023 -3629
- package/package.json +1 -1
- package/src/App.js +0 -1
- package/src/components/header/index.js +8 -8
- package/src/index.js +13 -14
package/package.json
CHANGED
package/src/App.js
CHANGED
|
@@ -7,8 +7,8 @@ const Header = ({
|
|
|
7
7
|
fullName = "Undefined Name",
|
|
8
8
|
roleName = "Undefined Role",
|
|
9
9
|
dataProfile = [
|
|
10
|
-
{ title: "Change Password",
|
|
11
|
-
{ title: "Logout",
|
|
10
|
+
{ title: "Change Password", action: () => {console.log("Change Password")}, logo: PiUserCircleDuotone},
|
|
11
|
+
{ title: "Logout", action: () => {console.log("Logout")}, logo: PiDoorOpenDuotone},
|
|
12
12
|
],
|
|
13
13
|
isNotificationActive = false,
|
|
14
14
|
dataNotification = ["Notification 1", "Notification 2"],
|
|
@@ -62,7 +62,7 @@ const Header = ({
|
|
|
62
62
|
{dataNotification.length !== 0 && (
|
|
63
63
|
<div className='z-50 w-48 bg-white border border-neutral40 rounded-md shadow-md'>
|
|
64
64
|
{dataNotification.map((value, index) => (
|
|
65
|
-
<
|
|
65
|
+
<div
|
|
66
66
|
key={index}
|
|
67
67
|
className={`px-2 flex items-center cursor-pointer bg-white hover:bg-neutral20 p-2
|
|
68
68
|
${dataProfile.length == 1 ?
|
|
@@ -76,10 +76,10 @@ const Header = ({
|
|
|
76
76
|
: ""
|
|
77
77
|
}
|
|
78
78
|
`}
|
|
79
|
-
|
|
79
|
+
onClick={value.action}
|
|
80
80
|
>
|
|
81
81
|
<p className='text-sm'>{value}</p>
|
|
82
|
-
</
|
|
82
|
+
</div>
|
|
83
83
|
))}
|
|
84
84
|
</div>
|
|
85
85
|
)}
|
|
@@ -100,7 +100,7 @@ const Header = ({
|
|
|
100
100
|
{dataProfile.length !== 0 && (
|
|
101
101
|
<div className='z-50 w-48 bg-white border border-neutral40 rounded-md shadow-md'>
|
|
102
102
|
{dataProfile.map((value, index) => (
|
|
103
|
-
<
|
|
103
|
+
<div
|
|
104
104
|
key={index}
|
|
105
105
|
className={`px-2 flex items-center cursor-pointer bg-white hover:bg-neutral20 p-2
|
|
106
106
|
${dataProfile.length == 1 ?
|
|
@@ -114,11 +114,11 @@ const Header = ({
|
|
|
114
114
|
: ""
|
|
115
115
|
}
|
|
116
116
|
`}
|
|
117
|
-
|
|
117
|
+
onClick={value.action}
|
|
118
118
|
>
|
|
119
119
|
<value.logo size={16} className='text-neutral300 mr-2' />
|
|
120
120
|
<p className='text-sm'>{value.title}</p>
|
|
121
|
-
</
|
|
121
|
+
</div>
|
|
122
122
|
))}
|
|
123
123
|
</div>
|
|
124
124
|
)}
|
package/src/index.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
// Dokumentasi Publishing NPM :
|
|
2
|
+
// 1. Pull code
|
|
3
|
+
// 2. Change code
|
|
4
|
+
// 3. Creating dummy component in template page
|
|
5
|
+
// 4. Change version of package.json
|
|
6
|
+
// 5. npm run build
|
|
7
|
+
// 6. push to gitlab
|
|
8
|
+
// 7. npm login
|
|
9
|
+
// 8. npm publish
|
|
10
|
+
|
|
11
|
+
// Comment this code if u want to publish
|
|
1
12
|
// import './index.css';
|
|
2
13
|
|
|
3
14
|
// import { BrowserRouter as Router } from 'react-router-dom';
|
|
@@ -15,7 +26,7 @@
|
|
|
15
26
|
// </React.StrictMode>
|
|
16
27
|
// );
|
|
17
28
|
|
|
18
|
-
|
|
29
|
+
// Comment this code if u want to running template
|
|
19
30
|
import './index.css';
|
|
20
31
|
import Alert from './components/alert'
|
|
21
32
|
import DangerButton from './components/button/dangerbutton'
|
|
@@ -77,16 +88,4 @@ import Header from './components/header';
|
|
|
77
88
|
|
|
78
89
|
export {Header, Footer, CellModelOne, CellModelTwo, CellModelThree,CellModelFour,CellModelFive,CellModelSix,CellModelSeven,DetailDivision, SearchDropdown, FilterDropdown, HeaderTable, TextInput, Pagination, ReportList, ReportListClient, InternalProductList, BillerProductList, BillerList, TabBar, ChipBar, Switch, Stepper,
|
|
79
90
|
SearchInput, Notification, ModalState, ModalResult, ModalLoading, Menu, FilterText, FilterCheckbox, ExportToExcel, NotFound, EmptyData, DropzoneUploadPhoto, DropzoneUploadFile, DropdownText, DropdownChip, DropdownCard, Description, CustomDatePicker, Chip, CardInternalProduct, PrimaryButton, OutlineButton,
|
|
80
|
-
DangerButton, Alert, BillingList, ModalBilling, LimitList, ModalLimit, VerticalStepBar, DepositList, ModalDeposit, DescriptionFile}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
// Dokumentasi Publishing NPM :
|
|
85
|
-
// 1. Pull code
|
|
86
|
-
// 2. Change code
|
|
87
|
-
// 3. Creating dummy component in template page
|
|
88
|
-
// 4. Change version of package.json
|
|
89
|
-
// 5. npm run build
|
|
90
|
-
// 6. push to gitlab
|
|
91
|
-
// 7. npm login
|
|
92
|
-
// 8. npm publish
|
|
91
|
+
DangerButton, Alert, BillingList, ModalBilling, LimitList, ModalLimit, VerticalStepBar, DepositList, ModalDeposit, DescriptionFile}
|