@bigbinary/neetoui 2.0.89 → 2.0.93
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/package.json +2 -2
- package/v2/formik.js +2 -2
- package/v2/index.js +2 -2
- package/v2/layouts.js +5 -5
- package/stories/Alert.stories.jsx +0 -38
- package/stories/Avatar.stories.jsx +0 -178
- package/stories/Button.stories.jsx +0 -451
- package/stories/Callout.stories.jsx +0 -37
- package/stories/Checkout.stories.jsx +0 -46
- package/stories/Color.stories.mdx +0 -170
- package/stories/Dropdown.stories.jsx +0 -104
- package/stories/Header.stories.jsx +0 -45
- package/stories/HelpersBorderColor.stories.mdx +0 -162
- package/stories/HelpersBoxShadows.stories.mdx +0 -83
- package/stories/HelpersColor.stories.mdx +0 -170
- package/stories/Iconography.stories.jsx +0 -120
- package/stories/Input.stories.jsx +0 -187
- package/stories/Introduction.stories.mdx +0 -103
- package/stories/Label.stories.jsx +0 -29
- package/stories/Layouts.stories.jsx +0 -246
- package/stories/MenuBar.stories.jsx +0 -119
- package/stories/Modal.stories.jsx +0 -183
- package/stories/PageLoader.stories.jsx +0 -41
- package/stories/Pagination.stories.jsx +0 -26
- package/stories/Pane.stories.jsx +0 -67
- package/stories/Radio.stories.jsx +0 -34
- package/stories/Select.stories.jsx +0 -162
- package/stories/Sidebar.stories.jsx +0 -123
- package/stories/SubHeader.stories.jsx +0 -39
- package/stories/Switch.stories.jsx +0 -52
- package/stories/Tab.stories.jsx +0 -71
- package/stories/Tag.stories.jsx +0 -149
- package/stories/Textarea.stories.jsx +0 -55
- package/stories/Toastr.stories.jsx +0 -63
- package/stories/Tooltip.stories.jsx +0 -137
- package/stories/Typography.stories.jsx +0 -134
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from "react";
|
|
2
|
-
import {
|
|
3
|
-
MenuHorizontal,
|
|
4
|
-
Settings,
|
|
5
|
-
Plus,
|
|
6
|
-
Search,
|
|
7
|
-
} from "@bigbinary/neeto-icons";
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
Header,
|
|
11
|
-
SubHeader,
|
|
12
|
-
Container,
|
|
13
|
-
Scrollable,
|
|
14
|
-
MenuBar,
|
|
15
|
-
} from "../lib/components/layouts";
|
|
16
|
-
import {
|
|
17
|
-
Button,
|
|
18
|
-
PageLoader,
|
|
19
|
-
Pagination,
|
|
20
|
-
Checkbox,
|
|
21
|
-
Dropdown,
|
|
22
|
-
Typography
|
|
23
|
-
} from "../lib/components";
|
|
24
|
-
|
|
25
|
-
export default {
|
|
26
|
-
title: "Layouts/Page",
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const SidebarHandleIcon = ({ size, color }) => {
|
|
30
|
-
return (
|
|
31
|
-
<svg
|
|
32
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
33
|
-
width={size}
|
|
34
|
-
height={size}
|
|
35
|
-
fill="none"
|
|
36
|
-
viewBox="0 0 24 24"
|
|
37
|
-
>
|
|
38
|
-
<path stroke={color} strokeWidth="1.5" d="M3 7.25L21 7.25"></path>
|
|
39
|
-
<path stroke={color} strokeWidth="1.5" d="M3 11.25L15 11.25"></path>
|
|
40
|
-
<path stroke={color} strokeWidth="1.5" d="M3 15.25L11 15.25"></path>
|
|
41
|
-
</svg>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const Page = () => {
|
|
46
|
-
const [searchString, setSearchString] = useState("");
|
|
47
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
48
|
-
const [showMenu, setShowMenu] = useState(false);
|
|
49
|
-
const [isSearchCollapsed, setIsSearchCollapsed] = useState(true);
|
|
50
|
-
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
setTimeout(() => {
|
|
53
|
-
setIsLoading(false);
|
|
54
|
-
}, 2000);
|
|
55
|
-
}, []);
|
|
56
|
-
|
|
57
|
-
return (
|
|
58
|
-
<div className="flex">
|
|
59
|
-
<MenuBar
|
|
60
|
-
showMenu={showMenu}
|
|
61
|
-
title="Contacts"
|
|
62
|
-
>
|
|
63
|
-
<MenuBar.Block label="All" count={13} active />
|
|
64
|
-
<MenuBar.Block label="Users" count={2} />
|
|
65
|
-
<MenuBar.Block label="Leads" count={7} />
|
|
66
|
-
<MenuBar.Block label="Visitors" count={4} />
|
|
67
|
-
|
|
68
|
-
<MenuBar.SubTitle
|
|
69
|
-
iconProps={[
|
|
70
|
-
{
|
|
71
|
-
icon: () => <Search size={20} />,
|
|
72
|
-
onClick: () => setIsSearchCollapsed(!isSearchCollapsed),
|
|
73
|
-
},
|
|
74
|
-
]}
|
|
75
|
-
>
|
|
76
|
-
<Typography
|
|
77
|
-
component="h4"
|
|
78
|
-
style="h5"
|
|
79
|
-
textTransform="uppercase"
|
|
80
|
-
weight="bold"
|
|
81
|
-
>
|
|
82
|
-
Segments
|
|
83
|
-
</Typography>
|
|
84
|
-
</MenuBar.SubTitle>
|
|
85
|
-
<MenuBar.Search
|
|
86
|
-
collapse={isSearchCollapsed}
|
|
87
|
-
onCollapse={() => setIsSearchCollapsed(true)}
|
|
88
|
-
/>
|
|
89
|
-
<MenuBar.Block label="Europe" count={80} />
|
|
90
|
-
<MenuBar.Block label="Middle-East" count={60} />
|
|
91
|
-
<MenuBar.Block label="Asia" count={60} />
|
|
92
|
-
<MenuBar.AddNew label="Add New Segments" />
|
|
93
|
-
<MenuBar.SubTitle
|
|
94
|
-
iconProps={[
|
|
95
|
-
{
|
|
96
|
-
icon: () => <Settings size={20} />,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
icon: () => <Plus size={20} />,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
icon: () => <Search size={20} />,
|
|
103
|
-
},
|
|
104
|
-
]}
|
|
105
|
-
>
|
|
106
|
-
<Typography
|
|
107
|
-
component="h4"
|
|
108
|
-
style="h5"
|
|
109
|
-
textTransform="uppercase"
|
|
110
|
-
weight="bold"
|
|
111
|
-
>
|
|
112
|
-
Tags
|
|
113
|
-
</Typography>
|
|
114
|
-
</MenuBar.SubTitle>
|
|
115
|
-
<MenuBar.Block label="Europe" count={80} />
|
|
116
|
-
<MenuBar.Block label="Middle-East" count={60} />
|
|
117
|
-
<MenuBar.Block label="Asia" count={60} />
|
|
118
|
-
<MenuBar.AddNew label="Add New Tag" />
|
|
119
|
-
|
|
120
|
-
<MenuBar.Item
|
|
121
|
-
label="General"
|
|
122
|
-
description="Welcome Message, KB and Labels "
|
|
123
|
-
/>
|
|
124
|
-
<MenuBar.Item
|
|
125
|
-
label="Styling"
|
|
126
|
-
active
|
|
127
|
-
description="Brand Color, Logo and Widget Position"
|
|
128
|
-
/>
|
|
129
|
-
<MenuBar.Item
|
|
130
|
-
label="Widget Icon"
|
|
131
|
-
description="Position, Icon and Label"
|
|
132
|
-
/>
|
|
133
|
-
</MenuBar>
|
|
134
|
-
<Container>
|
|
135
|
-
<Header
|
|
136
|
-
title="Layouts"
|
|
137
|
-
actionBlock={<Button label="Primary Action" />}
|
|
138
|
-
menuBarHandle={
|
|
139
|
-
<Button
|
|
140
|
-
style="text"
|
|
141
|
-
className="mr-2"
|
|
142
|
-
icon={() => <SidebarHandleIcon size={20} color={"#68737D"} />}
|
|
143
|
-
onClick={() => setShowMenu(!showMenu)}
|
|
144
|
-
/>
|
|
145
|
-
}
|
|
146
|
-
/>
|
|
147
|
-
<SubHeader
|
|
148
|
-
searchProps={{
|
|
149
|
-
value: searchString,
|
|
150
|
-
onChange: (e) => setSearchString(e.target.value),
|
|
151
|
-
}}
|
|
152
|
-
deleteButtonProps={{
|
|
153
|
-
count: 0,
|
|
154
|
-
selectedIDs: [],
|
|
155
|
-
onClick: () => {},
|
|
156
|
-
}}
|
|
157
|
-
disableButtonProps={{
|
|
158
|
-
count: 0,
|
|
159
|
-
selectedIDs: [],
|
|
160
|
-
onClick: () => {},
|
|
161
|
-
}}
|
|
162
|
-
/>
|
|
163
|
-
<Scrollable className="w-full">
|
|
164
|
-
{isLoading ? (
|
|
165
|
-
<PageLoader />
|
|
166
|
-
) : (
|
|
167
|
-
<table
|
|
168
|
-
className={`neeto-ui-table neeto-ui-table--checkbox neeto-ui-table--actions`}
|
|
169
|
-
>
|
|
170
|
-
<thead>
|
|
171
|
-
<tr>
|
|
172
|
-
<th>
|
|
173
|
-
<Checkbox name="header" />
|
|
174
|
-
</th>
|
|
175
|
-
<th>Name</th>
|
|
176
|
-
<th>Email</th>
|
|
177
|
-
<th>Company</th>
|
|
178
|
-
<th>Phone No</th>
|
|
179
|
-
<th></th>
|
|
180
|
-
</tr>
|
|
181
|
-
</thead>
|
|
182
|
-
<tbody>
|
|
183
|
-
{Array(50)
|
|
184
|
-
.fill()
|
|
185
|
-
.map((_, index) => (
|
|
186
|
-
<React.Fragment key={index}>
|
|
187
|
-
<tr>
|
|
188
|
-
<td>
|
|
189
|
-
<Checkbox name="1" />
|
|
190
|
-
</td>
|
|
191
|
-
<td>Goutham Subramanyam</td>
|
|
192
|
-
<td>goutham.subramanyam@bigbinary.com</td>
|
|
193
|
-
<td>BigBinary</td>
|
|
194
|
-
<td>+91 9633123456</td>
|
|
195
|
-
<td>
|
|
196
|
-
<div className="flex flex-row items-center justify-end space-x-3">
|
|
197
|
-
<Dropdown
|
|
198
|
-
icon={MenuHorizontal}
|
|
199
|
-
buttonStyle="icon"
|
|
200
|
-
autoWidth
|
|
201
|
-
>
|
|
202
|
-
<li>Edit</li>
|
|
203
|
-
<li>Delete</li>
|
|
204
|
-
</Dropdown>
|
|
205
|
-
</div>
|
|
206
|
-
</td>
|
|
207
|
-
</tr>
|
|
208
|
-
<tr>
|
|
209
|
-
<td>
|
|
210
|
-
<Checkbox name="2" />
|
|
211
|
-
</td>
|
|
212
|
-
<td>Edwin Babu</td>
|
|
213
|
-
<td>edwin.babu@bigbinary.com</td>
|
|
214
|
-
<td>BigBinary</td>
|
|
215
|
-
<td>+91 8281331983</td>
|
|
216
|
-
<td>
|
|
217
|
-
<div className="flex flex-row items-center justify-end space-x-3">
|
|
218
|
-
<Dropdown
|
|
219
|
-
icon={MenuHorizontal}
|
|
220
|
-
buttonStyle="icon"
|
|
221
|
-
autoWidth
|
|
222
|
-
>
|
|
223
|
-
<li>Edit</li>
|
|
224
|
-
<li>Delete</li>
|
|
225
|
-
</Dropdown>
|
|
226
|
-
</div>
|
|
227
|
-
</td>
|
|
228
|
-
</tr>
|
|
229
|
-
</React.Fragment>
|
|
230
|
-
))}
|
|
231
|
-
</tbody>
|
|
232
|
-
</table>
|
|
233
|
-
)}
|
|
234
|
-
</Scrollable>
|
|
235
|
-
<div className="flex flex-row items-center justify-end w-full mt-6 mb-8">
|
|
236
|
-
<Pagination
|
|
237
|
-
count={300}
|
|
238
|
-
pageNo={1}
|
|
239
|
-
pageSize={25}
|
|
240
|
-
navigate={() => {}}
|
|
241
|
-
/>
|
|
242
|
-
</div>
|
|
243
|
-
</Container>
|
|
244
|
-
</div>
|
|
245
|
-
);
|
|
246
|
-
};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { Settings, Plus, Search } from "@bigbinary/neeto-icons";
|
|
3
|
-
|
|
4
|
-
import { Container, MenuBar } from "../lib/components/layouts";
|
|
5
|
-
import { Button, Typography } from "../lib/components";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: "Layouts/MenuBar",
|
|
9
|
-
component: MenuBar,
|
|
10
|
-
subcomponents: {
|
|
11
|
-
Block: MenuBar.Block,
|
|
12
|
-
AddNew: MenuBar.AddNew,
|
|
13
|
-
SubTitle: MenuBar.SubTitle,
|
|
14
|
-
Search: MenuBar.Search,
|
|
15
|
-
Item: MenuBar.Item,
|
|
16
|
-
},
|
|
17
|
-
parameters: {
|
|
18
|
-
docs: {
|
|
19
|
-
description: {
|
|
20
|
-
component: '`import { MenuBar } from "@bigbinary/neetoui/v2/layouts";`',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const MenuBarStory = () => {
|
|
27
|
-
const [showMenu, setShowMenu] = useState(false);
|
|
28
|
-
const [isSearchCollapsed, setIsSearchCollapsed] = useState(true);
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<div className="flex">
|
|
32
|
-
<MenuBar
|
|
33
|
-
showMenu={showMenu}
|
|
34
|
-
title="Contacts"
|
|
35
|
-
>
|
|
36
|
-
<MenuBar.Block label="All" count={13} active />
|
|
37
|
-
<MenuBar.Block label="Users" count={2} />
|
|
38
|
-
<MenuBar.Block label="Leads" count={7} />
|
|
39
|
-
<MenuBar.Block label="Visitors" count={4} />
|
|
40
|
-
|
|
41
|
-
<MenuBar.SubTitle
|
|
42
|
-
iconProps={[
|
|
43
|
-
{
|
|
44
|
-
icon: () => <Search size={20} />,
|
|
45
|
-
onClick: () => setIsSearchCollapsed(!isSearchCollapsed),
|
|
46
|
-
},
|
|
47
|
-
]}
|
|
48
|
-
>
|
|
49
|
-
<Typography
|
|
50
|
-
component="h4"
|
|
51
|
-
style="h5"
|
|
52
|
-
textTransform="uppercase"
|
|
53
|
-
weight="bold"
|
|
54
|
-
>
|
|
55
|
-
Segments
|
|
56
|
-
</Typography>
|
|
57
|
-
</MenuBar.SubTitle>
|
|
58
|
-
<MenuBar.Search
|
|
59
|
-
collapse={isSearchCollapsed}
|
|
60
|
-
onCollapse={() => setIsSearchCollapsed(true)}
|
|
61
|
-
/>
|
|
62
|
-
<MenuBar.Block label="Europe" count={80} />
|
|
63
|
-
<MenuBar.Block label="Middle-East" count={60} />
|
|
64
|
-
<MenuBar.Block label="Asia" count={60} />
|
|
65
|
-
<MenuBar.AddNew label="Add New Segments" />
|
|
66
|
-
<MenuBar.SubTitle
|
|
67
|
-
iconProps={[
|
|
68
|
-
{
|
|
69
|
-
icon: () => <Settings size={20} />,
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
icon: () => <Plus size={20} />,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
icon: () => <Search size={20} />,
|
|
76
|
-
},
|
|
77
|
-
]}
|
|
78
|
-
>
|
|
79
|
-
<Typography
|
|
80
|
-
component="h4"
|
|
81
|
-
style="h5"
|
|
82
|
-
textTransform="uppercase"
|
|
83
|
-
weight="bold"
|
|
84
|
-
>
|
|
85
|
-
Tags
|
|
86
|
-
</Typography>
|
|
87
|
-
</MenuBar.SubTitle>
|
|
88
|
-
<MenuBar.Block label="Europe" count={80} />
|
|
89
|
-
<MenuBar.Block label="Middle-East" count={60} />
|
|
90
|
-
<MenuBar.Block label="Asia" count={60} />
|
|
91
|
-
<MenuBar.AddNew label="Add New Tag" />
|
|
92
|
-
|
|
93
|
-
<MenuBar.Item
|
|
94
|
-
label="General"
|
|
95
|
-
description="Welcome Message, KB and Labels "
|
|
96
|
-
/>
|
|
97
|
-
<MenuBar.Item
|
|
98
|
-
label="Styling"
|
|
99
|
-
active
|
|
100
|
-
description="Brand Color, Logo and Widget Position"
|
|
101
|
-
/>
|
|
102
|
-
<MenuBar.Item
|
|
103
|
-
label="Widget Icon"
|
|
104
|
-
description="Position, Icon and Label"
|
|
105
|
-
/>
|
|
106
|
-
</MenuBar>
|
|
107
|
-
<Container>
|
|
108
|
-
<div className="flex items-center justify-center w-full h-full">
|
|
109
|
-
<Button
|
|
110
|
-
label={`${showMenu ? "Close" : "Open"} MenuBar`}
|
|
111
|
-
onClick={() => setShowMenu(!showMenu)}
|
|
112
|
-
/>
|
|
113
|
-
</div>
|
|
114
|
-
</Container>
|
|
115
|
-
</div>
|
|
116
|
-
);
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
MenuBarStory.storyName = "MenuBar";
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { Check } from "@bigbinary/neeto-icons";
|
|
3
|
-
|
|
4
|
-
import Button from "../lib/components/Button";
|
|
5
|
-
import Modal from "../lib/components/Modal";
|
|
6
|
-
import Typography from "../lib/components/Typography";
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: "Overlays/Modal",
|
|
10
|
-
component: Modal,
|
|
11
|
-
subcomponents: { Button },
|
|
12
|
-
parameters: {
|
|
13
|
-
layout: "padded",
|
|
14
|
-
docs: {
|
|
15
|
-
description: {
|
|
16
|
-
component: '`import { Modal } from "@bigbinary/neetoui/v2";`',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export const Default = () => {
|
|
23
|
-
const [showModal, setShowModal] = useState(false);
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<div className="w-full">
|
|
27
|
-
<div className="space-y-6">
|
|
28
|
-
<div className="w-1/2 space-y-8">
|
|
29
|
-
<div className="flex flex-row items-center justify-start space-x-6">
|
|
30
|
-
<Button label="Show Modal" onClick={() => setShowModal(true)} />
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<Modal isOpen={showModal} onClose={() => setShowModal(false)}>
|
|
36
|
-
<Modal.Header>
|
|
37
|
-
<Typography style="h2">They're creepy & they're kooky</Typography>
|
|
38
|
-
</Modal.Header>
|
|
39
|
-
<Modal.Body>
|
|
40
|
-
<Typography style="body2" lineHeight="normal">
|
|
41
|
-
Somewhere out in space live The Herculoids! Zok, the laser-ray
|
|
42
|
-
dragon! Igoo, the giant rock ape! Tundro, the tremendous! Gloop and
|
|
43
|
-
Gleep, the formless, fearless wonders! With Zandor, their leader,
|
|
44
|
-
and his wife, Tara, and son, Dorno, they team up to protect their
|
|
45
|
-
planet from sinister invaders! All-strong! All-brave! All-heroes!
|
|
46
|
-
They're The Herculoids!
|
|
47
|
-
</Typography>
|
|
48
|
-
</Modal.Body>
|
|
49
|
-
<Modal.Footer className="space-x-2">
|
|
50
|
-
<Button
|
|
51
|
-
icon={Check}
|
|
52
|
-
label="Continue"
|
|
53
|
-
onClick={() => setShowModal(false)}
|
|
54
|
-
size="large"
|
|
55
|
-
/>
|
|
56
|
-
<Button
|
|
57
|
-
style="text"
|
|
58
|
-
label="Cancel"
|
|
59
|
-
onClick={() => setShowModal(false)}
|
|
60
|
-
size="large"
|
|
61
|
-
/>
|
|
62
|
-
</Modal.Footer>
|
|
63
|
-
</Modal>
|
|
64
|
-
</div>
|
|
65
|
-
);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const ModalSizing = () => {
|
|
69
|
-
const [showModalExtraSmall, setShowModalExtraSmall] = useState(false);
|
|
70
|
-
const [showModalSmall, setShowModalSmall] = useState(false);
|
|
71
|
-
const [showModalMedium, setShowModalMedium] = useState(false);
|
|
72
|
-
|
|
73
|
-
return (
|
|
74
|
-
<div className="w-full">
|
|
75
|
-
<div className="space-y-6">
|
|
76
|
-
<div className="w-1/2 space-y-8">
|
|
77
|
-
<div className="flex flex-row items-center justify-start space-x-6">
|
|
78
|
-
<Button
|
|
79
|
-
label="Extra Small"
|
|
80
|
-
onClick={() => setShowModalExtraSmall(true)}
|
|
81
|
-
/>
|
|
82
|
-
<Button label="Small" onClick={() => setShowModalSmall(true)} />
|
|
83
|
-
<Button label="Medium" onClick={() => setShowModalMedium(true)} />
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<Modal
|
|
89
|
-
isOpen={showModalExtraSmall}
|
|
90
|
-
onClose={() => setShowModalExtraSmall(false)}
|
|
91
|
-
size="xs"
|
|
92
|
-
>
|
|
93
|
-
<Modal.Header>
|
|
94
|
-
<Typography style="h2">They're creepy & they're kooky</Typography>
|
|
95
|
-
</Modal.Header>
|
|
96
|
-
<Modal.Body>
|
|
97
|
-
<Typography style="body2" lineHeight="normal">
|
|
98
|
-
Somewhere out in space live The Herculoids! Zok, the laser-ray
|
|
99
|
-
dragon! Igoo, the giant rock ape! Tundro, the tremendous!
|
|
100
|
-
</Typography>
|
|
101
|
-
</Modal.Body>
|
|
102
|
-
<Modal.Footer className="space-x-2">
|
|
103
|
-
<Button
|
|
104
|
-
icon={Check}
|
|
105
|
-
size="large"
|
|
106
|
-
label="Continue"
|
|
107
|
-
onClick={() => setShowModalExtraSmall(false)}
|
|
108
|
-
/>
|
|
109
|
-
<Button
|
|
110
|
-
style="text"
|
|
111
|
-
size="large"
|
|
112
|
-
label="Cancel"
|
|
113
|
-
onClick={() => setShowModalExtraSmall(false)}
|
|
114
|
-
/>
|
|
115
|
-
</Modal.Footer>
|
|
116
|
-
</Modal>
|
|
117
|
-
|
|
118
|
-
<Modal
|
|
119
|
-
isOpen={showModalSmall}
|
|
120
|
-
onClose={() => setShowModalSmall(false)}
|
|
121
|
-
size="sm"
|
|
122
|
-
>
|
|
123
|
-
<Modal.Header>
|
|
124
|
-
<Typography style="h2">They're creepy & they're kooky</Typography>
|
|
125
|
-
</Modal.Header>
|
|
126
|
-
<Modal.Body>
|
|
127
|
-
<Typography style="body2" lineHeight="normal">
|
|
128
|
-
Somewhere out in space live The Herculoids! Zok, the laser-ray
|
|
129
|
-
dragon! Igoo, the giant rock ape! Tundro, the tremendous!
|
|
130
|
-
</Typography>
|
|
131
|
-
</Modal.Body>
|
|
132
|
-
<Modal.Footer className="space-x-2">
|
|
133
|
-
<Button
|
|
134
|
-
icon={Check}
|
|
135
|
-
size="large"
|
|
136
|
-
label="Continue"
|
|
137
|
-
onClick={() => setShowModalSmall(false)}
|
|
138
|
-
/>
|
|
139
|
-
<Button
|
|
140
|
-
style="text"
|
|
141
|
-
size="large"
|
|
142
|
-
label="Cancel"
|
|
143
|
-
onClick={() => setShowModalSmall(false)}
|
|
144
|
-
/>
|
|
145
|
-
</Modal.Footer>
|
|
146
|
-
</Modal>
|
|
147
|
-
|
|
148
|
-
<Modal
|
|
149
|
-
isOpen={showModalMedium}
|
|
150
|
-
onClose={() => setShowModalMedium(false)}
|
|
151
|
-
size="md"
|
|
152
|
-
>
|
|
153
|
-
<Modal.Header>
|
|
154
|
-
<Typography style="h2">They're creepy & they're kooky</Typography>
|
|
155
|
-
</Modal.Header>
|
|
156
|
-
<Modal.Body>
|
|
157
|
-
<Typography style="body2" lineHeight="normal">
|
|
158
|
-
Somewhere out in space live The Herculoids! Zok, the laser-ray
|
|
159
|
-
dragon! Igoo, the giant rock ape! Tundro, the tremendous! Gloop and
|
|
160
|
-
Gleep, the formless, fearless wonders! With Zandor, their leader,
|
|
161
|
-
and his wife, Tara, and son, Dorno, they team up to protect their
|
|
162
|
-
planet from sinister invaders! All-strong! All-brave! All-heroes!
|
|
163
|
-
They're The Herculoids!
|
|
164
|
-
</Typography>
|
|
165
|
-
</Modal.Body>
|
|
166
|
-
<Modal.Footer className="space-x-2">
|
|
167
|
-
<Button
|
|
168
|
-
icon={Check}
|
|
169
|
-
size="large"
|
|
170
|
-
label="Continue"
|
|
171
|
-
onClick={() => setShowModalMedium(false)}
|
|
172
|
-
/>
|
|
173
|
-
<Button
|
|
174
|
-
style="text"
|
|
175
|
-
size="large"
|
|
176
|
-
label="Cancel"
|
|
177
|
-
onClick={() => setShowModalMedium(false)}
|
|
178
|
-
/>
|
|
179
|
-
</Modal.Footer>
|
|
180
|
-
</Modal>
|
|
181
|
-
</div>
|
|
182
|
-
);
|
|
183
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
|
|
3
|
-
import PageLoader from "../lib/components/PageLoader";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/PageLoader",
|
|
7
|
-
component: PageLoader,
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: "padded",
|
|
10
|
-
docs: {
|
|
11
|
-
description: {
|
|
12
|
-
component: '`import { PageLoader } from "@bigbinary/neetoui/v2";`',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const Template = (args) => (
|
|
19
|
-
<div className="py-10">
|
|
20
|
-
<PageLoader {...args} />
|
|
21
|
-
</div>
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
export const BasicUsage = Template.bind({});
|
|
25
|
-
BasicUsage.args = {};
|
|
26
|
-
|
|
27
|
-
export const LoadingText = () => {
|
|
28
|
-
const [value, setValue] = useState(0);
|
|
29
|
-
setTimeout(() => setValue(value + 1), 1000);
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<div className="py-10">
|
|
33
|
-
<PageLoader text={`Please wait ${5 - (value % 5)} seconds`} />
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const CustomColor = Template.bind({});
|
|
39
|
-
CustomColor.args = {
|
|
40
|
-
color: "red",
|
|
41
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import Pagination from "../lib/components/Pagination";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Components/Pagination",
|
|
7
|
-
component: Pagination,
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: "padded",
|
|
10
|
-
docs: {
|
|
11
|
-
description: {
|
|
12
|
-
component: '`import { Pagination } from "@bigbinary/neetoui/v2";`',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const Template = (args) => <Pagination {...args} />;
|
|
19
|
-
|
|
20
|
-
export const BasicUsage = Template.bind({});
|
|
21
|
-
BasicUsage.args = {
|
|
22
|
-
count: 500,
|
|
23
|
-
pageNo: 3,
|
|
24
|
-
pageSize: 100,
|
|
25
|
-
navigate: (pageNumber) => {},
|
|
26
|
-
};
|
package/stories/Pane.stories.jsx
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { Check } from "@bigbinary/neeto-icons";
|
|
3
|
-
|
|
4
|
-
import Button from "../lib/components/Button";
|
|
5
|
-
import Pane from "../lib/components/Pane";
|
|
6
|
-
import Typography from "../lib/components/Typography";
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: "Overlays/Pane",
|
|
10
|
-
component: Pane,
|
|
11
|
-
subcomponents: { Button },
|
|
12
|
-
parameters: {
|
|
13
|
-
layout: "padded",
|
|
14
|
-
docs: {
|
|
15
|
-
description: {
|
|
16
|
-
component: '`import { Pane } from "@bigbinary/neetoui/v2";`',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export const Panes = () => {
|
|
23
|
-
const [showPane, setShowPane] = useState(false);
|
|
24
|
-
return (
|
|
25
|
-
<div className="w-full">
|
|
26
|
-
<div className="space-y-6">
|
|
27
|
-
<div className="w-1/2 space-y-8">
|
|
28
|
-
<div className="flex flex-row items-center justify-start space-x-6">
|
|
29
|
-
<Button label="Show Pane" onClick={() => setShowPane(true)} />
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<Pane isOpen={showPane} onClose={() => setShowPane(false)}>
|
|
35
|
-
<Pane.Header>
|
|
36
|
-
<Typography style="h2" weight="semibold">
|
|
37
|
-
Typography
|
|
38
|
-
</Typography>
|
|
39
|
-
</Pane.Header>
|
|
40
|
-
<Pane.Body>
|
|
41
|
-
<Typography style="body2">
|
|
42
|
-
Somewhere out in space live The Herculoids! Zok, the laser-ray
|
|
43
|
-
dragon! Igoo, the giant rock ape! Tundro, the tremendous! Gloop and
|
|
44
|
-
Gleep, the formless, fearless wonders! With Zandor, their leader,
|
|
45
|
-
and his wife, Tara, and son, Dorno, they team up to protect their
|
|
46
|
-
planet from sinister invaders! All-strong! All-brave! All-heroes!
|
|
47
|
-
They're The Herculoids!
|
|
48
|
-
</Typography>
|
|
49
|
-
</Pane.Body>
|
|
50
|
-
<Pane.Footer className="flex items-center space-x-2">
|
|
51
|
-
<Button
|
|
52
|
-
icon={Check}
|
|
53
|
-
size="large"
|
|
54
|
-
label="Continue"
|
|
55
|
-
onClick={() => setShowPane(false)}
|
|
56
|
-
/>
|
|
57
|
-
<Button
|
|
58
|
-
style="text"
|
|
59
|
-
size="large"
|
|
60
|
-
label="Cancel"
|
|
61
|
-
onClick={() => setShowPane(false)}
|
|
62
|
-
/>
|
|
63
|
-
</Pane.Footer>
|
|
64
|
-
</Pane>
|
|
65
|
-
</div>
|
|
66
|
-
);
|
|
67
|
-
};
|