/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var VueCompositionAPI = require('@vue/composition-api');
var components_configProvider_useConfig = require('../components/config-provider/useConfig.js');
require('../components/config-provider/context.js');
require('lodash');
require('../chunks/zh_CN.js');

function usePrefixClass(componentName) {
  const {
    classPrefix
  } = components_configProvider_useConfig.useConfig("classPrefix");
  return VueCompositionAPI.computed(() => componentName ? `${classPrefix.value}-${componentName}` : classPrefix.value);
}
function useCommonClassName() {
  const {
    classPrefix
  } = components_configProvider_useConfig.useConfig("classPrefix");
  return {
    SIZE: VueCompositionAPI.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: VueCompositionAPI.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`
    }))
  };
}

exports.useConfig = components_configProvider_useConfig.useConfig;
exports.useCommonClassName = useCommonClassName;
exports.usePrefixClass = usePrefixClass;
//# sourceMappingURL=use-config.js.map
