@entur/modal 1.7.52-beta.0 → 1.7.53

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 +108 -108
  2. package/package.json +8 -8
package/dist/styles.css CHANGED
@@ -1,5 +1,113 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
+ :root {
4
+ --reach-dialog: 1;
5
+ }
6
+
7
+ .eds-modal__overlay {
8
+ background: rgba(0, 0, 0, 0.5);
9
+ bottom: 0;
10
+ display: flex;
11
+ left: 0;
12
+ overflow: hidden;
13
+ position: fixed;
14
+ right: 0;
15
+ top: 0;
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;
32
+ z-index: 40;
33
+ animation: slideInContent;
34
+ animation-duration: 0.2s;
35
+ animation-timing-function: ease-in-out;
36
+ }
37
+ .eds-modal__content--align-center {
38
+ display: flex;
39
+ flex-direction: column;
40
+ align-items: center;
41
+ text-align: center;
42
+ }
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 {
85
+ position: absolute;
86
+ top: 1rem;
87
+ right: 1rem;
88
+ color: var(--components-modal-modal-standard-icon);
89
+ }
90
+
91
+ @keyframes fadeInOverlay {
92
+ from {
93
+ opacity: 0;
94
+ }
95
+ to {
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;
107
+ }
108
+ }
109
+ /* DO NOT CHANGE!*/
110
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
111
  .eds-drawer {
4
112
  animation: slideFromRight forwards ease-out 0.1s;
5
113
  background-color: var(--components-modal-drawer-standard-background);
@@ -211,111 +319,3 @@
211
319
  :root {
212
320
  --eds-modal: 1;
213
321
  }
214
- /* DO NOT CHANGE!*/
215
- /* 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);
222
- bottom: 0;
223
- display: flex;
224
- left: 0;
225
- overflow: hidden;
226
- position: fixed;
227
- right: 0;
228
- 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;
245
- 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;
293
- }
294
- .eds-modal__content::-webkit-scrollbar-thumb:hover {
295
- background-color: grey;
296
- }
297
- .eds-modal__close {
298
- position: absolute;
299
- top: 1rem;
300
- right: 1rem;
301
- color: var(--components-modal-modal-standard-icon);
302
- }
303
-
304
- @keyframes fadeInOverlay {
305
- from {
306
- opacity: 0;
307
- }
308
- to {
309
- opacity: 1;
310
- }
311
- }
312
- @keyframes slideInContent {
313
- from {
314
- top: 5rem;
315
- opacity: 0;
316
- }
317
- to {
318
- top: 0%;
319
- opacity: 1;
320
- }
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.53",
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.32",
32
+ "@entur/icons": "^7.4.0",
33
+ "@entur/layout": "^2.3.16",
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.45",
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": "045cada5d95c62d8ddfc95d82b4526742ab07d0a"
42
42
  }