@atlaskit/panel 0.9.4 → 0.9.5
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/CHANGELOG.md
CHANGED
|
@@ -23,8 +23,8 @@ var ButtonWrapper = _styledComponents.default.div(_templateObject3 || (_template
|
|
|
23
23
|
}, transition);
|
|
24
24
|
exports.ButtonWrapper = ButtonWrapper;
|
|
25
25
|
var PanelHeader = (0, _reactFocusWithin.withFocusWithin)(_styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n display: flex;\n left: ", ";\n margin-bottom: ", ";\n margin-top: ", ";\n padding: ", " ", "\n ", " ", ";\n position: relative;\n ", ";\n width: 100%;\n\n ", " {\n opacity: ", ";\n }\n\n &:hover {\n background-color: ", ";\n cursor: pointer;\n\n ", " {\n opacity: 1;\n }\n }\n"])), function (props) {
|
|
26
|
-
return props.isFocused && _theme.colors.N20;
|
|
26
|
+
return props.isFocused && "var(--ds-surface-hovered, ".concat(_theme.colors.N20, ")");
|
|
27
27
|
}, "var(--ds-border-radius-100, 3px)", "var(--ds-space-negative-300, -24px)", "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-025, 2px)", "var(--ds-space-0, 0px)", "var(--ds-space-025, 2px)", "var(--ds-space-300, 24px)", transition, ButtonWrapper, function (props) {
|
|
28
28
|
return props.isFocused && 1;
|
|
29
|
-
}, _theme.colors.N20, ButtonWrapper));
|
|
29
|
+
}, "var(--ds-surface-hovered, ".concat(_theme.colors.N20, ")"), ButtonWrapper));
|
|
30
30
|
exports.PanelHeader = PanelHeader;
|
|
@@ -31,7 +31,7 @@ export const ButtonWrapper = styled.div`
|
|
|
31
31
|
`;
|
|
32
32
|
export const PanelHeader = withFocusWithin(styled.div`
|
|
33
33
|
align-items: center;
|
|
34
|
-
background-color: ${props => props.isFocused && colors.N20};
|
|
34
|
+
background-color: ${props => props.isFocused && `var(--ds-surface-hovered, ${colors.N20})`};
|
|
35
35
|
border-radius: ${"var(--ds-border-radius-100, 3px)"};
|
|
36
36
|
display: flex;
|
|
37
37
|
left: ${"var(--ds-space-negative-300, -24px)"};
|
|
@@ -48,7 +48,7 @@ export const PanelHeader = withFocusWithin(styled.div`
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&:hover {
|
|
51
|
-
background-color: ${colors.N20};
|
|
51
|
+
background-color: ${`var(--ds-surface-hovered, ${colors.N20})`};
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
|
|
54
54
|
${ButtonWrapper} {
|
|
@@ -13,7 +13,7 @@ export var ButtonWrapper = styled.div(_templateObject3 || (_templateObject3 = _t
|
|
|
13
13
|
return isHidden ? 0 : 1;
|
|
14
14
|
}, transition);
|
|
15
15
|
export var PanelHeader = withFocusWithin(styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n display: flex;\n left: ", ";\n margin-bottom: ", ";\n margin-top: ", ";\n padding: ", " ", "\n ", " ", ";\n position: relative;\n ", ";\n width: 100%;\n\n ", " {\n opacity: ", ";\n }\n\n &:hover {\n background-color: ", ";\n cursor: pointer;\n\n ", " {\n opacity: 1;\n }\n }\n"])), function (props) {
|
|
16
|
-
return props.isFocused && colors.N20;
|
|
16
|
+
return props.isFocused && "var(--ds-surface-hovered, ".concat(colors.N20, ")");
|
|
17
17
|
}, "var(--ds-border-radius-100, 3px)", "var(--ds-space-negative-300, -24px)", "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-025, 2px)", "var(--ds-space-0, 0px)", "var(--ds-space-025, 2px)", "var(--ds-space-300, 24px)", transition, ButtonWrapper, function (props) {
|
|
18
18
|
return props.isFocused && 1;
|
|
19
|
-
}, colors.N20, ButtonWrapper));
|
|
19
|
+
}, "var(--ds-surface-hovered, ".concat(colors.N20, ")"), ButtonWrapper));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/panel",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"description": "A React component rendering a collapsible panel",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@atlaskit/button": "^16.10.0",
|
|
34
34
|
"@atlaskit/icon": "^21.12.0",
|
|
35
35
|
"@atlaskit/theme": "^12.6.0",
|
|
36
|
-
"@atlaskit/tokens": "^1.
|
|
36
|
+
"@atlaskit/tokens": "^1.22.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"react-animate-height": "^2.0.5",
|
|
39
39
|
"react-focus-within": "^2.0.1",
|