@tap-payments/os-micro-frontend-shared 0.3.226-test.1 → 0.3.226-test.3
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/_chunks/{chunk-STH6XR2G.js → chunk-33C463YL.js} +1 -1
- package/build/_chunks/chunk-AB24UHK2.js +2 -0
- package/build/_chunks/{chunk-ACYZKBPV.js → chunk-DBFH6OKQ.js} +1 -1
- package/build/_chunks/chunk-DYIWXOCJ.js +1 -0
- package/build/_chunks/{chunk-ILCM3NDX.js → chunk-FKG3SYY6.js} +1 -1
- package/build/_chunks/{chunk-SK6KKISG.js → chunk-GAL3X7PR.js} +1 -1
- package/build/_chunks/{chunk-I44O3S7R.js → chunk-MBTSXCJW.js} +1 -1
- package/build/_chunks/chunk-MFFVCCTZ.js +1 -0
- package/build/_chunks/{chunk-TJEYGSF4.js → chunk-MQOX7MKN.js} +1 -1
- package/build/_chunks/{chunk-AFARM6XG.js → chunk-TH5E43JD.js} +1 -1
- package/build/_chunks/{chunk-B26W6GO2.js → chunk-U62XSJM5.js} +1 -1
- package/build/_chunks/{chunk-FRM6BIVX.js → chunk-W4PURLBP.js} +1 -1
- package/build/_chunks/{chunk-KZRRNZPG.js → chunk-WAY7BWQL.js} +1 -1
- package/build/components/AmountInput/AmountInput.d.ts +2 -12
- package/build/components/AmountInput/constants.d.ts +7 -0
- package/build/components/AmountInput/index.d.ts +4 -2
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountInput/style.d.ts +2 -2
- package/build/components/AmountInput/type.d.ts +16 -0
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/BrandLogo/BrandLogo.d.ts +13 -0
- package/build/components/BrandLogo/Loading.d.ts +7 -0
- package/build/components/BrandLogo/index.d.ts +1 -0
- package/build/components/BrandLogo/index.js +1 -0
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/CurrencyAmount/CurrencyAmount.d.ts +3 -7
- package/build/components/CurrencyAmount/constants.d.ts +8 -0
- package/build/components/CurrencyAmount/index.d.ts +4 -4
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmount/style.d.ts +3 -0
- package/build/components/CurrencyAmount/type.d.ts +11 -0
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/FormSelect/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/MerchantLogo/MerchantLogo.d.ts +11 -0
- package/build/components/MerchantLogo/index.d.ts +1 -0
- package/build/components/MerchantLogo/index.js +1 -0
- package/build/components/MerchantLogo/style.d.ts +5 -0
- package/build/components/MultiSelect/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/RHFPhoneInput/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/style.d.ts +0 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +4 -4
- package/build/components/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +2 -2
- package/build/_chunks/chunk-5NEKFCBC.js +0 -2
- package/build/_chunks/chunk-BL45EG5I.js +0 -1
- package/build/_chunks/chunk-CUT7S7B2.js +0 -1
- package/build/_chunks/chunk-ND2SYD7Y.js +0 -1
- package/build/components/DisplayAmount/DisplayAmount.d.ts +0 -12
- package/build/components/DisplayAmount/index.d.ts +0 -2
- package/build/components/DisplayAmount/index.js +0 -1
- package/build/components/DisplayAmount/style.d.ts +0 -5
- package/build/components/Logo/Logo.d.ts +0 -4
- package/build/components/Logo/constants.d.ts +0 -7
- package/build/components/Logo/index.d.ts +0 -3
- package/build/components/Logo/index.js +0 -1
- package/build/components/Logo/style.d.ts +0 -4
- package/build/components/Logo/type.d.ts +0 -26
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {zc,Ia}from'./chunk-4XXNGLS6.js';import {useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var o=styled("span")(()=>({fontWeight:"400"}));function y({amount:p,currency:u,...c}){let a=zc(useId(),"currency-amount"),{integerAmount:i,decimalAmount:r}=Ia(p,u);return jsxs(d,{...c,id:a,"data-testid":"CurrencyAmount",component:"span",children:[i,r&&jsxs(Fragment,{children:[".",jsx(o,{className:"decimal-amount",children:r})]})]})}var m=y;var b=m;export{o as a,b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {d,r as r$1}from'./chunk-TIO3V7XA.js';import {lc}from'./chunk-4XXNGLS6.js';import {Rd,We}from'./chunk-V2RLDP5A.js';import {forwardRef,useMemo,memo}from'react';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var c="os-shared-Logo",r={root:`${c}-root`,skeleton:`${c}-skeleton`},x="logo";var N=styled(d)(({theme:n})=>({borderRadius:"50%",backgroundColor:n.palette.common.white}));var C=forwardRef(({className:n,sx:I,id:s,src:o,width:i=24,height:f=24,isError:e,isLoading:R,fallback:t,alt:w=x},P)=>{let m=useMemo(()=>typeof o!="string"&&!!o?.type?.includes("application/pdf"),[o]),g=useMemo(()=>o?typeof o=="string"?o:(window.URL?URL:webkitURL).createObjectURL(o):"",[o]),U=useMemo(()=>e||!o?typeof t=="string"&&t?t:Rd:m?We:g,[o,t,e,m,g]);return R?jsx(r$1,{variant:"circular",width:i,height:f,className:r.skeleton,"data-testid":s??"Logo"}):(e||!o)&&t!==void 0&&typeof t!="string"?jsx(Fragment,{children:t}):jsx(N,{ref:P,id:s,"data-testid":s??"Logo",alt:w,src:U,className:lc(r.root,n),sx:{width:i,height:f,objectFit:m&&o&&!e?"none":"contain",...I}})});C.displayName="Logo";var v=memo(C);export{r as a,v as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {zc,Ia}from'./chunk-4XXNGLS6.js';import {memo,useId}from'react';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var r=styled("span")(()=>({fontWeight:400})),p=styled(d)(()=>({fontWeight:700,fontSize:"11px",display:"flex",alignItems:"center",cursor:"default",whiteSpace:"nowrap",overflow:"auto"}));function a({amount:i,currencyCode:s,...u}){let l=zc(useId(),"display-amount"),{integerAmount:c,decimalAmount:f}=Ia(i,s);return jsxs(p,{...u,id:l,"data-testid":"DisplayAmount",children:[jsx("span",{children:c}),jsx("span",{children:"."}),jsx(r,{children:f})]})}a.displayName="DisplayAmount";var m=memo(a);var P=m;export{P as a};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BoxProps } from '@mui/material/Box';
|
|
3
|
-
interface DisplayAmountI extends BoxProps {
|
|
4
|
-
amount: number;
|
|
5
|
-
currencyCode: string;
|
|
6
|
-
}
|
|
7
|
-
declare function DisplayAmount({ amount, currencyCode, ...props }: DisplayAmountI): import("react").JSX.Element;
|
|
8
|
-
declare namespace DisplayAmount {
|
|
9
|
-
var displayName: string;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import("react").MemoExoticComponent<typeof DisplayAmount>;
|
|
12
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-ND2SYD7Y.js';import'../../_chunks/chunk-4XXNGLS6.js';import'../../_chunks/chunk-V2RLDP5A.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const DecimalSpan: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
|
-
export declare const CurrencySpan: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").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/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const logoClassNamePrefix: "os-shared-Logo";
|
|
2
|
-
export declare const logoClassNames: {
|
|
3
|
-
readonly root: "os-shared-Logo-root";
|
|
4
|
-
readonly skeleton: "os-shared-Logo-skeleton";
|
|
5
|
-
};
|
|
6
|
-
/** Default accessible name, used when no `alt` is provided. */
|
|
7
|
-
export declare const logoDefaultAlt: "logo";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as default,a as logoClassNames}from'../../_chunks/chunk-CUT7S7B2.js';import'../../_chunks/chunk-TIO3V7XA.js';import'../../_chunks/chunk-4XXNGLS6.js';import'../../_chunks/chunk-V2RLDP5A.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const LogoImageStyled: import("@emotion/styled").StyledComponent<Omit<import("../primitives").IconProps & import("react").RefAttributes<HTMLImageElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLImageElement | null) => void) | import("react").RefObject<HTMLImageElement> | null | undefined;
|
|
4
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type { logoClassNames } from './constants';
|
|
4
|
-
export type LogoClassNames = (typeof logoClassNames)[keyof typeof logoClassNames];
|
|
5
|
-
export interface LogoProps {
|
|
6
|
-
/** Logo source: raw image bytes (resolved to an object URL) or a ready image URL. PDF detection applies to `Blob` sources only. */
|
|
7
|
-
src?: string | Blob;
|
|
8
|
-
/** Logo width. */
|
|
9
|
-
width?: number | string;
|
|
10
|
-
/** Logo height. */
|
|
11
|
-
height?: number | string;
|
|
12
|
-
/** Forces the fallback icon. */
|
|
13
|
-
isError?: boolean;
|
|
14
|
-
/** Renders the loading skeleton instead of the image. */
|
|
15
|
-
isLoading?: boolean;
|
|
16
|
-
/** Custom fallback for error or empty data: a string renders as an image URL, any other node renders as-is. Defaults to the gray brand icon. Pass `null` to render nothing. */
|
|
17
|
-
fallback?: string | ReactNode;
|
|
18
|
-
/** Accessible alt text for the image. Falls back to `logoDefaultAlt`. */
|
|
19
|
-
alt?: string;
|
|
20
|
-
/** Caller-supplied id — no auto-generated id inside the component. */
|
|
21
|
-
id?: string;
|
|
22
|
-
/** Extra class name merged onto the root. */
|
|
23
|
-
className?: string;
|
|
24
|
-
/** MUI sx style overrides */
|
|
25
|
-
sx?: SxProps<Theme>;
|
|
26
|
-
}
|