singularity-components 0.1.80 → 0.1.82
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 +43 -31
- package/dist/main.cjs.map +1 -1
- package/dist/main.css +349 -0
- package/dist/main.css.map +1 -1
- package/dist/main.d.cts +9 -7
- package/dist/main.d.ts +9 -7
- package/dist/main.js +44 -32
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -20032,10 +20032,22 @@ var __iconNode1609 = [
|
|
|
20032
20032
|
];
|
|
20033
20033
|
var ZoomOut = createLucideIcon("zoom-out", __iconNode1609);
|
|
20034
20034
|
function cn(...inputs) {
|
|
20035
|
-
const
|
|
20036
|
-
|
|
20037
|
-
|
|
20038
|
-
|
|
20035
|
+
const classString = clsx2.clsx(inputs);
|
|
20036
|
+
const allOriginalClasses = classString.split(/\s+/).filter(Boolean);
|
|
20037
|
+
const prefixedClasses = allOriginalClasses.filter((c) => c.startsWith("sg:"));
|
|
20038
|
+
const unprefixedClasses = allOriginalClasses.filter(
|
|
20039
|
+
(c) => !c.startsWith("sg:")
|
|
20040
|
+
);
|
|
20041
|
+
const allClassesWithRemovedPrefix = allOriginalClasses.map(
|
|
20042
|
+
(c) => c.replace("sg:", "")
|
|
20043
|
+
);
|
|
20044
|
+
const mergedClasses = tailwindMerge.twMerge(allClassesWithRemovedPrefix).split(/\s+/).filter(Boolean);
|
|
20045
|
+
return mergedClasses.map((c) => {
|
|
20046
|
+
if (prefixedClasses.includes("sg:" + c) && !unprefixedClasses.includes(c)) {
|
|
20047
|
+
return "sg:" + c;
|
|
20048
|
+
}
|
|
20049
|
+
return c;
|
|
20050
|
+
}).join(" ");
|
|
20039
20051
|
}
|
|
20040
20052
|
function Accordion({
|
|
20041
20053
|
...props
|
|
@@ -20050,7 +20062,7 @@ function AccordionItem({
|
|
|
20050
20062
|
AccordionPrimitive__namespace.Item,
|
|
20051
20063
|
{
|
|
20052
20064
|
"data-slot": "accordion-item",
|
|
20053
|
-
className: cn("sg:border-b last:
|
|
20065
|
+
className: cn("sg:border-b sg:last:border-b-0", className),
|
|
20054
20066
|
...props
|
|
20055
20067
|
}
|
|
20056
20068
|
);
|
|
@@ -20065,7 +20077,7 @@ function AccordionTrigger({
|
|
|
20065
20077
|
{
|
|
20066
20078
|
"data-slot": "accordion-trigger",
|
|
20067
20079
|
className: cn(
|
|
20068
|
-
"focus-visible:
|
|
20080
|
+
"sg:focus-visible:border-ring sg:focus-visible:ring-ring/50 sg:flex sg:flex-1 sg:items-start sg:justify-between sg:gap-4 sg:rounded-md sg:py-4 sg:text-left sg:text-sm sg:font-medium sg:transition-all sg:outline-none sg:hover:underline sg:focus-visible:ring-[3px] sg:disabled:pointer-events-none sg:disabled:opacity-50 sg:[&[data-state=open]>svg]:rotate-180",
|
|
20069
20081
|
className
|
|
20070
20082
|
),
|
|
20071
20083
|
...props,
|
|
@@ -20085,7 +20097,7 @@ function AccordionContent({
|
|
|
20085
20097
|
AccordionPrimitive__namespace.Content,
|
|
20086
20098
|
{
|
|
20087
20099
|
"data-slot": "accordion-content",
|
|
20088
|
-
className: "data-[state=closed]:
|
|
20100
|
+
className: "sg:data-[state=closed]:animate-accordion-up sg:data-[state=open]:animate-accordion-down sg:overflow-hidden sg:text-sm",
|
|
20089
20101
|
...props,
|
|
20090
20102
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("sg:pt-0 sg:pb-4", className), children })
|
|
20091
20103
|
}
|
|
@@ -20150,14 +20162,14 @@ function AlertDescription({
|
|
|
20150
20162
|
);
|
|
20151
20163
|
}
|
|
20152
20164
|
var badgeVariants = classVarianceAuthority.cva(
|
|
20153
|
-
"sg:inline-flex sg:items-center sg:justify-center sg:rounded-md sg:border sg:px-2 sg:py-0.5 sg:text-xs sg:font-medium sg:w-fit sg:whitespace-nowrap sg:shrink-0 [&>svg]:
|
|
20165
|
+
"sg:inline-flex sg:items-center sg:justify-center sg:rounded-md sg:border sg:px-2 sg:py-0.5 sg:text-xs sg:font-medium sg:w-fit sg:whitespace-nowrap sg:shrink-0 sg:[&>svg]:size-3 sg:gap-1 sg:[&>svg]:pointer-events-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 sg:transition-[color,box-shadow] sg:overflow-hidden",
|
|
20154
20166
|
{
|
|
20155
20167
|
variants: {
|
|
20156
20168
|
variant: {
|
|
20157
|
-
default: "sg:border-transparent sg:bg-primary sg:text-primary-foreground [a&]:hover:
|
|
20158
|
-
secondary: "sg:border-transparent sg:bg-secondary sg:text-secondary-foreground [a&]:hover:
|
|
20159
|
-
destructive: "sg:border-transparent sg:bg-destructive sg:text-white [a&]:hover:
|
|
20160
|
-
outline: "sg:text-foreground [a&]:hover:
|
|
20169
|
+
default: "sg:border-transparent sg:bg-primary sg:text-primary-foreground sg:[a&]:hover:bg-primary/90",
|
|
20170
|
+
secondary: "sg:border-transparent sg:bg-secondary sg:text-secondary-foreground sg:[a&]:hover:bg-secondary/90",
|
|
20171
|
+
destructive: "sg:border-transparent sg:bg-destructive sg:text-white sg:[a&]:hover:bg-destructive/90 sg:focus-visible:ring-destructive/20 sg:dark:focus-visible:ring-destructive/40 sg:dark:bg-destructive/60",
|
|
20172
|
+
outline: "sg:text-foreground sg:[a&]:hover:bg-accent sg:[a&]:hover:text-accent-foreground"
|
|
20161
20173
|
}
|
|
20162
20174
|
},
|
|
20163
20175
|
defaultVariants: {
|
|
@@ -20182,21 +20194,21 @@ function Badge2({
|
|
|
20182
20194
|
);
|
|
20183
20195
|
}
|
|
20184
20196
|
var buttonVariants = classVarianceAuthority.cva(
|
|
20185
|
-
"sg:inline-flex sg:items-center sg:justify-center sg:gap-2 sg:whitespace-nowrap sg:rounded-md sg:text-sm sg:font-medium sg:transition-all disabled:
|
|
20197
|
+
"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",
|
|
20186
20198
|
{
|
|
20187
20199
|
variants: {
|
|
20188
20200
|
variant: {
|
|
20189
|
-
default: "sg:bg-primary sg:text-primary-foreground sg:shadow-xs hover:
|
|
20190
|
-
destructive: "sg:bg-destructive sg:text-white sg:shadow-xs hover:
|
|
20191
|
-
outline: "sg:border sg:bg-background sg:shadow-xs hover:
|
|
20192
|
-
secondary: "sg:bg-secondary sg:text-secondary-foreground sg:shadow-xs hover:
|
|
20193
|
-
ghost: "hover:
|
|
20194
|
-
link: "sg:text-primary sg:underline-offset-4 hover:
|
|
20201
|
+
default: "sg:bg-primary sg:text-primary-foreground sg:shadow-xs sg:hover:bg-primary/90",
|
|
20202
|
+
destructive: "sg:bg-destructive sg:text-white sg:shadow-xs sg:hover:bg-destructive/90 sg:focus-visible:ring-destructive/20 sg:dark:focus-visible:ring-destructive/40 sg:dark:bg-destructive/60",
|
|
20203
|
+
outline: "sg:border sg:bg-background sg:shadow-xs sg:hover:bg-accent sg:hover:text-accent-foreground sg:dark:bg-input/30 sg:dark:border-input sg:dark:hover:bg-input/50",
|
|
20204
|
+
secondary: "sg:bg-secondary sg:text-secondary-foreground sg:shadow-xs sg:hover:bg-secondary/80",
|
|
20205
|
+
ghost: "sg:hover:bg-accent sg:hover:text-accent-foreground sg:dark:hover:bg-accent/50",
|
|
20206
|
+
link: "sg:text-primary sg:underline-offset-4 sg:hover:underline"
|
|
20195
20207
|
},
|
|
20196
20208
|
size: {
|
|
20197
|
-
default: "sg:h-9 sg:px-4 sg:py-2 has-[>svg]:
|
|
20198
|
-
sm: "sg:h-8 sg:rounded-md sg:gap-1.5 sg:px-3 has-[>svg]:
|
|
20199
|
-
lg: "sg:h-10 sg:rounded-md sg:px-6 has-[>svg]:
|
|
20209
|
+
default: "sg:h-9 sg:px-4 sg:py-2 sg:has-[>svg]:px-3",
|
|
20210
|
+
sm: "sg:h-8 sg:rounded-md sg:gap-1.5 sg:px-3 sg:has-[>svg]:px-2.5",
|
|
20211
|
+
lg: "sg:h-10 sg:rounded-md sg:px-6 sg:has-[>svg]:px-4",
|
|
20200
20212
|
icon: "sg:size-9"
|
|
20201
20213
|
}
|
|
20202
20214
|
},
|
|
@@ -20319,9 +20331,9 @@ function Input({ className, type, ...props }) {
|
|
|
20319
20331
|
type,
|
|
20320
20332
|
"data-slot": "input",
|
|
20321
20333
|
className: cn(
|
|
20322
|
-
"file:
|
|
20323
|
-
"focus-visible:
|
|
20324
|
-
"aria-invalid:
|
|
20334
|
+
"sg:file:text-foreground sg:placeholder:text-muted-foreground sg:selection:bg-primary sg:selection:text-primary-foreground sg:dark:bg-input/30 sg:border-input sg:flex sg:h-9 sg:w-full sg:min-w-0 sg:rounded-md sg:border sg:bg-transparent sg:px-3 sg:py-1 sg:text-base sg:shadow-xs sg:transition-[color,box-shadow] sg:outline-none sg:file:inline-flex sg:file:h-7 sg:file:border-0 sg:file:bg-transparent sg:file:text-sm sg:file:font-medium sg:disabled:pointer-events-none sg:disabled:cursor-not-allowed sg:disabled:opacity-50 sg:md:text-sm",
|
|
20335
|
+
"sg:focus-visible:border-ring sg:focus-visible:ring-ring/50 sg:focus-visible:ring-[3px]",
|
|
20336
|
+
"sg:aria-invalid:ring-destructive/20 sg:dark:aria-invalid:ring-destructive/40 sg:aria-invalid:border-destructive",
|
|
20325
20337
|
className
|
|
20326
20338
|
),
|
|
20327
20339
|
...props
|
|
@@ -20466,7 +20478,7 @@ function TableHeader({ className, ...props }) {
|
|
|
20466
20478
|
"thead",
|
|
20467
20479
|
{
|
|
20468
20480
|
"data-slot": "table-header",
|
|
20469
|
-
className: cn("[&_tr]:
|
|
20481
|
+
className: cn("sg:[&_tr]:border-b", className),
|
|
20470
20482
|
...props
|
|
20471
20483
|
}
|
|
20472
20484
|
);
|
|
@@ -20476,7 +20488,7 @@ function TableBody({ className, ...props }) {
|
|
|
20476
20488
|
"tbody",
|
|
20477
20489
|
{
|
|
20478
20490
|
"data-slot": "table-body",
|
|
20479
|
-
className: cn("[&_tr:last-child]:
|
|
20491
|
+
className: cn("sg:[&_tr:last-child]:border-0", className),
|
|
20480
20492
|
...props
|
|
20481
20493
|
}
|
|
20482
20494
|
);
|
|
@@ -20487,7 +20499,7 @@ function TableFooter({ className, ...props }) {
|
|
|
20487
20499
|
{
|
|
20488
20500
|
"data-slot": "table-footer",
|
|
20489
20501
|
className: cn(
|
|
20490
|
-
"sg:bg-muted/50 sg:border-t sg:font-medium [&>tr]:last:
|
|
20502
|
+
"sg:bg-muted/50 sg:border-t sg:font-medium sg:[&>tr]:last:border-b-0",
|
|
20491
20503
|
className
|
|
20492
20504
|
),
|
|
20493
20505
|
...props
|
|
@@ -20500,7 +20512,7 @@ function TableRow({ className, ...props }) {
|
|
|
20500
20512
|
{
|
|
20501
20513
|
"data-slot": "table-row",
|
|
20502
20514
|
className: cn(
|
|
20503
|
-
"hover:
|
|
20515
|
+
"sg:hover:bg-muted/50 sg:data-[state=selected]:bg-muted sg:border-b sg:transition-colors",
|
|
20504
20516
|
className
|
|
20505
20517
|
),
|
|
20506
20518
|
...props
|
|
@@ -20513,7 +20525,7 @@ function TableHead({ className, ...props }) {
|
|
|
20513
20525
|
{
|
|
20514
20526
|
"data-slot": "table-head",
|
|
20515
20527
|
className: cn(
|
|
20516
|
-
"sg:text-foreground sg:h-10 sg:px-2 sg:text-left sg:align-middle sg:font-medium sg:whitespace-nowrap [&:has([role=checkbox])]:
|
|
20528
|
+
"sg:text-foreground sg:h-10 sg:px-2 sg:text-left sg:align-middle sg:font-medium sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]",
|
|
20517
20529
|
className
|
|
20518
20530
|
),
|
|
20519
20531
|
...props
|
|
@@ -20526,7 +20538,7 @@ function TableCell({ className, ...props }) {
|
|
|
20526
20538
|
{
|
|
20527
20539
|
"data-slot": "table-cell",
|
|
20528
20540
|
className: cn(
|
|
20529
|
-
"sg:p-2 sg:align-middle sg:whitespace-nowrap [&:has([role=checkbox])]:
|
|
20541
|
+
"sg:p-2 sg:align-middle sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]",
|
|
20530
20542
|
className
|
|
20531
20543
|
),
|
|
20532
20544
|
...props
|