UNPKG

wix-style-react

Version:
13 lines (10 loc) 677 B
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import BreadcrumbsDriverFactory from './Breadcrumbs.driver'; import styles from './Breadcrumbs.scss'; export default (function (driverInterface) { return _extends({}, BreadcrumbsDriverFactory(driverInterface), { isItemFullWidthAt: function isItemFullWidthAt(position) { return driverInterface.element.querySelectorAll('.' + styles.item)[position].classList.contains(styles.itemFullWidth); } }); });