@tap-payments/os-micro-frontend-shared 0.0.45 → 0.0.47

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Tap Payments
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tap Payments
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # os-micro-frontend-shared
2
-
3
- ## Publishing Workflow
4
-
5
- 1. Update version in package.json
6
- 2. Commit changes
7
- 3. Create and push a tag:
8
-
9
- ```bash
10
- npm version patch # or minor, major
11
- git push origin main --tags
12
- ```
1
+ # os-micro-frontend-shared
2
+
3
+ ## Publishing Workflow
4
+
5
+ 1. Update version in package.json
6
+ 2. Commit changes
7
+ 3. Create and push a tag:
8
+
9
+ ```bash
10
+ npm version patch # or minor, major
11
+ git push origin main --tags
12
+ ```
@@ -13,7 +13,8 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
13
13
  import { forwardRef } from 'react';
14
14
  import { ChipStyled } from './style';
15
15
  const Chip = forwardRef((_a, ref) => {
16
- var { icon, children } = _a, props = __rest(_a, ["icon", "children"]);
17
- return (_jsxs(ChipStyled, Object.assign({ ref: ref }, props, (icon && { sx: { justifyContent: 'flex-start', gap: 1 } }), { children: [_jsx(_Fragment, { children: icon }), children] })));
16
+ var { children } = _a, props = __rest(_a, ["children"]);
17
+ const { icon } = props;
18
+ return (_jsxs(ChipStyled, Object.assign({ ref: ref }, props, { children: [_jsx(_Fragment, { children: icon }), children] })));
18
19
  });
19
20
  export default Chip;
@@ -1,3 +1,3 @@
1
1
  import { GroupIconChipProps } from './type';
2
- declare const GroupIconChip: ({ order, children }: GroupIconChipProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const GroupIconChip: ({ order, children, getSourceAnimation: customGetSourceAnimation, sourceCount, expandDirection }: GroupIconChipProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default GroupIconChip;
@@ -2,10 +2,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from 'react';
3
3
  import ImageWrapper from '../ImageWrapper';
4
4
  import { useTheme } from '@mui/material';
5
- import { getSourceAnimation } from './style';
6
- const GroupIconChip = ({ order, children }) => {
5
+ import { defaultGetSourceAnimation } from './style';
6
+ const GroupIconChip = ({ order, children, getSourceAnimation: customGetSourceAnimation, sourceCount, expandDirection }) => {
7
+ const getSourceAnimation = customGetSourceAnimation || defaultGetSourceAnimation;
7
8
  const theme = useTheme();
8
- const variants = useMemo(() => getSourceAnimation(order, theme.shadows[4]), [order, theme.shadows]);
9
+ const variants = useMemo(() => getSourceAnimation({
10
+ index: order,
11
+ shadow: theme.shadows[4],
12
+ itemsCount: sourceCount,
13
+ expandDirection,
14
+ }), [order, theme.shadows, getSourceAnimation, sourceCount, expandDirection]);
9
15
  return (_jsx(ImageWrapper, Object.assign({ order: order, variants: variants }, { children: children })));
10
16
  };
11
17
  export default GroupIconChip;
@@ -1,3 +1,3 @@
1
1
  import { GroupIconChipsProps } from './type';
2
- declare const GroupIconChips: ({ children, className }: GroupIconChipsProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const GroupIconChips: ({ children, className, getSourceAnimation, expandDirection }: GroupIconChipsProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default GroupIconChips;
@@ -1,10 +1,31 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import React from 'react';
2
+ import React, { useEffect, useMemo, useRef, useState } from 'react';
3
3
  import { SourcesContainer, StyledSourceCell } from './style';
4
- const GroupIconChips = ({ children, className }) => {
4
+ import GroupIconChip from './GroupIconChip';
5
+ const GroupIconChips = ({ children, className, getSourceAnimation, expandDirection }) => {
5
6
  const sourceCount = React.Children.count(children);
6
- return (_jsx(StyledSourceCell, { children: _jsx(SourcesContainer, Object.assign({ layout: true, className: className, whileHover: "animate", animate: "start", sourcesCount: sourceCount || 0, variants: { animate: { width: (sourceCount || 0) * (6 + 32) } }, style: {
7
+ const [cellDimentions, setCellDimentions] = useState({ width: 0, height: 0 });
8
+ const animationContainerRef = useRef(null);
9
+ useEffect(() => {
10
+ if (!animationContainerRef.current)
11
+ return;
12
+ const animationContainer = animationContainerRef.current;
13
+ setCellDimentions({
14
+ width: animationContainer.clientWidth,
15
+ height: animationContainer.clientHeight,
16
+ });
17
+ }, []);
18
+ const overrideChildren = useMemo(() => React.Children.map(children, (child) => {
19
+ if (!React.isValidElement(child) || child.type !== GroupIconChip) {
20
+ console.error(`⚠️ WARNING: "${GroupIconChips.name}" must contains only children of type "${GroupIconChip.name}"`);
21
+ return child;
22
+ }
23
+ return React.cloneElement(child, Object.assign(Object.assign({}, child.props), { sourceCount,
24
+ getSourceAnimation,
25
+ expandDirection }));
26
+ }), [children, getSourceAnimation, sourceCount, expandDirection]);
27
+ return (_jsx(StyledSourceCell, Object.assign({ "data-testid": "styled-source-cell", sx: Object.assign({}, cellDimentions) }, { children: _jsx(SourcesContainer, Object.assign({ ref: animationContainerRef, id: "test", layout: true, className: className, whileHover: "animate", animate: "start", sourcesCount: sourceCount, variants: { animate: { width: sourceCount * (6 + 32) } }, style: {
7
28
  zIndex: 29,
8
- } }, { children: children })) }));
29
+ } }, { children: overrideChildren })) })));
9
30
  };
10
31
  export default GroupIconChips;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { GetSourceAnimationFunction } from './type';
2
3
  export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
3
4
  variant?: import("./type").ChipVariant | undefined;
4
5
  icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactDOM | null | undefined;
@@ -272,22 +273,4 @@ export declare const SourcesContainer: import("@emotion/styled").StyledComponent
272
273
  } & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLSpanElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
273
274
  sourcesCount: number;
274
275
  }, {}, {}>;
275
- export declare const getSourceAnimation: (index: number, shadow: string, xDelta?: number) => {
276
- start: {
277
- x: number;
278
- transition: {
279
- duration: number;
280
- type: string;
281
- ease: string;
282
- };
283
- };
284
- animate: {
285
- x: number;
286
- transition: {
287
- duration: number;
288
- type: string;
289
- ease: string;
290
- };
291
- boxShadow: string;
292
- };
293
- };
276
+ export declare const defaultGetSourceAnimation: GetSourceAnimationFunction;
@@ -17,34 +17,27 @@ export const ChipStyled = styled(forwardRef((props, ref) => {
17
17
  const _a = props, { className, variant = 'text' } = _a, restProps = __rest(_a, ["className", "variant"]);
18
18
  const calcClassName = `${className || ''} CustomVariant_${variant}`;
19
19
  return _jsx(Box, Object.assign({ ref: ref }, restProps, { className: calcClassName }));
20
- }))(({ theme }) => {
21
- return {
22
- border: `1px solid ${theme.palette.divider}`,
23
- borderRadius: '30px',
24
- backgroundColor: theme.palette.background.paper,
25
- display: 'flex',
26
- alignItems: 'center',
27
- justifyContent: 'center',
28
- '&.CustomVariant_text': {
20
+ }), {
21
+ shouldForwardProp: (prop) => prop !== 'icon',
22
+ })(({ theme, icon }) => {
23
+ return Object.assign(Object.assign({ border: `1px solid ${theme.palette.divider}`, borderRadius: '30px', backgroundColor: theme.palette.background.paper, display: 'flex', alignItems: 'center', justifyContent: 'center' }, (icon && { justifyContent: 'flex-start', gap: theme.spacing(1) })), { '&.CustomVariant_text': {
29
24
  padding: `${theme.spacing(0.75)} ${theme.spacing(1)}`,
30
25
  height: '30px',
31
26
  maxWidth: '150px',
32
- },
33
- '&.CustomVariant_circular': {
27
+ }, '&.CustomVariant_circular': {
34
28
  height: 24,
35
29
  width: 24,
36
- },
37
- '&.CustomVariant_pill-icon': {
30
+ }, '&.CustomVariant_pill-icon': {
38
31
  height: 24,
39
32
  width: 36,
40
- },
41
- };
33
+ } });
42
34
  });
43
35
  export const StyledSourceCell = styled('span')(({ theme }) => ({
44
36
  display: 'flex',
45
37
  alignItems: 'center',
46
38
  justifyContent: 'flex-start',
47
39
  gap: theme.spacing(1),
40
+ position: 'relative',
48
41
  }));
49
42
  export const SourcesContainer = styled(motion.span)(({ theme, sourcesCount }) => ({
50
43
  display: 'flex',
@@ -57,22 +50,27 @@ export const SourcesContainer = styled(motion.span)(({ theme, sourcesCount }) =>
57
50
  backgroundColor: theme.palette.background.paper,
58
51
  borderRadius: '16px',
59
52
  }));
60
- export const getSourceAnimation = (index, shadow, xDelta = 0) => ({
61
- start: {
62
- x: index * 6,
63
- transition: {
64
- duration: 0.3,
65
- type: 'tween',
66
- ease: 'easeIn',
53
+ export const defaultGetSourceAnimation = (params) => {
54
+ const { index, xDelta = 39, shadow, itemsCount = 0, expandDirection = 'RIGHT' } = params;
55
+ const startDisplacement = (itemsCount - 1) * 6;
56
+ const result = {
57
+ start: {
58
+ x: index * 6,
59
+ transition: {
60
+ duration: 0.3,
61
+ type: 'tween',
62
+ ease: 'easeIn',
63
+ },
67
64
  },
68
- },
69
- animate: {
70
- x: xDelta ? index * xDelta : index * 39,
71
- transition: {
72
- duration: 0.3,
73
- type: 'tween',
74
- ease: 'easeOut',
65
+ animate: {
66
+ x: expandDirection === 'RIGHT' ? index * xDelta : startDisplacement + -1 * ((itemsCount - 1 - index) * xDelta),
67
+ transition: {
68
+ duration: 0.3,
69
+ type: 'tween',
70
+ ease: 'easeOut',
71
+ },
72
+ boxShadow: shadow,
75
73
  },
76
- boxShadow: shadow,
77
- },
78
- });
74
+ };
75
+ return result;
76
+ };
@@ -1,4 +1,5 @@
1
1
  import { BoxProps } from '@mui/material';
2
+ import { AnimationProps } from 'framer-motion';
2
3
  import { PropsWithChildren } from 'react';
3
4
  export type ChipVariant = 'text' | 'circular' | 'pill-icon';
4
5
  export type ChipProps = PropsWithChildren<{
@@ -7,7 +8,20 @@ export type ChipProps = PropsWithChildren<{
7
8
  } & BoxProps>;
8
9
  export type GroupIconChipProps = PropsWithChildren<{
9
10
  order: number;
11
+ getSourceAnimation?: GetSourceAnimationFunction;
12
+ sourceCount?: number;
13
+ expandDirection?: GetSourceAnimationParams['expandDirection'];
10
14
  }>;
11
15
  export type GroupIconChipsProps = PropsWithChildren<{
12
16
  className?: string;
17
+ getSourceAnimation?: GetSourceAnimationFunction;
18
+ expandDirection?: GetSourceAnimationParams['expandDirection'];
13
19
  }>;
20
+ export type GetSourceAnimationParams = {
21
+ index: number;
22
+ shadow: string;
23
+ xDelta?: number;
24
+ itemsCount?: number;
25
+ expandDirection?: 'LEFT' | 'RIGHT';
26
+ };
27
+ export type GetSourceAnimationFunction = (param: GetSourceAnimationParams) => AnimationProps['variants'];
@@ -9,24 +9,16 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import TableCell from '../../TableCell';
14
14
  import Icon from '../../../Icon';
15
15
  import { getCountriesIcon } from '../../../../constants/index.js';
16
- import { EntityName, EntityWrapper, VerificationIcon } from './style';
16
+ import { EntityName, EntityWrapper, VerificationIcon, EntityContainer, EntityInfoContainer, VerificationContainer, EmptyCell } from './style';
17
17
  import { verificationIcon } from './constants';
18
- import { Typography } from '@mui/material';
19
18
  import Tooltip from '../../../Tooltip';
20
19
  export default function EntityCell(_a) {
21
20
  var { entity, country, verificationStatus, licenseNumber } = _a, props = __rest(_a, ["entity", "country", "verificationStatus", "licenseNumber"]);
22
21
  const countryIcon = getCountriesIcon(country);
23
22
  const icon = verificationIcon[verificationStatus !== null && verificationStatus !== void 0 ? verificationStatus : 'incomplete'];
24
- const emptyCell = (_jsx(Typography, Object.assign({ sx: {
25
- fontWeight: 400,
26
- fontSize: 14,
27
- lineHeight: '120%',
28
- letterSpacing: 0,
29
- color: '#B1B1B1',
30
- } }, { children: "Not Available" })));
31
- return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(Tooltip, Object.assign({ title: licenseNumber }, { children: _jsx(EntityWrapper, { children: entity ? (_jsxs(_Fragment, { children: [_jsx(Icon, { src: countryIcon, sx: { width: '16px', height: '11.73' } }), _jsx(EntityName, { children: entity }), _jsx(VerificationIcon, { src: icon })] })) : (emptyCell) }) })) })));
23
+ return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(Tooltip, Object.assign({ title: licenseNumber }, { children: _jsx(EntityWrapper, { children: entity ? (_jsxs(EntityContainer, { children: [_jsxs(EntityInfoContainer, { children: [_jsx(Icon, { src: countryIcon, sx: { width: '16px', height: '11.73' } }), _jsx(EntityName, { children: entity })] }), _jsx(VerificationContainer, { children: _jsx(VerificationIcon, { src: icon }) })] })) : (_jsx(EmptyCell, { children: "Not Available" })) }) })) })));
32
24
  }
@@ -3,3 +3,7 @@ export declare const EntityWrapper: import("@emotion/styled").StyledComponent<im
3
3
  export declare const EntityIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
4
  export declare const EntityName: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
5
  export declare const VerificationIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
6
+ export declare const EntityContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const EntityInfoContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const VerificationContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const EmptyCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -25,3 +25,28 @@ export const VerificationIcon = styled('img')(() => ({
25
25
  width: '10.5px',
26
26
  height: '10.5px',
27
27
  }));
28
+ export const EntityContainer = styled('div')({
29
+ display: 'flex',
30
+ alignItems: 'center',
31
+ justifyContent: 'space-between',
32
+ width: '100%',
33
+ });
34
+ export const EntityInfoContainer = styled('div')({
35
+ display: 'flex',
36
+ alignItems: 'center',
37
+ minWidth: '110px',
38
+ gap: '8px',
39
+ });
40
+ export const VerificationContainer = styled('div')({
41
+ marginLeft: 'auto',
42
+ width: 'auto',
43
+ });
44
+ export const EmptyCell = styled('div')({
45
+ fontWeight: 400,
46
+ fontSize: 14,
47
+ lineHeight: '120%',
48
+ letterSpacing: 0,
49
+ color: '#B1B1B1',
50
+ textAlign: 'center',
51
+ width: '100%',
52
+ });
@@ -9,21 +9,13 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import TableCell from '../../TableCell';
14
- import { Count, IndividualName, IndividualsWrapper, VerificationIcon } from './style';
15
14
  import { verificationIcons } from './constants';
16
- import { Typography } from '@mui/material';
15
+ import { IndividualsWrapper, IndividualName, VerificationIcon, Count, IndividualContainer, VerificationContainer, EmptyCell } from './style';
17
16
  import Tooltip from '../../../Tooltip';
18
17
  export default function IndividualsCell(_a) {
19
18
  var { id, status, count } = _a, props = __rest(_a, ["id", "status", "count"]);
20
19
  const icon = verificationIcons[status !== null && status !== void 0 ? status : 'incomplete'];
21
- const emptyCell = (_jsx(Typography, Object.assign({ sx: {
22
- fontWeight: 400,
23
- fontSize: 14,
24
- lineHeight: '120%',
25
- letterSpacing: 0,
26
- color: '#B1B1B1',
27
- } }, { children: "Not Available" })));
28
- return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(IndividualsWrapper, { children: id ? (_jsxs(_Fragment, { children: [_jsx(Tooltip, Object.assign({ title: id }, { children: _jsx(IndividualName, { children: id }) })), _jsx(VerificationIcon, { src: icon }), count > 1 && (_jsx("div", { children: _jsxs(Count, { children: ["+", count] }) }))] })) : (emptyCell) }) })));
20
+ return (_jsx(TableCell, Object.assign({}, props, { sx: { cursor: 'pointer' } }, { children: _jsx(IndividualsWrapper, { children: id ? (_jsxs(IndividualContainer, { children: [_jsx(Tooltip, Object.assign({ title: id }, { children: _jsx(IndividualName, { children: id }) })), _jsxs(VerificationContainer, { children: [_jsx(VerificationIcon, { src: icon }), count > 1 && (_jsx("div", { children: _jsxs(Count, { children: ["+", count] }) }))] })] })) : (_jsx(EmptyCell, { children: "Not Available" })) }) })));
29
21
  }
@@ -3,3 +3,6 @@ export declare const IndividualsWrapper: import("@emotion/styled").StyledCompone
3
3
  export declare const IndividualName: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
4
  export declare const VerificationIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
5
  export declare const Count: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
6
+ export declare const IndividualContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const VerificationContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const EmptyCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -15,7 +15,7 @@ export const IndividualName = styled('div')(({ theme }) => ({
15
15
  overflow: 'hidden',
16
16
  textOverflow: 'ellipsis',
17
17
  whiteSpace: 'nowrap',
18
- maxWidth: '100%',
18
+ minWidth: '80px',
19
19
  }));
20
20
  export const VerificationIcon = styled('img')(() => ({
21
21
  width: '10.5px',
@@ -29,3 +29,23 @@ export const Count = styled('span')(({ theme }) => ({
29
29
  borderRadius: '4px',
30
30
  padding: '1px 2px',
31
31
  }));
32
+ export const IndividualContainer = styled('div')({
33
+ width: '100%',
34
+ display: 'flex',
35
+ alignItems: 'center',
36
+ justifyContent: 'space-between',
37
+ });
38
+ export const VerificationContainer = styled('div')({
39
+ display: 'flex',
40
+ alignItems: 'center',
41
+ gap: '8px',
42
+ });
43
+ export const EmptyCell = styled('div')({
44
+ fontWeight: 400,
45
+ fontSize: 14,
46
+ lineHeight: '120%',
47
+ letterSpacing: 0,
48
+ color: '#B1B1B1',
49
+ textAlign: 'center',
50
+ width: '100%',
51
+ });
@@ -469,3 +469,7 @@ export declare const terminalTypeIcon: string;
469
469
  export declare const terminalBrushIcon: string;
470
470
  export declare const terminalBrushMuted: string;
471
471
  export declare const navigationIcon: string;
472
+ export declare const babyBlueCheckIcon: string;
473
+ export declare const digitalReceiptIcon: string;
474
+ export declare const bankNoteIcon: string;
475
+ export declare const terminalDeviceFrame: string;
@@ -473,3 +473,7 @@ export const terminalTypeIcon = `${lightUrl}/terminalTypeIcon.svg`;
473
473
  export const terminalBrushIcon = `${lightUrl}/terminalBrush.svg`;
474
474
  export const terminalBrushMuted = `${lightUrl}/terminalBrushMuted.svg`;
475
475
  export const navigationIcon = `${lightUrl}/navigationIcon.svg`;
476
+ export const babyBlueCheckIcon = `${lightUrl}/babyBlueCheckIcon.svg`;
477
+ export const digitalReceiptIcon = `${lightUrl}/digitalReceiptIcon.svg`;
478
+ export const bankNoteIcon = `${lightUrl}/bankNoteIcon.svg`;
479
+ export const terminalDeviceFrame = `${lightUrl}/terminalDeviceFrame.svg`;
package/package.json CHANGED
@@ -1,130 +1,130 @@
1
- {
2
- "name": "@tap-payments/os-micro-frontend-shared",
3
- "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.0.45",
5
- "type": "module",
6
- "main": "build/index.js",
7
- "module": "build/index.js",
8
- "types": "build/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": "./build/index.js",
12
- "require": "./build/index.js",
13
- "types": "./build/index.d.ts"
14
- },
15
- "./constants": {
16
- "import": "./build/constants/index.js",
17
- "require": "./build/constants/index.js",
18
- "types": "./build/constants/index.d.ts"
19
- },
20
- "./components": {
21
- "import": "./build/components/index.js",
22
- "require": "./build/components/index.js",
23
- "types": "./build/components/index.d.ts"
24
- },
25
- "./components/*": {
26
- "import": "./build/components/*/index.js",
27
- "require": "./build/components/*/index.js",
28
- "types": "./build/components/*/index.d.ts"
29
- },
30
- "./hooks": {
31
- "import": "./build/hooks/index.js",
32
- "require": "./build/hooks/index.js",
33
- "types": "./build/hooks/index.d.ts"
34
- },
35
- "./utils": {
36
- "import": "./build/utils/index.js",
37
- "require": "./build/utils/index.js",
38
- "types": "./build/utils/index.d.ts"
39
- },
40
- "./theme": {
41
- "import": "./build/theme/index.js",
42
- "require": "./build/theme/index.js",
43
- "types": "./build/theme/index.d.ts"
44
- },
45
- "./types": {
46
- "import": "./build/types/index.js",
47
- "require": "./build/types/index.js",
48
- "types": "./build/types/index.d.ts"
49
- }
50
- },
51
- "license": "MIT",
52
- "author": {
53
- "name": "Ahmed Sharkawy",
54
- "email": "a.elsharkawy@tap.company"
55
- },
56
- "files": [
57
- "build",
58
- "readme.md"
59
- ],
60
- "scripts": {
61
- "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
62
- "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
63
- "dev": "vite",
64
- "build": "tsc -b && vite build ",
65
- "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
66
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
67
- "lint": "eslint . --color",
68
- "lint:fix": "eslint src --fix --color",
69
- "preview": "vite preview",
70
- "prepare": "husky"
71
- },
72
- "dependencies": {
73
- "@emotion/react": "^11.11.0",
74
- "@emotion/styled": "^11.11.0",
75
- "@hookform/resolvers": "^3.3.1",
76
- "@mui/material": "^5.12.3",
77
- "@uiw/react-json-view": "^2.0.0-alpha.16",
78
- "axios": "^1.4.0",
79
- "dayjs": "^1.11.8",
80
- "framer-motion": "10.11.0",
81
- "i18next": "^22.4.15",
82
- "memoize-one": "^6.0.0",
83
- "re-resizable": "^6.9.9",
84
- "react": "^18.2.0",
85
- "react-currency-input-field": "^3.6.11",
86
- "react-dom": "^18.2.0",
87
- "react-draggable": "^4.4.6",
88
- "react-dropzone": "^14.2.3",
89
- "react-hook-form": "^7.45.4",
90
- "react-hot-toast": "^2.4.1",
91
- "react-i18next": "^12.2.2",
92
- "react-multi-date-picker": "^4.1.2",
93
- "react-router-dom": "^6.14.2",
94
- "react-virtualized-auto-sizer": "^1.0.20",
95
- "react-window": "^1.8.9",
96
- "react-window-infinite-loader": "^1.0.9",
97
- "react18-input-otp": "^1.1.4",
98
- "recharts": "^2.15.1"
99
- },
100
- "devDependencies": {
101
- "@eslint/js": "^9.17.0",
102
- "@testing-library/jest-dom": "^5.16.5",
103
- "@types/lodash": "^4.17.15",
104
- "@types/react": "^18.2.6",
105
- "@types/react-dom": "^18.3.5",
106
- "@types/react-virtualized-auto-sizer": "^1.0.8",
107
- "@types/react-window": "^1.8.5",
108
- "@types/react-window-infinite-loader": "^1.0.6",
109
- "@vitejs/plugin-react": "^4.3.4",
110
- "eslint": "^9.17.0",
111
- "eslint-plugin-react-hooks": "^5.0.0",
112
- "eslint-plugin-react-refresh": "^0.4.16",
113
- "globals": "^15.14.0",
114
- "husky": "^8.0.3",
115
- "lint-staged": "^13.2.2",
116
- "prettier": "^2.8.8",
117
- "tsc-alias": "^1.8.16",
118
- "typescript": "5.0.2",
119
- "typescript-eslint": "^8.18.2",
120
- "vite": "6.0.5",
121
- "vite-plugin-svgr": "^4.3.0",
122
- "vite-tsconfig-paths": "^4.2.0"
123
- },
124
- "lint-staged": {
125
- "src/**/*.{ts,tsx,json,js,jsx}": [
126
- "yarn run prettier:fix",
127
- "yarn run lint"
128
- ]
129
- }
130
- }
1
+ {
2
+ "name": "@tap-payments/os-micro-frontend-shared",
3
+ "description": "Shared components and utilities for Tap Payments micro frontends",
4
+ "version": "0.0.47",
5
+ "type": "module",
6
+ "main": "build/index.js",
7
+ "module": "build/index.js",
8
+ "types": "build/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./build/index.js",
12
+ "require": "./build/index.js",
13
+ "types": "./build/index.d.ts"
14
+ },
15
+ "./constants": {
16
+ "import": "./build/constants/index.js",
17
+ "require": "./build/constants/index.js",
18
+ "types": "./build/constants/index.d.ts"
19
+ },
20
+ "./components": {
21
+ "import": "./build/components/index.js",
22
+ "require": "./build/components/index.js",
23
+ "types": "./build/components/index.d.ts"
24
+ },
25
+ "./components/*": {
26
+ "import": "./build/components/*/index.js",
27
+ "require": "./build/components/*/index.js",
28
+ "types": "./build/components/*/index.d.ts"
29
+ },
30
+ "./hooks": {
31
+ "import": "./build/hooks/index.js",
32
+ "require": "./build/hooks/index.js",
33
+ "types": "./build/hooks/index.d.ts"
34
+ },
35
+ "./utils": {
36
+ "import": "./build/utils/index.js",
37
+ "require": "./build/utils/index.js",
38
+ "types": "./build/utils/index.d.ts"
39
+ },
40
+ "./theme": {
41
+ "import": "./build/theme/index.js",
42
+ "require": "./build/theme/index.js",
43
+ "types": "./build/theme/index.d.ts"
44
+ },
45
+ "./types": {
46
+ "import": "./build/types/index.js",
47
+ "require": "./build/types/index.js",
48
+ "types": "./build/types/index.d.ts"
49
+ }
50
+ },
51
+ "license": "MIT",
52
+ "author": {
53
+ "name": "Ahmed Sharkawy",
54
+ "email": "a.elsharkawy@tap.company"
55
+ },
56
+ "files": [
57
+ "build",
58
+ "readme.md"
59
+ ],
60
+ "scripts": {
61
+ "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
62
+ "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
63
+ "dev": "vite",
64
+ "build": "tsc -b && vite build ",
65
+ "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
66
+ "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
67
+ "lint": "eslint . --color",
68
+ "lint:fix": "eslint src --fix --color",
69
+ "preview": "vite preview",
70
+ "prepare": "husky"
71
+ },
72
+ "dependencies": {
73
+ "@emotion/react": "^11.11.0",
74
+ "@emotion/styled": "^11.11.0",
75
+ "@hookform/resolvers": "^3.3.1",
76
+ "@mui/material": "^5.12.3",
77
+ "@uiw/react-json-view": "^2.0.0-alpha.16",
78
+ "axios": "^1.4.0",
79
+ "dayjs": "^1.11.8",
80
+ "framer-motion": "10.11.0",
81
+ "i18next": "^22.4.15",
82
+ "memoize-one": "^6.0.0",
83
+ "re-resizable": "^6.9.9",
84
+ "react": "^18.2.0",
85
+ "react-currency-input-field": "^3.6.11",
86
+ "react-dom": "^18.2.0",
87
+ "react-draggable": "^4.4.6",
88
+ "react-dropzone": "^14.2.3",
89
+ "react-hook-form": "^7.45.4",
90
+ "react-hot-toast": "^2.4.1",
91
+ "react-i18next": "^12.2.2",
92
+ "react-multi-date-picker": "^4.1.2",
93
+ "react-router-dom": "^6.14.2",
94
+ "react-virtualized-auto-sizer": "^1.0.20",
95
+ "react-window": "^1.8.9",
96
+ "react-window-infinite-loader": "^1.0.9",
97
+ "react18-input-otp": "^1.1.4",
98
+ "recharts": "^2.15.1"
99
+ },
100
+ "devDependencies": {
101
+ "@eslint/js": "^9.17.0",
102
+ "@testing-library/jest-dom": "^5.16.5",
103
+ "@types/lodash": "^4.17.15",
104
+ "@types/react": "^18.2.6",
105
+ "@types/react-dom": "^18.3.5",
106
+ "@types/react-virtualized-auto-sizer": "^1.0.8",
107
+ "@types/react-window": "^1.8.5",
108
+ "@types/react-window-infinite-loader": "^1.0.6",
109
+ "@vitejs/plugin-react": "^4.3.4",
110
+ "eslint": "^9.17.0",
111
+ "eslint-plugin-react-hooks": "^5.0.0",
112
+ "eslint-plugin-react-refresh": "^0.4.16",
113
+ "globals": "^15.14.0",
114
+ "husky": "^8.0.3",
115
+ "lint-staged": "^13.2.2",
116
+ "prettier": "^2.8.8",
117
+ "tsc-alias": "^1.8.16",
118
+ "typescript": "5.0.2",
119
+ "typescript-eslint": "^8.18.2",
120
+ "vite": "6.0.5",
121
+ "vite-plugin-svgr": "^4.3.0",
122
+ "vite-tsconfig-paths": "^4.2.0"
123
+ },
124
+ "lint-staged": {
125
+ "src/**/*.{ts,tsx,json,js,jsx}": [
126
+ "yarn run prettier:fix",
127
+ "yarn run lint"
128
+ ]
129
+ }
130
+ }