@tap-payments/os-micro-frontend-shared 0.0.26 → 0.0.28-dev-v1
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/LICENSE +21 -21
- package/README.md +12 -12
- package/build/components/AppWindowWrapper/AppWindow/index.d.ts +2 -0
- package/build/components/AppWindowWrapper/AppWindow/index.js +2 -0
- package/build/components/AppWindowWrapper/index.d.ts +2 -1
- package/build/components/AppWindowWrapper/index.js +2 -1
- package/build/components/ConfirmDialog/index.d.ts +1 -0
- package/build/components/ConfirmDialog/index.js +1 -0
- package/build/components/CountBadge/index.d.ts +1 -0
- package/build/components/CountBadge/index.js +1 -0
- package/build/components/ExpandableSideBar/style.js +1 -1
- package/build/components/Inputs/index.d.ts +2 -0
- package/build/components/Inputs/index.js +2 -0
- package/build/components/RFH/Inputs/FormInput/FormInput.d.ts +12 -0
- package/build/components/RFH/Inputs/{Input/Input.js → FormInput/FormInput.js} +3 -3
- package/build/components/RFH/Inputs/FormInput/index.d.ts +3 -0
- package/build/components/RFH/Inputs/FormInput/index.js +2 -0
- package/build/components/RFH/Inputs/FormSelect/FormSelect.d.ts +8 -0
- package/build/components/RFH/Inputs/{Select/Select.js → FormSelect/FormSelect.js} +3 -3
- package/build/components/RFH/Inputs/{Select → FormSelect}/index.d.ts +1 -1
- package/build/components/RFH/Inputs/FormSelect/index.js +2 -0
- package/build/components/RFH/Inputs/MultiSelect/MultiSelect.d.ts +1 -1
- package/build/components/RFH/Inputs/SelectWithAccordion/SelectWithAccordion.js +1 -1
- package/build/components/RFH/Inputs/index.d.ts +2 -2
- package/build/components/RFH/Inputs/index.js +2 -2
- package/build/components/RFH/index.d.ts +1 -0
- package/build/components/RFH/index.js +1 -0
- package/build/components/SelectWithSearch/index.d.ts +1 -0
- package/build/components/SelectWithSearch/index.js +1 -0
- package/build/components/WindowSideBar/index.d.ts +1 -0
- package/build/components/WindowSideBar/index.js +1 -0
- package/build/components/WindowSideBar/style.js +1 -1
- package/build/components/index.d.ts +6 -4
- package/build/components/index.js +6 -4
- package/build/constants/index.d.ts +0 -1
- package/build/constants/index.js +0 -1
- package/package.json +131 -126
- package/build/components/RFH/Inputs/Input/Input.d.ts +0 -12
- package/build/components/RFH/Inputs/Input/index.d.ts +0 -3
- package/build/components/RFH/Inputs/Input/index.js +0 -2
- package/build/components/RFH/Inputs/Select/Select.d.ts +0 -8
- package/build/components/RFH/Inputs/Select/index.js +0 -2
- package/build/constants/appWindow.d.ts +0 -1
- package/build/constants/appWindow.js +0 -1
- /package/build/components/RFH/Inputs/{Select → FormSelect}/type.d.ts +0 -0
- /package/build/components/RFH/Inputs/{Select → FormSelect}/type.js +0 -0
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,5 +1,6 @@
|
|
|
1
1
|
import AppWindowWrapper from './AppWindowWrapper';
|
|
2
|
-
export { default as AppWindow, type WindowProps } from './AppWindow';
|
|
2
|
+
export { default as AppWindow, type WindowProps, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindow';
|
|
3
3
|
export * from './headers/AccountHeader';
|
|
4
|
+
export * from './context';
|
|
4
5
|
export type { AppWindowProps } from './type';
|
|
5
6
|
export default AppWindowWrapper;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AppWindowWrapper from './AppWindowWrapper';
|
|
2
|
-
export { default as AppWindow } from './AppWindow';
|
|
2
|
+
export { default as AppWindow, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindow';
|
|
3
3
|
export * from './headers/AccountHeader';
|
|
4
|
+
export * from './context';
|
|
4
5
|
export default AppWindowWrapper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Box from '@mui/material/Box';
|
|
2
2
|
import { alpha, styled } from '@mui/material/styles';
|
|
3
3
|
import { TITLE_BAR_HEIGHT } from './constant';
|
|
4
|
-
import { LEFT_SIDEBAR } from '
|
|
4
|
+
import { LEFT_SIDEBAR } from '../index.js';
|
|
5
5
|
export const SideBar = styled(Box, {
|
|
6
6
|
shouldForwardProp: (props) => props !== 'isMaximized',
|
|
7
7
|
})(({ theme, isMaximized }) => ({
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as FileInput } from './FileInput';
|
|
2
2
|
export { default as CountriesDropdown } from './CountriesDropDown';
|
|
3
3
|
export { default as SearchInput } from './SearchInput';
|
|
4
|
+
export { default as Input } from './Input';
|
|
5
|
+
export { default as Select } from './Select';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as FileInput } from './FileInput';
|
|
2
2
|
export { default as CountriesDropdown } from './CountriesDropDown';
|
|
3
3
|
export { default as SearchInput } from './SearchInput';
|
|
4
|
+
export { default as Input } from './Input';
|
|
5
|
+
export { default as Select } from './Select';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { InputBaseProps } from '../../../InputBase';
|
|
3
|
+
export interface FormInputProps extends Omit<InputBaseProps, 'name' | 'hasError'> {
|
|
4
|
+
name: string;
|
|
5
|
+
hideArrows?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function FormInput({ name, helperText, hideArrows, ...props }: FormInputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare namespace FormInput {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: React.MemoExoticComponent<typeof FormInput>;
|
|
12
|
+
export default _default;
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
15
15
|
import { InputBase } from '../../../InputBase';
|
|
16
|
-
function
|
|
16
|
+
function FormInput(_a) {
|
|
17
17
|
var { name, helperText, hideArrows } = _a, props = __rest(_a, ["name", "helperText", "hideArrows"]);
|
|
18
18
|
const { control } = useFormContext();
|
|
19
19
|
return (_jsx(Controller, { name: name, control: control, defaultValue: props.defaultValue, render: ({ field, fieldState }) => {
|
|
@@ -23,5 +23,5 @@ function Input(_a) {
|
|
|
23
23
|
} })));
|
|
24
24
|
} }));
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
export default React.memo(
|
|
26
|
+
FormInput.displayName = 'RFHFormInput';
|
|
27
|
+
export default React.memo(FormInput);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SelectProps } from './type';
|
|
3
|
+
declare function FormSelect({ name, helperText, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare namespace FormSelect {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.MemoExoticComponent<typeof FormSelect>;
|
|
8
|
+
export default _default;
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import * as React from 'react';
|
|
14
14
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
15
15
|
import { SelectBase } from '../../../InputBase';
|
|
16
|
-
function
|
|
16
|
+
function FormSelect(_a) {
|
|
17
17
|
var { name, helperText } = _a, props = __rest(_a, ["name", "helperText"]);
|
|
18
18
|
const { control } = useFormContext();
|
|
19
19
|
return (_jsx(Controller, { name: name, control: control, render: ({ field, fieldState }) => {
|
|
@@ -21,5 +21,5 @@ function Select(_a) {
|
|
|
21
21
|
return (_jsx(SelectBase, Object.assign({}, props, field, { hasError: !!fieldState.error, helperText: helperText !== null && helperText !== void 0 ? helperText : (_a = fieldState.error) === null || _a === void 0 ? void 0 : _a.message })));
|
|
22
22
|
} }));
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
export default React.memo(
|
|
24
|
+
FormSelect.displayName = 'RFHSelect';
|
|
25
|
+
export default React.memo(FormSelect);
|
|
@@ -16,7 +16,7 @@ import Icon from '../../../Icon';
|
|
|
16
16
|
import { Caption, AccordionWrapper, Container, ItemStyled } from './style';
|
|
17
17
|
import AccordionAdapter from '../../../AccordionAdapter';
|
|
18
18
|
import SelectDropdown from '../../../SelectDropdown';
|
|
19
|
-
import Select from '../
|
|
19
|
+
import Select from '../FormSelect';
|
|
20
20
|
import { useFormContext } from 'react-hook-form';
|
|
21
21
|
function SelectWithAccordion(_a) {
|
|
22
22
|
var _b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as FormInput, type FormInputProps } from './FormInput';
|
|
2
2
|
export { default as PhoneInput } from './PhoneInput';
|
|
3
3
|
export { default as AmountInput, type AmountInputProps } from './AmountInput';
|
|
4
|
-
export { default as
|
|
4
|
+
export { default as FormSelect, type SelectProps } from './FormSelect';
|
|
5
5
|
export { default as Switch } from './Switch';
|
|
6
6
|
export { default as SelectWithAccordion, type SelectWithAccordionProps } from './SelectWithAccordion';
|
|
7
7
|
export { default as MultiSelect } from './MultiSelect';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as FormInput } from './FormInput';
|
|
2
2
|
export { default as PhoneInput } from './PhoneInput';
|
|
3
3
|
export { default as AmountInput } from './AmountInput';
|
|
4
|
-
export { default as
|
|
4
|
+
export { default as FormSelect } from './FormSelect';
|
|
5
5
|
export { default as Switch } from './Switch';
|
|
6
6
|
export { default as SelectWithAccordion } from './SelectWithAccordion';
|
|
7
7
|
export { default as MultiSelect } from './MultiSelect';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Box from '@mui/material/Box';
|
|
2
2
|
import { alpha, styled } from '@mui/material/styles';
|
|
3
|
-
import { LEFT_SIDEBAR } from '
|
|
3
|
+
import { LEFT_SIDEBAR } from '../index.js';
|
|
4
4
|
import { TITLE_BAR_HEIGHT } from './constant';
|
|
5
5
|
export const SideBar = styled(Box, {
|
|
6
6
|
shouldForwardProp: (props) => props !== 'isMaximized',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as AccordionAdapter } from './AccordionAdapter';
|
|
2
2
|
export { default as ActionMenu, ActionMenuDropDown, ActionMenuItem, type ActionMenuProps } from './ActionMenu';
|
|
3
3
|
export { default as ActivityAreaChart, type ActivityAreaChartProps, type ChartDataPoint, ChartTooltip, type ChartTooltipProps, LoadingChart, type PayloadItem, } from './ActivityAreaChart';
|
|
4
|
-
export { default as AppWindowWrapper, type AccountHeaderProps, AccountHeaderTitle, AppWindow, type AccountHeaderTitleProps, type AppWindowProps, type WindowProps, } from './AppWindowWrapper';
|
|
4
|
+
export { default as AppWindowWrapper, type AccountHeaderProps, AccountHeaderTitle, AppWindow, type AccountHeaderTitleProps, type AppWindowProps, type WindowProps, AppWindowContext, AppWindowContextProvider, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindowWrapper';
|
|
5
5
|
export { default as BackgroundAnimation, type BlobGradient, type Blob } from './BackgroundAnimation';
|
|
6
6
|
export { default as Button, PlusButton } from './Button';
|
|
7
7
|
export { default as Calender } from './Calender';
|
|
@@ -22,7 +22,7 @@ export { default as ExportButton } from './ExportButton';
|
|
|
22
22
|
export { default as DropdownMenu, type IProps, type MenuItemI } from './DropdownMenu';
|
|
23
23
|
export { default as DockButton, type DockButtonProps, type DockButtonWrapperProps } from './DockButton';
|
|
24
24
|
export { default as DateButton } from './DateButton';
|
|
25
|
-
export { default as WindowSideBar } from './WindowSideBar';
|
|
25
|
+
export { default as WindowSideBar, TITLE_BAR_HEIGHT } from './WindowSideBar';
|
|
26
26
|
export { default as WindowAppIcon } from './WindowAppIcon';
|
|
27
27
|
export { default as Window } from './Window';
|
|
28
28
|
export * from './ToolbarIcon';
|
|
@@ -73,12 +73,14 @@ export { default as CountryFlag } from './CountryFlag';
|
|
|
73
73
|
export { default as CurrencyIcon } from './CurrencyIcon';
|
|
74
74
|
export { default as CustomBackdrop } from './CustomBackdrop';
|
|
75
75
|
export { default as DeviceIcon } from './DeviceIcon';
|
|
76
|
-
export { default as CountBadge, type BadgeVariants, CountAnimatedBadge, type StyledBadgeProps } from './CountBadge';
|
|
76
|
+
export { default as CountBadge, type BadgeVariants, CountAnimatedBadge, type StyledBadgeProps, paymentSourceAnimation } from './CountBadge';
|
|
77
77
|
export { default as CircularProgressWithLabel } from './CircularProgressWithLabel';
|
|
78
78
|
export { default as Collapse, type CollapseProps } from './Collapse';
|
|
79
|
-
export { default as ConfirmDialog, type ConfirmDialogFunction, type ConfirmDialogProps } from './ConfirmDialog';
|
|
79
|
+
export { default as ConfirmDialog, type ConfirmDialogFunction, type ConfirmDialogProps, useConfirmDialog } from './ConfirmDialog';
|
|
80
80
|
export { default as ControlPanelContainer } from './ControlPanelContainer';
|
|
81
81
|
export { default as CopyImage } from './CopyImage';
|
|
82
82
|
export { default as AccountDropdown } from './AccountDropdown';
|
|
83
83
|
export { default as OTPInput } from './OTPInput';
|
|
84
84
|
export { default as FlagDetails } from './FlagDetails';
|
|
85
|
+
export { default as TapLoader } from './Loaders';
|
|
86
|
+
export { default as Error } from './Error';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as AccordionAdapter } from './AccordionAdapter';
|
|
2
2
|
export { default as ActionMenu, ActionMenuDropDown, ActionMenuItem } from './ActionMenu';
|
|
3
3
|
export { default as ActivityAreaChart, ChartTooltip, LoadingChart, } from './ActivityAreaChart';
|
|
4
|
-
export { default as AppWindowWrapper, AccountHeaderTitle, AppWindow, } from './AppWindowWrapper';
|
|
4
|
+
export { default as AppWindowWrapper, AccountHeaderTitle, AppWindow, AppWindowContext, AppWindowContextProvider, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindowWrapper';
|
|
5
5
|
export { default as BackgroundAnimation } from './BackgroundAnimation';
|
|
6
6
|
export { default as Button, PlusButton } from './Button';
|
|
7
7
|
export { default as Calender } from './Calender';
|
|
@@ -22,7 +22,7 @@ export { default as ExportButton } from './ExportButton';
|
|
|
22
22
|
export { default as DropdownMenu } from './DropdownMenu';
|
|
23
23
|
export { default as DockButton } from './DockButton';
|
|
24
24
|
export { default as DateButton } from './DateButton';
|
|
25
|
-
export { default as WindowSideBar } from './WindowSideBar';
|
|
25
|
+
export { default as WindowSideBar, TITLE_BAR_HEIGHT } from './WindowSideBar';
|
|
26
26
|
export { default as WindowAppIcon } from './WindowAppIcon';
|
|
27
27
|
export { default as Window } from './Window';
|
|
28
28
|
export * from './ToolbarIcon';
|
|
@@ -73,12 +73,14 @@ export { default as CountryFlag } from './CountryFlag';
|
|
|
73
73
|
export { default as CurrencyIcon } from './CurrencyIcon';
|
|
74
74
|
export { default as CustomBackdrop } from './CustomBackdrop';
|
|
75
75
|
export { default as DeviceIcon } from './DeviceIcon';
|
|
76
|
-
export { default as CountBadge, CountAnimatedBadge } from './CountBadge';
|
|
76
|
+
export { default as CountBadge, CountAnimatedBadge, paymentSourceAnimation } from './CountBadge';
|
|
77
77
|
export { default as CircularProgressWithLabel } from './CircularProgressWithLabel';
|
|
78
78
|
export { default as Collapse } from './Collapse';
|
|
79
|
-
export { default as ConfirmDialog } from './ConfirmDialog';
|
|
79
|
+
export { default as ConfirmDialog, useConfirmDialog } from './ConfirmDialog';
|
|
80
80
|
export { default as ControlPanelContainer } from './ControlPanelContainer';
|
|
81
81
|
export { default as CopyImage } from './CopyImage';
|
|
82
82
|
export { default as AccountDropdown } from './AccountDropdown';
|
|
83
83
|
export { default as OTPInput } from './OTPInput';
|
|
84
84
|
export { default as FlagDetails } from './FlagDetails';
|
|
85
|
+
export { default as TapLoader } from './Loaders';
|
|
86
|
+
export { default as Error } from './Error';
|
package/build/constants/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,126 +1,131 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
|
-
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "build/index.js",
|
|
7
|
-
"module": "build/index.js",
|
|
8
|
-
"types": "build/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./build/index.js",
|
|
12
|
-
"require": "./build/index.js",
|
|
13
|
-
"types": "./build/index.d.ts"
|
|
14
|
-
},
|
|
15
|
-
"./constants": {
|
|
16
|
-
"import": "./build/constants/index.js",
|
|
17
|
-
"require": "./build/constants/index.js",
|
|
18
|
-
"types": "./build/constants/index.d.ts"
|
|
19
|
-
},
|
|
20
|
-
"./components": {
|
|
21
|
-
"import": "./build/components/index.js",
|
|
22
|
-
"require": "./build/components/index.js",
|
|
23
|
-
"types": "./build/components/index.d.ts"
|
|
24
|
-
},
|
|
25
|
-
"./
|
|
26
|
-
"import": "./build/
|
|
27
|
-
"require": "./build/
|
|
28
|
-
"types": "./build/
|
|
29
|
-
},
|
|
30
|
-
"./
|
|
31
|
-
"import": "./build/
|
|
32
|
-
"require": "./build/
|
|
33
|
-
"types": "./build/
|
|
34
|
-
},
|
|
35
|
-
"./
|
|
36
|
-
"import": "./build/
|
|
37
|
-
"require": "./build/
|
|
38
|
-
"types": "./build/
|
|
39
|
-
},
|
|
40
|
-
"./
|
|
41
|
-
"import": "./build/
|
|
42
|
-
"require": "./build/
|
|
43
|
-
"types": "./build/
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"react
|
|
85
|
-
"react-
|
|
86
|
-
"react-
|
|
87
|
-
"react-
|
|
88
|
-
"react-
|
|
89
|
-
"react-
|
|
90
|
-
"react-
|
|
91
|
-
"react-
|
|
92
|
-
"react-
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"@
|
|
103
|
-
"@
|
|
104
|
-
"@types/
|
|
105
|
-
"@
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
|
+
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
+
"version": "0.0.28-dev-v1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "build/index.js",
|
|
7
|
+
"module": "build/index.js",
|
|
8
|
+
"types": "build/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./build/index.js",
|
|
12
|
+
"require": "./build/index.js",
|
|
13
|
+
"types": "./build/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./constants": {
|
|
16
|
+
"import": "./build/constants/index.js",
|
|
17
|
+
"require": "./build/constants/index.js",
|
|
18
|
+
"types": "./build/constants/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./components": {
|
|
21
|
+
"import": "./build/components/index.js",
|
|
22
|
+
"require": "./build/components/index.js",
|
|
23
|
+
"types": "./build/components/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./components/*": {
|
|
26
|
+
"import": "./build/components/*/index.js",
|
|
27
|
+
"require": "./build/components/*/index.js",
|
|
28
|
+
"types": "./build/components/*/index.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./hooks": {
|
|
31
|
+
"import": "./build/hooks/index.js",
|
|
32
|
+
"require": "./build/hooks/index.js",
|
|
33
|
+
"types": "./build/hooks/index.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./utils": {
|
|
36
|
+
"import": "./build/utils/index.js",
|
|
37
|
+
"require": "./build/utils/index.js",
|
|
38
|
+
"types": "./build/utils/index.d.ts"
|
|
39
|
+
},
|
|
40
|
+
"./theme": {
|
|
41
|
+
"import": "./build/theme/index.js",
|
|
42
|
+
"require": "./build/theme/index.js",
|
|
43
|
+
"types": "./build/theme/index.d.ts"
|
|
44
|
+
},
|
|
45
|
+
"./types": {
|
|
46
|
+
"import": "./build/types/index.js",
|
|
47
|
+
"require": "./build/types/index.js",
|
|
48
|
+
"types": "./build/types/index.d.ts"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"author": {
|
|
53
|
+
"name": "Ahmed Sharkawy",
|
|
54
|
+
"email": "a.elsharkawy@tap.company"
|
|
55
|
+
},
|
|
56
|
+
"files": [
|
|
57
|
+
"build",
|
|
58
|
+
"readme.md"
|
|
59
|
+
],
|
|
60
|
+
"scripts": {
|
|
61
|
+
"ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
|
|
62
|
+
"push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
|
|
63
|
+
"dev": "vite",
|
|
64
|
+
"build": "tsc -b && vite build ",
|
|
65
|
+
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
|
|
66
|
+
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
|
|
67
|
+
"lint": "eslint . --color",
|
|
68
|
+
"lint:fix": "eslint src --fix --color",
|
|
69
|
+
"preview": "vite preview",
|
|
70
|
+
"prepare": "husky"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@emotion/react": "^11.11.0",
|
|
74
|
+
"@emotion/styled": "^11.11.0",
|
|
75
|
+
"@hookform/resolvers": "^3.3.1",
|
|
76
|
+
"@mui/material": "^5.12.3",
|
|
77
|
+
"@uiw/react-json-view": "^2.0.0-alpha.16",
|
|
78
|
+
"axios": "^1.4.0",
|
|
79
|
+
"dayjs": "^1.11.8",
|
|
80
|
+
"framer-motion": "10.11.0",
|
|
81
|
+
"i18next": "^22.4.15",
|
|
82
|
+
"memoize-one": "^6.0.0",
|
|
83
|
+
"re-resizable": "^6.9.9",
|
|
84
|
+
"react": "^18.2.0",
|
|
85
|
+
"react-currency-input-field": "^3.6.11",
|
|
86
|
+
"react-dom": "^18.2.0",
|
|
87
|
+
"react-draggable": "^4.4.6",
|
|
88
|
+
"react-dropzone": "^14.2.3",
|
|
89
|
+
"react-hook-form": "^7.45.4",
|
|
90
|
+
"react-hot-toast": "^2.4.1",
|
|
91
|
+
"react-i18next": "^12.2.2",
|
|
92
|
+
"react-multi-date-picker": "^4.1.2",
|
|
93
|
+
"react-query": "^3.39.3",
|
|
94
|
+
"react-router-dom": "^6.14.2",
|
|
95
|
+
"react-virtualized-auto-sizer": "^1.0.20",
|
|
96
|
+
"react-window": "^1.8.9",
|
|
97
|
+
"react-window-infinite-loader": "^1.0.9",
|
|
98
|
+
"react18-input-otp": "^1.1.4",
|
|
99
|
+
"recharts": "^2.15.1"
|
|
100
|
+
},
|
|
101
|
+
"devDependencies": {
|
|
102
|
+
"@eslint/js": "^9.17.0",
|
|
103
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
104
|
+
"@types/lodash": "^4.17.15",
|
|
105
|
+
"@types/react": "^18.2.6",
|
|
106
|
+
"@types/react-dom": "^18.3.5",
|
|
107
|
+
"@types/react-virtualized-auto-sizer": "^1.0.8",
|
|
108
|
+
"@types/react-window": "^1.8.5",
|
|
109
|
+
"@types/react-window-infinite-loader": "^1.0.6",
|
|
110
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
111
|
+
"eslint": "^9.17.0",
|
|
112
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
113
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
114
|
+
"globals": "^15.14.0",
|
|
115
|
+
"husky": "^8.0.3",
|
|
116
|
+
"lint-staged": "^13.2.2",
|
|
117
|
+
"prettier": "^2.8.8",
|
|
118
|
+
"tsc-alias": "^1.8.16",
|
|
119
|
+
"typescript": "5.0.2",
|
|
120
|
+
"typescript-eslint": "^8.18.2",
|
|
121
|
+
"vite": "6.0.5",
|
|
122
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
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
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { InputBaseProps } from '../../../InputBase';
|
|
3
|
-
export interface InputProps extends Omit<InputBaseProps, 'name' | 'hasError'> {
|
|
4
|
-
name: string;
|
|
5
|
-
hideArrows?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare function Input({ name, helperText, hideArrows, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare namespace Input {
|
|
9
|
-
var displayName: string;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: React.MemoExoticComponent<typeof Input>;
|
|
12
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SelectProps } from './type';
|
|
3
|
-
declare function Select({ name, helperText, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace Select {
|
|
5
|
-
var displayName: string;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: React.MemoExoticComponent<typeof Select>;
|
|
8
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const LEFT_SIDEBAR = 183;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const LEFT_SIDEBAR = 183;
|
|
File without changes
|
|
File without changes
|