@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
43 lines (42 loc) • 1.81 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 radio_button_1 = require("../radio-group/radio-button");
var styles_selectors_js_1 = require("../../../tiles/styles.selectors.js");
var TileWrapper = (function (_super) {
__extends(TileWrapper, _super);
function TileWrapper() {
return _super !== null && _super.apply(this, arguments) || this;
}
TileWrapper.prototype.findRadioButton = function () {
return new radio_button_1.default(this.getElement());
};
TileWrapper.prototype.findLabel = function () {
return this.findRadioButton().findLabel();
};
TileWrapper.prototype.findDescription = function () {
return this.findRadioButton().findDescription();
};
TileWrapper.prototype.findImage = function () {
return this.findByClassName(styles_selectors_js_1.default.image);
};
TileWrapper.prototype.findNativeInput = function () {
return this.findRadioButton().findNativeInput();
};
TileWrapper.rootSelector = styles_selectors_js_1.default['tile-container'];
return TileWrapper;
}(dom_1.ElementWrapper));
exports.default = TileWrapper;