@stargazers-stella/cosmic-ui 0.1.4 → 0.1.5

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.js CHANGED
@@ -371,7 +371,6 @@ function useUncontrolledState({
371
371
  function isFunction(value) {
372
372
  return typeof value === "function";
373
373
  }
374
- var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
375
374
 
376
375
  // node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
377
376
  import * as React13 from "react";
@@ -424,7 +423,7 @@ function createSlotClone(ownerName) {
424
423
  SlotClone.displayName = `${ownerName}.SlotClone`;
425
424
  return SlotClone;
426
425
  }
427
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
426
+ var SLOTTABLE_IDENTIFIER = /* @__PURE__ */ Symbol("radix.slottable");
428
427
  function isSlottable(child) {
429
428
  return React9.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
430
429
  }
@@ -493,7 +492,7 @@ var Primitive = NODES.reduce((primitive, node) => {
493
492
  const { asChild, ...primitiveProps } = props;
494
493
  const Comp = asChild ? Slot2 : node;
495
494
  if (typeof window !== "undefined") {
496
- window[Symbol.for("radix-ui")] = true;
495
+ window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
497
496
  }
498
497
  return /* @__PURE__ */ jsx7(Comp, { ...primitiveProps, ref: forwardedRef });
499
498
  });
@@ -2277,7 +2276,7 @@ var DialogContent2 = React28.forwardRef(({ className, children, ...props }, ref)
2277
2276
  {
2278
2277
  ref,
2279
2278
  className: cn(
2280
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 rounded-xl border border-border bg-popover p-6 shadow-xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
2279
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-6 rounded-xl border border-border bg-popover p-6 shadow-xl transition-opacity duration-200 data-[state=closed]:opacity-0 data-[state=open]:opacity-100",
2281
2280
  className
2282
2281
  ),
2283
2282
  ...props,
@@ -2451,7 +2450,7 @@ var DropdownMenuSubContent = React30.forwardRef(({ className, ...props }, ref) =
2451
2450
  {
2452
2451
  ref,
2453
2452
  className: cn(
2454
- "z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-popover p-1 text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out",
2453
+ "z-50 min-w-[8rem] w-auto overflow-hidden rounded-lg border border-border bg-popover p-1 text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out",
2455
2454
  className
2456
2455
  ),
2457
2456
  ...props
@@ -2464,7 +2463,7 @@ var DropdownMenuContent = React30.forwardRef(({ className, sideOffset = 6, ...pr
2464
2463
  ref,
2465
2464
  sideOffset,
2466
2465
  className: cn(
2467
- "z-50 min-w-[10rem] overflow-hidden rounded-lg border border-border bg-popover p-1 text-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out",
2466
+ "z-50 min-w-[10rem] w-auto overflow-hidden rounded-lg border border-border bg-popover p-1 text-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out",
2468
2467
  className
2469
2468
  ),
2470
2469
  ...props
@@ -2603,7 +2602,7 @@ var SelectContent = React32.forwardRef(({ className, children, position = "poppe
2603
2602
  {
2604
2603
  ref,
2605
2604
  className: cn(
2606
- "relative z-50 min-w-[10rem] overflow-hidden rounded-lg border border-border bg-popover text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out",
2605
+ "relative z-50 min-w-[10rem] w-auto overflow-hidden rounded-lg border border-border bg-popover text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out",
2607
2606
  position === "popper" && "translate-y-1",
2608
2607
  className
2609
2608
  ),
@@ -2611,7 +2610,16 @@ var SelectContent = React32.forwardRef(({ className, children, position = "poppe
2611
2610
  ...props,
2612
2611
  children: [
2613
2612
  /* @__PURE__ */ jsx16(SelectPrimitive.ScrollUpButton, { className: "flex items-center justify-center py-1", children: /* @__PURE__ */ jsx16(ChevronUp, { className: "h-4 w-4" }) }),
2614
- /* @__PURE__ */ jsx16(SelectPrimitive.Viewport, { className: "p-1", children }),
2613
+ /* @__PURE__ */ jsx16(
2614
+ SelectPrimitive.Viewport,
2615
+ {
2616
+ className: cn(
2617
+ "p-1",
2618
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
2619
+ ),
2620
+ children
2621
+ }
2622
+ ),
2615
2623
  /* @__PURE__ */ jsx16(SelectPrimitive.ScrollDownButton, { className: "flex items-center justify-center py-1", children: /* @__PURE__ */ jsx16(ChevronDown, { className: "h-4 w-4" }) })
2616
2624
  ]
2617
2625
  }