Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@teamleader/ahoy
Advanced tools
Ahoy is a set of React components that implement the Teamleader design specification.
Ahoy can be installed as an npm package:
$ npm install --save @teamleader/ahoy
or
$ yarn install @teamleader/ahoy
In this minimal example, we import a Button
with styles already bundled:
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from '@teamleader/ahoy';
ReactDOM.render(<Button label="Hello World!" />, document.getElementById('app'));
Import the CSS into your project via JS or CSS.
JS
import '@teamleader/ahoy/es/index.css';
or CSS
@import url('@teamleader/ahoy/es/index.css');
This library officially supports the last two versions of the major browsers. This is mainly because of dependencies and ease of mind.
To work in the project you will need a node version supporting ES6 syntax. Although the project is built using the Babel compiler, we use some ES6 features on the development server. Consider using n or nvm to handle different node versions!
To start the spec site locally, follow these simple steps:
$ git clone https://github.com/teamleadercrm/ui
$ cd ui/
$ yarn install
$ yarn start
Open up a browser and the local spec will be available at http://localhost:3000/.
To start the project on another port, set the PORT
variable when running the start
command.
As in this example for port 3001
:
$ PORT=3001 yarn start
Create PR with your desired changes
Bump the version in package.json
and commit with message Version bump
. Semantic Versioning
Update CHANGELOG.md
Place ## [new.version.number] - yyy-mm-dd
above last release
Add heading that best fits your change:
### Added
### Changed
### Deprecated
### Removed
### Fixed
### Dependency updates
Add you change in format Component: short-description ([github-username](link-to-github-user)) in [#PR-ID](link-to-PR)
Commit with message Update changelog
and push.
EXAMPLE:
## [16.4.3] - 2022-10-31
### Fixed
- `Select`: Allow multiple selects being rendered at once ([@stefaandevylder](https://github.com/stefaandevylder)) in [#2422](https://github.com/teamleadercrm/ui/pull/2422)
Once the pull request has the needed amount of approvals, merge it into the next-release
branch.
Github Actions will create a tag + release based on the version
property in package.json
In your console
, pull the next-release
branch.
Publish
to npm
using the npm publish --access=public
command.
Merge
the next-release
branch into master
and push to Github
This project is licensed under the terms of the MIT license.
FAQs
Teamleader's Ahoy design system
The npm package @teamleader/ahoy receives a total of 163 weekly downloads. As such, @teamleader/ahoy popularity was classified as not popular.
We found that @teamleader/ahoy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.