@domicile-desktop/manganese-lock 1.0.3 → 1.0.4
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
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@domicile-desktop/component-library": "2.
|
|
4
|
-
"@domicile-desktop/manganese-bar": "1.1.
|
|
5
|
-
"@domicile-desktop/manganese-bar-module-clock": "1.0.
|
|
6
|
-
"@domicile-desktop/manganese-host": "2.0.
|
|
7
|
-
"@domicile-desktop/sdk": "
|
|
8
|
-
"@pandacss/dev": "^1.12.
|
|
3
|
+
"@domicile-desktop/component-library": "2.2.0",
|
|
4
|
+
"@domicile-desktop/manganese-bar": "1.1.3",
|
|
5
|
+
"@domicile-desktop/manganese-bar-module-clock": "1.0.4",
|
|
6
|
+
"@domicile-desktop/manganese-host": "2.0.3",
|
|
7
|
+
"@domicile-desktop/sdk": "3.0.0",
|
|
8
|
+
"@pandacss/dev": "^1.12.2",
|
|
9
9
|
"@phosphor-icons/react": "^2.1.10",
|
|
10
|
-
"react": "^19.
|
|
10
|
+
"react": "^19.3.1"
|
|
11
11
|
},
|
|
12
12
|
"description": "Manganese's lock screen: the passphrase field and a bar of what a locked desktop allows.",
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@cprussin/tsconfig": "^5.0.0",
|
|
15
|
-
"@domicile-desktop/manganese-window-management": "
|
|
15
|
+
"@domicile-desktop/manganese-window-management": "2.0.0",
|
|
16
16
|
"@domicile-desktop/test-support": "0.0.2",
|
|
17
|
-
"@pandacss/preset-panda": "^1.12.
|
|
17
|
+
"@pandacss/preset-panda": "^1.12.2",
|
|
18
18
|
"@testing-library/react": "^16.3.3",
|
|
19
|
-
"@testing-library/user-event": "^14.6.
|
|
20
|
-
"@types/bun": "^1.4.
|
|
21
|
-
"@types/react": "^19.
|
|
22
|
-
"@types/react-dom": "^19.
|
|
23
|
-
"postcss": "^8.5.
|
|
19
|
+
"@testing-library/user-event": "^14.6.10",
|
|
20
|
+
"@types/bun": "^1.4.4",
|
|
21
|
+
"@types/react": "^19.3.0",
|
|
22
|
+
"@types/react-dom": "^19.3.0",
|
|
23
|
+
"postcss": "^8.5.32",
|
|
24
24
|
"typescript": "^7.0.2"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"test:unit": "bun test"
|
|
56
56
|
},
|
|
57
57
|
"type": "module",
|
|
58
|
-
"version": "1.0.
|
|
58
|
+
"version": "1.0.4"
|
|
59
59
|
}
|
package/src/Lock.tsx
CHANGED
|
@@ -8,7 +8,7 @@ import { PopoverContainer } from "@domicile-desktop/component-library/Popover";
|
|
|
8
8
|
import { UnlockRefusal } from "@domicile-desktop/sdk/system";
|
|
9
9
|
import { ArrowRightIcon } from "@phosphor-icons/react/dist/ssr/ArrowRight";
|
|
10
10
|
import { LockIcon } from "@phosphor-icons/react/dist/ssr/Lock";
|
|
11
|
-
import type { ReactNode } from "react";
|
|
11
|
+
import type { ReactNode, RefObject } from "react";
|
|
12
12
|
import { memo, useEffect, useRef, useState } from "react";
|
|
13
13
|
|
|
14
14
|
import { css, cva } from "../styled-system/css";
|
|
@@ -64,9 +64,11 @@ type Props = {
|
|
|
64
64
|
* It stays mounted and is `inert` while unlocked so it can fade in and out;
|
|
65
65
|
* once faded it is `display: none`, so it never catches clicks on the desktop.
|
|
66
66
|
*
|
|
67
|
-
* While locked, focus stays in the field, since nothing else takes keys.
|
|
68
|
-
*
|
|
69
|
-
*
|
|
67
|
+
* While locked, focus stays in the field, since nothing else takes keys. It is
|
|
68
|
+
* taken back from anything else on the page, and a key pressed with focus on
|
|
69
|
+
* nothing goes to it. A control in `bar` works by pointer and gives the focus
|
|
70
|
+
* back. A panel it opens draws over the sheet and keeps the focus until it
|
|
71
|
+
* closes.
|
|
70
72
|
*
|
|
71
73
|
* Nothing dismisses it except unlocking: not Escape, an outside click or
|
|
72
74
|
* submit. That is why it does not use `ModalDialog`.
|
|
@@ -103,6 +105,13 @@ export const Lock = memo(
|
|
|
103
105
|
}
|
|
104
106
|
}, [locked]);
|
|
105
107
|
|
|
108
|
+
// While locked, keep the keyboard in the field against the rest of the
|
|
109
|
+
// page too, which lies under the sheet.
|
|
110
|
+
useEffect(
|
|
111
|
+
() => (locked ? holdKeyboard(field, panels) : undefined),
|
|
112
|
+
[locked, panels],
|
|
113
|
+
);
|
|
114
|
+
|
|
106
115
|
// Clear the field on a refusal, so a wrong guess is not left on a locked
|
|
107
116
|
// screen.
|
|
108
117
|
useEffect(() => {
|
|
@@ -118,12 +127,6 @@ export const Lock = memo(
|
|
|
118
127
|
<div
|
|
119
128
|
className={sheetStyles}
|
|
120
129
|
inert={!locked}
|
|
121
|
-
// Take the focus back from a slider, which focuses itself on a click.
|
|
122
|
-
onFocus={(event) => {
|
|
123
|
-
if (!keepsFocus(event.target, field.current, panels)) {
|
|
124
|
-
field.current?.focus();
|
|
125
|
-
}
|
|
126
|
-
}}
|
|
127
130
|
// Keep focus in the field. The button still submits on click, and Tab has
|
|
128
131
|
// nowhere else to go.
|
|
129
132
|
onKeyDown={(event) => {
|
|
@@ -157,7 +160,7 @@ export const Lock = memo(
|
|
|
157
160
|
data-lock-content=""
|
|
158
161
|
style={useScreenRegion(screen)}
|
|
159
162
|
>
|
|
160
|
-
<LockClock />
|
|
163
|
+
<LockClock locked={locked} />
|
|
161
164
|
<div className={entryStyles}>
|
|
162
165
|
<form
|
|
163
166
|
className={formStyles({ shaken: shaken(refusals), wrong })}
|
|
@@ -461,9 +464,43 @@ const refusalStyles = css({
|
|
|
461
464
|
textShadow: "textOverPhoto",
|
|
462
465
|
});
|
|
463
466
|
|
|
467
|
+
/**
|
|
468
|
+
* Puts focus back in `field` whenever it lands anywhere else on the page, and
|
|
469
|
+
* before each key pressed with focus on nothing, so the key types into it.
|
|
470
|
+
* Returns a function that stops.
|
|
471
|
+
*
|
|
472
|
+
* Focus that lands elsewhere is taken back once that focus change has
|
|
473
|
+
* finished, not from inside it. Focusing the field from `focusin` re-enters
|
|
474
|
+
* the change: when it was a `<webview>` taking focus, the engine then hands
|
|
475
|
+
* its page the focus after the field took it, and the field holds the keys
|
|
476
|
+
* without being drawn focused.
|
|
477
|
+
*/
|
|
478
|
+
const holdKeyboard = (
|
|
479
|
+
field: RefObject<HTMLInputElement | null>,
|
|
480
|
+
panels: HTMLDivElement | null,
|
|
481
|
+
): (() => void) => {
|
|
482
|
+
const reclaim = () => {
|
|
483
|
+
if (!keepsFocus(document.activeElement, field.current, panels)) {
|
|
484
|
+
field.current?.focus();
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
let pending: ReturnType<typeof setTimeout> | undefined;
|
|
488
|
+
const onFocusIn = () => {
|
|
489
|
+
clearTimeout(pending);
|
|
490
|
+
pending = setTimeout(reclaim);
|
|
491
|
+
};
|
|
492
|
+
document.addEventListener("focusin", onFocusIn, true);
|
|
493
|
+
window.addEventListener("keydown", reclaim, true);
|
|
494
|
+
return () => {
|
|
495
|
+
clearTimeout(pending);
|
|
496
|
+
document.removeEventListener("focusin", onFocusIn, true);
|
|
497
|
+
window.removeEventListener("keydown", reclaim, true);
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
|
|
464
501
|
/** Whether focus may stay on `target`: the field, or a panel the bar opened. */
|
|
465
502
|
const keepsFocus = (
|
|
466
|
-
target: EventTarget,
|
|
503
|
+
target: EventTarget | null,
|
|
467
504
|
field: HTMLInputElement | null,
|
|
468
505
|
panels: HTMLDivElement | null,
|
|
469
506
|
): boolean =>
|
package/src/LockClock.tsx
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { wallClock } from "@domicile-desktop/manganese-bar-module-clock/useNow";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
MINUTE_MS,
|
|
4
|
+
useNow,
|
|
5
|
+
} from "@domicile-desktop/manganese-bar-module-clock/useNow";
|
|
3
6
|
import { css } from "../styled-system/css";
|
|
4
7
|
import { vstack } from "../styled-system/patterns";
|
|
5
8
|
|
|
@@ -11,11 +14,16 @@ const DIGITS = 2;
|
|
|
11
14
|
|
|
12
15
|
type Props = {
|
|
13
16
|
now?: typeof wallClock | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the desktop is locked. The lock sheet stays mounted to fade, so
|
|
19
|
+
* the clock stops while unlocked rather than ticking on a hidden sheet.
|
|
20
|
+
*/
|
|
21
|
+
locked: boolean;
|
|
14
22
|
};
|
|
15
23
|
|
|
16
24
|
/** The large clock on the lock screen. */
|
|
17
|
-
export const LockClock = ({ now }: Props) => {
|
|
18
|
-
const time = useNow(now);
|
|
25
|
+
export const LockClock = ({ locked, now }: Props) => {
|
|
26
|
+
const time = useNow(now, MINUTE_MS, locked);
|
|
19
27
|
|
|
20
28
|
return (
|
|
21
29
|
<time className={clockStyles} dateTime={time.toISOString()}>
|
|
@@ -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
|
|
|
@@ -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
|
|