@synerise/ds-block 1.0.41 → 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 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.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
+
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)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-block
13
+
6
14
  ## [1.0.41](https://github.com/Synerise/synerise-design/compare/@synerise/ds-block@1.0.40...@synerise/ds-block@1.0.41) (2026-03-09)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-block
package/README.md CHANGED
@@ -3,6 +3,8 @@ id: block
3
3
  title: Block
4
4
  ---
5
5
 
6
+ > **DEPRECATED.** This component will receive no further updates and will be removed from a future DS version. Do not use in new code.
7
+
6
8
  Block UI Component
7
9
 
8
10
  ## Installation
@@ -33,3 +35,4 @@ import Block from '@synerise/ds-block'
33
35
  | children | Header name | React.ReactNode / string | - |
34
36
  | isDragging | Return `true`if Block is being dragged | boolean | - |
35
37
  | icon | Block icon component | React.ReactNode | - |
38
+ | className | Extra CSS class on the wrapper element | string | - |
package/dist/Block.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { type BlockProps } from './Block.types';
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 React from 'react';
2
- import * as S from './Block.styles';
3
- /**
4
- * @deprecated it will receive no further updates and will be removed from future DS versions
5
- */
6
- var Block = function Block(_ref) {
7
- var className = _ref.className,
8
- children = _ref.children,
9
- isDragging = _ref.isDragging,
10
- icon = _ref.icon;
11
- var ref = React.useRef(null);
12
- return /*#__PURE__*/React.createElement(S.BlockWrapper, {
13
- className: "ds-block " + (className || '') + " " + (isDragging ? 'is-dragging' : ''),
14
- ref: ref
15
- }, /*#__PURE__*/React.createElement(S.BlockContent, null, icon, " ", /*#__PURE__*/React.createElement(S.BlockName, null, children)));
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;
@@ -1,3 +1,3 @@
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>;
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>;
@@ -1,26 +1,19 @@
1
- import styled from 'styled-components';
2
- import { macro } from '@synerise/ds-typography';
3
- export var BlockContent = styled.div.withConfig({
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;"], function (props) {
7
- return props.theme.palette['grey-050'];
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, function (props) {
13
- return props.theme.palette['grey-600'];
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, function (props) {
19
- return props.theme.palette['grey-800'];
20
- }, function (props) {
21
- return props.theme.palette['grey-800'];
22
- }, function (props) {
23
- return props.theme.palette['grey-800'];
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
+ };
@@ -1,4 +1,4 @@
1
- import type React from 'react';
1
+ import { default as React } from 'react';
2
2
  export type BlockProps = {
3
3
  className?: string;
4
4
  children: React.ReactNode | string;
@@ -1 +1 @@
1
- export {};
1
+
package/dist/index.js CHANGED
@@ -1 +1,4 @@
1
- export { default } from './Block';
1
+ import { default as default2 } from "./Block.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-block",
3
- "version": "1.0.41",
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": "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,8 +35,8 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-icon": "^1.14.1",
39
- "@synerise/ds-typography": "^1.1.11"
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": "8dfafc5d7278f09d430f1e7499782d05c76b47c0"
47
+ "gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
48
48
  }