diff --git a/elm.json b/elm.json index 9d855f8..8441a9f 100644 --- a/elm.json +++ b/elm.json @@ -1,9 +1,9 @@ { "type": "package", - "name": "miniBill/elm-ui-with-context", - "summary": "An augmentation of elm-ui with a global context.", + "name": "MackeyRMS/elm-ui-with-context", + "summary": "fork of elm-ui-with-context", "license": "BSD-3-Clause", - "version": "2.0.0", + "version": "2.0.1", "exposed-modules": [ "Element.WithContext", "Element.WithContext.Input", @@ -17,9 +17,9 @@ ], "elm-version": "0.19.0 <= v < 0.20.0", "dependencies": { + "MackeyRMS/elm-ui": "2.0.1 <= v < 3.0.0", "elm/core": "1.0.0 <= v < 2.0.0", - "elm/html": "1.0.0 <= v < 2.0.0", - "mdgriffith/elm-ui": "1.1.0 <= v < 2.0.0" + "elm/html": "1.0.0 <= v < 2.0.0" }, "test-dependencies": {} } diff --git a/src/Element/WithContext.elm b/src/Element/WithContext.elm index c4b38b6..492938c 100644 --- a/src/Element/WithContext.elm +++ b/src/Element/WithContext.elm @@ -1,6 +1,6 @@ module Element.WithContext exposing ( with, withAttribute, withDecoration, layout, layoutWith, element, attribute, attr - , Element, none, text, el + , Element, none, text, el, webComponent , row, wrappedRow, column , paragraph, textColumn , Column, table, IndexedColumn, indexedTable @@ -36,7 +36,7 @@ module Element.WithContext exposing # Basic Elements -@docs Element, none, text, el +@docs Element, none, text, el, webComponent # Rows and Columns @@ -604,6 +604,12 @@ el = wrapAttrs Element.el run +{-| -} +webComponent : String -> List (Attribute context msg) -> List (Element context msg) -> Element context msg +webComponent nodeName = + wrapContainer (Element.webComponent nodeName) + + {-| -} row : List (Attribute context msg) -> List (Element context msg) -> Element context msg row =