@tap-payments/os-micro-frontend-shared 0.0.296 → 0.0.297-test.9
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 +21 -21
- package/README.md +12 -12
- package/build/components/IconWithBadge/IconWithBadge.d.ts +1 -1
- package/build/components/IconWithBadge/IconWithBadge.js +12 -8
- package/build/components/IconWithBadge/type.d.ts +3 -0
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js +31 -5
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +286 -4
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.js +43 -14
- package/build/components/TableCells/CustomCells/BrandsCell/BrandsCell.js +1 -1
- package/build/components/TableCells/CustomCells/BrandsCell/style.js +2 -1
- package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.js +13 -6
- package/build/components/TableCells/CustomCells/SegmentsCell/SegmentsCell.js +5 -4
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.js +1 -5
- package/package.json +134 -134
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
|
+
```
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IconWithBadgeProps } from './type';
|
|
2
|
-
export default function IconWithBadge({ mainIcon, overlayIcon, mainIconAlt, mainIconSize, containerSize, overlayPosition, borderColor, label, }: IconWithBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function IconWithBadge({ mainIcon, overlayIcon, mainIconAlt, mainIconSize, containerSize, overlayPosition, borderColor, label, sx, onError, }: IconWithBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Box from '@mui/material/Box';
|
|
3
3
|
import { Container, BadgeBox } from './style';
|
|
4
4
|
import { brandPlaceholderIcon } from '../../constants/index.js';
|
|
5
5
|
import Tooltip from '../Tooltip';
|
|
6
|
-
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import Skeleton from '@mui/material/Skeleton';
|
|
8
|
+
export default function IconWithBadge({ mainIcon, overlayIcon, mainIconAlt = 'main icon', mainIconSize = 20, containerSize = 24, overlayPosition = { top: 10, left: 17 }, borderColor = '#F2F2F2', label = '', sx, onError, }) {
|
|
9
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
7
10
|
return (_jsx(Tooltip, Object.assign({ title: label }, { children: _jsx(Box, Object.assign({ display: "flex", alignItems: "center", gap: 1, sx: { position: 'relative' } }, { children: _jsxs(Container, Object.assign({ style: {
|
|
8
11
|
borderColor,
|
|
9
12
|
width: containerSize,
|
|
10
13
|
height: containerSize,
|
|
11
|
-
} }, { children: [overlayIcon && _jsx(BadgeBox, Object.assign({ sx: overlayPosition }, { children: overlayIcon })), _jsx(Box, { width: mainIconSize, height: mainIconSize, component: "img", src: mainIcon || brandPlaceholderIcon, alt: mainIconAlt, sx: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
} }, { children: [_jsx(Box, Object.assign({ width: mainIconSize, height: mainIconSize }, { children: isLoading && _jsx(Skeleton, { variant: "circular", width: `${mainIconSize}px`, height: `${mainIconSize}px` }) })), _jsxs(_Fragment, { children: [overlayIcon && _jsx(BadgeBox, Object.assign({ sx: overlayPosition }, { children: overlayIcon })), _jsx(Box, { width: mainIconSize, height: mainIconSize, component: "img", src: mainIcon || brandPlaceholderIcon, alt: mainIconAlt, sx: Object.assign({ borderRadius: '50%', objectFit: 'scale-down', opacity: isLoading ? 0 : 1 }, sx), onError: (e) => {
|
|
15
|
+
setIsLoading(false);
|
|
16
|
+
e.currentTarget.src = brandPlaceholderIcon;
|
|
17
|
+
onError === null || onError === void 0 ? void 0 : onError(e);
|
|
18
|
+
}, onLoad: () => {
|
|
19
|
+
setIsLoading(false);
|
|
20
|
+
} })] })] })) })) })));
|
|
17
21
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
2
3
|
export interface IconWithBadgeProps {
|
|
3
4
|
mainIcon: string;
|
|
4
5
|
overlayIcon?: React.ReactNode;
|
|
@@ -13,4 +14,6 @@ export interface IconWithBadgeProps {
|
|
|
13
14
|
};
|
|
14
15
|
borderColor?: string;
|
|
15
16
|
label?: string;
|
|
17
|
+
sx?: SxProps;
|
|
18
|
+
onError?: (e: React.SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
16
19
|
}
|
package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ApplicationStatusCellProps } from './type';
|
|
1
|
+
import type { ApplicationStatusCellProps } from './type';
|
|
2
2
|
export default function ApplicationStatusCell({ acceptance, payout, hideAcceptance, hidePayout, ...props }: ApplicationStatusCellProps): import("react/jsx-runtime").JSX.Element;
|
package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js
CHANGED
|
@@ -9,14 +9,40 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx
|
|
13
|
-
import {
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useMemo, useState } from 'react';
|
|
14
|
+
import { useTheme } from '@mui/material/styles';
|
|
14
15
|
import Tooltip from '../../../Tooltip';
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
16
|
+
import { ImageWrapper } from '../../../index.js';
|
|
17
|
+
import { TableCell } from '../../../TableCells';
|
|
18
|
+
import { AppsStatusContainer, StyledAppsCell, appStatusAnimation } from './style';
|
|
19
|
+
import IconWithBadge from '../../../IconWithBadge';
|
|
20
|
+
import { acceptanceEnabledIcon, acceptanceWindowIcon, payoutEnabledIcon, payoutWindowIcon, } from '../../../../constants/index.js';
|
|
17
21
|
export default function ApplicationStatusCell(_a) {
|
|
18
22
|
var { acceptance, payout, hideAcceptance, hidePayout } = _a, props = __rest(_a, ["acceptance", "payout", "hideAcceptance", "hidePayout"]);
|
|
19
23
|
const isAcceptanceEnabled = (acceptance === null || acceptance === void 0 ? void 0 : acceptance.toLowerCase()) === 'enabled';
|
|
20
24
|
const isPayoutEnabled = (payout === null || payout === void 0 ? void 0 : payout.toLowerCase()) === 'enabled';
|
|
21
|
-
|
|
25
|
+
const [isTooltipOpen, setIsTooltipOpen] = useState(false);
|
|
26
|
+
const theme = useTheme();
|
|
27
|
+
const apps = useMemo(() => [
|
|
28
|
+
{ icon: isAcceptanceEnabled && !hideAcceptance ? acceptanceEnabledIcon : acceptanceWindowIcon, tooltip: 'Acceptance' },
|
|
29
|
+
{ icon: isPayoutEnabled && !hidePayout ? payoutEnabledIcon : payoutWindowIcon, tooltip: 'Payout' },
|
|
30
|
+
], [isAcceptanceEnabled, isPayoutEnabled, hideAcceptance, hidePayout]);
|
|
31
|
+
const appsStatus = useMemo(() => apps.map((app, index) => {
|
|
32
|
+
const sourceTooltip = app.tooltip;
|
|
33
|
+
return (_jsx(Tooltip, Object.assign({ onOpen: () => {
|
|
34
|
+
setIsTooltipOpen(true);
|
|
35
|
+
}, onClose: () => {
|
|
36
|
+
setIsTooltipOpen(false);
|
|
37
|
+
}, title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: appStatusAnimation(index, theme.shadows[4], 40), sx: {
|
|
38
|
+
width: '36px',
|
|
39
|
+
} }, { children: _jsx(IconWithBadge, { mainIcon: app.icon, mainIconSize: 16, containerSize: 16, sx: { borderRadius: '40px' }, onError: (e) => {
|
|
40
|
+
e.currentTarget.src = app.icon;
|
|
41
|
+
e.currentTarget.style.borderRadius = '0px';
|
|
42
|
+
}, borderColor: "transparent" }) })) }), `${app}-${index}`));
|
|
43
|
+
}), [apps, theme]);
|
|
44
|
+
const appsCount = (apps === null || apps === void 0 ? void 0 : apps.length) || 0;
|
|
45
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StyledAppsCell, { children: appsCount > 0 ? (_jsx(AppsStatusContainer, Object.assign({ layout: true, className: "reference-sources-container", whileHover: "animate", animate: isTooltipOpen ? 'animate' : 'start', sourcesCount: appsCount, variants: { animate: { width: appsCount * (6 + 32) } }, style: {
|
|
46
|
+
zIndex: 29,
|
|
47
|
+
} }, { children: appsStatus }))) : null }) })));
|
|
22
48
|
}
|
|
@@ -1,5 +1,287 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
|
+
export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
hidden?: boolean | undefined;
|
|
5
|
+
id?: string | undefined;
|
|
6
|
+
slot?: string | undefined;
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
color?: string | undefined;
|
|
9
|
+
className?: string | undefined;
|
|
10
|
+
defaultChecked?: boolean | undefined;
|
|
11
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
12
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
13
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
14
|
+
accessKey?: string | undefined;
|
|
15
|
+
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
16
|
+
autoFocus?: boolean | undefined;
|
|
17
|
+
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
|
|
18
|
+
contextMenu?: string | undefined;
|
|
19
|
+
dir?: string | undefined;
|
|
20
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
21
|
+
enterKeyHint?: "search" | "done" | "next" | "enter" | "go" | "previous" | "send" | undefined;
|
|
22
|
+
lang?: string | undefined;
|
|
23
|
+
nonce?: string | undefined;
|
|
24
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
25
|
+
tabIndex?: number | undefined;
|
|
26
|
+
translate?: "yes" | "no" | undefined;
|
|
27
|
+
radioGroup?: string | undefined;
|
|
28
|
+
role?: import("react").AriaRole | undefined;
|
|
29
|
+
about?: string | undefined;
|
|
30
|
+
content?: string | undefined;
|
|
31
|
+
datatype?: string | undefined;
|
|
32
|
+
inlist?: any;
|
|
33
|
+
prefix?: string | undefined;
|
|
34
|
+
property?: string | undefined;
|
|
35
|
+
rel?: string | undefined;
|
|
36
|
+
resource?: string | undefined;
|
|
37
|
+
rev?: string | undefined;
|
|
38
|
+
typeof?: string | undefined;
|
|
39
|
+
vocab?: string | undefined;
|
|
40
|
+
autoCorrect?: string | undefined;
|
|
41
|
+
autoSave?: string | undefined;
|
|
42
|
+
itemProp?: string | undefined;
|
|
43
|
+
itemScope?: boolean | undefined;
|
|
44
|
+
itemType?: string | undefined;
|
|
45
|
+
itemID?: string | undefined;
|
|
46
|
+
itemRef?: string | undefined;
|
|
47
|
+
results?: number | undefined;
|
|
48
|
+
security?: string | undefined;
|
|
49
|
+
unselectable?: "off" | "on" | undefined;
|
|
50
|
+
inputMode?: "none" | "email" | "search" | "numeric" | "url" | "text" | "tel" | "decimal" | undefined;
|
|
51
|
+
is?: string | undefined;
|
|
52
|
+
exportparts?: string | undefined;
|
|
53
|
+
part?: string | undefined;
|
|
54
|
+
"aria-activedescendant"?: string | undefined;
|
|
55
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
56
|
+
"aria-autocomplete"?: "none" | "list" | "both" | "inline" | undefined;
|
|
57
|
+
"aria-braillelabel"?: string | undefined;
|
|
58
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
59
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
60
|
+
"aria-checked"?: boolean | "false" | "true" | "mixed" | undefined;
|
|
61
|
+
"aria-colcount"?: number | undefined;
|
|
62
|
+
"aria-colindex"?: number | undefined;
|
|
63
|
+
"aria-colindextext"?: string | undefined;
|
|
64
|
+
"aria-colspan"?: number | undefined;
|
|
65
|
+
"aria-controls"?: string | undefined;
|
|
66
|
+
"aria-current"?: boolean | "date" | "false" | "true" | "time" | "page" | "step" | "location" | undefined;
|
|
67
|
+
"aria-describedby"?: string | undefined;
|
|
68
|
+
"aria-description"?: string | undefined;
|
|
69
|
+
"aria-details"?: string | undefined;
|
|
70
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
71
|
+
"aria-dropeffect"?: "none" | "copy" | "link" | "move" | "execute" | "popup" | undefined;
|
|
72
|
+
"aria-errormessage"?: string | undefined;
|
|
73
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
74
|
+
"aria-flowto"?: string | undefined;
|
|
75
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
76
|
+
"aria-haspopup"?: boolean | "false" | "true" | "dialog" | "menu" | "grid" | "listbox" | "tree" | undefined;
|
|
77
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
78
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
79
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
80
|
+
"aria-label"?: string | undefined;
|
|
81
|
+
"aria-labelledby"?: string | undefined;
|
|
82
|
+
"aria-level"?: number | undefined;
|
|
83
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
84
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
85
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
86
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
87
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
88
|
+
"aria-owns"?: string | undefined;
|
|
89
|
+
"aria-placeholder"?: string | undefined;
|
|
90
|
+
"aria-posinset"?: number | undefined;
|
|
91
|
+
"aria-pressed"?: boolean | "false" | "true" | "mixed" | undefined;
|
|
92
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
93
|
+
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
94
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
95
|
+
"aria-roledescription"?: string | undefined;
|
|
96
|
+
"aria-rowcount"?: number | undefined;
|
|
97
|
+
"aria-rowindex"?: number | undefined;
|
|
98
|
+
"aria-rowindextext"?: string | undefined;
|
|
99
|
+
"aria-rowspan"?: number | undefined;
|
|
100
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
101
|
+
"aria-setsize"?: number | undefined;
|
|
102
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
103
|
+
"aria-valuemax"?: number | undefined;
|
|
104
|
+
"aria-valuemin"?: number | undefined;
|
|
105
|
+
"aria-valuenow"?: number | undefined;
|
|
106
|
+
"aria-valuetext"?: string | undefined;
|
|
107
|
+
dangerouslySetInnerHTML?: {
|
|
108
|
+
__html: string | TrustedHTML;
|
|
109
|
+
} | undefined;
|
|
110
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
111
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
112
|
+
onCut?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
113
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
114
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
115
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLSpanElement> | undefined;
|
|
116
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
117
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
118
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
119
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
120
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
121
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLSpanElement> | undefined;
|
|
122
|
+
onFocus?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
123
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
124
|
+
onBlur?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
125
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLSpanElement> | undefined;
|
|
126
|
+
onChange?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
127
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
128
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLSpanElement> | undefined;
|
|
129
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
130
|
+
onInput?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
131
|
+
onInputCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
132
|
+
onReset?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
133
|
+
onResetCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
134
|
+
onSubmit?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
135
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
136
|
+
onInvalid?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
137
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLSpanElement> | undefined;
|
|
138
|
+
onLoad?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
139
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
140
|
+
onError?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
141
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
142
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
143
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
144
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
145
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
146
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
147
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLSpanElement> | undefined;
|
|
148
|
+
onAbort?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
149
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
150
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
151
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
152
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
153
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
154
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
155
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
156
|
+
onEmptied?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
157
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
158
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
159
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
160
|
+
onEnded?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
161
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
162
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
163
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
164
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
165
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
166
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
167
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
168
|
+
onPause?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
169
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
170
|
+
onPlay?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
171
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
172
|
+
onPlaying?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
173
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
174
|
+
onProgress?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
175
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
176
|
+
onRateChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
177
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
178
|
+
onSeeked?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
179
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
180
|
+
onSeeking?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
181
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
182
|
+
onStalled?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
183
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
184
|
+
onSuspend?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
185
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
186
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
187
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
188
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
189
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
190
|
+
onWaiting?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
191
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
192
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
193
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
194
|
+
onClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
195
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
196
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
197
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
198
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
199
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
200
|
+
onDragCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
201
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
202
|
+
onDragEnter?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
203
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
204
|
+
onDragExit?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
205
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
206
|
+
onDragLeave?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
207
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
208
|
+
onDragOver?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
209
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
210
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
211
|
+
onDrop?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
212
|
+
onDropCapture?: import("react").DragEventHandler<HTMLSpanElement> | undefined;
|
|
213
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
214
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
215
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
216
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
217
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
218
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
219
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
220
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
221
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
222
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
223
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
224
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLSpanElement> | undefined;
|
|
225
|
+
onSelect?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
226
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLSpanElement> | undefined;
|
|
227
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
228
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
229
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
230
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
231
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
232
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
233
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
234
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLSpanElement> | undefined;
|
|
235
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
236
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
237
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
238
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
239
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
240
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
241
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
242
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
243
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
244
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
245
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
246
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
247
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
248
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
249
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
250
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
251
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
252
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLSpanElement> | undefined;
|
|
253
|
+
onScroll?: import("react").UIEventHandler<HTMLSpanElement> | undefined;
|
|
254
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLSpanElement> | undefined;
|
|
255
|
+
onWheel?: import("react").WheelEventHandler<HTMLSpanElement> | undefined;
|
|
256
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLSpanElement> | undefined;
|
|
257
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
258
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
259
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
260
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
261
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
262
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
263
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
264
|
+
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLSpanElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
265
|
+
sourcesCount: number;
|
|
266
|
+
}, {}, {}>;
|
|
267
|
+
export declare const AppTextLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
268
|
+
export declare const AppTextWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
269
|
+
export declare const appStatusAnimation: (index: number, shadow: string, xDelta?: number) => {
|
|
270
|
+
start: {
|
|
271
|
+
x: number;
|
|
272
|
+
transition: {
|
|
273
|
+
duration: number;
|
|
274
|
+
type: string;
|
|
275
|
+
ease: string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
animate: {
|
|
279
|
+
x: number;
|
|
280
|
+
transition: {
|
|
281
|
+
duration: number;
|
|
282
|
+
type: string;
|
|
283
|
+
ease: string;
|
|
284
|
+
};
|
|
285
|
+
boxShadow: string;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
@@ -1,22 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { styled } from '@mui/material';
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
export const StyledAppsCell = styled('span')(({ theme }) => ({
|
|
3
4
|
display: 'flex',
|
|
4
5
|
alignItems: 'center',
|
|
6
|
+
justifyContent: 'flex-start',
|
|
5
7
|
gap: theme.spacing(1),
|
|
6
|
-
borderRadius: '44px',
|
|
7
|
-
lineHeight: '120%',
|
|
8
8
|
}));
|
|
9
|
-
export const
|
|
9
|
+
export const AppsStatusContainer = styled(motion.span)(({ theme, sourcesCount }) => ({
|
|
10
|
+
display: 'flex',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
justifyContent: 'flex-start',
|
|
13
|
+
position: 'absolute',
|
|
14
|
+
minWidth: `${sourcesCount * 6 + 36}px `,
|
|
15
|
+
minHeight: '24px',
|
|
16
|
+
cursor: 'default',
|
|
17
|
+
backgroundColor: theme.palette.background.paper,
|
|
18
|
+
borderRadius: '16px',
|
|
19
|
+
}));
|
|
20
|
+
export const AppTextLabel = styled('span')(() => ({
|
|
21
|
+
fontSize: '11px',
|
|
22
|
+
overflow: 'hidden',
|
|
23
|
+
textOverflow: 'ellipsis',
|
|
24
|
+
whiteSpace: 'nowrap',
|
|
25
|
+
padding: '2px 0',
|
|
26
|
+
}));
|
|
27
|
+
export const AppTextWrapper = styled('div')(() => ({
|
|
10
28
|
display: 'flex',
|
|
11
29
|
alignItems: 'center',
|
|
12
30
|
justifyContent: 'center',
|
|
13
|
-
|
|
14
|
-
height: '23px',
|
|
15
|
-
borderRadius: '50%',
|
|
16
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
17
|
-
img: {
|
|
18
|
-
width: '18.5px',
|
|
19
|
-
height: '18.5px',
|
|
20
|
-
borderRadius: '50%',
|
|
21
|
-
},
|
|
31
|
+
paddingInline: '4px',
|
|
22
32
|
}));
|
|
33
|
+
export const appStatusAnimation = (index, shadow, xDelta) => ({
|
|
34
|
+
start: {
|
|
35
|
+
x: index * 6,
|
|
36
|
+
transition: {
|
|
37
|
+
duration: 0.3,
|
|
38
|
+
type: 'tween',
|
|
39
|
+
ease: 'easeIn',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
animate: {
|
|
43
|
+
x: xDelta ? index * xDelta : index * 40,
|
|
44
|
+
transition: {
|
|
45
|
+
duration: 0.3,
|
|
46
|
+
type: 'tween',
|
|
47
|
+
ease: 'easeOut',
|
|
48
|
+
},
|
|
49
|
+
boxShadow: shadow,
|
|
50
|
+
},
|
|
51
|
+
});
|
|
@@ -24,5 +24,5 @@ export default function BrandsCell(_a) {
|
|
|
24
24
|
overlayIcon: icon ? _jsx(VerificationIcon, { src: icon }) : null,
|
|
25
25
|
label: brand.name,
|
|
26
26
|
};
|
|
27
|
-
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(BrandsWrapper, { children: _jsx(Tooltip, Object.assign({ title: brand.name }, { children: _jsxs(Box, Object.assign({ display: "flex", alignItems: "center", gap: '5px', sx: { overflow: 'hidden' } }, { children: [_jsx(IconWithBadge, { mainIcon: item.icon, overlayIcon: item.overlayIcon }, item.label), _jsx(Label, { children: brand.name })] })) })) }) })));
|
|
27
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(BrandsWrapper, { children: _jsx(Tooltip, Object.assign({ title: brand.name }, { children: _jsxs(Box, Object.assign({ display: "flex", alignItems: "center", gap: '5px', sx: { overflow: 'hidden' } }, { children: [_jsx(IconWithBadge, { mainIcon: item.icon, overlayIcon: item.overlayIcon, mainIconSize: 16, containerSize: 16, borderColor: "transparent" }, item.label), _jsx(Label, { children: brand.name })] })) })) }) })));
|
|
28
28
|
}
|
|
@@ -3,9 +3,10 @@ export const BrandsWrapper = styled('div')(({ theme }) => ({
|
|
|
3
3
|
display: 'flex',
|
|
4
4
|
alignItems: 'center',
|
|
5
5
|
gap: theme.spacing(1),
|
|
6
|
+
border: '1px solid #F2F2F2',
|
|
6
7
|
borderRadius: '44px',
|
|
8
|
+
padding: '4px 8px',
|
|
7
9
|
lineHeight: '120%',
|
|
8
|
-
cursor: 'pointer',
|
|
9
10
|
}));
|
|
10
11
|
export const BrandName = styled('div')(({ theme }) => ({
|
|
11
12
|
fontSize: '14px',
|
|
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
13
|
import Tooltip from '../../../Tooltip';
|
|
14
14
|
import { destinationSolidIcon } from '../../../../constants/index.js';
|
|
15
15
|
import { formatAmount } from '../../../../utils/index.js';
|
|
@@ -25,12 +25,19 @@ function DestinationCell(_a) {
|
|
|
25
25
|
const firstDestinationFormattedAmount = formatAmount(((_b = destinations === null || destinations === void 0 ? void 0 : destinations[0]) === null || _b === void 0 ? void 0 : _b.amount) || 0);
|
|
26
26
|
const isSheetView = tableMode === 'sheet';
|
|
27
27
|
if (isSheetView) {
|
|
28
|
-
const sheetViewChips = destinations === null || destinations === void 0 ? void 0 : destinations.
|
|
28
|
+
const sheetViewChips = destinations === null || destinations === void 0 ? void 0 : destinations.reduce((acc, dest) => {
|
|
29
29
|
const formattedDestAmount = formatAmount((dest === null || dest === void 0 ? void 0 : dest.amount) || 0);
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
return [
|
|
31
|
+
...acc,
|
|
32
|
+
{
|
|
33
|
+
key: 'id',
|
|
34
|
+
content: dest === null || dest === void 0 ? void 0 : dest.id,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
key: 'amount',
|
|
38
|
+
content: (_jsxs(_Fragment, { children: [_jsx(CurrencyIcon, { currency: dest === null || dest === void 0 ? void 0 : dest.currency }), _jsxs("span", { children: [formattedDestAmount.integerAmount, ".", formattedDestAmount.decimalAmount] })] })),
|
|
39
|
+
},
|
|
40
|
+
];
|
|
34
41
|
}, []);
|
|
35
42
|
return (_jsx(TableCell, Object.assign({ sx: {
|
|
36
43
|
width: 'fit-content',
|
|
@@ -17,7 +17,8 @@ import Tooltip from '../../../Tooltip';
|
|
|
17
17
|
import { ImageWrapper } from '../../../index.js';
|
|
18
18
|
import { TableCell } from '../../../TableCells';
|
|
19
19
|
import { segmentsIcons } from './constant';
|
|
20
|
-
import { ReferenceTextLabel, ReferenceTextWrapper, ReferenceSourcesContainer, StyledSourceCell,
|
|
20
|
+
import { ReferenceTextLabel, ReferenceTextWrapper, ReferenceSourcesContainer, StyledSourceCell, referenceSourceAnimation } from './style';
|
|
21
|
+
import IconWithBadge from '../../../IconWithBadge';
|
|
21
22
|
function SegmentsCell(_a) {
|
|
22
23
|
var { isTextShown } = _a, props = __rest(_a, ["isTextShown"]);
|
|
23
24
|
const [isTooltipOpen, setIsTooltipOpen] = useState(false);
|
|
@@ -32,11 +33,11 @@ function SegmentsCell(_a) {
|
|
|
32
33
|
}, onClose: () => {
|
|
33
34
|
setIsTooltipOpen(false);
|
|
34
35
|
}, title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: referenceSourceAnimation(index, theme.shadows[4], isTextShown ? 83 : 0), sx: {
|
|
35
|
-
width: isTextShown ? '79px' : '
|
|
36
|
-
} }, { children: isTextShown ? (_jsx(ReferenceTextWrapper, { children: _jsx(ReferenceTextLabel, { children: startCase(segment) }) })) : (_jsx(
|
|
36
|
+
width: isTextShown ? '79px' : '36px',
|
|
37
|
+
} }, { children: isTextShown ? (_jsx(ReferenceTextWrapper, { children: _jsx(ReferenceTextLabel, { children: startCase(segment) }) })) : (_jsx(IconWithBadge, { mainIcon: (segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon) || segmentsIcons[segment], mainIconSize: segment === 'order' ? 11.82 : 16, containerSize: segment === 'order' ? 11.82 : 16, sx: Object.assign({}, ((segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon) && { borderRadius: '40px' })), onError: (e) => {
|
|
37
38
|
e.currentTarget.src = segmentsIcons[segment];
|
|
38
39
|
e.currentTarget.style.borderRadius = '0px';
|
|
39
|
-
} })) })) }), `${segment}-${index}`));
|
|
40
|
+
}, borderColor: "transparent" })) })) }), `${segment}-${index}`));
|
|
40
41
|
}), [props, segments, isTextShown, theme]);
|
|
41
42
|
const referenceSourcesCount = (ReferenceSources === null || ReferenceSources === void 0 ? void 0 : ReferenceSources.length) || 0;
|
|
42
43
|
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StyledSourceCell, { children: referenceSourcesCount > 0 ? (_jsx(ReferenceSourcesContainer, Object.assign({ layout: true, className: "reference-sources-container", whileHover: "animate", animate: isTooltipOpen ? 'animate' : 'start', sourcesCount: referenceSourcesCount, variants: { animate: { width: referenceSourcesCount * (6 + 32) } }, style: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
|
-
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
3
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
5
4
|
hidden?: boolean | undefined;
|
|
6
5
|
id?: string | undefined;
|
|
@@ -6,10 +6,6 @@ export const StyledSourceCell = styled('span')(({ theme }) => ({
|
|
|
6
6
|
justifyContent: 'flex-start',
|
|
7
7
|
gap: theme.spacing(1),
|
|
8
8
|
}));
|
|
9
|
-
export const StyledSourceImage = styled('img')(() => ({
|
|
10
|
-
maxWidth: '12px',
|
|
11
|
-
maxHeight: '12px',
|
|
12
|
-
}));
|
|
13
9
|
export const ReferenceSourcesContainer = styled(motion.span)(({ theme, sourcesCount }) => ({
|
|
14
10
|
display: 'flex',
|
|
15
11
|
alignItems: 'center',
|
|
@@ -44,7 +40,7 @@ export const referenceSourceAnimation = (index, shadow, xDelta) => ({
|
|
|
44
40
|
},
|
|
45
41
|
},
|
|
46
42
|
animate: {
|
|
47
|
-
x: xDelta ? index * xDelta : index *
|
|
43
|
+
x: xDelta ? index * xDelta : index * 40,
|
|
48
44
|
transition: {
|
|
49
45
|
duration: 0.3,
|
|
50
46
|
type: 'tween',
|
package/package.json
CHANGED
|
@@ -1,134 +1,134 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
|
-
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"testVersion":
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "build/index.js",
|
|
8
|
-
"module": "build/index.js",
|
|
9
|
-
"types": "build/index.d.ts",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./build/index.d.ts",
|
|
13
|
-
"import": "./build/index.js",
|
|
14
|
-
"require": "./build/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./constants": {
|
|
17
|
-
"types": "./build/constants/index.d.ts",
|
|
18
|
-
"import": "./build/constants/index.js",
|
|
19
|
-
"require": "./build/constants/index.js"
|
|
20
|
-
},
|
|
21
|
-
"./components": {
|
|
22
|
-
"types": "./build/components/index.d.ts",
|
|
23
|
-
"import": "./build/components/index.js",
|
|
24
|
-
"require": "./build/components/index.js"
|
|
25
|
-
},
|
|
26
|
-
"./components/*": {
|
|
27
|
-
"types": "./build/components/*/index.d.ts",
|
|
28
|
-
"import": "./build/components/*/index.js",
|
|
29
|
-
"require": "./build/components/*/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./hooks": {
|
|
32
|
-
"types": "./build/hooks/index.d.ts",
|
|
33
|
-
"import": "./build/hooks/index.js",
|
|
34
|
-
"require": "./build/hooks/index.js"
|
|
35
|
-
},
|
|
36
|
-
"./utils": {
|
|
37
|
-
"types": "./build/utils/index.d.ts",
|
|
38
|
-
"import": "./build/utils/index.js",
|
|
39
|
-
"require": "./build/utils/index.js"
|
|
40
|
-
},
|
|
41
|
-
"./theme": {
|
|
42
|
-
"types": "./build/theme/index.d.ts",
|
|
43
|
-
"import": "./build/theme/index.js",
|
|
44
|
-
"require": "./build/theme/index.js"
|
|
45
|
-
},
|
|
46
|
-
"./types": {
|
|
47
|
-
"types": "./build/types/index.d.ts",
|
|
48
|
-
"import": "./build/types/index.js",
|
|
49
|
-
"require": "./build/types/index.js"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"license": "MIT",
|
|
53
|
-
"author": {
|
|
54
|
-
"name": "Ahmed Sharkawy",
|
|
55
|
-
"email": "a.elsharkawy@tap.company"
|
|
56
|
-
},
|
|
57
|
-
"files": [
|
|
58
|
-
"build",
|
|
59
|
-
"readme.md"
|
|
60
|
-
],
|
|
61
|
-
"scripts": {
|
|
62
|
-
"ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
|
|
63
|
-
"push": "npm run ts:build && npm publish --access public",
|
|
64
|
-
"push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
|
|
65
|
-
"dev": "vite",
|
|
66
|
-
"build": "tsc -b && vite build ",
|
|
67
|
-
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
|
|
68
|
-
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
|
|
69
|
-
"lint": "eslint . --color",
|
|
70
|
-
"lint:fix": "eslint src --fix --color",
|
|
71
|
-
"preview": "vite preview",
|
|
72
|
-
"prepare": "husky"
|
|
73
|
-
},
|
|
74
|
-
"dependencies": {
|
|
75
|
-
"@emotion/react": "^11.11.0",
|
|
76
|
-
"@emotion/styled": "^11.11.0",
|
|
77
|
-
"@hookform/resolvers": "^3.3.1",
|
|
78
|
-
"@mui/material": "^5.12.3",
|
|
79
|
-
"@uiw/react-json-view": "^2.0.0-alpha.16",
|
|
80
|
-
"axios": "^1.4.0",
|
|
81
|
-
"dayjs": "^1.11.8",
|
|
82
|
-
"framer-motion": "10.11.0",
|
|
83
|
-
"i18next": "^22.4.15",
|
|
84
|
-
"memoize-one": "^6.0.0",
|
|
85
|
-
"re-resizable": "^6.9.9",
|
|
86
|
-
"react": "^18.2.0",
|
|
87
|
-
"react-currency-input-field": "^3.6.11",
|
|
88
|
-
"react-dom": "^18.2.0",
|
|
89
|
-
"react-draggable": "^4.4.6",
|
|
90
|
-
"react-dropzone": "^14.2.3",
|
|
91
|
-
"react-hook-form": "^7.45.4",
|
|
92
|
-
"react-hot-toast": "^2.4.1",
|
|
93
|
-
"react-i18next": "^12.2.2",
|
|
94
|
-
"react-multi-date-picker": "^4.1.2",
|
|
95
|
-
"react-router-dom": "^7.7.0",
|
|
96
|
-
"react-virtualized-auto-sizer": "^1.0.20",
|
|
97
|
-
"react-window": "^1.8.9",
|
|
98
|
-
"react-window-infinite-loader": "^1.0.9",
|
|
99
|
-
"react18-input-otp": "^1.1.4",
|
|
100
|
-
"recharts": "^2.15.1"
|
|
101
|
-
},
|
|
102
|
-
"devDependencies": {
|
|
103
|
-
"@eslint/js": "^9.17.0",
|
|
104
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
105
|
-
"@types/lodash": "^4.17.15",
|
|
106
|
-
"@types/react": "^18.2.6",
|
|
107
|
-
"@types/react-dom": "^18.3.5",
|
|
108
|
-
"@types/react-virtualized-auto-sizer": "^1.0.8",
|
|
109
|
-
"@types/react-window": "^1.8.5",
|
|
110
|
-
"@types/react-window-infinite-loader": "^1.0.6",
|
|
111
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
112
|
-
"eslint": "^9.17.0",
|
|
113
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
|
114
|
-
"eslint-plugin-react-refresh": "^0.4.16",
|
|
115
|
-
"globals": "^15.14.0",
|
|
116
|
-
"husky": "^8.0.3",
|
|
117
|
-
"lint-staged": "^13.2.2",
|
|
118
|
-
"prettier": "^2.8.8",
|
|
119
|
-
"tsc-alias": "^1.8.16",
|
|
120
|
-
"typescript": "5.0.2",
|
|
121
|
-
"typescript-eslint": "^8.18.2",
|
|
122
|
-
"vite": "6.0.5",
|
|
123
|
-
"vite-tsconfig-paths": "^4.2.0"
|
|
124
|
-
},
|
|
125
|
-
"lint-staged": {
|
|
126
|
-
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
127
|
-
"yarn run prettier:fix",
|
|
128
|
-
"yarn run lint"
|
|
129
|
-
]
|
|
130
|
-
},
|
|
131
|
-
"publishConfig": {
|
|
132
|
-
"registry": "https://registry.npmjs.org/"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
|
+
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
+
"version": "0.0.297-test.9",
|
|
5
|
+
"testVersion": 9,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "build/index.js",
|
|
8
|
+
"module": "build/index.js",
|
|
9
|
+
"types": "build/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./build/index.d.ts",
|
|
13
|
+
"import": "./build/index.js",
|
|
14
|
+
"require": "./build/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./constants": {
|
|
17
|
+
"types": "./build/constants/index.d.ts",
|
|
18
|
+
"import": "./build/constants/index.js",
|
|
19
|
+
"require": "./build/constants/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./components": {
|
|
22
|
+
"types": "./build/components/index.d.ts",
|
|
23
|
+
"import": "./build/components/index.js",
|
|
24
|
+
"require": "./build/components/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./components/*": {
|
|
27
|
+
"types": "./build/components/*/index.d.ts",
|
|
28
|
+
"import": "./build/components/*/index.js",
|
|
29
|
+
"require": "./build/components/*/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./hooks": {
|
|
32
|
+
"types": "./build/hooks/index.d.ts",
|
|
33
|
+
"import": "./build/hooks/index.js",
|
|
34
|
+
"require": "./build/hooks/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./utils": {
|
|
37
|
+
"types": "./build/utils/index.d.ts",
|
|
38
|
+
"import": "./build/utils/index.js",
|
|
39
|
+
"require": "./build/utils/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./theme": {
|
|
42
|
+
"types": "./build/theme/index.d.ts",
|
|
43
|
+
"import": "./build/theme/index.js",
|
|
44
|
+
"require": "./build/theme/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./types": {
|
|
47
|
+
"types": "./build/types/index.d.ts",
|
|
48
|
+
"import": "./build/types/index.js",
|
|
49
|
+
"require": "./build/types/index.js"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"author": {
|
|
54
|
+
"name": "Ahmed Sharkawy",
|
|
55
|
+
"email": "a.elsharkawy@tap.company"
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"build",
|
|
59
|
+
"readme.md"
|
|
60
|
+
],
|
|
61
|
+
"scripts": {
|
|
62
|
+
"ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
|
|
63
|
+
"push": "npm run ts:build && npm publish --access public",
|
|
64
|
+
"push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
|
|
65
|
+
"dev": "vite",
|
|
66
|
+
"build": "tsc -b && vite build ",
|
|
67
|
+
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
|
|
68
|
+
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
|
|
69
|
+
"lint": "eslint . --color",
|
|
70
|
+
"lint:fix": "eslint src --fix --color",
|
|
71
|
+
"preview": "vite preview",
|
|
72
|
+
"prepare": "husky"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"@emotion/react": "^11.11.0",
|
|
76
|
+
"@emotion/styled": "^11.11.0",
|
|
77
|
+
"@hookform/resolvers": "^3.3.1",
|
|
78
|
+
"@mui/material": "^5.12.3",
|
|
79
|
+
"@uiw/react-json-view": "^2.0.0-alpha.16",
|
|
80
|
+
"axios": "^1.4.0",
|
|
81
|
+
"dayjs": "^1.11.8",
|
|
82
|
+
"framer-motion": "10.11.0",
|
|
83
|
+
"i18next": "^22.4.15",
|
|
84
|
+
"memoize-one": "^6.0.0",
|
|
85
|
+
"re-resizable": "^6.9.9",
|
|
86
|
+
"react": "^18.2.0",
|
|
87
|
+
"react-currency-input-field": "^3.6.11",
|
|
88
|
+
"react-dom": "^18.2.0",
|
|
89
|
+
"react-draggable": "^4.4.6",
|
|
90
|
+
"react-dropzone": "^14.2.3",
|
|
91
|
+
"react-hook-form": "^7.45.4",
|
|
92
|
+
"react-hot-toast": "^2.4.1",
|
|
93
|
+
"react-i18next": "^12.2.2",
|
|
94
|
+
"react-multi-date-picker": "^4.1.2",
|
|
95
|
+
"react-router-dom": "^7.7.0",
|
|
96
|
+
"react-virtualized-auto-sizer": "^1.0.20",
|
|
97
|
+
"react-window": "^1.8.9",
|
|
98
|
+
"react-window-infinite-loader": "^1.0.9",
|
|
99
|
+
"react18-input-otp": "^1.1.4",
|
|
100
|
+
"recharts": "^2.15.1"
|
|
101
|
+
},
|
|
102
|
+
"devDependencies": {
|
|
103
|
+
"@eslint/js": "^9.17.0",
|
|
104
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
105
|
+
"@types/lodash": "^4.17.15",
|
|
106
|
+
"@types/react": "^18.2.6",
|
|
107
|
+
"@types/react-dom": "^18.3.5",
|
|
108
|
+
"@types/react-virtualized-auto-sizer": "^1.0.8",
|
|
109
|
+
"@types/react-window": "^1.8.5",
|
|
110
|
+
"@types/react-window-infinite-loader": "^1.0.6",
|
|
111
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
112
|
+
"eslint": "^9.17.0",
|
|
113
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
114
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
115
|
+
"globals": "^15.14.0",
|
|
116
|
+
"husky": "^8.0.3",
|
|
117
|
+
"lint-staged": "^13.2.2",
|
|
118
|
+
"prettier": "^2.8.8",
|
|
119
|
+
"tsc-alias": "^1.8.16",
|
|
120
|
+
"typescript": "5.0.2",
|
|
121
|
+
"typescript-eslint": "^8.18.2",
|
|
122
|
+
"vite": "6.0.5",
|
|
123
|
+
"vite-tsconfig-paths": "^4.2.0"
|
|
124
|
+
},
|
|
125
|
+
"lint-staged": {
|
|
126
|
+
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
127
|
+
"yarn run prettier:fix",
|
|
128
|
+
"yarn run lint"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"publishConfig": {
|
|
132
|
+
"registry": "https://registry.npmjs.org/"
|
|
133
|
+
}
|
|
134
|
+
}
|