'use strict'

var BridgeObservable = require('vigour-native/lib/bridge/BridgeObservable')
var Plugin = require('vigour-native/lib/bridge/Plugin')
var name = require('../package.json').name

var AlphaColor = new BridgeObservable({
  color: {
    condition: {
      $hex: 'color'
    }
  },
  opacity: {
    condition: {
      $number: 'percentage'
    }
  },
  useValue: true
}).Constructor

module.exports = exports = new Plugin({
  key: name,
  background: new AlphaColor(),
  text: new AlphaColor(),
  display: {}
})

'use strict'

var BridgeObservable = require('vigour-native/lib/bridge/BridgeObservable')
var Plugin = require('vigour-native/lib/bridge/Plugin')
var name = require('../package.json').name

var AlphaColor = new BridgeObservable({
  color: {
    // condition: {
    //   $hex: 'color'
    // }
  },
  opacity: {
    // condition: {
    //   $number: 'percentage'
    // }
  },
  useValue: true
}).Constructor

module.exports = exports = new Plugin({
  key: name,
  background: new AlphaColor(),
  text: new AlphaColor(),
  display: {}
})

Comment out validation for now