import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from "../../../constants/event.mjs";
import { isNumber, isBoolean } from "../../../utils/types.mjs";
import { buildProps } from "../../../utils/vue/props/runtime.mjs";
import { useSizeProp } from "../../../hooks/use-size/index.mjs";
import { isString } from "../../../../../@vue/shared/dist/shared.esm-bundler.mjs";
const radioPropsBase = buildProps({
  modelValue: {
    type: [
      String,
      Number,
      Boolean
    ],
    default: void 0
  },
  size: useSizeProp,
  disabled: {
    type: Boolean,
    default: void 0
  },
  label: {
    type: [
      String,
      Number,
      Boolean
    ],
    default: void 0
  },
  value: {
    type: [
      String,
      Number,
      Boolean
    ],
    default: void 0
  },
  name: {
    type: String,
    default: void 0
  }
});
const radioProps = buildProps({
  ...radioPropsBase,
  border: Boolean
});
const radioEmits = {
  [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber(val) || isBoolean(val),
  [CHANGE_EVENT]: (val) => isString(val) || isNumber(val) || isBoolean(val)
};
export {
  radioEmits,
  radioProps,
  radioPropsBase
};
