@kopexa/sight 17.12.1 → 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,178 @@
1
+ "use client";
2
+
3
+ // src/components/dialog/dialog.tsx
4
+ import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
5
+ import { CloseIcon } from "@kopexa/icons";
6
+ import { createContext } from "@kopexa/react-utils";
7
+ import { cn } from "@kopexa/shared-utils";
8
+ import { dialog } from "@kopexa/theme";
9
+ import { useControllableState } from "@kopexa/use-controllable-state";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ var [DialogProvider, useDialogContext] = createContext();
12
+ var DialogRoot = (props) => {
13
+ const {
14
+ open: openProp,
15
+ onOpenChange,
16
+ size,
17
+ radius,
18
+ placement,
19
+ scrollBehavior,
20
+ ...restProps
21
+ } = props;
22
+ const [open, setOpen] = useControllableState({
23
+ value: openProp,
24
+ onChange: onOpenChange,
25
+ defaultValue: false
26
+ });
27
+ const styles = dialog({ size, radius, placement, scrollBehavior });
28
+ return /* @__PURE__ */ jsx(DialogProvider, { value: { styles, open, placement, size, radius }, children: /* @__PURE__ */ jsx(
29
+ DialogPrimitive.Root,
30
+ {
31
+ "data-slot": "dialog",
32
+ open,
33
+ onOpenChange: (open2) => setOpen(open2),
34
+ ...restProps
35
+ }
36
+ ) });
37
+ };
38
+ function DialogTrigger({ ...props }) {
39
+ return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
40
+ }
41
+ function DialogPortal({ ...props }) {
42
+ return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
43
+ }
44
+ function DialogClose({ ...props }) {
45
+ return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
46
+ }
47
+ function DialogOverlay({ className, ...props }) {
48
+ const { styles } = useDialogContext();
49
+ return /* @__PURE__ */ jsx(
50
+ DialogPrimitive.Backdrop,
51
+ {
52
+ "data-slot": "dialog-overlay",
53
+ className: cn(styles.overlay(), className),
54
+ ...props
55
+ }
56
+ );
57
+ }
58
+ function DialogContent({
59
+ className,
60
+ children,
61
+ showCloseButton = true,
62
+ ...props
63
+ }) {
64
+ const { styles } = useDialogContext();
65
+ return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
66
+ /* @__PURE__ */ jsx(DialogOverlay, {}),
67
+ /* @__PURE__ */ jsxs(
68
+ DialogPrimitive.Popup,
69
+ {
70
+ "data-slot": "dialog-content",
71
+ className: cn(styles.content(), className),
72
+ ...props,
73
+ children: [
74
+ children,
75
+ showCloseButton && /* @__PURE__ */ jsxs(
76
+ DialogPrimitive.Close,
77
+ {
78
+ "data-slot": "dialog-close",
79
+ className: styles.close(),
80
+ children: [
81
+ /* @__PURE__ */ jsx(CloseIcon, {}),
82
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
83
+ ]
84
+ }
85
+ )
86
+ ]
87
+ }
88
+ )
89
+ ] });
90
+ }
91
+ function DialogHeader({ className, ...props }) {
92
+ const { styles } = useDialogContext();
93
+ return /* @__PURE__ */ jsx(
94
+ "div",
95
+ {
96
+ "data-slot": "dialog-header",
97
+ className: styles.header({ className }),
98
+ ...props
99
+ }
100
+ );
101
+ }
102
+ function DialogFooter({ className, ...props }) {
103
+ const { styles } = useDialogContext();
104
+ return /* @__PURE__ */ jsx(
105
+ "div",
106
+ {
107
+ "data-slot": "dialog-footer",
108
+ className: styles.footer({ className }),
109
+ ...props
110
+ }
111
+ );
112
+ }
113
+ function DialogBody({ className, ...props }) {
114
+ const { styles } = useDialogContext();
115
+ return /* @__PURE__ */ jsx(
116
+ "div",
117
+ {
118
+ "data-slot": "dialog-body",
119
+ className: styles.body({ className }),
120
+ ...props
121
+ }
122
+ );
123
+ }
124
+ function DialogTitle({ className, ...props }) {
125
+ const { styles } = useDialogContext();
126
+ return /* @__PURE__ */ jsx(
127
+ DialogPrimitive.Title,
128
+ {
129
+ "data-slot": "dialog-title",
130
+ className: cn(styles.title(), className),
131
+ ...props
132
+ }
133
+ );
134
+ }
135
+ function DialogDescription({
136
+ className,
137
+ ...props
138
+ }) {
139
+ const { styles } = useDialogContext();
140
+ return /* @__PURE__ */ jsx(
141
+ DialogPrimitive.Description,
142
+ {
143
+ "data-slot": "dialog-description",
144
+ className: cn(styles.description(), className),
145
+ ...props
146
+ }
147
+ );
148
+ }
149
+ function DialogCloseTrigger({
150
+ className,
151
+ ...props
152
+ }) {
153
+ const { styles } = useDialogContext();
154
+ return /* @__PURE__ */ jsx(
155
+ DialogPrimitive.Close,
156
+ {
157
+ "data-slot": "dialog-close-trigger",
158
+ className: cn(styles.closeTrigger(), className),
159
+ ...props
160
+ }
161
+ );
162
+ }
163
+
164
+ export {
165
+ useDialogContext,
166
+ DialogRoot,
167
+ DialogTrigger,
168
+ DialogPortal,
169
+ DialogClose,
170
+ DialogOverlay,
171
+ DialogContent,
172
+ DialogHeader,
173
+ DialogFooter,
174
+ DialogBody,
175
+ DialogTitle,
176
+ DialogDescription,
177
+ DialogCloseTrigger
178
+ };
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,13 @@
1
+ "use client";
2
+
3
+ // src/components/file-upload/utils/is-image-like.ts
4
+ function isImageLike(file) {
5
+ var _a, _b;
6
+ if ((_a = file.type) == null ? void 0 : _a.startsWith("image/")) return true;
7
+ const name = ((_b = file.name) == null ? void 0 : _b.toLowerCase()) || "";
8
+ return name.endsWith(".png") || name.endsWith(".jpg") || name.endsWith(".jpeg") || name.endsWith(".webp");
9
+ }
10
+
11
+ export {
12
+ isImageLike
13
+ };
@@ -0,0 +1,26 @@
1
+ "use client";
2
+
3
+ // src/components/code/code.tsx
4
+ import { mapPropsVariants, objectToDeps } from "@kopexa/shared-utils";
5
+ import { code } from "@kopexa/theme";
6
+ import { useMemo } from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+ var Code = (originalProps) => {
9
+ const [props, variantProps] = mapPropsVariants(
10
+ originalProps,
11
+ code.variantKeys
12
+ );
13
+ const { children, className, ...otherProps } = props;
14
+ const styles = useMemo(
15
+ () => code({
16
+ ...variantProps,
17
+ className
18
+ }),
19
+ [objectToDeps(variantProps), className]
20
+ );
21
+ return /* @__PURE__ */ jsx("code", { className: styles, ...otherProps, children });
22
+ };
23
+
24
+ export {
25
+ Code
26
+ };
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { SlotsToClasses, BlankStateSlots, BlankStateVariantProps } from '@kopexa/theme';
3
+ import { ComponentProps } from 'react';
4
+
5
+ type Props = {
6
+ icon?: React.ReactNode;
7
+ title?: string;
8
+ description?: string;
9
+ classNames?: SlotsToClasses<BlankStateSlots>;
10
+ };
11
+ type BlankstateProps = ComponentProps<"div"> & Props & BlankStateVariantProps;
12
+ declare const Blankstate: (props: BlankstateProps) => react_jsx_runtime.JSX.Element;
13
+
14
+ export { Blankstate, type BlankstateProps };
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { SlotsToClasses, BlankStateSlots, BlankStateVariantProps } from '@kopexa/theme';
3
+ import { ComponentProps } from 'react';
4
+
5
+ type Props = {
6
+ icon?: React.ReactNode;
7
+ title?: string;
8
+ description?: string;
9
+ classNames?: SlotsToClasses<BlankStateSlots>;
10
+ };
11
+ type BlankstateProps = ComponentProps<"div"> & Props & BlankStateVariantProps;
12
+ declare const Blankstate: (props: BlankstateProps) => react_jsx_runtime.JSX.Element;
13
+
14
+ export { Blankstate, type BlankstateProps };
@@ -0,0 +1,69 @@
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/blankstate/blankstate.tsx
22
+ var blankstate_exports = {};
23
+ __export(blankstate_exports, {
24
+ Blankstate: () => Blankstate
25
+ });
26
+ module.exports = __toCommonJS(blankstate_exports);
27
+ var import_shared_utils = require("@kopexa/shared-utils");
28
+ var import_theme = require("@kopexa/theme");
29
+ var import_jsx_runtime = require("react/jsx-runtime");
30
+ var Blankstate = (props) => {
31
+ const {
32
+ className,
33
+ children,
34
+ classNames,
35
+ icon,
36
+ title,
37
+ description,
38
+ size,
39
+ bordered,
40
+ narrow,
41
+ ...rest
42
+ } = props;
43
+ const styles = (0, import_theme.blankstate)({ size, bordered, narrow });
44
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
45
+ "div",
46
+ {
47
+ className: styles.root({ className: (0, import_shared_utils.cn)(classNames == null ? void 0 : classNames.root, className) }),
48
+ ...rest,
49
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: styles.container({ className: classNames == null ? void 0 : classNames.container }), children: [
50
+ icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.icon({ className: classNames == null ? void 0 : classNames.icon }), children: icon }),
51
+ title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: styles.title({ className: classNames == null ? void 0 : classNames.title }), children: title }),
52
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
53
+ "div",
54
+ {
55
+ className: styles.description({
56
+ className: classNames == null ? void 0 : classNames.description
57
+ }),
58
+ children: description
59
+ }
60
+ ),
61
+ children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.actions({ className: classNames == null ? void 0 : classNames.actions }), children })
62
+ ] })
63
+ }
64
+ );
65
+ };
66
+ // Annotate the CommonJS export names for ESM import in node:
67
+ 0 && (module.exports = {
68
+ Blankstate
69
+ });
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ Blankstate
4
+ } from "../../chunk-G57FFIKP.mjs";
5
+ export {
6
+ Blankstate
7
+ };
@@ -0,0 +1,4 @@
1
+ export { Blankstate, BlankstateProps } from './blankstate.mjs';
2
+ import 'react/jsx-runtime';
3
+ import '@kopexa/theme';
4
+ import 'react';
@@ -0,0 +1,4 @@
1
+ export { Blankstate, BlankstateProps } from './blankstate.js';
2
+ import 'react/jsx-runtime';
3
+ import '@kopexa/theme';
4
+ import 'react';
@@ -0,0 +1,71 @@
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/blankstate/index.ts
22
+ var blankstate_exports = {};
23
+ __export(blankstate_exports, {
24
+ Blankstate: () => Blankstate
25
+ });
26
+ module.exports = __toCommonJS(blankstate_exports);
27
+
28
+ // src/components/blankstate/blankstate.tsx
29
+ var import_shared_utils = require("@kopexa/shared-utils");
30
+ var import_theme = require("@kopexa/theme");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ var Blankstate = (props) => {
33
+ const {
34
+ className,
35
+ children,
36
+ classNames,
37
+ icon,
38
+ title,
39
+ description,
40
+ size,
41
+ bordered,
42
+ narrow,
43
+ ...rest
44
+ } = props;
45
+ const styles = (0, import_theme.blankstate)({ size, bordered, narrow });
46
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
47
+ "div",
48
+ {
49
+ className: styles.root({ className: (0, import_shared_utils.cn)(classNames == null ? void 0 : classNames.root, className) }),
50
+ ...rest,
51
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: styles.container({ className: classNames == null ? void 0 : classNames.container }), children: [
52
+ icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.icon({ className: classNames == null ? void 0 : classNames.icon }), children: icon }),
53
+ title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: styles.title({ className: classNames == null ? void 0 : classNames.title }), children: title }),
54
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
55
+ "div",
56
+ {
57
+ className: styles.description({
58
+ className: classNames == null ? void 0 : classNames.description
59
+ }),
60
+ children: description
61
+ }
62
+ ),
63
+ children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: styles.actions({ className: classNames == null ? void 0 : classNames.actions }), children })
64
+ ] })
65
+ }
66
+ );
67
+ };
68
+ // Annotate the CommonJS export names for ESM import in node:
69
+ 0 && (module.exports = {
70
+ Blankstate
71
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-HISY6ZIK.mjs";
3
+ import {
4
+ Blankstate
5
+ } from "../../chunk-G57FFIKP.mjs";
6
+ export {
7
+ Blankstate
8
+ };
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { CodeVariantProps } from '@kopexa/theme';
3
+ import { ComponentProps } from 'react';
4
+
5
+ interface CodeProps extends Omit<ComponentProps<"code">, "color" | "size" | "radius">, CodeVariantProps {
6
+ }
7
+ declare const Code: (originalProps: CodeProps) => react_jsx_runtime.JSX.Element;
8
+
9
+ export { Code, type CodeProps };
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { CodeVariantProps } from '@kopexa/theme';
3
+ import { ComponentProps } from 'react';
4
+
5
+ interface CodeProps extends Omit<ComponentProps<"code">, "color" | "size" | "radius">, CodeVariantProps {
6
+ }
7
+ declare const Code: (originalProps: CodeProps) => react_jsx_runtime.JSX.Element;
8
+
9
+ export { Code, type CodeProps };
@@ -0,0 +1,49 @@
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/code/code.tsx
22
+ var code_exports = {};
23
+ __export(code_exports, {
24
+ Code: () => Code
25
+ });
26
+ module.exports = __toCommonJS(code_exports);
27
+ var import_shared_utils = require("@kopexa/shared-utils");
28
+ var import_theme = require("@kopexa/theme");
29
+ var import_react = require("react");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var Code = (originalProps) => {
32
+ const [props, variantProps] = (0, import_shared_utils.mapPropsVariants)(
33
+ originalProps,
34
+ import_theme.code.variantKeys
35
+ );
36
+ const { children, className, ...otherProps } = props;
37
+ const styles = (0, import_react.useMemo)(
38
+ () => (0, import_theme.code)({
39
+ ...variantProps,
40
+ className
41
+ }),
42
+ [(0, import_shared_utils.objectToDeps)(variantProps), className]
43
+ );
44
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { className: styles, ...otherProps, children });
45
+ };
46
+ // Annotate the CommonJS export names for ESM import in node:
47
+ 0 && (module.exports = {
48
+ Code
49
+ });
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ Code
4
+ } from "../../chunk-XL2RCXMY.mjs";
5
+ export {
6
+ Code
7
+ };
@@ -0,0 +1,4 @@
1
+ export { Code, CodeProps } from './code.mjs';
2
+ import 'react/jsx-runtime';
3
+ import '@kopexa/theme';
4
+ import 'react';
@@ -0,0 +1,4 @@
1
+ export { Code, CodeProps } from './code.js';
2
+ import 'react/jsx-runtime';
3
+ import '@kopexa/theme';
4
+ import 'react';
@@ -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/code/index.ts
22
+ var code_exports = {};
23
+ __export(code_exports, {
24
+ Code: () => Code
25
+ });
26
+ module.exports = __toCommonJS(code_exports);
27
+
28
+ // src/components/code/code.tsx
29
+ var import_shared_utils = require("@kopexa/shared-utils");
30
+ var import_theme = require("@kopexa/theme");
31
+ var import_react = require("react");
32
+ var import_jsx_runtime = require("react/jsx-runtime");
33
+ var Code = (originalProps) => {
34
+ const [props, variantProps] = (0, import_shared_utils.mapPropsVariants)(
35
+ originalProps,
36
+ import_theme.code.variantKeys
37
+ );
38
+ const { children, className, ...otherProps } = props;
39
+ const styles = (0, import_react.useMemo)(
40
+ () => (0, import_theme.code)({
41
+ ...variantProps,
42
+ className
43
+ }),
44
+ [(0, import_shared_utils.objectToDeps)(variantProps), className]
45
+ );
46
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { className: styles, ...otherProps, children });
47
+ };
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ Code
51
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-PKG2E3MX.mjs";
3
+ import {
4
+ Code
5
+ } from "../../chunk-XL2RCXMY.mjs";
6
+ export {
7
+ Code
8
+ };
@@ -0,0 +1,44 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Dialog } from '@base-ui/react/dialog';
3
+ import { DialogVariantProps, dialog } from '@kopexa/theme';
4
+ import { ComponentProps } from 'react';
5
+
6
+ type DialogContextValue = {
7
+ styles: ReturnType<typeof dialog>;
8
+ open: boolean;
9
+ placement?: "top" | "bottom" | "left" | "right";
10
+ size?: DialogVariantProps["size"];
11
+ radius?: DialogVariantProps["radius"];
12
+ };
13
+ declare const useDialogContext: () => DialogContextValue;
14
+
15
+ type DialogRootProps = Omit<ComponentProps<typeof Dialog.Root>, "onOpenChange"> & DialogVariantProps & {
16
+ onOpenChange?: (open: boolean) => void;
17
+ };
18
+ declare const DialogRoot: (props: DialogRootProps) => react_jsx_runtime.JSX.Element;
19
+ type DialogTriggerProps = ComponentProps<typeof Dialog.Trigger>;
20
+ declare function DialogTrigger({ ...props }: DialogTriggerProps): react_jsx_runtime.JSX.Element;
21
+ type DialogPortalProps = ComponentProps<typeof Dialog.Portal>;
22
+ declare function DialogPortal({ ...props }: DialogPortalProps): react_jsx_runtime.JSX.Element;
23
+ type DialogCloseProps = ComponentProps<typeof Dialog.Close>;
24
+ declare function DialogClose({ ...props }: DialogCloseProps): react_jsx_runtime.JSX.Element;
25
+ type DialogOverlayProps = ComponentProps<typeof Dialog.Backdrop>;
26
+ declare function DialogOverlay({ className, ...props }: DialogOverlayProps): react_jsx_runtime.JSX.Element;
27
+ type DialogContentProps = ComponentProps<typeof Dialog.Popup> & {
28
+ showCloseButton?: boolean;
29
+ };
30
+ declare function DialogContent({ className, children, showCloseButton, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
31
+ type DialogHeaderProps = ComponentProps<"div">;
32
+ declare function DialogHeader({ className, ...props }: DialogHeaderProps): react_jsx_runtime.JSX.Element;
33
+ type DialogFooterProps = ComponentProps<"div">;
34
+ declare function DialogFooter({ className, ...props }: DialogFooterProps): react_jsx_runtime.JSX.Element;
35
+ type DialogBodyProps = ComponentProps<"div">;
36
+ declare function DialogBody({ className, ...props }: DialogBodyProps): react_jsx_runtime.JSX.Element;
37
+ type DialogTitleProps = ComponentProps<typeof Dialog.Title>;
38
+ declare function DialogTitle({ className, ...props }: DialogTitleProps): react_jsx_runtime.JSX.Element;
39
+ type DialogDescriptionProps = ComponentProps<typeof Dialog.Description>;
40
+ declare function DialogDescription({ className, ...props }: DialogDescriptionProps): react_jsx_runtime.JSX.Element;
41
+ type DialogCloseTriggerProps = ComponentProps<typeof Dialog.Close>;
42
+ declare function DialogCloseTrigger({ className, ...props }: DialogCloseTriggerProps): react_jsx_runtime.JSX.Element;
43
+
44
+ export { DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogCloseTrigger, type DialogCloseTriggerProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, DialogRoot, type DialogRootProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, useDialogContext };
@@ -0,0 +1,44 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Dialog } from '@base-ui/react/dialog';
3
+ import { DialogVariantProps, dialog } from '@kopexa/theme';
4
+ import { ComponentProps } from 'react';
5
+
6
+ type DialogContextValue = {
7
+ styles: ReturnType<typeof dialog>;
8
+ open: boolean;
9
+ placement?: "top" | "bottom" | "left" | "right";
10
+ size?: DialogVariantProps["size"];
11
+ radius?: DialogVariantProps["radius"];
12
+ };
13
+ declare const useDialogContext: () => DialogContextValue;
14
+
15
+ type DialogRootProps = Omit<ComponentProps<typeof Dialog.Root>, "onOpenChange"> & DialogVariantProps & {
16
+ onOpenChange?: (open: boolean) => void;
17
+ };
18
+ declare const DialogRoot: (props: DialogRootProps) => react_jsx_runtime.JSX.Element;
19
+ type DialogTriggerProps = ComponentProps<typeof Dialog.Trigger>;
20
+ declare function DialogTrigger({ ...props }: DialogTriggerProps): react_jsx_runtime.JSX.Element;
21
+ type DialogPortalProps = ComponentProps<typeof Dialog.Portal>;
22
+ declare function DialogPortal({ ...props }: DialogPortalProps): react_jsx_runtime.JSX.Element;
23
+ type DialogCloseProps = ComponentProps<typeof Dialog.Close>;
24
+ declare function DialogClose({ ...props }: DialogCloseProps): react_jsx_runtime.JSX.Element;
25
+ type DialogOverlayProps = ComponentProps<typeof Dialog.Backdrop>;
26
+ declare function DialogOverlay({ className, ...props }: DialogOverlayProps): react_jsx_runtime.JSX.Element;
27
+ type DialogContentProps = ComponentProps<typeof Dialog.Popup> & {
28
+ showCloseButton?: boolean;
29
+ };
30
+ declare function DialogContent({ className, children, showCloseButton, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
31
+ type DialogHeaderProps = ComponentProps<"div">;
32
+ declare function DialogHeader({ className, ...props }: DialogHeaderProps): react_jsx_runtime.JSX.Element;
33
+ type DialogFooterProps = ComponentProps<"div">;
34
+ declare function DialogFooter({ className, ...props }: DialogFooterProps): react_jsx_runtime.JSX.Element;
35
+ type DialogBodyProps = ComponentProps<"div">;
36
+ declare function DialogBody({ className, ...props }: DialogBodyProps): react_jsx_runtime.JSX.Element;
37
+ type DialogTitleProps = ComponentProps<typeof Dialog.Title>;
38
+ declare function DialogTitle({ className, ...props }: DialogTitleProps): react_jsx_runtime.JSX.Element;
39
+ type DialogDescriptionProps = ComponentProps<typeof Dialog.Description>;
40
+ declare function DialogDescription({ className, ...props }: DialogDescriptionProps): react_jsx_runtime.JSX.Element;
41
+ type DialogCloseTriggerProps = ComponentProps<typeof Dialog.Close>;
42
+ declare function DialogCloseTrigger({ className, ...props }: DialogCloseTriggerProps): react_jsx_runtime.JSX.Element;
43
+
44
+ export { DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogCloseTrigger, type DialogCloseTriggerProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, DialogRoot, type DialogRootProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, useDialogContext };