@brightlocal/ui-components 3.3.0 → 3.5.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.
Files changed (207) hide show
  1. package/AI_USAGE.md +22 -3
  2. package/README.md +177 -109
  3. package/component-meta.json +1307 -113
  4. package/dist/alert-dialog.cjs +1 -1
  5. package/dist/alert-dialog.d.ts +13 -2
  6. package/dist/alert-dialog.d.ts.map +1 -1
  7. package/dist/alert-dialog.js +4 -3
  8. package/dist/banner.cjs +1 -1
  9. package/dist/banner.d.ts +47 -11
  10. package/dist/banner.d.ts.map +1 -1
  11. package/dist/banner.js +156 -79
  12. package/dist/blocks/empty-state.cjs +1 -1
  13. package/dist/blocks/empty-state.d.ts +40 -5
  14. package/dist/blocks/empty-state.d.ts.map +1 -1
  15. package/dist/blocks/empty-state.js +59 -52
  16. package/dist/blocks/input-list.cjs +1 -1
  17. package/dist/blocks/input-list.d.ts +1 -0
  18. package/dist/blocks/input-list.d.ts.map +1 -1
  19. package/dist/blocks/input-list.js +39 -39
  20. package/dist/blocks/sidebar.cjs +1 -1
  21. package/dist/blocks/sidebar.d.ts +12 -6
  22. package/dist/blocks/sidebar.d.ts.map +1 -1
  23. package/dist/blocks/sidebar.js +64 -63
  24. package/dist/button.cjs +1 -1
  25. package/dist/button.d.ts.map +1 -1
  26. package/dist/button.js +47 -43
  27. package/dist/card.cjs +1 -1
  28. package/dist/card.d.ts +12 -0
  29. package/dist/card.d.ts.map +1 -1
  30. package/dist/card.js +115 -97
  31. package/dist/chart.cjs +6 -6
  32. package/dist/chart.d.ts +6 -10
  33. package/dist/chart.d.ts.map +1 -1
  34. package/dist/chart.js +281 -296
  35. package/dist/combobox.cjs +3 -3
  36. package/dist/combobox.d.ts.map +1 -1
  37. package/dist/combobox.js +430 -343
  38. package/dist/command.cjs +1 -1
  39. package/dist/command.d.ts +23 -2
  40. package/dist/command.d.ts.map +1 -1
  41. package/dist/command.js +212 -207
  42. package/dist/count-indicator.cjs +1 -0
  43. package/dist/count-indicator.d.ts +85 -0
  44. package/dist/count-indicator.d.ts.map +1 -0
  45. package/dist/count-indicator.js +72 -0
  46. package/dist/data-table.cjs +1 -1
  47. package/dist/data-table.d.ts +101 -11
  48. package/dist/data-table.d.ts.map +1 -1
  49. package/dist/data-table.js +593 -523
  50. package/dist/description-list.cjs +1 -0
  51. package/dist/description-list.d.ts +142 -0
  52. package/dist/description-list.d.ts.map +1 -0
  53. package/dist/description-list.js +173 -0
  54. package/dist/dialog.cjs +1 -1
  55. package/dist/dialog.d.ts +26 -3
  56. package/dist/dialog.d.ts.map +1 -1
  57. package/dist/dialog.js +62 -47
  58. package/dist/drawer.cjs +1 -1
  59. package/dist/drawer.d.ts +8 -4
  60. package/dist/drawer.d.ts.map +1 -1
  61. package/dist/drawer.js +37 -38
  62. package/dist/file-upload.cjs +1 -0
  63. package/dist/file-upload.d.ts +546 -0
  64. package/dist/file-upload.d.ts.map +1 -0
  65. package/dist/file-upload.js +1103 -0
  66. package/dist/global-layout.cjs +1 -1
  67. package/dist/global-layout.d.ts +7 -2
  68. package/dist/global-layout.d.ts.map +1 -1
  69. package/dist/global-layout.js +52 -52
  70. package/dist/hooks/use-file-dropzone.cjs +1 -0
  71. package/dist/hooks/use-file-dropzone.d.ts +75 -0
  72. package/dist/hooks/use-file-dropzone.d.ts.map +1 -0
  73. package/dist/hooks/use-file-dropzone.js +133 -0
  74. package/dist/hover-card.cjs +1 -1
  75. package/dist/hover-card.d.ts +29 -16
  76. package/dist/hover-card.d.ts.map +1 -1
  77. package/dist/hover-card.js +153 -36
  78. package/dist/index.cjs +1 -1
  79. package/dist/index.d.ts +4 -0
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +681 -623
  82. package/dist/input-chip.cjs +1 -1
  83. package/dist/input-chip.d.ts +30 -1
  84. package/dist/input-chip.d.ts.map +1 -1
  85. package/dist/input-chip.js +131 -115
  86. package/dist/input-group.cjs +1 -1
  87. package/dist/input-group.d.ts +37 -2
  88. package/dist/input-group.d.ts.map +1 -1
  89. package/dist/input-group.js +131 -114
  90. package/dist/input-password.cjs +1 -1
  91. package/dist/input-password.js +6 -6
  92. package/dist/lib/empty-canvas.cjs +1 -1
  93. package/dist/lib/empty-canvas.d.ts +27 -1
  94. package/dist/lib/empty-canvas.d.ts.map +1 -1
  95. package/dist/lib/empty-canvas.js +27 -23
  96. package/dist/lib/empty-chip.cjs +1 -1
  97. package/dist/lib/empty-chip.d.ts +19 -2
  98. package/dist/lib/empty-chip.d.ts.map +1 -1
  99. package/dist/lib/empty-chip.js +14 -9
  100. package/dist/lib/field-aria.cjs +1 -1
  101. package/dist/lib/field-aria.d.ts +4 -4
  102. package/dist/lib/field-aria.d.ts.map +1 -1
  103. package/dist/lib/field-aria.js +7 -5
  104. package/dist/lib/media-viewer-content.cjs +1 -1
  105. package/dist/lib/media-viewer-content.js +1 -1
  106. package/dist/lib/motion.cjs +1 -1
  107. package/dist/lib/motion.js +15 -10
  108. package/dist/lib/table-internal.cjs +1 -1
  109. package/dist/lib/table-internal.d.ts +19 -0
  110. package/dist/lib/table-internal.d.ts.map +1 -1
  111. package/dist/lib/table-internal.js +22 -7
  112. package/dist/list.cjs +1 -1
  113. package/dist/list.d.ts +230 -40
  114. package/dist/list.d.ts.map +1 -1
  115. package/dist/list.js +301 -66
  116. package/dist/logo-mark.cjs +1 -1
  117. package/dist/logo-mark.d.ts +18 -2
  118. package/dist/logo-mark.d.ts.map +1 -1
  119. package/dist/logo-mark.js +159 -79
  120. package/dist/media-empty.cjs +1 -1
  121. package/dist/media-empty.d.ts +50 -7
  122. package/dist/media-empty.d.ts.map +1 -1
  123. package/dist/media-empty.js +14 -13
  124. package/dist/media-viewer.cjs +1 -1
  125. package/dist/media-viewer.js +6 -6
  126. package/dist/multi-select-filter.cjs +1 -1
  127. package/dist/multi-select-filter.d.ts.map +1 -1
  128. package/dist/multi-select-filter.js +92 -101
  129. package/dist/pagination.cjs +1 -1
  130. package/dist/pagination.d.ts +11 -0
  131. package/dist/pagination.d.ts.map +1 -1
  132. package/dist/pagination.js +17 -17
  133. package/dist/relative-date.d.ts +6 -0
  134. package/dist/relative-date.d.ts.map +1 -1
  135. package/dist/resizable.d.ts +1 -1
  136. package/dist/result-count.cjs +1 -1
  137. package/dist/result-count.d.ts +13 -16
  138. package/dist/result-count.d.ts.map +1 -1
  139. package/dist/result-count.js +24 -33
  140. package/dist/route-progress.cjs +1 -1
  141. package/dist/route-progress.js +24 -23
  142. package/dist/sheet.cjs +1 -1
  143. package/dist/sheet.d.ts +22 -3
  144. package/dist/sheet.d.ts.map +1 -1
  145. package/dist/sheet.js +152 -125
  146. package/dist/single-select-filter.cjs +1 -1
  147. package/dist/single-select-filter.d.ts.map +1 -1
  148. package/dist/single-select-filter.js +67 -76
  149. package/dist/table.cjs +1 -1
  150. package/dist/table.d.ts.map +1 -1
  151. package/dist/table.js +77 -76
  152. package/dist/tabs.cjs +1 -1
  153. package/dist/tabs.d.ts +39 -3
  154. package/dist/tabs.d.ts.map +1 -1
  155. package/dist/tabs.js +127 -76
  156. package/dist/textarea.cjs +1 -1
  157. package/dist/textarea.d.ts +34 -0
  158. package/dist/textarea.d.ts.map +1 -1
  159. package/dist/textarea.js +115 -19
  160. package/dist/tooltip.cjs +1 -1
  161. package/dist/tooltip.d.ts.map +1 -1
  162. package/dist/tooltip.js +137 -131
  163. package/dist/typography-text.cjs +1 -1
  164. package/dist/typography-text.d.ts +6 -2
  165. package/dist/typography-text.d.ts.map +1 -1
  166. package/dist/typography-text.js +14 -13
  167. package/package.json +2 -3
  168. package/src/blocks/empty-state.tsx +108 -48
  169. package/src/blocks/input-list.tsx +15 -9
  170. package/src/blocks/sidebar.tsx +39 -16
  171. package/src/components/alert-dialog.tsx +18 -2
  172. package/src/components/banner.tsx +247 -68
  173. package/src/components/button.tsx +27 -10
  174. package/src/components/card.tsx +89 -7
  175. package/src/components/chart.tsx +47 -67
  176. package/src/components/combobox.tsx +221 -12
  177. package/src/components/command.tsx +83 -37
  178. package/src/components/count-indicator.tsx +188 -0
  179. package/src/components/data-table.tsx +506 -159
  180. package/src/components/description-list.tsx +445 -0
  181. package/src/components/dialog.tsx +74 -5
  182. package/src/components/drawer.tsx +52 -32
  183. package/src/components/file-upload.tsx +2574 -0
  184. package/src/components/global-layout.tsx +18 -5
  185. package/src/components/hover-card.tsx +395 -65
  186. package/src/components/input-chip.tsx +67 -2
  187. package/src/components/input-group.tsx +89 -6
  188. package/src/components/list.tsx +720 -72
  189. package/src/components/logo-mark.tsx +109 -25
  190. package/src/components/media-empty.tsx +62 -7
  191. package/src/components/multi-select-filter.tsx +9 -16
  192. package/src/components/pagination.tsx +15 -2
  193. package/src/components/relative-date.tsx +6 -0
  194. package/src/components/result-count.tsx +27 -54
  195. package/src/components/sheet.tsx +86 -8
  196. package/src/components/single-select-filter.tsx +9 -16
  197. package/src/components/table.tsx +16 -1
  198. package/src/components/tabs.tsx +223 -41
  199. package/src/components/textarea.tsx +271 -4
  200. package/src/components/tooltip.tsx +29 -2
  201. package/src/components/typography-text.tsx +7 -2
  202. package/src/hooks/use-file-dropzone.ts +325 -0
  203. package/src/index.ts +4 -0
  204. package/src/lib/empty-canvas.tsx +47 -20
  205. package/src/lib/empty-chip.tsx +38 -3
  206. package/src/lib/field-aria.tsx +11 -6
  207. package/src/lib/table-internal.ts +38 -0
@@ -0,0 +1,546 @@
1
+ import { CountIndicatorProps } from './count-indicator';
2
+ import { FileError, FileRejection, UseFileDropzoneOptions } from './hooks/use-file-dropzone';
3
+ import * as React from "react";
4
+ /** Format bytes as a human-readable string: "1.2 MB", "980 KB", "512 B". */
5
+ declare function formatBytes(bytes: number): string;
6
+ /** Read an image's pixel dimensions. Resolves `null` when the browser can't decode it. */
7
+ declare function getImageDimensions(file: Blob): Promise<{
8
+ width: number;
9
+ height: number;
10
+ } | null>;
11
+ /**
12
+ * User-facing messages produced by `FileUpload` and `FileUploadSlot`:
13
+ * rejection reasons, upload outcomes and live-region announcements.
14
+ * Pass translations through the `messages` prop; placeholders in `{braces}`
15
+ * are filled in by the component.
16
+ */
17
+ interface FileUploadMessages {
18
+ /**
19
+ * Rejection: type not accepted and no accepted-types label is available.
20
+ * @default "This type of file isn't supported."
21
+ */
22
+ invalidType: string;
23
+ /**
24
+ * Rejection: type not accepted. `{label}` is the accepted-types label.
25
+ * @default "This type of file isn't supported. Use {label}."
26
+ */
27
+ invalidTypeWithLabel: string;
28
+ /**
29
+ * Rejection: over `maxSize`. `{size}` and `{maxSize}` are formatted sizes.
30
+ * @default "This file is {size}. Files need to be {maxSize} or smaller."
31
+ */
32
+ tooLarge: string;
33
+ /**
34
+ * Rejection: under `minSize`. `{size}` and `{minSize}` are formatted sizes.
35
+ * @default "This file is {size}. Files need to be at least {minSize}."
36
+ */
37
+ tooSmall: string;
38
+ /**
39
+ * Rejection: the single allowed file is already present (`maxFiles === 1`).
40
+ * @default "You can add one file. Remove it to add a different one."
41
+ */
42
+ tooManyFilesOne: string;
43
+ /**
44
+ * Rejection: `maxFiles` reached. `{maxFiles}` is the limit.
45
+ * @default "You've reached the limit of {maxFiles} files. Remove one to add another."
46
+ */
47
+ tooManyFiles: string;
48
+ /**
49
+ * Rejection: the browser could not decode the image for a `minImageSize` check.
50
+ * @default "We couldn't read this image."
51
+ */
52
+ imageUnreadable: string;
53
+ /**
54
+ * Rejection: under `minImageSize`. `{width}`, `{height}`, `{minWidth}`, `{minHeight}` in px.
55
+ * @default "This image is {width} × {height} px. Images need to be at least {minWidth} × {minHeight} px."
56
+ */
57
+ imageTooSmall: string;
58
+ /**
59
+ * Per-file error when the `onUpload` handler fails without a message.
60
+ * @default "Upload failed."
61
+ */
62
+ uploadFailed: string;
63
+ /**
64
+ * Announced after `FileUploadItemRemove` is activated. `{name}` is the file name.
65
+ * @default "{name} removed."
66
+ */
67
+ fileRemoved: string;
68
+ /**
69
+ * Announced when exactly one file uploaded.
70
+ * @default "1 file uploaded."
71
+ */
72
+ uploadedOne: string;
73
+ /**
74
+ * Announced when several files uploaded. `{n}` is the count.
75
+ * @default "{n} files uploaded."
76
+ */
77
+ uploadedMany: string;
78
+ /**
79
+ * Announced when exactly one file failed to upload.
80
+ * @default "1 file failed to upload."
81
+ */
82
+ uploadFailedOne: string;
83
+ /**
84
+ * Announced when several files failed to upload. `{n}` is the count.
85
+ * @default "{n} files failed to upload."
86
+ */
87
+ uploadFailedMany: string;
88
+ }
89
+ /** English defaults for every `FileUploadMessages` entry. */
90
+ declare const FILE_UPLOAD_MESSAGES: FileUploadMessages;
91
+ type IconComponent = React.ComponentType<{
92
+ size?: number;
93
+ strokeWidth?: number;
94
+ "aria-hidden"?: boolean | "true";
95
+ }>;
96
+ /**
97
+ * Returns the icon component that best represents the file's type.
98
+ * Images → `FileImage`, spreadsheets → `FileSpreadsheet`,
99
+ * JSON → `FileJson`, XML/HTML → `FileCode`,
100
+ * text/PDF/docs → `FileText`, everything else → `File`.
101
+ */
102
+ declare function getFileTypeIcon(file: File): IconComponent;
103
+ /**
104
+ * Creates and manages a browser object URL for a `Blob` or `File`.
105
+ * Reference-counted so the same file shared across components reuses one URL;
106
+ * the URL is revoked once the last component using it unmounts.
107
+ * Safe under React Strict Mode (double mount/unmount in development).
108
+ *
109
+ * The URL is created during render so the first paint already has it; a render
110
+ * that never commits leaves that one URL alive until the page unloads.
111
+ */
112
+ declare function useObjectUrl(file: Blob | null | undefined): string | undefined;
113
+ /** Status of a file in the upload lifecycle. */
114
+ type FileUploadStatus = "idle" | "uploading" | "success" | "error";
115
+ interface FileUploadFileState {
116
+ status: FileUploadStatus;
117
+ /** 0 to 100. */
118
+ progress: number;
119
+ /** Plain-English error message when status is "error". */
120
+ error?: string;
121
+ }
122
+ /** Callbacks provided to the `onUpload` handler for per-file progress reporting. */
123
+ interface FileUploadHelpers {
124
+ onProgress: (file: File, progress: number) => void;
125
+ onSuccess: (file: File) => void;
126
+ /** Pass a plain-English message or an Error. Falls back to `messages.uploadFailed`. */
127
+ onError: (file: File, error?: Error | string) => void;
128
+ }
129
+ /**
130
+ * Handler for uploading accepted files. Called with newly accepted files and
131
+ * helpers to report per-file progress, success, or failure. Any file not
132
+ * resolved through `onSuccess`/`onError` by the time the handler settles is
133
+ * marked failed.
134
+ */
135
+ type FileUploadHandler = (files: File[], helpers: FileUploadHelpers) => Promise<void> | void;
136
+ /**
137
+ * Extra per-file check. Return a plain-English message to reject the file, or
138
+ * `null`/`undefined` to accept. Can be async (e.g. for image dimension checks).
139
+ */
140
+ type FileValidator = (file: File) => string | null | undefined | Promise<string | null | undefined>;
141
+ /**
142
+ * Standard photo upload rules for BrightLocal location photos.
143
+ * JPG/PNG, 10 KB–5 MB, at least 250 × 250 px.
144
+ */
145
+ declare const PHOTO_UPLOAD_RULES: {
146
+ readonly accept: {
147
+ readonly "image/jpeg": readonly [".jpg", ".jpeg"];
148
+ readonly "image/png": readonly [".png"];
149
+ };
150
+ readonly acceptLabel: "JPG or PNG";
151
+ readonly minSize: number;
152
+ readonly maxSize: number;
153
+ readonly minImageSize: {
154
+ readonly width: 250;
155
+ readonly height: 250;
156
+ };
157
+ };
158
+ interface FileUploadRejectionEntry {
159
+ id: string;
160
+ name: string;
161
+ message: string;
162
+ }
163
+ interface FileUploadProps extends React.ComponentPropsWithoutRef<"div"> {
164
+ /** Required test hook identifier. */
165
+ dataHook: string;
166
+ /**
167
+ * Accepted MIME types or extensions, keyed by MIME with extension arrays.
168
+ * @example { "image/*": [".png", ".jpg"], "application/pdf": [".pdf"] }
169
+ */
170
+ accept?: Record<string, readonly string[]>;
171
+ /**
172
+ * Human-readable label for accepted types, used in rejection messages.
173
+ * Derived from `accept` when omitted.
174
+ * @example "JPG or PNG"
175
+ */
176
+ acceptLabel?: string;
177
+ /** Maximum file size in bytes. */
178
+ maxSize?: number;
179
+ /** Minimum file size in bytes. */
180
+ minSize?: number;
181
+ /**
182
+ * Maximum number of files in the list, counting files already present.
183
+ * `1` disables `multiple` on the input when `multiple` is not set.
184
+ */
185
+ maxFiles?: number;
186
+ /** Whether the file input accepts multiple files. Defaults to `maxFiles !== 1`. */
187
+ multiple?: boolean;
188
+ /** Minimum pixel dimensions for image files. */
189
+ minImageSize?: {
190
+ width: number;
191
+ height: number;
192
+ };
193
+ /** Whether the file upload is disabled. */
194
+ disabled?: boolean;
195
+ /** Custom validation function. Return an array of error codes or empty array. */
196
+ validate?: UseFileDropzoneOptions["validate"];
197
+ /**
198
+ * Extra per-file check. Return a plain-English message to reject the file, or `null` to accept.
199
+ * Can be async (e.g. for image dimension checks).
200
+ */
201
+ onFileValidate?: FileValidator;
202
+ /** Controlled list of accepted files. */
203
+ value?: File[];
204
+ /** Called with the full updated file list when accepted files change. */
205
+ onValueChange?: (files: File[]) => void;
206
+ /**
207
+ * Called for each file that fails validation, with a human-readable message.
208
+ * Fires for both built-in validation (type, size, count) and custom `onFileValidate`.
209
+ */
210
+ onFileReject?: (file: File, message: string) => void;
211
+ /** Called with accepted and rejected files after a drop or file pick. */
212
+ onFilesChange?: (details: {
213
+ acceptedFiles: File[];
214
+ rejectedFiles: FileRejection[];
215
+ }) => void;
216
+ /**
217
+ * Upload handler. Called with newly accepted files after validation passes.
218
+ * Use the helpers to report per-file progress, success, or failure.
219
+ */
220
+ onUpload?: FileUploadHandler;
221
+ /**
222
+ * Translations for the messages the component produces (rejection reasons,
223
+ * upload outcomes, announcements). Merged over the English defaults.
224
+ * @default FILE_UPLOAD_MESSAGES
225
+ */
226
+ messages?: Partial<FileUploadMessages>;
227
+ /** Analytics element identifier. */
228
+ trackingEl?: string;
229
+ /** Analytics label. */
230
+ trackingLabel?: string;
231
+ }
232
+ declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLDivElement>>;
233
+ interface FileUploadDropzoneProps extends React.ComponentPropsWithoutRef<"div"> {
234
+ /** Test hook identifier. */
235
+ dataHook?: string;
236
+ /**
237
+ * Accessible label for the file input.
238
+ * @default "Upload file"
239
+ */
240
+ ariaLabel?: string;
241
+ }
242
+ declare const FileUploadDropzone: React.ForwardRefExoticComponent<FileUploadDropzoneProps & React.RefAttributes<HTMLDivElement>>;
243
+ interface FileUploadTriggerProps extends React.ComponentPropsWithoutRef<"button"> {
244
+ /** Test hook identifier. */
245
+ dataHook?: string;
246
+ /** Render as child element. */
247
+ asChild?: boolean;
248
+ }
249
+ declare const FileUploadTrigger: React.ForwardRefExoticComponent<FileUploadTriggerProps & React.RefAttributes<HTMLButtonElement>>;
250
+ interface FileUploadStateChildProps {
251
+ children: React.ReactNode;
252
+ }
253
+ declare function FileUploadIdle({ children }: FileUploadStateChildProps): React.JSX.Element | null;
254
+ declare namespace FileUploadIdle {
255
+ var displayName: string;
256
+ }
257
+ declare function FileUploadAccept({ children }: FileUploadStateChildProps): React.JSX.Element | null;
258
+ declare namespace FileUploadAccept {
259
+ var displayName: string;
260
+ }
261
+ declare function FileUploadReject({ children }: FileUploadStateChildProps): React.JSX.Element | null;
262
+ declare namespace FileUploadReject {
263
+ var displayName: string;
264
+ }
265
+ interface FileUploadDropzoneContentProps extends Omit<React.ComponentPropsWithoutRef<"div">, "children"> {
266
+ /** Required test hook identifier. */
267
+ dataHook: string;
268
+ /** Icon shown in the idle state. */
269
+ icon: React.ComponentType<{
270
+ size?: number;
271
+ className?: string;
272
+ }>;
273
+ /** Title shown in the idle state. */
274
+ title: string;
275
+ /** Description shown below the title in the idle state. */
276
+ description: string;
277
+ /**
278
+ * Label for the trigger button in the idle state. Omit to hide the button.
279
+ */
280
+ triggerLabel?: string;
281
+ /**
282
+ * Text shown during the accept (drag-over-valid) state.
283
+ * @default "Release to upload"
284
+ */
285
+ acceptMessage?: string;
286
+ /**
287
+ * Text shown during the reject (drag-over-invalid) state.
288
+ * @default "File not accepted"
289
+ */
290
+ rejectMessage?: string;
291
+ /** Analytics element identifier. */
292
+ trackingEl?: string;
293
+ /** Analytics label. */
294
+ trackingLabel?: string;
295
+ }
296
+ declare const FileUploadDropzoneContent: React.ForwardRefExoticComponent<FileUploadDropzoneContentProps & React.RefAttributes<HTMLDivElement>>;
297
+ interface FileUploadListProps extends React.ComponentPropsWithoutRef<"ul"> {
298
+ /** Test hook identifier. */
299
+ dataHook?: string;
300
+ /**
301
+ * Accessible label for the file list.
302
+ * @default "Uploaded files"
303
+ */
304
+ ariaLabel?: string;
305
+ /**
306
+ * Layout variant for the file list.
307
+ * @default "list"
308
+ */
309
+ variant?: "list" | "grid";
310
+ }
311
+ declare const FileUploadList: React.ForwardRefExoticComponent<FileUploadListProps & React.RefAttributes<HTMLUListElement>>;
312
+ interface FileUploadItemProps extends React.ComponentPropsWithoutRef<"li"> {
313
+ /** Test hook identifier. */
314
+ dataHook?: string;
315
+ }
316
+ declare const FileUploadItem: React.ForwardRefExoticComponent<FileUploadItemProps & React.RefAttributes<HTMLLIElement>>;
317
+ interface FileUploadItemPreviewProps extends React.ComponentPropsWithoutRef<"div"> {
318
+ /** Test hook identifier. */
319
+ dataHook?: string;
320
+ /** The file to preview. */
321
+ file: File;
322
+ /**
323
+ * Preview size. `"sm"` for inline list items, `"lg"` for grid cards.
324
+ * @default "sm"
325
+ */
326
+ size?: "sm" | "lg";
327
+ /** Optional overlay content (e.g. a remove button positioned absolutely). */
328
+ children?: React.ReactNode;
329
+ }
330
+ declare const FileUploadItemPreview: React.ForwardRefExoticComponent<FileUploadItemPreviewProps & React.RefAttributes<HTMLDivElement>>;
331
+ interface FileUploadItemRemoveProps extends React.ComponentPropsWithoutRef<"button"> {
332
+ /** Test hook identifier. */
333
+ dataHook?: string;
334
+ /**
335
+ * The file to remove. Used for focus management (finds next/previous item).
336
+ * The consumer is responsible for actually removing the file from the list.
337
+ */
338
+ file: File;
339
+ /**
340
+ * Accessible label for the remove button.
341
+ * @default "Remove {fileName}"
342
+ */
343
+ removeAriaLabel?: string;
344
+ }
345
+ declare const FileUploadItemRemove: React.ForwardRefExoticComponent<FileUploadItemRemoveProps & React.RefAttributes<HTMLButtonElement>>;
346
+ interface FileUploadItemProgressProps extends React.ComponentPropsWithoutRef<"div"> {
347
+ /**
348
+ * Test hook identifier.
349
+ * @default "file-upload-item-progress"
350
+ */
351
+ dataHook?: string;
352
+ /** The file whose upload status to display. */
353
+ file: File;
354
+ /**
355
+ * Label shown while uploading; also the progress bar's accessible name.
356
+ * @default "Uploading…"
357
+ */
358
+ uploadingLabel?: string;
359
+ /**
360
+ * Label shown on success.
361
+ * @default "Uploaded"
362
+ */
363
+ successLabel?: string;
364
+ /**
365
+ * Label shown on error. Falls back to the error message from the handler.
366
+ * @default "Upload failed"
367
+ */
368
+ errorLabel?: string;
369
+ }
370
+ declare const FileUploadItemProgress: React.ForwardRefExoticComponent<FileUploadItemProgressProps & React.RefAttributes<HTMLDivElement>>;
371
+ interface FileUploadCardItemProps extends Omit<React.ComponentPropsWithoutRef<"li">, "children"> {
372
+ /** Required test hook identifier. */
373
+ dataHook: string;
374
+ /** The file to display. */
375
+ file: File;
376
+ /** Called when the remove button is clicked. Omit to hide the remove button. */
377
+ onRemove?: () => void;
378
+ /**
379
+ * Accessible label for the remove button.
380
+ * @default "Remove {fileName}"
381
+ */
382
+ removeAriaLabel?: string;
383
+ /** Analytics element identifier. */
384
+ trackingEl?: string;
385
+ /** Analytics label. */
386
+ trackingLabel?: string;
387
+ }
388
+ declare const FileUploadCardItem: React.ForwardRefExoticComponent<FileUploadCardItemProps & React.RefAttributes<HTMLLIElement>>;
389
+ interface FileUploadGridItemProps extends Omit<React.ComponentPropsWithoutRef<"li">, "children"> {
390
+ /** Required test hook identifier. */
391
+ dataHook: string;
392
+ /** The file to display. */
393
+ file: File;
394
+ /** Called when the remove button is clicked. Omit to hide the remove button. */
395
+ onRemove?: () => void;
396
+ /**
397
+ * Accessible label for the remove button.
398
+ * @default "Remove {fileName}"
399
+ */
400
+ removeAriaLabel?: string;
401
+ /**
402
+ * Show the file name below the thumbnail.
403
+ * @default false
404
+ */
405
+ showName?: boolean;
406
+ /** Analytics element identifier. */
407
+ trackingEl?: string;
408
+ /** Analytics label. */
409
+ trackingLabel?: string;
410
+ }
411
+ declare const FileUploadGridItem: React.ForwardRefExoticComponent<FileUploadGridItemProps & React.RefAttributes<HTMLLIElement>>;
412
+ interface FileUploadRejectionsProps extends React.ComponentPropsWithoutRef<"div"> {
413
+ /**
414
+ * Test hook identifier.
415
+ * @default "file-upload-rejections"
416
+ */
417
+ dataHook?: string;
418
+ /**
419
+ * Banner title. `{n}` is replaced with the count of rejected files.
420
+ * @default "{n} files weren't added"
421
+ */
422
+ title?: string;
423
+ /**
424
+ * Label for the dismiss button.
425
+ * @default "Dismiss"
426
+ */
427
+ dismissLabel?: string;
428
+ }
429
+ /**
430
+ * Lists the files that failed validation since the last dismiss, in a warning
431
+ * `Alert`. Polite (`role="status"`): entries accumulate across drops, and an
432
+ * assertive alert would re-read the whole list on every addition.
433
+ */
434
+ declare const FileUploadRejections: React.ForwardRefExoticComponent<FileUploadRejectionsProps & React.RefAttributes<HTMLDivElement>>;
435
+ interface FileUploadSlotProps extends Omit<React.ComponentPropsWithoutRef<"div">, "onChange"> {
436
+ /** Required test hook identifier. */
437
+ dataHook: string;
438
+ /**
439
+ * Layout direction: vertical centres the image above the label and buttons;
440
+ * horizontal places the image beside a column of label, description and buttons.
441
+ * @default "vertical"
442
+ */
443
+ layout?: "vertical" | "horizontal";
444
+ /**
445
+ * Shape of the slot.
446
+ * @default "square"
447
+ */
448
+ shape?: "square" | "wide";
449
+ /** Label displayed below the slot. */
450
+ label?: string;
451
+ /**
452
+ * Descriptive hint below the label (e.g. recommended dimensions or formats).
453
+ */
454
+ description?: string;
455
+ /**
456
+ * Text shown in the empty state alongside the placeholder icon.
457
+ */
458
+ emptyMessage?: string;
459
+ /** Current image source URL (controlled). */
460
+ src?: string | null;
461
+ /**
462
+ * Called when a file is accepted. `previewUrl` is an object URL that stays
463
+ * valid while the slot holds the file; it is revoked shortly after the file
464
+ * is removed or replaced, so store the `File`, not the URL, if you need it later.
465
+ */
466
+ onChange?: (file: File, previewUrl: string) => void;
467
+ /** Called when the current image is removed. */
468
+ onRemove?: () => void;
469
+ /**
470
+ * Accepted MIME types or extensions.
471
+ * @example { "image/*": [".png", ".jpg"] }
472
+ */
473
+ accept?: Record<string, readonly string[]>;
474
+ /** Human-readable accepted types label. */
475
+ acceptLabel?: string;
476
+ /** Maximum file size in bytes. */
477
+ maxSize?: number;
478
+ /** Minimum file size in bytes. */
479
+ minSize?: number;
480
+ /** Minimum pixel dimensions for image files. */
481
+ minImageSize?: {
482
+ width: number;
483
+ height: number;
484
+ };
485
+ /** Custom per-file validation. */
486
+ onFileValidate?: FileValidator;
487
+ /** Whether the slot is disabled. */
488
+ disabled?: boolean;
489
+ /**
490
+ * Upload handler for the slot. Called after a file passes validation.
491
+ * Use the helpers to report progress, success, or failure.
492
+ */
493
+ onUpload?: FileUploadHandler;
494
+ /**
495
+ * Translations for the messages the slot produces (rejection reasons,
496
+ * upload failure). Merged over the English defaults.
497
+ * @default FILE_UPLOAD_MESSAGES
498
+ */
499
+ messages?: Partial<FileUploadMessages>;
500
+ /**
501
+ * Label for the upload button.
502
+ * @default "Upload" or "Replace"
503
+ */
504
+ uploadLabel?: string;
505
+ /**
506
+ * Label for the remove button.
507
+ * @default "Remove"
508
+ */
509
+ removeLabel?: string;
510
+ /**
511
+ * Accessible label of the spinner shown while uploading.
512
+ * @default "Uploading…"
513
+ */
514
+ uploadingLabel?: string;
515
+ /**
516
+ * Extra content rendered in the action button row (e.g. an additional button
517
+ * for "Edit description"). Shown only when an image is present.
518
+ */
519
+ actions?: React.ReactNode;
520
+ /** Analytics element identifier. */
521
+ trackingEl?: string;
522
+ /** Analytics label. */
523
+ trackingLabel?: string;
524
+ }
525
+ declare const FileUploadSlot: React.ForwardRefExoticComponent<FileUploadSlotProps & React.RefAttributes<HTMLDivElement>>;
526
+ interface FileUploadCountProps extends Omit<CountIndicatorProps, "count" | "limit" | "dataHook"> {
527
+ /**
528
+ * Override the count derived from context. When omitted the number of files
529
+ * currently in the upload is used.
530
+ */
531
+ count?: number;
532
+ /**
533
+ * Test hook identifier.
534
+ * @default "file-upload-count"
535
+ */
536
+ dataHook?: string;
537
+ }
538
+ /**
539
+ * Displays the current file count against `maxFiles` using the shared
540
+ * `CountIndicator` primitive. Renders nothing when `maxFiles` is not set on
541
+ * the parent `FileUpload`.
542
+ */
543
+ declare const FileUploadCount: React.ForwardRefExoticComponent<FileUploadCountProps & React.RefAttributes<HTMLSpanElement>>;
544
+ export { FileUpload, FileUploadDropzone, FileUploadTrigger, FileUploadIdle, FileUploadAccept, FileUploadReject, FileUploadDropzoneContent, FileUploadList, FileUploadItem, FileUploadItemPreview, FileUploadItemRemove, FileUploadItemProgress, FileUploadCardItem, FileUploadGridItem, FileUploadRejections, FileUploadSlot, FileUploadCount, PHOTO_UPLOAD_RULES, FILE_UPLOAD_MESSAGES, formatBytes, getFileTypeIcon, getImageDimensions, useObjectUrl, };
545
+ export type { FileUploadProps, FileUploadDropzoneProps, FileUploadTriggerProps, FileUploadStateChildProps, FileUploadDropzoneContentProps, FileUploadListProps, FileUploadItemProps, FileUploadItemPreviewProps, FileUploadItemRemoveProps, FileUploadItemProgressProps, FileUploadCardItemProps, FileUploadGridItemProps, FileUploadRejectionsProps, FileUploadSlotProps, FileUploadCountProps, FileUploadRejectionEntry, FileUploadMessages, FileUploadStatus, FileUploadFileState, FileUploadHelpers, FileUploadHandler, FileValidator, FileError, FileRejection, };
546
+ //# sourceMappingURL=file-upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload.d.ts","sourceRoot":"","sources":["../../src/components/file-upload.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsB/B,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4CAA4C,CAAC;AAIpD,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC5B,MAAM,oDAAoD,CAAC;AAM5D,4EAA4E;AAC5E,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAc1C;AAED,0FAA0F;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