defmodule Phoenix.LiveEditable.Interface.Tailwind3 do alias Phoenix.LiveEditable.Interface require Phoenix.LiveEditable.Svg alias Phoenix.LiveEditable.Svg @behaviour Interface.Base @impl Interface.Base def text_focus(label, opts) do IO.puts "TAILWINDDDD" """
""" end @doc """ <%= live_edit(assigns, @register.name, type: "text", id: "name", on_submit: "rename") %> """ @impl Interface.Base def text_anchor(label, _opts) do # target = if opts[:target], do: "phx-target='#{opts[:target]}'", else: "" # change = "phx-change='#{opts[:on_change]}'" # submit = "phx-submit='#{opts[:on_submit]}'" """ <#{ label } """ end @impl Interface.Base def select_focus(label, opts) do Keyword.has_key?(opts, :options) || raise("Needs `:options` option") options = Enum.map(opts[:options], &("")) """ """ end @impl Interface.Base def select_anchor(label, _opts) do # target = if opts[:target], do: "phx-target='#{opts[:target]}'", else: "" # change = "phx-change='#{opts[:on_change]}'" # submit = "phx-submit='#{opts[:on_submit]}'" """ <#{ label } """ end end