@paygreen/pgui 2.14.7 → 2.14.9

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.
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ButtonProps, DrawerContentProps, FlexProps, StackProps, TextProps } from '@chakra-ui/react';
3
3
  export type SideNavProps = {
4
- isMobileMenuOpen: boolean;
5
- onMobileMenuClose: () => void;
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ onToggle?: () => void;
7
+ breakpoint?: any[] | Partial<Record<string, any>>;
6
8
  } & FlexProps & DrawerContentProps;
7
9
  export type SideNavMenuItemProps = {
8
10
  isActive?: boolean;
@@ -10,7 +12,7 @@ export type SideNavMenuItemProps = {
10
12
  export type SideNavMenuProps = {
11
13
  textProps?: TextProps;
12
14
  } & StackProps;
13
- export declare const SideNav: ({ isMobileMenuOpen, onMobileMenuClose, children, ...props }: SideNavProps) => React.JSX.Element;
15
+ export declare const SideNav: ({ isOpen, onClose, onToggle, breakpoint, children, ...props }: SideNavProps) => React.JSX.Element;
14
16
  export declare const SideNavContainer: (props: StackProps) => React.JSX.Element;
15
17
  export declare const SideNavHeader: ({ children, ...rest }: FlexProps) => React.JSX.Element;
16
18
  export declare const SideNavBody: ({ children, ...rest }: StackProps) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
1
  export { chakraStyle } from './chakraStyle';
2
2
  export { reactDayPicker } from './reactDayPicker';
3
+ export { scrollbarStyles } from './scrollbarStyles';
@@ -1,10 +1,4 @@
1
- export declare const useCustomScrollbar: (options: {
2
- trackColorLight: string;
3
- trackColorDark: string;
4
- thumbColorLight: string;
5
- thumbColorDark: string;
6
- width?: string;
7
- }) => {
1
+ export declare const scrollbarStyles: () => {
8
2
  '&::-webkit-scrollbar': {
9
3
  width: string;
10
4
  borderRadius: string;
package/dist/index.d.ts CHANGED
@@ -315,8 +315,10 @@ declare const BottomBar: (props: FlexProps) => React.JSX.Element;
315
315
  declare const LayoutContainer: (props: FlexProps) => React.JSX.Element;
316
316
 
317
317
  type SideNavProps = {
318
- isMobileMenuOpen: boolean;
319
- onMobileMenuClose: () => void;
318
+ isOpen: boolean;
319
+ onClose: () => void;
320
+ onToggle?: () => void;
321
+ breakpoint?: any[] | Partial<Record<string, any>>;
320
322
  } & FlexProps & DrawerContentProps;
321
323
  type SideNavMenuItemProps = {
322
324
  isActive?: boolean;
@@ -324,7 +326,7 @@ type SideNavMenuItemProps = {
324
326
  type SideNavMenuProps = {
325
327
  textProps?: TextProps;
326
328
  } & StackProps;
327
- declare const SideNav: ({ isMobileMenuOpen, onMobileMenuClose, children, ...props }: SideNavProps) => React.JSX.Element;
329
+ declare const SideNav: ({ isOpen, onClose, onToggle, breakpoint, children, ...props }: SideNavProps) => React.JSX.Element;
328
330
  declare const SideNavContainer: (props: StackProps) => React.JSX.Element;
329
331
  declare const SideNavHeader: ({ children, ...rest }: FlexProps) => React.JSX.Element;
330
332
  declare const SideNavBody: ({ children, ...rest }: StackProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paygreen/pgui",
3
- "version": "2.14.7",
3
+ "version": "2.14.9",
4
4
  "description": "PGUI is the design system coming from Paygreen.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",