@powerhousedao/contributor-billing 0.0.17 → 0.0.18
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.
|
@@ -12,12 +12,12 @@ export default function Editor(props) {
|
|
|
12
12
|
const [notes, setNotes] = useState(state.notes ?? "");
|
|
13
13
|
return (_jsxs("div", { className: "editor-container", children: [_jsxs("div", { className: "grid grid-cols-2 gap-2 border border-gray-500 p-2 rounded-md bg-gray-1001", children: [_jsx("div", { className: "col-span-1 flex items-center", children: _jsx("h1", { className: "text-xl md:text-2xl font-bold", children: "Billing Statement" }) }), _jsxs("div", { className: "grid col-span-1 grid-rows-2 gap-2 justify-end ", children: [_jsxs("div", { className: "col-span-1 space-x-2", children: [_jsx("span", { children: "Submitter" }), _jsx("span", { children: state.contributor })] }), _jsxs("div", { className: "col-span-1 space-x-2", children: [_jsx("span", { children: "Status" }), _jsx("span", { children: state.status })] })] })] }), _jsx("div", { className: "mt-6 p-2", children: _jsxs("div", { className: "flex justify-end", children: [_jsx("span", { className: "mr-2 pt-2", children: "Currency: " }), _jsx(CurrencyForm, { currency: props.document.state.global.currency, handleInputChange: (e) => {
|
|
14
14
|
dispatch(actions.editBillingStatement({ currency: e.target.value }));
|
|
15
|
-
} })] }) }), _jsx("div", { className: "", children: _jsx(LineItemsTable, { state: state, dispatch: dispatch }) }), _jsxs("div", { className: "grid grid-cols-2
|
|
15
|
+
} })] }) }), _jsx("div", { className: "", children: _jsx(LineItemsTable, { state: state, dispatch: dispatch }) }), _jsxs("div", { className: "grid sm:grid-cols-2 two-column-grid", children: [_jsx("div", { className: "mt-6 p-2 two-column-grid:mt-2", children: _jsx(Textarea, { label: "Notes", placeholder: "Add notes", autoExpand: false, rows: 4, multiline: true, value: notes, onBlur: (e) => {
|
|
16
16
|
const newValue = e.target.value;
|
|
17
17
|
if (newValue !== state.notes) {
|
|
18
18
|
dispatch(actions.editBillingStatement({ notes: newValue }));
|
|
19
19
|
}
|
|
20
20
|
}, onChange: (e) => {
|
|
21
21
|
setNotes(e.target.value);
|
|
22
|
-
}, className: "p-2 mb-4" }) }), _jsx("div", { className: "mt-6 p-2
|
|
22
|
+
}, className: "p-2 mb-4" }) }), _jsx("div", { className: "mt-6 p-2 flex justify-center items-center", children: _jsxs("table", { className: "border border-gray-300", children: [_jsx("thead", { children: _jsxs("tr", { className: "bg-gray-100", children: [_jsx("th", { className: "border px-4 py-2", children: "Total Fiat" }), _jsx("th", { className: "border px-4 py-2", children: "Total POWT" })] }) }), _jsx("tbody", { children: _jsxs("tr", { children: [_jsx("td", { className: "border px-4 py-2 text-center", children: formatNumber(state.totalCash) }), _jsx("td", { className: "border px-4 py-2 text-center", children: formatNumber(state.totalPowt) })] }) })] }) })] })] }));
|
|
23
23
|
}
|
package/dist/style.css
CHANGED
|
@@ -970,6 +970,11 @@
|
|
|
970
970
|
padding: calc(var(--spacing) * 0);
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
|
+
.sm\:grid-cols-2 {
|
|
974
|
+
@media (width >= 40rem) {
|
|
975
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
976
|
+
}
|
|
977
|
+
}
|
|
973
978
|
.md\:grid-cols-2 {
|
|
974
979
|
@media (width >= 48rem) {
|
|
975
980
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -6350,12 +6355,9 @@ input[type="number"] {
|
|
|
6350
6355
|
transform: none;
|
|
6351
6356
|
}
|
|
6352
6357
|
}
|
|
6353
|
-
@media (
|
|
6354
|
-
.
|
|
6355
|
-
grid-template-columns: 1fr
|
|
6356
|
-
}
|
|
6357
|
-
.editor-grid-item {
|
|
6358
|
-
width: 100% !important;
|
|
6358
|
+
@media (min-width: 640px) {
|
|
6359
|
+
.two-column-grid {
|
|
6360
|
+
grid-template-columns: 1fr 1fr;
|
|
6359
6361
|
}
|
|
6360
6362
|
}
|
|
6361
6363
|
@property --tw-border-spacing-x {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/contributor-billing",
|
|
3
3
|
"description": "Document models that help contributors of open organisations get paid anonymously for their work on a monthly basis.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.18",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|