@rhinestone/deposit-modal 0.8.1 → 0.9.0

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 (65) hide show
  1. package/README.md +193 -29
  2. package/dist/{chunk-2JPB3PLB.mjs → DepositModalReown-6KUAO5ZC.mjs} +56 -4
  3. package/dist/{chunk-Q3W53BKR.cjs → DepositModalReown-XC5RIU7Z.cjs} +62 -10
  4. package/dist/{caip-C_ZYFIGa.d.cts → caip-523Zrc3r.d.cts} +1 -3
  5. package/dist/{caip-C_ZYFIGa.d.ts → caip-523Zrc3r.d.ts} +1 -3
  6. package/dist/{chunk-D3Y7ZBED.cjs → chunk-22RV33LK.cjs} +2170 -1460
  7. package/dist/chunk-4WB2FHGC.mjs +865 -0
  8. package/dist/chunk-A223BLVC.mjs +801 -0
  9. package/dist/{chunk-HQWZCOMS.cjs → chunk-DIX7M3SP.cjs} +232 -601
  10. package/dist/{chunk-T43VUEJH.mjs → chunk-E4G5BOZP.mjs} +167 -536
  11. package/dist/chunk-H577RJN5.cjs +801 -0
  12. package/dist/{chunk-DABKCJVL.mjs → chunk-ILT2PITN.mjs} +60 -3
  13. package/dist/{chunk-7KHEIMWD.mjs → chunk-KKHLNFSA.mjs} +2436 -1726
  14. package/dist/chunk-LGVJWVSS.mjs +81 -0
  15. package/dist/chunk-NEXUCY4B.cjs +11 -0
  16. package/dist/chunk-NMIMRASD.cjs +1785 -0
  17. package/dist/chunk-OSI2CFGL.mjs +11 -0
  18. package/dist/chunk-PAGMU4RQ.cjs +865 -0
  19. package/dist/chunk-T7LGQFP3.cjs +81 -0
  20. package/dist/chunk-VN4BLZYC.cjs +2273 -0
  21. package/dist/chunk-VOGZAZB2.mjs +2273 -0
  22. package/dist/chunk-WYXBY2MQ.mjs +1785 -0
  23. package/dist/{chunk-4NN7UTWQ.cjs → chunk-YEBXUUH3.cjs} +63 -6
  24. package/dist/claim.cjs +10 -0
  25. package/dist/claim.d.cts +8 -0
  26. package/dist/claim.d.ts +8 -0
  27. package/dist/claim.mjs +10 -0
  28. package/dist/constants.cjs +3 -3
  29. package/dist/constants.d.cts +4 -2
  30. package/dist/constants.d.ts +4 -2
  31. package/dist/constants.mjs +5 -5
  32. package/dist/deposit.cjs +8 -6
  33. package/dist/deposit.d.cts +2 -2
  34. package/dist/deposit.d.ts +2 -2
  35. package/dist/deposit.mjs +7 -5
  36. package/dist/index.cjs +22 -12
  37. package/dist/index.d.cts +15 -2
  38. package/dist/index.d.ts +15 -2
  39. package/dist/index.mjs +21 -11
  40. package/dist/polymarket.cjs +5 -6
  41. package/dist/polymarket.mjs +2 -3
  42. package/dist/server.cjs +96 -0
  43. package/dist/server.d.cts +65 -0
  44. package/dist/server.d.ts +65 -0
  45. package/dist/server.mjs +96 -0
  46. package/dist/styles.css +263 -12
  47. package/dist/types-C0SGf-21.d.cts +606 -0
  48. package/dist/types-C0SGf-21.d.ts +606 -0
  49. package/dist/withdraw.cjs +6 -5
  50. package/dist/withdraw.d.cts +3 -6
  51. package/dist/withdraw.d.ts +3 -6
  52. package/dist/withdraw.mjs +5 -4
  53. package/package.json +53 -6
  54. package/dist/DepositModalReown-4BSHOQ5Y.mjs +0 -63
  55. package/dist/DepositModalReown-UND3DEJH.cjs +0 -63
  56. package/dist/WithdrawModalReown-FVXSSGY5.mjs +0 -46
  57. package/dist/WithdrawModalReown-TVZWJKQI.cjs +0 -46
  58. package/dist/chunk-7OKA6GNA.cjs +0 -4537
  59. package/dist/chunk-NASHLEVQ.mjs +0 -4537
  60. package/dist/chunk-O5OKA27M.mjs +0 -800
  61. package/dist/chunk-U7SVYWVD.cjs +0 -800
  62. package/dist/chunk-WK5AFRSP.mjs +0 -295
  63. package/dist/chunk-XRWQMIBY.cjs +0 -295
  64. package/dist/types--LQWg_4W.d.cts +0 -468
  65. package/dist/types--LQWg_4W.d.ts +0 -468
@@ -0,0 +1,81 @@
1
+ import {
2
+ CdnIcon,
3
+ ChevronRightIcon
4
+ } from "./chunk-VOGZAZB2.mjs";
5
+
6
+ // src/components/ui/ListRow.tsx
7
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
+ function ListRow({
9
+ leading,
10
+ leadingMedia,
11
+ title,
12
+ subtitle,
13
+ meta,
14
+ trailing,
15
+ action,
16
+ className = "",
17
+ onClick,
18
+ disabled,
19
+ ...props
20
+ }) {
21
+ const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
22
+ leadingMedia ? /* @__PURE__ */ jsx("span", { className: "rs-list-row-leading rs-list-row-leading--media", children: /* @__PURE__ */ jsx(CdnIcon, { src: leadingMedia }) }) : leading ? /* @__PURE__ */ jsx("span", { className: "rs-list-row-leading", children: leading }) : null,
23
+ /* @__PURE__ */ jsxs("div", { className: "rs-list-row-body", children: [
24
+ /* @__PURE__ */ jsxs("div", { className: "rs-list-row-text", children: [
25
+ /* @__PURE__ */ jsx("span", { className: "rs-list-row-title", children: title }),
26
+ subtitle && /* @__PURE__ */ jsx("span", { className: "rs-list-row-subtitle", children: subtitle })
27
+ ] }),
28
+ action ? /* @__PURE__ */ jsx(
29
+ "button",
30
+ {
31
+ type: "button",
32
+ className: "rs-list-row-action",
33
+ disabled,
34
+ onClick: (e) => {
35
+ e.stopPropagation();
36
+ action.onClick();
37
+ },
38
+ children: action.label
39
+ }
40
+ ) : meta && /* @__PURE__ */ jsx("div", { className: "rs-list-row-meta", children: meta })
41
+ ] }),
42
+ /* @__PURE__ */ jsx("span", { className: "rs-list-row-chevron", children: trailing ?? /* @__PURE__ */ jsx(ChevronRightIcon, {}) })
43
+ ] });
44
+ if (action) {
45
+ const handleKey = (e) => {
46
+ if (disabled) return;
47
+ if (e.key === "Enter" || e.key === " ") {
48
+ e.preventDefault();
49
+ onClick?.(e);
50
+ }
51
+ };
52
+ return /* @__PURE__ */ jsx(
53
+ "div",
54
+ {
55
+ className: `rs-list-row ${className}`.trim(),
56
+ role: "button",
57
+ tabIndex: disabled ? -1 : 0,
58
+ "aria-disabled": disabled || void 0,
59
+ onClick: disabled ? void 0 : (e) => onClick?.(e),
60
+ onKeyDown: handleKey,
61
+ children: inner
62
+ }
63
+ );
64
+ }
65
+ return /* @__PURE__ */ jsx(
66
+ "button",
67
+ {
68
+ type: "button",
69
+ className: `rs-list-row ${className}`.trim(),
70
+ onClick,
71
+ disabled,
72
+ ...props,
73
+ children: inner
74
+ }
75
+ );
76
+ }
77
+ ListRow.displayName = "ListRow";
78
+
79
+ export {
80
+ ListRow
81
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/core/version.ts
2
+ var MODAL_VERSION = "0.9.0";
3
+ var SERVICE_HEADERS = {
4
+ "Content-Type": "application/json",
5
+ "x-deposit-modal-version": MODAL_VERSION
6
+ };
7
+
8
+
9
+
10
+
11
+ exports.MODAL_VERSION = MODAL_VERSION; exports.SERVICE_HEADERS = SERVICE_HEADERS;