Files
lucide/docs/package.json
T
Eric FennisandClaude Opus 5.5 9e7b1ce5a9 feat(site): Add custom color picker (#5290)
* feat(docs): add custom color picker built on vue-color

Replace the native color input in the icon customizers with a dropdown
built on vue-color's ChromePicker: a saturation area, hue and alpha
sliders, and an eyedropper button where the browser supports it.

- Knobs use the same 20px size, shadow and hover/active rings as the
  customizer's range slider thumbs
- The panel is teleported to the body and positioned with floating-ui,
  so the sidebar's scroll container doesn't clip it
- vue-color is loaded lazily when the picker is about to open
- Keyboard: Tab moves through the panel and on to the hex field,
  Shift+Tab goes back, Escape closes and returns focus to the swatch.
  vue-color's sliders prevent the default of every key, so Tab is
  handled by hand
- Colors are emitted as hex, with 8 digits when alpha is below 100%

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FhybXR7xuDECHDUz2n

* feat(docs): remove opacity slider from color picker

The picker now only produces opaque colors, always emitted as 6-digit
hex. The hue slider sits alone next to the eyedropper button, and the
popover no longer reserves height for the second slider.

Also binds aria-expanded as a boolean again, which fixes the vue-tsc
error from the previous commit. Vue renders false as "false".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FhybXR7xuDECHDUz2n

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-24 17:01:00 +01:00

88 lines
3.3 KiB
JSON

{
"name": "@lucide/docs",
"version": "1.0.0",
"description": "",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"docs:dev": "pnpm run /^prebuild:.*/ && vitepress dev",
"docs:build": "pnpm run /^prebuild:.*/ && vitepress build",
"docs:preview": "vitepress preview",
"build:docs": "NODE_OPTIONS=--max-old-space-size=8192 vitepress build",
"prebuild:iconNodes": "node ./scripts/writeIconNodes.mts",
"prebuild:metaJson": "node ./scripts/writeIconMetaIndex.mts",
"prebuild:releaseJson": "node ./scripts/writeReleaseMetadata.mts",
"prebuild:categoriesJson": "node ./scripts/writeCategoriesMetadata.mts",
"prebuild:relatedIcons": "node ./scripts/writeIconRelatedIcons.mts",
"prebuild:iconDetails": "node ./scripts/writeIconDetails.mts",
"prebuild:iconPopularity": "node --env-file-if-exists=.env ./scripts/writeiconPopularity.mts && node ./scripts/writeiconPopularityIndex.mts",
"prebuild:brandStopwords": "node ./scripts/writeBrandStopwords.mts",
"prebuild:sponsors": "node --env-file-if-exists=.env ./scripts/writeSponsorsData.mts",
"prebuild:writeLabIconNodes": "node ./scripts/writeLabIconNodes.mts",
"prebuild:writeLabIconMetaIndex": "node ./scripts/writeLabIconMetaIndex.mts",
"postbuild:vercelJson": "node ./scripts/writeVercelOutput.mts",
"dev": "nitropack dev",
"prebuild:api": "nitropack prepare",
"build:api": "NODE_OPTIONS=--max-old-space-size=8192 nitropack build",
"build": "pnpm run /^prebuild:.*/ && pnpm run build:api && pnpm run build:docs && pnpm postbuild:vercelJson",
"preview": "node .output/server/index.mjs",
"typecheck": "vue-tsc --noEmit"
},
"author": "Eric Fennis",
"license": "ISC",
"devDependencies": {
"@docsearch/js": "3.8.2",
"@lucide/build-icons": "workspace:*",
"@lucide/helpers": "workspace:*",
"@lucide/shared": "workspace:*",
"@rollup/plugin-replace": "^6.0.3",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@types/semver": "^7.8.0",
"h3": "^1.15.11",
"markdown-it": "^15.0.3",
"markdown-it-container": "^4.0.0",
"nitropack": "^2.13.5",
"rollup-plugin-copy": "^3.5.0",
"semver": "^7.8.5",
"sharp": "^0.35.5",
"shiki": "^4.5.0",
"simple-git": "^4.0.2",
"sitemap": "^9.0.1",
"svg-path-commander": "^2.3.3",
"svg-pathdata": "^9.0.0",
"svgson": "^5.3.1",
"typescript": "^6.0.3",
"vitepress": "^1.6.4",
"vitepress-plugin-group-icons": "^1.7.6",
"vitepress-plugin-llms": "^1.13.5",
"vue-tsc": "^3.3.11"
},
"dependencies": {
"@docsearch/css": "3.8.2",
"@floating-ui/vue": "^2.0.1",
"@headlessui/vue": "^1.7.23",
"@lucide/vue": "workspace:*",
"@openpanel/web": "^1.4.2",
"@react-email/components": "1.0.12",
"@vueuse/components": "^14.4.0",
"@vueuse/core": "^14.4.0",
"@vueuse/integrations": "^14.4.0",
"botid": "^1.5.11",
"element-to-path": "^1.2.1",
"fuse.js": "^7.5.0",
"jszip": "^3.10.1",
"lodash-es": "^4.18.1",
"lucide": "workspace:*",
"lucide-react": "workspace:*",
"motion-v": "2.11.0",
"react": "19.3.1",
"react-dom": "19.3.1",
"resend": "^6.34.1",
"sandpack-vue3": "3.1.12",
"vue": "^3.5.45",
"vue-color": "^3.3.3",
"vue-sonner": "^2.0.9"
}
}