@tap-payments/os-micro-frontend-shared 0.3.145 → 0.3.146-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 (66) hide show
  1. package/build/_chunks/chunk-6SMLKW6X.js +1 -0
  2. package/build/_chunks/{chunk-QEZJT5RA.js → chunk-J7ETCR44.js} +1 -1
  3. package/build/_chunks/{chunk-I7EFPGTT.js → chunk-L6V22NA7.js} +1 -1
  4. package/build/_chunks/chunk-LJJ2GSVE.js +2 -0
  5. package/build/components/Amount/index.js +1 -1
  6. package/build/components/AmountConversionFilter/index.js +1 -1
  7. package/build/components/AmountInput/index.js +1 -1
  8. package/build/components/AmountSlider/index.js +1 -1
  9. package/build/components/AppServices/index.js +1 -1
  10. package/build/components/AppServicesBar/index.js +1 -1
  11. package/build/components/BrandLogo/index.js +1 -1
  12. package/build/components/ColumnViews/index.js +1 -1
  13. package/build/components/CopyImage/index.js +1 -1
  14. package/build/components/CountryFilter/index.js +1 -1
  15. package/build/components/CurrencyFilter/index.js +1 -1
  16. package/build/components/Customer/index.js +1 -1
  17. package/build/components/DateFilter/index.js +1 -1
  18. package/build/components/Discount/index.js +1 -1
  19. package/build/components/FileInputPreview/index.js +1 -1
  20. package/build/components/FileUpload/index.js +1 -1
  21. package/build/components/FilterDropdown/index.js +1 -1
  22. package/build/components/Filters/index.js +1 -1
  23. package/build/components/LanguageDropdown/index.js +1 -1
  24. package/build/components/ListColumnFilter/index.js +1 -1
  25. package/build/components/ListHeader/index.js +1 -1
  26. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  27. package/build/components/MerchantLogo/index.js +1 -1
  28. package/build/components/MerchantsDropdown/index.js +1 -1
  29. package/build/components/PartnersFilter/index.js +1 -1
  30. package/build/components/PaymentSourceFilter/index.js +1 -1
  31. package/build/components/PhoneFilter/index.js +1 -1
  32. package/build/components/RFH/index.js +1 -1
  33. package/build/components/RadioGroup/index.js +1 -1
  34. package/build/components/RadioGroup/type.d.ts +1 -1
  35. package/build/components/RangeCalender/index.js +1 -1
  36. package/build/components/ReceiptsViewer/index.js +1 -1
  37. package/build/components/ReferenceTypeFilter/index.js +1 -1
  38. package/build/components/SalesChannelFilter/index.js +1 -1
  39. package/build/components/StatusFilter/index.js +1 -1
  40. package/build/components/StatusIcons/index.js +1 -1
  41. package/build/components/TableCells/index.js +1 -1
  42. package/build/components/TableReports/index.js +1 -1
  43. package/build/components/TreeDropdown/TreeNodeItem/style.d.ts +4 -2
  44. package/build/components/TreeDropdown/index.js +1 -1
  45. package/build/components/VAT/index.js +1 -1
  46. package/build/components/VerificationIcon/index.js +1 -1
  47. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  48. package/build/components/WindowSideBar/index.js +1 -1
  49. package/build/components/index.d.ts +2 -2
  50. package/build/components/index.js +1 -1
  51. package/build/index.js +1 -1
  52. package/package.json +2 -2
  53. package/build/_chunks/chunk-IJD4D5CR.js +0 -1
  54. package/build/_chunks/chunk-QNPHMFIK.js +0 -2
  55. package/build/_chunks/chunk-VQ5JQ5KI.js +0 -1
  56. package/build/_chunks/chunk-WQZQGDP6.js +0 -1
  57. package/build/components/RadioButton/RadioButton.d.ts +0 -8
  58. package/build/components/RadioButton/index.d.ts +0 -2
  59. package/build/components/RadioButton/index.js +0 -1
  60. package/build/components/RadioButton/style.d.ts +0 -27
  61. package/build/components/RadioButton/type.d.ts +0 -12
  62. package/build/components/ToggleButtons/ToggleButtons.d.ts +0 -4
  63. package/build/components/ToggleButtons/index.d.ts +0 -3
  64. package/build/components/ToggleButtons/index.js +0 -1
  65. package/build/components/ToggleButtons/style.d.ts +0 -8
  66. package/build/components/ToggleButtons/type.d.ts +0 -17
@@ -1 +0,0 @@
1
- import {yc}from'./chunk-3DEK3VMQ.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import f from'@mui/material/Radio';import {jsx}from'react/jsx-runtime';var e={color:"#8C9196",checkedColor:"#1F88D0",disabledColor:"#C7C7CC"},n={small:{iconSize:15,maxWidth:"24px"}},g=styled("span")(()=>({borderRadius:"50%",width:"12px",height:"12px",boxSizing:"border-box",boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)"})),l=styled(g)({backgroundColor:e.checkedColor,"&::before":{display:"block",width:"12px",height:"12px",backgroundColor:e.checkedColor,borderRadius:"50%",backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'}}),c=styled(f,{shouldForwardProp:o=>!["iconSize","checkedColor","disabledColor","hoverColor"].includes(o)})(({iconSize:o,checkedColor:d,disabledColor:t,hoverColor:r})=>({"& .MuiSvgIcon-root":{fontSize:o||n.small.iconSize},maxWidth:n.small.maxWidth,cursor:"pointer",color:e.color,"&.Mui-checked":{color:d||e.checkedColor},"&:hover":r?{backgroundColor:"transparent",color:r}:void 0,"&.Mui-disabled":{color:t||e.disabledColor}}));function p({size:o="small",customCheckedIcon:d,checkedColor:t,disabledColor:r,hoverColor:m,iconSize:u,showRipple:h=false,sx:C,...x}){let b=yc(useId(),"radio-button");return jsx(c,{id:b,"data-testid":"RadioButton",size:o==="large"?"medium":o,disableRipple:!h,checkedIcon:d||jsx(l,{}),iconSize:u,checkedColor:t,disabledColor:r,hoverColor:m,sx:C,...x})}p.displayName="RadioButton";var k=memo(p);export{k as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-VQ5JQ5KI.js';import {yc}from'./chunk-3DEK3VMQ.js';import {memo,useId,useMemo}from'react';import L from'@mui/material/RadioGroup';import {styled}from'@mui/material/styles';import y from'@mui/material/FormControlLabel';import {FormControl,FormLabel,Stack}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var R=styled(y,{shouldForwardProp:o=>!["size","showHoverEffects","labelSx"].includes(o)})(({size:o="small",showHoverEffects:e=true,labelSx:r})=>({margin:"0",width:"100%",cursor:"pointer",padding:o==="small"?"7.5px 16px 7.5px 8px":o==="medium"?"9px 16px 9px 10px":"11px 16px 11px 12px",maxHeight:o==="small"?"35px":o==="medium"?"40px":"45px",...e&&{"&:hover":{boxShadow:"0px 0px 16px 0px #00000021",borderLeft:"1px solid transparent"}},"& .MuiFormControlLabel-label":{fontSize:o==="small"?"11px":o==="medium"?"13px":"15px",fontWeight:"500",color:"#20232B",width:"100%",cursor:"pointer",...r},"& .MuiRadio-root":{cursor:"pointer",color:"#8C9196","&.Mui-checked":{color:"#1F88D0"}}}));function k({option:o,size:e="small",customLabelRenderer:r,labelPosition:m="end",showHoverEffects:i=true,customRadioProps:n,labelSx:s,icon:l,...d}){let p=r?r(o):o.label,u=useMemo(()=>l?jsxs(Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[p,jsx("img",{alt:"icon",...l})]}):p,[l,p]);return jsx(R,{value:o.value,control:jsx(a,{size:e,...n,...o.customProps}),label:u,disabled:o.disabled,size:e,labelPlacement:m,showHoverEffects:i,labelSx:s,...d})}function h({options:o,onOptionChange:e,size:r="small",customLabelRenderer:m,layout:i="vertical",spacing:n=0,labelPosition:s="end",showHoverEffects:l=true,customRadioProps:d,labelSx:p,onChange:u,title:c,sx:g,...S}){let v=t=>{let x=t.target.value;e?.(x),u?.(t,x);},w=yc(useId(),"radio-group");return jsxs(FormControl,{id:w,"data-testid":"RadioGroup",children:[typeof c=="string"?jsx(FormLabel,{children:c}):c,jsx(L,{onChange:v,sx:{display:"flex",flexDirection:i==="horizontal"?"row":"column",gap:n,...g},...S,children:o.map(t=>jsx(k,{icon:t.icon,option:t,size:r,customLabelRenderer:m,labelPosition:s,showHoverEffects:l,customRadioProps:d,labelSx:p},t.value))})]})}h.displayName="RadioGroup";var B=memo(h);export{B as a};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { RadioButtonProps } from './type';
3
- declare function RadioButton({ size, customCheckedIcon, checkedColor, disabledColor, hoverColor, iconSize, showRipple, sx, ...props }: RadioButtonProps): import("react").JSX.Element;
4
- declare namespace RadioButton {
5
- var displayName: string;
6
- }
7
- declare const _default: import("react").MemoExoticComponent<typeof RadioButton>;
8
- export default _default;
@@ -1,2 +0,0 @@
1
- export { default as RadioButton } from './RadioButton';
2
- export type { RadioButtonProps } from './type';
@@ -1 +0,0 @@
1
- export{a as RadioButton}from'../../_chunks/chunk-VQ5JQ5KI.js';import'../../_chunks/chunk-3DEK3VMQ.js';import'../../_chunks/chunk-MQP3RGOO.js';import'../../_chunks/chunk-7567D5HA.js';import'../../_chunks/chunk-VWSQS7GB.js';
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const DEFAULT_COLORS: {
3
- readonly color: "#8C9196";
4
- readonly checkedColor: "#1F88D0";
5
- readonly disabledColor: "#C7C7CC";
6
- };
7
- export declare const SIZE_CONFIG: {
8
- readonly small: {
9
- readonly iconSize: 15;
10
- readonly maxWidth: "24px";
11
- };
12
- readonly medium: {
13
- readonly iconSize: 18;
14
- readonly maxWidth: "28px";
15
- };
16
- readonly large: {
17
- readonly iconSize: 20;
18
- readonly maxWidth: "32px";
19
- };
20
- };
21
- export declare const StyledRadioCheckedIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, {}, {}>;
22
- export declare const StyledRadio: import("@emotion/styled").StyledComponent<import("@mui/material/Radio").RadioProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
23
- iconSize?: number | undefined;
24
- checkedColor?: string | undefined;
25
- disabledColor?: string | undefined;
26
- hoverColor?: string | undefined;
27
- }, {}, {}>;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { RadioProps, SxProps, Theme } from '@mui/material';
3
- export interface RadioButtonProps extends Omit<RadioProps, 'checkedIcon' | 'icon' | 'color' | 'size'> {
4
- size?: 'small' | 'medium' | 'large';
5
- customCheckedIcon?: React.ReactNode;
6
- checkedColor?: string;
7
- disabledColor?: string;
8
- hoverColor?: string;
9
- iconSize?: number;
10
- showRipple?: boolean;
11
- sx?: SxProps<Theme>;
12
- }
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { ToggleButtonsProps, ToggleOptionKey } from './type';
3
- declare const ToggleButtons: <T extends ToggleOptionKey>({ options, activeKey, onChange, containerProps, buttonProps }: ToggleButtonsProps<T>) => import("react").JSX.Element;
4
- export default ToggleButtons;
@@ -1,3 +0,0 @@
1
- import ToggleButtons from './ToggleButtons';
2
- export * from './type';
3
- export default ToggleButtons;
@@ -1 +0,0 @@
1
- export{a as default}from'../../_chunks/chunk-IJD4D5CR.js';import'../../_chunks/chunk-3DEK3VMQ.js';import'../../_chunks/chunk-MQP3RGOO.js';import'../../_chunks/chunk-7567D5HA.js';import'../../_chunks/chunk-VWSQS7GB.js';
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ToggleButtonProps } from './type';
3
- export declare const ToggleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
- export declare const ToggleButton: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
8
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ToggleButtonProps, {}, {}>;
@@ -1,17 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { BoxProps } from '@mui/material';
3
- export interface ToggleButtonProps {
4
- active: boolean;
5
- }
6
- export type ToggleOptionKey = string | number;
7
- export interface ToggleOption<T extends ToggleOptionKey> {
8
- key: T;
9
- content: ReactNode;
10
- }
11
- export interface ToggleButtonsProps<T extends ToggleOptionKey> {
12
- options: ToggleOption<T>[];
13
- activeKey: T;
14
- onChange: (key: T) => void;
15
- containerProps?: BoxProps;
16
- buttonProps?: BoxProps;
17
- }