@classic-homes/theme-react 0.1.51 → 0.1.52
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 +20 -7
- package/dist/index.d.ts +20 -7
- package/dist/index.js +232 -149
- package/dist/index.mjs +231 -149
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
5
5
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
6
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
7
6
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
8
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
8
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -31,6 +30,14 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
31
30
|
}
|
|
32
31
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
33
32
|
|
|
33
|
+
interface PasswordInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
34
|
+
/** Label for the toggle button when password is hidden */
|
|
35
|
+
showLabel?: string;
|
|
36
|
+
/** Label for the toggle button when password is visible */
|
|
37
|
+
hideLabel?: string;
|
|
38
|
+
}
|
|
39
|
+
declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
40
|
+
|
|
34
41
|
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
35
42
|
|
|
36
43
|
declare const badgeVariants: (props?: ({
|
|
@@ -42,7 +49,13 @@ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttri
|
|
|
42
49
|
|
|
43
50
|
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
44
51
|
|
|
45
|
-
interface SwitchProps extends React.ComponentPropsWithoutRef<
|
|
52
|
+
interface SwitchProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
53
|
+
/** Whether the switch is checked (controlled) */
|
|
54
|
+
checked?: boolean;
|
|
55
|
+
/** Default checked state (uncontrolled) */
|
|
56
|
+
defaultChecked?: boolean;
|
|
57
|
+
/** Callback when checked state changes */
|
|
58
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
46
59
|
/** Size variant for the switch */
|
|
47
60
|
size?: 'default' | 'sm';
|
|
48
61
|
}
|
|
@@ -56,8 +69,8 @@ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
|
56
69
|
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
57
70
|
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
58
71
|
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
59
|
-
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<
|
|
60
|
-
declare const DialogContent: React.ForwardRefExoticComponent<Omit<
|
|
72
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
61
74
|
declare const DialogHeader: {
|
|
62
75
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
63
76
|
displayName: string;
|
|
@@ -66,8 +79,8 @@ declare const DialogFooter: {
|
|
|
66
79
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
67
80
|
displayName: string;
|
|
68
81
|
};
|
|
69
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<
|
|
70
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<
|
|
82
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
83
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
71
84
|
|
|
72
85
|
/**
|
|
73
86
|
* PageHeader - Hero/page header component
|
|
@@ -221,4 +234,4 @@ declare const DataPanel: React.ForwardRefExoticComponent<DataPanelProps & React.
|
|
|
221
234
|
*/
|
|
222
235
|
declare function cn(...inputs: ClassValue[]): string;
|
|
223
236
|
|
|
224
|
-
export { Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DataPanel, DataPanelContent, type DataPanelContentProps, DataPanelFooter, type DataPanelFooterProps, DataPanelHeader, type DataPanelProps, DataPanelTab, type DataPanelTabProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Input, type InputProps, Label, PageHeader, type PageHeaderProps, Separator, Switch, type SwitchProps, badgeVariants, buttonVariants, cn, pageHeaderActionsVariants, pageHeaderContainerVariants, pageHeaderSubtitleVariants, pageHeaderTitleVariants, useDataPanel };
|
|
237
|
+
export { Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DataPanel, DataPanelContent, type DataPanelContentProps, DataPanelFooter, type DataPanelFooterProps, DataPanelHeader, type DataPanelProps, DataPanelTab, type DataPanelTabProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Input, type InputProps, Label, PageHeader, type PageHeaderProps, PasswordInput, type PasswordInputProps, Separator, Switch, type SwitchProps, badgeVariants, buttonVariants, cn, pageHeaderActionsVariants, pageHeaderContainerVariants, pageHeaderSubtitleVariants, pageHeaderTitleVariants, useDataPanel };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
5
5
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
6
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
7
6
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
8
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
8
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -31,6 +30,14 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
|
31
30
|
}
|
|
32
31
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
33
32
|
|
|
33
|
+
interface PasswordInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
34
|
+
/** Label for the toggle button when password is hidden */
|
|
35
|
+
showLabel?: string;
|
|
36
|
+
/** Label for the toggle button when password is visible */
|
|
37
|
+
hideLabel?: string;
|
|
38
|
+
}
|
|
39
|
+
declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
40
|
+
|
|
34
41
|
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
35
42
|
|
|
36
43
|
declare const badgeVariants: (props?: ({
|
|
@@ -42,7 +49,13 @@ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttri
|
|
|
42
49
|
|
|
43
50
|
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
44
51
|
|
|
45
|
-
interface SwitchProps extends React.ComponentPropsWithoutRef<
|
|
52
|
+
interface SwitchProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
53
|
+
/** Whether the switch is checked (controlled) */
|
|
54
|
+
checked?: boolean;
|
|
55
|
+
/** Default checked state (uncontrolled) */
|
|
56
|
+
defaultChecked?: boolean;
|
|
57
|
+
/** Callback when checked state changes */
|
|
58
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
46
59
|
/** Size variant for the switch */
|
|
47
60
|
size?: 'default' | 'sm';
|
|
48
61
|
}
|
|
@@ -56,8 +69,8 @@ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
|
56
69
|
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
57
70
|
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
58
71
|
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
59
|
-
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<
|
|
60
|
-
declare const DialogContent: React.ForwardRefExoticComponent<Omit<
|
|
72
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
61
74
|
declare const DialogHeader: {
|
|
62
75
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
63
76
|
displayName: string;
|
|
@@ -66,8 +79,8 @@ declare const DialogFooter: {
|
|
|
66
79
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
67
80
|
displayName: string;
|
|
68
81
|
};
|
|
69
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<
|
|
70
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<
|
|
82
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
83
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
71
84
|
|
|
72
85
|
/**
|
|
73
86
|
* PageHeader - Hero/page header component
|
|
@@ -221,4 +234,4 @@ declare const DataPanel: React.ForwardRefExoticComponent<DataPanelProps & React.
|
|
|
221
234
|
*/
|
|
222
235
|
declare function cn(...inputs: ClassValue[]): string;
|
|
223
236
|
|
|
224
|
-
export { Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DataPanel, DataPanelContent, type DataPanelContentProps, DataPanelFooter, type DataPanelFooterProps, DataPanelHeader, type DataPanelProps, DataPanelTab, type DataPanelTabProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Input, type InputProps, Label, PageHeader, type PageHeaderProps, Separator, Switch, type SwitchProps, badgeVariants, buttonVariants, cn, pageHeaderActionsVariants, pageHeaderContainerVariants, pageHeaderSubtitleVariants, pageHeaderTitleVariants, useDataPanel };
|
|
237
|
+
export { Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DataPanel, DataPanelContent, type DataPanelContentProps, DataPanelFooter, type DataPanelFooterProps, DataPanelHeader, type DataPanelProps, DataPanelTab, type DataPanelTabProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Input, type InputProps, Label, PageHeader, type PageHeaderProps, PasswordInput, type PasswordInputProps, Separator, Switch, type SwitchProps, badgeVariants, buttonVariants, cn, pageHeaderActionsVariants, pageHeaderContainerVariants, pageHeaderSubtitleVariants, pageHeaderTitleVariants, useDataPanel };
|