sage-nexus-ui 1.1.0 → 1.1.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.
- package/dist/components/AccordionGroup.d.ts +2 -2
- package/dist/components/AccordionSingle.d.ts +5 -3
- package/dist/components/IconButton.d.ts +6 -3
- package/dist/index.d.ts +13 -7
- package/dist/index.mjs +1 -1
- package/dist/stories/Accordion.stories.d.ts +1 -0
- package/dist/stories/IconButton.stories.d.ts +19 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SxProps, type Theme } from "@mui/material";
|
|
1
|
+
import { type AccordionSummaryProps, type SxProps, type Theme } from "@mui/material";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
export interface AccordionGroupProps {
|
|
4
4
|
children: ReactNode;
|
|
@@ -10,7 +10,7 @@ export interface AccordionGroupItemProps {
|
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
defaultExpanded?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
-
summaryProps?:
|
|
13
|
+
summaryProps?: Omit<AccordionSummaryProps, "children" | "expandIcon">;
|
|
14
14
|
expandIcon?: ReactNode;
|
|
15
15
|
sx?: SxProps<Theme>;
|
|
16
16
|
detailsSx?: SxProps<Theme>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { type SxProps, type Theme } from "@mui/material";
|
|
1
|
+
import { type AccordionSummaryProps, type SxProps, type Theme } from "@mui/material";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
export interface AccordionSingleProps {
|
|
4
4
|
summary: ReactNode;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
defaultExpanded?: boolean;
|
|
7
|
+
expanded?: boolean;
|
|
8
|
+
onChange?: (event: React.SyntheticEvent, isExpanded: boolean) => void;
|
|
7
9
|
disabled?: boolean;
|
|
8
|
-
summaryProps?:
|
|
10
|
+
summaryProps?: Omit<AccordionSummaryProps, "children" | "expandIcon">;
|
|
9
11
|
expandIcon?: ReactNode;
|
|
10
12
|
sx?: SxProps<Theme>;
|
|
11
13
|
detailsSx?: SxProps<Theme>;
|
|
12
14
|
}
|
|
13
|
-
export declare const AccordionSingle: ({ summary, children, defaultExpanded, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionSingleProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const AccordionSingle: ({ summary, children, defaultExpanded, expanded, onChange, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionSingleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import { type IconButtonProps } from "@mui/material";
|
|
2
|
-
export type
|
|
3
|
-
|
|
1
|
+
import { type IconButtonProps as MuiIconButtonProps } from "@mui/material";
|
|
2
|
+
export type IconButtonProps = Omit<MuiIconButtonProps, "title"> & {
|
|
3
|
+
title?: string;
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const IconButton: ({ title, ariaLabel, children, disabled, ...rest }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { ReactNode, ReactElement, CSSProperties, PropsWithChildren } from 'react';
|
|
3
|
-
import { TypographyProps, SxProps, Theme, ButtonProps, CardProps as CardProps$1, PaperProps, BoxProps, CollapseProps, ButtonBaseProps, ChipProps, DialogProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogTitleProps, DividerProps, IconButtonProps, SkeletonProps as SkeletonProps$1, StackProps, TabProps, TabsProps, TextFieldProps } from '@mui/material';
|
|
4
|
-
export { BoxProps, ButtonBaseProps, ChipProps, CollapseProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogProps, DialogTitleProps, DividerProps,
|
|
3
|
+
import { TypographyProps, SxProps, Theme, AccordionSummaryProps, ButtonProps, CardProps as CardProps$1, PaperProps, BoxProps, CollapseProps, ButtonBaseProps, ChipProps, DialogProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogTitleProps, DividerProps, IconButtonProps as IconButtonProps$1, SkeletonProps as SkeletonProps$1, StackProps, TabProps, TabsProps, TextFieldProps } from '@mui/material';
|
|
4
|
+
export { BoxProps, ButtonBaseProps, ChipProps, CollapseProps, DialogActionsProps, DialogContentProps, DialogContentTextProps, DialogProps, DialogTitleProps, DividerProps, PaperProps, StackProps, TabProps, TabsProps, TextFieldProps, Theme, alpha, useMediaQuery, useTheme } from '@mui/material';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { DataGridProps } from '@mui/x-data-grid';
|
|
7
7
|
export { DataGridProps, GridColDef, GridColumnVisibilityModel, GridPaginationModel, GridRenderCellParams, GridRowsProp, GridSortModel, GridValueGetter } from '@mui/x-data-grid';
|
|
@@ -49,7 +49,7 @@ interface AccordionGroupItemProps {
|
|
|
49
49
|
children: ReactNode;
|
|
50
50
|
defaultExpanded?: boolean;
|
|
51
51
|
disabled?: boolean;
|
|
52
|
-
summaryProps?:
|
|
52
|
+
summaryProps?: Omit<AccordionSummaryProps, "children" | "expandIcon">;
|
|
53
53
|
expandIcon?: ReactNode;
|
|
54
54
|
sx?: SxProps<Theme>;
|
|
55
55
|
detailsSx?: SxProps<Theme>;
|
|
@@ -60,13 +60,15 @@ interface AccordionSingleProps {
|
|
|
60
60
|
summary: ReactNode;
|
|
61
61
|
children: ReactNode;
|
|
62
62
|
defaultExpanded?: boolean;
|
|
63
|
+
expanded?: boolean;
|
|
64
|
+
onChange?: (event: React.SyntheticEvent, isExpanded: boolean) => void;
|
|
63
65
|
disabled?: boolean;
|
|
64
|
-
summaryProps?:
|
|
66
|
+
summaryProps?: Omit<AccordionSummaryProps, "children" | "expandIcon">;
|
|
65
67
|
expandIcon?: ReactNode;
|
|
66
68
|
sx?: SxProps<Theme>;
|
|
67
69
|
detailsSx?: SxProps<Theme>;
|
|
68
70
|
}
|
|
69
|
-
declare const AccordionSingle: ({ summary, children, defaultExpanded, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionSingleProps) => react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare const AccordionSingle: ({ summary, children, defaultExpanded, expanded, onChange, disabled, summaryProps, expandIcon, sx, detailsSx, }: AccordionSingleProps) => react_jsx_runtime.JSX.Element;
|
|
70
72
|
|
|
71
73
|
interface SecondaryButtonProps extends Omit<ButtonProps, "variant" | "color"> {
|
|
72
74
|
size?: "small" | "medium" | "large";
|
|
@@ -155,7 +157,11 @@ declare const GlassPaperAsync: ({ title, isLoading, isError, errorMessage, child
|
|
|
155
157
|
type GreenWaveBackgroundProps = BoxProps;
|
|
156
158
|
declare const GreenWaveBackground: ({ sx, children, ...rest }: GreenWaveBackgroundProps) => react_jsx_runtime.JSX.Element;
|
|
157
159
|
|
|
158
|
-
|
|
160
|
+
type IconButtonProps = Omit<IconButtonProps$1, "title"> & {
|
|
161
|
+
title?: string;
|
|
162
|
+
ariaLabel?: string;
|
|
163
|
+
};
|
|
164
|
+
declare const IconButton: ({ title, ariaLabel, children, disabled, ...rest }: IconButtonProps) => react_jsx_runtime.JSX.Element;
|
|
159
165
|
|
|
160
166
|
interface LocationMultiSelectProps {
|
|
161
167
|
ariaLabel?: string;
|
|
@@ -368,4 +374,4 @@ declare const leftPipe: SxProps$2<Theme$1>;
|
|
|
368
374
|
declare const expandableText: (isExpanded: boolean) => SxProps$2<Theme$1>;
|
|
369
375
|
|
|
370
376
|
export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AiButton, AiCard, AiGlassCard, AiGlassPaper, AiPaper, Body1, Body2, Box, ButtonBase, Caption, Card, CheckboxGroup, Chip, Collapse, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, H1, H2, H3, H4, IconButton, LoadingSpinnerNexus, LocationMultiSelect, MuiAppThemeProvider, NexusDataGrid, NexusHome, NexusLogo, Paper, PrimaryButton, PrimaryButtonLink, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, Skeleton, SkillChip, Stack, StatusChip, Tab, Tabs, TextField, ThemeModeProvider, ThemeToggle, colours, createSageTheme, expandableText, fontSageHeadline, fontSageText, fontSageUI, formatDate, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
|
|
371
|
-
export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, AiButtonProps, AiCardProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, CardProps, CardTrend, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, LoadingSpinnerNexusProps, ModeTokens, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SkeletonProps, ThemeMode };
|
|
377
|
+
export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, AiButtonProps, AiCardProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, CardProps, CardTrend, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, LoadingSpinnerNexusProps, ModeTokens, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SkeletonProps, ThemeMode };
|