@powerhousedao/document-engineering 1.30.0 → 1.31.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/dist/src/scalars/components/phone-number-field/phone-number-field.d.ts.map +1 -1
- package/dist/src/scalars/components/phone-number-field/phone-number-field.js +18 -2
- package/dist/src/scalars/components/phone-number-field/phone-number-field.js.map +1 -1
- package/dist/src/ui/components/data-entry/amount-input/amount-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/amount-input/amount-input.js +2 -2
- package/dist/src/ui/components/data-entry/amount-input/amount-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.d.ts +7 -0
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.js +64 -0
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/examples/index.d.ts +2 -0
- package/dist/src/ui/components/data-entry/file-input/examples/index.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/examples/index.js +2 -0
- package/dist/src/ui/components/data-entry/file-input/examples/index.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.js +1 -1
- package/dist/src/ui/components/data-entry/file-input/file-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts +3 -3
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js +16 -9
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.d.ts +9 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.js +10 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-corrupted.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.d.ts +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.js +11 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-loading.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.d.ts +6 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.js +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/placeholder-unsupported.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.d.ts +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.js +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-audio.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts +2 -4
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js +3 -8
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.d.ts +2 -2
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.js +1 -2
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-header.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts +2 -4
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js +3 -8
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.d.ts +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.js +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-video.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/types.d.ts +3 -5
- package/dist/src/ui/components/data-entry/file-input/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/types.js +1 -1
- package/dist/src/ui/components/data-entry/file-input/types.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/useFetchQuery.d.ts +11 -0
- package/dist/src/ui/components/data-entry/file-input/useFetchQuery.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/useFetchQuery.js +30 -0
- package/dist/src/ui/components/data-entry/file-input/useFetchQuery.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts +3 -4
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.js +30 -36
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/utils.d.ts +32 -4
- package/dist/src/ui/components/data-entry/file-input/utils.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/utils.js +142 -57
- package/dist/src/ui/components/data-entry/file-input/utils.js.map +1 -1
- package/dist/src/ui/components/data-entry/number-input/number-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/number-input/number-input.js +5 -5
- package/dist/src/ui/components/data-entry/number-input/number-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/number-input/types.d.ts +1 -0
- package/dist/src/ui/components/data-entry/number-input/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js +3 -6
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.d.ts +15 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.js +117 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-diff.js.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.d.ts +14 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.js +8 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/phone-number-input-diff.js.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.d.ts +12 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.js +9 -0
- package/dist/src/ui/components/data-entry/phone-number-input/subcomponents/splitted-phone-number.js.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js +37 -13
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js.map +1 -1
- package/dist/src/ui/components/icon-components/BrokenAudio.d.ts +7 -0
- package/dist/src/ui/components/icon-components/BrokenAudio.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/BrokenAudio.js +7 -0
- package/dist/src/ui/components/icon-components/BrokenAudio.js.map +1 -0
- package/dist/src/ui/components/icon-components/BrokenVideo.d.ts +7 -0
- package/dist/src/ui/components/icon-components/BrokenVideo.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/BrokenVideo.js +7 -0
- package/dist/src/ui/components/icon-components/BrokenVideo.js.map +1 -0
- package/dist/src/ui/components/icon-components/PlaceholderAudio.d.ts +7 -0
- package/dist/src/ui/components/icon-components/PlaceholderAudio.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/PlaceholderAudio.js +7 -0
- package/dist/src/ui/components/icon-components/PlaceholderAudio.js.map +1 -0
- package/dist/src/ui/components/icon-components/PlaceholderVideo.d.ts +7 -0
- package/dist/src/ui/components/icon-components/PlaceholderVideo.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/PlaceholderVideo.js +7 -0
- package/dist/src/ui/components/icon-components/PlaceholderVideo.js.map +1 -0
- package/dist/src/ui/components/icon-components/index.d.ts +1 -1
- package/dist/src/ui/components/icon-components/index.d.ts.map +1 -1
- package/dist/src/ui/components/icon-components/index.js +12 -0
- package/dist/src/ui/components/icon-components/index.js.map +1 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js +2 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js.map +1 -1
- package/dist/style.css +145 -12
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.d.ts +0 -9
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.js +0 -13
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.js.map +0 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.d.ts +0 -9
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.js +0 -13
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.js.map +0 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.d.ts +0 -8
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.js +0 -11
- package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type PreviewStatus } from '../types.js';
|
|
2
|
-
interface FilePreviewStateProps {
|
|
3
|
-
status: PreviewStatus;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const PlaceHolderImage: ({ status, onClose, className }: FilePreviewStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=place-holder-image.d.ts.map
|
package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-holder-image.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/place-holder-image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAA;AAOhE,UAAU,qBAAqB;IAC7B,MAAM,EAAE,aAAa,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,gBAAgB,GAAI,gCAAgC,qBAAqB,4CAoCrF,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { PREVIEW_STATUS } from '../types.js';
|
|
3
|
-
import { STATUS_CONFIG_IMAGE } from '../utils.js';
|
|
4
|
-
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
5
|
-
import { Icon } from '../../../icon/index.js';
|
|
6
|
-
import PreviewHeader from './preview-header.js';
|
|
7
|
-
import LoadingBar from './loading-bar.js';
|
|
8
|
-
export const PlaceHolderImage = ({ status, onClose, className }) => {
|
|
9
|
-
const config = STATUS_CONFIG_IMAGE[status];
|
|
10
|
-
const icon = config.icon;
|
|
11
|
-
return (_jsxs("div", { className: cn('flex flex-col bg-white rounded-md shadow-[1px_4px_15px_0px_rgba(74,88,115,0.25)] px-6 py-4 gap-4', className), children: [_jsx(PreviewHeader, { status: status, onClose: onClose, title: "Image Preview" }), _jsxs("div", { className: "flex flex-col items-center justify-center bg-gray-100 w-full rounded-md overflow-hidden flex-1", children: [icon && (_jsx("div", { className: "relative", children: _jsx(Icon, { name: icon, size: 128, className: "text-gray-300" }) })), _jsxs("div", { className: "flex flex-col items-center justify-center gap-4", children: [config.title && _jsx("h3", { className: "text-xl font-bold leading-6 text-gray-500", children: config.title }), status === PREVIEW_STATUS.LOADING && _jsx(LoadingBar, { progress: 50, className: "w-[272px]" }), status !== PREVIEW_STATUS.CORRUPTED_FILE && config.message && (_jsx("p", { className: "text-center text-sm text-gray-500 mx-auto max-w-[296px] whitespace-pre-line", children: config.message }))] })] }), status === PREVIEW_STATUS.CORRUPTED_FILE && (_jsx("div", { className: " border-gray-200", children: _jsx("p", { className: "text-xs text-red-900 font-normal leading-4.5", children: config.message }) }))] }));
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=place-holder-image.js.map
|
package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-image.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-holder-image.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/place-holder-image.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAsB,MAAM,aAAa,CAAA;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EA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
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type PreviewStatus } from '../types.js';
|
|
2
|
-
interface PlaceHolderPdfProps {
|
|
3
|
-
status: PreviewStatus;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const PlaceHolderPdf: ({ status, onClose, className }: PlaceHolderPdfProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=place-holder-pdf.d.ts.map
|
package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-holder-pdf.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAA;AAMhE,UAAU,mBAAmB;IAC3B,MAAM,EAAE,aAAa,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,cAAc,GAAI,gCAAgC,mBAAmB,4CA0CjF,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import PreviewHeader from './preview-header.js';
|
|
3
|
-
import { PREVIEW_STATUS } from '../types.js';
|
|
4
|
-
import LoadingBar from './loading-bar.js';
|
|
5
|
-
import { STATUS_CONFIG_PDF } from '../utils.js';
|
|
6
|
-
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
7
|
-
import { Icon } from '../../../icon/index.js';
|
|
8
|
-
export const PlaceHolderPdf = ({ status, onClose, className }) => {
|
|
9
|
-
const config = STATUS_CONFIG_PDF[status];
|
|
10
|
-
const icon = config.icon;
|
|
11
|
-
return (_jsxs("div", { className: cn('flex flex-col bg-white rounded-md shadow-[1px_4px_15px_0px_rgba(37, 44, 56, 0.25)] px-6 py-4 gap-4 border border-gray-200 h-[652px] w-[500px]', className), children: [_jsx(PreviewHeader, { status: status, onClose: onClose }), _jsxs("div", { className: cn('flex-1 min-h-0 flex flex-col items-center justify-center bg-gray-100 w-full overflow-auto rounded-md', status === PREVIEW_STATUS.LOADING && 'gap-8', status !== PREVIEW_STATUS.LOADING && 'gap-4'), children: [icon && (_jsx("div", { className: "relative", children: _jsx(Icon, { name: icon, size: 256, className: "text-gray-300" }) })), _jsxs("div", { className: "flex flex-col items-center justify-center gap-4", children: [config.title && _jsx("h3", { className: "text-xl font-bold leading-6 text-gray-500", children: config.title }), status === PREVIEW_STATUS.LOADING && _jsx(LoadingBar, { progress: 50, className: "w-[375px]" }), status === PREVIEW_STATUS.UNSUPPORTED_FORMAT && (_jsx("p", { className: "text-center text-sm text-gray-500 mx-auto max-w-[375px] whitespace-pre-line", children: config.message }))] })] }), status === PREVIEW_STATUS.CORRUPTED_FILE && (_jsx("div", { className: " border-gray-200", children: _jsx("p", { className: "text-xs text-red-900 font-normal leading-4.5", children: config.message }) }))] }));
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=place-holder-pdf.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-holder-pdf.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/place-holder-pdf.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAsB,MAAM,aAAa,CAAA;AAChE,OAAO,UAAU,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAQ7C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,M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reviewStatus } from '../types.js';
|
|
2
|
-
interface PlaceHolderPdfProps {
|
|
3
|
-
status: PreviewStatus;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const UnsupportedFile: ({ status, onClose }: PlaceHolderPdfProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=place-holder-unsupported.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-holder-unsupported.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAKhD,UAAU,mBAAmB;IAC3B,MAAM,EAAE,aAAa,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,eAAe,GAAI,qBAAqB,mBAAmB,4CA4BvE,CAAA"}
|
package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import PreviewHeader from './preview-header.js';
|
|
3
|
-
import { STATUS_CONFIG_PDF } from '../utils.js';
|
|
4
|
-
import { cn } from '../../../../../scalars/lib/utils.js';
|
|
5
|
-
import { Icon } from '../../../icon/index.js';
|
|
6
|
-
export const UnsupportedFile = ({ status, onClose }) => {
|
|
7
|
-
const config = STATUS_CONFIG_PDF.unsupported_format;
|
|
8
|
-
const icon = config.icon;
|
|
9
|
-
return (_jsxs("div", { className: "flex flex-col bg-white rounded-md shadow-[1px_4px_15px_0px_rgba(37, 44, 56, 0.25)] px-6 py-4 gap-4 border border-gray-200 h-[652px] w-[500px]", children: [_jsx(PreviewHeader, { status: status, onClose: onClose }), _jsxs("div", { className: cn('flex-1 min-h-0 flex flex-col items-center justify-center bg-gray-100 w-full overflow-auto rounded-md'), children: [icon && (_jsx("div", { className: "relative", children: _jsx(Icon, { name: icon, size: 256, className: "text-gray-300" }) })), _jsxs("div", { className: "flex flex-col items-center justify-center gap-4", children: [config.title && _jsx("h3", { className: "text-xl font-bold leading-6 text-gray-500", children: config.title }), _jsx("p", { className: "text-center text-sm text-gray-500 mx-auto max-w-[375px] whitespace-pre-line", children: config.message })] })] })] }));
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=place-holder-unsupported.js.map
|
package/dist/src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"place-holder-unsupported.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/data-entry/file-input/sub-components/place-holder-unsupported.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAO7C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAuB,EAAE,EAAE;IAC1E,MAAM,MAAM,GAAG,iBAAiB,CAAC,kBAAkB,CAAA;IACnD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAA;IAExB,OAAO,CACL,eAAK,SAAS,EAAC,gJAAgJ,aAC7J,KAAC,aAAa,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,EACnD,eACE,SAAS,EAAE,EAAE,CACX,sGAAsG,CACvG,aAEA,IAAI,IAAI,CACP,cAAK,SAAS,EAAC,UAAU,YACvB,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAC,eAAe,GAAG,GACrD,CACP,EAED,eAAK,SAAS,EAAC,iDAAiD,aAC7D,MAAM,CAAC,KAAK,IAAI,aAAI,SAAS,EAAC,2CAA2C,YAAE,MAAM,CAAC,KAAK,GAAM,EAE9F,YAAG,SAAS,EAAC,6EAA6E,YACvF,MAAM,CAAC,OAAO,GACb,IACA,IACF,IACF,CACP,CAAA;AACH,CAAC,CAAA"}
|