@synerise/ds-block 1.0.42 → 1.0.43
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 +4 -0
- package/dist/Block.d.ts +2 -2
- package/dist/Block.js +18 -16
- package/dist/Block.styles.d.ts +3 -3
- package/dist/Block.styles.js +13 -20
- package/dist/Block.types.d.ts +1 -1
- package/dist/Block.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,10 @@
|
|
|
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.0.43](https://github.com/Synerise/synerise-design/compare/@synerise/ds-block@1.0.42...@synerise/ds-block@1.0.43) (2026-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-block
|
|
9
|
+
|
|
6
10
|
## [1.0.42](https://github.com/Synerise/synerise-design/compare/@synerise/ds-block@1.0.41...@synerise/ds-block@1.0.42) (2026-03-20)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @synerise/ds-block
|
package/dist/Block.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BlockProps } from './Block.types';
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated it will receive no further updates and will be removed from future DS versions
|
|
5
5
|
*/
|
package/dist/Block.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BlockWrapper, BlockContent, BlockName } from "./Block.styles.js";
|
|
4
|
+
const Block = ({
|
|
5
|
+
className,
|
|
6
|
+
children,
|
|
7
|
+
isDragging,
|
|
8
|
+
icon
|
|
9
|
+
}) => {
|
|
10
|
+
const ref = React.useRef(null);
|
|
11
|
+
return /* @__PURE__ */ jsx(BlockWrapper, { className: `ds-block ${className || ""} ${isDragging ? "is-dragging" : ""}`, ref, children: /* @__PURE__ */ jsxs(BlockContent, { children: [
|
|
12
|
+
icon,
|
|
13
|
+
" ",
|
|
14
|
+
/* @__PURE__ */ jsx(BlockName, { children })
|
|
15
|
+
] }) });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
Block as default
|
|
16
19
|
};
|
|
17
|
-
export default Block;
|
package/dist/Block.styles.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const BlockContent: import(
|
|
2
|
-
export declare const BlockName: import(
|
|
3
|
-
export declare const BlockWrapper: import(
|
|
1
|
+
export declare const BlockContent: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const BlockName: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const BlockWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
package/dist/Block.styles.js
CHANGED
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import { macro } from
|
|
3
|
-
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { macro } from "@synerise/ds-typography";
|
|
3
|
+
const BlockContent = /* @__PURE__ */ styled.div.withConfig({
|
|
4
4
|
displayName: "Blockstyles__BlockContent",
|
|
5
5
|
componentId: "sc-1sx5qhb-0"
|
|
6
|
-
})(["display:flex;align-items:center;background-color:", ";border:1px solid transparent;padding:11px;width:100%;border-radius:3px;"],
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
export var BlockName = styled.div.withConfig({
|
|
6
|
+
})(["display:flex;align-items:center;background-color:", ";border:1px solid transparent;padding:11px;width:100%;border-radius:3px;"], (props) => props.theme.palette["grey-050"]);
|
|
7
|
+
const BlockName = /* @__PURE__ */ styled.div.withConfig({
|
|
10
8
|
displayName: "Blockstyles__BlockName",
|
|
11
9
|
componentId: "sc-1sx5qhb-1"
|
|
12
|
-
})(["", ";color:", ";padding-left:12px;transition:0.2s ease-in-out;user-select:none;"], macro.h200,
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
export var BlockWrapper = styled.div.withConfig({
|
|
10
|
+
})(["", ";color:", ";padding-left:12px;transition:0.2s ease-in-out;user-select:none;"], macro.h200, (props) => props.theme.palette["grey-600"]);
|
|
11
|
+
const BlockWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
16
12
|
displayName: "Blockstyles__BlockWrapper",
|
|
17
13
|
componentId: "sc-1sx5qhb-2"
|
|
18
|
-
})(["display:flex;flex:0 0 50%;padding:6px 8px;cursor:pointer;svg{transition:0.2s ease-in-out;}&:hover{", "{color:", ";}svg{color:", ";fill:", ";}}&.is-dragging{", "{border:1px dashed ", ";}", ",svg{display:none;}}"], BlockName,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, BlockContent, function (props) {
|
|
25
|
-
return props.theme.palette['grey-400'];
|
|
26
|
-
}, BlockName);
|
|
14
|
+
})(["display:flex;flex:0 0 50%;padding:6px 8px;cursor:pointer;svg{transition:0.2s ease-in-out;}&:hover{", "{color:", ";}svg{color:", ";fill:", ";}}&.is-dragging{", "{border:1px dashed ", ";}", ",svg{display:none;}}"], BlockName, (props) => props.theme.palette["grey-800"], (props) => props.theme.palette["grey-800"], (props) => props.theme.palette["grey-800"], BlockContent, (props) => props.theme.palette["grey-400"], BlockName);
|
|
15
|
+
export {
|
|
16
|
+
BlockContent,
|
|
17
|
+
BlockName,
|
|
18
|
+
BlockWrapper
|
|
19
|
+
};
|
package/dist/Block.types.d.ts
CHANGED
package/dist/Block.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-block",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"description": "Block 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,8 +35,8 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-icon": "^1.15.
|
|
39
|
-
"@synerise/ds-typography": "^1.1.
|
|
38
|
+
"@synerise/ds-icon": "^1.15.1",
|
|
39
|
+
"@synerise/ds-typography": "^1.1.13"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@synerise/ds-core": "*",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"react": ">=16.9.0 <= 18.3.1",
|
|
45
45
|
"styled-components": "^5.3.3"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
|
|
48
48
|
}
|