sinking-antd 1.1.0 → 1.1.2

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.mjs CHANGED
@@ -629,6 +629,7 @@ var Sider = React.memo((props) => {
629
629
  menuBottomBtnText = null,
630
630
  onMenuBottomBtnClick,
631
631
  classNames,
632
+ headerClassNames,
632
633
  layout = "inline",
633
634
  theme: theme2 = "light"
634
635
  } = props;
@@ -706,7 +707,7 @@ var Sider = React.memo((props) => {
706
707
  const handleLogoClick = useCallback(() => {
707
708
  onLogoClick?.();
708
709
  }, [onLogoClick]);
709
- return /* @__PURE__ */ jsx(Fragment, { children: layout === "inline" ? /* @__PURE__ */ jsxs(Layout, { className: cx(left, getColor), children: [
710
+ return /* @__PURE__ */ jsx(Fragment, { children: layout === "inline" ? /* @__PURE__ */ jsxs(Layout, { className: cx(left, getColor, headerClassNames), children: [
710
711
  /* @__PURE__ */ jsxs(Layout.Header, { className: cx(menuTop, getColor), onClick: handleLogoClick, children: [
711
712
  (mobile || !mobile && !collapsed) && unCollapsedLogo?.(!token?.isDarkMode),
712
713
  !mobile && collapsed && collapsedLogo?.(token?.isDarkMode)
@@ -875,11 +876,13 @@ var useLayoutStyles = createStyles(({ isDarkMode, token, css, responsive }) => {
875
876
  var SinKing = forwardRef((props, ref) => {
876
877
  let {
877
878
  loading = false,
879
+ rootClassName,
878
880
  breadCrumb = true,
879
881
  breadCrumbItems = [],
880
882
  hideBreadCrumb = false,
881
883
  menus,
882
884
  menuClassNames,
885
+ menuHeaderClassNames,
883
886
  pathname,
884
887
  matchedRoutes,
885
888
  onNavigate,
@@ -974,6 +977,7 @@ var SinKing = forwardRef((props, ref) => {
974
977
  sider_default,
975
978
  {
976
979
  classNames: menuClassNames,
980
+ headerClassNames: menuHeaderClassNames,
977
981
  layout: layoutMode,
978
982
  theme: theme2,
979
983
  collapsed,
@@ -1100,7 +1104,7 @@ var SinKing = forwardRef((props, ref) => {
1100
1104
  props?.footer
1101
1105
  ] }) })
1102
1106
  ] });
1103
- return /* @__PURE__ */ jsx(App, { children: loading && /* @__PURE__ */ jsx(Loading, {}) || (layout !== "horizontal" ? LayoutNormal : LayoutFlow) });
1107
+ return /* @__PURE__ */ jsx(App, { rootClassName, children: loading && /* @__PURE__ */ jsx(Loading, {}) || (layout !== "horizontal" ? LayoutNormal : LayoutFlow) });
1104
1108
  });
1105
1109
  var sinking_default = SinKing;
1106
1110
  var Layout4 = forwardRef((props, ref) => {
@@ -2032,7 +2036,9 @@ var ProModal = forwardRef((props, ref) => {
2032
2036
  okText,
2033
2037
  okType,
2034
2038
  width: adjustedWidth,
2035
- maskClosable: false,
2039
+ mask: {
2040
+ closable: false
2041
+ },
2036
2042
  ...modalProps,
2037
2043
  children
2038
2044
  }