yet-another-react-lightbox 2.4.1 → 2.4.2
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.
|
@@ -4,4 +4,4 @@ export type IconButtonProps = Omit<React.DetailedHTMLProps<React.ButtonHTMLAttri
|
|
|
4
4
|
icon: React.ElementType;
|
|
5
5
|
renderIcon?: () => React.ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export declare const IconButton: React.ForwardRefExoticComponent<
|
|
7
|
+
export declare const IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/styles.css
CHANGED
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
}
|
|
8
8
|
.yarl__portal {
|
|
9
9
|
position: fixed;
|
|
10
|
-
|
|
10
|
+
top: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
left: 0;
|
|
11
14
|
opacity: 0;
|
|
12
15
|
overflow: hidden;
|
|
13
16
|
z-index: var(--yarl__portal_zindex, 9999);
|
|
@@ -18,7 +21,10 @@
|
|
|
18
21
|
}
|
|
19
22
|
.yarl__container {
|
|
20
23
|
position: absolute;
|
|
21
|
-
|
|
24
|
+
top: 0;
|
|
25
|
+
right: 0;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
left: 0;
|
|
22
28
|
overflow: hidden;
|
|
23
29
|
background-color: var(--yarl__container_background_color, var(--yarl__color_backdrop, #000));
|
|
24
30
|
outline: 0;
|
|
@@ -150,13 +156,19 @@
|
|
|
150
156
|
}
|
|
151
157
|
.yarl__toolbar {
|
|
152
158
|
position: absolute;
|
|
153
|
-
|
|
159
|
+
top: 0;
|
|
160
|
+
right: 0;
|
|
161
|
+
bottom: auto;
|
|
162
|
+
left: auto;
|
|
154
163
|
display: flex;
|
|
155
164
|
justify-content: flex-end;
|
|
156
165
|
padding: var(--yarl__toolbar_padding, 8px);
|
|
157
166
|
}
|
|
158
167
|
[dir=rtl] .yarl__toolbar {
|
|
159
|
-
|
|
168
|
+
top: 0;
|
|
169
|
+
right: auto;
|
|
170
|
+
bottom: auto;
|
|
171
|
+
left: 0;
|
|
160
172
|
}
|
|
161
173
|
.yarl__icon {
|
|
162
174
|
width: var(--yarl__icon_size, 32px);
|