meowtail 0.2.0-alpha.0 → 0.2.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/AGENT-COMPONENTS.md +65 -65
- package/ASSISTANT.md +35 -35
- package/JSON.md +11 -11
- package/README.md +413 -385
- package/THIRD_PARTY_NOTICES.md +8 -0
- package/dist/src/chat/assistant-composer.js +58 -98
- package/dist/src/chat/assistant-content.d.ts +1 -3
- package/dist/src/chat/assistant-content.js +36 -44
- package/dist/src/chat/assistant-markdown.js +4 -8
- package/dist/src/chat/assistant-question.js +13 -14
- package/dist/src/chat/assistant.js +27 -26
- package/dist/src/chat/attachments.d.ts +3 -2
- package/dist/src/chat/attachments.js +43 -34
- package/dist/src/chat/composer-panel.d.ts +16 -0
- package/dist/src/chat/composer-panel.js +11 -0
- package/dist/src/chat/composer.d.ts +7 -3
- package/dist/src/chat/composer.js +71 -22
- package/dist/src/chat/conversation.js +2 -2
- package/dist/src/chat/index.d.ts +1 -0
- package/dist/src/chat/index.js +1 -0
- package/dist/src/chat/message-list.js +1 -1
- package/dist/src/chat/message.js +3 -3
- package/dist/src/chat/question.js +1 -1
- package/dist/src/chat/sources.js +1 -1
- package/dist/src/chat/task.js +9 -15
- package/dist/src/chat/tool-call.js +7 -14
- package/dist/src/components/accordion.d.ts +24 -0
- package/dist/src/components/accordion.js +50 -0
- package/dist/src/components/action-rail.d.ts +19 -0
- package/dist/src/components/action-rail.js +13 -0
- package/dist/src/components/add-button.js +1 -1
- package/dist/src/components/alert.d.ts +2 -0
- package/dist/src/components/alert.js +2 -1
- package/dist/src/components/app-bar.d.ts +17 -0
- package/dist/src/components/app-bar.js +10 -0
- package/dist/src/components/avatar.d.ts +22 -0
- package/dist/src/components/avatar.js +44 -0
- package/dist/src/components/breadcrumb.js +1 -1
- package/dist/src/components/checkbox.d.ts +6 -2
- package/dist/src/components/checkbox.js +36 -8
- package/dist/src/components/choice-group.d.ts +1 -0
- package/dist/src/components/choice-group.js +12 -17
- package/dist/src/components/choice-select.d.ts +3 -1
- package/dist/src/components/choice-select.js +56 -54
- package/dist/src/components/code-block.d.ts +3 -3
- package/dist/src/components/code-block.js +31 -27
- package/dist/src/components/context-menu.d.ts +16 -0
- package/dist/src/components/context-menu.js +49 -0
- package/dist/src/components/credential-source.js +12 -12
- package/dist/src/components/diff-block.js +1 -1
- package/dist/src/components/disclosure.d.ts +2 -2
- package/dist/src/components/disclosure.js +1 -1
- package/dist/src/components/hover-card.js +2 -2
- package/dist/src/components/image-lightbox.js +3 -3
- package/dist/src/components/image-preview.js +1 -1
- package/dist/src/components/index.d.ts +12 -0
- package/dist/src/components/index.js +12 -0
- package/dist/src/components/json-block.js +2 -2
- package/dist/src/components/json-tree.js +3 -3
- package/dist/src/components/link.d.ts +13 -0
- package/dist/src/components/link.js +9 -0
- package/dist/src/components/list-group.d.ts +1 -1
- package/dist/src/components/menu-button.d.ts +13 -0
- package/dist/src/components/menu-button.js +10 -0
- package/dist/src/components/menu.d.ts +4 -0
- package/dist/src/components/menu.js +3 -3
- package/dist/src/components/meta-row.d.ts +34 -0
- package/dist/src/components/meta-row.js +61 -0
- package/dist/src/components/nav-item.js +2 -5
- package/dist/src/components/number-input.d.ts +29 -0
- package/dist/src/components/number-input.js +137 -0
- package/dist/src/components/output-block.js +8 -15
- package/dist/src/components/page-frame.d.ts +6 -2
- package/dist/src/components/page-frame.js +2 -2
- package/dist/src/components/path-picker.js +9 -14
- package/dist/src/components/pill.js +2 -5
- package/dist/src/components/popover.js +4 -4
- package/dist/src/components/process-group.d.ts +2 -2
- package/dist/src/components/progress.d.ts +15 -0
- package/dist/src/components/progress.js +12 -0
- package/dist/src/components/rail-item.d.ts +2 -2
- package/dist/src/components/rail-section.d.ts +1 -1
- package/dist/src/components/read-block.js +2 -2
- package/dist/src/components/resource-card.d.ts +1 -1
- package/dist/src/components/resource-link.d.ts +1 -1
- package/dist/src/components/risk-confirmation.js +2 -5
- package/dist/src/components/search-block.js +2 -3
- package/dist/src/components/segmented-control.js +3 -3
- package/dist/src/components/skeleton-boundary.js +4 -7
- package/dist/src/components/slider.d.ts +22 -0
- package/dist/src/components/slider.js +49 -0
- package/dist/src/components/table.d.ts +41 -0
- package/dist/src/components/table.js +146 -0
- package/dist/src/components/tabs.d.ts +1 -1
- package/dist/src/components/tabs.js +11 -20
- package/dist/src/components/terminal-block.js +6 -6
- package/dist/src/components/text-shimmer.js +2 -5
- package/dist/src/components/web-block.js +3 -3
- package/dist/src/components/work-card.d.ts +2 -2
- package/dist/src/components/work-card.js +1 -1
- package/dist/src/icons/README.md +13 -2
- package/dist/src/icons/icon-frame.d.ts +11 -0
- package/dist/src/icons/icon-frame.js +4 -0
- package/dist/src/icons/icon-source.d.ts +17 -0
- package/dist/src/icons/icon-source.js +6 -0
- package/dist/src/icons/icon.d.ts +44 -37
- package/dist/src/icons/icon.js +55 -128
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.js +1 -0
- package/dist/src/icons/lucide.d.ts +1 -0
- package/dist/src/icons/lucide.js +4 -0
- package/dist/src/registry/index.d.ts +99 -5
- package/dist/src/registry/index.js +28 -3
- package/dist/src/shared/execution-state.js +7 -7
- package/dist/src/theme/chat/composer-panel.styles.d.ts +1 -0
- package/dist/src/theme/chat/composer-panel.styles.js +47 -0
- package/dist/src/theme/chat/composer.styles.js +69 -60
- package/dist/src/theme/chat/task.styles.js +5 -6
- package/dist/src/theme/components/accordion.styles.d.ts +1 -0
- package/dist/src/theme/components/accordion.styles.js +63 -0
- package/dist/src/theme/components/action-rail.styles.d.ts +1 -0
- package/dist/src/theme/components/action-rail.styles.js +47 -0
- package/dist/src/theme/components/alert.styles.js +42 -1
- package/dist/src/theme/components/app-bar.styles.d.ts +1 -0
- package/dist/src/theme/components/app-bar.styles.js +48 -0
- package/dist/src/theme/components/avatar.styles.d.ts +1 -0
- package/dist/src/theme/components/avatar.styles.js +52 -0
- package/dist/src/theme/components/button.styles.js +9 -0
- package/dist/src/theme/components/card.styles.js +2 -0
- package/dist/src/theme/components/code-block.styles.js +7 -0
- package/dist/src/theme/components/context-menu.styles.d.ts +1 -0
- package/dist/src/theme/components/context-menu.styles.js +14 -0
- package/dist/src/theme/components/dialog.styles.js +7 -0
- package/dist/src/theme/components/link.styles.d.ts +1 -0
- package/dist/src/theme/components/link.styles.js +33 -0
- package/dist/src/theme/components/list-group.styles.js +1 -0
- package/dist/src/theme/components/menu.styles.js +9 -3
- package/dist/src/theme/components/meta-row.styles.d.ts +1 -0
- package/dist/src/theme/components/meta-row.styles.js +66 -0
- package/dist/src/theme/components/number-input.styles.d.ts +1 -0
- package/dist/src/theme/components/number-input.styles.js +106 -0
- package/dist/src/theme/components/output-block.styles.js +9 -0
- package/dist/src/theme/components/page-frame.styles.js +7 -1
- package/dist/src/theme/components/page-header.styles.js +7 -0
- package/dist/src/theme/components/progress.styles.d.ts +1 -0
- package/dist/src/theme/components/progress.styles.js +71 -0
- package/dist/src/theme/components/resource-card.styles.js +7 -0
- package/dist/src/theme/components/slider.styles.d.ts +1 -0
- package/dist/src/theme/components/slider.styles.js +129 -0
- package/dist/src/theme/components/table.styles.d.ts +1 -0
- package/dist/src/theme/components/table.styles.js +156 -0
- package/dist/src/theme/components/tag.styles.js +3 -3
- package/dist/src/theme/components/toggle.styles.js +10 -0
- package/dist/src/theme/components/toolbar.styles.js +7 -0
- package/dist/src/theme/index.d.ts +15 -15
- package/dist/src/theme/index.js +24 -0
- package/dist/src/theme/palette.d.ts +1 -1
- package/dist/src/theme/palette.js +1 -1
- package/dist/src/theme/shared/code-highlight.tokens.d.ts +6 -6
- package/dist/src/theme/shared/code-highlight.tokens.js +6 -6
- package/dist/src/theme/tokens.d.ts +7 -7
- package/dist/src/theme/tokens.js +14 -8
- package/package.json +9 -4
|
@@ -74,4 +74,11 @@ export const codeBlockStyles = css `
|
|
|
74
74
|
outline: 2px solid ${uiTokens.focus};
|
|
75
75
|
outline-offset: -2px;
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
@media (pointer: coarse) {
|
|
79
|
+
${partSelector(codeBlockContract, "actions")}[data-meowui-part] > * {
|
|
80
|
+
min-width: 44px;
|
|
81
|
+
min-height: 44px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
77
84
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const contextMenuStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { contextMenuContract } from "../../components/context-menu.js";
|
|
3
|
+
import { uiTokens } from "../tokens.js";
|
|
4
|
+
export const contextMenuStyles = css `
|
|
5
|
+
${partSelector(contextMenuContract, "root")} {
|
|
6
|
+
min-width: 0;
|
|
7
|
+
cursor: context-menu;
|
|
8
|
+
}
|
|
9
|
+
${partSelector(contextMenuContract, "root")}:focus-visible {
|
|
10
|
+
outline: 2px solid ${uiTokens.focus};
|
|
11
|
+
outline-offset: 2px;
|
|
12
|
+
border-radius: ${uiTokens.controlRadius};
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
@@ -88,4 +88,11 @@ export const dialogStyles = css `
|
|
|
88
88
|
margin: ${uiTokens.spaceGroup} 0 0;
|
|
89
89
|
color: ${uiTokens.mutedForeground};
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
@media (pointer: coarse) {
|
|
93
|
+
${partSelector(dialogActionsContract, "root")}[data-meowui-part] > * {
|
|
94
|
+
min-width: 44px;
|
|
95
|
+
min-height: 44px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
91
98
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const linkStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { accentTokens } from "../palette.js";
|
|
4
|
+
import { linkContract } from "../../components/link.js";
|
|
5
|
+
const root = partSelector(linkContract, "root");
|
|
6
|
+
export const linkStyles = css `
|
|
7
|
+
${root} {
|
|
8
|
+
color: ${accentTokens.ink};
|
|
9
|
+
font: inherit;
|
|
10
|
+
text-decoration: underline;
|
|
11
|
+
text-decoration-thickness: 1px;
|
|
12
|
+
text-decoration-color: color-mix(in srgb, ${accentTokens.ink} 55%, transparent);
|
|
13
|
+
text-underline-offset: 3px;
|
|
14
|
+
overflow-wrap: anywhere;
|
|
15
|
+
transition:
|
|
16
|
+
color ${uiTokens.durationResponse} ${uiTokens.ease},
|
|
17
|
+
text-decoration-color ${uiTokens.durationResponse} ${uiTokens.ease};
|
|
18
|
+
}
|
|
19
|
+
${root}:hover {
|
|
20
|
+
color: ${uiTokens.foreground};
|
|
21
|
+
text-decoration-color: ${uiTokens.foreground};
|
|
22
|
+
}
|
|
23
|
+
${root}:focus-visible {
|
|
24
|
+
outline: 2px solid ${uiTokens.focus};
|
|
25
|
+
outline-offset: 2px;
|
|
26
|
+
border-radius: 2px;
|
|
27
|
+
}
|
|
28
|
+
@media (prefers-reduced-motion: reduce) {
|
|
29
|
+
${root} {
|
|
30
|
+
transition: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
@@ -16,8 +16,8 @@ export const menuStyles = css `
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
gap: 6px;
|
|
18
18
|
width: 100%;
|
|
19
|
-
min-height:
|
|
20
|
-
padding: 6px
|
|
19
|
+
min-height: 32px;
|
|
20
|
+
padding: 6px 12px;
|
|
21
21
|
border: 0;
|
|
22
22
|
border-radius: ${uiTokens.controlRadius};
|
|
23
23
|
background: transparent;
|
|
@@ -25,6 +25,7 @@ export const menuStyles = css `
|
|
|
25
25
|
font: inherit;
|
|
26
26
|
text-align: left;
|
|
27
27
|
cursor: pointer;
|
|
28
|
+
transition: background-color ${uiTokens.durationResponse} ${uiTokens.ease};
|
|
28
29
|
}
|
|
29
30
|
${partSelector(menuContract, "item")}:is(:hover, :focus-visible):not(:disabled) {
|
|
30
31
|
background: ${uiTokens.hover};
|
|
@@ -64,7 +65,7 @@ export const menuStyles = css `
|
|
|
64
65
|
white-space: nowrap;
|
|
65
66
|
}
|
|
66
67
|
${partSelector(menuContract, "heading")} {
|
|
67
|
-
padding: 6px
|
|
68
|
+
padding: 6px 12px;
|
|
68
69
|
font-size: 11px;
|
|
69
70
|
line-height: 15px;
|
|
70
71
|
color: ${uiTokens.subtleForeground};
|
|
@@ -74,4 +75,9 @@ export const menuStyles = css `
|
|
|
74
75
|
background: ${uiTokens.borderSoft};
|
|
75
76
|
margin: 3px 2px;
|
|
76
77
|
}
|
|
78
|
+
@media (prefers-reduced-motion: reduce) {
|
|
79
|
+
${partSelector(menuContract, "item")} {
|
|
80
|
+
transition: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
77
83
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const metaRowStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { metaRowContract, metaRowOptions } from "../../components/meta-row.js";
|
|
4
|
+
export const metaRowStyles = css `
|
|
5
|
+
${partSelector(metaRowContract, "root")} {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: ${uiTokens.spaceGroup};
|
|
10
|
+
min-width: 0;
|
|
11
|
+
color: ${uiTokens.mutedForeground};
|
|
12
|
+
font: ${uiTokens.fontCaption}/18px ${uiTokens.font};
|
|
13
|
+
}
|
|
14
|
+
${partSelector(metaRowContract, "root")}[${metaRowOptions.attribute("align")}="center"] {
|
|
15
|
+
justify-content: center;
|
|
16
|
+
}
|
|
17
|
+
${partSelector(metaRowContract, "item")} {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 4px;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
}
|
|
23
|
+
${partSelector(metaRowContract, "icon")} {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
flex: none;
|
|
27
|
+
}
|
|
28
|
+
${partSelector(metaRowContract, "icon")} svg {
|
|
29
|
+
width: 14px;
|
|
30
|
+
height: 14px;
|
|
31
|
+
flex: none;
|
|
32
|
+
}
|
|
33
|
+
${partSelector(metaRowContract, "label")} {
|
|
34
|
+
min-width: 0;
|
|
35
|
+
overflow-wrap: anywhere;
|
|
36
|
+
}
|
|
37
|
+
${partSelector(metaRowContract, "separator")} {
|
|
38
|
+
color: ${uiTokens.border};
|
|
39
|
+
}
|
|
40
|
+
${partSelector(metaRowContract, "progress")} {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 4px;
|
|
44
|
+
flex: none;
|
|
45
|
+
font-variant-numeric: tabular-nums;
|
|
46
|
+
}
|
|
47
|
+
${partSelector(metaRowContract, "progress")}::before {
|
|
48
|
+
content: "";
|
|
49
|
+
width: 14px;
|
|
50
|
+
height: 14px;
|
|
51
|
+
flex: none;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
background: conic-gradient(
|
|
54
|
+
${uiTokens.subtleForeground} var(--meta-progress, 0%),
|
|
55
|
+
${uiTokens.border} var(--meta-progress, 0%)
|
|
56
|
+
);
|
|
57
|
+
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
|
|
58
|
+
mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
|
|
59
|
+
}
|
|
60
|
+
${partSelector(metaRowContract, "root")}[${metaRowOptions.attribute("progressTone")}="accent"] ${partSelector(metaRowContract, "progress")}::before {
|
|
61
|
+
background: conic-gradient(
|
|
62
|
+
${uiTokens.info} var(--meta-progress, 0%),
|
|
63
|
+
${uiTokens.border} var(--meta-progress, 0%)
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const numberInputStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { numberInputContract } from "../../components/number-input.js";
|
|
4
|
+
const root = partSelector(numberInputContract, "root");
|
|
5
|
+
const control = partSelector(numberInputContract, "control");
|
|
6
|
+
const stepper = `:where(${partSelector(numberInputContract, "decrement")}, ${partSelector(numberInputContract, "increment")})`;
|
|
7
|
+
export const numberInputStyles = css `
|
|
8
|
+
${root} {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
width: max-content;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
min-height: calc(${uiTokens.controlHeight} + 1px);
|
|
16
|
+
padding: 2px;
|
|
17
|
+
border: 0.5px solid ${uiTokens.border};
|
|
18
|
+
border-radius: ${uiTokens.controlRadius};
|
|
19
|
+
background: ${uiTokens.inputSurface};
|
|
20
|
+
color: ${uiTokens.foreground};
|
|
21
|
+
font: ${uiTokens.fontBody}/22px ${uiTokens.font};
|
|
22
|
+
transition: border-color ${uiTokens.durationResponse} ${uiTokens.ease};
|
|
23
|
+
}
|
|
24
|
+
${root}:focus-within {
|
|
25
|
+
border-color: ${uiTokens.focus};
|
|
26
|
+
}
|
|
27
|
+
@media (hover: hover) {
|
|
28
|
+
${root}:hover:not(:focus-within):not(:has(${control}:disabled)):not(:has([aria-invalid="true"])) {
|
|
29
|
+
border-color: ${uiTokens.mutedForeground};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
${root}:has([aria-invalid="true"]) {
|
|
33
|
+
border-color: ${uiTokens.danger};
|
|
34
|
+
}
|
|
35
|
+
${root}:has(${control}:disabled) {
|
|
36
|
+
color: ${uiTokens.subtleForeground};
|
|
37
|
+
border-color: ${uiTokens.borderFaint};
|
|
38
|
+
background: ${uiTokens.surfaceMuted};
|
|
39
|
+
}
|
|
40
|
+
${control} {
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
flex: 0 0 auto;
|
|
43
|
+
width: 4.5rem;
|
|
44
|
+
min-width: 0;
|
|
45
|
+
min-height: calc(${uiTokens.controlHeight} - 4px);
|
|
46
|
+
padding: 4px 2px;
|
|
47
|
+
border: 0;
|
|
48
|
+
background: transparent;
|
|
49
|
+
color: inherit;
|
|
50
|
+
font: inherit;
|
|
51
|
+
font-variant-numeric: tabular-nums;
|
|
52
|
+
text-align: center;
|
|
53
|
+
outline: none;
|
|
54
|
+
}
|
|
55
|
+
${stepper} {
|
|
56
|
+
appearance: none;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
flex: 0 0 auto;
|
|
62
|
+
width: ${uiTokens.controlSmall};
|
|
63
|
+
height: ${uiTokens.controlSmall};
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
border: 0;
|
|
67
|
+
border-radius: ${uiTokens.radiusSmall};
|
|
68
|
+
background: transparent;
|
|
69
|
+
color: ${uiTokens.mutedForeground};
|
|
70
|
+
font: inherit;
|
|
71
|
+
line-height: 0;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
transition:
|
|
74
|
+
color ${uiTokens.durationResponse} ${uiTokens.ease},
|
|
75
|
+
background-color ${uiTokens.durationResponse} ${uiTokens.ease};
|
|
76
|
+
}
|
|
77
|
+
${stepper} svg {
|
|
78
|
+
display: block;
|
|
79
|
+
width: ${uiTokens.iconSize};
|
|
80
|
+
height: ${uiTokens.iconSize};
|
|
81
|
+
}
|
|
82
|
+
@media (hover: hover) {
|
|
83
|
+
${stepper}:hover:not(:disabled) {
|
|
84
|
+
color: ${uiTokens.foreground};
|
|
85
|
+
background: ${uiTokens.hover};
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
${stepper}:active:not(:disabled) {
|
|
89
|
+
background: ${uiTokens.active};
|
|
90
|
+
}
|
|
91
|
+
${stepper}:focus-visible {
|
|
92
|
+
outline: 2px solid ${uiTokens.focus};
|
|
93
|
+
outline-offset: 2px;
|
|
94
|
+
}
|
|
95
|
+
${root}:has(${control}:disabled) ${stepper},
|
|
96
|
+
${stepper}:disabled {
|
|
97
|
+
cursor: not-allowed;
|
|
98
|
+
color: inherit;
|
|
99
|
+
}
|
|
100
|
+
@media (prefers-reduced-motion: reduce) {
|
|
101
|
+
${root},
|
|
102
|
+
${stepper} {
|
|
103
|
+
transition: none;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
@@ -231,4 +231,13 @@ export const outputBlockStyles = css `
|
|
|
231
231
|
${partSelector(terminal, "span")}[data-ansi-color="90"] {
|
|
232
232
|
color: ${uiTokens.subtleForeground};
|
|
233
233
|
}
|
|
234
|
+
|
|
235
|
+
@media (pointer: coarse) {
|
|
236
|
+
${partSelector(block, "actions")}[data-meowui-part],
|
|
237
|
+
${partSelector(block, "toggle")}[data-meowui-part] {
|
|
238
|
+
min-width: 44px;
|
|
239
|
+
min-height: 44px;
|
|
240
|
+
padding: 0 6px;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
234
243
|
`;
|
|
@@ -16,7 +16,7 @@ export const pageFrameStyles = css `
|
|
|
16
16
|
padding: ${uiTokens.pageInsetBlock} ${uiTokens.pageInsetInline};
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
}
|
|
19
|
-
:where(${partSelector(pageFrameContract, "toolbar")}, ${partSelector(pageFrameContract, "header")}) {
|
|
19
|
+
:where(${partSelector(pageFrameContract, "toolbar")}, ${partSelector(pageFrameContract, "header")}, ${partSelector(pageFrameContract, "notice")}, ${partSelector(pageFrameContract, "footer")}) {
|
|
20
20
|
min-width: 0;
|
|
21
21
|
flex: 0 0 auto;
|
|
22
22
|
max-height: none;
|
|
@@ -29,6 +29,12 @@ export const pageFrameStyles = css `
|
|
|
29
29
|
min-height: 0;
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
}
|
|
32
|
+
${partSelector(pageFrameContract, "root")}[${pageFrameOptions.attribute("variant")}="workspace"] > ${partSelector(pageFrameContract, "notice")} {
|
|
33
|
+
padding: 8px 12px 0;
|
|
34
|
+
}
|
|
35
|
+
${partSelector(pageFrameContract, "root")}[${pageFrameOptions.attribute("variant")}="workspace"] > ${partSelector(pageFrameContract, "footer")} {
|
|
36
|
+
padding: 8px 12px max(8px, env(safe-area-inset-bottom));
|
|
37
|
+
}
|
|
32
38
|
${partSelector(pageFrameContract, "root")}[${pageFrameOptions.attribute("scrollOwner")}="content"] >
|
|
33
39
|
${partSelector(pageFrameContract, "body")} > * {
|
|
34
40
|
flex: 1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const progressStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { accentTokens } from "../palette.js";
|
|
4
|
+
import { progressContract } from "../../components/progress.js";
|
|
5
|
+
const root = partSelector(progressContract, "root");
|
|
6
|
+
const bar = partSelector(progressContract, "bar");
|
|
7
|
+
const native = `progress[data-meowui-part="progress/bar"]`;
|
|
8
|
+
export const progressStyles = css `
|
|
9
|
+
${root} {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: block;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
width: 100%;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
height: 6px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
border-radius: 999px;
|
|
18
|
+
corner-shape: round;
|
|
19
|
+
background: ${uiTokens.surfaceMuted};
|
|
20
|
+
}
|
|
21
|
+
${bar} {
|
|
22
|
+
display: block;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
border: 0;
|
|
27
|
+
border-radius: inherit;
|
|
28
|
+
background: transparent;
|
|
29
|
+
accent-color: ${accentTokens.base};
|
|
30
|
+
vertical-align: middle;
|
|
31
|
+
}
|
|
32
|
+
${native}::-webkit-progress-bar {
|
|
33
|
+
background: ${uiTokens.surfaceMuted};
|
|
34
|
+
border-radius: inherit;
|
|
35
|
+
}
|
|
36
|
+
${native}::-webkit-progress-value {
|
|
37
|
+
background: ${accentTokens.base};
|
|
38
|
+
border-radius: inherit;
|
|
39
|
+
}
|
|
40
|
+
${native}::-moz-progress-bar {
|
|
41
|
+
background: ${accentTokens.base};
|
|
42
|
+
border-radius: inherit;
|
|
43
|
+
}
|
|
44
|
+
${native}:not([value]) {
|
|
45
|
+
opacity: 0;
|
|
46
|
+
}
|
|
47
|
+
${root}:has(${bar}:not([value]))::after {
|
|
48
|
+
content: "";
|
|
49
|
+
position: absolute;
|
|
50
|
+
inset-block: 0;
|
|
51
|
+
inset-inline-start: 0;
|
|
52
|
+
width: 36%;
|
|
53
|
+
border-radius: inherit;
|
|
54
|
+
background: ${accentTokens.base};
|
|
55
|
+
animation: ui-progress-indeterminate 1.2s ${uiTokens.ease} infinite;
|
|
56
|
+
}
|
|
57
|
+
@keyframes ui-progress-indeterminate {
|
|
58
|
+
0% {
|
|
59
|
+
inset-inline-start: -36%;
|
|
60
|
+
}
|
|
61
|
+
100% {
|
|
62
|
+
inset-inline-start: 100%;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
${root}:has(${bar}:not([value]))::after {
|
|
67
|
+
animation: none;
|
|
68
|
+
inset-inline-start: 32%;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sliderStyles: import("meowcss/meowjsx").CSSFragment;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { css, partSelector } from "meowcss/meowjsx";
|
|
2
|
+
import { uiTokens } from "../tokens.js";
|
|
3
|
+
import { accentTokens, lineTokens } from "../palette.js";
|
|
4
|
+
import { sliderContract } from "../../components/slider.js";
|
|
5
|
+
const root = partSelector(sliderContract, "root");
|
|
6
|
+
const control = partSelector(sliderContract, "control");
|
|
7
|
+
const track = partSelector(sliderContract, "track");
|
|
8
|
+
const thumb = partSelector(sliderContract, "thumb");
|
|
9
|
+
const value = partSelector(sliderContract, "value");
|
|
10
|
+
const fill = `linear-gradient(to right, ${accentTokens.base} 0%, ${accentTokens.base} var(--slider-fill, 0%), ${uiTokens.surfaceMuted} var(--slider-fill, 0%), ${uiTokens.surfaceMuted} 100%)`;
|
|
11
|
+
const mutedFill = `linear-gradient(to right, ${uiTokens.mutedForeground} 0%, ${uiTokens.mutedForeground} var(--slider-fill, 0%), ${uiTokens.surfaceMuted} var(--slider-fill, 0%), ${uiTokens.surfaceMuted} 100%)`;
|
|
12
|
+
const thumbShadow = "0 1px 2px rgb(0 0 0 / 16%)";
|
|
13
|
+
const thumbShadowHover = "0 1px 3px rgb(0 0 0 / 22%)";
|
|
14
|
+
export const sliderStyles = css `
|
|
15
|
+
${root} {
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
18
|
+
align-items: center;
|
|
19
|
+
column-gap: ${uiTokens.spaceGroup};
|
|
20
|
+
width: 16rem;
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
color: ${uiTokens.foreground};
|
|
24
|
+
font: ${uiTokens.fontCaption}/1 ${uiTokens.font};
|
|
25
|
+
}
|
|
26
|
+
${control} {
|
|
27
|
+
grid-column: 1;
|
|
28
|
+
grid-row: 1;
|
|
29
|
+
z-index: 1;
|
|
30
|
+
width: 100%;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
height: ${uiTokens.controlHeight};
|
|
33
|
+
margin: 0;
|
|
34
|
+
opacity: 0;
|
|
35
|
+
-webkit-appearance: none;
|
|
36
|
+
appearance: none;
|
|
37
|
+
background: transparent;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
${track} {
|
|
41
|
+
grid-column: 1;
|
|
42
|
+
grid-row: 1;
|
|
43
|
+
position: relative;
|
|
44
|
+
height: 6px;
|
|
45
|
+
overflow: visible;
|
|
46
|
+
border-radius: 999px;
|
|
47
|
+
corner-shape: round;
|
|
48
|
+
background: ${fill};
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
}
|
|
51
|
+
${thumb} {
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 50%;
|
|
55
|
+
left: clamp(0px, calc(var(--slider-fill, 0%) - 8px), calc(100% - 16px));
|
|
56
|
+
width: 16px;
|
|
57
|
+
height: 16px;
|
|
58
|
+
margin-top: -8px;
|
|
59
|
+
border: ${lineTokens.width} solid ${lineTokens.edge};
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
corner-shape: round;
|
|
62
|
+
background: ${uiTokens.switchThumb};
|
|
63
|
+
box-shadow: ${thumbShadow};
|
|
64
|
+
transition: box-shadow ${uiTokens.durationResponse} ${uiTokens.ease};
|
|
65
|
+
}
|
|
66
|
+
${control}:focus-visible {
|
|
67
|
+
outline: none;
|
|
68
|
+
}
|
|
69
|
+
@media (hover: hover) {
|
|
70
|
+
${root}:has(${control}:hover:not(:disabled):not(:focus-visible)) ${thumb} {
|
|
71
|
+
box-shadow: ${thumbShadowHover};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
${root}:has(${control}:active:not(:disabled):not(:focus-visible)) ${thumb} {
|
|
75
|
+
box-shadow: 0 1px 1px rgb(0 0 0 / 14%);
|
|
76
|
+
}
|
|
77
|
+
/* Offset outline is transparent, so the track would show through the gap.
|
|
78
|
+
An opaque halo keeps the 2px spacing of Button/Switch while covering the
|
|
79
|
+
fill. Hosts on a painted surface set --meowui-focus-halo to that surface. */
|
|
80
|
+
${root}:has(${control}:focus-visible) ${thumb} {
|
|
81
|
+
outline: none;
|
|
82
|
+
box-shadow:
|
|
83
|
+
0 0 0 2px var(--meowui-focus-halo, ${uiTokens.background}),
|
|
84
|
+
0 0 0 4px ${uiTokens.focus};
|
|
85
|
+
}
|
|
86
|
+
${root}:has(${control}:disabled) {
|
|
87
|
+
color: ${uiTokens.subtleForeground};
|
|
88
|
+
}
|
|
89
|
+
${root}:has(${control}:disabled) ${track} {
|
|
90
|
+
background: ${mutedFill};
|
|
91
|
+
}
|
|
92
|
+
${root}:has(${control}:disabled) ${thumb} {
|
|
93
|
+
box-shadow: none;
|
|
94
|
+
}
|
|
95
|
+
${control}:disabled {
|
|
96
|
+
cursor: not-allowed;
|
|
97
|
+
}
|
|
98
|
+
${value} {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: flex-end;
|
|
102
|
+
grid-column: 2;
|
|
103
|
+
grid-row: 1;
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
height: ${uiTokens.controlHeight};
|
|
106
|
+
margin: 0;
|
|
107
|
+
padding: 0;
|
|
108
|
+
min-width: 2.5ch;
|
|
109
|
+
color: ${uiTokens.mutedForeground};
|
|
110
|
+
font-variant-numeric: tabular-nums;
|
|
111
|
+
line-height: 1;
|
|
112
|
+
text-align: end;
|
|
113
|
+
}
|
|
114
|
+
@media (prefers-reduced-motion: reduce) {
|
|
115
|
+
${thumb} {
|
|
116
|
+
transition: none;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
@media (forced-colors: active) {
|
|
120
|
+
${track},
|
|
121
|
+
${thumb} {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
${control} {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
appearance: auto;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tableStyles: import("meowcss/meowjsx").CSSFragment;
|