@tap-payments/os-micro-frontend-shared 0.0.297-test.9 → 0.0.298
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/build/components/IconWithBadge/IconWithBadge.d.ts +1 -1
- package/build/components/IconWithBadge/IconWithBadge.js +8 -12
- package/build/components/IconWithBadge/type.d.ts +0 -3
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js +5 -31
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +4 -286
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.js +14 -43
- package/build/components/TableCells/CustomCells/BrandsCell/BrandsCell.js +1 -1
- package/build/components/TableCells/CustomCells/BrandsCell/style.js +1 -2
- package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.js +6 -13
- package/build/components/TableCells/CustomCells/SegmentsCell/SegmentsCell.js +4 -5
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SegmentsCell/style.js +5 -1
- package/build/constants/table/cell/terminalsTableCellWidth.d.ts +3 -3
- package/build/constants/table/cell/terminalsTableCellWidth.js +3 -3
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IconWithBadgeProps } from './type';
|
|
2
|
-
export default function IconWithBadge({ mainIcon, overlayIcon, mainIconAlt, mainIconSize, containerSize, overlayPosition, borderColor, label,
|
|
2
|
+
export default function IconWithBadge({ mainIcon, overlayIcon, mainIconAlt, mainIconSize, containerSize, overlayPosition, borderColor, label, }: IconWithBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, 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
|
-
|
|
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);
|
|
6
|
+
export default function IconWithBadge({ mainIcon, overlayIcon, mainIconAlt = 'main icon', mainIconSize = 20, containerSize = 24, overlayPosition = { top: 10, left: 17 }, borderColor = '#F2F2F2', label = '', }) {
|
|
10
7
|
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: {
|
|
11
8
|
borderColor,
|
|
12
9
|
width: containerSize,
|
|
13
10
|
height: containerSize,
|
|
14
|
-
} }, { children: [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} })] })] })) })) })));
|
|
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
|
+
borderRadius: '50%',
|
|
13
|
+
objectFit: 'scale-down',
|
|
14
|
+
}, onError: (e) => {
|
|
15
|
+
e.currentTarget.src = brandPlaceholderIcon;
|
|
16
|
+
} })] })) })) })));
|
|
21
17
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SxProps } from '@mui/material';
|
|
3
2
|
export interface IconWithBadgeProps {
|
|
4
3
|
mainIcon: string;
|
|
5
4
|
overlayIcon?: React.ReactNode;
|
|
@@ -14,6 +13,4 @@ export interface IconWithBadgeProps {
|
|
|
14
13
|
};
|
|
15
14
|
borderColor?: string;
|
|
16
15
|
label?: string;
|
|
17
|
-
sx?: SxProps;
|
|
18
|
-
onError?: (e: React.SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
19
16
|
}
|
package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { 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,40 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
14
|
-
import { useTheme } from '@mui/material/styles';
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { acceptanceDisabledRoundedIcon, payoutDisabledRoundedIcon, acceptanceEnabledIcon, payoutGreenIcon } from '../../../../constants/index.js';
|
|
15
14
|
import Tooltip from '../../../Tooltip';
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import { AppsStatusContainer, StyledAppsCell, appStatusAnimation } from './style';
|
|
19
|
-
import IconWithBadge from '../../../IconWithBadge';
|
|
20
|
-
import { acceptanceEnabledIcon, acceptanceWindowIcon, payoutEnabledIcon, payoutWindowIcon, } from '../../../../constants/index.js';
|
|
15
|
+
import TableCell from '../../TableCell';
|
|
16
|
+
import { AppsWrapper, IconWrapper } from './style';
|
|
21
17
|
export default function ApplicationStatusCell(_a) {
|
|
22
18
|
var { acceptance, payout, hideAcceptance, hidePayout } = _a, props = __rest(_a, ["acceptance", "payout", "hideAcceptance", "hidePayout"]);
|
|
23
19
|
const isAcceptanceEnabled = (acceptance === null || acceptance === void 0 ? void 0 : acceptance.toLowerCase()) === 'enabled';
|
|
24
20
|
const isPayoutEnabled = (payout === null || payout === void 0 ? void 0 : payout.toLowerCase()) === 'enabled';
|
|
25
|
-
|
|
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 }) })));
|
|
21
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(AppsWrapper, { children: [!hideAcceptance && (_jsx(Tooltip, Object.assign({ title: 'Acceptance' }, { children: _jsxs(IconWrapper, { children: [_jsx("img", { src: isAcceptanceEnabled ? acceptanceEnabledIcon : acceptanceDisabledRoundedIcon, alt: acceptance }), ' '] }) }), acceptance)), !hidePayout && (_jsx(Tooltip, Object.assign({ title: 'Payouts' }, { children: _jsx(IconWrapper, { children: _jsx("img", { src: isPayoutEnabled ? payoutGreenIcon : payoutDisabledRoundedIcon, alt: payout }) }) }), payout))] }) })));
|
|
48
22
|
}
|
|
@@ -1,287 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
};
|
|
2
|
+
export declare const AppsWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const IconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,51 +1,22 @@
|
|
|
1
|
-
import { styled } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
export const StyledAppsCell = styled('span')(({ theme }) => ({
|
|
1
|
+
import { Box, styled } from '@mui/material';
|
|
2
|
+
export const AppsWrapper = styled('div')(({ theme }) => ({
|
|
4
3
|
display: 'flex',
|
|
5
4
|
alignItems: 'center',
|
|
6
|
-
justifyContent: 'flex-start',
|
|
7
5
|
gap: theme.spacing(1),
|
|
6
|
+
borderRadius: '44px',
|
|
7
|
+
lineHeight: '120%',
|
|
8
8
|
}));
|
|
9
|
-
export const
|
|
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')(() => ({
|
|
9
|
+
export const IconWrapper = styled(Box)(({ theme }) => ({
|
|
28
10
|
display: 'flex',
|
|
29
11
|
alignItems: 'center',
|
|
30
12
|
justifyContent: 'center',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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,
|
|
13
|
+
width: '23px',
|
|
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%',
|
|
50
21
|
},
|
|
51
|
-
});
|
|
22
|
+
}));
|
|
@@ -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
|
|
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 })] })) })) }) })));
|
|
28
28
|
}
|
|
@@ -3,10 +3,9 @@ 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',
|
|
7
6
|
borderRadius: '44px',
|
|
8
|
-
padding: '4px 8px',
|
|
9
7
|
lineHeight: '120%',
|
|
8
|
+
cursor: 'pointer',
|
|
10
9
|
}));
|
|
11
10
|
export const BrandName = styled('div')(({ theme }) => ({
|
|
12
11
|
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 { jsxs as _jsxs, jsx as _jsx, 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,19 +25,12 @@ 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.map((dest) => {
|
|
29
29
|
const formattedDestAmount = formatAmount((dest === null || dest === void 0 ? void 0 : dest.amount) || 0);
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
|
|
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
|
-
];
|
|
30
|
+
return {
|
|
31
|
+
key: 'destination',
|
|
32
|
+
content: (_jsxs(_Fragment, { children: [_jsxs("div", { children: [dest === null || dest === void 0 ? void 0 : dest.id, " |"] }), _jsx(CurrencyIcon, { currency: dest === null || dest === void 0 ? void 0 : dest.currency }), _jsxs("span", { children: [formattedDestAmount.integerAmount, ".", formattedDestAmount.decimalAmount] })] })),
|
|
33
|
+
};
|
|
41
34
|
}, []);
|
|
42
35
|
return (_jsx(TableCell, Object.assign({ sx: {
|
|
43
36
|
width: 'fit-content',
|
|
@@ -17,8 +17,7 @@ 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, referenceSourceAnimation } from './style';
|
|
21
|
-
import IconWithBadge from '../../../IconWithBadge';
|
|
20
|
+
import { ReferenceTextLabel, ReferenceTextWrapper, ReferenceSourcesContainer, StyledSourceCell, StyledSourceImage, referenceSourceAnimation, } from './style';
|
|
22
21
|
function SegmentsCell(_a) {
|
|
23
22
|
var { isTextShown } = _a, props = __rest(_a, ["isTextShown"]);
|
|
24
23
|
const [isTooltipOpen, setIsTooltipOpen] = useState(false);
|
|
@@ -33,11 +32,11 @@ function SegmentsCell(_a) {
|
|
|
33
32
|
}, onClose: () => {
|
|
34
33
|
setIsTooltipOpen(false);
|
|
35
34
|
}, title: sourceTooltip }, { children: _jsx(ImageWrapper, Object.assign({ order: index, variants: referenceSourceAnimation(index, theme.shadows[4], isTextShown ? 83 : 0), sx: {
|
|
36
|
-
width: isTextShown ? '79px' : '
|
|
37
|
-
} }, { children: isTextShown ? (_jsx(ReferenceTextWrapper, { children: _jsx(ReferenceTextLabel, { children: startCase(segment) }) })) : (_jsx(
|
|
35
|
+
width: isTextShown ? '79px' : '24px',
|
|
36
|
+
} }, { children: isTextShown ? (_jsx(ReferenceTextWrapper, { children: _jsx(ReferenceTextLabel, { children: startCase(segment) }) })) : (_jsx(StyledSourceImage, { src: (segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon) || segmentsIcons[segment], alt: segment, sx: Object.assign(Object.assign({}, (segment === 'order' && { width: '11.82px' })), ((segmentData === null || segmentData === void 0 ? void 0 : segmentData.icon) && { borderRadius: '40px' })), onError: (e) => {
|
|
38
37
|
e.currentTarget.src = segmentsIcons[segment];
|
|
39
38
|
e.currentTarget.style.borderRadius = '0px';
|
|
40
|
-
}
|
|
39
|
+
} })) })) }), `${segment}-${index}`));
|
|
41
40
|
}), [props, segments, isTextShown, theme]);
|
|
42
41
|
const referenceSourcesCount = (ReferenceSources === null || ReferenceSources === void 0 ? void 0 : ReferenceSources.length) || 0;
|
|
43
42
|
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,5 +1,6 @@
|
|
|
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>, {}>;
|
|
3
4
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
5
6
|
id?: string | undefined;
|
|
@@ -6,6 +6,10 @@ 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
|
+
}));
|
|
9
13
|
export const ReferenceSourcesContainer = styled(motion.span)(({ theme, sourcesCount }) => ({
|
|
10
14
|
display: 'flex',
|
|
11
15
|
alignItems: 'center',
|
|
@@ -40,7 +44,7 @@ export const referenceSourceAnimation = (index, shadow, xDelta) => ({
|
|
|
40
44
|
},
|
|
41
45
|
},
|
|
42
46
|
animate: {
|
|
43
|
-
x: xDelta ? index * xDelta : index *
|
|
47
|
+
x: xDelta ? index * xDelta : index * 28,
|
|
44
48
|
transition: {
|
|
45
49
|
duration: 0.3,
|
|
46
50
|
type: 'tween',
|
|
@@ -20,9 +20,9 @@ export declare const terminalsTableCellWidth: {
|
|
|
20
20
|
readonly sheet: "80px";
|
|
21
21
|
};
|
|
22
22
|
readonly platform: {
|
|
23
|
-
readonly default: "
|
|
24
|
-
readonly text: "
|
|
25
|
-
readonly sheet: "
|
|
23
|
+
readonly default: "80px";
|
|
24
|
+
readonly text: "80px";
|
|
25
|
+
readonly sheet: "80px";
|
|
26
26
|
};
|
|
27
27
|
readonly branding: {
|
|
28
28
|
readonly default: "80px";
|
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.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.0.298",
|
|
5
|
+
"testVersion": 0,
|
|
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
|
+
}
|