@synerise/ds-alert 0.8.38 → 0.8.40

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,22 @@
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.40](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.8.39...@synerise/ds-alert@0.8.40) (2024-11-29)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-alert
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.8.39](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.8.38...@synerise/ds-alert@0.8.39) (2024-11-28)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-alert
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.8.38](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.8.37...@synerise/ds-alert@0.8.38) (2024-11-21)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-alert
package/dist/Alert.js CHANGED
@@ -1,5 +1,4 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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
-
3
2
  import React from 'react';
4
3
  import "./style/index.css";
5
4
  import Icon, { Check2M, Close2M, NotificationsM } from '@synerise/ds-icon';
@@ -12,14 +11,13 @@ var ICONS = {
12
11
  info: /*#__PURE__*/React.createElement(NotificationsM, null)
13
12
  };
14
13
  var DEFAULT_ICON = /*#__PURE__*/React.createElement(Check2M, null);
15
-
16
14
  var Alert = function Alert(props) {
17
15
  var icon = props.icon,
18
- type = props.type,
19
- message = props.message,
20
- description = props.description,
21
- showMoreLabel = props.showMoreLabel,
22
- onShowMore = props.onShowMore;
16
+ type = props.type,
17
+ message = props.message,
18
+ description = props.description,
19
+ showMoreLabel = props.showMoreLabel,
20
+ onShowMore = props.onShowMore;
23
21
  var renderMessage = React.useMemo(function () {
24
22
  return /*#__PURE__*/React.createElement(S.AlertContent, null, message && /*#__PURE__*/React.createElement(S.AlertMessage, null, message), description && /*#__PURE__*/React.createElement(S.AlertDescription, null, description), onShowMore && showMoreLabel && /*#__PURE__*/React.createElement(S.AlertShowMore, {
25
23
  onClick: onShowMore
@@ -39,6 +37,5 @@ var Alert = function Alert(props) {
39
37
  description: null
40
38
  }));
41
39
  };
42
-
43
40
  Alert.InlineAlert = InlineAlert;
44
41
  export default Alert;
@@ -2,14 +2,12 @@ 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'];
5
-
6
5
  var getColor = function getColor(props) {
7
6
  var color = props.color,
8
- theme = props.theme;
7
+ theme = props.theme;
9
8
  var hue = DARKER_COLORS.includes(color) ? '700' : '600';
10
9
  return theme.palette[color + "-" + hue];
11
10
  };
12
-
13
11
  export var AntdAlert = styled(function (props) {
14
12
  return /*#__PURE__*/React.createElement(Alert, props);
15
13
  }).withConfig({
@@ -1,26 +1,22 @@
1
1
  var _excluded = ["IconComponent"];
2
-
3
2
  var _mapSizeToPx;
4
-
5
3
  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
-
7
4
  import React from 'react';
8
5
  import Icon, { CheckL, WarningL, WarningXl, CheckXl } from '@synerise/ds-icon';
9
6
  import { AlertSize } from './AlertInfo.types';
10
7
  import * as S from './AlertInfo.styles';
11
8
  var mapSizeToPx = (_mapSizeToPx = {}, _mapSizeToPx[AlertSize.SMALL] = 48, _mapSizeToPx[AlertSize.MEDIUM] = 96, _mapSizeToPx);
12
-
13
9
  var AlertInfo = function AlertInfo(_ref) {
14
10
  var _ref$size = _ref.size,
15
- size = _ref$size === void 0 ? AlertSize.SMALL : _ref$size,
16
- label = _ref.label,
17
- _ref$labelPosition = _ref.labelPosition,
18
- labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
19
- type = _ref.type,
20
- text = _ref.text,
21
- button = _ref.button,
22
- fontSize = _ref.fontSize,
23
- mode = _ref.mode;
11
+ size = _ref$size === void 0 ? AlertSize.SMALL : _ref$size,
12
+ label = _ref.label,
13
+ _ref$labelPosition = _ref.labelPosition,
14
+ labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
15
+ type = _ref.type,
16
+ text = _ref.text,
17
+ button = _ref.button,
18
+ fontSize = _ref.fontSize,
19
+ mode = _ref.mode;
24
20
  var mapTypeToStatus = {
25
21
  warning: {
26
22
  IconComponent: size === AlertSize.SMALL ? WarningL : WarningXl,
@@ -35,11 +31,9 @@ var AlertInfo = function AlertInfo(_ref) {
35
31
  iconColor: 'green-600'
36
32
  }
37
33
  };
38
-
39
34
  var _mapTypeToStatus$type = mapTypeToStatus[type],
40
- IconComponent = _mapTypeToStatus$type.IconComponent,
41
- iconContainerStyles = _objectWithoutPropertiesLoose(_mapTypeToStatus$type, _excluded);
42
-
35
+ IconComponent = _mapTypeToStatus$type.IconComponent,
36
+ iconContainerStyles = _objectWithoutPropertiesLoose(_mapTypeToStatus$type, _excluded);
43
37
  return /*#__PURE__*/React.createElement(S.AlertWrapper, {
44
38
  mode: mode,
45
39
  className: "ds-alert-info",
@@ -54,5 +48,4 @@ var AlertInfo = function AlertInfo(_ref) {
54
48
  labelPosition: labelPosition
55
49
  }, label), button && /*#__PURE__*/React.createElement(S.ButtonWrapper, null, button));
56
50
  };
57
-
58
51
  export default AlertInfo;
@@ -1,11 +1,8 @@
1
1
  var _IconSize, _FontSize;
2
-
3
2
  export var AlertSize;
4
-
5
3
  (function (AlertSize) {
6
4
  AlertSize["SMALL"] = "small";
7
5
  AlertSize["MEDIUM"] = "medium";
8
6
  })(AlertSize || (AlertSize = {}));
9
-
10
7
  export var IconSize = (_IconSize = {}, _IconSize[AlertSize.SMALL] = 48, _IconSize[AlertSize.MEDIUM] = 96, _IconSize);
11
8
  export var FontSize = (_FontSize = {}, _FontSize[AlertSize.SMALL] = 14, _FontSize[AlertSize.MEDIUM] = 18, _FontSize);
@@ -7,19 +7,18 @@ var ICONS = {
7
7
  negative: /*#__PURE__*/React.createElement(ErrorFillM, null)
8
8
  };
9
9
  var DEFAULT_ICON = /*#__PURE__*/React.createElement(WarningFillM, null);
10
-
11
10
  var BroadcastBar = function BroadcastBar(_ref) {
12
11
  var icon = _ref.icon,
13
- type = _ref.type,
14
- description = _ref.description,
15
- button = _ref.button,
16
- withEmphasis = _ref.withEmphasis,
17
- withLink = _ref.withLink,
18
- color = _ref.color,
19
- withClose = _ref.withClose,
20
- textButton = _ref.textButton,
21
- onCloseClick = _ref.onCloseClick,
22
- text = _ref.text;
12
+ type = _ref.type,
13
+ description = _ref.description,
14
+ button = _ref.button,
15
+ withEmphasis = _ref.withEmphasis,
16
+ withLink = _ref.withLink,
17
+ color = _ref.color,
18
+ withClose = _ref.withClose,
19
+ textButton = _ref.textButton,
20
+ onCloseClick = _ref.onCloseClick,
21
+ text = _ref.text;
23
22
  var renderMessage = React.useMemo(function () {
24
23
  return /*#__PURE__*/React.createElement(S.AlertContent, {
25
24
  color: color,
@@ -67,5 +66,4 @@ var BroadcastBar = function BroadcastBar(_ref) {
67
66
  component: /*#__PURE__*/React.createElement(CloseM, null)
68
67
  })))));
69
68
  };
70
-
71
69
  export default BroadcastBar;
@@ -1,22 +1,17 @@
1
1
  import styled from 'styled-components';
2
2
  import Button from '@synerise/ds-button';
3
-
4
3
  var getColorBackground = function getColorBackground(props) {
5
4
  if (props.color === 'red') {
6
5
  return props.theme.palette['red-500'];
7
6
  }
8
-
9
7
  return props.theme.palette[props.color + "-600"];
10
8
  };
11
-
12
9
  var getColorIcon = function getColorIcon(props) {
13
10
  if (props.color === 'yellow') {
14
11
  return props.theme.palette['grey-800'];
15
12
  }
16
-
17
13
  return props.theme.palette.white;
18
14
  };
19
-
20
15
  export var AlertContent = styled.div.withConfig({
21
16
  displayName: "BroadcastBarstyles__AlertContent",
22
17
  componentId: "sc-1xh5805-0"
@@ -12,12 +12,11 @@ var ICONS = {
12
12
  entity: /*#__PURE__*/React.createElement(NotificationsReceiveM, null)
13
13
  };
14
14
  var DEFAULT_ICON = /*#__PURE__*/React.createElement(WarningFillM, null);
15
-
16
15
  var AlertSemanticColor = function AlertSemanticColor(_ref) {
17
16
  var icon = _ref.icon,
18
- type = _ref.type,
19
- color = _ref.color,
20
- mode = _ref.mode;
17
+ type = _ref.type,
18
+ color = _ref.color,
19
+ mode = _ref.mode;
21
20
  var renderIcon = React.useMemo(function () {
22
21
  if (icon) return icon;
23
22
  if (ICONS[type]) return ICONS[type];
@@ -33,5 +32,4 @@ var AlertSemanticColor = function AlertSemanticColor(_ref) {
33
32
  component: renderIcon
34
33
  })));
35
34
  };
36
-
37
35
  export default AlertSemanticColor;
@@ -1,25 +1,19 @@
1
1
  import styled from 'styled-components';
2
-
3
2
  var getAlertIconColor = function getAlertIconColor(props) {
4
3
  if (props.mode === 'background' || props.mode === 'shadow') {
5
4
  return props.theme.palette.white;
6
5
  }
7
-
8
6
  return props.theme.palette[props.color + "-600"];
9
7
  };
10
-
11
8
  var getAlertColor = function getAlertColor(props) {
12
9
  if (props.mode === 'background' || props.mode === 'shadow') {
13
10
  return props.theme.palette[props.color + "-600"];
14
11
  }
15
-
16
12
  if (props.mode === 'background-outline') {
17
13
  return props.theme.palette[props.color + "-050"];
18
14
  }
19
-
20
15
  return props.theme.palette.white;
21
16
  };
22
-
23
17
  export var IconWrapper = styled.div.withConfig({
24
18
  displayName: "AlertSemanticColorstyles__IconWrapper",
25
19
  componentId: "sc-1rxl2y2-0"
@@ -1,9 +1,6 @@
1
1
  var _excluded = ["type", "iconAlert", "message", "withLink", "withEmphasis", "hoverButton", "disabled", "customIcon"];
2
-
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
4
-
5
3
  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
-
7
4
  import React, { useMemo } from 'react';
8
5
  import Icon, { Check3M, WarningFillM, InfoFillM } from '@synerise/ds-icon';
9
6
  import * as S from './IconAlert.styles';
@@ -13,19 +10,17 @@ var ICONS = {
13
10
  warning: /*#__PURE__*/React.createElement(WarningFillM, null),
14
11
  info: /*#__PURE__*/React.createElement(InfoFillM, null)
15
12
  };
16
-
17
13
  var IconAlert = function IconAlert(_ref) {
18
14
  var _ref$type = _ref.type,
19
- type = _ref$type === void 0 ? 'warning' : _ref$type,
20
- iconAlert = _ref.iconAlert,
21
- message = _ref.message,
22
- withLink = _ref.withLink,
23
- withEmphasis = _ref.withEmphasis,
24
- hoverButton = _ref.hoverButton,
25
- disabled = _ref.disabled,
26
- customIcon = _ref.customIcon,
27
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
28
-
15
+ type = _ref$type === void 0 ? 'warning' : _ref$type,
16
+ iconAlert = _ref.iconAlert,
17
+ message = _ref.message,
18
+ withLink = _ref.withLink,
19
+ withEmphasis = _ref.withEmphasis,
20
+ hoverButton = _ref.hoverButton,
21
+ disabled = _ref.disabled,
22
+ customIcon = _ref.customIcon,
23
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
29
24
  var icon = useMemo(function () {
30
25
  return ICONS[type];
31
26
  }, [type]);
@@ -38,5 +33,4 @@ var IconAlert = function IconAlert(_ref) {
38
33
  component: icon
39
34
  })), 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)));
40
35
  };
41
-
42
36
  export default IconAlert;
@@ -7,11 +7,10 @@ var ICONS = {
7
7
  warning: /*#__PURE__*/React.createElement(WarningFillM, null),
8
8
  info: /*#__PURE__*/React.createElement(InfoFillM, null)
9
9
  };
10
-
11
10
  var InlineAlert = function InlineAlert(_ref) {
12
11
  var _ref$type = _ref.type,
13
- type = _ref$type === void 0 ? 'warning' : _ref$type,
14
- message = _ref.message;
12
+ type = _ref$type === void 0 ? 'warning' : _ref$type,
13
+ message = _ref.message;
15
14
  var icon = useMemo(function () {
16
15
  return ICONS[type];
17
16
  }, [type]);
@@ -22,5 +21,4 @@ var InlineAlert = function InlineAlert(_ref) {
22
21
  component: icon
23
22
  }), /*#__PURE__*/React.createElement(S.Message, null, message));
24
23
  };
25
-
26
24
  export default InlineAlert;
@@ -1,23 +1,13 @@
1
1
  var _excluded = ["type", "className", "message", "icon", "onClick", "onClose", "closeIconClassName", "placement"];
2
-
3
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
4
-
5
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
-
7
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
-
9
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
-
11
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
12
-
13
7
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
-
15
8
  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; }
16
-
17
9
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
18
-
19
10
  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); }); }; }
20
-
21
11
  import React from 'react';
22
12
  import * as ReactDOM from 'react-dom';
23
13
  import { notification } from 'antd';
@@ -25,6 +15,7 @@ import "antd/lib/notification/style/index.css";
25
15
  import Button from '@synerise/ds-button';
26
16
  import Icon, { UserAddM, CloseM } from '@synerise/ds-icon';
27
17
  import * as S from './Notification.styles';
18
+
28
19
  /**
29
20
  * Typings for using better autocompletion for defining an argument for `notificationOpen`'s message property.
30
21
  */
@@ -35,13 +26,13 @@ import * as S from './Notification.styles';
35
26
  */
36
27
  export function Notification(_ref) {
37
28
  var buttonText = _ref.buttonText,
38
- _ref$children = _ref.children,
39
- children = _ref$children === void 0 ? undefined : _ref$children,
40
- onButtonClick = _ref.onButtonClick,
41
- onClose = _ref.onClose,
42
- icon = _ref.icon,
43
- _ref$closeIconClassNa = _ref.closeIconClassName,
44
- closeIconClassName = _ref$closeIconClassNa === void 0 ? 'ds-close-icon' : _ref$closeIconClassNa;
29
+ _ref$children = _ref.children,
30
+ children = _ref$children === void 0 ? undefined : _ref$children,
31
+ onButtonClick = _ref.onButtonClick,
32
+ onClose = _ref.onClose,
33
+ icon = _ref.icon,
34
+ _ref$closeIconClassNa = _ref.closeIconClassName,
35
+ closeIconClassName = _ref$closeIconClassNa === void 0 ? 'ds-close-icon' : _ref$closeIconClassNa;
45
36
  return /*#__PURE__*/React.createElement(S.NotificationsContainer, null, /*#__PURE__*/React.createElement(S.TextLabel, null, children), (buttonText || onClose) && /*#__PURE__*/React.createElement(S.Shrink, null, buttonText && /*#__PURE__*/React.createElement(Button, {
46
37
  type: "primary",
47
38
  mode: "icon-label",
@@ -57,6 +48,7 @@ export function Notification(_ref) {
57
48
  component: /*#__PURE__*/React.createElement(CloseM, null)
58
49
  }))));
59
50
  }
51
+
60
52
  /**
61
53
  * creates a div, mounts it in getContainer and returns reference to it.
62
54
  * This is a helper function for creating a getContainer-compatible element,
@@ -65,16 +57,14 @@ export function Notification(_ref) {
65
57
  * @param @contextHolder notification's hook api context
66
58
  * @param @getContainer where to mount styled wrapper; can be a ref=React.useRef, <div ref={ref}/>
67
59
  **/
68
-
69
60
  export function mountInstance(contextHolder, _temp) {
70
61
  var _ref2 = _temp === void 0 ? {} : _temp,
71
- _ref2$getContainer = _ref2.getContainer,
72
- getContainer = _ref2$getContainer === void 0 ? function () {
73
- return document.body;
74
- } : _ref2$getContainer,
75
- _ref2$className = _ref2.className,
76
- className = _ref2$className === void 0 ? 'popup-container' : _ref2$className;
77
-
62
+ _ref2$getContainer = _ref2.getContainer,
63
+ getContainer = _ref2$getContainer === void 0 ? function () {
64
+ return document.body;
65
+ } : _ref2$getContainer,
66
+ _ref2$className = _ref2.className,
67
+ className = _ref2$className === void 0 ? 'popup-container' : _ref2$className;
78
68
  var element = document.createElement('div');
79
69
  element.setAttribute('class', className);
80
70
  var cont = getContainer();
@@ -85,13 +75,12 @@ export function mountInstance(contextHolder, _temp) {
85
75
  return resolve(element);
86
76
  });
87
77
  });
88
-
89
78
  var cleanUpFunction = function cleanUpFunction() {
90
79
  cont.removeChild(element);
91
80
  };
92
-
93
81
  return [renderPromsie, element, cleanUpFunction];
94
82
  }
83
+
95
84
  /**
96
85
  * Function for showing new notifications.
97
86
  * It requires proper context to be injected (see `notificationApi.useNotification`)
@@ -114,23 +103,18 @@ export function mountInstance(contextHolder, _temp) {
114
103
  * ReactDOM.render(<App/>, document.querySelector('#app'));
115
104
  * ```
116
105
  */
117
-
118
106
  export function notificationOpen(_x, _x2, _x3) {
119
107
  return _notificationOpen.apply(this, arguments);
120
108
  }
121
-
122
109
  function _notificationOpen() {
123
- _notificationOpen = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref3, notificationApi, contextHolder) {
110
+ _notificationOpen = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref3, notificationApi, contextHolder) {
124
111
  var _ref3$type, type, _ref3$className, className, message, icon, onClick, onClose, _ref3$closeIconClassN, closeIconClassName, _ref3$placement, placement, props, api, el, containerPromise, _mountInstance, getContainer, maybeCloseClick;
125
-
126
112
  return _regeneratorRuntime().wrap(function _callee$(_context) {
127
113
  while (1) switch (_context.prev = _context.next) {
128
114
  case 0:
129
115
  _ref3$type = _ref3.type, type = _ref3$type === void 0 ? 'info' : _ref3$type, _ref3$className = _ref3.className, className = _ref3$className === void 0 ? 'popup-container' : _ref3$className, message = _ref3.message, icon = _ref3.icon, onClick = _ref3.onClick, onClose = _ref3.onClose, _ref3$closeIconClassN = _ref3.closeIconClassName, closeIconClassName = _ref3$closeIconClassN === void 0 ? 'ds-close-icon' : _ref3$closeIconClassN, _ref3$placement = _ref3.placement, placement = _ref3$placement === void 0 ? 'bottom' : _ref3$placement, props = _objectWithoutPropertiesLoose(_ref3, _excluded);
130
116
  api = notificationApi || notification; // TODO: check if context is actually available
131
-
132
117
  el = document.body.querySelector("." + className);
133
-
134
118
  if (!el) {
135
119
  _mountInstance = mountInstance(contextHolder, {
136
120
  className: className
@@ -138,35 +122,26 @@ function _notificationOpen() {
138
122
  containerPromise = _mountInstance[0];
139
123
  el = _mountInstance[1];
140
124
  }
141
-
142
125
  _context.next = 6;
143
126
  return containerPromise;
144
-
145
127
  case 6:
146
128
  getContainer = function getContainer() {
147
129
  var _el;
148
-
149
130
  return (_el = el) == null ? void 0 : _el.querySelector('div>div,.NotificationsBottomPlacementWrapper>.NotificationsWrapper');
150
131
  };
151
132
  /** a workaround for handling close clicks,
152
133
  * since there's no way for injecting other element triggering onClose listener.
153
134
  * It is set as a listener for all the clicks
154
135
  * and fires onClose when close-icon was clicked */
155
-
156
-
157
136
  maybeCloseClick = function maybeCloseClick(ev) {
158
137
  var _ev$currentTarget;
159
-
160
138
  var isClickedElementChildOfCloseIcon = ev.target.closest("." + closeIconClassName);
161
139
  var isThisCloseIcon = ev == null || (_ev$currentTarget = ev.currentTarget) == null ? void 0 : _ev$currentTarget.classList.contains("" + closeIconClassName);
162
-
163
140
  if (isClickedElementChildOfCloseIcon || isThisCloseIcon) {
164
141
  return onClose && onClose();
165
142
  }
166
-
167
143
  return onClick && onClick();
168
144
  };
169
-
170
145
  return _context.abrupt("return", api.open(_objectSpread({
171
146
  message: message,
172
147
  type: type,
@@ -176,7 +151,6 @@ function _notificationOpen() {
176
151
  onClick: maybeCloseClick,
177
152
  bottom: 16
178
153
  }, props)));
179
-
180
154
  case 9:
181
155
  case "end":
182
156
  return _context.stop();
@@ -185,5 +159,4 @@ function _notificationOpen() {
185
159
  }));
186
160
  return _notificationOpen.apply(this, arguments);
187
161
  }
188
-
189
162
  export default Notification;
@@ -5,7 +5,6 @@ export var NotificationsContainer = styled.div.withConfig({
5
5
  componentId: "sc-1ke52b0-0"
6
6
  })(["background-color:", ";color:white;min-width:588px;padding:8px 8px 8px 16px;display:flex;align-items:center;width:100px;min-height:50px;"], function (props) {
7
7
  var _palette;
8
-
9
8
  return (_palette = ((props == null ? void 0 : props.theme) || theme).palette) == null ? void 0 : _palette['grey-800'];
10
9
  });
11
10
  export var Shrink = styled.div.withConfig({
@@ -21,11 +20,9 @@ export var NotificationsWrapper = styled.div.withConfig({
21
20
  componentId: "sc-1ke52b0-3"
22
21
  })(["& .ant-notification-bottom .ant-notification-hook-holder{margin:0;&:not(:first-child){margin-top:8px;}}& .ant-notification.ant-notification-bottom{right:0;left:0;margin:0 auto;width:588px;bottom:8px;}& .ant-notification-hook-holder{background-color:transparent;box-shadow:none;width:588px;}& .ant-notification-notice{padding:0;background-color:transparent;margin:unset;}& .ant-notification-notice{background-color:transparent;width:588px;border-radius:6px;box-shadow:0 16px 32px 0 ", "1a,0 8px 16px 0 ", "1a;}.ant-notification-notice-icon{display:none;}.ant-notification-notice-with-icon{background-color:transparent;}.ant-notification-notice-close{display:none;}& .ant-notification-notice-message,& .ant-notification-notice-closable .ant-notification-notice-message{padding-right:0;}& .ant-notification-notice-message,& .ant-notification-notice-with-icon .ant-notification-notice-message{margin-left:0;margin-bottom:0;}}"], function (props) {
23
22
  var _palette2;
24
-
25
23
  return (_palette2 = ((props == null ? void 0 : props.theme) || theme).palette) == null ? void 0 : _palette2['grey-900'];
26
24
  }, function (props) {
27
25
  var _palette3;
28
-
29
26
  return (_palette3 = ((props == null ? void 0 : props.theme) || theme).palette) == null ? void 0 : _palette3['grey-900'];
30
27
  });
31
28
  export default {
@@ -11,25 +11,24 @@ var ICONS = {
11
11
  entity: /*#__PURE__*/React.createElement(NotificationsReceiveM, null)
12
12
  };
13
13
  var DEFAULT_ICON = /*#__PURE__*/React.createElement(WarningFillM, null);
14
-
15
14
  var SectionMessage = function SectionMessage(_ref) {
16
15
  var icon = _ref.icon,
17
- type = _ref.type,
18
- message = _ref.message,
19
- description = _ref.description,
20
- showMoreLabel = _ref.showMoreLabel,
21
- onShowMore = _ref.onShowMore,
22
- onClose = _ref.onClose,
23
- suffixel = _ref.suffixel,
24
- moreButtons = _ref.moreButtons,
25
- withEmphasis = _ref.withEmphasis,
26
- withLink = _ref.withLink,
27
- unorderedList = _ref.unorderedList,
28
- color = _ref.color,
29
- withClose = _ref.withClose,
30
- customColor = _ref.customColor,
31
- customColorIcon = _ref.customColorIcon,
32
- customIcon = _ref.customIcon;
16
+ type = _ref.type,
17
+ message = _ref.message,
18
+ description = _ref.description,
19
+ showMoreLabel = _ref.showMoreLabel,
20
+ onShowMore = _ref.onShowMore,
21
+ onClose = _ref.onClose,
22
+ suffixel = _ref.suffixel,
23
+ moreButtons = _ref.moreButtons,
24
+ withEmphasis = _ref.withEmphasis,
25
+ withLink = _ref.withLink,
26
+ unorderedList = _ref.unorderedList,
27
+ color = _ref.color,
28
+ withClose = _ref.withClose,
29
+ customColor = _ref.customColor,
30
+ customColorIcon = _ref.customColorIcon,
31
+ customIcon = _ref.customIcon;
33
32
  var renderMessage = useMemo(function () {
34
33
  return /*#__PURE__*/React.createElement(S.AlertContent, {
35
34
  withLink: withLink
@@ -42,11 +41,9 @@ var SectionMessage = function SectionMessage(_ref) {
42
41
  if (ICONS[type]) return ICONS[type];
43
42
  return DEFAULT_ICON;
44
43
  }, [icon, type]);
45
-
46
44
  var handleClose = function handleClose() {
47
45
  onClose && onClose();
48
46
  };
49
-
50
47
  return /*#__PURE__*/React.createElement(S.Container, {
51
48
  "data-testid": "ds-section-message-" + type,
52
49
  color: color,
@@ -62,5 +59,4 @@ var SectionMessage = function SectionMessage(_ref) {
62
59
  component: /*#__PURE__*/React.createElement(CloseM, null)
63
60
  })))));
64
61
  };
65
-
66
62
  export default SectionMessage;
@@ -9,26 +9,25 @@ var ICONS = {
9
9
  informative: /*#__PURE__*/React.createElement(InfoFillM, null)
10
10
  };
11
11
  var DEFAULT_ICON = /*#__PURE__*/React.createElement(WarningFillM, null);
12
-
13
12
  var Toast = function Toast(_ref) {
14
13
  var icon = _ref.icon,
15
- type = _ref.type,
16
- message = _ref.message,
17
- description = _ref.description,
18
- expander = _ref.expander,
19
- expandedContent = _ref.expandedContent,
20
- color = _ref.color,
21
- withClose = _ref.withClose,
22
- customColor = _ref.customColor,
23
- customColorIcon = _ref.customColorIcon,
24
- customIcon = _ref.customIcon,
25
- colorIcon = _ref.colorIcon,
26
- customColorText = _ref.customColorText,
27
- expanded = _ref.expanded,
28
- onExpand = _ref.onExpand,
29
- onCloseClick = _ref.onCloseClick,
30
- button = _ref.button,
31
- className = _ref.className;
14
+ type = _ref.type,
15
+ message = _ref.message,
16
+ description = _ref.description,
17
+ expander = _ref.expander,
18
+ expandedContent = _ref.expandedContent,
19
+ color = _ref.color,
20
+ withClose = _ref.withClose,
21
+ customColor = _ref.customColor,
22
+ customColorIcon = _ref.customColorIcon,
23
+ customIcon = _ref.customIcon,
24
+ colorIcon = _ref.colorIcon,
25
+ customColorText = _ref.customColorText,
26
+ expanded = _ref.expanded,
27
+ onExpand = _ref.onExpand,
28
+ onCloseClick = _ref.onCloseClick,
29
+ button = _ref.button,
30
+ className = _ref.className;
32
31
  var hasToastContent = button || description || expandedContent;
33
32
  var toastContent = hasToastContent && /*#__PURE__*/React.createElement(S.AlertContent, {
34
33
  hasBottomMargin: Boolean(button || description || expandedContent && expanded)
@@ -80,5 +79,4 @@ var Toast = function Toast(_ref) {
80
79
  component: /*#__PURE__*/React.createElement(CloseM, null)
81
80
  }))), toastContent));
82
81
  };
83
-
84
82
  export default Toast;
@@ -2,71 +2,54 @@ import styled, { keyframes } from 'styled-components';
2
2
  import { hexToRgba } from '@synerise/ds-utils';
3
3
  import { UnorderedList } from '@synerise/ds-unordered-list/dist/Unordered-list.styles';
4
4
  import 'animate.css';
5
-
6
5
  var getWidth = function getWidth(hasClose, hasExpander) {
7
6
  if (hasClose && hasExpander) {
8
7
  return '72px';
9
8
  }
10
-
11
9
  if (hasClose || hasExpander) {
12
10
  return '48px';
13
11
  }
14
-
15
12
  return '24px';
16
13
  };
17
-
18
14
  var getColorIcon = function getColorIcon(props) {
19
15
  switch (props.colorIcon) {
20
16
  case 'white':
21
17
  return props.theme.palette.white;
22
-
23
18
  case 'grey':
24
19
  return props.theme.palette['grey-600'];
25
-
26
20
  case 'black':
27
21
  return props.theme.palette['grey-800'];
28
-
29
22
  default:
30
23
  return props.theme.palette['blue-600'];
31
24
  }
32
25
  };
33
-
34
26
  var getColorText = function getColorText(props) {
35
27
  switch (props.color) {
36
28
  case 'red':
37
29
  return props.theme.palette.white;
38
-
39
30
  case 'green':
40
31
  return props.theme.palette.white;
41
-
42
32
  case 'yellow':
43
33
  return props.theme.palette['grey-800'];
44
-
45
34
  default:
46
35
  return props.theme.palette['grey-600'];
47
36
  }
48
37
  };
49
-
50
38
  var getColorBackground = function getColorBackground(props) {
51
39
  switch (props.color) {
52
40
  case 'grey':
53
41
  return props.theme.palette.white;
54
-
55
42
  case 'blue':
56
43
  return props.theme.palette['blue-050'];
57
-
58
44
  case 'red':
59
45
  return props.theme.palette['red-500'];
60
-
61
46
  default:
62
47
  return props.theme.palette[props.color + "-600"];
63
48
  }
64
49
  };
65
-
66
50
  var openingAnimation = function openingAnimation() {
67
51
  return keyframes(["0%{height:0%;opacity:0;}100%{height:100%;opacity:1;}"]);
68
52
  };
69
-
70
53
  export var closingAnimation = function closingAnimation() {
71
54
  return keyframes(["0%{height:100%;opacity:1;}100%{height:0%;opacity:0;}"]);
72
55
  };
package/dist/index.js CHANGED
@@ -12,11 +12,11 @@ export var AlertStyles = {
12
12
  Toast: ToastStyles,
13
13
  IconAlert: IconAlertStyles
14
14
  };
15
+
15
16
  /**
16
17
  * notificationApi is required for properly handling injecting ContextApi for styling and locales.
17
18
  * It's a proxy to `antd`'s `notification` module.
18
19
  */
19
-
20
20
  export var notificationsApi = notification;
21
21
  export { default as Notification } from './Notification/Notification';
22
22
  export { notificationOpen } from './Notification/Notification';
@@ -26,7 +26,7 @@ export { default as IconAlert } from './IconAlert/IconAlert';
26
26
  export { default as InlineAlert } from './InlineAlert/InlineAlert';
27
27
  export { default as AlertInfo } from './AlertInfo/AlertInfo';
28
28
  // @deprecated use AlertStyles.Alert instead
29
- export { AlertMessage } from './Alert.styles'; // @deprecated use AlertStyles.Notification instead
30
-
29
+ export { AlertMessage } from './Alert.styles';
30
+ // @deprecated use AlertStyles.Notification instead
31
31
  import * as _S from './Notification/Notification.styles';
32
32
  export { _S as S };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-alert",
3
- "version": "0.8.38",
3
+ "version": "0.8.40",
4
4
  "description": "Alert UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,9 +34,9 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^0.21.19",
38
- "@synerise/ds-icon": "^0.67.0",
39
- "@synerise/ds-unordered-list": "^0.3.14",
37
+ "@synerise/ds-button": "^0.21.21",
38
+ "@synerise/ds-icon": "^0.68.0",
39
+ "@synerise/ds-unordered-list": "^0.3.16",
40
40
  "@synerise/ds-utils": "^0.31.2",
41
41
  "animate.css": "^4.1.1",
42
42
  "react-animate-height": "^2.0.23",
@@ -48,5 +48,5 @@
48
48
  "react": ">=16.9.0 <= 17.0.2",
49
49
  "styled-components": "5.0.1"
50
50
  },
51
- "gitHead": "05f083c767e2cec3c2f91c9475aee89852a77d6c"
51
+ "gitHead": "9ebd107163650754a5f55680d62d30812d740084"
52
52
  }