@domicile-desktop/manganese-bar-module-network 1.1.2 → 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 CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@cprussin/option-result": "^2.0.1",
4
- "@domicile-desktop/component-library": "2.1.0",
5
- "@domicile-desktop/manganese-bar": "1.1.2",
6
- "@domicile-desktop/manganese-host": "2.0.2",
7
- "@domicile-desktop/react": "0.1.2",
8
- "@domicile-desktop/sdk": "2.2.0",
9
- "@domicile-desktop/system-network": "1.1.2",
10
- "@pandacss/dev": "^1.12.1",
4
+ "@domicile-desktop/component-library": "2.2.0",
5
+ "@domicile-desktop/manganese-bar": "1.1.3",
6
+ "@domicile-desktop/manganese-host": "2.0.3",
7
+ "@domicile-desktop/react": "0.2.0",
8
+ "@domicile-desktop/sdk": "3.0.0",
9
+ "@domicile-desktop/system-network": "1.2.0",
10
+ "@pandacss/dev": "^1.12.2",
11
11
  "@phosphor-icons/react": "^2.1.10",
12
- "react": "^19.2.8"
12
+ "react": "^19.3.1"
13
13
  },
14
14
  "description": "A manganese bar item: the network connection and its Wi-Fi panel.",
15
15
  "devDependencies": {
16
16
  "@cprussin/tsconfig": "^5.0.0",
17
17
  "@domicile-desktop/test-support": "0.0.2",
18
- "@pandacss/preset-panda": "^1.12.1",
18
+ "@pandacss/preset-panda": "^1.12.2",
19
19
  "@testing-library/react": "^16.3.3",
20
- "@testing-library/user-event": "^14.6.7",
21
- "@types/bun": "^1.4.2",
22
- "@types/react": "^19.2.18",
23
- "@types/react-dom": "^19.2.7",
24
- "postcss": "^8.5.28",
20
+ "@testing-library/user-event": "^14.6.10",
21
+ "@types/bun": "^1.4.4",
22
+ "@types/react": "^19.3.0",
23
+ "@types/react-dom": "^19.3.0",
24
+ "postcss": "^8.5.32",
25
25
  "typescript": "^7.0.2"
26
26
  },
27
27
  "engines": {
@@ -56,5 +56,5 @@
56
56
  "test:unit": "bun test"
57
57
  },
58
58
  "type": "module",
59
- "version": "1.1.2"
59
+ "version": "1.2.0"
60
60
  }
@@ -0,0 +1,17 @@
1
+ import { PanelNote } from "@domicile-desktop/component-library/PanelNote";
2
+ import type { SystemError } from "@domicile-desktop/sdk/system";
3
+ import type { ReactNode } from "react";
4
+
5
+ /** What failed, in plain words, with the service's in its tooltip. */
6
+ export const Failure = ({
7
+ children,
8
+ error,
9
+ }: {
10
+ children: ReactNode;
11
+ error: SystemError | undefined;
12
+ }) =>
13
+ error !== undefined && (
14
+ <PanelNote detail={error.message} tone="warning">
15
+ {children}
16
+ </PanelNote>
17
+ );
package/src/Network.tsx CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { Option, Result } from "@cprussin/option-result";
2
+ import { Drilldown } from "@domicile-desktop/component-library/Drilldown";
2
3
  import { Panel } from "@domicile-desktop/component-library/Panel";
3
4
  import { Popover } from "@domicile-desktop/component-library/Popover";
4
5
  import { useKeepsKeyboard } from "@domicile-desktop/manganese-bar/panel-keyboard";
@@ -122,15 +123,17 @@ const Item = ({
122
123
  }
123
124
  wide
124
125
  >
125
- <Panel title="Network" width="standard">
126
- <NetworkPanel
127
- actions={actions}
128
- addresses={addresses}
129
- host={host}
130
- wifi={wifi}
131
- wired={wired}
132
- />
133
- </Panel>
126
+ <Drilldown>
127
+ <Panel title="Network" width="standard">
128
+ <NetworkPanel
129
+ actions={actions}
130
+ addresses={addresses}
131
+ host={host}
132
+ wifi={wifi}
133
+ wired={wired}
134
+ />
135
+ </Panel>
136
+ </Drilldown>
134
137
  </Popover>
135
138
  );
136
139
  };
@@ -90,6 +90,7 @@ export const NetworkTile = ({ interfaces, onMore, wifi }: TileProps) => {
90
90
  detail={wifiDetailOf(device)}
91
91
  icon={<AnimatedWifiIcon bars={3} off={!device.enabled} size={15} />}
92
92
  label="Wi-Fi"
93
+ lit={device.connection !== undefined}
93
94
  onMore={onMore}
94
95
  />
95
96
  );
@@ -99,6 +100,7 @@ export const NetworkTile = ({ interfaces, onMore, wifi }: TileProps) => {
99
100
  detail={cable === undefined ? "No cable" : cableDetailOf(cable)}
100
101
  icon={<NetworkIcon size={15} weight="bold" />}
101
102
  label="Wired"
103
+ lit={cable !== undefined}
102
104
  onMore={onMore}
103
105
  />
104
106
  );
@@ -0,0 +1,191 @@
1
+ import { Button } from "@domicile-desktop/component-library/Button";
2
+ import { EmptyState } from "@domicile-desktop/component-library/EmptyState";
3
+ import { List, ListRow } from "@domicile-desktop/component-library/ListRow";
4
+ import { PanelFooter } from "@domicile-desktop/component-library/PanelFooter";
5
+ import { Switch } from "@domicile-desktop/component-library/Switch";
6
+ import { useRequests } from "@domicile-desktop/manganese-host/useRequests";
7
+ import type { Domicile } from "@domicile-desktop/sdk/desktop/desktop";
8
+ import type {
9
+ SavedWifi,
10
+ Wifi,
11
+ WifiNetwork,
12
+ } from "@domicile-desktop/system-network/wifi";
13
+ import { WifiSecurity } from "@domicile-desktop/system-network/wifi";
14
+ import { BookmarkSimpleIcon } from "@phosphor-icons/react/dist/ssr/BookmarkSimple";
15
+ import { TrashIcon } from "@phosphor-icons/react/dist/ssr/Trash";
16
+ import { WifiHighIcon } from "@phosphor-icons/react/dist/ssr/WifiHigh";
17
+
18
+ import { css } from "../styled-system/css";
19
+ import { Failure } from "./Failure";
20
+ import { WifiSignalIcon } from "./WifiSignalIcon";
21
+ import type { WifiActions } from "./wifi-actions";
22
+
23
+ type Props = {
24
+ wifi: Wifi;
25
+ /** Where requests go. */
26
+ host: Domicile;
27
+ actions: WifiActions;
28
+ /** What "today" and "yesterday" are counted from. */
29
+ now?: Date | undefined;
30
+ };
31
+
32
+ /**
33
+ * Every saved network, each a tile with all it offers in view: when it was
34
+ * last used, how it is secured, whether it joins by itself, and Forget.
35
+ *
36
+ * The connected network leads, then those in range, then the rest, most
37
+ * recently used first.
38
+ */
39
+ export const SavedNetworks = ({
40
+ actions,
41
+ host,
42
+ now = new Date(),
43
+ wifi,
44
+ }: Props) => {
45
+ const requests = useRequests();
46
+ const inRange = new Map(
47
+ wifi.networks.flatMap((network) =>
48
+ network.profile === undefined ? [] : [[network.profile, network]],
49
+ ),
50
+ );
51
+ return wifi.saved.length === 0 ? (
52
+ <EmptyState icon={BookmarkSimpleIcon} title="No saved networks" />
53
+ ) : (
54
+ <List label="Saved networks">
55
+ {orderOf(wifi.saved, inRange).map((saved) => {
56
+ const network = inRange.get(saved.profile);
57
+ const forget = `forget:${saved.profile}`;
58
+ const autoJoin = `autoJoin:${saved.profile}`;
59
+ return (
60
+ <ListRow
61
+ detail={detailOf(saved, network, now)}
62
+ icon={
63
+ network === undefined ? (
64
+ <span className={awayStyles}>
65
+ <WifiHighIcon aria-hidden size={15} />
66
+ </span>
67
+ ) : (
68
+ <WifiSignalIcon strength={network.strength} />
69
+ )
70
+ }
71
+ key={saved.profile}
72
+ label={saved.ssid}
73
+ surface="filled"
74
+ >
75
+ <Failure error={requests.failed(forget)}>
76
+ Couldn't forget {saved.ssid}
77
+ </Failure>
78
+ <Failure error={requests.failed(autoJoin)}>
79
+ Couldn't change {saved.ssid}
80
+ </Failure>
81
+ <PanelFooter
82
+ action={
83
+ <Button
84
+ beforeIcon={<TrashIcon aria-hidden size={14} />}
85
+ loading={requests.pending(forget)}
86
+ onClick={() => {
87
+ requests.run(forget, () =>
88
+ actions.forgetWifi(host, wifi, saved),
89
+ );
90
+ }}
91
+ rounded
92
+ size="xs"
93
+ variant="dangerGhost"
94
+ >
95
+ Forget
96
+ </Button>
97
+ }
98
+ >
99
+ <Switch
100
+ checked={saved.autoJoin}
101
+ disabled={requests.pending(autoJoin)}
102
+ label="Join automatically"
103
+ onCheckedChange={(checked) => {
104
+ requests.run(autoJoin, () =>
105
+ actions.setWifiAutoJoin(host, wifi, saved, checked),
106
+ );
107
+ }}
108
+ />
109
+ </PanelFooter>
110
+ </ListRow>
111
+ );
112
+ })}
113
+ </List>
114
+ );
115
+ };
116
+
117
+ /** Connected, then in range, then most recently used; never used last. */
118
+ const orderOf = (
119
+ saved: readonly SavedWifi[],
120
+ inRange: ReadonlyMap<string, WifiNetwork>,
121
+ ): SavedWifi[] =>
122
+ saved.toSorted(
123
+ (a, b) =>
124
+ rankOf(a, inRange) - rankOf(b, inRange) ||
125
+ (b.lastUsed?.getTime() ?? 0) - (a.lastUsed?.getTime() ?? 0),
126
+ );
127
+
128
+ const rankOf = (
129
+ saved: SavedWifi,
130
+ inRange: ReadonlyMap<string, WifiNetwork>,
131
+ ): number => {
132
+ const network = inRange.get(saved.profile);
133
+ if (network === undefined) {
134
+ return 2;
135
+ } else {
136
+ return network.connected ? 0 : 1;
137
+ }
138
+ };
139
+
140
+ /** Where it is, when it was last used, and how it is secured. */
141
+ const detailOf = (
142
+ saved: SavedWifi,
143
+ network: WifiNetwork | undefined,
144
+ now: Date,
145
+ ): string =>
146
+ [
147
+ ...(network === undefined
148
+ ? []
149
+ : [network.connected ? "Connected" : "In range"]),
150
+ ...(network?.connected === true ? [] : [usedOf(saved.lastUsed, now)]),
151
+ SECURITY[saved.security],
152
+ ].join(" · ");
153
+
154
+ const SECURITY = {
155
+ [WifiSecurity.Open]: "Open",
156
+ [WifiSecurity.Password]: "Secured",
157
+ [WifiSecurity.Enterprise]: "Enterprise",
158
+ } as const satisfies Record<WifiSecurity, string>;
159
+
160
+ const usedOf = (used: Date | undefined, now: Date): string =>
161
+ used === undefined ? "Never used" : `Used ${dayOf(used, now)}`;
162
+
163
+ /** A day as people say it: today, yesterday, or its date, with its year if not this one. */
164
+ const dayOf = (day: Date, now: Date): string => {
165
+ switch (daysBetween(day, now)) {
166
+ case 0: {
167
+ return "today";
168
+ }
169
+ case 1: {
170
+ return "yesterday";
171
+ }
172
+ default: {
173
+ return day.toLocaleDateString("en-US", {
174
+ day: "numeric",
175
+ month: "short",
176
+ ...(day.getFullYear() === now.getFullYear() ? {} : { year: "numeric" }),
177
+ });
178
+ }
179
+ }
180
+ };
181
+
182
+ /** Calendar days from `from` to `to`, in local time. */
183
+ const daysBetween = (from: Date, to: Date): number =>
184
+ Math.round(
185
+ (new Date(to.getFullYear(), to.getMonth(), to.getDate()).getTime() -
186
+ new Date(from.getFullYear(), from.getMonth(), from.getDate()).getTime()) /
187
+ 86_400_000,
188
+ );
189
+
190
+ // Out of range: the network is there to manage, not to join.
191
+ const awayStyles = css({ display: "inline-flex", opacity: "inactive" });
package/src/WifiPanel.tsx CHANGED
@@ -2,13 +2,13 @@ import type { Option, Result } from "@cprussin/option-result";
2
2
  import { Button } from "@domicile-desktop/component-library/Button";
3
3
  import type { Detail } from "@domicile-desktop/component-library/DetailList";
4
4
  import { DetailList } from "@domicile-desktop/component-library/DetailList";
5
+ import { DrilldownPage } from "@domicile-desktop/component-library/Drilldown";
5
6
  import { EmptyState } from "@domicile-desktop/component-library/EmptyState";
6
7
  import { IconButton } from "@domicile-desktop/component-library/IconButton";
7
8
  import { Input } from "@domicile-desktop/component-library/Input";
8
9
  import { List, ListRow } from "@domicile-desktop/component-library/ListRow";
9
10
  import { Loading } from "@domicile-desktop/component-library/Loading";
10
11
  import { PanelFooter } from "@domicile-desktop/component-library/PanelFooter";
11
- import { PanelNote } from "@domicile-desktop/component-library/PanelNote";
12
12
  import { PanelSection } from "@domicile-desktop/component-library/PanelSection";
13
13
  import { Switch } from "@domicile-desktop/component-library/Switch";
14
14
  import { Tooltip } from "@domicile-desktop/component-library/Tooltip";
@@ -22,15 +22,17 @@ import type {
22
22
  WifiNetwork,
23
23
  } from "@domicile-desktop/system-network/wifi";
24
24
  import { ArrowClockwiseIcon } from "@phosphor-icons/react/dist/ssr/ArrowClockwise";
25
+ import { CaretRightIcon } from "@phosphor-icons/react/dist/ssr/CaretRight";
25
26
  import { LockSimpleIcon } from "@phosphor-icons/react/dist/ssr/LockSimple";
26
27
  import { MagnifyingGlassIcon } from "@phosphor-icons/react/dist/ssr/MagnifyingGlass";
27
28
  import { WifiHighIcon } from "@phosphor-icons/react/dist/ssr/WifiHigh";
28
29
  import { WifiSlashIcon } from "@phosphor-icons/react/dist/ssr/WifiSlash";
29
- import type { ReactNode } from "react";
30
30
  import { useEffect, useState } from "react";
31
31
  import { hstack } from "../styled-system/patterns";
32
32
  import type { Addresses } from "./addressing";
33
33
  import { addressRowsOf, COPYABLE } from "./addressing";
34
+ import { Failure } from "./Failure";
35
+ import { SavedNetworks } from "./SavedNetworks";
34
36
  import { signalOf } from "./signal";
35
37
  import { speedOf } from "./speed";
36
38
  import { WifiSignalIcon } from "./WifiSignalIcon";
@@ -49,7 +51,9 @@ type Props = {
49
51
  /**
50
52
  * The Wi-Fi section: a switch for the radio on its heading, the connection
51
53
  * with its details folded away, then the other networks in range, each
52
- * joined with a click. Nothing without a Wi-Fi device.
54
+ * joined with a click. A button on the heading opens a page of the saved
55
+ * networks, radio on or off. Nothing without a Wi-Fi device. Goes in a
56
+ * `Drilldown`, which shows the page.
53
57
  *
54
58
  * Scans when shown. A refusal shows plainly where it was asked, with the
55
59
  * service's words in its tooltip; the service's state shows the rest.
@@ -65,9 +69,12 @@ export const WifiPanel = ({ actions, addresses, host, wifi }: Props) => {
65
69
  return wifi.match({
66
70
  Err: (error) => (
67
71
  <PanelSection label="Wi-Fi">
68
- <PanelNote detail={error.message} tone="warning">
69
- Couldn't read Wi-Fi
70
- </PanelNote>
72
+ <EmptyState
73
+ detail={error.message}
74
+ hint="Close this and open it again in a moment."
75
+ title="Couldn't read Wi-Fi"
76
+ tone="warning"
77
+ />
71
78
  </PanelSection>
72
79
  ),
73
80
  Ok: (found) =>
@@ -96,6 +103,7 @@ type ControlsProps = {
96
103
  const Controls = ({ actions, addresses, host, wifi }: ControlsProps) => {
97
104
  const requests = useRequests();
98
105
  const [asking, setAsking] = useState<string | undefined>(undefined);
106
+ const [savedOpen, setSavedOpen] = useState(false);
99
107
  const { backend, device, interface: name } = wifi;
100
108
  const scanning = wifi.scanning || requests.pending("scan");
101
109
  const join = (network: WifiNetwork, passphrase: string | undefined) => {
@@ -113,6 +121,19 @@ const Controls = ({ actions, addresses, host, wifi }: ControlsProps) => {
113
121
  <PanelSection
114
122
  action={
115
123
  <span className={headStyles}>
124
+ {wifi.saved.length > 0 && (
125
+ <Button
126
+ afterIcon={<CaretRightIcon aria-hidden size={10} weight="bold" />}
127
+ onClick={() => {
128
+ setSavedOpen(true);
129
+ }}
130
+ rounded
131
+ size="xs"
132
+ variant="ghost"
133
+ >
134
+ {`${wifi.saved.length} saved`}
135
+ </Button>
136
+ )}
116
137
  {wifi.enabled && (scanning || !empty) && (
117
138
  <Tooltip
118
139
  content="Scan"
@@ -209,7 +230,7 @@ const Controls = ({ actions, addresses, host, wifi }: ControlsProps) => {
209
230
  {!scanning &&
210
231
  others.length === 0 &&
211
232
  wifi.connection !== undefined && (
212
- <PanelNote>No other networks nearby</PanelNote>
233
+ <EmptyState layout="inline" title="No other networks nearby" />
213
234
  )}
214
235
  <Failure error={requests.failed("disconnect")}>
215
236
  Couldn't disconnect
@@ -225,6 +246,16 @@ const Controls = ({ actions, addresses, host, wifi }: ControlsProps) => {
225
246
  title="Wi-Fi is off"
226
247
  />
227
248
  )}
249
+ {savedOpen && (
250
+ <DrilldownPage
251
+ onBack={() => {
252
+ setSavedOpen(false);
253
+ }}
254
+ title="Saved networks"
255
+ >
256
+ <SavedNetworks actions={actions} host={host} wifi={wifi} />
257
+ </DrilldownPage>
258
+ )}
228
259
  </PanelSection>
229
260
  );
230
261
  };
@@ -294,7 +325,7 @@ const Connection = ({
294
325
  onClick={onDisconnect}
295
326
  rounded
296
327
  size="xs"
297
- variant="ghost"
328
+ variant="dangerGhost"
298
329
  >
299
330
  Disconnect
300
331
  </Button>
@@ -386,20 +417,6 @@ const Passphrase = ({
386
417
  );
387
418
  };
388
419
 
389
- /** What failed, in plain words, with the service's in its tooltip. */
390
- const Failure = ({
391
- children,
392
- error,
393
- }: {
394
- children: ReactNode;
395
- error: SystemError | undefined;
396
- }) =>
397
- error !== undefined && (
398
- <PanelNote detail={error.message} tone="warning">
399
- {children}
400
- </PanelNote>
401
- );
402
-
403
420
  /** A new secured network, whose passphrase the service does not know. */
404
421
  const needsPassphrase = (network: WifiNetwork): boolean =>
405
422
  network.secured && network.profile === undefined;
@@ -23,7 +23,11 @@ export const heldWifiActions = (
23
23
  connectWifi: (_system, wifi, network, passphrase) =>
24
24
  ask(["connect", wifi.device, network.ssid, passphrase]),
25
25
  disconnectWifi: (_system, wifi) => ask(["disconnect", wifi.device]),
26
+ forgetWifi: (_system, wifi, saved) =>
27
+ ask(["forget", wifi.device, saved.ssid]),
26
28
  scanWifi: (_system, wifi) => ask(["scan", wifi.device]),
29
+ setWifiAutoJoin: (_system, wifi, saved, autoJoin) =>
30
+ ask(["autoJoin", wifi.device, saved.ssid, autoJoin]),
27
31
  setWifiEnabled: (_system, wifi, enabled) =>
28
32
  ask(["setEnabled", wifi.device, enabled]),
29
33
  };
@@ -1,7 +1,9 @@
1
1
  import {
2
2
  connectWifi,
3
3
  disconnectWifi,
4
+ forgetWifi,
4
5
  scanWifi,
6
+ setWifiAutoJoin,
5
7
  setWifiEnabled,
6
8
  } from "@domicile-desktop/system-network/wifi";
7
9
 
@@ -9,7 +11,9 @@ import {
9
11
  export const WIFI_ACTIONS = {
10
12
  connectWifi,
11
13
  disconnectWifi,
14
+ forgetWifi,
12
15
  scanWifi,
16
+ setWifiAutoJoin,
13
17
  setWifiEnabled,
14
18
  };
15
19
 
@@ -33504,15 +33504,15 @@ const tokens = {
33504
33504
  "variable": "var(--jRjWKm)"
33505
33505
  },
33506
33506
  "zIndex.lock": {
33507
- "value": "202",
33507
+ "value": "2147483647",
33508
33508
  "variable": "var(--fkMZTt)"
33509
33509
  },
33510
33510
  "zIndex.modal": {
33511
- "value": "201",
33511
+ "value": "2147483646",
33512
33512
  "variable": "var(--dIktSh)"
33513
33513
  },
33514
33514
  "zIndex.modalBackdrop": {
33515
- "value": "200",
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