Current section
9 Versions
Jump to
Current section
9 Versions
Compare versions
5
files changed
+29
additions
-18
deletions
| @@ -1,5 +1,5 @@ | |
| 1 1 | name = "sketch_lustre" |
| 2 | - version = "1.0.1" |
| 2 | + version = "1.0.2" |
| 3 3 | |
| 4 4 | description = "A Sketch runtime package, made to work with Lustre!" |
| 5 5 | internal_modules = ["sketch/internals", "sketch/internals/*"] |
| @@ -1,6 +1,6 @@ | |
| 1 1 | {<<"name">>, <<"sketch_lustre">>}. |
| 2 2 | {<<"app">>, <<"sketch_lustre">>}. |
| 3 | - {<<"version">>, <<"1.0.1">>}. |
| 3 | + {<<"version">>, <<"1.0.2">>}. |
| 4 4 | {<<"description">>, <<"A Sketch runtime package, made to work with Lustre!"/utf8>>}. |
| 5 5 | {<<"licenses">>, [<<"MIT">>]}. |
| 6 6 | {<<"build_tools">>, [<<"gleam">>]}. |
| @@ -9,25 +9,25 @@ | |
| 9 9 | {<<"Repository">>, <<"https://github.com/ghivert/sketch">>} |
| 10 10 | ]}. |
| 11 11 | {<<"requirements">>, [ |
| 12 | - {<<"gleam_stdlib">>, [ |
| 13 | - {<<"app">>, <<"gleam_stdlib">>}, |
| 14 | - {<<"optional">>, false}, |
| 15 | - {<<"requirement">>, <<">= 0.34.0 and < 2.0.0">>} |
| 16 | - ]}, |
| 17 12 | {<<"sketch">>, [ |
| 18 13 | {<<"app">>, <<"sketch">>}, |
| 19 14 | {<<"optional">>, false}, |
| 20 15 | {<<"requirement">>, <<">= 3.0.0 and < 4.0.0">>} |
| 21 16 | ]}, |
| 22 | - {<<"plinth">>, [ |
| 23 | - {<<"app">>, <<"plinth">>}, |
| 24 | - {<<"optional">>, false}, |
| 25 | - {<<"requirement">>, <<">= 0.4.9 and < 1.0.0">>} |
| 26 | - ]}, |
| 27 17 | {<<"lustre">>, [ |
| 28 18 | {<<"app">>, <<"lustre">>}, |
| 29 19 | {<<"optional">>, false}, |
| 30 20 | {<<"requirement">>, <<">= 4.3.1 and < 5.0.0">>} |
| 21 | + ]}, |
| 22 | + {<<"gleam_stdlib">>, [ |
| 23 | + {<<"app">>, <<"gleam_stdlib">>}, |
| 24 | + {<<"optional">>, false}, |
| 25 | + {<<"requirement">>, <<">= 0.34.0 and < 2.0.0">>} |
| 26 | + ]}, |
| 27 | + {<<"plinth">>, [ |
| 28 | + {<<"app">>, <<"plinth">>}, |
| 29 | + {<<"optional">>, false}, |
| 30 | + {<<"requirement">>, <<">= 0.4.9 and < 1.0.0">>} |
| 31 31 | ]} |
| 32 32 | ]}. |
| 33 33 | {<<"files">>, [ |
| @@ -1,4 +1,4 @@ | |
| 1 | - import sketch/lustre/element.{element, element_} |
| 1 | + import sketch/lustre/element.{element, element_, namespaced, namespaced_} |
| 2 2 | |
| 3 3 | // |
| 4 4 | |
| @@ -767,11 +767,11 @@ pub fn sup_(attributes, children) { | |
| 767 767 | } |
| 768 768 | |
| 769 769 | pub fn svg(class, attributes, children) { |
| 770 | - element("svg", class, attributes, children) |
| 770 | + namespaced("http://www.w3.org/2000/svg", "svg", class, attributes, children) |
| 771 771 | } |
| 772 772 | |
| 773 773 | pub fn svg_(attributes, children) { |
| 774 | - element_("svg", attributes, children) |
| 774 | + namespaced_("http://www.w3.org/2000/svg", "svg", attributes, children) |
| 775 775 | } |
| 776 776 | |
| 777 777 | pub fn table(class, attributes, children) { |
| @@ -1540,14 +1540,25 @@ sup_(Attributes, Children) -> | |
| 1540 1540 | list(sketch@lustre@element:element(RVO)) |
| 1541 1541 | ) -> sketch@lustre@element:element(RVO). |
| 1542 1542 | svg(Class, Attributes, Children) -> |
| 1543 | - sketch@lustre@element:element(<<"svg"/utf8>>, Class, Attributes, Children). |
| 1543 | + sketch@lustre@element:namespaced( |
| 1544 | + <<"http://www.w3.org/2000/svg"/utf8>>, |
| 1545 | + <<"svg"/utf8>>, |
| 1546 | + Class, |
| 1547 | + Attributes, |
| 1548 | + Children |
| 1549 | + ). |
| 1544 1550 | |
| 1545 1551 | -spec svg_( |
| 1546 1552 | list(lustre@internals@vdom:attribute(RVP)), |
| 1547 1553 | list(sketch@lustre@element:element(RVP)) |
| 1548 1554 | ) -> sketch@lustre@element:element(RVP). |
| 1549 1555 | svg_(Attributes, Children) -> |
| 1550 | - sketch@lustre@element:element_(<<"svg"/utf8>>, Attributes, Children). |
| 1556 | + sketch@lustre@element:namespaced_( |
| 1557 | + <<"http://www.w3.org/2000/svg"/utf8>>, |
| 1558 | + <<"svg"/utf8>>, |
| 1559 | + Attributes, |
| 1560 | + Children |
| 1561 | + ). |
| 1551 1562 | |
| 1552 1563 | -spec table( |
| 1553 1564 | sketch@internals@style:class(), |
| @@ -1,5 +1,5 @@ | |
| 1 1 | {application, sketch_lustre, [ |
| 2 | - {vsn, "1.0.1"}, |
| 2 | + {vsn, "1.0.2"}, |
| 3 3 | {applications, [gleam_stdlib, |
| 4 4 | gleeunit, |
| 5 5 | lustre, |