@synerise/ds-card-tabs 0.9.3 → 0.9.7

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
@@ -3,6 +3,42 @@
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.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.9.6...@synerise/ds-card-tabs@0.9.7) (2021-12-22)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-card-tabs
9
+
10
+
11
+
12
+
13
+
14
+ ## [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)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **card-tabs:** fix tag visiblity on hover when cards are not draggable ([fdd85dc](https://github.com/Synerise/synerise-design/commit/fdd85dc464fdd819cf8bd0f0ee33f59ee84e2852))
20
+ * **card-tabs:** sets draggable prop of CardTab based on onChangeOrder ([88c5c3f](https://github.com/Synerise/synerise-design/commit/88c5c3f08e3ae5289bd33599820aed65f78164c7))
21
+
22
+
23
+
24
+
25
+
26
+ ## [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)
27
+
28
+ **Note:** Version bump only for package @synerise/ds-card-tabs
29
+
30
+
31
+
32
+
33
+
34
+ ## [0.9.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.9.3...@synerise/ds-card-tabs@0.9.4) (2021-11-23)
35
+
36
+ **Note:** Version bump only for package @synerise/ds-card-tabs
37
+
38
+
39
+
40
+
41
+
6
42
  ## [0.9.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.9.2...@synerise/ds-card-tabs@0.9.3) (2021-11-22)
7
43
 
8
44
  **Note:** Version bump only for package @synerise/ds-card-tabs
@@ -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:none;}", "{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) {
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
- var colorTabs = React.cloneElement(child, {
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",
3
+ "version": "0.9.7",
4
4
  "description": "CardTabs UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -32,9 +32,9 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-button": "^0.16.2",
36
- "@synerise/ds-cruds": "^0.3.2",
37
- "@synerise/ds-inline-edit": "^0.5.3",
35
+ "@synerise/ds-button": "^0.16.3",
36
+ "@synerise/ds-cruds": "^0.3.3",
37
+ "@synerise/ds-inline-edit": "^0.5.7",
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": "2468359677783819939fb9f1ef5acc36667ecd1a"
50
+ "gitHead": "a89cd14cdbe25b06949b3b9763e58a080111c160"
51
51
  }