@layerfi/components 0.1.74 → 0.1.76
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 +5 -17
- package/dist/esm/index.js +12427 -12315
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +155 -58
- package/dist/index.js +12392 -12280
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +126 -175
- package/dist/styles/index.css.map +3 -3
- package/package.json +1 -1
- package/.idea/codeStyles/Project.xml +0 -61
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- 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
|
@@ -160,7 +160,7 @@ import { ProfitAndLoss } from "@layerfi/components";
|
|
|
160
160
|
</ProfitAndLoss>
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
-
#### Profit and Loss
|
|
163
|
+
#### Profit and Loss Summaries
|
|
164
164
|
|
|
165
165
|

|
|
166
166
|
|
|
@@ -168,26 +168,14 @@ import { ProfitAndLoss } from "@layerfi/components";
|
|
|
168
168
|
import { ProfitAndLoss } from "@layerfi/components";
|
|
169
169
|
…
|
|
170
170
|
<ProfitAndLoss>
|
|
171
|
-
<
|
|
172
|
-
<ProfitAndLoss.Summaries actionable={false} />
|
|
173
|
-
<TransactionToReviewCard onClick={onTransactionsToReviewClick} />
|
|
174
|
-
</div>
|
|
171
|
+
<ProfitAndLoss.Summaries />
|
|
175
172
|
</ProfitAndLoss>
|
|
176
173
|
```
|
|
177
174
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
- `actionable`: enables or disables whether clicking the revenue & expense charts open the P&L sidebar view.
|
|
181
|
-
- `vertical`: changes the card layout to be vertically stacked instead of horizontal
|
|
182
|
-
- `revenueLabel`: specifiable label for revenue for uses where you prefer 'income' or other another term.
|
|
175
|
+
The P&L Summaries section supports several optional props:
|
|
183
176
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
```tsx
|
|
187
|
-
<Onboarding
|
|
188
|
-
onTransactionsToReviewClick={() => navigate('/accounting/bank-transactions')}
|
|
189
|
-
/>
|
|
190
|
-
```
|
|
177
|
+
- `actionable`: When enabled, clicking the revenue & expense charts will open the P&L sidebar view.
|
|
178
|
+
- `variants`: Override the size of the component; supports a small and large version.
|
|
191
179
|
|
|
192
180
|
#### Profit and Loss Table
|
|
193
181
|
|