@natoora-libs/core 0.2.37 → 0.2.39
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/dist/components/index.cjs +35 -32
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +35 -32
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -928,12 +928,11 @@ type SearchHeaderProps = {
|
|
|
928
928
|
children?: ReactNode;
|
|
929
929
|
onSearch?: (value: string) => void;
|
|
930
930
|
value?: string;
|
|
931
|
-
initialValue?: string;
|
|
932
931
|
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
933
932
|
onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
|
934
933
|
width?: number;
|
|
935
934
|
};
|
|
936
|
-
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width,
|
|
935
|
+
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
937
936
|
|
|
938
937
|
interface ISearchWithFiltersProps {
|
|
939
938
|
enterPressedInSearch?: () => void;
|
|
@@ -982,6 +981,7 @@ interface SmartSelectProps {
|
|
|
982
981
|
refetch?: () => void;
|
|
983
982
|
isFetching?: boolean;
|
|
984
983
|
onChange: (selectedOption: Option) => void;
|
|
984
|
+
onKeyDownCapture?: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
985
985
|
inputLabel?: string;
|
|
986
986
|
variant?: SelectProps['variant'];
|
|
987
987
|
size?: SelectProps['size'];
|
|
@@ -928,12 +928,11 @@ type SearchHeaderProps = {
|
|
|
928
928
|
children?: ReactNode;
|
|
929
929
|
onSearch?: (value: string) => void;
|
|
930
930
|
value?: string;
|
|
931
|
-
initialValue?: string;
|
|
932
931
|
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
933
932
|
onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
|
934
933
|
width?: number;
|
|
935
934
|
};
|
|
936
|
-
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width,
|
|
935
|
+
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
937
936
|
|
|
938
937
|
interface ISearchWithFiltersProps {
|
|
939
938
|
enterPressedInSearch?: () => void;
|
|
@@ -982,6 +981,7 @@ interface SmartSelectProps {
|
|
|
982
981
|
refetch?: () => void;
|
|
983
982
|
isFetching?: boolean;
|
|
984
983
|
onChange: (selectedOption: Option) => void;
|
|
984
|
+
onKeyDownCapture?: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
985
985
|
inputLabel?: string;
|
|
986
986
|
variant?: SelectProps['variant'];
|
|
987
987
|
size?: SelectProps['size'];
|
package/dist/components/index.js
CHANGED
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
__toESM
|
|
16
16
|
} from "../chunk-5WRI5ZAA.js";
|
|
17
17
|
|
|
18
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
18
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js
|
|
19
19
|
var require_isObject = __commonJS({
|
|
20
|
-
"../node_modules/.pnpm/lodash@4.
|
|
20
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js"(exports, module) {
|
|
21
21
|
function isObject(value) {
|
|
22
22
|
var type = typeof value;
|
|
23
23
|
return value != null && (type == "object" || type == "function");
|
|
@@ -26,17 +26,17 @@ var require_isObject = __commonJS({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
29
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js
|
|
30
30
|
var require_freeGlobal = __commonJS({
|
|
31
|
-
"../node_modules/.pnpm/lodash@4.
|
|
31
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js"(exports, module) {
|
|
32
32
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
33
33
|
module.exports = freeGlobal;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
37
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js
|
|
38
38
|
var require_root = __commonJS({
|
|
39
|
-
"../node_modules/.pnpm/lodash@4.
|
|
39
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js"(exports, module) {
|
|
40
40
|
var freeGlobal = require_freeGlobal();
|
|
41
41
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
42
42
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
@@ -44,9 +44,9 @@ var require_root = __commonJS({
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
47
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js
|
|
48
48
|
var require_now = __commonJS({
|
|
49
|
-
"../node_modules/.pnpm/lodash@4.
|
|
49
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js"(exports, module) {
|
|
50
50
|
var root = require_root();
|
|
51
51
|
var now = function() {
|
|
52
52
|
return root.Date.now();
|
|
@@ -55,9 +55,9 @@ var require_now = __commonJS({
|
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
58
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js
|
|
59
59
|
var require_trimmedEndIndex = __commonJS({
|
|
60
|
-
"../node_modules/.pnpm/lodash@4.
|
|
60
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js"(exports, module) {
|
|
61
61
|
var reWhitespace = /\s/;
|
|
62
62
|
function trimmedEndIndex(string) {
|
|
63
63
|
var index = string.length;
|
|
@@ -69,9 +69,9 @@ var require_trimmedEndIndex = __commonJS({
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
72
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js
|
|
73
73
|
var require_baseTrim = __commonJS({
|
|
74
|
-
"../node_modules/.pnpm/lodash@4.
|
|
74
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js"(exports, module) {
|
|
75
75
|
var trimmedEndIndex = require_trimmedEndIndex();
|
|
76
76
|
var reTrimStart = /^\s+/;
|
|
77
77
|
function baseTrim(string) {
|
|
@@ -81,18 +81,18 @@ var require_baseTrim = __commonJS({
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
84
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js
|
|
85
85
|
var require_Symbol = __commonJS({
|
|
86
|
-
"../node_modules/.pnpm/lodash@4.
|
|
86
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js"(exports, module) {
|
|
87
87
|
var root = require_root();
|
|
88
88
|
var Symbol = root.Symbol;
|
|
89
89
|
module.exports = Symbol;
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
93
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js
|
|
94
94
|
var require_getRawTag = __commonJS({
|
|
95
|
-
"../node_modules/.pnpm/lodash@4.
|
|
95
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js"(exports, module) {
|
|
96
96
|
var Symbol = require_Symbol();
|
|
97
97
|
var objectProto = Object.prototype;
|
|
98
98
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
@@ -119,9 +119,9 @@ var require_getRawTag = __commonJS({
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
122
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js
|
|
123
123
|
var require_objectToString = __commonJS({
|
|
124
|
-
"../node_modules/.pnpm/lodash@4.
|
|
124
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js"(exports, module) {
|
|
125
125
|
var objectProto = Object.prototype;
|
|
126
126
|
var nativeObjectToString = objectProto.toString;
|
|
127
127
|
function objectToString(value) {
|
|
@@ -131,9 +131,9 @@ var require_objectToString = __commonJS({
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
134
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js
|
|
135
135
|
var require_baseGetTag = __commonJS({
|
|
136
|
-
"../node_modules/.pnpm/lodash@4.
|
|
136
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js"(exports, module) {
|
|
137
137
|
var Symbol = require_Symbol();
|
|
138
138
|
var getRawTag = require_getRawTag();
|
|
139
139
|
var objectToString = require_objectToString();
|
|
@@ -150,9 +150,9 @@ var require_baseGetTag = __commonJS({
|
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
152
|
|
|
153
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
153
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js
|
|
154
154
|
var require_isObjectLike = __commonJS({
|
|
155
|
-
"../node_modules/.pnpm/lodash@4.
|
|
155
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js"(exports, module) {
|
|
156
156
|
function isObjectLike(value) {
|
|
157
157
|
return value != null && typeof value == "object";
|
|
158
158
|
}
|
|
@@ -160,9 +160,9 @@ var require_isObjectLike = __commonJS({
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
163
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js
|
|
164
164
|
var require_isSymbol = __commonJS({
|
|
165
|
-
"../node_modules/.pnpm/lodash@4.
|
|
165
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js"(exports, module) {
|
|
166
166
|
var baseGetTag = require_baseGetTag();
|
|
167
167
|
var isObjectLike = require_isObjectLike();
|
|
168
168
|
var symbolTag = "[object Symbol]";
|
|
@@ -173,9 +173,9 @@ var require_isSymbol = __commonJS({
|
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
176
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js
|
|
177
177
|
var require_toNumber = __commonJS({
|
|
178
|
-
"../node_modules/.pnpm/lodash@4.
|
|
178
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js"(exports, module) {
|
|
179
179
|
var baseTrim = require_baseTrim();
|
|
180
180
|
var isObject = require_isObject();
|
|
181
181
|
var isSymbol = require_isSymbol();
|
|
@@ -206,9 +206,9 @@ var require_toNumber = __commonJS({
|
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
|
|
209
|
-
// ../node_modules/.pnpm/lodash@4.
|
|
209
|
+
// ../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js
|
|
210
210
|
var require_debounce = __commonJS({
|
|
211
|
-
"../node_modules/.pnpm/lodash@4.
|
|
211
|
+
"../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js"(exports, module) {
|
|
212
212
|
var isObject = require_isObject();
|
|
213
213
|
var now = require_now();
|
|
214
214
|
var toNumber = require_toNumber();
|
|
@@ -701,6 +701,7 @@ var SmartSelect = forwardRef(
|
|
|
701
701
|
refetch,
|
|
702
702
|
isFetching = false,
|
|
703
703
|
onChange,
|
|
704
|
+
onKeyDownCapture,
|
|
704
705
|
inputLabel,
|
|
705
706
|
variant = "standard",
|
|
706
707
|
size,
|
|
@@ -751,6 +752,9 @@ var SmartSelect = forwardRef(
|
|
|
751
752
|
onChange(nextOption);
|
|
752
753
|
}
|
|
753
754
|
};
|
|
755
|
+
const handleKeyDownCapture = (event) => {
|
|
756
|
+
onKeyDownCapture?.(event);
|
|
757
|
+
};
|
|
754
758
|
const renderMenuContent = () => {
|
|
755
759
|
if (isFetching) {
|
|
756
760
|
return [
|
|
@@ -825,6 +829,7 @@ var SmartSelect = forwardRef(
|
|
|
825
829
|
onOpen: handleFetchData,
|
|
826
830
|
onFocus: handleFetchData,
|
|
827
831
|
onKeyDown: handleKeyDown,
|
|
832
|
+
onKeyDownCapture: handleKeyDownCapture,
|
|
828
833
|
label: inputLabel,
|
|
829
834
|
MenuProps: menuProps,
|
|
830
835
|
children: renderMenuContent()
|
|
@@ -8015,8 +8020,7 @@ var SearchHeader = ({
|
|
|
8015
8020
|
value,
|
|
8016
8021
|
onChange,
|
|
8017
8022
|
onKeyDown,
|
|
8018
|
-
width
|
|
8019
|
-
initialValue
|
|
8023
|
+
width
|
|
8020
8024
|
}) => {
|
|
8021
8025
|
return /* @__PURE__ */ jsxs81(
|
|
8022
8026
|
Paper11,
|
|
@@ -8044,8 +8048,7 @@ var SearchHeader = ({
|
|
|
8044
8048
|
onSearch,
|
|
8045
8049
|
value,
|
|
8046
8050
|
onChange,
|
|
8047
|
-
onKeyDown
|
|
8048
|
-
initialValue
|
|
8051
|
+
onKeyDown
|
|
8049
8052
|
}
|
|
8050
8053
|
),
|
|
8051
8054
|
renderExtraAction
|