Skip to content

Commit 5047417

Browse files
author
Richard Feldman
committed
Expose Html.Styled modules
1 parent 247ffc1 commit 5047417

File tree

6 files changed

+22
-6
lines changed

6 files changed

+22
-6
lines changed

elm-package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
"Css.Colors",
1212
"Css.Foreign",
1313
"Css.Media",
14+
"Html.Styled",
15+
"Html.Styled.Attributes",
16+
"Html.Styled.Events",
17+
"Html.Styled.Keyed",
18+
"Html.Styled.Lazy",
1419
"DEPRECATED.Css.File",
1520
"DEPRECATED.Css.Namespace"
1621
],

src/Html/Styled.elm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
module Html.Styled exposing (Attribute, Html, a, abbr, address, article, aside, audio, b, bdi, bdo, blockquote, body, br, button, canvas, caption, cite, code, col, colgroup, datalist, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, fromUnstyled, h1, h2, h3, h4, h5, h6, header, hr, i, iframe, img, input, ins, kbd, keygen, label, legend, li, main_, map, mark, math, menu, menuitem, meter, nav, node, object, ol, optgroup, option, output, p, param, pre, progress, q, rp, rt, ruby, s, samp, section, select, small, source, span, strong, sub, summary, sup, table, tbody, td, text, textarea, tfoot, th, thead, time, toUnstyled, tr, track, u, ul, var, video, wbr)
22

3-
{-| This file is organized roughly in order of popularity. The tags which you'd
3+
{-| Drop-in replacement for the `Html` module from the `elm-lang/html` package.
4+
The only functions added are `toUnstyled` and `fromUnstyled`:
5+
6+
@docs fromUnstyled, toUnstyled
7+
8+
This file is organized roughly in order of popularity. The tags which you'd
49
expect to use frequently will be closer to the top.
510
6-
Html, Attribute, fromUnstyled, toUnstyled, text, node, map
11+
@docs Html, Attribute, text, node, map
712
813
914
# Tags

src/Html/Styled/Attributes.elm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ module Html.Styled.Attributes
104104
, wrap
105105
)
106106

107-
{-| Helper functions for HTML attributes. They are organized roughly by
107+
{-| Drop-in replacement for the `Html.Attributes` module from the `elm-lang/html` package.
108+
109+
Helper functions for HTML attributes. They are organized roughly by
108110
category. Each attribute is labeled with the HTML tags it can be used with, so
109111
just search the page for `video` if you want video stuff.
110112

src/Html/Styled/Events.elm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ module Html.Styled.Events
2222
, targetValue
2323
)
2424

25-
{-| It is often helpful to create an [Union Type] so you can have many different kinds
25+
{-| Drop-in replacement for the `Html.Events` module from the `elm-lang/html` package.
26+
27+
It is often helpful to create an [Union Type] so you can have many different kinds
2628
of events as seen in the [TodoMVC] example.
2729
2830
[Union Type]: http://elm-lang.org/learn/Union-Types.elm

src/Html/Styled/Keyed.elm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module Html.Styled.Keyed exposing (node, ol, ul)
22

3-
{-| A keyed node helps optimize cases where children are getting added, moved,
3+
{-| Drop-in replacement for the `Html.Keyed` module from the `elm-lang/html` package.
4+
5+
A keyed node helps optimize cases where children are getting added, moved,
46
removed, etc. Common examples include:
57
68
- The user can delete items from a list.

src/Html/Styled/Lazy.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Html.Styled.Lazy exposing (lazy, lazy2, lazy3)
22

3-
{-|
3+
{-| Drop-in replacement for the `Html.Lazy` module from the `elm-lang/html` package.
44
55
@docs lazy, lazy2, lazy3
66

0 commit comments

Comments
 (0)