@tap-payments/os-micro-frontend-shared 0.1.341-test.6 → 0.1.342-test.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.
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { memo, useState } from 'react';
3
3
  import Box from '@mui/material/Box';
4
4
  import ClickAwayListener from '@mui/material/ClickAwayListener';
5
- import Popper from '@mui/material/Popper';
6
5
  import { useTranslation } from 'react-i18next';
7
6
  import { blackHeadingDownArrow } from '../../../../constants/index.js';
7
+ import { Menu } from '../../../index.js';
8
8
  import { GroupByLabel, GroupByDropdownButton, GroupByDropdown, Option } from './style';
9
9
  const groupByLabel = {
10
10
  day: 'Day',
@@ -26,7 +26,7 @@ function GroupBy({ sx, groupBy, isCalenderOpen, onUpdate }) {
26
26
  onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(value);
27
27
  onClose();
28
28
  };
29
- return (_jsx(ClickAwayListener, Object.assign({ onClickAway: onClose }, { children: _jsxs(Box, Object.assign({ sx: sx }, { children: [_jsx(GroupByLabel, { children: t('groupedBy') }), _jsxs(GroupByDropdownButton, Object.assign({ onClick: onOpen, open: open }, { children: [_jsx("span", { children: groupByLabel[groupBy] }), _jsx(Box, { component: "img", src: blackHeadingDownArrow, alt: "arrow", sx: Object.assign({}, (open && { transform: 'rotate(180deg)' })) })] })), _jsx(Popper, Object.assign({ open: open, anchorEl: anchorEl, sx: { zIndex: 3 } }, { children: _jsx(GroupByDropdown, Object.assign({ sx: { width: anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.clientWidth } }, { children: Object.entries(groupByLabel).map(([key, value]) => (_jsx(Option, Object.assign({ onClick: () => {
29
+ return (_jsx(ClickAwayListener, Object.assign({ onClickAway: onClose }, { children: _jsxs(Box, Object.assign({ sx: sx }, { children: [_jsx(GroupByLabel, { children: t('groupedBy') }), _jsxs(GroupByDropdownButton, Object.assign({ onClick: onOpen, open: open }, { children: [_jsx("span", { children: groupByLabel[groupBy] }), _jsx(Box, { component: "img", src: blackHeadingDownArrow, alt: "arrow", sx: Object.assign({}, (open && { transform: 'rotate(180deg)' })) })] })), _jsx(Menu, Object.assign({ open: open, anchorEl: anchorEl }, { children: _jsx(GroupByDropdown, Object.assign({ sx: { width: anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.clientWidth } }, { children: Object.entries(groupByLabel).map(([key, value]) => (_jsx(Option, Object.assign({ onClick: () => {
30
30
  onSelect(key);
31
31
  }, className: groupBy === key ? 'active' : '' }, { children: value }), `${key}-groupedBy`))) })) }))] })) })));
32
32
  }
@@ -42,7 +42,7 @@ export declare const API_LIST_CONSTANTS: {
42
42
  readonly limit: 50;
43
43
  };
44
44
  readonly WalletsList: {
45
- readonly limit: 15;
45
+ readonly limit: 50;
46
46
  readonly page: 1;
47
47
  };
48
48
  readonly brands: {
@@ -42,11 +42,11 @@ export const API_LIST_CONSTANTS = {
42
42
  limit: API_BASE_LIMIT,
43
43
  },
44
44
  WalletsList: {
45
- limit: 15,
45
+ limit: API_BASE_LIMIT,
46
46
  page: 1,
47
47
  },
48
48
  brands: {
49
- limit: 50,
49
+ limit: API_BASE_LIMIT,
50
50
  },
51
51
  MerchantsList: {
52
52
  limit: API_BASE_LIMIT,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.341-test.6",
5
- "testVersion": 6,
4
+ "version": "0.1.342-test.1",
5
+ "testVersion": 1,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",