/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by 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) {
  const {
    classPrefix
  } = useConfig("classPrefix");
  return computed(() => componentName ? `${classPrefix.value}-${componentName}` : classPrefix.value);
}
function useCommonClassName() {
  const {
    classPrefix
  } = useConfig("classPrefix");
  return {
    SIZE: computed(() => ({
      small: `${classPrefix.value}-size-small`,
      medium: `${classPrefix.value}-size-medium`,
      large: `${classPrefix.value}-size-large`,
      default: "",
      xs: `${classPrefix.value}-size-mini`,
      xl: `${classPrefix.value}-size-huge`,
      block: `${classPrefix.value}-size-full-width`
    })),
    STATUS: computed(() => ({
      loading: `${classPrefix.value}-is-loading`,
      loadMore: `${classPrefix.value}-is-load-more`,
      disabled: `${classPrefix.value}-is-disabled`,
      focused: `${classPrefix.value}-is-focused`,
      success: `${classPrefix.value}-is-success`,
      error: `${classPrefix.value}-is-error`,
      warning: `${classPrefix.value}-is-warning`,
      selected: `${classPrefix.value}-is-selected`,
      active: `${classPrefix.value}-is-active`,
      checked: `${classPrefix.value}-is-checked`,
      current: `${classPrefix.value}-is-current`,
      hidden: `${classPrefix.value}-is-hidden`,
      visible: `${classPrefix.value}-is-visible`,
      expanded: `${classPrefix.value}-is-expanded`,
      indeterminate: `${classPrefix.value}-is-indeterminate`
    }))
  };
}

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