@onesy/ui-react 1.0.92 → 1.0.94
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/TopAppBar/TopAppBar.d.ts +1 -0
- package/TopAppBar/TopAppBar.js +3 -2
- package/esm/TopAppBar/TopAppBar.js +7 -5
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/TopAppBar/TopAppBar.d.ts
CHANGED
package/TopAppBar/TopAppBar.js
CHANGED
@@ -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
|
-
|
202
|
-
|
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
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@onesy/ui-react",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.94",
|
4
4
|
"description": "UI for React",
|
5
5
|
"repository": "https://github.com/onesy-me/onesy.git",
|
6
6
|
"author": "Lazar <lazareric2@gmail.com>",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"dependencies": {
|
39
39
|
"@onesy/date": "^1.0.2",
|
40
40
|
"@onesy/errors": "^1.0.0",
|
41
|
-
"@onesy/icons-material-rounded-react": "1.0.
|
41
|
+
"@onesy/icons-material-rounded-react": "1.0.5",
|
42
42
|
"@onesy/log": "^1.0.1",
|
43
43
|
"@onesy/models": "^1.0.0",
|
44
44
|
"@onesy/subscription": "^1.0.0",
|