@dimah-s3/ui 1.5.10 → 1.6.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 (43) hide show
  1. package/dist/components/dimah-s3/list/object-list-breadcrumb.d.ts +7 -0
  2. package/dist/components/dimah-s3/list/object-list-breadcrumb.d.ts.map +1 -0
  3. package/dist/components/dimah-s3/list/object-list-menu.d.ts +65 -0
  4. package/dist/components/dimah-s3/list/object-list-menu.d.ts.map +1 -0
  5. package/dist/components/dimah-s3/list/object-list-rows.d.ts +32 -0
  6. package/dist/components/dimah-s3/list/object-list-rows.d.ts.map +1 -0
  7. package/dist/components/dimah-s3/list/object-list-selection-state.d.ts +38 -0
  8. package/dist/components/dimah-s3/list/object-list-selection-state.d.ts.map +1 -0
  9. package/dist/components/dimah-s3/list/object-list-selection.d.ts +36 -0
  10. package/dist/components/dimah-s3/list/object-list-selection.d.ts.map +1 -0
  11. package/dist/components/dimah-s3/list/object-list-states.d.ts +24 -0
  12. package/dist/components/dimah-s3/list/object-list-states.d.ts.map +1 -0
  13. package/dist/components/dimah-s3/list/object-list-upload.d.ts +14 -0
  14. package/dist/components/dimah-s3/list/object-list-upload.d.ts.map +1 -0
  15. package/dist/components/dimah-s3/list/object-list-usage.d.ts +7 -0
  16. package/dist/components/dimah-s3/list/object-list-usage.d.ts.map +1 -0
  17. package/dist/components/dimah-s3/list/object-list.d.ts +167 -0
  18. package/dist/components/dimah-s3/list/object-list.d.ts.map +1 -0
  19. package/dist/components/ui/breadcrumb.d.ts +11 -0
  20. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  21. package/dist/components/ui/checkbox.d.ts +4 -0
  22. package/dist/components/ui/checkbox.d.ts.map +1 -0
  23. package/dist/components/ui/dropdown-menu.d.ts +30 -0
  24. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  25. package/dist/components/ui/empty.d.ts +13 -0
  26. package/dist/components/ui/empty.d.ts.map +1 -0
  27. package/dist/components/ui/item.d.ts +23 -0
  28. package/dist/components/ui/item.d.ts.map +1 -0
  29. package/dist/components/ui/separator.d.ts +4 -0
  30. package/dist/components/ui/separator.d.ts.map +1 -0
  31. package/dist/components/ui/skeleton.d.ts +4 -0
  32. package/dist/components/ui/skeleton.d.ts.map +1 -0
  33. package/dist/components/ui/spinner.d.ts +5 -0
  34. package/dist/components/ui/spinner.d.ts.map +1 -0
  35. package/dist/index.d.ts +2 -0
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +1853 -9
  38. package/dist/index.js.map +1 -1
  39. package/dist/lib/file-type-icon.d.ts +14 -1
  40. package/dist/lib/file-type-icon.d.ts.map +1 -1
  41. package/dist/lib/format-expires-in.d.ts +3 -0
  42. package/dist/lib/format-expires-in.d.ts.map +1 -0
  43. package/package.json +12 -12
@@ -0,0 +1,7 @@
1
+ import type { ObjectListFolder } from "@dimah-s3/react";
2
+ export declare function ObjectListBreadcrumb({ rootLabel, trail, navigate, }: {
3
+ rootLabel: string;
4
+ trail: readonly ObjectListFolder[];
5
+ navigate?: (trail: readonly ObjectListFolder[]) => void;
6
+ }): import("react").JSX.Element;
7
+ //# sourceMappingURL=object-list-breadcrumb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-list-breadcrumb.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/list/object-list-breadcrumb.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAgCxD,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,KAAK,EACL,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,KAAK,IAAI,CAAC;CACzD,+BAiFA"}
@@ -0,0 +1,65 @@
1
+ import { type ReactNode } from "react";
2
+ import type { UseDeleteReturn, UseNavigateDownloadReturn } from "@dimah-s3/react";
3
+ /** One extra row in {@link ObjectListMenu}. */
4
+ export type ObjectListMenuAction = {
5
+ /** Row label. */
6
+ label: string;
7
+ onClick: () => void;
8
+ /** Icon before the label. */
9
+ icon?: ReactNode;
10
+ disabled?: boolean;
11
+ /** Destructive color. Stays above Delete, in its own group. */
12
+ destructive?: boolean;
13
+ };
14
+ /** Props for {@link ObjectListMenu}. */
15
+ export type ObjectListMenuProps = {
16
+ /**
17
+ * S3 object key. Named `objectKey` because React reserves `key`.
18
+ */
19
+ objectKey: string;
20
+ /** Download filename and confirmation label. */
21
+ fileName?: string;
22
+ /** Shown in the delete confirmation. */
23
+ fileSize?: number;
24
+ /**
25
+ * Navigate-mode `useDownload`. Adds Download.
26
+ * Copy link uses this hook when `share` is omitted.
27
+ */
28
+ download?: UseNavigateDownloadReturn;
29
+ /**
30
+ * Navigate-mode `useDownload` used only for the copied link.
31
+ * Pass `{ disposition: "inline" }` when the link should open in a browser
32
+ * while `download` stays an attachment.
33
+ */
34
+ share?: UseNavigateDownloadReturn;
35
+ /**
36
+ * Requested TTL in seconds for the copied link.
37
+ * The server signs the shorter of this value and the route cap.
38
+ * The toast shows the TTL that was actually signed.
39
+ */
40
+ expiresIn?: number;
41
+ /** `useDelete`. Adds Delete and the confirmation dialog. */
42
+ delete?: UseDeleteReturn;
43
+ /**
44
+ * Called once after this row is deleted.
45
+ * Reload the list from here (`list.refresh()`). A bulk delete does not
46
+ * call this; the selection bar reloads once.
47
+ */
48
+ onDeleted?: () => void;
49
+ /**
50
+ * Extra rows, after Copy link and before Delete.
51
+ * Use this for actions the menu does not provide, such as rename.
52
+ */
53
+ actions?: readonly ObjectListMenuAction[];
54
+ };
55
+ /**
56
+ * Overflow menu for one object-list row. Pass it through `renderActions`.
57
+ * It calls the download and delete hooks you already have. It does not
58
+ * choose a route or an object key.
59
+ *
60
+ * Copy link signs through `share` when set, otherwise `download`, then
61
+ * writes the URL to the clipboard. Signing does not start a download.
62
+ * `actions` adds rows this menu does not know about, such as rename.
63
+ */
64
+ export declare function ObjectListMenu({ objectKey, fileName, fileSize, download, share, expiresIn, delete: remove, onDeleted, actions, }: ObjectListMenuProps): import("react").JSX.Element | null;
65
+ //# sourceMappingURL=object-list-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-list-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/list/object-list-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMpE,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AAkCzB,+CAA+C;AAC/C,MAAM,MAAM,oBAAoB,GAAG;IACjC,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,yBAAyB,CAAC;IAClC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAC;CAC3C,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,SAAS,EACT,MAAM,EAAE,MAAM,EACd,SAAS,EACT,OAAO,GACR,EAAE,mBAAmB,sCA4JrB"}
@@ -0,0 +1,32 @@
1
+ import { type ReactNode } from "react";
2
+ import type { ObjectListFolder } from "@dimah-s3/react";
3
+ /** Checkbox shared by the header and each selectable row. */
4
+ export declare function SelectCheckbox({ checked, indeterminate, label, onCheckedChange, }: {
5
+ checked: boolean;
6
+ indeterminate?: boolean;
7
+ label: string;
8
+ onCheckedChange: (checked: boolean, shiftKey: boolean) => void;
9
+ }): import("react").JSX.Element;
10
+ export declare function ObjectListRows<TItem>({ items, folders, getKey, getLabel, getDescription, getFileName, getFileType, getPreviewUrl, renderItem, renderFolder, renderActions, renderMeta, onOpenItem, renderFolderActions, openFolder, filesSelectable, foldersSelectable, fileKeys, folderIds, selectRow, }: {
11
+ items: readonly TItem[];
12
+ folders: readonly ObjectListFolder[];
13
+ getKey: (item: TItem) => string;
14
+ getLabel: (item: TItem) => string;
15
+ getDescription?: (item: TItem) => ReactNode;
16
+ getFileName?: (item: TItem) => string;
17
+ getFileType?: (item: TItem) => string | null;
18
+ getPreviewUrl?: (item: TItem) => string | null;
19
+ renderItem?: (item: TItem) => ReactNode;
20
+ renderFolder?: (folder: ObjectListFolder) => ReactNode;
21
+ renderActions?: (item: TItem) => ReactNode;
22
+ renderMeta?: (item: TItem) => ReactNode;
23
+ onOpenItem?: (item: TItem) => void;
24
+ renderFolderActions?: (folder: ObjectListFolder) => ReactNode;
25
+ openFolder?: (folder: ObjectListFolder) => void;
26
+ filesSelectable: boolean;
27
+ foldersSelectable: boolean;
28
+ fileKeys: ReadonlySet<string>;
29
+ folderIds: ReadonlySet<string>;
30
+ selectRow: (kind: "file" | "folder", id: string, checked: boolean, shift: boolean) => void;
31
+ }): import("react").JSX.Element;
32
+ //# sourceMappingURL=object-list-rows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-list-rows.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/list/object-list-rows.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAYxD,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,aAAa,EACb,KAAK,EACL,eAAe,GAChB,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAChE,+BAuBA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,EACpC,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,EACZ,aAAa,EACb,UAAU,EACV,UAAU,EACV,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,SAAS,GACV,EAAE;IACD,KAAK,EAAE,SAAS,KAAK,EAAE,CAAC;IACxB,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;IAChC,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,SAAS,CAAC;IAC5C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,GAAG,IAAI,CAAC;IAC7C,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,GAAG,IAAI,CAAC;IAC/C,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,SAAS,CAAC;IACxC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,SAAS,CAAC;IACvD,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,SAAS,CAAC;IAC3C,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,SAAS,CAAC;IACxC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,SAAS,CAAC;IAC9D,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAChD,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,SAAS,EAAE,CACT,IAAI,EAAE,MAAM,GAAG,QAAQ,EACvB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,OAAO,KACX,IAAI,CAAC;CACX,+BAsFA"}
@@ -0,0 +1,38 @@
1
+ import type { ObjectListFolder } from "@dimah-s3/react";
2
+ /**
3
+ * Checkbox selection for the rows loaded so far.
4
+ * The list remounts this state when `list.parent` changes.
5
+ */
6
+ export declare function useObjectListSelection<TItem>({ items, folders, filesSelectable, foldersSelectable, getKey, getLabel, getFileName, getObjectKey, resolveFolderKeys, onSelectionChange, }: {
7
+ items: readonly TItem[];
8
+ folders: readonly ObjectListFolder[];
9
+ filesSelectable: boolean;
10
+ foldersSelectable: boolean;
11
+ getKey: (item: TItem) => string;
12
+ getLabel: (item: TItem) => string;
13
+ getFileName?: (item: TItem) => string;
14
+ getObjectKey?: (item: TItem) => string;
15
+ resolveFolderKeys?: (folder: ObjectListFolder) => Promise<readonly string[]>;
16
+ onSelectionChange?: (selection: {
17
+ items: readonly TItem[];
18
+ folders: readonly ObjectListFolder[];
19
+ }) => void;
20
+ }): {
21
+ fileKeys: ReadonlySet<string>;
22
+ folderIds: ReadonlySet<string>;
23
+ selectedCount: number;
24
+ allSelected: boolean;
25
+ selecting: boolean;
26
+ rowsSelectable: boolean;
27
+ toggleAll: (checked: boolean) => void;
28
+ clearSelection: () => void;
29
+ selectRow: (kind: "file" | "folder", id: string, checked: boolean, shift: boolean) => void;
30
+ prepareSelection: () => Promise<{
31
+ entries: {
32
+ key: string;
33
+ fileName?: string;
34
+ }[];
35
+ skippedFolders: number;
36
+ }>;
37
+ };
38
+ //# sourceMappingURL=object-list-selection-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-list-selection-state.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/list/object-list-selection-state.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,EAC5C,KAAK,EACL,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,MAAM,EACN,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,GAClB,EAAE;IACD,KAAK,EAAE,SAAS,KAAK,EAAE,CAAC;IACxB,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;IAChC,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;IAClC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;IACvC,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAC7E,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE;QAC9B,KAAK,EAAE,SAAS,KAAK,EAAE,CAAC;QACxB,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;KACtC,KAAK,IAAI,CAAC;CACZ;;;;;;;yBAkE6B,OAAO;;sBAuC3B,MAAM,GAAG,QAAQ,MACnB,MAAM,WACD,OAAO,SACT,OAAO;;;iBA0CQ,MAAM;uBAAa,MAAM;;;;EAsClD"}
@@ -0,0 +1,36 @@
1
+ import { type ReactNode } from "react";
2
+ import type { UseDeleteReturn } from "@dimah-s3/react";
3
+ export type ObjectListSelectionPlan = {
4
+ entries: readonly {
5
+ key: string;
6
+ fileName?: string;
7
+ }[];
8
+ skippedFolders: number;
9
+ };
10
+ export type ObjectListSelectionProps = {
11
+ /** Select-all checkbox, aligned with the row checkboxes. */
12
+ leading?: ReactNode;
13
+ /** Files and folders currently checked. */
14
+ selectedCount: number;
15
+ onClear: () => void;
16
+ /** Object keys to delete, plus folders left out because keys were not provided. */
17
+ prepare: () => Promise<ObjectListSelectionPlan>;
18
+ removeMany?: UseDeleteReturn["removeMany"];
19
+ /** Extra controls beside Delete. Hidden from clicks while a delete is running. */
20
+ actions?: ReactNode;
21
+ /**
22
+ * The loaded page is not the whole catalog.
23
+ * The count then says the selection is on this page.
24
+ */
25
+ onThisPage?: boolean;
26
+ onDeleted?: (result: {
27
+ deleted: string[];
28
+ failed: string[];
29
+ }) => void;
30
+ };
31
+ /**
32
+ * Selection actions for the list header.
33
+ * Deletes run in batches of 100 after confirmation.
34
+ */
35
+ export declare function ObjectListSelection({ leading, selectedCount, onClear, prepare, removeMany, actions, onThisPage, onDeleted, }: ObjectListSelectionProps): import("react").JSX.Element | null;
36
+ //# sourceMappingURL=object-list-selection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-list-selection.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/list/object-list-selection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAkBvD,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,SAAS;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACvD,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,4DAA4D;IAC5D,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,2CAA2C;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mFAAmF;IACnF,OAAO,EAAE,MAAM,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAC3C,kFAAkF;IAClF,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,aAAa,EACb,OAAO,EACP,OAAO,EACP,UAAU,EACV,OAAO,EACP,UAAkB,EAClB,SAAS,GACV,EAAE,wBAAwB,sCA8M1B"}
@@ -0,0 +1,24 @@
1
+ export declare function ObjectListEmpty({ title, description, }: {
2
+ title: string;
3
+ description: string;
4
+ }): import("react").JSX.Element;
5
+ export declare function ObjectListError({ message, onRetry, }: {
6
+ message: string | null;
7
+ onRetry?: () => void | Promise<void>;
8
+ }): import("react").JSX.Element;
9
+ export declare function ObjectListErrorBanner({ message, onRetry, }: {
10
+ message: string;
11
+ onRetry?: () => void | Promise<void>;
12
+ }): import("react").JSX.Element;
13
+ export declare function ObjectListSkeleton(): import("react").JSX.Element;
14
+ /** Loads the next page when the end of the rows is on screen. */
15
+ export declare function ObjectListContinue({ active, pending, blocked, loadMore, root, ready, }: {
16
+ active: boolean;
17
+ pending: boolean;
18
+ blocked: boolean;
19
+ loadMore?: () => void | Promise<void>;
20
+ /** Scroll parent. `null` uses the viewport. */
21
+ root: HTMLElement | null;
22
+ ready: boolean;
23
+ }): import("react").JSX.Element | null;
24
+ //# sourceMappingURL=object-list-states.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-list-states.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/list/object-list-states.tsx"],"names":[],"mappings":"AAkBA,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,WAAW,GACZ,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,+BAUA;AAED,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC,+BAyBA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,OAAO,GACR,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC,+BAYA;AAgBD,wBAAgB,kBAAkB,gCAiBjC;AAED,iEAAiE;AACjE,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,GACN,EAAE;IACD,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,+CAA+C;IAC/C,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;CAChB,sCAqCA"}
@@ -0,0 +1,14 @@
1
+ import type { UseUploadReturn } from "@dimah-s3/react";
2
+ /**
3
+ * Reloads the list once when an upload batch settles with at least one success.
4
+ * Call it from the list root, outside the folder key, so opening another
5
+ * folder does not reload again.
6
+ */
7
+ export declare function useRefreshListAfterUpload(upload: UseUploadReturn | undefined, refresh: (() => void | Promise<void>) | undefined): void;
8
+ export declare function ObjectListUpload({ upload }: {
9
+ upload: UseUploadReturn;
10
+ }): import("react").JSX.Element | null;
11
+ export declare function ObjectListDropOverlay({ upload }: {
12
+ upload: UseUploadReturn;
13
+ }): import("react").JSX.Element;
14
+ //# sourceMappingURL=object-list-upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-list-upload.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/list/object-list-upload.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAKvD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,eAAe,GAAG,SAAS,EACnC,OAAO,EAAE,CAAC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,QA0BlD;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,sCAQvE;AAED,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,+BA8B5E"}
@@ -0,0 +1,7 @@
1
+ import type { ObjectListUsage } from "@dimah-s3/react";
2
+ import type { ObjectListUsageLimits } from "./object-list.js";
3
+ export declare function ObjectListUsageLine({ usage, limits, }: {
4
+ usage: ObjectListUsage;
5
+ limits?: ObjectListUsageLimits;
6
+ }): import("react").JSX.Element;
7
+ //# sourceMappingURL=object-list-usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-list-usage.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/list/object-list-usage.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAEpF,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC,+BAgEA"}
@@ -0,0 +1,167 @@
1
+ import { type ReactNode } from "react";
2
+ import type { APIError } from "@dimah-s3/core";
3
+ import type { ObjectListFolder, ObjectListUsage, UseDeleteReturn, UseUploadReturn } from "@dimah-s3/react";
4
+ /**
5
+ * List state. `{@link useObjectList}` returns this shape. A server render or
6
+ * your own store can pass the same fields without the hook.
7
+ */
8
+ export type ObjectListView<TItem> = {
9
+ items: readonly TItem[];
10
+ folders?: readonly ObjectListFolder[];
11
+ /** Path from the root, root excluded. */
12
+ trail?: readonly ObjectListFolder[];
13
+ error?: APIError | null;
14
+ isLoading?: boolean;
15
+ isLoadingMore?: boolean;
16
+ isRefreshing?: boolean;
17
+ hasMore?: boolean;
18
+ loadMore?: () => void | Promise<void>;
19
+ refresh?: () => void | Promise<void>;
20
+ openFolder?: (folder: ObjectListFolder) => void;
21
+ /** Pass `[]` for the root. */
22
+ navigate?: (trail: readonly ObjectListFolder[]) => void;
23
+ /**
24
+ * Current folder id. Changing it clears the checkbox selection.
25
+ * `useObjectList` sets this.
26
+ */
27
+ parent?: string | null;
28
+ /**
29
+ * Catalog totals. Omit it, or pass `null`, and the usage line stays hidden.
30
+ * `useObjectList` sets this from the query.
31
+ */
32
+ usage?: ObjectListUsage | null;
33
+ };
34
+ /** Checked rows on the loaded page. */
35
+ export type ObjectListSelectionChange<TItem> = {
36
+ items: readonly TItem[];
37
+ folders: readonly ObjectListFolder[];
38
+ };
39
+ /** Caps for the usage line. The list does not read them from the server. */
40
+ export type ObjectListUsageLimits = {
41
+ /**
42
+ * Byte cap. Pass the same number as `db({ quota: { maxBytes } })` when
43
+ * that plugin is what enforces the limit.
44
+ */
45
+ maxBytes?: number;
46
+ /**
47
+ * File-count cap. Pass the same number as `db({ quota: { maxFiles } })`
48
+ * when that plugin is what enforces the limit.
49
+ */
50
+ maxFiles?: number;
51
+ };
52
+ /** Props for {@link ObjectList}. Pass a list view as `list`. */
53
+ export type ObjectListProps<TItem> = {
54
+ list: ObjectListView<TItem>;
55
+ getKey: (item: TItem) => string;
56
+ getLabel: (item: TItem) => string;
57
+ getDescription?: (item: TItem) => ReactNode;
58
+ /** Filename used for the type glyph. Defaults to `getLabel`. */
59
+ getFileName?: (item: TItem) => string;
60
+ getFileType?: (item: TItem) => string | null;
61
+ /** Image thumbnail. The label stays the accessible name. */
62
+ getPreviewUrl?: (item: TItem) => string | null;
63
+ /** Replaces the file row. */
64
+ renderItem?: (item: TItem) => ReactNode;
65
+ /** Replaces the folder row. */
66
+ renderFolder?: (folder: ObjectListFolder) => ReactNode;
67
+ /** Trailing controls for a file, such as download and delete. */
68
+ renderActions?: (item: TItem) => ReactNode;
69
+ /**
70
+ * Extra content beside the file name, such as a status.
71
+ * Ignored when {@link ObjectListProps.renderItem} replaces the row.
72
+ */
73
+ renderMeta?: (item: TItem) => ReactNode;
74
+ /**
75
+ * Called when the default file row is clicked.
76
+ * Ignored when {@link ObjectListProps.renderItem} replaces the row.
77
+ */
78
+ onOpenItem?: (item: TItem) => void;
79
+ /** Trailing controls for a folder. Kept outside the open button. */
80
+ renderFolderActions?: (folder: ObjectListFolder) => ReactNode;
81
+ /** Trailing header content, such as an upload button. */
82
+ header?: ReactNode;
83
+ /** Root breadcrumb label. */
84
+ rootLabel?: string;
85
+ /** Show the path. @default true */
86
+ breadcrumb?: boolean;
87
+ emptyTitle?: string;
88
+ emptyDescription?: string;
89
+ /**
90
+ * Replaces the empty state.
91
+ * When set, `emptyTitle` and `emptyDescription` are not used.
92
+ */
93
+ empty?: ReactNode;
94
+ className?: string;
95
+ /**
96
+ * Fixed frame height. The header stays put and the rows scroll inside.
97
+ * A number is pixels. A string is a CSS length, such as `"18rem"` or `"100%"`.
98
+ */
99
+ height?: number | string;
100
+ /**
101
+ * Largest frame height. The list grows with its content until this cap,
102
+ * then the rows scroll and the header stays put.
103
+ * A number is pixels. A string is a CSS length.
104
+ */
105
+ maxHeight?: number | string;
106
+ /**
107
+ * Checkboxes for the file rows loaded so far. The selection clears when
108
+ * `list.parent` changes. Rows on the next page are not selected.
109
+ * When `list.hasMore` is set, the header checkbox selects this page.
110
+ * A folder gets a checkbox only when {@link ObjectListProps.resolveFolderKeys}
111
+ * is set. Escape clears the selection. Ctrl+A or Cmd+A, with focus inside
112
+ * the list, selects the same rows as the header checkbox.
113
+ */
114
+ selectable?: boolean;
115
+ /**
116
+ * S3 object key for a file. Defaults to `getKey`.
117
+ * Bulk delete uses this, not the row id.
118
+ */
119
+ getObjectKey?: (item: TItem) => string;
120
+ /**
121
+ * Object keys stored in a folder. The folder gets a checkbox only when
122
+ * this is set, and bulk delete includes the keys it returns.
123
+ */
124
+ resolveFolderKeys?: (folder: ObjectListFolder) => Promise<readonly string[]>;
125
+ /** Selection bar delete. Implies {@link ObjectListProps.selectable}. */
126
+ delete?: UseDeleteReturn;
127
+ /**
128
+ * Called when the checked rows change, including when the folder changes
129
+ * and the selection clears. `items` and `folders` are from the loaded page.
130
+ */
131
+ onSelectionChange?: (selection: ObjectListSelectionChange<TItem>) => void;
132
+ /**
133
+ * Extra controls on the selection bar, beside Delete.
134
+ * Implies {@link ObjectListProps.selectable}.
135
+ */
136
+ selectionActions?: ReactNode;
137
+ /** Called after a bulk delete, including keys that failed. */
138
+ onDeleted?: (result: {
139
+ deleted: string[];
140
+ failed: string[];
141
+ }) => void;
142
+ /**
143
+ * Drop and paste files onto this list. Pass `useUpload` with `noClick`
144
+ * and `noKeyboard`. `getUploadOptions` chooses the folder from
145
+ * `list.parent`; this component does not write metadata. Clicking the
146
+ * list does not open the file picker. A paste uploads while focus is
147
+ * inside the list. The destination is the open folder, including when
148
+ * the pointer is over a folder row. When the batch settles and at least
149
+ * one file succeeded, `list.refresh` runs once. A mixed batch still
150
+ * reloads. Share this hook with `UploadButton` in `header` and set that
151
+ * button's `toast` and `status` to false so progress stays here.
152
+ */
153
+ upload?: UseUploadReturn;
154
+ /**
155
+ * Caps drawn next to `list.usage`. Ignored when `list.usage` is omitted.
156
+ * Without this, the line shows the totals and no meter.
157
+ */
158
+ usageLimits?: ObjectListUsageLimits;
159
+ };
160
+ /**
161
+ * Folder catalog. Renders `list` and does not fetch.
162
+ * File rows stay generic: pass accessors, or replace a row with `renderItem`.
163
+ * When `list.hasMore` is set, the next page loads as the end of the rows
164
+ * comes into view.
165
+ */
166
+ export declare function ObjectList<TItem>(props: ObjectListProps<TItem>): import("react").JSX.Element;
167
+ //# sourceMappingURL=object-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-list.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/list/object-list.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EAChB,MAAM,iBAAiB,CAAC;AA0BzB;;;GA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,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;IACvC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAC7E,wEAAwE;IACxE,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,yBAAyB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC1E;;;OAGG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,8DAA8D;IAC9D,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IACtE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,qBAAqB,CAAC;CACrC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,+BAG9D"}
@@ -0,0 +1,11 @@
1
+ import type * as React from "react";
2
+ import { useRender } from "@base-ui/react/use-render";
3
+ declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
4
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): React.JSX.Element;
5
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
6
+ declare function BreadcrumbLink({ className, render, ...props }: useRender.ComponentProps<"a">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
7
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
8
+ declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
9
+ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
10
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
11
+ //# sourceMappingURL=breadcrumb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAItD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBASvE;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,qBAW1E;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,qBAQ1E;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,0EAc/B;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAW5E;AAED,iBAAS,mBAAmB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,qBAY5B;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAgB9B;AAED,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
2
+ declare function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props): import("react").JSX.Element;
3
+ export { Checkbox };
4
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAIxE,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,IAAI,CAAC,KAAK,+BAmBtE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type * as React from "react";
2
+ import { Menu as MenuPrimitive } from "@base-ui/react/menu";
3
+ declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): React.JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): React.JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: MenuPrimitive.Trigger.Props): React.JSX.Element;
6
+ declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React.JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): React.JSX.Element;
8
+ declare function DropdownMenuLabel({ className, inset, ...props }: MenuPrimitive.GroupLabel.Props & {
9
+ inset?: boolean;
10
+ }): React.JSX.Element;
11
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: MenuPrimitive.Item.Props & {
12
+ inset?: boolean;
13
+ variant?: "default" | "destructive";
14
+ }): React.JSX.Element;
15
+ declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): React.JSX.Element;
16
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: MenuPrimitive.SubmenuTrigger.Props & {
17
+ inset?: boolean;
18
+ }): React.JSX.Element;
19
+ declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React.ComponentProps<typeof DropdownMenuContent>): React.JSX.Element;
20
+ declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: MenuPrimitive.CheckboxItem.Props & {
21
+ inset?: boolean;
22
+ }): React.JSX.Element;
23
+ declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): React.JSX.Element;
24
+ declare function DropdownMenuRadioItem({ className, children, inset, ...props }: MenuPrimitive.RadioItem.Props & {
25
+ inset?: boolean;
26
+ }): React.JSX.Element;
27
+ declare function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props): React.JSX.Element;
28
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
29
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
30
+ //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dropdown-menu.tsx"],"names":[],"mappings":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B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare function Empty({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
4
+ declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
5
+ declare const emptyMediaVariants: (props?: ({
6
+ variant?: "default" | "icon" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): React.JSX.Element;
9
+ declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
11
+ declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, };
13
+ //# sourceMappingURL=empty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/ui/empty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWlE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQxE;AAED,QAAA,MAAM,kBAAkB;;8EAavB,CAAC;AAEF,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,qBASvE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,qBAW3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWzE;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type * as React from "react";
2
+ import { useRender } from "@base-ui/react/use-render";
3
+ import { type VariantProps } from "class-variance-authority";
4
+ import { Separator } from "./separator.js";
5
+ declare function ItemGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
6
+ declare function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
7
+ declare const itemVariants: (props?: ({
8
+ variant?: "default" | "muted" | "outline" | null | undefined;
9
+ size?: "default" | "sm" | "xs" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
12
+ declare const itemMediaVariants: (props?: ({
13
+ variant?: "default" | "icon" | "image" | null | undefined;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
+ declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React.JSX.Element;
16
+ declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
17
+ declare function ItemTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
18
+ declare function ItemDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
19
+ declare function ItemActions({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
20
+ declare function ItemHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
21
+ declare function ItemFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
22
+ export { Item, ItemMedia, ItemContent, ItemActions, ItemGroup, ItemSeparator, ItemTitle, ItemDescription, ItemHeader, ItemFooter, };
23
+ //# sourceMappingURL=item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/components/ui/item.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAYtE;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,qBASxC;AAED,QAAA,MAAM,YAAY;;;8EAoBjB,CAAC;AAEF,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,MAAM,EACN,GAAG,KAAK,EACT,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,0EAgBrE;AAED,QAAA,MAAM,iBAAiB;;8EAetB,CAAC;AAEF,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,qBAStE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWxE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,qBAW1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,OAAO,EACL,IAAI,EACJ,SAAS,EACT,WAAW,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,GACX,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
2
+ declare function Separator({ className, orientation, ...props }: SeparatorPrimitive.Props): import("react").JSX.Element;
3
+ export { Separator };
4
+ //# sourceMappingURL=separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG3E,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAA0B,EAC1B,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,KAAK,+BAY1B;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type * as React from "react";
2
+ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
3
+ export { Skeleton };
4
+ //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQrE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type * as React from "react";
2
+ import { Loader2Icon } from "lucide-react";
3
+ declare function Spinner({ className, ...props }: React.ComponentProps<typeof Loader2Icon>): React.JSX.Element;
4
+ export { Spinner };
5
+ //# sourceMappingURL=spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/spinner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,qBAU1C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ export { MultiUploadStatus, type MultiUploadStatusProps, } from "./components/di
5
5
  export { DownloadButton, type DownloadButtonProps, } from "./components/dimah-s3/download/download-button.js";
6
6
  export { ProgressDownloadButton, type ProgressDownloadButtonProps, } from "./components/dimah-s3/download/progress-download-button.js";
7
7
  export { DeleteButton, type DeleteButtonProps, } from "./components/dimah-s3/delete/delete-button.js";
8
+ export { ObjectList, type ObjectListProps, type ObjectListSelectionChange, type ObjectListUsageLimits, type ObjectListView, } from "./components/dimah-s3/list/object-list.js";
9
+ export { ObjectListMenu, type ObjectListMenuAction, type ObjectListMenuProps, } from "./components/dimah-s3/list/object-list-menu.js";
8
10
  export { FileAttachment, type FileAttachmentProps, } from "./components/dimah-s3/attachment/file-attachment.js";
9
11
  export { StatusAttachment, type StatusAttachmentProps, } from "./components/dimah-s3/attachment/status-attachment.js";
10
12
  export type { AttachmentState, AttachmentSize, AttachmentOrientation, AttachmentLayoutProps, AttachmentLayoutAliases, StatusSlot, } from "./lib/attachment-layout.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,oDAAoD,CAAC;AAC5D,YAAY,EACV,eAAe,EACf,cAAc,EACd,qBAAqB,EACr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