@tap-payments/os-micro-frontend-shared 0.0.70 → 0.0.73-pin-icon-v1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/Chip/style.d.ts +0 -1
  4. package/build/components/CountBadge/style.d.ts +0 -1
  5. package/build/components/Dialog/style.d.ts +0 -1
  6. package/build/components/FlippingCard/style.d.ts +0 -1
  7. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  8. package/build/components/JSONViewer/style.d.ts +0 -1
  9. package/build/components/SearchButton/SearchButton.js +4 -2
  10. package/build/components/SearchButton/styles.d.ts +1 -2
  11. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  12. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  13. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  14. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  15. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -2
  16. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  17. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  18. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  19. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  20. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  21. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  22. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  23. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  24. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  25. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  26. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  27. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  28. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  29. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  30. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  31. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  32. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  33. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +0 -1
  34. package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +1 -2
  35. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -2
  36. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  37. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  38. package/build/components/VirtualTable/SheetViewVirtualTable/example.d.ts +3 -0
  39. package/build/components/VirtualTable/SheetViewVirtualTable/example.js +138 -0
  40. package/build/components/VirtualTable/SheetViewVirtualTable/index.d.ts +2 -0
  41. package/build/components/VirtualTable/SheetViewVirtualTable/index.js +2 -0
  42. package/build/components/VirtualTable/SheetViewVirtualTable.d.ts +10 -0
  43. package/build/components/VirtualTable/SheetViewVirtualTable.js +146 -0
  44. package/build/components/VirtualTable/VirtualTable.d.ts +1 -1
  45. package/build/components/VirtualTable/VirtualTable.js +13 -12
  46. package/build/components/VirtualTable/components/SheetViewTableHeader.d.ts +24 -0
  47. package/build/components/VirtualTable/components/SheetViewTableHeader.js +106 -0
  48. package/build/components/VirtualTable/components/TableRow.js +1 -1
  49. package/build/components/VirtualTable/components/virtualScroll/ListItemWrapper.d.ts +1 -1
  50. package/build/components/VirtualTable/components/virtualScroll/ListItemWrapper.js +6 -3
  51. package/build/components/VirtualTable/components/virtualScroll/VirtualScrollList.d.ts +6 -5
  52. package/build/components/VirtualTable/components/virtualScroll/VirtualScrollList.js +7 -6
  53. package/build/components/VirtualTable/style.d.ts +3 -3
  54. package/build/components/VirtualTable/style.js +4 -4
  55. package/build/components/index.d.ts +1 -0
  56. package/build/components/index.js +1 -0
  57. package/build/playground/VTDemo.d.ts +1 -0
  58. package/build/playground/VTDemo.js +58 -0
  59. package/build/playground/index.d.ts +1 -0
  60. package/build/playground/index.js +1 -0
  61. package/package.json +129 -129
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Tap Payments
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tap Payments
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # os-micro-frontend-shared
2
-
3
- ## Publishing Workflow
4
-
5
- 1. Update version in package.json
6
- 2. Commit changes
7
- 3. Create and push a tag:
8
-
9
- ```bash
10
- npm version patch # or minor, major
11
- git push origin main --tags
12
- ```
1
+ # os-micro-frontend-shared
2
+
3
+ ## Publishing Workflow
4
+
5
+ 1. Update version in package.json
6
+ 2. Commit changes
7
+ 3. Create and push a tag:
8
+
9
+ ```bash
10
+ npm version patch # or minor, major
11
+ git push origin main --tags
12
+ ```
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { GetSourceAnimationFunction } from './type';
4
3
  export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
5
4
  variant?: import("./type").ChipVariant | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AgreementImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DialogWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const FOOTER_HEIGHT = 37;
4
3
  export declare const TITLE_BAR_HEIGHT = "32px";
5
4
  export declare const VIEWER_HEIGHT = 545;
@@ -38,8 +38,10 @@ function SearchButton(_a) {
38
38
  };
39
39
  const onKeyDown = (event) => {
40
40
  if (event.key === 'Enter') {
41
- onSearchChange === null || onSearchChange === void 0 ? void 0 : onSearchChange(event.currentTarget.value);
41
+ onSearchChange === null || onSearchChange === void 0 ? void 0 : onSearchChange(value);
42
42
  }
43
+ };
44
+ const onChange = (event) => {
43
45
  setValue(event.currentTarget.value);
44
46
  };
45
47
  return (_jsxs(Wrapper, { children: [_jsx(AnimatePresence, { children: isInputShown && (_jsxs(_Fragment, { children: [_jsx(StyledInput, { initial: {
@@ -50,6 +52,6 @@ function SearchButton(_a) {
50
52
  width: 30,
51
53
  border: `1px solid ${theme.palette.divider}`,
52
54
  boxShadow: 'none',
53
- }, placeholder: t('search') || '', onKeyDown: onKeyDown }), _jsx(Icon, { style: { right: 48 }, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, src: grayCloseIcon, alt: "close", onClick: onReset }), _jsx(Icon, { style: { right: 9 }, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, src: searchBlueIcon, alt: "search", onClick: onSubmit })] })) }), _jsx(StyledSearchButton, Object.assign({}, props, { variant: isInputShown ? 'active' : 'inActive', icon: "search", onClick: onSearchClick }))] }));
55
+ }, placeholder: t('search') || '', onKeyDown: onKeyDown, onChange: onChange }), _jsx(Icon, { style: { right: 48 }, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, src: grayCloseIcon, alt: "close", onClick: onReset }), _jsx(Icon, { style: { right: 9 }, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, src: searchBlueIcon, alt: "search", onClick: onSubmit })] })) }), _jsx(StyledSearchButton, Object.assign({}, props, { variant: isInputShown ? 'active' : 'inActive', icon: "search", onClick: onSearchClick }))] }));
54
56
  }
55
57
  export default memo(SearchButton);
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -555,9 +554,9 @@ export declare const Icon: import("@emotion/styled").StyledComponent<{
555
554
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
556
555
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
557
556
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
558
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
559
557
  src?: string | undefined;
560
558
  alt?: string | undefined;
559
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
561
560
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
562
561
  useMap?: string | undefined;
563
562
  loading?: "eager" | "lazy" | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
4
3
  export declare const ActionsIconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
5
4
  selected: boolean;
@@ -270,9 +269,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
270
269
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
271
270
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
272
271
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
273
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
274
272
  src?: string | undefined;
275
273
  alt?: string | undefined;
274
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
276
275
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
277
276
  useMap?: string | undefined;
278
277
  loading?: "eager" | "lazy" | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
3
  export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const collapsedViewIconVariants: {
4
3
  default: {
5
4
  duration: number;
@@ -274,9 +273,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
274
273
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
275
274
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
276
275
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
277
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
278
276
  src?: string | undefined;
279
277
  alt?: string | undefined;
278
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
280
279
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
281
280
  useMap?: string | undefined;
282
281
  loading?: "eager" | "lazy" | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -263,9 +262,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
263
262
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
264
263
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
265
264
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
266
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
267
265
  src?: string | undefined;
268
266
  alt?: string | undefined;
267
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
269
268
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
270
269
  useMap?: string | undefined;
271
270
  loading?: "eager" | "lazy" | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
3
  variant?: "Local" | "Global" | "Regional" | undefined;
5
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SheetViewVirtualTableExample: React.FC;
3
+ export default SheetViewVirtualTableExample;
@@ -0,0 +1,138 @@
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
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { useState, useMemo } from 'react';
12
+ import { Box } from '@mui/material';
13
+ import SheetViewVirtualTable from './index';
14
+ const sampleData = Array.from({ length: 1000 }, (_, index) => ({
15
+ id: `${index + 1}`,
16
+ name: `User ${index + 1}`,
17
+ email: `user${index + 1}@example.com`,
18
+ status: ['active', 'inactive', 'pending'][index % 3],
19
+ amount: Math.floor(Math.random() * 10000) / 100,
20
+ date: new Date(Date.now() - Math.random() * 10000000000).toLocaleDateString(),
21
+ country: ['USA', 'Canada', 'UK', 'Germany', 'France'][index % 5],
22
+ category: ['Premium', 'Basic', 'Enterprise'][index % 3],
23
+ }));
24
+ const SheetViewVirtualTableExample = () => {
25
+ const [pinnedColumns, setPinnedColumns] = useState(['id', 'name']);
26
+ const [columnsSorting, setColumnsSorting] = useState({});
27
+ const columns = useMemo(() => [
28
+ {
29
+ id: 'id',
30
+ header: 'ID',
31
+ width: '80px',
32
+ align: 'left',
33
+ sortable: true,
34
+ order: 1,
35
+ render: ({ value }) => _jsx("strong", { children: value }),
36
+ },
37
+ {
38
+ id: 'name',
39
+ header: 'Name',
40
+ width: '200px',
41
+ align: 'left',
42
+ sortable: true,
43
+ order: 2,
44
+ render: ({ value }) => _jsx("span", Object.assign({ style: { color: '#1976d2' } }, { children: value })),
45
+ },
46
+ {
47
+ id: 'email',
48
+ header: 'Email',
49
+ width: '250px',
50
+ align: 'left',
51
+ sortable: true,
52
+ order: 3,
53
+ },
54
+ {
55
+ id: 'status',
56
+ header: 'Status',
57
+ width: '120px',
58
+ align: 'center',
59
+ sortable: true,
60
+ order: 4,
61
+ render: ({ value }) => (_jsx(Box, Object.assign({ sx: {
62
+ px: 1,
63
+ py: 0.5,
64
+ borderRadius: 1,
65
+ fontSize: '0.75rem',
66
+ fontWeight: 'medium',
67
+ textTransform: 'uppercase',
68
+ backgroundColor: value === 'active' ? '#e8f5e8' : value === 'pending' ? '#fff3cd' : '#f8d7da',
69
+ color: value === 'active' ? '#2e7d32' : value === 'pending' ? '#856404' : '#721c24',
70
+ } }, { children: value }))),
71
+ },
72
+ {
73
+ id: 'amount',
74
+ header: 'Amount',
75
+ width: '120px',
76
+ align: 'right',
77
+ sortable: true,
78
+ order: 5,
79
+ format: ({ value }) => `$${value.toFixed(2)}`,
80
+ },
81
+ {
82
+ id: 'date',
83
+ header: 'Date',
84
+ width: '150px',
85
+ align: 'left',
86
+ sortable: true,
87
+ order: 6,
88
+ },
89
+ {
90
+ id: 'country',
91
+ header: 'Country',
92
+ width: '120px',
93
+ align: 'left',
94
+ sortable: true,
95
+ order: 7,
96
+ },
97
+ {
98
+ id: 'category',
99
+ header: 'Category',
100
+ width: '150px',
101
+ align: 'left',
102
+ sortable: true,
103
+ order: 8,
104
+ render: ({ value }) => (_jsx(Box, Object.assign({ sx: {
105
+ px: 1,
106
+ py: 0.5,
107
+ borderRadius: 1,
108
+ fontSize: '0.75rem',
109
+ backgroundColor: '#f5f5f5',
110
+ color: '#666',
111
+ } }, { children: value }))),
112
+ },
113
+ ], []);
114
+ const handleColumnPin = (columnId, isPinned) => {
115
+ console.log(`Column ${columnId} ${isPinned ? 'pinned' : 'unpinned'}`);
116
+ if (isPinned) {
117
+ setPinnedColumns((prev) => [...prev, columnId]);
118
+ }
119
+ else {
120
+ setPinnedColumns((prev) => prev.filter((id) => id !== columnId));
121
+ }
122
+ };
123
+ const handleColumnSort = (sorting) => {
124
+ setColumnsSorting(sorting);
125
+ console.log('Sorting changed:', sorting);
126
+ };
127
+ const handleRowClick = (row, index) => {
128
+ console.log('Row clicked:', { row, index });
129
+ };
130
+ return (_jsxs(Box, Object.assign({ sx: { height: '600px', width: '100%', p: 2 } }, { children: [_jsxs(Box, Object.assign({ sx: { mb: 2 } }, { children: [_jsx("h2", { children: "SheetViewVirtualTable Example" }), _jsx("p", { children: "This table demonstrates the pin functionality. Click the pin icon next to column headers to pin/unpin columns. Pinned columns will appear on the left side with a separator." }), _jsxs("p", { children: [_jsx("strong", { children: "Currently pinned columns:" }), " ", pinnedColumns.join(', ') || 'None'] })] })), _jsx(SheetViewVirtualTable, { columns: columns, rows: sampleData, showHeader: true, pinnable: true, pinnedColumns: pinnedColumns, onColumnPin: handleColumnPin, columnsSorting: columnsSorting, onColumnSort: handleColumnSort, rowProps: {
131
+ onRowClick: handleRowClick,
132
+ }, footerProps: {
133
+ totalCount: sampleData.length,
134
+ }, isLoading: false, error: null, triggerDataRefetch: () => __awaiter(void 0, void 0, void 0, function* () {
135
+ console.log('Data refetch triggered');
136
+ }), showBackgroundColor: true, areAllRowsLoaded: true, tableMode: "sheet", tableTitle: "Example Sheet View Table" })] })));
137
+ };
138
+ export default SheetViewVirtualTableExample;
@@ -0,0 +1,2 @@
1
+ import SheetViewVirtualTable from '../SheetViewVirtualTable';
2
+ export default SheetViewVirtualTable;
@@ -0,0 +1,2 @@
1
+ import SheetViewVirtualTable from '../SheetViewVirtualTable';
2
+ export default SheetViewVirtualTable;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { IVirtualTable } from '../../types/index.js';
3
+ interface ISheetViewVirtualTable extends Omit<IVirtualTable, 'isSheetView'> {
4
+ pinnable?: boolean;
5
+ onColumnPin?: (columnId: string, isPinned: boolean) => void;
6
+ pinnedColumns?: string[];
7
+ }
8
+ declare function SheetViewVirtualTable({ columns, rows, threshold, showHeader, headerProps, rowProps, footerProps, rowHeight, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, showBackgroundColor, areAllRowsLoaded, tableBodyStyles, tableMode, tableTitle, dragControls, pinnable, onColumnPin, pinnedColumns, }: Readonly<ISheetViewVirtualTable>): import("react/jsx-runtime").JSX.Element;
9
+ declare const _default: import("react").MemoExoticComponent<typeof SheetViewVirtualTable>;
10
+ export default _default;