@synerise/ds-status 0.6.23 → 0.6.25
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 +16 -0
- package/README.md +2 -1
- package/dist/Status.d.ts +1 -1
- package/dist/Status.js +3 -1
- package/dist/Status.styles.d.ts +2 -1
- package/dist/Status.styles.js +6 -3
- package/dist/Status.types.d.ts +2 -1
- package/package.json +6 -5
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.6.25](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@0.6.24...@synerise/ds-status@0.6.25) (2024-09-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-status
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.6.24](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@0.6.23...@synerise/ds-status@0.6.24) (2024-09-18)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-status
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.6.23](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@0.6.22...@synerise/ds-status@0.6.23) (2024-09-17)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-status
|
package/README.md
CHANGED
|
@@ -30,8 +30,9 @@ import Status from '@synerise/ds-status'
|
|
|
30
30
|
|
|
31
31
|
| Property | Description | Type | Default |
|
|
32
32
|
| --------- | ---------------------- | --------------------------------------------------------- | --------- |
|
|
33
|
-
| type | type of status | `primary` / `success` / `warning` / `danger` / `disabled` / `default` | `primary` / `custom` |
|
|
33
|
+
| type | type of status | `primary` / `success` / `warning` / `danger` / `info` / `disabled` / `default` | `primary` / `custom` |
|
|
34
34
|
| label | text inside the status | string | - |
|
|
35
35
|
| className | wrapper class name | string | - |
|
|
36
36
|
| onClick | onClick event | () => void | - |
|
|
37
37
|
| color | type of color (works with type="custom") | string | - |
|
|
38
|
+
| dashed | make dashed border | boolean | - |
|
package/dist/Status.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StatusProps } from './Status.types';
|
|
3
|
-
declare const Status: ({ type, onClick, className, label, color }: StatusProps) => React.JSX.Element;
|
|
3
|
+
declare const Status: ({ type, onClick, className, label, color, dashed }: StatusProps) => React.JSX.Element;
|
|
4
4
|
export default Status;
|
package/dist/Status.js
CHANGED
|
@@ -8,7 +8,8 @@ var Status = function Status(_ref) {
|
|
|
8
8
|
onClick = _ref.onClick,
|
|
9
9
|
className = _ref.className,
|
|
10
10
|
label = _ref.label,
|
|
11
|
-
color = _ref.color
|
|
11
|
+
color = _ref.color,
|
|
12
|
+
dashed = _ref.dashed;
|
|
12
13
|
return /*#__PURE__*/React.createElement(S.StatusTag, {
|
|
13
14
|
onClick: onClick,
|
|
14
15
|
className: "ds-status " + (className || ''),
|
|
@@ -16,6 +17,7 @@ var Status = function Status(_ref) {
|
|
|
16
17
|
type: type,
|
|
17
18
|
name: label,
|
|
18
19
|
color: color,
|
|
20
|
+
dashed: dashed,
|
|
19
21
|
asPill: true
|
|
20
22
|
});
|
|
21
23
|
};
|
package/dist/Status.styles.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { StatusType } from './Status.types';
|
|
3
3
|
export declare const StatusTag: import("styled-components").StyledComponent<{
|
|
4
|
-
({ id, name, className, disabled, removable, image, shape, color, textColor, onRemove, onClick, prefixel, suffixel, texts, asPill, ...htmlAttributes }: import("@synerise/ds-tags/dist/Tag/Tag.types").TagProps): import("react").JSX.Element;
|
|
4
|
+
({ id, name, className, disabled, removable, image, shape, color, textColor, onRemove, onClick, prefixel, suffixel, texts, asPill, dashed, ...htmlAttributes }: import("@synerise/ds-tags/dist/Tag/Tag.types").TagProps): import("react").JSX.Element;
|
|
5
5
|
defaultProps: {
|
|
6
6
|
shape: import("@synerise/ds-tags").TagShape;
|
|
7
7
|
};
|
|
8
8
|
}, any, {
|
|
9
9
|
type: StatusType;
|
|
10
|
+
dashed?: boolean | undefined;
|
|
10
11
|
}, never>;
|
package/dist/Status.styles.js
CHANGED
|
@@ -5,8 +5,9 @@ var typeColor = function typeColor(props) {
|
|
|
5
5
|
return {
|
|
6
6
|
primary: props.theme.palette['blue-600'],
|
|
7
7
|
danger: props.theme.palette['red-600'],
|
|
8
|
-
warning: props.theme.palette['yellow-
|
|
9
|
-
success: props.theme.palette['green-
|
|
8
|
+
warning: props.theme.palette['yellow-700'],
|
|
9
|
+
success: props.theme.palette['green-700'],
|
|
10
|
+
info: props.theme.palette['blue-600'],
|
|
10
11
|
"default": props.theme.palette['grey-500'],
|
|
11
12
|
disabled: props.theme.palette['grey-500'],
|
|
12
13
|
custom: null
|
|
@@ -16,7 +17,9 @@ var typeColor = function typeColor(props) {
|
|
|
16
17
|
export var StatusTag = styled(Tag).withConfig({
|
|
17
18
|
displayName: "Statusstyles__StatusTag",
|
|
18
19
|
componentId: "sc-1yv28da-0"
|
|
19
|
-
})(["&&{transition:opacity 0.25s;", "}"], function (props) {
|
|
20
|
+
})(["&&{transition:opacity 0.25s;border:", ";", "}"], function (props) {
|
|
21
|
+
return props.dashed ? '1px dashed' : '1px solid';
|
|
22
|
+
}, function (props) {
|
|
20
23
|
var color = typeColor(props);
|
|
21
24
|
return color ? "\n color: " + color + ";\n border-color: " + color + ";\n " : '';
|
|
22
25
|
});
|
package/dist/Status.types.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export type StatusType = 'primary' | 'success' | 'warning' | 'danger' | 'disabled' | 'default' | 'custom';
|
|
1
|
+
export type StatusType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'disabled' | 'default' | 'custom';
|
|
2
2
|
export interface StatusProps {
|
|
3
3
|
label: string;
|
|
4
4
|
type: StatusType;
|
|
5
5
|
className?: string;
|
|
6
6
|
onClick?: () => void;
|
|
7
7
|
color?: string;
|
|
8
|
+
dashed?: boolean;
|
|
8
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-status",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.25",
|
|
4
4
|
"description": "Status UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"prepublish": "npm run build",
|
|
26
26
|
"test": "jest",
|
|
27
27
|
"test:watch": "npm run test -- --watchAll",
|
|
28
|
-
"types": "tsc --noEmit"
|
|
28
|
+
"types": "tsc --noEmit",
|
|
29
|
+
"upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
|
|
29
30
|
},
|
|
30
31
|
"sideEffects": [
|
|
31
32
|
"dist/style/*",
|
|
@@ -33,13 +34,13 @@
|
|
|
33
34
|
],
|
|
34
35
|
"types": "dist/index.d.ts",
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@synerise/ds-tags": "^0.10.
|
|
37
|
-
"@synerise/ds-utils": "^0.29.
|
|
37
|
+
"@synerise/ds-tags": "^0.10.10",
|
|
38
|
+
"@synerise/ds-utils": "^0.29.4"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
41
|
"@synerise/ds-core": "*",
|
|
41
42
|
"react": ">=16.9.0 <= 17.0.2",
|
|
42
43
|
"styled-components": "5.0.1"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "fc06bd0f13401a57329fb92985b735de33108dbc"
|
|
45
46
|
}
|