@onesy/ui-react 1.0.92 → 1.0.93

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.
@@ -8,6 +8,7 @@ export declare type ITopAppBar = Omit<ISurface, 'version'> & {
8
8
  title?: IElement;
9
9
  start?: IElement;
10
10
  end?: IElement;
11
+ WrapperProps?: any;
11
12
  };
12
13
  declare const TopAppBar: React.FC<ITopAppBar>;
13
14
  export default TopAppBar;
@@ -111,7 +111,7 @@ const TopAppBar = react_1.default.forwardRef((props_, ref) => {
111
111
  const Line = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Line) || Line_1.default; }, [theme]);
112
112
  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]);
113
113
  const Type = react_1.default.useMemo(() => { var _a; return ((_a = theme === null || theme === void 0 ? void 0 : theme.elements) === null || _a === void 0 ? void 0 : _a.Type) || Type_1.default; }, [theme]);
114
- const { tonal = true, color = 'primary', version = 'small', size = 'regular', center = true, title: title_, start: start_, end: end_, position, Component = 'div', className, children: children_ } = props, other = __rest(props, ["tonal", "color", "version", "size", "center", "title", "start", "end", "position", "Component", "className", "children"]);
114
+ const { tonal = true, color = 'primary', version = 'small', size = 'regular', center = true, title: title_, start: start_, end: end_, position, WrapperProps, Component = 'div', className, children: children_ } = props, other = __rest(props, ["tonal", "color", "version", "size", "center", "title", "start", "end", "position", "WrapperProps", "Component", "className", "children"]);
115
115
  const { classes } = useStyle();
116
116
  const start = react_1.default.Children
117
117
  .toArray(start_)
@@ -176,10 +176,11 @@ const TopAppBar = react_1.default.forwardRef((props_, ref) => {
176
176
  classes.root,
177
177
  position && classes[`position_${position}`],
178
178
  center && classes[`center${['absolute', 'fixed'].includes(position) ? '_absolute' : ''}`]
179
- ]) }, other, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ direction: 'row', align: 'center', justify: 'space-between', gap: 0, className: (0, style_react_1.classNames)([
179
+ ]) }, other, { children: [(0, jsx_runtime_1.jsxs)(Line, Object.assign({ direction: 'row', align: 'center', justify: 'space-between', gap: 0 }, WrapperProps, { className: (0, style_react_1.classNames)([
180
180
  (0, utils_2.staticClassName)('TopAppBar', theme) && [
181
181
  'onesy-TopAppBar-wrapper'
182
182
  ],
183
+ WrapperProps === null || WrapperProps === void 0 ? void 0 : WrapperProps.className,
183
184
  classes.wrapper,
184
185
  classes[`version_small_size_${size}`]
185
186
  ]) }, { children: [!!start.length && ((0, jsx_runtime_1.jsx)(Line, Object.assign({ direction: 'row', align: 'center', justify: 'flex-start', gap: 0, className: (0, style_react_1.classNames)([
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- const _excluded = ["tonal", "color", "version", "size", "center", "title", "start", "end", "position", "Component", "className", "children"];
4
+ const _excluded = ["tonal", "color", "version", "size", "center", "title", "start", "end", "position", "WrapperProps", "Component", "className", "children"];
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import React from 'react';
@@ -136,6 +136,7 @@ const TopAppBar = /*#__PURE__*/React.forwardRef((props_, ref) => {
136
136
  start: start_,
137
137
  end: end_,
138
138
  position,
139
+ WrapperProps,
139
140
  Component = 'div',
140
141
  className,
141
142
  children: children_
@@ -193,13 +194,14 @@ const TopAppBar = /*#__PURE__*/React.forwardRef((props_, ref) => {
193
194
  Component
194
195
  },
195
196
  className: classNames([staticClassName('TopAppBar', theme) && ['onesy-TopAppBar-root', `onesy-TopAppBar-version-${version}`, `onesy-TopAppBar-size-${size}`], className, classes.root, position && classes[`position_${position}`], center && classes[`center${['absolute', 'fixed'].includes(position) ? '_absolute' : ''}`]])
196
- }, other), /*#__PURE__*/React.createElement(Line, {
197
+ }, other), /*#__PURE__*/React.createElement(Line, _extends({
197
198
  direction: "row",
198
199
  align: "center",
199
200
  justify: "space-between",
200
- gap: 0,
201
- className: classNames([staticClassName('TopAppBar', theme) && ['onesy-TopAppBar-wrapper'], classes.wrapper, classes[`version_small_size_${size}`]])
202
- }, !!start.length && /*#__PURE__*/React.createElement(Line, {
201
+ gap: 0
202
+ }, WrapperProps, {
203
+ className: classNames([staticClassName('TopAppBar', theme) && ['onesy-TopAppBar-wrapper'], WrapperProps?.className, classes.wrapper, classes[`version_small_size_${size}`]])
204
+ }), !!start.length && /*#__PURE__*/React.createElement(Line, {
203
205
  direction: "row",
204
206
  align: "center",
205
207
  justify: "flex-start",
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license UiReact v1.0.92
1
+ /** @license UiReact v1.0.93
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.92",
3
+ "version": "1.0.93",
4
4
  "description": "UI for React",
5
5
  "repository": "https://github.com/onesy-me/onesy.git",
6
6
  "author": "Lazar <lazareric2@gmail.com>",