load("//ts:copy.bzl", "copy_files_into_group")
load("//ts:compile_sass.bzl", "compile_sass")

compile_sass(
    srcs = glob(
        ["*.scss"],
        exclude = ["_*.scss"],
    ),
    group = "css_local",
    visibility = ["//visibility:private"],
    deps = [
        "//sass:buttons_lib",
        "//sass:card_counts_lib",
        "//sass:scrollbar_lib",
    ],
)

copy_files_into_group(
    name = "editable",
    srcs = [
        "editable.css",
    ],
    package = "//ts/editable",
)

copy_files_into_group(
    name = "editor",
    srcs = [
        "browser_editor.css",
        "reviewer_editor.css",
        "note_creator.css",
    ],
    package = "//ts/editor",
)

copy_files_into_group(
    name = "reviewer",
    srcs = [
        "reviewer.css",
    ],
    package = "//ts/reviewer",
)

filegroup(
    name = "css",
    srcs = [
        "css_local",
        "editable",
        "editor",
        "reviewer",
    ],
    visibility = ["//qt:__subpackages__"],
)
