@tap-payments/os-micro-frontend-shared 0.0.33-shared-components-refactor-V3 → 0.0.34

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 (34) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/ActionMenu/style.d.ts +1 -1
  4. package/build/components/AppWindowWrapper/index.d.ts +1 -1
  5. package/build/components/AppWindowWrapper/index.js +1 -1
  6. package/build/components/DropdownMenu/index.d.ts +0 -1
  7. package/build/components/DropdownMenu/index.js +0 -1
  8. package/build/components/Inputs/CountriesDropDown/index.d.ts +0 -1
  9. package/build/components/Inputs/CountriesDropDown/index.js +0 -1
  10. package/build/components/Inputs/index.d.ts +1 -1
  11. package/build/components/Inputs/index.js +1 -1
  12. package/build/components/SearchButton/styles.d.ts +1 -1
  13. package/build/components/TableCells/CustomCells/SourceCell/index.d.ts +0 -1
  14. package/build/components/TableCells/CustomCells/SourceCell/index.js +0 -1
  15. package/build/components/TableHeader_V2/components/StatusButtons/StatusButton.js +2 -2
  16. package/build/components/TableHeader_V2/components/StatusButtons/style.d.ts +1 -1
  17. package/build/components/TableHeader_V2/components/StatusButtons/style.js +1 -1
  18. package/build/components/TableHeader_V2/index.d.ts +1 -2
  19. package/build/components/TableHeader_V2/index.js +1 -2
  20. package/build/components/Toolbar/index.d.ts +1 -1
  21. package/build/components/Toolbar/index.js +1 -1
  22. package/build/components/VirtualTable/components/EmptyList/index.d.ts +0 -1
  23. package/build/components/VirtualTable/components/EmptyList/index.js +0 -1
  24. package/build/components/WindowSideBar/index.d.ts +0 -1
  25. package/build/components/WindowSideBar/index.js +0 -1
  26. package/build/components/index.d.ts +4 -2
  27. package/build/components/index.js +4 -2
  28. package/build/utils/billing.d.ts +0 -1
  29. package/build/utils/billing.js +0 -1
  30. package/build/utils/encrypt.d.ts +1 -0
  31. package/build/utils/encrypt.js +44 -0
  32. package/build/utils/index.d.ts +1 -0
  33. package/build/utils/index.js +1 -0
  34. package/package.json +130 -130
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
+ ```
@@ -15,7 +15,7 @@ export declare const Charge: import("@emotion/styled").StyledComponent<import("@
15
15
  export declare const DropDownChargeGapColumn: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
16
  export declare const StyledAmount: import("@emotion/styled").StyledComponent<Pick<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
17
17
  ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
18
- }, "width" | "height" | "hidden" | "type" | "style" | "color" | "content" | "translate" | "children" | "ref" | "form" | "slot" | "title" | "pattern" | "key" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "value" | "src" | "alt" | "size" | "multiple" | "accept" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "min" | "minLength" | "name" | "readOnly" | "required"> & {
18
+ }, "width" | "height" | "hidden" | "type" | "style" | "color" | "content" | "translate" | "children" | "ref" | "form" | "slot" | "title" | "pattern" | "key" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "value" | "name" | "src" | "alt" | "size" | "multiple" | "accept" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "min" | "minLength" | "readOnly" | "required"> & {
19
19
  allowDecimals?: boolean | undefined;
20
20
  allowNegativeValue?: boolean | undefined;
21
21
  id?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import AppWindowWrapper from './AppWindowWrapper';
2
- export { default as AppWindow, type WindowProps, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, FOOTER_HEIGHT, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } 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
4
  export * from './context';
5
5
  export type { AppWindowProps } from './type';
@@ -1,5 +1,5 @@
1
1
  import AppWindowWrapper from './AppWindowWrapper';
2
- export { default as AppWindow, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, FOOTER_HEIGHT, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } 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
4
  export * from './context';
5
5
  export default AppWindowWrapper;
@@ -1,4 +1,3 @@
1
1
  import DropdownMenu from './DropdownMenu';
2
2
  export type { IProps, MenuItemI } from './type';
3
- export { StyledIconForDropDown, StyledMenuTitle, StyledOption, StyledSelect, StyledSelectComponent } from './styles';
4
3
  export default DropdownMenu;
@@ -1,3 +1,2 @@
1
1
  import DropdownMenu from './DropdownMenu';
2
- export { StyledIconForDropDown, StyledMenuTitle, StyledOption, StyledSelect, StyledSelectComponent } from './styles';
3
2
  export default DropdownMenu;
@@ -1,3 +1,2 @@
1
1
  import CountriesDropdown from './CountriesDropdown';
2
- export { InputNumberStyled, MobileWrapper } from './style';
3
2
  export default CountriesDropdown;
@@ -1,3 +1,2 @@
1
1
  import CountriesDropdown from './CountriesDropdown';
2
- export { InputNumberStyled, MobileWrapper } from './style';
3
2
  export default CountriesDropdown;
@@ -1,5 +1,5 @@
1
1
  export { default as FileInput } from './FileInput';
2
- export { default as CountriesDropdown, InputNumberStyled, MobileWrapper } from './CountriesDropDown';
2
+ export { default as CountriesDropdown } from './CountriesDropDown';
3
3
  export { default as SearchInput } from './SearchInput';
4
4
  export { default as Input } from './Input';
5
5
  export { default as Select } from './Select';
@@ -1,5 +1,5 @@
1
1
  export { default as FileInput } from './FileInput';
2
- export { default as CountriesDropdown, InputNumberStyled, MobileWrapper } from './CountriesDropDown';
2
+ export { default as CountriesDropdown } from './CountriesDropDown';
3
3
  export { default as SearchInput } from './SearchInput';
4
4
  export { default as Input } from './Input';
5
5
  export { default as Select } from './Select';
@@ -269,6 +269,7 @@ export declare const StyledInput: import("@emotion/styled").StyledComponent<{
269
269
  placeholder?: string | undefined;
270
270
  list?: string | undefined;
271
271
  value?: string | number | readonly string[] | undefined;
272
+ name?: string | undefined;
272
273
  src?: string | undefined;
273
274
  alt?: string | undefined;
274
275
  size?: number | undefined;
@@ -286,7 +287,6 @@ export declare const StyledInput: import("@emotion/styled").StyledComponent<{
286
287
  maxLength?: number | undefined;
287
288
  min?: string | number | undefined;
288
289
  minLength?: number | undefined;
289
- name?: string | undefined;
290
290
  readOnly?: boolean | undefined;
291
291
  required?: boolean | undefined;
292
292
  step?: string | number | undefined;
@@ -1,2 +1 @@
1
1
  export { default as SourceCell } from './SourceCell';
2
- export { StyledSourceImage } from './style';
@@ -1,2 +1 @@
1
1
  export { default as SourceCell } from './SourceCell';
2
- export { StyledSourceImage } from './style';
@@ -15,7 +15,7 @@ import { useTranslation } from 'react-i18next';
15
15
  import StyledBadge, { BadgeVariants } from '../../../CountBadge';
16
16
  import { convertToNumber, formatNumber } from '../../../../utils/index.js';
17
17
  import { ChevronIcon } from './ChevronIcon';
18
- import { ChevronContainer, Label, LabelWrapper, StatusIcon, StyledDropdown, statusButtonVariants } from './style';
18
+ import { ChevronContainer, Label, LabelWrapper, StyledStatusIcon, StyledDropdown, statusButtonVariants } from './style';
19
19
  import { statusButtonIcons } from './constant';
20
20
  export const StatusButton = memo((props) => {
21
21
  var _a, _b;
@@ -30,7 +30,7 @@ export const StatusButton = memo((props) => {
30
30
  };
31
31
  const Button = statusButtonVariants[variant];
32
32
  const hasDropdown = dropdownOptions && dropdownOptions.length > 0;
33
- const statusIcon = icon ? _jsx(StatusIcon, { icon: icon, variant: variant, src: statusButtonIcons[icon], alt: `${icon}-icon` }) : null;
33
+ const statusIcon = icon ? _jsx(StyledStatusIcon, { icon: icon, variant: variant, src: statusButtonIcons[icon], alt: `${icon}-icon` }) : null;
34
34
  const statusBadge = badgeCount && !Number.isNaN(convertToNumber(badgeCount)) ? (_jsx(StyledBadge, Object.assign({ variant: variant === 'active' ? BadgeVariants.ACTIVE : BadgeVariants.INACTIVE }, { children: formatNumber(Number(badgeCount)) }))) : null;
35
35
  const dropdownIcon = hasDropdown ? _jsx(ChevronIcon, { isActive: variant === 'active' }) : null;
36
36
  return (_jsxs(_Fragment, { children: [_jsx(Button, Object.assign({ "data-testid": "StatusButton" }, restProps, { ref: buttonRef, onClick: (e) => {
@@ -18,7 +18,7 @@ export declare const CountBadge: import("@emotion/styled").StyledComponent<impor
18
18
  }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
19
19
  variant: StatusButtonVariant;
20
20
  }, {}, {}>;
21
- export declare const StatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
21
+ export declare const StyledStatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
22
22
  variant: StatusButtonVariant;
23
23
  icon?: "initiated" | "captured" | "unCaptured" | "inProgress" | "abandoned" | "cancelled" | "reversed" | "authorized" | "paidOut" | "unauthenticated" | "authenticated" | "scheduled" | "unSettled" | "search" | "view" | "reports" | "chevronDown" | "unAuthorized" | "openFlag" | "closedFlag" | "textView" | "trashBin" | undefined;
24
24
  }, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -26,7 +26,7 @@ export const CountBadge = styled(Box)(({ theme, variant }) => ({
26
26
  fontWeight: 700,
27
27
  lineHeight: '10px',
28
28
  }));
29
- export const StatusIcon = styled('img')(({ theme, variant, icon }) => {
29
+ export const StyledStatusIcon = styled('img')(({ theme, variant, icon }) => {
30
30
  var _a;
31
31
  return (Object.assign(Object.assign({ fill: variant === 'active' ? theme.palette.common.white : theme.palette.text.primary, color: variant === 'active' ? theme.palette.common.white : theme.palette.text.primary }, (!(((_a = ['openFlag', 'closedFlag']) === null || _a === void 0 ? void 0 : _a.includes(icon !== null && icon !== void 0 ? icon : '')) && variant === 'inActive') &&
32
32
  icon !== 'captured' && {
@@ -1,5 +1,4 @@
1
- import TableHeader from './TableHeader';
2
- export default TableHeader;
1
+ export { default as TableHeader } from './TableHeader';
3
2
  export * from './style';
4
3
  export { FiltersRow } from './FiltersRow';
5
4
  export * from './components';
@@ -1,5 +1,4 @@
1
- import TableHeader from './TableHeader';
2
- export default TableHeader;
1
+ export { default as TableHeader } from './TableHeader';
3
2
  export * from './style';
4
3
  export { FiltersRow } from './FiltersRow';
5
4
  export * from './components';
@@ -1,4 +1,4 @@
1
1
  import Toolbar from './Toolbar';
2
2
  export * from './type';
3
- export { StyledHeaderWrapperStyled, StyledHeaderWrapper } from './style';
3
+ export { StyledHeaderWrapperStyled } from './style';
4
4
  export default Toolbar;
@@ -1,4 +1,4 @@
1
1
  import Toolbar from './Toolbar';
2
2
  export * from './type';
3
- export { StyledHeaderWrapperStyled, StyledHeaderWrapper } from './style';
3
+ export { StyledHeaderWrapperStyled } from './style';
4
4
  export default Toolbar;
@@ -1,3 +1,2 @@
1
1
  import EmptyList from './EmptyList';
2
- export { StyledImage } from './styles';
3
2
  export default EmptyList;
@@ -1,3 +1,2 @@
1
1
  import EmptyList from './EmptyList';
2
- export { StyledImage } from './styles';
3
2
  export default EmptyList;
@@ -1,4 +1,3 @@
1
1
  import WindowSideBar from './WindowSideBar';
2
2
  export { TITLE_BAR_HEIGHT } from './constant';
3
- export { SideBar, Content } from './style';
4
3
  export default WindowSideBar;
@@ -1,4 +1,3 @@
1
1
  import WindowSideBar from './WindowSideBar';
2
2
  export { TITLE_BAR_HEIGHT } from './constant';
3
- export { SideBar, Content } from './style';
4
3
  export default WindowSideBar;
@@ -19,14 +19,14 @@ export { default as SimpleDialog, type SimpleDialogProps } from './SimpleDialog'
19
19
  export { default as SearchButton } from './SearchButton';
20
20
  export { default as Loaders } from './Loaders';
21
21
  export { default as ExportButton } from './ExportButton';
22
- export { default as DropdownMenu, type IProps, type MenuItemI, StyledIconForDropDown, StyledMenuTitle, StyledOption, StyledSelect, StyledSelectComponent, } from './DropdownMenu';
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
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';
29
- export { default as Toolbar, type ToolbarProps, StyledHeaderWrapper, StyledHeaderWrapperStyled } from './Toolbar';
29
+ export { default as Toolbar, type ToolbarProps } from './Toolbar';
30
30
  export { default as ToggleButtons, type ToggleButtonProps, type ToggleButtonsProps, type ToggleOption, type ToggleOptionKey } from './ToggleButtons';
31
31
  export { default as Text } from './Text';
32
32
  export * from './TableCells';
@@ -84,3 +84,5 @@ export { default as OTPInput } from './OTPInput';
84
84
  export { default as FlagDetails } from './FlagDetails';
85
85
  export { default as TapLoader } from './Loaders';
86
86
  export { default as Error } from './Error';
87
+ export * from './Chip';
88
+ export * from './TableHeader_V2';
@@ -19,14 +19,14 @@ export { default as SimpleDialog } from './SimpleDialog';
19
19
  export { default as SearchButton } from './SearchButton';
20
20
  export { default as Loaders } from './Loaders';
21
21
  export { default as ExportButton } from './ExportButton';
22
- export { default as DropdownMenu, StyledIconForDropDown, StyledMenuTitle, StyledOption, StyledSelect, StyledSelectComponent, } from './DropdownMenu';
22
+ export { default as DropdownMenu } from './DropdownMenu';
23
23
  export { default as DockButton } from './DockButton';
24
24
  export { default as DateButton } from './DateButton';
25
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';
29
- export { default as Toolbar, StyledHeaderWrapper, StyledHeaderWrapperStyled } from './Toolbar';
29
+ export { default as Toolbar } from './Toolbar';
30
30
  export { default as ToggleButtons } from './ToggleButtons';
31
31
  export { default as Text } from './Text';
32
32
  export * from './TableCells';
@@ -84,3 +84,5 @@ export { default as OTPInput } from './OTPInput';
84
84
  export { default as FlagDetails } from './FlagDetails';
85
85
  export { default as TapLoader } from './Loaders';
86
86
  export { default as Error } from './Error';
87
+ export * from './Chip';
88
+ export * from './TableHeader_V2';
@@ -8,7 +8,6 @@ export declare const getDefaultInvoiceInfo: () => {
8
8
  email: string;
9
9
  phoneNumber: string;
10
10
  };
11
- langCode: string;
12
11
  selectedCurrency: Currency;
13
12
  isLoading: boolean;
14
13
  totalGrossAmount: number;
@@ -8,7 +8,6 @@ export const getDefaultInvoiceInfo = () => ({
8
8
  email: '',
9
9
  phoneNumber: '',
10
10
  },
11
- langCode: 'EN',
12
11
  selectedCurrency: {},
13
12
  isLoading: false,
14
13
  totalGrossAmount: 0,
@@ -0,0 +1 @@
1
+ export declare function encryptDataWithPublicKey(publicKeyPem: string, data: string): Promise<string>;
@@ -0,0 +1,44 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ function encryptWithPublicKey(publicKeyPem, text) {
11
+ return __awaiter(this, void 0, void 0, function* () {
12
+ function importPublicKey(pem) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ const pemHeader = '-----BEGIN PUBLIC KEY-----';
15
+ const pemFooter = '-----END PUBLIC KEY-----';
16
+ const pemContents = pem.replace(pemHeader, '').replace(pemFooter, '').trim();
17
+ const binaryDerString = atob(pemContents);
18
+ const binaryDer = Uint8Array.from(binaryDerString, (c) => c.charCodeAt(0));
19
+ return yield window.crypto.subtle.importKey('spki', binaryDer.buffer, {
20
+ name: 'RSA-OAEP',
21
+ hash: 'SHA-1',
22
+ }, true, ['encrypt']);
23
+ });
24
+ }
25
+ const encoder = new TextEncoder();
26
+ const key = yield importPublicKey(publicKeyPem);
27
+ const encryptedBuffer = yield window.crypto.subtle.encrypt({
28
+ name: 'RSA-OAEP',
29
+ }, key, encoder.encode(text));
30
+ const bytes = new Uint8Array(encryptedBuffer);
31
+ let binary = '';
32
+ for (let i = 0; i < bytes.byteLength; i++) {
33
+ binary += String.fromCharCode(bytes[i]);
34
+ }
35
+ return btoa(binary);
36
+ });
37
+ }
38
+ export function encryptDataWithPublicKey(publicKeyPem, data) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ if (typeof data !== 'string')
41
+ throw new Error('data should be from type string');
42
+ return yield encryptWithPublicKey(publicKeyPem, data);
43
+ });
44
+ }
@@ -38,3 +38,4 @@ export * from './geography';
38
38
  export * from './billing';
39
39
  export * from './toggleOptions';
40
40
  export * from './flag';
41
+ export * from './encrypt';
@@ -38,3 +38,4 @@ export * from './geography';
38
38
  export * from './billing';
39
39
  export * from './toggleOptions';
40
40
  export * from './flag';
41
+ export * from './encrypt';
package/package.json CHANGED
@@ -1,130 +1,130 @@
1
- {
2
- "name": "@tap-payments/os-micro-frontend-shared",
3
- "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.0.33-shared-components-refactor-V3",
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-router-dom": "^6.14.2",
94
- "react-virtualized-auto-sizer": "^1.0.20",
95
- "react-window": "^1.8.9",
96
- "react-window-infinite-loader": "^1.0.9",
97
- "react18-input-otp": "^1.1.4",
98
- "recharts": "^2.15.1"
99
- },
100
- "devDependencies": {
101
- "@eslint/js": "^9.17.0",
102
- "@testing-library/jest-dom": "^5.16.5",
103
- "@types/lodash": "^4.17.15",
104
- "@types/react": "^18.2.6",
105
- "@types/react-dom": "^18.3.5",
106
- "@types/react-virtualized-auto-sizer": "^1.0.8",
107
- "@types/react-window": "^1.8.5",
108
- "@types/react-window-infinite-loader": "^1.0.6",
109
- "@vitejs/plugin-react": "^4.3.4",
110
- "eslint": "^9.17.0",
111
- "eslint-plugin-react-hooks": "^5.0.0",
112
- "eslint-plugin-react-refresh": "^0.4.16",
113
- "globals": "^15.14.0",
114
- "husky": "^8.0.3",
115
- "lint-staged": "^13.2.2",
116
- "prettier": "^2.8.8",
117
- "tsc-alias": "^1.8.16",
118
- "typescript": "5.0.2",
119
- "typescript-eslint": "^8.18.2",
120
- "vite": "6.0.5",
121
- "vite-plugin-svgr": "^4.3.0",
122
- "vite-tsconfig-paths": "^4.2.0"
123
- },
124
- "lint-staged": {
125
- "src/**/*.{ts,tsx,json,js,jsx}": [
126
- "yarn run prettier:fix",
127
- "yarn run lint"
128
- ]
129
- }
130
- }
1
+ {
2
+ "name": "@tap-payments/os-micro-frontend-shared",
3
+ "description": "Shared components and utilities for Tap Payments micro frontends",
4
+ "version": "0.0.34",
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-router-dom": "^6.14.2",
94
+ "react-virtualized-auto-sizer": "^1.0.20",
95
+ "react-window": "^1.8.9",
96
+ "react-window-infinite-loader": "^1.0.9",
97
+ "react18-input-otp": "^1.1.4",
98
+ "recharts": "^2.15.1"
99
+ },
100
+ "devDependencies": {
101
+ "@eslint/js": "^9.17.0",
102
+ "@testing-library/jest-dom": "^5.16.5",
103
+ "@types/lodash": "^4.17.15",
104
+ "@types/react": "^18.2.6",
105
+ "@types/react-dom": "^18.3.5",
106
+ "@types/react-virtualized-auto-sizer": "^1.0.8",
107
+ "@types/react-window": "^1.8.5",
108
+ "@types/react-window-infinite-loader": "^1.0.6",
109
+ "@vitejs/plugin-react": "^4.3.4",
110
+ "eslint": "^9.17.0",
111
+ "eslint-plugin-react-hooks": "^5.0.0",
112
+ "eslint-plugin-react-refresh": "^0.4.16",
113
+ "globals": "^15.14.0",
114
+ "husky": "^8.0.3",
115
+ "lint-staged": "^13.2.2",
116
+ "prettier": "^2.8.8",
117
+ "tsc-alias": "^1.8.16",
118
+ "typescript": "5.0.2",
119
+ "typescript-eslint": "^8.18.2",
120
+ "vite": "6.0.5",
121
+ "vite-plugin-svgr": "^4.3.0",
122
+ "vite-tsconfig-paths": "^4.2.0"
123
+ },
124
+ "lint-staged": {
125
+ "src/**/*.{ts,tsx,json,js,jsx}": [
126
+ "yarn run prettier:fix",
127
+ "yarn run lint"
128
+ ]
129
+ }
130
+ }