{"_id":"@callai-online/kbone-ui","name":"@callai-online/kbone-ui","dist-tags":{"latest":"1.0.14"},"versions":{"1.0.14":{"name":"@callai-online/kbone-ui","version":"1.0.14","description":"Weui component Library for kbone-ui","main":"index.js","scripts":{"dev":"rimraf dist/index.dev.js && rimraf dist/wx-components.dev.js && cross-env NODE_ENV=development webpack --config tool/webpack.config.js --progress --hide-modules","build":"rimraf dist/index.js && rimraf dist/wx-components.js && cross-env NODE_ENV=production webpack --config tool/webpack.config.js --progress --hide-modules","lint":"eslint src/**/*.js --fix && stylelint \"src/**/*.less\" --fix"},"repository":{"type":"git","url":"git+https://github.com/wechat-miniprogram/kbone-ui.git"},"keywords":["kbone","kbone-ui","weui"],"author":{"name":"wechat-miniprogram"},"license":"MIT","browserslist":["defaults","iOS >= 8"],"devDependencies":{"@babel/core":"^7.0.0","@babel/plugin-proposal-object-rest-spread":"^7.12.1","@babel/preset-env":"^7.0.0","autoprefixer":"^10.0.1","babel-loader":"^8.0.0","cross-env":"^5.0.5","css-loader":"^5.0.1","cssnano":"^4.1.10","eslint":"^5.14.1","eslint-config-airbnb-base":"13.1.0","eslint-friendly-formatter":"^4.0.1","eslint-loader":"^2.1.2","eslint-plugin-import":"^2.16.0","eslint-plugin-node":"^7.0.1","eslint-plugin-promise":"^3.8.0","html-loader":"^1.3.2","less":"^3.12.2","less-loader":"^7.0.2","postcss":"^8.1.4","postcss-loader":"^4.0.4","raw-loader":"^4.0.2","rimraf":"^3.0.2","stylelint":"^13.7.2","stylelint-config-standard":"^20.0.0","stylelint-webpack-plugin":"^2.1.1","terser-webpack-plugin":"^3.0.6","thread-loader":"^3.0.1","url-loader":"^4.1.1","webpack":"^4.29.6","webpack-bundle-analyzer":"^4.4.0","webpack-cli":"^3.2.3","webpack-dev-server":"^3.11.0"},"_id":"@callai-online/kbone-ui@1.0.14","gitHead":"55fa1e27295b8b26e43c1487167ea07345eb88a2","bugs":{"url":"https://github.com/wechat-miniprogram/kbone-ui/issues"},"homepage":"https://github.com/wechat-miniprogram/kbone-ui#readme","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-TylcPRBuQXxRrS2fDA9HGNNpgg1TCFpwupxdZEMUfQ04VRY0sn33Gof192Jn+ipjO6eaNd3IZEMBFcGQDTgASg==","shasum":"23c8aa8fe881bb677a859c8199f26c2422297b32","tarball":"https://registry.npmjs.org/@callai-online/kbone-ui/-/kbone-ui-1.0.14.tgz","fileCount":208,"unpackedSize":3256920,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDro4dlZhGDNQsNfBD9+GgjhGeeV93gFaWN9/m2Gz8eKwIhAMmv7+kudaT1Gp27XuQyyv2FNZm2ltqKz7fXT27lPT1H"}]},"_npmUser":{"name":"houlai","email":"holine.studio@gmail.com"},"directories":{},"maintainers":[{"name":"houlai","email":"holine.studio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kbone-ui_1.0.14_1746520600984_0.17171683630394252"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-06T08:36:40.915Z","1.0.14":"2025-05-06T08:36:41.213Z","modified":"2025-05-06T08:36:41.474Z"},"maintainers":[{"name":"houlai","email":"holine.studio@gmail.com"}],"description":"Weui component Library for kbone-ui","homepage":"https://github.com/wechat-miniprogram/kbone-ui#readme","keywords":["kbone","kbone-ui","weui"],"repository":{"type":"git","url":"git+https://github.com/wechat-miniprogram/kbone-ui.git"},"author":{"name":"wechat-miniprogram"},"bugs":{"url":"https://github.com/wechat-miniprogram/kbone-ui/issues"},"license":"MIT","readme":"# kbone-ui\n\n## 介绍\n\n提供给 Web 端的内置组件/weui 扩展库，底层采用 Web components 实现。\n\n## 安装\n\n```\nnpm install --save kbone-ui\n```\n\n## 使用\n\n```js\n// 只需在 Web 端引入，小程序端无需引入\nimport KBoneUI from 'kbone-ui'\n\nKBoneUI.register({\n    components: 'all', // 默认为全组件均可使用\n    // components: ['wx-input', 'mp-dialog'], // 可声明要使用哪些组件\n    mode: 'open', // Web components 的模式，默认为 open，不建议改动\n    style: { // 需要注入到 Web components 组件里的样式，默认为空\n        'wx-input': `.green {color: green;}`, // 注入给 placeholder-class 使用\n        'wx-textarea': `.green {color: green;}`, // 注入给 placeholder-class 使用\n        'mp-badge': `.blue {background: blue;}`, // 注入给 ext-class 使用\n    }\n})\n```\n\n## 和小程序端的不同\n\n* 布尔值属性，小程序端传入空串和 Web 端传入空串可能会有不同表现，建议统一 true 直接传入 'true' 字符串，false 直接传入 'false' 字符串\n* tagName 不同，小程序端的 tagName 统一为 WX-COMPONENT，Web 端则为正常的 tagName，建议使用 behavior 属性进行判断\n","readmeFilename":"README.md","_rev":"1-53d124d91b189dad09d21740c73c5b3b"}