@gemboss/ui 0.48.0 → 0.51.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 +457 -0
- package/README.md +280 -12
- package/catalog/editor.html +25 -12
- package/catalog/index.html +641 -99
- package/gemboss-ui.css +3 -3
- package/package.json +29 -2
- package/parts/components.css +3 -3
- package/parts/core.css +1 -1
- package/parts/shell.css +2 -2
- package/src/app-shell.css +1 -1
- package/src/assistant/chat.tsx +50 -6
- package/src/assistant/host.tsx +19 -7
- package/src/assistant/index.ts +1 -1
- package/src/assistant/sessions.tsx +2 -1
- package/src/assistant-chat.css +1 -1
- package/src/assistant.css +1 -1
- package/src/auth-extras.css +1 -0
- package/src/auth-footer.css +1 -0
- package/src/auth-footer.tsx +71 -0
- package/src/auth-signin-plain.js +1 -0
- package/src/auth-sso-plain.js +1 -1
- package/src/auth-steps.css +1 -0
- package/src/auth-steps.tsx +179 -0
- package/src/auth.css +1 -1
- package/src/auth.tsx +239 -14
- package/src/briefing-card.css +1 -1
- package/src/collections.css +1 -1
- package/src/create-shell.css +1 -0
- package/src/create-shell.tsx +221 -0
- package/src/dialog.tsx +3 -0
- package/src/editor/color-picker.tsx +183 -0
- package/src/editor/controls.tsx +49 -33
- package/src/editor/index.ts +8 -0
- package/src/editor/picker-grid.tsx +186 -0
- package/src/editor/picker.tsx +275 -0
- package/src/editor/popover.tsx +160 -0
- package/src/editor/swatch.ts +2 -1
- package/src/editor-color.css +1 -0
- package/src/editor-insert.css +1 -0
- package/src/editor-picker-grid.css +1 -0
- package/src/editor-picker.css +1 -0
- package/src/editor-plain.js +1 -1
- package/src/editor-popover.css +1 -0
- package/src/editor.css +1 -1
- package/src/empty-stage.css +1 -0
- package/src/empty-stage.tsx +31 -0
- package/src/icons.tsx +6 -0
- package/src/index-table.tsx +7 -4
- package/src/index.ts +19 -2
- package/src/kit-plain.css +1 -1
- package/src/kit-plain.js +1 -1
- package/src/language-switcher.tsx +10 -41
- package/src/list-page.css +1 -0
- package/src/list-page.tsx +239 -0
- package/src/menu-extras.css +1 -0
- package/src/menu-keys.ts +199 -0
- package/src/menu-layer.ts +2 -1
- package/src/menu-plain.js +1 -0
- package/src/menu.css +1 -0
- package/src/menu.tsx +83 -35
- package/src/pager-extras.css +1 -0
- package/src/pager.css +1 -0
- package/src/pager.tsx +88 -0
- package/src/portal.css +1 -1
- package/src/segmented.tsx +12 -2
- package/src/selection.tsx +3 -1
- package/src/session-rail-plain.js +1 -1
- package/src/settings-dialog.tsx +29 -2
- package/src/shell.css +1 -1
- package/src/stage-path.css +1 -0
- package/src/stage-path.tsx +89 -0
- package/src/stage.css +1 -0
- package/src/stage.tsx +52 -0
- package/src/starting-point.css +1 -0
- package/src/starting-point.tsx +93 -0
- package/src/status-list.css +1 -0
- package/src/status-list.tsx +65 -0
- package/src/status-matrix.css +1 -0
- package/src/status-matrix.tsx +131 -0
- package/src/team-chat.css +1 -1
- package/src/theme.tsx +13 -3
- package/src/translation-row.css +1 -0
- package/src/translation-row.tsx +113 -0
- package/src/ui.css +1 -1
package/src/assistant/host.tsx
CHANGED
|
@@ -33,6 +33,8 @@ function elapsed(since: number): string {
|
|
|
33
33
|
export interface AssistantHostLabels {
|
|
34
34
|
ready: string; working: string; done: string;
|
|
35
35
|
answerWaiting: string; askAboutScreen: string;
|
|
36
|
+
/** The last answer ends on a question only the person can answer (the `waiting` prop). */
|
|
37
|
+
waiting: string;
|
|
36
38
|
reopen: string; hide: string; hideTitle: string; openInstead: string; openInsteadTitle: string;
|
|
37
39
|
grip: string; headerTitle: string;
|
|
38
40
|
newChat: string; openFull: string; minimize: string; minimizeTitle: string;
|
|
@@ -43,7 +45,7 @@ export interface AssistantHostLabels {
|
|
|
43
45
|
}
|
|
44
46
|
const EN: AssistantHostLabels = {
|
|
45
47
|
ready: "Ready", working: "Working", done: "Done — tap to see it",
|
|
46
|
-
answerWaiting: "An answer is waiting", askAboutScreen: "Ask about this screen",
|
|
48
|
+
answerWaiting: "An answer is waiting", askAboutScreen: "Ask about this screen", waiting: "Waiting on you",
|
|
47
49
|
reopen: "Reopen the {title}", hide: "Hide the assistant", hideTitle: "Hide the assistant",
|
|
48
50
|
openInstead: "Open the assistant", openInsteadTitle: "Still working — open it",
|
|
49
51
|
grip: "Drag to resize the assistant; left and right arrows move it sideways",
|
|
@@ -90,7 +92,7 @@ export function AssistantMenuItem({ danger, disabled, onClick, className, childr
|
|
|
90
92
|
/**
|
|
91
93
|
* The header's ⋯ (0.31.0, Chris 08/10/2026: "clear history lên topbar … nhiều icon rồi nên cần gom nhóm"). A `<details>`
|
|
92
94
|
* like the kit's Menu, but its position and trigger are the host's (assistant.css): the kit's `.ui-menu` rules live in
|
|
93
|
-
* kit-plain.css, which the admin
|
|
95
|
+
* menu.css (kit-plain.css until 23/10/2026), which the admin loads only with a kit Menu, while the row (`ui-menu__item`) and the surface
|
|
94
96
|
* (`gemboss-popover-surface`) are shell.css, which it does. Escape and an outside press close it, the way the engine
|
|
95
97
|
* picker's popup closes (engine.tsx): Escape with focus inside goes back to ⋯ and is stopped, so the surface's own
|
|
96
98
|
* "Escape hides the assistant" does not fire on the same key; an Escape meant for a modal elsewhere is left to it. It also
|
|
@@ -170,8 +172,15 @@ function useSideFits(): boolean {
|
|
|
170
172
|
|
|
171
173
|
export function AssistantHost({
|
|
172
174
|
title, labels, onNewChat, onClearHistory, canClearHistory = true, menuItems, onExpand, onShrink, fullActions, secondTab,
|
|
173
|
-
view = "primary", onViewChange, miniHint, allowSide = true, children,
|
|
175
|
+
view = "primary", onViewChange, miniHint, allowSide = true, waiting = false, children,
|
|
174
176
|
}: {
|
|
177
|
+
/**
|
|
178
|
+
* The chat's last answer ends on choices only the person can make, and nothing is running (0.49, 22/10/2026). The surface
|
|
179
|
+
* knows (its chat says so); the frame says it where the person looks when the chat is out of the way: "Waiting on you"
|
|
180
|
+
* and an amber dot on the status bar and the header, ahead of "Done" and "Ready". Not part of the dock state: the plain
|
|
181
|
+
* frame (assistant-plain.js) keeps its own copy of that reducer, and a question waiting is the chat's fact, not the frame's.
|
|
182
|
+
*/
|
|
183
|
+
waiting?: boolean;
|
|
175
184
|
/** "Gem assistant" in the admin. Names the region, the popup header and the status bar. */
|
|
176
185
|
title: string;
|
|
177
186
|
labels?: Partial<AssistantHostLabels>;
|
|
@@ -380,7 +389,10 @@ export function AssistantHost({
|
|
|
380
389
|
// Announced on the grip. Read at render (not in the key handler) so assistive tech is told the
|
|
381
390
|
// real ceiling for this window, which changes when the window does.
|
|
382
391
|
const maxDockHeight = clampDockHeight(Number.MAX_SAFE_INTEGER, typeof window === "undefined" ? 900 : window.innerHeight);
|
|
383
|
-
const statusText = dock.busy ? L.working : dock.unread ? L.done : L.ready;
|
|
392
|
+
const statusText = dock.busy ? L.working : waiting ? L.waiting : dock.unread ? L.done : L.ready;
|
|
393
|
+
// The waiting dot's colour is set here, not by a class: the compatibility bundle (gemboss-ui.css) carries assistant.css and
|
|
394
|
+
// sits at its gzip ceiling, and one more rule put it 8 B over (weight-gate, 22/10/2026).
|
|
395
|
+
const waitingDot = waiting && !dock.busy ? { background: "var(--gemboss-warning)" } : undefined;
|
|
384
396
|
// The surface's rows of the ⋯ menu, in the panel's header and in full screen's chrome alike.
|
|
385
397
|
const clearRow = onClearHistory ? (
|
|
386
398
|
<AssistantMenuItem danger disabled={!canClearHistory} onClick={onClearHistory}>{L.clearHistory}</AssistantMenuItem>
|
|
@@ -418,10 +430,10 @@ export function AssistantHost({
|
|
|
418
430
|
{mode === "mini" ? (
|
|
419
431
|
<div className="gb-dock-minirow">
|
|
420
432
|
<button type="button" className="gb-dock-minibar" onClick={dock.reopen} aria-label={L.reopen.replace("{title}", title)}>
|
|
421
|
-
<span className={`gb-dock-dot${dock.busy ? " gb-dock-dot-busy" : dock.unread ? " gb-dock-dot-unread" : ""}`} aria-hidden />
|
|
433
|
+
<span className={`gb-dock-dot${dock.busy ? " gb-dock-dot-busy" : !waiting && dock.unread ? " gb-dock-dot-unread" : ""}`} style={waitingDot} aria-hidden />
|
|
422
434
|
<strong>{title}</strong>
|
|
423
435
|
<span className="gb-dock-ministatus">
|
|
424
|
-
{dock.busy && runStartedAt ? `${L.working} · ${elapsed(runStartedAt)}` : dock.unread ? L.answerWaiting : miniHint || L.askAboutScreen}
|
|
436
|
+
{dock.busy && runStartedAt ? `${L.working} · ${elapsed(runStartedAt)}` : waiting ? L.waiting : dock.unread ? L.answerWaiting : miniHint || L.askAboutScreen}
|
|
425
437
|
</span>
|
|
426
438
|
<span className="gb-dock-minichevron" aria-hidden>▲</span>
|
|
427
439
|
</button>
|
|
@@ -487,7 +499,7 @@ export function AssistantHost({
|
|
|
487
499
|
onPointerCancel={isDock ? onHeaderUp : undefined}
|
|
488
500
|
title={isDock ? L.headerTitle : undefined}
|
|
489
501
|
>
|
|
490
|
-
<span className={`gb-dock-dot${dock.busy ? " gb-dock-dot-busy" : ""}`} aria-hidden />
|
|
502
|
+
<span className={`gb-dock-dot${dock.busy ? " gb-dock-dot-busy" : ""}`} style={waitingDot} aria-hidden />
|
|
491
503
|
<span className="gb-dock-title">{title}</span>
|
|
492
504
|
<span className="gb-dock-status">{statusText}</span>
|
|
493
505
|
<div className="gb-dock-actions">
|
package/src/assistant/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from "./dock";
|
|
|
6
6
|
export { AssistantWorkspaceLayout, OpenChatTabs, SessionRail, SESSION_RAIL_EN, groupSessions, normalizeForSearch, relativeTime, type AssistantSession, type SessionGroup, type SessionRailIcons, type SessionRailLabels } from "./sessions";
|
|
7
7
|
export { BRIDGE_TONE, BridgeNotice, ENGINE_PICKER_EN, EnginePanel, EnginePicker, engineChipName, useEnginePicker, type BridgeSetup, type BridgeState, type BridgeStatus, type Choice, type EngineChoice, type EnginePickerLabels, type EnginePickerProps, type EnginePickerTab } from "./engine";
|
|
8
8
|
// 0.29.0: the chat BODY as components (the surface hands in messages and actions), its markdown, and each engine's mark.
|
|
9
|
-
export { AssistantChat, ChatAttach, ChatBubble, ChatComposer, ChatError, ChatLabelsProvider, ChatMarkdown, ChatMessage, ChatMeta, ChatNote, ChatPending, ChatStarters, ChatSteps, ChatThread, CHAT_EN, PaperclipIcon, useComposerDensity, useFullChromeRoom, type AssistantChatProps, type ChatComposerProps, type ChatFix, type ChatLabels, type ChatMarkdownProps, type ChatMessageData, type ChatStarter, type ChatStep, type ComposerDensity } from "./chat";
|
|
9
|
+
export { AssistantChat, ChatAttach, ChatBubble, ChatComposer, ChatError, ChatLabelsProvider, ChatMarkdown, ChatMessage, ChatMeta, ChatNote, ChatPending, ChatStarters, ChatSteps, ChatThread, CHAT_EN, PaperclipIcon, firstBlank, selectBlank, useComposerDensity, useFullChromeRoom, type AssistantChatProps, type ChatComposerProps, type ChatFix, type ChatLabels, type ChatMarkdownProps, type ChatMessageData, type ChatStarter, type ChatStep, type ComposerDensity } from "./chat";
|
|
10
10
|
export { bareUrl, CODE_FOLD_LINES, FLEET_IMAGE_HOSTS, imageSource, linkTarget, parseBlocks, parseInline, type Block, type ImageHost, type Inline, type InlineOptions } from "./chat-markdown";
|
|
11
11
|
export { ENGINE_MARK_ART, ENGINE_MARK_FILL_RULE, EngineMark, isEngineMarkId, type EngineMarkArt, type EngineMarkId } from "./engine-mark";
|
|
12
12
|
export { atBridge, BRIDGE_GONE, bridgeTurnError, PAIRING_REJECTED, useChatTurns, type ChatTurns, type TurnError } from "./chat-turns";
|
|
@@ -278,7 +278,8 @@ export function SessionRail({
|
|
|
278
278
|
{s.pinned && <I.pinFilled className="gemboss-assistant-pin-dot" />}
|
|
279
279
|
<span className="gemboss-assistant-thread-title">{s.title}</span>
|
|
280
280
|
</span>
|
|
281
|
-
|
|
281
|
+
{/* When, then how it ended (the surface's `preview`, its closing line; learned from Replo, 23/10/2026): one line, cut with "…". */}
|
|
282
|
+
<span className="gemboss-assistant-thread-meta">{relativeTime(s.updatedAt, L)}{s.preview ? ` · ${s.preview}` : ""}</span>
|
|
282
283
|
</button>
|
|
283
284
|
<div className="gemboss-assistant-thread-actions">
|
|
284
285
|
<button
|
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)}.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:44px;height:44px;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}.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:24px;height:24px}@media (pointer: fine){.gemboss-ec-input .gb-engine-chip{position:relative}.gemboss-ec-input .gb-engine-chip:after{content:"";position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:44px;z-index:1}}@media (pointer: coarse),(max-width: 47.9975em){.gb-chat-original>summary{min-height:44px}}@media (max-width: 560px){.gb-dock-fullchrome .gb-dock-shrink:not(:has(svg)){padding:0 12px;width:auto}.gb-dock-fullchrome .gb-dock-shrink:not(:has(svg)) span{position:static;width:auto;height:auto;overflow:visible;clip:auto}}
|
|
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:44px;height:44px;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}.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:24px;height:24px}@media (pointer: fine){.gemboss-ec-input .gb-engine-chip{position:relative}.gemboss-ec-input .gb-engine-chip:after{content:"";position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:44px;z-index:1}}@media (pointer: coarse),(max-width: 47.9975em){.gb-chat-original>summary{min-height:44px}}@media (max-width: 560px){.gb-dock-fullchrome .gb-dock-shrink:not(:has(svg)){padding:0 12px;width:auto}.gb-dock-fullchrome .gb-dock-shrink:not(:has(svg)) span{position:static;width:auto;height:auto;overflow:visible;clip:auto}}.gemboss-ec-decide{display:flex;flex-direction:column;gap:8px;margin:0 12px;padding:12px;border:1px solid var(--gemboss-divider);border-radius:16px;background:var(--gemboss-surface);box-shadow:var(--gemboss-shadow-raised, 0 4px 16px rgba(31, 30, 29, .1))}.gemboss-ec-decide-label{font-size:var(--gemboss-fs-caption, 12px);font-weight:600;color:var(--gemboss-warning, #9a6700)}.gemboss-ec-decide+.gemboss-ec-input{margin-top:8px}
|
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;gap:8px}.gb-dock-shrink{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-full);background:var(--gemboss-surface);color:var(--gemboss-text-muted);font:inherit;font-size:var(--gemboss-fs-caption);cursor:pointer;white-space:nowrap}.gb-dock-shrink:hover{background:var(--gemboss-hover);color:var(--gemboss-text)}.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}@media (max-width: 560px){.gb-dock-shrink span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.gb-dock-shrink{padding:0;width:44px;justify-content:center}.gb-dock-shrink-keep span{position:static;width:auto;height:auto;overflow:visible;clip:auto}.gb-dock-shrink-keep{padding:0 12px;width:auto}.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-full)}}.gb-dock-mini{height:auto;width:min(320px,calc(100vw - 288px));-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border-radius:12px 12px 0 0}.gb-dock-mini .gb-dock-body{display:none}.gb-dock-minirow{display:flex;align-items:center;padding-right:4px}.gb-dock-minirow .gb-dock-minibar{flex:1 1 auto;min-width:0}.gb-dock-minirow .gb-dock-icon{flex:0 0 auto}.gb-dock-minibar{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:0 12px;border:0;background:transparent;font:inherit;color:var(--gemboss-text-strong);cursor:pointer;text-align:left}.gb-dock-minibar:hover{background:var(--gemboss-hover)}.gb-dock-minibar strong{font-size:13px;font-weight:600;flex:0 0 auto}.gb-dock-ministatus{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-minichevron{font-size:10px;color:var(--gemboss-text-muted)}.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:hover>span,.gb-dock-grip:focus-visible>span{background:var(--gemboss-text-muted)}.gb-dock-grip:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:-2px}.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:2px;cursor:default;margin-left:auto}.gb-dock-action{margin-right:8px}.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-menu-pill{width:44px;padding:0;justify-content:center}.gb-dock-menu-pill svg{width:18px;height:18px}.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}.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}.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;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-mini{width:auto}.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,.gb-dock-pinside{display:none}.gb-dock-menu-list>.gb-dock-pinside{display:none}}@media (min-width: 761px) and (max-width: 1099.98px){.gb-dock-side{left:240px;width:auto}.gb-dock-side .gb-dock-sidegrip,.gb-dock-pinside{display:none}.gb-dock-menu-list>.gb-dock-pinside{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}.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:hover,.gb-assistant-launcher--topbar:active{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}.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;gap:8px}.gb-dock-shrink{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid var(--gemboss-divider);border-radius:var(--gemboss-radius-full);background:var(--gemboss-surface);color:var(--gemboss-text-muted);font:inherit;font-size:var(--gemboss-fs-caption);cursor:pointer;white-space:nowrap}.gb-dock-shrink:hover{background:var(--gemboss-hover);color:var(--gemboss-text)}.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}@media (max-width: 560px){.gb-dock-shrink span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.gb-dock-shrink{padding:0;width:44px;justify-content:center}.gb-dock-shrink-keep span{position:static;width:auto;height:auto;overflow:visible;clip:auto}.gb-dock-shrink-keep{padding:0 12px;width:auto}.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-full)}}.gb-dock-mini{height:auto;width:min(320px,calc(100vw - 288px));-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border-radius:12px 12px 0 0}.gb-dock-mini .gb-dock-body{display:none}.gb-dock-minirow{display:flex;align-items:center;padding-right:4px}.gb-dock-minirow .gb-dock-minibar{flex:1 1 auto;min-width:0}.gb-dock-minirow .gb-dock-icon{flex:0 0 auto}.gb-dock-minibar{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:0 12px;border:0;background:transparent;font:inherit;color:var(--gemboss-text-strong);cursor:pointer;text-align:left}.gb-dock-minibar:hover{background:var(--gemboss-hover)}.gb-dock-minibar strong{font-size:13px;font-weight:600;flex:0 0 auto}.gb-dock-ministatus{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-minichevron{font-size:10px;color:var(--gemboss-text-muted)}.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:hover>span,.gb-dock-grip:focus-visible>span{background:var(--gemboss-text-muted)}.gb-dock-grip:focus-visible{outline:2px solid var(--gemboss-primary);outline-offset:-2px}.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:2px;cursor:default;margin-left:auto}.gb-dock-action{margin-right:8px}.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-menu-pill{width:44px;padding:0;justify-content:center}.gb-dock-menu-pill svg{width:18px;height:18px}.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}.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}.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-mini{width:auto}.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,.gb-dock-pinside{display:none}.gb-dock-menu-list>.gb-dock-pinside{display:none}}@media (min-width: 761px) and (max-width: 1099.98px){.gb-dock-side{left:240px;width:auto}.gb-dock-side .gb-dock-sidegrip,.gb-dock-pinside{display:none}.gb-dock-menu-list>.gb-dock-pinside{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}.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:hover,.gb-assistant-launcher--topbar:active{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}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gb-auth-stage--foot{flex-direction:column}.gb-auth-bottom{box-sizing:border-box;width:100%;max-width:380px;margin:clamp(12px,3cqh,24px) auto 0}@container gb-auth (min-width: 900px) and (min-height: 520px){.gb-auth-bottom{max-width:400px}}@container gb-auth (max-height: 399.98px){.gb-auth-bottom{display:none}}.gb-auth-field.gb-auth-field--forgot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}.gb-auth-field--forgot>.gb-auth-pw{grid-column:1 / -1;grid-row:2}.gb-auth-forgot{grid-column:2;grid-row:1;min-height:24px;margin:-4px 0;line-height:24px;color:var(--gb-accent);font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}.gb-auth-forgot:hover,.gb-auth-forgot:focus-visible{text-decoration:underline}.gb-auth-shot{margin:32px 0 0}.gb-auth-shot-win{position:relative;overflow:hidden;padding-top:28px;border-radius:12px;background:var(--gb-shot-bg, #ffffff);box-shadow:var(--gb-shot-shadow, 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 56px -12px rgba(0, 0, 0, .6))}.gb-auth-shot-win:before{content:"";position:absolute;inset:0 0 auto;box-sizing:border-box;height:28px;border-bottom:1px solid var(--gb-shot-line, #e7e8eb);background:var(--gb-shot-bar, #f6f6f7)}.gb-auth-shot-win:after{content:"";position:absolute;top:10px;left:12px;width:8px;height:8px;border-radius:50%;background:var(--gb-shot-dot, #d2d4d9);box-shadow:14px 0 var(--gb-shot-dot, #d2d4d9),28px 0 var(--gb-shot-dot, #d2d4d9)}.gb-auth-shot-win>img{display:block;width:100%;height:auto;max-height:calc(100cqh - 400px);object-fit:cover;object-position:left top}.gb-auth-shot figcaption{margin-top:12px;font-size:13px;line-height:1.5;color:var(--gb-panel-muted)}@container gb-auth (max-height: 599.98px){.gb-auth-shot{display:none}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gb-auth-footer{--gemboss-surface: var(--gb-surface);--gemboss-text: var(--gb-ink);--gemboss-text-strong: var(--gb-ink);--gemboss-text-muted: var(--gb-muted);--gemboss-hover: var(--gb-hover);--gemboss-divider: var(--gb-line);--gemboss-chip-line: var(--gb-field-line);--gemboss-chip-line-hover: var(--gb-hover-line);--gemboss-accent: var(--gb-accent);--gemboss-accent-strong: var(--gb-accent);--gemboss-primary: var(--gb-ink);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 8px;font-size:12px;color:var(--gb-muted)}.gb-auth-footer-tools{display:flex;align-items:center;gap:4px}.gb-auth-footer .gb-theme-toggle{width:44px;height:44px}.gb-auth-footer :is(.gb-lang--topbar,.gb-lang--inline)>.gb-lang__btn{height:44px;min-width:44px}.gb-auth-footer-links{display:flex;flex-wrap:wrap;align-items:center;margin-left:auto}.gb-auth-footer-links a{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:44px;min-height:44px;padding:0 8px;border-radius:8px;color:var(--gb-muted);font-weight:500;text-decoration:none}.gb-auth-footer-links a+a:before{content:"";position:absolute;top:50%;left:-1.5px;width:3px;height:3px;margin-top:-1.5px;border-radius:50%;background:var(--gb-field-line)}.gb-auth-footer-links a:hover{color:var(--gb-ink);text-decoration:underline}.gb-auth-footer-links a:focus-visible{outline:2px solid var(--gb-ink);outline-offset:-2px;color:var(--gb-ink)}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AuthFooter — @gemboss/ui, unreleased (24/10/2026). The row at the bottom of the sign-in screen's form column.
|
|
3
|
+
*
|
|
4
|
+
* Chris's design canvas (24/10/2026) for one sign-in and sign-up across GemBoss, GemCommunity and GemBoss Affiliates ends
|
|
5
|
+
* the left column with one row: the dark / light toggle, the EN / VI / 中 language button, then Help · Terms · Privacy.
|
|
6
|
+
* Each product drew its own corner for these (GemCommunity a "🌐 EN ⌄" on its sign-in pages, the admin nothing), so it
|
|
7
|
+
* lives here, and it is made of the kit's own controls rather than new ones:
|
|
8
|
+
* - the theme button is `ThemeToggle` (theme.tsx): the same `data-theme` on <html>, the same stored key that `themeScript`
|
|
9
|
+
* reads, so a choice made on the sign-in is the choice on every kit page after it. It is told to follow the OS while no
|
|
10
|
+
* choice has been made (`followsSystem`), because the sign-in screen does (auth.css);
|
|
11
|
+
* - the language button is `LanguageSwitcher` (language-switcher.tsx), the ghost `topbar` variant, its menu opening from
|
|
12
|
+
* its left edge. The bordered `inline` pill was tried first: at the row's 44px it stood out as the one boxed thing in a
|
|
13
|
+
* row of quiet links (screenshots 24/10/2026, 1280 and 390). A surface that wants it passes `language.variant`;
|
|
14
|
+
* - the links are plain links, each a 44px target.
|
|
15
|
+
*
|
|
16
|
+
* Render it through AuthLayout's `footer`, which places it under the card, not in it. Presentational: no state of its own,
|
|
17
|
+
* so a server component can render it (a language list of `href`s switches with no script). Its stylesheet travels with
|
|
18
|
+
* it (auth-footer.css, its own entry). The surface keeps the storage of the language (`language.onChange`), as with
|
|
19
|
+
* LanguageSwitcher anywhere, and should put `themeScript` in <head> so a stored theme is on before the first paint.
|
|
20
|
+
*/
|
|
21
|
+
import "./auth-footer.css";
|
|
22
|
+
import React from "react";
|
|
23
|
+
import { LanguageSwitcher, type LanguageSwitcherProps } from "./language-switcher";
|
|
24
|
+
import { ThemeToggle } from "./theme";
|
|
25
|
+
|
|
26
|
+
const cx = (...p: Array<string | false | null | undefined>) => p.filter(Boolean).join(" ");
|
|
27
|
+
|
|
28
|
+
/** The words it writes: the three links, and the name a screen reader hears for the group of links. */
|
|
29
|
+
export interface AuthFooterLabels {
|
|
30
|
+
help: string;
|
|
31
|
+
terms: string;
|
|
32
|
+
privacy: string;
|
|
33
|
+
links: string;
|
|
34
|
+
}
|
|
35
|
+
export const AUTH_FOOTER_LABELS: Readonly<AuthFooterLabels> = Object.freeze({ help: "Help", terms: "Terms", privacy: "Privacy", links: "Help and policies" });
|
|
36
|
+
|
|
37
|
+
export interface AuthFooterProps {
|
|
38
|
+
/** The dark / light button. Default on; `false` on a product with no dark theme behind its sign-in. */
|
|
39
|
+
theme?: boolean;
|
|
40
|
+
/** ThemeToggle's names for the button ("Switch to dark mode" / "Switch to light mode"). */
|
|
41
|
+
themeLabels?: { toDark: string; toLight: string };
|
|
42
|
+
/** The language button: LanguageSwitcher's props (`value`, and `onChange` or `href`s on the languages). Left out: none.
|
|
43
|
+
* `variant` defaults to `topbar` (the ghost button) and `end` to false (the menu opens from the button's left edge). */
|
|
44
|
+
language?: LanguageSwitcherProps;
|
|
45
|
+
/** Where Help, Terms and Privacy go. A link left out is not drawn. */
|
|
46
|
+
help?: string;
|
|
47
|
+
terms?: string;
|
|
48
|
+
privacy?: string;
|
|
49
|
+
labels?: Partial<AuthFooterLabels>;
|
|
50
|
+
className?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function AuthFooter({ theme = true, themeLabels, language, help, terms, privacy, labels, className }: AuthFooterProps) {
|
|
54
|
+
const L = { ...AUTH_FOOTER_LABELS, ...labels };
|
|
55
|
+
const links = ([[help, L.help], [terms, L.terms], [privacy, L.privacy]] as const).filter(([href]) => href);
|
|
56
|
+
return (
|
|
57
|
+
<footer className={cx("gb-auth-footer", className)}>
|
|
58
|
+
{theme || language ? (
|
|
59
|
+
<div className="gb-auth-footer-tools">
|
|
60
|
+
{theme ? <ThemeToggle labels={themeLabels} followsSystem /> : null}
|
|
61
|
+
{language ? <LanguageSwitcher variant="topbar" end={false} {...language} /> : null}
|
|
62
|
+
</div>
|
|
63
|
+
) : null}
|
|
64
|
+
{links.length ? (
|
|
65
|
+
<nav className="gb-auth-footer-links" aria-label={L.links}>
|
|
66
|
+
{links.map(([href, label]) => <a key={label} href={href}>{label}</a>)}
|
|
67
|
+
</nav>
|
|
68
|
+
) : null}
|
|
69
|
+
</footer>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(b){"use strict";var u=b.gembossUI||(b.gembossUI={}),j='<svg width="18" height="18" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M1.5 10S4.6 4.5 10 4.5 18.5 10 18.5 10 15.4 15.5 10 15.5 1.5 10 1.5 10Z"/><circle cx="10" cy="10" r="2.6"/></svg>',x="Couldn't reach the server. Check your connection and try again.",A=0,q=[];function G(r){return r&&r[0]==="/"&&r[1]!=="/"&&r[1]!=="\\"?r:"/"}function M(r){var g=0,I=!1,w=r&&r.onSignIn;return document.querySelectorAll("form[data-gb-signin]").forEach(function(t){if(t.getAttribute("data-gb-ready"))return;t.setAttribute("data-gb-ready","1");var s="gb-signin"+(A?"-"+A:""),L=t.getAttribute("data-sso");if(A++,g++,t.getAttribute("method")||(t.method="post"),L&&!(t.previousElementSibling&&t.previousElementSibling.classList.contains("gb-auth-sso")))if(!u.initContinueWithGemBoss)b.console&&b.console.error("auth-signin-plain.js: data-sso needs auth-sso-plain.js loaded first");else{var S=document.createElement("div"),m=document.createElement("a");S.className="gb-auth-sso",m.className="gb-auth-sso-btn",m.setAttribute("data-gb-sso",L),m.setAttribute("data-next",t.getAttribute("data-next")||"/"),t.getAttribute("data-issuer")&&m.setAttribute("data-issuer",t.getAttribute("data-issuer")),S.append(m),t.before(S),I=!0}var n=null;if(t.getAttribute("data-notice")){n=document.createElement("p"),n.id=s+"-notice",n.className="gb-auth-notice",n.setAttribute("role","status"),n.textContent=t.getAttribute("data-notice");var W=t.previousElementSibling&&t.previousElementSibling.classList.contains("gb-auth-sso")?t.previousElementSibling:t;W.before(n)}if(t.classList.add("gb-auth-form"),t.innerHTML='<div class="gb-auth-field"><label for="'+s+'-email">Email</label><input class="gb-auth-input" id="'+s+'-email" type="email" name="email" autocomplete="username" required></div><div class="gb-auth-field"><label for="'+s+'-password">Password</label><div class="gb-auth-pw"><input class="gb-auth-input" id="'+s+'-password" type="password" name="password" autocomplete="current-password" required><button type="button" aria-controls="'+s+'-password" aria-label="Show password" title="Show password" data-label-show="Show password" data-label-hide="Hide password" class="gb-auth-pw-toggle">'+j+'</button></div></div><div id="'+s+'-error"></div><button type="submit" class="gb-auth-submit">Sign in</button>',t.getAttribute("data-next")){var h=document.createElement("input");h.type="hidden",h.name="next",h.value=t.getAttribute("data-next"),t.prepend(h)}var l=t.querySelector('input[name="email"]'),d=t.querySelector('input[name="password"]'),p=t.querySelector(".gb-auth-pw-toggle"),E=t.querySelector("#"+s+"-error"),C=t.querySelector(".gb-auth-submit"),B=t.getAttribute("data-forgot");if(B){var N=d.closest(".gb-auth-field"),f=document.createElement("a");N.classList.add("gb-auth-field--forgot"),f.className="gb-auth-forgot",f.setAttribute("href",B),f.textContent=t.getAttribute("data-forgot-label")||"Forgot password?",N.append(f)}function v(e,o){if(E.textContent="",e){var i=document.createElement("div");i.className="gb-auth-error",i.setAttribute("role","alert"),i.textContent=e,E.append(i)}[l,d].forEach(function(a){var y=[a===l&&n&&n.id,e&&s+"-error"].filter(Boolean).join(" ");e&&o?a.setAttribute("aria-invalid","true"):a.removeAttribute("aria-invalid"),y?a.setAttribute("aria-describedby",y):a.removeAttribute("aria-describedby")})}function c(e){C.disabled=e,C.textContent=e?"Signing in\u2026":"Sign in"}function T(e){var o=p.getAttribute(e?"data-label-hide":"data-label-show");d.type=e?"text":"password",p.setAttribute("aria-label",o),p.setAttribute("title",o);var i=p.querySelector("svg"),a=i.querySelector('path[d="M3 17 17 3"]');e&&!a?(a=document.createElementNS("http://www.w3.org/2000/svg","path"),a.setAttribute("d","M3 17 17 3"),i.append(a)):!e&&a&&a.remove()}p.addEventListener("click",function(e){e.stopPropagation(),T(d.type==="password")});function F(e){var o=typeof e=="string"?e:e?e.message||"Couldn't sign in. Try again.":"";o&&(v(o,!(e&&typeof e=="object"&&e.fields===!1)),c(!1))}q.push({f:t,reset:function(){v(""),c(!1),d.value="",T(!1),u.resetContinueWithGemBoss&&u.resetContinueWithGemBoss()}}),v(t.getAttribute("data-error"),t.getAttribute("data-error-fields")!=="false");var k=document.activeElement,H=document.querySelector("a[data-gb-sso]")&&u.continuesByItself&&u.continuesByItself();t.hasAttribute("data-autofocus")&&(!k||k===document.body)&&!H&&l.focus(),b.addEventListener("pageshow",function(e){e.persisted&&c(!1)}),t.addEventListener("submit",function(e){if(l.value=l.value.trim(),n&&(n.remove(),n=null,E.firstChild?l.setAttribute("aria-describedby",s+"-error"):l.removeAttribute("aria-describedby")),!w&&t.getAttribute("data-submit")!=="json"){c(!0);return}if(e.preventDefault(),!C.disabled){c(!0),v("");var o={email:l.value,password:d.value};(w?Promise.resolve().then(function(){return w(o,t)}):fetch(t.action,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(o)}).then(function(i){if(i.redirected){location.assign(i.url);return}if(i.ok){location.assign(G(t.getAttribute("data-next")));return}return i.json().catch(function(){return null}).then(function(a){a=a||{};var y=[a.error,a.detail,a.message].filter(function(P){return typeof P=="string"&&P})[0];return{message:y||"Couldn't sign in (HTTP "+i.status+"). Try again.",fields:[400,401,422].indexOf(i.status)>=0}})})).then(F,function(){v(x,!1),c(!1)})}})}),I&&u.initContinueWithGemBoss(),g}function O(r){q.forEach(function(g){(!r||g.f===r)&&g.reset()})}u.initSignIn=M,u.resetSignIn=O})(typeof globalThis<"u"?globalThis:this);
|
package/src/auth-sso-plain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(n){"use strict";var a=n.gembossUI||(n.gembossUI={}),g="https://admin.gemboss.ai",u={not_member:"Your GemBoss account is not a member here. Ask an admin to add your email.",invalid:"That sign-in did not go through. Try again, or use the password.",off:"Signing in with GemBoss is not available here yet. Use the password."},b='<svg viewBox="0 0 32 32" width="18" height="18" aria-hidden="true" focusable="false"><rect width="32" height="32" rx="7"/><g transform="translate(16,16) scale(0.24) translate(-50,-62)"><polygon points="26,14 74,14 66,50 34,50" fill="#8a93ff"/><path d="M26,14 74,14 96,50 50,110 4,50Z" fill="none" stroke="#f4f4f2" stroke-width="5" stroke-linejoin="round"/><path d="M4,50H96M26,14 34,50M74,14 66,50M34,50 50,110M66,50 50,110" fill="none" stroke="#f4f4f2" stroke-opacity="0.72" stroke-width="3" stroke-linejoin="round"/></g></svg>';function c(){var t=new URLSearchParams(location.search);return!t.has("sso")&&t.get("password")!=="1"&&/(?:^|;\s*)gb_sso=1(?:;|$)/.test(document.cookie)}function m(){var t=document.querySelectorAll("a[data-gb-sso]");if(!t.length)return!1;var s=new URLSearchParams(location.search).get("sso"),f=c(),o=null;return t.forEach(function(e){if(!e.getAttribute("data-gb-sso-ready")){e.setAttribute("data-gb-sso-ready","1");var v=(e.getAttribute("data-issuer")||g)+"/api/auth/sso/authorize?service="+encodeURIComponent(e.getAttribute("data-gb-sso"))+"&next="+encodeURIComponent(e.getAttribute("data-next")||"/")+"&host="+encodeURIComponent(location.host);e.href=v,o=o||e,e.querySelector("svg")||(e.innerHTML=b+'<span class="gb-auth-sso-label">Continue with GemBoss</span>',e.querySelector("rect").style.fill="var(--gb-mark-bg, #0b0b0c)");var i=e.closest(".gb-auth-sso")||e.parentNode;if(s&&!i.querySelector(".gb-auth-sso-why")){var r=document.createElement("p");r.className="gb-auth-sso-why",r.setAttribute("role","status"),r.textContent=u[s]||u.invalid,e.after(r)}if(!i.querySelector(".gb-auth-or")){var l=document.createElement("p");l.className="gb-auth-or",l.textContent="or use the password",i.append(l)}e.addEventListener("click",function(){h(e)})}}),f&&o&&(h(o),location.replace(o.href)),f&&!!o}function h(t){var s=t.querySelector(".gb-auth-sso-label");s&&(s.textContent="Continuing with GemBoss\u2026")}function d(){document.querySelectorAll(".gb-auth-sso-label").forEach(function(t){t.textContent="Continue with GemBoss"}),new URLSearchParams(location.search).has("sso")||document.querySelectorAll(".gb-auth-sso-why").forEach(function(t){t.remove()})}n.addEventListener&&n.addEventListener("pageshow",function(t){t.persisted&&d()}),a.initContinueWithGemBoss=m,a.continuesByItself=c,a.resetContinueWithGemBoss=d})(typeof globalThis<"u"?globalThis:this);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.gb-auth-steps{margin:0 0 clamp(12px,3cqh,20px)}.gb-auth-steps-head{display:flex;justify-content:space-between;gap:12px;margin:0 0 8px;font-size:12px;line-height:16px;color:var(--gb-muted)}.gb-auth-steps-name{color:var(--gb-ink);font-weight:600;text-align:right}.gb-auth-steps-bar{display:flex;gap:6px;margin:0;padding:0;list-style:none}.gb-auth-seg{flex:1;height:4px;border-radius:2px;background:var(--gb-line)}.gb-auth-seg--done,.gb-auth-seg[aria-current=step]{background:var(--gb-accent)}.gb-auth-seg>span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.gb-auth-choices,.gb-auth-chips{min-width:0;margin:0;padding:0;border:0}.gb-auth-choices{display:grid;gap:8px}.gb-auth-chips{display:flex;flex-wrap:wrap;gap:8px}.gb-auth-q{margin:0 0 4px;padding:0;font-size:15px;font-weight:650;line-height:1.35;color:var(--gb-ink)}.gb-auth-choices>.gb-auth-choice,.gb-auth-chips>.gb-auth-chip{position:relative;flex-direction:row;box-sizing:border-box;border:1px solid var(--gb-field-line);background:var(--gb-surface);color:var(--gb-ink);cursor:pointer;transition:border-color .12s,background-color .12s}.gb-auth-choices>.gb-auth-choice{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:12px;font-size:14px;font-weight:400}.gb-auth-chips>.gb-auth-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 14px;border-radius:999px;font-size:13px;font-weight:500}.gb-auth-choices>.gb-auth-choice:hover,.gb-auth-chips>.gb-auth-chip:hover{border-color:var(--gb-hover-line)}.gb-auth-choices>.gb-auth-choice:has(>:checked),.gb-auth-chips>.gb-auth-chip:has(>:checked){border-color:var(--gb-ink);box-shadow:inset 0 0 0 1px var(--gb-ink);background:var(--gb-field-hover)}.gb-auth-choices>.gb-auth-choice:has(>:disabled),.gb-auth-chips>.gb-auth-chip:has(>:disabled){cursor:default;opacity:.55}.gb-auth-choice>.gb-auth-choice-input,.gb-auth-chip>.gb-auth-chip-input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--gb-ink);cursor:inherit}.gb-auth-chip>.gb-auth-chip-input{width:16px;height:16px;margin:0}.gb-auth-choice-text{display:grid;gap:2px;min-width:0}.gb-auth-choice-title{font-weight:600}.gb-auth-choice-line{color:var(--gb-muted);font-size:13px;line-height:1.45}.gb-auth-choice-note{color:var(--gb-accent);font-size:12px;font-weight:600}.gb-auth-actions{display:flex;gap:8px;margin-top:clamp(2px,.75cqh,6px)}.gb-auth-actions>.gb-auth-submit,.gb-auth-actions>.gb-auth-back{min-height:44px;padding:0 16px;border-radius:8px;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}.gb-auth-actions>.gb-auth-submit{flex:1;border:none;background:var(--gb-btn);color:var(--gb-btn-ink);transition:opacity .15s ease,transform .15s ease}.gb-auth-actions>.gb-auth-submit:hover:not(:disabled){transform:translateY(-1px)}.gb-auth-actions>.gb-auth-back{flex:none;min-width:96px;border:1px solid var(--gb-field-line);background:var(--gb-surface);color:var(--gb-ink)}.gb-auth-actions>.gb-auth-back:hover:not(:disabled){background:var(--gb-hover);border-color:var(--gb-hover-line)}.gb-auth-actions>.gb-auth-back:focus-visible{outline:2px solid var(--gb-ink);outline-offset:1px}.gb-auth-actions>:disabled{opacity:.6;cursor:not-allowed}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A sign-up of several steps on the sign-in screen — @gemboss/ui, unreleased (24/10/2026).
|
|
3
|
+
*
|
|
4
|
+
* Chris's design canvas (24/10/2026) for GemBoss, GemCommunity and GemBoss Affiliates: a sign-up longer than a name and a
|
|
5
|
+
* password is asked ONE QUESTION A STEP, inside the same card. What every step shares is here:
|
|
6
|
+
* - `AuthSteps`: "Step 1 of 3" on the left, the step's name on the right, and a bar with one segment per step, the done
|
|
7
|
+
* and current ones in iris. The segments are a list a screen reader hears ("Account, done", then the current step,
|
|
8
|
+
* marked `aria-current="step"`);
|
|
9
|
+
* - `AuthStepActions`: Back and Continue side by side (no Back on the first step). Continue is the form's submit, so
|
|
10
|
+
* Enter in a field moves on and the browser checks `required` first; on the last step its words say what it sends;
|
|
11
|
+
* - `AuthChoices`: a question answered by picking one card ("You join as": Affiliate / Agency). Each card is a real radio
|
|
12
|
+
* in a label, a title, one line and a small iris note; the chosen one has a 2px ink edge on a light surface;
|
|
13
|
+
* - `AuthChips`: a question answered by picking several (checkboxes in 44px pills).
|
|
14
|
+
*
|
|
15
|
+
* Why not the kit's QuestionCard (question-card.tsx) for the choices: it is a whole card with its own confirm button and
|
|
16
|
+
* a cap of three, drawn from the admin core's --ui-* tokens with an iris selection, for the assistant's questions. These
|
|
17
|
+
* sit inside a form whose button is Continue, on a screen that runs without the core (GemCommunity, Affiliates) and has
|
|
18
|
+
* its own dark mode, so they are drawn from auth.css's --gb-* tokens. The behaviour is QuestionCard's: real inputs, the
|
|
19
|
+
* chosen one found by `:has(:checked)`. Nor `ui-chip` / `ui-create-chip`: those are buttons (aria-pressed) that filter a
|
|
20
|
+
* list in place; a form's answer is a checkbox, which posts with the form and needs no script.
|
|
21
|
+
*
|
|
22
|
+
* Presentational, no state of their own: the surface keeps the step and the answers. Controlled (`value` + `onChange`)
|
|
23
|
+
* or not (`defaultValue`, read from the form on submit). They import auth.css (Continue is its `gb-auth-submit`) and their
|
|
24
|
+
* own entry, auth-steps.css.
|
|
25
|
+
*/
|
|
26
|
+
import "./auth.css";
|
|
27
|
+
import "./auth-steps.css";
|
|
28
|
+
import React from "react";
|
|
29
|
+
|
|
30
|
+
const cx = (...p: Array<string | false | null | undefined>) => p.filter(Boolean).join(" ");
|
|
31
|
+
|
|
32
|
+
export interface AuthStepsProps {
|
|
33
|
+
/** Each step's short name, in order: "Account", "About you", "Payout". */
|
|
34
|
+
steps: readonly React.ReactNode[];
|
|
35
|
+
/** The step being shown, counted from 1 as it is printed. Clamped into 1..steps.length. */
|
|
36
|
+
step: number;
|
|
37
|
+
/** The words on the left. Default "Step 2 of 3". */
|
|
38
|
+
count?: (step: number, total: number) => React.ReactNode;
|
|
39
|
+
/** The list's name for a screen reader (default "Steps"). */
|
|
40
|
+
label?: string;
|
|
41
|
+
/** Said after a finished step's name (default "done"). */
|
|
42
|
+
doneLabel?: string;
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function AuthSteps({ steps, step, count = (n, total) => `Step ${n} of ${total}`, label = "Steps", doneLabel = "done", className }: AuthStepsProps) {
|
|
47
|
+
const total = steps.length;
|
|
48
|
+
if (!total) return null;
|
|
49
|
+
const now = Math.min(Math.max(Math.round(step) || 1, 1), total);
|
|
50
|
+
return (
|
|
51
|
+
<div className={cx("gb-auth-steps", className)}>
|
|
52
|
+
<p className="gb-auth-steps-head">
|
|
53
|
+
<span>{count(now, total)}</span>
|
|
54
|
+
<span className="gb-auth-steps-name">{steps[now - 1]}</span>
|
|
55
|
+
</p>
|
|
56
|
+
<ol className="gb-auth-steps-bar" aria-label={label}>
|
|
57
|
+
{steps.map((name, i) => (
|
|
58
|
+
<li key={i} className={cx("gb-auth-seg", i + 1 < now && "gb-auth-seg--done")} aria-current={i + 1 === now ? "step" : undefined}>
|
|
59
|
+
<span>{name}{i + 1 < now ? `, ${doneLabel}` : null}</span>
|
|
60
|
+
</li>
|
|
61
|
+
))}
|
|
62
|
+
</ol>
|
|
63
|
+
</div>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Back and Continue, side by side, at the end of a step's form. Continue is `type="submit"`: the surface moves on in the
|
|
69
|
+
* form's onSubmit. `onBack` left out (the first step): Continue alone, full width, like Sign in.
|
|
70
|
+
*/
|
|
71
|
+
export function AuthStepActions({ onBack, backLabel = "Back", busy, children }: {
|
|
72
|
+
onBack?: () => void;
|
|
73
|
+
backLabel?: React.ReactNode;
|
|
74
|
+
/** While the step is being sent: both buttons off, so it is not sent twice and nobody leaves halfway. */
|
|
75
|
+
busy?: boolean;
|
|
76
|
+
/** Continue's words: "Continue", and on the last step what it does ("Send application"). */
|
|
77
|
+
children: React.ReactNode;
|
|
78
|
+
}) {
|
|
79
|
+
return (
|
|
80
|
+
<div className="gb-auth-actions">
|
|
81
|
+
{onBack ? <button type="button" className="gb-auth-back" onClick={onBack} disabled={busy}>{backLabel}</button> : null}
|
|
82
|
+
<button type="submit" className="gb-auth-submit" disabled={busy}>{children}</button>
|
|
83
|
+
</div>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** One card of `AuthChoices`. */
|
|
88
|
+
export interface AuthChoiceOption {
|
|
89
|
+
/** What the radio posts and `onChange` carries. Unique in the question. */
|
|
90
|
+
value: string;
|
|
91
|
+
title: React.ReactNode;
|
|
92
|
+
/** One line under the title: what it means. */
|
|
93
|
+
line?: React.ReactNode;
|
|
94
|
+
/** The small iris note: "30% recurring", "From 5 clients". */
|
|
95
|
+
note?: React.ReactNode;
|
|
96
|
+
disabled?: boolean;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** The radios' value props, controlled or not. */
|
|
100
|
+
const checkedProps = (on: boolean, controlled: boolean) => (controlled ? { checked: on } : { defaultChecked: on });
|
|
101
|
+
|
|
102
|
+
export function AuthChoices({ name, legend, options, value, defaultValue, onChange, required, className }: {
|
|
103
|
+
/** The radios' name: what the form posts. */
|
|
104
|
+
name: string;
|
|
105
|
+
/** The step's question, as the group's legend: "You join as". */
|
|
106
|
+
legend: React.ReactNode;
|
|
107
|
+
options: readonly AuthChoiceOption[];
|
|
108
|
+
/** Controlled: the chosen `value` (with `onChange`). */
|
|
109
|
+
value?: string;
|
|
110
|
+
/** Not controlled: the one chosen at first. */
|
|
111
|
+
defaultValue?: string;
|
|
112
|
+
onChange?: (value: string) => void;
|
|
113
|
+
/** The browser asks for an answer before Continue goes. */
|
|
114
|
+
required?: boolean;
|
|
115
|
+
className?: string;
|
|
116
|
+
}) {
|
|
117
|
+
const controlled = value !== undefined;
|
|
118
|
+
return (
|
|
119
|
+
<fieldset className={cx("gb-auth-choices", className)}>
|
|
120
|
+
<legend className="gb-auth-q">{legend}</legend>
|
|
121
|
+
{options.map((o) => (
|
|
122
|
+
<label className="gb-auth-choice" key={o.value}>
|
|
123
|
+
<input className="gb-auth-choice-input" type="radio" name={name} value={o.value} required={required} disabled={o.disabled}
|
|
124
|
+
{...checkedProps((controlled ? value : defaultValue) === o.value, controlled)}
|
|
125
|
+
onChange={() => onChange?.(o.value)} />
|
|
126
|
+
<span className="gb-auth-choice-text">
|
|
127
|
+
<span className="gb-auth-choice-title">{o.title}</span>
|
|
128
|
+
{o.line ? <span className="gb-auth-choice-line">{o.line}</span> : null}
|
|
129
|
+
{o.note ? <span className="gb-auth-choice-note">{o.note}</span> : null}
|
|
130
|
+
</span>
|
|
131
|
+
</label>
|
|
132
|
+
))}
|
|
133
|
+
</fieldset>
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** One pill of `AuthChips`. */
|
|
138
|
+
export interface AuthChipOption {
|
|
139
|
+
value: string;
|
|
140
|
+
label: React.ReactNode;
|
|
141
|
+
disabled?: boolean;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function AuthChips({ name, legend, options, value, defaultValue, onChange, className }: {
|
|
145
|
+
/** The checkboxes' name: the form posts one `name=value` per pill ticked. */
|
|
146
|
+
name: string;
|
|
147
|
+
/** The step's question: "Where do you share links?". */
|
|
148
|
+
legend: React.ReactNode;
|
|
149
|
+
options: readonly AuthChipOption[];
|
|
150
|
+
/** Controlled: the ticked values (with `onChange`). */
|
|
151
|
+
value?: readonly string[];
|
|
152
|
+
/** Not controlled: the ones ticked at first. */
|
|
153
|
+
defaultValue?: readonly string[];
|
|
154
|
+
/** Every ticked value after the change, in the pills' order. */
|
|
155
|
+
onChange?: (value: string[]) => void;
|
|
156
|
+
className?: string;
|
|
157
|
+
}) {
|
|
158
|
+
const controlled = value !== undefined;
|
|
159
|
+
const on = controlled ? value : defaultValue ?? [];
|
|
160
|
+
// The set after a change, read from the group itself: the same answer whether React or the browser holds the boxes.
|
|
161
|
+
const changed = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
162
|
+
const box = e.currentTarget.closest("fieldset");
|
|
163
|
+
if (!box || !onChange) return;
|
|
164
|
+
onChange(Array.from(box.querySelectorAll<HTMLInputElement>("input[type=checkbox]"))
|
|
165
|
+
.filter((i) => i.name === name && i.checked).map((i) => i.value));
|
|
166
|
+
};
|
|
167
|
+
return (
|
|
168
|
+
<fieldset className={cx("gb-auth-chips", className)}>
|
|
169
|
+
<legend className="gb-auth-q">{legend}</legend>
|
|
170
|
+
{options.map((o) => (
|
|
171
|
+
<label className="gb-auth-chip" key={o.value}>
|
|
172
|
+
<input className="gb-auth-chip-input" type="checkbox" name={name} value={o.value} disabled={o.disabled}
|
|
173
|
+
{...checkedProps(on.includes(o.value), controlled)} onChange={changed} />
|
|
174
|
+
<span>{o.label}</span>
|
|
175
|
+
</label>
|
|
176
|
+
))}
|
|
177
|
+
</fieldset>
|
|
178
|
+
);
|
|
179
|
+
}
|
package/src/auth.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gb-auth{--gb-surface: #ffffff;--gb-ink: var(--gemboss-text-strong, #1b1c1e);--gb-muted: #6d7175;--gb-line: #e1e3e5;--gb-field-line: #c9cccf;--gb-field-bg: #ffffff;--gb-field-hover: #fafafa;--gb-placeholder: #868b94;--gb-accent: #5661f5;--gb-btn: linear-gradient(120deg, #1b1c1e 0%, #000000 100%);--gb-btn-ink: #ffffff;--gb-wordmark: linear-gradient(120deg, #1b1c1e 0%, #000000 100%);--gb-hover: #f7f7f5;--gb-hover-line: #b9bbc0;--gb-err-bg: #fee2e2;--gb-err-ink: #b91c1c;--gb-err-line: transparent;--gb-card-shadow: 0 24px 64px rgba(15, 23, 42, .08);--gb-mark-bg: #0b0b0c;--gb-facet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.45' stroke-linejoin='round'%3E%3Cpath d='M26,14 74,14 96,50 50,110 4,50Z'/%3E%3Cpath d='M4,50H96M26,14 34,50M74,14 66,50M34,50 50,110M66,50 50,110'/%3E%3C/g%3E%3C/svg%3E");--gb-page: radial-gradient(1200px 600px at 20% 10%, rgba(27, 28, 30, .05), transparent 60%), radial-gradient(1000px 500px at 80% 90%, rgba(86, 97, 245, .06), transparent 60%), #fafafb;--gb-page-flat: #ffffff;--gb-panel-bg: radial-gradient(900px 520px at 78% 12%, rgba(86, 97, 245, .26), transparent 62%), radial-gradient(700px 480px at 12% 96%, rgba(86, 97, 245, .12), transparent 60%), #0b0b0c;--gb-panel-ink: #f4f4f2;--gb-panel-muted: rgba(244, 244, 242, .72);--gb-panel-eyebrow: #8a93ff;--gb-panel-facet-o: .05;--gb-panel-grid-bg: linear-gradient(160deg, #1b1c22 0%, #0b0b0c 72%);--gb-panel-grid-line: rgba(138, 147, 255, .1);--gb-panel-grid-size: 34px;--gb-panel-grid-fade: radial-gradient(90% 80% at 30% 20%, #000, transparent 75%);color-scheme:light dark;position:fixed;top:var(--vvt, 0px);left:0;right:0;height:100vh;height:var(--vvh, 100dvh);container:gb-auth / size;overflow-y:auto;background:var(--gb-page);color:var(--gb-ink);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.gb-auth-split{display:grid;grid-template-columns:1fr;min-height:100%}.gb-auth-stage{box-sizing:border-box;display:flex;min-height:100%;padding:clamp(12px,3cqh,24px) clamp(16px,4vw,24px)}.gb-auth-panel-in{position:relative;box-sizing:border-box;width:100%;max-width:520px;padding:48px clamp(32px,5vw,64px)}.gb-auth-eyebrow{margin:0 0 20px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--gb-panel-eyebrow)}.gb-auth-panel-h{margin:0 0 16px;font-size:clamp(28px,3.2vw,40px);line-height:1.15;letter-spacing:-.02em;font-weight:700;color:var(--gb-panel-ink)}.gb-auth-panel-p{margin:0;font-size:15px;line-height:1.6;color:var(--gb-panel-muted)}.gb-auth-panel{display:none}@container gb-auth (min-width: 900px) and (min-height: 520px){.gb-auth-split{grid-template-columns:minmax(420px,1fr) minmax(0,1.05fr)}.gb-auth-split .gb-auth-stage{background:var(--gb-surface)}.gb-auth-split .gb-auth-card{border:none;box-shadow:none;max-width:400px}.gb-auth-panel{display:flex;align-items:center;position:relative;overflow:hidden;background:var(--gb-panel-bg);color:var(--gb-panel-ink)}.gb-auth-panel:before{content:"";position:absolute;inset:-45% -38% auto auto;width:132%;aspect-ratio:1;background-image:var(--gb-facet);background-size:contain;background-repeat:no-repeat;opacity:var(--gb-panel-facet-o);pointer-events:none}.gb-auth-split .gb-auth-panel--grid{background:var(--gb-panel-grid-bg)}.gb-auth-panel.gb-auth-panel--grid:before{inset:0;width:auto;aspect-ratio:auto;background-image:linear-gradient(var(--gb-panel-grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--gb-panel-grid-line) 1px,transparent 1px);background-size:var(--gb-panel-grid-size) var(--gb-panel-grid-size);background-repeat:repeat;opacity:1;-webkit-mask-image:var(--gb-panel-grid-fade);mask-image:var(--gb-panel-grid-fade)}.gb-auth-panel.gb-auth-panel--none:before{content:none}}.gb-auth-card{width:100%;max-width:380px;margin:auto;background:var(--gb-surface);border:1px solid var(--gb-line);border-radius:14px;padding:clamp(18px,3.5cqh,28px) 28px;box-shadow:var(--gb-card-shadow)}.gb-auth-header{text-align:center;margin-bottom:clamp(12px,3cqh,24px)}.gb-auth-mark{display:inline-flex;margin-bottom:clamp(6px,calc(6px + (100cqh - 480px)*.075),12px)}.gb-auth-mark svg,.gb-auth-mark img{width:clamp(32px,calc(32px + (100cqh - 480px)*.3),56px);height:clamp(32px,calc(32px + (100cqh - 480px)*.3),56px)}@container gb-auth (max-height: 479.98px){.gb-auth-mark{display:none}}.gb-auth-header h1{font-size:clamp(19px,2.75cqh,22px);font-weight:700;margin:0 0 clamp(0px,calc((100cqh - 560px)*.1),4px);background:var(--gb-wordmark);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.gb-auth-header p{margin:0;font-size:13px;color:var(--gb-muted)}@container gb-auth (max-height: 599.98px){.gb-auth-header p{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}.gb-auth-form{display:flex;flex-direction:column;gap:clamp(8px,1.5cqh,12px)}.gb-auth-form label{display:flex;flex-direction:column;gap:clamp(4px,.75cqh,6px);font-size:12px;font-weight:500;color:var(--gb-ink)}.gb-auth-input{box-sizing:border-box;height:32px;min-height:44px;min-width:0;padding:0 12px;font:inherit;font-size:13px;line-height:20px;border:1px solid;border-radius:8px}@media (max-width: 47.9975em){.gb-auth-input{font-size:16px}}@media (pointer: coarse){.gb-auth-input{height:auto}}.gb-auth-form input{width:100%;box-sizing:border-box;background-color:var(--gb-field-bg);border-color:var(--gb-field-line);color:var(--gb-ink)}.gb-auth-form input::placeholder{color:var(--gb-placeholder)}.gb-auth-form input:hover:not(:disabled){background-color:var(--gb-field-hover);border-color:var(--gb-hover-line)}.gb-auth-form input:focus-visible{outline:2px solid var(--gb-ink);outline-offset:1px;border-color:var(--gb-ink)}.gb-auth-field{display:flex;flex-direction:column;gap:clamp(4px,.75cqh,6px);font-size:12px;font-weight:500;color:var(--gb-ink)}.gb-auth-pw{position:relative;display:flex}.gb-auth-pw input{width:100%;padding-right:48px}.gb-auth-pw-toggle{min-height:44px;min-width:44px;position:absolute;right:0;top:0;bottom:0;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;background:none;border:none;border-radius:8px;cursor:pointer;color:var(--gb-muted);transition:none}.gb-auth-pw-toggle:hover{color:var(--gb-ink)}.gb-auth-pw-toggle:focus-visible{outline:2px solid var(--gemboss-primary, #1b1c1e);outline-offset:-2px}.gb-auth-error{background:var(--gb-err-bg);border:1px solid var(--gb-err-line);color:var(--gb-err-ink);padding:8px 10px;font-size:13px;border-radius:6px}.gb-auth-form>.gb-auth-submit{margin-top:clamp(2px,.75cqh,6px);min-height:44px;font-size:14px;font-weight:600;border:none;border-radius:8px;background:var(--gb-btn);color:var(--gb-btn-ink);cursor:pointer;font-family:inherit;transition:opacity .15s ease,transform .15s ease}.gb-auth-form>.gb-auth-submit:hover:not(:disabled){transform:translateY(-1px)}.gb-auth-form>.gb-auth-submit:disabled{opacity:.6;cursor:not-allowed}.gb-auth-sso-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--gb-field-line);border-radius:8px;background:var(--gb-surface);color:var(--gb-ink);font-size:14px;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s}.gb-auth-sso-btn:hover{background:var(--gb-hover);border-color:var(--gb-hover-line)}.gb-auth-sso-btn:focus-visible{outline:2px solid var(--gb-ink);outline-offset:1px}.gb-auth-sso-why{margin:8px 0 0;font-size:12px;line-height:1.5;color:var(--gb-muted);text-align:center}.gb-auth-sso .gb-auth-or{display:flex;align-items:center;gap:12px;margin:clamp(8px,1.75cqh,14px) 0;color:var(--gb-muted);font-size:12px}.gb-auth-sso .gb-auth-or:before,.gb-auth-sso .gb-auth-or:after{content:"";flex:1;height:1px;background:var(--gb-line)}.gb-auth-foot{margin:clamp(10px,2cqh,16px) 0 0;font-size:13px;color:var(--gb-muted);text-align:center;line-height:1.5}.gb-auth-foot a{display:inline-block;min-height:24px;line-height:24px;padding:0 2px;color:var(--gb-accent);font-weight:600;text-decoration:none}.gb-auth-foot a:hover,.gb-auth-foot a:focus-visible{text-decoration:underline}.gb-auth-card .gb-auth-help{margin:clamp(8px,1.75cqh,14px) 0 0;font-size:12px;color:var(--gb-muted);text-align:center;line-height:1.5}.gb-auth-card .gb-auth-help a{display:inline-block;min-height:24px;line-height:24px;color:var(--gb-accent);font-weight:600;text-decoration:none}.gb-auth-card .gb-auth-help a:hover,.gb-auth-card .gb-auth-help a:focus-visible{text-decoration:underline}@media (max-width: 480px){.gb-auth{background:var(--gb-page-flat)}.gb-auth-stage{padding:max(clamp(10px,3cqh,20px),env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(clamp(10px,3cqh,20px),env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.gb-auth-card{border:none;border-radius:0;box-shadow:none;padding:0}}@container gb-auth (max-height: 399.98px){.gb-auth-header{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}@container gb-auth (max-height: 359.98px){.gb-auth-card .gb-auth-help,.gb-auth-foot{display:none}.gb-auth-stage{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}}@container gb-auth (max-height: 359.98px) and (min-width: 481px){.gb-auth-card{padding-top:14px;padding-bottom:14px}}@media (prefers-color-scheme: dark){:root:not([data-theme=light]) .gb-auth{--gb-surface: #141517;--gb-ink: #f4f4f3;--gb-muted: #969c97;--gb-line: rgba(255, 255, 255, .11);--gb-field-line: rgba(255, 255, 255, .17);--gb-field-bg: #1b1c1f;--gb-field-hover: #212226;--gb-placeholder: #7f838c;--gb-accent: #8a93ff;--gb-btn: linear-gradient(120deg, #f4f4f3 0%, #dfe0e4 100%);--gb-btn-ink: #0b0b0c;--gb-wordmark: linear-gradient(120deg, #f4f4f3 0%, #c9cbd2 100%);--gb-hover: rgba(255, 255, 255, .06);--gb-hover-line: rgba(255, 255, 255, .28);--gb-err-bg: rgba(215, 44, 13, .16);--gb-err-ink: #ff9d88;--gb-err-line: rgba(245, 120, 95, .4);--gb-card-shadow: 0 24px 64px rgba(0, 0, 0, .55);--gb-mark-bg: #202127;--gb-page: radial-gradient(1200px 600px at 20% 10%, rgba(255, 255, 255, .05), transparent 60%), radial-gradient(1000px 500px at 80% 90%, rgba(138, 147, 255, .1), transparent 60%), #0b0b0c;--gb-page-flat: #0b0b0c}}:root[data-theme=dark] .gb-auth{--gb-surface: #141517;--gb-ink: #f4f4f3;--gb-muted: #969c97;--gb-line: rgba(255, 255, 255, .11);--gb-field-line: rgba(255, 255, 255, .17);--gb-field-bg: #1b1c1f;--gb-field-hover: #212226;--gb-placeholder: #7f838c;--gb-accent: #8a93ff;--gb-btn: linear-gradient(120deg, #f4f4f3 0%, #dfe0e4 100%);--gb-btn-ink: #0b0b0c;--gb-wordmark: linear-gradient(120deg, #f4f4f3 0%, #c9cbd2 100%);--gb-hover: rgba(255, 255, 255, .06);--gb-hover-line: rgba(255, 255, 255, .28);--gb-err-bg: rgba(215, 44, 13, .16);--gb-err-ink: #ff9d88;--gb-err-line: rgba(245, 120, 95, .4);--gb-card-shadow: 0 24px 64px rgba(0, 0, 0, .55);--gb-mark-bg: #202127;--gb-page: radial-gradient(1200px 600px at 20% 10%, rgba(255, 255, 255, .05), transparent 60%), radial-gradient(1000px 500px at 80% 90%, rgba(138, 147, 255, .1), transparent 60%), #0b0b0c;--gb-page-flat: #0b0b0c}
|
|
1
|
+
.gb-auth{--gb-surface: #ffffff;--gb-ink: var(--gemboss-text-strong, #1b1c1e);--gb-muted: #6d7175;--gb-line: #e1e3e5;--gb-field-line: #c9cccf;--gb-field-bg: #ffffff;--gb-field-hover: #fafafa;--gb-placeholder: #868b94;--gb-accent: #5661f5;--gb-btn: linear-gradient(120deg, #1b1c1e 0%, #000000 100%);--gb-btn-ink: #ffffff;--gb-wordmark: linear-gradient(120deg, #1b1c1e 0%, #000000 100%);--gb-hover: #f7f7f5;--gb-hover-line: #b9bbc0;--gb-err-bg: #fee2e2;--gb-err-ink: #b91c1c;--gb-err-line: transparent;--gb-card-shadow: 0 24px 64px rgba(15, 23, 42, .08);--gb-mark-bg: #0b0b0c;--gb-facet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.45' stroke-linejoin='round'%3E%3Cpath d='M26,14 74,14 96,50 50,110 4,50Z'/%3E%3Cpath d='M4,50H96M26,14 34,50M74,14 66,50M34,50 50,110M66,50 50,110'/%3E%3C/g%3E%3C/svg%3E");--gb-page: radial-gradient(1200px 600px at 20% 10%, rgba(27, 28, 30, .05), transparent 60%), radial-gradient(1000px 500px at 80% 90%, rgba(86, 97, 245, .06), transparent 60%), #fafafb;--gb-page-flat: #ffffff;--gb-panel-bg: radial-gradient(900px 520px at 78% 12%, rgba(86, 97, 245, .26), transparent 62%), radial-gradient(700px 480px at 12% 96%, rgba(86, 97, 245, .12), transparent 60%), #0b0b0c;--gb-panel-ink: #f4f4f2;--gb-panel-muted: rgba(244, 244, 242, .72);--gb-panel-eyebrow: #8a93ff;--gb-panel-facet-o: .05;--gb-panel-grid-bg: linear-gradient(160deg, #1b1c22 0%, #0b0b0c 72%);--gb-panel-grid-line: rgba(138, 147, 255, .1);--gb-panel-grid-size: 34px;--gb-panel-grid-fade: radial-gradient(90% 80% at 30% 20%, #000, transparent 75%);color-scheme:light dark;position:fixed;top:var(--vvt, 0px);left:0;right:0;height:100vh;height:var(--vvh, 100dvh);container:gb-auth / size;overflow-y:auto;background:var(--gb-page);color:var(--gb-ink);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.gb-auth-split{display:grid;grid-template-columns:1fr;min-height:100%}.gb-auth-stage{box-sizing:border-box;display:flex;min-height:100%;padding:clamp(12px,3cqh,24px) clamp(16px,4vw,24px)}.gb-auth-panel-in{position:relative;box-sizing:border-box;width:100%;max-width:520px;padding:48px clamp(32px,5vw,64px)}.gb-auth-eyebrow{margin:0 0 20px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--gb-panel-eyebrow)}.gb-auth-panel-h{margin:0 0 16px;font-size:clamp(28px,3.2vw,40px);line-height:1.15;letter-spacing:-.02em;font-weight:700;color:var(--gb-panel-ink)}.gb-auth-panel-p{margin:0;font-size:15px;line-height:1.6;color:var(--gb-panel-muted)}.gb-auth-panel{display:none}@container gb-auth (min-width: 900px) and (min-height: 520px){.gb-auth-split{grid-template-columns:minmax(420px,1fr) minmax(0,1.05fr)}.gb-auth-split .gb-auth-stage{background:var(--gb-surface)}.gb-auth-split .gb-auth-card{border:none;box-shadow:none;max-width:400px}.gb-auth-panel{display:flex;align-items:center;position:relative;overflow:hidden;background:var(--gb-panel-bg);color:var(--gb-panel-ink)}.gb-auth-panel:before{content:"";position:absolute;inset:-45% -38% auto auto;width:132%;aspect-ratio:1;background-image:var(--gb-facet);background-size:contain;background-repeat:no-repeat;opacity:var(--gb-panel-facet-o);pointer-events:none}.gb-auth-split .gb-auth-panel--grid{background:var(--gb-panel-grid-bg)}.gb-auth-panel.gb-auth-panel--grid:before{inset:0;width:auto;aspect-ratio:auto;background-image:linear-gradient(var(--gb-panel-grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--gb-panel-grid-line) 1px,transparent 1px);background-size:var(--gb-panel-grid-size) var(--gb-panel-grid-size);background-repeat:repeat;opacity:1;-webkit-mask-image:var(--gb-panel-grid-fade);mask-image:var(--gb-panel-grid-fade)}.gb-auth-panel.gb-auth-panel--none:before{content:none}}.gb-auth-card{width:100%;max-width:380px;margin:auto;background:var(--gb-surface);border:1px solid var(--gb-line);border-radius:14px;padding:clamp(18px,3.5cqh,28px) 28px;box-shadow:var(--gb-card-shadow)}.gb-auth-header{text-align:center;margin-bottom:clamp(12px,3cqh,24px)}.gb-auth-mark{display:inline-flex;margin-bottom:clamp(6px,calc(6px + (100cqh - 480px)*.075),12px)}.gb-auth-mark svg,.gb-auth-mark img{width:clamp(32px,calc(32px + (100cqh - 480px)*.3),56px);height:clamp(32px,calc(32px + (100cqh - 480px)*.3),56px)}@container gb-auth (max-height: 479.98px){.gb-auth-mark{display:none}}.gb-auth-header h1{font-size:clamp(19px,2.75cqh,22px);font-weight:700;margin:0 0 clamp(0px,calc((100cqh - 560px)*.1),4px);background:var(--gb-wordmark);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.gb-auth-header p{margin:0;font-size:13px;color:var(--gb-muted)}@container gb-auth (max-height: 599.98px){.gb-auth-header p{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}.gb-auth-form{display:flex;flex-direction:column;gap:clamp(8px,1.5cqh,12px)}.gb-auth-form label{display:flex;flex-direction:column;gap:clamp(4px,.75cqh,6px);font-size:12px;font-weight:500;color:var(--gb-ink)}.gb-auth-input{box-sizing:border-box;height:32px;min-height:44px;min-width:0;padding:0 12px;font:inherit;font-size:13px;line-height:20px;border:1px solid;border-radius:8px}@media (max-width: 47.9975em){.gb-auth-input{font-size:16px}}@media (pointer: coarse){.gb-auth-input{height:auto}}.gb-auth-form input{width:100%;box-sizing:border-box;background-color:var(--gb-field-bg);border-color:var(--gb-field-line);color:var(--gb-ink)}.gb-auth-form input::placeholder{color:var(--gb-placeholder)}.gb-auth-form input:hover:not(:disabled){background-color:var(--gb-field-hover);border-color:var(--gb-hover-line)}.gb-auth-form input:focus-visible{outline:2px solid var(--gb-ink);outline-offset:1px;border-color:var(--gb-ink)}.gb-auth-field{display:flex;flex-direction:column;gap:clamp(4px,.75cqh,6px);font-size:12px;font-weight:500;color:var(--gb-ink)}.gb-auth-pw{position:relative;display:flex}.gb-auth-pw input{width:100%;padding-right:48px}.gb-auth-pw-toggle{min-height:44px;min-width:44px;position:absolute;right:0;top:0;bottom:0;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;background:none;border:none;border-radius:8px;cursor:pointer;color:var(--gb-muted);transition:none}.gb-auth-pw-toggle:hover{color:var(--gb-ink)}.gb-auth-pw-toggle:focus-visible{outline:2px solid var(--gemboss-primary, #1b1c1e);outline-offset:-2px}.gb-auth-error{background:var(--gb-err-bg);border:1px solid var(--gb-err-line);color:var(--gb-err-ink);padding:8px 10px;font-size:13px;border-radius:6px}.gb-auth-form>.gb-auth-submit{margin-top:clamp(2px,.75cqh,6px);min-height:44px;font-size:14px;font-weight:600;border:none;border-radius:8px;background:var(--gb-btn);color:var(--gb-btn-ink);cursor:pointer;font-family:inherit;transition:opacity .15s ease,transform .15s ease}.gb-auth-form>.gb-auth-submit:hover:not(:disabled){transform:translateY(-1px)}.gb-auth-form>.gb-auth-submit:disabled{opacity:.6;cursor:not-allowed}.gb-auth-sso-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--gb-field-line);border-radius:8px;background:var(--gb-surface);color:var(--gb-ink);font-size:14px;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s}.gb-auth-sso-btn:hover{background:var(--gb-hover);border-color:var(--gb-hover-line)}.gb-auth-sso-btn:focus-visible{outline:2px solid var(--gb-ink);outline-offset:1px}.gb-auth-notice{margin:0 0 12px;padding:8px 10px;border-radius:6px;background:var(--gb-hover);font-size:13px}.gb-auth-sso-why{margin:8px 0 0;font-size:12px;line-height:1.5;color:var(--gb-muted);text-align:center}.gb-auth-sso .gb-auth-or{display:flex;align-items:center;gap:12px;margin:clamp(8px,1.75cqh,14px) 0;color:var(--gb-muted);font-size:12px}.gb-auth-sso .gb-auth-or:before,.gb-auth-sso .gb-auth-or:after{content:"";flex:1;height:1px;background:var(--gb-line)}.gb-auth-foot{margin:clamp(10px,2cqh,16px) 0 0;font-size:13px;color:var(--gb-muted);text-align:center;line-height:1.5}.gb-auth-foot a{display:inline-block;min-height:24px;line-height:24px;padding:0 2px;color:var(--gb-accent);font-weight:600;text-decoration:none}.gb-auth-foot a:hover,.gb-auth-foot a:focus-visible{text-decoration:underline}.gb-auth-card .gb-auth-help{margin:clamp(8px,1.75cqh,14px) 0 0;font-size:12px;color:var(--gb-muted);text-align:center;line-height:1.5}.gb-auth-card .gb-auth-help a{display:inline-block;min-height:24px;line-height:24px;color:var(--gb-accent);font-weight:600;text-decoration:none}.gb-auth-card .gb-auth-help a:hover,.gb-auth-card .gb-auth-help a:focus-visible{text-decoration:underline}@media (max-width: 480px){.gb-auth{background:var(--gb-page-flat)}.gb-auth-stage{padding:max(clamp(10px,3cqh,20px),env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(clamp(10px,3cqh,20px),env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.gb-auth-card{border:none;border-radius:0;box-shadow:none;padding:0}}@container gb-auth (max-height: 399.98px){.gb-auth-header{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}@container gb-auth (max-height: 359.98px){.gb-auth-card .gb-auth-help,.gb-auth-foot{display:none}.gb-auth-stage{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}}@container gb-auth (max-height: 359.98px) and (min-width: 481px){.gb-auth-card{padding-top:14px;padding-bottom:14px}}@media (prefers-color-scheme: dark){:root:not([data-theme=light]) .gb-auth{--gb-surface: #141517;--gb-ink: #f4f4f3;--gb-muted: #969c97;--gb-line: rgba(255, 255, 255, .11);--gb-field-line: rgba(255, 255, 255, .17);--gb-field-bg: #1b1c1f;--gb-field-hover: #212226;--gb-placeholder: #7f838c;--gb-accent: #8a93ff;--gb-btn: linear-gradient(120deg, #f4f4f3 0%, #dfe0e4 100%);--gb-btn-ink: #0b0b0c;--gb-wordmark: linear-gradient(120deg, #f4f4f3 0%, #c9cbd2 100%);--gb-hover: rgba(255, 255, 255, .06);--gb-hover-line: rgba(255, 255, 255, .28);--gb-err-bg: rgba(215, 44, 13, .16);--gb-err-ink: #ff9d88;--gb-err-line: rgba(245, 120, 95, .4);--gb-card-shadow: 0 24px 64px rgba(0, 0, 0, .55);--gb-mark-bg: #202127;--gb-page: radial-gradient(1200px 600px at 20% 10%, rgba(255, 255, 255, .05), transparent 60%), radial-gradient(1000px 500px at 80% 90%, rgba(138, 147, 255, .1), transparent 60%), #0b0b0c;--gb-page-flat: #0b0b0c}}:root[data-theme=dark] .gb-auth{--gb-surface: #141517;--gb-ink: #f4f4f3;--gb-muted: #969c97;--gb-line: rgba(255, 255, 255, .11);--gb-field-line: rgba(255, 255, 255, .17);--gb-field-bg: #1b1c1f;--gb-field-hover: #212226;--gb-placeholder: #7f838c;--gb-accent: #8a93ff;--gb-btn: linear-gradient(120deg, #f4f4f3 0%, #dfe0e4 100%);--gb-btn-ink: #0b0b0c;--gb-wordmark: linear-gradient(120deg, #f4f4f3 0%, #c9cbd2 100%);--gb-hover: rgba(255, 255, 255, .06);--gb-hover-line: rgba(255, 255, 255, .28);--gb-err-bg: rgba(215, 44, 13, .16);--gb-err-ink: #ff9d88;--gb-err-line: rgba(245, 120, 95, .4);--gb-card-shadow: 0 24px 64px rgba(0, 0, 0, .55);--gb-mark-bg: #202127;--gb-page: radial-gradient(1200px 600px at 20% 10%, rgba(255, 255, 255, .05), transparent 60%), radial-gradient(1000px 500px at 80% 90%, rgba(138, 147, 255, .1), transparent 60%), #0b0b0c;--gb-page-flat: #0b0b0c}
|