flipper-ui 0.26.18 → 0.26.19
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.
|
@@ -34,7 +34,8 @@ var StepCardPanel = function StepCardPanel(props) {
|
|
|
34
34
|
time = props.time,
|
|
35
35
|
showIcon = props.showIcon,
|
|
36
36
|
subTitle = props.subTitle,
|
|
37
|
-
titleProps = props.titleProps
|
|
37
|
+
titleProps = props.titleProps,
|
|
38
|
+
fullWidth = props.fullWidth;
|
|
38
39
|
var TitleIcon = function TitleIcon() {
|
|
39
40
|
return /*#__PURE__*/_react["default"].createElement(_icons.CheckCircle, {
|
|
40
41
|
style: {
|
|
@@ -120,12 +121,14 @@ var StepCardPanel = function StepCardPanel(props) {
|
|
|
120
121
|
return /*#__PURE__*/_react["default"].createElement(_styles.StepContainer, {
|
|
121
122
|
withPadding: !expandable
|
|
122
123
|
}, /*#__PURE__*/_react["default"].createElement(_styles.StepCardRow, {
|
|
124
|
+
fullWidth: fullWidth,
|
|
123
125
|
height: expandable ? '100px' : '100%'
|
|
124
126
|
}, /*#__PURE__*/_react["default"].createElement(_styles.StepCardColumn, {
|
|
125
127
|
justifyContent: "start"
|
|
126
128
|
}, /*#__PURE__*/_react["default"].createElement(TitleColumn, null)), /*#__PURE__*/_react["default"].createElement(_styles.StepCardColumn, {
|
|
127
129
|
justifyContent: "end"
|
|
128
130
|
}, expandable ? /*#__PURE__*/_react["default"].createElement(Summary, null) : /*#__PURE__*/_react["default"].createElement(NormalProgress, null))), showBottomPercentage && /*#__PURE__*/_react["default"].createElement(_styles.StepCardRow, {
|
|
131
|
+
fullWidth: fullWidth,
|
|
129
132
|
height: "15px"
|
|
130
133
|
}, /*#__PURE__*/_react["default"].createElement(_styles.BarWrapper, null, /*#__PURE__*/_react["default"].createElement(BottomLineProgress, null))));
|
|
131
134
|
};
|
package/core/StepCard/index.d.ts
CHANGED
|
@@ -9,6 +9,13 @@ import { PropWithDataCy } from '../types';
|
|
|
9
9
|
* @interface IStepCardProps
|
|
10
10
|
*/
|
|
11
11
|
export interface IStepCardProps {
|
|
12
|
+
/**
|
|
13
|
+
* Whether the step card is full width
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
* @memberof IStepCardProps
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
fullWidth?: boolean;
|
|
12
19
|
/**
|
|
13
20
|
* Whether the step card are loading
|
|
14
21
|
* @type {boolean}
|
package/core/StepCard/index.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
9
|
var _ExpansionPanel = _interopRequireDefault(require("@material-ui/core/ExpansionPanel"));
|
|
9
10
|
var _react = _interopRequireDefault(require("react"));
|
|
10
11
|
var _Skeleton = _interopRequireDefault(require("./Skeleton"));
|
|
@@ -62,12 +63,16 @@ var StepCard = function StepCard(props) {
|
|
|
62
63
|
linearProgressBarProps = props.linearProgressBarProps,
|
|
63
64
|
summaryLinearProgressBarProps = props.summaryLinearProgressBarProps,
|
|
64
65
|
rootProps = props.rootProps,
|
|
65
|
-
onStepUrlClick = props.onStepUrlClick
|
|
66
|
+
onStepUrlClick = props.onStepUrlClick,
|
|
67
|
+
fullWidth = props.fullWidth;
|
|
66
68
|
return loading ? /*#__PURE__*/_react["default"].createElement(_Skeleton["default"], {
|
|
67
69
|
expandable: expandable,
|
|
68
70
|
showIcon: showIcon,
|
|
69
71
|
showBottomPercentage: showBottomPercentage
|
|
70
|
-
}) : /*#__PURE__*/_react["default"].createElement(_styles.Container,
|
|
72
|
+
}) : /*#__PURE__*/_react["default"].createElement(_styles.Container, (0, _extends2["default"])({
|
|
73
|
+
fullWidth: fullWidth
|
|
74
|
+
}, rootProps), /*#__PURE__*/_react["default"].createElement(_ExpansionPanel["default"], null, /*#__PURE__*/_react["default"].createElement(_StepCardPanel.StepCardPanel, {
|
|
75
|
+
fullWidth: fullWidth,
|
|
71
76
|
title: title,
|
|
72
77
|
summary: summary,
|
|
73
78
|
expandable: expandable,
|
|
@@ -4,11 +4,15 @@ interface IStepContainerProps {
|
|
|
4
4
|
}
|
|
5
5
|
interface IRowProps {
|
|
6
6
|
height: React.CSSProperties['maxHeight'];
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface IContainerProps {
|
|
10
|
+
fullWidth?: boolean;
|
|
7
11
|
}
|
|
8
12
|
interface IColumnProps {
|
|
9
13
|
justifyContent: React.CSSProperties['justifyContent'];
|
|
10
14
|
}
|
|
11
|
-
export declare const Container: import("styled-components").StyledComponent<"div", any,
|
|
15
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, IContainerProps, never>;
|
|
12
16
|
export declare const StepCardRow: import("styled-components").StyledComponent<"div", any, IRowProps, never>;
|
|
13
17
|
export declare const StepContainer: import("styled-components").StyledComponent<"div", any, IStepContainerProps, never>;
|
|
14
18
|
export declare const StepCardColumn: import("styled-components").StyledComponent<"div", any, IColumnProps, never>;
|
package/core/StepCard/styles.js
CHANGED
|
@@ -10,9 +10,13 @@ var _Box = _interopRequireDefault(require("@material-ui/core/Box"));
|
|
|
10
10
|
var _nginformaticaStyleguide = require("nginformatica-styleguide");
|
|
11
11
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
13
|
-
var Container = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n width: 100%;\n max-width:
|
|
13
|
+
var Container = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n width: 100%;\n max-width: ", ";\n"])), function (props) {
|
|
14
|
+
return props.fullWidth ? '100%' : '1100px';
|
|
15
|
+
});
|
|
14
16
|
exports.Container = Container;
|
|
15
|
-
var StepCardRow = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n max-width:
|
|
17
|
+
var StepCardRow = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n max-width: ", ";\n height: ", ";\n"])), function (props) {
|
|
18
|
+
return props.fullWidth ? '100%' : '1100px';
|
|
19
|
+
}, function (props) {
|
|
16
20
|
return props.height;
|
|
17
21
|
});
|
|
18
22
|
exports.StepCardRow = StepCardRow;
|