@j3m-quantum/ui 0.7.10 → 0.7.11
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/index.cjs +27 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +27 -21
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +130 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -716,7 +716,7 @@ function NativeSelect({ className, ...props }) {
|
|
|
716
716
|
{
|
|
717
717
|
"data-slot": "native-select",
|
|
718
718
|
className: cn(
|
|
719
|
-
"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-
|
|
719
|
+
"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground bg-background dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-full border px-4 py-2 pr-10 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
|
|
720
720
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
721
721
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
722
722
|
className
|
|
@@ -727,7 +727,7 @@ function NativeSelect({ className, ...props }) {
|
|
|
727
727
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
728
728
|
lucideReact.ChevronDownIcon,
|
|
729
729
|
{
|
|
730
|
-
className: "text-muted-foreground pointer-events-none absolute top-1/2 right-
|
|
730
|
+
className: "text-muted-foreground pointer-events-none absolute top-1/2 right-4 size-4 -translate-y-1/2 opacity-50 select-none",
|
|
731
731
|
"aria-hidden": "true",
|
|
732
732
|
"data-slot": "native-select-icon"
|
|
733
733
|
}
|
|
@@ -753,7 +753,7 @@ function NativeSelectOptGroup({
|
|
|
753
753
|
);
|
|
754
754
|
}
|
|
755
755
|
var toggleVariants = classVarianceAuthority.cva(
|
|
756
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-
|
|
756
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
757
757
|
{
|
|
758
758
|
variants: {
|
|
759
759
|
variant: {
|
|
@@ -887,7 +887,7 @@ function InputOTPSlot({
|
|
|
887
887
|
"data-slot": "input-otp-slot",
|
|
888
888
|
"data-active": isActive,
|
|
889
889
|
className: cn(
|
|
890
|
-
"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive
|
|
890
|
+
"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive bg-background border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-full first:border-l last:rounded-r-full data-[active=true]:z-10 data-[active=true]:ring-[3px]",
|
|
891
891
|
className
|
|
892
892
|
),
|
|
893
893
|
...props,
|
|
@@ -1419,7 +1419,7 @@ var badgeVariants = classVarianceAuthority.cva(
|
|
|
1419
1419
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
1420
1420
|
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
1421
1421
|
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
1422
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
1422
|
+
outline: "bg-background text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
1423
1423
|
}
|
|
1424
1424
|
},
|
|
1425
1425
|
defaultVariants: {
|
|
@@ -1615,7 +1615,6 @@ function Calendar({
|
|
|
1615
1615
|
classNames,
|
|
1616
1616
|
showOutsideDays = true,
|
|
1617
1617
|
captionLayout = "label",
|
|
1618
|
-
buttonVariant = "ghost",
|
|
1619
1618
|
formatters,
|
|
1620
1619
|
components,
|
|
1621
1620
|
...props
|
|
@@ -1626,7 +1625,7 @@ function Calendar({
|
|
|
1626
1625
|
{
|
|
1627
1626
|
showOutsideDays,
|
|
1628
1627
|
className: cn(
|
|
1629
|
-
"bg-
|
|
1628
|
+
"bg-card group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent",
|
|
1630
1629
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
1631
1630
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
1632
1631
|
className
|
|
@@ -1648,13 +1647,11 @@ function Calendar({
|
|
|
1648
1647
|
defaultClassNames.nav
|
|
1649
1648
|
),
|
|
1650
1649
|
button_previous: cn(
|
|
1651
|
-
|
|
1652
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1650
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none inline-flex items-center justify-center rounded-full hover:bg-muted/50 transition-colors",
|
|
1653
1651
|
defaultClassNames.button_previous
|
|
1654
1652
|
),
|
|
1655
1653
|
button_next: cn(
|
|
1656
|
-
|
|
1657
|
-
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
|
|
1654
|
+
"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none inline-flex items-center justify-center rounded-full hover:bg-muted/50 transition-colors",
|
|
1658
1655
|
defaultClassNames.button_next
|
|
1659
1656
|
),
|
|
1660
1657
|
month_caption: cn(
|
|
@@ -1705,7 +1702,7 @@ function Calendar({
|
|
|
1705
1702
|
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
1706
1703
|
range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
1707
1704
|
today: cn(
|
|
1708
|
-
"
|
|
1705
|
+
"rounded-full [&_button]:ring-2 [&_button]:ring-primary/50",
|
|
1709
1706
|
defaultClassNames.today
|
|
1710
1707
|
),
|
|
1711
1708
|
outside: cn(
|
|
@@ -1762,25 +1759,22 @@ function CalendarDayButton({
|
|
|
1762
1759
|
modifiers,
|
|
1763
1760
|
...props
|
|
1764
1761
|
}) {
|
|
1765
|
-
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
1766
1762
|
const ref = React8__namespace.useRef(null);
|
|
1767
1763
|
React8__namespace.useEffect(() => {
|
|
1768
1764
|
if (modifiers.focused) ref.current?.focus();
|
|
1769
1765
|
}, [modifiers.focused]);
|
|
1770
1766
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1771
|
-
|
|
1767
|
+
"button",
|
|
1772
1768
|
{
|
|
1773
1769
|
ref,
|
|
1774
|
-
|
|
1775
|
-
size: "icon",
|
|
1770
|
+
type: "button",
|
|
1776
1771
|
"data-day": day.date.toLocaleDateString(),
|
|
1777
1772
|
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
1778
1773
|
"data-range-start": modifiers.range_start,
|
|
1779
1774
|
"data-range-end": modifiers.range_end,
|
|
1780
1775
|
"data-range-middle": modifiers.range_middle,
|
|
1781
1776
|
className: cn(
|
|
1782
|
-
"data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:
|
|
1783
|
-
defaultClassNames.day,
|
|
1777
|
+
"rounded-full hover:bg-muted/50 transition-colors data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent/50 data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:ring-ring/50 flex aspect-square size-auto w-full min-w-(--cell-size) items-center justify-center leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
|
|
1784
1778
|
className
|
|
1785
1779
|
),
|
|
1786
1780
|
...props
|
|
@@ -4266,7 +4260,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
4266
4260
|
"div",
|
|
4267
4261
|
{
|
|
4268
4262
|
"data-slot": "sheet-header",
|
|
4269
|
-
className: cn("flex flex-col gap-1.5
|
|
4263
|
+
className: cn("flex flex-col gap-1.5 px-6 py-4", className),
|
|
4270
4264
|
...props
|
|
4271
4265
|
}
|
|
4272
4266
|
);
|
|
@@ -4276,7 +4270,7 @@ function SheetFooter({ className, ...props }) {
|
|
|
4276
4270
|
"div",
|
|
4277
4271
|
{
|
|
4278
4272
|
"data-slot": "sheet-footer",
|
|
4279
|
-
className: cn("mt-auto flex flex-col gap-2
|
|
4273
|
+
className: cn("mt-auto flex flex-col gap-2 px-6 py-4", className),
|
|
4280
4274
|
...props
|
|
4281
4275
|
}
|
|
4282
4276
|
);
|
|
@@ -4307,6 +4301,16 @@ function SheetDescription({
|
|
|
4307
4301
|
}
|
|
4308
4302
|
);
|
|
4309
4303
|
}
|
|
4304
|
+
function SheetBody({ className, ...props }) {
|
|
4305
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4306
|
+
"div",
|
|
4307
|
+
{
|
|
4308
|
+
"data-slot": "sheet-body",
|
|
4309
|
+
className: cn("flex-1 px-6 py-4", className),
|
|
4310
|
+
...props
|
|
4311
|
+
}
|
|
4312
|
+
);
|
|
4313
|
+
}
|
|
4310
4314
|
function Popover({
|
|
4311
4315
|
...props
|
|
4312
4316
|
}) {
|
|
@@ -4431,12 +4435,14 @@ function Collapsible({
|
|
|
4431
4435
|
return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.Root, { "data-slot": "collapsible", ...props });
|
|
4432
4436
|
}
|
|
4433
4437
|
function CollapsibleTrigger2({
|
|
4438
|
+
className,
|
|
4434
4439
|
...props
|
|
4435
4440
|
}) {
|
|
4436
4441
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4437
4442
|
CollapsiblePrimitive__namespace.CollapsibleTrigger,
|
|
4438
4443
|
{
|
|
4439
4444
|
"data-slot": "collapsible-trigger",
|
|
4445
|
+
className: cn(className),
|
|
4440
4446
|
...props
|
|
4441
4447
|
}
|
|
4442
4448
|
);
|
|
@@ -5467,6 +5473,7 @@ exports.SelectTrigger = SelectTrigger;
|
|
|
5467
5473
|
exports.SelectValue = SelectValue;
|
|
5468
5474
|
exports.Separator = Separator;
|
|
5469
5475
|
exports.Sheet = Sheet;
|
|
5476
|
+
exports.SheetBody = SheetBody;
|
|
5470
5477
|
exports.SheetClose = SheetClose;
|
|
5471
5478
|
exports.SheetContent = SheetContent;
|
|
5472
5479
|
exports.SheetDescription = SheetDescription;
|