@gearbox-protocol/permissionless-ui 1.2.9 → 1.2.11
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/cjs/components/search-bar.js +19 -23
- package/dist/cjs/components/table.js +1 -1
- package/dist/cjs/components/token-icon.js +1 -0
- package/dist/esm/components/search-bar.js +19 -23
- package/dist/esm/components/table.js +1 -1
- package/dist/esm/components/token-icon.js +1 -0
- package/dist/types/components/search-bar.d.ts +1 -2
- package/package.json +1 -1
|
@@ -28,8 +28,7 @@ var import_input = require('./input.js');
|
|
|
28
28
|
function SearchBar({
|
|
29
29
|
onChange,
|
|
30
30
|
placeholder = "Search...",
|
|
31
|
-
className = "w-64"
|
|
32
|
-
children
|
|
31
|
+
className = "w-64"
|
|
33
32
|
}) {
|
|
34
33
|
const [searchQuery, setSearchQuery] = (0, import_react.useState)("");
|
|
35
34
|
const handleSearch = (e) => {
|
|
@@ -37,27 +36,24 @@ function SearchBar({
|
|
|
37
36
|
setSearchQuery(query);
|
|
38
37
|
onChange(query);
|
|
39
38
|
};
|
|
40
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className:
|
|
41
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
)
|
|
59
|
-
] }),
|
|
60
|
-
children
|
|
39
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `relative ${className}`, children: [
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
+
import_input.Input,
|
|
42
|
+
{
|
|
43
|
+
type: "text",
|
|
44
|
+
placeholder,
|
|
45
|
+
value: searchQuery,
|
|
46
|
+
onChange: handleSearch,
|
|
47
|
+
className: "pl-10"
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
51
|
+
import_lucide_react.Search,
|
|
52
|
+
{
|
|
53
|
+
className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground",
|
|
54
|
+
size: 18
|
|
55
|
+
}
|
|
56
|
+
)
|
|
61
57
|
] });
|
|
62
58
|
}
|
|
63
59
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -41,7 +41,7 @@ module.exports = __toCommonJS(table_exports);
|
|
|
41
41
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
42
|
var React = __toESM(require("react"));
|
|
43
43
|
var import_utils = __toESM(require('../utils/index.js'));
|
|
44
|
-
const Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
44
|
+
const Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "rounded-xl border relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
45
45
|
"table",
|
|
46
46
|
{
|
|
47
47
|
ref,
|
|
@@ -5,8 +5,7 @@ import { Input } from "./input.js";
|
|
|
5
5
|
function SearchBar({
|
|
6
6
|
onChange,
|
|
7
7
|
placeholder = "Search...",
|
|
8
|
-
className = "w-64"
|
|
9
|
-
children
|
|
8
|
+
className = "w-64"
|
|
10
9
|
}) {
|
|
11
10
|
const [searchQuery, setSearchQuery] = useState("");
|
|
12
11
|
const handleSearch = (e) => {
|
|
@@ -14,27 +13,24 @@ function SearchBar({
|
|
|
14
13
|
setSearchQuery(query);
|
|
15
14
|
onChange(query);
|
|
16
15
|
};
|
|
17
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
)
|
|
36
|
-
] }),
|
|
37
|
-
children
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", { className: `relative ${className}`, children: [
|
|
17
|
+
/* @__PURE__ */ jsx(
|
|
18
|
+
Input,
|
|
19
|
+
{
|
|
20
|
+
type: "text",
|
|
21
|
+
placeholder,
|
|
22
|
+
value: searchQuery,
|
|
23
|
+
onChange: handleSearch,
|
|
24
|
+
className: "pl-10"
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ jsx(
|
|
28
|
+
Search,
|
|
29
|
+
{
|
|
30
|
+
className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground",
|
|
31
|
+
size: 18
|
|
32
|
+
}
|
|
33
|
+
)
|
|
38
34
|
] });
|
|
39
35
|
}
|
|
40
36
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import cn from "../utils/index.js";
|
|
4
|
-
const Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
|
|
4
|
+
const Table = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "rounded-xl border relative w-full overflow-auto", children: /* @__PURE__ */ jsx(
|
|
5
5
|
"table",
|
|
6
6
|
{
|
|
7
7
|
ref,
|
|
@@ -2,7 +2,6 @@ interface SearchBarProps {
|
|
|
2
2
|
onChange: (query: string) => void;
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
className?: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
5
|
}
|
|
7
|
-
export declare function SearchBar({ onChange, placeholder, className,
|
|
6
|
+
export declare function SearchBar({ onChange, placeholder, className, }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|