@marianmeres/stuic 1.94.0 → 1.95.0

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.
@@ -38,6 +38,7 @@ $:
38
38
  `.trim())}
39
39
  on:click
40
40
  on:mousedown
41
+ on:mouseup
41
42
  on:touchstart|passive
42
43
  on:touchend|passive
43
44
  on:keydown={(e) => e.code === 'Escape' && dispatch('escape')}
@@ -15,6 +15,7 @@ declare const __propDef: {
15
15
  events: {
16
16
  click: MouseEvent;
17
17
  mousedown: MouseEvent;
18
+ mouseup: MouseEvent;
18
19
  touchstart: TouchEvent;
19
20
  touchend: TouchEvent;
20
21
  escape: CustomEvent<any>;
@@ -56,7 +56,7 @@ $:
56
56
  <Backdrop
57
57
  class={twMerge(`${_presetsClsBackdrop[position] || ''} ${backdropClass}`)}
58
58
  on:escape
59
- on:click={(e) => dispatch('click_backdrop')}
59
+ on:mousedown={(e) => dispatch('click_backdrop')}
60
60
  {fadeInDuration}
61
61
  fadeOutDuration={transitionEnabled ? transitionDuration : 0}
62
62
  on:element
@@ -68,7 +68,7 @@ $:
68
68
  -->
69
69
  <div
70
70
  bind:this={el}
71
- on:click|stopPropagation
71
+ on:mousedown|stopPropagation
72
72
  aria-modal="true"
73
73
  role="dialog"
74
74
  aria-labelledby={labelledby}
@@ -16,7 +16,7 @@ declare const __propDef: {
16
16
  events: {
17
17
  escape: CustomEvent<any>;
18
18
  element: CustomEvent<any>;
19
- click: MouseEvent;
19
+ mousedown: MouseEvent;
20
20
  } & {
21
21
  [evt: string]: CustomEvent<any>;
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "1.94.0",
3
+ "version": "1.95.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package && node ./scripts/date.js",