@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.
Files changed (78) hide show
  1. package/AppBar/AppBar.d.ts +2 -2
  2. package/AppBar/AppBarBrand.d.ts +1 -1
  3. package/AppBar/AppBarMain.d.ts +1 -1
  4. package/AppBar/AppBarSupport.d.ts +1 -1
  5. package/Badge/BadgeContainer.d.ts +1 -1
  6. package/Button/Button.d.ts +1 -1
  7. package/Button/ButtonGroup.d.ts +1 -1
  8. package/Button/IconButton.d.ts +1 -1
  9. package/Button/index.d.ts +2 -2
  10. package/Button/typings.d.ts +1 -1
  11. package/Calendar/CalendarContext.d.ts +1 -1
  12. package/Calendar/useCalendarControlModifiers.d.ts +2 -2
  13. package/Form/FormMessage.d.ts +1 -1
  14. package/Form/typings.d.ts +1 -1
  15. package/Form/useAutoCompleteValueControl.d.ts +5 -5
  16. package/Form/useInputWithTagsModeValue.d.ts +1 -1
  17. package/Form/useSelectValueControl.d.ts +6 -6
  18. package/Menu/MenuDivider.d.ts +1 -1
  19. package/Message/Message.d.ts +1 -1
  20. package/Modal/ModalBody.d.ts +1 -1
  21. package/Modal/ModalFooter.d.ts +1 -1
  22. package/Navigation/Navigation.d.ts +2 -2
  23. package/Navigation/NavigationSubMenu.d.ts +7 -2
  24. package/Navigation/NavigationSubMenu.js +2 -2
  25. package/Notifier/typings.d.ts +1 -1
  26. package/Pagination/Pagination.d.ts +30 -3
  27. package/Pagination/Pagination.js +3 -2
  28. package/Pagination/PaginationItem.d.ts +1 -1
  29. package/Pagination/PaginationJumper.d.ts +1 -1
  30. package/Pagination/PaginationPageSize.d.ts +38 -0
  31. package/Pagination/PaginationPageSize.js +19 -0
  32. package/Pagination/index.d.ts +1 -0
  33. package/Pagination/index.js +1 -0
  34. package/Pagination/usePagination.js +1 -1
  35. package/Picker/usePickerValue.d.ts +1 -1
  36. package/Popper/Popper.d.ts +2 -2
  37. package/Select/AutoComplete.d.ts +3 -3
  38. package/Select/Select.d.ts +3 -3
  39. package/Select/SelectTrigger.d.ts +5 -5
  40. package/Select/SelectTrigger.js +4 -1
  41. package/Slider/Slider.d.ts +4 -4
  42. package/Table/Table.d.ts +6 -4
  43. package/Table/Table.js +13 -13
  44. package/Table/TableBodyRow.js +3 -3
  45. package/Table/TableContext.d.ts +5 -3
  46. package/Table/TableExpandedTable.js +1 -1
  47. package/Table/pagination/TablePagination.js +3 -2
  48. package/Table/sorting/useTableSorting.d.ts +1 -1
  49. package/Table/useTableScroll.d.ts +3 -0
  50. package/Tabs/Tabs.d.ts +1 -1
  51. package/TextField/TextField.js +4 -1
  52. package/Transition/Fade.d.ts +1 -1
  53. package/Transition/SlideFade.d.ts +1 -1
  54. package/Transition/Transition.d.ts +6 -6
  55. package/Transition/Zoom.d.ts +1 -1
  56. package/Tree/TreeNode.d.ts +1 -1
  57. package/Tree/TreeNodeList.d.ts +1 -1
  58. package/Tree/typings.d.ts +7 -7
  59. package/Typography/Typography.d.ts +2 -2
  60. package/Typography/index.d.ts +1 -1
  61. package/Upload/UploadPicture.d.ts +1 -1
  62. package/Upload/UploadPictureBlock.d.ts +1 -0
  63. package/Upload/UploadPictureBlock.js +2 -2
  64. package/Upload/UploadPictureWall.d.ts +7 -2
  65. package/Upload/UploadPictureWall.js +2 -2
  66. package/Upload/UploadPictureWallItem.d.ts +1 -0
  67. package/Upload/UploadPictureWallItem.js +2 -2
  68. package/hooks/useClickAway.d.ts +3 -3
  69. package/hooks/useDocumentEscapeKeyDown.d.ts +1 -1
  70. package/hooks/useDocumentEvents.d.ts +1 -1
  71. package/hooks/useDocumentTabKeyDown.d.ts +1 -1
  72. package/index.d.ts +1 -1
  73. package/index.js +1 -0
  74. package/package.json +17 -17
  75. package/utils/composeRefs.d.ts +2 -2
  76. package/utils/general.d.ts +2 -2
  77. package/utils/getElement.d.ts +1 -1
  78. 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.11.2",
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.11.2",
35
- "@mezzanine-ui/icons": "^0.11.2",
36
- "@mezzanine-ui/system": "^0.11.2",
37
- "@popperjs/core": "^2.11.5",
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.1.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.2",
43
- "tslib": "^2.1.0"
42
+ "react-transition-group": "^4.4.5",
43
+ "tslib": "^2.4.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@storybook/react": "^6.5.9",
47
- "@testing-library/react": "^13.2.0",
48
- "@testing-library/react-hooks": "^8.0.0",
49
- "@types/lodash": "^4.14.182",
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.14",
52
- "@types/react-dom": "^18.0.5",
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.6.4",
55
- "dayjs": "^1.11.3",
54
+ "chromatic": "^6.11.4",
55
+ "dayjs": "^1.11.6",
56
56
  "lodash": "^4.17.21",
57
- "moment": "^2.29.3",
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"
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'react';
2
- export declare type ComposableRef<T> = Ref<T> | null | undefined;
3
- export declare type ComposedRef<T> = Extract<Ref<T>, (...args: any[]) => any>;
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.
@@ -1,8 +1,8 @@
1
- export declare type PickRenameMulti<T, R extends {
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 declare type ExtendedProperties<T> = {
6
+ export type ExtendedProperties<T> = {
7
7
  [P in keyof T]: T[P];
8
8
  };
@@ -1,3 +1,3 @@
1
1
  import { RefObject } from 'react';
2
- export declare type ElementGetter = HTMLElement | (() => HTMLElement) | RefObject<HTMLElement | null> | null;
2
+ export type ElementGetter = HTMLElement | (() => HTMLElement) | RefObject<HTMLElement | null> | null;
3
3
  export declare function getElement(elementGetter?: ElementGetter): HTMLElement | null;
@@ -1,9 +1,9 @@
1
1
  import { ComponentPropsWithoutRef, DetailedHTMLProps, ElementType, JSXElementConstructor, SVGProps } from 'react';
2
- export declare type NativeElementTag = keyof JSX.IntrinsicElements;
3
- export declare type NativeElementPropsWithoutKeyAndRef<T extends NativeElementTag> = Omit<JSX.IntrinsicElements[T], 'key' | 'ref'>;
4
- export declare 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 declare type ComponentPropsWithoutKeyAndRef<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, 'key'>;
6
- export declare type ComponentOverridableForwardRefComponentPropsFactory<VC extends NativeElementTag | JSXElementConstructor<any>, C extends VC, P> = Omit<Omit<ComponentPropsWithoutKeyAndRef<C>, keyof P> & P, 'component'> & {
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
  */