@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.
Files changed (36) hide show
  1. package/package.json +2 -2
  2. package/v2/formik.js +2 -2
  3. package/v2/index.js +2 -2
  4. package/v2/layouts.js +5 -5
  5. package/stories/Alert.stories.jsx +0 -38
  6. package/stories/Avatar.stories.jsx +0 -178
  7. package/stories/Button.stories.jsx +0 -451
  8. package/stories/Callout.stories.jsx +0 -37
  9. package/stories/Checkout.stories.jsx +0 -46
  10. package/stories/Color.stories.mdx +0 -170
  11. package/stories/Dropdown.stories.jsx +0 -104
  12. package/stories/Header.stories.jsx +0 -45
  13. package/stories/HelpersBorderColor.stories.mdx +0 -162
  14. package/stories/HelpersBoxShadows.stories.mdx +0 -83
  15. package/stories/HelpersColor.stories.mdx +0 -170
  16. package/stories/Iconography.stories.jsx +0 -120
  17. package/stories/Input.stories.jsx +0 -187
  18. package/stories/Introduction.stories.mdx +0 -103
  19. package/stories/Label.stories.jsx +0 -29
  20. package/stories/Layouts.stories.jsx +0 -246
  21. package/stories/MenuBar.stories.jsx +0 -119
  22. package/stories/Modal.stories.jsx +0 -183
  23. package/stories/PageLoader.stories.jsx +0 -41
  24. package/stories/Pagination.stories.jsx +0 -26
  25. package/stories/Pane.stories.jsx +0 -67
  26. package/stories/Radio.stories.jsx +0 -34
  27. package/stories/Select.stories.jsx +0 -162
  28. package/stories/Sidebar.stories.jsx +0 -123
  29. package/stories/SubHeader.stories.jsx +0 -39
  30. package/stories/Switch.stories.jsx +0 -52
  31. package/stories/Tab.stories.jsx +0 -71
  32. package/stories/Tag.stories.jsx +0 -149
  33. package/stories/Textarea.stories.jsx +0 -55
  34. package/stories/Toastr.stories.jsx +0 -63
  35. package/stories/Tooltip.stories.jsx +0 -137
  36. package/stories/Typography.stories.jsx +0 -134
@@ -1,46 +0,0 @@
1
- import React from "react";
2
-
3
- import Checkbox from "../lib/components/Checkbox";
4
-
5
- export default {
6
- title: "Components/Checkbox",
7
- component: Checkbox,
8
- parameters: {
9
- layout: "padded",
10
- docs: {
11
- description: {
12
- component: '`import { Checkbox } from "@bigbinary/neetoui/v2";`',
13
- },
14
- },
15
- },
16
- };
17
-
18
- const Template = (args) => <Checkbox {...args} />;
19
-
20
- export const Checked = Template.bind({});
21
- Checked.args = {
22
- id: "checkbox_name",
23
- label: "This is a Checkbox",
24
- checked: true,
25
- };
26
-
27
- export const Disabled = Template.bind({});
28
- Disabled.args = {
29
- id: "checkbox_name",
30
- label: "This Checkbox is disabled",
31
- disabled: true,
32
- };
33
-
34
- export const Required = Template.bind({});
35
- Required.args = {
36
- id: "checkbox_name",
37
- label: "This Checkbox is required",
38
- required: true,
39
- };
40
-
41
- export const Error = Template.bind({});
42
- Error.args = {
43
- id: "checkbox_name",
44
- label: "Checkbox with error",
45
- error: "Error message",
46
- };
@@ -1,170 +0,0 @@
1
- import { Meta } from "@storybook/addon-docs";
2
-
3
- export const colorPalette = [
4
- {
5
- name: "$neeto-ui-white",
6
- value: "#ffffff",
7
- compiledValue: "#ffffff",
8
- },
9
- {
10
- name: "$neeto-ui-black",
11
- value: "#1b1f23",
12
- compiledValue: "#1b1f23",
13
- },
14
- {
15
- name: "$neeto-ui-gray-800",
16
- value: "#2f3941",
17
- compiledValue: "#2f3941",
18
- },
19
- {
20
- name: "$neeto-ui-gray-700",
21
- value: "#49545c",
22
- compiledValue: "#49545c",
23
- },
24
- {
25
- name: "$neeto-ui-gray-600",
26
- value: "#68737d",
27
- compiledValue: "#68737d",
28
- },
29
- {
30
- name: "$neeto-ui-gray-500",
31
- value: "#87929d",
32
- compiledValue: "#87929d",
33
- },
34
- {
35
- name: "$neeto-ui-gray-400",
36
- value: "#c2c8cc",
37
- compiledValue: "#c2c8cc",
38
- },
39
- {
40
- name: "$neeto-ui-gray-300",
41
- value: "#d8dcde",
42
- compiledValue: "#d8dcde",
43
- },
44
- {
45
- name: "$neeto-ui-gray-200",
46
- value: "#e9ebed",
47
- compiledValue: "#e9ebed",
48
- },
49
- {
50
- name: "$neeto-ui-gray-100",
51
- value: "#f8f9f9",
52
- compiledValue: "#f8f9f9",
53
- },
54
- {
55
- name: "$neeto-ui-success",
56
- value: "#00ba88",
57
- compiledValue: "#00ba88",
58
- },
59
- {
60
- name: "$neeto-ui-info",
61
- value: "#276ef1",
62
- compiledValue: "#276ef1",
63
- },
64
- {
65
- name: "$neeto-ui-warning",
66
- value: "#f3cd82",
67
- compiledValue: "#f3cd82",
68
- },
69
- {
70
- name: "$neeto-ui-error",
71
- value: "#f56a58",
72
- compiledValue: "#f56a58",
73
- },
74
- {
75
- name: "$neeto-ui-pastel-blue",
76
- value: "#eaf3fc",
77
- compiledValue: "#eaf3fc",
78
- },
79
- {
80
- name: "$neeto-ui-pastel-green",
81
- value: "#ebf5ec",
82
- compiledValue: "#ebf5ec",
83
- },
84
- {
85
- name: "$neeto-ui-pastel-yellow",
86
- value: "#fff2d7",
87
- compiledValue: "#fff2d7",
88
- },
89
- {
90
- name: "$neeto-ui-pastel-red",
91
- value: "#ffefed",
92
- compiledValue: "#ffefed",
93
- },
94
- {
95
- name: "$neeto-ui-pastel-teal",
96
- value: "#98f3f4",
97
- compiledValue: "#98f3f4",
98
- },
99
- {
100
- name: "$neeto-ui-secondary-indigo",
101
- value: "#5e5ce6",
102
- compiledValue: "#5e5ce6",
103
- },
104
- {
105
- name: "$neeto-ui-secondary-green",
106
- value: "#00ba88",
107
- compiledValue: "#00ba88",
108
- },
109
- {
110
- name: "$neeto-ui-secondary-teal",
111
- value: "#64d2ff",
112
- compiledValue: "#64d2ff",
113
- },
114
- ];
115
-
116
- <Meta title="Foundation/Colors" />
117
-
118
- <style>{`
119
- .story-demo-table tr{
120
- background: transparent !important;
121
- }
122
-
123
- `}</style>
124
-
125
- # Colors
126
-
127
- <table className="story-demo-table">
128
- <thead>
129
- <tr>
130
- <td></td>
131
- <td>Hex code</td>
132
- <td>Variable name</td>
133
- <td>Text color class</td>
134
- <td>Background color class</td>
135
- </tr>
136
- </thead>
137
- <tbody>
138
- {colorPalette.map((color) => {
139
- return (
140
- <tr key={color.name}>
141
- <td>
142
- <div
143
- className={`w-12 h-12 cursor-pointer rounded-full shadow-xl ${color.name.replace(
144
- "$neeto-ui",
145
- "neeto-ui-bg"
146
- )}`}
147
- ></div>
148
- </td>
149
- <td>
150
- <code>{color.value}</code>
151
- </td>
152
- <td>
153
- <code>{color.name}</code>
154
- </td>
155
- <td>
156
- <div className="flex justify-between">
157
- <code>{`${color.name.replace("$neeto-ui", "neeto-ui-text")}`}</code>
158
- <b className={`ml-2 ${color.name.replace("$neeto-ui", "neeto-ui-text")}`}>
159
- Aa
160
- </b>
161
- </div>
162
- </td>
163
- <td className={`${color.name.replace("$neeto-ui", "neeto-ui-bg")}`}>
164
- <code>{`${color.name.replace("$neeto-ui", "neeto-ui-bg")}`}</code>
165
- </td>
166
- </tr>
167
- );
168
- })}
169
- </tbody>
170
- </table>
@@ -1,104 +0,0 @@
1
- import React, { useState } from "react";
2
- import { Settings } from "@bigbinary/neeto-icons";
3
-
4
- import Dropdown from "../lib/components/Dropdown";
5
-
6
- export default {
7
- title: "Components/Dropdown",
8
- component: Dropdown,
9
- parameters: {
10
- layout: "padded",
11
- docs: {
12
- description: {
13
- component: '`import { Dropdown } from "@bigbinary/neetoui/v2";`',
14
- },
15
- },
16
- },
17
- };
18
-
19
- const listItems = ["Option 1", "Option 2", "Option 3"];
20
-
21
- export const PrimaryDropdown = (args) => {
22
- const [dropdownOne, setDropdownOne] = useState(false);
23
-
24
- return (
25
- <Dropdown
26
- label="Primary Dropdown"
27
- buttonStyle="primary"
28
- position="bottom-end"
29
- isOpen={dropdownOne}
30
- onClose={() => {
31
- setDropdownOne(false);
32
- }}
33
- buttonProps={{
34
- onClick: () => {
35
- setDropdownOne(!dropdownOne);
36
- },
37
- }}
38
- closeOnSelect={false}
39
- closeOnOutsideClick={false}
40
- >
41
- {listItems.map((item, idx) => (
42
- <li key={idx}>{item}</li>
43
- ))}
44
- </Dropdown>
45
- );
46
- };
47
-
48
- export const SecondaryDropdown = (args) => {
49
- return (
50
- <Dropdown
51
- label="Secondary Dropdown"
52
- buttonStyle="secondary"
53
- position="bottom-end"
54
- >
55
- {listItems.map((item, idx) => (
56
- <li key={idx}>{item}</li>
57
- ))}
58
- </Dropdown>
59
- );
60
- };
61
-
62
- export const TextDropdown = (args) => {
63
- return (
64
- <Dropdown label="Text Dropdown" buttonStyle="text" position="bottom-end">
65
- {listItems.map((item, idx) => (
66
- <li key={idx}>{item}</li>
67
- ))}
68
- </Dropdown>
69
- );
70
- };
71
-
72
- export const CustomIcon = (args) => {
73
- return (
74
- <Dropdown
75
- label="Dropdown with custom icon"
76
- icon={Settings}
77
- position="bottom-end"
78
- >
79
- {listItems.map((item, idx) => (
80
- <li key={idx}>{item}</li>
81
- ))}
82
- </Dropdown>
83
- );
84
- };
85
-
86
- export const DropdownStory = (args) => {
87
- return (
88
- <Dropdown
89
- label="Dropdown"
90
- position="bottom-end"
91
- {...args}
92
- >
93
- {listItems.map((item, idx) => (
94
- <li key={idx}>{item}</li>
95
- ))}
96
- </Dropdown>
97
- );
98
- };
99
- DropdownStory.storyName = "DropDown"
100
- DropdownStory.args = {
101
- buttonProps: {
102
- size: "large"
103
- }
104
- }
@@ -1,45 +0,0 @@
1
- import React from "react";
2
- import { BrowserRouter as Router } from "react-router-dom";
3
-
4
- import Header from "../lib/components/layouts/Header";
5
- import Button from "../lib/components/Button";
6
-
7
- export default {
8
- title: "Layouts/Header",
9
- component: Header,
10
- parameters: {
11
- layout: "padded",
12
- docs: {
13
- description: {
14
- component: '`import { Header } from "@bigbinary/neetoui/v2/layouts";`',
15
- },
16
- },
17
- },
18
- };
19
-
20
- const Template = (args) => (
21
- <Router>
22
- <Header {...args} />
23
- </Router>
24
- );
25
-
26
- export const BasicUsage = Template.bind({});
27
- BasicUsage.args = {
28
- title: "Layouts",
29
- actionBlock: <Button label="Primary Action" />,
30
- };
31
-
32
- export const WithMenuBarToggle = Template.bind({});
33
- WithMenuBarToggle.args = {
34
- title: "Layouts",
35
- menuBarToggle: () => alert('clicked'),
36
- actionBlock: <Button label="Primary Action" />,
37
- };
38
-
39
- export const WithBreadcrumbs = Template.bind({});
40
- WithBreadcrumbs.args = {
41
- title: "Layouts",
42
- menuBarToggle: () => alert('clicked'),
43
- actionBlock: <Button label="Primary Action" />,
44
- breadcrumbs: [{ text: "Home", link: "/" }],
45
- };
@@ -1,162 +0,0 @@
1
- import { Meta, Story } from "@storybook/addon-docs";
2
-
3
- export const colorPalette = [
4
- {
5
- name: "$neeto-ui-white",
6
- value: "#ffffff",
7
- compiledValue: "#ffffff",
8
- },
9
- {
10
- name: "$neeto-ui-black",
11
- value: "#1b1f23",
12
- compiledValue: "#1b1f23",
13
- },
14
- {
15
- name: "$neeto-ui-gray-800",
16
- value: "#2f3941",
17
- compiledValue: "#2f3941",
18
- },
19
- {
20
- name: "$neeto-ui-gray-700",
21
- value: "#49545c",
22
- compiledValue: "#49545c",
23
- },
24
- {
25
- name: "$neeto-ui-gray-600",
26
- value: "#68737d",
27
- compiledValue: "#68737d",
28
- },
29
- {
30
- name: "$neeto-ui-gray-500",
31
- value: "#87929d",
32
- compiledValue: "#87929d",
33
- },
34
- {
35
- name: "$neeto-ui-gray-400",
36
- value: "#c2c8cc",
37
- compiledValue: "#c2c8cc",
38
- },
39
- {
40
- name: "$neeto-ui-gray-300",
41
- value: "#d8dcde",
42
- compiledValue: "#d8dcde",
43
- },
44
- {
45
- name: "$neeto-ui-gray-200",
46
- value: "#e9ebed",
47
- compiledValue: "#e9ebed",
48
- },
49
- {
50
- name: "$neeto-ui-gray-100",
51
- value: "#f8f9f9",
52
- compiledValue: "#f8f9f9",
53
- },
54
- {
55
- name: "$neeto-ui-success",
56
- value: "#00ba88",
57
- compiledValue: "#00ba88",
58
- },
59
- {
60
- name: "$neeto-ui-info",
61
- value: "#276ef1",
62
- compiledValue: "#276ef1",
63
- },
64
- {
65
- name: "$neeto-ui-warning",
66
- value: "#f3cd82",
67
- compiledValue: "#f3cd82",
68
- },
69
- {
70
- name: "$neeto-ui-error",
71
- value: "#f56a58",
72
- compiledValue: "#f56a58",
73
- },
74
- {
75
- name: "$neeto-ui-pastel-blue",
76
- value: "#eaf3fc",
77
- compiledValue: "#eaf3fc",
78
- },
79
- {
80
- name: "$neeto-ui-pastel-green",
81
- value: "#ebf5ec",
82
- compiledValue: "#ebf5ec",
83
- },
84
- {
85
- name: "$neeto-ui-pastel-yellow",
86
- value: "#fff2d7",
87
- compiledValue: "#fff2d7",
88
- },
89
- {
90
- name: "$neeto-ui-pastel-red",
91
- value: "#ffefed",
92
- compiledValue: "#ffefed",
93
- },
94
- {
95
- name: "$neeto-ui-pastel-teal",
96
- value: "#98f3f4",
97
- compiledValue: "#98f3f4",
98
- },
99
- {
100
- name: "$neeto-ui-secondary-indigo",
101
- value: "#5e5ce6",
102
- compiledValue: "#5e5ce6",
103
- },
104
- {
105
- name: "$neeto-ui-secondary-green",
106
- value: "#00ba88",
107
- compiledValue: "#00ba88",
108
- },
109
- {
110
- name: "$neeto-ui-secondary-teal",
111
- value: "#64d2ff",
112
- compiledValue: "#64d2ff",
113
- },
114
- ];
115
-
116
- <Meta title="Foundation/Helpers/Border Color" />
117
-
118
- <style>{`
119
- .story-demo-table tr{
120
- background: transparent !important;
121
- }
122
-
123
- `}</style>
124
-
125
- # Border Color
126
-
127
- <table className="story-demo-table">
128
- <thead>
129
- <tr>
130
- <td></td>
131
- <td>Hex code</td>
132
- <td>Class</td>
133
- </tr>
134
- </thead>
135
- <tbody>
136
- {colorPalette.map((color) => {
137
- return (
138
- <tr key={color.name}>
139
- <td>
140
- <div
141
- className={`w-12 h-12 border ${color.name.replace(
142
- "$neeto-ui",
143
- "neeto-ui-border"
144
- )}`}
145
- ></div>
146
- </td>
147
- <td>
148
- <code>{color.value}</code>
149
- </td>
150
- <td>
151
- <div className="flex justify-between">
152
- <code>{`${color.name.replace(
153
- "$neeto-ui",
154
- "neeto-ui-border"
155
- )}`}</code>
156
- </div>
157
- </td>
158
- </tr>
159
- );
160
- })}
161
- </tbody>
162
- </table>
@@ -1,83 +0,0 @@
1
- import { Meta, Story } from "@storybook/addon-docs";
2
-
3
- export const boxShadows = [
4
- {
5
- name: "$neeto-ui-shadow-xs",
6
- value: "0px 1px 4px -1px rgba(28, 48, 74, 0.12)",
7
- compiledValue: "0px 1px 4px -1px rgba(28, 48, 74, 0.12)",
8
- },
9
- {
10
- name: "$neeto-ui-shadow-s",
11
- value:
12
- "0px 3px 12px -1px rgba(28, 52, 84, 0.12), 0px 2px 4px -1px rgba(28, 55, 90, 0.08)",
13
- compiledValue:
14
- "0px 3px 12px -1px rgba(28, 52, 84, 0.12), 0px 2px 4px -1px rgba(28, 55, 90, 0.08)",
15
- },
16
- {
17
- name: "$neeto-ui-shadow-m",
18
- value:
19
- "0px 8px 24px -4px rgba(28, 50, 79, 0.12), 0px 2px 6px -1px rgba(28, 55, 90, 0.08)",
20
- compiledValue:
21
- "0px 8px 24px -4px rgba(28, 50, 79, 0.12), 0px 2px 6px -1px rgba(28, 55, 90, 0.08)",
22
- },
23
- {
24
- name: "$neeto-ui-shadow-l",
25
- value:
26
- "0px 12px 48px -6px rgba(28, 50, 79, 0.12), 0px 3px 18px -2px rgba(28, 55, 90, 0.08)",
27
- compiledValue:
28
- "0px 12px 48px -6px rgba(28, 50, 79, 0.12), 0px 3px 18px -2px rgba(28, 55, 90, 0.08)",
29
- },
30
- {
31
- name: "$neeto-ui-shadow-xl",
32
- value:
33
- "0px 18px 64px -8px rgba(28, 50, 79, 0.12), 0px 4px 24px -3px rgba(28, 55, 90, 0.08)",
34
- compiledValue:
35
- "0px 18px 64px -8px rgba(28, 50, 79, 0.12), 0px 4px 24px -3px rgba(28, 55, 90, 0.08)",
36
- },
37
- ];
38
-
39
- <Meta title="Foundation/Helpers/Box Shadows" />
40
-
41
- <style>{`
42
- .story-demo-table tr{
43
- background: transparent !important;
44
- }
45
-
46
- `}</style>
47
-
48
- # Box Shadows
49
-
50
- <table className="story-demo-table">
51
- <thead>
52
- <tr>
53
- <td></td>
54
- <td>Class</td>
55
- </tr>
56
- </thead>
57
- <tbody>
58
- {boxShadows.map((shadow) => {
59
- return (
60
- <tr key={shadow.name}>
61
- <td>
62
- <div className="p-16">
63
- <div
64
- className={`w-32 h-32 neeto-ui-bg-white ${shadow.name.replace(
65
- "$neeto-ui",
66
- "neeto-ui"
67
- )}`}
68
- ></div>
69
- </div>
70
- </td>
71
- <td>
72
- <div className="flex justify-between">
73
- <code>{`${shadow.name.replace(
74
- "$neeto-ui",
75
- "neeto-ui"
76
- )}`}</code>
77
- </div>
78
- </td>
79
- </tr>
80
- );
81
- })}
82
- </tbody>
83
- </table>