@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.6 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 abstract_switch_1 = require("../internal/abstract-switch");
var RadioButtonWrapper = (function (_super) {
__extends(RadioButtonWrapper, _super);
function RadioButtonWrapper() {
return _super !== null && _super.apply(this, arguments) || this;
}
RadioButtonWrapper.prototype.findAbstractSwitch = function () {
return new abstract_switch_1.default(this.getElement());
};
RadioButtonWrapper.prototype.findLabel = function () {
return this.findAbstractSwitch().findLabel();
};
RadioButtonWrapper.prototype.findNativeInput = function () {
return this.findAbstractSwitch().findNativeInput();
};
RadioButtonWrapper.prototype.findDescription = function () {
return this.findAbstractSwitch().findDescription();
};
return RadioButtonWrapper;
}(dom_1.ElementWrapper));
exports.default = RadioButtonWrapper;