singularity-components 0.1.98 → 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 +133 -19
- package/dist/main.cjs.map +1 -1
- package/dist/main.css +176 -21
- 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 +125 -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;
|
|
@@ -21461,12 +21561,22 @@ var TextBody = ({
|
|
|
21461
21561
|
}
|
|
21462
21562
|
);
|
|
21463
21563
|
};
|
|
21464
|
-
var textDisplayVariants = classVarianceAuthority.cva("sg:block sg:
|
|
21564
|
+
var textDisplayVariants = classVarianceAuthority.cva("sg:block sg:tracking-tight", {
|
|
21465
21565
|
variants: {
|
|
21466
21566
|
size: {
|
|
21467
|
-
|
|
21468
|
-
|
|
21469
|
-
|
|
21567
|
+
xs: "sg:text-xs",
|
|
21568
|
+
sm: "sg:text-sm",
|
|
21569
|
+
md: "sg:text-md",
|
|
21570
|
+
lg: "sg:text-lg",
|
|
21571
|
+
xl: "sg:text-xl",
|
|
21572
|
+
"2xl": "sg:text-2xl",
|
|
21573
|
+
"3xl": "sg:text-3xl"
|
|
21574
|
+
},
|
|
21575
|
+
weight: {
|
|
21576
|
+
normal: "sg:font-normal",
|
|
21577
|
+
medium: "sg:font-medium",
|
|
21578
|
+
semibold: "sg:font-semibold",
|
|
21579
|
+
bold: "sg:font-bold"
|
|
21470
21580
|
},
|
|
21471
21581
|
foreground: {
|
|
21472
21582
|
default: "sg:text-foreground",
|
|
@@ -21474,23 +21584,19 @@ var textDisplayVariants = classVarianceAuthority.cva("sg:block sg:font-bold sg:t
|
|
|
21474
21584
|
white: "sg:text-white",
|
|
21475
21585
|
gray: "sg:text-gray",
|
|
21476
21586
|
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"
|
|
21587
|
+
secondary: "sg:text-secondary",
|
|
21588
|
+
gradient: "sg:text-transparent sg:bg-clip-text sg:bg-gradient-to-r sg:from-blue sg:via-orange sg:to-red"
|
|
21482
21589
|
}
|
|
21483
21590
|
},
|
|
21484
21591
|
defaultVariants: {
|
|
21485
21592
|
size: "md",
|
|
21486
|
-
|
|
21487
|
-
|
|
21593
|
+
weight: "normal",
|
|
21594
|
+
foreground: "default"
|
|
21488
21595
|
}
|
|
21489
21596
|
});
|
|
21490
21597
|
var TextDisplay = ({
|
|
21491
21598
|
children,
|
|
21492
21599
|
size,
|
|
21493
|
-
gradient,
|
|
21494
21600
|
foreground,
|
|
21495
21601
|
className,
|
|
21496
21602
|
...props
|
|
@@ -21501,7 +21607,6 @@ var TextDisplay = ({
|
|
|
21501
21607
|
className: cn(
|
|
21502
21608
|
textDisplayVariants({
|
|
21503
21609
|
size,
|
|
21504
|
-
gradient,
|
|
21505
21610
|
foreground
|
|
21506
21611
|
}),
|
|
21507
21612
|
className
|
|
@@ -21514,10 +21619,10 @@ var TextDisplay = ({
|
|
|
21514
21619
|
var textHeadingVariants = classVarianceAuthority.cva("", {
|
|
21515
21620
|
variants: {
|
|
21516
21621
|
variant: {
|
|
21517
|
-
h1: "sg:text-
|
|
21518
|
-
h2: "sg:text-
|
|
21519
|
-
h3: "sg:text-
|
|
21520
|
-
h4: "sg:text-
|
|
21622
|
+
h1: "sg:text-xl sg:font-bold sg:tracking-tight sg:lg:text-4xl",
|
|
21623
|
+
h2: "sg:text-xl sg:font-semibold sg:tracking-tight sg:transition-colors sg:first:mt-0",
|
|
21624
|
+
h3: "sg:text-xl sg:font-semibold sg:tracking-tight",
|
|
21625
|
+
h4: "sg:text-lg sg:font-semibold sg:tracking-tight"
|
|
21521
21626
|
},
|
|
21522
21627
|
foreground: {
|
|
21523
21628
|
default: "sg:text-foreground",
|
|
@@ -34704,7 +34809,16 @@ exports.Alert = Alert;
|
|
|
34704
34809
|
exports.AlertDescription = AlertDescription;
|
|
34705
34810
|
exports.AlertTitle = AlertTitle;
|
|
34706
34811
|
exports.Badge = Badge2;
|
|
34812
|
+
exports.Badges = Badges;
|
|
34707
34813
|
exports.Button = Button;
|
|
34814
|
+
exports.Card = Card;
|
|
34815
|
+
exports.CardContent = CardContent;
|
|
34816
|
+
exports.CardDescription = CardDescription;
|
|
34817
|
+
exports.CardFooter = CardFooter;
|
|
34818
|
+
exports.CardHeader = CardHeader;
|
|
34819
|
+
exports.CardImage = CardImage;
|
|
34820
|
+
exports.CardTitle = CardTitle;
|
|
34821
|
+
exports.Cards = Cards;
|
|
34708
34822
|
exports.Icon = Icon2;
|
|
34709
34823
|
exports.Input = Input;
|
|
34710
34824
|
exports.Layout = Layout;
|