yet-another-react-lightbox
Advanced tools
Comparing version 3.15.2 to 3.15.3
@@ -21,2 +21,6 @@ import * as React from 'react'; | ||
border?: number; | ||
/** thumbnail border style */ | ||
borderStyle?: string; | ||
/** thumbnail border color */ | ||
borderColor?: string; | ||
/** thumbnail border radius */ | ||
@@ -23,0 +27,0 @@ borderRadius?: number; |
@@ -99,3 +99,3 @@ import { useLightboxProps, composePrefix, createIcon, cssClass, isImageSlide, clsx, ImageSlide, makeComposePrefix, useEventCallback, cssVar, useRTL, useEvents, useLightboxState, useSensors, useKeyboardNavigation, useAnimation, cleanup, calculatePreload, hasSlides, getSlide, makeUseContext, LightboxPropsProvider, createIconDisabled, IconButton, addToolbarButton, createModule } from '../../index.js'; | ||
const thumbnails = useThumbnailsProps(); | ||
const { position, width, height, border, borderRadius, padding, gap, vignette } = thumbnails; | ||
const { position, width, height, border, borderStyle, borderColor, borderRadius, padding, gap, vignette } = thumbnails; | ||
const index = globalIndex; | ||
@@ -183,2 +183,4 @@ const animationDuration = (animation === null || animation === void 0 ? void 0 : animation.duration) || 0; | ||
: null), | ||
...(borderStyle ? { [cssVar(cssThumbnailPrefix("border_style"))]: borderStyle } : null), | ||
...(borderColor ? { [cssVar(cssThumbnailPrefix("border_color"))]: borderColor } : null), | ||
...(borderRadius !== defaultThumbnailsProps.borderRadius | ||
@@ -185,0 +187,0 @@ ? { [cssVar(cssThumbnailPrefix("border_radius"))]: `${borderRadius}px` } |
{ | ||
"name": "yet-another-react-lightbox", | ||
"version": "3.15.2", | ||
"version": "3.15.3", | ||
"description": "Modern React lightbox component", | ||
@@ -5,0 +5,0 @@ "author": "Igor Danchenko", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
216850
4048