@camunda/camunda-composite-components 0.15.2-rc.0 → 0.16.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/lib/esm/package.json
CHANGED
|
@@ -61,7 +61,7 @@ const C3NavigationSideBar = (props) => {
|
|
|
61
61
|
, {
|
|
62
62
|
// eslint-disable-next-line
|
|
63
63
|
// @ts-ignore
|
|
64
|
-
ref: setIconRef, "aria-label": `Open ${sideBar.ariaLabel}`, "aria-expanded": isOpen, "aria-controls": id, onClick: () => {
|
|
64
|
+
ref: setIconRef, "aria-label": sideBar.tooltip ?? `Open ${sideBar.ariaLabel}`, "aria-expanded": isOpen, "aria-controls": id, onClick: () => {
|
|
65
65
|
setIsOpen(!isOpen);
|
|
66
66
|
}, isActive: isOpen, tooltipAlignment: sideBar.type === "user" ? "end" : "center",
|
|
67
67
|
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
|
package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Notification } from "../../../api/notifications";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
export type C3NavigationSideBarBaseProps = {
|
|
5
5
|
ariaLabel?: string;
|
|
6
|
+
tooltip?: string;
|
|
6
7
|
isOpen?: boolean;
|
|
7
8
|
onOpen?: () => void;
|
|
8
9
|
closeOnClick?: boolean;
|
|
@@ -61,7 +62,7 @@ export type C3NavigationNotificationsSideBarProps = C3NavigationSideBarBaseProps
|
|
|
61
62
|
onLinkClick?: (meta: Notification["meta"]) => void;
|
|
62
63
|
};
|
|
63
64
|
type AppTeaserRouteProps = any;
|
|
64
|
-
export type C3NavigationAppBarProps = C3NavigationSideBarBaseProps & {
|
|
65
|
+
export type C3NavigationAppBarProps = Omit<C3NavigationSideBarBaseProps, "tooltip"> & {
|
|
65
66
|
type: "app";
|
|
66
67
|
appTeaserRouteProps?: {
|
|
67
68
|
operate?: AppTeaserRouteProps;
|