@siladev/qalam 0.1.5 → 0.1.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/editor/components/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;CACnE;AAED,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,YAAY,2CAmP7D"}
1
+ {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/editor/components/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;CACnE;AAED,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,YAAY,2CA8P7D"}
@@ -1,4 +1,4 @@
1
- import { Q as o, a as Q } from "../QalamEditor-BV95C4EV.js";
1
+ import { Q as o, a as Q } from "../QalamEditor-xxv4o_l4.js";
2
2
  export {
3
3
  o as QalamEditor,
4
4
  Q as QuranRef
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { validateAST as e } from "./schema/index.js";
2
- import { Q as s, a as t } from "./QalamEditor-BV95C4EV.js";
2
+ import { Q as s, a as t } from "./QalamEditor-xxv4o_l4.js";
3
3
  import { Q as f } from "./QalamRenderer-DrrLH1Fg.js";
4
4
  import { resolveAST as d } from "./resolver/index.js";
5
5
  import { g as Q, a as p, b as u, i as S, l as g, r as i } from "./lookup-CFbcujyG.js";
package/dist/styles.css CHANGED
@@ -114,13 +114,38 @@ ol[data-list-type="abjad"] {
114
114
  text-align: right;
115
115
  }
116
116
 
117
+ .qalam-editor__content ul {
118
+ list-style-type: disc !important;
119
+ padding-inline-start: 1.5em !important;
120
+ margin: 8px 0 !important;
121
+ }
122
+
123
+ .qalam-editor__content ol {
124
+ list-style-type: decimal !important;
125
+ padding-inline-start: 1.5em !important;
126
+ margin: 8px 0 !important;
127
+ }
128
+
129
+ .qalam-editor__content li {
130
+ display: list-item !important;
131
+ }
132
+
133
+ .qalam-editor__content li p {
134
+ margin: 0 !important;
135
+ }
136
+
117
137
  .qalam-editor__content ul ul,
118
138
  .qalam-editor__content ol ul {
119
- list-style-type: "- ";
139
+ list-style-type: "- " !important;
120
140
  }
121
141
 
122
142
  .qalam-editor__content p {
123
- margin: 0 0 8px;
143
+ margin: 0 0 8px !important;
144
+ }
145
+
146
+ .qalam-editor__content a {
147
+ color: var(--qalam-accent) !important;
148
+ text-decoration: underline !important;
124
149
  }
125
150
 
126
151
  .qalam-editor__content p[data-repeat],
@@ -159,17 +184,29 @@ ol[data-list-type="abjad"] {
159
184
  pointer-events: none;
160
185
  }
161
186
 
162
- .qalam-editor__content h1,
163
- .qalam-editor__content h2,
187
+ .qalam-editor__content h1 {
188
+ font-size: 2em !important;
189
+ font-weight: 700 !important;
190
+ margin: 16px 0 8px !important;
191
+ }
192
+
193
+ .qalam-editor__content h2 {
194
+ font-size: 1.5em !important;
195
+ font-weight: 700 !important;
196
+ margin: 16px 0 8px !important;
197
+ }
198
+
164
199
  .qalam-editor__content h3 {
165
- margin: 16px 0 8px;
200
+ font-size: 1.25em !important;
201
+ font-weight: 600 !important;
202
+ margin: 16px 0 8px !important;
166
203
  }
167
204
 
168
205
  .qalam-editor__content blockquote {
169
- border-right: 3px solid var(--qalam-blockquote-border);
170
- padding-right: 16px;
171
- margin: 8px 0;
172
- color: var(--qalam-blockquote-text);
206
+ border-right: 3px solid var(--qalam-blockquote-border) !important;
207
+ padding-right: 16px !important;
208
+ margin: 8px 0 !important;
209
+ color: var(--qalam-blockquote-text) !important;
173
210
  }
174
211
 
175
212
  /* Toolbar */
@@ -454,6 +491,40 @@ ol[data-list-type="abjad"] {
454
491
  line-height: 2;
455
492
  }
456
493
 
494
+ .qalam-renderer p {
495
+ margin: 0 0 8px !important;
496
+ }
497
+
498
+ .qalam-renderer h1 {
499
+ font-size: 2em !important;
500
+ font-weight: 700 !important;
501
+ margin: 16px 0 8px !important;
502
+ }
503
+
504
+ .qalam-renderer h2 {
505
+ font-size: 1.5em !important;
506
+ font-weight: 700 !important;
507
+ margin: 16px 0 8px !important;
508
+ }
509
+
510
+ .qalam-renderer h3 {
511
+ font-size: 1.25em !important;
512
+ font-weight: 600 !important;
513
+ margin: 16px 0 8px !important;
514
+ }
515
+
516
+ .qalam-renderer blockquote {
517
+ border-right: 3px solid var(--qalam-blockquote-border) !important;
518
+ padding-right: 16px !important;
519
+ margin: 8px 0 !important;
520
+ color: var(--qalam-blockquote-text) !important;
521
+ }
522
+
523
+ .qalam-renderer a {
524
+ color: var(--qalam-accent) !important;
525
+ text-decoration: underline !important;
526
+ }
527
+
457
528
  .qalam-renderer ul {
458
529
  list-style-type: disc !important;
459
530
  padding-right: 24px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siladev/qalam",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Islamic content editor with Quran verse references",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",