praxis-kit 6.1.0 → 6.2.0
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/{chunk-VUULGK5M.js → chunk-4YVNOMUS.js} +607 -564
- package/dist/contract/index.d.ts +11 -3
- package/dist/eslint/index.js +1 -1
- package/dist/guards/index.d.ts +36 -0
- package/dist/guards/index.js +62 -0
- package/dist/lit/index.d.ts +9 -2
- package/dist/lit/index.js +389 -340
- package/dist/preact/index.d.ts +9 -2
- package/dist/preact/index.js +496 -453
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +1 -1
- package/dist/react/legacy.d.ts +2 -2
- package/dist/react/legacy.js +1 -1
- package/dist/{react-options-AitAOrje.d.ts → react-options-DQTX4YS_.d.ts} +9 -2
- package/dist/solid/index.d.ts +9 -2
- package/dist/solid/index.js +485 -440
- package/dist/svelte/Polymorphic.svelte +2 -2
- package/dist/svelte/index.d.ts +10 -3
- package/dist/svelte/index.js +385 -340
- package/dist/tailwind/index.d.ts +1 -1
- package/dist/tailwind/index.js +3 -3
- package/dist/vue/index.d.ts +9 -2
- package/dist/vue/index.js +472 -421
- package/dist/web/index.d.ts +9 -2
- package/dist/web/index.js +389 -340
- package/package.json +10 -3
package/dist/preact/index.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ interface BaseClassOptions {
|
|
|
156
156
|
baseClassName?: ClassName;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
type ClassPipelineFn = (tag: unknown, props: AnyRecord, className?: ClassName, recipe?: string) => string;
|
|
159
|
+
type ClassPipelineFn = (tag: unknown, props: AnyRecord, className?: ClassName, recipe?: string) => string | undefined;
|
|
160
160
|
|
|
161
161
|
interface RecipeOptions<TVariants extends VariantMap = VariantMap> {
|
|
162
162
|
recipeMap?: Record<string, RecipeTarget<TVariants>>;
|
|
@@ -234,7 +234,9 @@ type AriaInvalidWithoutFix<M extends string = string> = AriaInvalidBase<M> & {
|
|
|
234
234
|
type AriaInvalidResult<M extends string = string> = AriaInvalidWithFix<M> | AriaInvalidWithoutFix<M>;
|
|
235
235
|
type AriaResult = ValidResult | AriaInvalidResult;
|
|
236
236
|
|
|
237
|
-
type AriaRule<C extends AriaContext = AriaContext> = (context: C) => readonly AriaResult[]
|
|
237
|
+
type AriaRule<C extends AriaContext = AriaContext> = ((context: C) => readonly AriaResult[]) & {
|
|
238
|
+
readonly readsProps?: readonly string[];
|
|
239
|
+
};
|
|
238
240
|
|
|
239
241
|
type PropNormalizer = (props: Readonly<AnyRecord & IntrinsicProps>) => Partial<AnyRecord & IntrinsicProps>;
|
|
240
242
|
|
|
@@ -285,6 +287,11 @@ type FactoryOptions<TDefault extends ElementType = ElementType, Props extends An
|
|
|
285
287
|
readonly normalize?: NormalizeFn<NoInfer<Props>>;
|
|
286
288
|
readonly styling?: StylingOptions<V, TPreset, TPlugin>;
|
|
287
289
|
readonly enforcement?: EnforcementOptions<TAllowed>;
|
|
290
|
+
/**
|
|
291
|
+
* Adapter-resolved diagnostics default, spread in by `resolveAdapterCommonOptions`. Not meant to
|
|
292
|
+
* be set directly by component authors — use `enforcement.diagnostics` to override per component.
|
|
293
|
+
*/
|
|
294
|
+
readonly diagnostics?: Diagnostics;
|
|
288
295
|
};
|
|
289
296
|
|
|
290
297
|
declare function defineContractComponent<O extends FactoryOptions>(options: O): <R>(factory: (options: O) => R) => R;
|