@donotdev/components 0.0.20 → 0.0.21
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/atomic/Alert/index.d.ts +1 -1
- package/dist/atomic/Badge/index.d.ts +1 -1
- package/dist/atomic/Button/index.d.ts +1 -1
- package/dist/atomic/HeroSection/index.d.ts +1 -1
- package/dist/atomic/Rating/index.d.ts +1 -1
- package/dist/atomic/Stepper/index.d.ts +1 -1
- package/dist/atomic/Tabs/index.d.ts +1 -1
- package/dist/atomic/Tag/index.d.ts +1 -1
- package/dist/atomic/Toaster/ToastPrimitive.d.ts +1 -1
- package/dist/atomic/Toggle/index.d.ts +1 -1
- package/dist/utils/variants.d.ts +1 -1
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ export declare const ALERT_VARIANT: {
|
|
|
20
20
|
readonly INFO: "info";
|
|
21
21
|
};
|
|
22
22
|
declare const alertVariants: (props?: ({
|
|
23
|
-
variant?: "error" | "
|
|
23
|
+
variant?: "error" | "muted" | "warning" | "info" | "success" | null | undefined;
|
|
24
24
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
25
|
export type AlertVariant = (typeof ALERT_VARIANT)[keyof typeof ALERT_VARIANT];
|
|
26
26
|
export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, VariantProps<typeof alertVariants> {
|
|
@@ -24,7 +24,7 @@ export declare const BADGE_VARIANT: {
|
|
|
24
24
|
readonly DESTRUCTIVE: "destructive";
|
|
25
25
|
};
|
|
26
26
|
declare const badgeVariants: (props?: ({
|
|
27
|
-
variant?: "default" | "
|
|
27
|
+
variant?: "default" | "outline" | "muted" | "accent" | "primary" | "destructive" | "warning" | "success" | "secondary" | null | undefined;
|
|
28
28
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
29
|
export type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];
|
|
30
30
|
/**
|
|
@@ -21,7 +21,7 @@ export declare const BUTTON_VARIANT: {
|
|
|
21
21
|
readonly DESTRUCTIVE: "destructive";
|
|
22
22
|
};
|
|
23
23
|
declare const buttonVariants: (props?: ({
|
|
24
|
-
variant?: "default" | "
|
|
24
|
+
variant?: "default" | "outline" | "ghost" | "link" | "muted" | "accent" | "primary" | "destructive" | "warning" | "success" | "secondary" | null | undefined;
|
|
25
25
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
26
26
|
/**
|
|
27
27
|
* Button variant type - derived from buttonVariants to ensure type safety
|
|
@@ -25,7 +25,7 @@ import { type ElementType, type ComponentPropsWithRef, type ReactNode } from 're
|
|
|
25
25
|
import { type Tone } from '../../utils/constants';
|
|
26
26
|
import './HeroSection.css';
|
|
27
27
|
declare const heroSectionVariants: (props?: ({
|
|
28
|
-
variant?: "
|
|
28
|
+
variant?: "accent" | "primary" | "subtle" | null | undefined;
|
|
29
29
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
30
30
|
interface HeroSectionOwnProps extends VariantProps<typeof heroSectionVariants> {
|
|
31
31
|
/** Element type to render as @default 'section' */
|
|
@@ -3,7 +3,7 @@ import { CONTROL_VARIANT, type ControlVariant } from '../../utils/constants';
|
|
|
3
3
|
import './Rating.css';
|
|
4
4
|
import type { HTMLAttributes } from 'react';
|
|
5
5
|
declare const ratingVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
6
|
+
variant?: "default" | "muted" | "accent" | "primary" | "destructive" | "warning" | "success" | "secondary" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export interface RatingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>, VariantProps<typeof ratingVariants> {
|
|
9
9
|
/** Current rating value (1-5, supports decimals for display) */
|
|
@@ -20,7 +20,7 @@ export interface StepperStep {
|
|
|
20
20
|
content: ReactNode;
|
|
21
21
|
}
|
|
22
22
|
declare const stepperVariants: (props?: ({
|
|
23
|
-
variant?: "default" | "
|
|
23
|
+
variant?: "default" | "muted" | "accent" | "primary" | "destructive" | "warning" | "success" | "secondary" | null | undefined;
|
|
24
24
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
25
|
export type StepperVariant = VariantProps<typeof stepperVariants>['variant'];
|
|
26
26
|
export interface StepperProps extends VariantProps<typeof stepperVariants> {
|
|
@@ -25,7 +25,7 @@ export interface TabItem {
|
|
|
25
25
|
forceMount?: boolean;
|
|
26
26
|
}
|
|
27
27
|
declare const tabsVariants: (props?: ({
|
|
28
|
-
variant?: "default" | "
|
|
28
|
+
variant?: "default" | "muted" | "accent" | "primary" | "destructive" | "warning" | "success" | "secondary" | null | undefined;
|
|
29
29
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
30
30
|
export type TabsVariant = VariantProps<typeof tabsVariants>['variant'];
|
|
31
31
|
export interface TabsProps extends Omit<ComponentProps<typeof TabsPrimitive>, 'children'>, VariantProps<typeof tabsVariants> {
|
|
@@ -15,7 +15,7 @@ export declare const TAG_VARIANT: {
|
|
|
15
15
|
readonly ACCENT: "accent";
|
|
16
16
|
};
|
|
17
17
|
declare const tagVariants: (props?: ({
|
|
18
|
-
variant?: "default" | "
|
|
18
|
+
variant?: "default" | "outline" | "accent" | null | undefined;
|
|
19
19
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
20
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
21
|
export interface TagProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'onClick'>, VariantProps<typeof tagVariants> {
|
|
@@ -13,7 +13,7 @@ import type { ComponentProps, ReactElement } from 'react';
|
|
|
13
13
|
declare const ToastProvider: import("react").FC<ToastPrimitives.ToastProviderProps>;
|
|
14
14
|
declare function ToastViewport({ className, ...props }: ComponentProps<typeof ToastPrimitives.Viewport>): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
declare const toastVariants: (props?: ({
|
|
16
|
-
variant?: "
|
|
16
|
+
variant?: "default" | "error" | "warning" | "info" | "success" | null | undefined;
|
|
17
17
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
18
|
interface ToastProps extends ComponentProps<typeof ToastPrimitives.Root>, VariantProps<typeof toastVariants> {
|
|
19
19
|
toastType?: ToastType;
|
|
@@ -10,7 +10,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
10
10
|
import { TogglePrimitive } from './TogglePrimitive';
|
|
11
11
|
import type { ComponentPropsWithoutRef } from 'react';
|
|
12
12
|
declare const toggleVariants: (props?: ({
|
|
13
|
-
variant?: "default" | "
|
|
13
|
+
variant?: "default" | "outline" | "muted" | "accent" | "primary" | "destructive" | "warning" | "success" | "secondary" | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
export interface ToggleProps extends ComponentPropsWithoutRef<typeof TogglePrimitive>, VariantProps<typeof toggleVariants> {
|
|
16
16
|
}
|
package/dist/utils/variants.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
9
9
|
* Used by: Card, DualCard, StackedCards, Dialog, Sheet, Alert
|
|
10
10
|
*/
|
|
11
11
|
export declare const surfaceVariants: (props?: ({
|
|
12
|
-
variant?: "default" | "
|
|
12
|
+
variant?: "default" | "outline" | "muted" | "accent" | "primary" | "destructive" | "warning" | "success" | "secondary" | "glass" | null | undefined;
|
|
13
13
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
14
|
export type SurfaceVariantProps = VariantProps<typeof surfaceVariants>;
|
|
15
15
|
//# sourceMappingURL=variants.d.ts.map
|