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

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/Icon/type.d.ts +2 -1
  4. package/build/components/RangeCalender/RangeCalender.d.ts +1 -1
  5. package/build/components/SourceChips/AuthenticationChip/AuthenticationChip.d.ts +7 -0
  6. package/build/components/SourceChips/AuthenticationChip/AuthenticationChip.js +31 -0
  7. package/build/components/SourceChips/AuthenticationChip/constants.d.ts +30 -0
  8. package/build/components/SourceChips/AuthenticationChip/constants.js +25 -0
  9. package/build/components/SourceChips/AuthenticationChip/index.d.ts +3 -0
  10. package/build/components/SourceChips/AuthenticationChip/index.js +2 -0
  11. package/build/components/SourceChips/GeographyChip/GeographyChip.d.ts +7 -0
  12. package/build/components/SourceChips/GeographyChip/GeographyChip.js +22 -0
  13. package/build/components/SourceChips/GeographyChip/constants.d.ts +16 -0
  14. package/build/components/SourceChips/GeographyChip/constants.js +11 -0
  15. package/build/components/SourceChips/GeographyChip/index.d.ts +2 -0
  16. package/build/components/SourceChips/GeographyChip/index.js +2 -0
  17. package/build/components/SourceChips/PaymentAgreementChip/PaymentAgreementChip.d.ts +7 -0
  18. package/build/components/SourceChips/PaymentAgreementChip/PaymentAgreementChip.js +21 -0
  19. package/build/components/SourceChips/PaymentAgreementChip/constants.d.ts +21 -0
  20. package/build/components/SourceChips/PaymentAgreementChip/constants.js +16 -0
  21. package/build/components/SourceChips/PaymentAgreementChip/index.d.ts +3 -0
  22. package/build/components/SourceChips/PaymentAgreementChip/index.js +2 -0
  23. package/build/components/SourceChips/index.d.ts +3 -0
  24. package/build/components/SourceChips/index.js +3 -0
  25. package/build/components/StatusChip/StatusChip.d.ts +1 -2
  26. package/build/components/StatusChip/StatusChip.js +10 -5
  27. package/build/components/StatusChip/constants.d.ts +5 -0
  28. package/build/components/StatusChip/constants.js +5 -0
  29. package/build/components/StatusChip/style.d.ts +1 -0
  30. package/build/components/StatusChip/type.d.ts +1 -0
  31. package/build/components/StatusGroupChips/style.d.ts +12 -1
  32. package/build/components/StatusIcons/GeographyIcon/GeographyIcon.d.ts +1 -1
  33. package/build/components/index.d.ts +1 -0
  34. package/build/components/index.js +1 -0
  35. package/build/constants/table/cell/chargeTableCellWidth.d.ts +1 -1
  36. package/build/constants/table/cell/chargeTableCellWidth.js +1 -1
  37. package/build/types/user.d.ts +1 -0
  38. package/package.json +134 -143
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
+ ```
@@ -1,4 +1,5 @@
1
- import type { SxProps, Theme } from '@mui/material/styles';
1
+ import type { SxProps } from '@mui/material/styles';
2
+ import { Theme } from '@mui/system';
2
3
  export interface IconProps {
3
4
  src: string;
4
5
  onClick?: () => void;
@@ -1,7 +1,7 @@
1
1
  import { MouseEvent } from 'react';
2
2
  import { PopperProps } from '@mui/material/Popper';
3
3
  import type { CalenderMode, Timezone } from '../../types/index.js';
4
- import type { SxProps } from '@mui/material/styles';
4
+ import { SxProps } from '@mui/system';
5
5
  interface RangeCalendarProps {
6
6
  defaultDate: [Date, Date];
7
7
  onDateChange: (date: [Date, Date], timezoneOffset?: number) => void;
@@ -0,0 +1,7 @@
1
+ import { StatusChipProps } from '../../StatusChip';
2
+ export type AuthenticationChipType = 'issuer' | 'scheme' | 'device' | 'app' | 'wallet' | '3DS' | 'Device Biometric' | 'Non-3DS';
3
+ interface AuthenticationChipProps extends Omit<StatusChipProps, 'children'> {
4
+ authenticationType?: AuthenticationChipType;
5
+ }
6
+ declare const AuthenticationChip: ({ authenticationType, unknownText, ...props }: AuthenticationChipProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default AuthenticationChip;
@@ -0,0 +1,31 @@
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 StatusChip from '../../StatusChip';
14
+ import { authenticationColors } from './constants';
15
+ const authenticationTypeMap = {
16
+ issuer: 'Issuer',
17
+ scheme: 'Scheme',
18
+ device: 'Device',
19
+ app: 'App',
20
+ wallet: 'Wallet',
21
+ 'Device Biometric': 'Biometric',
22
+ '3DS': '3DS',
23
+ 'Non-3DS': 'Non-3DS',
24
+ };
25
+ const AuthenticationChip = (_a) => {
26
+ var { authenticationType, unknownText = 'noAuth' } = _a, props = __rest(_a, ["authenticationType", "unknownText"]);
27
+ const statusText = authenticationType && authenticationTypeMap[authenticationType];
28
+ const chipColors = authenticationType && authenticationColors[authenticationType];
29
+ return (_jsx(StatusChip, Object.assign({}, chipColors, { unknownText: unknownText }, props, { children: statusText })));
30
+ };
31
+ export default AuthenticationChip;
@@ -0,0 +1,30 @@
1
+ export interface AuthenticationColors {
2
+ bgColor: string;
3
+ borderColor?: string;
4
+ textColor?: string;
5
+ }
6
+ export declare const authenticationColors: {
7
+ issuer: {
8
+ bgColor: string;
9
+ textColor: string;
10
+ };
11
+ scheme: {
12
+ bgColor: string;
13
+ textColor: string;
14
+ };
15
+ app: {
16
+ bgColor: string;
17
+ textColor: string;
18
+ };
19
+ wallet: {
20
+ bgColor: string;
21
+ textColor: string;
22
+ };
23
+ device: {};
24
+ 'Device Biometric': {
25
+ bgColor: string;
26
+ textColor: string;
27
+ };
28
+ '3DS': {};
29
+ 'Non-3DS': {};
30
+ };
@@ -0,0 +1,25 @@
1
+ export const authenticationColors = {
2
+ issuer: {
3
+ bgColor: '#1F88D033',
4
+ textColor: '#1F88D0',
5
+ },
6
+ scheme: {
7
+ bgColor: '#5E30EB33',
8
+ textColor: '#5E30EB',
9
+ },
10
+ app: {
11
+ bgColor: '#AF2D6F33',
12
+ textColor: '#AF2D6F',
13
+ },
14
+ wallet: {
15
+ bgColor: '#18AA3333',
16
+ textColor: '#18AA33',
17
+ },
18
+ device: {},
19
+ 'Device Biometric': {
20
+ bgColor: '#F0820033',
21
+ textColor: '#F08200',
22
+ },
23
+ '3DS': {},
24
+ 'Non-3DS': {},
25
+ };
@@ -0,0 +1,3 @@
1
+ import AuthenticationChip from './AuthenticationChip';
2
+ export type { AuthenticationChipType } from './AuthenticationChip';
3
+ export default AuthenticationChip;
@@ -0,0 +1,2 @@
1
+ import AuthenticationChip from './AuthenticationChip';
2
+ export default AuthenticationChip;
@@ -0,0 +1,7 @@
1
+ import { StatusChipProps } from '../../StatusChip';
2
+ import { GeographyVariant } from '../../../types/index.js';
3
+ interface GeographyChipProps extends Omit<StatusChipProps, 'children'> {
4
+ geographyVariant?: GeographyVariant;
5
+ }
6
+ declare const GeographyChip: ({ geographyVariant, ...props }: GeographyChipProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default GeographyChip;
@@ -0,0 +1,22 @@
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 StatusChip from '../../StatusChip';
14
+ import { geographyMap } from '../../../utils/index.js';
15
+ import { geographyColors } from './constants';
16
+ const GeographyChip = (_a) => {
17
+ var { geographyVariant } = _a, props = __rest(_a, ["geographyVariant"]);
18
+ const statusText = geographyVariant && geographyMap[geographyVariant];
19
+ const chipColors = geographyVariant && geographyColors[geographyVariant];
20
+ return (_jsx(StatusChip, Object.assign({}, chipColors, props, { children: statusText })));
21
+ };
22
+ export default GeographyChip;
@@ -0,0 +1,16 @@
1
+ export interface GeographyColors {
2
+ bgColor: string;
3
+ borderColor: string;
4
+ textColor: string;
5
+ }
6
+ export declare const geographyColors: {
7
+ L: {
8
+ bgColor: string;
9
+ };
10
+ R: {
11
+ bgColor: string;
12
+ };
13
+ G: {
14
+ bgColor: string;
15
+ };
16
+ };
@@ -0,0 +1,11 @@
1
+ export const geographyColors = {
2
+ L: {
3
+ bgColor: '#BFEBB480',
4
+ },
5
+ R: {
6
+ bgColor: '#B4D9EB80',
7
+ },
8
+ G: {
9
+ bgColor: '#FEE7B280',
10
+ },
11
+ };
@@ -0,0 +1,2 @@
1
+ import GeographyChip from './GeographyChip';
2
+ export default GeographyChip;
@@ -0,0 +1,2 @@
1
+ import GeographyChip from './GeographyChip';
2
+ export default GeographyChip;
@@ -0,0 +1,7 @@
1
+ import { StatusChipProps } from '../../StatusChip';
2
+ export type PaymentAgreementType = 'ORDER' | 'SAVED_CARD' | 'SUBSCRIPTION' | 'INSTALLMENT' | undefined;
3
+ interface PaymentAgreementChipProps extends Omit<StatusChipProps, 'children'> {
4
+ agreementType?: PaymentAgreementType;
5
+ }
6
+ declare const PaymentAgreementChip: ({ agreementType, unknownText, ...props }: PaymentAgreementChipProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default PaymentAgreementChip;
@@ -0,0 +1,21 @@
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 StatusChip from '../../StatusChip';
14
+ import { agreementTypeMap, paymentAgreementColors } from './constants';
15
+ const PaymentAgreementChip = (_a) => {
16
+ var { agreementType, unknownText = 'noAgreement' } = _a, props = __rest(_a, ["agreementType", "unknownText"]);
17
+ const statusText = agreementType && agreementTypeMap[agreementType];
18
+ const chipColors = agreementType && paymentAgreementColors[agreementType];
19
+ return (_jsx(StatusChip, Object.assign({}, chipColors, { unknownText: unknownText }, props, { children: statusText })));
20
+ };
21
+ export default PaymentAgreementChip;
@@ -0,0 +1,21 @@
1
+ export interface PaymentAgreementColors {
2
+ bgColor: string;
3
+ borderColor?: string;
4
+ textColor?: string;
5
+ }
6
+ export declare const paymentAgreementColors: {
7
+ ORDER: {
8
+ bgColor: string;
9
+ textColor: string;
10
+ };
11
+ SAVED_CARD: {
12
+ bgColor: string;
13
+ textColor: string;
14
+ };
15
+ };
16
+ export declare const agreementTypeMap: {
17
+ ORDER: string;
18
+ SAVED_CARD: string;
19
+ SUBSCRIPTION: string;
20
+ INSTALLMENT: string;
21
+ };
@@ -0,0 +1,16 @@
1
+ export const paymentAgreementColors = {
2
+ ORDER: {
3
+ bgColor: '#5E30EB33',
4
+ textColor: '#5E30EB',
5
+ },
6
+ SAVED_CARD: {
7
+ bgColor: '#76BB4033',
8
+ textColor: '#76BB40',
9
+ },
10
+ };
11
+ export const agreementTypeMap = {
12
+ ORDER: 'Order',
13
+ SAVED_CARD: 'Saved card',
14
+ SUBSCRIPTION: 'Subscription',
15
+ INSTALLMENT: 'Installment',
16
+ };
@@ -0,0 +1,3 @@
1
+ import PaymentAgreementChip from './PaymentAgreementChip';
2
+ export type { PaymentAgreementType } from './PaymentAgreementChip';
3
+ export default PaymentAgreementChip;
@@ -0,0 +1,2 @@
1
+ import PaymentAgreementChip from './PaymentAgreementChip';
2
+ export default PaymentAgreementChip;
@@ -0,0 +1,3 @@
1
+ export { default as PaymentAgreementChip, type PaymentAgreementType } from './PaymentAgreementChip';
2
+ export { default as AuthenticationChip, type AuthenticationChipType } from './AuthenticationChip';
3
+ export { default as GeographyChip } from './GeographyChip';
@@ -0,0 +1,3 @@
1
+ export { default as PaymentAgreementChip } from './PaymentAgreementChip';
2
+ export { default as AuthenticationChip } from './AuthenticationChip';
3
+ export { default as GeographyChip } from './GeographyChip';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ChipProps } from './type';
3
- declare const StatusChip: import("react").ForwardRefExoticComponent<Omit<ChipProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
2
+ declare const StatusChip: ({ children, unknownText, ...props }: ChipProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export default StatusChip;
@@ -10,10 +10,15 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from 'react';
13
+ import { useTranslation } from 'react-i18next';
14
+ import { unknownGeographyColors } from './constants';
14
15
  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
- });
16
+ const StatusChip = (_a) => {
17
+ var { children, unknownText } = _a, props = __rest(_a, ["children", "unknownText"]);
18
+ const { t } = useTranslation();
19
+ if (!children) {
20
+ return (_jsx(ChipStyled, Object.assign({}, unknownGeographyColors, props, { children: unknownText ? t(unknownText) : t('unknown') })));
21
+ }
22
+ return _jsx(ChipStyled, Object.assign({}, props, { children: children }));
23
+ };
19
24
  export default StatusChip;
@@ -0,0 +1,5 @@
1
+ export declare const unknownGeographyColors: {
2
+ bgColor: string;
3
+ borderColor: string;
4
+ textColor: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ export const unknownGeographyColors = {
2
+ bgColor: 'white',
3
+ borderColor: '#F2F2F2',
4
+ textColor: '#20232B33',
5
+ };
@@ -7,6 +7,7 @@ export declare const ChipStyled: import("@emotion/styled").StyledComponent<impor
7
7
  borderColor?: string | undefined;
8
8
  disabled?: boolean | undefined;
9
9
  padding?: string | undefined;
10
+ unknownText?: string | undefined;
10
11
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
12
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
13
  }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
@@ -6,4 +6,5 @@ export type ChipProps = PropsWithChildren<{
6
6
  borderColor?: string;
7
7
  disabled?: boolean;
8
8
  padding?: string;
9
+ unknownText?: string;
9
10
  } & BoxProps>;
@@ -2,4 +2,15 @@
2
2
  export declare const StyledContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
4
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- export declare const StyledStatusChip: import("@emotion/styled").StyledComponent<Omit<import("../StatusChip").StatusChipProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
+ export declare const StyledStatusChip: import("@emotion/styled").StyledComponent<{
6
+ textColor?: string | undefined;
7
+ bgColor?: string | undefined;
8
+ borderColor?: string | undefined;
9
+ disabled?: boolean | undefined;
10
+ padding?: string | undefined;
11
+ unknownText?: string | undefined;
12
+ } & import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
14
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
15
+ children?: import("react").ReactNode;
16
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  export declare const GeographyIcon: ({ geographyVariant, countryCode, isTextShown, }: {
2
- geographyVariant?: "R" | "G" | "L" | undefined;
2
+ geographyVariant?: "G" | "L" | "R" | undefined;
3
3
  countryCode?: string | undefined;
4
4
  isTextShown?: boolean | undefined;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -94,3 +94,4 @@ export * from './StatusGroupChips';
94
94
  export * from './TableHeader';
95
95
  export { default as RangeCalender } from './RangeCalender';
96
96
  export { default as AppServices } from './AppServices';
97
+ export * from './SourceChips';
@@ -94,3 +94,4 @@ export * from './StatusGroupChips';
94
94
  export * from './TableHeader';
95
95
  export { default as RangeCalender } from './RangeCalender';
96
96
  export { default as AppServices } from './AppServices';
97
+ export * from './SourceChips';
@@ -42,7 +42,7 @@ export declare const chargeTableCellWidth: {
42
42
  readonly source: {
43
43
  readonly default: "114px";
44
44
  readonly text: "125px";
45
- readonly sheet: "625px";
45
+ readonly sheet: "1250px";
46
46
  };
47
47
  readonly authenticate: {
48
48
  readonly default: "55px";
@@ -42,7 +42,7 @@ export const chargeTableCellWidth = {
42
42
  source: {
43
43
  default: '114px',
44
44
  text: '125px',
45
- sheet: '625px',
45
+ sheet: '1250px',
46
46
  },
47
47
  authenticate: {
48
48
  default: '55px',
@@ -211,4 +211,5 @@ export interface UserFormI {
211
211
  id_type?: string;
212
212
  is_authorized?: boolean;
213
213
  }
214
+ export type GeographyVariant = 'G' | 'L' | 'R';
214
215
  export {};
package/package.json CHANGED
@@ -1,143 +1,134 @@
1
- {
2
- "name": "@tap-payments/os-micro-frontend-shared",
3
- "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.0.250-test.4",
5
- "testVersion": 4,
6
- "type": "module",
7
- "main": "build/index.js",
8
- "module": "build/index.js",
9
- "types": "build/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./build/index.d.ts",
13
- "import": "./build/index.js",
14
- "require": "./build/index.js"
15
- },
16
- "./constants": {
17
- "types": "./build/constants/index.d.ts",
18
- "import": "./build/constants/index.js",
19
- "require": "./build/constants/index.js"
20
- },
21
- "./components": {
22
- "types": "./build/components/index.d.ts",
23
- "import": "./build/components/index.js",
24
- "require": "./build/components/index.js"
25
- },
26
- "./components/*": {
27
- "types": "./build/components/*/index.d.ts",
28
- "import": "./build/components/*/index.js",
29
- "require": "./build/components/*/index.js"
30
- },
31
- "./hooks": {
32
- "types": "./build/hooks/index.d.ts",
33
- "import": "./build/hooks/index.js",
34
- "require": "./build/hooks/index.js"
35
- },
36
- "./utils": {
37
- "types": "./build/utils/index.d.ts",
38
- "import": "./build/utils/index.js",
39
- "require": "./build/utils/index.js"
40
- },
41
- "./theme": {
42
- "types": "./build/theme/index.d.ts",
43
- "import": "./build/theme/index.js",
44
- "require": "./build/theme/index.js"
45
- },
46
- "./types": {
47
- "types": "./build/types/index.d.ts",
48
- "import": "./build/types/index.js",
49
- "require": "./build/types/index.js"
50
- }
51
- },
52
- "license": "MIT",
53
- "author": {
54
- "name": "Ahmed Sharkawy",
55
- "email": "a.elsharkawy@tap.company"
56
- },
57
- "files": [
58
- "build",
59
- "readme.md"
60
- ],
61
- "scripts": {
62
- "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
63
- "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
64
- "push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
65
- "dev": "vite",
66
- "build": "tsc -b && vite build ",
67
- "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
68
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
69
- "lint": "eslint . --color",
70
- "lint:fix": "eslint src --fix --color",
71
- "preview": "vite preview",
72
- "prepare": "husky"
73
- },
74
- "dependencies": {
75
- "@hookform/resolvers": "^3.3.1",
76
- "@uiw/react-json-view": "^2.0.0-alpha.16",
77
- "axios": "^1.4.0",
78
- "dayjs": "^1.11.8",
79
- "framer-motion": "10.11.0",
80
- "i18next": "^22.4.15",
81
- "memoize-one": "^6.0.0",
82
- "re-resizable": "^6.9.9",
83
- "react-currency-input-field": "^3.6.11",
84
- "react-draggable": "^4.4.6",
85
- "react-dropzone": "^14.2.3",
86
- "react-hook-form": "^7.45.4",
87
- "react-hot-toast": "^2.4.1",
88
- "react-i18next": "^12.2.2",
89
- "react-virtualized-auto-sizer": "^1.0.20",
90
- "react-window": "^1.8.9",
91
- "react-window-infinite-loader": "^1.0.9",
92
- "react18-input-otp": "^1.1.4",
93
- "recharts": "^2.15.1"
94
- },
95
- "devDependencies": {
96
- "@eslint/js": "^9.17.0",
97
- "@testing-library/jest-dom": "^5.16.5",
98
- "@types/lodash": "^4.17.15",
99
- "@types/react": "^18.2.6",
100
- "@types/react-dom": "^18.3.5",
101
- "@types/react-virtualized-auto-sizer": "^1.0.8",
102
- "@types/react-window": "^1.8.5",
103
- "@types/react-window-infinite-loader": "^1.0.6",
104
- "@vitejs/plugin-react": "^4.3.4",
105
- "eslint": "^9.17.0",
106
- "eslint-plugin-react-hooks": "^5.0.0",
107
- "eslint-plugin-react-refresh": "^0.4.16",
108
- "globals": "^15.14.0",
109
- "husky": "^8.0.3",
110
- "lint-staged": "^13.2.2",
111
- "prettier": "^2.8.8",
112
- "tsc-alias": "^1.8.16",
113
- "typescript": "5.0.2",
114
- "typescript-eslint": "^8.18.2",
115
- "vite": "6.0.5",
116
- "vite-tsconfig-paths": "^4.2.0",
117
- "react": "^18.2.0",
118
- "react-dom": "^18.2.0",
119
- "react-router-dom": "^7.7.0",
120
- "@emotion/react": "^11.11.0",
121
- "@emotion/styled": "^11.11.0",
122
- "@mui/material": "^5.12.3",
123
- "react-multi-date-picker": "^4.1.2"
124
- },
125
- "peerDependencies": {
126
- "react": "^18.2.0",
127
- "react-dom": "^18.2.0",
128
- "react-router-dom": "^7.7.0",
129
- "@emotion/react": "^11.11.0",
130
- "@emotion/styled": "^11.11.0",
131
- "@mui/material": "^5.12.3",
132
- "react-multi-date-picker": "^4.1.2"
133
- },
134
- "lint-staged": {
135
- "src/**/*.{ts,tsx,json,js,jsx}": [
136
- "yarn run prettier:fix",
137
- "yarn run lint"
138
- ]
139
- },
140
- "publishConfig": {
141
- "registry": "https://registry.npmjs.org/"
142
- }
143
- }
1
+ {
2
+ "name": "@tap-payments/os-micro-frontend-shared",
3
+ "description": "Shared components and utilities for Tap Payments micro frontends",
4
+ "version": "0.0.250",
5
+ "testVersion": 2,
6
+ "type": "module",
7
+ "main": "build/index.js",
8
+ "module": "build/index.js",
9
+ "types": "build/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./build/index.d.ts",
13
+ "import": "./build/index.js",
14
+ "require": "./build/index.js"
15
+ },
16
+ "./constants": {
17
+ "types": "./build/constants/index.d.ts",
18
+ "import": "./build/constants/index.js",
19
+ "require": "./build/constants/index.js"
20
+ },
21
+ "./components": {
22
+ "types": "./build/components/index.d.ts",
23
+ "import": "./build/components/index.js",
24
+ "require": "./build/components/index.js"
25
+ },
26
+ "./components/*": {
27
+ "types": "./build/components/*/index.d.ts",
28
+ "import": "./build/components/*/index.js",
29
+ "require": "./build/components/*/index.js"
30
+ },
31
+ "./hooks": {
32
+ "types": "./build/hooks/index.d.ts",
33
+ "import": "./build/hooks/index.js",
34
+ "require": "./build/hooks/index.js"
35
+ },
36
+ "./utils": {
37
+ "types": "./build/utils/index.d.ts",
38
+ "import": "./build/utils/index.js",
39
+ "require": "./build/utils/index.js"
40
+ },
41
+ "./theme": {
42
+ "types": "./build/theme/index.d.ts",
43
+ "import": "./build/theme/index.js",
44
+ "require": "./build/theme/index.js"
45
+ },
46
+ "./types": {
47
+ "types": "./build/types/index.d.ts",
48
+ "import": "./build/types/index.js",
49
+ "require": "./build/types/index.js"
50
+ }
51
+ },
52
+ "license": "MIT",
53
+ "author": {
54
+ "name": "Ahmed Sharkawy",
55
+ "email": "a.elsharkawy@tap.company"
56
+ },
57
+ "files": [
58
+ "build",
59
+ "readme.md"
60
+ ],
61
+ "scripts": {
62
+ "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
63
+ "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
64
+ "push:test": "node scripts/increment-test-version.cjs && npm run ts:build && npm publish --access public --tag test && node scripts/restore-version.cjs",
65
+ "dev": "vite",
66
+ "build": "tsc -b && vite build ",
67
+ "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
68
+ "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
69
+ "lint": "eslint . --color",
70
+ "lint:fix": "eslint src --fix --color",
71
+ "preview": "vite preview",
72
+ "prepare": "husky"
73
+ },
74
+ "dependencies": {
75
+ "@emotion/react": "^11.11.0",
76
+ "@emotion/styled": "^11.11.0",
77
+ "@hookform/resolvers": "^3.3.1",
78
+ "@mui/material": "^5.12.3",
79
+ "@uiw/react-json-view": "^2.0.0-alpha.16",
80
+ "axios": "^1.4.0",
81
+ "dayjs": "^1.11.8",
82
+ "framer-motion": "10.11.0",
83
+ "i18next": "^22.4.15",
84
+ "memoize-one": "^6.0.0",
85
+ "re-resizable": "^6.9.9",
86
+ "react": "^18.2.0",
87
+ "react-currency-input-field": "^3.6.11",
88
+ "react-dom": "^18.2.0",
89
+ "react-draggable": "^4.4.6",
90
+ "react-dropzone": "^14.2.3",
91
+ "react-hook-form": "^7.45.4",
92
+ "react-hot-toast": "^2.4.1",
93
+ "react-i18next": "^12.2.2",
94
+ "react-multi-date-picker": "^4.1.2",
95
+ "react-router-dom": "^7.7.0",
96
+ "react-virtualized-auto-sizer": "^1.0.20",
97
+ "react-window": "^1.8.9",
98
+ "react-window-infinite-loader": "^1.0.9",
99
+ "react18-input-otp": "^1.1.4",
100
+ "recharts": "^2.15.1"
101
+ },
102
+ "devDependencies": {
103
+ "@eslint/js": "^9.17.0",
104
+ "@testing-library/jest-dom": "^5.16.5",
105
+ "@types/lodash": "^4.17.15",
106
+ "@types/react": "^18.2.6",
107
+ "@types/react-dom": "^18.3.5",
108
+ "@types/react-virtualized-auto-sizer": "^1.0.8",
109
+ "@types/react-window": "^1.8.5",
110
+ "@types/react-window-infinite-loader": "^1.0.6",
111
+ "@vitejs/plugin-react": "^4.3.4",
112
+ "eslint": "^9.17.0",
113
+ "eslint-plugin-react-hooks": "^5.0.0",
114
+ "eslint-plugin-react-refresh": "^0.4.16",
115
+ "globals": "^15.14.0",
116
+ "husky": "^8.0.3",
117
+ "lint-staged": "^13.2.2",
118
+ "prettier": "^2.8.8",
119
+ "tsc-alias": "^1.8.16",
120
+ "typescript": "5.0.2",
121
+ "typescript-eslint": "^8.18.2",
122
+ "vite": "6.0.5",
123
+ "vite-tsconfig-paths": "^4.2.0"
124
+ },
125
+ "lint-staged": {
126
+ "src/**/*.{ts,tsx,json,js,jsx}": [
127
+ "yarn run prettier:fix",
128
+ "yarn run lint"
129
+ ]
130
+ },
131
+ "publishConfig": {
132
+ "registry": "https://registry.npmjs.org/"
133
+ }
134
+ }