@cleen/ui 0.1.112 → 0.1.114

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/index.d.ts CHANGED
@@ -2929,6 +2929,9 @@ interface SidebarItemConfig {
2929
2929
  badgeCount?: number | string;
2930
2930
  /** Optional divider below the item */
2931
2931
  withBottomDivider?: boolean;
2932
+ /**Additional CSS styles for the item */
2933
+ classNames?: SidebarItemProps['classNames'];
2934
+ styles?: SidebarItemProps['styles'];
2932
2935
  /** Any additional custom data */
2933
2936
  [key: string]: unknown;
2934
2937
  }
@@ -2945,7 +2948,19 @@ interface SidebarItemProps {
2945
2948
  /** Optional badge count to display on the item */
2946
2949
  countBadge?: number | string | null;
2947
2950
  /** Additional CSS classes */
2948
- className?: string;
2951
+ classNames?: {
2952
+ tooltip?: ComponentClassnames<TooltipProps>;
2953
+ icon?: string;
2954
+ container?: string;
2955
+ badge?: string;
2956
+ };
2957
+ /** Additional CSS styles */
2958
+ styles?: {
2959
+ tooltip?: ComponentStyles<TooltipProps>;
2960
+ icon?: CSSProperties;
2961
+ container?: CSSProperties;
2962
+ badge?: CSSProperties;
2963
+ };
2949
2964
  /** Custom icon render function */
2950
2965
  renderIcon?: (item: SidebarItemConfig, isActive: boolean) => ReactNode;
2951
2966
  }
@@ -2964,6 +2979,34 @@ interface SubmenuItem {
2964
2979
  /** Any additional custom data */
2965
2980
  [key: string]: unknown;
2966
2981
  }
2982
+ /** Props for the SubMenu component */
2983
+ interface SubMenuProps {
2984
+ items: SubmenuItem[];
2985
+ title: string;
2986
+ iconName?: IconName;
2987
+ iconSrc?: string;
2988
+ iconSize?: number;
2989
+ className?: string;
2990
+ classNames?: {
2991
+ container?: string;
2992
+ containerInner?: string;
2993
+ icon?: string;
2994
+ title?: string;
2995
+ chevron?: string;
2996
+ itemsContainer?: string;
2997
+ item?: string;
2998
+ };
2999
+ style?: CSSProperties;
3000
+ styles?: {
3001
+ container?: CSSProperties;
3002
+ containerInner?: CSSProperties;
3003
+ icon?: CSSProperties;
3004
+ title?: CSSProperties;
3005
+ chevron?: CSSProperties;
3006
+ itemsContainer?: CSSProperties;
3007
+ item?: CSSProperties;
3008
+ };
3009
+ }
2967
3010
  /**
2968
3011
  * Props for the DrawerContentTitle component
2969
3012
  */
@@ -2986,8 +3029,22 @@ interface DrawerContentTitleProps {
2986
3029
  onClick?: () => void;
2987
3030
  /** Additional CSS classes */
2988
3031
  className?: string;
2989
- /** Additional title CSS classes */
2990
- titleClassName?: string;
3032
+ classNames?: {
3033
+ container?: string;
3034
+ icon?: string;
3035
+ title?: string;
3036
+ badge?: ComponentClassnames<PillBadgeProps>;
3037
+ submenu?: ComponentClassnames<SubMenuProps>;
3038
+ };
3039
+ /** Additional CSS styles */
3040
+ style?: CSSProperties;
3041
+ styles?: {
3042
+ container?: CSSProperties;
3043
+ icon?: CSSProperties;
3044
+ title?: CSSProperties;
3045
+ badge?: ComponentStyles<PillBadgeProps>;
3046
+ submenu?: ComponentStyles<SubMenuProps>;
3047
+ };
2991
3048
  /** Whether this item is active */
2992
3049
  isActive?: boolean;
2993
3050
  }
@@ -3052,16 +3109,28 @@ interface SidebarProps {
3052
3109
  /** Additional CSS classes for the sections inside the component */
3053
3110
  classNames?: {
3054
3111
  navigation?: string;
3112
+ logo?: string;
3055
3113
  navigationItems?: string;
3114
+ upperNavigationItemsWrapper?: string;
3115
+ bottomNavigationItemsWrapper?: string;
3116
+ navigationItem?: SidebarItemProps['classNames'];
3056
3117
  drawer?: string;
3118
+ drawerContent?: string;
3119
+ drawerFooter?: string;
3057
3120
  };
3058
3121
  /** Additional inline styles for the sidebar container */
3059
3122
  style?: CSSProperties;
3060
3123
  /** Additional inline styles for the sections inside the component */
3061
3124
  styles?: {
3062
3125
  navigation?: CSSProperties;
3126
+ logo?: CSSProperties;
3063
3127
  navigationItems?: CSSProperties;
3128
+ upperNavigationItemsWrapper?: CSSProperties;
3129
+ bottomNavigationItemsWrapper?: CSSProperties;
3130
+ navigationItem?: SidebarItemProps['styles'];
3064
3131
  drawer?: CSSProperties;
3132
+ drawerContent?: CSSProperties;
3133
+ drawerFooter?: CSSProperties;
3065
3134
  };
3066
3135
  /** Custom render function for sidebar items */
3067
3136
  renderSidebarItem?: (item: SidebarItemConfig, isActive: boolean, onClick: (item: SidebarItemConfig) => void) => ReactNode;
@@ -3112,7 +3181,7 @@ declare function Sidebar({ navigationItems, bottomNavigationItems, drawerContent
3112
3181
  * />
3113
3182
  * ```
3114
3183
  */
3115
- declare function SidebarItem({ item, activeId, onClick, countBadge, className, renderIcon, }: SidebarItemProps): react_jsx_runtime.JSX.Element;
3184
+ declare function SidebarItem({ item, activeId, onClick, countBadge, classNames, styles, renderIcon, }: SidebarItemProps): react_jsx_runtime.JSX.Element;
3116
3185
 
3117
3186
  /**
3118
3187
  * DrawerContainer - Container for drawer content with a title header
@@ -3153,7 +3222,7 @@ declare function DrawerContainer({ children, title, className, renderHeader, }:
3153
3222
  * />
3154
3223
  * ```
3155
3224
  */
3156
- declare function DrawerContentTitle({ title, iconName, iconSrc, iconSize, badgeColor, badgeCount, submenu, onClick, className, titleClassName, isActive, }: DrawerContentTitleProps): react_jsx_runtime.JSX.Element;
3225
+ declare function DrawerContentTitle({ title, iconName, iconSrc, iconSize, badgeColor, badgeCount, submenu, onClick, isActive, className, classNames, style, styles, }: DrawerContentTitleProps): react_jsx_runtime.JSX.Element;
3157
3226
 
3158
3227
  type SkeletonRoundness = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
3159
3228
  interface SkeletonProps {