@xola/ui-kit 2.0.0-7 → 2.0.0-70

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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xola/ui-kit",
3
- "version": "2.0.0-7",
3
+ "version": "2.0.0-70",
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",
@@ -38,34 +38,38 @@
38
38
  "get-user-locale": "^1.4.0",
39
39
  "google-libphonenumber": "^3.2.22",
40
40
  "mathjs": "^9.4.4",
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",
46
+ "react-json-view": "^1.21.3",
47
+ "react-select": "^5.1.0",
45
48
  "tippy.js": "^6.3.1"
46
49
  },
47
50
  "devDependencies": {
48
51
  "@babel/core": "^7.14.8",
49
52
  "@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",
53
+ "@storybook/addon-actions": "^6.4.9",
54
+ "@storybook/addon-essentials": "^6.4.9",
55
+ "@storybook/addon-links": "^6.4.9",
53
56
  "@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.3",
58
- "autoprefixer": "^10.3.1",
57
+ "@storybook/addons": "^6.4.9",
58
+ "@storybook/react": "^6.4.9",
59
+ "@storybook/theming": "^6.4.9",
60
+ "@xola/jslint": "^1.0.0",
61
+ "autoprefixer": "^10.4.2",
59
62
  "babel-jest": "^27.2.0",
60
63
  "babel-loader": "^8.2.2",
61
64
  "jest": "^27.2.0",
62
65
  "lodash": "^4.17.21",
63
- "postcss": "^8.3.6",
64
- "prettier": "^2.4.0",
66
+ "postcss": "^8.4.5",
67
+ "prettier": "^2.5.1",
68
+ "prettier-plugin-tailwindcss": "^0.1.7",
65
69
  "react": "^17.0.2",
66
70
  "react-dom": "^17.0.2",
67
71
  "storybook-css-modules-preset": "^1.1.1",
68
- "tailwindcss": "^2.2.15",
72
+ "tailwindcss": "^3.0.18",
69
73
  "vite": "^2.5.7"
70
74
  },
71
75
  "peerDependencies": {
@@ -74,7 +78,7 @@
74
78
  "postcss": "^8.3.6",
75
79
  "react": "^17.0.2",
76
80
  "react-dom": "^17.0.2",
77
- "tailwindcss": "^2.2.7"
81
+ "tailwindcss": "^3.0.18"
78
82
  },
79
83
  "prettier": {
80
84
  "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,50 +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
- 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
- },
137
+ spacing,
129
138
 
130
139
  // Figma: https://www.figma.com/file/tL2vrxuBIzujkDfYvVjUhs/%F0%9F%9B%A0-Xola-DS-Desktop-Master-%F0%9F%9B%A0?node-id=1885%3A51905
131
140
  fontSize: {
@@ -154,6 +163,7 @@ module.exports = {
154
163
  extend: {
155
164
  fontFamily: {
156
165
  sans: ["Inter", ...defaultTheme.fontFamily.sans],
166
+ mono: ["Roboto Mono", ...defaultTheme.fontFamily.mono],
157
167
  },
158
168
 
159
169
  // P1 - Big 16px 130%
@@ -193,8 +203,11 @@ module.exports = {
193
203
 
194
204
  letterSpacing: {
195
205
  tightest: "-.4px",
196
- // 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
197
207
  },
208
+
209
+ minWidth: spacing,
210
+ maxWidth: spacing,
198
211
  },
199
212
  },
200
213
 
Binary file
Binary file