1 line
6.2 KiB
JSON
1 line
6.2 KiB
JSON
|
{"ast":null,"code":"\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Panel } from 'rc-cascader';\nimport DefaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport useBase from './hooks/useBase';\nimport useCheckable from './hooks/useCheckable';\nimport useColumnIcons from './hooks/useColumnIcons';\nimport useStyle from './style';\nimport usePanelStyle from './style/panel';\nfunction CascaderPanel(props) {\n const {\n prefixCls: customizePrefixCls,\n className,\n multiple,\n rootClassName,\n notFoundContent,\n direction,\n expandIcon\n } = props;\n const [prefixCls, cascaderPrefixCls, mergedDirection, renderEmpty] = useBase(customizePrefixCls, direction);\n const rootCls = useCSSVarCls(cascaderPrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(cascaderPrefixCls, rootCls);\n usePanelStyle(cascaderPrefixCls);\n const isRtl = mergedDirection === 'rtl';\n // ===================== Icon ======================\n const [mergedExpandIcon, loadingIcon] = useColumnIcons(prefixCls, isRtl, expandIcon);\n // ===================== Empty =====================\n const mergedNotFoundContent = notFoundContent || (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Cascader')) || ( /*#__PURE__*/React.createElement(DefaultRenderEmpty, {\n componentName: \"Cascader\"\n }));\n // =================== Multiple ====================\n const checkable = useCheckable(cascaderPrefixCls, multiple);\n // ==================== Render =====================\n return wrapCSSVar( /*#__PURE__*/React.createElement(Panel, Object.assign({}, props, {\n checkable: checkable,\n prefixCls: cascaderPrefixCls,\n className: classNames(className, hashId, rootClassName, cssVarCls, rootCls),\n notFoundContent: mergedNotFoundContent,\n direction: mergedDirection,\n expandIcon: mergedExpandIcon,\n loadingIcon: loadingIcon\n })));\n}\nexport default CascaderPanel;","map":{"version":3,"names":["React","classNames","Panel","DefaultRenderEmpty","useCSSVarCls","useBase","useCheckable","useColumnIcons","useStyle","usePanelStyle","CascaderPanel","props","prefixCls","customizePrefixCls","className","multiple","rootClassName","notFoundContent","direction","expandIcon","cascaderPrefixCls","mergedDirection","renderEmpty","rootCls","wrapCSSVar","hashId","cssVarCls","isRtl","mergedExpandIcon","loadingIcon","mergedNotFoundContent","createElement","componentName","checkable","Object","assign"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/cascader/Panel.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { Panel } from 'rc-cascader';\nimport DefaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport useBase from './hooks/useBase';\nimport useCheckable from './hooks/useCheckable';\nimport useColumnIcons from './hooks/useColumnIcons';\nimport useStyle from './style';\nimport usePanelStyle from './style/panel';\nfunction CascaderPanel(props) {\n const {\n prefixCls: customizePrefixCls,\n className,\n multiple,\n rootClassName,\n notFoundContent,\n direction,\n expandIcon\n } = props;\n const [prefixCls, cascaderPrefixCls, mergedDirection, renderEmpty] = useBase(customizePrefixCls, direction);\n const rootCls = useCSSVarCls(cascaderPrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(cascaderPrefixCls, rootCls);\n usePanelStyle(cascaderPrefixCls);\n const isRtl = mergedDirection === 'rtl';\n // ===================== Icon ======================\n const [mergedExpandIcon, loadingIcon] = useColumnIcons(prefixCls, isRtl, expandIcon);\n // ===================== Empty =====================\n const mergedNotFoundContent = notFoundContent || (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Cascader')) || ( /*#__PURE__*/React.createE
|