@synerise/ds-card-tabs 0.12.2 → 0.13.0

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,17 @@
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.13.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.12.2...@synerise/ds-card-tabs@0.13.0) (2022-04-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **card-tabs:** adds itemData prop for addional item data ([08b0cfa](https://github.com/Synerise/synerise-design/commit/08b0cfa53e2ae25d76947d79327b52a94434940f))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.12.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.12.1...@synerise/ds-card-tabs@0.12.2) (2022-04-12)
7
18
 
8
19
 
package/README.md CHANGED
@@ -101,6 +101,7 @@ import CardTabs from '@synerise/ds-card-tabs'
101
101
  | texts | Translations of CrudButtons tooltips | CardTabTexts | - |
102
102
  | color | Color of CardTab | `red`/ `green`/ `grey`/ `yellow`/ `blue`/ `pink`/ `mars`/ `orange`/ `fern`/ `cyan`/ `purple`/ `violet` | `yellow` |
103
103
  | colorDot | single color dot | React.ReactNode | - |
104
+ | itemData | Additional item data | any | - |
104
105
 
105
106
  #### CardTabTexts
106
107
 
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { CardTabProps } from './CardTab.types';
3
- declare const _default: React.ForwardRefExoticComponent<Pick<CardTabProps, "color" | "id" | "name" | "draggable" | "prefix" | "disabled" | "invalidName" | "active" | "invalid" | "greyBackground" | "tag" | "prefixIcon" | "colorDot" | "onChangeName" | "onDuplicateTab" | "onRemoveTab" | "texts" | "suffixIcon" | "onSelectTab"> & {
3
+ declare const _default: React.ForwardRefExoticComponent<Pick<CardTabProps, "color" | "id" | "name" | "draggable" | "prefix" | "disabled" | "invalidName" | "active" | "invalid" | "greyBackground" | "itemData" | "tag" | "prefixIcon" | "colorDot" | "onChangeName" | "onDuplicateTab" | "onRemoveTab" | "texts" | "suffixIcon" | "onSelectTab"> & {
4
4
  forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
5
5
  } & React.RefAttributes<any>> & {
6
6
  WrappedComponent: React.ComponentType<CardTabProps>;
@@ -34,7 +34,8 @@ var CardTab = function CardTab(_ref) {
34
34
  texts = _ref.texts,
35
35
  _ref$color = _ref.color,
36
36
  color = _ref$color === void 0 ? 'yellow' : _ref$color,
37
- colorDot = _ref.colorDot;
37
+ colorDot = _ref.colorDot,
38
+ itemData = _ref.itemData;
38
39
 
39
40
  var _React$useState = React.useState(false),
40
41
  edited = _React$useState[0],
@@ -130,7 +131,8 @@ var CardTab = function CardTab(_ref) {
130
131
  },
131
132
  greyBackground: !!greyBackground,
132
133
  "data-id": id,
133
- "data-testid": "card-tab-container"
134
+ "data-testid": "card-tab-container",
135
+ itemData: itemData
134
136
  }, /*#__PURE__*/React.createElement(CardTabPrefix, {
135
137
  colorDot: colorDot,
136
138
  draggable: draggable,
@@ -7,6 +7,7 @@ declare type CardTabContainerProps = {
7
7
  disabled: boolean;
8
8
  edited: boolean;
9
9
  draggable?: boolean;
10
+ itemData?: unknown;
10
11
  };
11
12
  export declare const CardTabSuffix: import("styled-components").StyledComponent<"div", any, {}, never>;
12
13
  export declare const CardTabName: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -32,4 +32,5 @@ export interface CardTabProps {
32
32
  onDuplicateTab?: (id: number) => void;
33
33
  onRemoveTab?: (id: number) => void;
34
34
  texts?: CardTabTexts;
35
+ itemData?: unknown;
35
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-card-tabs",
3
- "version": "0.12.2",
3
+ "version": "0.13.0",
4
4
  "description": "CardTabs UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,7 +35,7 @@
35
35
  "@synerise/ds-button": "^0.17.2",
36
36
  "@synerise/ds-cruds": "^0.3.9",
37
37
  "@synerise/ds-icon": "^0.49.0",
38
- "@synerise/ds-inline-edit": "^0.6.11",
38
+ "@synerise/ds-inline-edit": "^0.6.12",
39
39
  "@synerise/ds-typography": "^0.12.2",
40
40
  "react-sortablejs-typescript": "2.0.3",
41
41
  "sortablejs": "^1.10.1"
@@ -48,5 +48,5 @@
48
48
  "devDependencies": {
49
49
  "@types/lodash": "4.14.149"
50
50
  },
51
- "gitHead": "78a3de75d8ec9c917d96c1b54c70d24f50dc8c7a"
51
+ "gitHead": "4a658911645846d1e329609ba9db06a7bc64962b"
52
52
  }