@synerise/ds-status 1.1.3 → 1.2.1

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
+ ## [1.2.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@1.2.0...@synerise/ds-status@1.2.1) (2025-04-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-status
9
+
10
+
11
+
12
+
13
+
14
+ # [1.2.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@1.1.3...@synerise/ds-status@1.2.0) (2025-04-16)
15
+
16
+
17
+ ### Features
18
+
19
+ * **status:** allow htmlattributes props ([be0c2c4](https://github.com/Synerise/synerise-design/commit/be0c2c4d3048ae03149d73918fd3b0a5bed5251a))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@1.1.2...@synerise/ds-status@1.1.3) (2025-04-02)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-status
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, dashed }: StatusProps) => React.JSX.Element;
3
+ declare const Status: ({ type, onClick, className, label, color, dashed, ...htmlAttributes }: StatusProps) => React.JSX.Element;
4
4
  export default Status;
package/dist/Status.js CHANGED
@@ -1,3 +1,6 @@
1
+ var _excluded = ["type", "onClick", "className", "label", "color", "dashed"];
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
1
4
  import React from 'react';
2
5
  import { TagShape } from '@synerise/ds-tag';
3
6
  import * as S from './Status.styles';
@@ -8,8 +11,9 @@ var Status = function Status(_ref) {
8
11
  className = _ref.className,
9
12
  label = _ref.label,
10
13
  color = _ref.color,
11
- dashed = _ref.dashed;
12
- return /*#__PURE__*/React.createElement(S.StatusTag, {
14
+ dashed = _ref.dashed,
15
+ htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
16
+ return /*#__PURE__*/React.createElement(S.StatusTag, _extends({}, htmlAttributes, {
13
17
  onClick: onClick,
14
18
  className: "ds-status " + (className || ''),
15
19
  shape: TagShape.STATUS_NEUTRAL,
@@ -18,6 +22,6 @@ var Status = function Status(_ref) {
18
22
  color: color,
19
23
  dashed: dashed,
20
24
  asPill: true
21
- });
25
+ }));
22
26
  };
23
27
  export default Status;
@@ -1,9 +1,9 @@
1
+ import type { WithHTMLAttributes } from '@synerise/ds-utils';
1
2
  export type StatusType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'disabled' | 'default' | 'custom';
2
- export type StatusProps = {
3
+ export type StatusProps = WithHTMLAttributes<HTMLDivElement, {
3
4
  label: string;
4
5
  type: StatusType;
5
- className?: string;
6
6
  onClick?: () => void;
7
7
  color?: string;
8
8
  dashed?: boolean;
9
- };
9
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-status",
3
- "version": "1.1.3",
3
+ "version": "1.2.1",
4
4
  "description": "Status UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-tag": "^1.1.3",
37
+ "@synerise/ds-tag": "^1.1.5",
38
38
  "@synerise/ds-utils": "^1.0.1"
39
39
  },
40
40
  "peerDependencies": {
@@ -42,5 +42,5 @@
42
42
  "react": ">=16.9.0 <= 18.3.1",
43
43
  "styled-components": "^5.3.3"
44
44
  },
45
- "gitHead": "dc78b03be09e793ec84f1dafc59c5616e77f1196"
45
+ "gitHead": "fc601270d3c84a5a52b62473a01f1b3c1c7014a7"
46
46
  }