@bigbinary/neeto-team-members-frontend 2.11.4 → 2.12.0
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/README.md +31 -3
- package/app/javascript/src/translations/en.json +32 -0
- package/dist/index.cjs.js +470 -83
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +454 -69
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +8 -0
package/README.md
CHANGED
|
@@ -9,9 +9,9 @@ The `neeto-team-members-nano` facilitates the administration of team members wit
|
|
|
9
9
|
- [Installation](#installation)
|
|
10
10
|
- [Usage](#usage)
|
|
11
11
|
- [Frontend package](#frontend-package)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
- [Installation](#installation-1)
|
|
13
|
+
- [Instructions for development](#instructions-for-development)
|
|
14
|
+
- [Components](#components)
|
|
15
15
|
2. [Instructions for Publishing](#instructions-for-publishing)
|
|
16
16
|
|
|
17
17
|
## Development with Host Application
|
|
@@ -91,6 +91,7 @@ Check the [Frontend package development guide](https://neeto-engineering.neetokb
|
|
|
91
91
|
### Components
|
|
92
92
|
|
|
93
93
|
#### `Roles`
|
|
94
|
+
|
|
94
95
|

|
|
95
96
|
|
|
96
97
|
This component manages team roles. It includes functionalities such as adding roles and allowing updates to roles with associated permissions.
|
|
@@ -270,6 +271,33 @@ const App = () => (
|
|
|
270
271
|
export default App;
|
|
271
272
|
```
|
|
272
273
|
|
|
274
|
+
##### `Profile`
|
|
275
|
+
|
|
276
|
+
The `Profile` component encapsulates the user profile functionality, integrating a `Pane` component for displaying profile details and a `usePaneState` hook to efficiently manage the state associated with the `Pane`.
|
|
277
|
+
|
|
278
|
+
1. `Profile.Pane`: The component is a pane-based interface for viewing and editing the user's profile details.
|
|
279
|
+
|
|
280
|
+

|
|
281
|
+
|
|
282
|
+
2. `Profile.usePaneState`: A hook to manage the state of the profile pane.
|
|
283
|
+
|
|
284
|
+
###### Usage
|
|
285
|
+
|
|
286
|
+
```jsx
|
|
287
|
+
import { Profile } from "@bigbinary/neeto-team-members-frontend";
|
|
288
|
+
|
|
289
|
+
const [isOpen, setIsOpen] = Profile.usePaneState();
|
|
290
|
+
|
|
291
|
+
return (
|
|
292
|
+
<>
|
|
293
|
+
<button onClick={() => setIsOpen(true)}> Open profile pane</button>
|
|
294
|
+
<button onClick={() => setIsOpen(prevIsOpen => !prevIsOpen)}>
|
|
295
|
+
Toggle Profile pane
|
|
296
|
+
</button>
|
|
297
|
+
</>
|
|
298
|
+
);
|
|
299
|
+
```
|
|
300
|
+
|
|
273
301
|
## Instructions for Publishing
|
|
274
302
|
|
|
275
303
|
Consult the [building and releasing packages](https://neeto-engineering.neetokb.com/articles/building-and-releasing-packages) guide for details on how to publish.
|
|
@@ -124,6 +124,38 @@
|
|
|
124
124
|
"roleRequired": "Please select a role.",
|
|
125
125
|
"removeSpaces": "Please remove the spaces.",
|
|
126
126
|
"validEmail": "Please ensure that all email addresses are valid."
|
|
127
|
+
},
|
|
128
|
+
"profile": {
|
|
129
|
+
"common": {
|
|
130
|
+
"myProfile": "My Profile",
|
|
131
|
+
"mmddyy": "MM/DD/YYYY",
|
|
132
|
+
"ddmmyy": "DD/MM/YYYY",
|
|
133
|
+
"timeZoneOption": "{{timeZone}} - {{currentTime}}",
|
|
134
|
+
"toUpdateProfile": "To update more information visit:",
|
|
135
|
+
"neetoAuth": "neetoAuth"
|
|
136
|
+
},
|
|
137
|
+
"inputs": {
|
|
138
|
+
"label": {
|
|
139
|
+
"firstName": "First name",
|
|
140
|
+
"lastName": "Last name",
|
|
141
|
+
"selectCountry": "Select country",
|
|
142
|
+
"selectTimeZone": "Select time zone",
|
|
143
|
+
"dateFormat": "Date format"
|
|
144
|
+
},
|
|
145
|
+
"placeholder": {
|
|
146
|
+
"firstName": "First name",
|
|
147
|
+
"lastName": "Last name"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"form": {
|
|
151
|
+
"isRequired": {
|
|
152
|
+
"firstName": "First name is required",
|
|
153
|
+
"lastName": "Last name is required",
|
|
154
|
+
"dateFormat": "Date format is required"
|
|
155
|
+
},
|
|
156
|
+
"invalidName": "Use only letters, numbers, spaces, commas, periods, apostrophes, and hyphens.",
|
|
157
|
+
"dotsNotAllowed": "Dots are not allowed"
|
|
158
|
+
}
|
|
127
159
|
}
|
|
128
160
|
}
|
|
129
161
|
}
|