bonsaif-ui 0.1.158 → 0.1.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/bonsaif-ui.js +4582 -4540
- package/dist/bonsaif-ui.umd.cjs +19 -19
- package/dist/components/ui/ImageLightbox.d.ts +8 -2
- package/dist/components/ui/ImageLightbox.d.ts.map +1 -1
- package/dist/components/ui/imageLightboxTypes.d.ts +2 -0
- package/dist/components/ui/imageLightboxTypes.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,11 @@ export interface ImageLightboxProps {
|
|
|
27
27
|
closeOnEscape?: boolean;
|
|
28
28
|
showCounter?: boolean;
|
|
29
29
|
showZoomControls?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Show a download control for the current slide (evidence / client deliverables).
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
showDownload?: boolean;
|
|
30
35
|
/**
|
|
31
36
|
* When true, next on the last slide goes to the first (and prev wraps the other way).
|
|
32
37
|
* @default true
|
|
@@ -40,9 +45,9 @@ export interface ImageLightboxProps {
|
|
|
40
45
|
zIndex?: number;
|
|
41
46
|
ariaLabel?: string;
|
|
42
47
|
}
|
|
43
|
-
export default function ImageLightbox({ open, onClose, slides, index: indexProp, onIndexChange, originRect, maxZoom, minZoom, zoomStep, closeOnBackdrop, closeOnEscape, showCounter, showZoomControls, loop, showThumbnails, zIndex, ariaLabel, }: ImageLightboxProps): import('react').ReactPortal | null;
|
|
48
|
+
export default function ImageLightbox({ open, onClose, slides, index: indexProp, onIndexChange, originRect, maxZoom, minZoom, zoomStep, closeOnBackdrop, closeOnEscape, showCounter, showZoomControls, showDownload, loop, showThumbnails, zIndex, ariaLabel, }: ImageLightboxProps): import('react').ReactPortal | null;
|
|
44
49
|
/** Click-to-open lightbox for images inside rendered HTML (or any img children). */
|
|
45
|
-
export declare function ImageLightboxHost({ children, className, style, maxZoom, minZoom, zoomStep, loop, showThumbnails, zIndex, }: {
|
|
50
|
+
export declare function ImageLightboxHost({ children, className, style, maxZoom, minZoom, zoomStep, loop, showThumbnails, showDownload, zIndex, }: {
|
|
46
51
|
children: ReactNode;
|
|
47
52
|
className?: string;
|
|
48
53
|
style?: CSSProperties;
|
|
@@ -51,6 +56,7 @@ export declare function ImageLightboxHost({ children, className, style, maxZoom,
|
|
|
51
56
|
zoomStep?: number;
|
|
52
57
|
loop?: boolean;
|
|
53
58
|
showThumbnails?: boolean;
|
|
59
|
+
showDownload?: boolean;
|
|
54
60
|
/** Stacking for the lightbox portal (raise when nested inside another modal). */
|
|
55
61
|
zIndex?: number;
|
|
56
62
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageLightbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ImageLightbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,aAAa,EAGlB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageLightbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/ImageLightbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,aAAa,EAGlB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAWf,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,UAAU,CAAC,EAA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C,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,2CAuDA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface ImageLightboxSlide {
|
|
2
2
|
src: string;
|
|
3
3
|
alt?: string;
|
|
4
|
+
/** Suggested filename when downloading the slide. */
|
|
5
|
+
downloadName?: string;
|
|
4
6
|
}
|
|
5
7
|
/** Screen-space rect used to animate open/close from the clicked thumbnail. */
|
|
6
8
|
export interface ImageLightboxOriginRect {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageLightboxTypes.d.ts","sourceRoot":"","sources":["../../../src/components/ui/imageLightboxTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"imageLightboxTypes.d.ts","sourceRoot":"","sources":["../../../src/components/ui/imageLightboxTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+EAA+E;AAC/E,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB"}
|