@kopexa/sight 17.12.0 → 17.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/chunk-5LLYOCGQ.mjs +153 -0
  2. package/dist/chunk-6IAHC3UK.mjs +1 -0
  3. package/dist/chunk-6XUZNN3X.mjs +1 -0
  4. package/dist/chunk-7KISSD3Q.mjs +1 -0
  5. package/dist/chunk-BJ7QPNKW.mjs +242 -0
  6. package/dist/chunk-CZNF6WPR.mjs +33 -0
  7. package/dist/chunk-DU3OVIBY.mjs +16 -0
  8. package/dist/chunk-DWZQIPCX.mjs +301 -0
  9. package/dist/chunk-EAJ3DTJ3.mjs +59 -0
  10. package/dist/chunk-FBTSAODG.mjs +25 -0
  11. package/dist/chunk-G57FFIKP.mjs +48 -0
  12. package/dist/chunk-GR3VEF4M.mjs +1 -0
  13. package/dist/chunk-HISY6ZIK.mjs +1 -0
  14. package/dist/chunk-HUHVPC6T.mjs +17 -0
  15. package/dist/chunk-HVOS7SXF.mjs +15 -0
  16. package/dist/chunk-PKG2E3MX.mjs +1 -0
  17. package/dist/chunk-POVIOFVF.mjs +18 -0
  18. package/dist/chunk-RK7G2GYB.mjs +45 -0
  19. package/dist/chunk-SHETEVHO.mjs +178 -0
  20. package/dist/chunk-UWC3Z7SY.mjs +1 -0
  21. package/dist/chunk-UWQG4HGJ.mjs +13 -0
  22. package/dist/chunk-XL2RCXMY.mjs +26 -0
  23. package/dist/chunk-XPDEN2RV.mjs +1 -0
  24. package/dist/components/blankstate/blankstate.d.mts +14 -0
  25. package/dist/components/blankstate/blankstate.d.ts +14 -0
  26. package/dist/components/blankstate/blankstate.js +69 -0
  27. package/dist/components/blankstate/blankstate.mjs +7 -0
  28. package/dist/components/blankstate/index.d.mts +4 -0
  29. package/dist/components/blankstate/index.d.ts +4 -0
  30. package/dist/components/blankstate/index.js +71 -0
  31. package/dist/components/blankstate/index.mjs +8 -0
  32. package/dist/components/code/code.d.mts +9 -0
  33. package/dist/components/code/code.d.ts +9 -0
  34. package/dist/components/code/code.js +49 -0
  35. package/dist/components/code/code.mjs +7 -0
  36. package/dist/components/code/index.d.mts +4 -0
  37. package/dist/components/code/index.d.ts +4 -0
  38. package/dist/components/code/index.js +51 -0
  39. package/dist/components/code/index.mjs +8 -0
  40. package/dist/components/dialog/dialog.d.mts +44 -0
  41. package/dist/components/dialog/dialog.d.ts +44 -0
  42. package/dist/components/dialog/dialog.js +213 -0
  43. package/dist/components/dialog/dialog.mjs +31 -0
  44. package/dist/components/dialog/index.d.mts +22 -0
  45. package/dist/components/dialog/index.d.ts +22 -0
  46. package/dist/components/dialog/index.js +232 -0
  47. package/dist/components/dialog/index.mjs +35 -0
  48. package/dist/components/dialog/namespace.d.mts +5 -0
  49. package/dist/components/dialog/namespace.d.ts +5 -0
  50. package/dist/components/dialog/namespace.js +213 -0
  51. package/dist/components/dialog/namespace.mjs +29 -0
  52. package/dist/components/dialog/transition.d.mts +5 -0
  53. package/dist/components/dialog/transition.d.ts +5 -0
  54. package/dist/components/dialog/transition.js +132 -0
  55. package/dist/components/dialog/transition.mjs +106 -0
  56. package/dist/components/file-upload/avatar-upload.d.mts +54 -0
  57. package/dist/components/file-upload/avatar-upload.d.ts +54 -0
  58. package/dist/components/file-upload/avatar-upload.js +841 -0
  59. package/dist/components/file-upload/avatar-upload.mjs +15 -0
  60. package/dist/components/file-upload/index.d.mts +5 -0
  61. package/dist/components/file-upload/index.d.ts +5 -0
  62. package/dist/components/file-upload/index.js +843 -0
  63. package/dist/components/file-upload/index.mjs +16 -0
  64. package/dist/components/file-upload/messages.d.mts +39 -0
  65. package/dist/components/file-upload/messages.d.ts +39 -0
  66. package/dist/components/file-upload/messages.js +68 -0
  67. package/dist/components/file-upload/messages.mjs +7 -0
  68. package/dist/components/file-upload/utils/data-url-to-file.d.mts +3 -0
  69. package/dist/components/file-upload/utils/data-url-to-file.d.ts +3 -0
  70. package/dist/components/file-upload/utils/data-url-to-file.js +38 -0
  71. package/dist/components/file-upload/utils/data-url-to-file.mjs +7 -0
  72. package/dist/components/file-upload/utils/format-accept-types.d.mts +8 -0
  73. package/dist/components/file-upload/utils/format-accept-types.d.ts +8 -0
  74. package/dist/components/file-upload/utils/format-accept-types.js +82 -0
  75. package/dist/components/file-upload/utils/format-accept-types.mjs +7 -0
  76. package/dist/components/file-upload/utils/is-image-like.d.mts +3 -0
  77. package/dist/components/file-upload/utils/is-image-like.d.ts +3 -0
  78. package/dist/components/file-upload/utils/is-image-like.js +36 -0
  79. package/dist/components/file-upload/utils/is-image-like.mjs +7 -0
  80. package/dist/components/index.d.mts +67 -0
  81. package/dist/components/index.d.ts +67 -0
  82. package/dist/components/index.js +1137 -0
  83. package/dist/components/index.mjs +92 -0
  84. package/dist/components/skeleton/index.d.mts +5 -0
  85. package/dist/components/skeleton/index.d.ts +5 -0
  86. package/dist/components/skeleton/index.js +53 -0
  87. package/dist/components/skeleton/index.mjs +12 -0
  88. package/dist/components/skeleton/skeleton-avatar.d.mts +9 -0
  89. package/dist/components/skeleton/skeleton-avatar.d.ts +9 -0
  90. package/dist/components/skeleton/skeleton-avatar.js +51 -0
  91. package/dist/components/skeleton/skeleton-avatar.mjs +8 -0
  92. package/dist/components/skeleton/skeleton.d.mts +7 -0
  93. package/dist/components/skeleton/skeleton.d.ts +7 -0
  94. package/dist/components/skeleton/skeleton.js +39 -0
  95. package/dist/components/skeleton/skeleton.mjs +7 -0
  96. package/dist/components/stat/index.d.mts +4 -0
  97. package/dist/components/stat/index.d.ts +4 -0
  98. package/dist/components/stat/index.js +186 -0
  99. package/dist/components/stat/index.mjs +24 -0
  100. package/dist/components/stat/stat.d.mts +36 -0
  101. package/dist/components/stat/stat.d.ts +36 -0
  102. package/dist/components/stat/stat.js +185 -0
  103. package/dist/components/stat/stat.mjs +24 -0
  104. package/dist/components/textarea/index.d.mts +4 -0
  105. package/dist/components/textarea/index.d.ts +4 -0
  106. package/dist/components/textarea/index.js +42 -0
  107. package/dist/components/textarea/index.mjs +8 -0
  108. package/dist/components/textarea/textarea.d.mts +8 -0
  109. package/dist/components/textarea/textarea.d.ts +8 -0
  110. package/dist/components/textarea/textarea.js +40 -0
  111. package/dist/components/textarea/textarea.mjs +7 -0
  112. package/dist/hooks/index.d.mts +2 -0
  113. package/dist/hooks/index.d.ts +2 -0
  114. package/dist/hooks/index.js +341 -0
  115. package/dist/hooks/index.mjs +9 -0
  116. package/dist/hooks/use-file-upload/index.d.mts +47 -0
  117. package/dist/hooks/use-file-upload/index.d.ts +47 -0
  118. package/dist/hooks/use-file-upload/index.js +340 -0
  119. package/dist/hooks/use-file-upload/index.mjs +9 -0
  120. package/dist/hooks/use-file-upload/messages.d.mts +19 -0
  121. package/dist/hooks/use-file-upload/messages.d.ts +19 -0
  122. package/dist/hooks/use-file-upload/messages.js +48 -0
  123. package/dist/hooks/use-file-upload/messages.mjs +7 -0
  124. package/dist/index.d.mts +14 -8
  125. package/dist/index.d.ts +14 -8
  126. package/dist/index.js +1108 -32
  127. package/dist/index.mjs +82 -18
  128. package/dist/index.ts.backup.d.mts +14 -8
  129. package/dist/index.ts.backup.d.ts +14 -8
  130. package/dist/index.ts.backup.js +1108 -32
  131. package/dist/index.ts.backup.mjs +82 -18
  132. package/package.json +60 -64
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import "../chunk-6IAHC3UK.mjs";
3
+ import "../chunk-6XUZNN3X.mjs";
4
+ import {
5
+ Stat,
6
+ StatDownIndicator,
7
+ StatGroup,
8
+ StatHelpText,
9
+ StatLabel,
10
+ StatRoot,
11
+ StatUpIndicator,
12
+ StatValueText,
13
+ StatValueUnit
14
+ } from "../chunk-5LLYOCGQ.mjs";
15
+ import "../chunk-7KISSD3Q.mjs";
16
+ import {
17
+ Textarea
18
+ } from "../chunk-HUHVPC6T.mjs";
19
+ import "../chunk-XPDEN2RV.mjs";
20
+ import {
21
+ AvatarUpload
22
+ } from "../chunk-BJ7QPNKW.mjs";
23
+ import "../chunk-HVOS7SXF.mjs";
24
+ import "../chunk-EAJ3DTJ3.mjs";
25
+ import "../chunk-UWQG4HGJ.mjs";
26
+ import {
27
+ Dialog
28
+ } from "../chunk-CZNF6WPR.mjs";
29
+ import {
30
+ DialogBody,
31
+ DialogClose,
32
+ DialogCloseTrigger,
33
+ DialogContent,
34
+ DialogDescription,
35
+ DialogFooter,
36
+ DialogHeader,
37
+ DialogOverlay,
38
+ DialogPortal,
39
+ DialogRoot,
40
+ DialogTitle,
41
+ DialogTrigger,
42
+ useDialogContext
43
+ } from "../chunk-SHETEVHO.mjs";
44
+ import "../chunk-RK7G2GYB.mjs";
45
+ import "../chunk-UWC3Z7SY.mjs";
46
+ import {
47
+ SkeletonAvatar
48
+ } from "../chunk-POVIOFVF.mjs";
49
+ import {
50
+ Skeleton
51
+ } from "../chunk-DU3OVIBY.mjs";
52
+ import "../chunk-DWZQIPCX.mjs";
53
+ import "../chunk-FBTSAODG.mjs";
54
+ import "../chunk-HISY6ZIK.mjs";
55
+ import {
56
+ Blankstate
57
+ } from "../chunk-G57FFIKP.mjs";
58
+ import "../chunk-PKG2E3MX.mjs";
59
+ import {
60
+ Code
61
+ } from "../chunk-XL2RCXMY.mjs";
62
+ export {
63
+ AvatarUpload,
64
+ Blankstate,
65
+ Code,
66
+ Dialog,
67
+ DialogBody,
68
+ DialogClose,
69
+ DialogCloseTrigger,
70
+ DialogContent,
71
+ DialogDescription,
72
+ DialogFooter,
73
+ DialogHeader,
74
+ DialogOverlay,
75
+ DialogPortal,
76
+ DialogRoot,
77
+ DialogTitle,
78
+ DialogTrigger,
79
+ Skeleton,
80
+ SkeletonAvatar,
81
+ Stat,
82
+ StatDownIndicator,
83
+ StatGroup,
84
+ StatHelpText,
85
+ StatLabel,
86
+ StatRoot,
87
+ StatUpIndicator,
88
+ StatValueText,
89
+ StatValueUnit,
90
+ Textarea,
91
+ useDialogContext
92
+ };
@@ -0,0 +1,5 @@
1
+ export { Skeleton, SkeletonProps } from './skeleton.mjs';
2
+ export { SkeletonAvatar, SkeletonAvatarProps } from './skeleton-avatar.mjs';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+ import '@kopexa/theme';
@@ -0,0 +1,5 @@
1
+ export { Skeleton, SkeletonProps } from './skeleton.js';
2
+ export { SkeletonAvatar, SkeletonAvatarProps } from './skeleton-avatar.js';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+ import '@kopexa/theme';
@@ -0,0 +1,53 @@
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/skeleton/index.ts
22
+ var skeleton_exports = {};
23
+ __export(skeleton_exports, {
24
+ Skeleton: () => Skeleton,
25
+ SkeletonAvatar: () => SkeletonAvatar
26
+ });
27
+ module.exports = __toCommonJS(skeleton_exports);
28
+
29
+ // src/components/skeleton/skeleton.tsx
30
+ var import_theme = require("@kopexa/theme");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ var Skeleton = (props) => {
33
+ const { className, children, ...rest } = props;
34
+ const styles = (0, import_theme.skeleton)({
35
+ className
36
+ });
37
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles, ...rest, children });
38
+ };
39
+
40
+ // src/components/skeleton/skeleton-avatar.tsx
41
+ var import_shared_utils = require("@kopexa/shared-utils");
42
+ var import_theme2 = require("@kopexa/theme");
43
+ var import_jsx_runtime2 = require("react/jsx-runtime");
44
+ var SkeletonAvatar = (props) => {
45
+ const { size, className, ...restProps } = props;
46
+ const baseStyle = (0, import_theme2.skeletonAvatar)({ size });
47
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Skeleton, { ...restProps, className: (0, import_shared_utils.cn)(baseStyle, className) });
48
+ };
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ Skeleton,
52
+ SkeletonAvatar
53
+ });
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import "../../chunk-UWC3Z7SY.mjs";
3
+ import {
4
+ SkeletonAvatar
5
+ } from "../../chunk-POVIOFVF.mjs";
6
+ import {
7
+ Skeleton
8
+ } from "../../chunk-DU3OVIBY.mjs";
9
+ export {
10
+ Skeleton,
11
+ SkeletonAvatar
12
+ };
@@ -0,0 +1,9 @@
1
+ import { SkeletonProps } from './skeleton.mjs';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { SkeletonAvatarVariantProps } from '@kopexa/theme';
4
+ import 'react';
5
+
6
+ type SkeletonAvatarProps = SkeletonProps & SkeletonAvatarVariantProps;
7
+ declare const SkeletonAvatar: (props: SkeletonAvatarProps) => react_jsx_runtime.JSX.Element;
8
+
9
+ export { SkeletonAvatar, type SkeletonAvatarProps };
@@ -0,0 +1,9 @@
1
+ import { SkeletonProps } from './skeleton.js';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import { SkeletonAvatarVariantProps } from '@kopexa/theme';
4
+ import 'react';
5
+
6
+ type SkeletonAvatarProps = SkeletonProps & SkeletonAvatarVariantProps;
7
+ declare const SkeletonAvatar: (props: SkeletonAvatarProps) => react_jsx_runtime.JSX.Element;
8
+
9
+ export { SkeletonAvatar, type SkeletonAvatarProps };
@@ -0,0 +1,51 @@
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/skeleton/skeleton-avatar.tsx
22
+ var skeleton_avatar_exports = {};
23
+ __export(skeleton_avatar_exports, {
24
+ SkeletonAvatar: () => SkeletonAvatar
25
+ });
26
+ module.exports = __toCommonJS(skeleton_avatar_exports);
27
+ var import_shared_utils = require("@kopexa/shared-utils");
28
+ var import_theme2 = require("@kopexa/theme");
29
+
30
+ // src/components/skeleton/skeleton.tsx
31
+ var import_theme = require("@kopexa/theme");
32
+ var import_jsx_runtime = require("react/jsx-runtime");
33
+ var Skeleton = (props) => {
34
+ const { className, children, ...rest } = props;
35
+ const styles = (0, import_theme.skeleton)({
36
+ className
37
+ });
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles, ...rest, children });
39
+ };
40
+
41
+ // src/components/skeleton/skeleton-avatar.tsx
42
+ var import_jsx_runtime2 = require("react/jsx-runtime");
43
+ var SkeletonAvatar = (props) => {
44
+ const { size, className, ...restProps } = props;
45
+ const baseStyle = (0, import_theme2.skeletonAvatar)({ size });
46
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Skeleton, { ...restProps, className: (0, import_shared_utils.cn)(baseStyle, className) });
47
+ };
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ SkeletonAvatar
51
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ SkeletonAvatar
4
+ } from "../../chunk-POVIOFVF.mjs";
5
+ import "../../chunk-DU3OVIBY.mjs";
6
+ export {
7
+ SkeletonAvatar
8
+ };
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+
4
+ type SkeletonProps = ComponentProps<"div">;
5
+ declare const Skeleton: (props: SkeletonProps) => react_jsx_runtime.JSX.Element;
6
+
7
+ export { Skeleton, type SkeletonProps };
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+
4
+ type SkeletonProps = ComponentProps<"div">;
5
+ declare const Skeleton: (props: SkeletonProps) => react_jsx_runtime.JSX.Element;
6
+
7
+ export { Skeleton, type SkeletonProps };
@@ -0,0 +1,39 @@
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/skeleton/skeleton.tsx
22
+ var skeleton_exports = {};
23
+ __export(skeleton_exports, {
24
+ Skeleton: () => Skeleton
25
+ });
26
+ module.exports = __toCommonJS(skeleton_exports);
27
+ var import_theme = require("@kopexa/theme");
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ var Skeleton = (props) => {
30
+ const { className, children, ...rest } = props;
31
+ const styles = (0, import_theme.skeleton)({
32
+ className
33
+ });
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles, ...rest, children });
35
+ };
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ Skeleton
39
+ });
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ Skeleton
4
+ } from "../../chunk-DU3OVIBY.mjs";
5
+ export {
6
+ Skeleton
7
+ };
@@ -0,0 +1,4 @@
1
+ export { Stat, StatDownIndicator, StatDownIndicatorProps, StatGroup, StatGroupProps, StatHelpText, StatHelpTextProps, StatLabel, StatLabelProps, StatRoot, StatRootProps, StatUpIndicator, StatUpIndicatorProps, StatValueText, StatValueTextProps, StatValueUnit, StatValueUnitProps } from './stat.mjs';
2
+ import 'react/jsx-runtime';
3
+ import '@kopexa/theme';
4
+ import 'react';
@@ -0,0 +1,4 @@
1
+ export { Stat, StatDownIndicator, StatDownIndicatorProps, StatGroup, StatGroupProps, StatHelpText, StatHelpTextProps, StatLabel, StatLabelProps, StatRoot, StatRootProps, StatUpIndicator, StatUpIndicatorProps, StatValueText, StatValueTextProps, StatValueUnit, StatValueUnitProps } from './stat.js';
2
+ import 'react/jsx-runtime';
3
+ import '@kopexa/theme';
4
+ import 'react';
@@ -0,0 +1,186 @@
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/stat/index.ts
22
+ var stat_exports = {};
23
+ __export(stat_exports, {
24
+ Stat: () => Stat,
25
+ StatDownIndicator: () => StatDownIndicator,
26
+ StatGroup: () => StatGroup,
27
+ StatHelpText: () => StatHelpText,
28
+ StatLabel: () => StatLabel,
29
+ StatRoot: () => StatRoot,
30
+ StatUpIndicator: () => StatUpIndicator,
31
+ StatValueText: () => StatValueText,
32
+ StatValueUnit: () => StatValueUnit
33
+ });
34
+ module.exports = __toCommonJS(stat_exports);
35
+
36
+ // src/components/stat/stat.tsx
37
+ var import_icons = require("@kopexa/icons");
38
+ var import_shared_utils = require("@kopexa/shared-utils");
39
+ var import_theme = require("@kopexa/theme");
40
+ var import_jsx_runtime = require("react/jsx-runtime");
41
+ function StatRoot({
42
+ className,
43
+ size,
44
+ trend,
45
+ children,
46
+ ...props
47
+ }) {
48
+ const styles = (0, import_theme.stat)({ size, trend });
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dl", { "data-slot": "stat", className: (0, import_shared_utils.cn)(styles.root(), className), ...props, children });
50
+ }
51
+ function StatLabel({ className, children, ...props }) {
52
+ const styles = (0, import_theme.stat)();
53
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
54
+ "dt",
55
+ {
56
+ "data-slot": "stat-label",
57
+ className: (0, import_shared_utils.cn)(styles.label(), className),
58
+ ...props,
59
+ children
60
+ }
61
+ );
62
+ }
63
+ function StatValueText({
64
+ className,
65
+ size,
66
+ children,
67
+ ...props
68
+ }) {
69
+ const styles = (0, import_theme.stat)({ size });
70
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
+ "dd",
72
+ {
73
+ "data-slot": "stat-value",
74
+ className: (0, import_shared_utils.cn)(styles.valueText(), className),
75
+ ...props,
76
+ children
77
+ }
78
+ );
79
+ }
80
+ function StatValueUnit({
81
+ className,
82
+ children,
83
+ ...props
84
+ }) {
85
+ const styles = (0, import_theme.stat)();
86
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
+ "span",
88
+ {
89
+ "data-slot": "stat-value-unit",
90
+ className: (0, import_shared_utils.cn)(styles.valueUnit(), className),
91
+ ...props,
92
+ children
93
+ }
94
+ );
95
+ }
96
+ function StatHelpText({
97
+ className,
98
+ children,
99
+ ...props
100
+ }) {
101
+ const styles = (0, import_theme.stat)();
102
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
103
+ "span",
104
+ {
105
+ "data-slot": "stat-help-text",
106
+ className: (0, import_shared_utils.cn)(styles.helpText(), className),
107
+ ...props,
108
+ children
109
+ }
110
+ );
111
+ }
112
+ function StatUpIndicator({
113
+ className,
114
+ icon,
115
+ children,
116
+ ...props
117
+ }) {
118
+ const styles = (0, import_theme.stat)({ trend: "up" });
119
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
120
+ "span",
121
+ {
122
+ "data-slot": "stat-indicator",
123
+ "data-type": "up",
124
+ className: (0, import_shared_utils.cn)(styles.indicator(), className),
125
+ ...props,
126
+ children: [
127
+ icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ArrowUp, {}),
128
+ children
129
+ ]
130
+ }
131
+ );
132
+ }
133
+ function StatDownIndicator({
134
+ className,
135
+ icon,
136
+ children,
137
+ ...props
138
+ }) {
139
+ const styles = (0, import_theme.stat)({ trend: "down" });
140
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
141
+ "span",
142
+ {
143
+ "data-slot": "stat-indicator",
144
+ "data-type": "down",
145
+ className: (0, import_shared_utils.cn)(styles.indicator(), className),
146
+ ...props,
147
+ children: [
148
+ icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.ArrowDown, {}),
149
+ children
150
+ ]
151
+ }
152
+ );
153
+ }
154
+ function StatGroup({ className, children, ...props }) {
155
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
156
+ "div",
157
+ {
158
+ "data-slot": "stat-group",
159
+ className: (0, import_shared_utils.cn)("flex flex-wrap justify-around gap-4", className),
160
+ ...props,
161
+ children
162
+ }
163
+ );
164
+ }
165
+ var Stat = Object.assign(StatRoot, {
166
+ Root: StatRoot,
167
+ Label: StatLabel,
168
+ ValueText: StatValueText,
169
+ ValueUnit: StatValueUnit,
170
+ HelpText: StatHelpText,
171
+ UpIndicator: StatUpIndicator,
172
+ DownIndicator: StatDownIndicator,
173
+ Group: StatGroup
174
+ });
175
+ // Annotate the CommonJS export names for ESM import in node:
176
+ 0 && (module.exports = {
177
+ Stat,
178
+ StatDownIndicator,
179
+ StatGroup,
180
+ StatHelpText,
181
+ StatLabel,
182
+ StatRoot,
183
+ StatUpIndicator,
184
+ StatValueText,
185
+ StatValueUnit
186
+ });
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import "../../chunk-6XUZNN3X.mjs";
3
+ import {
4
+ Stat,
5
+ StatDownIndicator,
6
+ StatGroup,
7
+ StatHelpText,
8
+ StatLabel,
9
+ StatRoot,
10
+ StatUpIndicator,
11
+ StatValueText,
12
+ StatValueUnit
13
+ } from "../../chunk-5LLYOCGQ.mjs";
14
+ export {
15
+ Stat,
16
+ StatDownIndicator,
17
+ StatGroup,
18
+ StatHelpText,
19
+ StatLabel,
20
+ StatRoot,
21
+ StatUpIndicator,
22
+ StatValueText,
23
+ StatValueUnit
24
+ };
@@ -0,0 +1,36 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { StatVariantProps } from '@kopexa/theme';
3
+ import { ComponentProps, ReactNode } from 'react';
4
+
5
+ type StatRootProps = ComponentProps<"dl"> & StatVariantProps;
6
+ declare function StatRoot({ className, size, trend, children, ...props }: StatRootProps): react_jsx_runtime.JSX.Element;
7
+ type StatLabelProps = ComponentProps<"dt">;
8
+ declare function StatLabel({ className, children, ...props }: StatLabelProps): react_jsx_runtime.JSX.Element;
9
+ type StatValueTextProps = ComponentProps<"dd"> & Pick<StatVariantProps, "size">;
10
+ declare function StatValueText({ className, size, children, ...props }: StatValueTextProps): react_jsx_runtime.JSX.Element;
11
+ type StatValueUnitProps = ComponentProps<"span">;
12
+ declare function StatValueUnit({ className, children, ...props }: StatValueUnitProps): react_jsx_runtime.JSX.Element;
13
+ type StatHelpTextProps = ComponentProps<"span">;
14
+ declare function StatHelpText({ className, children, ...props }: StatHelpTextProps): react_jsx_runtime.JSX.Element;
15
+ type StatUpIndicatorProps = ComponentProps<"span"> & {
16
+ icon?: ReactNode;
17
+ };
18
+ declare function StatUpIndicator({ className, icon, children, ...props }: StatUpIndicatorProps): react_jsx_runtime.JSX.Element;
19
+ type StatDownIndicatorProps = ComponentProps<"span"> & {
20
+ icon?: ReactNode;
21
+ };
22
+ declare function StatDownIndicator({ className, icon, children, ...props }: StatDownIndicatorProps): react_jsx_runtime.JSX.Element;
23
+ type StatGroupProps = ComponentProps<"div">;
24
+ declare function StatGroup({ className, children, ...props }: StatGroupProps): react_jsx_runtime.JSX.Element;
25
+ declare const Stat: typeof StatRoot & {
26
+ Root: typeof StatRoot;
27
+ Label: typeof StatLabel;
28
+ ValueText: typeof StatValueText;
29
+ ValueUnit: typeof StatValueUnit;
30
+ HelpText: typeof StatHelpText;
31
+ UpIndicator: typeof StatUpIndicator;
32
+ DownIndicator: typeof StatDownIndicator;
33
+ Group: typeof StatGroup;
34
+ };
35
+
36
+ export { Stat, StatDownIndicator, type StatDownIndicatorProps, StatGroup, type StatGroupProps, StatHelpText, type StatHelpTextProps, StatLabel, type StatLabelProps, StatRoot, type StatRootProps, StatUpIndicator, type StatUpIndicatorProps, StatValueText, type StatValueTextProps, StatValueUnit, type StatValueUnitProps };
@@ -0,0 +1,36 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { StatVariantProps } from '@kopexa/theme';
3
+ import { ComponentProps, ReactNode } from 'react';
4
+
5
+ type StatRootProps = ComponentProps<"dl"> & StatVariantProps;
6
+ declare function StatRoot({ className, size, trend, children, ...props }: StatRootProps): react_jsx_runtime.JSX.Element;
7
+ type StatLabelProps = ComponentProps<"dt">;
8
+ declare function StatLabel({ className, children, ...props }: StatLabelProps): react_jsx_runtime.JSX.Element;
9
+ type StatValueTextProps = ComponentProps<"dd"> & Pick<StatVariantProps, "size">;
10
+ declare function StatValueText({ className, size, children, ...props }: StatValueTextProps): react_jsx_runtime.JSX.Element;
11
+ type StatValueUnitProps = ComponentProps<"span">;
12
+ declare function StatValueUnit({ className, children, ...props }: StatValueUnitProps): react_jsx_runtime.JSX.Element;
13
+ type StatHelpTextProps = ComponentProps<"span">;
14
+ declare function StatHelpText({ className, children, ...props }: StatHelpTextProps): react_jsx_runtime.JSX.Element;
15
+ type StatUpIndicatorProps = ComponentProps<"span"> & {
16
+ icon?: ReactNode;
17
+ };
18
+ declare function StatUpIndicator({ className, icon, children, ...props }: StatUpIndicatorProps): react_jsx_runtime.JSX.Element;
19
+ type StatDownIndicatorProps = ComponentProps<"span"> & {
20
+ icon?: ReactNode;
21
+ };
22
+ declare function StatDownIndicator({ className, icon, children, ...props }: StatDownIndicatorProps): react_jsx_runtime.JSX.Element;
23
+ type StatGroupProps = ComponentProps<"div">;
24
+ declare function StatGroup({ className, children, ...props }: StatGroupProps): react_jsx_runtime.JSX.Element;
25
+ declare const Stat: typeof StatRoot & {
26
+ Root: typeof StatRoot;
27
+ Label: typeof StatLabel;
28
+ ValueText: typeof StatValueText;
29
+ ValueUnit: typeof StatValueUnit;
30
+ HelpText: typeof StatHelpText;
31
+ UpIndicator: typeof StatUpIndicator;
32
+ DownIndicator: typeof StatDownIndicator;
33
+ Group: typeof StatGroup;
34
+ };
35
+
36
+ export { Stat, StatDownIndicator, type StatDownIndicatorProps, StatGroup, type StatGroupProps, StatHelpText, type StatHelpTextProps, StatLabel, type StatLabelProps, StatRoot, type StatRootProps, StatUpIndicator, type StatUpIndicatorProps, StatValueText, type StatValueTextProps, StatValueUnit, type StatValueUnitProps };