carbon-react 134.2.0 → 135.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.
Files changed (71) hide show
  1. package/esm/components/portal/portal.js +1 -0
  2. package/esm/components/toast/toast.component.d.ts +0 -2
  3. package/esm/components/toast/toast.component.js +7 -15
  4. package/esm/components/toast/toast.style.d.ts +0 -3
  5. package/esm/components/toast/toast.style.js +4 -21
  6. package/lib/components/portal/portal.js +1 -0
  7. package/lib/components/toast/toast.component.d.ts +0 -2
  8. package/lib/components/toast/toast.component.js +7 -15
  9. package/lib/components/toast/toast.style.d.ts +0 -3
  10. package/lib/components/toast/toast.style.js +4 -21
  11. package/package.json +1 -1
  12. package/esm/components/carousel/carousel.component.d.ts +0 -25
  13. package/esm/components/carousel/carousel.component.js +0 -125
  14. package/esm/components/carousel/carousel.style.d.ts +0 -20
  15. package/esm/components/carousel/carousel.style.js +0 -154
  16. package/esm/components/carousel/index.d.ts +0 -4
  17. package/esm/components/carousel/index.js +0 -2
  18. package/esm/components/carousel/slide/index.d.ts +0 -2
  19. package/esm/components/carousel/slide/index.js +0 -1
  20. package/esm/components/carousel/slide/slide.component.d.ts +0 -12
  21. package/esm/components/carousel/slide/slide.component.js +0 -9
  22. package/esm/components/carousel/slide/slide.style.d.ts +0 -2
  23. package/esm/components/carousel/slide/slide.style.js +0 -32
  24. package/esm/components/carousel/slide.config.d.ts +0 -3
  25. package/esm/components/carousel/slide.config.js +0 -80
  26. package/esm/components/step-sequence/index.d.ts +0 -4
  27. package/esm/components/step-sequence/index.js +0 -2
  28. package/esm/components/step-sequence/step-sequence-item/index.d.ts +0 -2
  29. package/esm/components/step-sequence/step-sequence-item/index.js +0 -1
  30. package/esm/components/step-sequence/step-sequence-item/step-sequence-item.component.d.ts +0 -19
  31. package/esm/components/step-sequence/step-sequence-item/step-sequence-item.component.js +0 -43
  32. package/esm/components/step-sequence/step-sequence-item/step-sequence-item.style.d.ts +0 -6
  33. package/esm/components/step-sequence/step-sequence-item/step-sequence-item.style.js +0 -96
  34. package/esm/components/step-sequence/step-sequence.component.d.ts +0 -13
  35. package/esm/components/step-sequence/step-sequence.component.js +0 -29
  36. package/esm/components/step-sequence/step-sequence.config.d.ts +0 -2
  37. package/esm/components/step-sequence/step-sequence.config.js +0 -2
  38. package/esm/components/step-sequence/step-sequence.style.d.ts +0 -4
  39. package/esm/components/step-sequence/step-sequence.style.js +0 -21
  40. package/lib/components/carousel/carousel.component.d.ts +0 -25
  41. package/lib/components/carousel/carousel.component.js +0 -135
  42. package/lib/components/carousel/carousel.style.d.ts +0 -20
  43. package/lib/components/carousel/carousel.style.js +0 -162
  44. package/lib/components/carousel/index.d.ts +0 -4
  45. package/lib/components/carousel/index.js +0 -20
  46. package/lib/components/carousel/package.json +0 -6
  47. package/lib/components/carousel/slide/index.d.ts +0 -2
  48. package/lib/components/carousel/slide/index.js +0 -13
  49. package/lib/components/carousel/slide/package.json +0 -6
  50. package/lib/components/carousel/slide/slide.component.d.ts +0 -12
  51. package/lib/components/carousel/slide/slide.component.js +0 -16
  52. package/lib/components/carousel/slide/slide.style.d.ts +0 -2
  53. package/lib/components/carousel/slide/slide.style.js +0 -39
  54. package/lib/components/carousel/slide.config.d.ts +0 -3
  55. package/lib/components/carousel/slide.config.js +0 -85
  56. package/lib/components/step-sequence/index.d.ts +0 -4
  57. package/lib/components/step-sequence/index.js +0 -20
  58. package/lib/components/step-sequence/package.json +0 -6
  59. package/lib/components/step-sequence/step-sequence-item/index.d.ts +0 -2
  60. package/lib/components/step-sequence/step-sequence-item/index.js +0 -13
  61. package/lib/components/step-sequence/step-sequence-item/package.json +0 -6
  62. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.d.ts +0 -19
  63. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.component.js +0 -53
  64. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.d.ts +0 -6
  65. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.style.js +0 -105
  66. package/lib/components/step-sequence/step-sequence.component.d.ts +0 -13
  67. package/lib/components/step-sequence/step-sequence.component.js +0 -37
  68. package/lib/components/step-sequence/step-sequence.config.d.ts +0 -2
  69. package/lib/components/step-sequence/step-sequence.config.js +0 -8
  70. package/lib/components/step-sequence/step-sequence.style.d.ts +0 -4
  71. package/lib/components/step-sequence/step-sequence.style.js +0 -29
@@ -1,154 +0,0 @@
1
- import styled, { css } from "styled-components";
2
- import Icon from "../icon";
3
- import { slideAnimation, fadeAnimation } from "./slide.config";
4
- import { SlideStyle } from "./slide/slide.style";
5
- import addFocusStyling from "../../style/utils/add-focus-styling";
6
- import baseTheme from "../../style/themes/base";
7
- const CarouselNavigationStyle = styled.div`
8
- margin-top: -32.5px;
9
- position: absolute;
10
- top: 52%;
11
- z-index: 20;
12
- `;
13
- const CarouselPreviousButtonWrapperStyle = styled(CarouselNavigationStyle)`
14
- margin-left: 8px;
15
- `;
16
- const CarouselNextButtonWrapperStyle = styled(CarouselNavigationStyle)`
17
- right: 0;
18
- margin-right: 8px;
19
- `;
20
- const CarouselStyledIcon = styled(Icon)`
21
- cursor: pointer;
22
- color: var(--colorsActionMajorYang100);
23
- &::before {
24
- font-size: 16px;
25
- }
26
- `;
27
- const CarouselStyledIconLeft = styled(CarouselStyledIcon)`
28
- transform: rotate(90deg);
29
- `;
30
- const CarouselStyledIconRight = styled(CarouselStyledIcon)`
31
- transform: rotate(-90deg);
32
- `;
33
- const oldFocusStyling = `
34
- outline: solid 2px var(--colorsSemanticFocus500);
35
- `;
36
- const CarouselButtonStyle = styled.button.attrs({
37
- type: "button"
38
- })`
39
- ${({
40
- disabled
41
- }) => css`
42
- border: none;
43
- border-radius: var(--borderRadius400);
44
- width: 40px;
45
- height: 40px;
46
- border-width: var(--borderWidth200);
47
- border-color: var(--colorsActionMajorTransparent);
48
- background-color: ${disabled ? "var(--colorsActionDisabled500)" : "var(--colorsActionMajor500)"};
49
-
50
- ${disabled && css`
51
- ${CarouselStyledIcon} {
52
- color: var(--colorsActionMajorYin030);
53
- }
54
- `}
55
-
56
- &:hover {
57
- background-color: var(--colorsActionMajor600);
58
- cursor: ${disabled ? "default" : "pointer"};
59
-
60
- ${disabled && css`
61
- background-color: var(--colorsActionDisabled500);
62
- cursor: default;
63
-
64
- ${CarouselStyledIcon} {
65
- cursor: default;
66
- }
67
- `}
68
- }
69
-
70
- &:active {
71
- border: none;
72
- }
73
-
74
- &:focus {
75
- ${({
76
- theme
77
- }) => `${!theme.focusRedesignOptOut ? addFocusStyling() : /* istanbul ignore next */oldFocusStyling}`}
78
-
79
- ::-moz-focus-inner {
80
- border: 0;
81
- }
82
-
83
- ${disabled && css`
84
- outline: none;
85
- `}
86
- }
87
- `}
88
- `;
89
- CarouselButtonStyle.defaultProps = {
90
- theme: baseTheme
91
- };
92
- const CarouselSelectorInputStyle = styled.input`
93
- display: none;
94
- `;
95
- const CarouselSelectorLabelStyle = styled.label`
96
- display: inline-block;
97
- border-radius: var(--borderRadius100);
98
- width: 10px;
99
- height: 10px;
100
- background: var(--colorsActionMinor200);
101
- margin: 0px 4px;
102
-
103
- &:hover {
104
- cursor: pointer;
105
- }
106
- `;
107
- const CarouselSelectorWrapperStyle = styled.div`
108
- ${css`
109
- height: 20px;
110
- margin-top: 25px;
111
- text-align: center;
112
-
113
- ${CarouselSelectorInputStyle}:checked {
114
- + ${CarouselSelectorLabelStyle} {
115
- width: 10px;
116
- height: 10px;
117
- background: var(--colorsActionMinor400);
118
- border-color: transparent;
119
- position: relative;
120
- }
121
- }
122
- `}
123
- `;
124
- const CarouselSelectorInputWrapperStyle = styled.span`
125
- display: inline-block;
126
- line-height: 20px;
127
- vertical-align: middle;
128
- `;
129
- const CarouselSliderWrapper = styled.div`
130
- transition: 0.4s;
131
- display: flex;
132
- position: relative;
133
-
134
- ${({
135
- elementIndex
136
- }) => css`
137
- left: ${10 - 80 * elementIndex}%;
138
-
139
- ${SlideStyle}:nth-of-type(${elementIndex + 1}) {
140
- transform: scale(1);
141
- opacity: 1;
142
- }
143
- `}
144
- `;
145
- const CarouselWrapperStyle = styled.div`
146
- .carbon-carousel__content {
147
- overflow: hidden;
148
- position: relative;
149
- }
150
-
151
- ${slideAnimation};
152
- ${fadeAnimation};
153
- `;
154
- export { CarouselNavigationStyle, CarouselNextButtonWrapperStyle, CarouselPreviousButtonWrapperStyle, CarouselButtonStyle, CarouselStyledIcon, CarouselStyledIconLeft, CarouselStyledIconRight, CarouselSelectorWrapperStyle, CarouselSelectorInputWrapperStyle, CarouselSelectorInputStyle, CarouselSelectorLabelStyle, CarouselWrapperStyle, CarouselSliderWrapper };
@@ -1,4 +0,0 @@
1
- export { Carousel } from "./carousel.component";
2
- export { default as Slide } from "./slide";
3
- export type { CarouselProps } from "./carousel.component";
4
- export type { SlideProps } from "./slide";
@@ -1,2 +0,0 @@
1
- export { Carousel } from "./carousel.component";
2
- export { default as Slide } from "./slide";
@@ -1,2 +0,0 @@
1
- export { default } from "./slide.component";
2
- export type { SlideProps } from "./slide.component";
@@ -1 +0,0 @@
1
- export { default } from "./slide.component";
@@ -1,12 +0,0 @@
1
- import React from "react";
2
- export interface SlideProps {
3
- /** Content of the Slide */
4
- children?: React.ReactNode;
5
- /** Accepts a callback function which is triggered on Slide click */
6
- onClick?: (ev: React.MouseEvent<HTMLDivElement>) => void;
7
- }
8
- export declare const Slide: {
9
- (props: SlideProps): React.JSX.Element;
10
- displayName: string;
11
- };
12
- export default Slide;
@@ -1,9 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- /* eslint-disable react/prop-types */
3
- import React from "react";
4
- import PropTypes from "prop-types";
5
- import tagComponent from "../../../__internal__/utils/helpers/tags/tags";
6
- import { SlideStyle } from "./slide.style";
7
- export const Slide = props => /*#__PURE__*/React.createElement(SlideStyle, _extends({}, props, tagComponent("slide", props)));
8
- Slide.displayName = "Slide";
9
- export default Slide;
@@ -1,2 +0,0 @@
1
- declare const SlideStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export { SlideStyle };
@@ -1,32 +0,0 @@
1
- import styled, { css } from "styled-components";
2
- const SlideStyle = styled.div`
3
- ${({
4
- onClick
5
- }) => css`
6
- box-sizing: border-box;
7
- display: inline-block;
8
- width: 100%;
9
- z-index: 10;
10
- border-radius: var(--borderRadius200);
11
- overflow: hidden;
12
-
13
- transition: 0.5s;
14
- min-width: 80%;
15
- transform: scale(0.9);
16
- opacity: 0.3;
17
- margin: 30px 0;
18
- box-shadow: var(--boxShadow200);
19
- background-color: var(--colorsUtilityYang100);
20
-
21
- ${onClick && css`
22
- :hover {
23
- transition: all 0.2s ease-in;
24
- transform: scale(1.02);
25
- cursor: pointer;
26
- }
27
- `}
28
- `}
29
- `;
30
-
31
- // eslint-disable-next-line import/prefer-default-export
32
- export { SlideStyle };
@@ -1,3 +0,0 @@
1
- declare const slideAnimation: import("styled-components").FlattenSimpleInterpolation;
2
- declare const fadeAnimation: import("styled-components").FlattenSimpleInterpolation;
3
- export { slideAnimation, fadeAnimation };
@@ -1,80 +0,0 @@
1
- import { css } from "styled-components";
2
- const animationStyle = "all 500ms cubic-bezier(.23,1.10,.69,1.01)";
3
- const slideAnimation = css`
4
- // NEXT
5
- .slide-next-enter {
6
- opacity: 0;
7
- left: 100%;
8
- position: absolute;
9
- }
10
-
11
- .slide-next-enter.slide-next-enter-active {
12
- opacity: 1;
13
- left: 0;
14
- transition: ${animationStyle};
15
- }
16
-
17
- .slide-next-exit {
18
- opacity: 1;
19
- left: 0;
20
- position: relative;
21
- }
22
-
23
- .slide-next-exit.slide-next-exit-active {
24
- opacity: 0;
25
- left: -100%;
26
- transition: ${animationStyle};
27
- }
28
-
29
- // PREVIOUS
30
- .slide-previous-enter {
31
- opacity: 0;
32
- left: -100%;
33
- position: absolute;
34
- }
35
-
36
- .slide-previous-enter.slide-previous-enter-active {
37
- opacity: 1;
38
- left: 0;
39
- transition: ${animationStyle};
40
- }
41
-
42
- .slide-previous-exit {
43
- opacity: 1;
44
- left: 0;
45
- position: relative;
46
- }
47
-
48
- .slide-previous-exit.slide-previous-exit-active {
49
- opacity: 0;
50
- left: 100%;
51
- transition: ${animationStyle};
52
- }
53
- `;
54
- const fadeAnimation = css`
55
- // FADE
56
- .carousel-transition-fade-enter {
57
- opacity: 0;
58
- position: absolute;
59
- }
60
-
61
- .carousel-transition-fade-enter.carousel-transition-fade-enter-active {
62
- opacity: 1;
63
- transition: ${animationStyle};
64
- }
65
-
66
- .carousel-transition-fade-exit {
67
- opacity: 1;
68
- position: relative;
69
- }
70
-
71
- .carousel-transition-fade-exit.carousel-transition-fade-exit-active {
72
- opacity: 0;
73
- transition: ${animationStyle};
74
- }
75
-
76
- .carbon-carousel__transition {
77
- height: 100%;
78
- }
79
- `;
80
- export { slideAnimation, fadeAnimation };
@@ -1,4 +0,0 @@
1
- export { default as StepSequence } from "./step-sequence.component";
2
- export type { StepSequenceProps } from "./step-sequence.component";
3
- export { default as StepSequenceItem } from "./step-sequence-item";
4
- export type { StepSequenceItemProps } from "./step-sequence-item";
@@ -1,2 +0,0 @@
1
- export { default as StepSequence } from "./step-sequence.component";
2
- export { default as StepSequenceItem } from "./step-sequence-item";
@@ -1,2 +0,0 @@
1
- export { default } from "./step-sequence-item.component";
2
- export type { StepSequenceItemProps } from "./step-sequence-item.component";
@@ -1 +0,0 @@
1
- export { default } from "./step-sequence-item.component";
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- export interface StepSequenceItemProps {
3
- /** Aria label */
4
- ariaLabel?: string;
5
- /** Hidden label to be displayed if item is complete */
6
- hiddenCompleteLabel?: string;
7
- /** Hidden label to be displayed if item is current */
8
- hiddenCurrentLabel?: string;
9
- /** Value to be displayed before text for uncomplete steps */
10
- indicator: string;
11
- /** Flag to hide the indicator for uncomplete steps */
12
- hideIndicator?: boolean;
13
- /** Status for the step */
14
- status?: "complete" | "current" | "incomplete";
15
- /** Content to be displayed */
16
- children: React.ReactNode;
17
- }
18
- export declare const StepSequenceItem: ({ hideIndicator, indicator, status, hiddenCompleteLabel, hiddenCurrentLabel, children, ariaLabel, ...rest }: StepSequenceItemProps) => React.JSX.Element;
19
- export default StepSequenceItem;
@@ -1,43 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import React, { useContext } from "react";
3
- import PropTypes from "prop-types";
4
- import { StyledStepSequenceItem, StyledStepSequenceItemContent, StyledStepSequenceItemIndicator, StyledStepSequenceItemHiddenLabel } from "./step-sequence-item.style";
5
- import Icon from "../../icon";
6
- import { StepSequenceContext } from "../step-sequence.component";
7
- export const StepSequenceItem = ({
8
- hideIndicator = false,
9
- indicator,
10
- status = "incomplete",
11
- hiddenCompleteLabel,
12
- hiddenCurrentLabel,
13
- children,
14
- ariaLabel,
15
- ...rest
16
- }) => {
17
- const {
18
- orientation
19
- } = useContext(StepSequenceContext);
20
- const indicatorText = () => {
21
- return !hideIndicator ? /*#__PURE__*/React.createElement(StyledStepSequenceItemIndicator, null, indicator) : null;
22
- };
23
- const icon = () => status === "complete" ? /*#__PURE__*/React.createElement(Icon, {
24
- type: "tick"
25
- }) : indicatorText();
26
- const hiddenLabel = () => {
27
- if (hiddenCompleteLabel && status === "complete") {
28
- return /*#__PURE__*/React.createElement(StyledStepSequenceItemHiddenLabel, null, hiddenCompleteLabel);
29
- }
30
- if (hiddenCurrentLabel && status === "current") {
31
- return /*#__PURE__*/React.createElement(StyledStepSequenceItemHiddenLabel, null, hiddenCurrentLabel);
32
- }
33
- return null;
34
- };
35
- return /*#__PURE__*/React.createElement(StyledStepSequenceItem, _extends({
36
- "data-component": "step-sequence-item",
37
- orientation: orientation,
38
- status: status,
39
- key: `step-seq-item-${indicator}`,
40
- "aria-label": ariaLabel
41
- }, rest), hiddenLabel(), /*#__PURE__*/React.createElement(StyledStepSequenceItemContent, null, icon(), /*#__PURE__*/React.createElement("span", null, children)));
42
- };
43
- export default StepSequenceItem;
@@ -1,6 +0,0 @@
1
- import { StepSequenceProps } from "../step-sequence.component";
2
- import { StepSequenceItemProps } from "./step-sequence-item.component";
3
- export declare const StyledStepSequenceItem: import("styled-components").StyledComponent<"li", any, Pick<StepSequenceItemProps, "status"> & Pick<StepSequenceProps, "orientation">, never>;
4
- export declare const StyledStepSequenceItemContent: import("styled-components").StyledComponent<"span", any, {}, never>;
5
- export declare const StyledStepSequenceItemHiddenLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
6
- export declare const StyledStepSequenceItemIndicator: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,96 +0,0 @@
1
- import styled, { css } from "styled-components";
2
- import StyledIcon from "../../icon/icon.style";
3
- export const StyledStepSequenceItem = styled.li`
4
- display: flex;
5
- align-items: center;
6
- flex-grow: 1;
7
- text-align: right;
8
- list-style-type: none;
9
- color: var(--colorsUtilityYin055);
10
-
11
- ${({
12
- orientation,
13
- status
14
- }) => {
15
- const side = orientation === "vertical" ? "left" : "top";
16
- return css`
17
- &::before {
18
- content: "";
19
- flex-grow: 1;
20
- display: block;
21
- margin: 0 16px;
22
- border-${side}: var(--sizing025) dashed var(--colorsUtilityYin055);
23
- }
24
-
25
- & span {
26
- display: flex;
27
- align-items: center;
28
- justify-content: center;
29
- }
30
-
31
- ${StyledIcon} {
32
- margin-right: 8px;
33
- color: var(--colorsBaseTheme, var(--colorsSemanticPositive500));
34
- }
35
-
36
- &:first-child {
37
- flex-grow: 0;
38
-
39
- &::before {
40
- display: none;
41
- }
42
- }
43
-
44
- ${status === "current" && css`
45
- color: var(--colorsUtilityYin090);
46
-
47
- &::before {
48
- border-${side}-color: var(--colorsUtilityYin090);
49
- border-${side}-style: solid;
50
- }
51
- `}
52
-
53
- ${status === "complete" && css`
54
- color: var(--colorsBaseTheme, var(--colorsSemanticPositive500));
55
-
56
- &::before {
57
- border-${side}-color: var(
58
- --colorsBaseTheme,
59
- var(--colorsSemanticPositive500)
60
- );
61
- border-${side}-style: solid;
62
- }
63
- `}
64
-
65
- ${orientation === "vertical" && css`
66
- flex-direction: column;
67
- align-items: flex-start;
68
-
69
- &::before {
70
- flex-grow: 0;
71
- border-left-width: var(--sizing025);
72
- height: 100%;
73
- min-height: var(--sizing300);
74
- margin: 12px 8px;
75
- }
76
- `}
77
- `;
78
- }}
79
- `;
80
- export const StyledStepSequenceItemContent = styled.span`
81
- display: flex;
82
- `;
83
- export const StyledStepSequenceItemHiddenLabel = styled.span`
84
- position: absolute !important;
85
- height: 1px;
86
- width: 1px;
87
- overflow: hidden;
88
- clip: rect(1px, 1px, 1px, 1px);
89
- `;
90
- export const StyledStepSequenceItemIndicator = styled.span`
91
- display: block;
92
- min-width: 16px;
93
- height: 16px;
94
- margin-right: 8px;
95
- text-align: center;
96
- `;
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- import { SpaceProps } from "styled-system";
3
- export declare const StepSequenceContext: React.Context<{
4
- orientation: "horizontal" | "vertical";
5
- }>;
6
- export interface StepSequenceProps extends SpaceProps {
7
- /** Step sequence items to be rendered */
8
- children: React.ReactNode;
9
- /** The direction that step sequence items should be rendered */
10
- orientation?: "horizontal" | "vertical";
11
- }
12
- export declare const StepSequence: ({ children, orientation, ...props }: StepSequenceProps) => React.JSX.Element;
13
- export default StepSequence;
@@ -1,29 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import React from "react";
3
- import PropTypes from "prop-types";
4
- import Logger from "../../__internal__/utils/logger";
5
- import StyledStepSequence from "./step-sequence.style";
6
- export const StepSequenceContext = /*#__PURE__*/React.createContext({
7
- orientation: "horizontal"
8
- });
9
- let deprecateWarnTriggered = false;
10
- export const StepSequence = ({
11
- children,
12
- orientation = "horizontal",
13
- ...props
14
- }) => {
15
- if (!deprecateWarnTriggered) {
16
- deprecateWarnTriggered = true;
17
- Logger.deprecate("The `StepSequence` component is deprecated and will soon be removed," + " please use the `StepFlow` component instead.");
18
- }
19
- return /*#__PURE__*/React.createElement(StyledStepSequence, _extends({
20
- "data-component": "step-sequence",
21
- orientation: orientation,
22
- p: 0
23
- }, props), /*#__PURE__*/React.createElement(StepSequenceContext.Provider, {
24
- value: {
25
- orientation
26
- }
27
- }, children));
28
- };
29
- export default StepSequence;
@@ -1,2 +0,0 @@
1
- export declare const STEP_SEQUENCE_STEPS: string[];
2
- export declare const STEP_SEQUENCE_ORIENTATION: string[];
@@ -1,2 +0,0 @@
1
- export const STEP_SEQUENCE_STEPS = ["complete", "current", "incomplete"];
2
- export const STEP_SEQUENCE_ORIENTATION = ["horizontal", "vertical"];
@@ -1,4 +0,0 @@
1
- import { SpaceProps } from "styled-system";
2
- import { StepSequenceProps } from "./step-sequence.component";
3
- declare const StyledStepSequence: import("styled-components").StyledComponent<"ol", any, Pick<StepSequenceProps, "orientation"> & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>;
4
- export default StyledStepSequence;
@@ -1,21 +0,0 @@
1
- import styled, { css } from "styled-components";
2
- import { space } from "styled-system";
3
- import { baseTheme } from "../../style/themes";
4
- const StyledStepSequence = styled.ol`
5
- display: flex;
6
- margin: 0;
7
- font-weight: bold;
8
-
9
- ${({
10
- orientation
11
- }) => orientation === "vertical" && css`
12
- flex-direction: column;
13
- height: 100%;
14
- `}
15
-
16
- ${space}
17
- `;
18
- StyledStepSequence.defaultProps = {
19
- theme: baseTheme
20
- };
21
- export default StyledStepSequence;
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- import { TagProps } from "../../__internal__/utils/helpers/tags/tags";
3
- export interface CarouselProps extends TagProps {
4
- /** Individual tabs */
5
- children?: React.ReactNode;
6
- /** [legacy] Custom className */
7
- className?: string;
8
- /** Enables the next button */
9
- enableNextButton?: boolean;
10
- /** Enables the previous button */
11
- enablePreviousButton?: boolean;
12
- /** Enables the slide selector */
13
- enableSlideSelector?: boolean;
14
- /** The selected tab on page load */
15
- initialSlideIndex?: number | string;
16
- /** Action to be called on slide change */
17
- onSlideChange?: (index: number, transitionDirection: string) => void;
18
- /** The selected slide */
19
- slideIndex?: number | string;
20
- }
21
- export declare const Carousel: {
22
- ({ children, className, enableSlideSelector, enablePreviousButton, enableNextButton, initialSlideIndex, onSlideChange, slideIndex, ...props }: CarouselProps): React.JSX.Element;
23
- displayName: string;
24
- };
25
- export default Carousel;