@liiift-studio/sales-portal 3.1.6 → 3.1.8
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/components/LoginForm.js +2 -2
- package/components/Sales.js +2 -3
- package/package.json +13 -3
package/components/LoginForm.js
CHANGED
|
@@ -33,8 +33,8 @@ export default function LoginForm({
|
|
|
33
33
|
|
|
34
34
|
const {
|
|
35
35
|
title = 'Sales Portal',
|
|
36
|
-
description = '
|
|
37
|
-
subtitle = '
|
|
36
|
+
description = 'Track your typeface sales, monitor revenue trends, and gain insights into how your work is performing across the foundry.',
|
|
37
|
+
subtitle = 'Sales data is reviewed internally before payouts are issued. If something looks off, reach out to us.',
|
|
38
38
|
buttonLabel = 'Login',
|
|
39
39
|
errorMessage = 'Incorrect username/password or the user is not a designer.',
|
|
40
40
|
emptyFieldsMessage = 'Please enter a username and password.',
|
package/components/Sales.js
CHANGED
|
@@ -695,13 +695,12 @@ export default function Sales(props) {
|
|
|
695
695
|
<Box sx={{ display: { xs: 'none', md: 'flex' } }}>
|
|
696
696
|
<IconButton
|
|
697
697
|
className='print-button'
|
|
698
|
-
onClick={() => {
|
|
698
|
+
onClick={(e) => {
|
|
699
699
|
// Add print-specific styles to the document
|
|
700
700
|
const style = document.createElement('style');
|
|
701
701
|
style.id = 'print-style';
|
|
702
702
|
// Find the current salesPortal containing the clicked print button
|
|
703
|
-
const
|
|
704
|
-
const currentPortal = printButton.closest('.salesPortal');
|
|
703
|
+
const currentPortal = e.currentTarget.closest('.salesPortal');
|
|
705
704
|
const allPortals = Array.from(document.querySelectorAll('.salesPortal'));
|
|
706
705
|
const portalIndex = allPortals.indexOf(currentPortal) + 1;
|
|
707
706
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liiift-studio/sales-portal",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.1.8",
|
|
4
|
+
"description": "Sales dashboard and analytics components for Next.js type foundry sites — Stripe integration, MUI DataGrid, charts, CSV export, and multi-designer reporting.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -58,7 +58,17 @@
|
|
|
58
58
|
"sales",
|
|
59
59
|
"portal",
|
|
60
60
|
"dashboard",
|
|
61
|
-
"
|
|
61
|
+
"analytics",
|
|
62
|
+
"stripe",
|
|
63
|
+
"next",
|
|
64
|
+
"nextjs",
|
|
65
|
+
"mui",
|
|
66
|
+
"datagrid",
|
|
67
|
+
"charts",
|
|
68
|
+
"e-commerce",
|
|
69
|
+
"type-foundry",
|
|
70
|
+
"reporting",
|
|
71
|
+
"csv-export"
|
|
62
72
|
],
|
|
63
73
|
"author": "Liiift Studio",
|
|
64
74
|
"license": "UNLICENSED",
|