@synerise/ds-status 1.3.17 → 1.3.19

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,14 @@
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.19](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@1.3.18...@synerise/ds-status@1.3.19) (2026-04-01)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-status
9
+
10
+ ## [1.3.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@1.3.17...@synerise/ds-status@1.3.18) (2026-03-24)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-status
13
+
6
14
  ## [1.3.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-status@1.3.16...@synerise/ds-status@1.3.17) (2026-03-20)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-status
package/dist/Status.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  declare const Status: React.ForwardRefExoticComponent<{
3
3
  label: string;
4
- type: import("./Status.types").StatusType;
4
+ type: import('./Status.types').StatusType;
5
5
  onClick?: () => void;
6
6
  color?: string;
7
7
  dashed?: boolean;
8
- } & Omit<React.HTMLAttributes<HTMLDivElement>, "color" | "onClick" | "label" | "type" | "dashed"> & import("@synerise/ds-utils").DataAttributes & React.RefAttributes<HTMLDivElement>>;
8
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "color" | "onClick" | "label" | "type" | "dashed"> & import('@synerise/ds-utils').DataAttributes & React.RefAttributes<HTMLDivElement>>;
9
9
  export default Status;
package/dist/Status.js CHANGED
@@ -1,29 +1,18 @@
1
- var _excluded = ["type", "className", "onClick", "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; }
4
- import React, { forwardRef } from 'react';
5
- import { TagShape } from '@synerise/ds-tag';
6
- import * as S from './Status.styles';
7
- var Status = /*#__PURE__*/forwardRef(function (_ref, ref) {
8
- var _ref$type = _ref.type,
9
- type = _ref$type === void 0 ? 'primary' : _ref$type,
10
- className = _ref.className,
11
- onClick = _ref.onClick,
12
- label = _ref.label,
13
- color = _ref.color,
14
- dashed = _ref.dashed,
15
- htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
16
- return /*#__PURE__*/React.createElement(S.StatusTag, _extends({
17
- ref: ref
18
- }, htmlAttributes, {
19
- onClick: onClick,
20
- className: "ds-status " + (className || ''),
21
- shape: TagShape.STATUS_NEUTRAL,
22
- type: type,
23
- name: label,
24
- color: color,
25
- dashed: dashed,
26
- asPill: true
27
- }));
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { TagShape } from "@synerise/ds-tag";
4
+ import { StatusTag } from "./Status.styles.js";
5
+ const Status = forwardRef(({
6
+ type = "primary",
7
+ className,
8
+ onClick,
9
+ label,
10
+ color,
11
+ dashed,
12
+ ...htmlAttributes
13
+ }, ref) => {
14
+ return /* @__PURE__ */ jsx(StatusTag, { ref, ...htmlAttributes, onClick, className: `ds-status ${className || ""}`, shape: TagShape.STATUS_NEUTRAL, type, name: label, color, dashed, asPill: true });
28
15
  });
29
- export default Status;
16
+ export {
17
+ Status as default
18
+ };
@@ -1,6 +1,6 @@
1
- import { type StyledComponent } from 'styled-components';
2
- import { type TagProps } from '@synerise/ds-tag';
3
- import type { StatusType } from './Status.types';
1
+ import { StyledComponent } from 'styled-components';
2
+ import { TagProps } from '@synerise/ds-tag';
3
+ import { StatusType } from './Status.types';
4
4
  type StyledTagProps = {
5
5
  type: StatusType;
6
6
  dashed?: boolean;
@@ -1,23 +1,22 @@
1
- import styled, { css } from 'styled-components';
2
- import Tag from '@synerise/ds-tag';
3
- var typeColor = function typeColor(props) {
4
- return {
5
- primary: props.theme.palette['blue-600'],
6
- danger: props.theme.palette['red-600'],
7
- warning: props.theme.palette['yellow-700'],
8
- success: props.theme.palette['green-700'],
9
- info: props.theme.palette['blue-600'],
10
- "default": props.theme.palette['grey-500'],
11
- disabled: props.theme.palette['grey-500'],
12
- custom: null
13
- }[props.type];
14
- };
15
- export var StatusTag = styled(Tag).withConfig({
1
+ import styled, { css } from "styled-components";
2
+ import Tag from "@synerise/ds-tag";
3
+ const typeColor = (props) => ({
4
+ primary: props.theme.palette["blue-600"],
5
+ danger: props.theme.palette["red-600"],
6
+ warning: props.theme.palette["yellow-700"],
7
+ success: props.theme.palette["green-700"],
8
+ info: props.theme.palette["blue-600"],
9
+ default: props.theme.palette["grey-500"],
10
+ disabled: props.theme.palette["grey-500"],
11
+ custom: null
12
+ })[props.type];
13
+ const StatusTag = /* @__PURE__ */ styled(Tag).withConfig({
16
14
  displayName: "Statusstyles__StatusTag",
17
15
  componentId: "sc-1yv28da-0"
18
- })(["&&{transition:opacity 0.25s;border:", ";", "}"], function (props) {
19
- return props.dashed ? '1px dashed' : '1px solid';
20
- }, function (props) {
21
- var color = typeColor(props);
16
+ })(["&&{transition:opacity 0.25s;border:", ";", "}"], (props) => props.dashed ? "1px dashed" : "1px solid", (props) => {
17
+ const color = typeColor(props);
22
18
  return color && css(["color:", ";border-color:", ";"], color, color);
23
- });
19
+ });
20
+ export {
21
+ StatusTag
22
+ };
@@ -1,4 +1,4 @@
1
- import type { WithHTMLAttributes } from '@synerise/ds-utils';
1
+ import { WithHTMLAttributes } from '@synerise/ds-utils';
2
2
  export type StatusType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'disabled' | 'default' | 'custom';
3
3
  export type StatusProps = WithHTMLAttributes<HTMLDivElement, {
4
4
  label: string;
@@ -1 +1 @@
1
- export {};
1
+
package/dist/index.js CHANGED
@@ -1 +1,4 @@
1
- export { default } from './Status';
1
+ import { default as default2 } from "./Status.js";
2
+ export {
3
+ default2 as default
4
+ };
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom';
1
+ import "@testing-library/jest-dom";
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-status",
3
- "version": "1.3.17",
3
+ "version": "1.3.19",
4
4
  "description": "Status UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -16,10 +16,10 @@
16
16
  "access": "public"
17
17
  },
18
18
  "scripts": {
19
- "build": "pnpm run build:js && pnpm run build:css && pnpm run defs",
19
+ "build": "vite build",
20
20
  "build:css": "node ../../../scripts/style/less.js",
21
21
  "build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
- "build:watch": "pnpm run build:js -- --watch",
22
+ "build:watch": "vite build --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
24
  "pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
25
25
  "prepublish": "pnpm run build",
@@ -35,13 +35,13 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-tag": "^1.4.17",
39
- "@synerise/ds-utils": "^1.7.0"
38
+ "@synerise/ds-tag": "^1.4.19",
39
+ "@synerise/ds-utils": "^1.7.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@synerise/ds-core": "*",
43
43
  "react": ">=16.9.0 <= 18.3.1",
44
44
  "styled-components": "^5.3.3"
45
45
  },
46
- "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
46
+ "gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
47
47
  }