sage-nexus-ui 1.0.17 → 1.0.19
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.
- package/dist/components/AccordionGroup.d.ts +18 -0
- package/dist/components/AccordionSingle.d.ts +13 -0
- package/dist/components/NexusHome.d.ts +5 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/index.d.ts +51 -19
- package/dist/index.mjs +1 -1
- package/dist/stories/Accordion.stories.d.ts +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type SxProps, type Theme } from "@mui/material";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export interface AccordionGroupProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
sx?: SxProps<Theme>;
|
|
6
|
+
}
|
|
7
|
+
export declare const AccordionGroup: ({ children, sx }: AccordionGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export interface AccordionGroupItemProps {
|
|
9
|
+
summary: ReactNode;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
defaultExpanded?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
summaryProps?: Record<string, ReactNode>;
|
|
14
|
+
expandIcon?: ReactNode;
|
|
15
|
+
sx?: SxProps<Theme>;
|
|
16
|
+
detailsSx?: SxProps<Theme>;
|
|
17
|
+
}
|
|
18
|
+
export declare const AccordionGroupItem: ({ summary, children, defaultExpanded, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionGroupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type SxProps, type Theme } from "@mui/material";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export interface AccordionSingleProps {
|
|
4
|
+
summary: ReactNode;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
defaultExpanded?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
summaryProps?: Record<string, ReactNode>;
|
|
9
|
+
expandIcon?: ReactNode;
|
|
10
|
+
sx?: SxProps<Theme>;
|
|
11
|
+
detailsSx?: SxProps<Theme>;
|
|
12
|
+
}
|
|
13
|
+
export declare const AccordionSingle: ({ summary, children, defaultExpanded, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionSingleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from "./DateFormats";
|
|
2
2
|
export { ActionBar } from "./ActionBar";
|
|
3
|
+
export { AccordionGroup, AccordionGroupItem } from "./AccordionGroup";
|
|
4
|
+
export type { AccordionGroupProps, AccordionGroupItemProps, } from "./AccordionGroup";
|
|
5
|
+
export { AccordionSingle } from "./AccordionSingle";
|
|
6
|
+
export type { AccordionSingleProps } from "./AccordionSingle";
|
|
3
7
|
export { H1, H2, H3, H4, ActionBarTitle, Body1, Body2, Caption, } from "./Typography";
|
|
4
8
|
export { AiButton } from "./AiButton";
|
|
5
9
|
export type { AiButtonProps } from "./AiButton";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { ReactNode, ReactElement, CSSProperties, PropsWithChildren } from 'react';
|
|
3
|
-
import { TypographyProps, ButtonProps, PaperProps, CardProps as CardProps$1, BoxProps, SxProps as SxProps$1, ChipProps } from '@mui/material';
|
|
4
|
-
export { PaperProps } from '@mui/material';
|
|
5
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { SxProps } from '@mui/
|
|
7
|
-
|
|
4
|
+
import { SxProps, Theme, TypographyProps, ButtonProps, PaperProps, CardProps as CardProps$1, BoxProps, ChipProps } from '@mui/material';
|
|
5
|
+
export { PaperProps } from '@mui/material';
|
|
6
|
+
import { SxProps as SxProps$1 } from '@mui/system';
|
|
7
|
+
import { Theme as Theme$1, SxProps as SxProps$2 } from '@mui/material/styles';
|
|
8
8
|
|
|
9
9
|
declare const getFiscalPeriod: (date: Date) => {
|
|
10
10
|
fiscalYear: number;
|
|
@@ -20,6 +20,35 @@ interface ActionBarProps {
|
|
|
20
20
|
}
|
|
21
21
|
declare const ActionBar: ({ title, extraLeft, extraRight, }: ActionBarProps) => ReactElement;
|
|
22
22
|
|
|
23
|
+
interface AccordionGroupProps {
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
sx?: SxProps<Theme>;
|
|
26
|
+
}
|
|
27
|
+
declare const AccordionGroup: ({ children, sx }: AccordionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
28
|
+
interface AccordionGroupItemProps {
|
|
29
|
+
summary: ReactNode;
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
defaultExpanded?: boolean;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
summaryProps?: Record<string, ReactNode>;
|
|
34
|
+
expandIcon?: ReactNode;
|
|
35
|
+
sx?: SxProps<Theme>;
|
|
36
|
+
detailsSx?: SxProps<Theme>;
|
|
37
|
+
}
|
|
38
|
+
declare const AccordionGroupItem: ({ summary, children, defaultExpanded, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionGroupItemProps) => react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
interface AccordionSingleProps {
|
|
41
|
+
summary: ReactNode;
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
defaultExpanded?: boolean;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
summaryProps?: Record<string, ReactNode>;
|
|
46
|
+
expandIcon?: ReactNode;
|
|
47
|
+
sx?: SxProps<Theme>;
|
|
48
|
+
detailsSx?: SxProps<Theme>;
|
|
49
|
+
}
|
|
50
|
+
declare const AccordionSingle: ({ summary, children, defaultExpanded, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionSingleProps) => react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
23
52
|
/**
|
|
24
53
|
* Typed wrappers around MUI Typography that fix the `variant` prop and
|
|
25
54
|
* inherit colour from the sageTheme TYPOGRAPHY_COLOURS map.
|
|
@@ -88,9 +117,9 @@ interface CheckboxGroupProps {
|
|
|
88
117
|
labels?: string[];
|
|
89
118
|
selectedValues?: string[];
|
|
90
119
|
onChange?: (values: string[]) => void;
|
|
91
|
-
rootSx?: SxProps<Theme>;
|
|
92
|
-
groupSx?: SxProps<Theme>;
|
|
93
|
-
titleSx?: SxProps<Theme>;
|
|
120
|
+
rootSx?: SxProps$1<Theme$1>;
|
|
121
|
+
groupSx?: SxProps$1<Theme$1>;
|
|
122
|
+
titleSx?: SxProps$1<Theme$1>;
|
|
94
123
|
}
|
|
95
124
|
declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
|
|
96
125
|
|
|
@@ -103,13 +132,16 @@ interface LocationMultiSelectProps {
|
|
|
103
132
|
emptyLabel?: string;
|
|
104
133
|
selectedLocations?: string[];
|
|
105
134
|
onLocationsChange?: (next: string[]) => void;
|
|
106
|
-
formControlSx?: SxProps$1
|
|
107
|
-
menuSx?: SxProps$1
|
|
108
|
-
selectSx?: SxProps$1
|
|
135
|
+
formControlSx?: SxProps<Theme$1>;
|
|
136
|
+
menuSx?: SxProps<Theme$1>;
|
|
137
|
+
selectSx?: SxProps<Theme$1>;
|
|
109
138
|
}
|
|
110
139
|
declare const LocationMultiSelect: react__default.FC<LocationMultiSelectProps>;
|
|
111
140
|
|
|
112
|
-
|
|
141
|
+
interface NexusHomeProps {
|
|
142
|
+
href?: string;
|
|
143
|
+
}
|
|
144
|
+
declare const NexusHome: React.FC<NexusHomeProps>;
|
|
113
145
|
|
|
114
146
|
type LogoProps = {
|
|
115
147
|
size?: "sm" | "md" | "lg";
|
|
@@ -151,8 +183,8 @@ interface SearchInputProps {
|
|
|
151
183
|
onSearchChange: (value: string) => void;
|
|
152
184
|
placeholder?: string;
|
|
153
185
|
searchValue?: string;
|
|
154
|
-
sx?: SxProps$1
|
|
155
|
-
styles?: SxProps$1
|
|
186
|
+
sx?: SxProps<Theme$1>;
|
|
187
|
+
styles?: SxProps<Theme$1>;
|
|
156
188
|
}
|
|
157
189
|
declare const SearchInput: react__default.FC<SearchInputProps>;
|
|
158
190
|
|
|
@@ -231,7 +263,7 @@ declare module "@mui/material/Typography" {
|
|
|
231
263
|
}
|
|
232
264
|
}
|
|
233
265
|
|
|
234
|
-
declare const createSageTheme: (mode?: ThemeMode) => Theme;
|
|
266
|
+
declare const createSageTheme: (mode?: ThemeMode) => Theme$1;
|
|
235
267
|
|
|
236
268
|
declare const useTokens: () => ModeTokens;
|
|
237
269
|
|
|
@@ -251,7 +283,7 @@ type GradientBorderOptions = {
|
|
|
251
283
|
borderRadius?: number;
|
|
252
284
|
padding?: number;
|
|
253
285
|
};
|
|
254
|
-
declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOptions) => {
|
|
286
|
+
declare const getGradientBorderStyles: (theme: Theme$1, options?: GradientBorderOptions) => {
|
|
255
287
|
position: string;
|
|
256
288
|
borderRadius: number;
|
|
257
289
|
border: string;
|
|
@@ -270,8 +302,8 @@ declare const getGradientBorderStyles: (theme: Theme, options?: GradientBorderOp
|
|
|
270
302
|
pointerEvents: string;
|
|
271
303
|
};
|
|
272
304
|
};
|
|
273
|
-
declare const leftPipe: SxProps$2<Theme>;
|
|
274
|
-
declare const expandableText: (isExpanded: boolean) => SxProps$2<Theme>;
|
|
305
|
+
declare const leftPipe: SxProps$2<Theme$1>;
|
|
306
|
+
declare const expandableText: (isExpanded: boolean) => SxProps$2<Theme$1>;
|
|
275
307
|
|
|
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 };
|
|
308
|
+
export { AccordionGroup, AccordionGroupItem, AccordionSingle, 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 };
|
|
309
|
+
export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, AiButtonProps, AiCardProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, CardProps, CardTrend, GlassCardProps, GradientBorderOptions, GreenWaveBackgroundProps, ModeTokens, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, ThemeMode };
|