@photon-ai/pho-ui 4.19.0 → 4.20.1
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 +1 -1
- package/dist/chunks/{basic-page-Cp7CccNN.js → basic-page-B78a6jpw.js} +10 -10
- package/dist/chunks/basic-page-B78a6jpw.js.map +1 -0
- package/dist/chunks/{card-zyRAihYE.js → card-Bg2V2B0x.js} +17 -17
- package/dist/chunks/card-Bg2V2B0x.js.map +1 -0
- package/dist/chunks/chat-Dfbkf7g8.js +674 -0
- package/dist/chunks/chat-Dfbkf7g8.js.map +1 -0
- package/dist/chunks/{code-block-Yxg2wZGJ.js → code-block-B7MibV6r.js} +2 -2
- package/dist/chunks/{code-block-Yxg2wZGJ.js.map → code-block-B7MibV6r.js.map} +1 -1
- package/dist/chunks/{dialog-DORIrfyJ.js → dialog-CDL6qY2a.js} +2 -2
- package/dist/chunks/{dialog-DORIrfyJ.js.map → dialog-CDL6qY2a.js.map} +1 -1
- package/dist/chunks/{scroll-area-Dhl5hqay.js → scroll-area-DjdSnx2p.js} +2 -2
- package/dist/chunks/scroll-area-DjdSnx2p.js.map +1 -0
- package/dist/chunks/{sidebar-CgaSEWVr.js → sidebar-DHYyBBUj.js} +2 -2
- package/dist/chunks/{sidebar-CgaSEWVr.js.map → sidebar-DHYyBBUj.js.map} +1 -1
- package/dist/chunks/{stat-BXBfMQ9Q.js → stat-VxA1SvS_.js} +8 -8
- package/dist/chunks/{stat-BXBfMQ9Q.js.map → stat-VxA1SvS_.js.map} +1 -1
- package/dist/chunks/{toast-B3oURNJC.js → toast-B1GAdxXP.js} +2 -2
- package/dist/chunks/{toast-B3oURNJC.js.map → toast-B1GAdxXP.js.map} +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/chat.js +1 -1
- package/dist/components/code-block.js +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/stat.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/index.js +7 -7
- package/dist/sections/basic-page.js +1 -1
- package/dist/sections/sidebar.js +1 -1
- package/dist/src/components/chat/chat.d.ts +9 -4
- package/dist/src/components/scroll-area/scroll-area-edges.d.ts +1 -0
- package/package.json +1 -1
- package/src/styles/fonts.css +67 -9
- package/src/styles/theme.css +12 -5
- package/dist/chunks/basic-page-Cp7CccNN.js.map +0 -1
- package/dist/chunks/card-zyRAihYE.js.map +0 -1
- package/dist/chunks/chat-ZUzGmTWE.js +0 -621
- package/dist/chunks/chat-ZUzGmTWE.js.map +0 -1
- package/dist/chunks/scroll-area-Dhl5hqay.js.map +0 -1
|
@@ -1 +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":";;;;;;;;;;;;;AASA,IAAMA,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAujB,KAAO;AAAQ,CAAC,CAAC,GACtmBmB,IAAyBX,EAAqB,UAAU,wBAAwB,sBAAsBR,CAAU,GCDhHC,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAgS,KAAO;AAAQ,CAAC,CAAC,GAC/UoB,IAAwBb,EAAqB,UAAU,uBAAuB,qBAAqBP,CAAU,GCD7GqB,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAA6b,KAAO;AAAQ,CAAC,CAAC,GAC5eC,IAAuBf,EAAqB,UAAU,sBAAsB,oBAAoBc,CAAU,GCgB1GE,IAAYnB,GAEZoB,IAAWvB,EAAU,UACrBwB,IAASxB,EAAU,QACnByB,IAASzB,EAAU,QAGnB0B,IAAkB1B,EAAU,iBAC5B2B,IAAqB3B,EAAU,oBAS/B4B,IAAoC;AAAA,EACxC,SAAST;AAAA,EACT,OAAOF;AAAA,EACP,SAAST;AAAA,EACT,MAAMa;AACR,GAEMQ,IAAqC;AAAA,EACzC,SACE;AAAA,EACF,OAAO;AAAA,EACP,SACE;AAAA,EACF,MAAM;AACR;AAEA,SAASC,EAAS,EAChB,WAAAC,GACA,GAAGC,EAAA,GACsC;AACzC,SACE,gBAAAtB,EAACV,EAAU,UAAX;AAAA,IAGE,WAAWE,EACT,kFACA6B,CACF;AAAA,IACA,GAAIC;AAAA,EACL,CAAA;AAEL;AAEA,SAASC,EAAK,EAAE,WAAAF,GAAW,GAAGC,EAAA,GAA6C;AACzE,SAC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AQ,gBAAAf,EAACL,GAAD;AAAA,kBAAQ,SAAQ;AAAA,kBAAW,MAAK;AAAA,gBAAM,CAAA;AAAA,gBAC9C,WAAU;AAAA,gBACV,SAAA,CAAUyC,MAAU;AAClB,kBAAAD,EAAM,aAAa,UAAUC,CAAK,GAClCH,EAAME,EAAM,EAAE;AAAA,gBAChB;AAAA,gBAEC,UAAAA,EAAM,YAAY;AAAA,cACb,CAAA,IACN;AAAA,YACM;AAAA,UAvBL,GAAA,GAAGA,EAAM,QAAQ,EAAA,IAAM,OAAOA,EAAM,SAAS,EAAE,CAAA,EAuB1C;AAAA,QACG,CAAA;AAAA,MACb,CAAA,EACC,CAAA;AAAA,MACT,gBAAAnC,EAAC2B,GAAD;AAAA,QAAO,cAAW;AAAA,QAChB,UAAA,gBAAA3B,EAACH,GAAD,CAAQ,CAAA;AAAA,MACH,CAAA;AAAA,IACH;AAAA,EA/CK,GAAAsC,EAAM,EA+CX,CACP;AACH;AAWA,SAAgBE,EAAO,EACrB,UAAAC,GACA,cAAAC,EAAA,GAIC;AACD,SACE,gBAAAtC,EAACY,GAAD;AAAA,IAAwB,cAAA0B;AAAA,IAAxB,UAAA,CACGD,GACD,gBAAAtC,EAACc,GAAD,EAAA,UACE,gBAAAd,EAACoB,GAAD,EAAA,UACE,gBAAApB,EAAC+B,GAAD,CAAa,CAAA,EACL,CAAA,EACJ,CAAA,CACA;AAAA,E;AAEd;AAYA,IAAaxC,KAAQ;AAAA,EACnB,UAAAsB;AAAA,EACA,QAAAC;AAAA,EACA,UAAAM;AAAA,EACA,MAAAG;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAZ;AAAA,EACA,iBAAAC;AAAA,EACA,oBAAAC;AACF"}
|
|
1
|
+
{"version":3,"file":"toast-B1GAdxXP.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":";;;;;;;;;;;;;AASA,IAAMA,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAujB,KAAO;AAAQ,CAAC,CAAC,GACtmBmB,IAAyBX,EAAqB,UAAU,wBAAwB,sBAAsBR,CAAU,GCDhHC,IAAa,CAAC,CAAC,QAAQ;AAAA,EAAE,GAAK;AAAA,EAAgS,KAAO;AAAQ,CAAC,CAAC,GAC/UoB,IAAwBb,EAAqB,UAAU,uBAAuB,qBAAqBP,CAAU,GCD7GqB,IAAa,CAAC,C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,EA/CK,GAAAsC,EAAM,EA+CX,CACP;AACH;AAWA,SAAgBE,EAAO,EACrB,UAAAC,GACA,cAAAC,EAAA,GAIC;AACD,SACE,gBAAAtC,EAACY,GAAD;AAAA,IAAwB,cAAA0B;AAAA,IAAxB,UAAA,CACGD,GACD,gBAAAtC,EAACc,GAAD,EAAA,UACE,gBAAAd,EAACoB,GAAD,EAAA,UACE,gBAAApB,EAAC+B,GAAD,CAAa,CAAA,EACL,CAAA,EACJ,CAAA,CACA;AAAA,E;AAEd;AAYA,IAAaxC,KAAQ;AAAA,EACnB,UAAAsB;AAAA,EACA,QAAAC;AAAA,EACA,UAAAM;AAAA,EACA,MAAAG;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAZ;AAAA,EACA,iBAAAC;AAAA,EACA,oBAAAC;AACF"}
|
package/dist/components/card.js
CHANGED
package/dist/components/chat.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as s, c as e, d as i, i as g, l as o, n as h, o as l, r, s as t, t as n, u as A } from "../chunks/code-block-
|
|
2
|
+
import { a as s, c as e, d as i, i as g, l as o, n as h, o as l, r, s as t, t as n, u as A } from "../chunks/code-block-B7MibV6r.js";
|
|
3
3
|
export {
|
|
4
4
|
o as CODE_GRAMMARS,
|
|
5
5
|
e as CODE_TOKEN_CLASS,
|
|
@@ -5,7 +5,7 @@ import { SPRING_SETTLE as P } from "../motion.js";
|
|
|
5
5
|
import { t as j } from "../chunks/IconArrowUpRight-OK8Fp0KQ.js";
|
|
6
6
|
import { t as V } from "../chunks/IconChevronLeft-CptqhdxO.js";
|
|
7
7
|
import { t as Z } from "../chunks/animated-height-zr7BmFY1.js";
|
|
8
|
-
import { t as u } from "../chunks/dialog-
|
|
8
|
+
import { t as u } from "../chunks/dialog-CDL6qY2a.js";
|
|
9
9
|
import { useEffect as $, useId as z, useLayoutEffect as A, useRef as F } from "react";
|
|
10
10
|
import { Fragment as E, jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
11
11
|
import { LayoutGroup as H, motion as g, useReducedMotion as B } from "motion/react";
|
package/dist/components/stat.js
CHANGED
package/dist/components/toast.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -9,24 +9,24 @@ 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
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-
|
|
12
|
+
import { t as Sa } from "./chunks/chat-Dfbkf7g8.js";
|
|
13
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-
|
|
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-B7MibV6r.js";
|
|
15
15
|
import { n as _s, t as ns } from "./chunks/date-picker-vJQrTol9.js";
|
|
16
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-
|
|
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-DHYyBBUj.js";
|
|
18
18
|
import { t as Os } from "./chunks/input-DWnb33UF.js";
|
|
19
19
|
import { i as gs, n as Vs, r as hs, t as Gs } from "./chunks/filter-bar-qqCZf1x4.js";
|
|
20
20
|
import { i as Ms } from "./chunks/data-table-CAz_8HQw.js";
|
|
21
|
-
import { n as Fs, t as vs } from "./chunks/stat-
|
|
21
|
+
import { n as Fs, t as vs } from "./chunks/stat-VxA1SvS_.js";
|
|
22
22
|
import { t as ws } from "./chunks/calendar-DDWITGo4.js";
|
|
23
23
|
import { t as ys } from "./chunks/close-button-Ck4rY1Fp.js";
|
|
24
24
|
import { t as Ks } from "./chunks/input-group-C3upo2OU.js";
|
|
25
|
-
import { n as zs, t as Xs } from "./chunks/card-
|
|
26
|
-
import { n as Zs, t as js } from "./chunks/dialog-
|
|
25
|
+
import { n as zs, t as Xs } from "./chunks/card-Bg2V2B0x.js";
|
|
26
|
+
import { n as Zs, t as js } from "./chunks/dialog-CDL6qY2a.js";
|
|
27
27
|
import { i as Qs, n as qs, r as $s, t as at } from "./chunks/status-view-I_Y6eEyX.js";
|
|
28
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-
|
|
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-B78a6jpw.js";
|
|
30
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
32
|
import { t as dt } from "./chunks/bar-chart-ZNuOoH7c.js";
|
|
@@ -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-
|
|
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-B78a6jpw.js";
|
|
4
4
|
export {
|
|
5
5
|
D as AUTO_SAVE_DELAY_MS,
|
|
6
6
|
B as BASIC_PAGE_CALLOUT,
|
package/dist/sections/sidebar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as I, c as _, d as S, i as R, l as A, n as B, o as T, r as a, s, t as D, u as N } from "../chunks/sidebar-
|
|
2
|
+
import { a as I, c as _, d as S, i as R, l as A, n as B, o as T, r as a, s, t as D, u as N } from "../chunks/sidebar-DHYyBBUj.js";
|
|
3
3
|
export {
|
|
4
4
|
D as SIDEBAR_HEADER_INSET,
|
|
5
5
|
B as SIDEBAR_ITEM,
|
|
@@ -186,9 +186,9 @@ declare function Title({ className, children, ...props }: ComponentProps<"h2">):
|
|
|
186
186
|
/** One line under the title — from whom, a status. */
|
|
187
187
|
declare function Description({ className, ...props }: ComponentProps<"p">): import('react').JSX.Element;
|
|
188
188
|
export interface ChatMessagesProps extends ComponentProps<"div"> {
|
|
189
|
-
/** Earlier pages exist —
|
|
189
|
+
/** Earlier pages exist — the top of the pane asks for them. */
|
|
190
190
|
hasEarlier?: boolean;
|
|
191
|
-
/** The earlier page is on its way. */
|
|
191
|
+
/** The earlier page is on its way — a spinner shows and nothing is asked. */
|
|
192
192
|
loadingEarlier?: boolean;
|
|
193
193
|
/** Ask for the page before the first message shown. */
|
|
194
194
|
onLoadEarlier?: () => void;
|
|
@@ -198,8 +198,13 @@ export interface ChatMessagesProps extends ComponentProps<"div"> {
|
|
|
198
198
|
/**
|
|
199
199
|
* The messages, oldest to newest, on the thread surface. The pane starts at
|
|
200
200
|
* the bottom and stays there as messages arrive unless the reader has
|
|
201
|
-
* scrolled up
|
|
202
|
-
*
|
|
201
|
+
* scrolled up. With `hasEarlier`, the earlier page is asked for as the top
|
|
202
|
+
* comes into view (an `IntersectionObserver`, 200px ahead) — the same
|
|
203
|
+
* request as the button there, which stays for keyboards and for a browser
|
|
204
|
+
* without the observer. While `loadingEarlier` a spinner takes its place,
|
|
205
|
+
* and when the page arrives above, what they were reading stays put.
|
|
206
|
+
* Children are `Message` rows and `Divider`s. Its state belongs to one
|
|
207
|
+
* conversation: key the `Thread` by it.
|
|
203
208
|
*/
|
|
204
209
|
declare function Messages({ hasEarlier, loadingEarlier, onLoadEarlier, earlierLabel, className, children, ...props }: ChatMessagesProps): import('react').JSX.Element;
|
|
205
210
|
/** A centered caption in the thread — the day, "Unread". */
|
|
@@ -8,6 +8,7 @@ export declare const EDGE_REVEAL_PX = 32;
|
|
|
8
8
|
* every soft focus in the product is the same soft focus.
|
|
9
9
|
*/
|
|
10
10
|
export declare const BLUR_MAX_PX = 1;
|
|
11
|
+
export declare function washGradient(edge: "top" | "bottom", surface: string): string;
|
|
11
12
|
export declare function paintEdge(node: HTMLDivElement | null, progress: number): void;
|
|
12
13
|
export declare function Edge({ edge, edgeRef, surface, className, }: {
|
|
13
14
|
edge: "top" | "bottom";
|
package/package.json
CHANGED
package/src/styles/fonts.css
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Photon brand fonts. PolySans (commercial) is served from the shared asset
|
|
3
3
|
* CDN (assets.photon.codes — public R2, versioned path, immutable caching,
|
|
4
|
-
* CORS enabled). Azeret Mono
|
|
5
|
-
* Fonts CDN,
|
|
4
|
+
* CORS enabled). Inter and Azeret Mono are open Google Fonts, declared below
|
|
5
|
+
* against the Google Fonts CDN (fonts.gstatic.com), one face per script
|
|
6
|
+
* subset with its `unicode-range`. They are spelled out rather than pulled in
|
|
7
|
+
* with an `@import` of Google's stylesheet: once this file is bundled into an
|
|
8
|
+
* app's CSS that `@import` follows other rules, and the bundler drops it.
|
|
6
9
|
* Import this and the fonts just work; no files to copy.
|
|
7
10
|
*
|
|
8
11
|
* If your app must self-host (air-gapped, strict CSP without `font-src`
|
|
@@ -10,15 +13,14 @@
|
|
|
10
13
|
* this import and declare the same @font-face rules against your own /fonts/
|
|
11
14
|
* paths — the theme only references the family names.
|
|
12
15
|
*
|
|
13
|
-
* Roles
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Roles: Inter is the text — body at 400, UI controls, navigation, and links
|
|
17
|
+
* at 600 (`font-medium`). PolySans is the headings — page, section, card,
|
|
18
|
+
* and step titles at Median 600 (`font-heading`); the `font-display`
|
|
19
|
+
* utility adds `ss02` for dialog and hero titles. Azeret Mono for code and
|
|
20
|
+
* small labels — always normal case: the system bans all-caps small text
|
|
21
|
+
* for eyebrows, section titles, and descriptions. Instrument Serif (often
|
|
18
22
|
* italic) is the editorial accent.
|
|
19
23
|
*/
|
|
20
|
-
@import "https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@100..900&display=swap";
|
|
21
|
-
|
|
22
24
|
@font-face {
|
|
23
25
|
font-family: "PolySans";
|
|
24
26
|
src: url("https://assets.photon.codes/pho-ui/v1/PolySansVF.woff2")
|
|
@@ -45,3 +47,59 @@
|
|
|
45
47
|
font-style: italic;
|
|
46
48
|
font-display: swap;
|
|
47
49
|
}
|
|
50
|
+
|
|
51
|
+
/* Inter, latin */
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: "Inter";
|
|
54
|
+
src: url("https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcviYwY.woff2")
|
|
55
|
+
format("woff2");
|
|
56
|
+
font-weight: 100 900;
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-display: swap;
|
|
59
|
+
unicode-range:
|
|
60
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
|
|
61
|
+
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
|
|
62
|
+
U+2215, U+FEFF, U+FFFD;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Inter, latin-ext */
|
|
66
|
+
@font-face {
|
|
67
|
+
font-family: "Inter";
|
|
68
|
+
src: url("https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcvsYwYL8g.woff2")
|
|
69
|
+
format("woff2");
|
|
70
|
+
font-weight: 100 900;
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-display: swap;
|
|
73
|
+
unicode-range:
|
|
74
|
+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
|
|
75
|
+
U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
|
|
76
|
+
U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Azeret Mono, latin */
|
|
80
|
+
@font-face {
|
|
81
|
+
font-family: "Azeret Mono";
|
|
82
|
+
src: url("https://fonts.gstatic.com/s/azeretmono/v21/3XFuErsiyJsY9O_Gepph-HHhZfk.woff2")
|
|
83
|
+
format("woff2");
|
|
84
|
+
font-weight: 100 900;
|
|
85
|
+
font-style: normal;
|
|
86
|
+
font-display: swap;
|
|
87
|
+
unicode-range:
|
|
88
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
|
|
89
|
+
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
|
|
90
|
+
U+2215, U+FEFF, U+FFFD;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Azeret Mono, latin-ext */
|
|
94
|
+
@font-face {
|
|
95
|
+
font-family: "Azeret Mono";
|
|
96
|
+
src: url("https://fonts.gstatic.com/s/azeretmono/v21/3XFuErsiyJsY9O_Gepph-HHvZfnk3Q.woff2")
|
|
97
|
+
format("woff2");
|
|
98
|
+
font-weight: 100 900;
|
|
99
|
+
font-style: normal;
|
|
100
|
+
font-display: swap;
|
|
101
|
+
unicode-range:
|
|
102
|
+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
|
|
103
|
+
U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
|
|
104
|
+
U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
105
|
+
}
|
package/src/styles/theme.css
CHANGED
|
@@ -25,12 +25,18 @@
|
|
|
25
25
|
|
|
26
26
|
@theme static {
|
|
27
27
|
/* ============================== Fonts ============================== */
|
|
28
|
+
/* Two voices: Inter carries the text (body, UI controls, navigation,
|
|
29
|
+
links: the default `font-sans`), PolySans carries the headings (page,
|
|
30
|
+
section, card, and step titles: `font-heading`). */
|
|
28
31
|
--font-sans:
|
|
32
|
+
"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
|
|
33
|
+
sans-serif;
|
|
34
|
+
--font-heading:
|
|
29
35
|
"PolySans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
|
|
30
36
|
Arial, sans-serif;
|
|
31
|
-
--font-display: var(--font-
|
|
37
|
+
--font-display: var(--font-heading);
|
|
32
38
|
/* PolySans stylistic set 2 — the alternate display glyphs photon.codes
|
|
33
|
-
enables on headings. `font-display` =
|
|
39
|
+
enables on headings. `font-display` = PolySans + ss02; pair it with the
|
|
34
40
|
text-display-* sizes on titles. */
|
|
35
41
|
--font-display--font-feature-settings: "ss02";
|
|
36
42
|
/* Serif accent — the site's italicized editorial voice. */
|
|
@@ -182,12 +188,13 @@
|
|
|
182
188
|
/* ========================== Font weights ========================== */
|
|
183
189
|
/* CLOSED set — three stops only; nothing else generates a utility:
|
|
184
190
|
font-light (300) display/marketing lines · font-normal (400) body ·
|
|
185
|
-
font-medium (
|
|
186
|
-
|
|
191
|
+
font-medium (600) UI controls, headings, and hero slogans: Inter Semi
|
|
192
|
+
Bold in text, PolySans Median in headings. font-semibold is gone — use
|
|
193
|
+
font-medium. */
|
|
187
194
|
--font-weight-*: initial;
|
|
188
195
|
--font-weight-light: 300;
|
|
189
196
|
--font-weight-normal: 400;
|
|
190
|
-
--font-weight-medium:
|
|
197
|
+
--font-weight-medium: 600;
|
|
191
198
|
|
|
192
199
|
/* ============================= Radius ============================= */
|
|
193
200
|
/* CLOSED set — three stops + Tailwind's rounded-full for pills:
|