@tydavidson/design-system 1.1.10 → 1.1.11
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 +56 -1
- package/dist/index.d.ts +56 -1
- package/dist/index.js +162 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +146 -15
- package/dist/index.mjs.map +1 -1
- package/dist/themes/index.js +6 -14
- package/dist/themes/index.js.map +1 -1
- package/dist/themes/index.mjs +6 -14
- package/dist/themes/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -361,6 +361,61 @@ interface EmailFooterProps {
|
|
361
361
|
}
|
362
362
|
declare const EmailFooter: React__default.FC<EmailFooterProps>;
|
363
363
|
|
364
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
365
|
+
/**
|
366
|
+
* Whether the card has a border
|
367
|
+
* @default false
|
368
|
+
*/
|
369
|
+
bordered?: boolean;
|
370
|
+
/**
|
371
|
+
* Whether the card has a shadow
|
372
|
+
* @default true
|
373
|
+
*/
|
374
|
+
shadowed?: boolean;
|
375
|
+
/**
|
376
|
+
* The padding size of the card
|
377
|
+
* @default 'md'
|
378
|
+
*/
|
379
|
+
padding?: "none" | "sm" | "md" | "lg";
|
380
|
+
}
|
381
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
382
|
+
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
383
|
+
}
|
384
|
+
declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
385
|
+
interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
386
|
+
}
|
387
|
+
declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
388
|
+
interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
389
|
+
}
|
390
|
+
declare const CardDescription: React.ForwardRefExoticComponent<CardDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
391
|
+
interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
392
|
+
}
|
393
|
+
declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLDivElement>>;
|
394
|
+
interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
395
|
+
}
|
396
|
+
declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
397
|
+
|
398
|
+
declare const Dialog: React.FC<SheetPrimitive.DialogProps>;
|
399
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
400
|
+
declare const DialogPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
401
|
+
declare const DialogClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
402
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
403
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
404
|
+
declare const DialogHeader: {
|
405
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
406
|
+
displayName: string;
|
407
|
+
};
|
408
|
+
declare const DialogFooter: {
|
409
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
410
|
+
displayName: string;
|
411
|
+
};
|
412
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
413
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
414
|
+
|
415
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
416
|
+
}
|
417
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
418
|
+
|
364
419
|
/**
|
365
420
|
* Combines multiple class values into a single className string
|
366
421
|
* with proper Tailwind CSS class merging.
|
@@ -922,4 +977,4 @@ declare const tokens: {
|
|
922
977
|
};
|
923
978
|
type Tokens = typeof tokens;
|
924
979
|
|
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 };
|
980
|
+
export { Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, 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, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, 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, Input, type InputProps, 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 };
|
package/dist/index.d.ts
CHANGED
@@ -361,6 +361,61 @@ interface EmailFooterProps {
|
|
361
361
|
}
|
362
362
|
declare const EmailFooter: React__default.FC<EmailFooterProps>;
|
363
363
|
|
364
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
365
|
+
/**
|
366
|
+
* Whether the card has a border
|
367
|
+
* @default false
|
368
|
+
*/
|
369
|
+
bordered?: boolean;
|
370
|
+
/**
|
371
|
+
* Whether the card has a shadow
|
372
|
+
* @default true
|
373
|
+
*/
|
374
|
+
shadowed?: boolean;
|
375
|
+
/**
|
376
|
+
* The padding size of the card
|
377
|
+
* @default 'md'
|
378
|
+
*/
|
379
|
+
padding?: "none" | "sm" | "md" | "lg";
|
380
|
+
}
|
381
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
382
|
+
interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
383
|
+
}
|
384
|
+
declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
385
|
+
interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
386
|
+
}
|
387
|
+
declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
388
|
+
interface CardDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
389
|
+
}
|
390
|
+
declare const CardDescription: React.ForwardRefExoticComponent<CardDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
391
|
+
interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
392
|
+
}
|
393
|
+
declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLDivElement>>;
|
394
|
+
interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
395
|
+
}
|
396
|
+
declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
397
|
+
|
398
|
+
declare const Dialog: React.FC<SheetPrimitive.DialogProps>;
|
399
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
400
|
+
declare const DialogPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
401
|
+
declare const DialogClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
402
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
403
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
404
|
+
declare const DialogHeader: {
|
405
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
406
|
+
displayName: string;
|
407
|
+
};
|
408
|
+
declare const DialogFooter: {
|
409
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
410
|
+
displayName: string;
|
411
|
+
};
|
412
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
413
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
414
|
+
|
415
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
416
|
+
}
|
417
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
418
|
+
|
364
419
|
/**
|
365
420
|
* Combines multiple class values into a single className string
|
366
421
|
* with proper Tailwind CSS class merging.
|
@@ -922,4 +977,4 @@ declare const tokens: {
|
|
922
977
|
};
|
923
978
|
type Tokens = typeof tokens;
|
924
979
|
|
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 };
|
980
|
+
export { Button, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, 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, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, 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, Input, type InputProps, 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 };
|
package/dist/index.js
CHANGED
@@ -48,9 +48,7 @@ var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespace(Collapsible
|
|
48
48
|
var ContextMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(ContextMenuPrimitive);
|
49
49
|
|
50
50
|
var __defProp = Object.defineProperty;
|
51
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
52
51
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
53
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
54
52
|
var __esm = (fn, res) => function __init() {
|
55
53
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
56
54
|
};
|
@@ -58,15 +56,6 @@ var __export = (target, all) => {
|
|
58
56
|
for (var name in all)
|
59
57
|
__defProp(target, name, { get: all[name], enumerable: true });
|
60
58
|
};
|
61
|
-
var __copyProps = (to, from, except, desc) => {
|
62
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
63
|
-
for (let key of __getOwnPropNames(from))
|
64
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
65
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
66
|
-
}
|
67
|
-
return to;
|
68
|
-
};
|
69
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
70
59
|
function cn(...inputs) {
|
71
60
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
72
61
|
}
|
@@ -924,7 +913,9 @@ init_utils();
|
|
924
913
|
// src/components/ui/dialog.tsx
|
925
914
|
init_utils();
|
926
915
|
var Dialog = SheetPrimitive__namespace.Root;
|
916
|
+
var DialogTrigger = SheetPrimitive__namespace.Trigger;
|
927
917
|
var DialogPortal = SheetPrimitive__namespace.Portal;
|
918
|
+
var DialogClose = SheetPrimitive__namespace.Close;
|
928
919
|
var DialogOverlay = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
929
920
|
SheetPrimitive__namespace.Overlay,
|
930
921
|
{
|
@@ -959,6 +950,34 @@ var DialogContent = React2__namespace.forwardRef(({ className, children, ...prop
|
|
959
950
|
)
|
960
951
|
] }));
|
961
952
|
DialogContent.displayName = SheetPrimitive__namespace.Content.displayName;
|
953
|
+
var DialogHeader = ({
|
954
|
+
className,
|
955
|
+
...props
|
956
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
957
|
+
"div",
|
958
|
+
{
|
959
|
+
className: cn(
|
960
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
961
|
+
className
|
962
|
+
),
|
963
|
+
...props
|
964
|
+
}
|
965
|
+
);
|
966
|
+
DialogHeader.displayName = "DialogHeader";
|
967
|
+
var DialogFooter = ({
|
968
|
+
className,
|
969
|
+
...props
|
970
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
971
|
+
"div",
|
972
|
+
{
|
973
|
+
className: cn(
|
974
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
975
|
+
className
|
976
|
+
),
|
977
|
+
...props
|
978
|
+
}
|
979
|
+
);
|
980
|
+
DialogFooter.displayName = "DialogFooter";
|
962
981
|
var DialogTitle = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
963
982
|
SheetPrimitive__namespace.Title,
|
964
983
|
{
|
@@ -1503,6 +1522,115 @@ var EmailFooter = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx("div", { styl
|
|
1503
1522
|
] })
|
1504
1523
|
] }) });
|
1505
1524
|
|
1525
|
+
// src/components/ui/card.tsx
|
1526
|
+
init_utils();
|
1527
|
+
var Card = React2__namespace.forwardRef(
|
1528
|
+
({ className, variant = "default", ...props }, ref) => {
|
1529
|
+
const variantClasses = {
|
1530
|
+
default: "bg-[var(--card-bg-default)] border-[var(--card-border-default)]",
|
1531
|
+
subtle: "bg-[var(--card-bg-subtle)] border-[var(--card-border-subtle)]",
|
1532
|
+
"border-only": "bg-[var(--card-bg-border-only)] border-[var(--card-border-border-only)]"
|
1533
|
+
};
|
1534
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
1535
|
+
"div",
|
1536
|
+
{
|
1537
|
+
ref,
|
1538
|
+
className: cn(
|
1539
|
+
"rounded-lg border shadow-[var(--card-shadow)]",
|
1540
|
+
variantClasses[variant],
|
1541
|
+
className
|
1542
|
+
),
|
1543
|
+
...props
|
1544
|
+
}
|
1545
|
+
);
|
1546
|
+
}
|
1547
|
+
);
|
1548
|
+
Card.displayName = "Card";
|
1549
|
+
var CardHeader = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
1550
|
+
"div",
|
1551
|
+
{
|
1552
|
+
ref,
|
1553
|
+
className: cn(
|
1554
|
+
"flex flex-col space-y-[var(--card-content-gap)] p-[var(--card-content-padding)]",
|
1555
|
+
className
|
1556
|
+
),
|
1557
|
+
...props
|
1558
|
+
}
|
1559
|
+
));
|
1560
|
+
CardHeader.displayName = "CardHeader";
|
1561
|
+
var CardTitle = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
1562
|
+
"div",
|
1563
|
+
{
|
1564
|
+
ref,
|
1565
|
+
className: cn(
|
1566
|
+
"text-[var(--card-title-size)] font-[var(--card-title-weight)] leading-none tracking-tight text-[var(--card-title-text)]",
|
1567
|
+
className
|
1568
|
+
),
|
1569
|
+
...props
|
1570
|
+
}
|
1571
|
+
));
|
1572
|
+
CardTitle.displayName = "CardTitle";
|
1573
|
+
var CardDescription = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
1574
|
+
"div",
|
1575
|
+
{
|
1576
|
+
ref,
|
1577
|
+
className: cn(
|
1578
|
+
"text-[var(--card-description-size)] text-[var(--card-description-text)]",
|
1579
|
+
className
|
1580
|
+
),
|
1581
|
+
...props
|
1582
|
+
}
|
1583
|
+
));
|
1584
|
+
CardDescription.displayName = "CardDescription";
|
1585
|
+
var CardContent = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
1586
|
+
"div",
|
1587
|
+
{
|
1588
|
+
ref,
|
1589
|
+
className: cn(
|
1590
|
+
"p-[var(--card-content-padding)] pt-0",
|
1591
|
+
className
|
1592
|
+
),
|
1593
|
+
...props
|
1594
|
+
}
|
1595
|
+
));
|
1596
|
+
CardContent.displayName = "CardContent";
|
1597
|
+
var CardFooter = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
1598
|
+
"div",
|
1599
|
+
{
|
1600
|
+
ref,
|
1601
|
+
className: cn(
|
1602
|
+
"flex items-center p-[var(--card-content-padding)] pt-0",
|
1603
|
+
className
|
1604
|
+
),
|
1605
|
+
...props
|
1606
|
+
}
|
1607
|
+
));
|
1608
|
+
CardFooter.displayName = "CardFooter";
|
1609
|
+
|
1610
|
+
// src/components/ui/input.tsx
|
1611
|
+
init_utils();
|
1612
|
+
var Input = React2__namespace.forwardRef(
|
1613
|
+
({ className, type, ...props }, ref) => {
|
1614
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
1615
|
+
"input",
|
1616
|
+
{
|
1617
|
+
type,
|
1618
|
+
className: cn(
|
1619
|
+
"flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
1620
|
+
"bg-[var(--input-bg)] text-[var(--input-text)] border-[var(--input-border)] placeholder:text-[var(--input-text-placeholder)]",
|
1621
|
+
"hover:border-[var(--input-border-hover)]",
|
1622
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:border-[var(--input-border-focus)]",
|
1623
|
+
"disabled:cursor-not-allowed disabled:border-[var(--input-border-disabled)] disabled:bg-[var(--input-bg-disabled)] disabled:text-[var(--input-text-disabled)] disabled:opacity-[var(--input-opacity-disabled)]",
|
1624
|
+
className
|
1625
|
+
),
|
1626
|
+
ref,
|
1627
|
+
...props
|
1628
|
+
}
|
1629
|
+
);
|
1630
|
+
}
|
1631
|
+
);
|
1632
|
+
Input.displayName = "Input";
|
1633
|
+
|
1506
1634
|
// src/index.ts
|
1507
1635
|
init_utils();
|
1508
1636
|
|
@@ -1836,20 +1964,29 @@ function ClientThemeProvider({
|
|
1836
1964
|
}
|
1837
1965
|
function ClientThemeToggle(props) {
|
1838
1966
|
const [mounted, setMounted] = React2__namespace.useState(false);
|
1967
|
+
const [ThemeToggleComponent, setThemeToggleComponent] = React2__namespace.useState(null);
|
1839
1968
|
React2__namespace.useEffect(() => {
|
1840
1969
|
setMounted(true);
|
1970
|
+
Promise.resolve().then(() => (init_theme_toggle2(), theme_toggle_exports)).then(({ ThemeToggle: ThemeToggle2 }) => {
|
1971
|
+
setThemeToggleComponent(() => ThemeToggle2);
|
1972
|
+
});
|
1841
1973
|
}, []);
|
1842
|
-
if (!mounted) {
|
1974
|
+
if (!mounted || !ThemeToggleComponent) {
|
1843
1975
|
return null;
|
1844
1976
|
}
|
1845
|
-
|
1846
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ThemeToggle2, { ...props });
|
1977
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ThemeToggleComponent, { ...props });
|
1847
1978
|
}
|
1848
1979
|
|
1849
1980
|
// src/themes/index.ts
|
1850
1981
|
init_theme_utils();
|
1851
1982
|
|
1852
1983
|
exports.Button = Button;
|
1984
|
+
exports.Card = Card;
|
1985
|
+
exports.CardContent = CardContent;
|
1986
|
+
exports.CardDescription = CardDescription;
|
1987
|
+
exports.CardFooter = CardFooter;
|
1988
|
+
exports.CardHeader = CardHeader;
|
1989
|
+
exports.CardTitle = CardTitle;
|
1853
1990
|
exports.ClientThemeProvider = ClientThemeProvider;
|
1854
1991
|
exports.ClientThemeToggle = ClientThemeToggle;
|
1855
1992
|
exports.Collapsible = Collapsible;
|
@@ -1879,6 +2016,16 @@ exports.ContextMenuSub = ContextMenuSub;
|
|
1879
2016
|
exports.ContextMenuSubContent = ContextMenuSubContent;
|
1880
2017
|
exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
|
1881
2018
|
exports.ContextMenuTrigger = ContextMenuTrigger;
|
2019
|
+
exports.Dialog = Dialog;
|
2020
|
+
exports.DialogClose = DialogClose;
|
2021
|
+
exports.DialogContent = DialogContent;
|
2022
|
+
exports.DialogDescription = DialogDescription;
|
2023
|
+
exports.DialogFooter = DialogFooter;
|
2024
|
+
exports.DialogHeader = DialogHeader;
|
2025
|
+
exports.DialogOverlay = DialogOverlay;
|
2026
|
+
exports.DialogPortal = DialogPortal;
|
2027
|
+
exports.DialogTitle = DialogTitle;
|
2028
|
+
exports.DialogTrigger = DialogTrigger;
|
1882
2029
|
exports.DropdownMenu = DropdownMenu;
|
1883
2030
|
exports.EmailButton = EmailButton;
|
1884
2031
|
exports.EmailCaption = EmailCaption;
|
@@ -1893,6 +2040,7 @@ exports.Heading = Heading;
|
|
1893
2040
|
exports.HoverCard = HoverCard;
|
1894
2041
|
exports.HoverCardContent = HoverCardContent;
|
1895
2042
|
exports.HoverCardTrigger = HoverCardTrigger;
|
2043
|
+
exports.Input = Input;
|
1896
2044
|
exports.Popover = Popover;
|
1897
2045
|
exports.PopoverAnchor = PopoverAnchor;
|
1898
2046
|
exports.PopoverContent = PopoverContent;
|