@domicile-desktop/manganese-clipboard 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/package.json +14 -15
- package/src/Clipboard.tsx +98 -11
- 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/package.json
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@domicile-desktop/component-library": "2.0
|
|
4
|
-
"@domicile-desktop/manganese-host": "2.0.
|
|
5
|
-
"@domicile-desktop/sdk": "
|
|
6
|
-
"@pandacss/dev": "^1.12.
|
|
3
|
+
"@domicile-desktop/component-library": "2.2.0",
|
|
4
|
+
"@domicile-desktop/manganese-host": "2.0.3",
|
|
5
|
+
"@domicile-desktop/sdk": "3.0.0",
|
|
6
|
+
"@pandacss/dev": "^1.12.2",
|
|
7
7
|
"@phosphor-icons/react": "^2.1.10",
|
|
8
|
-
"react": "^19.
|
|
8
|
+
"react": "^19.3.1"
|
|
9
9
|
},
|
|
10
10
|
"description": "Manganese's clipboard history panel.",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@cprussin/tsconfig": "^5.0.0",
|
|
13
|
-
"@domicile-desktop/manganese-window-management": "
|
|
13
|
+
"@domicile-desktop/manganese-window-management": "2.0.0",
|
|
14
14
|
"@domicile-desktop/test-support": "0.0.2",
|
|
15
|
-
"@pandacss/preset-panda": "^1.12.
|
|
15
|
+
"@pandacss/preset-panda": "^1.12.2",
|
|
16
16
|
"@testing-library/react": "^16.3.3",
|
|
17
|
-
"@testing-library/user-event": "^14.6.
|
|
18
|
-
"@types/bun": "^1.4.
|
|
19
|
-
"@types/react": "^19.
|
|
20
|
-
"@types/react-dom": "^19.
|
|
21
|
-
"postcss": "^8.5.
|
|
17
|
+
"@testing-library/user-event": "^14.6.10",
|
|
18
|
+
"@types/bun": "^1.4.4",
|
|
19
|
+
"@types/react": "^19.3.0",
|
|
20
|
+
"@types/react-dom": "^19.3.0",
|
|
21
|
+
"postcss": "^8.5.32",
|
|
22
22
|
"typescript": "^7.0.2"
|
|
23
23
|
},
|
|
24
24
|
"engines": {
|
|
25
|
-
"bun": ">=1.4.2"
|
|
26
|
-
"node": ">=24"
|
|
25
|
+
"bun": ">=1.4.2"
|
|
27
26
|
},
|
|
28
27
|
"exports": {
|
|
29
28
|
"./Clipboard": "./src/Clipboard.tsx",
|
|
@@ -52,5 +51,5 @@
|
|
|
52
51
|
"test:unit": "bun test"
|
|
53
52
|
},
|
|
54
53
|
"type": "module",
|
|
55
|
-
"version": "1.
|
|
54
|
+
"version": "1.2.0"
|
|
56
55
|
}
|
package/src/Clipboard.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Button } from "@domicile-desktop/component-library/Button";
|
|
1
2
|
import { EmptyState } from "@domicile-desktop/component-library/EmptyState";
|
|
2
3
|
import { Input } from "@domicile-desktop/component-library/Input";
|
|
3
4
|
import {
|
|
@@ -18,6 +19,7 @@ import { ImageIcon } from "@phosphor-icons/react/dist/ssr/Image";
|
|
|
18
19
|
import { LinkSimpleIcon } from "@phosphor-icons/react/dist/ssr/LinkSimple";
|
|
19
20
|
import { MagnifyingGlassIcon } from "@phosphor-icons/react/dist/ssr/MagnifyingGlass";
|
|
20
21
|
import { TextTIcon } from "@phosphor-icons/react/dist/ssr/TextT";
|
|
22
|
+
import type { KeyboardEvent } from "react";
|
|
21
23
|
import { memo, useId, useRef, useState } from "react";
|
|
22
24
|
|
|
23
25
|
import { css, cx } from "../styled-system/css";
|
|
@@ -37,6 +39,11 @@ type Props = {
|
|
|
37
39
|
onCopy: (entry: number) => void;
|
|
38
40
|
/** Escape, a backdrop click, or a chosen row. The desktop decides. */
|
|
39
41
|
onDismiss: () => void;
|
|
42
|
+
/**
|
|
43
|
+
* Drops this entry, by its compositor ID. Removing the current copy empties
|
|
44
|
+
* the clipboard.
|
|
45
|
+
*/
|
|
46
|
+
onRemove: (entry: number) => void;
|
|
40
47
|
open: boolean;
|
|
41
48
|
/** The screen to open on: the one with the keyboard. */
|
|
42
49
|
screen: string;
|
|
@@ -54,7 +61,7 @@ type Props = {
|
|
|
54
61
|
* both the choice and the dismissal, so the panel is gone before the paste.
|
|
55
62
|
*/
|
|
56
63
|
export const Clipboard = memo(
|
|
57
|
-
({ entries, onCopy, onDismiss, open, screen }: Props) => {
|
|
64
|
+
({ entries, onCopy, onDismiss, onRemove, open, screen }: Props) => {
|
|
58
65
|
// The history as of the last render open: choosing a copy moves it to
|
|
59
66
|
// the top, which would reorder the rows while the panel fades out.
|
|
60
67
|
const [shown, setShown] = useState(entries);
|
|
@@ -92,10 +99,11 @@ export const Clipboard = memo(
|
|
|
92
99
|
/>
|
|
93
100
|
) : (
|
|
94
101
|
<History
|
|
95
|
-
earlier={shown.slice(1)}
|
|
96
|
-
now={shown[0]}
|
|
102
|
+
earlier={shown[0].current ? shown.slice(1) : shown}
|
|
103
|
+
now={shown[0].current ? shown[0] : undefined}
|
|
97
104
|
onCopy={onCopy}
|
|
98
105
|
onDismiss={onDismiss}
|
|
106
|
+
onRemove={onRemove}
|
|
99
107
|
/>
|
|
100
108
|
)}
|
|
101
109
|
</ModalDialog>
|
|
@@ -106,10 +114,11 @@ export const Clipboard = memo(
|
|
|
106
114
|
type HistoryProps = {
|
|
107
115
|
/** The copies before `now`, newest first: the rows. */
|
|
108
116
|
earlier: readonly ClipboardEntry[];
|
|
109
|
-
/** The
|
|
110
|
-
now: ClipboardEntry;
|
|
117
|
+
/** The copy on the clipboard, if any. Removing it leaves none. */
|
|
118
|
+
now: ClipboardEntry | undefined;
|
|
111
119
|
onCopy: (entry: number) => void;
|
|
112
120
|
onDismiss: () => void;
|
|
121
|
+
onRemove: (entry: number) => void;
|
|
113
122
|
};
|
|
114
123
|
|
|
115
124
|
/**
|
|
@@ -120,7 +129,13 @@ type HistoryProps = {
|
|
|
120
129
|
* `aria-activedescendant` marks the highlighted row. The current copy is not
|
|
121
130
|
* a row, since choosing it would change nothing, and is not searched.
|
|
122
131
|
*/
|
|
123
|
-
const History = ({
|
|
132
|
+
const History = ({
|
|
133
|
+
earlier,
|
|
134
|
+
now,
|
|
135
|
+
onCopy,
|
|
136
|
+
onDismiss,
|
|
137
|
+
onRemove,
|
|
138
|
+
}: HistoryProps) => {
|
|
124
139
|
const listId = useId();
|
|
125
140
|
const nowId = useId();
|
|
126
141
|
const rows = useRef<HTMLDivElement>(null);
|
|
@@ -130,6 +145,7 @@ const History = ({ earlier, now, onCopy, onDismiss }: HistoryProps) => {
|
|
|
130
145
|
const shown = matching(earlier, query);
|
|
131
146
|
const highlighted =
|
|
132
147
|
shown.length === 0 ? undefined : Math.min(stepped, shown.length - 1);
|
|
148
|
+
const lit = highlighted === undefined ? undefined : shown[highlighted];
|
|
133
149
|
|
|
134
150
|
const pick = (entry: ClipboardEntry) => {
|
|
135
151
|
onCopy(entry.id);
|
|
@@ -161,14 +177,16 @@ const History = ({ earlier, now, onCopy, onDismiss }: HistoryProps) => {
|
|
|
161
177
|
return;
|
|
162
178
|
}
|
|
163
179
|
const step = stepOf(event, pageOf(rows.current));
|
|
164
|
-
const chosen = shown[highlighted];
|
|
165
180
|
if (step !== undefined) {
|
|
166
181
|
// Stop the box from moving the caret.
|
|
167
182
|
event.preventDefault();
|
|
168
183
|
setStepped(steppedTo(highlighted, step, shown.length));
|
|
169
|
-
} else if (event.key === "Enter" &&
|
|
184
|
+
} else if (event.key === "Enter" && lit !== undefined) {
|
|
170
185
|
event.preventDefault();
|
|
171
|
-
pick(
|
|
186
|
+
pick(lit);
|
|
187
|
+
} else if (removes(event) && lit !== undefined) {
|
|
188
|
+
event.preventDefault();
|
|
189
|
+
onRemove(lit.id);
|
|
172
190
|
}
|
|
173
191
|
}}
|
|
174
192
|
placeholder={PROMPT}
|
|
@@ -186,7 +204,7 @@ const History = ({ earlier, now, onCopy, onDismiss }: HistoryProps) => {
|
|
|
186
204
|
value={query}
|
|
187
205
|
/>
|
|
188
206
|
</div>
|
|
189
|
-
{!searching && (
|
|
207
|
+
{!searching && now !== undefined && (
|
|
190
208
|
<div aria-labelledby={nowId} className={groupStyles} role="group">
|
|
191
209
|
<div className={groupLabelStyles} id={nowId}>
|
|
192
210
|
On your clipboard
|
|
@@ -194,6 +212,13 @@ const History = ({ earlier, now, onCopy, onDismiss }: HistoryProps) => {
|
|
|
194
212
|
<div className={wellStyles}>
|
|
195
213
|
<div className={nowRowStyles}>
|
|
196
214
|
<Copy entry={now} query="" />
|
|
215
|
+
<span className={nowRemoveStyles}>
|
|
216
|
+
<Remove
|
|
217
|
+
onRemove={() => {
|
|
218
|
+
onRemove(now.id);
|
|
219
|
+
}}
|
|
220
|
+
/>
|
|
221
|
+
</span>
|
|
197
222
|
</div>
|
|
198
223
|
</div>
|
|
199
224
|
</div>
|
|
@@ -222,7 +247,22 @@ const History = ({ earlier, now, onCopy, onDismiss }: HistoryProps) => {
|
|
|
222
247
|
onChoose={pick}
|
|
223
248
|
onHighlight={setStepped}
|
|
224
249
|
>
|
|
225
|
-
{(entry) =>
|
|
250
|
+
{(entry) => (
|
|
251
|
+
<>
|
|
252
|
+
<Copy entry={entry} query={query} />
|
|
253
|
+
{entry === lit && (
|
|
254
|
+
<Remove
|
|
255
|
+
onRemove={() => {
|
|
256
|
+
onRemove(entry.id);
|
|
257
|
+
}}
|
|
258
|
+
// For the pointer. The keyboard has Delete, and focus
|
|
259
|
+
// stays in the box, so the button stays out of the
|
|
260
|
+
// tab order and out of the row's name.
|
|
261
|
+
pointerOnly
|
|
262
|
+
/>
|
|
263
|
+
)}
|
|
264
|
+
</>
|
|
265
|
+
)}
|
|
226
266
|
</ResultList>
|
|
227
267
|
)}
|
|
228
268
|
</div>
|
|
@@ -246,6 +286,45 @@ const Copy = ({ entry, query }: { entry: ClipboardEntry; query: string }) => (
|
|
|
246
286
|
</>
|
|
247
287
|
);
|
|
248
288
|
|
|
289
|
+
/**
|
|
290
|
+
* A row's remove button. Its click is not the row's, which would copy the row
|
|
291
|
+
* it just removed.
|
|
292
|
+
*/
|
|
293
|
+
const Remove = ({
|
|
294
|
+
onRemove,
|
|
295
|
+
pointerOnly = false,
|
|
296
|
+
}: {
|
|
297
|
+
onRemove: () => void;
|
|
298
|
+
pointerOnly?: boolean;
|
|
299
|
+
}) => (
|
|
300
|
+
<Button
|
|
301
|
+
aria-hidden={pointerOnly ? true : undefined}
|
|
302
|
+
onClick={(event) => {
|
|
303
|
+
event.stopPropagation();
|
|
304
|
+
onRemove();
|
|
305
|
+
}}
|
|
306
|
+
rounded
|
|
307
|
+
size="xs"
|
|
308
|
+
tabIndex={pointerOnly ? -1 : undefined}
|
|
309
|
+
variant="dangerGhost"
|
|
310
|
+
>
|
|
311
|
+
Remove
|
|
312
|
+
</Button>
|
|
313
|
+
);
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Whether a key in the box removes the highlighted row: Delete with nothing
|
|
317
|
+
* after the caret, where the box has nothing for Delete to do.
|
|
318
|
+
*/
|
|
319
|
+
const removes = (event: KeyboardEvent<HTMLInputElement>): boolean => {
|
|
320
|
+
const { selectionEnd, selectionStart, value } = event.currentTarget;
|
|
321
|
+
return (
|
|
322
|
+
event.key === "Delete" &&
|
|
323
|
+
selectionStart === value.length &&
|
|
324
|
+
selectionEnd === value.length
|
|
325
|
+
);
|
|
326
|
+
};
|
|
327
|
+
|
|
249
328
|
/** The copies whose preview holds every word of `query`, ignoring case. */
|
|
250
329
|
const matching = (
|
|
251
330
|
entries: readonly ClipboardEntry[],
|
|
@@ -367,3 +446,11 @@ const nowRowStyles = hstack({
|
|
|
367
446
|
paddingBlock: 1.5,
|
|
368
447
|
paddingInline: 2,
|
|
369
448
|
});
|
|
449
|
+
|
|
450
|
+
// Shown under the pointer or on focus, as the rows' button shows on the lit
|
|
451
|
+
// row.
|
|
452
|
+
const nowRemoveStyles = css({
|
|
453
|
+
"div:hover > &": { opacity: 1 },
|
|
454
|
+
opacity: { _focusWithin: 1, base: 0 },
|
|
455
|
+
transition: "opacity {durations.fast} {easings.out}",
|
|
456
|
+
});
|
|
@@ -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
|
|