@availity/mui-stepper 1.0.7 → 2.0.0
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/CHANGELOG.md +29 -0
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +23 -1496
- package/dist/index.mjs +17 -1510
- package/package.json +14 -13
- package/src/lib/Step.tsx +1 -1
- package/src/lib/StepButton.tsx +1 -1
- package/src/lib/StepConnector.tsx +1 -1
- package/src/lib/StepContent.tsx +1 -1
- package/src/lib/StepIcon.tsx +2 -2
- package/src/lib/StepLabel.tsx +1 -1
- package/src/lib/Stepper.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-stepper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Availity MUI Stepper Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,25 +40,26 @@
|
|
|
40
40
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@availity/mui-icon": "^
|
|
44
|
-
"@availity/mui-typography": "^
|
|
43
|
+
"@availity/mui-icon": "^2.0.0",
|
|
44
|
+
"@availity/mui-typography": "^2.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@availity/mui-button": "^
|
|
48
|
-
"@availity/mui-layout": "^
|
|
49
|
-
"@availity/mui-paper": "^
|
|
50
|
-
"@availity/mui-typography": "^
|
|
51
|
-
"@mui/material": "^
|
|
52
|
-
"react": "
|
|
53
|
-
"react-dom": "
|
|
47
|
+
"@availity/mui-button": "^2.0.0",
|
|
48
|
+
"@availity/mui-layout": "^2.0.0",
|
|
49
|
+
"@availity/mui-paper": "^2.0.0",
|
|
50
|
+
"@availity/mui-typography": "^2.0.0",
|
|
51
|
+
"@mui/material": "^7.3.4",
|
|
52
|
+
"react": "19.2.0",
|
|
53
|
+
"react-dom": "19.2.0",
|
|
54
54
|
"tsup": "^8.4.0",
|
|
55
55
|
"typescript": "^5.4.5"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@mui/material": "^
|
|
59
|
-
"react": ">=
|
|
58
|
+
"@mui/material": "^7.0.0",
|
|
59
|
+
"react": ">=17.0.0"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
|
-
}
|
|
63
|
+
},
|
|
64
|
+
"sideEffects": false
|
|
64
65
|
}
|
package/src/lib/Step.tsx
CHANGED
|
@@ -2,6 +2,6 @@ import MuiStep, { StepProps as MuiStepProps } from '@mui/material/Step';
|
|
|
2
2
|
|
|
3
3
|
export type StepProps = MuiStepProps;
|
|
4
4
|
|
|
5
|
-
export const Step = ({ children, ...rest }: StepProps): JSX.Element => {
|
|
5
|
+
export const Step = ({ children, ...rest }: StepProps): React.JSX.Element => {
|
|
6
6
|
return <MuiStep {...rest}>{children}</MuiStep>;
|
|
7
7
|
};
|
package/src/lib/StepButton.tsx
CHANGED
|
@@ -5,7 +5,7 @@ export type StepButtonProps = Omit<
|
|
|
5
5
|
'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'TouchRippleProps' | 'touchRippleRef'
|
|
6
6
|
>;
|
|
7
7
|
|
|
8
|
-
export const StepButton = ({ children, ...rest }: StepButtonProps): JSX.Element => {
|
|
8
|
+
export const StepButton = ({ children, ...rest }: StepButtonProps): React.JSX.Element => {
|
|
9
9
|
return (
|
|
10
10
|
<MuiStepButton {...rest} disableRipple disableTouchRipple>
|
|
11
11
|
{children}
|
|
@@ -2,6 +2,6 @@ import MuiStepConnector, { StepConnectorProps as MuiStepConnectorProps } from '@
|
|
|
2
2
|
|
|
3
3
|
export type StepConnectorProps = MuiStepConnectorProps;
|
|
4
4
|
|
|
5
|
-
export const StepConnector = (props: StepConnectorProps): JSX.Element => {
|
|
5
|
+
export const StepConnector = (props: StepConnectorProps): React.JSX.Element => {
|
|
6
6
|
return <MuiStepConnector {...props} />;
|
|
7
7
|
};
|
package/src/lib/StepContent.tsx
CHANGED
|
@@ -2,6 +2,6 @@ import MuiStepContent, { StepContentProps as MuiStepContentProps } from '@mui/ma
|
|
|
2
2
|
|
|
3
3
|
export type StepContentProps = MuiStepContentProps;
|
|
4
4
|
|
|
5
|
-
export const StepContent = ({ children, ...rest }: StepContentProps): JSX.Element => {
|
|
5
|
+
export const StepContent = ({ children, ...rest }: StepContentProps): React.JSX.Element => {
|
|
6
6
|
return <MuiStepContent {...rest}>{children}</MuiStepContent>;
|
|
7
7
|
};
|
package/src/lib/StepIcon.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import MuiStepIcon, { StepIconProps as MuiStepIconProps } from '@mui/material/St
|
|
|
2
2
|
import { SuccessCircleIcon, WarningCircleIcon } from '@availity/mui-icon';
|
|
3
3
|
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
4
4
|
|
|
5
|
-
type Tag = ((props: SvgIconProps) => JSX.Element) | null;
|
|
5
|
+
type Tag = ((props: SvgIconProps) => React.JSX.Element) | null;
|
|
6
6
|
|
|
7
7
|
declare module '@mui/material/StepIcon' {
|
|
8
8
|
interface StepIconProps {
|
|
@@ -16,7 +16,7 @@ export type StepIconProps = {
|
|
|
16
16
|
warning?: boolean
|
|
17
17
|
} & MuiStepIconProps;
|
|
18
18
|
|
|
19
|
-
export const StepIcon = ({ error, completed, warning, ...rest }: StepIconProps): JSX.Element => {
|
|
19
|
+
export const StepIcon = ({ error, completed, warning, ...rest }: StepIconProps): React.JSX.Element => {
|
|
20
20
|
let tag: Tag = null;
|
|
21
21
|
if (error) tag = WarningCircleIcon;
|
|
22
22
|
if (warning) tag = (props: SvgIconProps) => <WarningCircleIcon color="warning" {...props} />;
|
package/src/lib/StepLabel.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { Typography } from '@availity/mui-typography';
|
|
|
5
5
|
|
|
6
6
|
export type StepLabelProps = Pick<StepIconProps, 'warning'> & MuiStepLabelProps;
|
|
7
7
|
|
|
8
|
-
const StepLabel = ({ children, error, optional, warning, ...rest }: StepLabelProps): JSX.Element => {
|
|
8
|
+
const StepLabel = ({ children, error, optional, warning, ...rest }: StepLabelProps): React.JSX.Element => {
|
|
9
9
|
if (typeof optional === 'string') {
|
|
10
10
|
optional = <Typography variant="caption" children={optional} />;
|
|
11
11
|
}
|
package/src/lib/Stepper.tsx
CHANGED
|
@@ -19,7 +19,7 @@ const HiddenConnectorStepper = styled(MuiStepper, {
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
export const Stepper = ({ children, connector, orientation, scrollButtons, ...rest }: StepperProps): JSX.Element => {
|
|
22
|
+
export const Stepper = ({ children, connector, orientation, scrollButtons, ...rest }: StepperProps): React.JSX.Element => {
|
|
23
23
|
const alternativeLabel = orientation !== 'vertical';
|
|
24
24
|
const Stepper = connector === null ? HiddenConnectorStepper : MuiStepper;
|
|
25
25
|
|