Skip to content

V1.0.0-alpha.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@azouaoui-med azouaoui-med released this 27 Nov 14:03
· 75 commits to master since this release
  • Added rootStyles to all components
  • [Sidebar] Added backdropStyles
  • [Sidebar] Removed overlayColor prop
  • [Menu] Renamed renderMenuItemStyles to menuItemStyles which now is of type MenuItemStyles, the prop now provide a way to apply styles directly to MenuItem/SubMenu component and their children

Type definition:

type ElementStyles = CSSObject | ((params: MenuItemStylesParams) => CSSObject | undefined);

interface MenuItemStyles {
  root?: ElementStyles;
  button?: ElementStyles;
  label?: ElementStyles;
  prefix?: ElementStyles;
  suffix?: ElementStyles;
  icon?: ElementStyles;
  subMenuContent?: ElementStyles;
  SubMenuExpandIcon?: ElementStyles;
}
  • updated classnames, the following are the new names:

    • ps-sidebar-root
    • ps-sidebar-container
    • ps-sidebar-image
    • ps-sidebar-backdrop
    • ps-collapsed
    • ps-toggled
    • ps-rtl
    • ps-broken
    • ps-menu-root
    • ps-menuitem-root
    • ps-submenu-root
    • ps-menu-button
    • ps-menu-prefix
    • ps-menu-suffix
    • ps-menu-label
    • ps-menu-icon
    • ps-submenu-content
    • ps-submenu-expand-icon
    • ps-disabled
    • ps-active
    • ps-open
  • Added utility classes that can be used to reference used classes