@gemboss/ui 0.71.0 → 0.74.0
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/CHANGELOG.md +398 -2
- package/README.md +185 -2
- package/catalog/editor.html +1 -1
- package/catalog/index.html +50 -50
- package/gemboss-ui.css +4 -4
- package/package.json +17 -1
- package/parts/components.css +3 -3
- package/parts/core.css +1 -1
- package/parts/shell.css +2 -2
- package/src/GemMark.tsx +9 -2
- package/src/app-nav.css +1 -1
- package/src/assistant/chat-cards.tsx +118 -19
- package/src/assistant/chat.tsx +97 -12
- package/src/assistant/figures.tsx +119 -0
- package/src/assistant/gallery.tsx +67 -0
- package/src/assistant/host.tsx +29 -15
- package/src/assistant/ideas.tsx +90 -0
- package/src/assistant/index.ts +8 -1
- package/src/assistant/plus.tsx +61 -0
- package/src/assistant-chat.css +1 -1
- package/src/assistant-figures.css +1 -0
- package/src/assistant-plus.css +1 -0
- package/src/assistant.css +1 -1
- package/src/auth.tsx +7 -3
- package/src/board-move.ts +2 -1
- package/src/brand-gem.tsx +10 -2
- package/src/brand.tsx +6 -3
- package/src/chat-cards-drawn.css +1 -0
- package/src/chat-cards-float.css +1 -0
- package/src/chat-cards.css +1 -1
- package/src/chat-composer-menus.css +1 -1
- package/src/chat-composer.css +1 -1
- package/src/chat-shortcuts.css +1 -0
- package/src/chat-voice.css +1 -1
- package/src/chat.css +1 -1
- package/src/chips-drawn.css +1 -0
- package/src/collections.tsx +4 -2
- package/src/dialog.css +1 -1
- package/src/editor/choice-cards.tsx +8 -5
- package/src/editor/controls.tsx +8 -5
- package/src/editor/field-control.tsx +8 -3
- package/src/editor/field-frame.tsx +5 -3
- package/src/editor/field-spec.ts +12 -3
- package/src/editor/index.ts +2 -0
- package/src/editor/inspector-frame.tsx +3 -2
- package/src/editor/media-words.ts +21 -0
- package/src/editor-empty.css +1 -1
- package/src/editor-inspector-frame.css +1 -1
- package/src/editor-media.css +1 -1
- package/src/editor.css +1 -1
- package/src/email-canvas.css +1 -0
- package/src/email-card.tsx +44 -0
- package/src/email-editor/canvas.tsx +109 -0
- package/src/email-editor/editor.tsx +45 -4
- package/src/email-editor/index.ts +2 -1
- package/src/email-editor/model.ts +9 -1
- package/src/email-parts.css +1 -0
- package/src/email-parts.tsx +81 -0
- package/src/email-thumb.css +1 -0
- package/src/email-thumb.tsx +206 -0
- package/src/flow-strip.css +1 -0
- package/src/flow-strip.tsx +50 -0
- package/src/gemboss-field-drawn.css +1 -0
- package/src/index.ts +15 -2
- package/src/kit-plain.css +1 -1
- package/src/kit-plain.js +1 -1
- package/src/list-page.tsx +6 -3
- package/src/media-card.css +1 -0
- package/src/menu-layer.ts +2 -0
- package/src/menu-select.css +1 -1
- package/src/menu.css +1 -1
- package/src/metrics.css +1 -0
- package/src/metrics.tsx +59 -0
- package/src/picture-actions.css +1 -0
- package/src/picture-actions.tsx +23 -0
- package/src/reader-dialog.css +1 -1
- package/src/segmented.tsx +6 -0
- package/src/services.ts +17 -0
- package/src/settings-dialog.css +1 -1
- package/src/sheet.css +1 -1
- package/src/shell.css +1 -1
- package/src/shell.tsx +9 -2
- package/src/site.tsx +3 -3
- package/src/stat-tile.css +1 -0
- package/src/stat-tile.tsx +39 -0
- package/src/ui.css +1 -1
package/src/chat.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gemboss-ec{--gemboss-ec-inset: 16px}@media (max-width: 640px){.gemboss-ec{--gemboss-ec-inset: 12px}}.gemboss-ec-head{padding:16px var(--gemboss-ec-inset, 16px);border-bottom:1px solid var(--gemboss-divider);display:flex;flex-direction:column;gap:2px}.gemboss-ec-title{font-family:var(--gemboss-serif);font-size:15px;font-weight:600}.gemboss-ec-sub{font-size:12px;color:var(--gemboss-text-muted)}.gemboss-ec-scroll{flex:1;min-height:0;overflow-y:auto;padding:var(--gemboss-ec-inset, 16px);display:flex;flex-direction:column;gap:16px;scrollbar-gutter:stable}.gemboss-ec-scroll{scrollbar-width:thin;scrollbar-color:rgba(31,30,29,.22) transparent}.gemboss-ec-scroll::-webkit-scrollbar{width:9px}.gemboss-ec-scroll::-webkit-scrollbar-track{background:transparent}.gemboss-ec-scroll::-webkit-scrollbar-thumb{background:#1f1e1d33;border-radius:6px;border:2px solid transparent;background-clip:content-box}.gemboss-ec-msg{display:flex;flex-direction:column;gap:8px;max-width:100%}.gemboss-ec-msg.user{align-items:flex-end}.gemboss-ec-msg.assistant{align-items:flex-start}.gemboss-ec-bubble{font-size:var(--gemboss-fs-body);line-height:1.5;padding:12px;border-radius:16px;max-width:min(90%,68ch);white-space:pre-wrap;word-break:break-word}.gemboss-ec-msg.user .gemboss-ec-bubble{background:var(--gemboss-primary);color:var(--gemboss-on-primary, #fff);border-bottom-right-radius:4px}.gemboss-ec-msg.assistant .gemboss-ec-bubble{color:var(--gemboss-text);padding:0;border-radius:0}.gemboss-ec-msg .gemboss-ec-bubble{--gemboss-ec-md-ink: color-mix(in srgb, currentColor 78%, transparent);--gemboss-ec-md-line: color-mix(in srgb, currentColor 32%, transparent);--gemboss-ec-md-fill: color-mix(in srgb, currentColor 14%, transparent)}.gemboss-ec-msg .gemboss-ec-bubble :is(.gemboss-md-h3,.gemboss-md-quote,.gemboss-md-codelang,.gemboss-md-codemore){color:var(--gemboss-ec-md-ink)}.gemboss-ec-msg .gemboss-ec-bubble :is(.gemboss-md-quote,.gemboss-md-rule,.gemboss-md-table th,.gemboss-md-table td,.gemboss-md-codeblock,.gemboss-md-codemore,.gemboss-md-img){border-color:var(--gemboss-ec-md-line)}.gemboss-ec-msg .gemboss-ec-bubble :is(.gemboss-md-code,.gemboss-md-table th,.gemboss-md-codeblock,.gemboss-md-img){background:var(--gemboss-ec-md-fill)}@media (hover: hover){.gemboss-ec-msg .gemboss-ec-bubble .gemboss-md-codemore:hover{background:var(--gemboss-ec-md-fill)}}.gemboss-ec-toolbar>button[type=submit] svg{width:16px;height:16px;fill:currentColor}.gemboss-ec-pending{display:inline-flex;align-items:center;gap:8px;padding:6px 2px;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gemboss-ec-pending-star{color:var(--gemboss-primary);font-size:12px;line-height:1;animation:gemboss-star-pulse 1.1s ease-in-out infinite}.gemboss-ec-pending-verb{color:var(--gemboss-text);animation:gemboss-verb-in .4s ease-out}.gemboss-ec-pending-meta{font-variant-numeric:tabular-nums;opacity:.7;font-size:var(--gemboss-fs-caption)}@keyframes gemboss-star-pulse{0%,to{transform:scale(.85);opacity:.55}50%{transform:scale(1.15);opacity:1}}@keyframes gemboss-verb-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:none}}.gemboss-ec-cursor{display:inline-block;width:2px;height:1.05em;margin-left:2px;vertical-align:-2px;background:var(--gemboss-primary);border-radius:2px;animation:gemboss-cursor-blink 1s steps(1) infinite}@keyframes gemboss-cursor-blink{0%,45%{opacity:1}50%,95%{opacity:.15}to{opacity:1}}@media (prefers-reduced-motion: reduce){.gemboss-ec-pending-star,.gemboss-ec-cursor{animation:none}}.gemboss-ec-md-link{color:var(--gemboss-primary-dark);font-weight:600;text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--gemboss-primary) 35%,transparent);cursor:pointer}@media (hover: hover){.gemboss-ec-md-link:hover{border-bottom-color:var(--gemboss-primary)}}strong>.gemboss-ec-md-link{font-weight:inherit}.gemboss-ec-md-link:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px;border-radius:2px}.gemboss-ec-msg.user .gemboss-ec-md-link{color:inherit;border-bottom-color:color-mix(in srgb,currentColor 55%,transparent)}@media (hover: hover){.gemboss-ec-msg.user .gemboss-ec-md-link:hover{border-bottom-color:currentColor}}.gemboss-ec-starters{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.gemboss-ec-starter{text-align:left;font-size:13px;padding:6px 12px;border-radius:var(--gemboss-radius-full);cursor:pointer;background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);color:var(--gemboss-text);white-space:nowrap;max-width:100%}@media (hover: hover){.gemboss-ec-starter:hover{border-color:var(--gemboss-primary);background:#5661f50f}}.gemboss-ec-input{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:12px;padding:8px;border:1px solid var(--gemboss-divider);border-radius:16px;background:var(--gemboss-surface);transition:border-color var(--gemboss-transition-fast) ease,box-shadow var(--gemboss-transition-fast) ease}.gemboss-ec-input:focus-within{border-color:var(--gemboss-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-focus, #5661f5) 12%,transparent)}.gemboss-ec-input textarea{flex:1 0 100%;min-width:0;width:100%;box-sizing:border-box;resize:none;border-radius:0;background:transparent;border:1px solid transparent;padding:6px 8px;font-size:var(--gemboss-fs-body);font-family:inherit;min-height:0;max-height:84px;line-height:1.5;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(31,30,29,.22) transparent}.gemboss-ec-input textarea::-webkit-scrollbar{width:7px}.gemboss-ec-input textarea::-webkit-scrollbar-track{background:transparent}.gemboss-ec-input textarea::-webkit-scrollbar-thumb{background:#1f1e1d33;border-radius:4px;border:2px solid transparent;background-clip:content-box}.gemboss-ec-input textarea:focus{outline:none}.gemboss-ec-toolbar>button[type=submit]{flex:0 0 auto;width:28px;height:28px;min-width:28px;min-height:28px;border-radius:50%;border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;background:var(--gemboss-primary);color:var(--gemboss-on-primary, #fff);font-size:16px;font-weight:700;transition:background var(--gemboss-transition-fast) ease,filter var(--gemboss-transition-fast) ease}@media (hover: hover){.gemboss-ec-toolbar>button[type=submit]:hover:not(:disabled){background:var(--gemboss-primary-dark)}}.gemboss-ec-toolbar>button[type=submit]:active:not(:disabled){background:var(--gemboss-primary-dark);filter:brightness(.94)}.gemboss-ec-toolbar>button[type=submit]:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-toolbar>button[type=submit]:disabled{background:var(--gemboss-divider);color:var(--gemboss-text-muted);opacity:1;cursor:default}.gemboss-narr{list-style:none;margin:0;padding:8px 0 0;display:flex;flex-direction:column;gap:8px}.gemboss-narr-row{display:flex;align-items:center;gap:8px;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gemboss-narr-dot{width:16px;height:16px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px;flex:0 0 auto}.gemboss-narr-row.ok .gemboss-narr-dot{background:var(--gemboss-active-bg);color:var(--gemboss-active-fg)}.gemboss-narr-row.failed .gemboss-narr-dot{background:#fde8e6;color:var(--gemboss-danger)}.gemboss-narr-row.running .gemboss-narr-dot{background:transparent}.gemboss-narr-dot-engine{background:transparent!important;color:inherit}.gemboss-narr-row.ok .gemboss-narr-dot-engine{color:var(--gemboss-text)}.gemboss-narr-row.failed .gemboss-narr-dot-engine{color:var(--gemboss-danger)}.gemboss-narr-row.ok .gemboss-narr-text,.gemboss-narr-row.failed .gemboss-narr-text{color:var(--gemboss-text)}.gemboss-narr-row.steer .gemboss-narr-dot{background:transparent;color:var(--gemboss-text-muted)}.gemboss-narr-steer{color:var(--gemboss-text);font-weight:500;overflow-wrap:anywhere}.gemboss-narr-spin{width:11px;height:11px;border:2px solid var(--gemboss-divider-soft);border-top-color:var(--gemboss-primary);border-radius:50%;animation:gemboss-spin .7s linear infinite}@keyframes gemboss-spin{to{transform:rotate(360deg)}}.gemboss-narr-row.thinking{align-items:flex-start}.gemboss-narr-row.thinking .gemboss-narr-dot{color:var(--gemboss-text-muted);background:transparent}.gemboss-narr-thinking-live{font-style:italic;color:var(--gemboss-text-muted);white-space:pre-wrap;opacity:.9;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.gemboss-narr-thinking{font-size:var(--gemboss-fs-caption)}.gemboss-narr-thinking>summary{cursor:pointer;color:var(--gemboss-text-muted);list-style:none;user-select:none}.gemboss-narr-thinking>summary::-webkit-details-marker{display:none}.gemboss-narr-thinking>summary:before{content:"\25b8 "}.gemboss-narr-thinking[open]>summary:before{content:"\25be "}.gemboss-narr-thinking-body{margin-top:6px;padding:8px;border-left:2px solid var(--gemboss-divider-soft);color:var(--gemboss-text-muted);font-style:italic;white-space:pre-wrap;line-height:1.5}.gemboss-narr-row.trace code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:var(--gemboss-fs-caption);word-break:break-word}.gemboss-narr-trace-call{color:var(--gemboss-text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.gemboss-narr-trace{font-size:var(--gemboss-fs-caption);min-width:0}.gemboss-narr-trace>summary{cursor:pointer;color:var(--gemboss-text-muted);list-style:none;user-select:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.gemboss-narr-trace[open]>summary{display:block;overflow:visible}.gemboss-narr-trace>summary::-webkit-details-marker{display:none}.gemboss-narr-trace>summary,.gemboss-narr-thinking>summary{min-height:24px;box-sizing:border-box;padding-block:2px}.gemboss-narr-trace>summary:before{content:"\25b8 "}.gemboss-narr-trace[open]>summary:before{content:"\25be "}.gemboss-narr-trace-body{margin-top:6px;padding:8px;border-left:2px solid var(--gemboss-divider-soft);color:var(--gemboss-text-muted);white-space:pre-wrap;line-height:1.5;overflow-x:auto}@media (max-width: 640px){.gemboss-ec-input textarea{min-height:0}.gemboss-ec-scroll{padding:var(--gemboss-ec-inset, 12px)}}.gemboss-ec-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.gemboss-ec-chip{background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-full);padding:8px 16px;font-size:13px;cursor:pointer;color:var(--gemboss-text);min-height:44px}@media (hover: hover){.gemboss-ec-chip:hover{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}}.gemboss-ec-chip:disabled{opacity:.5;cursor:default}@media (pointer: fine){.gemboss-ec-starters{row-gap:16px}.gemboss-ec-tab,.gemboss-ec-starter,.gemboss-ec-upload{position:relative}.gemboss-ec-tab:after,.gemboss-ec-starter:after,.gemboss-ec-upload:after{content:"";position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:44px;pointer-events:auto;z-index:1}}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-toolbar>button[type=submit]{width:44px;height:44px;min-width:44px;min-height:44px;font-size:17px}.gemboss-ec-toolbar>button[type=submit] svg{width:18px;height:18px}}@media (pointer: coarse){.gemboss-ec-starter,.gemboss-ec-opt,.gemboss-ec-input textarea{min-height:44px}}.gemboss-md-p{margin:0 0 8px}.gemboss-md-p:last-child{margin-bottom:0}.gemboss-md-h{margin:16px 0 6px;font-weight:650;line-height:1.3}.gemboss-md-h:first-child{margin-top:0}.gemboss-md-h1{font-size:17px}.gemboss-md-h2{font-size:15px}.gemboss-md-h3{font-size:var(--gemboss-fs-body);color:var(--gemboss-text-muted)}.gemboss-md-list{margin:0 0 8px;padding-left:20px}.gemboss-md-list li{margin:2px 0}.gemboss-md-quote{margin:0 0 8px;padding:2px 0 2px 12px;border-left:3px solid var(--gemboss-divider);color:var(--gemboss-text-muted)}.gemboss-md-rule{margin:12px 0;border:0;border-top:1px solid var(--gemboss-divider)}.gemboss-md-code{padding:1px 6px;border-radius:6px;background:var(--gemboss-primary-soft);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;word-break:break-word}.gemboss-md-tablewrap{margin:0 0 12px;overflow-x:auto}.gemboss-md-table{border-collapse:collapse;font-size:var(--gemboss-fs-caption);min-width:100%}.gemboss-md-table th,.gemboss-md-table td{border:1px solid var(--gemboss-divider);padding:6px 8px;text-align:left;vertical-align:top;white-space:nowrap}.gemboss-md-table th{background:var(--gemboss-primary-soft);font-weight:600}.gemboss-md-imglink{display:inline-block;max-width:100%;margin:4px 0 8px;border-radius:8px;line-height:0}.gemboss-md-imglink:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-md-img{display:block;max-width:100%;max-height:320px;height:auto;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-primary-soft);object-fit:contain}.gemboss-md-codeblock{position:relative;margin:0 0 12px;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-primary-soft);overflow:hidden}.gemboss-md-codelang{display:block;padding:4px 12px 0;color:var(--gemboss-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.gemboss-md-codeblock pre{margin:0;padding:8px 12px;overflow-x:auto}.gemboss-md-codeblock code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5;white-space:pre}.gemboss-md-codemore{display:block;width:100%;padding:6px 12px;border:0;border-top:1px solid var(--gemboss-divider);background:transparent;color:var(--gemboss-text-muted);font-size:12px;text-align:left;cursor:pointer}@media (hover: hover){.gemboss-md-codemore:hover{background:#00000008}}.gemboss-narr-row.source{align-items:flex-start}.gemboss-narr-source{min-width:0;flex:1}.gemboss-narr-source-head{font-size:11px;color:var(--gemboss-text-muted, #686b71);margin-bottom:4px}.gemboss-narr-source-head code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.gemboss-narr-source-code{margin:0;padding:8px 12px;border-radius:8px;max-height:220px;overflow:auto;background:var(--gemboss-primary-soft, #f2f3f5);border:1px solid var(--gemboss-divider, #e5e7ea);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:var(--gemboss-fs-micro);line-height:17px;white-space:pre;tab-size:2}.gemboss-narr-source-code .c-com{color:#6a7a86;font-style:italic}.gemboss-narr-source-code .c-str{color:#9a3412}.gemboss-narr-source-code .c-num{color:#1d6fa5}.gemboss-narr-source-code .c-kw{color:#7c3aed;font-weight:600}.gemboss-narr-source-code .c-key{color:#0b6b3a}.gemboss-narr-source-code .c-tag{color:#b0197a}.gemboss-narr-source-code .c-attr{color:#7c3aed}.gemboss-narr-source-code .c-pun{color:#6a6d73}@media (max-width: 520px){.gemboss-narr-source-code{max-height:160px;font-size:11px}}.gemboss-narr-dot-quiet{visibility:hidden}
|
|
1
|
+
.gemboss-ec{--gemboss-ec-inset: 16px}@media (max-width: 640px){.gemboss-ec{--gemboss-ec-inset: 12px}}.gemboss-ec{--gemboss-ec-box-inset: 12px}.gemboss-ec-head{padding:16px var(--gemboss-ec-inset, 16px);border-bottom:1px solid var(--gemboss-divider);display:flex;flex-direction:column;gap:2px}.gemboss-ec-title{font-family:var(--gemboss-serif);font-size:15px;font-weight:600}.gemboss-ec-sub{font-size:12px;color:var(--gemboss-text-muted)}.gemboss-ec-scroll{flex:1;min-height:0;overflow-y:auto;padding:var(--gemboss-ec-inset, 16px);display:flex;flex-direction:column;gap:16px;scrollbar-gutter:stable}.gemboss-ec-scroll{scrollbar-width:thin;scrollbar-color:rgba(31,30,29,.22) transparent}.gemboss-ec-scroll::-webkit-scrollbar{width:9px}.gemboss-ec-scroll::-webkit-scrollbar-track{background:transparent}.gemboss-ec-scroll::-webkit-scrollbar-thumb{background:#1f1e1d33;border-radius:6px;border:2px solid transparent;background-clip:content-box}.gemboss-ec-msg{display:flex;flex-direction:column;gap:8px;max-width:100%}.gemboss-ec-msg.user{align-items:flex-end}.gemboss-ec-msg.assistant{align-items:flex-start}.gemboss-ec-bubble{font-size:var(--gemboss-fs-body);line-height:1.5;padding:12px;border-radius:16px;max-width:min(90%,68ch);white-space:pre-wrap;word-break:break-word}.gemboss-ec-msg.user .gemboss-ec-bubble{background:var(--gemboss-primary);color:var(--gemboss-on-primary, #fff);border-bottom-right-radius:4px}.gemboss-ec-msg.assistant .gemboss-ec-bubble{color:var(--gemboss-text);padding:0;border-radius:0}.gemboss-ec-msg .gemboss-ec-bubble{--gemboss-ec-md-ink: color-mix(in srgb, currentColor 78%, transparent);--gemboss-ec-md-line: color-mix(in srgb, currentColor 32%, transparent);--gemboss-ec-md-fill: color-mix(in srgb, currentColor 14%, transparent)}.gemboss-ec-msg .gemboss-ec-bubble :is(.gemboss-md-h3,.gemboss-md-quote,.gemboss-md-codelang,.gemboss-md-codemore){color:var(--gemboss-ec-md-ink)}.gemboss-ec-msg .gemboss-ec-bubble :is(.gemboss-md-quote,.gemboss-md-rule,.gemboss-md-table th,.gemboss-md-table td,.gemboss-md-codeblock,.gemboss-md-codemore,.gemboss-md-img){border-color:var(--gemboss-ec-md-line)}.gemboss-ec-msg .gemboss-ec-bubble :is(.gemboss-md-code,.gemboss-md-table th,.gemboss-md-codeblock,.gemboss-md-img){background:var(--gemboss-ec-md-fill)}@media (hover: hover){.gemboss-ec-msg .gemboss-ec-bubble .gemboss-md-codemore:hover{background:var(--gemboss-ec-md-fill)}}.gemboss-ec-toolbar>button[type=submit] svg{width:16px;height:16px;fill:currentColor}.gemboss-ec-pending{display:inline-flex;align-items:center;gap:8px;padding:6px 2px;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gemboss-ec-pending-star{color:var(--gemboss-primary);font-size:12px;line-height:1;animation:gemboss-star-pulse 1.1s ease-in-out infinite}.gemboss-ec-pending-verb{color:var(--gemboss-text);animation:gemboss-verb-in .4s ease-out}.gemboss-ec-pending-meta{font-variant-numeric:tabular-nums;opacity:.7;font-size:var(--gemboss-fs-caption)}@keyframes gemboss-star-pulse{0%,to{transform:scale(.85);opacity:.55}50%{transform:scale(1.15);opacity:1}}@keyframes gemboss-verb-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:none}}.gemboss-ec-cursor{display:inline-block;width:2px;height:1.05em;margin-left:2px;vertical-align:-2px;background:var(--gemboss-primary);border-radius:2px;animation:gemboss-cursor-blink 1s steps(1) infinite}@keyframes gemboss-cursor-blink{0%,45%{opacity:1}50%,95%{opacity:.15}to{opacity:1}}@media (prefers-reduced-motion: reduce){.gemboss-ec-pending-star,.gemboss-ec-cursor{animation:none}}.gemboss-ec-md-link{color:var(--gemboss-primary-dark);font-weight:600;text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--gemboss-primary) 35%,transparent);cursor:pointer}@media (hover: hover){.gemboss-ec-md-link:hover{border-bottom-color:var(--gemboss-primary)}}strong>.gemboss-ec-md-link{font-weight:inherit}.gemboss-ec-md-link:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px;border-radius:2px}.gemboss-ec-msg.user .gemboss-ec-md-link{color:inherit;border-bottom-color:color-mix(in srgb,currentColor 55%,transparent)}@media (hover: hover){.gemboss-ec-msg.user .gemboss-ec-md-link:hover{border-bottom-color:currentColor}}.gemboss-ec-starters{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.gemboss-ec-starter{text-align:left;font-size:13px;padding:6px 12px;border-radius:var(--gemboss-radius-full);cursor:pointer;background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);color:var(--gemboss-text);white-space:nowrap;max-width:100%}@media (hover: hover){.gemboss-ec-starter:hover{border-color:var(--gemboss-primary);background:#5661f50f}}.gemboss-ec-input{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:12px var(--gemboss-ec-box-inset, 12px);padding:8px;border:1px solid var(--gemboss-divider);border-radius:16px;background:var(--gemboss-surface);transition:border-color var(--gemboss-transition-fast) ease,box-shadow var(--gemboss-transition-fast) ease}.gemboss-ec-input:focus-within{border-color:var(--gemboss-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-focus, #5661f5) 12%,transparent)}.gemboss-ec-input textarea{flex:1 0 100%;min-width:0;width:100%;box-sizing:border-box;resize:none;border-radius:0;background:transparent;border:1px solid transparent;padding:6px 8px;font:inherit;font-size:var(--gemboss-fs-body);color:inherit;min-height:0;max-height:84px;line-height:1.5;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(31,30,29,.22) transparent}.gemboss-ec-input textarea::-webkit-scrollbar{width:7px}.gemboss-ec-input textarea::-webkit-scrollbar-track{background:transparent}.gemboss-ec-input textarea::-webkit-scrollbar-thumb{background:#1f1e1d33;border-radius:4px;border:2px solid transparent;background-clip:content-box}.gemboss-ec-input textarea:focus{outline:none}.gemboss-ec-toolbar>button[type=submit]{flex:0 0 auto;width:28px;height:28px;min-width:28px;min-height:28px;border-radius:50%;border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;background:var(--gemboss-primary);color:var(--gemboss-on-primary, #fff);font-size:16px;font-weight:700;transition:background var(--gemboss-transition-fast) ease,filter var(--gemboss-transition-fast) ease}@media (hover: hover){.gemboss-ec-toolbar>button[type=submit]:hover:not(:disabled){background:var(--gemboss-primary-dark)}}.gemboss-ec-toolbar>button[type=submit]:active:not(:disabled){background:var(--gemboss-primary-dark);filter:brightness(.94)}.gemboss-ec-toolbar>button[type=submit]:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-toolbar>button[type=submit]:disabled{background:var(--gemboss-divider);color:var(--gemboss-text-muted);opacity:1;cursor:default}.gemboss-narr{list-style:none;margin:0;padding:8px 0 0;display:flex;flex-direction:column;gap:8px}.gemboss-narr-row{display:flex;align-items:center;gap:8px;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gemboss-narr-dot{width:16px;height:16px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px;flex:0 0 auto}.gemboss-narr-row.ok .gemboss-narr-dot{background:var(--gemboss-active-bg);color:var(--gemboss-active-fg)}.gemboss-narr-row.failed .gemboss-narr-dot{background:#fde8e6;color:var(--gemboss-danger)}.gemboss-narr-row.running .gemboss-narr-dot{background:transparent}.gemboss-narr-dot-engine{background:transparent!important;color:inherit}.gemboss-narr-row.ok .gemboss-narr-dot-engine{color:var(--gemboss-text)}.gemboss-narr-row.failed .gemboss-narr-dot-engine{color:var(--gemboss-danger)}.gemboss-narr-row.ok .gemboss-narr-text,.gemboss-narr-row.failed .gemboss-narr-text{color:var(--gemboss-text)}.gemboss-narr-row.steer .gemboss-narr-dot{background:transparent;color:var(--gemboss-text-muted)}.gemboss-narr-steer{color:var(--gemboss-text);font-weight:500;overflow-wrap:anywhere}.gemboss-narr-spin{width:11px;height:11px;border:2px solid var(--gemboss-divider-soft);border-top-color:var(--gemboss-primary);border-radius:50%;animation:gemboss-spin .7s linear infinite}@keyframes gemboss-spin{to{transform:rotate(360deg)}}.gemboss-narr-row.thinking{align-items:flex-start}.gemboss-narr-row.thinking .gemboss-narr-dot{color:var(--gemboss-text-muted);background:transparent}.gemboss-narr-thinking-live{font-style:italic;color:var(--gemboss-text-muted);white-space:pre-wrap;opacity:.9;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.gemboss-narr-thinking{font-size:var(--gemboss-fs-caption)}.gemboss-narr-thinking>summary{cursor:pointer;color:var(--gemboss-text-muted);list-style:none;user-select:none}.gemboss-narr-thinking>summary::-webkit-details-marker{display:none}.gemboss-narr-thinking>summary:before{content:"\25b8 "}.gemboss-narr-thinking[open]>summary:before{content:"\25be "}.gemboss-narr-thinking-body{margin-top:6px;padding:8px;border-left:2px solid var(--gemboss-divider-soft);color:var(--gemboss-text-muted);font-style:italic;white-space:pre-wrap;line-height:1.5}.gemboss-narr-row.trace code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:var(--gemboss-fs-caption);word-break:break-word}.gemboss-narr-trace-call{color:var(--gemboss-text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.gemboss-narr-trace{font-size:var(--gemboss-fs-caption);min-width:0}.gemboss-narr-trace>summary{cursor:pointer;color:var(--gemboss-text-muted);list-style:none;user-select:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.gemboss-narr-trace[open]>summary{display:block;overflow:visible}.gemboss-narr-trace>summary::-webkit-details-marker{display:none}.gemboss-narr-trace>summary,.gemboss-narr-thinking>summary{min-height:24px;box-sizing:border-box;padding-block:2px}.gemboss-narr-trace>summary:before{content:"\25b8 "}.gemboss-narr-trace[open]>summary:before{content:"\25be "}.gemboss-narr-trace-body{margin-top:6px;padding:8px;border-left:2px solid var(--gemboss-divider-soft);color:var(--gemboss-text-muted);white-space:pre-wrap;line-height:1.5;overflow-x:auto}@media (max-width: 640px){.gemboss-ec-input textarea{min-height:0}.gemboss-ec-scroll{padding:var(--gemboss-ec-inset, 12px)}}.gemboss-ec-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.gemboss-ec-chip{background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-full);padding:8px 16px;font-size:13px;cursor:pointer;color:var(--gemboss-text);min-height:44px}@media (hover: hover){.gemboss-ec-chip:hover{border-color:var(--gemboss-primary);color:var(--gemboss-active-fg)}}.gemboss-ec-chip:disabled{opacity:.5;cursor:default}@media (pointer: fine){.gemboss-ec-starters{row-gap:16px}.gemboss-ec-tab,.gemboss-ec-starter,.gemboss-ec-upload{position:relative}.gemboss-ec-tab:after,.gemboss-ec-starter:after,.gemboss-ec-upload:after{content:"";position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:44px;pointer-events:auto;z-index:1}}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-toolbar>button[type=submit]{min-width:44px;min-height:44px}}@media (pointer: coarse),(max-width: 47.9975em){:where(.gb-dock-shrink,.gemboss-assistant-newchat,.gemboss-ec-toolbar>button[type=submit],.gemboss-ec-input :is(.gemboss-ec-stop,.gemboss-ec-attach-btn,.gemboss-ec-mic),.gb-chat-ideas){position:relative;isolation:isolate}:is(.gb-dock-shrink,.gb-dock-full .gemboss-assistant-rail .gemboss-assistant-newchat,.gemboss-ec-toolbar>button[type=submit],.gemboss-ec-input :is(.gemboss-ec-stop,.gemboss-ec-attach-btn,.gemboss-ec-mic),.gb-chat-ideas){-webkit-background-clip:text!important;background-clip:text!important;border-image:linear-gradient(#0000,#0000)!important}:is(.gb-dock-shrink,.gb-dock-full .gemboss-assistant-rail .gemboss-assistant-newchat,.gemboss-ec-toolbar>button[type=submit],.gemboss-ec-input :is(.gemboss-ec-stop,.gemboss-ec-attach-btn,.gemboss-ec-mic),.gb-chat-ideas):before{content:"";position:absolute;inset:-1px;margin:auto;z-index:-1;box-sizing:border-box;pointer-events:none;width:inherit;height:inherit;max-width:calc(100% + 2px);max-height:calc(100% + 2px);background:inherit;background-clip:border-box;border-width:inherit;border-style:inherit;border-color:inherit;border-image:none;border-radius:inherit}}@media (pointer: coarse){.gemboss-ec-starter,.gemboss-ec-opt,.gemboss-ec-input textarea{min-height:44px}}.gemboss-md-p{margin:0 0 8px}.gemboss-md-p:last-child{margin-bottom:0}.gemboss-md-h{margin:16px 0 6px;font-weight:650;line-height:1.3}.gemboss-md-h:first-child{margin-top:0}.gemboss-md-h1{font-size:17px}.gemboss-md-h2{font-size:15px}.gemboss-md-h3{font-size:var(--gemboss-fs-body);color:var(--gemboss-text-muted)}.gemboss-md-list{margin:0 0 8px;padding-left:20px}.gemboss-md-list li{margin:2px 0}.gemboss-md-quote{margin:0 0 8px;padding:2px 0 2px 12px;border-left:3px solid var(--gemboss-divider);color:var(--gemboss-text-muted)}.gemboss-md-rule{margin:12px 0;border:0;border-top:1px solid var(--gemboss-divider)}.gemboss-md-code{padding:1px 6px;border-radius:6px;background:var(--gemboss-primary-soft);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;word-break:break-word}.gemboss-md-tablewrap{margin:0 0 12px;overflow-x:auto}.gemboss-md-table{border-collapse:collapse;font-size:var(--gemboss-fs-caption);min-width:100%}.gemboss-md-table th,.gemboss-md-table td{border:1px solid var(--gemboss-divider);padding:6px 8px;text-align:left;vertical-align:top;white-space:nowrap}.gemboss-md-table th{background:var(--gemboss-primary-soft);font-weight:600}.gemboss-md-imglink{display:inline-block;max-width:100%;margin:4px 0 8px;border-radius:8px;line-height:0}.gemboss-md-imglink:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-md-img{display:block;max-width:100%;max-height:320px;height:auto;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-primary-soft);object-fit:contain}.gemboss-md-codeblock{position:relative;margin:0 0 12px;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-primary-soft);overflow:hidden}.gemboss-md-codelang{display:block;padding:4px 12px 0;color:var(--gemboss-text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.gemboss-md-codeblock pre{margin:0;padding:8px 12px;overflow-x:auto}.gemboss-md-codeblock code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5;white-space:pre}.gemboss-md-codemore{display:block;width:100%;padding:6px 12px;border:0;border-top:1px solid var(--gemboss-divider);background:transparent;color:var(--gemboss-text-muted);font-size:12px;text-align:left;cursor:pointer}@media (hover: hover){.gemboss-md-codemore:hover{background:#00000008}}.gemboss-narr-row.source{align-items:flex-start}.gemboss-narr-source{min-width:0;flex:1}.gemboss-narr-source-head{font-size:11px;color:var(--gemboss-text-muted, #686b71);margin-bottom:4px}.gemboss-narr-source-head code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.gemboss-narr-source-code{margin:0;padding:8px 12px;border-radius:8px;max-height:220px;overflow:auto;background:var(--gemboss-primary-soft, #f2f3f5);border:1px solid var(--gemboss-divider, #e5e7ea);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:var(--gemboss-fs-micro);line-height:17px;white-space:pre;tab-size:2}.gemboss-narr-source-code .c-com{color:#6a7a86;font-style:italic}.gemboss-narr-source-code .c-str{color:#9a3412}.gemboss-narr-source-code .c-num{color:#1d6fa5}.gemboss-narr-source-code .c-kw{color:#7c3aed;font-weight:600}.gemboss-narr-source-code .c-key{color:#0b6b3a}.gemboss-narr-source-code .c-tag{color:#b0197a}.gemboss-narr-source-code .c-attr{color:#7c3aed}.gemboss-narr-source-code .c-pun{color:#6a6d73}@media (max-width: 520px){.gemboss-narr-source-code{max-height:160px;font-size:11px}}.gemboss-narr-dot-quiet{visibility:hidden}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@media (pointer: coarse),(max-width: 47.9975em){.ui-chips>a.ui-tag--chip{min-height:44px;min-width:44px;justify-content:center}.ui-chips>.ui-tag--chip{position:relative;isolation:isolate;-webkit-background-clip:text!important;background-clip:text!important;border-image:linear-gradient(#0000,#0000)!important}.ui-chips>.ui-tag--chip:before{content:"";position:absolute;inset:clamp(-1px,calc(50% - 15px),6px) -1px;z-index:-1;box-sizing:border-box;pointer-events:none;background:inherit;-webkit-background-clip:border-box;background-clip:border-box;border-width:inherit;border-style:inherit;border-color:inherit;border-image:none;border-radius:inherit}.ui-chips>.ui-tag--chip:focus-visible{outline:none!important}.ui-chips>.ui-tag--chip:focus-visible:before{outline:2px solid var(--ui-focus);outline-offset:1px}}
|
package/src/collections.tsx
CHANGED
|
@@ -359,7 +359,9 @@ export function MediaCard({ title, href, linkAs: Link = "a", media, meta, badges
|
|
|
359
359
|
|
|
360
360
|
/** A card with its id (0.18.0): what a move reports and what server paging de-duplicates by. `name` is what the live
|
|
361
361
|
* region says ("Moved <name> to Review"); default the card's title text. */
|
|
362
|
-
|
|
362
|
+
/** `fixed` (14/11/2026): a card that stays in its column on a board where the others move (Operator › Tasks: a running job beside the
|
|
363
|
+
* seller's ideas). It is drawn without the drag and the keyboard pick-up, and the board's drag never lifts it. */
|
|
364
|
+
export type BoardCard = { id: string; card: React.ReactNode; name?: string; fixed?: boolean };
|
|
363
365
|
|
|
364
366
|
export type BoardColumn = {
|
|
365
367
|
id: string;
|
|
@@ -452,7 +454,7 @@ export function Board({ columns, label, id, pageSize = 12, step = 24, moreLabel
|
|
|
452
454
|
const ref = movable ? (el: HTMLDivElement | null) => { if (el) attachBoardMove(el, (cardId, to, index) => onMove!(cardId, to, index)); } : undefined;
|
|
453
455
|
const entries = (col: BoardColumn): BoardCard[] => col.items ?? (col.cards || []).map((card, i) => ({ id: "", card, name: String(i) }));
|
|
454
456
|
const li = (c: BoardCard, key: React.Key) => c.id
|
|
455
|
-
? <li key={c.id} data-id={c.id} data-name={c.name} {...(movable ? { tabIndex: 0, draggable: true, "aria-describedby": help } : {})}>{c.card}</li>
|
|
457
|
+
? <li key={c.id} data-id={c.id} data-name={c.name} {...(movable && !c.fixed ? { tabIndex: 0, draggable: true, "aria-describedby": help } : {})}>{c.card}</li>
|
|
456
458
|
: <li key={key}>{c.card}</li>;
|
|
457
459
|
const rest = (cards: BoardCard[], from: number): React.ReactNode => {
|
|
458
460
|
if (from >= cards.length) return null;
|
package/src/dialog.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
dialog.ui-modal{padding:0;max-width:calc(100% - 40px);max-height:calc(100dvh - 40px);color:var(--ui-text)}dialog.ui-modal[open]{display:flex;flex-direction:column}dialog.ui-modal::backdrop{background:#
|
|
1
|
+
dialog.ui-modal{padding:0;max-width:calc(100% - 40px);max-height:calc(100dvh - 40px);color:var(--ui-text)}dialog.ui-modal[open]{display:flex;flex-direction:column}dialog.ui-modal::backdrop{background:#1f1e1d38;-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}dialog.ui-modal>.ui-modal__head,dialog.ui-modal>.ui-modal__foot{flex:none}dialog.ui-modal>.ui-modal__body{flex:1 1 auto;min-height:0;overflow:auto}
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
// the picture (`-pic`), before the words or after them (`pictureAt`);
|
|
11
11
|
// · real radios in one group (`name`): Tab enters at the one picked, the arrow keys move the pick and Space picks, as the browser's own
|
|
12
12
|
// radios do; a pick calls `onChange` (a host that applies on a button of its own keeps the pick until then);
|
|
13
|
-
// · the caller owns the value: a value no card has (a set of the theme's own) checks none
|
|
13
|
+
// · the caller owns the value: a value no card has (a set of the theme's own) checks none;
|
|
14
|
+
// · `pictureAt="top"` (15/11/2026, Chris's board 2F: style packs told apart by a sample of each, "thumb như làm tạm" before): the
|
|
15
|
+
// cards two to a row, each its picture over its words, the radio kept for the keyboard but not drawn (the ring says which is on).
|
|
14
16
|
// Its look is editor.css's (the harnesses that draw a settings panel already load it).
|
|
15
17
|
import "../editor.css";
|
|
16
18
|
import { forwardRef, type CSSProperties, type ReactNode } from "react";
|
|
@@ -38,8 +40,9 @@ export interface ChoiceCardsProps {
|
|
|
38
40
|
value: string | null;
|
|
39
41
|
onChange: (value: string) => void;
|
|
40
42
|
disabled?: boolean;
|
|
41
|
-
/** Where each card's picture goes: before its words (`start`, default)
|
|
42
|
-
|
|
43
|
+
/** Where each card's picture goes: before its words (`start`, default), after them (`end`), or over them, two cards to a row
|
|
44
|
+
* (`top`: a picture that tells the choices apart, as a style pack's sample). */
|
|
45
|
+
pictureAt?: "start" | "end" | "top";
|
|
43
46
|
/** The group's id (a button that shows it points at it: `aria-controls`). */
|
|
44
47
|
id?: string;
|
|
45
48
|
/** On the group: a host's layout (a long list held to a height that scrolls). Never a look. */
|
|
@@ -48,7 +51,7 @@ export interface ChoiceCardsProps {
|
|
|
48
51
|
|
|
49
52
|
export const ChoiceCards = forwardRef<HTMLDivElement, ChoiceCardsProps>(function ChoiceCards({ name, label, options, value, onChange, disabled, pictureAt = "start", id, style }, ref) {
|
|
50
53
|
return (
|
|
51
|
-
<div ref={ref} id={id} className="gemboss-ei-choices" role="radiogroup" aria-label={label} style={style}>
|
|
54
|
+
<div ref={ref} id={id} className={pictureAt === "top" ? "gemboss-ei-choices gemboss-ei-choices--grid" : "gemboss-ei-choices"} role="radiogroup" aria-label={label} style={style}>
|
|
52
55
|
{options.map((o) => {
|
|
53
56
|
const checked = value === o.value;
|
|
54
57
|
const off = disabled || o.disabled;
|
|
@@ -57,7 +60,7 @@ export const ChoiceCards = forwardRef<HTMLDivElement, ChoiceCardsProps>(function
|
|
|
57
60
|
<label key={o.value} className="gemboss-ei-choice" data-checked={checked ? "" : undefined} data-disabled={off ? "" : undefined}>
|
|
58
61
|
<input type="radio" className="gemboss-ei-choice-input" name={name} value={o.value} checked={checked} disabled={off}
|
|
59
62
|
onChange={() => onChange(o.value)} />
|
|
60
|
-
{pictureAt === "start" ? pic : null}
|
|
63
|
+
{pictureAt === "start" || pictureAt === "top" ? pic : null}
|
|
61
64
|
<span className="gemboss-ei-choice-words">
|
|
62
65
|
<span className="gemboss-ei-choice-name">{o.label}</span>
|
|
63
66
|
{(o.lines ?? []).map((line, i) => <span key={i} className="gemboss-ei-choice-line">{line}</span>)}
|
package/src/editor/controls.tsx
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
import "../editor.css"; // its own stylesheet travels with it (0.23.0): a surface that never renders it never loads it
|
|
14
14
|
import "../editor-color.css"; // the swatch button (ColorControl); the picker's own rules are in it too
|
|
15
15
|
import "../editor-media.css"; // MediaCard's picture by its state (data-thumb)
|
|
16
|
+
import { MEDIA_PASTE_LABEL } from "./media-words"; // the card's words (one vocabulary for picking media, no stylesheet)
|
|
16
17
|
import { forwardRef, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
17
18
|
import type React from "react";
|
|
18
19
|
import { cssUrl } from "./css-url";
|
|
@@ -35,6 +36,8 @@ export interface SegOption<T extends string = string> {
|
|
|
35
36
|
label?: React.ReactNode;
|
|
36
37
|
/** The button's own name, for a label that is a glyph (an arrow), said by a screen reader and shown on hover. */
|
|
37
38
|
name?: string;
|
|
39
|
+
/** What the page draws while nothing is chosen: the empty field's face (Segmented `drawn`). */
|
|
40
|
+
drawn?: boolean;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
export interface SegProps<T extends string = string> {
|
|
@@ -61,7 +64,7 @@ export interface SegProps<T extends string = string> {
|
|
|
61
64
|
export function Seg<T extends string = string>({ options, value, onChange, disabled, label, style, wrap, describedBy }: SegProps<T>) {
|
|
62
65
|
return (
|
|
63
66
|
<Segmented<T> fill wrap={wrap} className="gemboss-ei-seg" style={style} ariaLabel={label ?? ""} describedBy={describedBy} value={(value ?? "") as T | ""} onChange={onChange} disabled={disabled}
|
|
64
|
-
options={options.map((o) => ({ value: o.value, label: o.label ?? o.value, ...(o.name ? { ariaLabel: o.name, title: o.name } : {}) }))} />
|
|
67
|
+
options={options.map((o) => ({ value: o.value, label: o.label ?? o.value, ...(o.name ? { ariaLabel: o.name, title: o.name } : {}), ...(o.drawn ? { drawn: true } : {}) }))} />
|
|
65
68
|
);
|
|
66
69
|
}
|
|
67
70
|
|
|
@@ -623,8 +626,8 @@ export interface MediaCardProps {
|
|
|
623
626
|
/** `meta` read out when it changes ("Uploading…"). */
|
|
624
627
|
metaLive?: boolean;
|
|
625
628
|
empty: React.ReactNode;
|
|
626
|
-
/** The box behind the paste chip: its chip (
|
|
627
|
-
pasteLabel
|
|
629
|
+
/** The box behind the paste chip: its chip (MEDIA_PASTE_LABEL unless said), its id, its name and placeholder, and what it holds. */
|
|
630
|
+
pasteLabel?: string;
|
|
628
631
|
boxId?: string;
|
|
629
632
|
boxLabel: string;
|
|
630
633
|
placeholder: string;
|
|
@@ -709,7 +712,7 @@ function Thumb({ url, picture, state, held, glyph = "image" }: {
|
|
|
709
712
|
}
|
|
710
713
|
|
|
711
714
|
export function MediaCard({
|
|
712
|
-
thumbUrl, picture, thumbState, glyph = "image", name, title, meta, metaLive, empty, pasteLabel, boxId, boxLabel, placeholder, text, onText, open, onOpenChange, onKeep, onLeave,
|
|
715
|
+
thumbUrl, picture, thumbState, glyph = "image", name, title, meta, metaLive, empty, pasteLabel = MEDIA_PASTE_LABEL, boxId, boxLabel, placeholder, text, onText, open, onOpenChange, onKeep, onLeave,
|
|
713
716
|
boxAutoFocus = true, boxDescribedBy, boxInvalid, before, after, more, whileEmpty, onRemove, menuLabel = "More actions", disabled, over, drop, children,
|
|
714
717
|
}: MediaCardProps) {
|
|
715
718
|
const pasteRef = useRef<HTMLButtonElement>(null);
|
|
@@ -839,7 +842,7 @@ export function ImageControl({ id, value, onChange, disabled, placeholder, draft
|
|
|
839
842
|
meta={busy ? "Uploading…" : size === "broken" ? "Can't load this image"
|
|
840
843
|
: [size ? `${size.w} × ${size.h}` : "", fileSizeWords(bytesOf?.(shown) ?? 0)].filter(Boolean).join(" · ")}
|
|
841
844
|
empty={busy ? "Uploading…" : "Drop an image here"}
|
|
842
|
-
|
|
845
|
+
boxId={id} boxLabel="Image URL" boxDescribedBy={describedBy} placeholder={placeholder ?? "Paste image URL…"}
|
|
843
846
|
text={text} onText={setText} open={pasting} onOpenChange={(o) => { if (o) setError(""); setPasting(o); }}
|
|
844
847
|
onKeep={() => { keep(); return true; }} onLeave={() => setText(value)}
|
|
845
848
|
disabled={disabled} before={actions} more={more} whileEmpty={whileEmpty} menuLabel={menuLabel}
|
|
@@ -219,10 +219,13 @@ function kitControl(p: Drawn): ReactNode {
|
|
|
219
219
|
if (!chipsFitBeside({ options: field.options.map((o, i) => (pictures[i] == null ? { ...o, glyph: undefined } : o)) })) {
|
|
220
220
|
// An option reads as its full name in a list (a sample's "AA · UPPERCASE", a glyph's "Left"): a list has no picture to carry it.
|
|
221
221
|
// A stored value the chips would have shown as itself (any value, as text) is the list's own stray option.
|
|
222
|
+
// Empty, it says what the page draws as the list it is says it: the placeholder given, else the drawn option's own name
|
|
223
|
+
// (review of #7549: one field, `drawn`, is enough to say it either way).
|
|
224
|
+
const drawnOption = field.drawn === undefined ? undefined : field.options.find((o) => o.value === field.drawn);
|
|
225
|
+
const emptyWords = field.placeholder ?? drawnOption?.name ?? drawnOption?.label;
|
|
222
226
|
const list: FieldSpec = { kind: "select", id: field.id, label: field.label, hint: field.hint,
|
|
223
227
|
options: field.options.map(({ glyph: _glyph, name, ...o }) => ({ ...o, label: name ?? o.label })),
|
|
224
|
-
|
|
225
|
-
...(field.placeholder ? { placeholder: field.placeholder } : {}) };
|
|
228
|
+
...(emptyWords ? { placeholder: emptyWords } : {}) };
|
|
226
229
|
return <FieldControl field={list} value={typeof value === "boolean" ? String(value) : value} onChange={onChange} disabled={disabled} inputId={inputId}
|
|
227
230
|
mark={mark} labelMark={labelMark} describedBy={describedBy} shopId={shopId} labelHidden={labelHidden} kinds={kinds} glyphs={glyphs} />;
|
|
228
231
|
}
|
|
@@ -239,7 +242,9 @@ function kitControl(p: Drawn): ReactNode {
|
|
|
239
242
|
<Seg label={lbl} value={shown} disabled={disabled} describedBy={describedBy} onChange={(v) => { if (v !== shown) onChange(v); else if (field.clearable) onChange(""); }}
|
|
240
243
|
options={field.options.map((o, i) => (o.glyph
|
|
241
244
|
? { value: o.value, label: pictures[i] ?? o.label ?? labelize(o.value), name: o.label ?? labelize(o.value) }
|
|
242
|
-
: { value: o.value, label: o.label ?? labelize(o.value), ...(o.name ? { name: o.name } : {}) }))
|
|
245
|
+
: { value: o.value, label: o.label ?? labelize(o.value), ...(o.name ? { name: o.name } : {}) }))
|
|
246
|
+
// Nothing stored: the option the page draws wears the empty face (an empty list says it greyed, `placeholder`).
|
|
247
|
+
.map((o) => (shown === undefined && field.drawn !== undefined && o.value === field.drawn ? { ...o, drawn: true } : o))} />
|
|
243
248
|
{stray ? <p className="gemboss-ei-hint" data-stray-value={cur}>Set to “{labelize(cur)}”, which is not one of these.</p> : null}
|
|
244
249
|
</Field>
|
|
245
250
|
);
|
|
@@ -60,6 +60,8 @@ export function usePartHits(parts: readonly FramePart[], q: string): { hits: Rea
|
|
|
60
60
|
|
|
61
61
|
export type FieldFrameProps = FieldRowsProps & {
|
|
62
62
|
schema: FieldSchema;
|
|
63
|
+
/** Small actions in a schema group's head, by the group's title (Global styles' Colors: Use brand colors, Edit in Brand). */
|
|
64
|
+
groupActs?: Readonly<Record<string, ReactNode>>;
|
|
63
65
|
/** Several fields at once, as ONE write: a group's − clears each of its rows. Each host writes them together (one save, one preview from
|
|
64
66
|
* the end state, busy until it answers); one by one, a host composing each write from the same state lost all but the last. A row's own
|
|
65
67
|
* change is `onChange`. */
|
|
@@ -93,7 +95,7 @@ export type FieldFrameProps = FieldRowsProps & {
|
|
|
93
95
|
/** The clusters' names a host gives them (InspectorFrame's `label`), by cluster. */
|
|
94
96
|
export type FrameClusterLabels = Partial<Record<"look" | "place" | "when" | "code", string>>;
|
|
95
97
|
|
|
96
|
-
export function FieldFrame({ schema, lead, own = [], after = [], who = [], place: placeParts = [], code: codeParts = [], heldHere, inheritedFrom, onChangeMany, places, labels, ...rows }: FieldFrameProps) {
|
|
98
|
+
export function FieldFrame({ schema, groupActs, lead, own = [], after = [], who = [], place: placeParts = [], code: codeParts = [], heldHere, inheritedFrom, onChangeMany, places, labels, ...rows }: FieldFrameProps) {
|
|
97
99
|
const { values, disabled } = rows;
|
|
98
100
|
// The app's kinds, by prop or FieldKindsProvider: a kind over several settings holds and clears by its own rule.
|
|
99
101
|
const { kinds } = useFieldKinds(rows.kinds, rows.glyphs);
|
|
@@ -137,7 +139,7 @@ export function FieldFrame({ schema, lead, own = [], after = [], who = [], place
|
|
|
137
139
|
if (found) {
|
|
138
140
|
// Searching: a group the words find is open with the fields they find, every other one not drawn.
|
|
139
141
|
const hit = found.get(g.key);
|
|
140
|
-
return hit ? <InspectorFrameGroup key={g.key} groupKey={g.key} state="open" title={g.title}>{rowsOf(hit)}</InspectorFrameGroup> : null;
|
|
142
|
+
return hit ? <InspectorFrameGroup key={g.key} groupKey={g.key} state="open" title={g.title} acts={groupActs?.[g.title]}>{rowsOf(hit)}</InspectorFrameGroup> : null;
|
|
141
143
|
}
|
|
142
144
|
// One component in the three states, so a group that is added stays the same element where it was (the focus kept in it).
|
|
143
145
|
const holdsHere = groupHolds(g, here, kinds);
|
|
@@ -146,7 +148,7 @@ export function FieldFrame({ schema, lead, own = [], after = [], who = [], place
|
|
|
146
148
|
// A − where it takes something off on this screen (never a text the seller wrote: groupClearable), or where + showed it with nothing.
|
|
147
149
|
const removable = holdsHere ? groupClearable(g) : !inherits && shown.has(g.key);
|
|
148
150
|
return (
|
|
149
|
-
<InspectorFrameGroup key={g.key} groupKey={g.key} state={state} title={g.title} disabled={disabled} onAdd={add(g)}
|
|
151
|
+
<InspectorFrameGroup key={g.key} groupKey={g.key} state={state} title={g.title} disabled={disabled} onAdd={add(g)} acts={groupActs?.[g.title]}
|
|
150
152
|
note={inherits && inheritedFrom ? `from ${inheritedFrom}` : undefined}
|
|
151
153
|
remove={removable ? { label: `Remove ${g.title.toLowerCase()}`, onRemove: remove(g) } : null}>
|
|
152
154
|
{state === "add" ? null : rowsOf(g)}
|
package/src/editor/field-spec.ts
CHANGED
|
@@ -65,7 +65,10 @@ export type FieldSpec<G extends string = string> =
|
|
|
65
65
|
// `clearable`: pressing the chip already pressed clears the setting ("" deletes it), as the kit's Segmented does with onClear.
|
|
66
66
|
| { kind: "segmented"; id: string; label?: string; options: SelectOption<G>[]; hint?: string; clearable?: boolean;
|
|
67
67
|
/** What the list it falls back to (when its chips do not fit) says empty: the select's `placeholder`. */
|
|
68
|
-
placeholder?: string
|
|
68
|
+
placeholder?: string;
|
|
69
|
+
/** The option the page draws while nothing is stored (an element's Letter case, from its theme): its chip wears the empty face,
|
|
70
|
+
* or, as a list, its name is the greyed placeholder. Not where a "" option is offered: that chip is "nothing set" and is lit. */
|
|
71
|
+
drawn?: string }
|
|
69
72
|
| { kind: "toggle"; id: string; label?: string; onLabel?: string; offLabel?: string; hint?: string }
|
|
70
73
|
| { kind: "color"; id: string; label?: string; hint?: string; placeholder?: string }
|
|
71
74
|
| { kind: "image"; id: string; label?: string }
|
|
@@ -170,11 +173,17 @@ export function segmentable(options: ReadonlyArray<{ value: string; label?: stri
|
|
|
170
173
|
return options.every((o) => labelWidthPx(o.label ?? o.value) <= room);
|
|
171
174
|
}
|
|
172
175
|
|
|
173
|
-
/**
|
|
176
|
+
/** One picture chip, px: the 28px button less its 2px, and the 1px line before the next (ui.css `.ui-seg`). */
|
|
177
|
+
export const GLYPH_CHIP_PX = 27;
|
|
178
|
+
|
|
179
|
+
/** Whether a row of chips fits beside its label: pictures as many as fit the control column (each GLYPH_CHIP_PX, the row's 2px border:
|
|
180
|
+
* five in 154px, measured 15/11/2026 for a shadow's None · Subtle · Medium · Large · Custom; it said four), words 3 at most and only when
|
|
174
181
|
* each fits its share of it. Chips that do not are drawn as a list beside the label (FieldControl), not under it (Chris 04/11/2026:
|
|
175
182
|
* labels beside their controls, "gọn hơn"). */
|
|
176
183
|
export function chipsFitBeside(field: { options: ReadonlyArray<SelectOption> }): boolean {
|
|
177
|
-
return field.options.every((o) => o.glyph)
|
|
184
|
+
return field.options.every((o) => o.glyph)
|
|
185
|
+
? field.options.length * GLYPH_CHIP_PX + 2 <= ROW_CONTROL_COLUMN_PX
|
|
186
|
+
: field.options.length <= 3 && segmentable(field.options, ROW_CONTROL_COLUMN_PX);
|
|
178
187
|
}
|
|
179
188
|
|
|
180
189
|
// ── A list's order ────────────────────────────────────────────────────────────────────────────────────────────────────────────────
|
package/src/editor/index.ts
CHANGED
|
@@ -41,6 +41,8 @@ export {
|
|
|
41
41
|
Checkbox, ChipButton, ColorControl, EdgeBox, fileSizeWords, ImageControl, imageFileName, MediaCard, PickButton, RangeControl, Seg, UnitField, ValueControl,
|
|
42
42
|
type CheckboxProps, type ColorChoice, type ColorControlProps, type EdgeBoxProps, type EdgeSide, type ImageControlProps, type MediaCardProps, type PickButtonProps, type RangeControlProps, type SegOption, type SegProps, type UnitFieldProps, type ValueControlProps,
|
|
43
43
|
} from "./controls";
|
|
44
|
+
// One vocabulary for picking a picture or a video (13/11/2026), also its own CSS-free entry: @gemboss/ui/editor/media-words.
|
|
45
|
+
export { MEDIA_PASTE_LABEL, mediaActionLabel, mediaPickLabel, type MediaGlyph } from "./media-words";
|
|
44
46
|
// 27/10/2026: a control takes a value from outside in the render that brings it, not an effect later (new-value.ts).
|
|
45
47
|
export { useOnNewValue } from "./new-value";
|
|
46
48
|
export { mixColor, mixName, mixOf, mixSides, opacityOf, parseColor, pickSwatch, swatchState, swatchWhy, themeColorChoices, withOpacity, type MixPart, type Rgba, type SwatchState } from "./swatch";
|
|
@@ -291,7 +291,8 @@ export interface InspectorFrameGroupProps {
|
|
|
291
291
|
addLabel?: string;
|
|
292
292
|
/** `added`: the −. Absent where it would write nothing (a value held on another screen keeps the group added). */
|
|
293
293
|
remove?: { label: string; onRemove: (e: React.MouseEvent<HTMLButtonElement>) => void } | null;
|
|
294
|
-
/**
|
|
294
|
+
/** Small actions in the head: before the − of an `added` group (Play, Preview), after the title of an `open` one (Global styles'
|
|
295
|
+
* Colors: Use brand colors). */
|
|
295
296
|
acts?: React.ReactNode;
|
|
296
297
|
/** + and − wait while a write runs. */
|
|
297
298
|
disabled?: boolean;
|
|
@@ -372,7 +373,7 @@ export function InspectorFrameGroup({ groupKey, state, title, note, label, onAdd
|
|
|
372
373
|
);
|
|
373
374
|
if (state === "open") return (
|
|
374
375
|
<div ref={ref} className="gemboss-ei-grp" data-open-group={groupKey} role="group" aria-label={label ?? title}>
|
|
375
|
-
<div className="gemboss-ei-openhead" data-ei-head=""><span>{title}{noteNode}</span
|
|
376
|
+
<div className="gemboss-ei-openhead" data-ei-head=""><span>{title}{noteNode}</span>{acts ? <span className="gemboss-ei-headacts">{acts}</span> : null}</div>
|
|
376
377
|
{children}
|
|
377
378
|
</div>
|
|
378
379
|
);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ONE VOCABULARY FOR PICKING A PICTURE OR A VIDEO (EdField on the UI/UX canvas; Chris 13/11/2026 on a library section's Video field:
|
|
3
|
+
* "chưa đúng chuẩn control"). An image card said "Select image / Paste a URL / Replace", the video cards "Choose / Paste a link / Choose",
|
|
4
|
+
* the canvas's quick bar and its picker "Choose image": every caller wrote its own words. The kit owns them here, with no stylesheet,
|
|
5
|
+
* so a Polaris screen can use them without loading the editors' CSS (`@gemboss/ui/editor/media-words`); `@gemboss/ui/editor` re-exports
|
|
6
|
+
* them. The admin's every-media-card-speaks-the-kits-words.test.ts keeps a caller from writing them again.
|
|
7
|
+
*/
|
|
8
|
+
export type MediaGlyph = "image" | "video";
|
|
9
|
+
|
|
10
|
+
/** The chip that opens the address box: on a card while it is empty, a row of its ⋯ once it holds media (MediaCard `pasteLabel`). */
|
|
11
|
+
export const MEDIA_PASTE_LABEL = "Paste a URL";
|
|
12
|
+
|
|
13
|
+
/** A card's chip into the store's own media, beside the picture: the picture names what it is, so the chip is the verb. */
|
|
14
|
+
export function mediaPickLabel(glyph: MediaGlyph, holds: boolean): string {
|
|
15
|
+
return holds ? "Replace" : glyph === "video" ? "Select video" : "Select image";
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** The same action where nothing beside it shows the media (a menu row, a dialog's title, a toolbar button's name): it names it. */
|
|
19
|
+
export function mediaActionLabel(glyph: MediaGlyph, holds: boolean): string {
|
|
20
|
+
return `${holds ? "Replace" : "Select"} ${glyph}`;
|
|
21
|
+
}
|
package/src/editor-empty.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gemboss-ei-inp[data-empty]{color:var(--gemboss-text-muted,#686b71)}.gemboss-ei-inp[data-empty] option{color:initial}
|
|
1
|
+
.gemboss-ei-inp[data-empty]{color:var(--gemboss-text-muted,#686b71)}.gemboss-ei-inp[data-empty] option{color:initial}.ui-seg>[data-drawn]{outline:1px dashed var(--ui-text-muted);outline-offset:-3px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.gemboss-ei-frame{display:contents}.gemboss-ei-find{margin-bottom:8px}.gemboss-ei-bar{position:sticky;top:0;z-index:3;display:flex;align-items:stretch;gap:4px;min-height:36px;margin:0 0 8px;background:var(--gemboss-panel-bg,var(--gemboss-surface,#fff));border-bottom:1px solid var(--gemboss-divider-soft);box-shadow:calc(-1*var(--gemboss-ec-inset,16px)) 0 0 0 var(--gemboss-panel-bg,var(--gemboss-surface,#fff)),var(--gemboss-ec-inset,16px) 0 0 0 var(--gemboss-panel-bg,var(--gemboss-surface,#fff))}.gemboss-ei-index{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:stretch;gap:0;margin:0}.gemboss-ei-index-link{flex:none;min-height:36px;margin-bottom:-1px;padding:0 6px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font:inherit;font-size:12px;line-height:16px;color:var(--gemboss-text-muted);cursor:pointer;white-space:nowrap}@media (hover: hover){.gemboss-ei-index-link:hover{color:var(--gemboss-text)}}.gemboss-ei-index-link:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:-2px;border-radius:4px}.gemboss-ei-index-link[aria-current]{color:var(--gemboss-text);font-weight:600;border-bottom-color:var(--gemboss-text)}.gemboss-ei-bar-btn{align-self:center;display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:none;color:var(--gemboss-text-muted);cursor:pointer}@media (hover: hover){.gemboss-ei-bar-btn:hover{background:var(--gemboss-hover);color:var(--gemboss-text)}}.gemboss-ei-bar-btn:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:2px}.gemboss-ei-bar-find{flex:1;min-width:0;display:flex;align-items:center;gap:4px;padding:4px 0}.gemboss-ei-bar-find>.gemboss-ei-find{flex:1;min-width:0;margin:0}.gemboss-ei-bar:not([data-tabs]){border-bottom:0}.gemboss-ei-cluster{display:block;position:relative;height:calc(var(--gemboss-ei-gap-group,16px)*2 + 1px);margin:0}.gemboss-ei-cluster--first{height:0}.gemboss-ei-cluster-name{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.gemboss-ei-part{display:contents}.gemboss-ei-part>.gemboss-ei-grp:last-child{border-bottom:1px solid var(--gemboss-divider-soft)}.gemboss-ei-part:last-child>.gemboss-ei-grp:last-child{border-bottom:none}.gemboss-ei-part[hidden],.gemboss-ei-index[hidden],.gemboss-ei-cluster[hidden],.gemboss-ei-bar-find[hidden],.gemboss-ei-bar-btn[hidden]{display:none}.gemboss-ei-addhead{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:28px;padding:0;border:0;background:none;font:inherit;font-size:13px;line-height:20px;color:var(--gemboss-text-muted);cursor:pointer;text-align:left}@media (hover: hover){.gemboss-ei-addhead:hover{color:var(--gemboss-text)}}.gemboss-ei-addhead:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:2px;border-radius:4px}.gemboss-ei-addhead:disabled{cursor:default}.gemboss-ei-addplus{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;font-size:16px;line-height:1}.gemboss-ei-addline .gemboss-ei-addhead{width:calc(100% + 16px);margin-inline:-8px;padding-inline:8px;border-radius:8px}@media (hover: hover){.gemboss-ei-addline .gemboss-ei-addhead:hover:not(:disabled){background:var(--gemboss-hover)}}.gemboss-ei-addline .gemboss-ei-addhead:active:not(:disabled){background:var(--gemboss-active-bg)}.gemboss-ei-grp.gemboss-ei-addline{padding:4px 0}.gemboss-ei-addedhead{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:28px;font-size:13px;line-height:20px;font-weight:650;color:var(--gemboss-text)}.gemboss-ei-openhead{font-size:13px;line-height:20px;font-weight:650;color:var(--gemboss-text)}.gemboss-ei-headacts{display:flex;align-items:center;gap:4px}.gemboss-ei-addsign{display:grid;place-items:center;flex:none;width:24px;height:24px;padding:0;border:0;border-radius:8px;background:none;font:inherit;font-size:16px;font-weight:400;line-height:1;color:var(--gemboss-text-muted);cursor:pointer}@media (hover: hover){.gemboss-ei-addsign:hover{background:var(--gemboss-hover);color:var(--gemboss-text)}}.gemboss-ei-addsign:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:2px}.gemboss-ei-addsign:active:not(:disabled){background:var(--gemboss-active-bg)}.gemboss-ei-addsign:disabled{cursor:default;opacity:.5}@media (pointer: coarse),(max-width:47.9975em){.gemboss-ei-index-link{min-width:44px;min-height:44px}.gemboss-ei-bar-btn{width:44px;height:44px}.gemboss-ei-addhead,.gemboss-ei-addedhead{min-height:44px}.gemboss-ei-addsign{width:44px;height:44px}.gemboss-ei-grp.gemboss-ei-addline{padding:2px 0}}.gemboss-ei-grp[data-just-added]{border-radius:8px;animation:gemboss-ei-just-added 1.2s ease-out}@keyframes gemboss-ei-just-added{0%{background:color-mix(in srgb,var(--ui-focus,#5661f5) 9%,transparent);box-shadow:0 0 0 8px color-mix(in srgb,var(--ui-focus,#5661f5) 9%,transparent)}to{background:transparent;box-shadow:0 0 0 8px transparent}}@media (prefers-reduced-motion:reduce){.gemboss-ei-grp[data-just-added]{animation:none}}
|
|
1
|
+
.gemboss-ei-frame{display:contents}.gemboss-ei-find{margin-bottom:8px}.gemboss-ei-bar{position:sticky;top:0;z-index:3;display:flex;align-items:stretch;gap:4px;min-height:36px;margin:0 0 8px;background:var(--gemboss-panel-bg,var(--gemboss-surface,#fff));border-bottom:1px solid var(--gemboss-divider-soft);box-shadow:calc(-1*var(--gemboss-ec-inset,16px)) 0 0 0 var(--gemboss-panel-bg,var(--gemboss-surface,#fff)),var(--gemboss-ec-inset,16px) 0 0 0 var(--gemboss-panel-bg,var(--gemboss-surface,#fff))}.gemboss-ei-index{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:stretch;gap:0;margin:0}.gemboss-ei-index-link{flex:none;min-height:36px;margin-bottom:-1px;padding:0 6px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font:inherit;font-size:12px;line-height:16px;color:var(--gemboss-text-muted);cursor:pointer;white-space:nowrap}@media (hover: hover){.gemboss-ei-index-link:hover{color:var(--gemboss-text)}}.gemboss-ei-index-link:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:-2px;border-radius:4px}.gemboss-ei-index-link[aria-current]{color:var(--gemboss-text);font-weight:600;border-bottom-color:var(--gemboss-text)}.gemboss-ei-bar-btn{align-self:center;display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:none;color:var(--gemboss-text-muted);cursor:pointer}@media (hover: hover){.gemboss-ei-bar-btn:hover{background:var(--gemboss-hover);color:var(--gemboss-text)}}.gemboss-ei-bar-btn:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:2px}.gemboss-ei-bar-find{flex:1;min-width:0;display:flex;align-items:center;gap:4px;padding:4px 0}.gemboss-ei-bar-find>.gemboss-ei-find{flex:1;min-width:0;margin:0}.gemboss-ei-bar:not([data-tabs]){border-bottom:0}.gemboss-ei-cluster{display:block;position:relative;height:calc(var(--gemboss-ei-gap-group,16px)*2 + 1px);margin:0}.gemboss-ei-cluster--first{height:0}.gemboss-ei-cluster-name{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.gemboss-ei-part{display:contents}.gemboss-ei-part>.gemboss-ei-grp:last-child{border-bottom:1px solid var(--gemboss-divider-soft)}.gemboss-ei-part:last-child>.gemboss-ei-grp:last-child{border-bottom:none}.gemboss-ei-part[hidden],.gemboss-ei-index[hidden],.gemboss-ei-cluster[hidden],.gemboss-ei-bar-find[hidden],.gemboss-ei-bar-btn[hidden]{display:none}.gemboss-ei-addhead{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:28px;padding:0;border:0;background:none;font:inherit;font-size:13px;line-height:20px;color:var(--gemboss-text-muted);cursor:pointer;text-align:left}@media (hover: hover){.gemboss-ei-addhead:hover{color:var(--gemboss-text)}}.gemboss-ei-addhead:focus-visible,.gemboss-ei-headact:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:2px;border-radius:4px}.gemboss-ei-addhead:disabled{cursor:default}.gemboss-ei-addplus{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;font-size:16px;line-height:1}.gemboss-ei-addline .gemboss-ei-addhead{width:calc(100% + 16px);margin-inline:-8px;padding-inline:8px;border-radius:8px}@media (hover: hover){.gemboss-ei-addline .gemboss-ei-addhead:hover:not(:disabled){background:var(--gemboss-hover)}}.gemboss-ei-addline .gemboss-ei-addhead:active:not(:disabled){background:var(--gemboss-active-bg)}.gemboss-ei-grp.gemboss-ei-addline{padding:4px 0}.gemboss-ei-addedhead,.gemboss-ei-openhead:has(>.gemboss-ei-headacts){display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:28px;font-size:13px;line-height:20px;font-weight:650;color:var(--gemboss-text)}.gemboss-ei-openhead{font-size:13px;line-height:20px;font-weight:650;color:var(--gemboss-text)}.gemboss-ei-headacts{display:flex;align-items:center;gap:4px}.gemboss-ei-headact{display:inline-flex;align-items:center;min-height:24px;padding:0 4px;border:0;background:none;font:inherit;font-size:12px;font-weight:500;color:var(--gemboss-accent-strong);text-decoration:none;cursor:pointer;white-space:nowrap}.gemboss-ei-addsign{display:grid;place-items:center;flex:none;width:24px;height:24px;padding:0;border:0;border-radius:8px;background:none;font:inherit;font-size:16px;font-weight:400;line-height:1;color:var(--gemboss-text-muted);cursor:pointer}@media (hover: hover){.gemboss-ei-addsign:hover{background:var(--gemboss-hover);color:var(--gemboss-text)}}.gemboss-ei-addsign:focus-visible{outline:2px solid var(--ui-focus,#5661f5);outline-offset:2px}.gemboss-ei-addsign:active:not(:disabled){background:var(--gemboss-active-bg)}.gemboss-ei-addsign:disabled{cursor:default;opacity:.5}@media (pointer: coarse),(max-width:47.9975em){.gemboss-ei-index-link{min-width:44px;min-height:44px}.gemboss-ei-bar-btn{width:44px;height:44px}.gemboss-ei-addhead,.gemboss-ei-addedhead{min-height:44px}.gemboss-ei-addsign{width:44px;height:44px}.gemboss-ei-grp.gemboss-ei-addline{padding:2px 0}.gemboss-ei-headact{min-height:44px}}.gemboss-ei-grp[data-just-added]{border-radius:8px;animation:gemboss-ei-just-added 1.2s ease-out}@keyframes gemboss-ei-just-added{0%{background:color-mix(in srgb,var(--ui-focus,#5661f5) 9%,transparent);box-shadow:0 0 0 8px color-mix(in srgb,var(--ui-focus,#5661f5) 9%,transparent)}to{background:transparent;box-shadow:0 0 0 8px transparent}}@media (prefers-reduced-motion:reduce){.gemboss-ei-grp[data-just-added]{animation:none}}
|
package/src/editor-media.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gemboss-ei-img-thumb[data-thumb=empty]{border-style:dashed;border-color:var(--gemboss-field-line)}.gemboss-ei-img-thumb[data-thumb=empty],.gemboss-ei-img-thumb[data-thumb=held],.gemboss-ei-img-thumb[data-thumb=broken],.gemboss-ei-img-thumb[data-thumb=busy]{background-color:var(--gemboss-hover)}.gemboss-ei-img-thumb[data-thumb=image]{background:var(--gemboss-thumb) center/cover no-repeat,repeating-conic-gradient(var(--gemboss-divider-soft) 0 25%,var(--gemboss-surface) 0 50%) 0 0/12px 12px}.gemboss-ei-img-spin{width:16px;height:16px;border:2px solid var(--gemboss-divider-soft);border-top-color:var(--gemboss-primary);border-radius:50%;box-shadow:0 0 0 4px var(--gemboss-surface);animation:gemboss-ei-img-spin .7s linear infinite}@keyframes gemboss-ei-img-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.gemboss-ei-img-spin{animation:none}}.gemboss-ei-img-thumb{--gemboss-thumb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Ccircle cx='9' cy='9.5' r='1.5'/%3E%3Cpath d='m20 15-4.5-4.5L6 19.5'/%3E%3C/svg%3E")}.gemboss-ei-img-thumb[data-glyph=video]{--gemboss-thumb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='13' height='13' rx='2'/%3E%3Cpath d='m16 10 5-3v10l-5-3z'/%3E%3C/svg%3E")}.gemboss-ei-img-thumb[data-thumb=broken]{--gemboss-thumb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Ccircle cx='9' cy='9.5' r='1.5'/%3E%3Cpath d='m20 15-4.5-4.5L6 19.5'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E")}.gemboss-ei-img-thumb[data-thumb=empty]:before,.gemboss-ei-img-thumb[data-thumb=held]:before,.gemboss-ei-img-thumb[data-thumb=broken]:before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:var(--gemboss-thumb-glyph) center/contain no-repeat;mask:var(--gemboss-thumb-glyph) center/contain no-repeat}
|
|
1
|
+
.gemboss-ei-img-thumb[data-thumb=empty]{border-style:dashed;border-color:var(--gemboss-field-line)}.gemboss-ei-img-thumb[data-thumb=empty],.gemboss-ei-img-thumb[data-thumb=held],.gemboss-ei-img-thumb[data-thumb=broken],.gemboss-ei-img-thumb[data-thumb=busy]{background-color:var(--gemboss-hover)}.gemboss-ei-img-thumb[data-thumb=image]{background:var(--gemboss-thumb) center/cover no-repeat,repeating-conic-gradient(var(--gemboss-divider-soft) 0 25%,var(--gemboss-surface) 0 50%) 0 0/12px 12px}.gemboss-ei-img-spin{width:16px;height:16px;border:2px solid var(--gemboss-divider-soft);border-top-color:var(--gemboss-primary);border-radius:50%;box-shadow:0 0 0 4px var(--gemboss-surface);animation:gemboss-ei-img-spin .7s linear infinite}@keyframes gemboss-ei-img-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.gemboss-ei-img-spin{animation:none}}.gemboss-ei-img-thumb{--gemboss-thumb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Ccircle cx='9' cy='9.5' r='1.5'/%3E%3Cpath d='m20 15-4.5-4.5L6 19.5'/%3E%3C/svg%3E")}.gemboss-ei-img-thumb[data-glyph=video]{--gemboss-thumb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='13' height='13' rx='2'/%3E%3Cpath d='m16 10 5-3v10l-5-3z'/%3E%3C/svg%3E")}.gemboss-ei-img-thumb[data-thumb=broken]{--gemboss-thumb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Ccircle cx='9' cy='9.5' r='1.5'/%3E%3Cpath d='m20 15-4.5-4.5L6 19.5'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E")}.gemboss-ei-img-thumb[data-thumb=broken][data-glyph=video]{--gemboss-thumb-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='13' height='13' rx='2'/%3E%3Cpath d='m16 10 5-3v10l-5-3z'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E")}.gemboss-ei-img-thumb[data-thumb=empty]:before,.gemboss-ei-img-thumb[data-thumb=held]:before,.gemboss-ei-img-thumb[data-thumb=broken]:before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:var(--gemboss-thumb-glyph) center/contain no-repeat;mask:var(--gemboss-thumb-glyph) center/contain no-repeat}
|