@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 +8 -0
- package/dist/Status.d.ts +3 -3
- package/dist/Status.js +17 -28
- package/dist/Status.styles.d.ts +3 -3
- package/dist/Status.styles.js +19 -20
- package/dist/Status.types.d.ts +1 -1
- package/dist/Status.types.js +1 -1
- package/dist/index.js +4 -1
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +6 -6
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(
|
|
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(
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
|
16
|
+
export {
|
|
17
|
+
Status as default
|
|
18
|
+
};
|
package/dist/Status.styles.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
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;
|
package/dist/Status.styles.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import styled, { css } from
|
|
2
|
-
import Tag from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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:", ";", "}"],
|
|
19
|
-
|
|
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
|
+
};
|
package/dist/Status.types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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;
|
package/dist/Status.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/dist/index.js
CHANGED
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
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.
|
|
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": "
|
|
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": "
|
|
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.
|
|
39
|
-
"@synerise/ds-utils": "^1.7.
|
|
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": "
|
|
46
|
+
"gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
|
|
47
47
|
}
|