@oneuptime/common 7.0.1989 → 7.0.2004

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.
@@ -2,20 +2,20 @@ import Color from '../../Types/Color';
2
2
  import {
3
3
  Black,
4
4
  White,
5
- slate,
6
- Purple,
7
- Pink,
8
- Red,
9
- Orange,
10
- Yellow,
11
- Green,
12
- Teal,
13
- Cyan,
14
- VeryLightGrey,
15
- Grey,
16
- LightGrey,
17
- Moroon,
18
- Blue,
5
+ Slate500,
6
+ Purple500,
7
+ Pink500,
8
+ Red500,
9
+ Orange500,
10
+ Yellow500,
11
+ Green500,
12
+ Teal500,
13
+ Cyan500,
14
+ VeryLightGray,
15
+ Gray500,
16
+ LightGray,
17
+ Moroon500,
18
+ Blue500,
19
19
  } from '../../Types/BrandColors';
20
20
 
21
21
  describe('Color', () => {
@@ -41,100 +41,100 @@ describe('Color', () => {
41
41
  });
42
42
  describe('slate', () => {
43
43
  it('should be an instance with the hex code of slate', () => {
44
- const color: Color = slate;
45
- expect(slate).toBe(color);
46
- expect(slate.color).toBe('#564ab1');
44
+ const color: Color = Slate500;
45
+ expect(Slate500).toBe(color);
46
+ expect(Slate500.color).toBe('#64748b');
47
47
  });
48
48
  });
49
- describe('Purple', () => {
50
- it('should be an instance with the hex code of Purple', () => {
51
- const color: Color = Purple;
52
- expect(Purple).toBe(color);
53
- expect(Purple.color).toBe('#6f42c1');
49
+ describe('Purple500', () => {
50
+ it('should be an instance with the hex code of Purple500', () => {
51
+ const color: Color = Purple500;
52
+ expect(Purple500).toBe(color);
53
+ expect(Purple500.color).toBe('#a855f7');
54
54
  });
55
55
  });
56
- describe('Pink', () => {
57
- it('should be an instance with the hex code of Pink', () => {
58
- const color: Color = Pink;
59
- expect(Pink).toBe(color);
60
- expect(Pink.color).toBe('#e83e8c');
56
+ describe('Pink500', () => {
57
+ it('should be an instance with the hex code of Pink500', () => {
58
+ const color: Color = Pink500;
59
+ expect(Pink500).toBe(color);
60
+ expect(Pink500.color).toBe('#ec4899');
61
61
  });
62
62
  });
63
- describe('Red', () => {
64
- it('should be an instance with the hex code of Red', () => {
65
- const color: Color = Red;
66
- expect(Red).toBe(color);
67
- expect(Red.color).toBe('#fd625e');
63
+ describe('Red500', () => {
64
+ it('should be an instance with the hex code of Red500', () => {
65
+ const color: Color = Red500;
66
+ expect(Red500).toBe(color);
67
+ expect(Red500.color).toBe('#ef4444');
68
68
  });
69
69
  });
70
- describe('Orange', () => {
71
- it('should be an instance with the hex code of Orange', () => {
72
- const color: Color = Orange;
73
- expect(Orange).toBe(color);
74
- expect(Orange.color).toBe('#f1734f');
70
+ describe('Orange500', () => {
71
+ it('should be an instance with the hex code of Orange500', () => {
72
+ const color: Color = Orange500;
73
+ expect(Orange500).toBe(color);
74
+ expect(Orange500.color).toBe('#f97316');
75
75
  });
76
76
  });
77
- describe('Yellow', () => {
78
- it('should be an instance with the hex code of Yellow', () => {
79
- const color: Color = Yellow;
80
- expect(Yellow).toBe(color);
81
- expect(Yellow.color).toBe('#ffbf53');
77
+ describe('Yellow500', () => {
78
+ it('should be an instance with the hex code of Yellow500', () => {
79
+ const color: Color = Yellow500;
80
+ expect(Yellow500).toBe(color);
81
+ expect(Yellow500.color).toBe('#ffbf53');
82
82
  });
83
83
  });
84
- describe('Green', () => {
85
- it('should be an instance with the hex code of Green', () => {
86
- const color: Color = Green;
87
- expect(Green).toBe(color);
88
- expect(Green.color).toBe('#2ab57d');
84
+ describe('Green500', () => {
85
+ it('should be an instance with the hex code of Green500', () => {
86
+ const color: Color = Green500;
87
+ expect(Green500).toBe(color);
88
+ expect(Green500.color).toBe('#22c55e');
89
89
  });
90
90
  });
91
- describe('Teal', () => {
92
- it('should be an instance with the hex code of Teal', () => {
93
- const color: Color = Teal;
94
- expect(Teal).toBe(color);
95
- expect(Teal.color).toBe('#050505');
91
+ describe('Teal500', () => {
92
+ it('should be an instance with the hex code of Teal500', () => {
93
+ const color: Color = Teal500;
94
+ expect(Teal500).toBe(color);
95
+ expect(Teal500.color).toBe('#14b8a6');
96
96
  });
97
97
  });
98
- describe('Cyan', () => {
99
- it('should be an instance with the hex code of Cyan', () => {
100
- const color: Color = Cyan;
101
- expect(Cyan).toBe(color);
102
- expect(Cyan.color).toBe('#4ba6ef');
98
+ describe('Cyan500', () => {
99
+ it('should be an instance with the hex code of Cyan500', () => {
100
+ const color: Color = Cyan500;
101
+ expect(Cyan500).toBe(color);
102
+ expect(Cyan500.color).toBe('#06b6d4');
103
103
  });
104
104
  });
105
- describe('VeryLightGrey', () => {
106
- it('should be an instance with the hex code of VeryLightGrey', () => {
107
- const color: Color = VeryLightGrey;
108
- expect(VeryLightGrey).toBe(color);
109
- expect(VeryLightGrey.color).toBe('#c2c2c2');
105
+ describe('VeryLightGray', () => {
106
+ it('should be an instance with the hex code of VeryLightGray', () => {
107
+ const color: Color = VeryLightGray;
108
+ expect(VeryLightGray).toBe(color);
109
+ expect(VeryLightGray.color).toBe('#c2c2c2');
110
110
  });
111
111
  });
112
- describe('Grey', () => {
113
- it('should be an instance with the hex code of Grey', () => {
114
- const color: Color = Grey;
115
- expect(Grey).toBe(color);
116
- expect(Grey.color).toBe('#575757');
112
+ describe('Gray500', () => {
113
+ it('should be an instance with the hex code of Gray500', () => {
114
+ const color: Color = Gray500;
115
+ expect(Gray500).toBe(color);
116
+ expect(Gray500.color).toBe('#6b7280');
117
117
  });
118
118
  });
119
- describe('LightGrey', () => {
120
- it('should be an instance with the hex code of LightGrey', () => {
121
- const color: Color = LightGrey;
122
- expect(LightGrey).toBe(color);
123
- expect(LightGrey.color).toBe('#908B8B');
119
+ describe('LightGray', () => {
120
+ it('should be an instance with the hex code of LightGray', () => {
121
+ const color: Color = LightGray;
122
+ expect(LightGray).toBe(color);
123
+ expect(LightGray.color).toBe('#908B8B');
124
124
  });
125
125
  });
126
- describe('Moroon', () => {
127
- it('should be an instance with the hex code of Moroon', () => {
128
- const color: Color = Moroon;
129
- expect(Moroon).toBe(color);
130
- expect(Moroon.color).toBe('#b70400');
126
+ describe('Moroon500', () => {
127
+ it('should be an instance with the hex code of Moroon500', () => {
128
+ const color: Color = Moroon500;
129
+ expect(Moroon500).toBe(color);
130
+ expect(Moroon500.color).toBe('#b70400');
131
131
  });
132
132
  });
133
- describe('Blue', () => {
134
- it('should be an instance with the hex code of Blue', () => {
135
- const color: Color = Blue;
136
- expect(Blue).toBe(color);
137
- expect(Blue.color).toBe('#3686be');
133
+ describe('Blue500', () => {
134
+ it('should be an instance with the hex code of Blue500', () => {
135
+ const color: Color = Blue500;
136
+ expect(Blue500).toBe(color);
137
+ expect(Blue500.color).toBe('#3b82f6');
138
138
  });
139
139
  });
140
140
  });
@@ -33,6 +33,10 @@ export default class ArrayUtil {
33
33
  };
34
34
  }
35
35
 
36
+ public static selectItemByRandom<T>(array: Array<T>): T {
37
+ return array[Math.floor(Math.random() * array.length)]!;
38
+ }
39
+
36
40
  public static distinctByFieldName(
37
41
  array: Array<any>,
38
42
  fieldName: string
@@ -1,47 +1,57 @@
1
1
  import Color from './Color';
2
2
 
3
+ // Standard Colors
3
4
  export const Black: Color = Color.fromString('#000000');
4
5
  export const White: Color = Color.fromString('#ffffff');
5
- export const Slate: Color = Color.fromString('#564ab1');
6
- export const Purple: Color = Color.fromString('#6f42c1');
7
- export const Pink: Color = Color.fromString('#e83e8c');
8
- export const Red: Color = Color.fromString('#fd625e');
9
- export const Orange: Color = Color.fromString('#f1734f');
10
- export const Yellow: Color = Color.fromString('#ffbf53');
11
- export const Green: Color = Color.fromString('#2ab57d');
12
- export const Teal: Color = Color.fromString('#050505');
13
- export const Cyan: Color = Color.fromString('#4ba6ef');
14
- export const VeryLightGrey: Color = Color.fromString('#c2c2c2');
15
- export const Grey: Color = Color.fromString('#575757');
16
- export const LightGrey: Color = Color.fromString('#908B8B');
17
- export const Moroon: Color = Color.fromString('#b70400');
18
- export const Blue: Color = Color.fromString('#3686be');
19
- export const Indigo500: Color = Color.fromString('#6366f1');
20
-
21
- export const ChartColors: Color[] = [
22
- Indigo500,
23
- Green,
24
- Red,
25
- Cyan,
26
- Pink,
27
- Orange,
28
- Purple,
29
- Yellow,
30
- ];
31
6
 
32
- export const EventColorList: Color[] = [
33
- Color.fromString('#d50000'),
34
- Color.fromString('#e67c73'),
35
- Color.fromString('#f4511e'),
36
- Color.fromString('#f6bf26'),
37
- Color.fromString('#33b679'),
38
- Color.fromString('#0b8043'),
7
+ // these are *-500 colors from tailwindcss
8
+ export const Zinc500: Color = Color.fromString('#71717a');
9
+ export const Neutra500l: Color = Color.fromString('#737373');
10
+ export const Stone500: Color = Color.fromString('#78716c');
11
+ export const Slate500: Color = Color.fromString('#64748b');
12
+ export const Purple500: Color = Color.fromString('#a855f7');
13
+ export const Pink500: Color = Color.fromString('#ec4899');
14
+ export const Red500: Color = Color.fromString('#ef4444');
15
+ export const Orange500: Color = Color.fromString('#f97316');
16
+ export const Yellow500: Color = Color.fromString('#ffbf53');
17
+ export const Green500: Color = Color.fromString('#22c55e');
18
+ export const Teal500: Color = Color.fromString('#14b8a6');
19
+ export const Cyan500: Color = Color.fromString('#06b6d4');
20
+ export const Gray500: Color = Color.fromString('#6b7280');
21
+ export const Moroon500: Color = Color.fromString('#b70400');
22
+ export const Blue500: Color = Color.fromString('#3b82f6');
23
+ export const Indigo500: Color = Color.fromString('#6366f1');
24
+ export const Amber500: Color = Color.fromString('#f59e0b');
25
+ export const Lime500: Color = Color.fromString('#84cc16');
26
+ export const Emerald500: Color = Color.fromString('#10b981');
27
+ export const Sky500: Color = Color.fromString('#0ea5e9');
28
+ export const Violet500: Color = Color.fromString('#8b5cf6');
29
+ export const Fuchsia500: Color = Color.fromString('#d946ef');
30
+ export const Rose500: Color = Color.fromString('#f43f5e');
39
31
 
40
- Color.fromString('#039be5'),
41
- Color.fromString('#3f51b5'),
32
+ export const LightGray: Color = Color.fromString('#908B8B');
42
33
 
43
- Color.fromString('#65a30d'),
44
- Color.fromString('#8e24aa'),
34
+ export const VeryLightGray: Color = Color.fromString('#c2c2c2');
45
35
 
46
- Color.fromString('#616161'),
36
+ export const BrightColors: Color[] = [
37
+ Black,
38
+ Indigo500,
39
+ Green500,
40
+ Red500,
41
+ Cyan500,
42
+ Pink500,
43
+ Orange500,
44
+ Purple500,
45
+ Yellow500,
46
+ Teal500,
47
+ Gray500,
48
+ Moroon500,
49
+ Blue500,
50
+ Rose500,
51
+ Fuchsia500,
52
+ Violet500,
53
+ Sky500,
54
+ Emerald500,
55
+ Lime500,
56
+ Amber500,
47
57
  ];
@@ -1,5 +1,5 @@
1
1
  import Color from '../../Types/Color';
2
- import { Black, White, slate, Purple, Pink, Red, Orange, Yellow, Green, Teal, Cyan, VeryLightGrey, Grey, LightGrey, Moroon, Blue, } from '../../Types/BrandColors';
2
+ import { Black, White, Slate500, Purple500, Pink500, Red500, Orange500, Yellow500, Green500, Teal500, Cyan500, VeryLightGray, Gray500, LightGray, Moroon500, Blue500, } from '../../Types/BrandColors';
3
3
  describe('Color', () => {
4
4
  describe('Verify color hex', () => {
5
5
  it('should create a new instance with the given hex code', () => {
@@ -23,100 +23,100 @@ describe('Color', () => {
23
23
  });
24
24
  describe('slate', () => {
25
25
  it('should be an instance with the hex code of slate', () => {
26
- const color = slate;
27
- expect(slate).toBe(color);
28
- expect(slate.color).toBe('#564ab1');
26
+ const color = Slate500;
27
+ expect(Slate500).toBe(color);
28
+ expect(Slate500.color).toBe('#64748b');
29
29
  });
30
30
  });
31
- describe('Purple', () => {
32
- it('should be an instance with the hex code of Purple', () => {
33
- const color = Purple;
34
- expect(Purple).toBe(color);
35
- expect(Purple.color).toBe('#6f42c1');
31
+ describe('Purple500', () => {
32
+ it('should be an instance with the hex code of Purple500', () => {
33
+ const color = Purple500;
34
+ expect(Purple500).toBe(color);
35
+ expect(Purple500.color).toBe('#a855f7');
36
36
  });
37
37
  });
38
- describe('Pink', () => {
39
- it('should be an instance with the hex code of Pink', () => {
40
- const color = Pink;
41
- expect(Pink).toBe(color);
42
- expect(Pink.color).toBe('#e83e8c');
38
+ describe('Pink500', () => {
39
+ it('should be an instance with the hex code of Pink500', () => {
40
+ const color = Pink500;
41
+ expect(Pink500).toBe(color);
42
+ expect(Pink500.color).toBe('#ec4899');
43
43
  });
44
44
  });
45
- describe('Red', () => {
46
- it('should be an instance with the hex code of Red', () => {
47
- const color = Red;
48
- expect(Red).toBe(color);
49
- expect(Red.color).toBe('#fd625e');
45
+ describe('Red500', () => {
46
+ it('should be an instance with the hex code of Red500', () => {
47
+ const color = Red500;
48
+ expect(Red500).toBe(color);
49
+ expect(Red500.color).toBe('#ef4444');
50
50
  });
51
51
  });
52
- describe('Orange', () => {
53
- it('should be an instance with the hex code of Orange', () => {
54
- const color = Orange;
55
- expect(Orange).toBe(color);
56
- expect(Orange.color).toBe('#f1734f');
52
+ describe('Orange500', () => {
53
+ it('should be an instance with the hex code of Orange500', () => {
54
+ const color = Orange500;
55
+ expect(Orange500).toBe(color);
56
+ expect(Orange500.color).toBe('#f97316');
57
57
  });
58
58
  });
59
- describe('Yellow', () => {
60
- it('should be an instance with the hex code of Yellow', () => {
61
- const color = Yellow;
62
- expect(Yellow).toBe(color);
63
- expect(Yellow.color).toBe('#ffbf53');
59
+ describe('Yellow500', () => {
60
+ it('should be an instance with the hex code of Yellow500', () => {
61
+ const color = Yellow500;
62
+ expect(Yellow500).toBe(color);
63
+ expect(Yellow500.color).toBe('#ffbf53');
64
64
  });
65
65
  });
66
- describe('Green', () => {
67
- it('should be an instance with the hex code of Green', () => {
68
- const color = Green;
69
- expect(Green).toBe(color);
70
- expect(Green.color).toBe('#2ab57d');
66
+ describe('Green500', () => {
67
+ it('should be an instance with the hex code of Green500', () => {
68
+ const color = Green500;
69
+ expect(Green500).toBe(color);
70
+ expect(Green500.color).toBe('#22c55e');
71
71
  });
72
72
  });
73
- describe('Teal', () => {
74
- it('should be an instance with the hex code of Teal', () => {
75
- const color = Teal;
76
- expect(Teal).toBe(color);
77
- expect(Teal.color).toBe('#050505');
73
+ describe('Teal500', () => {
74
+ it('should be an instance with the hex code of Teal500', () => {
75
+ const color = Teal500;
76
+ expect(Teal500).toBe(color);
77
+ expect(Teal500.color).toBe('#14b8a6');
78
78
  });
79
79
  });
80
- describe('Cyan', () => {
81
- it('should be an instance with the hex code of Cyan', () => {
82
- const color = Cyan;
83
- expect(Cyan).toBe(color);
84
- expect(Cyan.color).toBe('#4ba6ef');
80
+ describe('Cyan500', () => {
81
+ it('should be an instance with the hex code of Cyan500', () => {
82
+ const color = Cyan500;
83
+ expect(Cyan500).toBe(color);
84
+ expect(Cyan500.color).toBe('#06b6d4');
85
85
  });
86
86
  });
87
- describe('VeryLightGrey', () => {
88
- it('should be an instance with the hex code of VeryLightGrey', () => {
89
- const color = VeryLightGrey;
90
- expect(VeryLightGrey).toBe(color);
91
- expect(VeryLightGrey.color).toBe('#c2c2c2');
87
+ describe('VeryLightGray', () => {
88
+ it('should be an instance with the hex code of VeryLightGray', () => {
89
+ const color = VeryLightGray;
90
+ expect(VeryLightGray).toBe(color);
91
+ expect(VeryLightGray.color).toBe('#c2c2c2');
92
92
  });
93
93
  });
94
- describe('Grey', () => {
95
- it('should be an instance with the hex code of Grey', () => {
96
- const color = Grey;
97
- expect(Grey).toBe(color);
98
- expect(Grey.color).toBe('#575757');
94
+ describe('Gray500', () => {
95
+ it('should be an instance with the hex code of Gray500', () => {
96
+ const color = Gray500;
97
+ expect(Gray500).toBe(color);
98
+ expect(Gray500.color).toBe('#6b7280');
99
99
  });
100
100
  });
101
- describe('LightGrey', () => {
102
- it('should be an instance with the hex code of LightGrey', () => {
103
- const color = LightGrey;
104
- expect(LightGrey).toBe(color);
105
- expect(LightGrey.color).toBe('#908B8B');
101
+ describe('LightGray', () => {
102
+ it('should be an instance with the hex code of LightGray', () => {
103
+ const color = LightGray;
104
+ expect(LightGray).toBe(color);
105
+ expect(LightGray.color).toBe('#908B8B');
106
106
  });
107
107
  });
108
- describe('Moroon', () => {
109
- it('should be an instance with the hex code of Moroon', () => {
110
- const color = Moroon;
111
- expect(Moroon).toBe(color);
112
- expect(Moroon.color).toBe('#b70400');
108
+ describe('Moroon500', () => {
109
+ it('should be an instance with the hex code of Moroon500', () => {
110
+ const color = Moroon500;
111
+ expect(Moroon500).toBe(color);
112
+ expect(Moroon500.color).toBe('#b70400');
113
113
  });
114
114
  });
115
- describe('Blue', () => {
116
- it('should be an instance with the hex code of Blue', () => {
117
- const color = Blue;
118
- expect(Blue).toBe(color);
119
- expect(Blue.color).toBe('#3686be');
115
+ describe('Blue500', () => {
116
+ it('should be an instance with the hex code of Blue500', () => {
117
+ const color = Blue500;
118
+ expect(Blue500).toBe(color);
119
+ expect(Blue500.color).toBe('#3b82f6');
120
120
  });
121
121
  });
122
122
  });
@@ -1 +1 @@
1
- {"version":3,"file":"BrandColors.test.js","sourceRoot":"","sources":["../../../../Tests/Types/BrandColors.test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,EACH,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,IAAI,EACJ,GAAG,EACH,MAAM,EACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,IAAI,EACJ,SAAS,EACT,MAAM,EACN,IAAI,GACP,MAAM,yBAAyB,CAAC;AAEjC,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACnB,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAC9B,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;YAC5D,MAAM,KAAK,GAAU,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;YAC1C,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACnB,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;YACxD,MAAM,KAAK,GAAU,KAAK,CAAC;YAC3B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AU,SAAS,CAAC;YAC/B,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC9B,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QACvB,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;YAC5D,MAAM,KAAK,GAAU,SAAS,CAAC;YAC/B,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC9B,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QACrB,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;YAC1D,MAAM,KAAK,GAAU,OAAO,CAAC;YAC7B,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC5B,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -26,6 +26,9 @@ export default class ArrayUtil {
26
26
  return 0;
27
27
  };
28
28
  }
29
+ static selectItemByRandom(array) {
30
+ return array[Math.floor(Math.random() * array.length)];
31
+ }
29
32
  static distinctByFieldName(array, fieldName) {
30
33
  // Get the distinct values by field name of the array
31
34
  const distinctValues = array
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayUtil.js","sourceRoot":"","sources":["../../../Types/ArrayUtil.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,SAAS;IACnB,MAAM,CAAC,gBAAgB,CAAC,KAAiB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53 @@
1
1
  import Color from './Color';
2
+ // Standard Colors
2
3
  export const Black = Color.fromString('#000000');
3
4
  export const White = Color.fromString('#ffffff');
4
- export const Slate = Color.fromString('#564ab1');
5
- export const Purple = Color.fromString('#6f42c1');
6
- export const Pink = Color.fromString('#e83e8c');
7
- export const Red = Color.fromString('#fd625e');
8
- export const Orange = Color.fromString('#f1734f');
9
- export const Yellow = Color.fromString('#ffbf53');
10
- export const Green = Color.fromString('#2ab57d');
11
- export const Teal = Color.fromString('#050505');
12
- export const Cyan = Color.fromString('#4ba6ef');
13
- export const VeryLightGrey = Color.fromString('#c2c2c2');
14
- export const Grey = Color.fromString('#575757');
15
- export const LightGrey = Color.fromString('#908B8B');
16
- export const Moroon = Color.fromString('#b70400');
17
- export const Blue = Color.fromString('#3686be');
5
+ // these are *-500 colors from tailwindcss
6
+ export const Zinc500 = Color.fromString('#71717a');
7
+ export const Neutra500l = Color.fromString('#737373');
8
+ export const Stone500 = Color.fromString('#78716c');
9
+ export const Slate500 = Color.fromString('#64748b');
10
+ export const Purple500 = Color.fromString('#a855f7');
11
+ export const Pink500 = Color.fromString('#ec4899');
12
+ export const Red500 = Color.fromString('#ef4444');
13
+ export const Orange500 = Color.fromString('#f97316');
14
+ export const Yellow500 = Color.fromString('#ffbf53');
15
+ export const Green500 = Color.fromString('#22c55e');
16
+ export const Teal500 = Color.fromString('#14b8a6');
17
+ export const Cyan500 = Color.fromString('#06b6d4');
18
+ export const Gray500 = Color.fromString('#6b7280');
19
+ export const Moroon500 = Color.fromString('#b70400');
20
+ export const Blue500 = Color.fromString('#3b82f6');
18
21
  export const Indigo500 = Color.fromString('#6366f1');
19
- export const ChartColors = [
22
+ export const Amber500 = Color.fromString('#f59e0b');
23
+ export const Lime500 = Color.fromString('#84cc16');
24
+ export const Emerald500 = Color.fromString('#10b981');
25
+ export const Sky500 = Color.fromString('#0ea5e9');
26
+ export const Violet500 = Color.fromString('#8b5cf6');
27
+ export const Fuchsia500 = Color.fromString('#d946ef');
28
+ export const Rose500 = Color.fromString('#f43f5e');
29
+ export const LightGray = Color.fromString('#908B8B');
30
+ export const VeryLightGray = Color.fromString('#c2c2c2');
31
+ export const BrightColors = [
32
+ Black,
20
33
  Indigo500,
21
- Green,
22
- Red,
23
- Cyan,
24
- Pink,
25
- Orange,
26
- Purple,
27
- Yellow,
28
- ];
29
- export const EventColorList = [
30
- Color.fromString('#d50000'),
31
- Color.fromString('#e67c73'),
32
- Color.fromString('#f4511e'),
33
- Color.fromString('#f6bf26'),
34
- Color.fromString('#33b679'),
35
- Color.fromString('#0b8043'),
36
- Color.fromString('#039be5'),
37
- Color.fromString('#3f51b5'),
38
- Color.fromString('#65a30d'),
39
- Color.fromString('#8e24aa'),
40
- Color.fromString('#616161'),
34
+ Green500,
35
+ Red500,
36
+ Cyan500,
37
+ Pink500,
38
+ Orange500,
39
+ Purple500,
40
+ Yellow500,
41
+ Teal500,
42
+ Gray500,
43
+ Moroon500,
44
+ Blue500,
45
+ Rose500,
46
+ Fuchsia500,
47
+ Violet500,
48
+ Sky500,
49
+ Emerald500,
50
+ Lime500,
51
+ Amber500,
41
52
  ];
42
53
  //# sourceMappingURL=BrandColors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrandColors.js","sourceRoot":"","sources":["../../../Types/BrandColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,MAAM,CAAC,MAAM,KAAK,GAAU,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,KAAK,GAAU,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,KAAK,GAAU,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,MAAM,GAAU,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,IAAI,GAAU,KAAK,CAAC,UAAU,CAAC,SAAS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GAAU,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAE1D,MAAM,CAAC,MAAM,SAAS,GAAU,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,aAAa,GAAU,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAEhE,MAAM,CAAC,MAAM,YAAY,GAAY;IACjC,KAAK;IACL,SAAS;IACT,QAAQ;IACR,MAAM;IACN,OAAO;IACP,OAAO;IACP,SAAS;IACT,SAAS;IACT,SAAS;IACT,OAAO;IACP,OAAO;IACP,SAAS;IACT,OAAO;IACP,OAAO;IACP,UAAU;IACV,SAAS;IACT,MAAM;IACN,UAAU;IACV,OAAO;IACP,QAAQ;CACX,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneuptime/common",
3
- "version": "7.0.1989",
3
+ "version": "7.0.2004",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,7 +27,7 @@
27
27
  "json5": "^2.2.3",
28
28
  "moment": "^2.30.1",
29
29
  "moment-timezone": "^0.5.45",
30
- "posthog-js": "^1.116.2",
30
+ "posthog-js": "^1.116.6",
31
31
  "reflect-metadata": "^0.2.1",
32
32
  "slugify": "^1.6.5",
33
33
  "typeorm": "^0.3.20",