@esportsplus/ui 0.25.5 → 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 a = omit(attributes, OMIT), state = reactive({
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
- ${a}
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
- ${a}
36
+ ${attributes.loader}
37
37
  >
38
38
  ${content && html `
39
39
  <div class='loader-content' ${attributes['loader-content']}>
@@ -1,2 +1,3 @@
1
- @layer normalize {/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */}
2
- *,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.15}body{margin:0}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentColor}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;background:0 0;border:0;border-radius:0;margin:0;padding:0}button,button:active,button:focus,button:hover,input,input:active,input:focus,input:hover,select,select:active,select:focus,select:hover,textarea,textarea:active,textarea:focus,textarea:hover{outline:none}button:invalid,input:invalid,select:invalid,textarea:invalid{box-shadow:none}form{width:100%;margin:0;padding:0}label{cursor:pointer}
1
+ @layer normalize {/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
2
+ *,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.15}body{margin:0}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentColor}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;background:0 0;border:0;border-radius:0;margin:0;padding:0}button,button:active,button:focus,button:hover,input,input:active,input:focus,input:hover,select,select:active,select:focus,select:hover,textarea,textarea:active,textarea:focus,textarea:hover{outline:none}button:invalid,input:invalid,select:invalid,textarea:invalid{box-shadow:none}form{width:100%;margin:0;padding:0}label{cursor:pointer}}
3
+ /*$vite$:1*/
package/package.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "private": false,
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.25.5",
51
+ "version": "0.25.7",
52
52
  "scripts": {
53
53
  "build": "run-s build:vite build:ts",
54
54
  "build:ts": "tsc && tsc-alias",
@@ -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 a = omit(attributes, OMIT),
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
- ${a}
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
- ${a}
52
+ ${attributes.loader}
53
53
  >
54
54
  ${content && html`
55
55
  <div class='loader-content' ${attributes['loader-content']}>
package/vite.config.ts CHANGED
@@ -39,7 +39,9 @@ export default defineConfig({
39
39
  }
40
40
 
41
41
  let layer: string,
42
- parts = file.source.split('\n', 2);
42
+ segments = file.source.split('\n'),
43
+ // Vite appends a value on bundle
44
+ vite = segments.pop();
43
45
 
44
46
  if (filename.startsWith('css-utilities')) {
45
47
  layer = 'css-utilities';
@@ -54,7 +56,7 @@ export default defineConfig({
54
56
  continue;
55
57
  }
56
58
 
57
- file.source = `@layer ${layer} {${parts[0]}}\n${parts[1]}`;
59
+ file.source = `@layer ${layer} {${segments.join('\n')}}\n${vite}`;
58
60
  }
59
61
  }
60
62
  }