@shopgate/pwa-common 7.32.0-beta.11 → 7.32.0-beta.13

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.
@@ -11,6 +11,9 @@ import { useReduceMotion } from '@shopgate/engage/a11y/hooks';
11
11
  import { makeStyles } from '@shopgate/engage/styles';
12
12
  import SwiperItem from "./components/SwiperItem";
13
13
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
14
+ const INSET_LEFT = 'var(--swiper-pagination-inset-left, 0px)';
15
+ const INSET_RIGHT = 'var(--swiper-pagination-inset-right, 0px)';
16
+ const INSET_WIDTH = `calc(100% - ${INSET_LEFT} - ${INSET_RIGHT})`;
14
17
  const useStyles = makeStyles()(theme => ({
15
18
  container: {
16
19
  position: 'relative',
@@ -18,6 +21,8 @@ const useStyles = makeStyles()(theme => ({
18
21
  '&.pagination-below': {
19
22
  '& .swiper-pagination.swiper-pagination-bullets': {
20
23
  '--swiper-pagination-bottom': 0,
24
+ '--swiper-pagination-inset-left': '0px',
25
+ '--swiper-pagination-inset-right': '0px',
21
26
  position: 'relative',
22
27
  height: 32,
23
28
  lineHeight: '40px'
@@ -47,7 +52,7 @@ const useStyles = makeStyles()(theme => ({
47
52
  '& .swiper-pagination-fraction': {
48
53
  top: 'var(--swiper-pagination-fraction-top-offset, 4px)',
49
54
  left: 'auto',
50
- right: 0,
55
+ right: INSET_RIGHT,
51
56
  bottom: 'auto',
52
57
  fontSize: theme.typography.caption.fontSize,
53
58
  background: theme.components.swiper.paginationFractionBackground,
@@ -58,7 +63,16 @@ const useStyles = makeStyles()(theme => ({
58
63
  margin: '4px 16px',
59
64
  transition: 'opacity 300ms cubic-bezier(0.25, 0.1, 0.25, 1)'
60
65
  },
61
- '& .swiper-pagination-progressbar': {
66
+ '&& .swiper-pagination-bullets': {
67
+ left: INSET_LEFT,
68
+ width: INSET_WIDTH
69
+ },
70
+ '&& .swiper-pagination-bullets.swiper-pagination-bullets-dynamic': {
71
+ left: `calc(50% + (${INSET_LEFT} - ${INSET_RIGHT}) / 2)`
72
+ },
73
+ '&& .swiper-pagination-progressbar': {
74
+ left: INSET_LEFT,
75
+ width: INSET_WIDTH,
62
76
  background: theme.components.swiper.paginationProgressbarBackground,
63
77
  '& .swiper-pagination-progressbar-fill': {
64
78
  background: theme.components.swiper.paginationProgressbarActiveColor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-common",
3
- "version": "7.32.0-beta.11",
3
+ "version": "7.32.0-beta.13",
4
4
  "description": "Common library for the Shopgate Connect PWA.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@redux-devtools/extension": "^3.3.0",
19
19
  "@sentry/browser": "6.0.1",
20
- "@shopgate/pwa-benchmark": "7.32.0-beta.11",
20
+ "@shopgate/pwa-benchmark": "7.32.0-beta.13",
21
21
  "@virtuous/conductor": "~2.5.0",
22
22
  "@virtuous/react-conductor": "~2.5.0",
23
23
  "@virtuous/redux-persister": "1.1.0-beta.7",
@@ -40,7 +40,7 @@
40
40
  "swiper": "12.2.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@shopgate/pwa-core": "7.32.0-beta.11",
43
+ "@shopgate/pwa-core": "7.32.0-beta.13",
44
44
  "@types/lodash": "^4.17.24",
45
45
  "@types/react-portal": "^3.0.9",
46
46
  "lodash": "^4.17.23",