sinking-antd 1.1.1 → 1.1.3

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
@@ -55,7 +55,17 @@ var Icon = React.forwardRef(
55
55
  }
56
56
  if (type.startsWith("icon-")) {
57
57
  if (!IconfontIcon) {
58
- return /* @__PURE__ */ jsx("span", { ref, className: cx(styles.iconWrapper, className), style, onClick, ...rest, children: type });
58
+ return /* @__PURE__ */ jsx(
59
+ "span",
60
+ {
61
+ ref,
62
+ className: cx(styles.iconWrapper, className),
63
+ style,
64
+ onClick,
65
+ ...rest,
66
+ children: type
67
+ }
68
+ );
59
69
  }
60
70
  return /* @__PURE__ */ jsx(
61
71
  IconfontIcon,
@@ -74,7 +84,7 @@ var Icon = React.forwardRef(
74
84
  );
75
85
  var getAntdIconNames = () => {
76
86
  return Object.keys(AntdIcons).filter((key) => {
77
- return !key.startsWith("create") && !key.startsWith("set") && !key.startsWith("get") && key !== "default";
87
+ return !key.startsWith("create") && !key.startsWith("set") && !key.startsWith("get") && key !== "default" && key !== "IconProvider";
78
88
  });
79
89
  };
80
90
  var iconfontCache = null;
@@ -629,6 +639,7 @@ var Sider = React.memo((props) => {
629
639
  menuBottomBtnText = null,
630
640
  onMenuBottomBtnClick,
631
641
  classNames,
642
+ headerClassNames,
632
643
  layout = "inline",
633
644
  theme: theme2 = "light"
634
645
  } = props;
@@ -706,7 +717,7 @@ var Sider = React.memo((props) => {
706
717
  const handleLogoClick = useCallback(() => {
707
718
  onLogoClick?.();
708
719
  }, [onLogoClick]);
709
- return /* @__PURE__ */ jsx(Fragment, { children: layout === "inline" ? /* @__PURE__ */ jsxs(Layout, { className: cx(left, getColor), children: [
720
+ return /* @__PURE__ */ jsx(Fragment, { children: layout === "inline" ? /* @__PURE__ */ jsxs(Layout, { className: cx(left, getColor, headerClassNames), children: [
710
721
  /* @__PURE__ */ jsxs(Layout.Header, { className: cx(menuTop, getColor), onClick: handleLogoClick, children: [
711
722
  (mobile || !mobile && !collapsed) && unCollapsedLogo?.(!token?.isDarkMode),
712
723
  !mobile && collapsed && collapsedLogo?.(token?.isDarkMode)
@@ -875,11 +886,13 @@ var useLayoutStyles = createStyles(({ isDarkMode, token, css, responsive }) => {
875
886
  var SinKing = forwardRef((props, ref) => {
876
887
  let {
877
888
  loading = false,
889
+ rootClassName,
878
890
  breadCrumb = true,
879
891
  breadCrumbItems = [],
880
892
  hideBreadCrumb = false,
881
893
  menus,
882
894
  menuClassNames,
895
+ menuHeaderClassNames,
883
896
  pathname,
884
897
  matchedRoutes,
885
898
  onNavigate,
@@ -974,6 +987,7 @@ var SinKing = forwardRef((props, ref) => {
974
987
  sider_default,
975
988
  {
976
989
  classNames: menuClassNames,
990
+ headerClassNames: menuHeaderClassNames,
977
991
  layout: layoutMode,
978
992
  theme: theme2,
979
993
  collapsed,
@@ -1100,7 +1114,7 @@ var SinKing = forwardRef((props, ref) => {
1100
1114
  props?.footer
1101
1115
  ] }) })
1102
1116
  ] });
1103
- return /* @__PURE__ */ jsx(App, { children: loading && /* @__PURE__ */ jsx(Loading, {}) || (layout !== "horizontal" ? LayoutNormal : LayoutFlow) });
1117
+ return /* @__PURE__ */ jsx(App, { rootClassName, children: loading && /* @__PURE__ */ jsx(Loading, {}) || (layout !== "horizontal" ? LayoutNormal : LayoutFlow) });
1104
1118
  });
1105
1119
  var sinking_default = SinKing;
1106
1120
  var Layout4 = forwardRef((props, ref) => {