@inizioevoke/astro-core 1.4.0 → 1.4.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inizioevoke/astro-core",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -38,7 +38,7 @@ if (innerWidth) {
38
38
  contentAttrs.style = `width:${typeof innerWidth == 'number' || /^\d+$/.test(innerWidth) ? `${innerWidth}px` : innerWidth};`
39
39
  }
40
40
  ---
41
- <scroll-container class:list={['evo-scroll-container', cssClass]} {...containerAttrs}>
41
+ <evo-scroll-container class:list={['evo-scroll-container', cssClass]} {...containerAttrs}>
42
42
  <div class="evo-scroll-content" {...contentAttrs}>
43
43
  <slot />
44
44
  </div>
@@ -48,7 +48,7 @@ if (innerWidth) {
48
48
  {horizontal && <div class="evo-scroll-track evo-scroll-track-x">
49
49
  <div class="evo-scroll-thumb"></div>
50
50
  </div>}
51
- </scroll-container>
51
+ </evo-scroll-container>
52
52
 
53
53
  <script>
54
54
  import './ScrollContainer';
@@ -238,7 +238,9 @@ export class ScrollContainer extends HTMLElement implements IScrollContainer {
238
238
  this.#thumb.style.top = `${top}px`;
239
239
  }
240
240
  }
241
- customElements.define('scroll-container', ScrollContainer);
241
+ if (!customElements.get('evo-scroll-container')) {
242
+ customElements.define('evo-scroll-container', ScrollContainer);
243
+ }
242
244
 
243
245
  export function resize(selector: string | HTMLElement | ScrollContainer, { height }: { height?: number }) {
244
246
  if (typeof height == 'number') {