import { fieldValidityMapping } from "../field/utils/constants.js";
import { SwitchRootDataAttributes } from "./root/SwitchRootDataAttributes.js";
const stateAttributesMapping = {
  ...fieldValidityMapping,
  checked(value) {
    if (value) {
      return {
        [SwitchRootDataAttributes.checked]: ""
      };
    }
    return {
      [SwitchRootDataAttributes.unchecked]: ""
    };
  }
};
export {
  stateAttributesMapping
};
//# sourceMappingURL=stateAttributesMapping.js.map
