UNPKG

wix-style-react

Version:
31 lines (29 loc) 971 B
// component internal data-hooks export const 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. */ export const dataAttributes = { imageLoaded: 'data-image-loaded', imageVisible: 'data-image-visible', containerVisible: 'data-container-visible', disabled: 'data-disabled', };