@kopexa/sight 17.12.1 → 17.13.1
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/chunk-5LLYOCGQ.mjs +153 -0
- package/dist/chunk-6IAHC3UK.mjs +1 -0
- package/dist/chunk-6XUZNN3X.mjs +1 -0
- package/dist/chunk-7KISSD3Q.mjs +1 -0
- package/dist/chunk-BJ7QPNKW.mjs +242 -0
- package/dist/chunk-CZNF6WPR.mjs +33 -0
- package/dist/chunk-DU3OVIBY.mjs +16 -0
- package/dist/chunk-DWZQIPCX.mjs +301 -0
- package/dist/chunk-EAJ3DTJ3.mjs +59 -0
- package/dist/chunk-FBTSAODG.mjs +25 -0
- package/dist/chunk-G57FFIKP.mjs +48 -0
- package/dist/chunk-GR3VEF4M.mjs +1 -0
- package/dist/chunk-HISY6ZIK.mjs +1 -0
- package/dist/chunk-HUHVPC6T.mjs +17 -0
- package/dist/chunk-HVOS7SXF.mjs +15 -0
- package/dist/chunk-PKG2E3MX.mjs +1 -0
- package/dist/chunk-POVIOFVF.mjs +18 -0
- package/dist/chunk-RK7G2GYB.mjs +45 -0
- package/dist/chunk-SHETEVHO.mjs +178 -0
- package/dist/chunk-UWC3Z7SY.mjs +1 -0
- package/dist/chunk-UWQG4HGJ.mjs +13 -0
- package/dist/chunk-XL2RCXMY.mjs +26 -0
- package/dist/chunk-XPDEN2RV.mjs +1 -0
- package/dist/components/blankstate/blankstate.d.mts +14 -0
- package/dist/components/blankstate/blankstate.d.ts +14 -0
- package/dist/components/blankstate/blankstate.js +69 -0
- package/dist/components/blankstate/blankstate.mjs +7 -0
- package/dist/components/blankstate/index.d.mts +4 -0
- package/dist/components/blankstate/index.d.ts +4 -0
- package/dist/components/blankstate/index.js +71 -0
- package/dist/components/blankstate/index.mjs +8 -0
- package/dist/components/code/code.d.mts +9 -0
- package/dist/components/code/code.d.ts +9 -0
- package/dist/components/code/code.js +49 -0
- package/dist/components/code/code.mjs +7 -0
- package/dist/components/code/index.d.mts +4 -0
- package/dist/components/code/index.d.ts +4 -0
- package/dist/components/code/index.js +51 -0
- package/dist/components/code/index.mjs +8 -0
- package/dist/components/dialog/dialog.d.mts +44 -0
- package/dist/components/dialog/dialog.d.ts +44 -0
- package/dist/components/dialog/dialog.js +213 -0
- package/dist/components/dialog/dialog.mjs +31 -0
- package/dist/components/dialog/index.d.mts +22 -0
- package/dist/components/dialog/index.d.ts +22 -0
- package/dist/components/dialog/index.js +232 -0
- package/dist/components/dialog/index.mjs +35 -0
- package/dist/components/dialog/namespace.d.mts +5 -0
- package/dist/components/dialog/namespace.d.ts +5 -0
- package/dist/components/dialog/namespace.js +213 -0
- package/dist/components/dialog/namespace.mjs +29 -0
- package/dist/components/dialog/transition.d.mts +5 -0
- package/dist/components/dialog/transition.d.ts +5 -0
- package/dist/components/dialog/transition.js +132 -0
- package/dist/components/dialog/transition.mjs +106 -0
- package/dist/components/file-upload/avatar-upload.d.mts +54 -0
- package/dist/components/file-upload/avatar-upload.d.ts +54 -0
- package/dist/components/file-upload/avatar-upload.js +841 -0
- package/dist/components/file-upload/avatar-upload.mjs +15 -0
- package/dist/components/file-upload/index.d.mts +5 -0
- package/dist/components/file-upload/index.d.ts +5 -0
- package/dist/components/file-upload/index.js +843 -0
- package/dist/components/file-upload/index.mjs +16 -0
- package/dist/components/file-upload/messages.d.mts +39 -0
- package/dist/components/file-upload/messages.d.ts +39 -0
- package/dist/components/file-upload/messages.js +68 -0
- package/dist/components/file-upload/messages.mjs +7 -0
- package/dist/components/file-upload/utils/data-url-to-file.d.mts +3 -0
- package/dist/components/file-upload/utils/data-url-to-file.d.ts +3 -0
- package/dist/components/file-upload/utils/data-url-to-file.js +38 -0
- package/dist/components/file-upload/utils/data-url-to-file.mjs +7 -0
- package/dist/components/file-upload/utils/format-accept-types.d.mts +8 -0
- package/dist/components/file-upload/utils/format-accept-types.d.ts +8 -0
- package/dist/components/file-upload/utils/format-accept-types.js +82 -0
- package/dist/components/file-upload/utils/format-accept-types.mjs +7 -0
- package/dist/components/file-upload/utils/is-image-like.d.mts +3 -0
- package/dist/components/file-upload/utils/is-image-like.d.ts +3 -0
- package/dist/components/file-upload/utils/is-image-like.js +36 -0
- package/dist/components/file-upload/utils/is-image-like.mjs +7 -0
- package/dist/components/index.d.mts +67 -0
- package/dist/components/index.d.ts +67 -0
- package/dist/components/index.js +1137 -0
- package/dist/components/index.mjs +92 -0
- package/dist/components/skeleton/index.d.mts +5 -0
- package/dist/components/skeleton/index.d.ts +5 -0
- package/dist/components/skeleton/index.js +53 -0
- package/dist/components/skeleton/index.mjs +12 -0
- package/dist/components/skeleton/skeleton-avatar.d.mts +9 -0
- package/dist/components/skeleton/skeleton-avatar.d.ts +9 -0
- package/dist/components/skeleton/skeleton-avatar.js +51 -0
- package/dist/components/skeleton/skeleton-avatar.mjs +8 -0
- package/dist/components/skeleton/skeleton.d.mts +7 -0
- package/dist/components/skeleton/skeleton.d.ts +7 -0
- package/dist/components/skeleton/skeleton.js +39 -0
- package/dist/components/skeleton/skeleton.mjs +7 -0
- package/dist/components/stat/index.d.mts +4 -0
- package/dist/components/stat/index.d.ts +4 -0
- package/dist/components/stat/index.js +186 -0
- package/dist/components/stat/index.mjs +24 -0
- package/dist/components/stat/stat.d.mts +36 -0
- package/dist/components/stat/stat.d.ts +36 -0
- package/dist/components/stat/stat.js +185 -0
- package/dist/components/stat/stat.mjs +24 -0
- package/dist/components/textarea/index.d.mts +4 -0
- package/dist/components/textarea/index.d.ts +4 -0
- package/dist/components/textarea/index.js +42 -0
- package/dist/components/textarea/index.mjs +8 -0
- package/dist/components/textarea/textarea.d.mts +8 -0
- package/dist/components/textarea/textarea.d.ts +8 -0
- package/dist/components/textarea/textarea.js +40 -0
- package/dist/components/textarea/textarea.mjs +7 -0
- package/dist/hooks/index.d.mts +2 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +341 -0
- package/dist/hooks/index.mjs +9 -0
- package/dist/hooks/use-file-upload/index.d.mts +47 -0
- package/dist/hooks/use-file-upload/index.d.ts +47 -0
- package/dist/hooks/use-file-upload/index.js +340 -0
- package/dist/hooks/use-file-upload/index.mjs +9 -0
- package/dist/hooks/use-file-upload/messages.d.mts +19 -0
- package/dist/hooks/use-file-upload/messages.d.ts +19 -0
- package/dist/hooks/use-file-upload/messages.js +48 -0
- package/dist/hooks/use-file-upload/messages.mjs +7 -0
- package/dist/index.d.mts +14 -8
- package/dist/index.d.ts +14 -8
- package/dist/index.js +1108 -32
- package/dist/index.mjs +82 -18
- package/dist/index.ts.backup.d.mts +14 -8
- package/dist/index.ts.backup.d.ts +14 -8
- package/dist/index.ts.backup.js +1108 -32
- package/dist/index.ts.backup.mjs +82 -18
- package/package.json +60 -64
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../../chunk-XPDEN2RV.mjs";
|
|
3
|
+
import {
|
|
4
|
+
AvatarUpload
|
|
5
|
+
} from "../../chunk-BJ7QPNKW.mjs";
|
|
6
|
+
import "../../chunk-HVOS7SXF.mjs";
|
|
7
|
+
import "../../chunk-EAJ3DTJ3.mjs";
|
|
8
|
+
import "../../chunk-UWQG4HGJ.mjs";
|
|
9
|
+
import "../../chunk-CZNF6WPR.mjs";
|
|
10
|
+
import "../../chunk-SHETEVHO.mjs";
|
|
11
|
+
import "../../chunk-RK7G2GYB.mjs";
|
|
12
|
+
import "../../chunk-DWZQIPCX.mjs";
|
|
13
|
+
import "../../chunk-FBTSAODG.mjs";
|
|
14
|
+
export {
|
|
15
|
+
AvatarUpload
|
|
16
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const messages: {
|
|
2
|
+
change_avatar: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
upload_avatar: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
remove_avatar: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
avatar_uploaded: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
accepted_file_types: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
cancel: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
apply_crop: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { messages };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const messages: {
|
|
2
|
+
change_avatar: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
upload_avatar: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
remove_avatar: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
avatar_uploaded: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
accepted_file_types: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
cancel: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
apply_crop: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { messages };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/components/file-upload/messages.ts
|
|
22
|
+
var messages_exports = {};
|
|
23
|
+
__export(messages_exports, {
|
|
24
|
+
messages: () => messages
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(messages_exports);
|
|
27
|
+
var import_i18n = require("@kopexa/i18n");
|
|
28
|
+
var messages = (0, import_i18n.defineMessages)({
|
|
29
|
+
change_avatar: {
|
|
30
|
+
id: "file_upload.change_avatar",
|
|
31
|
+
defaultMessage: "Change Avatar",
|
|
32
|
+
description: "Label for changing the avatar image"
|
|
33
|
+
},
|
|
34
|
+
upload_avatar: {
|
|
35
|
+
id: "file_upload.upload_avatar",
|
|
36
|
+
defaultMessage: "Upload Avatar",
|
|
37
|
+
description: "Label for uploading a new avatar image"
|
|
38
|
+
},
|
|
39
|
+
remove_avatar: {
|
|
40
|
+
id: "file_upload.remove_avatar",
|
|
41
|
+
defaultMessage: "Remove Avatar",
|
|
42
|
+
description: "Label for removing the current avatar image"
|
|
43
|
+
},
|
|
44
|
+
avatar_uploaded: {
|
|
45
|
+
id: "file_upload.avatar_uploaded",
|
|
46
|
+
defaultMessage: "Avatar uploaded",
|
|
47
|
+
description: "Message displayed when the avatar is uploaded successfully"
|
|
48
|
+
},
|
|
49
|
+
accepted_file_types: {
|
|
50
|
+
id: "file_upload.accepted_file_types",
|
|
51
|
+
defaultMessage: "{types}{size, select, none {} other { up to {size}}}",
|
|
52
|
+
description: "Message indicating the accepted file types for upload"
|
|
53
|
+
},
|
|
54
|
+
cancel: {
|
|
55
|
+
id: "file_upload.cancel",
|
|
56
|
+
defaultMessage: "Cancel",
|
|
57
|
+
description: "Label for canceling the file upload"
|
|
58
|
+
},
|
|
59
|
+
apply_crop: {
|
|
60
|
+
id: "file_upload.apply_crop",
|
|
61
|
+
defaultMessage: "Apply",
|
|
62
|
+
description: "Label for applying the crop to the image"
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
+
0 && (module.exports = {
|
|
67
|
+
messages
|
|
68
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/components/file-upload/utils/data-url-to-file.ts
|
|
22
|
+
var data_url_to_file_exports = {};
|
|
23
|
+
__export(data_url_to_file_exports, {
|
|
24
|
+
dataUrlToFile: () => dataUrlToFile
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(data_url_to_file_exports);
|
|
27
|
+
async function dataUrlToFile(dataUrl, fileName, typeHint) {
|
|
28
|
+
const res = await fetch(dataUrl);
|
|
29
|
+
const blob = await res.blob();
|
|
30
|
+
const type = typeHint || blob.type || "image/png";
|
|
31
|
+
const ext = type.includes("jpeg") ? "jpg" : type.split("/")[1] || "png";
|
|
32
|
+
const safeName = fileName.replace(/\.[^.]+$/, "");
|
|
33
|
+
return new File([blob], `${safeName}-cropped.${ext}`, { type });
|
|
34
|
+
}
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
dataUrlToFile
|
|
38
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/components/file-upload/utils/format-accept-types.ts
|
|
22
|
+
var format_accept_types_exports = {};
|
|
23
|
+
__export(format_accept_types_exports, {
|
|
24
|
+
formatAcceptedTypes: () => formatAcceptedTypes
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(format_accept_types_exports);
|
|
27
|
+
var WILDCARD_GROUPS = {
|
|
28
|
+
"image/*": "common image formats",
|
|
29
|
+
"audio/*": "common audio formats",
|
|
30
|
+
"video/*": "common video formats",
|
|
31
|
+
"application/*": "common document formats"
|
|
32
|
+
};
|
|
33
|
+
var MIME_TO_LABEL = {
|
|
34
|
+
"image/png": "PNG",
|
|
35
|
+
"image/jpeg": "JPG",
|
|
36
|
+
"image/jpg": "JPG",
|
|
37
|
+
"application/pdf": "PDF",
|
|
38
|
+
"text/csv": "CSV",
|
|
39
|
+
"text/plain": "TXT"
|
|
40
|
+
};
|
|
41
|
+
var EXT_TO_LABEL = {
|
|
42
|
+
".png": "PNG",
|
|
43
|
+
".jpg": "JPG",
|
|
44
|
+
".jpeg": "JPG",
|
|
45
|
+
".pdf": "PDF",
|
|
46
|
+
".csv": "CSV",
|
|
47
|
+
".txt": "TXT"
|
|
48
|
+
};
|
|
49
|
+
function normalizeToken(token) {
|
|
50
|
+
return token.trim().toLowerCase();
|
|
51
|
+
}
|
|
52
|
+
function formatAcceptedTypes(accept) {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
if (!accept || typeof accept !== "string") return "";
|
|
55
|
+
const tokens = accept.split(",").map(normalizeToken).filter(Boolean);
|
|
56
|
+
const labels = [];
|
|
57
|
+
for (const token of tokens) {
|
|
58
|
+
if (WILDCARD_GROUPS[token]) {
|
|
59
|
+
labels.push(WILDCARD_GROUPS[token]);
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
if (token.startsWith(".")) {
|
|
63
|
+
labels.push(
|
|
64
|
+
(_a = EXT_TO_LABEL[token]) != null ? _a : token.replace(/^\./, "").toUpperCase()
|
|
65
|
+
);
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (token.includes("/")) {
|
|
69
|
+
labels.push((_b = MIME_TO_LABEL[token]) != null ? _b : token.split("/")[1].toUpperCase());
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const seen = /* @__PURE__ */ new Set();
|
|
73
|
+
return labels.filter((x) => {
|
|
74
|
+
if (seen.has(x)) return false;
|
|
75
|
+
seen.add(x);
|
|
76
|
+
return true;
|
|
77
|
+
}).join(", ");
|
|
78
|
+
}
|
|
79
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
80
|
+
0 && (module.exports = {
|
|
81
|
+
formatAcceptedTypes
|
|
82
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/components/file-upload/utils/is-image-like.ts
|
|
22
|
+
var is_image_like_exports = {};
|
|
23
|
+
__export(is_image_like_exports, {
|
|
24
|
+
isImageLike: () => isImageLike
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(is_image_like_exports);
|
|
27
|
+
function isImageLike(file) {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
if ((_a = file.type) == null ? void 0 : _a.startsWith("image/")) return true;
|
|
30
|
+
const name = ((_b = file.name) == null ? void 0 : _b.toLowerCase()) || "";
|
|
31
|
+
return name.endsWith(".png") || name.endsWith(".jpg") || name.endsWith(".jpeg") || name.endsWith(".webp");
|
|
32
|
+
}
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
isImageLike
|
|
36
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export { Blankstate, BlankstateProps } from './blankstate/blankstate.mjs';
|
|
2
|
+
export { Code, CodeProps } from './code/code.mjs';
|
|
3
|
+
export { Dialog } from './dialog/index.mjs';
|
|
4
|
+
export { AvatarUpload, AvatarUploadProps } from './file-upload/avatar-upload.mjs';
|
|
5
|
+
export { Skeleton, SkeletonProps } from './skeleton/skeleton.mjs';
|
|
6
|
+
export { SkeletonAvatar, SkeletonAvatarProps } from './skeleton/skeleton-avatar.mjs';
|
|
7
|
+
export { Stat, StatDownIndicator, StatDownIndicatorProps, StatGroup, StatGroupProps, StatHelpText, StatHelpTextProps, StatLabel, StatLabelProps, StatRoot, StatRootProps, StatUpIndicator, StatUpIndicatorProps, StatValueText, StatValueTextProps, StatValueUnit, StatValueUnitProps } from './stat/stat.mjs';
|
|
8
|
+
export { Textarea, TextareaProps } from './textarea/textarea.mjs';
|
|
9
|
+
export { DialogBody, DialogBodyProps, DialogClose, DialogCloseProps, DialogCloseTrigger, DialogCloseTriggerProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPortal, DialogPortalProps, DialogRoot, DialogRootProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps, useDialogContext } from './dialog/dialog.mjs';
|
|
10
|
+
import '@kopexa/accordion';
|
|
11
|
+
import '@kopexa/alert-dialog';
|
|
12
|
+
import '@kopexa/assistant';
|
|
13
|
+
import '@kopexa/audit-info';
|
|
14
|
+
import '@kopexa/autocomplete';
|
|
15
|
+
import '@kopexa/avatar';
|
|
16
|
+
import '@kopexa/button';
|
|
17
|
+
import '@kopexa/calendar';
|
|
18
|
+
import '@kopexa/callout';
|
|
19
|
+
import '@kopexa/card';
|
|
20
|
+
import '@kopexa/checkbox';
|
|
21
|
+
import '@kopexa/chip';
|
|
22
|
+
import '@kopexa/color-picker';
|
|
23
|
+
import '@kopexa/combobox';
|
|
24
|
+
import '@kopexa/command';
|
|
25
|
+
import '@kopexa/data-grid';
|
|
26
|
+
import '@kopexa/date-picker';
|
|
27
|
+
import '@kopexa/drawer';
|
|
28
|
+
import '@kopexa/dropdown-menu';
|
|
29
|
+
import '@kopexa/editable-text';
|
|
30
|
+
import '@kopexa/filter';
|
|
31
|
+
import '@kopexa/heading';
|
|
32
|
+
import '@kopexa/hover-card';
|
|
33
|
+
import '@kopexa/image-crop';
|
|
34
|
+
import '@kopexa/infotip';
|
|
35
|
+
import '@kopexa/input';
|
|
36
|
+
import '@kopexa/integration-card';
|
|
37
|
+
import '@kopexa/label';
|
|
38
|
+
import '@kopexa/loading';
|
|
39
|
+
import '@kopexa/mapped-controls';
|
|
40
|
+
import '@kopexa/navigation';
|
|
41
|
+
import '@kopexa/page-header';
|
|
42
|
+
import '@kopexa/page-layout';
|
|
43
|
+
import '@kopexa/popover';
|
|
44
|
+
import '@kopexa/preview-card';
|
|
45
|
+
import '@kopexa/resizable';
|
|
46
|
+
import '@kopexa/risk-badge';
|
|
47
|
+
import '@kopexa/risk-indicator';
|
|
48
|
+
import '@kopexa/scroll-area';
|
|
49
|
+
import '@kopexa/section-row';
|
|
50
|
+
import '@kopexa/select';
|
|
51
|
+
import '@kopexa/separator';
|
|
52
|
+
import '@kopexa/shared-utils';
|
|
53
|
+
import '@kopexa/sidebar';
|
|
54
|
+
import '@kopexa/spinner';
|
|
55
|
+
import '@kopexa/split-page-layout';
|
|
56
|
+
import '@kopexa/switch';
|
|
57
|
+
import '@kopexa/tab-nav';
|
|
58
|
+
import '@kopexa/table';
|
|
59
|
+
import '@kopexa/tabs';
|
|
60
|
+
import '@kopexa/toggle-row';
|
|
61
|
+
import '@kopexa/toolbar';
|
|
62
|
+
import '@kopexa/tooltip';
|
|
63
|
+
import '../hooks/use-file-upload/index.mjs';
|
|
64
|
+
import 'react/jsx-runtime';
|
|
65
|
+
import '@kopexa/theme';
|
|
66
|
+
import 'react';
|
|
67
|
+
import '@base-ui/react/dialog';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export { Blankstate, BlankstateProps } from './blankstate/blankstate.js';
|
|
2
|
+
export { Code, CodeProps } from './code/code.js';
|
|
3
|
+
export { Dialog } from './dialog/index.js';
|
|
4
|
+
export { AvatarUpload, AvatarUploadProps } from './file-upload/avatar-upload.js';
|
|
5
|
+
export { Skeleton, SkeletonProps } from './skeleton/skeleton.js';
|
|
6
|
+
export { SkeletonAvatar, SkeletonAvatarProps } from './skeleton/skeleton-avatar.js';
|
|
7
|
+
export { Stat, StatDownIndicator, StatDownIndicatorProps, StatGroup, StatGroupProps, StatHelpText, StatHelpTextProps, StatLabel, StatLabelProps, StatRoot, StatRootProps, StatUpIndicator, StatUpIndicatorProps, StatValueText, StatValueTextProps, StatValueUnit, StatValueUnitProps } from './stat/stat.js';
|
|
8
|
+
export { Textarea, TextareaProps } from './textarea/textarea.js';
|
|
9
|
+
export { DialogBody, DialogBodyProps, DialogClose, DialogCloseProps, DialogCloseTrigger, DialogCloseTriggerProps, DialogContent, DialogContentProps, DialogDescription, DialogDescriptionProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogOverlay, DialogOverlayProps, DialogPortal, DialogPortalProps, DialogRoot, DialogRootProps, DialogTitle, DialogTitleProps, DialogTrigger, DialogTriggerProps, useDialogContext } from './dialog/dialog.js';
|
|
10
|
+
import '@kopexa/accordion';
|
|
11
|
+
import '@kopexa/alert-dialog';
|
|
12
|
+
import '@kopexa/assistant';
|
|
13
|
+
import '@kopexa/audit-info';
|
|
14
|
+
import '@kopexa/autocomplete';
|
|
15
|
+
import '@kopexa/avatar';
|
|
16
|
+
import '@kopexa/button';
|
|
17
|
+
import '@kopexa/calendar';
|
|
18
|
+
import '@kopexa/callout';
|
|
19
|
+
import '@kopexa/card';
|
|
20
|
+
import '@kopexa/checkbox';
|
|
21
|
+
import '@kopexa/chip';
|
|
22
|
+
import '@kopexa/color-picker';
|
|
23
|
+
import '@kopexa/combobox';
|
|
24
|
+
import '@kopexa/command';
|
|
25
|
+
import '@kopexa/data-grid';
|
|
26
|
+
import '@kopexa/date-picker';
|
|
27
|
+
import '@kopexa/drawer';
|
|
28
|
+
import '@kopexa/dropdown-menu';
|
|
29
|
+
import '@kopexa/editable-text';
|
|
30
|
+
import '@kopexa/filter';
|
|
31
|
+
import '@kopexa/heading';
|
|
32
|
+
import '@kopexa/hover-card';
|
|
33
|
+
import '@kopexa/image-crop';
|
|
34
|
+
import '@kopexa/infotip';
|
|
35
|
+
import '@kopexa/input';
|
|
36
|
+
import '@kopexa/integration-card';
|
|
37
|
+
import '@kopexa/label';
|
|
38
|
+
import '@kopexa/loading';
|
|
39
|
+
import '@kopexa/mapped-controls';
|
|
40
|
+
import '@kopexa/navigation';
|
|
41
|
+
import '@kopexa/page-header';
|
|
42
|
+
import '@kopexa/page-layout';
|
|
43
|
+
import '@kopexa/popover';
|
|
44
|
+
import '@kopexa/preview-card';
|
|
45
|
+
import '@kopexa/resizable';
|
|
46
|
+
import '@kopexa/risk-badge';
|
|
47
|
+
import '@kopexa/risk-indicator';
|
|
48
|
+
import '@kopexa/scroll-area';
|
|
49
|
+
import '@kopexa/section-row';
|
|
50
|
+
import '@kopexa/select';
|
|
51
|
+
import '@kopexa/separator';
|
|
52
|
+
import '@kopexa/shared-utils';
|
|
53
|
+
import '@kopexa/sidebar';
|
|
54
|
+
import '@kopexa/spinner';
|
|
55
|
+
import '@kopexa/split-page-layout';
|
|
56
|
+
import '@kopexa/switch';
|
|
57
|
+
import '@kopexa/tab-nav';
|
|
58
|
+
import '@kopexa/table';
|
|
59
|
+
import '@kopexa/tabs';
|
|
60
|
+
import '@kopexa/toggle-row';
|
|
61
|
+
import '@kopexa/toolbar';
|
|
62
|
+
import '@kopexa/tooltip';
|
|
63
|
+
import '../hooks/use-file-upload/index.js';
|
|
64
|
+
import 'react/jsx-runtime';
|
|
65
|
+
import '@kopexa/theme';
|
|
66
|
+
import 'react';
|
|
67
|
+
import '@base-ui/react/dialog';
|