@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/assistant/host.tsx
CHANGED
|
@@ -16,6 +16,7 @@ import "../assistant.css"; // its own stylesheet travels with it (0.23.0): a sur
|
|
|
16
16
|
// The left panel, ⋯'s places and the chat button (12/11/2026): an entry of their own, since assistant.css is in the frozen
|
|
17
17
|
// compatibility bundle (gemboss-ui.css, at its ceiling). After assistant.css, so its rules come later in the cascade.
|
|
18
18
|
import "../assistant-places.css";
|
|
19
|
+
import "../assistant-plus.css"; // the Plus look of the panel (13/11/2026, `plus`): its own entry, after the places so it restates their tokens
|
|
19
20
|
// The kit menu's row icon slot (`.ui-menu__icon`, menu-extras.css): ⋯'s places wear the marks the header's switcher wore (12/11/2026).
|
|
20
21
|
import "../menu-extras.css";
|
|
21
22
|
import React, { Children, createContext, isValidElement, useCallback, useContext, useEffect, useLayoutEffect, useRef, useState, type ReactNode } from "react";
|
|
@@ -258,7 +259,7 @@ function useSideFits(): boolean {
|
|
|
258
259
|
export function AssistantHost({
|
|
259
260
|
title, labels, onNewChat, onClearHistory, canClearHistory = true, menuItems, onExpand, onShrink, fullActions, secondTab,
|
|
260
261
|
view = "primary", onViewChange, miniHint, onButtonPress, allowSide = true, allowLeft = false, leftOffReason, waiting = false, failed = false, heading,
|
|
261
|
-
hideTabs = false, overlay, children,
|
|
262
|
+
hideTabs = false, overlay, plus = false, children,
|
|
262
263
|
}: {
|
|
263
264
|
/**
|
|
264
265
|
* What the header says in place of the title, when the surface has more to say than a name: the admin's "← list · who you
|
|
@@ -302,8 +303,10 @@ export function AssistantHost({
|
|
|
302
303
|
menuItems?: ReactNode;
|
|
303
304
|
/** Popup → full screen. The surface decides what that means (the admin navigates to its page). */
|
|
304
305
|
onExpand: () => void;
|
|
305
|
-
/** Full screen → popup, e.g. open the dock and go back to the screen they came from.
|
|
306
|
-
|
|
306
|
+
/** Full screen → popup, e.g. open the dock and go back to the screen they came from. Absent: full screen is the only place the chat has
|
|
307
|
+
* here (the admin on a phone or a tablet, where every screen is the chat: Gems/CLAUDE.md §16), so there is no "Shrink to popup" button
|
|
308
|
+
* and no such row in the small screen's ⋯ (which is then not drawn at all when nothing else is in it). */
|
|
309
|
+
onShrink?: () => void;
|
|
307
310
|
/** Extra buttons in the full-screen chrome, before "Shrink to popup". Give them `gb-dock-shrink`. */
|
|
308
311
|
fullActions?: ReactNode;
|
|
309
312
|
secondTab?: AssistantSecondTab;
|
|
@@ -337,6 +340,12 @@ export function AssistantHost({
|
|
|
337
340
|
* the panel is not drawn meanwhile (the popup stands in) and comes back when the reason goes.
|
|
338
341
|
*/
|
|
339
342
|
leftOffReason?: string;
|
|
343
|
+
/**
|
|
344
|
+
* The store's plan has Gem Plus (assistant/plus.tsx): the panel wears the Plus look, obsidian and gold (assistant-plus.css), always.
|
|
345
|
+
* One look for the plan, the white panel for every other (14/11/2026, Chris: "merge cái màu đen với cái màu vàng làm một… và phân
|
|
346
|
+
* biệt với cái màu trắng (chưa upgrade)"; the ivory `gold` panel and the Research switch are gone). The surface decides; the kit draws.
|
|
347
|
+
*/
|
|
348
|
+
plus?: boolean;
|
|
340
349
|
children?: ReactNode;
|
|
341
350
|
}) {
|
|
342
351
|
const dock = useAssistant();
|
|
@@ -575,7 +584,7 @@ export function AssistantHost({
|
|
|
575
584
|
<>
|
|
576
585
|
<div
|
|
577
586
|
ref={shellRef}
|
|
578
|
-
className={`gb-dock ${MODE_CLASS[mode]}${win ? win.cls : ""}${dragging ? " gb-dock-dragging" : ""}`}
|
|
587
|
+
className={`gb-dock ${MODE_CLASS[mode]}${win ? win.cls : ""}${dragging ? " gb-dock-dragging" : ""}${plus ? " gb-dock--plus" : ""}`}
|
|
579
588
|
style={win ? win.style : isDock ? { height: dock.dockHeight, right: dock.dockOffsetRight }
|
|
580
589
|
: isSide || isLeft ? ({ "--gb-dock-side-w": `${dock.sideWidth}px` } as React.CSSProperties) : undefined}
|
|
581
590
|
role={mode === "hidden" ? undefined : "region"}
|
|
@@ -587,20 +596,25 @@ export function AssistantHost({
|
|
|
587
596
|
{compactChrome ? <>
|
|
588
597
|
{/* Small screen: ONE ⋯ holds the surface's buttons (labels shown), its rows and the way back (COMPACT_CHROME_QUERY). */}
|
|
589
598
|
{actions.filter(keepsOut)}
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
{
|
|
593
|
-
|
|
594
|
-
|
|
599
|
+
{/* No way back (`onShrink` absent) and nothing else to hold: no ⋯ at all, never an empty menu. */}
|
|
600
|
+
{onShrink || surfaceRows || actions.some((n) => !keepsOut(n)) ? (
|
|
601
|
+
<HostMenu label={L.more} trigger="gb-dock-shrink gb-dock-menu-pill">
|
|
602
|
+
<div className="gb-dock-menu-actions" onClick={closeMenuOnButton}>{actions.filter((n) => !keepsOut(n))}</div>
|
|
603
|
+
{surfaceRows}
|
|
604
|
+
{onShrink ? <AssistantMenuItem onClick={onShrink}>{shrinkLabel}</AssistantMenuItem> : null}
|
|
605
|
+
</HostMenu>
|
|
606
|
+
) : null}
|
|
595
607
|
</> : <>
|
|
596
608
|
{fullActions}
|
|
597
609
|
{surfaceRows ? <HostMenu label={L.more} trigger="gb-dock-shrink gb-dock-menu-pill">{surfaceRows}</HostMenu> : null}
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
610
|
+
{onShrink ? (
|
|
611
|
+
<button type="button" className="gb-dock-shrink" onClick={onShrink}>
|
|
612
|
+
{/* Two arrows pulled INTO the centre. The first attempt drew two corner brackets, which at 16px
|
|
613
|
+
reads as a plus sign — the opposite of "make this smaller". */}
|
|
614
|
+
<Icon name="shrink" size={16} />
|
|
615
|
+
<span>{shrinkLabel}</span>
|
|
616
|
+
</button>
|
|
617
|
+
) : null}
|
|
604
618
|
</>}
|
|
605
619
|
</div>
|
|
606
620
|
) : null}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* QUESTIONS TO TRY, ALWAYS ONE PRESS AWAY (13/11/2026, Chris: "có một button suggest cho tôi 5 câu hỏi khác, kiểu luôn có button đó để
|
|
5
|
+
* họ khám phá được nhiều câu hỏi và nhiều thông tin hơn"). On a phone a seller's admin is the chat, so what they can ask is how they
|
|
6
|
+
* find what is there; the starters show only while a chat is empty.
|
|
7
|
+
*
|
|
8
|
+
* ChatIdeasChip "Suggest questions", at the end of the conversation (under the last answer, or the starters). A press opens the
|
|
9
|
+
* tray in its place. Not in the composer's strip: on a phone it is full ("+", ✦, Research, the microphone and send
|
|
10
|
+
* take 299 of the box's 332px at 390; measured 13/11/2026, the chip there was cut under the microphone).
|
|
11
|
+
* ChatIdeasTray in the chip's place: what to try, as the chat's chips (a press sends the question), "5 more" for the next ones
|
|
12
|
+
* and a close. The surface owns the questions (its bank, what it has shown) and what a press sends.
|
|
13
|
+
*
|
|
14
|
+
* Both 44px under a finger (the chips are the chat's own, 44px always). Words are English by default and taken as props.
|
|
15
|
+
* Styles: chat-composer-menus.css, the composer's sheet, so no surface that draws a ChatComposer loads anything new for them.
|
|
16
|
+
*/
|
|
17
|
+
import "../chat-composer-menus.css";
|
|
18
|
+
import "../chat.css";
|
|
19
|
+
import React from "react";
|
|
20
|
+
import { Icon } from "../icons";
|
|
21
|
+
|
|
22
|
+
export interface ChatIdeasLabels {
|
|
23
|
+
/** The chip's word. */
|
|
24
|
+
chip: string;
|
|
25
|
+
/** The chip's tooltip and accessible description. */
|
|
26
|
+
chipTitle: string;
|
|
27
|
+
/** The tray's heading. */
|
|
28
|
+
heading: string;
|
|
29
|
+
/** The button for the next ones. */
|
|
30
|
+
more: string;
|
|
31
|
+
/** The close button's name. */
|
|
32
|
+
close: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const CHAT_IDEAS_LABELS: ChatIdeasLabels = {
|
|
36
|
+
chip: "Suggest questions",
|
|
37
|
+
chipTitle: "Suggest questions to ask Gem",
|
|
38
|
+
heading: "Try asking",
|
|
39
|
+
more: "5 more",
|
|
40
|
+
close: "Close ideas",
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export function ChatIdeasChip({ open, onPress, labels, disabled = false, controls, id }: {
|
|
44
|
+
open: boolean;
|
|
45
|
+
/** Its id, so the surface can hand focus back to it when the tray closes. */
|
|
46
|
+
id?: string;
|
|
47
|
+
onPress: () => void;
|
|
48
|
+
labels?: Partial<ChatIdeasLabels>;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
/** The tray's id, when it is on the page. */
|
|
51
|
+
controls?: string;
|
|
52
|
+
}) {
|
|
53
|
+
const L = { ...CHAT_IDEAS_LABELS, ...labels };
|
|
54
|
+
return (
|
|
55
|
+
<button type="button" id={id} className="gb-chat-ideas" aria-expanded={open} aria-controls={open ? controls : undefined}
|
|
56
|
+
title={L.chipTitle} disabled={disabled} onClick={onPress}>
|
|
57
|
+
<Icon name="chat" size={14} />
|
|
58
|
+
<span>{L.chip}</span>
|
|
59
|
+
</button>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ChatIdeasTray({ questions, onAsk, onMore, onClose, labels, id }: {
|
|
64
|
+
questions: readonly string[];
|
|
65
|
+
/** A question pressed: the surface sends it (and closes the tray, if it wants). */
|
|
66
|
+
onAsk: (question: string) => void;
|
|
67
|
+
/** The next ones. Left out: no "more" button. */
|
|
68
|
+
onMore?: () => void;
|
|
69
|
+
onClose: () => void;
|
|
70
|
+
labels?: Partial<ChatIdeasLabels>;
|
|
71
|
+
id?: string;
|
|
72
|
+
}) {
|
|
73
|
+
const L = { ...CHAT_IDEAS_LABELS, ...labels };
|
|
74
|
+
return (
|
|
75
|
+
<section className="gb-chat-ideas-tray" id={id} aria-label={L.heading}>
|
|
76
|
+
<div className="gb-chat-ideas-head">
|
|
77
|
+
<span>{L.heading}</span>
|
|
78
|
+
<button type="button" className="gb-chat-ideas-close" aria-label={L.close} title={L.close} onClick={onClose}>
|
|
79
|
+
<Icon name="close" size={16} />
|
|
80
|
+
</button>
|
|
81
|
+
</div>
|
|
82
|
+
<div className="gemboss-ec-chips">
|
|
83
|
+
{questions.map((q) => (
|
|
84
|
+
<button key={q} type="button" className="gemboss-ec-chip" onClick={() => onAsk(q)}>{q}</button>
|
|
85
|
+
))}
|
|
86
|
+
</div>
|
|
87
|
+
{onMore ? <button type="button" className="gb-chat-ideas-more" onClick={onMore}>{L.more}</button> : null}
|
|
88
|
+
</section>
|
|
89
|
+
);
|
|
90
|
+
}
|
package/src/assistant/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { BRIDGE_TONE, BridgeNotice, ENGINE_PICKER_EN, EnginePicker, bridgeStateW
|
|
|
11
11
|
// (`onOpenSettings`), the section draws it.
|
|
12
12
|
export { EngineSettings, EngineSettingsSection, type EngineSettingsProps } from "./engine-settings";
|
|
13
13
|
// 0.29.0: the chat BODY as components (the surface hands in messages and actions), its markdown, and each engine's mark.
|
|
14
|
-
export { AssistantChat, ChatAttach, ChatBubble, ChatComposer, ChatError, ChatLabelsProvider, ChatMarkdown, ChatMessage, ChatMeta, ChatNote, ChatPending, ChatStarters, ChatStepMark, chatStepMarkIcon, ChatSteps, ChatThread, CHAT_EN, PaperclipIcon, firstBlank, selectBlank, useComposerDensity, useFullChromeRoom, type AssistantChatProps, type ChatComposerProps, type ChatComposerVoice, type ChatFix, type ChatLabels, type ChatMarkdownProps, type ChatMessageData, type ChatStarter, type ChatStep, type ChatStepMarkKind, type ComposerDensity } from "./chat";
|
|
14
|
+
export { AssistantChat, ChatAttach, ChatBubble, ChatComposer, ChatError, ChatLabelsProvider, ChatMarkdown, ChatMessage, ChatMeta, ChatNote, ChatPending, ChatStarters, ChatStepMark, chatStepMarkIcon, ChatSteps, ChatThread, CHAT_EN, PaperclipIcon, firstBlank, selectBlank, useComposerDensity, useFullChromeRoom, type AssistantChatProps, type ChatComposerProps, type ChatComposerVoice, type ChatFix, type ChatLabels, type ChatMarkdownProps, type ChatMessageData, type ChatStarter, type ChatStep, type ChatStepMarkKind, type ComposerDensity , shortcutMatches, type ChatShortcut } from "./chat";
|
|
15
15
|
// The composer's "+" and ✦ menus (0.70.0): what a host hands ChatComposer's `add` and `ai`, and the clipboard reader "+" uses.
|
|
16
16
|
export { aiButtonName, canReadClipboardImages, PASTE_EMPTY, PASTE_REFUSED, readClipboardImages, type ChatAddIcon, type ChatAddItem, type ChatAiChoice, type ChatComposerAdd, type ChatComposerAi } from "./composer-menus";
|
|
17
17
|
// Files in the chat (11/11/2026, canvas board ChatKit states 2–11): what is attached and its uploads, the panel as a drop target, the
|
|
@@ -20,6 +20,13 @@ export { attachmentProblem, ChatAttachments, ChatDropZone, ChatImages, ChatLight
|
|
|
20
20
|
// What can appear in the stream beside words (11/11/2026, canvas board ChatKit): the card a turn's result, job or change is drawn on,
|
|
21
21
|
// the choices (chips or a poll), the question waiting over the box, the words a turn rewrote, a page's bars, buttons that go
|
|
22
22
|
// elsewhere, the rating row. Its own module and stylesheet (`@gemboss/ui/chat-cards.css`).
|
|
23
|
+
// Gem Plus's switch in the composer (13/11/2026): `ChatPlusChip`; the panel's look is AssistantHost `plus`. Its own entry, assistant-plus.css.
|
|
24
|
+
export { ChatPlusChip, CHAT_PLUS_LABELS, type ChatPlusLabels, type ChatPlusState } from "./plus";
|
|
25
|
+
// Questions to try (13/11/2026): "Suggest questions" at the end of the conversation (not the composer's strip, full at 390), and the
|
|
26
|
+
// tray in its place. The surface owns the questions.
|
|
27
|
+
export { ChatIdeasChip, ChatIdeasTray, CHAT_IDEAS_LABELS, type ChatIdeasLabels } from "./ideas";
|
|
28
|
+
export { ChatFigures, CHAT_FIGURES_LABELS, figurePct, type ChatFigure, type ChatFigureRow, type ChatFiguresLabels } from "./figures";
|
|
29
|
+
export { ChatPageGallery, CHAT_GALLERY_LABELS, type ChatGalleryLabels, type ChatGalleryPage } from "./gallery";
|
|
23
30
|
export { ChatCard, ChatCardButton, ChatChoices, ChatCta, ChatDecide, ChatFeedback, ChatPageBands, ChatTextChanges, ChatThing, type ChatCardProps, type ChatCardTag, type ChatCardTone, type ChatChoiceItem, type ChatChoicesProps, type ChatCtaAction, type ChatPageBand, type ChatRating, type ChatTextChange } from "./chat-cards";
|
|
24
31
|
// Speaking instead of typing (B15-voice, 08/11/2026): the hook ChatComposer's `voice` runs on, for a box that is not a chat. Also
|
|
25
32
|
// its own entry, `@gemboss/ui/assistant/dictation` (no CSS on the way).
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* GEM PLUS: the plan's chip in the composer (13/11/2026, Gem Plus boards, artifact DmPeQEJDAZXdiTxzmFv5UL). PLUS IS THE PLAN, NOT A MODE
|
|
5
|
+
* (14/11/2026, Chris: "giao diện vàng là được rồi còn ko cần phải bật tắt research mode, đổi cái label research đó thành Plus là được
|
|
6
|
+
* rồi, bấm vào nó thì ra cái popup nói rõ được sự khác biệt giữa bản plus và bản thường… với tài khoản thường thì nó vẫn có chữ plus ở
|
|
7
|
+
* đó nhưng không được bật và bấm vào nó vẫn ra popup nhưng kèm button upgrade"): it switches nothing.
|
|
8
|
+
*
|
|
9
|
+
* A chip of the composer's toolbar: on the right, in ChatComposer `tools`, beside the microphone and send (Chris 13/11/2026: "nó nên
|
|
10
|
+
* nằm về bên phải cạnh nút enter"). Two states, the surface's call:
|
|
11
|
+
* locked the plan does not have Gem Plus: a hairline chip with a lock; a press opens what Plus is, with the way up;
|
|
12
|
+
* on the plan has it: a gold chip; a press opens what Plus adds over the regular Gem (the panel wears the Plus look, AssistantHost
|
|
13
|
+
* `plus`, all the time).
|
|
14
|
+
* The chip only draws and reports the press: what Plus does, and whether the store has it, are the surface's (the admin's gem-plus
|
|
15
|
+
* gate). Its own ENTRY, assistant-plus.css (scripts/parts.mjs), with the panel's look (AssistantHost imports it too).
|
|
16
|
+
*/
|
|
17
|
+
import "../assistant-plus.css";
|
|
18
|
+
import React from "react";
|
|
19
|
+
import { Icon } from "../icons";
|
|
20
|
+
|
|
21
|
+
export type ChatPlusState = "locked" | "on";
|
|
22
|
+
|
|
23
|
+
export interface ChatPlusLabels {
|
|
24
|
+
/** The chip's word. */
|
|
25
|
+
name: string;
|
|
26
|
+
/** Its title (the hover line, and the screen reader's description) in each state. */
|
|
27
|
+
locked: string;
|
|
28
|
+
on: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const CHAT_PLUS_LABELS: ChatPlusLabels = {
|
|
32
|
+
name: "Plus",
|
|
33
|
+
locked: "Gem Plus: answers about your market, with numbers and real pages. See what it adds",
|
|
34
|
+
on: "Gem Plus is on: see what it adds",
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export function ChatPlusChip({ state, onPress, labels, disabled = false }: {
|
|
38
|
+
state: ChatPlusState;
|
|
39
|
+
/** Open what Plus is: with the way up while locked, what it adds while on. Nothing switches. */
|
|
40
|
+
onPress: () => void;
|
|
41
|
+
labels?: Partial<ChatPlusLabels>;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
}) {
|
|
44
|
+
const L = { ...CHAT_PLUS_LABELS, ...labels };
|
|
45
|
+
return (
|
|
46
|
+
<button
|
|
47
|
+
type="button"
|
|
48
|
+
className="gb-chat-plus"
|
|
49
|
+
data-state={state}
|
|
50
|
+
// A door to a dialog in both states: it toggles nothing.
|
|
51
|
+
aria-haspopup="dialog"
|
|
52
|
+
title={L[state]}
|
|
53
|
+
disabled={disabled}
|
|
54
|
+
onClick={onPress}
|
|
55
|
+
>
|
|
56
|
+
<Icon name="sparkle" size={14} />
|
|
57
|
+
<span>{L.name}</span>
|
|
58
|
+
{state === "locked" ? <Icon name="lock" size={12} className="gb-chat-plus-lock" /> : null}
|
|
59
|
+
</button>
|
|
60
|
+
);
|
|
61
|
+
}
|
package/src/assistant-chat.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gb-chat{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;background:var(--gemboss-surface, #fff)}.gemboss-assistant-layout:not(.is-dock) .gb-chat{background:transparent}.gb-chat>.gemboss-ec-scroll{flex:1 1 auto}.gb-dock:not(.gb-dock-full) .gb-chat-head{display:none}.gb-chat-head{flex:none;box-sizing:border-box;justify-content:center}.gb-chat[data-chrome]>.gb-chat-head{padding-right:var(--gb-chat-chrome-w);min-height:var(--gb-chat-chrome-h)}.gb-chat[data-chrome]:not(:has(>.gb-chat-head))>.gemboss-ec-scroll{padding-top:var(--gb-chat-chrome-h)}.gemboss-ec-starter.gb-chat-starter{white-space:normal;border-radius:12px;text-align:left;overflow-wrap:anywhere}.gb-chat-starter-hint{display:block;margin-bottom:4px;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gemboss-ec-starters.gb-chat-starters-cards{flex-direction:column;flex-wrap:nowrap;row-gap:8px}.gb-chat-starters-cards .gb-chat-starter{display:flex;align-items:center;gap:12px;padding:12px 16px}.gb-chat-starter-icon{flex:none;width:32px;height:32px;border-radius:var(--gemboss-radius-md, 8px);display:grid;place-items:center;background:var(--gemboss-accent-soft, #eef0fe);color:var(--gemboss-accent, #5661f5)}.gb-chat-starter-icon svg{width:20px;height:20px;fill:currentColor}.gb-chat-starter-body{display:flex;flex-direction:column;gap:2px;min-width:0}.gb-chat-starter-label{font-weight:600}.gb-chat-starter-sub{color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gb-chat-label{margin:0;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gb-chat-target{color:var(--gemboss-text-muted)}.gb-chat-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gb-chat-copy{flex:none}.gb-chat-note{margin:0;align-self:center;text-align:center;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gb-chat-notice{margin:0}.gb-chat-error{display:grid;gap:8px;margin:0;overflow-wrap:anywhere}.gb-chat-cmd{display:block;padding:6px 8px;border-radius:8px;background:#0000000d;color:var(--gemboss-text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:16px;overflow-wrap:anywhere;user-select:all}.gb-chat-original>summary{cursor:pointer;min-height:24px;display:flex;align-items:center}.gemboss-ec-input .gemboss-ec-attach-btn{flex:0 0 auto;width:28px;height:28px;border-radius:50%;padding:0;display:inline-flex;align-items:center;justify-content:center;border:0;background-color:transparent;color:var(--gemboss-text-muted);cursor:pointer}@media (hover: hover){.gemboss-ec-input .gemboss-ec-attach-btn:hover:not(:disabled){background-color:var(--gemboss-hover, rgba(0, 0, 0, .05));color:var(--gemboss-text)}}.gemboss-ec-input .gemboss-ec-attach-btn:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-input .gemboss-ec-attach-btn:disabled{opacity:.5;cursor:default}.gemboss-ec-input .gemboss-ec-attach-btn svg{width:16px;height:16px}@media (pointer: coarse),(max-width: 47.9975em){.gb-chat-original>summary{min-height:44px}.gemboss-ec-input .gemboss-ec-attach-btn{width:44px;height:44px}
|
|
1
|
+
.gb-chat{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;background:var(--gemboss-surface, #fff)}.gemboss-assistant-layout:not(.is-dock) .gb-chat{background:transparent}.gb-chat>.gemboss-ec-scroll{flex:1 1 auto}.gb-dock:not(.gb-dock-full) .gb-chat-head{display:none}.gb-chat-head{flex:none;box-sizing:border-box;justify-content:center}.gb-chat[data-chrome]>.gb-chat-head{padding-right:var(--gb-chat-chrome-w);min-height:var(--gb-chat-chrome-h)}.gb-chat[data-chrome]:not(:has(>.gb-chat-head))>.gemboss-ec-scroll{padding-top:var(--gb-chat-chrome-h)}.gemboss-ec-starter.gb-chat-starter{white-space:normal;border-radius:12px;text-align:left;overflow-wrap:anywhere}.gb-chat-starter-hint{display:block;margin-bottom:4px;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gemboss-ec-starters.gb-chat-starters-cards{flex-direction:column;flex-wrap:nowrap;row-gap:8px}.gb-chat-starters-cards .gb-chat-starter{display:flex;align-items:center;gap:12px;padding:12px 16px}.gb-chat-starter-icon{flex:none;width:32px;height:32px;border-radius:var(--gemboss-radius-md, 8px);display:grid;place-items:center;background:var(--gemboss-accent-soft, #eef0fe);color:var(--gemboss-accent, #5661f5)}.gb-chat-starter-icon svg{width:20px;height:20px;fill:currentColor}.gb-chat-starter-body{display:flex;flex-direction:column;gap:2px;min-width:0}.gb-chat-starter-label{font-weight:600}.gb-chat-starter-sub{color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gb-chat-label{margin:0;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gb-chat-target{color:var(--gemboss-text-muted)}.gb-chat-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gb-chat-copy{flex:none}.gb-chat-note{margin:0;align-self:center;text-align:center;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption, 12px)}.gb-chat-notice{margin:0}.gb-chat-error{display:grid;gap:8px;margin:0;overflow-wrap:anywhere}.gb-chat-cmd{display:block;padding:6px 8px;border-radius:8px;background:#0000000d;color:var(--gemboss-text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:16px;overflow-wrap:anywhere;user-select:all}.gb-chat-original>summary{cursor:pointer;min-height:24px;display:flex;align-items:center}.gemboss-ec-input .gemboss-ec-attach-btn{flex:0 0 auto;width:28px;height:28px;border-radius:50%;padding:0;display:inline-flex;align-items:center;justify-content:center;border:0;background-color:transparent;color:var(--gemboss-text-muted);cursor:pointer}@media (hover: hover){.gemboss-ec-input .gemboss-ec-attach-btn:hover:not(:disabled){background-color:var(--gemboss-hover, rgba(0, 0, 0, .05));color:var(--gemboss-text)}}.gemboss-ec-input .gemboss-ec-attach-btn:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-input .gemboss-ec-attach-btn:disabled{opacity:.5;cursor:default}.gemboss-ec-input .gemboss-ec-attach-btn svg{width:16px;height:16px}@media (pointer: coarse),(max-width: 47.9975em){.gb-chat-original>summary{min-height:44px}.gemboss-ec-input .gemboss-ec-attach-btn{min-width:44px;min-height:44px}}.gemboss-ec-input[data-rows="1"]>.gemboss-ec-toolbar{display:contents}.gemboss-ec-input[data-rows="1"]>textarea{flex:1 1 0;order:2}.gemboss-ec-input[data-rows="1"] .gemboss-ec-toolbar-lead{flex:none;order:1}.gemboss-ec-input[data-rows="1"] .gemboss-ec-toolbar>:not(.gemboss-ec-toolbar-lead){order:3}.gemboss-ec-input[data-rows="1"]>textarea~:not(.gemboss-ec-toolbar){order:4}.gemboss-ec-input[data-rows="1"]>textarea::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:where(.gemboss-ec-pending-star){display:inline-block;width:10px;height:10px;border-radius:50%;background:currentColor}.gemboss-narr-row.thinking .gemboss-narr-dot{margin-top:2px}@supports not (color: color-mix(in srgb,currentColor 14%,transparent)){.gemboss-ec-msg .gemboss-ec-bubble.gemboss-ec-bubble{--gemboss-ec-md-line: #80808052;--gemboss-ec-md-fill: #80808024}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gb-chat-figures{display:grid;gap:var(--ui-space-4, 16px);margin:var(--ui-space-2, 8px) 0;padding:var(--ui-space-3, 12px);border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text)}.gb-chat-figures__head{margin:0;font-size:var(--ui-fs-body, 13px);font-weight:600}.gb-chat-figure{display:grid;gap:var(--ui-space-2, 8px);margin:0;min-width:0}.gb-chat-figure__cap{display:grid;gap:2px}.gb-chat-figure__title{font-size:var(--ui-fs-body, 13px);font-weight:600}.gb-chat-figures__source{margin:0}.gb-chat-gallery{display:grid;gap:var(--ui-space-3, 12px);margin:var(--ui-space-2, 8px) 0;padding:var(--ui-space-3, 12px);border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface);color:var(--ui-text)}.gb-chat-gallery__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-space-3, 12px);margin:0;padding:0;list-style:none}.gb-chat-gallery__card{display:grid;gap:4px;align-content:start;min-width:0}.gb-chat-gallery__thumb{display:block;width:100%;aspect-ratio:4 / 5;object-fit:cover;object-position:top;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-2)}.gb-chat-gallery__label{font-size:var(--ui-fs-body, 13px);font-weight:600}.gb-chat-gallery__meta{overflow-wrap:anywhere}.gb-chat-gallery__use{justify-self:start;margin-top:4px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gb-chat-plus{display:inline-flex;align-items:center;gap:4px;flex:none;box-sizing:border-box;height:28px;min-height:28px;padding:0 10px 0 8px;border:0;border-radius:999px;box-shadow:inset 0 0 0 1px var(--gemboss-divider);background:var(--gemboss-surface, #fff);color:var(--gemboss-text-muted);font:inherit;font-size:var(--gemboss-fs-caption, 12px);font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;transition:background-color var(--gemboss-transition-fast, .12s) ease}.gb-chat-plus:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gb-chat-plus:disabled{opacity:.5;cursor:default}.gb-chat-plus svg{flex:none}.gb-chat-plus-lock{opacity:.7}.gb-chat-plus[data-state=on]{color:#1a1408;box-shadow:0 0 0 1px #c99a3e73,0 2px 10px #c99a3e4d;background:linear-gradient(135deg,#f3d891,#c99a3e 55%,#ecd08a)}@media (hover: hover){.gb-chat-plus:hover:not(:disabled){background-color:var(--gemboss-hover, rgba(0, 0, 0, .05));color:var(--gemboss-text)}.gb-chat-plus[data-state=on]:hover:not(:disabled){color:#1a1408;background:linear-gradient(135deg,#f6de9c,#cfa247 55%,#efd593)}}@media (pointer: coarse),(max-width: 47.9975em){.gb-chat-plus{min-height:44px;position:relative;isolation:isolate;-webkit-background-clip:text!important;background-clip:text!important}.gb-chat-plus,.gb-chat-plus[data-state=on]{box-shadow:none}.gb-chat-plus:before{content:"";position:absolute;inset:0;margin:auto;z-index:-1;box-sizing:border-box;pointer-events:none;height:inherit;max-height:100%;border-radius:inherit;background:inherit;-webkit-background-clip:border-box;background-clip:border-box;box-shadow:inset 0 0 0 1px var(--gemboss-divider)}.gb-chat-plus[data-state=on]:before{box-shadow:0 0 0 1px #c99a3e73,0 2px 10px #c99a3e4d}}@media (prefers-reduced-motion: reduce){.gb-chat-plus{transition:none}}.gb-dock.gb-dock--plus{--gemboss-surface: #14120e;--gemboss-panel-bg: #14120e;--gemboss-app-bg: #14120e;--gemboss-text: #f2ecdf;--gemboss-text-strong: #f2ecdf;--gemboss-text-muted: #a99f8b;--gemboss-divider: rgba(214, 178, 100, .22);--gemboss-hover: rgba(242, 236, 223, .07);--gemboss-primary: #d9b464;--gemboss-primary-dark: #e9cb84;--gemboss-on-primary: #17120a;--gemboss-primary-soft: rgba(214, 178, 100, .14);--gemboss-accent: #e2c27c;--gemboss-accent-strong: #ebd096;--gemboss-accent-soft: rgba(214, 178, 100, .14);--gemboss-accent-wash: rgba(214, 178, 100, .06);--gemboss-accent-tint: rgba(214, 178, 100, .2);--gemboss-success-strong: #8fd9b6;--gemboss-success-soft: rgba(143, 217, 182, .12);--ui-surface: #1b1813;--ui-surface-2: rgba(242, 236, 223, .06);--ui-text: #f2ecdf;--ui-text-muted: #a99f8b;--ui-border: rgba(214, 178, 100, .22);--ui-series-1: #e2c27c;--ui-success-fg: #8fd9b6;--ui-danger-fg: #f0a39a;--ui-focus: #e9cb84;color:#f2ecdf;border-color:#d6b2644d}.gb-dock--plus .gemboss-ec-msg.user .gemboss-ec-bubble{background:#2b2519;color:#f6ecd4}.gb-dock--plus .gemboss-ec-input{background:#17140f;border-color:#d6b26466}.gb-dock--plus .gemboss-ec-cta-btn.primary{color:#17120a;background:linear-gradient(135deg,#f3d891,#c99a3e 55%,#ecd08a);--gemboss-ec-cta-glow: 0 4px 14px rgba(201, 154, 62, .28);box-shadow:var(--gemboss-ec-cta-glow)}.gb-dock--plus .gb-dock-header .ui-seg :is(button,a)[aria-pressed=true],.gb-dock--plus .gb-dock-header .ui-seg :is(button,a).active{background:#d6b2642e;color:#f3d891;box-shadow:none}.ui-btn.gb-plus-btn{color:#1a1408;border-color:transparent;background:linear-gradient(135deg,#f3d891,#c99a3e 55%,#ecd08a);box-shadow:0 2px 10px #c99a3e47}@media (hover: hover){.ui-btn.gb-plus-btn:hover{color:#1a1408;background:linear-gradient(135deg,#f6de9c,#cfa247 55%,#efd593)}}
|
package/src/assistant.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gb-dock{position:fixed;z-index:320;right:24px;bottom:0;width:min(460px,calc(100vw - 288px));display:flex;flex-direction:column;min-height:0;background:var(--gemboss-surface);background:color-mix(in srgb,var(--gemboss-surface) 93%,transparent);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border:1px solid var(--gemboss-divider);border-bottom:0;border-radius:12px 12px 0 0;box-shadow:0 -2px 6px #0f172a0d,0 24px 64px #0f172a2e;overflow:hidden;transition:transform .14s cubic-bezier(.2,.8,.3,1),opacity .14s ease-out}@starting-style{.gb-dock-dock,.gb-dock-mini{transform:translateY(10px);opacity:0}.gb-dock-side{transform:translate(12px);opacity:0}}.gb-dock-dragging,.gb-dock-dragging *{transition:none!important}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.gb-dock{background:var(--gemboss-surface)}}@media (prefers-reduced-motion: reduce){.gb-dock{transition:none}}.gb-dock-hidden{display:none}.gb-dock-full{z-index:4;inset:56px 0 0 240px;width:auto;border:0;border-radius:0;box-shadow:none;background:var(--gemboss-app-bg);-webkit-backdrop-filter:none;backdrop-filter:none}.gb-dock-side{z-index:290;top:56px;right:0;bottom:0;width:var(--gb-dock-side-w, 400px);background:var(--gemboss-surface);-webkit-backdrop-filter:none;backdrop-filter:none;border:0;border-left:1px solid var(--gemboss-divider);border-radius:0;box-shadow:none;overflow:visible}.gb-dock-side .gb-dock-body,.gb-dock-side .gb-dock-pane{overflow:hidden}.gb-dock-side .gb-dock-header{cursor:default;touch-action:auto}.gb-dock-side .gb-dock-status{flex:0 0 auto;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.gb-dock-side .gb-dock-header:active{cursor:default}.gb-dock-side>.gb-dock-sidegrip{position:absolute;top:0;bottom:0;left:-3px;width:5px;z-index:3}@media (min-width: 1100px){body.gemboss-assistant-side .gemboss-platform-main{margin-right:var(--gb-assistant-side-w, 400px)}}.gb-dock-fullchrome{position:absolute;top:10px;right:16px;z-index:1;display:flex;align-items:center;min-height:44px;gap:8px}.gb-dock-shrink{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:var(--ui-btn-h, 28px);padding:0 12px;border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-md);background:var(--gemboss-surface);color:var(--gemboss-text);font:inherit;font-size:var(--gemboss-fs-caption);font-weight:550;cursor:pointer;white-space:nowrap}.gb-dock-menu-pill{width:var(--ui-btn-h, 28px);padding:0;justify-content:center}.gb-dock-menu-pill svg{width:18px;height:18px}@media (pointer: coarse),(max-width: 47.9975em){.gb-dock-shrink{height:auto;min-height:44px}.gb-dock-menu-pill{width:44px}}@media (hover: hover){.gb-dock-shrink:hover{background:var(--gemboss-hover)}}.gb-dock-shrink:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:2px}.gb-dock-shrink svg{width:16px;height:16px;flex:0 0 auto}.gb-dock-menu-actions .gb-dock-shrink{display:flex;border:0;border-radius:8px;font-weight:inherit}@media (max-width: 560px){.gb-dock-fullchrome{position:static;justify-content:flex-end;padding:8px 12px 0}.gb-dock-full .gemboss-assistant-layout>.gemboss-assistant-rail{position:absolute;top:8px;left:12px;z-index:1;width:auto;flex:none;padding:0;border:0}.gb-dock-full .gemboss-assistant-layout>.gemboss-assistant-rail .gemboss-assistant-newchat{width:44px;min-height:44px;padding:0;border-radius:var(--gemboss-radius-md)}}.gb-dock-mini .gb-dock-body{display:none}.gb-dock-grip{position:absolute;top:0;left:0;right:0;height:14px;z-index:2;display:grid;place-items:center;cursor:ns-resize;touch-action:none;background:transparent}.gb-dock-grip>span{display:block;width:44px;height:4px;border-radius:2px;background:var(--gemboss-divider)}.gb-dock-grip:focus-visible>span{background:var(--gemboss-text-muted)}@media (hover: hover){.gb-dock-grip:hover>span{background:var(--gemboss-text-muted)}}.gb-dock-grip:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:-2px}@media (pointer: coarse),(max-width: 47.9975em){.gb-dock-grip+.gb-dock-header{padding-top:10px}}.gb-dock-header{flex:0 0 auto;cursor:grab;touch-action:none;user-select:none;display:flex;align-items:center;gap:8px;padding:0 4px 0 16px;min-height:48px;border-bottom:1px solid var(--gemboss-divider);background:transparent}.gb-dock-title{font-size:13px;font-weight:600;color:var(--gemboss-text-strong);white-space:nowrap;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.gb-dock-status{flex:1 1 auto;min-width:0;font-size:12px;color:var(--gemboss-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gb-dock-header:active{cursor:grabbing}.gb-dock-actions{display:flex;align-items:center;gap:8px;cursor:default;margin-left:auto}.gb-dock-menu{position:relative}.gb-dock-menu>summary{list-style:none}.gb-dock-menu>summary::-webkit-details-marker{display:none}.gb-dock-menu[open]>summary{color:var(--gemboss-text-strong);background:var(--gemboss-hover)}.gb-dock-menu-list{position:absolute;top:calc(100% + 4px);right:0;z-index:5;display:grid;min-width:220px;padding:6px;box-sizing:border-box;cursor:default}.gb-dock-menu-list>.ui-menu__item{border-radius:8px}.gb-dock-menu-list>.ui-menu__item:disabled{opacity:.5;cursor:not-allowed;background:transparent}.gb-dock-menu-sep{height:1px;margin:4px 0;border:0;background:var(--gemboss-divider)}.gb-dock-icon{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--gemboss-text-muted);cursor:pointer;padding:0}@media (hover: hover){.gb-dock-icon:hover{background:var(--gemboss-hover);color:var(--gemboss-text-strong)}}.gb-dock-icon:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:-2px}.gb-dock-icon svg{width:18px;height:18px}.gb-dock-icon-on{color:var(--gemboss-active-fg);background:var(--gemboss-active-bg)}.gb-dock-dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--gemboss-divider)}.gb-dock-dot-busy{background:var(--gemboss-primary);animation:gb-dock-pulse 1.4s ease-in-out infinite}.gb-dock-dot-unread{background:var(--gemboss-success-strong)}@keyframes gb-dock-pulse{0%,to{opacity:1}50%{opacity:.35}}@media (prefers-reduced-motion: reduce){.gb-dock-dot-busy{animation:none}}.gb-dock-tabs{flex:0 0 auto;display:flex;gap:4px;padding:0 8px;border-bottom:1px solid var(--gemboss-divider)}.gb-dock-tab{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--gemboss-text-muted);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}@media (hover: hover){.gb-dock-tab:hover{color:var(--gemboss-text-strong)}}.gb-dock-tab[aria-selected=true]{color:var(--gemboss-text-strong);font-weight:600;border-bottom-color:var(--gemboss-primary)}.gb-dock-tab:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:-2px}.gb-dock-badge{min-width:18px;padding:0 6px;border-radius:var(--gemboss-radius-full);background:var(--gemboss-primary);color:var(--gemboss-on-primary, #fff);font-size:11px;font-weight:700;line-height:18px;text-align:center}.gb-dock-body{flex:1 1 auto;min-height:0;display:flex;min-width:0}.gb-dock-body>*{flex:1 1 auto;min-width:0;min-height:0}.gb-dock-pane{display:flex;min-width:0;min-height:0}.gb-dock-pane>*{flex:1 1 auto;min-width:0;min-height:0}.gb-dock-body .gemboss-assistant-layout,.gb-dock-body .gemboss-assistant-page{height:auto;min-height:0}.gb-dock-pane[hidden]{display:none}.gb-dock-booting{flex:1 1 auto;display:grid;place-items:center;padding:24px;color:var(--gemboss-text-muted);font-size:14px}.gb-dock-sr{position:absolute;left:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media (max-width: 420px){.gb-dock-status{display:none}}@media (max-width: 760px){.gb-dock{right:8px;left:8px;width:auto;padding-bottom:env(safe-area-inset-bottom);border-radius:12px 12px 0 0}.gb-dock-full{inset:56px 0 0;border-radius:0}.gb-dock-side{left:0;right:0;width:auto;border-left:0;border-radius:0}.gb-dock-sidegrip{display:none}}@media (min-width: 761px) and (max-width: 1099.98px){.gb-dock-side{left:240px;width:auto}.gb-dock-side .gb-dock-sidegrip{display:none}}.gb-assistant-launcher{display:inline-flex;align-items:center;gap:8px;border:0;cursor:pointer;font-family:var(--gemboss-font-sans, system-ui, sans-serif)}.gb-assistant-launcher svg{flex:0 0 auto}.gb-assistant-launcher:focus-visible{outline:2px solid var(--gemboss-accent, #5661f5);outline-offset:2px}.gb-assistant-launcher--rail{width:100%;min-height:44px;margin:8px 0 4px;padding:0 12px;border-radius:var(--gemboss-radius-md, 8px);background:var(--gemboss-accent-soft);color:var(--gemboss-accent-strong);font-size:13px;font-weight:600;line-height:1;text-align:left}@media (hover: hover){.gb-assistant-launcher--rail:hover{background:color-mix(in srgb,var(--gemboss-accent) 16%,var(--gemboss-surface))}}.gb-assistant-launcher--rail .gb-assistant-launcher-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gb-assistant-launcher-kbd{font:inherit;font-size:11px;opacity:.7;border:1px solid currentColor;border-radius:5px;padding:1px 5px}.gb-assistant-launcher--topbar{display:none;position:relative;justify-content:center;flex:0 0 auto;width:44px;height:44px;padding:0;border-radius:var(--gemboss-radius-md, 8px);background:transparent;color:var(--gemboss-text, #1b1c1e)}.gb-assistant-launcher--topbar:active{background:var(--gemboss-hover, #eceef2)}@media (hover: hover){.gb-assistant-launcher--topbar:hover{background:var(--gemboss-hover, #eceef2)}}.gb-assistant-launcher--topbar .gb-assistant-launcher-label,.gb-assistant-launcher--topbar .gb-assistant-launcher-kbd{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media (max-width: 760px){.gb-assistant-launcher--rail{display:none}.gb-assistant-launcher--topbar{display:inline-flex}}
|
|
1
|
+
.gb-dock{position:fixed;z-index:320;right:24px;bottom:0;width:min(460px,calc(100vw - 288px));display:flex;flex-direction:column;min-height:0;background:var(--gemboss-surface);background:color-mix(in srgb,var(--gemboss-surface) 93%,transparent);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border:1px solid var(--gemboss-divider);border-bottom:0;border-radius:12px 12px 0 0;box-shadow:0 -2px 6px #0f172a0d,0 24px 64px #0f172a2e;overflow:hidden;transition:transform .14s cubic-bezier(.2,.8,.3,1),opacity .14s ease-out}@starting-style{.gb-dock-dock,.gb-dock-mini{transform:translateY(10px);opacity:0}.gb-dock-side{transform:translate(12px);opacity:0}}.gb-dock-dragging,.gb-dock-dragging *{transition:none!important}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.gb-dock{background:var(--gemboss-surface)}}@media (prefers-reduced-motion: reduce){.gb-dock{transition:none}}.gb-dock-hidden{display:none}.gb-dock-full{z-index:4;inset:56px 0 0 240px;width:auto;border:0;border-radius:0;box-shadow:none;background:var(--gemboss-app-bg);-webkit-backdrop-filter:none;backdrop-filter:none}@media (min-width: 761px){.gb-dock:not(.gb-dock-full) .gemboss-ec{--gemboss-ec-inset: 20px;--gemboss-ec-box-inset: 16px}}.gb-dock-side{z-index:290;top:56px;right:0;bottom:0;width:var(--gb-dock-side-w, 400px);background:var(--gemboss-surface);-webkit-backdrop-filter:none;backdrop-filter:none;border:0;border-left:1px solid var(--gemboss-divider);border-radius:0;box-shadow:none;overflow:visible}.gb-dock-side .gb-dock-body,.gb-dock-side .gb-dock-pane{overflow:hidden}.gb-dock-side .gb-dock-header{cursor:default;touch-action:auto}.gb-dock-side .gb-dock-status{flex:0 0 auto;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.gb-dock-side .gb-dock-header:active{cursor:default}.gb-dock-side>.gb-dock-sidegrip{position:absolute;top:0;bottom:0;left:-3px;width:5px;z-index:3}@media (min-width: 1100px){body.gemboss-assistant-side .gemboss-platform-main{margin-right:var(--gb-assistant-side-w, 400px)}}.gb-dock-fullchrome{position:absolute;top:10px;right:16px;z-index:1;display:flex;align-items:center;min-height:44px;gap:8px}.gb-dock-shrink{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:var(--ui-btn-h, 28px);padding:0 12px;border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-md);background:var(--gemboss-surface);color:var(--gemboss-text);font:inherit;font-size:var(--gemboss-fs-caption);font-weight:550;cursor:pointer;white-space:nowrap}.gb-dock-menu-pill{width:var(--ui-btn-h, 28px);padding:0;justify-content:center}.gb-dock-menu-pill svg{width:18px;height:18px}@media (pointer: coarse),(max-width: 47.9975em){.gb-dock-shrink{min-height:44px}.gb-dock-menu-pill{min-width:44px}}@media (hover: hover){.gb-dock-shrink:hover{background:var(--gemboss-hover)}}.gb-dock-shrink:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:2px}.gb-dock-shrink svg{width:16px;height:16px;flex:0 0 auto}.gb-dock-menu-actions .gb-dock-shrink{display:flex;border:0;border-radius:8px;font-weight:inherit}@media (max-width: 560px){.gb-dock-fullchrome{position:static;justify-content:flex-end;padding:8px 12px 0}.gb-dock-full .gemboss-assistant-layout>.gemboss-assistant-rail{position:absolute;top:8px;left:12px;z-index:1;width:auto;flex:none;padding:0;border:0}.gb-dock-full .gemboss-assistant-layout>.gemboss-assistant-rail .gemboss-assistant-newchat{width:28px;height:28px;min-width:44px;min-height:44px;padding:0;border-radius:var(--gemboss-radius-md)}}.gb-dock-mini .gb-dock-body{display:none}.gb-dock-grip{position:absolute;top:0;left:0;right:0;height:14px;z-index:2;display:grid;place-items:center;cursor:ns-resize;touch-action:none;background:transparent}.gb-dock-grip>span{display:block;width:44px;height:4px;border-radius:2px;background:var(--gemboss-divider)}.gb-dock-grip:focus-visible>span{background:var(--gemboss-text-muted)}@media (hover: hover){.gb-dock-grip:hover>span{background:var(--gemboss-text-muted)}}.gb-dock-grip:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:-2px}@media (pointer: coarse),(max-width: 47.9975em){.gb-dock-grip+.gb-dock-header{padding-top:10px}}.gb-dock-header{flex:0 0 auto;cursor:grab;touch-action:none;user-select:none;display:flex;align-items:center;gap:8px;padding:0 8px 0 16px;min-height:48px;border-bottom:1px solid var(--gemboss-divider);background:transparent}.gb-dock-title{font-size:13px;font-weight:600;color:var(--gemboss-text-strong);white-space:nowrap;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.gb-dock-status{flex:1 1 auto;min-width:0;font-size:12px;color:var(--gemboss-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gb-dock-header:active{cursor:grabbing}.gb-dock-actions{display:flex;align-items:center;gap:8px;cursor:default;margin-left:auto}.gb-dock-menu{position:relative}.gb-dock-menu>summary{list-style:none}.gb-dock-menu>summary::-webkit-details-marker{display:none}.gb-dock-menu[open]>summary{color:var(--gemboss-text-strong);background:var(--gemboss-hover)}.gb-dock-menu-list{position:absolute;top:calc(100% + 4px);right:0;z-index:5;display:grid;min-width:220px;padding:6px;box-sizing:border-box;cursor:default}.gb-dock-menu-list>.ui-menu__item{border-radius:8px}.gb-dock-menu-list>.ui-menu__item:disabled{opacity:.5;cursor:not-allowed;background:transparent}.gb-dock-menu-sep{height:1px;margin:4px 0;border:0;background:var(--gemboss-divider)}.gb-dock-icon{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--gemboss-text-muted);cursor:pointer;padding:0}@media (hover: hover){.gb-dock-icon:hover{background:var(--gemboss-hover);color:var(--gemboss-text-strong)}}.gb-dock-icon:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:-2px}.gb-dock-icon svg{width:18px;height:18px}.gb-dock-icon-on{color:var(--gemboss-active-fg);background:var(--gemboss-active-bg)}.gb-dock-dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--gemboss-divider)}.gb-dock-dot-busy{background:var(--gemboss-primary);animation:gb-dock-pulse 1.4s ease-in-out infinite}.gb-dock-dot-unread{background:var(--gemboss-success-strong)}@keyframes gb-dock-pulse{0%,to{opacity:1}50%{opacity:.35}}@media (prefers-reduced-motion: reduce){.gb-dock-dot-busy{animation:none}}.gb-dock-tabs{flex:0 0 auto;display:flex;gap:4px;padding:0 8px;border-bottom:1px solid var(--gemboss-divider)}.gb-dock-tab{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--gemboss-text-muted);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}@media (hover: hover){.gb-dock-tab:hover{color:var(--gemboss-text-strong)}}.gb-dock-tab[aria-selected=true]{color:var(--gemboss-text-strong);font-weight:600;border-bottom-color:var(--gemboss-primary)}.gb-dock-tab:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:-2px}.gb-dock-badge{min-width:18px;padding:0 6px;border-radius:var(--gemboss-radius-full);background:var(--gemboss-primary);color:var(--gemboss-on-primary, #fff);font-size:11px;font-weight:700;line-height:18px;text-align:center}.gb-dock-body{flex:1 1 auto;min-height:0;display:flex;min-width:0}.gb-dock-body>*{flex:1 1 auto;min-width:0;min-height:0}.gb-dock-pane{display:flex;min-width:0;min-height:0}.gb-dock-pane>*{flex:1 1 auto;min-width:0;min-height:0}.gb-dock-body .gemboss-assistant-layout,.gb-dock-body .gemboss-assistant-page{height:auto;min-height:0}.gb-dock-pane[hidden]{display:none}.gb-dock-booting{flex:1 1 auto;display:grid;place-items:center;padding:24px;color:var(--gemboss-text-muted);font-size:14px}.gb-dock-sr{position:absolute;left:0;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media (max-width: 420px){.gb-dock-status{display:none}}@media (max-width: 760px){.gb-dock{right:8px;left:8px;width:auto;padding-bottom:env(safe-area-inset-bottom);border-radius:12px 12px 0 0}.gb-dock-full{inset:56px 0 0;border-radius:0}.gb-dock-side{left:0;right:0;width:auto;border-left:0;border-radius:0}.gb-dock-sidegrip{display:none}}@media (min-width: 761px) and (max-width: 1099.98px){.gb-dock-side{left:240px;width:auto}.gb-dock-side .gb-dock-sidegrip{display:none}}.gb-assistant-launcher{display:inline-flex;align-items:center;gap:8px;border:0;cursor:pointer;font-family:var(--gemboss-font-sans, system-ui, sans-serif)}.gb-assistant-launcher svg{flex:0 0 auto}.gb-assistant-launcher:focus-visible{outline:2px solid var(--gemboss-accent, #5661f5);outline-offset:2px}.gb-assistant-launcher--rail{width:100%;min-height:44px;margin:8px 0 4px;padding:0 12px;border-radius:var(--gemboss-radius-md, 8px);background:var(--gemboss-accent-soft);color:var(--gemboss-accent-strong);font-size:13px;font-weight:600;line-height:1;text-align:left}@media (hover: hover){.gb-assistant-launcher--rail:hover{background:color-mix(in srgb,var(--gemboss-accent) 16%,var(--gemboss-surface))}}.gb-assistant-launcher--rail .gb-assistant-launcher-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gb-assistant-launcher-kbd{font:inherit;font-size:11px;opacity:.7;border:1px solid currentColor;border-radius:5px;padding:1px 5px}.gb-assistant-launcher--topbar{display:none;position:relative;justify-content:center;flex:0 0 auto;width:44px;height:44px;padding:0;border-radius:var(--gemboss-radius-md, 8px);background:transparent;color:var(--gemboss-text, #1b1c1e)}.gb-assistant-launcher--topbar:active{background:var(--gemboss-hover, #eceef2)}@media (hover: hover){.gb-assistant-launcher--topbar:hover{background:var(--gemboss-hover, #eceef2)}}.gb-assistant-launcher--topbar .gb-assistant-launcher-label,.gb-assistant-launcher--topbar .gb-assistant-launcher-kbd{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media (max-width: 760px){.gb-assistant-launcher--rail{display:none}.gb-assistant-launcher--topbar{display:inline-flex}}
|
package/src/auth.tsx
CHANGED
|
@@ -80,13 +80,16 @@ function AuthShotWindow({ src, alt, caption, width, height }: AuthShot) {
|
|
|
80
80
|
* The whole screen. `children` is everything inside the card below the heading: the form, then any
|
|
81
81
|
* lines under it.
|
|
82
82
|
*/
|
|
83
|
-
export function AuthLayout({ brand, tagline, mark, panel, backdrop = "facet", art, footer, className, children }: {
|
|
83
|
+
export function AuthLayout({ brand, tagline, mark, facet, panel, backdrop = "facet", art, footer, className, children }: {
|
|
84
84
|
/** The page heading (h1) in the card. */
|
|
85
85
|
brand: React.ReactNode;
|
|
86
86
|
/** One line under the heading; the first thing shed on a short screen. */
|
|
87
87
|
tagline?: React.ReactNode;
|
|
88
88
|
/** Defaults to the GemBoss line gem, the one in the topbar's logo. */
|
|
89
89
|
mark?: React.ReactNode;
|
|
90
|
+
/** The default mark's table facet in the Gem's own colour (16/11/2026, `GEM_FACETS`), as BrandLockup's `facet`;
|
|
91
|
+
* without it `--gb-gem-facet`, then iris. Not read when `mark` is given. */
|
|
92
|
+
facet?: string;
|
|
90
93
|
/** The brand panel beside the card — shown only where there is room (900 wide AND 520 tall). `shot` (24/10/2026):
|
|
91
94
|
* a screenshot of the product in a window under the words; see `AuthShot`. */
|
|
92
95
|
panel?: { eyebrow?: React.ReactNode; heading: React.ReactNode; body?: React.ReactNode; shot?: AuthShot };
|
|
@@ -146,7 +149,7 @@ export function AuthLayout({ brand, tagline, mark, panel, backdrop = "facet", ar
|
|
|
146
149
|
<header className="gb-auth-header">
|
|
147
150
|
{/* The line gem the topbar's logo draws (brand-gem.tsx), not the app tile: the tile is the app's icon. */}
|
|
148
151
|
<span className="gb-auth-mark" aria-hidden>
|
|
149
|
-
{mark ?? <BrandGem />}
|
|
152
|
+
{mark ?? <BrandGem facet={facet} />}
|
|
150
153
|
</span>
|
|
151
154
|
<h1>{brand}</h1>
|
|
152
155
|
{tagline ? <p>{tagline}</p> : null}
|
|
@@ -269,7 +272,8 @@ export function AuthContinueWithGemBoss({ service, next = "/", issuer = GEMBOSS_
|
|
|
269
272
|
return (
|
|
270
273
|
<div className="gb-auth-sso">
|
|
271
274
|
<a className="gb-auth-sso-btn" href={href} onClick={() => setGoing(true)}>
|
|
272
|
-
|
|
275
|
+
{/* GemBoss's own mark: its facet stays GemBoss's (GemMark's default) on a Gem that set `--gb-gem-facet`. */}
|
|
276
|
+
<GemMark size={18} tile="var(--gb-mark-bg)" facet="#8a93ff" />
|
|
273
277
|
{going ? goingLabel : label}
|
|
274
278
|
</a>
|
|
275
279
|
{reason ? <p className="gb-auth-sso-why" role="status">{reason}</p> : null}
|
package/src/board-move.ts
CHANGED
|
@@ -137,7 +137,8 @@ export function attachBoardMove(board: HTMLElement & { __gbCommit?: BoardCommit;
|
|
|
137
137
|
|
|
138
138
|
board.addEventListener("dragstart", (e) => {
|
|
139
139
|
const li = (e.target as HTMLElement).closest?.<HTMLElement>("li[data-id]");
|
|
140
|
-
|
|
140
|
+
// A fixed card (BoardCard `fixed`) is not draggable: a link inside it is, and its drag must not lift the card.
|
|
141
|
+
if (!li || !board.contains(li) || !e.dataTransfer || !li.draggable) return;
|
|
141
142
|
if (held) end();
|
|
142
143
|
lift(li, false);
|
|
143
144
|
e.dataTransfer.effectAllowed = "move";
|
package/src/brand-gem.tsx
CHANGED
|
@@ -3,14 +3,22 @@
|
|
|
3
3
|
* tall). Its own module (0.40.0) so `BrandLockup` (topbar, app size) and `SiteBrand` (public site size) draw the same
|
|
4
4
|
* gem, and `SiteBrand` does not import brand.tsx: that module brings the ServiceSwitcher, which a public page must not
|
|
5
5
|
* carry. No stylesheet: `.gb-brand-gem` is in the core (app-shell.css).
|
|
6
|
+
*
|
|
7
|
+
* `facet` (16/11/2026): the table facet's colour, the one part that tells the Gems apart (`GEM_FACETS`). Without it the
|
|
8
|
+
* facet reads `--gb-gem-facet`, so a surface sets its colour once on `:root` instead of styling over `.gb-brand-gem`;
|
|
9
|
+
* with neither it is iris, as before. The colour is in the style (var() in a presentation attribute is not read by
|
|
10
|
+
* every browser, GemMark.tsx) AND in the `fill` attribute: where a CSP without 'unsafe-inline' drops inline styles,
|
|
11
|
+
* the attribute is what is left, so the facet stays iris (or the prop's colour), never the SVG's default black.
|
|
6
12
|
*/
|
|
7
13
|
import React from "react";
|
|
14
|
+
import { GEM_FACETS } from "./services";
|
|
8
15
|
|
|
9
|
-
export function BrandGem() {
|
|
16
|
+
export function BrandGem({ facet }: { facet?: string }) {
|
|
10
17
|
return (
|
|
11
18
|
<svg className="gb-brand-gem" viewBox="0 0 32 40" width="20.8" height="26" aria-hidden="true" focusable="false">
|
|
12
19
|
<g transform="translate(0,0.8) scale(0.31)">
|
|
13
|
-
<polygon points="26,14 74,14 66,50 34,50" fill=
|
|
20
|
+
<polygon points="26,14 74,14 66,50 34,50" fill={facet ?? GEM_FACETS.core} fillOpacity="0.92"
|
|
21
|
+
style={{ fill: facet ?? `var(--gb-gem-facet, ${GEM_FACETS.core})` }} />
|
|
14
22
|
<path d="M26,14 74,14 96,50 50,110 4,50Z" fill="none" stroke="currentColor" strokeWidth="8.75" strokeLinejoin="round" />
|
|
15
23
|
<path d="M4,50H96M26,14 34,50M74,14 66,50M34,50 50,110M66,50 50,110" fill="none" stroke="currentColor" strokeWidth="5.45" strokeLinejoin="round" />
|
|
16
24
|
</g>
|
package/src/brand.tsx
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
* service-switcher.css with this module whether or not a surface passes it (README "ServiceSwitcher").
|
|
16
16
|
*
|
|
17
17
|
* The gem lives in brand-gem.tsx (0.40.0), shared with `SiteBrand` (the public site's lockup, site.tsx).
|
|
18
|
+
*
|
|
19
|
+
* `facet` (16/11/2026): the gem's table facet in the Gem's own colour (`GEM_FACETS`), or `--gb-gem-facet` on `:root`;
|
|
20
|
+
* iris without either. brand-gem.tsx says how.
|
|
18
21
|
*/
|
|
19
22
|
import React from "react";
|
|
20
23
|
import { ServiceSwitcher, type ServiceSwitcherProps } from "./service-switcher";
|
|
@@ -22,11 +25,11 @@ import { BrandGem } from "./brand-gem";
|
|
|
22
25
|
|
|
23
26
|
type AnchorProps = React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
24
27
|
|
|
25
|
-
export function BrandLockup({ name, href = "/", label, className, switcher, ...rest }:
|
|
26
|
-
{ name: string; label?: string; switcher?: Omit<ServiceSwitcherProps, "className"
|
|
28
|
+
export function BrandLockup({ name, href = "/", label, className, switcher, facet, ...rest }:
|
|
29
|
+
{ name: string; label?: string; switcher?: Omit<ServiceSwitcherProps, "className">; facet?: string } & AnchorProps) {
|
|
27
30
|
const link = (
|
|
28
31
|
<a className={className ? `gb-brand ${className}` : "gb-brand"} href={href} aria-label={label ?? `${name} home`} {...rest}>
|
|
29
|
-
<BrandGem />
|
|
32
|
+
<BrandGem facet={facet} />
|
|
30
33
|
<span className="gb-brand-name">{name}</span>
|
|
31
34
|
</a>
|
|
32
35
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-cta-btn,.gemboss-ec-pagecard-open{position:relative;isolation:isolate;box-shadow:none!important;-webkit-background-clip:text!important;background-clip:text!important;border-image:linear-gradient(#0000,#0000)!important}.gemboss-ec-cta-btn{--gemboss-ec-drawn-inset: 3px}.gemboss-ec-cta-btn.primary{--gemboss-ec-cta-glow: 0 6px 16px rgba(194, 65, 12, .22)}.gemboss-ec-pagecard-open{--gemboss-ec-drawn-inset: 6px}:is(.gemboss-ec-cta-btn,.gemboss-ec-pagecard-open):before{content:"";position:absolute;inset:calc(var(--gemboss-ec-drawn-inset) - 1px) -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;box-shadow:var(--gemboss-ec-cta-glow, none)}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gemboss-ec-decide{max-height:min(55vh,420px);background:color-mix(in srgb,var(--gemboss-accent-wash, #f7f8ff) 82%,transparent);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.gemboss-ec-decide{background:var(--gemboss-accent-wash, #f7f8ff)}}.gemboss-ec-scroll>.gemboss-ec-decide{position:sticky;bottom:calc(0px - var(--gemboss-ec-inset, 16px));z-index:1;flex:none;margin-inline:calc(var(--gemboss-ec-box-inset, 12px) - var(--gemboss-ec-inset, 16px))}.gemboss-ec-decide>*{flex:none}.gemboss-ec-decide>.gemboss-ec-poll,.gemboss-ec-decide>.gemboss-ec-chips{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}.gemboss-ec-decide>.gemboss-ec-poll{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.gemboss-ec-decide .gemboss-ec-poll-foot{grid-column:1 / -1}
|
package/src/chat-cards.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gb-chat-card{display:flex;gap:12px;align-items:flex-start;box-sizing:border-box;max-width:100%;min-width:0;padding:12px;border:1px solid var(--gemboss-divider);border-radius:16px;background:var(--gemboss-surface);color:var(--gemboss-text)}.gb-chat-card.is-busy{opacity:.96}.gb-chat-card-thumb{flex:0 0 auto;display:flex}.gb-chat-card-icon{flex:0 0 auto;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--gemboss-panel-bg);color:var(--gemboss-text-muted);border:1px solid var(--gemboss-divider);box-sizing:border-box}.gb-chat-card-body{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;min-height:40px}.gb-chat-card-tag{display:inline-block;width:max-content;max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 8px;border-radius:999px;font-size:var(--gemboss-fs-micro, 11px);font-weight:600;color:var(--gemboss-accent-strong, #3a44de);background:var(--gemboss-accent-soft, #eef0fe)}.gb-chat-card-tag[data-tone=change]{color:var(--gemboss-success-strong, #0a6a4c);background:var(--gemboss-success-soft, #e3f1df)}.gb-chat-card-tag[data-tone=job]{color:var(--gemboss-primary-dark);background:var(--gemboss-primary-soft)}.gb-chat-card-title{font-size:var(--gemboss-fs-body, 14px);font-weight:600;line-height:20px;overflow-wrap:anywhere}.gb-chat-card-meta,.gb-chat-card-note{font-size:var(--gemboss-fs-caption, 12px);line-height:16px;color:var(--gemboss-text-muted);overflow-wrap:anywhere}.gb-chat-card-bar{display:block;height:4px;margin:4px 0 2px;border-radius:2px;background:var(--gemboss-divider);overflow:hidden}.gb-chat-card-bar>span{display:block;height:100%;background:var(--gemboss-primary);transition:width .3s ease}.gb-chat-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:4px}.gb-chat-card-btn{display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--gemboss-fs-caption, 12px);font-weight:600;color:var(--gemboss-text-muted);text-align:start}.gb-chat-card-btn.is-primary{color:var(--gemboss-primary-dark)}@media (hover: hover){.gb-chat-card-btn:hover:not(:disabled){text-decoration:underline}}.gb-chat-card-btn:disabled{opacity:.5;cursor:default}.gb-chat-card-btn:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px;border-radius:4px}.gb-chat-question{font-size:var(--gemboss-fs-body, 14px);font-weight:600;line-height:1.4}.gb-chat-question+.gemboss-ec-poll,.gb-chat-question+.gemboss-ec-chips{margin-top:0}.gb-chat-thing-pic>img,.gemboss-ec-opt-pic>img{width:40px;height:40px;object-fit:cover;box-sizing:border-box;border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-md, 8px);background:var(--ui-surface-2, #f6f6f7)}.gb-chat-thing{display:flex;align-items:center;gap:12px;min-width:0}.gb-chat-thing-pic{flex:none;display:flex}.gb-chat-thing-col{display:flex;flex-direction:column;gap:2px;min-width:0}.gb-chat-thing-name{overflow:hidden;font-size:var(--gemboss-fs-body, 14px);font-weight:600;text-overflow:ellipsis;white-space:nowrap}.gb-chat-thing-meta{font-size:var(--gemboss-fs-caption, 12px);color:var(--gemboss-text-muted)}.gemboss-ec-fb{display:flex;gap:4px;margin-top:6px}.gemboss-ec-fb-btn{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;border:none;background:transparent;color:var(--gemboss-text-muted);cursor:pointer;line-height:1;padding:4px;border-radius:8px;opacity:.55;transition:opacity .12s,background .12s}@media (hover: hover){.gemboss-ec-fb-btn:hover:not(:disabled){opacity:1;color:var(--gemboss-text);background:var(--gemboss-hover, rgba(0,0,0,.05))}}.gemboss-ec-fb-btn.on{opacity:1;color:var(--gemboss-text)}.gemboss-ec-fb-btn:disabled{cursor:default}.gemboss-ec-fb-btn:focus-visible{opacity:1;outline:2px solid var(--ui-focus, #5661f5);outline-offset:1px}.gemboss-ec-actions{display:flex;flex-direction:column;gap:12px;margin-top:2px}.gemboss-ec-cta{display:flex;flex-wrap:wrap;gap:8px}.gemboss-ec-msg>.gemboss-ec-actions{max-width:min(90%,68ch)}.gemboss-ec-cta-btn{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 16px;text-align:start;border-radius:12px;font-size:var(--gemboss-fs-body);font-weight:600;cursor:pointer;border:1px solid transparent;font-family:inherit;transition:transform .12s ease,box-shadow .12s ease}.gemboss-ec-cta-btn.primary{background:linear-gradient(120deg,var(--gemboss-primary),var(--gemboss-primary-dark));color:#fff;box-shadow:0 6px 16px #c2410c38}.gemboss-ec-cta-btn.ghost{background:var(--gemboss-surface);color:var(--gemboss-text);border-color:var(--gemboss-divider)}@media (hover: hover){.gemboss-ec-cta-btn:hover{transform:translateY(-1px)}}@media (hover: hover){.gemboss-ec-cta-btn.ghost:hover{border-color:var(--gemboss-primary);color:var(--gemboss-primary-dark)}}.gemboss-ec-cta-btn:disabled{opacity:.5;cursor:default;transform:none}.gemboss-ec-cta-btn:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-cta-arrow{flex:0 0 auto}.gemboss-ec-poll{display:flex;flex-direction:column;gap:6px;margin-top:6px}.gemboss-ec-opt{display:flex;align-items:center;gap:12px;text-align:left;width:100%;box-sizing:border-box;background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:12px;padding:8px 12px;cursor:pointer;color:var(--gemboss-text);font:inherit}@media (hover: hover){.gemboss-ec-opt:hover:not(:disabled){border-color:var(--gemboss-primary)}}.gemboss-ec-opt:disabled{opacity:.5;cursor:default}.gemboss-ec-opt:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-opt-pic{flex:none;display:flex}.gemboss-ec-opt-col{display:flex;flex-direction:column;min-width:0}.gemboss-ec-opt-label{font-size:13px;font-weight:500}.gemboss-ec-opt-hint{font-size:12px;color:var(--gemboss-text-muted)}.gemboss-ec-opt-other{border-style:dashed}.gemboss-ec-opt-rec{margin-left:auto;font-size:11px;font-weight:600;color:var(--gemboss-accent-strong, #3a44de);background:var(--gemboss-accent-soft, #eef0fe);border-radius:var(--gemboss-radius-full, 999px);padding:1px 8px;white-space:nowrap}.gemboss-ec-pagecard{display:flex;flex-direction:column;gap:8px;margin:2px 0;padding:8px 12px;background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:12px;max-width:100%;box-sizing:border-box}.gemboss-ec-pagecard-head{display:flex;flex-direction:column;gap:1px;min-width:0}.gemboss-ec-pagecard-page{font-weight:700;color:var(--gemboss-text);overflow-wrap:anywhere}.gemboss-ec-pagecard-caption,.gemboss-ec-pagecard-note,.gemboss-ec-pagecard-more{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gemboss-ec-pagecard-bands{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.gemboss-ec-pagecard-band{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center}.gemboss-ec-pagecard-label{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gemboss-ec-pagecard-value{display:inline-flex;gap:8px;align-items:baseline;font-size:var(--gemboss-fs-caption);font-variant-numeric:tabular-nums;color:var(--gemboss-text)}.gemboss-ec-pagecard-stuck{grid-column:1 / -1;font-size:var(--gemboss-fs-caption);color:var(--gemboss-danger-strong);font-weight:600}.gemboss-ec-pagecard-track{grid-column:1 / -1;height:6px;border-radius:4px;background:var(--gemboss-divider);overflow:hidden}.gemboss-ec-pagecard-fill{display:block;height:100%;background:var(--gemboss-primary)}.gemboss-ec-pagecard-open{align-self:flex-start;min-height:32px;padding:6px 12px;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-surface);color:var(--gemboss-primary-dark);font:inherit;font-weight:600;cursor:pointer}@media (hover: hover){.gemboss-ec-pagecard-open:hover{background:var(--gemboss-primary-soft)}}.gemboss-ec-pagecard-open:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-textchanges{display:flex;flex-direction:column;gap:8px;max-width:min(90%,68ch)}.gemboss-ec-textchange{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:var(--gemboss-radius-md);background:var(--gemboss-divider-soft);font-size:var(--gemboss-fs-body);line-height:1.5;word-break:break-word}.gemboss-ec-textchange-where{font-size:var(--gemboss-fs-caption, 12px);font-weight:600;color:var(--gemboss-text-muted)}.gemboss-ec-textchange-was{color:var(--gemboss-text-muted);text-decoration:line-through}.gemboss-ec-textchange-now{color:var(--gemboss-text);font-weight:600;text-decoration:none}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-cta-btn,.gemboss-ec-pagecard-open{min-height:44px}.gemboss-ec-fb-btn{min-height:44px;min-width:44px}.gemboss-ec-fb{gap:8px}.gb-chat-card-btn{min-height:44px}}@media (prefers-reduced-motion: reduce){@media (hover: hover){.gemboss-ec-cta-btn:hover{transform:none}}.gb-chat-card-bar>span{transition:none}}
|
|
1
|
+
.gb-chat-card{display:flex;gap:12px;align-items:flex-start;box-sizing:border-box;max-width:100%;min-width:0;padding:12px;border:1px solid var(--gemboss-divider);border-radius:16px;background:var(--gemboss-surface);color:var(--gemboss-text)}.gb-chat-card.is-busy{opacity:.96}.gb-chat-card-thumb{flex:0 0 auto;display:flex}.gb-chat-card-icon{flex:0 0 auto;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--gemboss-panel-bg);color:var(--gemboss-text-muted);border:1px solid var(--gemboss-divider);box-sizing:border-box}.gb-chat-card-body{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;min-height:40px}.gb-chat-card-tag{display:inline-block;width:max-content;max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 8px;border-radius:999px;font-size:var(--gemboss-fs-micro, 11px);font-weight:600;color:var(--gemboss-accent-strong, #3a44de);background:var(--gemboss-accent-soft, #eef0fe)}.gb-chat-card-tag[data-tone=change]{color:var(--gemboss-success-strong, #0a6a4c);background:var(--gemboss-success-soft, #e3f1df)}.gb-chat-card-tag[data-tone=job]{color:var(--gemboss-primary-dark);background:var(--gemboss-primary-soft)}.gb-chat-card-title{font-size:var(--gemboss-fs-body, 14px);font-weight:600;line-height:20px;overflow-wrap:anywhere}.gb-chat-card-meta,.gb-chat-card-note{font-size:var(--gemboss-fs-caption, 12px);line-height:16px;color:var(--gemboss-text-muted);overflow-wrap:anywhere}.gb-chat-card-bar{display:block;height:4px;margin:4px 0 2px;border-radius:2px;background:var(--gemboss-divider);overflow:hidden}.gb-chat-card-bar>span{display:block;height:100%;background:var(--gemboss-primary);transition:width .3s ease}.gb-chat-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:4px}.gb-chat-card-btn{display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:0;border:0;background:none;cursor:pointer;font:inherit;font-size:var(--gemboss-fs-caption, 12px);font-weight:600;color:var(--gemboss-text-muted);text-align:start}.gb-chat-card-btn.is-primary{color:var(--gemboss-primary-dark)}@media (hover: hover){.gb-chat-card-btn:hover:not(:disabled){text-decoration:underline}}.gb-chat-card-btn:disabled{opacity:.5;cursor:default}.gb-chat-card-btn:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px;border-radius:4px}.gemboss-ec-decide{display:flex;flex-direction:column;gap:8px;margin:0 var(--gemboss-ec-box-inset, 12px);padding:12px;border:1px solid var(--gemboss-accent-tint, #dfe2ff);border-radius:16px;background:var(--gemboss-accent-wash, #f7f8ff);box-shadow:0 0 0 3px var(--gemboss-accent-soft, #eef0fe),var(--gemboss-shadow-raised, 0 4px 16px rgba(31, 30, 29, .1))}.gemboss-ec-decide-label{display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;font-size:var(--gemboss-fs-caption, 12px);font-weight:600;color:var(--gemboss-accent-strong, #3a44de)}.gemboss-ec-decide-label:before{content:"";flex:none;width:6px;height:6px;margin:0 2px 0 3px;border-radius:50%;background:var(--gemboss-accent, #5661f5);box-shadow:0 0 0 3px var(--gemboss-accent-tint, #dfe2ff)}.gemboss-ec-decide-how{font-weight:500;color:var(--gemboss-text-muted)}.gemboss-ec-decide-how:before{content:"\b7 "}.gb-chat-question{font-size:var(--gemboss-fs-body, 14px);font-weight:600;line-height:1.4}.gb-chat-question+.gemboss-ec-poll,.gb-chat-question+.gemboss-ec-chips{margin-top:0}.gb-chat-thing-pic>img,.gemboss-ec-opt-pic>img{width:40px;height:40px;object-fit:cover;box-sizing:border-box;border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-md, 8px);background:var(--ui-surface-2, #f6f6f7)}.gb-chat-thing{display:flex;align-items:center;gap:12px;min-width:0}.gb-chat-thing-pic{flex:none;display:flex}.gb-chat-thing-col{display:flex;flex-direction:column;gap:2px;min-width:0}.gb-chat-thing-name{overflow:hidden;font-size:var(--gemboss-fs-body, 14px);font-weight:600;text-overflow:ellipsis;white-space:nowrap}.gb-chat-thing-meta{font-size:var(--gemboss-fs-caption, 12px);color:var(--gemboss-text-muted)}.gemboss-ec-fb{display:flex;gap:4px;margin-top:6px}.gemboss-ec-fb-btn{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;border:none;background:transparent;color:var(--gemboss-text-muted);cursor:pointer;line-height:1;padding:4px;border-radius:8px;opacity:.55;transition:opacity .12s,background .12s}@media (hover: hover){.gemboss-ec-fb-btn:hover:not(:disabled){opacity:1;color:var(--gemboss-text);background:var(--gemboss-hover, rgba(0,0,0,.05))}}.gemboss-ec-fb-btn.on{opacity:1;color:var(--gemboss-text)}.gemboss-ec-fb-btn:disabled{cursor:default}.gemboss-ec-fb-btn:focus-visible{opacity:1;outline:2px solid var(--ui-focus, #5661f5);outline-offset:1px}.gemboss-ec-actions{display:flex;flex-direction:column;gap:12px;margin-top:2px}.gemboss-ec-cta{display:flex;flex-wrap:wrap;gap:8px}.gemboss-ec-msg>.gemboss-ec-actions{max-width:min(90%,68ch)}.gemboss-ec-cta-btn{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 16px;text-align:start;border-radius:12px;font-size:var(--gemboss-fs-body);font-weight:600;cursor:pointer;border:1px solid transparent;font-family:inherit;transition:transform .12s ease,box-shadow .12s ease}.gemboss-ec-cta-btn.primary{background:linear-gradient(120deg,var(--gemboss-primary),var(--gemboss-primary-dark));color:#fff;box-shadow:0 6px 16px #c2410c38}.gemboss-ec-cta-btn.ghost{background:var(--gemboss-surface);color:var(--gemboss-text);border-color:var(--gemboss-divider)}@media (hover: hover){.gemboss-ec-cta-btn:hover{transform:translateY(-1px)}}@media (hover: hover){.gemboss-ec-cta-btn.ghost:hover{border-color:var(--gemboss-primary);color:var(--gemboss-primary-dark)}}.gemboss-ec-cta-btn:disabled{opacity:.5;cursor:default;transform:none}.gemboss-ec-cta-btn:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-cta-arrow{flex:0 0 auto}.gemboss-ec-poll{display:flex;flex-direction:column;gap:6px;margin-top:6px}.gemboss-ec-opt{display:flex;align-items:center;gap:12px;text-align:left;width:100%;box-sizing:border-box;background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:12px;padding:8px 12px;cursor:pointer;color:var(--gemboss-text);font:inherit}@media (hover: hover){.gemboss-ec-opt:hover:not(:disabled){border-color:var(--gemboss-primary)}}.gemboss-ec-opt:disabled{opacity:.5;cursor:default}.gemboss-ec-opt:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-opt-pic{flex:none;display:flex}.gemboss-ec-opt-col{display:flex;flex-direction:column;min-width:0}.gemboss-ec-opt-label{font-size:13px;font-weight:500;overflow-wrap:anywhere}.gemboss-ec-opt-hint{font-size:12px;color:var(--gemboss-text-muted)}.gemboss-ec-opt-other,.gemboss-ec-chip-other{border-style:dashed}.gemboss-ec-opt-mark{flex:none;display:inline-grid;place-content:center;width:18px;height:18px;box-sizing:border-box;border:1.5px solid var(--gemboss-text-muted, #686b71);border-radius:50%;color:var(--gemboss-on-primary, #fff)}.gemboss-ec-opt-mark>svg{visibility:hidden}.gemboss-ec-poll[data-pick=many] .gemboss-ec-opt{position:relative}.gemboss-ec-poll[data-pick=many] .gemboss-ec-opt-mark{border-radius:5px}.gemboss-ec-opt-input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}.gemboss-ec-opt:has(>.gemboss-ec-opt-input:checked){border-color:var(--gemboss-accent, #5661f5);box-shadow:0 0 0 3px var(--gemboss-accent-soft, #eef0fe)}.gemboss-ec-opt:has(>.gemboss-ec-opt-input:checked)>.gemboss-ec-opt-mark{border-color:var(--gemboss-accent, #5661f5);background:var(--gemboss-accent, #5661f5)}.gemboss-ec-opt:has(>.gemboss-ec-opt-input:checked)>.gemboss-ec-opt-mark>svg{visibility:visible}.gemboss-ec-opt:has(>.gemboss-ec-opt-input:focus-visible){outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-opt:has(>.gemboss-ec-opt-input:disabled){opacity:.5;cursor:default}.gemboss-ec-opt-other .gemboss-ec-opt-col{flex:1}.gemboss-ec-opt-field{width:100%;margin-top:6px}.gemboss-ec-poll-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px}.gemboss-ec-poll-count{font-size:var(--gemboss-fs-caption, 12px);color:var(--gemboss-text-muted)}.gemboss-ec-opt-rec{margin-left:auto;font-size:11px;font-weight:600;color:var(--gemboss-accent-strong, #3a44de);background:var(--gemboss-accent-soft, #eef0fe);border-radius:var(--gemboss-radius-full, 999px);padding:1px 8px;white-space:nowrap}.gemboss-ec-pagecard{display:flex;flex-direction:column;gap:8px;margin:2px 0;padding:8px 12px;background:var(--gemboss-surface);border:1px solid var(--gemboss-divider);border-radius:12px;max-width:100%;box-sizing:border-box}.gemboss-ec-pagecard-head{display:flex;flex-direction:column;gap:1px;min-width:0}.gemboss-ec-pagecard-page{font-weight:700;color:var(--gemboss-text);overflow-wrap:anywhere}.gemboss-ec-pagecard-caption,.gemboss-ec-pagecard-note,.gemboss-ec-pagecard-more{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gemboss-ec-pagecard-bands{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.gemboss-ec-pagecard-band{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center}.gemboss-ec-pagecard-label{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gemboss-ec-pagecard-value{display:inline-flex;gap:8px;align-items:baseline;font-size:var(--gemboss-fs-caption);font-variant-numeric:tabular-nums;color:var(--gemboss-text)}.gemboss-ec-pagecard-stuck{grid-column:1 / -1;font-size:var(--gemboss-fs-caption);color:var(--gemboss-danger-strong);font-weight:600}.gemboss-ec-pagecard-track{grid-column:1 / -1;height:6px;border-radius:4px;background:var(--gemboss-divider);overflow:hidden}.gemboss-ec-pagecard-fill{display:block;height:100%;background:var(--gemboss-primary)}.gemboss-ec-pagecard-open{align-self:flex-start;min-height:32px;padding:6px 12px;border:1px solid var(--gemboss-divider);border-radius:8px;background:var(--gemboss-surface);color:var(--gemboss-primary-dark);font:inherit;font-weight:600;cursor:pointer}@media (hover: hover){.gemboss-ec-pagecard-open:hover{background:var(--gemboss-primary-soft)}}.gemboss-ec-pagecard-open:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-textchanges{display:flex;flex-direction:column;gap:8px;max-width:min(90%,68ch)}.gemboss-ec-textchange{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:var(--gemboss-radius-md);background:var(--gemboss-divider-soft);font-size:var(--gemboss-fs-body);line-height:1.5;word-break:break-word}.gemboss-ec-textchange-where{font-size:var(--gemboss-fs-caption, 12px);font-weight:600;color:var(--gemboss-text-muted)}.gemboss-ec-textchange-was{color:var(--gemboss-text-muted);text-decoration:line-through}.gemboss-ec-textchange-now{color:var(--gemboss-text);font-weight:600;text-decoration:none}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-cta-btn,.gemboss-ec-pagecard-open{min-height:44px}.gemboss-ec-fb-btn{min-height:44px;min-width:44px}.gemboss-ec-fb{gap:8px}.gb-chat-card-btn{min-height:44px}}@media (prefers-reduced-motion: reduce){@media (hover: hover){.gemboss-ec-cta-btn:hover{transform:none}}.gb-chat-card-bar>span{transition:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.gemboss-ec-toolbar-lead>.ui-menu{flex:none}.gemboss-ec-input .ui-menu.gemboss-ec-add>summary,.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary{position:relative;box-sizing:border-box;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:background-color var(--gemboss-transition-fast, .12s) ease}.gemboss-ec-input .ui-menu.gemboss-ec-add>summary{background-color:var(--gemboss-surface, #fff);color:var(--gemboss-text);box-shadow:inset 0 0 0 1px var(--gemboss-divider)}.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary{background-color:transparent;color:var(--gemboss-primary);box-shadow:none}.gemboss-ec-input .ui-menu.gemboss-ec-add[open]>summary{background-color:var(--gemboss-hover, rgba(0, 0, 0, .05))}@media (hover: hover){.gemboss-ec-input .ui-menu.gemboss-ec-add>summary:hover:not([aria-disabled=true]){background-color:var(--gemboss-hover, rgba(0, 0, 0, .05))}}.gemboss-ec-input .ui-menu.gemboss-ec-ai[open]>summary{background-color:color-mix(in srgb,var(--gemboss-primary) 10%,transparent)}@media (hover: hover){.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary:hover:not([aria-disabled=true]){background-color:color-mix(in srgb,var(--gemboss-primary) 10%,transparent)}}.gemboss-ec-input .ui-menu:is(.gemboss-ec-add,.gemboss-ec-ai)>summary:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-input .ui-menu:is(.gemboss-ec-add,.gemboss-ec-ai)>summary[aria-disabled=true]{opacity:.5;cursor:default}.gemboss-ec-input .ui-menu:is(.gemboss-ec-add,.gemboss-ec-ai)>summary svg{width:16px;height:16px}.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary .gb-engine-dot{position:absolute;top:2px;right:2px}.ui-menu.gemboss-ec-ai>.ui-menu__list{min-width:260px}.gemboss-ec-input .ui-menu.gemboss-ec-ai.is-paid>summary{width:auto;padding-inline:6px 9px;gap:4px;border-radius:999px;background-color:var(--gemboss-warning-soft, #fff8e0)}.gemboss-ec-input .ui-menu.gemboss-ec-ai.is-paid[open]>summary{background-color:color-mix(in srgb,var(--gemboss-warning, #9a6700) 14%,var(--gemboss-warning-soft, #fff8e0))}@media (hover: hover){.gemboss-ec-input .ui-menu.gemboss-ec-ai.is-paid>summary:hover:not([aria-disabled=true]){background-color:color-mix(in srgb,var(--gemboss-warning, #9a6700) 14%,var(--gemboss-warning-soft, #fff8e0))}}.gemboss-ec-ai-paid{font-size:var(--gemboss-fs-micro, 11px);line-height:16px;font-weight:650;color:var(--gemboss-warning, #9a6700)}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-input .ui-menu.gemboss-ec-add>summary,.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary{
|
|
1
|
+
.gemboss-ec-toolbar-lead>.ui-menu{flex:none}.gemboss-ec-input .ui-menu.gemboss-ec-add>summary,.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary{position:relative;box-sizing:border-box;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:background-color var(--gemboss-transition-fast, .12s) ease}.gemboss-ec-input .ui-menu.gemboss-ec-add>summary{background-color:var(--gemboss-surface, #fff);color:var(--gemboss-text);box-shadow:inset 0 0 0 1px var(--gemboss-divider)}.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary{background-color:transparent;color:var(--gemboss-primary);box-shadow:none}.gemboss-ec-input .ui-menu.gemboss-ec-add[open]>summary{background-color:var(--gemboss-hover, rgba(0, 0, 0, .05))}@media (hover: hover){.gemboss-ec-input .ui-menu.gemboss-ec-add>summary:hover:not([aria-disabled=true]){background-color:var(--gemboss-hover, rgba(0, 0, 0, .05))}}.gemboss-ec-input .ui-menu.gemboss-ec-ai[open]>summary{background-color:color-mix(in srgb,var(--gemboss-primary) 10%,transparent)}@media (hover: hover){.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary:hover:not([aria-disabled=true]){background-color:color-mix(in srgb,var(--gemboss-primary) 10%,transparent)}}.gemboss-ec-input .ui-menu:is(.gemboss-ec-add,.gemboss-ec-ai)>summary:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-input .ui-menu:is(.gemboss-ec-add,.gemboss-ec-ai)>summary[aria-disabled=true]{opacity:.5;cursor:default}.gemboss-ec-input .ui-menu:is(.gemboss-ec-add,.gemboss-ec-ai)>summary svg{width:16px;height:16px}.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary .gb-engine-dot{position:absolute;top:2px;right:2px}.ui-menu.gemboss-ec-ai>.ui-menu__list{min-width:260px}.gemboss-ec-input .ui-menu.gemboss-ec-ai.is-paid>summary{width:auto;padding-inline:6px 9px;gap:4px;border-radius:999px;background-color:var(--gemboss-warning-soft, #fff8e0)}.gemboss-ec-input .ui-menu.gemboss-ec-ai.is-paid[open]>summary{background-color:color-mix(in srgb,var(--gemboss-warning, #9a6700) 14%,var(--gemboss-warning-soft, #fff8e0))}@media (hover: hover){.gemboss-ec-input .ui-menu.gemboss-ec-ai.is-paid>summary:hover:not([aria-disabled=true]){background-color:color-mix(in srgb,var(--gemboss-warning, #9a6700) 14%,var(--gemboss-warning-soft, #fff8e0))}}.gemboss-ec-ai-paid{font-size:var(--gemboss-fs-micro, 11px);line-height:16px;font-weight:650;color:var(--gemboss-warning, #9a6700)}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-input .ui-menu.gemboss-ec-add>summary,.gemboss-ec-input .ui-menu.gemboss-ec-ai>summary{min-width:44px;min-height:44px}.gemboss-ec-input .ui-menu.gemboss-ec-add>summary{box-shadow:none}.gemboss-ec-input .ui-menu.gemboss-ec-add>summary:before{box-shadow:inset 0 0 0 1px var(--gemboss-divider)}.gemboss-ec-input .ui-menu.gemboss-ec-ai.is-paid>summary{width:auto;padding-inline:10px 14px}}.gemboss-ec-addnote{flex:1 0 100%;box-sizing:border-box;margin:0;padding:0 8px;border:solid transparent;border-width:0 1px;font-size:var(--gemboss-fs-caption);line-height:1.4;color:var(--gemboss-text-muted)}.gemboss-ec-addnote-problem{color:var(--gemboss-danger-strong, #8e1f0b)}.gemboss-ec-addnote:empty{position:absolute;width:1px;height:1px;padding:0;border-width:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.gb-chat-ideas{display:inline-flex;align-items:center;gap:4px;flex:none;box-sizing:border-box;height:28px;min-height:28px;padding:0 10px 0 8px;border:0;border-radius:999px;box-shadow:inset 0 0 0 1px var(--gemboss-divider);background:var(--gemboss-surface, #fff);color:var(--gemboss-text-muted);font:inherit;font-size:var(--gemboss-fs-caption, 12px);font-weight:600;line-height:1;white-space:nowrap;cursor:pointer}.gb-chat-ideas svg{flex:none}.gb-chat-ideas[aria-expanded=true]{color:var(--gemboss-text);background:var(--gemboss-hover, rgba(0, 0, 0, .05))}.gb-chat-ideas:focus-visible,.gb-chat-ideas-close:focus-visible,.gb-chat-ideas-more:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gb-chat-ideas:disabled{opacity:.5;cursor:default}@media (hover: hover){.gb-chat-ideas:hover:not(:disabled){background-color:var(--gemboss-hover, rgba(0, 0, 0, .05));color:var(--gemboss-text)}}.gb-chat-ideas-tray{display:grid;gap:8px;min-width:0;padding:4px 0 0}.gb-chat-ideas-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;font-size:var(--gemboss-fs-caption, 12px);font-weight:600;color:var(--gemboss-text-muted)}.gb-chat-ideas-tray .gemboss-ec-chips{margin-top:0}.gb-chat-ideas-close{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:28px;height:28px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--gemboss-text-muted);cursor:pointer}.gb-chat-ideas-more{justify-self:start;box-sizing:border-box;min-height:28px;padding:0 8px;border:0;border-radius:999px;background:transparent;font:inherit;font-size:var(--gemboss-fs-caption, 12px);font-weight:600;color:var(--gemboss-primary);cursor:pointer}@media (hover: hover){.gb-chat-ideas-close:hover,.gb-chat-ideas-more:hover{background:var(--gemboss-hover, rgba(0, 0, 0, .05))}}@media (pointer: coarse),(max-width: 47.9975em){.gb-chat-ideas{min-height:44px;box-shadow:none}.gb-chat-ideas:before{box-shadow:inset 0 0 0 1px var(--gemboss-divider)}.gb-chat-ideas-close{width:44px;height:44px}.gb-chat-ideas-more{min-height:44px;padding:0 12px;font-size:var(--gemboss-fs-body, 14px)}}
|
package/src/chat-composer.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gemboss-ec-toolbar{flex:1 0 100%;display:flex;align-items:center;gap:4px;min-width:0}.gemboss-ec-toolbar-lead{flex:1 1 auto;display:flex;align-items:center;gap:4px;min-width:0}.gemboss-ec-toolbar-lead:empty{display:none}.gemboss-ec-toolbar-lead:empty+*{margin-left:auto}.gemboss-ec-toolbar-tools{display:flex;align-items:center;gap:4px;flex:none;min-width:0}.gemboss-ec-toolbar-tools:empty{display:none}.gemboss-ec-input:has(>.gemboss-ec-toolbar>.gemboss-ec-toolbar-lead:empty){flex-wrap:nowrap;align-items:flex-end}.gemboss-ec-input:has(>.gemboss-ec-toolbar>.gemboss-ec-toolbar-lead:empty)>textarea{flex:1 1 0}.gemboss-ec-input:has(>.gemboss-ec-toolbar>.gemboss-ec-toolbar-lead:empty)>.gemboss-ec-toolbar{flex:0 0 auto}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-input .gemboss-ec-stop{width:44px;
|
|
1
|
+
.gemboss-ec-toolbar{flex:1 0 100%;display:flex;align-items:center;gap:4px;min-width:0}.gemboss-ec-toolbar-lead{flex:1 1 auto;display:flex;align-items:center;gap:4px;min-width:0}.gemboss-ec-toolbar-lead:empty{display:none}.gemboss-ec-toolbar-lead:empty+*{margin-left:auto}.gemboss-ec-toolbar-tools{display:flex;align-items:center;gap:4px;flex:none;min-width:0}.gemboss-ec-toolbar-tools:empty{display:none}.gemboss-ec-input:has(>.gemboss-ec-toolbar>.gemboss-ec-toolbar-lead:empty){flex-wrap:nowrap;align-items:flex-end}.gemboss-ec-input:has(>.gemboss-ec-toolbar>.gemboss-ec-toolbar-lead:empty)>textarea{flex:1 1 0}.gemboss-ec-input:has(>.gemboss-ec-toolbar>.gemboss-ec-toolbar-lead:empty)>.gemboss-ec-toolbar{flex:0 0 auto}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-input .gemboss-ec-stop{min-width:44px;min-height:44px}.gemboss-ec-input .gemboss-ec-stop-send{min-height:44px}}.gemboss-ec-stop{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;border:none;border-radius:50%;background:var(--gemboss-danger);color:var(--gemboss-on-primary, #fff);cursor:pointer}.gemboss-ec-stop svg{width:10px;height:10px;fill:currentColor}.gemboss-ec-stop:disabled{opacity:.6;cursor:default}@media (hover: hover){.gemboss-ec-stop:hover{filter:brightness(1.08)}}.gemboss-ec-stop:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-input textarea{font-size:16px}}.gemboss-ec-input.gemboss-ec-input--flush{margin:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gemboss-ec-slash{flex:1 0 100%;box-sizing:border-box;display:grid;gap:2px;max-height:240px;overflow-y:auto;margin:0;padding:4px;list-style:none;border:1px solid var(--gemboss-divider);border-radius:12px;background:var(--gemboss-surface)}.gemboss-ec-slash__item{display:grid;gap:2px;align-content:center;min-height:32px;padding:6px 8px;border-radius:8px;cursor:pointer}.gemboss-ec-slash__item[aria-selected=true]{background:var(--gemboss-hover)}@media (hover: hover){.gemboss-ec-slash__item:hover{background:var(--gemboss-hover)}}.gemboss-ec-slash__label{font-size:var(--gemboss-fs-body);color:var(--gemboss-text)}.gemboss-ec-slash__sub{font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-slash__item{min-height:44px}}
|
package/src/chat-voice.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gemboss-ec-input .gemboss-ec-mic{flex:0 0 auto;position:relative;width:28px;height:28px;min-width:28px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background-color:transparent;color:var(--gemboss-text-muted);cursor:pointer}.gemboss-ec-input .gemboss-ec-mic svg{width:16px;height:16px}@media (hover: hover){.gemboss-ec-input .gemboss-ec-mic:hover:not(:disabled){background-color:var(--gemboss-hover);color:var(--gemboss-text)}}.gemboss-ec-input .gemboss-ec-mic:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-input .gemboss-ec-mic:disabled{opacity:.5;cursor:default}.gemboss-ec-input .gemboss-ec-mic[aria-pressed=true]{background-color:var(--gemboss-danger-soft);color:var(--gemboss-danger-strong)}@media (hover: hover){.gemboss-ec-input .gemboss-ec-mic[aria-pressed=true]:hover:not(:disabled){background-color:var(--gemboss-danger-soft);color:var(--gemboss-danger-strong)}}.gemboss-ec-input .gemboss-ec-mic[aria-pressed=true]:after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--gemboss-danger-strong);pointer-events:none;animation:gemboss-ec-mic-ring 1.6s ease-out infinite}@keyframes gemboss-ec-mic-ring{0%{opacity:1;transform:scale(1)}to{opacity:.25;transform:scale(1.12)}}@media (prefers-reduced-motion: reduce){.gemboss-ec-input .gemboss-ec-mic[aria-pressed=true]:after{animation:none}}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-input .gemboss-ec-mic{width:44px;
|
|
1
|
+
.gemboss-ec-input .gemboss-ec-mic{flex:0 0 auto;position:relative;width:28px;height:28px;min-width:28px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background-color:transparent;color:var(--gemboss-text-muted);cursor:pointer}.gemboss-ec-input .gemboss-ec-mic svg{width:16px;height:16px}@media (hover: hover){.gemboss-ec-input .gemboss-ec-mic:hover:not(:disabled){background-color:var(--gemboss-hover);color:var(--gemboss-text)}}.gemboss-ec-input .gemboss-ec-mic:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gemboss-ec-input .gemboss-ec-mic:disabled{opacity:.5;cursor:default}.gemboss-ec-input .gemboss-ec-mic[aria-pressed=true]{background-color:var(--gemboss-danger-soft);color:var(--gemboss-danger-strong)}@media (hover: hover){.gemboss-ec-input .gemboss-ec-mic[aria-pressed=true]:hover:not(:disabled){background-color:var(--gemboss-danger-soft);color:var(--gemboss-danger-strong)}}.gemboss-ec-input .gemboss-ec-mic[aria-pressed=true]:after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--gemboss-danger-strong);pointer-events:none;animation:gemboss-ec-mic-ring 1.6s ease-out infinite}@keyframes gemboss-ec-mic-ring{0%{opacity:1;transform:scale(1)}to{opacity:.25;transform:scale(1.12)}}@media (prefers-reduced-motion: reduce){.gemboss-ec-input .gemboss-ec-mic[aria-pressed=true]:after{animation:none}}@media (pointer: coarse),(max-width: 47.9975em){.gemboss-ec-input .gemboss-ec-mic{min-width:44px;min-height:44px}.gemboss-ec-input .gemboss-ec-mic[aria-pressed=true]:after{margin:auto;width:28px;height:28px;box-sizing:border-box}}.gemboss-ec-voice{flex:1 0 100%;box-sizing:border-box;margin:0;padding:0 8px;border:solid transparent;border-width:0 1px;font-size:var(--gemboss-fs-caption);line-height:1.4;color:var(--gemboss-text-muted)}.gemboss-ec-voice:empty{position:absolute;width:1px;height:1px;padding:0;border-width:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.gemboss-ec-input:has(>.gemboss-ec-voice:not(:empty)):has(>.gemboss-ec-toolbar>.gemboss-ec-toolbar-lead:empty){flex-wrap:wrap}.gemboss-ec-voice-on{font-weight:600;color:var(--gemboss-danger-strong)}.gemboss-ec-voice-on:before{content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;vertical-align:1px;background-color:currentColor}.gemboss-ec-voice-problem{color:var(--gemboss-text)}
|