@candy.thieves/ui-kit-lumos 0.0.38 → 0.0.40

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.
@@ -4,5 +4,6 @@ export type ReadMoreProps = {
4
4
  expandLabel?: string;
5
5
  collapseLabel?: string;
6
6
  className?: string;
7
+ onExpandedChange?: (expanded: boolean) => void;
7
8
  };
8
- export declare const ReadMore: ({ text, maxLength, expandLabel, collapseLabel, className, }: ReadMoreProps) => import("react").JSX.Element;
9
+ export declare const ReadMore: ({ text, maxLength, expandLabel, collapseLabel, className, onExpandedChange, }: ReadMoreProps) => import("react").JSX.Element;
@@ -1,18 +1,20 @@
1
- import type { ReactNode } from 'react';
1
+ import type { ElementType, ReactNode } from 'react';
2
2
  export type SidebarItem = {
3
3
  activeIcon?: ReactNode;
4
4
  disabled?: boolean;
5
- href?: string;
5
+ href?: ((userId: string) => string) | string;
6
6
  icon: ReactNode;
7
7
  id: string;
8
8
  label: string;
9
9
  };
10
10
  type SidebarProps = {
11
+ userId?: string;
11
12
  activeId: string;
12
13
  items: SidebarItem[];
13
14
  logOutIcon: ReactNode;
14
15
  onLogout: () => void;
15
16
  onValueChange?: (id: string) => void;
17
+ linkTag?: ElementType;
16
18
  };
17
- export declare const Sidebar: ({ items, activeId, onValueChange, onLogout, logOutIcon }: SidebarProps) => import("react").JSX.Element;
19
+ export declare const Sidebar: ({ items, userId, activeId, onValueChange, onLogout, logOutIcon, linkTag: LinkTag, }: SidebarProps) => import("react").JSX.Element;
18
20
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@candy.thieves/ui-kit-lumos",
3
3
  "private": false,
4
- "version": "0.0.38",
4
+ "version": "0.0.40",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",