@j3m-quantum/ui 0.7.9 → 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 CHANGED
@@ -143,6 +143,8 @@ var Button = React8__namespace.forwardRef(
143
143
  return /* @__PURE__ */ jsxRuntime.jsx(
144
144
  Comp,
145
145
  {
146
+ "data-slot": "button",
147
+ "data-variant": variant || "default",
146
148
  className: cn(buttonVariants({ variant, size, className })),
147
149
  ref,
148
150
  ...props
@@ -714,7 +716,7 @@ function NativeSelect({ className, ...props }) {
714
716
  {
715
717
  "data-slot": "native-select",
716
718
  className: cn(
717
- "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-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
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",
718
720
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
719
721
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
720
722
  className
@@ -725,7 +727,7 @@ function NativeSelect({ className, ...props }) {
725
727
  /* @__PURE__ */ jsxRuntime.jsx(
726
728
  lucideReact.ChevronDownIcon,
727
729
  {
728
- className: "text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none",
730
+ className: "text-muted-foreground pointer-events-none absolute top-1/2 right-4 size-4 -translate-y-1/2 opacity-50 select-none",
729
731
  "aria-hidden": "true",
730
732
  "data-slot": "native-select-icon"
731
733
  }
@@ -751,7 +753,7 @@ function NativeSelectOptGroup({
751
753
  );
752
754
  }
753
755
  var toggleVariants = classVarianceAuthority.cva(
754
- "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-accent data-[state=on]:text-accent-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",
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",
755
757
  {
756
758
  variants: {
757
759
  variant: {
@@ -885,7 +887,7 @@ function InputOTPSlot({
885
887
  "data-slot": "input-otp-slot",
886
888
  "data-active": isActive,
887
889
  className: cn(
888
- "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 dark:bg-input/30 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-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
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]",
889
891
  className
890
892
  ),
891
893
  ...props,
@@ -1233,6 +1235,8 @@ var cardVariants = classVarianceAuthority.cva(
1233
1235
  variant: {
1234
1236
  default: "bg-card border shadow",
1235
1237
  glass: [
1238
+ "glass-context",
1239
+ // Enables glass semantic token overrides for children
1236
1240
  "bg-[var(--j3m-glass-frosted-card)]",
1237
1241
  "backdrop-blur-[var(--j3m-blur-frosted)]",
1238
1242
  "glass-border-gradient",
@@ -1415,7 +1419,7 @@ var badgeVariants = classVarianceAuthority.cva(
1415
1419
  default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
1416
1420
  secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
1417
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",
1418
- 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"
1419
1423
  }
1420
1424
  },
1421
1425
  defaultVariants: {
@@ -1611,7 +1615,6 @@ function Calendar({
1611
1615
  classNames,
1612
1616
  showOutsideDays = true,
1613
1617
  captionLayout = "label",
1614
- buttonVariant = "ghost",
1615
1618
  formatters,
1616
1619
  components,
1617
1620
  ...props
@@ -1622,7 +1625,7 @@ function Calendar({
1622
1625
  {
1623
1626
  showOutsideDays,
1624
1627
  className: cn(
1625
- "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
1628
+ "bg-card group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent",
1626
1629
  String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
1627
1630
  String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
1628
1631
  className
@@ -1644,13 +1647,11 @@ function Calendar({
1644
1647
  defaultClassNames.nav
1645
1648
  ),
1646
1649
  button_previous: cn(
1647
- buttonVariants({ variant: buttonVariant }),
1648
- "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",
1649
1651
  defaultClassNames.button_previous
1650
1652
  ),
1651
1653
  button_next: cn(
1652
- buttonVariants({ variant: buttonVariant }),
1653
- "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",
1654
1655
  defaultClassNames.button_next
1655
1656
  ),
1656
1657
  month_caption: cn(
@@ -1701,7 +1702,7 @@ function Calendar({
1701
1702
  range_middle: cn("rounded-none", defaultClassNames.range_middle),
1702
1703
  range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
1703
1704
  today: cn(
1704
- "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
1705
+ "rounded-full [&_button]:ring-2 [&_button]:ring-primary/50",
1705
1706
  defaultClassNames.today
1706
1707
  ),
1707
1708
  outside: cn(
@@ -1758,25 +1759,22 @@ function CalendarDayButton({
1758
1759
  modifiers,
1759
1760
  ...props
1760
1761
  }) {
1761
- const defaultClassNames = reactDayPicker.getDefaultClassNames();
1762
1762
  const ref = React8__namespace.useRef(null);
1763
1763
  React8__namespace.useEffect(() => {
1764
1764
  if (modifiers.focused) ref.current?.focus();
1765
1765
  }, [modifiers.focused]);
1766
1766
  return /* @__PURE__ */ jsxRuntime.jsx(
1767
- Button,
1767
+ "button",
1768
1768
  {
1769
1769
  ref,
1770
- variant: "ghost",
1771
- size: "icon",
1770
+ type: "button",
1772
1771
  "data-day": day.date.toLocaleDateString(),
1773
1772
  "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
1774
1773
  "data-range-start": modifiers.range_start,
1775
1774
  "data-range-end": modifiers.range_end,
1776
1775
  "data-range-middle": modifiers.range_middle,
1777
1776
  className: cn(
1778
- "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:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
1779
- 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",
1780
1778
  className
1781
1779
  ),
1782
1780
  ...props
@@ -4262,7 +4260,7 @@ function SheetHeader({ className, ...props }) {
4262
4260
  "div",
4263
4261
  {
4264
4262
  "data-slot": "sheet-header",
4265
- className: cn("flex flex-col gap-1.5 p-4", className),
4263
+ className: cn("flex flex-col gap-1.5 px-6 py-4", className),
4266
4264
  ...props
4267
4265
  }
4268
4266
  );
@@ -4272,7 +4270,7 @@ function SheetFooter({ className, ...props }) {
4272
4270
  "div",
4273
4271
  {
4274
4272
  "data-slot": "sheet-footer",
4275
- className: cn("mt-auto flex flex-col gap-2 p-4", className),
4273
+ className: cn("mt-auto flex flex-col gap-2 px-6 py-4", className),
4276
4274
  ...props
4277
4275
  }
4278
4276
  );
@@ -4303,6 +4301,16 @@ function SheetDescription({
4303
4301
  }
4304
4302
  );
4305
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
+ }
4306
4314
  function Popover({
4307
4315
  ...props
4308
4316
  }) {
@@ -4427,12 +4435,14 @@ function Collapsible({
4427
4435
  return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.Root, { "data-slot": "collapsible", ...props });
4428
4436
  }
4429
4437
  function CollapsibleTrigger2({
4438
+ className,
4430
4439
  ...props
4431
4440
  }) {
4432
4441
  return /* @__PURE__ */ jsxRuntime.jsx(
4433
4442
  CollapsiblePrimitive__namespace.CollapsibleTrigger,
4434
4443
  {
4435
4444
  "data-slot": "collapsible-trigger",
4445
+ className: cn(className),
4436
4446
  ...props
4437
4447
  }
4438
4448
  );
@@ -5463,6 +5473,7 @@ exports.SelectTrigger = SelectTrigger;
5463
5473
  exports.SelectValue = SelectValue;
5464
5474
  exports.Separator = Separator;
5465
5475
  exports.Sheet = Sheet;
5476
+ exports.SheetBody = SheetBody;
5466
5477
  exports.SheetClose = SheetClose;
5467
5478
  exports.SheetContent = SheetContent;
5468
5479
  exports.SheetDescription = SheetDescription;