next-data-kit 9.0.1 → 9.0.2
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/client/components/data-kit-infinity.d.ts.map +1 -1
- package/dist/client/components/data-kit-infinity.js +2 -2
- package/dist/client/components/data-kit-infinity.js.map +1 -1
- package/dist/client/components/data-kit-table.d.ts.map +1 -1
- package/dist/client/components/data-kit-table.js +2 -2
- package/dist/client/components/data-kit-table.js.map +1 -1
- package/dist/client/components/data-kit.js +2 -2
- package/dist/client/components/data-kit.js.map +1 -1
- package/dist/client/components/ui/index.d.ts +0 -1
- package/dist/client/components/ui/index.d.ts.map +1 -1
- package/dist/client/components/ui/index.js +0 -1
- package/dist/client/components/ui/index.js.map +1 -1
- package/dist/index.cjs +8 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -37
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -3
- package/dist/client/components/ui/switch.d.ts +0 -5
- package/dist/client/components/ui/switch.d.ts.map +0 -1
- package/dist/client/components/ui/switch.js +0 -9
- package/dist/client/components/ui/switch.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,6 @@ import { Filter, Loader2, MoreHorizontal, ArrowUp, ArrowDown, ChevronLeft, Chevr
|
|
|
6
6
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
7
7
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
8
8
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
9
|
-
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
10
9
|
import { Slot } from '@radix-ui/react-slot';
|
|
11
10
|
import { cva } from 'class-variance-authority';
|
|
12
11
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
@@ -936,31 +935,6 @@ function DropdownMenuSeparator({
|
|
|
936
935
|
}
|
|
937
936
|
);
|
|
938
937
|
}
|
|
939
|
-
function Switch({
|
|
940
|
-
className,
|
|
941
|
-
...props
|
|
942
|
-
}) {
|
|
943
|
-
return /* @__PURE__ */ jsx(
|
|
944
|
-
SwitchPrimitive.Root,
|
|
945
|
-
{
|
|
946
|
-
"data-slot": "switch",
|
|
947
|
-
className: cn(
|
|
948
|
-
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-zinc-200 focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-zinc-700 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
949
|
-
className
|
|
950
|
-
),
|
|
951
|
-
...props,
|
|
952
|
-
children: /* @__PURE__ */ jsx(
|
|
953
|
-
SwitchPrimitive.Thumb,
|
|
954
|
-
{
|
|
955
|
-
"data-slot": "switch-thumb",
|
|
956
|
-
className: cn(
|
|
957
|
-
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
958
|
-
)
|
|
959
|
-
}
|
|
960
|
-
)
|
|
961
|
-
}
|
|
962
|
-
);
|
|
963
|
-
}
|
|
964
938
|
var buttonVariants = cva(
|
|
965
939
|
"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:ring-black/20 dark:focus-visible:ring-white/20 focus-visible:ring-[3px] aria-invalid:ring-red-500/20 dark:aria-invalid:ring-red-500/30 aria-invalid:border-red-500",
|
|
966
940
|
{
|
|
@@ -1439,16 +1413,13 @@ var DataKitRoot = (props) => {
|
|
|
1439
1413
|
]
|
|
1440
1414
|
}
|
|
1441
1415
|
),
|
|
1442
|
-
f.type === "BOOLEAN" && /* @__PURE__ */
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}
|
|
1450
|
-
)
|
|
1451
|
-
] })
|
|
1416
|
+
f.type === "BOOLEAN" && /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsx(
|
|
1417
|
+
Checkbox,
|
|
1418
|
+
{
|
|
1419
|
+
checked: Boolean(dataKit.filter[f.id]),
|
|
1420
|
+
onCheckedChange: (c) => dataKit.actions.setFilter(f.id, c)
|
|
1421
|
+
}
|
|
1422
|
+
) })
|
|
1452
1423
|
] }, f.id)) }),
|
|
1453
1424
|
/* @__PURE__ */ jsxs("div", { className: "mt-4 flex justify-between border-t pt-3", children: [
|
|
1454
1425
|
/* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", onClick: handleResetFilters, children: "Reset" }),
|
|
@@ -1724,7 +1695,7 @@ var DataKitInner = (props, ref) => {
|
|
|
1724
1695
|
}
|
|
1725
1696
|
),
|
|
1726
1697
|
f.type === "BOOLEAN" && /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsx(
|
|
1727
|
-
|
|
1698
|
+
Checkbox,
|
|
1728
1699
|
{
|
|
1729
1700
|
checked: Boolean(dataKit.filter[f.id]),
|
|
1730
1701
|
onCheckedChange: (c) => dataKit.actions.setFilter(f.id, c)
|