@xola/ui-kit 2.0.0-10 → 2.0.0-101
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 +11662 -0
- package/build/ui-kit.umd.js +31 -1
- package/index.css +63 -52
- package/package.json +35 -25
- package/tailwind.config.js +74 -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,82 @@
|
|
|
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
|
+
}
|
|
74
|
+
|
|
75
|
+
sup {
|
|
76
|
+
top: -7px;
|
|
77
|
+
}
|
|
68
78
|
|
|
69
|
-
.font-bold {
|
|
70
|
-
|
|
79
|
+
.font-bold {
|
|
80
|
+
@apply antialiased;
|
|
81
|
+
}
|
|
71
82
|
}
|
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-101",
|
|
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",
|
|
@@ -21,53 +21,59 @@
|
|
|
21
21
|
"watch": "npm run build -- --watch",
|
|
22
22
|
"clean": "rm -rf node_modules/.vite",
|
|
23
23
|
"build:storybook": "node scripts/prepare && build-storybook -s public",
|
|
24
|
-
"lint": "xola-lint src",
|
|
25
|
-
"lint:fix": "xola-lint src --fix",
|
|
26
|
-
"lint:report": "xola-lint --reporter=json src > eslint_report.json && echo 'ESLint report saved to eslint_report.json'",
|
|
24
|
+
"lint": "xola-lint --ignore src/stories src",
|
|
25
|
+
"lint:fix": "xola-lint --ignore src/stories src --fix",
|
|
26
|
+
"lint:report": "xola-lint --ignore src/stories src --reporter=json src > eslint_report.json && echo 'ESLint report saved to eslint_report.json'",
|
|
27
27
|
"format": "prettier --write src",
|
|
28
|
-
"test": "xola-lint && jest"
|
|
28
|
+
"test": "xola-lint && jest",
|
|
29
|
+
"chromatic": "chromatic --exit-zero-on-changes --build-script-name build:storybook"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
32
|
"@headlessui/react": "^1.4.0",
|
|
32
|
-
"@tailwindcss/forms": "^0.
|
|
33
|
-
"@tailwindcss/line-clamp": "^0.
|
|
34
|
-
"@tippyjs/react": "^4.2.
|
|
33
|
+
"@tailwindcss/forms": "^0.4.0",
|
|
34
|
+
"@tailwindcss/line-clamp": "^0.3.1",
|
|
35
|
+
"@tippyjs/react": "^4.2.6",
|
|
35
36
|
"clsx": "^1.1.1",
|
|
36
37
|
"dayjs": "^1.10.7",
|
|
37
38
|
"downshift": "^6.1.5",
|
|
38
39
|
"get-user-locale": "^1.4.0",
|
|
39
40
|
"google-libphonenumber": "^3.2.22",
|
|
40
|
-
"
|
|
41
|
+
"nouislider-react": "^3.4.1",
|
|
41
42
|
"prop-types": "^15.7.2",
|
|
42
43
|
"react-day-picker": "^7.4.10",
|
|
43
44
|
"react-hot-toast": "^2.1.0",
|
|
44
45
|
"react-hotkeys-hook": "^3.4.0",
|
|
45
|
-
"react-
|
|
46
|
-
"
|
|
46
|
+
"react-json-view": "^1.21.3",
|
|
47
|
+
"react-select": "^5.7.0",
|
|
48
|
+
"storybook-addon-designs": "^6.3.1",
|
|
49
|
+
"tippy.js": "^6.3.1",
|
|
50
|
+
"typescript": "4.7"
|
|
47
51
|
},
|
|
48
52
|
"devDependencies": {
|
|
49
53
|
"@babel/core": "^7.14.8",
|
|
50
54
|
"@babel/preset-env": "^7.15.6",
|
|
51
|
-
"@storybook/addon-actions": "^6.
|
|
52
|
-
"@storybook/addon-essentials": "^6.
|
|
53
|
-
"@storybook/addon-links": "^6.
|
|
55
|
+
"@storybook/addon-actions": "^6.5.10",
|
|
56
|
+
"@storybook/addon-essentials": "^6.5.10",
|
|
57
|
+
"@storybook/addon-links": "^6.5.10",
|
|
54
58
|
"@storybook/addon-postcss": "^2.0.0",
|
|
55
|
-
"@storybook/addons": "^6.
|
|
56
|
-
"@storybook/react": "^6.
|
|
57
|
-
"@storybook/theming": "^6.
|
|
58
|
-
"@xola/jslint": "^
|
|
59
|
-
"autoprefixer": "^10.
|
|
59
|
+
"@storybook/addons": "^6.5.10",
|
|
60
|
+
"@storybook/react": "^6.5.10",
|
|
61
|
+
"@storybook/theming": "^6.5.10",
|
|
62
|
+
"@xola/jslint": "^2.1.2",
|
|
63
|
+
"autoprefixer": "^10.4.5",
|
|
60
64
|
"babel-jest": "^27.2.0",
|
|
61
65
|
"babel-loader": "^8.2.2",
|
|
66
|
+
"chromatic": "^6.11.4",
|
|
62
67
|
"jest": "^27.2.0",
|
|
63
68
|
"lodash": "^4.17.21",
|
|
64
|
-
"postcss": "^8.
|
|
65
|
-
"prettier": "^2.
|
|
69
|
+
"postcss": "^8.4.5",
|
|
70
|
+
"prettier": "^2.7.1",
|
|
71
|
+
"prettier-plugin-tailwindcss": "^0.1.13",
|
|
66
72
|
"react": "^17.0.2",
|
|
67
73
|
"react-dom": "^17.0.2",
|
|
68
74
|
"storybook-css-modules-preset": "^1.1.1",
|
|
69
|
-
"tailwindcss": "^
|
|
70
|
-
"vite": "^
|
|
75
|
+
"tailwindcss": "^3.1.8",
|
|
76
|
+
"vite": "^3.0.8"
|
|
71
77
|
},
|
|
72
78
|
"peerDependencies": {
|
|
73
79
|
"autoprefixer": "^10.3.1",
|
|
@@ -75,7 +81,10 @@
|
|
|
75
81
|
"postcss": "^8.3.6",
|
|
76
82
|
"react": "^17.0.2",
|
|
77
83
|
"react-dom": "^17.0.2",
|
|
78
|
-
"tailwindcss": "^
|
|
84
|
+
"tailwindcss": "^3.0.18"
|
|
85
|
+
},
|
|
86
|
+
"engines": {
|
|
87
|
+
"node": ">=16"
|
|
79
88
|
},
|
|
80
89
|
"prettier": {
|
|
81
90
|
"semi": true,
|
|
@@ -85,6 +94,7 @@
|
|
|
85
94
|
"bracketSpacing": true,
|
|
86
95
|
"useTabs": false,
|
|
87
96
|
"arrowParens": "always",
|
|
97
|
+
"bracketSameLine": false,
|
|
88
98
|
"tabWidth": 4
|
|
89
99
|
}
|
|
90
100
|
}
|
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,32 +24,41 @@ 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: {
|
|
51
60
|
lighter: "#FFF1E7",
|
|
61
|
+
lightish: "#FFF1E7",
|
|
52
62
|
light: "#FFB493",
|
|
53
63
|
DEFAULT: "#FF9668",
|
|
54
64
|
dark: "#EC743F",
|
|
@@ -56,11 +66,61 @@ const colors = {
|
|
|
56
66
|
},
|
|
57
67
|
};
|
|
58
68
|
|
|
69
|
+
const spacing = {
|
|
70
|
+
0: "0px",
|
|
71
|
+
0.25: "1px",
|
|
72
|
+
0.5: "2px",
|
|
73
|
+
0.75: "3px",
|
|
74
|
+
1: "4px",
|
|
75
|
+
1.5: "6px",
|
|
76
|
+
2: "8px",
|
|
77
|
+
2.5: "10px",
|
|
78
|
+
3: "12px",
|
|
79
|
+
3.5: "14px",
|
|
80
|
+
4: "16px",
|
|
81
|
+
4.5: "18px",
|
|
82
|
+
5: "20px",
|
|
83
|
+
6: "24px",
|
|
84
|
+
7: "28px",
|
|
85
|
+
7.5: "30px",
|
|
86
|
+
8: "32px",
|
|
87
|
+
9: "36px",
|
|
88
|
+
10: "40px",
|
|
89
|
+
11: "44px",
|
|
90
|
+
12: "48px",
|
|
91
|
+
14: "56px",
|
|
92
|
+
15: "60px",
|
|
93
|
+
16: "64px",
|
|
94
|
+
20: "80px",
|
|
95
|
+
24: "96px",
|
|
96
|
+
25: "100px",
|
|
97
|
+
28: "112px",
|
|
98
|
+
30: "120px",
|
|
99
|
+
32: "128px",
|
|
100
|
+
36: "144px",
|
|
101
|
+
40: "160px",
|
|
102
|
+
44: "176px",
|
|
103
|
+
48: "192px",
|
|
104
|
+
50: "200px",
|
|
105
|
+
52: "208px",
|
|
106
|
+
56: "224px",
|
|
107
|
+
60: "240px",
|
|
108
|
+
64: "256px",
|
|
109
|
+
65: "260px", // CODE REVIEW: Should switch to w-64 260px or use Barth's spacing here?
|
|
110
|
+
72: "288px",
|
|
111
|
+
75: "300px",
|
|
112
|
+
80: "320px",
|
|
113
|
+
82: "350px",
|
|
114
|
+
96: "384px",
|
|
115
|
+
100: "400px",
|
|
116
|
+
105: "420px",
|
|
117
|
+
125: "500px",
|
|
118
|
+
150: "600px",
|
|
119
|
+
140: "560px",
|
|
120
|
+
200: "800px",
|
|
121
|
+
};
|
|
59
122
|
module.exports = {
|
|
60
|
-
|
|
61
|
-
darkMode: false,
|
|
62
|
-
|
|
63
|
-
purge: [
|
|
123
|
+
content: [
|
|
64
124
|
"./src/**/*.js",
|
|
65
125
|
"./src/**/*.jsx",
|
|
66
126
|
"./src/**/*.ts",
|
|
@@ -82,50 +142,7 @@ module.exports = {
|
|
|
82
142
|
caution: colors.orange,
|
|
83
143
|
},
|
|
84
144
|
|
|
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
|
-
},
|
|
145
|
+
spacing,
|
|
129
146
|
|
|
130
147
|
// Figma: https://www.figma.com/file/tL2vrxuBIzujkDfYvVjUhs/%F0%9F%9B%A0-Xola-DS-Desktop-Master-%F0%9F%9B%A0?node-id=1885%3A51905
|
|
131
148
|
fontSize: {
|
|
@@ -154,6 +171,7 @@ module.exports = {
|
|
|
154
171
|
extend: {
|
|
155
172
|
fontFamily: {
|
|
156
173
|
sans: ["Inter", ...defaultTheme.fontFamily.sans],
|
|
174
|
+
mono: ["Roboto Mono", ...defaultTheme.fontFamily.mono],
|
|
157
175
|
},
|
|
158
176
|
|
|
159
177
|
// P1 - Big 16px 130%
|
|
@@ -193,8 +211,11 @@ module.exports = {
|
|
|
193
211
|
|
|
194
212
|
letterSpacing: {
|
|
195
213
|
tightest: "-.4px",
|
|
196
|
-
// TODO: Other letter spacings are in EM and need to be
|
|
214
|
+
// TODO: Other letter spacings are in EM and need to be converted to px
|
|
197
215
|
},
|
|
216
|
+
|
|
217
|
+
minWidth: spacing,
|
|
218
|
+
maxWidth: spacing,
|
|
198
219
|
},
|
|
199
220
|
},
|
|
200
221
|
|
|
Binary file
|
|
Binary file
|