@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,63 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ToastContainer } from "react-toastify";
|
|
3
|
-
|
|
4
|
-
import Button from "../lib/components/Button";
|
|
5
|
-
import Toastr from "../lib/components/Toastr";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: "Overlays/Toastr",
|
|
9
|
-
component: Toastr,
|
|
10
|
-
parameters: {
|
|
11
|
-
layout: "padded",
|
|
12
|
-
docs: {
|
|
13
|
-
description: {
|
|
14
|
-
component: '`import { Toastr } from "@bigbinary/neetoui/v2";`',
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
subcomponents: { Button },
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const Toastrs = () => {
|
|
22
|
-
return (
|
|
23
|
-
<>
|
|
24
|
-
<ToastContainer />
|
|
25
|
-
<div className="space-y-6">
|
|
26
|
-
<div className="flex flex-row items-center justify-start space-x-6">
|
|
27
|
-
<Button
|
|
28
|
-
label="Info Toastr"
|
|
29
|
-
onClick={() => Toastr.info("This is an info toastr.")}
|
|
30
|
-
/>
|
|
31
|
-
<Button
|
|
32
|
-
label="Warning Toastr"
|
|
33
|
-
onClick={() => Toastr.warning("This is a warning toastr.")}
|
|
34
|
-
/>
|
|
35
|
-
<Button
|
|
36
|
-
label="Success Toastr"
|
|
37
|
-
onClick={() => Toastr.success("Form has been successfully saved.")}
|
|
38
|
-
/>
|
|
39
|
-
<Button
|
|
40
|
-
label="Toastr with CTA"
|
|
41
|
-
onClick={() =>
|
|
42
|
-
Toastr.error(
|
|
43
|
-
Error("Ticket marked as spam."),
|
|
44
|
-
"Block Customer",
|
|
45
|
-
() => alert("Customer blocked successfully!")
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
/>
|
|
49
|
-
<Button
|
|
50
|
-
label="Error Toastr"
|
|
51
|
-
onClick={() =>
|
|
52
|
-
Toastr.error(
|
|
53
|
-
Error(
|
|
54
|
-
"Some error occured! Please visit https://github.com/bigbinary/neeto-ui."
|
|
55
|
-
)
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
/>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
</>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import Button from "../lib/components/Button";
|
|
4
|
-
import Tooltip from "../lib/components/Tooltip";
|
|
5
|
-
import Typography from "../lib/components/Typography";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: "Overlays/Tooltip",
|
|
9
|
-
component: Tooltip,
|
|
10
|
-
subcomponents: { Button },
|
|
11
|
-
parameters: {
|
|
12
|
-
layout: "padded",
|
|
13
|
-
docs: {
|
|
14
|
-
description: {
|
|
15
|
-
component: '`import { Tooltip } from "@bigbinary/neetoui/v2";`',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const FollowCursor = (args) => {
|
|
22
|
-
return (
|
|
23
|
-
<div className="space-y-8 p-10">
|
|
24
|
-
<Tooltip
|
|
25
|
-
placement={"top"}
|
|
26
|
-
followCursor={"horizontal"}
|
|
27
|
-
content={"Content is string"}
|
|
28
|
-
>
|
|
29
|
-
<Button style="secondary" label="Follow Cursor" />
|
|
30
|
-
</Tooltip>
|
|
31
|
-
</div>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const JSXContentInside = (args) => {
|
|
36
|
-
return (
|
|
37
|
-
<div className="space-y-8 p-10">
|
|
38
|
-
<Tooltip
|
|
39
|
-
placement={"top"}
|
|
40
|
-
trigger={"click"}
|
|
41
|
-
content={
|
|
42
|
-
<span>
|
|
43
|
-
Content is a <b>JSX</b> <u>Element</u>
|
|
44
|
-
</span>
|
|
45
|
-
}
|
|
46
|
-
>
|
|
47
|
-
<Button style="secondary" label="On Click" />
|
|
48
|
-
</Tooltip>
|
|
49
|
-
</div>
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const Placements = () => {
|
|
54
|
-
return (
|
|
55
|
-
<div className="space-y-8 p-10">
|
|
56
|
-
<div className="flex items-center justify-start gap-8">
|
|
57
|
-
<Tooltip placement={"top"} content={"Tooltip"}>
|
|
58
|
-
<Button style="secondary" label="top" />
|
|
59
|
-
</Tooltip>
|
|
60
|
-
<Tooltip placement={"top-start"} content={"Tooltip"}>
|
|
61
|
-
<Button style="secondary" label="top-start" />
|
|
62
|
-
</Tooltip>
|
|
63
|
-
<Tooltip placement={"top-end"} content={"Tooltip"}>
|
|
64
|
-
<Button style="secondary" label="top-end" />
|
|
65
|
-
</Tooltip>
|
|
66
|
-
</div>
|
|
67
|
-
<div className="flex items-center justify-start gap-8">
|
|
68
|
-
<Tooltip placement={"right"} content={"Tooltip"}>
|
|
69
|
-
<Button style="secondary" label="right" />
|
|
70
|
-
</Tooltip>
|
|
71
|
-
<Tooltip placement={"right-start"} content={"Tooltip"}>
|
|
72
|
-
<Button style="secondary" label="right-start" />
|
|
73
|
-
</Tooltip>
|
|
74
|
-
<Tooltip placement={"right-end"} content={"Tooltip"}>
|
|
75
|
-
<Button style="secondary" label="right-end" />
|
|
76
|
-
</Tooltip>
|
|
77
|
-
</div>
|
|
78
|
-
<div className="flex items-center justify-start gap-8">
|
|
79
|
-
<Tooltip placement={"bottom"} content={"Tooltip"}>
|
|
80
|
-
<Button style="secondary" label="bottom" />
|
|
81
|
-
</Tooltip>
|
|
82
|
-
<Tooltip placement={"bottom-start"} content={"Tooltip"}>
|
|
83
|
-
<Button style="secondary" label="bottom-start" />
|
|
84
|
-
</Tooltip>
|
|
85
|
-
<Tooltip placement={"bottom-end"} content={"Tooltip"}>
|
|
86
|
-
<Button style="secondary" label="bottom-end" />
|
|
87
|
-
</Tooltip>
|
|
88
|
-
</div>
|
|
89
|
-
<div className="flex items-center justify-start gap-8">
|
|
90
|
-
<Tooltip placement={"left"} content={"Tooltip"}>
|
|
91
|
-
<Button style="secondary" label="left" />
|
|
92
|
-
</Tooltip>
|
|
93
|
-
<Tooltip placement={"left-start"} content={"Tooltip"}>
|
|
94
|
-
<Button style="secondary" label="left-start" />
|
|
95
|
-
</Tooltip>
|
|
96
|
-
<Tooltip placement={"left-end"} content={"Tooltip"}>
|
|
97
|
-
<Button style="secondary" label="left-end" />
|
|
98
|
-
</Tooltip>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export const Themes = () => {
|
|
105
|
-
return (
|
|
106
|
-
<div className="space-y-8 p-10">
|
|
107
|
-
<h2 className="text-xl">Theme</h2>
|
|
108
|
-
<div className="flex flex-row flex-wrap items-center justify-start gap-8">
|
|
109
|
-
<Tooltip placement={"top"} content={"Tooltip"} theme={"dark"}>
|
|
110
|
-
<Button style="secondary" label="dark" />
|
|
111
|
-
</Tooltip>
|
|
112
|
-
<Tooltip placement={"top"} content={"Tooltip"} theme={"light"}>
|
|
113
|
-
<Button style="secondary" label="light" />
|
|
114
|
-
</Tooltip>
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
);
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
export const TooltipOnText = () => {
|
|
121
|
-
return (
|
|
122
|
-
<div className=" p-10 flex items-center justify-center space-x-6">
|
|
123
|
-
<Tooltip placement="top" content={"Tooltip"}>
|
|
124
|
-
<Typography>Top</Typography>
|
|
125
|
-
</Tooltip>
|
|
126
|
-
<Tooltip placement="bottom" content={"Tooltip"}>
|
|
127
|
-
<Typography>Bottom</Typography>
|
|
128
|
-
</Tooltip>
|
|
129
|
-
<Tooltip placement="left" content={"Tooltip"}>
|
|
130
|
-
<Typography>Left</Typography>
|
|
131
|
-
</Tooltip>
|
|
132
|
-
<Tooltip placement="right" content={"Tooltip"}>
|
|
133
|
-
<Typography>Right</Typography>
|
|
134
|
-
</Tooltip>
|
|
135
|
-
</div>
|
|
136
|
-
);
|
|
137
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import Typography from "../lib/components/Typography";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Foundation/Typography",
|
|
7
|
-
component: Typography,
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: "padded",
|
|
10
|
-
},
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const Template = (args) => <Typography {...args}>Typography</Typography>;
|
|
14
|
-
|
|
15
|
-
export const Heading1 = Template.bind({});
|
|
16
|
-
Heading1.args = {
|
|
17
|
-
style: "h1",
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const Heading2 = Template.bind({});
|
|
21
|
-
Heading2.args = {
|
|
22
|
-
style: "h2",
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const Heading3 = Template.bind({});
|
|
26
|
-
Heading3.args = {
|
|
27
|
-
style: "h3",
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const Heading4 = Template.bind({});
|
|
31
|
-
Heading4.args = {
|
|
32
|
-
style: "h4",
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const Heading5 = Template.bind({});
|
|
36
|
-
Heading5.args = {
|
|
37
|
-
style: "h5",
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const Body1 = Template.bind({});
|
|
41
|
-
Body1.args = {
|
|
42
|
-
style: "body1",
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const Body2 = Template.bind({});
|
|
46
|
-
Body2.args = {
|
|
47
|
-
style: "body2",
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const Body3 = Template.bind({});
|
|
51
|
-
Body3.args = {
|
|
52
|
-
style: "body3",
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const AllVariants = (args) => {
|
|
56
|
-
return (
|
|
57
|
-
<>
|
|
58
|
-
<Typography className="mb-4" style="h1">
|
|
59
|
-
h1. Heading - 32px
|
|
60
|
-
</Typography>
|
|
61
|
-
<Typography className="mb-4" style="h2">
|
|
62
|
-
h2. Heading - 24px
|
|
63
|
-
</Typography>
|
|
64
|
-
<Typography className="mb-4" style="h3">
|
|
65
|
-
h3. Heading - 20px
|
|
66
|
-
</Typography>
|
|
67
|
-
<Typography className="mb-4" style="h4">
|
|
68
|
-
h4. Heading - 16px
|
|
69
|
-
</Typography>
|
|
70
|
-
<Typography className="mb-4" style="h5">
|
|
71
|
-
h5. Heading - 14px
|
|
72
|
-
</Typography>
|
|
73
|
-
<Typography className="mb-4" style="h6">
|
|
74
|
-
h6. Heading - 12px
|
|
75
|
-
</Typography>
|
|
76
|
-
<Typography className="mb-4" style="body1">
|
|
77
|
-
body1. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
|
|
78
|
-
blanditiis tenetur - 16px
|
|
79
|
-
</Typography>
|
|
80
|
-
<Typography className="mb-4" style="body2">
|
|
81
|
-
body2. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
|
|
82
|
-
blanditiis tenetur - 14px
|
|
83
|
-
</Typography>
|
|
84
|
-
<Typography className="mb-4" style="body3">
|
|
85
|
-
body3. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos
|
|
86
|
-
blanditiis tenetur - 12px
|
|
87
|
-
</Typography>
|
|
88
|
-
<div className="mb-4">
|
|
89
|
-
<Typography style="body3" component="del">
|
|
90
|
-
Represents a range of text that has been deleted from a document.
|
|
91
|
-
</Typography>
|
|
92
|
-
</div>
|
|
93
|
-
<div className="mb-4">
|
|
94
|
-
<Typography style="body3" component="ins">
|
|
95
|
-
Represents a range of text that has been added to a document.
|
|
96
|
-
</Typography>
|
|
97
|
-
</div>
|
|
98
|
-
<div className="mb-4">
|
|
99
|
-
<Typography style="body3" component="u">
|
|
100
|
-
This is rendered by default as a simple solid underline.
|
|
101
|
-
</Typography>
|
|
102
|
-
</div>
|
|
103
|
-
<div className="mb-4">
|
|
104
|
-
<Typography style="body3" component="i">
|
|
105
|
-
Represents a range of text that is set off from the normal text for
|
|
106
|
-
some reason, such as idiomatic text, technical terms, taxonomical
|
|
107
|
-
designations, among others.
|
|
108
|
-
</Typography>
|
|
109
|
-
</div>
|
|
110
|
-
<div className="mb-4">
|
|
111
|
-
<Typography style="body3" component="em">
|
|
112
|
-
Marks text that has stress emphasis
|
|
113
|
-
</Typography>
|
|
114
|
-
</div>
|
|
115
|
-
<div className="mb-4">
|
|
116
|
-
<Typography style="body3" component="strong">
|
|
117
|
-
Indicates that its contents have strong importance, seriousness, or
|
|
118
|
-
urgency.
|
|
119
|
-
</Typography>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="mb-4">
|
|
122
|
-
<Typography style="body3" component="b">
|
|
123
|
-
Used to draw the reader's attention to the element's contents, which
|
|
124
|
-
are not otherwise granted special importance.
|
|
125
|
-
</Typography>
|
|
126
|
-
</div>
|
|
127
|
-
<div className="mb-4">
|
|
128
|
-
<Typography style="h4" component="code">
|
|
129
|
-
Code
|
|
130
|
-
</Typography>
|
|
131
|
-
</div>
|
|
132
|
-
</>
|
|
133
|
-
);
|
|
134
|
-
};
|