@tap-payments/os-micro-frontend-shared 0.1.254 → 0.1.256-test.1

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 (45) hide show
  1. package/build/components/Chip/style.d.ts +0 -1
  2. package/build/components/CountBadge/style.d.ts +0 -1
  3. package/build/components/Dialog/style.d.ts +0 -1
  4. package/build/components/FlippingCard/style.d.ts +0 -1
  5. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  6. package/build/components/JSONViewer/style.d.ts +0 -1
  7. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  8. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  9. package/build/components/SearchButton/styles.d.ts +0 -1
  10. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  11. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  12. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  13. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  14. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
  15. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  16. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  17. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  18. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  19. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  20. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  21. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  22. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  23. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  24. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  25. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  26. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  27. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  28. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  29. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  30. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  31. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  32. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  33. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  34. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +0 -1
  35. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  36. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  37. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  38. package/build/components/VirtualTables/components/style.d.ts +0 -1
  39. package/build/components/Window/Window.d.ts +3 -2
  40. package/build/components/Window/Window.js +3 -3
  41. package/build/constants/assets.d.ts +16 -0
  42. package/build/constants/assets.js +16 -0
  43. package/build/utils/date.d.ts +2 -0
  44. package/build/utils/date.js +6 -0
  45. package/package.json +3 -3
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { GetSourceAnimationFunction } from './type';
4
3
  export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
5
4
  variant?: import("./type").ChipVariant | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AgreementImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DialogWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const FOOTER_HEIGHT = 37;
4
3
  export declare const TITLE_BAR_HEIGHT = "32px";
5
4
  export declare const VIEWER_HEIGHT = 545;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const DEFAULT_CHIP_MIN_WIDTH = 24;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const CenterIconWrapper: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
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>, {}>;
4
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>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
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>, {}>;
4
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>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { TableMode } from '../../../../types/index.js';
4
3
  export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
5
4
  tableMode?: TableMode | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
3
  export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
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>, {}>;
4
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>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
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>, {}>;
4
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>, {}>;
5
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
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>, {}>;
4
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>, {}>;
5
4
  export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
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>, {}>;
4
3
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
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>, {}>;
4
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>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
3
  variant?: "Global" | "Regional" | "Local" | undefined;
5
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  interface TableWrapperProps {
4
3
  showNoDataView?: boolean;
5
4
  }
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { BoxProps } from '@mui/material';
2
3
  import { DragControls } from 'framer-motion';
3
- interface WindowWrapperProps {
4
+ interface WindowWrapperProps extends BoxProps {
4
5
  children: ReactNode;
5
6
  id: string;
6
7
  onResize?: (element: HTMLElement) => void;
@@ -20,6 +21,6 @@ interface WindowWrapperProps {
20
21
  };
21
22
  sandboxMode?: boolean;
22
23
  }
23
- declare function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder }, sandboxMode, }: Readonly<WindowWrapperProps>): import("react/jsx-runtime").JSX.Element;
24
+ declare function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder }, sandboxMode, sx, }: Readonly<WindowWrapperProps>): import("react/jsx-runtime").JSX.Element;
24
25
  declare const _default: import("react").MemoExoticComponent<typeof WindowWrapper>;
25
26
  export default _default;
@@ -5,7 +5,7 @@ import { motion } from 'framer-motion';
5
5
  import { Resizable } from 're-resizable';
6
6
  import { APP_WINDOW_Z_INDEX, FOOTER_HEIGHT, HEADER_HEIGHT } from '../../constants/index.js';
7
7
  import { contentStyle, ContentWrapper, initalStyle, resizableMainStyle, AppContainerWrapper, AppContainerContainer } from './style';
8
- function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder = 1 }, sandboxMode = false, }) {
8
+ function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder = 1 }, sandboxMode = false, sx, }) {
9
9
  const theme = useTheme();
10
10
  const [isDrag, setIsDrag] = useState(true);
11
11
  const modalRef = useRef(null);
@@ -28,13 +28,13 @@ function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragC
28
28
  height: isMaximized ? '100vh' : '100%',
29
29
  });
30
30
  }, [isMaximized, width]);
31
- return (_jsx(AppContainerWrapper, Object.assign({ id: "app-container-wrapper", "data-testid": "AppContainerWrapper" }, { children: _jsx(AppContainerContainer, Object.assign({ "data-testid": "AppContainerContainer" }, { children: _jsx(motion.div, Object.assign({ id: "app-content", "data-add-id": id, "data-testid": "AppContent", ref: constraintsRef, initial: initalStyle }, { children: _jsx(ContentWrapper, Object.assign({ id: "content-wrapper", drag: !isMaximized && isDrag, dragMomentum: false, dragConstraints: false, onDragStart: onClick, onDragEnter: onClick, onClick: onClick, dragControls: dragControls, dragListener: false, style: Object.assign(Object.assign(Object.assign({}, (order && {
31
+ return (_jsx(AppContainerWrapper, Object.assign({ id: "app-container-wrapper", "data-testid": "AppContainerWrapper", sx: sx }, { children: _jsx(AppContainerContainer, Object.assign({ "data-testid": "AppContainerContainer" }, { children: _jsx(motion.div, Object.assign({ id: "app-content", "data-add-id": id, "data-testid": "AppContent", ref: constraintsRef, initial: initalStyle }, { children: _jsx(ContentWrapper, Object.assign({ id: "content-wrapper", drag: !isMaximized && isDrag, dragMomentum: false, dragConstraints: false, onDragStart: onClick, onDragEnter: onClick, onClick: onClick, dragControls: dragControls, dragListener: false, style: Object.assign(Object.assign(Object.assign({}, (order && {
32
32
  zIndex: Number(order) + APP_WINDOW_Z_INDEX,
33
33
  })), contentStyle), { height }), initial: Object.assign({ marginInline: 'auto', scale: 0, left: 0 }, (!isMaximized && {
34
34
  left: 48 * (openOrder - 1),
35
35
  })), animate: Object.assign(Object.assign({ width }, (isMaximized && {
36
36
  width: '100vw',
37
- })), { scale: Number(!isMinimized), top: isMaximized ? 0 : HEADER_HEIGHT + FOOTER_HEIGHT * (openOrder - 1), left: isMaximized ? 0 : 48 * (openOrder - 1) }), ref: modalRef, maximized: isMaximized, transition: { duration: isMaximized ? 0.3 : 0 } }, { children: _jsx(Resizable, Object.assign({ ref: (c) => {
37
+ })), { scale: Number(!isMinimized), top: isMaximized ? 0 : HEADER_HEIGHT + FOOTER_HEIGHT * (openOrder - 1), left: isMaximized ? 0 : 48 * (openOrder - 1) }), ref: modalRef, maximized: isMaximized, transition: { duration: isMaximized ? 0.3 : 0 } }, { children: _jsx(Resizable, Object.assign({ "data-id": id, ref: (c) => {
38
38
  resizableRef.current = c;
39
39
  }, style: resizableStyle, minHeight: minHeight, minWidth: minWidth, maxHeight: maxHeight, maxWidth: maxWidth, onResizeStart: onResizeStart, onResizeStop: onResizeStop, onResize: (_, __, element) => {
40
40
  onResize === null || onResize === void 0 ? void 0 : onResize(element);
@@ -561,3 +561,19 @@ export declare const blackSettingsVariant2Icon: string;
561
561
  export declare const exclamationWhiteIcon: string;
562
562
  export declare const paymentTechnologySubSegmentIcon: string;
563
563
  export declare const paymentGatewayProviderSubSegmentIcon: string;
564
+ export declare const paymentTechnologyV2SubSegmentIcon: string;
565
+ export declare const paymentTerminalProviderSubSegmentIcon: string;
566
+ export declare const merchantServiceProviderSubSegmentIcon: string;
567
+ export declare const paymentProcessorSubSegmentIcon: string;
568
+ export declare const paymentSchemeSubSegmentIcon: string;
569
+ export declare const paymentIssuerSubSegmentIcon: string;
570
+ export declare const paymentAcquirerSubSegmentIcon: string;
571
+ export declare const paymentMethodSubSegmentIcon: string;
572
+ export declare const paymentFacilitatorSubSegmentIcon: string;
573
+ export declare const commercialRegulatorSubSegmentIcon: string;
574
+ export declare const appPlatformSubSegmentIcon: string;
575
+ export declare const retailPlatformSubSegmentIcon: string;
576
+ export declare const commercePlatformSubSegmentIcon: string;
577
+ export declare const billingPlatformSubSegmentIcon: string;
578
+ export declare const authenticationGatewaySubSegmentIcon: string;
579
+ export declare const retailerSubSegmentIcon: string;
@@ -569,3 +569,19 @@ export const blackSettingsVariant2Icon = `${lightUrl}/blackSettingsVariant2Icon.
569
569
  export const exclamationWhiteIcon = `${lightUrl}/exclamationWhite.svg`;
570
570
  export const paymentTechnologySubSegmentIcon = `${appBaseUrl}/paymentTechnology.svg`;
571
571
  export const paymentGatewayProviderSubSegmentIcon = `${appBaseUrl}/paymentGatewayProvider.svg`;
572
+ export const paymentTechnologyV2SubSegmentIcon = `${appBaseUrl}/paymentTechnologyV2.svg`;
573
+ export const paymentTerminalProviderSubSegmentIcon = `${appBaseUrl}/paymentTerminalProvider.svg`;
574
+ export const merchantServiceProviderSubSegmentIcon = `${appBaseUrl}/merchantServiceProvider.svg`;
575
+ export const paymentProcessorSubSegmentIcon = `${appBaseUrl}/paymentProcessor.svg`;
576
+ export const paymentSchemeSubSegmentIcon = `${appBaseUrl}/paymentScheme.svg`;
577
+ export const paymentIssuerSubSegmentIcon = `${appBaseUrl}/paymentIssuer.svg`;
578
+ export const paymentAcquirerSubSegmentIcon = `${appBaseUrl}/paymentAcquirer.svg`;
579
+ export const paymentMethodSubSegmentIcon = `${appBaseUrl}/paymentMethod.svg`;
580
+ export const paymentFacilitatorSubSegmentIcon = `${appBaseUrl}/paymentFacilitator.svg`;
581
+ export const commercialRegulatorSubSegmentIcon = `${appBaseUrl}/commercialRegulator.svg`;
582
+ export const appPlatformSubSegmentIcon = `${appBaseUrl}/appPlatform.svg`;
583
+ export const retailPlatformSubSegmentIcon = `${appBaseUrl}/retailPlatform.svg`;
584
+ export const commercePlatformSubSegmentIcon = `${appBaseUrl}/commercePlatform.svg`;
585
+ export const billingPlatformSubSegmentIcon = `${appBaseUrl}/billingPlatform.svg`;
586
+ export const authenticationGatewaySubSegmentIcon = `${appBaseUrl}/authenticationGateway.svg`;
587
+ export const retailerSubSegmentIcon = `${appBaseUrl}/retailer.svg`;
@@ -41,4 +41,6 @@ export declare function secondsToTimeString(seconds: number): string;
41
41
  type TimeUnit = 'seconds' | 'minutes' | 'hours' | 'days';
42
42
  export declare function isWithinTimeAgo(timestampMs: number, amount: number, unit?: TimeUnit): boolean;
43
43
  export declare const formatRelativeTimeWithinHour: (timestampMs: number) => string;
44
+ export declare const isTodayDate: (date: string | Date) => boolean;
45
+ export declare const isYesterdayDate: (date: string | Date) => boolean;
44
46
  export {};
@@ -3,8 +3,12 @@ import relativeTime from 'dayjs/plugin/relativeTime';
3
3
  import timezone from 'dayjs/plugin/timezone';
4
4
  import utc from 'dayjs/plugin/utc';
5
5
  import calendar from 'dayjs/plugin/calendar';
6
+ import isToday from 'dayjs/plugin/isToday';
7
+ import isYesterday from 'dayjs/plugin/isYesterday';
6
8
  import { TIMEZONES } from '../constants/index.js';
7
9
  import { pad } from './number';
10
+ dayjs.extend(isToday);
11
+ dayjs.extend(isYesterday);
8
12
  dayjs.extend(utc);
9
13
  dayjs.extend(timezone);
10
14
  dayjs.extend(relativeTime);
@@ -237,3 +241,5 @@ export const formatRelativeTimeWithinHour = (timestampMs) => {
237
241
  return `${diffMinutes} min${diffMinutes === 1 ? '' : 's'} ago`;
238
242
  return '1 hour ago'; // fallback for > 59 mins
239
243
  };
244
+ export const isTodayDate = (date) => dayjs(date).isToday();
245
+ export const isYesterdayDate = (date) => dayjs(date).isYesterday();
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.254",
5
- "testVersion": 0,
4
+ "version": "0.1.256-test.1",
5
+ "testVersion": 1,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -163,4 +163,4 @@
163
163
  "publishConfig": {
164
164
  "registry": "https://registry.npmjs.org/"
165
165
  }
166
- }
166
+ }