@mezzanine-ui/react 0.6.2 → 0.7.1

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 (146) hide show
  1. package/Accordion/Accordion.js +3 -2
  2. package/Accordion/AccordionDetails.js +3 -2
  3. package/Accordion/AccordionSummary.js +3 -2
  4. package/Alert/Alert.js +3 -2
  5. package/AppBar/AppBar.js +3 -2
  6. package/AppBar/AppBarBrand.js +3 -2
  7. package/AppBar/AppBarMain.js +3 -2
  8. package/AppBar/AppBarSupport.js +3 -2
  9. package/Badge/Badge.js +3 -2
  10. package/Badge/BadgeContainer.js +3 -2
  11. package/Button/Button.d.ts +1 -1
  12. package/Button/Button.js +3 -2
  13. package/Button/ButtonGroup.js +3 -2
  14. package/Button/IconButton.js +3 -2
  15. package/Button/index.js +2 -2
  16. package/Calendar/Calendar.js +3 -2
  17. package/Calendar/CalendarCell.js +1 -1
  18. package/Calendar/CalendarContext.js +1 -2
  19. package/Calendar/CalendarControls.js +1 -1
  20. package/Calendar/CalendarDayOfWeek.js +1 -1
  21. package/Calendar/CalendarDays.js +1 -1
  22. package/Calendar/CalendarMonths.js +1 -1
  23. package/Calendar/CalendarWeeks.js +1 -1
  24. package/Calendar/CalendarYears.js +1 -1
  25. package/Card/Card.js +3 -2
  26. package/Card/CardActions.js +3 -2
  27. package/Checkbox/CheckAll.js +3 -2
  28. package/Checkbox/Checkbox.js +3 -2
  29. package/Checkbox/CheckboxGroup.js +3 -2
  30. package/ConfirmActions/ConfirmActions.js +3 -2
  31. package/DatePicker/DatePicker.js +3 -2
  32. package/DatePicker/DatePickerCalendar.js +3 -2
  33. package/DateRangePicker/DateRangePicker.js +3 -2
  34. package/DateRangePicker/DateRangePickerCalendar.js +3 -2
  35. package/DateRangePicker/useDateRangePickerValue.d.ts +2 -2
  36. package/DateTimePicker/DateTimePicker.js +3 -2
  37. package/DateTimePicker/DateTimePickerPanel.js +3 -2
  38. package/Drawer/Drawer.js +3 -2
  39. package/Dropdown/Dropdown.js +3 -2
  40. package/Empty/Empty.js +3 -2
  41. package/Form/FormField.js +3 -2
  42. package/Form/FormLabel.js +3 -2
  43. package/Form/FormMessage.js +3 -2
  44. package/Form/useSelectValueControl.js +8 -2
  45. package/Icon/Icon.js +3 -2
  46. package/Input/Input.js +3 -2
  47. package/Loading/Loading.js +3 -2
  48. package/Menu/Menu.js +3 -2
  49. package/Menu/MenuDivider.js +3 -2
  50. package/Menu/MenuItem.js +3 -2
  51. package/Menu/MenuItemGroup.js +3 -2
  52. package/Message/Message.d.ts +8 -5
  53. package/Message/Message.js +29 -13
  54. package/Message/index.d.ts +1 -1
  55. package/Modal/Modal.js +3 -2
  56. package/Modal/ModalActions.js +3 -2
  57. package/Modal/ModalBody.js +3 -2
  58. package/Modal/ModalFooter.js +3 -2
  59. package/Modal/ModalHeader.js +3 -2
  60. package/Navigation/Navigation.js +3 -2
  61. package/Navigation/NavigationItem.js +3 -2
  62. package/Navigation/NavigationSubMenu.js +3 -2
  63. package/Notification/Notification.js +3 -2
  64. package/Notifier/NotifierManager.js +1 -1
  65. package/Overlay/Overlay.js +3 -2
  66. package/PageFooter/PageFooter.js +3 -2
  67. package/Pagination/Pagination.js +3 -2
  68. package/Pagination/PaginationItem.js +3 -2
  69. package/Pagination/PaginationJumper.js +3 -2
  70. package/Picker/PickerTrigger.js +3 -2
  71. package/Picker/RangePickerTrigger.js +3 -2
  72. package/Picker/usePickerInputValue.js +1 -2
  73. package/Picker/usePickerValue.d.ts +1 -1
  74. package/Picker/useRangePickerValue.d.ts +2 -2
  75. package/Popconfirm/Popconfirm.js +3 -2
  76. package/Popover/Popover.js +3 -2
  77. package/Popper/Popper.js +3 -2
  78. package/Portal/Portal.js +3 -2
  79. package/Progress/Progress.js +3 -2
  80. package/Radio/Radio.js +3 -2
  81. package/Radio/RadioGroup.js +3 -2
  82. package/Select/AutoComplete.d.ts +1 -1
  83. package/Select/AutoComplete.js +3 -2
  84. package/Select/Option.js +3 -2
  85. package/Select/Select.d.ts +1 -1
  86. package/Select/Select.js +3 -2
  87. package/Select/SelectTrigger.js +3 -2
  88. package/Select/TreeSelect.d.ts +1 -1
  89. package/Select/TreeSelect.js +3 -2
  90. package/Skeleton/Skeleton.js +3 -2
  91. package/Slider/Slider.js +20 -3
  92. package/Slider/useSlider.js +8 -6
  93. package/Stepper/Step.js +3 -2
  94. package/Stepper/Stepper.js +3 -2
  95. package/Switch/Switch.js +3 -2
  96. package/Table/Table.d.ts +51 -44
  97. package/Table/Table.js +42 -23
  98. package/Table/TableBody.js +10 -4
  99. package/Table/TableBodyRow.js +3 -2
  100. package/Table/TableCell.js +3 -2
  101. package/Table/TableHeader.js +3 -2
  102. package/Table/editable/TableEditRenderWrapper.js +1 -1
  103. package/Table/expandable/TableExpandable.js +3 -2
  104. package/Table/pagination/TablePagination.js +13 -14
  105. package/Table/pagination/useTablePagination.d.ts +5 -13
  106. package/Table/pagination/useTablePagination.js +3 -23
  107. package/Table/refresh/TableRefresh.js +3 -2
  108. package/Table/rowSelection/TableRowSelection.js +3 -2
  109. package/Table/sorting/TableSortingIcon.js +3 -2
  110. package/Table/useTableScroll.d.ts +4 -4
  111. package/Table/useTableScroll.js +1 -1
  112. package/Tabs/Tab.js +3 -2
  113. package/Tabs/TabPane.js +3 -2
  114. package/Tabs/Tabs.js +3 -2
  115. package/Tabs/useTabsOverflow.js +1 -1
  116. package/Tag/Tag.js +3 -2
  117. package/TextField/TextField.js +3 -2
  118. package/Textarea/Textarea.js +3 -2
  119. package/TimePanel/TimePanel.js +3 -2
  120. package/TimePanel/TimePanelAction.js +3 -2
  121. package/TimePanel/TimePanelColumn.js +3 -2
  122. package/TimePicker/TimePicker.js +3 -2
  123. package/TimePicker/TimePickerPanel.js +3 -2
  124. package/Tooltip/Tooltip.js +3 -2
  125. package/Transition/Collapse.js +3 -2
  126. package/Transition/Fade.js +3 -2
  127. package/Transition/Grow.js +3 -2
  128. package/Transition/SlideFade.js +3 -2
  129. package/Transition/Transition.d.ts +1 -1
  130. package/Transition/Transition.js +2 -2
  131. package/Transition/Zoom.js +3 -2
  132. package/Tree/Tree.js +3 -2
  133. package/Tree/TreeNode.js +3 -2
  134. package/Tree/TreeNodeList.js +3 -2
  135. package/Typography/Typography.d.ts +1 -1
  136. package/Typography/Typography.js +3 -2
  137. package/Upload/UploadButton.js +3 -2
  138. package/Upload/UploadInput.js +3 -2
  139. package/Upload/UploadResult.js +3 -2
  140. package/_internal/InputCheck/InputCheck.js +3 -2
  141. package/_internal/InputCheck/InputCheckGroup.js +3 -2
  142. package/_internal/InputTriggerPopper/InputTriggerPopper.js +3 -2
  143. package/index.d.ts +4 -2
  144. package/index.js +51 -49
  145. package/package.json +5 -5
  146. package/utils/{rename-types.d.ts → general.d.ts} +3 -0
@@ -1,8 +1,14 @@
1
- import { useState } from 'react';
1
+ import intersectionBy from 'lodash/intersectionBy';
2
+ import { useControlValueState } from './useControlValueState.js';
2
3
 
4
+ const equalityFn = (a, b) => (a.length === b.length && intersectionBy(a, b, 'id').length === a.length);
3
5
  function useSelectValueControl(props) {
4
6
  const { defaultValue, mode, onChange, onClear: onClearProp, onClose, value: valueProp, } = props;
5
- const [value, setValue] = useState((valueProp !== null && valueProp !== void 0 ? valueProp : defaultValue) || []);
7
+ const [value, setValue] = useControlValueState({
8
+ defaultValue: defaultValue || [],
9
+ equalityFn,
10
+ value: valueProp,
11
+ });
6
12
  return {
7
13
  value,
8
14
  onChange: (chooseOption) => {
package/Icon/Icon.js CHANGED
@@ -18,6 +18,7 @@ const Icon = forwardRef(function Icon(props, ref) {
18
18
  [iconClasses.color]: color,
19
19
  [iconClasses.spin]: spin,
20
20
  }, className), "data-icon-name": icon.name, style: style }, { children: jsx("svg", Object.assign({}, definition.svg, { focusable: false }, { children: jsx("path", Object.assign({}, definition.path), void 0) }), void 0) }), void 0));
21
- });
21
+ });
22
+ var Icon$1 = Icon;
22
23
 
23
- export default Icon;
24
+ export { Icon$1 as default };
package/Input/Input.js CHANGED
@@ -23,6 +23,7 @@ const Input = forwardRef(function Input(props, ref) {
23
23
  const composedInputRef = useComposeRefs([inputRefProp, inputRef]);
24
24
  const active = !!value;
25
25
  return (jsx(TextField, Object.assign({ ref: ref, active: active, className: cx(inputClasses.host, className), clearable: clearable, disabled: disabled, error: error, fullWidth: fullWidth, onClear: onClear, prefix: prefix, size: size, suffix: suffix }, { children: jsx("input", Object.assign({}, inputProps, { ref: composedInputRef, "aria-disabled": disabled, "aria-multiline": false, "aria-readonly": readOnly, "aria-required": required, disabled: disabled, onChange: onChange, placeholder: placeholder, readOnly: readOnly, required: required, value: value }), void 0) }), void 0));
26
- });
26
+ });
27
+ var Input$1 = Input;
27
28
 
28
- export default Input;
29
+ export { Input$1 as default };
@@ -23,6 +23,7 @@ const Loading = forwardRef(function Loading(props, ref) {
23
23
  }, className) }, { children: [jsx(Overlay, Object.assign({}, overlayProps, { container: hostRef, onSurface: true, open: loading }, { children: spinElement }), void 0), children] }), void 0));
24
24
  }
25
25
  return spinElement;
26
- });
26
+ });
27
+ var Loading$1 = Loading;
27
28
 
28
- export default Loading;
29
+ export { Loading$1 as default };
package/Menu/Menu.js CHANGED
@@ -17,6 +17,7 @@ const Menu = forwardRef(function Menu(props, ref) {
17
17
  ...styleProp,
18
18
  };
19
19
  return (jsx("ul", Object.assign({}, rest, { ref: ref, className: cx(menuClasses.host, menuClasses.size(size), className), role: role, style: style }, { children: children }), void 0));
20
- });
20
+ });
21
+ var Menu$1 = Menu;
21
22
 
22
- export default Menu;
23
+ export { Menu$1 as default };
@@ -9,6 +9,7 @@ import cx from 'clsx';
9
9
  const MenuDivider = forwardRef(function MenuDivider(props, ref) {
10
10
  const { className, ...rest } = props;
11
11
  return (jsx("hr", Object.assign({}, rest, { ref: ref, className: cx(menuDividerClasses.host, className) }), void 0));
12
- });
12
+ });
13
+ var MenuDivider$1 = MenuDivider;
13
14
 
14
- export default MenuDivider;
15
+ export { MenuDivider$1 as default };
package/Menu/MenuItem.js CHANGED
@@ -21,6 +21,7 @@ const MenuItem = forwardRef(function MenuItem(props, ref) {
21
21
  }
22
22
  }, onKeyDown: onKeyDown, role: role }, { children: [jsx("div", Object.assign({ className: menuItemClasses.label }, { children: children }), void 0),
23
23
  active && jsx(Icon, { className: menuItemClasses.activeIcon, icon: CheckIcon }, void 0)] }), void 0));
24
- });
24
+ });
25
+ var MenuItem$1 = MenuItem;
25
26
 
26
- export default MenuItem;
27
+ export { MenuItem$1 as default };
@@ -10,6 +10,7 @@ const MenuItemGroup = forwardRef(function MenuItemGroup(props, ref) {
10
10
  const { children, className, label, ...rest } = props;
11
11
  return (jsxs("li", Object.assign({ ref: ref }, rest, { className: cx(menuItemGroupClasses.host, className) }, { children: [jsx("span", Object.assign({ className: menuItemGroupClasses.label }, { children: label }), void 0),
12
12
  jsx("ul", Object.assign({ className: menuItemGroupClasses.items }, { children: children }), void 0)] }), void 0));
13
- });
13
+ });
14
+ var MenuItemGroup$1 = MenuItemGroup;
14
15
 
15
- export default MenuItemGroup;
16
+ export { MenuItemGroup$1 as default };
@@ -1,4 +1,5 @@
1
1
  import { MessageSeverity } from '@mezzanine-ui/core/message';
2
+ import { IconDefinition } from '@mezzanine-ui/icons';
2
3
  import { FC, Key } from 'react';
3
4
  import { Notifier, NotifierData, NotifierConfig } from '../Notifier';
4
5
  import { SlideFadeProps } from '../Transition';
@@ -11,23 +12,25 @@ export interface MessageData extends Omit<NotifierData, 'onClose'>, MessageConfi
11
12
  * @default 3000
12
13
  */
13
14
  duration?: NotifierData['duration'];
15
+ /**
16
+ * message icon prefix
17
+ */
18
+ icon?: IconDefinition;
14
19
  /**
15
20
  * The key of message.
16
21
  */
17
22
  reference?: Key;
18
23
  /**
19
24
  * The severity of the message.
20
- * @default info
21
25
  */
22
26
  severity?: MessageSeverity;
23
27
  }
24
- export interface Message extends FC<MessageData>, Notifier<MessageData, MessageConfigProps>, Record<MessageSeverity, (message: MessageData['children'], props?: Omit<MessageData, 'children' | 'severity'>) => Key> {
25
- }
28
+ export declare type MessageType = FC<MessageData> & Notifier<MessageData, MessageConfigProps> & (Record<string, (message: MessageData['children'], props?: Omit<MessageData, 'children' | 'severity' | 'icon'>) => Key>);
26
29
  /**
27
30
  * The react component for `mezzanine` message.
28
31
  *
29
- * Use the API from the Message instance such as `Message.success` and `Message.error`
32
+ * Use the API from the Message instance such as `Message.add` and `Message.success`
30
33
  * to display a notification message globally.
31
34
  */
32
- declare const Message: Message;
35
+ declare const Message: MessageType;
33
36
  export default Message;
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { messageIcons, messageClasses } from '@mezzanine-ui/core/message';
2
+ import { messageClasses, messageIcons } from '@mezzanine-ui/core/message';
3
3
  import { useState, useEffect } from 'react';
4
4
  import SlideFade from '../Transition/SlideFade.js';
5
5
  import Icon from '../Icon/Icon.js';
@@ -9,13 +9,11 @@ import cx from 'clsx';
9
9
  /**
10
10
  * The react component for `mezzanine` message.
11
11
  *
12
- * Use the API from the Message instance such as `Message.success` and `Message.error`
12
+ * Use the API from the Message instance such as `Message.add` and `Message.success`
13
13
  * to display a notification message globally.
14
14
  */
15
- // eslint-disable-next-line @typescript-eslint/no-redeclare
16
15
  const Message = ((props) => {
17
- const { children, duration, reference, severity = 'info', onExited: onExitedProp, ...restTransitionProps } = props;
18
- const icon = messageIcons[severity];
16
+ const { children, duration, icon, reference, severity, onExited: onExitedProp, ...restTransitionProps } = props;
19
17
  const [open, setOpen] = useState(true);
20
18
  useEffect(() => {
21
19
  if (open && duration) {
@@ -31,10 +29,10 @@ const Message = ((props) => {
31
29
  if (onExitedProp) {
32
30
  onExitedProp(node);
33
31
  }
34
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
35
- Message.remove(reference);
32
+ if (reference)
33
+ Message.remove(reference);
36
34
  };
37
- return (jsx(SlideFade, Object.assign({ in: open, appear: true, onExited: onExited }, restTransitionProps, { children: jsxs("div", Object.assign({ className: cx(messageClasses.host, messageClasses.severity(severity)) }, { children: [jsx(Icon, { className: messageClasses.icon, icon: icon }, void 0),
35
+ return (jsx(SlideFade, Object.assign({ in: open, appear: true, onExited: onExited }, restTransitionProps, { children: jsxs("div", Object.assign({ className: cx(messageClasses.host, severity ? messageClasses.severity(severity) : '') }, { children: [icon ? (jsx(Icon, { className: messageClasses.icon, icon: icon }, void 0)) : null,
38
36
  jsx("span", Object.assign({ className: messageClasses.content }, { children: children }), void 0)] }), void 0) }), void 0));
39
37
  });
40
38
  const { add, config, destroy, remove, } = createNotifier({
@@ -48,12 +46,30 @@ Message.add = add;
48
46
  Message.config = config;
49
47
  Message.destroy = destroy;
50
48
  Message.remove = remove;
51
- ['success', 'warning', 'error', 'info'].forEach((severity) => {
52
- Message[severity] = (message, props) => Message.add({
49
+ const severities = [{
50
+ key: 'success',
51
+ icon: messageIcons.success,
52
+ }, {
53
+ key: 'warning',
54
+ icon: messageIcons.warning,
55
+ }, {
56
+ key: 'error',
57
+ icon: messageIcons.error,
58
+ }, {
59
+ key: 'info',
60
+ icon: messageIcons.info,
61
+ }];
62
+ const validSeverities = ['success', 'warning', 'error', 'info'];
63
+ (severities).forEach((severity) => {
64
+ Message[severity.key] = (message, props) => Message.add({
53
65
  ...props,
54
66
  children: message,
55
- severity,
67
+ severity: validSeverities.includes(severity.key)
68
+ ? severity.key
69
+ : undefined,
70
+ icon: severity.icon,
56
71
  });
57
- });
72
+ });
73
+ var Message$1 = Message;
58
74
 
59
- export default Message;
75
+ export { Message$1 as default };
@@ -1,2 +1,2 @@
1
1
  export { MessageSeverity, } from '@mezzanine-ui/core/message';
2
- export { MessageData, default, } from './Message';
2
+ export { MessageData, MessageType, default, } from './Message';
package/Modal/Modal.js CHANGED
@@ -70,6 +70,7 @@ const Modal = forwardRef(function Modal(props, ref) {
70
70
  [modalClasses.fullScreen]: fullScreen,
71
71
  [modalClasses.withCloseIcon]: !hideCloseIcon,
72
72
  }, className), role: "dialog" }, { children: [children, !hideCloseIcon && (jsx(Icon, { className: modalClasses.closeIcon, icon: TimesIcon, onClick: onClose }, void 0))] }), void 0) }), void 0) }), void 0) }), void 0));
73
- });
73
+ });
74
+ var Modal$1 = Modal;
74
75
 
75
- export default Modal;
76
+ export { Modal$1 as default };
@@ -13,6 +13,7 @@ const ModalActions = forwardRef(function ModalActions(props, ref) {
13
13
  const { loading, severity, } = useContext(ModalControlContext);
14
14
  const danger = severity === 'error';
15
15
  return (jsxs(ModalFooter, Object.assign({}, rest, { ref: ref }, { children: [children, jsx(ConfirmActions, { cancelButtonProps: cancelButtonProps, cancelText: cancelText, className: modalClasses.actions, confirmButtonProps: confirmButtonProps, confirmText: confirmText, danger: danger, hideCancelButton: hideCancelButton, hideConfirmButton: hideConfirmButton, loading: loading, onCancel: onCancel, onConfirm: onConfirm }, void 0)] }), void 0));
16
- });
16
+ });
17
+ var ModalActions$1 = ModalActions;
17
18
 
18
- export default ModalActions;
19
+ export { ModalActions$1 as default };
@@ -9,6 +9,7 @@ import cx from 'clsx';
9
9
  const ModalBody = forwardRef(function ModalBody(props, ref) {
10
10
  const { children, className, ...rest } = props;
11
11
  return (jsx("div", Object.assign({}, rest, { ref: ref, className: cx(modalClasses.body, className) }, { children: children }), void 0));
12
- });
12
+ });
13
+ var ModalBody$1 = ModalBody;
13
14
 
14
- export default ModalBody;
15
+ export { ModalBody$1 as default };
@@ -9,6 +9,7 @@ import cx from 'clsx';
9
9
  const ModalFooter = forwardRef(function ModalFooter(props, ref) {
10
10
  const { children, className, ...rest } = props;
11
11
  return (jsx("div", Object.assign({}, rest, { ref: ref, className: cx(modalClasses.footer, className) }, { children: children }), void 0));
12
- });
12
+ });
13
+ var ModalFooter$1 = ModalFooter;
13
14
 
14
- export default ModalFooter;
15
+ export { ModalFooter$1 as default };
@@ -15,6 +15,7 @@ const ModalHeader = forwardRef(function ModalHeader(props, ref) {
15
15
  jsx("h3", Object.assign({ className: cx(modalClasses.title, {
16
16
  [modalClasses.titleLarge]: titleLarge,
17
17
  }), title: typeof children === 'string' ? children : undefined }, { children: children }), void 0)] }), void 0));
18
- });
18
+ });
19
+ var ModalHeader$1 = ModalHeader;
19
20
 
20
- export default ModalHeader;
21
+ export { ModalHeader$1 as default };
@@ -43,6 +43,7 @@ const Navigation = forwardRef((props, ref) => {
43
43
  return (jsx("ul", Object.assign({}, rest, { ref: ref, className: cx(navigationClasses.host, navigationClasses[orientation], className) }, { children: jsx(NavigationContext.Provider, Object.assign({ value: {
44
44
  orientation,
45
45
  } }, { children: ItemChildren }), void 0) }), void 0));
46
- });
46
+ });
47
+ var Navigation$1 = Navigation;
47
48
 
48
- export default Navigation;
49
+ export { Navigation$1 as default };
@@ -17,6 +17,7 @@ const NavigationItem = forwardRef((props, ref) => {
17
17
  }
18
18
  }, [eventKey, onClick, orientation]);
19
19
  return (jsxs("li", Object.assign({}, rest, { ref: ref, className: cx(navigationItemClasses.host, active && navigationItemClasses.active, className), role: "menuitem", onClick: handleClick, onKeyDown: () => { } }, { children: [icon && (jsx(Icon, { className: navigationItemClasses.icon, icon: icon }, void 0)), children] }), void 0));
20
- });
20
+ });
21
+ var NavigationItem$1 = NavigationItem;
21
22
 
22
- export default NavigationItem;
23
+ export { NavigationItem$1 as default };
@@ -60,6 +60,7 @@ const NavigationSubMenu = forwardRef((props, ref) => {
60
60
  orientation === 'vertical' && (jsx(Collapse, Object.assign({ style: {
61
61
  width: '100%',
62
62
  }, in: !!open }, { children: WrapChildren }), void 0))] }), void 0));
63
- });
63
+ });
64
+ var NavigationSubMenu$1 = NavigationSubMenu;
64
65
 
65
- export default NavigationSubMenu;
66
+ export { NavigationSubMenu$1 as default };
@@ -73,6 +73,7 @@ Notification.remove = remove;
73
73
  ...props,
74
74
  severity,
75
75
  });
76
- });
76
+ });
77
+ var Notification$1 = Notification;
77
78
 
78
- export default Notification;
79
+ export { Notification$1 as default };
@@ -28,4 +28,4 @@ function NotifierManager(props) {
28
28
  return (jsx(Fragment, { children: notifiersShouldRendered.map((notifier) => (jsx(Fragment$1, { children: render(notifier) }, notifier.key))) }, void 0));
29
29
  }
30
30
 
31
- export default NotifierManager;
31
+ export { NotifierManager as default };
@@ -26,6 +26,7 @@ const Overlay = forwardRef(function Overlay(props, ref) {
26
26
  onBackdropClick(event);
27
27
  }
28
28
  } }, void 0) }), void 0)), children] }), void 0) }), void 0));
29
- });
29
+ });
30
+ var Overlay$1 = Overlay;
30
31
 
31
- export default Overlay;
32
+ export { Overlay$1 as default };
@@ -8,6 +8,7 @@ const PageFooter = forwardRef(function PageFooter(props, ref) {
8
8
  const { className, actionClassName, cancelButtonProps, cancelText, children, danger, loading, confirmButtonProps, confirmText, hideCancelButton, hideConfirmButton, onCancel, onConfirm, ...rest } = props;
9
9
  return (jsxs("footer", Object.assign({ ref: ref }, rest, { className: cx(pageFooterClasses.host, className) }, { children: [jsx("div", Object.assign({ className: actionClassName }, { children: children }), void 0),
10
10
  jsx(ConfirmActions, { cancelText: cancelText, confirmText: confirmText, cancelButtonProps: cancelButtonProps, confirmButtonProps: confirmButtonProps, danger: danger, hideCancelButton: hideCancelButton, hideConfirmButton: hideConfirmButton, loading: loading, onCancel: onCancel, onConfirm: onConfirm }, void 0)] }), void 0));
11
- });
11
+ });
12
+ var PageFooter$1 = PageFooter;
12
13
 
13
- export default PageFooter;
14
+ export { PageFooter$1 as default };
@@ -24,6 +24,7 @@ const Pagination = forwardRef((props, ref) => {
24
24
  });
25
25
  return (jsx("nav", Object.assign({}, rest, { ref: ref, "aria-label": "pagination navigation", className: cx(paginationClasses.host, className) }, { children: jsxs("ul", Object.assign({ className: paginationClasses.container }, { children: [items.map((item, index) => (jsx("li", Object.assign({ className: paginationClasses.item }, { children: itemRender(item) }), index))),
26
26
  showJumper && (jsx("li", Object.assign({ className: paginationClasses.jumper }, { children: jsx(PaginationJumper, { buttonText: buttonText, disabled: disabled, hintText: hintText, inputPlaceholder: inputPlaceholder, onChange: onChange, pageSize: pageSize, total: total }, void 0) }), void 0))] }), void 0) }), void 0));
27
- });
27
+ });
28
+ var Pagination$1 = Pagination;
28
29
 
29
- export default Pagination;
30
+ export { Pagination$1 as default };
@@ -20,6 +20,7 @@ const PaginationItem = forwardRef((props, ref) => {
20
20
  }, className), type: "button" }),
21
21
  ButtonIcon && jsx(Icon, { icon: ButtonIcon }, void 0),
22
22
  type === 'page' && page));
23
- });
23
+ });
24
+ var PaginationItem$1 = PaginationItem;
24
25
 
25
- export default PaginationItem;
26
+ export { PaginationItem$1 as default };
@@ -47,6 +47,7 @@ const PaginationJumper = forwardRef((props, ref) => {
47
47
  onKeyDown: handleKeyDown,
48
48
  }, value: value }, void 0),
49
49
  jsx(Button, Object.assign({ disabled: disabled, onClick: handleClick }, { children: buttonText }), void 0)] }), void 0));
50
- });
50
+ });
51
+ var PaginationJumper$1 = PaginationJumper;
51
52
 
52
- export default PaginationJumper;
53
+ export { PaginationJumper$1 as default };
@@ -10,6 +10,7 @@ import cx from 'clsx';
10
10
  const PickerTrigger = forwardRef(function PickerTrigger(props, ref) {
11
11
  const { className, disabled, inputProps, inputRef, onChange, placeholder, readOnly, required, value, ...restTextFieldProps } = props;
12
12
  return (jsx(TextField, Object.assign({}, restTextFieldProps, { ref: ref, active: !!value, className: cx(pickerClasses.host, className), disabled: disabled }, { children: jsx("input", Object.assign({}, inputProps, { ref: inputRef, "aria-disabled": disabled, "aria-multiline": false, "aria-readonly": readOnly, "aria-required": required, disabled: disabled, onChange: onChange, placeholder: placeholder, readOnly: readOnly, required: required, value: value }), void 0) }), void 0));
13
- });
13
+ });
14
+ var PickerTrigger$1 = PickerTrigger;
14
15
 
15
- export default PickerTrigger;
16
+ export { PickerTrigger$1 as default };
@@ -14,6 +14,7 @@ const RangePickerTrigger = forwardRef(function DateRangePickerTrigger(props, ref
14
14
  return (jsxs(TextField, Object.assign({}, restTextFieldProps, { ref: ref, active: !!inputFromValue || !!inputToValue, className: cx(pickerClasses.host, className), disabled: disabled }, { children: [jsx("input", Object.assign({}, inputFromProps, { ref: inputFromRef, "aria-disabled": disabled, "aria-multiline": false, "aria-readonly": readOnly, "aria-required": required, disabled: disabled, onChange: onInputFromChange, placeholder: inputFromPlaceholder, readOnly: readOnly, required: required, value: inputFromValue }), void 0),
15
15
  jsx(Icon, { icon: ArrowRightIcon, className: pickerClasses.arrowIcon }, void 0),
16
16
  jsx("input", Object.assign({}, inputToProps, { ref: inputToRef, "aria-disabled": disabled, "aria-multiline": false, "aria-readonly": readOnly, "aria-required": required, disabled: disabled, onChange: onInputToChange, placeholder: inputToPlaceholder, readOnly: readOnly, required: required, value: inputToValue }), void 0)] }), void 0));
17
- });
17
+ });
18
+ var RangePickerTrigger$1 = RangePickerTrigger;
18
19
 
19
- export default RangePickerTrigger;
20
+ export { RangePickerTrigger$1 as default };
@@ -20,5 +20,4 @@ function usePickerInputValue(props) {
20
20
  };
21
21
  }
22
22
 
23
- export default usePickerInputValue;
24
- export { usePickerInputValue };
23
+ export { usePickerInputValue as default, usePickerInputValue };
@@ -13,7 +13,7 @@ export declare type UsePickerValueProps = {
13
13
  */
14
14
  export declare function usePickerValue({ defaultValue, format, formats, inputRef, value: valueProp, }: UsePickerValueProps): {
15
15
  inputValue: string;
16
- onBlur: (event: import("react").FocusEvent<HTMLInputElement>) => void;
16
+ onBlur: (event: import("react").FocusEvent<HTMLInputElement, Element>) => void;
17
17
  onChange: (val?: import("moment").Moment | undefined) => void;
18
18
  onInputChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
19
19
  onKeyDown: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
@@ -11,11 +11,11 @@ export declare function useRangePickerValue({ format, formats, inputFromRef, inp
11
11
  inputFromValue: string;
12
12
  inputToValue: string;
13
13
  onChange: (target?: undefined[] | [import("moment").Moment, import("moment").Moment] | [import("moment").Moment] | [undefined, import("moment").Moment] | [import("moment").Moment, undefined] | undefined) => RangePickerPickingValue | undefined;
14
- onFromBlur: (event: import("react").FocusEvent<HTMLInputElement>) => void;
14
+ onFromBlur: (event: import("react").FocusEvent<HTMLInputElement, Element>) => void;
15
15
  onFromKeyDown: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
16
16
  onInputFromChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
17
17
  onInputToChange: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
18
- onToBlur: (event: import("react").FocusEvent<HTMLInputElement>) => void;
18
+ onToBlur: (event: import("react").FocusEvent<HTMLInputElement, Element>) => void;
19
19
  onToKeyDown: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
20
20
  value: RangePickerPickingValue;
21
21
  };
@@ -10,6 +10,7 @@ import cx from 'clsx';
10
10
  const Popconfirm = forwardRef(function Popconfirm(props, ref) {
11
11
  const { className, container, cancelButtonProps, cancelText, confirmButtonProps, confirmText, icon = ExclamationCircleFilledIcon, onCancel, onConfirm, title, ...rest } = props;
12
12
  return (jsx(Popover, Object.assign({}, rest, { ref: ref, className: cx(popConfirmClasses.host, className), title: (jsxs(Fragment, { children: [jsx(Icon, { className: popConfirmClasses.icon, icon: icon }, void 0), title] }, void 0)) }, { children: jsx(ConfirmActions, { cancelButtonProps: cancelButtonProps, cancelText: cancelText, confirmButtonProps: confirmButtonProps, confirmText: confirmText, onCancel: onCancel, onConfirm: onConfirm, size: "small" }, void 0) }), void 0));
13
- });
13
+ });
14
+ var Popconfirm$1 = Popconfirm;
14
15
 
15
- export default Popconfirm;
16
+ export { Popconfirm$1 as default };
@@ -40,6 +40,7 @@ const Popover = forwardRef(function Popover(props, ref) {
40
40
  modifiers: [offsetModifier, ...modifiers],
41
41
  } }, { children: [title && jsx("div", Object.assign({ className: popoverClasses.title }, { children: title }), void 0),
42
42
  children && jsx("div", Object.assign({ className: popoverClasses.content }, { children: children }), void 0)] }), void 0));
43
- });
43
+ });
44
+ var Popover$1 = Popover;
44
45
 
45
- export default Popover;
46
+ export { Popover$1 as default };
package/Popper/Popper.js CHANGED
@@ -25,6 +25,7 @@ const Popper = forwardRef(function Popper(props, ref) {
25
25
  ...style,
26
26
  ...styles.popper,
27
27
  } }, attributes.popper, { children: children }), void 0) }), void 0));
28
- });
28
+ });
29
+ var Popper$1 = Popper;
29
30
 
30
- export default Popper;
31
+ export { Popper$1 as default };
package/Portal/Portal.js CHANGED
@@ -17,6 +17,7 @@ const Portal = (props) => {
17
17
  return jsx(Fragment, { children: children }, void 0);
18
18
  }
19
19
  return createPortal(children, portalElement);
20
- };
20
+ };
21
+ var Portal$1 = Portal;
21
22
 
22
- export default Portal;
23
+ export { Portal$1 as default };
@@ -27,6 +27,7 @@ const Progress = forwardRef(function Progress(props, ref) {
27
27
  jsx("circle", { className: progressClasses.circleFiller, cx: circleXY, cy: circleXY, r: radius, strokeWidth: strokeWidth, strokeDasharray: `${progressLength.toString()} 999` }, void 0)] }), void 0), showInfo && renderInfo('button3')] }, void 0));
28
28
  };
29
29
  return (jsxs("div", Object.assign({ ref: ref, className: cx(progressClasses.host, className, status === ProgressStatuses.success && progressClasses.success, status === ProgressStatuses.error && progressClasses.error, type === ProgressTypes.line && progressClasses.lineVariant, type === ProgressTypes.circle && progressClasses.circleVariant, progressClasses.size(size)) }, rest, { children: [type === ProgressTypes.line && renderLine(), type === ProgressTypes.circle && renderCircle()] }), void 0));
30
- });
30
+ });
31
+ var Progress$1 = Progress;
31
32
 
32
- export default Progress;
33
+ export { Progress$1 as default };
package/Radio/Radio.js CHANGED
@@ -26,6 +26,7 @@ const Radio = forwardRef(function Radio(props, ref) {
26
26
  return (jsx(InputCheck, Object.assign({}, rest, { ref: ref, control: (jsx("span", Object.assign({ className: cx(radioClasses.host, {
27
27
  [radioClasses.checked]: checked,
28
28
  }) }, { children: jsx("input", Object.assign({}, restInputProps, { "aria-checked": checked, "aria-disabled": disabled, checked: checked, disabled: disabled, id: inputId, onChange: onChange, name: name, type: "radio", value: value }), void 0) }), void 0)), disabled: disabled, error: error, htmlFor: inputId, size: size }, { children: children }), void 0));
29
- });
29
+ });
30
+ var Radio$1 = Radio;
30
31
 
31
- export default Radio;
32
+ export { Radio$1 as default };
@@ -24,6 +24,7 @@ const RadioGroup = forwardRef(function RadioGroup(props, ref) {
24
24
  };
25
25
  const children = childrenProp || options.map((option) => (jsx(Radio, Object.assign({ disabled: option.disabled, value: option.value }, { children: option.label }), option.value)));
26
26
  return (jsx(RadioGroupContext.Provider, Object.assign({ value: context }, { children: jsx(InputCheckGroup, Object.assign({}, rest, { ref: ref, role: "radiogroup" }, { children: children }), void 0) }), void 0));
27
- });
27
+ });
28
+ var RadioGroup$1 = RadioGroup;
28
29
 
29
- export default RadioGroup;
30
+ export { RadioGroup$1 as default };
@@ -2,7 +2,7 @@
2
2
  import { SelectInputSize } from '@mezzanine-ui/core/select';
3
3
  import { MenuProps } from '../Menu';
4
4
  import { PopperProps } from '../Popper';
5
- import { PickRenameMulti } from '../utils/rename-types';
5
+ import { PickRenameMulti } from '../utils/general';
6
6
  import { SelectTriggerProps, SelectTriggerInputProps } from './SelectTrigger';
7
7
  export interface AutoCompleteProps extends Omit<SelectTriggerProps, 'active' | 'clearable' | 'forceHideSuffixActionIcon' | 'mode' | 'onClick' | 'onKeyDown' | 'onChange' | 'renderValue' | 'inputProps' | 'suffixActionIcon' | 'value'>, PickRenameMulti<Pick<MenuProps, 'itemsInView' | 'maxHeight' | 'role' | 'size'>, {
8
8
  maxHeight: 'menuMaxHeight';
@@ -103,6 +103,7 @@ const AutoComplete = forwardRef(function Select(props, ref) {
103
103
  }
104
104
  }
105
105
  } }, void 0)] }), void 0)) : null] }), void 0)] }), void 0) }), void 0));
106
- });
106
+ });
107
+ var AutoComplete$1 = AutoComplete;
107
108
 
108
- export default AutoComplete;
109
+ export { AutoComplete$1 as default };
package/Select/Option.js CHANGED
@@ -27,6 +27,7 @@ const Option = forwardRef(function Option(props, ref) {
27
27
  evt.stopPropagation();
28
28
  onSelect();
29
29
  }, onKeyDown: onKeyDown, role: role, tabIndex: 0 }, { children: children }), void 0));
30
- });
30
+ });
31
+ var Option$1 = Option;
31
32
 
32
- export default Option;
33
+ export { Option$1 as default };
@@ -4,7 +4,7 @@ import { FormElementFocusHandlers } from '../Form';
4
4
  import { MenuProps } from '../Menu';
5
5
  import { PopperProps } from '../Popper';
6
6
  import { SelectValue } from './typings';
7
- import { PickRenameMulti } from '../utils/rename-types';
7
+ import { PickRenameMulti } from '../utils/general';
8
8
  import { SelectTriggerProps, SelectTriggerInputProps } from './SelectTrigger';
9
9
  export interface SelectProps extends Omit<SelectTriggerProps, 'active' | 'inputProps' | 'onBlur' | 'onChange' | 'onClick' | 'onFocus' | 'onKeyDown'>, FormElementFocusHandlers, PickRenameMulti<Pick<MenuProps, 'itemsInView' | 'maxHeight' | 'role' | 'size'>, {
10
10
  maxHeight: 'menuMaxHeight';
package/Select/Select.js CHANGED
@@ -140,6 +140,7 @@ const Select = forwardRef(function Select(props, ref) {
140
140
  value,
141
141
  } }, { children: jsxs("div", Object.assign({ ref: nodeRef, className: cx(selectClasses.host, fullWidth && selectClasses.hostFullWidth) }, { children: [jsx(SelectTrigger, { ref: composedRef, active: open, className: className, clearable: clearable, disabled: disabled, error: error, fullWidth: fullWidth, inputRef: inputRef, mode: mode, onTagClose: onChange, onClear: onClear, onClick: onClickTextField, onKeyDown: onKeyDownTextField, prefix: prefix, readOnly: !searchable, required: required, inputProps: resolvedInputProps, size: size, suffixActionIcon: suffixActionIcon, value: value, renderValue: renderValue }, void 0),
142
142
  jsx(InputTriggerPopper, Object.assign({ ref: popperRef, anchor: controlRef, className: selectClasses.popper, open: open, sameWidth: true, options: popperOptions }, { children: jsx(Menu, Object.assign({ id: MENU_ID, "aria-activedescendant": (_b = (_a = value === null || value === void 0 ? void 0 : value[0]) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : '', itemsInView: itemsInView, maxHeight: menuMaxHeight, role: menuRole, size: menuSize, style: { border: 0 } }, { children: children }), void 0) }), void 0)] }), void 0) }), void 0));
143
- });
143
+ });
144
+ var Select$1 = Select;
144
145
 
145
- export default Select;
146
+ export { Select$1 as default };
@@ -22,6 +22,7 @@ const SelectTrigger = forwardRef(function SelectTrigger(props, ref) {
22
22
  e.stopPropagation();
23
23
  onTagClose === null || onTagClose === void 0 ? void 0 : onTagClose(selection);
24
24
  }, size: size }, { children: selection.name }), selection.id))) }), void 0)) : (jsx("input", Object.assign({}, inputProps, { ref: inputRef, "aria-autocomplete": "list", "aria-disabled": disabled, "aria-haspopup": "listbox", "aria-readonly": readOnly, "aria-required": required, autoComplete: "false", disabled: disabled, readOnly: readOnly, required: required, type: "search", value: renderValue() }), void 0)) }), void 0));
25
- });
25
+ });
26
+ var SelectTrigger$1 = SelectTrigger;
26
27
 
27
- export default SelectTrigger;
28
+ export { SelectTrigger$1 as default };
@@ -2,7 +2,7 @@
2
2
  import { SelectInputSize } from '@mezzanine-ui/core/select';
3
3
  import { FormElementFocusHandlers } from '../Form';
4
4
  import { MenuProps } from '../Menu';
5
- import { PickRenameMulti } from '../utils/rename-types';
5
+ import { PickRenameMulti } from '../utils/general';
6
6
  import { InputTriggerPopperProps } from '../_internal/InputTriggerPopper';
7
7
  import { SelectTriggerProps, SelectTriggerInputProps } from './SelectTrigger';
8
8
  import { SelectValue, TreeSelectOption } from './typings';
@@ -193,6 +193,7 @@ const TreeSelect = forwardRef((props, ref) => {
193
193
  border: border || 0,
194
194
  width: width || `${panelWidth}px`,
195
195
  } }, { children: jsx(Tree, Object.assign({}, restTreeProps, { ref: ref, className: cx(selectClasses.tree, treeClassName), disabledValues: disabledValues, expandControllerRef: expandControllerRef, expandedValues: expandedValues, multiple: multiple, nodes: nodes, onExpand: onExpand, onSelect: onSelect, selectMethod: "target", selectable: true, values: selectedValues }), void 0) }), void 0) }), void 0)] }), void 0));
196
- });
196
+ });
197
+ var TreeSelect$1 = TreeSelect;
197
198
 
198
- export default TreeSelect;
199
+ export { TreeSelect$1 as default };
@@ -9,6 +9,7 @@ import cx from 'clsx';
9
9
  const Skeleton = forwardRef(function Skeleton(props, ref) {
10
10
  const { className, height: skeletonHeight, style: skeletonStyle, type, width: skeletonWidth, ...rest } = props;
11
11
  return (jsx("div", Object.assign({}, rest, { ref: ref, className: cx(skeletonClasses.host, type === 'circle' && skeletonClasses.circle, className), style: { width: skeletonWidth, height: skeletonHeight, ...skeletonStyle } }, rest), void 0));
12
- });
12
+ });
13
+ var Skeleton$1 = Skeleton;
13
14
 
14
- export default Skeleton;
15
+ export { Skeleton$1 as default };