@synerise/ds-section-message 1.0.6 → 1.0.8

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,18 +3,18 @@
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.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.5...@synerise/ds-section-message@1.0.6) (2025-09-05)
6
+ ## [1.0.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.7...@synerise/ds-section-message@1.0.8) (2025-09-23)
7
7
 
8
8
 
9
9
  ### Bug Fixes
10
10
 
11
- * **section-message:** remove prop color ([569a1d7](https://github.com/Synerise/synerise-design/commit/569a1d72db5f723f0dd345e897c10ecbd46a5ab6))
11
+ * **section-message:** fixes to section message overflow ([8189069](https://github.com/Synerise/synerise-design/commit/81890698e348490e75cd991e2d97ca456592941c))
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
- ## [1.0.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.4...@synerise/ds-section-message@1.0.5) (2025-08-28)
17
+ ## [1.0.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.6...@synerise/ds-section-message@1.0.7) (2025-09-16)
18
18
 
19
19
  **Note:** Version bump only for package @synerise/ds-section-message
20
20
 
@@ -22,32 +22,29 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
22
22
 
23
23
 
24
24
 
25
- ## [1.0.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.3...@synerise/ds-section-message@1.0.4) (2025-08-14)
26
-
27
- **Note:** Version bump only for package @synerise/ds-section-message
28
-
29
-
25
+ ## [1.0.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.5...@synerise/ds-section-message@1.0.6) (2025-09-05)
30
26
 
27
+ ### Bug Fixes
31
28
 
29
+ - **section-message:** remove prop color ([569a1d7](https://github.com/Synerise/synerise-design/commit/569a1d72db5f723f0dd345e897c10ecbd46a5ab6))
32
30
 
33
- ## [1.0.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.2...@synerise/ds-section-message@1.0.3) (2025-07-24)
31
+ ## [1.0.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.4...@synerise/ds-section-message@1.0.5) (2025-08-28)
34
32
 
35
33
  **Note:** Version bump only for package @synerise/ds-section-message
36
34
 
35
+ ## [1.0.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.3...@synerise/ds-section-message@1.0.4) (2025-08-14)
37
36
 
37
+ **Note:** Version bump only for package @synerise/ds-section-message
38
38
 
39
+ ## [1.0.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.2...@synerise/ds-section-message@1.0.3) (2025-07-24)
39
40
 
41
+ **Note:** Version bump only for package @synerise/ds-section-message
40
42
 
41
43
  ## [1.0.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-section-message@1.0.1...@synerise/ds-section-message@1.0.2) (2025-07-18)
42
44
 
43
-
44
45
  ### Bug Fixes
45
46
 
46
- * **section-message:** revert wrappers in styles ([e26723d](https://github.com/Synerise/synerise-design/commit/e26723d10590617cbf620dd9e62650f7aeb44299))
47
-
48
-
49
-
50
-
47
+ - **section-message:** revert wrappers in styles ([e26723d](https://github.com/Synerise/synerise-design/commit/e26723d10590617cbf620dd9e62650f7aeb44299))
51
48
 
52
49
  ## 1.0.1 (2025-07-17)
53
50
 
package/README.md CHANGED
@@ -6,6 +6,7 @@ title: SectionMessage
6
6
  SectionMessage UI Component
7
7
 
8
8
  ## Installation
9
+
9
10
  ```
10
11
  npm i @synerise/ds-section-message
11
12
  or
@@ -13,6 +14,7 @@ yarn add @synerise/ds-section-message
13
14
  ```
14
15
 
15
16
  ## Usage
17
+
16
18
  ```
17
19
  import SectionMessage from '@synerise/ds-section-message'
18
20
 
@@ -27,7 +29,7 @@ import SectionMessage from '@synerise/ds-section-message'
27
29
  ## API
28
30
 
29
31
  | Property | Description | Type | Default |
30
- | --------------- | ---------------------------------------------------------------------------------------------------------------------- | ------------| ---------- |
32
+ | --------------- | ---------------------------------------------------------------------------------------------------------------------- | ----------- | ---------- |
31
33
  | type | Type of SectionMessage, options: `notice`, `negative`, `positive`,`neutral`,`supply`,`service`,`entity` | `string` | `negative` |
32
34
  | message | Message of section messsage | `ReactNode` | - |
33
35
  | customColor | type of colors,options:`red`, `blue`, `green`,`yellow`,`grey`,`purple`,`violet`, `cyan`,`fern`,`orange`, `mars`,`pink` | `string` | - |
@@ -2,4 +2,4 @@ import React, { type ReactNode } from 'react';
2
2
  import { type SectionType } from './SectionMessage.types';
3
3
  export declare const ICONS: Record<SectionType, ReactNode>;
4
4
  export declare const DEFAULT_ICON: React.JSX.Element;
5
- export declare const SECTION_TYPES: readonly ["positive", "notice", "negative", "neutral", "supply", "service", "entity"];
5
+ export declare const SECTION_TYPES: SectionType[];
@@ -3,17 +3,17 @@ import { getColorBackground, getColorBorder, getColorIconAndBorderTop } from './
3
3
  export var AlertContent = styled.div.withConfig({
4
4
  displayName: "SectionMessagestyles__AlertContent",
5
5
  componentId: "sc-1qohcjm-0"
6
- })(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:", ";"], function (props) {
6
+ })(["display:flex;min-width:0;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:", ";"], function (props) {
7
7
  return props.withLink ? '12px 0 11px' : '12px 0';
8
8
  });
9
9
  export var AllContent = styled.div.withConfig({
10
10
  displayName: "SectionMessagestyles__AllContent",
11
11
  componentId: "sc-1qohcjm-1"
12
- })(["display:flex;color:inherit;"]);
12
+ })(["display:flex;min-width:0;color:inherit;"]);
13
13
  export var Text = styled.div.withConfig({
14
14
  displayName: "SectionMessagestyles__Text",
15
15
  componentId: "sc-1qohcjm-2"
16
- })(["display:flex;"]);
16
+ })(["display:flex;min-width:0;width:100%;"]);
17
17
  export var IconWrapper = styled.div.withConfig({
18
18
  displayName: "SectionMessagestyles__IconWrapper",
19
19
  componentId: "sc-1qohcjm-3"
@@ -51,13 +51,13 @@ export var WrapperSectionMessage = styled.div.withConfig({
51
51
  export var AlertMessage = styled.span.withConfig({
52
52
  displayName: "SectionMessagestyles__AlertMessage",
53
53
  componentId: "sc-1qohcjm-9"
54
- })(["font-size:13px;line-height:1.39;font-weight:500;max-width:400px;overflow:hidden;text-overflow:ellipsis;color:", ";"], function (props) {
54
+ })(["font-size:13px;line-height:1.39;font-weight:500;overflow-wrap:break-word;min-width:0;width:100%;color:", ";"], function (props) {
55
55
  return props.theme.palette['grey-700'];
56
56
  });
57
57
  export var AlertDescription = styled.span.withConfig({
58
58
  displayName: "SectionMessagestyles__AlertDescription",
59
59
  componentId: "sc-1qohcjm-10"
60
- })(["display:flex;font-size:13px;line-height:1.39;font-weight:normal;padding-right:3px;margin-top:2px;color:", ";"], function (props) {
60
+ })(["overflow-wrap:break-word;min-width:0;font-size:13px;line-height:1.39;font-weight:normal;padding-right:3px;margin-top:2px;color:", ";"], function (props) {
61
61
  return props.theme.palette['grey-700'];
62
62
  });
63
63
  export var EmphasisWrapper = styled.span.withConfig({
@@ -1,10 +1,9 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
2
  import type { WithHTMLAttributes } from '@synerise/ds-utils';
3
- import { type SECTION_TYPES } from './SectionMessage.const';
4
3
  export type CustomColorType = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
5
4
  /** @deprecated */
6
5
  export type ColorType = 'grey' | 'red' | 'green' | 'yellow' | 'violet' | 'purple' | 'cyan';
7
- export type SectionType = (typeof SECTION_TYPES)[number];
6
+ export type SectionType = 'positive' | 'notice' | 'negative' | 'neutral' | 'supply' | 'service' | 'entity';
8
7
  export type SectionMessageProps = WithHTMLAttributes<HTMLDivElement, {
9
8
  message?: ReactNode;
10
9
  type: SectionType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-section-message",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "SectionMessage UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -26,6 +26,7 @@
26
26
  "pack:ci": "npm pack --pack-destination ../../storybook/storybook-static/static",
27
27
  "test": "jest",
28
28
  "test:watch": "npm run test -- --watchAll",
29
+ "check:circular-dependencies": "madge --circular --extensions ts,tsx,js,jsx --ts-config tsconfig.json src/ --exclude '/dist/'",
29
30
  "upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
30
31
  },
31
32
  "sideEffects": [
@@ -34,13 +35,13 @@
34
35
  ],
35
36
  "types": "dist/index.d.ts",
36
37
  "dependencies": {
37
- "@synerise/ds-icon": "^1.7.1",
38
- "@synerise/ds-utils": "^1.4.1"
38
+ "@synerise/ds-icon": "^1.7.2",
39
+ "@synerise/ds-utils": "^1.4.2"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "@synerise/ds-core": "*",
42
43
  "react": ">=16.9.0 <= 18.3.1",
43
44
  "styled-components": "^5.3.3"
44
45
  },
45
- "gitHead": "7f119fa17e645f1d800aea95c313fe22f348439c"
46
+ "gitHead": "4f56489ade5b08524578821d0c51c963002ff48c"
46
47
  }