it-data-nexus-ui-library 2.4.1 → 2.4.3

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{jsx as i,Fragment as r,jsxs as e}from"react/jsx-runtime";import{Paper as o,Box as t}from"@mui/material";import{PaperAsync as n}from"../PaperAsync.mjs";const s={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},p=({title:p,titleHidden:a,description:d,actions:c,isLoading:l,isError:m,errorMessage:h,paperSx:x,children:g})=>void 0===p?i(r,{children:g}):a?e(o,{sx:x??{p:3},children:[i(t,{component:"h2",sx:s,children:p}),g]}):i(n,{title:p,description:d,actions:c,isLoading:Boolean(l),isError:Boolean(m),errorMessage:h,sx:x??{p:3},children:g});export{p as ChartFrame};
1
+ import{jsxs as i,jsx as r,Fragment as e}from"react/jsx-runtime";import{Paper as o,Box as t}from"@mui/material";import{PaperAsync as n}from"../PaperAsync.mjs";const s={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},p=({title:p,titleHidden:a,description:d,actions:c,isLoading:l,isError:m,errorMessage:h,paperSx:x,children:g})=>a?i(o,{sx:x??{p:3},children:[p&&r(t,{component:"h2",sx:s,children:p}),g]}):void 0===p?r(e,{children:g}):r(n,{title:p,description:d,actions:c,isLoading:Boolean(l),isError:Boolean(m),errorMessage:h,sx:x??{p:3},children:g});export{p as ChartFrame};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{Card as l,CardContent as a}from"@mui/material";import{MetricStat as r}from"./MetricStat.mjs";const t=({label:t,value:o,delta:i,deltaColor:m,size:d})=>e(l,{sx:{boxShadow:"none"},children:e(a,{sx:{p:1,"&:last-child":{pb:1}},children:e(r,{label:t,value:o,delta:i,deltaColor:m,size:d})})});t.displayName="MetricCard";export{t as MetricCard};
1
+ import{jsx as e}from"react/jsx-runtime";import{Card as l,CardContent as r}from"@mui/material";import{MetricStat as t}from"./MetricStat.mjs";const a={xs:0,sm:.3,md:.5,lg:1},o=({label:o,value:i,delta:m,deltaColor:d,size:s})=>{const c=a[s??"md"];return e(l,{sx:{boxShadow:"none"},children:e(r,{sx:{p:c,"&:last-child":{pb:c}},children:e(t,{label:o,value:i,delta:m,deltaColor:d,size:s})})})};o.displayName="MetricCard";export{o as MetricCard};
@@ -1 +1 @@
1
- import{jsxs as r,jsx as i}from"react/jsx-runtime";import{Paper as e}from"./_Primitives/Paper.mjs";import{Box as n}from"./_Primitives/Box.mjs";import{H3 as l,Body2 as t}from"./Typography.mjs";import{LoadingSpinnerNexus as s}from"./LoadingSpinnerNexus.mjs";const o=({title:o,description:c,actions:m,isLoading:d,isError:x,errorMessage:h,children:p,...a})=>{if(d)return r(e,{...a,children:[r(n,{sx:{mb:2},children:[i(l,{children:o}),c&&i(t,{sx:{mt:.5},children:c})]}),i(n,{sx:{display:"flex",flexDirection:"column",mt:1},children:i(s,{})})]});if(x)return r(e,{...a,children:[r(n,{sx:{mb:2},children:[i(l,{children:o}),c&&i(t,{sx:{mt:.5},children:c})]}),i(n,{sx:{display:"flex",flexDirection:"column",mt:1},children:i(t,{color:"error",sx:{p:2},children:h??`Failed to load ${o}.`})})]});const f=o||c||m;return r(e,{...a,children:[f&&r(n,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1,mb:2.5},children:[r(n,{children:[i(l,{children:o}),c&&i(t,{sx:{mt:.5},children:c})]}),m&&i(n,{sx:{flexShrink:0},children:m})]}),p]})};export{o as PaperAsync};
1
+ import{jsxs as r,jsx as i}from"react/jsx-runtime";import{Paper as e}from"./_Primitives/Paper.mjs";import{Box as n}from"./_Primitives/Box.mjs";import{H3 as l,Body2 as t}from"./Typography.mjs";import{LoadingSpinnerNexus as s}from"./LoadingSpinnerNexus.mjs";const o=({title:o,description:c,actions:m,isLoading:d,isError:x,errorMessage:h,children:p,...a})=>{if(d)return r(e,{...a,children:[r(n,{sx:{mb:2},children:[i(l,{children:o}),c&&i(t,{sx:{mt:.5},children:c})]}),i(n,{sx:{display:"flex",flexDirection:"column",mt:1},children:i(s,{})})]});if(x)return r(e,{...a,children:[r(n,{sx:{mb:2},children:[i(l,{children:o}),c&&i(t,{sx:{mt:.5},children:c})]}),i(n,{sx:{display:"flex",flexDirection:"column",mt:1},children:i(t,{color:"error",sx:{p:2},children:h??`Failed to load ${o}.`})})]});const f=o||c||m;return r(e,{...a,children:[f&&r(n,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1,mb:1},children:[r(n,{children:[i(l,{children:o}),c&&i(t,{sx:{mt:.5},children:c})]}),m&&i(n,{sx:{flexShrink:0},children:m})]}),p]})};export{o as PaperAsync};
@@ -1 +1 @@
1
- const o="2.4.1";export{o as SAGE_NEXUS_UI_VERSION};
1
+ const o="2.4.3";export{o as SAGE_NEXUS_UI_VERSION};
package/dist/index.d.ts CHANGED
@@ -8,6 +8,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
9
  import { SxProps as SxProps$2 } from '@mui/system';
10
10
  import { LineChartProps } from '@mui/x-charts/LineChart';
11
+ export { ChartsReferenceLine, ChartsReferenceLineProps } from '@mui/x-charts/ChartsReferenceLine';
11
12
  import { BarChartProps } from '@mui/x-charts/BarChart';
12
13
  import { PieChartProps } from '@mui/x-charts/PieChart';
13
14
  export { default as nexusLogoNode } from './assets/images/nexus-logo-node.svg';
@@ -581,15 +582,15 @@ declare const MetricStat: {
581
582
 
582
583
  type MetricCardProps = MetricStatProps;
583
584
  /**
584
- * A MetricStat inside a solid Card with 8px padding. Use inside GlassCard or
585
- * GlassPaper where metric values need a solid background to remain readable.
585
+ * A MetricStat inside a solid Card. Padding scales down for `size="xs"`.
586
+ * Use inside GlassCard or GlassPaper where metric values need a solid background to remain readable.
586
587
  *
587
588
  * ```tsx
588
589
  * <MetricCard label="Monthly Active Users" value="1.35M" delta="+13%" deltaColor={ragColorForDelta('+13%')} />
589
590
  * ```
590
591
  */
591
592
  declare const MetricCard: {
592
- ({ label, value, delta, deltaColor, size }: MetricCardProps): react.JSX.Element;
593
+ ({ label, value, delta, deltaColor, size, }: MetricCardProps): react.JSX.Element;
593
594
  displayName: string;
594
595
  };
595
596
 
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export{DateRangeFilter}from"./components/DateRangeFilter.mjs";export{DateRangePicker}from"./components/DateRangePicker.mjs";export{Alert}from"./components/_Primitives/Alert.mjs";export{NexusChatWidget}from"./components/NexusChat/NexusChatWidget.mjs";export{NexusChatDialog}from"./components/NexusChat/NexusChatDialog.mjs";export{FABButton}from"./components/NexusChat/FABButton.mjs";export{AgentChatWindow}from"./components/NexusChat/AgentChatWindow.mjs";export{AgentChatWindowHeader}from"./components/NexusChat/AgentChatWindowHeader.mjs";export{ChatInput}from"./components/NexusChat/ChatInput.mjs";export{ChatHistory}from"./components/NexusChat/ChatHistory.mjs";export{ChatHistoryHeader}from"./components/NexusChat/ChatHistoryHeader.mjs";export{ChatHistoryButtonBase}from"./components/NexusChat/ChatHistoryButtonBase.mjs";export{chatHistoryMatchesQuery,filterChatHistoryConversations}from"./components/NexusChat/ChatHistorySearch.mjs";export{CopyableTableContainer}from"./components/NexusChat/ChatComponents/CopyableTableContainer.mjs";export{default as ChatAvatar}from"./components/NexusChat/ChatComponents/ChatAvatar.mjs";export{default as MarkdownContent,chatWindowMarkdownComponents}from"./components/NexusChat/ChatComponents/MarkdownContent.mjs";export{default as MessageBubble}from"./components/NexusChat/ChatComponents/MessageBubble.mjs";export{default as MessageFeedbackBar}from"./components/NexusChat/ChatComponents/MessageFeedbackBar.mjs";export{default as StreamingBubble}from"./components/NexusChat/ChatComponents/StreamingBubble.mjs";export{default as TypingIndicator}from"./components/NexusChat/ChatComponents/TypingIndicator.mjs";export{default as SuggestedPrompts}from"./components/NexusChat/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/NexusChat/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/NexusChat/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/NexusChat/ChatComponents/SourceCitations.mjs";export{latestTraceLabel}from"./components/NexusChat/ChatComponents/latestTraceLabel.mjs";export{Code}from"./components/Code.mjs";export{Container}from"./components/_Primitives/Container.mjs";export{Grid}from"./components/_Primitives/Grid.mjs";export{Link}from"./components/_Primitives/Link.mjs";export{Select}from"./components/Select.mjs";export{SkipLink}from"./components/SkipLink.mjs";export{StatusBadge}from"./components/StatusBadge.mjs";export{SegmentedControl}from"./components/SegmentedControl.mjs";export{Breadcrumbs}from"./components/Breadcrumbs.mjs";export{Switch}from"./components/_Primitives/Switch.mjs";export{ActionBarTitle,Body1,Body2,Caption,ChatWindowBody,H1,H2,H3,H4,MetricValue,Span}from"./components/Typography.mjs";export{MetricStat}from"./components/MetricStat.mjs";export{MetricCard}from"./components/MetricCard.mjs";export{ActionBar}from"./components/ActionBar.mjs";export{AccordionGroup,AccordionGroupItem}from"./components/AccordionGroup.mjs";export{AccordionSingle}from"./components/AccordionSingle.mjs";export{AiButton}from"./components/Buttons/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/_Primitives/Box.mjs";export{CircularProgress}from"./components/_Primitives/CircularProgress.mjs";export{Collapse}from"./components/_Primitives/Collapse.mjs";export{NexusDataGrid}from"./components/NexusDataGrid.mjs";export{ButtonBase}from"./components/Buttons/ButtonBase.mjs";export{GhostButton}from"./components/Buttons/GhostButton.mjs";export{Card}from"./components/Card.mjs";export{Checkbox}from"./components/FormControls/Checkbox.mjs";export{FormControlLabel}from"./components/FormControls/FormControlLabel.mjs";export{FormGroup}from"./components/FormControls/FormGroup.mjs";export{CheckboxGroup}from"./components/FormControls/CheckboxGroup.mjs";export{Chip}from"./components/_Primitives/Chip.mjs";export{Dialog,DialogActions,DialogContent,DialogContentText,DialogTitle}from"./components/Dialog.mjs";export{Divider}from"./components/_Primitives/Divider.mjs";export{GlassCard}from"./components/GlassCard.mjs";export{GlassPaper}from"./components/GlassPaper.mjs";export{GlassPaperAsync}from"./components/GlassPaperAsync.mjs";export{PaperAsync}from"./components/PaperAsync.mjs";export{GreenWaveBackground}from"./components/GreenWaveBackground.mjs";export{IconButton}from"./components/Buttons/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/_Primitives/Paper.mjs";export{PrimaryButton}from"./components/Buttons/PrimaryButton.mjs";export{PrimaryButtonLink}from"./components/Buttons/PrimaryButtonLink.mjs";export{SecondaryButton}from"./components/Buttons/SecondaryButton.mjs";export{RagDot}from"./components/RagDot.mjs";export{RagChip}from"./components/RagChip.mjs";export{ragColorForDelta}from"./components/ragColorForDelta.mjs";export{SecondaryButtonLink}from"./components/Buttons/SecondaryButtonLink.mjs";export{SearchInput}from"./components/SearchInput.mjs";export{SideBlade}from"./components/SideBlade/SideBlade.mjs";export{SideBladeNavList}from"./components/SideBlade/SideBladeNavList.mjs";export{SideBladeNavListItem}from"./components/SideBlade/SideBladeNavListItem.mjs";export{Skeleton}from"./components/_Primitives/Skeleton.mjs";export{SkillChip}from"./components/SkillChip.mjs";export{Stack}from"./components/_Primitives/Stack.mjs";export{StatusChip}from"./components/StatusChip.mjs";export{Tab}from"./components/_Primitives/Tab.mjs";export{Tabs}from"./components/_Primitives/Tabs.mjs";export{TextField}from"./components/_Primitives/TextField.mjs";export{ThemeToggle}from"./components/ThemeToggle.mjs";export{Tooltip}from"./components/Tooltip.mjs";export{NexusLineChart}from"./components/Charts/NexusLineChart.mjs";export{NexusBarChart}from"./components/Charts/NexusBarChart.mjs";export{NexusPieChart}from"./components/Charts/NexusPieChart.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{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./theme/tokens.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{formatSurnameFirstname}from"./utils/nameFormats.mjs";export{formatDate,getFiscalPeriod}from"./utils/dateFormats.mjs";export{expandableText,getGradientBorderStyles,leftPipe}from"./theme/sxHelpers.mjs";
1
+ export{DateRangeFilter}from"./components/DateRangeFilter.mjs";export{DateRangePicker}from"./components/DateRangePicker.mjs";export{Alert}from"./components/_Primitives/Alert.mjs";export{NexusChatWidget}from"./components/NexusChat/NexusChatWidget.mjs";export{NexusChatDialog}from"./components/NexusChat/NexusChatDialog.mjs";export{FABButton}from"./components/NexusChat/FABButton.mjs";export{AgentChatWindow}from"./components/NexusChat/AgentChatWindow.mjs";export{AgentChatWindowHeader}from"./components/NexusChat/AgentChatWindowHeader.mjs";export{ChatInput}from"./components/NexusChat/ChatInput.mjs";export{ChatHistory}from"./components/NexusChat/ChatHistory.mjs";export{ChatHistoryHeader}from"./components/NexusChat/ChatHistoryHeader.mjs";export{ChatHistoryButtonBase}from"./components/NexusChat/ChatHistoryButtonBase.mjs";export{chatHistoryMatchesQuery,filterChatHistoryConversations}from"./components/NexusChat/ChatHistorySearch.mjs";export{CopyableTableContainer}from"./components/NexusChat/ChatComponents/CopyableTableContainer.mjs";export{default as ChatAvatar}from"./components/NexusChat/ChatComponents/ChatAvatar.mjs";export{default as MarkdownContent,chatWindowMarkdownComponents}from"./components/NexusChat/ChatComponents/MarkdownContent.mjs";export{default as MessageBubble}from"./components/NexusChat/ChatComponents/MessageBubble.mjs";export{default as MessageFeedbackBar}from"./components/NexusChat/ChatComponents/MessageFeedbackBar.mjs";export{default as StreamingBubble}from"./components/NexusChat/ChatComponents/StreamingBubble.mjs";export{default as TypingIndicator}from"./components/NexusChat/ChatComponents/TypingIndicator.mjs";export{default as SuggestedPrompts}from"./components/NexusChat/ChatComponents/SuggestedPrompts.mjs";export{default as MessageList}from"./components/NexusChat/ChatComponents/MessageList.mjs";export{default as EmptyState}from"./components/NexusChat/ChatComponents/EmptyState.mjs";export{default as SourceCitations}from"./components/NexusChat/ChatComponents/SourceCitations.mjs";export{latestTraceLabel}from"./components/NexusChat/ChatComponents/latestTraceLabel.mjs";export{Code}from"./components/Code.mjs";export{Container}from"./components/_Primitives/Container.mjs";export{Grid}from"./components/_Primitives/Grid.mjs";export{Link}from"./components/_Primitives/Link.mjs";export{Select}from"./components/Select.mjs";export{SkipLink}from"./components/SkipLink.mjs";export{StatusBadge}from"./components/StatusBadge.mjs";export{SegmentedControl}from"./components/SegmentedControl.mjs";export{Breadcrumbs}from"./components/Breadcrumbs.mjs";export{Switch}from"./components/_Primitives/Switch.mjs";export{ActionBarTitle,Body1,Body2,Caption,ChatWindowBody,H1,H2,H3,H4,MetricValue,Span}from"./components/Typography.mjs";export{MetricStat}from"./components/MetricStat.mjs";export{MetricCard}from"./components/MetricCard.mjs";export{ActionBar}from"./components/ActionBar.mjs";export{AccordionGroup,AccordionGroupItem}from"./components/AccordionGroup.mjs";export{AccordionSingle}from"./components/AccordionSingle.mjs";export{AiButton}from"./components/Buttons/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/_Primitives/Box.mjs";export{CircularProgress}from"./components/_Primitives/CircularProgress.mjs";export{Collapse}from"./components/_Primitives/Collapse.mjs";export{NexusDataGrid}from"./components/NexusDataGrid.mjs";export{ButtonBase}from"./components/Buttons/ButtonBase.mjs";export{GhostButton}from"./components/Buttons/GhostButton.mjs";export{Card}from"./components/Card.mjs";export{Checkbox}from"./components/FormControls/Checkbox.mjs";export{FormControlLabel}from"./components/FormControls/FormControlLabel.mjs";export{FormGroup}from"./components/FormControls/FormGroup.mjs";export{CheckboxGroup}from"./components/FormControls/CheckboxGroup.mjs";export{Chip}from"./components/_Primitives/Chip.mjs";export{Dialog,DialogActions,DialogContent,DialogContentText,DialogTitle}from"./components/Dialog.mjs";export{Divider}from"./components/_Primitives/Divider.mjs";export{GlassCard}from"./components/GlassCard.mjs";export{GlassPaper}from"./components/GlassPaper.mjs";export{GlassPaperAsync}from"./components/GlassPaperAsync.mjs";export{PaperAsync}from"./components/PaperAsync.mjs";export{GreenWaveBackground}from"./components/GreenWaveBackground.mjs";export{IconButton}from"./components/Buttons/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/_Primitives/Paper.mjs";export{PrimaryButton}from"./components/Buttons/PrimaryButton.mjs";export{PrimaryButtonLink}from"./components/Buttons/PrimaryButtonLink.mjs";export{SecondaryButton}from"./components/Buttons/SecondaryButton.mjs";export{RagDot}from"./components/RagDot.mjs";export{RagChip}from"./components/RagChip.mjs";export{ragColorForDelta}from"./components/ragColorForDelta.mjs";export{SecondaryButtonLink}from"./components/Buttons/SecondaryButtonLink.mjs";export{SearchInput}from"./components/SearchInput.mjs";export{SideBlade}from"./components/SideBlade/SideBlade.mjs";export{SideBladeNavList}from"./components/SideBlade/SideBladeNavList.mjs";export{SideBladeNavListItem}from"./components/SideBlade/SideBladeNavListItem.mjs";export{Skeleton}from"./components/_Primitives/Skeleton.mjs";export{SkillChip}from"./components/SkillChip.mjs";export{Stack}from"./components/_Primitives/Stack.mjs";export{StatusChip}from"./components/StatusChip.mjs";export{Tab}from"./components/_Primitives/Tab.mjs";export{Tabs}from"./components/_Primitives/Tabs.mjs";export{TextField}from"./components/_Primitives/TextField.mjs";export{ThemeToggle}from"./components/ThemeToggle.mjs";export{Tooltip}from"./components/Tooltip.mjs";export{NexusLineChart}from"./components/Charts/NexusLineChart.mjs";export{NexusBarChart}from"./components/Charts/NexusBarChart.mjs";export{NexusPieChart}from"./components/Charts/NexusPieChart.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{colours,fontSageHeadline,fontSageText,fontSageUI,getModeTokens,gradients}from"./theme/tokens.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{formatSurnameFirstname}from"./utils/nameFormats.mjs";export{formatDate,getFiscalPeriod}from"./utils/dateFormats.mjs";export{expandableText,getGradientBorderStyles,leftPipe}from"./theme/sxHelpers.mjs";export{ChartsReferenceLine}from"./node_modules/@mui/x-charts/ChartsReferenceLine/ChartsReferenceLine.mjs";
@@ -0,0 +1 @@
1
+ import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import r from"../../../../_virtual/index.mjs";import{ChartsXReferenceLine as o}from"./ChartsXReferenceLine.mjs";import{ChartsYReferenceLine as n}from"./ChartsYReferenceLine.mjs";import{jsx as t}from"react/jsx-runtime";import{formatErrorMessage as i}from"../../x-internals/formatErrorMessage/formatErrorMessage.mjs";function a(r){const{x:a,y:s}=r;if(void 0!==a&&void 0!==s)throw new Error("production"!==process.env.NODE_ENV?"MUI X Charts: The ChartsReferenceLine cannot have both `x` and `y` props set. A reference line can only be vertical (x) or horizontal (y), not both. Remove either the `x` or `y` prop.":i(4));if(void 0===a&&void 0===s)throw new Error("production"!==process.env.NODE_ENV?"MUI X Charts: The ChartsReferenceLine requires either an `x` or `y` prop. Without a value, the reference line cannot be positioned on the chart. Provide either an `x` value for a vertical line or a `y` value for a horizontal line.":i(5));return t(void 0!==a?o:n,e({},r))}"production"!==process.env.NODE_ENV&&(a.propTypes={axisId:r.oneOfType([r.number,r.string]),classes:r.object,label:r.string,labelAlign:r.oneOf(["end","middle","start"]),labelStyle:r.object,lineStyle:r.object,spacing:r.oneOfType([r.number,r.shape({x:r.number,y:r.number})]),x:r.oneOfType([r.instanceOf(Date),r.number,r.string]),y:r.oneOfType([r.instanceOf(Date),r.number,r.string])});export{a as ChartsReferenceLine};
@@ -0,0 +1 @@
1
+ import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../../_virtual/index.mjs";import{ReferenceLineRoot as s,DEFAULT_SPACING as n,DEFAULT_SPACING_MIDDLE_OTHER_AXIS as r}from"./common.mjs";import{getReferenceLineUtilityClass as o}from"./chartsReferenceLineClasses.mjs";import{jsxs as i,jsx as l}from"react/jsx-runtime";import{useDrawingArea as a}from"../hooks/useDrawingArea.mjs";import{useXScale as m}from"../hooks/useScale.mjs";import{warnOnce as c}from"../../x-internals/warning/warning.mjs";import{ChartsText as p}from"../ChartsText/ChartsText.mjs";import d from"../../utils/composeClasses/composeClasses.mjs";function u(e){return d({root:["root","vertical"],line:["line"],label:["label"]},o,e)}function f(t){const{x:o,label:d="",spacing:f,classes:h,labelAlign:b="middle",lineStyle:x,labelStyle:y,axisId:g}=t,{top:j,height:A,left:N,width:O}=a(),v=m(g)(o);if(void 0===v)return"production"!==process.env.NODE_ENV&&c(`MUI X Charts: the value ${o} does not exist in the data of x axis with id ${g}.`,"error"),null;if(v<N||v>N+O)return null;const w=`M ${v} ${j} l 0 ${A}`,C=u(h),S=e({text:d,fontSize:12},(({top:e,height:t,spacing:s,position:o,labelAlign:i="middle"})=>{const l="middle"===i?r:n,a=("object"==typeof s?s.x:s)??n,m=("object"==typeof s?s.y:l)??l;switch(i){case"start":return{x:o+a,y:e+m,style:{dominantBaseline:"hanging",textAnchor:"start"}};case"end":return{x:o+a,y:e+t-m,style:{dominantBaseline:"auto",textAnchor:"start"}};default:return{x:o+a,y:e+t/2+m,style:{dominantBaseline:"central",textAnchor:"start"}}}})({top:j,height:A,spacing:f,position:v,labelAlign:b}),{className:C.label});return i(s,{className:C.root,children:[l("path",{d:w,className:C.line,style:x}),l(p,e({},S,{style:e({},S.style,y)}))]})}"production"!==process.env.NODE_ENV&&(f.propTypes={axisId:t.oneOfType([t.number,t.string]),classes:t.object,label:t.string,labelAlign:t.oneOf(["end","middle","start"]),labelStyle:t.object,lineStyle:t.object,spacing:t.oneOfType([t.number,t.shape({x:t.number,y:t.number})]),x:t.oneOfType([t.instanceOf(Date),t.number,t.string]).isRequired});export{f as ChartsXReferenceLine,u as getXReferenceLineClasses};
@@ -0,0 +1 @@
1
+ import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import t from"../../../../_virtual/index.mjs";import{ReferenceLineRoot as s,DEFAULT_SPACING as n,DEFAULT_SPACING_MIDDLE_OTHER_AXIS as o}from"./common.mjs";import{getReferenceLineUtilityClass as r}from"./chartsReferenceLineClasses.mjs";import{jsxs as i,jsx as l}from"react/jsx-runtime";import{useDrawingArea as a}from"../hooks/useDrawingArea.mjs";import{useYScale as m}from"../hooks/useScale.mjs";import{warnOnce as c}from"../../x-internals/warning/warning.mjs";import{ChartsText as p}from"../ChartsText/ChartsText.mjs";import d from"../../utils/composeClasses/composeClasses.mjs";function u(e){return d({root:["root","horizontal"],line:["line"],label:["label"]},r,e)}function f(t){const{y:r,label:d="",spacing:f,classes:y,labelAlign:b="middle",lineStyle:h,labelStyle:x,axisId:g}=t,{top:j,height:w,left:A,width:N}=a(),O=m(g)(r);if(void 0===O)return"production"!==process.env.NODE_ENV&&c(`MUI X Charts: the value ${r} does not exist in the data of y axis with id ${g}.`,"error"),null;if(O<j||O>j+w)return null;const C=`M ${A} ${O} l ${N} 0`,S=u(y),T=e({text:d,fontSize:12},(({left:e,width:t,spacing:s,position:r,labelAlign:i="middle"})=>{const l="middle"===i?o:n,a=("object"==typeof s?s.x:l)??l,m=("object"==typeof s?s.y:s)??n;switch(i){case"start":return{y:r-m,x:e+a,style:{dominantBaseline:"auto",textAnchor:"start"}};case"end":return{y:r-m,x:e+t-a,style:{dominantBaseline:"auto",textAnchor:"end"}};default:return{y:r-m,x:e+t/2+a,style:{dominantBaseline:"auto",textAnchor:"middle"}}}})({left:A,width:N,spacing:f,position:O,labelAlign:b}),{className:S.label});return i(s,{className:S.root,children:[l("path",{d:C,className:S.line,style:h}),l(p,e({},T,{style:e({},T.style,x)}))]})}"production"!==process.env.NODE_ENV&&(f.propTypes={axisId:t.oneOfType([t.number,t.string]),classes:t.object,label:t.string,labelAlign:t.oneOf(["end","middle","start"]),labelStyle:t.object,lineStyle:t.object,spacing:t.oneOfType([t.number,t.shape({x:t.number,y:t.number})]),y:t.oneOfType([t.instanceOf(Date),t.number,t.string]).isRequired});export{f as ChartsYReferenceLine,u as getYReferenceLineClasses};
@@ -0,0 +1 @@
1
+ import e from"../../utils/generateUtilityClass/generateUtilityClass.mjs";import t from"../../utils/generateUtilityClasses/generateUtilityClasses.mjs";function i(t){return e("MuiChartsReferenceLine",t)}const r=t("MuiChartsReferenceLine",["root","vertical","horizontal","line","label"]);export{i as getReferenceLineUtilityClass,r as referenceLineClasses};
@@ -0,0 +1 @@
1
+ import e from"../../../@babel/runtime/helpers/esm/extends.mjs";import{styled as t}from"@mui/material/styles";import{referenceLineClasses as r}from"./chartsReferenceLineClasses.mjs";const o=5,s=0,n=t("g",{slot:"internal",shouldForwardProp:void 0})(({theme:t})=>({[`& .${r.line}`]:{fill:"none",stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1,pointerEvents:"none"},[`& .${r.label}`]:e({fill:(t.vars||t).palette.text.primary,stroke:"none",pointerEvents:"none",fontSize:12},t.typography.body1)}));export{o as DEFAULT_SPACING,s as DEFAULT_SPACING_MIDDLE_OTHER_AXIS,n as ReferenceLineRoot};
@@ -1 +1 @@
1
- import{selectorChartXAxis as s,selectorChartYAxis as i}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";import{useStore as n}from"../internals/store/useStore.mjs";import{selectorChartRotationAxis as t,selectorChartRadiusAxis as r}from"../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.mjs";function e(){const i=n(),{axis:t,axisIds:r}=i.use(s);return{xAxis:t,xAxisIds:r}}function u(){const s=n(),{axis:t,axisIds:r}=s.use(i);return{yAxis:t,yAxisIds:r}}function a(i){const t=n(),{axis:r,axisIds:e}=t.use(s);return r[e[0]]}function o(s){const t=n(),{axis:r,axisIds:e}=t.use(i);return r[e[0]]}function x(){const s=n(),{axis:i,axisIds:r}=s.use(t);return{rotationAxis:i,rotationAxisIds:r}}function c(){const s=n(),{axis:i,axisIds:t}=s.use(r);return{radiusAxis:i,radiusAxisIds:t}}function d(s){const i=n(),{axis:r,axisIds:e}=i.use(t);return r[e[0]]}function f(s){const i=n(),{axis:t,axisIds:e}=i.use(r);return t[e[0]]}export{c as useRadiusAxes,f as useRadiusAxis,x as useRotationAxes,d as useRotationAxis,e as useXAxes,a as useXAxis,u as useYAxes,o as useYAxis};
1
+ import{selectorChartXAxis as s,selectorChartYAxis as i}from"../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";import{useStore as n}from"../internals/store/useStore.mjs";import{selectorChartRotationAxis as t,selectorChartRadiusAxis as r}from"../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.mjs";function e(){const i=n(),{axis:t,axisIds:r}=i.use(s);return{xAxis:t,xAxisIds:r}}function u(){const s=n(),{axis:t,axisIds:r}=s.use(i);return{yAxis:t,yAxisIds:r}}function a(i){const t=n(),{axis:r,axisIds:e}=t.use(s);return r[i??e[0]]}function o(s){const t=n(),{axis:r,axisIds:e}=t.use(i);return r[s??e[0]]}function x(){const s=n(),{axis:i,axisIds:r}=s.use(t);return{rotationAxis:i,rotationAxisIds:r}}function c(){const s=n(),{axis:i,axisIds:t}=s.use(r);return{radiusAxis:i,radiusAxisIds:t}}function d(s){const i=n(),{axis:r,axisIds:e}=i.use(t);return r[e[0]]}function f(s){const i=n(),{axis:t,axisIds:e}=i.use(r);return t[e[0]]}export{c as useRadiusAxes,f as useRadiusAxis,x as useRotationAxes,d as useRotationAxis,e as useXAxes,a as useXAxis,u as useYAxes,o as useYAxis};
@@ -0,0 +1 @@
1
+ import{useXAxis as r,useYAxis as e}from"./useAxis.mjs";function n(e){return r(e).scale}function t(r){return e(r).scale}export{n as useXScale,t as useYScale};
@@ -1 +1 @@
1
- import{selectorChartAxisSizes as t}from"../../featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs";import{createSelector as e,createSelectorMemoized as i}from"../../../../../x-internals/store/createSelector.mjs";const o=t=>t.dimensions,r=t=>t.dimensions.margin,s=i(o,r,t,function({width:t,height:e},{top:i,right:o,bottom:r,left:s},{left:h,right:n,top:m,bottom:p}){return{width:t-s-o-h-n,left:s+h,right:o+n,height:e-i-r-m-p,top:i+m,bottom:r+p}}),h=e(o,t=>t.width),n=e(o,t=>t.height),m=e(o,t=>t.propsWidth),p=e(o,t=>t.propsHeight);export{o as selectorChartDimensionsState,s as selectorChartDrawingArea,r as selectorChartMargin,p as selectorChartPropsHeight,m as selectorChartPropsWidth,n as selectorChartSvgHeight,h as selectorChartSvgWidth};
1
+ import{selectorChartAxisSizes as t}from"../../featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs";import{createSelectorMemoized as e,createSelector as i}from"../../../../../x-internals/store/createSelector.mjs";const o=t=>t.dimensions,r=t=>t.dimensions.margin,s=e(o,r,t,function({width:t,height:e},{top:i,right:o,bottom:r,left:s},{left:h,right:n,top:m,bottom:p}){return{width:t-s-o-h-n,left:s+h,right:o+n,height:e-i-r-m-p,top:i+m,bottom:r+p}}),h=i(o,t=>t.width),n=i(o,t=>t.height),m=i(o,t=>t.propsWidth),p=i(o,t=>t.propsHeight);export{o as selectorChartDimensionsState,s as selectorChartDrawingArea,r as selectorChartMargin,p as selectorChartPropsHeight,m as selectorChartPropsWidth,n as selectorChartSvgHeight,h as selectorChartSvgWidth};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "it-data-nexus-ui-library",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Nexus core components",
5
5
  "license": "ISC",
6
6
  "author": "emsmart-sage",