quix-ui 1.3.4 → 1.3.7
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare function useWindowEvent(type: keyof WindowEventMap, listener: () => void, options: any): void;
|
|
2
2
|
export { useWindowEvent };
|
|
3
|
-
declare function useViewportSize(): {
|
|
3
|
+
export declare function useViewportSize(): {
|
|
4
4
|
width: number;
|
|
5
5
|
height: number;
|
|
6
6
|
};
|
|
7
|
-
export { useViewportSize };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as jsx$1
|
|
1
|
+
import { jsxs, jsx as jsx$1 } from 'react/jsx-runtime';
|
|
2
2
|
import { useNavigate, Outlet, NavLink, Link, createBrowserRouter, RouterProvider } from 'react-router-dom';
|
|
3
3
|
import * as React2 from 'react';
|
|
4
4
|
import { forwardRef, useContext, useState, useCallback, useEffect } from 'react';
|
|
@@ -147,7 +147,7 @@ function FlexView(props) {
|
|
|
147
147
|
onClick = props.onClick,
|
|
148
148
|
onRightClick = props.onRightClick,
|
|
149
149
|
tooltip = props.tooltip;
|
|
150
|
-
return
|
|
150
|
+
return jsxs("div", {
|
|
151
151
|
onContextMenu: onRightClick,
|
|
152
152
|
onClick: onClick,
|
|
153
153
|
className: "".concat(className, " ").concat(layout, " quix_view "),
|
|
@@ -168,7 +168,7 @@ function FlexView(props) {
|
|
|
168
168
|
transition: '0.3s all',
|
|
169
169
|
position: tooltip ? 'relative' : 'unset'
|
|
170
170
|
}, style),
|
|
171
|
-
children: tooltip && jsx$1("div", {
|
|
171
|
+
children: [tooltip && jsx$1("div", {
|
|
172
172
|
style: {
|
|
173
173
|
position: 'absolute',
|
|
174
174
|
width: '100px',
|
|
@@ -183,7 +183,7 @@ function FlexView(props) {
|
|
|
183
183
|
},
|
|
184
184
|
className: "quix_tooltip",
|
|
185
185
|
children: tooltip.component
|
|
186
|
-
})
|
|
186
|
+
}), props.children]
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
|
|
@@ -2253,3 +2253,22 @@ function QuixRouterProvider(_ref) {
|
|
|
2253
2253
|
}
|
|
2254
2254
|
|
|
2255
2255
|
export { Buttons, FlexView, Layout, QuixRouterProvider };
|
|
2256
|
+
e.width > 850 ? Number((_sideMenu$width$deskt = sideMenu === null || sideMenu === void 0 || (_sideMenu$width2 = sideMenu.width) === null || _sideMenu$width2 === void 0 ? void 0 : _sideMenu$width2.desktop) !== null && _sideMenu$width$deskt !== void 0 ? _sideMenu$width$deskt : 300) : Number((_sideMenu$width$deskt2 = sideMenu === null || sideMenu === void 0 || (_sideMenu$width3 = sideMenu.width) === null || _sideMenu$width3 === void 0 ? void 0 : _sideMenu$width3.desktop) !== null && _sideMenu$width$deskt2 !== void 0 ? _sideMenu$width$deskt2 : 300)) + 30)
|
|
2257
|
+
},
|
|
2258
|
+
children: jsxRuntime.jsx(reactRouterDom.Outlet, {})
|
|
2259
|
+
})]
|
|
2260
|
+
});
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
function QuixRouterProvider(_ref) {
|
|
2264
|
+
var routes = _ref.routes;
|
|
2265
|
+
var router = reactRouterDom.createBrowserRouter(routes);
|
|
2266
|
+
return jsxRuntime.jsx(reactRouterDom.RouterProvider, {
|
|
2267
|
+
router: router
|
|
2268
|
+
});
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
exports.Buttons = Buttons;
|
|
2272
|
+
exports.FlexView = FlexView;
|
|
2273
|
+
exports.Layout = Layout;
|
|
2274
|
+
exports.QuixRouterProvider = QuixRouterProvider;
|