meowtail 0.4.0-alpha.0 → 0.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ASSISTANT.md +2 -2
- package/AUTHORING.md +268 -0
- package/CHANGELOG.md +116 -0
- package/COMPONENTS.md +182 -140
- package/README.md +145 -34
- package/dist/src/chat/assistant-content.js +3 -1
- package/dist/src/chat/assistant-markdown.d.ts +8 -5
- package/dist/src/chat/assistant-markdown.js +11 -26
- package/dist/src/components/autocomplete.d.ts +47 -0
- package/dist/src/components/autocomplete.js +169 -0
- package/dist/src/components/card-title.d.ts +1 -0
- package/dist/src/components/card-title.js +2 -1
- package/dist/src/components/chart-scale.d.ts +46 -0
- package/dist/src/components/chart-scale.js +118 -0
- package/dist/src/components/chart.d.ts +38 -0
- package/dist/src/components/chart.js +210 -0
- package/dist/src/components/choice-group.js +2 -2
- package/dist/src/components/choice-select.js +2 -2
- package/dist/src/components/code-block.d.ts +3 -1
- package/dist/src/components/code-block.js +75 -16
- package/dist/src/components/command-palette.d.ts +44 -0
- package/dist/src/components/command-palette.js +198 -0
- package/dist/src/components/context-menu.d.ts +2 -1
- package/dist/src/components/context-menu.js +2 -1
- package/dist/src/components/credential-source.d.ts +2 -1
- package/dist/src/components/credential-source.js +2 -1
- package/dist/src/components/detail-section.d.ts +2 -1
- package/dist/src/components/detail-section.js +8 -3
- package/dist/src/components/dialog.d.ts +4 -1
- package/dist/src/components/dialog.js +7 -2
- package/dist/src/components/entry.d.ts +45 -0
- package/dist/src/components/entry.js +38 -0
- package/dist/src/components/entry.options.d.ts +4 -0
- package/dist/src/components/entry.options.js +3 -0
- package/dist/src/components/field-group.js +2 -2
- package/dist/src/components/field.d.ts +4 -0
- package/dist/src/components/field.js +15 -3
- package/dist/src/components/form.d.ts +34 -0
- package/dist/src/components/form.js +58 -0
- package/dist/src/components/heading-level.d.ts +9 -0
- package/dist/src/components/heading-level.js +12 -0
- package/dist/src/components/hover-card.d.ts +3 -2
- package/dist/src/components/hover-card.js +50 -15
- package/dist/src/components/index.d.ts +11 -1
- package/dist/src/components/index.js +11 -1
- package/dist/src/components/markdown-blocks.d.ts +27 -0
- package/dist/src/components/markdown-blocks.js +141 -0
- package/dist/src/components/markdown.d.ts +35 -0
- package/dist/src/components/markdown.js +35 -0
- package/dist/src/components/menu-button.d.ts +2 -1
- package/dist/src/components/menu.d.ts +2 -1
- package/dist/src/components/menu.js +2 -1
- package/dist/src/components/modal.js +2 -2
- package/dist/src/components/page.js +1 -1
- package/dist/src/components/pagination.d.ts +52 -0
- package/dist/src/components/pagination.js +89 -0
- package/dist/src/components/path-label.js +5 -27
- package/dist/src/components/popover.d.ts +2 -1
- package/dist/src/components/popover.js +33 -6
- package/dist/src/components/resource-card.d.ts +4 -1
- package/dist/src/components/resource-card.js +7 -2
- package/dist/src/components/risk-confirmation.d.ts +2 -1
- package/dist/src/components/risk-confirmation.js +2 -1
- package/dist/src/components/section.d.ts +1 -7
- package/dist/src/components/section.js +3 -8
- package/dist/src/components/segmented-control.d.ts +2 -1
- package/dist/src/components/segmented-control.js +2 -1
- package/dist/src/components/tabs.d.ts +2 -1
- package/dist/src/components/tabs.js +2 -1
- package/dist/src/components/token-field.d.ts +45 -0
- package/dist/src/components/token-field.js +175 -0
- package/dist/src/components/tooltip.d.ts +2 -1
- package/dist/src/components/tooltip.js +2 -1
- package/dist/src/components/tree-view.d.ts +39 -0
- package/dist/src/components/tree-view.js +244 -0
- package/dist/src/components/tree-view.options.d.ts +2 -0
- package/dist/src/components/tree-view.options.js +3 -0
- package/dist/src/icons/README.md +11 -10
- package/dist/src/icons/icon.d.ts +1 -0
- package/dist/src/icons/icon.js +2 -1
- package/dist/src/icons/index.d.ts +0 -1
- package/dist/src/icons/index.js +0 -1
- package/dist/src/registry/index.d.ts +41 -1
- package/dist/src/registry/index.js +20 -0
- package/dist/src/shared/element-id.d.ts +6 -0
- package/dist/src/shared/element-id.js +10 -0
- package/dist/src/shared/page-attribute.d.ts +5 -0
- package/dist/src/shared/page-attribute.js +5 -0
- package/dist/src/theme/base.styles.d.ts +2 -0
- package/dist/src/theme/base.styles.js +41 -4
- package/dist/src/theme/chat/assistant.styles.js +21 -1
- package/dist/src/theme/chat/attachments.styles.js +35 -6
- package/dist/src/theme/chat/composer.styles.js +30 -3
- package/dist/src/theme/chat/conversation.styles.js +13 -1
- package/dist/src/theme/chat/records.styles.js +10 -5
- package/dist/src/theme/components/autocomplete.styles.d.ts +1 -0
- package/dist/src/theme/components/autocomplete.styles.js +68 -0
- package/dist/src/theme/components/button.styles.js +0 -1
- package/dist/src/theme/components/card.styles.js +2 -1
- package/dist/src/theme/components/chart.styles.d.ts +1 -0
- package/dist/src/theme/components/chart.styles.js +173 -0
- package/dist/src/theme/components/code-block.styles.js +79 -38
- package/dist/src/theme/components/command-palette.styles.d.ts +1 -0
- package/dist/src/theme/components/command-palette.styles.js +143 -0
- package/dist/src/theme/components/dialog.styles.js +2 -1
- package/dist/src/theme/components/empty-state.styles.js +2 -1
- package/dist/src/theme/components/entry.styles.d.ts +1 -0
- package/dist/src/theme/components/entry.styles.js +86 -0
- package/dist/src/theme/components/form.styles.d.ts +1 -0
- package/dist/src/theme/components/form.styles.js +32 -0
- package/dist/src/theme/components/hover-card.styles.js +57 -12
- package/dist/src/theme/components/image-preview.styles.js +25 -0
- package/dist/src/theme/components/layout.styles.js +6 -0
- package/dist/src/theme/components/markdown.styles.d.ts +1 -0
- package/dist/src/theme/components/markdown.styles.js +10 -0
- package/dist/src/theme/components/nav-list.styles.js +6 -7
- package/dist/src/theme/components/pagination.styles.d.ts +1 -0
- package/dist/src/theme/components/pagination.styles.js +103 -0
- package/dist/src/theme/components/path-label.styles.js +19 -6
- package/dist/src/theme/components/resource-card.styles.js +2 -1
- package/dist/src/theme/components/search-input.styles.js +23 -0
- package/dist/src/theme/components/slider.styles.js +4 -0
- package/dist/src/theme/components/token-field.styles.d.ts +1 -0
- package/dist/src/theme/components/token-field.styles.js +109 -0
- package/dist/src/theme/components/tree-view.styles.d.ts +1 -0
- package/dist/src/theme/components/tree-view.styles.js +104 -0
- package/dist/src/theme/icons/icons.styles.js +0 -18
- package/dist/src/theme/index.d.ts +446 -9
- package/dist/src/theme/index.js +58 -1
- package/dist/src/theme/journal.tokens.d.ts +389 -0
- package/dist/src/theme/journal.tokens.js +181 -0
- package/dist/src/theme/meow.tokens.d.ts +362 -0
- package/dist/src/theme/meow.tokens.js +91 -0
- package/dist/src/theme/shared/field-surface.styles.js +11 -7
- package/dist/src/theme/shared/prose.styles.js +12 -4
- package/dist/src/theme/tokens.d.ts +286 -7
- package/dist/src/theme/tokens.js +15 -2
- package/dist/src/theme/utilities.js +4 -4
- package/dist/src/web/focus-modality.d.ts +20 -0
- package/dist/src/web/focus-modality.js +72 -0
- package/dist/src/web/index.d.ts +2 -0
- package/dist/src/web/index.js +2 -0
- package/dist/src/web/theme-plugin.d.ts +33 -0
- package/dist/src/web/theme-plugin.js +93 -0
- package/package.json +14 -6
- package/dist/src/icons/doodle-cat.d.ts +0 -5
- package/dist/src/icons/doodle-cat.js +0 -8
|
@@ -38,6 +38,14 @@ export declare const MeowUIComponent: {
|
|
|
38
38
|
readonly ChatConversation: "chat-conversation";
|
|
39
39
|
readonly Tabs: "tabs";
|
|
40
40
|
readonly Breadcrumb: "breadcrumb";
|
|
41
|
+
readonly Pagination: "pagination";
|
|
42
|
+
readonly Markdown: "markdown";
|
|
43
|
+
readonly Chart: "chart";
|
|
44
|
+
readonly Form: "form";
|
|
45
|
+
readonly CommandPalette: "command-palette";
|
|
46
|
+
readonly TreeView: "tree-view";
|
|
47
|
+
readonly TokenField: "token-field";
|
|
48
|
+
readonly Autocomplete: "autocomplete";
|
|
41
49
|
readonly Alert: "alert";
|
|
42
50
|
readonly Skeleton: "skeleton";
|
|
43
51
|
readonly SkeletonBoundary: "skeleton-boundary";
|
|
@@ -123,6 +131,8 @@ export declare const MeowUIComponent: {
|
|
|
123
131
|
readonly DescriptionItem: "description-item";
|
|
124
132
|
readonly Timeline: "timeline";
|
|
125
133
|
readonly TimelineItem: "timeline-item";
|
|
134
|
+
readonly EntryList: "entry-list";
|
|
135
|
+
readonly Entry: "entry";
|
|
126
136
|
readonly ResourceLink: "resource-link";
|
|
127
137
|
readonly Page: "page";
|
|
128
138
|
readonly PageHeader: "page-header";
|
|
@@ -136,7 +146,7 @@ export declare const MeowUIComponent: {
|
|
|
136
146
|
readonly Drawer: "drawer";
|
|
137
147
|
};
|
|
138
148
|
/** The full built-in catalog, separated from the selective plugin factory. */
|
|
139
|
-
export declare const meowUIComponents: readonly [typeof Components.PageFrame, typeof Components.AppBar, typeof RegionLayoutShell, typeof Components.Pill, typeof Components.ImagePreview, typeof Components.SegmentedControl, typeof Components.TextShimmer, typeof Components.RiskConfirmation, typeof Components.WebBlock, typeof Components.JsonTree, typeof Components.JsonBlock, typeof Components.ImageLightbox, typeof Components.ShortcutKeys, typeof Components.PathLabel, typeof Components.StateDot, typeof Components.HoverCard, typeof Components.Menu, typeof Components.ContextMenu, typeof Components.Toast, typeof OutputBlock, typeof Components.TerminalBlock, typeof Components.ReadBlock, typeof Components.DiffBlock, typeof Components.SearchBlock, typeof Components.Checkbox, typeof Components.Switch, typeof Components.Slider, typeof Components.Progress, typeof Components.Avatar, typeof Components.Link, typeof Components.Text, typeof Components.Prose, typeof Components.TaskList, typeof Components.Accordion, typeof Components.Table, typeof Components.NumberInput, typeof Components.CodeBlock, typeof Components.MermaidDiagram, typeof Components.ChoiceGroup, typeof Chat.ChatQuestion, typeof Components.Item, typeof Chat.ChatBubble, typeof Chat.ChatConversation, typeof Components.Tabs, typeof Components.Breadcrumb, typeof Components.Alert, typeof Components.Skeleton, typeof Components.SkeletonBoundary, typeof Components.Spinner, typeof Components.Stack, typeof Components.LayoutItem, typeof Components.DescriptionList, typeof Components.DescriptionItem, typeof Components.Inline, typeof Components.Grid, typeof Components.Container, typeof Components.CardHeader, typeof Components.CardTitle, typeof Components.CardDescription, typeof Components.CardContent, typeof Components.CardFooter, typeof Components.CardAction, typeof Components.FieldGroup, typeof Components.AspectRatio, typeof Components.Tooltip, typeof Components.Button, typeof Components.IconButton, typeof Components.Toolbar, typeof Components.ActionRail, typeof Components.ActionRow, typeof Components.MetaRow, typeof Components.EmptyState, typeof Components.Card, typeof Components.Badge, typeof Components.Input, typeof Components.Select, typeof Components.ChoiceSelect, typeof Components.Popover, typeof Components.SearchInput, typeof Components.PathPicker, typeof Components.Disclosure, typeof Components.Textarea, typeof Components.Field, typeof Components.Separator, typeof Components.Dialog, typeof Components.DialogPanel, typeof Components.DialogHeader, typeof Components.DialogActions, typeof Components.NavItem, typeof Chat.ChatFrame, typeof Chat.AssistantView, typeof AssistantSteps, typeof AssistantMarkdown, typeof AssistantComposer, typeof AssistantQuestionView, typeof Chat.ChatAttachments, typeof Chat.ChatProcess, typeof Chat.ChatReasoning, typeof Chat.ChatSources, typeof Chat.ChatHeader, typeof Chat.ChatStatus, typeof Chat.ChatMessageList, typeof Chat.ChatMessage, typeof Chat.ChatMessageActions, typeof Chat.ChatComposer, typeof Chat.ComposerPanel, typeof Chat.ChatToolCall, typeof Chat.ChatTask, typeof Components.StatusDot, typeof Components.Status, typeof Components.Tag, typeof Components.ProcessGroup, typeof Components.ProcessStep, typeof Components.WorkCard, typeof Components.IconRail, typeof Components.RailItem, typeof Components.RailSection, typeof Components.DetailSection, typeof Components.Timeline, typeof Components.TimelineItem, typeof Components.ResourceLink, typeof Components.Page, typeof Components.PageHeader, typeof Components.Section, typeof Components.NavList, typeof Components.Modal, typeof Components.WindowTitleBar, typeof Components.ListGroup, typeof Components.ListRow, typeof Components.ResourceCard, typeof Components.Drawer];
|
|
149
|
+
export declare const meowUIComponents: readonly [typeof Components.PageFrame, typeof Components.AppBar, typeof RegionLayoutShell, typeof Components.Pill, typeof Components.ImagePreview, typeof Components.SegmentedControl, typeof Components.TextShimmer, typeof Components.RiskConfirmation, typeof Components.WebBlock, typeof Components.JsonTree, typeof Components.JsonBlock, typeof Components.ImageLightbox, typeof Components.ShortcutKeys, typeof Components.PathLabel, typeof Components.StateDot, typeof Components.HoverCard, typeof Components.Menu, typeof Components.ContextMenu, typeof Components.Toast, typeof OutputBlock, typeof Components.TerminalBlock, typeof Components.ReadBlock, typeof Components.DiffBlock, typeof Components.SearchBlock, typeof Components.Checkbox, typeof Components.Switch, typeof Components.Slider, typeof Components.Progress, typeof Components.Avatar, typeof Components.Link, typeof Components.Text, typeof Components.Prose, typeof Components.TaskList, typeof Components.Accordion, typeof Components.Table, typeof Components.NumberInput, typeof Components.CodeBlock, typeof Components.MermaidDiagram, typeof Components.ChoiceGroup, typeof Chat.ChatQuestion, typeof Components.Item, typeof Chat.ChatBubble, typeof Chat.ChatConversation, typeof Components.Tabs, typeof Components.Breadcrumb, typeof Components.Pagination, typeof Components.Markdown, typeof Components.Chart, typeof Components.Form, typeof Components.CommandPalette, typeof Components.TreeView, typeof Components.TokenField, typeof Components.Autocomplete, typeof Components.Alert, typeof Components.Skeleton, typeof Components.SkeletonBoundary, typeof Components.Spinner, typeof Components.Stack, typeof Components.LayoutItem, typeof Components.DescriptionList, typeof Components.DescriptionItem, typeof Components.Inline, typeof Components.Grid, typeof Components.Container, typeof Components.CardHeader, typeof Components.CardTitle, typeof Components.CardDescription, typeof Components.CardContent, typeof Components.CardFooter, typeof Components.CardAction, typeof Components.FieldGroup, typeof Components.AspectRatio, typeof Components.Tooltip, typeof Components.Button, typeof Components.IconButton, typeof Components.Toolbar, typeof Components.ActionRail, typeof Components.ActionRow, typeof Components.MetaRow, typeof Components.EmptyState, typeof Components.Card, typeof Components.Badge, typeof Components.Input, typeof Components.Select, typeof Components.ChoiceSelect, typeof Components.Popover, typeof Components.SearchInput, typeof Components.PathPicker, typeof Components.Disclosure, typeof Components.Textarea, typeof Components.Field, typeof Components.Separator, typeof Components.Dialog, typeof Components.DialogPanel, typeof Components.DialogHeader, typeof Components.DialogActions, typeof Components.NavItem, typeof Chat.ChatFrame, typeof Chat.AssistantView, typeof AssistantSteps, typeof AssistantMarkdown, typeof AssistantComposer, typeof AssistantQuestionView, typeof Chat.ChatAttachments, typeof Chat.ChatProcess, typeof Chat.ChatReasoning, typeof Chat.ChatSources, typeof Chat.ChatHeader, typeof Chat.ChatStatus, typeof Chat.ChatMessageList, typeof Chat.ChatMessage, typeof Chat.ChatMessageActions, typeof Chat.ChatComposer, typeof Chat.ComposerPanel, typeof Chat.ChatToolCall, typeof Chat.ChatTask, typeof Components.StatusDot, typeof Components.Status, typeof Components.Tag, typeof Components.ProcessGroup, typeof Components.ProcessStep, typeof Components.WorkCard, typeof Components.IconRail, typeof Components.RailItem, typeof Components.RailSection, typeof Components.DetailSection, typeof Components.Timeline, typeof Components.TimelineItem, typeof Components.EntryList, typeof Components.Entry, typeof Components.ResourceLink, typeof Components.Page, typeof Components.PageHeader, typeof Components.Section, typeof Components.NavList, typeof Components.Modal, typeof Components.WindowTitleBar, typeof Components.ListGroup, typeof Components.ListRow, typeof Components.ResourceCard, typeof Components.Drawer];
|
|
140
150
|
type ComponentParts<C> = C extends {
|
|
141
151
|
readonly meta: {
|
|
142
152
|
readonly parts: readonly (infer Part extends string)[];
|
|
@@ -228,6 +238,30 @@ declare module "meowjsx" {
|
|
|
228
238
|
breadcrumb: {
|
|
229
239
|
parts: ComponentParts<typeof import("../components/breadcrumb.js").Breadcrumb>;
|
|
230
240
|
};
|
|
241
|
+
pagination: {
|
|
242
|
+
parts: ComponentParts<typeof import("../components/pagination.js").Pagination>;
|
|
243
|
+
};
|
|
244
|
+
markdown: {
|
|
245
|
+
parts: ComponentParts<typeof import("../components/markdown.js").Markdown>;
|
|
246
|
+
};
|
|
247
|
+
chart: {
|
|
248
|
+
parts: ComponentParts<typeof import("../components/chart.js").Chart>;
|
|
249
|
+
};
|
|
250
|
+
form: {
|
|
251
|
+
parts: ComponentParts<typeof import("../components/form.js").Form>;
|
|
252
|
+
};
|
|
253
|
+
"command-palette": {
|
|
254
|
+
parts: ComponentParts<typeof import("../components/command-palette.js").CommandPalette>;
|
|
255
|
+
};
|
|
256
|
+
"tree-view": {
|
|
257
|
+
parts: ComponentParts<typeof import("../components/tree-view.js").TreeView>;
|
|
258
|
+
};
|
|
259
|
+
"token-field": {
|
|
260
|
+
parts: ComponentParts<typeof import("../components/token-field.js").TokenField>;
|
|
261
|
+
};
|
|
262
|
+
autocomplete: {
|
|
263
|
+
parts: ComponentParts<typeof import("../components/autocomplete.js").Autocomplete>;
|
|
264
|
+
};
|
|
231
265
|
alert: {
|
|
232
266
|
parts: ComponentParts<typeof import("../components/alert.js").Alert>;
|
|
233
267
|
};
|
|
@@ -483,6 +517,12 @@ declare module "meowjsx" {
|
|
|
483
517
|
"timeline-item": {
|
|
484
518
|
parts: ComponentParts<typeof import("../components/timeline.js").TimelineItem>;
|
|
485
519
|
};
|
|
520
|
+
"entry-list": {
|
|
521
|
+
parts: ComponentParts<typeof import("../components/entry.js").EntryList>;
|
|
522
|
+
};
|
|
523
|
+
entry: {
|
|
524
|
+
parts: ComponentParts<typeof import("../components/entry.js").Entry>;
|
|
525
|
+
};
|
|
486
526
|
"resource-link": {
|
|
487
527
|
parts: ComponentParts<typeof import("../components/resource-link.js").ResourceLink>;
|
|
488
528
|
};
|
|
@@ -38,6 +38,14 @@ export const MeowUIComponent = {
|
|
|
38
38
|
ChatConversation: "chat-conversation",
|
|
39
39
|
Tabs: "tabs",
|
|
40
40
|
Breadcrumb: "breadcrumb",
|
|
41
|
+
Pagination: "pagination",
|
|
42
|
+
Markdown: "markdown",
|
|
43
|
+
Chart: "chart",
|
|
44
|
+
Form: "form",
|
|
45
|
+
CommandPalette: "command-palette",
|
|
46
|
+
TreeView: "tree-view",
|
|
47
|
+
TokenField: "token-field",
|
|
48
|
+
Autocomplete: "autocomplete",
|
|
41
49
|
Alert: "alert",
|
|
42
50
|
Skeleton: "skeleton",
|
|
43
51
|
SkeletonBoundary: "skeleton-boundary",
|
|
@@ -123,6 +131,8 @@ export const MeowUIComponent = {
|
|
|
123
131
|
DescriptionItem: "description-item",
|
|
124
132
|
Timeline: "timeline",
|
|
125
133
|
TimelineItem: "timeline-item",
|
|
134
|
+
EntryList: "entry-list",
|
|
135
|
+
Entry: "entry",
|
|
126
136
|
ResourceLink: "resource-link",
|
|
127
137
|
Page: "page",
|
|
128
138
|
PageHeader: "page-header",
|
|
@@ -182,6 +192,14 @@ export const meowUIComponents = [
|
|
|
182
192
|
Chat.ChatConversation,
|
|
183
193
|
Components.Tabs,
|
|
184
194
|
Components.Breadcrumb,
|
|
195
|
+
Components.Pagination,
|
|
196
|
+
Components.Markdown,
|
|
197
|
+
Components.Chart,
|
|
198
|
+
Components.Form,
|
|
199
|
+
Components.CommandPalette,
|
|
200
|
+
Components.TreeView,
|
|
201
|
+
Components.TokenField,
|
|
202
|
+
Components.Autocomplete,
|
|
185
203
|
Components.Alert,
|
|
186
204
|
Components.Skeleton,
|
|
187
205
|
Components.SkeletonBoundary,
|
|
@@ -257,6 +275,8 @@ export const meowUIComponents = [
|
|
|
257
275
|
Components.DetailSection,
|
|
258
276
|
Components.Timeline,
|
|
259
277
|
Components.TimelineItem,
|
|
278
|
+
Components.EntryList,
|
|
279
|
+
Components.Entry,
|
|
260
280
|
Components.ResourceLink,
|
|
261
281
|
Components.Page,
|
|
262
282
|
Components.PageHeader,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A document-unique id for a component that wires its own ARIA references.
|
|
3
|
+
* One sequence serves every runtime in the bundle, so two mounts never share
|
|
4
|
+
* an id; call it once during setup, never from a Signal read.
|
|
5
|
+
*/
|
|
6
|
+
export declare function elementId(prefix: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
let nextElementId = 0;
|
|
2
|
+
/**
|
|
3
|
+
* A document-unique id for a component that wires its own ARIA references.
|
|
4
|
+
* One sequence serves every runtime in the bundle, so two mounts never share
|
|
5
|
+
* an id; call it once during setup, never from a Signal read.
|
|
6
|
+
*/
|
|
7
|
+
export function elementId(prefix) {
|
|
8
|
+
nextElementId += 1;
|
|
9
|
+
return `${prefix}-${nextElementId}`;
|
|
10
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export declare const cornerShapeStyles: import("meowcss").CSSFragment;
|
|
2
|
+
/** Elements that take typed text: they keep their focus state whatever moved focus there. */
|
|
3
|
+
export declare const textEntry: string;
|
|
2
4
|
export declare const foundationStyles: import("meowcss").CSSFragment;
|
|
3
5
|
export declare const baseStyles: import("meowcss").CSSFragment;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { css } from "meowcss/meowjsx";
|
|
2
2
|
import { logoTokens, uiTokens } from "./tokens.js";
|
|
3
3
|
import { ui } from "./utilities.js";
|
|
4
|
+
import { pageAttribute } from "../shared/page-attribute.js";
|
|
4
5
|
export const cornerShapeStyles = css `
|
|
5
6
|
@supports (corner-shape: superellipse(1.5)) {
|
|
6
7
|
:where([data-meowui-part]),
|
|
@@ -12,11 +13,33 @@ export const cornerShapeStyles = css `
|
|
|
12
13
|
`;
|
|
13
14
|
/* The floor for anything inside a Meowland region, library part or host element:
|
|
14
15
|
border-box sizing, media that never overflows its column, code in the mono
|
|
15
|
-
face, controls in the surrounding type
|
|
16
|
-
is first in the theme and has zero specificity, so
|
|
17
|
-
every host rule overrides it. It deliberately resets no
|
|
18
|
-
lists: copy and long-form reading take Text and Prose
|
|
16
|
+
face, controls in the surrounding type, one keyboard focus outline and no
|
|
17
|
+
browser tap highlight. It is first in the theme and has zero specificity, so
|
|
18
|
+
every family rule and every host rule overrides it. It deliberately resets no
|
|
19
|
+
margins, headings or lists: copy and long-form reading take Text and Prose
|
|
20
|
+
instead. */
|
|
21
|
+
/** Elements that take typed text: they keep their focus state whatever moved focus there. */
|
|
22
|
+
export const textEntry = [
|
|
23
|
+
'input:not([type="button"], [type="checkbox"], [type="color"], [type="file"], [type="image"], [type="radio"], [type="range"], [type="reset"], [type="submit"])',
|
|
24
|
+
"textarea",
|
|
25
|
+
"select",
|
|
26
|
+
'[contenteditable]:not([contenteditable="false"])',
|
|
27
|
+
'[role="textbox"]',
|
|
28
|
+
].join(", ");
|
|
19
29
|
export const foundationStyles = css `
|
|
30
|
+
/* A themed page: the document takes the canvas and tells the browser its scheme, so native
|
|
31
|
+
controls, scrollbars and the overscroll area match instead of leaving a white page around a
|
|
32
|
+
dark one. Only the theme plugin marks a page; an embedded region keeps its host's ground. */
|
|
33
|
+
:where(html[${pageAttribute}][data-meowui-scope]) {
|
|
34
|
+
background-color: ${uiTokens.surface.canvas};
|
|
35
|
+
color-scheme: light;
|
|
36
|
+
}
|
|
37
|
+
:where(html[${pageAttribute}][data-meowui-color-scheme="dark"]) {
|
|
38
|
+
color-scheme: dark;
|
|
39
|
+
}
|
|
40
|
+
:where(html[${pageAttribute}][data-meowui-color-scheme="auto"]) {
|
|
41
|
+
color-scheme: light dark;
|
|
42
|
+
}
|
|
20
43
|
:where(
|
|
21
44
|
[data-meowui-theme-root="meowui"],
|
|
22
45
|
[data-meowui-theme-root="meowui"] *,
|
|
@@ -41,6 +64,20 @@ export const foundationStyles = css `
|
|
|
41
64
|
:where([data-meowui-theme-root="meowui"] :focus-visible) {
|
|
42
65
|
${ui.focus.ring}
|
|
43
66
|
}
|
|
67
|
+
/* After a tap the reader needs no ring: browsers disagree on :focus-visible, and Safari matches
|
|
68
|
+
it when script moves focus, so the ring lands on what was just touched. With the focus
|
|
69
|
+
modality tracker from meowtail/web, pointer input hides every outline ring until the next
|
|
70
|
+
keystroke; text entry keeps its focus state, since the caret's field must stay marked.
|
|
71
|
+
!important because each family's own ring is more specific than this floor. */
|
|
72
|
+
:where([data-meowui-focus-modality="pointer"])
|
|
73
|
+
:where([data-meowui-theme-root="meowui"], [data-meowui-theme-root="meowui"] *):focus-visible:not(${textEntry}) {
|
|
74
|
+
outline: none !important;
|
|
75
|
+
}
|
|
76
|
+
/* Mobile Safari outlines tapped targets; every control here shows its own pressed or checked
|
|
77
|
+
state instead. The property inherits, so the root covers parts and host elements alike. */
|
|
78
|
+
:where([data-meowui-theme-root="meowui"]) {
|
|
79
|
+
-webkit-tap-highlight-color: transparent;
|
|
80
|
+
}
|
|
44
81
|
/* One quiet scrollbar for every scroll region: a thin control-line thumb on no track. */
|
|
45
82
|
:where([data-meowui-theme-root="meowui"], [data-meowui-theme-root="meowui"] *) {
|
|
46
83
|
scrollbar-width: thin;
|
|
@@ -131,21 +131,41 @@ export const assistantStyles = css `
|
|
|
131
131
|
line-height: ${chatTokens.leading};
|
|
132
132
|
overflow-wrap: anywhere;
|
|
133
133
|
}
|
|
134
|
+
/* The latest action floats over the transcript's lower edge, so showing it never resizes the
|
|
135
|
+
reading viewport. Only the button takes the pointer; the strip around it reads through. */
|
|
134
136
|
${assistantViewPartRefs.latest} {
|
|
137
|
+
position: absolute;
|
|
138
|
+
inset-inline: 0;
|
|
139
|
+
inset-block-end: 0;
|
|
140
|
+
z-index: 1;
|
|
135
141
|
display: flex;
|
|
136
142
|
justify-content: center;
|
|
137
|
-
flex-shrink: 0;
|
|
138
143
|
width: 100%;
|
|
139
144
|
max-width: ${uiTokens.layout.containerContent};
|
|
140
145
|
margin-inline: auto;
|
|
141
146
|
padding: ${uiTokens.space.group} ${uiTokens.space.panel};
|
|
142
147
|
box-sizing: border-box;
|
|
148
|
+
pointer-events: none;
|
|
149
|
+
}
|
|
150
|
+
${assistantViewPartRefs.latest}[hidden] {
|
|
151
|
+
display: none;
|
|
143
152
|
}
|
|
144
153
|
${assistantViewPartRefs.latest} > ${buttonPartRefs.root} {
|
|
145
154
|
min-width: 0;
|
|
146
155
|
max-width: 100%;
|
|
147
156
|
white-space: normal;
|
|
148
157
|
overflow-wrap: anywhere;
|
|
158
|
+
pointer-events: auto;
|
|
159
|
+
box-shadow: ${uiTokens.shadow.float};
|
|
160
|
+
}
|
|
161
|
+
/* Floating over text, the state overlays paint on an opaque base instead of letting it through. */
|
|
162
|
+
${assistantViewPartRefs.latest}:not([hidden]) > ${buttonPartRefs.root}:hover:not(:disabled) {
|
|
163
|
+
background: linear-gradient(${uiTokens.state.hover}, ${uiTokens.state.hover})
|
|
164
|
+
${uiTokens.surface.raised};
|
|
165
|
+
}
|
|
166
|
+
${assistantViewPartRefs.latest}:not([hidden]) > ${buttonPartRefs.root}:active:not(:disabled) {
|
|
167
|
+
background: linear-gradient(${uiTokens.state.active}, ${uiTokens.state.active})
|
|
168
|
+
${uiTokens.surface.raised};
|
|
149
169
|
}
|
|
150
170
|
${composer} {
|
|
151
171
|
grid-area: composer;
|
|
@@ -3,6 +3,7 @@ import { chatTokens, uiTokens } from "../tokens.js";
|
|
|
3
3
|
import { ui } from "../utilities.js";
|
|
4
4
|
const chatAttachmentsPartRefs = parts("chat-attachments");
|
|
5
5
|
const chatComposerPartRefs = parts("chat-composer");
|
|
6
|
+
const imagePreviewPartRefs = parts("image-preview");
|
|
6
7
|
export const chatAttachmentsStyles = css `
|
|
7
8
|
/* Inherit the host's chat palette; do not reset it at the attachment root. */
|
|
8
9
|
|
|
@@ -158,13 +159,24 @@ export const chatAttachmentsStyles = css `
|
|
|
158
159
|
color: ${uiTokens.ink.primary};
|
|
159
160
|
}
|
|
160
161
|
}
|
|
162
|
+
/* A file with a preview reads as one split control: the card opens or downloads, its joined
|
|
163
|
+
end segment previews. */
|
|
164
|
+
${chatAttachmentsPartRefs.entry}:has(> ${chatAttachmentsPartRefs.previewButton}) {
|
|
165
|
+
align-items: stretch;
|
|
166
|
+
gap: 0;
|
|
167
|
+
}
|
|
168
|
+
${chatAttachmentsPartRefs.file}:has(+ ${chatAttachmentsPartRefs.previewButton}) {
|
|
169
|
+
border-start-end-radius: 0;
|
|
170
|
+
border-end-end-radius: 0;
|
|
171
|
+
}
|
|
161
172
|
${chatAttachmentsPartRefs.previewButton} {
|
|
162
173
|
flex: 0 0 auto;
|
|
163
|
-
border:
|
|
164
|
-
|
|
165
|
-
|
|
174
|
+
border: ${uiTokens.line.width} solid ${uiTokens.line.edge};
|
|
175
|
+
border-inline-start: 0;
|
|
176
|
+
background: ${uiTokens.surface.raised};
|
|
177
|
+
color: ${uiTokens.ink.secondary};
|
|
166
178
|
padding: 0 ${uiTokens.control.inset};
|
|
167
|
-
border-radius: ${
|
|
179
|
+
border-radius: 0 ${chatTokens.bubbleRadius} ${chatTokens.bubbleRadius} 0;
|
|
168
180
|
font: inherit;
|
|
169
181
|
font-size: ${uiTokens.type.caption};
|
|
170
182
|
cursor: pointer;
|
|
@@ -175,11 +187,12 @@ export const chatAttachmentsStyles = css `
|
|
|
175
187
|
}
|
|
176
188
|
@media (hover: hover) {
|
|
177
189
|
${chatAttachmentsPartRefs.previewButton}:hover:not(:disabled) {
|
|
178
|
-
background: ${uiTokens.state.hover};
|
|
190
|
+
background-image: linear-gradient(${uiTokens.state.hover}, ${uiTokens.state.hover});
|
|
191
|
+
color: ${uiTokens.ink.primary};
|
|
179
192
|
}
|
|
180
193
|
}
|
|
181
194
|
${chatAttachmentsPartRefs.previewButton}:active:not(:disabled) {
|
|
182
|
-
background: ${uiTokens.state.active};
|
|
195
|
+
background-image: linear-gradient(${uiTokens.state.active}, ${uiTokens.state.active});
|
|
183
196
|
box-shadow: ${uiTokens.shadow.pressed};
|
|
184
197
|
transition-duration: ${uiTokens.motion.instant};
|
|
185
198
|
}
|
|
@@ -252,4 +265,20 @@ export const chatAttachmentsStyles = css `
|
|
|
252
265
|
max-height: 64px;
|
|
253
266
|
object-fit: cover;
|
|
254
267
|
}
|
|
268
|
+
/* The 64px tile is a thumbnail: the preview fills it and crops; the lightbox shows the whole image. */
|
|
269
|
+
${chatComposerPartRefs.attachments} ${chatAttachmentsPartRefs.preview} > ${imagePreviewPartRefs.root} {
|
|
270
|
+
width: 100%;
|
|
271
|
+
height: 100%;
|
|
272
|
+
}
|
|
273
|
+
${chatComposerPartRefs.attachments} ${chatAttachmentsPartRefs.preview} > ${imagePreviewPartRefs.root} > ${imagePreviewPartRefs.image} {
|
|
274
|
+
object-fit: cover;
|
|
275
|
+
}
|
|
276
|
+
${chatComposerPartRefs.attachments} ${chatAttachmentsPartRefs.file}:has(+ ${chatAttachmentsPartRefs.previewButton}) {
|
|
277
|
+
border-start-end-radius: 0;
|
|
278
|
+
border-end-end-radius: 0;
|
|
279
|
+
}
|
|
280
|
+
${chatComposerPartRefs.attachments} ${chatAttachmentsPartRefs.previewButton} {
|
|
281
|
+
border-start-end-radius: ${uiTokens.radius.xl};
|
|
282
|
+
border-end-end-radius: ${uiTokens.radius.xl};
|
|
283
|
+
}
|
|
255
284
|
`;
|
|
@@ -23,6 +23,7 @@ export const chatComposerStyles = css `
|
|
|
23
23
|
border: 0;
|
|
24
24
|
border-radius: ${uiTokens.radius.md};
|
|
25
25
|
background: transparent;
|
|
26
|
+
box-shadow: none;
|
|
26
27
|
color: ${uiTokens.ink.secondary};
|
|
27
28
|
font-size: ${uiTokens.type.label};
|
|
28
29
|
line-height: ${uiTokens.type.line.label};
|
|
@@ -123,7 +124,7 @@ export const chatComposerStyles = css `
|
|
|
123
124
|
${chatComposerPartRefs.attachments} {
|
|
124
125
|
grid-row: 1;
|
|
125
126
|
min-width: 0;
|
|
126
|
-
padding: 2px
|
|
127
|
+
padding: 2px 6px 0;
|
|
127
128
|
margin-bottom: -6px;
|
|
128
129
|
}
|
|
129
130
|
|
|
@@ -438,7 +439,7 @@ export const chatComposerStyles = css `
|
|
|
438
439
|
min-width: 0;
|
|
439
440
|
width: auto;
|
|
440
441
|
height: auto;
|
|
441
|
-
padding-inline:
|
|
442
|
+
padding-inline: 18px;
|
|
442
443
|
overflow: visible;
|
|
443
444
|
clip-path: none;
|
|
444
445
|
white-space: normal;
|
|
@@ -449,6 +450,11 @@ export const chatComposerStyles = css `
|
|
|
449
450
|
pointer-events: auto;
|
|
450
451
|
}
|
|
451
452
|
|
|
453
|
+
/* The inline draft starts after the surface's section inset and the input's own 14px. */
|
|
454
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="inline"]:focus-within > ${chatComposerPartRefs.hint} {
|
|
455
|
+
padding-inline: calc(${uiTokens.space.section} + 14px);
|
|
456
|
+
}
|
|
457
|
+
|
|
452
458
|
/* A phone writes on one row: attach, text, send. The model choice keeps a quiet row beneath. */
|
|
453
459
|
@media (max-width: 768px) {
|
|
454
460
|
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] > ${chatComposerPartRefs.surface} {
|
|
@@ -500,6 +506,23 @@ export const chatComposerStyles = css `
|
|
|
500
506
|
justify-content: flex-start;
|
|
501
507
|
}
|
|
502
508
|
|
|
509
|
+
/* Any other action (a labeled button, a host control) cannot share the one writing row:
|
|
510
|
+
it takes the quiet row beneath, so the text keeps its column. */
|
|
511
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} > :not(${iconButtonPartRefs.root}, ${chatComposerPartRefs.trailing}, ${chatComposerPartRefs.submit}) {
|
|
512
|
+
grid-column: 1 / -1;
|
|
513
|
+
grid-row: 3;
|
|
514
|
+
justify-self: start;
|
|
515
|
+
margin-top: 2px;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions}:has(> :not(${iconButtonPartRefs.root}, ${chatComposerPartRefs.trailing}, ${chatComposerPartRefs.submit})) > ${chatComposerPartRefs.trailing} {
|
|
519
|
+
grid-row: 4;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] > ${chatComposerPartRefs.hint} {
|
|
523
|
+
padding-inline: 12px;
|
|
524
|
+
}
|
|
525
|
+
|
|
503
526
|
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="stacked"] ${chatComposerPartRefs.actions} > ${chatComposerPartRefs.submit} {
|
|
504
527
|
grid-column: 3;
|
|
505
528
|
grid-row: 2;
|
|
@@ -525,7 +548,9 @@ export const chatComposerStyles = css `
|
|
|
525
548
|
|
|
526
549
|
/* Bar: one rounded row (attach, text, trailing choices, send) that grows with the draft. */
|
|
527
550
|
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] > ${chatComposerPartRefs.surface} {
|
|
528
|
-
|
|
551
|
+
/* Beside a fractional text column an auto track would shrink to min-content and fold the
|
|
552
|
+
trailing choices into a column; they keep one row up to the trailing cap instead. */
|
|
553
|
+
grid-template-columns: auto minmax(0, 1fr) fit-content(280px) auto;
|
|
529
554
|
align-items: end;
|
|
530
555
|
gap: 0 ${uiTokens.space.group};
|
|
531
556
|
padding: 6px;
|
|
@@ -577,6 +602,8 @@ export const chatComposerStyles = css `
|
|
|
577
602
|
align-items: center;
|
|
578
603
|
gap: 2px;
|
|
579
604
|
min-width: 0;
|
|
605
|
+
/* The track caps the width; a percentage here would resolve against the track itself. */
|
|
606
|
+
max-width: none;
|
|
580
607
|
min-height: ${uiTokens.control.regular};
|
|
581
608
|
}
|
|
582
609
|
${chatComposerPartRefs.root}[${chatComposerOptions.attribute("layout")}="bar"] ${chatComposerPartRefs.submit} {
|
|
@@ -47,11 +47,23 @@ export const chatConversationStyles = css `
|
|
|
47
47
|
box-shadow: ${uiTokens.shadow.float};
|
|
48
48
|
cursor: pointer;
|
|
49
49
|
}
|
|
50
|
+
/* The owned action floats over the viewport's lower edge, so showing it never resizes the
|
|
51
|
+
transcript. A host's standalone ChatConversationLatest keeps the normal flow above. */
|
|
52
|
+
${chatConversationPartRefs.root} > ${chatConversationPartRefs.latest} {
|
|
53
|
+
position: absolute;
|
|
54
|
+
inset-block-end: ${uiTokens.space.group};
|
|
55
|
+
inset-inline-start: 50%;
|
|
56
|
+
z-index: 1;
|
|
57
|
+
margin: 0;
|
|
58
|
+
translate: -50% 0;
|
|
59
|
+
}
|
|
50
60
|
${chatConversationPartRefs.latest}[hidden] {
|
|
51
61
|
display: none;
|
|
52
62
|
}
|
|
63
|
+
/* The hover overlay paints on the opaque base, since the owned action floats over text. */
|
|
53
64
|
${chatConversationPartRefs.latest}:hover {
|
|
54
|
-
background: ${uiTokens.state.hover}
|
|
65
|
+
background: linear-gradient(${uiTokens.state.hover}, ${uiTokens.state.hover})
|
|
66
|
+
${uiTokens.surface.overlay};
|
|
55
67
|
}
|
|
56
68
|
${chatConversationPartRefs.latest}:focus-visible {
|
|
57
69
|
${ui.focus.ring}
|
|
@@ -131,16 +131,21 @@ export const chatRecordsStyles = css `
|
|
|
131
131
|
max-width: 50%;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
/* What a row owns reads one step under its label: the row's size, regular weight, never
|
|
135
|
+
larger than the line it hangs from. */
|
|
134
136
|
${chatToolCallPartRefs.detail},
|
|
135
137
|
${chatToolCallPartRefs.body} {
|
|
136
138
|
min-width: 0;
|
|
137
139
|
margin: 0;
|
|
138
140
|
color: ${uiTokens.ink.secondary};
|
|
139
|
-
font: ${uiTokens.type.
|
|
141
|
+
font-family: ${uiTokens.type.sans};
|
|
142
|
+
font-size: calc(${chatTokens.fontBody} - 1px);
|
|
143
|
+
line-height: calc(${uiTokens.type.line.label} + var(${rowDelta}, 0px));
|
|
140
144
|
}
|
|
141
145
|
|
|
142
146
|
${chatToolCallPartRefs.detail} {
|
|
143
147
|
padding-inline-start: var(${rowIndent});
|
|
148
|
+
color: ${uiTokens.ink.tertiary};
|
|
144
149
|
}
|
|
145
150
|
|
|
146
151
|
${chatToolCallPartRefs.body} {
|
|
@@ -195,7 +200,6 @@ export const chatRecordsStyles = css `
|
|
|
195
200
|
cursor: pointer;
|
|
196
201
|
user-select: none;
|
|
197
202
|
border-radius: ${uiTokens.radius.lg};
|
|
198
|
-
-webkit-tap-highlight-color: transparent;
|
|
199
203
|
}
|
|
200
204
|
|
|
201
205
|
${chatProcessPartRefs.label} {
|
|
@@ -246,10 +250,12 @@ export const chatRecordsStyles = css `
|
|
|
246
250
|
before its own body. */
|
|
247
251
|
${chatProcessPartRefs.body} {
|
|
248
252
|
margin: 0 0 ${uiTokens.space.group};
|
|
249
|
-
padding-block: ${uiTokens.space.group};
|
|
253
|
+
padding-block: ${uiTokens.space.group} 0;
|
|
250
254
|
padding-inline: var(${rowIndent}) 0;
|
|
251
255
|
border-left: 0;
|
|
252
|
-
|
|
256
|
+
color: ${uiTokens.ink.secondary};
|
|
257
|
+
font-size: calc(${chatTokens.fontBody} - 1px);
|
|
258
|
+
line-height: calc(${uiTokens.type.line.label} + var(${rowDelta}, 0px));
|
|
253
259
|
}
|
|
254
260
|
|
|
255
261
|
${chatProcessPartRefs.body} > :first-child {
|
|
@@ -293,7 +299,6 @@ export const chatRecordsStyles = css `
|
|
|
293
299
|
cursor: pointer;
|
|
294
300
|
list-style: none;
|
|
295
301
|
border-radius: ${uiTokens.radius.lg};
|
|
296
|
-
-webkit-tap-highlight-color: transparent;
|
|
297
302
|
}
|
|
298
303
|
|
|
299
304
|
/* The chevron swaps with the leading glyph, so it centres in the row whatever height the
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const autocompleteStyles: import("meowcss").CSSFragment;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { css, parts } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
const autocomplete = parts("autocomplete");
|
|
4
|
+
const popover = parts("popover");
|
|
5
|
+
export const autocompleteStyles = css `
|
|
6
|
+
${autocomplete.root} {
|
|
7
|
+
min-width: 0;
|
|
8
|
+
}
|
|
9
|
+
/* Surface, height and states come from the shared field surface. */
|
|
10
|
+
${autocomplete.input} {
|
|
11
|
+
width: 100%;
|
|
12
|
+
padding: 0 ${uiTokens.control.fieldInset};
|
|
13
|
+
}
|
|
14
|
+
${autocomplete.input}::placeholder {
|
|
15
|
+
color: ${uiTokens.ink.secondary};
|
|
16
|
+
}
|
|
17
|
+
${popover.panel}:has(> ${autocomplete.list}) {
|
|
18
|
+
padding: 6px;
|
|
19
|
+
}
|
|
20
|
+
${autocomplete.list} {
|
|
21
|
+
display: grid;
|
|
22
|
+
}
|
|
23
|
+
${autocomplete.list}:empty {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
${autocomplete.option} {
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
display: grid;
|
|
29
|
+
gap: 2px;
|
|
30
|
+
min-height: 32px;
|
|
31
|
+
padding: 6px 10px;
|
|
32
|
+
border-radius: ${uiTokens.radius.md};
|
|
33
|
+
color: ${uiTokens.ink.primary};
|
|
34
|
+
font: ${uiTokens.type.body} / ${uiTokens.type.line.bodyCompact} ${uiTokens.type.sans};
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
overflow-wrap: anywhere;
|
|
37
|
+
}
|
|
38
|
+
/* The active option is where the arrow keys are; it is painted like a focused menu item. */
|
|
39
|
+
${autocomplete.option}[aria-selected="true"] {
|
|
40
|
+
background: ${uiTokens.state.hover};
|
|
41
|
+
}
|
|
42
|
+
@media (hover: hover) {
|
|
43
|
+
${autocomplete.option}:hover {
|
|
44
|
+
background: ${uiTokens.state.hover};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
${autocomplete.description} {
|
|
48
|
+
color: ${uiTokens.ink.secondary};
|
|
49
|
+
font-size: ${uiTokens.type.caption};
|
|
50
|
+
line-height: ${uiTokens.type.line.caption};
|
|
51
|
+
}
|
|
52
|
+
${autocomplete.description}[hidden],
|
|
53
|
+
${autocomplete.status}[hidden] {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
${autocomplete.status} {
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding: 6px 10px;
|
|
59
|
+
color: ${uiTokens.ink.secondary};
|
|
60
|
+
}
|
|
61
|
+
@media (pointer: coarse) {
|
|
62
|
+
${autocomplete.input},
|
|
63
|
+
${autocomplete.option} {
|
|
64
|
+
min-height: 44px;
|
|
65
|
+
font-size: ${uiTokens.type.touchField};
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
@@ -27,7 +27,6 @@ export const buttonStyles = css `
|
|
|
27
27
|
border-color ${uiTokens.motion.response} ${uiTokens.motion.ease},
|
|
28
28
|
box-shadow ${uiTokens.motion.settle} ${uiTokens.motion.ease},
|
|
29
29
|
transform ${uiTokens.motion.response} ${uiTokens.motion.ease};
|
|
30
|
-
-webkit-tap-highlight-color: transparent;
|
|
31
30
|
}
|
|
32
31
|
/* A press settles the action half a pixel, so a click is felt, not only seen. */
|
|
33
32
|
:where(${iconButtonPartRefs.root}, ${buttonPartRefs.root}):active:not(:disabled) {
|
|
@@ -51,8 +51,9 @@ ${cardHeaderPartRefs.root} {
|
|
|
51
51
|
${cardTitlePartRefs.root} {
|
|
52
52
|
margin: 0;
|
|
53
53
|
color: ${uiTokens.ink.primary};
|
|
54
|
+
font-family: ${uiTokens.type.display};
|
|
54
55
|
font-size: ${uiTokens.type.title};
|
|
55
|
-
font-weight: ${uiTokens.type.weight.
|
|
56
|
+
font-weight: ${uiTokens.type.weight.display};
|
|
56
57
|
line-height: ${uiTokens.type.line.title};
|
|
57
58
|
letter-spacing: ${uiTokens.type.trackingTight};
|
|
58
59
|
overflow-wrap: anywhere;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const chartStyles: import("meowcss").CSSFragment;
|