@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.
Files changed (46) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/AppWindowWrapper/AppWindow/index.d.ts +2 -0
  4. package/build/components/AppWindowWrapper/AppWindow/index.js +2 -0
  5. package/build/components/AppWindowWrapper/index.d.ts +2 -1
  6. package/build/components/AppWindowWrapper/index.js +2 -1
  7. package/build/components/ConfirmDialog/index.d.ts +1 -0
  8. package/build/components/ConfirmDialog/index.js +1 -0
  9. package/build/components/CountBadge/index.d.ts +1 -0
  10. package/build/components/CountBadge/index.js +1 -0
  11. package/build/components/ExpandableSideBar/style.js +1 -1
  12. package/build/components/Inputs/index.d.ts +2 -0
  13. package/build/components/Inputs/index.js +2 -0
  14. package/build/components/RFH/Inputs/FormInput/FormInput.d.ts +12 -0
  15. package/build/components/RFH/Inputs/{Input/Input.js → FormInput/FormInput.js} +3 -3
  16. package/build/components/RFH/Inputs/FormInput/index.d.ts +3 -0
  17. package/build/components/RFH/Inputs/FormInput/index.js +2 -0
  18. package/build/components/RFH/Inputs/FormSelect/FormSelect.d.ts +8 -0
  19. package/build/components/RFH/Inputs/{Select/Select.js → FormSelect/FormSelect.js} +3 -3
  20. package/build/components/RFH/Inputs/{Select → FormSelect}/index.d.ts +1 -1
  21. package/build/components/RFH/Inputs/FormSelect/index.js +2 -0
  22. package/build/components/RFH/Inputs/MultiSelect/MultiSelect.d.ts +1 -1
  23. package/build/components/RFH/Inputs/SelectWithAccordion/SelectWithAccordion.js +1 -1
  24. package/build/components/RFH/Inputs/index.d.ts +2 -2
  25. package/build/components/RFH/Inputs/index.js +2 -2
  26. package/build/components/RFH/index.d.ts +1 -0
  27. package/build/components/RFH/index.js +1 -0
  28. package/build/components/SelectWithSearch/index.d.ts +1 -0
  29. package/build/components/SelectWithSearch/index.js +1 -0
  30. package/build/components/WindowSideBar/index.d.ts +1 -0
  31. package/build/components/WindowSideBar/index.js +1 -0
  32. package/build/components/WindowSideBar/style.js +1 -1
  33. package/build/components/index.d.ts +6 -4
  34. package/build/components/index.js +6 -4
  35. package/build/constants/index.d.ts +0 -1
  36. package/build/constants/index.js +0 -1
  37. package/package.json +131 -126
  38. package/build/components/RFH/Inputs/Input/Input.d.ts +0 -12
  39. package/build/components/RFH/Inputs/Input/index.d.ts +0 -3
  40. package/build/components/RFH/Inputs/Input/index.js +0 -2
  41. package/build/components/RFH/Inputs/Select/Select.d.ts +0 -8
  42. package/build/components/RFH/Inputs/Select/index.js +0 -2
  43. package/build/constants/appWindow.d.ts +0 -1
  44. package/build/constants/appWindow.js +0 -1
  45. /package/build/components/RFH/Inputs/{Select → FormSelect}/type.d.ts +0 -0
  46. /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,3 +1,5 @@
1
1
  import AppWindow from './AppWindow';
2
2
  export type { WindowProps } from './type';
3
+ export { FOOTER_HEIGHT, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration } from './constant';
4
+ export * from './style';
3
5
  export default AppWindow;
@@ -1,2 +1,4 @@
1
1
  import AppWindow from './AppWindow';
2
+ export { FOOTER_HEIGHT, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration } from './constant';
3
+ export * from './style';
2
4
  export default AppWindow;
@@ -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,3 +1,4 @@
1
1
  import ConfirmDialog from './ConfirmDialog';
2
2
  export type { ConfirmDialogFunction, ConfirmDialogProps } from './type';
3
+ export * from './hooks';
3
4
  export default ConfirmDialog;
@@ -1,2 +1,3 @@
1
1
  import ConfirmDialog from './ConfirmDialog';
2
+ export * from './hooks';
2
3
  export default ConfirmDialog;
@@ -1,4 +1,5 @@
1
1
  import CountBadge from './CountBadge';
2
2
  export { CountAnimatedBadge } from './CountBadgeAnimated';
3
3
  export { BadgeVariants, type StyledBadgeProps } from './type';
4
+ export { paymentSourceAnimation } from './style';
4
5
  export default CountBadge;
@@ -1,4 +1,5 @@
1
1
  import CountBadge from './CountBadge';
2
2
  export { CountAnimatedBadge } from './CountBadgeAnimated';
3
3
  export { BadgeVariants } from './type';
4
+ export { paymentSourceAnimation } from './style';
4
5
  export default CountBadge;
@@ -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 '../../constants/index.js';
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 Input(_a) {
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
- Input.displayName = 'RFHInput';
27
- export default React.memo(Input);
26
+ FormInput.displayName = 'RFHFormInput';
27
+ export default React.memo(FormInput);
@@ -0,0 +1,3 @@
1
+ import FormInput, { FormInputProps } from './FormInput';
2
+ export type { FormInputProps };
3
+ export default FormInput;
@@ -0,0 +1,2 @@
1
+ import FormInput from './FormInput';
2
+ export default 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 Select(_a) {
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
- Select.displayName = 'RFHSelect';
25
- export default React.memo(Select);
24
+ FormSelect.displayName = 'RFHSelect';
25
+ export default React.memo(FormSelect);
@@ -1,4 +1,4 @@
1
- import Select from './Select';
1
+ import Select from './FormSelect';
2
2
  import { SelectProps } from './type';
3
3
  export type { SelectProps };
4
4
  export default Select;
@@ -0,0 +1,2 @@
1
+ import Select from './FormSelect';
2
+ export default Select;
@@ -1,4 +1,4 @@
1
- import { SelectProps } from '../Select/type';
1
+ import { SelectProps } from '../FormSelect/type';
2
2
  interface MultiSelectProps extends SelectProps {
3
3
  getOptionLabel?: (option: any) => string;
4
4
  }
@@ -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 '../Select';
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 Input, type InputProps } from './Input';
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 Select, type SelectProps } from './Select';
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 Input } from './Input';
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 Select } from './Select';
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,2 +1,3 @@
1
1
  export * from './Forms';
2
2
  export * from './Inputs';
3
+ export { useRFHForm } from './hooks';
@@ -1,2 +1,3 @@
1
1
  export * from './Forms';
2
2
  export * from './Inputs';
3
+ export { useRFHForm } from './hooks';
@@ -1,3 +1,4 @@
1
1
  import SelectWithSearch from './SelectWithSearch';
2
2
  export type { Option, SelectWithSearchProps } from './type';
3
+ export * from './style';
3
4
  export default SelectWithSearch;
@@ -1,2 +1,3 @@
1
1
  import SelectWithSearch from './SelectWithSearch';
2
+ export * from './style';
2
3
  export default SelectWithSearch;
@@ -1,2 +1,3 @@
1
1
  import WindowSideBar from './WindowSideBar';
2
+ export { TITLE_BAR_HEIGHT } from './constant';
2
3
  export default WindowSideBar;
@@ -1,2 +1,3 @@
1
1
  import WindowSideBar from './WindowSideBar';
2
+ export { TITLE_BAR_HEIGHT } from './constant';
2
3
  export default WindowSideBar;
@@ -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 '../../constants/index.js';
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';
@@ -10,4 +10,3 @@ export * from './timezones';
10
10
  export * from './currency';
11
11
  export * from './table';
12
12
  export * from './toggleOptions';
13
- export * from './appWindow';
@@ -10,4 +10,3 @@ export * from './timezones';
10
10
  export * from './currency';
11
11
  export * from './table';
12
12
  export * from './toggleOptions';
13
- export * from './appWindow';
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.26",
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
- "./hooks": {
26
- "import": "./build/hooks/index.js",
27
- "require": "./build/hooks/index.js",
28
- "types": "./build/hooks/index.d.ts"
29
- },
30
- "./utils": {
31
- "import": "./build/utils/index.js",
32
- "require": "./build/utils/index.js",
33
- "types": "./build/utils/index.d.ts"
34
- },
35
- "./theme": {
36
- "import": "./build/theme/index.js",
37
- "require": "./build/theme/index.js",
38
- "types": "./build/theme/index.d.ts"
39
- },
40
- "./types": {
41
- "import": "./build/types/index.js",
42
- "require": "./build/types/index.js",
43
- "types": "./build/types/index.d.ts"
44
- }
45
- },
46
- "license": "MIT",
47
- "author": {
48
- "name": "Ahmed Sharkawy",
49
- "email": "a.elsharkawy@tap.company"
50
- },
51
- "files": [
52
- "build",
53
- "readme.md"
54
- ],
55
- "scripts": {
56
- "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
57
- "push": "npm run ts:build && npm publish --access public",
58
- "dev": "vite",
59
- "build": "tsc -b && vite build ",
60
- "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
61
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
62
- "lint": "eslint . --color",
63
- "lint:fix": "eslint src --fix --color",
64
- "preview": "vite preview",
65
- "prepare": "husky"
66
- },
67
- "dependencies": {
68
- "@emotion/react": "^11.11.0",
69
- "@emotion/styled": "^11.11.0",
70
- "@hookform/resolvers": "^3.3.1",
71
- "@mui/material": "^5.12.3",
72
- "@uiw/react-json-view": "^2.0.0-alpha.16",
73
- "axios": "^1.4.0",
74
- "dayjs": "^1.11.8",
75
- "framer-motion": "10.11.0",
76
- "i18next": "^22.4.15",
77
- "memoize-one": "^6.0.0",
78
- "re-resizable": "^6.9.9",
79
- "react": "^18.2.0",
80
- "react-currency-input-field": "^3.6.11",
81
- "react-dom": "^18.2.0",
82
- "react-draggable": "^4.4.6",
83
- "react-dropzone": "^14.2.3",
84
- "react-hook-form": "^7.45.4",
85
- "react-hot-toast": "^2.4.1",
86
- "react-i18next": "^12.2.2",
87
- "react-multi-date-picker": "^4.1.2",
88
- "react-query": "^3.39.3",
89
- "react-router-dom": "^6.14.2",
90
- "react-virtualized-auto-sizer": "^1.0.20",
91
- "react-window": "^1.8.9",
92
- "react-window-infinite-loader": "^1.0.9",
93
- "react18-input-otp": "^1.1.4",
94
- "recharts": "^2.15.1"
95
- },
96
- "devDependencies": {
97
- "@eslint/js": "^9.17.0",
98
- "@testing-library/jest-dom": "^5.16.5",
99
- "@types/lodash": "^4.17.15",
100
- "@types/react": "^18.2.6",
101
- "@types/react-dom": "^18.3.5",
102
- "@types/react-virtualized-auto-sizer": "^1.0.8",
103
- "@types/react-window": "^1.8.5",
104
- "@types/react-window-infinite-loader": "^1.0.6",
105
- "@vitejs/plugin-react": "^4.3.4",
106
- "eslint": "^9.17.0",
107
- "eslint-plugin-react-hooks": "^5.0.0",
108
- "eslint-plugin-react-refresh": "^0.4.16",
109
- "globals": "^15.14.0",
110
- "husky": "^8.0.3",
111
- "lint-staged": "^13.2.2",
112
- "prettier": "^2.8.8",
113
- "tsc-alias": "^1.8.16",
114
- "typescript": "5.0.2",
115
- "typescript-eslint": "^8.18.2",
116
- "vite": "6.0.5",
117
- "vite-plugin-svgr": "^4.3.0",
118
- "vite-tsconfig-paths": "^4.2.0"
119
- },
120
- "lint-staged": {
121
- "src/**/*.{ts,tsx,json,js,jsx}": [
122
- "yarn run prettier:fix",
123
- "yarn run lint"
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,3 +0,0 @@
1
- import Input, { InputProps } from './Input';
2
- export type { InputProps };
3
- export default Input;
@@ -1,2 +0,0 @@
1
- import Input from './Input';
2
- export default Input;
@@ -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,2 +0,0 @@
1
- import Select from './Select';
2
- export default Select;
@@ -1 +0,0 @@
1
- export declare const LEFT_SIDEBAR = 183;
@@ -1 +0,0 @@
1
- export const LEFT_SIDEBAR = 183;