@natoora-libs/core 0.2.25 → 0.2.27

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.
@@ -152,6 +152,7 @@ declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentPro
152
152
  interface BackHeaderProps {
153
153
  appName: string;
154
154
  onGoBackClick?: () => void;
155
+ sideComponent?: React.ReactElement;
155
156
  }
156
157
  declare const BackHeader: React.FC<BackHeaderProps>;
157
158
 
@@ -152,6 +152,7 @@ declare const AutocompleteFilterMenuContent: FC<AutocompleteFilterMenuContentPro
152
152
  interface BackHeaderProps {
153
153
  appName: string;
154
154
  onGoBackClick?: () => void;
155
+ sideComponent?: React.ReactElement;
155
156
  }
156
157
  declare const BackHeader: React.FC<BackHeaderProps>;
157
158
 
@@ -14,9 +14,9 @@ import {
14
14
  __toESM
15
15
  } from "../chunk-5WRI5ZAA.js";
16
16
 
17
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js
17
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js
18
18
  var require_isObject = __commonJS({
19
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js"(exports, module) {
19
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js"(exports, module) {
20
20
  function isObject(value) {
21
21
  var type = typeof value;
22
22
  return value != null && (type == "object" || type == "function");
@@ -25,17 +25,17 @@ var require_isObject = __commonJS({
25
25
  }
26
26
  });
27
27
 
28
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js
28
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js
29
29
  var require_freeGlobal = __commonJS({
30
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js"(exports, module) {
30
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js"(exports, module) {
31
31
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
32
32
  module.exports = freeGlobal;
33
33
  }
34
34
  });
35
35
 
36
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js
36
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js
37
37
  var require_root = __commonJS({
38
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js"(exports, module) {
38
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js"(exports, module) {
39
39
  var freeGlobal = require_freeGlobal();
40
40
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
41
41
  var root = freeGlobal || freeSelf || Function("return this")();
@@ -43,9 +43,9 @@ var require_root = __commonJS({
43
43
  }
44
44
  });
45
45
 
46
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js
46
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js
47
47
  var require_now = __commonJS({
48
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js"(exports, module) {
48
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js"(exports, module) {
49
49
  var root = require_root();
50
50
  var now = function() {
51
51
  return root.Date.now();
@@ -54,9 +54,9 @@ var require_now = __commonJS({
54
54
  }
55
55
  });
56
56
 
57
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js
57
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js
58
58
  var require_trimmedEndIndex = __commonJS({
59
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js"(exports, module) {
59
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js"(exports, module) {
60
60
  var reWhitespace = /\s/;
61
61
  function trimmedEndIndex(string) {
62
62
  var index = string.length;
@@ -68,9 +68,9 @@ var require_trimmedEndIndex = __commonJS({
68
68
  }
69
69
  });
70
70
 
71
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js
71
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js
72
72
  var require_baseTrim = __commonJS({
73
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js"(exports, module) {
73
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js"(exports, module) {
74
74
  var trimmedEndIndex = require_trimmedEndIndex();
75
75
  var reTrimStart = /^\s+/;
76
76
  function baseTrim(string) {
@@ -80,18 +80,18 @@ var require_baseTrim = __commonJS({
80
80
  }
81
81
  });
82
82
 
83
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js
83
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js
84
84
  var require_Symbol = __commonJS({
85
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js"(exports, module) {
85
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js"(exports, module) {
86
86
  var root = require_root();
87
87
  var Symbol = root.Symbol;
88
88
  module.exports = Symbol;
89
89
  }
90
90
  });
91
91
 
92
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js
92
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js
93
93
  var require_getRawTag = __commonJS({
94
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js"(exports, module) {
94
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js"(exports, module) {
95
95
  var Symbol = require_Symbol();
96
96
  var objectProto = Object.prototype;
97
97
  var hasOwnProperty = objectProto.hasOwnProperty;
@@ -118,9 +118,9 @@ var require_getRawTag = __commonJS({
118
118
  }
119
119
  });
120
120
 
121
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js
121
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js
122
122
  var require_objectToString = __commonJS({
123
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js"(exports, module) {
123
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js"(exports, module) {
124
124
  var objectProto = Object.prototype;
125
125
  var nativeObjectToString = objectProto.toString;
126
126
  function objectToString(value) {
@@ -130,9 +130,9 @@ var require_objectToString = __commonJS({
130
130
  }
131
131
  });
132
132
 
133
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js
133
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js
134
134
  var require_baseGetTag = __commonJS({
135
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js"(exports, module) {
135
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js"(exports, module) {
136
136
  var Symbol = require_Symbol();
137
137
  var getRawTag = require_getRawTag();
138
138
  var objectToString = require_objectToString();
@@ -149,9 +149,9 @@ var require_baseGetTag = __commonJS({
149
149
  }
150
150
  });
151
151
 
152
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js
152
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js
153
153
  var require_isObjectLike = __commonJS({
154
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js"(exports, module) {
154
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js"(exports, module) {
155
155
  function isObjectLike(value) {
156
156
  return value != null && typeof value == "object";
157
157
  }
@@ -159,9 +159,9 @@ var require_isObjectLike = __commonJS({
159
159
  }
160
160
  });
161
161
 
162
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js
162
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js
163
163
  var require_isSymbol = __commonJS({
164
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js"(exports, module) {
164
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js"(exports, module) {
165
165
  var baseGetTag = require_baseGetTag();
166
166
  var isObjectLike = require_isObjectLike();
167
167
  var symbolTag = "[object Symbol]";
@@ -172,9 +172,9 @@ var require_isSymbol = __commonJS({
172
172
  }
173
173
  });
174
174
 
175
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js
175
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js
176
176
  var require_toNumber = __commonJS({
177
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js"(exports, module) {
177
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js"(exports, module) {
178
178
  var baseTrim = require_baseTrim();
179
179
  var isObject = require_isObject();
180
180
  var isSymbol = require_isSymbol();
@@ -205,9 +205,9 @@ var require_toNumber = __commonJS({
205
205
  }
206
206
  });
207
207
 
208
- // ../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js
208
+ // ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js
209
209
  var require_debounce = __commonJS({
210
- "../node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js"(exports, module) {
210
+ "../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js"(exports, module) {
211
211
  var isObject = require_isObject();
212
212
  var now = require_now();
213
213
  var toNumber = require_toNumber();
@@ -1883,12 +1883,15 @@ var AutocompleteFilterMenuContent = ({
1883
1883
 
1884
1884
  // src/components/BackHeader/BackHeader.tsx
1885
1885
  import { useNavigate } from "react-router";
1886
- import { KeyboardBackspace as KeyboardBackspaceIcon } from "@mui/icons-material";
1886
+ import KeyboardBackspace from "@mui/icons-material/KeyboardBackspace";
1887
1887
  import { Box as Box14, Button as Button6, Typography as Typography7 } from "@mui/material";
1888
1888
  import { makeStyles as makeStyles5 } from "tss-react/mui";
1889
1889
  import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
1890
1890
  var useStyles5 = makeStyles5()((theme) => ({
1891
1891
  header: {
1892
+ display: "flex",
1893
+ alignItems: "center",
1894
+ justifyContent: "space-between",
1892
1895
  padding: theme.spacing(2, 3),
1893
1896
  borderBottom: `1px solid ${colors.neutral400}`,
1894
1897
  backgroundColor: colors.neutral100
@@ -1909,7 +1912,11 @@ var useStyles5 = makeStyles5()((theme) => ({
1909
1912
  textTransform: "none"
1910
1913
  }
1911
1914
  }));
1912
- var BackHeader = ({ appName, onGoBackClick }) => {
1915
+ var BackHeader = ({
1916
+ appName,
1917
+ onGoBackClick,
1918
+ sideComponent = null
1919
+ }) => {
1913
1920
  const { classes } = useStyles5();
1914
1921
  const navigate = useNavigate();
1915
1922
  const handleBackClick = () => {
@@ -1918,10 +1925,13 @@ var BackHeader = ({ appName, onGoBackClick }) => {
1918
1925
  }
1919
1926
  return navigate(-1);
1920
1927
  };
1921
- return /* @__PURE__ */ jsx18(Box14, { component: "header", className: classes.header, children: /* @__PURE__ */ jsx18(Button6, { className: classes.button, onClick: handleBackClick, children: /* @__PURE__ */ jsxs14(Box14, { component: "span", className: classes.text, children: [
1922
- /* @__PURE__ */ jsx18(KeyboardBackspaceIcon, { className: classes.icon }),
1923
- /* @__PURE__ */ jsx18(Typography7, { variant: "body1", children: appName })
1924
- ] }) }) });
1928
+ return /* @__PURE__ */ jsxs14(Box14, { component: "header", className: classes.header, children: [
1929
+ /* @__PURE__ */ jsx18(Button6, { className: classes.button, onClick: handleBackClick, children: /* @__PURE__ */ jsxs14(Box14, { component: "span", className: classes.text, children: [
1930
+ /* @__PURE__ */ jsx18(KeyboardBackspace, { className: classes.icon }),
1931
+ /* @__PURE__ */ jsx18(Typography7, { variant: "body1", color: "textPrimary", children: appName })
1932
+ ] }) }),
1933
+ sideComponent
1934
+ ] });
1925
1935
  };
1926
1936
  var BackHeader_default = BackHeader;
1927
1937