2.4.0 • Published 28 days ago

@bcc-code/design-library-vue v2.4.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
28 days ago

BCC Design System Library

This library is a collection of tokens and components that conform to the BCC Design System.

Note This is the Vue implementation, for the CSS-only library see here

@bcc-code/design-library-vue

version license

Installation & Usage

Refer to the documentation for installation instructions and to Storybook for interactive example of the components and their variants (view the dev Storybook for unreleased changes).

Developing the package locally

Recommended IDE Setup

VSCode with the following plugins:

Prerequisites

This project uses pnpm, which you need to install before usage. The easiest way is to install it with npm:

npm install -g pnpm

Get started

Install dependencies:

pnpm install --frozen-lockfile

Then run Storybook when developing components to have a live reloading server to test them:

pnpm storybook

Run a live reloading unit test server:

pnpm test:unit

Some unit test use snapshots. Be sure to update snapshots after updating a component that has such a test:

pnpm test:unit:update-snapshots

Creating a new component

The repository contains a handy script for scaffolding a new component:

pnpm create-component ComponentName

This will create a Vue component, with accompanying test, stories and CSS files, and will also update the exports for the library.

Linting

This project includes a linting setup via ESLint, which includes Prettier. The linting settings are intentionally strict, and all Prettier alerts are treated as errors. This ensures the code is always formatted in the same way.

When using VS Code, install the ESLint plugin and make sure it is set to format on save, or manually add this to your VS Code settings:

  "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true
  },

You can manually run the linting command as well to check for linting errors:

pnpm lint

This command is also run in CI and will fail the build if there are any errors.

Errors can be automatically fixed by running

pnpm lint:fix

Building for production

To build the package for production, including types, run:

pnpm build

Releasing a new version

A new version can be released by running the Create New Version workflow from GitHub. This will update the version in the package.json, push a Git commit and tag, and create a new release in GitHub. Maintainers can publish this release, after which the new version will be pushed to npm.

Beta release

If the channel in the release workflow is set to beta, the release version will be tagged with beta. The first time the increment is taken into account, so a major beta release for v1.8.0 will create v2.0.0-beta.0, and a minor beta will create v1.9.0-beta.0. Every subsequent beta release will ignore the version and just increase the beta number, until a new release version is created, which will release the beta version as-is, so a major release for v2.0.0-beta.4 will release v2.0.0.

Dev releases

All commits to main will be released under the dev tag on npm, so they can be tested and installed immediately even if a new release hasn't come out.

Tokens

This repository includes a setup with tokens from the design system. These tokens are exported from Figma and can be found in src/tokens/input/figma.json.

To build the tokens from this source file, run:

pnpm build:tailwind

This will update the files of the Tailwind theme which can then be checked into Git.

License

This package is licensed under the Apache 2.0 license.

2.4.0

28 days ago

0.0.0-dev.5a2c864

2 months ago

0.0.0-dev.fb8119a

2 months ago

0.0.0-dev.cc2cfbc

2 months ago

2.3.0

2 months ago

0.0.0-dev.f00019e

2 months ago

0.0.0-dev.a3f6ba7

2 months ago

0.0.0-dev.9bcf934

2 months ago

0.0.0-dev.6d3ace3

3 months ago

0.0.0-dev.9c0cef9

3 months ago

2.2.4

3 months ago

0.0.0-dev.5e97fd0

3 months ago

0.0.0-dev.976e492

3 months ago

2.2.3

3 months ago

2.2.2

3 months ago

0.0.0-dev.51cfd23

3 months ago

0.0.0-dev.d13dd50

3 months ago

0.0.0-dev.d390c1f

4 months ago

2.2.1

4 months ago

0.0.0-dev.37193e3

4 months ago

0.0.0-dev.6a9efd1

4 months ago

0.0.0-dev.f7c7d39

4 months ago

2.2.0

4 months ago

0.0.0-dev.bf59b96

4 months ago

0.0.0-dev.dca7778

4 months ago

0.0.0-dev.b706df6

4 months ago

0.0.0-dev.c71276f

4 months ago

0.0.0-dev.fe2ac7d

4 months ago

2.1.0

4 months ago

0.0.0-dev.7a47adc

5 months ago

1.2.0

10 months ago

0.0.0-dev.e2e55ff

11 months ago

1.6.0

9 months ago

1.2.1

10 months ago

0.0.0-dev.74098b9

10 months ago

0.0.0-dev.fd7bd5a

10 months ago

0.0.0-dev.d61650d

10 months ago

0.0.0-dev.ea3b64d

10 months ago

2.0.0

6 months ago

0.0.0-dev.825f087

8 months ago

0.0.0-dev.5e07eb2

10 months ago

0.0.0-dev.38bf981

10 months ago

0.0.0-dev.77c97c1

8 months ago

0.0.0-dev.efea5c8

10 months ago

0.0.0-dev.cb1d8f0

8 months ago

0.0.0-dev.fbf03ed

8 months ago

0.0.0-dev.b84e2b2

9 months ago

0.0.0-dev.a362f4a

7 months ago

0.0.0-dev.b00064a

8 months ago

0.0.0-dev.cd49937

10 months ago

0.0.0-dev.1eba6f5

7 months ago

0.0.0-dev.7a488cd

11 months ago

0.0.0-dev.f112a5a

9 months ago

1.1.0

11 months ago

0.0.0-dev.23aaf75

10 months ago

0.0.0-dev.0d66ea8

9 months ago

0.0.0-dev.5f43ff1

8 months ago

0.0.0-dev.2ffd7c3

10 months ago

0.0.0-dev.cdbca1a

10 months ago

1.5.3

9 months ago

1.5.1

9 months ago

1.5.0

9 months ago

0.0.0-dev.1dba67e

10 months ago

0.0.0-dev.b82553e

10 months ago

0.0.0-dev.d8da1e5

8 months ago

2.0.0-beta.2

7 months ago

2.0.0-beta.1

8 months ago

2.0.0-beta.0

8 months ago

0.0.0-dev.39543b3

10 months ago

0.0.0-dev.c37cd90

9 months ago

0.0.0-dev.57d178f

11 months ago

2.0.0-beta.4

7 months ago

2.0.0-beta.3

7 months ago

0.0.0-dev.bf8330f

10 months ago

0.0.0-dev.d7ae461

11 months ago

0.0.0-dev.3a80b81

11 months ago

0.0.0-dev.c761d35

10 months ago

0.0.0-dev.cfcdb08

8 months ago

0.0.0-dev.e0f8778

10 months ago

0.0.0-dev.0b1acf1

10 months ago

0.0.0-dev.74e8398

10 months ago

0.0.0-dev.ee69245

10 months ago

0.0.0-dev.a6423ee

10 months ago

0.0.0-dev.45203b9

11 months ago

0.0.0-dev.10452fd

9 months ago

0.0.0-dev.45e7bc5

10 months ago

0.0.0-dev.845e5ad

8 months ago

0.0.0-dev.02f6e83

10 months ago

0.0.0-dev.913207b

10 months ago

0.0.0-dev.84cb791

6 months ago

0.0.0-dev.450092e

11 months ago

1.0.1

11 months ago

0.0.0-dev.d5f6d7b

10 months ago

1.0.0

11 months ago

0.0.0-dev.6583770

9 months ago

0.0.0-dev.66246bc

11 months ago

0.0.0-dev.ede1e8c

8 months ago

1.8.0

8 months ago

0.0.0-dev.357502a

10 months ago

1.4.3

10 months ago

1.4.2

10 months ago

1.4.1

10 months ago

1.4.0

10 months ago

0.0.0-dev.1c86746

10 months ago

0.0.0-dev.e5562b2

10 months ago

0.0.0-dev.bce2b69

10 months ago

0.0.0-dev.246c00c

11 months ago

0.0.0-dev.e0cdfde

10 months ago

0.0.0-dev.cf6f8cd

6 months ago

0.0.0-dev.d139ced

11 months ago

0.0.0-dev.1c4e03c

11 months ago

0.0.0-dev.7df3480

10 months ago

0.0.0-dev.10d230a

10 months ago

0.0.0-dev.45e2a3b

8 months ago

0.0.0-dev.c8876d9

10 months ago

0.0.0-dev.dbfb249

10 months ago

0.0.0-dev.7e2d2a9

8 months ago

0.0.0-dev.73862a3

7 months ago

0.0.0-dev.b9b22d2

6 months ago

0.0.0-dev.de3024c

10 months ago

0.0.0-dev.4ac582e

10 months ago

0.0.0-dev.b96e2bc

10 months ago

0.0.0-dev.594e2b8

8 months ago

0.0.0-dev.be0716b

10 months ago

0.0.0-dev.70b512f

10 months ago

0.0.0-dev.b13d8bb

11 months ago

0.0.0-dev.9f18ea5

7 months ago

0.0.0-dev.981d83f

10 months ago

0.0.0-dev.ad1fe32

7 months ago

0.0.0-dev.a04bda9

8 months ago

1.7.0

8 months ago

1.3.2

10 months ago

1.3.1

10 months ago

0.0.0-dev.8027d39

10 months ago

1.3.0

10 months ago

0.0.0-dev.a45d9d4

6 months ago

0.0.0-dev.af52f8d

9 months ago

0.0.0-dev.74b877a

10 months ago

0.0.0-dev.e7f0b61

8 months ago

0.0.0-dev.b8df02a

10 months ago

0.0.0-dev.62bb583

8 months ago

0.0.0-dev.de0d1a5

7 months ago

0.0.0-dev.03e1913

11 months ago

0.0.0-dev.87be3ad

8 months ago

0.0.0-dev.0bc13e3

10 months ago

0.0.0-dev.3dd49f6

8 months ago

0.0.0-dev.3325d7b

9 months ago

0.0.0-dev.10960c2

9 months ago

0.0.0-dev.eed3bca

8 months ago

0.0.0-dev.4353939

6 months ago

0.0.0-dev.e032d56

10 months ago

0.0.0-dev.4e0a0ff

7 months ago

0.0.0-dev.5348280

8 months ago

0.0.0-dev.c35bc62

11 months ago

0.0.0-dev.738e9f2

10 months ago

0.0.0-dev.d4e8356

11 months ago

0.0.0-dev.4b7c734

11 months ago

0.0.0-dev.fdf1ccf

11 months ago

0.0.0-dev.5230b73

11 months ago

0.0.0-dev.9aa4fa2

11 months ago

0.0.0-dev.837c76a

11 months ago

0.14.0

11 months ago

0.0.0-dev.af38261

11 months ago

0.0.0-dev.9934e50

11 months ago

0.0.0-dev.14cf87c

11 months ago

0.13.1

11 months ago