@tecof/theme-editor 0.0.8 → 0.0.11

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 CHANGED
@@ -1045,7 +1045,7 @@ var createLanguageField = (options = {}) => {
1045
1045
  label,
1046
1046
  labelIcon,
1047
1047
  visible,
1048
- render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(
1048
+ render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(core.FieldLabel, { label: label || "", icon: labelIcon, readOnly, children: /* @__PURE__ */ jsxRuntime.jsx(
1049
1049
  LanguageField,
1050
1050
  {
1051
1051
  field,
@@ -1056,7 +1056,7 @@ var createLanguageField = (options = {}) => {
1056
1056
  readOnly,
1057
1057
  ...fieldOptions
1058
1058
  }
1059
- )
1059
+ ) })
1060
1060
  };
1061
1061
  };
1062
1062
  var createExtensions = () => [
@@ -1335,7 +1335,7 @@ var createEditorField = (options = {}) => {
1335
1335
  label,
1336
1336
  labelIcon,
1337
1337
  visible,
1338
- render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(
1338
+ render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(core.FieldLabel, { label: label || "", icon: labelIcon, readOnly, children: /* @__PURE__ */ jsxRuntime.jsx(
1339
1339
  EditorField,
1340
1340
  {
1341
1341
  field,
@@ -1346,7 +1346,7 @@ var createEditorField = (options = {}) => {
1346
1346
  readOnly,
1347
1347
  ...fieldOptions
1348
1348
  }
1349
- )
1349
+ ) })
1350
1350
  };
1351
1351
  };
1352
1352
 
@@ -20810,6 +20810,8 @@ var Root = Dialog;
20810
20810
  var Portal2 = DialogPortal;
20811
20811
  var Overlay = DialogOverlay;
20812
20812
  var Content = DialogContent;
20813
+ var Title = DialogTitle;
20814
+ var Description = DialogDescription;
20813
20815
  function __insertCSS(code) {
20814
20816
  if (typeof document == "undefined") return;
20815
20817
  let head = document.head || document.getElementsByTagName("head")[0];
@@ -22271,7 +22273,10 @@ var Drawer = {
22271
22273
  Root: Root2,
22272
22274
  Content: Content2,
22273
22275
  Overlay: Overlay2,
22274
- Portal: Portal3};
22276
+ Portal: Portal3,
22277
+ Title,
22278
+ Description
22279
+ };
22275
22280
  registerPlugin(
22276
22281
  filepond_plugin_file_validate_size_esm_default,
22277
22282
  filepond_plugin_file_validate_type_esm_default,
@@ -22714,6 +22719,8 @@ var UploadField = ({
22714
22719
  }, children: /* @__PURE__ */ jsxRuntime.jsxs(Drawer.Portal, { children: [
22715
22720
  /* @__PURE__ */ jsxRuntime.jsx(Drawer.Overlay, { className: "tecof-upload-drawer-overlay" }),
22716
22721
  /* @__PURE__ */ jsxRuntime.jsxs(Drawer.Content, { className: "tecof-upload-drawer-content", children: [
22722
+ /* @__PURE__ */ jsxRuntime.jsx(Drawer.Title, { className: "tecof-sr-only", children: "Medya Y\xF6neticisi" }),
22723
+ /* @__PURE__ */ jsxRuntime.jsx(Drawer.Description, { className: "tecof-sr-only", children: "Sunucudaki dosyalardan birini se\xE7in veya yeni dosya y\xFCkleyin" }),
22717
22724
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tecof-upload-drawer-handle" }),
22718
22725
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-drawer-inner", children: [
22719
22726
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-upload-drawer-header", children: [
@@ -22807,7 +22814,7 @@ var createUploadField = (options = {}) => {
22807
22814
  label,
22808
22815
  labelIcon,
22809
22816
  visible,
22810
- render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(
22817
+ render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(core.FieldLabel, { label: label || "", icon: labelIcon, readOnly, children: /* @__PURE__ */ jsxRuntime.jsx(
22811
22818
  UploadField,
22812
22819
  {
22813
22820
  field,
@@ -22818,7 +22825,7 @@ var createUploadField = (options = {}) => {
22818
22825
  readOnly,
22819
22826
  ...fieldOptions
22820
22827
  }
22821
- )
22828
+ ) })
22822
22829
  };
22823
22830
  };
22824
22831
 
@@ -23496,7 +23503,7 @@ var createCodeEditorField = (options = {}) => {
23496
23503
  label,
23497
23504
  labelIcon,
23498
23505
  visible,
23499
- render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(
23506
+ render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(core.FieldLabel, { label: label || "", icon: labelIcon, readOnly, children: /* @__PURE__ */ jsxRuntime.jsx(
23500
23507
  CodeEditorField,
23501
23508
  {
23502
23509
  field,
@@ -23507,7 +23514,7 @@ var createCodeEditorField = (options = {}) => {
23507
23514
  readOnly,
23508
23515
  ...fieldOptions
23509
23516
  }
23510
- )
23517
+ ) })
23511
23518
  };
23512
23519
  };
23513
23520
  var LinkField = ({
@@ -23646,6 +23653,8 @@ var LinkField = ({
23646
23653
  /* @__PURE__ */ jsxRuntime.jsx(Drawer.Root, { open: drawerOpen, onOpenChange: setDrawerOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(Drawer.Portal, { children: [
23647
23654
  /* @__PURE__ */ jsxRuntime.jsx(Drawer.Overlay, { className: "tecof-link-drawer-overlay" }),
23648
23655
  /* @__PURE__ */ jsxRuntime.jsxs(Drawer.Content, { className: "tecof-link-drawer-content", children: [
23656
+ /* @__PURE__ */ jsxRuntime.jsx(Drawer.Title, { className: "tecof-sr-only", children: "Ba\u011Flant\u0131 Sayfas\u0131 Se\xE7ici" }),
23657
+ /* @__PURE__ */ jsxRuntime.jsx(Drawer.Description, { className: "tecof-sr-only", children: "Sayfa listesinden se\xE7im yap\u0131n veya arama yap\u0131n" }),
23649
23658
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tecof-link-drawer-header", children: [
23650
23659
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "tecof-link-drawer-title", children: "Sayfa Se\xE7" }),
23651
23660
  /* @__PURE__ */ jsxRuntime.jsx("button", { className: "tecof-link-drawer-close-btn", onClick: () => setDrawerOpen(false), children: /* @__PURE__ */ jsxRuntime.jsx(X, { size: 16 }) })
@@ -23697,18 +23706,18 @@ var createLinkField = (options = {}) => {
23697
23706
  label,
23698
23707
  labelIcon,
23699
23708
  visible,
23700
- render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(
23709
+ render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(core.FieldLabel, { label: label || "", icon: labelIcon, readOnly, children: /* @__PURE__ */ jsxRuntime.jsx(
23701
23710
  LinkField,
23702
23711
  {
23703
23712
  field,
23704
23713
  name: name3,
23705
23714
  id,
23706
- value: value || null,
23715
+ value: value || { url: "" },
23707
23716
  onChange,
23708
23717
  readOnly,
23709
23718
  ...fieldOptions
23710
23719
  }
23711
- )
23720
+ ) })
23712
23721
  };
23713
23722
  };
23714
23723
  var PRESET_COLORS = [
@@ -23972,7 +23981,7 @@ var createColorField = (options = {}) => {
23972
23981
  label,
23973
23982
  labelIcon,
23974
23983
  visible,
23975
- render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(
23984
+ render: ({ value, onChange, readOnly, field, name: name3, id }) => /* @__PURE__ */ jsxRuntime.jsx(core.FieldLabel, { label: label || "", icon: labelIcon, readOnly, children: /* @__PURE__ */ jsxRuntime.jsx(
23976
23985
  ColorField,
23977
23986
  {
23978
23987
  field,
@@ -23983,7 +23992,7 @@ var createColorField = (options = {}) => {
23983
23992
  readOnly,
23984
23993
  ...fieldOptions
23985
23994
  }
23986
- )
23995
+ ) })
23987
23996
  };
23988
23997
  };
23989
23998