|
| 1 | +{ |
| 2 | + "name": "@tailscale/tailscale-ui-components", |
| 3 | + "version": "0.0.5", |
| 4 | + "author": "Tailscale", |
| 5 | + "license": "BSD-3-Clause", |
| 6 | + "main": "dist/tailscale-ui-components.umd.js", |
| 7 | + "module": "dist/tailscale-ui-components.es.js", |
| 8 | + "types": "dist/index.d.ts", |
| 9 | + "type": "module", |
| 10 | + "files": [ |
| 11 | + "dist", |
| 12 | + "tailwind.preset.js" |
| 13 | + ], |
| 14 | + "exports": { |
| 15 | + ".": { |
| 16 | + "types": "./dist/index.d.ts", |
| 17 | + "import": "./dist/tailscale-ui-components.es.js", |
| 18 | + "require": "./dist/tailscale-ui-components.umd.js" |
| 19 | + }, |
| 20 | + "./tailwind.preset": { |
| 21 | + "import": "./tailwind.preset.cjs", |
| 22 | + "require": "./tailwind.preset.cjs", |
| 23 | + "default": "./tailwind.preset.cjs" |
| 24 | + } |
| 25 | + }, |
| 26 | + "peerDependencies": { |
| 27 | + "react": "^18.2.0", |
| 28 | + "react-dom": "^18.2.0" |
| 29 | + }, |
| 30 | + "dependencies": { |
| 31 | + "@radix-ui/react-checkbox": "^1.3.2", |
| 32 | + "@radix-ui/react-collapsible": "^1.1.11", |
| 33 | + "@radix-ui/react-dialog": "^1.1.14", |
| 34 | + "@radix-ui/react-dropdown-menu": "^2.1.15", |
| 35 | + "@radix-ui/react-hover-card": "^1.1.14", |
| 36 | + "@radix-ui/react-popover": "^1.1.14", |
| 37 | + "@radix-ui/react-select": "^2.2.5", |
| 38 | + "@radix-ui/react-tabs": "^1.1.12", |
| 39 | + "@radix-ui/react-toast": "^1.2.15", |
| 40 | + "@radix-ui/react-toggle-group": "^1.1.10", |
| 41 | + "@radix-ui/react-tooltip": "^1.2.7", |
| 42 | + "classnames": "^2.5.1", |
| 43 | + "date-fns": "^2.28.0", |
| 44 | + "date-fns-tz": "^2.0.1", |
| 45 | + "downshift": "^9.0.10", |
| 46 | + "lucide-react": "^0.536.0" |
| 47 | + }, |
| 48 | + "devDependencies": { |
| 49 | + "@chromatic-com/storybook": "^4.1.0", |
| 50 | + "@storybook/addon-a11y": "^9.1.1", |
| 51 | + "@storybook/addon-docs": "^9.1.1", |
| 52 | + "@storybook/addon-onboarding": "^9.1.1", |
| 53 | + "@storybook/addon-vitest": "^9.1.1", |
| 54 | + "@storybook/react-vite": "^9.1.1", |
| 55 | + "@types/node": "^24.2.0", |
| 56 | + "@types/react": "^18.2.0", |
| 57 | + "@types/react-dom": "^18.2.0", |
| 58 | + "@typescript-eslint/eslint-plugin": "^6.2.1", |
| 59 | + "@typescript-eslint/parser": "^6.2.1", |
| 60 | + "@vitejs/plugin-react-swc": "^3.11.0", |
| 61 | + "@vitest/browser": "^3.2.4", |
| 62 | + "@vitest/coverage-v8": "^3.2.4", |
| 63 | + "autoprefixer": "^10.4.21", |
| 64 | + "eslint": "^8.23.1", |
| 65 | + "eslint-config-react-app": "^7.0.1", |
| 66 | + "eslint-plugin-curly-quotes": "^1.0.4", |
| 67 | + "eslint-plugin-unicorn": "^41.0.0", |
| 68 | + "playwright": "^1.54.2", |
| 69 | + "postcss": "^8.5.6", |
| 70 | + "prettier": "^2.5.1", |
| 71 | + "prettier-plugin-organize-imports": "^3.2.2", |
| 72 | + "react": "^18.2.0", |
| 73 | + "react-dom": "^18.2.0", |
| 74 | + "storybook": "^9.1.1", |
| 75 | + "tailwindcss": "^3.4.0", |
| 76 | + "typescript": "^5.9.2", |
| 77 | + "vite": "^7.0.6", |
| 78 | + "vite-plugin-svgr": "^4.3.0", |
| 79 | + "vite-tsconfig-paths": "^5.1.4", |
| 80 | + "vitest": "^3.2.4" |
| 81 | + }, |
| 82 | + "scripts": { |
| 83 | + "build": "vite build && tsc --emitDeclarationOnly", |
| 84 | + "storybook": "storybook dev -p 6006", |
| 85 | + "build-storybook": "storybook build", |
| 86 | + "format": "prettier --write 'src/**/*.{ts,tsx}'", |
| 87 | + "format-check": "prettier --check 'src/**/*.{ts,tsx}'", |
| 88 | + "lint": "tsc --noEmit && eslint 'src/**/*.{ts,tsx,js,jsx}' --fix --max-warnings=0" |
| 89 | + }, |
| 90 | + "eslintConfig": { |
| 91 | + "extends": [ |
| 92 | + "react-app", |
| 93 | + "plugin:unicorn/recommended" |
| 94 | + ], |
| 95 | + "plugins": [ |
| 96 | + "curly-quotes", |
| 97 | + "react-hooks" |
| 98 | + ], |
| 99 | + "rules": { |
| 100 | + "unicorn/catch-error-name": "off", |
| 101 | + "unicorn/consistent-function-scoping": "off", |
| 102 | + "unicorn/consistent-destructuring": "off", |
| 103 | + "unicorn/expiring-todo-comments": "off", |
| 104 | + "unicorn/prefer-json-parse-buffer": "off", |
| 105 | + "unicorn/prefer-object-from-entries": "off", |
| 106 | + "unicorn/prefer-spread": "off", |
| 107 | + "unicorn/prevent-abbreviations": "off", |
| 108 | + "unicorn/no-array-callback-reference": "off", |
| 109 | + "unicorn/no-array-for-each": "off", |
| 110 | + "unicorn/no-array-reduce": "off", |
| 111 | + "unicorn/no-nested-ternary": "off", |
| 112 | + "unicorn/no-null": "off", |
| 113 | + "unicorn/no-useless-undefined": [ |
| 114 | + "error", |
| 115 | + { |
| 116 | + "checkArguments": false |
| 117 | + } |
| 118 | + ], |
| 119 | + "unicorn/numeric-separators-style": "off", |
| 120 | + "curly-quotes/no-straight-quotes": "warn", |
| 121 | + "react-hooks/rules-of-hooks": "error", |
| 122 | + "react-hooks/exhaustive-deps": "error", |
| 123 | + "@typescript-eslint/no-restricted-imports": [ |
| 124 | + "error", |
| 125 | + { |
| 126 | + "paths": [ |
| 127 | + { |
| 128 | + "name": "lucide-react", |
| 129 | + "message": "Use `src/ui/icons` instead of `lucide-react`" |
| 130 | + } |
| 131 | + ] |
| 132 | + } |
| 133 | + ], |
| 134 | + "no-restricted-imports": [ |
| 135 | + "error", |
| 136 | + { |
| 137 | + "paths": [ |
| 138 | + { |
| 139 | + "name": "lucide-react", |
| 140 | + "importNames": [ |
| 141 | + "*" |
| 142 | + ], |
| 143 | + "message": "Please import only the specific icons you need from 'lucide-react' to enable tree-shaking." |
| 144 | + } |
| 145 | + ] |
| 146 | + } |
| 147 | + ] |
| 148 | + } |
| 149 | + }, |
| 150 | + "prettier": { |
| 151 | + "semi": false, |
| 152 | + "printWidth": 80 |
| 153 | + } |
| 154 | +} |
0 commit comments