Detalhes do pacote

styletron-standard

styletron157.8kMIT3.1.0

Standard interfaces for Styletron

readme (leia-me)

styletron-standard

npm version dependencies status

Opinionated, standard interfaces for Styletron.

Check our documentation at styletron.org.

Installation

yarn add styletron-standard

API

Style object interface

import type { StyleObject } from "styletron-standard";

styletron-standard defines a specific style object interface (along with corresponding Flow type definitions).

Engine interface

import type { StandardEngine } from "styletron-standard";

styletron-standard also defines a standard engine interface.

interface StandardEngine {
  renderStyle,
  renderKeyframes,
  renderFontFace,
};

Driver

import type { StandardEngine } from "styletron-standard";

changelog (log de mudanças)

2.5.8

  • Update TypeScript definitions to reflect stateless functional component usage (#124) Thanks @faddee!

2.5.7

  • Added styletron-preact package
  • Use stateless functional component in styled function in styletron-react
  • Minor docs updates

2.5.6

2.5.5

  • Change prop-types package from peer to regular dependency (#118) Thanks @faddee!

2.5.4

  • Add prop-types package for React 15.5 compatibility (#116) Thanks @jbellsey!

2.5.3

2.5.2

  • Don't pass innerRef in styletron-react (#80) Thanks @faddee!
  • Improvements to TypeScript definition (#79) Thanks @faddee!

2.5.1

  • Improvements to TypeScript definition (#65) Thanks @faddee!
  • Fix READMEs on npm (Upstream registry fix when used by Lerna)

2.5.0

  • Allow styled to pass a className to regular components (#64) Thanks @faddee!

2.4.0

  • Make stylesheets optional in StyletronClient constructor (#59) Thanks @Gandem!
  • Removed leading space from class names generated from styletron-utils (#57) Thanks @mmedal!

2.3.0

  • Performance improvement via hyphenateStyleName memoization (#56)
  • Added TypeScript definitions (#52) @faddee