@yurikilian/lex4 1.5.1 → 1.5.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/dist/components/BlockTypePicker.d.ts +11 -0
- package/dist/components/BlockTypePicker.d.ts.map +1 -0
- package/dist/components/Toolbar.d.ts.map +1 -1
- package/dist/lex4-editor.cjs +149 -40
- package/dist/lex4-editor.cjs.map +1 -1
- package/dist/lex4-editor.js +149 -40
- package/dist/lex4-editor.js.map +1 -1
- package/dist/style.css +105 -2
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -206,6 +206,108 @@
|
|
|
206
206
|
gap: 0.25rem;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
.lex4-block-type-picker {
|
|
210
|
+
position: relative;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.lex4-editor button.lex4-block-type-trigger {
|
|
214
|
+
display: inline-flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
gap: 0.375rem;
|
|
217
|
+
height: 32px;
|
|
218
|
+
padding: 0 0.5rem 0 0.625rem;
|
|
219
|
+
border-radius: 999px;
|
|
220
|
+
border: 1px solid var(--color-input);
|
|
221
|
+
background-color: var(--color-background);
|
|
222
|
+
color: var(--color-foreground);
|
|
223
|
+
transition: background-color 150ms, border-color 150ms, box-shadow 150ms;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.lex4-editor button.lex4-block-type-trigger:hover,
|
|
227
|
+
.lex4-editor button.lex4-block-type-trigger.open {
|
|
228
|
+
background-color: var(--color-secondary);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.lex4-editor button.lex4-block-type-trigger:focus-visible {
|
|
232
|
+
outline: none;
|
|
233
|
+
border-color: var(--color-ring);
|
|
234
|
+
box-shadow: 0 0 0 1px var(--color-ring);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.lex4-block-type-trigger-code {
|
|
238
|
+
min-width: 1.75rem;
|
|
239
|
+
font-size: 0.8125rem;
|
|
240
|
+
line-height: 1rem;
|
|
241
|
+
font-weight: 600;
|
|
242
|
+
color: var(--color-foreground);
|
|
243
|
+
text-align: center;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.lex4-block-type-trigger-code.heading {
|
|
247
|
+
color: var(--color-primary);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.lex4-block-type-trigger-chevron {
|
|
251
|
+
color: var(--color-muted-foreground);
|
|
252
|
+
transition: transform 150ms ease;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.lex4-block-type-trigger-chevron.open {
|
|
256
|
+
transform: rotate(180deg);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.lex4-block-type-menu {
|
|
260
|
+
position: absolute;
|
|
261
|
+
top: calc(100% + 0.5rem);
|
|
262
|
+
left: 0;
|
|
263
|
+
min-width: 13rem;
|
|
264
|
+
padding: 0.375rem;
|
|
265
|
+
border: 1px solid var(--color-border);
|
|
266
|
+
border-radius: 1rem;
|
|
267
|
+
background-color: var(--color-surface-elevated);
|
|
268
|
+
box-shadow: var(--shadow-lg);
|
|
269
|
+
z-index: 30;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.lex4-editor button.lex4-block-type-item {
|
|
273
|
+
width: 100%;
|
|
274
|
+
display: flex;
|
|
275
|
+
align-items: center;
|
|
276
|
+
gap: 0.75rem;
|
|
277
|
+
padding: 0.625rem 0.75rem;
|
|
278
|
+
border-radius: 0.75rem;
|
|
279
|
+
color: var(--color-foreground);
|
|
280
|
+
transition: background-color 150ms, color 150ms;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.lex4-editor button.lex4-block-type-item:hover,
|
|
284
|
+
.lex4-editor button.lex4-block-type-item.active {
|
|
285
|
+
background-color: var(--color-secondary);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.lex4-block-type-item-code {
|
|
289
|
+
min-width: 1.75rem;
|
|
290
|
+
font-size: 0.8125rem;
|
|
291
|
+
line-height: 1rem;
|
|
292
|
+
font-weight: 600;
|
|
293
|
+
color: var(--color-muted-foreground);
|
|
294
|
+
text-align: center;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.lex4-block-type-item-code.heading {
|
|
298
|
+
color: color-mix(in srgb, var(--color-primary) 80%, var(--color-foreground));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.lex4-block-type-item-code.active {
|
|
302
|
+
color: var(--color-primary);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.lex4-block-type-item-label {
|
|
306
|
+
font-size: 0.875rem;
|
|
307
|
+
line-height: 1.25rem;
|
|
308
|
+
font-weight: 500;
|
|
309
|
+
}
|
|
310
|
+
|
|
209
311
|
.lex4-editor button.lex4-toolbar-toggle-btn {
|
|
210
312
|
display: inline-flex;
|
|
211
313
|
align-items: center;
|
|
@@ -1104,9 +1206,10 @@
|
|
|
1104
1206
|
|
|
1105
1207
|
.lex4-page-placeholder {
|
|
1106
1208
|
position: absolute;
|
|
1107
|
-
top: 0
|
|
1209
|
+
top: 0;
|
|
1108
1210
|
left: 0;
|
|
1109
|
-
font-size:
|
|
1211
|
+
font-size: inherit;
|
|
1212
|
+
line-height: inherit;
|
|
1110
1213
|
color: color-mix(in srgb, var(--color-muted-foreground) 82%, transparent);
|
|
1111
1214
|
pointer-events: none;
|
|
1112
1215
|
-webkit-user-select: none;
|