sage-nexus-ui 1.1.1 → 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.
|
@@ -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;
|
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, SxProps, Theme, 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';
|
|
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
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';
|
|
@@ -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";
|