@entur/modal 1.7.62 → 1.7.64

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This package contains the different Modal components.
4
4
 
5
- > 💡 Looking for the [documentation](https://design.entur.no/komponenter/layout-og-flater/modal)?
5
+ > 💡 Looking for the [documentation](https://linje.entur.no/komponenter/layout-og-flater/modal)?
6
6
 
7
7
  ## Installation
8
8
 
@@ -14,4 +14,4 @@ yarn add @entur/modal
14
14
 
15
15
  ## Usage
16
16
 
17
- Please refer to the [documentation](https://design.entur.no/komponenter/layout-og-flater/modal) for usage information.
17
+ Please refer to the [documentation](https://linje.entur.no/komponenter/layout-og-flater/modal) for usage information.
package/dist/styles.css CHANGED
@@ -108,6 +108,44 @@
108
108
  }
109
109
  /* DO NOT CHANGE!*/
110
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. */
111
149
  /* DO NOT CHANGE!*/
112
150
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
113
151
  /* DO NOT CHANGE!*/
@@ -151,6 +189,7 @@
151
189
  :root {
152
190
  --basecolors-frame-contrast: #181c56;
153
191
  --basecolors-frame-contrastalt: #393d79;
192
+ --basecolors-frame-contrastalt-2: #292b6a;
154
193
  --basecolors-frame-default: #ffffff;
155
194
  --basecolors-frame-elevated: #ffffff;
156
195
  --basecolors-frame-elevatedalt: #f6f6f9;
@@ -216,6 +255,7 @@
216
255
  [data-color-mode=dark] {
217
256
  --basecolors-frame-contrast: #212233;
218
257
  --basecolors-frame-contrastalt: #141527;
258
+ --basecolors-frame-contrastalt-2: #08091c;
219
259
  --basecolors-frame-default: #08091c;
220
260
  --basecolors-frame-elevated: rgba(229, 229, 233, 0.1490196078);
221
261
  --basecolors-frame-elevatedalt: #464755;
@@ -281,41 +321,3 @@
281
321
  :root {
282
322
  --eds-modal: 1;
283
323
  }
284
- /* DO NOT CHANGE!*/
285
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
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);
290
- bottom: 0;
291
- padding: 1.5rem;
292
- position: fixed;
293
- right: 0;
294
- top: 0;
295
- max-width: 100%;
296
- min-width: 20rem;
297
- width: 25vw;
298
- z-index: 40;
299
- overflow-y: auto;
300
- }
301
- .eds-contrast .eds-drawer {
302
- background-color: var(--components-modal-drawer-contrast-background);
303
- color: var(--components-modal-drawer-contrast-text);
304
- }
305
- .eds-drawer__close-button {
306
- margin: 0;
307
- position: absolute;
308
- top: 1.5rem;
309
- right: 1.5rem;
310
- }
311
-
312
- @keyframes slideFromRight {
313
- from {
314
- box-shadow: none;
315
- transform: translateX(100%);
316
- }
317
- to {
318
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
319
- transform: 0;
320
- }
321
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/modal",
3
- "version": "1.7.62",
3
+ "version": "1.7.64",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/modal.esm.js",
@@ -27,13 +27,13 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/a11y": "^0.2.96",
31
- "@entur/button": "^3.3.2",
32
- "@entur/icons": "^7.7.0",
33
- "@entur/layout": "^2.4.2",
34
- "@entur/tokens": "^3.17.6",
35
- "@entur/typography": "^1.9.2",
36
- "@entur/utils": "^0.12.2",
30
+ "@entur/a11y": "^0.2.98",
31
+ "@entur/button": "^3.3.4",
32
+ "@entur/icons": "^7.8.0",
33
+ "@entur/layout": "^3.1.0",
34
+ "@entur/tokens": "^3.19.0",
35
+ "@entur/typography": "^1.9.4",
36
+ "@entur/utils": "^0.12.3",
37
37
  "@reach/dialog": "^0.16.0",
38
38
  "classnames": "^2.3.1",
39
39
  "react-focus-lock": "^2.9.1"
@@ -41,5 +41,5 @@
41
41
  "devDependencies": {
42
42
  "dts-cli": "2.0.5"
43
43
  },
44
- "gitHead": "7c03f458e9c34f5e0fd4f2d23c8eb6a6e47fb669"
44
+ "gitHead": "bfd8f62e4735cc13d55e50bc8747535d72aaf679"
45
45
  }