@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 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const SectionHeaderLabelText: import("styled-components").StyledComponent<({ size, ellipsis, color, variant, component, ...restProps }: import("../../../../../Typography").TypographyHeadingProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
2
|
+
export declare const SectionHeaderLabel: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import _styled from "styled-components";
|
|
2
2
|
import { useTheme } from "@redislabsdev/redis-ui-styles";
|
|
3
|
+
import { useSectionContext } from "../../../../Section.context.js";
|
|
3
4
|
import Typography from "../../../../../Typography/Typography.js";
|
|
4
|
-
const
|
|
5
|
-
displayName: "
|
|
5
|
+
const SectionHeaderLabelText = _styled(Typography.Heading).withConfig({
|
|
6
|
+
displayName: "Labelstyle__SectionHeaderLabelText",
|
|
6
7
|
componentId: "RedisUI__sc-14ws5ga-0"
|
|
7
|
-
})(["color:", ";"], (
|
|
8
|
+
})(["color:", ";cursor:", ";"], ({
|
|
9
|
+
color
|
|
10
|
+
}) => {
|
|
11
|
+
const {
|
|
12
|
+
textColor
|
|
13
|
+
} = useTheme().components.section.header.label;
|
|
14
|
+
return color ? void 0 : textColor;
|
|
15
|
+
}, () => useSectionContext().triggerId ? "pointer" : void 0);
|
|
16
|
+
const SectionHeaderLabel = _styled.label.withConfig({
|
|
17
|
+
displayName: "Labelstyle__SectionHeaderLabel",
|
|
18
|
+
componentId: "RedisUI__sc-14ws5ga-1"
|
|
19
|
+
})(["all:unset;"]);
|
|
8
20
|
export {
|
|
9
|
-
|
|
21
|
+
SectionHeaderLabel,
|
|
22
|
+
SectionHeaderLabelText
|
|
10
23
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface SectionHeaderLabelProps extends Omit<
|
|
1
|
+
import { TypographyHeadingProps } from '../../../../../Typography';
|
|
2
|
+
export interface SectionHeaderLabelProps extends Omit<TypographyHeadingProps, 'children' | 'id'> {
|
|
3
3
|
label: string;
|
|
4
4
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("../../../node_modules/react/jsx-runtime.cjs");
|
|
4
|
+
const SummaryBar_style = require("./SummaryBar.style.cjs");
|
|
5
|
+
const SummaryBar = ({
|
|
6
|
+
children,
|
|
7
|
+
alwaysVisible,
|
|
8
|
+
...restProps
|
|
9
|
+
}) => children ? jsxRuntime.jsxRuntimeExports.jsx(SummaryBar_style.SummaryBar, {
|
|
10
|
+
...restProps,
|
|
11
|
+
"$alwaysVisible": alwaysVisible,
|
|
12
|
+
children
|
|
13
|
+
}) : null;
|
|
14
|
+
exports.SummaryBar = SummaryBar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { SummaryBar as SummaryBar$1 } from "./SummaryBar.style.js";
|
|
3
|
+
const SummaryBar = ({
|
|
4
|
+
children,
|
|
5
|
+
alwaysVisible,
|
|
6
|
+
...restProps
|
|
7
|
+
}) => children ? jsxRuntimeExports.jsx(SummaryBar$1, {
|
|
8
|
+
...restProps,
|
|
9
|
+
"$alwaysVisible": alwaysVisible,
|
|
10
|
+
children
|
|
11
|
+
}) : null;
|
|
12
|
+
export {
|
|
13
|
+
SummaryBar
|
|
14
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const _styled = require("styled-components");
|
|
4
|
+
const redisUiStyles = require("@redislabsdev/redis-ui-styles");
|
|
5
|
+
const Section_context = require("../../Section.context.cjs");
|
|
6
|
+
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
7
|
+
const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
8
|
+
const SummaryBar = _styled__default.default.div.withConfig({
|
|
9
|
+
displayName: "SummaryBarstyle__SummaryBar",
|
|
10
|
+
componentId: "RedisUI__sc-1ft55tj-0"
|
|
11
|
+
})(["background-color:", ";min-height:", ";padding:", ";box-shadow:inset 0 ", " 0 0 ", ";", ""], () => {
|
|
12
|
+
const theme = redisUiStyles.useTheme().components.section.header.summaryBar;
|
|
13
|
+
const {
|
|
14
|
+
collapsible
|
|
15
|
+
} = Section_context.useSectionContext();
|
|
16
|
+
return collapsible ? theme.collapsableBackgroundColor : theme.backgroundColor;
|
|
17
|
+
}, () => redisUiStyles.useTheme().components.section.header.summaryBar.minHeight, () => redisUiStyles.useTheme().components.section.header.summaryBar.padding, () => redisUiStyles.useTheme().components.section.separator.width, () => redisUiStyles.useTheme().components.section.separator.color, ({
|
|
18
|
+
$alwaysVisible
|
|
19
|
+
}) => Section_context.useSectionContext().open && !$alwaysVisible && _styled.css`
|
|
20
|
+
display: none;
|
|
21
|
+
`);
|
|
22
|
+
exports.SummaryBar = SummaryBar;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _styled, { css } from "styled-components";
|
|
2
|
+
import { useTheme } from "@redislabsdev/redis-ui-styles";
|
|
3
|
+
import { useSectionContext } from "../../Section.context.js";
|
|
4
|
+
const SummaryBar = _styled.div.withConfig({
|
|
5
|
+
displayName: "SummaryBarstyle__SummaryBar",
|
|
6
|
+
componentId: "RedisUI__sc-1ft55tj-0"
|
|
7
|
+
})(["background-color:", ";min-height:", ";padding:", ";box-shadow:inset 0 ", " 0 0 ", ";", ""], () => {
|
|
8
|
+
const theme = useTheme().components.section.header.summaryBar;
|
|
9
|
+
const {
|
|
10
|
+
collapsible
|
|
11
|
+
} = useSectionContext();
|
|
12
|
+
return collapsible ? theme.collapsableBackgroundColor : theme.backgroundColor;
|
|
13
|
+
}, () => useTheme().components.section.header.summaryBar.minHeight, () => useTheme().components.section.header.summaryBar.padding, () => useTheme().components.section.separator.width, () => useTheme().components.section.separator.color, ({
|
|
14
|
+
$alwaysVisible
|
|
15
|
+
}) => useSectionContext().open && !$alwaysVisible && css`
|
|
16
|
+
display: none;
|
|
17
|
+
`);
|
|
18
|
+
export {
|
|
19
|
+
SummaryBar
|
|
20
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const SelectSearchInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../../../../../Inputs/components/Compose/TextCompose.types").TextInputComposeProps, "readOnly" | "parser" | "formatter"> & import("../../../../../Inputs/components/InputTag/InputTag.types").InputTagProps & import("../../../../../Inputs/components/LoadingIndicator/LoadingIndicator.types").LoadingIndicatorProps & import("../../../../../Inputs/components/ResetButton/ResetButton.types").ResetButtonProps & import("../../../../../Inputs").RestInputProps & import("react").RefAttributes<HTMLInputElement>> & {
|
|
3
|
-
Compose: ({ value, defaultValue, onChange, parser, formatter, ...restProps }: import("../../../../../Inputs/components/Compose/CommonCompose.types").CommonInputComposeProps & Omit<import("../../../../../Inputs/components/Context/InputValueProvider").InputValueProviderProps, "children"> & Omit<import("../../../../..").ComposeElementProps<
|
|
3
|
+
Compose: ({ value, defaultValue, onChange, parser, formatter, ...restProps }: import("../../../../../Inputs/components/Compose/CommonCompose.types").CommonInputComposeProps & Omit<import("../../../../../Inputs/components/Context/InputValueProvider").InputValueProviderProps, "children"> & Omit<import("../../../../..").ComposeElementProps<HTMLElement>, "defaultValue" | "onChange"> & {
|
|
4
4
|
readonlyRender?: import("../../../../../Inputs/components/ReadonlyRender/ReadonlyRender.types").ReadOnlyRenderComponent | undefined;
|
|
5
5
|
readonlyProps?: import("react").HTMLAttributes<HTMLElement> | undefined;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const _styled = require("styled-components");
|
|
4
|
+
const SideBar_utils = require("../../SideBar.utils.cjs");
|
|
4
5
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
5
6
|
const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
6
7
|
const SideBarFooter = _styled__default.default.div.withConfig({
|
|
7
8
|
displayName: "Footerstyle__SideBarFooter",
|
|
8
9
|
componentId: "RedisUI__sc-z12bz0-0"
|
|
9
|
-
})(["position:relative;display:flex;flex-direction:column;justify-content:flex-end;"])
|
|
10
|
+
})(["position:relative;display:flex;flex-direction:column;justify-content:flex-end;", ""], () => SideBar_utils.useStateStyle((theme) => _styled.css`
|
|
11
|
+
color: ${theme.footer.dividerColor};
|
|
12
|
+
`));
|
|
10
13
|
exports.SideBarFooter = SideBarFooter;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import _styled from "styled-components";
|
|
1
|
+
import _styled, { css } from "styled-components";
|
|
2
|
+
import { useStateStyle } from "../../SideBar.utils.js";
|
|
2
3
|
const SideBarFooter = _styled.div.withConfig({
|
|
3
4
|
displayName: "Footerstyle__SideBarFooter",
|
|
4
5
|
componentId: "RedisUI__sc-z12bz0-0"
|
|
5
|
-
})(["position:relative;display:flex;flex-direction:column;justify-content:flex-end;"])
|
|
6
|
+
})(["position:relative;display:flex;flex-direction:column;justify-content:flex-end;", ""], () => useStateStyle((theme) => css`
|
|
7
|
+
color: ${theme.footer.dividerColor};
|
|
8
|
+
`));
|
|
6
9
|
export {
|
|
7
10
|
SideBarFooter
|
|
8
11
|
};
|
|
@@ -2,10 +2,10 @@
|
|
|
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 redisUiIcons = require("@redislabsdev/redis-ui-icons");
|
|
5
|
-
const index = require("../../../node_modules/@radix-ui/react-visually-hidden/dist/index.cjs");
|
|
6
5
|
const React = require("react");
|
|
7
6
|
const SideBar_context = require("../../SideBar.context.cjs");
|
|
8
7
|
const Header_style = require("./Header.style.cjs");
|
|
8
|
+
const ScreenReaderAnnounce = require("../../../ScreenReaderAnnounce/ScreenReaderAnnounce.cjs");
|
|
9
9
|
const Header = ({
|
|
10
10
|
children,
|
|
11
11
|
onToggle,
|
|
@@ -38,11 +38,9 @@ const Header = ({
|
|
|
38
38
|
customColor: "currentColor",
|
|
39
39
|
"aria-hidden": true
|
|
40
40
|
})
|
|
41
|
-
}),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"aria-atomic": "true",
|
|
45
|
-
children: isExpanded ? "Sidebar expanded" : "Sidebar collapsed"
|
|
41
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(ScreenReaderAnnounce.ScreenReaderAnnounce, {
|
|
42
|
+
text: isExpanded ? "Sidebar expanded" : "Sidebar collapsed",
|
|
43
|
+
allowAnnounce: isToggledRef.current
|
|
46
44
|
})]
|
|
47
45
|
});
|
|
48
46
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../../node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { ChevronDownIcon } from "@redislabsdev/redis-ui-icons";
|
|
3
|
-
import { VisuallyHidden } from "../../../node_modules/@radix-ui/react-visually-hidden/dist/index.js";
|
|
4
3
|
import { useRef } from "react";
|
|
5
4
|
import { useSideBarContext } from "../../SideBar.context.js";
|
|
6
5
|
import { SideBarHeader, ChildrenContainer, Arrow } from "./Header.style.js";
|
|
6
|
+
import { ScreenReaderAnnounce } from "../../../ScreenReaderAnnounce/ScreenReaderAnnounce.js";
|
|
7
7
|
const Header = ({
|
|
8
8
|
children,
|
|
9
9
|
onToggle,
|
|
@@ -36,11 +36,9 @@ const Header = ({
|
|
|
36
36
|
customColor: "currentColor",
|
|
37
37
|
"aria-hidden": true
|
|
38
38
|
})
|
|
39
|
-
}),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"aria-atomic": "true",
|
|
43
|
-
children: isExpanded ? "Sidebar expanded" : "Sidebar collapsed"
|
|
39
|
+
}), jsxRuntimeExports.jsx(ScreenReaderAnnounce, {
|
|
40
|
+
text: isExpanded ? "Sidebar expanded" : "Sidebar collapsed",
|
|
41
|
+
allowAnnounce: isToggledRef.current
|
|
44
42
|
})]
|
|
45
43
|
});
|
|
46
44
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ComposeElementProps } from '
|
|
1
|
+
import { ComposeElementProps } from '../../../Helpers/common.types';
|
|
2
2
|
export type ScrollContainerProps = ComposeElementProps;
|
package/dist/Stepper/Stepper.cjs
CHANGED
|
@@ -1,40 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const jsxRuntime = require("../node_modules/react/jsx-runtime.cjs");
|
|
4
|
-
const React = require("react");
|
|
5
4
|
const Step = require("./components/Step/Step.cjs");
|
|
6
|
-
const
|
|
7
|
-
const Stepper_style = require("./Stepper.style.cjs");
|
|
8
|
-
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
9
|
-
const React__default = /* @__PURE__ */ _interopDefault(React);
|
|
5
|
+
const Compose = require("./components/Compose/Compose.cjs");
|
|
10
6
|
const Stepper = Object.assign(({
|
|
11
|
-
|
|
12
|
-
className,
|
|
13
|
-
currentStep = -1,
|
|
7
|
+
steps,
|
|
14
8
|
...restProps
|
|
15
9
|
}) => {
|
|
16
|
-
return jsxRuntime.jsxRuntimeExports.jsx(
|
|
17
|
-
className,
|
|
10
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Stepper.Compose, {
|
|
18
11
|
...restProps,
|
|
19
|
-
children:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
index: index + 1,
|
|
30
|
-
"data-state": state
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return child;
|
|
34
|
-
})
|
|
12
|
+
children: steps.map((step, idx) => (
|
|
13
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
14
|
+
jsxRuntime.jsxRuntimeExports.jsxs(Step.default.Compose, {
|
|
15
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Step.default.Icon, {
|
|
16
|
+
children: step.icon
|
|
17
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Step.default.Label, {
|
|
18
|
+
children: step.label
|
|
19
|
+
})]
|
|
20
|
+
}, idx)
|
|
21
|
+
))
|
|
35
22
|
});
|
|
36
23
|
}, {
|
|
37
|
-
Step: Step.default
|
|
24
|
+
Step: Step.default,
|
|
25
|
+
Compose: Compose.default
|
|
38
26
|
});
|
|
39
27
|
const Stepper$1 = Stepper;
|
|
40
28
|
exports.default = Stepper$1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const StepperContext = React.createContext(null);
|
|
5
|
+
const useStepperContext = () => {
|
|
6
|
+
const context = React.useContext(StepperContext);
|
|
7
|
+
if (!context) {
|
|
8
|
+
throw new Error("Step components must be used within a Stepper");
|
|
9
|
+
}
|
|
10
|
+
return context;
|
|
11
|
+
};
|
|
12
|
+
exports.StepperContext = StepperContext;
|
|
13
|
+
exports.useStepperContext = useStepperContext;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type StepperContextType = {
|
|
3
|
+
registerStep: (stepId: string) => void;
|
|
4
|
+
unregisterStep: (stepId: string) => void;
|
|
5
|
+
getStepIndex: (stepId: string) => number;
|
|
6
|
+
collectStepOrder: (stepId: string) => void;
|
|
7
|
+
currentStep: number;
|
|
8
|
+
onStepChange?: (stepIndex: number) => void;
|
|
9
|
+
getIsStepInteractive: (stepIndex: number) => boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const StepperContext: import("react").Context<StepperContextType | null>;
|
|
12
|
+
export declare const useStepperContext: () => StepperContextType;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
const StepperContext = createContext(null);
|
|
3
|
+
const useStepperContext = () => {
|
|
4
|
+
const context = useContext(StepperContext);
|
|
5
|
+
if (!context) {
|
|
6
|
+
throw new Error("Step components must be used within a Stepper");
|
|
7
|
+
}
|
|
8
|
+
return context;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
StepperContext,
|
|
12
|
+
useStepperContext
|
|
13
|
+
};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { StepperProps } from './Stepper.types';
|
|
2
|
-
declare const Stepper: (({
|
|
3
|
-
Step: (({ children,
|
|
4
|
-
Compose: ({
|
|
5
|
-
Icon: ({ children,
|
|
6
|
-
Label: ({ children,
|
|
2
|
+
declare const Stepper: (({ steps, ...restProps }: StepperProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
|
+
Step: (({ children, ...restProps }: import(".").StepperStepProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
4
|
+
Compose: ({ onClick, onKeyDown, ...restProps }: import("./components/Step/components/Compose/Compose.types").ComposeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
Icon: ({ children, ...restProps }: import("./components/Step/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 import("./components/Step/Step.context").useStepContext;
|
|
8
|
+
};
|
|
9
|
+
Compose: (({ currentStep, getIsStepInteractive, onStepChange, onKeyDown, ...restProps }: import("./components/Compose/Compose.types").StepperComposeProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
|
+
Step: (({ children, ...restProps }: import(".").StepperStepProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
11
|
+
Compose: ({ onClick, onKeyDown, ...restProps }: import("./components/Step/components/Compose/Compose.types").ComposeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
Icon: ({ children, ...restProps }: import("./components/Step/components/Icon/Icon.types").IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
Label: ({ children, ...restProps }: import("..").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
useStepContext: typeof import("./components/Step/Step.context").useStepContext;
|
|
15
|
+
};
|
|
7
16
|
};
|
|
8
17
|
};
|
|
9
18
|
export default Stepper;
|
package/dist/Stepper/Stepper.js
CHANGED
|
@@ -1,36 +1,26 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../node_modules/react/jsx-runtime.js";
|
|
2
|
-
import React__default from "react";
|
|
3
2
|
import Step from "./components/Step/Step.js";
|
|
4
|
-
import
|
|
5
|
-
import { Container } from "./Stepper.style.js";
|
|
3
|
+
import StepperCompose from "./components/Compose/Compose.js";
|
|
6
4
|
const Stepper = Object.assign(({
|
|
7
|
-
|
|
8
|
-
className,
|
|
9
|
-
currentStep = -1,
|
|
5
|
+
steps,
|
|
10
6
|
...restProps
|
|
11
7
|
}) => {
|
|
12
|
-
return jsxRuntimeExports.jsx(
|
|
13
|
-
className,
|
|
8
|
+
return jsxRuntimeExports.jsx(Stepper.Compose, {
|
|
14
9
|
...restProps,
|
|
15
|
-
children:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
index: index + 1,
|
|
26
|
-
"data-state": state
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return child;
|
|
30
|
-
})
|
|
10
|
+
children: steps.map((step, idx) => (
|
|
11
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
12
|
+
jsxRuntimeExports.jsxs(Step.Compose, {
|
|
13
|
+
children: [jsxRuntimeExports.jsx(Step.Icon, {
|
|
14
|
+
children: step.icon
|
|
15
|
+
}), jsxRuntimeExports.jsx(Step.Label, {
|
|
16
|
+
children: step.label
|
|
17
|
+
})]
|
|
18
|
+
}, idx)
|
|
19
|
+
))
|
|
31
20
|
});
|
|
32
21
|
}, {
|
|
33
|
-
Step
|
|
22
|
+
Step,
|
|
23
|
+
Compose: StepperCompose
|
|
34
24
|
});
|
|
35
25
|
const Stepper$1 = Stepper;
|
|
36
26
|
export {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ChildFree } from '../Helpers';
|
|
3
|
+
import { StepperComposeProps } from './components/Compose/Compose.types';
|
|
4
|
+
export type StepperStep = {
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export interface StepperProps extends ChildFree<StepperComposeProps> {
|
|
9
|
+
steps: StepperStep[];
|
|
4
10
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const jsxRuntime = require("../../../node_modules/react/jsx-runtime.cjs");
|
|
4
|
+
const Step = require("../Step/Step.cjs");
|
|
5
|
+
const Stepper_context = require("../../Stepper.context.cjs");
|
|
6
|
+
const useStepperInteractive = require("../../hooks/useStepperInteractive.cjs");
|
|
7
|
+
const useStepIndexing = require("../../hooks/useStepIndexing.cjs");
|
|
8
|
+
const Compose_style = require("./Compose.style.cjs");
|
|
9
|
+
const StepperCompose = Object.assign(({
|
|
10
|
+
currentStep = -1,
|
|
11
|
+
getIsStepInteractive,
|
|
12
|
+
onStepChange,
|
|
13
|
+
onKeyDown,
|
|
14
|
+
...restProps
|
|
15
|
+
}) => {
|
|
16
|
+
const stepIndexingContext = useStepIndexing.useStepIndexing();
|
|
17
|
+
const {
|
|
18
|
+
context: interactivityContext,
|
|
19
|
+
props: interactivityProps
|
|
20
|
+
} = useStepperInteractive.useStepperInteractive({
|
|
21
|
+
onStepChange,
|
|
22
|
+
getIsStepInteractive,
|
|
23
|
+
currentStep,
|
|
24
|
+
totalSteps: stepIndexingContext.totalSteps,
|
|
25
|
+
onKeyDown
|
|
26
|
+
});
|
|
27
|
+
const contextValue = {
|
|
28
|
+
...stepIndexingContext,
|
|
29
|
+
...interactivityContext,
|
|
30
|
+
currentStep
|
|
31
|
+
};
|
|
32
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Stepper_context.StepperContext.Provider, {
|
|
33
|
+
value: contextValue,
|
|
34
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(Compose_style.StepperCompose, {
|
|
35
|
+
...interactivityProps,
|
|
36
|
+
...restProps
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
}, {
|
|
40
|
+
Step: Step.default
|
|
41
|
+
});
|
|
42
|
+
exports.default = StepperCompose;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StepperComposeProps } from './Compose.types';
|
|
2
|
+
declare const StepperCompose: (({ currentStep, getIsStepInteractive, onStepChange, onKeyDown, ...restProps }: StepperComposeProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
|
+
Step: (({ children, ...restProps }: import("../..").StepperStepProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
4
|
+
Compose: ({ onClick, onKeyDown, ...restProps }: import("../Step/components/Compose/Compose.types").ComposeProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
Icon: ({ children, ...restProps }: import("../Step/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 import("../Step/Step.context").useStepContext;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default StepperCompose;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import Step from "../Step/Step.js";
|
|
3
|
+
import { StepperContext } from "../../Stepper.context.js";
|
|
4
|
+
import { useStepperInteractive } from "../../hooks/useStepperInteractive.js";
|
|
5
|
+
import { useStepIndexing } from "../../hooks/useStepIndexing.js";
|
|
6
|
+
import { StepperCompose as StepperCompose$1 } from "./Compose.style.js";
|
|
7
|
+
const StepperCompose = Object.assign(({
|
|
8
|
+
currentStep = -1,
|
|
9
|
+
getIsStepInteractive,
|
|
10
|
+
onStepChange,
|
|
11
|
+
onKeyDown,
|
|
12
|
+
...restProps
|
|
13
|
+
}) => {
|
|
14
|
+
const stepIndexingContext = useStepIndexing();
|
|
15
|
+
const {
|
|
16
|
+
context: interactivityContext,
|
|
17
|
+
props: interactivityProps
|
|
18
|
+
} = useStepperInteractive({
|
|
19
|
+
onStepChange,
|
|
20
|
+
getIsStepInteractive,
|
|
21
|
+
currentStep,
|
|
22
|
+
totalSteps: stepIndexingContext.totalSteps,
|
|
23
|
+
onKeyDown
|
|
24
|
+
});
|
|
25
|
+
const contextValue = {
|
|
26
|
+
...stepIndexingContext,
|
|
27
|
+
...interactivityContext,
|
|
28
|
+
currentStep
|
|
29
|
+
};
|
|
30
|
+
return jsxRuntimeExports.jsx(StepperContext.Provider, {
|
|
31
|
+
value: contextValue,
|
|
32
|
+
children: jsxRuntimeExports.jsx(StepperCompose$1, {
|
|
33
|
+
...interactivityProps,
|
|
34
|
+
...restProps
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}, {
|
|
38
|
+
Step
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
StepperCompose as default
|
|
42
|
+
};
|
|
@@ -4,8 +4,8 @@ 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: "
|
|
9
|
-
componentId: "RedisUI__sc-
|
|
7
|
+
const StepperCompose = _styled__default.default.div.withConfig({
|
|
8
|
+
displayName: "Composestyle__StepperCompose",
|
|
9
|
+
componentId: "RedisUI__sc-ey8bn4-0"
|
|
10
10
|
})(["display:flex;gap:", ";align-items:center;"], () => redisUiStyles.useTheme().components.stepper.gap);
|
|
11
|
-
exports.
|
|
11
|
+
exports.StepperCompose = StepperCompose;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StepperCompose: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _styled from "styled-components";
|
|
2
2
|
import { useTheme } from "@redislabsdev/redis-ui-styles";
|
|
3
|
-
const
|
|
4
|
-
displayName: "
|
|
5
|
-
componentId: "RedisUI__sc-
|
|
3
|
+
const StepperCompose = _styled.div.withConfig({
|
|
4
|
+
displayName: "Composestyle__StepperCompose",
|
|
5
|
+
componentId: "RedisUI__sc-ey8bn4-0"
|
|
6
6
|
})(["display:flex;gap:", ";align-items:center;"], () => useTheme().components.stepper.gap);
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
StepperCompose
|
|
9
9
|
};
|
|
@@ -4,26 +4,19 @@ const jsxRuntime = require("../../../node_modules/react/jsx-runtime.cjs");
|
|
|
4
4
|
const Compose = require("./components/Compose/Compose.cjs");
|
|
5
5
|
const Icon = require("./components/Icon/Icon.cjs");
|
|
6
6
|
const Label = require("./components/Label/Label.cjs");
|
|
7
|
-
const
|
|
7
|
+
const Step_context = require("./Step.context.cjs");
|
|
8
8
|
const Step = Object.assign(({
|
|
9
9
|
children,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"data-state": state,
|
|
18
|
-
children: [jsxRuntime.jsxRuntimeExports.jsx(Step.Icon, {
|
|
19
|
-
children: index
|
|
20
|
-
}), jsxRuntime.jsxRuntimeExports.jsx(Step.Label, {
|
|
21
|
-
children
|
|
22
|
-
})]
|
|
23
|
-
});
|
|
24
|
-
}, {
|
|
10
|
+
...restProps
|
|
11
|
+
}) => jsxRuntime.jsxRuntimeExports.jsxs(Step.Compose, {
|
|
12
|
+
...restProps,
|
|
13
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Step.Icon, {}), jsxRuntime.jsxRuntimeExports.jsx(Step.Label, {
|
|
14
|
+
children
|
|
15
|
+
})]
|
|
16
|
+
}), {
|
|
25
17
|
Compose: Compose.default,
|
|
26
18
|
Icon: Icon.default,
|
|
27
|
-
Label: Label.default
|
|
19
|
+
Label: Label.default,
|
|
20
|
+
useStepContext: Step_context.useStepContext
|
|
28
21
|
});
|
|
29
22
|
exports.default = Step;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const StepContext: import("react").Context<
|
|
4
|
-
export declare function useStepContext():
|
|
2
|
+
import { StepperStepContextType } from './Step.types';
|
|
3
|
+
export declare const StepContext: import("react").Context<StepperStepContextType | null>;
|
|
4
|
+
export declare function useStepContext(): StepperStepContextType;
|