@xola/ui-kit 2.0.0-9 → 2.0.0-91
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 +15 -14
- package/build/style.css +1 -1
- package/build/ui-kit.mjs +11351 -0
- package/build/ui-kit.umd.js +30 -1
- package/index.css +59 -52
- package/package.json +20 -18
- package/tailwind.config.js +73 -53
- package/build/images/full-login-image.jpeg +0 -0
- package/build/images/login-image.png +0 -0
- package/build/ui-kit.es.js +0 -1
package/index.css
CHANGED
|
@@ -1,71 +1,78 @@
|
|
|
1
1
|
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");
|
|
2
|
+
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap");
|
|
2
3
|
|
|
3
4
|
@tailwind base;
|
|
4
5
|
@tailwind components;
|
|
5
6
|
@tailwind utilities;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
@layer base {
|
|
9
|
+
html {
|
|
10
|
+
/* Never change this default! */
|
|
11
|
+
@apply text-black text-base;
|
|
12
|
+
}
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
14
|
+
a {
|
|
15
|
+
@apply text-primary hover:underline;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
@apply leading-p1 tracking-tightest;
|
|
20
|
-
}
|
|
18
|
+
button:focus {
|
|
19
|
+
@apply outline-none;
|
|
20
|
+
}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
22
|
+
h1 {
|
|
23
|
+
@apply text-2xl; /* 24px */
|
|
24
|
+
@apply font-bold;
|
|
25
|
+
@apply leading-p1 tracking-tightest;
|
|
26
|
+
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
28
|
+
h2 {
|
|
29
|
+
@apply text-xl; /* 21px */
|
|
30
|
+
@apply font-bold;
|
|
31
|
+
@apply leading-p1 tracking-tightest;
|
|
32
|
+
}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
h3 {
|
|
35
|
+
@apply text-lg; /* 18px */
|
|
36
|
+
@apply font-bold;
|
|
37
|
+
@apply tracking-tightest;
|
|
38
|
+
}
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
40
|
+
h4 {
|
|
41
|
+
@apply text-md; /* 16 px */
|
|
42
|
+
@apply leading-p2 tracking-tightest;
|
|
43
|
+
}
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
45
|
+
h5 {
|
|
46
|
+
@apply text-base; /* 14 px */
|
|
47
|
+
@apply leading-p2 tracking-tightest;
|
|
48
|
+
}
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
50
|
+
h6 {
|
|
51
|
+
@apply text-sm; /* 14 px */
|
|
52
|
+
@apply leading-p3 tracking-tightest;
|
|
53
|
+
}
|
|
53
54
|
|
|
54
|
-
.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
55
|
+
.p1 {
|
|
56
|
+
@apply text-md; /* 16px */
|
|
57
|
+
@apply leading-p1 tracking-tightest;
|
|
58
|
+
}
|
|
58
59
|
|
|
59
|
-
.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
60
|
+
.p2 {
|
|
61
|
+
@apply text-base; /* 14px */
|
|
62
|
+
@apply leading-p2 tracking-tightest;
|
|
63
|
+
}
|
|
63
64
|
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
65
|
+
.p3 {
|
|
66
|
+
@apply text-sm; /* 12px */
|
|
67
|
+
@apply leading-p3 tracking-tightest;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ui-badge .icon {
|
|
71
|
+
position: relative;
|
|
72
|
+
top: -1px;
|
|
73
|
+
}
|
|
68
74
|
|
|
69
|
-
.font-bold {
|
|
70
|
-
|
|
75
|
+
.font-bold {
|
|
76
|
+
@apply antialiased;
|
|
77
|
+
}
|
|
71
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xola/ui-kit",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-91",
|
|
4
4
|
"description": "Xola UI Kit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"postcss.config.js"
|
|
11
11
|
],
|
|
12
12
|
"main": "build/ui-kit.umd.js",
|
|
13
|
-
"module": "build/ui-kit.
|
|
13
|
+
"module": "build/ui-kit.mjs",
|
|
14
14
|
"types": "index.d.ts",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"prepare": "node scripts/prepare && vite build",
|
|
@@ -29,45 +29,47 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@headlessui/react": "^1.4.0",
|
|
32
|
-
"@tailwindcss/forms": "^0.
|
|
33
|
-
"@tailwindcss/line-clamp": "^0.
|
|
32
|
+
"@tailwindcss/forms": "^0.4.0",
|
|
33
|
+
"@tailwindcss/line-clamp": "^0.3.1",
|
|
34
34
|
"@tippyjs/react": "^4.2.5",
|
|
35
35
|
"clsx": "^1.1.1",
|
|
36
36
|
"dayjs": "^1.10.7",
|
|
37
37
|
"downshift": "^6.1.5",
|
|
38
38
|
"get-user-locale": "^1.4.0",
|
|
39
39
|
"google-libphonenumber": "^3.2.22",
|
|
40
|
-
"
|
|
40
|
+
"nouislider-react": "^3.4.1",
|
|
41
41
|
"prop-types": "^15.7.2",
|
|
42
42
|
"react-day-picker": "^7.4.10",
|
|
43
43
|
"react-hot-toast": "^2.1.0",
|
|
44
44
|
"react-hotkeys-hook": "^3.4.0",
|
|
45
|
+
"react-json-view": "^1.21.3",
|
|
45
46
|
"react-select": "^5.1.0",
|
|
46
47
|
"tippy.js": "^6.3.1"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@babel/core": "^7.14.8",
|
|
50
51
|
"@babel/preset-env": "^7.15.6",
|
|
51
|
-
"@storybook/addon-actions": "^6.
|
|
52
|
-
"@storybook/addon-essentials": "^6.
|
|
53
|
-
"@storybook/addon-links": "^6.
|
|
52
|
+
"@storybook/addon-actions": "^6.5.10",
|
|
53
|
+
"@storybook/addon-essentials": "^6.5.10",
|
|
54
|
+
"@storybook/addon-links": "^6.5.10",
|
|
54
55
|
"@storybook/addon-postcss": "^2.0.0",
|
|
55
|
-
"@storybook/addons": "^6.
|
|
56
|
-
"@storybook/react": "^6.
|
|
57
|
-
"@storybook/theming": "^6.
|
|
58
|
-
"@xola/jslint": "^
|
|
59
|
-
"autoprefixer": "^10.
|
|
56
|
+
"@storybook/addons": "^6.5.10",
|
|
57
|
+
"@storybook/react": "^6.5.10",
|
|
58
|
+
"@storybook/theming": "^6.5.10",
|
|
59
|
+
"@xola/jslint": "^2.1.0",
|
|
60
|
+
"autoprefixer": "^10.4.5",
|
|
60
61
|
"babel-jest": "^27.2.0",
|
|
61
62
|
"babel-loader": "^8.2.2",
|
|
62
63
|
"jest": "^27.2.0",
|
|
63
64
|
"lodash": "^4.17.21",
|
|
64
|
-
"postcss": "^8.
|
|
65
|
-
"prettier": "^2.
|
|
65
|
+
"postcss": "^8.4.5",
|
|
66
|
+
"prettier": "^2.7.1",
|
|
67
|
+
"prettier-plugin-tailwindcss": "^0.1.13",
|
|
66
68
|
"react": "^17.0.2",
|
|
67
69
|
"react-dom": "^17.0.2",
|
|
68
70
|
"storybook-css-modules-preset": "^1.1.1",
|
|
69
|
-
"tailwindcss": "^
|
|
70
|
-
"vite": "^
|
|
71
|
+
"tailwindcss": "^3.1.8",
|
|
72
|
+
"vite": "^3.0.8"
|
|
71
73
|
},
|
|
72
74
|
"peerDependencies": {
|
|
73
75
|
"autoprefixer": "^10.3.1",
|
|
@@ -75,7 +77,7 @@
|
|
|
75
77
|
"postcss": "^8.3.6",
|
|
76
78
|
"react": "^17.0.2",
|
|
77
79
|
"react-dom": "^17.0.2",
|
|
78
|
-
"tailwindcss": "^
|
|
80
|
+
"tailwindcss": "^3.0.18"
|
|
79
81
|
},
|
|
80
82
|
"prettier": {
|
|
81
83
|
"semi": true,
|
package/tailwind.config.js
CHANGED
|
@@ -8,6 +8,7 @@ const colors = {
|
|
|
8
8
|
white: "#ffffff",
|
|
9
9
|
|
|
10
10
|
gray: {
|
|
11
|
+
hover: "#F7F9FB",
|
|
11
12
|
lighter: "#F0F2F4",
|
|
12
13
|
light: "#E0E3E7",
|
|
13
14
|
DEFAULT: "#BDC0C6",
|
|
@@ -23,28 +24,36 @@ const colors = {
|
|
|
23
24
|
darker: "#0E44A8",
|
|
24
25
|
},
|
|
25
26
|
|
|
27
|
+
turquoise: {
|
|
28
|
+
// TODO: We need other shades to match the scheme
|
|
29
|
+
DEFAULT: "#3FE2EE",
|
|
30
|
+
},
|
|
31
|
+
|
|
26
32
|
green: {
|
|
27
33
|
lighter: "#E2FFEF",
|
|
34
|
+
lightish: "#C1F9D9",
|
|
28
35
|
light: "#33E781",
|
|
29
36
|
DEFAULT: "#27CE70",
|
|
30
37
|
dark: "#23B965",
|
|
31
|
-
darker: "#
|
|
38
|
+
darker: "#168848",
|
|
32
39
|
},
|
|
33
40
|
|
|
34
41
|
red: {
|
|
35
|
-
lighter: "#
|
|
42
|
+
lighter: "#FFF0F0",
|
|
43
|
+
lightish: "#FFE1E1",
|
|
36
44
|
light: "#FFA1A1",
|
|
37
45
|
DEFAULT: "#FF5A5A",
|
|
38
46
|
dark: "#E93737",
|
|
39
|
-
darker: "#
|
|
47
|
+
darker: "#CD1F1F",
|
|
40
48
|
},
|
|
41
49
|
|
|
42
50
|
yellow: {
|
|
43
51
|
lighter: "#FFFAF0",
|
|
52
|
+
lightish: "#FFECC6",
|
|
44
53
|
light: "#FFDB8E",
|
|
45
54
|
DEFAULT: "#FFC03D",
|
|
46
55
|
dark: "#EBAA24",
|
|
47
|
-
darker: "#
|
|
56
|
+
darker: "#987122",
|
|
48
57
|
},
|
|
49
58
|
|
|
50
59
|
orange: {
|
|
@@ -56,11 +65,61 @@ const colors = {
|
|
|
56
65
|
},
|
|
57
66
|
};
|
|
58
67
|
|
|
68
|
+
const spacing = {
|
|
69
|
+
0: "0px",
|
|
70
|
+
0.25: "1px",
|
|
71
|
+
0.5: "2px",
|
|
72
|
+
0.75: "3px",
|
|
73
|
+
1: "4px",
|
|
74
|
+
1.5: "6px",
|
|
75
|
+
2: "8px",
|
|
76
|
+
2.5: "10px",
|
|
77
|
+
3: "12px",
|
|
78
|
+
3.5: "14px",
|
|
79
|
+
4: "16px",
|
|
80
|
+
4.5: "18px",
|
|
81
|
+
5: "20px",
|
|
82
|
+
6: "24px",
|
|
83
|
+
7: "28px",
|
|
84
|
+
7.5: "30px",
|
|
85
|
+
8: "32px",
|
|
86
|
+
9: "36px",
|
|
87
|
+
10: "40px",
|
|
88
|
+
11: "44px",
|
|
89
|
+
12: "48px",
|
|
90
|
+
14: "56px",
|
|
91
|
+
15: "60px",
|
|
92
|
+
16: "64px",
|
|
93
|
+
20: "80px",
|
|
94
|
+
24: "96px",
|
|
95
|
+
25: "100px",
|
|
96
|
+
28: "112px",
|
|
97
|
+
30: "120px",
|
|
98
|
+
32: "128px",
|
|
99
|
+
36: "144px",
|
|
100
|
+
40: "160px",
|
|
101
|
+
44: "176px",
|
|
102
|
+
48: "192px",
|
|
103
|
+
50: "200px",
|
|
104
|
+
52: "208px",
|
|
105
|
+
56: "224px",
|
|
106
|
+
60: "240px",
|
|
107
|
+
64: "256px",
|
|
108
|
+
65: "260px", // CODE REVIEW: Should switch to w-64 260px or use Barth's spacing here?
|
|
109
|
+
72: "288px",
|
|
110
|
+
75: "300px",
|
|
111
|
+
80: "320px",
|
|
112
|
+
82: "350px",
|
|
113
|
+
96: "384px",
|
|
114
|
+
100: "400px",
|
|
115
|
+
105: "420px",
|
|
116
|
+
125: "500px",
|
|
117
|
+
150: "600px",
|
|
118
|
+
140: "560px",
|
|
119
|
+
200: "800px",
|
|
120
|
+
};
|
|
59
121
|
module.exports = {
|
|
60
|
-
|
|
61
|
-
darkMode: false,
|
|
62
|
-
|
|
63
|
-
purge: [
|
|
122
|
+
content: [
|
|
64
123
|
"./src/**/*.js",
|
|
65
124
|
"./src/**/*.jsx",
|
|
66
125
|
"./src/**/*.ts",
|
|
@@ -82,50 +141,7 @@ module.exports = {
|
|
|
82
141
|
caution: colors.orange,
|
|
83
142
|
},
|
|
84
143
|
|
|
85
|
-
spacing
|
|
86
|
-
0: "0px",
|
|
87
|
-
0.25: "1px",
|
|
88
|
-
0.5: "2px",
|
|
89
|
-
0.75: "3px",
|
|
90
|
-
1: "4px",
|
|
91
|
-
1.5: "6px",
|
|
92
|
-
2: "8px",
|
|
93
|
-
2.5: "10px",
|
|
94
|
-
3: "12px",
|
|
95
|
-
3.5: "14px",
|
|
96
|
-
4: "16px",
|
|
97
|
-
4.5: "18px",
|
|
98
|
-
5: "20px",
|
|
99
|
-
6: "24px",
|
|
100
|
-
7: "28px",
|
|
101
|
-
7.5: "30px",
|
|
102
|
-
8: "32px",
|
|
103
|
-
9: "36px",
|
|
104
|
-
10: "40px",
|
|
105
|
-
11: "44px",
|
|
106
|
-
12: "48px",
|
|
107
|
-
14: "56px",
|
|
108
|
-
15: "60px",
|
|
109
|
-
16: "64px",
|
|
110
|
-
20: "80px",
|
|
111
|
-
24: "96px",
|
|
112
|
-
25: "100px",
|
|
113
|
-
28: "112px",
|
|
114
|
-
32: "128px",
|
|
115
|
-
36: "144px",
|
|
116
|
-
40: "160px",
|
|
117
|
-
44: "176px",
|
|
118
|
-
48: "192px",
|
|
119
|
-
50: "200px",
|
|
120
|
-
52: "208px",
|
|
121
|
-
56: "224px",
|
|
122
|
-
60: "240px",
|
|
123
|
-
64: "256px",
|
|
124
|
-
72: "288px",
|
|
125
|
-
80: "320px",
|
|
126
|
-
82: "350px",
|
|
127
|
-
96: "384px",
|
|
128
|
-
},
|
|
144
|
+
spacing,
|
|
129
145
|
|
|
130
146
|
// Figma: https://www.figma.com/file/tL2vrxuBIzujkDfYvVjUhs/%F0%9F%9B%A0-Xola-DS-Desktop-Master-%F0%9F%9B%A0?node-id=1885%3A51905
|
|
131
147
|
fontSize: {
|
|
@@ -154,6 +170,7 @@ module.exports = {
|
|
|
154
170
|
extend: {
|
|
155
171
|
fontFamily: {
|
|
156
172
|
sans: ["Inter", ...defaultTheme.fontFamily.sans],
|
|
173
|
+
mono: ["Roboto Mono", ...defaultTheme.fontFamily.mono],
|
|
157
174
|
},
|
|
158
175
|
|
|
159
176
|
// P1 - Big 16px 130%
|
|
@@ -193,8 +210,11 @@ module.exports = {
|
|
|
193
210
|
|
|
194
211
|
letterSpacing: {
|
|
195
212
|
tightest: "-.4px",
|
|
196
|
-
// TODO: Other letter spacings are in EM and need to be
|
|
213
|
+
// TODO: Other letter spacings are in EM and need to be converted to px
|
|
197
214
|
},
|
|
215
|
+
|
|
216
|
+
minWidth: spacing,
|
|
217
|
+
maxWidth: spacing,
|
|
198
218
|
},
|
|
199
219
|
},
|
|
200
220
|
|
|
Binary file
|
|
Binary file
|