{"version":3,"file":"config-provider-props.mjs","names":[],"sources":["../../../../../../packages/components/config-provider/src/config-provider-props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { Language } from '@element-plus/locale'\nimport type { ButtonConfigContext } from '@element-plus/components/button'\nimport type { CardConfigContext } from '@element-plus/components/card'\nimport type { DialogConfigContext } from '@element-plus/components/dialog'\nimport type { MessageConfigContext } from '@element-plus/components/message'\nimport type { LinkConfigContext } from '@element-plus/components/link'\nimport type { TableConfigContext } from '@element-plus/components/table'\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type ExperimentalFeatures = {\n  // TO BE Defined\n}\n\nexport const configProviderProps = buildProps({\n  /**\n   * @description Controlling if the users want a11y features\n   */\n  a11y: {\n    type: Boolean,\n    default: true,\n  },\n  /**\n   * @description Locale Object\n   */\n  locale: {\n    type: definePropType<Language>(Object),\n  },\n  /**\n   * @description global component size\n   */\n  size: useSizeProp,\n  /**\n   * @description button related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#button-attribute)\n   */\n  button: {\n    type: definePropType<ButtonConfigContext>(Object),\n  },\n  /**\n   * @description card related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#card-attribute)\n   */\n  card: {\n    type: definePropType<CardConfigContext>(Object),\n  },\n  /**\n   * @description dialog related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#dialog-attribute)\n   */\n  dialog: {\n    type: definePropType<DialogConfigContext>(Object),\n  },\n  /**\n   * @description link related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#link-attribute)\n   */\n  link: {\n    type: definePropType<LinkConfigContext>(Object),\n  },\n  /**\n   * @description features at experimental stage to be added, all features are default to be set to false, [see the following table](https://element-plus.org/en-US/component/config-provider.html#experimental-features)                                                                            | ^[object]\n   */\n  experimentalFeatures: {\n    type: definePropType<ExperimentalFeatures>(Object),\n  },\n  /**\n   * @description Controls if we should handle keyboard navigation\n   */\n  keyboardNavigation: {\n    type: Boolean,\n    default: true,\n  },\n  /**\n   * @description message related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#message-attribute)\n   */\n  message: {\n    type: definePropType<MessageConfigContext>(Object),\n  },\n  /**\n   * @description global Initial zIndex\n   */\n  zIndex: Number,\n  /**\n   * @description global component className prefix (cooperated with [$namespace](https://github.com/element-plus/element-plus/blob/dev/packages/theme-chalk/src/mixins/config.scss#L1)) | ^[string]\n   */\n  namespace: {\n    type: String,\n    default: 'el',\n  },\n  /**\n   * @description table related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#table-attribute)\n   */\n  table: {\n    type: definePropType<TableConfigContext>(Object),\n  },\n  ...useEmptyValuesProps,\n} as const)\nexport type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>\nexport type ConfigProviderPropsPublic = ExtractPublicPropTypes<\n  typeof configProviderProps\n>\n"],"mappings":";;;;;AAiBA,MAAa,sBAAsB,WAAW;CAI5C,MAAM;EACJ,MAAM;EACN,SAAS;EACV;CAID,QAAQ,EACN,MAAM,eAAyB,OAAO,EACvC;CAID,MAAM;CAIN,QAAQ,EACN,MAAM,eAAoC,OAAO,EAClD;CAID,MAAM,EACJ,MAAM,eAAkC,OAAO,EAChD;CAID,QAAQ,EACN,MAAM,eAAoC,OAAO,EAClD;CAID,MAAM,EACJ,MAAM,eAAkC,OAAO,EAChD;CAID,sBAAsB,EACpB,MAAM,eAAqC,OAAO,EACnD;CAID,oBAAoB;EAClB,MAAM;EACN,SAAS;EACV;CAID,SAAS,EACP,MAAM,eAAqC,OAAO,EACnD;CAID,QAAQ;CAIR,WAAW;EACT,MAAM;EACN,SAAS;EACV;CAID,OAAO,EACL,MAAM,eAAmC,OAAO,EACjD;CACD,GAAG;CACJ,CAAU"}