@photon-ai/pho-ui 4.18.6 → 4.20.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.
@@ -1,33 +1,31 @@
1
1
  "use client";
2
2
  import { t as n } from "./cn-CPbhpG1q.js";
3
- import { FADE_SWAP as _ } from "../motion.js";
4
- import { n as y } from "./spinner-BSutFL4l.js";
3
+ import { FADE_SWAP as y } from "../motion.js";
4
+ import { n as _ } from "./spinner-BSutFL4l.js";
5
5
  import { a as b } from "./button-CLfWdqm-.js";
6
- import { t as i } from "./createReactComponent-yKZn9MIX.js";
6
+ import { t as s } from "./createReactComponent-yKZn9MIX.js";
7
7
  import { t as w } from "./IconX-DnPlFC68.js";
8
- import { n as k } from "./scroll-area-Dhl5hqay.js";
8
+ import { t as k } from "./IconAlertTriangleFilled-QV-gsVQW.js";
9
+ import { n as T } from "./scroll-area-Dhl5hqay.js";
9
10
  import "react";
10
- import { jsx as t, jsxs as l } from "react/jsx-runtime";
11
- import { AnimatePresence as z, motion as T, useReducedMotion as N } from "motion/react";
11
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
12
+ import { AnimatePresence as z, motion as N, useReducedMotion as A } from "motion/react";
12
13
  import { Toast as o } from "@base-ui/react/toast";
13
- var A = [["path", {
14
+ var C = [["path", {
14
15
  d: "M14.897 1a4 4 0 0 1 2.664 1.016l.165 .156l4.1 4.1a4 4 0 0 1 1.168 2.605l.006 .227v5.794a4 4 0 0 1 -1.016 2.664l-.156 .165l-4.1 4.1a4 4 0 0 1 -2.603 1.168l-.227 .006h-5.795a3.999 3.999 0 0 1 -2.664 -1.017l-.165 -.156l-4.1 -4.1a4 4 0 0 1 -1.168 -2.604l-.006 -.227v-5.794a4 4 0 0 1 1.016 -2.664l.156 -.165l4.1 -4.1a4 4 0 0 1 2.605 -1.168l.227 -.006h5.793zm-2.887 14l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z",
15
16
  key: "svg-0"
16
- }]], C = i("filled", "alert-octagon-filled", "AlertOctagonFilled", A), M = [["path", {
17
- d: "M12 1.67c.955 0 1.845 .467 2.39 1.247l.105 .16l8.114 13.548a2.914 2.914 0 0 1 -2.307 4.363l-.195 .008h-16.225a2.914 2.914 0 0 1 -2.582 -4.2l.099 -.185l8.11 -13.538a2.914 2.914 0 0 1 2.491 -1.403zm.01 13.33l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -7a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z",
18
- key: "svg-0"
19
- }]], P = i("filled", "alert-triangle-filled", "AlertTriangleFilled", M), F = [["path", {
17
+ }]], P = s("filled", "alert-octagon-filled", "AlertOctagonFilled", C), M = [["path", {
20
18
  d: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z",
21
19
  key: "svg-0"
22
- }]], I = i("filled", "circle-check-filled", "CircleCheckFilled", F), S = [["path", {
20
+ }]], F = s("filled", "circle-check-filled", "CircleCheckFilled", M), I = [["path", {
23
21
  d: "M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm0 9h-1l-.117 .007a1 1 0 0 0 0 1.986l.117 .007v3l.007 .117a1 1 0 0 0 .876 .876l.117 .007h1l.117 -.007a1 1 0 0 0 .876 -.876l.007 -.117l-.007 -.117a1 1 0 0 0 -.764 -.857l-.112 -.02l-.117 -.006v-3l-.007 -.117a1 1 0 0 0 -.876 -.876l-.117 -.007zm.01 -3l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
24
22
  key: "svg-0"
25
- }]], Y = i("filled", "info-circle-filled", "InfoCircleFilled", S), X = _, c = o.Provider, d = o.Portal, p = o.Action, $ = o.useToastManager, O = o.createToastManager, R = {
26
- success: I,
27
- error: C,
28
- warning: P,
29
- info: Y
30
- }, D = {
23
+ }]], S = s("filled", "info-circle-filled", "InfoCircleFilled", I), Y = y, c = o.Provider, d = o.Portal, p = o.Action, X = o.useToastManager, $ = o.createToastManager, O = {
24
+ success: F,
25
+ error: P,
26
+ warning: k,
27
+ info: S
28
+ }, R = {
31
29
  success: "bg-[color-mix(in_oklab,var(--text-color-pho-success)_7%,transparent)]",
32
30
  error: "bg-[color-mix(in_oklab,var(--text-color-pho-error)_7%,transparent)]",
33
31
  warning: "bg-[color-mix(in_oklab,var(--text-color-pho-warning)_7%,transparent)]",
@@ -71,36 +69,36 @@ function u({ className: a, ...e }) {
71
69
  ...e
72
70
  });
73
71
  }
74
- function j({ type: a }) {
75
- if (a === "loading") return /* @__PURE__ */ t(y, {
72
+ function D({ type: a }) {
73
+ if (a === "loading") return /* @__PURE__ */ t(_, {
76
74
  "aria-hidden": !0,
77
75
  className: "mb-2 size-6 shrink-0"
78
76
  });
79
- const e = a != null ? R[a] : void 0;
77
+ const e = a != null ? O[a] : void 0;
80
78
  return e == null ? null : /* @__PURE__ */ t(e, {
81
79
  "aria-hidden": !0,
82
80
  "data-toast-icon": !0,
83
81
  className: "mb-2 size-6 shrink-0"
84
82
  });
85
83
  }
86
- function W() {
87
- const { toasts: a, close: e } = o.useToastManager(), s = N() ? "blur(0px)" : `blur(${k}px)`;
88
- return a.map((r) => /* @__PURE__ */ l(h, {
84
+ function j() {
85
+ const { toasts: a, close: e } = o.useToastManager(), l = A() ? "blur(0px)" : `blur(${T}px)`;
86
+ return a.map((r) => /* @__PURE__ */ i(h, {
89
87
  toast: r,
90
88
  children: [
91
89
  /* @__PURE__ */ t("div", {
92
90
  "aria-hidden": !0,
93
- className: n("pointer-events-none absolute inset-0 rounded-[inherit] transition-colors duration-200 ease-out", r.type != null ? D[r.type] : void 0)
91
+ className: n("pointer-events-none absolute inset-0 rounded-[inherit] transition-colors duration-200 ease-out", r.type != null ? R[r.type] : void 0)
94
92
  }),
95
93
  /* @__PURE__ */ t(v, { children: /* @__PURE__ */ t("span", {
96
94
  className: "grid",
97
95
  children: /* @__PURE__ */ t(z, {
98
96
  initial: !1,
99
- children: /* @__PURE__ */ l(T.div, {
97
+ children: /* @__PURE__ */ i(N.div, {
100
98
  className: "flex min-w-0 flex-col [grid-area:1/1]",
101
99
  initial: {
102
100
  opacity: 0,
103
- filter: s
101
+ filter: l
104
102
  },
105
103
  animate: {
106
104
  opacity: 1,
@@ -108,11 +106,11 @@ function W() {
108
106
  },
109
107
  exit: {
110
108
  opacity: 0,
111
- filter: s
109
+ filter: l
112
110
  },
113
- transition: X,
111
+ transition: Y,
114
112
  children: [
115
- /* @__PURE__ */ t(j, { type: r.type }),
113
+ /* @__PURE__ */ t(D, { type: r.type }),
116
114
  /* @__PURE__ */ t(f, { children: r.title }),
117
115
  /* @__PURE__ */ t(x, { children: r.description }),
118
116
  r.actionProps != null ? /* @__PURE__ */ t(p, {
@@ -139,9 +137,9 @@ function W() {
139
137
  }, r.id));
140
138
  }
141
139
  function Z({ children: a, toastManager: e }) {
142
- return /* @__PURE__ */ l(c, {
140
+ return /* @__PURE__ */ i(c, {
143
141
  toastManager: e,
144
- children: [a, /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(W, {}) }) })]
142
+ children: [a, /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(j, {}) }) })]
145
143
  });
146
144
  }
147
145
  var tt = {
@@ -154,12 +152,12 @@ var tt = {
154
152
  Description: x,
155
153
  Close: u,
156
154
  Action: p,
157
- useToastManager: $,
158
- createToastManager: O
155
+ useToastManager: X,
156
+ createToastManager: $
159
157
  };
160
158
  export {
161
159
  Z as n,
162
160
  tt as t
163
161
  };
164
162
 
165
- //# sourceMappingURL=toast-DrLKzrDJ.js.map
163
+ //# sourceMappingURL=toast-B3oURNJC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-B3oURNJC.js","names":["__iconNode","__iconNode","BaseToast","Toast","cn","FADE_SWAP","Spinner","Button","createReactComponent","IconX","IconAlertTriangleFilled","BLUR_MAX_PX","jsx","jsxs","AnimatePresence","motion","useReducedMotion","Toast","__iconNode$2","IconAlertOctagonFilled","__iconNode$1","IconCircleCheckFilled","__iconNode","IconInfoCircleFilled","FACE_SWAP","Provider","Portal","Action","useToastManager","createToastManager","TOAST_ICONS","TOAST_WASH","Viewport","className","props","Root","Content","Title","Description","Close","TypeIcon","type","Glyph","ToastyList","toasts","close","blurAway","toast","event","Toasty","children","toastManager","Toast$1"],"sources":["../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertOctagonFilled.mjs","../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleCheckFilled.mjs","../../../../node_modules/.pnpm/@tabler+icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircleFilled.mjs","../../src/components/toast/toast.tsx"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M14.897 1a4 4 0 0 1 2.664 1.016l.165 .156l4.1 4.1a4 4 0 0 1 1.168 2.605l.006 .227v5.794a4 4 0 0 1 -1.016 2.664l-.156 .165l-4.1 4.1a4 4 0 0 1 -2.603 1.168l-.227 .006h-5.795a3.999 3.999 0 0 1 -2.664 -1.017l-.165 -.156l-4.1 -4.1a4 4 0 0 1 -1.168 -2.604l-.006 -.227v-5.794a4 4 0 0 1 1.016 -2.664l.156 -.165l4.1 -4.1a4 4 0 0 1 2.605 -1.168l.227 -.006h5.793zm-2.887 14l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z\", \"key\": \"svg-0\" }]];\nconst IconAlertOctagonFilled = createReactComponent(\"filled\", \"alert-octagon-filled\", \"AlertOctagonFilled\", __iconNode);\n\nexport { __iconNode, IconAlertOctagonFilled as default };\n","/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z\", \"key\": \"svg-0\" }]];\nconst IconCircleCheckFilled = createReactComponent(\"filled\", \"circle-check-filled\", \"CircleCheckFilled\", __iconNode);\n\nexport { __iconNode, IconCircleCheckFilled as default };\n","/**\n * @license @tabler/icons-react v3.49.0 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm0 9h-1l-.117 .007a1 1 0 0 0 0 1.986l.117 .007v3l.007 .117a1 1 0 0 0 .876 .876l.117 .007h1l.117 -.007a1 1 0 0 0 .876 -.876l.007 -.117l-.007 -.117a1 1 0 0 0 -.764 -.857l-.112 -.02l-.117 -.006v-3l-.007 -.117a1 1 0 0 0 -.876 -.876l-.117 -.007zm.01 -3l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z\", \"key\": \"svg-0\" }]];\nconst IconInfoCircleFilled = createReactComponent(\"filled\", \"info-circle-filled\", \"InfoCircleFilled\", __iconNode);\n\nexport { __iconNode, IconInfoCircleFilled as default };\n","import { type ComponentProps, type ElementType, type ReactNode } from \"react\";\nimport { FADE_SWAP } from \"../../motion\";\nimport { Toast as BaseToast } from \"@base-ui/react/toast\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\nimport {\n IconAlertOctagonFilled,\n IconAlertTriangleFilled,\n IconCircleCheckFilled,\n IconInfoCircleFilled,\n IconX,\n type Icon,\n} from \"@tabler/icons-react\";\nimport { BLUR_MAX_PX } from \"../scroll-area\";\nimport { Button } from \"../button\";\nimport { Spinner } from \"../spinner\";\nimport { cn } from \"../../utils/cn\";\n\n/** Override Base UI's `string | (state) => string` className with plain string. */\ntype StyledProps<T extends ElementType> = Omit<\n ComponentProps<T>,\n \"className\"\n> & {\n className?: string;\n};\n\n/** The system's swap: fade through the 1px soft focus, ease-out. */\nconst FACE_SWAP = FADE_SWAP;\n\nconst Provider = BaseToast.Provider;\nconst Portal = BaseToast.Portal;\nconst Action = BaseToast.Action;\n\n/** Imperative toast API: `const toast = useToastManager(); toast.add({ title })`. */\nconst useToastManager = BaseToast.useToastManager;\nconst createToastManager = BaseToast.createToastManager;\n\n/**\n * Status glyphs per toast `type` (Kumo's set in Tabler's hand): the glyph\n * and the title take the status ink, the hairline tints with it, and a\n * translucent wash of the same ink sits over the surface. `info` speaks\n * in the brand ink — Pho has no separate info hue. `loading` is what\n * `manager.promise` shows while the work runs.\n */\nconst TOAST_ICONS: Record<string, Icon> = {\n success: IconCircleCheckFilled,\n error: IconAlertOctagonFilled,\n warning: IconAlertTriangleFilled,\n info: IconInfoCircleFilled,\n};\n\nconst TOAST_WASH: Record<string, string> = {\n success:\n \"bg-[color-mix(in_oklab,var(--text-color-pho-success)_7%,transparent)]\",\n error: \"bg-[color-mix(in_oklab,var(--text-color-pho-error)_7%,transparent)]\",\n warning:\n \"bg-[color-mix(in_oklab,var(--text-color-pho-warning)_7%,transparent)]\",\n info: \"bg-[color-mix(in_oklab,var(--text-color-pho-brand)_7%,transparent)]\",\n};\n\nfunction Viewport({\n className,\n ...props\n}: StyledProps<typeof BaseToast.Viewport>) {\n return (\n <BaseToast.Viewport\n // The stack's anchor box; the cards position themselves absolutely\n // against its bottom edge, and hovering any card expands the stack.\n className={cn(\n \"fixed right-4 bottom-4 z-50 flex w-[calc(100%-2rem)] outline-none sm:w-[22rem]\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Root({ className, ...props }: StyledProps<typeof BaseToast.Root>) {\n return (\n <BaseToast.Root\n className={cn(\n // Floating layer: keeps its elevation shadow, sits on the card surface\n // with the site hairline (ring-pho-secondary).\n \"bg-pho-primary text-pho-primary shadow-pho-lg ring-pho-secondary rounded-base absolute right-0 bottom-0 w-full origin-bottom ring-1 select-none ring-inset\",\n // Kumo's stack math on Base UI's variables: a 12px gap folded into\n // the expanded offsets, a 12px peek and −10% scale per depth at\n // rest, the newest card on top.\n \"[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]\",\n \"[--offset-y:calc(var(--toast-offset-y)*-1+var(--toast-index)*var(--gap)*-1+var(--toast-swipe-movement-y,0px))]\",\n \"[z-index:calc(1000-var(--toast-index))] h-[var(--height)]\",\n \"[transform:translateX(var(--toast-swipe-movement-x,0px))_translateY(calc(var(--toast-swipe-movement-y,0px)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))]\",\n \"[transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s,height_0.15s,box-shadow_0.2s_ease-out]\",\n // Invisible bridge below each card so the hover survives the gaps.\n \"after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']\",\n // Hovering (or focusing) the stack expands it into a true list.\n \"data-[expanded]:h-[var(--toast-height)] data-[expanded]:[transform:translateX(var(--toast-swipe-movement-x,0px))_translateY(var(--offset-y))]\",\n // Beyond the provider's limit a card parks invisibly until room frees.\n \"data-[limited]:opacity-0\",\n // In from below; out along the swipe, or back down when timed out.\n \"data-[starting-style]:[transform:translateY(150%)]\",\n \"data-[ending-style]:opacity-0\",\n \"[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]\",\n \"data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y,0px)+150%))]\",\n \"data-[ending-style]:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y,0px)-150%))]\",\n \"data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x,0px)-150%))_translateY(var(--offset-y))]\",\n \"data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x,0px)+150%))_translateY(var(--offset-y))]\",\n \"data-[swiping]:[transition:none]\",\n // Status inks: hairline, glyph, and title tint together per type.\n \"data-[type=success]:[&_[data-toast-icon]]:text-pho-success data-[type=success]:[&_[data-toast-title]]:text-pho-success data-[type=success]:[&_[data-toast-action]]:text-pho-success data-[type=success]:[&_[data-toast-close]]:text-pho-success data-[type=success]:ring-[color-mix(in_oklab,var(--text-color-pho-success)_45%,transparent)] data-[type=success]:[&_[data-toast-action]]:ring-[color-mix(in_oklab,var(--text-color-pho-success)_45%,transparent)]\",\n \"data-[type=error]:[&_[data-toast-icon]]:text-pho-error data-[type=error]:[&_[data-toast-title]]:text-pho-error data-[type=error]:[&_[data-toast-action]]:text-pho-error data-[type=error]:[&_[data-toast-close]]:text-pho-error data-[type=error]:ring-[color-mix(in_oklab,var(--text-color-pho-error)_45%,transparent)] data-[type=error]:[&_[data-toast-action]]:ring-[color-mix(in_oklab,var(--text-color-pho-error)_45%,transparent)]\",\n \"data-[type=warning]:[&_[data-toast-icon]]:text-pho-warning data-[type=warning]:[&_[data-toast-title]]:text-pho-warning data-[type=warning]:[&_[data-toast-action]]:text-pho-warning data-[type=warning]:[&_[data-toast-close]]:text-pho-warning data-[type=warning]:ring-[color-mix(in_oklab,var(--text-color-pho-warning)_45%,transparent)] data-[type=warning]:[&_[data-toast-action]]:ring-[color-mix(in_oklab,var(--text-color-pho-warning)_45%,transparent)]\",\n \"data-[type=info]:[&_[data-toast-icon]]:text-pho-brand data-[type=info]:[&_[data-toast-title]]:text-pho-brand data-[type=info]:[&_[data-toast-action]]:text-pho-brand data-[type=info]:[&_[data-toast-close]]:text-pho-brand data-[type=info]:ring-[color-mix(in_oklab,var(--text-color-pho-brand)_45%,transparent)] data-[type=info]:[&_[data-toast-action]]:ring-[color-mix(in_oklab,var(--text-color-pho-brand)_45%,transparent)]\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Content({\n className,\n ...props\n}: StyledProps<typeof BaseToast.Content>) {\n return (\n <BaseToast.Content\n // Cards behind the front one show only their peeking edge — the\n // words appear when the stack expands.\n className={cn(\n \"isolate flex flex-col p-4 pr-10 transition-opacity [transition-duration:250ms]\",\n \"data-[behind]:pointer-events-none data-[behind]:opacity-0 data-[expanded]:pointer-events-auto data-[expanded]:opacity-100\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction Title({ className, ...props }: StyledProps<typeof BaseToast.Title>) {\n return (\n <BaseToast.Title\n data-toast-title\n className={cn(\"text-pho-primary text-md font-medium\", className)}\n {...props}\n />\n );\n}\n\nfunction Description({\n className,\n ...props\n}: StyledProps<typeof BaseToast.Description>) {\n return (\n <BaseToast.Description\n className={cn(\"text-pho-description text-md\", className)}\n {...props}\n />\n );\n}\n\nfunction Close({ className, ...props }: StyledProps<typeof BaseToast.Close>) {\n return (\n <BaseToast.Close\n data-toast-close\n className={cn(\n \"text-pho-secondary hover:text-pho-secondary-hover hover:bg-pho-ghost-hover outline-pho-brand absolute top-2.5 right-2.5 flex size-6 cursor-pointer items-center justify-center rounded-sm transition focus-visible:outline-2 [&>svg]:size-4\",\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * The status glyph for a typed toast — its own row above the title, the\n * Dialog header's arrangement at card scale, an 8px breath before the\n * title. `loading` shows the spinner.\n */\nfunction TypeIcon({ type }: { type?: string }) {\n if (type === \"loading\") {\n return <Spinner aria-hidden className=\"mb-2 size-6 shrink-0\" />;\n }\n const Glyph = type != null ? TOAST_ICONS[type] : undefined;\n if (Glyph == null) return null;\n return <Glyph aria-hidden data-toast-icon className=\"mb-2 size-6 shrink-0\" />;\n}\n\nfunction ToastyList() {\n const { toasts, close } = BaseToast.useToastManager();\n const reduceMotion = useReducedMotion();\n const blurAway = reduceMotion ? \"blur(0px)\" : `blur(${BLUR_MAX_PX}px)`;\n return toasts.map((toast) => (\n <Root key={toast.id} toast={toast}>\n {/* The status wash: a breath of the status ink over the surface. */}\n <div\n aria-hidden\n className={cn(\n \"pointer-events-none absolute inset-0 rounded-[inherit] transition-colors duration-200 ease-out\",\n toast.type != null ? TOAST_WASH[toast.type] : undefined,\n )}\n />\n <Content>\n {/* One grid cell, faces stacked: when a promise walks the card\n from loading to its outcome, the old face fades out through\n the system's soft focus exactly where the new one fades in —\n the values ride each face, so the goer keeps its words. */}\n <span className=\"grid\">\n <AnimatePresence initial={false}>\n <motion.div\n key={`${toast.type ?? \"\"}|${String(toast.title ?? \"\")}`}\n className=\"flex min-w-0 flex-col [grid-area:1/1]\"\n initial={{ opacity: 0, filter: blurAway }}\n animate={{ opacity: 1, filter: \"blur(0px)\" }}\n exit={{ opacity: 0, filter: blurAway }}\n transition={FACE_SWAP}\n >\n <TypeIcon type={toast.type} />\n <Title>{toast.title}</Title>\n <Description>{toast.description}</Description>\n {toast.actionProps != null ? (\n <Action\n data-toast-action\n render={<Button variant=\"outlined\" size=\"sm\" />}\n className=\"mt-2 self-start\"\n onClick={(event) => {\n toast.actionProps?.onClick?.(event);\n close(toast.id);\n }}\n >\n {toast.actionProps.children}\n </Action>\n ) : null}\n </motion.div>\n </AnimatePresence>\n </span>\n </Content>\n <Close aria-label=\"Dismiss\">\n <IconX />\n </Close>\n </Root>\n ));\n}\n\n/**\n * Toasty — the whole toast system in one wrapper, Kumo-shaped: provider,\n * portal, viewport, and the stacked card list with status variants. Wrap\n * the app once and call `Toast.useToastManager().add({ title, type })`\n * from any child; pass a `toastManager` from `createToastManager()` so\n * code outside the tree (a form's auto-save, a query cache) can speak\n * through the same lane. `manager.promise` shows loading → success/error\n * with the matching glyphs.\n */\nexport function Toasty({\n children,\n toastManager,\n}: {\n children?: ReactNode;\n toastManager?: ComponentProps<typeof BaseToast.Provider>[\"toastManager\"];\n}) {\n return (\n <Provider toastManager={toastManager}>\n {children}\n <Portal>\n <Viewport>\n <ToastyList />\n </Viewport>\n </Portal>\n </Provider>\n );\n}\n\n/**\n * Toast built on Base UI `Toast` — transient, non-blocking notifications\n * in a sonner-style stack, styled after Cloudflare's Kumo: at rest the\n * cards collapse into a peek (12px rise and −10% scale per depth, words\n * hidden behind the front card), expand into a true list with a 12px gap\n * on hover or focus, swipe to dismiss, three visible at most. `type`\n * (`success` / `error` / `warning` / `info` / `loading`) tints hairline,\n * glyph, and title together. Reach for `Toasty` unless you need to\n * compose the parts yourself.\n */\nexport const Toast = {\n Provider,\n Portal,\n Viewport,\n Root,\n Content,\n Title,\n Description,\n Close,\n Action,\n useToastManager,\n createToastManager,\n};\n"],"ignoreList":[0,1,2],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as t, t as a } from "../chunks/card-zyRAihYE.js";
2
+ import { n as t, t as a } from "../chunks/card-Bg2V2B0x.js";
3
3
  export {
4
4
  a as CARD_SURFACE,
5
5
  t as Card
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { a, c as s, i as t, l as e, n as o, o as i, r as E, s as p, t as l } from "../chunks/error-yAVi4cBu.js";
2
+ import { a as r, c as s, i as t, l as e, n as i, o, r as E, s as n, t as p, u as l } from "../chunks/error-BObcQClz.js";
3
3
  export {
4
- l as Error,
5
- o as ErrorView,
6
- E as GENERIC_ERROR_TITLE,
7
- t as capitalizeFirst,
8
- a as describeError,
9
- i as httpReasonPhrase,
10
- p as httpStatusExplanation,
11
- s as isProblem,
12
- e as parseProblem
4
+ p as Error,
5
+ i as ErrorView,
6
+ t as GENERIC_ERROR_TITLE,
7
+ E as Warning,
8
+ r as capitalizeFirst,
9
+ o as describeError,
10
+ n as httpReasonPhrase,
11
+ s as httpStatusExplanation,
12
+ e as isProblem,
13
+ l as parseProblem
13
14
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as a, t as o } from "../chunks/stat-BXBfMQ9Q.js";
2
+ import { n as a, t as o } from "../chunks/stat-VxA1SvS_.js";
3
3
  export {
4
4
  o as Stat,
5
5
  a as StatGroup
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as o, t as s } from "../chunks/toast-DrLKzrDJ.js";
2
+ import { n as o, t as s } from "../chunks/toast-B3oURNJC.js";
3
3
  export {
4
4
  s as Toast,
5
5
  o as Toasty
package/dist/index.js CHANGED
@@ -4,81 +4,81 @@ import { t as r } from "./chunks/is-react-component-DSnjtBmo.js";
4
4
  import { t as e } from "./chunks/resolve-variant-CcD8iG5l.js";
5
5
  import { n as S, t as E } from "./chunks/link-provider-DXzDQ08N.js";
6
6
  import { BAR_RISE_PX as n, BLUR_PX as m, EASE_POP as A, EASE_STACK as I, FADE_ENTRANCE as T, FADE_SWAP as p, PRESS_SCALE as R, PRESS_SCALE_ROW as l, RISE_PX as C, SPAN_SCALE as u, SPRING_ENTRANCE as B, SPRING_PRESS as f, SPRING_PRESS_INLINE as N, SPRING_PRESS_QUICK as L, SPRING_SETTLE as P, TRAVEL_LINEAR as c, fadeThroughBlur as D, revealIn as O, riseIn as d } from "./motion.js";
7
- import { n as g, r as h, t as G } from "./chunks/use-press-pulse-IbNstUT0.js";
7
+ import { n as V, r as h, t as G } from "./chunks/use-press-pulse-IbNstUT0.js";
8
8
  import { n as M, t as b } from "./chunks/use-copy-D6JwKUll.js";
9
9
  import "./utils.js";
10
10
  import { a as k, c as w, d as W, i as y, l as H, n as K, o as x, r as z, s as X, t as Y, u as Z } from "./chunks/button-CLfWdqm-.js";
11
- import { a as J, c as Q, i as q, l as $, n as aa, o as sa, r as ta, s as ra, t as oa } from "./chunks/error-yAVi4cBu.js";
12
- import { t as ia } from "./chunks/chat-ZUzGmTWE.js";
13
- import { A as Ea, B as _a, C as na, D as ma, E as Aa, F as Ia, I as Ta, L as pa, M as Ra, N as la, O as Ca, P as ua, R as Ba, S as fa, T as Na, V as La, _ as Pa, a as ca, b as Da, c as Oa, d as da, f as Va, g as ga, h as ha, i as Ga, j as Ua, k as Ma, l as ba, m as Fa, n as va, o as ka, p as wa, r as Wa, s as ya, t as Ha, u as Ka, v as xa, w as za, x as Xa, y as Ya, z as Za } from "./chunks/trace-D9F0sne7.js";
14
- import { a as Ja, c as Qa, d as qa, i as $a, l as as, n as ss, o as ts, r as rs, s as os, t as es, u as is } from "./chunks/code-block-Yxg2wZGJ.js";
15
- import { n as Es, t as _s } from "./chunks/date-picker-vJQrTol9.js";
16
- import { n as ms, t as As } from "./chunks/copy-button-BLvirhXk.js";
17
- import { a as Ts, c as ps, d as Rs, i as ls, l as Cs, n as us, o as Bs, r as fs, s as Ns, t as Ls, u as Ps } from "./chunks/sidebar-CgaSEWVr.js";
18
- import { t as Ds } from "./chunks/input-DWnb33UF.js";
19
- import { i as ds, n as Vs, r as gs, t as hs } from "./chunks/filter-bar-qqCZf1x4.js";
20
- import { i as Us } from "./chunks/data-table-CAz_8HQw.js";
21
- import { n as bs, t as Fs } from "./chunks/stat-BXBfMQ9Q.js";
22
- import { t as ks } from "./chunks/calendar-DDWITGo4.js";
23
- import { t as Ws } from "./chunks/close-button-Ck4rY1Fp.js";
24
- import { t as Hs } from "./chunks/input-group-C3upo2OU.js";
25
- import { n as xs, t as zs } from "./chunks/card-zyRAihYE.js";
26
- import { n as Ys, t as Zs } from "./chunks/dialog-DORIrfyJ.js";
27
- import { i as Js, n as Qs, r as qs, t as $s } from "./chunks/status-view-I_Y6eEyX.js";
28
- import { t as st } from "./chunks/description-list-Duhhralt.js";
29
- import { a as rt, c as ot, d as et, f as it, i as St, l as Et, m as _t, n as nt, o as mt, p as At, r as It, s as Tt, t as pt, u as Rt } from "./chunks/basic-page-BKvtEQkZ.js";
30
- import { a as Ct, i as ut, n as Bt, o as ft, r as Nt, s as Lt, t as Pt } from "./chunks/chart-Btnw7KXV.js";
11
+ import { a as J, c as Q, i as q, l as $, n as aa, o as sa, r as ta, s as ra, t as oa, u as ea } from "./chunks/error-BObcQClz.js";
12
+ import { t as Sa } from "./chunks/chat-ZUzGmTWE.js";
13
+ import { A as _a, B as na, C as ma, D as Aa, E as Ia, F as Ta, I as pa, L as Ra, M as la, N as Ca, O as ua, P as Ba, R as fa, S as Na, T as La, V as Pa, _ as ca, a as Da, b as Oa, c as da, d as ga, f as Va, g as ha, h as Ga, i as Ua, j as Ma, k as ba, l as Fa, m as va, n as ka, o as wa, p as Wa, r as ya, s as Ha, t as Ka, u as xa, v as za, w as Xa, x as Ya, y as Za, z as ja } from "./chunks/trace-D9F0sne7.js";
14
+ import { a as Qa, c as qa, d as $a, i as as, l as ss, n as ts, o as rs, r as os, s as es, t as is, u as Ss } from "./chunks/code-block-Yxg2wZGJ.js";
15
+ import { n as _s, t as ns } from "./chunks/date-picker-vJQrTol9.js";
16
+ import { n as As, t as Is } from "./chunks/copy-button-BLvirhXk.js";
17
+ import { a as ps, c as Rs, d as ls, i as Cs, l as us, n as Bs, o as fs, r as Ns, s as Ls, t as Ps, u as cs } from "./chunks/sidebar-CgaSEWVr.js";
18
+ import { t as Os } from "./chunks/input-DWnb33UF.js";
19
+ import { i as gs, n as Vs, r as hs, t as Gs } from "./chunks/filter-bar-qqCZf1x4.js";
20
+ import { i as Ms } from "./chunks/data-table-CAz_8HQw.js";
21
+ import { n as Fs, t as vs } from "./chunks/stat-VxA1SvS_.js";
22
+ import { t as ws } from "./chunks/calendar-DDWITGo4.js";
23
+ import { t as ys } from "./chunks/close-button-Ck4rY1Fp.js";
24
+ import { t as Ks } from "./chunks/input-group-C3upo2OU.js";
25
+ import { n as zs, t as Xs } from "./chunks/card-Bg2V2B0x.js";
26
+ import { n as Zs, t as js } from "./chunks/dialog-DORIrfyJ.js";
27
+ import { i as Qs, n as qs, r as $s, t as at } from "./chunks/status-view-I_Y6eEyX.js";
28
+ import { t as tt } from "./chunks/description-list-Duhhralt.js";
29
+ import { a as ot, c as et, d as it, f as St, i as Et, l as _t, m as nt, n as mt, o as At, p as It, r as Tt, s as pt, t as Rt, u as lt } from "./chunks/basic-page-DTomHxEo.js";
30
+ import { a as ut, i as Bt, n as ft, o as Nt, r as Lt, s as Pt, t as ct } from "./chunks/chart-Btnw7KXV.js";
31
31
  import "./components/chart.js";
32
- import { t as Ot } from "./chunks/bar-chart-ZNuOoH7c.js";
32
+ import { t as dt } from "./chunks/bar-chart-ZNuOoH7c.js";
33
33
  import { t as Vt } from "./chunks/line-chart-pOwE2_Oz.js";
34
- import { i as ht, n as Gt, r as Ut, t as Mt } from "./chunks/log-list-QbSYHZu3.js";
35
- import { n as Ft, t as vt } from "./chunks/bubble-D88Edlgj.js";
36
- import { n as wt, r as Wt, t as yt } from "./chunks/message-DRAWQlW-.js";
34
+ import { i as Gt, n as Ut, r as Mt, t as bt } from "./chunks/log-list-QbSYHZu3.js";
35
+ import { n as vt, t as kt } from "./chunks/bubble-D88Edlgj.js";
36
+ import { n as Wt, r as yt, t as Ht } from "./chunks/message-DRAWQlW-.js";
37
37
  export {
38
- pt as AUTO_SAVE_DELAY_MS,
38
+ Rt as AUTO_SAVE_DELAY_MS,
39
39
  n as BAR_RISE_PX,
40
- nt as BASIC_PAGE_CALLOUT,
41
- It as BASIC_PAGE_CARD,
42
- St as BASIC_PAGE_ITEM,
43
- rt as BASIC_PAGE_ITEM_PANEL,
44
- mt as BASIC_PAGE_ITEM_PANEL_DIVIDED,
45
- Tt as BASIC_PAGE_ROW,
40
+ mt as BASIC_PAGE_CALLOUT,
41
+ Tt as BASIC_PAGE_CARD,
42
+ Et as BASIC_PAGE_ITEM,
43
+ ot as BASIC_PAGE_ITEM_PANEL,
44
+ At as BASIC_PAGE_ITEM_PANEL_DIVIDED,
45
+ pt as BASIC_PAGE_ROW,
46
46
  m as BLUR_PX,
47
- vt as BUBBLE_VARIANTS,
47
+ kt as BUBBLE_VARIANTS,
48
48
  Y as BUTTON_COLORS,
49
49
  K as BUTTON_SHAPES,
50
50
  z as BUTTON_SIZES,
51
51
  y as BUTTON_VARIANTS,
52
- Ot as BarChart,
53
- ot as BasicPage,
54
- Ft as Bubble,
52
+ dt as BarChart,
53
+ et as BasicPage,
54
+ vt as Bubble,
55
55
  k as Button,
56
56
  x as ButtonLink,
57
- zs as CARD_SURFACE,
58
- ft as CHART_SLOTS,
59
- as as CODE_GRAMMARS,
60
- Qa as CODE_TOKEN_CLASS,
61
- Et as CONDENSE_BAR_ENTER,
62
- Rt as CONDENSE_BAR_RISE_PX,
63
- et as CONDENSE_BAR_TRAVEL,
57
+ Xs as CARD_SURFACE,
58
+ Nt as CHART_SLOTS,
59
+ ss as CODE_GRAMMARS,
60
+ qa as CODE_TOKEN_CLASS,
61
+ _t as CONDENSE_BAR_ENTER,
62
+ lt as CONDENSE_BAR_RISE_PX,
63
+ it as CONDENSE_BAR_TRAVEL,
64
64
  G as CONTROL_PRESS_SCALE,
65
- g as CONTROL_PRESS_SPRING,
66
- As as COPY_BUTTON_SIZES,
65
+ V as CONTROL_PRESS_SPRING,
66
+ Is as COPY_BUTTON_SIZES,
67
67
  b as COPY_FEEDBACK_MS,
68
- ks as Calendar,
69
- xs as Card,
70
- Pt as Chart,
71
- Bt as ChartBar,
72
- ut as ChartLegend,
73
- Nt as ChartLine,
74
- Ct as ChartSwatch,
75
- ia as Chat,
76
- Ws as CloseButton,
77
- es as CodeBlock,
78
- ms as CopyButton,
79
- _s as DatePicker,
80
- st as DescriptionList,
81
- Zs as Dialog,
68
+ ws as Calendar,
69
+ zs as Card,
70
+ ct as Chart,
71
+ ft as ChartBar,
72
+ Bt as ChartLegend,
73
+ Lt as ChartLine,
74
+ ut as ChartSwatch,
75
+ Sa as Chat,
76
+ ys as CloseButton,
77
+ is as CodeBlock,
78
+ As as CopyButton,
79
+ ns as DatePicker,
80
+ tt as DescriptionList,
81
+ js as Dialog,
82
82
  A as EASE_POP,
83
83
  I as EASE_STACK,
84
84
  X as EFFECT_BUTTON_SIZES,
@@ -88,120 +88,121 @@ export {
88
88
  aa as ErrorView,
89
89
  T as FADE_ENTRANCE,
90
90
  p as FADE_SWAP,
91
- hs as FILTER_DATE_PRESETS,
92
- na as FULL_VIEW,
91
+ Gs as FILTER_DATE_PRESETS,
92
+ ma as FULL_VIEW,
93
93
  Vs as FilterBar,
94
- ta as GENERIC_ERROR_TITLE,
95
- wa as GEN_AI_KINDS,
96
- Ds as Input,
97
- Hs as InputGroup,
98
- is as LANGUAGE_ALIASES,
94
+ q as GENERIC_ERROR_TITLE,
95
+ Wa as GEN_AI_KINDS,
96
+ Os as Input,
97
+ Ks as InputGroup,
98
+ Ss as LANGUAGE_ALIASES,
99
99
  Vt as LineChart,
100
100
  E as LinkProvider,
101
- Mt as LogList,
102
- za as MIN_VIEW_WIDTH,
103
- Wt as Message,
101
+ bt as LogList,
102
+ Xa as MIN_VIEW_WIDTH,
103
+ yt as Message,
104
104
  R as PRESS_SCALE,
105
105
  l as PRESS_SCALE_ROW,
106
106
  C as RISE_PX,
107
- Ls as SIDEBAR_HEADER_INSET,
108
- us as SIDEBAR_ITEM,
109
- fs as SIDEBAR_ITEM_ACTIVE,
110
- ls as SIDEBAR_ITEM_INACTIVE,
111
- Ts as SIDEBAR_ROOT,
112
- Bs as SIDEBAR_ROOT_BASE,
113
- Ns as SIDEBAR_ROOT_INSET,
114
- ps as SIDEBAR_SUBMENU_CHEVRON,
115
- Cs as SIDEBAR_SUBMENU_LIST_INDENT,
116
- Ps as SIDEBAR_SUBMENU_TRIGGER_CHILD_ACTIVE,
107
+ Ps as SIDEBAR_HEADER_INSET,
108
+ Bs as SIDEBAR_ITEM,
109
+ Ns as SIDEBAR_ITEM_ACTIVE,
110
+ Cs as SIDEBAR_ITEM_INACTIVE,
111
+ ps as SIDEBAR_ROOT,
112
+ fs as SIDEBAR_ROOT_BASE,
113
+ Ls as SIDEBAR_ROOT_INSET,
114
+ Rs as SIDEBAR_SUBMENU_CHEVRON,
115
+ us as SIDEBAR_SUBMENU_LIST_INDENT,
116
+ cs as SIDEBAR_SUBMENU_TRIGGER_CHILD_ACTIVE,
117
117
  u as SPAN_SCALE,
118
118
  B as SPRING_ENTRANCE,
119
119
  f as SPRING_PRESS,
120
120
  N as SPRING_PRESS_INLINE,
121
121
  L as SPRING_PRESS_QUICK,
122
122
  P as SPRING_SETTLE,
123
- $s as STATUS_VIEW,
124
- Qs as STATUS_VIEW_COPY,
125
- qs as STATUS_VIEW_SIZES,
126
- Rs as Sidebar,
127
- Da as SpanPrimitive,
128
- Fs as Stat,
129
- bs as StatGroup,
130
- Js as StatusView,
123
+ at as STATUS_VIEW,
124
+ qs as STATUS_VIEW_COPY,
125
+ $s as STATUS_VIEW_SIZES,
126
+ ls as Sidebar,
127
+ Oa as SpanPrimitive,
128
+ vs as Stat,
129
+ Fs as StatGroup,
130
+ Qs as StatusView,
131
131
  c as TRAVEL_LINEAR,
132
- Ha as Trace,
133
- Na as allCollapsed,
134
- Aa as ancestorIds,
135
- Fa as attribute,
136
- ha as attributeText,
137
- Ga as axisTicks,
138
- ca as barGeometry,
139
- ma as buildSpanTree,
132
+ Ka as Trace,
133
+ ta as Warning,
134
+ La as allCollapsed,
135
+ Ia as ancestorIds,
136
+ va as attribute,
137
+ Ga as attributeText,
138
+ Ua as axisTicks,
139
+ Da as barGeometry,
140
+ Aa as buildSpanTree,
140
141
  Z as buttonVariants,
141
- q as capitalizeFirst,
142
- Lt as chartColor,
143
- Ca as clampView,
142
+ J as capitalizeFirst,
143
+ Pt as chartColor,
144
+ ua as clampView,
144
145
  s as cn,
145
- Ma as collapseAllIds,
146
- Ea as collapseOneLevel,
147
- Us as createColumns,
148
- Ua as deriveSpanTree,
149
- J as describeError,
146
+ ba as collapseAllIds,
147
+ _a as collapseOneLevel,
148
+ Ms as createColumns,
149
+ Ma as deriveSpanTree,
150
+ sa as describeError,
150
151
  W as effectButtonVariants,
151
- Ra as expandOneLevel,
152
+ la as expandOneLevel,
152
153
  D as fadeThroughBlur,
153
- la as filterSpans,
154
- va as footerTotals,
155
- it as formToasts,
156
- Es as formatDateLabel,
157
- ka as formatDuration,
158
- gs as formatFilterValue,
159
- ya as formatTick,
160
- ga as genAIKind,
161
- rs as highlight,
162
- $a as highlightSync,
163
- sa as httpReasonPhrase,
164
- ra as httpStatusExplanation,
165
- ds as isFilterSet,
166
- ua as isFullView,
167
- Ja as isLanguageReady,
168
- Q as isProblem,
154
+ Ca as filterSpans,
155
+ ka as footerTotals,
156
+ St as formToasts,
157
+ _s as formatDateLabel,
158
+ wa as formatDuration,
159
+ hs as formatFilterValue,
160
+ Ha as formatTick,
161
+ ha as genAIKind,
162
+ os as highlight,
163
+ as as highlightSync,
164
+ ra as httpReasonPhrase,
165
+ Q as httpStatusExplanation,
166
+ gs as isFilterSet,
167
+ Ba as isFullView,
168
+ Qa as isLanguageReady,
169
+ $ as isProblem,
169
170
  r as isReactComponent,
170
- Oa as labeledTicks,
171
- ba as layoutTickLabels,
172
- Gt as logStatusColor,
173
- Ut as logStatusLabel,
174
- yt as messageStatusKey,
175
- Ka as niceStep,
176
- da as normalizeSpans,
177
- Ia as panView,
178
- $ as parseProblem,
179
- Pa as peerService,
180
- ts as preloadLanguage,
181
- qa as resolveGrammar,
171
+ da as labeledTicks,
172
+ Fa as layoutTickLabels,
173
+ Ut as logStatusColor,
174
+ Mt as logStatusLabel,
175
+ Ht as messageStatusKey,
176
+ xa as niceStep,
177
+ ga as normalizeSpans,
178
+ Ta as panView,
179
+ ea as parseProblem,
180
+ ca as peerService,
181
+ rs as preloadLanguage,
182
+ $a as resolveGrammar,
182
183
  e as resolveVariant,
183
184
  O as revealIn,
184
185
  d as riseIn,
185
- wt as shouldShowMessageStatus,
186
- xa as spanDecorationIcon,
186
+ Wt as shouldShowMessageStatus,
187
+ za as spanDecorationIcon,
187
188
  Va as spanDuration,
188
- Ya as spanPills,
189
- Ta as spanTimelineBarVars,
190
- ss as tokenizeJson,
191
- Wa as traceBulletInset,
192
- pa as traceRange,
193
- ht as truncateMiddle,
194
- At as useAutoSave,
195
- _t as useCondense,
189
+ Za as spanPills,
190
+ pa as spanTimelineBarVars,
191
+ ts as tokenizeJson,
192
+ ya as traceBulletInset,
193
+ Ra as traceRange,
194
+ Gt as truncateMiddle,
195
+ It as useAutoSave,
196
+ nt as useCondense,
196
197
  M as useCopy,
197
- Ys as useDialogPending,
198
- os as useHighlight,
198
+ Zs as useDialogPending,
199
+ es as useHighlight,
199
200
  S as useLinkComponent,
200
201
  h as usePressPulse,
201
- Xa as useSpan,
202
- fa as useSpanTree,
203
- Ba as viewFraction,
204
- Za as viewToRange,
205
- _a as visibleSpans,
206
- La as zoomView
202
+ Ya as useSpan,
203
+ Na as useSpanTree,
204
+ fa as viewFraction,
205
+ ja as viewToRange,
206
+ na as visibleSpans,
207
+ Pa as zoomView
207
208
  };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { i as s } from "../chunks/data-table-CAz_8HQw.js";
3
- import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-BKvtEQkZ.js";
3
+ import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-DTomHxEo.js";
4
4
  export {
5
5
  D as AUTO_SAVE_DELAY_MS,
6
6
  B as BASIC_PAGE_CALLOUT,
@@ -21,6 +21,27 @@ export declare function Error({ error, children, className, ...props }: ErrorPro
21
21
  export declare namespace Error {
22
22
  var displayName: string;
23
23
  }
24
+ export interface WarningProps extends Omit<ComponentProps<"output">, "children"> {
25
+ /** What to look at twice. Shows nothing while nullish. */
26
+ children?: ReactNode;
27
+ }
28
+ /**
29
+ * Warning — the inline `Error` line in warning ink, a triangle in place of
30
+ * the circle: something the user can go ahead with but may not mean (an
31
+ * address outside the team, a value that differs from the usual one). Same
32
+ * row, glyph seat and type as `Error`, so the two can take turns in one
33
+ * place. It doesn't stop anything, so it announces politely (an `output`,
34
+ * role `status`) and carries no details disclosure.
35
+ *
36
+ * A polite region is announced when its content changes, not when it is
37
+ * inserted, so the `output` stays mounted while the copy is nullish:
38
+ * empty and `sr-only`, the way pho-ui's other live regions sit, it keeps
39
+ * its role and, out of flow, adds no gap to a stack.
40
+ */
41
+ export declare function Warning({ children, className, ...props }: WarningProps): import('react').JSX.Element;
42
+ export declare namespace Warning {
43
+ var displayName: string;
44
+ }
24
45
  interface ErrorViewBaseProps {
25
46
  /** The caught value — a problem body, an `Error` wrapping one, or unknown. */
26
47
  error?: unknown;