@synerise/ds-status 1.2.19 → 1.3.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.3.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@1.3.0...@synerise/ds-status@1.3.1) (2025-11-28)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-status
9
+
10
+
11
+
12
+
13
+
14
+ # [1.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@1.2.19...@synerise/ds-status@1.3.0) (2025-11-06)
15
+
16
+
17
+ ### Features
18
+
19
+ * **dropdown:** dropdownMenu component ([f0ec827](https://github.com/Synerise/synerise-design/commit/f0ec82792cdcb021fa9a454912f6e7a892e53895))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.2.19](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@1.2.18...@synerise/ds-status@1.2.19) (2025-10-16)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-status
package/dist/Status.d.ts CHANGED
@@ -1,4 +1,9 @@
1
1
  import React from 'react';
2
- import { type StatusProps } from './Status.types';
3
- declare const Status: ({ type, onClick, className, label, color, dashed, ...htmlAttributes }: StatusProps) => React.JSX.Element;
2
+ declare const Status: React.ForwardRefExoticComponent<{
3
+ label: string;
4
+ type: import("./Status.types").StatusType;
5
+ onClick?: () => void;
6
+ color?: string;
7
+ dashed?: boolean;
8
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "color" | "onClick" | "label" | "type" | "dashed"> & import("@synerise/ds-utils").DataAttributes & React.RefAttributes<HTMLDivElement>>;
4
9
  export default Status;
package/dist/Status.js CHANGED
@@ -1,19 +1,21 @@
1
- var _excluded = ["type", "onClick", "className", "label", "color", "dashed"];
1
+ var _excluded = ["type", "className", "onClick", "label", "color", "dashed"];
2
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
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; }
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import { TagShape } from '@synerise/ds-tag';
6
6
  import * as S from './Status.styles';
7
- var Status = function Status(_ref) {
7
+ var Status = /*#__PURE__*/forwardRef(function (_ref, ref) {
8
8
  var _ref$type = _ref.type,
9
9
  type = _ref$type === void 0 ? 'primary' : _ref$type,
10
- onClick = _ref.onClick,
11
10
  className = _ref.className,
11
+ onClick = _ref.onClick,
12
12
  label = _ref.label,
13
13
  color = _ref.color,
14
14
  dashed = _ref.dashed,
15
15
  htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
16
- return /*#__PURE__*/React.createElement(S.StatusTag, _extends({}, htmlAttributes, {
16
+ return /*#__PURE__*/React.createElement(S.StatusTag, _extends({
17
+ ref: ref
18
+ }, htmlAttributes, {
17
19
  onClick: onClick,
18
20
  className: "ds-status " + (className || ''),
19
21
  shape: TagShape.STATUS_NEUTRAL,
@@ -23,5 +25,5 @@ var Status = function Status(_ref) {
23
25
  dashed: dashed,
24
26
  asPill: true
25
27
  }));
26
- };
28
+ });
27
29
  export default Status;
@@ -1,5 +1,23 @@
1
1
  import type { StatusType } from './Status.types';
2
- export declare const StatusTag: import("styled-components").StyledComponent<({ id, name, className, disabled, removable, image, shape, color, textColor, onRemove, onClick, prefixel, suffixel, texts, asPill, dashed, tooltipProps, ...htmlAttributes }: import("@synerise/ds-tag").TagProps) => React.JSX.Element, any, {
2
+ export declare const StatusTag: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
3
+ id?: string | number;
4
+ name?: string;
5
+ textColor?: string;
6
+ color?: string;
7
+ image?: string;
8
+ shape?: import("@synerise/ds-tag").TagShape;
9
+ removable?: boolean;
10
+ className?: string;
11
+ disabled?: boolean;
12
+ onClick?: () => void;
13
+ onRemove?: (tag: string | number) => void;
14
+ prefixel?: React.ReactNode;
15
+ suffixel?: React.ReactNode;
16
+ texts?: import("@synerise/ds-tag").TagTexts;
17
+ asPill?: boolean;
18
+ dashed?: boolean;
19
+ tooltipProps?: import("@synerise/ds-tooltip").TooltipProps;
20
+ } & Omit<import("react").HTMLAttributes<HTMLDivElement>, "disabled" | "className" | "id" | "color" | "onClick" | "dashed" | "image" | "name" | "textColor" | "shape" | "removable" | "onRemove" | "prefixel" | "suffixel" | "texts" | "asPill" | "tooltipProps"> & import("@synerise/ds-utils").DataAttributes & import("react").RefAttributes<HTMLDivElement>>, any, {
3
21
  type: StatusType;
4
22
  dashed?: boolean;
5
23
  }, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-status",
3
- "version": "1.2.19",
3
+ "version": "1.3.1",
4
4
  "description": "Status UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-tag": "^1.3.3",
38
+ "@synerise/ds-tag": "^1.4.1",
39
39
  "@synerise/ds-utils": "^1.5.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -43,5 +43,5 @@
43
43
  "react": ">=16.9.0 <= 18.3.1",
44
44
  "styled-components": "^5.3.3"
45
45
  },
46
- "gitHead": "dff7f973bc9fb59e3eb88c658add8b6eb5a1b792"
46
+ "gitHead": "d5bd7fbc9d840ac30e2b79b36c451b486e178445"
47
47
  }