@page-speed/lightbox 0.0.1
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/README.md +244 -0
- package/dist/__mocks__/styleMock.d.ts +4 -0
- package/dist/components/Layouts/HorizontalLayout.d.ts +16 -0
- package/dist/components/Lightbox.d.ts +10 -0
- package/dist/components/LightboxChrome.d.ts +21 -0
- package/dist/components/LightboxContent.d.ts +13 -0
- package/dist/components/LightboxOverlay.d.ts +12 -0
- package/dist/components/index.css +99 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +21964 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +2033 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.js +2079 -0
- package/dist/hooks/useGalleryState.d.ts +14 -0
- package/dist/hooks/useKeyboardShortcuts.d.ts +1 -0
- package/dist/hooks/useLightbox.d.ts +20 -0
- package/dist/hooks/useLightboxState.d.ts +9 -0
- package/dist/hooks/useResponsiveness.d.ts +7 -0
- package/dist/index.cjs +22043 -0
- package/dist/index.css +99 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +22043 -0
- package/dist/renderers/ComponentRenderer.d.ts +9 -0
- package/dist/renderers/ImageRenderer.d.ts +14 -0
- package/dist/renderers/PDFRenderer.d.ts +11 -0
- package/dist/renderers/VideoRenderer.d.ts +13 -0
- package/dist/renderers/index.css +99 -0
- package/dist/renderers/index.d.ts +4 -0
- package/dist/renderers/index.js +21620 -0
- package/dist/types.d.ts +62 -0
- package/package.json +84 -0
package/dist/index.css
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* src/styles/Lightbox.module.css */
|
|
2
|
+
.Lightbox_lightboxPortal {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
z-index: 1000;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
}
|
|
10
|
+
.Lightbox_overlay {
|
|
11
|
+
position: fixed;
|
|
12
|
+
inset: 0;
|
|
13
|
+
background: var(--lightbox-overlay, rgba(0, 0, 0, 0.85));
|
|
14
|
+
}
|
|
15
|
+
.Lightbox_horizontalLayoutRoot {
|
|
16
|
+
position: relative;
|
|
17
|
+
max-width: var(--lightbox-max-width, 90vw);
|
|
18
|
+
width: 100%;
|
|
19
|
+
padding: var(--lightbox-padding, 24px);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
.Lightbox_horizontalLayoutContainer {
|
|
23
|
+
position: relative;
|
|
24
|
+
background: var(--lightbox-modal-bg, #111);
|
|
25
|
+
color: var(--lightbox-text, #fff);
|
|
26
|
+
border-radius: var(--lightbox-radius, 12px);
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
}
|
|
31
|
+
.Lightbox_mainContent {
|
|
32
|
+
flex: 1;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
background: var(--lightbox-content-bg, #000);
|
|
37
|
+
}
|
|
38
|
+
.Lightbox_toolbar {
|
|
39
|
+
border-top: 1px solid var(--lightbox-border, rgba(255, 255, 255, 0.1));
|
|
40
|
+
}
|
|
41
|
+
.Lightbox_media {
|
|
42
|
+
max-width: 100%;
|
|
43
|
+
max-height: 80vh;
|
|
44
|
+
object-fit: contain;
|
|
45
|
+
}
|
|
46
|
+
.Lightbox_chrome {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
padding: 8px 12px;
|
|
51
|
+
background: var(--lightbox-toolbar, rgba(0, 0, 0, 0.5));
|
|
52
|
+
}
|
|
53
|
+
.Lightbox_chromeSection {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: 8px;
|
|
57
|
+
}
|
|
58
|
+
.Lightbox_navButton,
|
|
59
|
+
.Lightbox_closeButton {
|
|
60
|
+
border: none;
|
|
61
|
+
border-radius: 999px;
|
|
62
|
+
padding: 6px 10px;
|
|
63
|
+
background: rgba(255, 255, 255, 0.08);
|
|
64
|
+
color: inherit;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
.Lightbox_navButton:disabled {
|
|
68
|
+
opacity: 0.4;
|
|
69
|
+
cursor: default;
|
|
70
|
+
}
|
|
71
|
+
.Lightbox_counter {
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
opacity: 0.85;
|
|
74
|
+
}
|
|
75
|
+
.Lightbox_captionContainer {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
}
|
|
79
|
+
.Lightbox_captionTitle {
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
}
|
|
83
|
+
.Lightbox_captionText {
|
|
84
|
+
font-size: 12px;
|
|
85
|
+
opacity: 0.85;
|
|
86
|
+
}
|
|
87
|
+
.Lightbox_pdfContainer {
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 80vh;
|
|
90
|
+
background: #111;
|
|
91
|
+
}
|
|
92
|
+
.Lightbox_pdfFallback {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 100%;
|
|
98
|
+
color: var(--lightbox-text-muted, rgba(255, 255, 255, 0.7));
|
|
99
|
+
}
|