@synerise/ds-inline-alert 1.1.13 → 1.1.15

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.1.15](https://github.com/Synerise/synerise-design/compare/@synerise/ds-inline-alert@1.1.14...@synerise/ds-inline-alert@1.1.15) (2026-03-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-inline-alert
9
+
10
+ ## [1.1.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-inline-alert@1.1.13...@synerise/ds-inline-alert@1.1.14) (2026-03-20)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-inline-alert
13
+
6
14
  ## [1.1.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-inline-alert@1.1.12...@synerise/ds-inline-alert@1.1.13) (2026-02-19)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-inline-alert
package/README.md CHANGED
@@ -28,12 +28,13 @@ import InlineAlert from '@synerise/ds-inline-alert'
28
28
 
29
29
  ## API
30
30
 
31
- | Property | Description | Type | Default |
32
- | ------------ | -------------------------------------------------------------------- | ----------------- | --------- |
33
- | type | Type of Alert styles, options: `success`, `info`, `warning`, `error` | `string` | `warning` |
34
- | message | Message of Inline Alert | `React.ReactNode` | - |
35
- | disabled | prop to set disabled icon | `boolean` | - |
36
- | withEmphasis | prop to show bolder text | `React.ReactNode` | - |
37
- | withLink | prop to show highlited text | `React.ReactNode` | - |
38
- | hoverButton | prop to set hover state button | `boolean` | - |
39
- | customIcon | prop to set custom icon | `React.ReactNode` | - |
31
+ | Property | Description | Type | Default |
32
+ | ------------ | ------------------------------------------------------------------------ | ---------------------------------------------- | ----------- |
33
+ | type | Visual style variant | `'success' \| 'alert' \| 'warning' \| 'info'` | `'warning'` |
34
+ | message | Message of Inline Alert | `ReactNode` | - |
35
+ | disabled | Disables interaction and reduces opacity to 0.4 | `boolean` | - |
36
+ | withEmphasis | Bold text appended to message (ignored when `withLink` is also set) | `ReactNode` | - |
37
+ | withLink | Underlined text appended to message (takes priority over `withEmphasis`) | `ReactNode` | - |
38
+ | hoverButton | Adds pointer cursor and darker hover colour | `boolean` | - |
39
+ | customIcon | Replaces the default type icon | `ReactNode` | - |
40
+ | iconAlert | **Deprecated** — has no effect | `boolean` | - |
@@ -1,3 +1,3 @@
1
- import { type ReactNode } from 'react';
2
- import { type InlineAlertType } from './InlineAlert.types';
1
+ import { ReactNode } from 'react';
2
+ import { InlineAlertType } from './InlineAlert.types';
3
3
  export declare const ICONS: Record<InlineAlertType, ReactNode>;
@@ -1,8 +1,11 @@
1
- import React from 'react';
2
- import { Check3M, InfoFillM, WarningFillM } from '@synerise/ds-icon';
3
- export var ICONS = {
4
- success: /*#__PURE__*/React.createElement(Check3M, null),
5
- alert: /*#__PURE__*/React.createElement(WarningFillM, null),
6
- warning: /*#__PURE__*/React.createElement(WarningFillM, null),
7
- info: /*#__PURE__*/React.createElement(InfoFillM, null)
8
- };
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { InfoFillM, WarningFillM, Check3M } from "@synerise/ds-icon";
3
+ const ICONS = {
4
+ success: /* @__PURE__ */ jsx(Check3M, {}),
5
+ alert: /* @__PURE__ */ jsx(WarningFillM, {}),
6
+ warning: /* @__PURE__ */ jsx(WarningFillM, {}),
7
+ info: /* @__PURE__ */ jsx(InfoFillM, {})
8
+ };
9
+ export {
10
+ ICONS
11
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type InlineAlertProps } from './InlineAlert.types';
1
+ import { default as React } from 'react';
2
+ import { InlineAlertProps } from './InlineAlert.types';
3
3
  declare const InlineAlert: ({ className, type, message, withLink, withEmphasis, hoverButton, disabled, customIcon, ...rest }: InlineAlertProps) => React.JSX.Element;
4
4
  export default InlineAlert;
@@ -1,31 +1,31 @@
1
- var _excluded = ["className", "type", "message", "withLink", "withEmphasis", "hoverButton", "disabled", "customIcon"];
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, { useMemo } from 'react';
5
- import Icon from '@synerise/ds-icon';
6
- import { ICONS } from './InlineAlert.const';
7
- import * as S from './InlineAlert.styles';
8
- var InlineAlert = function InlineAlert(_ref) {
9
- var className = _ref.className,
10
- _ref$type = _ref.type,
11
- type = _ref$type === void 0 ? 'warning' : _ref$type,
12
- message = _ref.message,
13
- withLink = _ref.withLink,
14
- withEmphasis = _ref.withEmphasis,
15
- hoverButton = _ref.hoverButton,
16
- disabled = _ref.disabled,
17
- customIcon = _ref.customIcon,
18
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
19
- var icon = useMemo(function () {
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import Icon from "@synerise/ds-icon";
4
+ import { ICONS } from "./InlineAlert.const.js";
5
+ import { InlineAlertWrapper, Message, LinkWrapper, EmphasisWrapper } from "./InlineAlert.styles.js";
6
+ const InlineAlert = ({
7
+ className,
8
+ type = "warning",
9
+ message,
10
+ withLink,
11
+ withEmphasis,
12
+ hoverButton,
13
+ disabled,
14
+ customIcon,
15
+ ...rest
16
+ }) => {
17
+ const icon = useMemo(() => {
20
18
  return ICONS[type];
21
19
  }, [type]);
22
- return /*#__PURE__*/React.createElement(S.InlineAlertWrapper, _extends({}, rest, {
23
- type: type,
24
- disabled: disabled,
25
- hoverButton: hoverButton,
26
- className: "ds-inline-alert " + (className || '')
27
- }), customIcon || /*#__PURE__*/React.createElement(Icon, {
28
- component: icon
29
- }), message && /*#__PURE__*/React.createElement(S.Message, null, message, withLink && /*#__PURE__*/React.createElement(S.LinkWrapper, null, withLink), withEmphasis && !withLink && /*#__PURE__*/React.createElement(S.EmphasisWrapper, null, withEmphasis)));
20
+ return /* @__PURE__ */ jsxs(InlineAlertWrapper, { ...rest, type, disabled, hoverButton, className: `ds-inline-alert ${className || ""}`, children: [
21
+ customIcon || /* @__PURE__ */ jsx(Icon, { component: icon }),
22
+ message && /* @__PURE__ */ jsxs(Message, { children: [
23
+ message,
24
+ withLink && /* @__PURE__ */ jsx(LinkWrapper, { children: withLink }),
25
+ withEmphasis && !withLink && /* @__PURE__ */ jsx(EmphasisWrapper, { children: withEmphasis })
26
+ ] })
27
+ ] });
28
+ };
29
+ export {
30
+ InlineAlert as default
30
31
  };
31
- export default InlineAlert;
@@ -1,9 +1,9 @@
1
- import { type InlineAlertType } from './InlineAlert.types';
2
- export declare const Message: import("styled-components").StyledComponent<"span", any, {}, never>;
3
- export declare const InlineAlertWrapper: import("styled-components").StyledComponent<"span", any, {
1
+ import { InlineAlertType } from './InlineAlert.types';
2
+ export declare const Message: import('styled-components').StyledComponent<"span", any, {}, never>;
3
+ export declare const InlineAlertWrapper: import('styled-components').StyledComponent<"span", any, {
4
4
  type: InlineAlertType;
5
5
  hoverButton?: boolean;
6
6
  disabled?: boolean;
7
7
  }, never>;
8
- export declare const EmphasisWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
9
- export declare const LinkWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
8
+ export declare const EmphasisWrapper: import('styled-components').StyledComponent<"span", any, {}, never>;
9
+ export declare const LinkWrapper: import('styled-components').StyledComponent<"span", any, {}, never>;
@@ -1,41 +1,35 @@
1
- import styled, { css } from 'styled-components';
2
- var COLORS = {
3
- success: 'green-600',
4
- warning: 'yellow-600',
5
- alert: 'red-600',
6
- info: 'grey-600'
1
+ import styled, { css } from "styled-components";
2
+ const COLORS = {
3
+ success: "green-600",
4
+ warning: "yellow-600",
5
+ alert: "red-600",
6
+ info: "grey-600"
7
7
  };
8
- var COLORS_HOVER = {
9
- success: 'green-700',
10
- warning: 'yellow-700',
11
- alert: 'red-700',
12
- info: 'grey-700'
8
+ const COLORS_HOVER = {
9
+ success: "green-700",
10
+ warning: "yellow-700",
11
+ alert: "red-700",
12
+ info: "grey-700"
13
13
  };
14
- export var Message = styled.span.withConfig({
14
+ const Message = /* @__PURE__ */ styled.span.withConfig({
15
15
  displayName: "InlineAlertstyles__Message",
16
16
  componentId: "sc-cu91um-0"
17
17
  })(["display:flex;align-items:center;font-size:13px;line-height:18px;font-weight:400;color:inherit;margin-left:4px;"]);
18
- export var InlineAlertWrapper = styled.span.withConfig({
18
+ const InlineAlertWrapper = /* @__PURE__ */ styled.span.withConfig({
19
19
  displayName: "InlineAlertstyles__InlineAlertWrapper",
20
20
  componentId: "sc-cu91um-1"
21
- })(["display:flex;justify-content:flex-start;flex-direction:row;&:hover{cursor:", ";color:", ";}&:active{color:", ";}color:", ";", ";", "{color:", ";}"], function (props) {
22
- return props.hoverButton ? 'pointer' : 'auto';
23
- }, function (props) {
24
- return props.hoverButton ? props.theme.palette[COLORS_HOVER[props.type]] : props.theme.palette[COLORS[props.type]];
25
- }, function (props) {
26
- return props.theme.palette[COLORS[props.type]];
27
- }, function (props) {
28
- return props.theme.palette[COLORS[props.type]];
29
- }, function (props) {
30
- return !!props.disabled && css(["pointer-events:none;opacity:0.4;"]);
31
- }, Message, function (props) {
32
- return props.theme.palette['grey-600'];
33
- });
34
- export var EmphasisWrapper = styled.span.withConfig({
21
+ })(["display:flex;justify-content:flex-start;flex-direction:row;&:hover{cursor:", ";color:", ";}&:active{color:", ";}color:", ";", ";", "{color:", ";}"], (props) => props.hoverButton ? "pointer" : "auto", (props) => props.hoverButton ? props.theme.palette[COLORS_HOVER[props.type]] : props.theme.palette[COLORS[props.type]], (props) => props.theme.palette[COLORS[props.type]], (props) => props.theme.palette[COLORS[props.type]], (props) => !!props.disabled && css(["pointer-events:none;opacity:0.4;"]), Message, (props) => props.theme.palette["grey-600"]);
22
+ const EmphasisWrapper = /* @__PURE__ */ styled.span.withConfig({
35
23
  displayName: "InlineAlertstyles__EmphasisWrapper",
36
24
  componentId: "sc-cu91um-2"
37
25
  })(["display:flex;padding-bottom:1px;font-size:13px;line-height:1.39;padding-left:3px;font-weight:500;color:inherit;"]);
38
- export var LinkWrapper = styled.span.withConfig({
26
+ const LinkWrapper = /* @__PURE__ */ styled.span.withConfig({
39
27
  displayName: "InlineAlertstyles__LinkWrapper",
40
28
  componentId: "sc-cu91um-3"
41
- })(["display:flex;font-size:13px;line-height:1.39;font-weight:400;margin-left:3px;color:inherit;text-decoration:underline;cursor:pointer;"]);
29
+ })(["display:flex;font-size:13px;line-height:1.39;font-weight:400;margin-left:3px;color:inherit;text-decoration:underline;cursor:pointer;"]);
30
+ export {
31
+ EmphasisWrapper,
32
+ InlineAlertWrapper,
33
+ LinkWrapper,
34
+ Message
35
+ };
@@ -1,5 +1,5 @@
1
- import { type ReactNode } from 'react';
2
- import { type WithHTMLAttributes } from '@synerise/ds-utils';
1
+ import { ReactNode } from 'react';
2
+ import { WithHTMLAttributes } from '@synerise/ds-utils';
3
3
  export type InlineAlertType = 'success' | 'alert' | 'warning' | 'info';
4
4
  export type InlineAlertProps = WithHTMLAttributes<HTMLDivElement, {
5
5
  type: InlineAlertType;
@@ -1 +1 @@
1
- export {};
1
+
package/dist/index.js CHANGED
@@ -1,2 +1,4 @@
1
- export { default } from './InlineAlert';
2
- export * from './InlineAlert.types';
1
+ import { default as default2 } from "./InlineAlert.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-inline-alert",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "InlineAlert 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
  "prepublish": "pnpm run build",
25
25
  "types": "tsc --noEmit",
@@ -34,13 +34,13 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-icon": "^1.14.1",
38
- "@synerise/ds-utils": "^1.6.0"
37
+ "@synerise/ds-icon": "^1.15.1",
38
+ "@synerise/ds-utils": "^1.7.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@synerise/ds-core": "*",
42
42
  "react": ">=16.9.0 <= 18.3.1",
43
43
  "styled-components": "^5.3.3"
44
44
  },
45
- "gitHead": "b3d1312cbfbe69aba1cb5667b54be7f76938156c"
45
+ "gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
46
46
  }