@ebay/skin 19.23.0 → 19.24.0

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.
@@ -0,0 +1 @@
1
+ { "dependencies": ["require: ./dialog.js"] }
package/dialog.css ADDED
@@ -0,0 +1 @@
1
+ @import "./dist/dialog/dialog.css";
package/dialog.js ADDED
@@ -0,0 +1 @@
1
+ require('./dist/dialog/dialog.css');
package/dialog.mjs ADDED
@@ -0,0 +1 @@
1
+ import './dist/dialog/dialog.css';
@@ -0,0 +1,237 @@
1
+ :root {
2
+ --dialog-scrim-color-hide: rgb(17 24 32 / 0);
3
+ --dialog-scrim-color-show: rgb(17 24 32 / 0.7);
4
+ --dialog-lightbox-max-width: 616px;
5
+ --dialog-max-width: 616px;
6
+ --dialog-wide-max-width: 896px;
7
+ --dialog-narrow-max-width: 480px;
8
+ --dialog-scrim-color: rgb(17 24 32 / 0.7);
9
+ scrollbar-gutter: stable;
10
+ }
11
+ @keyframes dialog-open-scrim {
12
+ 0% {
13
+ background: transparent;
14
+ }
15
+ to {
16
+ background-color: var(--dialog-scrim-color);
17
+ }
18
+ }
19
+ @keyframes dialog-close-scrim {
20
+ 0% {
21
+ background-color: var(--dialog-scrim-color);
22
+ }
23
+ to {
24
+ background: transparent;
25
+ }
26
+ }
27
+ @keyframes dialog-open-scale {
28
+ 0% {
29
+ scale: 0.75;
30
+ }
31
+ to {
32
+ scale: 1;
33
+ }
34
+ }
35
+ @keyframes dialog-close-scale {
36
+ 0% {
37
+ scale: 1;
38
+ }
39
+ to {
40
+ scale: 0.75;
41
+ }
42
+ }
43
+ @keyframes dialog-open-opacity {
44
+ 0% {
45
+ opacity: 0;
46
+ }
47
+ to {
48
+ opacity: 1;
49
+ }
50
+ }
51
+ @keyframes dialog-close-opacity {
52
+ 0% {
53
+ opacity: 1;
54
+ }
55
+ to {
56
+ opacity: 0;
57
+ }
58
+ }
59
+ body:has(.dialog[open]) {
60
+ overflow: hidden !important;
61
+ }
62
+ .dialog {
63
+ background-color: var(--color-background-primary);
64
+ border: none;
65
+ border-radius: var(--border-radius-150);
66
+ color: var(--color-foreground-primary);
67
+ flex-direction: column;
68
+ max-height: 90%;
69
+ max-width: 88%;
70
+ min-height: 55px;
71
+ min-width: 208px;
72
+ padding: 0;
73
+ }
74
+ .dialog__header {
75
+ display: flex;
76
+ flex-shrink: 0;
77
+ margin: var(--spacing-200) var(--spacing-200) 0;
78
+ position: relative;
79
+ }
80
+ .dialog__header h1,
81
+ .dialog__header h2,
82
+ .dialog__header h3,
83
+ .dialog__header h4,
84
+ .dialog__header h5,
85
+ .dialog__header h6 {
86
+ align-self: center;
87
+ flex: 1 1 auto;
88
+ margin: 0;
89
+ overflow-wrap: anywhere;
90
+ }
91
+ .dialog__header > :last-child:not(:only-child) {
92
+ flex-shrink: 0;
93
+ margin-inline-start: var(--spacing-200);
94
+ }
95
+ .dialog__main {
96
+ box-sizing: border-box;
97
+ flex: 1 1 auto;
98
+ overflow: auto;
99
+ padding: var(--spacing-200);
100
+ position: relative;
101
+ }
102
+ .dialog__main > :first-child {
103
+ margin-top: 0;
104
+ }
105
+ .dialog__main > :last-child {
106
+ margin-bottom: 0;
107
+ }
108
+ .dialog__footer {
109
+ display: flex;
110
+ flex-direction: column;
111
+ justify-content: center;
112
+ padding: var(--spacing-200);
113
+ position: relative;
114
+ }
115
+ .dialog__footer > :not(:first-child) {
116
+ margin-top: var(--spacing-200);
117
+ }
118
+ .dialog__image {
119
+ background-position: 50%;
120
+ background-repeat: no-repeat;
121
+ background-size: cover;
122
+ border-radius: var(--border-radius-100) var(--border-radius-100) 0 0;
123
+ height: 218px;
124
+ position: absolute;
125
+ width: 100%;
126
+ }
127
+ .dialog--expressive .dialog__header > * {
128
+ margin-top: 218px;
129
+ }
130
+ button.icon-btn.dialog__close,
131
+ button.icon-btn.dialog__prev {
132
+ align-self: flex-start;
133
+ border: 0;
134
+ flex-shrink: 0;
135
+ height: 32px;
136
+ min-width: 32px;
137
+ position: relative;
138
+ width: 32px;
139
+ z-index: 1;
140
+ }
141
+ button.icon-btn.dialog__prev {
142
+ margin-inline-end: var(--spacing-200);
143
+ }
144
+ .dialog--expressive button.icon-btn.dialog__close,
145
+ .dialog--expressive button.icon-btn.dialog__prev {
146
+ margin: 0;
147
+ }
148
+ .dialog--expressive button.icon-btn.dialog__prev + * {
149
+ margin-inline-start: -32px;
150
+ }
151
+ .dialog--expressive .dialog__header {
152
+ margin: var(--spacing-300) var(--spacing-300) 0;
153
+ }
154
+ .dialog--expressive .dialog__footer,
155
+ .dialog--expressive .dialog__main {
156
+ padding: var(--spacing-200) var(--spacing-300);
157
+ }
158
+ .dialog[open] {
159
+ display: flex;
160
+ }
161
+ .dialog[open].dialog--close::backdrop {
162
+ animation: dialog-close-scrim var(--motion-duration-short-3)
163
+ var(--motion-easing-continuous) forwards;
164
+ }
165
+ .dialog[open]::backdrop {
166
+ animation: dialog-open-scrim var(--motion-duration-short-3)
167
+ var(--motion-easing-continuous) forwards;
168
+ }
169
+ .dialog[open].dialog--close {
170
+ animation:
171
+ dialog-close-scale var(--motion-duration-medium-3)
172
+ var(--motion-easing-soft-exit),
173
+ dialog-close-opacity var(--motion-duration-short-3)
174
+ var(--motion-easing-continuous);
175
+ transition:
176
+ display var(--motion-duration-short-3) allow-discrete,
177
+ overlay var(--motion-duration-short-3) allow-discrete;
178
+ }
179
+ .dialog[open] {
180
+ animation:
181
+ dialog-open-scale var(--motion-duration-medium-3)
182
+ var(--motion-easing-standard),
183
+ dialog-open-opacity var(--motion-duration-short-3)
184
+ var(--motion-easing-continuous);
185
+ }
186
+ .dialog--large {
187
+ height: 98%;
188
+ max-height: 98%;
189
+ width: 95%;
190
+ }
191
+ @media (min-width: 512px) {
192
+ .dialog {
193
+ border-radius: var(--border-radius-100);
194
+ }
195
+ .dialog--wide {
196
+ max-width: 88%;
197
+ }
198
+ .dialog--wide .dialog__image {
199
+ height: 256px;
200
+ }
201
+ .dialog--wide.dialog--expressive .dialog__header > * {
202
+ margin-top: 256px;
203
+ }
204
+ .dialog__footer {
205
+ flex-direction: row;
206
+ justify-content: flex-end;
207
+ }
208
+ .dialog__footer > :not(:first-child) {
209
+ margin-left: var(--spacing-100);
210
+ margin-top: 0;
211
+ }
212
+ .dialog--large {
213
+ align-self: center;
214
+ height: 70%;
215
+ max-height: 95%;
216
+ }
217
+ }
218
+ @media (min-width: 768px) {
219
+ .dialog {
220
+ max-width: var(--dialog-max-width);
221
+ }
222
+ .dialog--narrow {
223
+ max-width: var(--dialog-narrow-max-width);
224
+ }
225
+ .dialog--wide {
226
+ max-width: var(--dialog-wide-max-width);
227
+ max-width: 88%;
228
+ }
229
+ }
230
+ @media (min-width: 1024px) {
231
+ .dialog--wide {
232
+ max-width: var(--dialog-wide-max-width);
233
+ }
234
+ }
235
+ [dir="rtl"] button.icon-btn.dialog__prev .icon--16 {
236
+ transform: rotate(180deg);
237
+ }
@@ -51,6 +51,13 @@
51
51
  justify-content: center;
52
52
  width: 100%;
53
53
  }
54
+ .video-player .shaka-play-button-container .shaka-play-button {
55
+ background: none;
56
+ border: 0;
57
+ cursor: pointer;
58
+ margin: 0;
59
+ padding: 0;
60
+ }
54
61
  .video-player--with-nav .shaka-controls-container {
55
62
  pointer-events: none;
56
63
  }
@@ -19,6 +19,7 @@
19
19
  "require: ./cta-button.js",
20
20
  "require: ./date-textbox.js",
21
21
  "require: ./details.js",
22
+ "require: ./dialog.js",
22
23
  "require: ./donut-chart.js",
23
24
  "require: ./drawer-dialog.js",
24
25
  "require: ./education-notice.js",
package/index.css CHANGED
@@ -17,6 +17,7 @@
17
17
  @import "./cta-button.css";
18
18
  @import "./date-textbox.css";
19
19
  @import "./details.css";
20
+ @import "./dialog.css";
20
21
  @import "./donut-chart.css";
21
22
  @import "./drawer-dialog.css";
22
23
  @import "./education-notice.css";
package/index.js CHANGED
@@ -17,6 +17,7 @@ require('./confirm-dialog.js');
17
17
  require('./cta-button.js');
18
18
  require('./date-textbox.js');
19
19
  require('./details.js');
20
+ require('./dialog.js');
20
21
  require('./donut-chart.js');
21
22
  require('./drawer-dialog.js');
22
23
  require('./education-notice.js');
package/index.mjs CHANGED
@@ -17,6 +17,7 @@ import './dist/confirm-dialog/confirm-dialog.css';
17
17
  import './dist/cta-button/cta-button.css';
18
18
  import './dist/date-textbox/date-textbox.css';
19
19
  import './dist/details/details.css';
20
+ import './dist/dialog/dialog.css';
20
21
  import './dist/donut-chart/donut-chart.css';
21
22
  import './dist/drawer-dialog/drawer-dialog.css';
22
23
  import './dist/education-notice/education-notice.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay/skin",
3
- "version": "19.23.0",
3
+ "version": "19.24.0",
4
4
  "description": "Skin - CSS modules that represent the brand eBay",
5
5
  "keywords": [
6
6
  "eBay",