@dimah-s3/ui 1.7.0 → 2.0.0-beta.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.
- package/README.md +73 -16
- package/css/shadcn.css +57 -23
- package/dist/components/dimah-s3/attachment/circle-progress.d.ts +14 -5
- package/dist/components/dimah-s3/attachment/circle-progress.d.ts.map +1 -1
- package/dist/components/dimah-s3/attachment/dismiss-attachment-action.d.ts +6 -2
- package/dist/components/dimah-s3/attachment/dismiss-attachment-action.d.ts.map +1 -1
- package/dist/components/dimah-s3/attachment/file-attachment.d.ts +33 -18
- package/dist/components/dimah-s3/attachment/file-attachment.d.ts.map +1 -1
- package/dist/components/dimah-s3/attachment/file-name.d.ts +18 -0
- package/dist/components/dimah-s3/attachment/file-name.d.ts.map +1 -0
- package/dist/{lib/file-type-icon.d.ts → components/dimah-s3/attachment/file-type-glyph.d.ts} +5 -11
- package/dist/components/dimah-s3/attachment/file-type-glyph.d.ts.map +1 -0
- package/dist/components/dimah-s3/attachment/folder-glyph.d.ts +9 -0
- package/dist/components/dimah-s3/attachment/folder-glyph.d.ts.map +1 -0
- package/dist/components/dimah-s3/attachment/status-attachment.d.ts +9 -11
- package/dist/components/dimah-s3/attachment/status-attachment.d.ts.map +1 -1
- package/dist/components/dimah-s3/delete/delete-confirm-dialog.d.ts +20 -0
- package/dist/components/dimah-s3/delete/delete-confirm-dialog.d.ts.map +1 -0
- package/dist/components/dimah-s3/delete/delete-toasts.d.ts +34 -0
- package/dist/components/dimah-s3/delete/delete-toasts.d.ts.map +1 -0
- package/dist/components/dimah-s3/delete/delete-trigger.d.ts +18 -0
- package/dist/components/dimah-s3/delete/delete-trigger.d.ts.map +1 -0
- package/dist/components/dimah-s3/delete/delete.d.ts +83 -0
- package/dist/components/dimah-s3/delete/delete.d.ts.map +1 -0
- package/dist/components/dimah-s3/download/download-progress.d.ts +16 -0
- package/dist/components/dimah-s3/download/download-progress.d.ts.map +1 -0
- package/dist/components/dimah-s3/download/download-toasts.d.ts +25 -0
- package/dist/components/dimah-s3/download/download-toasts.d.ts.map +1 -0
- package/dist/components/dimah-s3/download/download-trigger.d.ts +32 -0
- package/dist/components/dimah-s3/download/download-trigger.d.ts.map +1 -0
- package/dist/components/dimah-s3/download/download.d.ts +30 -0
- package/dist/components/dimah-s3/download/download.d.ts.map +1 -0
- package/dist/components/dimah-s3/list/object-list-breadcrumb.d.ts +6 -5
- package/dist/components/dimah-s3/list/object-list-breadcrumb.d.ts.map +1 -1
- package/dist/components/dimah-s3/list/object-list-content.d.ts +8 -0
- package/dist/components/dimah-s3/list/object-list-content.d.ts.map +1 -0
- package/dist/components/dimah-s3/list/object-list-context.d.ts +76 -0
- package/dist/components/dimah-s3/list/object-list-context.d.ts.map +1 -0
- package/dist/components/dimah-s3/list/object-list-controls.d.ts +46 -0
- package/dist/components/dimah-s3/list/object-list-controls.d.ts.map +1 -0
- package/dist/components/dimah-s3/list/object-list-entry.d.ts +28 -0
- package/dist/components/dimah-s3/list/object-list-entry.d.ts.map +1 -0
- package/dist/components/dimah-s3/list/object-list-feedback.d.ts +26 -0
- package/dist/components/dimah-s3/list/object-list-feedback.d.ts.map +1 -0
- package/dist/components/dimah-s3/list/object-list-header.d.ts +81 -0
- package/dist/components/dimah-s3/list/object-list-header.d.ts.map +1 -0
- package/dist/components/dimah-s3/list/object-list-item-menu.d.ts +65 -0
- package/dist/components/dimah-s3/list/object-list-item-menu.d.ts.map +1 -0
- package/dist/components/dimah-s3/list/object-list-keyboard.d.ts +21 -0
- package/dist/components/dimah-s3/list/object-list-keyboard.d.ts.map +1 -0
- package/dist/components/dimah-s3/list/object-list-states.d.ts +25 -11
- package/dist/components/dimah-s3/list/object-list-states.d.ts.map +1 -1
- package/dist/components/dimah-s3/list/object-list-upload.d.ts +29 -6
- package/dist/components/dimah-s3/list/object-list-upload.d.ts.map +1 -1
- package/dist/components/dimah-s3/list/object-list-usage.d.ts +8 -6
- package/dist/components/dimah-s3/list/object-list-usage.d.ts.map +1 -1
- package/dist/components/dimah-s3/list/object-list.d.ts +78 -137
- package/dist/components/dimah-s3/list/object-list.d.ts.map +1 -1
- package/dist/components/dimah-s3/preview/object-card.d.ts +38 -0
- package/dist/components/dimah-s3/preview/object-card.d.ts.map +1 -0
- package/dist/components/dimah-s3/preview/object-image.d.ts +30 -0
- package/dist/components/dimah-s3/preview/object-image.d.ts.map +1 -0
- package/dist/components/dimah-s3/upload/avatar-upload.d.ts +47 -0
- package/dist/components/dimah-s3/upload/avatar-upload.d.ts.map +1 -0
- package/dist/components/dimah-s3/upload/upload-dropzone.d.ts +48 -25
- package/dist/components/dimah-s3/upload/upload-dropzone.d.ts.map +1 -1
- package/dist/components/dimah-s3/upload/upload-field.d.ts +96 -0
- package/dist/components/dimah-s3/upload/upload-field.d.ts.map +1 -0
- package/dist/components/dimah-s3/upload/upload-file-list.d.ts +34 -0
- package/dist/components/dimah-s3/upload/upload-file-list.d.ts.map +1 -0
- package/dist/components/dimah-s3/upload/upload-status.d.ts +25 -20
- package/dist/components/dimah-s3/upload/upload-status.d.ts.map +1 -1
- package/dist/components/dimah-s3/upload/upload-toasts.d.ts +23 -0
- package/dist/components/dimah-s3/upload/upload-toasts.d.ts.map +1 -0
- package/dist/components/dimah-s3/upload/upload-trigger.d.ts +23 -0
- package/dist/components/dimah-s3/upload/upload-trigger.d.ts.map +1 -0
- package/dist/components/dimah-s3/upload/upload.d.ts +79 -0
- package/dist/components/dimah-s3/upload/upload.d.ts.map +1 -0
- package/dist/hooks/use-file-preview.d.ts +7 -0
- package/dist/hooks/use-file-preview.d.ts.map +1 -0
- package/dist/hooks/use-own-drag.d.ts +17 -0
- package/dist/hooks/use-own-drag.d.ts.map +1 -0
- package/dist/hooks/use-paste-files.d.ts +18 -0
- package/dist/hooks/use-paste-files.d.ts.map +1 -0
- package/dist/hooks/use-toast-owner.d.ts +16 -0
- package/dist/hooks/use-toast-owner.d.ts.map +1 -0
- package/dist/index.d.ts +39 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4226 -2676
- package/dist/index.js.map +1 -1
- package/dist/lib/attachment-layout.d.ts +3 -33
- package/dist/lib/attachment-layout.d.ts.map +1 -1
- package/dist/lib/format-expires-in.d.ts +2 -2
- package/dist/lib/format-expires-in.d.ts.map +1 -1
- package/dist/lib/is-field-target.d.ts +6 -0
- package/dist/lib/is-field-target.d.ts.map +1 -0
- package/dist/lib/upload-hints.d.ts +16 -0
- package/dist/lib/upload-hints.d.ts.map +1 -0
- package/package.json +25 -14
- package/styles.css +4 -3
- package/dist/components/dimah-s3/delete/delete-button.d.ts +0 -43
- package/dist/components/dimah-s3/delete/delete-button.d.ts.map +0 -1
- package/dist/components/dimah-s3/download/download-button.d.ts +0 -39
- package/dist/components/dimah-s3/download/download-button.d.ts.map +0 -1
- package/dist/components/dimah-s3/download/progress-download-button.d.ts +0 -44
- package/dist/components/dimah-s3/download/progress-download-button.d.ts.map +0 -1
- package/dist/components/dimah-s3/list/object-list-menu.d.ts +0 -65
- package/dist/components/dimah-s3/list/object-list-menu.d.ts.map +0 -1
- package/dist/components/dimah-s3/list/object-list-rows.d.ts +0 -32
- package/dist/components/dimah-s3/list/object-list-rows.d.ts.map +0 -1
- package/dist/components/dimah-s3/list/object-list-selection-state.d.ts +0 -38
- package/dist/components/dimah-s3/list/object-list-selection-state.d.ts.map +0 -1
- package/dist/components/dimah-s3/list/object-list-selection.d.ts +0 -36
- package/dist/components/dimah-s3/list/object-list-selection.d.ts.map +0 -1
- package/dist/components/dimah-s3/upload/multi-upload-status.d.ts +0 -8
- package/dist/components/dimah-s3/upload/multi-upload-status.d.ts.map +0 -1
- package/dist/components/dimah-s3/upload/upload-button.d.ts +0 -32
- package/dist/components/dimah-s3/upload/upload-button.d.ts.map +0 -1
- package/dist/hooks/use-delete-toast.d.ts +0 -12
- package/dist/hooks/use-delete-toast.d.ts.map +0 -1
- package/dist/hooks/use-delete-ui.d.ts +0 -16
- package/dist/hooks/use-delete-ui.d.ts.map +0 -1
- package/dist/hooks/use-download-toast.d.ts +0 -17
- package/dist/hooks/use-download-toast.d.ts.map +0 -1
- package/dist/hooks/use-download-ui.d.ts +0 -19
- package/dist/hooks/use-download-ui.d.ts.map +0 -1
- package/dist/hooks/use-file-reject-toast.d.ts +0 -7
- package/dist/hooks/use-file-reject-toast.d.ts.map +0 -1
- package/dist/hooks/use-upload-toast.d.ts +0 -7
- package/dist/hooks/use-upload-toast.d.ts.map +0 -1
- package/dist/hooks/use-upload-ui.d.ts +0 -13
- package/dist/hooks/use-upload-ui.d.ts.map +0 -1
- package/dist/lib/file-type-icon.d.ts.map +0 -1
|
@@ -1,30 +1,13 @@
|
|
|
1
|
-
import type { ComponentProps
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
2
|
import type { Attachment } from "../components/ui/attachment.js";
|
|
3
3
|
/**
|
|
4
|
-
* Attachment
|
|
5
|
-
* (do not edit `components/ui/attachment.tsx`).
|
|
4
|
+
* Attachment state type, derived from the stock shadcn
|
|
5
|
+
* {@link Attachment} (do not edit `components/ui/attachment.tsx`).
|
|
6
6
|
*
|
|
7
7
|
* Named `attachment-layout` so the shadcn CLI does not collapse this module
|
|
8
8
|
* onto the stock `attachment` primitive (same basename → `@/components/ui/attachment`).
|
|
9
9
|
*/
|
|
10
10
|
export type AttachmentState = NonNullable<ComponentProps<typeof Attachment>["state"]>;
|
|
11
|
-
export type AttachmentSize = NonNullable<ComponentProps<typeof Attachment>["size"]>;
|
|
12
|
-
export type AttachmentOrientation = NonNullable<ComponentProps<typeof Attachment>["orientation"]>;
|
|
13
|
-
/** `size` / `orientation` forwarded onto stock `Attachment`. */
|
|
14
|
-
export type AttachmentLayoutProps = {
|
|
15
|
-
size?: AttachmentSize;
|
|
16
|
-
orientation?: AttachmentOrientation;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Wired button/dropzone aliases — avoids clashing with Button `size`.
|
|
20
|
-
* Maps to {@link AttachmentLayoutProps} on status rows.
|
|
21
|
-
*/
|
|
22
|
-
export type AttachmentLayoutAliases = {
|
|
23
|
-
/** Attachment size (not the trigger button size). @default "sm" */
|
|
24
|
-
attachmentSize?: AttachmentSize;
|
|
25
|
-
/** Attachment orientation. @default "horizontal" */
|
|
26
|
-
attachmentOrientation?: AttachmentOrientation;
|
|
27
|
-
};
|
|
28
11
|
/** Error description: allow wrap past truncate (AttachmentDescription default). */
|
|
29
12
|
export declare const ATTACHMENT_ERROR_DESCRIPTION_CLASS = "overflow-visible whitespace-normal [overflow-wrap:anywhere]";
|
|
30
13
|
/**
|
|
@@ -35,17 +18,4 @@ export declare const ATTACHMENT_ERROR_DESCRIPTION_CLASS = "overflow-visible whit
|
|
|
35
18
|
* leave light mode on the stock formula.
|
|
36
19
|
*/
|
|
37
20
|
export declare const ATTACHMENT_TITLE_CLASS = "max-w-[48ch] dark:shimmer-color-dimah-s3-muted-foreground";
|
|
38
|
-
/**
|
|
39
|
-
* Controls inline status rendering for wired UI components.
|
|
40
|
-
*
|
|
41
|
-
* - `true` (default): render the status node in the default slot
|
|
42
|
-
* - `false`: hide status
|
|
43
|
-
* - `(node) => ReactNode`: wrap or relocate the status node
|
|
44
|
-
*/
|
|
45
|
-
export type StatusSlot = boolean | ((node: ReactNode) => ReactNode);
|
|
46
|
-
/**
|
|
47
|
-
* Resolve a {@link StatusSlot} against a built status node.
|
|
48
|
-
* `wrap` only applies to the default slot (`true`), not a relocate function.
|
|
49
|
-
*/
|
|
50
|
-
export declare function resolveStatusSlot(slot: StatusSlot | undefined, node: ReactNode, wrap?: (node: ReactNode) => ReactNode): ReactNode;
|
|
51
21
|
//# sourceMappingURL=attachment-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-layout.d.ts","sourceRoot":"","sources":["../../src/lib/attachment-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"attachment-layout.d.ts","sourceRoot":"","sources":["../../src/lib/attachment-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,CACvC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC,OAAO,CAAC,CAC3C,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,kCAAkC,gEACgB,CAAC;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,8DAC0B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** "Expires in 1 hour" for a signed link. `
|
|
2
|
-
export declare function useShareExpiryLabel(): (seconds: number) => string;
|
|
1
|
+
/** "Expires in 1 hour" for a signed link. `null` is a proxy link, which does not expire. */
|
|
2
|
+
export declare function useShareExpiryLabel(): (seconds: number | null) => string;
|
|
3
3
|
//# sourceMappingURL=format-expires-in.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-expires-in.d.ts","sourceRoot":"","sources":["../../src/lib/format-expires-in.ts"],"names":[],"mappings":"AAoBA,
|
|
1
|
+
{"version":3,"file":"format-expires-in.d.ts","sourceRoot":"","sources":["../../src/lib/format-expires-in.ts"],"names":[],"mappings":"AAoBA,4FAA4F;AAC5F,wBAAgB,mBAAmB,cAGhB,MAAM,GAAG,IAAI,YAuC/B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an event target is a form field or editable text. Keys and pastes
|
|
3
|
+
* there belong to the field, so list shortcuts and file paste skip them.
|
|
4
|
+
*/
|
|
5
|
+
export declare function isFieldTarget(target: EventTarget | null): boolean;
|
|
6
|
+
//# sourceMappingURL=is-field-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-field-target.d.ts","sourceRoot":"","sources":["../../src/lib/is-field-target.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,OAAO,CAQjE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type UploadPolicy } from "@dimah-s3/react";
|
|
2
|
+
/** The policy fields {@link useUploadHints} describes. */
|
|
3
|
+
export type UploadHintsPolicy = Pick<UploadPolicy, "accept" | "maxFileSize" | "maxFiles">;
|
|
4
|
+
/** Localized lines that describe what a route accepts. */
|
|
5
|
+
export type UploadHints = {
|
|
6
|
+
/** File count and size limits, such as "You can upload 3 files. Each up to 10 MB.". */
|
|
7
|
+
limits: string | null;
|
|
8
|
+
/** Accepted types, such as "Accepted PNG, JPEG.". */
|
|
9
|
+
accept: string | null;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Hint lines for an upload policy, shown under a dropzone or field.
|
|
13
|
+
* A line is `null` when the policy sets nothing for it.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useUploadHints(policy: UploadHintsPolicy): UploadHints;
|
|
16
|
+
//# sourceMappingURL=upload-hints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-hints.d.ts","sourceRoot":"","sources":["../../src/lib/upload-hints.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAC;AAEzB,0DAA0D;AAC1D,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,YAAY,EACZ,QAAQ,GAAG,aAAa,GAAG,UAAU,CACtC,CAAC;AAEF,0DAA0D;AAC1D,MAAM,MAAM,WAAW,GAAG;IACxB,uFAAuF;IACvF,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,qDAAqD;IACrD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,iBAAiB,GAAG,WAAW,CA0CrE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimah-s3/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"description": "Pre-built React UI components for S3 file upload, download, and delete",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"s3",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"nextjs",
|
|
20
20
|
"components"
|
|
21
21
|
],
|
|
22
|
-
"homepage": "https://s3.dimah.dev/docs/react/ui",
|
|
22
|
+
"homepage": "https://v2.s3.dimah.dev/docs/react/ui",
|
|
23
23
|
"bugs": {
|
|
24
24
|
"url": "https://github.com/dimah-kz/dimah-s3/issues"
|
|
25
25
|
},
|
|
@@ -48,51 +48,62 @@
|
|
|
48
48
|
"css"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@dimah-s3/core": "1.7.0",
|
|
52
|
-
"@dimah-s3/react": "1.7.0",
|
|
53
51
|
"react-file-icon": "^1.6.0"
|
|
54
52
|
},
|
|
55
53
|
"devDependencies": {
|
|
56
54
|
"@base-ui/react": "^1.9.0",
|
|
55
|
+
"@dimah-s3/core": "2.0.0-beta.0",
|
|
56
|
+
"@dimah-s3/react": "2.0.0-beta.0",
|
|
57
57
|
"@fuma-translate/react": "^1.0.2",
|
|
58
|
-
"@
|
|
58
|
+
"@testing-library/dom": "^10.4.2",
|
|
59
|
+
"@testing-library/react": "^16.3.3",
|
|
60
|
+
"@testing-library/user-event": "^14.6.8",
|
|
61
|
+
"@types/node": "^26.6.6",
|
|
59
62
|
"@types/react": "^19.3.0",
|
|
63
|
+
"@types/react-dom": "^19.3.0",
|
|
60
64
|
"@types/react-file-icon": "^1.0.5",
|
|
61
65
|
"@workspace/eslint-config": "0.0.1",
|
|
62
66
|
"@workspace/tsup-config": "0.0.0",
|
|
63
67
|
"@workspace/typescript-config": "0.0.1",
|
|
68
|
+
"@workspace/vitest-config": "0.0.7",
|
|
64
69
|
"class-variance-authority": "^0.7.1",
|
|
65
|
-
"cn": "^0.5.
|
|
66
|
-
"eslint": "^10.
|
|
67
|
-
"
|
|
70
|
+
"cn": "^0.5.1",
|
|
71
|
+
"eslint": "^10.14.0",
|
|
72
|
+
"jsdom": "^30.1.3",
|
|
73
|
+
"lucide-react": "^1.66.0",
|
|
68
74
|
"react": "^19.3.1",
|
|
75
|
+
"react-dom": "^19.3.1",
|
|
69
76
|
"shadcn": "^4.23.0",
|
|
70
77
|
"tailwindcss": "^4.3.3",
|
|
71
|
-
"tsc-alias": "^1.9.
|
|
78
|
+
"tsc-alias": "^1.9.10",
|
|
72
79
|
"tsup": "^9.0.0",
|
|
73
80
|
"tsx": "^4.23.15",
|
|
74
|
-
"typescript": "7.0.2"
|
|
81
|
+
"typescript": "7.0.2",
|
|
82
|
+
"vitest": "^5.0.5"
|
|
75
83
|
},
|
|
76
84
|
"peerDependencies": {
|
|
77
85
|
"@base-ui/react": ">=1.0.0",
|
|
86
|
+
"@dimah-s3/core": "2.0.0-beta.0",
|
|
87
|
+
"@dimah-s3/react": "2.0.0-beta.0",
|
|
78
88
|
"@fuma-translate/react": "^1.0.2",
|
|
79
89
|
"class-variance-authority": ">=0.7.0",
|
|
80
90
|
"cn": ">=0.1.0",
|
|
81
91
|
"lucide-react": ">=0.400.0",
|
|
82
|
-
"react": ">=
|
|
92
|
+
"react": ">=19.2"
|
|
83
93
|
},
|
|
84
94
|
"publishConfig": {
|
|
85
95
|
"access": "public"
|
|
86
96
|
},
|
|
87
97
|
"scripts": {
|
|
88
|
-
"build": "pnpm run normalize-imports && tsup --config tsup.config.ts && tsc --emitDeclarationOnly && tsc-alias",
|
|
98
|
+
"build": "pnpm run normalize-imports && tsup --config tsup.config.ts && tsc --emitDeclarationOnly -p tsconfig.build.json && tsc-alias",
|
|
89
99
|
"check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.registry.json",
|
|
90
100
|
"lint": "eslint --cache --cache-strategy content --max-warnings 0",
|
|
91
101
|
"normalize-imports": "node ./scripts/enforce-src-alias-imports.mjs",
|
|
92
|
-
"registry:build": "pnpm registry:validate && shadcn build --output apps/docs/public/r --cwd ../..",
|
|
102
|
+
"registry:build": "pnpm registry:validate && node -e \"require('node:fs').rmSync('../../apps/docs/public/r', { recursive: true, force: true })\" && shadcn build --output apps/docs/public/r --cwd ../..",
|
|
93
103
|
"registry:check": "tsx scripts/check-registry-items.ts",
|
|
94
104
|
"registry:items": "tsx scripts/build-registry-items.ts && pnpm -w exec prettier --write packages/ui/registry.json",
|
|
95
105
|
"registry:validate": "pnpm registry:items && pnpm registry:check && shadcn registry validate --cwd ../..",
|
|
96
|
-
"sync:shadcn": "node scripts/sync-shadcn.mjs"
|
|
106
|
+
"sync:shadcn": "node scripts/sync-shadcn.mjs",
|
|
107
|
+
"test": "vitest run"
|
|
97
108
|
}
|
|
98
109
|
}
|
package/styles.css
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
@import "@dimah-s3/ui/styles.css";
|
|
6
6
|
|
|
7
|
-
To theme dimah-s3
|
|
8
|
-
import (see css/shadcn.css). Stock
|
|
9
|
-
`Attachment`, …) keep using your app
|
|
7
|
+
To theme dimah-s3 on its own, override the `--dimah-s3-*` tokens after
|
|
8
|
+
this import, on `:root` or on any container (see css/shadcn.css). Stock
|
|
9
|
+
shadcn primitives (`Button`, `Attachment`, …) keep using your app
|
|
10
|
+
`--primary` / `--card` tokens.
|
|
10
11
|
*/
|
|
11
12
|
@import "./css/shadcn.css";
|
|
12
13
|
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import { type UseDeleteReturn } from "@dimah-s3/react";
|
|
3
|
-
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.js";
|
|
4
|
-
import { Button } from "../../ui/button.js";
|
|
5
|
-
/** Props for {@link DeleteButton}. Pass a {@link UseDeleteReturn} as `delete`. */
|
|
6
|
-
export type DeleteButtonProps = AttachmentLayoutAliases & {
|
|
7
|
-
delete: UseDeleteReturn;
|
|
8
|
-
/**
|
|
9
|
-
* S3 object key (`api.delete({ route, key })`).
|
|
10
|
-
* Named `objectKey` because React reserves the `key` prop.
|
|
11
|
-
*/
|
|
12
|
-
objectKey: string;
|
|
13
|
-
/** Display file name in the confirmation dialog. */
|
|
14
|
-
fileName?: string;
|
|
15
|
-
/** Display file size in the confirmation dialog. */
|
|
16
|
-
fileSize?: number;
|
|
17
|
-
/** Button label. */
|
|
18
|
-
label?: string;
|
|
19
|
-
/** Custom button content. Replaces default icon + label. */
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
className?: string;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
tooltipText?: string;
|
|
24
|
-
/** Show a toast during delete. @default true */
|
|
25
|
-
toast?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Inline status control.
|
|
28
|
-
* - `true` (default): render below the button
|
|
29
|
-
* - `false`: hide status
|
|
30
|
-
* - `(node) => ReactNode`: wrap or relocate the status node
|
|
31
|
-
*/
|
|
32
|
-
status?: StatusSlot;
|
|
33
|
-
confirmTitle?: string;
|
|
34
|
-
confirmDescription?: string;
|
|
35
|
-
/** Button variant. @default "destructive" */
|
|
36
|
-
variant?: ComponentProps<typeof Button>["variant"];
|
|
37
|
-
/** Button size. @default "default" */
|
|
38
|
-
size?: ComponentProps<typeof Button>["size"];
|
|
39
|
-
/** Extra classes on the trigger button element. */
|
|
40
|
-
buttonClassName?: string;
|
|
41
|
-
};
|
|
42
|
-
export declare function DeleteButton({ delete: del, objectKey, fileName, fileSize, label, children, className, disabled, tooltipText, toast: enableToast, status: statusSlot, confirmTitle, confirmDescription, variant, size, buttonClassName, attachmentSize, attachmentOrientation, }: DeleteButtonProps): import("react").JSX.Element;
|
|
43
|
-
//# sourceMappingURL=delete-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-button.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/delete/delete-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAqBhD,kFAAkF;AAClF,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG;IACxD,MAAM,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6CAA6C;IAC7C,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;IACnD,sCAAsC;IACtC,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7C,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EAAE,GAAG,EACX,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,KAAK,EAAE,WAAkB,EACzB,MAAM,EAAE,UAAiB,EACzB,YAAY,EACZ,kBAAkB,EAClB,OAAuB,EACvB,IAAgB,EAChB,eAAe,EACf,cAAc,EACd,qBAAqB,GACtB,EAAE,iBAAiB,+BAyGnB"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import type { UseNavigateDownloadReturn } from "@dimah-s3/react";
|
|
3
|
-
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.js";
|
|
4
|
-
import { Button } from "../../ui/button.js";
|
|
5
|
-
/** Props for {@link DownloadButton}. Pass a {@link UseNavigateDownloadReturn} as `download`. */
|
|
6
|
-
export type DownloadButtonProps = AttachmentLayoutAliases & {
|
|
7
|
-
download: UseNavigateDownloadReturn;
|
|
8
|
-
/**
|
|
9
|
-
* S3 object key (`api.download({ route, key })`).
|
|
10
|
-
* Named `objectKey` because React reserves the `key` prop.
|
|
11
|
-
*/
|
|
12
|
-
objectKey: string;
|
|
13
|
-
/** Download filename for Content-Disposition. */
|
|
14
|
-
fileName?: string;
|
|
15
|
-
/** Button label. */
|
|
16
|
-
label?: string;
|
|
17
|
-
/** Custom button content. Replaces default icon + label. */
|
|
18
|
-
children?: ReactNode;
|
|
19
|
-
className?: string;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
tooltipText?: string;
|
|
22
|
-
/** Show a toast when download starts. @default true */
|
|
23
|
-
toast?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Inline status control.
|
|
26
|
-
* - `true` (default): render below the button
|
|
27
|
-
* - `false`: hide status
|
|
28
|
-
* - `(node) => ReactNode`: wrap or relocate the status node
|
|
29
|
-
*/
|
|
30
|
-
status?: StatusSlot;
|
|
31
|
-
/** Button variant. @default "outline" */
|
|
32
|
-
variant?: ComponentProps<typeof Button>["variant"];
|
|
33
|
-
/** Button size. @default "default" */
|
|
34
|
-
size?: ComponentProps<typeof Button>["size"];
|
|
35
|
-
/** Extra classes on the trigger button element. */
|
|
36
|
-
buttonClassName?: string;
|
|
37
|
-
};
|
|
38
|
-
export declare function DownloadButton({ download, objectKey, fileName, label, children, className, disabled, tooltipText, toast: enableToast, status: statusSlot, variant, size, buttonClassName, attachmentSize, attachmentOrientation, }: DownloadButtonProps): import("react").JSX.Element;
|
|
39
|
-
//# sourceMappingURL=download-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"download-button.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/download/download-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAQhD,gGAAgG;AAChG,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GAAG;IAC1D,QAAQ,EAAE,yBAAyB,CAAC;IACpC;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,yCAAyC;IACzC,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;IACnD,sCAAsC;IACtC,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7C,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,KAAK,EAAE,WAAkB,EACzB,MAAM,EAAE,UAAiB,EACzB,OAAmB,EACnB,IAAgB,EAChB,eAAe,EACf,cAAc,EACd,qBAAqB,GACtB,EAAE,mBAAmB,+BAiDrB"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import { type UseFetchDownloadReturn } from "@dimah-s3/react";
|
|
3
|
-
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.js";
|
|
4
|
-
import { Button } from "../../ui/button.js";
|
|
5
|
-
/** Props for {@link ProgressDownloadButton}. Pass a {@link UseFetchDownloadReturn} as `download`. */
|
|
6
|
-
export type ProgressDownloadButtonProps = AttachmentLayoutAliases & {
|
|
7
|
-
download: UseFetchDownloadReturn;
|
|
8
|
-
/**
|
|
9
|
-
* S3 object key (`api.download({ route, key })`).
|
|
10
|
-
* Named `objectKey` because React reserves the `key` prop.
|
|
11
|
-
*/
|
|
12
|
-
objectKey: string;
|
|
13
|
-
/** Download filename for Content-Disposition. */
|
|
14
|
-
fileName?: string;
|
|
15
|
-
/** Total file size in bytes (used for progress display). */
|
|
16
|
-
fileSize?: number;
|
|
17
|
-
/** Button label. */
|
|
18
|
-
label?: string;
|
|
19
|
-
/** Custom button content. Replaces default icon + label / progress text. */
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
className?: string;
|
|
22
|
-
fillClassName?: string;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
tooltipText?: string;
|
|
25
|
-
/** Tooltip while downloading (click cancels). @default "Cancel download" */
|
|
26
|
-
cancelTooltipText?: string;
|
|
27
|
-
/** Show toasts during download. @default true */
|
|
28
|
-
toast?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Inline status control.
|
|
31
|
-
* - `true` (default): render below the button
|
|
32
|
-
* - `false`: hide status
|
|
33
|
-
* - `(node) => ReactNode`: wrap or relocate the status node
|
|
34
|
-
*/
|
|
35
|
-
status?: StatusSlot;
|
|
36
|
-
/** Button variant. @default "outline" */
|
|
37
|
-
variant?: ComponentProps<typeof Button>["variant"];
|
|
38
|
-
/** Button size. @default "default" */
|
|
39
|
-
size?: ComponentProps<typeof Button>["size"];
|
|
40
|
-
/** Extra classes on the trigger button element. */
|
|
41
|
-
buttonClassName?: string;
|
|
42
|
-
};
|
|
43
|
-
export declare function ProgressDownloadButton({ download, objectKey, fileName, fileSize, label, children, className, fillClassName, disabled, tooltipText, cancelTooltipText, toast: enableToast, status: statusSlot, variant, size, buttonClassName, attachmentSize, attachmentOrientation, }: ProgressDownloadButtonProps): import("react").JSX.Element;
|
|
44
|
-
//# sourceMappingURL=progress-download-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress-download-button.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/download/progress-download-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAQhD,qGAAqG;AACrG,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,GAAG;IAClE,QAAQ,EAAE,sBAAsB,CAAC;IACjC;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iDAAiD;IACjD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,yCAAyC;IACzC,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;IACnD,sCAAsC;IACtC,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7C,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EACb,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,KAAK,EAAE,WAAkB,EACzB,MAAM,EAAE,UAAiB,EACzB,OAAmB,EACnB,IAAgB,EAChB,eAAe,EACf,cAAc,EACd,qBAAqB,GACtB,EAAE,2BAA2B,+BA4F7B"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import { type UseDeleteReturn, type 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
|
|
@@ -1 +0,0 @@
|
|
|
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;AAEpE,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC/B,MAAM,iBAAiB,CAAC;AAmCzB,+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"}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;;;;;;;yBAuE6B,OAAO;;sBAuC3B,MAAM,GAAG,QAAQ,MACnB,MAAM,WACD,OAAO,SACT,OAAO;;;iBA0CQ,MAAM;uBAAa,MAAM;;;;EAsClD"}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAmB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAkBxE,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,sCAiN1B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { UseUploadReturn } from "@dimah-s3/react";
|
|
2
|
-
import type { AttachmentLayoutAliases } from "../../../lib/attachment-layout.js";
|
|
3
|
-
export type MultiUploadStatusProps = AttachmentLayoutAliases & {
|
|
4
|
-
upload: UseUploadReturn;
|
|
5
|
-
className?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function MultiUploadStatus({ upload, attachmentSize, attachmentOrientation, className, }: MultiUploadStatusProps): import("react").JSX.Element | null;
|
|
8
|
-
//# sourceMappingURL=multi-upload-status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multi-upload-status.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/upload/multi-upload-status.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAmB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAKxE,OAAO,KAAK,EACV,uBAAuB,EAGxB,MAAM,yBAAyB,CAAC;AAOjC,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,GAAG;IAC7D,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,cAAc,EACd,qBAAqB,EACrB,SAAS,GACV,EAAE,sBAAsB,sCAsHxB"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
-
import type { UseUploadReturn } from "@dimah-s3/react";
|
|
3
|
-
import { Button } from "../../ui/button.js";
|
|
4
|
-
import { type AttachmentLayoutAliases, type StatusSlot } from "../../../lib/attachment-layout.js";
|
|
5
|
-
/** Props for {@link UploadButton}. Pass a {@link UseUploadReturn} as `upload`. */
|
|
6
|
-
export type UploadButtonProps = AttachmentLayoutAliases & {
|
|
7
|
-
upload: UseUploadReturn;
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Button label. */
|
|
10
|
-
label?: string;
|
|
11
|
-
/** Custom button content. Replaces default icon + label. */
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
tooltipText?: string;
|
|
15
|
-
/** Show toasts during upload. @default true */
|
|
16
|
-
toast?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Inline status control.
|
|
19
|
-
* - `true` (default): render below the button
|
|
20
|
-
* - `false`: hide status
|
|
21
|
-
* - `(node) => ReactNode`: wrap or relocate the status node
|
|
22
|
-
*/
|
|
23
|
-
status?: StatusSlot;
|
|
24
|
-
/** Button variant. @default "default" */
|
|
25
|
-
variant?: ComponentProps<typeof Button>["variant"];
|
|
26
|
-
/** Button size. @default "default" */
|
|
27
|
-
size?: ComponentProps<typeof Button>["size"];
|
|
28
|
-
/** Extra classes on the trigger button element. */
|
|
29
|
-
buttonClassName?: string;
|
|
30
|
-
};
|
|
31
|
-
export declare function UploadButton({ upload, className, label, children, disabled, tooltipText, toast: enableToast, status: statusSlot, variant, size, buttonClassName, attachmentSize, attachmentOrientation, }: UploadButtonProps): import("react").JSX.Element;
|
|
32
|
-
//# sourceMappingURL=upload-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload-button.d.ts","sourceRoot":"","sources":["../../../../src/components/dimah-s3/upload/upload-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAMhD,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAGjC,kFAAkF;AAClF,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG;IACxD,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,yCAAyC;IACzC,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;IACnD,sCAAsC;IACtC,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7C,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,SAAS,EACT,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,EAAE,WAAkB,EACzB,MAAM,EAAE,UAAiB,EACzB,OAAmB,EACnB,IAAgB,EAChB,eAAe,EACf,cAAc,EACd,qBAAqB,GACtB,EAAE,iBAAiB,+BA2CnB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type UseDeleteReturn } from "@dimah-s3/react";
|
|
2
|
-
export type DeleteToastOptions = {
|
|
3
|
-
enabled?: boolean;
|
|
4
|
-
objectKey: string;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Drives toasts from {@link UseDeleteReturn} phase changes.
|
|
9
|
-
* Only the control whose `objectKey` matches the hook's active key toasts.
|
|
10
|
-
*/
|
|
11
|
-
export declare function useDeleteToast(del: UseDeleteReturn, { enabled, objectKey, displayName }: DeleteToastOptions): void;
|
|
12
|
-
//# sourceMappingURL=use-delete-toast.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-delete-toast.d.ts","sourceRoot":"","sources":["../../src/hooks/use-delete-toast.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAI5E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,eAAe,EACpB,EAAE,OAAc,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,kBAAkB,QAuC/D"}
|