@synerise/ds-tags 1.4.4 → 1.4.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 +21 -0
- package/dist/components/LimitedTags/LimitedTags.js +8 -1
- package/dist/components/TagsDropdown/TagsDropdown.js +3 -12
- package/dist/components/TagsDropdown/TagsDropdown.styles.d.ts +1 -0
- package/dist/components/TagsDropdown/TagsDropdown.styles.js +7 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,27 @@
|
|
|
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
|
+
## [1.4.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@1.4.5...@synerise/ds-tags@1.4.6) (2025-10-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-tags
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.4.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@1.4.4...@synerise/ds-tags@1.4.5) (2025-10-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **table:** popup conatiner attr and tags wrapper styles ([5153e44](https://github.com/Synerise/synerise-design/commit/5153e440469e7d81808ef102c70f0a38f2e6596f))
|
|
20
|
+
* **tags:** dropdowns zindex ([2a751e1](https://github.com/Synerise/synerise-design/commit/2a751e15c5ba940b6ad1065a2b8f18682137ccca))
|
|
21
|
+
* **tags:** fixed dropdown bottom padding ([1bf9236](https://github.com/Synerise/synerise-design/commit/1bf92361cb032a7b142866727cdac43cfe6db8ad))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
6
27
|
## [1.4.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@1.4.3...@synerise/ds-tags@1.4.4) (2025-10-03)
|
|
7
28
|
|
|
8
29
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useTheme } from '@synerise/ds-core';
|
|
2
3
|
import * as S from '../../Tags.styles';
|
|
3
4
|
import { TagsDropdown } from '../TagsDropdown/TagsDropdown';
|
|
4
5
|
export var LimitedTags = function LimitedTags(_ref) {
|
|
@@ -10,6 +11,7 @@ export var LimitedTags = function LimitedTags(_ref) {
|
|
|
10
11
|
disabled = _ref.disabled,
|
|
11
12
|
onRemove = _ref.onRemove;
|
|
12
13
|
var limitedSelectedTags = selected.slice(maxVisibleTags);
|
|
14
|
+
var theme = useTheme();
|
|
13
15
|
return /*#__PURE__*/React.createElement(TagsDropdown, {
|
|
14
16
|
tags: limitedSelectedTags,
|
|
15
17
|
trigger: ['hover'],
|
|
@@ -17,10 +19,15 @@ export var LimitedTags = function LimitedTags(_ref) {
|
|
|
17
19
|
removable: removable,
|
|
18
20
|
onRemove: removable ? onRemove : undefined,
|
|
19
21
|
disabled: disabled,
|
|
20
|
-
asPill: asPill
|
|
22
|
+
asPill: asPill,
|
|
23
|
+
overlayStyle: {
|
|
24
|
+
zIndex: parseInt(theme.variables['zindex-dropdown'], 10) + 1
|
|
25
|
+
}
|
|
21
26
|
}, /*#__PURE__*/React.createElement(S.LimitedTag, {
|
|
22
27
|
id: "limited-tags",
|
|
23
28
|
shape: tagShape,
|
|
29
|
+
color: theme.palette['grey-100'],
|
|
30
|
+
textColor: theme.palette['grey-700'],
|
|
24
31
|
name: "+" + limitedSelectedTags.length,
|
|
25
32
|
asPill: true
|
|
26
33
|
}));
|
|
@@ -7,13 +7,6 @@ import InformationCard from '@synerise/ds-information-card';
|
|
|
7
7
|
import Tag from '@synerise/ds-tag';
|
|
8
8
|
import { NOOP } from '@synerise/ds-utils';
|
|
9
9
|
import * as S from './TagsDropdown.styles';
|
|
10
|
-
var DROPDOWN_BOTTOM_ACTION_STYLES = {
|
|
11
|
-
padding: '0 8px',
|
|
12
|
-
cursor: 'auto'
|
|
13
|
-
};
|
|
14
|
-
var DROPDOWN_CONTAINER_STYLES = {
|
|
15
|
-
padding: '8px'
|
|
16
|
-
};
|
|
17
10
|
export var TagsDropdown = function TagsDropdown(_ref) {
|
|
18
11
|
var tags = _ref.tags,
|
|
19
12
|
tagShape = _ref.tagShape,
|
|
@@ -35,8 +28,7 @@ export var TagsDropdown = function TagsDropdown(_ref) {
|
|
|
35
28
|
"data-testid": "ds-tags-dropdown-overlay"
|
|
36
29
|
}, dropdownHeader, /*#__PURE__*/React.createElement(S.DropdownContainer, {
|
|
37
30
|
absolute: true,
|
|
38
|
-
maxHeight: maxHeight
|
|
39
|
-
style: DROPDOWN_CONTAINER_STYLES
|
|
31
|
+
maxHeight: maxHeight
|
|
40
32
|
}, aboveTagsContent, areTags ? /*#__PURE__*/React.createElement(S.DropdownTagsContainer, {
|
|
41
33
|
"data-testid": "ds-tags-available-tags"
|
|
42
34
|
}, tags.map(function (tag) {
|
|
@@ -62,9 +54,8 @@ export var TagsDropdown = function TagsDropdown(_ref) {
|
|
|
62
54
|
placement: 'right'
|
|
63
55
|
}, tag.tooltipProps) : undefined
|
|
64
56
|
}));
|
|
65
|
-
})) : noTagsContent), dropdownFooter && /*#__PURE__*/React.createElement(
|
|
66
|
-
onClickAction: NOOP
|
|
67
|
-
style: DROPDOWN_BOTTOM_ACTION_STYLES
|
|
57
|
+
})) : noTagsContent), dropdownFooter && /*#__PURE__*/React.createElement(S.BottomAction, {
|
|
58
|
+
onClickAction: NOOP
|
|
68
59
|
}, dropdownFooter))
|
|
69
60
|
}));
|
|
70
61
|
};
|
|
@@ -2,3 +2,4 @@ import { type ScrollbarProps } from '@synerise/ds-scrollbar';
|
|
|
2
2
|
export declare const Overlay: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const DropdownContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<(ScrollbarProps | import("@synerise/ds-scrollbar").VirtualScrollbarProps) & import("react").RefAttributes<HTMLElement>>, any, ScrollbarProps, never>;
|
|
4
4
|
export declare const DropdownTagsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const BottomAction: import("styled-components").StyledComponent<({ onClickAction, children, icon, ...rest }: import("@synerise/ds-dropdown/dist/elements/BottomAction/BottomAction.types").BottomActionProps) => React.JSX.Element, any, {}, never>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
+
import Dropdown from '@synerise/ds-dropdown';
|
|
2
3
|
import Scrollbar from '@synerise/ds-scrollbar';
|
|
3
4
|
export var Overlay = styled.div.withConfig({
|
|
4
5
|
displayName: "TagsDropdownstyles__Overlay",
|
|
@@ -9,8 +10,12 @@ export var Overlay = styled.div.withConfig({
|
|
|
9
10
|
export var DropdownContainer = styled(Scrollbar).withConfig({
|
|
10
11
|
displayName: "TagsDropdownstyles__DropdownContainer",
|
|
11
12
|
componentId: "sc-15cr02t-1"
|
|
12
|
-
})(["display:flex;flex-direction:column;"]);
|
|
13
|
+
})(["display:flex;flex-direction:column;padding:8px 0 0 8px;"]);
|
|
13
14
|
export var DropdownTagsContainer = styled.div.withConfig({
|
|
14
15
|
displayName: "TagsDropdownstyles__DropdownTagsContainer",
|
|
15
16
|
componentId: "sc-15cr02t-2"
|
|
16
|
-
})(["display:flex;flex-direction:column;max-height:320px;> *{width:fit-content;max-width:fit-content;display:block;width:inherit;cursor:pointer;flex-shrink:0;}"]);
|
|
17
|
+
})(["display:flex;flex-direction:column;max-height:320px;> *{width:fit-content;max-width:fit-content;display:block;width:inherit;cursor:pointer;flex-shrink:0;}&:after{content:'\\00a0';flex:0 0 8px;overflow:hidden;visibility:hidden;width:10px;}"]);
|
|
18
|
+
export var BottomAction = styled(Dropdown.BottomAction).withConfig({
|
|
19
|
+
displayName: "TagsDropdownstyles__BottomAction",
|
|
20
|
+
componentId: "sc-15cr02t-3"
|
|
21
|
+
})(["margin-top:0;padding:0 8px;cursor:auto;"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-tags",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"description": "Tags UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.4.
|
|
39
|
-
"@synerise/ds-dropdown": "^1.0.
|
|
40
|
-
"@synerise/ds-icon": "^1.7.
|
|
41
|
-
"@synerise/ds-information-card": "^1.
|
|
42
|
-
"@synerise/ds-result": "^1.0.
|
|
43
|
-
"@synerise/ds-scrollbar": "^1.1.
|
|
44
|
-
"@synerise/ds-search-bar": "^1.3.
|
|
45
|
-
"@synerise/ds-tag": "^1.3.
|
|
46
|
-
"@synerise/ds-tooltip": "^1.2.
|
|
38
|
+
"@synerise/ds-button": "^1.4.14",
|
|
39
|
+
"@synerise/ds-dropdown": "^1.0.31",
|
|
40
|
+
"@synerise/ds-icon": "^1.7.3",
|
|
41
|
+
"@synerise/ds-information-card": "^1.2.0",
|
|
42
|
+
"@synerise/ds-result": "^1.0.27",
|
|
43
|
+
"@synerise/ds-scrollbar": "^1.1.9",
|
|
44
|
+
"@synerise/ds-search-bar": "^1.3.16",
|
|
45
|
+
"@synerise/ds-tag": "^1.3.2",
|
|
46
|
+
"@synerise/ds-tooltip": "^1.2.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@synerise/ds-core": "*",
|
|
50
50
|
"react": ">=16.9.0 <= 18.3.1",
|
|
51
51
|
"styled-components": "^5.3.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "4e09fc37fa21ff2e27655e7bb305b136db0ca199"
|
|
54
54
|
}
|