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

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

licenses(["notice"])

closure_js_library(
    name = "abstractposition",
    srcs = ["abstractposition.js"],
    lenient = True,
    deps = [
        ":positioning",
        "//third_party/closure/goog/math:box",
        "//third_party/closure/goog/math:size",
    ],
)

closure_js_library(
    name = "anchoredposition",
    srcs = ["anchoredposition.js"],
    lenient = True,
    deps = [
        ":abstractposition",
        ":positioning",
        "//third_party/closure/goog/math:box",
        "//third_party/closure/goog/math:size",
    ],
)

closure_js_library(
    name = "anchoredviewportposition",
    srcs = ["anchoredviewportposition.js"],
    lenient = True,
    deps = [
        ":anchoredposition",
        ":positioning",
        "//third_party/closure/goog/math:box",
        "//third_party/closure/goog/math:size",
    ],
)

closure_js_library(
    name = "menuanchoredposition",
    srcs = ["menuanchoredposition.js"],
    lenient = True,
    deps = [
        ":anchoredviewportposition",
        ":positioning",
    ],
)

closure_js_library(
    name = "positioning",
    srcs = ["positioning.js"],
    lenient = True,
    deps = [
        "//third_party/closure/goog/asserts",
        "//third_party/closure/goog/dom",
        "//third_party/closure/goog/dom:tagname",
        "//third_party/closure/goog/math:box",
        "//third_party/closure/goog/math:coordinate",
        "//third_party/closure/goog/math:rect",
        "//third_party/closure/goog/math:size",
        "//third_party/closure/goog/style",
        "//third_party/closure/goog/style:bidi",
    ],
)
