@synerise/ds-alert 1.1.44 → 1.1.46
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 +8 -0
- package/dist/Alert.d.ts +2 -3
- package/dist/Alert.js +31 -36
- package/dist/Alert.styles.d.ts +8 -8
- package/dist/Alert.styles.js +25 -24
- package/dist/Alert.types.d.ts +3 -3
- package/dist/Alert.types.js +1 -1
- package/dist/AlertInfo/AlertInfo.d.ts +2 -2
- package/dist/AlertInfo/AlertInfo.js +35 -44
- package/dist/AlertInfo/AlertInfo.styles.d.ts +6 -6
- package/dist/AlertInfo/AlertInfo.styles.js +25 -33
- package/dist/AlertInfo/AlertInfo.types.d.ts +1 -1
- package/dist/AlertInfo/AlertInfo.types.js +30 -8
- package/dist/BroadcastBar/BroadcastBar.d.ts +1 -1
- package/dist/BroadcastBar/BroadcastBar.js +5 -5
- package/dist/ColorSemantic/AlertSemanticColor.d.ts +2 -2
- package/dist/ColorSemantic/AlertSemanticColor.js +25 -33
- package/dist/ColorSemantic/AlertSemanticColor.styles.d.ts +3 -3
- package/dist/ColorSemantic/AlertSemanticColor.styles.js +16 -18
- package/dist/ColorSemantic/AlertSemanticColor.types.d.ts +1 -1
- package/dist/ColorSemantic/AlertSemanticColor.types.js +1 -1
- package/dist/IconAlert/IconAlert.d.ts +1 -1
- package/dist/IconAlert/IconAlert.js +5 -4
- package/dist/InlineAlert/InlineAlert.d.ts +2 -2
- package/dist/InlineAlert/InlineAlert.js +21 -24
- package/dist/InlineAlert/InlineAlert.styles.d.ts +3 -3
- package/dist/InlineAlert/InlineAlert.styles.js +13 -15
- package/dist/InlineAlert/InlineAlert.types.d.ts +1 -1
- package/dist/InlineAlert/InlineAlert.types.js +1 -1
- package/dist/SectionMessage/SectionMessage.d.ts +1 -1
- package/dist/SectionMessage/SectionMessage.js +5 -4
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/Toast.js +53 -77
- package/dist/Toast/Toast.styles.d.ts +20 -21
- package/dist/Toast/Toast.styles.js +80 -114
- package/dist/Toast/Toast.types.d.ts +2 -2
- package/dist/Toast/Toast.types.js +1 -1
- package/dist/assets/style/index-tn0RQdqM.css +0 -0
- package/dist/index.js +24 -19
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +11 -11
|
@@ -1,173 +1,139 @@
|
|
|
1
|
-
import
|
|
2
|
-
import styled, { keyframes } from
|
|
3
|
-
import { UnorderedList } from
|
|
4
|
-
import { hexToRgba } from
|
|
5
|
-
|
|
1
|
+
import "animate.css";
|
|
2
|
+
import styled, { keyframes } from "styled-components";
|
|
3
|
+
import { UnorderedList } from "@synerise/ds-unordered-list/dist/Unordered-list.styles";
|
|
4
|
+
import { hexToRgba } from "@synerise/ds-utils";
|
|
5
|
+
const getWidth = (hasClose, hasExpander) => {
|
|
6
6
|
if (hasClose && hasExpander) {
|
|
7
|
-
return
|
|
7
|
+
return "72px";
|
|
8
8
|
}
|
|
9
9
|
if (hasClose || hasExpander) {
|
|
10
|
-
return
|
|
10
|
+
return "48px";
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return "24px";
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
const getColorIcon = (props) => {
|
|
15
15
|
switch (props.colorIcon) {
|
|
16
|
-
case
|
|
16
|
+
case "white":
|
|
17
17
|
return props.theme.palette.white;
|
|
18
|
-
case
|
|
19
|
-
return props.theme.palette[
|
|
20
|
-
case
|
|
21
|
-
return props.theme.palette[
|
|
18
|
+
case "grey":
|
|
19
|
+
return props.theme.palette["grey-600"];
|
|
20
|
+
case "black":
|
|
21
|
+
return props.theme.palette["grey-800"];
|
|
22
22
|
default:
|
|
23
|
-
return props.theme.palette[
|
|
23
|
+
return props.theme.palette["blue-600"];
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
const getColorText = (props) => {
|
|
27
27
|
switch (props.color) {
|
|
28
|
-
case
|
|
28
|
+
case "red":
|
|
29
29
|
return props.theme.palette.white;
|
|
30
|
-
case
|
|
30
|
+
case "green":
|
|
31
31
|
return props.theme.palette.white;
|
|
32
|
-
case
|
|
33
|
-
return props.theme.palette[
|
|
32
|
+
case "yellow":
|
|
33
|
+
return props.theme.palette["grey-800"];
|
|
34
34
|
default:
|
|
35
|
-
return props.theme.palette[
|
|
35
|
+
return props.theme.palette["grey-600"];
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
const getColorBackground = (props) => {
|
|
39
39
|
switch (props.color) {
|
|
40
|
-
case
|
|
40
|
+
case "grey":
|
|
41
41
|
return props.theme.palette.white;
|
|
42
|
-
case
|
|
43
|
-
return props.theme.palette[
|
|
44
|
-
case
|
|
45
|
-
return props.theme.palette[
|
|
42
|
+
case "blue":
|
|
43
|
+
return props.theme.palette["blue-050"];
|
|
44
|
+
case "red":
|
|
45
|
+
return props.theme.palette["red-500"];
|
|
46
46
|
default:
|
|
47
|
-
return props.theme.palette[props.color
|
|
47
|
+
return props.theme.palette[`${props.color}-600`];
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export var closingAnimation = function closingAnimation() {
|
|
54
|
-
return keyframes(["0%{height:100%;opacity:1;}100%{height:0%;opacity:0;}"]);
|
|
55
|
-
};
|
|
56
|
-
export var AlertContent = styled.div.withConfig({
|
|
50
|
+
const openingAnimation = () => keyframes(["0%{height:0%;opacity:0;}100%{height:100%;opacity:1;}"]);
|
|
51
|
+
const closingAnimation = () => keyframes(["0%{height:100%;opacity:1;}100%{height:0%;opacity:0;}"]);
|
|
52
|
+
const AlertContent = /* @__PURE__ */ styled.div.withConfig({
|
|
57
53
|
displayName: "Toaststyles__AlertContent",
|
|
58
54
|
componentId: "sc-q5tn0-0"
|
|
59
|
-
})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin-right:24px;", " ", "{margin-bottom:8px;}"],
|
|
60
|
-
|
|
61
|
-
}, UnorderedList);
|
|
62
|
-
export var AllContent = styled.div.withConfig({
|
|
55
|
+
})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:center;margin-right:24px;", " ", "{margin-bottom:8px;}"], (props) => props.hasBottomMargin && "margin-bottom:16px;", UnorderedList);
|
|
56
|
+
const AllContent = /* @__PURE__ */ styled.div.withConfig({
|
|
63
57
|
displayName: "Toaststyles__AllContent",
|
|
64
58
|
componentId: "sc-q5tn0-1"
|
|
65
59
|
})(["display:flex;color:inherit;"]);
|
|
66
|
-
|
|
60
|
+
const IconWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
67
61
|
displayName: "Toaststyles__IconWrapper",
|
|
68
62
|
componentId: "sc-q5tn0-2"
|
|
69
|
-
})(["margin:12px;display:flex;svg{color:", ";fill:", ";}"],
|
|
70
|
-
|
|
71
|
-
}, function (props) {
|
|
72
|
-
return props.customColorIcon ? props.theme.palette[props.customColorIcon + "-600"] : getColorIcon(props);
|
|
73
|
-
});
|
|
74
|
-
export var IconCloseWrapper = styled.div.withConfig({
|
|
63
|
+
})(["margin:12px;display:flex;svg{color:", ";fill:", ";}"], (props) => props.customColorIcon ? props.theme.palette[`${props.customColorIcon}-600`] : getColorIcon(props), (props) => props.customColorIcon ? props.theme.palette[`${props.customColorIcon}-600`] : getColorIcon(props));
|
|
64
|
+
const IconCloseWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
75
65
|
displayName: "Toaststyles__IconCloseWrapper",
|
|
76
66
|
componentId: "sc-q5tn0-3"
|
|
77
|
-
})(["cursor:pointer;svg{fill:", ";}"],
|
|
78
|
-
|
|
79
|
-
});
|
|
80
|
-
export var IconExpanderWrapper = styled.div.withConfig({
|
|
67
|
+
})(["cursor:pointer;svg{fill:", ";}"], (props) => props.customColorText ? props.theme.palette[`${props.customColorText}-600`] : getColorText(props));
|
|
68
|
+
const IconExpanderWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
81
69
|
displayName: "Toaststyles__IconExpanderWrapper",
|
|
82
70
|
componentId: "sc-q5tn0-4"
|
|
83
|
-
})(["cursor:pointer;svg{fill:", ";transition:transform 0.1s linear;transform:rotateZ(", ");}"],
|
|
84
|
-
|
|
85
|
-
}, function (props) {
|
|
86
|
-
return props.expanded ? '180deg' : '0deg';
|
|
87
|
-
});
|
|
88
|
-
export var ButtonWrapper = styled.div.withConfig({
|
|
71
|
+
})(["cursor:pointer;svg{fill:", ";transition:transform 0.1s linear;transform:rotateZ(", ");}"], (props) => props.customColorText ? props.theme.palette[`${props.customColorText}-600`] : getColorText(props), (props) => props.expanded ? "180deg" : "0deg");
|
|
72
|
+
const ButtonWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
89
73
|
displayName: "Toaststyles__ButtonWrapper",
|
|
90
74
|
componentId: "sc-q5tn0-5"
|
|
91
75
|
})(["position:absolute;right:12px;top:12px;display:flex;"]);
|
|
92
|
-
|
|
76
|
+
const FirstButtonWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
93
77
|
displayName: "Toaststyles__FirstButtonWrapper",
|
|
94
78
|
componentId: "sc-q5tn0-6"
|
|
95
79
|
})(["margin-right:8px;"]);
|
|
96
|
-
|
|
80
|
+
const NumberWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
97
81
|
displayName: "Toaststyles__NumberWrapper",
|
|
98
82
|
componentId: "sc-q5tn0-7"
|
|
99
|
-
})(["margin-left:4px;color:inherit;opacity:0.6;cursor:pointer;&:hover{background-image:linear-gradient( to right,", " 20%,rgba(255,255,255,0) 10% );background-color:transparent;background-position:bottom left;background-size:5px 1px;background-repeat:repeat-x;opacity:1;color:", ";}"],
|
|
100
|
-
|
|
101
|
-
}, function (props) {
|
|
102
|
-
return props.customColorText ? props.theme.palette[props.customColorText + "-600"] : getColorText(props);
|
|
103
|
-
});
|
|
104
|
-
export var ListWrapper = styled.div.withConfig({
|
|
83
|
+
})(["margin-left:4px;color:inherit;opacity:0.6;cursor:pointer;&:hover{background-image:linear-gradient( to right,", " 20%,rgba(255,255,255,0) 10% );background-color:transparent;background-position:bottom left;background-size:5px 1px;background-repeat:repeat-x;opacity:1;color:", ";}"], (props) => props.theme.palette["grey-400"], (props) => props.customColorText ? props.theme.palette[`${props.customColorText}-600`] : getColorText(props));
|
|
84
|
+
const ListWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
105
85
|
displayName: "Toaststyles__ListWrapper",
|
|
106
86
|
componentId: "sc-q5tn0-8"
|
|
107
|
-
})(["display:flex;visibility:", ";height:", ";margin-top:", ";"],
|
|
108
|
-
|
|
109
|
-
}, function (props) {
|
|
110
|
-
return props.visible ? 'auto' : '0';
|
|
111
|
-
}, function (props) {
|
|
112
|
-
return !props.description && props.visible ? '10px' : '0';
|
|
113
|
-
});
|
|
114
|
-
export var IconOrderWrapper = styled.div.withConfig({
|
|
87
|
+
})(["display:flex;visibility:", ";height:", ";margin-top:", ";"], (props) => props.visible ? "visible" : "hidden", (props) => props.visible ? "auto" : "0", (props) => !props.description && props.visible ? "10px" : "0");
|
|
88
|
+
const IconOrderWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
115
89
|
displayName: "Toaststyles__IconOrderWrapper",
|
|
116
90
|
componentId: "sc-q5tn0-9"
|
|
117
|
-
})(["visibility:hidden;margin:-4px 0;svg{fill:", ";}&:hover{svg{fill:", ";cursor:pointer;}}"],
|
|
118
|
-
|
|
119
|
-
}, function (props) {
|
|
120
|
-
return props.theme.palette['blue-600'];
|
|
121
|
-
});
|
|
122
|
-
export var OrderWrapper = styled.div.withConfig({
|
|
91
|
+
})(["visibility:hidden;margin:-4px 0;svg{fill:", ";}&:hover{svg{fill:", ";cursor:pointer;}}"], (props) => props.customColorText ? props.theme.palette[`${props.customColorText}-600`] : getColorText(props), (props) => props.theme.palette["blue-600"]);
|
|
92
|
+
const OrderWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
123
93
|
displayName: "Toaststyles__OrderWrapper",
|
|
124
94
|
componentId: "sc-q5tn0-10"
|
|
125
|
-
})(["display:flex;color:", ";&:hover{", "{visibility:visible;}", "{background-image:linear-gradient( to right,", " 20%,rgba(255,255,255,0) 10% );background-color:transparent;background-position:bottom left;background-size:5px 1px;background-repeat:repeat-x;opacity:1;color:", ";}}"],
|
|
126
|
-
|
|
127
|
-
}, IconOrderWrapper, NumberWrapper, function (props) {
|
|
128
|
-
return props.customColorText ? props.theme.palette[props.customColorText + "-600"] : getColorText(props);
|
|
129
|
-
}, function (props) {
|
|
130
|
-
return props.customColorText ? props.theme.palette[props.customColorText + "-600"] : getColorText(props);
|
|
131
|
-
});
|
|
132
|
-
export var Wrapper = styled.div.withConfig({
|
|
95
|
+
})(["display:flex;color:", ";&:hover{", "{visibility:visible;}", "{background-image:linear-gradient( to right,", " 20%,rgba(255,255,255,0) 10% );background-color:transparent;background-position:bottom left;background-size:5px 1px;background-repeat:repeat-x;opacity:1;color:", ";}}"], (props) => props.customColorText ? props.theme.palette[`${props.customColorText}-600`] : getColorText(props), IconOrderWrapper, NumberWrapper, (props) => props.customColorText ? props.theme.palette[`${props.customColorText}-600`] : getColorText(props), (props) => props.customColorText ? props.theme.palette[`${props.customColorText}-600`] : getColorText(props));
|
|
96
|
+
const Wrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
133
97
|
displayName: "Toaststyles__Wrapper",
|
|
134
98
|
componentId: "sc-q5tn0-11"
|
|
135
|
-
})(["color:", ";"],
|
|
136
|
-
|
|
137
|
-
});
|
|
138
|
-
export var AnimationContainer = styled.div.withConfig({
|
|
99
|
+
})(["color:", ";"], (props) => props.theme.palette["grey-050"]);
|
|
100
|
+
const AnimationContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
139
101
|
displayName: "Toaststyles__AnimationContainer",
|
|
140
102
|
componentId: "sc-q5tn0-12"
|
|
141
|
-
})(["animation:", " 0.5s ease-in-out 0s 1;"],
|
|
142
|
-
|
|
143
|
-
});
|
|
144
|
-
export var Container = styled.div.withConfig({
|
|
103
|
+
})(["animation:", " 0.5s ease-in-out 0s 1;"], (props) => props.show ? openingAnimation() : closingAnimation());
|
|
104
|
+
const Container = /* @__PURE__ */ styled.div.withConfig({
|
|
145
105
|
displayName: "Toaststyles__Container",
|
|
146
106
|
componentId: "sc-q5tn0-13"
|
|
147
|
-
})(["display:flex;flex-direction:row;max-width:500px;align-items:flex-start;justify-content:center;background-color:", ";border-radius:4px;box-shadow:", ";"],
|
|
148
|
-
|
|
149
|
-
}, function (props) {
|
|
150
|
-
return props.color ? "0px 16px 32px 5px " + hexToRgba(props.theme.palette['grey-900'], 0.2) : 'none';
|
|
151
|
-
});
|
|
152
|
-
export var WrapperSectionMessage = styled.div.withConfig({
|
|
107
|
+
})(["display:flex;flex-direction:row;max-width:500px;align-items:flex-start;justify-content:center;background-color:", ";border-radius:4px;box-shadow:", ";"], (props) => props.customColor ? props.theme.palette[`${props.customColor}-600`] : getColorBackground(props), (props) => props.color ? `0px 16px 32px 5px ${hexToRgba(props.theme.palette["grey-900"], 0.2)}` : "none");
|
|
108
|
+
const WrapperSectionMessage = /* @__PURE__ */ styled.div.withConfig({
|
|
153
109
|
displayName: "Toaststyles__WrapperSectionMessage",
|
|
154
110
|
componentId: "sc-q5tn0-14"
|
|
155
111
|
})(["position:relative;font-size:13px;min-width:0;color:inherit;"]);
|
|
156
|
-
|
|
112
|
+
const AlertMessage = /* @__PURE__ */ styled.div.withConfig({
|
|
157
113
|
displayName: "Toaststyles__AlertMessage",
|
|
158
114
|
componentId: "sc-q5tn0-15"
|
|
159
|
-
})(["font-size:14px;line-height:20px;padding-top:14px;", ";font-weight:500;overflow:hidden;overflow-wrap:break-word;text-overflow:ellipsis;padding-right:", ";color:", ";"],
|
|
160
|
-
|
|
161
|
-
}, function (props) {
|
|
162
|
-
return getWidth(props.hasClose, props.hasExpander);
|
|
163
|
-
}, function (props) {
|
|
164
|
-
return props.customColorText ? props.theme.palette[props.customColorText + "-600"] : getColorText(props);
|
|
165
|
-
});
|
|
166
|
-
export var AlertDescription = styled.div.withConfig({
|
|
115
|
+
})(["font-size:14px;line-height:20px;padding-top:14px;", ";font-weight:500;overflow:hidden;overflow-wrap:break-word;text-overflow:ellipsis;padding-right:", ";color:", ";"], (props) => props.noToastContent && "padding-bottom: 14px;", (props) => getWidth(props.hasClose, props.hasExpander), (props) => props.customColorText ? props.theme.palette[`${props.customColorText}-600`] : getColorText(props));
|
|
116
|
+
const AlertDescription = /* @__PURE__ */ styled.div.withConfig({
|
|
167
117
|
displayName: "Toaststyles__AlertDescription",
|
|
168
118
|
componentId: "sc-q5tn0-16"
|
|
169
|
-
})(["font-size:13px;line-height:1.39;font-weight:normal;overflow:hidden;overflow-wrap:anywhere;text-overflow:ellipsis;padding-bottom:", ";margin-top:2px;color:", ";"],
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
119
|
+
})(["font-size:13px;line-height:1.39;font-weight:normal;overflow:hidden;overflow-wrap:anywhere;text-overflow:ellipsis;padding-bottom:", ";margin-top:2px;color:", ";"], (props) => props.button || props.expandedContent ? "16px" : "0", (props) => props.customColorText ? props.theme.palette[`${props.customColorText}-600`] : getColorText(props));
|
|
120
|
+
export {
|
|
121
|
+
AlertContent,
|
|
122
|
+
AlertDescription,
|
|
123
|
+
AlertMessage,
|
|
124
|
+
AllContent,
|
|
125
|
+
AnimationContainer,
|
|
126
|
+
ButtonWrapper,
|
|
127
|
+
Container,
|
|
128
|
+
FirstButtonWrapper,
|
|
129
|
+
IconCloseWrapper,
|
|
130
|
+
IconExpanderWrapper,
|
|
131
|
+
IconOrderWrapper,
|
|
132
|
+
IconWrapper,
|
|
133
|
+
ListWrapper,
|
|
134
|
+
NumberWrapper,
|
|
135
|
+
OrderWrapper,
|
|
136
|
+
Wrapper,
|
|
137
|
+
WrapperSectionMessage,
|
|
138
|
+
closingAnimation
|
|
139
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AlertProps } from 'antd/lib/alert';
|
|
2
|
+
import { ReactElement, ReactNode } from 'react';
|
|
3
3
|
export type ToastType = 'success' | 'warning' | 'negative' | 'informative' | 'neutral';
|
|
4
4
|
export type CustomColorType = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
|
|
5
5
|
export type ColorType = 'grey' | 'red' | 'green' | 'yellow' | 'blue';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as Alert_styles from "./Alert.styles.js";
|
|
2
|
+
import { AlertMessage } from "./Alert.styles.js";
|
|
3
|
+
import * as Toast_Toast_styles from "./Toast/Toast.styles.js";
|
|
4
|
+
import { default as default2 } from "./Alert.js";
|
|
5
|
+
import { default as default3 } from "@synerise/ds-section-message";
|
|
6
|
+
import { default as default4 } from "./Toast/Toast.js";
|
|
7
|
+
import { default as default5 } from "@synerise/ds-broadcast-bar";
|
|
8
|
+
import { default as default6 } from "@synerise/ds-inline-alert";
|
|
9
|
+
import { default as default7 } from "./InlineAlert/InlineAlert.js";
|
|
10
|
+
import { default as default8 } from "./AlertInfo/AlertInfo.js";
|
|
11
|
+
const AlertStyles = {
|
|
12
|
+
Alert: Alert_styles,
|
|
13
|
+
Toast: Toast_Toast_styles
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
default8 as AlertInfo,
|
|
17
|
+
AlertMessage,
|
|
18
|
+
AlertStyles,
|
|
19
|
+
default5 as BroadcastBar,
|
|
20
|
+
default6 as IconAlert,
|
|
21
|
+
default7 as InlineAlert,
|
|
22
|
+
default3 as SectionMessage,
|
|
23
|
+
default4 as Toast,
|
|
24
|
+
default2 as default
|
|
7
25
|
};
|
|
8
|
-
|
|
9
|
-
/** @deprecated use `@synerise/ds-section-message` instead */
|
|
10
|
-
export { default as SectionMessage } from './SectionMessage/SectionMessage';
|
|
11
|
-
export { default as Toast } from './Toast/Toast';
|
|
12
|
-
/** @deprecated - use Broadcast-Bar instead */
|
|
13
|
-
export { default as BroadcastBar } from './BroadcastBar/BroadcastBar';
|
|
14
|
-
|
|
15
|
-
/** @deprecated use `@synerise/ds-inline-alert` instead */
|
|
16
|
-
export { default as IconAlert } from './IconAlert/IconAlert';
|
|
17
|
-
export { default as InlineAlert } from './InlineAlert/InlineAlert';
|
|
18
|
-
export { default as AlertInfo } from './AlertInfo/AlertInfo';
|
|
19
|
-
// @deprecated use AlertStyles.Alert instead
|
|
20
|
-
export { AlertMessage } from './Alert.styles';
|
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-alert",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.46",
|
|
4
4
|
"description": "Alert 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": "
|
|
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": "
|
|
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,13 +35,13 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-broadcast-bar": "^1.1.
|
|
39
|
-
"@synerise/ds-button": "^1.5.
|
|
40
|
-
"@synerise/ds-icon": "^1.15.
|
|
41
|
-
"@synerise/ds-inline-alert": "^1.1.
|
|
42
|
-
"@synerise/ds-section-message": "^1.0.
|
|
43
|
-
"@synerise/ds-unordered-list": "^1.1.
|
|
44
|
-
"@synerise/ds-utils": "^1.7.
|
|
38
|
+
"@synerise/ds-broadcast-bar": "^1.1.17",
|
|
39
|
+
"@synerise/ds-button": "^1.5.19",
|
|
40
|
+
"@synerise/ds-icon": "^1.15.2",
|
|
41
|
+
"@synerise/ds-inline-alert": "^1.1.16",
|
|
42
|
+
"@synerise/ds-section-message": "^1.0.27",
|
|
43
|
+
"@synerise/ds-unordered-list": "^1.1.41",
|
|
44
|
+
"@synerise/ds-utils": "^1.7.1",
|
|
45
45
|
"animate.css": "^4.1.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"react": ">=16.9.0 <= 18.3.1",
|
|
51
51
|
"styled-components": "^5.3.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "c2384982c3533a31eb5e5e0408f8dcecb2b0f399"
|
|
54
54
|
}
|