Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@titelmedia/bricks-gallery

Package Overview
Dependencies
Maintainers
0
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@titelmedia/bricks-gallery - npm Package Compare versions

Comparing version 2.8.1 to 2.9.0

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

# [2.9.0](https://github.com/titel-media/bricks-lerna/compare/v2.8.13...v2.9.0) (2024-07-31)
### Bug Fixes
- Removed smooth-scroll & drawer ([5d12f3c](https://github.com/titel-media/bricks-lerna/commit/5d12f3c54fbdab7ccce10403ca64d45720d75ee2))
## [2.8.1](https://github.com/titel-media/bricks-lerna/compare/v2.8.0...v2.8.1) (2024-05-16)

@@ -8,0 +14,0 @@

4

dist/galleries/horizontal/index.js

@@ -10,4 +10,4 @@ "use strict";

var _styles = require("./styles");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
const Horizontal = ({

@@ -14,0 +14,0 @@ items,

@@ -8,4 +8,4 @@ "use strict";

var _styledComponents = _interopRequireDefault(require("styled-components"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const Wrapper = _styledComponents.default.div`
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const Wrapper = exports.Wrapper = _styledComponents.default.div`
position: relative;

@@ -22,4 +22,3 @@ height: 100vh;

`;
exports.Wrapper = Wrapper;
const ContainerDiv = _styledComponents.default.div`
const ContainerDiv = exports.ContainerDiv = _styledComponents.default.div`
position: absolute;

@@ -39,4 +38,3 @@ top: 0;

`;
exports.ContainerDiv = ContainerDiv;
const ImageWrapper = _styledComponents.default.div`
const ImageWrapper = exports.ImageWrapper = _styledComponents.default.div`
padding: ${props => props.imagePadding ? '0 8px' : '0'};

@@ -47,8 +45,6 @@ width: ${props => props.fullHeight ? `calc(${100 * props.aspectRatio}vh)` : `calc(${90 * props.aspectRatio}vh - ${90 * props.aspectRatio}px)`};

`;
exports.ImageWrapper = ImageWrapper;
const Image = _styledComponents.default.img`
const Image = exports.Image = _styledComponents.default.img`
max-width: 100%;
height: ${props => props.fullHeight ? '100%' : 'calc(90vh - 90px)'};
`;
exports.Image = Image;
//# sourceMappingURL=styles.js.map

@@ -11,4 +11,4 @@ "use strict";

var _breakpoints = require("@titelmedia/bricks-theme/lib/variables/breakpoints");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
const Overlay = ({

@@ -15,0 +15,0 @@ items,

@@ -9,4 +9,4 @@ "use strict";

var _breakpoints = require("@titelmedia/bricks-theme/lib/variables/breakpoints");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
const setPositionHorizontal = position => {

@@ -48,3 +48,3 @@ switch (position) {

};
const Wrapper = _styledComponents.default.div`
const Wrapper = exports.Wrapper = _styledComponents.default.div`
align-items: center;

@@ -56,4 +56,3 @@ justify-content: center;

`;
exports.Wrapper = Wrapper;
const ContainerWrapper = _styledComponents.default.div`
const ContainerWrapper = exports.ContainerWrapper = _styledComponents.default.div`
min-height: 100vh;

@@ -84,4 +83,3 @@ position: relative;

`;
exports.ContainerWrapper = ContainerWrapper;
const ImageContainer = _styledComponents.default.div`
const ImageContainer = exports.ImageContainer = _styledComponents.default.div`
position: absolute;

@@ -96,4 +94,3 @@ @media (max-width: ${_breakpoints.BREAKPOINTS.md}px) {

`;
exports.ImageContainer = ImageContainer;
const Image = _styledComponents.default.img`
const Image = exports.Image = _styledComponents.default.img`
max-width: 100%;

@@ -107,8 +104,6 @@ height: 100vh;

`;
exports.Image = Image;
const ImageItem = _styledComponents.default.img`
const ImageItem = exports.ImageItem = _styledComponents.default.img`
width: ${props => `calc(${10 * props.aspectRatio}vh - ${10 * props.aspectRatio}px);`};
`;
exports.ImageItem = ImageItem;
const WrapperOverlay = _styledComponents.default.div`
const WrapperOverlay = exports.WrapperOverlay = _styledComponents.default.div`
width: 100%;

@@ -124,4 +119,3 @@ height: auto;

`;
exports.WrapperOverlay = WrapperOverlay;
const OverlayContainer = _styledComponents.default.div`
const OverlayContainer = exports.OverlayContainer = _styledComponents.default.div`
padding: 80px 0;

@@ -132,3 +126,2 @@ display: flex;

`;
exports.OverlayContainer = OverlayContainer;
//# sourceMappingURL=styles.js.map

@@ -9,7 +9,5 @@ "use strict";

var _index = require("./galleries/horizontal/index.js");
var _index2 = require("./galleries/drawer/index.js");
var _smoothScroll = require("./galleries/smooth-scroll");
var _overlay = require("./galleries/overlay");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const Gallery = ({

@@ -34,8 +32,2 @@ items,

switch (galleryType) {
case 'drawer':
C = _index2.Drawer;
break;
case 'smooth-scroll':
C = _smoothScroll.SmoothScroll;
break;
case 'overlay':

@@ -42,0 +34,0 @@ C = _overlay.Overlay;

import React from 'react';
import { Horizontal } from './galleries/horizontal/index.js';
import { Drawer } from './galleries/drawer/index.js';
import { SmoothScroll } from './galleries/smooth-scroll';
import { Overlay } from './galleries/overlay';

@@ -26,8 +24,2 @@

switch (galleryType) {
case 'drawer':
C = Drawer;
break;
case 'smooth-scroll':
C = SmoothScroll;
break;
case 'overlay':

@@ -34,0 +26,0 @@ C = Overlay;

{
"name": "@titelmedia/bricks-gallery",
"version": "2.8.1",
"version": "2.9.0",
"description": "> TODO: description",

@@ -29,7 +29,5 @@ "author": "highsnob",

"@titelmedia/bricks-theme": "^2.7.0",
"@titelmedia/bricks-utils": "^2.3.0",
"gsap": "^3.8.0",
"lodash": "^4.17.21"
"@titelmedia/bricks-utils": "^2.3.0"
},
"gitHead": "12573f2bc3f1a6f94ebef79b4b1ff8b68c30ddef"
"gitHead": "87e48c3da51c4cfbbc0fa725797f7b92fe677d1e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc