@etsoo/materialui 1.4.84 → 1.4.86
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/lib/cjs/SearchBar.js +2 -2
- package/lib/mjs/SearchBar.js +3 -3
- package/package.json +1 -1
- package/src/SearchBar.tsx +10 -4
package/lib/cjs/SearchBar.js
CHANGED
|
@@ -240,10 +240,10 @@ function SearchBar(props) {
|
|
|
240
240
|
};
|
|
241
241
|
}, [className]);
|
|
242
242
|
// Layout
|
|
243
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
243
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Container, { fixed: true, ref: dimensions[0][0], children: [(0, jsx_runtime_1.jsx)("form", { id: "SearchBarForm", className: className, onChange: handleForm, ref: (form) => {
|
|
244
244
|
if (form)
|
|
245
245
|
state.form = form;
|
|
246
|
-
}, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, {
|
|
246
|
+
}, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: `${itemGap}px`, width: "100%", overflow: "hidden", paddingTop: "6px", sx: {
|
|
247
247
|
"& > :not(style)": {
|
|
248
248
|
flexBasis: "auto",
|
|
249
249
|
flexGrow: 0,
|
package/lib/mjs/SearchBar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, Drawer, IconButton, Stack, Toolbar } from "@mui/material";
|
|
2
|
+
import { Button, Container, Drawer, IconButton, Stack, Toolbar } from "@mui/material";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
|
5
5
|
import { DomUtils, NumberUtils } from "@etsoo/shared";
|
|
@@ -234,10 +234,10 @@ export function SearchBar(props) {
|
|
|
234
234
|
};
|
|
235
235
|
}, [className]);
|
|
236
236
|
// Layout
|
|
237
|
-
return (_jsxs(
|
|
237
|
+
return (_jsxs(Container, { fixed: true, ref: dimensions[0][0], children: [_jsx("form", { id: "SearchBarForm", className: className, onChange: handleForm, ref: (form) => {
|
|
238
238
|
if (form)
|
|
239
239
|
state.form = form;
|
|
240
|
-
}, children: _jsxs(Stack, {
|
|
240
|
+
}, children: _jsxs(Stack, { className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: `${itemGap}px`, width: "100%", overflow: "hidden", paddingTop: "6px", sx: {
|
|
241
241
|
"& > :not(style)": {
|
|
242
242
|
flexBasis: "auto",
|
|
243
243
|
flexGrow: 0,
|
package/package.json
CHANGED
package/src/SearchBar.tsx
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Button,
|
|
3
|
+
Container,
|
|
4
|
+
Drawer,
|
|
5
|
+
IconButton,
|
|
6
|
+
Stack,
|
|
7
|
+
Toolbar
|
|
8
|
+
} from "@mui/material";
|
|
2
9
|
import React from "react";
|
|
3
10
|
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
|
4
11
|
import { DomUtils, NumberUtils } from "@etsoo/shared";
|
|
@@ -330,7 +337,7 @@ export function SearchBar(props: SearchBarProps) {
|
|
|
330
337
|
|
|
331
338
|
// Layout
|
|
332
339
|
return (
|
|
333
|
-
<
|
|
340
|
+
<Container fixed ref={dimensions[0][0]}>
|
|
334
341
|
<form
|
|
335
342
|
id="SearchBarForm"
|
|
336
343
|
className={className}
|
|
@@ -340,7 +347,6 @@ export function SearchBar(props: SearchBarProps) {
|
|
|
340
347
|
}}
|
|
341
348
|
>
|
|
342
349
|
<Stack
|
|
343
|
-
ref={dimensions[0][0]}
|
|
344
350
|
className="SearchBarContainer"
|
|
345
351
|
justifyContent="center"
|
|
346
352
|
alignItems="center"
|
|
@@ -423,6 +429,6 @@ export function SearchBar(props: SearchBarProps) {
|
|
|
423
429
|
</form>
|
|
424
430
|
</Drawer>
|
|
425
431
|
)}
|
|
426
|
-
</
|
|
432
|
+
</Container>
|
|
427
433
|
);
|
|
428
434
|
}
|