@ixo/editor 7.17.0 → 7.17.1
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/{BidConfig-P5H7O3ZI.js → BidConfig-PKO3SHPM.js} +4 -3
- package/dist/{BidConfig-P5H7O3ZI.js.map → BidConfig-PKO3SHPM.js.map} +1 -1
- package/dist/{BidFlowDetail-GIZKKMM7.js → BidFlowDetail-56UM43KU.js} +5 -4
- package/dist/{BidFlowDetail-GIZKKMM7.js.map → BidFlowDetail-56UM43KU.js.map} +1 -1
- package/dist/{CalendarEventCreateConfig-ZKNIK3UX.js → CalendarEventCreateConfig-MCNRXHUN.js} +4 -3
- package/dist/{CalendarEventCreateConfig-ZKNIK3UX.js.map → CalendarEventCreateConfig-MCNRXHUN.js.map} +1 -1
- package/dist/{CalendarEventCreateFlowDetail-ZYJFONQ7.js → CalendarEventCreateFlowDetail-6KSERH4V.js} +4 -3
- package/dist/{CalendarEventCreateFlowDetail-ZYJFONQ7.js.map → CalendarEventCreateFlowDetail-6KSERH4V.js.map} +1 -1
- package/dist/{CalendarEventListConfig-7G7SJVPB.js → CalendarEventListConfig-G3ENMMOL.js} +4 -3
- package/dist/{CalendarEventListConfig-7G7SJVPB.js.map → CalendarEventListConfig-G3ENMMOL.js.map} +1 -1
- package/dist/{CalendarEventUpdateConfig-KFG5ZP3J.js → CalendarEventUpdateConfig-SOE7ETBT.js} +4 -3
- package/dist/{CalendarEventUpdateConfig-KFG5ZP3J.js.map → CalendarEventUpdateConfig-SOE7ETBT.js.map} +1 -1
- package/dist/{CalendarEventUpdateFlowDetail-6KBM5565.js → CalendarEventUpdateFlowDetail-AS6O4DCV.js} +4 -3
- package/dist/{CalendarEventUpdateFlowDetail-6KBM5565.js.map → CalendarEventUpdateFlowDetail-AS6O4DCV.js.map} +1 -1
- package/dist/{ClaimConfig-AI5WAZ5E.js → ClaimConfig-XZWF6MXM.js} +4 -3
- package/dist/{ClaimConfig-AI5WAZ5E.js.map → ClaimConfig-XZWF6MXM.js.map} +1 -1
- package/dist/{ClaimFlowDetail-V65Q2SJB.js → ClaimFlowDetail-TLD7WGZD.js} +5 -4
- package/dist/{ClaimFlowDetail-V65Q2SJB.js.map → ClaimFlowDetail-TLD7WGZD.js.map} +1 -1
- package/dist/{CollectionLifecycleFlowDetail-DCKBNTID.js → CollectionLifecycleFlowDetail-W44R544P.js} +5 -4
- package/dist/{CollectionLifecycleFlowDetail-DCKBNTID.js.map → CollectionLifecycleFlowDetail-W44R544P.js.map} +1 -1
- package/dist/{CollectionUsersConfig-6MCC73OQ.js → CollectionUsersConfig-CTRSFWNE.js} +4 -3
- package/dist/{CollectionUsersConfig-6MCC73OQ.js.map → CollectionUsersConfig-CTRSFWNE.js.map} +1 -1
- package/dist/{CollectionUsersFlowDetail-PMYWADSC.js → CollectionUsersFlowDetail-SAFF27DZ.js} +8 -8
- package/dist/{CredentialStoreConfig-NHGY66QF.js → CredentialStoreConfig-UUIJPIMZ.js} +4 -3
- package/dist/{CredentialStoreConfig-NHGY66QF.js.map → CredentialStoreConfig-UUIJPIMZ.js.map} +1 -1
- package/dist/{EmailSendConfig-T5DTEG2Q.js → EmailSendConfig-LKBUVEOZ.js} +4 -3
- package/dist/{EmailSendConfig-T5DTEG2Q.js.map → EmailSendConfig-LKBUVEOZ.js.map} +1 -1
- package/dist/{EvalEngineConfig-2STZZYME.js → EvalEngineConfig-JP3LJWWU.js} +4 -3
- package/dist/{EvalEngineConfig-2STZZYME.js.map → EvalEngineConfig-JP3LJWWU.js.map} +1 -1
- package/dist/{EvaluateBidConfig-RMDAULDJ.js → EvaluateBidConfig-CXSCBM3X.js} +4 -3
- package/dist/{EvaluateBidConfig-RMDAULDJ.js.map → EvaluateBidConfig-CXSCBM3X.js.map} +1 -1
- package/dist/{EvaluateBidFlowDetail-DTNEOYAR.js → EvaluateBidFlowDetail-56FBHYK5.js} +5 -4
- package/dist/{EvaluateBidFlowDetail-DTNEOYAR.js.map → EvaluateBidFlowDetail-56FBHYK5.js.map} +1 -1
- package/dist/{EvaluateClaimConfig-OQ3AUXLF.js → EvaluateClaimConfig-XNRJJV4U.js} +4 -3
- package/dist/{EvaluateClaimConfig-OQ3AUXLF.js.map → EvaluateClaimConfig-XNRJJV4U.js.map} +1 -1
- package/dist/{EvaluateClaimFlowDetail-E4NKKURS.js → EvaluateClaimFlowDetail-4664ORTM.js} +5 -4
- package/dist/{EvaluateClaimFlowDetail-E4NKKURS.js.map → EvaluateClaimFlowDetail-4664ORTM.js.map} +1 -1
- package/dist/{GovernanceMemberProposalFlowDetail-XWSCTA5Q.js → GovernanceMemberProposalFlowDetail-IKFBZZJI.js} +12 -11
- package/dist/GovernanceMemberProposalFlowDetail-IKFBZZJI.js.map +1 -0
- package/dist/{HarvestConfig-DM3V52S7.js → HarvestConfig-FFARBTWA.js} +5 -4
- package/dist/{HarvestConfig-DM3V52S7.js.map → HarvestConfig-FFARBTWA.js.map} +1 -1
- package/dist/{HttpRequestConfig-QJI62HRG.js → HttpRequestConfig-JXWZ4XZ5.js} +4 -3
- package/dist/{HttpRequestConfig-QJI62HRG.js.map → HttpRequestConfig-JXWZ4XZ5.js.map} +1 -1
- package/dist/{IdentityCreateFlowDetail-UJVKHDHF.js → IdentityCreateFlowDetail-ZN5UYPAL.js} +4 -3
- package/dist/{IdentityCreateFlowDetail-UJVKHDHF.js.map → IdentityCreateFlowDetail-ZN5UYPAL.js.map} +1 -1
- package/dist/{IidCreateFlowDetail-GHMBPKMA.js → IidCreateFlowDetail-6V3HVZTJ.js} +4 -3
- package/dist/{IidCreateFlowDetail-GHMBPKMA.js.map → IidCreateFlowDetail-6V3HVZTJ.js.map} +1 -1
- package/dist/{KycVerifyConfig-VCZCPMHG.js → KycVerifyConfig-6F55N6UR.js} +4 -3
- package/dist/{KycVerifyConfig-VCZCPMHG.js.map → KycVerifyConfig-6F55N6UR.js.map} +1 -1
- package/dist/{KycVerifyFlowDetail-YERC5WYA.js → KycVerifyFlowDetail-H3R2KQT5.js} +4 -3
- package/dist/{KycVerifyFlowDetail-YERC5WYA.js.map → KycVerifyFlowDetail-H3R2KQT5.js.map} +1 -1
- package/dist/{OracleConfig-OSLSWVRA.js → OracleConfig-H736YKGE.js} +4 -3
- package/dist/{OracleConfig-OSLSWVRA.js.map → OracleConfig-H736YKGE.js.map} +1 -1
- package/dist/{OracleConfigureOracleFlowDetail-XPLZD46H.js → OracleConfigureOracleFlowDetail-AS3KBSVG.js} +4 -3
- package/dist/{OracleConfigureOracleFlowDetail-XPLZD46H.js.map → OracleConfigureOracleFlowDetail-AS3KBSVG.js.map} +1 -1
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-2WVWGUCD.js → OracleStoreSecretsAndConfigFlowDetail-332HYKKJ.js} +4 -3
- package/dist/{OracleStoreSecretsAndConfigFlowDetail-2WVWGUCD.js.map → OracleStoreSecretsAndConfigFlowDetail-332HYKKJ.js.map} +1 -1
- package/dist/{OracleStoreSecretsFlowDetail-FCQECAO5.js → OracleStoreSecretsFlowDetail-GX3ADRWP.js} +4 -3
- package/dist/{OracleStoreSecretsFlowDetail-FCQECAO5.js.map → OracleStoreSecretsFlowDetail-GX3ADRWP.js.map} +1 -1
- package/dist/{ProposalCreateConfig-SZ7JKIT2.js → ProposalCreateConfig-7YYMB5EH.js} +24 -8
- package/dist/ProposalCreateConfig-7YYMB5EH.js.map +1 -0
- package/dist/{ProposalCreateFlowDetail-KRWUT6F7.js → ProposalCreateFlowDetail-EU2NNZRS.js} +5 -4
- package/dist/{ProposalCreateFlowDetail-KRWUT6F7.js.map → ProposalCreateFlowDetail-EU2NNZRS.js.map} +1 -1
- package/dist/{ProposalVoteConfig-A72TJROG.js → ProposalVoteConfig-U5DF2WWT.js} +4 -3
- package/dist/{ProposalVoteConfig-A72TJROG.js.map → ProposalVoteConfig-U5DF2WWT.js.map} +1 -1
- package/dist/{RetireConfig-3FCYGEUG.js → RetireConfig-4QOIAETV.js} +5 -4
- package/dist/{RetireConfig-3FCYGEUG.js.map → RetireConfig-4QOIAETV.js.map} +1 -1
- package/dist/{WalletFundFlowDetail-2RBRI52X.js → WalletFundFlowDetail-767QZKZM.js} +4 -4
- package/dist/{XeroContactCreateConfig-GXEFOSCS.js → XeroContactCreateConfig-HXSGZD7Q.js} +4 -3
- package/dist/{XeroContactCreateConfig-GXEFOSCS.js.map → XeroContactCreateConfig-HXSGZD7Q.js.map} +1 -1
- package/dist/{XeroContactCreateFlowDetail-PQYBI3O2.js → XeroContactCreateFlowDetail-ZUUILA5R.js} +4 -3
- package/dist/{XeroContactCreateFlowDetail-PQYBI3O2.js.map → XeroContactCreateFlowDetail-ZUUILA5R.js.map} +1 -1
- package/dist/{XeroInvoiceCreateConfig-NRKIAY3J.js → XeroInvoiceCreateConfig-72KXJ73Z.js} +4 -3
- package/dist/{XeroInvoiceCreateConfig-NRKIAY3J.js.map → XeroInvoiceCreateConfig-72KXJ73Z.js.map} +1 -1
- package/dist/{XeroInvoiceCreateFlowDetail-BCQBQXPG.js → XeroInvoiceCreateFlowDetail-ZMYUYNQM.js} +5 -4
- package/dist/{XeroInvoiceCreateFlowDetail-BCQBQXPG.js.map → XeroInvoiceCreateFlowDetail-ZMYUYNQM.js.map} +1 -1
- package/dist/{XeroInvoiceListConfig-T2OQ3DGP.js → XeroInvoiceListConfig-DEZSXEVD.js} +4 -3
- package/dist/{XeroInvoiceListConfig-T2OQ3DGP.js.map → XeroInvoiceListConfig-DEZSXEVD.js.map} +1 -1
- package/dist/{XeroPaymentCreateConfig-N34OOVF3.js → XeroPaymentCreateConfig-VXXJE4QT.js} +4 -3
- package/dist/{XeroPaymentCreateConfig-N34OOVF3.js.map → XeroPaymentCreateConfig-VXXJE4QT.js.map} +1 -1
- package/dist/{XeroPaymentCreateFlowDetail-GFVSYSOT.js → XeroPaymentCreateFlowDetail-PXSGHLE2.js} +5 -4
- package/dist/{XeroPaymentCreateFlowDetail-GFVSYSOT.js.map → XeroPaymentCreateFlowDetail-PXSGHLE2.js.map} +1 -1
- package/dist/{chunk-DV3SAEKZ.js → chunk-3JJJGENW.js} +2 -2
- package/dist/{chunk-PAY3CBWL.js → chunk-AO5TGK5A.js} +257 -258
- package/dist/chunk-AO5TGK5A.js.map +1 -0
- package/dist/{chunk-FBYYPG5K.js → chunk-DP5X7SLN.js} +2 -2
- package/dist/{chunk-EWWURYIH.js → chunk-EGZGY3OM.js} +50 -50
- package/dist/{chunk-NPFETBLF.js → chunk-ICKOVZDM.js} +2 -2
- package/dist/{chunk-Z2CUKACX.js → chunk-KXTRAHCF.js} +6 -1
- package/dist/chunk-KXTRAHCF.js.map +1 -0
- package/dist/{chunk-ADFZLOPH.js → chunk-PNHXP67T.js} +2 -2
- package/dist/{chunk-MH2PPQSO.js → chunk-SYOPQ3JE.js} +3 -3
- package/dist/{chunk-43D3NWOA.js → chunk-TMQA4RSG.js} +5 -1
- package/dist/chunk-TMQA4RSG.js.map +1 -0
- package/dist/{chunk-WM3A4CI6.js → chunk-VNRY7ABX.js} +3 -3
- package/dist/{chunk-GOEVZRLH.js → chunk-WUWAC5S6.js} +2 -2
- package/dist/core/index.cjs +42 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +5 -4
- package/dist/core/index.js.map +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/mantine/index.js +9 -8
- package/dist/mantine/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/GovernanceMemberProposalFlowDetail-XWSCTA5Q.js.map +0 -1
- package/dist/ProposalCreateConfig-SZ7JKIT2.js.map +0 -1
- package/dist/chunk-43D3NWOA.js.map +0 -1
- package/dist/chunk-PAY3CBWL.js.map +0 -1
- package/dist/chunk-Z2CUKACX.js.map +0 -1
- /package/dist/{CollectionUsersFlowDetail-PMYWADSC.js.map → CollectionUsersFlowDetail-SAFF27DZ.js.map} +0 -0
- /package/dist/{WalletFundFlowDetail-2RBRI52X.js.map → WalletFundFlowDetail-767QZKZM.js.map} +0 -0
- /package/dist/{chunk-DV3SAEKZ.js.map → chunk-3JJJGENW.js.map} +0 -0
- /package/dist/{chunk-FBYYPG5K.js.map → chunk-DP5X7SLN.js.map} +0 -0
- /package/dist/{chunk-EWWURYIH.js.map → chunk-EGZGY3OM.js.map} +0 -0
- /package/dist/{chunk-NPFETBLF.js.map → chunk-ICKOVZDM.js.map} +0 -0
- /package/dist/{chunk-ADFZLOPH.js.map → chunk-PNHXP67T.js.map} +0 -0
- /package/dist/{chunk-MH2PPQSO.js.map → chunk-SYOPQ3JE.js.map} +0 -0
- /package/dist/{chunk-WM3A4CI6.js.map → chunk-VNRY7ABX.js.map} +0 -0
- /package/dist/{chunk-GOEVZRLH.js.map → chunk-WUWAC5S6.js.map} +0 -0
|
@@ -20,120 +20,18 @@ import React33, { useCallback, useEffect as useEffect3, useState as useState8 }
|
|
|
20
20
|
import { Alert as Alert4, Button as Button7, Card as Card8, Stack as Stack33, Text as Text11 } from "@mantine/core";
|
|
21
21
|
|
|
22
22
|
// src/mantine/blocks/proposal/actions-components/ActionsCard.tsx
|
|
23
|
-
import
|
|
24
|
-
import { Card, Group, Text, Badge, Stack, ActionIcon, ScrollArea } from "@mantine/core";
|
|
25
|
-
var getActionSummary = (action) => {
|
|
26
|
-
switch (action.type) {
|
|
27
|
-
case "Spend":
|
|
28
|
-
const spendData = action.data;
|
|
29
|
-
return `${spendData.amount} ${spendData.denom} to ${spendData.to.slice(0, 8)}...`;
|
|
30
|
-
case "UpdateMembers":
|
|
31
|
-
const membersData = action.data;
|
|
32
|
-
return `Add ${membersData.add.length}, Remove ${membersData.remove.length} members`;
|
|
33
|
-
default:
|
|
34
|
-
return "Unknown action";
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var getActionTypeColor = (type) => {
|
|
38
|
-
switch (type) {
|
|
39
|
-
case "Spend":
|
|
40
|
-
return "#4dabf7";
|
|
41
|
-
case "UpdateMembers":
|
|
42
|
-
return "#ffd43b";
|
|
43
|
-
default:
|
|
44
|
-
return "var(--mantine-color-dimmed)";
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
var ActionsCard = ({ actions, isSelected, onClick, onEditAction, onRemoveAction, disabled = false }) => {
|
|
48
|
-
const handleCardClick = (e) => {
|
|
49
|
-
if (e.target.closest(".action-button")) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
onClick();
|
|
53
|
-
};
|
|
54
|
-
return /* @__PURE__ */ React.createElement(
|
|
55
|
-
Card,
|
|
56
|
-
{
|
|
57
|
-
shadow: "sm",
|
|
58
|
-
padding: "lg",
|
|
59
|
-
radius: "md",
|
|
60
|
-
withBorder: true,
|
|
61
|
-
style: {
|
|
62
|
-
width: "100%",
|
|
63
|
-
cursor: "pointer",
|
|
64
|
-
backgroundColor: "var(--mantine-color-neutralColor-3)",
|
|
65
|
-
borderColor: isSelected ? "var(--mantine-color-accent-5)" : "var(--mantine-color-neutralColor-5)",
|
|
66
|
-
borderWidth: isSelected ? 2 : 1,
|
|
67
|
-
transition: "all 0.2s ease"
|
|
68
|
-
},
|
|
69
|
-
onClick: handleCardClick
|
|
70
|
-
},
|
|
71
|
-
/* @__PURE__ */ React.createElement(Group, { justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React.createElement(Stack, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React.createElement(Text, { size: "md", fw: 600 }, "Proposal Actions (", actions.length, ")"), actions.length === 0 ? /* @__PURE__ */ React.createElement(Text, { size: "sm", c: "dimmed" }, "No actions added yet.") : /* @__PURE__ */ React.createElement(ScrollArea, { h: actions.length > 3 ? 150 : void 0, style: { marginTop: 8 } }, /* @__PURE__ */ React.createElement(Stack, { gap: "xs" }, actions.map((action, index) => /* @__PURE__ */ React.createElement(
|
|
72
|
-
Card,
|
|
73
|
-
{
|
|
74
|
-
key: index,
|
|
75
|
-
withBorder: true,
|
|
76
|
-
padding: "xs",
|
|
77
|
-
style: {
|
|
78
|
-
backgroundColor: "var(--mantine-color-neutralColor-2)",
|
|
79
|
-
borderColor: "var(--mantine-color-neutralColor-5)"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
/* @__PURE__ */ React.createElement(Group, { justify: "space-between", align: "center" }, /* @__PURE__ */ React.createElement(Group, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React.createElement(
|
|
83
|
-
Badge,
|
|
84
|
-
{
|
|
85
|
-
size: "sm",
|
|
86
|
-
variant: "light",
|
|
87
|
-
style: {
|
|
88
|
-
backgroundColor: `${getActionTypeColor(action.type)}20`,
|
|
89
|
-
color: getActionTypeColor(action.type)
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
action.type
|
|
93
|
-
), /* @__PURE__ */ React.createElement(Text, { size: "sm", c: "dimmed" }, getActionSummary(action))), !disabled && /* @__PURE__ */ React.createElement(Group, { gap: 4 }, /* @__PURE__ */ React.createElement(
|
|
94
|
-
ActionIcon,
|
|
95
|
-
{
|
|
96
|
-
size: "sm",
|
|
97
|
-
variant: "subtle",
|
|
98
|
-
className: "action-button",
|
|
99
|
-
onClick: (e) => {
|
|
100
|
-
e.stopPropagation();
|
|
101
|
-
onEditAction(index);
|
|
102
|
-
},
|
|
103
|
-
style: { color: "var(--mantine-color-accent-5)" }
|
|
104
|
-
},
|
|
105
|
-
"\u270F\uFE0F"
|
|
106
|
-
), /* @__PURE__ */ React.createElement(
|
|
107
|
-
ActionIcon,
|
|
108
|
-
{
|
|
109
|
-
size: "sm",
|
|
110
|
-
variant: "subtle",
|
|
111
|
-
className: "action-button",
|
|
112
|
-
onClick: (e) => {
|
|
113
|
-
e.stopPropagation();
|
|
114
|
-
onRemoveAction(index);
|
|
115
|
-
},
|
|
116
|
-
style: { color: "var(--mantine-color-red-5)" }
|
|
117
|
-
},
|
|
118
|
-
"\u{1F5D1}\uFE0F"
|
|
119
|
-
)))
|
|
120
|
-
))))))
|
|
121
|
-
);
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
// src/mantine/blocks/proposal/ActionsPanel.tsx
|
|
125
|
-
import React32, { useState as useState7, useEffect as useEffect2, useMemo } from "react";
|
|
126
|
-
import { Stack as Stack32, Button as Button6, Group as Group12, Text as Text10, Card as Card7, Badge as Badge4, Divider as Divider2, ScrollArea as ScrollArea3, Alert as Alert3, Tabs, SimpleGrid, Paper } from "@mantine/core";
|
|
23
|
+
import React31 from "react";
|
|
24
|
+
import { Card as Card6, Group as Group11, Text as Text9, Badge as Badge3, Stack as Stack31, ActionIcon as ActionIcon2, ScrollArea as ScrollArea2 } from "@mantine/core";
|
|
127
25
|
|
|
128
26
|
// src/mantine/blocks/proposal/actions-components/SpendActionForm.tsx
|
|
129
|
-
import
|
|
130
|
-
import { Stack
|
|
27
|
+
import React from "react";
|
|
28
|
+
import { Stack, Text } from "@mantine/core";
|
|
131
29
|
var IXO_DENOM = "uixo";
|
|
132
30
|
var IXO_EXPONENT = 6;
|
|
133
31
|
var SpendActionForm = ({ data, onChange }) => {
|
|
134
32
|
const isIxo = data.denom === IXO_DENOM;
|
|
135
33
|
const displayAmount = isIxo && data.amount !== "" ? Number(data.amount) / 10 ** IXO_EXPONENT : data.amount;
|
|
136
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ React.createElement(Stack, null, /* @__PURE__ */ React.createElement(
|
|
137
35
|
BaseTextInput,
|
|
138
36
|
{
|
|
139
37
|
label: "Recipient address",
|
|
@@ -143,7 +41,7 @@ var SpendActionForm = ({ data, onChange }) => {
|
|
|
143
41
|
onChange: (e) => onChange({ ...data, to: e.currentTarget.value }),
|
|
144
42
|
required: true
|
|
145
43
|
}
|
|
146
|
-
), /* @__PURE__ */
|
|
44
|
+
), /* @__PURE__ */ React.createElement(
|
|
147
45
|
BaseTextInput,
|
|
148
46
|
{
|
|
149
47
|
label: "Token",
|
|
@@ -153,7 +51,7 @@ var SpendActionForm = ({ data, onChange }) => {
|
|
|
153
51
|
onChange: (e) => onChange({ ...data, denom: e.currentTarget.value, amount: "" }),
|
|
154
52
|
required: true
|
|
155
53
|
}
|
|
156
|
-
), isIxo ? /* @__PURE__ */
|
|
54
|
+
), isIxo ? /* @__PURE__ */ React.createElement(
|
|
157
55
|
BaseNumberInput,
|
|
158
56
|
{
|
|
159
57
|
label: "Amount (IXO)",
|
|
@@ -166,7 +64,7 @@ var SpendActionForm = ({ data, onChange }) => {
|
|
|
166
64
|
},
|
|
167
65
|
min: 0
|
|
168
66
|
}
|
|
169
|
-
) : /* @__PURE__ */
|
|
67
|
+
) : /* @__PURE__ */ React.createElement(Stack, { gap: 4 }, /* @__PURE__ */ React.createElement(
|
|
170
68
|
BaseTextInput,
|
|
171
69
|
{
|
|
172
70
|
label: "Amount",
|
|
@@ -176,12 +74,12 @@ var SpendActionForm = ({ data, onChange }) => {
|
|
|
176
74
|
onChange: (e) => onChange({ ...data, amount: e.currentTarget.value }),
|
|
177
75
|
required: true
|
|
178
76
|
}
|
|
179
|
-
), /* @__PURE__ */
|
|
77
|
+
), /* @__PURE__ */ React.createElement(Text, { size: "xs", c: "dimmed" }, "Tokens are counted in their smallest unit on-chain. Double-check the amount before submitting.")));
|
|
180
78
|
};
|
|
181
79
|
|
|
182
80
|
// src/mantine/blocks/proposal/actions-components/UpdateMembersActionForm.tsx
|
|
183
|
-
import
|
|
184
|
-
import { Stack as
|
|
81
|
+
import React2, { useState } from "react";
|
|
82
|
+
import { Stack as Stack2, Button, Group, Text as Text2, Card, Badge, ActionIcon, Divider, ScrollArea } from "@mantine/core";
|
|
185
83
|
var UpdateMembersActionForm = ({ data, onChange }) => {
|
|
186
84
|
const [newMember, setNewMember] = useState({ addr: "", weight: 1 });
|
|
187
85
|
const [newRemoveAddress, setNewRemoveAddress] = useState("");
|
|
@@ -213,8 +111,8 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
|
|
|
213
111
|
remove: (data.remove || []).filter((_, i) => i !== index)
|
|
214
112
|
});
|
|
215
113
|
};
|
|
216
|
-
return /* @__PURE__ */
|
|
217
|
-
|
|
114
|
+
return /* @__PURE__ */ React2.createElement(Stack2, null, /* @__PURE__ */ React2.createElement(Stack2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(Text2, { size: "sm", fw: 500, style: { color: "var(--mantine-color-dimmed)" } }, "Members to Add"), /* @__PURE__ */ React2.createElement(ScrollArea, { h: 150 }, /* @__PURE__ */ React2.createElement(Stack2, { gap: "xs" }, (data.add || []).map((member, index) => /* @__PURE__ */ React2.createElement(
|
|
115
|
+
Card,
|
|
218
116
|
{
|
|
219
117
|
key: index,
|
|
220
118
|
withBorder: true,
|
|
@@ -224,8 +122,8 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
|
|
|
224
122
|
borderColor: "var(--mantine-color-neutralColor-5)"
|
|
225
123
|
}
|
|
226
124
|
},
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
|
|
125
|
+
/* @__PURE__ */ React2.createElement(Group, { justify: "space-between" }, /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement(Text2, { size: "sm", fw: 500, style: { color: "var(--mantine-color-text)" } }, member.addr.slice(0, 20), "..."), /* @__PURE__ */ React2.createElement(
|
|
126
|
+
Badge,
|
|
229
127
|
{
|
|
230
128
|
size: "sm",
|
|
231
129
|
style: {
|
|
@@ -235,8 +133,8 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
|
|
|
235
133
|
},
|
|
236
134
|
"Weight: ",
|
|
237
135
|
member.weight
|
|
238
|
-
)), /* @__PURE__ */
|
|
239
|
-
)))), /* @__PURE__ */
|
|
136
|
+
)), /* @__PURE__ */ React2.createElement(ActionIcon, { size: "sm", variant: "subtle", onClick: () => handleRemoveMember(index), style: { color: "var(--mantine-color-red-5)" } }, "\u{1F5D1}\uFE0F"))
|
|
137
|
+
)))), /* @__PURE__ */ React2.createElement(Group, { grow: true }, /* @__PURE__ */ React2.createElement(BaseTextInput, { placeholder: "Member address", value: newMember.addr, onChange: (e) => setNewMember({ ...newMember, addr: e.currentTarget.value }) }), /* @__PURE__ */ React2.createElement(BaseNumberInput, { placeholder: "Weight", value: newMember.weight, onChange: (value) => setNewMember({ ...newMember, weight: Number(value) || 1 }), min: 1 }), /* @__PURE__ */ React2.createElement(
|
|
240
138
|
Button,
|
|
241
139
|
{
|
|
242
140
|
size: "sm",
|
|
@@ -249,8 +147,8 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
|
|
|
249
147
|
}
|
|
250
148
|
},
|
|
251
149
|
"\u2795 Add"
|
|
252
|
-
))), /* @__PURE__ */
|
|
253
|
-
|
|
150
|
+
))), /* @__PURE__ */ React2.createElement(Divider, { color: "#333" }), /* @__PURE__ */ React2.createElement(Stack2, { gap: "xs" }, /* @__PURE__ */ React2.createElement(Text2, { size: "sm", fw: 500, style: { color: "var(--mantine-color-dimmed)" } }, "Members to Remove"), /* @__PURE__ */ React2.createElement(ScrollArea, { h: 100 }, /* @__PURE__ */ React2.createElement(Stack2, { gap: "xs" }, (data.remove || []).map((item, index) => /* @__PURE__ */ React2.createElement(
|
|
151
|
+
Card,
|
|
254
152
|
{
|
|
255
153
|
key: index,
|
|
256
154
|
withBorder: true,
|
|
@@ -260,8 +158,8 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
|
|
|
260
158
|
borderColor: "var(--mantine-color-neutralColor-5)"
|
|
261
159
|
}
|
|
262
160
|
},
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
)))), /* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ React2.createElement(Group, { justify: "space-between" }, /* @__PURE__ */ React2.createElement(Text2, { size: "sm", style: { color: "var(--mantine-color-dimmed)" } }, item.addr.slice(0, 30), "..."), /* @__PURE__ */ React2.createElement(ActionIcon, { size: "sm", variant: "subtle", onClick: () => handleRemoveRemoveAddress(index), style: { color: "var(--mantine-color-red-5)" } }, "\u{1F5D1}\uFE0F"))
|
|
162
|
+
)))), /* @__PURE__ */ React2.createElement(Group, { grow: true }, /* @__PURE__ */ React2.createElement(BaseTextInput, { placeholder: "Address to remove", value: newRemoveAddress, onChange: (e) => setNewRemoveAddress(e.currentTarget.value) }), /* @__PURE__ */ React2.createElement(
|
|
265
163
|
Button,
|
|
266
164
|
{
|
|
267
165
|
size: "sm",
|
|
@@ -278,8 +176,8 @@ var UpdateMembersActionForm = ({ data, onChange }) => {
|
|
|
278
176
|
};
|
|
279
177
|
|
|
280
178
|
// src/mantine/blocks/proposal/actions-components/StakeActionForm.tsx
|
|
281
|
-
import
|
|
282
|
-
import { Stack as
|
|
179
|
+
import React3 from "react";
|
|
180
|
+
import { Stack as Stack3 } from "@mantine/core";
|
|
283
181
|
var stakeTypeOptions = [
|
|
284
182
|
{ value: StakeType.Delegate, label: "Delegate" },
|
|
285
183
|
{ value: StakeType.Undelegate, label: "Undelegate" },
|
|
@@ -289,7 +187,7 @@ var stakeTypeOptions = [
|
|
|
289
187
|
var StakeActionForm = ({ data, onChange }) => {
|
|
290
188
|
const isRedelegate = data.stakeType === StakeType.Redelegate;
|
|
291
189
|
const needsAmount = data.stakeType !== StakeType.WithdrawDelegatorReward;
|
|
292
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ React3.createElement(Stack3, { gap: "md" }, /* @__PURE__ */ React3.createElement(BaseSelect, { label: "Stake Type", value: data.stakeType, onChange: (value) => onChange({ ...data, stakeType: value }), data: stakeTypeOptions, required: true }), /* @__PURE__ */ React3.createElement(
|
|
293
191
|
BaseTextInput,
|
|
294
192
|
{
|
|
295
193
|
label: "Validator Address",
|
|
@@ -298,7 +196,7 @@ var StakeActionForm = ({ data, onChange }) => {
|
|
|
298
196
|
onChange: (e) => onChange({ ...data, validator: e.target.value }),
|
|
299
197
|
required: true
|
|
300
198
|
}
|
|
301
|
-
), isRedelegate && /* @__PURE__ */
|
|
199
|
+
), isRedelegate && /* @__PURE__ */ React3.createElement(
|
|
302
200
|
BaseTextInput,
|
|
303
201
|
{
|
|
304
202
|
label: "Destination Validator Address",
|
|
@@ -307,7 +205,7 @@ var StakeActionForm = ({ data, onChange }) => {
|
|
|
307
205
|
onChange: (e) => onChange({ ...data, toValidator: e.target.value }),
|
|
308
206
|
required: true
|
|
309
207
|
}
|
|
310
|
-
), needsAmount && /* @__PURE__ */
|
|
208
|
+
), needsAmount && /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
|
|
311
209
|
BaseNumberInput,
|
|
312
210
|
{
|
|
313
211
|
label: "Amount",
|
|
@@ -318,7 +216,7 @@ var StakeActionForm = ({ data, onChange }) => {
|
|
|
318
216
|
hideControls: true,
|
|
319
217
|
required: true
|
|
320
218
|
}
|
|
321
|
-
), /* @__PURE__ */
|
|
219
|
+
), /* @__PURE__ */ React3.createElement(
|
|
322
220
|
BaseSelect,
|
|
323
221
|
{
|
|
324
222
|
label: "Denomination",
|
|
@@ -334,17 +232,17 @@ var StakeActionForm = ({ data, onChange }) => {
|
|
|
334
232
|
};
|
|
335
233
|
|
|
336
234
|
// src/mantine/blocks/proposal/actions-components/JoinActionForm.tsx
|
|
337
|
-
import
|
|
338
|
-
import { Stack as
|
|
235
|
+
import React4 from "react";
|
|
236
|
+
import { Stack as Stack4 } from "@mantine/core";
|
|
339
237
|
var JoinActionForm = ({ data, onChange }) => {
|
|
340
|
-
return /* @__PURE__ */
|
|
238
|
+
return /* @__PURE__ */ React4.createElement(Stack4, { gap: "md" }, /* @__PURE__ */ React4.createElement(BaseTextInput, { label: "ID", placeholder: "did:ixo:entity:abc123...", value: data.id, onChange: (e) => onChange({ ...data, id: e.target.value }), required: true }), /* @__PURE__ */ React4.createElement(BaseTextInput, { label: "Core Address", placeholder: "ixo1...", value: data.coreAddress, onChange: (e) => onChange({ ...data, coreAddress: e.target.value }), required: true }), /* @__PURE__ */ React4.createElement(BaseTextInput, { label: "Address", placeholder: "ixo1...", value: data.address, onChange: (e) => onChange({ ...data, address: e.target.value }), required: true }));
|
|
341
239
|
};
|
|
342
240
|
|
|
343
241
|
// src/mantine/blocks/proposal/actions-components/forms/MintActionForm.tsx
|
|
344
|
-
import
|
|
345
|
-
import { Stack as
|
|
242
|
+
import React5 from "react";
|
|
243
|
+
import { Stack as Stack5 } from "@mantine/core";
|
|
346
244
|
var MintActionForm = ({ data, onChange }) => {
|
|
347
|
-
return /* @__PURE__ */
|
|
245
|
+
return /* @__PURE__ */ React5.createElement(Stack5, { gap: "md" }, /* @__PURE__ */ React5.createElement(BaseTextInput, { label: "Recipient Address", placeholder: "ixo1...", value: data.to, onChange: (e) => onChange({ ...data, to: e.currentTarget.value }), required: true }), /* @__PURE__ */ React5.createElement(
|
|
348
246
|
BaseNumberInput,
|
|
349
247
|
{
|
|
350
248
|
label: "Amount",
|
|
@@ -359,8 +257,8 @@ var MintActionForm = ({ data, onChange }) => {
|
|
|
359
257
|
};
|
|
360
258
|
|
|
361
259
|
// src/mantine/blocks/proposal/actions-components/forms/ExecuteActionForm.tsx
|
|
362
|
-
import
|
|
363
|
-
import { Stack as
|
|
260
|
+
import React6, { useState as useState2 } from "react";
|
|
261
|
+
import { Stack as Stack6, Button as Button2, Group as Group2, Text as Text3, Card as Card2 } from "@mantine/core";
|
|
364
262
|
var ExecuteActionForm = ({ data, onChange }) => {
|
|
365
263
|
const [newFund, setNewFund] = useState2({ denom: "uixo", amount: "" });
|
|
366
264
|
const handleAddFund = () => {
|
|
@@ -386,7 +284,7 @@ var ExecuteActionForm = ({ data, onChange }) => {
|
|
|
386
284
|
return data.message;
|
|
387
285
|
}
|
|
388
286
|
};
|
|
389
|
-
return /* @__PURE__ */
|
|
287
|
+
return /* @__PURE__ */ React6.createElement(Stack6, { gap: "md" }, /* @__PURE__ */ React6.createElement(BaseTextInput, { label: "Contract Address", placeholder: "ixo1...", value: data.address, onChange: (e) => onChange({ ...data, address: e.currentTarget.value }), required: true }), /* @__PURE__ */ React6.createElement(
|
|
390
288
|
BaseTextArea,
|
|
391
289
|
{
|
|
392
290
|
label: "Message (JSON)",
|
|
@@ -396,7 +294,7 @@ var ExecuteActionForm = ({ data, onChange }) => {
|
|
|
396
294
|
minRows: 4,
|
|
397
295
|
required: true
|
|
398
296
|
}
|
|
399
|
-
), /* @__PURE__ */
|
|
297
|
+
), /* @__PURE__ */ React6.createElement(Stack6, { gap: "xs" }, /* @__PURE__ */ React6.createElement(Text3, { size: "sm", fw: 500, style: { color: "var(--mantine-color-dimmed)" } }, "Funds (Optional)"), (data.funds || []).map((fund, index) => /* @__PURE__ */ React6.createElement(Card2, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" } }, /* @__PURE__ */ React6.createElement(Group2, { justify: "space-between" }, /* @__PURE__ */ React6.createElement(Text3, { size: "sm", style: { color: "var(--mantine-color-text)" } }, fund.amount, " ", fund.denom), /* @__PURE__ */ React6.createElement(Button2, { size: "xs", variant: "subtle", onClick: () => handleRemoveFund(index), style: { color: "var(--mantine-color-red-5)" } }, "Remove")))), /* @__PURE__ */ React6.createElement(Group2, { grow: true }, /* @__PURE__ */ React6.createElement(BaseTextInput, { placeholder: "Amount", value: newFund.amount, onChange: (e) => setNewFund({ ...newFund, amount: e.currentTarget.value }) }), /* @__PURE__ */ React6.createElement(BaseTextInput, { placeholder: "Denom (e.g., uixo)", value: newFund.denom, onChange: (e) => setNewFund({ ...newFund, denom: e.currentTarget.value }) }), /* @__PURE__ */ React6.createElement(
|
|
400
298
|
Button2,
|
|
401
299
|
{
|
|
402
300
|
size: "sm",
|
|
@@ -411,8 +309,8 @@ var ExecuteActionForm = ({ data, onChange }) => {
|
|
|
411
309
|
};
|
|
412
310
|
|
|
413
311
|
// src/mantine/blocks/proposal/actions-components/forms/CustomActionForm.tsx
|
|
414
|
-
import
|
|
415
|
-
import { Stack as
|
|
312
|
+
import React7, { useState as useState3, useEffect } from "react";
|
|
313
|
+
import { Stack as Stack7, Alert, Group as Group3, Text as Text4, Badge as Badge2 } from "@mantine/core";
|
|
416
314
|
var CustomActionForm = ({ data, onChange }) => {
|
|
417
315
|
const [isValid, setIsValid] = useState3(true);
|
|
418
316
|
const [error, setError] = useState3("");
|
|
@@ -436,8 +334,8 @@ var CustomActionForm = ({ data, onChange }) => {
|
|
|
436
334
|
return data.message;
|
|
437
335
|
}
|
|
438
336
|
};
|
|
439
|
-
return /* @__PURE__ */
|
|
440
|
-
|
|
337
|
+
return /* @__PURE__ */ React7.createElement(Stack7, { gap: "md" }, /* @__PURE__ */ React7.createElement(Alert, { color: "yellow" }, /* @__PURE__ */ React7.createElement(Text4, { size: "sm" }, "\u26A0\uFE0F Custom actions require valid JSON messages. Supports both Wasm and Stargate message formats.")), /* @__PURE__ */ React7.createElement("div", null, /* @__PURE__ */ React7.createElement(Group3, { gap: "xs", mb: "xs" }, /* @__PURE__ */ React7.createElement(Text4, { size: "sm", fw: 500, style: { color: "var(--mantine-color-dimmed)" } }, "Custom Message (JSON)"), /* @__PURE__ */ React7.createElement(
|
|
338
|
+
Badge2,
|
|
441
339
|
{
|
|
442
340
|
size: "sm",
|
|
443
341
|
style: {
|
|
@@ -446,7 +344,7 @@ var CustomActionForm = ({ data, onChange }) => {
|
|
|
446
344
|
}
|
|
447
345
|
},
|
|
448
346
|
isValid ? "Valid JSON" : "Invalid JSON"
|
|
449
|
-
)), /* @__PURE__ */
|
|
347
|
+
)), /* @__PURE__ */ React7.createElement(
|
|
450
348
|
BaseTextArea,
|
|
451
349
|
{
|
|
452
350
|
placeholder: `Example Wasm message:
|
|
@@ -478,8 +376,8 @@ Example Stargate message:
|
|
|
478
376
|
};
|
|
479
377
|
|
|
480
378
|
// src/mantine/blocks/proposal/actions-components/forms/AuthzExecActionForm.tsx
|
|
481
|
-
import
|
|
482
|
-
import { Stack as
|
|
379
|
+
import React8 from "react";
|
|
380
|
+
import { Stack as Stack8 } from "@mantine/core";
|
|
483
381
|
var AuthzExecActionForm = ({ data, onChange }) => {
|
|
484
382
|
const actionTypeOptions = [
|
|
485
383
|
{ value: AuthzExecActionTypes.Delegate, label: "Delegate" },
|
|
@@ -503,7 +401,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
|
|
|
503
401
|
onChange({ ...data, [field]: value });
|
|
504
402
|
}
|
|
505
403
|
};
|
|
506
|
-
return /* @__PURE__ */
|
|
404
|
+
return /* @__PURE__ */ React8.createElement(Stack8, { gap: "md" }, /* @__PURE__ */ React8.createElement(
|
|
507
405
|
BaseSelect,
|
|
508
406
|
{
|
|
509
407
|
label: "Action Type",
|
|
@@ -513,7 +411,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
|
|
|
513
411
|
data: actionTypeOptions,
|
|
514
412
|
required: true
|
|
515
413
|
}
|
|
516
|
-
), data.authzExecActionType === AuthzExecActionTypes.Delegate && /* @__PURE__ */
|
|
414
|
+
), data.authzExecActionType === AuthzExecActionTypes.Delegate && /* @__PURE__ */ React8.createElement(
|
|
517
415
|
BaseTextArea,
|
|
518
416
|
{
|
|
519
417
|
label: "Delegate Message (JSON)",
|
|
@@ -522,7 +420,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
|
|
|
522
420
|
onChange: (e) => handleMessageChange("delegate", e.currentTarget.value),
|
|
523
421
|
minRows: 4
|
|
524
422
|
}
|
|
525
|
-
), data.authzExecActionType === AuthzExecActionTypes.Undelegate && /* @__PURE__ */
|
|
423
|
+
), data.authzExecActionType === AuthzExecActionTypes.Undelegate && /* @__PURE__ */ React8.createElement(
|
|
526
424
|
BaseTextArea,
|
|
527
425
|
{
|
|
528
426
|
label: "Undelegate Message (JSON)",
|
|
@@ -531,7 +429,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
|
|
|
531
429
|
onChange: (e) => handleMessageChange("undelegate", e.currentTarget.value),
|
|
532
430
|
minRows: 4
|
|
533
431
|
}
|
|
534
|
-
), data.authzExecActionType === AuthzExecActionTypes.Redelegate && /* @__PURE__ */
|
|
432
|
+
), data.authzExecActionType === AuthzExecActionTypes.Redelegate && /* @__PURE__ */ React8.createElement(
|
|
535
433
|
BaseTextArea,
|
|
536
434
|
{
|
|
537
435
|
label: "Redelegate Message (JSON)",
|
|
@@ -540,7 +438,7 @@ var AuthzExecActionForm = ({ data, onChange }) => {
|
|
|
540
438
|
onChange: (e) => handleMessageChange("redelegate", e.currentTarget.value),
|
|
541
439
|
minRows: 4
|
|
542
440
|
}
|
|
543
|
-
), data.authzExecActionType === AuthzExecActionTypes.ClaimRewards && /* @__PURE__ */
|
|
441
|
+
), data.authzExecActionType === AuthzExecActionTypes.ClaimRewards && /* @__PURE__ */ React8.createElement(
|
|
544
442
|
BaseTextArea,
|
|
545
443
|
{
|
|
546
444
|
label: "Claim Rewards Message (JSON)",
|
|
@@ -549,14 +447,14 @@ var AuthzExecActionForm = ({ data, onChange }) => {
|
|
|
549
447
|
onChange: (e) => handleMessageChange("claimRewards", e.currentTarget.value),
|
|
550
448
|
minRows: 3
|
|
551
449
|
}
|
|
552
|
-
), data.authzExecActionType === AuthzExecActionTypes.Custom && /* @__PURE__ */
|
|
450
|
+
), data.authzExecActionType === AuthzExecActionTypes.Custom && /* @__PURE__ */ React8.createElement(BaseTextInput, { label: "Custom Message", placeholder: "Enter custom message", value: data.custom, onChange: (e) => onChange({ ...data, custom: e.currentTarget.value }) }));
|
|
553
451
|
};
|
|
554
452
|
|
|
555
453
|
// src/mantine/blocks/proposal/actions-components/forms/AuthzGrantActionForm.tsx
|
|
556
|
-
import
|
|
557
|
-
import { Stack as
|
|
454
|
+
import React9 from "react";
|
|
455
|
+
import { Stack as Stack9 } from "@mantine/core";
|
|
558
456
|
var AuthzGrantActionForm = ({ data, onChange }) => {
|
|
559
|
-
return /* @__PURE__ */
|
|
457
|
+
return /* @__PURE__ */ React9.createElement(Stack9, { gap: "md" }, /* @__PURE__ */ React9.createElement(
|
|
560
458
|
BaseTextInput,
|
|
561
459
|
{
|
|
562
460
|
label: "Type URL",
|
|
@@ -565,7 +463,7 @@ var AuthzGrantActionForm = ({ data, onChange }) => {
|
|
|
565
463
|
onChange: (e) => onChange({ ...data, typeUrl: e.currentTarget.value }),
|
|
566
464
|
required: true
|
|
567
465
|
}
|
|
568
|
-
), /* @__PURE__ */
|
|
466
|
+
), /* @__PURE__ */ React9.createElement(
|
|
569
467
|
BaseTextInput,
|
|
570
468
|
{
|
|
571
469
|
label: "Grantee Address",
|
|
@@ -577,7 +475,7 @@ var AuthzGrantActionForm = ({ data, onChange }) => {
|
|
|
577
475
|
}),
|
|
578
476
|
required: true
|
|
579
477
|
}
|
|
580
|
-
), /* @__PURE__ */
|
|
478
|
+
), /* @__PURE__ */ React9.createElement(
|
|
581
479
|
BaseTextInput,
|
|
582
480
|
{
|
|
583
481
|
label: "Message Type URL",
|
|
@@ -593,17 +491,17 @@ var AuthzGrantActionForm = ({ data, onChange }) => {
|
|
|
593
491
|
};
|
|
594
492
|
|
|
595
493
|
// src/mantine/blocks/proposal/actions-components/forms/BurnNftActionForm.tsx
|
|
596
|
-
import
|
|
597
|
-
import { Stack as
|
|
494
|
+
import React10 from "react";
|
|
495
|
+
import { Stack as Stack10 } from "@mantine/core";
|
|
598
496
|
var BurnNftActionForm = ({ data, onChange }) => {
|
|
599
|
-
return /* @__PURE__ */
|
|
497
|
+
return /* @__PURE__ */ React10.createElement(Stack10, { gap: "md" }, /* @__PURE__ */ React10.createElement(BaseTextInput, { label: "Collection Address", placeholder: "ixo1...", value: data.collection, onChange: (e) => onChange({ ...data, collection: e.currentTarget.value }), required: true }), /* @__PURE__ */ React10.createElement(BaseTextInput, { label: "Token ID", placeholder: "1", value: data.tokenId, onChange: (e) => onChange({ ...data, tokenId: e.currentTarget.value }), required: true }));
|
|
600
498
|
};
|
|
601
499
|
|
|
602
500
|
// src/mantine/blocks/proposal/actions-components/forms/TransferNftActionForm.tsx
|
|
603
|
-
import
|
|
604
|
-
import { Stack as
|
|
501
|
+
import React11 from "react";
|
|
502
|
+
import { Stack as Stack11, Checkbox } from "@mantine/core";
|
|
605
503
|
var TransferNftActionForm = ({ data, onChange }) => {
|
|
606
|
-
return /* @__PURE__ */
|
|
504
|
+
return /* @__PURE__ */ React11.createElement(Stack11, { gap: "md" }, /* @__PURE__ */ React11.createElement(BaseTextInput, { label: "Collection Address", placeholder: "ixo1...", value: data.collection, onChange: (e) => onChange({ ...data, collection: e.currentTarget.value }), required: true }), /* @__PURE__ */ React11.createElement(BaseTextInput, { label: "Token ID", placeholder: "1", value: data.tokenId, onChange: (e) => onChange({ ...data, tokenId: e.currentTarget.value }), required: true }), /* @__PURE__ */ React11.createElement(BaseTextInput, { label: "Recipient Address", placeholder: "ixo1...", value: data.recipient, onChange: (e) => onChange({ ...data, recipient: e.currentTarget.value }), required: true }), /* @__PURE__ */ React11.createElement(
|
|
607
505
|
Checkbox,
|
|
608
506
|
{
|
|
609
507
|
label: "Execute Smart Contract",
|
|
@@ -614,7 +512,7 @@ var TransferNftActionForm = ({ data, onChange }) => {
|
|
|
614
512
|
input: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
615
513
|
}
|
|
616
514
|
}
|
|
617
|
-
), data.executeSmartContract && /* @__PURE__ */
|
|
515
|
+
), data.executeSmartContract && /* @__PURE__ */ React11.createElement(
|
|
618
516
|
BaseTextArea,
|
|
619
517
|
{
|
|
620
518
|
label: "Smart Contract Message (JSON)",
|
|
@@ -627,10 +525,10 @@ var TransferNftActionForm = ({ data, onChange }) => {
|
|
|
627
525
|
};
|
|
628
526
|
|
|
629
527
|
// src/mantine/blocks/proposal/actions-components/forms/ManageCw721ActionForm.tsx
|
|
630
|
-
import
|
|
631
|
-
import { Stack as
|
|
528
|
+
import React12 from "react";
|
|
529
|
+
import { Stack as Stack12, Radio, Group as Group4 } from "@mantine/core";
|
|
632
530
|
var ManageCw721ActionForm = ({ data, onChange }) => {
|
|
633
|
-
return /* @__PURE__ */
|
|
531
|
+
return /* @__PURE__ */ React12.createElement(Stack12, { gap: "md" }, /* @__PURE__ */ React12.createElement(Radio.Group, { label: "Action", value: data.adding ? "add" : "remove", onChange: (value) => onChange({ ...data, adding: value === "add" }) }, /* @__PURE__ */ React12.createElement(Group4, { mt: "xs" }, /* @__PURE__ */ React12.createElement(
|
|
634
532
|
Radio,
|
|
635
533
|
{
|
|
636
534
|
value: "add",
|
|
@@ -640,7 +538,7 @@ var ManageCw721ActionForm = ({ data, onChange }) => {
|
|
|
640
538
|
radio: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
641
539
|
}
|
|
642
540
|
}
|
|
643
|
-
), /* @__PURE__ */
|
|
541
|
+
), /* @__PURE__ */ React12.createElement(
|
|
644
542
|
Radio,
|
|
645
543
|
{
|
|
646
544
|
value: "remove",
|
|
@@ -650,12 +548,12 @@ var ManageCw721ActionForm = ({ data, onChange }) => {
|
|
|
650
548
|
radio: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
651
549
|
}
|
|
652
550
|
}
|
|
653
|
-
))), /* @__PURE__ */
|
|
551
|
+
))), /* @__PURE__ */ React12.createElement(BaseTextInput, { label: "NFT Contract Address", placeholder: "ixo1...", value: data.address, onChange: (e) => onChange({ ...data, address: e.currentTarget.value }), required: true }));
|
|
654
552
|
};
|
|
655
553
|
|
|
656
554
|
// src/mantine/blocks/proposal/actions-components/forms/InstantiateActionForm.tsx
|
|
657
|
-
import
|
|
658
|
-
import { Stack as
|
|
555
|
+
import React13, { useState as useState4 } from "react";
|
|
556
|
+
import { Stack as Stack13, Button as Button3, Group as Group5, Text as Text5, Card as Card3 } from "@mantine/core";
|
|
659
557
|
var InstantiateActionForm = ({ data, onChange }) => {
|
|
660
558
|
const [newFund, setNewFund] = useState4({ denom: "uixo", amount: "" });
|
|
661
559
|
const handleAddFund = () => {
|
|
@@ -681,7 +579,7 @@ var InstantiateActionForm = ({ data, onChange }) => {
|
|
|
681
579
|
return data.message;
|
|
682
580
|
}
|
|
683
581
|
};
|
|
684
|
-
return /* @__PURE__ */
|
|
582
|
+
return /* @__PURE__ */ React13.createElement(Stack13, { gap: "md" }, /* @__PURE__ */ React13.createElement(BaseTextInput, { label: "Admin Address", placeholder: "ixo1...", value: data.admin, onChange: (e) => onChange({ ...data, admin: e.currentTarget.value }), required: true }), /* @__PURE__ */ React13.createElement(BaseNumberInput, { label: "Code ID", placeholder: "123", value: data.codeId, onChange: (value) => onChange({ ...data, codeId: Number(value) || 0 }), min: 1, required: true }), /* @__PURE__ */ React13.createElement(BaseTextInput, { label: "Label", placeholder: "My Contract", value: data.label, onChange: (e) => onChange({ ...data, label: e.currentTarget.value }), required: true }), /* @__PURE__ */ React13.createElement(
|
|
685
583
|
BaseTextArea,
|
|
686
584
|
{
|
|
687
585
|
label: "Instantiate Message (JSON)",
|
|
@@ -691,7 +589,7 @@ var InstantiateActionForm = ({ data, onChange }) => {
|
|
|
691
589
|
minRows: 4,
|
|
692
590
|
required: true
|
|
693
591
|
}
|
|
694
|
-
), /* @__PURE__ */
|
|
592
|
+
), /* @__PURE__ */ React13.createElement(Stack13, { gap: "xs" }, /* @__PURE__ */ React13.createElement(Text5, { size: "sm", fw: 500, style: { color: "var(--mantine-color-dimmed)" } }, "Funds (Optional)"), (data.funds || []).map((fund, index) => /* @__PURE__ */ React13.createElement(Card3, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" } }, /* @__PURE__ */ React13.createElement(Group5, { justify: "space-between" }, /* @__PURE__ */ React13.createElement(Text5, { size: "sm", style: { color: "var(--mantine-color-text)" } }, fund.amount, " ", fund.denom), /* @__PURE__ */ React13.createElement(Button3, { size: "xs", variant: "subtle", onClick: () => handleRemoveFund(index), style: { color: "var(--mantine-color-red-5)" } }, "Remove")))), /* @__PURE__ */ React13.createElement(Group5, { grow: true }, /* @__PURE__ */ React13.createElement(BaseTextInput, { placeholder: "Amount", value: newFund.amount, onChange: (e) => setNewFund({ ...newFund, amount: e.currentTarget.value }) }), /* @__PURE__ */ React13.createElement(BaseTextInput, { placeholder: "Denom (e.g., uixo)", value: newFund.denom, onChange: (e) => setNewFund({ ...newFund, denom: e.currentTarget.value }) }), /* @__PURE__ */ React13.createElement(
|
|
695
593
|
Button3,
|
|
696
594
|
{
|
|
697
595
|
size: "sm",
|
|
@@ -706,8 +604,8 @@ var InstantiateActionForm = ({ data, onChange }) => {
|
|
|
706
604
|
};
|
|
707
605
|
|
|
708
606
|
// src/mantine/blocks/proposal/actions-components/forms/MigrateActionForm.tsx
|
|
709
|
-
import
|
|
710
|
-
import { Stack as
|
|
607
|
+
import React14 from "react";
|
|
608
|
+
import { Stack as Stack14 } from "@mantine/core";
|
|
711
609
|
var MigrateActionForm = ({ data, onChange }) => {
|
|
712
610
|
const formatMessage = () => {
|
|
713
611
|
try {
|
|
@@ -717,7 +615,7 @@ var MigrateActionForm = ({ data, onChange }) => {
|
|
|
717
615
|
return data.msg;
|
|
718
616
|
}
|
|
719
617
|
};
|
|
720
|
-
return /* @__PURE__ */
|
|
618
|
+
return /* @__PURE__ */ React14.createElement(Stack14, { gap: "md" }, /* @__PURE__ */ React14.createElement(BaseTextInput, { label: "Contract Address", placeholder: "ixo1...", value: data.contract, onChange: (e) => onChange({ ...data, contract: e.currentTarget.value }), required: true }), /* @__PURE__ */ React14.createElement(BaseNumberInput, { label: "New Code ID", placeholder: "456", value: data.codeId, onChange: (value) => onChange({ ...data, codeId: Number(value) || 0 }), min: 1, required: true }), /* @__PURE__ */ React14.createElement(
|
|
721
619
|
BaseTextArea,
|
|
722
620
|
{
|
|
723
621
|
label: "Migration Message (JSON)",
|
|
@@ -731,17 +629,17 @@ var MigrateActionForm = ({ data, onChange }) => {
|
|
|
731
629
|
};
|
|
732
630
|
|
|
733
631
|
// src/mantine/blocks/proposal/actions-components/forms/UpdateAdminActionForm.tsx
|
|
734
|
-
import
|
|
735
|
-
import { Stack as
|
|
632
|
+
import React15 from "react";
|
|
633
|
+
import { Stack as Stack15 } from "@mantine/core";
|
|
736
634
|
var UpdateAdminActionForm = ({ data, onChange }) => {
|
|
737
|
-
return /* @__PURE__ */
|
|
635
|
+
return /* @__PURE__ */ React15.createElement(Stack15, { gap: "md" }, /* @__PURE__ */ React15.createElement(BaseTextInput, { label: "Contract Address", placeholder: "ixo1...", value: data.contract, onChange: (e) => onChange({ ...data, contract: e.currentTarget.value }), required: true }), /* @__PURE__ */ React15.createElement(BaseTextInput, { label: "New Admin Address", placeholder: "ixo1...", value: data.newAdmin, onChange: (e) => onChange({ ...data, newAdmin: e.currentTarget.value }), required: true }));
|
|
738
636
|
};
|
|
739
637
|
|
|
740
638
|
// src/mantine/blocks/proposal/actions-components/forms/ManageCw20ActionForm.tsx
|
|
741
|
-
import
|
|
742
|
-
import { Stack as
|
|
639
|
+
import React16 from "react";
|
|
640
|
+
import { Stack as Stack16, Radio as Radio2, Group as Group6 } from "@mantine/core";
|
|
743
641
|
var ManageCw20ActionForm = ({ data, onChange }) => {
|
|
744
|
-
return /* @__PURE__ */
|
|
642
|
+
return /* @__PURE__ */ React16.createElement(Stack16, { gap: "md" }, /* @__PURE__ */ React16.createElement(Radio2.Group, { label: "Action", value: data.adding ? "add" : "remove", onChange: (value) => onChange({ ...data, adding: value === "add" }) }, /* @__PURE__ */ React16.createElement(Group6, { mt: "xs" }, /* @__PURE__ */ React16.createElement(
|
|
745
643
|
Radio2,
|
|
746
644
|
{
|
|
747
645
|
value: "add",
|
|
@@ -751,7 +649,7 @@ var ManageCw20ActionForm = ({ data, onChange }) => {
|
|
|
751
649
|
radio: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
752
650
|
}
|
|
753
651
|
}
|
|
754
|
-
), /* @__PURE__ */
|
|
652
|
+
), /* @__PURE__ */ React16.createElement(
|
|
755
653
|
Radio2,
|
|
756
654
|
{
|
|
757
655
|
value: "remove",
|
|
@@ -761,12 +659,12 @@ var ManageCw20ActionForm = ({ data, onChange }) => {
|
|
|
761
659
|
radio: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
762
660
|
}
|
|
763
661
|
}
|
|
764
|
-
))), /* @__PURE__ */
|
|
662
|
+
))), /* @__PURE__ */ React16.createElement(BaseTextInput, { label: "Token Contract Address", placeholder: "ixo1...", value: data.address, onChange: (e) => onChange({ ...data, address: e.currentTarget.value }), required: true }));
|
|
765
663
|
};
|
|
766
664
|
|
|
767
665
|
// src/mantine/blocks/proposal/actions-components/forms/ManageSubDaosActionForm.tsx
|
|
768
|
-
import
|
|
769
|
-
import { Stack as
|
|
666
|
+
import React17, { useState as useState5 } from "react";
|
|
667
|
+
import { Stack as Stack17, Button as Button4, Group as Group7, Text as Text6, Card as Card4 } from "@mantine/core";
|
|
770
668
|
var ManageSubDaosActionForm = ({ data, onChange }) => {
|
|
771
669
|
const [newSubDao, setNewSubDao] = useState5({ addr: "", charter: "" });
|
|
772
670
|
const [newRemoveAddress, setNewRemoveAddress] = useState5("");
|
|
@@ -800,7 +698,7 @@ var ManageSubDaosActionForm = ({ data, onChange }) => {
|
|
|
800
698
|
toRemove: (data.toRemove || []).filter((_, i) => i !== index)
|
|
801
699
|
});
|
|
802
700
|
};
|
|
803
|
-
return /* @__PURE__ */
|
|
701
|
+
return /* @__PURE__ */ React17.createElement(Stack17, { gap: "md" }, /* @__PURE__ */ React17.createElement(Stack17, { gap: "xs" }, /* @__PURE__ */ React17.createElement(Text6, { size: "sm", fw: 500, style: { color: "var(--mantine-color-dimmed)" } }, "SubDAOs to Add"), (data.toAdd || []).map((subDao, index) => /* @__PURE__ */ React17.createElement(Card4, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" } }, /* @__PURE__ */ React17.createElement(Stack17, { gap: "xs" }, /* @__PURE__ */ React17.createElement(Group7, { justify: "space-between" }, /* @__PURE__ */ React17.createElement(Text6, { size: "sm", style: { color: "var(--mantine-color-text)" } }, subDao.addr), /* @__PURE__ */ React17.createElement(Button4, { size: "xs", variant: "subtle", onClick: () => handleRemoveFromAddList(index), style: { color: "var(--mantine-color-red-5)" } }, "Remove")), subDao.charter && /* @__PURE__ */ React17.createElement(Text6, { size: "xs", style: { color: "var(--mantine-color-dimmed)" } }, "Charter: ", subDao.charter)))), /* @__PURE__ */ React17.createElement(Stack17, { gap: "xs" }, /* @__PURE__ */ React17.createElement(BaseTextInput, { placeholder: "SubDAO Address", value: newSubDao.addr, onChange: (e) => setNewSubDao({ ...newSubDao, addr: e.currentTarget.value }) }), /* @__PURE__ */ React17.createElement(
|
|
804
702
|
BaseTextArea,
|
|
805
703
|
{
|
|
806
704
|
placeholder: "Charter (optional)",
|
|
@@ -808,7 +706,7 @@ var ManageSubDaosActionForm = ({ data, onChange }) => {
|
|
|
808
706
|
onChange: (e) => setNewSubDao({ ...newSubDao, charter: e.currentTarget.value }),
|
|
809
707
|
minRows: 2
|
|
810
708
|
}
|
|
811
|
-
), /* @__PURE__ */
|
|
709
|
+
), /* @__PURE__ */ React17.createElement(
|
|
812
710
|
Button4,
|
|
813
711
|
{
|
|
814
712
|
size: "sm",
|
|
@@ -819,7 +717,7 @@ var ManageSubDaosActionForm = ({ data, onChange }) => {
|
|
|
819
717
|
}
|
|
820
718
|
},
|
|
821
719
|
"Add SubDAO"
|
|
822
|
-
))), /* @__PURE__ */
|
|
720
|
+
))), /* @__PURE__ */ React17.createElement(Stack17, { gap: "xs" }, /* @__PURE__ */ React17.createElement(Text6, { size: "sm", fw: 500, style: { color: "var(--mantine-color-dimmed)" } }, "SubDAOs to Remove"), (data.toRemove || []).map((subDao, index) => /* @__PURE__ */ React17.createElement(Card4, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" } }, /* @__PURE__ */ React17.createElement(Group7, { justify: "space-between" }, /* @__PURE__ */ React17.createElement(Text6, { size: "sm", style: { color: "var(--mantine-color-text)" } }, subDao.address), /* @__PURE__ */ React17.createElement(Button4, { size: "xs", variant: "subtle", onClick: () => handleRemoveFromRemoveList(index), style: { color: "var(--mantine-color-red-5)" } }, "Remove")))), /* @__PURE__ */ React17.createElement(Group7, { grow: true }, /* @__PURE__ */ React17.createElement(BaseTextInput, { placeholder: "SubDAO Address to Remove", value: newRemoveAddress, onChange: (e) => setNewRemoveAddress(e.currentTarget.value) }), /* @__PURE__ */ React17.createElement(
|
|
823
721
|
Button4,
|
|
824
722
|
{
|
|
825
723
|
size: "sm",
|
|
@@ -834,10 +732,10 @@ var ManageSubDaosActionForm = ({ data, onChange }) => {
|
|
|
834
732
|
};
|
|
835
733
|
|
|
836
734
|
// src/mantine/blocks/proposal/actions-components/forms/UpdateInfoActionForm.tsx
|
|
837
|
-
import
|
|
838
|
-
import { Stack as
|
|
735
|
+
import React18 from "react";
|
|
736
|
+
import { Stack as Stack18, Checkbox as Checkbox2 } from "@mantine/core";
|
|
839
737
|
var UpdateInfoActionForm = ({ data, onChange }) => {
|
|
840
|
-
return /* @__PURE__ */
|
|
738
|
+
return /* @__PURE__ */ React18.createElement(Stack18, { gap: "md" }, /* @__PURE__ */ React18.createElement(BaseTextInput, { label: "DAO Name", placeholder: "My DAO", value: data.name, onChange: (e) => onChange({ ...data, name: e.currentTarget.value }), required: true }), /* @__PURE__ */ React18.createElement(
|
|
841
739
|
BaseTextArea,
|
|
842
740
|
{
|
|
843
741
|
label: "Description",
|
|
@@ -846,7 +744,7 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
|
|
|
846
744
|
onChange: (e) => onChange({ ...data, description: e.currentTarget.value }),
|
|
847
745
|
minRows: 3
|
|
848
746
|
}
|
|
849
|
-
), /* @__PURE__ */
|
|
747
|
+
), /* @__PURE__ */ React18.createElement(
|
|
850
748
|
BaseTextInput,
|
|
851
749
|
{
|
|
852
750
|
label: "Image URL (Optional)",
|
|
@@ -854,7 +752,7 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
|
|
|
854
752
|
value: data.image_url || "",
|
|
855
753
|
onChange: (e) => onChange({ ...data, image_url: e.currentTarget.value || null })
|
|
856
754
|
}
|
|
857
|
-
), /* @__PURE__ */
|
|
755
|
+
), /* @__PURE__ */ React18.createElement(
|
|
858
756
|
BaseTextInput,
|
|
859
757
|
{
|
|
860
758
|
label: "DAO URI (Optional)",
|
|
@@ -862,7 +760,7 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
|
|
|
862
760
|
value: data.dao_uri || "",
|
|
863
761
|
onChange: (e) => onChange({ ...data, dao_uri: e.currentTarget.value || null })
|
|
864
762
|
}
|
|
865
|
-
), /* @__PURE__ */
|
|
763
|
+
), /* @__PURE__ */ React18.createElement(
|
|
866
764
|
Checkbox2,
|
|
867
765
|
{
|
|
868
766
|
label: "Automatically add CW20 tokens",
|
|
@@ -873,7 +771,7 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
|
|
|
873
771
|
input: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
874
772
|
}
|
|
875
773
|
}
|
|
876
|
-
), /* @__PURE__ */
|
|
774
|
+
), /* @__PURE__ */ React18.createElement(
|
|
877
775
|
Checkbox2,
|
|
878
776
|
{
|
|
879
777
|
label: "Automatically add CW721 NFTs",
|
|
@@ -888,10 +786,10 @@ var UpdateInfoActionForm = ({ data, onChange }) => {
|
|
|
888
786
|
};
|
|
889
787
|
|
|
890
788
|
// src/mantine/blocks/proposal/actions-components/forms/ManageStorageItemsActionForm.tsx
|
|
891
|
-
import
|
|
892
|
-
import { Stack as
|
|
789
|
+
import React19 from "react";
|
|
790
|
+
import { Stack as Stack19, Radio as Radio3, Group as Group8 } from "@mantine/core";
|
|
893
791
|
var ManageStorageItemsActionForm = ({ data, onChange }) => {
|
|
894
|
-
return /* @__PURE__ */
|
|
792
|
+
return /* @__PURE__ */ React19.createElement(Stack19, { gap: "md" }, /* @__PURE__ */ React19.createElement(Radio3.Group, { label: "Action", value: data.setting ? "set" : "remove", onChange: (value) => onChange({ ...data, setting: value === "set" }) }, /* @__PURE__ */ React19.createElement(Group8, { mt: "xs" }, /* @__PURE__ */ React19.createElement(
|
|
895
793
|
Radio3,
|
|
896
794
|
{
|
|
897
795
|
value: "set",
|
|
@@ -901,7 +799,7 @@ var ManageStorageItemsActionForm = ({ data, onChange }) => {
|
|
|
901
799
|
radio: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
902
800
|
}
|
|
903
801
|
}
|
|
904
|
-
), /* @__PURE__ */
|
|
802
|
+
), /* @__PURE__ */ React19.createElement(
|
|
905
803
|
Radio3,
|
|
906
804
|
{
|
|
907
805
|
value: "remove",
|
|
@@ -911,7 +809,7 @@ var ManageStorageItemsActionForm = ({ data, onChange }) => {
|
|
|
911
809
|
radio: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
912
810
|
}
|
|
913
811
|
}
|
|
914
|
-
))), /* @__PURE__ */
|
|
812
|
+
))), /* @__PURE__ */ React19.createElement(BaseTextInput, { label: "Storage Key", placeholder: "config_key", value: data.key, onChange: (e) => onChange({ ...data, key: e.currentTarget.value }), required: true }), data.setting && /* @__PURE__ */ React19.createElement(
|
|
915
813
|
BaseTextArea,
|
|
916
814
|
{
|
|
917
815
|
label: "Storage Value",
|
|
@@ -925,8 +823,8 @@ var ManageStorageItemsActionForm = ({ data, onChange }) => {
|
|
|
925
823
|
};
|
|
926
824
|
|
|
927
825
|
// src/mantine/blocks/proposal/actions-components/forms/DaoAdminExecActionForm.tsx
|
|
928
|
-
import
|
|
929
|
-
import { Stack as
|
|
826
|
+
import React20, { useState as useState6 } from "react";
|
|
827
|
+
import { Stack as Stack20, Button as Button5, Group as Group9, Text as Text7, Card as Card5 } from "@mantine/core";
|
|
930
828
|
var DaoAdminExecActionForm = ({ data, onChange }) => {
|
|
931
829
|
const [newMsg, setNewMsg] = useState6("");
|
|
932
830
|
const handleAddMessage = () => {
|
|
@@ -948,7 +846,7 @@ var DaoAdminExecActionForm = ({ data, onChange }) => {
|
|
|
948
846
|
msgs: (data.msgs || []).filter((_, i) => i !== index)
|
|
949
847
|
});
|
|
950
848
|
};
|
|
951
|
-
return /* @__PURE__ */
|
|
849
|
+
return /* @__PURE__ */ React20.createElement(Stack20, { gap: "md" }, /* @__PURE__ */ React20.createElement(BaseTextInput, { label: "Core Address", placeholder: "ixo1...", value: data.coreAddress, onChange: (e) => onChange({ ...data, coreAddress: e.currentTarget.value }), required: true }), /* @__PURE__ */ React20.createElement(Stack20, { gap: "xs" }, /* @__PURE__ */ React20.createElement(Text7, { size: "sm", fw: 500, style: { color: "var(--mantine-color-dimmed)" } }, "Messages to Execute"), (data.msgs || []).map((msg, index) => /* @__PURE__ */ React20.createElement(Card5, { key: index, withBorder: true, padding: "xs", style: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" } }, /* @__PURE__ */ React20.createElement(Group9, { justify: "space-between" }, /* @__PURE__ */ React20.createElement(Text7, { size: "sm", style: { color: "var(--mantine-color-text)" } }, "Message ", index + 1), /* @__PURE__ */ React20.createElement(Button5, { size: "xs", variant: "subtle", onClick: () => handleRemoveMessage(index), style: { color: "var(--mantine-color-red-5)" } }, "Remove")), /* @__PURE__ */ React20.createElement(Text7, { size: "xs", style: { color: "var(--mantine-color-dimmed)", fontFamily: "monospace" } }, JSON.stringify(msg, null, 2).substring(0, 100), "..."))), /* @__PURE__ */ React20.createElement(
|
|
952
850
|
BaseTextArea,
|
|
953
851
|
{
|
|
954
852
|
placeholder: 'Add cosmos message as JSON:\\n{"bank": {"send": {"to_address": "ixo1...", "amount": [{"denom": "uixo", "amount": "1000"}]}}}',
|
|
@@ -956,7 +854,7 @@ var DaoAdminExecActionForm = ({ data, onChange }) => {
|
|
|
956
854
|
onChange: (e) => setNewMsg(e.currentTarget.value),
|
|
957
855
|
minRows: 4
|
|
958
856
|
}
|
|
959
|
-
), /* @__PURE__ */
|
|
857
|
+
), /* @__PURE__ */ React20.createElement(
|
|
960
858
|
Button5,
|
|
961
859
|
{
|
|
962
860
|
size: "sm",
|
|
@@ -971,10 +869,10 @@ var DaoAdminExecActionForm = ({ data, onChange }) => {
|
|
|
971
869
|
};
|
|
972
870
|
|
|
973
871
|
// src/mantine/blocks/proposal/actions-components/forms/AcceptToMarketplaceActionForm.tsx
|
|
974
|
-
import
|
|
975
|
-
import { Stack as
|
|
872
|
+
import React21 from "react";
|
|
873
|
+
import { Stack as Stack21 } from "@mantine/core";
|
|
976
874
|
var AcceptToMarketplaceActionForm = ({ data, onChange }) => {
|
|
977
|
-
return /* @__PURE__ */
|
|
875
|
+
return /* @__PURE__ */ React21.createElement(Stack21, { gap: "md" }, /* @__PURE__ */ React21.createElement(BaseTextInput, { label: "DID", placeholder: "did:ixo:...", value: data.did, onChange: (e) => onChange({ ...data, did: e.currentTarget.value }), required: true }), /* @__PURE__ */ React21.createElement(
|
|
978
876
|
BaseTextInput,
|
|
979
877
|
{
|
|
980
878
|
label: "Relayer Node DID",
|
|
@@ -983,7 +881,7 @@ var AcceptToMarketplaceActionForm = ({ data, onChange }) => {
|
|
|
983
881
|
onChange: (e) => onChange({ ...data, relayerNodeDid: e.currentTarget.value }),
|
|
984
882
|
required: true
|
|
985
883
|
}
|
|
986
|
-
), /* @__PURE__ */
|
|
884
|
+
), /* @__PURE__ */ React21.createElement(
|
|
987
885
|
BaseTextInput,
|
|
988
886
|
{
|
|
989
887
|
label: "Relayer Node Address",
|
|
@@ -996,8 +894,8 @@ var AcceptToMarketplaceActionForm = ({ data, onChange }) => {
|
|
|
996
894
|
};
|
|
997
895
|
|
|
998
896
|
// src/mantine/blocks/proposal/actions-components/forms/CreateEntityActionForm.tsx
|
|
999
|
-
import
|
|
1000
|
-
import { Stack as
|
|
897
|
+
import React22 from "react";
|
|
898
|
+
import { Stack as Stack22, Alert as Alert2, Text as Text8 } from "@mantine/core";
|
|
1001
899
|
var CreateEntityActionForm = ({ data, onChange }) => {
|
|
1002
900
|
const handleJsonChange = (value) => {
|
|
1003
901
|
try {
|
|
@@ -1006,7 +904,7 @@ var CreateEntityActionForm = ({ data, onChange }) => {
|
|
|
1006
904
|
} catch {
|
|
1007
905
|
}
|
|
1008
906
|
};
|
|
1009
|
-
return /* @__PURE__ */
|
|
907
|
+
return /* @__PURE__ */ React22.createElement(Stack22, { gap: "md" }, /* @__PURE__ */ React22.createElement(Alert2, { color: "blue", style: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-accent-5)" } }, /* @__PURE__ */ React22.createElement(Text8, { size: "sm", style: { color: "var(--mantine-color-accent-5)" } }, "This is a complex entity creation action. Please provide the complete entity data as JSON.")), /* @__PURE__ */ React22.createElement(
|
|
1010
908
|
BaseTextArea,
|
|
1011
909
|
{
|
|
1012
910
|
label: "Entity Data (JSON)",
|
|
@@ -1020,10 +918,10 @@ var CreateEntityActionForm = ({ data, onChange }) => {
|
|
|
1020
918
|
};
|
|
1021
919
|
|
|
1022
920
|
// src/mantine/blocks/proposal/actions-components/forms/UpdateVotingConfigActionForm.tsx
|
|
1023
|
-
import
|
|
1024
|
-
import { Stack as
|
|
921
|
+
import React23 from "react";
|
|
922
|
+
import { Stack as Stack23, Checkbox as Checkbox3, Group as Group10 } from "@mantine/core";
|
|
1025
923
|
var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
1026
|
-
return /* @__PURE__ */
|
|
924
|
+
return /* @__PURE__ */ React23.createElement(Stack23, { gap: "md" }, /* @__PURE__ */ React23.createElement(
|
|
1027
925
|
Checkbox3,
|
|
1028
926
|
{
|
|
1029
927
|
label: "Only members can execute passed proposals",
|
|
@@ -1035,7 +933,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
|
1035
933
|
input: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
1036
934
|
}
|
|
1037
935
|
}
|
|
1038
|
-
), /* @__PURE__ */
|
|
936
|
+
), /* @__PURE__ */ React23.createElement(
|
|
1039
937
|
BaseSelect,
|
|
1040
938
|
{
|
|
1041
939
|
label: "Passing threshold",
|
|
@@ -1047,7 +945,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
|
1047
945
|
{ value: "%", label: "A custom percentage" }
|
|
1048
946
|
]
|
|
1049
947
|
}
|
|
1050
|
-
), data.thresholdType === "%" && /* @__PURE__ */
|
|
948
|
+
), data.thresholdType === "%" && /* @__PURE__ */ React23.createElement(
|
|
1051
949
|
BaseNumberInput,
|
|
1052
950
|
{
|
|
1053
951
|
label: "Passing threshold percentage",
|
|
@@ -1058,7 +956,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
|
1058
956
|
max: 100,
|
|
1059
957
|
suffix: "%"
|
|
1060
958
|
}
|
|
1061
|
-
), /* @__PURE__ */
|
|
959
|
+
), /* @__PURE__ */ React23.createElement(
|
|
1062
960
|
Checkbox3,
|
|
1063
961
|
{
|
|
1064
962
|
label: "Require a quorum",
|
|
@@ -1070,7 +968,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
|
1070
968
|
input: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
1071
969
|
}
|
|
1072
970
|
}
|
|
1073
|
-
), data.quorumEnabled && /* @__PURE__ */
|
|
971
|
+
), data.quorumEnabled && /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement(
|
|
1074
972
|
BaseSelect,
|
|
1075
973
|
{
|
|
1076
974
|
label: "Quorum",
|
|
@@ -1081,7 +979,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
|
1081
979
|
{ value: "%", label: "A custom percentage" }
|
|
1082
980
|
]
|
|
1083
981
|
}
|
|
1084
|
-
), data.quorumType === "%" && /* @__PURE__ */
|
|
982
|
+
), data.quorumType === "%" && /* @__PURE__ */ React23.createElement(
|
|
1085
983
|
BaseNumberInput,
|
|
1086
984
|
{
|
|
1087
985
|
label: "Quorum percentage",
|
|
@@ -1092,7 +990,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
|
1092
990
|
max: 100,
|
|
1093
991
|
suffix: "%"
|
|
1094
992
|
}
|
|
1095
|
-
)), /* @__PURE__ */
|
|
993
|
+
)), /* @__PURE__ */ React23.createElement(Group10, { grow: true }, /* @__PURE__ */ React23.createElement(
|
|
1096
994
|
BaseNumberInput,
|
|
1097
995
|
{
|
|
1098
996
|
label: "Voting duration",
|
|
@@ -1102,7 +1000,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
|
1102
1000
|
onChange: (value) => onChange({ ...data, proposalDuration: Number(value) || 1 }),
|
|
1103
1001
|
min: 1
|
|
1104
1002
|
}
|
|
1105
|
-
), /* @__PURE__ */
|
|
1003
|
+
), /* @__PURE__ */ React23.createElement(
|
|
1106
1004
|
BaseSelect,
|
|
1107
1005
|
{
|
|
1108
1006
|
label: "Unit",
|
|
@@ -1115,7 +1013,7 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
|
1115
1013
|
{ value: "weeks", label: "Weeks" }
|
|
1116
1014
|
]
|
|
1117
1015
|
}
|
|
1118
|
-
)), /* @__PURE__ */
|
|
1016
|
+
)), /* @__PURE__ */ React23.createElement(
|
|
1119
1017
|
Checkbox3,
|
|
1120
1018
|
{
|
|
1121
1019
|
label: "Allow vote switching",
|
|
@@ -1131,13 +1029,13 @@ var UpdateVotingConfigActionForm = ({ data, onChange }) => {
|
|
|
1131
1029
|
};
|
|
1132
1030
|
|
|
1133
1031
|
// src/mantine/blocks/proposal/actions-components/forms/UpdatePreProposeConfigActionForm.tsx
|
|
1134
|
-
import
|
|
1135
|
-
import { Stack as
|
|
1032
|
+
import React24 from "react";
|
|
1033
|
+
import { Stack as Stack24, Checkbox as Checkbox4 } from "@mantine/core";
|
|
1136
1034
|
var IXO_EXPONENT2 = 6;
|
|
1137
1035
|
var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
|
|
1138
1036
|
const isIxoDeposit = data.depositInfo.type === "native" && data.depositInfo.denomOrAddress === "uixo";
|
|
1139
1037
|
const displayAmount = isIxoDeposit && data.depositInfo.amount !== "" ? String(Number(data.depositInfo.amount) / 10 ** IXO_EXPONENT2) : data.depositInfo.amount;
|
|
1140
|
-
return /* @__PURE__ */
|
|
1038
|
+
return /* @__PURE__ */ React24.createElement(Stack24, { gap: "md" }, /* @__PURE__ */ React24.createElement(
|
|
1141
1039
|
Checkbox4,
|
|
1142
1040
|
{
|
|
1143
1041
|
label: "Anyone can submit proposals",
|
|
@@ -1149,7 +1047,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
|
|
|
1149
1047
|
input: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
1150
1048
|
}
|
|
1151
1049
|
}
|
|
1152
|
-
), /* @__PURE__ */
|
|
1050
|
+
), /* @__PURE__ */ React24.createElement(
|
|
1153
1051
|
Checkbox4,
|
|
1154
1052
|
{
|
|
1155
1053
|
label: "Require a deposit to submit a proposal",
|
|
@@ -1161,7 +1059,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
|
|
|
1161
1059
|
input: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
1162
1060
|
}
|
|
1163
1061
|
}
|
|
1164
|
-
), data.depositRequired && /* @__PURE__ */
|
|
1062
|
+
), data.depositRequired && /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement(
|
|
1165
1063
|
BaseSelect,
|
|
1166
1064
|
{
|
|
1167
1065
|
label: "Deposit token",
|
|
@@ -1182,7 +1080,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
|
|
|
1182
1080
|
{ value: "voting_module_token", label: "The group's own token" }
|
|
1183
1081
|
]
|
|
1184
1082
|
}
|
|
1185
|
-
), data.depositInfo.type === "cw20" && /* @__PURE__ */
|
|
1083
|
+
), data.depositInfo.type === "cw20" && /* @__PURE__ */ React24.createElement(
|
|
1186
1084
|
BaseTextInput,
|
|
1187
1085
|
{
|
|
1188
1086
|
label: "Token contract address",
|
|
@@ -1194,7 +1092,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
|
|
|
1194
1092
|
}),
|
|
1195
1093
|
required: true
|
|
1196
1094
|
}
|
|
1197
|
-
), /* @__PURE__ */
|
|
1095
|
+
), /* @__PURE__ */ React24.createElement(
|
|
1198
1096
|
BaseTextInput,
|
|
1199
1097
|
{
|
|
1200
1098
|
label: isIxoDeposit ? "Deposit amount (IXO)" : "Deposit amount",
|
|
@@ -1212,7 +1110,7 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
|
|
|
1212
1110
|
},
|
|
1213
1111
|
required: true
|
|
1214
1112
|
}
|
|
1215
|
-
), /* @__PURE__ */
|
|
1113
|
+
), /* @__PURE__ */ React24.createElement(
|
|
1216
1114
|
BaseSelect,
|
|
1217
1115
|
{
|
|
1218
1116
|
label: "Refund policy",
|
|
@@ -1232,8 +1130,8 @@ var UpdatePreProposeConfigActionForm = ({ data, onChange }) => {
|
|
|
1232
1130
|
};
|
|
1233
1131
|
|
|
1234
1132
|
// src/mantine/blocks/proposal/actions-components/forms/GovernanceVoteActionForm.tsx
|
|
1235
|
-
import
|
|
1236
|
-
import { Stack as
|
|
1133
|
+
import React25 from "react";
|
|
1134
|
+
import { Stack as Stack25 } from "@mantine/core";
|
|
1237
1135
|
var GovernanceVoteActionForm = ({ data, onChange }) => {
|
|
1238
1136
|
const voteOptions = [
|
|
1239
1137
|
{ value: "1", label: "Yes" },
|
|
@@ -1241,14 +1139,14 @@ var GovernanceVoteActionForm = ({ data, onChange }) => {
|
|
|
1241
1139
|
{ value: "3", label: "No" },
|
|
1242
1140
|
{ value: "4", label: "No with Veto" }
|
|
1243
1141
|
];
|
|
1244
|
-
return /* @__PURE__ */
|
|
1142
|
+
return /* @__PURE__ */ React25.createElement(Stack25, { gap: "md" }, /* @__PURE__ */ React25.createElement(BaseTextInput, { label: "Proposal ID", placeholder: "123", value: data.proposalId, onChange: (e) => onChange({ ...data, proposalId: e.currentTarget.value }), required: true }), /* @__PURE__ */ React25.createElement(BaseSelect, { label: "Vote Option", value: data.vote?.toString() || "1", onChange: (value) => onChange({ ...data, vote: parseInt(value || "1") }), data: voteOptions, required: true }));
|
|
1245
1143
|
};
|
|
1246
1144
|
|
|
1247
1145
|
// src/mantine/blocks/proposal/actions-components/forms/WithdrawTokenSwapActionForm.tsx
|
|
1248
|
-
import
|
|
1249
|
-
import { Stack as
|
|
1146
|
+
import React26 from "react";
|
|
1147
|
+
import { Stack as Stack26, Checkbox as Checkbox5 } from "@mantine/core";
|
|
1250
1148
|
var WithdrawTokenSwapActionForm = ({ data, onChange }) => {
|
|
1251
|
-
return /* @__PURE__ */
|
|
1149
|
+
return /* @__PURE__ */ React26.createElement(Stack26, { gap: "md" }, /* @__PURE__ */ React26.createElement(
|
|
1252
1150
|
Checkbox5,
|
|
1253
1151
|
{
|
|
1254
1152
|
label: "Contract chosen",
|
|
@@ -1259,7 +1157,7 @@ var WithdrawTokenSwapActionForm = ({ data, onChange }) => {
|
|
|
1259
1157
|
input: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
1260
1158
|
}
|
|
1261
1159
|
}
|
|
1262
|
-
), data.contractChosen && /* @__PURE__ */
|
|
1160
|
+
), data.contractChosen && /* @__PURE__ */ React26.createElement(
|
|
1263
1161
|
BaseTextInput,
|
|
1264
1162
|
{
|
|
1265
1163
|
label: "Token Swap Contract Address",
|
|
@@ -1272,10 +1170,10 @@ var WithdrawTokenSwapActionForm = ({ data, onChange }) => {
|
|
|
1272
1170
|
};
|
|
1273
1171
|
|
|
1274
1172
|
// src/mantine/blocks/proposal/actions-components/forms/PerformTokenSwapActionForm.tsx
|
|
1275
|
-
import
|
|
1276
|
-
import { Stack as
|
|
1173
|
+
import React27 from "react";
|
|
1174
|
+
import { Stack as Stack27, Checkbox as Checkbox6 } from "@mantine/core";
|
|
1277
1175
|
var PerformTokenSwapActionForm = ({ data, onChange }) => {
|
|
1278
|
-
return /* @__PURE__ */
|
|
1176
|
+
return /* @__PURE__ */ React27.createElement(Stack27, { gap: "md" }, /* @__PURE__ */ React27.createElement(
|
|
1279
1177
|
Checkbox6,
|
|
1280
1178
|
{
|
|
1281
1179
|
label: "Contract chosen",
|
|
@@ -1286,7 +1184,7 @@ var PerformTokenSwapActionForm = ({ data, onChange }) => {
|
|
|
1286
1184
|
input: { backgroundColor: "var(--mantine-color-neutralColor-2)", borderColor: "var(--mantine-color-neutralColor-5)" }
|
|
1287
1185
|
}
|
|
1288
1186
|
}
|
|
1289
|
-
), data.contractChosen && /* @__PURE__ */
|
|
1187
|
+
), data.contractChosen && /* @__PURE__ */ React27.createElement(React27.Fragment, null, /* @__PURE__ */ React27.createElement(
|
|
1290
1188
|
BaseTextInput,
|
|
1291
1189
|
{
|
|
1292
1190
|
label: "Token Swap Contract Address",
|
|
@@ -1295,7 +1193,7 @@ var PerformTokenSwapActionForm = ({ data, onChange }) => {
|
|
|
1295
1193
|
onChange: (e) => onChange({ ...data, tokenSwapContractAddress: e.currentTarget.value }),
|
|
1296
1194
|
required: true
|
|
1297
1195
|
}
|
|
1298
|
-
), /* @__PURE__ */
|
|
1196
|
+
), /* @__PURE__ */ React27.createElement(
|
|
1299
1197
|
BaseTextArea,
|
|
1300
1198
|
{
|
|
1301
1199
|
label: "Self Party Information (JSON)",
|
|
@@ -1310,7 +1208,7 @@ var PerformTokenSwapActionForm = ({ data, onChange }) => {
|
|
|
1310
1208
|
},
|
|
1311
1209
|
minRows: 4
|
|
1312
1210
|
}
|
|
1313
|
-
), /* @__PURE__ */
|
|
1211
|
+
), /* @__PURE__ */ React27.createElement(
|
|
1314
1212
|
BaseTextArea,
|
|
1315
1213
|
{
|
|
1316
1214
|
label: "Counterparty Information (JSON)",
|
|
@@ -1329,10 +1227,10 @@ var PerformTokenSwapActionForm = ({ data, onChange }) => {
|
|
|
1329
1227
|
};
|
|
1330
1228
|
|
|
1331
1229
|
// src/mantine/blocks/proposal/actions-components/forms/StakeToGroupActionForm.tsx
|
|
1332
|
-
import
|
|
1333
|
-
import { Stack as
|
|
1230
|
+
import React28 from "react";
|
|
1231
|
+
import { Stack as Stack28 } from "@mantine/core";
|
|
1334
1232
|
var StakeToGroupActionForm = ({ data, onChange }) => {
|
|
1335
|
-
return /* @__PURE__ */
|
|
1233
|
+
return /* @__PURE__ */ React28.createElement(Stack28, { gap: "md" }, /* @__PURE__ */ React28.createElement(
|
|
1336
1234
|
BaseTextInput,
|
|
1337
1235
|
{
|
|
1338
1236
|
label: "Token Contract Address",
|
|
@@ -1341,7 +1239,7 @@ var StakeToGroupActionForm = ({ data, onChange }) => {
|
|
|
1341
1239
|
onChange: (e) => onChange({ ...data, tokenContract: e.currentTarget.value }),
|
|
1342
1240
|
required: true
|
|
1343
1241
|
}
|
|
1344
|
-
), /* @__PURE__ */
|
|
1242
|
+
), /* @__PURE__ */ React28.createElement(
|
|
1345
1243
|
BaseTextInput,
|
|
1346
1244
|
{
|
|
1347
1245
|
label: "Staking Contract Address",
|
|
@@ -1350,19 +1248,19 @@ var StakeToGroupActionForm = ({ data, onChange }) => {
|
|
|
1350
1248
|
onChange: (e) => onChange({ ...data, stakingContract: e.currentTarget.value }),
|
|
1351
1249
|
required: true
|
|
1352
1250
|
}
|
|
1353
|
-
), /* @__PURE__ */
|
|
1251
|
+
), /* @__PURE__ */ React28.createElement(BaseTextInput, { label: "Amount", placeholder: "1000", value: data.amount, onChange: (e) => onChange({ ...data, amount: e.currentTarget.value }), required: true }));
|
|
1354
1252
|
};
|
|
1355
1253
|
|
|
1356
1254
|
// src/mantine/blocks/proposal/actions-components/forms/SendGroupTokenActionForm.tsx
|
|
1357
|
-
import
|
|
1358
|
-
import { Stack as
|
|
1255
|
+
import React29 from "react";
|
|
1256
|
+
import { Stack as Stack29 } from "@mantine/core";
|
|
1359
1257
|
var SendGroupTokenActionForm = ({ data, onChange }) => {
|
|
1360
|
-
return /* @__PURE__ */
|
|
1258
|
+
return /* @__PURE__ */ React29.createElement(Stack29, { gap: "md" }, /* @__PURE__ */ React29.createElement(BaseTextInput, { label: "Contract Address", placeholder: "ixo1...", value: data.contract, onChange: (e) => onChange({ ...data, contract: e.currentTarget.value }), required: true }), /* @__PURE__ */ React29.createElement(BaseTextInput, { label: "Recipient Address", placeholder: "ixo1...", value: data.toAddress, onChange: (e) => onChange({ ...data, toAddress: e.currentTarget.value }), required: true }), /* @__PURE__ */ React29.createElement(BaseTextInput, { label: "Amount", placeholder: "1000", value: data.amount, onChange: (e) => onChange({ ...data, amount: e.currentTarget.value }), required: true }));
|
|
1361
1259
|
};
|
|
1362
1260
|
|
|
1363
1261
|
// src/mantine/blocks/proposal/actions-components/forms/ValidatorActionsActionForm.tsx
|
|
1364
|
-
import
|
|
1365
|
-
import { Stack as
|
|
1262
|
+
import React30 from "react";
|
|
1263
|
+
import { Stack as Stack30 } from "@mantine/core";
|
|
1366
1264
|
var ValidatorActionsActionForm = ({ data, onChange }) => {
|
|
1367
1265
|
const actionTypeOptions = [
|
|
1368
1266
|
{ value: "/cosmos.staking.v1beta1.MsgCreateValidator" /* CreateValidator */, label: "Create Validator" },
|
|
@@ -1370,7 +1268,7 @@ var ValidatorActionsActionForm = ({ data, onChange }) => {
|
|
|
1370
1268
|
{ value: "/cosmos.slashing.v1beta1.MsgUnjail" /* UnjailValidator */, label: "Unjail Validator" },
|
|
1371
1269
|
{ value: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission" /* WithdrawValidatorCommission */, label: "Withdraw Commission" }
|
|
1372
1270
|
];
|
|
1373
|
-
return /* @__PURE__ */
|
|
1271
|
+
return /* @__PURE__ */ React30.createElement(Stack30, { gap: "md" }, /* @__PURE__ */ React30.createElement(
|
|
1374
1272
|
BaseSelect,
|
|
1375
1273
|
{
|
|
1376
1274
|
label: "Validator Action Type",
|
|
@@ -1379,7 +1277,7 @@ var ValidatorActionsActionForm = ({ data, onChange }) => {
|
|
|
1379
1277
|
data: actionTypeOptions,
|
|
1380
1278
|
required: true
|
|
1381
1279
|
}
|
|
1382
|
-
), data.validatorActionType === "/cosmos.staking.v1beta1.MsgCreateValidator" /* CreateValidator */ && /* @__PURE__ */
|
|
1280
|
+
), data.validatorActionType === "/cosmos.staking.v1beta1.MsgCreateValidator" /* CreateValidator */ && /* @__PURE__ */ React30.createElement(
|
|
1383
1281
|
BaseTextArea,
|
|
1384
1282
|
{
|
|
1385
1283
|
label: "Create Validator Message (JSON)",
|
|
@@ -1389,7 +1287,7 @@ var ValidatorActionsActionForm = ({ data, onChange }) => {
|
|
|
1389
1287
|
minRows: 8,
|
|
1390
1288
|
required: true
|
|
1391
1289
|
}
|
|
1392
|
-
), data.validatorActionType === "/cosmos.staking.v1beta1.MsgEditValidator" /* EditValidator */ && /* @__PURE__ */
|
|
1290
|
+
), data.validatorActionType === "/cosmos.staking.v1beta1.MsgEditValidator" /* EditValidator */ && /* @__PURE__ */ React30.createElement(
|
|
1393
1291
|
BaseTextArea,
|
|
1394
1292
|
{
|
|
1395
1293
|
label: "Edit Validator Message (JSON)",
|
|
@@ -2021,6 +1919,107 @@ var getCategorizedActions = () => {
|
|
|
2021
1919
|
return categorized;
|
|
2022
1920
|
};
|
|
2023
1921
|
|
|
1922
|
+
// src/mantine/blocks/proposal/actions-components/ActionsCard.tsx
|
|
1923
|
+
var getActionSummary = (action) => {
|
|
1924
|
+
const config = getActionConfig(action.type);
|
|
1925
|
+
if (!config) return action.type;
|
|
1926
|
+
try {
|
|
1927
|
+
return config.getSummary(action.data) || config.label;
|
|
1928
|
+
} catch {
|
|
1929
|
+
return config.label;
|
|
1930
|
+
}
|
|
1931
|
+
};
|
|
1932
|
+
var getActionTypeColor = (type) => {
|
|
1933
|
+
switch (type) {
|
|
1934
|
+
case "Spend":
|
|
1935
|
+
return "#4dabf7";
|
|
1936
|
+
case "UpdateMembers":
|
|
1937
|
+
return "#ffd43b";
|
|
1938
|
+
default:
|
|
1939
|
+
return "var(--mantine-color-dimmed)";
|
|
1940
|
+
}
|
|
1941
|
+
};
|
|
1942
|
+
var ActionsCard = ({ actions, isSelected, onClick, onEditAction, onRemoveAction, disabled = false }) => {
|
|
1943
|
+
const handleCardClick = (e) => {
|
|
1944
|
+
if (e.target.closest(".action-button")) {
|
|
1945
|
+
return;
|
|
1946
|
+
}
|
|
1947
|
+
onClick();
|
|
1948
|
+
};
|
|
1949
|
+
return /* @__PURE__ */ React31.createElement(
|
|
1950
|
+
Card6,
|
|
1951
|
+
{
|
|
1952
|
+
shadow: "sm",
|
|
1953
|
+
padding: "lg",
|
|
1954
|
+
radius: "md",
|
|
1955
|
+
withBorder: true,
|
|
1956
|
+
style: {
|
|
1957
|
+
width: "100%",
|
|
1958
|
+
cursor: "pointer",
|
|
1959
|
+
backgroundColor: "var(--mantine-color-neutralColor-3)",
|
|
1960
|
+
borderColor: isSelected ? "var(--mantine-color-accent-5)" : "var(--mantine-color-neutralColor-5)",
|
|
1961
|
+
borderWidth: isSelected ? 2 : 1,
|
|
1962
|
+
transition: "all 0.2s ease"
|
|
1963
|
+
},
|
|
1964
|
+
onClick: handleCardClick
|
|
1965
|
+
},
|
|
1966
|
+
/* @__PURE__ */ React31.createElement(Group11, { justify: "space-between", align: "flex-start" }, /* @__PURE__ */ React31.createElement(Stack31, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React31.createElement(Text9, { size: "md", fw: 600 }, "Proposal Actions (", actions.length, ")"), actions.length === 0 ? /* @__PURE__ */ React31.createElement(Text9, { size: "sm", c: "dimmed" }, "No actions added yet.") : /* @__PURE__ */ React31.createElement(ScrollArea2, { h: actions.length > 3 ? 150 : void 0, style: { marginTop: 8 } }, /* @__PURE__ */ React31.createElement(Stack31, { gap: "xs" }, actions.map((action, index) => /* @__PURE__ */ React31.createElement(
|
|
1967
|
+
Card6,
|
|
1968
|
+
{
|
|
1969
|
+
key: index,
|
|
1970
|
+
withBorder: true,
|
|
1971
|
+
padding: "xs",
|
|
1972
|
+
style: {
|
|
1973
|
+
backgroundColor: "var(--mantine-color-neutralColor-2)",
|
|
1974
|
+
borderColor: "var(--mantine-color-neutralColor-5)"
|
|
1975
|
+
}
|
|
1976
|
+
},
|
|
1977
|
+
/* @__PURE__ */ React31.createElement(Group11, { justify: "space-between", align: "center" }, /* @__PURE__ */ React31.createElement(Group11, { gap: "xs", style: { flex: 1 } }, /* @__PURE__ */ React31.createElement(
|
|
1978
|
+
Badge3,
|
|
1979
|
+
{
|
|
1980
|
+
size: "sm",
|
|
1981
|
+
variant: "light",
|
|
1982
|
+
style: {
|
|
1983
|
+
backgroundColor: `${getActionTypeColor(action.type)}20`,
|
|
1984
|
+
color: getActionTypeColor(action.type)
|
|
1985
|
+
}
|
|
1986
|
+
},
|
|
1987
|
+
action.type
|
|
1988
|
+
), /* @__PURE__ */ React31.createElement(Text9, { size: "sm", c: "dimmed" }, getActionSummary(action))), !disabled && /* @__PURE__ */ React31.createElement(Group11, { gap: 4 }, /* @__PURE__ */ React31.createElement(
|
|
1989
|
+
ActionIcon2,
|
|
1990
|
+
{
|
|
1991
|
+
size: "sm",
|
|
1992
|
+
variant: "subtle",
|
|
1993
|
+
className: "action-button",
|
|
1994
|
+
onClick: (e) => {
|
|
1995
|
+
e.stopPropagation();
|
|
1996
|
+
onEditAction(index);
|
|
1997
|
+
},
|
|
1998
|
+
style: { color: "var(--mantine-color-accent-5)" }
|
|
1999
|
+
},
|
|
2000
|
+
"\u270F\uFE0F"
|
|
2001
|
+
), /* @__PURE__ */ React31.createElement(
|
|
2002
|
+
ActionIcon2,
|
|
2003
|
+
{
|
|
2004
|
+
size: "sm",
|
|
2005
|
+
variant: "subtle",
|
|
2006
|
+
className: "action-button",
|
|
2007
|
+
onClick: (e) => {
|
|
2008
|
+
e.stopPropagation();
|
|
2009
|
+
onRemoveAction(index);
|
|
2010
|
+
},
|
|
2011
|
+
style: { color: "var(--mantine-color-red-5)" }
|
|
2012
|
+
},
|
|
2013
|
+
"\u{1F5D1}\uFE0F"
|
|
2014
|
+
)))
|
|
2015
|
+
))))))
|
|
2016
|
+
);
|
|
2017
|
+
};
|
|
2018
|
+
|
|
2019
|
+
// src/mantine/blocks/proposal/ActionsPanel.tsx
|
|
2020
|
+
import React32, { useState as useState7, useEffect as useEffect2, useMemo } from "react";
|
|
2021
|
+
import { Stack as Stack32, Button as Button6, Group as Group12, Text as Text10, Card as Card7, Badge as Badge4, Divider as Divider2, ScrollArea as ScrollArea3, Alert as Alert3, Tabs, SimpleGrid, Paper } from "@mantine/core";
|
|
2022
|
+
|
|
2024
2023
|
// src/mantine/blocks/proposal/registry/categories.ts
|
|
2025
2024
|
var ACTION_CATEGORIES = [
|
|
2026
2025
|
{
|
|
@@ -2318,4 +2317,4 @@ export {
|
|
|
2318
2317
|
ActionsPanel,
|
|
2319
2318
|
ActionsTab
|
|
2320
2319
|
};
|
|
2321
|
-
//# sourceMappingURL=chunk-
|
|
2320
|
+
//# sourceMappingURL=chunk-AO5TGK5A.js.map
|