sage-nexus-ui 1.8.5 → 1.9.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.
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.mjs";import{__require as o}from"../node_modules/style-to-js/cjs/index.mjs";var s=e(o());export{s as default};
1
+ import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.mjs";import{__require as m}from"../node_modules/extend/index.mjs";var o=e(m());export{o as default};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.mjs";import{__require as m}from"../node_modules/extend/index.mjs";var o=e(m());export{o as default};
1
+ import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.mjs";import{__require as o}from"../node_modules/style-to-js/cjs/index.mjs";var s=e(o());export{s as default};
@@ -0,0 +1 @@
1
+ import{jsxs as i,jsx as e}from"react/jsx-runtime";import{Box as o}from"./Box.mjs";import{Stack as t}from"./Stack.mjs";import{Caption as r}from"./Typography.mjs";import{GlassPaper as m}from"./GlassPaper.mjs";import{Paper as l}from"./Paper.mjs";import{ChatInput as n}from"./ChatInput.mjs";import"@mui/material";import"@mui/material/styles";import"../theme/tokens.mjs";import"@mui/icons-material/ChatBubbleOutlineOutlined";import"@mui/icons-material/SmartToy";import"./Code.mjs";import"react";import"@mui/icons-material/CheckCircle";import"@mui/icons-material/ExpandMore";import"@mui/icons-material/ExpandLess";import"@mui/icons-material/OpenInNew";import"@mui/icons-material/StopCircle";import s from"./NexusChatWidget/ChatComponents/SuggestedPrompts.mjs";import"@mui/icons-material/Add";import"@mui/icons-material/Close";import"@mui/icons-material/OpenInFull";import{AgentChatWindowHeader as a}from"./AgentChatWindowHeader.mjs";const p=({title:p="Spike AI Chat",subtitle:c="Your intelligent marketing assistant",showAiChip:d=!0,headerActions:u,body:h,followUpLabel:x="Suggested follow-ups:",followUpPrompts:f,onSelectFollowUp:g,onSend:C,inputDisabled:b=!1,inputPlaceholder:y="Ask Spike anything...",sx:j})=>{const S=Boolean(f&&f.length>0&&g);return i(o,{sx:[{display:"flex",flex:1,flexDirection:"column",minWidth:0,minHeight:0,height:"100%"},...Array.isArray(j)?j:j?[j]:[]],children:[e(a,{title:p,subtitle:c,showAiChip:d,actions:u}),e(m,{sx:{borderRadius:0,border:"none",flex:1,display:"flex",flexDirection:"column",overflowY:"scroll"},children:h}),S&&i(t,{direction:{xs:"column",md:"row"},spacing:1,sx:{px:2,py:1,justifyContent:{xs:"center",sm:"flex-end"},alignItems:"center"},children:[e(r,{sx:{display:"block",mb:1},children:x}),e(s,{prompts:f??[],onSelect:g})]}),e(l,{sx:{borderRadius:0,border:"none"},children:e(o,{sx:{p:2,flexShrink:0},children:e(n,{onSend:C,disabled:b,placeholder:y})})})]})};export{p as AgentChatWindow};
@@ -0,0 +1 @@
1
+ import{jsx as i,jsxs as r}from"react/jsx-runtime";import{Box as t}from"./Box.mjs";import{Stack as e}from"./Stack.mjs";import{AiChip as n}from"./AiChip.mjs";import{H2 as s,Caption as o}from"./Typography.mjs";const m=({title:m="Spike AI Chat",subtitle:c="Your intelligent marketing assistant",showAiChip:a=!0,actions:p,sx:l})=>{const h=i(e,{direction:"row",spacing:1,sx:{alignItems:"center"},children:a&&i(n,{})});return r(e,{direction:{xs:"column",sm:"row"},spacing:2,sx:[{alignItems:"center",justifyContent:"space-between",p:1,flexShrink:0},...Array.isArray(l)?l:l?[l]:[]],children:[r(t,{children:[i(s,{children:m}),i(o,{children:c})]}),p??h]})};export{m as AgentChatWindowHeader};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{Caption as t}from"./Typography.mjs";import{Box as r}from"./Box.mjs";import{Stack as n}from"./Stack.mjs";import{ChatHistoryHeader as i}from"./ChatHistoryHeader.mjs";import{ChatHistoryButtonBase as a}from"./ChatHistoryButtonBase.mjs";const s=({conversations:s,activeConversationId:c,onSelectConversation:l,onDeleteConversation:h,onNewConversation:m,onSearchChange:d,title:C="Chat history",emptyText:v="No conversations yet",newChatTitle:p="New chat",deleteConversationTitle:y="Delete conversation",searchPlaceholder:f="Search chat histories",searchDebounceMs:x=300,width:g=288,sx:u,formatMessageCount:w=e=>`${e} messages`})=>e(n,{direction:"column",sx:[{width:g,borderRight:1,borderColor:"divider",minWidth:0},...Array.isArray(u)?u:u?[u]:[]],children:[o(i,{title:C,newChatTitle:p,onNewConversation:m,onSearchChange:d,searchPlaceholder:f,searchDebounceMs:x}),o(r,{component:"nav","aria-label":C,sx:{flex:1,overflowY:"auto",p:1},children:0===s.length?o(t,{sx:{display:"block",textAlign:"center",py:4},children:v}):s.map(e=>{const t=e.id===c;return o(a,{conversation:e,isActive:t,onSelectConversation:l,onDeleteConversation:h,deleteConversationTitle:y,formatMessageCount:w},e.id)})})]});export{s as ChatHistory};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import t from"@mui/icons-material/ChatBubbleOutlined";import r from"@mui/icons-material/DeleteForeverOutlined";import{Body1 as i,Caption as n}from"./Typography.mjs";import{Box as a}from"./Box.mjs";import{IconButton as l}from"./IconButton.mjs";import{colours as s}from"../theme/tokens.mjs";const m=({conversation:m,isActive:d,onSelectConversation:p,onDeleteConversation:c,deleteConversationTitle:b,formatMessageCount:x})=>{const u=(e=>"number"==typeof e.messageCount?e.messageCount:Array.isArray(e.messages)?e.messages.length:0)(m);return e(a,{component:"div",role:"button",tabIndex:0,onClick:()=>p(m.id),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(m.id))},sx:{width:"100%",display:"flex",alignItems:"center",gap:1.25,borderRadius:1,px:1.5,py:1.25,textAlign:"left",backgroundColor:d?e=>"dark"===e.palette.mode?s.black:s.white:"transparent",backgroundImage:"none",opacity:1,position:"relative",zIndex:1,border:"1px solid",borderColor:d?s.primaryGreenActive:"transparent",cursor:"pointer",outline:"none","&:hover":{backgroundColor:d?e=>"dark"===e.palette.mode?s.black:s.white:"action.hover",backgroundImage:"none"},"&:focus-visible":{boxShadow:e=>`0 0 0 2px ${e.palette.primary.main}`},mb:.25},children:[o(t,{sx:{fontSize:14,color:d?s.primaryGreenActive:"text.disabled"}}),e(a,{sx:{flex:1,minWidth:0},children:[o(i,{component:"span",sx:{display:"block",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:d?"text.primary":"text.secondary"},children:m.title}),o(n,{noWrap:!0,sx:{display:"block"},children:x(u)})]}),o(l,{title:b,ariaLabel:b,onClick:e=>{e.stopPropagation(),c&&Promise.resolve(c(m.id))},disabled:!c,children:o(r,{sx:{fontSize:14,color:d?"error.main":"text.disabled"}})})]})};export{m as ChatHistoryButtonBase};
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import t from"@mui/icons-material/Add";import i from"@mui/icons-material/Clear";import o from"@mui/icons-material/Search";import{InputAdornment as a}from"@mui/material";import{useState as n,useEffect as l}from"react";import{Box as s}from"./Box.mjs";import{H3 as m}from"./Typography.mjs";import{IconButton as c}from"./IconButton.mjs";import{Stack as d}from"./Stack.mjs";import{TextField as h}from"./TextField.mjs";const p=({title:p,newChatTitle:u,onNewConversation:f,onSearchChange:x,searchPlaceholder:b="Search chat histories",searchDebounceMs:C=300})=>{const[g,w]=n("");return l(()=>{if(!x)return;const e=window.setTimeout(()=>{x(g)},C);return()=>window.clearTimeout(e)},[x,C,g]),e(d,{direction:"column",spacing:1,sx:{px:2,py:2,borderBottom:1,borderColor:"divider"},children:[e(d,{direction:"row",spacing:2,sx:{alignItems:"center",justifyContent:"space-between"},children:[r(m,{children:p}),r(c,{onClick:f,title:u,ariaLabel:u,disabled:!f,children:r(t,{sx:{fontSize:16}})})]}),e(s,{sx:{display:"flex",alignItems:"center",gap:.75},children:[r(h,{fullWidth:!0,size:"small",value:g,onChange:e=>w(e.target.value),placeholder:b,slotProps:{htmlInput:{"aria-label":"Search chat histories"},input:{startAdornment:r(a,{position:"start",children:r(o,{sx:{fontSize:16,color:"text.disabled"}})})}}}),r(c,{title:"Clear search",ariaLabel:"clear-search",onClick:()=>w(""),disabled:!g,children:r(i,{sx:{fontSize:14}})})]})]})};export{p as ChatHistoryHeader};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as o}from"react";import r from"@mui/icons-material/Send";import{Box as i}from"./Box.mjs";import{IconButton as n}from"./IconButton.mjs";import{Paper as a}from"./Paper.mjs";import{TextField as l}from"./TextField.mjs";import{colours as m}from"../theme/tokens.mjs";const s=({onSend:s,disabled:d=!1,placeholder:p="Ask about campaigns, competitors, performance…",maxRows:f=5,sendButtonTitle:c="Send message"})=>{const[u,x]=o(""),h=()=>{const e=u.trim();e&&!d&&(s(e),x(""))};return e(i,{component:"form",onSubmit:e=>{e.preventDefault(),h()},sx:{display:"flex",alignItems:"flex-end",gap:1},children:t(a,{variant:"outlined",sx:{display:"flex",flex:1,alignItems:"flex-end",gap:1,px:1.5,py:.75,borderRadius:2},children:[e(l,{variant:"standard",fullWidth:!0,multiline:!0,maxRows:f,value:u,onChange:e=>x(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),h())},placeholder:p,disabled:d,slotProps:{input:{disableUnderline:!0}},sx:{"& .MuiInputBase-input":{p:0,fontSize:"0.875rem",color:"text.primary",resize:"none","&::placeholder":{color:"text.disabled",opacity:1}}}}),e(n,{type:"submit",title:c,disabled:!u.trim()||d,variant:"filled",size:"small",sx:{flexShrink:0,bgcolor:m.jade,"&:hover":{bgcolor:m.jade}},children:e(r,{sx:{fontSize:13}})})]})})};export{s as ChatInput};
@@ -1 +1 @@
1
- import{jsx as i,jsxs as e}from"react/jsx-runtime";import{Body1 as r}from"../../Typography.mjs";import{Box as o}from"../../Box.mjs";import{ButtonBase as n}from"../../ButtonBase.mjs";import{Chip as s}from"../../Chip.mjs";import{LoadingSpinnerNexus as t}from"../../LoadingSpinnerNexus.mjs";import{Stack as l}from"../../Stack.mjs";import m from"@mui/icons-material/CheckCircle";import a from"@mui/icons-material/ExpandMore";import c from"@mui/icons-material/ExpandLess";const p=({isStreaming:p,thinkingSteps:d,kbSearches:x,toolCalls:f,isExpanded:h,setIsExpanded:g})=>i(n,{onClick:()=>g(i=>!i),sx:{width:"100%"},children:e(l,{direction:"column",spacing:1,sx:{width:"100%"},children:[e(l,{direction:"row",sx:{justifyContent:"space-between"},children:[e(l,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[p?i(t,{variant:"small"}):i(m,{sx:{color:"primary.main",fontSize:16}}),i(r,{children:p?"Agent is typing...":"Response generated"})]}),i(o,h?{sx:{display:"inline-flex",color:"text.secondary"},children:i(c,{sx:{fontSize:14}})}:{sx:{display:"inline-flex",color:"text.secondary"},children:i(a,{sx:{fontSize:14}})})]}),e(l,{direction:"row",spacing:1,children:[d>0&&i(s,{size:"small",label:`${d} thinking`}),x>0&&i(s,{size:"small",label:`${x} KB`}),f>0&&i(s,{size:"small",label:`${f} tools`})]})]})});export{p as default};
1
+ import{jsx as i,jsxs as e}from"react/jsx-runtime";import{Body1 as o}from"../../Typography.mjs";import{Box as r}from"../../Box.mjs";import{ButtonBase as n}from"../../ButtonBase.mjs";import{Chip as s}from"../../Chip.mjs";import{LoadingSpinnerNexus as t}from"../../LoadingSpinnerNexus.mjs";import{Stack as m}from"../../Stack.mjs";import{colours as l}from"../../../theme/tokens.mjs";import a from"@mui/icons-material/CheckCircle";import c from"@mui/icons-material/ExpandMore";import p from"@mui/icons-material/ExpandLess";const d=({isStreaming:d,thinkingSteps:x,kbSearches:f,toolCalls:h,isExpanded:g,setIsExpanded:j})=>i(n,{onClick:()=>j(i=>!i),sx:{width:"100%"},children:e(m,{direction:"column",spacing:1,sx:{width:"100%"},children:[e(m,{direction:"row",sx:{justifyContent:"space-between"},children:[e(m,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[d?i(t,{variant:"small"}):i(a,{sx:{color:l.jade,fontSize:16}}),i(o,{children:d?"Agent is typing...":"Response generated"})]}),i(r,g?{sx:{display:"inline-flex",color:"text.secondary"},children:i(p,{sx:{fontSize:14}})}:{sx:{display:"inline-flex",color:"text.secondary"},children:i(c,{sx:{fontSize:14}})})]}),e(m,{direction:"row",spacing:1,children:[x>0&&i(s,{size:"small",label:`${x} thinking`}),f>0&&i(s,{size:"small",label:`${f} KB`}),h>0&&i(s,{size:"small",label:`${h} tools`})]})]})});export{d as default};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{Stack as e}from"../../Stack.mjs";import{Chip as t}from"../../Chip.mjs";const o=({prompts:o,onSelect:i})=>r(e,{direction:"row",spacing:1,sx:{flexWrap:"wrap",gap:1,justifyContent:"center",alignItems:"center"},children:o.map(e=>r(t,{label:e,onClick:()=>i(e),size:"medium",sx:{cursor:"pointer"}},e))});export{o as default};
1
+ import{jsx as r}from"react/jsx-runtime";import{Stack as o}from"../../Stack.mjs";import{Chip as e}from"../../Chip.mjs";const t=({prompts:t,onSelect:i})=>r(o,{direction:"row",spacing:1,sx:{flexWrap:"wrap",gap:1,justifyContent:"center",alignItems:"center"},children:t.map(o=>r(e,{label:o,onClick:()=>i(o),size:"medium",sx:{cursor:"pointer",backgroundColor:"background.greys",color:"text.primary"}},o))});export{t as default};
@@ -1 +1 @@
1
- import{jsxs as r,jsx as o}from"react/jsx-runtime";import{Box as t}from"../../Box.mjs";import{Stack as e}from"../../Stack.mjs";import{Body2 as i}from"../../Typography.mjs";import{colours as a}from"../../../theme/tokens.mjs";import n from"./ChatAvatar.mjs";const m=({traceLabel:m,avatarIcon:s})=>r(e,{direction:"row",spacing:1,sx:{alignItems:"flex-start"},children:[o(n,{icon:s,sx:{mt:.25}}),o(t,{sx:{borderRadius:"1rem 1rem 1rem 0.25rem",border:"1px solid",borderColor:"divider",bgcolor:"background.default",px:1.75,py:1.25},children:r(e,{direction:"row",spacing:1,sx:{alignItems:"end"},children:[o(i,{sx:{color:"text.primary",fontWeight:600,opacity:1},children:m?`Agent is typing... ${m}`:"Agent is typing"}),o(e,{direction:"row",spacing:.5,children:[0,150,300].map(r=>o(t,{component:"span",sx:{width:6,height:6,borderRadius:"50%",bgcolor:a.jade,animation:"bounce 1s ease-in-out infinite",animationDelay:`${r}ms`,"@keyframes bounce":{"0%, 80%, 100%":{opacity:.35,transform:"translateY(0)"},"40%":{opacity:1,transform:"translateY(-1px)"}}}},r))})]})})]});export{m as default};
1
+ import{jsxs as r,jsx as o}from"react/jsx-runtime";import{Box as t}from"../../Box.mjs";import{Stack as e}from"../../Stack.mjs";import{Body2 as i}from"../../Typography.mjs";import{colours as a}from"../../../theme/tokens.mjs";import n from"./ChatAvatar.mjs";const m=({traceLabel:m,avatarIcon:s})=>r(e,{direction:"row",spacing:1,sx:{alignItems:"flex-start"},children:[o(n,{icon:s,sx:{mt:.25}}),o(t,{sx:{borderRadius:"1rem 1rem 1rem 0.25rem",border:"1px solid",borderColor:"divider",bgcolor:"background.default",px:1.75,py:1.25},children:r(e,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[o(i,{sx:{color:"text.primary",fontWeight:600,opacity:1},children:m?`Agent is typing... ${m}`:"Agent is typing"}),o(e,{direction:"row",spacing:.5,children:[0,150,300].map(r=>o(t,{component:"span",sx:{width:6,height:6,borderRadius:"50%",bgcolor:a.jade,animation:"bounce 1s ease-in-out infinite",animationDelay:`${r}ms`,"@keyframes bounce":{"0%, 80%, 100%":{opacity:.35,transform:"translateY(0)"},"40%":{opacity:1,transform:"translateY(-1px)"}}}},r))})]})})]});export{m as default};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useState as o}from"react";import{Box as i}from"../../Box.mjs";import{IconButton as t}from"../../IconButton.mjs";import{Paper as n}from"../../Paper.mjs";import{TextField as l}from"../../TextField.mjs";import a from"@mui/icons-material/Send";const d=({onSend:d,disabled:s=!1,placeholder:p="Ask about campaigns, competitors, performance…"})=>{const[m,c]=o("");return e(i,{component:"form",onSubmit:e=>{e.preventDefault();const r=m.trim();r&&!s&&(d(r),c(""))},sx:{display:"flex",alignItems:"flex-end",gap:1},children:r(n,{variant:"outlined",sx:{display:"flex",flex:1,alignItems:"flex-end",gap:1,px:1.5,py:.75,borderRadius:2},children:[e(l,{variant:"standard",fullWidth:!0,multiline:!0,maxRows:5,value:m,onChange:e=>c(e.target.value),onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){e.preventDefault();const r=m.trim();if(!r||s)return;d(r),c("")}},placeholder:p,disabled:s,slotProps:{input:{disableUnderline:!0}},sx:{"& .MuiInputBase-input":{p:0,fontSize:"0.875rem",color:"text.primary",resize:"none","&::placeholder":{color:"text.disabled",opacity:1}}}}),e(t,{type:"submit",title:"Send message",disabled:!m.trim()||s,variant:"filled",size:"small",sx:{flexShrink:0},children:e(a,{sx:{fontSize:13}})})]})})},s=({placeholder:r,isTyping:o,onSend:t})=>e(i,{sx:{backgroundColor:"background.paper",borderTop:"1px solid",borderColor:"divider",p:1.5,flexShrink:0},children:e(d,{onSend:t,disabled:o,placeholder:r})});export{s as default};
1
+ import{jsx as o}from"react/jsx-runtime";import{Box as r}from"../../Box.mjs";import{ChatInput as e}from"../../ChatInput.mjs";const d=({placeholder:d,isTyping:p,onSend:i})=>o(r,{sx:{backgroundColor:"background.paper",borderTop:"1px solid",borderColor:"divider",p:1.5,flexShrink:0},children:o(e,{onSend:i,disabled:p,placeholder:d})});export{d as default};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{Box as t}from"@mui/material";import{SideBladeNavListItem as i}from"./SideBladeNavListItem.mjs";const n=({items:n,currentPathname:a,collapsed:o,linkComponent:r})=>e(t,{component:"nav",role:"navigation","aria-label":"Main navigation",sx:{display:"flex",flexDirection:"column",gap:1,px:1,pt:1},children:n.map(t=>{const n=a===t.href||a?.startsWith(t.href+"/");return e(i,{item:t,isActive:n,collapsed:o,linkComponent:r},t.href)})});export{n as SideBladeNavList};
1
+ import{jsx as e}from"react/jsx-runtime";import{Box as t}from"@mui/material";import{SideBladeNavListItem as i}from"./SideBladeNavListItem.mjs";const r=({items:r,currentPathname:n,selectedHref:o,collapsed:a,linkComponent:m,onItemSelect:l})=>e(t,{component:"nav",role:"navigation","aria-label":"Main navigation",sx:{display:"flex",flexDirection:"column",gap:1,px:1,pt:1},children:r.map(t=>{const r=o?o===t.href||o.startsWith(t.href+"/"):!!n&&(n===t.href||n.startsWith(t.href+"/"));return e(i,{item:t,isActive:r,collapsed:a,linkComponent:m,onSelect:l},t.href)})});export{r as SideBladeNavList};
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{SecondaryButton as e}from"./SecondaryButton.mjs";const r=({item:r,isActive:n,collapsed:o,linkComponent:i})=>{const l=r.icon;return t(e,{startIcon:t(l,{}),fullWidth:!0,...i?{component:i}:{},title:r.label,"aria-current":n?"page":void 0,href:r.href,sx:[{justifyContent:"flex-start",px:1,border:o?"none":void 0,borderRadius:o?0:1,minWidth:0}],children:!o&&t("span",{children:r.label})},r.href)};export{r as SideBladeNavListItem};
1
+ import{jsx as r}from"react/jsx-runtime";import{SecondaryButton as o}from"./SecondaryButton.mjs";import{alpha as e}from"@mui/material";import{colours as t}from"../theme/tokens.mjs";const n=({item:n,isActive:a,collapsed:i,linkComponent:d,onSelect:l})=>{const c=n.icon;return r(o,{startIcon:r(c,{}),fullWidth:!0,...d?{component:d}:{},...d?{href:n.href}:{},title:n.label,"aria-current":a?"page":void 0,onClick:l?()=>l(n):void 0,sx:[{justifyContent:i?"center":"flex-start",px:1,borderRadius:1,minWidth:0,color:t.jade,borderColor:i?"transparent":t.jade,borderWidth:i?0:"1.5px",borderStyle:"solid",backgroundColor:"transparent","&:hover":{color:t.jade,borderColor:i?"transparent":t.jade,borderWidth:i?0:"1.5px",backgroundColor:e(t.jade,.15)},"&.Mui-disabled":{color:e(t.jade,.6),borderColor:i?"transparent":e(t.jade,.6),borderWidth:i?0:"1.5px"},"& .MuiButton-startIcon":{marginRight:i?0:void 0,marginLeft:0}}],children:!i&&r("span",{children:n.label})},n.href)};export{n as SideBladeNavListItem};
@@ -1 +1 @@
1
- const o="1.8.5";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="1.9.1";export{o as SAGE_NEXUS_UI_VERSION};
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { AlertProps, TypographyProps, ContainerProps, GridProps, LinkProps as LinkProps$1, SelectProps as SelectProps$1, SxProps, SwitchProps, Theme as Theme$1, AccordionSummaryProps, ButtonProps, ChipProps, CardProps as CardProps$1, PaperProps, BoxProps, CollapseProps, ButtonBaseProps, DialogProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogTitleProps, DividerProps, IconButtonProps as IconButtonProps$1, SkeletonProps as SkeletonProps$1, StackProps, TabProps, TabsProps, TextFieldProps, TooltipProps as TooltipProps$1 } from '@mui/material';
2
+ import { AlertProps, TypographyProps, ContainerProps, GridProps, LinkProps as LinkProps$1, SelectProps as SelectProps$1, SxProps as SxProps$1, SwitchProps, Theme as Theme$1, AccordionSummaryProps, ButtonProps, ChipProps, CardProps as CardProps$1, PaperProps, BoxProps, CollapseProps, ButtonBaseProps, DialogProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogTitleProps, DividerProps, IconButtonProps as IconButtonProps$1, SkeletonProps as SkeletonProps$1, StackProps, TabProps, TabsProps, TextFieldProps, TooltipProps as TooltipProps$1 } from '@mui/material';
3
3
  export { AlertProps, AlertTitle, BoxProps, ButtonBaseProps, ChipProps, CollapseProps, ContainerProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogProps, DialogTitleProps, DividerProps, GridProps, MenuItem, PaperProps, StackProps, SwitchProps, TabProps, TabsProps, TextFieldProps, Theme, alpha, useMediaQuery, useTheme } from '@mui/material';
4
+ import { SxProps, Theme } from '@mui/material/styles';
4
5
  import * as react from 'react';
5
6
  import react__default, { ReactNode, ReactElement, ComponentType, CSSProperties, PropsWithChildren } from 'react';
6
- import { Theme, SxProps as SxProps$2 } from '@mui/material/styles';
7
7
  import { DataGridProps } from '@mui/x-data-grid';
8
8
  export { DataGridProps, GridColDef, GridColumnVisibilityModel, GridPaginationModel, GridRenderCellParams, GridRowsProp, GridSortModel, GridValueGetter } from '@mui/x-data-grid';
9
- import { SxProps as SxProps$1 } from '@mui/system';
9
+ import { SxProps as SxProps$2 } from '@mui/system';
10
10
  import { LineChartProps } from '@mui/x-charts/LineChart';
11
11
  import { BarChartProps } from '@mui/x-charts/BarChart';
12
12
  export { default as nexusLogoNode } from './assets/images/nexus-logo-node.svg';
@@ -59,6 +59,31 @@ declare const DateRangePicker: ({ value, onChange, presets, minDate, maxDate, cl
59
59
  */
60
60
  declare const Alert: (props: AlertProps) => react_jsx_runtime.JSX.Element;
61
61
 
62
+ interface AgentChatWindowProps {
63
+ title?: string;
64
+ subtitle?: string;
65
+ showAiChip?: boolean;
66
+ headerActions?: React.ReactNode;
67
+ body: React.ReactNode;
68
+ followUpLabel?: string;
69
+ followUpPrompts?: string[];
70
+ onSelectFollowUp?: (prompt: string) => void;
71
+ onSend: (message: string) => void;
72
+ inputDisabled?: boolean;
73
+ inputPlaceholder?: string;
74
+ sx?: SxProps<Theme>;
75
+ }
76
+ declare const AgentChatWindow: ({ title, subtitle, showAiChip, headerActions, body, followUpLabel, followUpPrompts, onSelectFollowUp, onSend, inputDisabled, inputPlaceholder, sx, }: AgentChatWindowProps) => react_jsx_runtime.JSX.Element;
77
+
78
+ interface AgentChatWindowHeaderProps {
79
+ title?: string;
80
+ subtitle?: string;
81
+ showAiChip?: boolean;
82
+ actions?: React.ReactNode;
83
+ sx?: SxProps<Theme>;
84
+ }
85
+ declare const AgentChatWindowHeader: ({ title, subtitle, showAiChip, actions, sx, }: AgentChatWindowHeaderProps) => react_jsx_runtime.JSX.Element;
86
+
62
87
  type Props$1 = Omit<TypographyProps, "variant" | "component">;
63
88
  /**
64
89
  * Monospace inline code / path snippet.
@@ -93,7 +118,7 @@ interface SelectProps extends Omit<SelectProps$1, "label"> {
93
118
  /** Convenience prop: renders `MenuItem`s from an array instead of requiring children. */
94
119
  options?: SelectOption[];
95
120
  /** `sx` passed to the wrapping `FormControl`. */
96
- formControlSx?: SxProps<Theme>;
121
+ formControlSx?: SxProps$1<Theme>;
97
122
  }
98
123
  /**
99
124
  * A single-value (or multi-value) select field that bundles
@@ -160,7 +185,7 @@ declare const ActionBar: ({ title, extraLeft, extraRight, homeHref, }: ActionBar
160
185
 
161
186
  interface AccordionGroupProps {
162
187
  children: ReactNode;
163
- sx?: SxProps<Theme$1>;
188
+ sx?: SxProps$1<Theme$1>;
164
189
  }
165
190
  declare const AccordionGroup: ({ children, sx }: AccordionGroupProps) => react_jsx_runtime.JSX.Element;
166
191
  interface AccordionGroupItemProps {
@@ -170,8 +195,8 @@ interface AccordionGroupItemProps {
170
195
  disabled?: boolean;
171
196
  summaryProps?: Omit<AccordionSummaryProps, "children" | "expandIcon">;
172
197
  expandIcon?: ReactNode;
173
- sx?: SxProps<Theme$1>;
174
- detailsSx?: SxProps<Theme$1>;
198
+ sx?: SxProps$1<Theme$1>;
199
+ detailsSx?: SxProps$1<Theme$1>;
175
200
  }
176
201
  declare const AccordionGroupItem: ({ summary, children, defaultExpanded, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionGroupItemProps) => react_jsx_runtime.JSX.Element;
177
202
 
@@ -184,8 +209,8 @@ interface AccordionSingleProps {
184
209
  disabled?: boolean;
185
210
  summaryProps?: Omit<AccordionSummaryProps, "children" | "expandIcon">;
186
211
  expandIcon?: ReactNode;
187
- sx?: SxProps<Theme$1>;
188
- detailsSx?: SxProps<Theme$1>;
212
+ sx?: SxProps$1<Theme$1>;
213
+ detailsSx?: SxProps$1<Theme$1>;
189
214
  }
190
215
  declare const AccordionSingle: ({ summary, children, defaultExpanded, expanded, onChange, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionSingleProps) => react_jsx_runtime.JSX.Element;
191
216
 
@@ -263,12 +288,67 @@ interface CheckboxGroupProps {
263
288
  labels?: string[];
264
289
  selectedValues?: string[];
265
290
  onChange?: (values: string[]) => void;
266
- rootSx?: SxProps$1<Theme>;
267
- groupSx?: SxProps$1<Theme>;
268
- titleSx?: SxProps$1<Theme>;
291
+ rootSx?: SxProps$2<Theme>;
292
+ groupSx?: SxProps$2<Theme>;
293
+ titleSx?: SxProps$2<Theme>;
269
294
  }
270
295
  declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
271
296
 
297
+ interface ChatInputProps {
298
+ onSend: (message: string) => void;
299
+ disabled?: boolean;
300
+ placeholder?: string;
301
+ maxRows?: number;
302
+ sendButtonTitle?: string;
303
+ }
304
+ declare const ChatInput: ({ onSend, disabled, placeholder, maxRows, sendButtonTitle, }: ChatInputProps) => react_jsx_runtime.JSX.Element;
305
+
306
+ interface ChatHistoryConversation {
307
+ id: string;
308
+ title: string;
309
+ messages?: unknown[];
310
+ messageCount?: number;
311
+ }
312
+ interface ChatHistoryProps {
313
+ conversations: ChatHistoryConversation[];
314
+ activeConversationId: string | null;
315
+ onSelectConversation: (id: string) => void;
316
+ onDeleteConversation?: (id: string) => void | Promise<boolean>;
317
+ onNewConversation?: () => void;
318
+ onSearchChange?: (query: string) => void;
319
+ title?: string;
320
+ emptyText?: string;
321
+ newChatTitle?: string;
322
+ deleteConversationTitle?: string;
323
+ searchPlaceholder?: string;
324
+ searchDebounceMs?: number;
325
+ width?: number | string;
326
+ sx?: BoxProps["sx"];
327
+ formatMessageCount?: (count: number) => string;
328
+ }
329
+
330
+ declare const ChatHistory: ({ conversations, activeConversationId, onSelectConversation, onDeleteConversation, onNewConversation, onSearchChange, title, emptyText, newChatTitle, deleteConversationTitle, searchPlaceholder, searchDebounceMs, width, sx, formatMessageCount, }: ChatHistoryProps) => react_jsx_runtime.JSX.Element;
331
+
332
+ interface ChatHistoryHeaderProps {
333
+ title: string;
334
+ newChatTitle: string;
335
+ onNewConversation?: () => void;
336
+ onSearchChange?: (query: string) => void;
337
+ searchPlaceholder?: string;
338
+ searchDebounceMs?: number;
339
+ }
340
+ declare const ChatHistoryHeader: ({ title, newChatTitle, onNewConversation, onSearchChange, searchPlaceholder, searchDebounceMs, }: ChatHistoryHeaderProps) => react_jsx_runtime.JSX.Element;
341
+
342
+ interface ChatHistoryButtonBaseProps {
343
+ conversation: ChatHistoryConversation;
344
+ isActive: boolean;
345
+ onSelectConversation: (id: string) => void;
346
+ onDeleteConversation?: (id: string) => void | Promise<boolean>;
347
+ deleteConversationTitle: string;
348
+ formatMessageCount: (count: number) => string;
349
+ }
350
+ declare const ChatHistoryButtonBase: ({ conversation, isActive, onSelectConversation, onDeleteConversation, deleteConversationTitle, formatMessageCount, }: ChatHistoryButtonBaseProps) => react_jsx_runtime.JSX.Element;
351
+
272
352
  declare const Chip: (props: ChipProps) => react_jsx_runtime.JSX.Element;
273
353
 
274
354
  declare const Dialog: (props: DialogProps) => react_jsx_runtime.JSX.Element;
@@ -343,9 +423,9 @@ interface LocationMultiSelectProps {
343
423
  emptyLabel?: string;
344
424
  selectedLocations?: string[];
345
425
  onLocationsChange?: (next: string[]) => void;
346
- formControlSx?: SxProps<Theme>;
347
- menuSx?: SxProps<Theme>;
348
- selectSx?: SxProps<Theme>;
426
+ formControlSx?: SxProps$1<Theme>;
427
+ menuSx?: SxProps$1<Theme>;
428
+ selectSx?: SxProps$1<Theme>;
349
429
  }
350
430
  declare const LocationMultiSelect: react__default.FC<LocationMultiSelectProps>;
351
431
 
@@ -470,8 +550,8 @@ interface SearchInputProps {
470
550
  onSearchChange: (value: string) => void;
471
551
  placeholder?: string;
472
552
  searchValue?: string;
473
- sx?: SxProps<Theme>;
474
- styles?: SxProps<Theme>;
553
+ sx?: SxProps$1<Theme>;
554
+ styles?: SxProps$1<Theme>;
475
555
  }
476
556
  declare const SearchInput: react__default.FC<SearchInputProps>;
477
557
 
@@ -492,7 +572,7 @@ interface SideBladeProps {
492
572
  /** Width of the blade when collapsed (px). Default: 64 */
493
573
  collapsedWidth?: number;
494
574
  /** Additional sx overrides applied to the Drawer Paper */
495
- sx?: SxProps<Theme$1>;
575
+ sx?: SxProps$1<Theme$1>;
496
576
  }
497
577
  /**
498
578
  * SideBlade — a mini-variant persistent Drawer that expands/collapses.
@@ -517,19 +597,22 @@ interface SideBladeNavListItemProps {
517
597
  href: string;
518
598
  [key: string]: unknown;
519
599
  }>;
600
+ onSelect?: (item: SideBladeNavItem) => void;
520
601
  }
521
- declare const SideBladeNavListItem: ({ item, isActive, collapsed, linkComponent, }: SideBladeNavListItemProps) => react_jsx_runtime.JSX.Element;
602
+ declare const SideBladeNavListItem: ({ item, isActive, collapsed, linkComponent, onSelect, }: SideBladeNavListItemProps) => react_jsx_runtime.JSX.Element;
522
603
 
523
604
  interface SideBladeNavListProps {
524
605
  items: SideBladeNavItem[];
525
- currentPathname: string;
606
+ currentPathname?: string;
607
+ selectedHref?: string;
526
608
  collapsed: boolean;
527
609
  linkComponent?: ComponentType<{
528
610
  href: string;
529
611
  [key: string]: unknown;
530
612
  }>;
613
+ onItemSelect?: (item: SideBladeNavItem) => void;
531
614
  }
532
- declare const SideBladeNavList: ({ items, currentPathname, collapsed, linkComponent, }: SideBladeNavListProps) => react_jsx_runtime.JSX.Element;
615
+ declare const SideBladeNavList: ({ items, currentPathname, selectedHref, collapsed, linkComponent, onItemSelect, }: SideBladeNavListProps) => react_jsx_runtime.JSX.Element;
533
616
 
534
617
  type SkeletonProps = SkeletonProps$1;
535
618
  /**
@@ -714,9 +797,11 @@ type ModeTokens = {
714
797
  background: {
715
798
  default: string;
716
799
  paper: string;
800
+ greys: string;
717
801
  };
718
802
  text: {
719
803
  primary: string;
804
+ primaryReverse: string;
720
805
  secondary: string;
721
806
  blues: string;
722
807
  greens: string;
@@ -813,8 +898,8 @@ declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOp
813
898
  pointerEvents: string;
814
899
  };
815
900
  };
816
- declare const leftPipe: SxProps$2<Theme>;
817
- declare const expandableText: (isExpanded: boolean) => SxProps$2<Theme>;
901
+ declare const leftPipe: SxProps<Theme>;
902
+ declare const expandableText: (isExpanded: boolean) => SxProps<Theme>;
818
903
 
819
- export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AiButton, AiCard, AiChip, AiGlassCard, AiGlassPaper, AiPaper, Alert, Avatar, Body1, Body2, Box, ButtonBase, Caption, Card, CheckboxGroup, Chip, Code, Collapse, Container, DateRangeFilter, DateRangePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, EmptyState, FaviconLinks, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, Grid, H1, H2, H3, H4, IconButton, Link, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MarkdownContent, MessageList, MuiAppThemeProvider, NexusBarChart, NexusChatWidget, NexusDataGrid, NexusHome, NexusLineChart, NexusLogo, Paper, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, Select, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, SourceCitations, Stack, StatusBadge, StatusChip, SuggestedPrompts, Switch, Tab, Tabs, TextField, ThemeModeContext, ThemeModeProvider, ThemeToggle, Tooltip, colours, createSageTheme, expandableText, fontSageHeadline, fontSageText, fontSageUI, formatDate, getFaviconUrls, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
820
- export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, AiButtonProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, CardProps, CardTrend, ChatMessage, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, LinkProps, LoadingSpinnerNexusProps, ModeTokens, NexusBarChartProps, NexusChatWidgetProps, NexusLineChartProps, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SelectOption, SelectProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, StatusBadgeProps, StatusBadgeVariant, ThemeMode, TooltipProps, TraceEvent };
904
+ export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AgentChatWindow, AgentChatWindowHeader, AiButton, AiCard, AiChip, AiGlassCard, AiGlassPaper, AiPaper, Alert, Avatar, Body1, Body2, Box, ButtonBase, Caption, Card, ChatHistory, ChatHistoryButtonBase, ChatHistoryHeader, ChatInput, CheckboxGroup, Chip, Code, Collapse, Container, DateRangeFilter, DateRangePicker, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, EmptyState, FaviconLinks, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, Grid, H1, H2, H3, H4, IconButton, Link, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MarkdownContent, MessageList, MuiAppThemeProvider, NexusBarChart, NexusChatWidget, NexusDataGrid, NexusHome, NexusLineChart, NexusLogo, Paper, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, Select, SideBlade, SideBladeNavList, SideBladeNavListItem, Skeleton, SkillChip, SkipLink, SourceCitations, Stack, StatusBadge, StatusChip, SuggestedPrompts, Switch, Tab, Tabs, TextField, ThemeModeContext, ThemeModeProvider, ThemeToggle, Tooltip, colours, createSageTheme, expandableText, fontSageHeadline, fontSageText, fontSageUI, formatDate, getFaviconUrls, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
905
+ export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, AgentChatWindowHeaderProps, AgentChatWindowProps, AiButtonProps, AiCardProps, AiChipProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, AvatarProps, AvatarSize, AvatarVariant, CardProps, CardTrend, ChatHistoryButtonBaseProps, ChatHistoryConversation, ChatHistoryHeaderProps, ChatHistoryProps, ChatInputProps, ChatMessage, DateRangeFilterProps, DateRangePickerProps, DateRangePreset, DateRangeValue, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, IconButtonVariant, LinkProps, LoadingSpinnerNexusProps, ModeTokens, NexusBarChartProps, NexusChatWidgetProps, NexusLineChartProps, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SelectOption, SelectProps, SideBladeNavItem, SideBladeNavListItemProps, SideBladeNavListProps, SideBladeProps, SkeletonProps, SkipLinkProps, StatusBadgeProps, StatusBadgeVariant, ThemeMode, TooltipProps, TraceEvent };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export{formatDate,getFiscalPeriod}from"./components/DateFormats.mjs";export{DateRangeFilter}from"./components/DateRangeFilter.mjs";export{DateRangePicker}from"./components/DateRangePicker.mjs";export{Alert}from"./components/Alert.mjs";export{Code}from"./components/Code.mjs";export{Container}from"./components/Container.mjs";export{Grid}from"./components/Grid.mjs";export{Link}from"./components/Link.mjs";export{Select}from"./components/Select.mjs";export{SkipLink}from"./components/SkipLink.mjs";export{StatusBadge}from"./components/StatusBadge.mjs";export{Switch}from"./components/Switch.mjs";export{ActionBarTitle,Body1,Body2,Caption,H1,H2,H3,H4}from"./components/Typography.mjs";export{ActionBar}from"./components/ActionBar.mjs";export{AccordionGroup,AccordionGroupItem}from"./components/AccordionGroup.mjs";export{AccordionSingle}from"./components/AccordionSingle.mjs";export{AiButton}from"./components/AiButton.mjs";export{AiChip}from"./components/AiChip.mjs";export{AiCard}from"./components/AiCard.mjs";export{AiGlassCard}from"./components/AiGlassCard.mjs";export{AiPaper}from"./components/AiPaper.mjs";export{AiGlassPaper}from"./components/AiGlassPaper.mjs";export{Box}from"./components/Box.mjs";export{Collapse}from"./components/Collapse.mjs";export{NexusDataGrid}from"./components/NexusDataGrid.mjs";export{ButtonBase}from"./components/ButtonBase.mjs";export{Card}from"./components/Card.mjs";export{CheckboxGroup}from"./components/CheckboxGroup.mjs";export{Chip}from"./components/Chip.mjs";export{Dialog,DialogActions,DialogContent,DialogContentText,DialogTitle}from"./components/Dialog.mjs";export{Divider}from"./components/Divider.mjs";export{GlassCard}from"./components/GlassCard.mjs";export{GlassPaper}from"./components/GlassPaper.mjs";export{GlassPaperAsync}from"./components/GlassPaperAsync.mjs";export{GreenWaveBackground}from"./components/GreenWaveBackground.mjs";export{IconButton}from"./components/IconButton.mjs";export{Avatar}from"./components/Avatar.mjs";export{LoadingSpinnerNexus}from"./components/LoadingSpinnerNexus.mjs";export{LocationMultiSelect}from"./components/LocationMultiSelect.mjs";export{LogoOptions}from"./components/LogoOptions/index.mjs";export{NexusHome}from"./components/NexusHome.mjs";export{default as NexusLogo}from"./components/NexusLogo.mjs";export{Paper}from"./components/Paper.mjs";export{PrimaryButton}from"./components/PrimaryButton.mjs";export{PrimaryButtonLink}from"./components/PrimaryButtonLink.mjs";export{SecondaryButton}from"./components/SecondaryButton.mjs";export{RagDot}from"./components/RagDot.mjs";export{RagChip}from"./components/RagChip.mjs";export{SecondaryButtonLink}from"./components/SecondaryButtonLink.mjs";export{SearchInput}from"./components/SearchInput.mjs";export{SideBlade}from"./components/SideBlade.mjs";export{SideBladeNavList}from"./components/SideBladeNavList.mjs";export{SideBladeNavListItem}from"./components/SideBladeNavListItem.mjs";export{Skeleton}from"./components/Skeleton.mjs";export{SkillChip}from"./components/SkillChip.mjs";export{Stack}from"./components/Stack.mjs";export{StatusChip}from"./components/StatusChip.mjs";export{Tab}from"./components/Tab.mjs";export{Tabs}from"./components/Tabs.mjs";export{TextField}from"./components/TextField.mjs";export{ThemeToggle}from"./components/ThemeToggle.mjs";export{Tooltip}from"./components/Tooltip.mjs";export{NexusLineChart}from"./components/NexusLineChart.mjs";export{NexusBarChart}from"./components/NexusBarChart.mjs";export{NexusChatWidget}from"./components/NexusChatWidget/NexusChatWidget.mjs";import"react/jsx-runtime";import"@mui/icons-material/ChatBubbleOutlineOutlined";import"@mui/icons-material/SmartToy";export{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./theme/tokens.mjs";export{default as MarkdownContent}from"./components/NexusChatWidget/ChatComponents/MarkdownContent.mjs";import"react";import"@mui/icons-material/CheckCircle";import"@mui/icons-material/ExpandMore";import"@mui/icons-material/ExpandLess";import"@mui/icons-material/OpenInNew";import"@mui/icons-material/StopCircle";export{default as SuggestedPrompts}from"./components/NexusChatWidget/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/NexusChatWidget/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/NexusChatWidget/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/NexusChatWidget/ChatComponents/SourceCitations.mjs";export{default as nexusLogoNode}from"./assets/images/nexus-logo-node.svg.mjs";export{default as nexusLogoFavicon}from"./assets/images/nexus-logo-favicon.svg.mjs";export{default as nexusLogoIco}from"./assets/images/favicon.ico.mjs";export{getFaviconUrls}from"./assets/images/urls.mjs";export{FaviconLinks}from"./components/FaviconLinks.mjs";export{createSageTheme}from"./theme/sageTheme.mjs";export{useTokens}from"./theme/useTokens.mjs";export{default as MuiAppThemeProvider}from"./theme/MuiAppThemeProvider.mjs";export{ThemeModeContext,ThemeModeProvider,useThemeMode}from"./theme/ThemeContext.mjs";export{AlertTitle,MenuItem,alpha,useMediaQuery,useTheme}from"@mui/material";export{expandableText,getGradientBorderStyles,leftPipe}from"./theme/sxHelpers.mjs";
1
+ export{formatDate,getFiscalPeriod}from"./components/DateFormats.mjs";export{DateRangeFilter}from"./components/DateRangeFilter.mjs";export{DateRangePicker}from"./components/DateRangePicker.mjs";export{Alert}from"./components/Alert.mjs";export{AgentChatWindow}from"./components/AgentChatWindow.mjs";export{AgentChatWindowHeader}from"./components/AgentChatWindowHeader.mjs";export{Code}from"./components/Code.mjs";export{Container}from"./components/Container.mjs";export{Grid}from"./components/Grid.mjs";export{Link}from"./components/Link.mjs";export{Select}from"./components/Select.mjs";export{SkipLink}from"./components/SkipLink.mjs";export{StatusBadge}from"./components/StatusBadge.mjs";export{Switch}from"./components/Switch.mjs";export{ActionBarTitle,Body1,Body2,Caption,H1,H2,H3,H4}from"./components/Typography.mjs";export{ActionBar}from"./components/ActionBar.mjs";export{AccordionGroup,AccordionGroupItem}from"./components/AccordionGroup.mjs";export{AccordionSingle}from"./components/AccordionSingle.mjs";export{AiButton}from"./components/AiButton.mjs";export{AiChip}from"./components/AiChip.mjs";export{AiCard}from"./components/AiCard.mjs";export{AiGlassCard}from"./components/AiGlassCard.mjs";export{AiPaper}from"./components/AiPaper.mjs";export{AiGlassPaper}from"./components/AiGlassPaper.mjs";export{Box}from"./components/Box.mjs";export{Collapse}from"./components/Collapse.mjs";export{NexusDataGrid}from"./components/NexusDataGrid.mjs";export{ButtonBase}from"./components/ButtonBase.mjs";export{Card}from"./components/Card.mjs";export{CheckboxGroup}from"./components/CheckboxGroup.mjs";export{ChatInput}from"./components/ChatInput.mjs";export{ChatHistory}from"./components/ChatHistory.mjs";export{ChatHistoryHeader}from"./components/ChatHistoryHeader.mjs";export{ChatHistoryButtonBase}from"./components/ChatHistoryButtonBase.mjs";export{Chip}from"./components/Chip.mjs";export{Dialog,DialogActions,DialogContent,DialogContentText,DialogTitle}from"./components/Dialog.mjs";export{Divider}from"./components/Divider.mjs";export{GlassCard}from"./components/GlassCard.mjs";export{GlassPaper}from"./components/GlassPaper.mjs";export{GlassPaperAsync}from"./components/GlassPaperAsync.mjs";export{GreenWaveBackground}from"./components/GreenWaveBackground.mjs";export{IconButton}from"./components/IconButton.mjs";export{Avatar}from"./components/Avatar.mjs";export{LoadingSpinnerNexus}from"./components/LoadingSpinnerNexus.mjs";export{LocationMultiSelect}from"./components/LocationMultiSelect.mjs";export{LogoOptions}from"./components/LogoOptions/index.mjs";export{NexusHome}from"./components/NexusHome.mjs";export{default as NexusLogo}from"./components/NexusLogo.mjs";export{Paper}from"./components/Paper.mjs";export{PrimaryButton}from"./components/PrimaryButton.mjs";export{PrimaryButtonLink}from"./components/PrimaryButtonLink.mjs";export{SecondaryButton}from"./components/SecondaryButton.mjs";export{RagDot}from"./components/RagDot.mjs";export{RagChip}from"./components/RagChip.mjs";export{SecondaryButtonLink}from"./components/SecondaryButtonLink.mjs";export{SearchInput}from"./components/SearchInput.mjs";export{SideBlade}from"./components/SideBlade.mjs";export{SideBladeNavList}from"./components/SideBladeNavList.mjs";export{SideBladeNavListItem}from"./components/SideBladeNavListItem.mjs";export{Skeleton}from"./components/Skeleton.mjs";export{SkillChip}from"./components/SkillChip.mjs";export{Stack}from"./components/Stack.mjs";export{StatusChip}from"./components/StatusChip.mjs";export{Tab}from"./components/Tab.mjs";export{Tabs}from"./components/Tabs.mjs";export{TextField}from"./components/TextField.mjs";export{ThemeToggle}from"./components/ThemeToggle.mjs";export{Tooltip}from"./components/Tooltip.mjs";export{NexusLineChart}from"./components/NexusLineChart.mjs";export{NexusBarChart}from"./components/NexusBarChart.mjs";export{NexusChatWidget}from"./components/NexusChatWidget/NexusChatWidget.mjs";import"react/jsx-runtime";import"@mui/icons-material/ChatBubbleOutlineOutlined";import"@mui/icons-material/SmartToy";export{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./theme/tokens.mjs";export{default as MarkdownContent}from"./components/NexusChatWidget/ChatComponents/MarkdownContent.mjs";import"react";import"@mui/icons-material/CheckCircle";import"@mui/icons-material/ExpandMore";import"@mui/icons-material/ExpandLess";import"@mui/icons-material/OpenInNew";import"@mui/icons-material/StopCircle";export{default as SuggestedPrompts}from"./components/NexusChatWidget/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/NexusChatWidget/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/NexusChatWidget/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/NexusChatWidget/ChatComponents/SourceCitations.mjs";export{default as nexusLogoNode}from"./assets/images/nexus-logo-node.svg.mjs";export{default as nexusLogoFavicon}from"./assets/images/nexus-logo-favicon.svg.mjs";export{default as nexusLogoIco}from"./assets/images/favicon.ico.mjs";export{getFaviconUrls}from"./assets/images/urls.mjs";export{FaviconLinks}from"./components/FaviconLinks.mjs";export{createSageTheme}from"./theme/sageTheme.mjs";export{useTokens}from"./theme/useTokens.mjs";export{default as MuiAppThemeProvider}from"./theme/MuiAppThemeProvider.mjs";export{ThemeModeContext,ThemeModeProvider,useThemeMode}from"./theme/ThemeContext.mjs";export{AlertTitle,MenuItem,alpha,useMediaQuery,useTheme}from"@mui/material";export{expandableText,getGradientBorderStyles,leftPipe}from"./theme/sxHelpers.mjs";
@@ -1 +1 @@
1
- import{stringify as e}from"../../comma-separated-tokens/index.mjs";import{ok as t}from"../../devlop/lib/default.mjs";import{svg as n,html as r}from"../../property-information/index.mjs";import{stringify as o}from"../../space-separated-tokens/index.mjs";import s from"../../../_virtual/index.mjs";import{whitespace as a}from"../../hast-util-whitespace/lib/index.mjs";import{name as i}from"../../estree-util-is-identifier-name/lib/index.mjs";import{VFileMessage as l}from"../../vfile-message/lib/index.mjs";import{find as p}from"../../property-information/lib/find.mjs";import{hastToReact as c}from"../../property-information/lib/hast-to-react.mjs";import{pointStart as u}from"../../unist-util-position/lib/index.mjs";const m={}.hasOwnProperty,f=new Map,d=/[A-Z]/g,y=new Set(["table","tbody","thead","tfoot","tr"]),x=new Set(["td","th"]),v="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function h(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const o=t.filePath||void 0;let s;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");s=function(e,t){return n;function n(n,r,o,s){const a=Array.isArray(o.children),i=u(n);return t(r,o,s,a,{columnNumber:i?i.column-1:void 0,fileName:e,lineNumber:i?i.line:void 0},void 0)}}(o,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");s=function(e,t,n){return r;function r(e,r,o,s){const a=Array.isArray(o.children)?n:t;return s?a(r,o,s):a(r,o)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?n:r,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=g(a,e,void 0);return i&&"string"!=typeof i?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function g(e,r,o){return"element"===r.type?function(e,t,r){const o=e.schema;let s=o;"svg"===t.tagName.toLowerCase()&&"html"===o.space&&(s=n,e.schema=s);e.ancestors.push(t);const i=N(e,t.tagName,!1),l=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&m.call(t.properties,o)){const s=w(e,o,t.properties[o]);if(s){const[o,a]=s;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&x.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let p=j(e,t);y.has(t.tagName)&&(p=p.filter(function(e){return"string"!=typeof e||!a(e)}));return b(e,l,i,t),E(l,p),e.ancestors.pop(),e.schema=o,e.create(t,i,l,r)}(e,r,o):"mdxFlowExpression"===r.type||"mdxTextExpression"===r.type?function(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return t("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}A(e,n.position)}(e,r):"mdxJsxFlowElement"===r.type||"mdxJsxTextElement"===r.type?function(e,r,o){const s=e.schema;let a=s;"svg"===r.name&&"html"===s.space&&(a=n,e.schema=a);e.ancestors.push(r);const i=null===r.name?e.Fragment:N(e,r.name,!0),l=function(e,n){const r={};for(const o of n.attributes)if("mdxJsxExpressionAttribute"===o.type)if(o.data&&o.data.estree&&e.evaluater){const n=o.data.estree.body[0];t("ExpressionStatement"===n.type);const s=n.expression;t("ObjectExpression"===s.type);const a=s.properties[0];t("SpreadElement"===a.type),Object.assign(r,e.evaluater.evaluateExpression(a.argument))}else A(e,n.position);else{const s=o.name;let a;if(o.value&&"object"==typeof o.value)if(o.value.data&&o.value.data.estree&&e.evaluater){const n=o.value.data.estree.body[0];t("ExpressionStatement"===n.type),a=e.evaluater.evaluateExpression(n.expression)}else A(e,n.position);else a=null===o.value||o.value;r[s]=a}return r}(e,r),p=j(e,r);return b(e,l,i,r),E(l,p),e.ancestors.pop(),e.schema=s,e.create(r,i,l,o)}(e,r,o):"mdxjsEsm"===r.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);A(e,t.position)}(e,r):"root"===r.type?function(e,t,n){const r={};return E(r,j(e,t)),e.create(t,e.Fragment,r,n)}(e,r,o):"text"===r.type?function(e,t){return t.value}(0,r):void 0}function b(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function E(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function j(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:f;for(;++r<t.children.length;){const s=t.children[r];let a;if(e.passKeys){const e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const i=g(e,s,a);void 0!==i&&n.push(i)}return n}function w(t,n,r){const a=p(t.schema,n);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?e(r):o(r)),"style"===a.property){let e="object"==typeof r?r:function(e,t){try{return s(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new l("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=v+"#cannot-parse-style-attribute",r}}(t,String(r));return"css"===t.stylePropertyNameCase&&(e=function(e){const t={};let n;for(n in e)m.call(e,n)&&(t[C(n)]=e[n]);return t}(e)),["style",e]}return["react"===t.elementAttributeNameCase&&a.space?c[a.property]||a.property:a.attribute,r]}}function N(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=i(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=i(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return m.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);A(e)}function A(e,t){const n=new l("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=v+"#cannot-handle-mdx-estrees-without-createevaluater",n}function C(e){let t=e.replace(d,S);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function S(e){return"-"+e.toLowerCase()}export{h as toJsxRuntime};
1
+ import{stringify as e}from"../../comma-separated-tokens/index.mjs";import{ok as t}from"../../devlop/lib/default.mjs";import{svg as n,html as r}from"../../property-information/index.mjs";import{stringify as o}from"../../space-separated-tokens/index.mjs";import s from"../../../_virtual/index2.mjs";import{whitespace as a}from"../../hast-util-whitespace/lib/index.mjs";import{name as i}from"../../estree-util-is-identifier-name/lib/index.mjs";import{VFileMessage as l}from"../../vfile-message/lib/index.mjs";import{find as p}from"../../property-information/lib/find.mjs";import{hastToReact as c}from"../../property-information/lib/hast-to-react.mjs";import{pointStart as u}from"../../unist-util-position/lib/index.mjs";const m={}.hasOwnProperty,f=new Map,d=/[A-Z]/g,y=new Set(["table","tbody","thead","tfoot","tr"]),x=new Set(["td","th"]),v="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function h(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const o=t.filePath||void 0;let s;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");s=function(e,t){return n;function n(n,r,o,s){const a=Array.isArray(o.children),i=u(n);return t(r,o,s,a,{columnNumber:i?i.column-1:void 0,fileName:e,lineNumber:i?i.line:void 0},void 0)}}(o,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");s=function(e,t,n){return r;function r(e,r,o,s){const a=Array.isArray(o.children)?n:t;return s?a(r,o,s):a(r,o)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?n:r,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=g(a,e,void 0);return i&&"string"!=typeof i?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function g(e,r,o){return"element"===r.type?function(e,t,r){const o=e.schema;let s=o;"svg"===t.tagName.toLowerCase()&&"html"===o.space&&(s=n,e.schema=s);e.ancestors.push(t);const i=N(e,t.tagName,!1),l=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&m.call(t.properties,o)){const s=w(e,o,t.properties[o]);if(s){const[o,a]=s;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&x.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let p=j(e,t);y.has(t.tagName)&&(p=p.filter(function(e){return"string"!=typeof e||!a(e)}));return b(e,l,i,t),E(l,p),e.ancestors.pop(),e.schema=o,e.create(t,i,l,r)}(e,r,o):"mdxFlowExpression"===r.type||"mdxTextExpression"===r.type?function(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return t("ExpressionStatement"===r.type),e.evaluater.evaluateExpression(r.expression)}A(e,n.position)}(e,r):"mdxJsxFlowElement"===r.type||"mdxJsxTextElement"===r.type?function(e,r,o){const s=e.schema;let a=s;"svg"===r.name&&"html"===s.space&&(a=n,e.schema=a);e.ancestors.push(r);const i=null===r.name?e.Fragment:N(e,r.name,!0),l=function(e,n){const r={};for(const o of n.attributes)if("mdxJsxExpressionAttribute"===o.type)if(o.data&&o.data.estree&&e.evaluater){const n=o.data.estree.body[0];t("ExpressionStatement"===n.type);const s=n.expression;t("ObjectExpression"===s.type);const a=s.properties[0];t("SpreadElement"===a.type),Object.assign(r,e.evaluater.evaluateExpression(a.argument))}else A(e,n.position);else{const s=o.name;let a;if(o.value&&"object"==typeof o.value)if(o.value.data&&o.value.data.estree&&e.evaluater){const n=o.value.data.estree.body[0];t("ExpressionStatement"===n.type),a=e.evaluater.evaluateExpression(n.expression)}else A(e,n.position);else a=null===o.value||o.value;r[s]=a}return r}(e,r),p=j(e,r);return b(e,l,i,r),E(l,p),e.ancestors.pop(),e.schema=s,e.create(r,i,l,o)}(e,r,o):"mdxjsEsm"===r.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);A(e,t.position)}(e,r):"root"===r.type?function(e,t,n){const r={};return E(r,j(e,t)),e.create(t,e.Fragment,r,n)}(e,r,o):"text"===r.type?function(e,t){return t.value}(0,r):void 0}function b(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function E(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function j(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:f;for(;++r<t.children.length;){const s=t.children[r];let a;if(e.passKeys){const e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const i=g(e,s,a);void 0!==i&&n.push(i)}return n}function w(t,n,r){const a=p(t.schema,n);if(!(null==r||"number"==typeof r&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?e(r):o(r)),"style"===a.property){let e="object"==typeof r?r:function(e,t){try{return s(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new l("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=v+"#cannot-parse-style-attribute",r}}(t,String(r));return"css"===t.stylePropertyNameCase&&(e=function(e){const t={};let n;for(n in e)m.call(e,n)&&(t[C(n)]=e[n]);return t}(e)),["style",e]}return["react"===t.elementAttributeNameCase&&a.space?c[a.property]||a.property:a.attribute,r]}}function N(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=i(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=i(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return m.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);A(e)}function A(e,t){const n=new l("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=v+"#cannot-handle-mdx-estrees-without-createevaluater",n}function C(e){let t=e.replace(d,S);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function S(e){return"-"+e.toLowerCase()}export{h as toJsxRuntime};
@@ -1 +1 @@
1
- import{bail as e}from"../../bail/index.mjs";import t from"../../../_virtual/index2.mjs";import s from"../../is-plain-obj/index.mjs";import{CallableInstance as r}from"./callable-instance.mjs";import{trough as n}from"../../trough/lib/index.mjs";import{VFile as i}from"../../vfile/lib/index.mjs";const o={}.hasOwnProperty;class c extends r{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=n()}copy(){const e=new c;let s=-1;for(;++s<this.attachers.length;){const t=this.attachers[s];e.use(...t)}return e.data(t(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(p("data",this.frozen),this.namespace[e]=t,this):o.call(this.namespace,e)&&this.namespace[e]||void 0:e?(p("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...s]=this.attachers[this.freezeIndex];if(!1===s[0])continue;!0===s[0]&&(s[0]=void 0);const r=t.call(e,...s);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=m(e),s=this.parser||this.Parser;return f("parse",s),s(String(t),t)}process(e,t){const s=this;return this.freeze(),f("process",this.parser||this.Parser),h("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,n){const i=m(e),o=s.parse(i);function c(e,s){e||!s?n(e):r?r(s):t(void 0,s)}s.run(o,i,function(e,t,r){if(e||!t||!r)return c(e);const n=t,i=s.stringify(n,r);var o;"string"==typeof(o=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?r.value=i:r.result=i,c(e,r)})}}processSync(t){let s,r=!1;return this.freeze(),f("processSync",this.parser||this.Parser),h("processSync",this.compiler||this.Compiler),this.process(t,function(t,n){r=!0,e(t),s=n}),l("processSync","process",r),s}run(e,t,s){u(e),this.freeze();const r=this.transformers;return s||"function"!=typeof t||(s=t,t=void 0),s?n(void 0,s):new Promise(n);function n(n,i){const o=m(t);r.run(e,o,function(t,r,o){const c=r||e;t?i(t):n?n(c):s(void 0,c,o)})}}runSync(t,s){let r,n=!1;return this.run(t,s,function(t,s){e(t),r=s,n=!0}),l("runSync","run",n),r}stringify(e,t){this.freeze();const s=m(t),r=this.compiler||this.Compiler;return h("stringify",r),u(e),r(e,s)}use(e,...r){const n=this.attachers,i=this.namespace;if(p("use",this.frozen),null==e);else if("function"==typeof e)f(e,r);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):c(e)}return this;function o(e){if("function"==typeof e)f(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...s]=e;f(t,s)}else c(e)}}function c(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(i.settings=t(!0,i.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function f(e,r){let i=-1,o=-1;for(;++i<n.length;)if(n[i][0]===e){o=i;break}if(-1===o)n.push([e,...r]);else if(r.length>0){let[i,...c]=r;const a=n[o][1];s(a)&&s(i)&&(i=t(!0,a,i)),n[o]=[e,i,...c]}}}}const a=(new c).freeze();function f(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function h(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function p(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function u(e){if(!s(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function l(e,t,s){if(!s)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function m(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new i(e)}export{c as Processor,a as unified};
1
+ import{bail as e}from"../../bail/index.mjs";import t from"../../../_virtual/index.mjs";import s from"../../is-plain-obj/index.mjs";import{CallableInstance as r}from"./callable-instance.mjs";import{trough as n}from"../../trough/lib/index.mjs";import{VFile as i}from"../../vfile/lib/index.mjs";const o={}.hasOwnProperty;class c extends r{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=n()}copy(){const e=new c;let s=-1;for(;++s<this.attachers.length;){const t=this.attachers[s];e.use(...t)}return e.data(t(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(p("data",this.frozen),this.namespace[e]=t,this):o.call(this.namespace,e)&&this.namespace[e]||void 0:e?(p("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...s]=this.attachers[this.freezeIndex];if(!1===s[0])continue;!0===s[0]&&(s[0]=void 0);const r=t.call(e,...s);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=m(e),s=this.parser||this.Parser;return f("parse",s),s(String(t),t)}process(e,t){const s=this;return this.freeze(),f("process",this.parser||this.Parser),h("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,n){const i=m(e),o=s.parse(i);function c(e,s){e||!s?n(e):r?r(s):t(void 0,s)}s.run(o,i,function(e,t,r){if(e||!t||!r)return c(e);const n=t,i=s.stringify(n,r);var o;"string"==typeof(o=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?r.value=i:r.result=i,c(e,r)})}}processSync(t){let s,r=!1;return this.freeze(),f("processSync",this.parser||this.Parser),h("processSync",this.compiler||this.Compiler),this.process(t,function(t,n){r=!0,e(t),s=n}),l("processSync","process",r),s}run(e,t,s){u(e),this.freeze();const r=this.transformers;return s||"function"!=typeof t||(s=t,t=void 0),s?n(void 0,s):new Promise(n);function n(n,i){const o=m(t);r.run(e,o,function(t,r,o){const c=r||e;t?i(t):n?n(c):s(void 0,c,o)})}}runSync(t,s){let r,n=!1;return this.run(t,s,function(t,s){e(t),r=s,n=!0}),l("runSync","run",n),r}stringify(e,t){this.freeze();const s=m(t),r=this.compiler||this.Compiler;return h("stringify",r),u(e),r(e,s)}use(e,...r){const n=this.attachers,i=this.namespace;if(p("use",this.frozen),null==e);else if("function"==typeof e)f(e,r);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):c(e)}return this;function o(e){if("function"==typeof e)f(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...s]=e;f(t,s)}else c(e)}}function c(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(i.settings=t(!0,i.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function f(e,r){let i=-1,o=-1;for(;++i<n.length;)if(n[i][0]===e){o=i;break}if(-1===o)n.push([e,...r]);else if(r.length>0){let[i,...c]=r;const a=n[o][1];s(a)&&s(i)&&(i=t(!0,a,i)),n[o]=[e,i,...c]}}}}const a=(new c).freeze();function f(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function h(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function p(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function u(e){if(!s(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function l(e,t,s){if(!s)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function m(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new i(e)}export{c as Processor,a as unified};
@@ -1 +1 @@
1
- const e={brilliantGreen:"#00D639",primaryGreenHover:"#00BE32",primaryGreenActive:"#00AA2D",cyan:"#00D6DE",jade:"#00A65C",teal:"#006362",blue:"#2D60FF",navy:"#1531af",cherry:"#cc0f4b",terra:"#A13829",amber:"#E9875B",gold:"#F5C518",black:"#000000",white:"#FFFFFF",darkGrey:"#55616D",lightGrey:"#ffffffc2"},r={brand:`linear-gradient(135deg, ${e.brilliantGreen} 0%, ${e.jade} 42%, ${e.teal} 100%)`,nexus:`linear-gradient(135deg, ${e.brilliantGreen} 0%, ${e.cyan} 40%, ${e.blue} 100%)`,aiConic:`conic-gradient(from var(--ai-angle), ${e.brilliantGreen}, ${e.cyan}, ${e.blue}, ${e.cyan}, ${e.brilliantGreen})`},a="SageText, Inter, Segoe UI, sans-serif",n="SageUI, Inter, Segoe UI, sans-serif",i="Sage Headline, Inter, Segoe UI, sans-serif",l=r=>{const a="dark"===r;return{background:{default:a?e.black:e.white,paper:a?e.black:e.white},text:{primary:a?e.white:e.black,secondary:a?e.lightGrey:e.darkGrey,blues:a?e.cyan:e.blue,greens:a?e.brilliantGreen:e.jade,greys:a?e.lightGrey:e.darkGrey},border:a?"rgba(255, 255, 255, 0.10)":"rgba(0, 0, 0, 0.10)",shadow:a?"0 28px 80px rgba(0, 0, 0, 0.42)":"0 24px 64px rgba(0, 41, 63, 0.12)",outlinedPrimary:a?e.brilliantGreen:e.jade,outlinedPrimaryHover:a?e.primaryGreenHover:e.primaryGreenActive}};export{e as colours,i as fontSageHeadline,a as fontSageText,n as fontSageUI,l as getModeTokens,r as gradients};
1
+ const e={brilliantGreen:"#00D639",primaryGreenHover:"#00BE32",primaryGreenActive:"#00AA2D",cyan:"#00D6DE",jade:"#00A65C",teal:"#006362",blue:"#2D60FF",navy:"#1531af",cherry:"#cc0f4b",terra:"#A13829",amber:"#E9875B",gold:"#F5C518",black:"#000000",white:"#FFFFFF",darkGrey:"#55616D",lightGrey:"#ffffffc2"},r={brand:`linear-gradient(135deg, ${e.brilliantGreen} 0%, ${e.jade} 42%, ${e.teal} 100%)`,nexus:`linear-gradient(135deg, ${e.brilliantGreen} 0%, ${e.cyan} 40%, ${e.blue} 100%)`,aiConic:`conic-gradient(from var(--ai-angle), ${e.brilliantGreen}, ${e.cyan}, ${e.blue}, ${e.cyan}, ${e.brilliantGreen})`},a="SageText, Inter, Segoe UI, sans-serif",n="SageUI, Inter, Segoe UI, sans-serif",i="Sage Headline, Inter, Segoe UI, sans-serif",l=r=>{const a="dark"===r;return{background:{default:a?e.black:e.white,paper:a?e.black:e.white,greys:a?e.lightGrey:e.darkGrey},text:{primary:a?e.white:e.black,primaryReverse:a?e.black:e.white,secondary:a?e.lightGrey:e.darkGrey,blues:a?e.cyan:e.blue,greens:a?e.brilliantGreen:e.jade,greys:a?e.lightGrey:e.darkGrey},border:a?"rgba(255, 255, 255, 0.10)":"rgba(0, 0, 0, 0.10)",shadow:a?"0 28px 80px rgba(0, 0, 0, 0.42)":"0 24px 64px rgba(0, 41, 63, 0.12)",outlinedPrimary:a?e.brilliantGreen:e.jade,outlinedPrimaryHover:a?e.primaryGreenHover:e.primaryGreenActive}};export{e as colours,i as fontSageHeadline,a as fontSageText,n as fontSageUI,l as getModeTokens,r as gradients};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sage-nexus-ui",
3
- "version": "1.8.5",
3
+ "version": "1.9.1",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",