@bigbinary/neetoui 2.0.82 → 2.0.86
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 +7 -3
- package/package.json +2 -2
- package/stories/Button.stories.jsx +9 -0
- package/stories/Sidebar.stories.jsx +49 -1
- package/v2/formik.js +7 -7
- package/v2/index.js +7 -7
- package/v2/layouts.js +7 -7
package/README.md
CHANGED
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
yarn add @bigbinary/neetoui
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
NeetoUI
|
|
12
|
-
Install it by executing following command.
|
|
11
|
+
If the project uses **NeetoUI v1**, install [Remixicons](https://remixicon.com/) as **NeetoUI v1** relies on it. It can be installed by executing following command.
|
|
13
12
|
|
|
14
13
|
```
|
|
15
14
|
yarn add remixicon
|
|
16
15
|
```
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
Then import the Remixicon styles in your `application.scss` file by doing
|
|
19
18
|
|
|
20
19
|
```
|
|
21
20
|
import 'remixicon/fonts/remixicon.css'
|
|
@@ -48,3 +47,8 @@ v2 : https://neetoui-v2.netlify.app
|
|
|
48
47
|
## Theming
|
|
49
48
|
|
|
50
49
|
Theme override gist: [Override Gist](https://gist.github.com/goutham-subramanyam/d0619f8d089b10e7474a32478110ea0f)
|
|
50
|
+
|
|
51
|
+
## Other Libraries
|
|
52
|
+
|
|
53
|
+
- [neetoIcons](https://github.com/bigbinary/neeto-icons): **NeetoIcons** is the official icons library from BigBinary.
|
|
54
|
+
- [neetoUtils](https://github.com/bigbinary/neeto-utils): **NeetoUtils** is a collection of react hooks and utility functions used at BigBinary.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neetoui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.86",
|
|
4
4
|
"main": "./neetoui.js",
|
|
5
5
|
"author": "BigBinary",
|
|
6
6
|
"license": "MIT",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"react-toastify": "^8.0.2"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@bigbinary/neeto-icons": "^1.7.
|
|
85
|
+
"@bigbinary/neeto-icons": "^1.7.6",
|
|
86
86
|
"@popperjs/core": "^2.9.2",
|
|
87
87
|
"@reach/auto-id": "^0.15.0",
|
|
88
88
|
"@tailwindcss/forms": "^0.3.2",
|
|
@@ -48,6 +48,15 @@ Link.args = {
|
|
|
48
48
|
label: "Button",
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
+
export const Tooltip = Template.bind({});
|
|
52
|
+
Tooltip.args = {
|
|
53
|
+
label: "Tooltip button",
|
|
54
|
+
tooltipProps: {
|
|
55
|
+
content: "Top",
|
|
56
|
+
placement: "top",
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
|
|
51
60
|
export const AllVariants = () => {
|
|
52
61
|
const [loading, setLoading] = useState(false);
|
|
53
62
|
const toggle = () => {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState } from "react";
|
|
2
2
|
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
|
|
3
|
+
|
|
3
4
|
import Sidebar from "../lib/components/layouts/Sidebar";
|
|
5
|
+
import AppSwitcher from "../lib/components/layouts/AppSwitcher";
|
|
4
6
|
import { NAV_LINKS, COMPONENT_MAPPING } from "../example/src/constants";
|
|
5
7
|
|
|
6
8
|
export default {
|
|
@@ -52,6 +54,50 @@ const Template = (args) => {
|
|
|
52
54
|
|
|
53
55
|
export const Sidenav = Template.bind({});
|
|
54
56
|
Sidenav.args = {
|
|
57
|
+
organizationInfo: {
|
|
58
|
+
name: "neetoUI",
|
|
59
|
+
subdomain: "neetoui.netlify.app",
|
|
60
|
+
},
|
|
61
|
+
navLinks: NAV_LINKS,
|
|
62
|
+
profileInfo: {
|
|
63
|
+
name: "Kieran Miller",
|
|
64
|
+
imageUrl: "https://randomuser.me/api/portraits/women/90.jpg",
|
|
65
|
+
dropdownProps: [
|
|
66
|
+
{
|
|
67
|
+
label: "Edit",
|
|
68
|
+
onClick: () => {},
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: "Logout",
|
|
72
|
+
onClick: () => {},
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
showAppSwitcher: true,
|
|
77
|
+
appName: "neetoUI",
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const SidebarWithAppSwitcher = (args) => {
|
|
81
|
+
const [isAppSwitcherOpen, setIsAppSwitcherOpen] = useState(false);
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<Router>
|
|
85
|
+
<Sidebar
|
|
86
|
+
{...args}
|
|
87
|
+
onAppSwitcherToggle={() => setIsAppSwitcherOpen((isOpen) => !isOpen)}
|
|
88
|
+
toggleAppSwitcher={isAppSwitcherOpen}
|
|
89
|
+
/>
|
|
90
|
+
<AppSwitcher
|
|
91
|
+
isOpen={isAppSwitcherOpen}
|
|
92
|
+
onClose={() => setIsAppSwitcherOpen(false)}
|
|
93
|
+
v2
|
|
94
|
+
/>
|
|
95
|
+
</Router>
|
|
96
|
+
);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
SidebarWithAppSwitcher.storyName = "Sidebar with AppSwitcher"
|
|
100
|
+
SidebarWithAppSwitcher.args = {
|
|
55
101
|
organizationInfo: {
|
|
56
102
|
name: "neetoUI",
|
|
57
103
|
subdomain: "neetoui.netlify.app",
|
|
@@ -72,4 +118,6 @@ Sidenav.args = {
|
|
|
72
118
|
},
|
|
73
119
|
],
|
|
74
120
|
},
|
|
121
|
+
showAppSwitcher: true,
|
|
122
|
+
appName: "neetoUI",
|
|
75
123
|
};
|