sage-nexus-ui 1.0.14 → 1.0.15

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,8 @@
1
+ import { type ButtonBaseProps } from "@mui/material";
2
+ export interface AiButtonProps extends Omit<ButtonBaseProps, "children"> {
3
+ size?: "small" | "medium" | "large";
4
+ children?: React.ReactNode;
5
+ startIcon?: React.ReactNode;
6
+ endIcon?: React.ReactNode;
7
+ }
8
+ export declare const AiButton: React.FC<AiButtonProps>;
@@ -0,0 +1,3 @@
1
+ import { type PaperProps } from "@mui/material";
2
+ export type AiPaperProps = PaperProps;
3
+ export declare const AiPaper: ({ sx, children, ...rest }: AiPaperProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,9 @@
1
1
  export * from "./DateFormats";
2
2
  export { ActionBar } from "./ActionBar";
3
+ export { AiButton } from "./AiButton";
4
+ export type { AiButtonProps } from "./AiButton";
5
+ export { AiPaper } from "./AiPaper";
6
+ export type { AiPaperProps } from "./AiPaper";
3
7
  export { CheckboxGroup } from "./CheckboxGroup";
4
8
  export { GlassPaper } from "./GlassPaper";
5
9
  export { GreenWaveBackground } from "./GreenWaveBackground";
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import React$1, { ReactNode, ReactElement, CSSProperties, PropsWithChildren } from 'react';
2
+ import { ButtonBaseProps, PaperProps, BoxProps, SxProps as SxProps$1, ButtonProps, ChipProps } from '@mui/material';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
4
  import { SxProps } from '@mui/system';
3
5
  import { Theme, SxProps as SxProps$2 } from '@mui/material/styles';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { PaperProps, BoxProps, SxProps as SxProps$1, ButtonProps, ChipProps } from '@mui/material';
6
6
 
7
7
  declare const getFiscalPeriod: (date: Date) => {
8
8
  fiscalYear: number;
@@ -18,6 +18,17 @@ interface ActionBarProps {
18
18
  }
19
19
  declare const ActionBar: ({ title, extraLeft, extraRight, }: ActionBarProps) => ReactElement;
20
20
 
21
+ interface AiButtonProps extends Omit<ButtonBaseProps, "children"> {
22
+ size?: "small" | "medium" | "large";
23
+ children?: React.ReactNode;
24
+ startIcon?: React.ReactNode;
25
+ endIcon?: React.ReactNode;
26
+ }
27
+ declare const AiButton: React.FC<AiButtonProps>;
28
+
29
+ type AiPaperProps = PaperProps;
30
+ declare const AiPaper: ({ sx, children, ...rest }: AiPaperProps) => react_jsx_runtime.JSX.Element;
31
+
21
32
  interface CheckboxGroupProps {
22
33
  title?: React.ReactNode;
23
34
  labels?: string[];
@@ -119,7 +130,7 @@ declare const colours: {
119
130
  readonly primaryGreenActive: "#00AA2D";
120
131
  readonly jade: "#00A65C";
121
132
  readonly teal: "#006362";
122
- readonly navy: "#00293F";
133
+ readonly navy: "#2977a1";
123
134
  readonly cherry: "#cc0f4b";
124
135
  readonly terra: "#A13829";
125
136
  readonly amber: "#E9875B";
@@ -193,5 +204,5 @@ declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOp
193
204
  declare const leftPipe: SxProps$2<Theme>;
194
205
  declare const expandableText: (isExpanded: boolean) => SxProps$2<Theme>;
195
206
 
196
- export { ActionBar, CheckboxGroup, GlassPaper, GreenWaveBackground, LocationMultiSelect, MuiAppThemeProvider, NexusHome, NexusLogo, PrimaryButton, RagDot, SearchInput, SecondaryButton, SkillChip, StatusChip, ThemeModeProvider, ThemeToggle, colours, createSageTheme, expandableText, fontSageText, fontSageUI, formatDate, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
197
- export type { GradientBorderOptions, GreenWaveBackgroundProps, ModeTokens, PrimaryButtonProps, SecondaryButtonProps, ThemeMode };
207
+ export { ActionBar, AiButton, AiPaper, CheckboxGroup, GlassPaper, GreenWaveBackground, LocationMultiSelect, MuiAppThemeProvider, NexusHome, NexusLogo, PrimaryButton, RagDot, SearchInput, SecondaryButton, SkillChip, StatusChip, ThemeModeProvider, ThemeToggle, colours, createSageTheme, expandableText, fontSageText, fontSageUI, formatDate, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
208
+ export type { AiButtonProps, AiPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, ModeTokens, PrimaryButtonProps, SecondaryButtonProps, ThemeMode };