@bigbinary/neetoui 2.0.65 → 2.0.71
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/.storybook/preview.js +1 -1
- package/package.json +1 -1
- package/stories/Color.stories.mdx +6 -6
- package/stories/Dropdown.stories.jsx +20 -0
- package/stories/HelpersBorderColor.stories.mdx +162 -0
- package/stories/HelpersBoxShadows.stories.mdx +83 -0
- package/stories/HelpersColor.stories.mdx +170 -0
- package/stories/Iconography.stories.jsx +4 -4
- package/stories/Input.stories.jsx +6 -21
- package/stories/Sidebar.stories.jsx +1 -1
- package/v2/formik.js +1 -1
- package/v2/index.js +5 -5
- package/v2/layouts.js +4 -4
- package/storybook-static/0.9cc97ea96ddfda658f06.manager.bundle.js +0 -1
- package/storybook-static/0.b387d3c1.iframe.bundle.js +0 -1
- package/storybook-static/4.8ebe08b8e31f26ef58c5.manager.bundle.js +0 -2
- package/storybook-static/4.8ebe08b8e31f26ef58c5.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/4.abd306b1.iframe.bundle.js +0 -3
- package/storybook-static/4.abd306b1.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/4.abd306b1.iframe.bundle.js.map +0 -1
- package/storybook-static/5.08b0d1ae.iframe.bundle.js +0 -1
- package/storybook-static/5.ad79d2e4722f53fec298.manager.bundle.js +0 -1
- package/storybook-static/6.14b32863.iframe.bundle.js +0 -3
- package/storybook-static/6.14b32863.iframe.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/6.14b32863.iframe.bundle.js.map +0 -1
- package/storybook-static/6.ea3f7abc26ff098bc49b.manager.bundle.js +0 -2
- package/storybook-static/6.ea3f7abc26ff098bc49b.manager.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/7.9fb3ce60.iframe.bundle.js +0 -1
- package/storybook-static/7.fddbd96e1ede840c218a.manager.bundle.js +0 -1
- package/storybook-static/8.9988b252398dbf730fed.manager.bundle.js +0 -1
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +0 -138
- package/storybook-static/index.html +0 -55
- package/storybook-static/main.1d20e55a.iframe.bundle.js +0 -1
- package/storybook-static/main.69647444d33cc2d05737.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.61a3a56f76d0480d1c34.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.c5c6f2ec.iframe.bundle.js +0 -1
- package/storybook-static/static/media/neetoLogo.9369b7fa.svg +0 -12
- package/storybook-static/static/media/user.36bdad5d.png +0 -0
- package/storybook-static/vendors~main.3d193ae3.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.3d193ae3.iframe.bundle.js.LICENSE.txt +0 -124
- package/storybook-static/vendors~main.3d193ae3.iframe.bundle.js.map +0 -1
- package/storybook-static/vendors~main.8c92430e6cce6333e66b.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.8c92430e6cce6333e66b.manager.bundle.js.LICENSE.txt +0 -82
package/.storybook/preview.js
CHANGED
|
@@ -13,7 +13,7 @@ export const parameters = {
|
|
|
13
13
|
},
|
|
14
14
|
options: {
|
|
15
15
|
storySort: {
|
|
16
|
-
order: ['Introduction', 'Foundation', 'Components', 'Overlays', 'Layouts'],
|
|
16
|
+
order: ['Introduction', 'Foundation', ['Colors', 'Typography', 'Iconography', 'Helpers'], 'Components', 'Overlays', 'Layouts'],
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -128,10 +128,10 @@ export const colorPalette = [
|
|
|
128
128
|
<thead>
|
|
129
129
|
<tr>
|
|
130
130
|
<td></td>
|
|
131
|
-
<td>Hex
|
|
132
|
-
<td>Variable
|
|
133
|
-
<td>Text
|
|
134
|
-
<td>Background
|
|
131
|
+
<td>Hex code</td>
|
|
132
|
+
<td>Variable name</td>
|
|
133
|
+
<td>Text color class</td>
|
|
134
|
+
<td>Background color class</td>
|
|
135
135
|
</tr>
|
|
136
136
|
</thead>
|
|
137
137
|
<tbody>
|
|
@@ -154,14 +154,14 @@ export const colorPalette = [
|
|
|
154
154
|
</td>
|
|
155
155
|
<td>
|
|
156
156
|
<div className="flex justify-between">
|
|
157
|
-
<code>{
|
|
157
|
+
<code>{`${color.name.replace("$neeto-ui", "neeto-ui-text")}`}</code>
|
|
158
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
163
|
<td className={`${color.name.replace("$neeto-ui", "neeto-ui-bg")}`}>
|
|
164
|
-
<code>{
|
|
164
|
+
<code>{`${color.name.replace("$neeto-ui", "neeto-ui-bg")}`}</code>
|
|
165
165
|
</td>
|
|
166
166
|
</tr>
|
|
167
167
|
);
|
|
@@ -82,3 +82,23 @@ export const CustomIcon = (args) => {
|
|
|
82
82
|
</Dropdown>
|
|
83
83
|
);
|
|
84
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
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
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>
|
|
@@ -0,0 +1,83 @@
|
|
|
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>
|
|
@@ -0,0 +1,170 @@
|
|
|
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/Color" />
|
|
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>
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
docs: {
|
|
25
25
|
description: {
|
|
26
26
|
component:
|
|
27
|
-
'`import {
|
|
27
|
+
'`import { Clock } from "@bigbinary/neeto-icons";` <br><br> Anywhere in your React file <br><br> `<Clock color="#1e1e20" size={24} />`',
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
},
|
|
@@ -81,7 +81,7 @@ export const ApplicationIcons = () => {
|
|
|
81
81
|
<tr>
|
|
82
82
|
<th className="p-4 text-left border border-gray-200"></th>
|
|
83
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
|
|
84
|
+
<th className="p-4 text-left border border-gray-200">Gradient class</th>
|
|
85
85
|
<th className="p-4 text-left border border-gray-200">Icon</th>
|
|
86
86
|
</tr>
|
|
87
87
|
</thead>
|
|
@@ -92,7 +92,7 @@ export const ApplicationIcons = () => {
|
|
|
92
92
|
<tr className="">
|
|
93
93
|
<td className="p-4 text-center border border-gray-200">
|
|
94
94
|
<div
|
|
95
|
-
className={`
|
|
95
|
+
className={`w-8 h-8 rounded-md mb-3 flex flex-row items-center justify-center ${application
|
|
96
96
|
.toLocaleLowerCase()
|
|
97
97
|
.replace("neeto", "gradient--")}`}
|
|
98
98
|
>
|
|
@@ -103,7 +103,7 @@ export const ApplicationIcons = () => {
|
|
|
103
103
|
<b className="p-1 px-2 text-xs">{application}</b>
|
|
104
104
|
</td>
|
|
105
105
|
<td className="p-4 text-left border border-gray-200">
|
|
106
|
-
<code className="p-1 px-2 text-xs bg-gray-100 rounded">{
|
|
106
|
+
<code className="p-1 px-2 text-xs bg-gray-100 rounded">{`${application
|
|
107
107
|
.toLocaleLowerCase()
|
|
108
108
|
.replace("neeto", "gradient--")}`}</code>
|
|
109
109
|
</td>
|
|
@@ -41,8 +41,12 @@ export const Required = () => <Input label="Required Input" required={true} />;
|
|
|
41
41
|
|
|
42
42
|
export const Disabled = () => <Input label="Disabled Input" disabled={true} />;
|
|
43
43
|
|
|
44
|
-
export const
|
|
45
|
-
<Input label="Search" prefix={<Search />} suffix=".neetohelp.com" />
|
|
44
|
+
export const SearchInputSmall = () => (
|
|
45
|
+
<Input label="Search" prefix={<Search size={16} />} suffix=".neetohelp.com" />
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
export const SearchInputLarge = () => (
|
|
49
|
+
<Input label="Search" size="large" prefix={<Search size={20} />} suffix=".neetohelp.com" />
|
|
46
50
|
);
|
|
47
51
|
|
|
48
52
|
export const Error = () => <Input label="Error" error="Provide valid email" />;
|
|
@@ -62,15 +66,6 @@ export const AllVariants = () => {
|
|
|
62
66
|
<div className="p-6 space-y-6">
|
|
63
67
|
<div className="p-4 space-y-8 border border-indigo-500 border-dashed">
|
|
64
68
|
<h2 className="text-xl">Input/Small/Default</h2>
|
|
65
|
-
<div className="flex flex-row items-center justify-center space-x-8">
|
|
66
|
-
<Input placeholder="Input Placeholder" data-cy="test123" />
|
|
67
|
-
<Input
|
|
68
|
-
placeholder="Input Placeholder"
|
|
69
|
-
prefix={<Favorite size={16} />}
|
|
70
|
-
/>
|
|
71
|
-
<Input placeholder="Input Placeholder" />
|
|
72
|
-
<Input placeholder="Input Placeholder" />
|
|
73
|
-
</div>
|
|
74
69
|
<div className="flex flex-row items-center justify-center space-x-8">
|
|
75
70
|
<Input placeholder="Input Placeholder" />
|
|
76
71
|
<Input
|
|
@@ -136,16 +131,6 @@ export const AllVariants = () => {
|
|
|
136
131
|
<Input placeholder="Input Placeholder" size="large" />
|
|
137
132
|
<Input placeholder="Input Placeholder" size="large" />
|
|
138
133
|
</div>
|
|
139
|
-
<div className="flex flex-row items-center justify-center space-x-8">
|
|
140
|
-
<Input placeholder="Input Placeholder" size="large" />
|
|
141
|
-
<Input
|
|
142
|
-
placeholder="Input Placeholder"
|
|
143
|
-
size="large"
|
|
144
|
-
prefix={<Favorite size={16} />}
|
|
145
|
-
/>
|
|
146
|
-
<Input placeholder="Input Placeholder" size="large" />
|
|
147
|
-
<Input placeholder="Input Placeholder" size="large" />
|
|
148
|
-
</div>
|
|
149
134
|
<div className="flex flex-row items-center justify-center space-x-8">
|
|
150
135
|
<Input
|
|
151
136
|
placeholder="Input Placeholder"
|