@etsoo/materialui 1.4.84 → 1.4.85
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 +1 -1
- package/lib/mjs/SearchBar.js +2 -2
- package/package.json +1 -1
- package/src/SearchBar.tsx +10 -3
package/lib/cjs/SearchBar.js
CHANGED
|
@@ -240,7 +240,7 @@ 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, 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
246
|
}, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { ref: dimensions[0][0], className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: `${itemGap}px`, width: "100%", overflow: "hidden", paddingTop: "6px", sx: {
|
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,7 +234,7 @@ export function SearchBar(props) {
|
|
|
234
234
|
};
|
|
235
235
|
}, [className]);
|
|
236
236
|
// Layout
|
|
237
|
-
return (_jsxs(
|
|
237
|
+
return (_jsxs(Container, { fixed: true, children: [_jsx("form", { id: "SearchBarForm", className: className, onChange: handleForm, ref: (form) => {
|
|
238
238
|
if (form)
|
|
239
239
|
state.form = form;
|
|
240
240
|
}, children: _jsxs(Stack, { ref: dimensions[0][0], className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: `${itemGap}px`, width: "100%", overflow: "hidden", paddingTop: "6px", sx: {
|
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>
|
|
334
341
|
<form
|
|
335
342
|
id="SearchBarForm"
|
|
336
343
|
className={className}
|
|
@@ -423,6 +430,6 @@ export function SearchBar(props: SearchBarProps) {
|
|
|
423
430
|
</form>
|
|
424
431
|
</Drawer>
|
|
425
432
|
)}
|
|
426
|
-
</
|
|
433
|
+
</Container>
|
|
427
434
|
);
|
|
428
435
|
}
|