@availity/mui-stepper 1.0.6 → 1.0.8
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 +16 -0
- package/dist/index.js +33 -1496
- package/dist/index.mjs +27 -1510
- package/package.json +9 -8
- package/src/lib/Stepper.tsx +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-stepper",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Availity MUI Stepper Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@availity/mui-icon": "^1.1.
|
|
44
|
-
"@availity/mui-typography": "^1.0.
|
|
43
|
+
"@availity/mui-icon": "^1.1.1",
|
|
44
|
+
"@availity/mui-typography": "^1.0.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@availity/mui-button": "^1.1.
|
|
48
|
-
"@availity/mui-layout": "^1.0.
|
|
49
|
-
"@availity/mui-paper": "^1.0.
|
|
50
|
-
"@availity/mui-typography": "^1.0.
|
|
47
|
+
"@availity/mui-button": "^1.1.5",
|
|
48
|
+
"@availity/mui-layout": "^1.0.3",
|
|
49
|
+
"@availity/mui-paper": "^1.0.3",
|
|
50
|
+
"@availity/mui-typography": "^1.0.3",
|
|
51
51
|
"@mui/material": "^6.4.5",
|
|
52
52
|
"react": "18.2.0",
|
|
53
53
|
"react-dom": "18.2.0",
|
|
@@ -60,5 +60,6 @@
|
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
|
-
}
|
|
63
|
+
},
|
|
64
|
+
"sideEffects": false
|
|
64
65
|
}
|
package/src/lib/Stepper.tsx
CHANGED
|
@@ -9,8 +9,19 @@ export type StepperProps = {
|
|
|
9
9
|
scrollButtons?: boolean;
|
|
10
10
|
} & Omit<MuiStepperProps, 'alternativeLabel' | 'elevation'>;
|
|
11
11
|
|
|
12
|
+
const HiddenConnectorStepper = styled(MuiStepper, {
|
|
13
|
+
name: 'MuiStepper',
|
|
14
|
+
slot: 'AvHideConnector',
|
|
15
|
+
overridesResolver: (props, styles) => styles.avHideConnector,
|
|
16
|
+
})({
|
|
17
|
+
'.MuiStepLabel-root::before, .MuiStepLabel-root::after, .MuiStepConnector-root': {
|
|
18
|
+
display: 'none'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
12
22
|
export const Stepper = ({ children, connector, orientation, scrollButtons, ...rest }: StepperProps): JSX.Element => {
|
|
13
23
|
const alternativeLabel = orientation !== 'vertical';
|
|
24
|
+
const Stepper = connector === null ? HiddenConnectorStepper : MuiStepper;
|
|
14
25
|
|
|
15
26
|
const stepperRef = useRef<HTMLDivElement>(null);
|
|
16
27
|
const [showLeftButton, setShowLeftButton] = useState(true);
|
|
@@ -70,7 +81,7 @@ export const Stepper = ({ children, connector, orientation, scrollButtons, ...re
|
|
|
70
81
|
)}
|
|
71
82
|
</ScrollIconContainer>
|
|
72
83
|
|
|
73
|
-
<
|
|
84
|
+
<Stepper
|
|
74
85
|
aria-label="multi-step process"
|
|
75
86
|
role="region"
|
|
76
87
|
{...rest}
|
|
@@ -100,7 +111,7 @@ export const Stepper = ({ children, connector, orientation, scrollButtons, ...re
|
|
|
100
111
|
</ScrollIconContainer>
|
|
101
112
|
</Grid>
|
|
102
113
|
) : (
|
|
103
|
-
<
|
|
114
|
+
<Stepper
|
|
104
115
|
aria-label="multi-step process"
|
|
105
116
|
role="region"
|
|
106
117
|
{...rest}
|