@alivault/pico 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { i as __toESM } from "../_runtime.mjs";
2
2
  import { $ as require_react, Q as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
3
  import { a as createRouter, c as createRootRoute, n as Scripts, r as HeadContent, s as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
4
4
  import { I as CircleCheck, S as Info, _ as OctagonX, a as TriangleAlert } from "../_libs/lucide-react.mjs";
5
- import { B as createCompactionSummaryItem, G as extractToolText, I as appliedThemeClassColorMode, J as mergeAssistantBlocksForStreaming, L as assistantBlocksFromMessage, M as TooltipProvider, R as buildItemsFromSync, T as Spinner, U as extractMessageImages, W as extractMessageText$1, f as PICO_SHIKI_VARIABLE_DEFAULTS, kt as toolCategoryFromTool, n as APPLIED_THEME_STORAGE_KEY, t as APPLIED_THEME_CLASSES, u as PICO_CODE_SHIKI_THEME, x as Route$54 } from "./routes-DMdIR42g.mjs";
5
+ import { B as createCompactionSummaryItem, G as extractToolText, I as appliedThemeClassColorMode, J as mergeAssistantBlocksForStreaming, L as assistantBlocksFromMessage, M as TooltipProvider, R as buildItemsFromSync, T as Spinner, U as extractMessageImages, W as extractMessageText$1, f as PICO_SHIKI_VARIABLE_DEFAULTS, kt as toolCategoryFromTool, n as APPLIED_THEME_STORAGE_KEY, t as APPLIED_THEME_CLASSES, u as PICO_CODE_SHIKI_THEME, x as Route$54 } from "./routes-D3Hu5M6D.mjs";
6
6
  import { t as QueryClient } from "../_libs/tanstack__query-core.mjs";
7
7
  import { t as setupRouterSsrQueryIntegration } from "../_libs/@tanstack/react-router-ssr-query+[...].mjs";
8
8
  import { n as HotkeysProvider } from "../_libs/tanstack__react-hotkeys.mjs";
@@ -20,7 +20,7 @@ import os, { homedir } from "node:os";
20
20
  import { performance } from "node:perf_hooks";
21
21
  import { isMainThread } from "node:worker_threads";
22
22
  import { execSync, spawn } from "node:child_process";
23
- //#region node_modules/.nitro/vite/services/ssr/assets/router-qUSM3V8V.js
23
+ //#region node_modules/.nitro/vite/services/ssr/assets/router-Ccz1kegF.js
24
24
  var import_react = /* @__PURE__ */ __toESM(require_react());
25
25
  var import_jsx_runtime = require_jsx_runtime();
26
26
  function sonnerThemeFromAppliedTheme(theme) {
@@ -37,7 +37,7 @@ var Toaster$1 = ({ ...props }) => {
37
37
  info: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Info, { className: "size-4" }),
38
38
  warning: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, { className: "size-4" }),
39
39
  error: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OctagonX, { className: "size-4" }),
40
- loading: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { className: "size-4" })
40
+ loading: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spinner, { size: "md" })
41
41
  },
42
42
  style: {
43
43
  "--normal-bg": "var(--popover)",
@@ -87,7 +87,7 @@ function AppProviders({ children }) {
87
87
  })
88
88
  });
89
89
  }
90
- var styles_default = "/assets/styles-hk0oLlcJ.css";
90
+ var styles_default = "/assets/styles-Chvsnn7o.css";
91
91
  var TANSTACK_DEVTOOLS_SETTINGS_KEY = "tanstack_devtools_settings";
92
92
  var TANSTACK_DEVTOOLS_DEFAULTS_STORAGE_KEY = "pico-tanstack-devtools-defaults-v1";
93
93
  var TANSTACK_DEVTOOLS_CONFIG = {
@@ -5,7 +5,7 @@ import { n as clsx } from "../_libs/class-variance-authority+clsx.mjs";
5
5
  import { t as twMerge } from "../_libs/tailwind-merge.mjs";
6
6
  import { F as Command, J as ArrowDown, K as ArrowRight, U as ArrowUp, Y as ArrowBigUp, g as Option, q as ArrowLeft, z as ChevronUp } from "../_libs/lucide-react.mjs";
7
7
  import { n as string, t as object } from "../_libs/zod.mjs";
8
- //#region node_modules/.nitro/vite/services/ssr/assets/routes-DMdIR42g.js
8
+ //#region node_modules/.nitro/vite/services/ssr/assets/routes-D3Hu5M6D.js
9
9
  var import_react = /* @__PURE__ */ __toESM(require_react());
10
10
  var import_jsx_runtime = require_jsx_runtime();
11
11
  function cn(...inputs) {
@@ -222,15 +222,56 @@ function TitleTooltip({ title, children, kbd, rows, side, align, sideOffset, cla
222
222
  }) : null] })
223
223
  })] });
224
224
  }
225
- function Spinner({ className, "aria-label": ariaLabel = "Loading", ...props }) {
225
+ var SPINNER_CELLS = [
226
+ {
227
+ id: "top-left",
228
+ className: "pico-spinner-pixel-0"
229
+ },
230
+ {
231
+ id: "top",
232
+ className: "pico-spinner-pixel-1"
233
+ },
234
+ {
235
+ id: "top-right",
236
+ className: "pico-spinner-pixel-2"
237
+ },
238
+ {
239
+ id: "right",
240
+ className: "pico-spinner-pixel-5"
241
+ },
242
+ {
243
+ id: "bottom-right",
244
+ className: "pico-spinner-pixel-8"
245
+ },
246
+ {
247
+ id: "bottom",
248
+ className: "pico-spinner-pixel-7"
249
+ },
250
+ {
251
+ id: "bottom-left",
252
+ className: "pico-spinner-pixel-6"
253
+ },
254
+ {
255
+ id: "left",
256
+ className: "pico-spinner-pixel-3"
257
+ }
258
+ ];
259
+ var SPINNER_SIZE_CLASS_NAMES = {
260
+ xs: "size-3",
261
+ sm: "size-3.5",
262
+ md: "size-4"
263
+ };
264
+ function Spinner({ className, size = "sm", "aria-label": ariaLabel = "Loading", ...props }) {
226
265
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
227
266
  role: "status",
228
267
  "aria-label": ariaLabel,
229
- className: cn("pointer-events-none inline-flex size-4 shrink-0 items-center justify-center font-mono leading-none text-primary select-none", className),
268
+ "data-pico-spinner-size": size,
269
+ className: cn("pico-spinner pointer-events-none inline-flex shrink-0 items-center justify-center font-mono leading-none text-primary select-none", SPINNER_SIZE_CLASS_NAMES[size], className),
230
270
  ...props,
231
271
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
232
272
  "aria-hidden": "true",
233
- className: "pico-spinner-braille leading-none"
273
+ className: "pico-spinner-pixels",
274
+ children: SPINNER_CELLS.map((cell) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: cn("pico-spinner-pixel", cell.className) }, cell.id))
234
275
  })
235
276
  });
236
277
  }
@@ -3200,7 +3241,7 @@ function getSessionTitle(summary) {
3200
3241
  if (summary?.name?.trim()) return summary.name.trim();
3201
3242
  return "New session";
3202
3243
  }
3203
- var $$splitComponentImporter = () => import("./routes-Ia1sMc23.mjs");
3244
+ var $$splitComponentImporter = () => import("./routes-DGf2MDLT.mjs");
3204
3245
  var indexSearchSchema = object({ session: string().optional() });
3205
3246
  var Route = createFileRoute("/")({
3206
3247
  validateSearch: indexSearchSchema,