@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neetoui",
3
- "version": "2.0.78",
3
+ "version": "2.0.82",
4
4
  "main": "./neetoui.js",
5
5
  "author": "BigBinary",
6
6
  "license": "MIT",
@@ -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
@@ -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>User Info</h2>
36
+ <Typography style="h2" weight="semibold">
37
+ Typography
38
+ </Typography>
36
39
  </Pane.Header>
37
40
  <Pane.Body>
38
- Somewhere out in space live The Herculoids! Zok, the laser-ray dragon!
39
- Igoo, the giant rock ape! Tundro, the tremendous! Gloop and Gleep, the
40
- formless, fearless wonders! With Zandor, their leader, and his wife,
41
- Tara, and son, Dorno, they team up to protect their planet from
42
- sinister invaders! All-strong! All-brave! All-heroes! They're The
43
- Herculoids!
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-4">
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
  />
@@ -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 className="grid grid-cols-2">
41
+ <Tab>
22
42
  <Tab.Item active={tab} onClick={() => setTab(true)}>
23
- Tab 1
43
+ Label
24
44
  </Tab.Item>
25
45
  <Tab.Item active={!tab} onClick={() => setTab(false)}>
26
- Tab 2
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 className="grid grid-cols-3">
35
- <Tab.Item active>Tab 1</Tab.Item>
36
- <Tab.Item>Tab 2</Tab.Item>
37
- <Tab.Item>Tab 3</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 = (args) => {
62
+ export const FourItems = () => {
43
63
  return (
44
- <Tab className="grid grid-cols-3">
45
- <Tab.Item active>Tab 1</Tab.Item>
46
- <Tab.Item>Tab 2</Tab.Item>
47
- <Tab.Item>Tab 3</Tab.Item>
48
- <Tab.Item>Tab 4</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
  };