praxis-kit 0.1.1 → 1.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/{build-runtime-CJ_nQEaZ.js → build-runtime-cNkW-D62.js} +331 -207
- package/dist/contract/index.d.ts +396 -14
- package/dist/contract/index.js +66 -1
- package/dist/eslint/index.js +11 -5
- package/dist/{index-DiPzmjWW.d.ts → index-zJDSXTxL.d.ts} +342 -66
- package/dist/lit/index.d.ts +251 -55
- package/dist/lit/index.js +275 -215
- package/dist/preact/index.d.ts +296 -52
- package/dist/preact/index.js +277 -210
- package/dist/react/index.d.ts +13 -4
- package/dist/react/index.js +22 -72
- package/dist/react/legacy.d.ts +9 -4
- package/dist/react/legacy.js +14 -2
- package/dist/solid/index.d.ts +253 -40
- package/dist/solid/index.js +271 -210
- package/dist/svelte/index.d.ts +203 -33
- package/dist/svelte/index.js +270 -207
- package/dist/tailwind/index.d.ts +12 -1
- package/dist/vite-plugin/index.js +289 -199
- package/dist/vue/index.d.ts +252 -41
- package/dist/vue/index.js +277 -210
- package/dist/web/index.d.ts +271 -53
- package/dist/web/index.js +275 -215
- package/package.json +5 -5
package/dist/tailwind/index.d.ts
CHANGED
|
@@ -17,6 +17,17 @@ import { RequireAtLeastOne, Simplify } from "type-fest";
|
|
|
17
17
|
* utilities, so no additional prop-to-class mapping is required.
|
|
18
18
|
*/
|
|
19
19
|
export declare const layoutKeys: readonly ["flex", "inline-flex", "grid", "inline-grid", "block", "inline-block", "inline", "hidden", "contents", "flow-root", "list-item", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row"];
|
|
20
|
+
/**
|
|
21
|
+
* The concrete union of layout prop names — the pre-resolved form of
|
|
22
|
+
* `LayoutKey<typeof layoutKeys>`, colocated with the tuple it derives from.
|
|
23
|
+
*
|
|
24
|
+
* For code that needs to *name* the layout keys in a type without also importing the runtime
|
|
25
|
+
* tuple. A framework adapter uses it to collapse the mutually-exclusive `LayoutProps` union back
|
|
26
|
+
* out of an *extracted* prop type (`ContractProps<typeof Component>`): there a caller wants "the
|
|
27
|
+
* layout props exist and are optional `true`s", not the ~22-member discriminated union that the
|
|
28
|
+
* component's own call signature carries — where "only one may be `true`" is a useful error.
|
|
29
|
+
*/
|
|
30
|
+
type LayoutKeyName = (typeof layoutKeys)[number];
|
|
20
31
|
//#endregion
|
|
21
32
|
//#region ../../lib/foundation/src/string-map.d.ts
|
|
22
33
|
/**
|
|
@@ -194,4 +205,4 @@ type LayoutProps<T extends readonly string[]> = ExclusiveTrueProp<LayoutKey<T>>
|
|
|
194
205
|
*/
|
|
195
206
|
export declare function createTailwindPipeline<V extends VariantMap = VariantMap>(options: ClassPipelineOptions<V>, diagnostics: Diagnostics): ClassPlugin<LayoutProps<typeof layoutKeys>>;
|
|
196
207
|
//#endregion
|
|
197
|
-
export type { LayoutKey, LayoutProps, ResolvedLayout };
|
|
208
|
+
export type { LayoutKey, LayoutKeyName, LayoutProps, ResolvedLayout };
|