@tap-payments/os-micro-frontend-shared 0.0.25 → 0.0.27
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/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/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/build/types/invoice.d.ts +1 -1
- package/package.json +6 -1
- 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
|
@@ -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/build/types/invoice.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.0.
|
|
4
|
+
"version": "0.0.27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"module": "build/index.js",
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
"require": "./build/components/index.js",
|
|
23
23
|
"types": "./build/components/index.d.ts"
|
|
24
24
|
},
|
|
25
|
+
"./components/*": {
|
|
26
|
+
"import": "./build/components/*",
|
|
27
|
+
"require": "./build/components/*",
|
|
28
|
+
"types": "./build/components/*"
|
|
29
|
+
},
|
|
25
30
|
"./hooks": {
|
|
26
31
|
"import": "./build/hooks/index.js",
|
|
27
32
|
"require": "./build/hooks/index.js",
|
|
@@ -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
|