@dwntgrnd/devlens 0.1.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/index.mjs ADDED
@@ -0,0 +1,25 @@
1
+ import {
2
+ DevLensProvider,
3
+ useDevLensConfig
4
+ } from "./chunk-LWQVUC3L.mjs";
5
+
6
+ // src/DevLens.tsx
7
+ import dynamic from "next/dynamic";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var DevLensDrawer = dynamic(
10
+ () => import("./DevLensDrawer-VWGWB7ZJ.mjs").then((mod) => ({
11
+ default: mod.DevLensDrawer
12
+ })),
13
+ { ssr: false }
14
+ );
15
+ function DevLens({ forceEnable, ...config }) {
16
+ if (!forceEnable && process.env.NODE_ENV !== "development") {
17
+ return null;
18
+ }
19
+ return /* @__PURE__ */ jsx(DevLensProvider, { ...config, children: /* @__PURE__ */ jsx(DevLensDrawer, {}) });
20
+ }
21
+ export {
22
+ DevLens,
23
+ DevLensProvider,
24
+ useDevLensConfig
25
+ };
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@dwntgrnd/devlens",
3
+ "version": "0.1.0",
4
+ "description": "Live design token editor and element inspector for Next.js + Tailwind CSS projects",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./styles": "./dist/devlens.css"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsup src/index.ts --format cjs,esm --dts",
23
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
24
+ "typecheck": "tsc --noEmit",
25
+ "lint": "eslint src/"
26
+ },
27
+ "peerDependencies": {
28
+ "lucide-react": ">=0.300.0",
29
+ "next": ">=13.0.0",
30
+ "react": ">=18.0.0",
31
+ "react-dom": ">=18.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^25.3.2",
35
+ "@types/react": "^19",
36
+ "@types/react-dom": "^19",
37
+ "lucide-react": "^0.563.0",
38
+ "next": "16.1.6",
39
+ "react": "19.2.3",
40
+ "react-dom": "19.2.3",
41
+ "tsup": "^8",
42
+ "typescript": "^5"
43
+ },
44
+ "author": "Doren Berge",
45
+ "license": "MIT",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": ""
49
+ },
50
+ "keywords": [
51
+ "design-tokens",
52
+ "tailwind",
53
+ "css-variables",
54
+ "devtools",
55
+ "next.js",
56
+ "design-system",
57
+ "token-editor"
58
+ ]
59
+ }