2.0.86-alpha.0 • Published 3 years ago

@biz-storefront/bizy v2.0.86-alpha.0

Weekly downloads
196
License
ISC
Repository
-
Last release
3 years ago

Bizy - Bizcommerce component library

A 🌲 tree-shakeable collection of "styleless" Vue.js (dumb) components, ECMAScript 6 native modules ready, designed for customized ecommerce experiences.

This project is part of a larger effort to create a reusable codebase to all Bizcommerce products and services. Checkout more at biz-storefront umbrella project.

Install

npm install git@bitbucket.org:bizfrontend/component-library.git

Usage

import { SwatchesCard } from 'bizy'

new Vue({
    components: { SwatchesCard },
    template: `<swatches-card :attributes="{}" @chosen="setId"></swatches-card>`
})

Components

Field

A field is a very shallow component, to be used inside html form components, that usually renders a single node and have no dependencies.

Form

Obviously renders pre-defined of configurable document forms taking the responsability of input validation and compositions.

List

Used to explicitly tell the developer that a imported component root is a ul or ol html tag, usually expecting an array like "items" as :prop.

Item

It's how each element of a list is called.

Box

Usually a shallow component with a root <div> or <span> tag that is not an field nor an item.

Card

When a box have a deep tree inside.

Component

An assembler of multiple bizy components is recursively called, guess what? Component.

The following is a list of every component supported right now:

  • AddressCard
  • AddressForm
  • AdressList
  • AmountBox
  • AuthenticationComponent
  • CouponCard
  • FieldBox
  • LoginCard
  • PostcodeField
  • RegisterForm
  • RegisterComponent
  • ShippingCard
  • ShippingList
  • SpinnerLoader
  • SwatchesCard

This packages also provides and uses a few mixins:

  • Localizable
  • Localizator

Development

Always write your components in order to be usefull with the minimal transpilation required as possible.

Tests

npm run test:components
npm run test:integration

Generate docs

npm run docs
2.0.86-alpha.0

3 years ago

2.0.83-alpha.0

3 years ago

2.0.81-alpha.0

3 years ago

2.0.79-alpha.0

3 years ago

2.0.78-alpha.0

3 years ago

2.0.77-alpha.0

3 years ago

2.0.75-alpha.0

3 years ago

2.0.72-alpha.0

3 years ago

2.0.67-alpha.0

3 years ago

2.0.66-alpha.0

3 years ago

2.0.62-alpha.0

3 years ago

2.0.63-alpha.0

3 years ago

2.0.57-alpha.0

3 years ago

2.0.56-alpha.0

3 years ago

2.0.53-alpha.0

3 years ago

2.0.51-alpha.0

3 years ago

2.0.50-alpha.0

3 years ago

2.0.48-alpha.0

3 years ago

2.0.44-alpha.0

3 years ago

2.0.41-alpha.0

3 years ago

2.0.42-alpha.0

3 years ago

2.0.34-alpha.0

3 years ago

2.0.33-alpha.0

3 years ago

2.0.25-alpha.0

3 years ago

2.0.23-alpha.0

3 years ago

2.0.24-alpha.0

3 years ago

2.0.14-alpha.0

3 years ago

2.0.7-alpha.0

3 years ago

2.0.6-alpha.0

3 years ago

2.0.4-alpha.0

3 years ago

2.0.1-alpha.0

3 years ago

2.0.3-alpha.0

3 years ago

2.0.0-alpha.0

3 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago