@tangle-network/agent-app 1.0.7 → 1.0.8
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/dist/{DesignCanvasEditor-6SQAQGOY.js → DesignCanvasEditor-CYFFF2LZ.js} +3 -3
- package/dist/agent-profiles/d1.js +3 -3
- package/dist/agent-profiles/index.js +3 -3
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-X5BDMSPS.js → chunk-27QO3AXJ.js} +68 -68
- package/dist/chunk-27QO3AXJ.js.map +1 -0
- package/dist/{chunk-IIAXUKV7.js → chunk-2V7YCTYU.js} +2 -2
- package/dist/{chunk-M42DQ6HM.js → chunk-3KJAPMZB.js} +2 -2
- package/dist/{chunk-X32H7TXZ.js → chunk-7JUQQEQY.js} +2 -2
- package/dist/{chunk-DURND7YS.js → chunk-7MVMNCRP.js} +5 -5
- package/dist/{chunk-DURND7YS.js.map → chunk-7MVMNCRP.js.map} +1 -1
- package/dist/{chunk-V2BC73KQ.js → chunk-IUAPYE37.js} +2 -2
- package/dist/{chunk-DNM5CN3R.js → chunk-UCXB3ZZ3.js} +3 -3
- package/dist/{chunk-OWNWWT76.js → chunk-VHDBKP3G.js} +2 -2
- package/dist/{chunk-YAIUAUWJ.js → chunk-XU6A5NT2.js} +2 -2
- package/dist/design-canvas-react/index.js +3 -3
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/public-consultation/index.js +4 -4
- package/dist/sandbox/index.js +4 -4
- package/dist/theme/brand.generated.d.ts +68 -68
- package/dist/theme/dom.js +2 -2
- package/dist/theme/index.js +1 -1
- package/dist/theme/tailwind-preset.js +2 -4
- package/dist/theme/tailwind-preset.js.map +1 -1
- package/dist/theme/tokens.css +1383 -984
- package/dist/tools/index.js +4 -4
- package/dist/web-react/document.js +2 -2
- package/dist/work-product/index.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-X5BDMSPS.js.map +0 -1
- /package/dist/{DesignCanvasEditor-6SQAQGOY.js.map → DesignCanvasEditor-CYFFF2LZ.js.map} +0 -0
- /package/dist/{chunk-IIAXUKV7.js.map → chunk-2V7YCTYU.js.map} +0 -0
- /package/dist/{chunk-M42DQ6HM.js.map → chunk-3KJAPMZB.js.map} +0 -0
- /package/dist/{chunk-X32H7TXZ.js.map → chunk-7JUQQEQY.js.map} +0 -0
- /package/dist/{chunk-V2BC73KQ.js.map → chunk-IUAPYE37.js.map} +0 -0
- /package/dist/{chunk-DNM5CN3R.js.map → chunk-UCXB3ZZ3.js.map} +0 -0
- /package/dist/{chunk-OWNWWT76.js.map → chunk-VHDBKP3G.js.map} +0 -0
- /package/dist/{chunk-YAIUAUWJ.js.map → chunk-XU6A5NT2.js.map} +0 -0
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-VCG4DQC4.js";
|
|
39
39
|
import {
|
|
40
40
|
lightTheme
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-27QO3AXJ.js";
|
|
42
42
|
|
|
43
43
|
// src/design-canvas-react/components/Workspace.tsx
|
|
44
44
|
import {
|
|
@@ -2123,4 +2123,4 @@ export {
|
|
|
2123
2123
|
Workspace,
|
|
2124
2124
|
DesignCanvasEditor
|
|
2125
2125
|
};
|
|
2126
|
-
//# sourceMappingURL=chunk-
|
|
2126
|
+
//# sourceMappingURL=chunk-IUAPYE37.js.map
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-OY7A6M7S.js";
|
|
5
5
|
import {
|
|
6
6
|
parseRenderUiSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7JUQQEQY.js";
|
|
8
8
|
import {
|
|
9
9
|
buildAppToolOpenAITools,
|
|
10
10
|
findCustomTool,
|
|
11
11
|
isAppToolName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3KJAPMZB.js";
|
|
13
13
|
import {
|
|
14
14
|
ToolInputError
|
|
15
15
|
} from "./chunk-F4XBNR5L.js";
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
createAppToolRuntimeExecutor,
|
|
213
213
|
handleAppToolRequest
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-UCXB3ZZ3.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-3CI35I4X.js";
|
|
5
5
|
import {
|
|
6
6
|
defineAppTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3KJAPMZB.js";
|
|
8
8
|
import {
|
|
9
9
|
ToolInputError
|
|
10
10
|
} from "./chunk-F4XBNR5L.js";
|
|
@@ -672,4 +672,4 @@ export {
|
|
|
672
672
|
PROFILE_MEMORY_PREFIX,
|
|
673
673
|
profileTools
|
|
674
674
|
};
|
|
675
|
-
//# sourceMappingURL=chunk-
|
|
675
|
+
//# sourceMappingURL=chunk-VHDBKP3G.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/design-canvas-react/lazy.tsx
|
|
2
2
|
import { lazy } from "react";
|
|
3
3
|
var DesignCanvasLazy = lazy(
|
|
4
|
-
() => import("./DesignCanvasEditor-
|
|
4
|
+
() => import("./DesignCanvasEditor-CYFFF2LZ.js").then((m) => ({ default: m.DesignCanvasEditor }))
|
|
5
5
|
);
|
|
6
6
|
var DesignCanvasChromeLazy = lazy(
|
|
7
7
|
() => import("./DesignCanvas-JA5O6Y6C.js").then((m) => ({ default: m.DesignCanvas }))
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
DesignCanvasLazy,
|
|
12
12
|
DesignCanvasChromeLazy
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-XU6A5NT2.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
bakeTextTransform,
|
|
12
12
|
exportDocumentJson,
|
|
13
13
|
exportPageDataUrl
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-IUAPYE37.js";
|
|
15
15
|
import {
|
|
16
16
|
BTN,
|
|
17
17
|
BTN_ACTIVE,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
import {
|
|
86
86
|
DesignCanvasChromeLazy,
|
|
87
87
|
DesignCanvasLazy
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-XU6A5NT2.js";
|
|
89
89
|
import {
|
|
90
90
|
LockGlyph
|
|
91
91
|
} from "../chunk-P4RRC4AO.js";
|
|
@@ -100,7 +100,7 @@ import "../chunk-ALIWB2P3.js";
|
|
|
100
100
|
import "../chunk-5VE4IDSU.js";
|
|
101
101
|
import "../chunk-V42C72V5.js";
|
|
102
102
|
import "../chunk-TXD5HXLE.js";
|
|
103
|
-
import "../chunk-
|
|
103
|
+
import "../chunk-27QO3AXJ.js";
|
|
104
104
|
|
|
105
105
|
// src/design-canvas-react/components/CanvasInsertPanel.tsx
|
|
106
106
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -35,9 +35,9 @@ import {
|
|
|
35
35
|
import "../chunk-K2JPSXKI.js";
|
|
36
36
|
import {
|
|
37
37
|
parseRenderUiSchema
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-7JUQQEQY.js";
|
|
39
39
|
import "../chunk-S5SRJJQG.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-7MVMNCRP.js";
|
|
41
41
|
import {
|
|
42
42
|
createTurnTrace
|
|
43
43
|
} from "../chunk-DCPOEDPK.js";
|
|
@@ -25,14 +25,14 @@ import "../chunk-K2JPSXKI.js";
|
|
|
25
25
|
import "../chunk-L3QR274L.js";
|
|
26
26
|
import "../chunk-XELWWXJJ.js";
|
|
27
27
|
import "../chunk-DSMGS4IV.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-UCXB3ZZ3.js";
|
|
29
29
|
import "../chunk-OY7A6M7S.js";
|
|
30
30
|
import "../chunk-O7UX55EU.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-7JUQQEQY.js";
|
|
32
32
|
import "../chunk-S5SRJJQG.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-3KJAPMZB.js";
|
|
34
34
|
import "../chunk-UGWQLQDS.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-7MVMNCRP.js";
|
|
36
36
|
import "../chunk-SYV7MIVP.js";
|
|
37
37
|
import "../chunk-D6UJEOZQ.js";
|
|
38
38
|
import "../chunk-DCPOEDPK.js";
|
package/dist/sandbox/index.js
CHANGED
|
@@ -165,14 +165,14 @@ import "../chunk-K2JPSXKI.js";
|
|
|
165
165
|
import "../chunk-L3QR274L.js";
|
|
166
166
|
import "../chunk-XELWWXJJ.js";
|
|
167
167
|
import "../chunk-DSMGS4IV.js";
|
|
168
|
-
import "../chunk-
|
|
168
|
+
import "../chunk-UCXB3ZZ3.js";
|
|
169
169
|
import "../chunk-OY7A6M7S.js";
|
|
170
170
|
import "../chunk-O7UX55EU.js";
|
|
171
|
-
import "../chunk-
|
|
171
|
+
import "../chunk-7JUQQEQY.js";
|
|
172
172
|
import "../chunk-S5SRJJQG.js";
|
|
173
|
-
import "../chunk-
|
|
173
|
+
import "../chunk-3KJAPMZB.js";
|
|
174
174
|
import "../chunk-UGWQLQDS.js";
|
|
175
|
-
import "../chunk-
|
|
175
|
+
import "../chunk-7MVMNCRP.js";
|
|
176
176
|
import "../chunk-D6UJEOZQ.js";
|
|
177
177
|
import "../chunk-DCPOEDPK.js";
|
|
178
178
|
import {
|
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
/** GENERATED from @tangle-network/brand/styles/legacy-light.css
|
|
2
|
-
* SHA-256:
|
|
2
|
+
* SHA-256: 8cff6457f4410070d3fcd2ee9384bb5444b0d6fb632e7b8fb860eb42dd121be2
|
|
3
3
|
* Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
|
|
4
4
|
export declare const brandThemes: {
|
|
5
5
|
readonly light: {
|
|
6
|
-
readonly background: "
|
|
7
|
-
readonly foreground: "0 0%
|
|
6
|
+
readonly background: "225 26.6667% 94.1176%";
|
|
7
|
+
readonly foreground: "0 0% 24.7059%";
|
|
8
8
|
readonly card: "0 0% 100%";
|
|
9
|
-
readonly cardForeground: "0 0%
|
|
9
|
+
readonly cardForeground: "0 0% 24.7059%";
|
|
10
10
|
readonly popover: "0 0% 100%";
|
|
11
|
-
readonly popoverForeground: "0 0%
|
|
12
|
-
readonly primary: "
|
|
11
|
+
readonly popoverForeground: "0 0% 24.7059%";
|
|
12
|
+
readonly primary: "246.2264 92.1739% 54.902%";
|
|
13
13
|
readonly primaryForeground: "0 0% 100%";
|
|
14
|
-
readonly secondary: "
|
|
15
|
-
readonly secondaryForeground: "0 0%
|
|
16
|
-
readonly muted: "
|
|
17
|
-
readonly mutedForeground: "0 0%
|
|
18
|
-
readonly accent: "
|
|
19
|
-
readonly accentForeground: "0 0%
|
|
20
|
-
readonly destructive: "0
|
|
14
|
+
readonly secondary: "225 28.5714% 94.5098%";
|
|
15
|
+
readonly secondaryForeground: "0 0% 24.7059%";
|
|
16
|
+
readonly muted: "225 28.5714% 94.5098%";
|
|
17
|
+
readonly mutedForeground: "0 0% 36.4706%";
|
|
18
|
+
readonly accent: "225 28.5714% 94.5098%";
|
|
19
|
+
readonly accentForeground: "0 0% 24.7059%";
|
|
20
|
+
readonly destructive: "0 75.1244% 39.4118%";
|
|
21
21
|
readonly destructiveForeground: "0 0% 100%";
|
|
22
|
-
readonly border: "
|
|
23
|
-
readonly input: "0 0%
|
|
24
|
-
readonly ring: "
|
|
25
|
-
readonly success: "
|
|
26
|
-
readonly warning: "
|
|
22
|
+
readonly border: "222.8571 6.6667% 79.4118%";
|
|
23
|
+
readonly input: "0 0% 36.4706%";
|
|
24
|
+
readonly ring: "245.9504 54.2601% 56.2745%";
|
|
25
|
+
readonly success: "154.8148 64.8% 24.5098%";
|
|
26
|
+
readonly warning: "38.2979 65.2778% 28.2353%";
|
|
27
27
|
readonly successForeground: "0 0% 100%";
|
|
28
28
|
readonly warningForeground: "0 0% 100%";
|
|
29
|
-
readonly warningStrong: "
|
|
30
|
-
readonly inputFill: "hsl(
|
|
31
|
-
readonly canvasBackdrop: "
|
|
32
|
-
readonly borderSoft: "hsl(
|
|
33
|
-
readonly cardEdge: "hsl(
|
|
29
|
+
readonly warningStrong: "38.2979 65.2778% 28.2353%";
|
|
30
|
+
readonly inputFill: "hsl(231.4286 46.6667% 97.0588%)";
|
|
31
|
+
readonly canvasBackdrop: "hsl(231.4286 11.4754% 88.0392%)";
|
|
32
|
+
readonly borderSoft: "hsl(222.8571 6.6667% 79.4118%)";
|
|
33
|
+
readonly cardEdge: "hsl(222.8571 6.6667% 79.4118%)";
|
|
34
34
|
readonly canvasRender: {
|
|
35
|
-
readonly grid: "#
|
|
36
|
-
readonly snapGrid: "#
|
|
37
|
-
readonly snapGuide: "#
|
|
38
|
-
readonly snapPage: "#
|
|
39
|
-
readonly snapElement: "#
|
|
40
|
-
readonly selectionStroke: "#
|
|
35
|
+
readonly grid: "#c7c9ce";
|
|
36
|
+
readonly snapGrid: "#5d5d5d";
|
|
37
|
+
readonly snapGuide: "#1c6085";
|
|
38
|
+
readonly snapPage: "#775519";
|
|
39
|
+
readonly snapElement: "#b01919";
|
|
40
|
+
readonly selectionStroke: "#3822f6";
|
|
41
41
|
readonly selectionAnchorFill: "#ffffff";
|
|
42
|
-
readonly placeholderFill: "#
|
|
43
|
-
readonly placeholderStroke: "#
|
|
44
|
-
readonly brokenFill: "#
|
|
45
|
-
readonly brokenStroke: "#
|
|
42
|
+
readonly placeholderFill: "#f4f5fb";
|
|
43
|
+
readonly placeholderStroke: "#c7c9ce";
|
|
44
|
+
readonly brokenFill: "#edeff5";
|
|
45
|
+
readonly brokenStroke: "#5d5d5d";
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
readonly dark: {
|
|
49
|
-
readonly background: "
|
|
50
|
-
readonly foreground: "0 0%
|
|
51
|
-
readonly card: "244
|
|
52
|
-
readonly cardForeground: "0 0%
|
|
53
|
-
readonly popover: "
|
|
54
|
-
readonly popoverForeground: "0 0%
|
|
55
|
-
readonly primary: "
|
|
49
|
+
readonly background: "246.6667 31.0345% 5.6863%";
|
|
50
|
+
readonly foreground: "0 0% 84.3137%";
|
|
51
|
+
readonly card: "244.2857 22.5806% 12.1569%";
|
|
52
|
+
readonly cardForeground: "0 0% 84.3137%";
|
|
53
|
+
readonly popover: "242.7273 18.9655% 22.7451%";
|
|
54
|
+
readonly popoverForeground: "0 0% 84.3137%";
|
|
55
|
+
readonly primary: "245.5556 93.1034% 88.6275%";
|
|
56
56
|
readonly primaryForeground: "0 0% 0%";
|
|
57
|
-
readonly secondary: "
|
|
58
|
-
readonly secondaryForeground: "0 0%
|
|
59
|
-
readonly muted: "
|
|
60
|
-
readonly mutedForeground: "
|
|
61
|
-
readonly accent: "
|
|
62
|
-
readonly accentForeground: "0 0%
|
|
63
|
-
readonly destructive: "
|
|
57
|
+
readonly secondary: "243.3333 20.4545% 17.2549%";
|
|
58
|
+
readonly secondaryForeground: "0 0% 84.3137%";
|
|
59
|
+
readonly muted: "243.3333 20.4545% 17.2549%";
|
|
60
|
+
readonly mutedForeground: "0 0% 67.0588%";
|
|
61
|
+
readonly accent: "243.3333 20.4545% 17.2549%";
|
|
62
|
+
readonly accentForeground: "0 0% 84.3137%";
|
|
63
|
+
readonly destructive: "0 74.4681% 90.7843%";
|
|
64
64
|
readonly destructiveForeground: "0 0% 0%";
|
|
65
|
-
readonly border: "
|
|
66
|
-
readonly input: "
|
|
67
|
-
readonly ring: "
|
|
68
|
-
readonly success: "
|
|
69
|
-
readonly warning: "
|
|
65
|
+
readonly border: "245 18.4615% 25.4902%";
|
|
66
|
+
readonly input: "0 0% 67.0588%";
|
|
67
|
+
readonly ring: "245.5556 93.1034% 88.6275%";
|
|
68
|
+
readonly success: "155.1429 64.8148% 78.8235%";
|
|
69
|
+
readonly warning: "38.5714 65.1163% 83.1373%";
|
|
70
70
|
readonly successForeground: "0 0% 0%";
|
|
71
71
|
readonly warningForeground: "0 0% 0%";
|
|
72
|
-
readonly warningStrong: "
|
|
73
|
-
readonly inputFill: "hsl(
|
|
74
|
-
readonly canvasBackdrop: "
|
|
75
|
-
readonly borderSoft: "hsl(
|
|
76
|
-
readonly cardEdge: "hsl(
|
|
72
|
+
readonly warningStrong: "38.5714 65.1163% 83.1373%";
|
|
73
|
+
readonly inputFill: "hsl(245 26.087% 9.0196%)";
|
|
74
|
+
readonly canvasBackdrop: "hsl(240 33.3333% 2.3529%)";
|
|
75
|
+
readonly borderSoft: "hsl(245 18.4615% 25.4902%)";
|
|
76
|
+
readonly cardEdge: "hsl(245 18.4615% 25.4902%)";
|
|
77
77
|
readonly canvasRender: {
|
|
78
|
-
readonly grid: "#
|
|
79
|
-
readonly snapGrid: "#
|
|
80
|
-
readonly snapGuide: "#
|
|
81
|
-
readonly snapPage: "#
|
|
82
|
-
readonly snapElement: "#
|
|
83
|
-
readonly selectionStroke: "#
|
|
84
|
-
readonly selectionAnchorFill: "#
|
|
85
|
-
readonly placeholderFill: "#
|
|
86
|
-
readonly placeholderStroke: "#
|
|
87
|
-
readonly brokenFill: "#
|
|
88
|
-
readonly brokenStroke: "#
|
|
78
|
+
readonly grid: "#37354d";
|
|
79
|
+
readonly snapGrid: "#ababab";
|
|
80
|
+
readonly snapGuide: "#c4e2f3";
|
|
81
|
+
readonly snapPage: "#f0dcb8";
|
|
82
|
+
readonly snapElement: "#f9d6d6";
|
|
83
|
+
readonly selectionStroke: "#ccc7fd";
|
|
84
|
+
readonly selectionAnchorFill: "#302f45";
|
|
85
|
+
readonly placeholderFill: "#12111d";
|
|
86
|
+
readonly placeholderStroke: "#37354d";
|
|
87
|
+
readonly brokenFill: "#242335";
|
|
88
|
+
readonly brokenStroke: "#ababab";
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
};
|
package/dist/theme/dom.js
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
applyThemeDom,
|
|
6
6
|
shouldFollowSystemTheme,
|
|
7
7
|
syncThemePreference
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-2V7YCTYU.js";
|
|
9
|
+
import "../chunk-27QO3AXJ.js";
|
|
10
10
|
export {
|
|
11
11
|
DARK_THEME_COLOR,
|
|
12
12
|
LIGHT_THEME_COLOR,
|
package/dist/theme/index.js
CHANGED
|
@@ -41,10 +41,8 @@ var agentAppPreset = {
|
|
|
41
41
|
},
|
|
42
42
|
// Approval cards use a light tint; their label needs Brand's stronger
|
|
43
43
|
// warning ink. The solid warning chip keeps its own foreground pairing.
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
// bright indigo for accent text in --accent-text (retinted per named
|
|
47
|
-
// theme), so text-primary paints that while bg-primary keeps the fill.
|
|
44
|
+
// Primary text follows Brand accent ink. Solid controls use the same
|
|
45
|
+
// generated ink channels with their AA foreground pairing.
|
|
48
46
|
textColor: {
|
|
49
47
|
primary: {
|
|
50
48
|
DEFAULT: tier("--accent-text"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/theme/tailwind-preset.ts"],"sourcesContent":["/** Agent App's compatibility names over Brand's current tokens. Pair with ./styles. */\nconst withForeground = (name: string) => ({\n DEFAULT: `hsl(var(--${name}))`,\n foreground: `hsl(var(--${name}-foreground))`,\n})\n// Full-color tiers need an explicit alpha placeholder for Tailwind v3 /50 users.\nconst tier = (token: string) => `color-mix(in oklch, var(${token}) calc(<alpha-value> * 100%), transparent)`\n\n// The dark scopes Brand and tokens.css recognise: the `.dark` class (also how\n// Brand spells its dark named themes, `.dark[data-theme=\"hospitality\"]`) and\n// `[data-theme=\"dark\"]`. A `.light` or `*-light` boundary inside a dark scope\n// turns `dark:` off again, and a dark scope inside that light island turns it\n// back on, so a utility follows the nearest boundary for two nested levels.\nconst DARK = ':is(.dark, [data-theme=\"dark\"])'\nconst LIGHT = ':is(.light, [data-theme=\"light\"], [data-theme$=\"-light\"])'\nconst darkVariant = `&:is(${DARK} *:not(${LIGHT} *), ${LIGHT} ${DARK} *)`\n\nconst agentAppPreset = {\n darkMode: ['variant', darkVariant] as [string, string],\n theme: {\n extend: {\n colors: {\n background: 'hsl(var(--background))',\n foreground: 'hsl(var(--foreground))',\n border: 'hsl(var(--border))',\n input: 'hsl(var(--input))',\n 'input-fill': 'var(--bg-input)',\n ring: 'hsl(var(--ring))',\n success: withForeground('success'),\n warning: { ...withForeground('warning'), strong: 'hsl(var(--warning-strong))' },\n card: withForeground('card'),\n popover: withForeground('popover'),\n primary: withForeground('primary'),\n secondary: withForeground('secondary'),\n muted: withForeground('muted'),\n accent: withForeground('accent'),\n destructive: withForeground('destructive'),\n // Do not compress Brand's MD3 ladder onto three shadcn surfaces.\n 'surface-container-lowest': 'var(--md3-surface-container-lowest)',\n 'surface-container-low': 'var(--md3-surface-container-low)',\n 'surface-container': 'var(--md3-surface-container)',\n 'surface-container-high': 'var(--md3-surface-container-high)',\n 'surface-container-highest': 'var(--md3-surface-container-highest)',\n },\n // A field's well and edge are separate Brand roles. Keep border-input\n // on --input while bg-input paints the full-color recessed well.\n backgroundColor: {\n input: 'color-mix(in oklch, var(--bg-input) calc(<alpha-value> * 100%), transparent)',\n },\n // Approval cards use a light tint; their label needs Brand's stronger\n // warning ink. The solid warning chip keeps its own foreground pairing.\n //
|
|
1
|
+
{"version":3,"sources":["../../src/theme/tailwind-preset.ts"],"sourcesContent":["/** Agent App's compatibility names over Brand's current tokens. Pair with ./styles. */\nconst withForeground = (name: string) => ({\n DEFAULT: `hsl(var(--${name}))`,\n foreground: `hsl(var(--${name}-foreground))`,\n})\n// Full-color tiers need an explicit alpha placeholder for Tailwind v3 /50 users.\nconst tier = (token: string) => `color-mix(in oklch, var(${token}) calc(<alpha-value> * 100%), transparent)`\n\n// The dark scopes Brand and tokens.css recognise: the `.dark` class (also how\n// Brand spells its dark named themes, `.dark[data-theme=\"hospitality\"]`) and\n// `[data-theme=\"dark\"]`. A `.light` or `*-light` boundary inside a dark scope\n// turns `dark:` off again, and a dark scope inside that light island turns it\n// back on, so a utility follows the nearest boundary for two nested levels.\nconst DARK = ':is(.dark, [data-theme=\"dark\"])'\nconst LIGHT = ':is(.light, [data-theme=\"light\"], [data-theme$=\"-light\"])'\nconst darkVariant = `&:is(${DARK} *:not(${LIGHT} *), ${LIGHT} ${DARK} *)`\n\nconst agentAppPreset = {\n darkMode: ['variant', darkVariant] as [string, string],\n theme: {\n extend: {\n colors: {\n background: 'hsl(var(--background))',\n foreground: 'hsl(var(--foreground))',\n border: 'hsl(var(--border))',\n input: 'hsl(var(--input))',\n 'input-fill': 'var(--bg-input)',\n ring: 'hsl(var(--ring))',\n success: withForeground('success'),\n warning: { ...withForeground('warning'), strong: 'hsl(var(--warning-strong))' },\n card: withForeground('card'),\n popover: withForeground('popover'),\n primary: withForeground('primary'),\n secondary: withForeground('secondary'),\n muted: withForeground('muted'),\n accent: withForeground('accent'),\n destructive: withForeground('destructive'),\n // Do not compress Brand's MD3 ladder onto three shadcn surfaces.\n 'surface-container-lowest': 'var(--md3-surface-container-lowest)',\n 'surface-container-low': 'var(--md3-surface-container-low)',\n 'surface-container': 'var(--md3-surface-container)',\n 'surface-container-high': 'var(--md3-surface-container-high)',\n 'surface-container-highest': 'var(--md3-surface-container-highest)',\n },\n // A field's well and edge are separate Brand roles. Keep border-input\n // on --input while bg-input paints the full-color recessed well.\n backgroundColor: {\n input: 'color-mix(in oklch, var(--bg-input) calc(<alpha-value> * 100%), transparent)',\n },\n // Approval cards use a light tint; their label needs Brand's stronger\n // warning ink. The solid warning chip keeps its own foreground pairing.\n // Primary text follows Brand accent ink. Solid controls use the same\n // generated ink channels with their AA foreground pairing.\n textColor: {\n primary: {\n DEFAULT: tier('--accent-text'),\n foreground: 'hsl(var(--primary-foreground))',\n },\n warning: {\n DEFAULT: 'hsl(var(--warning-strong))',\n foreground: 'hsl(var(--warning-foreground))',\n strong: 'hsl(var(--warning-strong))',\n },\n },\n boxShadow: { raised: 'var(--shadow-raised)', overlay: 'var(--shadow-overlay)' },\n borderColor: {\n border: tier('--border-soft'),\n 'card-edge': tier('--card-edge'),\n strong: 'hsl(var(--border))',\n },\n borderRadius: { control: 'var(--radius-sm)', card: 'var(--radius-lg)', surface: 'var(--radius-2xl)' },\n transitionDuration: {\n instant: 'var(--duration-instant)', fast: 'var(--duration-fast)',\n base: 'var(--duration-base)', slow: 'var(--duration-slow)',\n },\n transitionTimingFunction: {\n standard: 'var(--ease-standard)', entrance: 'var(--ease-entrance)', exit: 'var(--ease-exit)',\n },\n keyframes: {\n slideDown: { from: { height: '0' }, to: { height: 'var(--radix-collapsible-content-height)' } },\n slideUp: { from: { height: 'var(--radix-collapsible-content-height)' }, to: { height: '0' } },\n },\n animation: {\n slideDown: 'slideDown var(--duration-base) var(--ease-entrance)',\n slideUp: 'slideUp var(--duration-fast) var(--ease-exit)',\n },\n },\n },\n}\nexport default agentAppPreset\n"],"mappings":";AACA,IAAM,iBAAiB,CAAC,UAAkB;AAAA,EACxC,SAAS,aAAa,IAAI;AAAA,EAC1B,YAAY,aAAa,IAAI;AAC/B;AAEA,IAAM,OAAO,CAAC,UAAkB,2BAA2B,KAAK;AAOhE,IAAM,OAAO;AACb,IAAM,QAAQ;AACd,IAAM,cAAc,QAAQ,IAAI,UAAU,KAAK,QAAQ,KAAK,IAAI,IAAI;AAEpE,IAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC,WAAW,WAAW;AAAA,EACjC,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,QAAQ;AAAA,QACN,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,cAAc;AAAA,QACd,MAAM;AAAA,QACN,SAAS,eAAe,SAAS;AAAA,QACjC,SAAS,EAAE,GAAG,eAAe,SAAS,GAAG,QAAQ,6BAA6B;AAAA,QAC9E,MAAM,eAAe,MAAM;AAAA,QAC3B,SAAS,eAAe,SAAS;AAAA,QACjC,SAAS,eAAe,SAAS;AAAA,QACjC,WAAW,eAAe,WAAW;AAAA,QACrC,OAAO,eAAe,OAAO;AAAA,QAC7B,QAAQ,eAAe,QAAQ;AAAA,QAC/B,aAAa,eAAe,aAAa;AAAA;AAAA,QAEzC,4BAA4B;AAAA,QAC5B,yBAAyB;AAAA,QACzB,qBAAqB;AAAA,QACrB,0BAA0B;AAAA,QAC1B,6BAA6B;AAAA,MAC/B;AAAA;AAAA;AAAA,MAGA,iBAAiB;AAAA,QACf,OAAO;AAAA,MACT;AAAA;AAAA;AAAA;AAAA;AAAA,MAKA,WAAW;AAAA,QACT,SAAS;AAAA,UACP,SAAS,KAAK,eAAe;AAAA,UAC7B,YAAY;AAAA,QACd;AAAA,QACA,SAAS;AAAA,UACP,SAAS;AAAA,UACT,YAAY;AAAA,UACZ,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,MACA,WAAW,EAAE,QAAQ,wBAAwB,SAAS,wBAAwB;AAAA,MAC9E,aAAa;AAAA,QACX,QAAQ,KAAK,eAAe;AAAA,QAC5B,aAAa,KAAK,aAAa;AAAA,QAC/B,QAAQ;AAAA,MACV;AAAA,MACA,cAAc,EAAE,SAAS,oBAAoB,MAAM,oBAAoB,SAAS,oBAAoB;AAAA,MACpG,oBAAoB;AAAA,QAClB,SAAS;AAAA,QAA2B,MAAM;AAAA,QAC1C,MAAM;AAAA,QAAwB,MAAM;AAAA,MACtC;AAAA,MACA,0BAA0B;AAAA,QACxB,UAAU;AAAA,QAAwB,UAAU;AAAA,QAAwB,MAAM;AAAA,MAC5E;AAAA,MACA,WAAW;AAAA,QACT,WAAW,EAAE,MAAM,EAAE,QAAQ,IAAI,GAAG,IAAI,EAAE,QAAQ,0CAA0C,EAAE;AAAA,QAC9F,SAAS,EAAE,MAAM,EAAE,QAAQ,0CAA0C,GAAG,IAAI,EAAE,QAAQ,IAAI,EAAE;AAAA,MAC9F;AAAA,MACA,WAAW;AAAA,QACT,WAAW;AAAA,QACX,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AACF;AACA,IAAO,0BAAQ;","names":[]}
|