@0xchain/table 1.1.0-beta.1 → 1.1.0-beta.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.
Files changed (2) hide show
  1. package/dist/index.js +14 -14
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -79,7 +79,7 @@ function ve({
79
79
  i(Math.floor(h.getTime() / 1e3), Math.floor(p.getTime() / 1e3)), b([o[0], o[1]]), N();
80
80
  };
81
81
  return /* @__PURE__ */ e("div", { className: v(a), ...c, children: /* @__PURE__ */ l(O, { open: A, onOpenChange: R, children: [
82
- /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("i", { className: "w-4 h-4 p-[2px] cursor-pointer flex items-center justify-center bg-primary rounded-sm", children: /* @__PURE__ */ e(D, { src: Ne, width: 12, height: 12 }) }) }),
82
+ /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("i", { className: "w-4 h-4 p-[2px] cursor-pointer flex items-center justify-center bg-[#000] rounded-sm", children: /* @__PURE__ */ e(D, { src: Ne, width: 12, height: 12 }) }) }),
83
83
  /* @__PURE__ */ e(Q, { className: "w-auto p-0", align: "center", side: "right", children: /* @__PURE__ */ e("div", { ref: w, className: "relative", children: /* @__PURE__ */ e(
84
84
  ue.RangePicker,
85
85
  {
@@ -125,7 +125,7 @@ function je({ onChange: a, filterKey: i }) {
125
125
  p.target.value === "0" && b("0.01");
126
126
  };
127
127
  return /* @__PURE__ */ l(O, { open: c, onOpenChange: m, children: [
128
- /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "w-[16px] h-[16px] flex items-center justify-center bg-primary rounded-sm cursor-pointer", children: /* @__PURE__ */ e(D, { src: Ce, width: 12, height: 12, objectFit: "contain" }) }) }),
128
+ /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "w-[16px] h-[16px] flex items-center justify-center bg-[#000] rounded-sm cursor-pointer", children: /* @__PURE__ */ e(D, { src: Ce, width: 12, height: 12, objectFit: "contain" }) }) }),
129
129
  /* @__PURE__ */ e(Q, { className: "bg-card", children: /* @__PURE__ */ l("div", { className: "w-full h-full", children: [
130
130
  /* @__PURE__ */ l("div", { className: "flex flex-row items-center justify-between h-9", children: [
131
131
  /* @__PURE__ */ e("span", { className: "text-sm", children: /* @__PURE__ */ e(S, { value: "label", parentKey: "common.filter.amount" }) }),
@@ -145,7 +145,7 @@ function je({ onChange: a, filterKey: i }) {
145
145
  /* @__PURE__ */ l(
146
146
  Y.Root,
147
147
  {
148
- className: "w-full relative flex items-center justify-center h-1 flex-grow bg-background rounded-sm touch-pan-y select-none",
148
+ className: "w-full relative flex items-center justify-center h-1 grow bg-background rounded-sm touch-pan-y select-none",
149
149
  value: d,
150
150
  onValueChange: C,
151
151
  max: 1e10,
@@ -164,7 +164,7 @@ function je({ onChange: a, filterKey: i }) {
164
164
  ] })
165
165
  ] }),
166
166
  /* @__PURE__ */ l("div", { className: "flex justify-end items-center", children: [
167
- /* @__PURE__ */ e("button", { className: "bg-card text-black text-sm px-3 py-1 border-1 border-border rounded-lg ml-3 cursor-pointer", onClick: n, children: A("button.cancel") }),
167
+ /* @__PURE__ */ e("button", { className: "bg-card text-black text-sm px-3 py-1 border border-border rounded-lg ml-3 cursor-pointer", onClick: n, children: A("button.cancel") }),
168
168
  /* @__PURE__ */ e("button", { className: "bg-primary text-white text-sm px-3 py-1 rounded-lg ml-3 cursor-pointer", onClick: B, children: A("button.confirm") })
169
169
  ] })
170
170
  ] }) })
@@ -181,7 +181,7 @@ function Re({ onChange: a }) {
181
181
  c(!1);
182
182
  };
183
183
  return /* @__PURE__ */ l(O, { open: i, onOpenChange: c, children: [
184
- /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "w-[16px] h-[16px] flex items-center justify-center bg-primary rounded-sm cursor-pointer", children: /* @__PURE__ */ e(D, { src: H, width: 12, height: 12, objectFit: "contain" }) }) }),
184
+ /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "w-[16px] h-[16px] flex items-center justify-center bg-[#000] rounded-sm cursor-pointer", children: /* @__PURE__ */ e(D, { src: H, width: 12, height: 12, objectFit: "contain" }) }) }),
185
185
  /* @__PURE__ */ e(Q, { className: "bg-card", children: /* @__PURE__ */ l("div", { className: "w-full h-full", children: [
186
186
  /* @__PURE__ */ l("fieldset", { className: "w-full h-full", children: [
187
187
  /* @__PURE__ */ l("label", { className: "w-full h-full text-sm flex items-center justify-between", children: [
@@ -194,7 +194,7 @@ function Re({ onChange: a }) {
194
194
  ] })
195
195
  ] }),
196
196
  /* @__PURE__ */ l("div", { className: "flex justify-end items-center mt-2", children: [
197
- /* @__PURE__ */ e("button", { className: "bg-card text-black text-sm px-3 py-1 border-1 border-gray-300 rounded ml-3 cursor-pointer", onClick: b, children: m("button.cancel") }),
197
+ /* @__PURE__ */ e("button", { className: "bg-card text-black text-sm px-3 py-1 border border-gray-300 rounded ml-3 cursor-pointer", onClick: b, children: m("button.cancel") }),
198
198
  /* @__PURE__ */ e("button", { className: "bg-primary text-white text-sm px-3 py-1 rounded ml-3 cursor-pointer", onClick: g, children: m("button.confirm") })
199
199
  ] })
200
200
  ] }) })
@@ -226,7 +226,7 @@ function Te({ onChange: a }) {
226
226
  return z(() => {
227
227
  B.run();
228
228
  }, [i, k]), /* @__PURE__ */ l(O, { open: m, onOpenChange: A, children: [
229
- /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "w-[16px] h-[16px] flex items-center justify-center bg-primary rounded-sm cursor-pointer", children: /* @__PURE__ */ e(D, { src: H, width: 12, height: 12, objectFit: "contain" }) }) }),
229
+ /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "w-[16px] h-[16px] flex items-center justify-center bg-[#000] rounded-sm cursor-pointer", children: /* @__PURE__ */ e(D, { src: H, width: 12, height: 12, objectFit: "contain" }) }) }),
230
230
  /* @__PURE__ */ l(Q, { className: "py-5 bg-card", children: [
231
231
  /* @__PURE__ */ l("div", { className: "w-full h-full", children: [
232
232
  /* @__PURE__ */ l("div", { className: "flex flex-row items-center justify-between h-9", children: [
@@ -235,7 +235,7 @@ function Te({ onChange: a }) {
235
235
  ] }),
236
236
  /* @__PURE__ */ l("div", { className: "w-full relative text-sm py-3", children: [
237
237
  /* @__PURE__ */ e(V, { className: "w-4 h-4 absolute left-2 top-1/2 -translate-y-1/2" }),
238
- /* @__PURE__ */ e("input", { type: "text", placeholder: c("label"), className: "pl-6 w-full h-full bg-card text-sm border-1 border-gray-300 rounded p-2 my-2 focus-visible:outline-primary placeholder:text-gray-400", value: k, onChange: (n) => w(n.target.value) })
238
+ /* @__PURE__ */ e("input", { type: "text", placeholder: c("label"), className: "pl-6 w-full h-full bg-card text-sm border border-gray-300 rounded p-2 my-2 focus-visible:outline-primary placeholder:text-gray-400", value: k, onChange: (n) => w(n.target.value) })
239
239
  ] })
240
240
  ] }),
241
241
  /* @__PURE__ */ e("ul", { className: "max-h-30 min-h-30 overflow-y-auto overflow-x-hidden w-full", children: g == null ? void 0 : g.map((n, o) => /* @__PURE__ */ l("li", { className: "flex h-10 flex-row items-center gap-3 hover:bg-background hover:rounded-sm p-2 cursor-pointer overflow-hidden", onClick: () => R(n), children: [
@@ -245,10 +245,10 @@ function Te({ onChange: a }) {
245
245
  " ",
246
246
  /* @__PURE__ */ e("span", { className: "text-muted-foreground text-xs", children: n.tokenName })
247
247
  ] }),
248
- /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(te, { className: v("w-4 h-4 cursor-pointer border-1 border-gray-300 rounded-sm", d.some((h) => h.tokenAddress === n.tokenAddress) ? "bg-primary" : "bg-card"), checked: d.some((h) => h.tokenAddress === n.tokenAddress) }) })
248
+ /* @__PURE__ */ e("div", { className: "shrink-0", children: /* @__PURE__ */ e(te, { className: v("w-4 h-4 cursor-pointer border border-gray-300 rounded-sm", d.some((h) => h.tokenAddress === n.tokenAddress) ? "bg-primary" : "bg-card"), checked: d.some((h) => h.tokenAddress === n.tokenAddress) }) })
249
249
  ] }, o)) }),
250
250
  /* @__PURE__ */ l("div", { className: "flex justify-end items-center mt-2", children: [
251
- /* @__PURE__ */ e("button", { className: "bg-card text-black text-sm px-3 py-1 border-1 border-gray-300 rounded ml-3 cursor-pointer", onClick: C, children: /* @__PURE__ */ e(S, { value: "button.cancel", parentKey: "common" }) }),
251
+ /* @__PURE__ */ e("button", { className: "bg-card text-black text-sm px-3 py-1 border border-gray-300 rounded ml-3 cursor-pointer", onClick: C, children: /* @__PURE__ */ e(S, { value: "button.cancel", parentKey: "common" }) }),
252
252
  /* @__PURE__ */ e("button", { className: "bg-primary text-white text-sm px-3 py-1 rounded ml-3 cursor-pointer", onClick: N, children: /* @__PURE__ */ e(S, { value: "button.confirm", parentKey: "common" }) })
253
253
  ] })
254
254
  ] })
@@ -269,7 +269,7 @@ function De({ onChange: a }) {
269
269
  return z(() => {
270
270
  B();
271
271
  }, [i, k]), /* @__PURE__ */ l(O, { open: m, onOpenChange: A, children: [
272
- /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "w-[16px] h-[16px] flex items-center justify-center bg-primary rounded-sm cursor-pointer", children: /* @__PURE__ */ e(D, { src: H, width: 12, height: 12, objectFit: "contain" }) }) }),
272
+ /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "w-[16px] h-[16px] flex items-center justify-center bg-[#000] rounded-sm cursor-pointer", children: /* @__PURE__ */ e(D, { src: H, width: 12, height: 12, objectFit: "contain" }) }) }),
273
273
  /* @__PURE__ */ l(Q, { className: "py-5 bg-card", children: [
274
274
  /* @__PURE__ */ l("div", { className: "w-full h-full bg-card", children: [
275
275
  /* @__PURE__ */ l("div", { className: "flex flex-row items-center justify-between h-9", children: [
@@ -278,16 +278,16 @@ function De({ onChange: a }) {
278
278
  ] }),
279
279
  /* @__PURE__ */ l("div", { className: "w-full relative bg-card text-sm py-3", children: [
280
280
  /* @__PURE__ */ e(V, { className: "w-4 h-4 absolute left-2 top-1/2 -translate-y-1/2" }),
281
- /* @__PURE__ */ e("input", { type: "text", placeholder: c("label"), className: "pl-6 w-full h-full bg-card text-sm border-1 border-gray-300 rounded p-2 my-2 focus-visible:outline-primary placeholder:text-gray-400", value: k, onChange: (n) => w(n.target.value) })
281
+ /* @__PURE__ */ e("input", { type: "text", placeholder: c("label"), className: "pl-6 w-full h-full bg-card text-sm border border-gray-300 rounded p-2 my-2 focus-visible:outline-primary placeholder:text-gray-400", value: k, onChange: (n) => w(n.target.value) })
282
282
  ] })
283
283
  ] }),
284
284
  /* @__PURE__ */ e("ul", { className: "max-h-50 min-h-25 overflow-y-auto overflow-x-hidden w-full", children: g == null ? void 0 : g.map((n, o) => /* @__PURE__ */ l("li", { className: "flex h-10 flex-row items-center gap-3 hover:bg-background hover:rounded-sm p-2 cursor-pointer overflow-hidden", onClick: () => R(n), children: [
285
285
  /* @__PURE__ */ e(D, { src: n.iconUrl, objectFit: "contain", alt: n.tokenName, className: "rounded-full w-4 h-4 min-w-4 min-h-4 flex-shrink-0" }),
286
286
  /* @__PURE__ */ e("div", { className: "text-sm text-foreground text-left truncate min-w-0 flex-1 overflow-hidden", children: n.tokenName }),
287
- /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(te, { className: v("w-4 h-4 cursor-pointer border-1 border-gray-300 rounded-sm", d.some((h) => h.tokenAddress === n.tokenAddress) ? "bg-primary" : "bg-white"), checked: d.some((h) => h.tokenAddress === n.tokenAddress) }) })
287
+ /* @__PURE__ */ e("div", { className: "shrink-0", children: /* @__PURE__ */ e(te, { className: v("w-4 h-4 cursor-pointer border border-gray-300 rounded-sm", d.some((h) => h.tokenAddress === n.tokenAddress) ? "bg-primary" : "bg-white"), checked: d.some((h) => h.tokenAddress === n.tokenAddress) }) })
288
288
  ] }, o)) }),
289
289
  /* @__PURE__ */ l("div", { className: "flex justify-end items-center mt-2", children: [
290
- /* @__PURE__ */ e("button", { className: "bg-card text-black text-sm px-3 py-1 border-1 border-gray-300 rounded ml-3 cursor-pointer", onClick: C, children: /* @__PURE__ */ e(S, { value: "button.cancel", parentKey: "common" }) }),
290
+ /* @__PURE__ */ e("button", { className: "bg-card text-black text-sm px-3 py-1 border border-gray-300 rounded ml-3 cursor-pointer", onClick: C, children: /* @__PURE__ */ e(S, { value: "button.cancel", parentKey: "common" }) }),
291
291
  /* @__PURE__ */ e("button", { className: "bg-primary text-white text-sm px-3 py-1 rounded ml-3 cursor-pointer", onClick: N, children: /* @__PURE__ */ e(S, { value: "button.confirm", parentKey: "common" }) })
292
292
  ] })
293
293
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xchain/table",
3
- "version": "1.1.0-beta.1",
3
+ "version": "1.1.0-beta.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -26,22 +26,22 @@
26
26
  "tailwind-merge": "3.3.1",
27
27
  "lucide-react": "0.539.0",
28
28
  "dayjs": "1.11.19",
29
- "next-intl": "4.6.1",
30
- "next": "15.5.6",
29
+ "next-intl": "4.8.2",
30
+ "next": "16.1.6",
31
31
  "@0xchain/next-themes": "1.0.0",
32
32
  "date-fns": "4.1.0",
33
33
  "antd": "6.1.1",
34
34
  "ahooks": "3.9.5",
35
35
  "@radix-ui/react-slider": "1.3.6",
36
- "@0xchain/ui": "1.1.0-beta.1",
37
- "@0xchain/loading": "1.1.0-beta.1",
38
- "@0xchain/translation": "1.1.0-beta.1",
39
- "@0xchain/iconfont": "1.1.0-beta.1",
40
- "@0xchain/number-like": "1.1.0-beta.1",
41
- "@0xchain/request": "1.1.0-beta.1",
42
- "@0xchain/image": "1.1.0-beta.1",
43
- "@0xchain/empty": "1.1.0-beta.1",
44
- "@0xchain/i18n": "1.1.0-beta.1"
36
+ "@0xchain/ui": "1.1.0-beta.11",
37
+ "@0xchain/empty": "1.1.0-beta.11",
38
+ "@0xchain/loading": "1.1.0-beta.11",
39
+ "@0xchain/i18n": "1.1.0-beta.11",
40
+ "@0xchain/translation": "1.1.0-beta.11",
41
+ "@0xchain/iconfont": "1.1.0-beta.11",
42
+ "@0xchain/number-like": "1.1.0-beta.11",
43
+ "@0xchain/image": "1.1.0-beta.11",
44
+ "@0xchain/request": "1.1.0-beta.11"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"