praxis-kit 4.1.2 → 4.1.3
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/tailwind/safelist.css +20 -0
- package/package.json +4 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* `createTailwindPipeline` assembles display-mode classes (flex, inline-flex,
|
|
3
|
+
* grid, hidden, etc.) at runtime from boolean props — they never appear as a
|
|
4
|
+
* literal string anywhere in scanned source, so Tailwind v4's content
|
|
5
|
+
* detection never generates their CSS on its own.
|
|
6
|
+
*
|
|
7
|
+
* `@source inline(...)` forces Tailwind to generate these utilities
|
|
8
|
+
* regardless of what its scanner finds. This file is copied verbatim into
|
|
9
|
+
* `praxis-kit`'s published dist (see packages/kit/scripts/postbuild.mjs) and
|
|
10
|
+
* exposed as the `praxis-kit/tailwind.css` subpath — `@praxis-kit/tailwind`
|
|
11
|
+
* itself is a private, unpublished workspace package. Import it alongside
|
|
12
|
+
* `tailwindcss` in your app's main CSS entry point:
|
|
13
|
+
*
|
|
14
|
+
* @import "tailwindcss";
|
|
15
|
+
* @import "praxis-kit/tailwind.css";
|
|
16
|
+
*
|
|
17
|
+
* Keep this list in sync with `layout-keys.ts` — enforced by
|
|
18
|
+
* `tailwind-safelist.test.ts`.
|
|
19
|
+
*/
|
|
20
|
+
@source inline("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");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "praxis-kit",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./react": {
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"types": "./dist/tailwind/index.d.ts",
|
|
40
40
|
"import": "./dist/tailwind/index.js"
|
|
41
41
|
},
|
|
42
|
+
"./tailwind.css": "./dist/tailwind/safelist.css",
|
|
42
43
|
"./eslint": {
|
|
43
44
|
"types": "./dist/eslint/index.d.ts",
|
|
44
45
|
"import": "./dist/eslint/index.js"
|
|
@@ -132,7 +133,8 @@
|
|
|
132
133
|
"@praxis-kit/adapter-utils": "0.0.0",
|
|
133
134
|
"@praxis-kit/core": "0.0.0",
|
|
134
135
|
"@praxis-kit/diagnostics": "0.0.0",
|
|
135
|
-
"@praxis-kit/primitive": "0.0.0"
|
|
136
|
+
"@praxis-kit/primitive": "0.0.0",
|
|
137
|
+
"@praxis-kit/vite-plugin": "0.0.0"
|
|
136
138
|
},
|
|
137
139
|
"publishConfig": {
|
|
138
140
|
"access": "public"
|