UNPKG

@gechiui/components

Version:
46 lines (39 loc) 1.23 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _element = require("@gechiui/element"); var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); /** * GeChiUI dependencies */ function TreeGridRow(_ref, ref) { let { children, level, positionInSet, setSize, isExpanded, ...props } = _ref; return (// Disable reason: Due to an error in the ARIA 1.1 specification, the // aria-posinset and aria-setsize properties are not supported on row // elements. This is being corrected in ARIA 1.2. Consequently, the // linting rule fails when validating this markup. // // eslint-disable-next-line jsx-a11y/role-supports-aria-props (0, _element.createElement)("tr", (0, _extends2.default)({}, props, { ref: ref, role: "row", "aria-level": level, "aria-posinset": positionInSet, "aria-setsize": setSize, "aria-expanded": isExpanded }), children) ); } var _default = (0, _element.forwardRef)(TreeGridRow); exports.default = _default; //# sourceMappingURL=row.js.map