@bigbinary/neetoui 2.0.60 → 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 +5 -1
- package/package.json +2 -2
- package/stories/Iconography.stories.jsx +68 -5
- package/v2/formik.js +4 -4
- package/v2/index.js +4 -4
- package/v2/layouts.js +4 -4
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
|
|
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.
|
|
3
|
+
"version": "2.0.61",
|
|
4
4
|
"main": "./neetoui.js",
|
|
5
5
|
"author": "BigBinary",
|
|
6
6
|
"license": "MIT",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"react-toastify": "^8.0.2"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@bigbinary/neeto-icons": "^1.
|
|
85
|
+
"@bigbinary/neeto-icons": "^1.7.0",
|
|
86
86
|
"@popperjs/core": "^2.9.2",
|
|
87
87
|
"@reach/auto-id": "^0.15.0",
|
|
88
88
|
"@tailwindcss/forms": "^0.3.2",
|
|
@@ -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:
|
|
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
|
|
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
|
|
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
|
+
};
|