@synerise/ds-tags 0.3.65 → 0.5.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 +48 -0
- package/dist/Tag/Tag.js +4 -2
- package/dist/Tag/Tag.styles.d.ts +1 -0
- package/dist/Tag/Tag.styles.js +3 -1
- package/dist/Tag/Tag.types.d.ts +1 -0
- package/dist/Tags.d.ts +1 -1
- package/dist/Tags.js +3 -1
- package/dist/Tags.types.d.ts +1 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,54 @@
|
|
|
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.5.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@0.3.67...@synerise/ds-tags@0.5.0) (2021-10-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **tags:** change use asPill prop in styles ([3daa6ca](https://github.com/Synerise/synerise-design/commit/3daa6ca67ea620ea5417933a571c7b74095cdaeb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **tags:** add extra prop asPill ([bc21290](https://github.com/Synerise/synerise-design/commit/bc21290803c06a0b9dbb274d1a5a9598db07fe13))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [0.4.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@0.3.67...@synerise/ds-tags@0.4.0) (2021-10-19)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **tags:** change use asPill prop in styles ([3daa6ca](https://github.com/Synerise/synerise-design/commit/3daa6ca67ea620ea5417933a571c7b74095cdaeb))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* **tags:** add extra prop asPill ([bc21290](https://github.com/Synerise/synerise-design/commit/bc21290803c06a0b9dbb274d1a5a9598db07fe13))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [0.3.67](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@0.3.66...@synerise/ds-tags@0.3.67) (2021-10-19)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @synerise/ds-tags
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [0.3.66](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@0.3.65...@synerise/ds-tags@0.3.66) (2021-09-21)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @synerise/ds-tags
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
6
54
|
## [0.3.65](https://github.com/Synerise/synerise-design/compare/@synerise/ds-tags@0.3.64...@synerise/ds-tags@0.3.65) (2021-09-15)
|
|
7
55
|
|
|
8
56
|
**Note:** Version bump only for package @synerise/ds-tags
|
package/dist/Tag/Tag.js
CHANGED
|
@@ -33,7 +33,8 @@ var Tag = function Tag(_ref) {
|
|
|
33
33
|
onClick = _ref.onClick,
|
|
34
34
|
prefixel = _ref.prefixel,
|
|
35
35
|
suffixel = _ref.suffixel,
|
|
36
|
-
texts = _ref.texts
|
|
36
|
+
texts = _ref.texts,
|
|
37
|
+
asPill = _ref.asPill;
|
|
37
38
|
var isDefaultType = shape && [TagShape.DEFAULT_ROUND, TagShape.DEFAULT_SQUARE].includes(shape);
|
|
38
39
|
var isDefaultRound = shape === TagShape.DEFAULT_ROUND;
|
|
39
40
|
var isDefaultSquare = shape === TagShape.DEFAULT_SQUARE;
|
|
@@ -84,7 +85,8 @@ var Tag = function Tag(_ref) {
|
|
|
84
85
|
preffixel: !!prefixel,
|
|
85
86
|
suffixel: !!suffixel,
|
|
86
87
|
hasImage: !!image,
|
|
87
|
-
iconHover: iconHover
|
|
88
|
+
iconHover: iconHover,
|
|
89
|
+
asPill: asPill
|
|
88
90
|
}, React.createElement(S.Content, {
|
|
89
91
|
iconHover: iconHover
|
|
90
92
|
}, image && isDefaultType && React.createElement("img", {
|
package/dist/Tag/Tag.styles.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare type TagProps = {
|
|
|
15
15
|
preffixel?: boolean;
|
|
16
16
|
hasImage?: boolean;
|
|
17
17
|
iconHover?: boolean;
|
|
18
|
+
asPill?: boolean;
|
|
18
19
|
} & ThemeProps;
|
|
19
20
|
export declare const Content: import("styled-components").StyledComponent<"div", any, {
|
|
20
21
|
iconHover?: boolean | undefined;
|
package/dist/Tag/Tag.styles.js
CHANGED
|
@@ -128,7 +128,9 @@ export var DefaultPrefixWrapper = styled.div.withConfig({
|
|
|
128
128
|
export var Tag = styled.div.withConfig({
|
|
129
129
|
displayName: "Tagstyles__Tag",
|
|
130
130
|
componentId: "h010xe-7"
|
|
131
|
-
})(["position:relative;margin:4px;display:inline-flex;font-weight:500;overflow:hidden;cursor:
|
|
131
|
+
})(["position:relative;margin:4px;display:inline-flex;font-weight:500;overflow:hidden;cursor:default;", " ", ";", " ", " ", " .icon1{margin:0 -2px 0 1px;}", ";&:last-of-type{margin-right:0;}", ",", "{margin:", ";}", ",", "{margin:", ";}"], function (props) {
|
|
132
|
+
return !props.asPill && css(["cursor:pointer;&:hover:before{filter:", ";}"], getFilterColor);
|
|
133
|
+
}, function (props) {
|
|
132
134
|
return insertShapeStyles(props);
|
|
133
135
|
}, function (props) {
|
|
134
136
|
return !!props.iconHover && "\n &&&:before{\n background-color:".concat(props.theme.palette['red-050'], ";\n }\n");
|
package/dist/Tag/Tag.types.d.ts
CHANGED
package/dist/Tags.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Props } from './Tags.types';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<Props>, "data" | "style" | "className" | "children" | "disabled" | "selected" | "maxHeight" | "removable" | "texts" | "overlayStyle" | "tagShape" | "onSelectedChange" | "addable" | "creatable" | "manageLink" | "onCreate" | "overlayPlacement" | "onManageTagClick"> & {
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<Props>, "data" | "style" | "className" | "children" | "disabled" | "selected" | "maxHeight" | "removable" | "texts" | "asPill" | "overlayStyle" | "tagShape" | "onSelectedChange" | "addable" | "creatable" | "manageLink" | "onCreate" | "overlayPlacement" | "onManageTagClick"> & {
|
|
4
4
|
theme?: any;
|
|
5
5
|
}>;
|
|
6
6
|
export default _default;
|
package/dist/Tags.js
CHANGED
|
@@ -47,6 +47,7 @@ var Tags = function Tags(_ref) {
|
|
|
47
47
|
maxHeight = _ref.maxHeight,
|
|
48
48
|
overlayStyle = _ref.overlayStyle,
|
|
49
49
|
overlayPlacement = _ref.overlayPlacement,
|
|
50
|
+
asPill = _ref.asPill,
|
|
50
51
|
onManageTagClick = _ref.onManageTagClick;
|
|
51
52
|
|
|
52
53
|
var _React$useState = React.useState(false),
|
|
@@ -188,7 +189,8 @@ var Tags = function Tags(_ref) {
|
|
|
188
189
|
removable: removable,
|
|
189
190
|
onRemove: removable ? onRemove : undefined,
|
|
190
191
|
disabled: disabled,
|
|
191
|
-
texts: texts
|
|
192
|
+
texts: texts,
|
|
193
|
+
asPill: asPill
|
|
192
194
|
}, tag));
|
|
193
195
|
}), addable && React.createElement(Dropdown, {
|
|
194
196
|
trigger: ['click'],
|
package/dist/Tags.types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-tags",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Tags UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-button": "^0.
|
|
36
|
-
"@synerise/ds-dropdown": "^0.16.
|
|
37
|
-
"@synerise/ds-icon": "^0.
|
|
38
|
-
"@synerise/ds-search-bar": "^0.
|
|
35
|
+
"@synerise/ds-button": "^0.15.0",
|
|
36
|
+
"@synerise/ds-dropdown": "^0.16.30",
|
|
37
|
+
"@synerise/ds-icon": "^0.45.2",
|
|
38
|
+
"@synerise/ds-search-bar": "^0.4.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@synerise/ds-core": "*",
|
|
42
42
|
"react": ">=16.9.0 < 17.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@synerise/ds-utils": "^0.
|
|
45
|
+
"@synerise/ds-utils": "^0.19.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "daaf50ad62081d7ad77eb4ac65100173df77c731"
|
|
48
48
|
}
|