@mezzanine-ui/react 0.9.2 → 0.10.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 (171) hide show
  1. package/Accordion/Accordion.js +5 -4
  2. package/Accordion/AccordionDetails.js +2 -2
  3. package/Accordion/AccordionSummary.js +3 -4
  4. package/Alert/Alert.js +1 -3
  5. package/AppBar/AppBar.js +1 -1
  6. package/AppBar/AppBarBrand.d.ts +1 -1
  7. package/AppBar/AppBarBrand.js +1 -1
  8. package/AppBar/AppBarMain.d.ts +1 -1
  9. package/AppBar/AppBarMain.js +1 -1
  10. package/AppBar/AppBarSupport.d.ts +1 -1
  11. package/AppBar/AppBarSupport.js +1 -1
  12. package/Badge/Badge.js +2 -2
  13. package/Badge/BadgeContainer.d.ts +1 -1
  14. package/Badge/BadgeContainer.js +1 -1
  15. package/Button/Button.d.ts +2 -2
  16. package/Button/Button.js +3 -3
  17. package/Button/ButtonGroup.js +3 -3
  18. package/Button/IconButton.d.ts +3 -3
  19. package/Button/IconButton.js +1 -1
  20. package/Calendar/Calendar.js +9 -10
  21. package/Calendar/CalendarCell.js +2 -2
  22. package/Calendar/CalendarContext.d.ts +3 -3
  23. package/Calendar/CalendarContext.js +20 -12
  24. package/Calendar/CalendarControls.js +3 -3
  25. package/Calendar/CalendarDayOfWeek.js +1 -1
  26. package/Calendar/CalendarDays.js +4 -5
  27. package/Calendar/CalendarMonths.js +4 -4
  28. package/Calendar/CalendarWeeks.js +4 -5
  29. package/Calendar/CalendarYears.js +4 -4
  30. package/Calendar/useCalendarControls.d.ts +2 -3
  31. package/Card/Card.js +5 -5
  32. package/Card/CardActions.js +1 -2
  33. package/Checkbox/CheckAll.js +2 -2
  34. package/Checkbox/Checkbox.js +2 -2
  35. package/Checkbox/CheckboxGroup.js +2 -2
  36. package/ConfirmActions/ConfirmActions.js +1 -2
  37. package/DatePicker/DatePicker.js +2 -3
  38. package/DatePicker/DatePickerCalendar.js +1 -1
  39. package/DateRangePicker/DateRangePicker.js +2 -3
  40. package/DateRangePicker/DateRangePickerCalendar.js +3 -4
  41. package/DateRangePicker/useDateRangeCalendarControls.d.ts +1 -2
  42. package/DateRangePicker/useDateRangePickerValue.d.ts +12 -13
  43. package/DateTimePicker/DateTimePicker.js +2 -3
  44. package/DateTimePicker/DateTimePickerPanel.js +1 -3
  45. package/Drawer/Drawer.js +1 -1
  46. package/Dropdown/Dropdown.js +2 -2
  47. package/Empty/Empty.js +3 -4
  48. package/Form/FormField.js +2 -2
  49. package/Form/FormLabel.js +1 -2
  50. package/Form/FormMessage.d.ts +1 -1
  51. package/Form/FormMessage.js +1 -1
  52. package/Form/useAutoCompleteValueControl.d.ts +30 -11
  53. package/Form/useAutoCompleteValueControl.js +71 -31
  54. package/Form/useInputWithTagsModeValue.js +2 -1
  55. package/Form/useSelectValueControl.d.ts +1 -1
  56. package/Icon/Icon.js +2 -2
  57. package/Input/Input.js +2 -3
  58. package/Loading/Loading.js +4 -5
  59. package/Menu/Menu.js +1 -1
  60. package/Menu/MenuDivider.d.ts +1 -1
  61. package/Menu/MenuDivider.js +1 -1
  62. package/Menu/MenuItem.js +2 -3
  63. package/Menu/MenuItemGroup.js +1 -2
  64. package/Message/Message.js +2 -3
  65. package/Modal/Modal.js +2 -2
  66. package/Modal/ModalActions.js +1 -1
  67. package/Modal/ModalBody.d.ts +1 -1
  68. package/Modal/ModalBody.js +1 -1
  69. package/Modal/ModalFooter.d.ts +1 -1
  70. package/Modal/ModalFooter.js +1 -1
  71. package/Modal/ModalHeader.js +2 -3
  72. package/Modal/useModalContainer.js +1 -1
  73. package/Navigation/Navigation.js +2 -2
  74. package/Navigation/NavigationItem.js +1 -1
  75. package/Navigation/NavigationSubMenu.js +3 -5
  76. package/Notification/Notification.js +2 -7
  77. package/Notifier/NotifierManager.js +1 -1
  78. package/Notifier/createNotifier.js +1 -1
  79. package/Overlay/Overlay.js +3 -3
  80. package/PageFooter/PageFooter.js +1 -2
  81. package/Pagination/Pagination.js +2 -3
  82. package/Pagination/PaginationItem.js +4 -4
  83. package/Pagination/PaginationJumper.js +2 -4
  84. package/Picker/PickerTrigger.js +1 -1
  85. package/Picker/RangePickerTrigger.js +1 -3
  86. package/Picker/usePickerInputValue.d.ts +2 -2
  87. package/Picker/usePickerValue.d.ts +6 -7
  88. package/Picker/useRangePickerValue.d.ts +9 -10
  89. package/Popconfirm/Popconfirm.js +1 -1
  90. package/Popover/Popover.js +2 -3
  91. package/Popper/Popper.js +2 -2
  92. package/Portal/Portal.js +1 -1
  93. package/Progress/Progress.js +5 -7
  94. package/Radio/Radio.js +2 -2
  95. package/Radio/RadioGroup.js +2 -2
  96. package/Select/AutoComplete.d.ts +40 -13
  97. package/Select/AutoComplete.js +37 -28
  98. package/Select/Option.js +2 -2
  99. package/Select/Select.d.ts +2 -50
  100. package/Select/Select.js +15 -49
  101. package/Select/SelectTrigger.d.ts +8 -1
  102. package/Select/SelectTrigger.js +8 -12
  103. package/Select/SelectTriggerTags.d.ts +19 -0
  104. package/Select/SelectTriggerTags.js +33 -0
  105. package/Select/TreeSelect.js +2 -3
  106. package/Select/index.d.ts +1 -0
  107. package/Select/index.js +1 -0
  108. package/Select/useSelectTriggerTags.d.ts +19 -0
  109. package/Select/useSelectTriggerTags.js +61 -0
  110. package/Skeleton/Skeleton.js +1 -1
  111. package/Slider/Slider.d.ts +1 -1
  112. package/Slider/Slider.js +7 -11
  113. package/Stepper/Step.js +2 -2
  114. package/Stepper/Stepper.js +1 -1
  115. package/Switch/Switch.js +2 -3
  116. package/Table/Table.d.ts +1 -1
  117. package/Table/Table.js +3 -10
  118. package/Table/TableBody.js +2 -4
  119. package/Table/TableBodyRow.js +4 -7
  120. package/Table/TableCell.js +3 -3
  121. package/Table/TableExpandedTable.js +5 -6
  122. package/Table/TableHeader.d.ts +2 -1
  123. package/Table/TableHeader.js +3 -6
  124. package/Table/editable/TableEditRenderWrapper.js +2 -2
  125. package/Table/expandable/TableExpandable.js +2 -2
  126. package/Table/pagination/TablePagination.js +1 -2
  127. package/Table/refresh/TableRefresh.js +1 -1
  128. package/Table/rowSelection/TableRowSelection.js +5 -6
  129. package/Table/sorting/TableSortingIcon.js +2 -2
  130. package/Table/sorting/useTableSorting.d.ts +2 -2
  131. package/Table/useTableScroll.d.ts +178 -178
  132. package/Tabs/Tab.js +2 -2
  133. package/Tabs/TabPane.js +1 -1
  134. package/Tabs/Tabs.js +1 -3
  135. package/Tag/Tag.js +3 -4
  136. package/TextField/TextField.js +3 -3
  137. package/TextField/useTextFieldControl.d.ts +2 -2
  138. package/Textarea/Textarea.js +2 -3
  139. package/TimePanel/TimePanel.js +1 -4
  140. package/TimePanel/TimePanelAction.js +1 -1
  141. package/TimePanel/TimePanelColumn.js +2 -5
  142. package/TimePicker/TimePicker.js +2 -3
  143. package/TimePicker/TimePickerPanel.js +1 -1
  144. package/Tooltip/Tooltip.js +3 -3
  145. package/Transition/Collapse.js +3 -2
  146. package/Transition/Fade.js +2 -2
  147. package/Transition/Grow.js +3 -2
  148. package/Transition/SlideFade.js +2 -2
  149. package/Transition/Transition.js +2 -2
  150. package/Transition/Zoom.js +2 -2
  151. package/Tree/Tree.js +1 -1
  152. package/Tree/TreeNode.js +5 -7
  153. package/Tree/TreeNodeList.js +5 -4
  154. package/Tree/getTreeNodeEntities.js +6 -3
  155. package/Typography/Typography.d.ts +2 -2
  156. package/Typography/Typography.js +2 -2
  157. package/Upload/UploadButton.js +2 -2
  158. package/Upload/UploadInput.js +1 -1
  159. package/Upload/UploadPicture.js +1 -1
  160. package/Upload/UploadPictureBlock.js +2 -8
  161. package/Upload/UploadPictureWall.d.ts +1 -1
  162. package/Upload/UploadPictureWall.js +1 -2
  163. package/Upload/UploadPictureWallItem.js +1 -1
  164. package/Upload/UploadResult.js +2 -5
  165. package/_internal/InputCheck/InputCheck.js +2 -3
  166. package/_internal/InputCheck/InputCheckGroup.js +1 -1
  167. package/_internal/InputTriggerPopper/InputTriggerPopper.js +2 -2
  168. package/_internal/SlideFadeOverlay/SlideFadeOverlay.js +1 -1
  169. package/index.d.ts +1 -1
  170. package/index.js +1 -0
  171. package/package.json +3 -3
@@ -1,62 +1,102 @@
1
1
  import { useState, useCallback } from 'react';
2
+ import compact from 'lodash/compact';
3
+ import isEqual from 'lodash/isEqual';
4
+ import differenceBy from 'lodash/differenceBy';
2
5
  import { useControlValueState } from './useControlValueState.js';
3
6
 
4
- const equalityFn = (a, b) => a === b;
5
- function useAutoCompleteValueControl(props) {
6
- const { defaultValue = '', disabledOptionsFilter, onChange, onClear: onClearProp, onClose, options: optionsProp, value: valueProp, } = props;
7
+ const equalityFn = (a, b) => isEqual(a, b);
8
+ function useAutoCompleteBaseValueControl(props) {
9
+ const { defaultValue, disabledOptionsFilter, mode, onChange, onClear: onClearProp, onClose, onSearch, options: optionsProp, value: valueProp, } = props;
7
10
  const [value, setValue] = useControlValueState({
8
- defaultValue,
11
+ defaultValue: defaultValue || (mode === 'multiple' ? [] : null),
9
12
  equalityFn,
10
13
  value: valueProp,
11
14
  });
12
15
  const [searchText, setSearchText] = useState('');
13
16
  const [focused, setFocused] = useState(false);
14
- const onChangeValue = useCallback((text) => {
15
- setValue(text);
16
- onChange === null || onChange === void 0 ? void 0 : onChange(text);
17
- }, [setValue, onChange]);
18
17
  const onFocus = useCallback((focus) => {
19
18
  setFocused(focus);
20
- /** sync current value */
21
- if (!focus) {
22
- onChange === null || onChange === void 0 ? void 0 : onChange(value);
23
- }
24
- }, [
25
- value,
26
- onChange,
27
- ]);
28
- const getCurrentInputValue = () => (value ? {
29
- id: value,
30
- name: value,
31
- } : null);
19
+ }, []);
32
20
  const options = disabledOptionsFilter
33
21
  ? optionsProp
34
- : optionsProp.filter((option) => ~option.search(searchText));
22
+ : optionsProp.filter((option) => !!option.name.includes(searchText));
23
+ const selectedOptions = mode === 'multiple'
24
+ ? value : compact([value]);
25
+ const unselectedOptions = differenceBy(options, selectedOptions, 'id');
35
26
  return {
36
27
  focused,
37
28
  onChange: (chooseOption) => {
38
- if (!chooseOption)
39
- return [];
40
- onClose === null || onClose === void 0 ? void 0 : onClose();
41
- setValue(chooseOption.name);
42
- onChange === null || onChange === void 0 ? void 0 : onChange(chooseOption.name);
43
- return [chooseOption];
29
+ var _a;
30
+ if (!chooseOption) {
31
+ if (mode === 'multiple') {
32
+ return [];
33
+ }
34
+ return null;
35
+ }
36
+ let newValue = mode === 'multiple' ? [] : null;
37
+ switch (mode) {
38
+ case 'multiple': {
39
+ const existedValueIdx = ((_a = value) !== null && _a !== void 0 ? _a : []).findIndex((v) => v.id === chooseOption.id);
40
+ if (~existedValueIdx) {
41
+ newValue = [
42
+ ...value.slice(0, existedValueIdx),
43
+ ...value.slice(existedValueIdx + 1),
44
+ ];
45
+ }
46
+ else {
47
+ newValue = [
48
+ ...value,
49
+ chooseOption,
50
+ ];
51
+ }
52
+ if (typeof onChange === 'function')
53
+ onChange(newValue);
54
+ break;
55
+ }
56
+ default: {
57
+ newValue = chooseOption;
58
+ if (typeof onClose === 'function')
59
+ onClose();
60
+ if (typeof onChange === 'function')
61
+ onChange(newValue);
62
+ break;
63
+ }
64
+ }
65
+ setValue(newValue);
66
+ return newValue;
44
67
  },
45
68
  onClear: (e) => {
46
69
  e.stopPropagation();
47
- setValue('');
70
+ if (mode === 'multiple') {
71
+ setValue([]);
72
+ onChange === null || onChange === void 0 ? void 0 : onChange([]);
73
+ }
74
+ else {
75
+ setValue(null);
76
+ onChange === null || onChange === void 0 ? void 0 : onChange(null);
77
+ }
48
78
  setSearchText('');
49
79
  if (typeof onClearProp === 'function') {
50
80
  onClearProp(e);
51
81
  }
82
+ if (typeof onSearch === 'function') {
83
+ onSearch('');
84
+ }
52
85
  },
53
86
  onFocus,
54
87
  options,
55
88
  searchText,
89
+ selectedOptions,
56
90
  setSearchText,
57
- setValue: onChangeValue,
58
- value: getCurrentInputValue(),
91
+ unselectedOptions,
92
+ value,
59
93
  };
60
- }
94
+ }
95
+ const useAutoCompleteValueControl = (props) => {
96
+ if (props.mode === 'multiple') {
97
+ return useAutoCompleteBaseValueControl(props);
98
+ }
99
+ return useAutoCompleteBaseValueControl(props);
100
+ };
61
101
 
62
102
  export { useAutoCompleteValueControl };
@@ -56,7 +56,8 @@ function useInputWithTagsModeValue(props) {
56
56
  if (!canActive)
57
57
  return;
58
58
  const element = ref.current;
59
- if (element && (element === null || element === void 0 ? void 0 : element.value) &&
59
+ if (element &&
60
+ (element === null || element === void 0 ? void 0 : element.value) &&
60
61
  (e.key === 'Enter' || e.code === 'Enter') &&
61
62
  !e.nativeEvent.isComposing &&
62
63
  !tagsWillOverflow()) {
@@ -30,4 +30,4 @@ export declare type SelectSingleValueControl = SelectBaseValueControl & {
30
30
  value: SelectValue | null;
31
31
  };
32
32
  export declare type SelectValueControl = SelectMultipleValueControl | SelectSingleValueControl;
33
- export declare const useSelectValueControl: (props: UseSelectValueControl) => SelectValueControl;
33
+ export declare const useSelectValueControl: (props: UseSelectValueControl) => SelectMultipleValueControl | SelectSingleValueControl;
package/Icon/Icon.js CHANGED
@@ -15,11 +15,11 @@ const Icon = forwardRef(function Icon(props, ref) {
15
15
  ...cssVars,
16
16
  ...styleProp,
17
17
  };
18
- return (jsx("i", Object.assign({}, rest, { ref: ref, "aria-hidden": true, className: cx(iconClasses.host, {
18
+ return (jsx("i", { ...rest, ref: ref, "aria-hidden": true, className: cx(iconClasses.host, {
19
19
  [iconClasses.color]: color,
20
20
  [iconClasses.spin]: spin,
21
21
  [iconClasses.size]: size,
22
- }, 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));
22
+ }, className), "data-icon-name": icon.name, style: style, children: jsx("svg", { ...definition.svg, focusable: false, children: jsx("path", { ...definition.path }) }) }));
23
23
  });
24
24
  var Icon$1 = Icon;
25
25
 
package/Input/Input.js CHANGED
@@ -41,11 +41,10 @@ const Input = forwardRef(function Input(props, ref) {
41
41
  : inputProps === null || inputProps === void 0 ? void 0 : inputProps.maxLength);
42
42
  const active = !!value;
43
43
  const mountInput = !tagsMode || !tagsReachedMax;
44
- return (jsxs(TextField, Object.assign({ ref: ref, active: active, className: cx(inputClasses.host, tagsMode && inputClasses.tagsMode, inputPosition === 'top' && inputClasses.tagsModeInputOnTop, className), clearable: clearable, disabled: disabled, error: error, fullWidth: fullWidth, onClear: tagsMode ? tagsModeOnClear : onClear, prefix: mountInput ? prefix : undefined, suffix: mountInput ? suffix : undefined, size: size }, { children: [tagsMode && (jsx("div", Object.assign({ className: selectClasses.triggerTags }, { children: tags.map((tag) => (jsx(Tag, Object.assign({ closable: true, disabled: disabled, size: size, onClose: (e) => {
44
+ return (jsxs(TextField, { ref: ref, active: active, className: cx(inputClasses.host, tagsMode && inputClasses.tagsMode, inputPosition === 'top' && inputClasses.tagsModeInputOnTop, className), clearable: clearable, disabled: disabled, error: error, fullWidth: fullWidth, onClear: tagsMode ? tagsModeOnClear : onClear, prefix: mountInput ? prefix : undefined, suffix: mountInput ? suffix : undefined, size: size, children: [tagsMode && (jsx("div", { className: selectClasses.triggerTags, children: tags.map((tag) => (jsx(Tag, { closable: true, disabled: disabled, size: size, onClose: (e) => {
45
45
  e.stopPropagation();
46
46
  tagsModeOnRemove(tag);
47
- } }, { children: tag }), tag))) }), void 0)),
48
- mountInput && (jsx("input", Object.assign({}, inputProps, { "aria-disabled": disabled, "aria-multiline": false, "aria-readonly": readOnly, "aria-required": required, disabled: disabled, maxLength: maxLength(), onChange: tagsMode ? tagsModeOnChange : onChange, onKeyDown: tagsMode ? onKeyDown : inputProps === null || inputProps === void 0 ? void 0 : inputProps.onKeyDown, placeholder: placeholder, readOnly: readOnly, ref: composedInputRef, required: required, value: tagsMode ? undefined : value }), void 0))] }), void 0));
47
+ }, children: tag }, tag))) })), mountInput && (jsx("input", { ...inputProps, "aria-disabled": disabled, "aria-multiline": false, "aria-readonly": readOnly, "aria-required": required, disabled: disabled, maxLength: maxLength(), onChange: tagsMode ? tagsModeOnChange : onChange, onKeyDown: tagsMode ? onKeyDown : inputProps === null || inputProps === void 0 ? void 0 : inputProps.onKeyDown, placeholder: placeholder, readOnly: readOnly, ref: composedInputRef, required: required, value: tagsMode ? undefined : value }))] }));
49
48
  });
50
49
  var Input$1 = Input;
51
50
 
@@ -13,14 +13,13 @@ const Loading = forwardRef(function Loading(props, ref) {
13
13
  const { className: iconClassName, color: iconColor, ...iconPropsRest } = iconProps;
14
14
  const isNestedPattern = typeof children !== 'undefined';
15
15
  const composedHostRef = useComposeRefs([ref, hostRef]);
16
- const spinElement = loading ? (jsxs("div", Object.assign({ ref: isNestedPattern ? null : ref, className: cx(iconClasses.spin, {
16
+ const spinElement = loading ? (jsxs("div", { ref: isNestedPattern ? null : ref, className: cx(iconClasses.spin, {
17
17
  [iconClasses.stretch]: stretch,
18
- }) }, { children: [jsx(Icon, Object.assign({}, iconPropsRest, { className: cx(iconClasses.icon, iconClassName), color: iconColor || 'primary', icon: SpinnerIcon, spin: true }), void 0),
19
- tip ? (jsx("span", Object.assign({ className: cx(iconClasses.tip, tipClassName) }, { children: tip }), void 0)) : null] }), void 0)) : null;
18
+ }), children: [jsx(Icon, { ...iconPropsRest, className: cx(iconClasses.icon, iconClassName), color: iconColor || 'primary', icon: SpinnerIcon, spin: true }), tip ? (jsx("span", { className: cx(iconClasses.tip, tipClassName), children: tip })) : null] })) : null;
20
19
  if (isNestedPattern) {
21
- return (jsxs("div", Object.assign({ ref: composedHostRef, className: cx(iconClasses.host, {
20
+ return (jsxs("div", { ref: composedHostRef, className: cx(iconClasses.host, {
22
21
  [iconClasses.stretch]: stretch,
23
- }, className) }, { children: [jsx(Overlay, Object.assign({}, overlayProps, { container: hostRef, onSurface: true, open: loading }, { children: spinElement }), void 0), children] }), void 0));
22
+ }, className), children: [jsx(Overlay, { ...overlayProps, container: hostRef, onSurface: true, open: loading, children: spinElement }), children] }));
24
23
  }
25
24
  return spinElement;
26
25
  });
package/Menu/Menu.js CHANGED
@@ -16,7 +16,7 @@ const Menu = forwardRef(function Menu(props, ref) {
16
16
  ...cssVars,
17
17
  ...styleProp,
18
18
  };
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));
19
+ return (jsx("ul", { ...rest, ref: ref, className: cx(menuClasses.host, menuClasses.size(size), className), role: role, style: style, children: children }));
20
20
  });
21
21
  var Menu$1 = Menu;
22
22
 
@@ -4,5 +4,5 @@ export declare type MenuDividerProps = NativeElementPropsWithoutKeyAndRef<'hr'>;
4
4
  /**
5
5
  * The react component for `mezzanine` menu divider.
6
6
  */
7
- declare const MenuDivider: import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLHRElement>>;
7
+ declare const MenuDivider: import("react").ForwardRefExoticComponent<MenuDividerProps & import("react").RefAttributes<HTMLHRElement>>;
8
8
  export default MenuDivider;
@@ -8,7 +8,7 @@ import cx from 'clsx';
8
8
  */
9
9
  const MenuDivider = forwardRef(function MenuDivider(props, ref) {
10
10
  const { className, ...rest } = props;
11
- return (jsx("hr", Object.assign({}, rest, { ref: ref, className: cx(menuDividerClasses.host, className) }), void 0));
11
+ return (jsx("hr", { ...rest, ref: ref, className: cx(menuDividerClasses.host, className) }));
12
12
  });
13
13
  var MenuDivider$1 = MenuDivider;
14
14
 
package/Menu/MenuItem.js CHANGED
@@ -12,15 +12,14 @@ const MenuItem = forwardRef(function MenuItem(props, ref) {
12
12
  const { active = false, children, className, disabled = false, onClick, onKeyDown = () => { }, role = 'menuitem', ...rest } = props;
13
13
  return (
14
14
  // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
15
- jsxs("li", Object.assign({}, rest, { ref: ref, "aria-disabled": disabled, className: cx(menuItemClasses.host, {
15
+ jsxs("li", { ...rest, ref: ref, "aria-disabled": disabled, className: cx(menuItemClasses.host, {
16
16
  [menuItemClasses.active]: active,
17
17
  [menuItemClasses.disabled]: disabled,
18
18
  }, className), onClick: (event) => {
19
19
  if (!disabled && onClick) {
20
20
  onClick(event);
21
21
  }
22
- }, onKeyDown: onKeyDown, role: role }, { children: [jsx("div", Object.assign({ className: menuItemClasses.label }, { children: children }), void 0),
23
- active && jsx(Icon, { className: menuItemClasses.activeIcon, icon: CheckIcon }, void 0)] }), void 0));
22
+ }, onKeyDown: onKeyDown, role: role, children: [jsx("div", { className: menuItemClasses.label, children: children }), active && jsx(Icon, { className: menuItemClasses.activeIcon, icon: CheckIcon })] }));
24
23
  });
25
24
  var MenuItem$1 = MenuItem;
26
25
 
@@ -8,8 +8,7 @@ import cx from 'clsx';
8
8
  */
9
9
  const MenuItemGroup = forwardRef(function MenuItemGroup(props, ref) {
10
10
  const { children, className, label, ...rest } = props;
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
- jsx("ul", Object.assign({ className: menuItemGroupClasses.items }, { children: children }), void 0)] }), void 0));
11
+ return (jsxs("li", { ref: ref, ...rest, className: cx(menuItemGroupClasses.host, className), children: [jsx("span", { className: menuItemGroupClasses.label, children: label }), jsx("ul", { className: menuItemGroupClasses.items, children: children })] }));
13
12
  });
14
13
  var MenuItemGroup$1 = MenuItemGroup;
15
14
 
@@ -32,12 +32,11 @@ const Message = ((props) => {
32
32
  if (reference)
33
33
  Message.remove(reference);
34
34
  };
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,
36
- jsx("span", Object.assign({ className: messageClasses.content }, { children: children }), void 0)] }), void 0) }), void 0));
35
+ return (jsx(SlideFade, { in: open, appear: true, onExited: onExited, ...restTransitionProps, children: jsxs("div", { className: cx(messageClasses.host, severity ? messageClasses.severity(severity) : ''), children: [icon ? (jsx(Icon, { className: messageClasses.icon, icon: icon })) : null, jsx("span", { className: messageClasses.content, children: children })] }) }));
37
36
  });
38
37
  const { add, config, destroy, remove, } = createNotifier({
39
38
  duration: 3000,
40
- render: (message) => jsx(Message, Object.assign({}, message), void 0),
39
+ render: (message) => jsx(Message, { ...message }),
41
40
  setRoot: (root) => {
42
41
  root.setAttribute('class', messageClasses.root);
43
42
  },
package/Modal/Modal.js CHANGED
@@ -17,10 +17,10 @@ const Modal = forwardRef(function Modal(props, ref) {
17
17
  severity,
18
18
  };
19
19
  const { Container: ModalContainer } = useModalContainer();
20
- return (jsx(ModalControlContext.Provider, Object.assign({ value: modalControl }, { children: jsx(ModalContainer, Object.assign({ className: modalClasses.overlay, container: container, direction: "down", disableCloseOnBackdropClick: disableCloseOnBackdropClick, disableCloseOnEscapeKeyDown: disableCloseOnEscapeKeyDown, disablePortal: disablePortal, hideBackdrop: hideBackdrop, invisibleBackdrop: invisibleBackdrop, onBackdropClick: onBackdropClick, onClose: onClose, open: open, ref: ref }, { children: jsxs("div", Object.assign({}, rest, { className: cx(modalClasses.host, modalClasses.severity(severity), modalClasses.size(size), {
20
+ return (jsx(ModalControlContext.Provider, { value: modalControl, children: jsx(ModalContainer, { className: modalClasses.overlay, container: container, direction: "down", disableCloseOnBackdropClick: disableCloseOnBackdropClick, disableCloseOnEscapeKeyDown: disableCloseOnEscapeKeyDown, disablePortal: disablePortal, hideBackdrop: hideBackdrop, invisibleBackdrop: invisibleBackdrop, onBackdropClick: onBackdropClick, onClose: onClose, open: open, ref: ref, children: jsxs("div", { ...rest, className: cx(modalClasses.host, modalClasses.severity(severity), modalClasses.size(size), {
21
21
  [modalClasses.fullScreen]: fullScreen,
22
22
  [modalClasses.withCloseIcon]: !hideCloseIcon,
23
- }, className), role: "dialog" }, { children: [children, !hideCloseIcon && (jsx(Icon, { className: modalClasses.closeIcon, icon: TimesIcon, onClick: onClose }, void 0))] }), void 0) }), void 0) }), void 0));
23
+ }, className), role: "dialog", children: [children, !hideCloseIcon && (jsx(Icon, { className: modalClasses.closeIcon, icon: TimesIcon, onClick: onClose }))] }) }) }));
24
24
  });
25
25
  var Modal$1 = Modal;
26
26
 
@@ -12,7 +12,7 @@ const ModalActions = forwardRef(function ModalActions(props, ref) {
12
12
  const { cancelButtonProps, cancelText, children, confirmButtonProps, confirmText, hideCancelButton, hideConfirmButton, onCancel, onConfirm, ...rest } = props;
13
13
  const { loading, severity, } = useContext(ModalControlContext);
14
14
  const danger = severity === 'error';
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));
15
+ return (jsxs(ModalFooter, { ...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 })] }));
16
16
  });
17
17
  var ModalActions$1 = ModalActions;
18
18
 
@@ -4,5 +4,5 @@ export declare type ModalBodyProps = NativeElementPropsWithoutKeyAndRef<'div'>;
4
4
  /**
5
5
  * The react component for `mezzanine` modal body.
6
6
  */
7
- declare const ModalBody: import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
7
+ declare const ModalBody: import("react").ForwardRefExoticComponent<ModalBodyProps & import("react").RefAttributes<HTMLDivElement>>;
8
8
  export default ModalBody;
@@ -8,7 +8,7 @@ import cx from 'clsx';
8
8
  */
9
9
  const ModalBody = forwardRef(function ModalBody(props, ref) {
10
10
  const { children, className, ...rest } = props;
11
- return (jsx("div", Object.assign({}, rest, { ref: ref, className: cx(modalClasses.body, className) }, { children: children }), void 0));
11
+ return (jsx("div", { ...rest, ref: ref, className: cx(modalClasses.body, className), children: children }));
12
12
  });
13
13
  var ModalBody$1 = ModalBody;
14
14
 
@@ -4,5 +4,5 @@ export declare type ModalFooterProps = NativeElementPropsWithoutKeyAndRef<'div'>
4
4
  /**
5
5
  * The react component for `mezzanine` modal footer.
6
6
  */
7
- declare const ModalFooter: import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
7
+ declare const ModalFooter: import("react").ForwardRefExoticComponent<ModalFooterProps & import("react").RefAttributes<HTMLDivElement>>;
8
8
  export default ModalFooter;
@@ -8,7 +8,7 @@ import cx from 'clsx';
8
8
  */
9
9
  const ModalFooter = forwardRef(function ModalFooter(props, ref) {
10
10
  const { children, className, ...rest } = props;
11
- return (jsx("div", Object.assign({}, rest, { ref: ref, className: cx(modalClasses.footer, className) }, { children: children }), void 0));
11
+ return (jsx("div", { ...rest, ref: ref, className: cx(modalClasses.footer, className), children: children }));
12
12
  });
13
13
  var ModalFooter$1 = ModalFooter;
14
14
 
@@ -11,10 +11,9 @@ import cx from 'clsx';
11
11
  const ModalHeader = forwardRef(function ModalHeader(props, ref) {
12
12
  const { children, className, showSeverityIcon = false, titleLarge = false, ...rest } = props;
13
13
  const { severity } = useContext(ModalControlContext);
14
- return (jsxs("div", Object.assign({}, rest, { ref: ref, className: cx(modalClasses.header, className) }, { children: [showSeverityIcon && (jsx(Icon, { className: modalClasses.severityIcon, icon: modalSeverityIcons[severity] }, void 0)),
15
- jsx("h3", Object.assign({ className: cx(modalClasses.title, {
14
+ return (jsxs("div", { ...rest, ref: ref, className: cx(modalClasses.header, className), children: [showSeverityIcon && (jsx(Icon, { className: modalClasses.severityIcon, icon: modalSeverityIcons[severity] })), jsx("h3", { className: cx(modalClasses.title, {
16
15
  [modalClasses.titleLarge]: titleLarge,
17
- }), title: typeof children === 'string' ? children : undefined }, { children: children }), void 0)] }), void 0));
16
+ }), title: typeof children === 'string' ? children : undefined, children: children })] }));
18
17
  });
19
18
  var ModalHeader$1 = ModalHeader;
20
19
 
@@ -15,7 +15,7 @@ const defaultOptions = {
15
15
  };
16
16
  const ModalContainer = forwardRef((props, ref) => {
17
17
  const { className = defaultOptions.className, children, container, direction = defaultOptions.direction, disableCloseOnBackdropClick = defaultOptions.disableCloseOnBackdropClick, disableCloseOnEscapeKeyDown = defaultOptions.disableCloseOnEscapeKeyDown, disablePortal = defaultOptions.disablePortal, hideBackdrop = defaultOptions.hideBackdrop, invisibleBackdrop = defaultOptions.invisibleBackdrop, onBackdropClick, onClose, open = defaultOptions.open, } = props;
18
- return (jsx(SlideFadeOverlay, Object.assign({ className: className, container: container, direction: direction, disableCloseOnBackdropClick: disableCloseOnBackdropClick, disableCloseOnEscapeKeyDown: disableCloseOnEscapeKeyDown, disablePortal: disablePortal, hideBackdrop: hideBackdrop, invisibleBackdrop: invisibleBackdrop, onBackdropClick: onBackdropClick, onClose: onClose, open: open, ref: ref }, { children: children }), void 0));
18
+ return (jsx(SlideFadeOverlay, { className: className, container: container, direction: direction, disableCloseOnBackdropClick: disableCloseOnBackdropClick, disableCloseOnEscapeKeyDown: disableCloseOnEscapeKeyDown, disablePortal: disablePortal, hideBackdrop: hideBackdrop, invisibleBackdrop: invisibleBackdrop, onBackdropClick: onBackdropClick, onClose: onClose, open: open, ref: ref, children: children }));
19
19
  });
20
20
  function useModalContainer() {
21
21
  return {
@@ -40,9 +40,9 @@ const Navigation = forwardRef((props, ref) => {
40
40
  }
41
41
  }
42
42
  });
43
- return (jsx("ul", Object.assign({}, rest, { ref: ref, className: cx(navigationClasses.host, navigationClasses[orientation], className) }, { children: jsx(NavigationContext.Provider, Object.assign({ value: {
43
+ return (jsx("ul", { ...rest, ref: ref, className: cx(navigationClasses.host, navigationClasses[orientation], className), children: jsx(NavigationContext.Provider, { value: {
44
44
  orientation,
45
- } }, { children: ItemChildren }), void 0) }), void 0));
45
+ }, children: ItemChildren }) }));
46
46
  });
47
47
  var Navigation$1 = Navigation;
48
48
 
@@ -16,7 +16,7 @@ const NavigationItem = forwardRef((props, ref) => {
16
16
  onClick(eventKey);
17
17
  }
18
18
  }, [eventKey, onClick, orientation]);
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));
19
+ return (jsxs("li", { ...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 })), children] }));
20
20
  });
21
21
  var NavigationItem$1 = NavigationItem;
22
22
 
@@ -54,12 +54,10 @@ const NavigationSubMenu = forwardRef((props, ref) => {
54
54
  open,
55
55
  orientation,
56
56
  ]);
57
- const WrapChildren = (jsx("ul", Object.assign({ className: navigationSubMenuClasses.group }, { children: children }), void 0));
58
- return (jsxs(NavigationItem, Object.assign({}, rest, { ref: composedNodeRef, className: cx(navigationSubMenuClasses.host, active && navigationSubMenuClasses.active, open && navigationSubMenuClasses.open, (icon && orientation === 'vertical') && navigationSubMenuClasses.indent, className), onClick: () => setOpen(!open) }, { children: [jsxs("div", Object.assign({ className: navigationSubMenuClasses.title }, { children: [icon && (jsx(Icon, { className: navigationSubMenuClasses.icon, icon: icon }, void 0)), title, jsx(Icon, { className: navigationSubMenuClasses.toggleIcon, icon: GroupToggleIcon }, void 0)] }), void 0),
59
- orientation === 'horizontal' && (jsx(Popper, Object.assign({ anchor: nodeRef, disablePortal: true, open: !!open, options: popperOptions }, { children: WrapChildren }), void 0)),
60
- orientation === 'vertical' && (jsx(Collapse, Object.assign({ style: {
57
+ const WrapChildren = (jsx("ul", { className: navigationSubMenuClasses.group, children: children }));
58
+ return (jsxs(NavigationItem, { ...rest, ref: composedNodeRef, className: cx(navigationSubMenuClasses.host, active && navigationSubMenuClasses.active, open && navigationSubMenuClasses.open, (icon && orientation === 'vertical') && navigationSubMenuClasses.indent, className), onClick: () => setOpen(!open), children: [jsxs("div", { className: navigationSubMenuClasses.title, children: [icon && (jsx(Icon, { className: navigationSubMenuClasses.icon, icon: icon })), title, jsx(Icon, { className: navigationSubMenuClasses.toggleIcon, icon: GroupToggleIcon })] }), orientation === 'horizontal' && (jsx(Popper, { anchor: nodeRef, disablePortal: true, open: !!open, options: popperOptions, children: WrapChildren })), orientation === 'vertical' && (jsx(Collapse, { style: {
61
59
  width: '100%',
62
- }, in: !!open }, { children: WrapChildren }), void 0))] }), void 0));
60
+ }, in: !!open, children: WrapChildren }))] }));
63
61
  });
64
62
  var NavigationSubMenu$1 = NavigationSubMenu;
65
63
 
@@ -50,16 +50,11 @@ const Notification = ((props) => {
50
50
  }
51
51
  Notification.remove(reference);
52
52
  };
53
- return (jsx(SlideFade, Object.assign({ in: open, appear: true, onExited: onExited, direction: direction }, restTransitionProps, { children: jsxs("div", Object.assign({ className: cx(notificationClasses.host, severity ? notificationClasses.severity(severity) : undefined) }, { children: [targetIcon ? (jsx("div", Object.assign({ className: notificationClasses.iconContainer }, { children: jsx(Icon, { icon: targetIcon, className: notificationClasses.severityIcon }, void 0) }), void 0)) : null,
54
- jsxs("div", Object.assign({ className: notificationClasses.body }, { children: [jsx("h4", Object.assign({ className: notificationClasses.title }, { children: title }), void 0),
55
- jsx("div", Object.assign({ className: notificationClasses.content }, { children: children }), void 0),
56
- onConfirm && !severity ? (jsxs(ButtonGroup, Object.assign({ className: notificationClasses.action }, { children: [jsx(Button, Object.assign({ variant: "contained", onClick: onConfirm }, { children: confirmText }), void 0),
57
- jsx(Button, Object.assign({ variant: "outlined", onClick: onCancel || onClose }, { children: cancelText }), void 0)] }), void 0)) : null] }), void 0),
58
- jsx(Icon, { icon: TimesIcon, className: notificationClasses.closeIcon, onClick: onClose }, void 0)] }), void 0) }), void 0));
53
+ return (jsx(SlideFade, { in: open, appear: true, onExited: onExited, direction: direction, ...restTransitionProps, children: jsxs("div", { className: cx(notificationClasses.host, severity ? notificationClasses.severity(severity) : undefined), children: [targetIcon ? (jsx("div", { className: notificationClasses.iconContainer, children: jsx(Icon, { icon: targetIcon, className: notificationClasses.severityIcon }) })) : null, jsxs("div", { className: notificationClasses.body, children: [jsx("h4", { className: notificationClasses.title, children: title }), jsx("div", { className: notificationClasses.content, children: children }), onConfirm && !severity ? (jsxs(ButtonGroup, { className: notificationClasses.action, children: [jsx(Button, { variant: "contained", onClick: onConfirm, children: confirmText }), jsx(Button, { variant: "outlined", onClick: onCancel || onClose, children: cancelText })] })) : null] }), jsx(Icon, { icon: TimesIcon, className: notificationClasses.closeIcon, onClick: onClose })] }) }));
59
54
  });
60
55
  const { add, config, destroy, remove, } = createNotifier({
61
56
  duration: false,
62
- render: (notif) => jsx(Notification, Object.assign({}, notif), void 0),
57
+ render: (notif) => jsx(Notification, { ...notif }),
63
58
  setRoot: (root) => {
64
59
  root.setAttribute('class', notificationClasses.root);
65
60
  },
@@ -25,7 +25,7 @@ function NotifierManager(props) {
25
25
  },
26
26
  }), []);
27
27
  useImperativeHandle(controllerRef, () => controller, [controller]);
28
- return (jsx(Fragment, { children: notifiersShouldRendered.map((notifier) => (jsx(Fragment$1, { children: render(notifier) }, notifier.key))) }, void 0));
28
+ return (jsx(Fragment, { children: notifiersShouldRendered.map((notifier) => (jsx(Fragment$1, { children: render(notifier) }, notifier.key))) }));
29
29
  }
30
30
 
31
31
  export { NotifierManager as default };
@@ -37,7 +37,7 @@ function createNotifier(props) {
37
37
  controllerRef.current.add(resolvedNotifier);
38
38
  }
39
39
  else {
40
- render((jsx(NotifierManager, { controllerRef: controllerRef, defaultNotifiers: [resolvedNotifier], maxCount: currentConfig.maxCount, render: renderNotifier }, void 0)), root);
40
+ render((jsx(NotifierManager, { controllerRef: controllerRef, defaultNotifiers: [resolvedNotifier], maxCount: currentConfig.maxCount, render: renderNotifier })), root);
41
41
  }
42
42
  return resolvedNotifier.key;
43
43
  },
@@ -11,10 +11,10 @@ import cx from 'clsx';
11
11
  const Overlay = forwardRef(function Overlay(props, ref) {
12
12
  const { children, className, container, disableCloseOnBackdropClick = false, disablePortal, hideBackdrop = false, invisibleBackdrop = false, onBackdropClick, onClose, onSurface, open = false, ...rest } = props;
13
13
  const fixedAtBody = Boolean(!container);
14
- return (jsx(Portal, Object.assign({ container: container, disablePortal: disablePortal }, { children: jsxs("div", Object.assign({}, rest, { ref: ref, className: cx(overlayClasses.host, {
14
+ return (jsx(Portal, { container: container, disablePortal: disablePortal, children: jsxs("div", { ...rest, ref: ref, className: cx(overlayClasses.host, {
15
15
  [overlayClasses.hostFixed]: fixedAtBody,
16
16
  [overlayClasses.hostOpen]: open,
17
- }, className) }, { children: [hideBackdrop ? null : (jsx(Fade, Object.assign({ in: open }, { children: jsx("div", { "aria-hidden": true, className: cx(overlayClasses.backdrop, {
17
+ }, className), children: [hideBackdrop ? null : (jsx(Fade, { in: open, children: jsx("div", { "aria-hidden": true, className: cx(overlayClasses.backdrop, {
18
18
  [overlayClasses.backdropFixed]: fixedAtBody,
19
19
  [overlayClasses.invisible]: invisibleBackdrop,
20
20
  [overlayClasses.backdropOnSurface]: onSurface,
@@ -25,7 +25,7 @@ const Overlay = forwardRef(function Overlay(props, ref) {
25
25
  if (onBackdropClick) {
26
26
  onBackdropClick(event);
27
27
  }
28
- } }, void 0) }), void 0)), children] }), void 0) }), void 0));
28
+ } }) })), children] }) }));
29
29
  });
30
30
  var Overlay$1 = Overlay;
31
31
 
@@ -6,8 +6,7 @@ import cx from 'clsx';
6
6
 
7
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
- 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
- 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));
9
+ return (jsxs("footer", { ref: ref, ...rest, className: cx(pageFooterClasses.host, className), children: [jsx("div", { className: actionClassName, children: children }), jsx(ConfirmActions, { cancelText: cancelText, confirmText: confirmText, cancelButtonProps: cancelButtonProps, confirmButtonProps: confirmButtonProps, danger: danger, hideCancelButton: hideCancelButton, hideConfirmButton: hideConfirmButton, loading: loading, onCancel: onCancel, onConfirm: onConfirm })] }));
11
10
  });
12
11
  var PageFooter$1 = PageFooter;
13
12
 
@@ -10,7 +10,7 @@ import cx from 'clsx';
10
10
  * The react component for `mezzanine` pagination.
11
11
  */
12
12
  const Pagination = forwardRef((props, ref) => {
13
- const { className, boundaryCount = 1, buttonText, current = 1, disabled = false, hideNextButton = false, hidePreviousButton = false, hintText, inputPlaceholder, itemRender = (item) => jsx(PaginationItem, Object.assign({}, item), void 0), onChange, pageSize = 5, showJumper = false, siblingCount = 1, total = 0, ...rest } = props;
13
+ const { className, boundaryCount = 1, buttonText, current = 1, disabled = false, hideNextButton = false, hidePreviousButton = false, hintText, inputPlaceholder, itemRender = (item) => jsx(PaginationItem, { ...item }), onChange, pageSize = 5, showJumper = false, siblingCount = 1, total = 0, ...rest } = props;
14
14
  const { items } = usePagination({
15
15
  boundaryCount,
16
16
  current,
@@ -22,8 +22,7 @@ const Pagination = forwardRef((props, ref) => {
22
22
  siblingCount,
23
23
  total,
24
24
  });
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
- 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));
25
+ return (jsx("nav", { ...rest, ref: ref, "aria-label": "pagination navigation", className: cx(paginationClasses.host, className), children: jsxs("ul", { className: paginationClasses.container, children: [items.map((item, index) => (jsx("li", { className: paginationClasses.item, children: itemRender(item) }, index))), showJumper && (jsx("li", { className: paginationClasses.jumper, children: jsx(PaginationJumper, { buttonText: buttonText, disabled: disabled, hintText: hintText, inputPlaceholder: inputPlaceholder, onChange: onChange, pageSize: pageSize, total: total }) }))] }) }));
27
26
  });
28
27
  var Pagination$1 = Pagination;
29
28
 
@@ -12,13 +12,13 @@ const PaginationItem = forwardRef((props, ref) => {
12
12
  previous: ChevronLeftIcon,
13
13
  };
14
14
  const ButtonIcon = icons[type];
15
- return type === 'ellipsis' ? (jsx("div", Object.assign({}, rest, { ref: ref, className: cx(paginationItemClasses.host, paginationItemClasses.ellipsis, {
15
+ return type === 'ellipsis' ? (jsx("div", { ...rest, ref: ref, className: cx(paginationItemClasses.host, paginationItemClasses.ellipsis, {
16
16
  [paginationItemClasses.disabled]: disabled,
17
- }, className) }, { children: "..." }), void 0)) : (createElement("button", Object.assign({}, rest, { ref: ref, key: page, disabled: disabled, className: cx(paginationItemClasses.host, paginationItemClasses.button, {
17
+ }, className), children: "..." })) : (createElement("button", { ...rest, ref: ref, key: page, disabled: disabled, className: cx(paginationItemClasses.host, paginationItemClasses.button, {
18
18
  [paginationItemClasses.active]: active,
19
19
  [paginationItemClasses.disabled]: disabled,
20
- }, className), type: "button" }),
21
- ButtonIcon && jsx(Icon, { icon: ButtonIcon }, void 0),
20
+ }, className), type: "button" },
21
+ ButtonIcon && jsx(Icon, { icon: ButtonIcon }),
22
22
  type === 'page' && page));
23
23
  });
24
24
  var PaginationItem$1 = PaginationItem;