@telefonica/mistica 11.11.0 → 11.11.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/dist/button.js +35 -43
- package/dist/carousel.js +4 -6
- package/dist/package-version.js +1 -1
- package/dist/theme.d.ts +2 -10
- package/dist/theme.js.flow +2 -10
- package/dist/utils/media-queries.d.ts +9 -7
- package/dist/utils/media-queries.js +5 -1
- package/dist/utils/media-queries.js.flow +9 -7
- package/dist/utils/platform.d.ts +1 -1
- package/dist/utils/platform.js.flow +1 -1
- package/dist-es/button.js +35 -43
- package/dist-es/carousel.js +5 -6
- package/dist-es/package-version.js +1 -1
- package/dist-es/utils/media-queries.js +5 -1
- package/package.json +1 -1
package/dist/button.js
CHANGED
|
@@ -212,13 +212,12 @@ var usePrimaryButtonStyles = (0, _jss).createUseStyles(function(theme) {
|
|
|
212
212
|
// - Make sure that in FF hover still has it's proper styles
|
|
213
213
|
// - Media query with "coarse" (mobile), avoids that in devices that have coarse implemented, focus style doesn't get stuck
|
|
214
214
|
// Must be always declared for Firefox
|
|
215
|
-
"&:hover:not([disabled])": {
|
|
216
|
-
backgroundColor: theme.colors.buttonPrimaryBackgroundHover
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
215
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
216
|
+
backgroundColor: theme.colors.buttonPrimaryBackgroundHover
|
|
217
|
+
}, theme.mq.touchableOnly, {
|
|
218
|
+
// Revert hover background in touch devices
|
|
219
|
+
backgroundColor: theme.colors.buttonPrimaryBackground
|
|
220
|
+
})
|
|
222
221
|
},
|
|
223
222
|
inverse: {
|
|
224
223
|
color: theme.colors.textButtonPrimaryInverse,
|
|
@@ -228,14 +227,13 @@ var usePrimaryButtonStyles = (0, _jss).createUseStyles(function(theme) {
|
|
|
228
227
|
color: theme.colors.textButtonPrimaryInverseSelected
|
|
229
228
|
},
|
|
230
229
|
"&[disabled]:not($isLoading)": disabledStyle,
|
|
231
|
-
"&:hover:not([disabled])": {
|
|
230
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
232
231
|
color: theme.colors.textButtonPrimaryInverseSelected,
|
|
233
|
-
backgroundColor: theme.colors.buttonPrimaryBackgroundSelectedInverse
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
232
|
+
backgroundColor: theme.colors.buttonPrimaryBackgroundSelectedInverse
|
|
233
|
+
}, theme.mq.touchableOnly, {
|
|
234
|
+
color: theme.colors.textButtonPrimaryInverse,
|
|
235
|
+
backgroundColor: theme.colors.buttonPrimaryBackgroundInverse
|
|
236
|
+
})
|
|
239
237
|
}
|
|
240
238
|
});
|
|
241
239
|
});
|
|
@@ -257,9 +255,7 @@ var useSecondaryButtonStyles = (0, _jss).createUseStyles(function(theme) {
|
|
|
257
255
|
light: _objectSpread({}, buttonSecondaryLightStyle(theme), {
|
|
258
256
|
"&:enabled:active": _objectSpread({}, buttonSecondaryHoverLightStyle(theme)),
|
|
259
257
|
"&[disabled]:not($isLoading)": disabledStyle,
|
|
260
|
-
"&:hover:not([disabled])": _objectSpread({}, buttonSecondaryHoverLightStyle(theme), {
|
|
261
|
-
"@media (pointer: coarse)": _objectSpread({}, buttonSecondaryLightStyle(theme))
|
|
262
|
-
})
|
|
258
|
+
"&:hover:not([disabled])": _objectSpread({}, buttonSecondaryHoverLightStyle(theme), _defineProperty({}, theme.mq.touchableOnly, _objectSpread({}, buttonSecondaryLightStyle(theme))))
|
|
263
259
|
}),
|
|
264
260
|
inverse: {
|
|
265
261
|
borderColor: theme.colors.buttonSecondaryBorderInverse,
|
|
@@ -269,14 +265,13 @@ var useSecondaryButtonStyles = (0, _jss).createUseStyles(function(theme) {
|
|
|
269
265
|
color: theme.colors.textButtonSecondaryInverseSelected
|
|
270
266
|
},
|
|
271
267
|
"&[disabled]:not($isLoading)": disabledStyle,
|
|
272
|
-
"&:hover:not([disabled])": {
|
|
268
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
273
269
|
borderColor: theme.colors.buttonSecondaryBorderSelectedInverse,
|
|
274
|
-
color: theme.colors.textButtonSecondaryInverseSelected
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}
|
|
270
|
+
color: theme.colors.textButtonSecondaryInverseSelected
|
|
271
|
+
}, theme.mq.touchableOnly, {
|
|
272
|
+
borderColor: theme.colors.buttonSecondaryBorderInverse,
|
|
273
|
+
color: theme.colors.textButtonSecondaryInverse
|
|
274
|
+
})
|
|
280
275
|
}
|
|
281
276
|
});
|
|
282
277
|
});
|
|
@@ -290,13 +285,12 @@ var dangerButtonStyles = function dangerButtonStyles(theme) {
|
|
|
290
285
|
"&[disabled]:not($isLoading)": {
|
|
291
286
|
opacity: 0.5
|
|
292
287
|
},
|
|
293
|
-
"&:hover:not([disabled])": {
|
|
294
|
-
backgroundColor: theme.colors.buttonDangerBackgroundHover
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
288
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
289
|
+
backgroundColor: theme.colors.buttonDangerBackgroundHover
|
|
290
|
+
}, theme.mq.touchableOnly, {
|
|
291
|
+
// Revert hover background in touch devices
|
|
292
|
+
backgroundColor: theme.colors.buttonDangerBackground
|
|
293
|
+
})
|
|
300
294
|
};
|
|
301
295
|
};
|
|
302
296
|
var useDangerButtonStyles = (0, _jss).createUseStyles(function(theme) {
|
|
@@ -480,12 +474,11 @@ var useButtonLinkStyles = (0, _jss).createUseStyles(function(theme) {
|
|
|
480
474
|
"&:enabled:active": {
|
|
481
475
|
backgroundColor: theme.colors.buttonLinkBackgroundSelected
|
|
482
476
|
},
|
|
483
|
-
"&:hover:not([disabled])": {
|
|
484
|
-
backgroundColor: theme.colors.buttonLinkBackgroundSelected
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
},
|
|
477
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
478
|
+
backgroundColor: theme.colors.buttonLinkBackgroundSelected
|
|
479
|
+
}, theme.mq.touchableOnly, {
|
|
480
|
+
backgroundColor: "initial"
|
|
481
|
+
}),
|
|
489
482
|
"&[disabled]": disabledStyle
|
|
490
483
|
},
|
|
491
484
|
inverse: {
|
|
@@ -493,12 +486,11 @@ var useButtonLinkStyles = (0, _jss).createUseStyles(function(theme) {
|
|
|
493
486
|
"&:enabled:active": {
|
|
494
487
|
backgroundColor: theme.colors.buttonLinkBackgroundSelectedInverse
|
|
495
488
|
},
|
|
496
|
-
"&:hover:not([disabled])": {
|
|
497
|
-
backgroundColor: theme.colors.buttonLinkBackgroundSelectedInverse
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
489
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
490
|
+
backgroundColor: theme.colors.buttonLinkBackgroundSelectedInverse
|
|
491
|
+
}, theme.mq.touchableOnly, {
|
|
492
|
+
backgroundColor: "initial"
|
|
493
|
+
})
|
|
502
494
|
},
|
|
503
495
|
aligned: {
|
|
504
496
|
marginLeft: -padding
|
package/dist/carousel.js
CHANGED
|
@@ -201,7 +201,7 @@ var hideScrollbar = {
|
|
|
201
201
|
};
|
|
202
202
|
var arrowButtonSize = 40;
|
|
203
203
|
var arrowButtonStyle = function arrowButtonStyle(theme) {
|
|
204
|
-
return {
|
|
204
|
+
return _defineProperty({
|
|
205
205
|
display: "flex",
|
|
206
206
|
alignItems: "center",
|
|
207
207
|
justifyContent: "center",
|
|
@@ -213,12 +213,10 @@ var arrowButtonStyle = function arrowButtonStyle(theme) {
|
|
|
213
213
|
transition: "opacity 0.2s",
|
|
214
214
|
"&[disabled]": {
|
|
215
215
|
opacity: 0
|
|
216
|
-
},
|
|
217
|
-
// don't show carrousel arrow buttons in touch devices, just regular horizontal scroll
|
|
218
|
-
"@media (pointer: coarse)": {
|
|
219
|
-
display: "none"
|
|
220
216
|
}
|
|
221
|
-
}
|
|
217
|
+
}, theme.mq.touchableOnly, {
|
|
218
|
+
display: "none"
|
|
219
|
+
});
|
|
222
220
|
};
|
|
223
221
|
var useStyles = (0, _jss).createUseStyles(function(theme) {
|
|
224
222
|
var _obj, _obj1, _obj2;
|
package/dist/package-version.js
CHANGED
package/dist/theme.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { RegionCode } from './utils/region-code';
|
|
|
3
3
|
import type { Locale } from './utils/locale';
|
|
4
4
|
import type { Skin, Colors, SkinName } from './skins/types';
|
|
5
5
|
import type { TrackingEvent } from './utils/types';
|
|
6
|
+
import type { MediaQueries } from './utils/media-queries';
|
|
6
7
|
export declare type ThemeTexts = typeof TEXTS_ES;
|
|
7
8
|
declare const TEXTS_ES: {
|
|
8
9
|
expirationDatePlaceholder: string;
|
|
@@ -124,16 +125,7 @@ export declare type Theme = {
|
|
|
124
125
|
dimensions: {
|
|
125
126
|
headerMobileHeight: number;
|
|
126
127
|
};
|
|
127
|
-
mq:
|
|
128
|
-
mobile: string;
|
|
129
|
-
tablet: string;
|
|
130
|
-
desktop: string;
|
|
131
|
-
largeDesktop: string;
|
|
132
|
-
tabletOrBigger: string;
|
|
133
|
-
tabletOrSmaller: string;
|
|
134
|
-
desktopOrBigger: string;
|
|
135
|
-
supportsHover: string;
|
|
136
|
-
};
|
|
128
|
+
mq: MediaQueries;
|
|
137
129
|
colors: Colors;
|
|
138
130
|
Link: LinkComponent;
|
|
139
131
|
isDarkMode: boolean;
|
package/dist/theme.js.flow
CHANGED
|
@@ -5,6 +5,7 @@ import type { RegionCode } from "./utils/region-code";
|
|
|
5
5
|
import type { Locale } from "./utils/locale";
|
|
6
6
|
import type { Skin, Colors, SkinName } from "./skins/types";
|
|
7
7
|
import type { TrackingEvent } from "./utils/types";
|
|
8
|
+
import type { MediaQueries } from "./utils/media-queries";
|
|
8
9
|
export type ThemeTexts = typeof TEXTS_ES;
|
|
9
10
|
declare var TEXTS_ES: {
|
|
10
11
|
expirationDatePlaceholder: string,
|
|
@@ -128,16 +129,7 @@ export type Theme = {
|
|
|
128
129
|
dimensions: {
|
|
129
130
|
headerMobileHeight: number,
|
|
130
131
|
},
|
|
131
|
-
mq:
|
|
132
|
-
mobile: string,
|
|
133
|
-
tablet: string,
|
|
134
|
-
desktop: string,
|
|
135
|
-
largeDesktop: string,
|
|
136
|
-
tabletOrBigger: string,
|
|
137
|
-
tabletOrSmaller: string,
|
|
138
|
-
desktopOrBigger: string,
|
|
139
|
-
supportsHover: string,
|
|
140
|
-
},
|
|
132
|
+
mq: MediaQueries,
|
|
141
133
|
colors: Colors,
|
|
142
134
|
Link: LinkComponent,
|
|
143
135
|
isDarkMode: boolean,
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
tabletMinWidth: number;
|
|
3
|
-
desktopMinWidth: number;
|
|
4
|
-
largeDesktopMinWidth: number;
|
|
5
|
-
desktopOrTabletMinHeight: number;
|
|
6
|
-
}) => {
|
|
1
|
+
export declare type MediaQueries = Readonly<{
|
|
7
2
|
mobile: string;
|
|
8
3
|
tablet: string;
|
|
9
4
|
desktop: string;
|
|
@@ -12,4 +7,11 @@ export declare const createMediaQueries: ({ desktopOrTabletMinHeight, tabletMinW
|
|
|
12
7
|
tabletOrSmaller: string;
|
|
13
8
|
desktopOrBigger: string;
|
|
14
9
|
supportsHover: string;
|
|
15
|
-
|
|
10
|
+
touchableOnly: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const createMediaQueries: ({ desktopOrTabletMinHeight, tabletMinWidth, desktopMinWidth, largeDesktopMinWidth, }: {
|
|
13
|
+
tabletMinWidth: number;
|
|
14
|
+
desktopMinWidth: number;
|
|
15
|
+
largeDesktopMinWidth: number;
|
|
16
|
+
desktopOrTabletMinHeight: number;
|
|
17
|
+
}) => MediaQueries;
|
|
@@ -17,7 +17,11 @@ var createMediaQueries = function createMediaQueries(param) {
|
|
|
17
17
|
// Also enabled for (pointer: none) for acceptance tests, where (pointer: fine) doesn't match.
|
|
18
18
|
// WARNING: you may be tempted to use @media (hover: hover) instead, but that doesn't work as expected in some android browsers.
|
|
19
19
|
// See: https://hover-pointer-media-query.glitch.me/ and https://github.com/mui-org/material-ui/issues/15736
|
|
20
|
-
supportsHover: "@media (pointer: fine), (pointer: none)"
|
|
20
|
+
supportsHover: "@media (pointer: fine), (pointer: none)",
|
|
21
|
+
/**
|
|
22
|
+
* Scopes the styles to touchable devices.
|
|
23
|
+
* See: https://stackoverflow.com/questions/12469875/how-to-code-css-media-queries-targeting-all-mobile-devices-and-tablets/42835826#42835826
|
|
24
|
+
*/ touchableOnly: "@media (pointer: coarse), @media (hover: none)"
|
|
21
25
|
};
|
|
22
26
|
};
|
|
23
27
|
exports.createMediaQueries = createMediaQueries;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
tabletMinWidth: number,
|
|
5
|
-
desktopMinWidth: number,
|
|
6
|
-
largeDesktopMinWidth: number,
|
|
7
|
-
desktopOrTabletMinHeight: number,
|
|
8
|
-
}) => {
|
|
3
|
+
export type MediaQueries = $ReadOnly<{
|
|
9
4
|
mobile: string,
|
|
10
5
|
tablet: string,
|
|
11
6
|
desktop: string,
|
|
@@ -14,4 +9,11 @@ declare export var createMediaQueries: (x: {
|
|
|
14
9
|
tabletOrSmaller: string,
|
|
15
10
|
desktopOrBigger: string,
|
|
16
11
|
supportsHover: string,
|
|
17
|
-
|
|
12
|
+
touchableOnly: string,
|
|
13
|
+
}>;
|
|
14
|
+
declare export var createMediaQueries: (x: {
|
|
15
|
+
tabletMinWidth: number,
|
|
16
|
+
desktopMinWidth: number,
|
|
17
|
+
largeDesktopMinWidth: number,
|
|
18
|
+
desktopOrTabletMinHeight: number,
|
|
19
|
+
}) => MediaQueries;
|
package/dist/utils/platform.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const isIos: (platformOverrides: Theme['platformOverrides']) => b
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const isSafari: () => boolean;
|
|
13
13
|
export declare const isFirefox: (platformOverrides?: {
|
|
14
|
-
platform?: "
|
|
14
|
+
platform?: "desktop" | "ios" | "android" | undefined;
|
|
15
15
|
insideNovumNativeApp?: boolean | undefined;
|
|
16
16
|
userAgent?: string | undefined;
|
|
17
17
|
} | undefined) => boolean;
|
|
@@ -22,7 +22,7 @@ declare export var isIos: (
|
|
|
22
22
|
declare export var isSafari: () => boolean;
|
|
23
23
|
declare export var isFirefox: (
|
|
24
24
|
platformOverrides?: {
|
|
25
|
-
platform?: "
|
|
25
|
+
platform?: "desktop" | "ios" | "android" | void,
|
|
26
26
|
insideNovumNativeApp?: boolean | void,
|
|
27
27
|
userAgent?: string | void,
|
|
28
28
|
} | void
|
package/dist-es/button.js
CHANGED
|
@@ -179,13 +179,12 @@ var usePrimaryButtonStyles = createUseStyles(function(theme) {
|
|
|
179
179
|
// - Make sure that in FF hover still has it's proper styles
|
|
180
180
|
// - Media query with "coarse" (mobile), avoids that in devices that have coarse implemented, focus style doesn't get stuck
|
|
181
181
|
// Must be always declared for Firefox
|
|
182
|
-
"&:hover:not([disabled])": {
|
|
183
|
-
backgroundColor: theme.colors.buttonPrimaryBackgroundHover
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
182
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
183
|
+
backgroundColor: theme.colors.buttonPrimaryBackgroundHover
|
|
184
|
+
}, theme.mq.touchableOnly, {
|
|
185
|
+
// Revert hover background in touch devices
|
|
186
|
+
backgroundColor: theme.colors.buttonPrimaryBackground
|
|
187
|
+
})
|
|
189
188
|
},
|
|
190
189
|
inverse: {
|
|
191
190
|
color: theme.colors.textButtonPrimaryInverse,
|
|
@@ -195,14 +194,13 @@ var usePrimaryButtonStyles = createUseStyles(function(theme) {
|
|
|
195
194
|
color: theme.colors.textButtonPrimaryInverseSelected
|
|
196
195
|
},
|
|
197
196
|
"&[disabled]:not($isLoading)": disabledStyle,
|
|
198
|
-
"&:hover:not([disabled])": {
|
|
197
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
199
198
|
color: theme.colors.textButtonPrimaryInverseSelected,
|
|
200
|
-
backgroundColor: theme.colors.buttonPrimaryBackgroundSelectedInverse
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
199
|
+
backgroundColor: theme.colors.buttonPrimaryBackgroundSelectedInverse
|
|
200
|
+
}, theme.mq.touchableOnly, {
|
|
201
|
+
color: theme.colors.textButtonPrimaryInverse,
|
|
202
|
+
backgroundColor: theme.colors.buttonPrimaryBackgroundInverse
|
|
203
|
+
})
|
|
206
204
|
}
|
|
207
205
|
});
|
|
208
206
|
});
|
|
@@ -224,9 +222,7 @@ var useSecondaryButtonStyles = createUseStyles(function(theme) {
|
|
|
224
222
|
light: _objectSpread({}, buttonSecondaryLightStyle(theme), {
|
|
225
223
|
"&:enabled:active": _objectSpread({}, buttonSecondaryHoverLightStyle(theme)),
|
|
226
224
|
"&[disabled]:not($isLoading)": disabledStyle,
|
|
227
|
-
"&:hover:not([disabled])": _objectSpread({}, buttonSecondaryHoverLightStyle(theme), {
|
|
228
|
-
"@media (pointer: coarse)": _objectSpread({}, buttonSecondaryLightStyle(theme))
|
|
229
|
-
})
|
|
225
|
+
"&:hover:not([disabled])": _objectSpread({}, buttonSecondaryHoverLightStyle(theme), _defineProperty({}, theme.mq.touchableOnly, _objectSpread({}, buttonSecondaryLightStyle(theme))))
|
|
230
226
|
}),
|
|
231
227
|
inverse: {
|
|
232
228
|
borderColor: theme.colors.buttonSecondaryBorderInverse,
|
|
@@ -236,14 +232,13 @@ var useSecondaryButtonStyles = createUseStyles(function(theme) {
|
|
|
236
232
|
color: theme.colors.textButtonSecondaryInverseSelected
|
|
237
233
|
},
|
|
238
234
|
"&[disabled]:not($isLoading)": disabledStyle,
|
|
239
|
-
"&:hover:not([disabled])": {
|
|
235
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
240
236
|
borderColor: theme.colors.buttonSecondaryBorderSelectedInverse,
|
|
241
|
-
color: theme.colors.textButtonSecondaryInverseSelected
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
237
|
+
color: theme.colors.textButtonSecondaryInverseSelected
|
|
238
|
+
}, theme.mq.touchableOnly, {
|
|
239
|
+
borderColor: theme.colors.buttonSecondaryBorderInverse,
|
|
240
|
+
color: theme.colors.textButtonSecondaryInverse
|
|
241
|
+
})
|
|
247
242
|
}
|
|
248
243
|
});
|
|
249
244
|
});
|
|
@@ -257,13 +252,12 @@ var dangerButtonStyles = function(theme) {
|
|
|
257
252
|
"&[disabled]:not($isLoading)": {
|
|
258
253
|
opacity: 0.5
|
|
259
254
|
},
|
|
260
|
-
"&:hover:not([disabled])": {
|
|
261
|
-
backgroundColor: theme.colors.buttonDangerBackgroundHover
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}
|
|
255
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
256
|
+
backgroundColor: theme.colors.buttonDangerBackgroundHover
|
|
257
|
+
}, theme.mq.touchableOnly, {
|
|
258
|
+
// Revert hover background in touch devices
|
|
259
|
+
backgroundColor: theme.colors.buttonDangerBackground
|
|
260
|
+
})
|
|
267
261
|
};
|
|
268
262
|
};
|
|
269
263
|
var useDangerButtonStyles = createUseStyles(function(theme) {
|
|
@@ -447,12 +441,11 @@ var useButtonLinkStyles = createUseStyles(function(theme) {
|
|
|
447
441
|
"&:enabled:active": {
|
|
448
442
|
backgroundColor: theme.colors.buttonLinkBackgroundSelected
|
|
449
443
|
},
|
|
450
|
-
"&:hover:not([disabled])": {
|
|
451
|
-
backgroundColor: theme.colors.buttonLinkBackgroundSelected
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
},
|
|
444
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
445
|
+
backgroundColor: theme.colors.buttonLinkBackgroundSelected
|
|
446
|
+
}, theme.mq.touchableOnly, {
|
|
447
|
+
backgroundColor: "initial"
|
|
448
|
+
}),
|
|
456
449
|
"&[disabled]": disabledStyle
|
|
457
450
|
},
|
|
458
451
|
inverse: {
|
|
@@ -460,12 +453,11 @@ var useButtonLinkStyles = createUseStyles(function(theme) {
|
|
|
460
453
|
"&:enabled:active": {
|
|
461
454
|
backgroundColor: theme.colors.buttonLinkBackgroundSelectedInverse
|
|
462
455
|
},
|
|
463
|
-
"&:hover:not([disabled])": {
|
|
464
|
-
backgroundColor: theme.colors.buttonLinkBackgroundSelectedInverse
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
}
|
|
456
|
+
"&:hover:not([disabled])": _defineProperty({
|
|
457
|
+
backgroundColor: theme.colors.buttonLinkBackgroundSelectedInverse
|
|
458
|
+
}, theme.mq.touchableOnly, {
|
|
459
|
+
backgroundColor: "initial"
|
|
460
|
+
})
|
|
469
461
|
},
|
|
470
462
|
aligned: {
|
|
471
463
|
marginLeft: -padding
|
package/dist-es/carousel.js
CHANGED
|
@@ -168,7 +168,8 @@ var hideScrollbar = {
|
|
|
168
168
|
};
|
|
169
169
|
var arrowButtonSize = 40;
|
|
170
170
|
var arrowButtonStyle = function(theme) {
|
|
171
|
-
return
|
|
171
|
+
return(// don't show carrousel arrow buttons in touch devices, just regular horizontal scroll
|
|
172
|
+
_defineProperty({
|
|
172
173
|
display: "flex",
|
|
173
174
|
alignItems: "center",
|
|
174
175
|
justifyContent: "center",
|
|
@@ -180,12 +181,10 @@ var arrowButtonStyle = function(theme) {
|
|
|
180
181
|
transition: "opacity 0.2s",
|
|
181
182
|
"&[disabled]": {
|
|
182
183
|
opacity: 0
|
|
183
|
-
},
|
|
184
|
-
// don't show carrousel arrow buttons in touch devices, just regular horizontal scroll
|
|
185
|
-
"@media (pointer: coarse)": {
|
|
186
|
-
display: "none"
|
|
187
184
|
}
|
|
188
|
-
}
|
|
185
|
+
}, theme.mq.touchableOnly, {
|
|
186
|
+
display: "none"
|
|
187
|
+
}));
|
|
189
188
|
};
|
|
190
189
|
var useStyles = createUseStyles(function(theme) {
|
|
191
190
|
var _obj, _obj1, _obj2;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
|
|
2
|
-
export var PACKAGE_VERSION = "11.11.
|
|
2
|
+
export var PACKAGE_VERSION = "11.11.1";
|
|
@@ -12,6 +12,10 @@ export var createMediaQueries = function(param) {
|
|
|
12
12
|
// Also enabled for (pointer: none) for acceptance tests, where (pointer: fine) doesn't match.
|
|
13
13
|
// WARNING: you may be tempted to use @media (hover: hover) instead, but that doesn't work as expected in some android browsers.
|
|
14
14
|
// See: https://hover-pointer-media-query.glitch.me/ and https://github.com/mui-org/material-ui/issues/15736
|
|
15
|
-
supportsHover: "@media (pointer: fine), (pointer: none)"
|
|
15
|
+
supportsHover: "@media (pointer: fine), (pointer: none)",
|
|
16
|
+
/**
|
|
17
|
+
* Scopes the styles to touchable devices.
|
|
18
|
+
* See: https://stackoverflow.com/questions/12469875/how-to-code-css-media-queries-targeting-all-mobile-devices-and-tablets/42835826#42835826
|
|
19
|
+
*/ touchableOnly: "@media (pointer: coarse), @media (hover: none)"
|
|
16
20
|
};
|
|
17
21
|
};
|