@synerise/ds-card-tabs 0.9.5 → 0.9.6
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 +12 -0
- package/dist/CardTab/CardTab.js +1 -0
- package/dist/CardTab/CardTab.styles.js +3 -1
- package/dist/CardTabs.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.9.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.9.5...@synerise/ds-card-tabs@0.9.6) (2021-12-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **card-tabs:** fix tag visiblity on hover when cards are not draggable ([fdd85dc](https://github.com/Synerise/synerise-design/commit/fdd85dc464fdd819cf8bd0f0ee33f59ee84e2852))
|
|
12
|
+
* **card-tabs:** sets draggable prop of CardTab based on onChangeOrder ([88c5c3f](https://github.com/Synerise/synerise-design/commit/88c5c3f08e3ae5289bd33599820aed65f78164c7))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [0.9.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.9.4...@synerise/ds-card-tabs@0.9.5) (2021-12-01)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @synerise/ds-card-tabs
|
package/dist/CardTab/CardTab.js
CHANGED
|
@@ -97,6 +97,7 @@ var CardTab = function CardTab(_ref) {
|
|
|
97
97
|
invalid: Boolean(invalid),
|
|
98
98
|
invalidName: Boolean(invalidName) && !invalid,
|
|
99
99
|
disabled: !active && Boolean(disabled),
|
|
100
|
+
draggable: draggable,
|
|
100
101
|
color: color,
|
|
101
102
|
onClick: handleSelect,
|
|
102
103
|
onMouseDown: function onMouseDown() {
|
|
@@ -78,7 +78,7 @@ export var CardIconPrefix = styled.div.withConfig({
|
|
|
78
78
|
export var CardTabContainer = styled.div.withConfig({
|
|
79
79
|
displayName: "CardTabstyles__CardTabContainer",
|
|
80
80
|
componentId: "sc-1n86s98-10"
|
|
81
|
-
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:12px;width:180px;height:48px;user-select:none;background-color:", ";box-shadow:", ";border-radius:3px;border-width:1px;border-color:", ";border-style:solid;pointer-events:", ";", "{background-color:", ";color:", ";}", "{background-color:", ";}", "{height:", ";width:", ";border-width:", ";border-color:", ";border-style:solid;}&:hover{cursor:pointer;box-shadow:", ";background-color:", ";", "{display:", ";}", "{display:", ";}", "{color:", ";}", "{background-color:", ";color:", ";display:
|
|
81
|
+
})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:12px;width:180px;height:48px;user-select:none;background-color:", ";box-shadow:", ";border-radius:3px;border-width:1px;border-color:", ";border-style:solid;pointer-events:", ";", "{background-color:", ";color:", ";}", "{background-color:", ";}", "{height:", ";width:", ";border-width:", ";border-color:", ";border-style:solid;}&:hover{cursor:pointer;box-shadow:", ";background-color:", ";", "{display:", ";}", "{display:", ";}", "{color:", ";}", "{background-color:", ";color:", ";display:", ";}", "{svg{color:", ";fill:", ";}}", "{display:flex;svg{color:", ";fill:", " !important;}}", "{display:none;}", "{display:none;svg{color:", ";fill:", ";}}.ds-card-tabs__suffix-icon{svg{color:", ";fill:", ";}}}&.pressed{background-color:", ";}", "{color:", ";opacity:", ";}.ds-card-tabs__suffix-icon{svg{color:", ";fill:", ";}opacity:", ";}", "{opacity:", ";.ds-card-tabs__handle-icon{svg{color:", ";fill:", ";}}svg{color:", ";fill:", ";}", "{opacity:", ";}}"], function (_ref7) {
|
|
82
82
|
var theme = _ref7.theme,
|
|
83
83
|
active = _ref7.active,
|
|
84
84
|
invalid = _ref7.invalid,
|
|
@@ -166,6 +166,8 @@ export var CardTabContainer = styled.div.withConfig({
|
|
|
166
166
|
}, function (_ref24) {
|
|
167
167
|
var theme = _ref24.theme;
|
|
168
168
|
return theme.palette.white;
|
|
169
|
+
}, function (props) {
|
|
170
|
+
return props.draggable ? 'none' : 'flex';
|
|
169
171
|
}, CardTabPrefix, function (_ref25) {
|
|
170
172
|
var theme = _ref25.theme;
|
|
171
173
|
return theme.palette['grey-600'];
|
package/dist/CardTabs.js
CHANGED
|
@@ -34,10 +34,10 @@ var CardTabs = function CardTabs(_ref) {
|
|
|
34
34
|
|
|
35
35
|
var renderChildren = function renderChildren() {
|
|
36
36
|
return React.Children.map(children, function (child, i) {
|
|
37
|
-
|
|
38
|
-
color: COLORS_TABS[i % COLORS_TABS.length]
|
|
37
|
+
return React.cloneElement(child, {
|
|
38
|
+
color: COLORS_TABS[i % COLORS_TABS.length],
|
|
39
|
+
draggable: Boolean(onChangeOrder) || child.props.draggable
|
|
39
40
|
});
|
|
40
|
-
return colorTabs;
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-card-tabs",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "CardTabs UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@synerise/ds-button": "^0.16.2",
|
|
36
36
|
"@synerise/ds-cruds": "^0.3.2",
|
|
37
|
-
"@synerise/ds-inline-edit": "^0.5.
|
|
37
|
+
"@synerise/ds-inline-edit": "^0.5.6",
|
|
38
38
|
"@synerise/ds-typography": "^0.12.2",
|
|
39
39
|
"react-sortablejs-typescript": "2.0.3",
|
|
40
40
|
"sortablejs": "^1.10.1"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/lodash": "4.14.149"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "dd78d8abea639d2d77cf841f8b41a1382cf8d827"
|
|
51
51
|
}
|