@esportsplus/ui 0.25.3 → 0.25.5

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.
@@ -67,7 +67,7 @@ export default (attributes) => {
67
67
  class: i > n - 3 && 'counter-character--fraction'
68
68
  }}>
69
69
  <div class='counter-character-track' ${{
70
- style: `--value: ${this[i]}`
70
+ style: `--value: ${state.render[i]}`
71
71
  }}}>
72
72
  <span>9</span>
73
73
  ${[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => html `<span>${value}</span>`)}
@@ -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
@@ -3,8 +3,8 @@
3
3
  "dependencies": {
4
4
  "@esportsplus/action": "^0.0.58",
5
5
  "@esportsplus/queue": "^0.1.0",
6
- "@esportsplus/reactivity": "^0.16.7",
7
- "@esportsplus/template": "^0.23.2",
6
+ "@esportsplus/reactivity": "^0.17.2",
7
+ "@esportsplus/template": "^0.23.5",
8
8
  "@esportsplus/utilities": "^0.22.1",
9
9
  "modern-normalize": "^3.0.1"
10
10
  },
@@ -48,7 +48,7 @@
48
48
  "private": false,
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.25.3",
51
+ "version": "0.25.5",
52
52
  "scripts": {
53
53
  "build": "run-s build:vite build:ts",
54
54
  "build:ts": "tsc && tsc-alias",
@@ -101,7 +101,7 @@ export default (attributes: Attributes & {
101
101
  class: i > n - 3 && 'counter-character--fraction'
102
102
  }}>
103
103
  <div class='counter-character-track' ${{
104
- style: `--value: ${this[i]}`}
104
+ style: `--value: ${state.render[i]}`}
105
105
  }}>
106
106
  <span>9</span>
107
107
  ${[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => html`<span>${value}</span>`)}
@@ -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/{components,css-utilities,fonts}/*/scss/index.scss'),
13
- ...glob.sync('./src/normalize/scss/index.scss')
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')) {