wix-style-react
Version:
38 lines (36 loc) • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.dataAttributes = exports.dataHooks = void 0;
// component internal data-hooks
var dataHooks = {
addItem: 'add-image',
overlay: 'image-viewer-overlay',
imagesContainer: 'images-container',
update: 'update-image',
loader: 'image-viewer-loader',
image: 'image-viewer-current-image',
previousImage: 'image-viewer-previous-image',
updateTooltip: 'update-image-tooltip',
downloadTooltip: 'download-image-tooltip',
removeTooltip: 'remove-image-tooltip',
moreTooltip: 'more-image-tooltip',
errorTooltip: 'error-image-tooltip',
remove: 'remove-image',
download: 'download-image',
more: 'more-image',
actionsMenu: 'more-actions-menu'
};
/**
* We use data-attributes to write css-states to the DOM for tests.
* We can't use StylableDOMUtil (the standard solution) since it's not behaving well.
*/
exports.dataHooks = dataHooks;
var dataAttributes = {
imageLoaded: 'data-image-loaded',
imageVisible: 'data-image-visible',
containerVisible: 'data-container-visible',
disabled: 'data-disabled'
};
exports.dataAttributes = dataAttributes;