@superdispatch/ui 0.21.5-alpha.0 → 0.21.5-alpha.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.
package/dist-node/index.js
CHANGED
|
@@ -11,7 +11,6 @@ var material = require('@mui/material');
|
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var lab = require('@mui/lab');
|
|
13
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
14
|
-
var core = require('@material-ui/core');
|
|
15
14
|
var styled = require('styled-components');
|
|
16
15
|
var styled__default = _interopDefault(styled);
|
|
17
16
|
var resizeObserver = require('@juggle/resize-observer');
|
|
@@ -106,7 +105,7 @@ var DropdownButton = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
106
105
|
}
|
|
107
106
|
|
|
108
107
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
109
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(
|
|
108
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(material.ButtonGroup, _objectSpread(_objectSpread({}, ButtonGroupProps), {}, {
|
|
110
109
|
ref: mergeRefs(ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.ref, anchorRef),
|
|
111
110
|
fullWidth: (ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.fullWidth) || buttonProps.fullWidth,
|
|
112
111
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread(_objectSpread({
|
|
@@ -126,7 +125,7 @@ var DropdownButton = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
126
125
|
"aria-expanded": open ? 'true' : undefined,
|
|
127
126
|
children: /*#__PURE__*/jsxRuntime.jsx(CaretDownIcon, {})
|
|
128
127
|
})]
|
|
129
|
-
})), /*#__PURE__*/jsxRuntime.jsx(
|
|
128
|
+
})), /*#__PURE__*/jsxRuntime.jsx(material.Popover, {
|
|
130
129
|
open: open,
|
|
131
130
|
onClose: handleClose,
|
|
132
131
|
anchorEl: anchorRef.current,
|
|
@@ -138,7 +137,7 @@ var DropdownButton = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
138
137
|
style: {
|
|
139
138
|
minWidth: (_anchorRef$current2 = anchorRef.current) === null || _anchorRef$current2 === void 0 ? void 0 : _anchorRef$current2.clientWidth
|
|
140
139
|
},
|
|
141
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
140
|
+
children: /*#__PURE__*/jsxRuntime.jsx(material.MenuList, _objectSpread(_objectSpread({}, MenuListProps), {}, {
|
|
142
141
|
id: uid,
|
|
143
142
|
onClick: () => {
|
|
144
143
|
setOpen(false);
|