@vantageos/mosaic-blocks 0.3.5-alpha → 0.3.6-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/badge-variants-SYXNq4VQ.d.cts +43 -0
- package/dist/badge-variants-SYXNq4VQ.d.ts +43 -0
- package/dist/index.cjs +203 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -3
- package/dist/index.d.ts +86 -3
- package/dist/index.js +203 -2
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +81 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +24 -32
- package/dist/server.d.ts +24 -32
- package/dist/server.js +77 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Button } from '@base-ui/react/button';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { buttonVariants, skeletonVariants, badgeVariants } from './
|
|
4
|
+
import { b as buttonVariants, s as skeletonVariants, a as badgeVariants } from './badge-variants-SYXNq4VQ.cjs';
|
|
5
5
|
import { Accordion } from '@base-ui/react/accordion';
|
|
6
6
|
export { Accordion } from '@base-ui/react/accordion';
|
|
7
7
|
import { Checkbox } from '@base-ui/react/checkbox';
|
|
@@ -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.3.
|
|
23
|
+
declare const version = "0.3.6-alpha";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Placeholder component — infra scaffold only.
|
|
@@ -3970,6 +3970,89 @@ declare namespace MosaicDataTable {
|
|
|
3970
3970
|
var displayName: string;
|
|
3971
3971
|
}
|
|
3972
3972
|
|
|
3973
|
+
/**
|
|
3974
|
+
* MosaicStepPipeline — ordered stage progress pipeline
|
|
3975
|
+
*
|
|
3976
|
+
* Presentational atom. Renders an ordered sequence of stages with status each
|
|
3977
|
+
* (done / current / upcoming) and connector lines between them.
|
|
3978
|
+
* Supports horizontal (default) and vertical orientations.
|
|
3979
|
+
*
|
|
3980
|
+
* Pattern: Button.tsx (data-slot, inline cn, React 19 ref prop, displayName, JSDoc).
|
|
3981
|
+
* No "use client" — prepend-use-client.mjs adds it to dist.
|
|
3982
|
+
* Design tokens: --foreground, --muted, --muted-foreground, --border, --ring, --background.
|
|
3983
|
+
* No icon library — uses ✓ char for done steps, index+1 number for others.
|
|
3984
|
+
* a11y: ol/li semantics, aria-current="step" on current step.
|
|
3985
|
+
* Bilingual: all labels/descriptions are caller-provided (no hardcoded English).
|
|
3986
|
+
*
|
|
3987
|
+
* Closes issue #22 — mosaic-step-pipeline.
|
|
3988
|
+
*
|
|
3989
|
+
* @example
|
|
3990
|
+
* // Derive status from currentIndex
|
|
3991
|
+
* <MosaicStepPipeline
|
|
3992
|
+
* steps={[
|
|
3993
|
+
* { label: "Setup" },
|
|
3994
|
+
* { label: "Configure" },
|
|
3995
|
+
* { label: "Deploy" },
|
|
3996
|
+
* ]}
|
|
3997
|
+
* currentIndex={1}
|
|
3998
|
+
* />
|
|
3999
|
+
*
|
|
4000
|
+
* @example
|
|
4001
|
+
* // Explicit per-step status
|
|
4002
|
+
* <MosaicStepPipeline
|
|
4003
|
+
* steps={[
|
|
4004
|
+
* { label: "Étape 1", status: "done" },
|
|
4005
|
+
* { label: "Étape 2", status: "current", description: "En cours…" },
|
|
4006
|
+
* { label: "Étape 3", status: "upcoming" },
|
|
4007
|
+
* ]}
|
|
4008
|
+
* orientation="vertical"
|
|
4009
|
+
* />
|
|
4010
|
+
*/
|
|
4011
|
+
|
|
4012
|
+
type MosaicStepStatus = "done" | "current" | "upcoming";
|
|
4013
|
+
interface MosaicStep {
|
|
4014
|
+
/** Optional stable id for React key. When absent, array index is used. */
|
|
4015
|
+
id?: string;
|
|
4016
|
+
/** Step label — ReactNode for i18n / rich content. Caller-provided. */
|
|
4017
|
+
label: React.ReactNode;
|
|
4018
|
+
/** Optional supporting description. Caller-provided. */
|
|
4019
|
+
description?: React.ReactNode;
|
|
4020
|
+
/**
|
|
4021
|
+
* Explicit step status. When absent on all steps, `currentIndex` derivation
|
|
4022
|
+
* is used: index < currentIndex → done, === current, > upcoming.
|
|
4023
|
+
*/
|
|
4024
|
+
status?: MosaicStepStatus;
|
|
4025
|
+
}
|
|
4026
|
+
interface MosaicStepPipelineProps {
|
|
4027
|
+
/** Ordered array of pipeline stages. */
|
|
4028
|
+
steps: MosaicStep[];
|
|
4029
|
+
/**
|
|
4030
|
+
* Active step index (0-based). Used to derive status when a step has no
|
|
4031
|
+
* explicit `status`. Ignored when all steps carry explicit status.
|
|
4032
|
+
* @default 0
|
|
4033
|
+
*/
|
|
4034
|
+
currentIndex?: number;
|
|
4035
|
+
/**
|
|
4036
|
+
* Layout orientation.
|
|
4037
|
+
* @default "horizontal"
|
|
4038
|
+
*/
|
|
4039
|
+
orientation?: "horizontal" | "vertical";
|
|
4040
|
+
/** Additional Tailwind classes on the root element. */
|
|
4041
|
+
className?: string;
|
|
4042
|
+
/** React 19 ref prop — forwarded to the root <ol> element. */
|
|
4043
|
+
ref?: React.Ref<HTMLOListElement>;
|
|
4044
|
+
}
|
|
4045
|
+
/**
|
|
4046
|
+
* MosaicStepPipeline — production step-pipeline atom for @vantageos/mosaic-blocks.
|
|
4047
|
+
*
|
|
4048
|
+
* Ordered stage progress with done/current/upcoming status, connector lines,
|
|
4049
|
+
* horizontal and vertical orientations. Accessible via ol/li + aria-current.
|
|
4050
|
+
*/
|
|
4051
|
+
declare function MosaicStepPipeline({ steps, currentIndex, orientation, className, ref, }: MosaicStepPipelineProps): React.JSX.Element;
|
|
4052
|
+
declare namespace MosaicStepPipeline {
|
|
4053
|
+
var displayName: string;
|
|
4054
|
+
}
|
|
4055
|
+
|
|
3973
4056
|
/**
|
|
3974
4057
|
* MosaicMultiTenantProvider — wraps <ClerkProvider> with cloud-identity
|
|
3975
4058
|
* workspace-scope context.
|
|
@@ -4089,4 +4172,4 @@ interface MosaicClerkWebhookHandlerOptions {
|
|
|
4089
4172
|
*/
|
|
4090
4173
|
declare function MosaicClerkWebhookHandler(req: Request, options: MosaicClerkWebhookHandlerOptions): Promise<Response>;
|
|
4091
4174
|
|
|
4092
|
-
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, 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, 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 };
|
|
4175
|
+
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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Button } from '@base-ui/react/button';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { buttonVariants, skeletonVariants, badgeVariants } from './
|
|
4
|
+
import { b as buttonVariants, s as skeletonVariants, a as badgeVariants } from './badge-variants-SYXNq4VQ.js';
|
|
5
5
|
import { Accordion } from '@base-ui/react/accordion';
|
|
6
6
|
export { Accordion } from '@base-ui/react/accordion';
|
|
7
7
|
import { Checkbox } from '@base-ui/react/checkbox';
|
|
@@ -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.3.
|
|
23
|
+
declare const version = "0.3.6-alpha";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Placeholder component — infra scaffold only.
|
|
@@ -3970,6 +3970,89 @@ declare namespace MosaicDataTable {
|
|
|
3970
3970
|
var displayName: string;
|
|
3971
3971
|
}
|
|
3972
3972
|
|
|
3973
|
+
/**
|
|
3974
|
+
* MosaicStepPipeline — ordered stage progress pipeline
|
|
3975
|
+
*
|
|
3976
|
+
* Presentational atom. Renders an ordered sequence of stages with status each
|
|
3977
|
+
* (done / current / upcoming) and connector lines between them.
|
|
3978
|
+
* Supports horizontal (default) and vertical orientations.
|
|
3979
|
+
*
|
|
3980
|
+
* Pattern: Button.tsx (data-slot, inline cn, React 19 ref prop, displayName, JSDoc).
|
|
3981
|
+
* No "use client" — prepend-use-client.mjs adds it to dist.
|
|
3982
|
+
* Design tokens: --foreground, --muted, --muted-foreground, --border, --ring, --background.
|
|
3983
|
+
* No icon library — uses ✓ char for done steps, index+1 number for others.
|
|
3984
|
+
* a11y: ol/li semantics, aria-current="step" on current step.
|
|
3985
|
+
* Bilingual: all labels/descriptions are caller-provided (no hardcoded English).
|
|
3986
|
+
*
|
|
3987
|
+
* Closes issue #22 — mosaic-step-pipeline.
|
|
3988
|
+
*
|
|
3989
|
+
* @example
|
|
3990
|
+
* // Derive status from currentIndex
|
|
3991
|
+
* <MosaicStepPipeline
|
|
3992
|
+
* steps={[
|
|
3993
|
+
* { label: "Setup" },
|
|
3994
|
+
* { label: "Configure" },
|
|
3995
|
+
* { label: "Deploy" },
|
|
3996
|
+
* ]}
|
|
3997
|
+
* currentIndex={1}
|
|
3998
|
+
* />
|
|
3999
|
+
*
|
|
4000
|
+
* @example
|
|
4001
|
+
* // Explicit per-step status
|
|
4002
|
+
* <MosaicStepPipeline
|
|
4003
|
+
* steps={[
|
|
4004
|
+
* { label: "Étape 1", status: "done" },
|
|
4005
|
+
* { label: "Étape 2", status: "current", description: "En cours…" },
|
|
4006
|
+
* { label: "Étape 3", status: "upcoming" },
|
|
4007
|
+
* ]}
|
|
4008
|
+
* orientation="vertical"
|
|
4009
|
+
* />
|
|
4010
|
+
*/
|
|
4011
|
+
|
|
4012
|
+
type MosaicStepStatus = "done" | "current" | "upcoming";
|
|
4013
|
+
interface MosaicStep {
|
|
4014
|
+
/** Optional stable id for React key. When absent, array index is used. */
|
|
4015
|
+
id?: string;
|
|
4016
|
+
/** Step label — ReactNode for i18n / rich content. Caller-provided. */
|
|
4017
|
+
label: React.ReactNode;
|
|
4018
|
+
/** Optional supporting description. Caller-provided. */
|
|
4019
|
+
description?: React.ReactNode;
|
|
4020
|
+
/**
|
|
4021
|
+
* Explicit step status. When absent on all steps, `currentIndex` derivation
|
|
4022
|
+
* is used: index < currentIndex → done, === current, > upcoming.
|
|
4023
|
+
*/
|
|
4024
|
+
status?: MosaicStepStatus;
|
|
4025
|
+
}
|
|
4026
|
+
interface MosaicStepPipelineProps {
|
|
4027
|
+
/** Ordered array of pipeline stages. */
|
|
4028
|
+
steps: MosaicStep[];
|
|
4029
|
+
/**
|
|
4030
|
+
* Active step index (0-based). Used to derive status when a step has no
|
|
4031
|
+
* explicit `status`. Ignored when all steps carry explicit status.
|
|
4032
|
+
* @default 0
|
|
4033
|
+
*/
|
|
4034
|
+
currentIndex?: number;
|
|
4035
|
+
/**
|
|
4036
|
+
* Layout orientation.
|
|
4037
|
+
* @default "horizontal"
|
|
4038
|
+
*/
|
|
4039
|
+
orientation?: "horizontal" | "vertical";
|
|
4040
|
+
/** Additional Tailwind classes on the root element. */
|
|
4041
|
+
className?: string;
|
|
4042
|
+
/** React 19 ref prop — forwarded to the root <ol> element. */
|
|
4043
|
+
ref?: React.Ref<HTMLOListElement>;
|
|
4044
|
+
}
|
|
4045
|
+
/**
|
|
4046
|
+
* MosaicStepPipeline — production step-pipeline atom for @vantageos/mosaic-blocks.
|
|
4047
|
+
*
|
|
4048
|
+
* Ordered stage progress with done/current/upcoming status, connector lines,
|
|
4049
|
+
* horizontal and vertical orientations. Accessible via ol/li + aria-current.
|
|
4050
|
+
*/
|
|
4051
|
+
declare function MosaicStepPipeline({ steps, currentIndex, orientation, className, ref, }: MosaicStepPipelineProps): React.JSX.Element;
|
|
4052
|
+
declare namespace MosaicStepPipeline {
|
|
4053
|
+
var displayName: string;
|
|
4054
|
+
}
|
|
4055
|
+
|
|
3973
4056
|
/**
|
|
3974
4057
|
* MosaicMultiTenantProvider — wraps <ClerkProvider> with cloud-identity
|
|
3975
4058
|
* workspace-scope context.
|
|
@@ -4089,4 +4172,4 @@ interface MosaicClerkWebhookHandlerOptions {
|
|
|
4089
4172
|
*/
|
|
4090
4173
|
declare function MosaicClerkWebhookHandler(req: Request, options: MosaicClerkWebhookHandlerOptions): Promise<Response>;
|
|
4091
4174
|
|
|
4092
|
-
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, 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, 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 };
|
|
4175
|
+
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, 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 };
|
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.3.
|
|
30
|
+
var version = "0.3.6-alpha";
|
|
31
31
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
32
32
|
return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
33
33
|
}
|
|
@@ -9816,6 +9816,207 @@ function MosaicDataTable({
|
|
|
9816
9816
|
);
|
|
9817
9817
|
}
|
|
9818
9818
|
MosaicDataTable.displayName = "MosaicDataTable";
|
|
9819
|
+
var stepPipelineVariants = cva(["flex", "items-stretch"], {
|
|
9820
|
+
variants: {
|
|
9821
|
+
orientation: {
|
|
9822
|
+
horizontal: "flex-row items-center w-full",
|
|
9823
|
+
vertical: "flex-col"
|
|
9824
|
+
}
|
|
9825
|
+
},
|
|
9826
|
+
defaultVariants: {
|
|
9827
|
+
orientation: "horizontal"
|
|
9828
|
+
}
|
|
9829
|
+
});
|
|
9830
|
+
var stepIndicatorVariants = cva(
|
|
9831
|
+
[
|
|
9832
|
+
"flex items-center justify-center shrink-0",
|
|
9833
|
+
"rounded-full border-2 font-semibold text-sm select-none",
|
|
9834
|
+
"transition-colors"
|
|
9835
|
+
],
|
|
9836
|
+
{
|
|
9837
|
+
variants: {
|
|
9838
|
+
status: {
|
|
9839
|
+
done: "bg-foreground text-background border-foreground",
|
|
9840
|
+
current: "bg-background text-foreground border-foreground ring-2 ring-ring ring-offset-2",
|
|
9841
|
+
upcoming: "bg-muted text-muted-foreground border-border"
|
|
9842
|
+
},
|
|
9843
|
+
orientation: {
|
|
9844
|
+
horizontal: "size-8",
|
|
9845
|
+
vertical: "size-8"
|
|
9846
|
+
}
|
|
9847
|
+
},
|
|
9848
|
+
defaultVariants: {
|
|
9849
|
+
status: "upcoming",
|
|
9850
|
+
orientation: "horizontal"
|
|
9851
|
+
}
|
|
9852
|
+
}
|
|
9853
|
+
);
|
|
9854
|
+
var stepConnectorVariants = cva(["shrink-0 transition-colors"], {
|
|
9855
|
+
variants: {
|
|
9856
|
+
status: {
|
|
9857
|
+
done: "bg-foreground",
|
|
9858
|
+
current: "bg-border",
|
|
9859
|
+
upcoming: "bg-border"
|
|
9860
|
+
},
|
|
9861
|
+
orientation: {
|
|
9862
|
+
horizontal: "h-px flex-1 min-w-4",
|
|
9863
|
+
vertical: "w-px self-stretch min-h-4 ml-4"
|
|
9864
|
+
}
|
|
9865
|
+
},
|
|
9866
|
+
defaultVariants: {
|
|
9867
|
+
status: "upcoming",
|
|
9868
|
+
orientation: "horizontal"
|
|
9869
|
+
}
|
|
9870
|
+
});
|
|
9871
|
+
var stepLabelVariants = cva(["text-sm font-medium transition-colors"], {
|
|
9872
|
+
variants: {
|
|
9873
|
+
status: {
|
|
9874
|
+
done: "text-foreground",
|
|
9875
|
+
current: "text-foreground",
|
|
9876
|
+
upcoming: "text-muted-foreground"
|
|
9877
|
+
}
|
|
9878
|
+
},
|
|
9879
|
+
defaultVariants: {
|
|
9880
|
+
status: "upcoming"
|
|
9881
|
+
}
|
|
9882
|
+
});
|
|
9883
|
+
var stepDescriptionVariants = cva(["text-xs transition-colors"], {
|
|
9884
|
+
variants: {
|
|
9885
|
+
status: {
|
|
9886
|
+
done: "text-muted-foreground",
|
|
9887
|
+
current: "text-muted-foreground",
|
|
9888
|
+
upcoming: "text-muted-foreground/60"
|
|
9889
|
+
}
|
|
9890
|
+
},
|
|
9891
|
+
defaultVariants: {
|
|
9892
|
+
status: "upcoming"
|
|
9893
|
+
}
|
|
9894
|
+
});
|
|
9895
|
+
function cn67(...classes) {
|
|
9896
|
+
return classes.filter(Boolean).join(" ");
|
|
9897
|
+
}
|
|
9898
|
+
function resolveStatus(step, index, currentIndex) {
|
|
9899
|
+
if (step.status !== void 0) return step.status;
|
|
9900
|
+
if (index < currentIndex) return "done";
|
|
9901
|
+
if (index === currentIndex) return "current";
|
|
9902
|
+
return "upcoming";
|
|
9903
|
+
}
|
|
9904
|
+
function MosaicStepPipeline({
|
|
9905
|
+
steps,
|
|
9906
|
+
currentIndex = 0,
|
|
9907
|
+
orientation = "horizontal",
|
|
9908
|
+
className,
|
|
9909
|
+
ref
|
|
9910
|
+
}) {
|
|
9911
|
+
return /* @__PURE__ */ jsx(
|
|
9912
|
+
"ol",
|
|
9913
|
+
{
|
|
9914
|
+
ref,
|
|
9915
|
+
"data-slot": "step-pipeline",
|
|
9916
|
+
className: cn67(stepPipelineVariants({ orientation }), className),
|
|
9917
|
+
children: steps.map((step, index) => {
|
|
9918
|
+
const status = resolveStatus(step, index, currentIndex);
|
|
9919
|
+
const isCurrent = status === "current";
|
|
9920
|
+
const isLast = index === steps.length - 1;
|
|
9921
|
+
const key = step.id !== void 0 ? step.id : index;
|
|
9922
|
+
return /* @__PURE__ */ jsx(
|
|
9923
|
+
"li",
|
|
9924
|
+
{
|
|
9925
|
+
"data-slot": "step",
|
|
9926
|
+
"data-status": status,
|
|
9927
|
+
"aria-current": isCurrent ? "step" : void 0,
|
|
9928
|
+
className: cn67(
|
|
9929
|
+
"flex shrink-0",
|
|
9930
|
+
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
9931
|
+
orientation === "horizontal" && !isLast && "flex-1"
|
|
9932
|
+
),
|
|
9933
|
+
children: orientation === "horizontal" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9934
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full items-center", children: [
|
|
9935
|
+
index > 0 && /* @__PURE__ */ jsx(
|
|
9936
|
+
"div",
|
|
9937
|
+
{
|
|
9938
|
+
"data-slot": "step-connector",
|
|
9939
|
+
className: cn67(stepConnectorVariants({ status, orientation }))
|
|
9940
|
+
}
|
|
9941
|
+
),
|
|
9942
|
+
/* @__PURE__ */ jsx(
|
|
9943
|
+
"div",
|
|
9944
|
+
{
|
|
9945
|
+
"data-slot": "step-indicator",
|
|
9946
|
+
className: cn67(stepIndicatorVariants({ status, orientation })),
|
|
9947
|
+
"aria-hidden": "true",
|
|
9948
|
+
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
9949
|
+
}
|
|
9950
|
+
),
|
|
9951
|
+
!isLast && /* @__PURE__ */ jsx(
|
|
9952
|
+
"div",
|
|
9953
|
+
{
|
|
9954
|
+
"data-slot": "step-connector",
|
|
9955
|
+
className: cn67(
|
|
9956
|
+
stepConnectorVariants({
|
|
9957
|
+
// connector after current step is still upcoming
|
|
9958
|
+
status: status === "done" ? "done" : "upcoming",
|
|
9959
|
+
orientation
|
|
9960
|
+
})
|
|
9961
|
+
)
|
|
9962
|
+
}
|
|
9963
|
+
)
|
|
9964
|
+
] }),
|
|
9965
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
|
|
9966
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn67(stepLabelVariants({ status })), children: step.label }),
|
|
9967
|
+
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
9968
|
+
"span",
|
|
9969
|
+
{
|
|
9970
|
+
"data-slot": "step-description",
|
|
9971
|
+
className: cn67(stepDescriptionVariants({ status })),
|
|
9972
|
+
children: step.description
|
|
9973
|
+
}
|
|
9974
|
+
)
|
|
9975
|
+
] })
|
|
9976
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9977
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
9978
|
+
/* @__PURE__ */ jsx(
|
|
9979
|
+
"div",
|
|
9980
|
+
{
|
|
9981
|
+
"data-slot": "step-indicator",
|
|
9982
|
+
className: cn67(stepIndicatorVariants({ status, orientation })),
|
|
9983
|
+
"aria-hidden": "true",
|
|
9984
|
+
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
|
|
9985
|
+
}
|
|
9986
|
+
),
|
|
9987
|
+
!isLast && /* @__PURE__ */ jsx(
|
|
9988
|
+
"div",
|
|
9989
|
+
{
|
|
9990
|
+
"data-slot": "step-connector",
|
|
9991
|
+
className: cn67(
|
|
9992
|
+
stepConnectorVariants({
|
|
9993
|
+
status: status === "done" ? "done" : "upcoming",
|
|
9994
|
+
orientation
|
|
9995
|
+
})
|
|
9996
|
+
)
|
|
9997
|
+
}
|
|
9998
|
+
)
|
|
9999
|
+
] }),
|
|
10000
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
10001
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn67(stepLabelVariants({ status })), children: step.label }),
|
|
10002
|
+
step.description !== void 0 && /* @__PURE__ */ jsx(
|
|
10003
|
+
"span",
|
|
10004
|
+
{
|
|
10005
|
+
"data-slot": "step-description",
|
|
10006
|
+
className: cn67(stepDescriptionVariants({ status })),
|
|
10007
|
+
children: step.description
|
|
10008
|
+
}
|
|
10009
|
+
)
|
|
10010
|
+
] })
|
|
10011
|
+
] })
|
|
10012
|
+
},
|
|
10013
|
+
key
|
|
10014
|
+
);
|
|
10015
|
+
})
|
|
10016
|
+
}
|
|
10017
|
+
);
|
|
10018
|
+
}
|
|
10019
|
+
MosaicStepPipeline.displayName = "MosaicStepPipeline";
|
|
9819
10020
|
var WorkspaceCtx = React27.createContext({
|
|
9820
10021
|
workspaceId: null,
|
|
9821
10022
|
isLoading: false
|
|
@@ -9937,6 +10138,6 @@ async function MosaicClerkWebhookHandler(req, options) {
|
|
|
9937
10138
|
return new Response("OK", { status: 200 });
|
|
9938
10139
|
}
|
|
9939
10140
|
|
|
9940
|
-
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
10141
|
+
export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicAppSidebar, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicLogosGrid, MosaicMainNav, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicTooltip, MosaicUserButton, Placeholder, badgeVariants, buttonVariants, skeletonVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
|
|
9941
10142
|
//# sourceMappingURL=index.js.map
|
|
9942
10143
|
//# sourceMappingURL=index.js.map
|