@synerise/ds-alert 0.8.28 → 0.8.29

Sign up to get free protection for your applications and to get access to all the features.
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
+ ## [0.8.29](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.8.28...@synerise/ds-alert@0.8.29) (2024-09-17)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-alert
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.8.28](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.8.27...@synerise/ds-alert@0.8.28) (2024-09-13)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-alert
package/dist/Alert.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import './style/index.less';
3
3
  import { AlertSubComponents, Props } from './Alert.types';
4
4
  declare const Alert: React.FC<Props> & AlertSubComponents;
package/dist/Alert.js CHANGED
@@ -1,6 +1,6 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
- import * as React from 'react';
3
+ import React from 'react';
4
4
  import "./style/index.css";
5
5
  import Icon, { Check2M, Close2M, NotificationsM } from '@synerise/ds-icon';
6
6
  import * as S from './Alert.styles';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { Props } from './Alert.types';
3
3
  export declare const AntdAlert: import("styled-components").StyledComponent<(props: Props & {
4
4
  message: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import Alert from 'antd/lib/alert';
3
3
  import styled, { css } from 'styled-components';
4
4
  var DARKER_COLORS = ['green', 'yellow'];
@@ -1,5 +1,5 @@
1
1
  import { AlertProps } from 'antd/lib/alert';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  import InlineAlert from './InlineAlert/InlineAlert';
4
4
  export type AlertType = 'success' | 'warning' | 'error' | 'info';
5
5
  export interface Props extends Omit<AlertProps, 'type' | 'message'> {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { AlertInfoProps } from './AlertInfo.types';
3
3
  declare const AlertInfo: React.FC<AlertInfoProps>;
4
4
  export default AlertInfo;
@@ -4,7 +4,7 @@ var _mapSizeToPx;
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
7
- import * as React from 'react';
7
+ import React from 'react';
8
8
  import Icon, { CheckL, WarningL, WarningXl, CheckXl } from '@synerise/ds-icon';
9
9
  import { AlertSize } from './AlertInfo.types';
10
10
  import * as S from './AlertInfo.styles';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export type AlertInfoProps = {
3
3
  size?: AlertSize;
4
4
  fontSize?: AlertSize;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { Props } from './BroadcastBar.types';
3
3
  declare const BroadcastBar: React.FC<Props>;
4
4
  export default BroadcastBar;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import Icon, { CloseM, WarningFillM, Check3M, ErrorFillM } from '@synerise/ds-icon';
3
3
  import * as S from './BroadcastBar.styles';
4
4
  var ICONS = {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import Button from '@synerise/ds-button';
3
3
  import { ColorType } from './BroadcastBar.types';
4
4
  export declare const AlertContent: import("styled-components").StyledComponent<"div", any, {
@@ -1,5 +1,5 @@
1
1
  import { AlertProps } from 'antd/lib/alert';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  export type BroadcastBarTypes = 'success' | 'warning' | 'negative';
4
4
  export type ColorType = 'red' | 'green' | 'yellow';
5
5
  export interface Props extends Omit<AlertProps, 'type' | 'message'> {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { Props } from './AlertSemanticColor.types';
3
3
  declare const AlertSemanticColor: React.FC<Props>;
4
4
  export default AlertSemanticColor;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import Icon, { UserCheckM, UpdateDataM, WarningFillM, InfoFillM, Check3M, HelpFillM, NotificationsReceiveM } from '@synerise/ds-icon';
3
3
  import * as S from './AlertSemanticColor.styles';
4
4
  var ICONS = {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export type IconAlertType = 'success' | 'alert' | 'warning' | 'info';
3
3
  export type IconAlertProps = {
4
4
  type: IconAlertType;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export type InlineAlertType = 'success' | 'alert' | 'warning' | 'info';
3
3
  export type InlineAlertProps = {
4
4
  type: InlineAlertType;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { NotificationInstance } from 'antd/lib/notification';
3
3
  import type { ArgsProps, NotificationApi } from 'antd/es/notification';
4
4
  import 'antd/lib/notification/style/index.less';
@@ -12,7 +12,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
12
12
 
13
13
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
14
14
 
15
- import * as React from 'react';
15
+ import React from 'react';
16
16
  import * as ReactDOM from 'react-dom';
17
17
  import { notification } from 'antd';
18
18
  import "antd/lib/notification/style/index.css";
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ColorType, CustomColorType } from './SectionMessage.types';
3
3
  export declare const AlertContent: import("styled-components").StyledComponent<"div", any, {
4
4
  withLink?: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { AlertProps } from 'antd/lib/alert';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  import { AlertType } from '../ColorSemantic/AlertSemanticColor.types';
4
4
  export type AlertTypes = Exclude<AlertType, 'informative'>;
5
5
  export type CustomColorType = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-alert",
3
- "version": "0.8.28",
3
+ "version": "0.8.29",
4
4
  "description": "Alert UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,10 +33,10 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-button": "^0.21.10",
37
- "@synerise/ds-icon": "^0.65.5",
38
- "@synerise/ds-unordered-list": "^0.3.4",
39
- "@synerise/ds-utils": "^0.29.2",
36
+ "@synerise/ds-button": "^0.21.11",
37
+ "@synerise/ds-icon": "^0.65.6",
38
+ "@synerise/ds-unordered-list": "^0.3.5",
39
+ "@synerise/ds-utils": "^0.29.3",
40
40
  "animate.css": "^4.1.1",
41
41
  "react-animate-height": "^2.0.23",
42
42
  "react-dom": "16.13.0",
@@ -48,5 +48,5 @@
48
48
  "react": ">=16.9.0 <= 17.0.2",
49
49
  "styled-components": "5.0.1"
50
50
  },
51
- "gitHead": "6f3231e4a9e0720ffee61b748488cecd590da6e6"
51
+ "gitHead": "ae3c38b44ca0f9071cd55f7b82c182a99b5710e8"
52
52
  }