@entur/modal 1.7.52-beta.0 → 1.7.52

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.
Files changed (2) hide show
  1. package/dist/styles.css +112 -112
  2. package/package.json +8 -8
package/dist/styles.css CHANGED
@@ -1,39 +1,109 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-drawer {
4
- animation: slideFromRight forwards ease-out 0.1s;
5
- background-color: var(--components-modal-drawer-standard-background);
6
- color: var(--components-modal-drawer-standard-text);
3
+ :root {
4
+ --reach-dialog: 1;
5
+ }
6
+
7
+ .eds-modal__overlay {
8
+ background: rgba(0, 0, 0, 0.5);
7
9
  bottom: 0;
8
- padding: 1.5rem;
10
+ display: flex;
11
+ left: 0;
12
+ overflow: hidden;
9
13
  position: fixed;
10
14
  right: 0;
11
15
  top: 0;
12
- max-width: 100%;
13
- min-width: 20rem;
14
- width: 25vw;
16
+ z-index: 30;
17
+ animation: fadeInOverlay;
18
+ animation-duration: 0.2s;
19
+ animation-timing-function: ease-in-out;
20
+ }
21
+ .eds-modal__content {
22
+ background: var(--components-modal-modal-standard-fill);
23
+ border: 1px solid var(--components-modal-modal-standard-border);
24
+ border-radius: 0.75rem;
25
+ color: var(--components-modal-modal-standard-text);
26
+ margin: auto;
27
+ padding: 1.5rem;
28
+ position: relative;
29
+ width: 100%;
30
+ max-height: 90vh;
31
+ overflow: auto;
15
32
  z-index: 40;
16
- overflow-y: auto;
33
+ animation: slideInContent;
34
+ animation-duration: 0.2s;
35
+ animation-timing-function: ease-in-out;
17
36
  }
18
- .eds-contrast .eds-drawer {
19
- background-color: var(--components-modal-drawer-contrast-background);
20
- color: var(--components-modal-drawer-contrast-text);
37
+ .eds-modal__content--align-center {
38
+ display: flex;
39
+ flex-direction: column;
40
+ align-items: center;
41
+ text-align: center;
21
42
  }
22
- .eds-drawer__close-button {
23
- margin: 0;
43
+ .eds-modal__content--align-end {
44
+ display: flex;
45
+ flex-direction: column;
46
+ align-items: flex-end;
47
+ }
48
+ .eds-modal__content--size-extraSmall {
49
+ max-width: 21rem;
50
+ padding: 1.5rem;
51
+ }
52
+ .eds-modal__content--size-small {
53
+ max-width: 28.125rem;
54
+ padding: 2.5rem;
55
+ }
56
+ .eds-modal__content--size-medium {
57
+ max-width: 45rem;
58
+ padding: 3rem;
59
+ }
60
+ .eds-modal__content--size-large {
61
+ max-width: 56.25rem;
62
+ padding: 3rem;
63
+ }
64
+ .eds-modal__content--size-extraLarge {
65
+ max-width: 78.75rem;
66
+ padding: 3rem;
67
+ }
68
+ .eds-modal__content::-webkit-scrollbar {
69
+ width: 16px;
70
+ }
71
+ .eds-modal__content::-webkit-scrollbar-track {
72
+ margin-top: 0.5rem;
73
+ margin-bottom: 0.5rem;
74
+ }
75
+ .eds-modal__content::-webkit-scrollbar-thumb {
76
+ background-color: lightgrey;
77
+ border: 4px solid transparent;
78
+ border-radius: 8px;
79
+ background-clip: padding-box;
80
+ }
81
+ .eds-modal__content::-webkit-scrollbar-thumb:hover {
82
+ background-color: grey;
83
+ }
84
+ .eds-modal__close {
24
85
  position: absolute;
25
- top: 1.5rem;
26
- right: 1.5rem;
86
+ top: 1rem;
87
+ right: 1rem;
88
+ color: var(--components-modal-modal-standard-icon);
27
89
  }
28
90
 
29
- @keyframes slideFromRight {
91
+ @keyframes fadeInOverlay {
30
92
  from {
31
- box-shadow: none;
32
- transform: translateX(100%);
93
+ opacity: 0;
33
94
  }
34
95
  to {
35
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
36
- transform: 0;
96
+ opacity: 1;
97
+ }
98
+ }
99
+ @keyframes slideInContent {
100
+ from {
101
+ top: 5rem;
102
+ opacity: 0;
103
+ }
104
+ to {
105
+ top: 0%;
106
+ opacity: 1;
37
107
  }
38
108
  }
39
109
  /* DO NOT CHANGE!*/
@@ -213,109 +283,39 @@
213
283
  }
214
284
  /* DO NOT CHANGE!*/
215
285
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
216
- :root {
217
- --reach-dialog: 1;
218
- }
219
-
220
- .eds-modal__overlay {
221
- background: rgba(0, 0, 0, 0.5);
286
+ .eds-drawer {
287
+ animation: slideFromRight forwards ease-out 0.1s;
288
+ background-color: var(--components-modal-drawer-standard-background);
289
+ color: var(--components-modal-drawer-standard-text);
222
290
  bottom: 0;
223
- display: flex;
224
- left: 0;
225
- overflow: hidden;
291
+ padding: 1.5rem;
226
292
  position: fixed;
227
293
  right: 0;
228
294
  top: 0;
229
- z-index: 30;
230
- animation: fadeInOverlay;
231
- animation-duration: 0.2s;
232
- animation-timing-function: ease-in-out;
233
- }
234
- .eds-modal__content {
235
- background: var(--components-modal-modal-standard-fill);
236
- border: 1px solid var(--components-modal-modal-standard-border);
237
- border-radius: 0.75rem;
238
- color: var(--components-modal-modal-standard-text);
239
- margin: auto;
240
- padding: 1.5rem;
241
- position: relative;
242
- width: 100%;
243
- max-height: 90vh;
244
- overflow: auto;
295
+ max-width: 100%;
296
+ min-width: 20rem;
297
+ width: 25vw;
245
298
  z-index: 40;
246
- animation: slideInContent;
247
- animation-duration: 0.2s;
248
- animation-timing-function: ease-in-out;
249
- }
250
- .eds-modal__content--align-center {
251
- display: flex;
252
- flex-direction: column;
253
- align-items: center;
254
- text-align: center;
255
- }
256
- .eds-modal__content--align-end {
257
- display: flex;
258
- flex-direction: column;
259
- align-items: flex-end;
260
- }
261
- .eds-modal__content--size-extraSmall {
262
- max-width: 21rem;
263
- padding: 1.5rem;
264
- }
265
- .eds-modal__content--size-small {
266
- max-width: 28.125rem;
267
- padding: 2.5rem;
268
- }
269
- .eds-modal__content--size-medium {
270
- max-width: 45rem;
271
- padding: 3rem;
272
- }
273
- .eds-modal__content--size-large {
274
- max-width: 56.25rem;
275
- padding: 3rem;
276
- }
277
- .eds-modal__content--size-extraLarge {
278
- max-width: 78.75rem;
279
- padding: 3rem;
280
- }
281
- .eds-modal__content::-webkit-scrollbar {
282
- width: 16px;
283
- }
284
- .eds-modal__content::-webkit-scrollbar-track {
285
- margin-top: 0.5rem;
286
- margin-bottom: 0.5rem;
287
- }
288
- .eds-modal__content::-webkit-scrollbar-thumb {
289
- background-color: lightgrey;
290
- border: 4px solid transparent;
291
- border-radius: 8px;
292
- background-clip: padding-box;
299
+ overflow-y: auto;
293
300
  }
294
- .eds-modal__content::-webkit-scrollbar-thumb:hover {
295
- background-color: grey;
301
+ .eds-contrast .eds-drawer {
302
+ background-color: var(--components-modal-drawer-contrast-background);
303
+ color: var(--components-modal-drawer-contrast-text);
296
304
  }
297
- .eds-modal__close {
305
+ .eds-drawer__close-button {
306
+ margin: 0;
298
307
  position: absolute;
299
- top: 1rem;
300
- right: 1rem;
301
- color: var(--components-modal-modal-standard-icon);
308
+ top: 1.5rem;
309
+ right: 1.5rem;
302
310
  }
303
311
 
304
- @keyframes fadeInOverlay {
305
- from {
306
- opacity: 0;
307
- }
308
- to {
309
- opacity: 1;
310
- }
311
- }
312
- @keyframes slideInContent {
312
+ @keyframes slideFromRight {
313
313
  from {
314
- top: 5rem;
315
- opacity: 0;
314
+ box-shadow: none;
315
+ transform: translateX(100%);
316
316
  }
317
317
  to {
318
- top: 0%;
319
- opacity: 1;
318
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
319
+ transform: 0;
320
320
  }
321
321
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/modal",
3
- "version": "1.7.52-beta.0",
3
+ "version": "1.7.52",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/modal.esm.js",
@@ -27,16 +27,16 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.90-beta.0",
31
- "@entur/button": "^3.2.31-beta.0",
32
- "@entur/icons": "^7.2.0",
33
- "@entur/layout": "^2.3.15-beta.0",
30
+ "@entur/a11y": "^0.2.90",
31
+ "@entur/button": "^3.2.31",
32
+ "@entur/icons": "^7.3.0",
33
+ "@entur/layout": "^2.3.15",
34
34
  "@entur/tokens": "^3.17.0",
35
- "@entur/typography": "^1.8.44-beta.0",
36
- "@entur/utils": "^0.11.2-beta.0",
35
+ "@entur/typography": "^1.8.44",
36
+ "@entur/utils": "^0.11.2",
37
37
  "@reach/dialog": "^0.16.0",
38
38
  "classnames": "^2.3.1",
39
39
  "react-focus-lock": "^2.9.1"
40
40
  },
41
- "gitHead": "bf6f8921dac8b869172f77ab6da76401e40bbc9b"
41
+ "gitHead": "c5713d9ad333e17ca5714d86181baba74c56e0eb"
42
42
  }