7.0.0 • Published 1 year ago

@smikitky/rb-components v7.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
1 year ago

React-Bootstrap Components

Project-agnostic component sets used with react-bootstrap.

Usage

Like other components of react-bootstrap, package consumers should directly require or import components in the lib directory.

import IconButton from '@smikitky/rb-components/lib/IconButton';

These are written in ES2015 with object-rest-spread, so you'll need to transpile them using Babel or TypeScript set up for your project. Scripts in node_modules are often configured to be ignored, so you may have to specify that scripts under @smikitky/rb-components should be transpiled.

Aliasing to the rb-components/lib is also a good idea.

Therefore your webpack.config.js would look like this:

loaders: [{
  test: t => (/\.jsx?/.test(t) && (/rb-components/.test(t) || !/node_modules/.test(t))),
  loader: 'babel-loader',
  query: {
    presets: ['es2015', 'react'],
    plugins: ['transform-object-rest-spread']
  }
}],
resolve: {
  modules: ['front-ui'],
  alias: { rb: '@smikitky/rb-components/lib' },
}

Polyfill scripts (like Promises) are not included. You should provide your own polyfills if necessary.

Requirements

The followings should be manually enabled in your project:

  • Font Awesome (CSS, optional)
  • Bootstrap (CSS Only)

These packages are marked as dependencies. These will not be included in your final bundle unless you actually use the relevant components.

  • classnames
  • moment
  • tinycolor2

Demo

A small demo app is available via webpack-dev-server.

npm start

Note

This package is basically intended for internal use only.

License

MIT

7.0.0

1 year ago

6.1.1

1 year ago

6.1.0

3 years ago

6.0.2

3 years ago

6.0.1

3 years ago

6.0.0

4 years ago

6.0.0-3

4 years ago

6.0.0-1

4 years ago

6.0.0-2

4 years ago

6.0.0-0

4 years ago

5.6.0

4 years ago

5.5.1

5 years ago

5.5.0

5 years ago

5.4.4

5 years ago

5.4.3

5 years ago

5.4.2

5 years ago

5.4.1

5 years ago

5.4.0

5 years ago

5.3.0

5 years ago

5.2.2

6 years ago

5.2.1

6 years ago

5.1.2

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

3.0.0

6 years ago

2.7.0

6 years ago

2.6.0

6 years ago

2.5.0

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.1.0

6 years ago

2.0.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago