@0xchain/table 1.1.0-beta.22 → 1.1.0-beta.24
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/index.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/package.json +9 -9
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IACtF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,CAAC;IACtE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;IAC7E,WAAW,CAAC,EAAE;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KA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
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import koKRPicker from "antd/es/date-picker/locale/ko_KR";
|
|
|
20
20
|
import IconFont from "@0xchain/iconfont";
|
|
21
21
|
import { Popover, PopoverTrigger, PopoverContent } from "@0xchain/ui/popover";
|
|
22
22
|
import { useLocale, useTranslations } from "next-intl";
|
|
23
|
-
import { X, Search } from "lucide-react";
|
|
23
|
+
import { X, Search, RotateCcw } from "lucide-react";
|
|
24
24
|
import Translation from "@0xchain/translation";
|
|
25
25
|
import ImageBar from "@0xchain/image";
|
|
26
26
|
import request from "@0xchain/request";
|
|
@@ -98,8 +98,8 @@ function DatePickerWithRange({
|
|
|
98
98
|
setPanelRange([vals[0], vals[1]]);
|
|
99
99
|
cancelPopover();
|
|
100
100
|
};
|
|
101
|
-
return /* @__PURE__ */ jsx("div", { className: twMerge(className), ...props, children: /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: togglePopover, children: [
|
|
102
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-
|
|
101
|
+
return /* @__PURE__ */ jsx("div", { className: twMerge("", className), ...props, children: /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: togglePopover, children: [
|
|
102
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-border rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-time1", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
|
|
103
103
|
/* @__PURE__ */ jsx(PopoverContent, { className: "w-auto p-0", align: "center", side: "right", children: /* @__PURE__ */ jsx("div", { ref: containerRef, className: "relative", children: /* @__PURE__ */ jsx(
|
|
104
104
|
DatePicker.RangePicker,
|
|
105
105
|
{
|
|
@@ -161,7 +161,7 @@ function Amount({ onChange }) {
|
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
164
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-
|
|
164
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-border rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-filter", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
|
|
165
165
|
/* @__PURE__ */ jsx(PopoverContent, { className: "bg-card", children: /* @__PURE__ */ jsxs("div", { className: "w-full h-full", children: [
|
|
166
166
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center justify-between h-9", children: [
|
|
167
167
|
/* @__PURE__ */ jsx("span", { className: "text-sm", children: /* @__PURE__ */ jsx(Translation, { value: "label", parentKey: "common.filter.amount" }) }),
|
|
@@ -202,7 +202,7 @@ function Address({ onChange }) {
|
|
|
202
202
|
setOpen(false);
|
|
203
203
|
};
|
|
204
204
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
205
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-
|
|
205
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-border rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-serch", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
|
|
206
206
|
/* @__PURE__ */ jsx(PopoverContent, { className: "bg-card", children: /* @__PURE__ */ jsxs("div", { className: "w-full h-full", children: [
|
|
207
207
|
/* @__PURE__ */ jsxs("fieldset", { className: "w-full h-full", children: [
|
|
208
208
|
/* @__PURE__ */ jsxs("label", { className: "w-full h-full text-sm flex items-center justify-between", children: [
|
|
@@ -267,7 +267,7 @@ function Token({ onChange }) {
|
|
|
267
267
|
loadData.run();
|
|
268
268
|
}, [chain, token]);
|
|
269
269
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
270
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-
|
|
270
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-border rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-serch", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
|
|
271
271
|
/* @__PURE__ */ jsxs(PopoverContent, { className: "py-5 bg-card", children: [
|
|
272
272
|
/* @__PURE__ */ jsxs("div", { className: "w-full h-full", children: [
|
|
273
273
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center justify-between h-9", children: [
|
|
@@ -327,7 +327,7 @@ function TokenSearch({ onChange }) {
|
|
|
327
327
|
loadData();
|
|
328
328
|
}, [chain, token]);
|
|
329
329
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
330
|
-
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-
|
|
330
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { className: " flex items-center justify-center bg-border rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-serch", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
|
|
331
331
|
/* @__PURE__ */ jsxs(PopoverContent, { className: "py-5 bg-card", children: [
|
|
332
332
|
/* @__PURE__ */ jsxs("div", { className: "w-full h-full bg-card", children: [
|
|
333
333
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center justify-between h-9", children: [
|
|
@@ -529,7 +529,7 @@ function CustomTable({ data, columns, headerClassName, bodyClassName, rowClassNa
|
|
|
529
529
|
const filterValue = filterValues?.[column.key];
|
|
530
530
|
if (!filterValue) return null;
|
|
531
531
|
if (Array.isArray(filterValue) && filterValue.length === 0) return null;
|
|
532
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center flex-nowrap gap-2 text-[#C45D10] px-3 py-1 rounded-full border-1 border-[#FFD78D]
|
|
532
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center flex-nowrap gap-2 text-[#C45D10] px-3 py-1 rounded-full border-1 border-[#FFD78D] max-w-full min-w-0 overflow-hidden", children: [
|
|
533
533
|
/* @__PURE__ */ jsxs("div", { className: "text-sm shrink-0", children: [
|
|
534
534
|
column.label,
|
|
535
535
|
":"
|
|
@@ -549,9 +549,9 @@ function CustomTable({ data, columns, headerClassName, bodyClassName, rowClassNa
|
|
|
549
549
|
"button",
|
|
550
550
|
{
|
|
551
551
|
onClick: clearAllFilters,
|
|
552
|
-
className: "shrink-0 inline-flex items-center gap-1 px-3 py-1 rounded-full border border-border bg-background text-sm hover:bg-muted",
|
|
552
|
+
className: "shrink-0 inline-flex items-center gap-1 px-3 py-1 rounded-full border border-border bg-background text-sm text-foreground hover:bg-muted",
|
|
553
553
|
children: [
|
|
554
|
-
/* @__PURE__ */ jsx(
|
|
554
|
+
/* @__PURE__ */ jsx(RotateCcw, { className: "h-4 w-4 text-foreground" }),
|
|
555
555
|
/* @__PURE__ */ jsx(Translation, { value: "button.clear", parentKey: "common" })
|
|
556
556
|
]
|
|
557
557
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xchain/table",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"tailwind-merge": "3.3.1"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@0xchain/ui": "1.1.0-beta.
|
|
50
|
-
"@0xchain/image": "1.1.0-beta.
|
|
51
|
-
"@0xchain/translation": "1.1.0-beta.
|
|
52
|
-
"@0xchain/request": "1.1.0-beta.
|
|
53
|
-
"@0xchain/
|
|
54
|
-
"@0xchain/
|
|
55
|
-
"@0xchain/empty": "1.1.0-beta.
|
|
56
|
-
"@0xchain/
|
|
49
|
+
"@0xchain/ui": "1.1.0-beta.24",
|
|
50
|
+
"@0xchain/image": "1.1.0-beta.24",
|
|
51
|
+
"@0xchain/translation": "1.1.0-beta.24",
|
|
52
|
+
"@0xchain/request": "1.1.0-beta.24",
|
|
53
|
+
"@0xchain/iconfont": "1.1.0-beta.24",
|
|
54
|
+
"@0xchain/loading": "1.1.0-beta.24",
|
|
55
|
+
"@0xchain/empty": "1.1.0-beta.24",
|
|
56
|
+
"@0xchain/number-like": "1.1.0-beta.24"
|
|
57
57
|
},
|
|
58
58
|
"nx": {
|
|
59
59
|
"tags": [
|