@pollinations/ui 0.1.0-alpha.23 → 0.1.0-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-user-menu/sdk.d.ts +1 -1
- package/dist/app-user-menu/sdk.js +8 -5
- package/dist/app-user-menu/sdk.js.map +1 -1
- package/dist/auth/index.js +4 -4
- package/dist/{chunk-SJK5B7LK.js → chunk-2IIX44MN.js} +2 -2
- package/dist/{chunk-6JHDHH4B.js → chunk-7NTX3FPZ.js} +13 -2
- package/dist/{chunk-6JHDHH4B.js.map → chunk-7NTX3FPZ.js.map} +1 -1
- package/dist/{chunk-MLSAAT6D.js → chunk-FRHLA7LM.js} +2 -2
- package/dist/{chunk-5SPNBGNW.js → chunk-LKOYOXBG.js} +2 -2
- package/dist/{chunk-COG4IB62.js → chunk-LRXUPEQM.js} +2 -2
- package/dist/{chunk-E4CIH2Z7.js → chunk-PBNBZKEZ.js} +43 -35
- package/dist/chunk-PBNBZKEZ.js.map +1 -0
- package/dist/connect.js +7 -7
- package/dist/connect.js.map +1 -1
- package/dist/gen/index.js +1 -1
- package/dist/{index-cN1wvU_m.d.ts → index-efnABLqH.d.ts} +3 -1
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.d.ts +41 -6
- package/dist/index.js +233 -116
- package/dist/index.js.map +1 -1
- package/dist/markdown.js +3 -3
- package/dist/styles.css +1 -1
- package/dist/wallet/index.d.ts +4 -0
- package/dist/wallet/index.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-E4CIH2Z7.js.map +0 -1
- /package/dist/{chunk-SJK5B7LK.js.map → chunk-2IIX44MN.js.map} +0 -0
- /package/dist/{chunk-MLSAAT6D.js.map → chunk-FRHLA7LM.js.map} +0 -0
- /package/dist/{chunk-5SPNBGNW.js.map → chunk-LKOYOXBG.js.map} +0 -0
- /package/dist/{chunk-COG4IB62.js.map → chunk-LRXUPEQM.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
Switch,
|
|
13
13
|
setColorMode,
|
|
14
14
|
useColorMode
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FRHLA7LM.js";
|
|
16
16
|
import {
|
|
17
17
|
AccountIdentity,
|
|
18
18
|
AccountIdentityLink,
|
|
19
19
|
AccountMenu,
|
|
20
20
|
BrandMark,
|
|
21
21
|
DropdownItem
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LKOYOXBG.js";
|
|
23
23
|
import {
|
|
24
24
|
TabButton
|
|
25
25
|
} from "./chunk-ZLD4VLUG.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
CodeBlock,
|
|
38
38
|
CopyButton,
|
|
39
39
|
Tooltip
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2IIX44MN.js";
|
|
41
41
|
import {
|
|
42
42
|
Heading,
|
|
43
43
|
Text
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
InlineLink,
|
|
50
50
|
isExternalHref
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LRXUPEQM.js";
|
|
52
52
|
import {
|
|
53
53
|
AccountIcon,
|
|
54
54
|
AppIcon,
|
|
@@ -101,12 +101,14 @@ import {
|
|
|
101
101
|
PlayIcon,
|
|
102
102
|
PlusIcon,
|
|
103
103
|
PowerIcon,
|
|
104
|
+
PulseIcon,
|
|
104
105
|
ReasoningIcon,
|
|
105
106
|
ReceiptIcon,
|
|
106
107
|
RefreshIcon,
|
|
107
108
|
RobotIcon,
|
|
108
109
|
RocketIcon,
|
|
109
110
|
SearchIcon,
|
|
111
|
+
ShieldCheckIcon,
|
|
110
112
|
SignOutIcon,
|
|
111
113
|
SparkleIcon,
|
|
112
114
|
SparklesIcon,
|
|
@@ -126,7 +128,7 @@ import {
|
|
|
126
128
|
WarningIcon,
|
|
127
129
|
XIcon,
|
|
128
130
|
XSocialIcon
|
|
129
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-7NTX3FPZ.js";
|
|
130
132
|
import {
|
|
131
133
|
cn
|
|
132
134
|
} from "./chunk-LKUZU37X.js";
|
|
@@ -1862,8 +1864,87 @@ function NavItem({
|
|
|
1862
1864
|
);
|
|
1863
1865
|
}
|
|
1864
1866
|
|
|
1867
|
+
// src/compositions/OutageNotice.tsx
|
|
1868
|
+
import {
|
|
1869
|
+
useEffect as useEffect4,
|
|
1870
|
+
useLayoutEffect,
|
|
1871
|
+
useRef as useRef3,
|
|
1872
|
+
useSyncExternalStore
|
|
1873
|
+
} from "react";
|
|
1874
|
+
import { Fragment as Fragment6, jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1875
|
+
var OUTAGE_MESSAGE = "Pollinations is having a temporary outage. Some services are down for now. Your account, keys and pollen are safe, and nothing is lost.";
|
|
1876
|
+
function subscribeOnline(listener) {
|
|
1877
|
+
window.addEventListener("online", listener);
|
|
1878
|
+
window.addEventListener("offline", listener);
|
|
1879
|
+
return () => {
|
|
1880
|
+
window.removeEventListener("online", listener);
|
|
1881
|
+
window.removeEventListener("offline", listener);
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
function useOnline() {
|
|
1885
|
+
return useSyncExternalStore(
|
|
1886
|
+
subscribeOnline,
|
|
1887
|
+
() => navigator.onLine,
|
|
1888
|
+
() => true
|
|
1889
|
+
);
|
|
1890
|
+
}
|
|
1891
|
+
var notices = /* @__PURE__ */ new Set();
|
|
1892
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
1893
|
+
var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect4 : useLayoutEffect;
|
|
1894
|
+
function subscribeNotices(listener) {
|
|
1895
|
+
listeners.add(listener);
|
|
1896
|
+
return () => listeners.delete(listener);
|
|
1897
|
+
}
|
|
1898
|
+
function topNotice() {
|
|
1899
|
+
let top;
|
|
1900
|
+
for (const notice of notices) {
|
|
1901
|
+
if (!top || top.compareDocumentPosition(notice) & Node.DOCUMENT_POSITION_PRECEDING) {
|
|
1902
|
+
top = notice;
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
return top;
|
|
1906
|
+
}
|
|
1907
|
+
var OutageNotice = ({
|
|
1908
|
+
retrying = false,
|
|
1909
|
+
statusUrl,
|
|
1910
|
+
className
|
|
1911
|
+
}) => {
|
|
1912
|
+
const online = useOnline();
|
|
1913
|
+
const ref = useRef3(null);
|
|
1914
|
+
useIsomorphicLayoutEffect(() => {
|
|
1915
|
+
const notice = ref.current;
|
|
1916
|
+
if (!notice) return;
|
|
1917
|
+
notices.add(notice);
|
|
1918
|
+
for (const listener of listeners) listener();
|
|
1919
|
+
return () => {
|
|
1920
|
+
notices.delete(notice);
|
|
1921
|
+
for (const listener of listeners) listener();
|
|
1922
|
+
};
|
|
1923
|
+
}, []);
|
|
1924
|
+
const isTop = useSyncExternalStore(
|
|
1925
|
+
subscribeNotices,
|
|
1926
|
+
() => !ref.current || topNotice() === ref.current,
|
|
1927
|
+
() => true
|
|
1928
|
+
);
|
|
1929
|
+
let message;
|
|
1930
|
+
if (!isTop) {
|
|
1931
|
+
message = online ? "Unavailable during the outage." : "Unavailable while you\u2019re offline.";
|
|
1932
|
+
} else if (!online) {
|
|
1933
|
+
message = `You\u2019re offline.${retrying ? " This page retries when your connection is back." : ""}`;
|
|
1934
|
+
} else {
|
|
1935
|
+
message = `${OUTAGE_MESSAGE}${retrying ? " Retrying automatically." : ""}`;
|
|
1936
|
+
}
|
|
1937
|
+
return /* @__PURE__ */ jsx26("div", { ref, className, children: /* @__PURE__ */ jsxs20(Alert, { intent: "advisory", children: [
|
|
1938
|
+
message,
|
|
1939
|
+
isTop && online && statusUrl && /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
1940
|
+
" ",
|
|
1941
|
+
/* @__PURE__ */ jsx26(InlineLink, { href: statusUrl, children: "Status page" })
|
|
1942
|
+
] })
|
|
1943
|
+
] }) });
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1865
1946
|
// src/compositions/PeriodPicker.tsx
|
|
1866
|
-
import { useEffect as
|
|
1947
|
+
import { useEffect as useEffect5, useMemo as useMemo2, useRef as useRef4, useState as useState3 } from "react";
|
|
1867
1948
|
|
|
1868
1949
|
// src/lib/period.ts
|
|
1869
1950
|
var MS_PER_DAY = 864e5;
|
|
@@ -1971,7 +2052,7 @@ function isPeriodSelectable(selection, minDate = /* @__PURE__ */ new Date(0), ma
|
|
|
1971
2052
|
}
|
|
1972
2053
|
|
|
1973
2054
|
// src/compositions/PeriodPicker.tsx
|
|
1974
|
-
import { Fragment as
|
|
2055
|
+
import { Fragment as Fragment7, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1975
2056
|
var WEEKDAY_LABELS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
1976
2057
|
var MONTH_LABELS = [
|
|
1977
2058
|
"Jan",
|
|
@@ -2064,9 +2145,9 @@ var PeriodPicker = ({
|
|
|
2064
2145
|
const [open, setOpen] = useState3(false);
|
|
2065
2146
|
const [viewDate, setViewDate] = useState3(() => periodDate(value));
|
|
2066
2147
|
const [anchorDate, setAnchorDate] = useState3(() => periodDate(value));
|
|
2067
|
-
const emittedSelectionRef =
|
|
2148
|
+
const emittedSelectionRef = useRef4(null);
|
|
2068
2149
|
const { granularity, period } = value;
|
|
2069
|
-
|
|
2150
|
+
useEffect5(() => {
|
|
2070
2151
|
const currentSelectionKey = selectionKey({ granularity, period });
|
|
2071
2152
|
if (emittedSelectionRef.current === currentSelectionKey) {
|
|
2072
2153
|
emittedSelectionRef.current = null;
|
|
@@ -2100,13 +2181,13 @@ var PeriodPicker = ({
|
|
|
2100
2181
|
setOpen(false);
|
|
2101
2182
|
};
|
|
2102
2183
|
const viewLabel = value.granularity === "month" ? String(viewDate.getUTCFullYear()) : formatMonthYear(viewDate, "long");
|
|
2103
|
-
return /* @__PURE__ */
|
|
2184
|
+
return /* @__PURE__ */ jsxs21(
|
|
2104
2185
|
"div",
|
|
2105
2186
|
{
|
|
2106
2187
|
className: trigger ? "polli:contents" : "polli:flex polli:w-full polli:flex-wrap polli:items-center polli:gap-2",
|
|
2107
2188
|
children: [
|
|
2108
|
-
!trigger && /* @__PURE__ */
|
|
2109
|
-
(granularity2) => /* @__PURE__ */
|
|
2189
|
+
!trigger && /* @__PURE__ */ jsx27("div", { className: "polli:flex polli:flex-wrap polli:gap-1.5", children: ["day", "week", "month"].map(
|
|
2190
|
+
(granularity2) => /* @__PURE__ */ jsx27(
|
|
2110
2191
|
TabButton,
|
|
2111
2192
|
{
|
|
2112
2193
|
active: value.granularity === granularity2,
|
|
@@ -2116,13 +2197,13 @@ var PeriodPicker = ({
|
|
|
2116
2197
|
granularity2
|
|
2117
2198
|
)
|
|
2118
2199
|
) }),
|
|
2119
|
-
/* @__PURE__ */
|
|
2200
|
+
/* @__PURE__ */ jsxs21(
|
|
2120
2201
|
Dropdown,
|
|
2121
2202
|
{
|
|
2122
2203
|
open,
|
|
2123
2204
|
onOpenChange: setOpen,
|
|
2124
2205
|
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",
|
|
2125
|
-
trigger: trigger ?? ((isOpen) => /* @__PURE__ */
|
|
2206
|
+
trigger: trigger ?? ((isOpen) => /* @__PURE__ */ jsxs21(
|
|
2126
2207
|
"button",
|
|
2127
2208
|
{
|
|
2128
2209
|
type: "button",
|
|
@@ -2134,15 +2215,15 @@ var PeriodPicker = ({
|
|
|
2134
2215
|
isOpen && "polli:bg-theme-bg-hover polli:text-theme-text-strong"
|
|
2135
2216
|
),
|
|
2136
2217
|
children: [
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
/* @__PURE__ */
|
|
2218
|
+
/* @__PURE__ */ jsx27("span", { className: "polli:truncate", children: summaryLabel }),
|
|
2219
|
+
/* @__PURE__ */ jsx27(ChevronIcon, { expanded: isOpen })
|
|
2139
2220
|
]
|
|
2140
2221
|
}
|
|
2141
2222
|
)),
|
|
2142
2223
|
children: [
|
|
2143
2224
|
header,
|
|
2144
|
-
/* @__PURE__ */
|
|
2145
|
-
/* @__PURE__ */
|
|
2225
|
+
/* @__PURE__ */ jsxs21("div", { className: "polli:mb-3 polli:flex polli:items-center polli:justify-between", children: [
|
|
2226
|
+
/* @__PURE__ */ jsx27(
|
|
2146
2227
|
"button",
|
|
2147
2228
|
{
|
|
2148
2229
|
type: "button",
|
|
@@ -2156,8 +2237,8 @@ var PeriodPicker = ({
|
|
|
2156
2237
|
children: "<"
|
|
2157
2238
|
}
|
|
2158
2239
|
),
|
|
2159
|
-
/* @__PURE__ */
|
|
2160
|
-
/* @__PURE__ */
|
|
2240
|
+
/* @__PURE__ */ jsx27("div", { className: "polli:text-base polli:font-bold polli:text-theme-text-base", children: viewLabel }),
|
|
2241
|
+
/* @__PURE__ */ jsx27(
|
|
2161
2242
|
"button",
|
|
2162
2243
|
{
|
|
2163
2244
|
type: "button",
|
|
@@ -2172,7 +2253,7 @@ var PeriodPicker = ({
|
|
|
2172
2253
|
}
|
|
2173
2254
|
)
|
|
2174
2255
|
] }),
|
|
2175
|
-
value.granularity === "month" ? /* @__PURE__ */
|
|
2256
|
+
value.granularity === "month" ? /* @__PURE__ */ jsx27("div", { className: "polli:grid polli:grid-cols-3 polli:gap-1.5", children: MONTH_LABELS.map((label, monthIndex) => {
|
|
2176
2257
|
const date = new Date(
|
|
2177
2258
|
Date.UTC(
|
|
2178
2259
|
viewDate.getUTCFullYear(),
|
|
@@ -2191,7 +2272,7 @@ var PeriodPicker = ({
|
|
|
2191
2272
|
year: "numeric"
|
|
2192
2273
|
});
|
|
2193
2274
|
const selected = date.getUTCFullYear() === selectedWindow.start.getUTCFullYear() && date.getUTCMonth() === selectedWindow.start.getUTCMonth();
|
|
2194
|
-
return /* @__PURE__ */
|
|
2275
|
+
return /* @__PURE__ */ jsx27(
|
|
2195
2276
|
"button",
|
|
2196
2277
|
{
|
|
2197
2278
|
type: "button",
|
|
@@ -2208,9 +2289,9 @@ var PeriodPicker = ({
|
|
|
2208
2289
|
},
|
|
2209
2290
|
label
|
|
2210
2291
|
);
|
|
2211
|
-
}) }) : /* @__PURE__ */
|
|
2212
|
-
/* @__PURE__ */
|
|
2213
|
-
/* @__PURE__ */
|
|
2292
|
+
}) }) : /* @__PURE__ */ jsxs21(Fragment7, { children: [
|
|
2293
|
+
/* @__PURE__ */ jsx27("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__ */ jsx27("div", { children: label }, label)) }),
|
|
2294
|
+
/* @__PURE__ */ jsx27("div", { className: "polli:grid polli:grid-cols-7 polli:gap-1", children: dates.map((date) => {
|
|
2214
2295
|
const inCurrentMonth = date.getUTCMonth() === viewDate.getUTCMonth();
|
|
2215
2296
|
const selectable = isPeriodSelectable(
|
|
2216
2297
|
periodFromDate(value.granularity, date),
|
|
@@ -2228,7 +2309,7 @@ var PeriodPicker = ({
|
|
|
2228
2309
|
}
|
|
2229
2310
|
)}`;
|
|
2230
2311
|
const selected = value.granularity === "day" ? sameUtcDay(date, selectedWindow.start) : date >= selectedWindow.start && date < selectedWindow.end;
|
|
2231
|
-
return /* @__PURE__ */
|
|
2312
|
+
return /* @__PURE__ */ jsx27(
|
|
2232
2313
|
"button",
|
|
2233
2314
|
{
|
|
2234
2315
|
type: "button",
|
|
@@ -2258,7 +2339,7 @@ var PeriodPicker = ({
|
|
|
2258
2339
|
};
|
|
2259
2340
|
|
|
2260
2341
|
// src/compositions/Section.tsx
|
|
2261
|
-
import { Fragment as
|
|
2342
|
+
import { Fragment as Fragment8, jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2262
2343
|
var Section = ({
|
|
2263
2344
|
title,
|
|
2264
2345
|
id,
|
|
@@ -2271,13 +2352,13 @@ var Section = ({
|
|
|
2271
2352
|
children,
|
|
2272
2353
|
className
|
|
2273
2354
|
}) => {
|
|
2274
|
-
const body = /* @__PURE__ */
|
|
2275
|
-
intro && /* @__PURE__ */
|
|
2355
|
+
const body = /* @__PURE__ */ jsxs22(Fragment8, { children: [
|
|
2356
|
+
intro && /* @__PURE__ */ jsx28(Text, { as: "div", className: "polli:max-w-2xl", children: intro }),
|
|
2276
2357
|
children
|
|
2277
2358
|
] });
|
|
2278
|
-
const content = /* @__PURE__ */
|
|
2279
|
-
/* @__PURE__ */
|
|
2280
|
-
/* @__PURE__ */
|
|
2359
|
+
const content = /* @__PURE__ */ jsxs22(Fragment8, { children: [
|
|
2360
|
+
/* @__PURE__ */ jsxs22("header", { className: "polli:flex polli:flex-wrap polli:items-center polli:justify-between polli:gap-3", children: [
|
|
2361
|
+
/* @__PURE__ */ jsx28(
|
|
2281
2362
|
Heading,
|
|
2282
2363
|
{
|
|
2283
2364
|
as: "h2",
|
|
@@ -2286,11 +2367,11 @@ var Section = ({
|
|
|
2286
2367
|
children: title
|
|
2287
2368
|
}
|
|
2288
2369
|
),
|
|
2289
|
-
action && /* @__PURE__ */
|
|
2370
|
+
action && /* @__PURE__ */ jsx28("div", { className: cn("polli:shrink-0", actionClassName), children: action })
|
|
2290
2371
|
] }),
|
|
2291
2372
|
body
|
|
2292
2373
|
] });
|
|
2293
|
-
return /* @__PURE__ */
|
|
2374
|
+
return /* @__PURE__ */ jsx28("section", { id, className: cn("polli:scroll-mt-10", className), children: framed ? /* @__PURE__ */ jsx28(
|
|
2294
2375
|
Surface,
|
|
2295
2376
|
{
|
|
2296
2377
|
variant: "panel",
|
|
@@ -2300,11 +2381,11 @@ var Section = ({
|
|
|
2300
2381
|
),
|
|
2301
2382
|
children: content
|
|
2302
2383
|
}
|
|
2303
|
-
) : /* @__PURE__ */
|
|
2384
|
+
) : /* @__PURE__ */ jsx28("div", { className: "polli:flex polli:flex-col polli:gap-4", children: content }) });
|
|
2304
2385
|
};
|
|
2305
2386
|
|
|
2306
2387
|
// src/compositions/SocialCount.tsx
|
|
2307
|
-
import { jsx as
|
|
2388
|
+
import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2308
2389
|
var networks = {
|
|
2309
2390
|
discord: {
|
|
2310
2391
|
Icon: DiscordIcon,
|
|
@@ -2325,7 +2406,7 @@ function SocialCount({
|
|
|
2325
2406
|
}) {
|
|
2326
2407
|
const Component = as || "a";
|
|
2327
2408
|
const { Icon, className: colours } = networks[network];
|
|
2328
|
-
return /* @__PURE__ */
|
|
2409
|
+
return /* @__PURE__ */ jsxs23(
|
|
2329
2410
|
Component,
|
|
2330
2411
|
{
|
|
2331
2412
|
...rest,
|
|
@@ -2335,7 +2416,7 @@ function SocialCount({
|
|
|
2335
2416
|
className
|
|
2336
2417
|
),
|
|
2337
2418
|
children: [
|
|
2338
|
-
showIcon ? /* @__PURE__ */
|
|
2419
|
+
showIcon ? /* @__PURE__ */ jsx29(
|
|
2339
2420
|
Icon,
|
|
2340
2421
|
{
|
|
2341
2422
|
"aria-hidden": "true",
|
|
@@ -2349,7 +2430,7 @@ function SocialCount({
|
|
|
2349
2430
|
}
|
|
2350
2431
|
|
|
2351
2432
|
// src/compositions/StatCard.tsx
|
|
2352
|
-
import { jsx as
|
|
2433
|
+
import { jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2353
2434
|
var valueVariantClasses = {
|
|
2354
2435
|
stat: "polli:min-h-8 polli:text-2xl polli:font-bold polli:leading-tight polli:tabular-nums polli:text-theme-text-base",
|
|
2355
2436
|
fact: "polli:text-sm polli:leading-6 polli:text-theme-text-soft",
|
|
@@ -2364,9 +2445,9 @@ var StatCard = ({
|
|
|
2364
2445
|
labelClassName,
|
|
2365
2446
|
valueClassName,
|
|
2366
2447
|
detailClassName
|
|
2367
|
-
}) => variant === "display" ? /* @__PURE__ */
|
|
2368
|
-
/* @__PURE__ */
|
|
2369
|
-
/* @__PURE__ */
|
|
2448
|
+
}) => variant === "display" ? /* @__PURE__ */ jsxs24("div", { className: cn("polli:flex polli:flex-col polli:gap-1", className), children: [
|
|
2449
|
+
/* @__PURE__ */ jsx30("div", { className: cn(valueVariantClasses.display, valueClassName), children: value }),
|
|
2450
|
+
/* @__PURE__ */ jsx30(
|
|
2370
2451
|
Text,
|
|
2371
2452
|
{
|
|
2372
2453
|
as: "div",
|
|
@@ -2379,8 +2460,8 @@ var StatCard = ({
|
|
|
2379
2460
|
children: label
|
|
2380
2461
|
}
|
|
2381
2462
|
)
|
|
2382
|
-
] }) : /* @__PURE__ */
|
|
2383
|
-
/* @__PURE__ */
|
|
2463
|
+
] }) : /* @__PURE__ */ jsxs24("div", { className: cn("polli:text-sm", className), children: [
|
|
2464
|
+
/* @__PURE__ */ jsx30(
|
|
2384
2465
|
Text,
|
|
2385
2466
|
{
|
|
2386
2467
|
as: "div",
|
|
@@ -2394,7 +2475,7 @@ var StatCard = ({
|
|
|
2394
2475
|
children: label
|
|
2395
2476
|
}
|
|
2396
2477
|
),
|
|
2397
|
-
/* @__PURE__ */
|
|
2478
|
+
/* @__PURE__ */ jsx30(
|
|
2398
2479
|
"div",
|
|
2399
2480
|
{
|
|
2400
2481
|
className: cn(
|
|
@@ -2405,7 +2486,7 @@ var StatCard = ({
|
|
|
2405
2486
|
children: value
|
|
2406
2487
|
}
|
|
2407
2488
|
),
|
|
2408
|
-
detail && /* @__PURE__ */
|
|
2489
|
+
detail && /* @__PURE__ */ jsx30(
|
|
2409
2490
|
Text,
|
|
2410
2491
|
{
|
|
2411
2492
|
as: "div",
|
|
@@ -2418,8 +2499,8 @@ var StatCard = ({
|
|
|
2418
2499
|
] });
|
|
2419
2500
|
|
|
2420
2501
|
// src/compositions/ToolCallDetails.tsx
|
|
2421
|
-
import { Fragment as
|
|
2422
|
-
import { jsx as
|
|
2502
|
+
import { Fragment as Fragment9, useState as useState4 } from "react";
|
|
2503
|
+
import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2423
2504
|
function formattedValue(value) {
|
|
2424
2505
|
if (typeof value === "string") return value;
|
|
2425
2506
|
try {
|
|
@@ -2443,8 +2524,8 @@ function linkedValue(value) {
|
|
|
2443
2524
|
if (href.endsWith(")")) extraClosingParens--;
|
|
2444
2525
|
href = href.slice(0, -1);
|
|
2445
2526
|
}
|
|
2446
|
-
return /* @__PURE__ */
|
|
2447
|
-
/* @__PURE__ */
|
|
2527
|
+
return /* @__PURE__ */ jsxs25(Fragment9, { children: [
|
|
2528
|
+
/* @__PURE__ */ jsx31(InlineLink, { href, children: href }),
|
|
2448
2529
|
segment.slice(href.length)
|
|
2449
2530
|
] }, key);
|
|
2450
2531
|
});
|
|
@@ -2453,7 +2534,7 @@ function ToolValue({
|
|
|
2453
2534
|
value,
|
|
2454
2535
|
error = false
|
|
2455
2536
|
}) {
|
|
2456
|
-
return /* @__PURE__ */
|
|
2537
|
+
return /* @__PURE__ */ jsx31(
|
|
2457
2538
|
"pre",
|
|
2458
2539
|
{
|
|
2459
2540
|
className: cn(
|
|
@@ -2474,7 +2555,7 @@ var STATUS_LABELS = {
|
|
|
2474
2555
|
denied: "Denied"
|
|
2475
2556
|
};
|
|
2476
2557
|
function ToolStatus({ status }) {
|
|
2477
|
-
const icon = status === "complete" || status === "approval-responded" ? /* @__PURE__ */
|
|
2558
|
+
const icon = status === "complete" || status === "approval-responded" ? /* @__PURE__ */ jsx31(CheckIcon, { className: "polli:size-3" }) : status === "error" || status === "denied" ? /* @__PURE__ */ jsx31(XIcon, { className: "polli:size-3" }) : /* @__PURE__ */ jsx31(
|
|
2478
2559
|
ClockIcon,
|
|
2479
2560
|
{
|
|
2480
2561
|
className: cn(
|
|
@@ -2483,7 +2564,7 @@ function ToolStatus({ status }) {
|
|
|
2483
2564
|
)
|
|
2484
2565
|
}
|
|
2485
2566
|
);
|
|
2486
|
-
return /* @__PURE__ */
|
|
2567
|
+
return /* @__PURE__ */ jsxs25(
|
|
2487
2568
|
"span",
|
|
2488
2569
|
{
|
|
2489
2570
|
"data-status": status,
|
|
@@ -2509,7 +2590,7 @@ function ToolCallDetails({
|
|
|
2509
2590
|
}) {
|
|
2510
2591
|
const result = error === void 0 ? output : error;
|
|
2511
2592
|
const [open, setOpen] = useState4(defaultOpen);
|
|
2512
|
-
return /* @__PURE__ */
|
|
2593
|
+
return /* @__PURE__ */ jsxs25(
|
|
2513
2594
|
"div",
|
|
2514
2595
|
{
|
|
2515
2596
|
"data-tool-status": status,
|
|
@@ -2518,7 +2599,7 @@ function ToolCallDetails({
|
|
|
2518
2599
|
className
|
|
2519
2600
|
),
|
|
2520
2601
|
children: [
|
|
2521
|
-
/* @__PURE__ */
|
|
2602
|
+
/* @__PURE__ */ jsxs25(
|
|
2522
2603
|
"button",
|
|
2523
2604
|
{
|
|
2524
2605
|
type: "button",
|
|
@@ -2526,10 +2607,10 @@ function ToolCallDetails({
|
|
|
2526
2607
|
onClick: () => setOpen((current) => !current),
|
|
2527
2608
|
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",
|
|
2528
2609
|
children: [
|
|
2529
|
-
/* @__PURE__ */
|
|
2530
|
-
/* @__PURE__ */
|
|
2531
|
-
/* @__PURE__ */
|
|
2532
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ jsx31("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__ */ jsx31(ToolIcon, { className: "polli:size-3.5" }) }),
|
|
2611
|
+
/* @__PURE__ */ jsx31("code", { className: "polli:min-w-0 polli:truncate polli:text-xs polli:font-semibold polli:text-theme-text-strong", children: name }),
|
|
2612
|
+
/* @__PURE__ */ jsx31(ToolStatus, { status }),
|
|
2613
|
+
/* @__PURE__ */ jsx31(
|
|
2533
2614
|
ChevronIcon,
|
|
2534
2615
|
{
|
|
2535
2616
|
expanded: open,
|
|
@@ -2539,14 +2620,14 @@ function ToolCallDetails({
|
|
|
2539
2620
|
]
|
|
2540
2621
|
}
|
|
2541
2622
|
),
|
|
2542
|
-
open && /* @__PURE__ */
|
|
2543
|
-
input !== void 0 && /* @__PURE__ */
|
|
2544
|
-
/* @__PURE__ */
|
|
2545
|
-
/* @__PURE__ */
|
|
2623
|
+
open && /* @__PURE__ */ jsxs25("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: [
|
|
2624
|
+
input !== void 0 && /* @__PURE__ */ jsxs25("div", { className: "polli:flex polli:flex-col polli:gap-1", children: [
|
|
2625
|
+
/* @__PURE__ */ jsx31(Text, { size: "xs", tone: "muted", weight: "bold", children: "Parameters" }),
|
|
2626
|
+
/* @__PURE__ */ jsx31(ToolValue, { value: input })
|
|
2546
2627
|
] }),
|
|
2547
|
-
result !== void 0 && /* @__PURE__ */
|
|
2548
|
-
/* @__PURE__ */
|
|
2549
|
-
/* @__PURE__ */
|
|
2628
|
+
result !== void 0 && /* @__PURE__ */ jsxs25("div", { className: "polli:flex polli:flex-col polli:gap-1", children: [
|
|
2629
|
+
/* @__PURE__ */ jsx31(Text, { size: "xs", tone: "muted", weight: "bold", children: error === void 0 ? "Result" : "Error" }),
|
|
2630
|
+
/* @__PURE__ */ jsx31(
|
|
2550
2631
|
ToolValue,
|
|
2551
2632
|
{
|
|
2552
2633
|
value: result,
|
|
@@ -2571,9 +2652,9 @@ function cn2(...inputs) {
|
|
|
2571
2652
|
}
|
|
2572
2653
|
|
|
2573
2654
|
// src/lib/use-scroll-lock.ts
|
|
2574
|
-
import { useEffect as
|
|
2655
|
+
import { useEffect as useEffect6 } from "react";
|
|
2575
2656
|
function useScrollLock(enabled = true) {
|
|
2576
|
-
|
|
2657
|
+
useEffect6(() => {
|
|
2577
2658
|
if (!enabled) return;
|
|
2578
2659
|
const originalBody = document.body.style.overflow;
|
|
2579
2660
|
const originalHtml = document.documentElement.style.overflow;
|
|
@@ -2587,13 +2668,13 @@ function useScrollLock(enabled = true) {
|
|
|
2587
2668
|
}
|
|
2588
2669
|
|
|
2589
2670
|
// src/primitives/ButtonGroup.tsx
|
|
2590
|
-
import { jsx as
|
|
2671
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2591
2672
|
var ButtonGroup = ({
|
|
2592
2673
|
className,
|
|
2593
2674
|
children,
|
|
2594
2675
|
role = "group",
|
|
2595
2676
|
...rest
|
|
2596
|
-
}) => /* @__PURE__ */
|
|
2677
|
+
}) => /* @__PURE__ */ jsx32(
|
|
2597
2678
|
"div",
|
|
2598
2679
|
{
|
|
2599
2680
|
...rest,
|
|
@@ -2609,8 +2690,8 @@ var ButtonGroup = ({
|
|
|
2609
2690
|
// src/primitives/Drawer.tsx
|
|
2610
2691
|
import { Dialog as ArkDialog } from "@ark-ui/react/dialog";
|
|
2611
2692
|
import { Portal } from "@ark-ui/react/portal";
|
|
2612
|
-
import { useRef as
|
|
2613
|
-
import { jsx as
|
|
2693
|
+
import { useRef as useRef5 } from "react";
|
|
2694
|
+
import { jsx as jsx33, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2614
2695
|
var Drawer = ({
|
|
2615
2696
|
open,
|
|
2616
2697
|
onOpenChange,
|
|
@@ -2619,16 +2700,16 @@ var Drawer = ({
|
|
|
2619
2700
|
side = "left",
|
|
2620
2701
|
contentClassName
|
|
2621
2702
|
}) => {
|
|
2622
|
-
const contentRef =
|
|
2623
|
-
return /* @__PURE__ */
|
|
2703
|
+
const contentRef = useRef5(null);
|
|
2704
|
+
return /* @__PURE__ */ jsx33(
|
|
2624
2705
|
ArkDialog.Root,
|
|
2625
2706
|
{
|
|
2626
2707
|
open,
|
|
2627
2708
|
initialFocusEl: () => contentRef.current,
|
|
2628
2709
|
onOpenChange: (details) => onOpenChange(details.open),
|
|
2629
|
-
children: /* @__PURE__ */
|
|
2630
|
-
/* @__PURE__ */
|
|
2631
|
-
/* @__PURE__ */
|
|
2710
|
+
children: /* @__PURE__ */ jsxs26(Portal, { children: [
|
|
2711
|
+
/* @__PURE__ */ jsx33(ArkDialog.Backdrop, { className: "polli:fixed polli:inset-0 polli:z-[100] polli:bg-[#000]/40 polli:backdrop-blur-sm" }),
|
|
2712
|
+
/* @__PURE__ */ jsx33(ArkDialog.Positioner, { className: "polli:pointer-events-none polli:fixed polli:inset-0 polli:z-[110] polli:h-dvh polli:overflow-hidden", children: /* @__PURE__ */ jsx33(
|
|
2632
2713
|
ArkDialog.Content,
|
|
2633
2714
|
{
|
|
2634
2715
|
ref: contentRef,
|
|
@@ -2647,7 +2728,7 @@ var Drawer = ({
|
|
|
2647
2728
|
};
|
|
2648
2729
|
|
|
2649
2730
|
// src/primitives/IconTile.tsx
|
|
2650
|
-
import { jsx as
|
|
2731
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2651
2732
|
var toneClasses = {
|
|
2652
2733
|
neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-strong",
|
|
2653
2734
|
// The wallet's Paid and Quest Pollen colours, for rows about money.
|
|
@@ -2660,7 +2741,7 @@ function IconTile({
|
|
|
2660
2741
|
tone = "neutral",
|
|
2661
2742
|
color
|
|
2662
2743
|
}) {
|
|
2663
|
-
return /* @__PURE__ */
|
|
2744
|
+
return /* @__PURE__ */ jsx34(
|
|
2664
2745
|
"span",
|
|
2665
2746
|
{
|
|
2666
2747
|
className: cn(
|
|
@@ -2671,15 +2752,15 @@ function IconTile({
|
|
|
2671
2752
|
color,
|
|
2672
2753
|
backgroundColor: `color-mix(in oklab, ${color} 14%, transparent)`
|
|
2673
2754
|
} : void 0,
|
|
2674
|
-
children: /* @__PURE__ */
|
|
2755
|
+
children: /* @__PURE__ */ jsx34(Icon, { "aria-hidden": "true", className: "polli:size-6" })
|
|
2675
2756
|
}
|
|
2676
2757
|
);
|
|
2677
2758
|
}
|
|
2678
2759
|
|
|
2679
2760
|
// src/primitives/LiveDot.tsx
|
|
2680
|
-
import { jsx as
|
|
2761
|
+
import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2681
2762
|
function LiveDot({ className }) {
|
|
2682
|
-
return /* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ jsxs27(
|
|
2683
2764
|
"span",
|
|
2684
2765
|
{
|
|
2685
2766
|
"aria-hidden": "true",
|
|
@@ -2688,15 +2769,53 @@ function LiveDot({ className }) {
|
|
|
2688
2769
|
className
|
|
2689
2770
|
),
|
|
2690
2771
|
children: [
|
|
2691
|
-
/* @__PURE__ */
|
|
2692
|
-
/* @__PURE__ */
|
|
2772
|
+
/* @__PURE__ */ jsx35("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" }),
|
|
2773
|
+
/* @__PURE__ */ jsx35("span", { className: "polli:relative polli:size-2 polli:rounded-full polli:bg-intent-success-bg-bright" })
|
|
2693
2774
|
]
|
|
2694
2775
|
}
|
|
2695
2776
|
);
|
|
2696
2777
|
}
|
|
2697
2778
|
|
|
2779
|
+
// src/primitives/SegmentedControl.tsx
|
|
2780
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2781
|
+
function SegmentedControl({
|
|
2782
|
+
options,
|
|
2783
|
+
value,
|
|
2784
|
+
onChange,
|
|
2785
|
+
ariaLabel,
|
|
2786
|
+
className
|
|
2787
|
+
}) {
|
|
2788
|
+
return /* @__PURE__ */ jsx36(
|
|
2789
|
+
"fieldset",
|
|
2790
|
+
{
|
|
2791
|
+
"aria-label": ariaLabel,
|
|
2792
|
+
className: cn(
|
|
2793
|
+
"polli:m-0 polli:inline-flex polli:min-w-0 polli:items-center polli:gap-0.5 polli:rounded-full polli:border-0 polli:bg-theme-bg-subtle polli:p-0.5",
|
|
2794
|
+
className
|
|
2795
|
+
),
|
|
2796
|
+
children: options.map((option) => {
|
|
2797
|
+
const selected = option.value === value;
|
|
2798
|
+
return /* @__PURE__ */ jsx36(
|
|
2799
|
+
"button",
|
|
2800
|
+
{
|
|
2801
|
+
type: "button",
|
|
2802
|
+
"aria-pressed": selected,
|
|
2803
|
+
onClick: () => onChange(option.value),
|
|
2804
|
+
className: cn(
|
|
2805
|
+
"polli-control polli:rounded-full polli:px-3 polli:py-1 polli:text-sm polli:font-medium polli:leading-normal polli:transition-colors polli:duration-200",
|
|
2806
|
+
selected ? "polli:bg-theme-bg-active polli:text-theme-text-strong" : "polli:text-theme-text-base polli:hover:bg-theme-bg-hover polli:hover:text-theme-text-hover"
|
|
2807
|
+
),
|
|
2808
|
+
children: option.label
|
|
2809
|
+
},
|
|
2810
|
+
option.value
|
|
2811
|
+
);
|
|
2812
|
+
})
|
|
2813
|
+
}
|
|
2814
|
+
);
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2698
2817
|
// src/primitives/Skeleton.tsx
|
|
2699
|
-
import { jsx as
|
|
2818
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2700
2819
|
var shapeClasses = {
|
|
2701
2820
|
// Stands in for a card or tile.
|
|
2702
2821
|
card: "polli:rounded-card",
|
|
@@ -2706,7 +2825,7 @@ var shapeClasses = {
|
|
|
2706
2825
|
media: ""
|
|
2707
2826
|
};
|
|
2708
2827
|
function Skeleton({ shape = "card", className }) {
|
|
2709
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ jsx37(
|
|
2710
2829
|
"span",
|
|
2711
2830
|
{
|
|
2712
2831
|
"aria-hidden": "true",
|
|
@@ -2721,7 +2840,7 @@ function Skeleton({ shape = "card", className }) {
|
|
|
2721
2840
|
|
|
2722
2841
|
// src/primitives/Slider.tsx
|
|
2723
2842
|
import { forwardRef as forwardRef6 } from "react";
|
|
2724
|
-
import { jsx as
|
|
2843
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2725
2844
|
var toNumber = (value) => {
|
|
2726
2845
|
if (typeof value === "number") return value;
|
|
2727
2846
|
if (typeof value !== "string" || value.trim() === "") return void 0;
|
|
@@ -2761,7 +2880,7 @@ var Slider = forwardRef6(
|
|
|
2761
2880
|
...style,
|
|
2762
2881
|
...progressPercent === void 0 ? null : { "--polli-slider-progress": `${progressPercent}%` }
|
|
2763
2882
|
};
|
|
2764
|
-
return /* @__PURE__ */
|
|
2883
|
+
return /* @__PURE__ */ jsx38(
|
|
2765
2884
|
"input",
|
|
2766
2885
|
{
|
|
2767
2886
|
ref,
|
|
@@ -2779,14 +2898,14 @@ var Slider = forwardRef6(
|
|
|
2779
2898
|
);
|
|
2780
2899
|
|
|
2781
2900
|
// src/primitives/StableLabel.tsx
|
|
2782
|
-
import { jsxs as
|
|
2901
|
+
import { jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2783
2902
|
function StableLabel({
|
|
2784
2903
|
text,
|
|
2785
2904
|
options,
|
|
2786
2905
|
align = "center",
|
|
2787
2906
|
prefix
|
|
2788
2907
|
}) {
|
|
2789
|
-
return /* @__PURE__ */
|
|
2908
|
+
return /* @__PURE__ */ jsxs28(
|
|
2790
2909
|
"span",
|
|
2791
2910
|
{
|
|
2792
2911
|
className: cn(
|
|
@@ -2794,7 +2913,7 @@ function StableLabel({
|
|
|
2794
2913
|
align === "center" ? "polli:justify-items-center" : "polli:justify-items-start polli:sm:justify-items-end"
|
|
2795
2914
|
),
|
|
2796
2915
|
children: [
|
|
2797
|
-
options.map((option) => /* @__PURE__ */
|
|
2916
|
+
options.map((option) => /* @__PURE__ */ jsxs28(
|
|
2798
2917
|
"span",
|
|
2799
2918
|
{
|
|
2800
2919
|
"aria-hidden": "true",
|
|
@@ -2806,7 +2925,7 @@ function StableLabel({
|
|
|
2806
2925
|
},
|
|
2807
2926
|
option
|
|
2808
2927
|
)),
|
|
2809
|
-
/* @__PURE__ */
|
|
2928
|
+
/* @__PURE__ */ jsxs28("span", { className: "polli:col-start-1 polli:row-start-1 polli:inline-flex polli:items-center polli:gap-1", children: [
|
|
2810
2929
|
prefix,
|
|
2811
2930
|
text
|
|
2812
2931
|
] })
|
|
@@ -2816,7 +2935,7 @@ function StableLabel({
|
|
|
2816
2935
|
}
|
|
2817
2936
|
|
|
2818
2937
|
// src/primitives/Table.tsx
|
|
2819
|
-
import { Fragment as
|
|
2938
|
+
import { Fragment as Fragment10, jsx as jsx39, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2820
2939
|
var alignClasses = {
|
|
2821
2940
|
left: "polli:text-left",
|
|
2822
2941
|
center: "polli:text-center",
|
|
@@ -2827,7 +2946,7 @@ var rowIntentClasses = {
|
|
|
2827
2946
|
warning: "polli:bg-intent-warning-bg-light/65",
|
|
2828
2947
|
danger: "polli:bg-intent-danger-bg-light/65"
|
|
2829
2948
|
};
|
|
2830
|
-
var Table = ({ className, ...rest }) => /* @__PURE__ */
|
|
2949
|
+
var Table = ({ className, ...rest }) => /* @__PURE__ */ jsx39(
|
|
2831
2950
|
"table",
|
|
2832
2951
|
{
|
|
2833
2952
|
...rest,
|
|
@@ -2837,7 +2956,7 @@ var Table = ({ className, ...rest }) => /* @__PURE__ */ jsx37(
|
|
|
2837
2956
|
)
|
|
2838
2957
|
}
|
|
2839
2958
|
);
|
|
2840
|
-
var TableHead = ({ className, ...rest }) => /* @__PURE__ */
|
|
2959
|
+
var TableHead = ({ className, ...rest }) => /* @__PURE__ */ jsx39(
|
|
2841
2960
|
"thead",
|
|
2842
2961
|
{
|
|
2843
2962
|
...rest,
|
|
@@ -2847,26 +2966,18 @@ var TableHead = ({ className, ...rest }) => /* @__PURE__ */ jsx37(
|
|
|
2847
2966
|
)
|
|
2848
2967
|
}
|
|
2849
2968
|
);
|
|
2850
|
-
var TableBody = ({
|
|
2851
|
-
className,
|
|
2852
|
-
divider = "themed",
|
|
2853
|
-
...rest
|
|
2854
|
-
}) => /* @__PURE__ */ jsx37(
|
|
2969
|
+
var TableBody = ({ className, ...rest }) => /* @__PURE__ */ jsx39(
|
|
2855
2970
|
"tbody",
|
|
2856
2971
|
{
|
|
2857
2972
|
...rest,
|
|
2858
|
-
className: cn(
|
|
2859
|
-
"polli:divide-y",
|
|
2860
|
-
divider === "neutral" ? "polli:divide-divider" : "polli:divide-theme-border/65",
|
|
2861
|
-
className
|
|
2862
|
-
)
|
|
2973
|
+
className: cn("polli:divide-y polli:divide-divider", className)
|
|
2863
2974
|
}
|
|
2864
2975
|
);
|
|
2865
2976
|
var TableRow = ({
|
|
2866
2977
|
intent = "default",
|
|
2867
2978
|
className,
|
|
2868
2979
|
...rest
|
|
2869
|
-
}) => /* @__PURE__ */
|
|
2980
|
+
}) => /* @__PURE__ */ jsx39(
|
|
2870
2981
|
"tr",
|
|
2871
2982
|
{
|
|
2872
2983
|
...rest,
|
|
@@ -2886,9 +2997,9 @@ var TableHeaderCell = ({
|
|
|
2886
2997
|
children,
|
|
2887
2998
|
...rest
|
|
2888
2999
|
}) => {
|
|
2889
|
-
const content = /* @__PURE__ */
|
|
2890
|
-
/* @__PURE__ */
|
|
2891
|
-
onSort && /* @__PURE__ */
|
|
3000
|
+
const content = /* @__PURE__ */ jsxs29(Fragment10, { children: [
|
|
3001
|
+
/* @__PURE__ */ jsx39("span", { children }),
|
|
3002
|
+
onSort && /* @__PURE__ */ jsx39(
|
|
2892
3003
|
"span",
|
|
2893
3004
|
{
|
|
2894
3005
|
"aria-hidden": "true",
|
|
@@ -2905,15 +3016,15 @@ var TableHeaderCell = ({
|
|
|
2905
3016
|
className
|
|
2906
3017
|
);
|
|
2907
3018
|
if (!onSort) {
|
|
2908
|
-
return /* @__PURE__ */
|
|
3019
|
+
return /* @__PURE__ */ jsx39("th", { ...rest, className: classes, children: content });
|
|
2909
3020
|
}
|
|
2910
|
-
return /* @__PURE__ */
|
|
3021
|
+
return /* @__PURE__ */ jsx39(
|
|
2911
3022
|
"th",
|
|
2912
3023
|
{
|
|
2913
3024
|
...rest,
|
|
2914
3025
|
"aria-sort": active && sortDirection ? sortDirection === "asc" ? "ascending" : "descending" : "none",
|
|
2915
3026
|
className: classes,
|
|
2916
|
-
children: /* @__PURE__ */
|
|
3027
|
+
children: /* @__PURE__ */ jsx39(
|
|
2917
3028
|
"button",
|
|
2918
3029
|
{
|
|
2919
3030
|
type: "button",
|
|
@@ -2935,7 +3046,7 @@ var TableCell = ({
|
|
|
2935
3046
|
muted = false,
|
|
2936
3047
|
className,
|
|
2937
3048
|
...rest
|
|
2938
|
-
}) => /* @__PURE__ */
|
|
3049
|
+
}) => /* @__PURE__ */ jsx39(
|
|
2939
3050
|
"td",
|
|
2940
3051
|
{
|
|
2941
3052
|
...rest,
|
|
@@ -2950,14 +3061,14 @@ var TableCell = ({
|
|
|
2950
3061
|
);
|
|
2951
3062
|
|
|
2952
3063
|
// src/primitives/TableDisclosureButton.tsx
|
|
2953
|
-
import { jsx as
|
|
3064
|
+
import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2954
3065
|
var TableDisclosureButton = ({
|
|
2955
3066
|
children,
|
|
2956
3067
|
disabled = false,
|
|
2957
3068
|
expanded,
|
|
2958
3069
|
onClick,
|
|
2959
3070
|
className
|
|
2960
|
-
}) => /* @__PURE__ */
|
|
3071
|
+
}) => /* @__PURE__ */ jsxs30(
|
|
2961
3072
|
"button",
|
|
2962
3073
|
{
|
|
2963
3074
|
type: "button",
|
|
@@ -2970,7 +3081,7 @@ var TableDisclosureButton = ({
|
|
|
2970
3081
|
className
|
|
2971
3082
|
),
|
|
2972
3083
|
children: [
|
|
2973
|
-
/* @__PURE__ */
|
|
3084
|
+
/* @__PURE__ */ jsx40(
|
|
2974
3085
|
ChevronIcon,
|
|
2975
3086
|
{
|
|
2976
3087
|
expanded,
|
|
@@ -3086,12 +3197,15 @@ export {
|
|
|
3086
3197
|
MultiSelect,
|
|
3087
3198
|
NavItem,
|
|
3088
3199
|
NewspaperIcon,
|
|
3200
|
+
OUTAGE_MESSAGE,
|
|
3201
|
+
OutageNotice,
|
|
3089
3202
|
PauseIcon,
|
|
3090
3203
|
PencilIcon,
|
|
3091
3204
|
PeriodPicker,
|
|
3092
3205
|
PlayIcon,
|
|
3093
3206
|
PlusIcon,
|
|
3094
3207
|
PowerIcon,
|
|
3208
|
+
PulseIcon,
|
|
3095
3209
|
ReasoningIcon,
|
|
3096
3210
|
ReceiptIcon,
|
|
3097
3211
|
RefreshIcon,
|
|
@@ -3100,6 +3214,8 @@ export {
|
|
|
3100
3214
|
ScrollArea,
|
|
3101
3215
|
SearchIcon,
|
|
3102
3216
|
Section,
|
|
3217
|
+
SegmentedControl,
|
|
3218
|
+
ShieldCheckIcon,
|
|
3103
3219
|
SignOutIcon,
|
|
3104
3220
|
Skeleton,
|
|
3105
3221
|
Slider,
|
|
@@ -3147,6 +3263,7 @@ export {
|
|
|
3147
3263
|
periodToWindow,
|
|
3148
3264
|
setColorMode,
|
|
3149
3265
|
useColorMode,
|
|
3266
|
+
useOnline,
|
|
3150
3267
|
useScrollLock
|
|
3151
3268
|
};
|
|
3152
3269
|
//# sourceMappingURL=index.js.map
|