hisd3-ui-kit 4.2.0 → 4.2.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.d.ts CHANGED
@@ -720,8 +720,21 @@ interface HISD3SidebarProps {
720
720
  headerExtra?: ReactNode;
721
721
  /** Extra items prepended to the account dropdown. */
722
722
  userMenuItems?: MenuProps["items"];
723
- /** Hide the collapse trigger button. */
723
+ /**
724
+ * Where the collapse control lives:
725
+ * "edge" (default) floats a round chevron on the sidebar's right edge, so it
726
+ * works even when the top bar is hidden; "header" puts a square button in the
727
+ * shell's own top bar; "none" renders neither (supply your own).
728
+ */
729
+ collapseTrigger?: "edge" | "header" | "none";
730
+ /** @deprecated use `collapseTrigger="none"`. */
724
731
  hideCollapseTrigger?: boolean;
732
+ /**
733
+ * Distance in px from the top of the shell to the centre of the edge
734
+ * trigger. Defaults to the middle of the top bar, so it lines up with the
735
+ * brand block; pass a larger number to move it down.
736
+ */
737
+ collapseTriggerOffset?: number;
725
738
  /** Width in px of the expanded sider. Default 220. */
726
739
  siderWidth?: number;
727
740
  /** Disable the built-in content padding wrapper and render children directly. */
@@ -821,10 +834,13 @@ interface HISD3NotificationButtonProps {
821
834
  seeAllLabel?: React.ReactNode;
822
835
  emptyText?: React.ReactNode;
823
836
  onOpenChange?: (open: boolean) => void;
837
+ /** Replace the bell glyph. Defaults to a solid bell. */
838
+ icon?: React.ReactNode;
824
839
  className?: string;
825
840
  }
826
841
  declare const HeaderIconButton: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
827
842
  $size?: number;
843
+ $open?: boolean;
828
844
  }>> & string;
829
845
  /** Bell button with an unread badge and a Facebook-style notifications panel. */
830
846
  declare const HISD3NotificationButton: React.FC<HISD3NotificationButtonProps>;