load("@rules_closure//closure:defs.bzl", "closure_js_library")

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

closure_js_library(
    name = "defaulttoolbar",
    srcs = ["defaulttoolbar.js"],
    lenient = True,
    deps = [
        ":messages",
        ":toolbarfactory",
        "//third_party/closure/goog/asserts",
        "//third_party/closure/goog/dom",
        "//third_party/closure/goog/dom:classlist",
        "//third_party/closure/goog/dom:tagname",
        "//third_party/closure/goog/editor:command",
        "//third_party/closure/goog/style",
        "//third_party/closure/goog/ui:button",
        "//third_party/closure/goog/ui:buttonrenderer",
        "//third_party/closure/goog/ui:colormenubuttonrenderer",
        "//third_party/closure/goog/ui:control",
        "//third_party/closure/goog/ui:controlcontent",
        "//third_party/closure/goog/ui:menubuttonrenderer",
        "//third_party/closure/goog/ui:menuitem",
        "//third_party/closure/goog/ui:select",
        "//third_party/closure/goog/ui:toolbar",
        "//third_party/closure/goog/ui:toolbarcolormenubutton",
        "//third_party/closure/goog/useragent",
    ],
)

closure_js_library(
    name = "messages",
    srcs = ["messages.js"],
    lenient = True,
    deps = [
        "//third_party/closure/goog/html:safehtml",
        "//third_party/closure/goog/html:safehtmlformatter",
    ],
)

closure_js_library(
    name = "toolbarfactory",
    srcs = ["toolbarfactory.js"],
    lenient = True,
    deps = [
        "//third_party/closure/goog/array",
        "//third_party/closure/goog/dom",
        "//third_party/closure/goog/dom:tagname",
        "//third_party/closure/goog/string",
        "//third_party/closure/goog/style",
        "//third_party/closure/goog/ui:button",
        "//third_party/closure/goog/ui:buttonrenderer",
        "//third_party/closure/goog/ui:colormenubutton",
        "//third_party/closure/goog/ui:colormenubuttonrenderer",
        "//third_party/closure/goog/ui:component",
        "//third_party/closure/goog/ui:container",
        "//third_party/closure/goog/ui:control",
        "//third_party/closure/goog/ui:controlcontent",
        "//third_party/closure/goog/ui:menubutton",
        "//third_party/closure/goog/ui:menubuttonrenderer",
        "//third_party/closure/goog/ui:option",
        "//third_party/closure/goog/ui:select",
        "//third_party/closure/goog/ui:toolbar",
        "//third_party/closure/goog/ui:toolbarbutton",
        "//third_party/closure/goog/ui:toolbarcolormenubutton",
        "//third_party/closure/goog/ui:toolbarmenubutton",
        "//third_party/closure/goog/ui:toolbarrenderer",
        "//third_party/closure/goog/ui:toolbarselect",
        "//third_party/closure/goog/useragent",
    ],
)
