orcs-design-system 3.1.15 → 3.1.16
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.
|
@@ -66,11 +66,7 @@ var Item = styled("span").withConfig({
|
|
|
66
66
|
bg: themeGet("colors.primaryLight")(props)
|
|
67
67
|
},
|
|
68
68
|
secondary: {
|
|
69
|
-
color: themeGet("colors.
|
|
70
|
-
bg: themeGet("colors.secondaryLightest")(props)
|
|
71
|
-
},
|
|
72
|
-
secondaryPending: {
|
|
73
|
-
color: themeGet("colors.secondary")(props),
|
|
69
|
+
color: themeGet("colors.secondaryDarkest")(props),
|
|
74
70
|
bg: themeGet("colors.secondaryEvenLighter")(props)
|
|
75
71
|
}
|
|
76
72
|
}
|
|
@@ -56,7 +56,7 @@ var NotificationWrapper = styled("div").withConfig({
|
|
|
56
56
|
},
|
|
57
57
|
warning: {
|
|
58
58
|
bg: themeGet("colors.warningLight")(props),
|
|
59
|
-
color: themeGet("colors.
|
|
59
|
+
color: themeGet("colors.black80")(props)
|
|
60
60
|
},
|
|
61
61
|
"default": {}
|
|
62
62
|
}
|
|
@@ -71,7 +71,7 @@ var NotificationWrapper = styled("div").withConfig({
|
|
|
71
71
|
},
|
|
72
72
|
warning: {
|
|
73
73
|
bg: themeGet("colors.warningLight"),
|
|
74
|
-
color: themeGet("colors.
|
|
74
|
+
color: themeGet("colors.black80")
|
|
75
75
|
},
|
|
76
76
|
"default": {
|
|
77
77
|
bg: themeGet("colors.primaryDark")
|
|
@@ -114,7 +114,7 @@ var NotificationIcon = styled(Icon).withConfig({
|
|
|
114
114
|
componentId: "sc-1p26rkq-3"
|
|
115
115
|
})(function (props) {
|
|
116
116
|
return css({
|
|
117
|
-
color: props.colour === "warning" ? themeGet("colors.
|
|
117
|
+
color: props.colour === "warning" ? themeGet("colors.black80")(props) : themeGet("colors.white")(props),
|
|
118
118
|
fontSize: themeGet("fontSizes.2")(props),
|
|
119
119
|
mr: "s"
|
|
120
120
|
});
|
|
@@ -190,7 +190,7 @@ export default function Notification(_ref) {
|
|
|
190
190
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
191
191
|
icon: ["fas", "times"],
|
|
192
192
|
size: "lg",
|
|
193
|
-
color: colour === "warning" ? "
|
|
193
|
+
color: colour === "warning" ? "black80" : "white"
|
|
194
194
|
})));
|
|
195
195
|
return theme ? /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
196
196
|
theme: theme
|
|
@@ -41,7 +41,7 @@ var TagValue = styled.button.attrs(function (props) {
|
|
|
41
41
|
}, function (props) {
|
|
42
42
|
return props.disabled ? themeGet("colors.greyLighter")(props) : props.selected && props.highlighted ? themeGet("colors.warningLight")(props) : props.selected ? themeGet("colors.primary")(props) : themeGet("colors.white")(props);
|
|
43
43
|
}, function (props) {
|
|
44
|
-
return props.disabled ? themeGet("colors.greyDarker")(props) : props.selected && props.highlighted ? themeGet("colors.
|
|
44
|
+
return props.disabled ? themeGet("colors.greyDarker")(props) : props.selected && props.highlighted ? themeGet("colors.black80")(props) : props.selected ? themeGet("colors.white")(props) : themeGet("colors.primary")(props);
|
|
45
45
|
}, function (props) {
|
|
46
46
|
return props.disabled ? css([""]) : css(["&:hover,&:focus{outline:0;border:", ";color:", ";background-color:", ";div{color:", ";}div[class*=\"TagType\"]{background-color:", ";}}"], function (props) {
|
|
47
47
|
return props.selected && props.highlighted ? "solid 1px ".concat(themeGet("colors.warningLighter")(props)) : "solid 1px ".concat(themeGet("colors.primaryDark")(props));
|
|
@@ -103,7 +103,7 @@ var TagType = styled.div.withConfig({
|
|
|
103
103
|
}, function (props) {
|
|
104
104
|
return props.disabled ? themeGet("colors.grey")(props) : props.selected && props.highlighted ? themeGet("colors.warningLighter")(props) : props.selected ? "rgba(0,0,0,0.25)" : themeGet("colors.primaryLightest")(props);
|
|
105
105
|
}, function (props) {
|
|
106
|
-
return props.disabled ? themeGet("colors.white")(props) : props.selected && props.highlighted ? themeGet("colors.
|
|
106
|
+
return props.disabled ? themeGet("colors.white")(props) : props.selected && props.highlighted ? themeGet("colors.black70")(props) : props.selected ? themeGet("colors.white")(props) : themeGet("colors.primaryDark")(props);
|
|
107
107
|
});
|
|
108
108
|
var TagAvatar = styled(Avatar).withConfig({
|
|
109
109
|
displayName: "Tag__TagAvatar",
|
|
@@ -117,7 +117,7 @@ var TagAvatar = styled(Avatar).withConfig({
|
|
|
117
117
|
}, function (props) {
|
|
118
118
|
return props.small ? themeGet("tagScale.tagAvatarFontSizeSmall") : themeGet("tagScale.tagAvatarFontSizeDefault");
|
|
119
119
|
}, function (props) {
|
|
120
|
-
return props.disabled ? themeGet("colors.grey")(props) : props.selected && props.highlighted ? themeGet("colors.
|
|
120
|
+
return props.disabled ? themeGet("colors.grey")(props) : props.selected && props.highlighted ? themeGet("colors.black70")(props) : props.selected ? "rgba(0,0,0,0.25)" : themeGet("colors.primaryLightest")(props);
|
|
121
121
|
}, function (props) {
|
|
122
122
|
return props.disabled ? themeGet("colors.white")(props) : props.selected && props.highlighted ? themeGet("colors.white")(props) : props.selected ? themeGet("colors.white")(props) : themeGet("colors.primaryDark")(props);
|
|
123
123
|
});
|
|
@@ -45,7 +45,7 @@ var primary = "#007ac4"; // Potential new colour: #2a5ec1. Base primary brand co
|
|
|
45
45
|
var secondary = "#8714f2"; // Change to #7211ED with new colour palette. Potential new purple colour. Introduce new secondary colour maybe purple when we re-design our colour palette
|
|
46
46
|
//const tertiary = "#FF9E44"; // A tertiary colour for limited use. Not sure if needed.
|
|
47
47
|
var success = "#00883b"; // Base brand success colour (green) - Mainly used to indicate success, status=good, valid, add, or save states
|
|
48
|
-
var successDesaturated = desaturate(0.
|
|
48
|
+
var successDesaturated = desaturate(0.3, success); // This is because the lighter versions of success were too saturated and 'minty' coloured.
|
|
49
49
|
var warning = "#ffb71c"; // Base brand warning colour - Mainly used to indicate warnings, slipping or near due states
|
|
50
50
|
var warningSaturated = saturate(1, warning); // This is because the darker versions of warning were too under saturated and mustard looking.
|
|
51
51
|
var danger = "#d90f27"; // Base brand danger/error colour - Mainly used to indicate error, status=bad, at risk or over due states
|
|
@@ -155,7 +155,7 @@ export var colors = {
|
|
|
155
155
|
warningLightest: lighten(0.4, warning),
|
|
156
156
|
warningDark: darken(0.1, warningSaturated),
|
|
157
157
|
warningDarker: darken(0.2, warningSaturated),
|
|
158
|
-
warningDarkest: darken(0.
|
|
158
|
+
warningDarkest: darken(0.4, warningSaturated),
|
|
159
159
|
warning10: rgba(warning, 0.1),
|
|
160
160
|
warning20: rgba(warning, 0.2),
|
|
161
161
|
warning30: rgba(warning, 0.3),
|
package/es/systemtheme.js
CHANGED
|
@@ -44,7 +44,7 @@ var primary = "#007BC7"; // Potential new colour: #2a5ec1. Base primary brand co
|
|
|
44
44
|
var secondary = "#8714f2"; // Change to #7211ED with new colour palette. Potential new purple colour. Introduce new secondary colour maybe purple when we re-design our colour palette
|
|
45
45
|
//const tertiary = "#FF9E44"; // A tertiary colour for limited use. Not sure if needed.
|
|
46
46
|
var success = "#00883b"; // Base brand success colour (green) - Mainly used to indicate success, status=good, valid, add, or save states
|
|
47
|
-
var successDesaturated = desaturate(0.
|
|
47
|
+
var successDesaturated = desaturate(0.3, success); // This is because the lighter versions of success were too saturated and 'minty' coloured.
|
|
48
48
|
var warning = "#ffb71c"; // Base brand warning colour - Mainly used to indicate warnings, slipping or near due states
|
|
49
49
|
var warningSaturated = saturate(1, warning); // This is because the darker versions of warning were too under saturated and mustard looking.
|
|
50
50
|
var danger = "#d90f27"; // Base brand danger/error colour - Mainly used to indicate error, status=bad, at risk or over due states
|
|
@@ -154,7 +154,7 @@ export var colors = {
|
|
|
154
154
|
warningLightest: lighten(0.4, warningSaturated),
|
|
155
155
|
warningDark: darken(0.1, warningSaturated),
|
|
156
156
|
warningDarker: darken(0.2, warningSaturated),
|
|
157
|
-
warningDarkest: darken(0.
|
|
157
|
+
warningDarkest: darken(0.4, warningSaturated),
|
|
158
158
|
warning10: rgba(warning, 0.1),
|
|
159
159
|
warning20: rgba(warning, 0.2),
|
|
160
160
|
warning30: rgba(warning, 0.3),
|