@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.
- package/README.md +42 -50
- package/dist/cjs/index.js +65 -77
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/layout/SideNav/index.d.ts +5 -3
- package/dist/cjs/types/theme/rawStyle/index.d.ts +1 -0
- package/dist/cjs/types/{hooks/useCustomScrollbar.d.ts → theme/rawStyle/scrollbarStyles.d.ts} +1 -7
- package/dist/esm/index.js +66 -78
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/layout/SideNav/index.d.ts +5 -3
- package/dist/esm/types/theme/rawStyle/index.d.ts +1 -0
- package/dist/esm/types/{hooks/useCustomScrollbar.d.ts → theme/rawStyle/scrollbarStyles.d.ts} +1 -7
- package/dist/index.d.ts +5 -3
- package/package.json +1 -1
|
@@ -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
|
-
|
|
5
|
-
|
|
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: ({
|
|
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;
|
package/dist/esm/types/{hooks/useCustomScrollbar.d.ts → theme/rawStyle/scrollbarStyles.d.ts}
RENAMED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
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
|
-
|
|
319
|
-
|
|
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: ({
|
|
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;
|