@redis-ui/components 39.18.0 → 41.3.2
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/dist/AppSelectionMenu/components/Icon/Icon.cjs +3 -1
- package/dist/AppSelectionMenu/components/Icon/Icon.js +3 -1
- package/dist/AppSelectionMenu/components/Trigger/Trigger.styles.cjs +1 -1
- package/dist/AppSelectionMenu/components/Trigger/Trigger.styles.js +1 -1
- package/dist/AutoCompleteSelect/AutoCompleteSelect.style.d.ts +1 -1
- package/dist/Banner/Banner.d.ts +3 -3
- package/dist/Banner/components/Actions/Actions.d.ts +1 -1
- package/dist/Banner/components/Compose/Compose.style.d.ts +1 -1
- package/dist/BoxSelectionGroup/components/Item/components/Compose/Compose.types.d.ts +1 -1
- package/dist/ChipList/Components/ExtraItem.cjs +3 -0
- package/dist/ChipList/Components/ExtraItem.js +3 -0
- package/dist/Drawer/Drawer.d.ts +2 -2
- package/dist/Drawer/components/Body/Body.cjs +17 -3
- package/dist/Drawer/components/Body/Body.d.ts +1 -1
- package/dist/Drawer/components/Body/Body.js +17 -3
- package/dist/Drawer/components/Body/Body.types.d.ts +3 -1
- package/dist/Filters/components/MultiSelectFilter/MultiSelectFilter.styles.d.ts +2 -2
- package/dist/FormField/FormField.context.d.ts +6 -2
- package/dist/FormField/FormField.d.ts +2 -4
- package/dist/FormField/components/Compose/Compose.d.ts +1 -1
- package/dist/FormField/components/Compose/Compose.types.d.ts +2 -2
- package/dist/FormField/components/Nested/Nested.cjs +25 -8
- package/dist/FormField/components/Nested/Nested.d.ts +1 -1
- package/dist/FormField/components/Nested/Nested.js +25 -8
- package/dist/FormField/components/Nested/Nested.types.d.ts +2 -0
- package/dist/Helpers/common.types.d.ts +1 -1
- package/dist/Helpers/contexts/NullableContext.cjs +17 -0
- package/dist/Helpers/contexts/NullableContext.d.ts +4 -0
- package/dist/Helpers/contexts/NullableContext.js +17 -0
- package/dist/Helpers/contexts/PrimitiveContextState.cjs +27 -0
- package/dist/Helpers/contexts/PrimitiveContextState.d.ts +7 -2
- package/dist/Helpers/contexts/PrimitiveContextState.js +27 -0
- package/dist/Helpers/hooks/useScrollable.cjs +32 -0
- package/dist/Helpers/hooks/useScrollable.d.ts +3 -0
- package/dist/Helpers/hooks/useScrollable.js +32 -0
- package/dist/Helpers/index.d.ts +2 -0
- package/dist/Inputs/Input/Input.d.ts +1 -1
- package/dist/Inputs/NumericInput/NumericInput.d.ts +1 -1
- package/dist/Inputs/PasswordInput/components/Compose/Compose.style.d.ts +1 -1
- package/dist/Inputs/QuantityCounter/QuantityCounter.d.ts +2 -2
- package/dist/Inputs/QuantityCounter/components/Compose/Compose.style.d.ts +1 -1
- package/dist/Inputs/QuantityCounter/components/InputGroup/InputGroup.d.ts +1 -1
- package/dist/Inputs/SearchInput/SearchInput.d.ts +1 -1
- package/dist/Inputs/TextArea/TextArea.d.ts +1 -1
- package/dist/Inputs/TextArea/components/Compose/Compose.style.d.ts +1 -1
- package/dist/Inputs/components/Context/Field.context.d.ts +3 -1
- package/dist/Loader/Loader.style.cjs +1 -1
- package/dist/Loader/Loader.style.js +1 -1
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/Menu/components/Content/Content.d.ts +1 -1
- package/dist/Menu/components/Content/components/Label/Label.d.ts +1 -1
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/components/Content/Content.d.ts +1 -1
- package/dist/ProfileIcon/ProfileIcon.types.d.ts +1 -1
- package/dist/ScreenReaderAnnounce/ScreenReaderAnnounce.cjs +32 -0
- package/dist/ScreenReaderAnnounce/ScreenReaderAnnounce.d.ts +8 -0
- package/dist/ScreenReaderAnnounce/ScreenReaderAnnounce.js +32 -0
- package/dist/ScreenReaderAnnounce/index.d.ts +1 -0
- package/dist/Section/Section.cjs +11 -8
- package/dist/Section/Section.d.ts +9 -7
- package/dist/Section/Section.js +11 -8
- package/dist/Section/Section.types.d.ts +8 -2
- package/dist/Section/components/Body/Body.cjs +10 -6
- package/dist/Section/components/Body/Body.d.ts +1 -1
- package/dist/Section/components/Body/Body.js +11 -7
- package/dist/Section/components/Body/Body.style.cjs +1 -1
- package/dist/Section/components/Body/Body.style.js +1 -1
- package/dist/Section/components/Body/Body.types.d.ts +2 -5
- package/dist/Section/components/Compose/Compose.cjs +18 -7
- package/dist/Section/components/Compose/Compose.d.ts +1 -1
- package/dist/Section/components/Compose/Compose.js +18 -7
- package/dist/Section/components/Compose/Compose.types.d.ts +2 -2
- package/dist/Section/components/Header/Header.cjs +12 -20
- package/dist/Section/components/Header/Header.d.ts +5 -4
- package/dist/Section/components/Header/Header.js +12 -20
- package/dist/Section/components/Header/Header.types.d.ts +7 -3
- package/dist/Section/components/Header/components/CollapseButton/CollapseButton.cjs +34 -0
- package/dist/Section/components/Header/components/CollapseButton/CollapseButton.d.ts +2 -0
- package/dist/Section/components/Header/components/CollapseButton/CollapseButton.js +34 -0
- package/dist/Section/components/Header/components/CollapseButton/CollapseButton.style.cjs +30 -0
- package/dist/Section/components/Header/components/CollapseButton/CollapseButton.style.d.ts +3 -0
- package/dist/Section/components/Header/components/CollapseButton/CollapseButton.style.js +28 -0
- package/dist/Section/components/Header/components/CollapseButton/CollapseButton.types.d.ts +6 -0
- package/dist/Section/components/Header/components/Compose/Compose.cjs +2 -30
- package/dist/Section/components/Header/components/Compose/Compose.d.ts +1 -1
- package/dist/Section/components/Header/components/Compose/Compose.js +3 -31
- package/dist/Section/components/Header/components/Compose/Compose.style.cjs +3 -36
- package/dist/Section/components/Header/components/Compose/Compose.style.d.ts +1 -9
- package/dist/Section/components/Header/components/Compose/Compose.style.js +5 -38
- package/dist/Section/components/Header/components/Compose/Compose.types.d.ts +2 -5
- package/dist/Section/components/Header/components/Group/Group.types.d.ts +1 -1
- package/dist/Section/components/Header/components/Label/Label.cjs +18 -7
- package/dist/Section/components/Header/components/Label/Label.js +19 -8
- package/dist/Section/components/Header/components/Label/Label.style.cjs +17 -4
- package/dist/Section/components/Header/components/Label/Label.style.d.ts +2 -1
- package/dist/Section/components/Header/components/Label/Label.style.js +17 -4
- package/dist/Section/components/Header/components/Label/Label.types.d.ts +2 -2
- package/dist/Section/components/SummaryBar/SummaryBar.cjs +14 -0
- package/dist/Section/components/SummaryBar/SummaryBar.d.ts +2 -0
- package/dist/Section/components/SummaryBar/SummaryBar.js +14 -0
- package/dist/Section/components/SummaryBar/SummaryBar.style.cjs +22 -0
- package/dist/Section/components/SummaryBar/SummaryBar.style.d.ts +3 -0
- package/dist/Section/components/SummaryBar/SummaryBar.style.js +20 -0
- package/dist/Section/components/SummaryBar/SummaryBar.types.d.ts +4 -0
- package/dist/Select/components/Content/components/Search/SelectSearchInput.style.d.ts +1 -1
- package/dist/SideBar/components/Footer/Footer.style.cjs +4 -1
- package/dist/SideBar/components/Footer/Footer.style.js +5 -2
- package/dist/SideBar/components/Header/Header.cjs +4 -6
- package/dist/SideBar/components/Header/Header.js +4 -6
- package/dist/SideBar/components/ScrollContainer/ScrollContainer.types.d.ts +1 -1
- package/dist/Stepper/Stepper.cjs +15 -27
- package/dist/Stepper/Stepper.context.cjs +13 -0
- package/dist/Stepper/Stepper.context.d.ts +12 -0
- package/dist/Stepper/Stepper.context.js +13 -0
- package/dist/Stepper/Stepper.d.ts +14 -5
- package/dist/Stepper/Stepper.js +15 -25
- package/dist/Stepper/Stepper.types.d.ts +9 -3
- package/dist/Stepper/components/Compose/Compose.cjs +42 -0
- package/dist/Stepper/components/Compose/Compose.d.ts +10 -0
- package/dist/Stepper/components/Compose/Compose.js +42 -0
- package/dist/Stepper/{Stepper.style.cjs → components/Compose/Compose.style.cjs} +4 -4
- package/dist/Stepper/components/Compose/Compose.style.d.ts +1 -0
- package/dist/Stepper/{Stepper.style.js → components/Compose/Compose.style.js} +4 -4
- package/dist/Stepper/components/Compose/Compose.types.d.ts +6 -0
- package/dist/Stepper/components/Step/Step.cjs +10 -17
- package/dist/Stepper/components/Step/Step.context.d.ts +3 -3
- package/dist/Stepper/components/Step/Step.d.ts +7 -5
- package/dist/Stepper/components/Step/Step.js +10 -17
- package/dist/Stepper/components/Step/Step.types.cjs +2 -2
- package/dist/Stepper/components/Step/Step.types.d.ts +6 -8
- package/dist/Stepper/components/Step/Step.types.js +2 -2
- package/dist/Stepper/components/Step/components/Compose/Compose.cjs +36 -4
- package/dist/Stepper/components/Step/components/Compose/Compose.d.ts +1 -1
- package/dist/Stepper/components/Step/components/Compose/Compose.js +37 -5
- package/dist/Stepper/components/Step/components/Compose/Compose.style.cjs +8 -4
- package/dist/Stepper/components/Step/components/Compose/Compose.style.d.ts +1 -1
- package/dist/Stepper/components/Step/components/Compose/Compose.style.js +10 -6
- package/dist/Stepper/components/Step/components/Compose/Compose.types.d.ts +2 -5
- package/dist/Stepper/components/Step/components/Icon/Icon.cjs +11 -6
- package/dist/Stepper/components/Step/components/Icon/Icon.d.ts +1 -1
- package/dist/Stepper/components/Step/components/Icon/Icon.js +12 -7
- package/dist/Stepper/components/Step/components/Icon/Icon.style.cjs +1 -1
- package/dist/Stepper/components/Step/components/Icon/Icon.style.js +2 -2
- package/dist/Stepper/components/Step/components/Label/Label.cjs +11 -13
- package/dist/Stepper/components/Step/components/Label/Label.d.ts +1 -1
- package/dist/Stepper/components/Step/components/Label/Label.js +12 -14
- package/dist/Stepper/components/Step/components/Label/Label.style.cjs +8 -8
- package/dist/Stepper/components/Step/components/Label/Label.style.d.ts +1 -1
- package/dist/Stepper/components/Step/components/Label/Label.style.js +9 -9
- package/dist/Stepper/components/Step/components/Label/Label.types.d.ts +3 -2
- package/dist/Stepper/hooks/useStepIndexing.cjs +38 -0
- package/dist/Stepper/hooks/useStepIndexing.d.ts +10 -0
- package/dist/Stepper/hooks/useStepIndexing.js +38 -0
- package/dist/Stepper/hooks/useStepRegistration.cjs +25 -0
- package/dist/Stepper/hooks/useStepRegistration.d.ts +5 -0
- package/dist/Stepper/hooks/useStepRegistration.js +25 -0
- package/dist/Stepper/hooks/useStepperInteractive.cjs +96 -0
- package/dist/Stepper/hooks/useStepperInteractive.d.ts +30 -0
- package/dist/Stepper/hooks/useStepperInteractive.js +96 -0
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/TableHeading/TableHeading.d.ts +1 -1
- package/dist/TableHeading/TableHeading.style.d.ts +1 -1
- package/dist/Tabs/Tabs.d.ts +3 -3
- package/dist/Tabs/components/ContentPane/ContentPane.d.ts +1 -1
- package/dist/Tabs/components/TabBar/TabBar.d.ts +2 -2
- package/dist/Tabs/components/TabBar/components/Trigger/Trigger.d.ts +1 -1
- package/dist/Toast/Toast.d.ts +4 -4
- package/dist/Toast/components/Actions/Actions.d.ts +1 -1
- package/dist/Toast/components/Actions/Actions.types.d.ts +1 -1
- package/dist/Toast/components/Actions/components/Action/Action.cjs +1 -1
- package/dist/Toast/components/Actions/components/Action/Action.js +1 -1
- package/dist/Toast/components/Actions/components/Compose/Compose.d.ts +1 -1
- package/dist/Toast/components/Compose/Compose.cjs +2 -2
- package/dist/Toast/components/Compose/Compose.d.ts +1 -1
- package/dist/Toast/components/Compose/Compose.js +2 -2
- package/dist/Toast/components/Compose/Compose.style.d.ts +1 -1
- package/dist/Toast/components/Content/Content.d.ts +1 -1
- package/dist/Toast/components/Content/Content.types.d.ts +1 -1
- package/dist/Toast/components/Content/components/Compose/Compose.cjs +15 -3
- package/dist/Toast/components/Content/components/Compose/Compose.d.ts +1 -1
- package/dist/Toast/components/Content/components/Compose/Compose.js +15 -3
- package/dist/Toast/components/Content/components/Description/Description.cjs +1 -1
- package/dist/Toast/components/Content/components/Description/Description.js +1 -1
- package/dist/Toast/components/Content/components/Message/Message.cjs +1 -1
- package/dist/Toast/components/Content/components/Message/Message.js +1 -1
- package/dist/Toast/components/Icon/Icon.cjs +1 -0
- package/dist/Toast/components/Icon/Icon.js +1 -0
- package/dist/Toast/core/content.helper.cjs +1 -1
- package/dist/Toast/core/content.helper.js +2 -2
- package/dist/Toast/core/context.cjs +4 -5
- package/dist/Toast/core/context.d.ts +1 -2
- package/dist/Toast/core/context.js +4 -5
- package/dist/Toast/core/core.cjs +2 -0
- package/dist/Toast/core/core.d.ts +9 -8
- package/dist/Toast/core/core.js +3 -1
- package/dist/Toast/core/mapping.helpers.cjs +24 -16
- package/dist/Toast/core/mapping.helpers.d.ts +8 -6
- package/dist/Toast/core/mapping.helpers.js +25 -17
- package/dist/Toast/core/mapping.types.d.ts +9 -8
- package/dist/Tooltip/Tooltip.types.d.ts +1 -1
- package/dist/Typography/components/Heading/Heading.types.d.ts +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -2
- package/package.json +3 -3
- package/dist/Section/components/Header/components/ActionButton/ActionButton.cjs +0 -23
- package/dist/Section/components/Header/components/ActionButton/ActionButton.js +0 -23
- package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.cjs +0 -19
- package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.d.ts +0 -2
- package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.js +0 -19
- package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.style.cjs +0 -11
- package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.style.d.ts +0 -1
- package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.style.js +0 -9
- package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.types.d.ts +0 -2
- package/dist/Stepper/Stepper.style.d.ts +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { StepperStepProps } from './Step.types';
|
|
2
|
+
import { useStepContext } from './Step.context';
|
|
3
|
+
declare const Step: (({ children, ...restProps }: StepperStepProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
4
|
+
Compose: ({ onClick, onKeyDown, ...restProps }: import("./components/Compose/Compose.types").ComposeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
Icon: ({ children, ...restProps }: import("./components/Icon/Icon.types").IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
Label: ({ children, ...restProps }: import("../../..").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
useStepContext: typeof useStepContext;
|
|
6
8
|
};
|
|
7
9
|
export default Step;
|
|
@@ -2,27 +2,20 @@ import { j as jsxRuntimeExports } from "../../../node_modules/react/jsx-runtime.
|
|
|
2
2
|
import Compose from "./components/Compose/Compose.js";
|
|
3
3
|
import Icon from "./components/Icon/Icon.js";
|
|
4
4
|
import Label from "./components/Label/Label.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useStepContext } from "./Step.context.js";
|
|
6
6
|
const Step = Object.assign(({
|
|
7
7
|
children,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"data-state": state,
|
|
16
|
-
children: [jsxRuntimeExports.jsx(Step.Icon, {
|
|
17
|
-
children: index
|
|
18
|
-
}), jsxRuntimeExports.jsx(Step.Label, {
|
|
19
|
-
children
|
|
20
|
-
})]
|
|
21
|
-
});
|
|
22
|
-
}, {
|
|
8
|
+
...restProps
|
|
9
|
+
}) => jsxRuntimeExports.jsxs(Step.Compose, {
|
|
10
|
+
...restProps,
|
|
11
|
+
children: [jsxRuntimeExports.jsx(Step.Icon, {}), jsxRuntimeExports.jsx(Step.Label, {
|
|
12
|
+
children
|
|
13
|
+
})]
|
|
14
|
+
}), {
|
|
23
15
|
Compose,
|
|
24
16
|
Icon,
|
|
25
|
-
Label
|
|
17
|
+
Label,
|
|
18
|
+
useStepContext
|
|
26
19
|
});
|
|
27
20
|
export {
|
|
28
21
|
Step as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const StepperStepState = {
|
|
4
4
|
IDLE: "idle",
|
|
5
5
|
FOCUSED: "focused",
|
|
6
6
|
COMPLETED: "completed"
|
|
7
7
|
};
|
|
8
|
-
exports.
|
|
8
|
+
exports.StepperStepState = StepperStepState;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
index?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const StepState: {
|
|
2
|
+
export type StepperStepProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
export declare const StepperStepState: {
|
|
7
4
|
readonly IDLE: "idle";
|
|
8
5
|
readonly FOCUSED: "focused";
|
|
9
6
|
readonly COMPLETED: "completed";
|
|
10
7
|
};
|
|
11
|
-
export type
|
|
12
|
-
export interface
|
|
13
|
-
state:
|
|
8
|
+
export type StepperStepStateType = (typeof StepperStepState)[keyof typeof StepperStepState];
|
|
9
|
+
export interface StepperStepContextType {
|
|
10
|
+
state: StepperStepStateType;
|
|
11
|
+
index: number;
|
|
14
12
|
}
|
|
@@ -2,19 +2,51 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const jsxRuntime = require("../../../../../node_modules/react/jsx-runtime.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const Compose_style = require("./Compose.style.cjs");
|
|
6
5
|
const Step_context = require("../../Step.context.cjs");
|
|
7
6
|
const Step_types = require("../../Step.types.cjs");
|
|
7
|
+
const useStepRegistration = require("../../../../hooks/useStepRegistration.cjs");
|
|
8
|
+
const Stepper_context = require("../../../../Stepper.context.cjs");
|
|
9
|
+
const Compose_style = require("./Compose.style.cjs");
|
|
10
|
+
const useStepperInteractive = require("../../../../hooks/useStepperInteractive.cjs");
|
|
8
11
|
const Compose = ({
|
|
9
|
-
|
|
12
|
+
onClick,
|
|
13
|
+
onKeyDown,
|
|
10
14
|
...restProps
|
|
11
15
|
}) => {
|
|
16
|
+
const {
|
|
17
|
+
currentStep,
|
|
18
|
+
onStepChange,
|
|
19
|
+
getIsStepInteractive
|
|
20
|
+
} = Stepper_context.useStepperContext();
|
|
21
|
+
const {
|
|
22
|
+
stepIndex
|
|
23
|
+
} = useStepRegistration.useStepRegistration();
|
|
24
|
+
let state = Step_types.StepperStepState.IDLE;
|
|
25
|
+
if (stepIndex >= 0) {
|
|
26
|
+
if (stepIndex < currentStep) {
|
|
27
|
+
state = Step_types.StepperStepState.COMPLETED;
|
|
28
|
+
} else if (stepIndex === currentStep) {
|
|
29
|
+
state = Step_types.StepperStepState.FOCUSED;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
12
32
|
const contextValue = React.useMemo(() => ({
|
|
33
|
+
state,
|
|
34
|
+
index: stepIndex
|
|
35
|
+
}), [state, stepIndex]);
|
|
36
|
+
if (stepIndex < 0) return null;
|
|
37
|
+
const interactiveProps = useStepperInteractive.getInteractiveStepProps({
|
|
38
|
+
onStepChange,
|
|
39
|
+
getIsStepInteractive,
|
|
40
|
+
stepIndex,
|
|
41
|
+
onClick,
|
|
42
|
+
onKeyDown,
|
|
13
43
|
state
|
|
14
|
-
})
|
|
44
|
+
});
|
|
15
45
|
return jsxRuntime.jsxRuntimeExports.jsx(Step_context.StepContext.Provider, {
|
|
16
46
|
value: contextValue,
|
|
17
|
-
children: jsxRuntime.jsxRuntimeExports.jsx(Compose_style.
|
|
47
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(Compose_style.StepCompose, {
|
|
48
|
+
"data-state": state,
|
|
49
|
+
...interactiveProps,
|
|
18
50
|
...restProps
|
|
19
51
|
})
|
|
20
52
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ComposeProps } from './Compose.types';
|
|
2
|
-
declare const Compose: ({
|
|
2
|
+
declare const Compose: ({ onClick, onKeyDown, ...restProps }: ComposeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default Compose;
|
|
@@ -1,18 +1,50 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { Container } from "./Compose.style.js";
|
|
4
3
|
import { StepContext } from "../../Step.context.js";
|
|
5
|
-
import {
|
|
4
|
+
import { StepperStepState } from "../../Step.types.js";
|
|
5
|
+
import { useStepRegistration } from "../../../../hooks/useStepRegistration.js";
|
|
6
|
+
import { useStepperContext } from "../../../../Stepper.context.js";
|
|
7
|
+
import { StepCompose } from "./Compose.style.js";
|
|
8
|
+
import { getInteractiveStepProps } from "../../../../hooks/useStepperInteractive.js";
|
|
6
9
|
const Compose = ({
|
|
7
|
-
|
|
10
|
+
onClick,
|
|
11
|
+
onKeyDown,
|
|
8
12
|
...restProps
|
|
9
13
|
}) => {
|
|
14
|
+
const {
|
|
15
|
+
currentStep,
|
|
16
|
+
onStepChange,
|
|
17
|
+
getIsStepInteractive
|
|
18
|
+
} = useStepperContext();
|
|
19
|
+
const {
|
|
20
|
+
stepIndex
|
|
21
|
+
} = useStepRegistration();
|
|
22
|
+
let state = StepperStepState.IDLE;
|
|
23
|
+
if (stepIndex >= 0) {
|
|
24
|
+
if (stepIndex < currentStep) {
|
|
25
|
+
state = StepperStepState.COMPLETED;
|
|
26
|
+
} else if (stepIndex === currentStep) {
|
|
27
|
+
state = StepperStepState.FOCUSED;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
10
30
|
const contextValue = useMemo(() => ({
|
|
31
|
+
state,
|
|
32
|
+
index: stepIndex
|
|
33
|
+
}), [state, stepIndex]);
|
|
34
|
+
if (stepIndex < 0) return null;
|
|
35
|
+
const interactiveProps = getInteractiveStepProps({
|
|
36
|
+
onStepChange,
|
|
37
|
+
getIsStepInteractive,
|
|
38
|
+
stepIndex,
|
|
39
|
+
onClick,
|
|
40
|
+
onKeyDown,
|
|
11
41
|
state
|
|
12
|
-
})
|
|
42
|
+
});
|
|
13
43
|
return jsxRuntimeExports.jsx(StepContext.Provider, {
|
|
14
44
|
value: contextValue,
|
|
15
|
-
children: jsxRuntimeExports.jsx(
|
|
45
|
+
children: jsxRuntimeExports.jsx(StepCompose, {
|
|
46
|
+
"data-state": state,
|
|
47
|
+
...interactiveProps,
|
|
16
48
|
...restProps
|
|
17
49
|
})
|
|
18
50
|
});
|
|
@@ -4,8 +4,12 @@ const _styled = require("styled-components");
|
|
|
4
4
|
const redisUiStyles = require("@redislabsdev/redis-ui-styles");
|
|
5
5
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
6
6
|
const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
7
|
-
const
|
|
8
|
-
displayName: "
|
|
7
|
+
const StepCompose = _styled__default.default.div.withConfig({
|
|
8
|
+
displayName: "Composestyle__StepCompose",
|
|
9
9
|
componentId: "RedisUI__sc-1t34ip6-0"
|
|
10
|
-
})(["display:flex;align-items:center;justify-content:left;gap:", ";flex-shrink:0;"], () => redisUiStyles.useTheme().components.stepper.step.gap)
|
|
11
|
-
|
|
10
|
+
})(["display:flex;align-items:center;justify-content:left;gap:", ";flex-shrink:0;", " ", ""], () => redisUiStyles.useTheme().components.stepper.step.gap, redisUiStyles.getFocusStyle(), ({
|
|
11
|
+
tabIndex
|
|
12
|
+
}) => tabIndex === 0 && _styled.css`
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
`);
|
|
15
|
+
exports.StepCompose = StepCompose;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const StepCompose: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import _styled from "styled-components";
|
|
2
|
-
import { useTheme } from "@redislabsdev/redis-ui-styles";
|
|
3
|
-
const
|
|
4
|
-
displayName: "
|
|
1
|
+
import _styled, { css } from "styled-components";
|
|
2
|
+
import { useTheme, getFocusStyle } from "@redislabsdev/redis-ui-styles";
|
|
3
|
+
const StepCompose = _styled.div.withConfig({
|
|
4
|
+
displayName: "Composestyle__StepCompose",
|
|
5
5
|
componentId: "RedisUI__sc-1t34ip6-0"
|
|
6
|
-
})(["display:flex;align-items:center;justify-content:left;gap:", ";flex-shrink:0;"], () => useTheme().components.stepper.step.gap)
|
|
6
|
+
})(["display:flex;align-items:center;justify-content:left;gap:", ";flex-shrink:0;", " ", ""], () => useTheme().components.stepper.step.gap, getFocusStyle(), ({
|
|
7
|
+
tabIndex
|
|
8
|
+
}) => tabIndex === 0 && css`
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
`);
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
StepCompose
|
|
9
13
|
};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface ComposeProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
state?: StepStateType;
|
|
5
|
-
}
|
|
1
|
+
import { ComposeElementProps } from '../../../../../Helpers';
|
|
2
|
+
export type ComposeProps = ComposeElementProps;
|
|
@@ -7,15 +7,20 @@ const Icon_style = require("./Icon.style.cjs");
|
|
|
7
7
|
const Typography = require("../../../../../Typography/Typography.cjs");
|
|
8
8
|
const Icon = ({
|
|
9
9
|
children,
|
|
10
|
-
|
|
10
|
+
...restProps
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
12
|
+
const {
|
|
13
|
+
index,
|
|
14
|
+
state
|
|
15
|
+
} = Step_context.useStepContext();
|
|
13
16
|
return jsxRuntime.jsxRuntimeExports.jsx(Icon_style.Container, {
|
|
14
|
-
|
|
15
|
-
"data-state":
|
|
16
|
-
|
|
17
|
+
...restProps,
|
|
18
|
+
"data-state": state,
|
|
19
|
+
"aria-hidden": true,
|
|
20
|
+
children: state === Step_types.StepperStepState.COMPLETED ? jsxRuntime.jsxRuntimeExports.jsx(Icon_style.IconCheck, {}) : jsxRuntime.jsxRuntimeExports.jsx(Typography.default.Body, {
|
|
17
21
|
size: "S",
|
|
18
|
-
|
|
22
|
+
component: "div",
|
|
23
|
+
children: children || index + 1
|
|
19
24
|
})
|
|
20
25
|
});
|
|
21
26
|
};
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { useStepContext } from "../../Step.context.js";
|
|
3
|
-
import {
|
|
3
|
+
import { StepperStepState } from "../../Step.types.js";
|
|
4
4
|
import { Container, IconCheck } from "./Icon.style.js";
|
|
5
5
|
import Typography from "../../../../../Typography/Typography.js";
|
|
6
6
|
const Icon = ({
|
|
7
7
|
children,
|
|
8
|
-
|
|
8
|
+
...restProps
|
|
9
9
|
}) => {
|
|
10
|
-
const
|
|
10
|
+
const {
|
|
11
|
+
index,
|
|
12
|
+
state
|
|
13
|
+
} = useStepContext();
|
|
11
14
|
return jsxRuntimeExports.jsx(Container, {
|
|
12
|
-
|
|
13
|
-
"data-state":
|
|
14
|
-
|
|
15
|
+
...restProps,
|
|
16
|
+
"data-state": state,
|
|
17
|
+
"aria-hidden": true,
|
|
18
|
+
children: state === StepperStepState.COMPLETED ? jsxRuntimeExports.jsx(IconCheck, {}) : jsxRuntimeExports.jsx(Typography.Body, {
|
|
15
19
|
size: "S",
|
|
16
|
-
|
|
20
|
+
component: "div",
|
|
21
|
+
children: children || index + 1
|
|
17
22
|
})
|
|
18
23
|
});
|
|
19
24
|
};
|
|
@@ -13,7 +13,7 @@ const Container = _styled__default.default.div.withConfig({
|
|
|
13
13
|
const {
|
|
14
14
|
states
|
|
15
15
|
} = redisUiStyles.useTheme().components.stepper.step;
|
|
16
|
-
return Object.values(Step_types.
|
|
16
|
+
return Object.values(Step_types.StepperStepState).map((state) => {
|
|
17
17
|
const theme = states[state].indicator;
|
|
18
18
|
return _styled.css`
|
|
19
19
|
&[data-state='${state}'] {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _styled, { css } from "styled-components";
|
|
2
2
|
import { useTheme } from "@redislabsdev/redis-ui-styles";
|
|
3
3
|
import { CheckBoldIcon } from "@redislabsdev/redis-ui-icons";
|
|
4
|
-
import {
|
|
4
|
+
import { StepperStepState } from "../../Step.types.js";
|
|
5
5
|
const Container = _styled.div.withConfig({
|
|
6
6
|
displayName: "Iconstyle__Container",
|
|
7
7
|
componentId: "RedisUI__sc-1ojkwgp-0"
|
|
@@ -9,7 +9,7 @@ const Container = _styled.div.withConfig({
|
|
|
9
9
|
const {
|
|
10
10
|
states
|
|
11
11
|
} = useTheme().components.stepper.step;
|
|
12
|
-
return Object.values(
|
|
12
|
+
return Object.values(StepperStepState).map((state) => {
|
|
13
13
|
const theme = states[state].indicator;
|
|
14
14
|
return css`
|
|
15
15
|
&[data-state='${state}'] {
|
|
@@ -3,21 +3,19 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const jsxRuntime = require("../../../../../node_modules/react/jsx-runtime.cjs");
|
|
4
4
|
const Step_context = require("../../Step.context.cjs");
|
|
5
5
|
const Label_style = require("./Label.style.cjs");
|
|
6
|
-
const Step_types = require("../../Step.types.cjs");
|
|
7
|
-
const Typography = require("../../../../../Typography/Typography.cjs");
|
|
8
6
|
const Label = ({
|
|
9
7
|
children,
|
|
10
|
-
|
|
8
|
+
...restProps
|
|
11
9
|
}) => {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
10
|
+
const {
|
|
11
|
+
state
|
|
12
|
+
} = Step_context.useStepContext();
|
|
13
|
+
return children ? jsxRuntime.jsxRuntimeExports.jsx(Label_style.StepLabel, {
|
|
14
|
+
size: "M",
|
|
15
|
+
component: "div",
|
|
16
|
+
...restProps,
|
|
17
|
+
"data-state": state,
|
|
18
|
+
children
|
|
19
|
+
}) : null;
|
|
22
20
|
};
|
|
23
21
|
exports.default = Label;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LabelProps } from './Label.types';
|
|
2
|
-
declare const Label: ({ children,
|
|
2
|
+
declare const Label: ({ children, ...restProps }: LabelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default Label;
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { useStepContext } from "../../Step.context.js";
|
|
3
|
-
import {
|
|
4
|
-
import { StepState } from "../../Step.types.js";
|
|
5
|
-
import Typography from "../../../../../Typography/Typography.js";
|
|
3
|
+
import { StepLabel } from "./Label.style.js";
|
|
6
4
|
const Label = ({
|
|
7
5
|
children,
|
|
8
|
-
|
|
6
|
+
...restProps
|
|
9
7
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
8
|
+
const {
|
|
9
|
+
state
|
|
10
|
+
} = useStepContext();
|
|
11
|
+
return children ? jsxRuntimeExports.jsx(StepLabel, {
|
|
12
|
+
size: "M",
|
|
13
|
+
component: "div",
|
|
14
|
+
...restProps,
|
|
15
|
+
"data-state": state,
|
|
16
|
+
children
|
|
17
|
+
}) : null;
|
|
20
18
|
};
|
|
21
19
|
export {
|
|
22
20
|
Label as default
|
|
@@ -3,25 +3,25 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const _styled = require("styled-components");
|
|
4
4
|
const redisUiStyles = require("@redislabsdev/redis-ui-styles");
|
|
5
5
|
const Step_types = require("../../Step.types.cjs");
|
|
6
|
+
const Typography = require("../../../../../Typography/Typography.cjs");
|
|
6
7
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
7
8
|
const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
8
|
-
const
|
|
9
|
-
displayName: "
|
|
9
|
+
const StepLabel = _styled__default.default(Typography.default.Body).withConfig({
|
|
10
|
+
displayName: "Labelstyle__StepLabel",
|
|
10
11
|
componentId: "RedisUI__sc-dclu3d-0"
|
|
11
|
-
})(["display:flex;align-items:center;
|
|
12
|
+
})(["display:flex;align-items:center;", ""], () => {
|
|
12
13
|
const {
|
|
13
14
|
states
|
|
14
15
|
} = redisUiStyles.useTheme().components.stepper.step;
|
|
15
|
-
return Object.values(Step_types.
|
|
16
|
+
return Object.values(Step_types.StepperStepState).map((state) => {
|
|
16
17
|
const theme = states[state].label;
|
|
17
18
|
return _styled.css`
|
|
18
19
|
&[data-state='${state}'] {
|
|
19
20
|
color: ${theme.textColor};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
21
|
+
letter-spacing: ${theme.letterSpacing};
|
|
22
|
+
font-weight: ${theme.fontWeight};
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
exports.
|
|
27
|
+
exports.StepLabel = StepLabel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const StepLabel: import("styled-components").StyledComponent<({ size, variant, color, component, ellipsis, ...restProps }: import("../../../../../Typography").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import _styled, { css } from "styled-components";
|
|
2
2
|
import { useTheme } from "@redislabsdev/redis-ui-styles";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { StepperStepState } from "../../Step.types.js";
|
|
4
|
+
import Typography from "../../../../../Typography/Typography.js";
|
|
5
|
+
const StepLabel = _styled(Typography.Body).withConfig({
|
|
6
|
+
displayName: "Labelstyle__StepLabel",
|
|
6
7
|
componentId: "RedisUI__sc-dclu3d-0"
|
|
7
|
-
})(["display:flex;align-items:center;
|
|
8
|
+
})(["display:flex;align-items:center;", ""], () => {
|
|
8
9
|
const {
|
|
9
10
|
states
|
|
10
11
|
} = useTheme().components.stepper.step;
|
|
11
|
-
return Object.values(
|
|
12
|
+
return Object.values(StepperStepState).map((state) => {
|
|
12
13
|
const theme = states[state].label;
|
|
13
14
|
return css`
|
|
14
15
|
&[data-state='${state}'] {
|
|
15
16
|
color: ${theme.textColor};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
17
|
+
letter-spacing: ${theme.letterSpacing};
|
|
18
|
+
font-weight: ${theme.fontWeight};
|
|
19
19
|
}
|
|
20
20
|
`;
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
StepLabel
|
|
25
25
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Typography } from '../../../../../Typography';
|
|
3
|
+
export type LabelProps = ComponentProps<typeof Typography.Body>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const useStepIndexing = () => {
|
|
5
|
+
const [stepOrder, setStepOrder] = React.useState([]);
|
|
6
|
+
const pendingStepsRef = React.useRef(/* @__PURE__ */ new Set());
|
|
7
|
+
const renderOrderRef = React.useRef([]);
|
|
8
|
+
const registerStep = React.useCallback((stepId) => {
|
|
9
|
+
pendingStepsRef.current.add(stepId);
|
|
10
|
+
}, []);
|
|
11
|
+
const unregisterStep = React.useCallback((stepId) => {
|
|
12
|
+
pendingStepsRef.current.delete(stepId);
|
|
13
|
+
setStepOrder((prev) => prev.filter((id) => id !== stepId));
|
|
14
|
+
}, []);
|
|
15
|
+
const getStepIndex = React.useCallback((stepId) => {
|
|
16
|
+
return stepOrder.indexOf(stepId);
|
|
17
|
+
}, [stepOrder]);
|
|
18
|
+
const collectStepOrder = React.useCallback((stepId) => {
|
|
19
|
+
if (!renderOrderRef.current.includes(stepId)) {
|
|
20
|
+
renderOrderRef.current.push(stepId);
|
|
21
|
+
}
|
|
22
|
+
}, []);
|
|
23
|
+
renderOrderRef.current = [];
|
|
24
|
+
React.useLayoutEffect(() => {
|
|
25
|
+
const newOrder = renderOrderRef.current.filter((id) => pendingStepsRef.current.has(id));
|
|
26
|
+
if (JSON.stringify(newOrder) !== JSON.stringify(stepOrder)) {
|
|
27
|
+
setStepOrder(newOrder);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
registerStep,
|
|
32
|
+
unregisterStep,
|
|
33
|
+
getStepIndex,
|
|
34
|
+
collectStepOrder,
|
|
35
|
+
totalSteps: stepOrder == null ? void 0 : stepOrder.length
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
exports.useStepIndexing = useStepIndexing;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concurrency safe Step indexing manager
|
|
3
|
+
*/
|
|
4
|
+
export declare const useStepIndexing: () => {
|
|
5
|
+
registerStep: (stepId: string) => void;
|
|
6
|
+
unregisterStep: (stepId: string) => void;
|
|
7
|
+
getStepIndex: (stepId: string) => number;
|
|
8
|
+
collectStepOrder: (stepId: string) => void;
|
|
9
|
+
totalSteps: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useState, useRef, useCallback, useLayoutEffect } from "react";
|
|
2
|
+
const useStepIndexing = () => {
|
|
3
|
+
const [stepOrder, setStepOrder] = useState([]);
|
|
4
|
+
const pendingStepsRef = useRef(/* @__PURE__ */ new Set());
|
|
5
|
+
const renderOrderRef = useRef([]);
|
|
6
|
+
const registerStep = useCallback((stepId) => {
|
|
7
|
+
pendingStepsRef.current.add(stepId);
|
|
8
|
+
}, []);
|
|
9
|
+
const unregisterStep = useCallback((stepId) => {
|
|
10
|
+
pendingStepsRef.current.delete(stepId);
|
|
11
|
+
setStepOrder((prev) => prev.filter((id) => id !== stepId));
|
|
12
|
+
}, []);
|
|
13
|
+
const getStepIndex = useCallback((stepId) => {
|
|
14
|
+
return stepOrder.indexOf(stepId);
|
|
15
|
+
}, [stepOrder]);
|
|
16
|
+
const collectStepOrder = useCallback((stepId) => {
|
|
17
|
+
if (!renderOrderRef.current.includes(stepId)) {
|
|
18
|
+
renderOrderRef.current.push(stepId);
|
|
19
|
+
}
|
|
20
|
+
}, []);
|
|
21
|
+
renderOrderRef.current = [];
|
|
22
|
+
useLayoutEffect(() => {
|
|
23
|
+
const newOrder = renderOrderRef.current.filter((id) => pendingStepsRef.current.has(id));
|
|
24
|
+
if (JSON.stringify(newOrder) !== JSON.stringify(stepOrder)) {
|
|
25
|
+
setStepOrder(newOrder);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return {
|
|
29
|
+
registerStep,
|
|
30
|
+
unregisterStep,
|
|
31
|
+
getStepIndex,
|
|
32
|
+
collectStepOrder,
|
|
33
|
+
totalSteps: stepOrder == null ? void 0 : stepOrder.length
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
useStepIndexing
|
|
38
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const index = require("../../node_modules/@radix-ui/react-id/dist/index.cjs");
|
|
5
|
+
const Stepper_context = require("../Stepper.context.cjs");
|
|
6
|
+
const useStepRegistration = () => {
|
|
7
|
+
const {
|
|
8
|
+
registerStep,
|
|
9
|
+
unregisterStep,
|
|
10
|
+
getStepIndex,
|
|
11
|
+
collectStepOrder
|
|
12
|
+
} = Stepper_context.useStepperContext();
|
|
13
|
+
const stepId = index.useId();
|
|
14
|
+
React.useLayoutEffect(() => {
|
|
15
|
+
registerStep(stepId);
|
|
16
|
+
return () => unregisterStep(stepId);
|
|
17
|
+
}, [stepId, registerStep, unregisterStep]);
|
|
18
|
+
collectStepOrder(stepId);
|
|
19
|
+
const stepIndex = getStepIndex(stepId);
|
|
20
|
+
return {
|
|
21
|
+
stepId,
|
|
22
|
+
stepIndex
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
exports.useStepRegistration = useStepRegistration;
|