@pollinations/ui 0.1.0-alpha.14 → 0.1.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/app-user-menu/sdk.js +50 -752
- package/dist/app-user-menu/sdk.js.map +1 -1
- package/dist/auth/index.js +91 -1131
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/sdk.js +9 -211
- package/dist/auth/sdk.js.map +1 -1
- package/dist/chunk-3VM5R3OI.js +50 -0
- package/dist/chunk-3VM5R3OI.js.map +1 -0
- package/dist/chunk-7GDUPN6U.js +115 -0
- package/dist/chunk-7GDUPN6U.js.map +1 -0
- package/dist/{app-user-menu/sdk.cjs → chunk-7WXDUAJU.js} +96 -751
- package/dist/chunk-7WXDUAJU.js.map +1 -0
- package/dist/chunk-7XDOOFTL.js +105 -0
- package/dist/chunk-7XDOOFTL.js.map +1 -0
- package/dist/chunk-DD7MHUFD.js +93 -0
- package/dist/chunk-DD7MHUFD.js.map +1 -0
- package/dist/chunk-FLQFOTMR.js +107 -0
- package/dist/chunk-FLQFOTMR.js.map +1 -0
- package/dist/chunk-IS4CNKV3.js +252 -0
- package/dist/chunk-IS4CNKV3.js.map +1 -0
- package/dist/chunk-IX6BJNHM.js +58 -0
- package/dist/chunk-IX6BJNHM.js.map +1 -0
- package/dist/chunk-K2H3JFQK.js +576 -0
- package/dist/chunk-K2H3JFQK.js.map +1 -0
- package/dist/chunk-LKUZU37X.js +15 -0
- package/dist/chunk-LKUZU37X.js.map +1 -0
- package/dist/chunk-QAR2WP3L.js +364 -0
- package/dist/chunk-QAR2WP3L.js.map +1 -0
- package/dist/chunk-QFR7XRUE.js +534 -0
- package/dist/chunk-QFR7XRUE.js.map +1 -0
- package/dist/chunk-TVPFAM3B.js +88 -0
- package/dist/chunk-TVPFAM3B.js.map +1 -0
- package/dist/chunk-ZLD4VLUG.js +112 -0
- package/dist/chunk-ZLD4VLUG.js.map +1 -0
- package/dist/gen/index.js +49 -494
- package/dist/gen/index.js.map +1 -1
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.js +576 -2629
- package/dist/index.js.map +1 -1
- package/dist/markdown.js +45 -599
- package/dist/markdown.js.map +1 -1
- package/dist/wallet/index.js +17 -374
- package/dist/wallet/index.js.map +1 -1
- package/package.json +10 -16
- package/dist/Button-BGqClaBr.d.cts +0 -29
- package/dist/Chip-v-ADv6cz.d.cts +0 -18
- package/dist/Dialog-D3Nqt8cE.d.cts +0 -66
- package/dist/app-user-menu/sdk.cjs.map +0 -1
- package/dist/app-user-menu/sdk.d.cts +0 -29
- package/dist/auth/index.cjs +0 -1537
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.cts +0 -114
- package/dist/auth/sdk.cjs +0 -250
- package/dist/auth/sdk.cjs.map +0 -1
- package/dist/auth/sdk.d.cts +0 -40
- package/dist/gen/index.cjs +0 -718
- package/dist/gen/index.cjs.map +0 -1
- package/dist/gen/index.d.cts +0 -91
- package/dist/index.cjs +0 -5365
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -1051
- package/dist/markdown.cjs +0 -838
- package/dist/markdown.cjs.map +0 -1
- package/dist/markdown.d.cts +0 -16
- package/dist/types-CCy9JNu9.d.cts +0 -6
- package/dist/wallet/index.cjs +0 -433
- package/dist/wallet/index.cjs.map +0 -1
- package/dist/wallet/index.d.cts +0 -53
package/dist/index.js
CHANGED
|
@@ -1,977 +1,144 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
import {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 8V4H8" }),
|
|
133
|
-
/* @__PURE__ */ jsx3("rect", { x: "4", y: "8", width: "16", height: "12", rx: "2" }),
|
|
134
|
-
/* @__PURE__ */ jsx3("path", { d: "M2 14h2M20 14h2" }),
|
|
135
|
-
/* @__PURE__ */ jsx3("path", { d: "M9 13v2M15 13v2" })
|
|
136
|
-
] });
|
|
137
|
-
}
|
|
138
|
-
function BookIcon(props) {
|
|
139
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
140
|
-
/* @__PURE__ */ jsx3("path", { d: "M4 4h5a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4z" }),
|
|
141
|
-
/* @__PURE__ */ jsx3("path", { d: "M20 4h-5a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h6z" })
|
|
142
|
-
] });
|
|
143
|
-
}
|
|
144
|
-
function BugIcon(props) {
|
|
145
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
146
|
-
/* @__PURE__ */ jsx3("path", { d: "m8 2 1.9 1.9M14.1 3.9 16 2" }),
|
|
147
|
-
/* @__PURE__ */ jsx3("path", { d: "M9 7V6a3 3 0 0 1 6 0v1" }),
|
|
148
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 20c-3.3 0-6-2.7-6-6v-3a6 6 0 0 1 12 0v3c0 3.3-2.7 6-6 6Z" }),
|
|
149
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 20v-9M6.5 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M17.5 9C19.4 8.8 21 7.1 21 5M18 13h4M21 21c0-2.1-1.7-3.9-3.8-4" })
|
|
150
|
-
] });
|
|
151
|
-
}
|
|
152
|
-
function CheckIcon(props) {
|
|
153
|
-
return /* @__PURE__ */ jsx3(
|
|
154
|
-
"svg",
|
|
155
|
-
{
|
|
156
|
-
"aria-hidden": "true",
|
|
157
|
-
viewBox: "0 0 24 24",
|
|
158
|
-
...strokeProps,
|
|
159
|
-
strokeWidth: 2.5,
|
|
160
|
-
...props,
|
|
161
|
-
children: /* @__PURE__ */ jsx3("polyline", { points: "20 6 9 17 4 12" })
|
|
162
|
-
}
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
function ClipboardIcon(props) {
|
|
166
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
167
|
-
/* @__PURE__ */ jsx3("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2" }),
|
|
168
|
-
/* @__PURE__ */ jsx3("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
169
|
-
] });
|
|
170
|
-
}
|
|
171
|
-
function ClockIcon(props) {
|
|
172
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
173
|
-
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
174
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 7v5l3 2" })
|
|
175
|
-
] });
|
|
176
|
-
}
|
|
177
|
-
function DiscordIcon(props) {
|
|
178
|
-
return /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", ...props, children: /* @__PURE__ */ jsx3(
|
|
179
|
-
"path",
|
|
180
|
-
{
|
|
181
|
-
fill: "currentColor",
|
|
182
|
-
d: "M20.32 4.37A19.8 19.8 0 0 0 15.36 2.83a.07.07 0 0 0-.08.04c-.21.38-.45.88-.62 1.27a18.27 18.27 0 0 0-5.52 0 12.84 12.84 0 0 0-.63-1.27.08.08 0 0 0-.08-.04A19.74 19.74 0 0 0 3.47 4.37a.07.07 0 0 0-.03.03C.31 9.07-.55 13.61-.13 18.1a.08.08 0 0 0 .03.06 19.9 19.9 0 0 0 6.08 3.07.08.08 0 0 0 .09-.03c.47-.64.88-1.31 1.24-2.02a.08.08 0 0 0-.04-.1 13.08 13.08 0 0 1-1.9-.91.08.08 0 0 1-.01-.13c.13-.1.25-.2.37-.29a.07.07 0 0 1 .08-.01 14.24 14.24 0 0 0 12.38 0 .07.07 0 0 1 .08.01c.12.1.25.2.38.3a.08.08 0 0 1-.01.12 12.22 12.22 0 0 1-1.9.9.08.08 0 0 0-.04.11c.36.7.77 1.38 1.23 2.02a.08.08 0 0 0 .1.03 19.84 19.84 0 0 0 6.08-3.07.08.08 0 0 0 .03-.05c.5-5.2-.84-9.7-3.77-13.71a.06.06 0 0 0-.03-.03ZM8.02 15.37c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.96 2.4-2.16 2.4Zm7.96 0c-1.18 0-2.16-1.08-2.16-2.4 0-1.32.96-2.4 2.16-2.4 1.2 0 2.18 1.09 2.16 2.4 0 1.32-.95 2.4-2.16 2.4Z"
|
|
183
|
-
}
|
|
184
|
-
) });
|
|
185
|
-
}
|
|
186
|
-
function InstagramIcon(props) {
|
|
187
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
188
|
-
/* @__PURE__ */ jsx3("rect", { x: "3", y: "3", width: "18", height: "18", rx: "5" }),
|
|
189
|
-
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "4" }),
|
|
190
|
-
/* @__PURE__ */ jsx3(
|
|
191
|
-
"circle",
|
|
192
|
-
{
|
|
193
|
-
cx: "17.5",
|
|
194
|
-
cy: "6.5",
|
|
195
|
-
r: "1",
|
|
196
|
-
fill: "currentColor",
|
|
197
|
-
stroke: "none"
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
] });
|
|
201
|
-
}
|
|
202
|
-
function XSocialIcon(props) {
|
|
203
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx3(
|
|
204
|
-
"path",
|
|
205
|
-
{
|
|
206
|
-
fill: "currentColor",
|
|
207
|
-
d: "M18.24 2.25h3.31l-7.23 8.26 8.51 11.24h-6.66l-5.21-6.82-5.97 6.82H1.68l7.73-8.84L1.25 2.25h6.83l4.71 6.23 5.45-6.23Zm-1.16 17.52h1.83L7.08 4.13H5.12l11.96 15.64Z"
|
|
208
|
-
}
|
|
209
|
-
) });
|
|
210
|
-
}
|
|
211
|
-
function LinkedInIcon(props) {
|
|
212
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx3(
|
|
213
|
-
"path",
|
|
214
|
-
{
|
|
215
|
-
fill: "currentColor",
|
|
216
|
-
d: "M20.45 20.45h-3.56v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.94v5.67H9.34V9h3.42v1.56h.05c.47-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28ZM5.32 7.43a2.07 2.07 0 1 1 0-4.13 2.07 2.07 0 0 1 0 4.13ZM7.1 20.45H3.54V9H7.1v11.45Z"
|
|
217
|
-
}
|
|
218
|
-
) });
|
|
219
|
-
}
|
|
220
|
-
function DownloadIcon(props) {
|
|
221
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
222
|
-
/* @__PURE__ */ jsx3("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
|
|
223
|
-
/* @__PURE__ */ jsx3("polyline", { points: "7 10 12 15 17 10" }),
|
|
224
|
-
/* @__PURE__ */ jsx3("line", { x1: "12", y1: "15", x2: "12", y2: "3" })
|
|
225
|
-
] });
|
|
226
|
-
}
|
|
227
|
-
function ExpandIcon(props) {
|
|
228
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M8 3H3v5M16 3h5v5M21 16v5h-5M3 16v5h5" }) });
|
|
229
|
-
}
|
|
230
|
-
function PlayIcon(props) {
|
|
231
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx3("path", { fill: "currentColor", d: "M7 4.5v15l12-7.5z" }) });
|
|
232
|
-
}
|
|
233
|
-
function PauseIcon(props) {
|
|
234
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx3("path", { fill: "currentColor", d: "M6 4h4v16H6zM14 4h4v16h-4z" }) });
|
|
235
|
-
}
|
|
236
|
-
function CloudUploadIcon(props) {
|
|
237
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
238
|
-
/* @__PURE__ */ jsx3("path", { d: "M17.5 19H19a4 4 0 0 0 .4-8A7.5 7.5 0 0 0 5 9.5 5 5 0 0 0 6 19h1.5" }),
|
|
239
|
-
/* @__PURE__ */ jsx3("path", { d: "m8.5 15.5 3.5-3.5 3.5 3.5M12 12v9" })
|
|
240
|
-
] });
|
|
241
|
-
}
|
|
242
|
-
function ExternalLinkIcon(props) {
|
|
243
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M7 17 17 7M9 7h8v8" }) });
|
|
244
|
-
}
|
|
245
|
-
function GenApiIcon(props) {
|
|
246
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
247
|
-
/* @__PURE__ */ jsx3("path", { d: "m8 3 4 1.5L16 3v18l-4-1.5L8 21z" }),
|
|
248
|
-
/* @__PURE__ */ jsx3("path", { d: "M8 3v18M16 3v18" })
|
|
249
|
-
] });
|
|
250
|
-
}
|
|
251
|
-
function GitBranchIcon(props) {
|
|
252
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
253
|
-
/* @__PURE__ */ jsx3("line", { x1: "6", y1: "3", x2: "6", y2: "15" }),
|
|
254
|
-
/* @__PURE__ */ jsx3("circle", { cx: "18", cy: "6", r: "3" }),
|
|
255
|
-
/* @__PURE__ */ jsx3("circle", { cx: "6", cy: "18", r: "3" }),
|
|
256
|
-
/* @__PURE__ */ jsx3("path", { d: "M18 9a9 9 0 0 1-9 9" })
|
|
257
|
-
] });
|
|
258
|
-
}
|
|
259
|
-
function GitPullRequestIcon(props) {
|
|
260
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
261
|
-
/* @__PURE__ */ jsx3("circle", { cx: "6", cy: "6", r: "3" }),
|
|
262
|
-
/* @__PURE__ */ jsx3("circle", { cx: "18", cy: "18", r: "3" }),
|
|
263
|
-
/* @__PURE__ */ jsx3("path", { d: "M6 9v12M13 6h3a2 2 0 0 1 2 2v7" })
|
|
264
|
-
] });
|
|
265
|
-
}
|
|
266
|
-
function GraduationCapIcon(props) {
|
|
267
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
268
|
-
/* @__PURE__ */ jsx3("path", { d: "M21.42 10.92a1 1 0 0 0-.02-1.84L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.83l8.57 3.91a2 2 0 0 0 1.66 0z" }),
|
|
269
|
-
/* @__PURE__ */ jsx3("path", { d: "M22 10v6" }),
|
|
270
|
-
/* @__PURE__ */ jsx3("path", { d: "M6 12.5V16a6 3 0 0 0 12 0v-3.5" })
|
|
271
|
-
] });
|
|
272
|
-
}
|
|
273
|
-
function SparklesIcon(props) {
|
|
274
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M12 3l1.9 5.8a2 2 0 0 0 1.3 1.3L21 12l-5.8 1.9a2 2 0 0 0-1.3 1.3L12 21l-1.9-5.8a2 2 0 0 0-1.3-1.3L3 12l5.8-1.9a2 2 0 0 0 1.3-1.3z" }) });
|
|
275
|
-
}
|
|
276
|
-
function GitHubIcon(props) {
|
|
277
|
-
return /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", ...props, children: /* @__PURE__ */ jsx3(
|
|
278
|
-
"path",
|
|
279
|
-
{
|
|
280
|
-
fill: "currentColor",
|
|
281
|
-
d: "M12 .5A11.5 11.5 0 0 0 8.36 22.9c.58.11.79-.25.79-.56v-2.16c-3.21.7-3.89-1.38-3.89-1.38-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.76 2.71 1.25 3.37.96.11-.75.4-1.25.74-1.54-2.56-.29-5.26-1.28-5.26-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.06 0 0 .97-.31 3.16 1.18a10.88 10.88 0 0 1 5.76 0c2.19-1.49 3.15-1.18 3.15-1.18.63 1.6.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.14v3.19c0 .31.21.68.8.56A11.5 11.5 0 0 0 12 .5Z"
|
|
282
|
-
}
|
|
283
|
-
) });
|
|
284
|
-
}
|
|
285
|
-
function ImageIcon(props) {
|
|
286
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
287
|
-
/* @__PURE__ */ jsx3("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
288
|
-
/* @__PURE__ */ jsx3("circle", { cx: "9", cy: "9", r: "2" }),
|
|
289
|
-
/* @__PURE__ */ jsx3("path", { d: "m21 15-5-5L5 21" })
|
|
290
|
-
] });
|
|
291
|
-
}
|
|
292
|
-
function CubeIcon(props) {
|
|
293
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
294
|
-
/* @__PURE__ */ jsx3("path", { d: "m21 16-9 5-9-5V8l9-5 9 5z" }),
|
|
295
|
-
/* @__PURE__ */ jsx3("path", { d: "m3 8 9 5 9-5" }),
|
|
296
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 13v8" })
|
|
297
|
-
] });
|
|
298
|
-
}
|
|
299
|
-
function AudioIcon(props) {
|
|
300
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
301
|
-
/* @__PURE__ */ jsx3("path", { d: "M9 18V5l12-2v13" }),
|
|
302
|
-
/* @__PURE__ */ jsx3("circle", { cx: "6", cy: "18", r: "3" }),
|
|
303
|
-
/* @__PURE__ */ jsx3("circle", { cx: "18", cy: "16", r: "3" })
|
|
304
|
-
] });
|
|
305
|
-
}
|
|
306
|
-
function LockIcon(props) {
|
|
307
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
308
|
-
/* @__PURE__ */ jsx3("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
|
|
309
|
-
/* @__PURE__ */ jsx3("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
|
|
310
|
-
] });
|
|
311
|
-
}
|
|
312
|
-
function LogInIcon(props) {
|
|
313
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
314
|
-
/* @__PURE__ */ jsx3("path", { d: "M10 17l5-5-5-5" }),
|
|
315
|
-
/* @__PURE__ */ jsx3("path", { d: "M15 12H3" }),
|
|
316
|
-
/* @__PURE__ */ jsx3("path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" })
|
|
317
|
-
] });
|
|
318
|
-
}
|
|
319
|
-
function LogOutIcon(props) {
|
|
320
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
321
|
-
/* @__PURE__ */ jsx3("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),
|
|
322
|
-
/* @__PURE__ */ jsx3("path", { d: "m16 17 5-5-5-5" }),
|
|
323
|
-
/* @__PURE__ */ jsx3("path", { d: "M21 12H9" })
|
|
324
|
-
] });
|
|
325
|
-
}
|
|
326
|
-
function MailIcon(props) {
|
|
327
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
328
|
-
/* @__PURE__ */ jsx3("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }),
|
|
329
|
-
/* @__PURE__ */ jsx3("path", { d: "m3 7 9 7 9-7" })
|
|
330
|
-
] });
|
|
331
|
-
}
|
|
332
|
-
function McpIcon(props) {
|
|
333
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
334
|
-
/* @__PURE__ */ jsx3("rect", { x: "2", y: "4", width: "8", height: "16", rx: "1.5" }),
|
|
335
|
-
/* @__PURE__ */ jsx3("rect", { x: "14", y: "4", width: "8", height: "16", rx: "1.5" }),
|
|
336
|
-
/* @__PURE__ */ jsx3("path", { d: "M10 12h4" })
|
|
337
|
-
] });
|
|
338
|
-
}
|
|
339
|
-
function MenuIcon(props) {
|
|
340
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M4 7h16M4 12h16M4 17h16" }) });
|
|
341
|
-
}
|
|
342
|
-
function NewspaperIcon(props) {
|
|
343
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
344
|
-
/* @__PURE__ */ jsx3("path", { d: "M5 4h12a1 1 0 0 1 1 1v14a1 1 0 0 0 1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1z" }),
|
|
345
|
-
/* @__PURE__ */ jsx3("path", { d: "M18 8h2a1 1 0 0 1 1 1v9a2 2 0 0 1-2 2" }),
|
|
346
|
-
/* @__PURE__ */ jsx3("path", { d: "M7 8h7M7 12h7M7 16h4" })
|
|
347
|
-
] });
|
|
348
|
-
}
|
|
349
|
-
function PlusIcon(props) {
|
|
350
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M12 5v14M5 12h14" }) });
|
|
351
|
-
}
|
|
352
|
-
function TerminalIcon(props) {
|
|
353
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
354
|
-
/* @__PURE__ */ jsx3("polyline", { points: "4 8 8 12 4 16" }),
|
|
355
|
-
/* @__PURE__ */ jsx3("line", { x1: "12", y1: "20", x2: "20", y2: "20" })
|
|
356
|
-
] });
|
|
357
|
-
}
|
|
358
|
-
function ToolIcon(props) {
|
|
359
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l2.1 2.1a1 1 0 0 0 1.4 0l4-4a6 6 0 0 1-8 8l-8 8a2.8 2.8 0 0 1-4-4l8-8a6 6 0 0 1 8-8l-4 4Z" }) });
|
|
360
|
-
}
|
|
361
|
-
function TargetIcon(props) {
|
|
362
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
363
|
-
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
364
|
-
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "5" }),
|
|
365
|
-
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "1.6", fill: "currentColor", stroke: "none" })
|
|
366
|
-
] });
|
|
367
|
-
}
|
|
368
|
-
function TokensIcon(props) {
|
|
369
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M4 9h16M4 15h16M10 3 8 21M16 3l-2 18" }) });
|
|
370
|
-
}
|
|
371
|
-
function UsageIcon(props) {
|
|
372
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
373
|
-
/* @__PURE__ */ jsx3("path", { d: "M4 18a8 8 0 1 1 16 0" }),
|
|
374
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 18l3.5-5" }),
|
|
375
|
-
/* @__PURE__ */ jsx3("path", { d: "M7 18h10" }),
|
|
376
|
-
/* @__PURE__ */ jsx3("path", { d: "M7.5 12.5 6 11" }),
|
|
377
|
-
/* @__PURE__ */ jsx3("path", { d: "M16.5 12.5 18 11" })
|
|
378
|
-
] });
|
|
379
|
-
}
|
|
380
|
-
function WarningIcon(props) {
|
|
381
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
382
|
-
/* @__PURE__ */ jsx3("path", { d: "M10.3 3.1 1.8 17a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.1a2 2 0 0 0-3.4 0Z" }),
|
|
383
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 9v4M12 17h.01" })
|
|
384
|
-
] });
|
|
385
|
-
}
|
|
386
|
-
function TrendUpIcon(props) {
|
|
387
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
388
|
-
/* @__PURE__ */ jsx3("polyline", { points: "3 17 9 11 13 15 21 7" }),
|
|
389
|
-
/* @__PURE__ */ jsx3("polyline", { points: "15 7 21 7 21 13" })
|
|
390
|
-
] });
|
|
391
|
-
}
|
|
392
|
-
function EarningsIcon(props) {
|
|
393
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
394
|
-
/* @__PURE__ */ jsx3("ellipse", { cx: "10", cy: "6", rx: "6", ry: "3" }),
|
|
395
|
-
/* @__PURE__ */ jsx3("path", { d: "M4 6v8c0 1.7 2.7 3 6 3 1.2 0 2.4-.2 3.3-.5" }),
|
|
396
|
-
/* @__PURE__ */ jsx3("path", { d: "M16 6v4" }),
|
|
397
|
-
/* @__PURE__ */ jsx3("path", { d: "M4 10c0 1.7 2.7 3 6 3 1.1 0 2.1-.1 3-.4" }),
|
|
398
|
-
/* @__PURE__ */ jsx3("path", { d: "M18 14v6" }),
|
|
399
|
-
/* @__PURE__ */ jsx3("path", { d: "M15 17h6" })
|
|
400
|
-
] });
|
|
401
|
-
}
|
|
402
|
-
function WalletIcon(props) {
|
|
403
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
404
|
-
/* @__PURE__ */ jsx3("path", { d: "M3 7a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v2H5a2 2 0 0 0-2 2V7Z" }),
|
|
405
|
-
/* @__PURE__ */ jsx3("path", { d: "M3 11a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6Z" }),
|
|
406
|
-
/* @__PURE__ */ jsx3("circle", { cx: "17", cy: "14", r: "1.25", fill: "currentColor" })
|
|
407
|
-
] });
|
|
408
|
-
}
|
|
409
|
-
function ReceiptIcon(props) {
|
|
410
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
411
|
-
/* @__PURE__ */ jsx3("path", { d: "M6 3h12v18l-2-1.5-2 1.5-2-1.5-2 1.5-2-1.5L6 21Z" }),
|
|
412
|
-
/* @__PURE__ */ jsx3("path", { d: "M9 8h6M9 12h6M9 16h3" })
|
|
413
|
-
] });
|
|
414
|
-
}
|
|
415
|
-
function MoonIcon(props) {
|
|
416
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z" }) });
|
|
417
|
-
}
|
|
418
|
-
function SunIcon(props) {
|
|
419
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
420
|
-
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "4" }),
|
|
421
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4" })
|
|
422
|
-
] });
|
|
423
|
-
}
|
|
424
|
-
function XIcon(props) {
|
|
425
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M18 6 6 18M6 6l12 12" }) });
|
|
426
|
-
}
|
|
427
|
-
function TrashIcon(props) {
|
|
428
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
429
|
-
/* @__PURE__ */ jsx3("path", { d: "M3 6h18" }),
|
|
430
|
-
/* @__PURE__ */ jsx3("path", { d: "M8 6V4h8v2" }),
|
|
431
|
-
/* @__PURE__ */ jsx3("path", { d: "m19 6-1 15H6L5 6" }),
|
|
432
|
-
/* @__PURE__ */ jsx3("path", { d: "M10 11v6M14 11v6" })
|
|
433
|
-
] });
|
|
434
|
-
}
|
|
435
|
-
function ChatIcon(props) {
|
|
436
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }) });
|
|
437
|
-
}
|
|
438
|
-
function RobotIcon(props) {
|
|
439
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
440
|
-
/* @__PURE__ */ jsx3("rect", { x: "3", y: "6", width: "18", height: "15", rx: "3" }),
|
|
441
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 2v4M3 11H1v5h2M21 11h2v5h-2M8 17h8" }),
|
|
442
|
-
/* @__PURE__ */ jsx3("circle", { cx: "9", cy: "12", r: "1" }),
|
|
443
|
-
/* @__PURE__ */ jsx3("circle", { cx: "15", cy: "12", r: "1" })
|
|
444
|
-
] });
|
|
445
|
-
}
|
|
446
|
-
function EyeIcon(props) {
|
|
447
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
448
|
-
/* @__PURE__ */ jsx3("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z" }),
|
|
449
|
-
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "3" })
|
|
450
|
-
] });
|
|
451
|
-
}
|
|
452
|
-
function EyeOffIcon(props) {
|
|
453
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
454
|
-
/* @__PURE__ */ jsx3("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z" }),
|
|
455
|
-
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "3" }),
|
|
456
|
-
/* @__PURE__ */ jsx3("path", { d: "M3 3l18 18" })
|
|
457
|
-
] });
|
|
458
|
-
}
|
|
459
|
-
function VideoIcon(props) {
|
|
460
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
461
|
-
/* @__PURE__ */ jsx3("path", { d: "m22 8-6 4 6 4V8z" }),
|
|
462
|
-
/* @__PURE__ */ jsx3("rect", { x: "2", y: "6", width: "14", height: "12", rx: "2" })
|
|
463
|
-
] });
|
|
464
|
-
}
|
|
465
|
-
function MicIcon(props) {
|
|
466
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
467
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z" }),
|
|
468
|
-
/* @__PURE__ */ jsx3("path", { d: "M19 10v2a7 7 0 0 1-14 0v-2" }),
|
|
469
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 19v3" })
|
|
470
|
-
] });
|
|
471
|
-
}
|
|
472
|
-
function SpeakerIcon(props) {
|
|
473
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
474
|
-
/* @__PURE__ */ jsx3("path", { d: "M11 5 6 9H2v6h4l5 4z" }),
|
|
475
|
-
/* @__PURE__ */ jsx3("path", { d: "M15.54 8.46a5 5 0 0 1 0 7.07" }),
|
|
476
|
-
/* @__PURE__ */ jsx3("path", { d: "M19.07 4.93a10 10 0 0 1 0 14.14" })
|
|
477
|
-
] });
|
|
478
|
-
}
|
|
479
|
-
function MegaphoneIcon(props) {
|
|
480
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
481
|
-
/* @__PURE__ */ jsx3("path", { d: "m3 11 18-5v12L3 14v-3z" }),
|
|
482
|
-
/* @__PURE__ */ jsx3("path", { d: "m7 15 1.5 6H14l-2-7" })
|
|
483
|
-
] });
|
|
484
|
-
}
|
|
485
|
-
function ReasoningIcon(props) {
|
|
486
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "M9 18h6M10 22h4M15.1 14c.2-1 .6-1.7 1.4-2.5A4.6 4.6 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.8.8 1.2 1.5 1.4 2.5" }) });
|
|
487
|
-
}
|
|
488
|
-
function RocketIcon(props) {
|
|
489
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
490
|
-
/* @__PURE__ */ jsx3("path", { d: "M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z" }),
|
|
491
|
-
/* @__PURE__ */ jsx3("path", { d: "m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z" }),
|
|
492
|
-
/* @__PURE__ */ jsx3("path", { d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0" }),
|
|
493
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5" })
|
|
494
|
-
] });
|
|
495
|
-
}
|
|
496
|
-
function SearchIcon(props) {
|
|
497
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
498
|
-
/* @__PURE__ */ jsx3("circle", { cx: "11", cy: "11", r: "7" }),
|
|
499
|
-
/* @__PURE__ */ jsx3("path", { d: "m21 21-4.3-4.3" })
|
|
500
|
-
] });
|
|
501
|
-
}
|
|
502
|
-
function SignOutIcon(props) {
|
|
503
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
504
|
-
/* @__PURE__ */ jsx3("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }),
|
|
505
|
-
/* @__PURE__ */ jsx3("path", { d: "m16 17 5-5-5-5" }),
|
|
506
|
-
/* @__PURE__ */ jsx3("path", { d: "M21 12H9" })
|
|
507
|
-
] });
|
|
508
|
-
}
|
|
509
|
-
function PowerIcon(props) {
|
|
510
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
511
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 2v10" }),
|
|
512
|
-
/* @__PURE__ */ jsx3("path", { d: "M18.4 6.6a9 9 0 1 1-12.77.04" })
|
|
513
|
-
] });
|
|
514
|
-
}
|
|
515
|
-
function SparkleIcon(props) {
|
|
516
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
517
|
-
/* @__PURE__ */ jsx3("path", { d: "M9.94 15.5A2 2 0 0 0 8.5 14.06l-6.14-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0L14.06 8.5A2 2 0 0 0 15.5 9.94l6.14 1.58a.5.5 0 0 1 0 .96L15.5 14.06a2 2 0 0 0-1.44 1.44l-1.58 6.14a.5.5 0 0 1-.96 0z" }),
|
|
518
|
-
/* @__PURE__ */ jsx3("path", { d: "M20 3v4" }),
|
|
519
|
-
/* @__PURE__ */ jsx3("path", { d: "M22 5h-4" }),
|
|
520
|
-
/* @__PURE__ */ jsx3("path", { d: "M4 17v2" }),
|
|
521
|
-
/* @__PURE__ */ jsx3("path", { d: "M5 18H3" })
|
|
522
|
-
] });
|
|
523
|
-
}
|
|
524
|
-
function StarIcon({
|
|
525
|
-
filled = false,
|
|
526
|
-
...props
|
|
527
|
-
}) {
|
|
528
|
-
return /* @__PURE__ */ jsx3(
|
|
529
|
-
"svg",
|
|
530
|
-
{
|
|
531
|
-
"aria-hidden": "true",
|
|
532
|
-
viewBox: "0 0 24 24",
|
|
533
|
-
...strokeProps,
|
|
534
|
-
fill: filled ? "currentColor" : "none",
|
|
535
|
-
...props,
|
|
536
|
-
children: /* @__PURE__ */ jsx3("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" })
|
|
537
|
-
}
|
|
538
|
-
);
|
|
539
|
-
}
|
|
540
|
-
function CodeIcon(props) {
|
|
541
|
-
return /* @__PURE__ */ jsx3("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: /* @__PURE__ */ jsx3("path", { d: "m16 18 6-6-6-6M8 6l-6 6 6 6" }) });
|
|
542
|
-
}
|
|
543
|
-
function DatabaseIcon(props) {
|
|
544
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
545
|
-
/* @__PURE__ */ jsx3("ellipse", { cx: "12", cy: "5", rx: "9", ry: "3" }),
|
|
546
|
-
/* @__PURE__ */ jsx3("path", { d: "M3 5v14a9 3 0 0 0 18 0V5" }),
|
|
547
|
-
/* @__PURE__ */ jsx3("path", { d: "M3 12a9 3 0 0 0 18 0" })
|
|
548
|
-
] });
|
|
549
|
-
}
|
|
550
|
-
function CardIcon(props) {
|
|
551
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
552
|
-
/* @__PURE__ */ jsx3("rect", { x: "2", y: "5", width: "20", height: "14", rx: "2" }),
|
|
553
|
-
/* @__PURE__ */ jsx3("path", { d: "M2 10h20" })
|
|
554
|
-
] });
|
|
555
|
-
}
|
|
556
|
-
function SproutIcon(props) {
|
|
557
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
558
|
-
/* @__PURE__ */ jsx3("path", { d: "M7 20h10" }),
|
|
559
|
-
/* @__PURE__ */ jsx3("path", { d: "M10 20c5.5-2.5.8-6.4 3-10" }),
|
|
560
|
-
/* @__PURE__ */ jsx3("path", { d: "M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z" }),
|
|
561
|
-
/* @__PURE__ */ jsx3("path", { d: "M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z" })
|
|
562
|
-
] });
|
|
563
|
-
}
|
|
564
|
-
function PencilIcon(props) {
|
|
565
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
566
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 20h9" }),
|
|
567
|
-
/* @__PURE__ */ jsx3("path", { d: "M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z" })
|
|
568
|
-
] });
|
|
569
|
-
}
|
|
570
|
-
function KeyIcon(props) {
|
|
571
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
572
|
-
/* @__PURE__ */ jsx3("circle", { cx: "7.5", cy: "15.5", r: "5.5" }),
|
|
573
|
-
/* @__PURE__ */ jsx3("path", { d: "m21 2-9.6 9.6" }),
|
|
574
|
-
/* @__PURE__ */ jsx3("path", { d: "m15.5 7.5 3 3L22 7l-3-3" })
|
|
575
|
-
] });
|
|
576
|
-
}
|
|
577
|
-
function GlobeIcon(props) {
|
|
578
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
579
|
-
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10" }),
|
|
580
|
-
/* @__PURE__ */ jsx3("path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }),
|
|
581
|
-
/* @__PURE__ */ jsx3("path", { d: "M2 12h20" })
|
|
582
|
-
] });
|
|
583
|
-
}
|
|
584
|
-
function ArrowLeftIcon(props) {
|
|
585
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
586
|
-
/* @__PURE__ */ jsx3("path", { d: "M19 12H5" }),
|
|
587
|
-
/* @__PURE__ */ jsx3("path", { d: "m12 19-7-7 7-7" })
|
|
588
|
-
] });
|
|
589
|
-
}
|
|
590
|
-
function RefreshIcon(props) {
|
|
591
|
-
return /* @__PURE__ */ jsxs2("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", ...strokeProps, ...props, children: [
|
|
592
|
-
/* @__PURE__ */ jsx3("path", { d: "M21 12a9 9 0 1 1-2.64-6.36" }),
|
|
593
|
-
/* @__PURE__ */ jsx3("path", { d: "M21 3v6h-6" })
|
|
594
|
-
] });
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
// src/compositions/AccountIdentity.tsx
|
|
598
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
599
|
-
function initials(name) {
|
|
600
|
-
const parts = name.trim().split(/\s+/).filter(Boolean);
|
|
601
|
-
if (parts.length === 0) return "?";
|
|
602
|
-
if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();
|
|
603
|
-
return `${parts[0][0] ?? ""}${parts.at(-1)?.[0] ?? ""}`.toUpperCase();
|
|
604
|
-
}
|
|
605
|
-
function AccountAvatar({
|
|
606
|
-
name,
|
|
607
|
-
avatarUrl,
|
|
608
|
-
secondaryContent,
|
|
609
|
-
dashboardHref,
|
|
610
|
-
inline = false
|
|
611
|
-
}) {
|
|
612
|
-
const size = inline ? "polli:h-6 polli:w-6" : secondaryContent != null ? "polli:h-11 polli:w-11" : "polli:h-8 polli:w-8";
|
|
613
|
-
const className = cn(
|
|
614
|
-
size,
|
|
615
|
-
inline && "polli:transition-transform polli:group-hover:scale-110 polli:group-hover:brightness-110 polli:motion-reduce:transition-none polli:motion-reduce:group-hover:scale-100"
|
|
616
|
-
);
|
|
617
|
-
const avatar = avatarUrl ? /* @__PURE__ */ jsx4(
|
|
618
|
-
"img",
|
|
619
|
-
{
|
|
620
|
-
src: avatarUrl,
|
|
621
|
-
alt: "",
|
|
622
|
-
className: cn(
|
|
623
|
-
className,
|
|
624
|
-
"polli:shrink-0 polli:rounded-full polli:object-cover"
|
|
625
|
-
)
|
|
626
|
-
}
|
|
627
|
-
) : /* @__PURE__ */ jsx4(
|
|
628
|
-
"span",
|
|
629
|
-
{
|
|
630
|
-
role: "img",
|
|
631
|
-
"aria-label": `${name} avatar`,
|
|
632
|
-
className: cn(
|
|
633
|
-
className,
|
|
634
|
-
"polli:flex polli:shrink-0 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-pale polli:text-xs polli:font-semibold polli:text-theme-text-strong"
|
|
635
|
-
),
|
|
636
|
-
children: initials(name)
|
|
637
|
-
}
|
|
638
|
-
);
|
|
639
|
-
return dashboardHref ? /* @__PURE__ */ jsx4(
|
|
640
|
-
"a",
|
|
641
|
-
{
|
|
642
|
-
href: dashboardHref,
|
|
643
|
-
target: "_blank",
|
|
644
|
-
rel: "noopener noreferrer",
|
|
645
|
-
"aria-label": "Open dashboard",
|
|
646
|
-
title: "Open dashboard",
|
|
647
|
-
className: "polli:shrink-0 polli:rounded-full polli:cursor-pointer polli:transition-transform polli:hover:scale-105 polli:hover:brightness-110 polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current polli:motion-reduce:transition-none polli:motion-reduce:hover:scale-100",
|
|
648
|
-
children: avatar
|
|
649
|
-
}
|
|
650
|
-
) : avatar;
|
|
651
|
-
}
|
|
652
|
-
function AccountIdentity({
|
|
653
|
-
name,
|
|
654
|
-
avatarUrl,
|
|
655
|
-
secondaryContent,
|
|
656
|
-
dashboardHref,
|
|
657
|
-
className
|
|
658
|
-
}) {
|
|
659
|
-
return /* @__PURE__ */ jsxs3(
|
|
660
|
-
"span",
|
|
661
|
-
{
|
|
662
|
-
className: cn(
|
|
663
|
-
"polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-surface-opaque polli:p-1 polli:pr-3",
|
|
664
|
-
className
|
|
665
|
-
),
|
|
666
|
-
children: [
|
|
667
|
-
/* @__PURE__ */ jsx4(
|
|
668
|
-
AccountAvatar,
|
|
669
|
-
{
|
|
670
|
-
name,
|
|
671
|
-
avatarUrl,
|
|
672
|
-
dashboardHref,
|
|
673
|
-
secondaryContent
|
|
674
|
-
}
|
|
675
|
-
),
|
|
676
|
-
/* @__PURE__ */ jsx4(AccountDetails, { name, secondaryContent })
|
|
677
|
-
]
|
|
678
|
-
}
|
|
679
|
-
);
|
|
680
|
-
}
|
|
681
|
-
function AccountIdentityLink({
|
|
682
|
-
name,
|
|
683
|
-
avatarUrl,
|
|
684
|
-
href,
|
|
685
|
-
className
|
|
686
|
-
}) {
|
|
687
|
-
return /* @__PURE__ */ jsxs3(
|
|
688
|
-
"a",
|
|
689
|
-
{
|
|
690
|
-
href,
|
|
691
|
-
target: "_blank",
|
|
692
|
-
rel: "noopener noreferrer",
|
|
693
|
-
className: cn(
|
|
694
|
-
// Sits in running text on cards, so it is compact and tinted.
|
|
695
|
-
"polli:group polli:inline-flex polli:max-w-full polli:min-w-0 polli:items-center polli:gap-1.5 polli:rounded-full polli:bg-theme-bg-subtle polli:p-0.5 polli:pr-2.5 polli:align-middle polli:focus-visible:outline-2 polli:focus-visible:outline-offset-2 polli:focus-visible:outline-current",
|
|
696
|
-
className
|
|
697
|
-
),
|
|
698
|
-
children: [
|
|
699
|
-
/* @__PURE__ */ jsx4(AccountAvatar, { name, avatarUrl, inline: true }),
|
|
700
|
-
/* @__PURE__ */ jsx4(AccountDetails, { name }),
|
|
701
|
-
/* @__PURE__ */ jsx4(
|
|
702
|
-
ExternalLinkIcon,
|
|
703
|
-
{
|
|
704
|
-
"aria-hidden": "true",
|
|
705
|
-
className: "polli:-ml-0.5 polli:h-3 polli:w-3 polli:shrink-0 polli:text-theme-text-strong polli:opacity-65"
|
|
706
|
-
}
|
|
707
|
-
)
|
|
708
|
-
]
|
|
709
|
-
}
|
|
710
|
-
);
|
|
711
|
-
}
|
|
712
|
-
function AccountDetails({
|
|
713
|
-
name,
|
|
714
|
-
secondaryContent,
|
|
715
|
-
secondaryId
|
|
716
|
-
}) {
|
|
717
|
-
return /* @__PURE__ */ jsxs3("span", { className: "polli:flex polli:min-w-0 polli:flex-col polli:items-start polli:text-left", children: [
|
|
718
|
-
/* @__PURE__ */ jsx4(
|
|
719
|
-
"span",
|
|
720
|
-
{
|
|
721
|
-
title: name,
|
|
722
|
-
className: "polli:max-w-full polli:truncate polli:text-sm polli:font-medium polli:leading-5 polli:text-theme-text-strong",
|
|
723
|
-
children: name
|
|
724
|
-
}
|
|
725
|
-
),
|
|
726
|
-
secondaryContent != null && /* @__PURE__ */ jsx4(
|
|
727
|
-
"span",
|
|
728
|
-
{
|
|
729
|
-
id: secondaryId,
|
|
730
|
-
className: "polli:inline-flex polli:min-h-5 polli:items-center polli:whitespace-nowrap polli:text-xs polli:leading-4 polli:text-theme-text-base",
|
|
731
|
-
children: secondaryContent
|
|
732
|
-
}
|
|
733
|
-
)
|
|
734
|
-
] });
|
|
735
|
-
}
|
|
736
|
-
function AccountMenu({
|
|
737
|
-
name,
|
|
738
|
-
avatarUrl,
|
|
739
|
-
dashboardHref,
|
|
740
|
-
secondaryContent,
|
|
741
|
-
children,
|
|
742
|
-
className,
|
|
743
|
-
menuClassName,
|
|
744
|
-
side = "bottom",
|
|
745
|
-
menuLabel = `Account menu for ${name}`
|
|
746
|
-
}) {
|
|
747
|
-
const statusId = useId2();
|
|
748
|
-
const avatar = /* @__PURE__ */ jsx4(
|
|
749
|
-
AccountAvatar,
|
|
750
|
-
{
|
|
751
|
-
name,
|
|
752
|
-
avatarUrl,
|
|
753
|
-
dashboardHref,
|
|
754
|
-
secondaryContent
|
|
755
|
-
}
|
|
756
|
-
);
|
|
757
|
-
return /* @__PURE__ */ jsxs3(
|
|
758
|
-
"div",
|
|
759
|
-
{
|
|
760
|
-
"data-theme": "accent",
|
|
761
|
-
className: cn(
|
|
762
|
-
"polli:flex polli:min-w-0 polli:items-center polli:gap-2 polli:rounded-full polli:bg-theme-bg-active polli:p-1 polli:pr-3 polli:text-theme-text-strong polli:transition-colors polli:hover:bg-theme-bg-hover",
|
|
763
|
-
className
|
|
764
|
-
),
|
|
765
|
-
children: [
|
|
766
|
-
dashboardHref && avatar,
|
|
767
|
-
/* @__PURE__ */ jsx4(
|
|
768
|
-
Dropdown,
|
|
769
|
-
{
|
|
770
|
-
align: "end",
|
|
771
|
-
side,
|
|
772
|
-
className: cn(
|
|
773
|
-
"polli:w-max polli:min-w-[var(--reference-width)] polli:p-1",
|
|
774
|
-
menuClassName
|
|
775
|
-
),
|
|
776
|
-
trigger: (open) => /* @__PURE__ */ jsxs3(
|
|
777
|
-
"button",
|
|
778
|
-
{
|
|
779
|
-
type: "button",
|
|
780
|
-
"aria-label": menuLabel,
|
|
781
|
-
"aria-describedby": secondaryContent != null ? statusId : void 0,
|
|
782
|
-
className: "polli-control polli:flex polli:min-w-0 polli:flex-1 polli:items-center polli:gap-2 polli:self-stretch polli:rounded-full polli:text-theme-text-strong",
|
|
783
|
-
children: [
|
|
784
|
-
!dashboardHref && avatar,
|
|
785
|
-
/* @__PURE__ */ jsx4(
|
|
786
|
-
AccountDetails,
|
|
787
|
-
{
|
|
788
|
-
name,
|
|
789
|
-
secondaryContent,
|
|
790
|
-
secondaryId: statusId
|
|
791
|
-
}
|
|
792
|
-
),
|
|
793
|
-
/* @__PURE__ */ jsx4(
|
|
794
|
-
ChevronIcon,
|
|
795
|
-
{
|
|
796
|
-
expanded: open,
|
|
797
|
-
className: "polli:ml-auto polli:h-4 polli:w-4 polli:text-theme-text-strong"
|
|
798
|
-
}
|
|
799
|
-
)
|
|
800
|
-
]
|
|
801
|
-
}
|
|
802
|
-
),
|
|
803
|
-
children
|
|
804
|
-
}
|
|
805
|
-
)
|
|
806
|
-
]
|
|
807
|
-
}
|
|
808
|
-
);
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
// src/primitives/Typography.tsx
|
|
812
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
813
|
-
var headingSizeClasses = {
|
|
814
|
-
display: "polli:font-heading polli:text-5xl polli:leading-none",
|
|
815
|
-
title: "polli:font-heading polli:text-4xl polli:leading-none",
|
|
816
|
-
section: "polli:font-subheading polli:text-2xl polli:leading-tight",
|
|
817
|
-
subsection: "polli:font-subheading polli:text-xl polli:leading-tight",
|
|
818
|
-
card: "polli:font-subheading polli:text-lg polli:leading-tight"
|
|
819
|
-
};
|
|
820
|
-
var textSizeClasses = {
|
|
821
|
-
body: "polli:text-base polli:leading-relaxed",
|
|
822
|
-
sm: "polli:text-sm polli:leading-6",
|
|
823
|
-
xs: "polli:text-xs polli:leading-normal",
|
|
824
|
-
micro: "polli:text-micro polli:leading-normal"
|
|
825
|
-
};
|
|
826
|
-
var textToneClasses = {
|
|
827
|
-
base: "polli:text-theme-text-base",
|
|
828
|
-
strong: "polli:text-theme-text-strong",
|
|
829
|
-
soft: "polli:text-theme-text-soft",
|
|
830
|
-
muted: "polli:text-theme-text-muted"
|
|
831
|
-
};
|
|
832
|
-
var textWeightClasses = {
|
|
833
|
-
normal: "polli:font-normal",
|
|
834
|
-
medium: "polli:font-medium",
|
|
835
|
-
semibold: "polli:font-semibold",
|
|
836
|
-
bold: "polli:font-bold"
|
|
837
|
-
};
|
|
838
|
-
function headingClassName(size, className) {
|
|
839
|
-
return cn(
|
|
840
|
-
"polli:break-words polli:text-theme-text-strong",
|
|
841
|
-
headingSizeClasses[size],
|
|
842
|
-
className
|
|
843
|
-
);
|
|
844
|
-
}
|
|
845
|
-
function textClassName({
|
|
846
|
-
size,
|
|
847
|
-
tone,
|
|
848
|
-
weight,
|
|
849
|
-
className
|
|
850
|
-
}) {
|
|
851
|
-
return cn(
|
|
852
|
-
"polli:break-words polli:font-body",
|
|
853
|
-
textSizeClasses[size],
|
|
854
|
-
textToneClasses[tone],
|
|
855
|
-
textWeightClasses[weight],
|
|
856
|
-
className
|
|
857
|
-
);
|
|
858
|
-
}
|
|
859
|
-
function Heading({
|
|
860
|
-
as,
|
|
861
|
-
size = "section",
|
|
862
|
-
className,
|
|
863
|
-
children,
|
|
864
|
-
...rest
|
|
865
|
-
}) {
|
|
866
|
-
const Component = as || "h2";
|
|
867
|
-
return /* @__PURE__ */ jsx5(Component, { ...rest, className: headingClassName(size, className), children });
|
|
868
|
-
}
|
|
869
|
-
function Text({
|
|
870
|
-
as,
|
|
871
|
-
size = "body",
|
|
872
|
-
tone = "base",
|
|
873
|
-
weight = "normal",
|
|
874
|
-
className,
|
|
875
|
-
children,
|
|
876
|
-
...rest
|
|
877
|
-
}) {
|
|
878
|
-
const Component = as || "p";
|
|
879
|
-
return /* @__PURE__ */ jsx5(
|
|
880
|
-
Component,
|
|
881
|
-
{
|
|
882
|
-
...rest,
|
|
883
|
-
className: textClassName({ size, tone, weight, className }),
|
|
884
|
-
children
|
|
885
|
-
}
|
|
886
|
-
);
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
// src/compositions/Alert.tsx
|
|
890
|
-
import { Fragment, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
891
|
-
var intentClasses = {
|
|
892
|
-
info: "polli:bg-theme-bg-pale polli:text-theme-text-strong",
|
|
893
|
-
advisory: "polli:bg-intent-warning-bg-light/45 polli:text-theme-text-base",
|
|
894
|
-
warning: "polli:bg-intent-warning-bg-light polli:text-intent-warning-text",
|
|
895
|
-
danger: "polli:bg-intent-danger-bg-light polli:text-intent-danger-text"
|
|
896
|
-
};
|
|
897
|
-
var Alert = ({
|
|
898
|
-
intent = "info",
|
|
899
|
-
title,
|
|
900
|
-
className,
|
|
901
|
-
children,
|
|
902
|
-
...rest
|
|
903
|
-
}) => /* @__PURE__ */ jsxs4(
|
|
904
|
-
"div",
|
|
905
|
-
{
|
|
906
|
-
...rest,
|
|
907
|
-
role: intent === "danger" ? "alert" : "status",
|
|
908
|
-
className: cn(
|
|
909
|
-
"polli:rounded-xl polli:px-3 polli:py-2 polli:text-sm",
|
|
910
|
-
intent === "advisory" && "polli:flex polli:items-start polli:gap-2",
|
|
911
|
-
intentClasses[intent],
|
|
912
|
-
className
|
|
913
|
-
),
|
|
914
|
-
children: [
|
|
915
|
-
intent === "advisory" && /* @__PURE__ */ jsx6(WarningIcon, { className: "polli:mt-0.5 polli:h-4 polli:w-4 polli:shrink-0 polli:text-intent-warning-text" }),
|
|
916
|
-
/* @__PURE__ */ jsxs4("div", { className: "polli:min-w-0", children: [
|
|
917
|
-
title && (intent === "advisory" ? /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
918
|
-
/* @__PURE__ */ jsx6("strong", { className: "polli:font-semibold polli:text-theme-text-strong", children: title }),
|
|
919
|
-
" ",
|
|
920
|
-
"\u2014",
|
|
921
|
-
" "
|
|
922
|
-
] }) : /* @__PURE__ */ jsx6(
|
|
923
|
-
Text,
|
|
924
|
-
{
|
|
925
|
-
as: "div",
|
|
926
|
-
size: "xs",
|
|
927
|
-
tone: "strong",
|
|
928
|
-
weight: "bold",
|
|
929
|
-
className: "polli:mb-1 polli:uppercase polli:tracking-wide",
|
|
930
|
-
children: title
|
|
931
|
-
}
|
|
932
|
-
)),
|
|
933
|
-
children
|
|
934
|
-
] })
|
|
935
|
-
]
|
|
936
|
-
}
|
|
937
|
-
);
|
|
938
|
-
|
|
939
|
-
// src/brand/lockup-horizontal.svg
|
|
940
|
-
var lockup_horizontal_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 858.891 105.6" fill="currentColor">%0A <g transform="translate(-13.81 -16.241) scale(0.921)"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></g>%0A <g transform="translate(-68.454 -154.133) scale(4.051)"><path d="M82.117 39.523c-.152.172-.191 2.747-.172 9.192l.059 8.945h4.773l.059-9.039c.039-7.113 0-9.078-.191-9.21-.438-.266-4.278-.192-4.528.112m7.621.117c-.21.4-.265 16.895-.054 17.696.093.398.187.418 2.441.418 1.969 0 2.371-.059 2.465-.305.21-.535.133-17.43-.074-17.828-.192-.324-.422-.363-2.391-.363-1.965 0-2.195.039-2.387.383m7.774-.27c-.075.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m50.312.152c-.156.172-.21.88-.172 1.965l.055 1.68h4.777l.055-1.793c.04-1.316-.02-1.852-.191-1.965-.133-.074-1.164-.152-2.27-.152-1.512 0-2.101.078-2.254.265m76.512-.152c-.074.078-.133.992-.133 2.024v1.867h4.793l-.055-1.965-.058-1.945-2.215-.055c-1.203-.02-2.254.02-2.332.074m-86.539 1.527c-.059.172-.117 1.145-.117 2.192v1.887h-.84c-.973 0-1.07.136-1.07 1.601 0 1.184.21 1.45 1.183 1.45h.727v2.042c0 1.145.058 2.899.132 3.907l.118 1.87h1.832l.058.895.055.918h5.54l.058-1.316c.039-.934-.02-1.375-.192-1.469-.133-.098-.781-.172-1.449-.172h-1.187l.039-3.3.058-3.278 1.336-.098 1.336-.093v-2.86l-1.336-.097-1.336-.094-.058-2.156-.055-2.133h-2.352c-1.984 0-2.386.054-2.48.304m-88.414 4.215c-.078.055-.137 4.04-.137 8.848 0 8.14.02 8.75.344 8.883.172.097 1.3.133 2.484.097l2.14-.058v-5.13h3.532c2.695 0 3.535-.058 3.555-.245.02-.117.035-.535.054-.899.02-.668.02-.668 1.032-.722l.996-.059v-8.906l-.594-.113a7.4 7.4 0 0 0-1.05-.114c-.419 0-.458-.078-.458-.86v-.858H55.38l-.059.707c-.054.726-.054.726-.953.78l-.918.06v-1.547h-1.97c-1.085 0-2.042.058-2.097.136m9.031 6.235v3.336l-2.023.058c-1.11.035-2.063.02-2.102-.02-.039-.038-.074-1.562-.074-3.394v-3.3h4.2Zm9.32-5.473c-.054.875-.074.914-.629.875a5.6 5.6 0 0 0-.992.059l-.441.078v8.941l1.012.059.996.054.054.918.059.895 4.91-.04 4.906-.054.059-.918.059-.894h2.082v-4.461c0-4.328-.02-4.485-.383-4.598-.211-.074-.668-.094-1.012-.055-.594.055-.613.036-.707-.8l-.098-.86-4.906-.058-4.91-.04Zm6.914 5.492v3.336h-4.007v-6.676h4.007Zm22.864-6.254c-.075.055-.133 2.934-.133 6.387v6.273l2.351-.058 2.329-.055.058-6.351.035-6.332h-2.25c-1.242 0-2.332.058-2.39.136m6.972 6.196.059 6.351h4.773l.059-4.824.04-4.809h4.007l.039 4.809.059 4.824h4.773l.059-5.379.039-5.379-.996-.054-1.012-.059-.055-.914-.058-.898-3.094.039-3.094.058-.059.703-.058.727h-1.89v-1.527h-3.63Zm17-4.864.055 1.489 3.785.058 3.781.035-.058.918-.059.895-3.148.097-3.153.094-.019.762v.766l-.973.054c-.824.04-.996.133-1.09.477-.152.555-.152 1.773 0 2.879l.133.879h1.832l.059.894.058.918 2.922.055 2.903.058v-1.562l.918.055c.898.058.898.058.953.761l.058.727h3.61V46.922l-.574-.133c-.305-.074-.649-.074-.743-.02-.441.29-.785-.132-.785-.953v-.84h-10.523Zm7.602 7.399v.86h-3.629v-1.716h3.629Zm18.621-8.637c-.055.133-.074 2.992-.055 6.352l.055 6.101h4.777V45.074l-2.351-.058c-1.778-.04-2.367.02-2.426.191m9.168 0a5.3 5.3 0 0 0-.133.914c-.058.668-.058.668-1.07.727l-.992.054.039 4.426.054 4.422.997.059.992.058.058.895.055.898 4.93.055 4.906.039v-1.906h2.101v-8.961h-.742c-1.207 0-1.36-.137-1.36-1.07v-.84h-4.866c-3.746 0-4.91.058-4.969.23m6.973 6.16v3.336h-4.012v-6.676h4.012Zm7.179-6.234c-.054.113-.035 8.406.059 11.894l.02.727h2.367c1.988 0 2.386-.059 2.484-.305.059-.172.113-2.347.113-4.863v-4.574l1.97.054 1.948.059.094 4.766.098 4.77h4.773V46.98l-.957-.094-.953-.098-.094-.855-.097-.86-3.094-.058-3.113-.04v1.528h-1.91v-1.527h-1.798c-.992 0-1.851.078-1.91.156m18.321.075a5 5 0 0 0-.137.914c-.055.668-.055.668-1.05.727l-1.013.054v1.891c0 1.027.059 2 .118 2.172.074.23.379.305 1.03.305h.934l.06.8.058.82 2.73.06 2.711.058v1.695h-3.57c-1.989 0-3.707.074-3.84.172-.172.094-.23.535-.191 1.469l.058 1.316h10.313l.058-.898.055-.895.996-.058.992-.059.059-1.617c.074-2.367.035-2.48-1.11-2.48h-.937l-.055-.821-.058-.8-2.77-.094-2.77-.098v-1.715l3.516-.059c1.95-.02 3.61-.113 3.723-.207.133-.117.191-.726.152-1.527l-.074-1.355h-4.95c-3.8 0-4.984.058-5.038.23m19.902 0c-.04.133-.04.8.035 1.488l.117 1.239 3.684.058 3.668.035v1.91h-6.3v1.715h-2.102v4.176l1.011.059.992.054.06.918.054.914 2.906-.058 2.902-.055.059-.726c.055-.707.074-.707.894-.707.825 0 .844 0 .899.707l.059.726 1.87.055 1.852.058V52.32c0-4.215-.055-5.433-.226-5.453-.137-.02-.594-.039-1.012-.058-.766-.02-.766-.02-.863-.875l-.094-.86-5.176-.058c-4.05-.04-5.215 0-5.289.191m7.504 8.637v.879l-1.758-.059-1.773-.055-.059-.535c-.113-1.011 0-1.086 1.871-1.086h1.719Zm7.449-2.477v6.387h4.719l.113-2.156a67 67 0 0 0 0-8.293l-.113-2.328h-4.719Zm-22.137 2.27c-.152.172-.21.894-.171 2.133l.058 1.89 2.063.055 2.062.058-.058-2.156-.055-2.152-1.836-.059c-1.414-.039-1.89.02-2.063.23m0 0"/></g>%0A</svg>%0A';
|
|
941
|
-
|
|
942
|
-
// src/brand/mark.svg
|
|
943
|
-
var mark_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="15 17.6409 119.9998 114.7498" fill="currentColor"><path fill-rule="evenodd" d="M73.832 19.293a1893.685 1893.685 0 0 0-7.742 9.047c-1.93 2.273-3.274 3.898-4.266 5.156-.988 1.258-1.62 2.149-2.117 2.957-.5.805-.86 1.531-1.309 2.453-.14.285-.277.563-.402.813-.121.254-.238.48-.332.676a20.107 20.107 0 0 1-.34.652c-.008.008-.062 0-.156-.02s-.227-.047-.383-.09c-.16-.039-.351-.09-.558-.148-.207-.059-.43-.121-.668-.191-1.079-.32-1.895-.559-2.684-.743-.79-.18-1.55-.3-2.516-.382-.96-.082-2.129-.121-3.734-.145-1.602-.02-3.64-.023-6.348-.023H35.31l-2.485-.004H30.34v20.574l-.527.059-.524.058-1.055.117c-.59.067-1.203.157-1.84.274-.636.113-1.292.25-1.968.414-.676.16-1.371.348-2.086.555-.715.21-1.445.441-2.195.695-.47.16-1.024.36-1.594.574a64.38 64.38 0 0 0-1.684.649c-.523.207-.992.398-1.328.546-.336.149-.539.246-.539.274 0 .039.07.234.191.535.118.297.29.7.485 1.156.195.453.418.961.644 1.473.227.508.461 1.02.676 1.484a52.041 52.041 0 0 0 9.54 13.926 47.507 47.507 0 0 0 6.14 5.41c2.164 1.59 4.426 2.953 6.75 4.047a51.197 51.197 0 0 0 3.414 1.461c1.129.43 2.242.805 3.36 1.125 1.112.324 2.226.59 3.343.809a39.04 39.04 0 0 0 3.375.504c.84.085 1.781.136 2.777.156a51.632 51.632 0 0 0 6.203-.266 34.786 34.786 0 0 0 2.836-.394 59.177 59.177 0 0 1 2.633-.442c.149-.02.235-.023.246-.015.043.043-.02.195-.152.414a9.01 9.01 0 0 1-.582.812c-.242.313-.527.645-.813.965-.289.316-.582.617-.851.86-.57.519-1.168.968-1.809 1.355-.64.383-1.324.703-2.07.969-.746.261-1.555.464-2.441.617-.891.156-1.856.258-2.926.316-1.36.07-2.582.207-3.703.422-1.118.211-2.13.496-3.07.871-.938.375-1.801.84-2.618 1.403a15.82 15.82 0 0 0-2.351 2 14.205 14.205 0 0 0-1.489 1.765 13.256 13.256 0 0 0-1.148 1.945 15.518 15.518 0 0 0-.856 2.207 20.834 20.834 0 0 0-.59 2.543c-.058.348-.105.61-.156.817-.05.207-.105.36-.183.484a1.184 1.184 0 0 1-.325.332c-.144.106-.332.211-.578.356a9.157 9.157 0 0 0-2.543 2.183 8.797 8.797 0 0 0-1.52 2.813 8.33 8.33 0 0 0-.382 3.113 7.995 7.995 0 0 0 .852 3.098 7.95 7.95 0 0 0 1.574 2.117 9.294 9.294 0 0 0 2.168 1.566c.789.418 1.629.715 2.469.868.84.152 1.68.167 2.472.007a7.941 7.941 0 0 0 1.188-.336c.406-.144.82-.32 1.222-.515.399-.2.79-.418 1.149-.653.36-.234.691-.476.976-.73a6.93 6.93 0 0 0 1.473-1.86c.39-.71.68-1.492.855-2.308.176-.82.243-1.676.188-2.527a8.74 8.74 0 0 0-.531-2.516 5.919 5.919 0 0 0-.68-1.281c-.289-.43-.64-.856-1.031-1.258a10.34 10.34 0 0 0-1.262-1.11 8.299 8.299 0 0 0-1.379-.847c-.414-.2-.722-.352-.95-.492-.226-.137-.366-.27-.44-.43-.075-.16-.083-.352-.043-.613.039-.266.125-.598.242-1.043.226-.871.566-1.695 1.004-2.465a10.426 10.426 0 0 1 3.672-3.754c.77-.46 1.605-.836 2.492-1.102.152-.046.386-.093.675-.144a30.829 30.829 0 0 1 2.246-.273c.43-.043.876-.075 1.317-.102a41.754 41.754 0 0 0 2.773-.25 19.813 19.813 0 0 0 2.243-.406 13.283 13.283 0 0 0 1.918-.621c.609-.246 1.199-.536 1.804-.88a20.824 20.824 0 0 0 1.774-1.116c.539-.383 1.031-.786 1.511-1.227.48-.445.942-.934 1.415-1.488.468-.559.953-1.18 1.468-1.899l.309-.426.308-.43.313-.429.309-.426v19.633l-.399.262-.402.265-.797.532a11.66 11.66 0 0 0-1.567 1.21c-.44.41-.808.837-1.113 1.305-.305.465-.55.97-.746 1.535-.2.567-.351 1.192-.473 1.903a7.401 7.401 0 0 0 .024 2.574 8.502 8.502 0 0 0 2.441 4.543 7.787 7.787 0 0 0 2.157 1.496c.804.367 1.632.61 2.46.715.829.105 1.66.082 2.47-.07a7.963 7.963 0 0 0 2.343-.828 8.831 8.831 0 0 0 2.094-1.567c.406-.402.738-.789 1.011-1.18.27-.394.48-.796.641-1.234.156-.441.266-.918.336-1.473.07-.55.102-1.171.105-1.894 0-.524 0-.93-.011-1.266a6.504 6.504 0 0 0-.074-.836 3.967 3.967 0 0 0-.192-.683c-.09-.23-.207-.485-.355-.805a7.845 7.845 0 0 0-1.594-2.262 8.117 8.117 0 0 0-1.07-.879 9.342 9.342 0 0 0-1.254-.718l-.348-.164-.348-.16-.343-.165-.348-.164v-4.957l-.004-2.476v-2.48c0-1.36.004-2.657.012-3.833.008-1.176.02-2.23.035-3.11.016-.882.035-1.589.055-2.07.02-.48.043-.734.066-.707.02.028.074.102.156.208l.301.421c.121.168.258.364.406.575.145.207.305.433.461.664.38.543.735 1.027 1.09 1.468.352.438.703.832 1.063 1.2.363.367.742.707 1.148 1.039.406.328.844.652 1.332.98.777.528 1.5.965 2.223 1.328.718.364 1.437.657 2.203.89.765.235 1.582.411 2.496.544.914.137 1.93.23 3.094.3.433.024.867.055 1.289.087a40.742 40.742 0 0 1 2.148.215c.27.035.477.07.602.101.965.234 1.898.64 2.761 1.168a11.119 11.119 0 0 1 2.34 1.93 10.355 10.355 0 0 1 1.688 2.437c.43.867.707 1.781.805 2.695l.03.313.032.309.035.316.031.309-.27.14-.538.274-.274.136c-.828.426-1.558.922-2.183 1.493a7.954 7.954 0 0 0-1.54 1.91 7.731 7.731 0 0 0-.87 2.273 9.264 9.264 0 0 0-.172 2.594c.066.96.285 1.871.64 2.703a7.903 7.903 0 0 0 1.446 2.258 8.316 8.316 0 0 0 2.14 1.683c.817.45 1.727.782 2.715.98 1.309.255 2.617.126 3.836-.3a8.813 8.813 0 0 0 3.266-2.05 8.893 8.893 0 0 0 2.117-3.239c.453-1.21.613-2.527.387-3.848a9.06 9.06 0 0 0-1.504-3.644 9.344 9.344 0 0 0-1.301-1.477 8.97 8.97 0 0 0-1.61-1.16c-.18-.097-.347-.2-.507-.293-.16-.097-.305-.183-.434-.265-.125-.082-.23-.153-.312-.211a.573.573 0 0 1-.137-.121.813.813 0 0 1-.063-.184c-.027-.094-.058-.223-.097-.375a11.147 11.147 0 0 1-.11-.512c-.039-.187-.082-.39-.12-.594-.098-.5-.227-1.023-.383-1.554a19.7 19.7 0 0 0-.551-1.594c-.207-.527-.43-1.039-.668-1.512a12.868 12.868 0 0 0-.735-1.3 12.93 12.93 0 0 0-1.582-1.954 15.064 15.064 0 0 0-1.98-1.691 15.833 15.833 0 0 0-2.27-1.355 14.35 14.35 0 0 0-2.449-.934 9.33 9.33 0 0 0-.836-.188 25.72 25.72 0 0 0-1.094-.18 40.224 40.224 0 0 0-2.605-.269 51.614 51.614 0 0 1-1.281-.11 47.27 47.27 0 0 1-1.242-.128 37.65 37.65 0 0 1-1.067-.14 12.643 12.643 0 0 1-.746-.133 11.48 11.48 0 0 1-1.508-.458c-.5-.187-.996-.414-1.472-.668a12.371 12.371 0 0 1-2.606-1.847 16.117 16.117 0 0 1-1.676-1.836 5.604 5.604 0 0 1-.465-.707c-.097-.192-.125-.324-.074-.375.016-.016.117-.012.285.004.168.015.407.047.696.09.293.039.633.093 1.008.156.37.062.78.137 1.207.215a60.65 60.65 0 0 0 1.789.304c.527.079 1.011.133 1.535.172.523.04 1.09.063 1.777.078.692.016 1.504.02 2.527.024 1.22 0 2.204-.008 3.06-.031a27.474 27.474 0 0 0 2.257-.153 20.662 20.662 0 0 0 2.047-.336 48.885 48.885 0 0 0 2.426-.59 44.634 44.634 0 0 0 5.347-1.761 42.256 42.256 0 0 0 4.98-2.387 43.059 43.059 0 0 0 4.633-3.031 46.976 46.976 0 0 0 4.329-3.692 55.822 55.822 0 0 0 3.312-3.468 49.244 49.244 0 0 0 2.879-3.63 50.142 50.142 0 0 0 2.516-3.886 57.29 57.29 0 0 0 2.23-4.258c.375-.793.691-1.48.95-2.066.257-.59.46-1.078.613-1.473.144-.398.242-.7.285-.918.047-.219.039-.351-.016-.402-.078-.07-.41-.23-.902-.442a57.272 57.272 0 0 0-1.828-.73c-.692-.262-1.434-.535-2.121-.777a36.517 36.517 0 0 0-1.778-.586 54.289 54.289 0 0 0-3.531-.879 48.341 48.341 0 0 0-1.715-.332 23.874 23.874 0 0 0-1.465-.215l-.633-.07-.312-.04-.316-.035V39.301l-2.461.004h-2.461l-2.457.004h-2.461c-2.645.004-4.664.007-6.266.03-1.605.024-2.797.067-3.789.141-.992.079-1.789.192-2.598.356-.812.164-1.64.383-2.703.668a23.531 23.531 0 0 1-1.203.3c-.16.036-.289.06-.383.075-.093.016-.148.02-.156.008a29.962 29.962 0 0 1-.355-.672c-.102-.2-.22-.434-.348-.692a79.19 79.19 0 0 1-.418-.828c-.45-.902-.785-1.578-1.168-2.234-.379-.66-.805-1.297-1.422-2.117-.617-.817-1.433-1.82-2.594-3.203-1.16-1.387-2.671-3.153-4.68-5.508-1.398-1.64-2.53-2.961-3.44-4.02a272.265 272.265 0 0 0-2.122-2.441c-.523-.59-.875-.973-1.11-1.211-.237-.234-.355-.324-.402-.32-.015 0-.07.047-.156.132-.086.086-.199.207-.34.356-.136.148-.296.328-.472.523-.172.2-.364.414-.555.641m7.059 11.504a151.52 151.52 0 0 1 3.582 4.336 58.05 58.05 0 0 1 2.488 3.336c.66.965 1.16 1.793 1.516 2.515.355.72.57 1.332.66 1.868.023.14.039.25.031.347a.526.526 0 0 1-.09.262 1.205 1.205 0 0 1-.266.262c-.12.093-.285.199-.492.332-.332.21-.773.554-1.265.976-.493.426-1.043.934-1.594 1.473a43.455 43.455 0 0 0-1.625 1.672 25.487 25.487 0 0 0-1.348 1.574c-.398.512-.812 1.09-1.222 1.703a39.76 39.76 0 0 0-1.204 1.91 39.73 39.73 0 0 0-1.085 1.946c-.329.636-.622 1.25-.86 1.812-.34.809-.672 1.727-.976 2.688-.305.96-.582 1.964-.817 2.945-.234.984-.43 1.945-.562 2.816-.137.871-.215 1.653-.215 2.282-.004.609-.024 1.054-.055 1.332-.035.277-.086.386-.152.328-.067-.055-.149-.278-.246-.664a26.572 26.572 0 0 1-.336-1.66 76.29 76.29 0 0 0-.54-2.758 81.86 81.86 0 0 0-.624-2.66c-.211-.844-.43-1.637-.645-2.34a22.878 22.878 0 0 0-.617-1.801 24.472 24.472 0 0 0-.742-1.66 48.94 48.94 0 0 0-2.047-3.746c-.36-.59-.707-1.13-1.027-1.582a21.393 21.393 0 0 0-1.153-1.446 44.776 44.776 0 0 0-1.558-1.71 47.283 47.283 0 0 0-1.657-1.657c-.539-.512-1.043-.96-1.468-1.3-.172-.141-.34-.278-.489-.41a8.144 8.144 0 0 1-.402-.376 3.846 3.846 0 0 1-.27-.293c-.066-.082-.101-.144-.101-.176 0-.105.098-.378.262-.753.16-.372.386-.848.644-1.356.258-.508.547-1.05.828-1.562a24.735 24.735 0 0 1 1.582-2.508c.262-.371.543-.746.871-1.16.329-.418.7-.871 1.149-1.407.45-.535.973-1.144 1.601-1.87.235-.27.536-.614.875-1.005.336-.394.715-.832 1.114-1.293.394-.46.808-.937 1.215-1.41.402-.472.8-.933 1.168-1.363l.668-.777.668-.774.667-.777.665-.778.117.118.113.12.117.118.113.117a110.75 110.75 0 0 1 1.668 1.914l1.555 1.809c.57.664 1.184 1.383 1.813 2.12M51.227 44.149c.425.09.867.2 1.304.317.434.117.864.242 1.254.37.395.13.754.259 1.055.38.297.12.535.234.687.332.051.035.09.094.11.191.02.098.023.239.011.442-.015.199-.046.457-.097.793-.055.336-.125.75-.215 1.257-.094.524-.172.989-.23 1.446-.06.457-.106.91-.137 1.41a32.68 32.68 0 0 0-.067 1.7c-.011.648-.015 1.401-.015 2.312 0 .98.004 1.761.015 2.414.012.648.035 1.172.07 1.644.04.473.09.89.165 1.336.07.446.164.918.285 1.488.074.348.156.72.242 1.094.082.375.168.754.254 1.11.086.359.168.695.242.992.074.3.14.554.195.75.055.195.102.383.149.554.043.172.082.329.113.461.031.13.059.239.07.317.016.078.02.125.012.133a.942.942 0 0 1-.183-.079 35.955 35.955 0 0 1-1.148-.629c-.255-.144-.532-.304-.821-.472a95.651 95.651 0 0 0-2.031-1.152 44.616 44.616 0 0 0-1.723-.899 34 34 0 0 0-1.633-.75 44.224 44.224 0 0 0-1.762-.715 50.86 50.86 0 0 0-2.855-1.004 45.68 45.68 0 0 0-2.8-.793 39.106 39.106 0 0 0-2.653-.562 26.924 26.924 0 0 0-2.406-.309l-.426-.03-.426-.036-.426-.031-.426-.035V43.758h7.215c1.578.004 2.832.008 3.852.015 1.02.012 1.8.028 2.437.055a20.37 20.37 0 0 1 1.547.117c.43.051.797.117 1.196.203m64.886 7.493c0 1.23-.008 2.34-.015 3.312-.008.977-.02 1.817-.04 2.504-.015.691-.038 1.23-.062 1.602-.023.367-.05.57-.082.59a1.259 1.259 0 0 1-.281.07c-.153.031-.367.062-.617.101-.254.035-.547.078-.868.117-.32.043-.664.083-1.02.122-.765.086-1.538.199-2.323.343-.79.141-1.59.313-2.407.516-.816.203-1.652.434-2.503.7-.856.26-1.73.558-2.625.882-.735.266-1.305.477-1.801.672-.496.195-.918.375-1.348.578-.43.203-.867.43-1.398.723-.528.289-1.149.644-1.946 1.101a34.54 34.54 0 0 1-1.644.895 9.035 9.035 0 0 1-.528.242c-.128.055-.21.074-.226.059-.016-.016-.02-.082-.012-.184a5.49 5.49 0 0 1 .055-.422c.031-.172.066-.371.113-.59.043-.219.098-.457.156-.699.258-1.082.454-1.906.602-2.613.152-.703.258-1.282.332-1.867.078-.583.125-1.172.156-1.895.035-.723.059-1.578.086-2.695.024-.98.04-1.77.043-2.434.004-.66-.004-1.2-.027-1.684a17.76 17.76 0 0 0-.113-1.355 29.95 29.95 0 0 0-.223-1.445c-.152-.887-.27-1.543-.336-2.035-.066-.493-.086-.825-.04-1.059a.664.664 0 0 1 .333-.492c.18-.117.437-.207.781-.336.692-.266 1.29-.469 1.926-.63.637-.16 1.309-.276 2.152-.358.84-.082 1.852-.133 3.164-.16 1.309-.032 2.922-.044 4.965-.047l3.813-.008h1.902l1.906-.004v7.883m-25.05-2.368c.195 1.02.343 1.977.437 2.91.098.934.14 1.837.133 2.75a25.621 25.621 0 0 1-.18 2.797c-.11.961-.273 1.961-.488 3.036a39.395 39.395 0 0 1-.746 3.12 31.161 31.161 0 0 1-.946 2.829c-.355.906-.75 1.781-1.187 2.64a30.9 30.9 0 0 1-1.473 2.555c-.215.34-.597.86-1.074 1.469a76.18 76.18 0 0 1-1.625 2.012 79.82 79.82 0 0 1-1.73 2.011 30.987 30.987 0 0 1-1.387 1.489l-.258.25-.262.254-.257.253-.262.254.02-1.62.023-1.622.02-1.617.019-1.621c.02-1.414.035-2.543.058-3.465.02-.922.047-1.637.082-2.227.036-.59.082-1.054.141-1.472.059-.422.133-.797.227-1.211a38.117 38.117 0 0 1 1.086-3.91c.418-1.235.89-2.403 1.433-3.524a28.68 28.68 0 0 1 1.82-3.222 31.184 31.184 0 0 1 2.258-3.012 18.08 18.08 0 0 1 1.012-1.086c.367-.363.746-.715 1.106-1.023.355-.31.69-.575.964-.762.27-.188.48-.297.59-.297.035 0 .07.031.11.086.039.05.078.129.12.226a4.214 4.214 0 0 1 .216.75m-28.895.91c.914.915 1.738 1.86 2.488 2.86a25.52 25.52 0 0 1 2.028 3.187 30.027 30.027 0 0 1 1.636 3.645 42.64 42.64 0 0 1 1.32 4.23c.122.485.22.872.294 1.274.074.406.125.832.164 1.387.043.554.07 1.242.09 2.171.023.934.039 2.11.058 3.645.02 1.441.035 2.566.04 3.438.003.87 0 1.488-.016 1.921-.016.434-.043.68-.086.813-.04.129-.094.14-.16.101-.106-.058-.376-.324-.743-.722-.367-.399-.84-.926-1.34-1.512a82.643 82.643 0 0 1-1.539-1.832 48.185 48.185 0 0 1-1.34-1.695c-.34-.45-.722-1.031-1.117-1.688a40.534 40.534 0 0 1-1.183-2.125 43.623 43.623 0 0 1-1.075-2.207 21.82 21.82 0 0 1-.773-1.933c-.07-.215-.152-.477-.238-.762-.082-.29-.172-.602-.258-.922a49.961 49.961 0 0 1-.461-1.844c-.187-.86-.316-2.113-.395-3.508a62.606 62.606 0 0 1-.066-4.378c.027-1.434.106-2.762.227-3.735.12-.969.285-1.578.492-1.578.023 0 .097.05.21.14.11.09.259.22.438.38a44.358 44.358 0 0 1 1.305 1.25m53.23 15.39a24.897 24.897 0 0 1-.965 4.492 26.72 26.72 0 0 1-.824 2.25 33.11 33.11 0 0 1-1.058 2.305c-.344.676-.66 1.262-.98 1.805-.321.543-.641 1.035-.997 1.523-.351.485-.734.961-1.18 1.473-.445.508-.953 1.05-1.542 1.66a35.204 35.204 0 0 1-1.579 1.54c-.496.448-.976.847-1.468 1.21-.493.367-1 .703-1.551 1.031-.55.328-1.145.649-1.817.989-.84.421-1.624.761-2.445 1.03a15.58 15.58 0 0 1-2.683.626c-1.004.152-2.145.25-3.532.308-1.382.063-3.011.082-4.98.082H82.18l.03-.113.036-.113.031-.113.035-.114c.055-.199.243-.582.516-1.074.274-.496.633-1.101 1.027-1.746.399-.645.836-1.324 1.266-1.969.43-.644.852-1.25 1.219-1.746a44.604 44.604 0 0 1 5.883-6.445 41.569 41.569 0 0 1 6.812-4.977 38.048 38.048 0 0 1 7.477-3.36 34.711 34.711 0 0 1 7.886-1.585c.11-.008.22-.02.325-.027.105-.008.203-.02.293-.028.09-.008.164-.02.226-.023.063-.008.106-.016.13-.02.023-.004.038.024.05.078a.934.934 0 0 1 .023.239c.004.101 0 .226-.007.363-.008.137-.02.29-.04.45M30.934 66.89c.242 1.234.562 2.488.945 3.738a41.182 41.182 0 0 0 1.32 3.68 37.438 37.438 0 0 0 1.61 3.425 27.185 27.185 0 0 0 1.816 2.961c.45.633.992 1.313 1.594 2.004a38.232 38.232 0 0 0 1.949 2.074c.687.68 1.395 1.34 2.098 1.942.699.597 1.39 1.144 2.03 1.597.298.208.575.407.825.59.25.184.469.352.649.496.18.141.32.258.41.344.09.082.129.133.105.14-.066.028-.328-.038-.71-.167-.384-.13-.891-.324-1.458-.555a48.612 48.612 0 0 1-1.812-.777 38.066 38.066 0 0 1-7.352-4.297 42.01 42.01 0 0 1-5.043-4.422 44.733 44.733 0 0 1-4.37-5.254 45.026 45.026 0 0 1-3.575-5.941c-.125-.258-.25-.504-.356-.735-.109-.226-.207-.433-.285-.609-.078-.176-.14-.32-.18-.422-.042-.101-.058-.164-.05-.172.008-.008.062-.031.148-.066.09-.035.211-.082.36-.137.144-.05.32-.113.507-.18l.614-.21c.433-.145.988-.297 1.593-.446a39.578 39.578 0 0 1 3.805-.73c.574-.078 1.07-.125 1.434-.133l.23-.004.235-.004.23-.004.234-.004.114.57.109.57.113.567.114.57m8.199-1.87c1.383.238 2.8.59 4.226 1.039 1.426.449 2.856 1 4.27 1.636a42.064 42.064 0 0 1 4.16 2.164c1.348.801 2.648 1.68 3.879 2.621.41.317.95.778 1.547 1.32a69.069 69.069 0 0 1 1.914 1.805c.652.641 1.3 1.293 1.871 1.899a31.34 31.34 0 0 1 1.422 1.586 46.416 46.416 0 0 1 1.726 2.27c.57.796 1.125 1.613 1.622 2.39.5.781.94 1.52 1.285 2.152.343.637.593 1.172.71 1.543l.032.114.035.113.04.113.03.113h-5.511c-1.918 0-3.48-.02-4.801-.078-1.324-.058-2.41-.156-3.371-.312a15.68 15.68 0 0 1-2.63-.653c-.831-.289-1.651-.652-2.581-1.109a20.527 20.527 0 0 1-3.137-1.926 24.776 24.776 0 0 1-2.902-2.523 26.07 26.07 0 0 1-2.528-2.988 24.005 24.005 0 0 1-2.011-3.305 35.404 35.404 0 0 1-1.192-2.649 38.321 38.321 0 0 1-.968-2.66 25.394 25.394 0 0 1-.645-2.39c-.156-.72-.238-1.348-.238-1.832 0-.211 0-.371.011-.489.012-.12.032-.203.079-.257.043-.055.105-.082.203-.098.093-.016.222-.016.39-.016.094 0 .25.012.453.032.204.023.454.05.73.09.278.035.583.078.903.128.32.047.653.102.977.157m84.953.085c.336.06.809.168 1.336.297.523.13 1.101.282 1.64.434.543.152 1.051.305 1.43.43.387.125.649.222.7.273.027.023-.028.184-.149.45-.121.265-.3.632-.527 1.062-.223.433-.493.93-.79 1.457a56.9 56.9 0 0 1-.937 1.633 44.31 44.31 0 0 1-3.473 5.027 46.345 46.345 0 0 1-4.12 4.531 43.203 43.203 0 0 1-4.571 3.848 34.726 34.726 0 0 1-4.82 2.969 42.898 42.898 0 0 1-3.02 1.367c-.469.191-.89.351-1.207.457-.32.105-.535.156-.598.137-.027-.012.004-.055.079-.133.074-.074.195-.18.351-.309.153-.129.348-.281.563-.445.218-.164.465-.344.722-.531a31.987 31.987 0 0 0 3.067-2.473 30.025 30.025 0 0 0 4.992-5.887 32.018 32.018 0 0 0 1.953-3.441c.398-.809.75-1.57 1.059-2.309a30.121 30.121 0 0 0 1.48-4.39c.188-.758.363-1.547.52-2.391l.109-.59.113-.586.11-.59.109-.586h1.133c.156 0 .347.008.566.024.215.012.457.035.703.062a20.21 20.21 0 0 1 1.477.203m-79.191 55.711c.363.23.671.555.917.934.247.379.426.816.536 1.273.109.457.148.938.105 1.407a3.61 3.61 0 0 1-.371 1.336c-.156.304-.332.57-.539.808a3.303 3.303 0 0 1-1.512.996 4.104 4.104 0 0 1-.965.184 4.468 4.468 0 0 1-1.03-.043 3.427 3.427 0 0 1-1.719-.805 4.434 4.434 0 0 1-.696-.77 3.378 3.378 0 0 1-.555-1.284 4.203 4.203 0 0 1-.046-1.434c.066-.48.21-.945.43-1.36.214-.413.507-.78.87-1.058a3.654 3.654 0 0 1 1.059-.555c.383-.132.789-.207 1.2-.222.41-.02.82.023 1.214.12.39.102.766.259 1.102.473m64.375-.195c.175.086.37.23.574.406.199.176.402.38.586.598.187.215.36.438.492.652.133.211.226.407.266.567.019.07.035.168.042.285.012.113.02.25.024.398.004.145 0 .301-.004.457a8.875 8.875 0 0 1-.023.461 3.545 3.545 0 0 1-.774 1.953 3.866 3.866 0 0 1-3.625 1.368 3.584 3.584 0 0 1-1.883-.95 4.289 4.289 0 0 1-.55-.609 2.827 2.827 0 0 1-.352-.637 3.475 3.475 0 0 1-.188-.746 6.793 6.793 0 0 1-.054-.941c0-.352.027-.672.082-.961.05-.293.137-.555.25-.797.117-.242.265-.465.449-.676.188-.21.406-.41.668-.601.25-.188.547-.328.879-.434a4.168 4.168 0 0 1 1.05-.187c.364-.024.735 0 1.09.066.36.062.7.176 1 .328m-31.93.473c.177.125.368.328.556.57.183.242.367.531.527.824.16.293.297.598.394.88a2.5 2.5 0 0 1 .16.737c0 .258-.074.567-.206.895a5.551 5.551 0 0 1-.54.996 6 6 0 0 1-.742.906c-.265.27-.547.489-.816.63a2.93 2.93 0 0 1-1.024.3 3.709 3.709 0 0 1-1.117-.047 3.928 3.928 0 0 1-1.066-.37 3.194 3.194 0 0 1-.871-.669 4.034 4.034 0 0 1-.68-1.012 4.028 4.028 0 0 1-.355-1.12 3.802 3.802 0 0 1-.012-1.153 3.5 3.5 0 0 1 .344-1.094c.187-.363.375-.664.586-.91.21-.242.441-.43.71-.57.266-.14.57-.23.922-.282a6.496 6.496 0 0 1 1.239-.046c.254.011.472.027.664.046.195.024.363.055.515.098a2.284 2.284 0 0 1 .813.39"/></svg>%0A';
|
|
944
|
-
|
|
945
|
-
// src/primitives/BrandMark.tsx
|
|
946
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
947
|
-
var mask = (url) => ({
|
|
948
|
-
WebkitMask: `url('${url}') center / contain no-repeat`,
|
|
949
|
-
mask: `url('${url}') center / contain no-repeat`
|
|
950
|
-
});
|
|
951
|
-
var MASKS = { mark: mask(mark_default), lockup: mask(lockup_horizontal_default) };
|
|
952
|
-
function BrandMark({ variant = "mark", className }) {
|
|
953
|
-
return /* @__PURE__ */ jsx7(
|
|
954
|
-
"span",
|
|
955
|
-
{
|
|
956
|
-
"aria-hidden": "true",
|
|
957
|
-
className: cn(
|
|
958
|
-
"polli:block polli:shrink-0 polli:bg-current",
|
|
959
|
-
className
|
|
960
|
-
),
|
|
961
|
-
style: MASKS[variant]
|
|
962
|
-
}
|
|
963
|
-
);
|
|
964
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
Alert,
|
|
3
|
+
ColorModeToggle,
|
|
4
|
+
Dialog,
|
|
5
|
+
DialogBody,
|
|
6
|
+
DialogDescription,
|
|
7
|
+
DialogFooter,
|
|
8
|
+
DialogHeader,
|
|
9
|
+
DialogTitle,
|
|
10
|
+
LoadingStatus,
|
|
11
|
+
Surface,
|
|
12
|
+
Switch,
|
|
13
|
+
setColorMode,
|
|
14
|
+
useColorMode
|
|
15
|
+
} from "./chunk-QFR7XRUE.js";
|
|
16
|
+
import {
|
|
17
|
+
AccountIdentity,
|
|
18
|
+
AccountIdentityLink,
|
|
19
|
+
AccountMenu,
|
|
20
|
+
BrandMark,
|
|
21
|
+
DropdownItem
|
|
22
|
+
} from "./chunk-7WXDUAJU.js";
|
|
23
|
+
import {
|
|
24
|
+
TabButton
|
|
25
|
+
} from "./chunk-ZLD4VLUG.js";
|
|
26
|
+
import {
|
|
27
|
+
ScrollArea
|
|
28
|
+
} from "./chunk-7XDOOFTL.js";
|
|
29
|
+
import {
|
|
30
|
+
ChevronIcon,
|
|
31
|
+
Dropdown
|
|
32
|
+
} from "./chunk-DD7MHUFD.js";
|
|
33
|
+
import {
|
|
34
|
+
Chip
|
|
35
|
+
} from "./chunk-3VM5R3OI.js";
|
|
36
|
+
import {
|
|
37
|
+
CodeBlock,
|
|
38
|
+
CopyButton,
|
|
39
|
+
Tooltip
|
|
40
|
+
} from "./chunk-QAR2WP3L.js";
|
|
41
|
+
import {
|
|
42
|
+
Heading,
|
|
43
|
+
Text
|
|
44
|
+
} from "./chunk-TVPFAM3B.js";
|
|
45
|
+
import {
|
|
46
|
+
Button
|
|
47
|
+
} from "./chunk-7GDUPN6U.js";
|
|
48
|
+
import {
|
|
49
|
+
InlineLink,
|
|
50
|
+
isExternalHref
|
|
51
|
+
} from "./chunk-IX6BJNHM.js";
|
|
52
|
+
import {
|
|
53
|
+
AccountIcon,
|
|
54
|
+
AppIcon,
|
|
55
|
+
ArrowLeftIcon,
|
|
56
|
+
ArrowRightIcon,
|
|
57
|
+
AudioIcon,
|
|
58
|
+
BeakerIcon,
|
|
59
|
+
BookIcon,
|
|
60
|
+
BotIcon,
|
|
61
|
+
BugIcon,
|
|
62
|
+
CardIcon,
|
|
63
|
+
ChatIcon,
|
|
64
|
+
CheckIcon,
|
|
65
|
+
ClipboardIcon,
|
|
66
|
+
ClockIcon,
|
|
67
|
+
CloudUploadIcon,
|
|
68
|
+
CodeIcon,
|
|
69
|
+
CubeIcon,
|
|
70
|
+
DatabaseIcon,
|
|
71
|
+
DiscordIcon,
|
|
72
|
+
DownloadIcon,
|
|
73
|
+
EarningsIcon,
|
|
74
|
+
ExpandIcon,
|
|
75
|
+
ExternalLinkIcon,
|
|
76
|
+
EyeIcon,
|
|
77
|
+
EyeOffIcon,
|
|
78
|
+
GenApiIcon,
|
|
79
|
+
GitBranchIcon,
|
|
80
|
+
GitHubIcon,
|
|
81
|
+
GitPullRequestIcon,
|
|
82
|
+
GlobeIcon,
|
|
83
|
+
GraduationCapIcon,
|
|
84
|
+
ImageIcon,
|
|
85
|
+
InstagramIcon,
|
|
86
|
+
KeyIcon,
|
|
87
|
+
LinkedInIcon,
|
|
88
|
+
LockIcon,
|
|
89
|
+
LogInIcon,
|
|
90
|
+
LogOutIcon,
|
|
91
|
+
MailIcon,
|
|
92
|
+
McpIcon,
|
|
93
|
+
MegaphoneIcon,
|
|
94
|
+
MenuIcon,
|
|
95
|
+
MicIcon,
|
|
96
|
+
MoonIcon,
|
|
97
|
+
NewspaperIcon,
|
|
98
|
+
PauseIcon,
|
|
99
|
+
PencilIcon,
|
|
100
|
+
PlayIcon,
|
|
101
|
+
PlusIcon,
|
|
102
|
+
PowerIcon,
|
|
103
|
+
ReasoningIcon,
|
|
104
|
+
ReceiptIcon,
|
|
105
|
+
RefreshIcon,
|
|
106
|
+
RobotIcon,
|
|
107
|
+
RocketIcon,
|
|
108
|
+
SearchIcon,
|
|
109
|
+
SignOutIcon,
|
|
110
|
+
SparkleIcon,
|
|
111
|
+
SparklesIcon,
|
|
112
|
+
SpeakerIcon,
|
|
113
|
+
SproutIcon,
|
|
114
|
+
StarIcon,
|
|
115
|
+
SunIcon,
|
|
116
|
+
TargetIcon,
|
|
117
|
+
TerminalIcon,
|
|
118
|
+
TokensIcon,
|
|
119
|
+
ToolIcon,
|
|
120
|
+
TrashIcon,
|
|
121
|
+
TrendUpIcon,
|
|
122
|
+
UsageIcon,
|
|
123
|
+
VideoIcon,
|
|
124
|
+
WalletIcon,
|
|
125
|
+
WarningIcon,
|
|
126
|
+
XIcon,
|
|
127
|
+
XSocialIcon
|
|
128
|
+
} from "./chunk-K2H3JFQK.js";
|
|
129
|
+
import {
|
|
130
|
+
cn
|
|
131
|
+
} from "./chunk-LKUZU37X.js";
|
|
965
132
|
|
|
966
133
|
// src/compositions/AppBrand.tsx
|
|
967
|
-
import { jsx
|
|
134
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
968
135
|
function AppBrand({
|
|
969
136
|
appName,
|
|
970
137
|
href = "/",
|
|
971
138
|
size = "md",
|
|
972
139
|
className
|
|
973
140
|
}) {
|
|
974
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ jsxs(
|
|
975
142
|
"a",
|
|
976
143
|
{
|
|
977
144
|
href,
|
|
@@ -981,13 +148,13 @@ function AppBrand({
|
|
|
981
148
|
className
|
|
982
149
|
),
|
|
983
150
|
children: [
|
|
984
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ jsx(
|
|
985
152
|
BrandMark,
|
|
986
153
|
{
|
|
987
154
|
className: size === "md" ? "polli:h-8 polli:w-8" : "polli:h-7 polli:w-7"
|
|
988
155
|
}
|
|
989
156
|
),
|
|
990
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ jsx(
|
|
991
158
|
"span",
|
|
992
159
|
{
|
|
993
160
|
className: cn(
|
|
@@ -1003,8 +170,8 @@ function AppBrand({
|
|
|
1003
170
|
}
|
|
1004
171
|
|
|
1005
172
|
// src/compositions/AppHeader.tsx
|
|
1006
|
-
import { useEffect, useState
|
|
1007
|
-
import { jsx as
|
|
173
|
+
import { useEffect, useState } from "react";
|
|
174
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1008
175
|
function scrollTopFor(target) {
|
|
1009
176
|
return target === window ? window.scrollY : target.scrollTop;
|
|
1010
177
|
}
|
|
@@ -1020,7 +187,7 @@ function AppHeader({
|
|
|
1020
187
|
innerClassName,
|
|
1021
188
|
navClassName
|
|
1022
189
|
}) {
|
|
1023
|
-
const [hidden, setHidden] =
|
|
190
|
+
const [hidden, setHidden] = useState(false);
|
|
1024
191
|
useEffect(() => {
|
|
1025
192
|
if (!autoHide || typeof window === "undefined") {
|
|
1026
193
|
setHidden(false);
|
|
@@ -1051,7 +218,7 @@ function AppHeader({
|
|
|
1051
218
|
target.removeEventListener("scroll", handleScroll);
|
|
1052
219
|
};
|
|
1053
220
|
}, [autoHide, scrollTargetRef]);
|
|
1054
|
-
return /* @__PURE__ */
|
|
221
|
+
return /* @__PURE__ */ jsx2(
|
|
1055
222
|
"header",
|
|
1056
223
|
{
|
|
1057
224
|
className: cn(
|
|
@@ -1062,7 +229,7 @@ function AppHeader({
|
|
|
1062
229
|
className
|
|
1063
230
|
),
|
|
1064
231
|
onFocusCapture: () => setHidden(false),
|
|
1065
|
-
children: /* @__PURE__ */
|
|
232
|
+
children: /* @__PURE__ */ jsxs2(
|
|
1066
233
|
"div",
|
|
1067
234
|
{
|
|
1068
235
|
className: cn(
|
|
@@ -1070,7 +237,7 @@ function AppHeader({
|
|
|
1070
237
|
innerClassName
|
|
1071
238
|
),
|
|
1072
239
|
children: [
|
|
1073
|
-
appName ? /* @__PURE__ */
|
|
240
|
+
appName ? /* @__PURE__ */ jsx2(AppBrand, { appName, href: brandHref }) : /* @__PURE__ */ jsxs2(
|
|
1074
241
|
"a",
|
|
1075
242
|
{
|
|
1076
243
|
href: brandHref ?? "https://pollinations.ai",
|
|
@@ -1078,8 +245,8 @@ function AppHeader({
|
|
|
1078
245
|
rel: "noopener noreferrer",
|
|
1079
246
|
className: "polli:inline-flex polli:shrink-0 polli:items-center polli:text-theme-text-strong",
|
|
1080
247
|
children: [
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ jsx2("span", { className: "polli:sr-only", children: brandLabel }),
|
|
249
|
+
/* @__PURE__ */ jsx2(
|
|
1083
250
|
BrandMark,
|
|
1084
251
|
{
|
|
1085
252
|
variant: "lockup",
|
|
@@ -1089,7 +256,7 @@ function AppHeader({
|
|
|
1089
256
|
]
|
|
1090
257
|
}
|
|
1091
258
|
),
|
|
1092
|
-
children ? /* @__PURE__ */
|
|
259
|
+
children ? /* @__PURE__ */ jsx2(
|
|
1093
260
|
"nav",
|
|
1094
261
|
{
|
|
1095
262
|
"aria-label": navLabel,
|
|
@@ -1107,35 +274,8 @@ function AppHeader({
|
|
|
1107
274
|
);
|
|
1108
275
|
}
|
|
1109
276
|
|
|
1110
|
-
// src/primitives/Surface.tsx
|
|
1111
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
1112
|
-
var variantClasses = {
|
|
1113
|
-
// Phones get tighter padding (and a matching radius) so nested cards keep
|
|
1114
|
-
// their width; from `sm` up the page has room for the full spacing.
|
|
1115
|
-
panel: "polli:rounded-3xl polli:bg-surface-block polli:p-4 polli:sm:rounded-block polli:sm:p-7",
|
|
1116
|
-
card: "polli-surface-card polli:rounded-card polli:bg-surface-opaque polli:p-3.5 polli:sm:p-4",
|
|
1117
|
-
"card-themed": "polli:rounded-card polli:bg-theme-bg-pale polli:p-3.5 polli:sm:p-4"
|
|
1118
|
-
};
|
|
1119
|
-
function Surface({
|
|
1120
|
-
as,
|
|
1121
|
-
variant = "card",
|
|
1122
|
-
className,
|
|
1123
|
-
children,
|
|
1124
|
-
...rest
|
|
1125
|
-
}) {
|
|
1126
|
-
const Component = as || "div";
|
|
1127
|
-
return /* @__PURE__ */ jsx10(
|
|
1128
|
-
Component,
|
|
1129
|
-
{
|
|
1130
|
-
...rest,
|
|
1131
|
-
className: cn("polli:min-w-0", variantClasses[variant], className),
|
|
1132
|
-
children
|
|
1133
|
-
}
|
|
1134
|
-
);
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
277
|
// src/compositions/Callout.tsx
|
|
1138
|
-
import { jsx as
|
|
278
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1139
279
|
function Callout({
|
|
1140
280
|
title,
|
|
1141
281
|
body,
|
|
@@ -1143,7 +283,7 @@ function Callout({
|
|
|
1143
283
|
tone = "theme",
|
|
1144
284
|
className
|
|
1145
285
|
}) {
|
|
1146
|
-
return /* @__PURE__ */
|
|
286
|
+
return /* @__PURE__ */ jsxs3(
|
|
1147
287
|
Surface,
|
|
1148
288
|
{
|
|
1149
289
|
as: "section",
|
|
@@ -1154,8 +294,8 @@ function Callout({
|
|
|
1154
294
|
className
|
|
1155
295
|
),
|
|
1156
296
|
children: [
|
|
1157
|
-
/* @__PURE__ */
|
|
1158
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ jsxs3("div", { className: "polli:flex polli:max-w-lg polli:flex-col polli:gap-2.5", children: [
|
|
298
|
+
/* @__PURE__ */ jsx3(
|
|
1159
299
|
Heading,
|
|
1160
300
|
{
|
|
1161
301
|
size: "section",
|
|
@@ -1163,119 +303,20 @@ function Callout({
|
|
|
1163
303
|
children: title
|
|
1164
304
|
}
|
|
1165
305
|
),
|
|
1166
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ jsx3(Text, { className: "polli:text-theme-text-strong/75", children: body })
|
|
1167
307
|
] }),
|
|
1168
|
-
/* @__PURE__ */
|
|
1169
|
-
]
|
|
1170
|
-
}
|
|
1171
|
-
);
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
// src/compositions/ChatConversation.tsx
|
|
1175
|
-
import {
|
|
1176
|
-
forwardRef as forwardRef2
|
|
1177
|
-
} from "react";
|
|
1178
|
-
|
|
1179
|
-
// src/primitives/ScrollArea.tsx
|
|
1180
|
-
import {
|
|
1181
|
-
forwardRef,
|
|
1182
|
-
useCallback,
|
|
1183
|
-
useEffect as useEffect2,
|
|
1184
|
-
useRef
|
|
1185
|
-
} from "react";
|
|
1186
|
-
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1187
|
-
var axisClasses = {
|
|
1188
|
-
y: "polli:overflow-y-auto polli:overflow-x-hidden",
|
|
1189
|
-
x: "polli:overflow-x-auto polli:overflow-y-hidden",
|
|
1190
|
-
both: "polli:overflow-auto"
|
|
1191
|
-
};
|
|
1192
|
-
function assignRef(ref, value) {
|
|
1193
|
-
if (typeof ref === "function") ref(value);
|
|
1194
|
-
else if (ref) ref.current = value;
|
|
308
|
+
/* @__PURE__ */ jsx3("div", { className: "polli:flex polli:flex-wrap polli:items-center polli:gap-3", children })
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
);
|
|
1195
312
|
}
|
|
1196
|
-
var ScrollArea = forwardRef(
|
|
1197
|
-
({ axis = "y", scrollbar = "subtle", className, children, ...rest }, externalRef) => {
|
|
1198
|
-
const innerRef = useRef(null);
|
|
1199
|
-
const setRef = useCallback(
|
|
1200
|
-
(node) => {
|
|
1201
|
-
innerRef.current = node;
|
|
1202
|
-
assignRef(externalRef, node);
|
|
1203
|
-
},
|
|
1204
|
-
[externalRef]
|
|
1205
|
-
);
|
|
1206
|
-
useEffect2(() => {
|
|
1207
|
-
if (scrollbar === "native") return;
|
|
1208
|
-
const element = innerRef.current;
|
|
1209
|
-
if (!element) return;
|
|
1210
|
-
let hideTimer = null;
|
|
1211
|
-
const clearHideTimer = () => {
|
|
1212
|
-
if (hideTimer !== null) {
|
|
1213
|
-
window.clearTimeout(hideTimer);
|
|
1214
|
-
hideTimer = null;
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
|
-
const show = () => {
|
|
1218
|
-
element.dataset.scrollbarActive = "true";
|
|
1219
|
-
clearHideTimer();
|
|
1220
|
-
};
|
|
1221
|
-
const hide = () => {
|
|
1222
|
-
element.dataset.scrollbarActive = "false";
|
|
1223
|
-
clearHideTimer();
|
|
1224
|
-
};
|
|
1225
|
-
const scheduleHide = () => {
|
|
1226
|
-
clearHideTimer();
|
|
1227
|
-
hideTimer = window.setTimeout(hide, 2e3);
|
|
1228
|
-
};
|
|
1229
|
-
const handleInteraction = () => {
|
|
1230
|
-
show();
|
|
1231
|
-
scheduleHide();
|
|
1232
|
-
};
|
|
1233
|
-
hide();
|
|
1234
|
-
element.addEventListener("scroll", handleInteraction, {
|
|
1235
|
-
passive: true
|
|
1236
|
-
});
|
|
1237
|
-
element.addEventListener("wheel", handleInteraction, {
|
|
1238
|
-
passive: true
|
|
1239
|
-
});
|
|
1240
|
-
element.addEventListener("touchstart", handleInteraction, {
|
|
1241
|
-
passive: true
|
|
1242
|
-
});
|
|
1243
|
-
element.addEventListener("pointerdown", handleInteraction);
|
|
1244
|
-
element.addEventListener("keydown", handleInteraction);
|
|
1245
|
-
element.addEventListener("focusin", handleInteraction);
|
|
1246
|
-
element.addEventListener("focusout", scheduleHide);
|
|
1247
|
-
return () => {
|
|
1248
|
-
clearHideTimer();
|
|
1249
|
-
element.removeEventListener("scroll", handleInteraction);
|
|
1250
|
-
element.removeEventListener("wheel", handleInteraction);
|
|
1251
|
-
element.removeEventListener("touchstart", handleInteraction);
|
|
1252
|
-
element.removeEventListener("pointerdown", handleInteraction);
|
|
1253
|
-
element.removeEventListener("keydown", handleInteraction);
|
|
1254
|
-
element.removeEventListener("focusin", handleInteraction);
|
|
1255
|
-
element.removeEventListener("focusout", scheduleHide);
|
|
1256
|
-
};
|
|
1257
|
-
}, [scrollbar]);
|
|
1258
|
-
return /* @__PURE__ */ jsx12(
|
|
1259
|
-
"div",
|
|
1260
|
-
{
|
|
1261
|
-
...rest,
|
|
1262
|
-
ref: setRef,
|
|
1263
|
-
className: cn(
|
|
1264
|
-
scrollbar === "subtle" && "polli-scrollbar-subtle",
|
|
1265
|
-
"polli:min-w-0 polli:max-w-full",
|
|
1266
|
-
axisClasses[axis],
|
|
1267
|
-
className
|
|
1268
|
-
),
|
|
1269
|
-
children
|
|
1270
|
-
}
|
|
1271
|
-
);
|
|
1272
|
-
}
|
|
1273
|
-
);
|
|
1274
|
-
ScrollArea.displayName = "ScrollArea";
|
|
1275
313
|
|
|
1276
314
|
// src/compositions/ChatConversation.tsx
|
|
1277
|
-
import {
|
|
1278
|
-
|
|
315
|
+
import {
|
|
316
|
+
forwardRef
|
|
317
|
+
} from "react";
|
|
318
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
319
|
+
var ChatConversation = forwardRef(
|
|
1279
320
|
({
|
|
1280
321
|
children,
|
|
1281
322
|
className,
|
|
@@ -1284,8 +325,8 @@ var ChatConversation = forwardRef2(
|
|
|
1284
325
|
onScrollToBottom,
|
|
1285
326
|
scrollButtonLabel = "Scroll to latest message",
|
|
1286
327
|
...viewportProps
|
|
1287
|
-
}, ref) => /* @__PURE__ */
|
|
1288
|
-
/* @__PURE__ */
|
|
328
|
+
}, ref) => /* @__PURE__ */ jsxs4("div", { className: cn("polli:relative polli:min-h-0", className), children: [
|
|
329
|
+
/* @__PURE__ */ jsx4(
|
|
1289
330
|
ScrollArea,
|
|
1290
331
|
{
|
|
1291
332
|
...viewportProps,
|
|
@@ -1294,7 +335,7 @@ var ChatConversation = forwardRef2(
|
|
|
1294
335
|
children
|
|
1295
336
|
}
|
|
1296
337
|
),
|
|
1297
|
-
showScrollButton && onScrollToBottom && /* @__PURE__ */
|
|
338
|
+
showScrollButton && onScrollToBottom && /* @__PURE__ */ jsx4(
|
|
1298
339
|
"button",
|
|
1299
340
|
{
|
|
1300
341
|
type: "button",
|
|
@@ -1302,7 +343,7 @@ var ChatConversation = forwardRef2(
|
|
|
1302
343
|
title: scrollButtonLabel,
|
|
1303
344
|
onClick: onScrollToBottom,
|
|
1304
345
|
className: "polli-control polli:absolute polli:bottom-3 polli:left-1/2 polli:flex polli:size-9 polli:-translate-x-1/2 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-full polli:border polli:border-theme-border/60 polli:bg-surface-opaque polli:text-theme-text-strong polli:transition-transform polli:hover:translate-y-0.5",
|
|
1305
|
-
children: /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ jsx4(ArrowRightIcon, { className: "polli:size-4 polli:rotate-90" })
|
|
1306
347
|
}
|
|
1307
348
|
)
|
|
1308
349
|
] })
|
|
@@ -1312,7 +353,7 @@ function ChatConversationContent({
|
|
|
1312
353
|
className,
|
|
1313
354
|
...props
|
|
1314
355
|
}) {
|
|
1315
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ jsx4(
|
|
1316
357
|
"div",
|
|
1317
358
|
{
|
|
1318
359
|
className: cn(
|
|
@@ -1325,627 +366,171 @@ function ChatConversationContent({
|
|
|
1325
366
|
}
|
|
1326
367
|
|
|
1327
368
|
// src/compositions/ChatMessage.tsx
|
|
1328
|
-
import { jsx as
|
|
369
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1329
370
|
function ChatMessage({
|
|
1330
371
|
from,
|
|
1331
372
|
className,
|
|
1332
373
|
children,
|
|
1333
374
|
...props
|
|
1334
375
|
}) {
|
|
1335
|
-
return /* @__PURE__ */
|
|
1336
|
-
"article",
|
|
1337
|
-
{
|
|
1338
|
-
"data-role": from,
|
|
1339
|
-
className: cn(
|
|
1340
|
-
"polli:group/message polli:flex polli:w-fit polli:max-w-full polli:min-w-0 polli:flex-col polli:gap-3 polli:[overflow-wrap:anywhere] polli:rounded-xl polli:px-4 polli:py-3",
|
|
1341
|
-
from === "user" ? "polli:ml-auto polli:bg-theme-bg-active polli:text-theme-text-strong" : "polli:mr-auto polli:bg-surface-opaque polli:text-theme-text-base",
|
|
1342
|
-
className
|
|
1343
|
-
),
|
|
1344
|
-
...props,
|
|
1345
|
-
children
|
|
1346
|
-
}
|
|
1347
|
-
);
|
|
1348
|
-
}
|
|
1349
|
-
function ChatMessageHeader({
|
|
1350
|
-
from,
|
|
1351
|
-
label,
|
|
1352
|
-
icon,
|
|
1353
|
-
className,
|
|
1354
|
-
...props
|
|
1355
|
-
}) {
|
|
1356
|
-
const content = label ?? (from === "user" ? "You" : from === "assistant" ? "Agent" : "System");
|
|
1357
|
-
return /* @__PURE__ */ jsxs9(
|
|
1358
|
-
"header",
|
|
1359
|
-
{
|
|
1360
|
-
className: cn(
|
|
1361
|
-
"polli:flex polli:items-center polli:gap-2",
|
|
1362
|
-
className
|
|
1363
|
-
),
|
|
1364
|
-
...props,
|
|
1365
|
-
children: [
|
|
1366
|
-
from === "assistant" && (icon ?? /* @__PURE__ */ jsx14("span", { className: "polli:flex polli:size-6 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-strong", children: /* @__PURE__ */ jsx14(RobotIcon, { className: "polli:size-3.5" }) })),
|
|
1367
|
-
/* @__PURE__ */ jsx14(
|
|
1368
|
-
Text,
|
|
1369
|
-
{
|
|
1370
|
-
as: "span",
|
|
1371
|
-
size: "xs",
|
|
1372
|
-
tone: "muted",
|
|
1373
|
-
weight: "bold",
|
|
1374
|
-
className: "polli:uppercase polli:tracking-wide",
|
|
1375
|
-
children: content
|
|
1376
|
-
}
|
|
1377
|
-
)
|
|
1378
|
-
]
|
|
1379
|
-
}
|
|
1380
|
-
);
|
|
1381
|
-
}
|
|
1382
|
-
function ChatMessageContent({
|
|
1383
|
-
className,
|
|
1384
|
-
...props
|
|
1385
|
-
}) {
|
|
1386
|
-
return /* @__PURE__ */ jsx14(
|
|
1387
|
-
"div",
|
|
1388
|
-
{
|
|
1389
|
-
className: cn(
|
|
1390
|
-
"polli:min-w-0 polli:[&_pre]:max-w-full polli:[&_pre]:overflow-x-auto polli:[&_table]:max-w-full polli:[&_table]:overflow-x-auto",
|
|
1391
|
-
className
|
|
1392
|
-
),
|
|
1393
|
-
...props
|
|
1394
|
-
}
|
|
1395
|
-
);
|
|
1396
|
-
}
|
|
1397
|
-
function ChatMessageActions({
|
|
1398
|
-
className,
|
|
1399
|
-
...props
|
|
1400
|
-
}) {
|
|
1401
|
-
return /* @__PURE__ */ jsx14(
|
|
1402
|
-
"footer",
|
|
1403
|
-
{
|
|
1404
|
-
className: cn(
|
|
1405
|
-
"polli:flex polli:flex-wrap polli:items-center polli:gap-1 polli:pt-2",
|
|
1406
|
-
className
|
|
1407
|
-
),
|
|
1408
|
-
...props
|
|
1409
|
-
}
|
|
1410
|
-
);
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
// src/compositions/ChatPromptInput.tsx
|
|
1414
|
-
import {
|
|
1415
|
-
forwardRef as forwardRef4
|
|
1416
|
-
} from "react";
|
|
1417
|
-
|
|
1418
|
-
// src/primitives/Textarea.tsx
|
|
1419
|
-
import { forwardRef as forwardRef3 } from "react";
|
|
1420
|
-
|
|
1421
|
-
// src/primitives/Field.tsx
|
|
1422
|
-
import { Field } from "@ark-ui/react/field";
|
|
1423
|
-
|
|
1424
|
-
// src/primitives/Textarea.tsx
|
|
1425
|
-
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1426
|
-
var Textarea = forwardRef3(
|
|
1427
|
-
({ className, error, rows = 4, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1428
|
-
Field.Textarea,
|
|
1429
|
-
{
|
|
1430
|
-
ref,
|
|
1431
|
-
rows,
|
|
1432
|
-
"aria-invalid": error || void 0,
|
|
1433
|
-
"data-error": error ? "true" : void 0,
|
|
1434
|
-
className: cn(
|
|
1435
|
-
"polli-textarea polli:w-full polli:rounded-lg polli:border polli:px-3 polli:py-2",
|
|
1436
|
-
"polli:min-h-20 polli:resize-y polli:font-body polli:text-base",
|
|
1437
|
-
"polli:text-theme-text-strong",
|
|
1438
|
-
"polli:transition-colors",
|
|
1439
|
-
"polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",
|
|
1440
|
-
className
|
|
1441
|
-
),
|
|
1442
|
-
...props
|
|
1443
|
-
}
|
|
1444
|
-
)
|
|
1445
|
-
);
|
|
1446
|
-
Textarea.displayName = "Textarea";
|
|
1447
|
-
|
|
1448
|
-
// src/compositions/ChatPromptInput.tsx
|
|
1449
|
-
import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1450
|
-
function ChatPromptInput({ className, ...props }) {
|
|
1451
|
-
return /* @__PURE__ */ jsx16(
|
|
1452
|
-
"fieldset",
|
|
1453
|
-
{
|
|
1454
|
-
className: cn("polli:m-0 polli:min-w-0 polli:p-0", className),
|
|
1455
|
-
...props
|
|
1456
|
-
}
|
|
1457
|
-
);
|
|
1458
|
-
}
|
|
1459
|
-
var ChatPromptTextarea = forwardRef4(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1460
|
-
Textarea,
|
|
1461
|
-
{
|
|
1462
|
-
...props,
|
|
1463
|
-
ref,
|
|
1464
|
-
className: cn("polli:resize-none", className)
|
|
1465
|
-
}
|
|
1466
|
-
));
|
|
1467
|
-
ChatPromptTextarea.displayName = "ChatPromptTextarea";
|
|
1468
|
-
function ChatPromptInputFooter({
|
|
1469
|
-
start,
|
|
1470
|
-
end,
|
|
1471
|
-
children,
|
|
1472
|
-
className,
|
|
1473
|
-
...props
|
|
1474
|
-
}) {
|
|
1475
|
-
return /* @__PURE__ */ jsx16(
|
|
1476
|
-
"div",
|
|
1477
|
-
{
|
|
1478
|
-
className: cn(
|
|
1479
|
-
"polli:flex polli:flex-wrap polli:items-end polli:gap-2",
|
|
1480
|
-
className
|
|
1481
|
-
),
|
|
1482
|
-
...props,
|
|
1483
|
-
children: children ?? /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
1484
|
-
/* @__PURE__ */ jsx16("div", { className: "polli:flex polli:flex-wrap polli:items-center polli:gap-2", children: start }),
|
|
1485
|
-
/* @__PURE__ */ jsx16("div", { className: "polli:ml-auto polli:flex polli:items-center polli:gap-2", children: end })
|
|
1486
|
-
] })
|
|
1487
|
-
}
|
|
1488
|
-
);
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
// src/compositions/CopyButton.tsx
|
|
1492
|
-
import {
|
|
1493
|
-
useEffect as useEffect4,
|
|
1494
|
-
useRef as useRef3,
|
|
1495
|
-
useState as useState4
|
|
1496
|
-
} from "react";
|
|
1497
|
-
|
|
1498
|
-
// src/primitives/Button.tsx
|
|
1499
|
-
import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1500
|
-
var pillSizes = {
|
|
1501
|
-
icon: "polli:h-12 polli:w-12 polli:p-0",
|
|
1502
|
-
xs: "polli:h-5 polli:px-1.5 polli:py-0 polli:text-[11px] polli:leading-none",
|
|
1503
|
-
sm: "polli:min-h-7 polli:px-2 polli:pt-0.5 polli:pb-1",
|
|
1504
|
-
md: "polli:min-h-9 polli:px-4 polli:pt-1.5 polli:pb-2",
|
|
1505
|
-
lg: "polli:min-h-12 polli:px-6 polli:py-3 polli:text-base"
|
|
1506
|
-
};
|
|
1507
|
-
var raisedSizes = {
|
|
1508
|
-
icon: "polli:h-12 polli:w-12 polli:p-0",
|
|
1509
|
-
xs: "polli:px-2 polli:py-1 polli:text-xs",
|
|
1510
|
-
sm: "polli:px-4 polli:py-2 polli:text-sm",
|
|
1511
|
-
md: "polli:px-7 polli:py-3.5 polli:text-base",
|
|
1512
|
-
lg: "polli:px-8 polli:py-4 polli:text-lg"
|
|
1513
|
-
};
|
|
1514
|
-
var appearanceClasses = {
|
|
1515
|
-
pill: "polli:rounded-full",
|
|
1516
|
-
raised: "polli:rounded-xl polli:border-r-[3px] polli:border-b-[3px] polli:border-solid polli:border-theme-text-strong/20 polli:hover:border-theme-text-strong/45"
|
|
1517
|
-
};
|
|
1518
|
-
var themeClasses = "polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:transition-colors";
|
|
1519
|
-
var outlined = "polli:border polli:border-theme-text-soft polli:bg-theme-bg-active/30 polli:text-theme-text-strong polli:transition-colors polli:[.dark_&]:bg-transparent";
|
|
1520
|
-
var intentClasses2 = {
|
|
1521
|
-
brand: `${outlined} polli:hover:bg-theme-bg-active/50 polli:[.dark_&]:hover:bg-theme-text-soft/10`,
|
|
1522
|
-
commit: `${outlined} polli:hover:border-theme-bg-active polli:hover:bg-theme-bg-active polli:focus-visible:border-theme-bg-active polli:focus-visible:bg-theme-bg-active polli:[.dark_&]:hover:bg-theme-bg-active polli:[.dark_&]:focus-visible:bg-theme-bg-active`,
|
|
1523
|
-
danger: "polli:border polli:border-intent-danger-text polli:bg-intent-danger-bg-light polli:text-intent-danger-text polli:hover:bg-intent-danger-bg-hover polli:focus-visible:bg-intent-danger-bg-hover polli:transition-colors polli:[.dark_&]:bg-transparent polli:[.dark_&]:hover:bg-intent-danger-bg-hover polli:[.dark_&]:focus-visible:bg-intent-danger-bg-hover",
|
|
1524
|
-
info: "polli:bg-intent-info-bg-light polli:text-intent-info-text polli:hover:bg-intent-info-bg-hover polli:transition-colors",
|
|
1525
|
-
// A quiet white pill on the desk, like the colour toggle; hover previews
|
|
1526
|
-
// the accent as the ambient button does.
|
|
1527
|
-
surface: "polli:bg-surface-opaque polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:transition-colors",
|
|
1528
|
-
// Secondary actions never take the accent: one step stronger grey on hover.
|
|
1529
|
-
neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-text-muted/25 polli:hover:text-theme-text-strong polli:transition-colors"
|
|
1530
|
-
};
|
|
1531
|
-
var buttonClasses = ({
|
|
1532
|
-
intent,
|
|
1533
|
-
appearance = "pill",
|
|
1534
|
-
size,
|
|
1535
|
-
className,
|
|
1536
|
-
disabled,
|
|
1537
|
-
busy
|
|
1538
|
-
}) => {
|
|
1539
|
-
const colorClasses = intent ? intentClasses2[intent] : themeClasses;
|
|
1540
|
-
const sizeClasses4 = appearance === "raised" ? raisedSizes : pillSizes;
|
|
1541
|
-
return cn(
|
|
1542
|
-
"polli-control polli:inline-flex polli:items-center polli:justify-center polli:self-center polli:font-body polli:text-sm polli:font-medium polli:leading-normal polli:box-border polli:border polli:border-transparent",
|
|
1543
|
-
// A busy button is working, not unavailable: it keeps its strength.
|
|
1544
|
-
busy ? "polli:cursor-progress" : disabled ? "polli:opacity-50 polli:cursor-not-allowed" : "polli:hover:filter polli:hover:brightness-105 polli:cursor-pointer",
|
|
1545
|
-
colorClasses,
|
|
1546
|
-
appearanceClasses[appearance],
|
|
1547
|
-
sizeClasses4[size || "md"],
|
|
1548
|
-
className
|
|
1549
|
-
);
|
|
1550
|
-
};
|
|
1551
|
-
function Button({
|
|
1552
|
-
as,
|
|
1553
|
-
children,
|
|
1554
|
-
icon,
|
|
1555
|
-
intent,
|
|
1556
|
-
appearance,
|
|
1557
|
-
size,
|
|
1558
|
-
className,
|
|
1559
|
-
disabled,
|
|
1560
|
-
...buttonProps
|
|
1561
|
-
}) {
|
|
1562
|
-
const Component = as || "button";
|
|
1563
|
-
const isButton = Component === "button";
|
|
1564
|
-
const isAnchor = Component === "a";
|
|
1565
|
-
const buttonType = buttonProps.type;
|
|
1566
|
-
const onClick = buttonProps.onClick;
|
|
1567
|
-
const ariaBusy = buttonProps["aria-busy"];
|
|
1568
|
-
const busy = ariaBusy === true || ariaBusy === "true";
|
|
1569
|
-
const handleClick = disabled ? (event) => {
|
|
1570
|
-
event.preventDefault();
|
|
1571
|
-
event.stopPropagation();
|
|
1572
|
-
} : onClick;
|
|
1573
|
-
return /* @__PURE__ */ jsxs11(
|
|
1574
|
-
Component,
|
|
1575
|
-
{
|
|
1576
|
-
...buttonProps,
|
|
1577
|
-
"data-intent": intent,
|
|
1578
|
-
...isButton ? { type: buttonType ?? "button", disabled } : {},
|
|
1579
|
-
...!isButton && disabled ? { "aria-disabled": true, tabIndex: -1 } : {},
|
|
1580
|
-
...isAnchor && disabled ? { href: void 0 } : {},
|
|
1581
|
-
onClick: handleClick,
|
|
1582
|
-
className: buttonClasses({
|
|
1583
|
-
intent,
|
|
1584
|
-
appearance,
|
|
1585
|
-
size,
|
|
1586
|
-
className,
|
|
1587
|
-
disabled,
|
|
1588
|
-
busy
|
|
1589
|
-
}),
|
|
1590
|
-
children: [
|
|
1591
|
-
icon && /* @__PURE__ */ jsx17(
|
|
1592
|
-
"span",
|
|
1593
|
-
{
|
|
1594
|
-
"aria-hidden": "true",
|
|
1595
|
-
className: "polli:mr-2 polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",
|
|
1596
|
-
children: busy ? /* @__PURE__ */ jsx17("span", { className: "polli:block polli:size-full polli:animate-spin polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent polli:motion-reduce:animate-none" }) : icon
|
|
1597
|
-
}
|
|
1598
|
-
),
|
|
1599
|
-
children
|
|
1600
|
-
]
|
|
1601
|
-
}
|
|
1602
|
-
);
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
// src/primitives/Tooltip.tsx
|
|
1606
|
-
import {
|
|
1607
|
-
useEffect as useEffect3,
|
|
1608
|
-
useId as useId3,
|
|
1609
|
-
useRef as useRef2,
|
|
1610
|
-
useState as useState3
|
|
1611
|
-
} from "react";
|
|
1612
|
-
import { createPortal } from "react-dom";
|
|
1613
|
-
import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1614
|
-
var TOOLTIP_MAX_WIDTH = 288;
|
|
1615
|
-
var TOOLTIP_VIEWPORT_MARGIN = 12;
|
|
1616
|
-
var Tooltip = ({
|
|
1617
|
-
children,
|
|
1618
|
-
content,
|
|
1619
|
-
align = "start",
|
|
1620
|
-
ariaLabel,
|
|
1621
|
-
clampToViewport = true,
|
|
1622
|
-
className,
|
|
1623
|
-
maxWidth = TOOLTIP_MAX_WIDTH,
|
|
1624
|
-
onClick,
|
|
1625
|
-
stopClickPropagation = true,
|
|
1626
|
-
style,
|
|
1627
|
-
tapEnabled = false,
|
|
1628
|
-
triggerAs = "button",
|
|
1629
|
-
displayContents = false
|
|
1630
|
-
}) => {
|
|
1631
|
-
const [showTooltip, setShowTooltip] = useState3(false);
|
|
1632
|
-
const [tooltipPosition, setTooltipPosition] = useState3({
|
|
1633
|
-
top: 0,
|
|
1634
|
-
left: 0,
|
|
1635
|
-
maxWidth
|
|
1636
|
-
});
|
|
1637
|
-
const triggerRef = useRef2(null);
|
|
1638
|
-
const tapPinnedRef = useRef2(false);
|
|
1639
|
-
const tooltipId = useId3();
|
|
1640
|
-
const closeTooltip = () => {
|
|
1641
|
-
tapPinnedRef.current = false;
|
|
1642
|
-
setShowTooltip(false);
|
|
1643
|
-
};
|
|
1644
|
-
useEffect3(() => {
|
|
1645
|
-
if (!showTooltip) return;
|
|
1646
|
-
const dismissOnOutsideTap = (event) => {
|
|
1647
|
-
if (triggerRef.current?.contains(event.target)) return;
|
|
1648
|
-
tapPinnedRef.current = false;
|
|
1649
|
-
setShowTooltip(false);
|
|
1650
|
-
};
|
|
1651
|
-
const dismissOnEscape = (event) => {
|
|
1652
|
-
if (event.key !== "Escape") return;
|
|
1653
|
-
tapPinnedRef.current = false;
|
|
1654
|
-
setShowTooltip(false);
|
|
1655
|
-
};
|
|
1656
|
-
const dismissOnViewportChange = () => {
|
|
1657
|
-
tapPinnedRef.current = false;
|
|
1658
|
-
setShowTooltip(false);
|
|
1659
|
-
};
|
|
1660
|
-
document.addEventListener("pointerdown", dismissOnOutsideTap);
|
|
1661
|
-
document.addEventListener("keydown", dismissOnEscape);
|
|
1662
|
-
window.addEventListener("scroll", dismissOnViewportChange, {
|
|
1663
|
-
capture: true,
|
|
1664
|
-
passive: true
|
|
1665
|
-
});
|
|
1666
|
-
window.addEventListener("resize", dismissOnViewportChange);
|
|
1667
|
-
return () => {
|
|
1668
|
-
document.removeEventListener("pointerdown", dismissOnOutsideTap);
|
|
1669
|
-
document.removeEventListener("keydown", dismissOnEscape);
|
|
1670
|
-
window.removeEventListener("scroll", dismissOnViewportChange, true);
|
|
1671
|
-
window.removeEventListener("resize", dismissOnViewportChange);
|
|
1672
|
-
};
|
|
1673
|
-
}, [showTooltip]);
|
|
1674
|
-
const updateTooltipPosition = () => {
|
|
1675
|
-
if (triggerRef.current) {
|
|
1676
|
-
const rect = triggerRef.current.getBoundingClientRect();
|
|
1677
|
-
const availableMaxWidth = Math.min(
|
|
1678
|
-
maxWidth,
|
|
1679
|
-
window.innerWidth - TOOLTIP_VIEWPORT_MARGIN * 2
|
|
1680
|
-
);
|
|
1681
|
-
let left = align === "center" ? rect.left + rect.width / 2 : rect.left;
|
|
1682
|
-
let transform = align === "center" ? "translateX(-50%)" : void 0;
|
|
1683
|
-
if (clampToViewport) {
|
|
1684
|
-
left = Math.min(
|
|
1685
|
-
Math.max(rect.left, TOOLTIP_VIEWPORT_MARGIN),
|
|
1686
|
-
Math.max(
|
|
1687
|
-
TOOLTIP_VIEWPORT_MARGIN,
|
|
1688
|
-
window.innerWidth - availableMaxWidth - TOOLTIP_VIEWPORT_MARGIN
|
|
1689
|
-
)
|
|
1690
|
-
);
|
|
1691
|
-
transform = void 0;
|
|
1692
|
-
}
|
|
1693
|
-
setTooltipPosition({
|
|
1694
|
-
top: rect.bottom + 4,
|
|
1695
|
-
left,
|
|
1696
|
-
maxWidth: availableMaxWidth,
|
|
1697
|
-
transform
|
|
1698
|
-
});
|
|
1699
|
-
}
|
|
1700
|
-
};
|
|
1701
|
-
const isControl = triggerAs === "button" || tapEnabled;
|
|
1702
|
-
const triggerClassName = cn(
|
|
1703
|
-
isControl && "polli-control",
|
|
1704
|
-
"polli:relative polli:cursor-help polli:text-left polli:inline-flex polli:items-center",
|
|
1705
|
-
className
|
|
1706
|
-
);
|
|
1707
|
-
const cursorClass = displayContents ? "polli:contents" : "polli:cursor-inherit";
|
|
1708
|
-
const popupClasses = "polli:fixed polli:w-max polli:px-2 polli:py-1 polli:bg-surface-menu polli:text-theme-text-base polli:font-normal polli:leading-snug polli:tracking-normal polli:normal-case polli:not-italic polli:text-xs polli:rounded-md polli:shadow-md polli:z-[130] polli:pointer-events-none polli:transition-opacity polli:whitespace-pre-line polli:break-words";
|
|
1709
|
-
const popupNode = content ? /* @__PURE__ */ jsx18(
|
|
1710
|
-
"span",
|
|
1711
|
-
{
|
|
1712
|
-
id: tooltipId,
|
|
1713
|
-
role: "tooltip",
|
|
1714
|
-
"aria-hidden": !showTooltip,
|
|
1715
|
-
style: {
|
|
1716
|
-
top: tooltipPosition.top,
|
|
1717
|
-
left: tooltipPosition.left,
|
|
1718
|
-
maxWidth: tooltipPosition.maxWidth,
|
|
1719
|
-
transform: tooltipPosition.transform
|
|
1720
|
-
},
|
|
1721
|
-
className: `${showTooltip ? "polli:visible polli:opacity-100" : "polli:invisible polli:opacity-0"} ${popupClasses}`,
|
|
1722
|
-
children: content
|
|
1723
|
-
}
|
|
1724
|
-
) : null;
|
|
1725
|
-
const tooltipPopup = popupNode && typeof document !== "undefined" ? createPortal(
|
|
1726
|
-
popupNode,
|
|
1727
|
-
triggerRef.current?.closest('[role="dialog"]') ?? document.body
|
|
1728
|
-
) : popupNode;
|
|
1729
|
-
const contentNode = /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
1730
|
-
/* @__PURE__ */ jsx18("span", { className: cursorClass, children }),
|
|
1731
|
-
tooltipPopup
|
|
1732
|
-
] });
|
|
1733
|
-
const sharedProps = {
|
|
1734
|
-
"aria-label": ariaLabel,
|
|
1735
|
-
"aria-describedby": content && showTooltip ? tooltipId : void 0,
|
|
1736
|
-
className: triggerClassName,
|
|
1737
|
-
onMouseEnter: () => {
|
|
1738
|
-
updateTooltipPosition();
|
|
1739
|
-
setShowTooltip(true);
|
|
1740
|
-
},
|
|
1741
|
-
onMouseLeave: () => {
|
|
1742
|
-
if (!tapPinnedRef.current) setShowTooltip(false);
|
|
1743
|
-
},
|
|
1744
|
-
onClick: (e) => {
|
|
1745
|
-
if (stopClickPropagation) e.stopPropagation();
|
|
1746
|
-
if (onClick) {
|
|
1747
|
-
onClick();
|
|
1748
|
-
}
|
|
1749
|
-
if (!tapEnabled || !content) return;
|
|
1750
|
-
updateTooltipPosition();
|
|
1751
|
-
if (tapPinnedRef.current) {
|
|
1752
|
-
closeTooltip();
|
|
1753
|
-
return;
|
|
1754
|
-
}
|
|
1755
|
-
tapPinnedRef.current = true;
|
|
1756
|
-
setShowTooltip(true);
|
|
1757
|
-
},
|
|
1758
|
-
onFocus: () => {
|
|
1759
|
-
updateTooltipPosition();
|
|
1760
|
-
setShowTooltip(true);
|
|
1761
|
-
},
|
|
1762
|
-
onBlur: closeTooltip,
|
|
1763
|
-
style
|
|
1764
|
-
};
|
|
1765
|
-
if (triggerAs === "span") {
|
|
1766
|
-
const handleKeyDown = (event) => {
|
|
1767
|
-
if (!tapEnabled || !content) return;
|
|
1768
|
-
if (event.key !== "Enter" && event.key !== " ") return;
|
|
1769
|
-
event.preventDefault();
|
|
1770
|
-
updateTooltipPosition();
|
|
1771
|
-
if (tapPinnedRef.current) {
|
|
1772
|
-
closeTooltip();
|
|
1773
|
-
return;
|
|
1774
|
-
}
|
|
1775
|
-
tapPinnedRef.current = true;
|
|
1776
|
-
setShowTooltip(true);
|
|
1777
|
-
};
|
|
1778
|
-
const spanInteractionProps = {
|
|
1779
|
-
...sharedProps,
|
|
1780
|
-
role: tapEnabled && content ? "button" : void 0,
|
|
1781
|
-
tabIndex: tapEnabled && content ? 0 : void 0,
|
|
1782
|
-
onKeyDown: tapEnabled && content ? handleKeyDown : void 0
|
|
1783
|
-
};
|
|
1784
|
-
return /* @__PURE__ */ jsx18(
|
|
1785
|
-
"span",
|
|
1786
|
-
{
|
|
1787
|
-
ref: (node) => {
|
|
1788
|
-
triggerRef.current = node;
|
|
1789
|
-
},
|
|
1790
|
-
...spanInteractionProps,
|
|
1791
|
-
children: contentNode
|
|
1792
|
-
}
|
|
1793
|
-
);
|
|
1794
|
-
}
|
|
1795
|
-
return /* @__PURE__ */ jsx18(
|
|
1796
|
-
"button",
|
|
376
|
+
return /* @__PURE__ */ jsx5(
|
|
377
|
+
"article",
|
|
1797
378
|
{
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
onMouseLeave: sharedProps.onMouseLeave,
|
|
1807
|
-
onClick: sharedProps.onClick,
|
|
1808
|
-
onFocus: sharedProps.onFocus,
|
|
1809
|
-
onBlur: sharedProps.onBlur,
|
|
1810
|
-
style,
|
|
1811
|
-
children: contentNode
|
|
379
|
+
"data-role": from,
|
|
380
|
+
className: cn(
|
|
381
|
+
"polli:group/message polli:flex polli:w-fit polli:max-w-full polli:min-w-0 polli:flex-col polli:gap-3 polli:[overflow-wrap:anywhere] polli:rounded-xl polli:px-4 polli:py-3",
|
|
382
|
+
from === "user" ? "polli:ml-auto polli:bg-theme-bg-active polli:text-theme-text-strong" : "polli:mr-auto polli:bg-surface-opaque polli:text-theme-text-base",
|
|
383
|
+
className
|
|
384
|
+
),
|
|
385
|
+
...props,
|
|
386
|
+
children
|
|
1812
387
|
}
|
|
1813
388
|
);
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
value,
|
|
1820
|
-
children,
|
|
1821
|
-
copiedTimeoutMs = 2e3,
|
|
1822
|
-
tooltip = "\u{1F4CB} Click to copy",
|
|
1823
|
-
tooltipAlign,
|
|
1824
|
-
tooltipClampToViewport,
|
|
1825
|
-
tooltipMaxWidth,
|
|
1826
|
-
copiedTooltip = "\u2705 Copied!",
|
|
1827
|
-
tooltipClassName,
|
|
389
|
+
}
|
|
390
|
+
function ChatMessageHeader({
|
|
391
|
+
from,
|
|
392
|
+
label,
|
|
393
|
+
icon,
|
|
1828
394
|
className,
|
|
1829
|
-
|
|
1830
|
-
intent,
|
|
1831
|
-
onCopied,
|
|
1832
|
-
onCopyError,
|
|
1833
|
-
...buttonProps
|
|
395
|
+
...props
|
|
1834
396
|
}) {
|
|
1835
|
-
const
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
397
|
+
const content = label ?? (from === "user" ? "You" : from === "assistant" ? "Agent" : "System");
|
|
398
|
+
return /* @__PURE__ */ jsxs5(
|
|
399
|
+
"header",
|
|
400
|
+
{
|
|
401
|
+
className: cn(
|
|
402
|
+
"polli:flex polli:items-center polli:gap-2",
|
|
403
|
+
className
|
|
404
|
+
),
|
|
405
|
+
...props,
|
|
406
|
+
children: [
|
|
407
|
+
from === "assistant" && (icon ?? /* @__PURE__ */ jsx5("span", { className: "polli:flex polli:size-6 polli:items-center polli:justify-center polli:rounded-full polli:bg-theme-bg-active polli:text-theme-text-strong", children: /* @__PURE__ */ jsx5(RobotIcon, { className: "polli:size-3.5" }) })),
|
|
408
|
+
/* @__PURE__ */ jsx5(
|
|
409
|
+
Text,
|
|
410
|
+
{
|
|
411
|
+
as: "span",
|
|
412
|
+
size: "xs",
|
|
413
|
+
tone: "muted",
|
|
414
|
+
weight: "bold",
|
|
415
|
+
className: "polli:uppercase polli:tracking-wide",
|
|
416
|
+
children: content
|
|
417
|
+
}
|
|
418
|
+
)
|
|
419
|
+
]
|
|
1857
420
|
}
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
function ChatMessageContent({
|
|
424
|
+
className,
|
|
425
|
+
...props
|
|
426
|
+
}) {
|
|
427
|
+
return /* @__PURE__ */ jsx5(
|
|
428
|
+
"div",
|
|
1862
429
|
{
|
|
1863
|
-
...buttonProps,
|
|
1864
|
-
...variant === "button" && intent ? { intent } : {},
|
|
1865
|
-
type: "button",
|
|
1866
|
-
onClick: handleCopy,
|
|
1867
430
|
className: cn(
|
|
1868
|
-
"polli-
|
|
1869
|
-
|
|
1870
|
-
typeof className === "function" ? className(copied) : className
|
|
431
|
+
"polli:min-w-0 polli:[&_pre]:max-w-full polli:[&_pre]:overflow-x-auto polli:[&_table]:max-w-full polli:[&_table]:overflow-x-auto",
|
|
432
|
+
className
|
|
1871
433
|
),
|
|
1872
|
-
|
|
434
|
+
...props
|
|
1873
435
|
}
|
|
1874
436
|
);
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
437
|
+
}
|
|
438
|
+
function ChatMessageActions({
|
|
439
|
+
className,
|
|
440
|
+
...props
|
|
441
|
+
}) {
|
|
442
|
+
return /* @__PURE__ */ jsx5(
|
|
443
|
+
"footer",
|
|
1880
444
|
{
|
|
1881
|
-
triggerAs: "span",
|
|
1882
|
-
content: copied ? copiedTooltip : tooltip,
|
|
1883
|
-
align: tooltipAlign,
|
|
1884
|
-
clampToViewport: tooltipClampToViewport,
|
|
1885
|
-
maxWidth: tooltipMaxWidth,
|
|
1886
|
-
displayContents: true,
|
|
1887
|
-
tapEnabled: false,
|
|
1888
445
|
className: cn(
|
|
1889
|
-
|
|
1890
|
-
|
|
446
|
+
"polli:flex polli:flex-wrap polli:items-center polli:gap-1 polli:pt-2",
|
|
447
|
+
className
|
|
1891
448
|
),
|
|
1892
|
-
|
|
449
|
+
...props
|
|
1893
450
|
}
|
|
1894
451
|
);
|
|
1895
452
|
}
|
|
1896
453
|
|
|
1897
|
-
// src/compositions/
|
|
1898
|
-
import {
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
454
|
+
// src/compositions/ChatPromptInput.tsx
|
|
455
|
+
import {
|
|
456
|
+
forwardRef as forwardRef3
|
|
457
|
+
} from "react";
|
|
458
|
+
|
|
459
|
+
// src/primitives/Textarea.tsx
|
|
460
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
461
|
+
|
|
462
|
+
// src/primitives/Field.tsx
|
|
463
|
+
import { Field } from "@ark-ui/react/field";
|
|
464
|
+
|
|
465
|
+
// src/primitives/Textarea.tsx
|
|
466
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
467
|
+
var Textarea = forwardRef2(
|
|
468
|
+
({ className, error, rows = 4, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
469
|
+
Field.Textarea,
|
|
470
|
+
{
|
|
471
|
+
ref,
|
|
472
|
+
rows,
|
|
473
|
+
"aria-invalid": error || void 0,
|
|
474
|
+
"data-error": error ? "true" : void 0,
|
|
475
|
+
className: cn(
|
|
476
|
+
"polli-textarea polli:w-full polli:rounded-lg polli:border polli:px-3 polli:py-2",
|
|
477
|
+
"polli:min-h-20 polli:resize-y polli:font-body polli:text-base",
|
|
478
|
+
"polli:text-theme-text-strong",
|
|
479
|
+
"polli:transition-colors",
|
|
480
|
+
"polli:disabled:opacity-50 polli:disabled:cursor-not-allowed",
|
|
481
|
+
className
|
|
482
|
+
),
|
|
483
|
+
...props
|
|
484
|
+
}
|
|
485
|
+
)
|
|
486
|
+
);
|
|
487
|
+
Textarea.displayName = "Textarea";
|
|
488
|
+
|
|
489
|
+
// src/compositions/ChatPromptInput.tsx
|
|
490
|
+
import { Fragment, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
491
|
+
function ChatPromptInput({ className, ...props }) {
|
|
492
|
+
return /* @__PURE__ */ jsx7(
|
|
493
|
+
"fieldset",
|
|
494
|
+
{
|
|
495
|
+
className: cn("polli:m-0 polli:min-w-0 polli:p-0", className),
|
|
496
|
+
...props
|
|
497
|
+
}
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
var ChatPromptTextarea = forwardRef3(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
501
|
+
Textarea,
|
|
502
|
+
{
|
|
503
|
+
...props,
|
|
504
|
+
ref,
|
|
505
|
+
className: cn("polli:resize-none", className)
|
|
506
|
+
}
|
|
507
|
+
));
|
|
508
|
+
ChatPromptTextarea.displayName = "ChatPromptTextarea";
|
|
509
|
+
function ChatPromptInputFooter({
|
|
510
|
+
start,
|
|
511
|
+
end,
|
|
512
|
+
children,
|
|
1903
513
|
className,
|
|
1904
|
-
...
|
|
1905
|
-
})
|
|
1906
|
-
|
|
1907
|
-
return /* @__PURE__ */ jsxs13(
|
|
514
|
+
...props
|
|
515
|
+
}) {
|
|
516
|
+
return /* @__PURE__ */ jsx7(
|
|
1908
517
|
"div",
|
|
1909
518
|
{
|
|
1910
|
-
...rest,
|
|
1911
519
|
className: cn(
|
|
1912
|
-
"polli:
|
|
520
|
+
"polli:flex polli:flex-wrap polli:items-end polli:gap-2",
|
|
1913
521
|
className
|
|
1914
522
|
),
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
{
|
|
1921
|
-
value: code,
|
|
1922
|
-
tooltip: null,
|
|
1923
|
-
"aria-label": "Copy code",
|
|
1924
|
-
className: "polli:flex polli:items-center polli:gap-1.5 polli:rounded-md polli:px-2 polli:py-1 polli:text-xs polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
|
|
1925
|
-
children: (copied) => /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
1926
|
-
copied ? /* @__PURE__ */ jsx20(CheckIcon, { className: "polli:size-3.5" }) : /* @__PURE__ */ jsx20(ClipboardIcon, { className: "polli:size-3.5" }),
|
|
1927
|
-
/* @__PURE__ */ jsx20("span", { children: copied ? "Copied" : "Copy" })
|
|
1928
|
-
] })
|
|
1929
|
-
}
|
|
1930
|
-
)
|
|
1931
|
-
] }),
|
|
1932
|
-
/* @__PURE__ */ jsx20(
|
|
1933
|
-
"pre",
|
|
1934
|
-
{
|
|
1935
|
-
className: cn(
|
|
1936
|
-
"polli:m-0 polli:min-w-0 polli:whitespace-pre-wrap polli:break-words polli:[overflow-wrap:anywhere] polli:[tab-size:4] polli:p-3 polli:font-mono polli:text-xs polli:leading-6 polli:text-theme-text-strong",
|
|
1937
|
-
codeClassName
|
|
1938
|
-
),
|
|
1939
|
-
children: /* @__PURE__ */ jsx20("code", { children: code })
|
|
1940
|
-
}
|
|
1941
|
-
)
|
|
1942
|
-
]
|
|
523
|
+
...props,
|
|
524
|
+
children: children ?? /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
525
|
+
/* @__PURE__ */ jsx7("div", { className: "polli:flex polli:flex-wrap polli:items-center polli:gap-2", children: start }),
|
|
526
|
+
/* @__PURE__ */ jsx7("div", { className: "polli:ml-auto polli:flex polli:items-center polli:gap-2", children: end })
|
|
527
|
+
] })
|
|
1943
528
|
}
|
|
1944
529
|
);
|
|
1945
|
-
}
|
|
530
|
+
}
|
|
1946
531
|
|
|
1947
532
|
// src/compositions/Collapsible.tsx
|
|
1948
|
-
import { jsx as
|
|
533
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1949
534
|
var Collapsible = ({
|
|
1950
535
|
label,
|
|
1951
536
|
expanded,
|
|
@@ -1958,7 +543,7 @@ var Collapsible = ({
|
|
|
1958
543
|
focusClassName,
|
|
1959
544
|
panelClassName = "polli:border-t polli:border-theme-border polli:px-3 polli:pt-3 polli:pb-3",
|
|
1960
545
|
ariaLabel
|
|
1961
|
-
}) => /* @__PURE__ */
|
|
546
|
+
}) => /* @__PURE__ */ jsxs7(
|
|
1962
547
|
"div",
|
|
1963
548
|
{
|
|
1964
549
|
className: cn(
|
|
@@ -1967,7 +552,7 @@ var Collapsible = ({
|
|
|
1967
552
|
disabled && "polli:opacity-50"
|
|
1968
553
|
),
|
|
1969
554
|
children: [
|
|
1970
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ jsxs7(
|
|
1971
556
|
"button",
|
|
1972
557
|
{
|
|
1973
558
|
type: "button",
|
|
@@ -1984,8 +569,8 @@ var Collapsible = ({
|
|
|
1984
569
|
disabled ? "polli:cursor-not-allowed" : "polli:cursor-pointer"
|
|
1985
570
|
),
|
|
1986
571
|
children: [
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ jsx8("div", { className: "polli:flex-1 polli:min-w-0", children: label }),
|
|
573
|
+
/* @__PURE__ */ jsx8(
|
|
1989
574
|
ChevronIcon,
|
|
1990
575
|
{
|
|
1991
576
|
expanded,
|
|
@@ -1993,209 +578,20 @@ var Collapsible = ({
|
|
|
1993
578
|
}
|
|
1994
579
|
)
|
|
1995
580
|
]
|
|
1996
|
-
}
|
|
1997
|
-
),
|
|
1998
|
-
expanded && /* @__PURE__ */ jsx21("div", { className: panelClassName, children })
|
|
1999
|
-
]
|
|
2000
|
-
}
|
|
2001
|
-
);
|
|
2002
|
-
|
|
2003
|
-
// src/primitives/Dialog.tsx
|
|
2004
|
-
import { Dialog as ArkDialog } from "@ark-ui/react/dialog";
|
|
2005
|
-
import { Portal as Portal2 } from "@ark-ui/react/portal";
|
|
2006
|
-
import { useRef as useRef4 } from "react";
|
|
2007
|
-
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2008
|
-
var sizeClasses = {
|
|
2009
|
-
sm: "polli:max-w-md",
|
|
2010
|
-
md: "polli:max-w-xl",
|
|
2011
|
-
lg: "polli:max-w-[800px]",
|
|
2012
|
-
xl: "polli:max-w-6xl"
|
|
2013
|
-
};
|
|
2014
|
-
var Dialog = ({
|
|
2015
|
-
open,
|
|
2016
|
-
onOpenChange,
|
|
2017
|
-
trigger,
|
|
2018
|
-
triggerAsChild = false,
|
|
2019
|
-
triggerClassName,
|
|
2020
|
-
title,
|
|
2021
|
-
ariaLabel,
|
|
2022
|
-
labelledBy,
|
|
2023
|
-
size = "md",
|
|
2024
|
-
showBackdrop = true,
|
|
2025
|
-
backdropBlur = true,
|
|
2026
|
-
positionerClassName,
|
|
2027
|
-
contentClassName,
|
|
2028
|
-
children
|
|
2029
|
-
}) => {
|
|
2030
|
-
const contentRef = useRef4(null);
|
|
2031
|
-
return /* @__PURE__ */ jsxs15(
|
|
2032
|
-
ArkDialog.Root,
|
|
2033
|
-
{
|
|
2034
|
-
open,
|
|
2035
|
-
initialFocusEl: () => contentRef.current,
|
|
2036
|
-
onOpenChange: (details) => onOpenChange?.(details.open),
|
|
2037
|
-
children: [
|
|
2038
|
-
trigger && /* @__PURE__ */ jsx22(
|
|
2039
|
-
ArkDialog.Trigger,
|
|
2040
|
-
{
|
|
2041
|
-
asChild: triggerAsChild,
|
|
2042
|
-
className: triggerClassName,
|
|
2043
|
-
children: trigger
|
|
2044
|
-
}
|
|
2045
|
-
),
|
|
2046
|
-
/* @__PURE__ */ jsxs15(Portal2, { children: [
|
|
2047
|
-
showBackdrop && /* @__PURE__ */ jsx22(
|
|
2048
|
-
ArkDialog.Backdrop,
|
|
2049
|
-
{
|
|
2050
|
-
className: cn(
|
|
2051
|
-
"polli:fixed polli:inset-0 polli:z-[calc(100_+_var(--layer-index,0)_*_20)] polli:bg-[#000]/50",
|
|
2052
|
-
backdropBlur && "polli:backdrop-blur-sm"
|
|
2053
|
-
)
|
|
2054
|
-
}
|
|
2055
|
-
),
|
|
2056
|
-
/* @__PURE__ */ jsx22(
|
|
2057
|
-
ArkDialog.Positioner,
|
|
2058
|
-
{
|
|
2059
|
-
className: cn(
|
|
2060
|
-
"polli:fixed polli:inset-0 polli:z-[calc(110_+_var(--layer-index,0)_*_20)] polli:flex polli:max-h-dvh polli:items-start polli:justify-center polli:overflow-hidden polli:p-4",
|
|
2061
|
-
"polli-dialog-mobile-positioner",
|
|
2062
|
-
positionerClassName
|
|
2063
|
-
),
|
|
2064
|
-
children: /* @__PURE__ */ jsxs15(
|
|
2065
|
-
ArkDialog.Content,
|
|
2066
|
-
{
|
|
2067
|
-
ref: contentRef,
|
|
2068
|
-
"aria-label": ariaLabel,
|
|
2069
|
-
"aria-labelledby": labelledBy,
|
|
2070
|
-
className: cn(
|
|
2071
|
-
"polli:my-auto polli:flex polli:h-auto polli:max-h-full polli:w-full polli:flex-col polli:overflow-y-auto polli:rounded-block polli:bg-surface-block polli:outline-none polli:focus:outline-none polli:focus-visible:outline-none",
|
|
2072
|
-
"polli-dialog-mobile-page",
|
|
2073
|
-
sizeClasses[size],
|
|
2074
|
-
contentClassName
|
|
2075
|
-
),
|
|
2076
|
-
children: [
|
|
2077
|
-
title && /* @__PURE__ */ jsx22(DialogHeader, { title }),
|
|
2078
|
-
children
|
|
2079
|
-
]
|
|
2080
|
-
}
|
|
2081
|
-
)
|
|
2082
|
-
}
|
|
2083
|
-
)
|
|
2084
|
-
] })
|
|
2085
|
-
]
|
|
2086
|
-
}
|
|
2087
|
-
);
|
|
2088
|
-
};
|
|
2089
|
-
var DialogTitle = ArkDialog.Title;
|
|
2090
|
-
var DialogDescription = ArkDialog.Description;
|
|
2091
|
-
var DialogHeader = ({
|
|
2092
|
-
title,
|
|
2093
|
-
description,
|
|
2094
|
-
children,
|
|
2095
|
-
inBody = false,
|
|
2096
|
-
className,
|
|
2097
|
-
titleClassName,
|
|
2098
|
-
descriptionClassName,
|
|
2099
|
-
...props
|
|
2100
|
-
}) => {
|
|
2101
|
-
return /* @__PURE__ */ jsxs15(
|
|
2102
|
-
"div",
|
|
2103
|
-
{
|
|
2104
|
-
className: cn(
|
|
2105
|
-
inBody ? "polli:shrink-0 polli:pt-2 polli:pb-4" : "polli:shrink-0 polli:px-(--polli-dialog-gutter) polli:pt-6 polli:pb-4",
|
|
2106
|
-
className
|
|
2107
|
-
),
|
|
2108
|
-
...props,
|
|
2109
|
-
children: [
|
|
2110
|
-
title && /* @__PURE__ */ jsx22(
|
|
2111
|
-
DialogTitle,
|
|
2112
|
-
{
|
|
2113
|
-
className: cn(headingClassName("section"), titleClassName),
|
|
2114
|
-
children: title
|
|
2115
|
-
}
|
|
2116
|
-
),
|
|
2117
|
-
description && /* @__PURE__ */ jsx22(
|
|
2118
|
-
DialogDescription,
|
|
2119
|
-
{
|
|
2120
|
-
className: cn(
|
|
2121
|
-
"polli:mt-1 polli:font-body polli:text-sm polli:font-normal polli:leading-5 polli:text-theme-text-base",
|
|
2122
|
-
descriptionClassName
|
|
2123
|
-
),
|
|
2124
|
-
children: description
|
|
2125
|
-
}
|
|
2126
|
-
),
|
|
2127
|
-
children
|
|
2128
|
-
]
|
|
2129
|
-
}
|
|
2130
|
-
);
|
|
2131
|
-
};
|
|
2132
|
-
function DialogBody({
|
|
2133
|
-
children,
|
|
2134
|
-
actions,
|
|
2135
|
-
footnote,
|
|
2136
|
-
bodyClassName,
|
|
2137
|
-
className,
|
|
2138
|
-
...props
|
|
2139
|
-
}) {
|
|
2140
|
-
return /* @__PURE__ */ jsxs15(
|
|
2141
|
-
ScrollArea,
|
|
2142
|
-
{
|
|
2143
|
-
...props,
|
|
2144
|
-
className: cn(
|
|
2145
|
-
"polli:flex polli:min-h-0 polli:flex-1 polli:flex-col polli:overscroll-contain",
|
|
2146
|
-
className
|
|
2147
|
-
),
|
|
2148
|
-
children: [
|
|
2149
|
-
/* @__PURE__ */ jsx22(
|
|
2150
|
-
"div",
|
|
2151
|
-
{
|
|
2152
|
-
className: cn(
|
|
2153
|
-
"polli:space-y-3 polli:px-(--polli-dialog-gutter) polli:py-4",
|
|
2154
|
-
bodyClassName
|
|
2155
|
-
),
|
|
2156
|
-
children
|
|
2157
|
-
}
|
|
2158
|
-
),
|
|
2159
|
-
(actions || footnote) && // The size container lets the footer follow the dialog's width.
|
|
2160
|
-
// It sits on the footer alone so pickers and tooltips in the
|
|
2161
|
-
// body keep their positioning.
|
|
2162
|
-
/* @__PURE__ */ jsxs15("div", { className: "polli-dialog-floating-controls polli:@container polli:pointer-events-none polli:sticky polli:bottom-0 polli:z-10", children: [
|
|
2163
|
-
actions && /* @__PURE__ */ jsx22(DialogFooter, { className: "polli:pointer-events-auto", children: actions }),
|
|
2164
|
-
footnote && /* @__PURE__ */ jsx22("div", { className: "polli:pointer-events-auto", children: footnote })
|
|
2165
|
-
] })
|
|
2166
|
-
]
|
|
2167
|
-
}
|
|
2168
|
-
);
|
|
2169
|
-
}
|
|
2170
|
-
var DialogFooter = ({
|
|
2171
|
-
children,
|
|
2172
|
-
className,
|
|
2173
|
-
...props
|
|
2174
|
-
}) => {
|
|
2175
|
-
return /* @__PURE__ */ jsx22(
|
|
2176
|
-
"div",
|
|
2177
|
-
{
|
|
2178
|
-
className: cn(
|
|
2179
|
-
"polli:flex polli:shrink-0 polli:flex-wrap polli:items-center polli:justify-end polli:gap-3 polli:bg-transparent polli:px-(--polli-dialog-gutter) polli:pt-4 polli:pb-6",
|
|
2180
|
-
// Actions are the screen's main controls: touch-sized, sharing
|
|
2181
|
-
// the row in a narrow dialog (below 36rem, phones included), and
|
|
2182
|
-
// spanning it when there is only one.
|
|
2183
|
-
"polli:[&>.polli-control]:min-h-12 polli:[&>.polli-control]:text-base polli:@max-xl:[&>.polli-control]:flex-auto polli:[&>.polli-control:only-child]:flex-auto",
|
|
2184
|
-
className
|
|
581
|
+
}
|
|
2185
582
|
),
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
};
|
|
583
|
+
expanded && /* @__PURE__ */ jsx8("div", { className: panelClassName, children })
|
|
584
|
+
]
|
|
585
|
+
}
|
|
586
|
+
);
|
|
2191
587
|
|
|
2192
588
|
// src/compositions/ConfirmationDialog.tsx
|
|
2193
|
-
import { Fragment as
|
|
589
|
+
import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2194
590
|
var defaultIcons = {
|
|
2195
|
-
danger: /* @__PURE__ */
|
|
2196
|
-
commit: /* @__PURE__ */
|
|
2197
|
-
info: /* @__PURE__ */
|
|
2198
|
-
neutral: /* @__PURE__ */
|
|
591
|
+
danger: /* @__PURE__ */ jsx9(TrashIcon, {}),
|
|
592
|
+
commit: /* @__PURE__ */ jsx9(CheckIcon, {}),
|
|
593
|
+
info: /* @__PURE__ */ jsx9(CheckIcon, {}),
|
|
594
|
+
neutral: /* @__PURE__ */ jsx9(CheckIcon, {})
|
|
2199
595
|
};
|
|
2200
596
|
function ConfirmationDialog({
|
|
2201
597
|
open,
|
|
@@ -2211,19 +607,19 @@ function ConfirmationDialog({
|
|
|
2211
607
|
onCancel,
|
|
2212
608
|
size = "md"
|
|
2213
609
|
}) {
|
|
2214
|
-
const actions = /* @__PURE__ */
|
|
2215
|
-
/* @__PURE__ */
|
|
610
|
+
const actions = /* @__PURE__ */ jsxs8(Fragment2, { children: [
|
|
611
|
+
/* @__PURE__ */ jsx9(
|
|
2216
612
|
Button,
|
|
2217
613
|
{
|
|
2218
614
|
type: "button",
|
|
2219
615
|
intent: "neutral",
|
|
2220
|
-
icon: /* @__PURE__ */
|
|
616
|
+
icon: /* @__PURE__ */ jsx9(XIcon, {}),
|
|
2221
617
|
onClick: onCancel,
|
|
2222
618
|
disabled: cancelDisabled,
|
|
2223
619
|
children: "Cancel"
|
|
2224
620
|
}
|
|
2225
621
|
),
|
|
2226
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ jsx9(
|
|
2227
623
|
Button,
|
|
2228
624
|
{
|
|
2229
625
|
type: "button",
|
|
@@ -2235,16 +631,16 @@ function ConfirmationDialog({
|
|
|
2235
631
|
}
|
|
2236
632
|
)
|
|
2237
633
|
] });
|
|
2238
|
-
return /* @__PURE__ */
|
|
634
|
+
return /* @__PURE__ */ jsx9(
|
|
2239
635
|
Dialog,
|
|
2240
636
|
{
|
|
2241
637
|
open,
|
|
2242
|
-
onOpenChange: (next) => !next && onCancel(),
|
|
638
|
+
onOpenChange: (next) => !next && !cancelDisabled && onCancel(),
|
|
2243
639
|
size,
|
|
2244
640
|
contentClassName: "polli:overflow-hidden",
|
|
2245
|
-
children: /* @__PURE__ */
|
|
2246
|
-
/* @__PURE__ */
|
|
2247
|
-
description && /* @__PURE__ */
|
|
641
|
+
children: /* @__PURE__ */ jsxs8(DialogBody, { actions, children: [
|
|
642
|
+
/* @__PURE__ */ jsx9(DialogHeader, { inBody: true, title }),
|
|
643
|
+
description && /* @__PURE__ */ jsx9("p", { className: "polli:text-sm polli:leading-relaxed", children: description }),
|
|
2248
644
|
children
|
|
2249
645
|
] })
|
|
2250
646
|
}
|
|
@@ -2252,8 +648,8 @@ function ConfirmationDialog({
|
|
|
2252
648
|
}
|
|
2253
649
|
|
|
2254
650
|
// src/primitives/Eyebrow.tsx
|
|
2255
|
-
import { jsx as
|
|
2256
|
-
var
|
|
651
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
652
|
+
var sizeClasses = {
|
|
2257
653
|
page: "polli:text-sm polli:tracking-widest polli:text-theme-text-soft",
|
|
2258
654
|
card: "polli:text-xs polli:tracking-wider polli:text-theme-text-soft",
|
|
2259
655
|
chrome: "polli:text-micro polli:tracking-widest polli:text-theme-text-muted"
|
|
@@ -2266,13 +662,13 @@ function Eyebrow({
|
|
|
2266
662
|
...rest
|
|
2267
663
|
}) {
|
|
2268
664
|
const Component = as || "span";
|
|
2269
|
-
return /* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ jsx10(
|
|
2270
666
|
Component,
|
|
2271
667
|
{
|
|
2272
668
|
...rest,
|
|
2273
669
|
className: cn(
|
|
2274
670
|
"polli:font-pixel polli:uppercase",
|
|
2275
|
-
|
|
671
|
+
sizeClasses[size],
|
|
2276
672
|
className
|
|
2277
673
|
),
|
|
2278
674
|
children
|
|
@@ -2281,7 +677,7 @@ function Eyebrow({
|
|
|
2281
677
|
}
|
|
2282
678
|
|
|
2283
679
|
// src/compositions/ContentHeader.tsx
|
|
2284
|
-
import { jsx as
|
|
680
|
+
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2285
681
|
var titleClasses = {
|
|
2286
682
|
page: "polli:font-heading polli:text-4xl polli:leading-[1.08] polli:text-theme-text-strong polli:sm:text-5xl polli:lg:text-7xl",
|
|
2287
683
|
section: "polli:font-subheading polli:text-3xl polli:leading-tight polli:text-theme-text-strong polli:sm:text-4xl"
|
|
@@ -2299,7 +695,7 @@ function ContentHeader({
|
|
|
2299
695
|
className
|
|
2300
696
|
}) {
|
|
2301
697
|
const Title = variant === "page" ? "h1" : "h2";
|
|
2302
|
-
return /* @__PURE__ */
|
|
698
|
+
return /* @__PURE__ */ jsxs9(
|
|
2303
699
|
"header",
|
|
2304
700
|
{
|
|
2305
701
|
className: cn(
|
|
@@ -2307,10 +703,10 @@ function ContentHeader({
|
|
|
2307
703
|
className
|
|
2308
704
|
),
|
|
2309
705
|
children: [
|
|
2310
|
-
/* @__PURE__ */
|
|
2311
|
-
eyebrow ? /* @__PURE__ */
|
|
2312
|
-
/* @__PURE__ */
|
|
2313
|
-
subtitle && /* @__PURE__ */
|
|
706
|
+
/* @__PURE__ */ jsxs9("div", { className: "polli:flex polli:max-w-2xl polli:flex-col polli:gap-3", children: [
|
|
707
|
+
eyebrow ? /* @__PURE__ */ jsx11(Eyebrow, { size: "page", children: eyebrow }) : null,
|
|
708
|
+
/* @__PURE__ */ jsx11(Title, { className: titleClasses[variant], children: title }),
|
|
709
|
+
subtitle && /* @__PURE__ */ jsx11(
|
|
2314
710
|
"p",
|
|
2315
711
|
{
|
|
2316
712
|
className: cn(
|
|
@@ -2328,7 +724,7 @@ function ContentHeader({
|
|
|
2328
724
|
}
|
|
2329
725
|
|
|
2330
726
|
// src/compositions/CopyField.tsx
|
|
2331
|
-
import { Fragment as
|
|
727
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2332
728
|
function CopyField({
|
|
2333
729
|
value,
|
|
2334
730
|
label,
|
|
@@ -2336,7 +732,7 @@ function CopyField({
|
|
|
2336
732
|
className,
|
|
2337
733
|
...copy
|
|
2338
734
|
}) {
|
|
2339
|
-
return /* @__PURE__ */
|
|
735
|
+
return /* @__PURE__ */ jsx12(
|
|
2340
736
|
CopyButton,
|
|
2341
737
|
{
|
|
2342
738
|
...copy,
|
|
@@ -2348,14 +744,14 @@ function CopyField({
|
|
|
2348
744
|
copied ? "polli:text-intent-success-text" : "polli:text-theme-text-base polli:hover:text-theme-text-strong",
|
|
2349
745
|
className
|
|
2350
746
|
),
|
|
2351
|
-
children: (copied) => /* @__PURE__ */
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
/* @__PURE__ */
|
|
747
|
+
children: (copied) => /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
748
|
+
/* @__PURE__ */ jsx12("span", { className: "polli:min-w-0 polli:flex-1 polli:select-all polli:break-all", children: copied ? "Copied" : display ?? (typeof value === "string" ? value : label) }),
|
|
749
|
+
/* @__PURE__ */ jsx12(
|
|
2354
750
|
"span",
|
|
2355
751
|
{
|
|
2356
752
|
"aria-hidden": "true",
|
|
2357
753
|
className: "polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",
|
|
2358
|
-
children: copied ? /* @__PURE__ */
|
|
754
|
+
children: copied ? /* @__PURE__ */ jsx12(CheckIcon, {}) : /* @__PURE__ */ jsx12(ClipboardIcon, {})
|
|
2359
755
|
}
|
|
2360
756
|
)
|
|
2361
757
|
] })
|
|
@@ -2367,16 +763,16 @@ function CopyField({
|
|
|
2367
763
|
import { createListCollection } from "@ark-ui/react/collection";
|
|
2368
764
|
import { Combobox } from "@ark-ui/react/combobox";
|
|
2369
765
|
import {
|
|
2370
|
-
useEffect as
|
|
766
|
+
useEffect as useEffect2,
|
|
2371
767
|
useMemo,
|
|
2372
|
-
useRef
|
|
768
|
+
useRef
|
|
2373
769
|
} from "react";
|
|
2374
770
|
|
|
2375
771
|
// src/primitives/Input.tsx
|
|
2376
|
-
import { forwardRef as
|
|
2377
|
-
import { jsx as
|
|
2378
|
-
var Input =
|
|
2379
|
-
({ className, error, hideNumberSteppers, ...props }, ref) => /* @__PURE__ */
|
|
772
|
+
import { forwardRef as forwardRef4 } from "react";
|
|
773
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
774
|
+
var Input = forwardRef4(
|
|
775
|
+
({ className, error, hideNumberSteppers, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
2380
776
|
Field.Input,
|
|
2381
777
|
{
|
|
2382
778
|
ref,
|
|
@@ -2396,7 +792,7 @@ var Input = forwardRef5(
|
|
|
2396
792
|
);
|
|
2397
793
|
|
|
2398
794
|
// src/compositions/EditableCombobox.tsx
|
|
2399
|
-
import { jsx as
|
|
795
|
+
import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2400
796
|
function EditableComboboxToken({
|
|
2401
797
|
label,
|
|
2402
798
|
value,
|
|
@@ -2404,7 +800,7 @@ function EditableComboboxToken({
|
|
|
2404
800
|
className,
|
|
2405
801
|
...buttonProps
|
|
2406
802
|
}) {
|
|
2407
|
-
return /* @__PURE__ */
|
|
803
|
+
return /* @__PURE__ */ jsxs11(
|
|
2408
804
|
"button",
|
|
2409
805
|
{
|
|
2410
806
|
type: "button",
|
|
@@ -2415,12 +811,12 @@ function EditableComboboxToken({
|
|
|
2415
811
|
),
|
|
2416
812
|
...buttonProps,
|
|
2417
813
|
children: [
|
|
2418
|
-
/* @__PURE__ */
|
|
814
|
+
/* @__PURE__ */ jsxs11("span", { className: "polli:text-theme-text-muted", children: [
|
|
2419
815
|
label,
|
|
2420
816
|
":"
|
|
2421
817
|
] }),
|
|
2422
|
-
/* @__PURE__ */
|
|
2423
|
-
/* @__PURE__ */
|
|
818
|
+
/* @__PURE__ */ jsx14("span", { className: "polli:truncate polli:text-theme-text-base", children: value }),
|
|
819
|
+
/* @__PURE__ */ jsx14(ChevronIcon, { className: "polli:h-3 polli:w-3 polli:text-theme-text-muted" })
|
|
2424
820
|
]
|
|
2425
821
|
}
|
|
2426
822
|
);
|
|
@@ -2457,13 +853,13 @@ function EditableCombobox({
|
|
|
2457
853
|
);
|
|
2458
854
|
const hasOptions = options.length > 0;
|
|
2459
855
|
const hasStartContent = Boolean(startContent);
|
|
2460
|
-
const inputRef =
|
|
2461
|
-
|
|
856
|
+
const inputRef = useRef(null);
|
|
857
|
+
useEffect2(() => {
|
|
2462
858
|
if (inputRef.current && inputRef.current.value !== value) {
|
|
2463
859
|
inputRef.current.value = value;
|
|
2464
860
|
}
|
|
2465
861
|
});
|
|
2466
|
-
return /* @__PURE__ */
|
|
862
|
+
return /* @__PURE__ */ jsxs11(
|
|
2467
863
|
Combobox.Root,
|
|
2468
864
|
{
|
|
2469
865
|
collection,
|
|
@@ -2485,7 +881,7 @@ function EditableCombobox({
|
|
|
2485
881
|
onInputValueChange: (details) => onChange(details.inputValue),
|
|
2486
882
|
onOpenChange: (details) => onOpenChange?.(details.open),
|
|
2487
883
|
children: [
|
|
2488
|
-
/* @__PURE__ */
|
|
884
|
+
/* @__PURE__ */ jsxs11(
|
|
2489
885
|
Combobox.Control,
|
|
2490
886
|
{
|
|
2491
887
|
className: cn(
|
|
@@ -2494,7 +890,7 @@ function EditableCombobox({
|
|
|
2494
890
|
),
|
|
2495
891
|
children: [
|
|
2496
892
|
startContent,
|
|
2497
|
-
/* @__PURE__ */
|
|
893
|
+
/* @__PURE__ */ jsx14(Combobox.Input, { asChild: true, children: /* @__PURE__ */ jsx14(
|
|
2498
894
|
Input,
|
|
2499
895
|
{
|
|
2500
896
|
ref: inputRef,
|
|
@@ -2507,12 +903,12 @@ function EditableCombobox({
|
|
|
2507
903
|
)
|
|
2508
904
|
}
|
|
2509
905
|
) }),
|
|
2510
|
-
hasOptions && !hasStartContent && /* @__PURE__ */
|
|
906
|
+
hasOptions && !hasStartContent && /* @__PURE__ */ jsx14(
|
|
2511
907
|
Combobox.Trigger,
|
|
2512
908
|
{
|
|
2513
909
|
"aria-label": "Show options",
|
|
2514
910
|
className: "polli-control polli:absolute polli:right-0 polli:top-0 polli:flex polli:h-full polli:w-10 polli:cursor-pointer polli:items-center polli:justify-center polli:rounded-r-lg polli:text-theme-text-muted polli:hover:text-theme-text-strong",
|
|
2515
|
-
children: /* @__PURE__ */
|
|
911
|
+
children: /* @__PURE__ */ jsx14(Combobox.Context, { children: (context) => /* @__PURE__ */ jsx14(
|
|
2516
912
|
ChevronIcon,
|
|
2517
913
|
{
|
|
2518
914
|
expanded: context.open,
|
|
@@ -2524,15 +920,15 @@ function EditableCombobox({
|
|
|
2524
920
|
]
|
|
2525
921
|
}
|
|
2526
922
|
),
|
|
2527
|
-
/* @__PURE__ */
|
|
923
|
+
/* @__PURE__ */ jsx14(Combobox.Positioner, { children: /* @__PURE__ */ jsx14(
|
|
2528
924
|
Combobox.Content,
|
|
2529
925
|
{
|
|
2530
926
|
className: cn(
|
|
2531
927
|
"polli:z-[120] polli:overflow-hidden polli:rounded-lg polli:bg-surface-menu polli:p-1 polli:shadow-lg polli:focus:outline-none",
|
|
2532
928
|
contentClassName
|
|
2533
929
|
),
|
|
2534
|
-
children: /* @__PURE__ */
|
|
2535
|
-
visibleOptions.map((option) => /* @__PURE__ */
|
|
930
|
+
children: /* @__PURE__ */ jsx14(ScrollArea, { className: "polli:max-h-64", children: /* @__PURE__ */ jsxs11(Combobox.List, { className: "polli:flex polli:flex-col", children: [
|
|
931
|
+
visibleOptions.map((option) => /* @__PURE__ */ jsx14(
|
|
2536
932
|
Combobox.Item,
|
|
2537
933
|
{
|
|
2538
934
|
item: option,
|
|
@@ -2540,11 +936,11 @@ function EditableCombobox({
|
|
|
2540
936
|
"polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:transition-colors polli:hover:bg-theme-bg-hover polli:data-[highlighted]:bg-theme-bg-hover",
|
|
2541
937
|
value === option && "polli:bg-theme-bg-active polli:text-theme-text-strong"
|
|
2542
938
|
),
|
|
2543
|
-
children: /* @__PURE__ */
|
|
939
|
+
children: /* @__PURE__ */ jsx14(Combobox.ItemText, { className: "polli:truncate polli:font-mono", children: option })
|
|
2544
940
|
},
|
|
2545
941
|
option
|
|
2546
942
|
)),
|
|
2547
|
-
visibleOptions.length === 0 && /* @__PURE__ */
|
|
943
|
+
visibleOptions.length === 0 && /* @__PURE__ */ jsx14(Combobox.Empty, { className: "polli:m-0 polli:px-2 polli:py-2 polli:text-sm polli:text-theme-text-soft", children: emptyMessage })
|
|
2548
944
|
] }) })
|
|
2549
945
|
}
|
|
2550
946
|
) })
|
|
@@ -2554,25 +950,13 @@ function EditableCombobox({
|
|
|
2554
950
|
}
|
|
2555
951
|
|
|
2556
952
|
// src/compositions/EmptyState.tsx
|
|
2557
|
-
import { jsx as
|
|
953
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
2558
954
|
function EmptyState({ children }) {
|
|
2559
|
-
return /* @__PURE__ */
|
|
2560
|
-
}
|
|
2561
|
-
|
|
2562
|
-
// src/lib/link.ts
|
|
2563
|
-
function isExternalHref(href, origin = globalThis.location?.origin) {
|
|
2564
|
-
if (typeof href !== "string" || !/^(https?:)?\/\//i.test(href))
|
|
2565
|
-
return false;
|
|
2566
|
-
if (!origin) return true;
|
|
2567
|
-
try {
|
|
2568
|
-
return new URL(href, origin).origin !== origin;
|
|
2569
|
-
} catch {
|
|
2570
|
-
return false;
|
|
2571
|
-
}
|
|
955
|
+
return /* @__PURE__ */ jsx15("p", { className: "polli:rounded-card polli:border polli:border-dashed polli:border-theme-border polli:px-5 polli:py-8 polli:text-center polli:font-body polli:text-sm polli:text-theme-text-muted", children });
|
|
2572
956
|
}
|
|
2573
957
|
|
|
2574
958
|
// src/compositions/ExternalLinkButton.tsx
|
|
2575
|
-
import { Fragment as
|
|
959
|
+
import { Fragment as Fragment4, jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2576
960
|
function ExternalLinkButton(props) {
|
|
2577
961
|
const {
|
|
2578
962
|
size = "md",
|
|
@@ -2583,10 +967,10 @@ function ExternalLinkButton(props) {
|
|
|
2583
967
|
className,
|
|
2584
968
|
children
|
|
2585
969
|
} = props;
|
|
2586
|
-
const content = /* @__PURE__ */
|
|
970
|
+
const content = /* @__PURE__ */ jsxs12(Fragment4, { children: [
|
|
2587
971
|
icon,
|
|
2588
|
-
/* @__PURE__ */
|
|
2589
|
-
external && showIcon ? /* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ jsx16("span", { children }),
|
|
973
|
+
external && showIcon ? /* @__PURE__ */ jsx16(
|
|
2590
974
|
ExternalLinkIcon,
|
|
2591
975
|
{
|
|
2592
976
|
className: "polli:h-4 polli:w-4 polli:shrink-0 polli:opacity-60",
|
|
@@ -2608,7 +992,7 @@ function ExternalLinkButton(props) {
|
|
|
2608
992
|
children: _children2,
|
|
2609
993
|
...anchorProps
|
|
2610
994
|
} = props;
|
|
2611
|
-
return /* @__PURE__ */
|
|
995
|
+
return /* @__PURE__ */ jsx16(
|
|
2612
996
|
Button,
|
|
2613
997
|
{
|
|
2614
998
|
as: "a",
|
|
@@ -2634,7 +1018,7 @@ function ExternalLinkButton(props) {
|
|
|
2634
1018
|
children: _children,
|
|
2635
1019
|
...buttonProps
|
|
2636
1020
|
} = props;
|
|
2637
|
-
return /* @__PURE__ */
|
|
1021
|
+
return /* @__PURE__ */ jsx16(
|
|
2638
1022
|
Button,
|
|
2639
1023
|
{
|
|
2640
1024
|
as: "button",
|
|
@@ -2649,7 +1033,7 @@ function ExternalLinkButton(props) {
|
|
|
2649
1033
|
}
|
|
2650
1034
|
|
|
2651
1035
|
// src/compositions/FieldStack.tsx
|
|
2652
|
-
import { jsx as
|
|
1036
|
+
import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2653
1037
|
var orientationClasses = {
|
|
2654
1038
|
stacked: "polli:flex polli:flex-col polli:gap-2",
|
|
2655
1039
|
inline: "polli:grid polli:grid-cols-[6.5rem_minmax(0,1fr)] polli:items-center polli:gap-x-4 polli:gap-y-2 polli:max-sm:grid-cols-[5.5rem_minmax(0,1fr)] polli:max-sm:gap-x-2 polli:[&>*:not(:first-child)]:col-start-2 polli:[&>*:not(:first-child)]:min-w-0"
|
|
@@ -2667,7 +1051,7 @@ function FieldStack({
|
|
|
2667
1051
|
helperClassName,
|
|
2668
1052
|
errorClassName
|
|
2669
1053
|
}) {
|
|
2670
|
-
return /* @__PURE__ */
|
|
1054
|
+
return /* @__PURE__ */ jsxs13(
|
|
2671
1055
|
Field.Root,
|
|
2672
1056
|
{
|
|
2673
1057
|
className: cn(
|
|
@@ -2677,7 +1061,7 @@ function FieldStack({
|
|
|
2677
1061
|
),
|
|
2678
1062
|
invalid: Boolean(error),
|
|
2679
1063
|
children: [
|
|
2680
|
-
(label || action) && /* @__PURE__ */
|
|
1064
|
+
(label || action) && /* @__PURE__ */ jsxs13(
|
|
2681
1065
|
"div",
|
|
2682
1066
|
{
|
|
2683
1067
|
className: cn(
|
|
@@ -2685,7 +1069,7 @@ function FieldStack({
|
|
|
2685
1069
|
alignLabelRow && "polli:min-h-8"
|
|
2686
1070
|
),
|
|
2687
1071
|
children: [
|
|
2688
|
-
label && /* @__PURE__ */
|
|
1072
|
+
label && /* @__PURE__ */ jsx17(
|
|
2689
1073
|
Field.Label,
|
|
2690
1074
|
{
|
|
2691
1075
|
className: cn(
|
|
@@ -2700,7 +1084,7 @@ function FieldStack({
|
|
|
2700
1084
|
}
|
|
2701
1085
|
),
|
|
2702
1086
|
children,
|
|
2703
|
-
error ? /* @__PURE__ */
|
|
1087
|
+
error ? /* @__PURE__ */ jsx17(
|
|
2704
1088
|
Field.ErrorText,
|
|
2705
1089
|
{
|
|
2706
1090
|
className: cn(
|
|
@@ -2709,7 +1093,7 @@ function FieldStack({
|
|
|
2709
1093
|
),
|
|
2710
1094
|
children: error
|
|
2711
1095
|
}
|
|
2712
|
-
) : helper ? /* @__PURE__ */
|
|
1096
|
+
) : helper ? /* @__PURE__ */ jsx17(
|
|
2713
1097
|
Field.HelperText,
|
|
2714
1098
|
{
|
|
2715
1099
|
className: cn(
|
|
@@ -2726,10 +1110,10 @@ function FieldStack({
|
|
|
2726
1110
|
|
|
2727
1111
|
// src/compositions/FileUpload.tsx
|
|
2728
1112
|
import {
|
|
2729
|
-
useEffect as
|
|
2730
|
-
useId
|
|
2731
|
-
useRef as
|
|
2732
|
-
useState as
|
|
1113
|
+
useEffect as useEffect3,
|
|
1114
|
+
useId,
|
|
1115
|
+
useRef as useRef2,
|
|
1116
|
+
useState as useState2
|
|
2733
1117
|
} from "react";
|
|
2734
1118
|
|
|
2735
1119
|
// src/lib/document-file-drop-guard.ts
|
|
@@ -2775,10 +1159,10 @@ function matchesAccept(file, accept) {
|
|
|
2775
1159
|
return file.type === token;
|
|
2776
1160
|
});
|
|
2777
1161
|
}
|
|
2778
|
-
function partitionFiles(incoming,
|
|
1162
|
+
function partitionFiles(incoming, current, { maxFiles, maxSizeBytes, accept }) {
|
|
2779
1163
|
const accepted = [];
|
|
2780
1164
|
const rejected = [];
|
|
2781
|
-
let slots = Math.max(0, maxFiles -
|
|
1165
|
+
let slots = Math.max(0, maxFiles - current.length);
|
|
2782
1166
|
for (const file of incoming) {
|
|
2783
1167
|
if (!matchesAccept(file, accept)) {
|
|
2784
1168
|
rejected.push({ file, reason: "type" });
|
|
@@ -2796,10 +1180,10 @@ function partitionFiles(incoming, current2, { maxFiles, maxSizeBytes, accept })
|
|
|
2796
1180
|
|
|
2797
1181
|
// src/primitives/IconButton.tsx
|
|
2798
1182
|
import {
|
|
2799
|
-
forwardRef as
|
|
1183
|
+
forwardRef as forwardRef5
|
|
2800
1184
|
} from "react";
|
|
2801
|
-
import { jsx as
|
|
2802
|
-
var
|
|
1185
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1186
|
+
var intentClasses = {
|
|
2803
1187
|
danger: "polli:bg-intent-danger-bg-light polli:text-intent-danger-text",
|
|
2804
1188
|
info: "polli:bg-intent-info-bg-light polli:text-intent-info-text"
|
|
2805
1189
|
};
|
|
@@ -2807,7 +1191,7 @@ var intentHoverClasses = {
|
|
|
2807
1191
|
danger: "polli:hover:bg-intent-danger-bg-hover",
|
|
2808
1192
|
info: "polli:hover:bg-intent-info-bg-hover"
|
|
2809
1193
|
};
|
|
2810
|
-
var
|
|
1194
|
+
var variantClasses = {
|
|
2811
1195
|
tile: "polli:bg-theme-bg-active polli:text-theme-text-soft",
|
|
2812
1196
|
ghost: "polli:bg-transparent polli:text-theme-text-muted"
|
|
2813
1197
|
};
|
|
@@ -2815,11 +1199,11 @@ var variantHoverClasses = {
|
|
|
2815
1199
|
tile: "polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
|
|
2816
1200
|
ghost: "polli:hover:bg-transparent polli:hover:text-theme-text-soft"
|
|
2817
1201
|
};
|
|
2818
|
-
var
|
|
1202
|
+
var sizeClasses2 = {
|
|
2819
1203
|
sm: "polli:h-6 polli:w-6 polli:rounded",
|
|
2820
1204
|
md: "polli:h-9 polli:w-9 polli:rounded-full"
|
|
2821
1205
|
};
|
|
2822
|
-
var IconButton =
|
|
1206
|
+
var IconButton = forwardRef5(
|
|
2823
1207
|
({
|
|
2824
1208
|
intent,
|
|
2825
1209
|
variant = "tile",
|
|
@@ -2843,23 +1227,32 @@ var IconButton = forwardRef6(
|
|
|
2843
1227
|
className: cn(
|
|
2844
1228
|
"polli-control polli:inline-flex polli:items-center polli:justify-center polli:transition-colors",
|
|
2845
1229
|
disabled ? "polli:cursor-not-allowed polli:opacity-50" : "polli:cursor-pointer",
|
|
2846
|
-
|
|
2847
|
-
intent ?
|
|
1230
|
+
sizeClasses2[size],
|
|
1231
|
+
intent ? intentClasses[intent] : variantClasses[variant],
|
|
2848
1232
|
!disabled && (intent ? intentHoverClasses[intent] : variantHoverClasses[variant]),
|
|
2849
1233
|
className
|
|
2850
1234
|
)
|
|
2851
1235
|
};
|
|
2852
|
-
const button = href ? /* @__PURE__ */
|
|
1236
|
+
const button = href ? /* @__PURE__ */ jsx18(
|
|
2853
1237
|
"a",
|
|
2854
1238
|
{
|
|
2855
1239
|
...buttonProps,
|
|
2856
1240
|
...shared,
|
|
2857
|
-
href,
|
|
1241
|
+
href: disabled ? void 0 : href,
|
|
2858
1242
|
target,
|
|
2859
1243
|
rel,
|
|
1244
|
+
...disabled && {
|
|
1245
|
+
role: buttonProps.role ?? "link",
|
|
1246
|
+
"aria-disabled": true,
|
|
1247
|
+
tabIndex: -1,
|
|
1248
|
+
onClick: (event) => {
|
|
1249
|
+
event.preventDefault();
|
|
1250
|
+
event.stopPropagation();
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
2860
1253
|
children
|
|
2861
1254
|
}
|
|
2862
|
-
) : /* @__PURE__ */
|
|
1255
|
+
) : /* @__PURE__ */ jsx18(
|
|
2863
1256
|
"button",
|
|
2864
1257
|
{
|
|
2865
1258
|
...buttonProps,
|
|
@@ -2873,7 +1266,7 @@ var IconButton = forwardRef6(
|
|
|
2873
1266
|
);
|
|
2874
1267
|
const tooltipContent = tooltip ?? title;
|
|
2875
1268
|
if (!tooltipContent) return button;
|
|
2876
|
-
return /* @__PURE__ */
|
|
1269
|
+
return /* @__PURE__ */ jsx18(
|
|
2877
1270
|
Tooltip,
|
|
2878
1271
|
{
|
|
2879
1272
|
triggerAs: "span",
|
|
@@ -2890,7 +1283,7 @@ var IconButton = forwardRef6(
|
|
|
2890
1283
|
IconButton.displayName = "IconButton";
|
|
2891
1284
|
|
|
2892
1285
|
// src/compositions/FileUpload.tsx
|
|
2893
|
-
import { Fragment as
|
|
1286
|
+
import { Fragment as Fragment5, jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2894
1287
|
var PREVIEWABLE_IMAGE_TYPES = /* @__PURE__ */ new Set([
|
|
2895
1288
|
"image/gif",
|
|
2896
1289
|
"image/jpeg",
|
|
@@ -2902,7 +1295,7 @@ function isPreviewableImage(file) {
|
|
|
2902
1295
|
return PREVIEWABLE_IMAGE_TYPES.has(file.type);
|
|
2903
1296
|
}
|
|
2904
1297
|
function PreviewPlaceholder({ icon }) {
|
|
2905
|
-
return /* @__PURE__ */
|
|
1298
|
+
return /* @__PURE__ */ jsx19(
|
|
2906
1299
|
"div",
|
|
2907
1300
|
{
|
|
2908
1301
|
className: cn(
|
|
@@ -2917,11 +1310,11 @@ function FilePreview({
|
|
|
2917
1310
|
file,
|
|
2918
1311
|
placeholderIcon
|
|
2919
1312
|
}) {
|
|
2920
|
-
const canvasRef =
|
|
2921
|
-
const [canPreview, setCanPreview] =
|
|
1313
|
+
const canvasRef = useRef2(null);
|
|
1314
|
+
const [canPreview, setCanPreview] = useState2(
|
|
2922
1315
|
() => isPreviewableImage(file)
|
|
2923
1316
|
);
|
|
2924
|
-
|
|
1317
|
+
useEffect3(() => {
|
|
2925
1318
|
if (!isPreviewableImage(file)) {
|
|
2926
1319
|
setCanPreview(false);
|
|
2927
1320
|
return;
|
|
@@ -2965,9 +1358,9 @@ function FilePreview({
|
|
|
2965
1358
|
};
|
|
2966
1359
|
}, [file]);
|
|
2967
1360
|
if (!canPreview) {
|
|
2968
|
-
return /* @__PURE__ */
|
|
1361
|
+
return /* @__PURE__ */ jsx19(PreviewPlaceholder, { icon: placeholderIcon });
|
|
2969
1362
|
}
|
|
2970
|
-
return /* @__PURE__ */
|
|
1363
|
+
return /* @__PURE__ */ jsx19(
|
|
2971
1364
|
"canvas",
|
|
2972
1365
|
{
|
|
2973
1366
|
ref: canvasRef,
|
|
@@ -2986,16 +1379,16 @@ function FileUpload({
|
|
|
2986
1379
|
maxFiles = 4,
|
|
2987
1380
|
maxSizeBytes = 10 * 1024 * 1024,
|
|
2988
1381
|
accept = "image/*",
|
|
2989
|
-
icon = /* @__PURE__ */
|
|
2990
|
-
label = /* @__PURE__ */
|
|
1382
|
+
icon = /* @__PURE__ */ jsx19(ImageIcon, { className: "polli:h-6 polli:w-6" }),
|
|
1383
|
+
label = /* @__PURE__ */ jsxs14(Fragment5, { children: [
|
|
2991
1384
|
"Drag images here or ",
|
|
2992
|
-
/* @__PURE__ */
|
|
1385
|
+
/* @__PURE__ */ jsx19("span", { className: "polli:underline", children: "browse" })
|
|
2993
1386
|
] }),
|
|
2994
|
-
previewIcon = /* @__PURE__ */
|
|
1387
|
+
previewIcon = /* @__PURE__ */ jsx19(ImageIcon, { className: "polli:h-5 polli:w-5" }),
|
|
2995
1388
|
disabled = false,
|
|
2996
1389
|
className
|
|
2997
1390
|
}) {
|
|
2998
|
-
|
|
1391
|
+
useEffect3(() => acquireDocumentFileDropGuard(document), []);
|
|
2999
1392
|
function addFiles(incoming) {
|
|
3000
1393
|
if (disabled || incoming.length === 0) return;
|
|
3001
1394
|
const { accepted, rejected } = partitionFiles(incoming, value, {
|
|
@@ -3007,12 +1400,12 @@ function FileUpload({
|
|
|
3007
1400
|
if (rejected.length > 0) onReject?.(rejected);
|
|
3008
1401
|
}
|
|
3009
1402
|
const canAdd = !disabled && value.length < maxFiles;
|
|
3010
|
-
const inputId =
|
|
1403
|
+
const inputId = useId();
|
|
3011
1404
|
function handleInputChange(event) {
|
|
3012
1405
|
addFiles(Array.from(event.target.files ?? []));
|
|
3013
1406
|
event.target.value = "";
|
|
3014
1407
|
}
|
|
3015
|
-
return /* @__PURE__ */
|
|
1408
|
+
return /* @__PURE__ */ jsx19(
|
|
3016
1409
|
"fieldset",
|
|
3017
1410
|
{
|
|
3018
1411
|
disabled,
|
|
@@ -3026,22 +1419,22 @@ function FileUpload({
|
|
|
3026
1419
|
event.preventDefault();
|
|
3027
1420
|
addFiles(Array.from(event.dataTransfer.files));
|
|
3028
1421
|
},
|
|
3029
|
-
children: /* @__PURE__ */
|
|
3030
|
-
value.map((file, index) => /* @__PURE__ */
|
|
1422
|
+
children: /* @__PURE__ */ jsxs14("ul", { className: "polli:m-0 polli:flex polli:flex-wrap polli:gap-3 polli:p-0", children: [
|
|
1423
|
+
value.map((file, index) => /* @__PURE__ */ jsxs14(
|
|
3031
1424
|
"li",
|
|
3032
1425
|
{
|
|
3033
1426
|
title: file.name,
|
|
3034
1427
|
className: "polli:relative polli:list-none",
|
|
3035
1428
|
children: [
|
|
3036
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ jsx19(
|
|
3037
1430
|
FilePreview,
|
|
3038
1431
|
{
|
|
3039
1432
|
file,
|
|
3040
1433
|
placeholderIcon: previewIcon
|
|
3041
1434
|
}
|
|
3042
1435
|
),
|
|
3043
|
-
/* @__PURE__ */
|
|
3044
|
-
!disabled && /* @__PURE__ */
|
|
1436
|
+
/* @__PURE__ */ jsx19("span", { className: "polli:sr-only", children: file.name }),
|
|
1437
|
+
!disabled && /* @__PURE__ */ jsx19("div", { className: "polli:absolute polli:-top-2 polli:right-1", children: /* @__PURE__ */ jsx19(
|
|
3045
1438
|
IconButton,
|
|
3046
1439
|
{
|
|
3047
1440
|
intent: "danger",
|
|
@@ -3049,14 +1442,14 @@ function FileUpload({
|
|
|
3049
1442
|
onClick: () => onChange(
|
|
3050
1443
|
value.filter((_, i) => i !== index)
|
|
3051
1444
|
),
|
|
3052
|
-
children: /* @__PURE__ */
|
|
1445
|
+
children: /* @__PURE__ */ jsx19(XIcon, { className: "polli:h-3 polli:w-3" })
|
|
3053
1446
|
}
|
|
3054
1447
|
) })
|
|
3055
1448
|
]
|
|
3056
1449
|
},
|
|
3057
1450
|
`${file.name}-${index}`
|
|
3058
1451
|
)),
|
|
3059
|
-
(canAdd || value.length === 0) && /* @__PURE__ */
|
|
1452
|
+
(canAdd || value.length === 0) && /* @__PURE__ */ jsx19("li", { className: "polli:list-none", children: /* @__PURE__ */ jsxs14(
|
|
3060
1453
|
"label",
|
|
3061
1454
|
{
|
|
3062
1455
|
htmlFor: inputId,
|
|
@@ -3065,9 +1458,9 @@ function FileUpload({
|
|
|
3065
1458
|
canAdd ? "polli:cursor-pointer polli:hover:bg-theme-bg-hover" : "polli:cursor-not-allowed"
|
|
3066
1459
|
),
|
|
3067
1460
|
children: [
|
|
3068
|
-
value.length ? /* @__PURE__ */
|
|
3069
|
-
/* @__PURE__ */
|
|
3070
|
-
/* @__PURE__ */
|
|
1461
|
+
value.length ? /* @__PURE__ */ jsx19(PlusIcon, { className: "polli:h-6 polli:w-6" }) : icon,
|
|
1462
|
+
/* @__PURE__ */ jsx19("span", { children: value.length ? "Add files" : label }),
|
|
1463
|
+
/* @__PURE__ */ jsx19(
|
|
3071
1464
|
"input",
|
|
3072
1465
|
{
|
|
3073
1466
|
id: inputId,
|
|
@@ -3088,7 +1481,7 @@ function FileUpload({
|
|
|
3088
1481
|
}
|
|
3089
1482
|
|
|
3090
1483
|
// src/compositions/InfoTip.tsx
|
|
3091
|
-
import { jsx as
|
|
1484
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
3092
1485
|
var InfoTip = ({
|
|
3093
1486
|
text,
|
|
3094
1487
|
content,
|
|
@@ -3097,7 +1490,7 @@ var InfoTip = ({
|
|
|
3097
1490
|
}) => (
|
|
3098
1491
|
// displayContents drops the inline wrapper so the badge centres on its row
|
|
3099
1492
|
// instead of sitting on the text baseline.
|
|
3100
|
-
/* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ jsx20(
|
|
3101
1494
|
Tooltip,
|
|
3102
1495
|
{
|
|
3103
1496
|
content: content ?? text,
|
|
@@ -3105,55 +1498,13 @@ var InfoTip = ({
|
|
|
3105
1498
|
className: "polli:ml-1",
|
|
3106
1499
|
displayContents: true,
|
|
3107
1500
|
tapEnabled,
|
|
3108
|
-
children: /* @__PURE__ */
|
|
1501
|
+
children: /* @__PURE__ */ jsx20("span", { className: "polli:inline-flex polli:h-4 polli:w-4 polli:items-center polli:justify-center polli:rounded-full polli:bg-surface-menu polli:font-bold polli:text-[10px] polli:leading-none polli:text-theme-text-muted polli:transition-colors polli:hover:text-theme-text-strong", children: "i" })
|
|
3109
1502
|
}
|
|
3110
1503
|
)
|
|
3111
1504
|
);
|
|
3112
1505
|
|
|
3113
|
-
// src/primitives/Chip.tsx
|
|
3114
|
-
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3115
|
-
var chipSizes = {
|
|
3116
|
-
icon: "polli:h-5 polli:w-5 polli:p-0 polli:text-xs",
|
|
3117
|
-
sm: "polli:h-5 polli:px-2 polli:text-xs",
|
|
3118
|
-
md: "polli:h-6 polli:px-2.5 polli:text-sm",
|
|
3119
|
-
lg: "polli:h-7 polli:px-3 polli:text-sm"
|
|
3120
|
-
};
|
|
3121
|
-
var intentClasses4 = {
|
|
3122
|
-
news: "polli:bg-intent-news-bg-light polli:text-intent-news-text",
|
|
3123
|
-
new: "polli:bg-intent-new-bg-light polli:text-intent-new-text",
|
|
3124
|
-
free: "polli:bg-intent-free-bg-light polli:text-intent-free-text",
|
|
3125
|
-
alpha: "polli:bg-intent-alpha-bg-light polli:text-intent-alpha-text",
|
|
3126
|
-
neutral: "polli:bg-ink-100/80 polli:text-ink-900",
|
|
3127
|
-
success: "polli:bg-intent-success-bg-bright/15 polli:text-intent-success-text",
|
|
3128
|
-
warning: "polli:bg-intent-warning-bg-light polli:text-intent-warning-text",
|
|
3129
|
-
info: "polli:bg-intent-info-bg-light polli:text-intent-info-text",
|
|
3130
|
-
danger: "polli:bg-intent-danger-bg-light polli:text-intent-danger-text"
|
|
3131
|
-
};
|
|
3132
|
-
var Chip = ({
|
|
3133
|
-
intent,
|
|
3134
|
-
size = "md",
|
|
3135
|
-
className,
|
|
3136
|
-
children,
|
|
3137
|
-
...rest
|
|
3138
|
-
}) => {
|
|
3139
|
-
const intentClass = intent ? intentClasses4[intent] : "polli:bg-theme-bg-active polli:text-theme-text-strong";
|
|
3140
|
-
return /* @__PURE__ */ jsx35(
|
|
3141
|
-
"span",
|
|
3142
|
-
{
|
|
3143
|
-
...rest,
|
|
3144
|
-
className: cn(
|
|
3145
|
-
"polli:inline-flex polli:shrink-0 polli:items-center polli:justify-center polli:gap-1 polli:rounded-lg polli:font-medium polli:leading-none",
|
|
3146
|
-
chipSizes[size],
|
|
3147
|
-
intentClass,
|
|
3148
|
-
className
|
|
3149
|
-
),
|
|
3150
|
-
children
|
|
3151
|
-
}
|
|
3152
|
-
);
|
|
3153
|
-
};
|
|
3154
|
-
|
|
3155
1506
|
// src/compositions/KeyChip.tsx
|
|
3156
|
-
import { jsx as
|
|
1507
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3157
1508
|
var chipClassName = "polli:gap-1.5 polli:font-mono polli:font-normal polli:[&>svg]:size-3.5 polli:[&>svg]:shrink-0";
|
|
3158
1509
|
function KeyChip({
|
|
3159
1510
|
prefix,
|
|
@@ -3163,16 +1514,16 @@ function KeyChip({
|
|
|
3163
1514
|
}) {
|
|
3164
1515
|
const text = `${prefix}\u2026`;
|
|
3165
1516
|
if (!value) {
|
|
3166
|
-
return /* @__PURE__ */
|
|
1517
|
+
return /* @__PURE__ */ jsx21(Chip, { intent: "neutral", className: cn(chipClassName, className), children: text });
|
|
3167
1518
|
}
|
|
3168
|
-
return /* @__PURE__ */
|
|
1519
|
+
return /* @__PURE__ */ jsx21(
|
|
3169
1520
|
CopyButton,
|
|
3170
1521
|
{
|
|
3171
1522
|
value,
|
|
3172
1523
|
tooltip: null,
|
|
3173
1524
|
"aria-label": label,
|
|
3174
1525
|
className: "polli:inline-flex polli:cursor-pointer polli:rounded-lg",
|
|
3175
|
-
children: (copied) => /* @__PURE__ */
|
|
1526
|
+
children: (copied) => /* @__PURE__ */ jsxs15(
|
|
3176
1527
|
Chip,
|
|
3177
1528
|
{
|
|
3178
1529
|
intent: copied ? "success" : "neutral",
|
|
@@ -3182,7 +1533,7 @@ function KeyChip({
|
|
|
3182
1533
|
className
|
|
3183
1534
|
),
|
|
3184
1535
|
children: [
|
|
3185
|
-
copied ? /* @__PURE__ */
|
|
1536
|
+
copied ? /* @__PURE__ */ jsx21(CheckIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx21(ClipboardIcon, { "aria-hidden": "true" }),
|
|
3186
1537
|
copied ? "Copied" : text
|
|
3187
1538
|
]
|
|
3188
1539
|
}
|
|
@@ -3192,7 +1543,7 @@ function KeyChip({
|
|
|
3192
1543
|
}
|
|
3193
1544
|
|
|
3194
1545
|
// src/compositions/LinkCard.tsx
|
|
3195
|
-
import { jsx as
|
|
1546
|
+
import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3196
1547
|
function LinkCard({
|
|
3197
1548
|
as,
|
|
3198
1549
|
external,
|
|
@@ -3206,7 +1557,7 @@ function LinkCard({
|
|
|
3206
1557
|
const Component = as || "a";
|
|
3207
1558
|
const isExternal = external ?? isExternalHref(linkProps.href);
|
|
3208
1559
|
const style = linkProps.style;
|
|
3209
|
-
return /* @__PURE__ */
|
|
1560
|
+
return /* @__PURE__ */ jsxs16(
|
|
3210
1561
|
Surface,
|
|
3211
1562
|
{
|
|
3212
1563
|
as: Component,
|
|
@@ -3227,7 +1578,7 @@ function LinkCard({
|
|
|
3227
1578
|
surfaceClassName
|
|
3228
1579
|
),
|
|
3229
1580
|
children: [
|
|
3230
|
-
showIcon && isExternal && /* @__PURE__ */
|
|
1581
|
+
showIcon && isExternal && /* @__PURE__ */ jsx22(
|
|
3231
1582
|
ExternalLinkIcon,
|
|
3232
1583
|
{
|
|
3233
1584
|
"aria-hidden": "true",
|
|
@@ -3241,7 +1592,7 @@ function LinkCard({
|
|
|
3241
1592
|
}
|
|
3242
1593
|
|
|
3243
1594
|
// src/compositions/MediaPlaceholder.tsx
|
|
3244
|
-
import { jsx as
|
|
1595
|
+
import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3245
1596
|
var MediaPlaceholder = ({
|
|
3246
1597
|
icon,
|
|
3247
1598
|
label,
|
|
@@ -3252,7 +1603,7 @@ var MediaPlaceholder = ({
|
|
|
3252
1603
|
className,
|
|
3253
1604
|
style,
|
|
3254
1605
|
...rest
|
|
3255
|
-
}) => /* @__PURE__ */
|
|
1606
|
+
}) => /* @__PURE__ */ jsxs17(
|
|
3256
1607
|
"div",
|
|
3257
1608
|
{
|
|
3258
1609
|
...rest,
|
|
@@ -3267,7 +1618,7 @@ var MediaPlaceholder = ({
|
|
|
3267
1618
|
className
|
|
3268
1619
|
),
|
|
3269
1620
|
children: [
|
|
3270
|
-
icon && /* @__PURE__ */
|
|
1621
|
+
icon && /* @__PURE__ */ jsx23(
|
|
3271
1622
|
"div",
|
|
3272
1623
|
{
|
|
3273
1624
|
className: cn(
|
|
@@ -3278,9 +1629,9 @@ var MediaPlaceholder = ({
|
|
|
3278
1629
|
children: icon
|
|
3279
1630
|
}
|
|
3280
1631
|
),
|
|
3281
|
-
(label || detail) && /* @__PURE__ */
|
|
3282
|
-
label && /* @__PURE__ */
|
|
3283
|
-
detail && /* @__PURE__ */
|
|
1632
|
+
(label || detail) && /* @__PURE__ */ jsxs17("div", { className: "polli:max-w-sm", children: [
|
|
1633
|
+
label && /* @__PURE__ */ jsx23(Text, { as: "p", size: "sm", tone: "strong", weight: "semibold", children: label }),
|
|
1634
|
+
detail && /* @__PURE__ */ jsx23(Text, { as: "p", size: "sm", tone: "soft", className: "polli:mt-1", children: detail })
|
|
3284
1635
|
] }),
|
|
3285
1636
|
children
|
|
3286
1637
|
]
|
|
@@ -3288,7 +1639,7 @@ var MediaPlaceholder = ({
|
|
|
3288
1639
|
);
|
|
3289
1640
|
|
|
3290
1641
|
// src/compositions/MultiSelect.tsx
|
|
3291
|
-
import { jsx as
|
|
1642
|
+
import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3292
1643
|
var TRIGGER_BASE = "polli-control polli:inline-flex polli:min-h-8 polli:min-w-[140px] polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-1.5 polli:text-xs polli:font-medium polli:transition-all polli:duration-200";
|
|
3293
1644
|
var ROW_BASE = "polli-control polli:flex polli:w-full polli:items-center polli:gap-3 polli:px-3 polli:py-2 polli:text-left polli:text-xs polli:transition-colors";
|
|
3294
1645
|
var CHECK_BASE = "polli:flex polli:h-4 polli:w-4 polli:flex-shrink-0 polli:items-center polli:justify-center polli:rounded polli:border polli:border-theme-border polli:text-xs";
|
|
@@ -3315,9 +1666,9 @@ var MultiSelect = ({
|
|
|
3315
1666
|
};
|
|
3316
1667
|
const selectAll = () => onChange([]);
|
|
3317
1668
|
const displayText = disabled ? disabledText : isAllSelected ? placeholder : selected.length === 1 ? options.find((option) => option.value === selected[0])?.label ?? "1 selected" : `${selected.length} selected`;
|
|
3318
|
-
const labelNode = label ? /* @__PURE__ */
|
|
1669
|
+
const labelNode = label ? /* @__PURE__ */ jsx24("span", { className: "polli:text-xs polli:font-medium polli:text-theme-text-soft", children: label }) : null;
|
|
3319
1670
|
if (disabled) {
|
|
3320
|
-
return /* @__PURE__ */
|
|
1671
|
+
return /* @__PURE__ */ jsxs18(
|
|
3321
1672
|
"div",
|
|
3322
1673
|
{
|
|
3323
1674
|
className: cn(
|
|
@@ -3326,7 +1677,7 @@ var MultiSelect = ({
|
|
|
3326
1677
|
),
|
|
3327
1678
|
children: [
|
|
3328
1679
|
labelNode,
|
|
3329
|
-
/* @__PURE__ */
|
|
1680
|
+
/* @__PURE__ */ jsx24(
|
|
3330
1681
|
Tooltip,
|
|
3331
1682
|
{
|
|
3332
1683
|
triggerAs: "span",
|
|
@@ -3336,7 +1687,7 @@ var MultiSelect = ({
|
|
|
3336
1687
|
"polli:inline-flex polli:cursor-not-allowed",
|
|
3337
1688
|
fullWidth && "polli:min-w-0 polli:flex-1"
|
|
3338
1689
|
),
|
|
3339
|
-
children: /* @__PURE__ */
|
|
1690
|
+
children: /* @__PURE__ */ jsxs18(
|
|
3340
1691
|
"button",
|
|
3341
1692
|
{
|
|
3342
1693
|
type: "button",
|
|
@@ -3348,8 +1699,8 @@ var MultiSelect = ({
|
|
|
3348
1699
|
"polli:cursor-not-allowed polli:bg-theme-bg-active polli:opacity-50"
|
|
3349
1700
|
),
|
|
3350
1701
|
children: [
|
|
3351
|
-
/* @__PURE__ */
|
|
3352
|
-
/* @__PURE__ */
|
|
1702
|
+
/* @__PURE__ */ jsx24("span", { className: "polli:flex-1 polli:truncate polli:text-left polli:text-theme-text-strong", children: displayText }),
|
|
1703
|
+
/* @__PURE__ */ jsx24(
|
|
3353
1704
|
ChevronIcon,
|
|
3354
1705
|
{
|
|
3355
1706
|
expanded: false,
|
|
@@ -3365,7 +1716,7 @@ var MultiSelect = ({
|
|
|
3365
1716
|
}
|
|
3366
1717
|
);
|
|
3367
1718
|
}
|
|
3368
|
-
return /* @__PURE__ */
|
|
1719
|
+
return /* @__PURE__ */ jsxs18(
|
|
3369
1720
|
"div",
|
|
3370
1721
|
{
|
|
3371
1722
|
className: cn(
|
|
@@ -3374,12 +1725,12 @@ var MultiSelect = ({
|
|
|
3374
1725
|
),
|
|
3375
1726
|
children: [
|
|
3376
1727
|
labelNode,
|
|
3377
|
-
/* @__PURE__ */
|
|
1728
|
+
/* @__PURE__ */ jsx24(
|
|
3378
1729
|
Dropdown,
|
|
3379
1730
|
{
|
|
3380
1731
|
align,
|
|
3381
1732
|
className: "polli:w-[min(20rem,calc(100vw-2rem))]",
|
|
3382
|
-
trigger: (open) => /* @__PURE__ */
|
|
1733
|
+
trigger: (open) => /* @__PURE__ */ jsxs18(
|
|
3383
1734
|
"button",
|
|
3384
1735
|
{
|
|
3385
1736
|
type: "button",
|
|
@@ -3390,7 +1741,7 @@ var MultiSelect = ({
|
|
|
3390
1741
|
open ? "polli:bg-theme-bg-hover" : "polli:bg-theme-bg-active polli:hover:bg-theme-bg-hover"
|
|
3391
1742
|
),
|
|
3392
1743
|
children: [
|
|
3393
|
-
/* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ jsx24(
|
|
3394
1745
|
"span",
|
|
3395
1746
|
{
|
|
3396
1747
|
className: cn(
|
|
@@ -3400,7 +1751,7 @@ var MultiSelect = ({
|
|
|
3400
1751
|
children: displayText
|
|
3401
1752
|
}
|
|
3402
1753
|
),
|
|
3403
|
-
/* @__PURE__ */
|
|
1754
|
+
/* @__PURE__ */ jsx24(
|
|
3404
1755
|
ChevronIcon,
|
|
3405
1756
|
{
|
|
3406
1757
|
expanded: open,
|
|
@@ -3413,8 +1764,8 @@ var MultiSelect = ({
|
|
|
3413
1764
|
]
|
|
3414
1765
|
}
|
|
3415
1766
|
),
|
|
3416
|
-
children: /* @__PURE__ */
|
|
3417
|
-
/* @__PURE__ */
|
|
1767
|
+
children: /* @__PURE__ */ jsxs18(ScrollArea, { className: "polli:max-h-64", children: [
|
|
1768
|
+
/* @__PURE__ */ jsxs18(
|
|
3418
1769
|
"button",
|
|
3419
1770
|
{
|
|
3420
1771
|
type: "button",
|
|
@@ -3425,7 +1776,7 @@ var MultiSelect = ({
|
|
|
3425
1776
|
isAllSelected ? "polli:bg-theme-bg-active polli:font-medium polli:text-theme-text-strong" : "polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"
|
|
3426
1777
|
),
|
|
3427
1778
|
children: [
|
|
3428
|
-
/* @__PURE__ */
|
|
1779
|
+
/* @__PURE__ */ jsx24(
|
|
3429
1780
|
"span",
|
|
3430
1781
|
{
|
|
3431
1782
|
"aria-hidden": "true",
|
|
@@ -3442,7 +1793,7 @@ var MultiSelect = ({
|
|
|
3442
1793
|
),
|
|
3443
1794
|
options.map((opt) => {
|
|
3444
1795
|
const isChecked = selected.includes(opt.value);
|
|
3445
|
-
return /* @__PURE__ */
|
|
1796
|
+
return /* @__PURE__ */ jsxs18(
|
|
3446
1797
|
"button",
|
|
3447
1798
|
{
|
|
3448
1799
|
type: "button",
|
|
@@ -3453,7 +1804,7 @@ var MultiSelect = ({
|
|
|
3453
1804
|
isChecked ? "polli:bg-theme-bg-active polli:text-theme-text-strong" : "polli:text-theme-text-base polli:hover:bg-theme-bg-subtle"
|
|
3454
1805
|
),
|
|
3455
1806
|
children: [
|
|
3456
|
-
/* @__PURE__ */
|
|
1807
|
+
/* @__PURE__ */ jsx24(
|
|
3457
1808
|
"span",
|
|
3458
1809
|
{
|
|
3459
1810
|
"aria-hidden": "true",
|
|
@@ -3464,7 +1815,7 @@ var MultiSelect = ({
|
|
|
3464
1815
|
children: isChecked && "\u2713"
|
|
3465
1816
|
}
|
|
3466
1817
|
),
|
|
3467
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ jsx24("span", { className: "polli:min-w-0 polli:[overflow-wrap:anywhere]", children: opt.label })
|
|
3468
1819
|
]
|
|
3469
1820
|
},
|
|
3470
1821
|
opt.value
|
|
@@ -3479,7 +1830,7 @@ var MultiSelect = ({
|
|
|
3479
1830
|
};
|
|
3480
1831
|
|
|
3481
1832
|
// src/compositions/NavItem.tsx
|
|
3482
|
-
import { jsx as
|
|
1833
|
+
import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3483
1834
|
var base = "polli-control polli:flex polli:items-center polli:gap-2 polli:rounded-full polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:whitespace-nowrap polli:transition-colors";
|
|
3484
1835
|
var activeClasses = "polli:bg-theme-bg-active polli:text-theme-text-strong";
|
|
3485
1836
|
var inactiveClasses = "polli:text-ink-800 polli:hover:bg-surface-opaque/60 polli:hover:text-ink-950";
|
|
@@ -3492,7 +1843,7 @@ function NavItem({
|
|
|
3492
1843
|
...rest
|
|
3493
1844
|
}) {
|
|
3494
1845
|
const Component = as || "button";
|
|
3495
|
-
return /* @__PURE__ */
|
|
1846
|
+
return /* @__PURE__ */ jsxs19(
|
|
3496
1847
|
Component,
|
|
3497
1848
|
{
|
|
3498
1849
|
"aria-current": active ? "page" : void 0,
|
|
@@ -3503,7 +1854,7 @@ function NavItem({
|
|
|
3503
1854
|
),
|
|
3504
1855
|
...rest,
|
|
3505
1856
|
children: [
|
|
3506
|
-
Icon ? /* @__PURE__ */
|
|
1857
|
+
Icon ? /* @__PURE__ */ jsx25(Icon, { className: "polli:h-4 polli:w-4 polli:shrink-0" }) : null,
|
|
3507
1858
|
children
|
|
3508
1859
|
]
|
|
3509
1860
|
}
|
|
@@ -3511,7 +1862,7 @@ function NavItem({
|
|
|
3511
1862
|
}
|
|
3512
1863
|
|
|
3513
1864
|
// src/compositions/PeriodPicker.tsx
|
|
3514
|
-
import { useEffect as
|
|
1865
|
+
import { useEffect as useEffect4, useMemo as useMemo2, useRef as useRef3, useState as useState3 } from "react";
|
|
3515
1866
|
|
|
3516
1867
|
// src/lib/period.ts
|
|
3517
1868
|
var MS_PER_DAY = 864e5;
|
|
@@ -3618,112 +1969,8 @@ function isPeriodSelectable(selection, minDate = /* @__PURE__ */ new Date(0), ma
|
|
|
3618
1969
|
return end > minDate && start <= maxDate;
|
|
3619
1970
|
}
|
|
3620
1971
|
|
|
3621
|
-
// src/primitives/TabButton.tsx
|
|
3622
|
-
import { jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3623
|
-
var tabButtonBaseClass = "polli-control polli:inline-flex polli:items-center polli:justify-center polli:rounded-full polli:font-medium polli:leading-normal polli:transition-colors polli:duration-200";
|
|
3624
|
-
var tabButtonSizeClass = {
|
|
3625
|
-
xs: "polli:px-2.5 polli:py-1 polli:text-xs",
|
|
3626
|
-
lg: "polli:px-5 polli:py-2 polli:text-lg",
|
|
3627
|
-
md: "polli:px-4 polli:py-1.5 polli:text-base",
|
|
3628
|
-
sm: "polli:px-3 polli:py-1.5 polli:text-sm"
|
|
3629
|
-
};
|
|
3630
|
-
var variantClasses3 = {
|
|
3631
|
-
// The default tab look: borderless and monochrome. Selected uses `bg-active`
|
|
3632
|
-
// — the same light resting fill as the site's normal buttons. Both states
|
|
3633
|
-
// deepen to `bg-hover` and use the theme's hover label color. Non-selected
|
|
3634
|
-
// uses the quiet `bg-subtle` token until then.
|
|
3635
|
-
soft: {
|
|
3636
|
-
base: "",
|
|
3637
|
-
active: "polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
|
|
3638
|
-
mixed: "polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
|
|
3639
|
-
inactive: "polli:bg-theme-bg-subtle polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"
|
|
3640
|
-
},
|
|
3641
|
-
// Transparent until hovered or selected — for multi-select toggles and
|
|
3642
|
-
// inline rows where a filled idle pill would read as a hard selection.
|
|
3643
|
-
ghost: {
|
|
3644
|
-
base: "polli:border polli:border-transparent",
|
|
3645
|
-
active: "polli:bg-theme-bg-active polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
|
|
3646
|
-
mixed: "polli:bg-theme-bg-active/45 polli:text-theme-text-strong polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover",
|
|
3647
|
-
inactive: "polli:bg-transparent polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"
|
|
3648
|
-
}
|
|
3649
|
-
};
|
|
3650
|
-
var intentClasses5 = {
|
|
3651
|
-
amber: {
|
|
3652
|
-
active: "polli:bg-paid-pale polli:text-paid-deep",
|
|
3653
|
-
inactive: "polli:bg-transparent polli:text-theme-text-base polli:hover:bg-paid-pale/60"
|
|
3654
|
-
},
|
|
3655
|
-
green: {
|
|
3656
|
-
active: "polli:bg-tier-pale polli:text-tier-deep",
|
|
3657
|
-
inactive: "polli:bg-transparent polli:text-tier-deep polli:hover:bg-tier-pale/60"
|
|
3658
|
-
},
|
|
3659
|
-
// Site navigation: the current page is the one full brand pill; hover
|
|
3660
|
-
// only previews it, so "where you are" never doubles up.
|
|
3661
|
-
brand: {
|
|
3662
|
-
active: "polli:bg-brand-accent polli:font-bold polli:text-brand-dark",
|
|
3663
|
-
inactive: "polli:bg-transparent polli:font-bold polli:text-theme-text-strong polli:hover:bg-brand-accent/60 polli:hover:text-brand-dark"
|
|
3664
|
-
}
|
|
3665
|
-
};
|
|
3666
|
-
function TabButton({
|
|
3667
|
-
as,
|
|
3668
|
-
active,
|
|
3669
|
-
onClick,
|
|
3670
|
-
children,
|
|
3671
|
-
icon,
|
|
3672
|
-
size = "md",
|
|
3673
|
-
variant = "soft",
|
|
3674
|
-
intent,
|
|
3675
|
-
detail,
|
|
3676
|
-
ariaLabel,
|
|
3677
|
-
disabled = false,
|
|
3678
|
-
className,
|
|
3679
|
-
...rest
|
|
3680
|
-
}) {
|
|
3681
|
-
const Component = as || "button";
|
|
3682
|
-
const isButton = Component === "button";
|
|
3683
|
-
const colors = intent === "neutral" ? variantClasses3.soft : intent ? {
|
|
3684
|
-
...intentClasses5[intent],
|
|
3685
|
-
mixed: intentClasses5[intent].active
|
|
3686
|
-
} : variantClasses3[variant];
|
|
3687
|
-
const handleClick = disabled ? (event) => {
|
|
3688
|
-
event.preventDefault();
|
|
3689
|
-
event.stopPropagation();
|
|
3690
|
-
} : onClick;
|
|
3691
|
-
return /* @__PURE__ */ jsxs28(
|
|
3692
|
-
Component,
|
|
3693
|
-
{
|
|
3694
|
-
...rest,
|
|
3695
|
-
...isButton ? { type: "button", disabled } : {},
|
|
3696
|
-
...!isButton && disabled ? { "aria-disabled": true, tabIndex: -1 } : {},
|
|
3697
|
-
...Component === "a" && disabled ? { href: void 0 } : {},
|
|
3698
|
-
onClick: handleClick,
|
|
3699
|
-
...ariaLabel !== void 0 ? { "aria-label": ariaLabel } : {},
|
|
3700
|
-
...isButton ? { "aria-pressed": active } : { "aria-current": active === true ? "page" : void 0 },
|
|
3701
|
-
className: cn(
|
|
3702
|
-
tabButtonBaseClass,
|
|
3703
|
-
variantClasses3[variant].base,
|
|
3704
|
-
active === "mixed" ? colors.mixed : active ? colors.active : colors.inactive,
|
|
3705
|
-
disabled && "polli:pointer-events-none polli:cursor-not-allowed polli:opacity-50",
|
|
3706
|
-
tabButtonSizeClass[size],
|
|
3707
|
-
className
|
|
3708
|
-
),
|
|
3709
|
-
children: [
|
|
3710
|
-
icon && /* @__PURE__ */ jsx41(
|
|
3711
|
-
"span",
|
|
3712
|
-
{
|
|
3713
|
-
"aria-hidden": "true",
|
|
3714
|
-
className: "polli:mr-1.5 polli:flex polli:size-4 polli:shrink-0 polli:[&>svg]:size-full",
|
|
3715
|
-
children: icon
|
|
3716
|
-
}
|
|
3717
|
-
),
|
|
3718
|
-
children,
|
|
3719
|
-
detail != null && /* @__PURE__ */ jsx41("span", { className: "polli:ml-1 polli:font-normal polli:opacity-70", children: detail })
|
|
3720
|
-
]
|
|
3721
|
-
}
|
|
3722
|
-
);
|
|
3723
|
-
}
|
|
3724
|
-
|
|
3725
1972
|
// src/compositions/PeriodPicker.tsx
|
|
3726
|
-
import { Fragment as
|
|
1973
|
+
import { Fragment as Fragment6, jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3727
1974
|
var WEEKDAY_LABELS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
3728
1975
|
var MONTH_LABELS = [
|
|
3729
1976
|
"Jan",
|
|
@@ -3813,12 +2060,12 @@ var PeriodPicker = ({
|
|
|
3813
2060
|
trigger,
|
|
3814
2061
|
header
|
|
3815
2062
|
}) => {
|
|
3816
|
-
const [open, setOpen] =
|
|
3817
|
-
const [viewDate, setViewDate] =
|
|
3818
|
-
const [anchorDate, setAnchorDate] =
|
|
3819
|
-
const emittedSelectionRef =
|
|
2063
|
+
const [open, setOpen] = useState3(false);
|
|
2064
|
+
const [viewDate, setViewDate] = useState3(() => periodDate(value));
|
|
2065
|
+
const [anchorDate, setAnchorDate] = useState3(() => periodDate(value));
|
|
2066
|
+
const emittedSelectionRef = useRef3(null);
|
|
3820
2067
|
const { granularity, period } = value;
|
|
3821
|
-
|
|
2068
|
+
useEffect4(() => {
|
|
3822
2069
|
const currentSelectionKey = selectionKey({ granularity, period });
|
|
3823
2070
|
if (emittedSelectionRef.current === currentSelectionKey) {
|
|
3824
2071
|
emittedSelectionRef.current = null;
|
|
@@ -3852,13 +2099,13 @@ var PeriodPicker = ({
|
|
|
3852
2099
|
setOpen(false);
|
|
3853
2100
|
};
|
|
3854
2101
|
const viewLabel = value.granularity === "month" ? String(viewDate.getUTCFullYear()) : formatMonthYear(viewDate, "long");
|
|
3855
|
-
return /* @__PURE__ */
|
|
2102
|
+
return /* @__PURE__ */ jsxs20(
|
|
3856
2103
|
"div",
|
|
3857
2104
|
{
|
|
3858
2105
|
className: trigger ? "polli:contents" : "polli:flex polli:w-full polli:flex-wrap polli:items-center polli:gap-2",
|
|
3859
2106
|
children: [
|
|
3860
|
-
!trigger && /* @__PURE__ */
|
|
3861
|
-
(granularity2) => /* @__PURE__ */
|
|
2107
|
+
!trigger && /* @__PURE__ */ jsx26("div", { className: "polli:flex polli:flex-wrap polli:gap-1.5", children: ["day", "week", "month"].map(
|
|
2108
|
+
(granularity2) => /* @__PURE__ */ jsx26(
|
|
3862
2109
|
TabButton,
|
|
3863
2110
|
{
|
|
3864
2111
|
active: value.granularity === granularity2,
|
|
@@ -3868,13 +2115,13 @@ var PeriodPicker = ({
|
|
|
3868
2115
|
granularity2
|
|
3869
2116
|
)
|
|
3870
2117
|
) }),
|
|
3871
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ jsxs20(
|
|
3872
2119
|
Dropdown,
|
|
3873
2120
|
{
|
|
3874
2121
|
open,
|
|
3875
2122
|
onOpenChange: setOpen,
|
|
3876
2123
|
className: "polli:w-[320px] polli:max-w-[calc(100vw-2rem)] polli:rounded-xl polli:border polli:border-divider polli:bg-surface-opaque polli:p-3.5 polli:shadow-lg",
|
|
3877
|
-
trigger: trigger ?? ((isOpen) => /* @__PURE__ */
|
|
2124
|
+
trigger: trigger ?? ((isOpen) => /* @__PURE__ */ jsxs20(
|
|
3878
2125
|
"button",
|
|
3879
2126
|
{
|
|
3880
2127
|
type: "button",
|
|
@@ -3886,15 +2133,15 @@ var PeriodPicker = ({
|
|
|
3886
2133
|
isOpen && "polli:bg-theme-bg-hover polli:text-theme-text-strong"
|
|
3887
2134
|
),
|
|
3888
2135
|
children: [
|
|
3889
|
-
/* @__PURE__ */
|
|
3890
|
-
/* @__PURE__ */
|
|
2136
|
+
/* @__PURE__ */ jsx26("span", { className: "polli:truncate", children: summaryLabel }),
|
|
2137
|
+
/* @__PURE__ */ jsx26(ChevronIcon, { expanded: isOpen })
|
|
3891
2138
|
]
|
|
3892
2139
|
}
|
|
3893
2140
|
)),
|
|
3894
2141
|
children: [
|
|
3895
2142
|
header,
|
|
3896
|
-
/* @__PURE__ */
|
|
3897
|
-
/* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ jsxs20("div", { className: "polli:mb-3 polli:flex polli:items-center polli:justify-between", children: [
|
|
2144
|
+
/* @__PURE__ */ jsx26(
|
|
3898
2145
|
"button",
|
|
3899
2146
|
{
|
|
3900
2147
|
type: "button",
|
|
@@ -3908,8 +2155,8 @@ var PeriodPicker = ({
|
|
|
3908
2155
|
children: "<"
|
|
3909
2156
|
}
|
|
3910
2157
|
),
|
|
3911
|
-
/* @__PURE__ */
|
|
3912
|
-
/* @__PURE__ */
|
|
2158
|
+
/* @__PURE__ */ jsx26("div", { className: "polli:text-base polli:font-bold polli:text-theme-text-base", children: viewLabel }),
|
|
2159
|
+
/* @__PURE__ */ jsx26(
|
|
3913
2160
|
"button",
|
|
3914
2161
|
{
|
|
3915
2162
|
type: "button",
|
|
@@ -3924,7 +2171,7 @@ var PeriodPicker = ({
|
|
|
3924
2171
|
}
|
|
3925
2172
|
)
|
|
3926
2173
|
] }),
|
|
3927
|
-
value.granularity === "month" ? /* @__PURE__ */
|
|
2174
|
+
value.granularity === "month" ? /* @__PURE__ */ jsx26("div", { className: "polli:grid polli:grid-cols-3 polli:gap-1.5", children: MONTH_LABELS.map((label, monthIndex) => {
|
|
3928
2175
|
const date = new Date(
|
|
3929
2176
|
Date.UTC(
|
|
3930
2177
|
viewDate.getUTCFullYear(),
|
|
@@ -3943,7 +2190,7 @@ var PeriodPicker = ({
|
|
|
3943
2190
|
year: "numeric"
|
|
3944
2191
|
});
|
|
3945
2192
|
const selected = date.getUTCFullYear() === selectedWindow.start.getUTCFullYear() && date.getUTCMonth() === selectedWindow.start.getUTCMonth();
|
|
3946
|
-
return /* @__PURE__ */
|
|
2193
|
+
return /* @__PURE__ */ jsx26(
|
|
3947
2194
|
"button",
|
|
3948
2195
|
{
|
|
3949
2196
|
type: "button",
|
|
@@ -3960,9 +2207,9 @@ var PeriodPicker = ({
|
|
|
3960
2207
|
},
|
|
3961
2208
|
label
|
|
3962
2209
|
);
|
|
3963
|
-
}) }) : /* @__PURE__ */
|
|
3964
|
-
/* @__PURE__ */
|
|
3965
|
-
/* @__PURE__ */
|
|
2210
|
+
}) }) : /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
2211
|
+
/* @__PURE__ */ jsx26("div", { className: "polli:mb-1 polli:grid polli:grid-cols-7 polli:gap-1 polli:text-center polli:text-xs polli:font-bold polli:uppercase polli:text-theme-text-muted", children: WEEKDAY_LABELS.map((label) => /* @__PURE__ */ jsx26("div", { children: label }, label)) }),
|
|
2212
|
+
/* @__PURE__ */ jsx26("div", { className: "polli:grid polli:grid-cols-7 polli:gap-1", children: dates.map((date) => {
|
|
3966
2213
|
const inCurrentMonth = date.getUTCMonth() === viewDate.getUTCMonth();
|
|
3967
2214
|
const selectable = isPeriodSelectable(
|
|
3968
2215
|
periodFromDate(value.granularity, date),
|
|
@@ -3980,7 +2227,7 @@ var PeriodPicker = ({
|
|
|
3980
2227
|
}
|
|
3981
2228
|
)}`;
|
|
3982
2229
|
const selected = value.granularity === "day" ? sameUtcDay(date, selectedWindow.start) : date >= selectedWindow.start && date < selectedWindow.end;
|
|
3983
|
-
return /* @__PURE__ */
|
|
2230
|
+
return /* @__PURE__ */ jsx26(
|
|
3984
2231
|
"button",
|
|
3985
2232
|
{
|
|
3986
2233
|
type: "button",
|
|
@@ -4010,7 +2257,7 @@ var PeriodPicker = ({
|
|
|
4010
2257
|
};
|
|
4011
2258
|
|
|
4012
2259
|
// src/compositions/Section.tsx
|
|
4013
|
-
import { Fragment as
|
|
2260
|
+
import { Fragment as Fragment7, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4014
2261
|
var Section = ({
|
|
4015
2262
|
title,
|
|
4016
2263
|
id,
|
|
@@ -4023,13 +2270,13 @@ var Section = ({
|
|
|
4023
2270
|
children,
|
|
4024
2271
|
className
|
|
4025
2272
|
}) => {
|
|
4026
|
-
const body = /* @__PURE__ */
|
|
4027
|
-
intro && /* @__PURE__ */
|
|
2273
|
+
const body = /* @__PURE__ */ jsxs21(Fragment7, { children: [
|
|
2274
|
+
intro && /* @__PURE__ */ jsx27(Text, { as: "div", className: "polli:max-w-2xl", children: intro }),
|
|
4028
2275
|
children
|
|
4029
2276
|
] });
|
|
4030
|
-
const content = /* @__PURE__ */
|
|
4031
|
-
/* @__PURE__ */
|
|
4032
|
-
/* @__PURE__ */
|
|
2277
|
+
const content = /* @__PURE__ */ jsxs21(Fragment7, { children: [
|
|
2278
|
+
/* @__PURE__ */ jsxs21("header", { className: "polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-3", children: [
|
|
2279
|
+
/* @__PURE__ */ jsx27(
|
|
4033
2280
|
Heading,
|
|
4034
2281
|
{
|
|
4035
2282
|
as: "h2",
|
|
@@ -4038,11 +2285,11 @@ var Section = ({
|
|
|
4038
2285
|
children: title
|
|
4039
2286
|
}
|
|
4040
2287
|
),
|
|
4041
|
-
action && /* @__PURE__ */
|
|
2288
|
+
action && /* @__PURE__ */ jsx27("div", { className: cn("polli:shrink-0", actionClassName), children: action })
|
|
4042
2289
|
] }),
|
|
4043
2290
|
body
|
|
4044
2291
|
] });
|
|
4045
|
-
return /* @__PURE__ */
|
|
2292
|
+
return /* @__PURE__ */ jsx27("section", { id, className: cn("polli:scroll-mt-10", className), children: framed ? /* @__PURE__ */ jsx27(
|
|
4046
2293
|
Surface,
|
|
4047
2294
|
{
|
|
4048
2295
|
variant: "panel",
|
|
@@ -4052,11 +2299,11 @@ var Section = ({
|
|
|
4052
2299
|
),
|
|
4053
2300
|
children: content
|
|
4054
2301
|
}
|
|
4055
|
-
) : /* @__PURE__ */
|
|
2302
|
+
) : /* @__PURE__ */ jsx27("div", { className: "polli:flex polli:flex-col polli:gap-4", children: content }) });
|
|
4056
2303
|
};
|
|
4057
2304
|
|
|
4058
2305
|
// src/compositions/SocialCount.tsx
|
|
4059
|
-
import { jsx as
|
|
2306
|
+
import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4060
2307
|
var networks = {
|
|
4061
2308
|
discord: {
|
|
4062
2309
|
Icon: DiscordIcon,
|
|
@@ -4077,7 +2324,7 @@ function SocialCount({
|
|
|
4077
2324
|
}) {
|
|
4078
2325
|
const Component = as || "a";
|
|
4079
2326
|
const { Icon, className: colours } = networks[network];
|
|
4080
|
-
return /* @__PURE__ */
|
|
2327
|
+
return /* @__PURE__ */ jsxs22(
|
|
4081
2328
|
Component,
|
|
4082
2329
|
{
|
|
4083
2330
|
...rest,
|
|
@@ -4087,7 +2334,7 @@ function SocialCount({
|
|
|
4087
2334
|
className
|
|
4088
2335
|
),
|
|
4089
2336
|
children: [
|
|
4090
|
-
showIcon ? /* @__PURE__ */
|
|
2337
|
+
showIcon ? /* @__PURE__ */ jsx28(
|
|
4091
2338
|
Icon,
|
|
4092
2339
|
{
|
|
4093
2340
|
"aria-hidden": "true",
|
|
@@ -4101,7 +2348,7 @@ function SocialCount({
|
|
|
4101
2348
|
}
|
|
4102
2349
|
|
|
4103
2350
|
// src/compositions/StatCard.tsx
|
|
4104
|
-
import { jsx as
|
|
2351
|
+
import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4105
2352
|
var valueVariantClasses = {
|
|
4106
2353
|
stat: "polli:min-h-8 polli:text-2xl polli:font-bold polli:leading-tight polli:tabular-nums polli:text-theme-text-base",
|
|
4107
2354
|
fact: "polli:text-sm polli:leading-6 polli:text-theme-text-soft",
|
|
@@ -4116,9 +2363,9 @@ var StatCard = ({
|
|
|
4116
2363
|
labelClassName,
|
|
4117
2364
|
valueClassName,
|
|
4118
2365
|
detailClassName
|
|
4119
|
-
}) => variant === "display" ? /* @__PURE__ */
|
|
4120
|
-
/* @__PURE__ */
|
|
4121
|
-
/* @__PURE__ */
|
|
2366
|
+
}) => variant === "display" ? /* @__PURE__ */ jsxs23("div", { className: cn("polli:flex polli:flex-col polli:gap-1", className), children: [
|
|
2367
|
+
/* @__PURE__ */ jsx29("div", { className: cn(valueVariantClasses.display, valueClassName), children: value }),
|
|
2368
|
+
/* @__PURE__ */ jsx29(
|
|
4122
2369
|
Text,
|
|
4123
2370
|
{
|
|
4124
2371
|
as: "div",
|
|
@@ -4131,8 +2378,8 @@ var StatCard = ({
|
|
|
4131
2378
|
children: label
|
|
4132
2379
|
}
|
|
4133
2380
|
)
|
|
4134
|
-
] }) : /* @__PURE__ */
|
|
4135
|
-
/* @__PURE__ */
|
|
2381
|
+
] }) : /* @__PURE__ */ jsxs23("div", { className: cn("polli:text-sm", className), children: [
|
|
2382
|
+
/* @__PURE__ */ jsx29(
|
|
4136
2383
|
Text,
|
|
4137
2384
|
{
|
|
4138
2385
|
as: "div",
|
|
@@ -4146,7 +2393,7 @@ var StatCard = ({
|
|
|
4146
2393
|
children: label
|
|
4147
2394
|
}
|
|
4148
2395
|
),
|
|
4149
|
-
/* @__PURE__ */
|
|
2396
|
+
/* @__PURE__ */ jsx29(
|
|
4150
2397
|
"div",
|
|
4151
2398
|
{
|
|
4152
2399
|
className: cn(
|
|
@@ -4157,7 +2404,7 @@ var StatCard = ({
|
|
|
4157
2404
|
children: value
|
|
4158
2405
|
}
|
|
4159
2406
|
),
|
|
4160
|
-
detail && /* @__PURE__ */
|
|
2407
|
+
detail && /* @__PURE__ */ jsx29(
|
|
4161
2408
|
Text,
|
|
4162
2409
|
{
|
|
4163
2410
|
as: "div",
|
|
@@ -4170,47 +2417,8 @@ var StatCard = ({
|
|
|
4170
2417
|
] });
|
|
4171
2418
|
|
|
4172
2419
|
// src/compositions/ToolCallDetails.tsx
|
|
4173
|
-
import { Fragment as
|
|
4174
|
-
|
|
4175
|
-
// src/primitives/InlineLink.tsx
|
|
4176
|
-
import { jsx as jsx46, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4177
|
-
function InlineLink({
|
|
4178
|
-
as,
|
|
4179
|
-
external,
|
|
4180
|
-
showIcon = true,
|
|
4181
|
-
size = "inherit",
|
|
4182
|
-
tone = "accent",
|
|
4183
|
-
className,
|
|
4184
|
-
children,
|
|
4185
|
-
...linkProps
|
|
4186
|
-
}) {
|
|
4187
|
-
const Component = as || "a";
|
|
4188
|
-
const isExternal = external ?? isExternalHref(linkProps.href);
|
|
4189
|
-
return /* @__PURE__ */ jsxs33(
|
|
4190
|
-
Component,
|
|
4191
|
-
{
|
|
4192
|
-
target: isExternal && as !== "button" ? "_blank" : void 0,
|
|
4193
|
-
rel: isExternal && as !== "button" ? "noopener noreferrer" : void 0,
|
|
4194
|
-
className: ["polli-link", className].filter(Boolean).join(" "),
|
|
4195
|
-
"data-size": size,
|
|
4196
|
-
"data-tone": tone,
|
|
4197
|
-
...linkProps,
|
|
4198
|
-
children: [
|
|
4199
|
-
children,
|
|
4200
|
-
showIcon && isExternal && /* @__PURE__ */ jsx46(
|
|
4201
|
-
ExternalLinkIcon,
|
|
4202
|
-
{
|
|
4203
|
-
"aria-hidden": "true",
|
|
4204
|
-
className: "polli-link-external-icon"
|
|
4205
|
-
}
|
|
4206
|
-
)
|
|
4207
|
-
]
|
|
4208
|
-
}
|
|
4209
|
-
);
|
|
4210
|
-
}
|
|
4211
|
-
|
|
4212
|
-
// src/compositions/ToolCallDetails.tsx
|
|
4213
|
-
import { jsx as jsx47, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2420
|
+
import { Fragment as Fragment8, useState as useState4 } from "react";
|
|
2421
|
+
import { jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4214
2422
|
function formattedValue(value) {
|
|
4215
2423
|
if (typeof value === "string") return value;
|
|
4216
2424
|
try {
|
|
@@ -4234,8 +2442,8 @@ function linkedValue(value) {
|
|
|
4234
2442
|
if (href.endsWith(")")) extraClosingParens--;
|
|
4235
2443
|
href = href.slice(0, -1);
|
|
4236
2444
|
}
|
|
4237
|
-
return /* @__PURE__ */
|
|
4238
|
-
/* @__PURE__ */
|
|
2445
|
+
return /* @__PURE__ */ jsxs24(Fragment8, { children: [
|
|
2446
|
+
/* @__PURE__ */ jsx30(InlineLink, { href, children: href }),
|
|
4239
2447
|
segment.slice(href.length)
|
|
4240
2448
|
] }, key);
|
|
4241
2449
|
});
|
|
@@ -4244,7 +2452,7 @@ function ToolValue({
|
|
|
4244
2452
|
value,
|
|
4245
2453
|
error = false
|
|
4246
2454
|
}) {
|
|
4247
|
-
return /* @__PURE__ */
|
|
2455
|
+
return /* @__PURE__ */ jsx30(
|
|
4248
2456
|
"pre",
|
|
4249
2457
|
{
|
|
4250
2458
|
className: cn(
|
|
@@ -4265,7 +2473,7 @@ var STATUS_LABELS = {
|
|
|
4265
2473
|
denied: "Denied"
|
|
4266
2474
|
};
|
|
4267
2475
|
function ToolStatus({ status }) {
|
|
4268
|
-
const icon = status === "complete" || status === "approval-responded" ? /* @__PURE__ */
|
|
2476
|
+
const icon = status === "complete" || status === "approval-responded" ? /* @__PURE__ */ jsx30(CheckIcon, { className: "polli:size-3" }) : status === "error" || status === "denied" ? /* @__PURE__ */ jsx30(XIcon, { className: "polli:size-3" }) : /* @__PURE__ */ jsx30(
|
|
4269
2477
|
ClockIcon,
|
|
4270
2478
|
{
|
|
4271
2479
|
className: cn(
|
|
@@ -4274,7 +2482,7 @@ function ToolStatus({ status }) {
|
|
|
4274
2482
|
)
|
|
4275
2483
|
}
|
|
4276
2484
|
);
|
|
4277
|
-
return /* @__PURE__ */
|
|
2485
|
+
return /* @__PURE__ */ jsxs24(
|
|
4278
2486
|
"span",
|
|
4279
2487
|
{
|
|
4280
2488
|
"data-status": status,
|
|
@@ -4299,8 +2507,8 @@ function ToolCallDetails({
|
|
|
4299
2507
|
className
|
|
4300
2508
|
}) {
|
|
4301
2509
|
const result = error === void 0 ? output : error;
|
|
4302
|
-
const [open, setOpen] =
|
|
4303
|
-
return /* @__PURE__ */
|
|
2510
|
+
const [open, setOpen] = useState4(defaultOpen);
|
|
2511
|
+
return /* @__PURE__ */ jsxs24(
|
|
4304
2512
|
"div",
|
|
4305
2513
|
{
|
|
4306
2514
|
"data-tool-status": status,
|
|
@@ -4309,18 +2517,18 @@ function ToolCallDetails({
|
|
|
4309
2517
|
className
|
|
4310
2518
|
),
|
|
4311
2519
|
children: [
|
|
4312
|
-
/* @__PURE__ */
|
|
2520
|
+
/* @__PURE__ */ jsxs24(
|
|
4313
2521
|
"button",
|
|
4314
2522
|
{
|
|
4315
2523
|
type: "button",
|
|
4316
2524
|
"aria-expanded": open,
|
|
4317
|
-
onClick: () => setOpen((
|
|
2525
|
+
onClick: () => setOpen((current) => !current),
|
|
4318
2526
|
className: "polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:px-3 polli:py-2.5 polli:text-left polli:hover:bg-theme-bg-hover/50",
|
|
4319
2527
|
children: [
|
|
4320
|
-
/* @__PURE__ */
|
|
4321
|
-
/* @__PURE__ */
|
|
4322
|
-
/* @__PURE__ */
|
|
4323
|
-
/* @__PURE__ */
|
|
2528
|
+
/* @__PURE__ */ jsx30("span", { className: "polli:flex polli:size-7 polli:shrink-0 polli:items-center polli:justify-center polli:rounded-lg polli:bg-theme-bg-active polli:text-theme-text-strong", children: /* @__PURE__ */ jsx30(ToolIcon, { className: "polli:size-3.5" }) }),
|
|
2529
|
+
/* @__PURE__ */ jsx30("code", { className: "polli:min-w-0 polli:truncate polli:text-xs polli:font-semibold polli:text-theme-text-strong", children: name }),
|
|
2530
|
+
/* @__PURE__ */ jsx30(ToolStatus, { status }),
|
|
2531
|
+
/* @__PURE__ */ jsx30(
|
|
4324
2532
|
ChevronIcon,
|
|
4325
2533
|
{
|
|
4326
2534
|
expanded: open,
|
|
@@ -4330,14 +2538,14 @@ function ToolCallDetails({
|
|
|
4330
2538
|
]
|
|
4331
2539
|
}
|
|
4332
2540
|
),
|
|
4333
|
-
open && /* @__PURE__ */
|
|
4334
|
-
input !== void 0 && /* @__PURE__ */
|
|
4335
|
-
/* @__PURE__ */
|
|
4336
|
-
/* @__PURE__ */
|
|
2541
|
+
open && /* @__PURE__ */ jsxs24("div", { className: "polli:flex polli:flex-col polli:gap-4 polli:border-theme-border/30 polli:border-t polli:bg-theme-bg-pale/35 polli:px-3 polli:py-3", children: [
|
|
2542
|
+
input !== void 0 && /* @__PURE__ */ jsxs24("div", { className: "polli:flex polli:flex-col polli:gap-1", children: [
|
|
2543
|
+
/* @__PURE__ */ jsx30(Text, { size: "xs", tone: "muted", weight: "bold", children: "Parameters" }),
|
|
2544
|
+
/* @__PURE__ */ jsx30(ToolValue, { value: input })
|
|
4337
2545
|
] }),
|
|
4338
|
-
result !== void 0 && /* @__PURE__ */
|
|
4339
|
-
/* @__PURE__ */
|
|
4340
|
-
/* @__PURE__ */
|
|
2546
|
+
result !== void 0 && /* @__PURE__ */ jsxs24("div", { className: "polli:flex polli:flex-col polli:gap-1", children: [
|
|
2547
|
+
/* @__PURE__ */ jsx30(Text, { size: "xs", tone: "muted", weight: "bold", children: error === void 0 ? "Result" : "Error" }),
|
|
2548
|
+
/* @__PURE__ */ jsx30(
|
|
4341
2549
|
ToolValue,
|
|
4342
2550
|
{
|
|
4343
2551
|
value: result,
|
|
@@ -4352,19 +2560,19 @@ function ToolCallDetails({
|
|
|
4352
2560
|
}
|
|
4353
2561
|
|
|
4354
2562
|
// src/lib/cn-app.ts
|
|
4355
|
-
import { clsx
|
|
4356
|
-
import { extendTailwindMerge
|
|
4357
|
-
var
|
|
2563
|
+
import { clsx } from "clsx";
|
|
2564
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
2565
|
+
var twMerge = extendTailwindMerge({
|
|
4358
2566
|
extend: { theme: { text: ["micro"] } }
|
|
4359
2567
|
});
|
|
4360
2568
|
function cn2(...inputs) {
|
|
4361
|
-
return
|
|
2569
|
+
return twMerge(clsx(...inputs));
|
|
4362
2570
|
}
|
|
4363
2571
|
|
|
4364
2572
|
// src/lib/use-scroll-lock.ts
|
|
4365
|
-
import { useEffect as
|
|
2573
|
+
import { useEffect as useEffect5 } from "react";
|
|
4366
2574
|
function useScrollLock(enabled = true) {
|
|
4367
|
-
|
|
2575
|
+
useEffect5(() => {
|
|
4368
2576
|
if (!enabled) return;
|
|
4369
2577
|
const originalBody = document.body.style.overflow;
|
|
4370
2578
|
const originalHtml = document.documentElement.style.overflow;
|
|
@@ -4378,13 +2586,13 @@ function useScrollLock(enabled = true) {
|
|
|
4378
2586
|
}
|
|
4379
2587
|
|
|
4380
2588
|
// src/primitives/ButtonGroup.tsx
|
|
4381
|
-
import { jsx as
|
|
2589
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
4382
2590
|
var ButtonGroup = ({
|
|
4383
2591
|
className,
|
|
4384
2592
|
children,
|
|
4385
2593
|
role = "group",
|
|
4386
2594
|
...rest
|
|
4387
|
-
}) => /* @__PURE__ */
|
|
2595
|
+
}) => /* @__PURE__ */ jsx31(
|
|
4388
2596
|
"div",
|
|
4389
2597
|
{
|
|
4390
2598
|
...rest,
|
|
@@ -4397,234 +2605,11 @@ var ButtonGroup = ({
|
|
|
4397
2605
|
}
|
|
4398
2606
|
);
|
|
4399
2607
|
|
|
4400
|
-
// src/primitives/ColorModeToggle.tsx
|
|
4401
|
-
import { useSyncExternalStore } from "react";
|
|
4402
|
-
|
|
4403
|
-
// src/primitives/Switch.tsx
|
|
4404
|
-
import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4405
|
-
var sizes = {
|
|
4406
|
-
sm: {
|
|
4407
|
-
track: "polli:h-7 polli:w-[52px]",
|
|
4408
|
-
thumb: "polli:h-5 polli:w-5",
|
|
4409
|
-
travel: "polli:translate-x-6",
|
|
4410
|
-
icon: "polli:h-3.5 polli:w-3.5",
|
|
4411
|
-
ghostOff: "polli:right-2",
|
|
4412
|
-
ghostOn: "polli:left-2"
|
|
4413
|
-
},
|
|
4414
|
-
md: {
|
|
4415
|
-
track: "polli:h-9 polli:w-16",
|
|
4416
|
-
thumb: "polli:h-7 polli:w-7",
|
|
4417
|
-
travel: "polli:translate-x-7",
|
|
4418
|
-
icon: "polli:h-4 polli:w-4",
|
|
4419
|
-
ghostOff: "polli:right-[9px]",
|
|
4420
|
-
ghostOn: "polli:left-[9px]"
|
|
4421
|
-
},
|
|
4422
|
-
lg: {
|
|
4423
|
-
track: "polli:h-12 polli:w-[88px]",
|
|
4424
|
-
thumb: "polli:h-10 polli:w-10",
|
|
4425
|
-
travel: "polli:translate-x-10",
|
|
4426
|
-
icon: "polli:h-5 polli:w-5",
|
|
4427
|
-
ghostOff: "polli:right-[13px]",
|
|
4428
|
-
ghostOn: "polli:left-[13px]"
|
|
4429
|
-
}
|
|
4430
|
-
};
|
|
4431
|
-
var trackClasses = {
|
|
4432
|
-
off: "polli:border-theme-text-strong/15 polli:bg-theme-bg-subtle polli:hover:border-theme-text-strong/30",
|
|
4433
|
-
on: "polli:border-tier-soft polli:bg-tier-soft",
|
|
4434
|
-
invalid: "polli:border-intent-danger-text polli:bg-intent-danger-bg-light",
|
|
4435
|
-
choice: "polli:border-theme-text-strong/10 polli:bg-surface-opaque"
|
|
4436
|
-
};
|
|
4437
|
-
var thumbClasses = {
|
|
4438
|
-
off: "polli:bg-theme-text-muted/60 polli:text-app-bg",
|
|
4439
|
-
on: "polli:bg-intent-success-text-on-bright",
|
|
4440
|
-
invalid: "polli:bg-intent-danger-text polli:text-app-bg",
|
|
4441
|
-
choice: "polli:bg-app-bg polli:text-theme-text-soft"
|
|
4442
|
-
};
|
|
4443
|
-
var Switch = ({
|
|
4444
|
-
checked,
|
|
4445
|
-
onChange,
|
|
4446
|
-
status,
|
|
4447
|
-
ariaLabel,
|
|
4448
|
-
disabled = false,
|
|
4449
|
-
size = "md",
|
|
4450
|
-
icons,
|
|
4451
|
-
className
|
|
4452
|
-
}) => {
|
|
4453
|
-
const geometry = sizes[size];
|
|
4454
|
-
const look = icons ? "choice" : status ?? (checked ? "on" : "off");
|
|
4455
|
-
return /* @__PURE__ */ jsxs35(
|
|
4456
|
-
"button",
|
|
4457
|
-
{
|
|
4458
|
-
type: "button",
|
|
4459
|
-
role: "switch",
|
|
4460
|
-
"aria-checked": checked,
|
|
4461
|
-
"aria-label": ariaLabel ?? (checked ? "Turn off toggle" : "Turn on toggle"),
|
|
4462
|
-
onClick: () => onChange(!checked),
|
|
4463
|
-
disabled,
|
|
4464
|
-
className: cn(
|
|
4465
|
-
"polli-control polli:relative polli:inline-block polli:shrink-0 polli:cursor-pointer polli:rounded-full polli:border polli:transition-colors polli:disabled:cursor-not-allowed polli:disabled:opacity-60",
|
|
4466
|
-
geometry.track,
|
|
4467
|
-
trackClasses[look],
|
|
4468
|
-
className
|
|
4469
|
-
),
|
|
4470
|
-
children: [
|
|
4471
|
-
icons && /* @__PURE__ */ jsx49(
|
|
4472
|
-
"span",
|
|
4473
|
-
{
|
|
4474
|
-
"aria-hidden": "true",
|
|
4475
|
-
className: cn(
|
|
4476
|
-
"polli:absolute polli:top-1/2 polli:flex polli:-translate-y-1/2 polli:text-theme-text-strong/40 polli:[&>svg]:h-full polli:[&>svg]:w-full",
|
|
4477
|
-
geometry.icon,
|
|
4478
|
-
checked ? geometry.ghostOn : geometry.ghostOff
|
|
4479
|
-
),
|
|
4480
|
-
children: checked ? icons.off : icons.on
|
|
4481
|
-
}
|
|
4482
|
-
),
|
|
4483
|
-
/* @__PURE__ */ jsx49(
|
|
4484
|
-
"span",
|
|
4485
|
-
{
|
|
4486
|
-
className: cn(
|
|
4487
|
-
"polli:absolute polli:top-1/2 polli:left-[3px] polli:flex polli:-translate-y-1/2 polli:items-center polli:justify-center polli:rounded-full polli:transition-[transform,background-color]",
|
|
4488
|
-
geometry.thumb,
|
|
4489
|
-
thumbClasses[look],
|
|
4490
|
-
checked ? geometry.travel : "polli:translate-x-0"
|
|
4491
|
-
),
|
|
4492
|
-
children: icons && /* @__PURE__ */ jsx49(
|
|
4493
|
-
"span",
|
|
4494
|
-
{
|
|
4495
|
-
"aria-hidden": "true",
|
|
4496
|
-
className: cn(
|
|
4497
|
-
"polli:flex polli:[&>svg]:h-full polli:[&>svg]:w-full",
|
|
4498
|
-
geometry.icon
|
|
4499
|
-
),
|
|
4500
|
-
children: checked ? icons.on : icons.off
|
|
4501
|
-
}
|
|
4502
|
-
)
|
|
4503
|
-
}
|
|
4504
|
-
)
|
|
4505
|
-
]
|
|
4506
|
-
}
|
|
4507
|
-
);
|
|
4508
|
-
};
|
|
4509
|
-
|
|
4510
|
-
// src/primitives/ColorModeToggle.tsx
|
|
4511
|
-
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
4512
|
-
var STORAGE_KEY = "polli-color-mode";
|
|
4513
|
-
function readStored() {
|
|
4514
|
-
try {
|
|
4515
|
-
const value = localStorage.getItem(STORAGE_KEY);
|
|
4516
|
-
return value === "light" || value === "dark" ? value : null;
|
|
4517
|
-
} catch {
|
|
4518
|
-
return null;
|
|
4519
|
-
}
|
|
4520
|
-
}
|
|
4521
|
-
function systemMode() {
|
|
4522
|
-
return typeof window !== "undefined" && window.matchMedia?.("(prefers-color-scheme: dark)").matches === true ? "dark" : "light";
|
|
4523
|
-
}
|
|
4524
|
-
var current = readStored() ?? systemMode();
|
|
4525
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
4526
|
-
var systemQuery;
|
|
4527
|
-
function apply() {
|
|
4528
|
-
if (typeof document === "undefined") return;
|
|
4529
|
-
document.documentElement.classList.toggle("dark", current === "dark");
|
|
4530
|
-
syncThemeColor();
|
|
4531
|
-
}
|
|
4532
|
-
function syncThemeColor() {
|
|
4533
|
-
if (typeof document === "undefined") return;
|
|
4534
|
-
const appBg = getComputedStyle(document.documentElement).getPropertyValue("--polli-color-app-bg").trim();
|
|
4535
|
-
if (!appBg) return;
|
|
4536
|
-
let meta = document.querySelector('meta[name="theme-color"]');
|
|
4537
|
-
if (!meta) {
|
|
4538
|
-
meta = document.createElement("meta");
|
|
4539
|
-
meta.setAttribute("name", "theme-color");
|
|
4540
|
-
document.head.appendChild(meta);
|
|
4541
|
-
}
|
|
4542
|
-
meta.setAttribute("content", appBg);
|
|
4543
|
-
}
|
|
4544
|
-
function emit() {
|
|
4545
|
-
for (const listener of listeners) listener();
|
|
4546
|
-
}
|
|
4547
|
-
function handleStorage(event) {
|
|
4548
|
-
if (event.key !== STORAGE_KEY) return;
|
|
4549
|
-
const next = readStored() ?? systemMode();
|
|
4550
|
-
if (next === current) return;
|
|
4551
|
-
current = next;
|
|
4552
|
-
apply();
|
|
4553
|
-
emit();
|
|
4554
|
-
}
|
|
4555
|
-
function handleSystemChange() {
|
|
4556
|
-
if (readStored() !== null) return;
|
|
4557
|
-
const next = systemMode();
|
|
4558
|
-
if (next === current) return;
|
|
4559
|
-
current = next;
|
|
4560
|
-
apply();
|
|
4561
|
-
emit();
|
|
4562
|
-
}
|
|
4563
|
-
function subscribe(listener) {
|
|
4564
|
-
if (listeners.size === 0 && typeof window !== "undefined") {
|
|
4565
|
-
apply();
|
|
4566
|
-
window.addEventListener("storage", handleStorage);
|
|
4567
|
-
systemQuery = window.matchMedia?.("(prefers-color-scheme: dark)");
|
|
4568
|
-
systemQuery?.addEventListener("change", handleSystemChange);
|
|
4569
|
-
}
|
|
4570
|
-
listeners.add(listener);
|
|
4571
|
-
return () => {
|
|
4572
|
-
listeners.delete(listener);
|
|
4573
|
-
if (listeners.size === 0 && typeof window !== "undefined") {
|
|
4574
|
-
window.removeEventListener("storage", handleStorage);
|
|
4575
|
-
systemQuery?.removeEventListener("change", handleSystemChange);
|
|
4576
|
-
systemQuery = void 0;
|
|
4577
|
-
}
|
|
4578
|
-
};
|
|
4579
|
-
}
|
|
4580
|
-
function getSnapshot() {
|
|
4581
|
-
return current;
|
|
4582
|
-
}
|
|
4583
|
-
function getServerSnapshot() {
|
|
4584
|
-
return "light";
|
|
4585
|
-
}
|
|
4586
|
-
function setColorMode(mode) {
|
|
4587
|
-
if (mode === current) return;
|
|
4588
|
-
current = mode;
|
|
4589
|
-
apply();
|
|
4590
|
-
try {
|
|
4591
|
-
if (mode === systemMode()) localStorage.removeItem(STORAGE_KEY);
|
|
4592
|
-
else localStorage.setItem(STORAGE_KEY, mode);
|
|
4593
|
-
} catch {
|
|
4594
|
-
}
|
|
4595
|
-
emit();
|
|
4596
|
-
}
|
|
4597
|
-
function useColorMode() {
|
|
4598
|
-
const mode = useSyncExternalStore(
|
|
4599
|
-
subscribe,
|
|
4600
|
-
getSnapshot,
|
|
4601
|
-
getServerSnapshot
|
|
4602
|
-
);
|
|
4603
|
-
return {
|
|
4604
|
-
mode,
|
|
4605
|
-
isDark: mode === "dark",
|
|
4606
|
-
toggle: () => setColorMode(mode === "dark" ? "light" : "dark")
|
|
4607
|
-
};
|
|
4608
|
-
}
|
|
4609
|
-
var ColorModeToggle = () => {
|
|
4610
|
-
const { isDark, toggle } = useColorMode();
|
|
4611
|
-
return /* @__PURE__ */ jsx50(
|
|
4612
|
-
Switch,
|
|
4613
|
-
{
|
|
4614
|
-
checked: isDark,
|
|
4615
|
-
onChange: toggle,
|
|
4616
|
-
ariaLabel: "Toggle dark mode",
|
|
4617
|
-
size: "sm",
|
|
4618
|
-
icons: { off: /* @__PURE__ */ jsx50(SunIcon, {}), on: /* @__PURE__ */ jsx50(MoonIcon, {}) }
|
|
4619
|
-
}
|
|
4620
|
-
);
|
|
4621
|
-
};
|
|
4622
|
-
|
|
4623
2608
|
// src/primitives/Drawer.tsx
|
|
4624
|
-
import { Dialog as
|
|
4625
|
-
import { Portal
|
|
4626
|
-
import { useRef as
|
|
4627
|
-
import { jsx as
|
|
2609
|
+
import { Dialog as ArkDialog } from "@ark-ui/react/dialog";
|
|
2610
|
+
import { Portal } from "@ark-ui/react/portal";
|
|
2611
|
+
import { useRef as useRef4 } from "react";
|
|
2612
|
+
import { jsx as jsx32, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4628
2613
|
var Drawer = ({
|
|
4629
2614
|
open,
|
|
4630
2615
|
onOpenChange,
|
|
@@ -4633,17 +2618,17 @@ var Drawer = ({
|
|
|
4633
2618
|
side = "left",
|
|
4634
2619
|
contentClassName
|
|
4635
2620
|
}) => {
|
|
4636
|
-
const contentRef =
|
|
4637
|
-
return /* @__PURE__ */
|
|
4638
|
-
|
|
2621
|
+
const contentRef = useRef4(null);
|
|
2622
|
+
return /* @__PURE__ */ jsx32(
|
|
2623
|
+
ArkDialog.Root,
|
|
4639
2624
|
{
|
|
4640
2625
|
open,
|
|
4641
2626
|
initialFocusEl: () => contentRef.current,
|
|
4642
2627
|
onOpenChange: (details) => onOpenChange(details.open),
|
|
4643
|
-
children: /* @__PURE__ */
|
|
4644
|
-
/* @__PURE__ */
|
|
4645
|
-
/* @__PURE__ */
|
|
4646
|
-
|
|
2628
|
+
children: /* @__PURE__ */ jsxs25(Portal, { children: [
|
|
2629
|
+
/* @__PURE__ */ jsx32(ArkDialog.Backdrop, { className: "polli:fixed polli:inset-0 polli:z-[100] polli:bg-[#000]/40 polli:backdrop-blur-sm" }),
|
|
2630
|
+
/* @__PURE__ */ jsx32(ArkDialog.Positioner, { className: "polli:pointer-events-none polli:fixed polli:inset-0 polli:z-[110] polli:h-dvh polli:overflow-hidden", children: /* @__PURE__ */ jsx32(
|
|
2631
|
+
ArkDialog.Content,
|
|
4647
2632
|
{
|
|
4648
2633
|
ref: contentRef,
|
|
4649
2634
|
"aria-label": ariaLabel,
|
|
@@ -4660,31 +2645,8 @@ var Drawer = ({
|
|
|
4660
2645
|
);
|
|
4661
2646
|
};
|
|
4662
2647
|
|
|
4663
|
-
// src/primitives/DropdownItem.tsx
|
|
4664
|
-
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4665
|
-
function DropdownItem({
|
|
4666
|
-
as,
|
|
4667
|
-
className,
|
|
4668
|
-
children,
|
|
4669
|
-
...rest
|
|
4670
|
-
}) {
|
|
4671
|
-
const Component = as || "button";
|
|
4672
|
-
return /* @__PURE__ */ jsx52(
|
|
4673
|
-
Component,
|
|
4674
|
-
{
|
|
4675
|
-
...Component === "button" ? { type: "button" } : void 0,
|
|
4676
|
-
...rest,
|
|
4677
|
-
className: cn(
|
|
4678
|
-
"polli-control polli:flex polli:w-full polli:cursor-pointer polli:items-center polli:gap-2 polli:rounded-lg polli:bg-transparent polli:px-3 polli:py-2 polli:text-left polli:text-sm polli:font-medium polli:text-theme-text-base polli:no-underline polli:transition-colors polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover polli:focus-visible:bg-theme-bg-hover",
|
|
4679
|
-
className
|
|
4680
|
-
),
|
|
4681
|
-
children
|
|
4682
|
-
}
|
|
4683
|
-
);
|
|
4684
|
-
}
|
|
4685
|
-
|
|
4686
2648
|
// src/primitives/IconTile.tsx
|
|
4687
|
-
import { jsx as
|
|
2649
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
4688
2650
|
var toneClasses = {
|
|
4689
2651
|
neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-strong",
|
|
4690
2652
|
// The wallet's Paid and Quest Pollen colours, for rows about money.
|
|
@@ -4697,7 +2659,7 @@ function IconTile({
|
|
|
4697
2659
|
tone = "neutral",
|
|
4698
2660
|
color
|
|
4699
2661
|
}) {
|
|
4700
|
-
return /* @__PURE__ */
|
|
2662
|
+
return /* @__PURE__ */ jsx33(
|
|
4701
2663
|
"span",
|
|
4702
2664
|
{
|
|
4703
2665
|
className: cn(
|
|
@@ -4708,15 +2670,15 @@ function IconTile({
|
|
|
4708
2670
|
color,
|
|
4709
2671
|
backgroundColor: `color-mix(in oklab, ${color} 14%, transparent)`
|
|
4710
2672
|
} : void 0,
|
|
4711
|
-
children: /* @__PURE__ */
|
|
2673
|
+
children: /* @__PURE__ */ jsx33(Icon, { "aria-hidden": "true", className: "polli:size-6" })
|
|
4712
2674
|
}
|
|
4713
2675
|
);
|
|
4714
2676
|
}
|
|
4715
2677
|
|
|
4716
2678
|
// src/primitives/LiveDot.tsx
|
|
4717
|
-
import { jsx as
|
|
2679
|
+
import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4718
2680
|
function LiveDot({ className }) {
|
|
4719
|
-
return /* @__PURE__ */
|
|
2681
|
+
return /* @__PURE__ */ jsxs26(
|
|
4720
2682
|
"span",
|
|
4721
2683
|
{
|
|
4722
2684
|
"aria-hidden": "true",
|
|
@@ -4725,30 +2687,15 @@ function LiveDot({ className }) {
|
|
|
4725
2687
|
className
|
|
4726
2688
|
),
|
|
4727
2689
|
children: [
|
|
4728
|
-
/* @__PURE__ */
|
|
4729
|
-
/* @__PURE__ */
|
|
2690
|
+
/* @__PURE__ */ jsx34("span", { className: "polli:absolute polli:inset-0 polli:animate-ping polli:rounded-full polli:bg-intent-success-bg-bright polli:opacity-60 polli:[animation-duration:2.4s] polli:motion-reduce:hidden" }),
|
|
2691
|
+
/* @__PURE__ */ jsx34("span", { className: "polli:relative polli:size-2 polli:rounded-full polli:bg-intent-success-bg-bright" })
|
|
4730
2692
|
]
|
|
4731
2693
|
}
|
|
4732
2694
|
);
|
|
4733
2695
|
}
|
|
4734
2696
|
|
|
4735
|
-
// src/primitives/LoadingStatus.tsx
|
|
4736
|
-
import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4737
|
-
function LoadingStatus({ children }) {
|
|
4738
|
-
return /* @__PURE__ */ jsxs38("output", { className: "polli:flex polli:items-center polli:gap-2 polli:font-body polli:text-sm polli:text-theme-text-muted", children: [
|
|
4739
|
-
/* @__PURE__ */ jsx55(
|
|
4740
|
-
"span",
|
|
4741
|
-
{
|
|
4742
|
-
"aria-hidden": "true",
|
|
4743
|
-
className: "polli:h-4 polli:w-4 polli:shrink-0 polli:animate-spin polli:motion-reduce:animate-none polli:rounded-full polli:border-2 polli:border-current polli:border-r-transparent"
|
|
4744
|
-
}
|
|
4745
|
-
),
|
|
4746
|
-
children
|
|
4747
|
-
] });
|
|
4748
|
-
}
|
|
4749
|
-
|
|
4750
2697
|
// src/primitives/Skeleton.tsx
|
|
4751
|
-
import { jsx as
|
|
2698
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
4752
2699
|
var shapeClasses = {
|
|
4753
2700
|
// Stands in for a card or tile.
|
|
4754
2701
|
card: "polli:rounded-card",
|
|
@@ -4758,7 +2705,7 @@ var shapeClasses = {
|
|
|
4758
2705
|
media: ""
|
|
4759
2706
|
};
|
|
4760
2707
|
function Skeleton({ shape = "card", className }) {
|
|
4761
|
-
return /* @__PURE__ */
|
|
2708
|
+
return /* @__PURE__ */ jsx35(
|
|
4762
2709
|
"span",
|
|
4763
2710
|
{
|
|
4764
2711
|
"aria-hidden": "true",
|
|
@@ -4772,8 +2719,8 @@ function Skeleton({ shape = "card", className }) {
|
|
|
4772
2719
|
}
|
|
4773
2720
|
|
|
4774
2721
|
// src/primitives/Slider.tsx
|
|
4775
|
-
import { forwardRef as
|
|
4776
|
-
import { jsx as
|
|
2722
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
2723
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
4777
2724
|
var toNumber = (value) => {
|
|
4778
2725
|
if (typeof value === "number") return value;
|
|
4779
2726
|
if (typeof value !== "string" || value.trim() === "") return void 0;
|
|
@@ -4800,7 +2747,7 @@ var getProgressPercent = ({
|
|
|
4800
2747
|
(numericValue - numericMin) / (numericMax - numericMin) * 100
|
|
4801
2748
|
);
|
|
4802
2749
|
};
|
|
4803
|
-
var Slider =
|
|
2750
|
+
var Slider = forwardRef6(
|
|
4804
2751
|
({ className, defaultValue, max, min, progress, style, value, ...props }, ref) => {
|
|
4805
2752
|
const progressPercent = getProgressPercent({
|
|
4806
2753
|
progress,
|
|
@@ -4813,7 +2760,7 @@ var Slider = forwardRef7(
|
|
|
4813
2760
|
...style,
|
|
4814
2761
|
...progressPercent === void 0 ? null : { "--polli-slider-progress": `${progressPercent}%` }
|
|
4815
2762
|
};
|
|
4816
|
-
return /* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ jsx36(
|
|
4817
2764
|
"input",
|
|
4818
2765
|
{
|
|
4819
2766
|
ref,
|
|
@@ -4831,14 +2778,14 @@ var Slider = forwardRef7(
|
|
|
4831
2778
|
);
|
|
4832
2779
|
|
|
4833
2780
|
// src/primitives/StableLabel.tsx
|
|
4834
|
-
import { jsxs as
|
|
2781
|
+
import { jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4835
2782
|
function StableLabel({
|
|
4836
2783
|
text,
|
|
4837
2784
|
options,
|
|
4838
2785
|
align = "center",
|
|
4839
2786
|
prefix
|
|
4840
2787
|
}) {
|
|
4841
|
-
return /* @__PURE__ */
|
|
2788
|
+
return /* @__PURE__ */ jsxs27(
|
|
4842
2789
|
"span",
|
|
4843
2790
|
{
|
|
4844
2791
|
className: cn(
|
|
@@ -4846,7 +2793,7 @@ function StableLabel({
|
|
|
4846
2793
|
align === "center" ? "polli:justify-items-center" : "polli:justify-items-start polli:sm:justify-items-end"
|
|
4847
2794
|
),
|
|
4848
2795
|
children: [
|
|
4849
|
-
options.map((option) => /* @__PURE__ */
|
|
2796
|
+
options.map((option) => /* @__PURE__ */ jsxs27(
|
|
4850
2797
|
"span",
|
|
4851
2798
|
{
|
|
4852
2799
|
"aria-hidden": "true",
|
|
@@ -4858,7 +2805,7 @@ function StableLabel({
|
|
|
4858
2805
|
},
|
|
4859
2806
|
option
|
|
4860
2807
|
)),
|
|
4861
|
-
/* @__PURE__ */
|
|
2808
|
+
/* @__PURE__ */ jsxs27("span", { className: "polli:col-start-1 polli:row-start-1 polli:inline-flex polli:items-center polli:gap-1", children: [
|
|
4862
2809
|
prefix,
|
|
4863
2810
|
text
|
|
4864
2811
|
] })
|
|
@@ -4868,7 +2815,7 @@ function StableLabel({
|
|
|
4868
2815
|
}
|
|
4869
2816
|
|
|
4870
2817
|
// src/primitives/Table.tsx
|
|
4871
|
-
import { Fragment as
|
|
2818
|
+
import { Fragment as Fragment9, jsx as jsx37, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4872
2819
|
var alignClasses = {
|
|
4873
2820
|
left: "polli:text-left",
|
|
4874
2821
|
center: "polli:text-center",
|
|
@@ -4879,7 +2826,7 @@ var rowIntentClasses = {
|
|
|
4879
2826
|
warning: "polli:bg-intent-warning-bg-light/65",
|
|
4880
2827
|
danger: "polli:bg-intent-danger-bg-light/65"
|
|
4881
2828
|
};
|
|
4882
|
-
var Table = ({ className, ...rest }) => /* @__PURE__ */
|
|
2829
|
+
var Table = ({ className, ...rest }) => /* @__PURE__ */ jsx37(
|
|
4883
2830
|
"table",
|
|
4884
2831
|
{
|
|
4885
2832
|
...rest,
|
|
@@ -4889,7 +2836,7 @@ var Table = ({ className, ...rest }) => /* @__PURE__ */ jsx58(
|
|
|
4889
2836
|
)
|
|
4890
2837
|
}
|
|
4891
2838
|
);
|
|
4892
|
-
var TableHead = ({ className, ...rest }) => /* @__PURE__ */
|
|
2839
|
+
var TableHead = ({ className, ...rest }) => /* @__PURE__ */ jsx37(
|
|
4893
2840
|
"thead",
|
|
4894
2841
|
{
|
|
4895
2842
|
...rest,
|
|
@@ -4903,7 +2850,7 @@ var TableBody = ({
|
|
|
4903
2850
|
className,
|
|
4904
2851
|
divider = "themed",
|
|
4905
2852
|
...rest
|
|
4906
|
-
}) => /* @__PURE__ */
|
|
2853
|
+
}) => /* @__PURE__ */ jsx37(
|
|
4907
2854
|
"tbody",
|
|
4908
2855
|
{
|
|
4909
2856
|
...rest,
|
|
@@ -4918,7 +2865,7 @@ var TableRow = ({
|
|
|
4918
2865
|
intent = "default",
|
|
4919
2866
|
className,
|
|
4920
2867
|
...rest
|
|
4921
|
-
}) => /* @__PURE__ */
|
|
2868
|
+
}) => /* @__PURE__ */ jsx37(
|
|
4922
2869
|
"tr",
|
|
4923
2870
|
{
|
|
4924
2871
|
...rest,
|
|
@@ -4938,9 +2885,9 @@ var TableHeaderCell = ({
|
|
|
4938
2885
|
children,
|
|
4939
2886
|
...rest
|
|
4940
2887
|
}) => {
|
|
4941
|
-
const content = /* @__PURE__ */
|
|
4942
|
-
/* @__PURE__ */
|
|
4943
|
-
onSort && /* @__PURE__ */
|
|
2888
|
+
const content = /* @__PURE__ */ jsxs28(Fragment9, { children: [
|
|
2889
|
+
/* @__PURE__ */ jsx37("span", { children }),
|
|
2890
|
+
onSort && /* @__PURE__ */ jsx37(
|
|
4944
2891
|
"span",
|
|
4945
2892
|
{
|
|
4946
2893
|
"aria-hidden": "true",
|
|
@@ -4957,15 +2904,15 @@ var TableHeaderCell = ({
|
|
|
4957
2904
|
className
|
|
4958
2905
|
);
|
|
4959
2906
|
if (!onSort) {
|
|
4960
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ jsx37("th", { ...rest, className: classes, children: content });
|
|
4961
2908
|
}
|
|
4962
|
-
return /* @__PURE__ */
|
|
2909
|
+
return /* @__PURE__ */ jsx37(
|
|
4963
2910
|
"th",
|
|
4964
2911
|
{
|
|
4965
2912
|
...rest,
|
|
4966
2913
|
"aria-sort": active && sortDirection ? sortDirection === "asc" ? "ascending" : "descending" : "none",
|
|
4967
2914
|
className: classes,
|
|
4968
|
-
children: /* @__PURE__ */
|
|
2915
|
+
children: /* @__PURE__ */ jsx37(
|
|
4969
2916
|
"button",
|
|
4970
2917
|
{
|
|
4971
2918
|
type: "button",
|
|
@@ -4987,7 +2934,7 @@ var TableCell = ({
|
|
|
4987
2934
|
muted = false,
|
|
4988
2935
|
className,
|
|
4989
2936
|
...rest
|
|
4990
|
-
}) => /* @__PURE__ */
|
|
2937
|
+
}) => /* @__PURE__ */ jsx37(
|
|
4991
2938
|
"td",
|
|
4992
2939
|
{
|
|
4993
2940
|
...rest,
|
|
@@ -5002,14 +2949,14 @@ var TableCell = ({
|
|
|
5002
2949
|
);
|
|
5003
2950
|
|
|
5004
2951
|
// src/primitives/TableDisclosureButton.tsx
|
|
5005
|
-
import { jsx as
|
|
2952
|
+
import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5006
2953
|
var TableDisclosureButton = ({
|
|
5007
2954
|
children,
|
|
5008
2955
|
disabled = false,
|
|
5009
2956
|
expanded,
|
|
5010
2957
|
onClick,
|
|
5011
2958
|
className
|
|
5012
|
-
}) => /* @__PURE__ */
|
|
2959
|
+
}) => /* @__PURE__ */ jsxs29(
|
|
5013
2960
|
"button",
|
|
5014
2961
|
{
|
|
5015
2962
|
type: "button",
|
|
@@ -5022,7 +2969,7 @@ var TableDisclosureButton = ({
|
|
|
5022
2969
|
className
|
|
5023
2970
|
),
|
|
5024
2971
|
children: [
|
|
5025
|
-
/* @__PURE__ */
|
|
2972
|
+
/* @__PURE__ */ jsx38(
|
|
5026
2973
|
ChevronIcon,
|
|
5027
2974
|
{
|
|
5028
2975
|
expanded,
|