@availity/mui-stepper 1.0.8 → 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 +20 -0
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +12 -12
- 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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [2.0.0](https://github.com/Availity/element/compare/@availity/mui-stepper@1.0.8...@availity/mui-stepper@2.0.0) (2025-11-17)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-button` updated to version `1.0.8`
|
|
10
|
+
* `mui-layout` updated to version `1.0.8`
|
|
11
|
+
* `mui-paper` updated to version `1.0.8`
|
|
12
|
+
* `mui-typography` updated to version `1.0.8`
|
|
13
|
+
* `mui-icon` updated to version `1.0.8`
|
|
14
|
+
|
|
15
|
+
### ⚠ BREAKING CHANGES
|
|
16
|
+
|
|
17
|
+
* @mui/material upgraded to v7
|
|
18
|
+
* @mui/x-* upgraded to v8
|
|
19
|
+
* react upgraded to v19
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* upgrade material and react dependencies ([51602a4](https://github.com/Availity/element/commit/51602a48c5304db6f61e2c7e772c9a3a4aa3f65c))
|
|
24
|
+
|
|
5
25
|
## [1.0.8](https://github.com/Availity/element/compare/@availity/mui-stepper@1.0.7...@availity/mui-stepper@1.0.8) (2025-10-30)
|
|
6
26
|
|
|
7
27
|
### Dependency Updates
|
package/dist/index.d.mts
CHANGED
|
@@ -8,18 +8,18 @@ import { StepLabelProps as StepLabelProps$1 } from '@mui/material/StepLabel';
|
|
|
8
8
|
import { StepperProps as StepperProps$1 } from '@mui/material/Stepper';
|
|
9
9
|
|
|
10
10
|
type StepProps = StepProps$1;
|
|
11
|
-
declare const Step: ({ children, ...rest }: StepProps) => JSX.Element;
|
|
11
|
+
declare const Step: ({ children, ...rest }: StepProps) => React.JSX.Element;
|
|
12
12
|
|
|
13
13
|
type StepButtonProps = Omit<StepButtonProps$1, 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'TouchRippleProps' | 'touchRippleRef'>;
|
|
14
|
-
declare const StepButton: ({ children, ...rest }: StepButtonProps) => JSX.Element;
|
|
14
|
+
declare const StepButton: ({ children, ...rest }: StepButtonProps) => React.JSX.Element;
|
|
15
15
|
|
|
16
16
|
type StepConnectorProps = StepConnectorProps$1;
|
|
17
|
-
declare const StepConnector: (props: StepConnectorProps) => JSX.Element;
|
|
17
|
+
declare const StepConnector: (props: StepConnectorProps) => React.JSX.Element;
|
|
18
18
|
|
|
19
19
|
type StepContentProps = StepContentProps$1;
|
|
20
|
-
declare const StepContent: ({ children, ...rest }: StepContentProps) => JSX.Element;
|
|
20
|
+
declare const StepContent: ({ children, ...rest }: StepContentProps) => React.JSX.Element;
|
|
21
21
|
|
|
22
|
-
type Tag = ((props: SvgIconProps) => JSX.Element) | null;
|
|
22
|
+
type Tag = ((props: SvgIconProps) => React.JSX.Element) | null;
|
|
23
23
|
declare module '@mui/material/StepIcon' {
|
|
24
24
|
interface StepIconProps {
|
|
25
25
|
as?: Tag;
|
|
@@ -30,17 +30,17 @@ type StepIconProps = {
|
|
|
30
30
|
/** If `true`, the step will have a warning icon. */
|
|
31
31
|
warning?: boolean;
|
|
32
32
|
} & StepIconProps$1;
|
|
33
|
-
declare const StepIcon: ({ error, completed, warning, ...rest }: StepIconProps) => JSX.Element;
|
|
33
|
+
declare const StepIcon: ({ error, completed, warning, ...rest }: StepIconProps) => React.JSX.Element;
|
|
34
34
|
|
|
35
35
|
type StepLabelProps = Pick<StepIconProps, 'warning'> & StepLabelProps$1;
|
|
36
36
|
declare const StepLabel: {
|
|
37
|
-
({ children, error, optional, warning, ...rest }: StepLabelProps): JSX.Element;
|
|
37
|
+
({ children, error, optional, warning, ...rest }: StepLabelProps): React.JSX.Element;
|
|
38
38
|
muiName: string;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
type StepperProps = {
|
|
42
42
|
scrollButtons?: boolean;
|
|
43
43
|
} & Omit<StepperProps$1, 'alternativeLabel' | 'elevation'>;
|
|
44
|
-
declare const Stepper: ({ children, connector, orientation, scrollButtons, ...rest }: StepperProps) => JSX.Element;
|
|
44
|
+
declare const Stepper: ({ children, connector, orientation, scrollButtons, ...rest }: StepperProps) => React.JSX.Element;
|
|
45
45
|
|
|
46
46
|
export { Step, StepButton, type StepButtonProps, StepConnector, type StepConnectorProps, StepContent, type StepContentProps, StepIcon, type StepIconProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,18 +8,18 @@ import { StepLabelProps as StepLabelProps$1 } from '@mui/material/StepLabel';
|
|
|
8
8
|
import { StepperProps as StepperProps$1 } from '@mui/material/Stepper';
|
|
9
9
|
|
|
10
10
|
type StepProps = StepProps$1;
|
|
11
|
-
declare const Step: ({ children, ...rest }: StepProps) => JSX.Element;
|
|
11
|
+
declare const Step: ({ children, ...rest }: StepProps) => React.JSX.Element;
|
|
12
12
|
|
|
13
13
|
type StepButtonProps = Omit<StepButtonProps$1, 'centerRipple' | 'disableRipple' | 'disableTouchRipple' | 'focusRipple' | 'TouchRippleProps' | 'touchRippleRef'>;
|
|
14
|
-
declare const StepButton: ({ children, ...rest }: StepButtonProps) => JSX.Element;
|
|
14
|
+
declare const StepButton: ({ children, ...rest }: StepButtonProps) => React.JSX.Element;
|
|
15
15
|
|
|
16
16
|
type StepConnectorProps = StepConnectorProps$1;
|
|
17
|
-
declare const StepConnector: (props: StepConnectorProps) => JSX.Element;
|
|
17
|
+
declare const StepConnector: (props: StepConnectorProps) => React.JSX.Element;
|
|
18
18
|
|
|
19
19
|
type StepContentProps = StepContentProps$1;
|
|
20
|
-
declare const StepContent: ({ children, ...rest }: StepContentProps) => JSX.Element;
|
|
20
|
+
declare const StepContent: ({ children, ...rest }: StepContentProps) => React.JSX.Element;
|
|
21
21
|
|
|
22
|
-
type Tag = ((props: SvgIconProps) => JSX.Element) | null;
|
|
22
|
+
type Tag = ((props: SvgIconProps) => React.JSX.Element) | null;
|
|
23
23
|
declare module '@mui/material/StepIcon' {
|
|
24
24
|
interface StepIconProps {
|
|
25
25
|
as?: Tag;
|
|
@@ -30,17 +30,17 @@ type StepIconProps = {
|
|
|
30
30
|
/** If `true`, the step will have a warning icon. */
|
|
31
31
|
warning?: boolean;
|
|
32
32
|
} & StepIconProps$1;
|
|
33
|
-
declare const StepIcon: ({ error, completed, warning, ...rest }: StepIconProps) => JSX.Element;
|
|
33
|
+
declare const StepIcon: ({ error, completed, warning, ...rest }: StepIconProps) => React.JSX.Element;
|
|
34
34
|
|
|
35
35
|
type StepLabelProps = Pick<StepIconProps, 'warning'> & StepLabelProps$1;
|
|
36
36
|
declare const StepLabel: {
|
|
37
|
-
({ children, error, optional, warning, ...rest }: StepLabelProps): JSX.Element;
|
|
37
|
+
({ children, error, optional, warning, ...rest }: StepLabelProps): React.JSX.Element;
|
|
38
38
|
muiName: string;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
type StepperProps = {
|
|
42
42
|
scrollButtons?: boolean;
|
|
43
43
|
} & Omit<StepperProps$1, 'alternativeLabel' | 'elevation'>;
|
|
44
|
-
declare const Stepper: ({ children, connector, orientation, scrollButtons, ...rest }: StepperProps) => JSX.Element;
|
|
44
|
+
declare const Stepper: ({ children, connector, orientation, scrollButtons, ...rest }: StepperProps) => React.JSX.Element;
|
|
45
45
|
|
|
46
46
|
export { Step, StepButton, type StepButtonProps, StepConnector, type StepConnectorProps, StepContent, type StepContentProps, StepIcon, type StepIconProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps };
|
package/dist/index.js
CHANGED
|
@@ -159,10 +159,10 @@ var IconButton = (0, import_react.forwardRef)((props, ref) => {
|
|
|
159
159
|
var import_mui_icon2 = require("@availity/mui-icon");
|
|
160
160
|
|
|
161
161
|
// ../layout/src/lib/Grid.tsx
|
|
162
|
-
var
|
|
162
|
+
var import_Grid = __toESM(require("@mui/material/Grid"));
|
|
163
163
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
164
164
|
var Grid = (args) => {
|
|
165
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_Grid.default, __spreadValues({}, args));
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
// src/lib/Stepper.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -120,10 +120,10 @@ var IconButton = forwardRef((props, ref) => {
|
|
|
120
120
|
import { NavigatePreviousIcon, NavigateNextIcon } from "@availity/mui-icon";
|
|
121
121
|
|
|
122
122
|
// ../layout/src/lib/Grid.tsx
|
|
123
|
-
import
|
|
123
|
+
import MuiGrid from "@mui/material/Grid";
|
|
124
124
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
125
125
|
var Grid = (args) => {
|
|
126
|
-
return /* @__PURE__ */ jsx8(
|
|
126
|
+
return /* @__PURE__ */ jsx8(MuiGrid, __spreadValues({}, args));
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
// src/lib/Stepper.tsx
|
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,23 +40,23 @@
|
|
|
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"
|
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
|
|