@esportsplus/ui 0.42.13 → 0.42.14
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.
|
@@ -7,7 +7,7 @@ import check from './svg/check.svg';
|
|
|
7
7
|
import close from './svg/close.svg';
|
|
8
8
|
import e from './svg/error.svg';
|
|
9
9
|
import './scss/index.scss';
|
|
10
|
-
const OMIT = ['alert-close', 'alert-messages', 'message'];
|
|
10
|
+
const OMIT = ['alert-close', 'alert-messages', 'alert-message'];
|
|
11
11
|
let modifiers = {
|
|
12
12
|
error: 'red',
|
|
13
13
|
info: 'black',
|
|
@@ -91,7 +91,7 @@ export default (attributes) => {
|
|
|
91
91
|
${attributes['alert-messages']}
|
|
92
92
|
>
|
|
93
93
|
${() => {
|
|
94
|
-
let message = attributes
|
|
94
|
+
let message = attributes['alert-message'];
|
|
95
95
|
return state.rerender && [...state.messages].map((content) => {
|
|
96
96
|
if (typeof content === 'string') {
|
|
97
97
|
return html `
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ import './scss/index.scss';
|
|
|
13
13
|
type Type = 'error' | 'info' | 'success';
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
const OMIT = ['alert-close', 'alert-messages', 'message'];
|
|
16
|
+
const OMIT = ['alert-close', 'alert-messages', 'alert-message'];
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
let modifiers: Record<Type, string> = {
|
|
@@ -75,7 +75,7 @@ function deactivate(state: { active: boolean, messages: Set<Renderable<any>>, ty
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
export default (attributes: Attributes & { 'alert-close'?: Attributes, 'alert-messages'?: Attributes, message?: Attributes }) => {
|
|
78
|
+
export default (attributes: Attributes & { 'alert-close'?: Attributes, 'alert-messages'?: Attributes, 'alert-message'?: Attributes }) => {
|
|
79
79
|
let state = reactive({
|
|
80
80
|
active: false,
|
|
81
81
|
messages: new Set() as Set<Renderable<any>>,
|
|
@@ -125,7 +125,7 @@ export default (attributes: Attributes & { 'alert-close'?: Attributes, 'alert-me
|
|
|
125
125
|
${attributes['alert-messages']}
|
|
126
126
|
>
|
|
127
127
|
${() => {
|
|
128
|
-
let message = attributes
|
|
128
|
+
let message = attributes['alert-message'];
|
|
129
129
|
|
|
130
130
|
return state.rerender && [...state.messages].map((content) => {
|
|
131
131
|
if (typeof content === 'string') {
|