@synerise/ds-card-tabs 0.13.68 → 0.13.70
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,22 @@
|
|
|
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.70](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.13.69...@synerise/ds-card-tabs@0.13.70) (2023-10-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-card-tabs
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.13.69](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.13.68...@synerise/ds-card-tabs@0.13.69) (2023-09-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-card-tabs
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.13.68](https://github.com/Synerise/synerise-design/compare/@synerise/ds-card-tabs@0.13.67...@synerise/ds-card-tabs@0.13.68) (2023-09-21)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-card-tabs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { CardTabProps } from './CardTab.types';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
4
|
-
forwardedRef?:
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<CardTabProps, "intl"> & {
|
|
4
|
+
forwardedRef?: React.Ref<any> | undefined;
|
|
5
5
|
} & React.RefAttributes<any>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<CardTabProps>;
|
|
7
7
|
};
|
package/dist/CardTab/CardTab.js
CHANGED
|
@@ -4,8 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
import
|
|
8
|
-
import { useState, useMemo, useCallback } from 'react';
|
|
7
|
+
import React, { useState, useMemo, useCallback } from 'react';
|
|
9
8
|
import Icon from '@synerise/ds-icon';
|
|
10
9
|
import InlineEdit from '@synerise/ds-inline-edit/dist/InlineEdit';
|
|
11
10
|
import { injectIntl } from 'react-intl';
|
|
@@ -143,7 +142,7 @@ var CardTab = function CardTab(props) {
|
|
|
143
142
|
texts: getTexts
|
|
144
143
|
});
|
|
145
144
|
|
|
146
|
-
var cardSuffix =
|
|
145
|
+
var cardSuffix = function () {
|
|
147
146
|
var showActionsDropdownMenu = actionsAsDropdown && (onChangeName || handleDuplicate || handleRemove);
|
|
148
147
|
|
|
149
148
|
if (showActionsDropdownMenu) {
|
|
@@ -176,7 +175,8 @@ var CardTab = function CardTab(props) {
|
|
|
176
175
|
}
|
|
177
176
|
|
|
178
177
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
179
|
-
}
|
|
178
|
+
}();
|
|
179
|
+
|
|
180
180
|
return /*#__PURE__*/React.createElement(S.CardTabContainer, {
|
|
181
181
|
className: "" + (pressed ? 'pressed' : ''),
|
|
182
182
|
edited: edited,
|
|
@@ -7,8 +7,8 @@ export declare enum prefixType {
|
|
|
7
7
|
DOT = 2,
|
|
8
8
|
HANDLE = 3
|
|
9
9
|
}
|
|
10
|
-
export
|
|
11
|
-
export
|
|
10
|
+
export type Color = 'red' | 'green' | 'grey' | 'yellow' | 'blue' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
|
|
11
|
+
export type CardTabTexts = {
|
|
12
12
|
changeNameTooltip?: string | ReactNode;
|
|
13
13
|
removeTooltip?: string | ReactNode;
|
|
14
14
|
duplicateTooltip?: string | ReactNode;
|
|
@@ -41,7 +41,7 @@ export interface CardTabProps {
|
|
|
41
41
|
actionsAsDropdown?: boolean;
|
|
42
42
|
renderSuffix?: (props: CardTabSuffixProps) => ReactNode;
|
|
43
43
|
}
|
|
44
|
-
export
|
|
44
|
+
export type CardTabSuffixProps = Omit<CardTabProps & {
|
|
45
45
|
handleRemove?: (event?: MouseEvent<HTMLElement>) => void;
|
|
46
46
|
handleDuplicate?: (event?: MouseEvent<HTMLElement>) => void;
|
|
47
47
|
handleEditName?: (event?: MouseEvent<HTMLElement>) => void;
|
package/dist/CardTabs.types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { CardTabProps } from './CardTab/CardTab.types';
|
|
3
|
-
export
|
|
2
|
+
export type CardTabsProps = {
|
|
4
3
|
className?: string;
|
|
5
4
|
onChangeOrder?: (newOrder: CardTabsItem[]) => void;
|
|
6
5
|
onAddTab?: () => void;
|
|
@@ -8,4 +7,4 @@ export declare type CardTabsProps = {
|
|
|
8
7
|
maxTabsCount?: number;
|
|
9
8
|
children?: JSX.Element[];
|
|
10
9
|
};
|
|
11
|
-
export
|
|
10
|
+
export type CardTabsItem = Partial<CardTabProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-card-tabs",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.70",
|
|
4
4
|
"description": "CardTabs UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-button": "^0.18.
|
|
36
|
-
"@synerise/ds-cruds": "^0.3.
|
|
37
|
-
"@synerise/ds-dropdown": "^0.17.
|
|
38
|
-
"@synerise/ds-icon": "^0.58.
|
|
39
|
-
"@synerise/ds-inline-edit": "^0.6.
|
|
40
|
-
"@synerise/ds-menu": "^0.17.
|
|
41
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
42
|
-
"@synerise/ds-typography": "^0.
|
|
43
|
-
"@synerise/ds-utils": "^0.24.
|
|
35
|
+
"@synerise/ds-button": "^0.18.3",
|
|
36
|
+
"@synerise/ds-cruds": "^0.3.35",
|
|
37
|
+
"@synerise/ds-dropdown": "^0.17.81",
|
|
38
|
+
"@synerise/ds-icon": "^0.58.3",
|
|
39
|
+
"@synerise/ds-inline-edit": "^0.6.81",
|
|
40
|
+
"@synerise/ds-menu": "^0.17.20",
|
|
41
|
+
"@synerise/ds-tooltip": "^0.14.5",
|
|
42
|
+
"@synerise/ds-typography": "^0.13.1",
|
|
43
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
44
44
|
"react-sortablejs-typescript": "2.0.3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"@testing-library/react": "10.0.1",
|
|
55
55
|
"@testing-library/user-event": "^10.3.1"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
|
|
58
58
|
}
|