@tecof/theme-editor 0.0.15 → 0.0.17
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.js +117 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +116 -44
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var HardBreak = require('@tiptap/extension-hard-break');
|
|
|
18
18
|
var HorizontalRule = require('@tiptap/extension-horizontal-rule');
|
|
19
19
|
var TextAlign = require('@tiptap/extension-text-align');
|
|
20
20
|
var Link2 = require('@tiptap/extension-link');
|
|
21
|
-
var
|
|
21
|
+
var Code2 = require('@tiptap/extension-code');
|
|
22
22
|
var CodeBlock = require('@tiptap/extension-code-block');
|
|
23
23
|
var ReactDOM = require('react-dom');
|
|
24
24
|
|
|
@@ -56,7 +56,7 @@ var HardBreak__default = /*#__PURE__*/_interopDefault(HardBreak);
|
|
|
56
56
|
var HorizontalRule__default = /*#__PURE__*/_interopDefault(HorizontalRule);
|
|
57
57
|
var TextAlign__default = /*#__PURE__*/_interopDefault(TextAlign);
|
|
58
58
|
var Link2__default = /*#__PURE__*/_interopDefault(Link2);
|
|
59
|
-
var
|
|
59
|
+
var Code2__default = /*#__PURE__*/_interopDefault(Code2);
|
|
60
60
|
var CodeBlock__default = /*#__PURE__*/_interopDefault(CodeBlock);
|
|
61
61
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
62
62
|
|
|
@@ -677,23 +677,30 @@ var Check = createLucideIcon("check", __iconNode);
|
|
|
677
677
|
var __iconNode2 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
678
678
|
var ChevronRight = createLucideIcon("chevron-right", __iconNode2);
|
|
679
679
|
|
|
680
|
-
// node_modules/lucide-react/dist/esm/icons/
|
|
680
|
+
// node_modules/lucide-react/dist/esm/icons/code.js
|
|
681
681
|
var __iconNode3 = [
|
|
682
|
+
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
683
|
+
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
684
|
+
];
|
|
685
|
+
var Code = createLucideIcon("code", __iconNode3);
|
|
686
|
+
|
|
687
|
+
// node_modules/lucide-react/dist/esm/icons/copy.js
|
|
688
|
+
var __iconNode4 = [
|
|
682
689
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
683
690
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
684
691
|
];
|
|
685
|
-
var Copy = createLucideIcon("copy",
|
|
692
|
+
var Copy = createLucideIcon("copy", __iconNode4);
|
|
686
693
|
|
|
687
694
|
// node_modules/lucide-react/dist/esm/icons/external-link.js
|
|
688
|
-
var
|
|
695
|
+
var __iconNode5 = [
|
|
689
696
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
690
697
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
691
698
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
692
699
|
];
|
|
693
|
-
var ExternalLink = createLucideIcon("external-link",
|
|
700
|
+
var ExternalLink = createLucideIcon("external-link", __iconNode5);
|
|
694
701
|
|
|
695
702
|
// node_modules/lucide-react/dist/esm/icons/file-text.js
|
|
696
|
-
var
|
|
703
|
+
var __iconNode6 = [
|
|
697
704
|
[
|
|
698
705
|
"path",
|
|
699
706
|
{
|
|
@@ -706,10 +713,10 @@ var __iconNode5 = [
|
|
|
706
713
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
707
714
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
708
715
|
];
|
|
709
|
-
var FileText = createLucideIcon("file-text",
|
|
716
|
+
var FileText = createLucideIcon("file-text", __iconNode6);
|
|
710
717
|
|
|
711
718
|
// node_modules/lucide-react/dist/esm/icons/file.js
|
|
712
|
-
var
|
|
719
|
+
var __iconNode7 = [
|
|
713
720
|
[
|
|
714
721
|
"path",
|
|
715
722
|
{
|
|
@@ -719,10 +726,10 @@ var __iconNode6 = [
|
|
|
719
726
|
],
|
|
720
727
|
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
|
|
721
728
|
];
|
|
722
|
-
var File2 = createLucideIcon("file",
|
|
729
|
+
var File2 = createLucideIcon("file", __iconNode7);
|
|
723
730
|
|
|
724
731
|
// node_modules/lucide-react/dist/esm/icons/folder-open.js
|
|
725
|
-
var
|
|
732
|
+
var __iconNode8 = [
|
|
726
733
|
[
|
|
727
734
|
"path",
|
|
728
735
|
{
|
|
@@ -731,36 +738,36 @@ var __iconNode7 = [
|
|
|
731
738
|
}
|
|
732
739
|
]
|
|
733
740
|
];
|
|
734
|
-
var FolderOpen = createLucideIcon("folder-open",
|
|
741
|
+
var FolderOpen = createLucideIcon("folder-open", __iconNode8);
|
|
735
742
|
|
|
736
743
|
// node_modules/lucide-react/dist/esm/icons/globe.js
|
|
737
|
-
var
|
|
744
|
+
var __iconNode9 = [
|
|
738
745
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
739
746
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
740
747
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
741
748
|
];
|
|
742
|
-
var Globe = createLucideIcon("globe",
|
|
749
|
+
var Globe = createLucideIcon("globe", __iconNode9);
|
|
743
750
|
|
|
744
751
|
// node_modules/lucide-react/dist/esm/icons/image-plus.js
|
|
745
|
-
var
|
|
752
|
+
var __iconNode10 = [
|
|
746
753
|
["path", { d: "M16 5h6", key: "1vod17" }],
|
|
747
754
|
["path", { d: "M19 2v6", key: "4bpg5p" }],
|
|
748
755
|
["path", { d: "M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5", key: "1ue2ih" }],
|
|
749
756
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }],
|
|
750
757
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }]
|
|
751
758
|
];
|
|
752
|
-
var ImagePlus = createLucideIcon("image-plus",
|
|
759
|
+
var ImagePlus = createLucideIcon("image-plus", __iconNode10);
|
|
753
760
|
|
|
754
761
|
// node_modules/lucide-react/dist/esm/icons/image.js
|
|
755
|
-
var
|
|
762
|
+
var __iconNode11 = [
|
|
756
763
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
757
764
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
758
765
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
759
766
|
];
|
|
760
|
-
var Image2 = createLucideIcon("image",
|
|
767
|
+
var Image2 = createLucideIcon("image", __iconNode11);
|
|
761
768
|
|
|
762
769
|
// node_modules/lucide-react/dist/esm/icons/languages.js
|
|
763
|
-
var
|
|
770
|
+
var __iconNode12 = [
|
|
764
771
|
["path", { d: "m5 8 6 6", key: "1wu5hv" }],
|
|
765
772
|
["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
|
|
766
773
|
["path", { d: "M2 5h12", key: "or177f" }],
|
|
@@ -768,21 +775,21 @@ var __iconNode11 = [
|
|
|
768
775
|
["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
|
|
769
776
|
["path", { d: "M14 18h6", key: "1m8k6r" }]
|
|
770
777
|
];
|
|
771
|
-
var Languages = createLucideIcon("languages",
|
|
778
|
+
var Languages = createLucideIcon("languages", __iconNode12);
|
|
772
779
|
|
|
773
780
|
// node_modules/lucide-react/dist/esm/icons/link.js
|
|
774
|
-
var
|
|
781
|
+
var __iconNode13 = [
|
|
775
782
|
["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
|
|
776
783
|
["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
|
|
777
784
|
];
|
|
778
|
-
var Link = createLucideIcon("link",
|
|
785
|
+
var Link = createLucideIcon("link", __iconNode13);
|
|
779
786
|
|
|
780
787
|
// node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
781
|
-
var
|
|
782
|
-
var LoaderCircle = createLucideIcon("loader-circle",
|
|
788
|
+
var __iconNode14 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
789
|
+
var LoaderCircle = createLucideIcon("loader-circle", __iconNode14);
|
|
783
790
|
|
|
784
791
|
// node_modules/lucide-react/dist/esm/icons/pencil.js
|
|
785
|
-
var
|
|
792
|
+
var __iconNode15 = [
|
|
786
793
|
[
|
|
787
794
|
"path",
|
|
788
795
|
{
|
|
@@ -792,55 +799,55 @@ var __iconNode14 = [
|
|
|
792
799
|
],
|
|
793
800
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
794
801
|
];
|
|
795
|
-
var Pencil = createLucideIcon("pencil",
|
|
802
|
+
var Pencil = createLucideIcon("pencil", __iconNode15);
|
|
796
803
|
|
|
797
804
|
// node_modules/lucide-react/dist/esm/icons/refresh-ccw.js
|
|
798
|
-
var
|
|
805
|
+
var __iconNode16 = [
|
|
799
806
|
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
800
807
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
801
808
|
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
802
809
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
803
810
|
];
|
|
804
|
-
var RefreshCcw = createLucideIcon("refresh-ccw",
|
|
811
|
+
var RefreshCcw = createLucideIcon("refresh-ccw", __iconNode16);
|
|
805
812
|
|
|
806
813
|
// node_modules/lucide-react/dist/esm/icons/rotate-ccw.js
|
|
807
|
-
var
|
|
814
|
+
var __iconNode17 = [
|
|
808
815
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
809
816
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
810
817
|
];
|
|
811
|
-
var RotateCcw = createLucideIcon("rotate-ccw",
|
|
818
|
+
var RotateCcw = createLucideIcon("rotate-ccw", __iconNode17);
|
|
812
819
|
|
|
813
820
|
// node_modules/lucide-react/dist/esm/icons/search.js
|
|
814
|
-
var
|
|
821
|
+
var __iconNode18 = [
|
|
815
822
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
816
823
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
817
824
|
];
|
|
818
|
-
var Search = createLucideIcon("search",
|
|
825
|
+
var Search = createLucideIcon("search", __iconNode18);
|
|
819
826
|
|
|
820
827
|
// node_modules/lucide-react/dist/esm/icons/trash-2.js
|
|
821
|
-
var
|
|
828
|
+
var __iconNode19 = [
|
|
822
829
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
823
830
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
824
831
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
825
832
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
826
833
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
827
834
|
];
|
|
828
|
-
var Trash2 = createLucideIcon("trash-2",
|
|
835
|
+
var Trash2 = createLucideIcon("trash-2", __iconNode19);
|
|
829
836
|
|
|
830
837
|
// node_modules/lucide-react/dist/esm/icons/upload.js
|
|
831
|
-
var
|
|
838
|
+
var __iconNode20 = [
|
|
832
839
|
["path", { d: "M12 3v12", key: "1x0j5s" }],
|
|
833
840
|
["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
|
|
834
841
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
|
|
835
842
|
];
|
|
836
|
-
var Upload = createLucideIcon("upload",
|
|
843
|
+
var Upload = createLucideIcon("upload", __iconNode20);
|
|
837
844
|
|
|
838
845
|
// node_modules/lucide-react/dist/esm/icons/x.js
|
|
839
|
-
var
|
|
846
|
+
var __iconNode21 = [
|
|
840
847
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
841
848
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
842
849
|
];
|
|
843
|
-
var X = createLucideIcon("x",
|
|
850
|
+
var X = createLucideIcon("x", __iconNode21);
|
|
844
851
|
var LanguageTabBar = ({
|
|
845
852
|
languages,
|
|
846
853
|
defaultLanguage,
|
|
@@ -1056,7 +1063,7 @@ var createExtensions = () => [
|
|
|
1056
1063
|
Blockquote__default.default,
|
|
1057
1064
|
HardBreak__default.default,
|
|
1058
1065
|
HorizontalRule__default.default,
|
|
1059
|
-
|
|
1066
|
+
Code2__default.default,
|
|
1060
1067
|
CodeBlock__default.default,
|
|
1061
1068
|
TextAlign__default.default.configure({ types: ["heading", "paragraph"] }),
|
|
1062
1069
|
Link2__default.default.configure({ openOnClick: false, HTMLAttributes: { target: "_blank" } })
|
|
@@ -22323,7 +22330,7 @@ var FileItemRenderer = ({
|
|
|
22323
22330
|
`${cdnUrl}/${file2.name}`;
|
|
22324
22331
|
const ext = getFileExtension(file2.name);
|
|
22325
22332
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-file-item", children: [
|
|
22326
|
-
isImageType(file2.type) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
22333
|
+
file2.type === "image/reference" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tecof-upload-file-icon", style: { backgroundColor: "#eef2ff", color: "#4f46e5" }, children: /* @__PURE__ */ jsxRuntime.jsx(Code, { size: 20 }) }) : isImageType(file2.type) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
22327
22334
|
TecofPicture,
|
|
22328
22335
|
{
|
|
22329
22336
|
data: file2,
|
|
@@ -22459,6 +22466,8 @@ var UploadField = ({
|
|
|
22459
22466
|
const [filesForPond, setFilesForPond] = React__default.useState([]);
|
|
22460
22467
|
const [showPond, setShowPond] = React__default.useState(false);
|
|
22461
22468
|
const [drawerOpen, setDrawerOpen] = React__default.useState(false);
|
|
22469
|
+
const [showRefInput, setShowRefInput] = React__default.useState(false);
|
|
22470
|
+
const [refCode, setRefCode] = React__default.useState("{{ data. }}");
|
|
22462
22471
|
const [galleryFiles, setGalleryFiles] = React__default.useState([]);
|
|
22463
22472
|
const [loading, setLoading] = React__default.useState(false);
|
|
22464
22473
|
const [refreshKey, setRefreshKey] = React__default.useState(0);
|
|
@@ -22505,6 +22514,20 @@ var UploadField = ({
|
|
|
22505
22514
|
updated.splice(idx, 1);
|
|
22506
22515
|
onChange(updated);
|
|
22507
22516
|
}, [value, onChange]);
|
|
22517
|
+
const handleAddRef = React__default.useCallback(() => {
|
|
22518
|
+
if (!refCode.trim()) return;
|
|
22519
|
+
const refFile = {
|
|
22520
|
+
_id: `ref_${Date.now()}`,
|
|
22521
|
+
name: refCode.trim(),
|
|
22522
|
+
size: 0,
|
|
22523
|
+
type: "image/reference",
|
|
22524
|
+
meta: { originalName: refCode.trim(), isReference: true }
|
|
22525
|
+
};
|
|
22526
|
+
const updated = allowMultiple ? [...value, refFile] : [refFile];
|
|
22527
|
+
onChange(updated);
|
|
22528
|
+
setShowRefInput(false);
|
|
22529
|
+
setRefCode("{{ data. }}");
|
|
22530
|
+
}, [refCode, allowMultiple, value, onChange]);
|
|
22508
22531
|
React__default.useEffect(() => {
|
|
22509
22532
|
if (!drawerOpen) return;
|
|
22510
22533
|
setLoading(true);
|
|
@@ -22619,7 +22642,11 @@ var UploadField = ({
|
|
|
22619
22642
|
]
|
|
22620
22643
|
}
|
|
22621
22644
|
),
|
|
22622
|
-
!readOnly && canAddMore && !showPond && value.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-main-actions", children: [
|
|
22645
|
+
!readOnly && canAddMore && !showPond && value.length > 0 && !showRefInput && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-main-actions", children: [
|
|
22646
|
+
/* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "tecof-upload-btn-secondary", onClick: () => setShowRefInput(true), children: [
|
|
22647
|
+
/* @__PURE__ */ jsxRuntime.jsx(Code, { size: 15 }),
|
|
22648
|
+
" Referans"
|
|
22649
|
+
] }),
|
|
22623
22650
|
/* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "tecof-upload-btn-secondary", onClick: () => setDrawerOpen(true), children: [
|
|
22624
22651
|
/* @__PURE__ */ jsxRuntime.jsx(FolderOpen, { size: 15 }),
|
|
22625
22652
|
" Medya Se\xE7"
|
|
@@ -22629,10 +22656,54 @@ var UploadField = ({
|
|
|
22629
22656
|
" Yeni Y\xFCkle"
|
|
22630
22657
|
] })
|
|
22631
22658
|
] }),
|
|
22632
|
-
value.length === 0 && !readOnly && canAddMore && !showPond && /* @__PURE__ */ jsxRuntime.
|
|
22633
|
-
/* @__PURE__ */ jsxRuntime.
|
|
22634
|
-
|
|
22635
|
-
|
|
22659
|
+
value.length === 0 && !readOnly && canAddMore && !showPond && !showRefInput && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-main-actions", children: [
|
|
22660
|
+
/* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "tecof-upload-btn-secondary", onClick: () => setShowRefInput(true), children: [
|
|
22661
|
+
/* @__PURE__ */ jsxRuntime.jsx(Code, { size: 15 }),
|
|
22662
|
+
" Dinamik Referans Se\xE7"
|
|
22663
|
+
] }),
|
|
22664
|
+
/* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "tecof-upload-btn-primary", onClick: () => setShowPond(true), children: [
|
|
22665
|
+
/* @__PURE__ */ jsxRuntime.jsx(Upload, { size: 15 }),
|
|
22666
|
+
" Yeni Y\xFCkle"
|
|
22667
|
+
] })
|
|
22668
|
+
] }),
|
|
22669
|
+
showRefInput && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-ref-section", style: { background: "#f8fafc", padding: "12px", borderRadius: "8px", border: "1px solid #e2e8f0", marginTop: "10px" }, children: [
|
|
22670
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "8px" }, children: [
|
|
22671
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "12px", fontWeight: 500, color: "#475569" }, children: [
|
|
22672
|
+
"Dinamik CMS De\u011Fi\u015Fkeni (\xD6rn: ",
|
|
22673
|
+
`{{ data.image }}`,
|
|
22674
|
+
")"
|
|
22675
|
+
] }),
|
|
22676
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => setShowRefInput(false), style: { background: "none", border: "none", cursor: "pointer", color: "#64748b" }, children: /* @__PURE__ */ jsxRuntime.jsx(X, { size: 14 }) })
|
|
22677
|
+
] }),
|
|
22678
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
22679
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22680
|
+
"input",
|
|
22681
|
+
{
|
|
22682
|
+
type: "text",
|
|
22683
|
+
value: refCode,
|
|
22684
|
+
onChange: (e3) => setRefCode(e3.target.value),
|
|
22685
|
+
placeholder: "{{ data. }}",
|
|
22686
|
+
style: { flex: 1, padding: "8px 10px", fontSize: "13px", borderRadius: "6px", border: "1px solid #cbd5e1", outline: "none" },
|
|
22687
|
+
autoFocus: true,
|
|
22688
|
+
onKeyDown: (e3) => {
|
|
22689
|
+
if (e3.key === "Enter") {
|
|
22690
|
+
e3.preventDefault();
|
|
22691
|
+
handleAddRef();
|
|
22692
|
+
}
|
|
22693
|
+
}
|
|
22694
|
+
}
|
|
22695
|
+
),
|
|
22696
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22697
|
+
"button",
|
|
22698
|
+
{
|
|
22699
|
+
type: "button",
|
|
22700
|
+
onClick: handleAddRef,
|
|
22701
|
+
style: { padding: "0 12px", background: "#4f46e5", color: "#fff", fontSize: "12px", fontWeight: 500, borderRadius: "6px", border: "none", cursor: "pointer" },
|
|
22702
|
+
children: "Ekle"
|
|
22703
|
+
}
|
|
22704
|
+
)
|
|
22705
|
+
] })
|
|
22706
|
+
] }),
|
|
22636
22707
|
!readOnly && showPond && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-pond-section", children: [
|
|
22637
22708
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-pond-header", children: [
|
|
22638
22709
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "tecof-upload-pond-header-title", children: [
|
|
@@ -24157,6 +24228,7 @@ lucide-react/dist/esm/Icon.js:
|
|
|
24157
24228
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
24158
24229
|
lucide-react/dist/esm/icons/check.js:
|
|
24159
24230
|
lucide-react/dist/esm/icons/chevron-right.js:
|
|
24231
|
+
lucide-react/dist/esm/icons/code.js:
|
|
24160
24232
|
lucide-react/dist/esm/icons/copy.js:
|
|
24161
24233
|
lucide-react/dist/esm/icons/external-link.js:
|
|
24162
24234
|
lucide-react/dist/esm/icons/file-text.js:
|