@burdenoff/microfe-adaptercloud 2026.614.1 → 2026.625.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/dist/adaptercloud/components/EmptyState.js +17 -21
- package/dist/adaptercloud/components/EmptyState.js.map +1 -1
- package/dist/adaptercloud/components/InvestmentCard.js +30 -28
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -1
- package/dist/adaptercloud/components/MetricsCard.js +21 -15
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -1
- package/dist/adaptercloud/components/PageLayout.js +38 -19
- package/dist/adaptercloud/components/PageLayout.js.map +1 -1
- package/dist/adaptercloud/components/RatingDisplay.js +3 -3
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -1
- package/dist/adaptercloud/components/StatusBadge.js +36 -16
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
- package/dist/adaptercloud/pages/HomePage.js +286 -275
- package/dist/adaptercloud/pages/HomePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +87 -87
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +101 -101
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +48 -48
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +95 -95
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +34 -34
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +40 -40
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +107 -107
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +98 -98
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +117 -117
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +33 -33
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +112 -109
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +115 -115
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +85 -85
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +106 -106
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +88 -88
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +94 -94
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +142 -142
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +67 -66
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/SettingsPage.js +115 -115
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +74 -73
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +87 -86
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +66 -65
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +80 -80
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +88 -88
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +84 -84
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +92 -91
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +34 -33
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +44 -43
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +61 -60
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +58 -57
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +48 -47
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +46 -45
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +128 -128
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +88 -87
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +88 -88
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +62 -62
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +39 -38
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +66 -66
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +153 -153
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +81 -80
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +106 -106
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +73 -72
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +107 -107
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +71 -69
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/dist/adaptercloud/utils/cn.js +2 -2
- package/dist/node_modules/{.bun/clsx@2.1.1/node_modules/clsx → clsx}/dist/clsx.js +1 -1
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/{.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge → tailwind-merge}/dist/bundle-mjs.js +212 -170
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/package.json +3 -3
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -224,9 +224,9 @@ var b = [
|
|
|
224
224
|
};
|
|
225
225
|
function S(e) {
|
|
226
226
|
switch (e) {
|
|
227
|
-
case "low": return "bg-
|
|
228
|
-
case "medium": return "bg-
|
|
229
|
-
case "high": return "bg-
|
|
227
|
+
case "low": return "bg-status-success-bg-subtle/20 text-status-success-text";
|
|
228
|
+
case "medium": return "bg-status-warning-bg-subtle/20 text-status-warning-text";
|
|
229
|
+
case "high": return "bg-status-error-bg-subtle/20 text-status-error-text";
|
|
230
230
|
default: return "bg-secondary text-secondary-foreground";
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -316,7 +316,7 @@ function T() {
|
|
|
316
316
|
children: /* @__PURE__ */ y("div", {
|
|
317
317
|
className: "text-center",
|
|
318
318
|
children: [/* @__PURE__ */ v("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-primary" }), /* @__PURE__ */ v("p", {
|
|
319
|
-
className: "text-sm text-
|
|
319
|
+
className: "text-sm text-text-secondary",
|
|
320
320
|
children: "Loading opportunities..."
|
|
321
321
|
})]
|
|
322
322
|
})
|
|
@@ -325,7 +325,7 @@ function T() {
|
|
|
325
325
|
title: "Investment Opportunities",
|
|
326
326
|
description: "Discover and invest in growing local businesses",
|
|
327
327
|
actions: /* @__PURE__ */ y("span", {
|
|
328
|
-
className: "text-sm text-
|
|
328
|
+
className: "text-sm text-text-secondary",
|
|
329
329
|
children: [z.length, " opportunities"]
|
|
330
330
|
}),
|
|
331
331
|
children: [
|
|
@@ -333,32 +333,32 @@ function T() {
|
|
|
333
333
|
className: "grid grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4",
|
|
334
334
|
children: [
|
|
335
335
|
/* @__PURE__ */ y("div", {
|
|
336
|
-
className: "rounded-lg border border-border bg-
|
|
336
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 sm:p-4",
|
|
337
337
|
children: [/* @__PURE__ */ v("p", {
|
|
338
|
-
className: "text-xs text-
|
|
338
|
+
className: "text-xs text-text-secondary",
|
|
339
339
|
children: "Active Opportunities"
|
|
340
340
|
}), /* @__PURE__ */ v("p", {
|
|
341
|
-
className: "text-lg font-bold text-
|
|
341
|
+
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
342
342
|
children: x.totalOpportunities
|
|
343
343
|
})]
|
|
344
344
|
}),
|
|
345
345
|
/* @__PURE__ */ y("div", {
|
|
346
|
-
className: "rounded-lg border border-border bg-
|
|
346
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 sm:p-4",
|
|
347
347
|
children: [/* @__PURE__ */ v("p", {
|
|
348
|
-
className: "text-xs text-
|
|
348
|
+
className: "text-xs text-text-secondary",
|
|
349
349
|
children: "Average Returns"
|
|
350
350
|
}), /* @__PURE__ */ y("p", {
|
|
351
|
-
className: "text-lg font-bold text-
|
|
351
|
+
className: "text-lg font-bold text-status-success-text sm:text-2xl",
|
|
352
352
|
children: [x.averageReturns, "%"]
|
|
353
353
|
})]
|
|
354
354
|
}),
|
|
355
355
|
/* @__PURE__ */ y("div", {
|
|
356
|
-
className: "rounded-lg border border-border bg-
|
|
356
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 sm:p-4",
|
|
357
357
|
children: [/* @__PURE__ */ v("p", {
|
|
358
|
-
className: "text-xs text-
|
|
358
|
+
className: "text-xs text-text-secondary",
|
|
359
359
|
children: "Total Funded"
|
|
360
360
|
}), /* @__PURE__ */ v("p", {
|
|
361
|
-
className: "text-lg font-bold text-
|
|
361
|
+
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
362
362
|
children: i(x.totalFunded, {
|
|
363
363
|
minimumFractionDigits: 0,
|
|
364
364
|
notation: "compact"
|
|
@@ -366,36 +366,36 @@ function T() {
|
|
|
366
366
|
})]
|
|
367
367
|
}),
|
|
368
368
|
/* @__PURE__ */ y("div", {
|
|
369
|
-
className: "rounded-lg border border-border bg-
|
|
369
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-3 sm:p-4",
|
|
370
370
|
children: [/* @__PURE__ */ v("p", {
|
|
371
|
-
className: "text-xs text-
|
|
371
|
+
className: "text-xs text-text-secondary",
|
|
372
372
|
children: "Success Rate"
|
|
373
373
|
}), /* @__PURE__ */ y("p", {
|
|
374
|
-
className: "text-lg font-bold text-
|
|
374
|
+
className: "text-lg font-bold text-text-primary sm:text-2xl",
|
|
375
375
|
children: [x.successRate, "%"]
|
|
376
376
|
})]
|
|
377
377
|
})
|
|
378
378
|
]
|
|
379
379
|
}),
|
|
380
380
|
/* @__PURE__ */ v("div", {
|
|
381
|
-
className: "mt-6 rounded-lg border border-border bg-
|
|
381
|
+
className: "mt-6 rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
382
382
|
children: /* @__PURE__ */ y("div", {
|
|
383
383
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6",
|
|
384
384
|
children: [
|
|
385
385
|
/* @__PURE__ */ y("div", {
|
|
386
386
|
className: "relative sm:col-span-2 lg:col-span-1",
|
|
387
|
-
children: [/* @__PURE__ */ v(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
387
|
+
children: [/* @__PURE__ */ v(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ v("input", {
|
|
388
388
|
type: "text",
|
|
389
389
|
placeholder: "Search opportunities...",
|
|
390
390
|
value: I.searchQuery,
|
|
391
391
|
onChange: (e) => R("searchQuery", e.target.value),
|
|
392
|
-
className: "w-full rounded-lg border border-border bg-
|
|
392
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-4 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
393
393
|
})]
|
|
394
394
|
}),
|
|
395
395
|
/* @__PURE__ */ y("select", {
|
|
396
396
|
value: I.category,
|
|
397
397
|
onChange: (e) => R("category", e.target.value),
|
|
398
|
-
className: "rounded-lg border border-border bg-
|
|
398
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
399
399
|
children: [
|
|
400
400
|
/* @__PURE__ */ v("option", {
|
|
401
401
|
value: "",
|
|
@@ -426,7 +426,7 @@ function T() {
|
|
|
426
426
|
/* @__PURE__ */ y("select", {
|
|
427
427
|
value: I.riskLevel,
|
|
428
428
|
onChange: (e) => R("riskLevel", e.target.value),
|
|
429
|
-
className: "rounded-lg border border-border bg-
|
|
429
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
430
430
|
children: [
|
|
431
431
|
/* @__PURE__ */ v("option", {
|
|
432
432
|
value: "",
|
|
@@ -449,7 +449,7 @@ function T() {
|
|
|
449
449
|
/* @__PURE__ */ y("select", {
|
|
450
450
|
value: I.minimumAmount,
|
|
451
451
|
onChange: (e) => R("minimumAmount", e.target.value),
|
|
452
|
-
className: "rounded-lg border border-border bg-
|
|
452
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
453
453
|
children: [
|
|
454
454
|
/* @__PURE__ */ v("option", {
|
|
455
455
|
value: "",
|
|
@@ -476,7 +476,7 @@ function T() {
|
|
|
476
476
|
/* @__PURE__ */ y("select", {
|
|
477
477
|
value: I.location,
|
|
478
478
|
onChange: (e) => R("location", e.target.value),
|
|
479
|
-
className: "rounded-lg border border-border bg-
|
|
479
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
480
480
|
children: [
|
|
481
481
|
/* @__PURE__ */ v("option", {
|
|
482
482
|
value: "",
|
|
@@ -503,7 +503,7 @@ function T() {
|
|
|
503
503
|
/* @__PURE__ */ y("select", {
|
|
504
504
|
value: I.sortBy,
|
|
505
505
|
onChange: (e) => R("sortBy", e.target.value),
|
|
506
|
-
className: "rounded-lg border border-border bg-
|
|
506
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
507
507
|
children: [
|
|
508
508
|
/* @__PURE__ */ v("option", {
|
|
509
509
|
value: "featured",
|
|
@@ -533,6 +533,7 @@ function T() {
|
|
|
533
533
|
z.length === 0 ? /* @__PURE__ */ v("div", {
|
|
534
534
|
className: "mt-6",
|
|
535
535
|
children: /* @__PURE__ */ v(r, {
|
|
536
|
+
illustration: "empty-search",
|
|
536
537
|
icon: /* @__PURE__ */ v(h, { className: "h-10 w-10" }),
|
|
537
538
|
title: "No opportunities found",
|
|
538
539
|
description: "Try adjusting your filters to find more opportunities",
|
|
@@ -546,7 +547,7 @@ function T() {
|
|
|
546
547
|
location: "",
|
|
547
548
|
sortBy: "featured"
|
|
548
549
|
}),
|
|
549
|
-
className: "rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-
|
|
550
|
+
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 transition-colors",
|
|
550
551
|
children: "Clear Filters"
|
|
551
552
|
})
|
|
552
553
|
})
|
|
@@ -555,12 +556,12 @@ function T() {
|
|
|
555
556
|
children: z.map((e) => {
|
|
556
557
|
let n = w(e.raisedAmount, e.targetAmount);
|
|
557
558
|
return /* @__PURE__ */ y("div", {
|
|
558
|
-
className: "rounded-lg border border-border bg-
|
|
559
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm hover:shadow-md transition-shadow",
|
|
559
560
|
children: [/* @__PURE__ */ y("div", {
|
|
560
561
|
className: "relative",
|
|
561
562
|
children: [
|
|
562
563
|
/* @__PURE__ */ v("div", {
|
|
563
|
-
className: "h-40 w-full overflow-hidden rounded-t-lg bg-
|
|
564
|
+
className: "h-40 w-full overflow-hidden rounded-t-lg bg-bg-sunken sm:h-48",
|
|
564
565
|
children: /* @__PURE__ */ v("img", {
|
|
565
566
|
src: e.image,
|
|
566
567
|
alt: e.cartName,
|
|
@@ -569,11 +570,11 @@ function T() {
|
|
|
569
570
|
})
|
|
570
571
|
}),
|
|
571
572
|
e.status === "funded" && /* @__PURE__ */ v("div", {
|
|
572
|
-
className: "absolute right-2 top-2 rounded-full bg-
|
|
573
|
+
className: "absolute right-2 top-2 rounded-full bg-status-success-bg-subtle px-2 py-1 text-xs font-medium text-white sm:right-4 sm:top-4 sm:px-3",
|
|
573
574
|
children: "Fully Funded"
|
|
574
575
|
}),
|
|
575
576
|
e.daysLeft > 0 && e.daysLeft <= 7 && /* @__PURE__ */ y("div", {
|
|
576
|
-
className: "absolute left-2 top-2 rounded-full bg-
|
|
577
|
+
className: "absolute left-2 top-2 rounded-full bg-status-error-bg-subtle px-2 py-1 text-xs font-medium text-white sm:left-4 sm:top-4 sm:px-3",
|
|
577
578
|
children: [e.daysLeft, " days left"]
|
|
578
579
|
})
|
|
579
580
|
]
|
|
@@ -586,17 +587,17 @@ function T() {
|
|
|
586
587
|
className: "flex-1",
|
|
587
588
|
children: [
|
|
588
589
|
/* @__PURE__ */ v("h3", {
|
|
589
|
-
className: "text-base font-semibold text-
|
|
590
|
+
className: "text-base font-semibold text-text-primary sm:text-xl",
|
|
590
591
|
children: e.cartName
|
|
591
592
|
}),
|
|
592
593
|
/* @__PURE__ */ y("p", {
|
|
593
|
-
className: "text-xs text-
|
|
594
|
+
className: "text-xs text-text-secondary sm:text-sm",
|
|
594
595
|
children: ["by ", e.cartOwner]
|
|
595
596
|
}),
|
|
596
597
|
/* @__PURE__ */ y("div", {
|
|
597
598
|
className: "mt-2 flex flex-wrap items-center gap-2",
|
|
598
599
|
children: [/* @__PURE__ */ v("span", {
|
|
599
|
-
className: "text-xs text-
|
|
600
|
+
className: "text-xs text-text-secondary sm:text-sm",
|
|
600
601
|
children: e.category
|
|
601
602
|
}), /* @__PURE__ */ v("span", {
|
|
602
603
|
className: t("rounded-full px-2 py-0.5 text-xs font-medium", S(e.riskLevel)),
|
|
@@ -607,16 +608,16 @@ function T() {
|
|
|
607
608
|
}), /* @__PURE__ */ y("div", {
|
|
608
609
|
className: "text-left sm:text-right",
|
|
609
610
|
children: [/* @__PURE__ */ y("p", {
|
|
610
|
-
className: "text-xl font-bold text-
|
|
611
|
+
className: "text-xl font-bold text-status-success-text sm:text-2xl",
|
|
611
612
|
children: [e.expectedReturns, "%"]
|
|
612
613
|
}), /* @__PURE__ */ v("p", {
|
|
613
|
-
className: "text-xs text-
|
|
614
|
+
className: "text-xs text-text-secondary",
|
|
614
615
|
children: "Expected Returns"
|
|
615
616
|
})]
|
|
616
617
|
})]
|
|
617
618
|
}),
|
|
618
619
|
/* @__PURE__ */ v("p", {
|
|
619
|
-
className: "mb-4 text-sm leading-relaxed text-
|
|
620
|
+
className: "mb-4 text-sm leading-relaxed text-text-secondary line-clamp-2",
|
|
620
621
|
children: e.description
|
|
621
622
|
}),
|
|
622
623
|
/* @__PURE__ */ y("div", {
|
|
@@ -625,26 +626,26 @@ function T() {
|
|
|
625
626
|
/* @__PURE__ */ y("div", {
|
|
626
627
|
className: "mb-1 flex justify-between text-xs sm:text-sm",
|
|
627
628
|
children: [/* @__PURE__ */ y("span", {
|
|
628
|
-
className: "font-medium text-
|
|
629
|
+
className: "font-medium text-text-primary",
|
|
629
630
|
children: [
|
|
630
631
|
i(e.raisedAmount, { minimumFractionDigits: 0 }),
|
|
631
632
|
" ",
|
|
632
633
|
"raised"
|
|
633
634
|
]
|
|
634
635
|
}), /* @__PURE__ */ y("span", {
|
|
635
|
-
className: "text-
|
|
636
|
+
className: "text-text-secondary",
|
|
636
637
|
children: ["of ", i(e.targetAmount, { minimumFractionDigits: 0 })]
|
|
637
638
|
})]
|
|
638
639
|
}),
|
|
639
640
|
/* @__PURE__ */ v("div", {
|
|
640
|
-
className: "h-2 w-full overflow-hidden rounded-full bg-
|
|
641
|
+
className: "h-2 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
641
642
|
children: /* @__PURE__ */ v("div", {
|
|
642
|
-
className: "h-full rounded-full bg-primary transition-all duration-300",
|
|
643
|
+
className: "h-full rounded-full bg-action-primary-bg transition-all duration-300",
|
|
643
644
|
style: { width: `${n}%` }
|
|
644
645
|
})
|
|
645
646
|
}),
|
|
646
647
|
/* @__PURE__ */ y("div", {
|
|
647
|
-
className: "mt-1 flex justify-between text-xs text-
|
|
648
|
+
className: "mt-1 flex justify-between text-xs text-text-secondary",
|
|
648
649
|
children: [/* @__PURE__ */ y("span", { children: [e.investorCount, " investors"] }), /* @__PURE__ */ y("span", { children: [n.toFixed(0), "% funded"] })]
|
|
649
650
|
})
|
|
650
651
|
]
|
|
@@ -653,35 +654,35 @@ function T() {
|
|
|
653
654
|
className: "mb-4 grid grid-cols-3 gap-2 text-center sm:gap-4",
|
|
654
655
|
children: [
|
|
655
656
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
656
|
-
className: "text-sm font-bold text-
|
|
657
|
+
className: "text-sm font-bold text-text-primary sm:text-lg",
|
|
657
658
|
children: i(e.minimumInvestment, { minimumFractionDigits: 0 })
|
|
658
659
|
}), /* @__PURE__ */ v("p", {
|
|
659
|
-
className: "text-xs text-
|
|
660
|
+
className: "text-xs text-text-secondary",
|
|
660
661
|
children: "Min Investment"
|
|
661
662
|
})] }),
|
|
662
663
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("p", {
|
|
663
|
-
className: "text-sm font-bold text-
|
|
664
|
+
className: "text-sm font-bold text-text-primary sm:text-lg",
|
|
664
665
|
children: [e.paybackPeriod, " mo"]
|
|
665
666
|
}), /* @__PURE__ */ v("p", {
|
|
666
|
-
className: "text-xs text-
|
|
667
|
+
className: "text-xs text-text-secondary",
|
|
667
668
|
children: "Payback Period"
|
|
668
669
|
})] }),
|
|
669
670
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
|
|
670
671
|
className: "flex items-center justify-center gap-1",
|
|
671
|
-
children: [/* @__PURE__ */ v(g, { className: "h-3.5 w-3.5 fill-
|
|
672
|
-
className: "text-sm font-bold text-
|
|
672
|
+
children: [/* @__PURE__ */ v(g, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ v("p", {
|
|
673
|
+
className: "text-sm font-bold text-text-primary sm:text-lg",
|
|
673
674
|
children: e.businessMetrics.rating
|
|
674
675
|
})]
|
|
675
676
|
}), /* @__PURE__ */ v("p", {
|
|
676
|
-
className: "text-xs text-
|
|
677
|
+
className: "text-xs text-text-secondary",
|
|
677
678
|
children: "Rating"
|
|
678
679
|
})] })
|
|
679
680
|
]
|
|
680
681
|
}),
|
|
681
682
|
/* @__PURE__ */ y("div", {
|
|
682
|
-
className: "mb-4 border-t border-border pt-3 sm:pt-4",
|
|
683
|
+
className: "mb-4 border-t border-border-subtle pt-3 sm:pt-4",
|
|
683
684
|
children: [/* @__PURE__ */ v("p", {
|
|
684
|
-
className: "mb-2 text-xs font-medium text-
|
|
685
|
+
className: "mb-2 text-xs font-medium text-text-secondary sm:text-sm",
|
|
685
686
|
children: "Business Performance"
|
|
686
687
|
}), /* @__PURE__ */ y("div", {
|
|
687
688
|
className: "grid grid-cols-1 gap-2 text-xs sm:grid-cols-2 sm:text-sm",
|
|
@@ -689,40 +690,40 @@ function T() {
|
|
|
689
690
|
/* @__PURE__ */ y("div", {
|
|
690
691
|
className: "flex justify-between",
|
|
691
692
|
children: [/* @__PURE__ */ v("span", {
|
|
692
|
-
className: "text-
|
|
693
|
+
className: "text-text-secondary",
|
|
693
694
|
children: "Monthly Revenue:"
|
|
694
695
|
}), /* @__PURE__ */ v("span", {
|
|
695
|
-
className: "font-medium text-
|
|
696
|
+
className: "font-medium text-text-primary",
|
|
696
697
|
children: i(e.businessMetrics.monthlyRevenue, { minimumFractionDigits: 0 })
|
|
697
698
|
})]
|
|
698
699
|
}),
|
|
699
700
|
/* @__PURE__ */ y("div", {
|
|
700
701
|
className: "flex justify-between",
|
|
701
702
|
children: [/* @__PURE__ */ v("span", {
|
|
702
|
-
className: "text-
|
|
703
|
+
className: "text-text-secondary",
|
|
703
704
|
children: "Gross Margin:"
|
|
704
705
|
}), /* @__PURE__ */ y("span", {
|
|
705
|
-
className: "font-medium text-
|
|
706
|
+
className: "font-medium text-text-primary",
|
|
706
707
|
children: [e.financials.grossMargin, "%"]
|
|
707
708
|
})]
|
|
708
709
|
}),
|
|
709
710
|
/* @__PURE__ */ y("div", {
|
|
710
711
|
className: "flex justify-between",
|
|
711
712
|
children: [/* @__PURE__ */ v("span", {
|
|
712
|
-
className: "text-
|
|
713
|
+
className: "text-text-secondary",
|
|
713
714
|
children: "Monthly Orders:"
|
|
714
715
|
}), /* @__PURE__ */ v("span", {
|
|
715
|
-
className: "font-medium text-
|
|
716
|
+
className: "font-medium text-text-primary",
|
|
716
717
|
children: a(e.businessMetrics.monthlyOrders)
|
|
717
718
|
})]
|
|
718
719
|
}),
|
|
719
720
|
/* @__PURE__ */ y("div", {
|
|
720
721
|
className: "flex justify-between",
|
|
721
722
|
children: [/* @__PURE__ */ v("span", {
|
|
722
|
-
className: "text-
|
|
723
|
+
className: "text-text-secondary",
|
|
723
724
|
children: "Net Margin:"
|
|
724
725
|
}), /* @__PURE__ */ y("span", {
|
|
725
|
-
className: "font-medium text-
|
|
726
|
+
className: "font-medium text-text-primary",
|
|
726
727
|
children: [e.financials.netMargin, "%"]
|
|
727
728
|
})]
|
|
728
729
|
})
|
|
@@ -730,14 +731,14 @@ function T() {
|
|
|
730
731
|
})]
|
|
731
732
|
}),
|
|
732
733
|
/* @__PURE__ */ v("div", {
|
|
733
|
-
className: "mb-4 border-t border-border pt-3",
|
|
734
|
+
className: "mb-4 border-t border-border-subtle pt-3",
|
|
734
735
|
children: /* @__PURE__ */ y("div", {
|
|
735
|
-
className: "flex items-center gap-1.5 text-xs text-
|
|
736
|
+
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
736
737
|
children: [/* @__PURE__ */ v(f, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ y("span", { children: [e.documents.length, " documents available"] })]
|
|
737
738
|
})
|
|
738
739
|
}),
|
|
739
740
|
/* @__PURE__ */ y("div", {
|
|
740
|
-
className: "mb-4 flex items-center gap-1.5 text-xs text-
|
|
741
|
+
className: "mb-4 flex items-center gap-1.5 text-xs text-text-secondary",
|
|
741
742
|
children: [/* @__PURE__ */ v(m, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ v("span", { children: e.location })]
|
|
742
743
|
}),
|
|
743
744
|
/* @__PURE__ */ y("div", {
|
|
@@ -746,12 +747,12 @@ function T() {
|
|
|
746
747
|
type: "button",
|
|
747
748
|
onClick: () => V(e),
|
|
748
749
|
disabled: e.status === "funded",
|
|
749
|
-
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", e.status === "funded" ? "cursor-not-allowed bg-
|
|
750
|
+
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", e.status === "funded" ? "cursor-not-allowed bg-bg-sunken text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
750
751
|
children: e.status === "funded" ? "Fully Funded" : "Invest Now"
|
|
751
752
|
}), /* @__PURE__ */ y("button", {
|
|
752
753
|
type: "button",
|
|
753
754
|
onClick: () => T(`/investor/opportunities/${e.id}`),
|
|
754
|
-
className: "flex flex-1 items-center justify-center gap-2 rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-
|
|
755
|
+
className: "flex flex-1 items-center justify-center gap-2 rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
755
756
|
children: [/* @__PURE__ */ v(d, { className: "h-4 w-4" }), "View Details"]
|
|
756
757
|
})]
|
|
757
758
|
})
|
|
@@ -763,30 +764,30 @@ function T() {
|
|
|
763
764
|
A && O && /* @__PURE__ */ v("div", {
|
|
764
765
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
765
766
|
children: /* @__PURE__ */ y("div", {
|
|
766
|
-
className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border bg-
|
|
767
|
+
className: "relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg border border-border-seam bg-bg-surface p-4 sm:p-6 bg-gloss-card shadow-pop",
|
|
767
768
|
children: [
|
|
768
769
|
/* @__PURE__ */ v("button", {
|
|
769
770
|
type: "button",
|
|
770
771
|
onClick: () => {
|
|
771
772
|
j(!1), N(""), F("idle");
|
|
772
773
|
},
|
|
773
|
-
className: "absolute right-3 top-3 rounded-lg p-1 text-
|
|
774
|
+
className: "absolute right-3 top-3 rounded-lg p-1 text-text-secondary hover:bg-accent transition-colors",
|
|
774
775
|
children: /* @__PURE__ */ v(_, { className: "h-5 w-5" })
|
|
775
776
|
}),
|
|
776
777
|
/* @__PURE__ */ y("h3", {
|
|
777
|
-
className: "mb-4 text-base font-semibold text-
|
|
778
|
+
className: "mb-4 text-base font-semibold text-text-primary sm:text-lg",
|
|
778
779
|
children: ["Invest in ", O.cartName]
|
|
779
780
|
}),
|
|
780
781
|
P === "success" ? /* @__PURE__ */ y("div", {
|
|
781
782
|
className: "py-8 text-center",
|
|
782
783
|
children: [
|
|
783
|
-
/* @__PURE__ */ v(u, { className: "mx-auto mb-3 h-12 w-12 text-
|
|
784
|
+
/* @__PURE__ */ v(u, { className: "mx-auto mb-3 h-12 w-12 text-status-success-text" }),
|
|
784
785
|
/* @__PURE__ */ v("p", {
|
|
785
|
-
className: "text-sm font-medium text-
|
|
786
|
+
className: "text-sm font-medium text-text-primary",
|
|
786
787
|
children: "Investment successful!"
|
|
787
788
|
}),
|
|
788
789
|
/* @__PURE__ */ v("p", {
|
|
789
|
-
className: "mt-1 text-xs text-
|
|
790
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
790
791
|
children: "Redirecting to your portfolio..."
|
|
791
792
|
})
|
|
792
793
|
]
|
|
@@ -794,10 +795,10 @@ function T() {
|
|
|
794
795
|
className: "space-y-4",
|
|
795
796
|
children: [
|
|
796
797
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
797
|
-
className: "mb-1 text-xs text-
|
|
798
|
+
className: "mb-1 text-xs text-text-secondary sm:text-sm",
|
|
798
799
|
children: "Investment Range"
|
|
799
800
|
}), /* @__PURE__ */ y("p", {
|
|
800
|
-
className: "text-sm font-medium text-
|
|
801
|
+
className: "text-sm font-medium text-text-primary sm:text-base",
|
|
801
802
|
children: [
|
|
802
803
|
i(O.minimumInvestment, { minimumFractionDigits: 0 }),
|
|
803
804
|
" ",
|
|
@@ -808,23 +809,23 @@ function T() {
|
|
|
808
809
|
})] }),
|
|
809
810
|
/* @__PURE__ */ y("div", { children: [
|
|
810
811
|
/* @__PURE__ */ v("label", {
|
|
811
|
-
className: "mb-1 block text-xs font-medium text-
|
|
812
|
+
className: "mb-1 block text-xs font-medium text-text-primary sm:text-sm",
|
|
812
813
|
children: "Investment Amount"
|
|
813
814
|
}),
|
|
814
815
|
/* @__PURE__ */ y("div", {
|
|
815
816
|
className: "relative",
|
|
816
|
-
children: [/* @__PURE__ */ v(p, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
817
|
+
children: [/* @__PURE__ */ v(p, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ v("input", {
|
|
817
818
|
type: "number",
|
|
818
819
|
value: M,
|
|
819
820
|
onChange: (e) => {
|
|
820
821
|
N(e.target.value), F("idle");
|
|
821
822
|
},
|
|
822
823
|
placeholder: "Enter amount",
|
|
823
|
-
className: "w-full rounded-lg border border-border bg-
|
|
824
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-4 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
824
825
|
})]
|
|
825
826
|
}),
|
|
826
827
|
P === "error" && /* @__PURE__ */ y("p", {
|
|
827
|
-
className: "mt-1 text-xs text-
|
|
828
|
+
className: "mt-1 text-xs text-status-error-text",
|
|
828
829
|
children: [
|
|
829
830
|
"Amount must be between",
|
|
830
831
|
" ",
|
|
@@ -837,9 +838,9 @@ function T() {
|
|
|
837
838
|
})
|
|
838
839
|
] }),
|
|
839
840
|
M && !isNaN(parseInt(M, 10)) && parseInt(M, 10) > 0 && /* @__PURE__ */ y("div", {
|
|
840
|
-
className: "rounded-lg border border-border bg-
|
|
841
|
+
className: "rounded-lg border border-border-subtle bg-bg-sunken/50 p-3 sm:p-4",
|
|
841
842
|
children: [/* @__PURE__ */ v("p", {
|
|
842
|
-
className: "mb-2 text-xs text-
|
|
843
|
+
className: "mb-2 text-xs text-text-secondary sm:text-sm",
|
|
843
844
|
children: "Expected Returns"
|
|
844
845
|
}), /* @__PURE__ */ y("div", {
|
|
845
846
|
className: "space-y-1.5",
|
|
@@ -847,34 +848,34 @@ function T() {
|
|
|
847
848
|
/* @__PURE__ */ y("div", {
|
|
848
849
|
className: "flex justify-between",
|
|
849
850
|
children: [/* @__PURE__ */ v("span", {
|
|
850
|
-
className: "text-xs text-
|
|
851
|
+
className: "text-xs text-text-primary sm:text-sm",
|
|
851
852
|
children: "Investment:"
|
|
852
853
|
}), /* @__PURE__ */ v("span", {
|
|
853
|
-
className: "text-xs font-medium text-
|
|
854
|
+
className: "text-xs font-medium text-text-primary sm:text-sm",
|
|
854
855
|
children: i(parseInt(M, 10), { minimumFractionDigits: 0 })
|
|
855
856
|
})]
|
|
856
857
|
}),
|
|
857
858
|
/* @__PURE__ */ y("div", {
|
|
858
859
|
className: "flex justify-between",
|
|
859
860
|
children: [/* @__PURE__ */ y("span", {
|
|
860
|
-
className: "text-xs text-
|
|
861
|
+
className: "text-xs text-text-primary sm:text-sm",
|
|
861
862
|
children: [
|
|
862
863
|
"Expected Return (",
|
|
863
864
|
O.expectedReturns,
|
|
864
865
|
"%):"
|
|
865
866
|
]
|
|
866
867
|
}), /* @__PURE__ */ y("span", {
|
|
867
|
-
className: "text-xs font-medium text-
|
|
868
|
+
className: "text-xs font-medium text-status-success-text sm:text-sm",
|
|
868
869
|
children: ["+", i(parseInt(M, 10) * O.expectedReturns / 100, { minimumFractionDigits: 0 })]
|
|
869
870
|
})]
|
|
870
871
|
}),
|
|
871
872
|
/* @__PURE__ */ y("div", {
|
|
872
|
-
className: "flex justify-between border-t border-border pt-2",
|
|
873
|
+
className: "flex justify-between border-t border-border-subtle pt-2",
|
|
873
874
|
children: [/* @__PURE__ */ v("span", {
|
|
874
|
-
className: "text-xs font-medium text-
|
|
875
|
+
className: "text-xs font-medium text-text-primary sm:text-sm",
|
|
875
876
|
children: "Total Value:"
|
|
876
877
|
}), /* @__PURE__ */ v("span", {
|
|
877
|
-
className: "text-xs font-bold text-
|
|
878
|
+
className: "text-xs font-bold text-text-primary sm:text-sm",
|
|
878
879
|
children: i(parseInt(M, 10) * (1 + O.expectedReturns / 100), { minimumFractionDigits: 0 })
|
|
879
880
|
})]
|
|
880
881
|
})
|
|
@@ -882,7 +883,7 @@ function T() {
|
|
|
882
883
|
})]
|
|
883
884
|
}),
|
|
884
885
|
/* @__PURE__ */ y("div", {
|
|
885
|
-
className: "space-y-1 text-xs text-
|
|
886
|
+
className: "space-y-1 text-xs text-text-secondary sm:text-sm",
|
|
886
887
|
children: [
|
|
887
888
|
/* @__PURE__ */ y("p", { children: [
|
|
888
889
|
"• Minimum lock-in period:",
|
|
@@ -915,13 +916,13 @@ function T() {
|
|
|
915
916
|
onClick: () => {
|
|
916
917
|
j(!1), N(""), F("idle");
|
|
917
918
|
},
|
|
918
|
-
className: "flex-1 rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-
|
|
919
|
+
className: "flex-1 rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
919
920
|
children: "Cancel"
|
|
920
921
|
}), /* @__PURE__ */ v("button", {
|
|
921
922
|
type: "button",
|
|
922
923
|
onClick: B,
|
|
923
924
|
disabled: !M || isNaN(parseInt(M, 10)) || parseInt(M, 10) < O.minimumInvestment,
|
|
924
|
-
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", !M || isNaN(parseInt(M, 10)) || parseInt(M, 10) < O.minimumInvestment ? "cursor-not-allowed bg-
|
|
925
|
+
className: t("flex-1 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors", !M || isNaN(parseInt(M, 10)) || parseInt(M, 10) < O.minimumInvestment ? "cursor-not-allowed bg-bg-sunken text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
|
|
925
926
|
children: "Confirm Investment"
|
|
926
927
|
})]
|
|
927
928
|
})
|