diff --git a/Project.toml b/Project.toml index 8cd13944..4c9129e8 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StippleUI" uuid = "a3c5d34a-b254-4859-a8fa-b86abb7e84a3" authors = ["Adrian Salceanu "] -version = "0.8" +version = "0.8.1" [deps] Stipple = "4acbeb90-81a0-11ea-1966-bdaff8155998" diff --git a/src/Intersection.jl b/src/Intersection.jl new file mode 100644 index 00000000..47598944 --- /dev/null +++ b/src/Intersection.jl @@ -0,0 +1,19 @@ +module Intersection + +using Genie, Stipple, StippleUI, StippleUI.API +import Genie.Renderer.Html: HTMLString, normal_element + +export intersection + +Genie.Renderer.Html.register_normal_element("q__intersection", context = @__MODULE__) + +function intersection(args...; + wrap::Function = StippleUI.DEFAULT_WRAPPER, + kwargs...) + + wrap() do + q__intersection(args...; attributes([kwargs...], StippleUI.API.ATTRIBUTES_MAPPINGS)...) + end +end + +end diff --git a/src/StippleUI.jl b/src/StippleUI.jl index fff74e87..35c1602f 100644 --- a/src/StippleUI.jl +++ b/src/StippleUI.jl @@ -50,6 +50,7 @@ include("Form.jl") include("FormInput.jl") include("Heading.jl") include("Icon.jl") +include("Intersection.jl") include("Layout.jl") include("List.jl") include("Menu.jl") @@ -84,6 +85,7 @@ export quasar, quasar_pure, vue, vue_pure, xelem, xelem_pure, @click @reexport using .FormInput @reexport using .Heading @reexport using .Icon +@reexport using .Intersection @reexport using .List @reexport using .Menu @reexport using .Radio