1- module Html.Styled.Lazy exposing (lazy , lazy2 , lazy3 , lazy4 , lazy5 , lazy6 , lazy7 )
1+ module Html.Styled.Lazy exposing
2+ ( lazy, lazy2, lazy3, lazy4, lazy5, lazy6, lazy7
3+ , lazyWithNonce, lazy2WithNonce, lazy3WithNonce, lazy4WithNonce, lazy5WithNonce, lazy6WithNonce
4+ )
25
3- {- | **NOTE:** `Html.Lazy` goes up to `lazy8`, but `Html.Styled.Lazy` can only go
4- up to `lazy7` because it uses one of the arguments to track styling info.
6+ {- | **NOTE:** `Html.Lazy` goes up to `lazy8` and `lazy7WithNonce`, but
7+ `Html.Styled.Lazy` can only go up to `lazy7` and `lazy6WithNonce` because it
8+ uses one of the arguments to track styling info.
59
610Since all Elm functions are pure we have a guarantee that the same input
711
@@ -17,6 +21,7 @@ This is a really cheap test and often makes things a lot faster, but definitely
1721benchmark to be sure!
1822
1923@docs lazy, lazy2, lazy3, lazy4, lazy5, lazy6, lazy7
24+ @docs lazyWithNonce, lazy2WithNonce, lazy3WithNonce, lazy4WithNonce, lazy5WithNonce, lazy6WithNonce
2025
2126-}
2227
@@ -78,3 +83,45 @@ lazy6 =
7883lazy7 : (a -> b -> c -> d -> e -> f -> g -> Html msg ) -> a -> b -> c -> d -> e -> f -> g -> Html msg
7984lazy7 =
8085 VirtualDom . Styled . lazy7
86+
87+
88+ {- | Same as `lazy` but takes a nonce string argument.
89+ -}
90+ lazyWithNonce : String -> (a -> Html msg ) -> a -> Html msg
91+ lazyWithNonce =
92+ VirtualDom . Styled . lazyWithNonce
93+
94+
95+ {- | Same as `lazy2` but takes a nonce string argument.
96+ -}
97+ lazy2WithNonce : String -> (a -> b -> Html msg ) -> a -> b -> Html msg
98+ lazy2WithNonce =
99+ VirtualDom . Styled . lazy2WithNonce
100+
101+
102+ {- | Same as `lazy3` but takes a nonce string argument.
103+ -}
104+ lazy3WithNonce : String -> (a -> b -> c -> Html msg ) -> a -> b -> c -> Html msg
105+ lazy3WithNonce =
106+ VirtualDom . Styled . lazy3WithNonce
107+
108+
109+ {- | Same as `lazy4` but takes a nonce string argument.
110+ -}
111+ lazy4WithNonce : String -> (a -> b -> c -> d -> Html msg ) -> a -> b -> c -> d -> Html msg
112+ lazy4WithNonce =
113+ VirtualDom . Styled . lazy4WithNonce
114+
115+
116+ {- | Same as `lazy5` but takes a nonce string argument.
117+ -}
118+ lazy5WithNonce : String -> (a -> b -> c -> d -> e -> Html msg ) -> a -> b -> c -> d -> e -> Html msg
119+ lazy5WithNonce =
120+ VirtualDom . Styled . lazy5WithNonce
121+
122+
123+ {- | Same as `lazy6` but takes a nonce string argument.
124+ -}
125+ lazy6WithNonce : String -> (a -> b -> c -> d -> e -> f -> Html msg ) -> a -> b -> c -> d -> e -> f -> Html msg
126+ lazy6WithNonce =
127+ VirtualDom . Styled . lazy6WithNonce
0 commit comments