randmarcomps 1.652.0 → 1.653.0
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/App.d.ts +3 -0
- package/dist/api-config-context.d.ts +9 -0
- package/dist/chat-context.d.ts +14 -0
- package/dist/components/pages/explore-manufacturers.d.ts +6 -0
- package/dist/components/pages/manufacturer-overview/components/billing-info.d.ts +9 -0
- package/dist/components/pages/manufacturer-overview/components/credit-finance-card.d.ts +7 -0
- package/dist/components/pages/manufacturer-overview/components/inventory-finance-card.d.ts +7 -0
- package/dist/components/pages/manufacturer-overview/components/open-to-work.d.ts +8 -0
- package/dist/components/pages/manufacturer-overview/components/public-info.d.ts +9 -0
- package/dist/components/pages/manufacturer-overview/components/qualifications.d.ts +9 -0
- package/dist/components/pages/manufacturer-overview/components/reports.d.ts +8 -0
- package/dist/components/pages/manufacturer-overview/components/reseller-orders.d.ts +8 -0
- package/dist/components/pages/manufacturer-overview/view.d.ts +10 -0
- package/dist/components/pages/partner-relationship/components/manufacturer-categories-stats.d.ts +8 -0
- package/dist/components/pages/partner-relationship/components/manufacturer-categories.d.ts +8 -0
- package/dist/components/pages/partner-relationship/components/manufacturer-category-summary.d.ts +11 -0
- package/dist/components/pages/partner-relationship/components/manufacturer-products.d.ts +8 -0
- package/dist/components/pages/partner-relationship/view.d.ts +9 -0
- package/dist/components/pages/product-overview/components/invoices-table.d.ts +8 -0
- package/dist/components/pages/product-overview/components/logs-table.d.ts +7 -0
- package/dist/components/pages/product-overview/components/purchase-orders-table.d.ts +8 -0
- package/dist/components/pages/product-overview/components/receipts-table.d.ts +8 -0
- package/dist/components/pages/product-overview/components/requisitions-table.d.ts +8 -0
- package/dist/components/pages/product-overview/view.d.ts +16 -0
- package/dist/components/pages/reseller-overview/components/account-tier.d.ts +10 -0
- package/dist/components/pages/reseller-overview/components/billing-card.d.ts +12 -0
- package/dist/components/pages/reseller-overview/components/order-categories.d.ts +7 -0
- package/dist/components/pages/reseller-overview/components/public-info.d.ts +10 -0
- package/dist/components/pages/reseller-overview/components/reports-section.d.ts +8 -0
- package/dist/components/pages/reseller-overview/components/sales-chart-card.d.ts +21 -0
- package/dist/components/pages/reseller-overview/components/sales-data.d.ts +8 -0
- package/dist/components/pages/reseller-overview/components/upgrade-tier-modal.d.ts +9 -0
- package/dist/components/pages/reseller-overview/view.d.ts +12 -0
- package/dist/components/pages/search/components/grid.d.ts +42 -0
- package/dist/components/pages/search/components/search-no-results-card.d.ts +13 -0
- package/dist/components/pages/search/components/search-results-header.d.ts +11 -0
- package/dist/components/pages/search/components/search-results-skeleton.d.ts +9 -0
- package/dist/components/pages/search/view.d.ts +18 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/active-orders-card.d.ts +7 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/api-image.d.ts +7 -0
- package/dist/components/ui/areacharts.d.ts +47 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatarfooter.d.ts +9 -0
- package/dist/components/ui/badge.d.ts +11 -0
- package/dist/components/ui/button.d.ts +19 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/category-card.d.ts +6 -0
- package/dist/components/ui/charttooltipcontent.d.ts +14 -0
- package/dist/components/ui/chat/ChatLeftSidebar.d.ts +17 -0
- package/dist/components/ui/chat/ChatMainArea.d.ts +16 -0
- package/dist/components/ui/chat/ChatRightSidebar.d.ts +10 -0
- package/dist/components/ui/chat/UserSetupForm.d.ts +4 -0
- package/dist/components/ui/chat/ai-chat-layout.d.ts +16 -0
- package/dist/components/ui/chat/assistant-chat.d.ts +6 -0
- package/dist/components/ui/chat/chat-layout.d.ts +7 -0
- package/dist/components/ui/chat/chat-list.d.ts +9 -0
- package/dist/components/ui/chat/chat-messages.d.ts +20 -0
- package/dist/components/ui/chat/chat.d.ts +23 -0
- package/dist/components/ui/chat/debug-message-display.d.ts +4 -0
- package/dist/components/ui/checkbox-card-list.d.ts +31 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/command.d.ts +80 -0
- package/dist/components/ui/country-flag.d.ts +7 -0
- package/dist/components/ui/data-refresh-assistant-cluster.d.ts +13 -0
- package/dist/components/ui/data-table.d.ts +12 -0
- package/dist/components/ui/date-picker.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts +26 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/external-product-card.d.ts +12 -0
- package/dist/components/ui/general-document-card.d.ts +6 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input.d.ts +8 -0
- package/dist/components/ui/invoice-card.d.ts +6 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/layout.d.ts +18 -0
- package/dist/components/ui/manufacturer-card.d.ts +12 -0
- package/dist/components/ui/manufacturer-get-started-button.d.ts +17 -0
- package/dist/components/ui/manufacturer-reordering-card.d.ts +11 -0
- package/dist/components/ui/multi-select.d.ts +10 -0
- package/dist/components/ui/navbar-route-matcher.d.ts +2 -0
- package/dist/components/ui/navbar.d.ts +19 -0
- package/dist/components/ui/opportunities-table.d.ts +8 -0
- package/dist/components/ui/order-card.d.ts +6 -0
- package/dist/components/ui/orders-card.d.ts +9 -0
- package/dist/components/ui/page-header.d.ts +6 -0
- package/dist/components/ui/partner-actions.d.ts +7 -0
- package/dist/components/ui/partner-card-header.d.ts +26 -0
- package/dist/components/ui/partner-card.d.ts +16 -0
- package/dist/components/ui/partner-logo.d.ts +10 -0
- package/dist/components/ui/partner-page-shell.d.ts +10 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/preloader-black-icon.json.d.ts +1240 -0
- package/dist/components/ui/preloader-icon.d.ts +5 -0
- package/dist/components/ui/preloader-white-icon.json.d.ts +1363 -0
- package/dist/components/ui/preloader.d.ts +6 -0
- package/dist/components/ui/product-card.d.ts +18 -0
- package/dist/components/ui/product-image-carousel.d.ts +10 -0
- package/dist/components/ui/product-image.d.ts +23 -0
- package/dist/components/ui/product-inventory-button.d.ts +11 -0
- package/dist/components/ui/product-inventory-grid.d.ts +8 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/qualification-badge.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/refresh-cluster.d.ts +15 -0
- package/dist/components/ui/reseller-billing-overview-card.d.ts +9 -0
- package/dist/components/ui/reseller-card.d.ts +10 -0
- package/dist/components/ui/reseller-qualifications-card.d.ts +7 -0
- package/dist/components/ui/returns-table.d.ts +8 -0
- package/dist/components/ui/rich-text-editor.d.ts +7 -0
- package/dist/components/ui/rm-body-zone.d.ts +3 -0
- package/dist/components/ui/rm-page-header.d.ts +22 -0
- package/dist/components/ui/sales-chart.d.ts +21 -0
- package/dist/components/ui/sales-overview-card.d.ts +8 -0
- package/dist/components/ui/scroll-area.d.ts +8 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/shell-header.d.ts +3 -0
- package/dist/components/ui/shipment-card.d.ts +6 -0
- package/dist/components/ui/sidebar.d.ts +57 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/summary-overview-card.d.ts +25 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/system-log-feed.d.ts +11 -0
- package/dist/components/ui/system-log-feed.helpers.d.ts +16 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toast.d.ts +15 -0
- package/dist/components/ui/toaster.d.ts +1 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/top-percent-treemap.d.ts +14 -0
- package/dist/components/ui/topbar.d.ts +7 -0
- package/dist/components/ui/treemap.d.ts +16 -0
- package/dist/components/ui/unsaved-changes-dialog.d.ts +11 -0
- package/dist/custom-api-types.d.ts +8 -0
- package/dist/hooks/use-gemini.d.ts +51 -0
- package/dist/hooks/use-intersection-observer.d.ts +9 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-partnership-assistant-prompt.d.ts +3 -0
- package/dist/hooks/use-router-navigation-guard.d.ts +11 -0
- package/dist/hooks/use-sidebar.d.ts +12 -0
- package/dist/hooks/use-toast.d.ts +20 -0
- package/dist/hooks/useAIAssistant.d.ts +32 -0
- package/dist/lib/utils.d.ts +48 -0
- package/dist/lib.d.ts +96 -0
- package/dist/main.d.ts +0 -0
- package/dist/portal-theme-provider.d.ts +8 -0
- package/dist/randmarcomps.cjs +25 -25
- package/dist/randmarcomps.js +4491 -4567
- package/dist/stories/ActiveOrdersCard.stories.d.ts +23 -0
- package/dist/stories/AlertDialog.stories.d.ts +8 -0
- package/dist/stories/AreaChart.stories.d.ts +64 -0
- package/dist/stories/Avatar.stories.d.ts +20 -0
- package/dist/stories/Badge.stories.d.ts +36 -0
- package/dist/stories/Button.stories.d.ts +32 -0
- package/dist/stories/Card.stories.d.ts +18 -0
- package/dist/stories/CheckboxCardList.stories.d.ts +9 -0
- package/dist/stories/DataRefreshAssistantCluster.stories.d.ts +14 -0
- package/dist/stories/DataTable.stories.d.ts +21 -0
- package/dist/stories/Dialog.stories.d.ts +19 -0
- package/dist/stories/DropdownMenu.stories.d.ts +26 -0
- package/dist/stories/ExploreManufacturers.stories.d.ts +6 -0
- package/dist/stories/ExternalProductCard.stories.d.ts +20 -0
- package/dist/stories/Input.stories.d.ts +22 -0
- package/dist/stories/ManufacturerCard.stories.d.ts +49 -0
- package/dist/stories/ManufacturerGetStartedButton.stories.d.ts +9 -0
- package/dist/stories/ManufacturerReorderingCard.stories.d.ts +14 -0
- package/dist/stories/MaskedInput.stories.d.ts +15 -0
- package/dist/stories/MultiSelect.stories.d.ts +32 -0
- package/dist/stories/Navbar.stories.d.ts +28 -0
- package/dist/stories/NavigationShell.stories.d.ts +20 -0
- package/dist/stories/PageHeader.stories.d.ts +9 -0
- package/dist/stories/PartnerCard.stories.d.ts +21 -0
- package/dist/stories/PortalThemes.stories.d.ts +11 -0
- package/dist/stories/Preloader.stories.d.ts +18 -0
- package/dist/stories/ProductCard.stories.d.ts +28 -0
- package/dist/stories/ProductImage.stories.d.ts +26 -0
- package/dist/stories/ProductImageCarousel.stories.d.ts +12 -0
- package/dist/stories/ProductInventoryGrid.stories.d.ts +27 -0
- package/dist/stories/RefreshCluster.stories.d.ts +15 -0
- package/dist/stories/ResellerBillingOverviewCard.stories.d.ts +27 -0
- package/dist/stories/ResellerCard.stories.d.ts +49 -0
- package/dist/stories/ResellerQualificationsCard.stories.d.ts +21 -0
- package/dist/stories/RichTextEditor.stories.d.ts +11 -0
- package/dist/stories/RmPageHeader.stories.d.ts +22 -0
- package/dist/stories/SalesOverviewCard.stories.d.ts +23 -0
- package/dist/stories/ScrollArea.stories.d.ts +16 -0
- package/dist/stories/SearchExperience.stories.d.ts +17 -0
- package/dist/stories/Select.stories.d.ts +13 -0
- package/dist/stories/Skeleton.stories.d.ts +20 -0
- package/dist/stories/SummaryOverviewCard.stories.d.ts +15 -0
- package/dist/stories/Switch.stories.d.ts +14 -0
- package/dist/stories/SystemLogFeed.stories.d.ts +20 -0
- package/dist/stories/Tabs.stories.d.ts +17 -0
- package/dist/stories/Tooltip.stories.d.ts +17 -0
- package/dist/stories/Topbar.stories.d.ts +27 -0
- package/dist/stories/Treemap.stories.d.ts +12 -0
- package/dist/utils/api-url.d.ts +13 -0
- package/dist/utils/assistant-mcp.d.ts +8 -0
- package/dist/utils/randmar-api-constants.d.ts +3 -0
- package/package.json +6 -9
- package/dist/randmarcomps.d.ts +0 -1455
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface RandmarApiConfig {
|
|
3
|
+
swaggerJsonUrl: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function RandmarApiConfigProvider({ swaggerJsonUrl, children, }: {
|
|
6
|
+
swaggerJsonUrl?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export declare function useRandmarApiConfig(): RandmarApiConfig;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { AIChatLayoutHandle } from './components/ui/chat/ai-chat-layout';
|
|
3
|
+
export interface ChatContextType {
|
|
4
|
+
sendMessage: (message?: string, hiddenMessage?: string, sopID?: string) => boolean;
|
|
5
|
+
sendMessageWithClear: (message?: string, hiddenMessage?: string, sopID?: string) => boolean;
|
|
6
|
+
chatRef: React.RefObject<AIChatLayoutHandle | null>;
|
|
7
|
+
hasUnreads: boolean;
|
|
8
|
+
setHasUnreads: (value: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ChatProvider: React.FC<{
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const useChat: () => ChatContextType;
|
|
14
|
+
export declare const useOptionalChat: () => ChatContextType | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Manufacturer } from 'randmar-api-client';
|
|
2
|
+
interface IProps {
|
|
3
|
+
manufacturer?: Manufacturer;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onUnsavedChanges?: (hasChanges: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ManufacturerBillingInfoSection({ manufacturer, readonly, isLoading, onUnsavedChanges }: IProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Manufacturer } from 'randmar-api-client';
|
|
2
|
+
interface ManufacturerCreditFinanceCardProps {
|
|
3
|
+
manufacturer: Manufacturer | undefined;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
}
|
|
6
|
+
export default function ManufacturerCreditFinanceCard({ manufacturer, isLoading, }: ManufacturerCreditFinanceCardProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Manufacturer } from 'randmar-api-client';
|
|
2
|
+
interface ManufacturerInventoryFinanceCardProps {
|
|
3
|
+
manufacturer: Manufacturer | undefined;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
}
|
|
6
|
+
export default function ManufacturerInventoryFinanceCard({ manufacturer, isLoading }: ManufacturerInventoryFinanceCardProps): import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Manufacturer } from 'randmar-api-client';
|
|
2
|
+
interface IProps {
|
|
3
|
+
manufacturer?: Manufacturer;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function OpenToWorkSection({ manufacturer, readonly, isLoading }: IProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Manufacturer } from 'randmar-api-client';
|
|
2
|
+
interface IProps {
|
|
3
|
+
manufacturer?: Manufacturer;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onUnsavedChanges?: (hasChanges: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ManufacturerPublicInfoSection({ manufacturer, readonly, isLoading, onUnsavedChanges }: IProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Manufacturer } from 'randmar-api-client';
|
|
2
|
+
interface IProps {
|
|
3
|
+
manufacturer?: Manufacturer;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onUnsavedChanges?: (hasChanges: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ManufacturerQualificationsSection({ manufacturer, readonly, isLoading, onUnsavedChanges }: IProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
manufacturerId: string;
|
|
4
|
+
userEmail?: string;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function ManufacturerReportsSection({ manufacturerId, userEmail, isLoading }: IProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrderDetail } from 'randmar-api-client';
|
|
2
|
+
interface IProps {
|
|
3
|
+
manufacturerId: string;
|
|
4
|
+
activeOrders?: OrderDetail[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function ManufacturerResellerOrdersSection(props: IProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Manufacturer } from 'randmar-api-client';
|
|
2
|
+
interface ManufacturerOverviewPageProps {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
readonly: boolean;
|
|
5
|
+
withReports?: boolean;
|
|
6
|
+
userEmail?: string;
|
|
7
|
+
manufacturer?: Manufacturer;
|
|
8
|
+
}
|
|
9
|
+
export default function ManufacturerOverviewPage({ applicationId, readonly, withReports, manufacturer, userEmail, }: ManufacturerOverviewPageProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/components/pages/partner-relationship/components/manufacturer-categories-stats.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ManufacturerCategory } from 'randmar-api-client';
|
|
2
|
+
interface ManufacturerCategoriesStatsProps {
|
|
3
|
+
appID: string;
|
|
4
|
+
manufID: string;
|
|
5
|
+
categories?: ManufacturerCategory[];
|
|
6
|
+
}
|
|
7
|
+
export declare function ManufacturerCategoriesStats(props: ManufacturerCategoriesStatsProps): import("react").JSX.Element[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ManufacturerCategory } from 'randmar-api-client';
|
|
2
|
+
interface ProductCategoryListProps {
|
|
3
|
+
categories: ManufacturerCategory[];
|
|
4
|
+
activeCategory: string;
|
|
5
|
+
onSelectCategory: (category: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function ManufacturerCategories({ categories, activeCategory, onSelectCategory }: ProductCategoryListProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
package/dist/components/pages/partner-relationship/components/manufacturer-category-summary.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface CardData {
|
|
2
|
+
name: string;
|
|
3
|
+
niche: string;
|
|
4
|
+
productsNumber: number;
|
|
5
|
+
autoreorder: boolean;
|
|
6
|
+
starred: boolean;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function ManufacturerCategorySummary({ name, niche, productsNumber, autoreorder, starred, isLoading, children }: CardData): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Manufacturer } from 'randmar-api-client';
|
|
2
|
+
interface IProps {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
manufacturer: Manufacturer;
|
|
5
|
+
shopifyHostName: string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function ManufacturerProducts({ applicationId, manufacturer, shopifyHostName }: IProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface PartnerRelationshipPageProps {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
partnerId: string;
|
|
4
|
+
userEmail: string;
|
|
5
|
+
shopifyHostName: string | undefined;
|
|
6
|
+
isSuperAdmin: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function PartnerRelationshipPage({ applicationId, partnerId, userEmail, shopifyHostName, isSuperAdmin, }: PartnerRelationshipPageProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Invoice } from 'randmar-api-client';
|
|
2
|
+
interface InvoicesTableProps {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
invoices?: Invoice[] | null;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function InvoicesTable({ applicationId, invoices, loading, }: InvoicesTableProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PurchaseOrderDetail } from 'randmar-api-client';
|
|
2
|
+
interface PurchaseOrdersTableProps {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
purchaseOrders?: PurchaseOrderDetail[] | null;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function PurchaseOrdersTable({ applicationId, purchaseOrders, loading, }: PurchaseOrdersTableProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Receipt } from 'randmar-api-client';
|
|
2
|
+
interface ReceiptsTableProps {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
receipts?: Receipt[] | null;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function ReceiptsTable({ applicationId, receipts, loading, }: ReceiptsTableProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomRequisition } from '../../../../custom-api-types';
|
|
2
|
+
interface RequisitionsTableProps {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
requisitions?: CustomRequisition[] | null;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function RequisitionsTable({ applicationId, requisitions, loading, }: RequisitionsTableProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomProduct } from '../../../custom-api-types';
|
|
2
|
+
interface IProps {
|
|
3
|
+
applicationId: string;
|
|
4
|
+
sku?: string;
|
|
5
|
+
product?: CustomProduct;
|
|
6
|
+
productDefaultOpportunityNumber?: string;
|
|
7
|
+
productOnAddToCart?: (state: {
|
|
8
|
+
quantity: number;
|
|
9
|
+
bidNumber: string | null;
|
|
10
|
+
}) => void;
|
|
11
|
+
productAddingToCart?: boolean;
|
|
12
|
+
productShopifyHostname?: string;
|
|
13
|
+
productCustomAction?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export default function ProductOverviewPage({ applicationId, sku, product: givenProduct, productDefaultOpportunityNumber, productOnAddToCart, productAddingToCart, productShopifyHostname, productCustomAction }: IProps): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Reseller } from 'randmar-api-client';
|
|
2
|
+
interface IProps {
|
|
3
|
+
reseller: Reseller;
|
|
4
|
+
appID: string;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
readonly: boolean;
|
|
7
|
+
isSuperAdmin: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const AccountTier: ({ isSuperAdmin, readonly, reseller, appID, isLoading }: IProps) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Reseller } from 'randmar-api-client';
|
|
3
|
+
interface IProps {
|
|
4
|
+
appID: string;
|
|
5
|
+
reseller: Reseller;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
withoutReports: boolean;
|
|
8
|
+
userEmail?: string;
|
|
9
|
+
isSuperAdmin: boolean;
|
|
10
|
+
}
|
|
11
|
+
export default function BillingCard({ appID, reseller, isLoading, withoutReports, userEmail, isSuperAdmin }: IProps): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Reseller } from 'randmar-api-client';
|
|
2
|
+
interface IProps {
|
|
3
|
+
reseller: Reseller;
|
|
4
|
+
appID: string;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
readonly: boolean;
|
|
7
|
+
onUnsavedChanges?: (hasChanges: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const PublicInfo: ({ reseller, appID, isLoading, readonly, onUnsavedChanges }: IProps) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SalesStatistic } from 'randmar-api-client';
|
|
2
|
+
interface SalesChartCardProps {
|
|
3
|
+
/** The primary data source for detailed statistics, passed to the SalesChart. */
|
|
4
|
+
statistics: SalesStatistic[];
|
|
5
|
+
/** The loading state of the data. When true, a skeleton is displayed. */
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
/** The time aggregation mode for the chart. Defaults to 'month'. */
|
|
8
|
+
mode?: "month" | "week";
|
|
9
|
+
/** The height of the chart. Defaults to 300. */
|
|
10
|
+
chartHeight?: number;
|
|
11
|
+
/** Additional class names for the outer Card component. */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** The size variant of the chart, affecting margins and element visibility. */
|
|
14
|
+
size?: "default" | "mini";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A Card component that wraps the SalesChart, handling the title, layout,
|
|
18
|
+
* and loading state with a skeleton.
|
|
19
|
+
*/
|
|
20
|
+
export declare function SalesChartCard({ statistics, loading, mode, chartHeight, className, size, }: SalesChartCardProps): import("react").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SalesData } from 'randmar-api-client';
|
|
2
|
+
interface SalesSummaryProps {
|
|
3
|
+
fiscalYearMonthStart?: number;
|
|
4
|
+
salesData?: SalesData;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
}
|
|
7
|
+
export default function SalesSummary({ fiscalYearMonthStart, salesData, isLoading }: SalesSummaryProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface IProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
setOpen: (open: boolean) => void;
|
|
5
|
+
tier: string;
|
|
6
|
+
onTierChange: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ChangePricingTierModal({ open, setOpen, tier, onTierChange, isLoading }: IProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Reseller as ResellerType } from 'randmar-api-client';
|
|
2
|
+
interface IProps {
|
|
3
|
+
appID: string;
|
|
4
|
+
readonly: boolean;
|
|
5
|
+
userEmail: string;
|
|
6
|
+
isSuperAdmin: boolean;
|
|
7
|
+
reseller?: ResellerType;
|
|
8
|
+
withoutReports?: boolean;
|
|
9
|
+
loadFullAfterSummary?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export default function ResellerOverview({ appID, reseller, readonly, userEmail, isSuperAdmin, withoutReports, loadFullAfterSummary, }: IProps): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Defines the number of grid columns for responsive breakpoints.
|
|
4
|
+
*/
|
|
5
|
+
type ResponsiveCols = {
|
|
6
|
+
base?: number;
|
|
7
|
+
sm?: number;
|
|
8
|
+
md?: number;
|
|
9
|
+
lg?: number;
|
|
10
|
+
xl?: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The expected structure for each group returned by the `groupBy` function.
|
|
14
|
+
*/
|
|
15
|
+
export interface SearchPageResultGroup<T> {
|
|
16
|
+
items: T[];
|
|
17
|
+
gridCols?: ResponsiveCols;
|
|
18
|
+
}
|
|
19
|
+
interface SearchPageGridProps<T> {
|
|
20
|
+
/**
|
|
21
|
+
* The raw array of search result items.
|
|
22
|
+
*/
|
|
23
|
+
results: T[];
|
|
24
|
+
/**
|
|
25
|
+
* A function that takes the full results array and returns an object
|
|
26
|
+
* where keys are group titles and values are objects containing the
|
|
27
|
+
* items and an optional grid configuration for that group.
|
|
28
|
+
*/
|
|
29
|
+
groupBy: (results: T[]) => Record<string, SearchPageResultGroup<T>>;
|
|
30
|
+
/**
|
|
31
|
+
* A function that receives a single item and its index, and returns
|
|
32
|
+
* the React component to render for that item.
|
|
33
|
+
*/
|
|
34
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A generic, centralized component for displaying grouped search results in a grid.
|
|
38
|
+
* It display a responsive grid layout and leaves the rendering of individual items
|
|
39
|
+
* to the consuming application via the `renderItem` prop.
|
|
40
|
+
*/
|
|
41
|
+
export declare const SearchPageGrid: <T>({ results, groupBy, renderItem, }: SearchPageGridProps<T>) => React.JSX.Element;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SearchNoResultsCardProps {
|
|
3
|
+
query: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
tips?: string[];
|
|
6
|
+
onReloadSearch?: () => void;
|
|
7
|
+
onAssistantClick?: () => void;
|
|
8
|
+
reloadLabel?: string;
|
|
9
|
+
assistantLabel?: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function SearchNoResultsCard({ query, subtitle, tips, onReloadSearch, onAssistantClick, reloadLabel, assistantLabel, icon, className, }: SearchNoResultsCardProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SearchResultsHeaderProps {
|
|
3
|
+
query?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
actions?: React.ReactNode;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
contentClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function SearchResultsHeader({ query, title, subtitle, actions, children, className, contentClassName, }: SearchResultsHeaderProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type SearchResultsSkeletonVariant = "cards" | "table" | "mixed";
|
|
2
|
+
export interface SearchResultsSkeletonProps {
|
|
3
|
+
variant?: SearchResultsSkeletonVariant;
|
|
4
|
+
cardCount?: number;
|
|
5
|
+
tableRows?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function SearchResultsSkeleton({ variant, cardCount, tableRows, className, }: SearchResultsSkeletonProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface SearchPageProps {
|
|
3
|
+
query: string;
|
|
4
|
+
results: unknown[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
header?: React.ReactNode;
|
|
8
|
+
loadingState?: React.ReactNode;
|
|
9
|
+
noResultsState?: React.ReactNode;
|
|
10
|
+
initialState?: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
resultsContainerClassName?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Manages the standard search results states while allowing consumers to provide
|
|
16
|
+
* custom header, loading, and empty-state UI.
|
|
17
|
+
*/
|
|
18
|
+
export declare const SearchPage: React.FC<SearchPageProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AlertDialogHeader: {
|
|
7
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const AlertDialogFooter: {
|
|
11
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
15
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type ApiImageProps = Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt"> & {
|
|
3
|
+
path: string;
|
|
4
|
+
origin?: string;
|
|
5
|
+
alt: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function ApiImage({ path, origin, ...props }: ApiImageProps): React.JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the structure for a single data point in the chart.
|
|
3
|
+
* The first key is assumed to be the x-axis label.
|
|
4
|
+
*/
|
|
5
|
+
export interface DataPoint {
|
|
6
|
+
[key: string]: string | number | null;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Configuration for a single data series (a single curve on the chart).
|
|
10
|
+
*/
|
|
11
|
+
export interface SeriesConfig {
|
|
12
|
+
/** The key in the DataPoint object that holds the value for this series. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** A display-friendly name used in UI elements like tooltips. Falls back to 'name' if not provided. */
|
|
15
|
+
label?: string;
|
|
16
|
+
/** A valid CSS color (e.g., "var(--primary)") for the line and gradient. */
|
|
17
|
+
color: string;
|
|
18
|
+
/** Optional class for tooltip dot color (e.g., "bg-primary", "bg-chart-2"). */
|
|
19
|
+
dotClassName?: string;
|
|
20
|
+
/** The unit to display for this series' values (e.g., "$", "users"). */
|
|
21
|
+
units?: string;
|
|
22
|
+
/** The position of the unit relative to the value. Defaults to 'right'. */
|
|
23
|
+
unitsPosition?: "left" | "right";
|
|
24
|
+
/** The Y-axis this series should be plotted against. Defaults to 'left'. */
|
|
25
|
+
yAxisId?: "left" | "right";
|
|
26
|
+
/** The format to display for this series' values. */
|
|
27
|
+
format?: "money" | "integer" | null;
|
|
28
|
+
}
|
|
29
|
+
export interface AreaChartProps {
|
|
30
|
+
/** The array of data points to plot. */
|
|
31
|
+
data: DataPoint[];
|
|
32
|
+
/** An array of configuration objects, one for each series to display. */
|
|
33
|
+
series: SeriesConfig[];
|
|
34
|
+
/** * The height of the chart container for the 'default' size.
|
|
35
|
+
* For the 'mini' size, height is controlled by the parent container via className.
|
|
36
|
+
*/
|
|
37
|
+
height?: number;
|
|
38
|
+
/** Additional class names for custom styling. Use this to set container height/width for the 'mini' variant. */
|
|
39
|
+
className?: string;
|
|
40
|
+
/** The size variant of the chart, affecting margins and element visibility. */
|
|
41
|
+
size?: "default" | "mini";
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A responsive, theme-aware area chart component built on Recharts,
|
|
45
|
+
* capable of rendering multiple series on single or dual axes.
|
|
46
|
+
*/
|
|
47
|
+
export declare function AreaChart({ data, series, height, className, size, }: AreaChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
interface AvatarFooterProps {
|
|
3
|
+
publicName?: string;
|
|
4
|
+
applicationName: string;
|
|
5
|
+
partnerId: string;
|
|
6
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
}
|
|
8
|
+
declare function AvatarFooter({ onClick, publicName, applicationName, partnerId }: AvatarFooterProps): import("react").JSX.Element;
|
|
9
|
+
export { AvatarFooter, type AvatarFooterProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "success" | "warning" | "info" | "randmarRed" | "randmarBlue" | "randmarPurple" | "randmarGreen" | "randmarBlack" | "randmarYellow" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface ConfirmationDialogProps {
|
|
4
|
+
title: string;
|
|
5
|
+
content: React.ReactNode;
|
|
6
|
+
onConfirm: () => void;
|
|
7
|
+
confirmText?: string;
|
|
8
|
+
cancelText?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const buttonVariants: (props?: ({
|
|
11
|
+
variant?: "link" | "default" | "none" | "destructive" | "outline" | "defaultOutline" | "secondary" | "ghost" | "blue" | "red" | "purple" | null | undefined;
|
|
12
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
13
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
confirmationDialog?: ConfirmationDialogProps;
|
|
17
|
+
}
|
|
18
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export { Button, buttonVariants, type ConfirmationDialogProps };
|