tcce-design-system-test 0.3.25 → 0.3.26

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.
@@ -768,6 +768,24 @@ export declare const LinkVariantStyles: {
768
768
  plain: RuleSet<object>;
769
769
  };
770
770
 
771
+ /**
772
+ * Renders a sidebar menu item with optional nested children, permissions, and navigation handling.
773
+ *
774
+ * @param item - The menu item data, including label, icon, href (internal), path (external), permissions, and optional children.
775
+ * @param userRoles - The current user's roles, used to determine permission to view the item.
776
+ * @param level - The nesting level of the menu item (default is 0).
777
+ * @param activePath - The current active navigation path, used to highlight the active item.
778
+ *
779
+ * @returns The rendered menu item, or `null` if the user does not have permission to view it.
780
+ *
781
+ * @remarks
782
+ * - Supports collapsing/expanding of nested menu items.
783
+ * - Handles permission checks for both the item and its children.
784
+ * - Integrates with sidebar collapse state and highlights the active path.
785
+ * - Internal navigation usa `href`; external usa `path` (URL completo provisto por `navigationConfig`).
786
+ */
787
+ export declare const MenuItem: default_2.FC<Props>;
788
+
771
789
  /**
772
790
  * Button to open sidebar on mobile devices.
773
791
  * @param $hidden - Whether the button is hidden.
@@ -881,6 +899,14 @@ export declare interface PinSpecificProps {
881
899
  onPinComplete?: (value: string) => void;
882
900
  }
883
901
 
902
+ declare interface Props {
903
+ item: NavigationItem;
904
+ userRoles: string[];
905
+ level?: number;
906
+ activePath?: string;
907
+ onNavigate?: (href: string) => void;
908
+ }
909
+
884
910
  export declare const RadioInput: ForwardRefExoticComponent<RadioInputProps & RefAttributes<HTMLInputElement>>;
885
911
 
886
912
  export declare const RadioInputDot: default_2.ForwardRefExoticComponent<RadioInputDotProps & default_2.RefAttributes<HTMLInputElement>>;
@@ -9544,7 +9544,13 @@ const Ks = T.div`
9544
9544
  transform: rotate(${({ $open: e }) => e ? "90deg" : "0deg"});
9545
9545
  pointer-events: none;
9546
9546
  transition: transform 0.3s ease-out;
9547
- `, vc = ({ item: e, userRoles: t, level: n = 0, activePath: r, onNavigate: o }) => {
9547
+ `, vc = ({
9548
+ item: e,
9549
+ userRoles: t,
9550
+ level: n = 0,
9551
+ activePath: r,
9552
+ onNavigate: o
9553
+ }) => {
9548
9554
  const [s, i] = ze(!1), { isCollapsed: a, setIsMobileOpen: c } = gc(), u = Fe(
9549
9555
  () => (e.children || []).filter((S) => Ys(t, S.permissions)),
9550
9556
  [e.children, t]
@@ -10921,6 +10927,7 @@ export {
10921
10927
  Cy as LinkDisabledStyles,
10922
10928
  ky as LinkSizeStyles,
10923
10929
  Ty as LinkVariantStyles,
10930
+ vc as MenuItem,
10924
10931
  Sy as MobileOpenBtn,
10925
10932
  xy as Nav,
10926
10933
  gy as Overlay,