@retinalabsllc/zairusjs 0.6.0 → 0.6.2

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/index.d.mts CHANGED
@@ -430,6 +430,11 @@ interface NavItem {
430
430
  path: string;
431
431
  icon: any;
432
432
  }
433
+ interface WorkspaceItem {
434
+ id: string;
435
+ name: string;
436
+ role: string;
437
+ }
433
438
  interface UniversalSidebarProps {
434
439
  /** Navigation items to render */
435
440
  navItems: NavItem[];
@@ -439,29 +444,13 @@ interface UniversalSidebarProps {
439
444
  isMobileOpen: boolean;
440
445
  /** Function to close the mobile drawer */
441
446
  closeMobile: () => void;
447
+ /** Function to open the mobile drawer (used by the floating mobile button) */
448
+ openMobile: () => void;
442
449
  /** Optional click interceptor (useful for unsaved changes warnings) */
443
450
  onNavClick?: (e: React.MouseEvent<HTMLAnchorElement>, path: string) => void;
444
- showInterceptDialog?: boolean;
445
- onCancelIntercept?: () => void;
446
- onConfirmIntercept?: () => void;
447
- interceptTitle?: string;
448
- interceptMessage?: string;
449
- }
450
- declare const UniversalSidebar: React.FC<UniversalSidebarProps>;
451
-
452
- interface WorkspaceItem {
453
- id: string;
454
- name: string;
455
- role: string;
456
- }
457
- interface UniversalHeaderProps {
458
- /** Mobile drawer trigger */
459
- onOpenMobile: () => void;
460
- /** Top left typography */
461
- title: string;
451
+ title?: string;
462
452
  subtitle?: string;
463
453
  homeUrl?: string;
464
- /** Configuration Booleans */
465
454
  showBackButton?: boolean;
466
455
  backUrl?: string;
467
456
  showWorkspaceSwitcher?: boolean;
@@ -470,8 +459,13 @@ interface UniversalHeaderProps {
470
459
  onSwitchWorkspace?: (orgId: string) => void;
471
460
  showLogoutAction?: boolean;
472
461
  onLogout?: () => Promise<void>;
462
+ showInterceptDialog?: boolean;
463
+ onCancelIntercept?: () => void;
464
+ onConfirmIntercept?: () => void;
465
+ interceptTitle?: string;
466
+ interceptMessage?: string;
473
467
  }
474
- declare const UniversalHeader: React.FC<UniversalHeaderProps>;
468
+ declare const UniversalSidebar: React.FC<UniversalSidebarProps>;
475
469
 
476
470
  interface UniversalOrganizationPageProps {
477
471
  initialOrgName: string;
@@ -736,6 +730,16 @@ interface UniversalOverviewPageProps {
736
730
  isLoading?: boolean;
737
731
  };
738
732
  alerts?: OverviewAlert[];
733
+ banner?: {
734
+ isVisible: boolean;
735
+ title: string;
736
+ message: string;
737
+ type: 'success' | 'warning' | 'alert';
738
+ icon?: any;
739
+ isDismissible?: boolean;
740
+ onDismiss?: () => void;
741
+ action?: React.ReactNode;
742
+ };
739
743
  }
740
744
  declare const UniversalOverviewPage: React.FC<UniversalOverviewPageProps>;
741
745
 
@@ -858,4 +862,22 @@ interface UniversalRegistrationFlowProps {
858
862
  }
859
863
  declare const UniversalRegistrationFlow: React.FC<UniversalRegistrationFlowProps>;
860
864
 
861
- export { AITranscriptionFeature, type AITranscriptionFeatureProps, type AgentFilePayload, type AgentStat, AiApproveDecline, type AiApproveDeclineProps, AiStageCheck, type AiStageCheckProps, type AiTask, type AiTaskStatus, AppBento2, type AppBento2Props, type BentoFeature, type BoardMember, type CompanyDetails, type CompanyMember, type DashboardList, type DashboardListItem, type DashboardStat, type DocumentSectionData, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, HeroSection, type HeroSectionProps, ManagedBoardBlock, type ManagedBoardBlockProps, ManagedContactBlock, type ManagedContactBlockProps, ManagedDocument, type ManagedDocumentProps, ManagedNewsletterSplitBlock, type ManagedNewsletterSplitBlockProps, ManagedNotFoundBlock, type ManagedNotFoundBlockProps, ManagedPricingBlock, type ManagedPricingBlockProps, ManagedProjectsBlock, type ManagedProjectsBlockProps, ManagedToaster, type NavItem, NumberInput, type NumberInputProps, type OverviewAlert, type OverviewStat, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type PricingFeature, type PricingPlan, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SearchTypeOption, type SocialContact, type SocialLink, Stagger, type StaggerProps, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalAgentConsole, type UniversalAgentConsoleProps, UniversalBillingPage, type UniversalBillingPageProps, UniversalDashboardPage, type UniversalDashboardPageProps, UniversalDirectoryPage, type UniversalDirectoryPageProps, UniversalErrorView, type UniversalErrorViewProps, UniversalHeader, type UniversalHeaderProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalInvoice, UniversalLookupPage, type UniversalLookupPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalOverviewPage, type UniversalOverviewPageProps, UniversalProfileSettings, type UniversalProfileSettingsProps, UniversalRegistrationFlow, type UniversalRegistrationFlowProps, UniversalSidebar, type UniversalSidebarProps, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };
865
+ interface BannerProps {
866
+ /** The heading text of the banner */
867
+ title: string;
868
+ /** The main message content */
869
+ message: string;
870
+ /** The type of banner, determines colors and default icon */
871
+ type: 'success' | 'warning' | 'alert';
872
+ /** Optional custom icon to override the default */
873
+ icon?: any;
874
+ /** Whether the banner can be dismissed by the user */
875
+ isDismissible?: boolean;
876
+ /** Optional callback when the banner is dismissed */
877
+ onDismiss?: () => void;
878
+ /** Optional custom action button */
879
+ action?: React.ReactNode;
880
+ }
881
+ declare const Banner: React.FC<BannerProps>;
882
+
883
+ export { AITranscriptionFeature, type AITranscriptionFeatureProps, type AgentFilePayload, type AgentStat, AiApproveDecline, type AiApproveDeclineProps, AiStageCheck, type AiStageCheckProps, type AiTask, type AiTaskStatus, AppBento2, type AppBento2Props, Banner, type BannerProps, type BentoFeature, type BoardMember, type CompanyDetails, type CompanyMember, type DashboardList, type DashboardListItem, type DashboardStat, type DocumentSectionData, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, HeroSection, type HeroSectionProps, ManagedBoardBlock, type ManagedBoardBlockProps, ManagedContactBlock, type ManagedContactBlockProps, ManagedDocument, type ManagedDocumentProps, ManagedNewsletterSplitBlock, type ManagedNewsletterSplitBlockProps, ManagedNotFoundBlock, type ManagedNotFoundBlockProps, ManagedPricingBlock, type ManagedPricingBlockProps, ManagedProjectsBlock, type ManagedProjectsBlockProps, ManagedToaster, type NavItem, NumberInput, type NumberInputProps, type OverviewAlert, type OverviewStat, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type PricingFeature, type PricingPlan, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SearchTypeOption, type SocialContact, type SocialLink, Stagger, type StaggerProps, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalAgentConsole, type UniversalAgentConsoleProps, UniversalBillingPage, type UniversalBillingPageProps, UniversalDashboardPage, type UniversalDashboardPageProps, UniversalDirectoryPage, type UniversalDirectoryPageProps, UniversalErrorView, type UniversalErrorViewProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalInvoice, UniversalLookupPage, type UniversalLookupPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalOverviewPage, type UniversalOverviewPageProps, UniversalProfileSettings, type UniversalProfileSettingsProps, UniversalRegistrationFlow, type UniversalRegistrationFlowProps, UniversalSidebar, type UniversalSidebarProps, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };
package/dist/index.d.ts CHANGED
@@ -430,6 +430,11 @@ interface NavItem {
430
430
  path: string;
431
431
  icon: any;
432
432
  }
433
+ interface WorkspaceItem {
434
+ id: string;
435
+ name: string;
436
+ role: string;
437
+ }
433
438
  interface UniversalSidebarProps {
434
439
  /** Navigation items to render */
435
440
  navItems: NavItem[];
@@ -439,29 +444,13 @@ interface UniversalSidebarProps {
439
444
  isMobileOpen: boolean;
440
445
  /** Function to close the mobile drawer */
441
446
  closeMobile: () => void;
447
+ /** Function to open the mobile drawer (used by the floating mobile button) */
448
+ openMobile: () => void;
442
449
  /** Optional click interceptor (useful for unsaved changes warnings) */
443
450
  onNavClick?: (e: React.MouseEvent<HTMLAnchorElement>, path: string) => void;
444
- showInterceptDialog?: boolean;
445
- onCancelIntercept?: () => void;
446
- onConfirmIntercept?: () => void;
447
- interceptTitle?: string;
448
- interceptMessage?: string;
449
- }
450
- declare const UniversalSidebar: React.FC<UniversalSidebarProps>;
451
-
452
- interface WorkspaceItem {
453
- id: string;
454
- name: string;
455
- role: string;
456
- }
457
- interface UniversalHeaderProps {
458
- /** Mobile drawer trigger */
459
- onOpenMobile: () => void;
460
- /** Top left typography */
461
- title: string;
451
+ title?: string;
462
452
  subtitle?: string;
463
453
  homeUrl?: string;
464
- /** Configuration Booleans */
465
454
  showBackButton?: boolean;
466
455
  backUrl?: string;
467
456
  showWorkspaceSwitcher?: boolean;
@@ -470,8 +459,13 @@ interface UniversalHeaderProps {
470
459
  onSwitchWorkspace?: (orgId: string) => void;
471
460
  showLogoutAction?: boolean;
472
461
  onLogout?: () => Promise<void>;
462
+ showInterceptDialog?: boolean;
463
+ onCancelIntercept?: () => void;
464
+ onConfirmIntercept?: () => void;
465
+ interceptTitle?: string;
466
+ interceptMessage?: string;
473
467
  }
474
- declare const UniversalHeader: React.FC<UniversalHeaderProps>;
468
+ declare const UniversalSidebar: React.FC<UniversalSidebarProps>;
475
469
 
476
470
  interface UniversalOrganizationPageProps {
477
471
  initialOrgName: string;
@@ -736,6 +730,16 @@ interface UniversalOverviewPageProps {
736
730
  isLoading?: boolean;
737
731
  };
738
732
  alerts?: OverviewAlert[];
733
+ banner?: {
734
+ isVisible: boolean;
735
+ title: string;
736
+ message: string;
737
+ type: 'success' | 'warning' | 'alert';
738
+ icon?: any;
739
+ isDismissible?: boolean;
740
+ onDismiss?: () => void;
741
+ action?: React.ReactNode;
742
+ };
739
743
  }
740
744
  declare const UniversalOverviewPage: React.FC<UniversalOverviewPageProps>;
741
745
 
@@ -858,4 +862,22 @@ interface UniversalRegistrationFlowProps {
858
862
  }
859
863
  declare const UniversalRegistrationFlow: React.FC<UniversalRegistrationFlowProps>;
860
864
 
861
- export { AITranscriptionFeature, type AITranscriptionFeatureProps, type AgentFilePayload, type AgentStat, AiApproveDecline, type AiApproveDeclineProps, AiStageCheck, type AiStageCheckProps, type AiTask, type AiTaskStatus, AppBento2, type AppBento2Props, type BentoFeature, type BoardMember, type CompanyDetails, type CompanyMember, type DashboardList, type DashboardListItem, type DashboardStat, type DocumentSectionData, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, HeroSection, type HeroSectionProps, ManagedBoardBlock, type ManagedBoardBlockProps, ManagedContactBlock, type ManagedContactBlockProps, ManagedDocument, type ManagedDocumentProps, ManagedNewsletterSplitBlock, type ManagedNewsletterSplitBlockProps, ManagedNotFoundBlock, type ManagedNotFoundBlockProps, ManagedPricingBlock, type ManagedPricingBlockProps, ManagedProjectsBlock, type ManagedProjectsBlockProps, ManagedToaster, type NavItem, NumberInput, type NumberInputProps, type OverviewAlert, type OverviewStat, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type PricingFeature, type PricingPlan, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SearchTypeOption, type SocialContact, type SocialLink, Stagger, type StaggerProps, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalAgentConsole, type UniversalAgentConsoleProps, UniversalBillingPage, type UniversalBillingPageProps, UniversalDashboardPage, type UniversalDashboardPageProps, UniversalDirectoryPage, type UniversalDirectoryPageProps, UniversalErrorView, type UniversalErrorViewProps, UniversalHeader, type UniversalHeaderProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalInvoice, UniversalLookupPage, type UniversalLookupPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalOverviewPage, type UniversalOverviewPageProps, UniversalProfileSettings, type UniversalProfileSettingsProps, UniversalRegistrationFlow, type UniversalRegistrationFlowProps, UniversalSidebar, type UniversalSidebarProps, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };
865
+ interface BannerProps {
866
+ /** The heading text of the banner */
867
+ title: string;
868
+ /** The main message content */
869
+ message: string;
870
+ /** The type of banner, determines colors and default icon */
871
+ type: 'success' | 'warning' | 'alert';
872
+ /** Optional custom icon to override the default */
873
+ icon?: any;
874
+ /** Whether the banner can be dismissed by the user */
875
+ isDismissible?: boolean;
876
+ /** Optional callback when the banner is dismissed */
877
+ onDismiss?: () => void;
878
+ /** Optional custom action button */
879
+ action?: React.ReactNode;
880
+ }
881
+ declare const Banner: React.FC<BannerProps>;
882
+
883
+ export { AITranscriptionFeature, type AITranscriptionFeatureProps, type AgentFilePayload, type AgentStat, AiApproveDecline, type AiApproveDeclineProps, AiStageCheck, type AiStageCheckProps, type AiTask, type AiTaskStatus, AppBento2, type AppBento2Props, Banner, type BannerProps, type BentoFeature, type BoardMember, type CompanyDetails, type CompanyMember, type DashboardList, type DashboardListItem, type DashboardStat, type DocumentSectionData, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, HeroSection, type HeroSectionProps, ManagedBoardBlock, type ManagedBoardBlockProps, ManagedContactBlock, type ManagedContactBlockProps, ManagedDocument, type ManagedDocumentProps, ManagedNewsletterSplitBlock, type ManagedNewsletterSplitBlockProps, ManagedNotFoundBlock, type ManagedNotFoundBlockProps, ManagedPricingBlock, type ManagedPricingBlockProps, ManagedProjectsBlock, type ManagedProjectsBlockProps, ManagedToaster, type NavItem, NumberInput, type NumberInputProps, type OverviewAlert, type OverviewStat, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type PricingFeature, type PricingPlan, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SearchTypeOption, type SocialContact, type SocialLink, Stagger, type StaggerProps, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalAgentConsole, type UniversalAgentConsoleProps, UniversalBillingPage, type UniversalBillingPageProps, UniversalDashboardPage, type UniversalDashboardPageProps, UniversalDirectoryPage, type UniversalDirectoryPageProps, UniversalErrorView, type UniversalErrorViewProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalInvoice, UniversalLookupPage, type UniversalLookupPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalOverviewPage, type UniversalOverviewPageProps, UniversalProfileSettings, type UniversalProfileSettingsProps, UniversalRegistrationFlow, type UniversalRegistrationFlowProps, UniversalSidebar, type UniversalSidebarProps, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };