@abduljebar/text-editor 1.0.2 → 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.
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../styles/statusbar.css';
2
3
  interface StatusBarProps {
3
4
  wordCount: number;
4
5
  characterCount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../src/components/StatusBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,cAAc;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAsB9C,CAAC"}
1
+ {"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../src/components/StatusBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,yBAAyB,CAAC;AAEjC,UAAU,cAAc;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuB9C,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { TextEditorProps } from '../types/editor';
3
+ import '../styles/texteditor.css';
3
4
  export declare const TextEditor: React.FC<TextEditorProps>;
4
5
  //# sourceMappingURL=TextEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextEditor.d.ts","sourceRoot":"","sources":["../../src/components/TextEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGvD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6FhD,CAAC"}
1
+ {"version":3,"file":"TextEditor.d.ts","sourceRoot":"","sources":["../../src/components/TextEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,0BAA0B,CAAC;AAElC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6FhD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../styles/toolbar.css';
2
3
  interface ToolbarProps {
3
4
  onCommand: (command: string, value?: string) => void;
4
5
  onSave: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../src/components/Toolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAoBnD,UAAU,YAAY;IACpB,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAoH1C,CAAC"}
1
+ {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../src/components/Toolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAmBnD,OAAO,uBAAuB,CAAC;AAE/B,UAAU,YAAY;IACpB,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAmH1C,CAAC"}
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ .toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:12px;background-color:#f9fafb;border-bottom:1px solid #e5e7eb}.toolbar-section{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.toolbar-separator{width:1px;height:24px;background-color:#d1d5db;margin:0 8px;display:inline-block}.toolbar-button{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:6px;border:1px solid #d1d5db;color:#374151;background-color:#fff;cursor:pointer;transition:all .2s ease}.toolbar-button:hover{background-color:#f3f4f6}.toolbar-button:active{background-color:#e5e7eb}.toolbar-button.active{background-color:#dbeafe;color:#2563eb;border-color:#93c5fd}.action-buttons{display:flex;align-items:center;gap:8px;margin-top:8px}@media (min-width: 640px){.action-buttons{margin-top:0}}.action-button{display:flex;align-items:center;gap:4px;padding:8px 12px;font-size:14px;font-weight:500;border-radius:6px;color:#fff;cursor:pointer;transition:background-color .2s ease;border:none}.save-button{background-color:#2563eb}.save-button:hover{background-color:#1d4ed8}.save-button:disabled{background-color:#93c5fd;cursor:not-allowed}.export-button{background-color:#059669}.export-button:hover{background-color:#047857}.clear-button{background-color:#dc2626}.clear-button:hover{background-color:#b91c1c}.status-bar{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background-color:#f9fafb;border-top:1px solid #e5e7eb;font-size:14px;color:#4b5563}.status-bar-content{display:flex;align-items:center;gap:24px}.status-item{display:flex;align-items:center}.status-value{color:#1f2937;font-weight:600}.status-unsaved{color:#ea580c;font-weight:600}.status-saved{color:#059669;font-weight:600}.text-editor{width:100%;max-width:72rem;margin:0 auto;background-color:#fff;border-radius:.75rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;overflow:hidden}.editor-header{padding:24px;border-bottom:1px solid #e5e7eb;background-color:#f9fafb}.title-input{width:100%;background-color:transparent;font-size:1.5rem;font-weight:700;color:#1f2937;outline:none;border:none;padding:0}.title-input::placeholder{color:#9ca3af}.validation-message{color:#dc2626;font-size:.875rem;margin-top:8px;animation:fadeIn .3s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.editor-content{min-height:500px;padding:32px;border:none;outline:none;resize:none;color:#374151;line-height:1.625;max-width:none}.editor-content:focus{outline:none}.editor-content h1{font-size:2rem;font-weight:700;margin:1rem 0;color:#111827}.editor-content h2{font-size:1.5rem;font-weight:700;margin:.875rem 0;color:#111827}.editor-content p{margin:.75rem 0}.editor-content ul,.editor-content ol{margin:.75rem 0;padding-left:1.5rem}.editor-content ul{list-style-type:disc}.editor-content ol{list-style-type:decimal}.editor-content a{color:#2563eb;text-decoration:underline}.editor-content a:hover{color:#1d4ed8}