Sha256: ad522015ab3a3beab9cb2f67c177c38c934a6fab79da6d6b85fd4a792493a467

Contents?: true

Size: 424 Bytes

Versions: 6

Compression:

Stored size: 424 Bytes

Contents

Rev.registerComponent 'BlockGrid',

  buildClassName: ->
    classes =
      "RevBlockGrid": true

    addNum = (propName) =>
      prop = @props[propName]
      classes["#{propName}-block-grid-#{prop}"] = true if prop?

    addNum "small"
    addNum "medium"
    addNum "large"

    @classAdd classes

  render: ->
    console.warn('BlockGrid is deprecated.')
    <ul className={@buildClassName()}>{ @props.children }</ul>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
revelry_core-0.1.12.6 app/assets/javascripts/revelry/ui/grid/BlockGrid.js.cjsx
revelry_core-0.1.12.5 app/assets/javascripts/revelry/ui/grid/BlockGrid.js.cjsx
revelry_core-0.1.12.4 app/assets/javascripts/revelry/ui/grid/BlockGrid.js.cjsx
revelry_core-0.1.12.3 app/assets/javascripts/revelry/ui/grid/BlockGrid.js.cjsx
revelry_core-0.1.12.2 app/assets/javascripts/revelry/ui/grid/BlockGrid.js.cjsx
revelry_core-0.1.12.0 app/assets/javascripts/revelry/ui/grid/BlockGrid.js.cjsx