@databiosphere/findable-ui 23.0.0 → 24.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/.release-please-manifest.json +1 -1
- package/.storybook/preview.js +4 -37
- package/CHANGELOG.md +25 -0
- package/jest.config.js +1 -0
- package/lib/components/Export/components/ExportForm/exportForm.styles.d.ts +2 -2
- package/lib/components/Filter/components/FilterLabel/filterLabel.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/AuthenticationMenu/authenticationMenu.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Authentication/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Layout/components/Header/components/Content/components/Actions/components/Search/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Layout/components/Outline/outline.styles.d.ts +1 -1
- package/lib/components/Loading/loading.stories.d.ts +3 -31
- package/lib/components/Login/components/Button/button.styles.d.ts +1 -1
- package/lib/components/Stepper/components/Step/components/StepContent/stepContent.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepContent/stepContent.js +7 -0
- package/lib/components/Stepper/components/Step/components/StepContent/stepContent.styles.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepContent/stepContent.styles.js +17 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.js +8 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.d.ts +5 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.js +15 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/contants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/contants.js +4 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/constants.d.ts +1 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/constants.js +1 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.js +27 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stories/stepIcon.stories.d.ts +9 -0
- package/lib/components/Stepper/components/Step/components/StepIcon/stories/stepIcon.stories.js +38 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/constants.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/constants.js +11 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/icon.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/icon.js +9 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/contants.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/contants.js +3 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/icon.stories.d.ts +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/icon.stories.js +20 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/types.d.ts +7 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/types.js +1 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/constants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/constants.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.d.ts +5 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.js +7 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/stories/label.stories.d.ts +7 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/stories/label.stories.js +21 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.js +5 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/optional.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/optional.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/constants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/constants.js +8 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stepLabel.d.ts +2 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stepLabel.js +6 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stepLabel.styles.d.ts +3 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stepLabel.styles.js +12 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stories/contants.d.ts +4 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stories/contants.js +15 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stories/stepLabel.stories.d.ts +8 -0
- package/lib/components/Stepper/components/Step/components/StepLabel/stories/stepLabel.stories.js +37 -0
- package/lib/components/Stepper/components/Step/constants.d.ts +2 -0
- package/lib/components/Stepper/components/Step/constants.js +4 -0
- package/lib/components/Stepper/components/Step/step.d.ts +3 -0
- package/lib/components/Stepper/components/Step/step.js +6 -0
- package/lib/components/Stepper/components/Step/step.styles.d.ts +5 -0
- package/lib/components/Stepper/components/Step/step.styles.js +31 -0
- package/lib/components/Stepper/components/Step/stories/contants.d.ts +4 -0
- package/lib/components/Stepper/components/Step/stories/contants.js +14 -0
- package/lib/components/Stepper/components/Step/stories/step.stories.d.ts +8 -0
- package/lib/components/Stepper/components/Step/stories/step.stories.js +62 -0
- package/lib/components/common/Form/components/Input/input.styles.d.ts +1 -1
- package/lib/components/common/Form/components/Select/select.js +2 -1
- package/lib/components/common/Form/components/Select/select.styles.d.ts +1 -1
- package/lib/components/common/Input/input.styles.d.ts +1 -1
- package/lib/components/common/KeyValuePairs/components/KeyElType/keyElType.d.ts +2 -5
- package/lib/components/common/KeyValuePairs/components/KeyElType/keyElType.js +6 -2
- package/lib/components/common/KeyValuePairs/components/ValueElType/valueElType.d.ts +2 -5
- package/lib/components/common/KeyValuePairs/components/ValueElType/valueElType.js +6 -2
- package/lib/storybook/controls/constants.d.ts +4 -0
- package/lib/storybook/controls/constants.js +6 -0
- package/lib/storybook/controls/types.d.ts +4 -0
- package/lib/storybook/controls/types.js +5 -0
- package/lib/storybook/controls/utils.d.ts +9 -0
- package/lib/storybook/controls/utils.js +10 -0
- package/lib/storybook/decorators.d.ts +2 -0
- package/lib/storybook/decorators.js +11 -0
- package/lib/storybook/loremIpsum.d.ts +4 -0
- package/lib/storybook/loremIpsum.js +4 -0
- package/lib/storybook/parameters.d.ts +2 -0
- package/lib/storybook/parameters.js +12 -0
- package/lib/styles/common/mui/stepper.d.ts +7 -0
- package/lib/styles/common/mui/stepper.js +7 -0
- package/lib/styles/common/mui/svgIcon.d.ts +9 -0
- package/lib/styles/common/mui/svgIcon.js +26 -0
- package/lib/styles/common/mui/typography.js +1 -0
- package/lib/tests/mui/constants.d.ts +4 -0
- package/lib/tests/mui/constants.js +4 -0
- package/lib/theme/common/components.js +0 -4
- package/lib/theme/common/typography.d.ts +5 -1
- package/lib/theme/common/typography.js +10 -1
- package/lib/theme/theme.js +1 -0
- package/lib/utils/tests.d.ts +12 -0
- package/lib/utils/tests.js +20 -0
- package/package.json +1 -1
- package/src/components/Loading/loading.stories.tsx +2 -2
- package/src/components/Stepper/components/Step/components/StepContent/stepContent.styles.ts +18 -0
- package/src/components/Stepper/components/Step/components/StepContent/stepContent.tsx +16 -0
- package/src/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.styles.ts +19 -0
- package/src/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/completedIcon.tsx +20 -0
- package/src/components/Stepper/components/Step/components/StepIcon/components/CompletedIcon/contants.ts +6 -0
- package/src/components/Stepper/components/Step/components/StepIcon/constants.ts +1 -0
- package/src/components/Stepper/components/Step/components/StepIcon/stepIcon.styles.ts +32 -0
- package/src/components/Stepper/components/Step/components/StepIcon/stepIcon.tsx +21 -0
- package/src/components/Stepper/components/Step/components/StepIcon/stories/stepIcon.stories.tsx +52 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/constants.ts +14 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/icon.tsx +13 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/contants.ts +6 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/stories/icon.stories.tsx +30 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/components/Icon/types.ts +8 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/constants.ts +8 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/label.styles.ts +8 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/label.tsx +10 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Label/stories/label.stories.tsx +31 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Optional/constants.ts +7 -0
- package/src/components/Stepper/components/Step/components/StepLabel/components/Optional/optional.tsx +9 -0
- package/src/components/Stepper/components/Step/components/StepLabel/constants.ts +10 -0
- package/src/components/Stepper/components/Step/components/StepLabel/stepLabel.styles.ts +13 -0
- package/src/components/Stepper/components/Step/components/StepLabel/stepLabel.tsx +10 -0
- package/src/components/Stepper/components/Step/components/StepLabel/stories/contants.ts +19 -0
- package/src/components/Stepper/components/Step/components/StepLabel/stories/stepLabel.stories.tsx +48 -0
- package/src/components/Stepper/components/Step/constants.ts +6 -0
- package/src/components/Stepper/components/Step/step.styles.ts +33 -0
- package/src/components/Stepper/components/Step/step.tsx +12 -0
- package/src/components/Stepper/components/Step/stories/contants.ts +18 -0
- package/src/components/Stepper/components/Step/stories/step.stories.tsx +87 -0
- package/src/components/common/Form/components/Select/select.tsx +8 -1
- package/src/components/common/KeyValuePairs/components/KeyElType/keyElType.tsx +14 -9
- package/src/components/common/KeyValuePairs/components/ValueElType/valueElType.tsx +8 -9
- package/src/storybook/controls/constants.ts +12 -0
- package/src/storybook/controls/types.ts +4 -0
- package/src/storybook/controls/utils.ts +18 -0
- package/src/storybook/decorators.tsx +17 -0
- package/src/storybook/loremIpsum.ts +5 -0
- package/src/storybook/parameters.ts +14 -0
- package/src/styles/common/mui/stepper.ts +14 -0
- package/src/styles/common/mui/svgIcon.ts +35 -0
- package/src/styles/common/mui/typography.ts +1 -0
- package/src/tests/mui/constants.ts +4 -0
- package/src/theme/common/components.ts +0 -4
- package/src/theme/common/typography.ts +11 -0
- package/src/theme/theme.ts +1 -0
- package/src/utils/tests.ts +20 -0
- package/tests/setup.ts +6 -0
- package/tests/stepIcon.test.tsx +42 -0
- package/types/data-explorer-ui.d.ts +3 -0
package/.storybook/preview.js
CHANGED
|
@@ -1,39 +1,6 @@
|
|
|
1
|
-
import { CssBaseline } from "@mui/material";
|
|
2
|
-
import { ThemeProvider } from "@mui/material/styles";
|
|
3
|
-
import { ThemeProvider as Emotion10ThemeProvider } from "emotion-theming";
|
|
4
|
-
import { RouterContext } from "next/dist/shared/lib/router-context.shared-runtime";
|
|
5
|
-
import { useConfig } from "../src/hooks/useConfig";
|
|
6
1
|
import "../src/index";
|
|
7
|
-
import {
|
|
2
|
+
import { decorators as projectDecorators } from "../src/storybook/decorators";
|
|
3
|
+
import { parameters as projectParameters } from "../src/storybook/parameters";
|
|
8
4
|
|
|
9
|
-
export const
|
|
10
|
-
|
|
11
|
-
controls: {
|
|
12
|
-
exclude: ["className", "ref", "sx"],
|
|
13
|
-
matchers: {
|
|
14
|
-
color: /(background|color)$/i,
|
|
15
|
-
date: /Date$/,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
nextRouter: {
|
|
19
|
-
Provider: RouterContext.Provider,
|
|
20
|
-
basePath: "",
|
|
21
|
-
},
|
|
22
|
-
layout: "centered",
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const withThemeProvider = (Story, context) => {
|
|
26
|
-
// TODO current config is not returned, and extended theme interfaces are not recognised.
|
|
27
|
-
const { config } = useConfig();
|
|
28
|
-
const theme = createAppTheme(config.themeOptions);
|
|
29
|
-
return (
|
|
30
|
-
<Emotion10ThemeProvider theme={theme}>
|
|
31
|
-
<ThemeProvider theme={theme}>
|
|
32
|
-
<CssBaseline />
|
|
33
|
-
<Story {...context} />
|
|
34
|
-
</ThemeProvider>
|
|
35
|
-
</Emotion10ThemeProvider>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const decorators = [withThemeProvider];
|
|
5
|
+
export const decorators = projectDecorators;
|
|
6
|
+
export const parameters = projectParameters;
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [24.0.0](https://github.com/DataBiosphere/findable-ui/compare/v23.0.0...v24.0.0) (2025-03-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* fix keyvaluepairs component typography props ([#367](https://github.com/DataBiosphere/findable-ui/issues/367)) (#368)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* add 'text-heading-xsmall' to typography variants ([#361](https://github.com/DataBiosphere/findable-ui/issues/361)) ([#362](https://github.com/DataBiosphere/findable-ui/issues/362)) ([5ec4c9d](https://github.com/DataBiosphere/findable-ui/commit/5ec4c9dc42d043f8fb5f8dd13f391ac9478edac0))
|
|
13
|
+
* create step component ([#364](https://github.com/DataBiosphere/findable-ui/issues/364)) ([#365](https://github.com/DataBiosphere/findable-ui/issues/365)) ([ca9fdfd](https://github.com/DataBiosphere/findable-ui/commit/ca9fdfd4dd8cb54f49e53afe75358ae3b53d6243))
|
|
14
|
+
* create step indicator component ([#350](https://github.com/DataBiosphere/findable-ui/issues/350)) ([#351](https://github.com/DataBiosphere/findable-ui/issues/351)) ([dd40168](https://github.com/DataBiosphere/findable-ui/commit/dd401684a8ceaeca68961088ddb1924b3a5a6a4a))
|
|
15
|
+
* create step label component ([#360](https://github.com/DataBiosphere/findable-ui/issues/360)) ([#363](https://github.com/DataBiosphere/findable-ui/issues/363)) ([cba945c](https://github.com/DataBiosphere/findable-ui/commit/cba945ccee05e040709870287cba0d34b25e981a))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* fix keyvaluepairs component typography props ([#367](https://github.com/DataBiosphere/findable-ui/issues/367)) ([#368](https://github.com/DataBiosphere/findable-ui/issues/368)) ([7777828](https://github.com/DataBiosphere/findable-ui/commit/7777828988d4bda2f0d5932c0f2cac931df15240))
|
|
21
|
+
* jest tests missing storybook annotations ([#354](https://github.com/DataBiosphere/findable-ui/issues/354)) ([#355](https://github.com/DataBiosphere/findable-ui/issues/355)) ([1ec7a72](https://github.com/DataBiosphere/findable-ui/commit/1ec7a72da225560ebbacf279a1009703d25f9e6e))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Code Refactoring
|
|
25
|
+
|
|
26
|
+
* storybook parameters nextjs router config ([#357](https://github.com/DataBiosphere/findable-ui/issues/357)) ([#359](https://github.com/DataBiosphere/findable-ui/issues/359)) ([fc20e88](https://github.com/DataBiosphere/findable-ui/commit/fc20e886f3a14c6ed22f8f2f55b1067bfa5165f3))
|
|
27
|
+
|
|
3
28
|
## [23.0.0](https://github.com/DataBiosphere/findable-ui/compare/v22.0.0...v23.0.0) (2025-03-21)
|
|
4
29
|
|
|
5
30
|
|
package/jest.config.js
CHANGED
|
@@ -2,12 +2,12 @@ import { ThemeProps } from "../../../../theme/theme";
|
|
|
2
2
|
export declare const margin: ({ theme }: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const FormControl: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
4
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, "style" | "className" | "classes" | "color" | "children" | "margin" | "sx" | "variant" | "error" | "disabled" | "required" | "size" | "
|
|
5
|
+
}, "style" | "className" | "classes" | "color" | "children" | "margin" | "sx" | "variant" | "error" | "disabled" | "required" | "size" | "focused" | "fullWidth" | "hiddenLabel"> & {
|
|
6
6
|
theme?: import("@emotion/react").Theme;
|
|
7
7
|
}, {}, {}>;
|
|
8
8
|
export declare const TableFormControl: import("@emotion/styled").StyledComponent<import("@mui/material").FormControlOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
9
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "style" | "className" | "classes" | "color" | "children" | "margin" | "sx" | "variant" | "error" | "disabled" | "required" | "size" | "
|
|
10
|
+
}, "style" | "className" | "classes" | "color" | "children" | "margin" | "sx" | "variant" | "error" | "disabled" | "required" | "size" | "focused" | "fullWidth" | "hiddenLabel"> & {
|
|
11
11
|
theme?: import("@emotion/react").Theme;
|
|
12
12
|
}, {}, {}>;
|
|
13
13
|
export declare const GridPaper: import("@emotion/styled").StyledComponent<{
|
|
@@ -3,7 +3,7 @@ interface Props {
|
|
|
3
3
|
}
|
|
4
4
|
export declare const FilterLabel: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
5
5
|
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
6
|
-
}, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "
|
|
6
|
+
}, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & {
|
|
7
7
|
theme?: import("@emotion/react").Theme;
|
|
8
8
|
} & Props, {}, {}>;
|
|
9
9
|
export {};
|
|
@@ -18,6 +18,6 @@ export declare const UserNames: import("@emotion/styled").StyledComponent<import
|
|
|
18
18
|
}, {}, {}>;
|
|
19
19
|
export declare const StyledAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").AvatarOwnProps & import("@mui/material").AvatarSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
20
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
21
|
-
}, "style" | "className" | "classes" | "children" | "sx" | "variant" | "alt" | "src" | "sizes" | "srcSet" | "
|
|
21
|
+
}, "style" | "className" | "classes" | "children" | "sx" | "variant" | "alt" | "src" | "sizes" | "srcSet" | "slots" | "slotProps" | "imgProps"> & {
|
|
22
22
|
theme?: import("@emotion/react").Theme;
|
|
23
23
|
}, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const StyledButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
2
|
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
3
|
-
}, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "
|
|
3
|
+
}, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & {
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
}, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const StyledButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
2
|
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
3
|
-
}, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "
|
|
3
|
+
}, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & {
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
}, {}, {}>;
|
|
@@ -5,7 +5,7 @@ interface Props extends TabProps {
|
|
|
5
5
|
export declare const tab: import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const StyledTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
7
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
-
}, "style" | "className" | "classes" | "aria-label" | "aria-labelledby" | "children" | "onChange" | "sx" | "variant" | "orientation" | "value" | "action" | "
|
|
8
|
+
}, "style" | "className" | "classes" | "aria-label" | "aria-labelledby" | "children" | "onChange" | "sx" | "variant" | "orientation" | "value" | "action" | "slots" | "slotProps" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & {
|
|
9
9
|
theme?: import("@emotion/react").Theme;
|
|
10
10
|
}, {}, {}>;
|
|
11
11
|
export declare const StyledTab: import("@emotion/styled").StyledComponent<import("@mui/material").TabOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
import { StoryObj } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
appear: {
|
|
5
|
-
control: "boolean";
|
|
6
|
-
};
|
|
7
|
-
iconSize: {
|
|
8
|
-
control: "select";
|
|
9
|
-
options: string[];
|
|
10
|
-
};
|
|
11
|
-
loading: {
|
|
12
|
-
control: "boolean";
|
|
13
|
-
};
|
|
14
|
-
panelStyle: {
|
|
15
|
-
control: "select";
|
|
16
|
-
options: string[];
|
|
17
|
-
};
|
|
18
|
-
text: {
|
|
19
|
-
control: "text";
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
component: ({ appear, iconSize, loading, panelStyle, text, }: import("./loading").LoadingProps) => JSX.Element | null;
|
|
23
|
-
decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
24
|
-
appear?: boolean | undefined;
|
|
25
|
-
iconSize?: import("@mui/material").SvgIconProps["fontSize"];
|
|
26
|
-
loading: boolean;
|
|
27
|
-
panelStyle?: import("./loading").LoadingPanelStyle | undefined;
|
|
28
|
-
text?: string | undefined;
|
|
29
|
-
}>) => JSX.Element)[];
|
|
30
|
-
title: string;
|
|
31
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Loading } from "./loading";
|
|
3
|
+
declare const meta: Meta<typeof Loading>;
|
|
32
4
|
export default meta;
|
|
33
5
|
type Story = StoryObj<typeof meta>;
|
|
34
6
|
export declare const LoadingStory: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const StyledButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
2
2
|
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
3
|
-
}, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "
|
|
3
|
+
}, "style" | "className" | "classes" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "href" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon"> & {
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
}, {}, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Grid2 } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { StyledStepContent } from "./stepContent.styles";
|
|
4
|
+
export const StepContent = ({ children, className, ...props /* MuiStepContentProps */ }) => {
|
|
5
|
+
return (React.createElement(StyledStepContent, { className: className, ...props },
|
|
6
|
+
React.createElement(Grid2, null, children)));
|
|
7
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { StepContent } from "@mui/material";
|
|
3
|
+
import { smokeMain } from "../../../../../../styles/common/mixins/colors";
|
|
4
|
+
import { sectionPadding } from "../../../../../common/Section/section.styles";
|
|
5
|
+
export const StyledStepContent = styled(StepContent) `
|
|
6
|
+
&.MuiStepContent-root {
|
|
7
|
+
.MuiCollapse-wrapperInner.MuiCollapse-vertical {
|
|
8
|
+
> .MuiGrid2-root {
|
|
9
|
+
${sectionPadding};
|
|
10
|
+
border-top: 1px solid ${smokeMain};
|
|
11
|
+
display: grid;
|
|
12
|
+
gap: 24px;
|
|
13
|
+
justify-items: flex-start;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { stepIconClasses } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { StyledSvgIcon } from "./completedIcon.styles";
|
|
4
|
+
import { SVG_ICON_PROPS } from "./contants";
|
|
5
|
+
export const CompletedIcon = ({ testId }) => {
|
|
6
|
+
return (React.createElement(StyledSvgIcon, { ...SVG_ICON_PROPS, className: stepIconClasses.completed, "data-testid": testId },
|
|
7
|
+
React.createElement("path", { d: "M7.18129 13.1814C7.08109 13.1814 6.98419 13.1625 6.89059 13.1247C6.79699 13.0875 6.7064 13.0251 6.61879 12.9375L3.44989 9.7686C3.2999 9.61857 3.22819 9.42813 3.23479 9.1971C3.24079 8.96551 3.3188 8.77471 3.46879 8.6247C3.61879 8.47471 3.80629 8.3997 4.03129 8.3997C4.25629 8.3997 4.4438 8.47471 4.59379 8.6247L7.21909 11.25L13.4255 5.0436C13.5755 4.89361 13.7597 4.8186 13.9781 4.8186C14.1971 4.8186 14.3816 4.89361 14.5316 5.0436C14.6816 5.19361 14.7566 5.37811 14.7566 5.5971C14.7566 5.81551 14.6816 5.99971 14.5316 6.1497L7.74379 12.9375C7.65619 13.0251 7.56559 13.0875 7.47199 13.1247C7.37839 13.1625 7.2815 13.1814 7.18129 13.1814Z", fill: "currentColor" })));
|
|
8
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const StyledSvgIcon: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: SVGSVGElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
3
|
+
}, "fontSize" | "style" | "className" | "classes" | "color" | "children" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "inheritViewBox" | "titleAccess"> & {
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { SvgIcon } from "@mui/material";
|
|
3
|
+
import { inkLight, smokeDark, } from "../../../../../../../../styles/common/mixins/colors";
|
|
4
|
+
export const StyledSvgIcon = styled(SvgIcon) `
|
|
5
|
+
&.MuiSvgIcon-root {
|
|
6
|
+
border-radius: 50%;
|
|
7
|
+
box-sizing: content-box;
|
|
8
|
+
padding: 4px;
|
|
9
|
+
|
|
10
|
+
&.Mui-completed {
|
|
11
|
+
border: 2px solid ${smokeDark};
|
|
12
|
+
color: ${inkLight};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const STEP_ICON_TEST_ID = "step-icon";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const STEP_ICON_TEST_ID = "step-icon";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CompletedIcon } from "./components/CompletedIcon/completedIcon";
|
|
3
|
+
import { StyledStepIcon } from "./stepIcon.styles";
|
|
4
|
+
export const StepIcon = ({ completed, icon, testId, ...props }) => {
|
|
5
|
+
return (React.createElement(StyledStepIcon, { completed: completed, "data-testid": testId, icon: completed ? React.createElement(CompletedIcon, { testId: testId }) : icon, ...props }));
|
|
6
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import styled from "@emotion/styled";
|
|
2
|
+
import { StepIcon } from "@mui/material";
|
|
3
|
+
import { inkLight, primaryMain, smokeDark, } from "../../../../../../styles/common/mixins/colors";
|
|
4
|
+
export const StyledStepIcon = styled(StepIcon) `
|
|
5
|
+
&.MuiSvgIcon-root {
|
|
6
|
+
border: 2px solid ${smokeDark};
|
|
7
|
+
border-radius: 50%;
|
|
8
|
+
color: transparent;
|
|
9
|
+
height: 32px;
|
|
10
|
+
width: 32px;
|
|
11
|
+
|
|
12
|
+
.MuiStepIcon-text {
|
|
13
|
+
fill: ${inkLight};
|
|
14
|
+
font-size: 13px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
line-height: 24px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.Mui-active {
|
|
20
|
+
border-color: ${primaryMain};
|
|
21
|
+
|
|
22
|
+
.MuiStepIcon-text {
|
|
23
|
+
fill: ${primaryMain};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;
|
package/lib/components/Stepper/components/Step/components/StepIcon/stories/stepIcon.stories.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { StepIcon } from "../stepIcon";
|
|
3
|
+
declare const meta: Meta<typeof StepIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Active: Story;
|
|
7
|
+
export declare const Completed: Story;
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
export declare const AllStates: Story;
|
package/lib/components/Stepper/components/Step/components/StepIcon/stories/stepIcon.stories.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React, { Fragment } from "react";
|
|
2
|
+
import { StepIcon } from "../stepIcon";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: StepIcon,
|
|
5
|
+
decorators: [
|
|
6
|
+
(Story, context) => (React.createElement("div", { style: { display: "grid", gap: 24 } },
|
|
7
|
+
React.createElement(Story, { ...context }))),
|
|
8
|
+
],
|
|
9
|
+
title: "Components/Stepper/StepIcon",
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Active = {
|
|
13
|
+
args: {
|
|
14
|
+
active: true,
|
|
15
|
+
completed: false,
|
|
16
|
+
icon: 1,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export const Completed = {
|
|
20
|
+
args: {
|
|
21
|
+
active: false,
|
|
22
|
+
completed: true,
|
|
23
|
+
icon: 1,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
export const Default = {
|
|
27
|
+
args: {
|
|
28
|
+
active: false,
|
|
29
|
+
completed: false,
|
|
30
|
+
icon: 1,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
export const AllStates = {
|
|
34
|
+
render: () => (React.createElement(Fragment, null,
|
|
35
|
+
React.createElement(StepIcon, { active: false, completed: false, icon: 1 }),
|
|
36
|
+
React.createElement(StepIcon, { active: true, completed: false, icon: 2 }),
|
|
37
|
+
React.createElement(StepIcon, { active: false, completed: true, icon: 3 }))),
|
|
38
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Info } from "@mui/icons-material";
|
|
2
|
+
import { SVG_ICON_PROPS as MUI_SVG_ICON_PROPS } from "../../../../../../../../../../styles/common/mui/svgIcon";
|
|
3
|
+
export const SVG_ICON_PROPS = {
|
|
4
|
+
color: MUI_SVG_ICON_PROPS.COLOR.INK_LIGHT,
|
|
5
|
+
component: Info,
|
|
6
|
+
fontSize: MUI_SVG_ICON_PROPS.FONT_SIZE.XSMALL,
|
|
7
|
+
};
|
|
8
|
+
export const TOOLTIP_PROPS = {
|
|
9
|
+
disableInteractive: true,
|
|
10
|
+
slotProps: { tooltip: { sx: { maxWidth: 196, textAlign: "center" } } },
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SvgIcon, Tooltip } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { SVG_ICON_PROPS, TOOLTIP_PROPS } from "./constants";
|
|
4
|
+
export const Icon = ({ slotProps }) => {
|
|
5
|
+
if (!slotProps?.tooltip?.title)
|
|
6
|
+
return null;
|
|
7
|
+
return (React.createElement(Tooltip, { ...TOOLTIP_PROPS, ...slotProps?.tooltip },
|
|
8
|
+
React.createElement(SvgIcon, { ...SVG_ICON_PROPS, ...slotProps?.svgIcon })));
|
|
9
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CONTROL_TYPE } from "../../../../../../../../../../../storybook/controls/types";
|
|
2
|
+
import { configureControls } from "../../../../../../../../../../../storybook/controls/utils";
|
|
3
|
+
import { LOREM_IPSUM } from "../../../../../../../../../../../storybook/loremIpsum";
|
|
4
|
+
import { Icon } from "../icon";
|
|
5
|
+
import { DISABLED_CONTROLS } from "./contants";
|
|
6
|
+
const meta = {
|
|
7
|
+
argTypes: configureControls(DISABLED_CONTROLS, CONTROL_TYPE.DISABLED),
|
|
8
|
+
component: Icon,
|
|
9
|
+
title: "Components/Stepper/StepLabel/Icon",
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Default = {
|
|
13
|
+
args: {
|
|
14
|
+
slotProps: {
|
|
15
|
+
tooltip: {
|
|
16
|
+
title: LOREM_IPSUM.SHORT,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/components/Stepper/components/Step/components/StepLabel/components/Label/constants.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TYPOGRAPHY_PROPS as MUI_TYPOGRAPHY_PROPS } from "../../../../../../../../styles/common/mui/typography";
|
|
2
|
+
export const TYPOGRAPHY_PROPS = {
|
|
3
|
+
color: MUI_TYPOGRAPHY_PROPS.COLOR.INK_MAIN,
|
|
4
|
+
component: "div",
|
|
5
|
+
variant: MUI_TYPOGRAPHY_PROPS.VARIANT.TEXT_HEADING_XSMALL,
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TYPOGRAPHY_PROPS } from "./constants";
|
|
3
|
+
import { StyledTypography } from "./label.styles";
|
|
4
|
+
export const Label = ({ ...props /* MuiTypographyProps */ }) => {
|
|
5
|
+
return React.createElement(StyledTypography, { ...TYPOGRAPHY_PROPS, ...props });
|
|
6
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const StyledTypography: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
3
|
+
}, "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "textTransform" | "p" | "style" | "className" | "classes" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontStyle" | "textAlign" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & {
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Meta, type StoryObj } from "@storybook/react";
|
|
2
|
+
import { Label } from "../label";
|
|
3
|
+
declare const meta: Meta<typeof Label>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithIcon: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { composeStories } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import * as stories from "../components/Icon/stories/icon.stories";
|
|
4
|
+
import { Label } from "../label";
|
|
5
|
+
const { Default: Icon } = composeStories(stories);
|
|
6
|
+
const meta = {
|
|
7
|
+
component: Label,
|
|
8
|
+
parameters: { controls: { disable: true } },
|
|
9
|
+
title: "Components/Stepper/StepLabel/Label",
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Default = {
|
|
13
|
+
args: { children: "Annotation Files" },
|
|
14
|
+
};
|
|
15
|
+
export const WithIcon = {
|
|
16
|
+
args: {
|
|
17
|
+
children: (React.createElement(React.Fragment, null,
|
|
18
|
+
"Annotation Files",
|
|
19
|
+
React.createElement(Icon, null))),
|
|
20
|
+
},
|
|
21
|
+
};
|
package/lib/components/Stepper/components/Step/components/StepLabel/components/Optional/optional.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Typography } from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { TYPOGRAPHY_PROPS } from "./constants";
|
|
4
|
+
export const Optional = ({ ...props /* MuiTypographyProps */ }) => {
|
|
5
|
+
return React.createElement(Typography, { ...TYPOGRAPHY_PROPS, ...props });
|
|
6
|
+
};
|