@esportsplus/ui 0.25.3 → 0.25.4
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,9 +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 a = {
|
|
9
|
-
class: () => state.load && 'loader--load'
|
|
10
|
-
}, state = reactive({
|
|
8
|
+
let a = omit(attributes, OMIT), state = reactive({
|
|
11
9
|
load: false,
|
|
12
10
|
remove: false,
|
|
13
11
|
scale: false
|
|
@@ -19,7 +17,7 @@ export default template.factory((attributes, content) => {
|
|
|
19
17
|
let i = 0;
|
|
20
18
|
return html `
|
|
21
19
|
<div
|
|
22
|
-
class='loader'
|
|
20
|
+
class='loader ${() => state.load && 'loader--load'}'
|
|
23
21
|
onanimationend=${(e) => {
|
|
24
22
|
i++;
|
|
25
23
|
if (e.animationName === 'move' && i > 1) {
|
|
@@ -27,16 +25,15 @@ export default template.factory((attributes, content) => {
|
|
|
27
25
|
}
|
|
28
26
|
}}
|
|
29
27
|
${a}
|
|
30
|
-
${omit(attributes, OMIT)}
|
|
31
28
|
>
|
|
32
29
|
<div
|
|
33
|
-
class='loader'
|
|
34
|
-
${a}
|
|
30
|
+
class='loader ${() => state.load && 'loader--load'}'
|
|
35
31
|
${!content && {
|
|
36
32
|
onconnect: () => {
|
|
37
33
|
state.load = true;
|
|
38
34
|
}
|
|
39
35
|
}}
|
|
36
|
+
${a}
|
|
40
37
|
>
|
|
41
38
|
${content && html `
|
|
42
39
|
<div class='loader-content' ${attributes['loader-content']}>
|
package/package.json
CHANGED
|
@@ -16,9 +16,7 @@ const OMIT = ['loader-content', 'loader-logo'];
|
|
|
16
16
|
|
|
17
17
|
export default template.factory(
|
|
18
18
|
(attributes: A, content) => {
|
|
19
|
-
let a =
|
|
20
|
-
class: () => state.load && 'loader--load'
|
|
21
|
-
},
|
|
19
|
+
let a = omit(attributes, OMIT),
|
|
22
20
|
state = reactive({
|
|
23
21
|
load: false,
|
|
24
22
|
remove: false,
|
|
@@ -34,7 +32,7 @@ export default template.factory(
|
|
|
34
32
|
|
|
35
33
|
return html`
|
|
36
34
|
<div
|
|
37
|
-
class='loader'
|
|
35
|
+
class='loader ${() => state.load && 'loader--load'}'
|
|
38
36
|
onanimationend=${(e: AnimationEvent) => {
|
|
39
37
|
i++;
|
|
40
38
|
|
|
@@ -43,16 +41,15 @@ export default template.factory(
|
|
|
43
41
|
}
|
|
44
42
|
}}
|
|
45
43
|
${a}
|
|
46
|
-
${omit(attributes, OMIT)}
|
|
47
44
|
>
|
|
48
45
|
<div
|
|
49
|
-
class='loader'
|
|
50
|
-
${a}
|
|
46
|
+
class='loader ${() => state.load && 'loader--load'}'
|
|
51
47
|
${!content && {
|
|
52
48
|
onconnect: () => {
|
|
53
49
|
state.load = true;
|
|
54
50
|
}
|
|
55
51
|
}}
|
|
52
|
+
${a}
|
|
56
53
|
>
|
|
57
54
|
${content && html`
|
|
58
55
|
<div class='loader-content' ${attributes['loader-content']}>
|
package/vite.config.ts
CHANGED
|
@@ -9,8 +9,8 @@ export default defineConfig({
|
|
|
9
9
|
outDir: 'build',
|
|
10
10
|
rollupOptions: {
|
|
11
11
|
input: [
|
|
12
|
-
...glob.sync('./src/
|
|
13
|
-
...glob.sync('./src/
|
|
12
|
+
...glob.sync('./src/normalize/scss/index.scss'),
|
|
13
|
+
...glob.sync('./src/{components,css-utilities,fonts}/*/scss/index.scss')
|
|
14
14
|
],
|
|
15
15
|
output: {
|
|
16
16
|
assetFileNames: ({ originalFileNames: [filename] }) => {
|
|
@@ -38,7 +38,7 @@ export default defineConfig({
|
|
|
38
38
|
continue;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
let layer,
|
|
41
|
+
let layer: string,
|
|
42
42
|
parts = file.source.split('\n', 2);
|
|
43
43
|
|
|
44
44
|
if (filename.startsWith('css-utilities')) {
|