@varity-labs/ui-kit 2.0.0-beta.15 → 2.0.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/components/AI/ChatbotWidget.d.ts +1 -1
- package/dist/components/AI/ChatbotWidget.js +2 -2
- package/dist/components/AI/index.d.ts +6 -6
- package/dist/components/AI/index.js +3 -3
- package/dist/components/Analytics/EnhancedKPICard.js +1 -1
- package/dist/components/Analytics/index.d.ts +10 -10
- package/dist/components/Analytics/index.js +6 -6
- package/dist/components/Branding/index.d.ts +6 -6
- package/dist/components/Branding/index.js +3 -3
- package/dist/components/Dashboard/DashboardHeader.d.ts +1 -1
- package/dist/components/Dashboard/DashboardLayout.js +3 -3
- package/dist/components/Dashboard/DashboardSidebar.d.ts +1 -1
- package/dist/components/Dashboard/index.d.ts +12 -12
- package/dist/components/Dashboard/index.js +8 -8
- package/dist/components/Display/index.d.ts +3 -3
- package/dist/components/Display/index.js +3 -3
- package/dist/components/Feedback/ToastProvider.js +1 -1
- package/dist/components/Feedback/index.d.ts +5 -5
- package/dist/components/Feedback/index.js +3 -3
- package/dist/components/Feedback/useToast.d.ts +1 -1
- package/dist/components/Feedback/useToast.js +1 -1
- package/dist/components/Form/index.d.ts +7 -7
- package/dist/components/Form/index.js +7 -7
- package/dist/components/InAppWallet/EmailLoginButton.js +1 -1
- package/dist/components/InAppWallet/OnboardingFlow.js +3 -3
- package/dist/components/InAppWallet/SocialLoginButtons.js +1 -1
- package/dist/components/InAppWallet/index.d.ts +5 -5
- package/dist/components/InAppWallet/index.js +4 -4
- package/dist/components/Navigation/index.d.ts +2 -2
- package/dist/components/Navigation/index.js +2 -2
- package/dist/components/Onramp/index.d.ts +4 -4
- package/dist/components/Onramp/index.js +2 -2
- package/dist/components/Overlay/ConfirmDialog.js +2 -2
- package/dist/components/Overlay/index.d.ts +3 -3
- package/dist/components/Overlay/index.js +3 -3
- package/dist/components/PaymentWidget/PaymentGate.d.ts +1 -1
- package/dist/components/PaymentWidget/PaymentGate.js +2 -2
- package/dist/components/PaymentWidget/PaymentWidget.d.ts +1 -1
- package/dist/components/PaymentWidget/PaymentWidget.js +1 -1
- package/dist/components/PaymentWidget/index.d.ts +5 -5
- package/dist/components/PaymentWidget/index.js +4 -4
- package/dist/components/PaymentWidget/useSeamlessPayment.js +1 -1
- package/dist/components/PaymentWidget/useVarityPayment.d.ts +1 -1
- package/dist/components/Payments/CheckoutModal.d.ts +1 -1
- package/dist/components/Payments/CheckoutModal.js +1 -1
- package/dist/components/Payments/SubscriptionWidget.d.ts +1 -1
- package/dist/components/Payments/SubscriptionWidget.js +1 -1
- package/dist/components/Payments/constants.d.ts +1 -1
- package/dist/components/Payments/constants.js +1 -1
- package/dist/components/Payments/index.d.ts +5 -5
- package/dist/components/Payments/index.js +5 -5
- package/dist/components/Payments/usePayments.d.ts +1 -1
- package/dist/components/Payments/usePayments.js +2 -2
- package/dist/components/Privy/PrivyLoginButton.d.ts +3 -3
- package/dist/components/Privy/PrivyLoginButton.d.ts.map +1 -1
- package/dist/components/Privy/PrivyLoginButton.js +2 -2
- package/dist/components/Privy/PrivyLoginButton.js.map +1 -1
- package/dist/components/Privy/PrivyProtectedRoute.d.ts +3 -3
- package/dist/components/Privy/PrivyProtectedRoute.d.ts.map +1 -1
- package/dist/components/Privy/PrivyProtectedRoute.js +2 -2
- package/dist/components/Privy/PrivyProtectedRoute.js.map +1 -1
- package/dist/components/Privy/PrivyReadyGate.d.ts +3 -3
- package/dist/components/Privy/PrivyReadyGate.d.ts.map +1 -1
- package/dist/components/Privy/PrivyReadyGate.js +4 -4
- package/dist/components/Privy/PrivyReadyGate.js.map +1 -1
- package/dist/components/Privy/PrivyUserProfile.d.ts +3 -3
- package/dist/components/Privy/PrivyUserProfile.d.ts.map +1 -1
- package/dist/components/Privy/PrivyUserProfile.js +2 -2
- package/dist/components/Privy/PrivyUserProfile.js.map +1 -1
- package/dist/components/Privy/index.d.ts +14 -14
- package/dist/components/Privy/index.d.ts.map +1 -1
- package/dist/components/Privy/index.js +9 -9
- package/dist/components/Privy/index.js.map +1 -1
- package/dist/components/SIWE/AuthStatus.js +1 -1
- package/dist/components/SIWE/ProtectedRoute.js +2 -2
- package/dist/components/SIWE/SIWEButton.js +1 -1
- package/dist/components/SIWE/SIWEModal.js +2 -2
- package/dist/components/SIWE/index.d.ts +10 -10
- package/dist/components/SIWE/index.js +5 -5
- package/dist/components/index.d.ts +8 -8
- package/dist/components/index.js +10 -10
- package/dist/components/templates/Finance/FinanceDashboard.d.ts +1 -1
- package/dist/components/templates/Healthcare/HealthcareDashboard.d.ts +1 -1
- package/dist/components/templates/ISO/ISODashboard.d.ts +1 -1
- package/dist/components/templates/Retail/RetailDashboard.d.ts +1 -1
- package/dist/components/templates/index.d.ts +8 -8
- package/dist/components/templates/index.js +4 -4
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/web3/index.d.ts +4 -4
- package/dist/hooks/web3/index.js +4 -4
- package/dist/hooks/web3/useBlockExplorer.js +1 -1
- package/dist/hooks/web3/useUSDCFormat.js +1 -1
- package/dist/hooks/web3/useVarityWallet.js +1 -1
- package/dist/index.d.ts +28 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -66
- package/dist/index.js.map +1 -1
- package/dist/modules/analytics/AnalyticsClient.d.ts +1 -1
- package/dist/modules/analytics/index.d.ts +1 -1
- package/dist/modules/analytics/index.js +1 -1
- package/dist/modules/auth/AuthClient.d.ts +1 -1
- package/dist/modules/auth/index.d.ts +1 -1
- package/dist/modules/auth/index.js +1 -1
- package/dist/modules/cache/CacheClient.d.ts +1 -1
- package/dist/modules/compute/ComputeClient.d.ts +1 -1
- package/dist/modules/compute/index.d.ts +1 -1
- package/dist/modules/compute/index.js +1 -1
- package/dist/modules/export/ExportClient.d.ts +1 -1
- package/dist/modules/export/index.d.ts +1 -1
- package/dist/modules/export/index.js +1 -1
- package/dist/modules/forecasting/ForecastingClient.d.ts +1 -1
- package/dist/modules/forecasting/index.d.ts +1 -1
- package/dist/modules/forecasting/index.js +1 -1
- package/dist/modules/monitoring/MonitoringClient.d.ts +1 -1
- package/dist/modules/monitoring/index.d.ts +1 -1
- package/dist/modules/monitoring/index.js +1 -1
- package/dist/modules/notifications/NotificationsClient.d.ts +1 -1
- package/dist/modules/notifications/index.d.ts +1 -1
- package/dist/modules/notifications/index.js +1 -1
- package/dist/modules/oracle/OracleClient.d.ts +1 -1
- package/dist/modules/oracle/index.d.ts +1 -1
- package/dist/modules/oracle/index.js +1 -1
- package/dist/modules/storage/StorageClient.d.ts +1 -1
- package/dist/modules/storage/index.d.ts +1 -1
- package/dist/modules/storage/index.js +1 -1
- package/dist/modules/templates/TemplateDeploymentClient.d.ts +1 -1
- package/dist/modules/templates/index.d.ts +2 -2
- package/dist/modules/templates/index.js +1 -1
- package/dist/modules/webhooks/WebhooksClient.d.ts +1 -1
- package/dist/modules/webhooks/index.d.ts +1 -1
- package/dist/modules/webhooks/index.js +1 -1
- package/dist/modules/zk/ZKClient.d.ts +1 -1
- package/dist/modules/zk/index.d.ts +1 -1
- package/dist/modules/zk/index.js +1 -1
- package/dist/providers/ChainContext.js +1 -1
- package/dist/providers/PrivyProvider.d.ts +3 -3
- package/dist/providers/PrivyProvider.d.ts.map +1 -1
- package/dist/providers/PrivyProvider.js +2 -2
- package/dist/providers/PrivyProvider.js.map +1 -1
- package/dist/providers/PrivyStack.d.ts +3 -3
- package/dist/providers/PrivyStack.d.ts.map +1 -1
- package/dist/providers/PrivyStack.js +5 -5
- package/dist/providers/PrivyStack.js.map +1 -1
- package/dist/providers/VarityDashboardProvider.d.ts +1 -1
- package/dist/providers/VarityDashboardProvider.js +1 -1
- package/dist/providers/VarityProvider.d.ts +1 -1
- package/dist/providers/VarityProvider.js +1 -1
- package/dist/providers/index.d.ts +8 -8
- package/dist/providers/index.js +8 -8
- package/dist/tests/mocks/httpClient.mock.d.ts +1 -1
- package/dist/tests/mocks/httpClient.mock.js +1 -1
- package/dist/wallets/SimpleSmartWallet.js +1 -1
- package/dist/wallets/index.d.ts +3 -3
- package/dist/wallets/index.js +3 -3
- package/dist/web3/AddressDisplay/AddressDisplay.js +1 -1
- package/dist/web3/AmountInput/AmountInput.js +1 -1
- package/dist/web3/BalanceDisplay/BalanceDisplay.js +1 -1
- package/dist/web3/BlockExplorerLink/BlockExplorerLink.js +1 -1
- package/dist/web3/ConnectWallet/ConnectWallet.js +1 -1
- package/dist/web3/WalletBalance/WalletBalance.js +1 -1
- package/dist/web3/WalletDropdown/WalletDropdown.js +2 -2
- package/dist/web3/WalletInfo/WalletInfo.js +1 -1
- package/dist/web3/index.d.ts +10 -10
- package/dist/web3/index.js +10 -10
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -206,7 +206,7 @@ function ThemeToggle() {
|
|
|
206
206
|
|
|
207
207
|
```tsx
|
|
208
208
|
import {
|
|
209
|
-
|
|
209
|
+
AuthProvider,
|
|
210
210
|
DashboardLayout,
|
|
211
211
|
DashboardHeader,
|
|
212
212
|
DashboardSidebar,
|
|
@@ -263,7 +263,7 @@ function App() {
|
|
|
263
263
|
|
|
264
264
|
---
|
|
265
265
|
|
|
266
|
-
**Part of the [Varity SDK](https://github.com/varity-labs/varity-sdk)
|
|
266
|
+
**Part of the [Varity SDK](https://github.com/varity-labs/varity-sdk).** Deploy any app, AI agent, or LLM in 60 seconds. 60-80% cheaper than AWS.
|
|
267
267
|
|
|
268
268
|
[Documentation](https://docs.varity.so) | [GitHub](https://github.com/varity-labs/varity-sdk) | [Discord](https://discord.gg/7vWsdwa2Bg)
|
|
269
269
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Full-featured chatbot widget for conversational AI interactions.
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { Message } from './MessageBubble';
|
|
7
|
+
import { Message } from './MessageBubble.js';
|
|
8
8
|
export interface ChatbotWidgetProps {
|
|
9
9
|
/** Widget title */
|
|
10
10
|
title?: string;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Full-featured chatbot widget for conversational AI interactions.
|
|
5
5
|
*/
|
|
6
6
|
import React, { useState, useRef, useEffect } from 'react';
|
|
7
|
-
import { MessageBubble } from './MessageBubble';
|
|
8
|
-
import { InputBar } from './InputBar';
|
|
7
|
+
import { MessageBubble } from './MessageBubble.js';
|
|
8
|
+
import { InputBar } from './InputBar.js';
|
|
9
9
|
/**
|
|
10
10
|
* ChatbotWidget Component
|
|
11
11
|
*
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* AI-powered chatbot and conversational interface components.
|
|
5
5
|
*/
|
|
6
|
-
export { ChatbotWidget } from './ChatbotWidget';
|
|
7
|
-
export { MessageBubble } from './MessageBubble';
|
|
8
|
-
export { InputBar } from './InputBar';
|
|
9
|
-
export type { ChatbotWidgetProps } from './ChatbotWidget';
|
|
10
|
-
export type { MessageBubbleProps, Message } from './MessageBubble';
|
|
11
|
-
export type { InputBarProps } from './InputBar';
|
|
6
|
+
export { ChatbotWidget } from './ChatbotWidget.js';
|
|
7
|
+
export { MessageBubble } from './MessageBubble.js';
|
|
8
|
+
export { InputBar } from './InputBar.js';
|
|
9
|
+
export type { ChatbotWidgetProps } from './ChatbotWidget.js';
|
|
10
|
+
export type { MessageBubbleProps, Message } from './MessageBubble.js';
|
|
11
|
+
export type { InputBarProps } from './InputBar.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* AI-powered chatbot and conversational interface components.
|
|
5
5
|
*/
|
|
6
|
-
export { ChatbotWidget } from './ChatbotWidget';
|
|
7
|
-
export { MessageBubble } from './MessageBubble';
|
|
8
|
-
export { InputBar } from './InputBar';
|
|
6
|
+
export { ChatbotWidget } from './ChatbotWidget.js';
|
|
7
|
+
export { MessageBubble } from './MessageBubble.js';
|
|
8
|
+
export { InputBar } from './InputBar.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { HelpCircle, Clock, TrendingUp, TrendingDown, Minus } from 'lucide-react';
|
|
4
|
-
import { Sparkline, getSparklineColors } from './Sparkline';
|
|
4
|
+
import { Sparkline, getSparklineColors } from './Sparkline.js';
|
|
5
5
|
export function EnhancedKPICard({ title, value, change, icon, source, trend = 'neutral', color = 'blue', sparklineData, showSparkline = false, lastSynced, helpText, onClick, }) {
|
|
6
6
|
const colorClasses = {
|
|
7
7
|
blue: {
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Data visualization and analytics components for Varity dashboards.
|
|
5
5
|
*/
|
|
6
|
-
export { AnalyticsCard } from './AnalyticsCard';
|
|
7
|
-
export { ChartContainer } from './ChartContainer';
|
|
8
|
-
export { DataTable } from './DataTable';
|
|
9
|
-
export { MetricDisplay } from './MetricDisplay';
|
|
10
|
-
export { Sparkline, SPARKLINE_COLORS, getSparklineColors } from './Sparkline';
|
|
11
|
-
export { EnhancedKPICard } from './EnhancedKPICard';
|
|
12
|
-
export type { AnalyticsCardProps } from './AnalyticsCard';
|
|
13
|
-
export type { ChartContainerProps, ChartAction } from './ChartContainer';
|
|
14
|
-
export type { DataTableProps, DataTableColumn } from './DataTable';
|
|
15
|
-
export type { MetricDisplayProps } from './MetricDisplay';
|
|
6
|
+
export { AnalyticsCard } from './AnalyticsCard.js';
|
|
7
|
+
export { ChartContainer } from './ChartContainer.js';
|
|
8
|
+
export { DataTable } from './DataTable.js';
|
|
9
|
+
export { MetricDisplay } from './MetricDisplay.js';
|
|
10
|
+
export { Sparkline, SPARKLINE_COLORS, getSparklineColors } from './Sparkline.js';
|
|
11
|
+
export { EnhancedKPICard } from './EnhancedKPICard.js';
|
|
12
|
+
export type { AnalyticsCardProps } from './AnalyticsCard.js';
|
|
13
|
+
export type { ChartContainerProps, ChartAction } from './ChartContainer.js';
|
|
14
|
+
export type { DataTableProps, DataTableColumn } from './DataTable.js';
|
|
15
|
+
export type { MetricDisplayProps } from './MetricDisplay.js';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Data visualization and analytics components for Varity dashboards.
|
|
5
5
|
*/
|
|
6
|
-
export { AnalyticsCard } from './AnalyticsCard';
|
|
7
|
-
export { ChartContainer } from './ChartContainer';
|
|
8
|
-
export { DataTable } from './DataTable';
|
|
9
|
-
export { MetricDisplay } from './MetricDisplay';
|
|
10
|
-
export { Sparkline, SPARKLINE_COLORS, getSparklineColors } from './Sparkline';
|
|
11
|
-
export { EnhancedKPICard } from './EnhancedKPICard';
|
|
6
|
+
export { AnalyticsCard } from './AnalyticsCard.js';
|
|
7
|
+
export { ChartContainer } from './ChartContainer.js';
|
|
8
|
+
export { DataTable } from './DataTable.js';
|
|
9
|
+
export { MetricDisplay } from './MetricDisplay.js';
|
|
10
|
+
export { Sparkline, SPARKLINE_COLORS, getSparklineColors } from './Sparkline.js';
|
|
11
|
+
export { EnhancedKPICard } from './EnhancedKPICard.js';
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Branding and theming components for Varity dashboards.
|
|
5
5
|
*/
|
|
6
|
-
export { Logo } from './Logo';
|
|
7
|
-
export { Attribution, validateAttribution, monitorAttribution } from './Attribution';
|
|
8
|
-
export { ThemeProvider, useTheme, defaultTheme, themePresets } from './ThemeProvider';
|
|
9
|
-
export type { LogoProps } from './Logo';
|
|
10
|
-
export type { AttributionProps } from './Attribution';
|
|
11
|
-
export type { ThemeProviderProps, VarityTheme } from './ThemeProvider';
|
|
6
|
+
export { Logo } from './Logo.js';
|
|
7
|
+
export { Attribution, validateAttribution, monitorAttribution } from './Attribution.js';
|
|
8
|
+
export { ThemeProvider, useTheme, defaultTheme, themePresets } from './ThemeProvider.js';
|
|
9
|
+
export type { LogoProps } from './Logo.js';
|
|
10
|
+
export type { AttributionProps } from './Attribution.js';
|
|
11
|
+
export type { ThemeProviderProps, VarityTheme } from './ThemeProvider.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Branding and theming components for Varity dashboards.
|
|
5
5
|
*/
|
|
6
|
-
export { Logo } from './Logo';
|
|
7
|
-
export { Attribution, validateAttribution, monitorAttribution } from './Attribution';
|
|
8
|
-
export { ThemeProvider, useTheme, defaultTheme, themePresets } from './ThemeProvider';
|
|
6
|
+
export { Logo } from './Logo.js';
|
|
7
|
+
export { Attribution, validateAttribution, monitorAttribution } from './Attribution.js';
|
|
8
|
+
export { ThemeProvider, useTheme, defaultTheme, themePresets } from './ThemeProvider.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Displays user information, notifications, and quick actions.
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { UserInfo } from './DashboardLayout';
|
|
7
|
+
import { UserInfo } from './DashboardLayout.js';
|
|
8
8
|
export interface DashboardHeaderProps {
|
|
9
9
|
/** Header height in pixels */
|
|
10
10
|
height?: number;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Fully customizable through theming system.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { DashboardHeader } from './DashboardHeader';
|
|
9
|
-
import { DashboardSidebar } from './DashboardSidebar';
|
|
10
|
-
import { DashboardFooter } from './DashboardFooter';
|
|
8
|
+
import { DashboardHeader } from './DashboardHeader.js';
|
|
9
|
+
import { DashboardSidebar } from './DashboardSidebar.js';
|
|
10
|
+
import { DashboardFooter } from './DashboardFooter.js';
|
|
11
11
|
/**
|
|
12
12
|
* DashboardLayout Component
|
|
13
13
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides main navigation with collapsible menu items.
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { NavigationItem } from './DashboardLayout';
|
|
7
|
+
import { NavigationItem } from './DashboardLayout.js';
|
|
8
8
|
export interface DashboardSidebarProps {
|
|
9
9
|
/** Sidebar width in pixels */
|
|
10
10
|
width?: number;
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
* Complete dashboard layout system for Varity-powered applications.
|
|
5
5
|
* Includes layout components, data display components, and loading states.
|
|
6
6
|
*/
|
|
7
|
-
export { DashboardLayout } from './DashboardLayout';
|
|
8
|
-
export { DashboardHeader } from './DashboardHeader';
|
|
9
|
-
export { DashboardSidebar } from './DashboardSidebar';
|
|
10
|
-
export { DashboardFooter } from './DashboardFooter';
|
|
11
|
-
export { KPICard, type KPICardProps } from './KPICard';
|
|
12
|
-
export { StatusBadge, IntegrationStatus, type StatusBadgeProps, type StatusType, type IntegrationStatusProps } from './StatusBadge';
|
|
13
|
-
export { EmptyState, EmptyStatePresets, type EmptyStateProps } from './EmptyState';
|
|
14
|
-
export { LoadingSkeleton, SkeletonText, SkeletonCard, SkeletonTable, SkeletonList, type LoadingSkeletonProps, } from './LoadingSkeleton';
|
|
15
|
-
export type { DashboardLayoutProps, NavigationItem, UserInfo } from './DashboardLayout';
|
|
16
|
-
export type { DashboardHeaderProps } from './DashboardHeader';
|
|
17
|
-
export type { DashboardSidebarProps } from './DashboardSidebar';
|
|
18
|
-
export type { DashboardFooterProps, FooterLink } from './DashboardFooter';
|
|
7
|
+
export { DashboardLayout } from './DashboardLayout.js';
|
|
8
|
+
export { DashboardHeader } from './DashboardHeader.js';
|
|
9
|
+
export { DashboardSidebar } from './DashboardSidebar.js';
|
|
10
|
+
export { DashboardFooter } from './DashboardFooter.js';
|
|
11
|
+
export { KPICard, type KPICardProps } from './KPICard.js';
|
|
12
|
+
export { StatusBadge, IntegrationStatus, type StatusBadgeProps, type StatusType, type IntegrationStatusProps } from './StatusBadge.js';
|
|
13
|
+
export { EmptyState, EmptyStatePresets, type EmptyStateProps } from './EmptyState.js';
|
|
14
|
+
export { LoadingSkeleton, SkeletonText, SkeletonCard, SkeletonTable, SkeletonList, type LoadingSkeletonProps, } from './LoadingSkeleton.js';
|
|
15
|
+
export type { DashboardLayoutProps, NavigationItem, UserInfo } from './DashboardLayout.js';
|
|
16
|
+
export type { DashboardHeaderProps } from './DashboardHeader.js';
|
|
17
|
+
export type { DashboardSidebarProps } from './DashboardSidebar.js';
|
|
18
|
+
export type { DashboardFooterProps, FooterLink } from './DashboardFooter.js';
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* Includes layout components, data display components, and loading states.
|
|
6
6
|
*/
|
|
7
7
|
// Layout Components
|
|
8
|
-
export { DashboardLayout } from './DashboardLayout';
|
|
9
|
-
export { DashboardHeader } from './DashboardHeader';
|
|
10
|
-
export { DashboardSidebar } from './DashboardSidebar';
|
|
11
|
-
export { DashboardFooter } from './DashboardFooter';
|
|
8
|
+
export { DashboardLayout } from './DashboardLayout.js';
|
|
9
|
+
export { DashboardHeader } from './DashboardHeader.js';
|
|
10
|
+
export { DashboardSidebar } from './DashboardSidebar.js';
|
|
11
|
+
export { DashboardFooter } from './DashboardFooter.js';
|
|
12
12
|
// Data Display Components
|
|
13
|
-
export { KPICard } from './KPICard';
|
|
14
|
-
export { StatusBadge, IntegrationStatus } from './StatusBadge';
|
|
15
|
-
export { EmptyState, EmptyStatePresets } from './EmptyState';
|
|
13
|
+
export { KPICard } from './KPICard.js';
|
|
14
|
+
export { StatusBadge, IntegrationStatus } from './StatusBadge.js';
|
|
15
|
+
export { EmptyState, EmptyStatePresets } from './EmptyState.js';
|
|
16
16
|
// Loading States
|
|
17
|
-
export { LoadingSkeleton, SkeletonText, SkeletonCard, SkeletonTable, SkeletonList, } from './LoadingSkeleton';
|
|
17
|
+
export { LoadingSkeleton, SkeletonText, SkeletonCard, SkeletonTable, SkeletonList, } from './LoadingSkeleton.js';
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Visual display components for Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { Badge, PriorityBadge, ProjectStatusBadge, TaskStatusBadge, RoleBadge } from './Badge';
|
|
7
|
-
export { Avatar, AvatarGroup } from './Avatar';
|
|
8
|
-
export { ProgressBar } from './ProgressBar';
|
|
6
|
+
export { Badge, PriorityBadge, ProjectStatusBadge, TaskStatusBadge, RoleBadge } from './Badge.js';
|
|
7
|
+
export { Avatar, AvatarGroup } from './Avatar.js';
|
|
8
|
+
export { ProgressBar } from './ProgressBar.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Visual display components for Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { Badge, PriorityBadge, ProjectStatusBadge, TaskStatusBadge, RoleBadge } from './Badge';
|
|
7
|
-
export { Avatar, AvatarGroup } from './Avatar';
|
|
8
|
-
export { ProgressBar } from './ProgressBar';
|
|
6
|
+
export { Badge, PriorityBadge, ProjectStatusBadge, TaskStatusBadge, RoleBadge } from './Badge.js';
|
|
7
|
+
export { Avatar, AvatarGroup } from './Avatar.js';
|
|
8
|
+
export { ProgressBar } from './ProgressBar.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React, { createContext, useCallback, useState, } from 'react';
|
|
3
|
-
import { ToastItem, TOAST_DURATION, MAX_VISIBLE } from './Toast';
|
|
3
|
+
import { ToastItem, TOAST_DURATION, MAX_VISIBLE } from './Toast.js';
|
|
4
4
|
export const ToastContext = createContext(null);
|
|
5
5
|
let toastId = 0;
|
|
6
6
|
export function ToastProvider({ children }) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Toast notifications and feedback components for Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { ToastProvider } from './ToastProvider';
|
|
7
|
-
export { useToast } from './useToast';
|
|
8
|
-
export type { ToastContextValue } from './ToastProvider';
|
|
9
|
-
export type { Toast, ToastType } from './Toast';
|
|
10
|
-
export { Skeleton } from './Skeleton';
|
|
6
|
+
export { ToastProvider } from './ToastProvider.js';
|
|
7
|
+
export { useToast } from './useToast.js';
|
|
8
|
+
export type { ToastContextValue } from './ToastProvider.js';
|
|
9
|
+
export type { Toast, ToastType } from './Toast.js';
|
|
10
|
+
export { Skeleton } from './Skeleton.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Toast notifications and feedback components for Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { ToastProvider } from './ToastProvider';
|
|
7
|
-
export { useToast } from './useToast';
|
|
8
|
-
export { Skeleton } from './Skeleton';
|
|
6
|
+
export { ToastProvider } from './ToastProvider.js';
|
|
7
|
+
export { useToast } from './useToast.js';
|
|
8
|
+
export { Skeleton } from './Skeleton.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Input components for building forms in Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { Button } from './Button';
|
|
7
|
-
export { Input } from './Input';
|
|
8
|
-
export { Textarea } from './Textarea';
|
|
9
|
-
export { Select } from './Select';
|
|
10
|
-
export { Toggle } from './Toggle';
|
|
11
|
-
export { Checkbox } from './Checkbox';
|
|
12
|
-
export { RadioGroup } from './RadioGroup';
|
|
6
|
+
export { Button } from './Button.js';
|
|
7
|
+
export { Input } from './Input.js';
|
|
8
|
+
export { Textarea } from './Textarea.js';
|
|
9
|
+
export { Select } from './Select.js';
|
|
10
|
+
export { Toggle } from './Toggle.js';
|
|
11
|
+
export { Checkbox } from './Checkbox.js';
|
|
12
|
+
export { RadioGroup } from './RadioGroup.js';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Input components for building forms in Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { Button } from './Button';
|
|
7
|
-
export { Input } from './Input';
|
|
8
|
-
export { Textarea } from './Textarea';
|
|
9
|
-
export { Select } from './Select';
|
|
10
|
-
export { Toggle } from './Toggle';
|
|
11
|
-
export { Checkbox } from './Checkbox';
|
|
12
|
-
export { RadioGroup } from './RadioGroup';
|
|
6
|
+
export { Button } from './Button.js';
|
|
7
|
+
export { Input } from './Input.js';
|
|
8
|
+
export { Textarea } from './Textarea.js';
|
|
9
|
+
export { Select } from './Select.js';
|
|
10
|
+
export { Toggle } from './Toggle.js';
|
|
11
|
+
export { Checkbox } from './Checkbox.js';
|
|
12
|
+
export { RadioGroup } from './RadioGroup.js';
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
import React, { useState } from 'react';
|
|
16
|
-
import { useInAppWallet } from './InAppWalletProvider';
|
|
16
|
+
import { useInAppWallet } from './InAppWalletProvider.js';
|
|
17
17
|
import { getErrorMessage } from '@varity-labs/types';
|
|
18
18
|
export function EmailLoginButton({ onSuccess, onError, buttonClassName = '', inputClassName = '', placeholder = 'Enter your email', buttonText = 'Continue with Email', loadingText = 'Sending code...' }) {
|
|
19
19
|
const { loginWithEmail, isLoading } = useInAppWallet();
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
import React, { useState } from 'react';
|
|
16
|
-
import { useInAppWallet } from './InAppWalletProvider';
|
|
17
|
-
import { EmailLoginButton } from './EmailLoginButton';
|
|
18
|
-
import { SocialLoginButtons } from './SocialLoginButtons';
|
|
16
|
+
import { useInAppWallet } from './InAppWalletProvider.js';
|
|
17
|
+
import { EmailLoginButton } from './EmailLoginButton.js';
|
|
18
|
+
import { SocialLoginButtons } from './SocialLoginButtons.js';
|
|
19
19
|
export function OnboardingFlow({ onComplete, onSkip, skipBuyUSDC = false, companyName = 'Varity', companyLogo }) {
|
|
20
20
|
const { user, isAuthenticated } = useInAppWallet();
|
|
21
21
|
const [currentStep, setCurrentStep] = useState('welcome');
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import { useInAppWallet } from './InAppWalletProvider';
|
|
16
|
+
import { useInAppWallet } from './InAppWalletProvider.js';
|
|
17
17
|
import { getErrorMessage } from '@varity-labs/types';
|
|
18
18
|
const providerConfig = {
|
|
19
19
|
google: {
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* - Automatic custodial wallet creation
|
|
8
8
|
* - Complete onboarding flow
|
|
9
9
|
*/
|
|
10
|
-
export { InAppWalletProvider, useInAppWallet } from './InAppWalletProvider';
|
|
11
|
-
export { EmailLoginButton } from './EmailLoginButton';
|
|
12
|
-
export { SocialLoginButtons } from './SocialLoginButtons';
|
|
13
|
-
export { OnboardingFlow } from './OnboardingFlow';
|
|
14
|
-
export type { InAppWalletContextType } from './InAppWalletProvider';
|
|
10
|
+
export { InAppWalletProvider, useInAppWallet } from './InAppWalletProvider.js';
|
|
11
|
+
export { EmailLoginButton } from './EmailLoginButton.js';
|
|
12
|
+
export { SocialLoginButtons } from './SocialLoginButtons.js';
|
|
13
|
+
export { OnboardingFlow } from './OnboardingFlow.js';
|
|
14
|
+
export type { InAppWalletContextType } from './InAppWalletProvider.js';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* - Automatic custodial wallet creation
|
|
8
8
|
* - Complete onboarding flow
|
|
9
9
|
*/
|
|
10
|
-
export { InAppWalletProvider, useInAppWallet } from './InAppWalletProvider';
|
|
11
|
-
export { EmailLoginButton } from './EmailLoginButton';
|
|
12
|
-
export { SocialLoginButtons } from './SocialLoginButtons';
|
|
13
|
-
export { OnboardingFlow } from './OnboardingFlow';
|
|
10
|
+
export { InAppWalletProvider, useInAppWallet } from './InAppWalletProvider.js';
|
|
11
|
+
export { EmailLoginButton } from './EmailLoginButton.js';
|
|
12
|
+
export { SocialLoginButtons } from './SocialLoginButtons.js';
|
|
13
|
+
export { OnboardingFlow } from './OnboardingFlow.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Navigation components for Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { CommandPalette } from './CommandPalette';
|
|
7
|
-
export { Breadcrumb } from './Breadcrumb';
|
|
6
|
+
export { CommandPalette } from './CommandPalette.js';
|
|
7
|
+
export { Breadcrumb } from './Breadcrumb.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Navigation components for Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { CommandPalette } from './CommandPalette';
|
|
7
|
-
export { Breadcrumb } from './Breadcrumb';
|
|
6
|
+
export { CommandPalette } from './CommandPalette.js';
|
|
7
|
+
export { Breadcrumb } from './Breadcrumb.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* - Credit/Debit card
|
|
6
6
|
* - Apple Pay & Google Pay
|
|
7
7
|
*/
|
|
8
|
-
export { BuyUSDCButton } from './BuyUSDCButton';
|
|
9
|
-
export { OnrampWidget } from './OnrampWidget';
|
|
10
|
-
export type { BuyUSDCButtonProps } from './BuyUSDCButton';
|
|
11
|
-
export type { OnrampWidgetProps, Purchase } from './OnrampWidget';
|
|
8
|
+
export { BuyUSDCButton } from './BuyUSDCButton.js';
|
|
9
|
+
export { OnrampWidget } from './OnrampWidget.js';
|
|
10
|
+
export type { BuyUSDCButtonProps } from './BuyUSDCButton.js';
|
|
11
|
+
export type { OnrampWidgetProps, Purchase } from './OnrampWidget.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* - Credit/Debit card
|
|
6
6
|
* - Apple Pay & Google Pay
|
|
7
7
|
*/
|
|
8
|
-
export { BuyUSDCButton } from './BuyUSDCButton';
|
|
9
|
-
export { OnrampWidget } from './OnrampWidget';
|
|
8
|
+
export { BuyUSDCButton } from './BuyUSDCButton.js';
|
|
9
|
+
export { OnrampWidget } from './OnrampWidget.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Dialog } from './Dialog';
|
|
4
|
-
import { Button } from '../Form/Button';
|
|
3
|
+
import { Dialog } from './Dialog.js';
|
|
4
|
+
import { Button } from '../Form/Button.js';
|
|
5
5
|
export function ConfirmDialog({ open, onClose, onConfirm, title, description, confirmLabel = 'Delete', confirmVariant = 'danger', loading = false, }) {
|
|
6
6
|
return (React.createElement(Dialog, { open: open, onClose: onClose, title: title, description: description },
|
|
7
7
|
React.createElement("div", { className: "flex gap-2 pt-4" },
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Modal dialogs and overlays for Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { Dialog } from './Dialog';
|
|
7
|
-
export { ConfirmDialog } from './ConfirmDialog';
|
|
8
|
-
export { DropdownMenu } from './DropdownMenu';
|
|
6
|
+
export { Dialog } from './Dialog.js';
|
|
7
|
+
export { ConfirmDialog } from './ConfirmDialog.js';
|
|
8
|
+
export { DropdownMenu } from './DropdownMenu.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Modal dialogs and overlays for Varity dashboards
|
|
5
5
|
*/
|
|
6
|
-
export { Dialog } from './Dialog';
|
|
7
|
-
export { ConfirmDialog } from './ConfirmDialog';
|
|
8
|
-
export { DropdownMenu } from './DropdownMenu';
|
|
6
|
+
export { Dialog } from './Dialog.js';
|
|
7
|
+
export { ConfirmDialog } from './ConfirmDialog.js';
|
|
8
|
+
export { DropdownMenu } from './DropdownMenu.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import { useVarityPayment } from './useVarityPayment';
|
|
22
|
-
import { PaymentWidget } from './PaymentWidget';
|
|
21
|
+
import { useVarityPayment } from './useVarityPayment.js';
|
|
22
|
+
import { PaymentWidget } from './PaymentWidget.js';
|
|
23
23
|
/**
|
|
24
24
|
* PaymentGate - Paywall component for premium content
|
|
25
25
|
*
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* const { hasPurchased, purchase } = useVarityPayment({ appId: 123 });
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export { PaymentWidget } from './PaymentWidget';
|
|
26
|
-
export { PaymentGate } from './PaymentGate';
|
|
27
|
-
export { useVarityPayment } from './useVarityPayment';
|
|
28
|
-
export type { PaymentWidgetProps, PaymentGateProps, UseVarityPaymentReturn, UseVarityPaymentOptions, AppPricing, PaymentType, } from './types';
|
|
29
|
-
export { VARITY_PAYMENTS_ADDRESS, VARITY_TREASURY_ADDRESS, PLATFORM_FEE_BPS, VARITY_PAYMENTS_ABI, } from './types';
|
|
25
|
+
export { PaymentWidget } from './PaymentWidget.js';
|
|
26
|
+
export { PaymentGate } from './PaymentGate.js';
|
|
27
|
+
export { useVarityPayment } from './useVarityPayment.js';
|
|
28
|
+
export type { PaymentWidgetProps, PaymentGateProps, UseVarityPaymentReturn, UseVarityPaymentOptions, AppPricing, PaymentType, } from './types.js';
|
|
29
|
+
export { VARITY_PAYMENTS_ADDRESS, VARITY_TREASURY_ADDRESS, PLATFORM_FEE_BPS, VARITY_PAYMENTS_ABI, } from './types.js';
|
|
30
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
// Components
|
|
26
|
-
export { PaymentWidget } from './PaymentWidget';
|
|
27
|
-
export { PaymentGate } from './PaymentGate';
|
|
26
|
+
export { PaymentWidget } from './PaymentWidget.js';
|
|
27
|
+
export { PaymentGate } from './PaymentGate.js';
|
|
28
28
|
// Hooks
|
|
29
|
-
export { useVarityPayment } from './useVarityPayment';
|
|
29
|
+
export { useVarityPayment } from './useVarityPayment.js';
|
|
30
30
|
// Constants
|
|
31
|
-
export { VARITY_PAYMENTS_ADDRESS, VARITY_TREASURY_ADDRESS, PLATFORM_FEE_BPS, VARITY_PAYMENTS_ABI, } from './types';
|
|
31
|
+
export { VARITY_PAYMENTS_ADDRESS, VARITY_TREASURY_ADDRESS, PLATFORM_FEE_BPS, VARITY_PAYMENTS_ABI, } from './types.js';
|
|
32
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { useCallback, useState } from 'react';
|
|
20
20
|
import { useFundWallet } from '@privy-io/react-auth';
|
|
21
|
-
import { useVarityPayment } from './useVarityPayment';
|
|
21
|
+
import { useVarityPayment } from './useVarityPayment.js';
|
|
22
22
|
const USDC_ADDRESS = '0xaf88d065e77c8cC2239327C5EDb3A432268e5831'; // Arbitrum One USDC
|
|
23
23
|
const VARITY_PAYMENTS_ADDRESS = '0x0568cf3b5b9c94542aa8d32eb51ffa38912fc48c';
|
|
24
24
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This hook currently provides the state API so consuming components compile
|
|
7
7
|
* and run without errors while the payment backend is finalised.
|
|
8
8
|
*/
|
|
9
|
-
import { UseVarityPaymentReturn, UseVarityPaymentOptions } from './types';
|
|
9
|
+
import { UseVarityPaymentReturn, UseVarityPaymentOptions } from './types.js';
|
|
10
10
|
/**
|
|
11
11
|
* Hook for managing app purchase state
|
|
12
12
|
*
|