@0xchain/table 1.1.0-beta.23 → 1.1.0-beta.25

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -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-[#F1F1F1] rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-time1", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
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-[#F1F1F1] rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-filter", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
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-[#F1F1F1] rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-serch", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
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-[#F1F1F1] rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-serch", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
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-[#F1F1F1] rounded-sm cursor-pointer", children: /* @__PURE__ */ jsx(IconFont, { type: "icon-serch", style: { fontSize: "20px", color: "#2A6AF6" } }) }) }),
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] bg-[#FFFAEB] max-w-full min-w-0 overflow-hidden", children: [
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
  ":"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xchain/table",
3
- "version": "1.1.0-beta.23",
3
+ "version": "1.1.0-beta.25",
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/empty": "1.1.0-beta.23",
50
- "@0xchain/loading": "1.1.0-beta.23",
51
- "@0xchain/image": "1.1.0-beta.23",
52
- "@0xchain/request": "1.1.0-beta.23",
53
- "@0xchain/number-like": "1.1.0-beta.23",
54
- "@0xchain/ui": "1.1.0-beta.23",
55
- "@0xchain/translation": "1.1.0-beta.23",
56
- "@0xchain/iconfont": "1.1.0-beta.23"
49
+ "@0xchain/image": "1.1.0-beta.25",
50
+ "@0xchain/loading": "1.1.0-beta.25",
51
+ "@0xchain/empty": "1.1.0-beta.25",
52
+ "@0xchain/ui": "1.1.0-beta.25",
53
+ "@0xchain/translation": "1.1.0-beta.25",
54
+ "@0xchain/number-like": "1.1.0-beta.25",
55
+ "@0xchain/request": "1.1.0-beta.25",
56
+ "@0xchain/iconfont": "1.1.0-beta.25"
57
57
  },
58
58
  "nx": {
59
59
  "tags": [