@domicile-desktop/manganese-bar-module-sharing 1.1.1 → 1.2.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/README.md +9 -4
- package/package.json +17 -17
- package/src/Agents.tsx +353 -0
- package/src/Sharing.tsx +49 -31
- package/src/agents-bar-item.tsx +11 -0
- package/styled-system/patterns/aspect-ratio.mjs +2 -2
- package/styled-system/patterns/bleed.mjs +1 -2
- package/styled-system/patterns/float.mjs +5 -11
- package/styled-system/patterns/grid-item.mjs +1 -2
- package/styled-system/patterns/grid.mjs +1 -2
- package/styled-system/patterns/link-overlay.mjs +1 -1
- package/styled-system/patterns/spacer.mjs +3 -3
- package/styled-system/patterns/visually-hidden.mjs +1 -1
- package/styled-system/tokens/index.mjs +7 -3
- package/styled-system/tokens/tokens.d.ts +2 -2
- package/styled-system/types/prop-type.d.ts +2 -2
package/README.md
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
# @domicile-desktop/manganese-bar-module-sharing
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Manganese bar items: the screen-sharing indicator, and the agents in control.
|
|
4
4
|
|
|
5
5
|
## Use
|
|
6
6
|
|
|
7
|
-
Put `<Sharing />` in a column of
|
|
7
|
+
Put `<Sharing />` and `<Agents />` in a column of
|
|
8
8
|
[`runManganese`](../shell-manganese/README.md)'s `bar`:
|
|
9
9
|
|
|
10
10
|
```tsx
|
|
11
11
|
import { runManganese } from "@domicile-desktop/manganese";
|
|
12
12
|
import { Sharing } from "@domicile-desktop/manganese-bar-module-sharing";
|
|
13
|
+
import { Agents } from "@domicile-desktop/manganese-bar-module-sharing/agents";
|
|
13
14
|
|
|
14
15
|
export const Shell = runManganese({
|
|
15
|
-
bar: {
|
|
16
|
+
bar: {
|
|
17
|
+
center: [],
|
|
18
|
+
left: [],
|
|
19
|
+
right: [<Sharing key="sharing" />, <Agents key="agents" />],
|
|
20
|
+
},
|
|
16
21
|
});
|
|
17
22
|
```
|
|
18
23
|
|
|
19
|
-
|
|
24
|
+
Each takes no props. It reads `useDomicile()`. See
|
|
20
25
|
[TOP-BAR.md](../shell-manganese/docs/TOP-BAR.md).
|
|
21
26
|
|
|
22
27
|
## Test
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@domicile-desktop/component-library": "2.0
|
|
4
|
-
"@domicile-desktop/manganese-host": "2.0.
|
|
5
|
-
"@domicile-desktop/react": "0.
|
|
6
|
-
"@domicile-desktop/sdk": "
|
|
7
|
-
"@pandacss/dev": "^1.12.
|
|
3
|
+
"@domicile-desktop/component-library": "2.2.0",
|
|
4
|
+
"@domicile-desktop/manganese-host": "2.0.3",
|
|
5
|
+
"@domicile-desktop/react": "0.2.0",
|
|
6
|
+
"@domicile-desktop/sdk": "3.0.0",
|
|
7
|
+
"@pandacss/dev": "^1.12.2",
|
|
8
8
|
"@phosphor-icons/react": "^2.1.10",
|
|
9
|
-
"react": "^19.
|
|
9
|
+
"react": "^19.3.1"
|
|
10
10
|
},
|
|
11
11
|
"description": "A manganese bar item: the screen-sharing indicator.",
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@cprussin/tsconfig": "^5.0.0",
|
|
14
|
-
"@domicile-desktop/system-apps": "1.
|
|
14
|
+
"@domicile-desktop/system-apps": "1.3.0",
|
|
15
15
|
"@domicile-desktop/test-support": "0.0.2",
|
|
16
|
-
"@pandacss/preset-panda": "^1.12.
|
|
16
|
+
"@pandacss/preset-panda": "^1.12.2",
|
|
17
17
|
"@testing-library/react": "^16.3.3",
|
|
18
|
-
"@testing-library/user-event": "^14.6.
|
|
19
|
-
"@types/bun": "^1.4.
|
|
20
|
-
"@types/react": "^19.
|
|
21
|
-
"@types/react-dom": "^19.
|
|
22
|
-
"postcss": "^8.5.
|
|
18
|
+
"@testing-library/user-event": "^14.6.10",
|
|
19
|
+
"@types/bun": "^1.4.4",
|
|
20
|
+
"@types/react": "^19.3.0",
|
|
21
|
+
"@types/react-dom": "^19.3.0",
|
|
22
|
+
"postcss": "^8.5.32",
|
|
23
23
|
"typescript": "^7.0.2"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
|
-
"bun": ">=1.4.2"
|
|
27
|
-
"node": ">=24"
|
|
26
|
+
"bun": ">=1.4.2"
|
|
28
27
|
},
|
|
29
28
|
"exports": {
|
|
30
|
-
".": "./src/bar-item.tsx"
|
|
29
|
+
".": "./src/bar-item.tsx",
|
|
30
|
+
"./agents": "./src/agents-bar-item.tsx"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"src/**",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"test:unit": "bun test"
|
|
53
53
|
},
|
|
54
54
|
"type": "module",
|
|
55
|
-
"version": "1.
|
|
55
|
+
"version": "1.2.0"
|
|
56
56
|
}
|
package/src/Agents.tsx
ADDED
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { Button } from "@domicile-desktop/component-library/Button";
|
|
2
|
+
import { Popover } from "@domicile-desktop/component-library/Popover";
|
|
3
|
+
import type { Portals } from "@domicile-desktop/sdk/desktop/portals";
|
|
4
|
+
import type { Capturing } from "@domicile-desktop/sdk/portal";
|
|
5
|
+
import { CapturingKind } from "@domicile-desktop/sdk/portal";
|
|
6
|
+
import { RobotIcon } from "@phosphor-icons/react/dist/ssr/Robot";
|
|
7
|
+
import { SlidersHorizontalIcon } from "@phosphor-icons/react/dist/ssr/SlidersHorizontal";
|
|
8
|
+
import { StopIcon } from "@phosphor-icons/react/dist/ssr/Stop";
|
|
9
|
+
import { useEffect, useState } from "react";
|
|
10
|
+
|
|
11
|
+
import { css } from "../styled-system/css";
|
|
12
|
+
import { center, flex, hstack } from "../styled-system/patterns";
|
|
13
|
+
|
|
14
|
+
/** An agent the user let in. */
|
|
15
|
+
export type Agent = Extract<Capturing, { kind: CapturingKind.Agent }>;
|
|
16
|
+
|
|
17
|
+
const LIST = new Intl.ListFormat("en", { type: "conjunction" });
|
|
18
|
+
|
|
19
|
+
const MINUTE_MS = 60 * 1000;
|
|
20
|
+
const HOUR_MS = 60 * MINUTE_MS;
|
|
21
|
+
|
|
22
|
+
/** How often "1 min ago" moves on while the panel is open. */
|
|
23
|
+
const TICK_MS = 15 * 1000;
|
|
24
|
+
|
|
25
|
+
/** What the agents item reads: the agents in control. */
|
|
26
|
+
export type AgentsDesktop = {
|
|
27
|
+
readonly portals: Pick<
|
|
28
|
+
Portals,
|
|
29
|
+
"capturing" | "changeAgent" | "on" | "stopCapturing"
|
|
30
|
+
>;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Top bar agents item: one violet pill for every agent session in control,
|
|
35
|
+
* such as Claude Code, named as the agent names itself. Its panel says what
|
|
36
|
+
* each session can reach and did last, with buttons that change what it
|
|
37
|
+
* reaches and stop it.
|
|
38
|
+
*/
|
|
39
|
+
export const Agents = ({ domicile }: { domicile: AgentsDesktop }) => {
|
|
40
|
+
const [agents, setAgents] = useState<readonly Agent[]>([]);
|
|
41
|
+
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
const { portals } = domicile;
|
|
44
|
+
const heard = () => {
|
|
45
|
+
setAgents(
|
|
46
|
+
(portals.capturing ?? []).filter((session) => isAgent(session)),
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
heard();
|
|
50
|
+
return portals.on("change", heard);
|
|
51
|
+
}, [domicile]);
|
|
52
|
+
|
|
53
|
+
const [first, ...rest] = agents;
|
|
54
|
+
// Nothing at all when none is in, so the bar closes the item.
|
|
55
|
+
return first === undefined ? undefined : (
|
|
56
|
+
<Pill
|
|
57
|
+
agents={[first, ...rest]}
|
|
58
|
+
change={(agent) => {
|
|
59
|
+
domicile.portals.changeAgent(agent.id);
|
|
60
|
+
}}
|
|
61
|
+
stop={(agent) => {
|
|
62
|
+
domicile.portals.stopCapturing(agent.id);
|
|
63
|
+
}}
|
|
64
|
+
/>
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** The agent sessions in control, never none. */
|
|
69
|
+
type Sessions = readonly [Agent, ...Agent[]];
|
|
70
|
+
|
|
71
|
+
type Controls = {
|
|
72
|
+
change: (agent: Agent) => void;
|
|
73
|
+
stop: (agent: Agent) => void;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** The one pill, and its panel. */
|
|
77
|
+
const Pill = ({ agents, change, stop }: Controls & { agents: Sessions }) => {
|
|
78
|
+
const [first] = agents;
|
|
79
|
+
const names = new Set(agents.map((agent) => agent.agent));
|
|
80
|
+
const label = names.size === 1 ? first.agent : "Agents";
|
|
81
|
+
const several = agents.length > 1 ? sessionsName(agents, names) : undefined;
|
|
82
|
+
return (
|
|
83
|
+
<Popover
|
|
84
|
+
align="center"
|
|
85
|
+
side="bottom"
|
|
86
|
+
tone="overPhoto"
|
|
87
|
+
tooltip={
|
|
88
|
+
several === undefined
|
|
89
|
+
? `${first.agent} can see and use ${reach(first)}`
|
|
90
|
+
: `${several} are in control`
|
|
91
|
+
}
|
|
92
|
+
trigger={
|
|
93
|
+
<button aria-label={several} className={triggerStyles} type="button">
|
|
94
|
+
<RobotIcon aria-hidden size={15} weight="bold" />
|
|
95
|
+
{label}
|
|
96
|
+
{several !== undefined && (
|
|
97
|
+
<span className={countStyles}>{agents.length}</span>
|
|
98
|
+
)}
|
|
99
|
+
</button>
|
|
100
|
+
}
|
|
101
|
+
>
|
|
102
|
+
{several === undefined ? (
|
|
103
|
+
<Panel agent={first} change={change} stop={stop} />
|
|
104
|
+
) : (
|
|
105
|
+
<SessionsPanel
|
|
106
|
+
agents={agents}
|
|
107
|
+
change={change}
|
|
108
|
+
stop={stop}
|
|
109
|
+
title={`${several} are in control`}
|
|
110
|
+
/>
|
|
111
|
+
)}
|
|
112
|
+
</Popover>
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/** One session's panel. */
|
|
117
|
+
const Panel = ({ agent, change, stop }: Controls & { agent: Agent }) => {
|
|
118
|
+
const now = useNow();
|
|
119
|
+
return (
|
|
120
|
+
<div className={panelStyles}>
|
|
121
|
+
<span className={headStyles}>
|
|
122
|
+
<strong>{`${agent.agent} is in control`}</strong>
|
|
123
|
+
<span className={detailStyles}>
|
|
124
|
+
{`It can see and use ${reach(agent)}.`}
|
|
125
|
+
</span>
|
|
126
|
+
</span>
|
|
127
|
+
<Actions agent={agent} now={now} />
|
|
128
|
+
<Buttons agent={agent} change={change} stop={stop} />
|
|
129
|
+
</div>
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/** Several sessions' panel: each with its own buttons, then Stop all. */
|
|
134
|
+
const SessionsPanel = ({
|
|
135
|
+
agents,
|
|
136
|
+
change,
|
|
137
|
+
stop,
|
|
138
|
+
title,
|
|
139
|
+
}: Controls & { agents: Sessions; title: string }) => {
|
|
140
|
+
const now = useNow();
|
|
141
|
+
return (
|
|
142
|
+
<div className={panelStyles}>
|
|
143
|
+
<strong>{title}</strong>
|
|
144
|
+
{agents.map((agent) => (
|
|
145
|
+
<section
|
|
146
|
+
aria-label={agent.agent}
|
|
147
|
+
className={sessionStyles}
|
|
148
|
+
key={agent.id}
|
|
149
|
+
>
|
|
150
|
+
<span className={headStyles}>
|
|
151
|
+
<strong>{agent.agent}</strong>
|
|
152
|
+
<span className={detailStyles}>
|
|
153
|
+
{`Can see and use ${reach(agent)}.`}
|
|
154
|
+
</span>
|
|
155
|
+
</span>
|
|
156
|
+
<Actions agent={agent} now={now} />
|
|
157
|
+
<Buttons agent={agent} change={change} quiet stop={stop} />
|
|
158
|
+
</section>
|
|
159
|
+
))}
|
|
160
|
+
<span className={buttonsStyles}>
|
|
161
|
+
<Button
|
|
162
|
+
beforeIcon={<StopIcon aria-hidden weight="fill" />}
|
|
163
|
+
onClick={() => {
|
|
164
|
+
for (const agent of agents) {
|
|
165
|
+
stop(agent);
|
|
166
|
+
}
|
|
167
|
+
}}
|
|
168
|
+
size="sm"
|
|
169
|
+
variant="danger"
|
|
170
|
+
>
|
|
171
|
+
Stop all
|
|
172
|
+
</Button>
|
|
173
|
+
</span>
|
|
174
|
+
</div>
|
|
175
|
+
);
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/** What `agent` did last, if anything. */
|
|
179
|
+
const Actions = ({ agent, now }: { agent: Agent; now: number }) =>
|
|
180
|
+
agent.actions.length > 0 && (
|
|
181
|
+
<ul aria-label={`What ${agent.agent} did`} className={actionsStyles}>
|
|
182
|
+
{agent.actions.map((action) => (
|
|
183
|
+
<li
|
|
184
|
+
className={actionStyles}
|
|
185
|
+
key={`${String(action.atMs)}:${action.said}`}
|
|
186
|
+
>
|
|
187
|
+
<span className={saidStyles}>{action.said}</span>
|
|
188
|
+
<time
|
|
189
|
+
className={whenStyles}
|
|
190
|
+
dateTime={new Date(action.atMs).toISOString()}
|
|
191
|
+
>
|
|
192
|
+
{ago(action.atMs, now)}
|
|
193
|
+
</time>
|
|
194
|
+
</li>
|
|
195
|
+
))}
|
|
196
|
+
</ul>
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
/** Change and Stop; `quiet` draws Stop without a fill, for one among several. */
|
|
200
|
+
const Buttons = ({
|
|
201
|
+
agent,
|
|
202
|
+
change,
|
|
203
|
+
quiet = false,
|
|
204
|
+
stop,
|
|
205
|
+
}: Controls & { agent: Agent; quiet?: boolean }) => (
|
|
206
|
+
<span className={buttonsStyles}>
|
|
207
|
+
<Button
|
|
208
|
+
beforeIcon={<SlidersHorizontalIcon aria-hidden />}
|
|
209
|
+
onClick={() => {
|
|
210
|
+
change(agent);
|
|
211
|
+
}}
|
|
212
|
+
size="sm"
|
|
213
|
+
variant="outline"
|
|
214
|
+
>
|
|
215
|
+
Change
|
|
216
|
+
</Button>
|
|
217
|
+
<Button
|
|
218
|
+
beforeIcon={<StopIcon aria-hidden weight="fill" />}
|
|
219
|
+
onClick={() => {
|
|
220
|
+
stop(agent);
|
|
221
|
+
}}
|
|
222
|
+
size="sm"
|
|
223
|
+
variant={quiet ? "dangerGhost" : "danger"}
|
|
224
|
+
>
|
|
225
|
+
Stop
|
|
226
|
+
</Button>
|
|
227
|
+
</span>
|
|
228
|
+
);
|
|
229
|
+
|
|
230
|
+
/** Several sessions, named once: "2 Claude Code sessions" or "3 agents". */
|
|
231
|
+
const sessionsName = (agents: Sessions, names: ReadonlySet<string>): string =>
|
|
232
|
+
names.size === 1
|
|
233
|
+
? `${String(agents.length)} ${agents[0].agent} sessions`
|
|
234
|
+
: `${String(agents.length)} agents`;
|
|
235
|
+
|
|
236
|
+
const isAgent = (session: Capturing): session is Agent =>
|
|
237
|
+
session.kind === CapturingKind.Agent;
|
|
238
|
+
|
|
239
|
+
/** What an agent reaches, after "can see and use". */
|
|
240
|
+
const reach = (agent: Agent): string =>
|
|
241
|
+
agent.reach.kind === "desk"
|
|
242
|
+
? "your whole desktop"
|
|
243
|
+
: LIST.format(
|
|
244
|
+
agent.reach.windows.map((window) =>
|
|
245
|
+
window.title === "" ? "an untitled window" : window.title,
|
|
246
|
+
),
|
|
247
|
+
);
|
|
248
|
+
|
|
249
|
+
/** How long ago `time` was at `now`, both epoch milliseconds. */
|
|
250
|
+
export const ago = (time: number, now: number): string => {
|
|
251
|
+
const since = now - time;
|
|
252
|
+
if (since < MINUTE_MS) {
|
|
253
|
+
return "just now";
|
|
254
|
+
} else if (since < HOUR_MS) {
|
|
255
|
+
return `${String(Math.floor(since / MINUTE_MS))} min ago`;
|
|
256
|
+
} else {
|
|
257
|
+
return `${String(Math.floor(since / HOUR_MS))} hr ago`;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
/** The time now, moving on every {@link TICK_MS}. */
|
|
262
|
+
const useNow = (): number => {
|
|
263
|
+
const [now, setNow] = useState(Date.now);
|
|
264
|
+
useEffect(() => {
|
|
265
|
+
const ticking = setInterval(() => {
|
|
266
|
+
setNow(Date.now());
|
|
267
|
+
}, TICK_MS);
|
|
268
|
+
return () => {
|
|
269
|
+
clearInterval(ticking);
|
|
270
|
+
};
|
|
271
|
+
}, []);
|
|
272
|
+
return now;
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
// Violet, so it reads apart from the red sharing pill.
|
|
276
|
+
const triggerStyles = hstack({
|
|
277
|
+
_hover: {
|
|
278
|
+
backgroundColor: "color-mix(in oklab, {colors.violet.600} 85%, black)",
|
|
279
|
+
},
|
|
280
|
+
backgroundColor: "violet.600",
|
|
281
|
+
blockSize: 6,
|
|
282
|
+
borderRadius: "lg",
|
|
283
|
+
borderStyle: "none",
|
|
284
|
+
color: "onPhoto",
|
|
285
|
+
cursor: "pointer",
|
|
286
|
+
flexShrink: 0,
|
|
287
|
+
fontSize: "sm",
|
|
288
|
+
fontWeight: "semibold",
|
|
289
|
+
gap: 1.5,
|
|
290
|
+
paddingInline: 2.5,
|
|
291
|
+
textShadow: "none",
|
|
292
|
+
transition: "background-color {durations.fast} {easings.default}",
|
|
293
|
+
whiteSpace: "nowrap",
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
// How many sessions, on the pill.
|
|
297
|
+
const countStyles = center({
|
|
298
|
+
backgroundColor: "color-mix(in oklab, currentcolor 24%, transparent)",
|
|
299
|
+
blockSize: 4,
|
|
300
|
+
borderRadius: "full",
|
|
301
|
+
fontSize: "xs",
|
|
302
|
+
inline: true,
|
|
303
|
+
minInlineSize: 4,
|
|
304
|
+
paddingInline: 1,
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
const panelStyles = flex({
|
|
308
|
+
direction: "column",
|
|
309
|
+
gap: 3,
|
|
310
|
+
inlineSize: 72,
|
|
311
|
+
paddingBlock: 1.5,
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
const headStyles = flex({ direction: "column", gap: 0.5 });
|
|
315
|
+
|
|
316
|
+
// A rule above each session, so they read apart.
|
|
317
|
+
const sessionStyles = flex({
|
|
318
|
+
borderBlockStart:
|
|
319
|
+
"1px solid color-mix(in oklab, currentcolor 15%, transparent)",
|
|
320
|
+
direction: "column",
|
|
321
|
+
gap: 3,
|
|
322
|
+
paddingBlockStart: 3,
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
// At the panel's end, sized to their labels.
|
|
326
|
+
const buttonsStyles = hstack({ gap: 2, justifyContent: "flex-end" });
|
|
327
|
+
|
|
328
|
+
const detailStyles = css({ fontSize: "xs", opacity: 0.75 });
|
|
329
|
+
|
|
330
|
+
const actionsStyles = flex({
|
|
331
|
+
backgroundColor: "color-mix(in oklab, currentcolor 8%, transparent)",
|
|
332
|
+
borderRadius: "lg",
|
|
333
|
+
direction: "column",
|
|
334
|
+
listStyle: "none",
|
|
335
|
+
margin: 0,
|
|
336
|
+
padding: 1,
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
const actionStyles = hstack({
|
|
340
|
+
fontSize: "sm",
|
|
341
|
+
gap: 3,
|
|
342
|
+
justifyContent: "space-between",
|
|
343
|
+
padding: 1.5,
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
const saidStyles = css({
|
|
347
|
+
minInlineSize: 0,
|
|
348
|
+
overflow: "hidden",
|
|
349
|
+
textOverflow: "ellipsis",
|
|
350
|
+
whiteSpace: "nowrap",
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
const whenStyles = css({ flexShrink: 0, fontSize: "xs", opacity: 0.75 });
|
package/src/Sharing.tsx
CHANGED
|
@@ -15,7 +15,6 @@ import { SelectionIcon } from "@phosphor-icons/react/dist/ssr/Selection";
|
|
|
15
15
|
import { SquaresFourIcon } from "@phosphor-icons/react/dist/ssr/SquaresFour";
|
|
16
16
|
import { StopIcon } from "@phosphor-icons/react/dist/ssr/Stop";
|
|
17
17
|
import { useEffect, useState } from "react";
|
|
18
|
-
|
|
19
18
|
import { css } from "../styled-system/css";
|
|
20
19
|
import { center, flex, hstack } from "../styled-system/patterns";
|
|
21
20
|
|
|
@@ -35,8 +34,8 @@ type ScreenCast = Extract<Capturing, { kind: CapturingKind.ScreenCast }>;
|
|
|
35
34
|
/**
|
|
36
35
|
* Top bar sharing indicator: a red pill naming what is shared, shown while an
|
|
37
36
|
* application records the desktop through the ScreenCast portal. Its panel
|
|
38
|
-
* lists each application, what it records and a button that stops it.
|
|
39
|
-
*
|
|
37
|
+
* lists each application, what it records and a button that stops it. Agents
|
|
38
|
+
* are `<Agents />`'s, and input sessions `<PortalDialogs />`'s.
|
|
40
39
|
*/
|
|
41
40
|
export const Sharing = ({ domicile }: Props) => {
|
|
42
41
|
const [capturing, setCapturing] = useState<readonly ScreenCast[]>([]);
|
|
@@ -56,36 +55,55 @@ export const Sharing = ({ domicile }: Props) => {
|
|
|
56
55
|
return portals.on("change", heard);
|
|
57
56
|
}, [domicile]);
|
|
58
57
|
|
|
59
|
-
return capturing.length
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
{`Sharing ${what(capturing.flatMap(({ sources }) => sources))}`}
|
|
69
|
-
</button>
|
|
70
|
-
}
|
|
71
|
-
>
|
|
72
|
-
<div className={panelStyles}>
|
|
73
|
-
{capturing.map((capture) => (
|
|
74
|
-
<Session
|
|
75
|
-
app={apps(capture.appId)}
|
|
76
|
-
apps={apps}
|
|
77
|
-
capture={capture}
|
|
78
|
-
key={capture.id}
|
|
79
|
-
stop={() => {
|
|
80
|
-
domicile.portals.stopCapturing(capture.id);
|
|
81
|
-
}}
|
|
82
|
-
/>
|
|
83
|
-
))}
|
|
84
|
-
</div>
|
|
85
|
-
</Popover>
|
|
86
|
-
);
|
|
58
|
+
return capturing.length > 0 ? (
|
|
59
|
+
<Casts
|
|
60
|
+
apps={apps}
|
|
61
|
+
capturing={capturing}
|
|
62
|
+
stop={(id) => {
|
|
63
|
+
domicile.portals.stopCapturing(id);
|
|
64
|
+
}}
|
|
65
|
+
/>
|
|
66
|
+
) : undefined;
|
|
87
67
|
};
|
|
88
68
|
|
|
69
|
+
/** The red pill, and its panel of each application's cast. */
|
|
70
|
+
const Casts = ({
|
|
71
|
+
apps,
|
|
72
|
+
capturing,
|
|
73
|
+
stop,
|
|
74
|
+
}: {
|
|
75
|
+
apps: (appId: string) => App;
|
|
76
|
+
capturing: readonly ScreenCast[];
|
|
77
|
+
stop: (id: number) => void;
|
|
78
|
+
}) => (
|
|
79
|
+
<Popover
|
|
80
|
+
align="center"
|
|
81
|
+
side="bottom"
|
|
82
|
+
tone="overPhoto"
|
|
83
|
+
tooltip={who(apps, capturing)}
|
|
84
|
+
trigger={
|
|
85
|
+
<button className={triggerStyles} type="button">
|
|
86
|
+
<ScreencastIcon aria-hidden size={15} weight="bold" />
|
|
87
|
+
{`Sharing ${what(capturing.flatMap(({ sources }) => sources))}`}
|
|
88
|
+
</button>
|
|
89
|
+
}
|
|
90
|
+
>
|
|
91
|
+
<div className={panelStyles}>
|
|
92
|
+
{capturing.map((capture) => (
|
|
93
|
+
<Session
|
|
94
|
+
app={apps(capture.appId)}
|
|
95
|
+
apps={apps}
|
|
96
|
+
capture={capture}
|
|
97
|
+
key={capture.id}
|
|
98
|
+
stop={() => {
|
|
99
|
+
stop(capture.id);
|
|
100
|
+
}}
|
|
101
|
+
/>
|
|
102
|
+
))}
|
|
103
|
+
</div>
|
|
104
|
+
</Popover>
|
|
105
|
+
);
|
|
106
|
+
|
|
89
107
|
/** One application's cast: who, each source it records, and a stop button. */
|
|
90
108
|
const Session = ({
|
|
91
109
|
app,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useDomicile } from "@domicile-desktop/react/domicile-provider";
|
|
2
|
+
import { Agents as Pills } from "./Agents";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Shown while an agent is in control: one pill for every session, with what
|
|
6
|
+
* each reaches and did last, and buttons to change what it reaches and stop it.
|
|
7
|
+
*/
|
|
8
|
+
export const Agents = () => {
|
|
9
|
+
const domicile = useDomicile();
|
|
10
|
+
return <Pills domicile={domicile} />;
|
|
11
|
+
};
|
|
@@ -3,11 +3,11 @@ import { css } from '../css/index.mjs';
|
|
|
3
3
|
|
|
4
4
|
const aspectRatioConfig = {
|
|
5
5
|
transform(props, { map }) {
|
|
6
|
-
const { ratio =
|
|
6
|
+
const { ratio = 1.3333333333333333, ...rest } = props;
|
|
7
7
|
return {
|
|
8
8
|
position: "relative",
|
|
9
9
|
_before: {
|
|
10
|
-
content:
|
|
10
|
+
content: '""',
|
|
11
11
|
display: "block",
|
|
12
12
|
height: "0",
|
|
13
13
|
paddingBottom: map(ratio, (r) => `${1 / r * 100}%`)
|
|
@@ -3,8 +3,7 @@ import { css } from '../css/index.mjs';
|
|
|
3
3
|
|
|
4
4
|
const bleedConfig = {
|
|
5
5
|
transform(props, { map, isCssUnit, isCssVar }) {
|
|
6
|
-
const { inline, block, ...rest } = props
|
|
7
|
-
const valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
|
|
6
|
+
const { inline, block, ...rest } = props, valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
|
|
8
7
|
return {
|
|
9
8
|
"--bleed-x": map(inline, valueFn),
|
|
10
9
|
"--bleed-y": map(block, valueFn),
|
|
@@ -11,28 +11,22 @@ transform(props, { map }) {
|
|
|
11
11
|
position: "absolute",
|
|
12
12
|
insetBlockStart: map(placement, (v) => {
|
|
13
13
|
const [side] = v.split("-");
|
|
14
|
-
|
|
15
|
-
return map2[side];
|
|
14
|
+
return { top: offsetY, middle: "50%", bottom: "auto" }[side];
|
|
16
15
|
}),
|
|
17
16
|
insetBlockEnd: map(placement, (v) => {
|
|
18
17
|
const [side] = v.split("-");
|
|
19
|
-
|
|
20
|
-
return map2[side];
|
|
18
|
+
return { top: "auto", middle: "50%", bottom: offsetY }[side];
|
|
21
19
|
}),
|
|
22
20
|
insetInlineStart: map(placement, (v) => {
|
|
23
21
|
const [, align] = v.split("-");
|
|
24
|
-
|
|
25
|
-
return map2[align];
|
|
22
|
+
return { start: offsetX, center: "50%", end: "auto" }[align];
|
|
26
23
|
}),
|
|
27
24
|
insetInlineEnd: map(placement, (v) => {
|
|
28
25
|
const [, align] = v.split("-");
|
|
29
|
-
|
|
30
|
-
return map2[align];
|
|
26
|
+
return { start: "auto", center: "50%", end: offsetX }[align];
|
|
31
27
|
}),
|
|
32
28
|
translate: map(placement, (v) => {
|
|
33
|
-
const [side, align] = v.split("-");
|
|
34
|
-
const mapX = { start: "-50%", center: "-50%", end: "50%" };
|
|
35
|
-
const mapY = { top: "-50%", middle: "-50%", bottom: "50%" };
|
|
29
|
+
const [side, align] = v.split("-"), mapX = { start: "-50%", center: "-50%", end: "50%" }, mapY = { top: "-50%", middle: "-50%", bottom: "50%" };
|
|
36
30
|
return `${mapX[align]} ${mapY[side]}`;
|
|
37
31
|
}),
|
|
38
32
|
...rest
|
|
@@ -3,8 +3,7 @@ import { css } from '../css/index.mjs';
|
|
|
3
3
|
|
|
4
4
|
const gridItemConfig = {
|
|
5
5
|
transform(props, { map }) {
|
|
6
|
-
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props
|
|
7
|
-
const spanFn = (v) => v === "auto" ? v : `span ${v}`;
|
|
6
|
+
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props, spanFn = (v) => v === "auto" ? v : `span ${v}`;
|
|
8
7
|
return {
|
|
9
8
|
gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
|
|
10
9
|
gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
|
|
@@ -3,8 +3,7 @@ import { css } from '../css/index.mjs';
|
|
|
3
3
|
|
|
4
4
|
const gridConfig = {
|
|
5
5
|
transform(props, { map, isCssUnit }) {
|
|
6
|
-
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props
|
|
7
|
-
const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
|
|
6
|
+
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props, getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
|
|
8
7
|
return {
|
|
9
8
|
display: "grid",
|
|
10
9
|
gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
|
|
@@ -8,9 +8,9 @@ transform(props, { map, isCssUnit, isCssVar }) {
|
|
|
8
8
|
alignSelf: "stretch",
|
|
9
9
|
justifySelf: "stretch",
|
|
10
10
|
flex: map(size, (v) => {
|
|
11
|
-
if (v == null)
|
|
12
|
-
|
|
13
|
-
return `0 0 ${
|
|
11
|
+
if (v == null)
|
|
12
|
+
return "1";
|
|
13
|
+
return `0 0 ${isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`}`;
|
|
14
14
|
}),
|
|
15
15
|
...rest
|
|
16
16
|
};
|
|
@@ -33504,15 +33504,15 @@ const tokens = {
|
|
|
33504
33504
|
"variable": "var(--jRjWKm)"
|
|
33505
33505
|
},
|
|
33506
33506
|
"zIndex.lock": {
|
|
33507
|
-
"value": "
|
|
33507
|
+
"value": "2147483647",
|
|
33508
33508
|
"variable": "var(--fkMZTt)"
|
|
33509
33509
|
},
|
|
33510
33510
|
"zIndex.modal": {
|
|
33511
|
-
"value": "
|
|
33511
|
+
"value": "2147483646",
|
|
33512
33512
|
"variable": "var(--dIktSh)"
|
|
33513
33513
|
},
|
|
33514
33514
|
"zIndex.modalBackdrop": {
|
|
33515
|
-
"value": "
|
|
33515
|
+
"value": "2147483645",
|
|
33516
33516
|
"variable": "var(--jXaBXH)"
|
|
33517
33517
|
},
|
|
33518
33518
|
"zIndex.toast": {
|
|
@@ -33595,6 +33595,10 @@ const tokens = {
|
|
|
33595
33595
|
"value": "var(--dIlxIZ)",
|
|
33596
33596
|
"variable": "var(--dIlxIZ)"
|
|
33597
33597
|
},
|
|
33598
|
+
"colors.onDanger": {
|
|
33599
|
+
"value": "white",
|
|
33600
|
+
"variable": "var(--hgeHO)"
|
|
33601
|
+
},
|
|
33598
33602
|
"colors.onPhoto": {
|
|
33599
33603
|
"value": "white",
|
|
33600
33604
|
"variable": "var(--cFzlNp)"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
export type Token = `aspectRatios.${AspectRatioToken}` | `borders.${BorderToken}` | `radii.${RadiusToken}` | `fontWeights.${FontWeightToken}` | `lineHeights.${LineHeightToken}` | `letterSpacings.${LetterSpacingToken}` | `shadows.${ShadowToken}` | `colors.${ColorToken}` | `blurs.${BlurToken}` | `animations.${AnimationToken}` | `borderWidths.${BorderWidthToken}` | `durations.${DurationToken}` | `easings.${EasingToken}` | `fontSizes.${FontSizeToken}` | `fonts.${FontToken}` | `gradients.${GradientToken}` | `opacity.${OpacityToken}` | `sizes.${SizeToken}` | `spacing.${SpacingToken}` | `zIndex.${ZIndexToken}` | `breakpoints.${BreakpointToken}`
|
|
3
3
|
|
|
4
|
-
export type ColorPalette = "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "gray" | "slate" | "accent" | "backdrop" | "background" | "border" | "borderStrong" | "card" | "danger" | "dangerSoft" | "divider" | "fill" | "fillHover" | "fillOverPhoto" | "foreground" | "muted" | "onPhoto" | "panelOverPhoto" | "private" | "skeleton" | "success" | "textFaint" | "textSoft" | "warning"
|
|
4
|
+
export type ColorPalette = "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "gray" | "slate" | "accent" | "backdrop" | "background" | "border" | "borderStrong" | "card" | "danger" | "dangerSoft" | "divider" | "fill" | "fillHover" | "fillOverPhoto" | "foreground" | "muted" | "onDanger" | "onPhoto" | "panelOverPhoto" | "private" | "skeleton" | "success" | "textFaint" | "textSoft" | "warning"
|
|
5
5
|
|
|
6
6
|
export type AspectRatioToken = "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden"
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ export type LetterSpacingToken = "tighter" | "tight" | "normal" | "wide" | "wide
|
|
|
17
17
|
|
|
18
18
|
export type ShadowToken = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "inset-2xs" | "inset-xs" | "inset-sm" | "lifted" | "modal" | "textOverPhoto"
|
|
19
19
|
|
|
20
|
-
export type ColorToken = "current" | "black" | "white" | "transparent" | "rose.50" | "rose.100" | "rose.200" | "rose.300" | "rose.400" | "rose.500" | "rose.600" | "rose.700" | "rose.800" | "rose.900" | "rose.950" | "pink.50" | "pink.100" | "pink.200" | "pink.300" | "pink.400" | "pink.500" | "pink.600" | "pink.700" | "pink.800" | "pink.900" | "pink.950" | "fuchsia.50" | "fuchsia.100" | "fuchsia.200" | "fuchsia.300" | "fuchsia.400" | "fuchsia.500" | "fuchsia.600" | "fuchsia.700" | "fuchsia.800" | "fuchsia.900" | "fuchsia.950" | "purple.50" | "purple.100" | "purple.200" | "purple.300" | "purple.400" | "purple.500" | "purple.600" | "purple.700" | "purple.800" | "purple.900" | "purple.950" | "violet.50" | "violet.100" | "violet.200" | "violet.300" | "violet.400" | "violet.500" | "violet.600" | "violet.700" | "violet.800" | "violet.900" | "violet.950" | "indigo.50" | "indigo.100" | "indigo.200" | "indigo.300" | "indigo.400" | "indigo.500" | "indigo.600" | "indigo.700" | "indigo.800" | "indigo.900" | "indigo.950" | "blue.50" | "blue.100" | "blue.200" | "blue.300" | "blue.400" | "blue.500" | "blue.600" | "blue.700" | "blue.800" | "blue.900" | "blue.950" | "sky.50" | "sky.100" | "sky.200" | "sky.300" | "sky.400" | "sky.500" | "sky.600" | "sky.700" | "sky.800" | "sky.900" | "sky.950" | "cyan.50" | "cyan.100" | "cyan.200" | "cyan.300" | "cyan.400" | "cyan.500" | "cyan.600" | "cyan.700" | "cyan.800" | "cyan.900" | "cyan.950" | "teal.50" | "teal.100" | "teal.200" | "teal.300" | "teal.400" | "teal.500" | "teal.600" | "teal.700" | "teal.800" | "teal.900" | "teal.950" | "emerald.50" | "emerald.100" | "emerald.200" | "emerald.300" | "emerald.400" | "emerald.500" | "emerald.600" | "emerald.700" | "emerald.800" | "emerald.900" | "emerald.950" | "green.50" | "green.100" | "green.200" | "green.300" | "green.400" | "green.500" | "green.600" | "green.700" | "green.800" | "green.900" | "green.950" | "lime.50" | "lime.100" | "lime.200" | "lime.300" | "lime.400" | "lime.500" | "lime.600" | "lime.700" | "lime.800" | "lime.900" | "lime.950" | "yellow.50" | "yellow.100" | "yellow.200" | "yellow.300" | "yellow.400" | "yellow.500" | "yellow.600" | "yellow.700" | "yellow.800" | "yellow.900" | "yellow.950" | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | "amber.950" | "orange.50" | "orange.100" | "orange.200" | "orange.300" | "orange.400" | "orange.500" | "orange.600" | "orange.700" | "orange.800" | "orange.900" | "orange.950" | "red.50" | "red.100" | "red.200" | "red.300" | "red.400" | "red.500" | "red.600" | "red.700" | "red.800" | "red.900" | "red.950" | "neutral.50" | "neutral.100" | "neutral.200" | "neutral.300" | "neutral.400" | "neutral.500" | "neutral.600" | "neutral.700" | "neutral.800" | "neutral.900" | "neutral.950" | "stone.50" | "stone.100" | "stone.200" | "stone.300" | "stone.400" | "stone.500" | "stone.600" | "stone.700" | "stone.800" | "stone.900" | "stone.950" | "zinc.50" | "zinc.100" | "zinc.200" | "zinc.300" | "zinc.400" | "zinc.500" | "zinc.600" | "zinc.700" | "zinc.800" | "zinc.900" | "zinc.950" | "gray.50" | "gray.100" | "gray.200" | "gray.300" | "gray.400" | "gray.500" | "gray.600" | "gray.700" | "gray.800" | "gray.900" | "gray.950" | "slate.50" | "slate.100" | "slate.200" | "slate.300" | "slate.400" | "slate.500" | "slate.600" | "slate.700" | "slate.800" | "slate.900" | "slate.950" | "accent" | "backdrop" | "background" | "border" | "borderStrong" | "card" | "danger" | "dangerSoft" | "divider" | "fill" | "fillHover" | "fillOverPhoto" | "foreground" | "muted" | "onPhoto" | "panelOverPhoto" | "private" | "skeleton" | "success" | "textFaint" | "textSoft" | "warning" | "colorPalette" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950"
|
|
20
|
+
export type ColorToken = "current" | "black" | "white" | "transparent" | "rose.50" | "rose.100" | "rose.200" | "rose.300" | "rose.400" | "rose.500" | "rose.600" | "rose.700" | "rose.800" | "rose.900" | "rose.950" | "pink.50" | "pink.100" | "pink.200" | "pink.300" | "pink.400" | "pink.500" | "pink.600" | "pink.700" | "pink.800" | "pink.900" | "pink.950" | "fuchsia.50" | "fuchsia.100" | "fuchsia.200" | "fuchsia.300" | "fuchsia.400" | "fuchsia.500" | "fuchsia.600" | "fuchsia.700" | "fuchsia.800" | "fuchsia.900" | "fuchsia.950" | "purple.50" | "purple.100" | "purple.200" | "purple.300" | "purple.400" | "purple.500" | "purple.600" | "purple.700" | "purple.800" | "purple.900" | "purple.950" | "violet.50" | "violet.100" | "violet.200" | "violet.300" | "violet.400" | "violet.500" | "violet.600" | "violet.700" | "violet.800" | "violet.900" | "violet.950" | "indigo.50" | "indigo.100" | "indigo.200" | "indigo.300" | "indigo.400" | "indigo.500" | "indigo.600" | "indigo.700" | "indigo.800" | "indigo.900" | "indigo.950" | "blue.50" | "blue.100" | "blue.200" | "blue.300" | "blue.400" | "blue.500" | "blue.600" | "blue.700" | "blue.800" | "blue.900" | "blue.950" | "sky.50" | "sky.100" | "sky.200" | "sky.300" | "sky.400" | "sky.500" | "sky.600" | "sky.700" | "sky.800" | "sky.900" | "sky.950" | "cyan.50" | "cyan.100" | "cyan.200" | "cyan.300" | "cyan.400" | "cyan.500" | "cyan.600" | "cyan.700" | "cyan.800" | "cyan.900" | "cyan.950" | "teal.50" | "teal.100" | "teal.200" | "teal.300" | "teal.400" | "teal.500" | "teal.600" | "teal.700" | "teal.800" | "teal.900" | "teal.950" | "emerald.50" | "emerald.100" | "emerald.200" | "emerald.300" | "emerald.400" | "emerald.500" | "emerald.600" | "emerald.700" | "emerald.800" | "emerald.900" | "emerald.950" | "green.50" | "green.100" | "green.200" | "green.300" | "green.400" | "green.500" | "green.600" | "green.700" | "green.800" | "green.900" | "green.950" | "lime.50" | "lime.100" | "lime.200" | "lime.300" | "lime.400" | "lime.500" | "lime.600" | "lime.700" | "lime.800" | "lime.900" | "lime.950" | "yellow.50" | "yellow.100" | "yellow.200" | "yellow.300" | "yellow.400" | "yellow.500" | "yellow.600" | "yellow.700" | "yellow.800" | "yellow.900" | "yellow.950" | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | "amber.950" | "orange.50" | "orange.100" | "orange.200" | "orange.300" | "orange.400" | "orange.500" | "orange.600" | "orange.700" | "orange.800" | "orange.900" | "orange.950" | "red.50" | "red.100" | "red.200" | "red.300" | "red.400" | "red.500" | "red.600" | "red.700" | "red.800" | "red.900" | "red.950" | "neutral.50" | "neutral.100" | "neutral.200" | "neutral.300" | "neutral.400" | "neutral.500" | "neutral.600" | "neutral.700" | "neutral.800" | "neutral.900" | "neutral.950" | "stone.50" | "stone.100" | "stone.200" | "stone.300" | "stone.400" | "stone.500" | "stone.600" | "stone.700" | "stone.800" | "stone.900" | "stone.950" | "zinc.50" | "zinc.100" | "zinc.200" | "zinc.300" | "zinc.400" | "zinc.500" | "zinc.600" | "zinc.700" | "zinc.800" | "zinc.900" | "zinc.950" | "gray.50" | "gray.100" | "gray.200" | "gray.300" | "gray.400" | "gray.500" | "gray.600" | "gray.700" | "gray.800" | "gray.900" | "gray.950" | "slate.50" | "slate.100" | "slate.200" | "slate.300" | "slate.400" | "slate.500" | "slate.600" | "slate.700" | "slate.800" | "slate.900" | "slate.950" | "accent" | "backdrop" | "background" | "border" | "borderStrong" | "card" | "danger" | "dangerSoft" | "divider" | "fill" | "fillHover" | "fillOverPhoto" | "foreground" | "muted" | "onDanger" | "onPhoto" | "panelOverPhoto" | "private" | "skeleton" | "success" | "textFaint" | "textSoft" | "warning" | "colorPalette" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950"
|
|
21
21
|
|
|
22
22
|
export type BlurToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"
|
|
23
23
|
|
|
@@ -169,7 +169,7 @@ export interface UtilityValues {
|
|
|
169
169
|
transitionProperty: "common" | "colors" | "size" | "position" | "background";
|
|
170
170
|
transition: "all" | "common" | "size" | "position" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
171
171
|
animation: Tokens["animations"];
|
|
172
|
-
animationName: "bounce" | "iconArcRipple" | "iconArcSearch" | "iconArmReach" | "iconArmSwing" | "iconArrowWind" | "iconBellClapper" | "iconBellNudge" | "iconBellSwing" | "iconBoltStrike" | "iconBubbleTip" | "iconCapsuleBob" | "iconCheckDraw" | "iconCoreIn" | "iconCoreOut" | "iconDotBlink" | "iconDownloadDrop" | "iconGearTurn" | "iconKeyholePulse" | "iconKeyPress" | "iconLineWrite" | "iconMoonIn" | "iconMoonOut" | "iconMoonRock" | "iconPartSpread" | "iconPupilGlance" | "iconRayIn" | "iconRayOut" | "iconRayPulse" | "iconShackleLift" | "iconShackleShut" | "iconTrayGive" | "iconWavePull" | "iconWavePush" | "levelToastEnter" | "levelToastHold" | "levelToastHoldAgain" | "noticeShown" | "ping" | "pulse" | "spin" | "themeSwipeFromBottom" | "themeSwipeFromTop" | "toastCountdown";
|
|
172
|
+
animationName: "bounce" | "iconArcRipple" | "iconArcSearch" | "iconArmReach" | "iconArmSwing" | "iconArrowWind" | "iconBellClapper" | "iconBellNudge" | "iconBellSwing" | "iconBoltStrike" | "iconBubbleTip" | "iconCapsuleBob" | "iconCheckDraw" | "iconCoreIn" | "iconCoreOut" | "iconDotBlink" | "iconDownloadDrop" | "iconGearTurn" | "iconKeyholePulse" | "iconKeyPress" | "iconLineWrite" | "iconMoonIn" | "iconMoonOut" | "iconMoonRock" | "iconPartSpread" | "iconPupilGlance" | "iconRayIn" | "iconRayOut" | "iconRayPulse" | "iconShackleLift" | "iconShackleShut" | "iconSparkleTwinkle" | "iconSparkleWink" | "iconTrayGive" | "iconWavePull" | "iconWavePush" | "levelToastEnter" | "levelToastHold" | "levelToastHoldAgain" | "noticeShown" | "ping" | "pulse" | "spin" | "themeSwipeFromBottom" | "themeSwipeFromTop" | "toastCountdown";
|
|
173
173
|
animationTimingFunction: Tokens["easings"];
|
|
174
174
|
animationDuration: Tokens["durations"];
|
|
175
175
|
animationDelay: Tokens["durations"];
|
|
@@ -222,7 +222,7 @@ export interface UtilityValues {
|
|
|
222
222
|
srOnly: boolean;
|
|
223
223
|
debug: boolean;
|
|
224
224
|
containerName: CssProperties["containerName"];
|
|
225
|
-
colorPalette: "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "gray" | "slate" | "accent" | "backdrop" | "background" | "border" | "borderStrong" | "card" | "danger" | "dangerSoft" | "divider" | "fill" | "fillHover" | "fillOverPhoto" | "foreground" | "muted" | "onPhoto" | "panelOverPhoto" | "private" | "skeleton" | "success" | "textFaint" | "textSoft" | "warning";
|
|
225
|
+
colorPalette: "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "gray" | "slate" | "accent" | "backdrop" | "background" | "border" | "borderStrong" | "card" | "danger" | "dangerSoft" | "divider" | "fill" | "fillHover" | "fillOverPhoto" | "foreground" | "muted" | "onDanger" | "onPhoto" | "panelOverPhoto" | "private" | "skeleton" | "success" | "textFaint" | "textSoft" | "warning";
|
|
226
226
|
textStyle: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | "panelDetail" | "panelLabel" | "panelOverline" | "panelTitle";
|
|
227
227
|
}
|
|
228
228
|
|