orcs-design-system 2.1.2 → 2.1.4
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.
|
@@ -82,17 +82,17 @@ export var SidebarTab = styled("label").attrs(function (props) {
|
|
|
82
82
|
justifyContent: "center",
|
|
83
83
|
width: "100%",
|
|
84
84
|
transition: themeGet("transition.transitionDefault")(props),
|
|
85
|
-
color:
|
|
85
|
+
color: themeGet("colors.greyLightest")(props),
|
|
86
86
|
bg: props.active ? themeGet("colors.greyDarker")(props) : "transparent",
|
|
87
87
|
cursor: props.active ? "default" : "pointer",
|
|
88
88
|
path: {
|
|
89
|
+
transition: themeGet("transition.transitionDefault")(props),
|
|
89
90
|
fill: themeGet("colors.greyLightest")(props)
|
|
90
91
|
},
|
|
91
92
|
"&:hover": {
|
|
92
|
-
|
|
93
|
-
color: props.active ? themeGet("colors.primary")(props) : themeGet("colors.warning")(props),
|
|
93
|
+
color: props.active ? themeGet("colors.greyLightest")(props) : themeGet("colors.primary")(props),
|
|
94
94
|
path: {
|
|
95
|
-
fill: themeGet("colors.
|
|
95
|
+
fill: props.active ? themeGet("colors.greyLightest")(props) : themeGet("colors.primary")(props)
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"&.Sidebar__Badge": {
|
|
@@ -119,6 +119,9 @@ SidebarTab.propTypes = {
|
|
|
119
119
|
/** SidebarTab children are rendered as node elements */
|
|
120
120
|
children: PropTypes.node,
|
|
121
121
|
|
|
122
|
+
/** Specifies the open/active tab */
|
|
123
|
+
active: PropTypes.bool,
|
|
124
|
+
|
|
122
125
|
/** Sets last sidebar tab position to bottom of sidebar */
|
|
123
126
|
bottomAligned: PropTypes.bool,
|
|
124
127
|
|
|
@@ -8,7 +8,7 @@ import { themeGet } from "@styled-system/theme-get";
|
|
|
8
8
|
var TagWrapper = styled.div.withConfig({
|
|
9
9
|
displayName: "Tag__TagWrapper",
|
|
10
10
|
componentId: "sc-1dh2aa8-0"
|
|
11
|
-
})(["", " ", " display:flex;align-items:
|
|
11
|
+
})(["", " ", " display:flex;align-items:stretch;height:100%;justify-content:center;> button{margin:0;}"], space, layout);
|
|
12
12
|
var TagValue = styled.button.withConfig({
|
|
13
13
|
displayName: "Tag__TagValue",
|
|
14
14
|
componentId: "sc-1dh2aa8-1"
|
|
@@ -48,7 +48,7 @@ var TagValueText = styled.div.withConfig({
|
|
|
48
48
|
var TagEdit = styled(TagValue).withConfig({
|
|
49
49
|
displayName: "Tag__TagEdit",
|
|
50
50
|
componentId: "sc-1dh2aa8-3"
|
|
51
|
-
})(["border-radius:", ";padding:", ";&:focus{z-index:2;box-shadow:-0.5px 0 0 3.5px ", ";}", ""], function (props) {
|
|
51
|
+
})(["height:100%;border-radius:", ";padding:", ";&:focus{z-index:2;box-shadow:-0.5px 0 0 3.5px ", ";}", ""], function (props) {
|
|
52
52
|
return props.showRemove ? "0" : "0 15px 15px 0";
|
|
53
53
|
}, function (props) {
|
|
54
54
|
return props.showRemove ? "2px 7px 5px 7px" : "2px 8px 5px 8px";
|
|
@@ -62,7 +62,7 @@ var TagEdit = styled(TagValue).withConfig({
|
|
|
62
62
|
var TagRemove = styled(TagValue).withConfig({
|
|
63
63
|
displayName: "Tag__TagRemove",
|
|
64
64
|
componentId: "sc-1dh2aa8-4"
|
|
65
|
-
})(["border-radius:0 15px 15px 0;padding:2px 10px 5px 9px;&:focus{z-index:2;box-shadow:-0.5px 0 0 3.5px ", ";}", ""], function (props) {
|
|
65
|
+
})(["height:100%;border-radius:0 15px 15px 0;padding:2px 10px 5px 9px;&:focus{z-index:2;box-shadow:-0.5px 0 0 3.5px ", ";}", ""], function (props) {
|
|
66
66
|
return themeGet("colors.primary30")(props);
|
|
67
67
|
}, function (props) {
|
|
68
68
|
return props.selected ? css(["border-left:solid 1px ", ";&:hover{border-left:solid 1px ", ";}&:focus{box-shadow:", ";}"], themeGet("colors.primaryDark")(props), themeGet("colors.primaryDark")(props), themeGet("shadows.thinOutline")(props) + " " + themeGet("colors.primary30")(props)) : css(["border-left:0;&:hover{border-left:0;}"]);
|
|
@@ -70,7 +70,7 @@ var TagRemove = styled(TagValue).withConfig({
|
|
|
70
70
|
var TagType = styled.div.withConfig({
|
|
71
71
|
displayName: "Tag__TagType",
|
|
72
72
|
componentId: "sc-1dh2aa8-5"
|
|
73
|
-
})(["text-transform:uppercase;margin-left:", ";padding:3px;line-height:1;border-radius:", ";font-size:", ";background-color:", ";color:", ";"], function (props) {
|
|
73
|
+
})(["text-transform:uppercase;margin-left:", ";padding:3px;line-height:1;white-space:normal;text-align:left;flex:1 1 auto;border-radius:", ";font-size:", ";background-color:", ";color:", ";"], function (props) {
|
|
74
74
|
return themeGet("space.s")(props);
|
|
75
75
|
}, function (props) {
|
|
76
76
|
return themeGet("radii.1")(props);
|