@entur/button 2.10.4 → 2.10.5-alpha.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.10.5-alpha.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.10.5-alpha.0...@entur/button@2.10.5-alpha.1) (2022-10-26)
7
+
8
+ **Note:** Version bump only for package @entur/button
9
+
10
+ ## [2.10.5-alpha.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.10.4...@entur/button@2.10.5-alpha.0) (2022-10-20)
11
+
12
+ **Note:** Version bump only for package @entur/button
13
+
6
14
  ## [2.10.3](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.10.2...@entur/button@2.10.3) (2022-08-31)
7
15
 
8
16
  **Note:** Version bump only for package @entur/button
package/dist/styles.css CHANGED
@@ -2,6 +2,141 @@
2
2
  --eds-button: 1;
3
3
  }/* DO NOT CHANGE!*/
4
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
+ .eds-button-group .eds-button {
6
+ margin-right: 0.75rem;
7
+ margin-bottom: 0.75rem;
8
+ }
9
+ .eds-button-group .eds-button:only-child {
10
+ margin: 0;
11
+ }/* DO NOT CHANGE!*/
12
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
13
+ .eds-icon-button {
14
+ border: 0.0625rem solid transparent;
15
+ border-radius: 0.25rem;
16
+ background: none;
17
+ color: inherit;
18
+ cursor: pointer;
19
+ display: flex;
20
+ justify-content: center;
21
+ align-items: center;
22
+ font-size: 1rem;
23
+ padding: 0.5rem;
24
+ }
25
+ .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
26
+ background-color: #ffffff;
27
+ }
28
+ .eds-icon-button--size-small {
29
+ height: 1.5rem;
30
+ width: 1.5rem;
31
+ padding: 0;
32
+ }
33
+ .eds-icon-button--size-medium {
34
+ height: 2rem;
35
+ width: 2rem;
36
+ }
37
+ .eds-icon-button:hover {
38
+ background-color: #d1d4e3;
39
+ }
40
+ .eds-contrast .eds-icon-button:hover {
41
+ background-color: #393d79;
42
+ }
43
+ .eds-icon-button:active {
44
+ background: #babbcf;
45
+ }
46
+ .eds-contrast .eds-icon-button:active {
47
+ background: #292b6a;
48
+ }
49
+ .eds-icon-button:focus {
50
+ border: 0.0625rem solid #181c56;
51
+ outline: none;
52
+ }
53
+ .eds-contrast .eds-icon-button:focus {
54
+ border: 0.0625rem solid #ffffff;
55
+ }
56
+ .eds-icon-button--disabled {
57
+ opacity: 0.5;
58
+ pointer-events: none;
59
+ }
60
+ .eds-icon-button--disabled__wrapper {
61
+ cursor: not-allowed;
62
+ width: -webkit-fit-content;
63
+ width: -moz-fit-content;
64
+ width: fit-content;
65
+ }/* DO NOT CHANGE!*/
66
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
67
+ .eds-floating-button {
68
+ align-items: center;
69
+ -webkit-appearance: none;
70
+ -moz-appearance: none;
71
+ appearance: none;
72
+ background: #181c56;
73
+ border: 0;
74
+ border-radius: 1.5rem;
75
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
76
+ color: #ffffff;
77
+ cursor: pointer;
78
+ display: flex;
79
+ font-family: inherit;
80
+ font-size: 0.875rem;
81
+ font-weight: 500;
82
+ justify-content: center;
83
+ min-height: 3rem;
84
+ margin: 0;
85
+ min-width: 3rem;
86
+ padding: 0 1rem;
87
+ position: relative;
88
+ z-index: 10;
89
+ }
90
+ .eds-floating-button--extended {
91
+ padding: 0 0.9375rem;
92
+ }
93
+ .eds-floating-button:hover {
94
+ background-color: #2f3367;
95
+ }
96
+ .eds-floating-button:active {
97
+ background-color: #16194d;
98
+ }
99
+ .eds-floating-button:focus {
100
+ outline-offset: 0.125rem;
101
+ outline: none;
102
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
103
+ }
104
+ .eds-contrast .eds-floating-button:focus {
105
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
106
+ }
107
+ .eds-contrast .eds-floating-button {
108
+ background: #ffffff;
109
+ color: #181c56;
110
+ box-shadow: 0 0.0625rem 0.1875rem #393d79;
111
+ }
112
+ .eds-contrast .eds-floating-button:hover {
113
+ background-color: #b6bee5;
114
+ }
115
+ .eds-contrast .eds-floating-button:active {
116
+ background-color: #e6e6e6;
117
+ }
118
+ .eds-floating-button--small {
119
+ border-radius: 1rem;
120
+ height: 2rem;
121
+ padding: 0 0.5rem;
122
+ min-width: 2rem;
123
+ min-height: 2rem;
124
+ flex: 0 1 auto;
125
+ }
126
+ .eds-floating-button--small.eds-floating-button--extended {
127
+ padding: 0 0.6875rem;
128
+ }
129
+
130
+ .eds-floating-button--extended > * {
131
+ margin: 0 0.5em;
132
+ }
133
+ .eds-floating-button--extended > *:first-child {
134
+ margin-left: 0;
135
+ }
136
+ .eds-floating-button--extended > *:last-child {
137
+ margin-right: 0;
138
+ }/* DO NOT CHANGE!*/
139
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
140
  a.eds-button {
6
141
  padding: 0.5rem 1rem;
7
142
  }
@@ -217,141 +352,6 @@ a.eds-button--size-large {
217
352
  color: #aeb7e2;
218
353
  }/* DO NOT CHANGE!*/
219
354
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
220
- .eds-button-group .eds-button {
221
- margin-right: 0.75rem;
222
- margin-bottom: 0.75rem;
223
- }
224
- .eds-button-group .eds-button:only-child {
225
- margin: 0;
226
- }/* DO NOT CHANGE!*/
227
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
228
- .eds-icon-button {
229
- border: 0.0625rem solid transparent;
230
- border-radius: 0.25rem;
231
- background: none;
232
- color: inherit;
233
- cursor: pointer;
234
- display: flex;
235
- justify-content: center;
236
- align-items: center;
237
- font-size: 1rem;
238
- padding: 0.5rem;
239
- }
240
- .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
241
- background-color: #ffffff;
242
- }
243
- .eds-icon-button--size-small {
244
- height: 1.5rem;
245
- width: 1.5rem;
246
- padding: 0;
247
- }
248
- .eds-icon-button--size-medium {
249
- height: 2rem;
250
- width: 2rem;
251
- }
252
- .eds-icon-button:hover {
253
- background-color: #d1d4e3;
254
- }
255
- .eds-contrast .eds-icon-button:hover {
256
- background-color: #393d79;
257
- }
258
- .eds-icon-button:active {
259
- background: #babbcf;
260
- }
261
- .eds-contrast .eds-icon-button:active {
262
- background: #292b6a;
263
- }
264
- .eds-icon-button:focus {
265
- border: 0.0625rem solid #181c56;
266
- outline: none;
267
- }
268
- .eds-contrast .eds-icon-button:focus {
269
- border: 0.0625rem solid #ffffff;
270
- }
271
- .eds-icon-button--disabled {
272
- opacity: 0.5;
273
- pointer-events: none;
274
- }
275
- .eds-icon-button--disabled__wrapper {
276
- cursor: not-allowed;
277
- width: -webkit-fit-content;
278
- width: -moz-fit-content;
279
- width: fit-content;
280
- }/* DO NOT CHANGE!*/
281
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
282
- .eds-floating-button {
283
- align-items: center;
284
- -webkit-appearance: none;
285
- -moz-appearance: none;
286
- appearance: none;
287
- background: #181c56;
288
- border: 0;
289
- border-radius: 1.5rem;
290
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
291
- color: #ffffff;
292
- cursor: pointer;
293
- display: flex;
294
- font-family: inherit;
295
- font-size: 0.875rem;
296
- font-weight: 500;
297
- justify-content: center;
298
- min-height: 3rem;
299
- margin: 0;
300
- min-width: 3rem;
301
- padding: 0 1rem;
302
- position: relative;
303
- z-index: 10;
304
- }
305
- .eds-floating-button--extended {
306
- padding: 0 0.9375rem;
307
- }
308
- .eds-floating-button:hover {
309
- background-color: #2f3367;
310
- }
311
- .eds-floating-button:active {
312
- background-color: #16194d;
313
- }
314
- .eds-floating-button:focus {
315
- outline-offset: 0.125rem;
316
- outline: none;
317
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
318
- }
319
- .eds-contrast .eds-floating-button:focus {
320
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
321
- }
322
- .eds-contrast .eds-floating-button {
323
- background: #ffffff;
324
- color: #181c56;
325
- box-shadow: 0 0.0625rem 0.1875rem #393d79;
326
- }
327
- .eds-contrast .eds-floating-button:hover {
328
- background-color: #b6bee5;
329
- }
330
- .eds-contrast .eds-floating-button:active {
331
- background-color: #e6e6e6;
332
- }
333
- .eds-floating-button--small {
334
- border-radius: 1rem;
335
- height: 2rem;
336
- padding: 0 0.5rem;
337
- min-width: 2rem;
338
- min-height: 2rem;
339
- flex: 0 1 auto;
340
- }
341
- .eds-floating-button--small.eds-floating-button--extended {
342
- padding: 0 0.6875rem;
343
- }
344
-
345
- .eds-floating-button--extended > * {
346
- margin: 0 0.5em;
347
- }
348
- .eds-floating-button--extended > *:first-child {
349
- margin-left: 0;
350
- }
351
- .eds-floating-button--extended > *:last-child {
352
- margin-right: 0;
353
- }/* DO NOT CHANGE!*/
354
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
355
355
  .eds-square-button {
356
356
  --icon-color: var(--primary-text-color);
357
357
  --icon-background: transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/button",
3
- "version": "2.10.4",
3
+ "version": "2.10.5-alpha.1",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/button.esm.js",
@@ -27,12 +27,12 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/loader": "^0.4.12",
31
- "@entur/utils": "^0.4.5",
30
+ "@entur/loader": "^0.4.13-alpha.1",
31
+ "@entur/utils": "^0.5.0-alpha.0",
32
32
  "classnames": "^2.3.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@entur/tokens": "^3.4.1"
36
36
  },
37
- "gitHead": "c1318d134c4097efd550872cabf41b1e67940eae"
37
+ "gitHead": "8e5d6c63d180d5b3a7b2d0c6c4cdbb8ecb8af8f4"
38
38
  }