
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@kupibilet/icons
Advanced tools
[![NPM version][npm-img]][npm-url]
[
][daviddm-dev-url]
https://github.com/kupibiletdev/icons
yarn run build
open dist/index.html
Часто бывает что после оптимизации svg после дизайнеров они ломаются из-за того что были сделаны неустойчиво
fill-rule="evenodd"
ломает оптимизацию/src/icons
. Название иконки должно быть с приставкой kb_
.yarn build
, после чего убедиться, что в собранном спрайте (dist/sprite.js
) появилась новая иконка и она не пустая.npm version patch
(эту команду выполняет maintainer репозитория).npm i @kupibilet/icons --save-dev
/.storybook/head.html
подключить иконки с cdn: <script src="https://unpkg.com/@kupibilet/icons"></script>
stories.js
, после {story()}
: <div
dangerouslySetInnerHTML={{ __html: window.sprite.default() }}
style={{
display: 'none',
}}
/>
coming soon
В зависимости от иконки, у неё может быть два цвета.
Один определяется свойством fill
, другой stroke
.
Цвета в иконку передаются из стилей родительского компонента (для того, чтобы их удобно было менять вместе с цветом текста на кнопке, например):
fill: white
stroke: black
Также, через prop styleName
можно передать класс с нужными свойствами.
Доступные классы, на данный момент:
[daviddm-dev-url]: https://david-dm.org/kupibiletdev/icons#info=devDependencies) [npm-img]: https://badge.fury.io/js/icons.svg [npm-url]: https://www.npmjs.com/package/icons
FAQs
icons for kupibilet.ru
The npm package @kupibilet/icons receives a total of 3 weekly downloads. As such, @kupibilet/icons popularity was classified as not popular.
We found that @kupibilet/icons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.