@entur/modal 1.7.73-beta.0 → 1.7.73-beta.10
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.
- package/dist/Drawer.d.ts +29 -0
- package/dist/Modal.d.ts +28 -0
- package/dist/ModalContent.d.ts +24 -0
- package/dist/ModalOverlay.d.ts +15 -0
- package/dist/index.d.ts +5 -189
- package/dist/index.js +8 -0
- package/dist/modal.cjs.development.js +181 -0
- package/dist/modal.cjs.development.js.map +1 -0
- package/dist/modal.cjs.production.min.js +2 -0
- package/dist/modal.cjs.production.min.js.map +1 -0
- package/dist/modal.esm.js +147 -3538
- package/dist/modal.esm.js.map +1 -1
- package/dist/styles.css +146 -143
- package/package.json +19 -37
- package/dist/modal.cjs.js +0 -3580
- package/dist/modal.cjs.js.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,151 @@
|
|
|
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. */
|
|
111
|
+
.eds-drawer {
|
|
112
|
+
animation: slideFromRight forwards ease-out 0.1s;
|
|
113
|
+
background-color: var(--components-modal-drawer-standard-background);
|
|
114
|
+
color: var(--components-modal-drawer-standard-text);
|
|
115
|
+
bottom: 0;
|
|
116
|
+
padding: 1.5rem;
|
|
117
|
+
position: fixed;
|
|
118
|
+
right: 0;
|
|
119
|
+
top: 0;
|
|
120
|
+
max-width: 100%;
|
|
121
|
+
min-width: 20rem;
|
|
122
|
+
width: 25vw;
|
|
123
|
+
z-index: 40;
|
|
124
|
+
overflow-y: auto;
|
|
125
|
+
}
|
|
126
|
+
.eds-contrast .eds-drawer {
|
|
127
|
+
background-color: var(--components-modal-drawer-contrast-background);
|
|
128
|
+
color: var(--components-modal-drawer-contrast-text);
|
|
129
|
+
}
|
|
130
|
+
.eds-drawer__close-button {
|
|
131
|
+
margin: 0;
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: 1.5rem;
|
|
134
|
+
right: 1.5rem;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@keyframes slideFromRight {
|
|
138
|
+
from {
|
|
139
|
+
box-shadow: none;
|
|
140
|
+
transform: translateX(100%);
|
|
141
|
+
}
|
|
142
|
+
to {
|
|
143
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
144
|
+
transform: 0;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/* DO NOT CHANGE!*/
|
|
148
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
149
|
/* DO NOT CHANGE!*/
|
|
4
150
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
151
|
/* DO NOT CHANGE!*/
|
|
@@ -174,147 +320,4 @@
|
|
|
174
320
|
|
|
175
321
|
:root {
|
|
176
322
|
--eds-modal: 1;
|
|
177
|
-
}/* DO NOT CHANGE!*/
|
|
178
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
179
|
-
:root {
|
|
180
|
-
--reach-dialog: 1;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.eds-modal__overlay {
|
|
184
|
-
background: rgba(0, 0, 0, 0.5);
|
|
185
|
-
bottom: 0;
|
|
186
|
-
display: flex;
|
|
187
|
-
left: 0;
|
|
188
|
-
overflow: hidden;
|
|
189
|
-
position: fixed;
|
|
190
|
-
right: 0;
|
|
191
|
-
top: 0;
|
|
192
|
-
z-index: 30;
|
|
193
|
-
animation: fadeInOverlay;
|
|
194
|
-
animation-duration: 0.2s;
|
|
195
|
-
animation-timing-function: ease-in-out;
|
|
196
|
-
}
|
|
197
|
-
.eds-modal__content {
|
|
198
|
-
background: var(--components-modal-modal-standard-fill);
|
|
199
|
-
border: 1px solid var(--components-modal-modal-standard-border);
|
|
200
|
-
border-radius: 0.75rem;
|
|
201
|
-
color: var(--components-modal-modal-standard-text);
|
|
202
|
-
margin: auto;
|
|
203
|
-
padding: 1.5rem;
|
|
204
|
-
position: relative;
|
|
205
|
-
width: 100%;
|
|
206
|
-
max-height: 90vh;
|
|
207
|
-
overflow: auto;
|
|
208
|
-
z-index: 40;
|
|
209
|
-
animation: slideInContent;
|
|
210
|
-
animation-duration: 0.2s;
|
|
211
|
-
animation-timing-function: ease-in-out;
|
|
212
323
|
}
|
|
213
|
-
.eds-modal__content--align-center {
|
|
214
|
-
display: flex;
|
|
215
|
-
flex-direction: column;
|
|
216
|
-
align-items: center;
|
|
217
|
-
text-align: center;
|
|
218
|
-
}
|
|
219
|
-
.eds-modal__content--align-end {
|
|
220
|
-
display: flex;
|
|
221
|
-
flex-direction: column;
|
|
222
|
-
align-items: flex-end;
|
|
223
|
-
}
|
|
224
|
-
.eds-modal__content--size-extraSmall {
|
|
225
|
-
max-width: 21rem;
|
|
226
|
-
padding: 1.5rem;
|
|
227
|
-
}
|
|
228
|
-
.eds-modal__content--size-small {
|
|
229
|
-
max-width: 28.125rem;
|
|
230
|
-
padding: 2.5rem;
|
|
231
|
-
}
|
|
232
|
-
.eds-modal__content--size-medium {
|
|
233
|
-
max-width: 45rem;
|
|
234
|
-
padding: 3rem;
|
|
235
|
-
}
|
|
236
|
-
.eds-modal__content--size-large {
|
|
237
|
-
max-width: 56.25rem;
|
|
238
|
-
padding: 3rem;
|
|
239
|
-
}
|
|
240
|
-
.eds-modal__content--size-extraLarge {
|
|
241
|
-
max-width: 78.75rem;
|
|
242
|
-
padding: 3rem;
|
|
243
|
-
}
|
|
244
|
-
.eds-modal__content::-webkit-scrollbar {
|
|
245
|
-
width: 16px;
|
|
246
|
-
}
|
|
247
|
-
.eds-modal__content::-webkit-scrollbar-track {
|
|
248
|
-
margin-block: 0.5rem;
|
|
249
|
-
}
|
|
250
|
-
.eds-modal__content::-webkit-scrollbar-thumb {
|
|
251
|
-
background-color: lightgrey;
|
|
252
|
-
border: 4px solid transparent;
|
|
253
|
-
border-radius: 8px;
|
|
254
|
-
background-clip: padding-box;
|
|
255
|
-
}
|
|
256
|
-
.eds-modal__content::-webkit-scrollbar-thumb:hover {
|
|
257
|
-
background-color: grey;
|
|
258
|
-
}
|
|
259
|
-
.eds-modal__close {
|
|
260
|
-
position: absolute;
|
|
261
|
-
top: 1rem;
|
|
262
|
-
right: 1rem;
|
|
263
|
-
color: var(--components-modal-modal-standard-icon);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
@keyframes fadeInOverlay {
|
|
267
|
-
from {
|
|
268
|
-
opacity: 0;
|
|
269
|
-
}
|
|
270
|
-
to {
|
|
271
|
-
opacity: 1;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
@keyframes slideInContent {
|
|
275
|
-
from {
|
|
276
|
-
top: 5rem;
|
|
277
|
-
opacity: 0;
|
|
278
|
-
}
|
|
279
|
-
to {
|
|
280
|
-
top: 0%;
|
|
281
|
-
opacity: 1;
|
|
282
|
-
}
|
|
283
|
-
}/* DO NOT CHANGE!*/
|
|
284
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
285
|
-
.eds-drawer {
|
|
286
|
-
animation: slideFromRight forwards ease-out 0.1s;
|
|
287
|
-
background-color: var(--components-modal-drawer-standard-background);
|
|
288
|
-
color: var(--components-modal-drawer-standard-text);
|
|
289
|
-
bottom: 0;
|
|
290
|
-
padding: 1.5rem;
|
|
291
|
-
position: fixed;
|
|
292
|
-
right: 0;
|
|
293
|
-
top: 0;
|
|
294
|
-
max-width: 100%;
|
|
295
|
-
min-width: 20rem;
|
|
296
|
-
width: 25vw;
|
|
297
|
-
z-index: 40;
|
|
298
|
-
overflow-y: auto;
|
|
299
|
-
}
|
|
300
|
-
.eds-contrast .eds-drawer {
|
|
301
|
-
background-color: var(--components-modal-drawer-contrast-background);
|
|
302
|
-
color: var(--components-modal-drawer-contrast-text);
|
|
303
|
-
}
|
|
304
|
-
.eds-drawer__close-button {
|
|
305
|
-
margin: 0;
|
|
306
|
-
position: absolute;
|
|
307
|
-
top: 1.5rem;
|
|
308
|
-
right: 1.5rem;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
@keyframes slideFromRight {
|
|
312
|
-
from {
|
|
313
|
-
box-shadow: none;
|
|
314
|
-
transform: translateX(100%);
|
|
315
|
-
}
|
|
316
|
-
to {
|
|
317
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
318
|
-
transform: 0;
|
|
319
|
-
}
|
|
320
|
-
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/modal",
|
|
3
|
-
"version": "1.7.73-beta.
|
|
3
|
+
"version": "1.7.73-beta.10",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"main": "dist/
|
|
5
|
+
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/modal.esm.js",
|
|
7
|
-
"
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/modal.esm.js",
|
|
12
|
-
"require": "./dist/modal.cjs.js"
|
|
13
|
-
},
|
|
14
|
-
"./dist/*": "./dist/*"
|
|
15
|
-
},
|
|
7
|
+
"typings": "dist/index.d.ts",
|
|
16
8
|
"files": [
|
|
17
9
|
"dist"
|
|
18
10
|
],
|
|
@@ -25,39 +17,29 @@
|
|
|
25
17
|
"access": "public"
|
|
26
18
|
},
|
|
27
19
|
"scripts": {
|
|
28
|
-
"start": "
|
|
29
|
-
"build": "
|
|
30
|
-
"test": "
|
|
31
|
-
"lint": "
|
|
20
|
+
"start": "dts watch --noClean",
|
|
21
|
+
"build": "dts build",
|
|
22
|
+
"test": "dts test",
|
|
23
|
+
"lint": "dts lint src"
|
|
32
24
|
},
|
|
33
25
|
"peerDependencies": {
|
|
34
26
|
"react": ">=16.8.0",
|
|
35
27
|
"react-dom": ">=16.8.0"
|
|
36
28
|
},
|
|
37
29
|
"dependencies": {
|
|
38
|
-
"@entur/a11y": "^0.2.
|
|
39
|
-
"@entur/button": "^3.3.13-beta.
|
|
40
|
-
"@entur/icons": "^8.0.
|
|
41
|
-
"@entur/layout": "^3.1.9-beta.
|
|
42
|
-
"@entur/tokens": "^3.19.
|
|
43
|
-
"@entur/typography": "^1.
|
|
44
|
-
"@entur/utils": "^0.12.
|
|
45
|
-
"@reach/dialog": "^0.16.
|
|
46
|
-
"classnames": "^2.
|
|
47
|
-
"react-focus-lock": "^2.
|
|
30
|
+
"@entur/a11y": "^0.2.99",
|
|
31
|
+
"@entur/button": "^3.3.13-beta.10",
|
|
32
|
+
"@entur/icons": "^8.0.0",
|
|
33
|
+
"@entur/layout": "^3.1.9-beta.10",
|
|
34
|
+
"@entur/tokens": "^3.19.1",
|
|
35
|
+
"@entur/typography": "^1.10.0-beta.10",
|
|
36
|
+
"@entur/utils": "^0.12.3",
|
|
37
|
+
"@reach/dialog": "^0.16.0",
|
|
38
|
+
"classnames": "^2.3.1",
|
|
39
|
+
"react-focus-lock": "^2.9.1"
|
|
48
40
|
},
|
|
49
41
|
"devDependencies": {
|
|
50
|
-
"
|
|
51
|
-
"@testing-library/react": "^10.4.9",
|
|
52
|
-
"@testing-library/user-event": "14.6.1",
|
|
53
|
-
"@vitejs/plugin-react": "^5.0.1",
|
|
54
|
-
"eslint": "^7.32.0",
|
|
55
|
-
"jest": "^29.0.0",
|
|
56
|
-
"jest-environment-jsdom": "^29.0.0",
|
|
57
|
-
"ts-jest": "^29.0.0",
|
|
58
|
-
"typescript": "^5.9.2",
|
|
59
|
-
"vite": "^7.1.3",
|
|
60
|
-
"vite-plugin-dts": "^4.5.4"
|
|
42
|
+
"dts-cli": "2.0.5"
|
|
61
43
|
},
|
|
62
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "180506f42d45f01bf4129fa538e414379735a4b4"
|
|
63
45
|
}
|