Skip to content

Commit 121b2d2

Browse files
committed
Update bower deps
1 parent 5bf080d commit 121b2d2

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

bower.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@
2020
"bower_components",
2121
"test",
2222
"tests"
23-
]
23+
],
24+
"dependencies": {
25+
"purescript-console": "^4.2.0",
26+
"purescript-effect": "^2.0.1",
27+
"purescript-foreign": "^5.0.0",
28+
"purescript-generics-rep": "^6.1.1",
29+
"purescript-ordered-collections": "^1.6.1",
30+
"purescript-prelude": "^4.1.1",
31+
"purescript-refs": "^4.1.0",
32+
"purescript-test-unit": "^15.0.0",
33+
"purescript-unordered-collections": "^1.8.2",
34+
"purescript-cssom": "^0.0.2"
35+
}
2436
}

src/Stylesheet/Internal/AddStyle.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Prelude (discard, pure)
44
import Effect (Effect)
55
import Data.Foldable (foldMap)
66

7-
import Stylesheet.Types.Stylesheet (Stylesheet(..), addVirtualStylesheet)
7+
import Stylesheet.Types.Stylesheet (Stylesheet, addVirtualStylesheet)
88
import Stylesheet.Types.CSSRuleSet (CSSRuleSet)
99
import Stylesheet.Types.Primitives (CSSSelector)
1010
import Stylesheet.Types.VirtualStylesheet

src/Stylesheet/Internal/DomActions.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Stylesheet.Internal.DomActions where
22

3-
import Prelude
3+
import Prelude (Unit, bind, discard, pure, show, unit, (<$>), (<>), (==))
44
import Data.Maybe (Maybe(..))
55
import Data.Traversable (find, traverse, traverse_)
66
import Effect (Effect)

src/Stylesheet/Types/CSSRuleSet.purs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Stylesheet.Types.CSSRuleSet where
33
import Prelude (class Monoid, class Semigroup, map, pure, ($), (<<<))
44
import Stylesheet.Types.Primitives
55

6-
-- | CSSRuleSet is what we build up for a type
6+
-- | CSSRuleSet is what we build up for a style
77
newtype CSSRuleSet p
88
= CSSRuleSet (Array (CSSRule p))
99

@@ -15,12 +15,15 @@ data CSSRule p
1515
| Lens (p -> CSSText)
1616
| MediaQuery MediaQueryText (CSSRuleSet p)
1717

18+
-- | Create a rule that takes no props
1819
str :: forall props. String -> CSSRuleSet props
1920
str = CSSRuleSet <<< pure <<< Const <<< CSSText
2021

22+
-- | Create a rule that receives the props
2123
fun :: forall props. (props -> String) -> CSSRuleSet props
2224
fun = CSSRuleSet <<< pure <<< Lens <<< (map CSSText)
2325

26+
-- | Create a media query
2427
media :: forall props. String -> CSSRuleSet props -> CSSRuleSet props
2528
media queryStr subStyle
2629
= CSSRuleSet <<< pure $ MediaQuery (MediaQueryText queryStr) subStyle

0 commit comments

Comments
 (0)