@tap-payments/os-micro-frontend-shared 0.1.96-test.2 → 0.1.96-test.21

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 (136) 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/AmountStatusChip/AmountStatusChip.d.ts +9 -0
  5. package/build/components/AmountStatusChip/AmountStatusChip.js +19 -0
  6. package/build/components/AmountStatusChip/index.d.ts +3 -0
  7. package/build/components/AmountStatusChip/index.js +2 -0
  8. package/build/components/AmountStatusChip/style.d.ts +3 -0
  9. package/build/components/AmountStatusChip/style.js +13 -0
  10. package/build/components/AppServices/AppServices.d.ts +10 -5
  11. package/build/components/AppServices/AppServices.js +16 -18
  12. package/build/components/AppServices/ServiceItem.d.ts +2 -4
  13. package/build/components/AppServices/ServiceItem.js +2 -4
  14. package/build/components/AppServicesBar/AppServicesBar.d.ts +22 -0
  15. package/build/components/AppServicesBar/AppServicesBar.js +18 -0
  16. package/build/components/AppServicesBar/index.d.ts +3 -0
  17. package/build/components/AppServicesBar/index.js +3 -0
  18. package/build/components/AppServicesBar/style.d.ts +4 -0
  19. package/build/components/AppServicesBar/style.js +6 -0
  20. package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.d.ts +1 -1
  21. package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.js +1 -1
  22. package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.d.ts +1 -1
  23. package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.js +2 -2
  24. package/build/components/AuthenticationTypeChip/AuthenticationTypeChip.d.ts +9 -0
  25. package/build/components/AuthenticationTypeChip/AuthenticationTypeChip.js +21 -0
  26. package/build/components/AuthenticationTypeChip/constants.d.ts +16 -0
  27. package/build/components/AuthenticationTypeChip/constants.js +13 -0
  28. package/build/components/AuthenticationTypeChip/index.d.ts +3 -0
  29. package/build/components/AuthenticationTypeChip/index.js +2 -0
  30. package/build/components/ColorPicker/ColorPicker.d.ts +4 -1
  31. package/build/components/ColorPicker/ColorPicker.js +10 -43
  32. package/build/components/ColorPicker/ColorPickerPanel.d.ts +7 -0
  33. package/build/components/ColorPicker/ColorPickerPanel.js +41 -0
  34. package/build/components/ColorPicker/ColorSchemeSelect.d.ts +7 -0
  35. package/build/components/ColorPicker/ColorSchemeSelect.js +35 -0
  36. package/build/components/ColorPicker/HexaFields.d.ts +7 -0
  37. package/build/components/ColorPicker/HexaFields.js +79 -0
  38. package/build/components/ColorPicker/RGBAFields.d.ts +7 -0
  39. package/build/components/ColorPicker/RGBAFields.js +25 -0
  40. package/build/components/ColorPicker/style.d.ts +20 -9
  41. package/build/components/ColorPicker/style.js +49 -2
  42. package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.d.ts +1 -1
  43. package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.js +1 -1
  44. package/build/components/ListLayout/ListLayout.d.ts +10 -0
  45. package/build/components/ListLayout/ListLayout.js +20 -0
  46. package/build/components/ListLayout/index.d.ts +2 -0
  47. package/build/components/ListLayout/index.js +2 -0
  48. package/build/components/ListLayout/styles.d.ts +4 -0
  49. package/build/components/ListLayout/styles.js +9 -0
  50. package/build/components/RightLeftExpandingCenterChip/style.js +0 -2
  51. package/build/components/SearchButton/styles.d.ts +1 -1
  52. package/build/components/StatusChip/StatusChip.d.ts +1 -1
  53. package/build/components/StatusChip/StatusChip.js +13 -10
  54. package/build/components/StatusChip/style.d.ts +4 -0
  55. package/build/components/StatusChip/style.js +13 -5
  56. package/build/components/StatusChip/type.d.ts +4 -0
  57. package/build/components/StatusChipWithCopy/StatusChipWithCopy.d.ts +2 -1
  58. package/build/components/StatusChipWithCopy/StatusChipWithCopy.js +2 -2
  59. package/build/components/StatusIcons/AuthorizationAutoIcons/style.js +1 -1
  60. package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +1 -0
  61. package/build/components/TableCells/CustomCells/ActionCell/constant.js +2 -1
  62. package/build/components/TableCells/CustomCells/ActionCell/hooks/useActionCell.d.ts +1 -1
  63. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
  64. package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js +4 -4
  65. package/build/components/TableCells/CustomCells/BalanceCell/style.js +1 -1
  66. package/build/components/TableCells/CustomCells/ProductsCell/style.js +1 -1
  67. package/build/components/TableCells/CustomCells/RefundChargeCell/style.js +1 -1
  68. package/build/components/TableCells/CustomCells/RefundStatusCell/style.js +1 -1
  69. package/build/components/TableCells/CustomCells/style.js +1 -1
  70. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts +13 -0
  71. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.js +26 -0
  72. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.d.ts +1 -0
  73. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.js +1 -0
  74. package/build/components/TableCells/SheetViewCells/index.d.ts +1 -0
  75. package/build/components/TableCells/SheetViewCells/index.js +1 -0
  76. package/build/components/TableCells/index.d.ts +1 -0
  77. package/build/components/TableCells/index.js +1 -0
  78. package/build/components/ToggleView/ToggleView.d.ts +16 -0
  79. package/build/components/ToggleView/ToggleView.js +32 -0
  80. package/build/components/ToggleView/ToggleWrapper.d.ts +4 -0
  81. package/build/components/ToggleView/ToggleWrapper.js +8 -0
  82. package/build/components/ToggleView/index.d.ts +3 -0
  83. package/build/components/ToggleView/index.js +3 -0
  84. package/build/components/ToggleView/style.d.ts +14 -0
  85. package/build/components/ToggleView/style.js +31 -0
  86. package/build/components/ToggleView/types.d.ts +6 -0
  87. package/build/components/ToggleView/types.js +6 -0
  88. package/build/components/Toolbar/style.d.ts +5 -2
  89. package/build/components/Toolbar/style.js +6 -1
  90. package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.d.ts +1 -1
  91. package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.js +2 -2
  92. package/build/components/VirtualTables/SheetViewVirtualTable/components/LoadingMainTable.js +2 -0
  93. package/build/components/VirtualTables/SheetViewVirtualTable/components/MainTable.js +5 -1
  94. package/build/components/VirtualTables/SheetViewVirtualTable/components/PinnedColumn.js +5 -1
  95. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.d.ts +1 -4
  96. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.js +39 -7
  97. package/build/components/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
  98. package/build/components/VirtualTables/VirtualTable/VirtualTable.js +2 -2
  99. package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.d.ts +1 -1
  100. package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.js +2 -2
  101. package/build/components/VirtualTables/components/TableRow.js +2 -1
  102. package/build/components/Window/Window.d.ts +2 -1
  103. package/build/components/Window/Window.js +2 -2
  104. package/build/components/Window/style.d.ts +1 -0
  105. package/build/components/Window/style.js +1 -1
  106. package/build/components/index.d.ts +8 -0
  107. package/build/components/index.js +8 -0
  108. package/build/constants/apps.d.ts +41 -0
  109. package/build/constants/apps.js +19 -2
  110. package/build/constants/chips/index.d.ts +1 -0
  111. package/build/constants/chips/index.js +1 -0
  112. package/build/{components/StatusChip/constants.d.ts → constants/chips/statusChips.d.ts} +1 -1
  113. package/build/{components/StatusChip/constants.js → constants/chips/statusChips.js} +1 -1
  114. package/build/constants/index.d.ts +1 -0
  115. package/build/constants/index.js +1 -0
  116. package/build/constants/table/cell/authenticationsTableCellWidth.d.ts +1 -1
  117. package/build/constants/table/cell/authenticationsTableCellWidth.js +1 -1
  118. package/build/constants/table/cell/authorizationTableCellWidth.d.ts +4 -4
  119. package/build/constants/table/cell/authorizationTableCellWidth.js +4 -4
  120. package/build/constants/table/cell/chargeTableCellWidth.d.ts +3 -3
  121. package/build/constants/table/cell/chargeTableCellWidth.js +3 -3
  122. package/build/constants/table/cell/destinationsTableCellWidth.d.ts +3 -3
  123. package/build/constants/table/cell/destinationsTableCellWidth.js +3 -3
  124. package/build/constants/table/cell/merchantsTableCellWidth.d.ts +1 -1
  125. package/build/constants/table/cell/merchantsTableCellWidth.js +1 -1
  126. package/build/constants/table/cell/refundTableCellWidth.d.ts +3 -3
  127. package/build/constants/table/cell/refundTableCellWidth.js +3 -3
  128. package/build/types/apps.d.ts +50 -1
  129. package/build/types/table.d.ts +1 -1
  130. package/build/utils/color.d.ts +11 -0
  131. package/build/utils/color.js +27 -0
  132. package/build/utils/object.d.ts +1 -0
  133. package/build/utils/object.js +4 -3
  134. package/build/utils/table.d.ts +3 -6
  135. package/build/utils/table.js +6 -32
  136. package/package.json +29 -2
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" | "color" | "content" | "translate" | "value" | "list" | "form" | "slot" | "style" | "title" | "name" | "ref" | "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" | "children" | "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" | "size" | "multiple" | "autoComplete" | "readOnly" | "required" | "max" | "src" | "alt" | "formAction" | "formMethod" | "formNoValidate" | "formTarget" | "min" | "accept" | "capture" | "checked" | "formEncType" | "minLength"> & {
18
+ }, "width" | "height" | "hidden" | "type" | "color" | "content" | "translate" | "name" | "value" | "list" | "form" | "slot" | "style" | "title" | "ref" | "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" | "children" | "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" | "size" | "multiple" | "autoComplete" | "readOnly" | "required" | "max" | "src" | "alt" | "formAction" | "formMethod" | "formNoValidate" | "formTarget" | "min" | "accept" | "capture" | "checked" | "formEncType" | "minLength"> & {
19
19
  allowDecimals?: boolean | undefined;
20
20
  allowNegativeValue?: boolean | undefined;
21
21
  id?: string | undefined;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { StatusChipWithCopyProps } from '../StatusChipWithCopy';
3
+ export interface AmountStatusChipProps extends StatusChipWithCopyProps {
4
+ amount?: string;
5
+ currency?: string;
6
+ }
7
+ declare function AmountStatusChip({ amount, currency, ...rest }: AmountStatusChipProps): import("react/jsx-runtime").JSX.Element;
8
+ declare const _default: import("react").MemoExoticComponent<typeof AmountStatusChip>;
9
+ export default _default;
@@ -0,0 +1,19 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { memo } from 'react';
14
+ import { AmountLabel, StyledAmountStatusChip } from './style';
15
+ function AmountStatusChip(_a) {
16
+ var { amount, currency } = _a, rest = __rest(_a, ["amount", "currency"]);
17
+ return (_jsxs(StyledAmountStatusChip, Object.assign({ disableAnimation: true, expandDirection: "left" }, rest, { children: [currency && _jsx(AmountLabel, { children: currency }), amount] })));
18
+ }
19
+ export default memo(AmountStatusChip);
@@ -0,0 +1,3 @@
1
+ import AmountStatusChip from './AmountStatusChip';
2
+ export { type AmountStatusChipProps } from './AmountStatusChip';
3
+ export default AmountStatusChip;
@@ -0,0 +1,2 @@
1
+ import AmountStatusChip from './AmountStatusChip';
2
+ export default AmountStatusChip;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledAmountStatusChip: import("@emotion/styled").StyledComponent<import("../StatusChipWithCopy").StatusChipWithCopyProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
3
+ export declare const AmountLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -0,0 +1,13 @@
1
+ import { styled } from '@mui/material/styles';
2
+ import StatusChipWithCopy from '../StatusChipWithCopy';
3
+ export const StyledAmountStatusChip = styled(StatusChipWithCopy)(() => ({
4
+ backgroundColor: '#EFF1F2',
5
+ border: 'none',
6
+ display: 'flex',
7
+ alignItems: 'center',
8
+ justifyContent: 'center',
9
+ }));
10
+ export const AmountLabel = styled('span')(() => ({
11
+ display: 'flex',
12
+ alignItems: 'center',
13
+ }));
@@ -1,11 +1,16 @@
1
1
  import React from 'react';
2
- import { AppDetails, UserApp } from '../../types/index.js';
2
+ import { AppService } from '../../types/index.js';
3
3
  import { ServiceItemProps } from './ServiceItem';
4
4
  interface AppServicesProps extends Pick<ServiceItemProps, 'onClickServiceItem'> {
5
- appInfo: AppDetails;
6
- userApp?: UserApp;
7
- onChangeAppServiceCode?: (serviceCode: string) => void;
5
+ serviceCode: string;
6
+ services: AppService[];
7
+ isMaximized: boolean;
8
+ appCode: string;
9
+ dimensions: {
10
+ width: string | number;
11
+ };
12
+ onChangeServiceCode?: (serviceCode: string) => void;
8
13
  }
9
- declare function AppServices({ appInfo, userApp, onChangeAppServiceCode, onClickServiceItem }: AppServicesProps): import("react/jsx-runtime").JSX.Element;
14
+ declare function AppServices({ isMaximized, serviceCode, dimensions, appCode, services, onChangeServiceCode, onClickServiceItem, }: Readonly<AppServicesProps>): import("react/jsx-runtime").JSX.Element;
10
15
  declare const _default: React.MemoExoticComponent<typeof AppServices>;
11
16
  export default _default;
@@ -2,7 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { memo, useEffect, useRef, useState, useMemo } from 'react';
3
3
  import { Box } from '@mui/material';
4
4
  import { useTranslation } from 'react-i18next';
5
- import { useLocation } from 'react-router';
6
5
  import { StyledIconForDropDown, StyledMenuTitle, StyledOption, StyledSelect, StyledSelectComponent } from '../index.js';
7
6
  import { APP_CODES, blackHeadingDownArrow, blueHeadingDropdownArrow } from '../../constants/index.js';
8
7
  import { getNameText } from '../../utils/index.js';
@@ -11,21 +10,20 @@ import { Wrapper } from './style';
11
10
  const selectedIcon = (props) => {
12
11
  return (_jsx(StyledIconForDropDown, { src: props.className.includes('MuiSelect-iconOpen') ? blueHeadingDropdownArrow : blackHeadingDownArrow, alt: "dropdown" }));
13
12
  };
14
- function AppServices({ appInfo, userApp, onChangeAppServiceCode, onClickServiceItem }) {
13
+ function AppServices({ isMaximized, serviceCode, dimensions, appCode, services, onChangeServiceCode, onClickServiceItem, }) {
15
14
  const [initServicesWidth, setInitServicesWidth] = useState(0);
16
15
  const [isDropdown, setIsDropdown] = useState(false);
17
16
  const [selectedOption, setSelectedOption] = useState('');
18
17
  const servicesRef = useRef(null);
19
18
  const [openDropdown, setOpenDropdown] = React.useState(false);
20
- const pathname = useLocation();
21
19
  const { i18n } = useTranslation();
22
- const services = useMemo(() => {
23
- var _a, _b;
24
- if (appInfo.appCode === APP_CODES.account.code) {
25
- return (_a = userApp === null || userApp === void 0 ? void 0 : userApp.app_services.filter((service) => service.code === APP_CODES.account.services.account.code)) !== null && _a !== void 0 ? _a : [];
20
+ const servicesList = useMemo(() => {
21
+ var _a;
22
+ if (appCode === APP_CODES.account.code) {
23
+ return (_a = services.filter((service) => service.code === APP_CODES.account.services.account.code)) !== null && _a !== void 0 ? _a : [];
26
24
  }
27
- return (_b = userApp === null || userApp === void 0 ? void 0 : userApp.app_services) !== null && _b !== void 0 ? _b : [];
28
- }, [appInfo.appCode, userApp === null || userApp === void 0 ? void 0 : userApp.app_services]);
25
+ return services !== null && services !== void 0 ? services : [];
26
+ }, [appCode, services]);
29
27
  const handleChange = (event) => {
30
28
  setSelectedOption(event.target.value);
31
29
  };
@@ -34,8 +32,8 @@ function AppServices({ appInfo, userApp, onChangeAppServiceCode, onClickServiceI
34
32
  };
35
33
  const activeTabTitle = useMemo(() => {
36
34
  var _a, _b;
37
- return getNameText((_b = (_a = services.filter((service) => service.code.toLowerCase() === decodeURIComponent(appInfo.serviceCode).toLowerCase())) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.name, i18n.language);
38
- }, [pathname, appInfo.serviceCode]);
35
+ return getNameText((_b = (_a = servicesList.filter((service) => service.code.toLowerCase() === decodeURIComponent(serviceCode).toLowerCase())) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.name, i18n.language);
36
+ }, [servicesList, i18n.language, serviceCode]);
39
37
  useEffect(() => {
40
38
  setSelectedOption(activeTabTitle);
41
39
  }, [activeTabTitle]);
@@ -47,14 +45,14 @@ function AppServices({ appInfo, userApp, onChangeAppServiceCode, onClickServiceI
47
45
  setInitServicesWidth(((_a = servicesRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth) + iconSize + iconGap + iconMargin);
48
46
  }, []);
49
47
  useEffect(() => {
50
- setIsDropdown(Number(appInfo === null || appInfo === void 0 ? void 0 : appInfo.dimensions.width) < initServicesWidth + 10);
51
- }, [appInfo === null || appInfo === void 0 ? void 0 : appInfo.dimensions.width]);
52
- const navigateToService = (serviceCode) => {
53
- onChangeAppServiceCode === null || onChangeAppServiceCode === void 0 ? void 0 : onChangeAppServiceCode(serviceCode);
48
+ setIsDropdown(Number(dimensions.width) < initServicesWidth + 10);
49
+ }, [dimensions.width, initServicesWidth]);
50
+ const navigateToService = (newServiceCode) => {
51
+ onChangeServiceCode === null || onChangeServiceCode === void 0 ? void 0 : onChangeServiceCode(newServiceCode);
54
52
  setOpenDropdown(false);
55
53
  };
56
54
  const renderValue = (selected) => _jsx(StyledSelectComponent, { children: selected });
57
- return (_jsxs(Wrapper, Object.assign({ maximized: appInfo.isMaximized }, { children: [services.length && !isDropdown && (_jsx(Box, Object.assign({ ref: servicesRef, display: "flex", gap: "8px", flexDirection: "row", sx: { userSelect: 'none' } }, { children: services.map((service, idx) => (_jsx(ServiceItem, { appInfo: appInfo, onClickServiceItem: onClickServiceItem, navigateToMenuItem: navigateToService, name: getNameText(service.name, i18n.language) || '', code: service.code }, `service-item-${service.code}-${idx}`))) }))), services.length && isDropdown && (_jsx(StyledSelect, Object.assign({ open: openDropdown, onClick: handleOpenDropdown, displayEmpty: true, inputProps: { 'aria-label': 'Without label' }, MenuProps: {
55
+ return (_jsxs(Wrapper, Object.assign({ maximized: isMaximized }, { children: [!!services.length && !isDropdown && (_jsx(Box, Object.assign({ ref: servicesRef, display: "flex", gap: "8px", flexDirection: "row", sx: { userSelect: 'none' } }, { children: services.map((service, idx) => (_jsx(ServiceItem, { activeCode: serviceCode, onClickServiceItem: onClickServiceItem, navigateToMenuItem: navigateToService, name: getNameText(service.name, i18n.language) || '', code: service.code }, `service-item-${service.code}-${idx}`))) }))), !!services.length && isDropdown && (_jsx(StyledSelect, Object.assign({ open: openDropdown, onClick: handleOpenDropdown, displayEmpty: true, inputProps: { 'aria-label': 'Without label' }, MenuProps: {
58
56
  anchorOrigin: {
59
57
  vertical: 40,
60
58
  horizontal: 83,
@@ -74,7 +72,7 @@ function AppServices({ appInfo, userApp, onChangeAppServiceCode, onClickServiceI
74
72
  paddingTop: '0px !important',
75
73
  paddingBottom: '0px !important',
76
74
  },
77
- } }, { children: services.map((service) => {
75
+ } }, { children: services.map((service, idx) => {
78
76
  var _a;
79
77
  if (((_a = getNameText(service.name, i18n.language)) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.toLowerCase())) {
80
78
  return null;
@@ -83,7 +81,7 @@ function AppServices({ appInfo, userApp, onChangeAppServiceCode, onClickServiceI
83
81
  e.preventDefault();
84
82
  e.stopPropagation();
85
83
  navigateToService(service.code);
86
- } }, { children: _jsx(StyledMenuTitle, { children: getNameText(service.name, i18n.language) }) })));
84
+ } }, { children: _jsx(StyledMenuTitle, { children: getNameText(service.name, i18n.language) }) }), `option-${service.code}-${idx}`));
87
85
  }) })))] })));
88
86
  }
89
87
  export default memo(AppServices);
@@ -1,14 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { AppDetails } from '../../types/index.js';
3
2
  export interface ServiceItemProps {
4
- appInfo: AppDetails;
3
+ activeCode: string;
5
4
  isDropdown?: boolean;
6
5
  name: string;
7
6
  code: string;
8
- onDropdownClick?: () => void;
9
7
  navigateToMenuItem: (serviceCode: string) => void;
10
8
  onClickServiceItem?: (code: string) => void;
11
9
  }
12
- declare function ServiceItem({ isDropdown, name, code, appInfo, onDropdownClick, navigateToMenuItem, onClickServiceItem }: ServiceItemProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function ServiceItem({ isDropdown, name, code, activeCode, navigateToMenuItem, onClickServiceItem }: Readonly<ServiceItemProps>): import("react/jsx-runtime").JSX.Element;
13
11
  declare const _default: import("react").MemoExoticComponent<typeof ServiceItem>;
14
12
  export default _default;
@@ -5,7 +5,7 @@ import { DropdownMenu, Icon } from '../index.js';
5
5
  import { isInsightService } from '../../utils/index.js';
6
6
  import { homeIcon, newWindowIcon } from '../../constants/index.js';
7
7
  import { ServiceItemStyled } from './style';
8
- function ServiceItem({ isDropdown = false, name, code, appInfo, onDropdownClick, navigateToMenuItem, onClickServiceItem }) {
8
+ function ServiceItem({ isDropdown = false, name, code, activeCode, navigateToMenuItem, onClickServiceItem }) {
9
9
  const [anchorEl, setAnchorEl] = useState(null);
10
10
  const { t } = useTranslation();
11
11
  const open = Boolean(anchorEl);
@@ -13,7 +13,7 @@ function ServiceItem({ isDropdown = false, name, code, appInfo, onDropdownClick,
13
13
  setAnchorEl(null);
14
14
  };
15
15
  const isHomeService = isInsightService(code);
16
- return (_jsxs(_Fragment, { children: [_jsx(ServiceItemStyled, Object.assign({ isDropdown: isDropdown, className: appInfo.serviceCode.toLowerCase() === code.toLowerCase() ? 'active' : '', onClick: (e) => {
16
+ return (_jsxs(_Fragment, { children: [_jsx(ServiceItemStyled, Object.assign({ isDropdown: isDropdown, className: activeCode.toLowerCase() === code.toLowerCase() ? 'active' : '', onClick: (e) => {
17
17
  e.preventDefault();
18
18
  e.stopPropagation();
19
19
  navigateToMenuItem(code);
@@ -31,8 +31,6 @@ function ServiceItem({ isDropdown = false, name, code, appInfo, onDropdownClick,
31
31
  e.stopPropagation();
32
32
  onClickServiceItem === null || onClickServiceItem === void 0 ? void 0 : onClickServiceItem(code);
33
33
  handleClose();
34
- if (onDropdownClick)
35
- onDropdownClick();
36
34
  },
37
35
  },
38
36
  ] })] }));
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { DragControls } from 'framer-motion';
3
+ import { SxProps, Theme } from '@mui/material/styles';
4
+ import { AppService } from '../../types/index.js';
5
+ export interface AppServicesBarProps {
6
+ appCode: string;
7
+ serviceCode: string;
8
+ services: AppService[];
9
+ isMaximized: boolean;
10
+ dimensions: {
11
+ width: number | string;
12
+ };
13
+ ui: {
14
+ onStartDrag: DragControls['start'];
15
+ };
16
+ onChangeServiceCode: (serviceCode: string) => void;
17
+ onClickServiceItem: (code: string) => void;
18
+ sx?: SxProps<Theme>;
19
+ }
20
+ declare function AppServicesBar({ appCode, services, isMaximized, dimensions, serviceCode, ui: { onStartDrag }, onChangeServiceCode, onClickServiceItem, sx, }: Readonly<AppServicesBarProps>): import("react/jsx-runtime").JSX.Element | null;
21
+ declare const _default: import("react").MemoExoticComponent<typeof AppServicesBar>;
22
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { memo, useCallback, useState } from 'react';
3
+ import { AppServices } from '../index.js';
4
+ import { StyledAppHeaderWrapper } from '../Toolbar/style';
5
+ function AppServicesBar({ appCode, services, isMaximized, dimensions, serviceCode, ui: { onStartDrag }, onChangeServiceCode, onClickServiceItem, sx, }) {
6
+ const [isDragging, setIsDragging] = useState(false);
7
+ const onPointerDown = useCallback((e) => {
8
+ onStartDrag === null || onStartDrag === void 0 ? void 0 : onStartDrag(e);
9
+ setIsDragging(true);
10
+ }, [onStartDrag, setIsDragging]);
11
+ const onPointerUp = () => {
12
+ setIsDragging(false);
13
+ };
14
+ if (!appCode || !services.length)
15
+ return null;
16
+ return (_jsx(StyledAppHeaderWrapper, Object.assign({ id: "app-header-wrapper", onPointerDown: onPointerDown, onPointerUp: onPointerUp, isDragging: isDragging, sx: sx }, { children: _jsx(AppServices, { onClickServiceItem: onClickServiceItem, dimensions: { width: dimensions.width }, serviceCode: serviceCode, services: services, isMaximized: isMaximized, appCode: appCode, onChangeServiceCode: onChangeServiceCode }) })));
17
+ }
18
+ export default memo(AppServicesBar);
@@ -0,0 +1,3 @@
1
+ import AppServicesBar from './AppServicesBar';
2
+ export * from './AppServicesBar';
3
+ export default AppServicesBar;
@@ -0,0 +1,3 @@
1
+ import AppServicesBar from './AppServicesBar';
2
+ export * from './AppServicesBar';
3
+ export default AppServicesBar;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const AppContainerHeader: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,6 @@
1
+ import Box from '@mui/material/Box';
2
+ import { styled } from '@mui/material/styles';
3
+ export const AppContainerHeader = styled(Box)(() => ({
4
+ display: 'flex',
5
+ alignItems: 'center',
6
+ }));
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { AccountHeaderTitleProps } from './type';
3
- declare function AccountHeaderTitle({ title, onClose, onMaximize, maximized, id, onRequestClick, isSidebarExpanded, isHovered, onMouseHover, onMouseLeave, showSectionsButton, }: AccountHeaderTitleProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function AccountHeaderTitle({ title, onClose, onMaximize, maximized, id, onRequestClick, isSidebarExpanded, isHovered, onMouseHover, onMouseLeave, showSectionsButton, }: Readonly<AccountHeaderTitleProps>): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: import("react").MemoExoticComponent<typeof AccountHeaderTitle>;
5
5
  export default _default;
@@ -5,6 +5,6 @@ import { StyledHeaderWrapperStyled } from '../../../../../Toolbar/style';
5
5
  import { CloseIcon, ExpandButton, MaximizeIcon } from '../../../../../ToolbarIcon';
6
6
  import { teamWindowIcon } from '../../../../../../constants/index.js';
7
7
  function AccountHeaderTitle({ title, onClose, onMaximize, maximized = false, id, onRequestClick, isSidebarExpanded = false, isHovered = false, onMouseHover, onMouseLeave, showSectionsButton, }) {
8
- return (_jsx(StyledHeaderWrapperStyled, Object.assign({ id: id, "data-testid": "UserTitleBar", maximized: maximized || false, sandboxMode: false }, { children: _jsx(Toolbar, { onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, isHovered: isHovered, title: title, icon: teamWindowIcon, leftActions: _jsxs(_Fragment, { children: [_jsx(CloseIcon, { onClick: onClose }), _jsx(MaximizeIcon, { isMaximized: maximized, onClick: onMaximize }), showSectionsButton && (_jsx(ExpandButton, Object.assign({ onClick: onRequestClick, isExpanded: isSidebarExpanded, isHovered: isHovered }, { children: "Sections" })))] }) }) })));
8
+ return (_jsx(StyledHeaderWrapperStyled, Object.assign({ id: id, "data-testid": "UserTitleBar", maximized: maximized || false }, { children: _jsx(Toolbar, { onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, isHovered: isHovered, title: title, icon: teamWindowIcon, leftActions: _jsxs(_Fragment, { children: [_jsx(CloseIcon, { onClick: onClose }), _jsx(MaximizeIcon, { isMaximized: maximized, onClick: onMaximize }), showSectionsButton && (_jsx(ExpandButton, Object.assign({ onClick: onRequestClick, isExpanded: isSidebarExpanded, isHovered: isHovered }, { children: "Sections" })))] }) }) })));
9
9
  }
10
10
  export default memo(AccountHeaderTitle);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { AppWindowHeaderBaseProps } from './type';
3
- declare function AppWindowHeaderBase({ title, maximized, id, isHovered, onMouseHover, onMouseLeave, leftActions, sandboxMode, titleIconSrc, sx, ...rootProps }: AppWindowHeaderBaseProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function AppWindowHeaderBase({ title, maximized, id, isHovered, onMouseHover, onMouseLeave, leftActions, titleIconSrc, sx, ...rootProps }: AppWindowHeaderBaseProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: import("react").MemoExoticComponent<typeof AppWindowHeaderBase>;
5
5
  export default _default;
@@ -14,7 +14,7 @@ import { memo } from 'react';
14
14
  import Toolbar from '../../../Toolbar';
15
15
  import { StyledHeaderWrapperStyled } from '../../../Toolbar/style';
16
16
  function AppWindowHeaderBase(_a) {
17
- var { title, maximized = false, id, isHovered = false, onMouseHover, onMouseLeave, leftActions, sandboxMode = false, titleIconSrc, sx } = _a, rootProps = __rest(_a, ["title", "maximized", "id", "isHovered", "onMouseHover", "onMouseLeave", "leftActions", "sandboxMode", "titleIconSrc", "sx"]);
18
- return (_jsx(StyledHeaderWrapperStyled, Object.assign({ className: "header-wrapper", id: id, maximized: maximized || false, sandboxMode: sandboxMode, sx: sx }, rootProps, { children: _jsx(Toolbar, { onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, isHovered: isHovered, title: title || '', icon: titleIconSrc, leftActions: leftActions }) })));
17
+ var { title, maximized = false, id, isHovered = false, onMouseHover, onMouseLeave, leftActions, titleIconSrc, sx } = _a, rootProps = __rest(_a, ["title", "maximized", "id", "isHovered", "onMouseHover", "onMouseLeave", "leftActions", "titleIconSrc", "sx"]);
18
+ return (_jsx(StyledHeaderWrapperStyled, Object.assign({ className: "header-wrapper", id: id, maximized: maximized || false, sx: sx }, rootProps, { children: _jsx(Toolbar, { onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, isHovered: isHovered, title: title || '', icon: titleIconSrc, leftActions: leftActions }) })));
19
19
  }
20
20
  export default memo(AppWindowHeaderBase);
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { StatusChipWithCopyProps } from '../StatusChipWithCopy';
3
+ import { chipAuthenticationTypes } from './constants';
4
+ export interface AuthenticationTypeChipProps extends StatusChipWithCopyProps {
5
+ title: keyof typeof chipAuthenticationTypes;
6
+ }
7
+ declare function AuthenticationTypeChip({ title, ref, ...rest }: AuthenticationTypeChipProps): import("react/jsx-runtime").JSX.Element;
8
+ declare const _default: import("react").MemoExoticComponent<typeof AuthenticationTypeChip>;
9
+ export default _default;
@@ -0,0 +1,21 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { memo } from 'react';
14
+ import StatusChipWithCopy from '../StatusChipWithCopy';
15
+ import { chipAuthenticationTypes } from './constants';
16
+ function AuthenticationTypeChip(_a) {
17
+ var { title, ref } = _a, rest = __rest(_a, ["title", "ref"]);
18
+ const { text, styles } = chipAuthenticationTypes[title];
19
+ return (_jsx(StatusChipWithCopy, Object.assign({ chipStyles: styles, ref: ref }, rest, { children: text })));
20
+ }
21
+ export default memo(AuthenticationTypeChip);
@@ -0,0 +1,16 @@
1
+ export declare const chipAuthenticationTypes: {
2
+ '3DS': {
3
+ text: string;
4
+ };
5
+ 'Non-3DS': {
6
+ text: string;
7
+ styles: {
8
+ bgColor: string;
9
+ borderColor: string;
10
+ textColor: string;
11
+ };
12
+ };
13
+ 'Device Biometric': {
14
+ text: string;
15
+ };
16
+ };
@@ -0,0 +1,13 @@
1
+ import { emptyStatusChipColors } from '../../constants/index.js';
2
+ export const chipAuthenticationTypes = {
3
+ '3DS': {
4
+ text: '3DS',
5
+ },
6
+ 'Non-3DS': {
7
+ text: 'Non 3DS',
8
+ styles: Object.assign({}, emptyStatusChipColors),
9
+ },
10
+ 'Device Biometric': {
11
+ text: 'Biometric',
12
+ },
13
+ };
@@ -0,0 +1,3 @@
1
+ import AuthenticationTypeChip from './AuthenticationTypeChip';
2
+ export { type AuthenticationTypeChipProps } from './AuthenticationTypeChip';
3
+ export default AuthenticationTypeChip;
@@ -0,0 +1,2 @@
1
+ import AuthenticationTypeChip from './AuthenticationTypeChip';
2
+ export default AuthenticationTypeChip;
@@ -5,6 +5,9 @@ type ColorPickerProps = {
5
5
  onChange: (value: string) => void;
6
6
  onReset?: () => void;
7
7
  sx?: SxProps;
8
+ options?: {
9
+ hideReset?: boolean;
10
+ };
8
11
  };
9
- declare const ColorPicker: ({ id, value, onChange, onReset, sx }: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const ColorPicker: ({ id, value, onChange, onReset, sx, options }: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
10
13
  export default ColorPicker;
@@ -1,59 +1,26 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
2
  import { useCallback, useRef, useState } from 'react';
14
- import { RgbaColorPicker } from 'react-colorful';
15
- import { useTranslation } from 'react-i18next';
16
- import Color from 'color';
17
3
  import Box from '@mui/material/Box';
18
4
  import ClickAwayListener from '@mui/material/ClickAwayListener';
19
- import Divider from '@mui/material/Divider';
20
- import Popper from '@mui/material/Popper';
21
5
  import Stack from '@mui/material/Stack';
22
6
  import Typography from '@mui/material/Typography';
23
- import { CancelButton, ConfirmButton, Footer, StyledCloseButtonWrapper, StyledColorWidgetWrapper } from './style';
7
+ import { StyledCloseButtonWrapper } from './style';
24
8
  import { closeXIcon } from '../../constants/index.js';
25
- const hexa2Rgba = (value) => {
26
- const colorInstance = Color(value).rgb();
27
- const { r, g, b, alpha = 1 } = colorInstance.object();
28
- return {
29
- value: { r, g, b, alpha },
30
- stringified: `rgba(${r},${g},${b},${alpha})`,
31
- };
32
- };
33
- const rgba2Hexa = (value) => Color(value).hexa();
34
- const ColorPicker = ({ id, value = '#ffffff', onChange, onReset, sx }) => {
35
- const { t } = useTranslation();
9
+ import ColorPickerPanel from './ColorPickerPanel';
10
+ import { Popper } from '@mui/material';
11
+ const ColorPicker = ({ id, value = '#ffffff', onChange, onReset, sx, options }) => {
36
12
  const [anchorEl, setAnchorEl] = useState(null);
37
13
  const rootRef = useRef(null);
38
- const [color, setColor] = useState(() => {
39
- const _a = hexa2Rgba(value).value, { alpha: a } = _a, rest = __rest(_a, ["alpha"]);
40
- return Object.assign(Object.assign({}, rest), { a });
41
- });
42
14
  const handleOpen = useCallback(() => {
43
15
  setAnchorEl(rootRef.current);
44
- const _a = hexa2Rgba(value).value, { alpha: a } = _a, rest = __rest(_a, ["alpha"]);
45
- setColor(Object.assign(Object.assign({}, rest), { a }));
46
- }, [value]);
16
+ }, []);
47
17
  const handleCancel = useCallback(() => {
48
- const _a = hexa2Rgba(value).value, { alpha: a } = _a, rest = __rest(_a, ["alpha"]);
49
- setColor(Object.assign(Object.assign({}, rest), { a }));
50
18
  setAnchorEl(null);
51
- }, [value]);
52
- const handleConfirm = useCallback(() => {
53
- const { a: alpha } = color, rest = __rest(color, ["a"]);
54
- onChange(rgba2Hexa(Object.assign(Object.assign({}, rest), { alpha })));
19
+ }, []);
20
+ const handleConfirm = useCallback((newValue) => {
21
+ onChange(newValue);
55
22
  setAnchorEl(null);
56
- }, [onChange, color]);
57
- return (_jsx(ClickAwayListener, Object.assign({ onClickAway: () => setAnchorEl(null) }, { children: _jsxs(Stack, Object.assign({ ref: rootRef, bgcolor: "grey.400", borderRadius: "4px", p: "4px", pr: "12px", direction: "row", justifyContent: "space-between", spacing: 1, alignItems: "center", className: "color-picker" }, { children: [_jsxs(Stack, Object.assign({ sx: sx, direction: "row", spacing: 1, alignItems: "center", className: "color-picker__controls-wrapper" }, { children: [_jsx(Box, { borderRadius: "5px", width: 32, height: 32, sx: { backgroundColor: value }, className: "color-picker__viewer" }), _jsxs(Box, Object.assign({ className: "color-picker__actions-wrapper" }, { children: [_jsx(Typography, Object.assign({ className: "color-picker__label", fontWeight: 500, fontSize: 9, color: "text.primary", textTransform: "uppercase" }, { children: value })), _jsx(Typography, Object.assign({ className: "color-picker__edit-btn", role: "button", onClick: handleOpen, htmlFor: id, fontWeight: 500, fontSize: 9, color: "info.dark", component: "label", sx: { textDecoration: 'underline', cursor: 'pointer' } }, { children: "Edit" }))] }))] })), _jsx(StyledCloseButtonWrapper, Object.assign({ className: "color-picker__close-btn", type: "button", onClick: onReset }, { children: _jsx(Box, { component: "img", src: closeXIcon, width: 10, height: 10 }) })), _jsx(Popper, Object.assign({ anchorEl: anchorEl, open: !!anchorEl, placement: "top" }, { children: _jsxs(StyledColorWidgetWrapper, Object.assign({ className: "color-picker__widget" }, { children: [_jsx(RgbaColorPicker, { color: color, onChange: setColor }), _jsx(Divider, { sx: { my: '12px' } }), _jsxs(Footer, Object.assign({ className: "color-picker__widget-actions" }, { children: [_jsx(CancelButton, Object.assign({ className: "color-picker__widget-actions__cancel", onClick: handleCancel }, { children: t('cancel') })), _jsx(ConfirmButton, Object.assign({ className: "color-picker__widget-actions__confirm", onClick: handleConfirm }, { children: t('okay') }))] }))] })) }))] })) })));
23
+ }, [onChange]);
24
+ return (_jsx(ClickAwayListener, Object.assign({ onClickAway: () => setAnchorEl(null) }, { children: _jsxs(Stack, Object.assign({ ref: rootRef, bgcolor: "grey.400", borderRadius: "4px", p: "4px", pr: "12px", direction: "row", justifyContent: "space-between", spacing: 1, alignItems: "center", className: "color-picker", sx: sx }, { children: [_jsxs(Stack, Object.assign({ direction: "row", spacing: 1, alignItems: "center", className: "color-picker__controls-wrapper" }, { children: [_jsx(Box, { borderRadius: "5px", width: 32, height: 32, sx: { backgroundColor: value }, className: "color-picker__viewer" }), _jsxs(Box, Object.assign({ className: "color-picker__actions-wrapper" }, { children: [_jsx(Typography, Object.assign({ className: "color-picker__label", fontWeight: 500, fontSize: 9, color: "text.primary", textTransform: "uppercase" }, { children: value })), _jsx(Typography, Object.assign({ className: "color-picker__edit-btn", role: "button", onClick: handleOpen, htmlFor: id, fontWeight: 500, fontSize: 9, color: "info.dark", component: "label", sx: { textDecoration: 'underline', cursor: 'pointer' } }, { children: "Edit" }))] }))] })), !(options === null || options === void 0 ? void 0 : options.hideReset) ? (_jsx(StyledCloseButtonWrapper, Object.assign({ className: "color-picker__close-btn", type: "button", onClick: onReset }, { children: _jsx(Box, { component: "img", src: closeXIcon, width: 10, height: 10 }) }))) : (_jsx("div", {})), _jsx(Popper, Object.assign({ anchorEl: anchorEl, open: !!anchorEl, placement: "top" }, { children: _jsx(ColorPickerPanel, { initialValue: value, onCancel: handleCancel, onConfirm: handleConfirm }) }))] })) })));
58
25
  };
59
26
  export default ColorPicker;