@freightos/icons 1.0.2 → 1.0.3
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 +10 -9
- package/dist/cjs/colors.js +43 -42
- package/dist/esm/colors.js +43 -42
- package/dist/types/colors.d.ts +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,9 +86,10 @@ Icons use `currentColor` by default, making them easy to theme. The `color` prop
|
|
|
86
86
|
|
|
87
87
|
```tsx
|
|
88
88
|
// Freightos design system colors (with autocomplete!)
|
|
89
|
-
<IconSearch color="
|
|
90
|
-
<
|
|
91
|
-
<
|
|
89
|
+
<IconSearch color="blue" />
|
|
90
|
+
<IconError color="red" />
|
|
91
|
+
<IconWarning color="yellow" />
|
|
92
|
+
<IconSuccess color="green" />
|
|
92
93
|
|
|
93
94
|
// Inherits parent text color
|
|
94
95
|
<div className="text-blue-500">
|
|
@@ -108,17 +109,17 @@ Icons use `currentColor` by default, making them easy to theme. The `color` prop
|
|
|
108
109
|
|
|
109
110
|
The following Freightos design system colors are available with autocomplete support:
|
|
110
111
|
|
|
111
|
-
**
|
|
112
|
+
**Blues:** `blue-10`, `blue-20`, `blue`, `blue-40`, `blue-50`
|
|
112
113
|
|
|
113
|
-
**
|
|
114
|
+
**Reds:** `red-10`, `red-20`, `red`, `red-40`, `red-50`
|
|
114
115
|
|
|
115
|
-
**
|
|
116
|
+
**Yellows:** `yellow-10`, `yellow-20`, `yellow`, `yellow-30`, `yellow-40`, `yellow-50`
|
|
116
117
|
|
|
117
|
-
**
|
|
118
|
+
**Greens:** `green-10`, `green-20`, `green`, `green-40`, `green-50`
|
|
118
119
|
|
|
119
|
-
**
|
|
120
|
+
**Grays:** `white`, `gray-05`, `gray-10`, `gray-20`, `gray-30`, `gray-40`, `gray-50`, `gray-60`, `gray-70`, `gray-80`, `gray-90`, `gray`
|
|
120
121
|
|
|
121
|
-
**
|
|
122
|
+
**Purples:** `purple-10`, `purple`
|
|
122
123
|
|
|
123
124
|
**Special:** `transparent`
|
|
124
125
|
|
package/dist/cjs/colors.js
CHANGED
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
* to get autocomplete support for design system colors.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
|
-
* <IconSearch color="
|
|
10
|
-
* <
|
|
11
|
-
* <
|
|
9
|
+
* <IconSearch color="blue" />
|
|
10
|
+
* <IconError color="red" />
|
|
11
|
+
* <IconWarning color="yellow" />
|
|
12
|
+
* <IconSuccess color="green" />
|
|
12
13
|
*/
|
|
13
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
15
|
exports.FREIGHTOS_COLORS = void 0;
|
|
@@ -17,45 +18,45 @@ exports.FREIGHTOS_COLORS = void 0;
|
|
|
17
18
|
* This can be used if you need the actual color values in your application.
|
|
18
19
|
*/
|
|
19
20
|
exports.FREIGHTOS_COLORS = {
|
|
20
|
-
//
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
//
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
//
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
//
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
//
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
//
|
|
21
|
+
// Blues
|
|
22
|
+
"blue-10": "#e1f5f9",
|
|
23
|
+
"blue-20": "#ace8f0",
|
|
24
|
+
blue: "#2075bd",
|
|
25
|
+
"blue-40": "#125c9b",
|
|
26
|
+
"blue-50": "#05387d",
|
|
27
|
+
// Reds
|
|
28
|
+
"red-10": "#ffede1",
|
|
29
|
+
"red-20": "#fbbea4",
|
|
30
|
+
red: "#d8271e",
|
|
31
|
+
"red-40": "#9b0f1f",
|
|
32
|
+
"red-50": "#670521",
|
|
33
|
+
// Yellows
|
|
34
|
+
"yellow-10": "#fef6cc",
|
|
35
|
+
"yellow-20": "#fdea9a",
|
|
36
|
+
yellow: "#edaf07",
|
|
37
|
+
"yellow-30": "#dc9500",
|
|
38
|
+
"yellow-40": "#9c6b02",
|
|
39
|
+
"yellow-50": "#714601",
|
|
40
|
+
// Greens
|
|
41
|
+
"green-10": "#eafdea",
|
|
42
|
+
"green-20": "#bdf6c2",
|
|
43
|
+
green: "#47a96e",
|
|
44
|
+
"green-40": "#237957",
|
|
45
|
+
"green-50": "#0d5143",
|
|
46
|
+
// Grays
|
|
47
|
+
white: "#ffffff",
|
|
48
|
+
"gray-05": "#fbfbfb",
|
|
49
|
+
"gray-10": "#f6f6f6",
|
|
50
|
+
"gray-20": "#e5e6e6",
|
|
51
|
+
"gray-30": "#c6c7c7",
|
|
52
|
+
"gray-40": "#afb2b2",
|
|
53
|
+
"gray-50": "#999c9d",
|
|
54
|
+
"gray-60": "#8a8d8f",
|
|
55
|
+
"gray-70": "#6a6f73",
|
|
56
|
+
"gray-80": "#53575f",
|
|
57
|
+
"gray-90": "#3b3f4b",
|
|
58
|
+
gray: "#232537",
|
|
59
|
+
// Purples
|
|
59
60
|
"purple-10": "#e7d8fc",
|
|
60
61
|
purple: "#715397",
|
|
61
62
|
// Special
|
package/dist/esm/colors.js
CHANGED
|
@@ -5,54 +5,55 @@
|
|
|
5
5
|
* to get autocomplete support for design system colors.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
|
-
* <IconSearch color="
|
|
9
|
-
* <
|
|
10
|
-
* <
|
|
8
|
+
* <IconSearch color="blue" />
|
|
9
|
+
* <IconError color="red" />
|
|
10
|
+
* <IconWarning color="yellow" />
|
|
11
|
+
* <IconSuccess color="green" />
|
|
11
12
|
*/
|
|
12
13
|
/**
|
|
13
14
|
* Maps Freightos design system color names to their hex values.
|
|
14
15
|
* This can be used if you need the actual color values in your application.
|
|
15
16
|
*/
|
|
16
17
|
export const FREIGHTOS_COLORS = {
|
|
17
|
-
//
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
//
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
//
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
//
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
//
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
//
|
|
18
|
+
// Blues
|
|
19
|
+
"blue-10": "#e1f5f9",
|
|
20
|
+
"blue-20": "#ace8f0",
|
|
21
|
+
blue: "#2075bd",
|
|
22
|
+
"blue-40": "#125c9b",
|
|
23
|
+
"blue-50": "#05387d",
|
|
24
|
+
// Reds
|
|
25
|
+
"red-10": "#ffede1",
|
|
26
|
+
"red-20": "#fbbea4",
|
|
27
|
+
red: "#d8271e",
|
|
28
|
+
"red-40": "#9b0f1f",
|
|
29
|
+
"red-50": "#670521",
|
|
30
|
+
// Yellows
|
|
31
|
+
"yellow-10": "#fef6cc",
|
|
32
|
+
"yellow-20": "#fdea9a",
|
|
33
|
+
yellow: "#edaf07",
|
|
34
|
+
"yellow-30": "#dc9500",
|
|
35
|
+
"yellow-40": "#9c6b02",
|
|
36
|
+
"yellow-50": "#714601",
|
|
37
|
+
// Greens
|
|
38
|
+
"green-10": "#eafdea",
|
|
39
|
+
"green-20": "#bdf6c2",
|
|
40
|
+
green: "#47a96e",
|
|
41
|
+
"green-40": "#237957",
|
|
42
|
+
"green-50": "#0d5143",
|
|
43
|
+
// Grays
|
|
44
|
+
white: "#ffffff",
|
|
45
|
+
"gray-05": "#fbfbfb",
|
|
46
|
+
"gray-10": "#f6f6f6",
|
|
47
|
+
"gray-20": "#e5e6e6",
|
|
48
|
+
"gray-30": "#c6c7c7",
|
|
49
|
+
"gray-40": "#afb2b2",
|
|
50
|
+
"gray-50": "#999c9d",
|
|
51
|
+
"gray-60": "#8a8d8f",
|
|
52
|
+
"gray-70": "#6a6f73",
|
|
53
|
+
"gray-80": "#53575f",
|
|
54
|
+
"gray-90": "#3b3f4b",
|
|
55
|
+
gray: "#232537",
|
|
56
|
+
// Purples
|
|
56
57
|
"purple-10": "#e7d8fc",
|
|
57
58
|
purple: "#715397",
|
|
58
59
|
// Special
|
package/dist/types/colors.d.ts
CHANGED
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
* to get autocomplete support for design system colors.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
|
-
* <IconSearch color="
|
|
9
|
-
* <
|
|
10
|
-
* <
|
|
8
|
+
* <IconSearch color="blue" />
|
|
9
|
+
* <IconError color="red" />
|
|
10
|
+
* <IconWarning color="yellow" />
|
|
11
|
+
* <IconSuccess color="green" />
|
|
11
12
|
*/
|
|
12
|
-
export type FreightosColor = "
|
|
13
|
+
export type FreightosColor = "blue-10" | "blue-20" | "blue" | "blue-40" | "blue-50" | "red-10" | "red-20" | "red" | "red-40" | "red-50" | "yellow-10" | "yellow-20" | "yellow" | "yellow-30" | "yellow-40" | "yellow-50" | "green-10" | "green-20" | "green" | "green-40" | "green-50" | "white" | "gray-05" | "gray-10" | "gray-20" | "gray-30" | "gray-40" | "gray-50" | "gray-60" | "gray-70" | "gray-80" | "gray-90" | "gray" | "purple-10" | "purple" | "transparent";
|
|
13
14
|
/**
|
|
14
15
|
* Maps Freightos design system color names to their hex values.
|
|
15
16
|
* This can be used if you need the actual color values in your application.
|
package/package.json
CHANGED