import { reactive, toRef, createVNode } from "vue";
import "./styles/button-group.scss";
import { makeDisabledProps } from "../../composables/disabled/index.mjs";
import { makePaperProps, usePaper } from "../../composables/paper/index.mjs";
import { provideDefaults } from "../../composables/defaults/index.mjs";
import { defineComponent } from "../../utils/define-component.mjs";
const ButtonGroup = defineComponent({
  name: "VeButtonGroup",
  props: {
    divided: Boolean,
    ...makeDisabledProps(),
    ...makePaperProps({
      shape: "rounded-sm"
    })
  },
  setup(props, {
    slots
  }) {
    const {
      paperClasses,
      paperStyles
    } = usePaper(props);
    provideDefaults(reactive({
      VeButton: {
        disabled: toRef(props, "disabled"),
        height: "auto",
        color: toRef(props, "color"),
        variant: toRef(props, "variant")
      }
    }));
    return () => {
      return createVNode(props.tag, {
        "class": ["ve-button-group", {
          "ve-button-group--divided": props.divided
        }, paperClasses.value],
        "style": [paperStyles.value]
      }, slots);
    };
  }
});
export {
  ButtonGroup
};
//# sourceMappingURL=button-group.mjs.map
