@agentpaid/paid-nextjs-client 0.3.0-test.2 → 0.3.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/README.md +184 -79
- package/dist/api/api/handleBlocks.ts +144 -0
- package/dist/api/handleBlocks.d.ts +9 -0
- package/dist/api/handleBlocks.d.ts.map +1 -0
- package/dist/api/handleBlocks.js +107 -0
- package/dist/api/handleBlocks.js.map +1 -0
- package/dist/components/PaidActivityLog.d.ts +13 -26
- package/dist/components/PaidActivityLog.d.ts.map +1 -1
- package/dist/components/PaidActivityLog.js +70 -26
- package/dist/components/PaidActivityLog.js.map +1 -1
- package/dist/components/PaidContainer.d.ts +11 -24
- package/dist/components/PaidContainer.d.ts.map +1 -1
- package/dist/components/PaidContainer.js +18 -9
- package/dist/components/PaidContainer.js.map +1 -1
- package/dist/components/PaidInvoiceTable.d.ts +12 -25
- package/dist/components/PaidInvoiceTable.d.ts.map +1 -1
- package/dist/components/PaidInvoiceTable.js +78 -30
- package/dist/components/PaidInvoiceTable.js.map +1 -1
- package/dist/components/PaidPaymentsTable.d.ts +12 -25
- package/dist/components/PaidPaymentsTable.d.ts.map +1 -1
- package/dist/components/PaidPaymentsTable.js +63 -29
- package/dist/components/PaidPaymentsTable.js.map +1 -1
- package/dist/components/components/PaidActivityLog.js +115 -58
- package/dist/components/components/PaidContainer.js +42 -32
- package/dist/components/components/PaidInvoiceTable.js +126 -89
- package/dist/components/components/PaidPaymentsTable.js +111 -72
- package/dist/components/components/ui/Pagination.js +168 -0
- package/dist/components/ui/Pagination.d.ts +10 -0
- package/dist/components/ui/Pagination.d.ts.map +1 -0
- package/dist/components/ui/Pagination.js +111 -0
- package/dist/components/ui/Pagination.js.map +1 -0
- package/dist/hooks/useCache.d.ts +2 -2
- package/dist/hooks/useCache.d.ts.map +1 -1
- package/dist/hooks/useCache.js +10 -17
- package/dist/hooks/useCache.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles/paid-activity-log.css +154 -0
- package/dist/styles/paid-container.css +25 -16
- package/dist/styles/paid-invoice-table.css +135 -120
- package/dist/styles/paid-payments-table.css +65 -109
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/apiClient.d.ts +17 -0
- package/dist/utils/apiClient.d.ts.map +1 -0
- package/dist/utils/apiClient.js +60 -0
- package/dist/utils/apiClient.js.map +1 -0
- package/dist/utils/cache.js +1 -1
- package/dist/utils/cache.js.map +1 -1
- package/package.json +1 -1
- package/dist/api/api/handlePaidInvoicePdf.ts +0 -79
- package/dist/api/api/handlePaidInvoices.ts +0 -77
- package/dist/api/api/handlePaidPayments.ts +0 -77
- package/dist/api/api/handlePaidUsage.ts +0 -52
- package/dist/api/handlePaidInvoicePdf.d.ts +0 -6
- package/dist/api/handlePaidInvoicePdf.d.ts.map +0 -1
- package/dist/api/handlePaidInvoicePdf.js +0 -60
- package/dist/api/handlePaidInvoicePdf.js.map +0 -1
- package/dist/api/handlePaidInvoices.d.ts +0 -6
- package/dist/api/handlePaidInvoices.d.ts.map +0 -1
- package/dist/api/handlePaidInvoices.js +0 -56
- package/dist/api/handlePaidInvoices.js.map +0 -1
- package/dist/api/handlePaidPayments.d.ts +0 -6
- package/dist/api/handlePaidPayments.d.ts.map +0 -1
- package/dist/api/handlePaidPayments.js +0 -56
- package/dist/api/handlePaidPayments.js.map +0 -1
- package/dist/api/handlePaidUsage.d.ts +0 -6
- package/dist/api/handlePaidUsage.d.ts.map +0 -1
- package/dist/api/handlePaidUsage.js +0 -35
- package/dist/api/handlePaidUsage.js.map +0 -1
- package/dist/styles/activity-log-table.css +0 -138
@@ -1,138 +0,0 @@
|
|
1
|
-
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
|
2
|
-
|
3
|
-
/* Container styles */
|
4
|
-
.paid-activity-log-container {
|
5
|
-
position: relative;
|
6
|
-
min-width: 0;
|
7
|
-
font-family: var(--paid-font-family, 'Roboto');
|
8
|
-
width: 100%;
|
9
|
-
box-sizing: border-box;
|
10
|
-
}
|
11
|
-
|
12
|
-
.paid-activity-log-table-wrapper {
|
13
|
-
position: relative;
|
14
|
-
background: var(--paid-wrapper-bg, #fff);
|
15
|
-
border: var(--paid-wrapper-border, 1px solid #e5e7eb);
|
16
|
-
border-radius: 12px;
|
17
|
-
box-shadow: 0 2px 16px 0 rgba(16, 24, 40, 0.08);
|
18
|
-
overflow-x: auto;
|
19
|
-
transition: box-shadow 0.2s;
|
20
|
-
font-family: var(--paid-font-family, 'Roboto');
|
21
|
-
width: 100%;
|
22
|
-
min-width: 0;
|
23
|
-
}
|
24
|
-
.paid-activity-log-table-wrapper:active {
|
25
|
-
box-shadow: 0 4px 24px 0 rgba(16, 24, 40, 0.16);
|
26
|
-
}
|
27
|
-
|
28
|
-
/* Header styles */
|
29
|
-
.paid-activity-log-header {
|
30
|
-
display: flex;
|
31
|
-
justify-content: space-between;
|
32
|
-
align-items: center;
|
33
|
-
padding: 18px 24px;
|
34
|
-
background: var(--paid-header-bg, #fff);
|
35
|
-
border-bottom: var(--paid-header-border-bottom, 1px solid #e5e7eb);
|
36
|
-
border-radius: 12px 12px 0 0;
|
37
|
-
font-family: var(--paid-font-family, 'Roboto');
|
38
|
-
}
|
39
|
-
.paid-activity-log-title {
|
40
|
-
font-size: var(--paid-title-font-size, 1.1rem);
|
41
|
-
font-weight: var(--paid-title-font-weight, 600);
|
42
|
-
color: var(--paid-title-color, #1d2939);
|
43
|
-
font-family: var(--paid-font-family, 'Roboto');
|
44
|
-
}
|
45
|
-
.paid-activity-log-toggle-btn {
|
46
|
-
font-size: var(--paid-toggle-font-size, 0.95rem);
|
47
|
-
font-weight: var(--paid-toggle-font-weight, 500);
|
48
|
-
color: var(--paid-toggle-color, #2563eb);
|
49
|
-
background: none;
|
50
|
-
border: none;
|
51
|
-
cursor: pointer;
|
52
|
-
text-decoration: none;
|
53
|
-
padding: 0;
|
54
|
-
font-family: var(--paid-font-family, 'Roboto');
|
55
|
-
}
|
56
|
-
|
57
|
-
/* Table styles */
|
58
|
-
.paid-activity-log-table {
|
59
|
-
width: 100%;
|
60
|
-
min-width: 0;
|
61
|
-
table-layout: auto;
|
62
|
-
word-break: break-word;
|
63
|
-
border-collapse: separate;
|
64
|
-
border-spacing: 0;
|
65
|
-
background: var(--paid-table-bg, #fff);
|
66
|
-
font-family: var(--paid-font-family, 'Roboto');
|
67
|
-
}
|
68
|
-
.paid-activity-log-table th,
|
69
|
-
.paid-activity-log-table td {
|
70
|
-
padding: 8px 8px;
|
71
|
-
font-size: 0.95rem;
|
72
|
-
white-space: normal;
|
73
|
-
word-break: break-word;
|
74
|
-
}
|
75
|
-
.paid-activity-log-table th {
|
76
|
-
font-size: var(--paid-th-font-size, 1rem);
|
77
|
-
font-weight: var(--paid-th-font-weight, 500);
|
78
|
-
color: var(--paid-th-color, #667085);
|
79
|
-
text-align: left;
|
80
|
-
padding: 18px 24px;
|
81
|
-
background: var(--paid-th-bg, #f9fafb);
|
82
|
-
border-bottom: var(--paid-th-border-bottom, 1px solid #e5e7eb);
|
83
|
-
}
|
84
|
-
.paid-activity-log-table td {
|
85
|
-
font-size: var(--paid-td-font-size, 0.97rem);
|
86
|
-
font-weight: var(--paid-td-font-weight, normal);
|
87
|
-
color: var(--paid-td-color, #1d2939);
|
88
|
-
background: var(--paid-td-bg, transparent);
|
89
|
-
padding: 16px 24px;
|
90
|
-
border-bottom: var(--paid-td-border-bottom, 1px solid #f1f1f1);
|
91
|
-
}
|
92
|
-
.paid-activity-log-table tr:last-child td {
|
93
|
-
border-bottom: none;
|
94
|
-
}
|
95
|
-
.paid-activity-log-table tr:hover td {
|
96
|
-
background: var(--paid-row-hover-bg, #f3f4f6);
|
97
|
-
}
|
98
|
-
.paid-activity-log-table th,
|
99
|
-
.paid-activity-log-table td {
|
100
|
-
white-space: nowrap;
|
101
|
-
}
|
102
|
-
|
103
|
-
/* Empty state */
|
104
|
-
.paid-activity-log-empty {
|
105
|
-
text-align: center;
|
106
|
-
color: var(--paid-empty-color, #98a2b3);
|
107
|
-
padding: 40px 0;
|
108
|
-
font-size: 1rem;
|
109
|
-
}
|
110
|
-
|
111
|
-
/* Resize handles */
|
112
|
-
.paid-activity-log-resize-handle {
|
113
|
-
position: absolute;
|
114
|
-
width: 16px;
|
115
|
-
height: 16px;
|
116
|
-
z-index: 2;
|
117
|
-
}
|
118
|
-
.paid-activity-log-resize-handle-nw { top: 0; left: 0; cursor: nwse-resize; }
|
119
|
-
.paid-activity-log-resize-handle-ne { top: 0; right: 0; cursor: nesw-resize; }
|
120
|
-
.paid-activity-log-resize-handle-sw { bottom: 0; left: 0; cursor: nesw-resize; }
|
121
|
-
.paid-activity-log-resize-handle-se { bottom: 0; right: 0; cursor: nwse-resize; }
|
122
|
-
.paid-activity-log-resize-handle-n { top: 0; left: 16px; right: 16px; height: 8px; cursor: ns-resize; }
|
123
|
-
.paid-activity-log-resize-handle-s { bottom: 0; left: 16px; right: 16px; height: 8px; cursor: ns-resize; }
|
124
|
-
.paid-activity-log-resize-handle-w { left: 0; top: 16px; bottom: 16px; width: 8px; cursor: ew-resize; }
|
125
|
-
.paid-activity-log-resize-handle-e { right: 0; top: 16px; bottom: 16px; width: 8px; cursor: ew-resize; }
|
126
|
-
|
127
|
-
.paid-activity-log-resize-dot {
|
128
|
-
position: absolute;
|
129
|
-
width: 8px;
|
130
|
-
height: 8px;
|
131
|
-
background: #e5e7eb;
|
132
|
-
border-radius: 2px;
|
133
|
-
border: 2px solid #cbd5e1;
|
134
|
-
}
|
135
|
-
.paid-activity-log-resize-dot-nw { top: 2px; left: 2px; }
|
136
|
-
.paid-activity-log-resize-dot-ne { top: 2px; right: 2px; }
|
137
|
-
.paid-activity-log-resize-dot-sw { bottom: 2px; left: 2px; }
|
138
|
-
.paid-activity-log-resize-dot-se { bottom: 2px; right: 2px; }
|