@powerhousedao/contributor-billing 0.0.61 → 0.0.63

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.
@@ -1 +1 @@
1
- {"version":3,"file":"objectSetTable.d.ts","sourceRoot":"","sources":["../../../../editors/billing-statement/components/objectSetTable.tsx"],"names":[],"mappings":"AAsBA,QAAA,MAAM,uBAAuB,GAAI,OAAO;IAAE,KAAK,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE,4CA+JpE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"objectSetTable.d.ts","sourceRoot":"","sources":["../../../../editors/billing-statement/components/objectSetTable.tsx"],"names":[],"mappings":"AAqBA,QAAA,MAAM,uBAAuB,GAAI,OAAO;IAAE,KAAK,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE,4CA6JpE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1,10 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Tag } from "lucide-react";
3
3
  import { ObjectSetTable, Select } from "@powerhousedao/document-engineering";
4
- import { useMemo, useRef } from "react";
4
+ import { useMemo } from "react";
5
5
  const ObjectSetTableComponent = (props) => {
6
6
  const { state, dispatch } = props;
7
- const tableApiRef = useRef(null);
8
7
  // console.log("lineItems", state.lineItems);
9
8
  const units = [
10
9
  { label: "Minute", value: "Minute" },
@@ -91,6 +90,6 @@ const ObjectSetTableComponent = (props) => {
91
90
  height: 28,
92
91
  color: "white",
93
92
  fill: "#475264",
94
- } }) })] }), _jsx("div", {}), _jsx("div", { className: "mt-4", children: _jsx(ObjectSetTable, { columns: columns, data: state.lineItems, apiRef: tableApiRef }, state.lineItems.length) })] }));
93
+ } }) })] }), _jsx("div", {}), _jsx("div", { className: "mt-4", children: _jsx(ObjectSetTable, { columns: columns, data: state.lineItems }, state.lineItems.length) })] }));
95
94
  };
96
95
  export default ObjectSetTableComponent;
@@ -6,7 +6,7 @@ import { uploadPdfChunked } from "./uploadPdfChunked.js";
6
6
  import { getCountryCodeFromName } from "./utils/utils.js";
7
7
  let GRAPHQL_URL = 'http://localhost:4001/graphql/invoice';
8
8
  if (!window.document.baseURI.includes('localhost')) {
9
- GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
9
+ GRAPHQL_URL = 'https://switchboard-dev.powerhouse.xyz/graphql/invoice';
10
10
  }
11
11
  export async function loadPDFFile({ file, dispatch, }) {
12
12
  if (!file)
@@ -4,7 +4,7 @@ import { actions, } from "../../document-models/invoice/index.js";
4
4
  import { generateId } from "document-model";
5
5
  let GRAPHQL_URL = "http://localhost:4001/graphql/invoice";
6
6
  if (!window.document.baseURI.includes('localhost')) {
7
- GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
7
+ GRAPHQL_URL = 'https://switchboard-dev.powerhouse.xyz/graphql/invoice';
8
8
  }
9
9
  const InvoiceToGnosis = ({ docState, dispatch }) => {
10
10
  const [isLoading, setIsLoading] = useState(false);
@@ -131,6 +131,6 @@ const InvoiceToGnosis = ({ docState, dispatch }) => {
131
131
  }
132
132
  };
133
133
  const urlChainName = parseChainName(chainName);
134
- return (_jsxs("div", { className: "space-y-4", children: [currency && chainName && currency !== "" && chainName !== "" && (_jsx("button", { className: "bg-blue-500 text-black px-4 py-2 rounded-md hover:bg-blue-600", onClick: handleInvoiceToGnosis, disabled: isLoading, children: isLoading ? "Processing..." : "Send Payment to Gnosis >" })), error && (_jsx("div", { className: "text-red-500 bg-red-50 p-3 rounded-md", children: error })), safeTxHash && (_jsxs("div", { className: "bg-gray-50 p-4 rounded-md space-y-2", children: [_jsxs("p", { className: "font-medium", children: ["Safe Transaction Hash:", _jsx("span", { className: "font-mono text-sm ml-2 break-all", children: safeTxHash })] }), _jsx("a", { href: `https://app.safe.global/transactions/queue?safe=${urlChainName}:0xF130f741d4E3185b29412c65397363f8c23A0460`, target: "_blank", rel: "noopener noreferrer", className: "text-blue-500 hover:text-blue-600 underline block", children: "View Transaction" })] })), invoiceStatusResponse && (_jsxs("div", { className: "bg-gray-50 p-4 rounded-md", children: [_jsx("p", { className: "font-medium", children: "Payment Details:" }), _jsx("p", { className: "text-gray-700", children: invoiceStatusResponse })] }))] }));
134
+ return (_jsxs("div", { className: "space-y-4", children: [currency && chainName && currency !== "" && chainName !== "" && (_jsx("button", { className: "bg-blue-500 text-black px-4 py-2 rounded-md hover:bg-blue-600", onClick: handleInvoiceToGnosis, disabled: isLoading, children: isLoading ? "Processing..." : "Send Payment to Gnosis >" })), error && (_jsx("div", { className: "text-red-500 bg-red-50 p-3 rounded-md", children: error })), safeTxHash && (_jsxs("div", { className: "bg-gray-50 p-4 rounded-md space-y-2", children: [_jsxs("p", { className: "font-medium", children: ["Safe Transaction Hash:", _jsx("span", { className: "font-mono text-sm ml-2 break-all", children: safeTxHash })] }), _jsx("a", { href: `https://app.safe.global/transactions/queue?safe=${urlChainName}:0x1FB6bEF04230d67aF0e3455B997a28AFcCe1F45e`, target: "_blank", rel: "noopener noreferrer", className: "text-blue-500 hover:text-blue-600 underline block", children: "View Transaction" })] })), invoiceStatusResponse && (_jsxs("div", { className: "bg-gray-50 p-4 rounded-md", children: [_jsx("p", { className: "font-medium", children: "Payment Details:" }), _jsx("p", { className: "text-gray-700", children: invoiceStatusResponse })] }))] }));
135
135
  };
136
136
  export default InvoiceToGnosis;
@@ -4,7 +4,7 @@ import { actions, } from "../../document-models/invoice/index.js";
4
4
  import { generateId } from "document-model";
5
5
  let GRAPHQL_URL = 'http://localhost:4001/graphql/invoice';
6
6
  if (!window.document.baseURI.includes('localhost')) {
7
- GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
7
+ GRAPHQL_URL = 'https://switchboard-dev.powerhouse.xyz/graphql/invoice';
8
8
  }
9
9
  const RequestFinance = ({ docState, dispatch }) => {
10
10
  const [isLoading, setIsLoading] = useState(false);
@@ -7,7 +7,7 @@
7
7
  */
8
8
  let GRAPHQL_URL = 'http://localhost:4001/graphql/invoice';
9
9
  if (!window.document.baseURI.includes('localhost')) {
10
- GRAPHQL_URL = 'https://switchboard.powerhouse.xyz/graphql/invoice';
10
+ GRAPHQL_URL = 'https://switchboard-dev.powerhouse.xyz/graphql/invoice';
11
11
  }
12
12
  export async function uploadPdfChunked(pdfData, endpoint = GRAPHQL_URL, chunkSize = 500 * 1024, // 500KB chunks
13
13
  onProgress) {
@@ -4,7 +4,7 @@ import { OperationType } from '@safe-global/types-kit';
4
4
  import { ethers, AbiCoder } from 'ethers';
5
5
  import dotenv from 'dotenv';
6
6
  dotenv.config();
7
- const safeAddress = process.env.PRODUCTION_SAFE_ADDRESS;
7
+ const safeAddress = process.env.DEV_STAGING_SAFE_ADDRESS;
8
8
  if (!safeAddress) {
9
9
  throw new Error('Missing SAFE_ADDRESS in .env');
10
10
  }
package/dist/style.css CHANGED
@@ -8,6 +8,7 @@
8
8
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
9
9
  "Courier New", monospace;
10
10
  --color-red-50: oklch(97.1% 0.013 17.38);
11
+ --color-red-100: oklch(93.6% 0.032 17.717);
11
12
  --color-red-300: oklch(80.8% 0.114 19.571);
12
13
  --color-red-400: oklch(70.4% 0.191 22.216);
13
14
  --color-red-500: oklch(63.7% 0.237 25.331);
@@ -5686,6 +5687,7 @@ input[type="number"] {
5686
5687
  --font-sans: "Inter", sans-serif;
5687
5688
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
5688
5689
  "Courier New", monospace;
5690
+ --color-red-100: hsl(3 82% 96%);
5689
5691
  --color-red-300: hsl(6 82% 87%);
5690
5692
  --color-red-400: hsl(5 82% 83%);
5691
5693
  --color-red-500: hsl(5 80% 78%);
@@ -5763,6 +5765,7 @@ input[type="number"] {
5763
5765
  --radius-md: 0.375rem;
5764
5766
  --radius-lg: 0.5rem;
5765
5767
  --radius-xl: 0.75rem;
5768
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
5766
5769
  --animate-spin: spin 1s linear infinite;
5767
5770
  --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
5768
5771
  --default-transition-duration: 150ms;
@@ -5948,6 +5951,9 @@ input[type="number"] {
5948
5951
  .\!pointer-events-auto {
5949
5952
  pointer-events: auto !important;
5950
5953
  }
5954
+ .pointer-events-auto {
5955
+ pointer-events: auto;
5956
+ }
5951
5957
  .pointer-events-none {
5952
5958
  pointer-events: none;
5953
5959
  }
@@ -6011,6 +6017,9 @@ input[type="number"] {
6011
6017
  .right-8 {
6012
6018
  right: calc(var(--spacing) * 8);
6013
6019
  }
6020
+ .bottom-4 {
6021
+ bottom: calc(var(--spacing) * 4);
6022
+ }
6014
6023
  .bottom-5 {
6015
6024
  bottom: calc(var(--spacing) * 5);
6016
6025
  }
@@ -6029,6 +6038,9 @@ input[type="number"] {
6029
6038
  .left-\[50\%\] {
6030
6039
  left: 50%;
6031
6040
  }
6041
+ .z-0 {
6042
+ z-index: 0;
6043
+ }
6032
6044
  .z-1 {
6033
6045
  z-index: 1;
6034
6046
  }
@@ -6194,6 +6206,9 @@ input[type="number"] {
6194
6206
  .inline {
6195
6207
  display: inline;
6196
6208
  }
6209
+ .inline-block {
6210
+ display: inline-block;
6211
+ }
6197
6212
  .inline-flex {
6198
6213
  display: inline-flex;
6199
6214
  }
@@ -6252,6 +6267,9 @@ input[type="number"] {
6252
6267
  .h-4 {
6253
6268
  height: calc(var(--spacing) * 4);
6254
6269
  }
6270
+ .h-4\.5 {
6271
+ height: calc(var(--spacing) * 4.5);
6272
+ }
6255
6273
  .h-6 {
6256
6274
  height: calc(var(--spacing) * 6);
6257
6275
  }
@@ -6315,6 +6333,9 @@ input[type="number"] {
6315
6333
  .min-h-9 {
6316
6334
  min-height: calc(var(--spacing) * 9);
6317
6335
  }
6336
+ .min-h-\[148px\] {
6337
+ min-height: 148px;
6338
+ }
6318
6339
  .w-\(--radix-popover-trigger-width\) {
6319
6340
  width: var(--radix-popover-trigger-width);
6320
6341
  }
@@ -6336,6 +6357,39 @@ input[type="number"] {
6336
6357
  .w-16 {
6337
6358
  width: calc(var(--spacing) * 16);
6338
6359
  }
6360
+ .w-22 {
6361
+ width: calc(var(--spacing) * 22);
6362
+ }
6363
+ .w-23 {
6364
+ width: calc(var(--spacing) * 23);
6365
+ }
6366
+ .w-24 {
6367
+ width: calc(var(--spacing) * 24);
6368
+ }
6369
+ .w-26 {
6370
+ width: calc(var(--spacing) * 26);
6371
+ }
6372
+ .w-28 {
6373
+ width: calc(var(--spacing) * 28);
6374
+ }
6375
+ .w-30 {
6376
+ width: calc(var(--spacing) * 30);
6377
+ }
6378
+ .w-32 {
6379
+ width: calc(var(--spacing) * 32);
6380
+ }
6381
+ .w-34 {
6382
+ width: calc(var(--spacing) * 34);
6383
+ }
6384
+ .w-36 {
6385
+ width: calc(var(--spacing) * 36);
6386
+ }
6387
+ .w-38 {
6388
+ width: calc(var(--spacing) * 38);
6389
+ }
6390
+ .w-40 {
6391
+ width: calc(var(--spacing) * 40);
6392
+ }
6339
6393
  .w-48 {
6340
6394
  width: calc(var(--spacing) * 48);
6341
6395
  }
@@ -6372,6 +6426,9 @@ input[type="number"] {
6372
6426
  .w-\[184px\] {
6373
6427
  width: 184px;
6374
6428
  }
6429
+ .w-\[247px\] {
6430
+ width: 247px;
6431
+ }
6375
6432
  .w-\[275px\] {
6376
6433
  width: 275px;
6377
6434
  }
@@ -6547,6 +6604,9 @@ input[type="number"] {
6547
6604
  .justify-start {
6548
6605
  justify-content: flex-start;
6549
6606
  }
6607
+ .gap-0\.5 {
6608
+ gap: calc(var(--spacing) * 0.5);
6609
+ }
6550
6610
  .gap-1 {
6551
6611
  gap: calc(var(--spacing) * 1);
6552
6612
  }
@@ -6648,10 +6708,18 @@ input[type="number"] {
6648
6708
  border-top-left-radius: 0;
6649
6709
  border-top-right-radius: 0;
6650
6710
  }
6711
+ .rounded-l-md {
6712
+ border-top-left-radius: var(--radius-md);
6713
+ border-bottom-left-radius: var(--radius-md);
6714
+ }
6651
6715
  .rounded-l-none {
6652
6716
  border-top-left-radius: 0;
6653
6717
  border-bottom-left-radius: 0;
6654
6718
  }
6719
+ .rounded-r-md {
6720
+ border-top-right-radius: var(--radius-md);
6721
+ border-bottom-right-radius: var(--radius-md);
6722
+ }
6655
6723
  .rounded-r-none {
6656
6724
  border-top-right-radius: 0;
6657
6725
  border-bottom-right-radius: 0;
@@ -6696,6 +6764,10 @@ input[type="number"] {
6696
6764
  border-bottom-style: var(--tw-border-style);
6697
6765
  border-bottom-width: 2px;
6698
6766
  }
6767
+ .border-l {
6768
+ border-left-style: var(--tw-border-style);
6769
+ border-left-width: 1px;
6770
+ }
6699
6771
  .border-l-\[0\.5px\] {
6700
6772
  border-left-style: var(--tw-border-style);
6701
6773
  border-left-width: 0.5px;
@@ -6708,6 +6780,9 @@ input[type="number"] {
6708
6780
  --tw-border-style: none;
6709
6781
  border-style: none;
6710
6782
  }
6783
+ .border-\[\#E4E4E7\] {
6784
+ border-color: #E4E4E7;
6785
+ }
6711
6786
  .border-blue-500 {
6712
6787
  border-color: var(--color-blue-500);
6713
6788
  }
@@ -6744,6 +6819,9 @@ input[type="number"] {
6744
6819
  .border-red-700 {
6745
6820
  border-color: var(--color-red-700);
6746
6821
  }
6822
+ .border-red-900 {
6823
+ border-color: var(--color-red-900);
6824
+ }
6747
6825
  .border-transparent {
6748
6826
  border-color: transparent;
6749
6827
  }
@@ -6846,6 +6924,9 @@ input[type="number"] {
6846
6924
  .bg-primary {
6847
6925
  background-color: var(--color-primary);
6848
6926
  }
6927
+ .bg-red-100 {
6928
+ background-color: var(--color-red-100);
6929
+ }
6849
6930
  .bg-red-500 {
6850
6931
  background-color: var(--color-red-500);
6851
6932
  }
@@ -6972,6 +7053,9 @@ input[type="number"] {
6972
7053
  .pt-3 {
6973
7054
  padding-top: calc(var(--spacing) * 3);
6974
7055
  }
7056
+ .pt-3\.5 {
7057
+ padding-top: calc(var(--spacing) * 3.5);
7058
+ }
6975
7059
  .pt-\[25px\] {
6976
7060
  padding-top: 25px;
6977
7061
  }
@@ -7008,6 +7092,9 @@ input[type="number"] {
7008
7092
  .pb-0\.5 {
7009
7093
  padding-bottom: calc(var(--spacing) * 0.5);
7010
7094
  }
7095
+ .pb-1 {
7096
+ padding-bottom: calc(var(--spacing) * 1);
7097
+ }
7011
7098
  .pb-2 {
7012
7099
  padding-bottom: calc(var(--spacing) * 2);
7013
7100
  }
@@ -7087,6 +7174,10 @@ input[type="number"] {
7087
7174
  --tw-leading: calc(var(--spacing) * 4);
7088
7175
  line-height: calc(var(--spacing) * 4);
7089
7176
  }
7177
+ .leading-4\.5 {
7178
+ --tw-leading: calc(var(--spacing) * 4.5);
7179
+ line-height: calc(var(--spacing) * 4.5);
7180
+ }
7090
7181
  .leading-5 {
7091
7182
  --tw-leading: calc(var(--spacing) * 5);
7092
7183
  line-height: calc(var(--spacing) * 5);
@@ -7404,6 +7495,10 @@ input[type="number"] {
7404
7495
  --tw-duration: 500ms;
7405
7496
  transition-duration: 500ms;
7406
7497
  }
7498
+ .ease-in-out {
7499
+ --tw-ease: var(--ease-in-out);
7500
+ transition-timing-function: var(--ease-in-out);
7501
+ }
7407
7502
  .ease-linear {
7408
7503
  --tw-ease: linear;
7409
7504
  transition-timing-function: linear;
@@ -7590,6 +7685,18 @@ input[type="number"] {
7590
7685
  background-color: var(--color-blue-900);
7591
7686
  }
7592
7687
  }
7688
+ .before\:bg-gray-500 {
7689
+ &::before {
7690
+ content: var(--tw-content);
7691
+ background-color: var(--color-gray-500);
7692
+ }
7693
+ }
7694
+ .before\:bg-green-900 {
7695
+ &::before {
7696
+ content: var(--tw-content);
7697
+ background-color: var(--color-green-900);
7698
+ }
7699
+ }
7593
7700
  .before\:bg-orange-900 {
7594
7701
  &::before {
7595
7702
  content: var(--tw-content);
@@ -7602,6 +7709,28 @@ input[type="number"] {
7602
7709
  background-color: var(--color-red-900);
7603
7710
  }
7604
7711
  }
7712
+ .before\:transition-colors {
7713
+ &::before {
7714
+ content: var(--tw-content);
7715
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
7716
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
7717
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
7718
+ }
7719
+ }
7720
+ .before\:duration-200 {
7721
+ &::before {
7722
+ content: var(--tw-content);
7723
+ --tw-duration: 200ms;
7724
+ transition-duration: 200ms;
7725
+ }
7726
+ }
7727
+ .before\:ease-in-out {
7728
+ &::before {
7729
+ content: var(--tw-content);
7730
+ --tw-ease: var(--ease-in-out);
7731
+ transition-timing-function: var(--ease-in-out);
7732
+ }
7733
+ }
7605
7734
  .after\:absolute {
7606
7735
  &::after {
7607
7736
  content: var(--tw-content);
@@ -7737,12 +7866,24 @@ input[type="number"] {
7737
7866
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
7738
7867
  }
7739
7868
  }
7869
+ .focus-within\:ring-gray-900 {
7870
+ &:focus-within {
7871
+ --tw-ring-color: var(--color-gray-900);
7872
+ }
7873
+ }
7740
7874
  .focus-within\:ring-offset-0 {
7741
7875
  &:focus-within {
7742
7876
  --tw-ring-offset-width: 0px;
7743
7877
  --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
7744
7878
  }
7745
7879
  }
7880
+ .hover\:cursor-pointer {
7881
+ &:hover {
7882
+ @media (hover: hover) {
7883
+ cursor: pointer;
7884
+ }
7885
+ }
7886
+ }
7746
7887
  .hover\:rounded-\[4px\] {
7747
7888
  &:hover {
7748
7889
  @media (hover: hover) {
@@ -7813,6 +7954,13 @@ input[type="number"] {
7813
7954
  }
7814
7955
  }
7815
7956
  }
7957
+ .hover\:bg-blue-600 {
7958
+ &:hover {
7959
+ @media (hover: hover) {
7960
+ background-color: var(--color-blue-600);
7961
+ }
7962
+ }
7963
+ }
7816
7964
  .hover\:bg-destructive\/90 {
7817
7965
  &:hover {
7818
7966
  @media (hover: hover) {
@@ -7867,6 +8015,13 @@ input[type="number"] {
7867
8015
  }
7868
8016
  }
7869
8017
  }
8018
+ .hover\:bg-red-100 {
8019
+ &:hover {
8020
+ @media (hover: hover) {
8021
+ background-color: var(--color-red-100);
8022
+ }
8023
+ }
8024
+ }
7870
8025
  .hover\:bg-secondary\/80 {
7871
8026
  &:hover {
7872
8027
  @media (hover: hover) {
@@ -7894,6 +8049,13 @@ input[type="number"] {
7894
8049
  }
7895
8050
  }
7896
8051
  }
8052
+ .hover\:bg-white {
8053
+ &:hover {
8054
+ @media (hover: hover) {
8055
+ background-color: var(--color-white);
8056
+ }
8057
+ }
8058
+ }
7897
8059
  .hover\:pr-6 {
7898
8060
  &:hover {
7899
8061
  @media (hover: hover) {
@@ -8035,6 +8197,11 @@ input[type="number"] {
8035
8197
  background-color: var(--color-gray-50);
8036
8198
  }
8037
8199
  }
8200
+ .focus\:bg-transparent {
8201
+ &:focus {
8202
+ background-color: transparent;
8203
+ }
8204
+ }
8038
8205
  .focus\:bg-white {
8039
8206
  &:focus {
8040
8207
  background-color: var(--color-white);
@@ -10643,6 +10810,11 @@ input[type="number"] {
10643
10810
  display: none;
10644
10811
  }
10645
10812
  }
10813
+ .\[\&_\[data-slot\=progress-bar-indicator\]\]\:bg-blue-600 {
10814
+ & [data-slot=progress-bar-indicator] {
10815
+ background-color: var(--color-blue-600);
10816
+ }
10817
+ }
10646
10818
  .\[\&_\[data-slot\=progress-bar-indicator\]\]\:bg-green-900 {
10647
10819
  & [data-slot=progress-bar-indicator] {
10648
10820
  background-color: var(--color-green-900);
@@ -10671,6 +10843,21 @@ input[type="number"] {
10671
10843
  }
10672
10844
  }
10673
10845
  }
10846
+ .\[\&_\[data-type\=\"character-counter\"\]\]\:hidden {
10847
+ & [data-type="character-counter"] {
10848
+ display: none;
10849
+ }
10850
+ }
10851
+ .\[\&_\[data-type\=\"error\"\]\]\:hidden {
10852
+ & [data-type="error"] {
10853
+ display: none;
10854
+ }
10855
+ }
10856
+ .\[\&_\[data-type\=\"warning\"\]\]\:hidden {
10857
+ & [data-type="warning"] {
10858
+ display: none;
10859
+ }
10860
+ }
10674
10861
  .\[\&_button\]\:\!mr-0 {
10675
10862
  & button {
10676
10863
  margin-right: calc(var(--spacing) * 0) !important;
@@ -10792,6 +10979,11 @@ input[type="number"] {
10792
10979
  }
10793
10980
  }
10794
10981
  }
10982
+ .\[\&_div\]\:justify-center {
10983
+ & div {
10984
+ justify-content: center;
10985
+ }
10986
+ }
10795
10987
  .\[\&_label\]\:text-blue-600 {
10796
10988
  & label {
10797
10989
  color: var(--color-blue-600);
@@ -11342,19 +11534,6 @@ input[type="number"] {
11342
11534
  }
11343
11535
  }
11344
11536
  }
11345
- .\[\&\>li\]\:text-gray-500 {
11346
- &>li {
11347
- color: var(--color-gray-500);
11348
- }
11349
- }
11350
- .\[\&\>li\]\:before\:bg-gray-500 {
11351
- &>li {
11352
- &::before {
11353
- content: var(--tw-content);
11354
- background-color: var(--color-gray-500);
11355
- }
11356
- }
11357
- }
11358
11537
  .\[\&\>span\]\:w-full {
11359
11538
  &>span {
11360
11539
  width: 100%;
@@ -11686,6 +11865,7 @@ input[type="number"] {
11686
11865
  --font-sans: "Inter", sans-serif;
11687
11866
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
11688
11867
  "Courier New", monospace;
11868
+ --color-red-100: hsl(3 82% 96%);
11689
11869
  --color-red-300: hsl(6 82% 87%);
11690
11870
  --color-red-400: hsl(5 82% 83%);
11691
11871
  --color-red-500: hsl(5 80% 78%);
@@ -11763,6 +11943,7 @@ input[type="number"] {
11763
11943
  --radius-md: 0.375rem;
11764
11944
  --radius-lg: 0.5rem;
11765
11945
  --radius-xl: 0.75rem;
11946
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
11766
11947
  --animate-spin: spin 1s linear infinite;
11767
11948
  --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
11768
11949
  --default-transition-duration: 150ms;
@@ -11948,6 +12129,9 @@ input[type="number"] {
11948
12129
  .\!pointer-events-auto {
11949
12130
  pointer-events: auto !important;
11950
12131
  }
12132
+ .pointer-events-auto {
12133
+ pointer-events: auto;
12134
+ }
11951
12135
  .pointer-events-none {
11952
12136
  pointer-events: none;
11953
12137
  }
@@ -12011,6 +12195,9 @@ input[type="number"] {
12011
12195
  .right-8 {
12012
12196
  right: calc(var(--spacing) * 8);
12013
12197
  }
12198
+ .bottom-4 {
12199
+ bottom: calc(var(--spacing) * 4);
12200
+ }
12014
12201
  .bottom-5 {
12015
12202
  bottom: calc(var(--spacing) * 5);
12016
12203
  }
@@ -12029,6 +12216,9 @@ input[type="number"] {
12029
12216
  .left-\[50\%\] {
12030
12217
  left: 50%;
12031
12218
  }
12219
+ .z-0 {
12220
+ z-index: 0;
12221
+ }
12032
12222
  .z-1 {
12033
12223
  z-index: 1;
12034
12224
  }
@@ -12194,6 +12384,9 @@ input[type="number"] {
12194
12384
  .inline {
12195
12385
  display: inline;
12196
12386
  }
12387
+ .inline-block {
12388
+ display: inline-block;
12389
+ }
12197
12390
  .inline-flex {
12198
12391
  display: inline-flex;
12199
12392
  }
@@ -12252,6 +12445,9 @@ input[type="number"] {
12252
12445
  .h-4 {
12253
12446
  height: calc(var(--spacing) * 4);
12254
12447
  }
12448
+ .h-4\.5 {
12449
+ height: calc(var(--spacing) * 4.5);
12450
+ }
12255
12451
  .h-6 {
12256
12452
  height: calc(var(--spacing) * 6);
12257
12453
  }
@@ -12315,6 +12511,9 @@ input[type="number"] {
12315
12511
  .min-h-9 {
12316
12512
  min-height: calc(var(--spacing) * 9);
12317
12513
  }
12514
+ .min-h-\[148px\] {
12515
+ min-height: 148px;
12516
+ }
12318
12517
  .w-\(--radix-popover-trigger-width\) {
12319
12518
  width: var(--radix-popover-trigger-width);
12320
12519
  }
@@ -12336,6 +12535,39 @@ input[type="number"] {
12336
12535
  .w-16 {
12337
12536
  width: calc(var(--spacing) * 16);
12338
12537
  }
12538
+ .w-22 {
12539
+ width: calc(var(--spacing) * 22);
12540
+ }
12541
+ .w-23 {
12542
+ width: calc(var(--spacing) * 23);
12543
+ }
12544
+ .w-24 {
12545
+ width: calc(var(--spacing) * 24);
12546
+ }
12547
+ .w-26 {
12548
+ width: calc(var(--spacing) * 26);
12549
+ }
12550
+ .w-28 {
12551
+ width: calc(var(--spacing) * 28);
12552
+ }
12553
+ .w-30 {
12554
+ width: calc(var(--spacing) * 30);
12555
+ }
12556
+ .w-32 {
12557
+ width: calc(var(--spacing) * 32);
12558
+ }
12559
+ .w-34 {
12560
+ width: calc(var(--spacing) * 34);
12561
+ }
12562
+ .w-36 {
12563
+ width: calc(var(--spacing) * 36);
12564
+ }
12565
+ .w-38 {
12566
+ width: calc(var(--spacing) * 38);
12567
+ }
12568
+ .w-40 {
12569
+ width: calc(var(--spacing) * 40);
12570
+ }
12339
12571
  .w-48 {
12340
12572
  width: calc(var(--spacing) * 48);
12341
12573
  }
@@ -12372,6 +12604,9 @@ input[type="number"] {
12372
12604
  .w-\[184px\] {
12373
12605
  width: 184px;
12374
12606
  }
12607
+ .w-\[247px\] {
12608
+ width: 247px;
12609
+ }
12375
12610
  .w-\[275px\] {
12376
12611
  width: 275px;
12377
12612
  }
@@ -12547,6 +12782,9 @@ input[type="number"] {
12547
12782
  .justify-start {
12548
12783
  justify-content: flex-start;
12549
12784
  }
12785
+ .gap-0\.5 {
12786
+ gap: calc(var(--spacing) * 0.5);
12787
+ }
12550
12788
  .gap-1 {
12551
12789
  gap: calc(var(--spacing) * 1);
12552
12790
  }
@@ -12648,10 +12886,18 @@ input[type="number"] {
12648
12886
  border-top-left-radius: 0;
12649
12887
  border-top-right-radius: 0;
12650
12888
  }
12889
+ .rounded-l-md {
12890
+ border-top-left-radius: var(--radius-md);
12891
+ border-bottom-left-radius: var(--radius-md);
12892
+ }
12651
12893
  .rounded-l-none {
12652
12894
  border-top-left-radius: 0;
12653
12895
  border-bottom-left-radius: 0;
12654
12896
  }
12897
+ .rounded-r-md {
12898
+ border-top-right-radius: var(--radius-md);
12899
+ border-bottom-right-radius: var(--radius-md);
12900
+ }
12655
12901
  .rounded-r-none {
12656
12902
  border-top-right-radius: 0;
12657
12903
  border-bottom-right-radius: 0;
@@ -12696,6 +12942,10 @@ input[type="number"] {
12696
12942
  border-bottom-style: var(--tw-border-style);
12697
12943
  border-bottom-width: 2px;
12698
12944
  }
12945
+ .border-l {
12946
+ border-left-style: var(--tw-border-style);
12947
+ border-left-width: 1px;
12948
+ }
12699
12949
  .border-l-\[0\.5px\] {
12700
12950
  border-left-style: var(--tw-border-style);
12701
12951
  border-left-width: 0.5px;
@@ -12708,6 +12958,9 @@ input[type="number"] {
12708
12958
  --tw-border-style: none;
12709
12959
  border-style: none;
12710
12960
  }
12961
+ .border-\[\#E4E4E7\] {
12962
+ border-color: #E4E4E7;
12963
+ }
12711
12964
  .border-blue-500 {
12712
12965
  border-color: var(--color-blue-500);
12713
12966
  }
@@ -12744,6 +12997,9 @@ input[type="number"] {
12744
12997
  .border-red-700 {
12745
12998
  border-color: var(--color-red-700);
12746
12999
  }
13000
+ .border-red-900 {
13001
+ border-color: var(--color-red-900);
13002
+ }
12747
13003
  .border-transparent {
12748
13004
  border-color: transparent;
12749
13005
  }
@@ -12846,6 +13102,9 @@ input[type="number"] {
12846
13102
  .bg-primary {
12847
13103
  background-color: var(--color-primary);
12848
13104
  }
13105
+ .bg-red-100 {
13106
+ background-color: var(--color-red-100);
13107
+ }
12849
13108
  .bg-red-500 {
12850
13109
  background-color: var(--color-red-500);
12851
13110
  }
@@ -12972,6 +13231,9 @@ input[type="number"] {
12972
13231
  .pt-3 {
12973
13232
  padding-top: calc(var(--spacing) * 3);
12974
13233
  }
13234
+ .pt-3\.5 {
13235
+ padding-top: calc(var(--spacing) * 3.5);
13236
+ }
12975
13237
  .pt-\[25px\] {
12976
13238
  padding-top: 25px;
12977
13239
  }
@@ -13008,6 +13270,9 @@ input[type="number"] {
13008
13270
  .pb-0\.5 {
13009
13271
  padding-bottom: calc(var(--spacing) * 0.5);
13010
13272
  }
13273
+ .pb-1 {
13274
+ padding-bottom: calc(var(--spacing) * 1);
13275
+ }
13011
13276
  .pb-2 {
13012
13277
  padding-bottom: calc(var(--spacing) * 2);
13013
13278
  }
@@ -13087,6 +13352,10 @@ input[type="number"] {
13087
13352
  --tw-leading: calc(var(--spacing) * 4);
13088
13353
  line-height: calc(var(--spacing) * 4);
13089
13354
  }
13355
+ .leading-4\.5 {
13356
+ --tw-leading: calc(var(--spacing) * 4.5);
13357
+ line-height: calc(var(--spacing) * 4.5);
13358
+ }
13090
13359
  .leading-5 {
13091
13360
  --tw-leading: calc(var(--spacing) * 5);
13092
13361
  line-height: calc(var(--spacing) * 5);
@@ -13404,6 +13673,10 @@ input[type="number"] {
13404
13673
  --tw-duration: 500ms;
13405
13674
  transition-duration: 500ms;
13406
13675
  }
13676
+ .ease-in-out {
13677
+ --tw-ease: var(--ease-in-out);
13678
+ transition-timing-function: var(--ease-in-out);
13679
+ }
13407
13680
  .ease-linear {
13408
13681
  --tw-ease: linear;
13409
13682
  transition-timing-function: linear;
@@ -13590,6 +13863,18 @@ input[type="number"] {
13590
13863
  background-color: var(--color-blue-900);
13591
13864
  }
13592
13865
  }
13866
+ .before\:bg-gray-500 {
13867
+ &::before {
13868
+ content: var(--tw-content);
13869
+ background-color: var(--color-gray-500);
13870
+ }
13871
+ }
13872
+ .before\:bg-green-900 {
13873
+ &::before {
13874
+ content: var(--tw-content);
13875
+ background-color: var(--color-green-900);
13876
+ }
13877
+ }
13593
13878
  .before\:bg-orange-900 {
13594
13879
  &::before {
13595
13880
  content: var(--tw-content);
@@ -13602,6 +13887,28 @@ input[type="number"] {
13602
13887
  background-color: var(--color-red-900);
13603
13888
  }
13604
13889
  }
13890
+ .before\:transition-colors {
13891
+ &::before {
13892
+ content: var(--tw-content);
13893
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
13894
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
13895
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
13896
+ }
13897
+ }
13898
+ .before\:duration-200 {
13899
+ &::before {
13900
+ content: var(--tw-content);
13901
+ --tw-duration: 200ms;
13902
+ transition-duration: 200ms;
13903
+ }
13904
+ }
13905
+ .before\:ease-in-out {
13906
+ &::before {
13907
+ content: var(--tw-content);
13908
+ --tw-ease: var(--ease-in-out);
13909
+ transition-timing-function: var(--ease-in-out);
13910
+ }
13911
+ }
13605
13912
  .after\:absolute {
13606
13913
  &::after {
13607
13914
  content: var(--tw-content);
@@ -13737,12 +14044,24 @@ input[type="number"] {
13737
14044
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
13738
14045
  }
13739
14046
  }
14047
+ .focus-within\:ring-gray-900 {
14048
+ &:focus-within {
14049
+ --tw-ring-color: var(--color-gray-900);
14050
+ }
14051
+ }
13740
14052
  .focus-within\:ring-offset-0 {
13741
14053
  &:focus-within {
13742
14054
  --tw-ring-offset-width: 0px;
13743
14055
  --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
13744
14056
  }
13745
14057
  }
14058
+ .hover\:cursor-pointer {
14059
+ &:hover {
14060
+ @media (hover: hover) {
14061
+ cursor: pointer;
14062
+ }
14063
+ }
14064
+ }
13746
14065
  .hover\:rounded-\[4px\] {
13747
14066
  &:hover {
13748
14067
  @media (hover: hover) {
@@ -13813,6 +14132,13 @@ input[type="number"] {
13813
14132
  }
13814
14133
  }
13815
14134
  }
14135
+ .hover\:bg-blue-600 {
14136
+ &:hover {
14137
+ @media (hover: hover) {
14138
+ background-color: var(--color-blue-600);
14139
+ }
14140
+ }
14141
+ }
13816
14142
  .hover\:bg-destructive\/90 {
13817
14143
  &:hover {
13818
14144
  @media (hover: hover) {
@@ -13867,6 +14193,13 @@ input[type="number"] {
13867
14193
  }
13868
14194
  }
13869
14195
  }
14196
+ .hover\:bg-red-100 {
14197
+ &:hover {
14198
+ @media (hover: hover) {
14199
+ background-color: var(--color-red-100);
14200
+ }
14201
+ }
14202
+ }
13870
14203
  .hover\:bg-secondary\/80 {
13871
14204
  &:hover {
13872
14205
  @media (hover: hover) {
@@ -13894,6 +14227,13 @@ input[type="number"] {
13894
14227
  }
13895
14228
  }
13896
14229
  }
14230
+ .hover\:bg-white {
14231
+ &:hover {
14232
+ @media (hover: hover) {
14233
+ background-color: var(--color-white);
14234
+ }
14235
+ }
14236
+ }
13897
14237
  .hover\:pr-6 {
13898
14238
  &:hover {
13899
14239
  @media (hover: hover) {
@@ -14035,6 +14375,11 @@ input[type="number"] {
14035
14375
  background-color: var(--color-gray-50);
14036
14376
  }
14037
14377
  }
14378
+ .focus\:bg-transparent {
14379
+ &:focus {
14380
+ background-color: transparent;
14381
+ }
14382
+ }
14038
14383
  .focus\:bg-white {
14039
14384
  &:focus {
14040
14385
  background-color: var(--color-white);
@@ -16643,6 +16988,11 @@ input[type="number"] {
16643
16988
  display: none;
16644
16989
  }
16645
16990
  }
16991
+ .\[\&_\[data-slot\=progress-bar-indicator\]\]\:bg-blue-600 {
16992
+ & [data-slot=progress-bar-indicator] {
16993
+ background-color: var(--color-blue-600);
16994
+ }
16995
+ }
16646
16996
  .\[\&_\[data-slot\=progress-bar-indicator\]\]\:bg-green-900 {
16647
16997
  & [data-slot=progress-bar-indicator] {
16648
16998
  background-color: var(--color-green-900);
@@ -16671,6 +17021,21 @@ input[type="number"] {
16671
17021
  }
16672
17022
  }
16673
17023
  }
17024
+ .\[\&_\[data-type\=\"character-counter\"\]\]\:hidden {
17025
+ & [data-type="character-counter"] {
17026
+ display: none;
17027
+ }
17028
+ }
17029
+ .\[\&_\[data-type\=\"error\"\]\]\:hidden {
17030
+ & [data-type="error"] {
17031
+ display: none;
17032
+ }
17033
+ }
17034
+ .\[\&_\[data-type\=\"warning\"\]\]\:hidden {
17035
+ & [data-type="warning"] {
17036
+ display: none;
17037
+ }
17038
+ }
16674
17039
  .\[\&_button\]\:\!mr-0 {
16675
17040
  & button {
16676
17041
  margin-right: calc(var(--spacing) * 0) !important;
@@ -16792,6 +17157,11 @@ input[type="number"] {
16792
17157
  }
16793
17158
  }
16794
17159
  }
17160
+ .\[\&_div\]\:justify-center {
17161
+ & div {
17162
+ justify-content: center;
17163
+ }
17164
+ }
16795
17165
  .\[\&_label\]\:text-blue-600 {
16796
17166
  & label {
16797
17167
  color: var(--color-blue-600);
@@ -17342,19 +17712,6 @@ input[type="number"] {
17342
17712
  }
17343
17713
  }
17344
17714
  }
17345
- .\[\&\>li\]\:text-gray-500 {
17346
- &>li {
17347
- color: var(--color-gray-500);
17348
- }
17349
- }
17350
- .\[\&\>li\]\:before\:bg-gray-500 {
17351
- &>li {
17352
- &::before {
17353
- content: var(--tw-content);
17354
- background-color: var(--color-gray-500);
17355
- }
17356
- }
17357
- }
17358
17715
  .\[\&\>span\]\:w-full {
17359
17716
  &>span {
17360
17717
  width: 100%;
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.61",
4
+ "version": "0.0.63",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
7
7
  "files": [
@@ -57,9 +57,9 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@google-cloud/documentai": "^8.12.0",
60
- "@powerhousedao/builder-tools": "^4.0.4",
61
- "@powerhousedao/common": "^4.0.4",
62
- "@powerhousedao/design-system": "^4.0.4",
60
+ "@powerhousedao/builder-tools": "^4.0.5",
61
+ "@powerhousedao/common": "^4.0.5",
62
+ "@powerhousedao/design-system": "^4.0.5",
63
63
  "@powerhousedao/document-engineering": "^1.27.0",
64
64
  "@react-pdf/renderer": "^4.3.0",
65
65
  "@safe-global/api-kit": "^3.0.1",
@@ -69,7 +69,7 @@
69
69
  "@types/cors": "^2.8.17",
70
70
  "axios": "^1.9.0",
71
71
  "cors": "^2.8.5",
72
- "document-model": "^4.0.4",
72
+ "document-model": "^4.0.5",
73
73
  "dotenv": "^16.5.0",
74
74
  "error": "^10.4.0",
75
75
  "ethers": "^6.14.0",
@@ -85,19 +85,19 @@
85
85
  "@electric-sql/pglite": "^0.2.12",
86
86
  "@eslint/js": "^9.25.0",
87
87
  "@powerhousedao/analytics-engine-core": "^0.5.0",
88
- "@powerhousedao/codegen": "latest",
89
- "@powerhousedao/ph-cli": "latest",
90
- "@powerhousedao/reactor-api": "latest",
91
- "@powerhousedao/reactor-browser": "latest",
92
- "@powerhousedao/reactor-local": "latest",
93
- "@powerhousedao/scalars": "latest",
94
- "@powerhousedao/switchboard": "latest",
88
+ "@powerhousedao/codegen": "^4.0.5",
89
+ "@powerhousedao/ph-cli": "^4.0.5",
90
+ "@powerhousedao/reactor-api": "^4.0.5",
91
+ "@powerhousedao/reactor-browser": "^4.0.5",
92
+ "@powerhousedao/reactor-local": "^4.0.5",
93
+ "@powerhousedao/scalars": "^2.0.1",
94
+ "@powerhousedao/switchboard": "^4.0.5",
95
95
  "@tailwindcss/cli": "^4.1.4",
96
96
  "@testing-library/react": "^16.3.0",
97
97
  "@types/node": "^22.14.1",
98
98
  "@types/react": "^18.3.20",
99
99
  "@vitejs/plugin-react": "^4.4.1",
100
- "document-drive": "latest",
100
+ "document-drive": "^4.0.5",
101
101
  "eslint": "^9.25.0",
102
102
  "eslint-plugin-react": "^7.37.5",
103
103
  "eslint-plugin-react-hooks": "^5.2.0",