"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var CheckboxSwitch_theme_exports = {};
__export(CheckboxSwitch_theme_exports, {
  default: () => CheckboxSwitch_theme_default
});
module.exports = __toCommonJS(CheckboxSwitch_theme_exports);
var import_yoga_common = require("@gympass/yoga-common");
const CheckboxSwitch = ({
  colors,
  radii,
  transition,
  spacing,
  elevations
}) => ({
  track: {
    width: 48,
    height: 24,
    backgroundColor: colors.elements.selectionAndIcons,
    radii: radii.circle,
    transition: {
      duration: transition.duration[1]
    },
    checked: {
      backgroundColor: colors.primary
    },
    disabled: {
      backgroundColor: colors.steady
    }
  },
  thumb: {
    width: spacing.medium,
    height: spacing.medium,
    shadowScale: 1.6,
    left: 2,
    radii: radii.circle,
    backgroundColor: colors.white,
    shadow: elevations.small,
    transition: {
      duration: transition.duration[1]
    },
    checked: {
      backgroundColor: colors.primary
    },
    disabled: {
      backgroundColor: colors.white
    }
  },
  focus: {
    checked: {
      backgroundColor: (0, import_yoga_common.hexToRgb)(colors.primary, 0.5)
    },
    disabled: {
      backgroundColor: (0, import_yoga_common.hexToRgb)(colors.elements.backgroundAndDisabled, 0.5)
    }
  },
  hover: {
    checked: {
      backgroundColor: (0, import_yoga_common.hexToRgb)(colors.primary, 0.25)
    },
    disabled: {
      backgroundColor: (0, import_yoga_common.hexToRgb)(colors.elements.backgroundAndDisabled, 0.25)
    }
  },
  pressed: {
    checked: {
      backgroundColor: (0, import_yoga_common.hexToRgb)(colors.primary, 0.75)
    },
    disabled: {
      backgroundColor: (0, import_yoga_common.hexToRgb)(colors.elements.lineAndBorders, 0.75)
    }
  }
});
var CheckboxSwitch_theme_default = CheckboxSwitch;
