framepexls-ui-lib 1.4.1 → 1.6.0

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.
@@ -11,7 +11,7 @@ type CheckboxProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
11
11
  className?: string;
12
12
  inputClassName?: string;
13
13
  };
14
- declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
14
+ declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
15
15
  label?: React__default.ReactNode;
16
16
  description?: React__default.ReactNode;
17
17
  error?: boolean;
@@ -11,7 +11,7 @@ type CheckboxProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
11
11
  className?: string;
12
12
  inputClassName?: string;
13
13
  };
14
- declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
14
+ declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
15
15
  label?: React__default.ReactNode;
16
16
  description?: React__default.ReactNode;
17
17
  error?: boolean;
@@ -48,6 +48,22 @@ type SidebarProps = {
48
48
  items: SidebarItem[];
49
49
  activeKey?: string;
50
50
  onNavigate: (key: string) => void;
51
+ navigationEditable?: boolean;
52
+ navigationPersistKey?: string;
53
+ navigationTitle?: string;
54
+ navigationDescription?: string;
55
+ navigationLabels?: {
56
+ customizeButton?: string;
57
+ addCategory?: string;
58
+ reset?: string;
59
+ cancel?: string;
60
+ save?: string;
61
+ categoryLabel?: string;
62
+ pageLabel?: string;
63
+ visibleLabel?: string;
64
+ searchPlaceholder?: string;
65
+ empty?: string;
66
+ };
51
67
  user?: SidebarUser;
52
68
  userMenuSlot?: React__default.ReactNode;
53
69
  sidebarSlot?: React__default.ReactNode;
@@ -87,6 +103,6 @@ type SidebarProps = {
87
103
  color?: "accent" | "slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
88
104
  };
89
105
  type SidebarColor = NonNullable<SidebarProps["color"]>;
90
- declare function Sidebar({ items, activeKey, onNavigate, user, userMenuSlot, sidebarSlot, sidebarSlotCollapsed, footerSlot, footerSlotCollapsed, onBrandClick, showBrand, collapsedKey, defaultCollapsed, onCollapsedChange, brandLogoSrc, brandInitials, brandTitle, brandSubtitle, workspaces, activeWorkspaceId, defaultWorkspaceId, workspacePersistKey, onWorkspaceChange, onManageWorkspaces, workspaceLabels, loading, loadingMinDurationMs, skeleton, quickActions, quickActionsTitle, quickActionsPersistKey, quickActionsMaxPinned, quickActionsEditable, quickActionsDefaultPinnedIds, color, }: SidebarProps): react_jsx_runtime.JSX.Element;
106
+ declare function Sidebar({ items, activeKey, onNavigate, navigationEditable, navigationPersistKey, navigationTitle, navigationDescription, navigationLabels, user, userMenuSlot, sidebarSlot, sidebarSlotCollapsed, footerSlot, footerSlotCollapsed, onBrandClick, showBrand, collapsedKey, defaultCollapsed, onCollapsedChange, brandLogoSrc, brandInitials, brandTitle, brandSubtitle, workspaces, activeWorkspaceId, defaultWorkspaceId, workspacePersistKey, onWorkspaceChange, onManageWorkspaces, workspaceLabels, loading, loadingMinDurationMs, skeleton, quickActions, quickActionsTitle, quickActionsPersistKey, quickActionsMaxPinned, quickActionsEditable, quickActionsDefaultPinnedIds, color, }: SidebarProps): react_jsx_runtime.JSX.Element;
91
107
 
92
108
  export { type SidebarItem, type SidebarProps, type SidebarQuickAction, type SidebarUser, type SidebarWorkspace, type SidebarWorkspaceLabels, Sidebar as default };
package/dist/Sidebar.d.ts CHANGED
@@ -48,6 +48,22 @@ type SidebarProps = {
48
48
  items: SidebarItem[];
49
49
  activeKey?: string;
50
50
  onNavigate: (key: string) => void;
51
+ navigationEditable?: boolean;
52
+ navigationPersistKey?: string;
53
+ navigationTitle?: string;
54
+ navigationDescription?: string;
55
+ navigationLabels?: {
56
+ customizeButton?: string;
57
+ addCategory?: string;
58
+ reset?: string;
59
+ cancel?: string;
60
+ save?: string;
61
+ categoryLabel?: string;
62
+ pageLabel?: string;
63
+ visibleLabel?: string;
64
+ searchPlaceholder?: string;
65
+ empty?: string;
66
+ };
51
67
  user?: SidebarUser;
52
68
  userMenuSlot?: React__default.ReactNode;
53
69
  sidebarSlot?: React__default.ReactNode;
@@ -87,6 +103,6 @@ type SidebarProps = {
87
103
  color?: "accent" | "slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
88
104
  };
89
105
  type SidebarColor = NonNullable<SidebarProps["color"]>;
90
- declare function Sidebar({ items, activeKey, onNavigate, user, userMenuSlot, sidebarSlot, sidebarSlotCollapsed, footerSlot, footerSlotCollapsed, onBrandClick, showBrand, collapsedKey, defaultCollapsed, onCollapsedChange, brandLogoSrc, brandInitials, brandTitle, brandSubtitle, workspaces, activeWorkspaceId, defaultWorkspaceId, workspacePersistKey, onWorkspaceChange, onManageWorkspaces, workspaceLabels, loading, loadingMinDurationMs, skeleton, quickActions, quickActionsTitle, quickActionsPersistKey, quickActionsMaxPinned, quickActionsEditable, quickActionsDefaultPinnedIds, color, }: SidebarProps): react_jsx_runtime.JSX.Element;
106
+ declare function Sidebar({ items, activeKey, onNavigate, navigationEditable, navigationPersistKey, navigationTitle, navigationDescription, navigationLabels, user, userMenuSlot, sidebarSlot, sidebarSlotCollapsed, footerSlot, footerSlotCollapsed, onBrandClick, showBrand, collapsedKey, defaultCollapsed, onCollapsedChange, brandLogoSrc, brandInitials, brandTitle, brandSubtitle, workspaces, activeWorkspaceId, defaultWorkspaceId, workspacePersistKey, onWorkspaceChange, onManageWorkspaces, workspaceLabels, loading, loadingMinDurationMs, skeleton, quickActions, quickActionsTitle, quickActionsPersistKey, quickActionsMaxPinned, quickActionsEditable, quickActionsDefaultPinnedIds, color, }: SidebarProps): react_jsx_runtime.JSX.Element;
91
107
 
92
108
  export { type SidebarItem, type SidebarProps, type SidebarQuickAction, type SidebarUser, type SidebarWorkspace, type SidebarWorkspaceLabels, Sidebar as default };