/**
 * ldesign v0.2.2
 * (c) 2022年9月20日 swimly
 * @license MIT
 */

import { computed } from '@vue/composition-api';
import { useConfig } from '../components/config-provider/useConfig.js';
export { useConfig } from '../components/config-provider/useConfig.js';
import '../components/config-provider/context.js';
import 'lodash';
import '../chunks/zh_CN.js';
import '../components/config-provider/type.js';

function usePrefixClass(componentName) {
  var _useConfig = useConfig("classPrefix"),
      classPrefix = _useConfig.classPrefix;

  return computed(function () {
    return componentName ? "".concat(classPrefix.value, "-").concat(componentName) : classPrefix.value;
  });
}
function useCommonClassName() {
  var _useConfig2 = useConfig("classPrefix"),
      classPrefix = _useConfig2.classPrefix;

  return {
    SIZE: computed(function () {
      return {
        small: "".concat(classPrefix.value, "-size-small"),
        medium: "".concat(classPrefix.value, "-size-medium"),
        large: "".concat(classPrefix.value, "-size-large"),
        "default": "",
        xs: "".concat(classPrefix.value, "-size-mini"),
        xl: "".concat(classPrefix.value, "-size-huge"),
        block: "".concat(classPrefix.value, "-size-full-width")
      };
    }),
    STATUS: computed(function () {
      return {
        loading: "".concat(classPrefix.value, "-is-loading"),
        loadMore: "".concat(classPrefix.value, "-is-load-more"),
        disabled: "".concat(classPrefix.value, "-is-disabled"),
        focused: "".concat(classPrefix.value, "-is-focused"),
        success: "".concat(classPrefix.value, "-is-success"),
        error: "".concat(classPrefix.value, "-is-error"),
        warning: "".concat(classPrefix.value, "-is-warning"),
        selected: "".concat(classPrefix.value, "-is-selected"),
        active: "".concat(classPrefix.value, "-is-active"),
        checked: "".concat(classPrefix.value, "-is-checked"),
        current: "".concat(classPrefix.value, "-is-current"),
        hidden: "".concat(classPrefix.value, "-is-hidden"),
        visible: "".concat(classPrefix.value, "-is-visible"),
        expanded: "".concat(classPrefix.value, "-is-expanded"),
        indeterminate: "".concat(classPrefix.value, "-is-indeterminate")
      };
    })
  };
}

export { useCommonClassName, usePrefixClass };
//# sourceMappingURL=use-config.js.map
