@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Premium React component library with modern design and customization",
5
5
  "author": "MoonUI",
6
6
  "license": "MIT",
@@ -255,7 +255,7 @@ export function DatePicker({
255
255
  </Button>
256
256
  </PopoverTrigger>
257
257
  <PopoverContent
258
- 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]"
258
+ 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]"
259
259
  align="start"
260
260
  sideOffset={12}
261
261
  >
@@ -370,7 +370,7 @@ export function DateRangePicker({
370
370
  </span>
371
371
  </Button>
372
372
  </PopoverTrigger>
373
- <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}>
373
+ <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}>
374
374
  <Calendar
375
375
  mode="range"
376
376
  defaultMonth={internalRange?.from}
@@ -566,7 +566,7 @@ export function MonthPicker({
566
566
  {displayValue || placeholder}
567
567
  </Button>
568
568
  </PopoverTrigger>
569
- <PopoverContent className="w-64 p-0 shadow-2xl border border-gray-200 dark:border-gray-700 bg-background z-[1000]" align="start">
569
+ <PopoverContent className="w-64 p-0 shadow-2xl border border-gray-200 dark:border-gray-700 bg-background !z-[9999]" align="start">
570
570
  <div className="p-3">
571
571
  <div className="flex items-center justify-between mb-3">
572
572
  <Button
@@ -296,7 +296,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
296
296
  }
297
297
 
298
298
  React.useEffect(() => {
299
- if (editorRef.current && content !== editorRef.current.innerHTML) {
299
+ if (editorRef.current && content && content !== editorRef.current.innerHTML) {
300
300
  editorRef.current.innerHTML = content
301
301
  }
302
302
  }, [content])
@@ -312,7 +312,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
312
312
  const toolbar = showToolbar && (
313
313
  <TooltipProvider>
314
314
  <motion.div
315
- className="flex items-center gap-1 p-2 border-b bg-muted/50"
315
+ className="flex items-center gap-1 p-2 border-b bg-gray-50/50 dark:bg-zinc-800/50 backdrop-blur-sm"
316
316
  initial={{ opacity: 0, y: -10 }}
317
317
  animate={{ opacity: 1, y: 0 }}
318
318
  >
@@ -350,7 +350,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
350
350
  />
351
351
  </div>
352
352
 
353
- <Separator orientation="vertical" className="h-6" />
353
+ <Separator orientation="vertical" className="h-6 bg-gray-300 dark:bg-zinc-600" />
354
354
 
355
355
  {/* Font Size / Heading */}
356
356
  <Select
@@ -383,7 +383,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
383
383
  </SelectContent>
384
384
  </Select>
385
385
 
386
- <Separator orientation="vertical" className="h-6" />
386
+ <Separator orientation="vertical" className="h-6 bg-gray-300 dark:bg-zinc-600" />
387
387
 
388
388
  {/* Alignment */}
389
389
  <div className="flex items-center gap-1">
@@ -417,7 +417,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
417
417
  />
418
418
  </div>
419
419
 
420
- <Separator orientation="vertical" className="h-6" />
420
+ <Separator orientation="vertical" className="h-6 bg-gray-300 dark:bg-zinc-600" />
421
421
 
422
422
  {/* Lists */}
423
423
  <div className="flex items-center gap-1">
@@ -451,7 +451,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
451
451
  />
452
452
  </div>
453
453
 
454
- <Separator orientation="vertical" className="h-6" />
454
+ <Separator orientation="vertical" className="h-6 bg-gray-300 dark:bg-zinc-600" />
455
455
 
456
456
  {/* Indentation */}
457
457
  <div className="flex items-center gap-1">
@@ -469,7 +469,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
469
469
  />
470
470
  </div>
471
471
 
472
- <Separator orientation="vertical" className="h-6" />
472
+ <Separator orientation="vertical" className="h-6 bg-gray-300 dark:bg-zinc-600" />
473
473
 
474
474
  {/* Insert */}
475
475
  <div className="flex items-center gap-1">
@@ -487,7 +487,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
487
487
  />
488
488
  </div>
489
489
 
490
- <Separator orientation="vertical" className="h-6" />
490
+ <Separator orientation="vertical" className="h-6 bg-gray-300 dark:bg-zinc-600" />
491
491
 
492
492
  {/* Color */}
493
493
  <Popover>
@@ -507,7 +507,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
507
507
  </PopoverContent>
508
508
  </Popover>
509
509
 
510
- <Separator orientation="vertical" className="h-6" />
510
+ <Separator orientation="vertical" className="h-6 bg-gray-300 dark:bg-zinc-600" />
511
511
 
512
512
  {/* Undo/Redo */}
513
513
  <div className="flex items-center gap-1">
@@ -531,7 +531,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
531
531
  {/* Preview Toggle */}
532
532
  {showPreview && (
533
533
  <>
534
- {!isPreview && <Separator orientation="vertical" className="h-6" />}
534
+ {!isPreview && <Separator orientation="vertical" className="h-6 bg-gray-300 dark:bg-zinc-600" />}
535
535
  <ToolbarButton
536
536
  icon={isPreview ? <Edit className="h-3 w-3" /> : <Eye className="h-3 w-3" />}
537
537
  tooltip={isPreview ? "Edit Mode" : "View Source Code"}
@@ -558,7 +558,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
558
558
  <div
559
559
  ref={ref}
560
560
  className={cn(
561
- "border rounded-lg overflow-hidden focus-within:ring-2 focus-within:ring-ring",
561
+ "border border-gray-200 dark:border-zinc-700 rounded-lg overflow-hidden focus-within:ring-2 focus-within:ring-ring focus-within:border-transparent",
562
562
  disabled && "opacity-50 cursor-not-allowed",
563
563
  className
564
564
  )}
@@ -571,14 +571,14 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
571
571
  <motion.div
572
572
  initial={{ opacity: 0 }}
573
573
  animate={{ opacity: 1 }}
574
- className="p-4"
574
+ className="bg-slate-50 dark:bg-zinc-900/95"
575
575
  style={{ minHeight, maxHeight, overflow: 'auto' }}
576
576
  >
577
577
  <textarea
578
578
  ref={sourceRef}
579
579
  value={sourceContent}
580
580
  onChange={(e) => setSourceContent(e.target.value)}
581
- 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"
581
+ 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"
582
582
  style={{ minHeight: minHeight - 32 }}
583
583
  disabled={disabled}
584
584
  placeholder="HTML source code..."
@@ -591,6 +591,8 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
591
591
  suppressContentEditableWarning
592
592
  className={cn(
593
593
  "p-4 outline-none prose prose-sm dark:prose-invert max-w-none overflow-y-auto",
594
+ "bg-slate-50 dark:bg-zinc-900/95",
595
+ "text-gray-900 dark:text-gray-100",
594
596
  "focus:ring-0",
595
597
  "[&_h1]:text-3xl [&_h1]:font-bold [&_h1]:mb-4",
596
598
  "[&_h2]:text-2xl [&_h2]:font-bold [&_h2]:mb-3",
@@ -625,7 +627,7 @@ export const SimpleEditor = React.forwardRef<HTMLDivElement, SimpleEditorProps>(
625
627
  </div>
626
628
 
627
629
  {/* Character Count */}
628
- <div className="px-4 py-2 border-t bg-muted/50 text-xs text-muted-foreground">
630
+ <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">
629
631
  <CharacterCount content={content} />
630
632
  </div>
631
633
  </div>