@pnkx-lib/ui 1.9.512 → 1.9.513

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.
@@ -343,7 +343,8 @@ const Header = ({
343
343
  valueSearch,
344
344
  onSearchChange,
345
345
  onSelect,
346
- hoverOpenMenu
346
+ hoverOpenMenu,
347
+ customItems
347
348
  }) => {
348
349
  return /* @__PURE__ */ jsx(
349
350
  Layout.Header,
@@ -370,7 +371,13 @@ const Header = ({
370
371
  onSelect
371
372
  }
372
373
  ),
373
- /* @__PURE__ */ jsx(UserInfoSection, { hoverOpenMenu })
374
+ /* @__PURE__ */ jsx(
375
+ UserInfoSection,
376
+ {
377
+ hoverOpenMenu,
378
+ customItems
379
+ }
380
+ )
374
381
  ] })
375
382
  ] })
376
383
  }
@@ -599,7 +606,11 @@ const ContentArea = ({
599
606
  );
600
607
  };
601
608
 
602
- const Sidebar = ({ menu, children }) => {
609
+ const Sidebar = ({
610
+ menu,
611
+ children,
612
+ customItems
613
+ }) => {
603
614
  const [hoverOpenMenu, setHoverOpenMenu] = useState(false);
604
615
  const [valueSearch, setValueSearch] = useState("");
605
616
  const searchSidebar = useDebounce(valueSearch, 300);
@@ -644,7 +655,8 @@ const Sidebar = ({ menu, children }) => {
644
655
  valueSearch,
645
656
  onSearchChange: setValueSearch,
646
657
  onSelect: handleSelect,
647
- hoverOpenMenu
658
+ hoverOpenMenu,
659
+ customItems
648
660
  }
649
661
  ),
650
662
  /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.512",
4
+ "version": "1.9.513",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { MenuProps } from 'antd';
2
3
  interface HeaderProps {
3
4
  dataOption: any[];
4
5
  valueSearch: string;
@@ -7,6 +8,7 @@ interface HeaderProps {
7
8
  path: string;
8
9
  }) => void;
9
10
  hoverOpenMenu: boolean;
11
+ customItems?: MenuProps["items"];
10
12
  }
11
13
  export declare const Header: React.FC<HeaderProps>;
12
14
  export {};
@@ -1,3 +1,4 @@
1
+ import { MenuProps } from 'antd';
1
2
  import { ReactNode } from 'react';
2
3
  export type MenuType = {
3
4
  id: string;
@@ -14,6 +15,7 @@ export type MenuType = {
14
15
  export interface SidebarV3Props {
15
16
  menu: MenuType[];
16
17
  children: React.ReactNode;
18
+ customItems?: MenuProps["items"];
17
19
  }
18
20
  export interface SidebarState {
19
21
  hoverOpenMenu: boolean;