ublo-lib 1.20.0 → 1.20.2
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,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export default function useDebouncedSearch(searchFunction: any): {
|
|
2
|
+
export default function useDebouncedSearch(searchFunction: (text: string) => Promise<any>): {
|
|
3
3
|
text: string;
|
|
4
4
|
setText: React.Dispatch<React.SetStateAction<string>>;
|
|
5
5
|
search: import("react-async-hook").UseAsyncReturn<any, any[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-debounced-search.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/hooks/use-debounced-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,CAAC,OAAO,UAAU,kBAAkB,
|
|
1
|
+
{"version":3,"file":"use-debounced-search.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/instant-search/hooks/use-debounced-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC;;;;EAY/C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _JSXStyle from "styled-jsx/style";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
4
|
export default function ScrollbarWidth() {
|
|
@@ -8,14 +9,10 @@ export default function ScrollbarWidth() {
|
|
|
8
9
|
setScrollbarWidth(ref.current ? ref.current.offsetWidth - ref.current.clientWidth : 0);
|
|
9
10
|
}
|
|
10
11
|
}, [scrollbarWidth]);
|
|
11
|
-
return scrollbarWidth !== undefined ? _jsx(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
children: `
|
|
15
|
-
:root {
|
|
16
|
-
--scrollbar-width: ${scrollbarWidth}px;
|
|
17
|
-
}
|
|
18
|
-
`
|
|
12
|
+
return scrollbarWidth !== undefined ? _jsx(_JSXStyle, {
|
|
13
|
+
id: "3591771750",
|
|
14
|
+
dynamic: [scrollbarWidth],
|
|
15
|
+
children: `:root{--scrollbar-width:${scrollbarWidth}px;}`
|
|
19
16
|
}) : _jsx("div", {
|
|
20
17
|
ref: ref,
|
|
21
18
|
style: {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ublo-lib",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"dt-design-system": "^3.1.5",
|
|
6
6
|
"leaflet": "^1.9.1",
|
|
7
|
-
"next": "^12.0.0 || ^13.0.0",
|
|
7
|
+
"next": "^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
8
8
|
"react": "^18.2.0",
|
|
9
9
|
"react-dom": "^18.2.0",
|
|
10
10
|
"react-leaflet": "^4.1.0",
|
|
@@ -57,8 +57,9 @@
|
|
|
57
57
|
"react": "18.2.0",
|
|
58
58
|
"react-dom": "18.2.0",
|
|
59
59
|
"react-scripts": "5.0.1",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
60
|
+
"styled-jsx": "5.1.2",
|
|
61
|
+
"typescript": "5.2.2",
|
|
62
|
+
"ublo": "3.14.5"
|
|
62
63
|
},
|
|
63
64
|
"scripts": {
|
|
64
65
|
"clean": "rm -rf es",
|