react-magma-dom 4.7.0-next.11 → 4.7.0-next.13

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.
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { StepperProps } from './Stepper';
3
+ export interface ResponsiveStepperContainerProps extends Omit<StepperProps, 'currentStep'> {
4
+ /**
5
+ * @children
6
+ */
7
+ children?: React.ReactNode;
8
+ /**
9
+ * Steps of the Stepper.
10
+ */
11
+ steps: React.ReactNode[];
12
+ /**
13
+ * Current step value.
14
+ */
15
+ currentStep: number;
16
+ }
17
+ export declare const ResponsiveStepperContainer: React.FunctionComponent<ResponsiveStepperContainerProps>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ThemeInterface } from '../../theme/magma';
3
- import { StepperLayout } from './Stepper';
3
+ import { StepperLayout, StepperOrientation } from './Stepper';
4
4
  export interface StepProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  /**
6
6
  * Error state for each step.
@@ -27,6 +27,10 @@ export interface StepProps extends React.HTMLAttributes<HTMLDivElement> {
27
27
  * @internal
28
28
  */
29
29
  index?: number;
30
+ /**
31
+ * @internal
32
+ */
33
+ orientation?: StepperOrientation;
30
34
  /**
31
35
  * @internal
32
36
  */
@@ -17,6 +17,10 @@ export interface StepperProps extends React.HTMLAttributes<HTMLDivElement> {
17
17
  * Changes the Stepper view for responsive layouts, needs a minimum 'breakpoint' number.
18
18
  */
19
19
  breakpointLayout?: StepperLayout;
20
+ /**
21
+ * Changes the Stepper orientation for responsive layouts, needs a minimum 'breakpoint' number.
22
+ */
23
+ breakpointOrientation?: StepperOrientation;
20
24
  /**
21
25
  * Sets the Stepper view
22
26
  * @default StepperLayout.showLabels
@@ -36,6 +40,11 @@ export interface StepperProps extends React.HTMLAttributes<HTMLDivElement> {
36
40
  * Current step value.
37
41
  */
38
42
  currentStep: number;
43
+ /**
44
+ * Determines if the stepper is displayed vertically or horizontally
45
+ * @default StepperOrientation.horizontal
46
+ */
47
+ orientation?: StepperOrientation;
39
48
  /**
40
49
  * Inverse styling.
41
50
  */
@@ -50,4 +59,8 @@ export declare enum StepperLayout {
50
59
  hideLabels = "hideLabels",
51
60
  summaryView = "summaryView"
52
61
  }
62
+ export declare enum StepperOrientation {
63
+ horizontal = "horizontal",
64
+ vertical = "vertical"
65
+ }
53
66
  export declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>;
@@ -2,5 +2,7 @@ import { StepperProps } from './';
2
2
  declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
3
  export default _default;
4
4
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, StepperProps>;
5
+ export declare const Vertical: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, StepperProps>;
6
+ export declare const InsideDropdown: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, StepperProps>;
5
7
  export declare const RealWorldExample: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, StepperProps>;
6
8
  export declare const WithError: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, StepperProps>;
@@ -1,2 +1,3 @@
1
1
  export * from './Step';
2
2
  export * from './Stepper';
3
+ export * from './ResponsiveStepperContainer';