@bigbinary/neetoui 2.0.78 → 2.0.82
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 +1 -1
- package/stories/Avatar.stories.jsx +9 -0
- package/stories/Introduction.stories.mdx +2 -0
- package/stories/Pane.stories.jsx +15 -8
- package/stories/Tab.stories.jsx +33 -13
- package/v2/index.js +4 -4
- package/v2/layouts.js +4 -4
package/package.json
CHANGED
|
@@ -50,6 +50,15 @@ Xlarge.args = {
|
|
|
50
50
|
size: "xlarge",
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
+
export const WithCustomClassName = Template.bind({});
|
|
54
|
+
WithCustomClassName.storyName="With Custom className"
|
|
55
|
+
WithCustomClassName.args = {
|
|
56
|
+
onClick: { onClick },
|
|
57
|
+
user: { name: "neeto UI" },
|
|
58
|
+
size: "xlarge",
|
|
59
|
+
className: "cursor-pointer"
|
|
60
|
+
};
|
|
61
|
+
|
|
53
62
|
export const AllVariants = () => {
|
|
54
63
|
const imageUrl = "https://i.pravatar.cc/300";
|
|
55
64
|
const onClick = () => {
|
|
@@ -57,6 +57,8 @@ yarn add @bigbinary/neetoui
|
|
|
57
57
|
|
|
58
58
|
For other installation methods, refer our [**official npm page**](https://www.npmjs.com/package/@bigbinary/neetoui)
|
|
59
59
|
|
|
60
|
+
For more information, refer our [**GitHub repository**](https://github.com/bigbinary/neeto-ui)
|
|
61
|
+
|
|
60
62
|
<div className="tip-wrapper">
|
|
61
63
|
<span className="tip">
|
|
62
64
|
To use NeetoUI, you need a recent version of React.js installed (version
|
package/stories/Pane.stories.jsx
CHANGED
|
@@ -3,6 +3,7 @@ import { Check } from "@bigbinary/neeto-icons";
|
|
|
3
3
|
|
|
4
4
|
import Button from "../lib/components/Button";
|
|
5
5
|
import Pane from "../lib/components/Pane";
|
|
6
|
+
import Typography from "../lib/components/Typography";
|
|
6
7
|
|
|
7
8
|
export default {
|
|
8
9
|
title: "Overlays/Pane",
|
|
@@ -32,24 +33,30 @@ export const Panes = () => {
|
|
|
32
33
|
|
|
33
34
|
<Pane isOpen={showPane} onClose={() => setShowPane(false)}>
|
|
34
35
|
<Pane.Header>
|
|
35
|
-
<h2
|
|
36
|
+
<Typography style="h2" weight="semibold">
|
|
37
|
+
Typography
|
|
38
|
+
</Typography>
|
|
36
39
|
</Pane.Header>
|
|
37
40
|
<Pane.Body>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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>
|
|
44
49
|
</Pane.Body>
|
|
45
|
-
<Pane.Footer className="flex space-x-
|
|
50
|
+
<Pane.Footer className="flex items-center space-x-2">
|
|
46
51
|
<Button
|
|
47
52
|
icon={Check}
|
|
53
|
+
size="large"
|
|
48
54
|
label="Continue"
|
|
49
55
|
onClick={() => setShowPane(false)}
|
|
50
56
|
/>
|
|
51
57
|
<Button
|
|
52
58
|
style="text"
|
|
59
|
+
size="large"
|
|
53
60
|
label="Cancel"
|
|
54
61
|
onClick={() => setShowPane(false)}
|
|
55
62
|
/>
|
package/stories/Tab.stories.jsx
CHANGED
|
@@ -15,15 +15,35 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
const Template = (args) => (
|
|
19
|
+
<Tab {...args}>
|
|
20
|
+
<Tab.Item active="true">Label</Tab.Item>
|
|
21
|
+
<Tab.Item>Label</Tab.Item>
|
|
22
|
+
</Tab>
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export const Default = Template.bind({});
|
|
26
|
+
|
|
27
|
+
export const Large = Template.bind({});
|
|
28
|
+
Large.args = {
|
|
29
|
+
size: "large",
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const LargeWithoutUnderline = Template.bind({});
|
|
33
|
+
LargeWithoutUnderline.args = {
|
|
34
|
+
size: "large",
|
|
35
|
+
noUnderline: true,
|
|
36
|
+
};
|
|
37
|
+
|
|
18
38
|
export const TwoItems = () => {
|
|
19
39
|
const [tab, setTab] = useState(true);
|
|
20
40
|
return (
|
|
21
|
-
<Tab
|
|
41
|
+
<Tab>
|
|
22
42
|
<Tab.Item active={tab} onClick={() => setTab(true)}>
|
|
23
|
-
|
|
43
|
+
Label
|
|
24
44
|
</Tab.Item>
|
|
25
45
|
<Tab.Item active={!tab} onClick={() => setTab(false)}>
|
|
26
|
-
|
|
46
|
+
Label
|
|
27
47
|
</Tab.Item>
|
|
28
48
|
</Tab>
|
|
29
49
|
);
|
|
@@ -31,21 +51,21 @@ export const TwoItems = () => {
|
|
|
31
51
|
|
|
32
52
|
export const ThreeItems = () => {
|
|
33
53
|
return (
|
|
34
|
-
<Tab
|
|
35
|
-
<Tab.Item active>
|
|
36
|
-
<Tab.Item>
|
|
37
|
-
<Tab.Item>
|
|
54
|
+
<Tab>
|
|
55
|
+
<Tab.Item active>Label</Tab.Item>
|
|
56
|
+
<Tab.Item>Label</Tab.Item>
|
|
57
|
+
<Tab.Item>Label</Tab.Item>
|
|
38
58
|
</Tab>
|
|
39
59
|
);
|
|
40
60
|
};
|
|
41
61
|
|
|
42
|
-
export const FourItems = (
|
|
62
|
+
export const FourItems = () => {
|
|
43
63
|
return (
|
|
44
|
-
<Tab
|
|
45
|
-
<Tab.Item active>
|
|
46
|
-
<Tab.Item>
|
|
47
|
-
<Tab.Item>
|
|
48
|
-
<Tab.Item>
|
|
64
|
+
<Tab>
|
|
65
|
+
<Tab.Item active>Label</Tab.Item>
|
|
66
|
+
<Tab.Item>Label</Tab.Item>
|
|
67
|
+
<Tab.Item>Label</Tab.Item>
|
|
68
|
+
<Tab.Item>Label</Tab.Item>
|
|
49
69
|
</Tab>
|
|
50
70
|
);
|
|
51
71
|
};
|