@wso2/oxygen-ui 0.11.0 → 0.12.1
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.
|
@@ -39,11 +39,11 @@ export interface HeaderToggleProps {
|
|
|
39
39
|
/**
|
|
40
40
|
* HeaderToggle - Sidebar toggle button for the header.
|
|
41
41
|
*
|
|
42
|
-
* Displays an
|
|
42
|
+
* Displays an icon that indicates the current sidebar state
|
|
43
43
|
* and toggles between expanded/collapsed states.
|
|
44
44
|
*
|
|
45
45
|
* Custom icons can be provided via `expandIcon` and `collapseIcon` props.
|
|
46
|
-
*
|
|
46
|
+
* Defaults: `Menu` when collapsed (expand), `PanelLeftClose` when expanded (collapse).
|
|
47
47
|
*
|
|
48
48
|
* Theme tokens used:
|
|
49
49
|
* - `text.secondary` - Icon color
|
package/dist/index.js
CHANGED
|
@@ -419,7 +419,7 @@ var init_createOxygenTheme = __esm({
|
|
|
419
419
|
// package.json
|
|
420
420
|
var package_default = {
|
|
421
421
|
name: "@wso2/oxygen-ui",
|
|
422
|
-
version: "0.
|
|
422
|
+
version: "0.12.1",
|
|
423
423
|
description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
|
|
424
424
|
type: "module",
|
|
425
425
|
main: "./dist/index.js",
|
|
@@ -3490,7 +3490,7 @@ import * as React8 from "react";
|
|
|
3490
3490
|
import IconButton3 from "@mui/material/IconButton";
|
|
3491
3491
|
import Tooltip2 from "@mui/material/Tooltip";
|
|
3492
3492
|
import { styled as styled16 } from "@mui/material/styles";
|
|
3493
|
-
import { Menu } from "@wso2/oxygen-ui-icons-react";
|
|
3493
|
+
import { Menu, PanelLeftClose } from "@wso2/oxygen-ui-icons-react";
|
|
3494
3494
|
|
|
3495
3495
|
// src/components/AppShell/context.tsx
|
|
3496
3496
|
import * as React7 from "react";
|
|
@@ -3526,7 +3526,7 @@ var HeaderToggle = ({
|
|
|
3526
3526
|
const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
|
|
3527
3527
|
const onToggle = (_b = onToggleProp != null ? onToggleProp : appShellContext == null ? void 0 : appShellContext.actions.toggleSidebar) != null ? _b : (() => {
|
|
3528
3528
|
});
|
|
3529
|
-
return /* @__PURE__ */ jsx29(Tooltip2, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx29(HeaderToggleRoot, { onClick: onToggle, size: "small", sx, children: collapsed ? expandIcon || /* @__PURE__ */ jsx29(Menu, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx29(
|
|
3529
|
+
return /* @__PURE__ */ jsx29(Tooltip2, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx29(HeaderToggleRoot, { onClick: onToggle, size: "small", sx, children: collapsed ? expandIcon || /* @__PURE__ */ jsx29(Menu, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx29(PanelLeftClose, { size: 20 }) }) });
|
|
3530
3530
|
};
|
|
3531
3531
|
|
|
3532
3532
|
// src/components/Header/HeaderBrand.tsx
|
|
@@ -5433,7 +5433,8 @@ import { styled as styled56 } from "@mui/material/styles";
|
|
|
5433
5433
|
import { jsx as jsx72, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5434
5434
|
var StyledTrigger = styled56(IconButton6, {
|
|
5435
5435
|
name: "MuiUserMenu",
|
|
5436
|
-
slot: "Trigger"
|
|
5436
|
+
slot: "Trigger",
|
|
5437
|
+
shouldForwardProp: (prop) => prop !== "showName"
|
|
5437
5438
|
})(({ theme, showName }) => __spreadValues({
|
|
5438
5439
|
padding: theme.spacing(0.5),
|
|
5439
5440
|
gap: theme.spacing(1)
|