@xola/ui-kit 2.0.0-6 → 2.0.0-62

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/index.css CHANGED
@@ -1,4 +1,5 @@
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;
@@ -9,6 +10,10 @@ html {
9
10
  font-size: 14px;
10
11
  }
11
12
 
13
+ a {
14
+ @apply text-primary hover:underline;
15
+ }
16
+
12
17
  button:focus {
13
18
  @apply outline-none;
14
19
  }
@@ -61,7 +66,11 @@ h6 {
61
66
  @apply leading-p3 tracking-tightest;
62
67
  }
63
68
 
64
- .badge .icon {
69
+ .ui-badge .icon {
65
70
  position: relative;
66
71
  top: -1px;
67
72
  }
73
+
74
+ .font-bold {
75
+ @apply antialiased;
76
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xola/ui-kit",
3
- "version": "2.0.0-6",
3
+ "version": "2.0.0-62",
4
4
  "description": "Xola UI Kit",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@headlessui/react": "^1.4.0",
32
- "@tailwindcss/forms": "^0.3.3",
33
- "@tailwindcss/line-clamp": "^0.2.1",
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",
@@ -42,30 +42,33 @@
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",
46
+ "react-select": "^5.1.0",
45
47
  "tippy.js": "^6.3.1"
46
48
  },
47
49
  "devDependencies": {
48
50
  "@babel/core": "^7.14.8",
49
51
  "@babel/preset-env": "^7.15.6",
50
- "@storybook/addon-actions": "^6.3.6",
51
- "@storybook/addon-essentials": "^6.3.6",
52
- "@storybook/addon-links": "^6.3.6",
52
+ "@storybook/addon-actions": "^6.4.9",
53
+ "@storybook/addon-essentials": "^6.4.9",
54
+ "@storybook/addon-links": "^6.4.9",
53
55
  "@storybook/addon-postcss": "^2.0.0",
54
- "@storybook/addons": "^6.3.6",
55
- "@storybook/react": "^6.3.6",
56
- "@storybook/theming": "^6.3.6",
57
- "@xola/jslint": "0.0.2",
58
- "autoprefixer": "^10.3.1",
56
+ "@storybook/addons": "^6.4.9",
57
+ "@storybook/react": "^6.4.9",
58
+ "@storybook/theming": "^6.4.9",
59
+ "@xola/jslint": "^1.0.0",
60
+ "autoprefixer": "^10.4.2",
59
61
  "babel-jest": "^27.2.0",
60
62
  "babel-loader": "^8.2.2",
61
63
  "jest": "^27.2.0",
62
64
  "lodash": "^4.17.21",
63
- "postcss": "^8.3.6",
64
- "prettier": "^2.4.0",
65
+ "postcss": "^8.4.5",
66
+ "prettier": "^2.5.1",
67
+ "prettier-plugin-tailwindcss": "^0.1.7",
65
68
  "react": "^17.0.2",
66
69
  "react-dom": "^17.0.2",
67
70
  "storybook-css-modules-preset": "^1.1.1",
68
- "tailwindcss": "^2.2.15",
71
+ "tailwindcss": "^3.0.18",
69
72
  "vite": "^2.5.7"
70
73
  },
71
74
  "peerDependencies": {
@@ -74,7 +77,7 @@
74
77
  "postcss": "^8.3.6",
75
78
  "react": "^17.0.2",
76
79
  "react-dom": "^17.0.2",
77
- "tailwindcss": "^2.2.7"
80
+ "tailwindcss": "^3.0.18"
78
81
  },
79
82
  "prettier": {
80
83
  "semi": true,
@@ -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: "#1B8E4E", // Made up by Rushi till Barth gives us a color
38
+ darker: "#168848",
32
39
  },
33
40
 
34
41
  red: {
35
- lighter: "#FFEAEA",
42
+ lighter: "#FFF0F0",
43
+ lightish: "#FFE1E1",
36
44
  light: "#FFA1A1",
37
45
  DEFAULT: "#FF5A5A",
38
46
  dark: "#E93737",
39
- darker: "#E51919", // Made up by Rushi till Barth gives us a color
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: "#F0A200", // Made up by Rushi till Barth gives us a color
56
+ darker: "#987122",
48
57
  },
49
58
 
50
59
  orange: {
@@ -56,11 +65,54 @@ 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
+ 72: "288px",
109
+ 75: "300px",
110
+ 80: "320px",
111
+ 82: "350px",
112
+ 96: "384px",
113
+ };
59
114
  module.exports = {
60
- mode: "jit",
61
- darkMode: false,
62
-
63
- purge: [
115
+ content: [
64
116
  "./src/**/*.js",
65
117
  "./src/**/*.jsx",
66
118
  "./src/**/*.ts",
@@ -82,49 +134,7 @@ module.exports = {
82
134
  caution: colors.orange,
83
135
  },
84
136
 
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
- 28: "112px",
113
- 32: "128px",
114
- 36: "144px",
115
- 40: "160px",
116
- 44: "176px",
117
- 48: "192px",
118
- 50: "200px",
119
- 52: "208px",
120
- 56: "224px",
121
- 60: "240px",
122
- 64: "256px",
123
- 72: "288px",
124
- 80: "320px",
125
- 82: "350px",
126
- 96: "384px",
127
- },
137
+ spacing,
128
138
 
129
139
  // Figma: https://www.figma.com/file/tL2vrxuBIzujkDfYvVjUhs/%F0%9F%9B%A0-Xola-DS-Desktop-Master-%F0%9F%9B%A0?node-id=1885%3A51905
130
140
  fontSize: {
@@ -153,6 +163,7 @@ module.exports = {
153
163
  extend: {
154
164
  fontFamily: {
155
165
  sans: ["Inter", ...defaultTheme.fontFamily.sans],
166
+ mono: ["Roboto Mono", ...defaultTheme.fontFamily.mono],
156
167
  },
157
168
 
158
169
  // P1 - Big 16px 130%
@@ -192,8 +203,11 @@ module.exports = {
192
203
 
193
204
  letterSpacing: {
194
205
  tightest: "-.4px",
195
- // TODO: Other letter spacings are in EM and need to be coverted to px
206
+ // TODO: Other letter spacings are in EM and need to be converted to px
196
207
  },
208
+
209
+ minWidth: spacing,
210
+ maxWidth: spacing,
197
211
  },
198
212
  },
199
213
 
Binary file
Binary file