import {
  BORDER_RADIUS,
  COLOR,
  FONT_FAMILY,
  FONT_SIZE,
  FONT_WEIGHT,
  LENGTH,
  SPACING,
} from "../../consts/types";

export default {
  "tag.borderWidth": {
    type: LENGTH,
    value: {
      ref: "basics.borderWidths.small",
    },
  },
  "tag.borderRadii": {
    type: BORDER_RADIUS,
    value: {
      ref: "basics.borderRadii.pill",
    },
  },
  "tag.hover.haloWidth": {
    type: LENGTH,
    value: {
      ref: "basics.borderWidths.medium",
    },
  },
  "tag.focus.haloWidth": {
    type: LENGTH,
    value: {
      ref: "basics.borderWidths.large",
    },
  },
  "tag.paddingLeft": {
    type: SPACING,
    value: {
      ref: "density.spacings.small",
    },
  },
  "tag.paddingRight": {
    type: SPACING,
    value: {
      ref: "density.spacings.extraSmall",
    },
  },
  "tag.paddingVertical": {
    type: SPACING,
    value: {
      ref: "density.spacings.extraSmall",
    },
  },
  "tag.default.backgroundColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.reference.base",
    },
    transform: {
      alpha: 0.15,
    },
  },
  "tag.hover.backgroundColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.reference.base",
    },
    transform: {
      alpha: 0.25,
    },
  },
  "tag.focus.backgroundColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.reference.base",
    },
    transform: {
      alpha: 0.15,
    },
  },
  "tag.pressed.backgroundColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.reference.base",
    },
    transform: {
      alpha: 0.35,
    },
  },
  "tag.default.borderColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.background.transparent",
    },
  },
  "tag.hover.borderColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.background.transparent",
    },
  },
  "tag.focus.borderColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.background.transparent",
    },
  },
  "tag.pressed.borderColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.background.transparent",
    },
  },
  "tag.focus.haloColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.halo.focus",
    },
  },
  "tag.on.default.backgroundColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.background.on.default",
    },
  },
  "tag.on.hover.backgroundColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.background.empty.level100To250.hover",
    },
  },
  "tag.on.focus.backgroundColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.background.on.focus",
    },
  },
  "tag.on.pressed.backgroundColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.background.empty.level100To250.pressed",
    },
    transform: {
      alpha: 0.7,
    },
  },
  "tag.on.default.borderColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.border.on",
    },
  },
  "tag.on.hover.borderColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.border.on",
    },
  },
  "tag.on.focus.borderColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.border.accent",
    },
  },
  "tag.on.pressed.borderColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.border.on",
    },
  },
  "tag.on.focus.haloColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.halo.focus",
    },
  },
  "tag.label.marginRight": {
    type: SPACING,
    value: {
      ref: "density.spacings.extraSmall",
    },
  },
  "tag.label.fontColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.text.default",
    },
  },
  "tag.label.fontFamily": {
    type: FONT_FAMILY,
    value: {
      ref: "basics.fontFamilies.main",
    },
  },
  "tag.label.fontSize": {
    type: FONT_SIZE,
    value: {
      ref: "density.fontSizes.medium",
    },
  },
  "tag.label.fontWeight": {
    type: FONT_WEIGHT,
    value: {
      ref: "basics.fontWeights.medium",
    },
  },
  "tag.closeButton.iconColor": {
    type: COLOR,
    value: {
      ref: "colorScheme.reference.base",
    },
  },
};

@@ -2363,35 +2363,18 @@
 kground.
-empty.level100To250
+on
 .hover%22,
@@ -2617,35 +2617,18 @@
 und.
-empty.level100To250.pressed
+on.default
 %22,%0A 

set tag on background color refs to correct value