@esportsplus/ui 0.25.6 → 0.25.7
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.
|
@@ -5,7 +5,7 @@ import template from '../../components/template/index.js';
|
|
|
5
5
|
import './scss/index.scss';
|
|
6
6
|
const OMIT = ['loader-content', 'loader-logo'];
|
|
7
7
|
export default template.factory((attributes, content) => {
|
|
8
|
-
let
|
|
8
|
+
let state = reactive({
|
|
9
9
|
load: false,
|
|
10
10
|
remove: false,
|
|
11
11
|
scale: false
|
|
@@ -24,7 +24,7 @@ export default template.factory((attributes, content) => {
|
|
|
24
24
|
state.remove = true;
|
|
25
25
|
}
|
|
26
26
|
}}
|
|
27
|
-
${
|
|
27
|
+
${omit(attributes, OMIT)}
|
|
28
28
|
>
|
|
29
29
|
<div
|
|
30
30
|
class='loader ${() => state.load && 'loader--load'}'
|
|
@@ -33,7 +33,7 @@ export default template.factory((attributes, content) => {
|
|
|
33
33
|
state.load = true;
|
|
34
34
|
}
|
|
35
35
|
}}
|
|
36
|
-
${
|
|
36
|
+
${attributes.loader}
|
|
37
37
|
>
|
|
38
38
|
${content && html `
|
|
39
39
|
<div class='loader-content' ${attributes['loader-content']}>
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import './scss/index.scss';
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
type A = Attributes & {
|
|
9
|
+
'loader'?: Attributes,
|
|
9
10
|
'loader-content'?: Attributes,
|
|
10
11
|
'loader-logo'?: Attributes
|
|
11
12
|
};
|
|
@@ -16,8 +17,7 @@ const OMIT = ['loader-content', 'loader-logo'];
|
|
|
16
17
|
|
|
17
18
|
export default template.factory(
|
|
18
19
|
(attributes: A, content) => {
|
|
19
|
-
let
|
|
20
|
-
state = reactive({
|
|
20
|
+
let state = reactive({
|
|
21
21
|
load: false,
|
|
22
22
|
remove: false,
|
|
23
23
|
scale: false
|
|
@@ -40,7 +40,7 @@ export default template.factory(
|
|
|
40
40
|
state.remove = true;
|
|
41
41
|
}
|
|
42
42
|
}}
|
|
43
|
-
${
|
|
43
|
+
${omit(attributes, OMIT)}
|
|
44
44
|
>
|
|
45
45
|
<div
|
|
46
46
|
class='loader ${() => state.load && 'loader--load'}'
|
|
@@ -49,7 +49,7 @@ export default template.factory(
|
|
|
49
49
|
state.load = true;
|
|
50
50
|
}
|
|
51
51
|
}}
|
|
52
|
-
${
|
|
52
|
+
${attributes.loader}
|
|
53
53
|
>
|
|
54
54
|
${content && html`
|
|
55
55
|
<div class='loader-content' ${attributes['loader-content']}>
|