@bigbinary/neeto-folders-frontend 2.0.24 → 2.0.26
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 +24 -0
- package/dist/cjs/components.js +179 -87
- package/dist/cjs/components.js.map +1 -1
- package/dist/components.js +179 -88
- package/dist/components.js.map +1 -1
- package/package.json +10 -10
- package/types.d.ts +7 -0
package/README.md
CHANGED
|
@@ -266,6 +266,30 @@ import * as components from "@bigbinary/neeto-folders-frontend/components";
|
|
|
266
266
|
/>;
|
|
267
267
|
```
|
|
268
268
|
|
|
269
|
+
5. `AddEditPane`: This component can be used in host applications to add or edit folders.
|
|
270
|
+
|
|
271
|
+
##### Props:
|
|
272
|
+
|
|
273
|
+
- `config`: A config object to customize the folders behavior.
|
|
274
|
+
|
|
275
|
+
- `onClose()`: Callback invoked when the pane is closed.
|
|
276
|
+
|
|
277
|
+
- `folderSid`: It is optional. The SID of the parent folder where new folder should be created. If not provided, uses the active folder from URL.
|
|
278
|
+
|
|
279
|
+
- `setFocusField`: Ref callback to set focus on the name input field when pane opens.
|
|
280
|
+
|
|
281
|
+
Sample usage:
|
|
282
|
+
|
|
283
|
+
```jsx
|
|
284
|
+
import { AddEditPane } from "@bigbinary/neeto-folders-frontend/components";
|
|
285
|
+
// ....
|
|
286
|
+
<AddEditPane
|
|
287
|
+
{...{ setFocusField, onClose }}
|
|
288
|
+
config={foldersConfig}
|
|
289
|
+
folderSid={selectedFolderSid}
|
|
290
|
+
/>;
|
|
291
|
+
```
|
|
292
|
+
|
|
269
293
|
#### Hooks
|
|
270
294
|
|
|
271
295
|
```js
|