next-data-kit 8.1.0 → 8.2.1
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/{action-DdkPkUFP.d.cts → action-DCmAhOQa.d.cts} +2 -4
- package/dist/{action-DdkPkUFP.d.ts → action-DCmAhOQa.d.ts} +2 -4
- package/dist/client/components/ui/switch.js +1 -1
- package/dist/client/components/ui/switch.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js.map +1 -1
- package/dist/server.d.cts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/next-data-kit.d.ts +2 -4
- package/dist/types/next-data-kit.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -91,18 +91,16 @@ type TFilterConfig = {
|
|
|
91
91
|
/**
|
|
92
92
|
* Custom filter configuration
|
|
93
93
|
* Allows defining custom filter functions for specific filter keys
|
|
94
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
95
94
|
*/
|
|
96
95
|
type TFilterCustomConfig<T = unknown> = {
|
|
97
|
-
[id: string]: (data:
|
|
96
|
+
[id: string]: (data: unknown) => TMongoFilterQuery<T>;
|
|
98
97
|
};
|
|
99
98
|
/**
|
|
100
99
|
* Variant of TFilterCustomConfig that allows customizing the returned filter shape.
|
|
101
100
|
* Useful for Mongo (operator-based) vs. other ORMs (where clauses) in the future.
|
|
102
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
103
101
|
*/
|
|
104
102
|
type TFilterCustomConfigWithFilter<TDoc = unknown, TFilter = TMongoFilterQuery<TDoc>> = {
|
|
105
|
-
[id: string]: (data:
|
|
103
|
+
[id: string]: (data: unknown) => TFilter;
|
|
106
104
|
};
|
|
107
105
|
/**
|
|
108
106
|
* React Data Kit server action input
|
|
@@ -91,18 +91,16 @@ type TFilterConfig = {
|
|
|
91
91
|
/**
|
|
92
92
|
* Custom filter configuration
|
|
93
93
|
* Allows defining custom filter functions for specific filter keys
|
|
94
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
95
94
|
*/
|
|
96
95
|
type TFilterCustomConfig<T = unknown> = {
|
|
97
|
-
[id: string]: (data:
|
|
96
|
+
[id: string]: (data: unknown) => TMongoFilterQuery<T>;
|
|
98
97
|
};
|
|
99
98
|
/**
|
|
100
99
|
* Variant of TFilterCustomConfig that allows customizing the returned filter shape.
|
|
101
100
|
* Useful for Mongo (operator-based) vs. other ORMs (where clauses) in the future.
|
|
102
|
-
* The value parameter can be typed by using a type assertion in the function definition
|
|
103
101
|
*/
|
|
104
102
|
type TFilterCustomConfigWithFilter<TDoc = unknown, TFilter = TMongoFilterQuery<TDoc>> = {
|
|
105
|
-
[id: string]: (data:
|
|
103
|
+
[id: string]: (data: unknown) => TFilter;
|
|
106
104
|
};
|
|
107
105
|
/**
|
|
108
106
|
* React Data Kit server action input
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../utils";
|
|
5
5
|
function Switch({ className, ...props }) {
|
|
6
6
|
return (_jsx(SwitchPrimitive.Root, { "data-slot": "switch", className: cn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 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", className), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: cn("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") }) }));
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../../src/client/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../../src/client/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAEhC,SAAS,MAAM,CAAC,EACZ,SAAS,EACT,GAAG,KAAK,EACwC;IAChD,OAAO,CACH,KAAC,eAAe,CAAC,IAAI,iBACP,QAAQ,EAClB,SAAS,EAAE,EAAE,CACT,2WAA2W,EAC3W,SAAS,CACZ,KACG,KAAK,YAET,KAAC,eAAe,CAAC,KAAK,iBACR,cAAc,EACxB,SAAS,EAAE,EAAE,CACT,0QAA0Q,CAC7Q,GACH,GACiB,CAC1B,CAAA;AACL,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|