import _defineProperty from "@babel/runtime/helpers/defineProperty";

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

import makeStyles from "../../styles/makeStyles";

var styles = function styles(_ref) {
  var _ref$cleverUI = _ref.cleverUI,
      colors = _ref$cleverUI.colors,
      spaces = _ref$cleverUI.spaces;
  return {
    root: function root(_ref2) {
      var variant = _ref2.variant;
      return _objectSpread({
        display: "flex"
      }, variant !== "caption" && {
        position: "relative",
        borderBottom: "1px solid ".concat(colors.neutral[300])
      });
    },
    standardList: function standardList(_ref3) {
      var color = _ref3.color,
          variant = _ref3.variant,
          hasScroll = _ref3.hasScroll;
      return _objectSpread(_objectSpread({
        display: "flex",
        overflow: variant === "scrollable" ? "auto" : "none",
        scrollBehavior: "smooth",
        scrollbarWidth: "none",
        "-ms-overflow-style": "none"
      }, hasScroll && {
        margin: "0 ".concat(spaces.lg)
      }), {}, {
        "&::-webkit-scrollbar": {
          display: "none"
        },
        "& > *[aria-selected=true]": {
          opacity: 1,
          borderBottom: "3px solid ".concat(colors[color][500])
        },
        "& > *[aria-selected=false]": {
          opacity: 0.7 // borderBottom: `1px solid ${colors.neutral[300]}`,

        },
        "& > *": {
          flexShrink: 0
        }
      });
    },
    captionList: {
      width: "100%",
      display: "flex",
      justifyContent: "space-between",
      gap: spaces.sm,
      overflowX: "auto",
      scrollBehavior: "smooth",
      "&::-webkit-scrollbar": {
        height: "16px",
        backgroundColor: "#fff"
      },
      "&::-webkit-scrollbar-track": {
        backgroundColor: "#fff"
      },
      "&::-webkit-scrollbar-thumb": {
        backgroundColor: colors.neutral[300],
        borderRadius: "8px",
        border: "5px solid #fff"
      }
    },
    scrollArrow: {
      position: "absolute",
      top: "50%",
      transform: "translateY(-50%)"
    },
    leftArrow: {
      left: 0
    },
    rightArrow: {
      right: 0
    }
  };
};

export default makeStyles(styles);