ai-design-system 0.1.79 → 0.1.80
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.
|
@@ -354,7 +354,7 @@ export function EnhancedDataTable({
|
|
|
354
354
|
<Button
|
|
355
355
|
variant="ghost"
|
|
356
356
|
size="icon"
|
|
357
|
-
className="flex size-8 text-muted-foreground hover:text-foreground"
|
|
357
|
+
className="flex size-8 cursor-pointer text-muted-foreground hover:text-foreground"
|
|
358
358
|
onClick={(e) => {
|
|
359
359
|
e.stopPropagation()
|
|
360
360
|
emitRowAction(singleAction.key, row.original)
|
|
@@ -372,7 +372,7 @@ export function EnhancedDataTable({
|
|
|
372
372
|
cell: ({ row }) => (
|
|
373
373
|
<DropdownMenu>
|
|
374
374
|
<DropdownMenuTrigger asChild>
|
|
375
|
-
<Button variant="ghost" className="flex size-8 text-muted-foreground data-[state=open]:bg-muted" size="icon">
|
|
375
|
+
<Button variant="ghost" className="flex size-8 cursor-pointer text-muted-foreground data-[state=open]:bg-muted" size="icon">
|
|
376
376
|
<Icon name="more-vertical" size="sm" />
|
|
377
377
|
<span className="sr-only">Open menu</span>
|
|
378
378
|
</Button>
|
package/components/ui/button.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { cva, type VariantProps } from "class-variance-authority"
|
|
|
5
5
|
import { cn } from "@/lib/utils"
|
|
6
6
|
|
|
7
7
|
const buttonVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
8
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
package/dist/index.cjs
CHANGED
|
@@ -132,7 +132,7 @@ function cn(...inputs) {
|
|
|
132
132
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
133
133
|
}
|
|
134
134
|
var buttonVariants = classVarianceAuthority.cva(
|
|
135
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
135
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
136
136
|
{
|
|
137
137
|
variants: {
|
|
138
138
|
variant: {
|
|
@@ -10052,7 +10052,7 @@ function EnhancedDataTable({
|
|
|
10052
10052
|
{
|
|
10053
10053
|
variant: "ghost",
|
|
10054
10054
|
size: "icon",
|
|
10055
|
-
className: "flex size-8 text-muted-foreground hover:text-foreground",
|
|
10055
|
+
className: "flex size-8 cursor-pointer text-muted-foreground hover:text-foreground",
|
|
10056
10056
|
onClick: (e) => {
|
|
10057
10057
|
e.stopPropagation();
|
|
10058
10058
|
emitRowAction(singleAction.key, row.original);
|
|
@@ -10067,7 +10067,7 @@ function EnhancedDataTable({
|
|
|
10067
10067
|
dynamicColumns.push({
|
|
10068
10068
|
id: "actions",
|
|
10069
10069
|
cell: ({ row }) => /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu2, { children: [
|
|
10070
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button2, { variant: "ghost", className: "flex size-8 text-muted-foreground data-[state=open]:bg-muted", size: "icon", children: [
|
|
10070
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button2, { variant: "ghost", className: "flex size-8 cursor-pointer text-muted-foreground data-[state=open]:bg-muted", size: "icon", children: [
|
|
10071
10071
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "more-vertical", size: "sm" }),
|
|
10072
10072
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Open menu" })
|
|
10073
10073
|
] }) }),
|