Giter Site home page Giter Site logo

atomiccomponent's People

Contributors

sebworks avatar

Watchers

 avatar

Forkers

contolini

atomiccomponent's Issues

CF integration

@sebworks I'm thinking we should keep this repo separate from CF. It's exceptionally well abstracted and stands fine on its own. CF can just inherit from it. I imagine you had this in mind when you wrote it. I propose we:

  1. Move this repo to cfpb/atomic-component.
  2. Publish it to npm as atomic-component.
  3. Have CF organisms, molecules and atoms inherit from atomic-component.

For example, the code in table.js would be moved into cf-tables.js and instead of importing

var closest = require( '../../utilities/dom-closest' ).closest;
var config = require( '../../utilities/config' );
var Organism = require( './Organism' );

at the top of the file, it'd be

var closest = require( 'atomic-component/utils/dom-closest' ).closest;
var config = require( 'atomic-component/utils/config' );
var Organism = require( 'atomic-component/organism' );

Here's the complete example. I updated my cf sandbox to use it:

git clone [email protected]:contolini/capital-framework-sandbox.git
cd capital-framework-sandbox
npm i && npm start

Open http://localhost:3000/components/cf-tables/ and the table at the bottom should properly sort.

Let's chat later today!

cc @KimberlyMunoz @jimmynotjim @virginiacc @mistergone @cfarm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.