/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 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/merge';
import 'lodash/mergeWith';
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-s`,
      medium: `${classPrefix.value}-size-m`,
      large: `${classPrefix.value}-size-l`,
      default: "",
      xs: `${classPrefix.value}-size-xs`,
      xl: `${classPrefix.value}-size-xl`,
      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=useConfig.js.map
