yet-another-react-lightbox
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -0,2 +1,4 @@ | ||
import { Lightbox } from "./Lightbox.js"; | ||
export * from "./types.js"; | ||
export * from "./Lightbox.js"; | ||
export default Lightbox; |
@@ -0,2 +1,4 @@ | ||
import { Lightbox } from "./Lightbox.js"; | ||
export * from "./types.js"; | ||
export * from "./Lightbox.js"; | ||
export default Lightbox; |
/// <reference types="react" /> | ||
import { LightboxProps } from "./types.js"; | ||
declare type MakePartial<T> = T extends object ? Partial<T> : T; | ||
declare type NestedPartial<T extends object> = { | ||
[P in keyof T]?: MakePartial<T[P]>; | ||
declare type DeepPartial<T, K extends keyof T> = Omit<T, K> & { | ||
[P in keyof Pick<T, K>]?: Partial<Pick<T, K>[P]>; | ||
}; | ||
declare type NestedOptional<T, K extends keyof T> = Omit<T, K> & NestedPartial<Pick<T, K>>; | ||
export declare const Lightbox: (props: NestedOptional<Partial<LightboxProps>, "carousel" | "animation" | "render" | "toolbar" | "on">) => JSX.Element; | ||
export declare const Lightbox: (props: DeepPartial<Partial<LightboxProps>, "carousel" | "animation" | "render" | "toolbar" | "on">) => JSX.Element; | ||
export {}; |
{ | ||
"name": "yet-another-react-lightbox", | ||
"version": "1.2.3", | ||
"description": "Modern lightbox component for React", | ||
"version": "1.3.0", | ||
"description": "Modern React lightbox component", | ||
"author": "Igor Danchenko", | ||
@@ -85,4 +85,4 @@ "license": "MIT", | ||
"@types/react-dom": "^18.0.5", | ||
"@typescript-eslint/eslint-plugin": "^5.26.0", | ||
"@typescript-eslint/parser": "^5.26.0", | ||
"@typescript-eslint/eslint-plugin": "^5.27.0", | ||
"@typescript-eslint/parser": "^5.27.0", | ||
"autoprefixer": "^10.4.7", | ||
@@ -101,3 +101,3 @@ "eslint": "^8.16.0", | ||
"jest-environment-jsdom": "^28.1.0", | ||
"lint-staged": "^12.4.2", | ||
"lint-staged": "^12.4.3", | ||
"npm-run-all": "^4.1.5", | ||
@@ -104,0 +104,0 @@ "postcss": "^8.4.14", |
@@ -11,7 +11,5 @@ # Yet Another React Lightbox | ||
Coming soon... | ||
## Documentation | ||
Coming soon... | ||
[https://yet-another-react-lightbox.vercel.app/](https://yet-another-react-lightbox.vercel.app/) | ||
@@ -34,6 +32,6 @@ ## Installation | ||
import * as React from "react"; | ||
import { Lightbox } from "yet-another-react-lightbox"; | ||
import Lightbox from "yet-another-react-lightbox"; | ||
import "yet-another-react-lightbox/styles.css"; | ||
const Page = () => { | ||
const App = () => { | ||
const [open, setOpen] = React.useState(false); | ||
@@ -60,3 +58,3 @@ | ||
export default Page; | ||
export default App; | ||
``` | ||
@@ -63,0 +61,0 @@ |
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
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
76613
1679
62