From d078029837d2b229aba1874a788b2a52559b251f Mon Sep 17 00:00:00 2001 From: Mark Eibes Date: Tue, 28 Jul 2020 10:22:14 +0200 Subject: [PATCH 1/2] Add keyframes --- src/React/Basic/Emotion.js | 2 ++ src/React/Basic/Emotion.purs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/React/Basic/Emotion.js b/src/React/Basic/Emotion.js index c775121..3ebf01e 100644 --- a/src/React/Basic/Emotion.js +++ b/src/React/Basic/Emotion.js @@ -36,3 +36,5 @@ exports.global = Emotion.Global; exports.css = _homogeneousDict => Emotion.css; exports.important = prop => typeof prop === "string" ? prop + " !important" : prop; + +exports.keyframes = _homogeneousDict => Emotion.keyframes; diff --git a/src/React/Basic/Emotion.purs b/src/React/Basic/Emotion.purs index 608888e..d0e51ba 100644 --- a/src/React/Basic/Emotion.purs +++ b/src/React/Basic/Emotion.purs @@ -9,6 +9,7 @@ module React.Basic.Emotion , elementKeyed , css , important + , keyframes , nested , merge , str @@ -134,6 +135,8 @@ foreign import css :: forall r. Homogeneous r StyleProperty => { | r } -> Style foreign import important :: StyleProperty -> StyleProperty +foreign import keyframes :: forall r. Homogeneous r StyleProperty => { | r } -> StyleProperty + nested :: Style -> StyleProperty nested = unsafeCoerce From ec05f0a5d9c219113c807b5608485dc3cfea1e32 Mon Sep 17 00:00:00 2001 From: Mark Eibes Date: Tue, 28 Jul 2020 14:26:04 +0200 Subject: [PATCH 2/2] Export global --- src/React/Basic/Emotion.purs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/React/Basic/Emotion.purs b/src/React/Basic/Emotion.purs index d0e51ba..115987f 100644 --- a/src/React/Basic/Emotion.purs +++ b/src/React/Basic/Emotion.purs @@ -8,6 +8,7 @@ module React.Basic.Emotion , element , elementKeyed , css + , global , important , keyframes , nested