@tap-payments/os-micro-frontend-shared 0.1.338-test.4 → 0.1.339

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 (51) hide show
  1. package/build/components/AnimatedSpinnerIcon/style.d.ts +1 -0
  2. package/build/components/Chip/style.d.ts +1 -0
  3. package/build/components/CountBadge/style.d.ts +1 -0
  4. package/build/components/Dialog/style.d.ts +1 -0
  5. package/build/components/FlippingCard/style.d.ts +1 -0
  6. package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
  7. package/build/components/JSONViewer/style.d.ts +1 -0
  8. package/build/components/LeftPeekRightExpandingChip/style.d.ts +1 -0
  9. package/build/components/RightLeftExpandingCenterChip/style.d.ts +1 -0
  10. package/build/components/SearchButton/styles.d.ts +1 -0
  11. package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
  12. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
  13. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
  14. package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -0
  15. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
  16. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -0
  17. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
  18. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
  19. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
  20. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
  21. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
  22. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
  23. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
  24. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
  25. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
  26. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
  27. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
  28. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -0
  29. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
  30. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
  31. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
  32. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
  33. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
  34. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -0
  35. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
  36. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +1 -0
  37. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
  38. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
  39. package/build/components/TableCells/CustomCells/index.d.ts +0 -1
  40. package/build/components/TableCells/CustomCells/index.js +0 -1
  41. package/build/components/TableCells/CustomCells/style.d.ts +1 -0
  42. package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -0
  43. package/build/components/TableReports/style.d.ts +1 -0
  44. package/build/components/VirtualTables/components/style.d.ts +1 -0
  45. package/build/constants/assets.d.ts +2 -0
  46. package/build/constants/assets.js +2 -0
  47. package/package.json +3 -3
  48. package/build/components/TableCells/CustomCells/OrdersCell/OrdersCellSheet.d.ts +0 -22
  49. package/build/components/TableCells/CustomCells/OrdersCell/OrdersCellSheet.js +0 -32
  50. package/build/components/TableCells/CustomCells/OrdersCell/index.d.ts +0 -1
  51. package/build/components/TableCells/CustomCells/OrdersCell/index.js +0 -1
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  type AnimatedSpinnerIconProps = {
3
4
  width?: string;
4
5
  height?: string;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import { GetSourceAnimationFunction } from './type';
3
4
  export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
5
  variant?: import("./type").ChipVariant | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const AgreementImageWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DialogWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const FOOTER_HEIGHT = 37;
3
4
  export declare const TITLE_BAR_HEIGHT = "32px";
4
5
  export declare const VIEWER_HEIGHT = 545;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import type { SxProps, Theme } from '@mui/material/styles';
3
4
  export declare const CHIP_GAP = 3;
4
5
  export declare const DEFAULT_CHIP_MIN_WIDTH = 24;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import type { SxProps, Theme } from '@mui/material/styles';
3
4
  export declare const CHIP_GAP = 3;
4
5
  export declare const CenterIconWrapper: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
3
4
  width?: string | number | undefined;
4
5
  height?: string | number | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  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
4
  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
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  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
4
  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
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import { TableMode } from '../../../../types/index.js';
3
4
  export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
4
5
  tableMode?: TableMode | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  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
4
  export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const AuthIcon: 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 AuthCellContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  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
4
  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
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Button: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledDownloadFileImageWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
3
4
  isTextShown?: boolean | undefined;
4
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  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
4
  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
5
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  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
4
  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
5
  export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  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
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  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
4
  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
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
3
4
  width?: string | number | undefined;
4
5
  height?: string | number | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -52,4 +52,3 @@ export * from './ProviderCell';
52
52
  export * from './PurposeCell';
53
53
  export * from './LinkCell';
54
54
  export * from './TextWithChipCell';
55
- export * from './OrdersCell';
@@ -52,4 +52,3 @@ export * from './ProviderCell';
52
52
  export * from './PurposeCell';
53
53
  export * from './LinkCell';
54
54
  export * from './TextWithChipCell';
55
- export * from './OrdersCell';
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
3
4
  variant?: "Global" | "Regional" | "Local" | undefined;
4
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Button: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  type ExportButtonProps = {
3
4
  notificationState?: {
4
5
  success: boolean;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  interface TableWrapperProps {
3
4
  showNoDataView?: boolean;
4
5
  }
@@ -333,6 +333,8 @@ export declare const cyberSourceProviderIcon: string;
333
333
  export declare const MPGSProviderIcon: string;
334
334
  export declare const NETCETERAProviderIcon: string;
335
335
  export declare const TAP3DSPROVIDERIcon: string;
336
+ export declare const greyPlusIcon: string;
337
+ export declare const greyMinusIcon: string;
336
338
  export declare const viewInvoiceIcon: string;
337
339
  export declare const checkoutStatusIcon: string;
338
340
  export declare const checkoutStatusBlueIcon: string;
@@ -339,6 +339,8 @@ export const cyberSourceProviderIcon = `${lightUrl}/provider/CYBERSOURCE.svg`;
339
339
  export const MPGSProviderIcon = `${lightUrl}/provider/MPGS.svg`;
340
340
  export const NETCETERAProviderIcon = `${lightUrl}/provider/NETCETERA.svg`;
341
341
  export const TAP3DSPROVIDERIcon = `${lightUrl}/provider/TAP3DS.svg`;
342
+ export const greyPlusIcon = `${lightUrl}/greyPlusIcon.svg`;
343
+ export const greyMinusIcon = `${lightUrl}/greyMinusIcon.svg`;
342
344
  export const viewInvoiceIcon = `${appBaseUrl}/viewInvoice.svg`;
343
345
  export const checkoutStatusIcon = `${appBaseUrl}/checkoutStatus.svg`;
344
346
  export const checkoutStatusBlueIcon = `${appBaseUrl}/checkStatusOutBlue.svg`;
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.1.338-test.4",
5
- "testVersion": 4,
4
+ "version": "0.1.339",
5
+ "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -164,4 +164,4 @@
164
164
  "publishConfig": {
165
165
  "registry": "https://registry.npmjs.org/"
166
166
  }
167
- }
167
+ }
@@ -1,22 +0,0 @@
1
- import { SelectionProps } from '../../../../types/index.js';
2
- interface Item {
3
- id: string;
4
- product_id: string;
5
- name: string;
6
- description: string;
7
- image: string;
8
- currency: string;
9
- amount: number;
10
- quantity: number;
11
- discount: {
12
- type: string;
13
- value: number;
14
- };
15
- merchant_id: string;
16
- }
17
- interface OrdersCellSheetProps {
18
- selectionProps?: SelectionProps;
19
- items: Item[];
20
- }
21
- export declare function OrdersCellSheet({ items, selectionProps }: OrdersCellSheetProps): import("react/jsx-runtime").JSX.Element | null;
22
- export {};
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useCallback, useState } from 'react';
3
- import Popover from '@mui/material/Popover';
4
- import Box from '@mui/material/Box';
5
- import { StatusChip, StatusChipWithCopy, Text } from '../../../index.js';
6
- export function OrdersCellSheet({ items, selectionProps = {} }) {
7
- const [anchorEl, setAnchorEl] = useState(null);
8
- const open = Boolean(anchorEl);
9
- const orderLabel = useCallback(({ quantity, currency, amount, name }) => `${quantity ? `Qty ${quantity}` : ''} ${name || ''} ${currency || amount ? '-' : ''} ${currency || ''} ${amount || ''}`, []);
10
- if (!items || !items.length)
11
- return null;
12
- const [firstOrder, ...resetOrders] = items;
13
- return (_jsxs(Box, Object.assign({ sx: { display: 'flex', gap: '4px', alignItems: 'center' } }, { children: [_jsx(StatusChipWithCopy, Object.assign({ chipIndex: 0, selectionProps: selectionProps }, { children: _jsx(Text, Object.assign({ noWrap: true, sx: { maxWidth: 190, fontSize: 11 } }, { children: orderLabel(firstOrder) })) })), items.length > 1 && (_jsx(Box, Object.assign({ onClick: (e) => {
14
- setAnchorEl(e.currentTarget.parentElement);
15
- }, sx: { height: '18px' } }, { children: _jsx(StatusChip, Object.assign({ minWidth: "25", sx: { borderRadius: '24px', overflow: 'hidden' }, copyText: "..." }, { children: "..." })) }))), _jsx(Popover, Object.assign({ open: open, anchorEl: anchorEl, sx: { minWidth: anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.clientWidth }, onClose: () => {
16
- setAnchorEl(null);
17
- }, anchorOrigin: {
18
- vertical: 'top',
19
- horizontal: 'left',
20
- }, transformOrigin: {
21
- vertical: 'top',
22
- horizontal: 'left',
23
- }, slotProps: {
24
- paper: {
25
- style: {
26
- maxWidth: 'unset',
27
- minWidth: anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.clientWidth,
28
- marginTop: '22px',
29
- },
30
- },
31
- } }, { children: _jsx(Box, Object.assign({ sx: { display: 'flex', flexDirection: 'column', gap: '4px', padding: '4px' } }, { children: resetOrders === null || resetOrders === void 0 ? void 0 : resetOrders.map((order, index) => (_jsx(StatusChipWithCopy, Object.assign({ copyText: orderLabel(order), chipIndex: index + 1, selectionProps: selectionProps }, { children: orderLabel(order) }), order.id))) })) }))] })));
32
- }
@@ -1 +0,0 @@
1
- export * from './OrdersCellSheet';
@@ -1 +0,0 @@
1
- export * from './OrdersCellSheet';