@celljs/ta-web 4.47.1 → 4.48.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/esm/browser/assistant/assistant-role.d.ts +1 -1
- package/esm/browser/assistant/assistant-role.js +1 -1
- package/esm/browser/assistant/assistant-task-source.js +6 -1
- package/esm/browser/assistant/assistant-task-util.d.ts +1 -0
- package/esm/browser/assistant/assistant-task-util.js +9 -3
- package/esm/browser/assistant/assistant-view.js +4 -2
- package/esm/browser/cloud/cloud-sign-in.d.ts +26 -4
- package/esm/browser/cloud/cloud-sign-in.js +88 -18
- package/esm/browser/components/app-nav.d.ts +3 -1
- package/esm/browser/components/app-nav.js +3 -3
- package/esm/browser/components/app-view.js +16 -6
- package/esm/browser/components/asks-badge.d.ts +12 -0
- package/esm/browser/components/asks-badge.js +17 -1
- package/esm/browser/components/chat-list-row.d.ts +4 -1
- package/esm/browser/components/chat-list-row.js +7 -1
- package/esm/browser/components/chats-dot.d.ts +4 -1
- package/esm/browser/components/chats-dot.js +6 -2
- package/esm/browser/components/cloud-sign-in-view.d.ts +2 -1
- package/esm/browser/components/cloud-sign-in-view.js +28 -5
- package/esm/browser/components/composer-box-protocol.d.ts +5 -3
- package/esm/browser/components/composer-box.js +11 -11
- package/esm/browser/components/composer.d.ts +8 -1
- package/esm/browser/components/composer.js +57 -34
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/lightbox.d.ts +15 -1
- package/esm/browser/components/lightbox.js +14 -2
- package/esm/browser/components/link.js +8 -3
- package/esm/browser/components/markdown.d.ts +4 -2
- package/esm/browser/components/markdown.js +13 -4
- package/esm/browser/components/media.d.ts +6 -0
- package/esm/browser/components/media.js +9 -1
- package/esm/browser/components/message-images.d.ts +5 -0
- package/esm/browser/components/message-images.js +40 -4
- package/esm/browser/components/message-user.js +4 -2
- package/esm/browser/components/partner-row.js +4 -4
- package/esm/browser/components/phone-shell.d.ts +2 -0
- package/esm/browser/components/phone-shell.js +2 -2
- package/esm/browser/components/sending.d.ts +19 -0
- package/esm/browser/components/sending.js +27 -0
- package/esm/browser/components/session-view.js +4 -3
- package/esm/browser/components/settings-choices.js +1 -0
- package/esm/browser/components/settings-parts.js +28 -17
- package/esm/browser/components/share-dialog.js +3 -2
- package/esm/browser/components/share-item-sheet.js +1 -1
- package/esm/browser/components/share-sheet.d.ts +4 -2
- package/esm/browser/components/share-sheet.js +16 -2
- package/esm/browser/components/sign-in-accounts.js +7 -1
- package/esm/browser/components/unseen-drop.d.ts +2 -2
- package/esm/browser/components/unseen-drop.js +1 -1
- package/esm/browser/device/app-badge.d.ts +8 -0
- package/esm/browser/device/app-badge.js +28 -0
- package/esm/browser/device/code-scan.js +1 -1
- package/esm/browser/extension/web-api-code.d.ts +26 -0
- package/esm/browser/extension/web-api-components.d.ts +31 -0
- package/esm/browser/extension/web-api-menus.d.ts +15 -0
- package/esm/browser/extension/web-api-messages.d.ts +15 -0
- package/esm/browser/extension/web-api-messages.js +2 -0
- package/esm/browser/extension/web-api-partners.d.ts +16 -0
- package/esm/browser/extension/web-api-spec.js +1 -0
- package/esm/browser/extension/web-extension-api.d.ts +7 -13
- package/esm/browser/extension/web-extension-context.js +2 -0
- package/esm/browser/extension/web-session-notices.js +11 -2
- package/esm/browser/extension/web-share-ui.js +1 -0
- package/esm/browser/extension/web-share.js +3 -3
- package/esm/browser/extension/web-sharing.js +1 -1
- package/esm/browser/i18n/en/assistant.d.ts +2 -0
- package/esm/browser/i18n/en/assistant.js +2 -0
- package/esm/browser/i18n/en/chat.d.ts +11 -0
- package/esm/browser/i18n/en/chat.js +13 -2
- package/esm/browser/i18n/en/common.d.ts +4 -0
- package/esm/browser/i18n/en/common.js +4 -0
- package/esm/browser/i18n/en/service.d.ts +5 -0
- package/esm/browser/i18n/en/service.js +5 -0
- package/esm/browser/i18n/en/settings.d.ts +6 -0
- package/esm/browser/i18n/en/settings.js +8 -2
- package/esm/browser/i18n/ja/assistant.js +2 -0
- package/esm/browser/i18n/ja/chat.js +13 -2
- package/esm/browser/i18n/ja/common.js +4 -0
- package/esm/browser/i18n/ja/service.js +5 -0
- package/esm/browser/i18n/ja/settings.js +10 -4
- package/esm/browser/i18n/locales.d.ts +29 -1
- package/esm/browser/i18n/messages.d.ts +28 -0
- package/esm/browser/i18n/zh/assistant.js +2 -0
- package/esm/browser/i18n/zh/chat.js +13 -2
- package/esm/browser/i18n/zh/common.js +4 -0
- package/esm/browser/i18n/zh/service.js +5 -0
- package/esm/browser/i18n/zh/settings.js +8 -2
- package/esm/browser/i18n/zh-tw/assistant.js +2 -0
- package/esm/browser/i18n/zh-tw/chat.js +13 -2
- package/esm/browser/i18n/zh-tw/common.js +4 -0
- package/esm/browser/i18n/zh-tw/service.js +5 -0
- package/esm/browser/i18n/zh-tw/settings.js +8 -2
- package/esm/browser/links/links.js +1 -1
- package/esm/browser/notices/session-notices.d.ts +4 -4
- package/esm/browser/notices/session-notices.js +3 -6
- package/esm/browser/partners/partners-util.d.ts +6 -0
- package/esm/browser/partners/partners-util.js +22 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/settings/agent-settings.d.ts +2 -0
- package/esm/browser/settings/agent-settings.js +2 -0
- package/esm/browser/settings/settings-protocol.d.ts +8 -0
- package/esm/browser/settings/settings-protocol.js +5 -0
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +3 -0
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +8 -3
- package/esm/browser/style/conversation-column.d.ts +1 -1
- package/esm/browser/style/conversation-column.js +6 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +18 -0
- package/esm/browser/style/phone.d.ts +1 -1
- package/esm/browser/style/phone.js +2 -0
- package/esm/browser/util/composer.d.ts +18 -3
- package/esm/browser/util/composer.js +31 -5
- package/esm/browser/util/desktop.d.ts +8 -1
- package/esm/browser/util/desktop.js +10 -0
- package/esm/browser/util/image-shrink.d.ts +5 -1
- package/esm/browser/util/image-shrink.js +1 -1
- package/esm/browser/util/markdown.d.ts +3 -5
- package/esm/browser/util/markdown.js +5 -29
- package/esm/browser/util/process.js +2 -2
- package/lib/browser/assistant/assistant-role.d.ts +1 -1
- package/lib/browser/assistant/assistant-role.js +1 -1
- package/lib/browser/assistant/assistant-task-source.js +5 -0
- package/lib/browser/assistant/assistant-task-util.d.ts +1 -0
- package/lib/browser/assistant/assistant-task-util.js +8 -2
- package/lib/browser/assistant/assistant-view.js +4 -2
- package/lib/browser/cloud/cloud-sign-in.d.ts +26 -4
- package/lib/browser/cloud/cloud-sign-in.js +89 -19
- package/lib/browser/components/app-nav.d.ts +3 -1
- package/lib/browser/components/app-nav.js +2 -2
- package/lib/browser/components/app-view.js +16 -6
- package/lib/browser/components/asks-badge.d.ts +12 -0
- package/lib/browser/components/asks-badge.js +19 -1
- package/lib/browser/components/chat-list-row.d.ts +4 -1
- package/lib/browser/components/chat-list-row.js +7 -1
- package/lib/browser/components/chats-dot.d.ts +4 -1
- package/lib/browser/components/chats-dot.js +6 -2
- package/lib/browser/components/cloud-sign-in-view.d.ts +2 -1
- package/lib/browser/components/cloud-sign-in-view.js +28 -5
- package/lib/browser/components/composer-box-protocol.d.ts +5 -3
- package/lib/browser/components/composer-box.js +11 -11
- package/lib/browser/components/composer.d.ts +8 -1
- package/lib/browser/components/composer.js +56 -33
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/lightbox.d.ts +15 -1
- package/lib/browser/components/lightbox.js +15 -2
- package/lib/browser/components/link.js +8 -3
- package/lib/browser/components/markdown.d.ts +4 -2
- package/lib/browser/components/markdown.js +11 -2
- package/lib/browser/components/media.d.ts +6 -0
- package/lib/browser/components/media.js +10 -2
- package/lib/browser/components/message-images.d.ts +5 -0
- package/lib/browser/components/message-images.js +40 -4
- package/lib/browser/components/message-user.js +4 -2
- package/lib/browser/components/partner-row.js +4 -4
- package/lib/browser/components/phone-shell.d.ts +2 -0
- package/lib/browser/components/phone-shell.js +1 -1
- package/lib/browser/components/sending.d.ts +20 -0
- package/lib/browser/components/sending.js +63 -0
- package/lib/browser/components/session-view.js +4 -3
- package/lib/browser/components/settings-choices.js +1 -0
- package/lib/browser/components/settings-parts.js +26 -15
- package/lib/browser/components/share-dialog.js +3 -2
- package/lib/browser/components/share-item-sheet.js +1 -1
- package/lib/browser/components/share-sheet.d.ts +4 -2
- package/lib/browser/components/share-sheet.js +16 -2
- package/lib/browser/components/sign-in-accounts.js +7 -1
- package/lib/browser/components/unseen-drop.d.ts +2 -2
- package/lib/browser/components/unseen-drop.js +1 -1
- package/lib/browser/device/app-badge.d.ts +9 -0
- package/lib/browser/device/app-badge.js +31 -0
- package/lib/browser/device/code-scan.js +1 -1
- package/lib/browser/extension/web-api-code.d.ts +26 -0
- package/lib/browser/extension/web-api-components.d.ts +31 -0
- package/lib/browser/extension/web-api-menus.d.ts +15 -0
- package/lib/browser/extension/web-api-messages.d.ts +16 -0
- package/lib/browser/extension/web-api-messages.js +3 -0
- package/lib/browser/extension/web-api-partners.d.ts +16 -0
- package/lib/browser/extension/web-api-spec.js +1 -0
- package/lib/browser/extension/web-extension-api.d.ts +7 -13
- package/lib/browser/extension/web-extension-context.js +2 -0
- package/lib/browser/extension/web-session-notices.js +10 -1
- package/lib/browser/extension/web-share-ui.js +1 -0
- package/lib/browser/extension/web-share.js +3 -3
- package/lib/browser/extension/web-sharing.js +1 -1
- package/lib/browser/i18n/en/assistant.d.ts +2 -0
- package/lib/browser/i18n/en/assistant.js +2 -0
- package/lib/browser/i18n/en/chat.d.ts +11 -0
- package/lib/browser/i18n/en/chat.js +13 -2
- package/lib/browser/i18n/en/common.d.ts +4 -0
- package/lib/browser/i18n/en/common.js +4 -0
- package/lib/browser/i18n/en/service.d.ts +5 -0
- package/lib/browser/i18n/en/service.js +5 -0
- package/lib/browser/i18n/en/settings.d.ts +6 -0
- package/lib/browser/i18n/en/settings.js +8 -2
- package/lib/browser/i18n/ja/assistant.js +2 -0
- package/lib/browser/i18n/ja/chat.js +13 -2
- package/lib/browser/i18n/ja/common.js +4 -0
- package/lib/browser/i18n/ja/service.js +5 -0
- package/lib/browser/i18n/ja/settings.js +10 -4
- package/lib/browser/i18n/locales.d.ts +29 -1
- package/lib/browser/i18n/messages.d.ts +28 -0
- package/lib/browser/i18n/zh/assistant.js +2 -0
- package/lib/browser/i18n/zh/chat.js +13 -2
- package/lib/browser/i18n/zh/common.js +4 -0
- package/lib/browser/i18n/zh/service.js +5 -0
- package/lib/browser/i18n/zh/settings.js +8 -2
- package/lib/browser/i18n/zh-tw/assistant.js +2 -0
- package/lib/browser/i18n/zh-tw/chat.js +13 -2
- package/lib/browser/i18n/zh-tw/common.js +4 -0
- package/lib/browser/i18n/zh-tw/service.js +5 -0
- package/lib/browser/i18n/zh-tw/settings.js +8 -2
- package/lib/browser/links/links.js +1 -1
- package/lib/browser/notices/session-notices.d.ts +4 -4
- package/lib/browser/notices/session-notices.js +3 -6
- package/lib/browser/partners/partners-util.d.ts +6 -0
- package/lib/browser/partners/partners-util.js +22 -0
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/settings/agent-settings.d.ts +2 -0
- package/lib/browser/settings/agent-settings.js +3 -1
- package/lib/browser/settings/settings-protocol.d.ts +8 -0
- package/lib/browser/settings/settings-protocol.js +6 -1
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +3 -0
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +8 -3
- package/lib/browser/style/conversation-column.d.ts +1 -1
- package/lib/browser/style/conversation-column.js +6 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +18 -0
- package/lib/browser/style/phone.d.ts +1 -1
- package/lib/browser/style/phone.js +2 -0
- package/lib/browser/util/composer.d.ts +18 -3
- package/lib/browser/util/composer.js +31 -5
- package/lib/browser/util/desktop.d.ts +8 -1
- package/lib/browser/util/desktop.js +10 -0
- package/lib/browser/util/image-shrink.d.ts +5 -1
- package/lib/browser/util/image-shrink.js +1 -1
- package/lib/browser/util/markdown.d.ts +3 -5
- package/lib/browser/util/markdown.js +5 -29
- package/lib/browser/util/process.js +1 -1
- package/package.json +7 -7
- package/esm/browser/util/share-link.d.ts +0 -21
- package/esm/browser/util/share-link.js +0 -61
- package/lib/browser/util/share-link.d.ts +0 -22
- package/lib/browser/util/share-link.js +0 -64
|
@@ -6,6 +6,8 @@ export interface AgentSettingsGroup {
|
|
|
6
6
|
title: MessageId;
|
|
7
7
|
keys: readonly string[];
|
|
8
8
|
}
|
|
9
|
+
/** The section of the settings with what is sent while Ta works (`sendWhileWorking` of the page, then pi's queues). */
|
|
10
|
+
export declare const QUEUE_SETTINGS = "conversation";
|
|
9
11
|
export declare const AGENT_SETTINGS_GROUPS: readonly AgentSettingsGroup[];
|
|
10
12
|
/** What a setting is in a scope, and where that comes from. */
|
|
11
13
|
export interface EffectiveSetting {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShortcutUtil = exports.AgentSettingsUtil = exports.AGENT_SETTINGS_GROUPS = void 0;
|
|
3
|
+
exports.ShortcutUtil = exports.AgentSettingsUtil = exports.AGENT_SETTINGS_GROUPS = exports.QUEUE_SETTINGS = void 0;
|
|
4
4
|
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
5
5
|
const messages_1 = require("../i18n/messages");
|
|
6
|
+
/** The section of the settings with what is sent while Ta works (`sendWhileWorking` of the page, then pi's queues). */
|
|
7
|
+
exports.QUEUE_SETTINGS = 'conversation';
|
|
6
8
|
exports.AGENT_SETTINGS_GROUPS = [
|
|
7
9
|
{ id: 'model', title: 'ta.settings.group.model', keys: ['model', 'defaultThinkingLevel', 'transport'] },
|
|
8
10
|
{
|
|
@@ -17,6 +17,12 @@ export declare const AUTO_SKIN = "auto";
|
|
|
17
17
|
/** `Settings.skin` of the user who wants none. */
|
|
18
18
|
export declare const NO_SKIN = "none";
|
|
19
19
|
/** How large the text is, as the font size of WeChat: small, standard, large, extra large. */
|
|
20
|
+
/**
|
|
21
|
+
* What a message sent while Ta works does (Enter, the send button): Ta reads it once its tools of now are done and goes
|
|
22
|
+
* on with it; it waits until the run ends; or it goes at once, the run stopped.
|
|
23
|
+
*/
|
|
24
|
+
export type SendWhileWorking = 'steer' | 'followUp' | 'interrupt';
|
|
25
|
+
export declare const SEND_WHILE_WORKING: readonly SendWhileWorking[];
|
|
20
26
|
export type FontSize = 'small' | 'standard' | 'large' | 'xlarge';
|
|
21
27
|
/** What each size multiplies the font sizes of the styles by (`--ta-font-scale`, see style/base.ts). */
|
|
22
28
|
export declare const FONT_SCALES: Record<FontSize, number>;
|
|
@@ -96,6 +102,8 @@ export interface Settings {
|
|
|
96
102
|
chatArchiveDays: number;
|
|
97
103
|
/** The screenshot just taken is offered above the message box, once (RecentShots), where Ta can read the screenshots. */
|
|
98
104
|
recentShots: boolean;
|
|
105
|
+
/** What a message sent while Ta works does (SendWhileWorking). */
|
|
106
|
+
sendWhileWorking: SendWhileWorking;
|
|
99
107
|
/** Pages of extensions may be installed as apps of the computer, in Ta Desktop (docs/design/ta-install-as-app.md); those installed open all the same. */
|
|
100
108
|
installApps: boolean;
|
|
101
109
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingsUtil = exports.DEFAULT_SETTINGS = exports.MAX_TASKS_CHOICES = exports.CHAT_ARCHIVE_CHOICES = exports.CHAT_FOLD_CHOICES = exports.KEEP_ALIVE_CHOICES = exports.HANDHELD_FONT_SCALE = exports.FONT_SCALES = exports.NO_SKIN = exports.AUTO_SKIN = exports.SKIN_GLASSES = exports.DIAGRAM_STYLES = exports.TaSettings = void 0;
|
|
3
|
+
exports.SettingsUtil = exports.DEFAULT_SETTINGS = exports.MAX_TASKS_CHOICES = exports.CHAT_ARCHIVE_CHOICES = exports.CHAT_FOLD_CHOICES = exports.KEEP_ALIVE_CHOICES = exports.HANDHELD_FONT_SCALE = exports.FONT_SCALES = exports.SEND_WHILE_WORKING = exports.NO_SKIN = exports.AUTO_SKIN = exports.SKIN_GLASSES = exports.DIAGRAM_STYLES = exports.TaSettings = void 0;
|
|
4
4
|
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
5
5
|
const navigation_1 = require("./navigation");
|
|
6
6
|
exports.TaSettings = Symbol('TaSettings');
|
|
@@ -10,6 +10,7 @@ exports.SKIN_GLASSES = ['clear', 'soft', 'focus'];
|
|
|
10
10
|
exports.AUTO_SKIN = 'auto';
|
|
11
11
|
/** `Settings.skin` of the user who wants none. */
|
|
12
12
|
exports.NO_SKIN = 'none';
|
|
13
|
+
exports.SEND_WHILE_WORKING = ['steer', 'followUp', 'interrupt'];
|
|
13
14
|
/** What each size multiplies the font sizes of the styles by (`--ta-font-scale`, see style/base.ts). */
|
|
14
15
|
exports.FONT_SCALES = { small: 0.9, standard: 1, large: 1.12, xlarge: 1.25 };
|
|
15
16
|
/**
|
|
@@ -54,6 +55,7 @@ exports.DEFAULT_SETTINGS = {
|
|
|
54
55
|
chatFoldDays: 7,
|
|
55
56
|
chatArchiveDays: 30,
|
|
56
57
|
recentShots: true,
|
|
58
|
+
sendWhileWorking: 'steer',
|
|
57
59
|
installApps: true,
|
|
58
60
|
};
|
|
59
61
|
/** `value` when it is one of `choices`, else `fallback`. */
|
|
@@ -107,6 +109,9 @@ var SettingsUtil;
|
|
|
107
109
|
chatFoldDays: choice(kept.chatFoldDays, exports.CHAT_FOLD_CHOICES, exports.DEFAULT_SETTINGS.chatFoldDays),
|
|
108
110
|
chatArchiveDays: choice(kept.chatArchiveDays, exports.CHAT_ARCHIVE_CHOICES, exports.DEFAULT_SETTINGS.chatArchiveDays),
|
|
109
111
|
recentShots: kept.recentShots !== false,
|
|
112
|
+
sendWhileWorking: exports.SEND_WHILE_WORKING.includes(kept.sendWhileWorking)
|
|
113
|
+
? kept.sendWhileWorking
|
|
114
|
+
: exports.DEFAULT_SETTINGS.sendWhileWorking,
|
|
110
115
|
installApps: kept.installApps !== false,
|
|
111
116
|
};
|
|
112
117
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Tokens of the theme, controls, levels. */
|
|
2
|
-
export declare const BASE_STYLE = "\n:root, :root[data-theme='dark'] {\n --ta-main: #141416;\n --ta-side: #1c1c1e;\n --ta-card: #1a1a1c;\n --ta-input: #1a1a1a;\n --ta-raised: #242426;\n --ta-user: #2a2a2d;\n --ta-hover: #2a2a2e;\n --ta-hover-strong: #333338;\n --ta-selected: #2c2c31;\n --ta-chip: #2a2a2e;\n /* The chosen segment of a segmented control, on a track of --ta-raised: above it, lighter in the dark. */\n --ta-segment: #333338;\n --ta-border: #2e2e33;\n --ta-border-muted: #232328;\n --ta-border-field: #3d3d45;\n --ta-border-focus: #8a8a96;\n --ta-text: #e5e5e5;\n --ta-body: #d4d4d6;\n --ta-secondary: #a3a3a3;\n --ta-muted: #7c7c82;\n /* The chevron of a select, drawn in --ta-muted (an image cannot take currentColor). */\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #e5e5e5;\n --ta-brand-text: #1a1a1a;\n --ta-accent: #34d399;\n --ta-link: #4dabf7;\n --ta-green: #4ade80;\n --ta-red: #f87171;\n --ta-yellow: #fbbf24;\n --ta-blue: #60a5fa;\n --ta-code: #161618;\n --ta-add: rgba(74, 222, 128, 0.1);\n --ta-remove: rgba(248, 113, 113, 0.1);\n --ta-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);\n --ta-shadow-composer: 0 12px 32px rgba(0, 0, 0, 0.32);\n --ta-scrollbar: rgba(255, 255, 255, 0.12);\n color-scheme: dark;\n}\n:root[data-theme='light'] {\n --ta-main: #ffffff;\n --ta-side: #f5f5f7;\n --ta-card: #ffffff;\n --ta-input: #ffffff;\n --ta-raised: #f3f3f5;\n --ta-user: #f2f2f2;\n --ta-hover: #ebebf0;\n --ta-hover-strong: #e2e2e8;\n --ta-selected: #e6e6ea;\n --ta-chip: #ececf0;\n --ta-segment: #ffffff;\n --ta-border: #dcdee3;\n --ta-border-muted: #e8eaed;\n --ta-border-field: #c9ccd4;\n --ta-border-focus: #6b6e76;\n --ta-text: #1a1a1a;\n --ta-body: #33363b;\n --ta-secondary: #5c5c5c;\n --ta-muted: #8e8e93;\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #1a1a1a;\n --ta-brand-text: #ffffff;\n --ta-accent: #10a372;\n --ta-link: #1677ff;\n --ta-green: #16a34a;\n --ta-red: #e5484d;\n --ta-yellow: #d97706;\n --ta-blue: #1677ff;\n --ta-code: #f7f8fa;\n --ta-add: rgba(34, 197, 94, 0.1);\n --ta-remove: rgba(239, 68, 68, 0.08);\n --ta-shadow-pop: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);\n --ta-shadow-composer: 0 8px 24px rgba(15, 23, 42, 0.07);\n --ta-scrollbar: rgba(0, 0, 0, 0.14);\n color-scheme: light;\n}\n:root {\n /** The height of the title bar the page draws itself; see .ta-titlebar. */\n --ta-titlebar: 0px;\n /**\n * Under a title bar every column keeps a gap of 3px below it, and the first row of each rises into the rest of\n * its head, centred on the tabs of the workbench (34px high, below the gap) rather than on a head of 56px:\n * 28px - 3px - 17px. The search of the sidebar, 40px high, so starts right under the bar, none of it hidden.\n */\n --ta-top-gap: min(3px, var(--ta-titlebar));\n --ta-lift: min(8px, var(--ta-titlebar));\n --ta-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;\n --ta-mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;\n --ta-col: 760px;\n --ta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);\n /* The font sizes of the settings (TaSettingsImpl sets the first two). Every font size in px is written\n calc(13px * var(--ta-font-scale)), line heights in px too: the page's size (more on a phone, see\n style/device.ts), and in a conversation (.ta-conversation: its messages and the field of its message\n box) that of conversations on top of it. */\n --ta-page-font-scale: 1;\n --ta-chat-font-scale: 1;\n --ta-device-font-scale: 1;\n --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale));\n /* How wide the content of a page is (the pages of Discover, Extensions): a column of rows, a feed or a\n form; or wide, for cards and tiles side by side. Web extensions use them too. */\n --ta-page-width: 720px;\n --ta-page-wide: 880px;\n}\n.ta-conversation { --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale) * var(--ta-chat-font-scale)); font-size: calc(14px * var(--ta-font-scale)); }\n* { box-sizing: border-box; }\nhtml, body, #cell-root, #root { height: 100%; margin: 0; }\n/* The page and its scrolling areas do not bounce at the ends. Only scrolling areas of their own: on any\n other element (one with overflow: hidden is a scroll container too) it stops the wheel from reaching\n the area under it, and nothing scrolls while the pointer is over a card or a code block. */\nhtml, body, .ta-scroll, .ta-chat-scroll, .ta-side-scroll, .ta-rail-items, .ta-side-view-body, .ta-editor-body,\n.ta-workbench-launcher, .ta-workbench-menu, .ta-settings-scroll, .ta-settings-toc, .ta-pick-list, .ta-commands,\n.ta-folder-list, .ta-auth-list { overscroll-behavior: none; }\nbody { background: var(--ta-main); color: var(--ta-text); font: calc(14px * var(--ta-font-scale))/1.6 var(--ta-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }\nbutton, input, select, textarea { font: inherit; color: inherit; }\nbutton { cursor: pointer; }\ncode, pre { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\na { color: var(--ta-link); text-decoration: none; }\n* { scrollbar-width: thin; scrollbar-color: var(--ta-scrollbar) transparent; }\n:focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 1px; }\n.ta-muted { color: var(--ta-muted); }\n.ta-small { font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-path { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-spacer { flex: 1; }\n.ta-icon { flex: none; }\n.ta-narrow-only { display: none !important; }\n.ta-glass { background: var(--ta-card); border: 1px solid var(--ta-border); }\n\n/* Controls */\n.ta-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ta-border); background: transparent; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; color: var(--ta-text); transition: background 120ms, border-color 120ms; }\n.ta-button:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-button:disabled { opacity: 0.45; cursor: default; }\n.ta-primary { background: var(--ta-brand); border-color: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-primary:hover:not(:disabled) { background: var(--ta-brand); opacity: 0.88; }\n.ta-danger, .ta-stop { color: var(--ta-red); }\n.ta-quiet { border-color: transparent; color: var(--ta-secondary); }\n.ta-wide { width: 100%; height: 38px; }\n.ta-link { background: none; border: 0; padding: 0; color: var(--ta-link); font-size: calc(12px * var(--ta-font-scale)); display: inline-flex; align-items: center; gap: 4px; }\n/* Buttons that hold an icon, centred in a box of their size: without the padding of the browser, which iOS makes 14px a side, so that the icon sat off centre there. */\n.ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }\n.ta-icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-icon-button:disabled { opacity: 0.4; }\n.ta-icon-button.ta-on { color: var(--ta-text); background: var(--ta-hover); }\n.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height: var(--ta-input-height); width: var(--ta-input-height); }\n.ta-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }\n/* Fields and forms are style/forms.ts. */\n/* Every select of Ta and of its extensions has the one chevron of the model picker, kept off its right border by\n --ta-select-inset; each owner sets only its box. A select that draws its own (or none) is .ta-select-plain. */\nselect:not([multiple]):not([size]):not(.ta-select-plain) { appearance: none; -webkit-appearance: none; padding-right: calc(var(--ta-select-inset, 10px) + 21px); background-image: var(--ta-select-chevron); background-repeat: no-repeat; background-position: right var(--ta-select-inset, 10px) center; background-size: 15px 15px; text-overflow: ellipsis; cursor: pointer; }\nselect.ta-select-plain { appearance: none; -webkit-appearance: none; }\nselect:disabled { cursor: default; }\n.ta-editor { height: auto; min-height: 140px; padding: 8px 10px; font-family: var(--ta-mono); resize: vertical; }\n.ta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n/* Levels: the colour of the icon tells the level; the text stays in the colours of text. */\n.ta-level-info { --ta-level: var(--ta-blue); }\n.ta-level-success { --ta-level: var(--ta-green); }\n.ta-level-warning { --ta-level: var(--ta-yellow); }\n.ta-level-error { --ta-level: var(--ta-red); }\n.ta-level-icon { color: var(--ta-level, var(--ta-muted)); }\n/* In its place: a soft tint of its level, the text in the colours of text. */\n.ta-callout { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; text-align: left; color: var(--ta-body); background: color-mix(in srgb, var(--ta-level) 7%, var(--ta-card)); border: 1px solid color-mix(in srgb, var(--ta-level) 18%, var(--ta-border-muted)); }\n.ta-callout > .ta-level-icon { margin-top: 2px; }\n.ta-callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-callout-message { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-callout-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-empty .ta-callout { max-width: min(520px, 100%); }\n.ta-spinner { width: 13px; height: 13px; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite; flex: none; display: inline-block; }\n/*\n * Busy (components/busy.tsx): what waits on something slow says so only once it took a moment (--ta-busy-delay),\n * so that what is quick does not flash, and takes no second click meanwhile. ta-busy a button or an icon\n * button, its spinner (ta-busy-mark; with ta-on-brand on a button of the brand's color) over its label, which keeps its width; ta-pending a row that is being\n * taken away, which fades back; ta-spinner ta-later a spinner of its own; ta-switch ta-busy a switch, which\n * moved at once, its knob turning.\n */\n.ta-busy, .ta-pending { --ta-busy-delay: 160ms; pointer-events: none; }\n.ta-busy:not(.ta-switch) { animation: ta-busy-ink 0s var(--ta-busy-delay) forwards; }\n.ta-button.ta-busy { position: relative; }\n.ta-busy > .ta-busy-mark { position: absolute; inset: 0; margin: auto; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary > .ta-busy-mark, .ta-busy-mark.ta-on-brand { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-button-danger > .ta-busy-mark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }\n/* A busy button that brought no ta-busy-mark of its own gets one: its label inked out alone would leave it blank. */\n.ta-button.ta-busy:not(:has(> .ta-busy-mark))::after { content: ''; position: absolute; inset: 0; width: 13px; height: 13px; margin: auto; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary.ta-busy:not(:has(> .ta-busy-mark))::after { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-pending { animation: ta-busy-dim 180ms var(--ta-busy-delay) forwards; }\n.ta-spinner.ta-later { animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay, 160ms) both; }\n.ta-switch.ta-busy::before { content: ''; position: absolute; z-index: 1; top: 5px; left: 5px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, 0.12); border-top-color: #8a8a8a; transition: translate 180ms var(--ta-ease); animation: ta-turn 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-switch.ta-busy:checked::before { translate: 16px 0; border-top-color: var(--ta-green); }\n@keyframes ta-busy-in { from { opacity: 0; } }\n@keyframes ta-busy-ink { to { color: transparent; } }\n@keyframes ta-busy-dim { to { opacity: 0.45; } }\n/* A turn by rotate, which leaves transform and translate to what is turned. */\n@keyframes ta-turn { to rotate: 360deg; }\n/* Nothing to show (EmptyState, ui.Empty): in the middle of the space of its parent, a column of flex; compact, a line of its own in a menu or a picker. */\n.ta-empty { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 24px 56px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); text-wrap: balance; }\n.ta-empty-title { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-empty-title + .ta-empty-hint { margin-top: -4px; }\n/* Chinese breaks between its words and after its commas, as the first page of a conversation (.ta-hero p) */\n.ta-empty-hint { max-width: 260px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-empty-compact { flex: none; width: 100%; box-sizing: border-box; padding: 20px 12px; }\n.ta-empty-compact .ta-empty-title { font-size: calc(13px * var(--ta-font-scale)); font-weight: 400; }\n.ta-empty-picture { width: min(200px, 80%); margin-bottom: 8px; animation: ta-in 320ms var(--ta-ease) both; }\n.ta-empty-compact .ta-empty-picture { width: min(150px, 60%); margin-bottom: 4px; }\n.ta-setting-row > .ta-empty-compact { padding: 4px 0; }\n.ta-empty-error .ta-empty-title { color: var(--ta-red); overflow-wrap: anywhere; }\n/*\n * On its way (Loading, ui.Loading): a turning mark, its words under it, in the middle of the space of its parent as\n * .ta-empty (some room of its own where its parent is not a column of flex); only after a moment, so that what comes\n * at once never flashes it. Compact: a line of its own in a card, a dialog or a section.\n */\n.ta-loading { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 24px; box-sizing: border-box; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; animation: ta-fade 200ms ease-out var(--ta-loading-delay, 450ms) both; }\n.ta-loading-compact { flex: none; width: 100%; min-height: 0; padding: 20px 12px; }\n.ta-loading-label { max-width: 280px; text-wrap: balance; overflow-wrap: anywhere; }\n\n";
|
|
2
|
+
export declare const BASE_STYLE = "\n:root, :root[data-theme='dark'] {\n --ta-main: #141416;\n --ta-side: #1c1c1e;\n --ta-card: #1a1a1c;\n --ta-input: #1a1a1a;\n --ta-raised: #242426;\n --ta-user: #2a2a2d;\n --ta-hover: #2a2a2e;\n --ta-hover-strong: #333338;\n --ta-selected: #2c2c31;\n --ta-chip: #2a2a2e;\n /* The chosen segment of a segmented control, on a track of --ta-raised: above it, lighter in the dark. */\n --ta-segment: #333338;\n --ta-border: #2e2e33;\n --ta-border-muted: #232328;\n --ta-border-field: #3d3d45;\n --ta-border-focus: #8a8a96;\n --ta-text: #e5e5e5;\n --ta-body: #d4d4d6;\n --ta-secondary: #a3a3a3;\n --ta-muted: #7c7c82;\n /* The chevron of a select, drawn in --ta-muted (an image cannot take currentColor). */\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #e5e5e5;\n --ta-brand-text: #1a1a1a;\n --ta-accent: #34d399;\n --ta-link: #4dabf7;\n --ta-green: #4ade80;\n --ta-red: #f87171;\n /* The red number of what people said unseen (PeopleBadge), white on it: WeChat's, the same in both themes. */\n --ta-badge: #fa5151;\n --ta-yellow: #fbbf24;\n --ta-blue: #60a5fa;\n --ta-code: #161618;\n --ta-add: rgba(74, 222, 128, 0.1);\n --ta-remove: rgba(248, 113, 113, 0.1);\n --ta-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);\n --ta-shadow-composer: 0 12px 32px rgba(0, 0, 0, 0.32);\n --ta-scrollbar: rgba(255, 255, 255, 0.12);\n color-scheme: dark;\n}\n:root[data-theme='light'] {\n --ta-main: #ffffff;\n --ta-side: #f5f5f7;\n --ta-card: #ffffff;\n --ta-input: #ffffff;\n --ta-raised: #f3f3f5;\n --ta-user: #f2f2f2;\n --ta-hover: #ebebf0;\n --ta-hover-strong: #e2e2e8;\n --ta-selected: #e6e6ea;\n --ta-chip: #ececf0;\n --ta-segment: #ffffff;\n --ta-border: #dcdee3;\n --ta-border-muted: #e8eaed;\n --ta-border-field: #c9ccd4;\n --ta-border-focus: #6b6e76;\n --ta-text: #1a1a1a;\n --ta-body: #33363b;\n --ta-secondary: #5c5c5c;\n --ta-muted: #8e8e93;\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #1a1a1a;\n --ta-brand-text: #ffffff;\n --ta-accent: #10a372;\n --ta-link: #1677ff;\n --ta-green: #16a34a;\n --ta-red: #e5484d;\n --ta-badge: #fa5151;\n --ta-yellow: #d97706;\n --ta-blue: #1677ff;\n --ta-code: #f7f8fa;\n --ta-add: rgba(34, 197, 94, 0.1);\n --ta-remove: rgba(239, 68, 68, 0.08);\n --ta-shadow-pop: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);\n --ta-shadow-composer: 0 8px 24px rgba(15, 23, 42, 0.07);\n --ta-scrollbar: rgba(0, 0, 0, 0.14);\n color-scheme: light;\n}\n:root {\n /** The height of the title bar the page draws itself; see .ta-titlebar. */\n --ta-titlebar: 0px;\n /**\n * Under a title bar every column keeps a gap of 3px below it, and the first row of each rises into the rest of\n * its head, centred on the tabs of the workbench (34px high, below the gap) rather than on a head of 56px:\n * 28px - 3px - 17px. The search of the sidebar, 40px high, so starts right under the bar, none of it hidden.\n */\n --ta-top-gap: min(3px, var(--ta-titlebar));\n --ta-lift: min(8px, var(--ta-titlebar));\n --ta-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;\n --ta-mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;\n --ta-col: 760px;\n --ta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);\n /* The font sizes of the settings (TaSettingsImpl sets the first two). Every font size in px is written\n calc(13px * var(--ta-font-scale)), line heights in px too: the page's size (more on a phone, see\n style/device.ts), and in a conversation (.ta-conversation: its messages and the field of its message\n box) that of conversations on top of it. */\n --ta-page-font-scale: 1;\n --ta-chat-font-scale: 1;\n --ta-device-font-scale: 1;\n --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale));\n /* How wide the content of a page is (the pages of Discover, Extensions): a column of rows, a feed or a\n form; or wide, for cards and tiles side by side. Web extensions use them too. */\n --ta-page-width: 720px;\n --ta-page-wide: 880px;\n}\n.ta-conversation { --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale) * var(--ta-chat-font-scale)); font-size: calc(14px * var(--ta-font-scale)); }\n* { box-sizing: border-box; }\nhtml, body, #cell-root, #root { height: 100%; margin: 0; }\n/* The page and its scrolling areas do not bounce at the ends. Only scrolling areas of their own: on any\n other element (one with overflow: hidden is a scroll container too) it stops the wheel from reaching\n the area under it, and nothing scrolls while the pointer is over a card or a code block. */\nhtml, body, .ta-scroll, .ta-chat-scroll, .ta-side-scroll, .ta-rail-items, .ta-side-view-body, .ta-editor-body,\n.ta-workbench-launcher, .ta-workbench-menu, .ta-settings-scroll, .ta-settings-toc, .ta-pick-list, .ta-commands,\n.ta-folder-list, .ta-auth-list { overscroll-behavior: none; }\nbody { background: var(--ta-main); color: var(--ta-text); font: calc(14px * var(--ta-font-scale))/1.6 var(--ta-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }\nbutton, input, select, textarea { font: inherit; color: inherit; }\nbutton { cursor: pointer; }\ncode, pre { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\na { color: var(--ta-link); text-decoration: none; }\n* { scrollbar-width: thin; scrollbar-color: var(--ta-scrollbar) transparent; }\n:focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 1px; }\n.ta-muted { color: var(--ta-muted); }\n.ta-small { font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-path { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-spacer { flex: 1; }\n.ta-icon { flex: none; }\n.ta-narrow-only { display: none !important; }\n.ta-glass { background: var(--ta-card); border: 1px solid var(--ta-border); }\n\n/* Controls */\n.ta-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ta-border); background: transparent; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; color: var(--ta-text); transition: background 120ms, border-color 120ms; }\n.ta-button:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-button:disabled { opacity: 0.45; cursor: default; }\n.ta-primary { background: var(--ta-brand); border-color: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-primary:hover:not(:disabled) { background: var(--ta-brand); opacity: 0.88; }\n.ta-danger, .ta-stop { color: var(--ta-red); }\n.ta-quiet { border-color: transparent; color: var(--ta-secondary); }\n.ta-wide { width: 100%; height: 38px; }\n.ta-link { background: none; border: 0; padding: 0; color: var(--ta-link); font-size: calc(12px * var(--ta-font-scale)); display: inline-flex; align-items: center; gap: 4px; }\n/* Buttons that hold an icon, centred in a box of their size: without the padding of the browser, which iOS makes 14px a side, so that the icon sat off centre there. */\n.ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }\n.ta-icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-icon-button:disabled { opacity: 0.4; }\n.ta-icon-button.ta-on { color: var(--ta-text); background: var(--ta-hover); }\n.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height: var(--ta-input-height); width: var(--ta-input-height); }\n.ta-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }\n/* Fields and forms are style/forms.ts. */\n/* Every select of Ta and of its extensions has the one chevron of the model picker, kept off its right border by\n --ta-select-inset; each owner sets only its box. A select that draws its own (or none) is .ta-select-plain. */\nselect:not([multiple]):not([size]):not(.ta-select-plain) { appearance: none; -webkit-appearance: none; padding-right: calc(var(--ta-select-inset, 10px) + 21px); background-image: var(--ta-select-chevron); background-repeat: no-repeat; background-position: right var(--ta-select-inset, 10px) center; background-size: 15px 15px; text-overflow: ellipsis; cursor: pointer; }\nselect.ta-select-plain { appearance: none; -webkit-appearance: none; }\nselect:disabled { cursor: default; }\n.ta-editor { height: auto; min-height: 140px; padding: 8px 10px; font-family: var(--ta-mono); resize: vertical; }\n.ta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n/* Levels: the colour of the icon tells the level; the text stays in the colours of text. */\n.ta-level-info { --ta-level: var(--ta-blue); }\n.ta-level-success { --ta-level: var(--ta-green); }\n.ta-level-warning { --ta-level: var(--ta-yellow); }\n.ta-level-error { --ta-level: var(--ta-red); }\n.ta-level-icon { color: var(--ta-level, var(--ta-muted)); }\n/* In its place: a soft tint of its level, the text in the colours of text. */\n.ta-callout { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; text-align: left; color: var(--ta-body); background: color-mix(in srgb, var(--ta-level) 7%, var(--ta-card)); border: 1px solid color-mix(in srgb, var(--ta-level) 18%, var(--ta-border-muted)); }\n.ta-callout > .ta-level-icon { margin-top: 2px; }\n.ta-callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-callout-message { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-callout-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-empty .ta-callout { max-width: min(520px, 100%); }\n.ta-spinner { width: 13px; height: 13px; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite; flex: none; display: inline-block; }\n/*\n * Busy (components/busy.tsx): what waits on something slow says so only once it took a moment (--ta-busy-delay),\n * so that what is quick does not flash, and takes no second click meanwhile. ta-busy a button or an icon\n * button, its spinner (ta-busy-mark; with ta-on-brand on a button of the brand's color) over its label, which keeps its width; ta-pending a row that is being\n * taken away, which fades back; ta-spinner ta-later a spinner of its own; ta-switch ta-busy a switch, which\n * moved at once, its knob turning.\n */\n.ta-busy, .ta-pending { --ta-busy-delay: 160ms; pointer-events: none; }\n.ta-busy:not(.ta-switch) { animation: ta-busy-ink 0s var(--ta-busy-delay) forwards; }\n.ta-button.ta-busy { position: relative; }\n.ta-busy > .ta-busy-mark { position: absolute; inset: 0; margin: auto; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary > .ta-busy-mark, .ta-busy-mark.ta-on-brand { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-button-danger > .ta-busy-mark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }\n/* A busy button that brought no ta-busy-mark of its own gets one: its label inked out alone would leave it blank. */\n.ta-button.ta-busy:not(:has(> .ta-busy-mark))::after { content: ''; position: absolute; inset: 0; width: 13px; height: 13px; margin: auto; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary.ta-busy:not(:has(> .ta-busy-mark))::after { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-pending { animation: ta-busy-dim 180ms var(--ta-busy-delay) forwards; }\n.ta-spinner.ta-later { animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay, 160ms) both; }\n.ta-switch.ta-busy::before { content: ''; position: absolute; z-index: 1; top: 5px; left: 5px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, 0.12); border-top-color: #8a8a8a; transition: translate 180ms var(--ta-ease); animation: ta-turn 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-switch.ta-busy:checked::before { translate: 16px 0; border-top-color: var(--ta-green); }\n@keyframes ta-busy-in { from { opacity: 0; } }\n@keyframes ta-busy-ink { to { color: transparent; } }\n@keyframes ta-busy-dim { to { opacity: 0.45; } }\n/* A turn by rotate, which leaves transform and translate to what is turned. */\n@keyframes ta-turn { to rotate: 360deg; }\n/* Nothing to show (EmptyState, ui.Empty): in the middle of the space of its parent, a column of flex; compact, a line of its own in a menu or a picker. */\n.ta-empty { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 24px 56px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); text-wrap: balance; }\n.ta-empty-title { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-empty-title + .ta-empty-hint { margin-top: -4px; }\n/* Chinese breaks between its words and after its commas, as the first page of a conversation (.ta-hero p) */\n.ta-empty-hint { max-width: 260px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-empty-compact { flex: none; width: 100%; box-sizing: border-box; padding: 20px 12px; }\n.ta-empty-compact .ta-empty-title { font-size: calc(13px * var(--ta-font-scale)); font-weight: 400; }\n.ta-empty-picture { width: min(200px, 80%); margin-bottom: 8px; animation: ta-in 320ms var(--ta-ease) both; }\n.ta-empty-compact .ta-empty-picture { width: min(150px, 60%); margin-bottom: 4px; }\n.ta-setting-row > .ta-empty-compact { padding: 4px 0; }\n.ta-empty-error .ta-empty-title { color: var(--ta-red); overflow-wrap: anywhere; }\n/*\n * On its way (Loading, ui.Loading): a turning mark, its words under it, in the middle of the space of its parent as\n * .ta-empty (some room of its own where its parent is not a column of flex); only after a moment, so that what comes\n * at once never flashes it. Compact: a line of its own in a card, a dialog or a section.\n */\n.ta-loading { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 24px; box-sizing: border-box; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; animation: ta-fade 200ms ease-out var(--ta-loading-delay, 450ms) both; }\n.ta-loading-compact { flex: none; width: 100%; min-height: 0; padding: 20px 12px; }\n.ta-loading-label { max-width: 280px; text-wrap: balance; overflow-wrap: anywhere; }\n\n";
|
|
3
3
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -32,6 +32,8 @@ exports.BASE_STYLE = `
|
|
|
32
32
|
--ta-link: #4dabf7;
|
|
33
33
|
--ta-green: #4ade80;
|
|
34
34
|
--ta-red: #f87171;
|
|
35
|
+
/* The red number of what people said unseen (PeopleBadge), white on it: WeChat's, the same in both themes. */
|
|
36
|
+
--ta-badge: #fa5151;
|
|
35
37
|
--ta-yellow: #fbbf24;
|
|
36
38
|
--ta-blue: #60a5fa;
|
|
37
39
|
--ta-code: #161618;
|
|
@@ -69,6 +71,7 @@ exports.BASE_STYLE = `
|
|
|
69
71
|
--ta-link: #1677ff;
|
|
70
72
|
--ta-green: #16a34a;
|
|
71
73
|
--ta-red: #e5484d;
|
|
74
|
+
--ta-badge: #fa5151;
|
|
72
75
|
--ta-yellow: #d97706;
|
|
73
76
|
--ta-blue: #1677ff;
|
|
74
77
|
--ta-code: #f7f8fa;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** The list of chats: its search, its rows, the letters and faces of their groups. */
|
|
2
|
-
export declare const CHAT_LIST_STYLE = "\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-pressed='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-ink); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n/* As light as the search glass at the other end of the field. */\n.ta-chats-view .ta-icon { width: 16px; height: 16px; }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--tone-tint); color: var(--tone-ink); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-fold { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */\n.ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }\n.ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tone-tint); color: var(--tone-ink); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n/* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */\n.ta-chat-title.ta-badged { flex: 0 1 auto; }\n.ta-chat-tag { display: inline-flex; align-items: center; gap: 2px; }\n.ta-chat-tag.ta-tone-blue { background: color-mix(in oklab, var(--ta-blue) 13%, transparent); color: var(--ta-blue); }\n.ta-chat-tag.ta-tone-gray { background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); }\n.ta-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ta-title-line > .ta-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-title-line > .ta-chat-tag { margin: 0; }\n.ta-chat-tag-open { border: 0; font-family: inherit; cursor: pointer; }\n.ta-chat-tag-open:hover { filter: brightness(0.94); }\n.ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n/* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */\n.ta-chat-face { flex: none; display: inline-grid; place-items: center; }\n/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\n/* In a row of one line, in the room left of its title, under the letter of its group: the title stays where the others are. */\n.ta-compact .ta-chat-face { margin-left: -28px; }\n/* What goes on in it, at the end of a line: answering (a spinner, on the line under the title), a task that failed or was stopped. */\n.ta-chat-state { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n.ta-chat-state .ta-status { width: 8px; }\n.ta-chat-state.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Under the title, as a messaging app: the last thing said, or its directory; how a task ended, before it, as WeChat's [Draft]. */\n.ta-chat-dir { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: top; }\n.ta-chat-dir > svg { flex: none; }\n.ta-chat-flag { margin-right: 3px; }\n.ta-chat-flag.ta-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-muted)); }\n/* Its directory, in place of its time while the pointer is on it. */\n.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-place > svg { flex: none; }\n.ta-chat-place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n@media (hover: hover) {\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-place { display: inline-flex; }\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-time { display: none; }\n}\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* On the line under the title, at its end; in the middle of a row of one line. */\n.ta-chat-delete { position: absolute; bottom: 7px; right: 8px; width: 26px; height: 26px; opacity: 0; }\n.ta-chat-row:has(.ta-compact) .ta-chat-delete { bottom: auto; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); }\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n/* A row that slides past others to its new place (ListMotion) goes over them, in the color of its row. */\n.ta-chat-row[data-moving] { z-index: 1; background: var(--ta-chat-bg); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; font-size: 9px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 3px; right: 1px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ta-blue); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -5px; right: -11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 599px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) { .ta-cwd-chip { max-width: 120px; } }\n/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n/* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */\n.ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }\n.ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }\n.ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }\n/* PeoplePicker (ui.PeoplePicker): every pick of people, as a messenger's. A box to search with the ones picked in it, rows of faces and names under headings, the round marks of several chosen. */\n.ta-picker { display: flex; flex-direction: column; gap: 6px; min-height: 0; }\n.ta-picker-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 4px 10px; box-sizing: border-box; border-radius: 10px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-picker-search:focus-within { color: var(--ta-secondary); }\n.ta-picker-search input { flex: 1; min-width: 80px; height: 28px; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); outline: none; }\n.ta-picker-search input::placeholder { color: var(--ta-muted); }\n.ta-picker-chip { flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; animation: ta-fade 140ms; }\n.ta-picker-chip:disabled { cursor: default; }\n.ta-picker-list { position: relative; display: flex; flex-direction: column; min-height: 0; max-height: min(420px, 56vh); margin: 0 -4px; padding: 0 4px; overflow-y: auto; }\n/* Its headings stay on top as the list scrolls, on the colour of what it is drawn on: a dialog's, else --ta-picker-bg. */\n.ta-picker-heading { position: sticky; top: 0; z-index: 1; padding: 8px 8px 4px; background: var(--ta-picker-bg, var(--ta-card)); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; }\n.ta-picker-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-picker-row:hover:not(:disabled), .ta-picker-row:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-picker-row:disabled { cursor: default; }\n.ta-picker-row:disabled:not([aria-pressed='true']) .ta-picker-text, .ta-picker-row:disabled:not([aria-pressed='true']) > .ta-face { opacity: .45; }\n.ta-picker-face { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }\n.ta-picker-face > span { display: inline-grid; place-items: center; flex: none; }\n.ta-picker-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-picker-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ta-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-picker-tag { flex: none; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-picker-detail { overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-picker-check { flex: none; color: var(--ta-accent); }\n/* A dialog around it: a line of what it is for, the picker, why it failed, the button. */\n.ta-picker-dialog { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-picker-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-picker-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }\n";
|
|
2
|
+
export declare const CHAT_LIST_STYLE = "\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-pressed='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-ink); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n/* As light as the search glass at the other end of the field. */\n.ta-chats-view .ta-icon { width: 16px; height: 16px; }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--tone-tint); color: var(--tone-ink); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-fold { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */\n.ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }\n.ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tone-tint); color: var(--tone-ink); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n/* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */\n.ta-chat-title.ta-badged { flex: 0 1 auto; }\n.ta-chat-tag { display: inline-flex; align-items: center; gap: 2px; }\n.ta-chat-tag.ta-tone-blue { background: color-mix(in oklab, var(--ta-blue) 13%, transparent); color: var(--ta-blue); }\n.ta-chat-tag.ta-tone-gray { background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); }\n.ta-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ta-title-line > .ta-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-title-line > .ta-chat-tag { margin: 0; }\n.ta-chat-tag-open { border: 0; font-family: inherit; cursor: pointer; }\n.ta-chat-tag-open:hover { filter: brightness(0.94); }\n.ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n/* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */\n.ta-chat-face { flex: none; display: inline-grid; place-items: center; }\n/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\n/* In a row of one line, in the room left of its title, under the letter of its group: the title stays where the others are. */\n.ta-compact .ta-chat-face { margin-left: -28px; }\n/* What goes on in it, at the end of a line: answering (a spinner, on the line under the title), a task that failed or was stopped. */\n.ta-chat-state { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n.ta-chat-state .ta-status { width: 8px; }\n.ta-chat-state.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Under the title, as a messaging app: the last thing said, or its directory; how a task ended, before it, as WeChat's [Draft]. */\n.ta-chat-dir { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: top; }\n.ta-chat-dir > svg { flex: none; }\n.ta-chat-flag { margin-right: 3px; }\n.ta-chat-flag.ta-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft, .ta-chat-flag.ta-alert { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-muted)); }\n/* Its directory, in place of its time while the pointer is on it. */\n.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-place > svg { flex: none; }\n.ta-chat-place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n@media (hover: hover) {\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-place { display: inline-flex; }\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-time { display: none; }\n}\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* On the line under the title, at its end; in the middle of a row of one line. */\n.ta-chat-delete { position: absolute; bottom: 7px; right: 8px; width: 26px; height: 26px; opacity: 0; }\n.ta-chat-row:has(.ta-compact) .ta-chat-delete { bottom: auto; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); }\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n/* A row that slides past others to its new place (ListMotion) goes over them, in the color of its row. */\n.ta-chat-row[data-moving] { z-index: 1; background: var(--ta-chat-bg); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; font-size: 9px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 2px; right: 0; z-index: 1; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--ta-blue); color: #fff; display: block; align-content: center; text-align: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; text-box: trim-both cap alphabetic; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -6px; right: -12px; }\n.ta-asks-badge.ta-people { background: var(--ta-badge); }\n/* Digits centred by their own height (text-box), not by the line, which sits them low; the rest centre as before. */\n.ta-chat-dot.ta-count { display: block; align-content: center; text-align: center; background: var(--ta-badge); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; text-box: trim-both cap alphabetic; }\n.ta-chat-line > .ta-chat-dot.ta-count { width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; box-sizing: border-box; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-count { top: -6px; right: -7px; bottom: auto; width: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 599px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) { .ta-cwd-chip { max-width: 120px; } }\n/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n/* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */\n.ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }\n.ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }\n.ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }\n/* PeoplePicker (ui.PeoplePicker): every pick of people, as a messenger's. A box to search with the ones picked in it, rows of faces and names under headings, the round marks of several chosen. */\n.ta-picker { display: flex; flex-direction: column; gap: 6px; min-height: 0; }\n.ta-picker-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 4px 10px; box-sizing: border-box; border-radius: 10px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-picker-search:focus-within { color: var(--ta-secondary); }\n.ta-picker-search input { flex: 1; min-width: 80px; height: 28px; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); outline: none; }\n.ta-picker-search input::placeholder { color: var(--ta-muted); }\n.ta-picker-chip { flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; animation: ta-fade 140ms; }\n.ta-picker-chip:disabled { cursor: default; }\n.ta-picker-list { position: relative; display: flex; flex-direction: column; min-height: 0; max-height: min(420px, 56vh); margin: 0 -4px; padding: 0 4px; overflow-y: auto; }\n/* Its headings stay on top as the list scrolls, on the colour of what it is drawn on: a dialog's, else --ta-picker-bg. */\n.ta-picker-heading { position: sticky; top: 0; z-index: 1; padding: 8px 8px 4px; background: var(--ta-picker-bg, var(--ta-card)); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; }\n.ta-picker-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-picker-row:hover:not(:disabled), .ta-picker-row:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-picker-row:disabled { cursor: default; }\n.ta-picker-row:disabled:not([aria-pressed='true']) .ta-picker-text, .ta-picker-row:disabled:not([aria-pressed='true']) > .ta-face { opacity: .45; }\n.ta-picker-face { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }\n.ta-picker-face > span { display: inline-grid; place-items: center; flex: none; }\n.ta-picker-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-picker-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ta-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-picker-tag { flex: none; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-picker-detail { overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-picker-check { flex: none; color: var(--ta-accent); }\n/* A dialog around it: a line of what it is for, the picker, why it failed, the button. */\n.ta-picker-dialog { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-picker-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-picker-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }\n";
|
|
3
3
|
//# sourceMappingURL=chat-list.d.ts.map
|
|
@@ -99,7 +99,7 @@ exports.CHAT_LIST_STYLE = `
|
|
|
99
99
|
.ta-chat-line .ta-people-face { box-shadow: none; background: none; }
|
|
100
100
|
.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }
|
|
101
101
|
.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }
|
|
102
|
-
.ta-chat-flag.ta-draft { color: var(--ta-red); }
|
|
102
|
+
.ta-chat-flag.ta-draft, .ta-chat-flag.ta-alert { color: var(--ta-red); }
|
|
103
103
|
.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-muted)); }
|
|
104
104
|
/* Its directory, in place of its time while the pointer is on it. */
|
|
105
105
|
.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }
|
|
@@ -144,8 +144,13 @@ exports.CHAT_LIST_STYLE = `
|
|
|
144
144
|
.ta-chat-filter-chip > svg { color: var(--ta-muted); }
|
|
145
145
|
.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }
|
|
146
146
|
/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */
|
|
147
|
-
.ta-asks-badge { position: absolute; top:
|
|
148
|
-
.ta-tabbar-icon > .ta-asks-badge { top: -
|
|
147
|
+
.ta-asks-badge { position: absolute; top: 2px; right: 0; z-index: 1; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--ta-blue); color: #fff; display: block; align-content: center; text-align: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; text-box: trim-both cap alphabetic; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }
|
|
148
|
+
.ta-tabbar-icon > .ta-asks-badge { top: -6px; right: -12px; }
|
|
149
|
+
.ta-asks-badge.ta-people { background: var(--ta-badge); }
|
|
150
|
+
/* Digits centred by their own height (text-box), not by the line, which sits them low; the rest centre as before. */
|
|
151
|
+
.ta-chat-dot.ta-count { display: block; align-content: center; text-align: center; background: var(--ta-badge); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; text-box: trim-both cap alphabetic; }
|
|
152
|
+
.ta-chat-line > .ta-chat-dot.ta-count { width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; box-sizing: border-box; }
|
|
153
|
+
.ta-chat-avatar-box > .ta-chat-dot.ta-count { top: -6px; right: -7px; bottom: auto; width: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 11px; }
|
|
149
154
|
@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }
|
|
150
155
|
/* What came unseen reads as unread: in the color of the text, not muted. */
|
|
151
156
|
.ta-chat-sub.ta-unseen { color: var(--ta-text); }
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** The conversation column: the steps of a turn, the pictures of a message, the message box and its + menu, the messages waiting. */
|
|
2
|
-
export declare const CONVERSATION_COLUMN_STYLE = "\n/* The conversation: the avatar's mark, the folded work, the message box, the account */\n.ta-avatar-marked { position: relative; display: inline-block; flex: none; }\n.ta-avatar-marked .ta-avatar { width: 100%; height: 100%; }\n.ta-avatar-mark { position: absolute; right: -6%; bottom: -6%; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; border-radius: 0.8em; display: grid; place-items: center; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 1.5px var(--ta-main); font-weight: 600; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }\n.ta-working { color: var(--ta-secondary); font-weight: 400; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-turn-head { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-turn-head .ta-process-head { margin-left: 0; }\n/* What ta does, before the first step, where the head of the steps will say how many there are: its words in the same place. */\n.ta-turn-head > .ta-run-status { padding-left: 6px; }\n.ta-run-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-run-phase { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-run-tokens { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-run-tokens > span { display: inline-flex; align-items: center; gap: 1px; }\n/* Under the words of a turn its dot starts where they do: the dot is centred in its box, which starts a little before. */\n.ta-run-line { display: flex; min-width: 0; min-height: 22px; margin-top: -6px; }\n.ta-run-line > .ta-run-status > .ta-status { margin-left: -3px; }\n/* Under the steps of a turn the line is one more step: its dot under the avatar, folded or open; under the open ones at their pitch, on the string's line. */\n.ta-run-line.ta-run-steps { padding-left: 9px; }\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps, .ta-thread-item:has(> .ta-msg-ta > .ta-process > .ta-process-steps) + .ta-run-steps { margin-top: -18px; }\n/* There, a call it runs is already the last step, its dot breathing: the line would say it again. */\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool), .ta-thread-item:has(> .ta-msg-ta > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool) { display: none; }\n/* What waits for the user is a blue ?, apart from the blue dot that breathes while it works and the amber of something unseen. */\n.ta-status-waiting::before { content: '?'; width: 10px; height: 10px; background: var(--ta-blue); color: #fff; font-size: 8px; font-weight: 700; line-height: 10px; text-align: center; }\n/* On the head of a turn the face of ta already shows that it works. */\n.ta-turn-head .ta-run-status > .ta-status { display: none; }\n.ta-session { container-type: inline-size; }\n.ta-session-header .ta-session-title { min-width: 72px; }\n/* A narrow conversation (a phone, or beside an open editor): one line, the title keeps its room, the path gives way. */\n@container (max-width: 600px) {\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding-left: 12px; padding-right: 8px; }\n .ta-session-title .ta-path { display: none; }\n}\n/* A message of the user that has pictures: the pictures and the words in one bubble, the pictures first\n and within the bubble's padding. */\n.ta-bubble-media { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px; white-space: normal; }\n.ta-bubble-media .ta-bubble-text { align-self: stretch; padding: 2px 10px 5px; white-space: pre-wrap; word-break: break-word; }\n/* Pictures alone: the bubble is what they are, so it has no frame of its own. */\n.ta-bubble-media.ta-bubble-bare, .ta-msg-bubble.ta-bubble-bare { padding: 0; background: transparent; }\n/* One picture keeps its own shape, a few stand as squares of one size: the sizes of a message, not of a page. */\n.ta-user-images { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; max-width: 100%; }\n/* Several: in columns as a gallery of a reply has them (GalleryUtil.columns), four in two rows of two. */\n.ta-user-images:not([data-count='1']) { display: grid; grid-template-columns: repeat(var(--ta-user-image-columns, 3), 80px); }\n.ta-user-image { padding: 0; border: 0; border-radius: 12px; background: transparent; line-height: 0; cursor: zoom-in; overflow: hidden; transition: opacity 120ms; }\n.ta-user-image:active { opacity: 0.8; }\n.ta-user-images .ta-thumb { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--ta-raised); }\n.ta-user-images[data-count='1'] .ta-thumb { width: auto; height: auto; max-width: 220px; max-height: 280px; object-fit: contain; }\n/* An image still on its way (its bytes come once shown, TaShownImage), in its place: of its size when known. */\n.ta-thumb-waiting { background: var(--ta-raised); animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n/* A picture of a chat still on its way (ChatImages): its tiny thumbnail, blurred, in its place. */\n.ta-thumb-blurred { display: block; overflow: hidden; background: var(--ta-raised); }\n.ta-thumb-blurred img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(8px) saturate(1.1); transform: scale(1.15); }\n.ta-user-images[data-count='1'] .ta-thumb-blurred:not([style]) { width: 160px; height: 120px; }\n.ta-user-images[data-count='1'] .ta-thumb-waiting:not([style]) { width: 160px; height: 120px; }\n.ta-user-image:disabled { cursor: default; opacity: 1; }\n@keyframes ta-shimmer-soft { 50% { opacity: 0.6; } }\n/*\n * Pictures sent together, folded as WeChat folds them (ImageStack): the first in its shape, two peeking from behind it,\n * smaller and dimmer, a pill beside it to unfold them, on the side away from the edge the message keeps to.\n */\n.ta-image-stack { display: flex; align-items: center; justify-content: flex-end; gap: 14px; max-width: 100%; }\n.ta-user-other .ta-image-stack, .trm-msg .ta-image-stack, .tac-msg .ta-image-stack { flex-direction: row-reverse; }\n.ta-stack-cards { position: relative; display: block; margin: 0 18px 4px; padding: 0; border: 0; background: transparent; line-height: 0; cursor: zoom-in; }\n.ta-stack-cards:disabled { cursor: default; }\n.ta-stack-card { display: block; object-fit: cover; border-radius: 12px; background: var(--ta-raised); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }\n.ta-stack-front { position: relative; z-index: 2; }\n.ta-stack-left, .ta-stack-right { position: absolute; inset: 0; z-index: 1; filter: brightness(0.82); }\n.ta-stack-left { transform: translateX(-30px) scale(0.86); }\n.ta-stack-right { transform: translateX(30px) scale(0.86); }\n.ta-stack-unfold, .ta-stack-fold { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ta-raised); color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.3; cursor: pointer; white-space: nowrap; }\n.ta-stack-unfold:hover, .ta-stack-fold:hover { color: var(--ta-text); }\n.ta-stack-fold { grid-column: 1 / -1; justify-self: end; margin-top: 2px; padding: 4px 12px; font-size: calc(12px * var(--ta-font-scale)); }\n.ta-user-other .ta-stack-fold, .trm-msg .ta-stack-fold, .tac-msg .ta-stack-fold { justify-self: start; }\n/* Pictures on their own, without a bubble to hold them: at the edge of the message, as a bubble is. */\n.ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { justify-content: flex-end; max-width: 78%; }\n.ta-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n.ta-process { display: flex; flex-direction: column; }\n.ta-process-head { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-process-head:hover { background: var(--ta-hover); color: var(--ta-secondary); } }\n.ta-process-active .ta-process-head { color: var(--ta-secondary); }\n.ta-process-chevron { transition: transform 150ms var(--ta-ease); }\n.ta-process-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-process-failed { color: var(--ta-muted); }\n/* The string of the steps runs under the middle of the avatar (24px wide): 12px in. */\n.ta-process-steps { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 4px 0 4px 12px; padding: 2px 0 2px 13px; }\n/* The string runs from the first bead to the last, not past them. */\n.ta-process-steps::before { content: ''; position: absolute; left: -0.5px; top: calc(2px + 13px * var(--ta-font-scale)); bottom: calc(2px + 13px * var(--ta-font-scale)); width: 1px; background: var(--ta-border-muted); }\n/* The dots of the steps sit on the line, like beads on a string: each in a disc of the page's color that cuts the line. */\n.ta-process-steps .ta-status { position: absolute; left: -6px; border-radius: 50%; background: var(--ta-main); }\n/* A step of words is as high as a step of a tool when it has one line, its dot on the middle of that line: the steps keep one pitch. */\n.ta-step-text { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; padding: calc(2.2px * var(--ta-font-scale)) 0; }\n.ta-step-text > .ta-status { margin-top: calc(0.8em - 6px); }\n.ta-step-toggle { display: flex; align-items: center; gap: 6px; width: calc(100% + 6px); min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; transition: background 120ms; background: transparent; text-align: left; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-step-tag { flex: none; color: var(--ta-text); }\n.ta-step-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-step-chevron { flex: none; transition: transform 150ms var(--ta-ease); }\n.ta-step-toggle[aria-expanded='true'] .ta-step-chevron { transform: rotate(90deg); }\n.ta-step-thinking .ta-thinking-text, .ta-step-summary .ta-thinking-text { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); padding: 2px 0 4px; }\n.ta-console-box { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }\n.ta-console-box.ta-dragging { border-color: var(--ta-border-focus); border-style: dashed; }\n/* The field and its controls: the field's line is 1.55 of its font and 5px above and under it (layout.ts),\n and each control stands centred on its last line, the half of what the line is higher than it under it\n (--ta-control: the height of the control, 30px unless it says). */\n.ta-console-row { display: flex; align-items: flex-end; gap: 6px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }\n.ta-console-row > :not(textarea) { margin-bottom: max(0px, calc((var(--ta-field-height) - var(--ta-control, 30px)) / 2)); }\n.ta-console-row .ta-attach { width: 30px; height: 30px; }\n/* As high as its button, which the row centres (a block would add the line under it). */\n.ta-plus { position: relative; flex: none; display: flex; }\n.ta-plus-button { border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-plus-button:hover, .ta-plus-button.ta-on { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-plus-button svg { transition: transform 150ms var(--ta-ease); }\n.ta-plus-button.ta-on svg { transform: rotate(45deg); }\n.ta-plus-menu { position: absolute; left: -2px; bottom: calc(100% + 10px); z-index: 20; display: flex; flex-direction: column; width: min(340px, calc(100vw - 32px)); padding: 8px 6px 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n/* Every entry a tile, a page of four by two at a time (PlusMenuUtil.PAGE), as WeChat's + panel: more of them is another page to swipe to, never a taller menu. */\n.ta-plus-pages { display: flex; flex: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }\n.ta-plus-pages::-webkit-scrollbar { display: none; }\n.ta-plus-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: start; gap: 4px 2px; scroll-snap-align: start; scroll-snap-stop: always; }\n.ta-plus-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 6px 0 4px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-plus-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ta-hover); color: var(--ta-text); transition: background 120ms, color 120ms; }\n.ta-plus-tile-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }\n/* A switch that is on: its icon lit in green. */\n.ta-plus-tile[aria-checked='true'] .ta-plus-tile-icon { background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: var(--ta-green); }\n.ta-plus-tile:active:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-plus-tile:hover:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); } }\n.ta-plus-tile:focus-visible { outline: none; background: var(--ta-hover); }\n.ta-plus-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-plus-tile-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; padding: 0 2px; overflow: hidden; color: var(--ta-secondary); font-size: calc(11.5px * var(--ta-font-scale)); line-height: 1.3; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }\n/* A setting or a switch: its label on one line, its value (the model, on or off) under it, quieter. */\n.ta-plus-valued .ta-plus-tile-label { -webkit-line-clamp: 1; }\n.ta-plus-tile-value { max-width: 100%; margin-top: -3px; padding: 0 2px; overflow: hidden; color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }\n.ta-plus-dots { display: flex; flex: none; justify-content: center; gap: 2px; padding: 4px 0 0; }\n.ta-plus-dots button { position: relative; width: 16px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }\n.ta-plus-dots button::after { content: ''; position: absolute; left: 5px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-hover-strong); transition: background 150ms; }\n.ta-plus-dots button.ta-on::after { background: var(--ta-secondary); }\n/* A list opened in the + menu, as every list to pick from (OptionList): a fixed width, that narrowing it does not change. */\n.ta-plus-list { width: 300px; }\n/*\n * On a phone the panel is under the box, in place of the keyboard, as WeChat's: part of the page, so the box and\n * the conversation rise with it as it unfolds and fall as it folds (the rows of a grid, from none of it to all).\n */\n.ta-plus-dock { display: grid; grid-template-rows: 1fr; animation: ta-plus-unfold 240ms var(--ta-ease) both; }\n.ta-plus-dock.ta-closing { animation: ta-plus-fold 200ms var(--ta-ease) both; }\n.ta-plus-dock-inner { min-height: 0; overflow: hidden; }\n/* One height whatever it shows (a page of tiles, the last page, a list), as the keyboard it stands for: the box does not move as one turns to another. */\n.ta-plus-dock .ta-plus-menu { position: static; box-sizing: border-box; width: auto; max-width: none; height: 240px; padding: 14px 0 0; border: 0; border-radius: 0; background: var(--ta-main); box-shadow: none; animation: none; }\n.ta-plus-dock .ta-plus-page { gap: 10px 2px; }\n.ta-plus-dock .ta-plus-dots { padding-top: 10px; }\n.ta-plus-dock .ta-plus-pages { flex: 1; min-height: 0; }\n/*\n * A list opened in the panel (the models) as the grouped lists of iOS: under a title with its way back, a search\n * on a raised field, the entries on a raised card of rounded corners with hairlines between them, each group's\n * name above its card and sticking on top on the page's color, the one picked checked on the right.\n */\n.ta-plus-dock .ta-plus-list { padding-top: 6px; }\n.ta-plus-dock .ta-plus-back { height: 34px; margin-bottom: 6px; padding: 0 2px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-plus-dock .ta-plus-back svg { color: var(--ta-secondary); }\n.ta-plus-dock .ta-pick { display: flex; flex-direction: column; flex: 1; min-height: 0; }\n.ta-plus-dock .ta-pick-search { height: 36px; margin-bottom: 2px; border-radius: 10px; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-list { flex: 1; min-height: 0; max-height: none; padding-bottom: 10px; }\n.ta-plus-dock .ta-pick-section + .ta-pick-section { margin-top: 0; }\n.ta-plus-dock .ta-pick-group { padding: 12px 14px 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > :first-child { margin-top: 8px; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > .ta-pick-group { margin-top: 0; padding-top: 6px; }\n.ta-plus-dock .ta-pick-item { min-height: 46px; padding: 0 14px; border-radius: 0; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item + .ta-pick-item { box-shadow: inset 14px 0 0 var(--ta-raised), inset 0 0.5px 0 var(--ta-border); }\n.ta-plus-dock .ta-pick-group + .ta-pick-item, .ta-plus-dock .ta-pick-section > .ta-pick-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item[data-active='true']:not(:disabled) { background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-plus-dock .ta-pick-check { color: var(--ta-green); }\n@keyframes ta-plus-unfold { from { grid-template-rows: 0fr; opacity: 0; } }\n@keyframes ta-plus-fold { to { grid-template-rows: 0fr; opacity: 0; } }\n/* The emoji of the box (ComposerBoxProps.emoji): on a computer a popover above its button; on a phone a panel in place of the keyboard, as tall as the + panel, Delete and Send floating at its foot as WeChat's. */\n.ta-emoji-anchor { position: relative; flex: none; display: flex; }\n.ta-emoji-button.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-emoji-pop { position: absolute; right: -44px; bottom: calc(100% + 10px); z-index: 20; box-sizing: border-box; width: min(340px, calc(100vw - 32px)); max-height: 236px; padding: 8px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 2px; }\n.ta-emoji { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: none; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: calc(25px * var(--ta-font-scale)); line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-emoji:active { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-emoji:hover { background: var(--ta-hover); } }\n.ta-emoji-panel { position: relative; height: 240px; background: var(--ta-emoji-back, var(--ta-main)); }\n.ta-emoji-panel .ta-emoji-grid { box-sizing: border-box; height: 100%; padding: 10px 6px 62px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }\n.ta-emoji-panel .ta-emoji-grid::-webkit-scrollbar { display: none; }\n.ta-emoji-keys { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; padding: 14px 12px 10px 28px; background: linear-gradient(to right, transparent, var(--ta-emoji-back, var(--ta-main)) 26px); }\n.ta-emoji-key { display: grid; place-items: center; min-width: 58px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(15px * var(--ta-font-scale)); box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, .12); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-emoji-key:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-emoji-send { background: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-emoji-send:active:not(:disabled) { background: var(--ta-brand); opacity: .85; }\n.ta-emoji-send:disabled { background: var(--ta-raised); color: var(--ta-muted); cursor: default; }\n.ta-plus-back { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; margin-bottom: 4px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; }\n.ta-plus-back:hover { background: var(--ta-hover); color: var(--ta-text); }\n\n/* OptionList: wherever one of a list is picked (a model, a level), in the + menu or a popover of a field. */\n.ta-pick { display: flex; flex-direction: column; min-height: 0; background: inherit; }\n.ta-pick-search { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; margin-bottom: 4px; padding: 0 10px; border-radius: 9px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-pick-search:focus-within { color: var(--ta-secondary); }\n.ta-pick-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.ta-pick-search input::placeholder { color: var(--ta-muted); }\n.ta-pick-list { position: relative; max-height: min(360px, 56vh); overflow-y: auto; background: inherit; }\n.ta-pick-section { background: inherit; }\n.ta-pick-section + .ta-pick-section { margin-top: 2px; }\n.ta-pick-group { position: sticky; top: 0; z-index: 1; padding: 8px 10px 4px; background: inherit; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-pick-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-pick-item[data-active='true']:not(:disabled), .ta-pick-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-pick-item:disabled { opacity: 0.45; cursor: default; }\n.ta-pick-item[aria-selected='true'] { font-weight: 500; }\n.ta-pick-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; color: var(--ta-secondary); }\n.ta-pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-detail { flex: none; max-width: 40%; overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-check { flex: none; color: var(--ta-accent); }\n.ta-popover { position: fixed; z-index: 95; padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-model-popover { display: flex; flex-direction: column; }\n.ta-model-popover > .ta-pick, .ta-model-popover .ta-pick-list { flex: 1; min-height: 0; }\n/* The field that opens the list of the models (ModelPicker), as a select of the page. */\n.ta-model-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ta-text); text-align: left; cursor: pointer; }\n.ta-model-field > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-model-field > svg { flex: none; color: var(--ta-muted); transition: transform 150ms var(--ta-ease); }\n.ta-model-field.ta-on { border-color: var(--ta-border-focus); }\n.ta-model-field.ta-on > svg { transform: rotate(180deg); }\n.ta-model-field:disabled { cursor: default; opacity: 0.6; }\n.ta-model-field-default { color: var(--ta-secondary); }\n@keyframes ta-plus-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n.ta-console-composer textarea { padding: 5px 2px; }\n/* A long placeholder stays on one line, so the empty box keeps its height beside the controls of the +. */\n.ta-console-composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-console-composer textarea::placeholder { text-overflow: ellipsis; }\n.ta-send-stop { background: var(--ta-text); color: var(--ta-main); }\n/* Stop pressed, the run not ended yet: a spinner in the colors of the button. */\n.ta-send-stopping { cursor: progress; }\n.ta-send-stopping .ta-spinner { border-color: color-mix(in srgb, var(--ta-main) 35%, transparent); border-top-color: var(--ta-main); }\n.ta-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 0; }\n.ta-attachment { position: relative; }\n.ta-attachment .ta-thumb { width: 56px; height: 56px; }\n/* An image being read: a shimmer until its thumbnail paints over it, then a veil and a spinner until it can be sent. */\n.ta-attachment-loading .ta-thumb { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }\n.ta-attachment-spinner { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ta-main) 55%, transparent); animation: ta-fade 150ms; }\n.ta-attachment img.ta-thumb { animation: ta-fade 150ms; }\n.ta-attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); padding: 0; }\n.ta-attachment-remove:hover { color: var(--ta-text); }\n.ta-commands { max-height: 280px; overflow-y: auto; }\n.ta-command-label { flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-commands-note { right: auto; padding: 0; border-color: var(--ta-border-muted); box-shadow: none; }\n.ta-command-note { padding: 5px 10px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n/* The messages waiting for the agent: a header with their count, then a line for each, its actions on hover. */\n.ta-phone-hint { display: flex; align-items: center; gap: 6px; margin: 0 14px; padding: 2px 4px 2px 12px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); animation: ta-fade 120ms ease-out; }\n.ta-phone-hint > span { flex: 1; min-width: 0; }\n.ta-phone-hint .ta-link-button { flex: none; padding: 2px 6px; font-size: inherit; color: var(--ta-accent); }\n.ta-phone-hint .ta-icon-button { flex: none; width: 24px; height: 24px; }\n.ta-queue { display: flex; flex-direction: column; margin: 0 14px; padding: 3px 4px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-body); animation: ta-fade 120ms ease-out; }\n.ta-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 0 8px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-queue-all { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); transition: color 120ms, background 120ms; }\n.ta-queue-all:hover { color: var(--ta-text); background: var(--ta-hover); }\n.ta-queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 2px 0 8px; border-radius: 8px; transition: background 120ms; }\n.ta-queue-row:hover { background: var(--ta-hover); }\n.ta-queue-kind { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-queue-row > .ta-origin { flex: none; max-width: 40%; }\n.ta-queue-row > .ta-origin .ta-origin-detail { display: none; }\n.ta-queue-text { flex: 1; min-width: 0; color: var(--ta-text); }\n.ta-queue-actions { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }\n.ta-queue-row:hover .ta-queue-actions, .ta-queue-actions:focus-within { opacity: 1; }\n.ta-queue-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-actions .ta-icon-button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n@media (hover: none) { .ta-queue-actions { opacity: 1; } }\n.ta-account { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }\n.ta-account-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; padding: 0; transition: background 150ms; }\n.ta-account-button:hover, .ta-account-button.ta-on { background: var(--ta-hover); }\n.ta-account-figure { flex: none; user-select: none; }\n.ta-account-dot { position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-account-menu { position: absolute; left: calc(100% + 10px); bottom: 0; z-index: 45; width: 248px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-account-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px 10px; min-width: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; transition: background 150ms; }\n.ta-account-head:hover, .ta-account-head:focus-visible { background: var(--ta-hover); }\n.ta-account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }\n.ta-account-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-account-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-account-service { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 2px 2px; padding: 0 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-account-service-name { flex: 1; min-width: 0; }\n.ta-account-service-state { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-account-state { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-muted); }\n.ta-account-state.ta-ok { background: var(--ta-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-green) 18%, transparent); }\n.ta-account-state.ta-warn { background: var(--ta-yellow); }\n.ta-account-sep { height: 1px; margin: 4px 2px; background: var(--ta-border-muted); }\n.ta-account-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-account-item > svg, .ta-account-item > .ta-icon { flex: none; color: var(--ta-secondary); }\n.ta-account-item:hover { background: var(--ta-hover); }\n.ta-account-item.ta-danger { color: var(--ta-red); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) {\n .ta-account-menu { left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); }\n .ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { max-width: 88%; }\n}\n";
|
|
2
|
+
export declare const CONVERSATION_COLUMN_STYLE = "\n/* The conversation: the avatar's mark, the folded work, the message box, the account */\n.ta-avatar-marked { position: relative; display: inline-block; flex: none; }\n.ta-avatar-marked .ta-avatar { width: 100%; height: 100%; }\n.ta-avatar-mark { position: absolute; right: -6%; bottom: -6%; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; border-radius: 0.8em; display: grid; place-items: center; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 1.5px var(--ta-main); font-weight: 600; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }\n.ta-working { color: var(--ta-secondary); font-weight: 400; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-turn-head { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-turn-head .ta-process-head { margin-left: 0; }\n/* What ta does, before the first step, where the head of the steps will say how many there are: its words in the same place. */\n.ta-turn-head > .ta-run-status { padding-left: 6px; }\n.ta-run-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-run-phase { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-run-tokens { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-run-tokens > span { display: inline-flex; align-items: center; gap: 1px; }\n/* Under the words of a turn its dot starts where they do: the dot is centred in its box, which starts a little before. */\n.ta-run-line { display: flex; min-width: 0; min-height: 22px; margin-top: -6px; }\n.ta-run-line > .ta-run-status > .ta-status { margin-left: -3px; }\n/* Under the steps of a turn the line is one more step: its dot under the avatar, folded or open; under the open ones at their pitch, on the string's line. */\n.ta-run-line.ta-run-steps { padding-left: 9px; }\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps, .ta-thread-item:has(> .ta-msg-ta > .ta-process > .ta-process-steps) + .ta-run-steps { margin-top: -18px; }\n/* There, a call it runs is already the last step, its dot breathing: the line would say it again. */\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool), .ta-thread-item:has(> .ta-msg-ta > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool) { display: none; }\n/* What waits for the user is a blue ?, apart from the blue dot that breathes while it works and the amber of something unseen. */\n.ta-status-waiting::before { content: '?'; width: 10px; height: 10px; background: var(--ta-blue); color: #fff; font-size: 8px; font-weight: 700; line-height: 10px; text-align: center; }\n/* On the head of a turn the face of ta already shows that it works. */\n.ta-turn-head .ta-run-status > .ta-status { display: none; }\n.ta-session { container-type: inline-size; }\n.ta-session-header .ta-session-title { min-width: 72px; }\n/* A narrow conversation (a phone, or beside an open editor): one line, the title keeps its room, the path gives way. */\n@container (max-width: 600px) {\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding-left: 12px; padding-right: 8px; }\n .ta-session-title .ta-path { display: none; }\n}\n/* A message of the user that has pictures: the pictures and the words in one bubble, the pictures first\n and within the bubble's padding. */\n.ta-bubble-media { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px; white-space: normal; }\n.ta-bubble-media .ta-bubble-text { align-self: stretch; padding: 2px 10px 5px; white-space: pre-wrap; word-break: break-word; }\n/* Pictures alone: the bubble is what they are, so it has no frame of its own. */\n.ta-bubble-media.ta-bubble-bare, .ta-msg-bubble.ta-bubble-bare { padding: 0; background: transparent; }\n/* One picture keeps its own shape, a few stand as squares of one size: the sizes of a message, not of a page. */\n.ta-user-images { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; max-width: 100%; }\n/* Several: in columns as a gallery of a reply has them (GalleryUtil.columns), four in two rows of two. */\n.ta-user-images:not([data-count='1']) { display: grid; grid-template-columns: repeat(var(--ta-user-image-columns, 3), 80px); }\n.ta-user-image { padding: 0; border: 0; border-radius: 12px; background: transparent; line-height: 0; cursor: zoom-in; overflow: hidden; transition: opacity 120ms; }\n.ta-user-image:active { opacity: 0.8; }\n.ta-user-images .ta-thumb { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--ta-raised); }\n.ta-user-images[data-count='1'] .ta-thumb { width: auto; height: auto; max-width: 220px; max-height: 280px; object-fit: contain; }\n/* An image still on its way (its bytes come once shown, TaShownImage), in its place: of its size when known. */\n.ta-thumb-waiting { background: var(--ta-raised); animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n/* A picture of a chat still on its way (ChatImages): its tiny thumbnail, blurred, in its place. */\n.ta-thumb-blurred { display: block; overflow: hidden; background: var(--ta-raised); }\n.ta-thumb-blurred img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(8px) saturate(1.1); transform: scale(1.15); }\n.ta-user-images[data-count='1'] .ta-thumb-blurred:not([style]) { width: 160px; height: 120px; }\n.ta-user-images[data-count='1'] .ta-thumb-waiting:not([style]) { width: 160px; height: 120px; }\n.ta-user-image:disabled { cursor: default; opacity: 1; }\n@keyframes ta-shimmer-soft { 50% { opacity: 0.6; } }\n/*\n * Pictures sent together, folded as WeChat folds them (ImageStack): the first in its shape, two peeking from behind it,\n * smaller and dimmer, a pill beside it to unfold them, on the side away from the edge the message keeps to.\n */\n.ta-image-stack { display: flex; align-items: center; justify-content: flex-end; gap: 14px; max-width: 100%; }\n.ta-user-other .ta-image-stack, .trm-msg .ta-image-stack, .tac-msg .ta-image-stack { flex-direction: row-reverse; }\n.ta-stack-cards { position: relative; display: block; margin: 0 18px 4px; padding: 0; border: 0; background: transparent; line-height: 0; cursor: zoom-in; }\n.ta-stack-cards:disabled { cursor: default; }\n.ta-stack-card { display: block; object-fit: cover; border-radius: 12px; background: var(--ta-raised); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }\n.ta-stack-front { position: relative; z-index: 2; }\n.ta-stack-left, .ta-stack-right { position: absolute; inset: 0; z-index: 1; filter: brightness(0.82); }\n.ta-stack-left { transform: translateX(-30px) scale(0.86); }\n.ta-stack-right { transform: translateX(30px) scale(0.86); }\n.ta-stack-unfold, .ta-stack-fold { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ta-raised); color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.3; cursor: pointer; white-space: nowrap; }\n.ta-stack-unfold:hover, .ta-stack-fold:hover { color: var(--ta-text); }\n.ta-stack-fold { grid-column: 1 / -1; justify-self: end; margin-top: 2px; padding: 4px 12px; font-size: calc(12px * var(--ta-font-scale)); }\n.ta-user-other .ta-stack-fold, .trm-msg .ta-stack-fold, .tac-msg .ta-stack-fold { justify-self: start; }\n/* Pictures on their own, without a bubble to hold them: at the edge of the message, as a bubble is. */\n.ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { justify-content: flex-end; max-width: 78%; }\n.ta-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n.ta-process { display: flex; flex-direction: column; }\n.ta-process-head { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-process-head:hover { background: var(--ta-hover); color: var(--ta-secondary); } }\n.ta-process-active .ta-process-head { color: var(--ta-secondary); }\n.ta-process-chevron { transition: transform 150ms var(--ta-ease); }\n.ta-process-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-process-failed { color: var(--ta-muted); }\n/* The string of the steps runs under the middle of the avatar (24px wide): 12px in. */\n.ta-process-steps { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 4px 0 4px 12px; padding: 2px 0 2px 13px; }\n/* The string runs from the first bead to the last, not past them. */\n.ta-process-steps::before { content: ''; position: absolute; left: -0.5px; top: calc(2px + 13px * var(--ta-font-scale)); bottom: calc(2px + 13px * var(--ta-font-scale)); width: 1px; background: var(--ta-border-muted); }\n/* The dots of the steps sit on the line, like beads on a string: each in a disc of the page's color that cuts the line. */\n.ta-process-steps .ta-status { position: absolute; left: -6px; border-radius: 50%; background: var(--ta-main); }\n/* A step of words is as high as a step of a tool when it has one line, its dot on the middle of that line: the steps keep one pitch. */\n.ta-step-text { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; padding: calc(2.2px * var(--ta-font-scale)) 0; }\n.ta-step-text > .ta-status { margin-top: calc(0.8em - 6px); }\n.ta-step-toggle { display: flex; align-items: center; gap: 6px; width: calc(100% + 6px); min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; transition: background 120ms; background: transparent; text-align: left; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-step-tag { flex: none; color: var(--ta-text); }\n.ta-step-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-step-chevron { flex: none; transition: transform 150ms var(--ta-ease); }\n.ta-step-toggle[aria-expanded='true'] .ta-step-chevron { transform: rotate(90deg); }\n.ta-step-thinking .ta-thinking-text, .ta-step-summary .ta-thinking-text { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); padding: 2px 0 4px; }\n.ta-console-box { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }\n.ta-console-box.ta-dragging { border-color: var(--ta-border-focus); border-style: dashed; }\n/* The field and its controls: the field's line is 1.55 of its font and 5px above and under it (layout.ts),\n and each control stands centred on its last line, the half of what the line is higher than it under it\n (--ta-control: the height of the control, 30px unless it says). */\n.ta-console-row { display: flex; align-items: flex-end; gap: 6px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }\n.ta-console-row > :not(textarea) { margin-bottom: max(0px, calc((var(--ta-field-height) - var(--ta-control, 30px)) / 2)); }\n.ta-console-row .ta-attach { width: 30px; height: 30px; }\n/* As high as its button, which the row centres (a block would add the line under it). */\n.ta-plus { position: relative; flex: none; display: flex; }\n.ta-plus-button { border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-plus-button:hover, .ta-plus-button.ta-on { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-plus-button svg { transition: transform 150ms var(--ta-ease); }\n.ta-plus-button.ta-on svg { transform: rotate(45deg); }\n.ta-plus-menu { position: absolute; left: -2px; bottom: calc(100% + 10px); z-index: 20; display: flex; flex-direction: column; width: min(340px, calc(100vw - 32px)); padding: 8px 6px 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n/* Every entry a tile, a page of four by two at a time (PlusMenuUtil.PAGE), as WeChat's + panel: more of them is another page to swipe to, never a taller menu. */\n.ta-plus-pages { display: flex; flex: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }\n.ta-plus-pages::-webkit-scrollbar { display: none; }\n.ta-plus-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: start; gap: 4px 2px; scroll-snap-align: start; scroll-snap-stop: always; }\n.ta-plus-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 6px 0 4px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-plus-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ta-hover); color: var(--ta-text); transition: background 120ms, color 120ms; }\n.ta-plus-tile-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }\n/* A switch that is on: its icon lit in green. */\n.ta-plus-tile[aria-checked='true'] .ta-plus-tile-icon { background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: var(--ta-green); }\n.ta-plus-tile:active:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-plus-tile:hover:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); } }\n.ta-plus-tile:focus-visible { outline: none; background: var(--ta-hover); }\n.ta-plus-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-plus-tile-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; padding: 0 2px; overflow: hidden; color: var(--ta-secondary); font-size: calc(11.5px * var(--ta-font-scale)); line-height: 1.3; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }\n/* A setting or a switch: its label on one line, its value (the model, on or off) under it, quieter. */\n.ta-plus-valued .ta-plus-tile-label { -webkit-line-clamp: 1; }\n.ta-plus-tile-value { max-width: 100%; margin-top: -3px; padding: 0 2px; overflow: hidden; color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }\n.ta-plus-dots { display: flex; flex: none; justify-content: center; gap: 2px; padding: 4px 0 0; }\n.ta-plus-dots button { position: relative; width: 16px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }\n.ta-plus-dots button::after { content: ''; position: absolute; left: 5px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-hover-strong); transition: background 150ms; }\n.ta-plus-dots button.ta-on::after { background: var(--ta-secondary); }\n/* A list opened in the + menu, as every list to pick from (OptionList): a fixed width, that narrowing it does not change. */\n.ta-plus-list { width: 300px; }\n/*\n * On a phone the panel is under the box, in place of the keyboard, as WeChat's: part of the page, so the box and\n * the conversation rise with it as it unfolds and fall as it folds (the rows of a grid, from none of it to all).\n */\n.ta-plus-dock { display: grid; grid-template-rows: 1fr; animation: ta-plus-unfold 240ms var(--ta-ease) both; }\n.ta-plus-dock.ta-closing { animation: ta-plus-fold 200ms var(--ta-ease) both; }\n.ta-plus-dock-inner { min-height: 0; overflow: hidden; }\n/* One height whatever it shows (a page of tiles, the last page, a list), as the keyboard it stands for: the box does not move as one turns to another. */\n.ta-plus-dock .ta-plus-menu { position: static; box-sizing: border-box; width: auto; max-width: none; height: 240px; padding: 14px 0 0; border: 0; border-radius: 0; background: var(--ta-main); box-shadow: none; animation: none; }\n.ta-plus-dock .ta-plus-page { gap: 10px 2px; }\n.ta-plus-dock .ta-plus-dots { padding-top: 10px; }\n.ta-plus-dock .ta-plus-pages { flex: 1; min-height: 0; }\n/*\n * A list opened in the panel (the models) as the grouped lists of iOS: under a title with its way back, a search\n * on a raised field, the entries on a raised card of rounded corners with hairlines between them, each group's\n * name above its card and sticking on top on the page's color, the one picked checked on the right.\n */\n.ta-plus-dock .ta-plus-list { padding-top: 6px; }\n.ta-plus-dock .ta-plus-back { height: 34px; margin-bottom: 6px; padding: 0 2px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-plus-dock .ta-plus-back svg { color: var(--ta-secondary); }\n.ta-plus-dock .ta-pick { display: flex; flex-direction: column; flex: 1; min-height: 0; }\n.ta-plus-dock .ta-pick-search { height: 36px; margin-bottom: 2px; border-radius: 10px; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-list { flex: 1; min-height: 0; max-height: none; padding-bottom: 10px; }\n.ta-plus-dock .ta-pick-section + .ta-pick-section { margin-top: 0; }\n.ta-plus-dock .ta-pick-group { padding: 12px 14px 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > :first-child { margin-top: 8px; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > .ta-pick-group { margin-top: 0; padding-top: 6px; }\n.ta-plus-dock .ta-pick-item { min-height: 46px; padding: 0 14px; border-radius: 0; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item + .ta-pick-item { box-shadow: inset 14px 0 0 var(--ta-raised), inset 0 0.5px 0 var(--ta-border); }\n.ta-plus-dock .ta-pick-group + .ta-pick-item, .ta-plus-dock .ta-pick-section > .ta-pick-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item[data-active='true']:not(:disabled) { background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-plus-dock .ta-pick-check { color: var(--ta-green); }\n@keyframes ta-plus-unfold { from { grid-template-rows: 0fr; opacity: 0; } }\n@keyframes ta-plus-fold { to { grid-template-rows: 0fr; opacity: 0; } }\n/* The emoji of the box (ComposerBoxProps.emoji): on a computer a popover above its button; on a phone a panel in place of the keyboard, as tall as the + panel, Delete and Send floating at its foot as WeChat's. */\n.ta-emoji-anchor { position: relative; flex: none; display: flex; }\n.ta-emoji-button.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-emoji-pop { position: absolute; right: -44px; bottom: calc(100% + 10px); z-index: 20; box-sizing: border-box; width: min(340px, calc(100vw - 32px)); max-height: 236px; padding: 8px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 2px; }\n.ta-emoji { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: none; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: calc(25px * var(--ta-font-scale)); line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-emoji:active { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-emoji:hover { background: var(--ta-hover); } }\n.ta-emoji-panel { position: relative; height: 240px; background: var(--ta-emoji-back, var(--ta-main)); }\n.ta-emoji-panel .ta-emoji-grid { box-sizing: border-box; height: 100%; padding: 10px 6px 62px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }\n.ta-emoji-panel .ta-emoji-grid::-webkit-scrollbar { display: none; }\n.ta-emoji-keys { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; padding: 14px 12px 10px 28px; background: linear-gradient(to right, transparent, var(--ta-emoji-back, var(--ta-main)) 26px); }\n.ta-emoji-key { display: grid; place-items: center; min-width: 58px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(15px * var(--ta-font-scale)); box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, .12); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-emoji-key:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-emoji-send { background: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-emoji-send:active:not(:disabled) { background: var(--ta-brand); opacity: .85; }\n.ta-emoji-send:disabled { background: var(--ta-raised); color: var(--ta-muted); cursor: default; }\n.ta-plus-back { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; margin-bottom: 4px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; }\n.ta-plus-back:hover { background: var(--ta-hover); color: var(--ta-text); }\n\n/* OptionList: wherever one of a list is picked (a model, a level), in the + menu or a popover of a field. */\n.ta-pick { display: flex; flex-direction: column; min-height: 0; background: inherit; }\n.ta-pick-search { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; margin-bottom: 4px; padding: 0 10px; border-radius: 9px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-pick-search:focus-within { color: var(--ta-secondary); }\n.ta-pick-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.ta-pick-search input::placeholder { color: var(--ta-muted); }\n.ta-pick-list { position: relative; max-height: min(360px, 56vh); overflow-y: auto; background: inherit; }\n.ta-pick-section { background: inherit; }\n.ta-pick-section + .ta-pick-section { margin-top: 2px; }\n.ta-pick-group { position: sticky; top: 0; z-index: 1; padding: 8px 10px 4px; background: inherit; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-pick-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-pick-item[data-active='true']:not(:disabled), .ta-pick-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-pick-item:disabled { opacity: 0.45; cursor: default; }\n.ta-pick-item[aria-selected='true'] { font-weight: 500; }\n.ta-pick-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; color: var(--ta-secondary); }\n.ta-pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-detail { flex: none; max-width: 40%; overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-check { flex: none; color: var(--ta-accent); }\n.ta-popover { position: fixed; z-index: 95; padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-model-popover { display: flex; flex-direction: column; }\n.ta-model-popover > .ta-pick, .ta-model-popover .ta-pick-list { flex: 1; min-height: 0; }\n/* The field that opens the list of the models (ModelPicker), as a select of the page. */\n.ta-model-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ta-text); text-align: left; cursor: pointer; }\n.ta-model-field > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-model-field > svg { flex: none; color: var(--ta-muted); transition: transform 150ms var(--ta-ease); }\n.ta-model-field.ta-on { border-color: var(--ta-border-focus); }\n.ta-model-field.ta-on > svg { transform: rotate(180deg); }\n.ta-model-field:disabled { cursor: default; opacity: 0.6; }\n.ta-model-field-default { color: var(--ta-secondary); }\n@keyframes ta-plus-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n.ta-console-composer textarea { padding: 5px 2px; }\n/* A long placeholder stays on one line, so the empty box keeps its height beside the controls of the +. */\n.ta-console-composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-console-composer textarea::placeholder { text-overflow: ellipsis; }\n.ta-send-stop { background: var(--ta-text); color: var(--ta-main); }\n/* Stop pressed, the run not ended yet: a spinner in the colors of the button. */\n.ta-send-stopping { cursor: progress; }\n.ta-send-stopping .ta-spinner { border-color: color-mix(in srgb, var(--ta-main) 35%, transparent); border-top-color: var(--ta-main); }\n.ta-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 0; }\n.ta-attachment { position: relative; }\n.ta-attachment .ta-thumb { width: 56px; height: 56px; }\n/* An image being read: a shimmer until its thumbnail paints over it, then a veil and a spinner until it can be sent. */\n.ta-attachment-loading .ta-thumb { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }\n.ta-attachment-spinner { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ta-main) 55%, transparent); animation: ta-fade 150ms; }\n.ta-attachment img.ta-thumb { animation: ta-fade 150ms; }\n.ta-attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); padding: 0; }\n.ta-attachment-remove:hover { color: var(--ta-text); }\n.ta-commands { max-height: 280px; overflow-y: auto; }\n.ta-command-label { flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-commands-note { right: auto; padding: 0; border-color: var(--ta-border-muted); box-shadow: none; }\n.ta-command-note { padding: 5px 10px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n/* The messages waiting for the agent: a header with their count, then a line for each, its actions on hover. */\n.ta-phone-hint { display: flex; align-items: center; gap: 6px; margin: 0 14px; padding: 2px 4px 2px 12px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); animation: ta-fade 120ms ease-out; }\n.ta-phone-hint > span { flex: 1; min-width: 0; }\n.ta-phone-hint .ta-link-button { flex: none; padding: 2px 6px; font-size: inherit; color: var(--ta-accent); }\n.ta-phone-hint .ta-icon-button { flex: none; width: 24px; height: 24px; }\n.ta-queue { display: flex; flex-direction: column; margin: 0 14px; padding: 3px 4px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-body); animation: ta-fade 120ms ease-out; }\n.ta-queue-head { display: flex; align-items: center; gap: 4px; padding: 2px 4px 0 8px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-queue-all { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); transition: color 120ms, background 120ms; }\n.ta-queue-all:hover { color: var(--ta-text); background: var(--ta-hover); }\n.ta-queue-head > span:first-child { margin-right: auto; }\n.ta-queue-settings { width: 22px; height: 22px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-settings:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-queue-now { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px 0 6px; border: 0; border-radius: 11px; background: var(--ta-hover); color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms; }\n.ta-queue-now:hover { background: var(--ta-hover-strong); }\n.ta-queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 2px 0 8px; border-radius: 8px; transition: background 120ms; }\n.ta-queue-row:hover { background: var(--ta-hover); }\n.ta-queue-kind { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-queue-row > .ta-origin { flex: none; max-width: 40%; }\n.ta-queue-row > .ta-origin .ta-origin-detail { display: none; }\n.ta-queue-text { flex: 1; min-width: 0; color: var(--ta-text); }\n.ta-queue-actions { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }\n.ta-queue-row:hover .ta-queue-actions, .ta-queue-actions:focus-within { opacity: 1; }\n.ta-queue-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-actions .ta-icon-button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n@media (hover: none) { .ta-queue-actions { opacity: 1; } }\n.ta-account { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }\n.ta-account-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; padding: 0; transition: background 150ms; }\n.ta-account-button:hover, .ta-account-button.ta-on { background: var(--ta-hover); }\n.ta-account-figure { flex: none; user-select: none; }\n.ta-account-dot { position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-account-menu { position: absolute; left: calc(100% + 10px); bottom: 0; z-index: 45; width: 248px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-account-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px 10px; min-width: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; transition: background 150ms; }\n.ta-account-head:hover, .ta-account-head:focus-visible { background: var(--ta-hover); }\n.ta-account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }\n.ta-account-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-account-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-account-service { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 2px 2px; padding: 0 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-account-service-name { flex: 1; min-width: 0; }\n.ta-account-service-state { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-account-state { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-muted); }\n.ta-account-state.ta-ok { background: var(--ta-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-green) 18%, transparent); }\n.ta-account-state.ta-warn { background: var(--ta-yellow); }\n.ta-account-sep { height: 1px; margin: 4px 2px; background: var(--ta-border-muted); }\n.ta-account-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-account-item > svg, .ta-account-item > .ta-icon { flex: none; color: var(--ta-secondary); }\n.ta-account-item:hover { background: var(--ta-hover); }\n.ta-account-item.ta-danger { color: var(--ta-red); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) {\n .ta-account-menu { left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); }\n .ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { max-width: 88%; }\n}\n";
|
|
3
3
|
//# sourceMappingURL=conversation-column.d.ts.map
|
|
@@ -252,9 +252,14 @@ exports.CONVERSATION_COLUMN_STYLE = `
|
|
|
252
252
|
.ta-phone-hint .ta-link-button { flex: none; padding: 2px 6px; font-size: inherit; color: var(--ta-accent); }
|
|
253
253
|
.ta-phone-hint .ta-icon-button { flex: none; width: 24px; height: 24px; }
|
|
254
254
|
.ta-queue { display: flex; flex-direction: column; margin: 0 14px; padding: 3px 4px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-body); animation: ta-fade 120ms ease-out; }
|
|
255
|
-
.ta-queue-head { display: flex; align-items: center;
|
|
255
|
+
.ta-queue-head { display: flex; align-items: center; gap: 4px; padding: 2px 4px 0 8px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }
|
|
256
256
|
.ta-queue-all { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); transition: color 120ms, background 120ms; }
|
|
257
257
|
.ta-queue-all:hover { color: var(--ta-text); background: var(--ta-hover); }
|
|
258
|
+
.ta-queue-head > span:first-child { margin-right: auto; }
|
|
259
|
+
.ta-queue-settings { width: 22px; height: 22px; border-radius: 6px; color: var(--ta-muted); }
|
|
260
|
+
.ta-queue-settings:hover { background: var(--ta-hover); color: var(--ta-text); }
|
|
261
|
+
.ta-queue-now { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px 0 6px; border: 0; border-radius: 11px; background: var(--ta-hover); color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms; }
|
|
262
|
+
.ta-queue-now:hover { background: var(--ta-hover-strong); }
|
|
258
263
|
.ta-queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 2px 0 8px; border-radius: 8px; transition: background 120ms; }
|
|
259
264
|
.ta-queue-row:hover { background: var(--ta-hover); }
|
|
260
265
|
.ta-queue-kind { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|