Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
view-container / src / no-parser / stringifyRules.tsx
Size: Mime:
// @flow
import { Interpolation } from '../types'

const stringifyRules = (
  rules: Array<Interpolation>,
  selector: string,
  prefix: string
): Array<string> => [
  rules.reduce(
    (str: string, partial: Interpolation, index: number): string =>
      str +
      // NOTE: This is to not prefix keyframes with the animation name
      ((index > 0 || !prefix) && selector ? selector : '') +
      (partial && Array.isArray(partial)
        ? partial.join('')
        : partial.toString()),
    ''
  ),
]

export default stringifyRules