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.cjs
CHANGED
|
@@ -20971,6 +20971,13 @@ function Badge2({
|
|
|
20971
20971
|
}
|
|
20972
20972
|
);
|
|
20973
20973
|
}
|
|
20974
|
+
var Badges = ({
|
|
20975
|
+
children,
|
|
20976
|
+
className,
|
|
20977
|
+
...props
|
|
20978
|
+
}) => {
|
|
20979
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("sg:flex sg:flex-wrap sg:gap-2", className), ...props, children });
|
|
20980
|
+
};
|
|
20974
20981
|
var buttonVariants = classVarianceAuthority.cva(
|
|
20975
20982
|
"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",
|
|
20976
20983
|
{
|
|
@@ -21031,6 +21038,99 @@ function Button({
|
|
|
21031
21038
|
}
|
|
21032
21039
|
) });
|
|
21033
21040
|
}
|
|
21041
|
+
var Card = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
21042
|
+
"div",
|
|
21043
|
+
{
|
|
21044
|
+
ref,
|
|
21045
|
+
className: cn(
|
|
21046
|
+
"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",
|
|
21047
|
+
className
|
|
21048
|
+
),
|
|
21049
|
+
...props
|
|
21050
|
+
}
|
|
21051
|
+
));
|
|
21052
|
+
Card.displayName = "Card";
|
|
21053
|
+
var CardHeader = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
21054
|
+
"div",
|
|
21055
|
+
{
|
|
21056
|
+
ref,
|
|
21057
|
+
className: cn("sg:flex sg:flex-col sg:space-y-1.5 sg:p-6", className),
|
|
21058
|
+
...props
|
|
21059
|
+
}
|
|
21060
|
+
));
|
|
21061
|
+
CardHeader.displayName = "CardHeader";
|
|
21062
|
+
var CardTitle = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
21063
|
+
"div",
|
|
21064
|
+
{
|
|
21065
|
+
ref,
|
|
21066
|
+
className: cn(
|
|
21067
|
+
"sg:font-semibold sg:leading-none sg:tracking-tight",
|
|
21068
|
+
className
|
|
21069
|
+
),
|
|
21070
|
+
...props
|
|
21071
|
+
}
|
|
21072
|
+
));
|
|
21073
|
+
CardTitle.displayName = "CardTitle";
|
|
21074
|
+
var CardDescription = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
21075
|
+
"div",
|
|
21076
|
+
{
|
|
21077
|
+
ref,
|
|
21078
|
+
className: cn("sg:text-sm sg:text-muted-foreground", className),
|
|
21079
|
+
...props
|
|
21080
|
+
}
|
|
21081
|
+
));
|
|
21082
|
+
CardDescription.displayName = "CardDescription";
|
|
21083
|
+
var CardImage = React__namespace.forwardRef(
|
|
21084
|
+
({ className, src, alt = "", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21085
|
+
"div",
|
|
21086
|
+
{
|
|
21087
|
+
ref,
|
|
21088
|
+
className: cn("sg:relative sg:h-48 sg:overflow-hidden", className),
|
|
21089
|
+
...props,
|
|
21090
|
+
children: [
|
|
21091
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21092
|
+
"img",
|
|
21093
|
+
{
|
|
21094
|
+
src,
|
|
21095
|
+
alt,
|
|
21096
|
+
className: "sg:h-full sg:w-full sg:object-cover sg:transition-transform sg:duration-500 sg:group-hover:scale-105",
|
|
21097
|
+
loading: "lazy"
|
|
21098
|
+
}
|
|
21099
|
+
),
|
|
21100
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg:absolute sg:inset-0 sg:bg-gradient-to-t sg:from-background/80 sg:to-transparent" })
|
|
21101
|
+
]
|
|
21102
|
+
}
|
|
21103
|
+
)
|
|
21104
|
+
);
|
|
21105
|
+
CardImage.displayName = "CardImage";
|
|
21106
|
+
var CardContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("sg:p-6 sg:pt-0", className), ...props }));
|
|
21107
|
+
CardContent.displayName = "CardContent";
|
|
21108
|
+
var CardFooter = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
21109
|
+
"div",
|
|
21110
|
+
{
|
|
21111
|
+
ref,
|
|
21112
|
+
className: cn("sg:flex sg:items-center sg:p-6 sg:pt-0", className),
|
|
21113
|
+
...props
|
|
21114
|
+
}
|
|
21115
|
+
));
|
|
21116
|
+
CardFooter.displayName = "CardFooter";
|
|
21117
|
+
var Cards = ({
|
|
21118
|
+
children,
|
|
21119
|
+
className,
|
|
21120
|
+
...props
|
|
21121
|
+
}) => {
|
|
21122
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21123
|
+
"div",
|
|
21124
|
+
{
|
|
21125
|
+
className: cn(
|
|
21126
|
+
"sg:grid sg:gap-6 sg:sm:grid-cols-2 sg:lg:grid-cols-3",
|
|
21127
|
+
className
|
|
21128
|
+
),
|
|
21129
|
+
...props,
|
|
21130
|
+
children
|
|
21131
|
+
}
|
|
21132
|
+
);
|
|
21133
|
+
};
|
|
21034
21134
|
var iconVariants = classVarianceAuthority.cva("", {
|
|
21035
21135
|
variants: {
|
|
21036
21136
|
size: {
|
|
@@ -21160,8 +21260,8 @@ function Layout({
|
|
|
21160
21260
|
}
|
|
21161
21261
|
);
|
|
21162
21262
|
}
|
|
21163
|
-
function Col({ children, hideDiv }) {
|
|
21164
|
-
return hideDiv ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children }) : /* @__PURE__ */ jsxRuntime.jsx("div", { children });
|
|
21263
|
+
function Col({ children, hideDiv, className }) {
|
|
21264
|
+
return hideDiv ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className, children });
|
|
21165
21265
|
}
|
|
21166
21266
|
Layout.Col1 = Col;
|
|
21167
21267
|
Layout.Col2 = Col;
|
|
@@ -21418,6 +21518,7 @@ var textBodyVariants = classVarianceAuthority.cva("", {
|
|
|
21418
21518
|
},
|
|
21419
21519
|
foreground: {
|
|
21420
21520
|
default: "sg:text-foreground",
|
|
21521
|
+
muted: "sg:text-muted-foreground",
|
|
21421
21522
|
black: "sg:text-black",
|
|
21422
21523
|
white: "sg:text-white",
|
|
21423
21524
|
gray: "sg:text-gray",
|
|
@@ -21461,36 +21562,43 @@ var TextBody = ({
|
|
|
21461
21562
|
}
|
|
21462
21563
|
);
|
|
21463
21564
|
};
|
|
21464
|
-
var textDisplayVariants = classVarianceAuthority.cva("sg:block sg:
|
|
21565
|
+
var textDisplayVariants = classVarianceAuthority.cva("sg:block sg:tracking-tight", {
|
|
21465
21566
|
variants: {
|
|
21466
21567
|
size: {
|
|
21467
|
-
|
|
21468
|
-
|
|
21469
|
-
|
|
21568
|
+
xs: "sg:text-xs",
|
|
21569
|
+
sm: "sg:text-sm",
|
|
21570
|
+
md: "sg:text-md",
|
|
21571
|
+
lg: "sg:text-lg",
|
|
21572
|
+
xl: "sg:text-xl",
|
|
21573
|
+
"2xl": "sg:text-2xl",
|
|
21574
|
+
"3xl": "sg:text-3xl"
|
|
21575
|
+
},
|
|
21576
|
+
weight: {
|
|
21577
|
+
normal: "sg:font-normal",
|
|
21578
|
+
medium: "sg:font-medium",
|
|
21579
|
+
semibold: "sg:font-semibold",
|
|
21580
|
+
bold: "sg:font-bold"
|
|
21470
21581
|
},
|
|
21471
21582
|
foreground: {
|
|
21472
21583
|
default: "sg:text-foreground",
|
|
21584
|
+
muted: "sg:text-muted-foreground",
|
|
21473
21585
|
black: "sg:text-black",
|
|
21474
21586
|
white: "sg:text-white",
|
|
21475
21587
|
gray: "sg:text-gray",
|
|
21476
21588
|
primary: "sg:text-primary",
|
|
21477
|
-
secondary: "sg:text-secondary"
|
|
21478
|
-
|
|
21479
|
-
gradient: {
|
|
21480
|
-
none: "",
|
|
21481
|
-
true: "sg:text-transparent sg:bg-clip-text sg:bg-gradient-to-r sg:from-blue sg:via-orange sg:to-red"
|
|
21589
|
+
secondary: "sg:text-secondary",
|
|
21590
|
+
gradient: "sg:text-transparent sg:bg-clip-text sg:bg-gradient-to-r sg:from-blue sg:via-orange sg:to-red"
|
|
21482
21591
|
}
|
|
21483
21592
|
},
|
|
21484
21593
|
defaultVariants: {
|
|
21485
21594
|
size: "md",
|
|
21486
|
-
|
|
21487
|
-
|
|
21595
|
+
weight: "normal",
|
|
21596
|
+
foreground: "default"
|
|
21488
21597
|
}
|
|
21489
21598
|
});
|
|
21490
21599
|
var TextDisplay = ({
|
|
21491
21600
|
children,
|
|
21492
21601
|
size,
|
|
21493
|
-
gradient,
|
|
21494
21602
|
foreground,
|
|
21495
21603
|
className,
|
|
21496
21604
|
...props
|
|
@@ -21501,7 +21609,6 @@ var TextDisplay = ({
|
|
|
21501
21609
|
className: cn(
|
|
21502
21610
|
textDisplayVariants({
|
|
21503
21611
|
size,
|
|
21504
|
-
gradient,
|
|
21505
21612
|
foreground
|
|
21506
21613
|
}),
|
|
21507
21614
|
className
|
|
@@ -21514,13 +21621,14 @@ var TextDisplay = ({
|
|
|
21514
21621
|
var textHeadingVariants = classVarianceAuthority.cva("", {
|
|
21515
21622
|
variants: {
|
|
21516
21623
|
variant: {
|
|
21517
|
-
h1: "sg:text-
|
|
21518
|
-
h2: "sg:text-
|
|
21519
|
-
h3: "sg:text-
|
|
21520
|
-
h4: "sg:text-
|
|
21624
|
+
h1: "sg:text-xl sg:font-bold sg:tracking-tight sg:lg:text-4xl",
|
|
21625
|
+
h2: "sg:text-xl sg:font-semibold sg:tracking-tight sg:transition-colors sg:first:mt-0 sg:lg:text-3xl",
|
|
21626
|
+
h3: "sg:text-xl sg:font-semibold sg:tracking-tight sg:lg:text-2xl",
|
|
21627
|
+
h4: "sg:text-lg sg:font-semibold sg:tracking-tight"
|
|
21521
21628
|
},
|
|
21522
21629
|
foreground: {
|
|
21523
21630
|
default: "sg:text-foreground",
|
|
21631
|
+
muted: "sg:text-muted-foreground",
|
|
21524
21632
|
black: "sg:text-black",
|
|
21525
21633
|
white: "sg:text-white",
|
|
21526
21634
|
gray: "sg:text-gray",
|
|
@@ -34704,7 +34812,16 @@ exports.Alert = Alert;
|
|
|
34704
34812
|
exports.AlertDescription = AlertDescription;
|
|
34705
34813
|
exports.AlertTitle = AlertTitle;
|
|
34706
34814
|
exports.Badge = Badge2;
|
|
34815
|
+
exports.Badges = Badges;
|
|
34707
34816
|
exports.Button = Button;
|
|
34817
|
+
exports.Card = Card;
|
|
34818
|
+
exports.CardContent = CardContent;
|
|
34819
|
+
exports.CardDescription = CardDescription;
|
|
34820
|
+
exports.CardFooter = CardFooter;
|
|
34821
|
+
exports.CardHeader = CardHeader;
|
|
34822
|
+
exports.CardImage = CardImage;
|
|
34823
|
+
exports.CardTitle = CardTitle;
|
|
34824
|
+
exports.Cards = Cards;
|
|
34708
34825
|
exports.Icon = Icon2;
|
|
34709
34826
|
exports.Input = Input;
|
|
34710
34827
|
exports.Layout = Layout;
|