@aiera-inc/react-slots
Version:
A simple utility for adding named slots to React components, inspired by the slot pattern in Vue.
103 lines (102 loc) • 2.37 kB
JSON
{
"name": "@aiera-inc/react-slots",
"version": "0.1.3",
"description": "A simple utility for adding named slots to React components, inspired by the slot pattern in Vue.",
"keywords": [
"react",
"slots",
"react-slots",
"ui",
"ui-components",
"frontend",
"typescript",
"javascript",
"utility",
"component",
"composition",
"lib",
"library",
"aiera",
"aiera-inc",
"@aiera",
"@aiera-inc",
"aiera-inc/react-slots"
],
"homepage": "https://github.com/aiera-inc/react-slots#readme",
"bugs": {
"url": "https://github.com/aiera-inc/react-slots/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aiera-inc/react-slots.git"
},
"license": "MIT",
"author": "Aiera Inc.",
"type": "module",
"exports": {
".": {
"import": "./dist/react-slots.js",
"types": "./dist/react-slots.d.ts"
}
},
"main": "dist/react-slots.js",
"types": "dist/react-slots.d.ts",
"directories": {
"example": "example"
},
"files": [
"dist"
],
"scripts": {
"test": "jest",
"build": "rm -rf ./dist & npm run build:main & npm run build:types",
"build:main": "node ./build.js",
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist",
"lint": "eslint .",
"fmt": "prettier --write .",
"prepare": "husky"
},
"devDependencies": {
"@eslint/js": "^9.26.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.14",
"@types/react": "18.2.0",
"esbuild": "^0.25.4",
"eslint": "^9.26.0",
"eslint-plugin-react-hooks": "^5.2.0",
"expect-type": "^1.2.1",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^16.1.0",
"prettier": "^3.5.3",
"ts-jest": "^29.3.3",
"tslib": "^2.8.1",
"typescript": "^5.8.3",
"typescript-eslint": "^8.32.1"
},
"peerDependencies": {
"react": "18.2.0",
"react-dom": "18.2.0"
},
"prettier": {
"singleQuote": true,
"semi": true,
"trailingComma": "all",
"tabWidth": 2,
"printWidth": 100
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.json": [
"prettier --write"
],
"*.md": [
"prettier --write"
]
}
}