@tap-payments/os-micro-frontend-shared 0.0.220 → 0.0.222-test.10

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.
@@ -554,9 +554,9 @@ export declare const Icon: import("@emotion/styled").StyledComponent<{
554
554
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
555
555
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
556
556
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
557
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
558
557
  src?: string | undefined;
559
558
  alt?: string | undefined;
559
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
560
560
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
561
561
  useMap?: string | undefined;
562
562
  loading?: "eager" | "lazy" | undefined;
@@ -272,9 +272,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
272
272
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
273
273
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
274
274
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
275
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
276
275
  src?: string | undefined;
277
276
  alt?: string | undefined;
277
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
278
278
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
279
279
  useMap?: string | undefined;
280
280
  loading?: "eager" | "lazy" | undefined;
@@ -11,10 +11,9 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import Tooltip from '../../../Tooltip';
14
- import { paymentSourceAnimation } from '../../../CountBadge/style';
15
14
  import { ImageWrapper } from '../../../index.js';
16
15
  import { TableCell } from '../../../TableCells';
17
- import { ChannelTextLabel, ChannelTextWrapper, SalesChannelsContainer, StyledSourceCell, StyledSourceImage } from './style';
16
+ import { ChannelTextLabel, ChannelTextWrapper, salesChannelAnimation, SalesChannelsContainer, StyledSourceCell, StyledSourceImage } from './style';
18
17
  function SalesChannelCell(_a) {
19
18
  var _b;
20
19
  var { channels, isTextShown } = _a, props = __rest(_a, ["channels", "isTextShown"]);
@@ -22,7 +21,7 @@ function SalesChannelCell(_a) {
22
21
  var _a;
23
22
  const sourceTooltip = channel.address;
24
23
  const channelCode = (_a = channel.code) === null || _a === void 0 ? void 0 : _a.replace(/_/g, '');
25
- return (_jsx(Tooltip, Object.assign({ title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: paymentSourceAnimation(index, isTextShown ? 74 : 0), sx: {
24
+ return (_jsx(Tooltip, Object.assign({ title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: salesChannelAnimation(index, isTextShown ? 74 : 0), sx: {
26
25
  width: isTextShown ? '70px' : '36px',
27
26
  } }, { children: isTextShown ? (_jsx(ChannelTextWrapper, { children: _jsx(ChannelTextLabel, { children: channelCode }) })) : (_jsx(StyledSourceImage, { src: channel.logo, alt: channelCode })) })) }), `${channel}-${index}`));
28
27
  });
@@ -267,3 +267,21 @@ export declare const SalesChannelsContainer: import("@emotion/styled").StyledCom
267
267
  }, {}, {}>;
268
268
  export declare const ChannelTextLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
269
269
  export declare const ChannelTextWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
270
+ export declare const salesChannelAnimation: (index: number, xDelta?: number) => {
271
+ start: {
272
+ x: number;
273
+ transition: {
274
+ duration: number;
275
+ type: string;
276
+ ease: string;
277
+ };
278
+ };
279
+ animate: {
280
+ x: number;
281
+ transition: {
282
+ duration: number;
283
+ type: string;
284
+ ease: string;
285
+ };
286
+ };
287
+ };
@@ -17,7 +17,7 @@ export const SalesChannelsContainer = styled(motion.span)(({ theme, sourcesCount
17
17
  position: 'absolute',
18
18
  minWidth: `${sourcesCount * 6 + 36}px `,
19
19
  minHeight: '24px',
20
- cursor: 'pointer',
20
+ cursor: 'default',
21
21
  backgroundColor: theme.palette.background.paper,
22
22
  borderRadius: '16px',
23
23
  }));
@@ -34,3 +34,21 @@ export const ChannelTextWrapper = styled('div')(() => ({
34
34
  justifyContent: 'center',
35
35
  paddingInline: '4px',
36
36
  }));
37
+ export const salesChannelAnimation = (index, xDelta) => ({
38
+ start: {
39
+ x: index * 6,
40
+ transition: {
41
+ duration: 0.3,
42
+ type: 'tween',
43
+ ease: 'easeIn',
44
+ },
45
+ },
46
+ animate: {
47
+ x: xDelta ? index * xDelta : index * 28,
48
+ transition: {
49
+ duration: 0.3,
50
+ type: 'tween',
51
+ ease: 'easeOut',
52
+ },
53
+ },
54
+ });
@@ -17,7 +17,7 @@ export const ReferenceSourcesContainer = styled(motion.span)(({ theme, sourcesCo
17
17
  position: 'absolute',
18
18
  minWidth: `${sourcesCount * 6 + 36}px `,
19
19
  minHeight: '24px',
20
- cursor: 'pointer',
20
+ cursor: 'default',
21
21
  backgroundColor: theme.palette.background.paper,
22
22
  borderRadius: '16px',
23
23
  }));
@@ -44,7 +44,7 @@ export const referenceSourceAnimation = (index, shadow, xDelta) => ({
44
44
  },
45
45
  },
46
46
  animate: {
47
- x: xDelta ? index * xDelta : index * 39,
47
+ x: xDelta ? index * xDelta : index * 28,
48
48
  transition: {
49
49
  duration: 0.3,
50
50
  type: 'tween',
@@ -273,9 +273,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
273
273
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
274
274
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
275
275
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
276
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
277
276
  src?: string | undefined;
278
277
  alt?: string | undefined;
278
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
279
279
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
280
280
  useMap?: string | undefined;
281
281
  loading?: "eager" | "lazy" | undefined;
@@ -262,9 +262,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
262
262
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
263
263
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
264
264
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
265
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
266
265
  src?: string | undefined;
267
266
  alt?: string | undefined;
267
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
268
268
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
269
269
  useMap?: string | undefined;
270
270
  loading?: "eager" | "lazy" | undefined;
@@ -52,9 +52,6 @@ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, sho
52
52
  const [selectedColumn, setSelectedColumn] = useState(null);
53
53
  const handleCellClick = useCallback((rowIndex, columnId, event) => {
54
54
  event.stopPropagation();
55
- if (event.target !== event.currentTarget) {
56
- return;
57
- }
58
55
  const cellKey = `${rowIndex}-${columnId}`;
59
56
  setSelectedCell((prev) => (prev === cellKey ? null : cellKey));
60
57
  setSelectedColumn(null);
@@ -306,9 +306,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
306
306
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
307
307
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
308
308
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
309
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
310
309
  src?: string | undefined;
311
310
  alt?: string | undefined;
311
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
312
312
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
313
313
  useMap?: string | undefined;
314
314
  loading?: "eager" | "lazy" | undefined;
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.0.220",
5
- "testVersion": 7,
4
+ "version": "0.0.222-test.10",
5
+ "testVersion": 10,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -131,4 +131,4 @@
131
131
  "publishConfig": {
132
132
  "registry": "https://registry.npmjs.org/"
133
133
  }
134
- }
134
+ }