@dative-gpi/foundation-shared-components 1.1.27 → 1.1.28
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/models/colors.ts +1 -0
- package/package.json +4 -4
- package/themes/default.ts +1 -0
- package/utils/statuses.ts +5 -4
package/models/colors.ts
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
|
|
5
5
|
},
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "1.1.
|
|
7
|
+
"version": "1.1.28",
|
|
8
8
|
"description": "",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "1.1.
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "1.1.
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.1.28",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.1.28"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"sass": "1.71.1",
|
|
39
39
|
"sass-loader": "13.3.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "93be974edec9345ff599a653f4410b9ad47fe3d2"
|
|
42
42
|
}
|
package/themes/default.ts
CHANGED
|
@@ -9,6 +9,7 @@ export const DefaultTheme: ThemeDefinition = {
|
|
|
9
9
|
"primary" : "#0059E5", // hsv(217, 100, 90)
|
|
10
10
|
"success" : "#6DE038", // hsv(101, 75, 88)
|
|
11
11
|
"warning" : "#E6A52E", // hsv(39, 80, 90)
|
|
12
|
+
"alert" : "#FF661A", // hsv(20, 90, 100)
|
|
12
13
|
"error" : "#E01212" // hsv(0, 92, 88)
|
|
13
14
|
}
|
|
14
15
|
}
|
package/utils/statuses.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
|
|
2
2
|
import { ConnectivityStatus } from "@dative-gpi/foundation-shared-domain/enums";
|
|
3
|
+
import { ColorEnum } from "../models";
|
|
3
4
|
|
|
4
5
|
const { $tr } = useTranslationsProvider();
|
|
5
6
|
|
|
@@ -25,10 +26,10 @@ export const connectivityIcon = ((status: ConnectivityStatus): string | null =>
|
|
|
25
26
|
|
|
26
27
|
export const connectivityColor = ((status: ConnectivityStatus): string | null => {
|
|
27
28
|
switch (status) {
|
|
28
|
-
case ConnectivityStatus.Connected: return
|
|
29
|
-
case ConnectivityStatus.PartiallyConnected:
|
|
30
|
-
case ConnectivityStatus.AlmostOffline: return
|
|
31
|
-
case ConnectivityStatus.Offline: return
|
|
29
|
+
case ConnectivityStatus.Connected: return ColorEnum.Success;
|
|
30
|
+
case ConnectivityStatus.PartiallyConnected: return ColorEnum.Warning;
|
|
31
|
+
case ConnectivityStatus.AlmostOffline: return ColorEnum.Alert;
|
|
32
|
+
case ConnectivityStatus.Offline: return ColorEnum.Error;
|
|
32
33
|
default: return null;
|
|
33
34
|
}
|
|
34
35
|
});
|