@casinogate/ui 1.11.11 → 1.11.12

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.
@@ -4,6 +4,8 @@
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
7
+ acceptedFiles = $bindable([]),
8
+ rejectedFiles = $bindable([]),
7
9
  accept,
8
10
  maxFiles = 1,
9
11
  maxFileSize = Infinity,
@@ -20,6 +22,8 @@
20
22
 
21
23
  <FileUploadPrimitive.Root
22
24
  bind:ref
25
+ bind:acceptedFiles
26
+ bind:rejectedFiles
23
27
  {accept}
24
28
  {maxFiles}
25
29
  {maxFileSize}
@@ -1,4 +1,3 @@
1
- import type { FileUploadRootProps } from '../../types.js';
2
- declare const FileUpload: import("svelte").Component<FileUploadRootProps, {}, "ref">;
1
+ declare const FileUpload: import("svelte").Component<import("../../types.js").FileUploadPrimitiveRootProps, {}, "ref" | "acceptedFiles" | "rejectedFiles">;
3
2
  type FileUpload = ReturnType<typeof FileUpload>;
4
3
  export default FileUpload;
@@ -72,15 +72,5 @@ export type FileUploadContext = {
72
72
  export type FileUploadPrimitiveContextProps = {
73
73
  children?: Snippet<[FileUploadContext]>;
74
74
  };
75
- type FileUploadRootPropsWithoutHTML = WithElementRef<WithChildren<{
76
- accept?: string;
77
- maxFiles?: number;
78
- maxFileSize?: number;
79
- disabled?: boolean;
80
- invalid?: boolean;
81
- onFileAccept?: (details: FileAcceptDetails) => void;
82
- onFileReject?: (details: FileRejectDetails) => void;
83
- onFileChange?: (details: FileChangeDetails) => void;
84
- }>>;
85
- export type FileUploadRootProps = FileUploadRootPropsWithoutHTML & Without<PrimitiveDivAttributes, FileUploadRootPropsWithoutHTML>;
75
+ export type FileUploadRootProps = FileUploadPrimitiveRootProps;
86
76
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casinogate/ui",
3
- "version": "1.11.11",
3
+ "version": "1.11.12",
4
4
  "svelte": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",