@zydon/common 1.1.47 → 1.1.49

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/dist/App.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAuN9C,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAychB,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAuN9C,QAAA,MAAM,GAAG,EAAE,KAAK,CAAC,EAqdhB,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionHorizontal/NavItem.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,QAAA,MAAM,OAAO,sHAqEZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionHorizontal/NavItem.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,QAAA,MAAM,OAAO,sHAkGZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -4,6 +4,8 @@ type NavListRootProps = {
4
4
  data: NavListProps;
5
5
  depth: number;
6
6
  hasChild: boolean;
7
+ componentType?: 'link' | 'button';
8
+ onNavigate?(event: React.MouseEvent<HTMLButtonElement>, to: string): void;
7
9
  };
8
10
  declare const NavList: React.FC<NavListRootProps>;
9
11
  export default NavList;
@@ -1 +1 @@
1
- {"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionHorizontal/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAsBF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmFvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionHorizontal/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAClC,UAAU,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3E,CAAC;AA+BF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAgGvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionHorizontal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,eAAe,EAAgB,MAAM,UAAU,CAAC;;AA8CzD,wBAA0C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionHorizontal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,eAAe,EAAgB,MAAM,UAAU,CAAC;;AAyDzD,wBAA0C"}
@@ -1 +1 @@
1
- {"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionMini/NavItem.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,QAAA,MAAM,OAAO,sHAqFZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionMini/NavItem.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,QAAA,MAAM,OAAO,sHAkHZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -4,6 +4,8 @@ type NavListRootProps = {
4
4
  data: NavListProps;
5
5
  depth: number;
6
6
  hasChild: boolean;
7
+ componentType?: 'link' | 'button';
8
+ onNavigate?(event: React.MouseEvent<HTMLButtonElement>, to: string): void;
7
9
  };
8
10
  declare const NavList: React.FC<NavListRootProps>;
9
11
  export default NavList;
@@ -1 +1 @@
1
- {"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionMini/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAsBF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2EvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionMini/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAClC,UAAU,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3E,CAAC;AA+BF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmFvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionMini/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,eAAe,EAAgB,MAAM,UAAU,CAAC;;AAwDzD,wBAAoC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionMini/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,eAAe,EAAgB,MAAM,UAAU,CAAC;;AAyEzD,wBAAoC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionVertical/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAyFnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionVertical/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA4GnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -4,6 +4,8 @@ type NavListRootProps = {
4
4
  data: NavListProps;
5
5
  depth: number;
6
6
  hasChild: boolean;
7
+ componentType?: 'link' | 'button';
8
+ onNavigate?(event: React.MouseEvent<HTMLButtonElement>, to: string): void;
7
9
  };
8
10
  declare const NavList: React.FC<NavListRootProps>;
9
11
  export default NavList;
@@ -1 +1 @@
1
- {"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionVertical/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAuBxC,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwCvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionVertical/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAgCxC,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAClC,UAAU,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3E,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqDvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionVertical/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI3C,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6BjD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-section/NavSectionVertical/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI3C,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiCjD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { StackProps, ListItemButtonProps } from '@mui/material';
3
3
  export type INavItem = {
4
4
  item: NavListProps;
@@ -6,6 +6,8 @@ export type INavItem = {
6
6
  open?: boolean;
7
7
  active?: boolean;
8
8
  isExternalLink?: boolean;
9
+ componentType?: 'link' | 'button';
10
+ onNavigate?(event: React.MouseEvent<HTMLButtonElement>, to: string): void;
9
11
  };
10
12
  export type NavItemProps = INavItem & ListItemButtonProps;
11
13
  export type NavListProps = {
@@ -19,6 +21,8 @@ export type NavListProps = {
19
21
  children?: any;
20
22
  };
21
23
  export interface NavSectionProps extends StackProps {
24
+ componentType?: 'link' | 'button';
25
+ onNavigate?(event: React.MouseEvent<HTMLButtonElement>, to: string): void;
22
26
  data: {
23
27
  subheader: string;
24
28
  items: NavListProps[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/nav-section/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEhE,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE1D,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,YAAY,EAAE,CAAC;KACvB,EAAE,CAAC;CACL"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/nav-section/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,mBA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as On, k as Zs, w as Nt, l as z, m as B, t as Vt, o as Js, q as rt, u as St, v as Qs, x as ti, y as ei, z as ni, A as Nn, B as ne, C as Un, D as Gn, E as yt, P as si, F as ii, L as oi, S as ri, G as Kt, H as zt, I as ke, J as se, K as ai, M as $n, N as li, O as ci, Q as Kn, R as zn, T as ui, U as hi, V as fi, W as di, X as pi, Y as mi, Z as gi, _ as yi, $ as vi, a0 as xi } from "./index-d61f6142.js";
1
+ import { f as D, n as L, r as En, c as jn, i as K, a as jt, s as Xs, b as It, d as xt, e as In, g as Ot, h as it, p as ot, j as On, k as Zs, w as Nt, l as z, m as B, t as Vt, o as Js, q as rt, u as St, v as Qs, x as ti, y as ei, z as ni, A as Nn, B as ne, C as Un, D as Gn, E as yt, P as si, F as ii, L as oi, S as ri, G as Kt, H as zt, I as ke, J as se, K as ai, M as $n, N as li, O as ci, Q as Kn, R as zn, T as ui, U as hi, V as fi, W as di, X as pi, Y as mi, Z as gi, _ as yi, $ as vi, a0 as xi } from "./index-9c00c955.js";
2
2
  import Hn, { useContext as ie, useId as Pi, useEffect as Ti } from "react";
3
3
  import "@mui/material";
4
4
  import "@emotion/react";