canvas-ui-sdk 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -56,6 +56,16 @@ This SDK uses CSS custom properties (variables) for theming. Define these in you
56
56
 
57
57
  See `styles/tokens.reference.css` for a complete list of available CSS variables.
58
58
 
59
+ ## Tailwind v4
60
+
61
+ If you're using Tailwind CSS v4, add this to your CSS file so Tailwind scans the SDK's compiled JS for utility classes:
62
+
63
+ ```css
64
+ @source "../../node_modules/canvas-ui-sdk/dist";
65
+ ```
66
+
67
+ Without this, Tailwind won't generate the utility classes used by SDK components.
68
+
59
69
  ## Components
60
70
 
61
71
  ### UI Components
package/dist/index.d.ts CHANGED
@@ -4611,6 +4611,10 @@ declare function setCSSVariable(name: string, value: string): void;
4611
4611
  * Sets multiple CSS variables and broadcasts them to all iframes
4612
4612
  */
4613
4613
  declare function setCSSVariables(variables: Record<string, string>): void;
4614
+ /**
4615
+ * Removes CSS variables (makes them undefined so fallback chains work)
4616
+ */
4617
+ declare function removeCSSVariables(names: string[]): void;
4614
4618
  /**
4615
4619
  * Broadcasts CSS variable changes to all iframes via postMessage
4616
4620
  */
@@ -4712,4 +4716,4 @@ interface ThemeDrawerProps {
4712
4716
  }
4713
4717
  declare function ThemeDrawer({ devOnly, triggerPosition, defaultOpen, panels: enabledPanels, onThemeChange, initialOverrides, storageKey, }: ThemeDrawerProps): react_jsx_runtime.JSX.Element | null;
4714
4718
 
4715
- export { AccountSettingsShell, type AccountTab, ActivityFeed, Avatar, AvatarFallback, AvatarImage, BadgesCard, BlogCards, BottomInputChatWidget, type BrandAsset, Button, Calendar, CanvasItem, CategoryGrid, CenteredHero, ChatBubble, type ChatBubbleMessage, ChatDateSeparator, ChatInput, ChatMessageList, Checkbox, CheckboxWithLabel, CircularProgressBar, CircularProgressBarList, type CircularProgressBarListProps, type CircularProgressBarProps, ComponentPalette, ComponentSearch, ContentDropzone, ContentWithImage, CoreValuesGrid, CreditCardDisplay, CtaBanner, type CustomButtonStyle, CustomComponentHelper, DashboardShell, DateInput, DescriptionCard, DestinationCards, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DoubleSidebar, type DoubleSidebarSection, DoubleSidebarShell, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FaqAccordion, FaqsTable, FeatureWithImage, FeaturedNewsCards, FeaturedPlaces, FeaturesComparison, FileUploader, type FilterCheckboxGroupConfig, type FilterDateRangeConfig, type FilterDropdownConfig, type FilterOption$c as FilterOption, FilterPopover, type FilterState, FixedColumnDataTable, FlairBanner, FooterNavbar, FormGroup, GallerySection, GradientBanner, GridTilesList, Header, HeroDarkCentered, HeroDarkWithImage, HeroFullwidthImage, HeroSection, HowItWorks, type IconNavItemConfig, type IconShapeId, IconSidebar, IconSidebarShell, ImageFeedWithNestedComments, type ImageKey, ImageUploader, InfoCard, type InfoCardProps, Input, Label, LargeImageLabelsList, Sidebar as LayoutSidebar, type LineTab, LineTabs, type LinkItem, LinksCard, type LinksCardProps, Loader, LoginBrandingPanel, MenuSection, type MenufocusItem, MenufocusTemplate, type MenufocusTemplateProps, MessengerInput, MessengerSidebar, MetricsSection, MobileBottomNav, MobileMenuShell, type MobileNavTabConfig, MonthlyCalendarWidget, MultiselectCheckboxField, MultiselectTags, MultistepProgressBarShell, type MultistepProgressBarShellProps, type MultistepProgressBarStep, MultistepShell, MultistepSidebarShell, type NavItem, type NavSection, type NavTab, NestedCommentsTable, NestedDataTable, OfficeLocations, PageHeaderSection, Pagination, ParticipantList, type Persona, PersonaCard, PersonaGrid, PillTabs, type PillTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortfolioCard, PreviewBrandingContext, PricingCards, PricingCta, ProfileCard, ProfileGridTilesList, ProfileImageUploader, ProgressBar, type ProjectContext, ProjectContextShell, type ProjectContextTab, PromptChipsRow, PromptTemplate, RadioGroup, RadioGroupItem, RangeInput, ReviewsGrid, ReviewsTable, type Screen, type ScreenConnection, ScreenFlowchart, ScreenPromptBuilder, ScreenPromptTemplate, type ScreenStatus, type ScreenType, ScrollArea, ScrollBar, SearchBar, SearchBarShell, SearchSidebar, Searchbox, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectablePills, Separator, SettingsListRow, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar$1 as Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNav, SidebarProfileCard, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, SkillsCard, Slider, SlideshowGridTiles, SocialFeed, SocialProof, type SortOption$b as SortOption, StandardDataTable, StandardListWithImage, StandardPageShell, StatsCard, type Step, StepTracker, Switch, type TableColumn, type TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TeamCardsGrid, TeamCircularGrid, TestimonialCarousel, TextInput, Textarea, type ThemeBranding, ThemeContext, ThemeDrawer, type ThemeImages, ThemeProvider, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, UpvotingPostsTable, VerticalHowItWorks, VerticalMultistepShell, VerticalStepTracker, VideoChatControls, VideoContentSection, VideoPlaylistCard, VideoPlaylistItem, WebcamPreview, YouTubePlayer, accountTabs, allColorVariables, blocks, broadcastCSSVariables, buttonVariants, canvasBlocks, cn, colorVariables, defaultBranding, defaultButtonColorStyles, defaultButtonColors, defaultButtonSizes, defaultColors, defaultCustomButtonStyles, defaultDoubleSidebarSections, defaultIconNavItems, defaultImages, defaultInputSizes, defaultProgressBarSteps, defaultSteps, defaultSupportLinks, defaultTypography, defaultVerticalSteps, getChildScreens, getScreenUrl, getTopLevelScreens, groupModalDrawerBlocks, layoutPrimitives, layoutShells, marketingBlocks, pageTemplates, pricingBlocks, setCSSVariable, setCSSVariables, setupCSSVariableListener, useCSSVariableSync, useIsMobile, usePreviewBranding, useSidebar, useThemeBrandAssets, useThemeBranding, useThemeImages, videoBlocks };
4719
+ export { AccountSettingsShell, type AccountTab, ActivityFeed, Avatar, AvatarFallback, AvatarImage, BadgesCard, BlogCards, BottomInputChatWidget, type BrandAsset, Button, Calendar, CanvasItem, CategoryGrid, CenteredHero, ChatBubble, type ChatBubbleMessage, ChatDateSeparator, ChatInput, ChatMessageList, Checkbox, CheckboxWithLabel, CircularProgressBar, CircularProgressBarList, type CircularProgressBarListProps, type CircularProgressBarProps, ComponentPalette, ComponentSearch, ContentDropzone, ContentWithImage, CoreValuesGrid, CreditCardDisplay, CtaBanner, type CustomButtonStyle, CustomComponentHelper, DashboardShell, DateInput, DescriptionCard, DestinationCards, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DoubleSidebar, type DoubleSidebarSection, DoubleSidebarShell, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FaqAccordion, FaqsTable, FeatureWithImage, FeaturedNewsCards, FeaturedPlaces, FeaturesComparison, FileUploader, type FilterCheckboxGroupConfig, type FilterDateRangeConfig, type FilterDropdownConfig, type FilterOption$c as FilterOption, FilterPopover, type FilterState, FixedColumnDataTable, FlairBanner, FooterNavbar, FormGroup, GallerySection, GradientBanner, GridTilesList, Header, HeroDarkCentered, HeroDarkWithImage, HeroFullwidthImage, HeroSection, HowItWorks, type IconNavItemConfig, type IconShapeId, IconSidebar, IconSidebarShell, ImageFeedWithNestedComments, type ImageKey, ImageUploader, InfoCard, type InfoCardProps, Input, Label, LargeImageLabelsList, Sidebar as LayoutSidebar, type LineTab, LineTabs, type LinkItem, LinksCard, type LinksCardProps, Loader, LoginBrandingPanel, MenuSection, type MenufocusItem, MenufocusTemplate, type MenufocusTemplateProps, MessengerInput, MessengerSidebar, MetricsSection, MobileBottomNav, MobileMenuShell, type MobileNavTabConfig, MonthlyCalendarWidget, MultiselectCheckboxField, MultiselectTags, MultistepProgressBarShell, type MultistepProgressBarShellProps, type MultistepProgressBarStep, MultistepShell, MultistepSidebarShell, type NavItem, type NavSection, type NavTab, NestedCommentsTable, NestedDataTable, OfficeLocations, PageHeaderSection, Pagination, ParticipantList, type Persona, PersonaCard, PersonaGrid, PillTabs, type PillTabsProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortfolioCard, PreviewBrandingContext, PricingCards, PricingCta, ProfileCard, ProfileGridTilesList, ProfileImageUploader, ProgressBar, type ProjectContext, ProjectContextShell, type ProjectContextTab, PromptChipsRow, PromptTemplate, RadioGroup, RadioGroupItem, RangeInput, ReviewsGrid, ReviewsTable, type Screen, type ScreenConnection, ScreenFlowchart, ScreenPromptBuilder, ScreenPromptTemplate, type ScreenStatus, type ScreenType, ScrollArea, ScrollBar, SearchBar, SearchBarShell, SearchSidebar, Searchbox, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectablePills, Separator, SettingsListRow, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar$1 as Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNav, SidebarProfileCard, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, SkillsCard, Slider, SlideshowGridTiles, SocialFeed, SocialProof, type SortOption$b as SortOption, StandardDataTable, StandardListWithImage, StandardPageShell, StatsCard, type Step, StepTracker, Switch, type TableColumn, type TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TeamCardsGrid, TeamCircularGrid, TestimonialCarousel, TextInput, Textarea, type ThemeBranding, ThemeContext, ThemeDrawer, type ThemeImages, ThemeProvider, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, UpvotingPostsTable, VerticalHowItWorks, VerticalMultistepShell, VerticalStepTracker, VideoChatControls, VideoContentSection, VideoPlaylistCard, VideoPlaylistItem, WebcamPreview, YouTubePlayer, accountTabs, allColorVariables, blocks, broadcastCSSVariables, buttonVariants, canvasBlocks, cn, colorVariables, defaultBranding, defaultButtonColorStyles, defaultButtonColors, defaultButtonSizes, defaultColors, defaultCustomButtonStyles, defaultDoubleSidebarSections, defaultIconNavItems, defaultImages, defaultInputSizes, defaultProgressBarSteps, defaultSteps, defaultSupportLinks, defaultTypography, defaultVerticalSteps, getChildScreens, getScreenUrl, getTopLevelScreens, groupModalDrawerBlocks, layoutPrimitives, layoutShells, marketingBlocks, pageTemplates, pricingBlocks, removeCSSVariables, setCSSVariable, setCSSVariables, setupCSSVariableListener, useCSSVariableSync, useIsMobile, usePreviewBranding, useSidebar, useThemeBrandAssets, useThemeBranding, useThemeImages, videoBlocks };
package/dist/index.mjs CHANGED
@@ -3192,7 +3192,6 @@ var defaultTypography = {
3192
3192
  // Global Font
3193
3193
  "--typo-global-font": "Inter",
3194
3194
  // H1 - Hero headlines
3195
- "--typo-h1-font": "",
3196
3195
  "--typo-h1-size": "72px",
3197
3196
  "--typo-h1-size-mobile": "48px",
3198
3197
  "--typo-h1-weight": "700",
@@ -3201,7 +3200,6 @@ var defaultTypography = {
3201
3200
  "--typo-h1-color": "var(--canvas-text)",
3202
3201
  "--typo-h1-color-muted": "var(--canvas-text-muted)",
3203
3202
  // H2 - Major section headers
3204
- "--typo-h2-font": "",
3205
3203
  "--typo-h2-size": "60px",
3206
3204
  "--typo-h2-size-mobile": "40px",
3207
3205
  "--typo-h2-weight": "700",
@@ -3210,7 +3208,6 @@ var defaultTypography = {
3210
3208
  "--typo-h2-color": "var(--canvas-text)",
3211
3209
  "--typo-h2-color-muted": "var(--canvas-text-muted)",
3212
3210
  // H3 - Banner titles
3213
- "--typo-h3-font": "",
3214
3211
  "--typo-h3-size": "48px",
3215
3212
  "--typo-h3-size-mobile": "32px",
3216
3213
  "--typo-h3-weight": "700",
@@ -3219,7 +3216,6 @@ var defaultTypography = {
3219
3216
  "--typo-h3-color": "var(--canvas-text)",
3220
3217
  "--typo-h3-color-muted": "var(--canvas-text-muted)",
3221
3218
  // H4 - Page titles
3222
- "--typo-h4-font": "",
3223
3219
  "--typo-h4-size": "36px",
3224
3220
  "--typo-h4-size-mobile": "28px",
3225
3221
  "--typo-h4-weight": "600",
@@ -3228,7 +3224,6 @@ var defaultTypography = {
3228
3224
  "--typo-h4-color": "var(--canvas-text)",
3229
3225
  "--typo-h4-color-muted": "var(--canvas-text-muted)",
3230
3226
  // H5 - Large section headers
3231
- "--typo-h5-font": "",
3232
3227
  "--typo-h5-size": "30px",
3233
3228
  "--typo-h5-size-mobile": "24px",
3234
3229
  "--typo-h5-weight": "600",
@@ -3237,7 +3232,6 @@ var defaultTypography = {
3237
3232
  "--typo-h5-color": "var(--canvas-text)",
3238
3233
  "--typo-h5-color-muted": "var(--canvas-text-muted)",
3239
3234
  // H6 - Section titles
3240
- "--typo-h6-font": "",
3241
3235
  "--typo-h6-size": "24px",
3242
3236
  "--typo-h6-size-mobile": "20px",
3243
3237
  "--typo-h6-weight": "600",
@@ -3246,7 +3240,6 @@ var defaultTypography = {
3246
3240
  "--typo-h6-color": "var(--canvas-text)",
3247
3241
  "--typo-h6-color-muted": "var(--canvas-text-muted)",
3248
3242
  // Body XL - Lead paragraphs, card titles
3249
- "--typo-body-xl-font": "",
3250
3243
  "--typo-body-xl-size": "20px",
3251
3244
  "--typo-body-xl-size-mobile": "18px",
3252
3245
  "--typo-body-xl-weight": "400",
@@ -3255,7 +3248,6 @@ var defaultTypography = {
3255
3248
  "--typo-body-xl-color": "var(--canvas-text)",
3256
3249
  "--typo-body-xl-color-muted": "var(--canvas-text-muted)",
3257
3250
  // Body L - Descriptions
3258
- "--typo-body-l-font": "",
3259
3251
  "--typo-body-l-size": "18px",
3260
3252
  "--typo-body-l-size-mobile": "16px",
3261
3253
  "--typo-body-l-weight": "400",
@@ -3264,7 +3256,6 @@ var defaultTypography = {
3264
3256
  "--typo-body-l-color": "var(--canvas-text)",
3265
3257
  "--typo-body-l-color-muted": "var(--canvas-text-muted)",
3266
3258
  // Body M - Standard body text
3267
- "--typo-body-m-font": "",
3268
3259
  "--typo-body-m-size": "16px",
3269
3260
  "--typo-body-m-size-mobile": "15px",
3270
3261
  "--typo-body-m-weight": "400",
@@ -3273,7 +3264,6 @@ var defaultTypography = {
3273
3264
  "--typo-body-m-color": "var(--canvas-text)",
3274
3265
  "--typo-body-m-color-muted": "var(--canvas-text-muted)",
3275
3266
  // Body S - Captions, metadata
3276
- "--typo-body-s-font": "",
3277
3267
  "--typo-body-s-size": "14px",
3278
3268
  "--typo-body-s-size-mobile": "13px",
3279
3269
  "--typo-body-s-weight": "400",
@@ -3282,7 +3272,6 @@ var defaultTypography = {
3282
3272
  "--typo-body-s-color": "var(--canvas-text)",
3283
3273
  "--typo-body-s-color-muted": "var(--canvas-text-muted)",
3284
3274
  // Body XS - Fine print, labels
3285
- "--typo-body-xs-font": "",
3286
3275
  "--typo-body-xs-size": "12px",
3287
3276
  "--typo-body-xs-size-mobile": "11px",
3288
3277
  "--typo-body-xs-weight": "400",
@@ -3291,7 +3280,6 @@ var defaultTypography = {
3291
3280
  "--typo-body-xs-color": "var(--canvas-text)",
3292
3281
  "--typo-body-xs-color-muted": "var(--canvas-text-muted)",
3293
3282
  // Menu Label
3294
- "--typo-menu-label-font": "",
3295
3283
  "--typo-menu-label-size": "18px",
3296
3284
  "--typo-menu-label-size-mobile": "16px",
3297
3285
  "--typo-menu-label-weight": "600",
@@ -3299,7 +3287,6 @@ var defaultTypography = {
3299
3287
  "--typo-menu-label-line-height": "1.55",
3300
3288
  "--typo-menu-label-color": "var(--canvas-text)",
3301
3289
  // Sidebar Labels
3302
- "--typo-sidebar-label-font": "",
3303
3290
  "--typo-sidebar-label-size": "12px",
3304
3291
  "--typo-sidebar-label-size-mobile": "11px",
3305
3292
  "--typo-sidebar-label-weight": "600",
@@ -3307,7 +3294,6 @@ var defaultTypography = {
3307
3294
  "--typo-sidebar-label-line-height": "1.5",
3308
3295
  "--typo-sidebar-label-color": "var(--canvas-text)",
3309
3296
  // Sidebar Tabs
3310
- "--typo-sidebar-tab-font": "",
3311
3297
  "--typo-sidebar-tab-size": "14px",
3312
3298
  "--typo-sidebar-tab-size-mobile": "14px",
3313
3299
  "--typo-sidebar-tab-weight": "500",
@@ -3315,7 +3301,6 @@ var defaultTypography = {
3315
3301
  "--typo-sidebar-tab-line-height": "1.5",
3316
3302
  "--typo-sidebar-tab-color": "var(--canvas-text)",
3317
3303
  // Sidebar Subtabs
3318
- "--typo-sidebar-subtab-font": "",
3319
3304
  "--typo-sidebar-subtab-size": "14px",
3320
3305
  "--typo-sidebar-subtab-size-mobile": "14px",
3321
3306
  "--typo-sidebar-subtab-weight": "500",
@@ -3323,7 +3308,6 @@ var defaultTypography = {
3323
3308
  "--typo-sidebar-subtab-line-height": "1.5",
3324
3309
  "--typo-sidebar-subtab-color": "var(--canvas-text)",
3325
3310
  // Header Texts
3326
- "--typo-header-font": "",
3327
3311
  "--typo-header-size": "14px",
3328
3312
  "--typo-header-size-mobile": "14px",
3329
3313
  "--typo-header-weight": "400",
@@ -3331,7 +3315,6 @@ var defaultTypography = {
3331
3315
  "--typo-header-line-height": "1.5",
3332
3316
  "--typo-header-color": "var(--canvas-text)",
3333
3317
  // Input Labels
3334
- "--typo-input-label-font": "",
3335
3318
  "--typo-input-label-size": "14px",
3336
3319
  "--typo-input-label-size-mobile": "13px",
3337
3320
  "--typo-input-label-weight": "500",
@@ -3339,7 +3322,6 @@ var defaultTypography = {
3339
3322
  "--typo-input-label-line-height": "1.4",
3340
3323
  "--typo-input-label-color": "var(--canvas-text-muted)",
3341
3324
  // Button Text
3342
- "--typo-button-font": "",
3343
3325
  "--typo-button-size": "14px",
3344
3326
  "--typo-button-size-mobile": "14px",
3345
3327
  "--typo-button-weight": "500",
@@ -3353,7 +3335,6 @@ var defaultButtonSizes = {
3353
3335
  "--btn-mini-font-size": "12px",
3354
3336
  "--btn-mini-px": "10px",
3355
3337
  "--btn-mini-radius": "4px",
3356
- "--btn-mini-font-family": "",
3357
3338
  "--btn-mini-font-weight": "500",
3358
3339
  "--btn-mini-letter-spacing": "0em",
3359
3340
  // Small
@@ -3361,7 +3342,6 @@ var defaultButtonSizes = {
3361
3342
  "--btn-small-font-size": "14px",
3362
3343
  "--btn-small-px": "12px",
3363
3344
  "--btn-small-radius": "6px",
3364
- "--btn-small-font-family": "",
3365
3345
  "--btn-small-font-weight": "500",
3366
3346
  "--btn-small-letter-spacing": "0em",
3367
3347
  // Standard
@@ -3369,7 +3349,6 @@ var defaultButtonSizes = {
3369
3349
  "--btn-standard-font-size": "14px",
3370
3350
  "--btn-standard-px": "16px",
3371
3351
  "--btn-standard-radius": "8px",
3372
- "--btn-standard-font-family": "",
3373
3352
  "--btn-standard-font-weight": "500",
3374
3353
  "--btn-standard-letter-spacing": "0em",
3375
3354
  // Large
@@ -3377,7 +3356,6 @@ var defaultButtonSizes = {
3377
3356
  "--btn-large-font-size": "16px",
3378
3357
  "--btn-large-px": "20px",
3379
3358
  "--btn-large-radius": "10px",
3380
- "--btn-large-font-family": "",
3381
3359
  "--btn-large-font-weight": "500",
3382
3360
  "--btn-large-letter-spacing": "0em"
3383
3361
  };
@@ -4580,6 +4558,21 @@ function setCSSVariables(variables) {
4580
4558
  });
4581
4559
  broadcastCSSVariables(variables);
4582
4560
  }
4561
+ function removeCSSVariables(names) {
4562
+ names.forEach((name) => {
4563
+ document.documentElement.style.removeProperty(name);
4564
+ });
4565
+ const iframes = document.querySelectorAll("iframe");
4566
+ iframes.forEach((iframe) => {
4567
+ try {
4568
+ iframe.contentWindow?.postMessage(
4569
+ { type: "css-vars-remove", names },
4570
+ "*"
4571
+ );
4572
+ } catch {
4573
+ }
4574
+ });
4575
+ }
4583
4576
  function broadcastCSSVariables(variables) {
4584
4577
  const iframes = document.querySelectorAll("iframe");
4585
4578
  iframes.forEach((iframe) => {
@@ -4601,6 +4594,11 @@ function setupCSSVariableListener() {
4601
4594
  document.documentElement.style.setProperty(name, value);
4602
4595
  });
4603
4596
  }
4597
+ if (event.data?.type === "css-vars-remove" && Array.isArray(event.data.names)) {
4598
+ event.data.names.forEach((name) => {
4599
+ document.documentElement.style.removeProperty(name);
4600
+ });
4601
+ }
4604
4602
  };
4605
4603
  window.addEventListener("message", handler);
4606
4604
  return () => window.removeEventListener("message", handler);
@@ -24112,6 +24110,30 @@ function importJSON(json) {
24112
24110
  }
24113
24111
 
24114
24112
  // src/components/theme-drawer/hooks/use-theme-state.ts
24113
+ var FONT_VARS = [
24114
+ "--typo-h1-font",
24115
+ "--typo-h2-font",
24116
+ "--typo-h3-font",
24117
+ "--typo-h4-font",
24118
+ "--typo-h5-font",
24119
+ "--typo-h6-font",
24120
+ "--typo-body-xl-font",
24121
+ "--typo-body-l-font",
24122
+ "--typo-body-m-font",
24123
+ "--typo-body-s-font",
24124
+ "--typo-body-xs-font",
24125
+ "--typo-menu-label-font",
24126
+ "--typo-sidebar-label-font",
24127
+ "--typo-sidebar-tab-font",
24128
+ "--typo-sidebar-subtab-font",
24129
+ "--typo-header-font",
24130
+ "--typo-input-label-font",
24131
+ "--typo-button-font",
24132
+ "--btn-mini-font-family",
24133
+ "--btn-small-font-family",
24134
+ "--btn-standard-font-family",
24135
+ "--btn-large-font-family"
24136
+ ];
24115
24137
  var allDefaults = {
24116
24138
  ...defaultColors,
24117
24139
  ...defaultTypography,
@@ -24178,6 +24200,10 @@ function useThemeState(options) {
24178
24200
  localStorage.setItem(storageKey, exportJSON(next));
24179
24201
  } catch {
24180
24202
  }
24203
+ const fontVarsToRemove = FONT_VARS.filter((v) => v.startsWith(prefix));
24204
+ if (fontVarsToRemove.length > 0) {
24205
+ removeCSSVariables(fontVarsToRemove);
24206
+ }
24181
24207
  if (Object.keys(resetVars).length > 0) {
24182
24208
  setCSSVariables(resetVars);
24183
24209
  }
@@ -24193,6 +24219,7 @@ function useThemeState(options) {
24193
24219
  localStorage.removeItem(storageKey);
24194
24220
  } catch {
24195
24221
  }
24222
+ removeCSSVariables(FONT_VARS);
24196
24223
  setCSSVariables(allDefaults);
24197
24224
  onThemeChangeRef.current?.({});
24198
24225
  }, [storageKey]);
@@ -24205,6 +24232,7 @@ function useThemeState(options) {
24205
24232
  localStorage.setItem(storageKey, exportJSON(parsed));
24206
24233
  } catch {
24207
24234
  }
24235
+ removeCSSVariables(FONT_VARS);
24208
24236
  setCSSVariables({ ...allDefaults, ...parsed });
24209
24237
  onThemeChangeRef.current?.(parsed);
24210
24238
  return true;
@@ -25391,6 +25419,6 @@ function getTopLevelScreens(allScreens) {
25391
25419
  return allScreens.filter((s) => !s.parentId);
25392
25420
  }
25393
25421
 
25394
- export { AccountSettingsShell, ActivityFeed, Avatar, AvatarFallback, AvatarImage, BadgesCard, BlogCards, BottomInputChatWidget, Button, Calendar, CanvasItem, CategoryGrid, CenteredHero, ChatBubble, ChatDateSeparator, ChatInput, ChatMessageList, Checkbox, CheckboxWithLabel, CircularProgressBar, CircularProgressBarList, ComponentPalette, ComponentSearch, ContentDropzone, ContentWithImage, CoreValuesGrid, CreditCardDisplay, CtaBanner, CustomComponentHelper, DashboardHeader, DashboardShell, DateInput, DescriptionCard, DestinationCards, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChartWidget, DoubleSidebar, DoubleSidebarShell, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FaqAccordion, FaqsTable, FeatureWithImage, FeaturedNewsCards, FeaturedPlaces, FeaturesComparison, FileUploader, FilterPopover, FixedColumnDataTable, FlairBanner, FooterNavbar, FormGroup, GallerySection, GradientBanner, GraphMetricTilesDemo, GridTilesList, Header, HeroDarkCentered, HeroDarkWithImage, HeroFullwidthImage, HeroSection, HowItWorks, IconSidebar, IconSidebarShell, ImageFeedWithNestedComments, ImageUploader, InfoCard, Input, Label2 as Label, LargeImageLabelsList, Sidebar2 as LayoutSidebar, LineChartWidget, LineTabs, LinksCard, Loader, LoginBrandingPanel, MenuSection, MenufocusTemplate, MessengerInput, MessengerSidebar, MetricCard, MetricCardsRow, MetricListCard, MetricsSection, MobileBottomNav, MobileMenuShell, MonthlyCalendarWidget, MultiselectCheckboxField, MultiselectTags, MultistepProgressBarShell, MultistepShell, MultistepSidebarShell, NestedCommentsTable, NestedDataTable, OfficeLocations, PageHeaderSection, Pagination, ParticipantList, PersonaCard, PersonaGrid, PillTabs, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortfolioCard, PreviewBrandingContext, PricingCards, PricingCta, ProfileCard, ProfileGridTilesList, ProfileImageUploader, ProgressBar, ProgressMetricCard, ProjectContextShell, PromptChipsRow, PromptTemplate, RadioGroup2 as RadioGroup, RadioGroupItem, RangeInput, ReviewsGrid, ReviewsTable, ScreenFlowchart, ScreenPromptBuilder, ScreenPromptTemplate, ScrollArea, ScrollBar, SearchBar, SearchBarShell, SearchSidebar, Searchbox, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectablePills, Separator3 as Separator, SettingsListRow, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNav, SidebarProfileCard, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, SkillsCard, Slider, SlideshowGridTiles, SocialFeed, SocialProof, StandardDataTable, StandardListWithImage, StandardPageShell, StatsCard, StepTracker, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TeamCardsGrid, TeamCircularGrid, TestimonialCarousel, TextInput, Textarea, ThemeContext, ThemeDrawer, ThemeProvider, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoColumnWidgets, Typography, UpvotingPostsTable, VerticalHowItWorks, VerticalMultistepShell, VerticalStepTracker, VideoChatControls, VideoContentSection, VideoPlaylistCard, VideoPlaylistItem, WebcamPreview, YouTubePlayer, accountTabs, allColorVariables, blocks, broadcastCSSVariables, buttonVariants, canvasBlocks, cn, colorVariables, defaultBranding, defaultButtonColorStyles, defaultButtonColors, defaultButtonSizes, defaultColors, defaultCustomButtonStyles, defaultDoubleSidebarSections, defaultIconNavItems, defaultImages, defaultInputSizes, defaultProgressBarSteps, defaultSteps, defaultSupportLinks, defaultTypography, defaultVerticalSteps, getChildScreens, getScreenUrl, getTopLevelScreens, groupModalDrawerBlocks, layoutPrimitives, layoutShells, marketingBlocks, pageTemplates, pricingBlocks, setCSSVariable, setCSSVariables, setupCSSVariableListener, useCSSVariableSync, useIsMobile, usePreviewBranding, useSidebar, useThemeBrandAssets, useThemeBranding, useThemeImages, videoBlocks };
25422
+ export { AccountSettingsShell, ActivityFeed, Avatar, AvatarFallback, AvatarImage, BadgesCard, BlogCards, BottomInputChatWidget, Button, Calendar, CanvasItem, CategoryGrid, CenteredHero, ChatBubble, ChatDateSeparator, ChatInput, ChatMessageList, Checkbox, CheckboxWithLabel, CircularProgressBar, CircularProgressBarList, ComponentPalette, ComponentSearch, ContentDropzone, ContentWithImage, CoreValuesGrid, CreditCardDisplay, CtaBanner, CustomComponentHelper, DashboardHeader, DashboardShell, DateInput, DescriptionCard, DestinationCards, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChartWidget, DoubleSidebar, DoubleSidebarShell, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, FaqAccordion, FaqsTable, FeatureWithImage, FeaturedNewsCards, FeaturedPlaces, FeaturesComparison, FileUploader, FilterPopover, FixedColumnDataTable, FlairBanner, FooterNavbar, FormGroup, GallerySection, GradientBanner, GraphMetricTilesDemo, GridTilesList, Header, HeroDarkCentered, HeroDarkWithImage, HeroFullwidthImage, HeroSection, HowItWorks, IconSidebar, IconSidebarShell, ImageFeedWithNestedComments, ImageUploader, InfoCard, Input, Label2 as Label, LargeImageLabelsList, Sidebar2 as LayoutSidebar, LineChartWidget, LineTabs, LinksCard, Loader, LoginBrandingPanel, MenuSection, MenufocusTemplate, MessengerInput, MessengerSidebar, MetricCard, MetricCardsRow, MetricListCard, MetricsSection, MobileBottomNav, MobileMenuShell, MonthlyCalendarWidget, MultiselectCheckboxField, MultiselectTags, MultistepProgressBarShell, MultistepShell, MultistepSidebarShell, NestedCommentsTable, NestedDataTable, OfficeLocations, PageHeaderSection, Pagination, ParticipantList, PersonaCard, PersonaGrid, PillTabs, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortfolioCard, PreviewBrandingContext, PricingCards, PricingCta, ProfileCard, ProfileGridTilesList, ProfileImageUploader, ProgressBar, ProgressMetricCard, ProjectContextShell, PromptChipsRow, PromptTemplate, RadioGroup2 as RadioGroup, RadioGroupItem, RangeInput, ReviewsGrid, ReviewsTable, ScreenFlowchart, ScreenPromptBuilder, ScreenPromptTemplate, ScrollArea, ScrollBar, SearchBar, SearchBarShell, SearchSidebar, Searchbox, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectablePills, Separator3 as Separator, SettingsListRow, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNav, SidebarProfileCard, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, SkillsCard, Slider, SlideshowGridTiles, SocialFeed, SocialProof, StandardDataTable, StandardListWithImage, StandardPageShell, StatsCard, StepTracker, Switch, Tabs, TabsContent, TabsList, TabsTrigger, TeamCardsGrid, TeamCircularGrid, TestimonialCarousel, TextInput, Textarea, ThemeContext, ThemeDrawer, ThemeProvider, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwoColumnWidgets, Typography, UpvotingPostsTable, VerticalHowItWorks, VerticalMultistepShell, VerticalStepTracker, VideoChatControls, VideoContentSection, VideoPlaylistCard, VideoPlaylistItem, WebcamPreview, YouTubePlayer, accountTabs, allColorVariables, blocks, broadcastCSSVariables, buttonVariants, canvasBlocks, cn, colorVariables, defaultBranding, defaultButtonColorStyles, defaultButtonColors, defaultButtonSizes, defaultColors, defaultCustomButtonStyles, defaultDoubleSidebarSections, defaultIconNavItems, defaultImages, defaultInputSizes, defaultProgressBarSteps, defaultSteps, defaultSupportLinks, defaultTypography, defaultVerticalSteps, getChildScreens, getScreenUrl, getTopLevelScreens, groupModalDrawerBlocks, layoutPrimitives, layoutShells, marketingBlocks, pageTemplates, pricingBlocks, removeCSSVariables, setCSSVariable, setCSSVariables, setupCSSVariableListener, useCSSVariableSync, useIsMobile, usePreviewBranding, useSidebar, useThemeBrandAssets, useThemeBranding, useThemeImages, videoBlocks };
25395
25423
  //# sourceMappingURL=index.mjs.map
25396
25424
  //# sourceMappingURL=index.mjs.map