@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/README.md CHANGED
@@ -22,18 +22,9 @@ Add your images to `docs/screenshots/` and replace these placeholders.
22
22
  - UI primitives: Radix UI (`@radix-ui/*`)
23
23
  - Styling utilities: `class-variance-authority`, `clsx`, `tailwind-merge`
24
24
  - Icons/toasts: `lucide-react`, `sonner`
25
- - CI/publishing: GitHub Actions -> GitHub Packages (`npm.pkg.github.com`)
25
+ - Publishing: npmjs (`https://registry.npmjs.org/`)
26
26
 
27
27
  ## Install
28
- This package is configured for GitHub Packages (`npm.pkg.github.com`).
29
-
30
- 1) Add an `.npmrc` (project or user-level):
31
- ```ini
32
- @stargazers-stella:registry=https://npm.pkg.github.com
33
- //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
34
- ```
35
-
36
- 2) Install:
37
28
  ```sh
38
29
  npm install @stargazers-stella/cosmic-ui
39
30
  ```
@@ -94,3 +85,14 @@ npm run build
94
85
  ```
95
86
 
96
87
  Output goes to `dist/` (`dist/index.js`, `dist/index.cjs`, `dist/index.d.ts`).
88
+
89
+ ## Running Examples
90
+ To view the component showcase:
91
+
92
+ ```sh
93
+ cd examples/showcase
94
+ npm install
95
+ npm run dev
96
+ ```
97
+
98
+ This starts a Vite dev server (usually at http://localhost:5173) showing all cosmic-ui components in action.
package/dist/index.cjs CHANGED
@@ -464,7 +464,6 @@ function useUncontrolledState({
464
464
  function isFunction(value) {
465
465
  return typeof value === "function";
466
466
  }
467
- var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
468
467
 
469
468
  // node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
470
469
  var React13 = __toESM(require("react"), 1);
@@ -517,7 +516,7 @@ function createSlotClone(ownerName) {
517
516
  SlotClone.displayName = `${ownerName}.SlotClone`;
518
517
  return SlotClone;
519
518
  }
520
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
519
+ var SLOTTABLE_IDENTIFIER = /* @__PURE__ */ Symbol("radix.slottable");
521
520
  function isSlottable(child) {
522
521
  return React9.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
523
522
  }
@@ -586,7 +585,7 @@ var Primitive = NODES.reduce((primitive, node) => {
586
585
  const { asChild, ...primitiveProps } = props;
587
586
  const Comp = asChild ? Slot2 : node;
588
587
  if (typeof window !== "undefined") {
589
- window[Symbol.for("radix-ui")] = true;
588
+ window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
590
589
  }
591
590
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
592
591
  });
@@ -2370,7 +2369,7 @@ var DialogContent2 = React28.forwardRef(({ className, children, ...props }, ref)
2370
2369
  {
2371
2370
  ref,
2372
2371
  className: cn(
2373
- "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",
2372
+ "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",
2374
2373
  className
2375
2374
  ),
2376
2375
  ...props,
@@ -2544,7 +2543,7 @@ var DropdownMenuSubContent = React30.forwardRef(({ className, ...props }, ref) =
2544
2543
  {
2545
2544
  ref,
2546
2545
  className: cn(
2547
- "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",
2546
+ "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",
2548
2547
  className
2549
2548
  ),
2550
2549
  ...props
@@ -2557,7 +2556,7 @@ var DropdownMenuContent = React30.forwardRef(({ className, sideOffset = 6, ...pr
2557
2556
  ref,
2558
2557
  sideOffset,
2559
2558
  className: cn(
2560
- "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",
2559
+ "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",
2561
2560
  className
2562
2561
  ),
2563
2562
  ...props
@@ -2696,7 +2695,7 @@ var SelectContent = React32.forwardRef(({ className, children, position = "poppe
2696
2695
  {
2697
2696
  ref,
2698
2697
  className: cn(
2699
- "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",
2698
+ "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",
2700
2699
  position === "popper" && "translate-y-1",
2701
2700
  className
2702
2701
  ),
@@ -2704,7 +2703,16 @@ var SelectContent = React32.forwardRef(({ className, children, position = "poppe
2704
2703
  ...props,
2705
2704
  children: [
2706
2705
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SelectPrimitive.ScrollUpButton, { className: "flex items-center justify-center py-1", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react4.ChevronUp, { className: "h-4 w-4" }) }),
2707
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SelectPrimitive.Viewport, { className: "p-1", children }),
2706
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2707
+ SelectPrimitive.Viewport,
2708
+ {
2709
+ className: cn(
2710
+ "p-1",
2711
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
2712
+ ),
2713
+ children
2714
+ }
2715
+ ),
2708
2716
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SelectPrimitive.ScrollDownButton, { className: "flex items-center justify-center py-1", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react4.ChevronDown, { className: "h-4 w-4" }) })
2709
2717
  ]
2710
2718
  }