singularity-components 0.1.98 → 0.1.100
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 +136 -19
- package/dist/main.cjs.map +1 -1
- package/dist/main.css +249 -32
- package/dist/main.css.map +1 -1
- package/dist/main.d.cts +28 -7
- package/dist/main.d.ts +28 -7
- package/dist/main.js +128 -20
- 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: {
|
|
@@ -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;
|
|
@@ -21392,6 +21492,7 @@ var textBodyVariants = cva("", {
|
|
|
21392
21492
|
},
|
|
21393
21493
|
foreground: {
|
|
21394
21494
|
default: "sg:text-foreground",
|
|
21495
|
+
muted: "sg:text-muted-foreground",
|
|
21395
21496
|
black: "sg:text-black",
|
|
21396
21497
|
white: "sg:text-white",
|
|
21397
21498
|
gray: "sg:text-gray",
|
|
@@ -21435,36 +21536,43 @@ var TextBody = ({
|
|
|
21435
21536
|
}
|
|
21436
21537
|
);
|
|
21437
21538
|
};
|
|
21438
|
-
var textDisplayVariants = cva("sg:block sg:
|
|
21539
|
+
var textDisplayVariants = cva("sg:block sg:tracking-tight", {
|
|
21439
21540
|
variants: {
|
|
21440
21541
|
size: {
|
|
21441
|
-
|
|
21442
|
-
|
|
21443
|
-
|
|
21542
|
+
xs: "sg:text-xs",
|
|
21543
|
+
sm: "sg:text-sm",
|
|
21544
|
+
md: "sg:text-md",
|
|
21545
|
+
lg: "sg:text-lg",
|
|
21546
|
+
xl: "sg:text-xl",
|
|
21547
|
+
"2xl": "sg:text-2xl",
|
|
21548
|
+
"3xl": "sg:text-3xl"
|
|
21549
|
+
},
|
|
21550
|
+
weight: {
|
|
21551
|
+
normal: "sg:font-normal",
|
|
21552
|
+
medium: "sg:font-medium",
|
|
21553
|
+
semibold: "sg:font-semibold",
|
|
21554
|
+
bold: "sg:font-bold"
|
|
21444
21555
|
},
|
|
21445
21556
|
foreground: {
|
|
21446
21557
|
default: "sg:text-foreground",
|
|
21558
|
+
muted: "sg:text-muted-foreground",
|
|
21447
21559
|
black: "sg:text-black",
|
|
21448
21560
|
white: "sg:text-white",
|
|
21449
21561
|
gray: "sg:text-gray",
|
|
21450
21562
|
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"
|
|
21563
|
+
secondary: "sg:text-secondary",
|
|
21564
|
+
gradient: "sg:text-transparent sg:bg-clip-text sg:bg-gradient-to-r sg:from-blue sg:via-orange sg:to-red"
|
|
21456
21565
|
}
|
|
21457
21566
|
},
|
|
21458
21567
|
defaultVariants: {
|
|
21459
21568
|
size: "md",
|
|
21460
|
-
|
|
21461
|
-
|
|
21569
|
+
weight: "normal",
|
|
21570
|
+
foreground: "default"
|
|
21462
21571
|
}
|
|
21463
21572
|
});
|
|
21464
21573
|
var TextDisplay = ({
|
|
21465
21574
|
children,
|
|
21466
21575
|
size,
|
|
21467
|
-
gradient,
|
|
21468
21576
|
foreground,
|
|
21469
21577
|
className,
|
|
21470
21578
|
...props
|
|
@@ -21475,7 +21583,6 @@ var TextDisplay = ({
|
|
|
21475
21583
|
className: cn(
|
|
21476
21584
|
textDisplayVariants({
|
|
21477
21585
|
size,
|
|
21478
|
-
gradient,
|
|
21479
21586
|
foreground
|
|
21480
21587
|
}),
|
|
21481
21588
|
className
|
|
@@ -21488,13 +21595,14 @@ var TextDisplay = ({
|
|
|
21488
21595
|
var textHeadingVariants = cva("", {
|
|
21489
21596
|
variants: {
|
|
21490
21597
|
variant: {
|
|
21491
|
-
h1: "sg:text-
|
|
21492
|
-
h2: "sg:text-
|
|
21493
|
-
h3: "sg:text-
|
|
21494
|
-
h4: "sg:text-
|
|
21598
|
+
h1: "sg:text-xl sg:font-bold sg:tracking-tight sg:lg:text-4xl",
|
|
21599
|
+
h2: "sg:text-xl sg:font-semibold sg:tracking-tight sg:transition-colors sg:first:mt-0 sg:lg:text-3xl",
|
|
21600
|
+
h3: "sg:text-xl sg:font-semibold sg:tracking-tight sg:lg:text-2xl",
|
|
21601
|
+
h4: "sg:text-lg sg:font-semibold sg:tracking-tight"
|
|
21495
21602
|
},
|
|
21496
21603
|
foreground: {
|
|
21497
21604
|
default: "sg:text-foreground",
|
|
21605
|
+
muted: "sg:text-muted-foreground",
|
|
21498
21606
|
black: "sg:text-black",
|
|
21499
21607
|
white: "sg:text-white",
|
|
21500
21608
|
gray: "sg:text-gray",
|
|
@@ -34670,6 +34778,6 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
34670
34778
|
*)
|
|
34671
34779
|
*/
|
|
34672
34780
|
|
|
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 };
|
|
34781
|
+
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
34782
|
//# sourceMappingURL=main.js.map
|
|
34675
34783
|
//# sourceMappingURL=main.js.map
|