@nswds/app 1.43.0 → 1.45.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/globals.css +373 -662
- package/dist/index.cjs +1370 -1101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -33
- package/dist/index.d.ts +30 -33
- package/dist/index.js +1369 -1101
- package/dist/index.js.map +1 -1
- package/dist/styles.css +383 -662
- package/dist/styles.css.map +1 -1
- package/package.json +14 -4
package/dist/index.d.cts
CHANGED
|
@@ -53,6 +53,10 @@ declare function AccordionItem({ className, ...props }: React$1.ComponentProps<t
|
|
|
53
53
|
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
54
54
|
declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
55
55
|
|
|
56
|
+
declare function AuthLayout({ children }: {
|
|
57
|
+
children: React__default.ReactNode;
|
|
58
|
+
}): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
56
60
|
declare const alertVariants: (props?: ({
|
|
57
61
|
variant?: "default" | "destructive" | null | undefined;
|
|
58
62
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -286,6 +290,11 @@ type Link$1 = {
|
|
|
286
290
|
title: string;
|
|
287
291
|
links?: Link$1[];
|
|
288
292
|
};
|
|
293
|
+
type NavigationItem = {
|
|
294
|
+
title: string;
|
|
295
|
+
href?: string;
|
|
296
|
+
links?: NavigationItem[];
|
|
297
|
+
};
|
|
289
298
|
type NavigationLink = {
|
|
290
299
|
id?: string;
|
|
291
300
|
title: string;
|
|
@@ -347,6 +356,7 @@ interface IFrameOptions {
|
|
|
347
356
|
interface BaseCodeData<T extends 'single' | 'variant'> {
|
|
348
357
|
type: T;
|
|
349
358
|
githubSlug: string;
|
|
359
|
+
figmaSlug?: string;
|
|
350
360
|
component: React.ReactNode;
|
|
351
361
|
}
|
|
352
362
|
interface VariantCodeData<V extends Variants> extends BaseCodeData<'variant'> {
|
|
@@ -430,7 +440,7 @@ type TypeExampleProps = {
|
|
|
430
440
|
specs: TypeSpecs;
|
|
431
441
|
typeProps: TextTypeProps;
|
|
432
442
|
};
|
|
433
|
-
type FormStatus
|
|
443
|
+
type FormStatus = 'completed' | 'saved' | 'in-progress' | 'error' | 'not-started' | 'cannot-start';
|
|
434
444
|
|
|
435
445
|
declare function BaseColorSwatches({ baseColors, format, }: {
|
|
436
446
|
baseColors: string[] | undefined;
|
|
@@ -494,7 +504,7 @@ declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div
|
|
|
494
504
|
|
|
495
505
|
declare function Checkbox({ className, ...props }: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
496
506
|
|
|
497
|
-
declare function CodeDemo(
|
|
507
|
+
declare function CodeDemo(props: CodeDemoProps): react_jsx_runtime.JSX.Element;
|
|
498
508
|
|
|
499
509
|
declare function CodeHighlight({ code, language, className, withCopy, ...props }: CodeHighlightProps): react_jsx_runtime.JSX.Element;
|
|
500
510
|
|
|
@@ -625,7 +635,7 @@ declare function FooterLegalLinks({ legalLinks }: {
|
|
|
625
635
|
href: string;
|
|
626
636
|
}>;
|
|
627
637
|
}): react_jsx_runtime.JSX.Element;
|
|
628
|
-
declare function Footer({ legalLinks, department, socialLinks, }: {
|
|
638
|
+
declare function Footer({ legalLinks, department, socialLinks, className, }: {
|
|
629
639
|
legalLinks: Array<{
|
|
630
640
|
name: string;
|
|
631
641
|
href: string;
|
|
@@ -638,6 +648,7 @@ declare function Footer({ legalLinks, department, socialLinks, }: {
|
|
|
638
648
|
className?: string;
|
|
639
649
|
}>;
|
|
640
650
|
}>;
|
|
651
|
+
className?: string;
|
|
641
652
|
}): react_jsx_runtime.JSX.Element;
|
|
642
653
|
|
|
643
654
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
@@ -933,7 +944,7 @@ declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof Popo
|
|
|
933
944
|
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
934
945
|
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
935
946
|
|
|
936
|
-
declare function PrevNextLinksPageLink({ title, href, dir, ...props }: Omit<
|
|
947
|
+
declare function PrevNextLinksPageLink({ title, href, dir, ...props }: Omit<React__default.ComponentPropsWithoutRef<'div'>, 'dir' | 'title'> & {
|
|
937
948
|
title: string;
|
|
938
949
|
href: string;
|
|
939
950
|
dir?: 'previous' | 'next';
|
|
@@ -989,8 +1000,6 @@ declare function SidebarNavigation({ className, onLinkClick, navigation, }: {
|
|
|
989
1000
|
}): react_jsx_runtime.JSX.Element;
|
|
990
1001
|
declare function SidebarLink({ link, pathname, onLinkClick, depth }: SidebarLinkProps): react_jsx_runtime.JSX.Element;
|
|
991
1002
|
|
|
992
|
-
type FormStatus = 'completed' | 'saved' | 'in-progress' | 'error' | 'not-started' | 'cannot-start';
|
|
993
|
-
|
|
994
1003
|
interface FormStore<FD extends Record<string, unknown>> {
|
|
995
1004
|
formData: FD;
|
|
996
1005
|
formStatus: Record<keyof FD & string, FormStatus>;
|
|
@@ -1051,6 +1060,7 @@ declare function Slider({ className, defaultValue, value, min, max, ...props }:
|
|
|
1051
1060
|
|
|
1052
1061
|
declare const Social: {
|
|
1053
1062
|
Facebook: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1063
|
+
Figma: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1054
1064
|
Github: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1055
1065
|
Instagram: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1056
1066
|
LinkedIn: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1080,28 +1090,15 @@ declare function SwitchField({ className, ...props }: {
|
|
|
1080
1090
|
className?: string;
|
|
1081
1091
|
} & Omit<Headless.FieldProps, 'as' | 'className'>): react_jsx_runtime.JSX.Element;
|
|
1082
1092
|
declare const colors$1: {
|
|
1083
|
-
'dark/
|
|
1093
|
+
'dark/grey': string[];
|
|
1084
1094
|
'dark/white': string[];
|
|
1085
1095
|
dark: string[];
|
|
1086
|
-
|
|
1096
|
+
grey: string[];
|
|
1087
1097
|
white: string[];
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
lime: string[];
|
|
1093
|
-
green: string[];
|
|
1094
|
-
emerald: string[];
|
|
1095
|
-
teal: string[];
|
|
1096
|
-
cyan: string[];
|
|
1097
|
-
sky: string[];
|
|
1098
|
-
blue: string[];
|
|
1099
|
-
indigo: string[];
|
|
1100
|
-
violet: string[];
|
|
1101
|
-
purple: string[];
|
|
1102
|
-
fuchsia: string[];
|
|
1103
|
-
pink: string[];
|
|
1104
|
-
rose: string[];
|
|
1098
|
+
primary: string[];
|
|
1099
|
+
secondary: string[];
|
|
1100
|
+
tertiary: string[];
|
|
1101
|
+
accent: string[];
|
|
1105
1102
|
};
|
|
1106
1103
|
type Color = keyof typeof colors$1;
|
|
1107
1104
|
declare function Switch({ color, className, ...props }: {
|
|
@@ -1146,7 +1143,7 @@ declare function ThemeColorPalette(): react_jsx_runtime.JSX.Element;
|
|
|
1146
1143
|
|
|
1147
1144
|
declare function ThemeProvider({ children, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
1148
1145
|
|
|
1149
|
-
declare function ThemeSelector(
|
|
1146
|
+
declare function ThemeSelector(props: ThemeSelectorProps): react_jsx_runtime.JSX.Element;
|
|
1150
1147
|
|
|
1151
1148
|
declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element;
|
|
1152
1149
|
|
|
@@ -1574,7 +1571,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
1574
1571
|
background: string;
|
|
1575
1572
|
bar: string;
|
|
1576
1573
|
};
|
|
1577
|
-
|
|
1574
|
+
danger: {
|
|
1578
1575
|
background: string;
|
|
1579
1576
|
bar: string;
|
|
1580
1577
|
};
|
|
@@ -1600,7 +1597,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
1600
1597
|
background: string;
|
|
1601
1598
|
bar: string;
|
|
1602
1599
|
};
|
|
1603
|
-
|
|
1600
|
+
danger: {
|
|
1604
1601
|
background: string;
|
|
1605
1602
|
bar: string;
|
|
1606
1603
|
};
|
|
@@ -1626,7 +1623,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
1626
1623
|
background: string;
|
|
1627
1624
|
bar: string;
|
|
1628
1625
|
};
|
|
1629
|
-
|
|
1626
|
+
danger: {
|
|
1630
1627
|
background: string;
|
|
1631
1628
|
bar: string;
|
|
1632
1629
|
};
|
|
@@ -1661,7 +1658,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
1661
1658
|
background: string;
|
|
1662
1659
|
circle: string;
|
|
1663
1660
|
};
|
|
1664
|
-
|
|
1661
|
+
danger: {
|
|
1665
1662
|
background: string;
|
|
1666
1663
|
circle: string;
|
|
1667
1664
|
};
|
|
@@ -1687,7 +1684,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
1687
1684
|
background: string;
|
|
1688
1685
|
circle: string;
|
|
1689
1686
|
};
|
|
1690
|
-
|
|
1687
|
+
danger: {
|
|
1691
1688
|
background: string;
|
|
1692
1689
|
circle: string;
|
|
1693
1690
|
};
|
|
@@ -1713,7 +1710,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
1713
1710
|
background: string;
|
|
1714
1711
|
circle: string;
|
|
1715
1712
|
};
|
|
1716
|
-
|
|
1713
|
+
danger: {
|
|
1717
1714
|
background: string;
|
|
1718
1715
|
circle: string;
|
|
1719
1716
|
};
|
|
@@ -1933,4 +1930,4 @@ declare const allPalettes: Palette[];
|
|
|
1933
1930
|
declare const colors: ColorThemes;
|
|
1934
1931
|
declare const colorThemes: ColorThemes;
|
|
1935
1932
|
|
|
1936
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, type AreaChartEventProps, AspectRatio, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorUtility, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, ComboChart, type ComboChartEventProps, 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, Description, DescriptionDetails, DescriptionList, DescriptionTerm, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartEventProps, 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, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field, FieldGroup, FieldLabel, Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus
|
|
1933
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, type AreaChartEventProps, AspectRatio, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorUtility, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, ComboChart, type ComboChartEventProps, 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, Description, DescriptionDetails, DescriptionList, DescriptionTerm, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartEventProps, 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, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field, FieldGroup, FieldLabel, Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus, type FormStatusHook, type FormStore, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, HoverCard, HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, 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, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Prose, 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, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, Switch, SwitchField, SwitchGroup, 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$1 as Tooltip, TooltipContent, type TooltipProps$5 as TooltipProps, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, type TrackerBlockProps, Tooltip as TremorTooltip, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useToc };
|
package/dist/index.d.ts
CHANGED
|
@@ -53,6 +53,10 @@ declare function AccordionItem({ className, ...props }: React$1.ComponentProps<t
|
|
|
53
53
|
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
54
54
|
declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
55
55
|
|
|
56
|
+
declare function AuthLayout({ children }: {
|
|
57
|
+
children: React__default.ReactNode;
|
|
58
|
+
}): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
56
60
|
declare const alertVariants: (props?: ({
|
|
57
61
|
variant?: "default" | "destructive" | null | undefined;
|
|
58
62
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -286,6 +290,11 @@ type Link$1 = {
|
|
|
286
290
|
title: string;
|
|
287
291
|
links?: Link$1[];
|
|
288
292
|
};
|
|
293
|
+
type NavigationItem = {
|
|
294
|
+
title: string;
|
|
295
|
+
href?: string;
|
|
296
|
+
links?: NavigationItem[];
|
|
297
|
+
};
|
|
289
298
|
type NavigationLink = {
|
|
290
299
|
id?: string;
|
|
291
300
|
title: string;
|
|
@@ -347,6 +356,7 @@ interface IFrameOptions {
|
|
|
347
356
|
interface BaseCodeData<T extends 'single' | 'variant'> {
|
|
348
357
|
type: T;
|
|
349
358
|
githubSlug: string;
|
|
359
|
+
figmaSlug?: string;
|
|
350
360
|
component: React.ReactNode;
|
|
351
361
|
}
|
|
352
362
|
interface VariantCodeData<V extends Variants> extends BaseCodeData<'variant'> {
|
|
@@ -430,7 +440,7 @@ type TypeExampleProps = {
|
|
|
430
440
|
specs: TypeSpecs;
|
|
431
441
|
typeProps: TextTypeProps;
|
|
432
442
|
};
|
|
433
|
-
type FormStatus
|
|
443
|
+
type FormStatus = 'completed' | 'saved' | 'in-progress' | 'error' | 'not-started' | 'cannot-start';
|
|
434
444
|
|
|
435
445
|
declare function BaseColorSwatches({ baseColors, format, }: {
|
|
436
446
|
baseColors: string[] | undefined;
|
|
@@ -494,7 +504,7 @@ declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div
|
|
|
494
504
|
|
|
495
505
|
declare function Checkbox({ className, ...props }: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
496
506
|
|
|
497
|
-
declare function CodeDemo(
|
|
507
|
+
declare function CodeDemo(props: CodeDemoProps): react_jsx_runtime.JSX.Element;
|
|
498
508
|
|
|
499
509
|
declare function CodeHighlight({ code, language, className, withCopy, ...props }: CodeHighlightProps): react_jsx_runtime.JSX.Element;
|
|
500
510
|
|
|
@@ -625,7 +635,7 @@ declare function FooterLegalLinks({ legalLinks }: {
|
|
|
625
635
|
href: string;
|
|
626
636
|
}>;
|
|
627
637
|
}): react_jsx_runtime.JSX.Element;
|
|
628
|
-
declare function Footer({ legalLinks, department, socialLinks, }: {
|
|
638
|
+
declare function Footer({ legalLinks, department, socialLinks, className, }: {
|
|
629
639
|
legalLinks: Array<{
|
|
630
640
|
name: string;
|
|
631
641
|
href: string;
|
|
@@ -638,6 +648,7 @@ declare function Footer({ legalLinks, department, socialLinks, }: {
|
|
|
638
648
|
className?: string;
|
|
639
649
|
}>;
|
|
640
650
|
}>;
|
|
651
|
+
className?: string;
|
|
641
652
|
}): react_jsx_runtime.JSX.Element;
|
|
642
653
|
|
|
643
654
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
@@ -933,7 +944,7 @@ declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof Popo
|
|
|
933
944
|
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
934
945
|
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
935
946
|
|
|
936
|
-
declare function PrevNextLinksPageLink({ title, href, dir, ...props }: Omit<
|
|
947
|
+
declare function PrevNextLinksPageLink({ title, href, dir, ...props }: Omit<React__default.ComponentPropsWithoutRef<'div'>, 'dir' | 'title'> & {
|
|
937
948
|
title: string;
|
|
938
949
|
href: string;
|
|
939
950
|
dir?: 'previous' | 'next';
|
|
@@ -989,8 +1000,6 @@ declare function SidebarNavigation({ className, onLinkClick, navigation, }: {
|
|
|
989
1000
|
}): react_jsx_runtime.JSX.Element;
|
|
990
1001
|
declare function SidebarLink({ link, pathname, onLinkClick, depth }: SidebarLinkProps): react_jsx_runtime.JSX.Element;
|
|
991
1002
|
|
|
992
|
-
type FormStatus = 'completed' | 'saved' | 'in-progress' | 'error' | 'not-started' | 'cannot-start';
|
|
993
|
-
|
|
994
1003
|
interface FormStore<FD extends Record<string, unknown>> {
|
|
995
1004
|
formData: FD;
|
|
996
1005
|
formStatus: Record<keyof FD & string, FormStatus>;
|
|
@@ -1051,6 +1060,7 @@ declare function Slider({ className, defaultValue, value, min, max, ...props }:
|
|
|
1051
1060
|
|
|
1052
1061
|
declare const Social: {
|
|
1053
1062
|
Facebook: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1063
|
+
Figma: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1054
1064
|
Github: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1055
1065
|
Instagram: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1056
1066
|
LinkedIn: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1080,28 +1090,15 @@ declare function SwitchField({ className, ...props }: {
|
|
|
1080
1090
|
className?: string;
|
|
1081
1091
|
} & Omit<Headless.FieldProps, 'as' | 'className'>): react_jsx_runtime.JSX.Element;
|
|
1082
1092
|
declare const colors$1: {
|
|
1083
|
-
'dark/
|
|
1093
|
+
'dark/grey': string[];
|
|
1084
1094
|
'dark/white': string[];
|
|
1085
1095
|
dark: string[];
|
|
1086
|
-
|
|
1096
|
+
grey: string[];
|
|
1087
1097
|
white: string[];
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
lime: string[];
|
|
1093
|
-
green: string[];
|
|
1094
|
-
emerald: string[];
|
|
1095
|
-
teal: string[];
|
|
1096
|
-
cyan: string[];
|
|
1097
|
-
sky: string[];
|
|
1098
|
-
blue: string[];
|
|
1099
|
-
indigo: string[];
|
|
1100
|
-
violet: string[];
|
|
1101
|
-
purple: string[];
|
|
1102
|
-
fuchsia: string[];
|
|
1103
|
-
pink: string[];
|
|
1104
|
-
rose: string[];
|
|
1098
|
+
primary: string[];
|
|
1099
|
+
secondary: string[];
|
|
1100
|
+
tertiary: string[];
|
|
1101
|
+
accent: string[];
|
|
1105
1102
|
};
|
|
1106
1103
|
type Color = keyof typeof colors$1;
|
|
1107
1104
|
declare function Switch({ color, className, ...props }: {
|
|
@@ -1146,7 +1143,7 @@ declare function ThemeColorPalette(): react_jsx_runtime.JSX.Element;
|
|
|
1146
1143
|
|
|
1147
1144
|
declare function ThemeProvider({ children, ...props }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
1148
1145
|
|
|
1149
|
-
declare function ThemeSelector(
|
|
1146
|
+
declare function ThemeSelector(props: ThemeSelectorProps): react_jsx_runtime.JSX.Element;
|
|
1150
1147
|
|
|
1151
1148
|
declare function ThemeSwitcher(): react_jsx_runtime.JSX.Element;
|
|
1152
1149
|
|
|
@@ -1574,7 +1571,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
1574
1571
|
background: string;
|
|
1575
1572
|
bar: string;
|
|
1576
1573
|
};
|
|
1577
|
-
|
|
1574
|
+
danger: {
|
|
1578
1575
|
background: string;
|
|
1579
1576
|
bar: string;
|
|
1580
1577
|
};
|
|
@@ -1600,7 +1597,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
1600
1597
|
background: string;
|
|
1601
1598
|
bar: string;
|
|
1602
1599
|
};
|
|
1603
|
-
|
|
1600
|
+
danger: {
|
|
1604
1601
|
background: string;
|
|
1605
1602
|
bar: string;
|
|
1606
1603
|
};
|
|
@@ -1626,7 +1623,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
1626
1623
|
background: string;
|
|
1627
1624
|
bar: string;
|
|
1628
1625
|
};
|
|
1629
|
-
|
|
1626
|
+
danger: {
|
|
1630
1627
|
background: string;
|
|
1631
1628
|
bar: string;
|
|
1632
1629
|
};
|
|
@@ -1661,7 +1658,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
1661
1658
|
background: string;
|
|
1662
1659
|
circle: string;
|
|
1663
1660
|
};
|
|
1664
|
-
|
|
1661
|
+
danger: {
|
|
1665
1662
|
background: string;
|
|
1666
1663
|
circle: string;
|
|
1667
1664
|
};
|
|
@@ -1687,7 +1684,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
1687
1684
|
background: string;
|
|
1688
1685
|
circle: string;
|
|
1689
1686
|
};
|
|
1690
|
-
|
|
1687
|
+
danger: {
|
|
1691
1688
|
background: string;
|
|
1692
1689
|
circle: string;
|
|
1693
1690
|
};
|
|
@@ -1713,7 +1710,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
1713
1710
|
background: string;
|
|
1714
1711
|
circle: string;
|
|
1715
1712
|
};
|
|
1716
|
-
|
|
1713
|
+
danger: {
|
|
1717
1714
|
background: string;
|
|
1718
1715
|
circle: string;
|
|
1719
1716
|
};
|
|
@@ -1933,4 +1930,4 @@ declare const allPalettes: Palette[];
|
|
|
1933
1930
|
declare const colors: ColorThemes;
|
|
1934
1931
|
declare const colorThemes: ColorThemes;
|
|
1935
1932
|
|
|
1936
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, type AreaChartEventProps, AspectRatio, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorUtility, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, ComboChart, type ComboChartEventProps, 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, Description, DescriptionDetails, DescriptionList, DescriptionTerm, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartEventProps, 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, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field, FieldGroup, FieldLabel, Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus
|
|
1933
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, type AreaChartEventProps, AspectRatio, AuthLayout, AvailableChartColors, type AvailableChartColorsKeys, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, type BarChartEventProps, BarList, type BarListProps, type BaseCodeData, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, type CategoryBarProps, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Code, type CodeData, CodeDemo, type CodeDemoProps, CodeHighlight, type CodeHighlightProps, type CodeItem, type CodeVariant, Collapsible, CollapsibleContent, CollapsibleTrigger, type Color$1 as Color, ColorCard, type ColorCardProps, type ColorData, type ColorProperty, ColorSwatches, type ColorSwatchesProps, type ColorTheme, type ColorThemes, type ColorUtility, type ColorsDisplayProps, type ColourOutputProps, ColourScale, type ColourScaleProps, ComboChart, type ComboChartEventProps, 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, Description, DescriptionDetails, DescriptionList, DescriptionTerm, type DesignTokensShades, type DesignTokensTheme, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, type DonutChartEventProps, 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, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field, FieldGroup, FieldLabel, Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormStatus, type FormStatusHook, type FormStore, type Format, FormatToggle, type FormatToggleProps, GenerateInterpolatedColors, Header, Heading, type HeadingNode, type HeadingTypeProps, HoverCard, HoverCardContent, HoverCardTrigger, type IFrameData, type IFrameMap, type IFrameOptions, type IFrameProps, type IconProps, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, type Language, type LayoutProps, Legend, LineChart, type LineChartEventProps, Link, _List as List, Listbox, ListboxDescription, ListboxLabel, ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, type NavigationItem, 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, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Prose, 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, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, type StructuredColor, Switch, SwitchField, SwitchGroup, 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$1 as Tooltip, TooltipContent, type TooltipProps$5 as TooltipProps, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, type TrackerBlockProps, Tooltip as TremorTooltip, type TypeExampleProps, type TypeSpecs, type Variant, type VariantCodeData, type Variants, type View, type ViewMode, ViewToggle, type ViewToggleProps, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, chartColors, cn, type colorCategories, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useToc };
|