@juspay/svelte-ui-components 2.50.0 → 2.51.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.
@@ -15,7 +15,13 @@
15
15
  ariaSelected,
16
16
  role,
17
17
  onclick,
18
+ onkeydown,
18
19
  onkeyup = () => {},
20
+ onmousedown,
21
+ onmouseup,
22
+ onmouseleave,
23
+ ontouchstart,
24
+ ontouchend,
19
25
  showProgressBar = $bindable(false),
20
26
  icon,
21
27
  children,
@@ -42,7 +48,13 @@
42
48
  <button
43
49
  class:disabled={isDisabled}
44
50
  onclick={handleButtonClick}
51
+ {onkeydown}
45
52
  {onkeyup}
53
+ {onmousedown}
54
+ {onmouseup}
55
+ {onmouseleave}
56
+ {ontouchstart}
57
+ {ontouchend}
46
58
  disabled={isDisabled}
47
59
  {type}
48
60
  data-pw={testId}
@@ -20,5 +20,11 @@ export type OptionalButtonProperties = {
20
20
  };
21
21
  export type ButtonEventProperties = {
22
22
  onclick?: (event: MouseEvent) => void;
23
+ onkeydown?: (event: KeyboardEvent) => void;
23
24
  onkeyup?: (event: KeyboardEvent) => void;
25
+ onmousedown?: (event: MouseEvent) => void;
26
+ onmouseup?: (event: MouseEvent) => void;
27
+ onmouseleave?: (event: MouseEvent) => void;
28
+ ontouchstart?: (event: TouchEvent) => void;
29
+ ontouchend?: (event: TouchEvent) => void;
24
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "2.50.0",
3
+ "version": "2.51.0",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",