@bigbinary/neetoui 2.0.57 → 2.0.61

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/README.md CHANGED
@@ -39,7 +39,11 @@ NeetoUI gets auto-published to npm on new commit to master. You can checkout the
39
39
 
40
40
  ## Documentation
41
41
 
42
- Read the docs here: https://neetoui.netlify.app.
42
+ Read the docs here
43
+
44
+ v1 : https://neetoui.netlify.app
45
+
46
+ v2 : https://neetoui-v2.netlify.app
43
47
 
44
48
  ## Theming
45
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neetoui",
3
- "version": "2.0.57",
3
+ "version": "2.0.61",
4
4
  "main": "./neetoui.js",
5
5
  "author": "BigBinary",
6
6
  "license": "MIT",
@@ -39,12 +39,10 @@
39
39
  "postcss": "^7",
40
40
  "postcss-import": "^12.0.1",
41
41
  "postcss-loader": "^4.0.3",
42
- "postcss-prefixer": "^2.1.3",
43
42
  "postcss-preset-env": "^6.7.0",
44
43
  "prettier": "^2.2.1",
45
44
  "ramda": "^0.27.1",
46
45
  "react": "^16.13.1",
47
- "react-classname-prefix-loader": "git+https://github.com/edwinbbu/react-classname-prefix-loader",
48
46
  "react-dom": "^16.13.1",
49
47
  "react-router-dom": "^5.2.0",
50
48
  "react-select": "^3.1.0",
@@ -84,7 +82,7 @@
84
82
  "react-toastify": "^8.0.2"
85
83
  },
86
84
  "dependencies": {
87
- "@bigbinary/neeto-icons": "^1.6.5",
85
+ "@bigbinary/neeto-icons": "^1.7.0",
88
86
  "@popperjs/core": "^2.9.2",
89
87
  "@reach/auto-id": "^0.15.0",
90
88
  "@tailwindcss/forms": "^0.3.2",
package/postcss.config.js CHANGED
@@ -9,16 +9,5 @@ module.exports = {
9
9
  stage: 3,
10
10
  }),
11
11
  require("cssnano"),
12
- require("postcss-prefixer")({
13
- prefix: "v2-",
14
- ignore: [
15
- /tw-/,
16
- /Toastify/,
17
- /tippy-box/,
18
- /tippy-arrow/,
19
- /tippy-content/,
20
- /tippy-svg-arrow/,
21
- ],
22
- }),
23
12
  ],
24
13
  };
@@ -4,13 +4,13 @@ import Alert from "../lib/components/Alert";
4
4
  import Button from "../lib/components/Button";
5
5
 
6
6
  export default {
7
- title: "Components/Alert",
7
+ title: "Overlays/Alert",
8
8
  component: Alert,
9
9
  parameters: {
10
10
  layout: "padded",
11
11
  docs: {
12
12
  description: {
13
- component: '`import { Alert } from "@bigbinary/neetoui";`',
13
+ component: '`import { Alert } from "@bigbinary/neetoui/v2";`',
14
14
  },
15
15
  },
16
16
  },
@@ -14,9 +14,9 @@ export default {
14
14
  layout: "padded",
15
15
  docs: {
16
16
  description: {
17
- component: '`import { Avatar } from "@bigbinary/neetoui";`'
18
- }
19
- }
17
+ component: '`import { Avatar } from "@bigbinary/neetoui/v2";`',
18
+ },
19
+ },
20
20
  },
21
21
  };
22
22
 
@@ -10,11 +10,10 @@ export default {
10
10
  layout: "padded",
11
11
  docs: {
12
12
  description: {
13
- component: '`import { Button } from "@bigbinary/neetoui";`'
14
- }
15
- }
13
+ component: '`import { Button } from "@bigbinary/neetoui/v2";`',
14
+ },
15
+ },
16
16
  },
17
-
18
17
  };
19
18
 
20
19
  const Template = (args) => <Button {...args} />;
@@ -10,7 +10,7 @@ export default {
10
10
  layout: "padded",
11
11
  docs: {
12
12
  description: {
13
- component: '`import { Callout } from "@bigbinary/neetoui";`',
13
+ component: '`import { Callout } from "@bigbinary/neetoui/v2";`',
14
14
  },
15
15
  },
16
16
  },
@@ -33,9 +33,5 @@ export const WarningCallout = () => {
33
33
  };
34
34
 
35
35
  export const DangerCallout = () => {
36
- return (
37
- <Callout style="danger">
38
- This is an info callout!
39
- </Callout>
40
- );
36
+ return <Callout style="danger">This is an info callout!</Callout>;
41
37
  };
@@ -9,7 +9,7 @@ export default {
9
9
  layout: "padded",
10
10
  docs: {
11
11
  description: {
12
- component: '`import { Checkbox } from "@bigbinary/neetoui";`',
12
+ component: '`import { Checkbox } from "@bigbinary/neetoui/v2";`',
13
13
  },
14
14
  },
15
15
  },
@@ -2,112 +2,112 @@ import { Meta } from "@storybook/addon-docs";
2
2
 
3
3
  export const colorPalette = [
4
4
  {
5
- name: "$nui-white",
5
+ name: "$neeto-ui-white",
6
6
  value: "#ffffff",
7
7
  compiledValue: "#ffffff",
8
8
  },
9
9
  {
10
- name: "$nui-black",
10
+ name: "$neeto-ui-black",
11
11
  value: "#1b1f23",
12
12
  compiledValue: "#1b1f23",
13
13
  },
14
14
  {
15
- name: "$nui-gray-800",
15
+ name: "$neeto-ui-gray-800",
16
16
  value: "#2f3941",
17
17
  compiledValue: "#2f3941",
18
18
  },
19
19
  {
20
- name: "$nui-gray-700",
20
+ name: "$neeto-ui-gray-700",
21
21
  value: "#49545c",
22
22
  compiledValue: "#49545c",
23
23
  },
24
24
  {
25
- name: "$nui-gray-600",
25
+ name: "$neeto-ui-gray-600",
26
26
  value: "#68737d",
27
27
  compiledValue: "#68737d",
28
28
  },
29
29
  {
30
- name: "$nui-gray-500",
30
+ name: "$neeto-ui-gray-500",
31
31
  value: "#87929d",
32
32
  compiledValue: "#87929d",
33
33
  },
34
34
  {
35
- name: "$nui-gray-400",
35
+ name: "$neeto-ui-gray-400",
36
36
  value: "#c2c8cc",
37
37
  compiledValue: "#c2c8cc",
38
38
  },
39
39
  {
40
- name: "$nui-gray-300",
40
+ name: "$neeto-ui-gray-300",
41
41
  value: "#d8dcde",
42
42
  compiledValue: "#d8dcde",
43
43
  },
44
44
  {
45
- name: "$nui-gray-200",
45
+ name: "$neeto-ui-gray-200",
46
46
  value: "#e9ebed",
47
47
  compiledValue: "#e9ebed",
48
48
  },
49
49
  {
50
- name: "$nui-gray-100",
50
+ name: "$neeto-ui-gray-100",
51
51
  value: "#f8f9f9",
52
52
  compiledValue: "#f8f9f9",
53
53
  },
54
54
  {
55
- name: "$nui-success",
55
+ name: "$neeto-ui-success",
56
56
  value: "#00ba88",
57
57
  compiledValue: "#00ba88",
58
58
  },
59
59
  {
60
- name: "$nui-info",
60
+ name: "$neeto-ui-info",
61
61
  value: "#276ef1",
62
62
  compiledValue: "#276ef1",
63
63
  },
64
64
  {
65
- name: "$nui-warning",
65
+ name: "$neeto-ui-warning",
66
66
  value: "#f3cd82",
67
67
  compiledValue: "#f3cd82",
68
68
  },
69
69
  {
70
- name: "$nui-error",
70
+ name: "$neeto-ui-error",
71
71
  value: "#f56a58",
72
72
  compiledValue: "#f56a58",
73
73
  },
74
74
  {
75
- name: "$nui-pastel-blue",
75
+ name: "$neeto-ui-pastel-blue",
76
76
  value: "#eaf3fc",
77
77
  compiledValue: "#eaf3fc",
78
78
  },
79
79
  {
80
- name: "$nui-pastel-green",
80
+ name: "$neeto-ui-pastel-green",
81
81
  value: "#ebf5ec",
82
82
  compiledValue: "#ebf5ec",
83
83
  },
84
84
  {
85
- name: "$nui-pastel-yellow",
85
+ name: "$neeto-ui-pastel-yellow",
86
86
  value: "#fff2d7",
87
87
  compiledValue: "#fff2d7",
88
88
  },
89
89
  {
90
- name: "$nui-pastel-red",
90
+ name: "$neeto-ui-pastel-red",
91
91
  value: "#ffefed",
92
92
  compiledValue: "#ffefed",
93
93
  },
94
94
  {
95
- name: "$nui-pastel-teal",
95
+ name: "$neeto-ui-pastel-teal",
96
96
  value: "#98f3f4",
97
97
  compiledValue: "#98f3f4",
98
98
  },
99
99
  {
100
- name: "$nui-secondary-indigo",
100
+ name: "$neeto-ui-secondary-indigo",
101
101
  value: "#5e5ce6",
102
102
  compiledValue: "#5e5ce6",
103
103
  },
104
104
  {
105
- name: "$nui-secondary-green",
105
+ name: "$neeto-ui-secondary-green",
106
106
  value: "#00ba88",
107
107
  compiledValue: "#00ba88",
108
108
  },
109
109
  {
110
- name: "$nui-secondary-teal",
110
+ name: "$neeto-ui-secondary-teal",
111
111
  value: "#64d2ff",
112
112
  compiledValue: "#64d2ff",
113
113
  },
@@ -141,8 +141,8 @@ export const colorPalette = [
141
141
  <td>
142
142
  <div
143
143
  className={`w-12 h-12 cursor-pointer rounded-full shadow-xl ${color.name.replace(
144
- "$nui",
145
- "nui-bg"
144
+ "$neeto-ui",
145
+ "neeto-ui-bg"
146
146
  )}`}
147
147
  ></div>
148
148
  </td>
@@ -154,14 +154,14 @@ export const colorPalette = [
154
154
  </td>
155
155
  <td>
156
156
  <div className="flex justify-between">
157
- <code>{`.${color.name.replace("$nui", "nui-text")}`}</code>
158
- <b className={`ml-2 ${color.name.replace("$nui", "nui-text")}`}>
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
159
  Aa
160
160
  </b>
161
161
  </div>
162
162
  </td>
163
- <td className={`${color.name.replace("$nui", "nui-bg")}`}>
164
- <code>{`.${color.name.replace("$nui", "nui-bg")}`}</code>
163
+ <td className={`${color.name.replace("$neeto-ui", "neeto-ui-bg")}`}>
164
+ <code>{`.${color.name.replace("$neeto-ui", "neeto-ui-bg")}`}</code>
165
165
  </td>
166
166
  </tr>
167
167
  );
@@ -10,9 +10,9 @@ export default {
10
10
  layout: "padded",
11
11
  docs: {
12
12
  description: {
13
- component: '`import { Dropdown } from "@bigbinary/neetoui";`'
14
- }
15
- }
13
+ component: '`import { Dropdown } from "@bigbinary/neetoui/v2";`',
14
+ },
15
+ },
16
16
  },
17
17
  };
18
18
 
@@ -1,15 +1,32 @@
1
1
  import React from "react";
2
2
  import * as iconset from "@bigbinary/neeto-icons";
3
3
 
4
+ const applications = [
5
+ "NeetoAnalytics",
6
+ "NeetoCal",
7
+ "NeetoChangelog",
8
+ "NeetoChat",
9
+ "NeetoDesk",
10
+ "NeetoForm",
11
+ "NeetoInsights",
12
+ "NeetoInterview",
13
+ "NeetoInvisible",
14
+ "NeetoKb",
15
+ "NeetoQuiz",
16
+ "NeetoReplay",
17
+ "NeetoWireframe",
18
+ ];
19
+
4
20
  export default {
5
21
  title: "Foundation/Iconography",
6
22
  parameters: {
7
23
  layout: "padded",
8
24
  docs: {
9
25
  description: {
10
- component: '`import { ClockIcon } from "@bigbinary/neeto-icons";` <br><br> Anywhere in your React file <br><br> `<ClockIcon color="#1e1e20" size={24} />`',
11
- }
12
- }
26
+ component:
27
+ '`import { ClockIcon } from "@bigbinary/neeto-icons";` <br><br> Anywhere in your React file <br><br> `<ClockIcon color="#1e1e20" size={24} />`',
28
+ },
29
+ },
13
30
  },
14
31
  };
15
32
 
@@ -38,13 +55,13 @@ export const Iconography = () => {
38
55
  <span>Source</span>
39
56
  </a>
40
57
  </p>
41
- <div className="grid grid-cols-4 lg:grid-cols-8 gap-3">
58
+ <div className="grid grid-cols-4 gap-3 lg:grid-cols-8">
42
59
  {iconset.iconList.map((icon) => {
43
60
  const Component = iconset[icon];
44
61
  return (
45
62
  <div
46
63
  key={icon}
47
- className="flex items-center justify-center p-5 bg-gray-50 hover:bg-gray-100 rounded-lg flex-col cursor-pointer transition-colors"
64
+ className="flex flex-col items-center justify-center p-5 transition-colors rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100"
48
65
  >
49
66
  <Component />
50
67
  <div className="mt-2 text-xs">{icon}</div>
@@ -55,3 +72,49 @@ export const Iconography = () => {
55
72
  </div>
56
73
  );
57
74
  };
75
+
76
+ export const ApplicationIcons = () => {
77
+ return (
78
+ <div className="p-4">
79
+ <div className="table border-collapse">
80
+ <thead>
81
+ <tr>
82
+ <th className="p-4 text-left border border-gray-200"></th>
83
+ <th className="p-4 text-left border border-gray-200">Application</th>
84
+ <th className="p-4 text-left border border-gray-200">Gradient Class</th>
85
+ <th className="p-4 text-left border border-gray-200">Icon</th>
86
+ </tr>
87
+ </thead>
88
+ <tbody>
89
+ {applications.map((application) => {
90
+ const Component = iconset[application];
91
+ return (
92
+ <tr className="">
93
+ <td className="p-4 text-center border border-gray-200">
94
+ <div
95
+ className={`neeto-ui-app-switcher-link__icon-holder m-0 ${application
96
+ .toLocaleLowerCase()
97
+ .replace("neeto", "gradient--")}`}
98
+ >
99
+ <Component color="#fff" />
100
+ </div>
101
+ </td>
102
+ <td className="p-4 text-left border border-gray-200">
103
+ <b className="p-1 px-2 text-xs">{application}</b>
104
+ </td>
105
+ <td className="p-4 text-left border border-gray-200">
106
+ <code className="p-1 px-2 text-xs bg-gray-100 rounded">{`.${application
107
+ .toLocaleLowerCase()
108
+ .replace("neeto", "gradient--")}`}</code>
109
+ </td>
110
+ <td className="p-4 text-left border border-gray-200">
111
+ <code className="p-1 px-2 text-xs bg-gray-100 rounded">{application}</code>
112
+ </td>
113
+ </tr>
114
+ );
115
+ })}
116
+ </tbody>
117
+ </div>
118
+ </div>
119
+ );
120
+ };
@@ -10,7 +10,7 @@ export default {
10
10
  layout: "padded",
11
11
  docs: {
12
12
  description: {
13
- component: '`import { Input } from "@bigbinary/neetoui";`',
13
+ component: '`import { Input } from "@bigbinary/neetoui/v2";`',
14
14
  },
15
15
  },
16
16
  },
@@ -58,7 +58,10 @@ yarn add @bigbinary/neetoui
58
58
  For other installation methods, refer our [**official npm page**](https://www.npmjs.com/package/@bigbinary/neetoui)
59
59
 
60
60
  <div className="tip-wrapper">
61
- <span className="tip">To use NeetoUI, you need a recent version of React.js installed (version 16.13.1+ recommended)</span>
61
+ <span className="tip">
62
+ To use NeetoUI, you need a recent version of React.js installed (version
63
+ 16.13.1+ recommended)
64
+ </span>
62
65
  </div>
63
66
 
64
67
  <div className="subheading">Basic Usage</div>
@@ -68,14 +71,14 @@ For other installation methods, refer our [**official npm page**](https://www.np
68
71
  NeetoUI exports all it’s component as named exports. You can individually import necessary components in the following way:
69
72
 
70
73
  ```
71
- import { Button, Tooltip, } from "@bigbinary/neetoui";
74
+ import { Button, Tooltip, } from "@bigbinary/neetoui/v2";
72
75
  ```
73
76
 
74
77
  If you need access to an object that contains references to all the components you can do a wildcard import. This way, you can render dynamic components from NeetoUI.
75
78
 
76
79
  ```
77
80
  import React from "react";
78
- import * as NeetoUI from "@bigbinary/neetoui";
81
+ import * as NeetoUI from "@bigbinary/neetoui/v2";
79
82
 
80
83
  export default function index() {
81
84
  const Button = NeetoUI.Button;
@@ -96,5 +99,3 @@ export default function index() {
96
99
  #### Acceptable props for Components
97
100
 
98
101
  Refer documentation of each component for a detailed list of available props and their usage.
99
-
100
-
@@ -9,7 +9,7 @@ export default {
9
9
  layout: "padded",
10
10
  docs: {
11
11
  description: {
12
- component: '`import { Label } from "@bigbinary/neetoui";`',
12
+ component: '`import { Label } from "@bigbinary/neetoui/v2";`',
13
13
  },
14
14
  },
15
15
  },
@@ -169,7 +169,7 @@ export const Page = () => {
169
169
  <PageLoader />
170
170
  ) : (
171
171
  <table
172
- className={`nui-table nui-table--checkbox nui-table--actions`}
172
+ className={`neeto-ui-table neeto-ui-table--checkbox neeto-ui-table--actions`}
173
173
  >
174
174
  <thead>
175
175
  <tr>
@@ -236,7 +236,7 @@ export const Page = () => {
236
236
  </table>
237
237
  )}
238
238
  </Scrollable>
239
- <div className="flex flex-row justify-end items-center w-full mt-6 mb-8">
239
+ <div className="flex flex-row items-center justify-end w-full mt-6 mb-8">
240
240
  <Pagination
241
241
  count={300}
242
242
  pageNo={1}
@@ -17,7 +17,7 @@ export default {
17
17
  parameters: {
18
18
  docs: {
19
19
  description: {
20
- component: '`import { MenuBar } from "@bigbinary/neetoui/layouts";`',
20
+ component: '`import { MenuBar } from "@bigbinary/neetoui/v2/layouts";`',
21
21
  },
22
22
  },
23
23
  },