Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@holidayextras/ui-toolkit
Advanced tools
All the available UI Toolkit Components are to be listed in the dist/index.js
so they can be accessed via:
var UIToolkit = require('ui-toolkit');
// Custom Components
<UIToolkit.Button />
<UIToolkit.Flag />
<UIToolkit.Rating />
<UIToolkit.Reviews />
<UIToolkit.Tile />
<UIToolkit.Image />
<UIToolkit.Input />
If you would like to cherry pick which components to include in your project, you can use this method:
var Button = require('ui-toolkit').Button;
<Button />
please note this still includes the entire ui-toolkit
To install ui-toolkit
locally for development:
git clone git@github.com:holidayextras/ui-toolkit.git
cd ui-toolkit
npm install
If you have any problems installing the ui-toolkit then please view the troubleshooting guide which contains common errors and solutions. If you cannot find your specific problem then please create a github issue
Generate a component & follow the prompts
cd src/components
mkdir your-new-component
cd your-new-component
Then require this file in dist/index.js
// dist/index.js
UIToolkit.YourNewComponent = require('./components/your-new-component');
Add the functionality to your component in your-new-component/your-new-component.jsx
.
The styles are currently written in LESS and live in the component directory.
You will need to create a new file for your component
cd src/less
touch _your-new-component.less
open _your-new-component.less
Then import this file in src/less/toolkit.less
// src/less/toolkit.less
@import "_your-new-component";
Running grunt less
will compile this to dist/toolkit.css
There are two ways you can view your component:
Note: This needs to and will be be simplified
./docs/examples/
, create a new jsx file that describes your component. e.g.// docs/examples/YourNewComponent.jsx
var example = (
<UIToolkit.YourNewComponent foo="bar" />
);
ReactDOM.render(example, mountNode);
.docs/src/Nav.jsx
../docs/src/Components.jsx
, add a new <article>
, similar to the existing ones e.g.<article>
<h3 id="your-new-component">Your new component</h3>
<p>Your new component description</p>
<CustomComponent codeText={fs.readFileSync(__dirname + '/../examples/YourNewComponent.jsx', 'utf8')} />
</article>
npm run docs
from the root of ui-toolkit
cd src/components/your-new-component
npm run build-dev
Browserify bundles from the dev/example.jsx
. Loading the dev/index.html
in your browser will display the component.
A collection of custom themes for UI Toolkit are coming soon.
You can view the React Components in your browser by generating and viewing the docs:
Run & watch the documentation in development:
npm run docs
Building so you can upload to a remote docs server that does not require Node:
grunt docs-build
You will only need to upload the following static assets once generated:
To create a new release of the ui-toolkit you need to bump the version number in the package.json file, once you PR is merged in this will create a new release on github and push the changes to aws automatically. You will then have to manually publish the changes to npm. This procedure is the same for both minor and major releases.
3.4.4 - 2018-02-15
FAQs
UI Toolkit
We found that @holidayextras/ui-toolkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.