@editora/themes 1.0.1 → 1.0.2

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/README.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @editora/themes
2
2
 
3
+ <div align="center">
4
+ <img src="../../images/editora_logo_blocks.svg" alt="Editora Logo" width="200" height="auto">
5
+ </div>
6
+
7
+ <div align="center">
8
+ <img src="../../images/theme-comparison.png" alt="Editora Themes - Light vs Dark Theme Comparison" width="800" style="border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);">
9
+ <p><em>Themes and styling system with built-in light/dark mode support</em></p>
10
+ </div>
11
+
3
12
  Themes and styling system for Editora Rich Text Editor with built-in light/dark mode support and customizable design tokens.
4
13
 
5
14
  ## 📦 Installation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editora/themes",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Themes and styling system for Editora Rich Text Editor with light/dark mode support",
5
5
  "author": "Ajay Kumar <ajaykr089@gmail.com>",
6
6
  "license": "MIT",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "694494db58b809f0dcf24501696284faa1ab68a5"
57
+ "gitHead": "b4a92679b7a31308632c48abd5e536476d58b0c7"
58
58
  }
package/src/index.css CHANGED
@@ -1,3 +1,6 @@
1
+ /* Import default theme styles including dialog overlays */
2
+ @import './themes/default.css';
3
+
1
4
  /* Toolbar group button and group items for native plugin grouping (e.g., font size) */
2
5
  .editora-toolbar-group-button {
3
6
  display: flex;
@@ -146,27 +146,25 @@
146
146
  /* Expanded row for hidden items - Slides down inline */
147
147
  .rte-toolbar-expanded-row {
148
148
  display: flex;
149
- gap: 4px;
150
- padding: 8px;
151
- background: #f5f5f5;
152
- border: 1px solid #ddd;
153
- border-top: none;
149
+ transform: scaleY(0);
150
+ transform-origin: top;
154
151
  max-height: 0;
152
+ padding: 0;
155
153
  overflow: hidden;
156
154
  opacity: 0;
157
- visibility: hidden;
158
- transform: scaleY(0);
159
- transform-origin: top;
160
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
161
- flex-wrap: wrap;
162
- align-items: center;
155
+ transition: transform 0.25s ease, opacity 0.2s ease, max-height 0.25s ease;
163
156
  }
164
157
 
165
158
  .rte-toolbar-expanded-row.show {
159
+ transform: scaleY(1);
166
160
  max-height: 200px;
161
+ padding: 8px;
162
+ padding-top:1px;
167
163
  opacity: 1;
168
- visibility: visible;
169
- transform: scaleY(1);
164
+ background: #f5f5f5;
165
+ border: 1px solid #ddd;
166
+ border-top: none;
167
+ gap: 4px;
170
168
  }
171
169
 
172
170
  .rte-content {
@@ -539,3 +537,67 @@
539
537
  text-decoration: line-through;
540
538
  color: #666;
541
539
  }
540
+
541
+ /* Status bar container */
542
+ .editora-statusbar-container {
543
+ display: flex;
544
+ flex-direction: column;
545
+ }
546
+ .rte-editor {
547
+ .editora-statusbar-bottom{
548
+ top: -32px;
549
+ }
550
+ }
551
+ .editora-statusbar-bottom{
552
+ position: relative;
553
+ border-left: 1px solid rgb(221, 221, 221);
554
+ border-right: 1px solid rgb(221, 221, 221);
555
+ }
556
+ /* Status bar */
557
+ .editora-statusbar {
558
+ display: flex;
559
+ align-items: center;
560
+ gap: 12px;
561
+ padding: 6px 12px;
562
+ background: #f5f5f5;
563
+ border-top: 1px solid #ddd;
564
+ font-size: 12px;
565
+ color: #666;
566
+ }
567
+
568
+ .editora-theme-dark .editora-statusbar {
569
+ background: #252526;
570
+ border-top-color: #3c3c3c;
571
+ color: #9a9a9a;
572
+ }
573
+
574
+ .editora-statusbar-top {
575
+ border-top: none;
576
+ border-bottom: 1px solid #e0e0e0;
577
+ }
578
+
579
+ .editora-statusbar-left {
580
+ display: flex;
581
+ align-items: center;
582
+ gap: 8px;
583
+ }
584
+
585
+ .editora-statusbar-right {
586
+ display: flex;
587
+ align-items: center;
588
+ gap: 8px;
589
+ margin-left: auto;
590
+ }
591
+
592
+ .editora-statusbar-item {
593
+ white-space: nowrap;
594
+ padding: 2px 4px;
595
+ }
596
+
597
+ .editora-statusbar-separator {
598
+ color: #ddd;
599
+ }
600
+
601
+ .editora-theme-dark .editora-statusbar-separator {
602
+ color: #3c3c3c;
603
+ }