playbook_ui 10.21.0.pre.alpha.lightbox.2 → 10.21.0.pre.alpha.na1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +0 -1
- data/app/pb_kits/playbook/data/menu.yml +0 -1
- data/app/pb_kits/playbook/index.js +1 -2
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +0 -4
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +0 -1
- data/app/pb_kits/playbook/pb_button/_button.jsx +3 -3
- data/app/pb_kits/playbook/pb_button/_button.scss +1 -18
- data/app/pb_kits/playbook/pb_button/button.rb +3 -11
- data/app/pb_kits/playbook/pb_button/button.test.js +0 -13
- data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +0 -3
- data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +0 -1
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +10 -17
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +0 -3
- data/app/pb_kits/playbook/pb_gauge/gauge.rb +0 -1
- data/app/pb_kits/playbook/pb_image/_image.jsx +1 -1
- data/app/pb_kits/playbook/pb_image/_image.scss +3 -3
- data/app/pb_kits/playbook/pb_image/image.rb +1 -1
- data/app/pb_kits/playbook/pb_image/image.test.js +1 -1
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +0 -4
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +0 -1
- data/app/pb_kits/playbook/pb_popover/_popover.jsx +4 -2
- data/app/pb_kits/playbook/pb_popover/docs/_popover_close.html.erb +7 -7
- data/app/pb_kits/playbook/pb_popover/index.js +9 -4
- data/app/pb_kits/playbook/pb_popover/popover.html.erb +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +0 -4
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +2 -2
- data/app/pb_kits/playbook/pb_text_input/text_input.test.js +0 -14
- data/app/pb_kits/playbook/playbook-doc.js +0 -2
- data/app/pb_kits/playbook/plugins/pb_chart.js +4 -8
- data/lib/playbook/version.rb +2 -2
- metadata +2 -27
- data/app/pb_kits/playbook/pb_button/docs/_button_size.html.erb +0 -3
- data/app/pb_kits/playbook/pb_button/docs/_button_size.jsx +0 -26
- data/app/pb_kits/playbook/pb_button/docs/_button_size.md +0 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.js +0 -215
- data/app/pb_kits/playbook/pb_file_upload/fileupload.test.js +0 -40
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.jsx +0 -53
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.jsx +0 -53
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnail.jsx +0 -38
- data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnails.jsx +0 -78
- data/app/pb_kits/playbook/pb_lightbox/Carousel/index.jsx +0 -58
- data/app/pb_kits/playbook/pb_lightbox/Carousel/useSlides.js +0 -66
- data/app/pb_kits/playbook/pb_lightbox/_lightbox.jsx +0 -112
- data/app/pb_kits/playbook/pb_lightbox/_lightbox_context.jsx +0 -3
- data/app/pb_kits/playbook/pb_lightbox/_lightbox_header.jsx +0 -71
- data/app/pb_kits/playbook/pb_lightbox/_lightbox_header_icon.jsx +0 -26
- data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_compound_component.jsx +0 -95
- data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_default.jsx +0 -64
- data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_default.md +0 -1
- data/app/pb_kits/playbook/pb_lightbox/docs/_lightbox_multiple.jsx +0 -64
- data/app/pb_kits/playbook/pb_lightbox/docs/example.yml +0 -7
- data/app/pb_kits/playbook/pb_lightbox/docs/index.js +0 -3
- data/app/pb_kits/playbook/pb_lightbox/hooks/useVisibility.js +0 -21
- data/app/pb_kits/playbook/pb_lightbox/hooks/useWindowSize.js +0 -25
- data/app/pb_kits/playbook/pb_lightbox/lightbox.scss +0 -202
- data/app/pb_kits/playbook/pb_lightbox/lightbox.test.jsx +0 -30
@@ -1,202 +0,0 @@
|
|
1
|
-
@import "../tokens/spacing";
|
2
|
-
|
3
|
-
.carousel {
|
4
|
-
.home-tour-main-content {
|
5
|
-
overflow-y: hidden;
|
6
|
-
}
|
7
|
-
|
8
|
-
.image-gallery-slide-wrapper {
|
9
|
-
width: 1024px;
|
10
|
-
height: 686px;
|
11
|
-
}
|
12
|
-
|
13
|
-
.image-gallery-slide div {
|
14
|
-
height: auto;
|
15
|
-
}
|
16
|
-
|
17
|
-
.image-gallery-slide .image-gallery-image {
|
18
|
-
max-height: 100% !important;
|
19
|
-
max-width: 100% !important;
|
20
|
-
height: 692px !important;
|
21
|
-
width: 100% !important;
|
22
|
-
object-fit: cover;
|
23
|
-
}
|
24
|
-
|
25
|
-
.image-gallery-left-nav .image-gallery-svg, .image-gallery-right-nav .image-gallery-svg {
|
26
|
-
height: 120px;
|
27
|
-
width: 30px;
|
28
|
-
opacity: 0.4;
|
29
|
-
}
|
30
|
-
.image-gallery-thumbnails {
|
31
|
-
overflow-x: auto;
|
32
|
-
}
|
33
|
-
|
34
|
-
.image-gallery-thumbnails-container {
|
35
|
-
width: 1024px;
|
36
|
-
padding-left: 4px;
|
37
|
-
}
|
38
|
-
|
39
|
-
.image-gallery-thumbnails {
|
40
|
-
padding-top: 3px;
|
41
|
-
background: #000;
|
42
|
-
}
|
43
|
-
|
44
|
-
.image-gallery-thumbnail-image {
|
45
|
-
height: 64px;
|
46
|
-
width: 93px;
|
47
|
-
}
|
48
|
-
|
49
|
-
.image-gallery-thumbnail + .image-gallery-thumbnail {
|
50
|
-
margin-left: 2px;
|
51
|
-
margin-top: 2px;
|
52
|
-
}
|
53
|
-
|
54
|
-
.carousel-header {
|
55
|
-
background: rgb(0, 0, 0);
|
56
|
-
border-radius: 0px;
|
57
|
-
min-height: 51px;
|
58
|
-
width: 100%;
|
59
|
-
position: fixed;
|
60
|
-
top: 0;
|
61
|
-
left: 0;
|
62
|
-
z-index: 2;
|
63
|
-
align-items: center;
|
64
|
-
padding: $space-sm;
|
65
|
-
transition: all .5s;
|
66
|
-
|
67
|
-
.close-icon {
|
68
|
-
color: white;
|
69
|
-
margin-left: 16px;
|
70
|
-
top: 16px;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
.photo-cards {
|
76
|
-
.overlay {
|
77
|
-
width: 100% !important;
|
78
|
-
height: 50% !important;
|
79
|
-
bottom: 0;
|
80
|
-
position: absolute !important;
|
81
|
-
border-radius: 0px 0px 5px 5px;
|
82
|
-
background: linear-gradient(-180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.77) 100%);
|
83
|
-
}
|
84
|
-
|
85
|
-
.overlay,
|
86
|
-
.overlay ~ .key-photo-icon,
|
87
|
-
.overlay ~ .tag-counter {
|
88
|
-
pointer-events: none;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
|
93
|
-
.Lightbox {
|
94
|
-
width: 100vw;
|
95
|
-
height: 100vh;
|
96
|
-
position: fixed;
|
97
|
-
left: 0;
|
98
|
-
top: 0;
|
99
|
-
display: flex;
|
100
|
-
align-items: center;
|
101
|
-
flex-direction: column;
|
102
|
-
background-color: black;
|
103
|
-
z-index: 1;
|
104
|
-
overflow: hidden;
|
105
|
-
}
|
106
|
-
|
107
|
-
.Slides {
|
108
|
-
display: flex;
|
109
|
-
flex-grow: 1;
|
110
|
-
height: calc(100% - 100px);
|
111
|
-
width: 100%;
|
112
|
-
z-index: 1;
|
113
|
-
|
114
|
-
[class^="react-transform-wrapper"] {
|
115
|
-
flex-shrink: 0;
|
116
|
-
width: 100%;
|
117
|
-
height: 100%;
|
118
|
-
}
|
119
|
-
|
120
|
-
[class^="react-transform-content"] {
|
121
|
-
width: 100%;
|
122
|
-
height: 100%;
|
123
|
-
}
|
124
|
-
}
|
125
|
-
|
126
|
-
.Slide,
|
127
|
-
.Thumbnail {
|
128
|
-
flex-shrink: 0;
|
129
|
-
border: none;
|
130
|
-
margin: 0;
|
131
|
-
padding: 0;
|
132
|
-
cursor: pointer;
|
133
|
-
background-color: transparent;
|
134
|
-
}
|
135
|
-
|
136
|
-
.Slide {
|
137
|
-
display: flex;
|
138
|
-
justify-content: center;
|
139
|
-
align-items: center;
|
140
|
-
width: 100%;
|
141
|
-
height: 100%;
|
142
|
-
overflow: hidden;
|
143
|
-
|
144
|
-
img {
|
145
|
-
width: 100vw;
|
146
|
-
height: 100vh;
|
147
|
-
object-fit: contain;
|
148
|
-
}
|
149
|
-
}
|
150
|
-
|
151
|
-
.BackBtn,
|
152
|
-
.NextBtn {
|
153
|
-
z-index: 2;
|
154
|
-
color: black;
|
155
|
-
position: absolute;
|
156
|
-
width: 50px;
|
157
|
-
height: 50px;
|
158
|
-
top: calc(50vh - 5px);
|
159
|
-
border: none;
|
160
|
-
border-radius: 50%;
|
161
|
-
background-color: white;
|
162
|
-
}
|
163
|
-
|
164
|
-
.BackBtn::before,
|
165
|
-
.NextBtn::before {
|
166
|
-
content: "▸";
|
167
|
-
}
|
168
|
-
|
169
|
-
.BackBtn {
|
170
|
-
left: 30px;
|
171
|
-
transform: rotate(180deg);
|
172
|
-
}
|
173
|
-
|
174
|
-
.NextBtn {
|
175
|
-
right: 30px;
|
176
|
-
}
|
177
|
-
|
178
|
-
.Thumbnails {
|
179
|
-
display: flex;
|
180
|
-
padding: 3px;
|
181
|
-
}
|
182
|
-
|
183
|
-
.Thumbnails.draggable {
|
184
|
-
align-self: flex-start;
|
185
|
-
}
|
186
|
-
|
187
|
-
.Thumbnail {
|
188
|
-
padding: 3px;
|
189
|
-
height: 100%;
|
190
|
-
|
191
|
-
img {
|
192
|
-
width: 100%;
|
193
|
-
height: 100%;
|
194
|
-
}
|
195
|
-
}
|
196
|
-
|
197
|
-
.Thumbnail.active {
|
198
|
-
padding: 6px;
|
199
|
-
background-color: white;
|
200
|
-
box-shadow: 0 0 6px white;
|
201
|
-
}
|
202
|
-
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { render, screen } from '../utilities/test-utils'
|
3
|
-
|
4
|
-
import { Lightbox } from '../'
|
5
|
-
|
6
|
-
const testId = 'customId',
|
7
|
-
kitClass = 'pb_lightbox_kit'
|
8
|
-
|
9
|
-
test('Lightbox Test', () => {
|
10
|
-
render(
|
11
|
-
<Lightbox
|
12
|
-
className="customClass"
|
13
|
-
data={{ testid: testId }}
|
14
|
-
icon="close"
|
15
|
-
iconSize="3x"
|
16
|
-
id="test1"
|
17
|
-
initialPhoto="https://images.unsplash.com/photo-1518791841217-8f162f1e1131?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60"
|
18
|
-
onClose={() => {}}
|
19
|
-
photos={[
|
20
|
-
'https://images.unsplash.com/photo-1518791841217-8f162f1e1131?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60',
|
21
|
-
'https://images.unsplash.com/photo-1518791841217-8f162f1e1131?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60',
|
22
|
-
'https://images.unsplash.com/photo-1518791841217-8f162f1e1131?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60',
|
23
|
-
'https://images.unsplash.com/photo-1518791841217-8f162f1e1131?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60',
|
24
|
-
]}
|
25
|
-
/>
|
26
|
-
)
|
27
|
-
const kit = screen.getByTestId(testId)
|
28
|
-
expect(kit).toHaveClass(`${kitClass} customClass`)
|
29
|
-
expect(kit).toBeInTheDocument()
|
30
|
-
})
|