@synerise/ds-badge 1.0.16 → 1.0.18
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
|
+
## [1.0.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-badge@1.0.17...@synerise/ds-badge@1.0.18) (2025-08-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-badge
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.0.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-badge@1.0.16...@synerise/ds-badge@1.0.17) (2025-07-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-badge
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.0.16](https://github.com/Synerise/synerise-design/compare/@synerise/ds-badge@1.0.15...@synerise/ds-badge@1.0.16) (2025-07-17)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-badge
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const IconBadgeWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
2
|
export declare const IconBadgeIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const Icon: import("styled-components").StyledComponent<({ name, component, className, ...rest }: import("@synerise/ds-icon").IconProps) =>
|
|
5
|
-
status?: string
|
|
3
|
+
export declare const Icon: import("styled-components").StyledComponent<({ name, component, className, ...rest }: import("@synerise/ds-icon").IconProps) => React.JSX.Element, any, {
|
|
4
|
+
status?: string;
|
|
6
5
|
}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CustomIconBadgeProps, StatusIconBadgeProps } from './IconBadge.types';
|
|
3
3
|
export declare const hasCustomIcon: (props: CustomIconBadgeProps | StatusIconBadgeProps) => props is CustomIconBadgeProps;
|
|
4
|
-
export declare const renderStatusIcon: (status: StatusIconBadgeProps[
|
|
4
|
+
export declare const renderStatusIcon: (status: StatusIconBadgeProps["status"]) => React.JSX.Element | null;
|
|
@@ -6,6 +6,9 @@ export var hasCustomIcon = function hasCustomIcon(props) {
|
|
|
6
6
|
return 'icon' in props;
|
|
7
7
|
};
|
|
8
8
|
export var renderStatusIcon = function renderStatusIcon(status) {
|
|
9
|
+
if (!status || status === 'inactive') {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
9
12
|
return STATUS_ICONS[status] ? /*#__PURE__*/React.createElement(S.Icon, _extends({
|
|
10
13
|
status: status
|
|
11
14
|
}, STATUS_ICONS[status])) : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-badge",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "Badge UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-icon": "^1.
|
|
38
|
-
"@synerise/ds-typography": "^1.0.
|
|
39
|
-
"@synerise/ds-utils": "^1.
|
|
37
|
+
"@synerise/ds-icon": "^1.7.0",
|
|
38
|
+
"@synerise/ds-typography": "^1.0.18",
|
|
39
|
+
"@synerise/ds-utils": "^1.4.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@synerise/ds-core": "*",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"react": ">=16.9.0 <= 18.3.1",
|
|
45
45
|
"styled-components": "^5.3.3"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "408d73cc145b6c8c61f3e70dce05badf3ad1ffde"
|
|
48
48
|
}
|