praxis-kit 7.5.0 → 7.8.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/_shared/diagnostics.d.ts +3 -0
- package/dist/_shared/diagnostics.js +3 -0
- package/dist/{chunk-SMHJEFNE.js → chunk-QYP7KLRE.js} +316 -154
- package/dist/contract/index.d.ts +3 -3
- package/dist/eslint/index.js +227 -187
- package/dist/html/index.d.ts +6 -1
- package/dist/html/index.js +234 -68
- package/dist/lit/index.d.ts +3 -3
- package/dist/lit/index.js +305 -141
- package/dist/preact/index.d.ts +90 -5
- package/dist/preact/index.js +316 -152
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.js +1 -1
- package/dist/react/legacy.d.ts +8 -5
- package/dist/react/legacy.js +8 -8
- package/dist/{react-options-5GbZ8Tbv.d.ts → react-options-DU3EdFOv.d.ts} +102 -6
- package/dist/solid/index.d.ts +103 -7
- package/dist/solid/index.js +316 -152
- package/dist/svelte/Polymorphic.svelte +8 -0
- package/dist/svelte/index.d.ts +196 -10
- package/dist/svelte/index.js +319 -152
- package/dist/tailwind/index.d.ts +1 -1
- package/dist/vite-plugin/index.d.ts +6 -3
- package/dist/vue/index.d.ts +70 -5
- package/dist/vue/index.js +316 -152
- package/dist/web/index.d.ts +3 -3
- package/dist/web/index.js +305 -141
- package/package.json +9 -9
package/dist/web/index.d.ts
CHANGED
|
@@ -159,7 +159,7 @@ type DefaultVariants<V extends VariantMap> = {
|
|
|
159
159
|
* Presets are named bundles of variant props that callers activate by key,
|
|
160
160
|
* avoiding the need to repeat variant combinations at each call site.
|
|
161
161
|
*/
|
|
162
|
-
type RecipeMap<V extends VariantMap = VariantMap> = Readonly<
|
|
162
|
+
type RecipeMap<V extends VariantMap = VariantMap> = Readonly<StringMap<VariantSelection<V>>>;
|
|
163
163
|
|
|
164
164
|
type RecipeTarget<TVariants extends VariantMap = VariantMap> = VariantSelection<TVariants>;
|
|
165
165
|
|
|
@@ -193,7 +193,7 @@ interface BaseClassOptions {
|
|
|
193
193
|
type ClassPipelineFn = (tag: unknown, props: AnyRecord, className?: ClassName, recipe?: string) => string | undefined;
|
|
194
194
|
|
|
195
195
|
interface RecipeOptions<TVariants extends VariantMap = VariantMap> {
|
|
196
|
-
recipeMap?:
|
|
196
|
+
recipeMap?: StringMap<RecipeTarget<TVariants>>;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
interface TagMapOptions {
|
|
@@ -362,7 +362,7 @@ type StylingOptions<V extends Readonly<VariantMap> = Readonly<EmptyRecord>, TPre
|
|
|
362
362
|
* combination, skipping runtime class computation entirely when a match is found. Normally
|
|
363
363
|
* generated by a build-time class-extraction plugin rather than hand-authored.
|
|
364
364
|
*/
|
|
365
|
-
readonly precomputedClasses?: Readonly<
|
|
365
|
+
readonly precomputedClasses?: Readonly<StringMap<string>>;
|
|
366
366
|
};
|
|
367
367
|
|
|
368
368
|
type NormalizeFn<Props extends AnyRecord = AnyRecord> = {
|