@juv/codego-react-ui 3.6.0 → 3.6.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/index.cjs +50 -42
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.global.js +50 -42
- package/dist/index.js +59 -51
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -169,6 +169,7 @@ function FloatingPortal({ children }) {
|
|
|
169
169
|
|
|
170
170
|
// src/components/ui/button.tsx
|
|
171
171
|
var React = __toESM(require("react"), 1);
|
|
172
|
+
var ReactDOM2 = __toESM(require("react-dom"), 1);
|
|
172
173
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
173
174
|
var Button = React.forwardRef(
|
|
174
175
|
({
|
|
@@ -247,6 +248,8 @@ var Button = React.forwardRef(
|
|
|
247
248
|
confirmBeforeClickModalTitle,
|
|
248
249
|
confirmBeforeClickModalContent,
|
|
249
250
|
confirmBeforeClickFooterAction,
|
|
251
|
+
onConfirm,
|
|
252
|
+
onCancel,
|
|
250
253
|
href,
|
|
251
254
|
target,
|
|
252
255
|
as = "button",
|
|
@@ -342,11 +345,13 @@ var Button = React.forwardRef(
|
|
|
342
345
|
};
|
|
343
346
|
function handleConfirmProceed() {
|
|
344
347
|
setConfirmOpen(false);
|
|
348
|
+
onConfirm?.();
|
|
345
349
|
onClick?.(pendingEvent.current ?? void 0);
|
|
346
350
|
pendingEvent.current = null;
|
|
347
351
|
}
|
|
348
352
|
function handleConfirmCancel() {
|
|
349
353
|
setConfirmOpen(false);
|
|
354
|
+
onCancel?.();
|
|
350
355
|
pendingEvent.current = null;
|
|
351
356
|
}
|
|
352
357
|
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
@@ -374,46 +379,49 @@ var Button = React.forwardRef(
|
|
|
374
379
|
tabIndex,
|
|
375
380
|
"data-testid": testID
|
|
376
381
|
};
|
|
377
|
-
const confirmModal = confirmBeforeClick && confirmOpen ?
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
382
|
+
const confirmModal = confirmBeforeClick && confirmOpen ? ReactDOM2.createPortal(
|
|
383
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
384
|
+
"div",
|
|
385
|
+
{
|
|
386
|
+
className: "fixed inset-0 z-[9999] flex items-center justify-center",
|
|
387
|
+
onClick: handleConfirmCancel,
|
|
388
|
+
children: [
|
|
389
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-sm" }),
|
|
390
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
391
|
+
"div",
|
|
392
|
+
{
|
|
393
|
+
className: "relative z-10 w-full max-w-sm rounded-2xl border border-border bg-card p-6 shadow-2xl",
|
|
394
|
+
onClick: (e) => e.stopPropagation(),
|
|
395
|
+
children: [
|
|
396
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-base font-semibold text-foreground mb-2", children: confirmBeforeClickModalTitle ?? "Are you sure?" }),
|
|
397
|
+
confirmBeforeClickModalContent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-sm text-muted-foreground mb-5", children: confirmBeforeClickModalContent }),
|
|
398
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex justify-end gap-2 mt-4", children: confirmBeforeClickFooterAction ?? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
399
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
400
|
+
"button",
|
|
401
|
+
{
|
|
402
|
+
type: "button",
|
|
403
|
+
onClick: handleConfirmCancel,
|
|
404
|
+
className: "inline-flex items-center justify-center rounded-md border border-border bg-background px-4 py-2 text-sm font-medium text-foreground hover:bg-accent transition-colors",
|
|
405
|
+
children: "Cancel"
|
|
406
|
+
}
|
|
407
|
+
),
|
|
408
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
409
|
+
"button",
|
|
410
|
+
{
|
|
411
|
+
type: "button",
|
|
412
|
+
onClick: handleConfirmProceed,
|
|
413
|
+
className: "inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary-hover transition-colors",
|
|
414
|
+
children: "Proceed"
|
|
415
|
+
}
|
|
416
|
+
)
|
|
417
|
+
] }) })
|
|
418
|
+
]
|
|
419
|
+
}
|
|
420
|
+
)
|
|
421
|
+
]
|
|
422
|
+
}
|
|
423
|
+
),
|
|
424
|
+
document.body
|
|
417
425
|
) : null;
|
|
418
426
|
if (Element === "a") {
|
|
419
427
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
@@ -11106,7 +11114,7 @@ var import_lucide_react25 = require("lucide-react");
|
|
|
11106
11114
|
|
|
11107
11115
|
// src/components/ui/tooltip.tsx
|
|
11108
11116
|
var React38 = __toESM(require("react"), 1);
|
|
11109
|
-
var
|
|
11117
|
+
var ReactDOM3 = __toESM(require("react-dom"), 1);
|
|
11110
11118
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
11111
11119
|
function Tooltip({
|
|
11112
11120
|
content,
|
|
@@ -11161,7 +11169,7 @@ function Tooltip({
|
|
|
11161
11169
|
onBlur: () => setVisible(false),
|
|
11162
11170
|
children: [
|
|
11163
11171
|
children,
|
|
11164
|
-
visible &&
|
|
11172
|
+
visible && ReactDOM3.createPortal(
|
|
11165
11173
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
11166
11174
|
"div",
|
|
11167
11175
|
{
|
package/dist/index.d.cts
CHANGED
|
@@ -969,6 +969,8 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
969
969
|
confirmBeforeClickModalTitle?: string;
|
|
970
970
|
confirmBeforeClickModalContent?: React.ReactNode;
|
|
971
971
|
confirmBeforeClickFooterAction?: React.ReactNode;
|
|
972
|
+
onConfirm?: () => void;
|
|
973
|
+
onCancel?: () => void;
|
|
972
974
|
href?: string;
|
|
973
975
|
target?: "_blank" | "_self";
|
|
974
976
|
as?: "button" | "a" | "div";
|
package/dist/index.d.ts
CHANGED
|
@@ -969,6 +969,8 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
969
969
|
confirmBeforeClickModalTitle?: string;
|
|
970
970
|
confirmBeforeClickModalContent?: React.ReactNode;
|
|
971
971
|
confirmBeforeClickFooterAction?: React.ReactNode;
|
|
972
|
+
onConfirm?: () => void;
|
|
973
|
+
onCancel?: () => void;
|
|
972
974
|
href?: string;
|
|
973
975
|
target?: "_blank" | "_self";
|
|
974
976
|
as?: "button" | "a" | "div";
|
package/dist/index.global.js
CHANGED
|
@@ -60734,6 +60734,7 @@ ${n2.shaderPreludeCode.vertexSource}`, define: n2.shaderDefine }, defaultProject
|
|
|
60734
60734
|
|
|
60735
60735
|
// src/components/ui/button.tsx
|
|
60736
60736
|
var React = __toESM(require_react(), 1);
|
|
60737
|
+
var ReactDOM2 = __toESM(require_react_dom(), 1);
|
|
60737
60738
|
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
60738
60739
|
var Button = React.forwardRef(
|
|
60739
60740
|
({
|
|
@@ -60812,6 +60813,8 @@ ${n2.shaderPreludeCode.vertexSource}`, define: n2.shaderDefine }, defaultProject
|
|
|
60812
60813
|
confirmBeforeClickModalTitle,
|
|
60813
60814
|
confirmBeforeClickModalContent,
|
|
60814
60815
|
confirmBeforeClickFooterAction,
|
|
60816
|
+
onConfirm,
|
|
60817
|
+
onCancel,
|
|
60815
60818
|
href,
|
|
60816
60819
|
target,
|
|
60817
60820
|
as = "button",
|
|
@@ -60907,11 +60910,13 @@ ${n2.shaderPreludeCode.vertexSource}`, define: n2.shaderDefine }, defaultProject
|
|
|
60907
60910
|
};
|
|
60908
60911
|
function handleConfirmProceed() {
|
|
60909
60912
|
setConfirmOpen(false);
|
|
60913
|
+
onConfirm?.();
|
|
60910
60914
|
onClick?.(pendingEvent.current ?? void 0);
|
|
60911
60915
|
pendingEvent.current = null;
|
|
60912
60916
|
}
|
|
60913
60917
|
function handleConfirmCancel() {
|
|
60914
60918
|
setConfirmOpen(false);
|
|
60919
|
+
onCancel?.();
|
|
60915
60920
|
pendingEvent.current = null;
|
|
60916
60921
|
}
|
|
60917
60922
|
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
@@ -60939,46 +60944,49 @@ ${n2.shaderPreludeCode.vertexSource}`, define: n2.shaderDefine }, defaultProject
|
|
|
60939
60944
|
tabIndex,
|
|
60940
60945
|
"data-testid": testID
|
|
60941
60946
|
};
|
|
60942
|
-
const confirmModal = confirmBeforeClick && confirmOpen ?
|
|
60943
|
-
|
|
60944
|
-
|
|
60945
|
-
|
|
60946
|
-
|
|
60947
|
-
|
|
60948
|
-
|
|
60949
|
-
|
|
60950
|
-
|
|
60951
|
-
|
|
60952
|
-
|
|
60953
|
-
|
|
60954
|
-
|
|
60955
|
-
|
|
60956
|
-
|
|
60957
|
-
|
|
60958
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60959
|
-
|
|
60960
|
-
|
|
60961
|
-
|
|
60962
|
-
|
|
60963
|
-
|
|
60964
|
-
|
|
60965
|
-
|
|
60966
|
-
|
|
60967
|
-
|
|
60968
|
-
|
|
60969
|
-
|
|
60970
|
-
|
|
60971
|
-
|
|
60972
|
-
|
|
60973
|
-
|
|
60974
|
-
|
|
60975
|
-
|
|
60976
|
-
|
|
60977
|
-
|
|
60978
|
-
|
|
60979
|
-
|
|
60980
|
-
|
|
60981
|
-
|
|
60947
|
+
const confirmModal = confirmBeforeClick && confirmOpen ? ReactDOM2.createPortal(
|
|
60948
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
60949
|
+
"div",
|
|
60950
|
+
{
|
|
60951
|
+
className: "fixed inset-0 z-[9999] flex items-center justify-center",
|
|
60952
|
+
onClick: handleConfirmCancel,
|
|
60953
|
+
children: [
|
|
60954
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-sm" }),
|
|
60955
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
60956
|
+
"div",
|
|
60957
|
+
{
|
|
60958
|
+
className: "relative z-10 w-full max-w-sm rounded-2xl border border-border bg-card p-6 shadow-2xl",
|
|
60959
|
+
onClick: (e) => e.stopPropagation(),
|
|
60960
|
+
children: [
|
|
60961
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-base font-semibold text-foreground mb-2", children: confirmBeforeClickModalTitle ?? "Are you sure?" }),
|
|
60962
|
+
confirmBeforeClickModalContent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-sm text-muted-foreground mb-5", children: confirmBeforeClickModalContent }),
|
|
60963
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex justify-end gap-2 mt-4", children: confirmBeforeClickFooterAction ?? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
60964
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60965
|
+
"button",
|
|
60966
|
+
{
|
|
60967
|
+
type: "button",
|
|
60968
|
+
onClick: handleConfirmCancel,
|
|
60969
|
+
className: "inline-flex items-center justify-center rounded-md border border-border bg-background px-4 py-2 text-sm font-medium text-foreground hover:bg-accent transition-colors",
|
|
60970
|
+
children: "Cancel"
|
|
60971
|
+
}
|
|
60972
|
+
),
|
|
60973
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60974
|
+
"button",
|
|
60975
|
+
{
|
|
60976
|
+
type: "button",
|
|
60977
|
+
onClick: handleConfirmProceed,
|
|
60978
|
+
className: "inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary-hover transition-colors",
|
|
60979
|
+
children: "Proceed"
|
|
60980
|
+
}
|
|
60981
|
+
)
|
|
60982
|
+
] }) })
|
|
60983
|
+
]
|
|
60984
|
+
}
|
|
60985
|
+
)
|
|
60986
|
+
]
|
|
60987
|
+
}
|
|
60988
|
+
),
|
|
60989
|
+
document.body
|
|
60982
60990
|
) : null;
|
|
60983
60991
|
if (Element2 === "a") {
|
|
60984
60992
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
@@ -74680,7 +74688,7 @@ ${n2.shaderPreludeCode.vertexSource}`, define: n2.shaderDefine }, defaultProject
|
|
|
74680
74688
|
|
|
74681
74689
|
// src/components/ui/tooltip.tsx
|
|
74682
74690
|
var React40 = __toESM(require_react(), 1);
|
|
74683
|
-
var
|
|
74691
|
+
var ReactDOM3 = __toESM(require_react_dom(), 1);
|
|
74684
74692
|
var import_jsx_runtime44 = __toESM(require_jsx_runtime(), 1);
|
|
74685
74693
|
function Tooltip({
|
|
74686
74694
|
content,
|
|
@@ -74735,7 +74743,7 @@ ${n2.shaderPreludeCode.vertexSource}`, define: n2.shaderDefine }, defaultProject
|
|
|
74735
74743
|
onBlur: () => setVisible(false),
|
|
74736
74744
|
children: [
|
|
74737
74745
|
children,
|
|
74738
|
-
visible &&
|
|
74746
|
+
visible && ReactDOM3.createPortal(
|
|
74739
74747
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
74740
74748
|
"div",
|
|
74741
74749
|
{
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ function FloatingPortal({ children }) {
|
|
|
27
27
|
|
|
28
28
|
// src/components/ui/button.tsx
|
|
29
29
|
import * as React from "react";
|
|
30
|
+
import * as ReactDOM2 from "react-dom";
|
|
30
31
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
31
32
|
var Button = React.forwardRef(
|
|
32
33
|
({
|
|
@@ -105,6 +106,8 @@ var Button = React.forwardRef(
|
|
|
105
106
|
confirmBeforeClickModalTitle,
|
|
106
107
|
confirmBeforeClickModalContent,
|
|
107
108
|
confirmBeforeClickFooterAction,
|
|
109
|
+
onConfirm,
|
|
110
|
+
onCancel,
|
|
108
111
|
href,
|
|
109
112
|
target,
|
|
110
113
|
as = "button",
|
|
@@ -200,11 +203,13 @@ var Button = React.forwardRef(
|
|
|
200
203
|
};
|
|
201
204
|
function handleConfirmProceed() {
|
|
202
205
|
setConfirmOpen(false);
|
|
206
|
+
onConfirm?.();
|
|
203
207
|
onClick?.(pendingEvent.current ?? void 0);
|
|
204
208
|
pendingEvent.current = null;
|
|
205
209
|
}
|
|
206
210
|
function handleConfirmCancel() {
|
|
207
211
|
setConfirmOpen(false);
|
|
212
|
+
onCancel?.();
|
|
208
213
|
pendingEvent.current = null;
|
|
209
214
|
}
|
|
210
215
|
const buttonContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -232,46 +237,49 @@ var Button = React.forwardRef(
|
|
|
232
237
|
tabIndex,
|
|
233
238
|
"data-testid": testID
|
|
234
239
|
};
|
|
235
|
-
const confirmModal = confirmBeforeClick && confirmOpen ?
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
/* @__PURE__ */ jsx(
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
240
|
+
const confirmModal = confirmBeforeClick && confirmOpen ? ReactDOM2.createPortal(
|
|
241
|
+
/* @__PURE__ */ jsxs(
|
|
242
|
+
"div",
|
|
243
|
+
{
|
|
244
|
+
className: "fixed inset-0 z-[9999] flex items-center justify-center",
|
|
245
|
+
onClick: handleConfirmCancel,
|
|
246
|
+
children: [
|
|
247
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-sm" }),
|
|
248
|
+
/* @__PURE__ */ jsxs(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
className: "relative z-10 w-full max-w-sm rounded-2xl border border-border bg-card p-6 shadow-2xl",
|
|
252
|
+
onClick: (e) => e.stopPropagation(),
|
|
253
|
+
children: [
|
|
254
|
+
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold text-foreground mb-2", children: confirmBeforeClickModalTitle ?? "Are you sure?" }),
|
|
255
|
+
confirmBeforeClickModalContent && /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground mb-5", children: confirmBeforeClickModalContent }),
|
|
256
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-end gap-2 mt-4", children: confirmBeforeClickFooterAction ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
257
|
+
/* @__PURE__ */ jsx(
|
|
258
|
+
"button",
|
|
259
|
+
{
|
|
260
|
+
type: "button",
|
|
261
|
+
onClick: handleConfirmCancel,
|
|
262
|
+
className: "inline-flex items-center justify-center rounded-md border border-border bg-background px-4 py-2 text-sm font-medium text-foreground hover:bg-accent transition-colors",
|
|
263
|
+
children: "Cancel"
|
|
264
|
+
}
|
|
265
|
+
),
|
|
266
|
+
/* @__PURE__ */ jsx(
|
|
267
|
+
"button",
|
|
268
|
+
{
|
|
269
|
+
type: "button",
|
|
270
|
+
onClick: handleConfirmProceed,
|
|
271
|
+
className: "inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary-hover transition-colors",
|
|
272
|
+
children: "Proceed"
|
|
273
|
+
}
|
|
274
|
+
)
|
|
275
|
+
] }) })
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
)
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
),
|
|
282
|
+
document.body
|
|
275
283
|
) : null;
|
|
276
284
|
if (Element === "a") {
|
|
277
285
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -1435,7 +1443,7 @@ function Breadcrumb({
|
|
|
1435
1443
|
|
|
1436
1444
|
// src/components/ui/bulletin-board.tsx
|
|
1437
1445
|
import * as React8 from "react";
|
|
1438
|
-
import { createPortal as
|
|
1446
|
+
import { createPortal as createPortal3 } from "react-dom";
|
|
1439
1447
|
import axios2 from "axios";
|
|
1440
1448
|
import { Search, Pin, Tag, MoreHorizontal as MoreHorizontal2, AlertCircle, AlertTriangle, Info, X, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight3, Pencil, Trash, Loader2 } from "lucide-react";
|
|
1441
1449
|
import { Fragment as Fragment5, jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
@@ -1469,7 +1477,7 @@ function AuthorAvatar({ item }) {
|
|
|
1469
1477
|
}
|
|
1470
1478
|
function BulletinPreview({ item, onClose, onEdit, onDelete, onView, customActions, headerAction, footerAction }) {
|
|
1471
1479
|
const priority = item.priority ? PRIORITY_CONFIG[item.priority] : null;
|
|
1472
|
-
return
|
|
1480
|
+
return createPortal3(
|
|
1473
1481
|
/* @__PURE__ */ jsx10(
|
|
1474
1482
|
"div",
|
|
1475
1483
|
{
|
|
@@ -1648,7 +1656,7 @@ function BulletinDeleteConfirm({
|
|
|
1648
1656
|
setLoading(false);
|
|
1649
1657
|
}
|
|
1650
1658
|
};
|
|
1651
|
-
return
|
|
1659
|
+
return createPortal3(
|
|
1652
1660
|
/* @__PURE__ */ jsx10(
|
|
1653
1661
|
"div",
|
|
1654
1662
|
{
|
|
@@ -1718,7 +1726,7 @@ function BulletinEditModal({
|
|
|
1718
1726
|
setLoading(false);
|
|
1719
1727
|
}
|
|
1720
1728
|
};
|
|
1721
|
-
return
|
|
1729
|
+
return createPortal3(
|
|
1722
1730
|
/* @__PURE__ */ jsx10(
|
|
1723
1731
|
"div",
|
|
1724
1732
|
{
|
|
@@ -3620,7 +3628,7 @@ function MetricRow({ items, divided = true, className }) {
|
|
|
3620
3628
|
|
|
3621
3629
|
// src/components/ui/data-grid.tsx
|
|
3622
3630
|
import * as React29 from "react";
|
|
3623
|
-
import { createPortal as
|
|
3631
|
+
import { createPortal as createPortal5 } from "react-dom";
|
|
3624
3632
|
|
|
3625
3633
|
// src/components/tools/decryptPayload.ts
|
|
3626
3634
|
import CryptoJS from "crypto-js";
|
|
@@ -6303,7 +6311,7 @@ function NotificationBanner({
|
|
|
6303
6311
|
|
|
6304
6312
|
// src/components/ui/table.tsx
|
|
6305
6313
|
import * as React28 from "react";
|
|
6306
|
-
import { createPortal as
|
|
6314
|
+
import { createPortal as createPortal4 } from "react-dom";
|
|
6307
6315
|
import axios3 from "axios";
|
|
6308
6316
|
import { ChevronLeft as ChevronLeft6, ChevronRight as ChevronRight8, Search as Search5, Trash2 as Trash22, ChevronsUpDown, ChevronUp, ChevronDown as ChevronDown4, X as X9, Eye as Eye2, Pencil as Pencil2, Trash as Trash3, Loader2 as Loader22 } from "lucide-react";
|
|
6309
6317
|
import { Fragment as Fragment12, jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
@@ -6620,7 +6628,7 @@ var MODAL_WIDTH = {
|
|
|
6620
6628
|
full: "max-w-full"
|
|
6621
6629
|
};
|
|
6622
6630
|
function ModalShell({ title, onClose, children, footer, width = "lg" }) {
|
|
6623
|
-
return
|
|
6631
|
+
return createPortal4(
|
|
6624
6632
|
/* @__PURE__ */ jsx32(
|
|
6625
6633
|
"div",
|
|
6626
6634
|
{
|
|
@@ -8035,7 +8043,7 @@ function Table({
|
|
|
8035
8043
|
}
|
|
8036
8044
|
}
|
|
8037
8045
|
),
|
|
8038
|
-
bulkConfirm &&
|
|
8046
|
+
bulkConfirm && createPortal4(
|
|
8039
8047
|
/* @__PURE__ */ jsx32(
|
|
8040
8048
|
"div",
|
|
8041
8049
|
{
|
|
@@ -8175,7 +8183,7 @@ function ActionBtn2({
|
|
|
8175
8183
|
);
|
|
8176
8184
|
}
|
|
8177
8185
|
function DGModalShell({ title, onClose, children, footer, width = "lg" }) {
|
|
8178
|
-
return
|
|
8186
|
+
return createPortal5(
|
|
8179
8187
|
/* @__PURE__ */ jsx33(
|
|
8180
8188
|
"div",
|
|
8181
8189
|
{
|
|
@@ -10981,7 +10989,7 @@ import { PanelLeftClose, PanelLeftOpen, Sun as Sun3, Moon as Moon2, Loader2 as L
|
|
|
10981
10989
|
|
|
10982
10990
|
// src/components/ui/tooltip.tsx
|
|
10983
10991
|
import * as React38 from "react";
|
|
10984
|
-
import * as
|
|
10992
|
+
import * as ReactDOM3 from "react-dom";
|
|
10985
10993
|
import { Fragment as Fragment17, jsx as jsx44, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
10986
10994
|
function Tooltip({
|
|
10987
10995
|
content,
|
|
@@ -11036,7 +11044,7 @@ function Tooltip({
|
|
|
11036
11044
|
onBlur: () => setVisible(false),
|
|
11037
11045
|
children: [
|
|
11038
11046
|
children,
|
|
11039
|
-
visible &&
|
|
11047
|
+
visible && ReactDOM3.createPortal(
|
|
11040
11048
|
/* @__PURE__ */ jsx44(
|
|
11041
11049
|
"div",
|
|
11042
11050
|
{
|