@vantageos/mosaic-blocks 0.4.0-alpha → 0.4.2-alpha
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.cjs +104 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +91 -10
- package/dist/index.d.ts +91 -10
- package/dist/index.js +104 -5
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +15 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +15 -0
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20,7 +20,7 @@ import { Switch } from '@base-ui/react/switch';
|
|
|
20
20
|
export { Tooltip } from '@base-ui/react/tooltip';
|
|
21
21
|
import 'class-variance-authority/types';
|
|
22
22
|
|
|
23
|
-
declare const version = "0.4.
|
|
23
|
+
declare const version = "0.4.2-alpha";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Placeholder component — infra scaffold only.
|
|
@@ -4380,6 +4380,52 @@ interface MosaicDataTableProps<T> {
|
|
|
4380
4380
|
className?: string;
|
|
4381
4381
|
/** React 19 ref prop — no forwardRef wrapper needed. */
|
|
4382
4382
|
ref?: React.Ref<HTMLTableElement>;
|
|
4383
|
+
/**
|
|
4384
|
+
* Trailing content rendered inside a `<tfoot>` row, after the last data
|
|
4385
|
+
* row. Mount your own IntersectionObserver sentinel here to keep your
|
|
4386
|
+
* existing infinite-scroll pattern (e.g. Convex `usePaginatedQuery`) —
|
|
4387
|
+
* `MosaicDataTable` does not impose a button-driven pager.
|
|
4388
|
+
*
|
|
4389
|
+
* @example
|
|
4390
|
+
* <MosaicDataTable
|
|
4391
|
+
* columns={columns}
|
|
4392
|
+
* rows={results}
|
|
4393
|
+
* emptyMessage="Aucune donnée"
|
|
4394
|
+
* footerSlot={<div ref={sentinelRef} />}
|
|
4395
|
+
* />
|
|
4396
|
+
*/
|
|
4397
|
+
footerSlot?: React.ReactNode;
|
|
4398
|
+
/**
|
|
4399
|
+
* Simple load-more affordance for consumers without their own sentinel.
|
|
4400
|
+
* Optional as a feature — a table with no `pagination` renders exactly
|
|
4401
|
+
* as before. When provided, `loadMoreLabel` and `loadingLabel` are
|
|
4402
|
+
* REQUIRED (no default, no fallback) — the host owns the language.
|
|
4403
|
+
*/
|
|
4404
|
+
pagination?: MosaicDataTablePagination;
|
|
4405
|
+
}
|
|
4406
|
+
/**
|
|
4407
|
+
* Load-more pagination config. Required as a whole (no partial shape) —
|
|
4408
|
+
* when a consumer opts into the simple pagination affordance, both labels
|
|
4409
|
+
* must be supplied. There is no English default anywhere in this type.
|
|
4410
|
+
*/
|
|
4411
|
+
interface MosaicDataTablePagination {
|
|
4412
|
+
/** Whether more rows are available to fetch. */
|
|
4413
|
+
hasMore: boolean;
|
|
4414
|
+
/** Invoked when the load-more affordance is activated. */
|
|
4415
|
+
onLoadMore: () => void;
|
|
4416
|
+
/**
|
|
4417
|
+
* Label for the load-more button. Required — the host owns the
|
|
4418
|
+
* language (e.g. `t('DataTable.loadMore')`).
|
|
4419
|
+
*/
|
|
4420
|
+
loadMoreLabel: string;
|
|
4421
|
+
/**
|
|
4422
|
+
* Announcement shown (and read by assistive tech via `aria-live`)
|
|
4423
|
+
* while more rows are being fetched. Required — the host owns the
|
|
4424
|
+
* language.
|
|
4425
|
+
*/
|
|
4426
|
+
loadingLabel: string;
|
|
4427
|
+
/** True while a load-more fetch is in flight. @default false */
|
|
4428
|
+
isLoadingMore?: boolean;
|
|
4383
4429
|
}
|
|
4384
4430
|
/**
|
|
4385
4431
|
* MosaicDataTable — generic sortable data table for @vantageos/mosaic-blocks.
|
|
@@ -4399,7 +4445,7 @@ interface MosaicDataTableProps<T> {
|
|
|
4399
4445
|
* emptyState={<MosaicEmptyState title="No agents" />}
|
|
4400
4446
|
* />
|
|
4401
4447
|
*/
|
|
4402
|
-
declare function MosaicDataTable<T>({ columns, rows, getRowKey, sortable: masterSortable, emptyState, emptyMessage, className, ref, }: MosaicDataTableProps<T>): React.JSX.Element;
|
|
4448
|
+
declare function MosaicDataTable<T>({ columns, rows, getRowKey, sortable: masterSortable, emptyState, emptyMessage, className, ref, footerSlot, pagination, }: MosaicDataTableProps<T>): React.JSX.Element;
|
|
4403
4449
|
declare namespace MosaicDataTable {
|
|
4404
4450
|
var displayName: string;
|
|
4405
4451
|
}
|
|
@@ -4457,7 +4503,7 @@ interface MosaicStep {
|
|
|
4457
4503
|
*/
|
|
4458
4504
|
status?: MosaicStepStatus;
|
|
4459
4505
|
}
|
|
4460
|
-
interface
|
|
4506
|
+
interface MosaicStepPipelineBaseProps {
|
|
4461
4507
|
/** Ordered array of pipeline stages. */
|
|
4462
4508
|
steps: MosaicStep[];
|
|
4463
4509
|
/**
|
|
@@ -4466,23 +4512,58 @@ interface MosaicStepPipelineProps {
|
|
|
4466
4512
|
* @default 0
|
|
4467
4513
|
*/
|
|
4468
4514
|
currentIndex?: number;
|
|
4515
|
+
/** Additional Tailwind classes on the root element. */
|
|
4516
|
+
className?: string;
|
|
4517
|
+
}
|
|
4518
|
+
interface MosaicStepPipelineDotsProps extends MosaicStepPipelineBaseProps {
|
|
4519
|
+
/**
|
|
4520
|
+
* Full dot-layout rendering (indicator + label + description per step).
|
|
4521
|
+
* @default "dots"
|
|
4522
|
+
*/
|
|
4523
|
+
variant?: "dots";
|
|
4469
4524
|
/**
|
|
4470
|
-
* Layout orientation.
|
|
4525
|
+
* Layout orientation. Only meaningful for `variant="dots"`.
|
|
4471
4526
|
* @default "horizontal"
|
|
4472
4527
|
*/
|
|
4473
4528
|
orientation?: "horizontal" | "vertical";
|
|
4474
|
-
/** Additional Tailwind classes on the root element. */
|
|
4475
|
-
className?: string;
|
|
4476
4529
|
/** React 19 ref prop — forwarded to the root <ol> element. */
|
|
4477
4530
|
ref?: React.Ref<HTMLOListElement>;
|
|
4478
4531
|
}
|
|
4532
|
+
interface MosaicStepPipelineSegmentsProps extends MosaicStepPipelineBaseProps {
|
|
4533
|
+
/**
|
|
4534
|
+
* Compact horizontal progress-segment bar — colored segment fills only,
|
|
4535
|
+
* no dots and no step labels. Intended for space-constrained UIs (e.g.
|
|
4536
|
+
* mission cards) where a thin progress indicator is enough.
|
|
4537
|
+
*/
|
|
4538
|
+
variant: "segments";
|
|
4539
|
+
/**
|
|
4540
|
+
* Accessible name for the segment bar (`aria-label`). Required — the
|
|
4541
|
+
* library ships zero user-facing strings; the host owns the copy and its
|
|
4542
|
+
* language.
|
|
4543
|
+
*/
|
|
4544
|
+
progressAriaLabel: string;
|
|
4545
|
+
/**
|
|
4546
|
+
* Optional function producing the live `aria-valuetext` announced by
|
|
4547
|
+
* screen readers, e.g. `(current, total) => \`Étape ${current} sur ${total}\``.
|
|
4548
|
+
* When omitted, `progressAriaLabel` alone is used as the accessible name
|
|
4549
|
+
* and no `aria-valuetext` is set.
|
|
4550
|
+
*/
|
|
4551
|
+
progressLabel?: (current: number, total: number) => string;
|
|
4552
|
+
/** React 19 ref prop — forwarded to the root segment-bar element. */
|
|
4553
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
4554
|
+
}
|
|
4555
|
+
type MosaicStepPipelineProps = MosaicStepPipelineDotsProps | MosaicStepPipelineSegmentsProps;
|
|
4479
4556
|
/**
|
|
4480
4557
|
* MosaicStepPipeline — production step-pipeline atom for @vantageos/mosaic-blocks.
|
|
4481
4558
|
*
|
|
4482
|
-
*
|
|
4483
|
-
*
|
|
4559
|
+
* Two rendering modes selected via `variant`:
|
|
4560
|
+
* - `"dots"` (default): full ordered stage progress with done/current/upcoming
|
|
4561
|
+
* status, connector lines, horizontal and vertical orientations. Accessible
|
|
4562
|
+
* via ol/li + aria-current.
|
|
4563
|
+
* - `"segments"`: compact horizontal progress-segment bar — colored fills
|
|
4564
|
+
* only, no dots and no labels. Accessible via role="progressbar".
|
|
4484
4565
|
*/
|
|
4485
|
-
declare function MosaicStepPipeline(
|
|
4566
|
+
declare function MosaicStepPipeline(props: MosaicStepPipelineProps): React.JSX.Element;
|
|
4486
4567
|
declare namespace MosaicStepPipeline {
|
|
4487
4568
|
var displayName: string;
|
|
4488
4569
|
}
|
|
@@ -4725,4 +4806,4 @@ interface MosaicClerkWebhookHandlerOptions {
|
|
|
4725
4806
|
*/
|
|
4726
4807
|
declare function MosaicClerkWebhookHandler(req: Request, options: MosaicClerkWebhookHandlerOptions): Promise<Response>;
|
|
4727
4808
|
|
|
4728
|
-
export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSkeleton, type MosaicSkeletonProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, type MosaicStep, MosaicStepPipeline, type MosaicStepPipelineProps, type MosaicStepStatus, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicTooltip, type MosaicTooltipProps, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
4809
|
+
export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTablePagination, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSkeleton, type MosaicSkeletonProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, type MosaicStep, MosaicStepPipeline, type MosaicStepPipelineDotsProps, type MosaicStepPipelineProps, type MosaicStepPipelineSegmentsProps, type MosaicStepStatus, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicTooltip, type MosaicTooltipProps, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { Switch } from '@base-ui/react/switch';
|
|
|
20
20
|
export { Tooltip } from '@base-ui/react/tooltip';
|
|
21
21
|
import 'class-variance-authority/types';
|
|
22
22
|
|
|
23
|
-
declare const version = "0.4.
|
|
23
|
+
declare const version = "0.4.2-alpha";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Placeholder component — infra scaffold only.
|
|
@@ -4380,6 +4380,52 @@ interface MosaicDataTableProps<T> {
|
|
|
4380
4380
|
className?: string;
|
|
4381
4381
|
/** React 19 ref prop — no forwardRef wrapper needed. */
|
|
4382
4382
|
ref?: React.Ref<HTMLTableElement>;
|
|
4383
|
+
/**
|
|
4384
|
+
* Trailing content rendered inside a `<tfoot>` row, after the last data
|
|
4385
|
+
* row. Mount your own IntersectionObserver sentinel here to keep your
|
|
4386
|
+
* existing infinite-scroll pattern (e.g. Convex `usePaginatedQuery`) —
|
|
4387
|
+
* `MosaicDataTable` does not impose a button-driven pager.
|
|
4388
|
+
*
|
|
4389
|
+
* @example
|
|
4390
|
+
* <MosaicDataTable
|
|
4391
|
+
* columns={columns}
|
|
4392
|
+
* rows={results}
|
|
4393
|
+
* emptyMessage="Aucune donnée"
|
|
4394
|
+
* footerSlot={<div ref={sentinelRef} />}
|
|
4395
|
+
* />
|
|
4396
|
+
*/
|
|
4397
|
+
footerSlot?: React.ReactNode;
|
|
4398
|
+
/**
|
|
4399
|
+
* Simple load-more affordance for consumers without their own sentinel.
|
|
4400
|
+
* Optional as a feature — a table with no `pagination` renders exactly
|
|
4401
|
+
* as before. When provided, `loadMoreLabel` and `loadingLabel` are
|
|
4402
|
+
* REQUIRED (no default, no fallback) — the host owns the language.
|
|
4403
|
+
*/
|
|
4404
|
+
pagination?: MosaicDataTablePagination;
|
|
4405
|
+
}
|
|
4406
|
+
/**
|
|
4407
|
+
* Load-more pagination config. Required as a whole (no partial shape) —
|
|
4408
|
+
* when a consumer opts into the simple pagination affordance, both labels
|
|
4409
|
+
* must be supplied. There is no English default anywhere in this type.
|
|
4410
|
+
*/
|
|
4411
|
+
interface MosaicDataTablePagination {
|
|
4412
|
+
/** Whether more rows are available to fetch. */
|
|
4413
|
+
hasMore: boolean;
|
|
4414
|
+
/** Invoked when the load-more affordance is activated. */
|
|
4415
|
+
onLoadMore: () => void;
|
|
4416
|
+
/**
|
|
4417
|
+
* Label for the load-more button. Required — the host owns the
|
|
4418
|
+
* language (e.g. `t('DataTable.loadMore')`).
|
|
4419
|
+
*/
|
|
4420
|
+
loadMoreLabel: string;
|
|
4421
|
+
/**
|
|
4422
|
+
* Announcement shown (and read by assistive tech via `aria-live`)
|
|
4423
|
+
* while more rows are being fetched. Required — the host owns the
|
|
4424
|
+
* language.
|
|
4425
|
+
*/
|
|
4426
|
+
loadingLabel: string;
|
|
4427
|
+
/** True while a load-more fetch is in flight. @default false */
|
|
4428
|
+
isLoadingMore?: boolean;
|
|
4383
4429
|
}
|
|
4384
4430
|
/**
|
|
4385
4431
|
* MosaicDataTable — generic sortable data table for @vantageos/mosaic-blocks.
|
|
@@ -4399,7 +4445,7 @@ interface MosaicDataTableProps<T> {
|
|
|
4399
4445
|
* emptyState={<MosaicEmptyState title="No agents" />}
|
|
4400
4446
|
* />
|
|
4401
4447
|
*/
|
|
4402
|
-
declare function MosaicDataTable<T>({ columns, rows, getRowKey, sortable: masterSortable, emptyState, emptyMessage, className, ref, }: MosaicDataTableProps<T>): React.JSX.Element;
|
|
4448
|
+
declare function MosaicDataTable<T>({ columns, rows, getRowKey, sortable: masterSortable, emptyState, emptyMessage, className, ref, footerSlot, pagination, }: MosaicDataTableProps<T>): React.JSX.Element;
|
|
4403
4449
|
declare namespace MosaicDataTable {
|
|
4404
4450
|
var displayName: string;
|
|
4405
4451
|
}
|
|
@@ -4457,7 +4503,7 @@ interface MosaicStep {
|
|
|
4457
4503
|
*/
|
|
4458
4504
|
status?: MosaicStepStatus;
|
|
4459
4505
|
}
|
|
4460
|
-
interface
|
|
4506
|
+
interface MosaicStepPipelineBaseProps {
|
|
4461
4507
|
/** Ordered array of pipeline stages. */
|
|
4462
4508
|
steps: MosaicStep[];
|
|
4463
4509
|
/**
|
|
@@ -4466,23 +4512,58 @@ interface MosaicStepPipelineProps {
|
|
|
4466
4512
|
* @default 0
|
|
4467
4513
|
*/
|
|
4468
4514
|
currentIndex?: number;
|
|
4515
|
+
/** Additional Tailwind classes on the root element. */
|
|
4516
|
+
className?: string;
|
|
4517
|
+
}
|
|
4518
|
+
interface MosaicStepPipelineDotsProps extends MosaicStepPipelineBaseProps {
|
|
4519
|
+
/**
|
|
4520
|
+
* Full dot-layout rendering (indicator + label + description per step).
|
|
4521
|
+
* @default "dots"
|
|
4522
|
+
*/
|
|
4523
|
+
variant?: "dots";
|
|
4469
4524
|
/**
|
|
4470
|
-
* Layout orientation.
|
|
4525
|
+
* Layout orientation. Only meaningful for `variant="dots"`.
|
|
4471
4526
|
* @default "horizontal"
|
|
4472
4527
|
*/
|
|
4473
4528
|
orientation?: "horizontal" | "vertical";
|
|
4474
|
-
/** Additional Tailwind classes on the root element. */
|
|
4475
|
-
className?: string;
|
|
4476
4529
|
/** React 19 ref prop — forwarded to the root <ol> element. */
|
|
4477
4530
|
ref?: React.Ref<HTMLOListElement>;
|
|
4478
4531
|
}
|
|
4532
|
+
interface MosaicStepPipelineSegmentsProps extends MosaicStepPipelineBaseProps {
|
|
4533
|
+
/**
|
|
4534
|
+
* Compact horizontal progress-segment bar — colored segment fills only,
|
|
4535
|
+
* no dots and no step labels. Intended for space-constrained UIs (e.g.
|
|
4536
|
+
* mission cards) where a thin progress indicator is enough.
|
|
4537
|
+
*/
|
|
4538
|
+
variant: "segments";
|
|
4539
|
+
/**
|
|
4540
|
+
* Accessible name for the segment bar (`aria-label`). Required — the
|
|
4541
|
+
* library ships zero user-facing strings; the host owns the copy and its
|
|
4542
|
+
* language.
|
|
4543
|
+
*/
|
|
4544
|
+
progressAriaLabel: string;
|
|
4545
|
+
/**
|
|
4546
|
+
* Optional function producing the live `aria-valuetext` announced by
|
|
4547
|
+
* screen readers, e.g. `(current, total) => \`Étape ${current} sur ${total}\``.
|
|
4548
|
+
* When omitted, `progressAriaLabel` alone is used as the accessible name
|
|
4549
|
+
* and no `aria-valuetext` is set.
|
|
4550
|
+
*/
|
|
4551
|
+
progressLabel?: (current: number, total: number) => string;
|
|
4552
|
+
/** React 19 ref prop — forwarded to the root segment-bar element. */
|
|
4553
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
4554
|
+
}
|
|
4555
|
+
type MosaicStepPipelineProps = MosaicStepPipelineDotsProps | MosaicStepPipelineSegmentsProps;
|
|
4479
4556
|
/**
|
|
4480
4557
|
* MosaicStepPipeline — production step-pipeline atom for @vantageos/mosaic-blocks.
|
|
4481
4558
|
*
|
|
4482
|
-
*
|
|
4483
|
-
*
|
|
4559
|
+
* Two rendering modes selected via `variant`:
|
|
4560
|
+
* - `"dots"` (default): full ordered stage progress with done/current/upcoming
|
|
4561
|
+
* status, connector lines, horizontal and vertical orientations. Accessible
|
|
4562
|
+
* via ol/li + aria-current.
|
|
4563
|
+
* - `"segments"`: compact horizontal progress-segment bar — colored fills
|
|
4564
|
+
* only, no dots and no labels. Accessible via role="progressbar".
|
|
4484
4565
|
*/
|
|
4485
|
-
declare function MosaicStepPipeline(
|
|
4566
|
+
declare function MosaicStepPipeline(props: MosaicStepPipelineProps): React.JSX.Element;
|
|
4486
4567
|
declare namespace MosaicStepPipeline {
|
|
4487
4568
|
var displayName: string;
|
|
4488
4569
|
}
|
|
@@ -4725,4 +4806,4 @@ interface MosaicClerkWebhookHandlerOptions {
|
|
|
4725
4806
|
*/
|
|
4726
4807
|
declare function MosaicClerkWebhookHandler(req: Request, options: MosaicClerkWebhookHandlerOptions): Promise<Response>;
|
|
4727
4808
|
|
|
4728
|
-
export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSkeleton, type MosaicSkeletonProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, type MosaicStep, MosaicStepPipeline, type MosaicStepPipelineProps, type MosaicStepStatus, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicTooltip, type MosaicTooltipProps, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
4809
|
+
export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTablePagination, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSkeleton, type MosaicSkeletonProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, type MosaicStep, MosaicStepPipeline, type MosaicStepPipelineDotsProps, type MosaicStepPipelineProps, type MosaicStepPipelineSegmentsProps, type MosaicStepStatus, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateCard, type MosaicTemplateCardProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicTooltip, type MosaicTooltipProps, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { Menu } from '@base-ui/react/menu';
|
|
|
27
27
|
import { AlertDialog } from '@base-ui/react/alert-dialog';
|
|
28
28
|
|
|
29
29
|
// src/version.ts
|
|
30
|
-
var version = "0.4.
|
|
30
|
+
var version = "0.4.2-alpha";
|
|
31
31
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
32
32
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
33
33
|
}
|
|
@@ -10005,7 +10005,9 @@ function MosaicDataTable({
|
|
|
10005
10005
|
emptyState,
|
|
10006
10006
|
emptyMessage,
|
|
10007
10007
|
className,
|
|
10008
|
-
ref
|
|
10008
|
+
ref,
|
|
10009
|
+
footerSlot,
|
|
10010
|
+
pagination
|
|
10009
10011
|
}) {
|
|
10010
10012
|
const [sort, setSort] = useState(null);
|
|
10011
10013
|
function handleHeaderClick(col) {
|
|
@@ -10118,7 +10120,36 @@ function MosaicDataTable({
|
|
|
10118
10120
|
},
|
|
10119
10121
|
key
|
|
10120
10122
|
);
|
|
10121
|
-
}) })
|
|
10123
|
+
}) }),
|
|
10124
|
+
(footerSlot || pagination) && /* @__PURE__ */ jsx("tfoot", { "data-slot": "data-table-footer", children: /* @__PURE__ */ jsx("tr", { "data-slot": "data-table-footer-row", children: /* @__PURE__ */ jsxs(
|
|
10125
|
+
"td",
|
|
10126
|
+
{
|
|
10127
|
+
"data-slot": "data-table-footer-cell",
|
|
10128
|
+
colSpan: columns.length,
|
|
10129
|
+
className: "px-4 py-3 text-center",
|
|
10130
|
+
children: [
|
|
10131
|
+
footerSlot,
|
|
10132
|
+
pagination && /* @__PURE__ */ jsx(
|
|
10133
|
+
"div",
|
|
10134
|
+
{
|
|
10135
|
+
"data-slot": "data-table-pagination",
|
|
10136
|
+
"aria-live": "polite",
|
|
10137
|
+
className: "flex items-center justify-center",
|
|
10138
|
+
children: pagination.isLoadingMore ? /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: pagination.loadingLabel }) : pagination.hasMore && /* @__PURE__ */ jsx(
|
|
10139
|
+
"button",
|
|
10140
|
+
{
|
|
10141
|
+
type: "button",
|
|
10142
|
+
"data-slot": "data-table-load-more",
|
|
10143
|
+
onClick: pagination.onLoadMore,
|
|
10144
|
+
className: "rounded-md border border-border px-4 py-2 text-sm font-medium text-foreground hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
10145
|
+
children: pagination.loadMoreLabel
|
|
10146
|
+
}
|
|
10147
|
+
)
|
|
10148
|
+
}
|
|
10149
|
+
)
|
|
10150
|
+
]
|
|
10151
|
+
}
|
|
10152
|
+
) }) })
|
|
10122
10153
|
]
|
|
10123
10154
|
}
|
|
10124
10155
|
);
|
|
@@ -10200,6 +10231,21 @@ var stepDescriptionVariants = cva(["text-xs transition-colors"], {
|
|
|
10200
10231
|
status: "upcoming"
|
|
10201
10232
|
}
|
|
10202
10233
|
});
|
|
10234
|
+
var stepSegmentBarVariants = cva(["flex w-full items-center gap-1"], {
|
|
10235
|
+
variants: {},
|
|
10236
|
+
defaultVariants: {}
|
|
10237
|
+
});
|
|
10238
|
+
var stepSegmentVariants = cva(["h-1.5 flex-1 min-w-2 rounded-full transition-colors"], {
|
|
10239
|
+
variants: {
|
|
10240
|
+
filled: {
|
|
10241
|
+
true: "bg-foreground",
|
|
10242
|
+
false: "bg-muted"
|
|
10243
|
+
}
|
|
10244
|
+
},
|
|
10245
|
+
defaultVariants: {
|
|
10246
|
+
filled: false
|
|
10247
|
+
}
|
|
10248
|
+
});
|
|
10203
10249
|
function cn67(...classes) {
|
|
10204
10250
|
return classes.filter(Boolean).join(" ");
|
|
10205
10251
|
}
|
|
@@ -10209,7 +10255,60 @@ function resolveStatus(step, index, currentIndex) {
|
|
|
10209
10255
|
if (index === currentIndex) return "current";
|
|
10210
10256
|
return "upcoming";
|
|
10211
10257
|
}
|
|
10212
|
-
function MosaicStepPipeline({
|
|
10258
|
+
function MosaicStepPipeline(props) {
|
|
10259
|
+
if (props.variant === "segments") {
|
|
10260
|
+
return /* @__PURE__ */ jsx(MosaicStepPipelineSegments, { ...props });
|
|
10261
|
+
}
|
|
10262
|
+
return /* @__PURE__ */ jsx(MosaicStepPipelineDots, { ...props });
|
|
10263
|
+
}
|
|
10264
|
+
MosaicStepPipeline.displayName = "MosaicStepPipeline";
|
|
10265
|
+
function MosaicStepPipelineSegments({
|
|
10266
|
+
steps,
|
|
10267
|
+
currentIndex = 0,
|
|
10268
|
+
className,
|
|
10269
|
+
progressAriaLabel,
|
|
10270
|
+
progressLabel,
|
|
10271
|
+
ref
|
|
10272
|
+
}) {
|
|
10273
|
+
const total = steps.length;
|
|
10274
|
+
const current = steps.reduce((count, step, index) => {
|
|
10275
|
+
const status = resolveStatus(step, index, currentIndex);
|
|
10276
|
+
return status === "upcoming" ? count : count + 1;
|
|
10277
|
+
}, 0);
|
|
10278
|
+
return /* @__PURE__ */ jsx(
|
|
10279
|
+
"div",
|
|
10280
|
+
{
|
|
10281
|
+
ref,
|
|
10282
|
+
"data-slot": "step-segment-bar",
|
|
10283
|
+
role: "progressbar",
|
|
10284
|
+
tabIndex: -1,
|
|
10285
|
+
"aria-label": progressAriaLabel,
|
|
10286
|
+
"aria-valuemin": 0,
|
|
10287
|
+
"aria-valuemax": total,
|
|
10288
|
+
"aria-valuenow": current,
|
|
10289
|
+
"aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
|
|
10290
|
+
className: cn67(stepSegmentBarVariants(), className),
|
|
10291
|
+
children: steps.map((step, index) => {
|
|
10292
|
+
const status = resolveStatus(step, index, currentIndex);
|
|
10293
|
+
const filled = status !== "upcoming";
|
|
10294
|
+
const key = step.id !== void 0 ? step.id : index;
|
|
10295
|
+
return /* @__PURE__ */ jsx(
|
|
10296
|
+
"div",
|
|
10297
|
+
{
|
|
10298
|
+
"data-slot": "step-segment",
|
|
10299
|
+
"data-status": status,
|
|
10300
|
+
"data-filled": filled,
|
|
10301
|
+
"aria-hidden": "true",
|
|
10302
|
+
className: cn67(stepSegmentVariants({ filled }))
|
|
10303
|
+
},
|
|
10304
|
+
key
|
|
10305
|
+
);
|
|
10306
|
+
})
|
|
10307
|
+
}
|
|
10308
|
+
);
|
|
10309
|
+
}
|
|
10310
|
+
MosaicStepPipelineSegments.displayName = "MosaicStepPipelineSegments";
|
|
10311
|
+
function MosaicStepPipelineDots({
|
|
10213
10312
|
steps,
|
|
10214
10313
|
currentIndex = 0,
|
|
10215
10314
|
orientation = "horizontal",
|
|
@@ -10324,7 +10423,7 @@ function MosaicStepPipeline({
|
|
|
10324
10423
|
}
|
|
10325
10424
|
);
|
|
10326
10425
|
}
|
|
10327
|
-
|
|
10426
|
+
MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
|
|
10328
10427
|
function cn68(...classes) {
|
|
10329
10428
|
return classes.filter(Boolean).join(" ");
|
|
10330
10429
|
}
|