@tap-payments/os-micro-frontend-shared 0.1.60-test.3 → 0.1.60-test.4

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.
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { UserSection } from '../../types/index.js';
2
+ import { Section } from './type';
3
3
  interface WindowSideBarProps {
4
- sections: UserSection[];
4
+ sections: Section[];
5
5
  isMaximized?: boolean;
6
- onClick?: (section: UserSection) => void;
6
+ onClick?: (section: Section) => void;
7
7
  activeSection?: string;
8
8
  }
9
9
  declare function WindowSideBar({ sections, isMaximized, onClick, activeSection }: WindowSideBarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import WindowSideBar from './WindowSideBar';
2
2
  export { TITLE_BAR_HEIGHT } from './constant';
3
+ export type { Section } from './type';
3
4
  export { SideBar, Content } from './style';
4
5
  export default WindowSideBar;
@@ -0,0 +1,10 @@
1
+ export interface Section {
2
+ id: string;
3
+ title: string;
4
+ icon?: string;
5
+ subSections?: {
6
+ id: string;
7
+ title: string;
8
+ icon?: string;
9
+ }[];
10
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.60-test.3",
5
- "testVersion": 3,
4
+ "version": "0.1.60-test.4",
5
+ "testVersion": 4,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",