singularity-components 0.1.97 → 0.1.99
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 +134 -20
- package/dist/main.cjs.map +1 -1
- package/dist/main.css +176 -24
- package/dist/main.css.map +1 -1
- package/dist/main.d.cts +26 -5
- package/dist/main.d.ts +26 -5
- package/dist/main.js +126 -21
- package/dist/main.js.map +1 -1
- package/package.json +64 -64
package/dist/main.js
CHANGED
|
@@ -20945,6 +20945,13 @@ function Badge2({
|
|
|
20945
20945
|
}
|
|
20946
20946
|
);
|
|
20947
20947
|
}
|
|
20948
|
+
var Badges = ({
|
|
20949
|
+
children,
|
|
20950
|
+
className,
|
|
20951
|
+
...props
|
|
20952
|
+
}) => {
|
|
20953
|
+
return /* @__PURE__ */ jsx("div", { className: cn("sg:flex sg:flex-wrap sg:gap-2", className), ...props, children });
|
|
20954
|
+
};
|
|
20948
20955
|
var buttonVariants = cva(
|
|
20949
20956
|
"sg:inline-flex sg:items-center sg:justify-center sg:gap-2 sg:whitespace-nowrap sg:cursor-pointer sg:rounded-md sg:text-sm sg:font-medium sg:transition-all sg:disabled:pointer-events-none sg:disabled:opacity-50 sg:[&_svg]:pointer-events-none sg:[&_svg:not([class*=size-])]:size-4 sg:shrink-0 sg:[&_svg]:shrink-0 sg:outline-none sg:focus-visible:border-ring sg:focus-visible:ring-ring/50 sg:focus-visible:ring-[3px] sg:aria-invalid:ring-destructive/20 sg:dark:aria-invalid:ring-destructive/40 sg:aria-invalid:border-destructive",
|
|
20950
20957
|
{
|
|
@@ -21005,6 +21012,99 @@ function Button({
|
|
|
21005
21012
|
}
|
|
21006
21013
|
) });
|
|
21007
21014
|
}
|
|
21015
|
+
var Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
21016
|
+
"div",
|
|
21017
|
+
{
|
|
21018
|
+
ref,
|
|
21019
|
+
className: cn(
|
|
21020
|
+
"sg:rounded-xl sg:bg-card sg:text-card-foreground sg:group sg:overflow-hidden sg:border-0 sg:bg-gradient-to-br sg:from-background sg:to-background/60 sg:shadow-lg sg:ring-1 sg:ring-gray/60",
|
|
21021
|
+
className
|
|
21022
|
+
),
|
|
21023
|
+
...props
|
|
21024
|
+
}
|
|
21025
|
+
));
|
|
21026
|
+
Card.displayName = "Card";
|
|
21027
|
+
var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
21028
|
+
"div",
|
|
21029
|
+
{
|
|
21030
|
+
ref,
|
|
21031
|
+
className: cn("sg:flex sg:flex-col sg:space-y-1.5 sg:p-6", className),
|
|
21032
|
+
...props
|
|
21033
|
+
}
|
|
21034
|
+
));
|
|
21035
|
+
CardHeader.displayName = "CardHeader";
|
|
21036
|
+
var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
21037
|
+
"div",
|
|
21038
|
+
{
|
|
21039
|
+
ref,
|
|
21040
|
+
className: cn(
|
|
21041
|
+
"sg:font-semibold sg:leading-none sg:tracking-tight",
|
|
21042
|
+
className
|
|
21043
|
+
),
|
|
21044
|
+
...props
|
|
21045
|
+
}
|
|
21046
|
+
));
|
|
21047
|
+
CardTitle.displayName = "CardTitle";
|
|
21048
|
+
var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
21049
|
+
"div",
|
|
21050
|
+
{
|
|
21051
|
+
ref,
|
|
21052
|
+
className: cn("sg:text-sm sg:text-muted-foreground", className),
|
|
21053
|
+
...props
|
|
21054
|
+
}
|
|
21055
|
+
));
|
|
21056
|
+
CardDescription.displayName = "CardDescription";
|
|
21057
|
+
var CardImage = React.forwardRef(
|
|
21058
|
+
({ className, src, alt = "", ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
21059
|
+
"div",
|
|
21060
|
+
{
|
|
21061
|
+
ref,
|
|
21062
|
+
className: cn("sg:relative sg:h-48 sg:overflow-hidden", className),
|
|
21063
|
+
...props,
|
|
21064
|
+
children: [
|
|
21065
|
+
/* @__PURE__ */ jsx(
|
|
21066
|
+
"img",
|
|
21067
|
+
{
|
|
21068
|
+
src,
|
|
21069
|
+
alt,
|
|
21070
|
+
className: "sg:h-full sg:w-full sg:object-cover sg:transition-transform sg:duration-500 sg:group-hover:scale-105",
|
|
21071
|
+
loading: "lazy"
|
|
21072
|
+
}
|
|
21073
|
+
),
|
|
21074
|
+
/* @__PURE__ */ jsx("div", { className: "sg:absolute sg:inset-0 sg:bg-gradient-to-t sg:from-background/80 sg:to-transparent" })
|
|
21075
|
+
]
|
|
21076
|
+
}
|
|
21077
|
+
)
|
|
21078
|
+
);
|
|
21079
|
+
CardImage.displayName = "CardImage";
|
|
21080
|
+
var CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("sg:p-6 sg:pt-0", className), ...props }));
|
|
21081
|
+
CardContent.displayName = "CardContent";
|
|
21082
|
+
var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
21083
|
+
"div",
|
|
21084
|
+
{
|
|
21085
|
+
ref,
|
|
21086
|
+
className: cn("sg:flex sg:items-center sg:p-6 sg:pt-0", className),
|
|
21087
|
+
...props
|
|
21088
|
+
}
|
|
21089
|
+
));
|
|
21090
|
+
CardFooter.displayName = "CardFooter";
|
|
21091
|
+
var Cards = ({
|
|
21092
|
+
children,
|
|
21093
|
+
className,
|
|
21094
|
+
...props
|
|
21095
|
+
}) => {
|
|
21096
|
+
return /* @__PURE__ */ jsx(
|
|
21097
|
+
"div",
|
|
21098
|
+
{
|
|
21099
|
+
className: cn(
|
|
21100
|
+
"sg:grid sg:gap-6 sg:sm:grid-cols-2 sg:lg:grid-cols-3",
|
|
21101
|
+
className
|
|
21102
|
+
),
|
|
21103
|
+
...props,
|
|
21104
|
+
children
|
|
21105
|
+
}
|
|
21106
|
+
);
|
|
21107
|
+
};
|
|
21008
21108
|
var iconVariants = cva("", {
|
|
21009
21109
|
variants: {
|
|
21010
21110
|
size: {
|
|
@@ -21068,7 +21168,7 @@ var bgColor = {
|
|
|
21068
21168
|
black: "sg:bg-black",
|
|
21069
21169
|
orange: "sg:bg-orange",
|
|
21070
21170
|
purple: "sg:bg-purple",
|
|
21071
|
-
gradient: "sg:
|
|
21171
|
+
gradient: "sg:bg-[radial-gradient(1200px_300px_at_10%_-20%,hsl(var(--sg-gradient-1)/0.15),transparent),radial-gradient(800px_200px_at_90%_-20%,hsl(var(--sg-gradient-2)/0.15),transparent)]"
|
|
21072
21172
|
};
|
|
21073
21173
|
var layoutVariants = cva("sg:grid sg:grid-cols-1 sg:gap-4", {
|
|
21074
21174
|
variants: {
|
|
@@ -21134,8 +21234,8 @@ function Layout({
|
|
|
21134
21234
|
}
|
|
21135
21235
|
);
|
|
21136
21236
|
}
|
|
21137
|
-
function Col({ children, hideDiv }) {
|
|
21138
|
-
return hideDiv ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsx("div", { children });
|
|
21237
|
+
function Col({ children, hideDiv, className }) {
|
|
21238
|
+
return hideDiv ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsx("div", { className, children });
|
|
21139
21239
|
}
|
|
21140
21240
|
Layout.Col1 = Col;
|
|
21141
21241
|
Layout.Col2 = Col;
|
|
@@ -21435,12 +21535,22 @@ var TextBody = ({
|
|
|
21435
21535
|
}
|
|
21436
21536
|
);
|
|
21437
21537
|
};
|
|
21438
|
-
var textDisplayVariants = cva("sg:block sg:
|
|
21538
|
+
var textDisplayVariants = cva("sg:block sg:tracking-tight", {
|
|
21439
21539
|
variants: {
|
|
21440
21540
|
size: {
|
|
21441
|
-
|
|
21442
|
-
|
|
21443
|
-
|
|
21541
|
+
xs: "sg:text-xs",
|
|
21542
|
+
sm: "sg:text-sm",
|
|
21543
|
+
md: "sg:text-md",
|
|
21544
|
+
lg: "sg:text-lg",
|
|
21545
|
+
xl: "sg:text-xl",
|
|
21546
|
+
"2xl": "sg:text-2xl",
|
|
21547
|
+
"3xl": "sg:text-3xl"
|
|
21548
|
+
},
|
|
21549
|
+
weight: {
|
|
21550
|
+
normal: "sg:font-normal",
|
|
21551
|
+
medium: "sg:font-medium",
|
|
21552
|
+
semibold: "sg:font-semibold",
|
|
21553
|
+
bold: "sg:font-bold"
|
|
21444
21554
|
},
|
|
21445
21555
|
foreground: {
|
|
21446
21556
|
default: "sg:text-foreground",
|
|
@@ -21448,23 +21558,19 @@ var textDisplayVariants = cva("sg:block sg:font-bold sg:tracking-tight", {
|
|
|
21448
21558
|
white: "sg:text-white",
|
|
21449
21559
|
gray: "sg:text-gray",
|
|
21450
21560
|
primary: "sg:text-primary",
|
|
21451
|
-
secondary: "sg:text-secondary"
|
|
21452
|
-
|
|
21453
|
-
gradient: {
|
|
21454
|
-
none: "",
|
|
21455
|
-
true: "sg:text-transparent sg:bg-clip-text sg:bg-gradient-to-r sg:from-blue sg:via-orange sg:to-red"
|
|
21561
|
+
secondary: "sg:text-secondary",
|
|
21562
|
+
gradient: "sg:text-transparent sg:bg-clip-text sg:bg-gradient-to-r sg:from-blue sg:via-orange sg:to-red"
|
|
21456
21563
|
}
|
|
21457
21564
|
},
|
|
21458
21565
|
defaultVariants: {
|
|
21459
21566
|
size: "md",
|
|
21460
|
-
|
|
21461
|
-
|
|
21567
|
+
weight: "normal",
|
|
21568
|
+
foreground: "default"
|
|
21462
21569
|
}
|
|
21463
21570
|
});
|
|
21464
21571
|
var TextDisplay = ({
|
|
21465
21572
|
children,
|
|
21466
21573
|
size,
|
|
21467
|
-
gradient,
|
|
21468
21574
|
foreground,
|
|
21469
21575
|
className,
|
|
21470
21576
|
...props
|
|
@@ -21475,7 +21581,6 @@ var TextDisplay = ({
|
|
|
21475
21581
|
className: cn(
|
|
21476
21582
|
textDisplayVariants({
|
|
21477
21583
|
size,
|
|
21478
|
-
gradient,
|
|
21479
21584
|
foreground
|
|
21480
21585
|
}),
|
|
21481
21586
|
className
|
|
@@ -21488,10 +21593,10 @@ var TextDisplay = ({
|
|
|
21488
21593
|
var textHeadingVariants = cva("", {
|
|
21489
21594
|
variants: {
|
|
21490
21595
|
variant: {
|
|
21491
|
-
h1: "sg:text-
|
|
21492
|
-
h2: "sg:text-
|
|
21493
|
-
h3: "sg:text-
|
|
21494
|
-
h4: "sg:text-
|
|
21596
|
+
h1: "sg:text-xl sg:font-bold sg:tracking-tight sg:lg:text-4xl",
|
|
21597
|
+
h2: "sg:text-xl sg:font-semibold sg:tracking-tight sg:transition-colors sg:first:mt-0",
|
|
21598
|
+
h3: "sg:text-xl sg:font-semibold sg:tracking-tight",
|
|
21599
|
+
h4: "sg:text-lg sg:font-semibold sg:tracking-tight"
|
|
21495
21600
|
},
|
|
21496
21601
|
foreground: {
|
|
21497
21602
|
default: "sg:text-foreground",
|
|
@@ -34670,6 +34775,6 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
34670
34775
|
*)
|
|
34671
34776
|
*/
|
|
34672
34777
|
|
|
34673
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge2 as Badge, Button, Icon2 as Icon, Input, Layout, Separator, Skeleton, Spinner, Stack, Table3 as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TextBody, TextDisplay, TextHeading, badgeVariants, buttonVariants, iconVariants, layoutVariants, stackVariants };
|
|
34778
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge2 as Badge, Badges, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardImage, CardTitle, Cards, Icon2 as Icon, Input, Layout, Separator, Skeleton, Spinner, Stack, Table3 as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TextBody, TextDisplay, TextHeading, badgeVariants, buttonVariants, iconVariants, layoutVariants, stackVariants };
|
|
34674
34779
|
//# sourceMappingURL=main.js.map
|
|
34675
34780
|
//# sourceMappingURL=main.js.map
|