UNPKG

@chayns-components/gallery

Version:

A set of beautiful React components for developing your own applications with chayns.

43 lines (42 loc) 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StyledPreviewItemLoadingIcon = exports.StyledPreviewItemImageWrapper = exports.StyledPreviewItemImage = exports.StyledMotionPreviewItem = void 0; var _react = require("motion/react"); var _styledComponents = _interopRequireDefault(require("styled-components")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } const StyledMotionPreviewItem = exports.StyledMotionPreviewItem = (0, _styledComponents.default)(_react.motion.div)` display: flex; width: 100%; height: 100%; `; const StyledPreviewItemImageWrapper = exports.StyledPreviewItemImageWrapper = _styledComponents.default.div` display: flex; width: 100%; height: 100%; aspect-ratio: ${({ $ratio }) => $ratio}; `; const StyledPreviewItemImage = exports.StyledPreviewItemImage = _styledComponents.default.img` background-color: ${({ theme }) => theme['101']}; box-shadow: 0 0 0 1px rgba(${({ theme }) => theme['009-rgb']}, 0.08) inset; z-index: 1; width: 100%; height: 100%; object-fit: cover; `; const StyledPreviewItemLoadingIcon = exports.StyledPreviewItemLoadingIcon = _styledComponents.default.div` position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); `; //# sourceMappingURL=PreviewItem.styles.js.map