@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
38 lines (37 loc) • 1.86 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var dom_1 = require("@awsui/test-utils-core/dom");
var styles_selectors_js_1 = require("../../../progress-bar/styles.selectors.js");
var ProgressBarWrapper = (function (_super) {
__extends(ProgressBarWrapper, _super);
function ProgressBarWrapper() {
return _super !== null && _super.apply(this, arguments) || this;
}
ProgressBarWrapper.prototype.findPercentageText = function () {
return this.findByClassName(styles_selectors_js_1.default.percentage);
};
ProgressBarWrapper.prototype.findResultButton = function () {
var _a;
return ((_a = this.findByClassName(styles_selectors_js_1.default['result-button'])) === null || _a === void 0 ? void 0 : _a.findButton()) || null;
};
ProgressBarWrapper.prototype.findResultText = function (status) {
var statusClassName = status ? "." + styles_selectors_js_1.default["result-container-" + status] + " " : '';
return this.find(statusClassName + "." + styles_selectors_js_1.default['result-text']);
};
ProgressBarWrapper.rootSelector = styles_selectors_js_1.default.root;
return ProgressBarWrapper;
}(dom_1.ComponentWrapper));
exports.default = ProgressBarWrapper;