@moontra/moonui 2.2.5 → 2.2.6

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
@@ -8524,7 +8524,7 @@ function DatePicker({
8524
8524
  /* @__PURE__ */ jsxRuntime.jsx(
8525
8525
  PopoverContent,
8526
8526
  {
8527
- className: "w-[360px] p-0 shadow-2xl rounded-2xl border border-gray-200 dark:border-gray-700 bg-background/95 backdrop-blur-sm z-[1000]",
8527
+ className: "w-[360px] p-0 shadow-2xl rounded-2xl border border-gray-200 dark:border-gray-700 bg-background/95 backdrop-blur-sm !z-[9999]",
8528
8528
  align: "start",
8529
8529
  sideOffset: 12,
8530
8530
  children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -8615,7 +8615,7 @@ function DateRangePicker({
8615
8615
  ]
8616
8616
  }
8617
8617
  ) }),
8618
- /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-auto p-0 shadow-2xl rounded-2xl border border-gray-200 dark:border-gray-700 bg-background/95 backdrop-blur-sm z-[1000]", align: "start", sideOffset: 12, children: /* @__PURE__ */ jsxRuntime.jsx(
8618
+ /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-auto p-0 shadow-2xl rounded-2xl border border-gray-200 dark:border-gray-700 bg-background/95 backdrop-blur-sm !z-[9999]", align: "start", sideOffset: 12, children: /* @__PURE__ */ jsxRuntime.jsx(
8619
8619
  Calendar,
8620
8620
  {
8621
8621
  mode: "range",
@@ -8773,7 +8773,7 @@ function MonthPicker({
8773
8773
  ]
8774
8774
  }
8775
8775
  ) }),
8776
- /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-64 p-0 shadow-2xl border border-gray-200 dark:border-gray-700 bg-background z-[1000]", align: "start", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-3", children: [
8776
+ /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-64 p-0 shadow-2xl border border-gray-200 dark:border-gray-700 bg-background !z-[9999]", align: "start", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-3", children: [
8777
8777
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-3", children: [
8778
8778
  /* @__PURE__ */ jsxRuntime.jsx(
8779
8779
  Button,
@@ -11663,7 +11663,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11663
11663
  }
11664
11664
  }, [executeCommand, updateContent]);
11665
11665
  t__namespace.default.useEffect(() => {
11666
- if (editorRef.current && content !== editorRef.current.innerHTML) {
11666
+ if (editorRef.current && content && content !== editorRef.current.innerHTML) {
11667
11667
  editorRef.current.innerHTML = content;
11668
11668
  }
11669
11669
  }, [content]);
@@ -11676,7 +11676,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11676
11676
  const toolbar = showToolbar && /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(
11677
11677
  framerMotion.motion.div,
11678
11678
  {
11679
- className: "flex items-center gap-1 p-2 border-b bg-muted/50",
11679
+ className: "flex items-center gap-1 p-2 border-b bg-gray-50/50 dark:bg-zinc-800/50 backdrop-blur-sm",
11680
11680
  initial: { opacity: 0, y: -10 },
11681
11681
  animate: { opacity: 1, y: 0 },
11682
11682
  children: [
@@ -11723,7 +11723,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11723
11723
  }
11724
11724
  )
11725
11725
  ] }),
11726
- /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6" }),
11726
+ /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6 bg-gray-300 dark:bg-zinc-600" }),
11727
11727
  /* @__PURE__ */ jsxRuntime.jsxs(
11728
11728
  Select,
11729
11729
  {
@@ -11755,7 +11755,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11755
11755
  ]
11756
11756
  }
11757
11757
  ),
11758
- /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6" }),
11758
+ /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6 bg-gray-300 dark:bg-zinc-600" }),
11759
11759
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
11760
11760
  /* @__PURE__ */ jsxRuntime.jsx(
11761
11761
  ToolbarButton,
@@ -11798,7 +11798,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11798
11798
  }
11799
11799
  )
11800
11800
  ] }),
11801
- /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6" }),
11801
+ /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6 bg-gray-300 dark:bg-zinc-600" }),
11802
11802
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
11803
11803
  /* @__PURE__ */ jsxRuntime.jsx(
11804
11804
  ToolbarButton,
@@ -11841,7 +11841,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11841
11841
  }
11842
11842
  )
11843
11843
  ] }),
11844
- /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6" }),
11844
+ /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6 bg-gray-300 dark:bg-zinc-600" }),
11845
11845
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
11846
11846
  /* @__PURE__ */ jsxRuntime.jsx(
11847
11847
  ToolbarButton,
@@ -11862,7 +11862,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11862
11862
  }
11863
11863
  )
11864
11864
  ] }),
11865
- /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6" }),
11865
+ /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6 bg-gray-300 dark:bg-zinc-600" }),
11866
11866
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
11867
11867
  /* @__PURE__ */ jsxRuntime.jsx(
11868
11868
  ToolbarButton,
@@ -11883,7 +11883,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11883
11883
  }
11884
11884
  )
11885
11885
  ] }),
11886
- /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6" }),
11886
+ /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6 bg-gray-300 dark:bg-zinc-600" }),
11887
11887
  /* @__PURE__ */ jsxRuntime.jsxs(Popover, { children: [
11888
11888
  /* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
11889
11889
  Button,
@@ -11898,7 +11898,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11898
11898
  ) }),
11899
11899
  /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: "w-auto p-0", children: /* @__PURE__ */ jsxRuntime.jsx(ColorPicker2, { onColorSelect: setTextColor }) })
11900
11900
  ] }),
11901
- /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6" }),
11901
+ /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6 bg-gray-300 dark:bg-zinc-600" }),
11902
11902
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
11903
11903
  /* @__PURE__ */ jsxRuntime.jsx(
11904
11904
  ToolbarButton,
@@ -11921,7 +11921,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11921
11921
  ] })
11922
11922
  ] }),
11923
11923
  showPreview && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
11924
- !isPreview && /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6" }),
11924
+ !isPreview && /* @__PURE__ */ jsxRuntime.jsx(Separator3, { orientation: "vertical", className: "h-6 bg-gray-300 dark:bg-zinc-600" }),
11925
11925
  /* @__PURE__ */ jsxRuntime.jsx(
11926
11926
  ToolbarButton,
11927
11927
  {
@@ -11948,7 +11948,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11948
11948
  {
11949
11949
  ref,
11950
11950
  className: cn(
11951
- "border rounded-lg overflow-hidden focus-within:ring-2 focus-within:ring-ring",
11951
+ "border border-gray-200 dark:border-zinc-700 rounded-lg overflow-hidden focus-within:ring-2 focus-within:ring-ring focus-within:border-transparent",
11952
11952
  disabled && "opacity-50 cursor-not-allowed",
11953
11953
  className
11954
11954
  ),
@@ -11961,7 +11961,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11961
11961
  {
11962
11962
  initial: { opacity: 0 },
11963
11963
  animate: { opacity: 1 },
11964
- className: "p-4",
11964
+ className: "bg-slate-50 dark:bg-zinc-900/95",
11965
11965
  style: { minHeight, maxHeight, overflow: "auto" },
11966
11966
  children: /* @__PURE__ */ jsxRuntime.jsx(
11967
11967
  "textarea",
@@ -11969,7 +11969,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
11969
11969
  ref: sourceRef,
11970
11970
  value: sourceContent,
11971
11971
  onChange: (e) => setSourceContent(e.target.value),
11972
- className: "w-full h-full bg-muted rounded-lg p-4 font-mono text-sm resize-none focus:outline-none focus:ring-2 focus:ring-ring",
11972
+ className: "w-full h-full bg-transparent p-4 font-mono text-sm text-gray-900 dark:text-gray-100 resize-none focus:outline-none",
11973
11973
  style: { minHeight: minHeight - 32 },
11974
11974
  disabled,
11975
11975
  placeholder: "HTML source code..."
@@ -11984,6 +11984,8 @@ var SimpleEditor = t__namespace.default.forwardRef(
11984
11984
  suppressContentEditableWarning: true,
11985
11985
  className: cn(
11986
11986
  "p-4 outline-none prose prose-sm dark:prose-invert max-w-none overflow-y-auto",
11987
+ "bg-slate-50 dark:bg-zinc-900/95",
11988
+ "text-gray-900 dark:text-gray-100",
11987
11989
  "focus:ring-0",
11988
11990
  "[&_h1]:text-3xl [&_h1]:font-bold [&_h1]:mb-4",
11989
11991
  "[&_h2]:text-2xl [&_h2]:font-bold [&_h2]:mb-3",
@@ -12014,7 +12016,7 @@ var SimpleEditor = t__namespace.default.forwardRef(
12014
12016
  }
12015
12017
  )
12016
12018
  ] }),
12017
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 py-2 border-t bg-muted/50 text-xs text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(CharacterCount, { content }) })
12019
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 py-2 border-t bg-gray-50/50 dark:bg-zinc-800/50 backdrop-blur-sm text-xs text-gray-600 dark:text-gray-400", children: /* @__PURE__ */ jsxRuntime.jsx(CharacterCount, { content }) })
12018
12020
  ]
12019
12021
  }
12020
12022
  );