@shadow-garden/bapbong-ui 0.1.0 → 0.1.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/index.cjs CHANGED
@@ -194,7 +194,9 @@ function promptDialog(options) {
194
194
  }
195
195
 
196
196
  // packages/ui/src/lib/toolbar.ts
197
- var alignSvg = (spans) => `<svg width="15" height="15" viewBox="0 0 16 16" aria-hidden="true"><g stroke="currentColor" stroke-width="1.6" stroke-linecap="round">` + spans.map(([x1, x2], i) => `<line x1="${x1}" y1="${4 + i * 4}" x2="${x2}" y2="${4 + i * 4}"/>`).join("") + `</g></svg>`;
197
+ var alignSvg = (spans) => `<svg width="15" height="15" viewBox="0 0 16 16" aria-hidden="true"><g stroke="currentColor" stroke-width="1.6" stroke-linecap="round">` + spans.map(
198
+ ([x1, x2], i) => `<line x1="${x1}" y1="${4 + i * 4}" x2="${x2}" y2="${4 + i * 4}"/>`
199
+ ).join("") + `</g></svg>`;
198
200
  var DEFAULT_ITEMS = {
199
201
  undo: {
200
202
  title: "Undo",
@@ -220,10 +222,38 @@ var DEFAULT_ITEMS = {
220
222
  title: "Subscript",
221
223
  svg: '<svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true"><text x="0" y="11.5" font-size="10.5" font-family="serif">x</text><text x="8.5" y="15.5" font-size="7" font-family="serif">2</text></svg>'
222
224
  },
223
- "align-left": { title: "Align left", svg: alignSvg([[2, 14], [2, 9], [2, 12]]) },
224
- "align-center": { title: "Center", svg: alignSvg([[2, 14], [4, 12], [3, 13]]) },
225
- "align-right": { title: "Align right", svg: alignSvg([[2, 14], [7, 14], [4, 14]]) },
226
- "align-justify": { title: "Justify", svg: alignSvg([[2, 14], [2, 14], [2, 14]]) },
225
+ "align-left": {
226
+ title: "Align left",
227
+ svg: alignSvg([
228
+ [2, 14],
229
+ [2, 9],
230
+ [2, 12]
231
+ ])
232
+ },
233
+ "align-center": {
234
+ title: "Center",
235
+ svg: alignSvg([
236
+ [2, 14],
237
+ [4, 12],
238
+ [3, 13]
239
+ ])
240
+ },
241
+ "align-right": {
242
+ title: "Align right",
243
+ svg: alignSvg([
244
+ [2, 14],
245
+ [7, 14],
246
+ [4, 14]
247
+ ])
248
+ },
249
+ "align-justify": {
250
+ title: "Justify",
251
+ svg: alignSvg([
252
+ [2, 14],
253
+ [2, 14],
254
+ [2, 14]
255
+ ])
256
+ },
227
257
  "bullet-list": {
228
258
  title: "Bullet list",
229
259
  svg: '<svg viewBox="0 0 16 16" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><path d="M6 4h8M6 8h8M6 12h8"/><circle cx="3" cy="4" r="1" fill="currentColor" stroke="none"/><circle cx="3" cy="8" r="1" fill="currentColor" stroke="none"/><circle cx="3" cy="12" r="1" fill="currentColor" stroke="none"/></svg>'
@@ -251,7 +281,7 @@ var STYLE2 = `
251
281
  .bb-toolbar-color{position:relative}
252
282
  .bb-toolbar-color .bb-color-glyph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1;font-size:13px}
253
283
  .bb-toolbar-color .bb-color-bar{width:16px;height:3px;border-radius:1px;background:currentColor}
254
- .bb-color-pop{position:absolute;z-index:1200;top:33px;left:0;display:grid;grid-template-columns:repeat(8,16px);gap:4px;padding:8px;background:var(--bb-ui-menu-bg,#fff);-webkit-backdrop-filter:var(--bb-ui-pop-filter,none);backdrop-filter:var(--bb-ui-pop-filter,none);border:1px solid var(--bb-ui-pop-border,var(--bb-ui-border,#e3e3e0));border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.16)}
284
+ .bb-color-pop{position:absolute;z-index:1200;display:grid;grid-template-columns:repeat(8,16px);gap:4px;padding:8px;background:var(--bb-ui-menu-bg,#fff);-webkit-backdrop-filter:var(--bb-ui-pop-filter,none);backdrop-filter:var(--bb-ui-pop-filter,none);border:1px solid var(--bb-ui-pop-border,var(--bb-ui-border,#e3e3e0));border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.16)}
255
285
  .bb-color-pop[hidden]{display:none}
256
286
  .bb-color-swatch{width:16px;height:16px;padding:0;border:1px solid rgba(0,0,0,.18);border-radius:3px;cursor:pointer}
257
287
  .bb-color-none{grid-column:1/-1;font:inherit;font-size:12px;padding:3px 0;border:1px solid var(--bb-ui-border,#e3e3e0);border-radius:5px;background:var(--bb-ui-bg,#fff);cursor:pointer}
@@ -278,7 +308,9 @@ function mountToolbar(host, editor, options = {}) {
278
308
  const colors = [];
279
309
  let latest = null;
280
310
  for (const group of groups) {
281
- const entries = group.filter((e) => typeof e !== "string" || editor.commands.has(e));
311
+ const entries = group.filter(
312
+ (e) => typeof e !== "string" || editor.commands.has(e)
313
+ );
282
314
  if (entries.length === 0) continue;
283
315
  const groupEl = document.createElement("div");
284
316
  groupEl.className = "bb-toolbar-group";
@@ -305,8 +337,8 @@ function mountToolbar(host, editor, options = {}) {
305
337
  continue;
306
338
  }
307
339
  if (typeof entry !== "string" && entry.kind === "color") {
308
- const wrap2 = document.createElement("div");
309
- wrap2.className = "bb-toolbar-color";
340
+ const colorWrap = document.createElement("div");
341
+ colorWrap.className = "bb-toolbar-color";
310
342
  const btn2 = document.createElement("button");
311
343
  btn2.type = "button";
312
344
  btn2.className = "bb-toolbar-btn";
@@ -349,11 +381,22 @@ function mountToolbar(host, editor, options = {}) {
349
381
  btn2.addEventListener("mousedown", (e) => e.preventDefault());
350
382
  btn2.addEventListener("click", () => {
351
383
  const open = pop2.hidden;
352
- root.querySelectorAll(".bb-color-pop").forEach((p) => p.hidden = true);
384
+ wrap.querySelectorAll(".bb-color-pop").forEach((p) => p.hidden = true);
353
385
  pop2.hidden = !open;
354
386
  if (!pop2.hidden) {
387
+ const wrapRect = wrap.getBoundingClientRect();
388
+ const btnRect = btn2.getBoundingClientRect();
389
+ pop2.style.top = `${btnRect.bottom - wrapRect.top + 4}px`;
390
+ const left = Math.max(
391
+ 0,
392
+ Math.min(
393
+ btnRect.left - wrapRect.left,
394
+ wrap.clientWidth - pop2.offsetWidth - 4
395
+ )
396
+ );
397
+ pop2.style.left = `${left}px`;
355
398
  const onDoc = (ev) => {
356
- if (!wrap2.contains(ev.target)) {
399
+ if (!colorWrap.contains(ev.target) && !pop2.contains(ev.target)) {
357
400
  pop2.hidden = true;
358
401
  document.removeEventListener("pointerdown", onDoc, true);
359
402
  }
@@ -361,8 +404,9 @@ function mountToolbar(host, editor, options = {}) {
361
404
  document.addEventListener("pointerdown", onDoc, true);
362
405
  }
363
406
  });
364
- wrap2.append(btn2, pop2);
365
- groupEl.appendChild(wrap2);
407
+ colorWrap.appendChild(btn2);
408
+ wrap.appendChild(pop2);
409
+ groupEl.appendChild(colorWrap);
366
410
  colors.push({ spec: entry, bar });
367
411
  continue;
368
412
  }
@@ -417,9 +461,12 @@ function mountToolbar(host, editor, options = {}) {
417
461
  while (pop.firstChild) root.insertBefore(pop.firstChild, moreBtn);
418
462
  moreBtn.style.display = "none";
419
463
  closePop();
464
+ wrap.querySelectorAll(".bb-color-pop").forEach((p) => p.hidden = true);
420
465
  if (fits()) return;
421
466
  moreBtn.style.display = "";
422
- const groupEls = Array.from(root.children).filter((el) => el.classList.contains("bb-toolbar-group"));
467
+ const groupEls = Array.from(root.children).filter(
468
+ (el) => el.classList.contains("bb-toolbar-group")
469
+ );
423
470
  for (let i = groupEls.length - 1; i >= 0 && !fits(); i--) {
424
471
  pop.insertBefore(groupEls[i], pop.firstChild);
425
472
  }
@@ -442,7 +489,8 @@ function mountToolbar(host, editor, options = {}) {
442
489
  el.disabled = cmd.isEnabled ? !cmd.isEnabled(state) : false;
443
490
  }
444
491
  for (const { spec, el } of selects) el.value = spec.value(state);
445
- for (const { spec, bar } of colors) bar.style.background = spec.value(state) ?? "";
492
+ for (const { spec, bar } of colors)
493
+ bar.style.background = spec.value(state) ?? "";
446
494
  };
447
495
  const off = editor.onChange((c) => refresh(c.state));
448
496
  try {
package/dist/index.js CHANGED
@@ -159,7 +159,9 @@ function promptDialog(options) {
159
159
  }
160
160
 
161
161
  // packages/ui/src/lib/toolbar.ts
162
- var alignSvg = (spans) => `<svg width="15" height="15" viewBox="0 0 16 16" aria-hidden="true"><g stroke="currentColor" stroke-width="1.6" stroke-linecap="round">` + spans.map(([x1, x2], i) => `<line x1="${x1}" y1="${4 + i * 4}" x2="${x2}" y2="${4 + i * 4}"/>`).join("") + `</g></svg>`;
162
+ var alignSvg = (spans) => `<svg width="15" height="15" viewBox="0 0 16 16" aria-hidden="true"><g stroke="currentColor" stroke-width="1.6" stroke-linecap="round">` + spans.map(
163
+ ([x1, x2], i) => `<line x1="${x1}" y1="${4 + i * 4}" x2="${x2}" y2="${4 + i * 4}"/>`
164
+ ).join("") + `</g></svg>`;
163
165
  var DEFAULT_ITEMS = {
164
166
  undo: {
165
167
  title: "Undo",
@@ -185,10 +187,38 @@ var DEFAULT_ITEMS = {
185
187
  title: "Subscript",
186
188
  svg: '<svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true"><text x="0" y="11.5" font-size="10.5" font-family="serif">x</text><text x="8.5" y="15.5" font-size="7" font-family="serif">2</text></svg>'
187
189
  },
188
- "align-left": { title: "Align left", svg: alignSvg([[2, 14], [2, 9], [2, 12]]) },
189
- "align-center": { title: "Center", svg: alignSvg([[2, 14], [4, 12], [3, 13]]) },
190
- "align-right": { title: "Align right", svg: alignSvg([[2, 14], [7, 14], [4, 14]]) },
191
- "align-justify": { title: "Justify", svg: alignSvg([[2, 14], [2, 14], [2, 14]]) },
190
+ "align-left": {
191
+ title: "Align left",
192
+ svg: alignSvg([
193
+ [2, 14],
194
+ [2, 9],
195
+ [2, 12]
196
+ ])
197
+ },
198
+ "align-center": {
199
+ title: "Center",
200
+ svg: alignSvg([
201
+ [2, 14],
202
+ [4, 12],
203
+ [3, 13]
204
+ ])
205
+ },
206
+ "align-right": {
207
+ title: "Align right",
208
+ svg: alignSvg([
209
+ [2, 14],
210
+ [7, 14],
211
+ [4, 14]
212
+ ])
213
+ },
214
+ "align-justify": {
215
+ title: "Justify",
216
+ svg: alignSvg([
217
+ [2, 14],
218
+ [2, 14],
219
+ [2, 14]
220
+ ])
221
+ },
192
222
  "bullet-list": {
193
223
  title: "Bullet list",
194
224
  svg: '<svg viewBox="0 0 16 16" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><path d="M6 4h8M6 8h8M6 12h8"/><circle cx="3" cy="4" r="1" fill="currentColor" stroke="none"/><circle cx="3" cy="8" r="1" fill="currentColor" stroke="none"/><circle cx="3" cy="12" r="1" fill="currentColor" stroke="none"/></svg>'
@@ -216,7 +246,7 @@ var STYLE2 = `
216
246
  .bb-toolbar-color{position:relative}
217
247
  .bb-toolbar-color .bb-color-glyph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1;font-size:13px}
218
248
  .bb-toolbar-color .bb-color-bar{width:16px;height:3px;border-radius:1px;background:currentColor}
219
- .bb-color-pop{position:absolute;z-index:1200;top:33px;left:0;display:grid;grid-template-columns:repeat(8,16px);gap:4px;padding:8px;background:var(--bb-ui-menu-bg,#fff);-webkit-backdrop-filter:var(--bb-ui-pop-filter,none);backdrop-filter:var(--bb-ui-pop-filter,none);border:1px solid var(--bb-ui-pop-border,var(--bb-ui-border,#e3e3e0));border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.16)}
249
+ .bb-color-pop{position:absolute;z-index:1200;display:grid;grid-template-columns:repeat(8,16px);gap:4px;padding:8px;background:var(--bb-ui-menu-bg,#fff);-webkit-backdrop-filter:var(--bb-ui-pop-filter,none);backdrop-filter:var(--bb-ui-pop-filter,none);border:1px solid var(--bb-ui-pop-border,var(--bb-ui-border,#e3e3e0));border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.16)}
220
250
  .bb-color-pop[hidden]{display:none}
221
251
  .bb-color-swatch{width:16px;height:16px;padding:0;border:1px solid rgba(0,0,0,.18);border-radius:3px;cursor:pointer}
222
252
  .bb-color-none{grid-column:1/-1;font:inherit;font-size:12px;padding:3px 0;border:1px solid var(--bb-ui-border,#e3e3e0);border-radius:5px;background:var(--bb-ui-bg,#fff);cursor:pointer}
@@ -243,7 +273,9 @@ function mountToolbar(host, editor, options = {}) {
243
273
  const colors = [];
244
274
  let latest = null;
245
275
  for (const group of groups) {
246
- const entries = group.filter((e) => typeof e !== "string" || editor.commands.has(e));
276
+ const entries = group.filter(
277
+ (e) => typeof e !== "string" || editor.commands.has(e)
278
+ );
247
279
  if (entries.length === 0) continue;
248
280
  const groupEl = document.createElement("div");
249
281
  groupEl.className = "bb-toolbar-group";
@@ -270,8 +302,8 @@ function mountToolbar(host, editor, options = {}) {
270
302
  continue;
271
303
  }
272
304
  if (typeof entry !== "string" && entry.kind === "color") {
273
- const wrap2 = document.createElement("div");
274
- wrap2.className = "bb-toolbar-color";
305
+ const colorWrap = document.createElement("div");
306
+ colorWrap.className = "bb-toolbar-color";
275
307
  const btn2 = document.createElement("button");
276
308
  btn2.type = "button";
277
309
  btn2.className = "bb-toolbar-btn";
@@ -314,11 +346,22 @@ function mountToolbar(host, editor, options = {}) {
314
346
  btn2.addEventListener("mousedown", (e) => e.preventDefault());
315
347
  btn2.addEventListener("click", () => {
316
348
  const open = pop2.hidden;
317
- root.querySelectorAll(".bb-color-pop").forEach((p) => p.hidden = true);
349
+ wrap.querySelectorAll(".bb-color-pop").forEach((p) => p.hidden = true);
318
350
  pop2.hidden = !open;
319
351
  if (!pop2.hidden) {
352
+ const wrapRect = wrap.getBoundingClientRect();
353
+ const btnRect = btn2.getBoundingClientRect();
354
+ pop2.style.top = `${btnRect.bottom - wrapRect.top + 4}px`;
355
+ const left = Math.max(
356
+ 0,
357
+ Math.min(
358
+ btnRect.left - wrapRect.left,
359
+ wrap.clientWidth - pop2.offsetWidth - 4
360
+ )
361
+ );
362
+ pop2.style.left = `${left}px`;
320
363
  const onDoc = (ev) => {
321
- if (!wrap2.contains(ev.target)) {
364
+ if (!colorWrap.contains(ev.target) && !pop2.contains(ev.target)) {
322
365
  pop2.hidden = true;
323
366
  document.removeEventListener("pointerdown", onDoc, true);
324
367
  }
@@ -326,8 +369,9 @@ function mountToolbar(host, editor, options = {}) {
326
369
  document.addEventListener("pointerdown", onDoc, true);
327
370
  }
328
371
  });
329
- wrap2.append(btn2, pop2);
330
- groupEl.appendChild(wrap2);
372
+ colorWrap.appendChild(btn2);
373
+ wrap.appendChild(pop2);
374
+ groupEl.appendChild(colorWrap);
331
375
  colors.push({ spec: entry, bar });
332
376
  continue;
333
377
  }
@@ -382,9 +426,12 @@ function mountToolbar(host, editor, options = {}) {
382
426
  while (pop.firstChild) root.insertBefore(pop.firstChild, moreBtn);
383
427
  moreBtn.style.display = "none";
384
428
  closePop();
429
+ wrap.querySelectorAll(".bb-color-pop").forEach((p) => p.hidden = true);
385
430
  if (fits()) return;
386
431
  moreBtn.style.display = "";
387
- const groupEls = Array.from(root.children).filter((el) => el.classList.contains("bb-toolbar-group"));
432
+ const groupEls = Array.from(root.children).filter(
433
+ (el) => el.classList.contains("bb-toolbar-group")
434
+ );
388
435
  for (let i = groupEls.length - 1; i >= 0 && !fits(); i--) {
389
436
  pop.insertBefore(groupEls[i], pop.firstChild);
390
437
  }
@@ -407,7 +454,8 @@ function mountToolbar(host, editor, options = {}) {
407
454
  el.disabled = cmd.isEnabled ? !cmd.isEnabled(state) : false;
408
455
  }
409
456
  for (const { spec, el } of selects) el.value = spec.value(state);
410
- for (const { spec, bar } of colors) bar.style.background = spec.value(state) ?? "";
457
+ for (const { spec, bar } of colors)
458
+ bar.style.background = spec.value(state) ?? "";
411
459
  };
412
460
  const off = editor.onChange((c) => refresh(c.state));
413
461
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../src/lib/toolbar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAe,MAAM,eA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,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;8EAC8E;AAC9E,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,KAAK,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,MAAM,GAAG,IAAI,CAAC;IAC/C,sDAAsD;IACtD,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC1C;AAED,mFAAmF;AACnF,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,aAAa,GAAG,YAAY,CAAC;AAEjE,MAAM,WAAW,cAAc;IAC7B;oFACgF;IAChF,MAAM,CAAC,EAAE,YAAY,EAAE,EAAE,CAAC;IAC1B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACrC;AAED,+CAA+C;AAC/C,MAAM,WAAW,aAAa;IAC5B,OAAO,IAAI,IAAI,CAAC;CACjB;AA2GD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,GAC5B,MAAM,EAAE,EAAE,CAKZ;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,YAAY,EACpB,OAAO,GAAE,cAAmB,GAC3B,aAAa,CA4Pf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shadow-garden/bapbong-ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "bapbong — framework-agnostic editor UI (toolbar/menubar) that mounts into a host element and binds to editor.commands",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -56,6 +56,6 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@shadow-garden/bapbong-contracts": "^0.1.0"
59
+ "@shadow-garden/bapbong-contracts": "^0.1.1"
60
60
  }
61
61
  }