@algenium/blocks 1.11.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +36 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +36 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -944,18 +944,18 @@ interface MexicoMapProps {
|
|
|
944
944
|
}
|
|
945
945
|
declare function MexicoMap({ selected, onToggle, className }: MexicoMapProps): react_jsx_runtime.JSX.Element;
|
|
946
946
|
|
|
947
|
-
type
|
|
948
|
-
interface
|
|
949
|
-
status:
|
|
947
|
+
type ProfessionalVerificationStatus = "unverified" | "pending_review" | "verified";
|
|
948
|
+
interface VerifiedProfessionalBadgeProps {
|
|
949
|
+
status: ProfessionalVerificationStatus;
|
|
950
950
|
size?: "sm" | "md";
|
|
951
951
|
/** Icon-only with title/aria-label when false (default). */
|
|
952
952
|
showLabel?: boolean;
|
|
953
953
|
className?: string;
|
|
954
954
|
}
|
|
955
|
-
declare function
|
|
955
|
+
declare function VerifiedProfessionalBadge({ status, size, showLabel, className, }: VerifiedProfessionalBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
956
956
|
|
|
957
957
|
declare const MEXICO_STATE_PATHS: Record<MexicoStateId, string>;
|
|
958
958
|
|
|
959
959
|
declare function cn(...inputs: ClassValue[]): string;
|
|
960
960
|
|
|
961
|
-
export { type AddressAutocompleteAdapter, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, BLOCKS_DATA_ENVIRONMENTS, type BlocksDataEnvironment, type BlocksLanguage, type BlocksNotification, Button, CalendarContext, type CalendarContextValue, type CalendarData, type CalendarEvent, CalendarSubscribeButton, type CalendarSubscribeButtonProps, CalendarView, type CalendarViewLabels, type CalendarViewMode, type CalendarViewProps, CalendarWidget, type CalendarWidgetLabels, type CalendarWidgetProps, CardInput, type CardInputLabels, type CardInputProps, type CardTokenResult, type ChatConversation, type ChatConversationRoom, type ChatMessageData, type ChatRoomConfig, ChatRoomView, type ChatRoomViewLabels, type ChatRoomViewProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarLabels, type ChatSidebarProps, ChatSidebarProvider, type ChatSidebarProviderProps, type ChatSidebarView, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger,
|
|
961
|
+
export { type AddressAutocompleteAdapter, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, BLOCKS_DATA_ENVIRONMENTS, type BlocksDataEnvironment, type BlocksLanguage, type BlocksNotification, Button, CalendarContext, type CalendarContextValue, type CalendarData, type CalendarEvent, CalendarSubscribeButton, type CalendarSubscribeButtonProps, CalendarView, type CalendarViewLabels, type CalendarViewMode, type CalendarViewProps, CalendarWidget, type CalendarWidgetLabels, type CalendarWidgetProps, CardInput, type CardInputLabels, type CardInputProps, type CardTokenResult, type ChatConversation, type ChatConversationRoom, type ChatMessageData, type ChatRoomConfig, ChatRoomView, type ChatRoomViewLabels, type ChatRoomViewProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarLabels, type ChatSidebarProps, ChatSidebarProvider, type ChatSidebarProviderProps, type ChatSidebarView, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnvironmentBanner, type EnvironmentBannerLabels, type EnvironmentBannerProps, EnvironmentContext, type EnvironmentContextValue, EnvironmentDot, type EnvironmentDotProps, EnvironmentMiniBadge, type EnvironmentMiniBadgeProps, EnvironmentSwitcher, type EnvironmentSwitcherLabels, type EnvironmentSwitcherProps, ErrorState, EventDialog, type EventDialogLabels, type EventDialogProps, EventRsvpBadge, type EventRsvpBadgeProps, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, MiniCalendar, type MiniCalendarProps, type Notification, type NotificationType, NotificationsContext, type NotificationsContextValue, NotificationsWidget, type NotificationsWidgetProps, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfessionalVerificationStatus, ScrollArea, ScrollBar, Slider, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, USAddressInput, type USAddressInputLabels, type USAddressInputProps, type USAddressValue, UpcomingEvents, type UpcomingEventsProps, type UseChatRoomResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, buttonVariants, cn, defaultLanguages, getEnvironmentDotClass, getEnvironmentLabel, isBlocksDataEnvironment, toggleVariants, useCalendarContext, useChatRoom, useChatSidebar, useDebouncedValue, useDebouncedValueStrict, useEnvironmentContext, useLanguageContext, useNotificationsContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -944,18 +944,18 @@ interface MexicoMapProps {
|
|
|
944
944
|
}
|
|
945
945
|
declare function MexicoMap({ selected, onToggle, className }: MexicoMapProps): react_jsx_runtime.JSX.Element;
|
|
946
946
|
|
|
947
|
-
type
|
|
948
|
-
interface
|
|
949
|
-
status:
|
|
947
|
+
type ProfessionalVerificationStatus = "unverified" | "pending_review" | "verified";
|
|
948
|
+
interface VerifiedProfessionalBadgeProps {
|
|
949
|
+
status: ProfessionalVerificationStatus;
|
|
950
950
|
size?: "sm" | "md";
|
|
951
951
|
/** Icon-only with title/aria-label when false (default). */
|
|
952
952
|
showLabel?: boolean;
|
|
953
953
|
className?: string;
|
|
954
954
|
}
|
|
955
|
-
declare function
|
|
955
|
+
declare function VerifiedProfessionalBadge({ status, size, showLabel, className, }: VerifiedProfessionalBadgeProps): react_jsx_runtime.JSX.Element | null;
|
|
956
956
|
|
|
957
957
|
declare const MEXICO_STATE_PATHS: Record<MexicoStateId, string>;
|
|
958
958
|
|
|
959
959
|
declare function cn(...inputs: ClassValue[]): string;
|
|
960
960
|
|
|
961
|
-
export { type AddressAutocompleteAdapter, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, BLOCKS_DATA_ENVIRONMENTS, type BlocksDataEnvironment, type BlocksLanguage, type BlocksNotification, Button, CalendarContext, type CalendarContextValue, type CalendarData, type CalendarEvent, CalendarSubscribeButton, type CalendarSubscribeButtonProps, CalendarView, type CalendarViewLabels, type CalendarViewMode, type CalendarViewProps, CalendarWidget, type CalendarWidgetLabels, type CalendarWidgetProps, CardInput, type CardInputLabels, type CardInputProps, type CardTokenResult, type ChatConversation, type ChatConversationRoom, type ChatMessageData, type ChatRoomConfig, ChatRoomView, type ChatRoomViewLabels, type ChatRoomViewProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarLabels, type ChatSidebarProps, ChatSidebarProvider, type ChatSidebarProviderProps, type ChatSidebarView, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger,
|
|
961
|
+
export { type AddressAutocompleteAdapter, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, BLOCKS_DATA_ENVIRONMENTS, type BlocksDataEnvironment, type BlocksLanguage, type BlocksNotification, Button, CalendarContext, type CalendarContextValue, type CalendarData, type CalendarEvent, CalendarSubscribeButton, type CalendarSubscribeButtonProps, CalendarView, type CalendarViewLabels, type CalendarViewMode, type CalendarViewProps, CalendarWidget, type CalendarWidgetLabels, type CalendarWidgetProps, CardInput, type CardInputLabels, type CardInputProps, type CardTokenResult, type ChatConversation, type ChatConversationRoom, type ChatMessageData, type ChatRoomConfig, ChatRoomView, type ChatRoomViewLabels, type ChatRoomViewProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarLabels, type ChatSidebarProps, ChatSidebarProvider, type ChatSidebarProviderProps, type ChatSidebarView, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnvironmentBanner, type EnvironmentBannerLabels, type EnvironmentBannerProps, EnvironmentContext, type EnvironmentContextValue, EnvironmentDot, type EnvironmentDotProps, EnvironmentMiniBadge, type EnvironmentMiniBadgeProps, EnvironmentSwitcher, type EnvironmentSwitcherLabels, type EnvironmentSwitcherProps, ErrorState, EventDialog, type EventDialogLabels, type EventDialogProps, EventRsvpBadge, type EventRsvpBadgeProps, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, MiniCalendar, type MiniCalendarProps, type Notification, type NotificationType, NotificationsContext, type NotificationsContextValue, NotificationsWidget, type NotificationsWidgetProps, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfessionalVerificationStatus, ScrollArea, ScrollBar, Slider, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, USAddressInput, type USAddressInputLabels, type USAddressInputProps, type USAddressValue, UpcomingEvents, type UpcomingEventsProps, type UseChatRoomResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, buttonVariants, cn, defaultLanguages, getEnvironmentDotClass, getEnvironmentLabel, isBlocksDataEnvironment, toggleVariants, useCalendarContext, useChatRoom, useChatSidebar, useDebouncedValue, useDebouncedValueStrict, useEnvironmentContext, useLanguageContext, useNotificationsContext };
|
package/dist/index.js
CHANGED
|
@@ -3658,7 +3658,23 @@ function TenantAvatar({
|
|
|
3658
3658
|
}
|
|
3659
3659
|
);
|
|
3660
3660
|
}
|
|
3661
|
-
function SwitcherSkeleton({
|
|
3661
|
+
function SwitcherSkeleton({
|
|
3662
|
+
className,
|
|
3663
|
+
collapsed = false
|
|
3664
|
+
}) {
|
|
3665
|
+
if (collapsed) {
|
|
3666
|
+
return /* @__PURE__ */ jsx(
|
|
3667
|
+
"div",
|
|
3668
|
+
{
|
|
3669
|
+
"data-testid": "org-switcher-skeleton",
|
|
3670
|
+
className: cn(
|
|
3671
|
+
"pointer-events-none flex size-8 items-center justify-center rounded-md",
|
|
3672
|
+
className
|
|
3673
|
+
),
|
|
3674
|
+
children: /* @__PURE__ */ jsx("div", { className: "size-8 shrink-0 animate-pulse rounded-lg bg-muted" })
|
|
3675
|
+
}
|
|
3676
|
+
);
|
|
3677
|
+
}
|
|
3662
3678
|
return /* @__PURE__ */ jsxs(
|
|
3663
3679
|
"div",
|
|
3664
3680
|
{
|
|
@@ -3679,6 +3695,7 @@ function SwitcherSkeleton({ className }) {
|
|
|
3679
3695
|
);
|
|
3680
3696
|
}
|
|
3681
3697
|
var triggerClassName = "flex h-12 min-h-12 w-full items-center gap-2 rounded-md px-2 text-left text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-accent data-[state=open]:text-accent-foreground";
|
|
3698
|
+
var collapsedTriggerClassName = "size-8 min-h-0 h-8 w-8 justify-center gap-0 p-0 px-0";
|
|
3682
3699
|
function OrgSwitcher({
|
|
3683
3700
|
activeTenant,
|
|
3684
3701
|
tenants,
|
|
@@ -3694,7 +3711,7 @@ function OrgSwitcher({
|
|
|
3694
3711
|
}) {
|
|
3695
3712
|
const labels = { ...defaultLabels2, ...userLabels };
|
|
3696
3713
|
if (isLoading) {
|
|
3697
|
-
return /* @__PURE__ */ jsx(SwitcherSkeleton, { className });
|
|
3714
|
+
return /* @__PURE__ */ jsx(SwitcherSkeleton, { className, collapsed });
|
|
3698
3715
|
}
|
|
3699
3716
|
if (!activeTenant) {
|
|
3700
3717
|
if (createUrl) {
|
|
@@ -3703,10 +3720,15 @@ function OrgSwitcher({
|
|
|
3703
3720
|
{
|
|
3704
3721
|
href: createUrl,
|
|
3705
3722
|
"data-testid": "org-switcher-empty",
|
|
3706
|
-
className: cn(
|
|
3723
|
+
className: cn(
|
|
3724
|
+
triggerClassName,
|
|
3725
|
+
collapsed && collapsedTriggerClassName,
|
|
3726
|
+
className,
|
|
3727
|
+
triggerClassNameProp
|
|
3728
|
+
),
|
|
3707
3729
|
children: [
|
|
3708
3730
|
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-lg bg-muted", children: /* @__PURE__ */ jsx(Building2, { className: "size-4 text-muted-foreground" }) }),
|
|
3709
|
-
/* @__PURE__ */ jsx("div", { className: "grid min-w-0 flex-1 text-left leading-tight", children: /* @__PURE__ */ jsx("span", { className: "truncate font-medium", children: labels.empty }) })
|
|
3731
|
+
!collapsed ? /* @__PURE__ */ jsx("div", { className: "grid min-w-0 flex-1 text-left leading-tight", children: /* @__PURE__ */ jsx("span", { className: "truncate font-medium", children: labels.empty }) }) : null
|
|
3710
3732
|
]
|
|
3711
3733
|
}
|
|
3712
3734
|
);
|
|
@@ -3715,10 +3737,15 @@ function OrgSwitcher({
|
|
|
3715
3737
|
"div",
|
|
3716
3738
|
{
|
|
3717
3739
|
"data-testid": "org-switcher-empty",
|
|
3718
|
-
className: cn(
|
|
3740
|
+
className: cn(
|
|
3741
|
+
triggerClassName,
|
|
3742
|
+
"pointer-events-none",
|
|
3743
|
+
collapsed && collapsedTriggerClassName,
|
|
3744
|
+
className
|
|
3745
|
+
),
|
|
3719
3746
|
children: [
|
|
3720
3747
|
/* @__PURE__ */ jsx("div", { className: "flex size-8 items-center justify-center rounded-lg bg-muted", children: /* @__PURE__ */ jsx(Building2, { className: "size-4 text-muted-foreground" }) }),
|
|
3721
|
-
/* @__PURE__ */ jsx("div", { className: "grid min-w-0 flex-1 text-left leading-tight", children: /* @__PURE__ */ jsx("span", { className: "truncate font-medium text-muted-foreground", children: labels.empty }) })
|
|
3748
|
+
!collapsed ? /* @__PURE__ */ jsx("div", { className: "grid min-w-0 flex-1 text-left leading-tight", children: /* @__PURE__ */ jsx("span", { className: "truncate font-medium text-muted-foreground", children: labels.empty }) }) : null
|
|
3722
3749
|
]
|
|
3723
3750
|
}
|
|
3724
3751
|
);
|
|
@@ -3733,6 +3760,7 @@ function OrgSwitcher({
|
|
|
3733
3760
|
className: cn(
|
|
3734
3761
|
triggerClassName,
|
|
3735
3762
|
"h-auto justify-start font-normal",
|
|
3763
|
+
collapsed && collapsedTriggerClassName,
|
|
3736
3764
|
className,
|
|
3737
3765
|
triggerClassNameProp
|
|
3738
3766
|
),
|
|
@@ -8455,7 +8483,7 @@ var sizeClasses4 = {
|
|
|
8455
8483
|
padding: "px-2 py-0.5"
|
|
8456
8484
|
}
|
|
8457
8485
|
};
|
|
8458
|
-
function
|
|
8486
|
+
function VerifiedProfessionalBadge({
|
|
8459
8487
|
status,
|
|
8460
8488
|
size = "md",
|
|
8461
8489
|
showLabel = false,
|
|
@@ -8499,6 +8527,6 @@ function VerifiedDoctorBadge({
|
|
|
8499
8527
|
);
|
|
8500
8528
|
}
|
|
8501
8529
|
|
|
8502
|
-
export { AvatarEditor, AvatarEditorDialog, BLOCKS_DATA_ENVIRONMENTS, Button, CalendarContext, CalendarSubscribeButton, CalendarView, CalendarWidget, CardInput, ChatRoomView, ChatSidebar, ChatSidebarContext, ChatSidebarProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EnvironmentBanner, EnvironmentContext, EnvironmentDot, EnvironmentMiniBadge, EnvironmentSwitcher, ErrorState, EventDialog, EventRsvpBadge, LanguageContext, LanguageSwitcher, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, MexicoMap, MiniCalendar, NotificationsContext, NotificationsWidget, OrgSwitcher, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Slider, ThemeSwitcher, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, USAddressInput, UpcomingEvents,
|
|
8530
|
+
export { AvatarEditor, AvatarEditorDialog, BLOCKS_DATA_ENVIRONMENTS, Button, CalendarContext, CalendarSubscribeButton, CalendarView, CalendarWidget, CardInput, ChatRoomView, ChatSidebar, ChatSidebarContext, ChatSidebarProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EnvironmentBanner, EnvironmentContext, EnvironmentDot, EnvironmentMiniBadge, EnvironmentSwitcher, ErrorState, EventDialog, EventRsvpBadge, LanguageContext, LanguageSwitcher, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, MexicoMap, MiniCalendar, NotificationsContext, NotificationsWidget, OrgSwitcher, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Slider, ThemeSwitcher, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, USAddressInput, UpcomingEvents, VerifiedProfessionalBadge, buttonVariants, cn, defaultLanguages, getEnvironmentDotClass, getEnvironmentLabel, isBlocksDataEnvironment, toggleVariants, useCalendarContext, useChatRoom, useChatSidebar, useDebouncedValue, useDebouncedValueStrict, useEnvironmentContext, useLanguageContext, useNotificationsContext };
|
|
8503
8531
|
//# sourceMappingURL=index.js.map
|
|
8504
8532
|
//# sourceMappingURL=index.js.map
|