@tap-payments/os-micro-frontend-shared 0.0.108 → 0.0.109-status-chip-v2

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.
Files changed (38) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/MaskedText/MaskedText.d.ts +3 -0
  4. package/build/components/MaskedText/MaskedText.js +11 -0
  5. package/build/components/MaskedText/index.d.ts +3 -0
  6. package/build/components/MaskedText/index.js +2 -0
  7. package/build/components/MaskedText/type.d.ts +7 -0
  8. package/build/components/MaskedText/type.js +1 -0
  9. package/build/components/Menu/Menu.js +1 -2
  10. package/build/components/SearchButton/styles.d.ts +1 -1
  11. package/build/components/StatusChip/StatusChip.d.ts +4 -0
  12. package/build/components/StatusChip/StatusChip.js +19 -0
  13. package/build/components/StatusChip/index.d.ts +3 -0
  14. package/build/components/StatusChip/index.js +2 -0
  15. package/build/components/StatusChip/style.d.ts +13 -0
  16. package/build/components/StatusChip/style.js +32 -0
  17. package/build/components/StatusChip/type.d.ts +8 -0
  18. package/build/components/StatusChip/type.js +1 -0
  19. package/build/components/StatusChipRowExample/StatusChipRowExample.d.ts +12 -0
  20. package/build/components/StatusChipRowExample/StatusChipRowExample.js +15 -0
  21. package/build/components/StatusChipRowExample/index.d.ts +3 -0
  22. package/build/components/StatusChipRowExample/index.js +2 -0
  23. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
  24. package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.d.ts +2 -1
  25. package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.js +4 -1
  26. package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +1 -1
  27. package/build/components/TableCells/CustomCells/StatusCell/StatusCell.d.ts +1 -1
  28. package/build/components/TableCells/CustomCells/StatusCell/StatusCell.js +6 -2
  29. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -1
  30. package/build/components/TableCells/CustomCells/StatusCell/type.d.ts +1 -0
  31. package/build/components/VirtualTable/style.d.ts +1 -1
  32. package/build/components/index.d.ts +2 -0
  33. package/build/components/index.js +2 -0
  34. package/build/constants/assets.d.ts +1 -0
  35. package/build/constants/assets.js +1 -0
  36. package/build/constants/table/cell/chargeTableCellWidth.d.ts +8 -8
  37. package/build/constants/table/cell/chargeTableCellWidth.js +8 -8
  38. package/package.json +132 -132
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
+ ```
@@ -0,0 +1,3 @@
1
+ import { MaskedTextProps } from './type';
2
+ declare const MaskedText: ({ text, startLength, endLength }: MaskedTextProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default MaskedText;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import StatusChip from '../StatusChip';
3
+ import { Box, useTheme } from '@mui/material';
4
+ import { passwordDotsIcon } from '../../constants/index.js';
5
+ const MaskedText = ({ text, startLength = 8, endLength = 4 }) => {
6
+ const theme = useTheme();
7
+ const startText = text.slice(0, startLength);
8
+ const endText = text.slice(text.length - endLength);
9
+ return (_jsxs(Box, Object.assign({ sx: { display: 'flex', alignItems: 'center', gap: theme.spacing(0.5) } }, { children: [_jsx(StatusChip, Object.assign({ bgColor: "#EFF1F2", borderColor: "transparent", textColor: theme.palette.text.primary }, { children: startText })), _jsx("img", { src: passwordDotsIcon, alt: "passwordDots" }), _jsx(StatusChip, Object.assign({ bgColor: "#EFF1F2", borderColor: "transparent", textColor: theme.palette.text.primary }, { children: endText }))] })));
10
+ };
11
+ export default MaskedText;
@@ -0,0 +1,3 @@
1
+ import MaskedText from './MaskedText';
2
+ export type { MaskedTextProps } from './type';
3
+ export default MaskedText;
@@ -0,0 +1,2 @@
1
+ import MaskedText from './MaskedText';
2
+ export default MaskedText;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export interface MaskedTextProps {
3
+ text: string;
4
+ startLength?: number;
5
+ endLength?: number;
6
+ separator?: ReactNode;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -3,7 +3,6 @@ import { memo } from 'react';
3
3
  import Popper from '@mui/material/Popper';
4
4
  import { Dropdown } from './style';
5
5
  function Menu({ open, anchorEl, children, sx, placement, popperSx }) {
6
- console.log('sx', sx, popperSx);
7
- return (_jsx(Popper, Object.assign({ open: open, anchorEl: anchorEl, placement: placement || 'bottom-start', sx: Object.assign({}, sx) }, { children: _jsx(Dropdown, Object.assign({ sx: sx }, { children: children })) }), "menu"));
6
+ return (_jsx(Popper, Object.assign({ open: open, anchorEl: anchorEl, placement: placement || 'bottom-start', sx: popperSx }, { children: _jsx(Dropdown, Object.assign({ sx: sx }, { children: children })) }), "menu"));
8
7
  }
9
8
  export default memo(Menu);
@@ -554,9 +554,9 @@ export declare const Icon: import("@emotion/styled").StyledComponent<{
554
554
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
555
555
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
556
556
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
557
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
557
558
  src?: string | undefined;
558
559
  alt?: string | undefined;
559
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
560
560
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
561
561
  useMap?: string | undefined;
562
562
  loading?: "eager" | "lazy" | undefined;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ChipProps } from './type';
3
+ declare const StatusChip: import("react").ForwardRefExoticComponent<Omit<ChipProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export default StatusChip;
@@ -0,0 +1,19 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from 'react';
14
+ import { ChipStyled } from './style';
15
+ const StatusChip = forwardRef((_a, ref) => {
16
+ var { children } = _a, props = __rest(_a, ["children"]);
17
+ return (_jsx(ChipStyled, Object.assign({ ref: ref }, props, { children: children })));
18
+ });
19
+ export default StatusChip;
@@ -0,0 +1,3 @@
1
+ import StatusChip from './StatusChip';
2
+ export type { ChipProps as StatusChipProps } from './type';
3
+ export default StatusChip;
@@ -0,0 +1,2 @@
1
+ import StatusChip from './StatusChip';
2
+ export default StatusChip;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
5
+ textColor?: string | undefined;
6
+ bgColor?: string | undefined;
7
+ borderColor?: string | undefined;
8
+ disabled?: boolean | undefined;
9
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
11
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
12
+ children?: import("react").ReactNode;
13
+ }, {}, {}>;
@@ -0,0 +1,32 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { Box, styled } from '@mui/material';
13
+ export const ChipStyled = styled(Box)((_a) => {
14
+ var { theme } = _a, props = __rest(_a, ["theme"]);
15
+ const { textColor = theme.palette.text.primary, bgColor = theme.palette.background.paper, borderColor = theme.palette.divider, disabled = false, } = props;
16
+ return {
17
+ display: 'inline-flex',
18
+ alignItems: 'center',
19
+ justifyContent: 'center',
20
+ height: '18px',
21
+ padding: `${theme.spacing(0.25)} ${theme.spacing(1.5)}`,
22
+ borderRadius: '30px',
23
+ border: `1px solid ${borderColor}`,
24
+ backgroundColor: bgColor,
25
+ color: textColor,
26
+ cursor: disabled ? 'not-allowed' : 'pointer',
27
+ opacity: disabled ? 0.5 : 1,
28
+ whiteSpace: 'nowrap',
29
+ fontSize: '11px',
30
+ minWidth: '67px',
31
+ };
32
+ });
@@ -0,0 +1,8 @@
1
+ import { BoxProps } from '@mui/material';
2
+ import { PropsWithChildren } from 'react';
3
+ export type ChipProps = PropsWithChildren<{
4
+ textColor?: string;
5
+ bgColor?: string;
6
+ borderColor?: string;
7
+ disabled?: boolean;
8
+ } & BoxProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export interface ChipInfo {
2
+ label: string;
3
+ textColor: string;
4
+ bgColor: string;
5
+ borderColor: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface StatusChipRowExampleProps {
9
+ chips: ChipInfo[];
10
+ }
11
+ declare const StatusChipRowExample: ({ chips }: StatusChipRowExampleProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default StatusChipRowExample;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import StatusChip from '../StatusChip';
3
+ import { Box, useTheme } from '@mui/material';
4
+ const StatusChipRowExample = ({ chips }) => {
5
+ const theme = useTheme();
6
+ return (_jsx(Box, Object.assign({ sx: {
7
+ display: 'flex',
8
+ gap: theme.spacing(1),
9
+ padding: theme.spacing(1),
10
+ borderBottom: `1px solid ${theme.palette.divider}`,
11
+ alignItems: 'center',
12
+ flexWrap: 'wrap',
13
+ } }, { children: chips.map((chip, index) => (_jsx(StatusChip, Object.assign({ textColor: chip.textColor, bgColor: chip.bgColor, borderColor: chip.borderColor, disabled: chip.disabled }, { children: chip.label }), index))) })));
14
+ };
15
+ export default StatusChipRowExample;
@@ -0,0 +1,3 @@
1
+ import StatusChipRowExample from './StatusChipRowExample';
2
+ export type { StatusChipRowExampleProps, ChipInfo } from './StatusChipRowExample';
3
+ export default StatusChipRowExample;
@@ -0,0 +1,2 @@
1
+ import StatusChipRowExample from './StatusChipRowExample';
2
+ export default StatusChipRowExample;
@@ -269,9 +269,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
269
269
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
270
270
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
271
271
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
272
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
272
273
  src?: string | undefined;
273
274
  alt?: string | undefined;
274
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
275
275
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
276
276
  useMap?: string | undefined;
277
277
  loading?: "eager" | "lazy" | undefined;
@@ -1,4 +1,5 @@
1
- export declare const ReceiptCell: ({ receiptId, isTextShown }: {
1
+ export declare const ReceiptCell: ({ receiptId, isTextShown, tableMode, }: {
2
2
  receiptId: string;
3
3
  isTextShown?: boolean | undefined;
4
+ tableMode?: "text" | "default" | "sheet" | undefined;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,10 @@ import { TextTableCell } from '..';
4
4
  import { TextLabel } from '../style';
5
5
  import Tooltip from '../../../Tooltip';
6
6
  import { receiptBillIcon } from '../../../../constants/index.js';
7
- export const ReceiptCell = ({ receiptId, isTextShown }) => {
7
+ export const ReceiptCell = ({ receiptId, isTextShown, tableMode, }) => {
8
+ if (tableMode === 'sheet') {
9
+ return (_jsx(TextTableCell, { children: _jsx("span", { children: receiptId }) }));
10
+ }
8
11
  return isTextShown ? (_jsx(TextTableCell, { children: _jsx("span", { children: receiptId }) })) : (_jsx(TableCell, Object.assign({ component: "div" }, { children: _jsx(Tooltip, Object.assign({ title: `Receipt - ${receiptId}` }, { children: _jsx(TextLabel, Object.assign({ sx: {
9
12
  padding: '3px 8px',
10
13
  maxWidth: '50px',
@@ -273,9 +273,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
273
273
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
274
274
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
275
275
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
276
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
276
277
  src?: string | undefined;
277
278
  alt?: string | undefined;
278
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
279
279
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
280
280
  useMap?: string | undefined;
281
281
  loading?: "eager" | "lazy" | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { StatusCellProps } from './type';
2
- declare function StatusCell({ statuses, isTextShown, centerIconKey, xGap, ...props }: Readonly<StatusCellProps & {
2
+ declare function StatusCell({ statuses, isTextShown, centerIconKey, xGap, tableMode, ...props }: Readonly<StatusCellProps & {
3
3
  isChargesService?: boolean;
4
4
  isAuthorizationsService?: boolean;
5
5
  }>): import("react/jsx-runtime").JSX.Element;
@@ -11,12 +11,16 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { TableCell } from '../../../TableCells';
14
+ import StatusChip from '../../../StatusChip';
14
15
  import { StatusIcon, StatusContainer, StatusWrapper } from './style';
15
16
  import { getStatusesFilteredObject } from './utils';
16
17
  function StatusCell(_a) {
17
- var { statuses, isTextShown, centerIconKey, xGap } = _a, props = __rest(_a, ["statuses", "isTextShown", "centerIconKey", "xGap"]);
18
- const statusesFilteredObject = getStatusesFilteredObject(statuses);
18
+ var { statuses, isTextShown, centerIconKey, xGap, tableMode } = _a, props = __rest(_a, ["statuses", "isTextShown", "centerIconKey", "xGap", "tableMode"]);
19
+ const statusesFilteredObject = statuses ? getStatusesFilteredObject(statuses) : {};
19
20
  const statusesList = Object.values(statusesFilteredObject).filter(Boolean);
21
+ if (tableMode === 'sheet') {
22
+ return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StatusContainer, { children: statusesList.map((status, index) => (_jsx(StatusChip, { children: status }, index))) }) })));
23
+ }
20
24
  const xGapValue = isTextShown ? xGap || 120 : 40;
21
25
  const centerIconIndex = centerIconKey ? Object.entries(statusesFilteredObject).findIndex(([key]) => key === centerIconKey) : 0;
22
26
  return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "StatusCell", sx: {
@@ -262,9 +262,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
262
262
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
263
263
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
264
264
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
265
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
265
266
  src?: string | undefined;
266
267
  alt?: string | undefined;
267
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
268
268
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
269
269
  useMap?: string | undefined;
270
270
  loading?: "eager" | "lazy" | undefined;
@@ -9,4 +9,5 @@ export interface StatusCellProps extends TableCellProps {
9
9
  isTextShown?: boolean;
10
10
  centerIconKey?: string;
11
11
  xGap?: number;
12
+ tableMode?: 'default' | 'text' | 'sheet';
12
13
  }
@@ -306,9 +306,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
306
306
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
307
307
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
308
308
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
309
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
309
310
  src?: string | undefined;
310
311
  alt?: string | undefined;
311
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
312
312
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
313
313
  useMap?: string | undefined;
314
314
  loading?: "eager" | "lazy" | undefined;
@@ -16,6 +16,7 @@ export { default as SheetViewVirtualTable } from './VirtualTable/SheetView/Sheet
16
16
  export { default as Widget, ListItem, WidgetHeader, WidgetList } from './Widget';
17
17
  export { default as TapLogo } from './TapLogo';
18
18
  export { default as StatusButton, ChevronIcon, type ChevronIconProps, type StatusButtonIcon, type StatusButtonProps } from './StatusButton';
19
+ export { default as StatusChip } from './StatusChip';
19
20
  export { default as SimpleDialog, type SimpleDialogProps } from './SimpleDialog';
20
21
  export { default as SearchButton } from './SearchButton';
21
22
  export { default as Loaders } from './Loaders';
@@ -43,6 +44,7 @@ export { default as ResizableHeightInput } from './ResizableHeightInput';
43
44
  export { default as MainContainer } from './MainContainer';
44
45
  export { default as Menu } from './Menu';
45
46
  export { default as MenuItem } from './MenuItem';
47
+ export { default as MaskedText } from './MaskedText';
46
48
  export { default as MultiSelectDropdownButton, type ButtonWithDropdownProps } from './MultiSelectDropdownButton';
47
49
  export { default as MultiSelectWithSearch, type MultiSelectWithSearchProps, ChildMenuItem, ParentMenuItem } from './MultiSelectWithSearch';
48
50
  export { default as NestedDropdown, type DropdownProps, type Selected, type Placement, Dropdown, NestedMenuItem } from './NestedDropdown';
@@ -16,6 +16,7 @@ export { default as SheetViewVirtualTable } from './VirtualTable/SheetView/Sheet
16
16
  export { default as Widget, ListItem, WidgetHeader, WidgetList } from './Widget';
17
17
  export { default as TapLogo } from './TapLogo';
18
18
  export { default as StatusButton, ChevronIcon } from './StatusButton';
19
+ export { default as StatusChip } from './StatusChip';
19
20
  export { default as SimpleDialog } from './SimpleDialog';
20
21
  export { default as SearchButton } from './SearchButton';
21
22
  export { default as Loaders } from './Loaders';
@@ -43,6 +44,7 @@ export { default as ResizableHeightInput } from './ResizableHeightInput';
43
44
  export { default as MainContainer } from './MainContainer';
44
45
  export { default as Menu } from './Menu';
45
46
  export { default as MenuItem } from './MenuItem';
47
+ export { default as MaskedText } from './MaskedText';
46
48
  export { default as MultiSelectDropdownButton } from './MultiSelectDropdownButton';
47
49
  export { default as MultiSelectWithSearch, ChildMenuItem, ParentMenuItem } from './MultiSelectWithSearch';
48
50
  export { default as NestedDropdown, Dropdown, NestedMenuItem } from './NestedDropdown';
@@ -232,6 +232,7 @@ export declare const leadTitleIcon: string;
232
232
  export declare const orderAppIcon: string;
233
233
  export declare const orderWindowIcon: string;
234
234
  export declare const dottedLine: string;
235
+ export declare const passwordDotsIcon: string;
235
236
  export declare const dollarSignIcon: string;
236
237
  export declare const reloadIcon: string;
237
238
  export declare const deletedStatusIcon: string;
@@ -233,6 +233,7 @@ export const leadTitleIcon = `${lightUrl}/window/leadTitleIcon.svg`;
233
233
  export const orderAppIcon = `${appBaseUrl}/OrderApp.svg`;
234
234
  export const orderWindowIcon = `${appBaseUrl}/OrderTitleIcon.svg`;
235
235
  export const dottedLine = `${lightUrl}/dottedLine.svg`;
236
+ export const passwordDotsIcon = `${lightUrl}/passwordDots.svg`;
236
237
  export const dollarSignIcon = `${lightUrl}/dollarSign.svg`;
237
238
  export const reloadIcon = `${lightUrl}/reload.svg`;
238
239
  export const deletedStatusIcon = `${appBaseUrl}/deletedStatus1.svg`;
@@ -12,7 +12,7 @@ export declare const chargeTableCellWidth: {
12
12
  readonly id: {
13
13
  readonly default: "225px";
14
14
  readonly text: "225px";
15
- readonly sheet: "225px";
15
+ readonly sheet: "205px";
16
16
  };
17
17
  readonly product: {
18
18
  readonly default: "85px";
@@ -37,7 +37,7 @@ export declare const chargeTableCellWidth: {
37
37
  readonly customer: {
38
38
  readonly default: "180px";
39
39
  readonly text: "180px";
40
- readonly sheet: "180px";
40
+ readonly sheet: "115px";
41
41
  };
42
42
  readonly source: {
43
43
  readonly default: "114px";
@@ -57,7 +57,7 @@ export declare const chargeTableCellWidth: {
57
57
  readonly amount: {
58
58
  readonly default: "170px";
59
59
  readonly text: "195px";
60
- readonly sheet: "195px";
60
+ readonly sheet: "93px";
61
61
  };
62
62
  readonly destinations: {
63
63
  readonly default: "70px";
@@ -72,12 +72,12 @@ export declare const chargeTableCellWidth: {
72
72
  readonly status: {
73
73
  readonly default: "70px";
74
74
  readonly text: "300px";
75
- readonly sheet: "300px";
75
+ readonly sheet: "163px";
76
76
  };
77
77
  readonly merchant: {
78
78
  readonly default: "100px";
79
79
  readonly text: "150px";
80
- readonly sheet: "150px";
80
+ readonly sheet: "115px";
81
81
  };
82
82
  readonly charge: {
83
83
  readonly default: "150px";
@@ -97,7 +97,7 @@ export declare const chargeTableCellWidth: {
97
97
  readonly receipt: {
98
98
  readonly default: "85px";
99
99
  readonly text: "150px";
100
- readonly sheet: "150px";
100
+ readonly sheet: "124px";
101
101
  };
102
102
  readonly fees: {
103
103
  readonly default: "150px";
@@ -107,7 +107,7 @@ export declare const chargeTableCellWidth: {
107
107
  readonly metadata: {
108
108
  readonly default: "180px";
109
109
  readonly text: "180px";
110
- readonly sheet: "180px";
110
+ readonly sheet: "215px";
111
111
  };
112
112
  readonly settlement: {
113
113
  readonly default: "200px";
@@ -142,7 +142,7 @@ export declare const chargeTableCellWidth: {
142
142
  readonly rrn: {
143
143
  readonly default: "100px";
144
144
  readonly text: "100px";
145
- readonly sheet: "100px";
145
+ readonly sheet: "83px";
146
146
  };
147
147
  readonly device: {
148
148
  readonly default: "70px";
@@ -12,7 +12,7 @@ export const chargeTableCellWidth = {
12
12
  id: {
13
13
  default: '225px',
14
14
  text: '225px',
15
- sheet: '225px',
15
+ sheet: '205px',
16
16
  },
17
17
  product: {
18
18
  default: '85px',
@@ -37,7 +37,7 @@ export const chargeTableCellWidth = {
37
37
  customer: {
38
38
  default: '180px',
39
39
  text: '180px',
40
- sheet: '180px',
40
+ sheet: '115px',
41
41
  },
42
42
  source: {
43
43
  default: '114px',
@@ -57,7 +57,7 @@ export const chargeTableCellWidth = {
57
57
  amount: {
58
58
  default: '170px',
59
59
  text: '195px',
60
- sheet: '195px',
60
+ sheet: '93px',
61
61
  },
62
62
  destinations: {
63
63
  default: '70px',
@@ -72,12 +72,12 @@ export const chargeTableCellWidth = {
72
72
  status: {
73
73
  default: '70px',
74
74
  text: '300px',
75
- sheet: '300px',
75
+ sheet: '163px',
76
76
  },
77
77
  merchant: {
78
78
  default: '100px',
79
79
  text: '150px',
80
- sheet: '150px',
80
+ sheet: '115px',
81
81
  },
82
82
  charge: {
83
83
  default: '150px',
@@ -97,7 +97,7 @@ export const chargeTableCellWidth = {
97
97
  receipt: {
98
98
  default: '85px',
99
99
  text: '150px',
100
- sheet: '150px',
100
+ sheet: '124px',
101
101
  },
102
102
  fees: {
103
103
  default: '150px',
@@ -107,7 +107,7 @@ export const chargeTableCellWidth = {
107
107
  metadata: {
108
108
  default: '180px',
109
109
  text: '180px',
110
- sheet: '180px',
110
+ sheet: '215px',
111
111
  },
112
112
  settlement: {
113
113
  default: '200px',
@@ -142,7 +142,7 @@ export const chargeTableCellWidth = {
142
142
  rrn: {
143
143
  default: '100px',
144
144
  text: '100px',
145
- sheet: '100px',
145
+ sheet: '83px',
146
146
  },
147
147
  device: {
148
148
  default: '70px',
package/package.json CHANGED
@@ -1,132 +1,132 @@
1
- {
2
- "name": "@tap-payments/os-micro-frontend-shared",
3
- "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.0.108",
5
- "type": "module",
6
- "main": "build/index.js",
7
- "module": "build/index.js",
8
- "types": "build/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./build/index.d.ts",
12
- "import": "./build/index.js",
13
- "require": "./build/index.js"
14
- },
15
- "./constants": {
16
- "types": "./build/constants/index.d.ts",
17
- "import": "./build/constants/index.js",
18
- "require": "./build/constants/index.js"
19
- },
20
- "./components": {
21
- "types": "./build/components/index.d.ts",
22
- "import": "./build/components/index.js",
23
- "require": "./build/components/index.js"
24
- },
25
- "./components/*": {
26
- "types": "./build/components/*/index.d.ts",
27
- "import": "./build/components/*/index.js",
28
- "require": "./build/components/*/index.js"
29
- },
30
- "./hooks": {
31
- "types": "./build/hooks/index.d.ts",
32
- "import": "./build/hooks/index.js",
33
- "require": "./build/hooks/index.js"
34
- },
35
- "./utils": {
36
- "types": "./build/utils/index.d.ts",
37
- "import": "./build/utils/index.js",
38
- "require": "./build/utils/index.js"
39
- },
40
- "./theme": {
41
- "types": "./build/theme/index.d.ts",
42
- "import": "./build/theme/index.js",
43
- "require": "./build/theme/index.js"
44
- },
45
- "./types": {
46
- "types": "./build/types/index.d.ts",
47
- "import": "./build/types/index.js",
48
- "require": "./build/types/index.js"
49
- }
50
- },
51
- "license": "MIT",
52
- "author": {
53
- "name": "Ahmed Sharkawy",
54
- "email": "a.elsharkawy@tap.company"
55
- },
56
- "files": [
57
- "build",
58
- "readme.md"
59
- ],
60
- "scripts": {
61
- "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
62
- "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
63
- "dev": "vite",
64
- "build": "tsc -b && vite build ",
65
- "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
66
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
67
- "lint": "eslint . --color",
68
- "lint:fix": "eslint src --fix --color",
69
- "preview": "vite preview",
70
- "prepare": "husky"
71
- },
72
- "dependencies": {
73
- "@emotion/react": "^11.11.0",
74
- "@emotion/styled": "^11.11.0",
75
- "@hookform/resolvers": "^3.3.1",
76
- "@mui/material": "^5.12.3",
77
- "@uiw/react-json-view": "^2.0.0-alpha.16",
78
- "axios": "^1.4.0",
79
- "dayjs": "^1.11.8",
80
- "framer-motion": "10.11.0",
81
- "i18next": "^22.4.15",
82
- "memoize-one": "^6.0.0",
83
- "re-resizable": "^6.9.9",
84
- "react": "^18.2.0",
85
- "react-currency-input-field": "^3.6.11",
86
- "react-dom": "^18.2.0",
87
- "react-draggable": "^4.4.6",
88
- "react-dropzone": "^14.2.3",
89
- "react-hook-form": "^7.45.4",
90
- "react-hot-toast": "^2.4.1",
91
- "react-i18next": "^12.2.2",
92
- "react-multi-date-picker": "^4.1.2",
93
- "react-router-dom": "^6.14.2",
94
- "react-virtualized-auto-sizer": "^1.0.20",
95
- "react-window": "^1.8.9",
96
- "react-window-infinite-loader": "^1.0.9",
97
- "react18-input-otp": "^1.1.4",
98
- "recharts": "^2.15.1"
99
- },
100
- "devDependencies": {
101
- "@eslint/js": "^9.17.0",
102
- "@testing-library/jest-dom": "^5.16.5",
103
- "@types/lodash": "^4.17.15",
104
- "@types/react": "^18.2.6",
105
- "@types/react-dom": "^18.3.5",
106
- "@types/react-virtualized-auto-sizer": "^1.0.8",
107
- "@types/react-window": "^1.8.5",
108
- "@types/react-window-infinite-loader": "^1.0.6",
109
- "@vitejs/plugin-react": "^4.3.4",
110
- "eslint": "^9.17.0",
111
- "eslint-plugin-react-hooks": "^5.0.0",
112
- "eslint-plugin-react-refresh": "^0.4.16",
113
- "globals": "^15.14.0",
114
- "husky": "^8.0.3",
115
- "lint-staged": "^13.2.2",
116
- "prettier": "^2.8.8",
117
- "tsc-alias": "^1.8.16",
118
- "typescript": "5.0.2",
119
- "typescript-eslint": "^8.18.2",
120
- "vite": "6.0.5",
121
- "vite-tsconfig-paths": "^4.2.0"
122
- },
123
- "lint-staged": {
124
- "src/**/*.{ts,tsx,json,js,jsx}": [
125
- "yarn run prettier:fix",
126
- "yarn run lint"
127
- ]
128
- },
129
- "publishConfig": {
130
- "registry": "https://registry.npmjs.org/"
131
- }
132
- }
1
+ {
2
+ "name": "@tap-payments/os-micro-frontend-shared",
3
+ "description": "Shared components and utilities for Tap Payments micro frontends",
4
+ "version": "0.0.109-status-chip-v2",
5
+ "type": "module",
6
+ "main": "build/index.js",
7
+ "module": "build/index.js",
8
+ "types": "build/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./build/index.d.ts",
12
+ "import": "./build/index.js",
13
+ "require": "./build/index.js"
14
+ },
15
+ "./constants": {
16
+ "types": "./build/constants/index.d.ts",
17
+ "import": "./build/constants/index.js",
18
+ "require": "./build/constants/index.js"
19
+ },
20
+ "./components": {
21
+ "types": "./build/components/index.d.ts",
22
+ "import": "./build/components/index.js",
23
+ "require": "./build/components/index.js"
24
+ },
25
+ "./components/*": {
26
+ "types": "./build/components/*/index.d.ts",
27
+ "import": "./build/components/*/index.js",
28
+ "require": "./build/components/*/index.js"
29
+ },
30
+ "./hooks": {
31
+ "types": "./build/hooks/index.d.ts",
32
+ "import": "./build/hooks/index.js",
33
+ "require": "./build/hooks/index.js"
34
+ },
35
+ "./utils": {
36
+ "types": "./build/utils/index.d.ts",
37
+ "import": "./build/utils/index.js",
38
+ "require": "./build/utils/index.js"
39
+ },
40
+ "./theme": {
41
+ "types": "./build/theme/index.d.ts",
42
+ "import": "./build/theme/index.js",
43
+ "require": "./build/theme/index.js"
44
+ },
45
+ "./types": {
46
+ "types": "./build/types/index.d.ts",
47
+ "import": "./build/types/index.js",
48
+ "require": "./build/types/index.js"
49
+ }
50
+ },
51
+ "license": "MIT",
52
+ "author": {
53
+ "name": "Ahmed Sharkawy",
54
+ "email": "a.elsharkawy@tap.company"
55
+ },
56
+ "files": [
57
+ "build",
58
+ "readme.md"
59
+ ],
60
+ "scripts": {
61
+ "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
62
+ "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
63
+ "dev": "vite",
64
+ "build": "tsc -b && vite build ",
65
+ "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
66
+ "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
67
+ "lint": "eslint . --color",
68
+ "lint:fix": "eslint src --fix --color",
69
+ "preview": "vite preview",
70
+ "prepare": "husky"
71
+ },
72
+ "dependencies": {
73
+ "@emotion/react": "^11.11.0",
74
+ "@emotion/styled": "^11.11.0",
75
+ "@hookform/resolvers": "^3.3.1",
76
+ "@mui/material": "^5.12.3",
77
+ "@uiw/react-json-view": "^2.0.0-alpha.16",
78
+ "axios": "^1.4.0",
79
+ "dayjs": "^1.11.8",
80
+ "framer-motion": "10.11.0",
81
+ "i18next": "^22.4.15",
82
+ "memoize-one": "^6.0.0",
83
+ "re-resizable": "^6.9.9",
84
+ "react": "^18.2.0",
85
+ "react-currency-input-field": "^3.6.11",
86
+ "react-dom": "^18.2.0",
87
+ "react-draggable": "^4.4.6",
88
+ "react-dropzone": "^14.2.3",
89
+ "react-hook-form": "^7.45.4",
90
+ "react-hot-toast": "^2.4.1",
91
+ "react-i18next": "^12.2.2",
92
+ "react-multi-date-picker": "^4.1.2",
93
+ "react-router-dom": "^6.14.2",
94
+ "react-virtualized-auto-sizer": "^1.0.20",
95
+ "react-window": "^1.8.9",
96
+ "react-window-infinite-loader": "^1.0.9",
97
+ "react18-input-otp": "^1.1.4",
98
+ "recharts": "^2.15.1"
99
+ },
100
+ "devDependencies": {
101
+ "@eslint/js": "^9.17.0",
102
+ "@testing-library/jest-dom": "^5.16.5",
103
+ "@types/lodash": "^4.17.15",
104
+ "@types/react": "^18.2.6",
105
+ "@types/react-dom": "^18.3.5",
106
+ "@types/react-virtualized-auto-sizer": "^1.0.8",
107
+ "@types/react-window": "^1.8.5",
108
+ "@types/react-window-infinite-loader": "^1.0.6",
109
+ "@vitejs/plugin-react": "^4.3.4",
110
+ "eslint": "^9.17.0",
111
+ "eslint-plugin-react-hooks": "^5.0.0",
112
+ "eslint-plugin-react-refresh": "^0.4.16",
113
+ "globals": "^15.14.0",
114
+ "husky": "^8.0.3",
115
+ "lint-staged": "^13.2.2",
116
+ "prettier": "^2.8.8",
117
+ "tsc-alias": "^1.8.16",
118
+ "typescript": "5.0.2",
119
+ "typescript-eslint": "^8.18.2",
120
+ "vite": "6.0.5",
121
+ "vite-tsconfig-paths": "^4.2.0"
122
+ },
123
+ "lint-staged": {
124
+ "src/**/*.{ts,tsx,json,js,jsx}": [
125
+ "yarn run prettier:fix",
126
+ "yarn run lint"
127
+ ]
128
+ },
129
+ "publishConfig": {
130
+ "registry": "https://registry.npmjs.org/"
131
+ }
132
+ }