@nswds/app 1.21.1 → 1.22.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.d.cts CHANGED
@@ -318,7 +318,7 @@ interface BreadcrumbsProps {
318
318
  demoPath?: string;
319
319
  }
320
320
  type View = 'desktop' | 'tablet' | 'mobile';
321
- declare const languages: readonly ["bash", "css", "javascript", "js", "json", "jsx", "ts", "tsx", "typescript"];
321
+ declare const languages: readonly ["bash", "css", "javascript", "js", "json", "jsx", "ts", "tsx", "typescript", "html"];
322
322
  type Language = (typeof languages)[number];
323
323
  type IFrameData = number | IFrameOptions;
324
324
  interface IFrameOptions {
@@ -351,12 +351,63 @@ type Code$1 = CodeItem | [CodeItem, ...CodeItem[]];
351
351
  type CodeData<V extends Variants = Variants> = SingleCodeData | VariantCodeData<V>;
352
352
  interface CodeDemoProps {
353
353
  data: CodeData;
354
+ hide?: {
355
+ rtl?: boolean;
356
+ darkMode?: boolean;
357
+ themeSelector?: boolean;
358
+ };
354
359
  }
355
360
  interface CodeHighlightProps extends React.ComponentProps<'pre'> {
356
361
  code: string;
357
362
  language: Language;
358
363
  withCopy?: boolean;
359
364
  }
365
+ type ThemeMessage = {
366
+ type: 'nswds-theme';
367
+ payload: {
368
+ [key: string]: string;
369
+ };
370
+ };
371
+ type IFrameProps = {
372
+ data: CodeData;
373
+ isRTL: boolean;
374
+ isDarkMode: boolean | null;
375
+ sandbox?: string;
376
+ };
377
+ interface ThemeSelectorDropDownProps {
378
+ themeCategory: ThemeCategory;
379
+ setThemeCategory: (category: ThemeCategory) => void;
380
+ primaryColor: string;
381
+ setPrimaryColor: (color: string) => void;
382
+ accentColor: string;
383
+ setAccentColor: (color: string) => void;
384
+ }
385
+ interface TypeSpecs {
386
+ size: string;
387
+ lineHeight: string;
388
+ letterSpacing: string;
389
+ }
390
+ interface HeadingTypeProps {
391
+ trim: 'normal' | 'start' | 'end' | 'both';
392
+ size: 1 | 2 | 3 | 4 | 5 | 6;
393
+ level: 1 | 2 | 3 | 4 | 5 | 6;
394
+ display: boolean;
395
+ }
396
+ interface TextTypeProps {
397
+ trim: 'normal' | 'start' | 'end' | 'both';
398
+ size: 1 | 2 | 3 | 4;
399
+ level: 1 | 2 | 3 | 4;
400
+ label: boolean;
401
+ }
402
+ type TypeExampleProps = {
403
+ name: string;
404
+ specs: TypeSpecs;
405
+ typeProps: HeadingTypeProps;
406
+ } | {
407
+ name: string;
408
+ specs: TypeSpecs;
409
+ typeProps: TextTypeProps;
410
+ };
360
411
 
361
412
  declare function BaseColorSwatches({ baseColors, format, }: {
362
413
  baseColors: string[] | undefined;
@@ -420,7 +471,7 @@ declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div
420
471
 
421
472
  declare function Checkbox({ className, ...props }: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime.JSX.Element;
422
473
 
423
- declare function CodeDemo({ data }: CodeDemoProps): react_jsx_runtime.JSX.Element;
474
+ declare function CodeDemo({ data, hide }: CodeDemoProps): react_jsx_runtime.JSX.Element;
424
475
 
425
476
  declare function CodeHighlight({ code, language, className, withCopy, ...props }: CodeHighlightProps): react_jsx_runtime.JSX.Element;
426
477
 
@@ -568,12 +619,19 @@ declare function Footer({ legalLinks, department, socialLinks, }: {
568
619
 
569
620
  declare function FormatToggle({ format, setFormat }: FormatToggleProps): react_jsx_runtime.JSX.Element;
570
621
 
571
- type HeadingProps = {
622
+ type BaseProps$1 = React.ComponentPropsWithoutRef<'h1'>;
623
+ type HeadingProps = ({
624
+ display?: false;
625
+ size?: 1 | 2 | 3 | 4 | 5 | 6;
626
+ trim?: 'normal' | 'start' | 'end' | 'both';
627
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
628
+ } & BaseProps$1) | ({
629
+ display: true;
630
+ size?: 1 | 2 | 3 | 4;
572
631
  level?: 1 | 2 | 3 | 4 | 5 | 6;
573
- size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
574
632
  trim?: 'normal' | 'start' | 'end' | 'both';
575
- } & React.ComponentPropsWithoutRef<'h1'>;
576
- declare function Heading({ className, trim, size, level, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
633
+ } & BaseProps$1);
634
+ declare function Heading({ className, trim, size, level, display, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
577
635
 
578
636
  declare function Header({ sitename, navigation, version, }: {
579
637
  sitename?: string;
@@ -851,11 +909,17 @@ declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof
851
909
  declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
852
910
  declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
853
911
 
854
- type TextProps = {
855
- size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
912
+ type BaseProps = React.ComponentPropsWithoutRef<'p'>;
913
+ type TextProps = ({
914
+ label?: false;
915
+ size?: 1 | 2 | 3 | 4;
916
+ trim?: 'normal' | 'start' | 'end' | 'both';
917
+ } & BaseProps) | ({
918
+ label: true;
919
+ size?: 1 | 2 | 3 | 4;
856
920
  trim?: 'normal' | 'start' | 'end' | 'both';
857
- } & React.ComponentPropsWithoutRef<'p'>;
858
- declare function Text({ className, trim, size, ...props }: TextProps): react_jsx_runtime.JSX.Element;
921
+ } & BaseProps);
922
+ declare function Text({ className, trim, size, label, ...props }: TextProps): react_jsx_runtime.JSX.Element;
859
923
  declare function TextLink({ className, ...props }: React.ComponentPropsWithoutRef<typeof Link>): react_jsx_runtime.JSX.Element;
860
924
  declare function Strong({ className, ...props }: React.ComponentPropsWithoutRef<'strong'>): react_jsx_runtime.JSX.Element;
861
925
  declare function Code({ className, ...props }: React.ComponentPropsWithoutRef<'code'>): react_jsx_runtime.JSX.Element;
@@ -942,4 +1006,4 @@ declare const allPalettes: Palette[];
942
1006
  declare const colors: ColorThemes;
943
1007
  declare const colorThemes: ColorThemes;
944
1008
 
945
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataType, type DataTypeSelectProps, type DesignTokensShades, type DesignTokensTheme, 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, DynamicFavicon, ExpandableSearch, ExpandableSearchField, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type IFrameData, type IFrameOptions, type IconProps, Icons, Input, Label, type Language, type LayoutProps, Link, Logo, Masthead, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navigation, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SidebarLink, type SidebarLinkProps, SidebarNavigation, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, Spinner, Strong, type StructuredColor, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TouchTarget, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, cn, type colorCategories, colorDataArray, colorThemes, colors, createColorArray, createColorData, darkenColor, domToSimple, generateColorThemes, getColorValue, getHeadings, getNodeText, getSurroundingColors, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useToc };
1009
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataType, type DataTypeSelectProps, type DesignTokensShades, type DesignTokensTheme, 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, DynamicFavicon, ExpandableSearch, ExpandableSearchField, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, type IFrameData, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, Label, type Language, type LayoutProps, Link, Logo, Masthead, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navigation, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SidebarLink, type SidebarLinkProps, SidebarNavigation, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, Spinner, Strong, type StructuredColor, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, type TextTypeProps, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TouchTarget, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, cn, type colorCategories, colorDataArray, colorThemes, colors, createColorArray, createColorData, darkenColor, domToSimple, generateColorThemes, getColorValue, getHeadings, getNodeText, getSurroundingColors, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useToc };
package/dist/index.d.ts CHANGED
@@ -318,7 +318,7 @@ interface BreadcrumbsProps {
318
318
  demoPath?: string;
319
319
  }
320
320
  type View = 'desktop' | 'tablet' | 'mobile';
321
- declare const languages: readonly ["bash", "css", "javascript", "js", "json", "jsx", "ts", "tsx", "typescript"];
321
+ declare const languages: readonly ["bash", "css", "javascript", "js", "json", "jsx", "ts", "tsx", "typescript", "html"];
322
322
  type Language = (typeof languages)[number];
323
323
  type IFrameData = number | IFrameOptions;
324
324
  interface IFrameOptions {
@@ -351,12 +351,63 @@ type Code$1 = CodeItem | [CodeItem, ...CodeItem[]];
351
351
  type CodeData<V extends Variants = Variants> = SingleCodeData | VariantCodeData<V>;
352
352
  interface CodeDemoProps {
353
353
  data: CodeData;
354
+ hide?: {
355
+ rtl?: boolean;
356
+ darkMode?: boolean;
357
+ themeSelector?: boolean;
358
+ };
354
359
  }
355
360
  interface CodeHighlightProps extends React.ComponentProps<'pre'> {
356
361
  code: string;
357
362
  language: Language;
358
363
  withCopy?: boolean;
359
364
  }
365
+ type ThemeMessage = {
366
+ type: 'nswds-theme';
367
+ payload: {
368
+ [key: string]: string;
369
+ };
370
+ };
371
+ type IFrameProps = {
372
+ data: CodeData;
373
+ isRTL: boolean;
374
+ isDarkMode: boolean | null;
375
+ sandbox?: string;
376
+ };
377
+ interface ThemeSelectorDropDownProps {
378
+ themeCategory: ThemeCategory;
379
+ setThemeCategory: (category: ThemeCategory) => void;
380
+ primaryColor: string;
381
+ setPrimaryColor: (color: string) => void;
382
+ accentColor: string;
383
+ setAccentColor: (color: string) => void;
384
+ }
385
+ interface TypeSpecs {
386
+ size: string;
387
+ lineHeight: string;
388
+ letterSpacing: string;
389
+ }
390
+ interface HeadingTypeProps {
391
+ trim: 'normal' | 'start' | 'end' | 'both';
392
+ size: 1 | 2 | 3 | 4 | 5 | 6;
393
+ level: 1 | 2 | 3 | 4 | 5 | 6;
394
+ display: boolean;
395
+ }
396
+ interface TextTypeProps {
397
+ trim: 'normal' | 'start' | 'end' | 'both';
398
+ size: 1 | 2 | 3 | 4;
399
+ level: 1 | 2 | 3 | 4;
400
+ label: boolean;
401
+ }
402
+ type TypeExampleProps = {
403
+ name: string;
404
+ specs: TypeSpecs;
405
+ typeProps: HeadingTypeProps;
406
+ } | {
407
+ name: string;
408
+ specs: TypeSpecs;
409
+ typeProps: TextTypeProps;
410
+ };
360
411
 
361
412
  declare function BaseColorSwatches({ baseColors, format, }: {
362
413
  baseColors: string[] | undefined;
@@ -420,7 +471,7 @@ declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div
420
471
 
421
472
  declare function Checkbox({ className, ...props }: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime.JSX.Element;
422
473
 
423
- declare function CodeDemo({ data }: CodeDemoProps): react_jsx_runtime.JSX.Element;
474
+ declare function CodeDemo({ data, hide }: CodeDemoProps): react_jsx_runtime.JSX.Element;
424
475
 
425
476
  declare function CodeHighlight({ code, language, className, withCopy, ...props }: CodeHighlightProps): react_jsx_runtime.JSX.Element;
426
477
 
@@ -568,12 +619,19 @@ declare function Footer({ legalLinks, department, socialLinks, }: {
568
619
 
569
620
  declare function FormatToggle({ format, setFormat }: FormatToggleProps): react_jsx_runtime.JSX.Element;
570
621
 
571
- type HeadingProps = {
622
+ type BaseProps$1 = React.ComponentPropsWithoutRef<'h1'>;
623
+ type HeadingProps = ({
624
+ display?: false;
625
+ size?: 1 | 2 | 3 | 4 | 5 | 6;
626
+ trim?: 'normal' | 'start' | 'end' | 'both';
627
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
628
+ } & BaseProps$1) | ({
629
+ display: true;
630
+ size?: 1 | 2 | 3 | 4;
572
631
  level?: 1 | 2 | 3 | 4 | 5 | 6;
573
- size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
574
632
  trim?: 'normal' | 'start' | 'end' | 'both';
575
- } & React.ComponentPropsWithoutRef<'h1'>;
576
- declare function Heading({ className, trim, size, level, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
633
+ } & BaseProps$1);
634
+ declare function Heading({ className, trim, size, level, display, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
577
635
 
578
636
  declare function Header({ sitename, navigation, version, }: {
579
637
  sitename?: string;
@@ -851,11 +909,17 @@ declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof
851
909
  declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
852
910
  declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
853
911
 
854
- type TextProps = {
855
- size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
912
+ type BaseProps = React.ComponentPropsWithoutRef<'p'>;
913
+ type TextProps = ({
914
+ label?: false;
915
+ size?: 1 | 2 | 3 | 4;
916
+ trim?: 'normal' | 'start' | 'end' | 'both';
917
+ } & BaseProps) | ({
918
+ label: true;
919
+ size?: 1 | 2 | 3 | 4;
856
920
  trim?: 'normal' | 'start' | 'end' | 'both';
857
- } & React.ComponentPropsWithoutRef<'p'>;
858
- declare function Text({ className, trim, size, ...props }: TextProps): react_jsx_runtime.JSX.Element;
921
+ } & BaseProps);
922
+ declare function Text({ className, trim, size, label, ...props }: TextProps): react_jsx_runtime.JSX.Element;
859
923
  declare function TextLink({ className, ...props }: React.ComponentPropsWithoutRef<typeof Link>): react_jsx_runtime.JSX.Element;
860
924
  declare function Strong({ className, ...props }: React.ComponentPropsWithoutRef<'strong'>): react_jsx_runtime.JSX.Element;
861
925
  declare function Code({ className, ...props }: React.ComponentPropsWithoutRef<'code'>): react_jsx_runtime.JSX.Element;
@@ -942,4 +1006,4 @@ declare const allPalettes: Palette[];
942
1006
  declare const colors: ColorThemes;
943
1007
  declare const colorThemes: ColorThemes;
944
1008
 
945
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataType, type DataTypeSelectProps, type DesignTokensShades, type DesignTokensTheme, 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, DynamicFavicon, ExpandableSearch, ExpandableSearchField, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type IFrameData, type IFrameOptions, type IconProps, Icons, Input, Label, type Language, type LayoutProps, Link, Logo, Masthead, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navigation, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SidebarLink, type SidebarLinkProps, SidebarNavigation, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, Spinner, Strong, type StructuredColor, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TouchTarget, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, cn, type colorCategories, colorDataArray, colorThemes, colors, createColorArray, createColorData, darkenColor, domToSimple, generateColorThemes, getColorValue, getHeadings, getNodeText, getSurroundingColors, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useToc };
1009
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataType, type DataTypeSelectProps, type DesignTokensShades, type DesignTokensTheme, 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, DynamicFavicon, ExpandableSearch, ExpandableSearchField, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, type IFrameData, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, Label, type Language, type LayoutProps, Link, Logo, Masthead, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navigation, type NavigationLink, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, type NavigationSection, type Output, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, type PrevNextLinksProps, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SidebarLink, type SidebarLinkProps, SidebarNavigation, type SimpleNode, type SingleCodeData, SiteSearch, Skeleton, Slider, Social, Spinner, Strong, type StructuredColor, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsItem, type TableOfContentsProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, type TextTypeProps, Textarea, type ThemeCategory, ThemeColorPalette, type ThemeMessage, type ThemeOption, ThemeProvider, ThemeSelector, type ThemeSelectorDropDownProps, type ThemeSelectorProps, ThemeSwitcher, Toaster, TocContext, type TocContextType, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TouchTarget, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, cn, type colorCategories, colorDataArray, colorThemes, colors, createColorArray, createColorData, darkenColor, domToSimple, generateColorThemes, getColorValue, getHeadings, getNodeText, getSurroundingColors, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useToc };