@neoptocom/neopto-ui 0.9.2 → 0.9.4

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
@@ -308,7 +308,7 @@ function Modal({
308
308
  children: /* @__PURE__ */ jsxRuntime.jsxs(
309
309
  Card,
310
310
  {
311
- className: `w-full max-w-lg ${className}`,
311
+ className: `w-full ${className || "max-w-lg"}`,
312
312
  role: "dialog",
313
313
  "aria-modal": "true",
314
314
  "aria-labelledby": title ? "modal-title" : void 0,
@@ -541,7 +541,7 @@ function Icon({
541
541
  );
542
542
  }
543
543
  function getIconButtonClasses(variant = "ghost", size = "md", className) {
544
- const base = "flex items-center justify-center rounded-full flex-shrink-0 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-cyan-500/40 disabled:cursor-not-allowed disabled:opacity-50";
544
+ const base = "cursor-pointer flex items-center justify-center rounded-full flex-shrink-0 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-cyan-500/40 disabled:cursor-not-allowed disabled:opacity-50";
545
545
  const variants = {
546
546
  ghost: "bg-transparent hover:bg-[var(--muted)] active:bg-[var(--muted)]",
547
547
  primary: "bg-cyan-500 text-white hover:bg-cyan-400 active:bg-cyan-600",
package/dist/index.js CHANGED
@@ -287,7 +287,7 @@ function Modal({
287
287
  children: /* @__PURE__ */ jsxs(
288
288
  Card,
289
289
  {
290
- className: `w-full max-w-lg ${className}`,
290
+ className: `w-full ${className || "max-w-lg"}`,
291
291
  role: "dialog",
292
292
  "aria-modal": "true",
293
293
  "aria-labelledby": title ? "modal-title" : void 0,
@@ -520,7 +520,7 @@ function Icon({
520
520
  );
521
521
  }
522
522
  function getIconButtonClasses(variant = "ghost", size = "md", className) {
523
- const base = "flex items-center justify-center rounded-full flex-shrink-0 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-cyan-500/40 disabled:cursor-not-allowed disabled:opacity-50";
523
+ const base = "cursor-pointer flex items-center justify-center rounded-full flex-shrink-0 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-cyan-500/40 disabled:cursor-not-allowed disabled:opacity-50";
524
524
  const variants = {
525
525
  ghost: "bg-transparent hover:bg-[var(--muted)] active:bg-[var(--muted)]",
526
526
  primary: "bg-cyan-500 text-white hover:bg-cyan-400 active:bg-cyan-600",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neoptocom/neopto-ui",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "private": false,
5
5
  "description": "A modern React component library built with Tailwind CSS v4 and TypeScript. Features dark mode, design tokens, and comprehensive Storybook documentation. Requires Tailwind v4+.",
6
6
  "keywords": [
@@ -22,7 +22,7 @@ function getIconButtonClasses(
22
22
  className?: string
23
23
  ): string {
24
24
  const base =
25
- "flex items-center justify-center rounded-full flex-shrink-0 " +
25
+ "cursor-pointer flex items-center justify-center rounded-full flex-shrink-0 " +
26
26
  "transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 " +
27
27
  "focus-visible:ring-cyan-500/40 disabled:cursor-not-allowed disabled:opacity-50";
28
28
 
@@ -92,13 +92,13 @@ export function Modal({
92
92
  onClose={closeOnBackdrop ? onClose : undefined}
93
93
  zIndex={zIndex}
94
94
  >
95
- <Card
96
- className={`w-full max-w-lg ${className}`}
97
- role="dialog"
98
- aria-modal="true"
99
- aria-labelledby={title ? "modal-title" : undefined}
100
- showDecorations={showDecorations}
101
- >
95
+ <Card
96
+ className={`w-full ${className || "max-w-lg"}`}
97
+ role="dialog"
98
+ aria-modal="true"
99
+ aria-labelledby={title ? "modal-title" : undefined}
100
+ showDecorations={showDecorations}
101
+ >
102
102
  {title && (
103
103
  <h2 id="modal-title" className="mb-4 text-xl font-semibold">
104
104
  {title}