@editora/themes 1.0.1 → 1.0.3

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
@@ -26,7 +35,9 @@ The themes package provides a comprehensive styling system using CSS variables,
26
35
  ### Basic Usage
27
36
 
28
37
  ```tsx
29
- import '@editora/themes/styles';
38
+ import "@editora/themes/theme.css";
39
+ OR
40
+ import "@editora/themes/themes/default.css";
30
41
  import { EditoraEditor } from '@editora/react';
31
42
 
32
43
  function App() {
@@ -37,7 +48,9 @@ function App() {
37
48
  ### With Theme Toggle
38
49
 
39
50
  ```tsx
40
- import '@editora/themes/styles';
51
+ import "@editora/themes/theme.css";
52
+ OR
53
+ import "@editora/themes/themes/default.css";
41
54
  import { EditoraEditor } from '@editora/react';
42
55
  import { useState } from 'react';
43
56
 
@@ -59,7 +72,9 @@ function App() {
59
72
  ### Auto Theme Detection
60
73
 
61
74
  ```tsx
62
- import '@editora/themes/styles';
75
+ import "@editora/themes/theme.css";
76
+ OR
77
+ import "@editora/themes/themes/default.css";
63
78
  import { EditoraEditor } from '@editora/react';
64
79
 
65
80
  function App() {
@@ -210,7 +225,9 @@ All theme colors and sizes use CSS variables for easy customization.
210
225
 
211
226
  ```css
212
227
  /* custom-theme.css */
213
- @import '@editora/themes/styles';
228
+ import "@editora/themes/theme.css";
229
+ OR
230
+ import "@editora/themes/themes/default.css";
214
231
 
215
232
  :root {
216
233
  /* Brand colors */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editora/themes",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
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",
@@ -32,7 +32,9 @@
32
32
  "import": "./dist/index.esm.js",
33
33
  "require": "./dist/index.cjs.js"
34
34
  },
35
- "./styles": "./src/index.css"
35
+ "./theme.css": "./src/index.css",
36
+ "./themes/*": "./src/themes/*.css",
37
+ "./themes/default.css": "./src/themes/default.css"
36
38
  },
37
39
  "files": [
38
40
  "dist",
@@ -55,4 +57,4 @@
55
57
  "access": "public"
56
58
  },
57
59
  "gitHead": "694494db58b809f0dcf24501696284faa1ab68a5"
58
- }
60
+ }
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
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Ajay Kumar
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.