@burdenoff/microfe-kadaikodi 2026.704.5 → 2026.710.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/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +23527 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +57851 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -1
- package/dist/kadaikodi/KadaikodiRoot.d.ts +5 -0
- package/dist/kadaikodi/KadaikodiRoot.d.ts.map +1 -0
- package/dist/kadaikodi/KadaikodiRoutes.d.ts +4 -0
- package/dist/kadaikodi/KadaikodiRoutes.d.ts.map +1 -0
- package/dist/kadaikodi/components/CartCard.d.ts +18 -0
- package/dist/kadaikodi/components/CartCard.d.ts.map +1 -0
- package/dist/kadaikodi/components/EmptyState.d.ts +17 -0
- package/dist/kadaikodi/components/EmptyState.d.ts.map +1 -0
- package/dist/kadaikodi/components/InvestmentCard.d.ts +18 -0
- package/dist/kadaikodi/components/InvestmentCard.d.ts.map +1 -0
- package/dist/kadaikodi/components/MetricsCard.d.ts +16 -0
- package/dist/kadaikodi/components/MetricsCard.d.ts.map +1 -0
- package/dist/kadaikodi/components/OrderCard.d.ts +18 -0
- package/dist/kadaikodi/components/OrderCard.d.ts.map +1 -0
- package/dist/kadaikodi/components/PageLayout.d.ts +12 -0
- package/dist/kadaikodi/components/PageLayout.d.ts.map +1 -0
- package/dist/kadaikodi/components/RatingDisplay.d.ts +12 -0
- package/dist/kadaikodi/components/RatingDisplay.d.ts.map +1 -0
- package/dist/kadaikodi/components/StatusBadge.d.ts +9 -0
- package/dist/kadaikodi/components/StatusBadge.d.ts.map +1 -0
- package/dist/kadaikodi/components/index.d.ts +13 -0
- package/dist/kadaikodi/components/index.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/AllocationBar.d.ts +21 -0
- package/dist/kadaikodi/components/viz/AllocationBar.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/AreaChart.d.ts +18 -0
- package/dist/kadaikodi/components/viz/AreaChart.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/AvatarStack.d.ts +13 -0
- package/dist/kadaikodi/components/viz/AvatarStack.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/BarChart.d.ts +17 -0
- package/dist/kadaikodi/components/viz/BarChart.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/CertificateCard.d.ts +14 -0
- package/dist/kadaikodi/components/viz/CertificateCard.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/DonutChart.d.ts +20 -0
- package/dist/kadaikodi/components/viz/DonutChart.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/HBarFunnel.d.ts +17 -0
- package/dist/kadaikodi/components/viz/HBarFunnel.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/Heatmap.d.ts +26 -0
- package/dist/kadaikodi/components/viz/Heatmap.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/KanbanBoard.d.ts +17 -0
- package/dist/kadaikodi/components/viz/KanbanBoard.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/LineChart.d.ts +20 -0
- package/dist/kadaikodi/components/viz/LineChart.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/OrgTree.d.ts +14 -0
- package/dist/kadaikodi/components/viz/OrgTree.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/PathSteps.d.ts +17 -0
- package/dist/kadaikodi/components/viz/PathSteps.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/ProgressRing.d.ts +20 -0
- package/dist/kadaikodi/components/viz/ProgressRing.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/RatingStars.d.ts +14 -0
- package/dist/kadaikodi/components/viz/RatingStars.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/SegmentedTabs.d.ts +26 -0
- package/dist/kadaikodi/components/viz/SegmentedTabs.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/SkillBar.d.ts +17 -0
- package/dist/kadaikodi/components/viz/SkillBar.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/Sparkline.d.ts +16 -0
- package/dist/kadaikodi/components/viz/Sparkline.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/StatCard.d.ts +22 -0
- package/dist/kadaikodi/components/viz/StatCard.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/StepProgress.d.ts +17 -0
- package/dist/kadaikodi/components/viz/StepProgress.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/Timeline.d.ts +21 -0
- package/dist/kadaikodi/components/viz/Timeline.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/index.d.ts +35 -0
- package/dist/kadaikodi/components/viz/index.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/lib/Avatar.d.ts +15 -0
- package/dist/kadaikodi/components/viz/lib/Avatar.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/lib/CartesianFrame.d.ts +44 -0
- package/dist/kadaikodi/components/viz/lib/CartesianFrame.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/lib/ResponsiveSvg.d.ts +27 -0
- package/dist/kadaikodi/components/viz/lib/ResponsiveSvg.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/lib/format.d.ts +10 -0
- package/dist/kadaikodi/components/viz/lib/format.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/lib/geometry.d.ts +41 -0
- package/dist/kadaikodi/components/viz/lib/geometry.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/lib/hooks.d.ts +18 -0
- package/dist/kadaikodi/components/viz/lib/hooks.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/lib/palette.d.ts +31 -0
- package/dist/kadaikodi/components/viz/lib/palette.d.ts.map +1 -0
- package/dist/kadaikodi/components/viz/lib/types.d.ts +27 -0
- package/dist/kadaikodi/components/viz/lib/types.d.ts.map +1 -0
- package/dist/kadaikodi/context/KadaikodiContext.d.ts +16 -0
- package/dist/kadaikodi/context/KadaikodiContext.d.ts.map +1 -0
- package/dist/kadaikodi/context/index.d.ts +6 -0
- package/dist/kadaikodi/context/index.d.ts.map +1 -0
- package/dist/kadaikodi/hooks/index.d.ts +2 -0
- package/dist/kadaikodi/hooks/index.d.ts.map +1 -0
- package/dist/kadaikodi/hooks/useKadaikodiApi.d.ts +169 -0
- package/dist/kadaikodi/hooks/useKadaikodiApi.d.ts.map +1 -0
- package/dist/kadaikodi/index.d.ts +11 -0
- package/dist/kadaikodi/index.d.ts.map +1 -0
- package/dist/kadaikodi/pages/HomePage.d.ts +14 -0
- package/dist/kadaikodi/pages/HomePage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.d.ts +13 -0
- package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/admin/AdminDashboard.d.ts +13 -0
- package/dist/kadaikodi/pages/admin/AdminDashboard.d.ts.map +1 -0
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.d.ts +12 -0
- package/dist/kadaikodi/pages/admin/AdminFinancialPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.d.ts +11 -0
- package/dist/kadaikodi/pages/admin/AdminOrdersPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/admin/AdminProfilePage.d.ts +11 -0
- package/dist/kadaikodi/pages/admin/AdminProfilePage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.d.ts +10 -0
- package/dist/kadaikodi/pages/admin/AdminSettingsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/admin/CartManagementPage.d.ts +13 -0
- package/dist/kadaikodi/pages/admin/CartManagementPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/admin/UserManagementPage.d.ts +10 -0
- package/dist/kadaikodi/pages/admin/UserManagementPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.d.ts +13 -0
- package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.d.ts +11 -0
- package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.d.ts +12 -0
- package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.d.ts +12 -0
- package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.d.ts +11 -0
- package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.d.ts +11 -0
- package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.d.ts +2 -0
- package/dist/kadaikodi/pages/cart-owner/InvestmentListingPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/MerchantOnboardingPage.d.ts +2 -0
- package/dist/kadaikodi/pages/cart-owner/MerchantOnboardingPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.d.ts +10 -0
- package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.d.ts +12 -0
- package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/common/HelpSupportPage.d.ts +11 -0
- package/dist/kadaikodi/pages/common/HelpSupportPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/common/NotificationCenterPage.d.ts +10 -0
- package/dist/kadaikodi/pages/common/NotificationCenterPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/common/SettingsPage.d.ts +19 -0
- package/dist/kadaikodi/pages/common/SettingsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.d.ts +12 -0
- package/dist/kadaikodi/pages/customer/BookingDetailsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/CartDetailPage.d.ts +13 -0
- package/dist/kadaikodi/pages/customer/CartDetailPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/CartDiscoveryPage.d.ts +11 -0
- package/dist/kadaikodi/pages/customer/CartDiscoveryPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/CheckoutPage.d.ts +9 -0
- package/dist/kadaikodi/pages/customer/CheckoutPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/CustomerDashboard.d.ts +10 -0
- package/dist/kadaikodi/pages/customer/CustomerDashboard.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.d.ts +10 -0
- package/dist/kadaikodi/pages/customer/CustomerProfilePage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.d.ts +12 -0
- package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/FavoritesPage.d.ts +11 -0
- package/dist/kadaikodi/pages/customer/FavoritesPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.d.ts +9 -0
- package/dist/kadaikodi/pages/customer/OrderHistoryPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.d.ts +9 -0
- package/dist/kadaikodi/pages/customer/OrderTrackingPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.d.ts +11 -0
- package/dist/kadaikodi/pages/customer/PaymentMethodsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/ReviewsPage.d.ts +12 -0
- package/dist/kadaikodi/pages/customer/ReviewsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.d.ts +10 -0
- package/dist/kadaikodi/pages/customer/SavedAddressesPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/customer/shared.d.ts +41 -0
- package/dist/kadaikodi/pages/customer/shared.d.ts.map +1 -0
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.d.ts +13 -0
- package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.d.ts +10 -0
- package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.d.ts +11 -0
- package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/investor/InvestorDashboard.d.ts +10 -0
- package/dist/kadaikodi/pages/investor/InvestorDashboard.d.ts.map +1 -0
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.d.ts +10 -0
- package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.d.ts +11 -0
- package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.d.ts +20 -0
- package/dist/kadaikodi/pages/investor/InvestorProfilePage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.d.ts +18 -0
- package/dist/kadaikodi/pages/worker/TaskDetailsPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/worker/WorkerDashboard.d.ts +14 -0
- package/dist/kadaikodi/pages/worker/WorkerDashboard.d.ts.map +1 -0
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.d.ts +18 -0
- package/dist/kadaikodi/pages/worker/WorkerOrdersPage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.d.ts +18 -0
- package/dist/kadaikodi/pages/worker/WorkerProfilePage.d.ts.map +1 -0
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.d.ts +16 -0
- package/dist/kadaikodi/pages/worker/WorkerSchedulePage.d.ts.map +1 -0
- package/dist/kadaikodi/store/index.d.ts +6 -0
- package/dist/kadaikodi/store/index.d.ts.map +1 -0
- package/dist/kadaikodi/store/kadaikodiStore.d.ts +60 -0
- package/dist/kadaikodi/store/kadaikodiStore.d.ts.map +1 -0
- package/dist/kadaikodi/types/index.d.ts +464 -0
- package/dist/kadaikodi/types/index.d.ts.map +1 -0
- package/dist/kadaikodi/utils/cn.d.ts +4 -0
- package/dist/kadaikodi/utils/cn.d.ts.map +1 -0
- package/dist/kadaikodi/utils/formatters.d.ts +78 -0
- package/dist/kadaikodi/utils/formatters.d.ts.map +1 -0
- package/dist/kadaikodi/utils/index.d.ts +8 -0
- package/dist/kadaikodi/utils/index.d.ts.map +1 -0
- package/dist/kadaikodi/utils/navigation.d.ts +20 -0
- package/dist/kadaikodi/utils/navigation.d.ts.map +1 -0
- package/dist/services/createSandboxAssistantTransport.d.ts +43 -0
- package/dist/services/createSandboxAssistantTransport.d.ts.map +1 -0
- package/dist/services/createSandboxAssistantTransport.js +15 -0
- package/dist/services/createSandboxAssistantTransport.js.map +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface SparklineProps {
|
|
2
|
+
/** Ordered trend values (oldest first). */
|
|
3
|
+
data: number[];
|
|
4
|
+
variant?: 'line' | 'area';
|
|
5
|
+
/** Pixel height of the sparkline. */
|
|
6
|
+
height?: number;
|
|
7
|
+
/** Accessible label; defaults to a generic trend description. */
|
|
8
|
+
label?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Tiny inline trend line/area for KPI cards. Draws itself in on mount
|
|
13
|
+
* (unless reduced-motion is requested) and emphasizes the final point.
|
|
14
|
+
*/
|
|
15
|
+
export declare function Sparkline({ data, variant, height, label, className, }: SparklineProps): import("react").JSX.Element | null;
|
|
16
|
+
//# sourceMappingURL=Sparkline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sparkline.d.ts","sourceRoot":"","sources":["../../../../src/kadaikodi/components/viz/Sparkline.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,OAAgB,EAChB,MAAW,EACX,KAAK,EACL,SAAS,GACV,EAAE,cAAc,sCA0DhB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface StatCardProps {
|
|
4
|
+
label: string;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
/** Signed change; positive renders success (unless `invertDelta`). */
|
|
7
|
+
delta?: number;
|
|
8
|
+
/** Unit appended to the delta (default "%"). */
|
|
9
|
+
deltaSuffix?: string;
|
|
10
|
+
/** Context line under the delta, e.g. "vs last month". */
|
|
11
|
+
deltaLabel?: string;
|
|
12
|
+
/** When true (attrition, cost) a negative delta is the good outcome. */
|
|
13
|
+
invertDelta?: boolean;
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/** Optional trend to render as a footer sparkline. */
|
|
16
|
+
sparkline?: number[];
|
|
17
|
+
sparklineVariant?: 'line' | 'area';
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/** KPI tile: label, big tabular value, optional signed delta and sparkline. */
|
|
21
|
+
export declare function StatCard({ label, value, delta, deltaSuffix, deltaLabel, invertDelta, icon, sparkline, sparklineVariant, className, }: StatCardProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=StatCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../../../../src/kadaikodi/components/viz/StatCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,+EAA+E;AAC/E,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,KAAK,EACL,KAAK,EACL,WAAiB,EACjB,UAAU,EACV,WAAmB,EACnB,IAAI,EACJ,SAAS,EACT,gBAAyB,EACzB,SAAS,GACV,EAAE,aAAa,+BAoDf"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface StepProgressStep {
|
|
2
|
+
label: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface StepProgressProps {
|
|
6
|
+
steps: StepProgressStep[];
|
|
7
|
+
/** Zero-based index of the current (in-progress) step. */
|
|
8
|
+
current: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Horizontal stage tracker (e.g. Offer → Paperwork → IT → Training → Day 1).
|
|
13
|
+
* Completed steps are filled with a check, the current step is highlighted and
|
|
14
|
+
* future steps are muted. Scrolls horizontally on narrow screens.
|
|
15
|
+
*/
|
|
16
|
+
export declare function StepProgress({ steps, current, className }: StepProgressProps): import("react").JSX.Element | null;
|
|
17
|
+
//# sourceMappingURL=StepProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepProgress.d.ts","sourceRoot":"","sources":["../../../../src/kadaikodi/components/viz/StepProgress.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,iBAAiB,sCAwE5E"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StatusTone } from './lib/palette';
|
|
3
|
+
|
|
4
|
+
export type TimelineTone = 'accent' | StatusTone | 'muted';
|
|
5
|
+
export interface TimelineItem {
|
|
6
|
+
id?: string;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
meta?: ReactNode;
|
|
9
|
+
time?: ReactNode;
|
|
10
|
+
/** Colors the node dot. Defaults to accent. */
|
|
11
|
+
tone?: TimelineTone;
|
|
12
|
+
/** Optional icon rendered inside the node. */
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface TimelineProps {
|
|
16
|
+
items: TimelineItem[];
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/** Vertical activity feed: node dot + connector + title, meta and time. */
|
|
20
|
+
export declare function Timeline({ items, className }: TimelineProps): import("react").JSX.Element | null;
|
|
21
|
+
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../../src/kadaikodi/components/viz/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAE3D,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgBD,2EAA2E;AAC3E,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,aAAa,sCAgD3D"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kadaikodi visualization + layout kit.
|
|
3
|
+
*
|
|
4
|
+
* Self-contained, dependency-free (hand-rolled SVG + CSS), responsive and
|
|
5
|
+
* accessible presentational components. Every color is a fe-libs semantic
|
|
6
|
+
* token, so the kit themes automatically in light / dark / product themes.
|
|
7
|
+
*
|
|
8
|
+
* All components are pure-presentational: they take typed props + data and
|
|
9
|
+
* render no network calls.
|
|
10
|
+
*/
|
|
11
|
+
export { Sparkline, type SparklineProps } from './Sparkline';
|
|
12
|
+
export { AreaChart, type AreaChartProps } from './AreaChart';
|
|
13
|
+
export { LineChart, type LineChartProps } from './LineChart';
|
|
14
|
+
export { BarChart, type BarChartProps } from './BarChart';
|
|
15
|
+
export { HBarFunnel, type HBarFunnelProps } from './HBarFunnel';
|
|
16
|
+
export { DonutChart, type DonutChartProps } from './DonutChart';
|
|
17
|
+
export { ProgressRing, type ProgressRingProps } from './ProgressRing';
|
|
18
|
+
export { StatCard, type StatCardProps } from './StatCard';
|
|
19
|
+
export { KanbanBoard, type KanbanBoardProps } from './KanbanBoard';
|
|
20
|
+
export { Heatmap, type HeatmapProps, type HeatmapRow, type HeatmapCell } from './Heatmap';
|
|
21
|
+
export { Timeline, type TimelineProps, type TimelineItem, type TimelineTone } from './Timeline';
|
|
22
|
+
export { OrgTree, type OrgTreeProps, type OrgNode } from './OrgTree';
|
|
23
|
+
export { AllocationBar, type AllocationBarProps } from './AllocationBar';
|
|
24
|
+
export { StepProgress, type StepProgressProps, type StepProgressStep } from './StepProgress';
|
|
25
|
+
export { PathSteps, type PathStepsProps, type PathStep, type PathStepState } from './PathSteps';
|
|
26
|
+
export { AvatarStack, type AvatarStackProps } from './AvatarStack';
|
|
27
|
+
export { RatingStars, type RatingStarsProps } from './RatingStars';
|
|
28
|
+
export { SkillBar, type SkillBarProps } from './SkillBar';
|
|
29
|
+
export { CertificateCard, type CertificateCardProps } from './CertificateCard';
|
|
30
|
+
export { SegmentedTabs, type SegmentedTabsProps, type SegmentedTab } from './SegmentedTabs';
|
|
31
|
+
export type { LabeledValue, Segment, Person, KanbanColumnData } from './lib/types';
|
|
32
|
+
export { ACCENT, CHART_GRID, CHART_AXIS, STATUS, chartPalette, type StatusTone, } from './lib/palette';
|
|
33
|
+
export { clamp, sum, extent, extentWithZero, scaleLinear, pointsFromValues, buildLinePath, buildAreaPath, polarToCartesian, donutSegmentPath, starPath, type Point, } from './lib/geometry';
|
|
34
|
+
export { formatCompact, toPercent, getInitials } from './lib/format';
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/kadaikodi/components/viz/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGtE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG5F,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGnF,OAAO,EACL,MAAM,EACN,UAAU,EACV,UAAU,EACV,MAAM,EACN,YAAY,EACZ,KAAK,UAAU,GAChB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,KAAK,EACL,GAAG,EACH,MAAM,EACN,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,KAAK,KAAK,GACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface VizAvatarProps {
|
|
2
|
+
name: string;
|
|
3
|
+
src?: string;
|
|
4
|
+
/** Pixel diameter. */
|
|
5
|
+
size?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Extra ring around the avatar (used by overlapping stacks). */
|
|
8
|
+
ring?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Internal avatar primitive: image when available, initials fallback otherwise.
|
|
12
|
+
* Shared by AvatarStack, OrgTree and Timeline. Not exported from the barrel.
|
|
13
|
+
*/
|
|
14
|
+
export declare function VizAvatar({ name, src, size, className, ring }: VizAvatarProps): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../../src/kadaikodi/components/viz/lib/Avatar.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,IAAS,EAAE,SAAS,EAAE,IAAY,EAAE,EAAE,cAAc,+BAyB1F"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface CartesianContext {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
plotLeft: number;
|
|
7
|
+
plotRight: number;
|
|
8
|
+
plotTop: number;
|
|
9
|
+
plotBottom: number;
|
|
10
|
+
activeIndex: number | null;
|
|
11
|
+
/** X pixel for a data index. */
|
|
12
|
+
px: (index: number) => number;
|
|
13
|
+
/** Y pixel for a data value. */
|
|
14
|
+
py: (value: number) => number;
|
|
15
|
+
}
|
|
16
|
+
interface Padding {
|
|
17
|
+
left: number;
|
|
18
|
+
right: number;
|
|
19
|
+
top: number;
|
|
20
|
+
bottom: number;
|
|
21
|
+
}
|
|
22
|
+
export interface CartesianFrameProps {
|
|
23
|
+
labels: string[];
|
|
24
|
+
/** Y domain [low, high]. */
|
|
25
|
+
domain: [number, number];
|
|
26
|
+
height: number;
|
|
27
|
+
title: string;
|
|
28
|
+
desc?: string;
|
|
29
|
+
formatValue: (value: number) => string;
|
|
30
|
+
/** Number of grid intervals (lines = intervals + 1). */
|
|
31
|
+
yTicks?: number;
|
|
32
|
+
padding?: Partial<Padding>;
|
|
33
|
+
tooltip?: (index: number) => ReactNode;
|
|
34
|
+
className?: string;
|
|
35
|
+
children: (ctx: CartesianContext) => ReactNode;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Shared cartesian chart chrome: faint grid, tokenized axes, and pointer +
|
|
39
|
+
* keyboard driven hover with an accessible tooltip. The series marks are
|
|
40
|
+
* supplied via the render-prop `children`, which receives pixel scales.
|
|
41
|
+
*/
|
|
42
|
+
export declare function CartesianFrame({ labels, domain, height, title, desc, formatValue, yTicks, padding, tooltip, className, children, }: CartesianFrameProps): import("react").JSX.Element;
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=CartesianFrame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartesianFrame.d.ts","sourceRoot":"","sources":["../../../../../src/kadaikodi/components/viz/lib/CartesianFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAMtF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gCAAgC;IAChC,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9B,gCAAgC;IAChC,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/B;AAED,UAAU,OAAO;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,4BAA4B;IAC5B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,SAAS,CAAC;CAChD;AAKD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,WAAW,EACX,MAAU,EACV,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,mBAAmB,+BAwKrB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ResponsiveSvgDims {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ResponsiveSvgProps {
|
|
8
|
+
/** Fixed pixel height; width is measured from the container. */
|
|
9
|
+
height: number;
|
|
10
|
+
/** Accessible name announced for the chart. */
|
|
11
|
+
title: string;
|
|
12
|
+
/** Optional longer description linked via <desc>. */
|
|
13
|
+
desc?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Width assumed before the container has been measured. */
|
|
16
|
+
minWidth?: number;
|
|
17
|
+
/** Allow marks (endpoint halos, labels) to paint outside the viewBox. */
|
|
18
|
+
overflowVisible?: boolean;
|
|
19
|
+
children: (dims: ResponsiveSvgDims) => ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A width-measuring SVG frame. Because the viewBox matches the rendered pixel
|
|
23
|
+
* box 1:1, circles stay circular and strokes stay crisp at any width, while the
|
|
24
|
+
* chart still fills its container and reflows on resize.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ResponsiveSvg({ height, title, desc, className, minWidth, overflowVisible, children, }: ResponsiveSvgProps): import("react").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=ResponsiveSvg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponsiveSvg.d.ts","sourceRoot":"","sources":["../../../../../src/kadaikodi/components/viz/lib/ResponsiveSvg.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,SAAS,CAAC;CAClD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,IAAI,EACJ,SAAS,EACT,QAAc,EACd,eAAsB,EACtB,QAAQ,GACT,EAAE,kBAAkB,+BAoBpB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure formatting helpers for the visualization kit. No React / DOM.
|
|
3
|
+
*/
|
|
4
|
+
/** Compact number formatting: 1200 -> "1.2k", 3_400_000 -> "3.4M". */
|
|
5
|
+
export declare function formatCompact(value: number): string;
|
|
6
|
+
/** Value as a percentage of a total, rounded to `digits` decimals (0 when total is 0). */
|
|
7
|
+
export declare function toPercent(value: number, total: number, digits?: number): number;
|
|
8
|
+
/** Up-to-two-letter initials from a display name. */
|
|
9
|
+
export declare function getInitials(name: string): string;
|
|
10
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../src/kadaikodi/components/viz/lib/format.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,sEAAsE;AACtE,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAYnD;AAED,0FAA0F;AAC1F,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,MAAM,CAM1E;AAED,qDAAqD;AACrD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAShD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure geometry / scaling helpers for the CrewFoundry visualization kit.
|
|
3
|
+
* No React, no DOM, no side effects — safe to unit test in isolation.
|
|
4
|
+
*/
|
|
5
|
+
export interface Point {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
}
|
|
9
|
+
/** Clamp a value into an inclusive range. */
|
|
10
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
11
|
+
/** Sum of a numeric list (0 for empty). */
|
|
12
|
+
export declare function sum(values: readonly number[]): number;
|
|
13
|
+
/** Min/max of a list. Returns [0, 0] for an empty list. */
|
|
14
|
+
export declare function extent(values: readonly number[]): [number, number];
|
|
15
|
+
/** Extent that always includes a zero baseline, so bars/areas anchor sensibly. */
|
|
16
|
+
export declare function extentWithZero(values: readonly number[]): [number, number];
|
|
17
|
+
/**
|
|
18
|
+
* Linear map of `value` from a domain onto a range. Degenerate domains
|
|
19
|
+
* (min === max) map to the range midpoint instead of dividing by zero.
|
|
20
|
+
*/
|
|
21
|
+
export declare function scaleLinear(value: number, domainMin: number, domainMax: number, rangeMin: number, rangeMax: number): number;
|
|
22
|
+
/**
|
|
23
|
+
* Evenly space a list of y-values across a box and invert Y (SVG origin is
|
|
24
|
+
* top-left, so larger values render higher).
|
|
25
|
+
*/
|
|
26
|
+
export declare function pointsFromValues(values: readonly number[], width: number, height: number, padding?: number, domain?: [number, number]): Point[];
|
|
27
|
+
/** Build an SVG polyline `d` from points. */
|
|
28
|
+
export declare function buildLinePath(points: readonly Point[]): string;
|
|
29
|
+
/** Build a closed area `d` (line dropped to a baseline and closed). */
|
|
30
|
+
export declare function buildAreaPath(points: readonly Point[], baselineY: number): string;
|
|
31
|
+
/** SVG path for an n-pointed star centered at (cx, cy). */
|
|
32
|
+
export declare function starPath(cx: number, cy: number, outerRadius: number, innerRadius: number, points?: number): string;
|
|
33
|
+
/** Convert a polar coordinate (degrees, clockwise from 12 o'clock) to cartesian. */
|
|
34
|
+
export declare function polarToCartesian(cx: number, cy: number, radius: number, angleDeg: number): Point;
|
|
35
|
+
/**
|
|
36
|
+
* Annular (donut) segment path between two angles, clockwise from 12 o'clock.
|
|
37
|
+
* For a full 360° sweep the caller should draw a ring instead (this path
|
|
38
|
+
* degenerates when start and end coincide).
|
|
39
|
+
*/
|
|
40
|
+
export declare function donutSegmentPath(cx: number, cy: number, rOuter: number, rInner: number, startAngle: number, endAngle: number): string;
|
|
41
|
+
//# sourceMappingURL=geometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../src/kadaikodi/components/viz/lib/geometry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,6CAA6C;AAC7C,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,2CAA2C;AAC3C,wBAAgB,GAAG,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAErD;AAED,2DAA2D;AAC3D,wBAAgB,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAelE;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAG1E;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR;AAOD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,SAAI,EACX,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GACxB,KAAK,EAAE,CAaT;AAED,6CAA6C;AAC7C,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,GAAG,MAAM,CAK9D;AAED,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAQjF;AAED,2DAA2D;AAC3D,wBAAgB,QAAQ,CACtB,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,MAAM,SAAI,GACT,MAAM,CAQR;AAED,oFAAoF;AACpF,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,CAGhG;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,MAAM,CAaR"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tracks the user's reduced-motion preference. Components use this to skip
|
|
5
|
+
* entrance / draw-in transitions entirely rather than merely shortening them.
|
|
6
|
+
*/
|
|
7
|
+
export declare function usePrefersReducedMotion(): boolean;
|
|
8
|
+
/** Becomes true after the first paint — drives one-shot enter transitions. */
|
|
9
|
+
export declare function useMounted(): boolean;
|
|
10
|
+
/** Stable, SVG-safe unique id (no colons) for gradient / clip / aria references. */
|
|
11
|
+
export declare function useVizId(prefix?: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Observes the width of an element so SVG charts can render a 1:1 viewBox
|
|
14
|
+
* (no aspect-ratio distortion) and reflow on resize. Falls back gracefully
|
|
15
|
+
* where ResizeObserver is unavailable.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useElementWidth<T extends HTMLElement>(): [RefObject<T | null>, number];
|
|
18
|
+
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/kadaikodi/components/viz/lib/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAgD,MAAM,OAAO,CAAC;AAKrF;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAajD;AAED,8EAA8E;AAC9E,wBAAgB,UAAU,IAAI,OAAO,CAOpC;AAID,oFAAoF;AACpF,wBAAgB,QAAQ,CAAC,MAAM,SAAQ,GAAG,MAAM,CAM/C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,MAAM,CAAC,CAsBtF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tokenized color palette for the visualization kit.
|
|
3
|
+
*
|
|
4
|
+
* Every color here is a reference to a fe-libs semantic CSS variable, so the
|
|
5
|
+
* kit themes automatically (light / dark / product themes) and never ships a
|
|
6
|
+
* raw hex. The single "accent" used for highlights and single-series charts is
|
|
7
|
+
* the product theme's primary action color — the app is NOT green; whatever the
|
|
8
|
+
* active theme resolves `--color-accent-primary` to is what renders.
|
|
9
|
+
*
|
|
10
|
+
* Tints/shades are produced by SVG opacity (fill-opacity / stop-opacity) at the
|
|
11
|
+
* call site, never by emitting a second raw color.
|
|
12
|
+
*/
|
|
13
|
+
/** Primary highlight — resolves to the product theme's primary action color. */
|
|
14
|
+
export declare const ACCENT = "var(--color-accent-primary)";
|
|
15
|
+
/** Faint chart chrome (theme-aware). */
|
|
16
|
+
export declare const CHART_GRID = "var(--color-chart-grid)";
|
|
17
|
+
export declare const CHART_AXIS = "var(--color-chart-axis)";
|
|
18
|
+
/** Semantic status hues — saturated and readable in both light and dark. */
|
|
19
|
+
export declare const STATUS: {
|
|
20
|
+
readonly success: "var(--color-status-success-text)";
|
|
21
|
+
readonly warning: "var(--color-status-warning-text)";
|
|
22
|
+
readonly danger: "var(--color-status-error-text)";
|
|
23
|
+
readonly info: "var(--color-status-info-text)";
|
|
24
|
+
};
|
|
25
|
+
export type StatusTone = keyof typeof STATUS;
|
|
26
|
+
/**
|
|
27
|
+
* A tokenized palette of `count` colors, cycling the semantic series list.
|
|
28
|
+
* Returns CSS-variable strings (never raw colors).
|
|
29
|
+
*/
|
|
30
|
+
export declare function chartPalette(count: number): string[];
|
|
31
|
+
//# sourceMappingURL=palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../../../src/kadaikodi/components/viz/lib/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,gFAAgF;AAChF,eAAO,MAAM,MAAM,gCAAgC,CAAC;AAEpD,wCAAwC;AACxC,eAAO,MAAM,UAAU,4BAA4B,CAAC;AACpD,eAAO,MAAM,UAAU,4BAA4B,CAAC;AAEpD,4EAA4E;AAC5E,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,MAAM,CAAC;AAqB7C;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAKpD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
/** A single labelled datum — the common shape across most charts. */
|
|
4
|
+
export interface LabeledValue {
|
|
5
|
+
label: string;
|
|
6
|
+
value: number;
|
|
7
|
+
}
|
|
8
|
+
/** A labelled datum that may carry an explicit tokenized color. */
|
|
9
|
+
export interface Segment extends LabeledValue {
|
|
10
|
+
/** Optional CSS-variable color; otherwise the chart palette assigns one. */
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
13
|
+
/** A person reference used by avatar / org / roster components. */
|
|
14
|
+
export interface Person {
|
|
15
|
+
name: string;
|
|
16
|
+
avatarUrl?: string;
|
|
17
|
+
role?: string;
|
|
18
|
+
}
|
|
19
|
+
/** A column for the KanbanBoard. Cards are pre-rendered nodes supplied by the caller. */
|
|
20
|
+
export interface KanbanColumnData {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
/** Optional tokenized accent for the column header rail. */
|
|
24
|
+
accent?: string;
|
|
25
|
+
items: ReactNode[];
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/kadaikodi/components/viz/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,qEAAqE;AACrE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,mEAAmE;AACnE,MAAM,WAAW,OAAQ,SAAQ,YAAY;IAC3C,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,mEAAmE;AACnE,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yFAAyF;AACzF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { KadaikodiRootProps } from '../types';
|
|
3
|
+
|
|
4
|
+
interface KadaikodiContextValue extends Omit<KadaikodiRootProps, 'registerNavItems' | 'registerFooterItems' | 'navigate'> {
|
|
5
|
+
isStandalone: boolean;
|
|
6
|
+
/** Shell's navigate function (only available in integrated mode) */
|
|
7
|
+
navigate?: (path: string) => void;
|
|
8
|
+
/** Navigate to a path relative to basePath */
|
|
9
|
+
navigateTo: (relativePath: string) => void;
|
|
10
|
+
/** Get the full path for a relative path */
|
|
11
|
+
getPath: (relativePath: string) => string;
|
|
12
|
+
}
|
|
13
|
+
export declare function useKadaikodi(): KadaikodiContextValue;
|
|
14
|
+
export declare const KadaikodiProvider: FC<PropsWithChildren<KadaikodiRootProps>>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=KadaikodiContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KadaikodiContext.d.ts","sourceRoot":"","sources":["../../../src/kadaikodi/context/KadaikodiContext.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAOnD,UAAU,qBAAsB,SAAQ,IAAI,CAC1C,kBAAkB,EAClB,kBAAkB,GAAG,qBAAqB,GAAG,UAAU,CACxD;IACC,YAAY,EAAE,OAAO,CAAC;IACtB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,8CAA8C;IAC9C,UAAU,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,4CAA4C;IAC5C,OAAO,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C;AAQD,wBAAgB,YAAY,IAAI,qBAAqB,CAMpD;AAqID,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAuBvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/kadaikodi/context/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { useAdminAnalytics, useCreateOffering, useCreateProvider, useCreateProviderWorker, useCreateInvestmentOpportunity, useCreateReview, useCreateWorkerTask, useDashboardStats, useDeleteOffering, useInvest, useRespondToReview, useInvestmentOpportunities, useInvestments, useKadaikodiApi, useOffering, useOfferings, useOrder, useOrders, usePlaceOrder, useProvider, useProviders, useProviderWorkers, useReviews, useUpdateOffering, useUpdateOrderStatus, useUpdateProvider, useUpdateProviderWorker, useUpdateWorkerTask, useUpdateWorkerTaskStatus, useWorkerClockInOut, useWorkerSchedules, useWorkerStats, useWorkerTasks, } from './useKadaikodiApi';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/kadaikodi/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,8BAA8B,EAC9B,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,0BAA0B,EAC1B,cAAc,EACd,eAAe,EACf,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,aAAa,EACb,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,GACf,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { MockCart, MockOrder, InvestmentOpportunity, Investment, DashboardStats, AdminAnalytics, WorkerTask, WorkerSchedule, WorkerStats } from '../types';
|
|
2
|
+
|
|
3
|
+
export interface KadaikodiOfferingRow {
|
|
4
|
+
id: string;
|
|
5
|
+
providerId: string;
|
|
6
|
+
kind: string;
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
category: string;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
price: number;
|
|
12
|
+
originalPrice?: number | null;
|
|
13
|
+
stock?: number | null;
|
|
14
|
+
durationMinutes?: number | null;
|
|
15
|
+
serviceType?: string | null;
|
|
16
|
+
tags: string[];
|
|
17
|
+
isAvailable: boolean;
|
|
18
|
+
metadata?: Record<string, unknown> | null;
|
|
19
|
+
media?: string[] | null;
|
|
20
|
+
}
|
|
21
|
+
export interface KadaikodiReviewRow {
|
|
22
|
+
id: string;
|
|
23
|
+
providerId: string;
|
|
24
|
+
customerId: string;
|
|
25
|
+
rating: number;
|
|
26
|
+
review?: string | null;
|
|
27
|
+
response?: string | null;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
}
|
|
31
|
+
export interface KadaikodiProviderWorkerRow {
|
|
32
|
+
id: string;
|
|
33
|
+
providerId: string;
|
|
34
|
+
workerId: string;
|
|
35
|
+
name: string;
|
|
36
|
+
role: string;
|
|
37
|
+
status: string;
|
|
38
|
+
metadata?: Record<string, unknown> | null;
|
|
39
|
+
}
|
|
40
|
+
export declare const useProviders: (query?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<MockCart[]>, Error>;
|
|
41
|
+
export declare const useProvider: (id?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<MockCart | null>, Error>;
|
|
42
|
+
export declare const useOfferings: (providerId?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<KadaikodiOfferingRow[]>, Error>;
|
|
43
|
+
export declare const useOffering: (id?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<KadaikodiOfferingRow | null>, Error>;
|
|
44
|
+
export declare const useOrders: (input?: {
|
|
45
|
+
providerId?: string;
|
|
46
|
+
customerId?: string;
|
|
47
|
+
}) => import('@tanstack/react-query').UseQueryResult<NoInfer<MockOrder[]>, Error>;
|
|
48
|
+
export declare const useOrder: (id?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<MockOrder | null>, Error>;
|
|
49
|
+
export declare const useDashboardStats: () => import('@tanstack/react-query').UseQueryResult<NoInfer<DashboardStats>, Error>;
|
|
50
|
+
export declare const useAdminAnalytics: () => import('@tanstack/react-query').UseQueryResult<NoInfer<AdminAnalytics>, Error>;
|
|
51
|
+
export declare const useInvestmentOpportunities: () => import('@tanstack/react-query').UseQueryResult<NoInfer<InvestmentOpportunity[]>, Error>;
|
|
52
|
+
export declare const useInvestments: (investorId: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<Investment[]>, Error>;
|
|
53
|
+
export declare const useProviderWorkers: (providerId?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<KadaikodiProviderWorkerRow[]>, Error>;
|
|
54
|
+
export declare const useWorkerTasks: (workerId: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<WorkerTask[]>, Error>;
|
|
55
|
+
export declare const useWorkerStats: (workerId: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<WorkerStats>, Error>;
|
|
56
|
+
export declare const useWorkerSchedules: (workerId: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<WorkerSchedule[]>, Error>;
|
|
57
|
+
export declare const useReviews: (providerId: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<KadaikodiReviewRow[]>, Error>;
|
|
58
|
+
export declare const usePlaceOrder: () => import('@tanstack/react-query').UseMutationResult<{
|
|
59
|
+
id: string;
|
|
60
|
+
orderNumber: string;
|
|
61
|
+
status: string;
|
|
62
|
+
total: number;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
}, Error, Record<string, unknown>, unknown>;
|
|
65
|
+
export declare const useUpdateOrderStatus: () => import('@tanstack/react-query').UseMutationResult<{
|
|
66
|
+
id: string;
|
|
67
|
+
status: string;
|
|
68
|
+
}, Error, {
|
|
69
|
+
id: string;
|
|
70
|
+
status: string;
|
|
71
|
+
}, unknown>;
|
|
72
|
+
export declare const useCreateOffering: () => import('@tanstack/react-query').UseMutationResult<KadaikodiOfferingRow, Error, Record<string, unknown>, unknown>;
|
|
73
|
+
export declare const useUpdateOffering: () => import('@tanstack/react-query').UseMutationResult<KadaikodiOfferingRow, Error, {
|
|
74
|
+
id: string;
|
|
75
|
+
input: Record<string, unknown>;
|
|
76
|
+
}, unknown>;
|
|
77
|
+
export declare const useInvest: () => import('@tanstack/react-query').UseMutationResult<{
|
|
78
|
+
id: string;
|
|
79
|
+
amount: number;
|
|
80
|
+
currentValue: number;
|
|
81
|
+
status: string;
|
|
82
|
+
investedAt: string;
|
|
83
|
+
}, Error, {
|
|
84
|
+
amount: number;
|
|
85
|
+
investorId: string;
|
|
86
|
+
opportunityId: string;
|
|
87
|
+
}, unknown>;
|
|
88
|
+
export declare const useCreateProvider: () => import('@tanstack/react-query').UseMutationResult<{
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
slug: string;
|
|
92
|
+
status: string;
|
|
93
|
+
}, Error, Record<string, unknown>, unknown>;
|
|
94
|
+
export declare const useCreateProviderWorker: () => import('@tanstack/react-query').UseMutationResult<KadaikodiProviderWorkerRow, Error, Record<string, unknown>, unknown>;
|
|
95
|
+
export declare const useCreateWorkerTask: () => import('@tanstack/react-query').UseMutationResult<WorkerTask, Error, Record<string, unknown>, unknown>;
|
|
96
|
+
export declare const useUpdateWorkerTaskStatus: () => import('@tanstack/react-query').UseMutationResult<{
|
|
97
|
+
id: string;
|
|
98
|
+
status: string;
|
|
99
|
+
}, Error, {
|
|
100
|
+
taskId: string;
|
|
101
|
+
status: string;
|
|
102
|
+
}, unknown>;
|
|
103
|
+
export declare const useWorkerClockInOut: () => import('@tanstack/react-query').UseMutationResult<{
|
|
104
|
+
success: boolean;
|
|
105
|
+
message: string;
|
|
106
|
+
}, Error, {
|
|
107
|
+
workerId: string;
|
|
108
|
+
action: "CLOCK_IN" | "CLOCK_OUT";
|
|
109
|
+
}, unknown>;
|
|
110
|
+
export declare const useCreateInvestmentOpportunity: () => import('@tanstack/react-query').UseMutationResult<{
|
|
111
|
+
id: string;
|
|
112
|
+
title: string;
|
|
113
|
+
}, Error, {
|
|
114
|
+
providerId: string;
|
|
115
|
+
title: string;
|
|
116
|
+
description?: string;
|
|
117
|
+
targetAmount: number;
|
|
118
|
+
minimumInvestment: number;
|
|
119
|
+
expectedReturnsPct: number;
|
|
120
|
+
lockInMonths: number;
|
|
121
|
+
riskLevel?: string;
|
|
122
|
+
}, unknown>;
|
|
123
|
+
export declare const useCreateReview: () => import('@tanstack/react-query').UseMutationResult<{
|
|
124
|
+
id: string;
|
|
125
|
+
rating: number;
|
|
126
|
+
}, Error, {
|
|
127
|
+
providerId: string;
|
|
128
|
+
orderId?: string;
|
|
129
|
+
customerId: string;
|
|
130
|
+
rating: number;
|
|
131
|
+
review?: string;
|
|
132
|
+
}, unknown>;
|
|
133
|
+
export declare const useRespondToReview: () => import('@tanstack/react-query').UseMutationResult<{
|
|
134
|
+
id: string;
|
|
135
|
+
response: string;
|
|
136
|
+
}, Error, {
|
|
137
|
+
id: string;
|
|
138
|
+
response: string;
|
|
139
|
+
}, unknown>;
|
|
140
|
+
export declare const useUpdateProvider: () => import('@tanstack/react-query').UseMutationResult<{
|
|
141
|
+
id: string;
|
|
142
|
+
status: string;
|
|
143
|
+
}, Error, {
|
|
144
|
+
id: string;
|
|
145
|
+
input: Record<string, unknown>;
|
|
146
|
+
}, unknown>;
|
|
147
|
+
export declare const useDeleteOffering: () => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
148
|
+
export declare const useUpdateWorkerTask: () => import('@tanstack/react-query').UseMutationResult<{
|
|
149
|
+
id: string;
|
|
150
|
+
status: string;
|
|
151
|
+
}, Error, {
|
|
152
|
+
taskId: string;
|
|
153
|
+
status?: string;
|
|
154
|
+
notes?: string;
|
|
155
|
+
}, unknown>;
|
|
156
|
+
export declare const useUpdateProviderWorker: () => import('@tanstack/react-query').UseMutationResult<{
|
|
157
|
+
id: string;
|
|
158
|
+
}, Error, {
|
|
159
|
+
id: string;
|
|
160
|
+
metadata: Record<string, unknown>;
|
|
161
|
+
}, unknown>;
|
|
162
|
+
export declare const useKadaikodiApi: () => {
|
|
163
|
+
providers: import('@tanstack/react-query').UseQueryResult<NoInfer<MockCart[]>, Error>;
|
|
164
|
+
orders: import('@tanstack/react-query').UseQueryResult<NoInfer<MockOrder[]>, Error>;
|
|
165
|
+
dashboardStats: import('@tanstack/react-query').UseQueryResult<NoInfer<DashboardStats>, Error>;
|
|
166
|
+
investmentOpportunities: import('@tanstack/react-query').UseQueryResult<NoInfer<InvestmentOpportunity[]>, Error>;
|
|
167
|
+
investments: import('@tanstack/react-query').UseQueryResult<NoInfer<Investment[]>, Error>;
|
|
168
|
+
};
|
|
169
|
+
//# sourceMappingURL=useKadaikodiApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKadaikodiApi.d.ts","sourceRoot":"","sources":["../../../src/kadaikodi/hooks/useKadaikodiApi.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EAMT,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,cAAc,EACd,UAAU,EACV,cAAc,EACd,WAAW,EACZ,MAAM,UAAU,CAAC;AAyDlB,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACzB;AAkED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC3C;AA2LD,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,+EAiB1C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,oFAkBtC,CAAC;AAMF,eAAO,MAAM,YAAY,GAAI,aAAa,MAAM,2FAkB/C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,gGAkBtC,CAAC;AAMF,eAAO,MAAM,SAAS,GAAI,QAAO;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,gFAiBjF,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,qFAkBnC,CAAC;AAMF,eAAO,MAAM,iBAAiB,sFAa7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,sFAa7B,CAAC;AAMF,eAAO,MAAM,0BAA0B,+FAoBtC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,iFAmBhD,CAAC;AAMF,eAAO,MAAM,kBAAkB,GAAI,aAAa,MAAM,iGAoBrD,CAAC;AAMF,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,iFAoB9C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,gFAkB9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,UAAU,MAAM,qFAmBlD,CAAC;AAMF,eAAO,MAAM,UAAU,GAAI,YAAY,MAAM,yFAkB5C,CAAC;AAMF,eAAO,MAAM,aAAa;QAQZ,MAAM;iBACG,MAAM;YACX,MAAM;WACP,MAAM;eACF,MAAM;2CAkB1B,CAAC;AAEF,eAAO,MAAM,oBAAoB;QAOS,MAAM;YAAU,MAAM;;QAFnB,MAAM;YAAU,MAAM;WAoBlE,CAAC;AAEF,eAAO,MAAM,iBAAiB,wHAqB7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;QAKc,MAAM;WAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;WAiBjF,CAAC;AAEF,eAAO,MAAM,SAAS;QAQR,MAAM;YACF,MAAM;kBACA,MAAM;YACZ,MAAM;gBACF,MAAM;;YAPY,MAAM;gBAAc,MAAM;mBAAiB,MAAM;WAyBxF,CAAC;AAEF,eAAO,MAAM,iBAAiB;QAOgB,MAAM;UAAQ,MAAM;UAAQ,MAAM;YAAU,MAAM;2CAiB/F,CAAC;AAEF,eAAO,MAAM,uBAAuB,8HAuBnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,8GAqB/B,CAAC;AAEF,eAAO,MAAM,yBAAyB;QAOS,MAAM;YAAU,MAAM;;YAFhB,MAAM;YAAU,MAAM;WAmB1E,CAAC;AAEF,eAAO,MAAM,mBAAmB;aAac,OAAO;aAAW,MAAM;;cAJtD,MAAM;YACR,UAAU,GAAG,WAAW;WAmBrC,CAAC;AAEF,eAAO,MAAM,8BAA8B;QAeS,MAAM;WAAS,MAAM;;gBAVvD,MAAM;WACX,MAAM;kBACC,MAAM;kBACN,MAAM;uBACD,MAAM;wBACL,MAAM;kBACZ,MAAM;gBACR,MAAM;WAiBvB,CAAC;AAEF,eAAO,MAAM,eAAe;QAYS,MAAM;YAAU,MAAM;;gBAPzC,MAAM;cACR,MAAM;gBACJ,MAAM;YACV,MAAM;aACL,MAAM;WAkBpB,CAAC;AAEF,eAAO,MAAM,kBAAkB;QAMS,MAAM;cAAY,MAAM;;QAFjB,MAAM;cAAY,MAAM;WAgBtE,CAAC;AAEF,eAAO,MAAM,iBAAiB;QAMgB,MAAM;YAAU,MAAM;;QAFxB,MAAM;WAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;WAoBjF,CAAC;AAEF,eAAO,MAAM,iBAAiB,0FAgB7B,CAAC;AAEF,eAAO,MAAM,mBAAmB;QAcS,MAAM;YAAU,MAAM;;YALjD,MAAM;aACL,MAAM;YACP,MAAM;WAkBnB,CAAC;AAEF,eAAO,MAAM,uBAAuB;QAK6C,MAAM;;QADxC,MAAM;cAAY,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;WAevF,CAAC;AAMF,eAAO,MAAM,eAAe;;;;;;CAkB3B,CAAC"}
|