@juspay/svelte-ui-components 2.48.0 → 2.49.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.
@@ -16,11 +16,11 @@
16
16
  let dragOver = $state(false);
17
17
  let inputEl: HTMLInputElement | null = $state(null);
18
18
 
19
- function openFilePicker(): void {
19
+ export const openFilePicker = (): void => {
20
20
  if (!disabled) {
21
21
  inputEl?.click();
22
22
  }
23
- }
23
+ };
24
24
 
25
25
  function isAccepted(file: File): boolean {
26
26
  if (typeof accept !== 'string' || accept.length === 0) {
@@ -1,4 +1,6 @@
1
1
  import type { FileInputProperties } from './properties';
2
- declare const FileInput: import("svelte").Component<FileInputProperties, {}, "">;
2
+ declare const FileInput: import("svelte").Component<FileInputProperties, {
3
+ openFilePicker: () => void;
4
+ }, "">;
3
5
  type FileInput = ReturnType<typeof FileInput>;
4
6
  export default FileInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "2.48.0",
3
+ "version": "2.49.0",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",