sage-nexus-ui 1.0.16 → 1.0.17

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.
@@ -0,0 +1,3 @@
1
+ import { type CardProps } from "./Card";
2
+ export type AiCardProps = CardProps;
3
+ export declare const AiCard: ({ sx, children, ...rest }: AiCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { type GlassCardProps } from "./GlassCard";
2
+ export type AiGlassCardProps = GlassCardProps;
3
+ export declare const AiGlassCard: ({ sx, children, ...rest }: AiGlassCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { type CardProps as MuiCardProps } from "@mui/material";
2
+ export type CardTrend = "up" | "flat" | "down";
3
+ export interface CardProps extends MuiCardProps {
4
+ /** Small icon displayed beside the label. Pass an MUI SvgIcon element. */
5
+ icon?: React.ReactNode;
6
+ /** Card label / metric name. */
7
+ label?: string;
8
+ /** Primary large value. */
9
+ value?: string;
10
+ /** Supporting subtext (e.g. "+11% YoY"). Coloured by trend when provided. */
11
+ subtext?: string;
12
+ /** Controls the colour of subtext. */
13
+ trend?: CardTrend;
14
+ }
15
+ export declare const Card: ({ icon, label, value, subtext, trend, sx, children, ...rest }: CardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { type CardProps } from "./Card";
2
+ export type GlassCardProps = CardProps;
3
+ export declare const GlassCard: ({ sx, ...rest }: GlassCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -7,6 +7,14 @@ export { AiPaper } from "./AiPaper";
7
7
  export type { AiPaperProps } from "./AiPaper";
8
8
  export { AiGlassPaper } from "./AiGlassPaper";
9
9
  export type { AiGlassPaperProps } from "./AiGlassPaper";
10
+ export { Card } from "./Card";
11
+ export type { CardProps, CardTrend } from "./Card";
12
+ export { GlassCard } from "./GlassCard";
13
+ export type { GlassCardProps } from "./GlassCard";
14
+ export { AiCard } from "./AiCard";
15
+ export type { AiCardProps } from "./AiCard";
16
+ export { AiGlassCard } from "./AiGlassCard";
17
+ export type { AiGlassCardProps } from "./AiGlassCard";
10
18
  export { CheckboxGroup } from "./CheckboxGroup";
11
19
  export { Paper } from "./Paper";
12
20
  export type { PaperProps } from "./Paper";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { ReactNode, ReactElement, CSSProperties, PropsWithChildren } from 'react';
3
- import { TypographyProps, ButtonProps, PaperProps, BoxProps, SxProps as SxProps$1, ChipProps } from '@mui/material';
3
+ import { TypographyProps, ButtonProps, PaperProps, CardProps as CardProps$1, BoxProps, SxProps as SxProps$1, ChipProps } from '@mui/material';
4
4
  export { PaperProps } from '@mui/material';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { SxProps } from '@mui/system';
@@ -59,6 +59,30 @@ declare const GlassPaper: ({ sx, children, ...rest }: GlassPaperProps) => react_
59
59
  type AiGlassPaperProps = GlassPaperProps;
60
60
  declare const AiGlassPaper: ({ sx, children, ...rest }: AiGlassPaperProps) => react_jsx_runtime.JSX.Element;
61
61
 
62
+ type CardTrend = "up" | "flat" | "down";
63
+ interface CardProps extends CardProps$1 {
64
+ /** Small icon displayed beside the label. Pass an MUI SvgIcon element. */
65
+ icon?: React.ReactNode;
66
+ /** Card label / metric name. */
67
+ label?: string;
68
+ /** Primary large value. */
69
+ value?: string;
70
+ /** Supporting subtext (e.g. "+11% YoY"). Coloured by trend when provided. */
71
+ subtext?: string;
72
+ /** Controls the colour of subtext. */
73
+ trend?: CardTrend;
74
+ }
75
+ declare const Card: ({ icon, label, value, subtext, trend, sx, children, ...rest }: CardProps) => react_jsx_runtime.JSX.Element;
76
+
77
+ type GlassCardProps = CardProps;
78
+ declare const GlassCard: ({ sx, ...rest }: GlassCardProps) => react_jsx_runtime.JSX.Element;
79
+
80
+ type AiCardProps = CardProps;
81
+ declare const AiCard: ({ sx, children, ...rest }: AiCardProps) => react_jsx_runtime.JSX.Element;
82
+
83
+ type AiGlassCardProps = GlassCardProps;
84
+ declare const AiGlassCard: ({ sx, children, ...rest }: AiGlassCardProps) => react_jsx_runtime.JSX.Element;
85
+
62
86
  interface CheckboxGroupProps {
63
87
  title?: React.ReactNode;
64
88
  labels?: string[];
@@ -157,6 +181,7 @@ type ModeTokens = {
157
181
  text: {
158
182
  primary: string;
159
183
  secondary: string;
184
+ blues: string;
160
185
  greens: string;
161
186
  greys: string;
162
187
  };
@@ -169,9 +194,11 @@ declare const colours: {
169
194
  readonly brilliantGreen: "#00D639";
170
195
  readonly primaryGreenHover: "#00BE32";
171
196
  readonly primaryGreenActive: "#00AA2D";
197
+ readonly cyan: "#00D6DE";
172
198
  readonly jade: "#00A65C";
173
199
  readonly teal: "#006362";
174
- readonly navy: "#2977a1";
200
+ readonly blue: "#2D60FF";
201
+ readonly navy: "#1531af";
175
202
  readonly cherry: "#cc0f4b";
176
203
  readonly terra: "#A13829";
177
204
  readonly amber: "#E9875B";
@@ -246,5 +273,5 @@ declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOp
246
273
  declare const leftPipe: SxProps$2<Theme>;
247
274
  declare const expandableText: (isExpanded: boolean) => SxProps$2<Theme>;
248
275
 
249
- export { ActionBar, ActionBarTitle, AiButton, AiGlassPaper, AiPaper, Body1, Body2, Caption, CheckboxGroup, GlassPaper, GreenWaveBackground, H1, H2, H3, H4, LocationMultiSelect, MuiAppThemeProvider, NexusHome, NexusLogo, Paper, PrimaryButton, PrimaryButtonLink, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, SkillChip, StatusChip, ThemeModeProvider, ThemeToggle, colours, createSageTheme, expandableText, fontSageText, fontSageUI, formatDate, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
250
- export type { AiButtonProps, AiGlassPaperProps, AiPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, ModeTokens, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, ThemeMode };
276
+ export { ActionBar, ActionBarTitle, AiButton, AiCard, AiGlassCard, AiGlassPaper, AiPaper, Body1, Body2, Caption, Card, CheckboxGroup, GlassCard, GlassPaper, GreenWaveBackground, H1, H2, H3, H4, LocationMultiSelect, MuiAppThemeProvider, NexusHome, NexusLogo, Paper, PrimaryButton, PrimaryButtonLink, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, SkillChip, StatusChip, ThemeModeProvider, ThemeToggle, colours, createSageTheme, expandableText, fontSageText, fontSageUI, formatDate, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
277
+ export type { AiButtonProps, AiCardProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, CardProps, CardTrend, GlassCardProps, GradientBorderOptions, GreenWaveBackgroundProps, ModeTokens, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, ThemeMode };