@availity/mui-stepper 0.3.0 → 0.3.1
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 +2 -0
- package/README.md +1 -1
- package/dist/index.js +10 -3
- package/dist/index.mjs +10 -3
- package/package.json +1 -1
- package/src/lib/StepButton.stories.tsx +4 -1
- package/src/lib/Stepper.stories.tsx +3 -0
- package/src/lib/Stepper.tsx +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.3.1](https://github.com/Availity/element/compare/@availity/mui-stepper@0.3.0...@availity/mui-stepper@0.3.1) (2025-01-15)
|
|
6
|
+
|
|
5
7
|
## [0.3.0](https://github.com/Availity/element/compare/@availity/mui-stepper@0.2.4...@availity/mui-stepper@0.3.0) (2025-01-09)
|
|
6
8
|
|
|
7
9
|
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ This package extends the MUI Stepper component: [MUI Stepper Docs](https://mui.c
|
|
|
12
12
|
|
|
13
13
|
Live demo and documentation in our [Storybook](https://availity.github.io/element/?path=/docs/components-stepper-introduction--docs)
|
|
14
14
|
|
|
15
|
-
Availity standards for design and usage can be found in the [Availity Design Guide](https://
|
|
15
|
+
Availity standards for design and usage can be found in the [Availity Design Guide](https://design.availity.com/2e36e50c7)
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
package/dist/index.js
CHANGED
|
@@ -1595,12 +1595,16 @@ var Stepper = (_a) => {
|
|
|
1595
1595
|
) }),
|
|
1596
1596
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1597
1597
|
import_Stepper.default,
|
|
1598
|
-
__spreadProps(__spreadValues({
|
|
1598
|
+
__spreadProps(__spreadValues({
|
|
1599
|
+
"aria-label": "multi-step process",
|
|
1600
|
+
role: "region"
|
|
1601
|
+
}, rest), {
|
|
1599
1602
|
connector,
|
|
1600
1603
|
orientation,
|
|
1601
1604
|
alternativeLabel,
|
|
1602
1605
|
ref: stepperRef,
|
|
1603
|
-
children
|
|
1606
|
+
children,
|
|
1607
|
+
tabIndex: 0
|
|
1604
1608
|
})
|
|
1605
1609
|
),
|
|
1606
1610
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ScrollIconContainer, { style: { paddingLeft: "8px" }, children: showRightButton && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
@@ -1620,7 +1624,10 @@ var Stepper = (_a) => {
|
|
|
1620
1624
|
) })
|
|
1621
1625
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1622
1626
|
import_Stepper.default,
|
|
1623
|
-
__spreadProps(__spreadValues({
|
|
1627
|
+
__spreadProps(__spreadValues({
|
|
1628
|
+
"aria-label": "multi-step process",
|
|
1629
|
+
role: "region"
|
|
1630
|
+
}, rest), {
|
|
1624
1631
|
connector,
|
|
1625
1632
|
orientation,
|
|
1626
1633
|
alternativeLabel,
|
package/dist/index.mjs
CHANGED
|
@@ -1576,12 +1576,16 @@ var Stepper = (_a) => {
|
|
|
1576
1576
|
) }),
|
|
1577
1577
|
/* @__PURE__ */ jsx14(
|
|
1578
1578
|
MuiStepper,
|
|
1579
|
-
__spreadProps(__spreadValues({
|
|
1579
|
+
__spreadProps(__spreadValues({
|
|
1580
|
+
"aria-label": "multi-step process",
|
|
1581
|
+
role: "region"
|
|
1582
|
+
}, rest), {
|
|
1580
1583
|
connector,
|
|
1581
1584
|
orientation,
|
|
1582
1585
|
alternativeLabel,
|
|
1583
1586
|
ref: stepperRef,
|
|
1584
|
-
children
|
|
1587
|
+
children,
|
|
1588
|
+
tabIndex: 0
|
|
1585
1589
|
})
|
|
1586
1590
|
),
|
|
1587
1591
|
/* @__PURE__ */ jsx14(ScrollIconContainer, { style: { paddingLeft: "8px" }, children: showRightButton && /* @__PURE__ */ jsx14(
|
|
@@ -1601,7 +1605,10 @@ var Stepper = (_a) => {
|
|
|
1601
1605
|
) })
|
|
1602
1606
|
] }) : /* @__PURE__ */ jsx14(
|
|
1603
1607
|
MuiStepper,
|
|
1604
|
-
__spreadProps(__spreadValues({
|
|
1608
|
+
__spreadProps(__spreadValues({
|
|
1609
|
+
"aria-label": "multi-step process",
|
|
1610
|
+
role: "region"
|
|
1611
|
+
}, rest), {
|
|
1605
1612
|
connector,
|
|
1606
1613
|
orientation,
|
|
1607
1614
|
alternativeLabel,
|
package/package.json
CHANGED
|
@@ -22,12 +22,15 @@ export const _StepButton: StoryObj<typeof StepButton> = {
|
|
|
22
22
|
<Paper sx={{ padding: '2rem' }}>
|
|
23
23
|
<Stepper>
|
|
24
24
|
<Step>
|
|
25
|
-
<StepButton {...args}/>
|
|
25
|
+
<StepButton {...args} />
|
|
26
26
|
</Step>
|
|
27
27
|
</Stepper>
|
|
28
28
|
</Paper>
|
|
29
29
|
</Box>
|
|
30
30
|
),
|
|
31
|
+
args: {
|
|
32
|
+
'aria-label': '1',
|
|
33
|
+
},
|
|
31
34
|
};
|
|
32
35
|
|
|
33
36
|
// credit: https://stackoverflow.com/questions/36862334/get-viewport-window-height-in-reactjs
|
package/src/lib/Stepper.tsx
CHANGED
|
@@ -71,12 +71,15 @@ export const Stepper = ({ children, connector, orientation, scrollButtons, ...re
|
|
|
71
71
|
</ScrollIconContainer>
|
|
72
72
|
|
|
73
73
|
<MuiStepper
|
|
74
|
+
aria-label="multi-step process"
|
|
75
|
+
role="region"
|
|
74
76
|
{...rest}
|
|
75
77
|
connector={connector}
|
|
76
78
|
orientation={orientation}
|
|
77
79
|
alternativeLabel={alternativeLabel}
|
|
78
80
|
ref={stepperRef}
|
|
79
81
|
children={children}
|
|
82
|
+
tabIndex={0}
|
|
80
83
|
/>
|
|
81
84
|
|
|
82
85
|
<ScrollIconContainer style={{ paddingLeft: '8px' }}>
|
|
@@ -98,6 +101,8 @@ export const Stepper = ({ children, connector, orientation, scrollButtons, ...re
|
|
|
98
101
|
</Grid>
|
|
99
102
|
) : (
|
|
100
103
|
<MuiStepper
|
|
104
|
+
aria-label="multi-step process"
|
|
105
|
+
role="region"
|
|
101
106
|
{...rest}
|
|
102
107
|
connector={connector}
|
|
103
108
|
orientation={orientation}
|