flipper-ui 0.26.21 → 0.26.23
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/core/PinInput.js
CHANGED
|
@@ -58,7 +58,7 @@ var PinInput = function PinInput(_ref) {
|
|
|
58
58
|
}, [isValidating]);
|
|
59
59
|
var onPaste = function onPaste(event) {
|
|
60
60
|
var pastedValue = event.clipboardData.getData('text/plain');
|
|
61
|
-
var splitValues = pastedValue.split('');
|
|
61
|
+
var splitValues = pastedValue.trim().split('');
|
|
62
62
|
var intValues = [];
|
|
63
63
|
var _iterator = _createForOfIteratorHelper(splitValues),
|
|
64
64
|
_step;
|
|
@@ -68,9 +68,9 @@ var StepCardDetails = function StepCardDetails(props) {
|
|
|
68
68
|
justifyContent: "start"
|
|
69
69
|
}, /*#__PURE__*/_react["default"].createElement(StepsList, null)), image && /*#__PURE__*/_react["default"].createElement(_styles.StepCardColumn, {
|
|
70
70
|
justifyContent: "end"
|
|
71
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
71
|
+
}, typeof image === 'string' ? /*#__PURE__*/_react["default"].createElement("img", {
|
|
72
72
|
src: image,
|
|
73
73
|
alt: "Step Icon"
|
|
74
|
-
})));
|
|
74
|
+
}) : image));
|
|
75
75
|
};
|
|
76
76
|
exports.StepCardDetails = StepCardDetails;
|
package/core/StepCard/index.d.ts
CHANGED
|
@@ -86,11 +86,18 @@ export interface IStepCardProps {
|
|
|
86
86
|
subTitle?: string;
|
|
87
87
|
/**
|
|
88
88
|
* The image to be displayed on the expansion panel details
|
|
89
|
+
* Accepts a string or a JSX.Element
|
|
89
90
|
*
|
|
90
|
-
* @type {string}
|
|
91
|
+
* @type {string | JSX.Element}
|
|
92
|
+
* @example
|
|
93
|
+
* <StepCard image={<img src="https://picsum.photos/200" />} />
|
|
94
|
+
* @example
|
|
95
|
+
* <StepCard image="https://picsum.photos/200" />
|
|
96
|
+
* @example
|
|
97
|
+
* <StepCard image={<Image />} />
|
|
91
98
|
* @memberof IStepCardProps
|
|
92
99
|
*/
|
|
93
|
-
image?: string;
|
|
100
|
+
image?: string | JSX.Element;
|
|
94
101
|
/**
|
|
95
102
|
* The number of remaining steps
|
|
96
103
|
* @type {number}
|