@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
35 lines (34 loc) • 1.69 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("../../../tutorial-panel/styles.selectors.js");
var link_1 = require("../link");
var tutorial_1 = require("./tutorial");
var TutorialPanelWrapper = (function (_super) {
__extends(TutorialPanelWrapper, _super);
function TutorialPanelWrapper() {
return _super !== null && _super.apply(this, arguments) || this;
}
TutorialPanelWrapper.prototype.findTutorials = function () {
return this.findAllByClassName(styles_selectors_js_1.default['tutorial-box']).map(function (item) { return new tutorial_1.default(item.getElement()); });
};
TutorialPanelWrapper.prototype.findDownloadLink = function () {
return this.findComponent("." + styles_selectors_js_1.default['download-link'], link_1.default);
};
TutorialPanelWrapper.rootSelector = styles_selectors_js_1.default['tutorial-panel'];
return TutorialPanelWrapper;
}(dom_1.ComponentWrapper));
exports.default = TutorialPanelWrapper;