@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.
@@ -240,7 +240,7 @@ function SearchBar(props) {
240
240
  };
241
241
  }, [className]);
242
242
  // Layout
243
- return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)("form", { id: "SearchBarForm", className: className, onChange: handleForm, ref: (form) => {
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: {
@@ -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(React.Fragment, { children: [_jsx("form", { id: "SearchBarForm", className: className, onChange: handleForm, ref: (form) => {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.4.84",
3
+ "version": "1.4.85",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
package/src/SearchBar.tsx CHANGED
@@ -1,4 +1,11 @@
1
- import { Button, Drawer, IconButton, Stack, Toolbar } from "@mui/material";
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
- <React.Fragment>
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
- </React.Fragment>
433
+ </Container>
427
434
  );
428
435
  }