@synerise/ds-status 0.5.75 → 0.5.77

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,25 @@
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.77](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@0.5.76...@synerise/ds-status@0.5.77) (2023-08-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **status:** fixed types and styles for status pills ([cc23a04](https://github.com/Synerise/synerise-design/commit/cc23a04620e934915c2a300bab1022657b2c5357))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.5.76](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@0.5.75...@synerise/ds-status@0.5.76) (2023-08-20)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-status
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.5.75](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@0.5.74...@synerise/ds-status@0.5.75) (2023-07-26)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-status
package/README.md CHANGED
@@ -30,7 +30,7 @@ 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` | `primary` |
33
+ | type | type of status | `primary` / `success` / `warning` / `danger` / `disabled` / `default` | `primary` |
34
34
  | label | text inside the status | string | - |
35
35
  | className | wrapper class name | string | - |
36
36
  | onClick | onClick event | () => void | - |
package/dist/Status.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ /// <reference types="react" />
2
2
  import { StatusProps } from './Status.types';
3
- declare const Status: React.FC<StatusProps>;
3
+ declare const Status: ({ type, onClick, className, label, color }: StatusProps) => JSX.Element;
4
4
  export default Status;
package/dist/Status.js CHANGED
@@ -1,9 +1,10 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { TagShape } from '@synerise/ds-tags';
3
3
  import * as S from './Status.styles';
4
4
 
5
5
  var Status = function Status(_ref) {
6
- var type = _ref.type,
6
+ var _ref$type = _ref.type,
7
+ type = _ref$type === void 0 ? 'primary' : _ref$type,
7
8
  onClick = _ref.onClick,
8
9
  className = _ref.className,
9
10
  label = _ref.label,
@@ -19,7 +20,4 @@ var Status = function Status(_ref) {
19
20
  });
20
21
  };
21
22
 
22
- Status.defaultProps = {
23
- type: 'primary'
24
- };
25
23
  export default Status;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import type { StatusType } from './Status.types';
2
3
  export declare const StatusTag: import("styled-components").StyledComponent<import("react").FC<import("@synerise/ds-tags").TagProps>, any, {
3
- type: string;
4
+ type: StatusType;
4
5
  }, never>;
@@ -7,10 +7,10 @@ var typeColor = function typeColor(props) {
7
7
  danger: props.theme.palette['red-600'],
8
8
  warning: props.theme.palette['yellow-600'],
9
9
  success: props.theme.palette['green-600'],
10
- "default": props.theme.palette['grey-500']
10
+ "default": props.theme.palette['grey-500'],
11
+ disabled: props.theme.palette['grey-500']
11
12
  }[props.type];
12
- }; // eslint-disable-next-line import/prefer-default-export
13
-
13
+ };
14
14
 
15
15
  export var StatusTag = styled(Tag).withConfig({
16
16
  displayName: "Statusstyles__StatusTag",
@@ -1,6 +1,7 @@
1
+ export declare type StatusType = 'primary' | 'success' | 'warning' | 'danger' | 'disabled' | 'default';
1
2
  export interface StatusProps {
2
3
  label: string;
3
- type: 'primary' | 'success' | 'warning' | 'danger' | 'disabled';
4
+ type: StatusType;
4
5
  className?: string;
5
6
  onClick?: () => void;
6
7
  color?: string;
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { default } from './Status';
2
+ export type { StatusType, StatusProps } from './Status.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-status",
3
- "version": "0.5.75",
3
+ "version": "0.5.77",
4
4
  "description": "Status UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-tags": "^0.8.5"
35
+ "@synerise/ds-tags": "^0.8.7"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@synerise/ds-core": "*",
@@ -41,5 +41,5 @@
41
41
  "devDependencies": {
42
42
  "@synerise/ds-utils": "^0.19.0"
43
43
  },
44
- "gitHead": "283730ca9bb63422391388fbc020906edf942b57"
44
+ "gitHead": "1f03e5affd1f22c9d3c7b4f1401887263d32d3d5"
45
45
  }