@pnkx-lib/ui 1.9.317 → 1.9.319

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.
package/es/ui/Heading.js CHANGED
@@ -1,12 +1,10 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { c as className } from '../chunks/index-mzHK7Za8.js';
3
- import { Breadcrumb } from './Breadcrumb.js';
4
- import { u as useBreadcrumb } from '../chunks/useBreadcrumb-Ddzk1fu2.js';
3
+ import { WrapperBreadcrumb } from './WrapperBreadcrumb.js';
5
4
 
6
5
  const Heading = (props) => {
7
6
  const { rightContent, children, noBreadcum, classNameWrapHeading, menu } = props;
8
7
  //! State
9
- const mappingBreadcrumb = useBreadcrumb(menu);
10
8
  //! Function
11
9
  //! Render
12
10
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -18,7 +16,7 @@ const Heading = (props) => {
18
16
  classNameWrapHeading
19
17
  ),
20
18
  children: [
21
- !noBreadcum && /* @__PURE__ */ jsx(Breadcrumb, { items: mappingBreadcrumb }),
19
+ !noBreadcum && /* @__PURE__ */ jsx(WrapperBreadcrumb, { menu }),
22
20
  rightContent
23
21
  ]
24
22
  }
@@ -0,0 +1,10 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { u as useBreadcrumb } from '../chunks/useBreadcrumb-Ddzk1fu2.js';
3
+ import { Breadcrumb } from './Breadcrumb.js';
4
+
5
+ const WrapperBreadcrumb = ({ menu }) => {
6
+ const mappingBreadcrumb = useBreadcrumb(menu);
7
+ return /* @__PURE__ */ jsx(Breadcrumb, { items: mappingBreadcrumb });
8
+ };
9
+
10
+ export { WrapperBreadcrumb };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.317",
4
+ "version": "1.9.319",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -0,0 +1,6 @@
1
+ import { MenuType } from './Sidebar';
2
+ interface WrapperBreadcrumbProps {
3
+ menu: MenuType[];
4
+ }
5
+ export declare const WrapperBreadcrumb: ({ menu }: WrapperBreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from '../components/ui/WrapperBreadcrumb'
2
+ export {}