@mezzanine-ui/react 0.11.2 → 0.12.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/AppBar/AppBar.d.ts +2 -2
- package/AppBar/AppBarBrand.d.ts +1 -1
- package/AppBar/AppBarMain.d.ts +1 -1
- package/AppBar/AppBarSupport.d.ts +1 -1
- package/Badge/BadgeContainer.d.ts +1 -1
- package/Button/Button.d.ts +1 -1
- package/Button/ButtonGroup.d.ts +1 -1
- package/Button/IconButton.d.ts +1 -1
- package/Button/index.d.ts +2 -2
- package/Button/typings.d.ts +1 -1
- package/Calendar/CalendarContext.d.ts +1 -1
- package/Calendar/useCalendarControlModifiers.d.ts +2 -2
- package/Form/FormMessage.d.ts +1 -1
- package/Form/typings.d.ts +1 -1
- package/Form/useAutoCompleteValueControl.d.ts +5 -5
- package/Form/useInputWithTagsModeValue.d.ts +1 -1
- package/Form/useSelectValueControl.d.ts +6 -6
- package/Menu/MenuDivider.d.ts +1 -1
- package/Message/Message.d.ts +1 -1
- package/Modal/ModalBody.d.ts +1 -1
- package/Modal/ModalFooter.d.ts +1 -1
- package/Navigation/Navigation.d.ts +2 -2
- package/Navigation/NavigationSubMenu.d.ts +7 -2
- package/Navigation/NavigationSubMenu.js +2 -2
- package/Notifier/typings.d.ts +1 -1
- package/Pagination/Pagination.d.ts +30 -3
- package/Pagination/Pagination.js +3 -2
- package/Pagination/PaginationItem.d.ts +1 -1
- package/Pagination/PaginationJumper.d.ts +1 -1
- package/Pagination/PaginationPageSize.d.ts +38 -0
- package/Pagination/PaginationPageSize.js +19 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +1 -0
- package/Pagination/usePagination.js +1 -1
- package/Picker/usePickerValue.d.ts +1 -1
- package/Popper/Popper.d.ts +2 -2
- package/Select/AutoComplete.d.ts +3 -3
- package/Select/Select.d.ts +3 -3
- package/Select/SelectTrigger.d.ts +5 -5
- package/Select/SelectTrigger.js +4 -1
- package/Slider/Slider.d.ts +4 -4
- package/Table/Table.d.ts +6 -4
- package/Table/Table.js +13 -13
- package/Table/TableBodyRow.js +3 -3
- package/Table/TableContext.d.ts +5 -3
- package/Table/TableExpandedTable.js +1 -1
- package/Table/pagination/TablePagination.js +3 -2
- package/Table/sorting/useTableSorting.d.ts +1 -1
- package/Table/useTableScroll.d.ts +3 -0
- package/Tabs/Tabs.d.ts +1 -1
- package/TextField/TextField.js +4 -1
- package/Transition/Fade.d.ts +1 -1
- package/Transition/SlideFade.d.ts +1 -1
- package/Transition/Transition.d.ts +6 -6
- package/Transition/Zoom.d.ts +1 -1
- package/Tree/TreeNode.d.ts +1 -1
- package/Tree/TreeNodeList.d.ts +1 -1
- package/Tree/typings.d.ts +7 -7
- package/Typography/Typography.d.ts +2 -2
- package/Typography/index.d.ts +1 -1
- package/Upload/UploadPicture.d.ts +1 -1
- package/Upload/UploadPictureBlock.d.ts +1 -0
- package/Upload/UploadPictureBlock.js +2 -2
- package/Upload/UploadPictureWall.d.ts +7 -2
- package/Upload/UploadPictureWall.js +2 -2
- package/Upload/UploadPictureWallItem.d.ts +1 -0
- package/Upload/UploadPictureWallItem.js +2 -2
- package/hooks/useClickAway.d.ts +3 -3
- package/hooks/useDocumentEscapeKeyDown.d.ts +1 -1
- package/hooks/useDocumentEvents.d.ts +1 -1
- package/hooks/useDocumentTabKeyDown.d.ts +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -0
- package/package.json +17 -17
- package/utils/composeRefs.d.ts +2 -2
- package/utils/general.d.ts +2 -2
- package/utils/getElement.d.ts +1 -1
- package/utils/jsx-types.d.ts +5 -5
package/index.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export { CardProps, CardActionsProps, CardActions, default as Card, } from './Ca
|
|
|
53
53
|
export { EmptyProps, default as Empty, } from './Empty';
|
|
54
54
|
export { TableProps, TableRefreshProps, TableRefresh, default as Table, } from './Table';
|
|
55
55
|
export { TagSize, TagProps, default as Tag, } from './Tag';
|
|
56
|
-
export { usePagination, PaginationItemProps, PaginationItemType, PaginationItem, PaginationJumperProps, PaginationJumper, PaginationProps, default as Pagination, } from './Pagination';
|
|
56
|
+
export { usePagination, PaginationItemProps, PaginationItemType, PaginationItem, PaginationJumperProps, PaginationJumper, PaginationPageSizeProps, PaginationPageSize, PaginationProps, default as Pagination, } from './Pagination';
|
|
57
57
|
export { TreeNodeProp, TreeNodeData, TreeNodeEntity, TreeNodeEntities, TreeNodeRefsShape, TreeNodeRefs, TreeExpandControl, uniqueArray, toggleValue, toggleValueWithStatusControl, traverseTree, UseTreeExpandedValueProps, useTreeExpandedValue, GetTreeNodeEntitiesProps, getTreeNodeEntities, TreeNodeElementProps, TreeNodeProps, TreeNode, TreeNodeListElementProps, TreeNodeListProps, TreeNodeList, TreeProps, default as Tree, } from './Tree';
|
|
58
58
|
/**
|
|
59
59
|
* Data Entry
|
package/index.js
CHANGED
|
@@ -62,6 +62,7 @@ export { default as Tag } from './Tag/Tag.js';
|
|
|
62
62
|
export { usePagination } from './Pagination/usePagination.js';
|
|
63
63
|
export { default as PaginationItem } from './Pagination/PaginationItem.js';
|
|
64
64
|
export { default as PaginationJumper } from './Pagination/PaginationJumper.js';
|
|
65
|
+
export { default as PaginationPageSize } from './Pagination/PaginationPageSize.js';
|
|
65
66
|
export { default as Pagination } from './Pagination/Pagination.js';
|
|
66
67
|
export { toggleValue, toggleValueWithStatusControl, uniqueArray } from './Tree/toggleValue.js';
|
|
67
68
|
export { traverseTree } from './Tree/traverseTree.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mezzanine-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "React components for mezzanine-ui",
|
|
5
5
|
"author": "Mezzanine",
|
|
6
6
|
"repository": {
|
|
@@ -31,30 +31,30 @@
|
|
|
31
31
|
"react-dom": "^18.2.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@mezzanine-ui/core": "^0.
|
|
35
|
-
"@mezzanine-ui/icons": "^0.
|
|
36
|
-
"@mezzanine-ui/system": "^0.
|
|
37
|
-
"@popperjs/core": "^2.11.
|
|
34
|
+
"@mezzanine-ui/core": "^0.12.0",
|
|
35
|
+
"@mezzanine-ui/icons": "^0.12.0",
|
|
36
|
+
"@mezzanine-ui/system": "^0.12.0",
|
|
37
|
+
"@popperjs/core": "^2.11.6",
|
|
38
38
|
"@types/react-transition-group": "^4.4.5",
|
|
39
|
-
"clsx": "^1.
|
|
39
|
+
"clsx": "^1.2.1",
|
|
40
40
|
"lodash": "^4.17.21",
|
|
41
41
|
"react-popper": "^2.3.0",
|
|
42
|
-
"react-transition-group": "^4.4.
|
|
43
|
-
"tslib": "^2.1
|
|
42
|
+
"react-transition-group": "^4.4.5",
|
|
43
|
+
"tslib": "^2.4.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@storybook/react": "^6.5.
|
|
47
|
-
"@testing-library/react": "^13.
|
|
48
|
-
"@testing-library/react-hooks": "^8.0.
|
|
49
|
-
"@types/lodash": "^4.14.
|
|
46
|
+
"@storybook/react": "^6.5.13",
|
|
47
|
+
"@testing-library/react": "^13.4.0",
|
|
48
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
49
|
+
"@types/lodash": "^4.14.188",
|
|
50
50
|
"@types/moment": "^2.13.0",
|
|
51
|
-
"@types/react": "^18.0.
|
|
52
|
-
"@types/react-dom": "^18.0.
|
|
51
|
+
"@types/react": "^18.0.25",
|
|
52
|
+
"@types/react-dom": "^18.0.8",
|
|
53
53
|
"@types/react-test-renderer": "^18.0.0",
|
|
54
|
-
"chromatic": "^6.
|
|
55
|
-
"dayjs": "^1.11.
|
|
54
|
+
"chromatic": "^6.11.4",
|
|
55
|
+
"dayjs": "^1.11.6",
|
|
56
56
|
"lodash": "^4.17.21",
|
|
57
|
-
"moment": "^2.29.
|
|
57
|
+
"moment": "^2.29.4",
|
|
58
58
|
"react": "^18.2.0",
|
|
59
59
|
"react-dom": "^18.2.0",
|
|
60
60
|
"react-test-renderer": "^18.2.0"
|
package/utils/composeRefs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ComposableRef<T> = Ref<T> | null | undefined;
|
|
3
|
+
export type ComposedRef<T> = Extract<Ref<T>, (...args: any[]) => any>;
|
|
4
4
|
/**
|
|
5
5
|
* Compose all refs to single one.
|
|
6
6
|
* It's helpful if you want to use useRef in an forwardRef component.
|
package/utils/general.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PickRenameMulti<T, R extends {
|
|
2
2
|
[K in keyof R]: K extends keyof T ? PropertyKey : 'Error: key not in T';
|
|
3
3
|
}> = {
|
|
4
4
|
[P in keyof T as P extends keyof R ? R[P] : P]: T[P];
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ExtendedProperties<T> = {
|
|
7
7
|
[P in keyof T]: T[P];
|
|
8
8
|
};
|
package/utils/getElement.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type ElementGetter = HTMLElement | (() => HTMLElement) | RefObject<HTMLElement | null> | null;
|
|
3
3
|
export declare function getElement(elementGetter?: ElementGetter): HTMLElement | null;
|
package/utils/jsx-types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, DetailedHTMLProps, ElementType, JSXElementConstructor, SVGProps } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
2
|
+
export type NativeElementTag = keyof JSX.IntrinsicElements;
|
|
3
|
+
export type NativeElementPropsWithoutKeyAndRef<T extends NativeElementTag> = Omit<JSX.IntrinsicElements[T], 'key' | 'ref'>;
|
|
4
|
+
export type NativeElement<T extends NativeElementTag> = JSX.IntrinsicElements[T] extends DetailedHTMLProps<infer _A, infer E> ? E : JSX.IntrinsicElements[T] extends SVGProps<infer E> ? E : unknown;
|
|
5
|
+
export type ComponentPropsWithoutKeyAndRef<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, 'key'>;
|
|
6
|
+
export type ComponentOverridableForwardRefComponentPropsFactory<VC extends NativeElementTag | JSXElementConstructor<any>, C extends VC, P> = Omit<Omit<ComponentPropsWithoutKeyAndRef<C>, keyof P> & P, 'component'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Override the component used to render.
|
|
9
9
|
*/
|