singularity-components 0.1.96 → 0.1.97
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/main.cjs +7 -7
- package/dist/main.cjs.map +1 -1
- package/dist/main.d.cts +3 -14
- package/dist/main.d.ts +3 -14
- package/dist/main.js +7 -7
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.d.cts
CHANGED
|
@@ -99,21 +99,12 @@ declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">
|
|
|
99
99
|
declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
|
|
100
100
|
declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
|
|
101
101
|
|
|
102
|
-
type Breakpoint = "" | "sm:" | "md:" | "lg:" | "xl:" | "2xl:";
|
|
103
|
-
type MarginDirection = "m-" | "mx-" | "my-" | "mt-" | "mr-" | "mb-" | "ml-";
|
|
104
|
-
type Size = "0" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "px" | "auto";
|
|
105
|
-
type TailwindMarginClassValue = `${Breakpoint}${MarginDirection}${Size}`;
|
|
106
|
-
type TailwindMarginClass = TailwindMarginClassValue[];
|
|
107
|
-
type OmitClassProperty<T1, T2 extends string> = Omit<T1, T2>;
|
|
108
|
-
type OmitClassName<T> = OmitClassProperty<T, "className">;
|
|
109
|
-
|
|
110
102
|
declare const textBodyVariants: (props?: ({
|
|
111
103
|
size?: "base" | "sm" | "lg" | "xs" | "xl" | null | undefined;
|
|
112
104
|
foreground?: "default" | "secondary" | "black" | "white" | "gray" | "primary" | null | undefined;
|
|
113
105
|
weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
|
|
114
106
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
115
|
-
interface TextBodyProps extends
|
|
116
|
-
className?: TailwindMarginClass;
|
|
107
|
+
interface TextBodyProps extends React__default.HTMLAttributes<HTMLParagraphElement>, VariantProps<typeof textBodyVariants> {
|
|
117
108
|
}
|
|
118
109
|
declare const TextBody: React__default.FC<TextBodyProps>;
|
|
119
110
|
|
|
@@ -122,8 +113,7 @@ declare const textDisplayVariants: (props?: ({
|
|
|
122
113
|
foreground?: "default" | "secondary" | "black" | "white" | "gray" | "primary" | null | undefined;
|
|
123
114
|
gradient?: boolean | "none" | null | undefined;
|
|
124
115
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
125
|
-
interface TextDisplayProps extends
|
|
126
|
-
className?: TailwindMarginClass;
|
|
116
|
+
interface TextDisplayProps extends React__default.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textDisplayVariants> {
|
|
127
117
|
}
|
|
128
118
|
declare const TextDisplay: React__default.FC<TextDisplayProps>;
|
|
129
119
|
|
|
@@ -131,9 +121,8 @@ declare const textHeadingVariants: (props?: ({
|
|
|
131
121
|
variant?: "h1" | "h2" | "h3" | "h4" | null | undefined;
|
|
132
122
|
foreground?: "default" | "secondary" | "black" | "white" | "gray" | "primary" | "gradient" | null | undefined;
|
|
133
123
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
134
|
-
interface TextHeadingProps extends
|
|
124
|
+
interface TextHeadingProps extends React__default.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof textHeadingVariants> {
|
|
135
125
|
as?: "h1" | "h2" | "h3" | "h4";
|
|
136
|
-
className?: TailwindMarginClass;
|
|
137
126
|
}
|
|
138
127
|
declare const TextHeading: React__default.FC<TextHeadingProps>;
|
|
139
128
|
|
package/dist/main.d.ts
CHANGED
|
@@ -99,21 +99,12 @@ declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">
|
|
|
99
99
|
declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): react_jsx_runtime.JSX.Element;
|
|
100
100
|
declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): react_jsx_runtime.JSX.Element;
|
|
101
101
|
|
|
102
|
-
type Breakpoint = "" | "sm:" | "md:" | "lg:" | "xl:" | "2xl:";
|
|
103
|
-
type MarginDirection = "m-" | "mx-" | "my-" | "mt-" | "mr-" | "mb-" | "ml-";
|
|
104
|
-
type Size = "0" | "0.5" | "1" | "1.5" | "2" | "2.5" | "3" | "3.5" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "px" | "auto";
|
|
105
|
-
type TailwindMarginClassValue = `${Breakpoint}${MarginDirection}${Size}`;
|
|
106
|
-
type TailwindMarginClass = TailwindMarginClassValue[];
|
|
107
|
-
type OmitClassProperty<T1, T2 extends string> = Omit<T1, T2>;
|
|
108
|
-
type OmitClassName<T> = OmitClassProperty<T, "className">;
|
|
109
|
-
|
|
110
102
|
declare const textBodyVariants: (props?: ({
|
|
111
103
|
size?: "base" | "sm" | "lg" | "xs" | "xl" | null | undefined;
|
|
112
104
|
foreground?: "default" | "secondary" | "black" | "white" | "gray" | "primary" | null | undefined;
|
|
113
105
|
weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
|
|
114
106
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
115
|
-
interface TextBodyProps extends
|
|
116
|
-
className?: TailwindMarginClass;
|
|
107
|
+
interface TextBodyProps extends React__default.HTMLAttributes<HTMLParagraphElement>, VariantProps<typeof textBodyVariants> {
|
|
117
108
|
}
|
|
118
109
|
declare const TextBody: React__default.FC<TextBodyProps>;
|
|
119
110
|
|
|
@@ -122,8 +113,7 @@ declare const textDisplayVariants: (props?: ({
|
|
|
122
113
|
foreground?: "default" | "secondary" | "black" | "white" | "gray" | "primary" | null | undefined;
|
|
123
114
|
gradient?: boolean | "none" | null | undefined;
|
|
124
115
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
125
|
-
interface TextDisplayProps extends
|
|
126
|
-
className?: TailwindMarginClass;
|
|
116
|
+
interface TextDisplayProps extends React__default.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof textDisplayVariants> {
|
|
127
117
|
}
|
|
128
118
|
declare const TextDisplay: React__default.FC<TextDisplayProps>;
|
|
129
119
|
|
|
@@ -131,9 +121,8 @@ declare const textHeadingVariants: (props?: ({
|
|
|
131
121
|
variant?: "h1" | "h2" | "h3" | "h4" | null | undefined;
|
|
132
122
|
foreground?: "default" | "secondary" | "black" | "white" | "gray" | "primary" | "gradient" | null | undefined;
|
|
133
123
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
134
|
-
interface TextHeadingProps extends
|
|
124
|
+
interface TextHeadingProps extends React__default.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof textHeadingVariants> {
|
|
135
125
|
as?: "h1" | "h2" | "h3" | "h4";
|
|
136
|
-
className?: TailwindMarginClass;
|
|
137
126
|
}
|
|
138
127
|
declare const TextHeading: React__default.FC<TextHeadingProps>;
|
|
139
128
|
|
package/dist/main.js
CHANGED
|
@@ -21426,9 +21426,9 @@ var TextBody = ({
|
|
|
21426
21426
|
textBodyVariants({
|
|
21427
21427
|
size,
|
|
21428
21428
|
foreground,
|
|
21429
|
-
weight
|
|
21430
|
-
|
|
21431
|
-
|
|
21429
|
+
weight
|
|
21430
|
+
}),
|
|
21431
|
+
className
|
|
21432
21432
|
),
|
|
21433
21433
|
...props,
|
|
21434
21434
|
children
|
|
@@ -21476,9 +21476,9 @@ var TextDisplay = ({
|
|
|
21476
21476
|
textDisplayVariants({
|
|
21477
21477
|
size,
|
|
21478
21478
|
gradient,
|
|
21479
|
-
foreground
|
|
21480
|
-
|
|
21481
|
-
|
|
21479
|
+
foreground
|
|
21480
|
+
}),
|
|
21481
|
+
className
|
|
21482
21482
|
),
|
|
21483
21483
|
...props,
|
|
21484
21484
|
children
|
|
@@ -21525,7 +21525,7 @@ var TextHeading = ({
|
|
|
21525
21525
|
return /* @__PURE__ */ jsx(
|
|
21526
21526
|
Component2,
|
|
21527
21527
|
{
|
|
21528
|
-
className: cn(textHeadingVariants({ variant, foreground, className
|
|
21528
|
+
className: cn(textHeadingVariants({ variant, foreground }), className),
|
|
21529
21529
|
...props,
|
|
21530
21530
|
children
|
|
21531
21531
|
}
|