lucent-ui 0.23.0 → 0.24.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.
- package/dist/index.cjs +60 -43
- package/dist/index.d.ts +70 -0
- package/dist/index.js +2792 -2191
- package/dist-server/src/components/molecules/NavMenu/NavMenu.manifest.js +247 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -913,6 +913,76 @@ export declare interface NavLinkProps {
|
|
|
913
913
|
style?: CSSProperties;
|
|
914
914
|
}
|
|
915
915
|
|
|
916
|
+
export declare function NavMenu({ children, orientation, inverse, size, hasIcons, style, 'aria-label': ariaLabel, }: NavMenuProps): JSX_2.Element;
|
|
917
|
+
|
|
918
|
+
export declare namespace NavMenu {
|
|
919
|
+
var Item: typeof NavMenuItem;
|
|
920
|
+
var Group: typeof NavMenuGroup;
|
|
921
|
+
var Sub: typeof NavMenuSub;
|
|
922
|
+
var Separator: typeof NavMenuSeparator;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export declare function NavMenuGroup({ children, label, defaultOpen, open, onOpenChange, collapsible: collapsibleProp, style, }: NavMenuGroupProps): JSX_2.Element;
|
|
926
|
+
|
|
927
|
+
export declare interface NavMenuGroupProps {
|
|
928
|
+
children: ReactNode;
|
|
929
|
+
/** Section header label. */
|
|
930
|
+
label?: ReactNode;
|
|
931
|
+
/** Whether this group starts open. Only applies to vertical orientation. */
|
|
932
|
+
defaultOpen?: boolean;
|
|
933
|
+
/** Controlled open state. */
|
|
934
|
+
open?: boolean;
|
|
935
|
+
/** Callback when the group open state changes. */
|
|
936
|
+
onOpenChange?: (open: boolean) => void;
|
|
937
|
+
/** Whether the group is collapsible. Defaults to `true` when a label is provided. */
|
|
938
|
+
collapsible?: boolean;
|
|
939
|
+
style?: CSSProperties;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
export declare function NavMenuItem({ children, href, isActive, icon, badge, disabled, onClick, as, style, }: NavMenuItemProps): JSX_2.Element;
|
|
943
|
+
|
|
944
|
+
export declare interface NavMenuItemProps {
|
|
945
|
+
children: ReactNode;
|
|
946
|
+
href?: string;
|
|
947
|
+
isActive?: boolean;
|
|
948
|
+
icon?: ReactNode;
|
|
949
|
+
badge?: ReactNode;
|
|
950
|
+
disabled?: boolean;
|
|
951
|
+
onClick?: MouseEventHandler;
|
|
952
|
+
/** Polymorphic root element. Defaults to `<a>`. Use e.g. `Link` from react-router. */
|
|
953
|
+
as?: React.ElementType;
|
|
954
|
+
style?: CSSProperties;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export declare interface NavMenuProps {
|
|
958
|
+
children: ReactNode;
|
|
959
|
+
/** Layout direction. Defaults to `"vertical"`. */
|
|
960
|
+
orientation?: 'vertical' | 'horizontal';
|
|
961
|
+
/** Uses surface background instead of accent for the active state. */
|
|
962
|
+
inverse?: boolean;
|
|
963
|
+
/** Size variant. `"sm"` for compact sidebar layouts. Defaults to `"md"`. */
|
|
964
|
+
size?: NavMenuSize;
|
|
965
|
+
/** Whether items use icons. Tightens left padding so group headers align with icons. */
|
|
966
|
+
hasIcons?: boolean;
|
|
967
|
+
style?: CSSProperties;
|
|
968
|
+
/** Accessible label for the `<nav>` element. */
|
|
969
|
+
'aria-label'?: string;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
export declare function NavMenuSeparator({ style }: NavMenuSeparatorProps): JSX_2.Element;
|
|
973
|
+
|
|
974
|
+
export declare interface NavMenuSeparatorProps {
|
|
975
|
+
style?: CSSProperties;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
declare type NavMenuSize = 'sm' | 'md' | 'lg';
|
|
979
|
+
|
|
980
|
+
export declare function NavMenuSub({ children }: NavMenuSubProps): JSX_2.Element;
|
|
981
|
+
|
|
982
|
+
export declare interface NavMenuSubProps {
|
|
983
|
+
children: ReactNode;
|
|
984
|
+
}
|
|
985
|
+
|
|
916
986
|
export declare const oceanPalette: ColorPalette;
|
|
917
987
|
|
|
918
988
|
export declare function PageLayout({ children, header, sidebar, sidebarWidth, headerHeight, sidebarCollapsed, rightSidebar, rightSidebarWidth, rightSidebarCollapsed, footer, footerHeight, chromeBackground, mainStyle, style, }: PageLayoutProps): JSX_2.Element;
|