@layerfi/components 0.1.26 → 0.1.28
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 +18 -0
- package/dist/esm/index.js +2836 -2618
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +162 -41
- package/dist/index.js +10131 -9912
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +138 -6
- package/dist/styles/index.css.map +2 -2
- package/package.json +1 -1
- package/.idea/layer-react.iml +0 -9
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/README.md
CHANGED
|
@@ -107,6 +107,24 @@ The transaction categorization component handles displaying both categorized tra
|
|
|
107
107
|
<BankTransactions asWidget />
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
+
Optional properties and `useBankTransactionsContext` give more control over the transactions list:
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
/** Using props */
|
|
114
|
+
<BankTransactions
|
|
115
|
+
filters={{
|
|
116
|
+
amount: { min: 0, max: 100 },
|
|
117
|
+
}}
|
|
118
|
+
/>
|
|
119
|
+
|
|
120
|
+
/** Using hook */
|
|
121
|
+
const { setFilters } = useBankTransactionsContext()
|
|
122
|
+
|
|
123
|
+
setFilters({ amount: { min: 0, max: 10000 } })
|
|
124
|
+
|
|
125
|
+
<BankTransactions />
|
|
126
|
+
```
|
|
127
|
+
|
|
110
128
|
### Reports
|
|
111
129
|
|
|
112
130
|
The reports component contains multiple accounting reports and tables, including the profit and loss table.
|