iCHEF web components library, built with React.
APACHE-2.0 License
Bot releases are hidden (Show)
ProgressPlugin
to show build progress.src/Text/*
is moved out to just src/
to maintain a simple, flat directory structure and prevent import confusion. (See 542c7b9)lib/
and es5/
no longer contain comments.<BasicRow>
no longer handles the null-basic-prop situation, as basic
prop was marked as required.doc/
folder -> demo/
.config/webpack.doc.js
-> config/webpack.demo.js
.server
-> demo
.bundle.(js|css)
-> gypcrete.(js|css)
.npm run demo
, now the start
script is an alias of demo
.Migrate row components:
<Button>
Migrate visual elements:
<Tooltip>
(now limits to top and bottom placements only)<AnchoredToolip>
(simplified to be more passive)Migrate HOC mixins:
anchored()
: place Component near a given anchor. DOM offset calculated by document-offset
package.renderToLayer()
: renders Component to another DOM node outside of React root.<IconLayout>
for displaying status on an <Icon>
.
<IconButton>
as an icon-only variant of <Button>
.
randId()
helper for generating a random String to used on DOM nodes.
Add stylelint to enforce consistent conventions and avoid errors in our stylesheets.
npm publish
with NPM_TOKEN
env variables in deploy.sh
.<Tag>
now adapts to the color of its parent more actively.<Button>
should turn red on error statewrapIfNotElement()
helper now takes an extra via
param to change how content
is passed to the Wrapper
component.bem.toString({ stripBlock: true })
.prop-types
package in dependencies
as official recommended.<SearchInput>
.prefixClass()
helper.react
& react-dom
to v15.5.PropTypes
to prop-types
package instead of import it from main React
object.React.createClass
to createReactClass
from create-react-class
package.enzyme
to 2.8.2 to support React v15.5, also install react-test-renderer
.icState()
is renamed to prefixState()
and add prefix with prefixClass()
helper.gyp-
react-addons-test-utils
package.<Checkbox>
with indeterminate
prop support.<IconCheckbox>
for icon-only checkbox./index.js
to check if every component under src/
is exported.<SearchInput>
now caches last-notified search value inside to prevent duplicated notifications.<SearchInput>
now tries to notify search upon reset button click.<RowComp>
.<Tooltip>
not showing its content.8px
instead of 4px
.<SearchInput>
is 8px
both vertically and horizontally.<RowCompBody>
is removed due to padding change. [ref].Published by zhusee2 over 7 years ago
eslint
and eslint-config-ichef
rules for linting JS codes..eslintrc.yml
to sepecify ESLint env and source type.eslint-loader
to show linter results ASAP during development..sublimelinterrc
to exclude folders from being linted in SublimeText.Published by zhusee2 over 7 years ago
Basic Webpack 2 configs, working with the following loaders:
npm run build
should compile src/
to 3 different targets:
dist/
: bundled & minified production JS library + CSS file.lib/
: Babel-transformed ES2015 JS modules (excluding CSS).es5/
: Babel-transformed CommonJS JS modules (excluding CSS).Add Babel plugin to strip CSS import lines from lib/
and es5/
modules.
Add webpack-dev-server
hosting documents from doc/
folder, manually sepecify doc/index.html
as dev server root.
Add react-hot-loader
to enable HOT on React components.