@tydavidson/design-system 1.1.2 → 1.1.3
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.mts +925 -0
- package/dist/index.d.ts +925 -7
- package/dist/index.js +1758 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1650 -0
- package/dist/index.mjs.map +1 -0
- package/dist/themes/index.d.mts +104 -0
- package/dist/themes/index.d.ts +104 -6
- package/dist/themes/index.js +204 -17
- package/dist/themes/index.js.map +1 -1
- package/dist/themes/index.mjs +196 -0
- package/dist/themes/index.mjs.map +1 -0
- package/package.json +26 -12
- package/dist/components/SidebarNav.d.ts +0 -13
- package/dist/components/SidebarNav.d.ts.map +0 -1
- package/dist/components/SidebarNav.js +0 -63
- package/dist/components/SidebarNav.js.map +0 -1
- package/dist/components/SidebarNavClient.d.ts +0 -2
- package/dist/components/SidebarNavClient.d.ts.map +0 -1
- package/dist/components/SidebarNavClient.js +0 -35
- package/dist/components/SidebarNavClient.js.map +0 -1
- package/dist/components/email/button.d.ts +0 -11
- package/dist/components/email/button.d.ts.map +0 -1
- package/dist/components/email/button.js +0 -86
- package/dist/components/email/button.js.map +0 -1
- package/dist/components/email/index.d.ts +0 -7
- package/dist/components/email/index.d.ts.map +0 -1
- package/dist/components/email/index.js +0 -17
- package/dist/components/email/index.js.map +0 -1
- package/dist/components/email/layout.d.ts +0 -23
- package/dist/components/email/layout.d.ts.map +0 -1
- package/dist/components/email/layout.js +0 -93
- package/dist/components/email/layout.js.map +0 -1
- package/dist/components/email/typography.d.ts +0 -11
- package/dist/components/email/typography.d.ts.map +0 -1
- package/dist/components/email/typography.js +0 -55
- package/dist/components/email/typography.js.map +0 -1
- package/dist/components/hooks/use-mobile.d.ts +0 -2
- package/dist/components/hooks/use-mobile.d.ts.map +0 -1
- package/dist/components/hooks/use-mobile.js +0 -7
- package/dist/components/hooks/use-mobile.js.map +0 -1
- package/dist/components/typography/heading/heading.d.ts +0 -48
- package/dist/components/typography/heading/heading.d.ts.map +0 -1
- package/dist/components/typography/heading/heading.js +0 -93
- package/dist/components/typography/heading/heading.js.map +0 -1
- package/dist/components/typography/heading/heading.stories.d.ts +0 -12
- package/dist/components/typography/heading/heading.stories.d.ts.map +0 -1
- package/dist/components/typography/heading/heading.stories.js +0 -77
- package/dist/components/typography/heading/heading.stories.js.map +0 -1
- package/dist/components/typography/heading/index.d.ts +0 -2
- package/dist/components/typography/heading/index.d.ts.map +0 -1
- package/dist/components/typography/heading/index.js +0 -18
- package/dist/components/typography/heading/index.js.map +0 -1
- package/dist/components/typography/index.d.ts +0 -5
- package/dist/components/typography/index.d.ts.map +0 -1
- package/dist/components/typography/index.js +0 -24
- package/dist/components/typography/index.js.map +0 -1
- package/dist/components/typography/showcase.d.ts +0 -7
- package/dist/components/typography/showcase.d.ts.map +0 -1
- package/dist/components/typography/showcase.js +0 -15
- package/dist/components/typography/showcase.js.map +0 -1
- package/dist/components/typography/text/index.d.ts +0 -2
- package/dist/components/typography/text/index.d.ts.map +0 -1
- package/dist/components/typography/text/index.js +0 -18
- package/dist/components/typography/text/index.js.map +0 -1
- package/dist/components/typography/text/text.d.ts +0 -43
- package/dist/components/typography/text/text.d.ts.map +0 -1
- package/dist/components/typography/text/text.js +0 -74
- package/dist/components/typography/text/text.js.map +0 -1
- package/dist/components/typography/text/text.stories.d.ts +0 -13
- package/dist/components/typography/text/text.stories.d.ts.map +0 -1
- package/dist/components/typography/text/text.stories.js +0 -75
- package/dist/components/typography/text/text.stories.js.map +0 -1
- package/dist/components/ui/accordion.d.ts +0 -8
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js +0 -53
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/alert.d.ts.map +0 -1
- package/dist/components/ui/alert.js +0 -64
- package/dist/components/ui/alert.js.map +0 -1
- package/dist/components/ui/aspect-ratio.d.ts +0 -5
- package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/components/ui/aspect-ratio.js +0 -40
- package/dist/components/ui/aspect-ratio.js.map +0 -1
- package/dist/components/ui/avatar.d.ts +0 -7
- package/dist/components/ui/avatar.d.ts.map +0 -1
- package/dist/components/ui/avatar.js +0 -50
- package/dist/components/ui/avatar.js.map +0 -1
- package/dist/components/ui/badge.d.ts +0 -15
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/badge.js +0 -82
- package/dist/components/ui/badge.js.map +0 -1
- package/dist/components/ui/breadcrumb.d.ts +0 -11
- package/dist/components/ui/breadcrumb.d.ts.map +0 -1
- package/dist/components/ui/breadcrumb.js +0 -63
- package/dist/components/ui/breadcrumb.js.map +0 -1
- package/dist/components/ui/button.d.ts +0 -41
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -109
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/calendar.d.ts +0 -9
- package/dist/components/ui/calendar.d.ts.map +0 -1
- package/dist/components/ui/calendar.js +0 -47
- package/dist/components/ui/calendar.js.map +0 -1
- package/dist/components/ui/card/card.d.ts +0 -35
- package/dist/components/ui/card/card.d.ts.map +0 -1
- package/dist/components/ui/card/card.js +0 -62
- package/dist/components/ui/card/card.js.map +0 -1
- package/dist/components/ui/card/index.d.ts +0 -2
- package/dist/components/ui/card/index.d.ts.map +0 -1
- package/dist/components/ui/card/index.js +0 -18
- package/dist/components/ui/card/index.js.map +0 -1
- package/dist/components/ui/card.d.ts +0 -12
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/card.js +0 -65
- package/dist/components/ui/card.js.map +0 -1
- package/dist/components/ui/checkbox.d.ts +0 -5
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/checkbox.js +0 -45
- package/dist/components/ui/checkbox.js.map +0 -1
- package/dist/components/ui/collapsible.d.ts +0 -7
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/collapsible.js +0 -44
- package/dist/components/ui/collapsible.js.map +0 -1
- package/dist/components/ui/command.d.ts +0 -83
- package/dist/components/ui/command.d.ts.map +0 -1
- package/dist/components/ui/command.js +0 -73
- package/dist/components/ui/command.js.map +0 -1
- package/dist/components/ui/context-menu.d.ts +0 -31
- package/dist/components/ui/context-menu.d.ts.map +0 -1
- package/dist/components/ui/context-menu.js +0 -92
- package/dist/components/ui/context-menu.js.map +0 -1
- package/dist/components/ui/dialog.d.ts +0 -20
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dialog.js +0 -68
- package/dist/components/ui/dialog.js.map +0 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -32
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.js +0 -108
- package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +0 -1
- package/dist/components/ui/dropdown-menu/index.d.ts +0 -2
- package/dist/components/ui/dropdown-menu/index.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu/index.js +0 -18
- package/dist/components/ui/dropdown-menu/index.js.map +0 -1
- package/dist/components/ui/header.d.ts +0 -3
- package/dist/components/ui/header.d.ts.map +0 -1
- package/dist/components/ui/header.js +0 -16
- package/dist/components/ui/header.js.map +0 -1
- package/dist/components/ui/hover-card.d.ts +0 -7
- package/dist/components/ui/hover-card.d.ts.map +0 -1
- package/dist/components/ui/hover-card.js +0 -48
- package/dist/components/ui/hover-card.js.map +0 -1
- package/dist/components/ui/index.d.ts +0 -15
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/components/ui/index.js +0 -43
- package/dist/components/ui/index.js.map +0 -1
- package/dist/components/ui/input.d.ts +0 -6
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -45
- package/dist/components/ui/input.js.map +0 -1
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -46
- package/dist/components/ui/label.js.map +0 -1
- package/dist/components/ui/nav.d.ts +0 -9
- package/dist/components/ui/nav.d.ts.map +0 -1
- package/dist/components/ui/nav.js +0 -25
- package/dist/components/ui/nav.js.map +0 -1
- package/dist/components/ui/org-switcher.d.ts +0 -13
- package/dist/components/ui/org-switcher.d.ts.map +0 -1
- package/dist/components/ui/org-switcher.js +0 -52
- package/dist/components/ui/org-switcher.js.map +0 -1
- package/dist/components/ui/popover.d.ts +0 -8
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/popover.js +0 -50
- package/dist/components/ui/popover.js.map +0 -1
- package/dist/components/ui/progress.d.ts +0 -5
- package/dist/components/ui/progress.d.ts.map +0 -1
- package/dist/components/ui/progress.js +0 -44
- package/dist/components/ui/progress.js.map +0 -1
- package/dist/components/ui/radio-group.d.ts +0 -6
- package/dist/components/ui/radio-group.d.ts.map +0 -1
- package/dist/components/ui/radio-group.js +0 -52
- package/dist/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/select.d.ts +0 -14
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/select.js +0 -72
- package/dist/components/ui/select.js.map +0 -1
- package/dist/components/ui/separator.d.ts +0 -5
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/separator.js +0 -44
- package/dist/components/ui/separator.js.map +0 -1
- package/dist/components/ui/sheet.d.ts +0 -22
- package/dist/components/ui/sheet.d.ts.map +0 -1
- package/dist/components/ui/sheet.js +0 -76
- package/dist/components/ui/sheet.js.map +0 -1
- package/dist/components/ui/sidebar.d.ts +0 -65
- package/dist/components/ui/sidebar.d.ts.map +0 -1
- package/dist/components/ui/sidebar.js +0 -269
- package/dist/components/ui/sidebar.js.map +0 -1
- package/dist/components/ui/skeleton.d.ts +0 -3
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/skeleton.js +0 -9
- package/dist/components/ui/skeleton.js.map +0 -1
- package/dist/components/ui/slider.d.ts +0 -5
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/slider.js +0 -44
- package/dist/components/ui/slider.js.map +0 -1
- package/dist/components/ui/switch.d.ts +0 -5
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -44
- package/dist/components/ui/switch.js.map +0 -1
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs.js +0 -52
- package/dist/components/ui/tabs.js.map +0 -1
- package/dist/components/ui/textarea.d.ts +0 -6
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/textarea.js +0 -45
- package/dist/components/ui/textarea.js.map +0 -1
- package/dist/components/ui/theme-toggle/index.d.ts +0 -2
- package/dist/components/ui/theme-toggle/index.d.ts.map +0 -1
- package/dist/components/ui/theme-toggle/index.js +0 -18
- package/dist/components/ui/theme-toggle/index.js.map +0 -1
- package/dist/components/ui/theme-toggle/theme-toggle.d.ts +0 -21
- package/dist/components/ui/theme-toggle/theme-toggle.d.ts.map +0 -1
- package/dist/components/ui/theme-toggle/theme-toggle.js +0 -52
- package/dist/components/ui/theme-toggle/theme-toggle.js.map +0 -1
- package/dist/components/ui/toast.d.ts +0 -5
- package/dist/components/ui/toast.d.ts.map +0 -1
- package/dist/components/ui/toast.js +0 -17
- package/dist/components/ui/toast.js.map +0 -1
- package/dist/components/ui/toggle-group.d.ts +0 -6
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/toggle-group.js +0 -47
- package/dist/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/toggle.d.ts +0 -5
- package/dist/components/ui/toggle.d.ts.map +0 -1
- package/dist/components/ui/toggle.js +0 -44
- package/dist/components/ui/toggle.js.map +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -8
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/tooltip.js +0 -50
- package/dist/components/ui/tooltip.js.map +0 -1
- package/dist/components/ui/use-toast.d.ts +0 -3
- package/dist/components/ui/use-toast.d.ts.map +0 -1
- package/dist/components/ui/use-toast.js +0 -7
- package/dist/components/ui/use-toast.js.map +0 -1
- package/dist/email/button.d.ts +0 -11
- package/dist/email/button.d.ts.map +0 -1
- package/dist/email/button.js +0 -86
- package/dist/email/button.js.map +0 -1
- package/dist/email/index.d.ts +0 -7
- package/dist/email/index.d.ts.map +0 -1
- package/dist/email/index.js +0 -17
- package/dist/email/index.js.map +0 -1
- package/dist/email/layout.d.ts +0 -23
- package/dist/email/layout.d.ts.map +0 -1
- package/dist/email/layout.js +0 -93
- package/dist/email/layout.js.map +0 -1
- package/dist/email/typography.d.ts +0 -11
- package/dist/email/typography.d.ts.map +0 -1
- package/dist/email/typography.js +0 -55
- package/dist/email/typography.js.map +0 -1
- package/dist/hooks/use-media-query.d.ts +0 -2
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-media-query.js +0 -20
- package/dist/hooks/use-media-query.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/theme-utils.d.ts +0 -42
- package/dist/lib/theme-utils.d.ts.map +0 -1
- package/dist/lib/theme-utils.js +0 -85
- package/dist/lib/theme-utils.js.map +0 -1
- package/dist/lib/types.d.ts +0 -18
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/types.js +0 -6
- package/dist/lib/types.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -34
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -52
- package/dist/lib/utils.js.map +0 -1
- package/dist/styles/constants/button-colors.d.ts +0 -59
- package/dist/styles/constants/button-colors.d.ts.map +0 -1
- package/dist/styles/constants/button-colors.js +0 -61
- package/dist/styles/constants/button-colors.js.map +0 -1
- package/dist/themes/catalog.d.ts +0 -2
- package/dist/themes/catalog.d.ts.map +0 -1
- package/dist/themes/catalog.js +0 -16
- package/dist/themes/catalog.js.map +0 -1
- package/dist/themes/index.d.ts.map +0 -1
- package/dist/themes/theme-context.d.ts +0 -30
- package/dist/themes/theme-context.d.ts.map +0 -1
- package/dist/themes/theme-context.js +0 -43
- package/dist/themes/theme-context.js.map +0 -1
- package/dist/themes/theme-provider.d.ts +0 -9
- package/dist/themes/theme-provider.d.ts.map +0 -1
- package/dist/themes/theme-provider.js +0 -16
- package/dist/themes/theme-provider.js.map +0 -1
- package/dist/tokens/colors.d.ts +0 -135
- package/dist/tokens/colors.d.ts.map +0 -1
- package/dist/tokens/colors.js +0 -140
- package/dist/tokens/colors.js.map +0 -1
- package/dist/tokens/index.d.ts +0 -256
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/index.js +0 -39
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/radius.d.ts +0 -19
- package/dist/tokens/radius.d.ts.map +0 -1
- package/dist/tokens/radius.js +0 -27
- package/dist/tokens/radius.js.map +0 -1
- package/dist/tokens/shadows.d.ts +0 -21
- package/dist/tokens/shadows.d.ts.map +0 -1
- package/dist/tokens/shadows.js +0 -26
- package/dist/tokens/shadows.js.map +0 -1
- package/dist/tokens/spacing.d.ts +0 -26
- package/dist/tokens/spacing.d.ts.map +0 -1
- package/dist/tokens/spacing.js +0 -36
- package/dist/tokens/spacing.js.map +0 -1
- package/dist/tokens/typography.d.ts +0 -75
- package/dist/tokens/typography.d.ts.map +0 -1
- package/dist/tokens/typography.js +0 -55
- package/dist/tokens/typography.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
package/dist/index.d.mts
ADDED
@@ -0,0 +1,925 @@
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
2
|
+
import * as React from 'react';
|
3
|
+
import React__default from 'react';
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
5
|
+
import { ThemeColor } from './themes/index.mjs';
|
6
|
+
export { ComponentVariant, ThemeContextProvider, ThemeProvider, ThemeToggle, getColorVariantClasses, isDarkTheme, mapColorToShadcnVariant, mapVariantToShadcnVariant, useTheme } from './themes/index.mjs';
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
8
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
9
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
10
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
11
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
12
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
13
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
14
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
15
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
16
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
17
|
+
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
18
|
+
import { ClassValue } from 'clsx';
|
19
|
+
import 'next-themes/dist/types';
|
20
|
+
|
21
|
+
declare const buttonVariants: (props?: ({
|
22
|
+
variant?: "primary" | "secondary" | "tertiary" | "default" | "destructive" | "outline" | "ghost" | "link" | "primaryError" | null | undefined;
|
23
|
+
size?: "sm" | "md" | "lg" | "iconSm" | "iconMd" | "iconLg" | "icon" | null | undefined;
|
24
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
25
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<VariantProps<typeof buttonVariants>, 'variant'> {
|
26
|
+
asChild?: boolean;
|
27
|
+
/**
|
28
|
+
* Icon to display before the button text
|
29
|
+
*/
|
30
|
+
leftIcon?: React.ReactNode;
|
31
|
+
/**
|
32
|
+
* Icon to display after the button text
|
33
|
+
*/
|
34
|
+
rightIcon?: React.ReactNode;
|
35
|
+
/**
|
36
|
+
* Whether the button is in a loading state
|
37
|
+
*/
|
38
|
+
isLoading?: boolean;
|
39
|
+
/**
|
40
|
+
* Theme color to apply to the button (uses design system colors)
|
41
|
+
*/
|
42
|
+
color?: ThemeColor;
|
43
|
+
/**
|
44
|
+
* Semantic design system variant - use this instead of variant for design system consistency
|
45
|
+
*/
|
46
|
+
dsVariant?: 'primary' | 'secondary' | 'ghost' | 'outline' | 'link' | 'destructive' | 'default' | 'tertiary' | 'primaryError';
|
47
|
+
/**
|
48
|
+
* Whether the button should only show an icon
|
49
|
+
*/
|
50
|
+
iconOnly?: boolean;
|
51
|
+
/**
|
52
|
+
* Button visual style variant
|
53
|
+
*/
|
54
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'outline' | 'link' | 'destructive' | 'default' | 'tertiary' | 'primaryError';
|
55
|
+
}
|
56
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
57
|
+
|
58
|
+
declare const DropdownMenu: {
|
59
|
+
Root: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
60
|
+
Trigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
61
|
+
Content: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
62
|
+
Item: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
63
|
+
color?: "brand" | "error" | "warning" | "success";
|
64
|
+
leftIcon?: React.ReactNode;
|
65
|
+
rightIcon?: React.ReactNode;
|
66
|
+
inset?: boolean;
|
67
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
68
|
+
CheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
69
|
+
RadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
70
|
+
RadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
71
|
+
Label: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
72
|
+
inset?: boolean;
|
73
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
74
|
+
Separator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
75
|
+
Shortcut: {
|
76
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
77
|
+
displayName: string;
|
78
|
+
};
|
79
|
+
Group: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
80
|
+
Portal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
81
|
+
Sub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
82
|
+
SubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
83
|
+
SubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
84
|
+
inset?: boolean;
|
85
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
86
|
+
};
|
87
|
+
|
88
|
+
type ElementType$1 = React.ElementType;
|
89
|
+
interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
90
|
+
/**
|
91
|
+
* The level of the heading (1-6)
|
92
|
+
* @default 1
|
93
|
+
*/
|
94
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
95
|
+
/**
|
96
|
+
* The size variant of the heading
|
97
|
+
* If not provided, defaults based on the heading level
|
98
|
+
*/
|
99
|
+
size?: "2xl" | "xl" | "lg" | "md" | "sm" | "xs";
|
100
|
+
/**
|
101
|
+
* The font weight of the heading
|
102
|
+
* @default 'bold'
|
103
|
+
*/
|
104
|
+
weight?: "regular" | "medium" | "semibold" | "bold";
|
105
|
+
/**
|
106
|
+
* Whether the heading should be italic
|
107
|
+
* @default false
|
108
|
+
*/
|
109
|
+
italic?: boolean;
|
110
|
+
/**
|
111
|
+
* Whether the heading should be underlined
|
112
|
+
* @default false
|
113
|
+
*/
|
114
|
+
underline?: boolean;
|
115
|
+
/**
|
116
|
+
* The color of the heading
|
117
|
+
* @default 'default'
|
118
|
+
*/
|
119
|
+
color?: "default" | "muted" | "brand" | "error" | "warning" | "success";
|
120
|
+
/**
|
121
|
+
* The HTML element to render
|
122
|
+
* If not provided, uses h{level} based on the level prop
|
123
|
+
*/
|
124
|
+
as?: ElementType$1;
|
125
|
+
}
|
126
|
+
/**
|
127
|
+
* Heading component that follows the design system guidelines.
|
128
|
+
*
|
129
|
+
* This component renders headings following the design system's typography
|
130
|
+
* scale, with support for different levels, sizes, weights, styles, and colors.
|
131
|
+
*/
|
132
|
+
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
133
|
+
|
134
|
+
type ElementType = React.ElementType;
|
135
|
+
interface TextProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
136
|
+
/**
|
137
|
+
* The size variant of the text
|
138
|
+
* @default 'md'
|
139
|
+
*/
|
140
|
+
size?: "xl" | "lg" | "md" | "sm" | "xs";
|
141
|
+
/**
|
142
|
+
* The font weight of the text
|
143
|
+
* @default 'regular'
|
144
|
+
*/
|
145
|
+
weight?: "regular" | "medium" | "semibold" | "bold";
|
146
|
+
/**
|
147
|
+
* Whether the text should be italic
|
148
|
+
* @default false
|
149
|
+
*/
|
150
|
+
italic?: boolean;
|
151
|
+
/**
|
152
|
+
* Whether the text should be underlined
|
153
|
+
* @default false
|
154
|
+
*/
|
155
|
+
underline?: boolean;
|
156
|
+
/**
|
157
|
+
* The color of the text
|
158
|
+
* @default 'default'
|
159
|
+
*/
|
160
|
+
color?: "default" | "muted" | "brand" | "error" | "warning" | "success";
|
161
|
+
/**
|
162
|
+
* The HTML element to render
|
163
|
+
* @default 'p'
|
164
|
+
*/
|
165
|
+
as?: ElementType;
|
166
|
+
}
|
167
|
+
/**
|
168
|
+
* Text component that follows the design system guidelines.
|
169
|
+
*
|
170
|
+
* This component renders text following the design system's typography
|
171
|
+
* scale, with support for different sizes, weights, styles, and colors.
|
172
|
+
*/
|
173
|
+
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLParagraphElement>>;
|
174
|
+
|
175
|
+
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
176
|
+
|
177
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<(Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
178
|
+
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
179
|
+
|
180
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
181
|
+
|
182
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
183
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
184
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
185
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
186
|
+
|
187
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
188
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
189
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
190
|
+
|
191
|
+
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
192
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
193
|
+
declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
194
|
+
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
195
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
196
|
+
declare const SheetContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
197
|
+
side?: "top" | "bottom" | "left" | "right";
|
198
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
199
|
+
declare const SheetHeader: {
|
200
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
201
|
+
displayName: string;
|
202
|
+
};
|
203
|
+
declare const SheetFooter: {
|
204
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
205
|
+
displayName: string;
|
206
|
+
};
|
207
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
208
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
209
|
+
|
210
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
211
|
+
children?: React.ReactNode;
|
212
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
213
|
+
ref?: React.Ref<HTMLDivElement>;
|
214
|
+
} & {
|
215
|
+
asChild?: boolean;
|
216
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
217
|
+
label?: string;
|
218
|
+
shouldFilter?: boolean;
|
219
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
220
|
+
defaultValue?: string;
|
221
|
+
value?: string;
|
222
|
+
onValueChange?: (value: string) => void;
|
223
|
+
loop?: boolean;
|
224
|
+
disablePointerSelection?: boolean;
|
225
|
+
vimBindings?: boolean;
|
226
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
227
|
+
interface CommandDialogProps extends DialogProps {
|
228
|
+
}
|
229
|
+
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
|
230
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
231
|
+
ref?: React.Ref<HTMLInputElement>;
|
232
|
+
} & {
|
233
|
+
asChild?: boolean;
|
234
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
235
|
+
value?: string;
|
236
|
+
onValueChange?: (search: string) => void;
|
237
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
238
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
239
|
+
children?: React.ReactNode;
|
240
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
241
|
+
ref?: React.Ref<HTMLDivElement>;
|
242
|
+
} & {
|
243
|
+
asChild?: boolean;
|
244
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
245
|
+
label?: string;
|
246
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
247
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
248
|
+
children?: React.ReactNode;
|
249
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
250
|
+
ref?: React.Ref<HTMLDivElement>;
|
251
|
+
} & {
|
252
|
+
asChild?: boolean;
|
253
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
254
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
255
|
+
children?: React.ReactNode;
|
256
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
257
|
+
ref?: React.Ref<HTMLDivElement>;
|
258
|
+
} & {
|
259
|
+
asChild?: boolean;
|
260
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
261
|
+
heading?: React.ReactNode;
|
262
|
+
value?: string;
|
263
|
+
forceMount?: boolean;
|
264
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
265
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
266
|
+
ref?: React.Ref<HTMLDivElement>;
|
267
|
+
} & {
|
268
|
+
asChild?: boolean;
|
269
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
270
|
+
alwaysRender?: boolean;
|
271
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
272
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
273
|
+
children?: React.ReactNode;
|
274
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
275
|
+
ref?: React.Ref<HTMLDivElement>;
|
276
|
+
} & {
|
277
|
+
asChild?: boolean;
|
278
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
279
|
+
disabled?: boolean;
|
280
|
+
onSelect?: (value: string) => void;
|
281
|
+
value?: string;
|
282
|
+
keywords?: string[];
|
283
|
+
forceMount?: boolean;
|
284
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
285
|
+
declare const CommandShortcut: {
|
286
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
287
|
+
displayName: string;
|
288
|
+
};
|
289
|
+
|
290
|
+
declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
291
|
+
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
292
|
+
declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
|
293
|
+
|
294
|
+
declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
|
295
|
+
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
296
|
+
declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
297
|
+
declare const ContextMenuPortal: React.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
|
298
|
+
declare const ContextMenuSub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
299
|
+
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
300
|
+
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
301
|
+
inset?: boolean;
|
302
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
303
|
+
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
304
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
305
|
+
declare const ContextMenuItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
306
|
+
inset?: boolean;
|
307
|
+
color?: "brand" | "error" | "warning" | "success";
|
308
|
+
leftIcon?: React.ReactNode;
|
309
|
+
rightIcon?: React.ReactNode;
|
310
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
311
|
+
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
312
|
+
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
313
|
+
declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
314
|
+
inset?: boolean;
|
315
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
316
|
+
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
317
|
+
declare const ContextMenuShortcut: {
|
318
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
319
|
+
displayName: string;
|
320
|
+
};
|
321
|
+
|
322
|
+
interface EmailButtonProps {
|
323
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'outline' | 'link' | 'destructive';
|
324
|
+
size?: 'sm' | 'md' | 'lg';
|
325
|
+
children: React__default.ReactNode;
|
326
|
+
href?: string;
|
327
|
+
style?: React__default.CSSProperties;
|
328
|
+
fullWidth?: boolean;
|
329
|
+
}
|
330
|
+
declare const EmailButton: React__default.FC<EmailButtonProps>;
|
331
|
+
|
332
|
+
interface EmailTextProps {
|
333
|
+
children: React__default.ReactNode;
|
334
|
+
variant?: 'body' | 'heading' | 'caption' | 'lead' | 'muted';
|
335
|
+
style?: React__default.CSSProperties;
|
336
|
+
}
|
337
|
+
declare const EmailText: React__default.FC<EmailTextProps>;
|
338
|
+
declare const EmailHeading: React__default.FC<EmailTextProps>;
|
339
|
+
declare const EmailCaption: React__default.FC<EmailTextProps>;
|
340
|
+
declare const EmailMuted: React__default.FC<EmailTextProps>;
|
341
|
+
|
342
|
+
interface EmailLayoutProps {
|
343
|
+
children: React__default.ReactNode;
|
344
|
+
preheader?: string;
|
345
|
+
}
|
346
|
+
declare const EmailLayout: React__default.FC<EmailLayoutProps>;
|
347
|
+
interface EmailContainerProps {
|
348
|
+
children: React__default.ReactNode;
|
349
|
+
style?: React__default.CSSProperties;
|
350
|
+
}
|
351
|
+
declare const EmailContainer: React__default.FC<EmailContainerProps>;
|
352
|
+
interface EmailHeaderProps {
|
353
|
+
logoUrl?: string;
|
354
|
+
logoAlt?: string;
|
355
|
+
logoWidth?: string;
|
356
|
+
logoHeight?: string;
|
357
|
+
}
|
358
|
+
declare const EmailHeader: React__default.FC<EmailHeaderProps>;
|
359
|
+
interface EmailFooterProps {
|
360
|
+
children?: React__default.ReactNode;
|
361
|
+
}
|
362
|
+
declare const EmailFooter: React__default.FC<EmailFooterProps>;
|
363
|
+
|
364
|
+
/**
|
365
|
+
* Combines multiple class values into a single className string
|
366
|
+
* with proper Tailwind CSS class merging.
|
367
|
+
*
|
368
|
+
* @param inputs - Class values to merge
|
369
|
+
* @returns Merged className string
|
370
|
+
*/
|
371
|
+
declare function cn(...inputs: ClassValue[]): string;
|
372
|
+
/**
|
373
|
+
* Utility function to generate a unique ID.
|
374
|
+
* Useful for ensuring unique IDs for form elements.
|
375
|
+
*
|
376
|
+
* @param prefix - Optional prefix for the ID
|
377
|
+
* @returns A unique ID string
|
378
|
+
*/
|
379
|
+
declare function generateId(prefix?: string): string;
|
380
|
+
/**
|
381
|
+
* Type guard to check if a value is not null or undefined
|
382
|
+
*
|
383
|
+
* @param value - Value to check
|
384
|
+
* @returns True if value is not null or undefined
|
385
|
+
*/
|
386
|
+
declare function isNotNullOrUndefined<T>(value: T | null | undefined): value is T;
|
387
|
+
/**
|
388
|
+
* Returns only the props that are safe to spread onto a DOM element
|
389
|
+
* by filtering out custom props
|
390
|
+
*
|
391
|
+
* @param props - The props object
|
392
|
+
* @param propNames - Names of custom props to filter out
|
393
|
+
* @returns Object with only DOM-safe props
|
394
|
+
*/
|
395
|
+
declare function filterDOMProps<T extends Record<string, any>, K extends keyof T>(props: T, propNames: K[]): Omit<T, K>;
|
396
|
+
|
397
|
+
/**
|
398
|
+
* Color token definitions based on the design system
|
399
|
+
*/
|
400
|
+
declare const colors: {
|
401
|
+
brand: {
|
402
|
+
25: string;
|
403
|
+
50: string;
|
404
|
+
100: string;
|
405
|
+
200: string;
|
406
|
+
300: string;
|
407
|
+
400: string;
|
408
|
+
500: string;
|
409
|
+
600: string;
|
410
|
+
700: string;
|
411
|
+
800: string;
|
412
|
+
900: string;
|
413
|
+
950: string;
|
414
|
+
};
|
415
|
+
error: {
|
416
|
+
25: string;
|
417
|
+
50: string;
|
418
|
+
100: string;
|
419
|
+
200: string;
|
420
|
+
300: string;
|
421
|
+
400: string;
|
422
|
+
500: string;
|
423
|
+
600: string;
|
424
|
+
700: string;
|
425
|
+
800: string;
|
426
|
+
900: string;
|
427
|
+
950: string;
|
428
|
+
};
|
429
|
+
warning: {
|
430
|
+
25: string;
|
431
|
+
50: string;
|
432
|
+
100: string;
|
433
|
+
200: string;
|
434
|
+
300: string;
|
435
|
+
400: string;
|
436
|
+
500: string;
|
437
|
+
600: string;
|
438
|
+
700: string;
|
439
|
+
800: string;
|
440
|
+
900: string;
|
441
|
+
950: string;
|
442
|
+
};
|
443
|
+
success: {
|
444
|
+
25: string;
|
445
|
+
50: string;
|
446
|
+
100: string;
|
447
|
+
200: string;
|
448
|
+
300: string;
|
449
|
+
400: string;
|
450
|
+
500: string;
|
451
|
+
600: string;
|
452
|
+
700: string;
|
453
|
+
800: string;
|
454
|
+
900: string;
|
455
|
+
950: string;
|
456
|
+
};
|
457
|
+
gray: {
|
458
|
+
25: string;
|
459
|
+
50: string;
|
460
|
+
100: string;
|
461
|
+
200: string;
|
462
|
+
300: string;
|
463
|
+
400: string;
|
464
|
+
500: string;
|
465
|
+
600: string;
|
466
|
+
700: string;
|
467
|
+
800: string;
|
468
|
+
900: string;
|
469
|
+
950: string;
|
470
|
+
};
|
471
|
+
text: {
|
472
|
+
primary: string;
|
473
|
+
secondary: string;
|
474
|
+
tertiary: string;
|
475
|
+
disabled: string;
|
476
|
+
brand: string;
|
477
|
+
'on-brand': string;
|
478
|
+
error: string;
|
479
|
+
warning: string;
|
480
|
+
success: string;
|
481
|
+
};
|
482
|
+
background: {
|
483
|
+
primary: string;
|
484
|
+
secondary: string;
|
485
|
+
tertiary: string;
|
486
|
+
brand: string;
|
487
|
+
error: string;
|
488
|
+
warning: string;
|
489
|
+
success: string;
|
490
|
+
card: string;
|
491
|
+
};
|
492
|
+
border: {
|
493
|
+
primary: string;
|
494
|
+
secondary: string;
|
495
|
+
tertiary: string;
|
496
|
+
brand: string;
|
497
|
+
error: string;
|
498
|
+
warning: string;
|
499
|
+
success: string;
|
500
|
+
};
|
501
|
+
focus: {
|
502
|
+
ring: string;
|
503
|
+
brand: string;
|
504
|
+
error: string;
|
505
|
+
warning: string;
|
506
|
+
success: string;
|
507
|
+
};
|
508
|
+
button: {
|
509
|
+
primary: {
|
510
|
+
bg: string;
|
511
|
+
text: string;
|
512
|
+
hover: string;
|
513
|
+
focus: string;
|
514
|
+
};
|
515
|
+
secondary: {
|
516
|
+
bg: string;
|
517
|
+
text: string;
|
518
|
+
border: string;
|
519
|
+
hover: string;
|
520
|
+
focus: string;
|
521
|
+
};
|
522
|
+
tertiary: {
|
523
|
+
bg: string;
|
524
|
+
text: string;
|
525
|
+
hover: string;
|
526
|
+
focus: string;
|
527
|
+
};
|
528
|
+
};
|
529
|
+
};
|
530
|
+
type Colors = typeof colors;
|
531
|
+
|
532
|
+
/**
|
533
|
+
* Typography token definitions based on the design system
|
534
|
+
*/
|
535
|
+
declare const typography: {
|
536
|
+
fontFamily: {
|
537
|
+
sans: string[];
|
538
|
+
};
|
539
|
+
fontWeight: {
|
540
|
+
regular: string;
|
541
|
+
medium: string;
|
542
|
+
semibold: string;
|
543
|
+
bold: string;
|
544
|
+
};
|
545
|
+
fontSize: {
|
546
|
+
'display-2xl': (string | {
|
547
|
+
lineHeight: string;
|
548
|
+
letterSpacing: string;
|
549
|
+
})[];
|
550
|
+
'display-xl': (string | {
|
551
|
+
lineHeight: string;
|
552
|
+
letterSpacing: string;
|
553
|
+
})[];
|
554
|
+
'display-lg': (string | {
|
555
|
+
lineHeight: string;
|
556
|
+
letterSpacing: string;
|
557
|
+
})[];
|
558
|
+
'display-md': (string | {
|
559
|
+
lineHeight: string;
|
560
|
+
letterSpacing: string;
|
561
|
+
})[];
|
562
|
+
'display-sm': (string | {
|
563
|
+
lineHeight: string;
|
564
|
+
letterSpacing: string;
|
565
|
+
})[];
|
566
|
+
'display-xs': (string | {
|
567
|
+
lineHeight: string;
|
568
|
+
letterSpacing: string;
|
569
|
+
})[];
|
570
|
+
'text-xl': (string | {
|
571
|
+
lineHeight: string;
|
572
|
+
})[];
|
573
|
+
'text-lg': (string | {
|
574
|
+
lineHeight: string;
|
575
|
+
})[];
|
576
|
+
'text-md': (string | {
|
577
|
+
lineHeight: string;
|
578
|
+
})[];
|
579
|
+
'text-sm': (string | {
|
580
|
+
lineHeight: string;
|
581
|
+
})[];
|
582
|
+
'text-xs': (string | {
|
583
|
+
lineHeight: string;
|
584
|
+
})[];
|
585
|
+
};
|
586
|
+
styles: {
|
587
|
+
h1: string;
|
588
|
+
h2: string;
|
589
|
+
h3: string;
|
590
|
+
h4: string;
|
591
|
+
h5: string;
|
592
|
+
h6: string;
|
593
|
+
body: string;
|
594
|
+
'body-large': string;
|
595
|
+
'body-small': string;
|
596
|
+
caption: string;
|
597
|
+
overline: string;
|
598
|
+
label: string;
|
599
|
+
};
|
600
|
+
variants: {
|
601
|
+
italic: string;
|
602
|
+
underline: string;
|
603
|
+
};
|
604
|
+
};
|
605
|
+
type Typography = typeof typography;
|
606
|
+
|
607
|
+
/**
|
608
|
+
* Spacing tokens used throughout the application
|
609
|
+
*
|
610
|
+
* Note: This extends Tailwind's default spacing values rather than replacing them.
|
611
|
+
* We only define semantic values here that map to Tailwind's spacing scale.
|
612
|
+
*/
|
613
|
+
declare const spacing: {
|
614
|
+
layout: {
|
615
|
+
page: string;
|
616
|
+
section: string;
|
617
|
+
subsection: string;
|
618
|
+
inline: string;
|
619
|
+
};
|
620
|
+
component: {
|
621
|
+
xxs: string;
|
622
|
+
xs: string;
|
623
|
+
sm: string;
|
624
|
+
md: string;
|
625
|
+
lg: string;
|
626
|
+
xl: string;
|
627
|
+
xxl: string;
|
628
|
+
};
|
629
|
+
custom: {};
|
630
|
+
};
|
631
|
+
type Spacing = typeof spacing;
|
632
|
+
|
633
|
+
/**
|
634
|
+
* Border radius tokens used throughout the application
|
635
|
+
*
|
636
|
+
* Note: This uses Tailwind's default radius naming but maps to our semantic values
|
637
|
+
* defined by CSS variables. We don't override Tailwind's defaults but use
|
638
|
+
* the semantic mappings for component consistency.
|
639
|
+
*/
|
640
|
+
declare const radius: {
|
641
|
+
default: string;
|
642
|
+
card: string;
|
643
|
+
button: string;
|
644
|
+
input: string;
|
645
|
+
badge: string;
|
646
|
+
pill: string;
|
647
|
+
circle: string;
|
648
|
+
custom: {};
|
649
|
+
};
|
650
|
+
type Radius = typeof radius;
|
651
|
+
|
652
|
+
/**
|
653
|
+
* Shadow tokens used throughout the application
|
654
|
+
*/
|
655
|
+
declare const shadows: {
|
656
|
+
none: string;
|
657
|
+
xs: string;
|
658
|
+
sm: string;
|
659
|
+
md: string;
|
660
|
+
lg: string;
|
661
|
+
xl: string;
|
662
|
+
'2xl': string;
|
663
|
+
inner: string;
|
664
|
+
'elevation-low': string;
|
665
|
+
'elevation-medium': string;
|
666
|
+
'elevation-high': string;
|
667
|
+
card: string;
|
668
|
+
dropdown: string;
|
669
|
+
modal: string;
|
670
|
+
};
|
671
|
+
type Shadows = typeof shadows;
|
672
|
+
|
673
|
+
/**
|
674
|
+
* Re-exports all token definitions for easy consumption
|
675
|
+
*/
|
676
|
+
|
677
|
+
declare const tokens: {
|
678
|
+
colors: {
|
679
|
+
brand: {
|
680
|
+
25: string;
|
681
|
+
50: string;
|
682
|
+
100: string;
|
683
|
+
200: string;
|
684
|
+
300: string;
|
685
|
+
400: string;
|
686
|
+
500: string;
|
687
|
+
600: string;
|
688
|
+
700: string;
|
689
|
+
800: string;
|
690
|
+
900: string;
|
691
|
+
950: string;
|
692
|
+
};
|
693
|
+
error: {
|
694
|
+
25: string;
|
695
|
+
50: string;
|
696
|
+
100: string;
|
697
|
+
200: string;
|
698
|
+
300: string;
|
699
|
+
400: string;
|
700
|
+
500: string;
|
701
|
+
600: string;
|
702
|
+
700: string;
|
703
|
+
800: string;
|
704
|
+
900: string;
|
705
|
+
950: string;
|
706
|
+
};
|
707
|
+
warning: {
|
708
|
+
25: string;
|
709
|
+
50: string;
|
710
|
+
100: string;
|
711
|
+
200: string;
|
712
|
+
300: string;
|
713
|
+
400: string;
|
714
|
+
500: string;
|
715
|
+
600: string;
|
716
|
+
700: string;
|
717
|
+
800: string;
|
718
|
+
900: string;
|
719
|
+
950: string;
|
720
|
+
};
|
721
|
+
success: {
|
722
|
+
25: string;
|
723
|
+
50: string;
|
724
|
+
100: string;
|
725
|
+
200: string;
|
726
|
+
300: string;
|
727
|
+
400: string;
|
728
|
+
500: string;
|
729
|
+
600: string;
|
730
|
+
700: string;
|
731
|
+
800: string;
|
732
|
+
900: string;
|
733
|
+
950: string;
|
734
|
+
};
|
735
|
+
gray: {
|
736
|
+
25: string;
|
737
|
+
50: string;
|
738
|
+
100: string;
|
739
|
+
200: string;
|
740
|
+
300: string;
|
741
|
+
400: string;
|
742
|
+
500: string;
|
743
|
+
600: string;
|
744
|
+
700: string;
|
745
|
+
800: string;
|
746
|
+
900: string;
|
747
|
+
950: string;
|
748
|
+
};
|
749
|
+
text: {
|
750
|
+
primary: string;
|
751
|
+
secondary: string;
|
752
|
+
tertiary: string;
|
753
|
+
disabled: string;
|
754
|
+
brand: string;
|
755
|
+
'on-brand': string;
|
756
|
+
error: string;
|
757
|
+
warning: string;
|
758
|
+
success: string;
|
759
|
+
};
|
760
|
+
background: {
|
761
|
+
primary: string;
|
762
|
+
secondary: string;
|
763
|
+
tertiary: string;
|
764
|
+
brand: string;
|
765
|
+
error: string;
|
766
|
+
warning: string;
|
767
|
+
success: string;
|
768
|
+
card: string;
|
769
|
+
};
|
770
|
+
border: {
|
771
|
+
primary: string;
|
772
|
+
secondary: string;
|
773
|
+
tertiary: string;
|
774
|
+
brand: string;
|
775
|
+
error: string;
|
776
|
+
warning: string;
|
777
|
+
success: string;
|
778
|
+
};
|
779
|
+
focus: {
|
780
|
+
ring: string;
|
781
|
+
brand: string;
|
782
|
+
error: string;
|
783
|
+
warning: string;
|
784
|
+
success: string;
|
785
|
+
};
|
786
|
+
button: {
|
787
|
+
primary: {
|
788
|
+
bg: string;
|
789
|
+
text: string;
|
790
|
+
hover: string;
|
791
|
+
focus: string;
|
792
|
+
};
|
793
|
+
secondary: {
|
794
|
+
bg: string;
|
795
|
+
text: string;
|
796
|
+
border: string;
|
797
|
+
hover: string;
|
798
|
+
focus: string;
|
799
|
+
};
|
800
|
+
tertiary: {
|
801
|
+
bg: string;
|
802
|
+
text: string;
|
803
|
+
hover: string;
|
804
|
+
focus: string;
|
805
|
+
};
|
806
|
+
};
|
807
|
+
};
|
808
|
+
typography: {
|
809
|
+
fontFamily: {
|
810
|
+
sans: string[];
|
811
|
+
};
|
812
|
+
fontWeight: {
|
813
|
+
regular: string;
|
814
|
+
medium: string;
|
815
|
+
semibold: string;
|
816
|
+
bold: string;
|
817
|
+
};
|
818
|
+
fontSize: {
|
819
|
+
'display-2xl': (string | {
|
820
|
+
lineHeight: string;
|
821
|
+
letterSpacing: string;
|
822
|
+
})[];
|
823
|
+
'display-xl': (string | {
|
824
|
+
lineHeight: string;
|
825
|
+
letterSpacing: string;
|
826
|
+
})[];
|
827
|
+
'display-lg': (string | {
|
828
|
+
lineHeight: string;
|
829
|
+
letterSpacing: string;
|
830
|
+
})[];
|
831
|
+
'display-md': (string | {
|
832
|
+
lineHeight: string;
|
833
|
+
letterSpacing: string;
|
834
|
+
})[];
|
835
|
+
'display-sm': (string | {
|
836
|
+
lineHeight: string;
|
837
|
+
letterSpacing: string;
|
838
|
+
})[];
|
839
|
+
'display-xs': (string | {
|
840
|
+
lineHeight: string;
|
841
|
+
letterSpacing: string;
|
842
|
+
})[];
|
843
|
+
'text-xl': (string | {
|
844
|
+
lineHeight: string;
|
845
|
+
})[];
|
846
|
+
'text-lg': (string | {
|
847
|
+
lineHeight: string;
|
848
|
+
})[];
|
849
|
+
'text-md': (string | {
|
850
|
+
lineHeight: string;
|
851
|
+
})[];
|
852
|
+
'text-sm': (string | {
|
853
|
+
lineHeight: string;
|
854
|
+
})[];
|
855
|
+
'text-xs': (string | {
|
856
|
+
lineHeight: string;
|
857
|
+
})[];
|
858
|
+
};
|
859
|
+
styles: {
|
860
|
+
h1: string;
|
861
|
+
h2: string;
|
862
|
+
h3: string;
|
863
|
+
h4: string;
|
864
|
+
h5: string;
|
865
|
+
h6: string;
|
866
|
+
body: string;
|
867
|
+
'body-large': string;
|
868
|
+
'body-small': string;
|
869
|
+
caption: string;
|
870
|
+
overline: string;
|
871
|
+
label: string;
|
872
|
+
};
|
873
|
+
variants: {
|
874
|
+
italic: string;
|
875
|
+
underline: string;
|
876
|
+
};
|
877
|
+
};
|
878
|
+
spacing: {
|
879
|
+
layout: {
|
880
|
+
page: string;
|
881
|
+
section: string;
|
882
|
+
subsection: string;
|
883
|
+
inline: string;
|
884
|
+
};
|
885
|
+
component: {
|
886
|
+
xxs: string;
|
887
|
+
xs: string;
|
888
|
+
sm: string;
|
889
|
+
md: string;
|
890
|
+
lg: string;
|
891
|
+
xl: string;
|
892
|
+
xxl: string;
|
893
|
+
};
|
894
|
+
custom: {};
|
895
|
+
};
|
896
|
+
radius: {
|
897
|
+
default: string;
|
898
|
+
card: string;
|
899
|
+
button: string;
|
900
|
+
input: string;
|
901
|
+
badge: string;
|
902
|
+
pill: string;
|
903
|
+
circle: string;
|
904
|
+
custom: {};
|
905
|
+
};
|
906
|
+
shadows: {
|
907
|
+
none: string;
|
908
|
+
xs: string;
|
909
|
+
sm: string;
|
910
|
+
md: string;
|
911
|
+
lg: string;
|
912
|
+
xl: string;
|
913
|
+
'2xl': string;
|
914
|
+
inner: string;
|
915
|
+
'elevation-low': string;
|
916
|
+
'elevation-medium': string;
|
917
|
+
'elevation-high': string;
|
918
|
+
card: string;
|
919
|
+
dropdown: string;
|
920
|
+
modal: string;
|
921
|
+
};
|
922
|
+
};
|
923
|
+
type Tokens = typeof tokens;
|
924
|
+
|
925
|
+
export { Button, type ButtonProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type Colors, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DropdownMenu, EmailButton, type EmailButtonProps, EmailCaption, EmailContainer, type EmailContainerProps, EmailFooter, type EmailFooterProps, EmailHeader, type EmailHeaderProps, EmailHeading, EmailLayout, type EmailLayoutProps, EmailMuted, EmailText, type EmailTextProps, Heading, type HeadingProps, HoverCard, HoverCardContent, HoverCardTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type Radius, type Shadows, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Slider, type Spacing, Text, type TextProps, ThemeColor, Toggle, ToggleGroup, ToggleGroupItem, type Tokens, type Typography, buttonVariants, cn, colors, filterDOMProps, generateId, isNotNullOrUndefined, radius, shadows, spacing, tokens, typography };
|