@paygreen/pgui 2.2.0 → 2.3.0
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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/layout/SideNav/index.d.ts +5 -2
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/layout/SideNav/index.d.ts +5 -2
- package/dist/index.d.ts +6 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ButtonProps, DrawerContentProps, FlexProps, StackProps } from '@chakra-ui/react';
|
|
2
|
+
import { ButtonProps, DrawerContentProps, FlexProps, StackProps, TextProps } from '@chakra-ui/react';
|
|
3
3
|
export declare type SideNavProps = {
|
|
4
4
|
isMobileMenuOpen: boolean;
|
|
5
5
|
onMobileMenuClose: () => void;
|
|
@@ -7,10 +7,13 @@ export declare type SideNavProps = {
|
|
|
7
7
|
export declare type SideNavMenuItemProps = {
|
|
8
8
|
isActive?: boolean;
|
|
9
9
|
} & ButtonProps;
|
|
10
|
+
export declare type SideNavMenuProps = {
|
|
11
|
+
textProps?: TextProps;
|
|
12
|
+
} & StackProps;
|
|
10
13
|
export declare const SideNav: ({ isMobileMenuOpen, onMobileMenuClose, children, ...props }: SideNavProps) => JSX.Element;
|
|
11
14
|
export declare const SideNavContainer: (props: StackProps) => JSX.Element;
|
|
12
15
|
export declare const SideNavHeader: ({ children, ...rest }: FlexProps) => JSX.Element;
|
|
13
16
|
export declare const SideNavBody: ({ children, ...rest }: StackProps) => JSX.Element;
|
|
14
17
|
export declare const SideNavFooter: ({ children, ...rest }: FlexProps) => JSX.Element;
|
|
15
|
-
export declare const SideNavMenu: ({ title, children, ...rest }:
|
|
18
|
+
export declare const SideNavMenu: ({ title, children, textProps, ...rest }: SideNavMenuProps) => JSX.Element;
|
|
16
19
|
export declare const SideNavMenuItem: ({ isActive, children, ...rest }: SideNavMenuItemProps) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React, { FC, PropsWithChildren, ReactNode, Dispatch, SetStateAction, ReactComponentElement } from 'react';
|
|
3
3
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
4
|
-
import { IconButtonProps, FlexProps, HTMLChakraProps, MenuItemProps, AccordionProps, FormControlProps, PopoverProps, InputProps, StackProps, BoxProps, DrawerContentProps, ButtonProps } from '@chakra-ui/react';
|
|
4
|
+
import { IconButtonProps, FlexProps, HTMLChakraProps, MenuItemProps, AccordionProps, FormControlProps, PopoverProps, InputProps, StackProps, BoxProps, DrawerContentProps, ButtonProps, TextProps } from '@chakra-ui/react';
|
|
5
5
|
import { DayPickerProps, DaySelectionMode, DayPickerSingleProps } from 'react-day-picker';
|
|
6
6
|
import * as react_select_dist_declarations_src_useStateManager from 'react-select/dist/declarations/src/useStateManager';
|
|
7
7
|
import * as react_select from 'react-select';
|
|
@@ -272,12 +272,15 @@ declare type SideNavProps = {
|
|
|
272
272
|
declare type SideNavMenuItemProps = {
|
|
273
273
|
isActive?: boolean;
|
|
274
274
|
} & ButtonProps;
|
|
275
|
+
declare type SideNavMenuProps = {
|
|
276
|
+
textProps?: TextProps;
|
|
277
|
+
} & StackProps;
|
|
275
278
|
declare const SideNav: ({ isMobileMenuOpen, onMobileMenuClose, children, ...props }: SideNavProps) => JSX.Element;
|
|
276
279
|
declare const SideNavContainer: (props: StackProps) => JSX.Element;
|
|
277
280
|
declare const SideNavHeader: ({ children, ...rest }: FlexProps) => JSX.Element;
|
|
278
281
|
declare const SideNavBody: ({ children, ...rest }: StackProps) => JSX.Element;
|
|
279
282
|
declare const SideNavFooter: ({ children, ...rest }: FlexProps) => JSX.Element;
|
|
280
|
-
declare const SideNavMenu: ({ title, children, ...rest }:
|
|
283
|
+
declare const SideNavMenu: ({ title, children, textProps, ...rest }: SideNavMenuProps) => JSX.Element;
|
|
281
284
|
declare const SideNavMenuItem: ({ isActive, children, ...rest }: SideNavMenuItemProps) => JSX.Element;
|
|
282
285
|
|
|
283
286
|
declare type TopBarBackActionProps = {
|
|
@@ -295,4 +298,4 @@ declare const dateFormat = "dd/MM/yyyy";
|
|
|
295
298
|
|
|
296
299
|
declare const useIsMobile: (currentBreakpoint: string) => boolean;
|
|
297
300
|
|
|
298
|
-
export { ActionsButton, ActionsButtonProps, BottomBar, Card, ConfirmMenuItem, DataList, DataListAccordion, DataListAccordionButton, DataListAccordionIcon, DataListAccordionPanel, DataListCell, DataListCellProps, DataListContext, DataListFooter, DataListFooterProps, DataListHeader, DataListHeaderContext, DataListHeaderProps, DataListProps, DataListRow, DataListRowProps, DayPicker, FormGroup, FormGroupProps, InputDayPicker, InputDayPickerProps, LayoutContainer, MenuItem, Pagination, PaginationButtonFirstPage, PaginationButtonLastPage, PaginationButtonNextPage, PaginationButtonPrevPage, PaginationContext, PaginationContextValue, PaginationInfo, PaginationProps, SearchInput, Select, SelectProps, SideNav, SideNavBody, SideNavContainer, SideNavFooter, SideNavHeader, SideNavMenu, SideNavMenuItem, SideNavMenuItemProps, SideNavProps, SingleDayPickerProps, StyledMenuItemProps, TopBar, TopBarBackAction, TopBarBackActionProps, TopBarFirstElement, TopBarLastElement, dateFormat, getPaginationInfo, theme, useIsMobile };
|
|
301
|
+
export { ActionsButton, ActionsButtonProps, BottomBar, Card, ConfirmMenuItem, DataList, DataListAccordion, DataListAccordionButton, DataListAccordionIcon, DataListAccordionPanel, DataListCell, DataListCellProps, DataListContext, DataListFooter, DataListFooterProps, DataListHeader, DataListHeaderContext, DataListHeaderProps, DataListProps, DataListRow, DataListRowProps, DayPicker, FormGroup, FormGroupProps, InputDayPicker, InputDayPickerProps, LayoutContainer, MenuItem, Pagination, PaginationButtonFirstPage, PaginationButtonLastPage, PaginationButtonNextPage, PaginationButtonPrevPage, PaginationContext, PaginationContextValue, PaginationInfo, PaginationProps, SearchInput, Select, SelectProps, SideNav, SideNavBody, SideNavContainer, SideNavFooter, SideNavHeader, SideNavMenu, SideNavMenuItem, SideNavMenuItemProps, SideNavMenuProps, SideNavProps, SingleDayPickerProps, StyledMenuItemProps, TopBar, TopBarBackAction, TopBarBackActionProps, TopBarFirstElement, TopBarLastElement, dateFormat, getPaginationInfo, theme, useIsMobile };
|