sage-nexus-ui 1.0.22 → 1.0.24

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,8 +1,6 @@
1
1
  import { type SecondaryButtonProps } from "./SecondaryButton";
2
2
  export interface AiButtonProps extends Omit<SecondaryButtonProps, "color" | "children" | "startIcon"> {
3
- /** Button label. Defaults to "Nexus Insights". */
4
3
  label?: string;
5
- /** Override the start icon. Defaults to AutoAwesomeIcon. */
6
4
  startIcon?: React.ReactNode;
7
5
  }
8
6
  export declare const AiButton: React.FC<AiButtonProps>;
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from "react";
2
+ import type { GlassPaperProps } from "./GlassPaper";
3
+ export type GlassPaperAsyncProps = Omit<GlassPaperProps, "children"> & {
4
+ title: string;
5
+ isLoading: boolean;
6
+ isError: boolean;
7
+ errorMessage?: string;
8
+ children?: ReactNode;
9
+ };
10
+ export declare const GlassPaperAsync: ({ title, isLoading, isError, errorMessage, children, ...rest }: GlassPaperAsyncProps) => import("react/jsx-runtime").JSX.Element;
@@ -31,6 +31,9 @@ export type { DividerProps } from "./Divider";
31
31
  export { GlassCard } from "./GlassCard";
32
32
  export type { GlassCardProps } from "./GlassCard";
33
33
  export { GlassPaper } from "./GlassPaper";
34
+ export type { GlassPaperProps } from "./GlassPaper";
35
+ export { GlassPaperAsync } from "./GlassPaperAsync";
36
+ export type { GlassPaperAsyncProps } from "./GlassPaperAsync";
34
37
  export { GreenWaveBackground } from "./GreenWaveBackground";
35
38
  export type { GreenWaveBackgroundProps } from "./GreenWaveBackground";
36
39
  export { IconButton } from "./IconButton";
package/dist/index.d.ts CHANGED
@@ -70,9 +70,7 @@ interface SecondaryButtonProps extends Omit<ButtonProps, "variant" | "color"> {
70
70
  declare const SecondaryButton: React.FC<SecondaryButtonProps>;
71
71
 
72
72
  interface AiButtonProps extends Omit<SecondaryButtonProps, "color" | "children" | "startIcon"> {
73
- /** Button label. Defaults to "Nexus Insights". */
74
73
  label?: string;
75
- /** Override the start icon. Defaults to AutoAwesomeIcon. */
76
74
  startIcon?: React.ReactNode;
77
75
  }
78
76
  declare const AiButton: React.FC<AiButtonProps>;
@@ -137,6 +135,15 @@ declare const DialogContentText: (props: DialogContentTextProps) => react_jsx_ru
137
135
 
138
136
  declare const Divider: ({ children, ...rest }: DividerProps) => react_jsx_runtime.JSX.Element;
139
137
 
138
+ type GlassPaperAsyncProps = Omit<GlassPaperProps, "children"> & {
139
+ title: string;
140
+ isLoading: boolean;
141
+ isError: boolean;
142
+ errorMessage?: string;
143
+ children?: ReactNode;
144
+ };
145
+ declare const GlassPaperAsync: ({ title, isLoading, isError, errorMessage, children, ...rest }: GlassPaperAsyncProps) => react_jsx_runtime.JSX.Element;
146
+
140
147
  type GreenWaveBackgroundProps = BoxProps;
141
148
  declare const GreenWaveBackground: ({ sx, children, ...rest }: GreenWaveBackgroundProps) => react_jsx_runtime.JSX.Element;
142
149
 
@@ -357,5 +364,5 @@ declare const getGradientBorderStyles: (theme: Theme$1, options?: GradientBorder
357
364
  declare const leftPipe: SxProps$2<Theme$1>;
358
365
  declare const expandableText: (isExpanded: boolean) => SxProps$2<Theme$1>;
359
366
 
360
- export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AiButton, AiCard, AiGlassCard, AiGlassPaper, AiPaper, Body1, Body2, Box, ButtonBase, Caption, Card, CheckboxGroup, Chip, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, GlassCard, GlassPaper, GreenWaveBackground, H1, H2, H3, H4, IconButton, LoadingSpinner, LoadingSpinnerNexus, LocationMultiSelect, MuiAppThemeProvider, NexusHome, NexusLogo, Paper, PrimaryButton, PrimaryButtonLink, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, Skeleton, SkillChip, Stack, StatusChip, Tab, Tabs, TextField, ThemeModeProvider, ThemeToggle, colours, createSageTheme, expandableText, fontSageText, fontSageUI, formatDate, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
361
- export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, AiButtonProps, AiCardProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, CardProps, CardTrend, GlassCardProps, GradientBorderOptions, GreenWaveBackgroundProps, LoadingSpinnerNexusProps, LoadingSpinnerProps, ModeTokens, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SkeletonProps, ThemeMode };
367
+ export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AiButton, AiCard, AiGlassCard, AiGlassPaper, AiPaper, Body1, Body2, Box, ButtonBase, Caption, Card, CheckboxGroup, Chip, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, H1, H2, H3, H4, IconButton, LoadingSpinner, LoadingSpinnerNexus, LocationMultiSelect, MuiAppThemeProvider, NexusHome, NexusLogo, Paper, PrimaryButton, PrimaryButtonLink, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, Skeleton, SkillChip, Stack, StatusChip, Tab, Tabs, TextField, ThemeModeProvider, ThemeToggle, colours, createSageTheme, expandableText, fontSageText, fontSageUI, formatDate, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
368
+ export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, AiButtonProps, AiCardProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, CardProps, CardTrend, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, LoadingSpinnerNexusProps, LoadingSpinnerProps, ModeTokens, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SkeletonProps, ThemeMode };