@bcrumbs.net/bc-ui 0.0.16 → 0.0.17
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/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ButtonSize
|
|
2
|
+
import { ButtonSize } from '../constants';
|
|
3
|
+
import type { BCDropListOptionsType } from '../constants/Droplist';
|
|
3
4
|
import { SerializedStyles } from '@emotion/react';
|
|
4
5
|
export declare const DropListButtonStyle: SerializedStyles;
|
|
5
6
|
export declare const DropListMenuStyle: SerializedStyles;
|
|
@@ -3,5 +3,5 @@ export type Props = NavItem & {
|
|
|
3
3
|
onClick: (event: any, action?: string) => void;
|
|
4
4
|
active: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare const LeftNavButton: ({ link, label, onClick, active, icon, action, externalLink, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const LeftNavButton: ({ link, label, onClick, active, icon, action, externalLink, badge, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default LeftNavButton;
|
|
@@ -26,6 +26,10 @@ export type NavItem = {
|
|
|
26
26
|
tags?: string[];
|
|
27
27
|
description?: string;
|
|
28
28
|
className?: string;
|
|
29
|
+
/** Optional count/label shown under the nav icon (e.g. credit balance). */
|
|
30
|
+
badge?: string | number;
|
|
31
|
+
/** When false, this item never shows as selected even if its link matches the current path. */
|
|
32
|
+
matchActive?: boolean;
|
|
29
33
|
subMenu?: Array<SubMenuType>;
|
|
30
34
|
hide?: boolean;
|
|
31
35
|
/** Permission keys (string-backed `Permission` enum values) required to see this entry. Empty/undefined = visible to all. */
|