@onesy/ui-react 1.0.129 → 1.0.130

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.
@@ -37,7 +37,7 @@ const useStyle = (0, style_react_1.style)(theme => ({
37
37
  size_large: { padding: '18px 30px' },
38
38
  fixed: {
39
39
  position: 'fixed',
40
- bottom: '8px',
40
+ bottom: '12px',
41
41
  left: '50%',
42
42
  transform: 'translateX(-50%)'
43
43
  }
@@ -49,7 +49,7 @@ const BottomAppBar = react_1.default.forwardRef((props_, ref) => {
49
49
  const Surface = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Surface) || Surface_1.default; }, [theme]);
50
50
  const { tonal = true, color = 'default', size = 'regular', fixed = true, className, style, children } = props, other = __rest(props, ["tonal", "color", "size", "fixed", "className", "style", "children"]);
51
51
  const { classes } = useStyle();
52
- return ((0, jsx_runtime_1.jsx)(Surface, Object.assign({ ref: ref, color: color, tonal: tonal, gap: 4, direction: 'row', align: 'center', justify: 'space-between', Component: Line, className: (0, style_react_1.classNames)([
52
+ return ((0, jsx_runtime_1.jsx)(Surface, Object.assign({ ref: ref, color: color, tonal: tonal, gap: 0, direction: 'row', align: 'unset', justify: 'unset', Component: Line, fullWidth: true, className: (0, style_react_1.classNames)([
53
53
  (0, utils_1.staticClassName)('BottomAppBar', theme) && [
54
54
  'onesy-BottomAppBar-root',
55
55
  `onesy-BottomAppBar-size-${size}`
@@ -32,7 +32,7 @@ const useStyle = styleMethod(theme => ({
32
32
  },
33
33
  fixed: {
34
34
  position: 'fixed',
35
- bottom: '8px',
35
+ bottom: '12px',
36
36
  left: '50%',
37
37
  transform: 'translateX(-50%)'
38
38
  }
@@ -61,11 +61,12 @@ const BottomAppBar = /*#__PURE__*/React.forwardRef((props_, ref) => {
61
61
  ref: ref,
62
62
  color: color,
63
63
  tonal: tonal,
64
- gap: 4,
64
+ gap: 0,
65
65
  direction: "row",
66
- align: "center",
67
- justify: "space-between",
66
+ align: "unset",
67
+ justify: "unset",
68
68
  Component: Line,
69
+ fullWidth: true,
69
70
  className: classNames([staticClassName('BottomAppBar', theme) && ['onesy-BottomAppBar-root', `onesy-BottomAppBar-size-${size}`], className, classes.root, classes[`size_${size}`], fixed && classes.fixed]),
70
71
  style: _objectSpread({
71
72
  maxWidth: `clamp(100px, ${(children?.length || 3) * 110}px, calc(100vw - 24px))`
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.128
1
+ /** @license UiReact v1.0.129
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesy/ui-react",
3
- "version": "1.0.129",
3
+ "version": "1.0.130",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar Erić <lazareric1@proton.me>",